@bonnard/mcp-charts 0.1.2 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,17 @@
1
+ // src/dashboard.ts
2
+ function isDashboardSpec(x) {
3
+ return !!x && typeof x === "object" && Array.isArray(x.items) && !Array.isArray(x.data);
4
+ }
5
+ function isChartSpec(x) {
6
+ return !!x && typeof x === "object" && Array.isArray(x.data);
7
+ }
8
+
9
+ // src/generated/widget-html.ts
10
+ var WIDGET_HTML = '<!doctype html>\n<html lang="en" data-theme="light">\n <head>\n <meta charset="UTF-8" />\n <meta name="viewport" content="width=device-width, initial-scale=1.0" />\n <title>Bonnard Chart</title>\n <style>\n :root {\n --bg: #ffffff;\n --fg: #1a1a1a;\n --muted: #6b7280;\n --grid: #e5e7eb;\n --border: #e5e7eb;\n font-family:\n ui-sans-serif,\n system-ui,\n -apple-system,\n "Segoe UI",\n Roboto,\n sans-serif;\n }\n html[data-theme="dark"] {\n --bg: #171717;\n --fg: #fafafa;\n --muted: #9ca3af;\n --grid: #2a2a2a;\n --border: #2a2a2a;\n }\n * {\n box-sizing: border-box;\n }\n body {\n margin: 0;\n background: var(--bg);\n color: var(--fg);\n padding: 12px;\n }\n #root {\n width: 100%;\n }\n .title {\n font-size: 15px;\n font-weight: 600;\n margin: 0 0 8px;\n }\n /* ECharts needs an explicit pixel height; it manages its own SVG sizing inside. */\n .ec {\n width: 100%;\n height: 340px;\n }\n .tbl {\n width: 100%;\n border-collapse: collapse;\n font-size: 13px;\n }\n .tbl th,\n .tbl td {\n text-align: left;\n padding: 6px 10px;\n border-bottom: 1px solid var(--border);\n }\n .tbl th {\n color: var(--muted);\n font-weight: 600;\n }\n .tbl td:not(:first-child),\n .tbl th:not(:first-child) {\n text-align: right;\n font-variant-numeric: tabular-nums;\n }\n .empty,\n .fallback {\n color: var(--muted);\n font-size: 13px;\n padding: 16px 4px;\n }\n .fallback {\n white-space: pre-wrap;\n word-break: break-word;\n }\n /* Dashboard: a CSS grid of chart / KPI / text cells. */\n .dash-title {\n font-size: 16px;\n font-weight: 700;\n margin: 0 0 10px;\n }\n .grid {\n display: grid;\n grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr));\n gap: 12px;\n }\n .cell {\n min-width: 0;\n border: 1px solid var(--border);\n border-radius: 8px;\n padding: 10px;\n }\n /* Dashboard cells are shorter than the 340px single-chart height. */\n .cell .ec {\n height: 240px;\n }\n .cell[data-span="2"] {\n grid-column: span 2;\n }\n .cell[data-span="3"] {\n grid-column: span 3;\n }\n .cell[data-span="4"] {\n grid-column: span 4;\n }\n /* Responsive 1-col fallback (iframe viewport width): collapse and neutralize spans. */\n @media (max-width: 560px) {\n .grid {\n grid-template-columns: 1fr;\n }\n .cell {\n grid-column: auto !important;\n }\n }\n .kpi .kpi-label {\n font-size: 12px;\n color: var(--muted);\n }\n .kpi .kpi-value {\n font-size: 26px;\n font-weight: 700;\n font-variant-numeric: tabular-nums;\n }\n .kpi .kpi-delta {\n font-size: 14px;\n font-weight: 600;\n margin-left: 8px;\n }\n .kpi .kpi-delta.up {\n color: #16a34a;\n }\n .kpi .kpi-delta.down {\n color: #dc2626;\n }\n .kpi .kpi-caption {\n font-size: 12px;\n color: var(--muted);\n margin-top: 2px;\n }\n .text-block {\n font-size: 13px;\n line-height: 1.5;\n }\n .text-block h3 {\n font-size: 13px;\n margin: 0 0 4px;\n }\n .unsupported {\n color: var(--muted);\n font-size: 13px;\n }\n .dash-notes {\n color: var(--muted);\n font-size: 12px;\n margin-top: 10px;\n }\n .cell-notes {\n color: var(--muted);\n font-size: 11px;\n margin-top: 8px;\n }\n </style>\n <script type="module" crossorigin>var nE=Object.defineProperty;var iE=(e,t,r)=>t in e?nE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Oe=(e,t,r)=>iE(e,typeof t!="symbol"?t+"":t,r);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const n of document.querySelectorAll(\'link[rel="modulepreload"]\'))i(n);new MutationObserver(n=>{for(const a of n)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function r(n){const a={};return n.integrity&&(a.integrity=n.integrity),n.referrerPolicy&&(a.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?a.credentials="include":n.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function i(n){if(n.ep)return;n.ep=!0;const a=r(n);fetch(n.href,a)}})();const aE="modulepreload",oE=function(e,t){return new URL(e,t).href},eS={},sE=function(t,r,i){let n=Promise.resolve();if(r&&r.length>0){let o=function(c){return Promise.all(c.map(f=>Promise.resolve(f).then(d=>({status:"fulfilled",value:d}),d=>({status:"rejected",reason:d}))))};const s=document.getElementsByTagName("link"),u=document.querySelector("meta[property=csp-nonce]"),l=(u==null?void 0:u.nonce)||(u==null?void 0:u.getAttribute("nonce"));n=o(r.map(c=>{if(c=oE(c,i),c in eS)return;eS[c]=!0;const f=c.endsWith(".css"),d=f?\'[rel="stylesheet"]\':"";if(!!i)for(let p=s.length-1;p>=0;p--){const g=s[p];if(g.href===c&&(!f||g.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${d}`))return;const v=document.createElement("link");if(v.rel=f?"stylesheet":aE,f||(v.as="script"),v.crossOrigin="",v.href=c,l&&v.setAttribute("nonce",l),document.head.appendChild(v),f)return new Promise((p,g)=>{v.addEventListener("load",p),v.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${c}`)))})}))}function a(o){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=o,window.dispatchEvent(s),!s.defaultPrevented)throw o}return n.then(o=>{for(const s of o||[])s.status==="rejected"&&a(s.reason);return t().catch(a)})};var tS;const ym=Object.freeze({status:"aborted"});function M(e,t,r){function i(s,u){if(s._zod||Object.defineProperty(s,"_zod",{value:{def:u,constr:o,traits:new Set},enumerable:!1}),s._zod.traits.has(e))return;s._zod.traits.add(e),t(s,u);const l=o.prototype,c=Object.keys(l);for(let f=0;f<c.length;f++){const d=c[f];d in s||(s[d]=l[d].bind(s))}}const n=(r==null?void 0:r.Parent)??Object;class a extends n{}Object.defineProperty(a,"name",{value:e});function o(s){var u;const l=r!=null&&r.Parent?new a:this;i(l,s),(u=l._zod).deferred??(u.deferred=[]);for(const c of l._zod.deferred)c();return l}return Object.defineProperty(o,"init",{value:i}),Object.defineProperty(o,Symbol.hasInstance,{value:s=>{var u,l;return r!=null&&r.Parent&&s instanceof r.Parent?!0:(l=(u=s==null?void 0:s._zod)==null?void 0:u.traits)==null?void 0:l.has(e)}}),Object.defineProperty(o,"name",{value:e}),o}const _m=Symbol("zod_brand");class Vi extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class Jf extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}(tS=globalThis).__zod_globalConfig??(tS.__zod_globalConfig={});const Fs=globalThis.__zod_globalConfig;function pt(e){return e&&Object.assign(Fs,e),Fs}function uE(e){return e}function lE(e){return e}function cE(e){}function fE(e){throw new Error("Unexpected value in exhaustive check")}function dE(e){}function bm(e){const t=Object.values(e).filter(i=>typeof i=="number");return Object.entries(e).filter(([i,n])=>t.indexOf(+i)===-1).map(([i,n])=>n)}function j(e,t="|"){return e.map(r=>ie(r)).join(t)}function tf(e,t){return typeof t=="bigint"?t.toString():t}function mu(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function ca(e){return e==null}function Qf(e){const t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function uk(e,t){const r=e/t,i=Math.round(r),n=Number.EPSILON*Math.max(Math.abs(r),1);return Math.abs(r-i)<n?0:r-i}const rS=Symbol("evaluating");function be(e,t,r){let i;Object.defineProperty(e,t,{get(){if(i!==rS)return i===void 0&&(i=rS,i=r()),i},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function hE(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function ai(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function ln(...e){const t={};for(const r of e){const i=Object.getOwnPropertyDescriptors(r);Object.assign(t,i)}return Object.defineProperties({},t)}function vE(e){return ln(e._zod.def)}function pE(e,t){return t?t.reduce((r,i)=>r==null?void 0:r[i],e):e}function gE(e){const t=Object.keys(e),r=t.map(i=>e[i]);return Promise.all(r).then(i=>{const n={};for(let a=0;a<t.length;a++)n[t[a]]=i[a];return n})}function mE(e=10){const t="abcdefghijklmnopqrstuvwxyz";let r="";for(let i=0;i<e;i++)r+=t[Math.floor(Math.random()*t.length)];return r}function Ap(e){return JSON.stringify(e)}function lk(e){return e.toLowerCase().trim().replace(/[^\\w\\s-]/g,"").replace(/[\\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const Sm="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function to(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const ck=mu(()=>{var e;if(Fs.jitless||typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)!=null&&e.includes("Cloudflare")))return!1;try{const t=Function;return new t(""),!0}catch{return!1}});function Ki(e){if(to(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const r=t.prototype;return!(to(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function ed(e){return Ki(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}function yE(e){let t=0;for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&t++;return t}const _E=e=>{const 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}`)}},rf=new Set(["string","number","symbol"]),fk=new Set(["string","number","bigint","boolean","symbol","undefined"]);function wn(e){return e.replace(/[.*+?^${}()|[\\]\\\\]/g,"\\\\$&")}function rr(e,t,r){const i=new e._zod.constr(t??e._zod.def);return(!t||r!=null&&r.parent)&&(i._zod.parent=e),i}function U(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if((t==null?void 0:t.message)!==void 0){if((t==null?void 0: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 bE(e){let t;return new Proxy({},{get(r,i,n){return t??(t=e()),Reflect.get(t,i,n)},set(r,i,n,a){return t??(t=e()),Reflect.set(t,i,n,a)},has(r,i){return t??(t=e()),Reflect.has(t,i)},deleteProperty(r,i){return t??(t=e()),Reflect.deleteProperty(t,i)},ownKeys(r){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(r,i){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,i)},defineProperty(r,i,n){return t??(t=e()),Reflect.defineProperty(t,i,n)}})}function ie(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function dk(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const hk={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]},vk={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function pk(e,t){const r=e._zod.def,i=r.checks;if(i&&i.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const a=ln(e._zod.def,{get shape(){const o={};for(const s in t){if(!(s in r.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&(o[s]=r.shape[s])}return ai(this,"shape",o),o},checks:[]});return rr(e,a)}function gk(e,t){const r=e._zod.def,i=r.checks;if(i&&i.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const a=ln(e._zod.def,{get shape(){const o={...e._zod.def.shape};for(const s in t){if(!(s in r.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&delete o[s]}return ai(this,"shape",o),o},checks:[]});return rr(e,a)}function mk(e,t){if(!Ki(t))throw new Error("Invalid input to extend: expected a plain object");const r=e._zod.def.checks;if(r&&r.length>0){const a=e._zod.def.shape;for(const o in t)if(Object.getOwnPropertyDescriptor(a,o)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const n=ln(e._zod.def,{get shape(){const a={...e._zod.def.shape,...t};return ai(this,"shape",a),a}});return rr(e,n)}function yk(e,t){if(!Ki(t))throw new Error("Invalid input to safeExtend: expected a plain object");const r=ln(e._zod.def,{get shape(){const i={...e._zod.def.shape,...t};return ai(this,"shape",i),i}});return rr(e,r)}function _k(e,t){var i;if((i=e._zod.def.checks)!=null&&i.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");const r=ln(e._zod.def,{get shape(){const n={...e._zod.def.shape,...t._zod.def.shape};return ai(this,"shape",n),n},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return rr(e,r)}function bk(e,t,r){const n=t._zod.def.checks;if(n&&n.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const o=ln(t._zod.def,{get shape(){const s=t._zod.def.shape,u={...s};if(r)for(const l in r){if(!(l in s))throw new Error(`Unrecognized key: "${l}"`);r[l]&&(u[l]=e?new e({type:"optional",innerType:s[l]}):s[l])}else for(const l in s)u[l]=e?new e({type:"optional",innerType:s[l]}):s[l];return ai(this,"shape",u),u},checks:[]});return rr(t,o)}function Sk(e,t,r){const i=ln(t._zod.def,{get shape(){const n=t._zod.def.shape,a={...n};if(r)for(const o in r){if(!(o in a))throw new Error(`Unrecognized key: "${o}"`);r[o]&&(a[o]=new e({type:"nonoptional",innerType:n[o]}))}else for(const o in n)a[o]=new e({type:"nonoptional",innerType:n[o]});return ai(this,"shape",a),a}});return rr(t,i)}function Bi(e,t=0){var r;if(e.aborted===!0)return!0;for(let i=t;i<e.issues.length;i++)if(((r=e.issues[i])==null?void 0:r.continue)!==!0)return!0;return!1}function wk(e,t=0){var r;if(e.aborted===!0)return!0;for(let i=t;i<e.issues.length;i++)if(((r=e.issues[i])==null?void 0:r.continue)===!1)return!0;return!1}function _r(e,t){return t.map(r=>{var i;return(i=r).path??(i.path=[]),r.path.unshift(e),r})}function ms(e){return typeof e=="string"?e:e==null?void 0:e.message}function er(e,t,r){var u,l,c,f,d,h;const i=e.message?e.message:ms((c=(l=(u=e.inst)==null?void 0:u._zod.def)==null?void 0:l.error)==null?void 0:c.call(l,e))??ms((f=t==null?void 0:t.error)==null?void 0:f.call(t,e))??ms((d=r.customError)==null?void 0:d.call(r,e))??ms((h=r.localeError)==null?void 0:h.call(r,e))??"Invalid input",{inst:n,continue:a,input:o,...s}=e;return s.path??(s.path=[]),s.message=i,t!=null&&t.reportInput&&(s.input=o),s}function td(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function rd(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function ae(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";const r=e;if(r&&Object.getPrototypeOf(r)!==Object.prototype&&"constructor"in r&&r.constructor)return r.constructor.name}}return t}function ro(...e){const[t,r,i]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:i}:{...t}}function SE(e){return Object.entries(e).filter(([t,r])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function xk(e){const t=atob(e),r=new Uint8Array(t.length);for(let i=0;i<t.length;i++)r[i]=t.charCodeAt(i);return r}function Tk(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}function wE(e){const t=e.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-t.length%4)%4);return xk(t+r)}function xE(e){return Tk(e).replace(/\\+/g,"-").replace(/\\//g,"_").replace(/=/g,"")}function TE(e){const t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");const r=new Uint8Array(t.length/2);for(let i=0;i<t.length;i+=2)r[i/2]=Number.parseInt(t.slice(i,i+2),16);return r}function kE(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}class IE{constructor(...t){}}const wm=Object.freeze(Object.defineProperty({__proto__:null,BIGINT_FORMAT_RANGES:vk,Class:IE,NUMBER_FORMAT_RANGES:hk,aborted:Bi,allowsEval:ck,assert:dE,assertEqual:uE,assertIs:cE,assertNever:fE,assertNotEqual:lE,assignProp:ai,base64ToUint8Array:xk,base64urlToUint8Array:wE,cached:mu,captureStackTrace:Sm,cleanEnum:SE,cleanRegex:Qf,clone:rr,cloneDef:vE,createTransparentProxy:bE,defineLazy:be,esc:Ap,escapeRegex:wn,explicitlyAborted:wk,extend:mk,finalizeIssue:er,floatSafeRemainder:uk,getElementAtPath:pE,getEnumValues:bm,getLengthableOrigin:rd,getParsedType:_E,getSizableOrigin:td,hexToUint8Array:TE,isObject:to,isPlainObject:Ki,issue:ro,joinValues:j,jsonStringifyReplacer:tf,merge:_k,mergeDefs:ln,normalizeParams:U,nullish:ca,numKeys:yE,objectClone:hE,omit:gk,optionalKeys:dk,parsedType:ae,partial:bk,pick:pk,prefixIssues:_r,primitiveTypes:fk,promiseAllObject:gE,propertyKeyTypes:rf,randomString:mE,required:Sk,safeExtend:yk,shallowClone:ed,slugify:lk,stringifyPrimitive:ie,uint8ArrayToBase64:Tk,uint8ArrayToBase64url:xE,uint8ArrayToHex:kE,unwrapMessage:ms},Symbol.toStringTag,{value:"Module"})),kk=(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,tf,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},xm=M("$ZodError",kk),nr=M("$ZodError",kk,{Parent:Error});function nd(e,t=r=>r.message){const r={},i=[];for(const n of e.issues)n.path.length>0?(r[n.path[0]]=r[n.path[0]]||[],r[n.path[0]].push(t(n))):i.push(t(n));return{formErrors:i,fieldErrors:r}}function id(e,t=r=>r.message){const r={_errors:[]},i=(n,a=[])=>{for(const o of n.issues)if(o.code==="invalid_union"&&o.errors.length)o.errors.map(s=>i({issues:s},[...a,...o.path]));else if(o.code==="invalid_key")i({issues:o.issues},[...a,...o.path]);else if(o.code==="invalid_element")i({issues:o.issues},[...a,...o.path]);else{const s=[...a,...o.path];if(s.length===0)r._errors.push(t(o));else{let u=r,l=0;for(;l<s.length;){const c=s[l];l===s.length-1?(u[c]=u[c]||{_errors:[]},u[c]._errors.push(t(o))):u[c]=u[c]||{_errors:[]},u=u[c],l++}}}};return i(e),r}function Tm(e,t=r=>r.message){const r={errors:[]},i=(n,a=[])=>{var o,s;for(const u of n.issues)if(u.code==="invalid_union"&&u.errors.length)u.errors.map(l=>i({issues:l},[...a,...u.path]));else if(u.code==="invalid_key")i({issues:u.issues},[...a,...u.path]);else if(u.code==="invalid_element")i({issues:u.issues},[...a,...u.path]);else{const l=[...a,...u.path];if(l.length===0){r.errors.push(t(u));continue}let c=r,f=0;for(;f<l.length;){const d=l[f],h=f===l.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]),h&&c.errors.push(t(u)),f++}}};return i(e),r}function Ik(e){const t=[],r=e.map(i=>typeof i=="object"?i.key:i);for(const i of r)typeof i=="number"?t.push(`[${i}]`):typeof i=="symbol"?t.push(`[${JSON.stringify(String(i))}]`):/[^\\w$]/.test(i)?t.push(`[${JSON.stringify(i)}]`):(t.length&&t.push("."),t.push(i));return t.join("")}function km(e){var i;const t=[],r=[...e.issues].sort((n,a)=>(n.path??[]).length-(a.path??[]).length);for(const n of r)t.push(`\u2716 ${n.message}`),(i=n.path)!=null&&i.length&&t.push(` \u2192 at ${Ik(n.path)}`);return t.join(`\n`)}const yu=e=>(t,r,i,n)=>{const a=i?{...i,async:!1}:{async:!1},o=t._zod.run({value:r,issues:[]},a);if(o instanceof Promise)throw new Vi;if(o.issues.length){const s=new((n==null?void 0:n.Err)??e)(o.issues.map(u=>er(u,a,pt())));throw Sm(s,n==null?void 0:n.callee),s}return o.value},Pp=yu(nr),_u=e=>async(t,r,i,n)=>{const a=i?{...i,async:!0}:{async:!0};let o=t._zod.run({value:r,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){const s=new((n==null?void 0:n.Err)??e)(o.issues.map(u=>er(u,a,pt())));throw Sm(s,n==null?void 0:n.callee),s}return o.value},Mp=_u(nr),bu=e=>(t,r,i)=>{const n=i?{...i,async:!1}:{async:!1},a=t._zod.run({value:r,issues:[]},n);if(a instanceof Promise)throw new Vi;return a.issues.length?{success:!1,error:new(e??xm)(a.issues.map(o=>er(o,n,pt())))}:{success:!0,data:a.value}},Im=bu(nr),Su=e=>async(t,r,i)=>{const n=i?{...i,async:!0}:{async:!0};let a=t._zod.run({value:r,issues:[]},n);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(o=>er(o,n,pt())))}:{success:!0,data:a.value}},$k=Su(nr),$m=e=>(t,r,i)=>{const n=i?{...i,direction:"backward"}:{direction:"backward"};return yu(e)(t,r,n)},$E=$m(nr),Dm=e=>(t,r,i)=>yu(e)(t,r,i),DE=Dm(nr),Cm=e=>async(t,r,i)=>{const n=i?{...i,direction:"backward"}:{direction:"backward"};return _u(e)(t,r,n)},CE=Cm(nr),Am=e=>async(t,r,i)=>_u(e)(t,r,i),AE=Am(nr),Pm=e=>(t,r,i)=>{const n=i?{...i,direction:"backward"}:{direction:"backward"};return bu(e)(t,r,n)},PE=Pm(nr),Mm=e=>(t,r,i)=>bu(e)(t,r,i),ME=Mm(nr),Lm=e=>async(t,r,i)=>{const n=i?{...i,direction:"backward"}:{direction:"backward"};return Su(e)(t,r,n)},LE=Lm(nr),Om=e=>async(t,r,i)=>Su(e)(t,r,i),OE=Om(nr),Dk=/^[cC][0-9a-z]{6,}$/,Ck=/^[0-9a-z]+$/,Ak=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Pk=/^[0-9a-vA-V]{20}$/,Mk=/^[A-Za-z0-9]{27}$/,Lk=/^[a-zA-Z0-9_-]{21}$/,Ok=/^P(?:(\\d+W)|(?!.*W)(?=\\d|T\\d)(\\d+Y)?(\\d+M)?(\\d+D)?(T(?=\\d)(\\d+H)?(\\d+M)?(\\d+([.,]\\d+)?S)?)?)$/,EE=/^[-+]?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)?)??$/,Ek=/^([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})$/,no=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)$/,zE=no(4),RE=no(6),NE=no(7),zk=/^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_\'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$/,UE=/^[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])?)*$/,BE=/^(([^<>()\\[\\]\\\\.,;:\\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,}))$/,Rk=/^[^\\s@"]{1,64}@[^\\s@]{1,255}$/u,FE=Rk,jE=/^[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])?)*$/,ZE="^(\\\\p{Extended_Pictographic}|\\\\p{Emoji_Component})+$";function Nk(){return new RegExp(ZE,"u")}const Uk=/^(?:(?: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])$/,Bk=/^(([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}|:))$/,Fk=e=>{const t=wn(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},jk=/^((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])$/,Zk=/^(([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])$/,Vk=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Em=/^[A-Za-z0-9_-]*$/,Gk=/^(?=.{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])?)*\\.?$/,Hk=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,}$/,zm=/^https?$/,Wk=/^\\+[1-9]\\d{6,14}$/,qk="(?:(?:\\\\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])))",Yk=new RegExp(`^${qk}$`);function Xk(e){const 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 Kk(e){return new RegExp(`^${Xk(e)}$`)}function Jk(e){const t=Xk({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\\\d|2[0-3]):[0-5]\\\\d)");const i=`${t}(?:${r.join("|")})`;return new RegExp(`^${qk}T(?:${i})$`)}const Qk=e=>{const t=e?`[\\\\s\\\\S]{${(e==null?void 0:e.minimum)??0},${(e==null?void 0:e.maximum)??""}}`:"[\\\\s\\\\S]*";return new RegExp(`^${t}$`)},eI=/^-?\\d+n?$/,tI=/^-?\\d+$/,Rm=/^-?\\d+(?:\\.\\d+)?$/,rI=/^(?:true|false)$/i,nI=/^null$/i,iI=/^undefined$/i,aI=/^[^A-Z]*$/,oI=/^[^a-z]*$/,sI=/^[0-9a-fA-F]*$/;function wu(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function xu(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}const VE=/^[0-9a-fA-F]{32}$/,GE=wu(22,"=="),HE=xu(22),WE=/^[0-9a-fA-F]{40}$/,qE=wu(27,"="),YE=xu(27),XE=/^[0-9a-fA-F]{64}$/,KE=wu(43,"="),JE=xu(43),QE=/^[0-9a-fA-F]{96}$/,e2=wu(64,""),t2=xu(64),r2=/^[0-9a-fA-F]{128}$/,n2=wu(86,"=="),i2=xu(86),ad=Object.freeze(Object.defineProperty({__proto__:null,base64:Vk,base64url:Em,bigint:eI,boolean:rI,browserEmail:jE,cidrv4:jk,cidrv6:Zk,cuid:Dk,cuid2:Ck,date:Yk,datetime:Jk,domain:Hk,duration:Ok,e164:Wk,email:zk,emoji:Nk,extendedDuration:EE,guid:Ek,hex:sI,hostname:Gk,html5Email:UE,httpProtocol:zm,idnEmail:FE,integer:tI,ipv4:Uk,ipv6:Bk,ksuid:Mk,lowercase:aI,mac:Fk,md5_base64:GE,md5_base64url:HE,md5_hex:VE,nanoid:Lk,null:nI,number:Rm,rfc5322Email:BE,sha1_base64:qE,sha1_base64url:YE,sha1_hex:WE,sha256_base64:KE,sha256_base64url:JE,sha256_hex:XE,sha384_base64:e2,sha384_base64url:t2,sha384_hex:QE,sha512_base64:n2,sha512_base64url:i2,sha512_hex:r2,string:Qk,time:Kk,ulid:Ak,undefined:iI,unicodeEmail:Rk,uppercase:oI,uuid:no,uuid4:zE,uuid6:RE,uuid7:NE,xid:Pk},Symbol.toStringTag,{value:"Module"})),Ke=M("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),uI={number:"number",bigint:"bigint",object:"date"},Nm=M("$ZodCheckLessThan",(e,t)=>{Ke.init(e,t);const r=uI[typeof t.value];e._zod.onattach.push(i=>{const n=i._zod.bag,a=(t.inclusive?n.maximum:n.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<a&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value<=t.value:i.value<t.value)||i.issues.push({origin:r,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Um=M("$ZodCheckGreaterThan",(e,t)=>{Ke.init(e,t);const r=uI[typeof t.value];e._zod.onattach.push(i=>{const n=i._zod.bag,a=(t.inclusive?n.minimum:n.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>a&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value>=t.value:i.value>t.value)||i.issues.push({origin:r,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),lI=M("$ZodCheckMultipleOf",(e,t)=>{Ke.init(e,t),e._zod.onattach.push(r=>{var i;(i=r._zod.bag).multipleOf??(i.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):uk(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})}}),cI=M("$ZodCheckNumberFormat",(e,t)=>{var o;Ke.init(e,t),t.format=t.format||"float64";const r=(o=t.format)==null?void 0:o.includes("int"),i=r?"int":"number",[n,a]=hk[t.format];e._zod.onattach.push(s=>{const u=s._zod.bag;u.format=t.format,u.minimum=n,u.maximum=a,r&&(u.pattern=tI)}),e._zod.check=s=>{const u=s.value;if(r){if(!Number.isInteger(u)){s.issues.push({expected:i,format:t.format,code:"invalid_type",continue:!1,input:u,inst:e});return}if(!Number.isSafeInteger(u)){u>0?s.issues.push({input:u,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:!0,continue:!t.abort}):s.issues.push({input:u,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:!0,continue:!t.abort});return}}u<n&&s.issues.push({origin:"number",input:u,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),u>a&&s.issues.push({origin:"number",input:u,code:"too_big",maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),fI=M("$ZodCheckBigIntFormat",(e,t)=>{Ke.init(e,t);const[r,i]=vk[t.format];e._zod.onattach.push(n=>{const a=n._zod.bag;a.format=t.format,a.minimum=r,a.maximum=i}),e._zod.check=n=>{const a=n.value;a<r&&n.issues.push({origin:"bigint",input:a,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),a>i&&n.issues.push({origin:"bigint",input:a,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),dI=M("$ZodCheckMaxSize",(e,t)=>{var r;Ke.init(e,t),(r=e._zod.def).when??(r.when=i=>{const n=i.value;return!ca(n)&&n.size!==void 0}),e._zod.onattach.push(i=>{const n=i._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(i._zod.bag.maximum=t.maximum)}),e._zod.check=i=>{const n=i.value;n.size<=t.maximum||i.issues.push({origin:td(n),code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),hI=M("$ZodCheckMinSize",(e,t)=>{var r;Ke.init(e,t),(r=e._zod.def).when??(r.when=i=>{const n=i.value;return!ca(n)&&n.size!==void 0}),e._zod.onattach.push(i=>{const n=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(i._zod.bag.minimum=t.minimum)}),e._zod.check=i=>{const n=i.value;n.size>=t.minimum||i.issues.push({origin:td(n),code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),vI=M("$ZodCheckSizeEquals",(e,t)=>{var r;Ke.init(e,t),(r=e._zod.def).when??(r.when=i=>{const n=i.value;return!ca(n)&&n.size!==void 0}),e._zod.onattach.push(i=>{const n=i._zod.bag;n.minimum=t.size,n.maximum=t.size,n.size=t.size}),e._zod.check=i=>{const n=i.value,a=n.size;if(a===t.size)return;const o=a>t.size;i.issues.push({origin:td(n),...o?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),pI=M("$ZodCheckMaxLength",(e,t)=>{var r;Ke.init(e,t),(r=e._zod.def).when??(r.when=i=>{const n=i.value;return!ca(n)&&n.length!==void 0}),e._zod.onattach.push(i=>{const n=i._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(i._zod.bag.maximum=t.maximum)}),e._zod.check=i=>{const n=i.value;if(n.length<=t.maximum)return;const o=rd(n);i.issues.push({origin:o,code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),gI=M("$ZodCheckMinLength",(e,t)=>{var r;Ke.init(e,t),(r=e._zod.def).when??(r.when=i=>{const n=i.value;return!ca(n)&&n.length!==void 0}),e._zod.onattach.push(i=>{const n=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(i._zod.bag.minimum=t.minimum)}),e._zod.check=i=>{const n=i.value;if(n.length>=t.minimum)return;const o=rd(n);i.issues.push({origin:o,code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),mI=M("$ZodCheckLengthEquals",(e,t)=>{var r;Ke.init(e,t),(r=e._zod.def).when??(r.when=i=>{const n=i.value;return!ca(n)&&n.length!==void 0}),e._zod.onattach.push(i=>{const n=i._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=i=>{const n=i.value,a=n.length;if(a===t.length)return;const o=rd(n),s=a>t.length;i.issues.push({origin:o,...s?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),Tu=M("$ZodCheckStringFormat",(e,t)=>{var r,i;Ke.init(e,t),e._zod.onattach.push(n=>{const a=n._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=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(i=e._zod).check??(i.check=()=>{})}),yI=M("$ZodCheckRegex",(e,t)=>{Tu.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})}}),_I=M("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=aI),Tu.init(e,t)}),bI=M("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=oI),Tu.init(e,t)}),SI=M("$ZodCheckIncludes",(e,t)=>{Ke.init(e,t);const r=wn(t.includes),i=new RegExp(typeof t.position=="number"?`^.{${t.position}}${r}`:r);t.pattern=i,e._zod.onattach.push(n=>{const a=n._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(i)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),wI=M("$ZodCheckStartsWith",(e,t)=>{Ke.init(e,t);const r=new RegExp(`^${wn(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(i=>{const n=i._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=i=>{i.value.startsWith(t.prefix)||i.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:i.value,inst:e,continue:!t.abort})}}),xI=M("$ZodCheckEndsWith",(e,t)=>{Ke.init(e,t);const r=new RegExp(`.*${wn(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(i=>{const n=i._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=i=>{i.value.endsWith(t.suffix)||i.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:i.value,inst:e,continue:!t.abort})}});function nS(e,t,r){e.issues.length&&t.issues.push(..._r(r,e.issues))}const TI=M("$ZodCheckProperty",(e,t)=>{Ke.init(e,t),e._zod.check=r=>{const i=t.schema._zod.run({value:r.value[t.property],issues:[]},{});if(i instanceof Promise)return i.then(n=>nS(n,r,t.property));nS(i,r,t.property)}}),kI=M("$ZodCheckMimeType",(e,t)=>{Ke.init(e,t);const r=new Set(t.mime);e._zod.onattach.push(i=>{i._zod.bag.mime=t.mime}),e._zod.check=i=>{r.has(i.value.type)||i.issues.push({code:"invalid_value",values:t.mime,input:i.value.type,inst:e,continue:!t.abort})}}),II=M("$ZodCheckOverwrite",(e,t)=>{Ke.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});class $I{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}const i=t.split(`\n`).filter(o=>o),n=Math.min(...i.map(o=>o.length-o.trimStart().length)),a=i.map(o=>o.slice(n)).map(o=>" ".repeat(this.indent*2)+o);for(const o of a)this.content.push(o)}compile(){const t=Function,r=this==null?void 0:this.args,n=[...((this==null?void 0:this.content)??[""]).map(a=>` ${a}`)];return new t(...r,n.join(`\n`))}}const DI={major:4,minor:4,patch:3},he=M("$ZodType",(e,t)=>{var n;var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=DI;const i=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&i.unshift(e);for(const a of i)for(const o of a._zod.onattach)o(e);if(i.length===0)(r=e._zod).deferred??(r.deferred=[]),(n=e._zod.deferred)==null||n.push(()=>{e._zod.run=e._zod.parse});else{const a=(s,u,l)=>{let c=Bi(s),f;for(const d of u){if(d._zod.def.when){if(wk(s)||!d._zod.def.when(s))continue}else if(c)continue;const h=s.issues.length,v=d._zod.check(s);if(v instanceof Promise&&(l==null?void 0:l.async)===!1)throw new Vi;if(f||v instanceof Promise)f=(f??Promise.resolve()).then(async()=>{await v,s.issues.length!==h&&(c||(c=Bi(s,h)))});else{if(s.issues.length===h)continue;c||(c=Bi(s,h))}}return f?f.then(()=>s):s},o=(s,u,l)=>{if(Bi(s))return s.aborted=!0,s;const c=a(u,i,l);if(c instanceof Promise){if(l.async===!1)throw new Vi;return c.then(f=>e._zod.parse(f,l))}return e._zod.parse(c,l)};e._zod.run=(s,u)=>{if(u.skipChecks)return e._zod.parse(s,u);if(u.direction==="backward"){const c=e._zod.parse({value:s.value,issues:[]},{...u,skipChecks:!0});return c instanceof Promise?c.then(f=>o(f,s,u)):o(c,s,u)}const l=e._zod.parse(s,u);if(l instanceof Promise){if(u.async===!1)throw new Vi;return l.then(c=>a(c,i,u))}return a(l,i,u)}}be(e,"~standard",()=>({validate:a=>{var o;try{const s=Im(e,a);return s.success?{value:s.data}:{issues:(o=s.error)==null?void 0:o.issues}}catch{return $k(e,a).then(u=>{var l;return u.success?{value:u.data}:{issues:(l=u.error)==null?void 0:l.issues}})}},vendor:"zod",version:1}))}),ku=M("$ZodString",(e,t)=>{var r;he.init(e,t),e._zod.pattern=[...((r=e==null?void 0:e._zod.bag)==null?void 0:r.patterns)??[]].pop()??Qk(e._zod.bag),e._zod.parse=(i,n)=>{if(t.coerce)try{i.value=String(i.value)}catch{}return typeof i.value=="string"||i.issues.push({expected:"string",code:"invalid_type",input:i.value,inst:e}),i}}),qe=M("$ZodStringFormat",(e,t)=>{Tu.init(e,t),ku.init(e,t)}),CI=M("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=Ek),qe.init(e,t)}),AI=M("$ZodUUID",(e,t)=>{if(t.version){const i={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(i===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=no(i))}else t.pattern??(t.pattern=no());qe.init(e,t)}),PI=M("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=zk),qe.init(e,t)}),MI=M("$ZodURL",(e,t)=>{qe.init(e,t),e._zod.check=r=>{var i;try{const n=r.value.trim();if(!t.normalize&&((i=t.protocol)==null?void 0:i.source)===zm.source&&!/^https?:\\/\\//i.test(n)){r.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:r.value,inst:e,continue:!t.abort});return}const a=new URL(n);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(a.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(a.protocol.endsWith(":")?a.protocol.slice(0,-1):a.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=a.href:r.value=n;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),LI=M("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=Nk()),qe.init(e,t)}),OI=M("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=Lk),qe.init(e,t)}),EI=M("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=Dk),qe.init(e,t)}),zI=M("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Ck),qe.init(e,t)}),RI=M("$ZodULID",(e,t)=>{t.pattern??(t.pattern=Ak),qe.init(e,t)}),NI=M("$ZodXID",(e,t)=>{t.pattern??(t.pattern=Pk),qe.init(e,t)}),UI=M("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=Mk),qe.init(e,t)}),BI=M("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Jk(t)),qe.init(e,t)}),FI=M("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Yk),qe.init(e,t)}),jI=M("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Kk(t)),qe.init(e,t)}),ZI=M("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Ok),qe.init(e,t)}),VI=M("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Uk),qe.init(e,t),e._zod.bag.format="ipv4"}),GI=M("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Bk),qe.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})}}}),HI=M("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=Fk(t.delimiter)),qe.init(e,t),e._zod.bag.format="mac"}),WI=M("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=jk),qe.init(e,t)}),qI=M("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Zk),qe.init(e,t),e._zod.check=r=>{const i=r.value.split("/");try{if(i.length!==2)throw new Error;const[n,a]=i;if(!a)throw new Error;const o=Number(a);if(`${o}`!==a)throw new Error;if(o<0||o>128)throw new Error;new URL(`http://[${n}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function Bm(e){if(e==="")return!0;if(/\\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const YI=M("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Vk),qe.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{Bm(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function XI(e){if(!Em.test(e))return!1;const t=e.replace(/[-_]/g,i=>i==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return Bm(r)}const KI=M("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Em),qe.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{XI(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),JI=M("$ZodE164",(e,t)=>{t.pattern??(t.pattern=Wk),qe.init(e,t)});function QI(e,t=null){try{const r=e.split(".");if(r.length!==3)return!1;const[i]=r;if(!i)return!1;const n=JSON.parse(atob(i));return!("typ"in n&&(n==null?void 0:n.typ)!=="JWT"||!n.alg||t&&(!("alg"in n)||n.alg!==t))}catch{return!1}}const e$=M("$ZodJWT",(e,t)=>{qe.init(e,t),e._zod.check=r=>{QI(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),t$=M("$ZodCustomStringFormat",(e,t)=>{qe.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})}}),Fm=M("$ZodNumber",(e,t)=>{he.init(e,t),e._zod.pattern=e._zod.bag.pattern??Rm,e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=Number(r.value)}catch{}const n=r.value;if(typeof n=="number"&&!Number.isNaN(n)&&Number.isFinite(n))return r;const a=typeof n=="number"?Number.isNaN(n)?"NaN":Number.isFinite(n)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:n,inst:e,...a?{received:a}:{}}),r}}),r$=M("$ZodNumberFormat",(e,t)=>{cI.init(e,t),Fm.init(e,t)}),jm=M("$ZodBoolean",(e,t)=>{he.init(e,t),e._zod.pattern=rI,e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=!!r.value}catch{}const n=r.value;return typeof n=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:n,inst:e}),r}}),Zm=M("$ZodBigInt",(e,t)=>{he.init(e,t),e._zod.pattern=eI,e._zod.parse=(r,i)=>{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}}),n$=M("$ZodBigIntFormat",(e,t)=>{fI.init(e,t),Zm.init(e,t)}),i$=M("$ZodSymbol",(e,t)=>{he.init(e,t),e._zod.parse=(r,i)=>{const n=r.value;return typeof n=="symbol"||r.issues.push({expected:"symbol",code:"invalid_type",input:n,inst:e}),r}}),a$=M("$ZodUndefined",(e,t)=>{he.init(e,t),e._zod.pattern=iI,e._zod.values=new Set([void 0]),e._zod.parse=(r,i)=>{const n=r.value;return typeof n>"u"||r.issues.push({expected:"undefined",code:"invalid_type",input:n,inst:e}),r}}),o$=M("$ZodNull",(e,t)=>{he.init(e,t),e._zod.pattern=nI,e._zod.values=new Set([null]),e._zod.parse=(r,i)=>{const n=r.value;return n===null||r.issues.push({expected:"null",code:"invalid_type",input:n,inst:e}),r}}),s$=M("$ZodAny",(e,t)=>{he.init(e,t),e._zod.parse=r=>r}),u$=M("$ZodUnknown",(e,t)=>{he.init(e,t),e._zod.parse=r=>r}),l$=M("$ZodNever",(e,t)=>{he.init(e,t),e._zod.parse=(r,i)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)}),c$=M("$ZodVoid",(e,t)=>{he.init(e,t),e._zod.parse=(r,i)=>{const n=r.value;return typeof n>"u"||r.issues.push({expected:"void",code:"invalid_type",input:n,inst:e}),r}}),f$=M("$ZodDate",(e,t)=>{he.init(e,t),e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=new Date(r.value)}catch{}const n=r.value,a=n instanceof Date;return a&&!Number.isNaN(n.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:n,...a?{received:"Invalid Date"}:{},inst:e}),r}});function iS(e,t,r){e.issues.length&&t.issues.push(..._r(r,e.issues)),t.value[r]=e.value}const d$=M("$ZodArray",(e,t)=>{he.init(e,t),e._zod.parse=(r,i)=>{const n=r.value;if(!Array.isArray(n))return r.issues.push({expected:"array",code:"invalid_type",input:n,inst:e}),r;r.value=Array(n.length);const a=[];for(let o=0;o<n.length;o++){const s=n[o],u=t.element._zod.run({value:s,issues:[]},i);u instanceof Promise?a.push(u.then(l=>iS(l,r,o))):iS(u,r,o)}return a.length?Promise.all(a).then(()=>r):r}});function nf(e,t,r,i,n,a){const o=r in i;if(e.issues.length){if(n&&a&&!o)return;t.issues.push(..._r(r,e.issues))}if(!o&&!n){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[r]});return}e.value===void 0?o&&(t.value[r]=void 0):t.value[r]=e.value}function h$(e){var i,n,a,o;const t=Object.keys(e.shape);for(const s of t)if(!((o=(a=(n=(i=e.shape)==null?void 0:i[s])==null?void 0:n._zod)==null?void 0:a.traits)!=null&&o.has("$ZodType")))throw new Error(`Invalid element at key "${s}": expected a Zod schema`);const r=dk(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function v$(e,t,r,i,n,a){const o=[],s=n.keySet,u=n.catchall._zod,l=u.def.type,c=u.optin==="optional",f=u.optout==="optional";for(const d in t){if(d==="__proto__"||s.has(d))continue;if(l==="never"){o.push(d);continue}const h=u.run({value:t[d],issues:[]},i);h instanceof Promise?e.push(h.then(v=>nf(v,r,d,t,c,f))):nf(h,r,d,t,c,f)}return o.length&&r.issues.push({code:"unrecognized_keys",keys:o,input:t,inst:a}),e.length?Promise.all(e).then(()=>r):r}const p$=M("$ZodObject",(e,t)=>{he.init(e,t);const r=Object.getOwnPropertyDescriptor(t,"shape");if(!(r!=null&&r.get)){const s=t.shape;Object.defineProperty(t,"shape",{get:()=>{const u={...s};return Object.defineProperty(t,"shape",{value:u}),u}})}const i=mu(()=>h$(t));be(e._zod,"propValues",()=>{const s=t.shape,u={};for(const l in s){const c=s[l]._zod;if(c.values){u[l]??(u[l]=new Set);for(const f of c.values)u[l].add(f)}}return u});const n=to,a=t.catchall;let o;e._zod.parse=(s,u)=>{o??(o=i.value);const l=s.value;if(!n(l))return s.issues.push({expected:"object",code:"invalid_type",input:l,inst:e}),s;s.value={};const c=[],f=o.shape;for(const d of o.keys){const h=f[d],v=h._zod.optin==="optional",p=h._zod.optout==="optional",g=h._zod.run({value:l[d],issues:[]},u);g instanceof Promise?c.push(g.then(m=>nf(m,s,d,l,v,p))):nf(g,s,d,l,v,p)}return a?v$(c,l,s,u,i.value,e):c.length?Promise.all(c).then(()=>s):s}}),g$=M("$ZodObjectJIT",(e,t)=>{p$.init(e,t);const r=e._zod.parse,i=mu(()=>h$(t)),n=d=>{var _,b;const h=new $I(["shape","payload","ctx"]),v=i.value,p=S=>{const w=Ap(S);return`shape[${w}]._zod.run({ value: input[${w}], issues: [] }, ctx)`};h.write("const input = payload.value;");const g=Object.create(null);let m=0;for(const S of v.keys)g[S]=`key_${m++}`;h.write("const newResult = {};");for(const S of v.keys){const w=g[S],x=Ap(S),T=d[S],k=((_=T==null?void 0:T._zod)==null?void 0:_.optin)==="optional",I=((b=T==null?void 0:T._zod)==null?void 0:b.optout)==="optional";h.write(`const ${w} = ${p(S)};`),k&&I?h.write(`\n if (${w}.issues.length) {\n if (${x} in input) {\n payload.issues = payload.issues.concat(${w}.issues.map(iss => ({\n ...iss,\n path: iss.path ? [${x}, ...iss.path] : [${x}]\n })));\n }\n }\n \n if (${w}.value === undefined) {\n if (${x} in input) {\n newResult[${x}] = undefined;\n }\n } else {\n newResult[${x}] = ${w}.value;\n }\n \n `):k?h.write(`\n if (${w}.issues.length) {\n payload.issues = payload.issues.concat(${w}.issues.map(iss => ({\n ...iss,\n path: iss.path ? [${x}, ...iss.path] : [${x}]\n })));\n }\n \n if (${w}.value === undefined) {\n if (${x} in input) {\n newResult[${x}] = undefined;\n }\n } else {\n newResult[${x}] = ${w}.value;\n }\n \n `):h.write(`\n const ${w}_present = ${x} in input;\n if (${w}.issues.length) {\n payload.issues = payload.issues.concat(${w}.issues.map(iss => ({\n ...iss,\n path: iss.path ? [${x}, ...iss.path] : [${x}]\n })));\n }\n if (!${w}_present && !${w}.issues.length) {\n payload.issues.push({\n code: "invalid_type",\n expected: "nonoptional",\n input: undefined,\n path: [${x}]\n });\n }\n\n if (${w}_present) {\n if (${w}.value === undefined) {\n newResult[${x}] = undefined;\n } else {\n newResult[${x}] = ${w}.value;\n }\n }\n\n `)}h.write("payload.value = newResult;"),h.write("return payload;");const y=h.compile();return(S,w)=>y(d,S,w)};let a;const o=to,s=!Fs.jitless,l=s&&ck.value,c=t.catchall;let f;e._zod.parse=(d,h)=>{f??(f=i.value);const v=d.value;return o(v)?s&&l&&(h==null?void 0:h.async)===!1&&h.jitless!==!0?(a||(a=n(t.shape)),d=a(d,h),c?v$([],v,d,h,f,e):d):r(d,h):(d.issues.push({expected:"object",code:"invalid_type",input:v,inst:e}),d)}});function aS(e,t,r,i){for(const a of e)if(a.issues.length===0)return t.value=a.value,t;const n=e.filter(a=>!Bi(a));return n.length===1?(t.value=n[0].value,n[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(a=>a.issues.map(o=>er(o,i,pt())))}),t)}const od=M("$ZodUnion",(e,t)=>{he.init(e,t),be(e._zod,"optin",()=>t.options.some(i=>i._zod.optin==="optional")?"optional":void 0),be(e._zod,"optout",()=>t.options.some(i=>i._zod.optout==="optional")?"optional":void 0),be(e._zod,"values",()=>{if(t.options.every(i=>i._zod.values))return new Set(t.options.flatMap(i=>Array.from(i._zod.values)))}),be(e._zod,"pattern",()=>{if(t.options.every(i=>i._zod.pattern)){const i=t.options.map(n=>n._zod.pattern);return new RegExp(`^(${i.map(n=>Qf(n.source)).join("|")})$`)}});const r=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(i,n)=>{if(r)return r(i,n);let a=!1;const o=[];for(const s of t.options){const u=s._zod.run({value:i.value,issues:[]},n);if(u instanceof Promise)o.push(u),a=!0;else{if(u.issues.length===0)return u;o.push(u)}}return a?Promise.all(o).then(s=>aS(s,i,e,n)):aS(o,i,e,n)}});function oS(e,t,r,i){const n=e.filter(a=>a.issues.length===0);return n.length===1?(t.value=n[0].value,t):(n.length===0?t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(a=>a.issues.map(o=>er(o,i,pt())))}):t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:[],inclusive:!1}),t)}const m$=M("$ZodXor",(e,t)=>{od.init(e,t),t.inclusive=!1;const r=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(i,n)=>{if(r)return r(i,n);let a=!1;const o=[];for(const s of t.options){const u=s._zod.run({value:i.value,issues:[]},n);u instanceof Promise?(o.push(u),a=!0):o.push(u)}return a?Promise.all(o).then(s=>oS(s,i,e,n)):oS(o,i,e,n)}}),y$=M("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,od.init(e,t);const r=e._zod.parse;be(e._zod,"propValues",()=>{const n={};for(const a of t.options){const 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(const[s,u]of Object.entries(o)){n[s]||(n[s]=new Set);for(const l of u)n[s].add(l)}}return n});const i=mu(()=>{var o;const n=t.options,a=new Map;for(const s of n){const u=(o=s._zod.propValues)==null?void 0:o[t.discriminator];if(!u||u.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(s)}"`);for(const l of u){if(a.has(l))throw new Error(`Duplicate discriminator value "${String(l)}"`);a.set(l,s)}}return a});e._zod.parse=(n,a)=>{const o=n.value;if(!to(o))return n.issues.push({code:"invalid_type",expected:"object",input:o,inst:e}),n;const s=i.value.get(o==null?void 0:o[t.discriminator]);return s?s._zod.run(n,a):t.unionFallback||a.direction==="backward"?r(n,a):(n.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,options:Array.from(i.value.keys()),input:o,path:[t.discriminator],inst:e}),n)}}),_$=M("$ZodIntersection",(e,t)=>{he.init(e,t),e._zod.parse=(r,i)=>{const n=r.value,a=t.left._zod.run({value:n,issues:[]},i),o=t.right._zod.run({value:n,issues:[]},i);return a instanceof Promise||o instanceof Promise?Promise.all([a,o]).then(([u,l])=>sS(r,u,l)):sS(r,a,o)}});function Lp(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(Ki(e)&&Ki(t)){const r=Object.keys(t),i=Object.keys(e).filter(a=>r.indexOf(a)!==-1),n={...e,...t};for(const a of i){const o=Lp(e[a],t[a]);if(!o.valid)return{valid:!1,mergeErrorPath:[a,...o.mergeErrorPath]};n[a]=o.data}return{valid:!0,data:n}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const r=[];for(let i=0;i<e.length;i++){const n=e[i],a=t[i],o=Lp(n,a);if(!o.valid)return{valid:!1,mergeErrorPath:[i,...o.mergeErrorPath]};r.push(o.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function sS(e,t,r){const i=new Map;let n;for(const s of t.issues)if(s.code==="unrecognized_keys"){n??(n=s);for(const u of s.keys)i.has(u)||i.set(u,{}),i.get(u).l=!0}else e.issues.push(s);for(const s of r.issues)if(s.code==="unrecognized_keys")for(const u of s.keys)i.has(u)||i.set(u,{}),i.get(u).r=!0;else e.issues.push(s);const a=[...i].filter(([,s])=>s.l&&s.r).map(([s])=>s);if(a.length&&n&&e.issues.push({...n,keys:a}),Bi(e))return e;const o=Lp(t.value,r.value);if(!o.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}const Vm=M("$ZodTuple",(e,t)=>{he.init(e,t);const r=t.items;e._zod.parse=(i,n)=>{const a=i.value;if(!Array.isArray(a))return i.issues.push({input:a,inst:e,expected:"tuple",code:"invalid_type"}),i;i.value=[];const o=[],s=uS(r,"optin"),u=uS(r,"optout");if(!t.rest){if(a.length<s)return i.issues.push({code:"too_small",minimum:s,inclusive:!0,input:a,inst:e,origin:"array"}),i;a.length>r.length&&i.issues.push({code:"too_big",maximum:r.length,inclusive:!0,input:a,inst:e,origin:"array"})}const l=new Array(r.length);for(let c=0;c<r.length;c++){const f=r[c]._zod.run({value:a[c],issues:[]},n);f instanceof Promise?o.push(f.then(d=>{l[c]=d})):l[c]=f}if(t.rest){let c=r.length-1;const f=a.slice(r.length);for(const d of f){c++;const h=t.rest._zod.run({value:d,issues:[]},n);h instanceof Promise?o.push(h.then(v=>lS(v,i,c))):lS(h,i,c)}}return o.length?Promise.all(o).then(()=>cS(l,i,r,a,u)):cS(l,i,r,a,u)}});function uS(e,t){for(let r=e.length-1;r>=0;r--)if(e[r]._zod[t]!=="optional")return r+1;return 0}function lS(e,t,r){e.issues.length&&t.issues.push(..._r(r,e.issues)),t.value[r]=e.value}function cS(e,t,r,i,n){for(let a=0;a<r.length;a++){const o=e[a],s=a<i.length;if(o.issues.length){if(!s&&a>=n){t.value.length=a;break}t.issues.push(..._r(a,o.issues))}t.value[a]=o.value}for(let a=t.value.length-1;a>=i.length&&(r[a]._zod.optout==="optional"&&t.value[a]===void 0);a--)t.value.length=a;return t}const b$=M("$ZodRecord",(e,t)=>{he.init(e,t),e._zod.parse=(r,i)=>{const n=r.value;if(!Ki(n))return r.issues.push({expected:"record",code:"invalid_type",input:n,inst:e}),r;const a=[],o=t.keyType._zod.values;if(o){r.value={};const s=new Set;for(const l of o)if(typeof l=="string"||typeof l=="number"||typeof l=="symbol"){s.add(typeof l=="number"?l.toString():l);const c=t.keyType._zod.run({value:l,issues:[]},i);if(c instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(c.issues.length){r.issues.push({code:"invalid_key",origin:"record",issues:c.issues.map(h=>er(h,i,pt())),input:l,path:[l],inst:e});continue}const f=c.value,d=t.valueType._zod.run({value:n[l],issues:[]},i);d instanceof Promise?a.push(d.then(h=>{h.issues.length&&r.issues.push(..._r(l,h.issues)),r.value[f]=h.value})):(d.issues.length&&r.issues.push(..._r(l,d.issues)),r.value[f]=d.value)}let u;for(const l in n)s.has(l)||(u=u??[],u.push(l));u&&u.length>0&&r.issues.push({code:"unrecognized_keys",input:n,inst:e,keys:u})}else{r.value={};for(const s of Reflect.ownKeys(n)){if(s==="__proto__"||!Object.prototype.propertyIsEnumerable.call(n,s))continue;let u=t.keyType._zod.run({value:s,issues:[]},i);if(u instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof s=="string"&&Rm.test(s)&&u.issues.length){const f=t.keyType._zod.run({value:Number(s),issues:[]},i);if(f instanceof Promise)throw new Error("Async schemas not supported in object keys currently");f.issues.length===0&&(u=f)}if(u.issues.length){t.mode==="loose"?r.value[s]=n[s]:r.issues.push({code:"invalid_key",origin:"record",issues:u.issues.map(f=>er(f,i,pt())),input:s,path:[s],inst:e});continue}const c=t.valueType._zod.run({value:n[s],issues:[]},i);c instanceof Promise?a.push(c.then(f=>{f.issues.length&&r.issues.push(..._r(s,f.issues)),r.value[u.value]=f.value})):(c.issues.length&&r.issues.push(..._r(s,c.issues)),r.value[u.value]=c.value)}}return a.length?Promise.all(a).then(()=>r):r}}),S$=M("$ZodMap",(e,t)=>{he.init(e,t),e._zod.parse=(r,i)=>{const n=r.value;if(!(n instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:n,inst:e}),r;const a=[];r.value=new Map;for(const[o,s]of n){const u=t.keyType._zod.run({value:o,issues:[]},i),l=t.valueType._zod.run({value:s,issues:[]},i);u instanceof Promise||l instanceof Promise?a.push(Promise.all([u,l]).then(([c,f])=>{fS(c,f,r,o,n,e,i)})):fS(u,l,r,o,n,e,i)}return a.length?Promise.all(a).then(()=>r):r}});function fS(e,t,r,i,n,a,o){e.issues.length&&(rf.has(typeof i)?r.issues.push(..._r(i,e.issues)):r.issues.push({code:"invalid_key",origin:"map",input:n,inst:a,issues:e.issues.map(s=>er(s,o,pt()))})),t.issues.length&&(rf.has(typeof i)?r.issues.push(..._r(i,t.issues)):r.issues.push({origin:"map",code:"invalid_element",input:n,inst:a,key:i,issues:t.issues.map(s=>er(s,o,pt()))})),r.value.set(e.value,t.value)}const w$=M("$ZodSet",(e,t)=>{he.init(e,t),e._zod.parse=(r,i)=>{const n=r.value;if(!(n instanceof Set))return r.issues.push({input:n,inst:e,expected:"set",code:"invalid_type"}),r;const a=[];r.value=new Set;for(const o of n){const s=t.valueType._zod.run({value:o,issues:[]},i);s instanceof Promise?a.push(s.then(u=>dS(u,r))):dS(s,r)}return a.length?Promise.all(a).then(()=>r):r}});function dS(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}const x$=M("$ZodEnum",(e,t)=>{he.init(e,t);const r=bm(t.entries),i=new Set(r);e._zod.values=i,e._zod.pattern=new RegExp(`^(${r.filter(n=>rf.has(typeof n)).map(n=>typeof n=="string"?wn(n):n.toString()).join("|")})$`),e._zod.parse=(n,a)=>{const o=n.value;return i.has(o)||n.issues.push({code:"invalid_value",values:r,input:o,inst:e}),n}}),T$=M("$ZodLiteral",(e,t)=>{if(he.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");const r=new Set(t.values);e._zod.values=r,e._zod.pattern=new RegExp(`^(${t.values.map(i=>typeof i=="string"?wn(i):i?wn(i.toString()):String(i)).join("|")})$`),e._zod.parse=(i,n)=>{const a=i.value;return r.has(a)||i.issues.push({code:"invalid_value",values:t.values,input:a,inst:e}),i}}),k$=M("$ZodFile",(e,t)=>{he.init(e,t),e._zod.parse=(r,i)=>{const n=r.value;return n instanceof File||r.issues.push({expected:"file",code:"invalid_type",input:n,inst:e}),r}}),I$=M("$ZodTransform",(e,t)=>{he.init(e,t),e._zod.optin="optional",e._zod.parse=(r,i)=>{if(i.direction==="backward")throw new Jf(e.constructor.name);const n=t.transform(r.value,r);if(i.async)return(n instanceof Promise?n:Promise.resolve(n)).then(o=>(r.value=o,r.fallback=!0,r));if(n instanceof Promise)throw new Vi;return r.value=n,r.fallback=!0,r}});function hS(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}const Gm=M("$ZodOptional",(e,t)=>{he.init(e,t),e._zod.optin="optional",e._zod.optout="optional",be(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),be(e._zod,"pattern",()=>{const r=t.innerType._zod.pattern;return r?new RegExp(`^(${Qf(r.source)})?$`):void 0}),e._zod.parse=(r,i)=>{if(t.innerType._zod.optin==="optional"){const n=r.value,a=t.innerType._zod.run(r,i);return a instanceof Promise?a.then(o=>hS(o,n)):hS(a,n)}return r.value===void 0?r:t.innerType._zod.run(r,i)}}),$$=M("$ZodExactOptional",(e,t)=>{Gm.init(e,t),be(e._zod,"values",()=>t.innerType._zod.values),be(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(r,i)=>t.innerType._zod.run(r,i)}),D$=M("$ZodNullable",(e,t)=>{he.init(e,t),be(e._zod,"optin",()=>t.innerType._zod.optin),be(e._zod,"optout",()=>t.innerType._zod.optout),be(e._zod,"pattern",()=>{const r=t.innerType._zod.pattern;return r?new RegExp(`^(${Qf(r.source)}|null)$`):void 0}),be(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,i)=>r.value===null?r:t.innerType._zod.run(r,i)}),C$=M("$ZodDefault",(e,t)=>{he.init(e,t),e._zod.optin="optional",be(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,i)=>{if(i.direction==="backward")return t.innerType._zod.run(r,i);if(r.value===void 0)return r.value=t.defaultValue,r;const n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(a=>vS(a,t)):vS(n,t)}});function vS(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const A$=M("$ZodPrefault",(e,t)=>{he.init(e,t),e._zod.optin="optional",be(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,i)=>(i.direction==="backward"||r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,i))}),P$=M("$ZodNonOptional",(e,t)=>{he.init(e,t),be(e._zod,"values",()=>{const r=t.innerType._zod.values;return r?new Set([...r].filter(i=>i!==void 0)):void 0}),e._zod.parse=(r,i)=>{const n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(a=>pS(a,e)):pS(n,e)}});function pS(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const M$=M("$ZodSuccess",(e,t)=>{he.init(e,t),e._zod.parse=(r,i)=>{if(i.direction==="backward")throw new Jf("ZodSuccess");const n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(a=>(r.value=a.issues.length===0,r)):(r.value=n.issues.length===0,r)}}),L$=M("$ZodCatch",(e,t)=>{he.init(e,t),e._zod.optin="optional",be(e._zod,"optout",()=>t.innerType._zod.optout),be(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,i)=>{if(i.direction==="backward")return t.innerType._zod.run(r,i);const n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(a=>(r.value=a.value,a.issues.length&&(r.value=t.catchValue({...r,error:{issues:a.issues.map(o=>er(o,i,pt()))},input:r.value}),r.issues=[],r.fallback=!0),r)):(r.value=n.value,n.issues.length&&(r.value=t.catchValue({...r,error:{issues:n.issues.map(a=>er(a,i,pt()))},input:r.value}),r.issues=[],r.fallback=!0),r)}}),O$=M("$ZodNaN",(e,t)=>{he.init(e,t),e._zod.parse=(r,i)=>((typeof r.value!="number"||!Number.isNaN(r.value))&&r.issues.push({input:r.value,inst:e,expected:"nan",code:"invalid_type"}),r)}),Hm=M("$ZodPipe",(e,t)=>{he.init(e,t),be(e._zod,"values",()=>t.in._zod.values),be(e._zod,"optin",()=>t.in._zod.optin),be(e._zod,"optout",()=>t.out._zod.optout),be(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,i)=>{if(i.direction==="backward"){const a=t.out._zod.run(r,i);return a instanceof Promise?a.then(o=>Ll(o,t.in,i)):Ll(a,t.in,i)}const n=t.in._zod.run(r,i);return n instanceof Promise?n.then(a=>Ll(a,t.out,i)):Ll(n,t.out,i)}});function Ll(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},r)}const Wm=M("$ZodCodec",(e,t)=>{he.init(e,t),be(e._zod,"values",()=>t.in._zod.values),be(e._zod,"optin",()=>t.in._zod.optin),be(e._zod,"optout",()=>t.out._zod.optout),be(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,i)=>{if((i.direction||"forward")==="forward"){const a=t.in._zod.run(r,i);return a instanceof Promise?a.then(o=>Ol(o,t,i)):Ol(a,t,i)}else{const a=t.out._zod.run(r,i);return a instanceof Promise?a.then(o=>Ol(o,t,i)):Ol(a,t,i)}}});function Ol(e,t,r){if(e.issues.length)return e.aborted=!0,e;if((r.direction||"forward")==="forward"){const n=t.transform(e.value,e);return n instanceof Promise?n.then(a=>El(e,a,t.out,r)):El(e,n,t.out,r)}else{const n=t.reverseTransform(e.value,e);return n instanceof Promise?n.then(a=>El(e,a,t.in,r)):El(e,n,t.in,r)}}function El(e,t,r,i){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:t,issues:e.issues},i)}const E$=M("$ZodPreprocess",(e,t)=>{Hm.init(e,t)}),z$=M("$ZodReadonly",(e,t)=>{he.init(e,t),be(e._zod,"propValues",()=>t.innerType._zod.propValues),be(e._zod,"values",()=>t.innerType._zod.values),be(e._zod,"optin",()=>{var r,i;return(i=(r=t.innerType)==null?void 0:r._zod)==null?void 0:i.optin}),be(e._zod,"optout",()=>{var r,i;return(i=(r=t.innerType)==null?void 0:r._zod)==null?void 0:i.optout}),e._zod.parse=(r,i)=>{if(i.direction==="backward")return t.innerType._zod.run(r,i);const n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(gS):gS(n)}});function gS(e){return e.value=Object.freeze(e.value),e}const R$=M("$ZodTemplateLiteral",(e,t)=>{he.init(e,t);const r=[];for(const i of t.parts)if(typeof i=="object"&&i!==null){if(!i._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...i._zod.traits].shift()}`);const n=i._zod.pattern instanceof RegExp?i._zod.pattern.source:i._zod.pattern;if(!n)throw new Error(`Invalid template literal part: ${i._zod.traits}`);const a=n.startsWith("^")?1:0,o=n.endsWith("$")?n.length-1:n.length;r.push(n.slice(a,o))}else if(i===null||fk.has(typeof i))r.push(wn(`${i}`));else throw new Error(`Invalid template literal part: ${i}`);e._zod.pattern=new RegExp(`^${r.join("")}$`),e._zod.parse=(i,n)=>typeof i.value!="string"?(i.issues.push({input:i.value,inst:e,expected:"string",code:"invalid_type"}),i):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(i.value)||i.issues.push({input:i.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),i)}),N$=M("$ZodFunction",(e,t)=>(he.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(...i){const n=e._def.input?Pp(e._def.input,i):i,a=Reflect.apply(r,this,n);return e._def.output?Pp(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(...i){const n=e._def.input?await Mp(e._def.input,i):i,a=await Reflect.apply(r,this,n);return e._def.output?await Mp(e._def.output,a):a}},e._zod.parse=(r,i)=>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)=>{const i=e.constructor;return Array.isArray(r[0])?new i({type:"function",input:new Vm({type:"tuple",items:r[0],rest:r[1]}),output:e._def.output}):new i({type:"function",input:r[0],output:e._def.output})},e.output=r=>{const i=e.constructor;return new i({type:"function",input:e._def.input,output:r})},e)),U$=M("$ZodPromise",(e,t)=>{he.init(e,t),e._zod.parse=(r,i)=>Promise.resolve(r.value).then(n=>t.innerType._zod.run({value:n,issues:[]},i))}),B$=M("$ZodLazy",(e,t)=>{he.init(e,t),be(e._zod,"innerType",()=>{const r=t;return r._cachedInner||(r._cachedInner=t.getter()),r._cachedInner}),be(e._zod,"pattern",()=>{var r,i;return(i=(r=e._zod.innerType)==null?void 0:r._zod)==null?void 0:i.pattern}),be(e._zod,"propValues",()=>{var r,i;return(i=(r=e._zod.innerType)==null?void 0:r._zod)==null?void 0:i.propValues}),be(e._zod,"optin",()=>{var r,i;return((i=(r=e._zod.innerType)==null?void 0:r._zod)==null?void 0:i.optin)??void 0}),be(e._zod,"optout",()=>{var r,i;return((i=(r=e._zod.innerType)==null?void 0:r._zod)==null?void 0:i.optout)??void 0}),e._zod.parse=(r,i)=>e._zod.innerType._zod.run(r,i)}),F$=M("$ZodCustom",(e,t)=>{Ke.init(e,t),he.init(e,t),e._zod.parse=(r,i)=>r,e._zod.check=r=>{const i=r.value,n=t.fn(i);if(n instanceof Promise)return n.then(a=>mS(a,r,i,e));mS(n,r,i,e)}});function mS(e,t,r,i){if(!e){const n={code:"custom",input:r,inst:i,path:[...i._zod.def.path??[]],continue:!i._zod.def.abort};i._zod.def.params&&(n.params=i._zod.def.params),t.issues.push(ro(n))}}const a2=()=>{const 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(n){return e[n]??null}const r={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"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`\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 instanceof ${n.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${s}`:`\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 ${a}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${s}`}case"invalid_value":return n.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 ${ie(n.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: ${j(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",o=t(n.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 ${n.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${a} ${n.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 ${n.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${a} ${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",o=t(n.origin);return o?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${n.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${a} ${n.minimum.toString()} ${o.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${n.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${a} ${n.minimum.toString()}`}case"invalid_format":{const a=n;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 "${n.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}`:`${r[a.format]??n.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 ${n.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${n.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${n.keys.length>1?"\u0629":""}: ${j(n.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${n.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 ${n.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}};function o2(){return{localeError:a2()}}const s2=()=>{const 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(n){return e[n]??null}const 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",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"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${n.expected}, daxil olan ${s}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${a}, daxil olan ${s}`}case"invalid_value":return n.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${ie(n.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${j(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",o=t(n.origin);return o?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${n.origin??"d\u0259y\u0259r"} ${a}${n.maximum.toString()} ${o.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${n.origin??"d\u0259y\u0259r"} ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",o=t(n.origin);return o?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${n.origin} ${a}${n.minimum.toString()} ${o.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${n.origin} ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;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 ${r[a.format]??n.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${n.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${n.keys.length>1?"lar":""}: ${j(n.keys,", ")}`;case"invalid_key":return`${n.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${n.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}};function u2(){return{localeError:s2()}}function yS(e,t,r,i){const n=Math.abs(e),a=n%10,o=n%100;return o>=11&&o<=19?i:a===1?t:a>=2&&a<=4?r:i}const l2=()=>{const 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(n){return e[n]??null}const r={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"},i={nan:"NaN",number:"\u043B\u0456\u043A",array:"\u043C\u0430\u0441\u0456\u045E"};return n=>{switch(n.code){case"invalid_type":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F instanceof ${n.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${s}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${a}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${s}`}case"invalid_value":return n.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 ${ie(n.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 ${j(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",o=t(n.origin);if(o){const s=Number(n.maximum),u=yS(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 ${n.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${o.verb} ${a}${n.maximum.toString()} ${u}`}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 ${n.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",o=t(n.origin);if(o){const s=Number(n.minimum),u=yS(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 ${n.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${o.verb} ${a}${n.minimum.toString()} ${u}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;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 ${r[a.format]??n.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 ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${n.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${j(n.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${n.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 ${n.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}};function c2(){return{localeError:l2()}}const f2=()=>{const 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}const 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"},i={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D instanceof ${n.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${s}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${a}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${s}`}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 ${ie(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 ${j(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",o=t(n.origin);return o?`\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 ${a}${n.maximum.toString()} ${o.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 ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",o=t(n.origin);return o?`\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 ${a}${n.minimum.toString()} ${o.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 ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;if(a.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 "${a.prefix}"`;if(a.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 "${a.suffix}"`;if(a.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 "${a.includes}"`;if(a.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 ${a.pattern}`;let o="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return a.format==="emoji"&&(o="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),a.format==="datetime"&&(o="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),a.format==="date"&&(o="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),a.format==="time"&&(o="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),a.format==="duration"&&(o="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${o} ${r[a.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":""}: ${j(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 d2(){return{localeError:f2()}}const h2=()=>{const e={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function t(n){return e[n]??null}const r={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"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`Tipus inv\xE0lid: s\'esperava instanceof ${n.expected}, s\'ha rebut ${s}`:`Tipus inv\xE0lid: s\'esperava ${a}, s\'ha rebut ${s}`}case"invalid_value":return n.values.length===1?`Valor inv\xE0lid: s\'esperava ${ie(n.values[0])}`:`Opci\xF3 inv\xE0lida: s\'esperava una de ${j(n.values," o ")}`;case"too_big":{const a=n.inclusive?"com a m\xE0xim":"menys de",o=t(n.origin);return o?`Massa gran: s\'esperava que ${n.origin??"el valor"} contingu\xE9s ${a} ${n.maximum.toString()} ${o.unit??"elements"}`:`Massa gran: s\'esperava que ${n.origin??"el valor"} fos ${a} ${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?"com a m\xEDnim":"m\xE9s de",o=t(n.origin);return o?`Massa petit: s\'esperava que ${n.origin} contingu\xE9s ${a} ${n.minimum.toString()} ${o.unit}`:`Massa petit: s\'esperava que ${n.origin} fos ${a} ${n.minimum.toString()}`}case"invalid_format":{const a=n;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 ${r[a.format]??n.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${n.divisor}`;case"unrecognized_keys":return`Clau${n.keys.length>1?"s":""} no reconeguda${n.keys.length>1?"s":""}: ${j(n.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${n.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${n.origin}`;default:return"Entrada inv\xE0lida"}}};function v2(){return{localeError:h2()}}const p2=()=>{const 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(n){return e[n]??null}const r={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"},i={nan:"NaN",number:"\u010D\xEDslo",string:"\u0159et\u011Bzec",function:"funkce",array:"pole"};return n=>{switch(n.code){case"invalid_type":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${n.expected}, obdr\u017Eeno ${s}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${a}, obdr\u017Eeno ${s}`}case"invalid_value":return n.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${ie(n.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${j(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",o=t(n.origin);return o?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${n.origin??"hodnota"} mus\xED m\xEDt ${a}${n.maximum.toString()} ${o.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${n.origin??"hodnota"} mus\xED b\xFDt ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",o=t(n.origin);return o?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${n.origin??"hodnota"} mus\xED m\xEDt ${a}${n.minimum.toString()} ${o.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${n.origin??"hodnota"} mus\xED b\xFDt ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;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 ${r[a.format]??n.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${n.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${j(n.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${n.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${n.origin}`;default:return"Neplatn\xFD vstup"}}};function g2(){return{localeError:p2()}}const m2=()=>{const e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function t(n){return e[n]??null}const r={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"},i={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\xE6t",file:"fil"};return n=>{switch(n.code){case"invalid_type":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`Ugyldigt input: forventede instanceof ${n.expected}, fik ${s}`:`Ugyldigt input: forventede ${a}, fik ${s}`}case"invalid_value":return n.values.length===1?`Ugyldig v\xE6rdi: forventede ${ie(n.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${j(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",o=t(n.origin),s=i[n.origin]??n.origin;return o?`For stor: forventede ${s??"value"} ${o.verb} ${a} ${n.maximum.toString()} ${o.unit??"elementer"}`:`For stor: forventede ${s??"value"} havde ${a} ${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",o=t(n.origin),s=i[n.origin]??n.origin;return o?`For lille: forventede ${s} ${o.verb} ${a} ${n.minimum.toString()} ${o.unit}`:`For lille: forventede ${s} havde ${a} ${n.minimum.toString()}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`Ugyldig streng: skal starte med "${a.prefix}"`:a.format==="ends_with"?`Ugyldig streng: skal ende med "${a.suffix}"`:a.format==="includes"?`Ugyldig streng: skal indeholde "${a.includes}"`:a.format==="regex"?`Ugyldig streng: skal matche m\xF8nsteret ${a.pattern}`:`Ugyldig ${r[a.format]??n.format}`}case"not_multiple_of":return`Ugyldigt tal: skal v\xE6re deleligt med ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukendte n\xF8gler":"Ukendt n\xF8gle"}: ${j(n.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8gle i ${n.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xE6rdi i ${n.origin}`;default:return"Ugyldigt input"}}};function y2(){return{localeError:m2()}}const _2=()=>{const 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(n){return e[n]??null}const r={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"},i={nan:"NaN",number:"Zahl",array:"Array"};return n=>{switch(n.code){case"invalid_type":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${n.expected}, erhalten ${s}`:`Ung\xFCltige Eingabe: erwartet ${a}, erhalten ${s}`}case"invalid_value":return n.values.length===1?`Ung\xFCltige Eingabe: erwartet ${ie(n.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${j(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",o=t(n.origin);return o?`Zu gro\xDF: erwartet, dass ${n.origin??"Wert"} ${a}${n.maximum.toString()} ${o.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${n.origin??"Wert"} ${a}${n.maximum.toString()} ist`}case"too_small":{const a=n.inclusive?">=":">",o=t(n.origin);return o?`Zu klein: erwartet, dass ${n.origin} ${a}${n.minimum.toString()} ${o.unit} hat`:`Zu klein: erwartet, dass ${n.origin} ${a}${n.minimum.toString()} ist`}case"invalid_format":{const a=n;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: ${r[a.format]??n.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${n.divisor} sein`;case"unrecognized_keys":return`${n.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${j(n.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${n.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${n.origin}`;default:return"Ung\xFCltige Eingabe"}}};function b2(){return{localeError:_2()}}const S2=()=>{const e={string:{unit:"\u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},file:{unit:"bytes",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},array:{unit:"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},set:{unit:"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},map:{unit:"\u03BA\u03B1\u03C4\u03B1\u03C7\u03C9\u03C1\u03AE\u03C3\u03B5\u03B9\u03C2",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"}};function t(n){return e[n]??null}const r={regex:"\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2",email:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 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:"ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03BA\u03B1\u03B9 \u03CE\u03C1\u03B1",date:"ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",time:"ISO \u03CE\u03C1\u03B1",duration:"ISO \u03B4\u03B9\u03AC\u03C1\u03BA\u03B5\u03B9\u03B1",ipv4:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv4",ipv6:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv6",mac:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 MAC",cidrv4:"\u03B5\u03CD\u03C1\u03BF\u03C2 IPv4",cidrv6:"\u03B5\u03CD\u03C1\u03BF\u03C2 IPv6",base64:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64",base64url:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64url",json_string:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC JSON",e164:"\u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 E.164",jwt:"JWT",template_literal:"\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return typeof n.expected=="string"&&/^[A-Z]/.test(n.expected)?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD instanceof ${n.expected}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${s}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${a}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${s}`}case"invalid_value":return n.values.length===1?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${ie(n.values[0])}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD \u03AD\u03BD\u03B1 \u03B1\u03C0\u03CC ${j(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",o=t(n.origin);return o?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${n.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${a}${n.maximum.toString()} ${o.unit??"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1"}`:`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${n.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",o=t(n.origin);return o?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${n.origin} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${a}${n.minimum.toString()} ${o.unit}`:`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${n.origin} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03BE\u03B5\u03BA\u03B9\u03BD\u03AC \u03BC\u03B5 "${a.prefix}"`:a.format==="ends_with"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B5\u03BB\u03B5\u03B9\u03CE\u03BD\u03B5\u03B9 \u03BC\u03B5 "${a.suffix}"`:a.format==="includes"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C0\u03B5\u03C1\u03B9\u03AD\u03C7\u03B5\u03B9 "${a.includes}"`:a.format==="regex"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B1\u03B9\u03C1\u03B9\u03AC\u03B6\u03B5\u03B9 \u03BC\u03B5 \u03C4\u03BF \u03BC\u03BF\u03C4\u03AF\u03B2\u03BF ${a.pattern}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF: ${r[a.format]??n.format}`}case"not_multiple_of":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF\u03C2 \u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03C0\u03BF\u03BB\u03BB\u03B1\u03C0\u03BB\u03AC\u03C3\u03B9\u03BF \u03C4\u03BF\u03C5 ${n.divisor}`;case"unrecognized_keys":return`\u0386\u03B3\u03BD\u03C9\u03C3\u03C4${n.keys.length>1?"\u03B1":"\u03BF"} \u03BA\u03BB\u03B5\u03B9\u03B4${n.keys.length>1?"\u03B9\u03AC":"\u03AF"}: ${j(n.keys,", ")}`;case"invalid_key":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF \u03BA\u03BB\u03B5\u03B9\u03B4\u03AF \u03C3\u03C4\u03BF ${n.origin}`;case"invalid_union":return"\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2";case"invalid_element":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C4\u03B9\u03BC\u03AE \u03C3\u03C4\u03BF ${n.origin}`;default:return"\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"}}};function w2(){return{localeError:S2()}}const x2=()=>{const 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"},map:{unit:"entries",verb:"to have"}};function t(n){return e[n]??null}const 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"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return`Invalid input: expected ${a}, received ${s}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${ie(n.values[0])}`:`Invalid option: expected one of ${j(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",o=t(n.origin);return o?`Too big: expected ${n.origin??"value"} to have ${a}${n.maximum.toString()} ${o.unit??"elements"}`:`Too big: expected ${n.origin??"value"} to be ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",o=t(n.origin);return o?`Too small: expected ${n.origin} to have ${a}${n.minimum.toString()} ${o.unit}`:`Too small: expected ${n.origin} to be ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`Invalid string: must start with "${a.prefix}"`:a.format==="ends_with"?`Invalid string: must end with "${a.suffix}"`:a.format==="includes"?`Invalid string: must include "${a.includes}"`:a.format==="regex"?`Invalid string: must match pattern ${a.pattern}`:`Invalid ${r[a.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":""}: ${j(n.keys,", ")}`;case"invalid_key":return`Invalid key in ${n.origin}`;case"invalid_union":return n.options&&Array.isArray(n.options)&&n.options.length>0?`Invalid discriminator value. Expected ${n.options.map(o=>`\'${o}\'`).join(" | ")}`:"Invalid input";case"invalid_element":return`Invalid value in ${n.origin}`;default:return"Invalid input"}}};function j$(){return{localeError:x2()}}const T2=()=>{const 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}const 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"},i={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return n=>{switch(n.code){case"invalid_type":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${n.expected}, ricevi\u011Dis ${s}`:`Nevalida enigo: atendi\u011Dis ${a}, ricevi\u011Dis ${s}`}case"invalid_value":return n.values.length===1?`Nevalida enigo: atendi\u011Dis ${ie(n.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${j(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",o=t(n.origin);return o?`Tro granda: atendi\u011Dis ke ${n.origin??"valoro"} havu ${a}${n.maximum.toString()} ${o.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${n.origin??"valoro"} havu ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",o=t(n.origin);return o?`Tro malgranda: atendi\u011Dis ke ${n.origin} havu ${a}${n.minimum.toString()} ${o.unit}`:`Tro malgranda: atendi\u011Dis ke ${n.origin} estu ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${a.prefix}"`:a.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${a.suffix}"`:a.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${a.includes}"`:a.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${a.pattern}`:`Nevalida ${r[a.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":""}: ${j(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 k2(){return{localeError:T2()}}const I2=()=>{const e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function t(n){return e[n]??null}const r={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"},i={nan:"NaN",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"};return n=>{switch(n.code){case"invalid_type":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${n.expected}, recibido ${s}`:`Entrada inv\xE1lida: se esperaba ${a}, recibido ${s}`}case"invalid_value":return n.values.length===1?`Entrada inv\xE1lida: se esperaba ${ie(n.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${j(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",o=t(n.origin),s=i[n.origin]??n.origin;return o?`Demasiado grande: se esperaba que ${s??"valor"} tuviera ${a}${n.maximum.toString()} ${o.unit??"elementos"}`:`Demasiado grande: se esperaba que ${s??"valor"} fuera ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",o=t(n.origin),s=i[n.origin]??n.origin;return o?`Demasiado peque\xF1o: se esperaba que ${s} tuviera ${a}${n.minimum.toString()} ${o.unit}`:`Demasiado peque\xF1o: se esperaba que ${s} fuera ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${a.prefix}"`:a.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${a.suffix}"`:a.format==="includes"?`Cadena inv\xE1lida: debe incluir "${a.includes}"`:a.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${a.pattern}`:`Inv\xE1lido ${r[a.format]??n.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${n.divisor}`;case"unrecognized_keys":return`Llave${n.keys.length>1?"s":""} desconocida${n.keys.length>1?"s":""}: ${j(n.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${i[n.origin]??n.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${i[n.origin]??n.origin}`;default:return"Entrada inv\xE1lida"}}};function $2(){return{localeError:I2()}}const D2=()=>{const 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(n){return e[n]??null}const r={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"},i={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0622\u0631\u0627\u06CC\u0647"};return n=>{switch(n.code){case"invalid_type":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A instanceof ${n.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${s} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`:`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${a} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${s} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`}case"invalid_value":return n.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${ie(n.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 ${j(n.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{const a=n.inclusive?"<=":"<",o=t(n.origin);return o?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${n.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${a}${n.maximum.toString()} ${o.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${n.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${a}${n.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{const a=n.inclusive?">=":">",o=t(n.origin);return o?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${n.origin} \u0628\u0627\u06CC\u062F ${a}${n.minimum.toString()} ${o.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${n.origin} \u0628\u0627\u06CC\u062F ${a}${n.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{const a=n;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`:`${r[a.format]??n.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 ${n.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${n.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${j(n.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${n.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 ${n.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}};function C2(){return{localeError:D2()}}const A2=()=>{const 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(n){return e[n]??null}const r={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"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`Virheellinen tyyppi: odotettiin instanceof ${n.expected}, oli ${s}`:`Virheellinen tyyppi: odotettiin ${a}, oli ${s}`}case"invalid_value":return n.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${ie(n.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${j(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",o=t(n.origin);return o?`Liian suuri: ${o.subject} t\xE4ytyy olla ${a}${n.maximum.toString()} ${o.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",o=t(n.origin);return o?`Liian pieni: ${o.subject} t\xE4ytyy olla ${a}${n.minimum.toString()} ${o.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;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 ${r[a.format]??n.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${n.divisor} monikerta`;case"unrecognized_keys":return`${n.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${j(n.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 P2(){return{localeError:A2()}}const M2=()=>{const 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(n){return e[n]??null}const r={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"},i={string:"cha\xEEne",number:"nombre",int:"entier",boolean:"bool\xE9en",bigint:"grand entier",symbol:"symbole",undefined:"ind\xE9fini",null:"null",never:"jamais",void:"vide",date:"date",array:"tableau",object:"objet",tuple:"tuple",record:"enregistrement",map:"carte",set:"ensemble",file:"fichier",nonoptional:"non-optionnel",nan:"NaN",function:"fonction"};return n=>{switch(n.code){case"invalid_type":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`Entr\xE9e invalide : instanceof ${n.expected} attendu, ${s} re\xE7u`:`Entr\xE9e invalide : ${a} attendu, ${s} re\xE7u`}case"invalid_value":return n.values.length===1?`Entr\xE9e invalide : ${ie(n.values[0])} attendu`:`Option invalide : une valeur parmi ${j(n.values,"|")} attendue`;case"too_big":{const a=n.inclusive?"<=":"<",o=t(n.origin);return o?`Trop grand : ${i[n.origin]??"valeur"} doit ${o.verb} ${a}${n.maximum.toString()} ${o.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${i[n.origin]??"valeur"} doit \xEAtre ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",o=t(n.origin);return o?`Trop petit : ${i[n.origin]??"valeur"} doit ${o.verb} ${a}${n.minimum.toString()} ${o.unit}`:`Trop petit : ${i[n.origin]??"valeur"} doit \xEAtre ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;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}`:`${r[a.format]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${n.divisor}`;case"unrecognized_keys":return`Cl\xE9${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${j(n.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${n.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entr\xE9e invalide"}}};function L2(){return{localeError:M2()}}const O2=()=>{const 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(n){return e[n]??null}const r={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"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`Entr\xE9e invalide : attendu instanceof ${n.expected}, re\xE7u ${s}`:`Entr\xE9e invalide : attendu ${a}, re\xE7u ${s}`}case"invalid_value":return n.values.length===1?`Entr\xE9e invalide : attendu ${ie(n.values[0])}`:`Option invalide : attendu l\'une des valeurs suivantes ${j(n.values,"|")}`;case"too_big":{const a=n.inclusive?"\u2264":"<",o=t(n.origin);return o?`Trop grand : attendu que ${n.origin??"la valeur"} ait ${a}${n.maximum.toString()} ${o.unit}`:`Trop grand : attendu que ${n.origin??"la valeur"} soit ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?"\u2265":">",o=t(n.origin);return o?`Trop petit : attendu que ${n.origin} ait ${a}${n.minimum.toString()} ${o.unit}`:`Trop petit : attendu que ${n.origin} soit ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;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}`:`${r[a.format]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${n.divisor}`;case"unrecognized_keys":return`Cl\xE9${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${j(n.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${n.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entr\xE9e invalide"}}};function E2(){return{localeError:O2()}}const z2=()=>{const 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=l=>l?e[l]:void 0,i=l=>{const c=r(l);return c?c.label:l??e.unknown.label},n=l=>`\u05D4${i(l)}`,a=l=>{const c=r(l);return((c==null?void 0:c.gender)??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA"},o=l=>l?t[l]??null:null,s={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"}},u={nan:"NaN"};return l=>{var c;switch(l.code){case"invalid_type":{const f=l.expected,d=u[f??""]??i(f),h=ae(l.input),v=u[h]??((c=e[h])==null?void 0:c.label)??h;return/^[A-Z]/.test(l.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${l.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${v}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${d}, \u05D4\u05EA\u05E7\u05D1\u05DC ${v}`}case"invalid_value":{if(l.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 ${ie(l.values[0])}`;const f=l.values.map(v=>ie(v));if(l.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 ${f[0]} \u05D0\u05D5 ${f[1]}`;const d=f[f.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 ${f.slice(0,-1).join(", ")} \u05D0\u05D5 ${d}`}case"too_big":{const f=o(l.origin),d=n(l.origin??"value");if(l.origin==="string")return`${(f==null?void 0:f.longLabel)??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${l.maximum.toString()} ${(f==null?void 0:f.unit)??""} ${l.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(l.origin==="number"){const p=l.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${l.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${l.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${p}`}if(l.origin==="array"||l.origin==="set"){const p=l.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",g=l.inclusive?`${l.maximum} ${(f==null?void 0:f.unit)??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${l.maximum} ${(f==null?void 0:f.unit)??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${d} ${p} \u05DC\u05D4\u05DB\u05D9\u05DC ${g}`.trim()}const h=l.inclusive?"<=":"<",v=a(l.origin??"value");return f!=null&&f.unit?`${f.longLabel} \u05DE\u05D3\u05D9: ${d} ${v} ${h}${l.maximum.toString()} ${f.unit}`:`${(f==null?void 0:f.longLabel)??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${d} ${v} ${h}${l.maximum.toString()}`}case"too_small":{const f=o(l.origin),d=n(l.origin??"value");if(l.origin==="string")return`${(f==null?void 0:f.shortLabel)??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${l.minimum.toString()} ${(f==null?void 0:f.unit)??""} ${l.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(l.origin==="number"){const p=l.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${l.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${l.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${p}`}if(l.origin==="array"||l.origin==="set"){const p=l.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(l.minimum===1&&l.inclusive){const m=(l.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} ${p} \u05DC\u05D4\u05DB\u05D9\u05DC ${m}`}const g=l.inclusive?`${l.minimum} ${(f==null?void 0:f.unit)??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${l.minimum} ${(f==null?void 0:f.unit)??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} ${p} \u05DC\u05D4\u05DB\u05D9\u05DC ${g}`.trim()}const h=l.inclusive?">=":">",v=a(l.origin??"value");return f!=null&&f.unit?`${f.shortLabel} \u05DE\u05D3\u05D9: ${d} ${v} ${h}${l.minimum.toString()} ${f.unit}`:`${(f==null?void 0:f.shortLabel)??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${d} ${v} ${h}${l.minimum.toString()}`}case"invalid_format":{const f=l;if(f.format==="starts_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${f.prefix}"`;if(f.format==="ends_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${f.suffix}"`;if(f.format==="includes")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${f.includes}"`;if(f.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 ${f.pattern}`;const d=s[f.format],h=(d==null?void 0:d.label)??f.format,p=((d==null?void 0:d.gender)??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${h} \u05DC\u05D0 ${p}`}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 ${l.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${l.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${l.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${j(l.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${n(l.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function R2(){return{localeError:z2()}}const N2=()=>{const e={string:{unit:"znakova",verb:"imati"},file:{unit:"bajtova",verb:"imati"},array:{unit:"stavki",verb:"imati"},set:{unit:"stavki",verb:"imati"}};function t(n){return e[n]??null}const r={regex:"unos",email:"email 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:"ISO datum i vrijeme",date:"ISO datum",time:"ISO vrijeme",duration:"ISO trajanje",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"IPv4 raspon",cidrv6:"IPv6 raspon",base64:"base64 kodirani tekst",base64url:"base64url kodirani tekst",json_string:"JSON tekst",e164:"E.164 broj",jwt:"JWT",template_literal:"unos"},i={nan:"NaN",string:"tekst",number:"broj",boolean:"boolean",array:"niz",object:"objekt",set:"skup",file:"datoteka",date:"datum",bigint:"bigint",symbol:"simbol",undefined:"undefined",null:"null",function:"funkcija",map:"mapa"};return n=>{switch(n.code){case"invalid_type":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`Neispravan unos: o\u010Dekuje se instanceof ${n.expected}, a primljeno je ${s}`:`Neispravan unos: o\u010Dekuje se ${a}, a primljeno je ${s}`}case"invalid_value":return n.values.length===1?`Neispravna vrijednost: o\u010Dekivano ${ie(n.values[0])}`:`Neispravna opcija: o\u010Dekivano jedno od ${j(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",o=t(n.origin),s=i[n.origin]??n.origin;return o?`Preveliko: o\u010Dekivano da ${s??"vrijednost"} ima ${a}${n.maximum.toString()} ${o.unit??"elemenata"}`:`Preveliko: o\u010Dekivano da ${s??"vrijednost"} bude ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",o=t(n.origin),s=i[n.origin]??n.origin;return o?`Premalo: o\u010Dekivano da ${s} ima ${a}${n.minimum.toString()} ${o.unit}`:`Premalo: o\u010Dekivano da ${s} bude ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`Neispravan tekst: mora zapo\u010Dinjati s "${a.prefix}"`:a.format==="ends_with"?`Neispravan tekst: mora zavr\u0161avati s "${a.suffix}"`:a.format==="includes"?`Neispravan tekst: mora sadr\u017Eavati "${a.includes}"`:a.format==="regex"?`Neispravan tekst: mora odgovarati uzorku ${a.pattern}`:`Neispravna ${r[a.format]??n.format}`}case"not_multiple_of":return`Neispravan broj: mora biti vi\u0161ekratnik od ${n.divisor}`;case"unrecognized_keys":return`Neprepoznat${n.keys.length>1?"i klju\u010Devi":" klju\u010D"}: ${j(n.keys,", ")}`;case"invalid_key":return`Neispravan klju\u010D u ${i[n.origin]??n.origin}`;case"invalid_union":return"Neispravan unos";case"invalid_element":return`Neispravna vrijednost u ${i[n.origin]??n.origin}`;default:return"Neispravan unos"}}};function U2(){return{localeError:N2()}}const B2=()=>{const e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function t(n){return e[n]??null}const r={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"},i={nan:"NaN",number:"sz\xE1m",array:"t\xF6mb"};return n=>{switch(n.code){case"invalid_type":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${n.expected}, a kapott \xE9rt\xE9k ${s}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${a}, a kapott \xE9rt\xE9k ${s}`}case"invalid_value":return n.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${ie(n.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${j(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",o=t(n.origin);return o?`T\xFAl nagy: ${n.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${a}${n.maximum.toString()} ${o.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${n.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",o=t(n.origin);return o?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${n.origin} m\xE9rete t\xFAl kicsi ${a}${n.minimum.toString()} ${o.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${n.origin} t\xFAl kicsi ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;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 ${r[a.format]??n.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${n.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${n.keys.length>1?"s":""}: ${j(n.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${n.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${n.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}};function F2(){return{localeError:B2()}}function _S(e,t,r){return Math.abs(e)===1?t:r}function _a(e){if(!e)return"";const t=["\u0561","\u0565","\u0568","\u056B","\u0578","\u0578\u0582","\u0585"],r=e[e.length-1];return e+(t.includes(r)?"\u0576":"\u0568")}const j2=()=>{const e={string:{unit:{one:"\u0576\u0577\u0561\u0576",many:"\u0576\u0577\u0561\u0576\u0576\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},file:{unit:{one:"\u0562\u0561\u0575\u0569",many:"\u0562\u0561\u0575\u0569\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},array:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},set:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"}};function t(n){return e[n]??null}const r={regex:"\u0574\u0578\u0582\u057F\u0584",email:"\u0567\u056C. \u0570\u0561\u057D\u0581\u0565",url:"URL",emoji:"\u0567\u0574\u0578\u057B\u056B",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E \u0587 \u056A\u0561\u0574",date:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E",time:"ISO \u056A\u0561\u0574",duration:"ISO \u057F\u0587\u0578\u0572\u0578\u0582\u0569\u0575\u0578\u0582\u0576",ipv4:"IPv4 \u0570\u0561\u057D\u0581\u0565",ipv6:"IPv6 \u0570\u0561\u057D\u0581\u0565",cidrv4:"IPv4 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",cidrv6:"IPv6 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",base64:"base64 \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",base64url:"base64url \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",json_string:"JSON \u057F\u0578\u0572",e164:"E.164 \u0570\u0561\u0574\u0561\u0580",jwt:"JWT",template_literal:"\u0574\u0578\u0582\u057F\u0584"},i={nan:"NaN",number:"\u0569\u056B\u057E",array:"\u0566\u0561\u0576\u0563\u057E\u0561\u056E"};return n=>{switch(n.code){case"invalid_type":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 instanceof ${n.expected}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${s}`:`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${a}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${s}`}case"invalid_value":return n.values.length===1?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${ie(n.values[1])}`:`\u054D\u056D\u0561\u056C \u057F\u0561\u0580\u0562\u0565\u0580\u0561\u056F\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 \u0570\u0565\u057F\u0587\u0575\u0561\u056C\u0576\u0565\u0580\u056B\u0581 \u0574\u0565\u056F\u0568\u055D ${j(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",o=t(n.origin);if(o){const s=Number(n.maximum),u=_S(s,o.unit.one,o.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${_a(n.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${a}${n.maximum.toString()} ${u}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${_a(n.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",o=t(n.origin);if(o){const s=Number(n.minimum),u=_S(s,o.unit.one,o.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${_a(n.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${a}${n.minimum.toString()} ${u}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${_a(n.origin)} \u056C\u056B\u0576\u056B ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057D\u056F\u057D\u057E\u056B "${a.prefix}"-\u0578\u057E`:a.format==="ends_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0561\u057E\u0561\u0580\u057F\u057E\u056B "${a.suffix}"-\u0578\u057E`:a.format==="includes"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057A\u0561\u0580\u0578\u0582\u0576\u0561\u056F\u056B "${a.includes}"`:a.format==="regex"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0570\u0561\u0574\u0561\u057A\u0561\u057F\u0561\u057D\u056D\u0561\u0576\u056B ${a.pattern} \u0571\u0587\u0561\u0579\u0561\u0583\u056B\u0576`:`\u054D\u056D\u0561\u056C ${r[a.format]??n.format}`}case"not_multiple_of":return`\u054D\u056D\u0561\u056C \u0569\u056B\u057E\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0562\u0561\u0566\u0574\u0561\u057A\u0561\u057F\u056B\u056F \u056C\u056B\u0576\u056B ${n.divisor}-\u056B`;case"unrecognized_keys":return`\u0549\u0573\u0561\u0576\u0561\u0579\u057E\u0561\u056E \u0562\u0561\u0576\u0561\u056C\u056B${n.keys.length>1?"\u0576\u0565\u0580":""}. ${j(n.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${_a(n.origin)}-\u0578\u0582\u0574`;case"invalid_union":return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574";case"invalid_element":return`\u054D\u056D\u0561\u056C \u0561\u0580\u056A\u0565\u0584 ${_a(n.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}};function Z2(){return{localeError:j2()}}const V2=()=>{const e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function t(n){return e[n]??null}const r={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"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`Input tidak valid: diharapkan instanceof ${n.expected}, diterima ${s}`:`Input tidak valid: diharapkan ${a}, diterima ${s}`}case"invalid_value":return n.values.length===1?`Input tidak valid: diharapkan ${ie(n.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${j(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",o=t(n.origin);return o?`Terlalu besar: diharapkan ${n.origin??"value"} memiliki ${a}${n.maximum.toString()} ${o.unit??"elemen"}`:`Terlalu besar: diharapkan ${n.origin??"value"} menjadi ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",o=t(n.origin);return o?`Terlalu kecil: diharapkan ${n.origin} memiliki ${a}${n.minimum.toString()} ${o.unit}`:`Terlalu kecil: diharapkan ${n.origin} menjadi ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;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}`:`${r[a.format]??n.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${n.keys.length>1?"s":""}: ${j(n.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${n.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${n.origin}`;default:return"Input tidak valid"}}};function G2(){return{localeError:V2()}}const H2=()=>{const 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}const 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"},i={nan:"NaN",number:"n\xFAmer",array:"fylki"};return n=>{switch(n.code){case"invalid_type":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${s} \xFEar sem \xE1 a\xF0 vera instanceof ${n.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${s} \xFEar sem \xE1 a\xF0 vera ${a}`}case"invalid_value":return n.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${ie(n.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${j(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",o=t(n.origin);return o?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin??"gildi"} hafi ${a}${n.maximum.toString()} ${o.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin??"gildi"} s\xE9 ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",o=t(n.origin);return o?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin} hafi ${a}${n.minimum.toString()} ${o.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin} s\xE9 ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 byrja \xE1 "${a.prefix}"`:a.format==="ends_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 enda \xE1 "${a.suffix}"`:a.format==="includes"?`\xD3gildur strengur: ver\xF0ur a\xF0 innihalda "${a.includes}"`:a.format==="regex"?`\xD3gildur strengur: ver\xF0ur a\xF0 fylgja mynstri ${a.pattern}`:`Rangt ${r[a.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"}: ${j(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 W2(){return{localeError:H2()}}const q2=()=>{const e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function t(n){return e[n]??null}const r={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"},i={nan:"NaN",number:"numero",array:"vettore"};return n=>{switch(n.code){case"invalid_type":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`Input non valido: atteso instanceof ${n.expected}, ricevuto ${s}`:`Input non valido: atteso ${a}, ricevuto ${s}`}case"invalid_value":return n.values.length===1?`Input non valido: atteso ${ie(n.values[0])}`:`Opzione non valida: atteso uno tra ${j(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",o=t(n.origin);return o?`Troppo grande: ${n.origin??"valore"} deve avere ${a}${n.maximum.toString()} ${o.unit??"elementi"}`:`Troppo grande: ${n.origin??"valore"} deve essere ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",o=t(n.origin);return o?`Troppo piccolo: ${n.origin} deve avere ${a}${n.minimum.toString()} ${o.unit}`:`Troppo piccolo: ${n.origin} deve essere ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;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}`:`Input non valido: ${r[a.format]??n.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${n.divisor}`;case"unrecognized_keys":return`Chiav${n.keys.length>1?"i":"e"} non riconosciut${n.keys.length>1?"e":"a"}: ${j(n.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${n.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${n.origin}`;default:return"Input non valido"}}};function Y2(){return{localeError:q2()}}const X2=()=>{const 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(n){return e[n]??null}const r={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"},i={nan:"NaN",number:"\u6570\u5024",array:"\u914D\u5217"};return n=>{switch(n.code){case"invalid_type":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`\u7121\u52B9\u306A\u5165\u529B: instanceof ${n.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${s}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u5165\u529B: ${a}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${s}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`}case"invalid_value":return n.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${ie(n.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${j(n.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{const a=n.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",o=t(n.origin);return o?`\u5927\u304D\u3059\u304E\u308B\u5024: ${n.origin??"\u5024"}\u306F${n.maximum.toString()}${o.unit??"\u8981\u7D20"}${a}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${n.origin??"\u5024"}\u306F${n.maximum.toString()}${a}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{const a=n.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",o=t(n.origin);return o?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${n.origin}\u306F${n.minimum.toString()}${o.unit}${a}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${n.origin}\u306F${n.minimum.toString()}${a}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{const a=n;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${r[a.format]??n.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${n.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${n.keys.length>1?"\u7FA4":""}: ${j(n.keys,"\u3001")}`;case"invalid_key":return`${n.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${n.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}};function K2(){return{localeError:X2()}}const J2=()=>{const 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}const 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 \u10D5\u10D4\u10DA\u10D8",base64url:"base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",json_string:"JSON \u10D5\u10D4\u10DA\u10D8",e164:"E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",jwt:"JWT",template_literal:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"},i={nan:"NaN",number:"\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8",string:"\u10D5\u10D4\u10DA\u10D8",boolean:"\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8",function:"\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0",array:"\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8"};return n=>{switch(n.code){case"invalid_type":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`\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 instanceof ${n.expected}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${s}`:`\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 ${a}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${s}`}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 ${ie(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 ${j(n.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{const a=n.inclusive?"<=":"<",o=t(n.origin);return o?`\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"} ${o.verb} ${a}${n.maximum.toString()} ${o.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 ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",o=t(n.origin);return o?`\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} ${o.verb} ${a}${n.minimum.toString()} ${o.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 ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10EC\u10E7\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${a.prefix}"-\u10D8\u10D7`:a.format==="ends_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10DB\u10D7\u10D0\u10D5\u10E0\u10D3\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${a.suffix}"-\u10D8\u10D7`:a.format==="includes"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1 "${a.includes}"-\u10E1`:a.format==="regex"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\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 ${a.pattern}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${r[a.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"}: ${j(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 Q2(){return{localeError:J2()}}const ez=()=>{const 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(n){return e[n]??null}const r={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"},i={nan:"NaN",number:"\u179B\u17C1\u1781",array:"\u17A2\u17B6\u179A\u17C1 (Array)",null:"\u1782\u17D2\u1798\u17B6\u1793\u178F\u1798\u17D2\u179B\u17C3 (null)"};return n=>{switch(n.code){case"invalid_type":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`\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 instanceof ${n.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${s}`:`\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 ${a} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${s}`}case"invalid_value":return n.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 ${ie(n.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 ${j(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",o=t(n.origin);return o?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${a} ${n.maximum.toString()} ${o.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${a} ${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",o=t(n.origin);return o?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin} ${a} ${n.minimum.toString()} ${o.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin} ${a} ${n.minimum.toString()}`}case"invalid_format":{const a=n;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 ${r[a.format]??n.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 ${n.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${j(n.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 ${n.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 ${n.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 Z$(){return{localeError:ez()}}function tz(){return Z$()}const rz=()=>{const 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(n){return e[n]??null}const r={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"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${n.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${s}\uC785\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${a}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${s}\uC785\uB2C8\uB2E4`}case"invalid_value":return n.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${ie(n.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${j(n.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{const a=n.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",o=a==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",s=t(n.origin),u=(s==null?void 0:s.unit)??"\uC694\uC18C";return s?`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${n.maximum.toString()}${u} ${a}${o}`:`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${n.maximum.toString()} ${a}${o}`}case"too_small":{const a=n.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",o=a==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",s=t(n.origin),u=(s==null?void 0:s.unit)??"\uC694\uC18C";return s?`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${n.minimum.toString()}${u} ${a}${o}`:`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${n.minimum.toString()} ${a}${o}`}case"invalid_format":{const a=n;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 ${r[a.format]??n.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${n.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${j(n.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${n.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${n.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}};function nz(){return{localeError:rz()}}const Xo=e=>e.charAt(0).toUpperCase()+e.slice(1);function bS(e){const t=Math.abs(e),r=t%10,i=t%100;return i>=11&&i<=19||r===0?"many":r===1?"one":"few"}const iz=()=>{const 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,a,o,s){const u=e[n]??null;return u===null?u:{unit:u.unit[a],verb:u.verb[s][o?"inclusive":"notInclusive"]}}const 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"},i={nan:"NaN",number:"skai\u010Dius",bigint:"sveikasis skai\u010Dius",string:"eilut\u0117",boolean:"login\u0117 reik\u0161m\u0117",undefined:"neapibr\u0117\u017Eta reik\u0161m\u0117",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulin\u0117 reik\u0161m\u0117"};return n=>{switch(n.code){case"invalid_type":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`Gautas tipas ${s}, o tik\u0117tasi - instanceof ${n.expected}`:`Gautas tipas ${s}, o tik\u0117tasi - ${a}`}case"invalid_value":return n.values.length===1?`Privalo b\u016Bti ${ie(n.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${j(n.values,"|")} pasirinkim\u0173`;case"too_big":{const a=i[n.origin]??n.origin,o=t(n.origin,bS(Number(n.maximum)),n.inclusive??!1,"smaller");if(o!=null&&o.verb)return`${Xo(a??n.origin??"reik\u0161m\u0117")} ${o.verb} ${n.maximum.toString()} ${o.unit??"element\u0173"}`;const s=n.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${Xo(a??n.origin??"reik\u0161m\u0117")} turi b\u016Bti ${s} ${n.maximum.toString()} ${o==null?void 0:o.unit}`}case"too_small":{const a=i[n.origin]??n.origin,o=t(n.origin,bS(Number(n.minimum)),n.inclusive??!1,"bigger");if(o!=null&&o.verb)return`${Xo(a??n.origin??"reik\u0161m\u0117")} ${o.verb} ${n.minimum.toString()} ${o.unit??"element\u0173"}`;const s=n.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${Xo(a??n.origin??"reik\u0161m\u0117")} turi b\u016Bti ${s} ${n.minimum.toString()} ${o==null?void 0:o.unit}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`Eilut\u0117 privalo prasid\u0117ti "${a.prefix}"`:a.format==="ends_with"?`Eilut\u0117 privalo pasibaigti "${a.suffix}"`:a.format==="includes"?`Eilut\u0117 privalo \u012Ftraukti "${a.includes}"`:a.format==="regex"?`Eilut\u0117 privalo atitikti ${a.pattern}`:`Neteisingas ${r[a.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"}: ${j(n.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{const a=i[n.origin]??n.origin;return`${Xo(a??n.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}};function az(){return{localeError:iz()}}const oz=()=>{const 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(n){return e[n]??null}const r={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"},i={nan:"NaN",number:"\u0431\u0440\u043E\u0458",array:"\u043D\u0438\u0437\u0430"};return n=>{switch(n.code){case"invalid_type":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 instanceof ${n.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${s}`:`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${a}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${s}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${ie(n.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 ${j(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",o=t(n.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 ${n.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${a}${n.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 ${n.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",o=t(n.origin);return o?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin} \u0434\u0430 \u0438\u043C\u0430 ${a}${n.minimum.toString()} ${o.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;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 ${r[a.format]??n.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 ${n.divisor}`;case"unrecognized_keys":return`${n.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"}: ${j(n.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${n.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 ${n.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}};function sz(){return{localeError:oz()}}const uz=()=>{const e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function t(n){return e[n]??null}const r={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"},i={nan:"NaN",number:"nombor"};return n=>{switch(n.code){case"invalid_type":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`Input tidak sah: dijangka instanceof ${n.expected}, diterima ${s}`:`Input tidak sah: dijangka ${a}, diterima ${s}`}case"invalid_value":return n.values.length===1?`Input tidak sah: dijangka ${ie(n.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${j(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",o=t(n.origin);return o?`Terlalu besar: dijangka ${n.origin??"nilai"} ${o.verb} ${a}${n.maximum.toString()} ${o.unit??"elemen"}`:`Terlalu besar: dijangka ${n.origin??"nilai"} adalah ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",o=t(n.origin);return o?`Terlalu kecil: dijangka ${n.origin} ${o.verb} ${a}${n.minimum.toString()} ${o.unit}`:`Terlalu kecil: dijangka ${n.origin} adalah ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;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}`:`${r[a.format]??n.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${j(n.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${n.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${n.origin}`;default:return"Input tidak sah"}}};function lz(){return{localeError:uz()}}const cz=()=>{const e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function t(n){return e[n]??null}const r={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"},i={nan:"NaN",number:"getal"};return n=>{switch(n.code){case"invalid_type":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`Ongeldige invoer: verwacht instanceof ${n.expected}, ontving ${s}`:`Ongeldige invoer: verwacht ${a}, ontving ${s}`}case"invalid_value":return n.values.length===1?`Ongeldige invoer: verwacht ${ie(n.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${j(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",o=t(n.origin),s=n.origin==="date"?"laat":n.origin==="string"?"lang":"groot";return o?`Te ${s}: verwacht dat ${n.origin??"waarde"} ${a}${n.maximum.toString()} ${o.unit??"elementen"} ${o.verb}`:`Te ${s}: verwacht dat ${n.origin??"waarde"} ${a}${n.maximum.toString()} is`}case"too_small":{const a=n.inclusive?">=":">",o=t(n.origin),s=n.origin==="date"?"vroeg":n.origin==="string"?"kort":"klein";return o?`Te ${s}: verwacht dat ${n.origin} ${a}${n.minimum.toString()} ${o.unit} ${o.verb}`:`Te ${s}: verwacht dat ${n.origin} ${a}${n.minimum.toString()} is`}case"invalid_format":{const a=n;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: ${r[a.format]??n.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${n.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${n.keys.length>1?"s":""}: ${j(n.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${n.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${n.origin}`;default:return"Ongeldige invoer"}}};function fz(){return{localeError:cz()}}const dz=()=>{const 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(n){return e[n]??null}const r={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"},i={nan:"NaN",number:"tall",array:"liste"};return n=>{switch(n.code){case"invalid_type":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`Ugyldig input: forventet instanceof ${n.expected}, fikk ${s}`:`Ugyldig input: forventet ${a}, fikk ${s}`}case"invalid_value":return n.values.length===1?`Ugyldig verdi: forventet ${ie(n.values[0])}`:`Ugyldig valg: forventet en av ${j(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",o=t(n.origin);return o?`For stor(t): forventet ${n.origin??"value"} til \xE5 ha ${a}${n.maximum.toString()} ${o.unit??"elementer"}`:`For stor(t): forventet ${n.origin??"value"} til \xE5 ha ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",o=t(n.origin);return o?`For lite(n): forventet ${n.origin} til \xE5 ha ${a}${n.minimum.toString()} ${o.unit}`:`For lite(n): forventet ${n.origin} til \xE5 ha ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;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 ${r[a.format]??n.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${j(n.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${n.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${n.origin}`;default:return"Ugyldig input"}}};function hz(){return{localeError:dz()}}const vz=()=>{const 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(n){return e[n]??null}const r={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"},i={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return n=>{switch(n.code){case"invalid_type":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`F\xE2sit giren: umulan instanceof ${n.expected}, al\u0131nan ${s}`:`F\xE2sit giren: umulan ${a}, al\u0131nan ${s}`}case"invalid_value":return n.values.length===1?`F\xE2sit giren: umulan ${ie(n.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${j(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",o=t(n.origin);return o?`Fazla b\xFCy\xFCk: ${n.origin??"value"}, ${a}${n.maximum.toString()} ${o.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${n.origin??"value"}, ${a}${n.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{const a=n.inclusive?">=":">",o=t(n.origin);return o?`Fazla k\xFC\xE7\xFCk: ${n.origin}, ${a}${n.minimum.toString()} ${o.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${n.origin}, ${a}${n.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{const a=n;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 ${r[a.format]??n.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${n.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${n.keys.length>1?"s":""}: ${j(n.keys,", ")}`;case"invalid_key":return`${n.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${n.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}};function pz(){return{localeError:vz()}}const gz=()=>{const 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(n){return e[n]??null}const r={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"},i={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0627\u0631\u06D0"};return n=>{switch(n.code){case"invalid_type":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F instanceof ${n.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${s} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`:`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${a} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${s} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`}case"invalid_value":return n.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${ie(n.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${j(n.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{const a=n.inclusive?"<=":"<",o=t(n.origin);return o?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${n.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${a}${n.maximum.toString()} ${o.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${n.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${a}${n.maximum.toString()} \u0648\u064A`}case"too_small":{const a=n.inclusive?">=":">",o=t(n.origin);return o?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${n.origin} \u0628\u0627\u06CC\u062F ${a}${n.minimum.toString()} ${o.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${n.origin} \u0628\u0627\u06CC\u062F ${a}${n.minimum.toString()} \u0648\u064A`}case"invalid_format":{const a=n;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`:`${r[a.format]??n.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${n.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${n.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${j(n.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${n.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 ${n.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}};function mz(){return{localeError:gz()}}const yz=()=>{const 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(n){return e[n]??null}const r={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"},i={nan:"NaN",number:"liczba",array:"tablica"};return n=>{switch(n.code){case"invalid_type":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${n.expected}, otrzymano ${s}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${a}, otrzymano ${s}`}case"invalid_value":return n.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${ie(n.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${j(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",o=t(n.origin);return o?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${a}${n.maximum.toString()} ${o.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",o=t(n.origin);return o?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${a}${n.minimum.toString()} ${o.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;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) ${r[a.format]??n.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${n.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${n.keys.length>1?"s":""}: ${j(n.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${n.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${n.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}};function _z(){return{localeError:yz()}}const bz=()=>{const e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(n){return e[n]??null}const r={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"},i={nan:"NaN",number:"n\xFAmero",null:"nulo"};return n=>{switch(n.code){case"invalid_type":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`Tipo inv\xE1lido: esperado instanceof ${n.expected}, recebido ${s}`:`Tipo inv\xE1lido: esperado ${a}, recebido ${s}`}case"invalid_value":return n.values.length===1?`Entrada inv\xE1lida: esperado ${ie(n.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${j(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",o=t(n.origin);return o?`Muito grande: esperado que ${n.origin??"valor"} tivesse ${a}${n.maximum.toString()} ${o.unit??"elementos"}`:`Muito grande: esperado que ${n.origin??"valor"} fosse ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",o=t(n.origin);return o?`Muito pequeno: esperado que ${n.origin} tivesse ${a}${n.minimum.toString()} ${o.unit}`:`Muito pequeno: esperado que ${n.origin} fosse ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;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}`:`${r[a.format]??n.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${n.divisor}`;case"unrecognized_keys":return`Chave${n.keys.length>1?"s":""} desconhecida${n.keys.length>1?"s":""}: ${j(n.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${n.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${n.origin}`;default:return"Campo inv\xE1lido"}}};function Sz(){return{localeError:bz()}}const wz=()=>{const e={string:{unit:"caractere",verb:"s\u0103 aib\u0103"},file:{unit:"octe\u021Bi",verb:"s\u0103 aib\u0103"},array:{unit:"elemente",verb:"s\u0103 aib\u0103"},set:{unit:"elemente",verb:"s\u0103 aib\u0103"},map:{unit:"intr\u0103ri",verb:"s\u0103 aib\u0103"}};function t(n){return e[n]??null}const r={regex:"intrare",email:"adres\u0103 de 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:"dat\u0103 \u0219i or\u0103 ISO",date:"dat\u0103 ISO",time:"or\u0103 ISO",duration:"durat\u0103 ISO",ipv4:"adres\u0103 IPv4",ipv6:"adres\u0103 IPv6",mac:"adres\u0103 MAC",cidrv4:"interval IPv4",cidrv6:"interval IPv6",base64:"\u0219ir codat base64",base64url:"\u0219ir codat base64url",json_string:"\u0219ir JSON",e164:"num\u0103r E.164",jwt:"JWT",template_literal:"intrare"},i={nan:"NaN",string:"\u0219ir",number:"num\u0103r",boolean:"boolean",function:"func\u021Bie",array:"matrice",object:"obiect",undefined:"nedefinit",symbol:"simbol",bigint:"num\u0103r mare",void:"void",never:"never",map:"hart\u0103",set:"set"};return n=>{switch(n.code){case"invalid_type":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return`Intrare invalid\u0103: a\u0219teptat ${a}, primit ${s}`}case"invalid_value":return n.values.length===1?`Intrare invalid\u0103: a\u0219teptat ${ie(n.values[0])}`:`Op\u021Biune invalid\u0103: a\u0219teptat una dintre ${j(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",o=t(n.origin);return o?`Prea mare: a\u0219teptat ca ${n.origin??"valoarea"} ${o.verb} ${a}${n.maximum.toString()} ${o.unit??"elemente"}`:`Prea mare: a\u0219teptat ca ${n.origin??"valoarea"} s\u0103 fie ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",o=t(n.origin);return o?`Prea mic: a\u0219teptat ca ${n.origin} ${o.verb} ${a}${n.minimum.toString()} ${o.unit}`:`Prea mic: a\u0219teptat ca ${n.origin} s\u0103 fie ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`\u0218ir invalid: trebuie s\u0103 \xEEnceap\u0103 cu "${a.prefix}"`:a.format==="ends_with"?`\u0218ir invalid: trebuie s\u0103 se termine cu "${a.suffix}"`:a.format==="includes"?`\u0218ir invalid: trebuie s\u0103 includ\u0103 "${a.includes}"`:a.format==="regex"?`\u0218ir invalid: trebuie s\u0103 se potriveasc\u0103 cu modelul ${a.pattern}`:`Format invalid: ${r[a.format]??n.format}`}case"not_multiple_of":return`Num\u0103r invalid: trebuie s\u0103 fie multiplu de ${n.divisor}`;case"unrecognized_keys":return`Chei nerecunoscute: ${j(n.keys,", ")}`;case"invalid_key":return`Cheie invalid\u0103 \xEEn ${n.origin}`;case"invalid_union":return"Intrare invalid\u0103";case"invalid_element":return`Valoare invalid\u0103 \xEEn ${n.origin}`;default:return"Intrare invalid\u0103"}}};function xz(){return{localeError:wz()}}function SS(e,t,r,i){const n=Math.abs(e),a=n%10,o=n%100;return o>=11&&o<=19?i:a===1?t:a>=2&&a<=4?r:i}const Tz=()=>{const 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(n){return e[n]??null}const r={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"},i={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C instanceof ${n.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${s}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${a}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${s}`}case"invalid_value":return n.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${ie(n.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 ${j(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",o=t(n.origin);if(o){const s=Number(n.maximum),u=SS(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 ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${a}${n.maximum.toString()} ${u}`}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 ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",o=t(n.origin);if(o){const s=Number(n.minimum),u=SS(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 ${n.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${a}${n.minimum.toString()} ${u}`}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 ${n.origin} \u0431\u0443\u0434\u0435\u0442 ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;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 ${r[a.format]??n.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 ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${n.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${n.keys.length>1?"\u0438":""}: ${j(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${n.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 ${n.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 kz(){return{localeError:Tz()}}const Iz=()=>{const e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function t(n){return e[n]??null}const r={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"},i={nan:"NaN",number:"\u0161tevilo",array:"tabela"};return n=>{switch(n.code){case"invalid_type":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${n.expected}, prejeto ${s}`:`Neveljaven vnos: pri\u010Dakovano ${a}, prejeto ${s}`}case"invalid_value":return n.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${ie(n.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${j(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",o=t(n.origin);return o?`Preveliko: pri\u010Dakovano, da bo ${n.origin??"vrednost"} imelo ${a}${n.maximum.toString()} ${o.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${n.origin??"vrednost"} ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",o=t(n.origin);return o?`Premajhno: pri\u010Dakovano, da bo ${n.origin} imelo ${a}${n.minimum.toString()} ${o.unit}`:`Premajhno: pri\u010Dakovano, da bo ${n.origin} ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;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 ${r[a.format]??n.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${n.divisor}`;case"unrecognized_keys":return`Neprepoznan${n.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${j(n.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${n.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${n.origin}`;default:return"Neveljaven vnos"}}};function $z(){return{localeError:Iz()}}const Dz=()=>{const 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(n){return e[n]??null}const r={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"},i={nan:"NaN",number:"antal",array:"lista"};return n=>{switch(n.code){case"invalid_type":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${n.expected}, fick ${s}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${a}, fick ${s}`}case"invalid_value":return n.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${ie(n.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${j(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",o=t(n.origin);return o?`F\xF6r stor(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${a}${n.maximum.toString()} ${o.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${n.origin??"v\xE4rdet"} att ha ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",o=t(n.origin);return o?`F\xF6r lite(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${a}${n.minimum.toString()} ${o.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;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) ${r[a.format]??n.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${j(n.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${n.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${n.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}};function Cz(){return{localeError:Dz()}}const Az=()=>{const 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(n){return e[n]??null}const r={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"},i={nan:"NaN",number:"\u0B8E\u0BA3\u0BCD",array:"\u0B85\u0BA3\u0BBF",null:"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8"};return n=>{switch(n.code){case"invalid_type":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`\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 instanceof ${n.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${s}`:`\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 ${a}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${s}`}case"invalid_value":return n.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 ${ie(n.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 ${j(n.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{const a=n.inclusive?"<=":"<",o=t(n.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 ${n.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${a}${n.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 ${n.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${a}${n.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{const a=n.inclusive?">=":">",o=t(n.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 ${n.origin} ${a}${n.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 ${n.origin} ${a}${n.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{const a=n;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 ${r[a.format]??n.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${n.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${n.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${j(n.keys,", ")}`;case"invalid_key":return`${n.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`${n.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 Pz(){return{localeError:Az()}}const Mz=()=>{const 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(n){return e[n]??null}const r={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"},i={nan:"NaN",number:"\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02",array:"\u0E2D\u0E32\u0E23\u0E4C\u0E40\u0E23\u0E22\u0E4C (Array)",null:"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E48\u0E32 (null)"};return n=>{switch(n.code){case"invalid_type":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`\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 instanceof ${n.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${s}`:`\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 ${a} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${s}`}case"invalid_value":return n.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${ie(n.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 ${j(n.values,"|")}`;case"too_big":{const a=n.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",o=t(n.origin);return o?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${a} ${n.maximum.toString()} ${o.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${a} ${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",o=t(n.origin);return o?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${a} ${n.minimum.toString()} ${o.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${a} ${n.minimum.toString()}`}case"invalid_format":{const a=n;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: ${r[a.format]??n.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 ${n.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: ${j(n.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${n.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 ${n.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}};function Lz(){return{localeError:Mz()}}const Oz=()=>{const 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}const 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"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${n.expected}, al\u0131nan ${s}`:`Ge\xE7ersiz de\u011Fer: beklenen ${a}, al\u0131nan ${s}`}case"invalid_value":return n.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${ie(n.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${j(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",o=t(n.origin);return o?`\xC7ok b\xFCy\xFCk: beklenen ${n.origin??"de\u011Fer"} ${a}${n.maximum.toString()} ${o.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${n.origin??"de\u011Fer"} ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",o=t(n.origin);return o?`\xC7ok k\xFC\xE7\xFCk: beklenen ${n.origin} ${a}${n.minimum.toString()} ${o.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${n.origin} ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`Ge\xE7ersiz metin: "${a.prefix}" ile ba\u015Flamal\u0131`:a.format==="ends_with"?`Ge\xE7ersiz metin: "${a.suffix}" ile bitmeli`:a.format==="includes"?`Ge\xE7ersiz metin: "${a.includes}" i\xE7ermeli`:a.format==="regex"?`Ge\xE7ersiz metin: ${a.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${r[a.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":""}: ${j(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 Ez(){return{localeError:Oz()}}const zz=()=>{const 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(n){return e[n]??null}const r={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"},i={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`\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 instanceof ${n.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${s}`:`\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 ${a}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${s}`}case"invalid_value":return n.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 ${ie(n.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 ${j(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",o=t(n.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 ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${o.verb} ${a}${n.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 ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",o=t(n.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 ${n.origin} ${o.verb} ${a}${n.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 ${n.origin} \u0431\u0443\u0434\u0435 ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;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 ${r[a.format]??n.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 ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${n.keys.length>1?"\u0456":""}: ${j(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${n.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 ${n.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 V$(){return{localeError:zz()}}function Rz(){return V$()}const Nz=()=>{const 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(n){return e[n]??null}const r={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"},i={nan:"NaN",number:"\u0646\u0645\u0628\u0631",array:"\u0622\u0631\u06D2",null:"\u0646\u0644"};return n=>{switch(n.code){case"invalid_type":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: instanceof ${n.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${s} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`:`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${a} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${s} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`}case"invalid_value":return n.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${ie(n.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${j(n.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{const a=n.inclusive?"<=":"<",o=t(n.origin);return o?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${n.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${a}${n.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: ${n.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${a}${n.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{const a=n.inclusive?">=":">",o=t(n.origin);return o?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${n.origin} \u06A9\u06D2 ${a}${n.minimum.toString()} ${o.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${n.origin} \u06A9\u0627 ${a}${n.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{const a=n;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 ${r[a.format]??n.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${n.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${n.keys.length>1?"\u0632":""}: ${j(n.keys,"\u060C ")}`;case"invalid_key":return`${n.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${n.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}};function Uz(){return{localeError:Nz()}}const Bz=()=>{const e={string:{unit:"belgi",verb:"bo\u2018lishi kerak"},file:{unit:"bayt",verb:"bo\u2018lishi kerak"},array:{unit:"element",verb:"bo\u2018lishi kerak"},set:{unit:"element",verb:"bo\u2018lishi kerak"},map:{unit:"yozuv",verb:"bo\u2018lishi kerak"}};function t(n){return e[n]??null}const r={regex:"kirish",email:"elektron pochta manzili",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 sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",jwt:"JWT",template_literal:"kirish"},i={nan:"NaN",number:"raqam",array:"massiv"};return n=>{switch(n.code){case"invalid_type":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${n.expected}, qabul qilingan ${s}`:`Noto\u2018g\u2018ri kirish: kutilgan ${a}, qabul qilingan ${s}`}case"invalid_value":return n.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${ie(n.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${j(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",o=t(n.origin);return o?`Juda katta: kutilgan ${n.origin??"qiymat"} ${a}${n.maximum.toString()} ${o.unit} ${o.verb}`:`Juda katta: kutilgan ${n.origin??"qiymat"} ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",o=t(n.origin);return o?`Juda kichik: kutilgan ${n.origin} ${a}${n.minimum.toString()} ${o.unit} ${o.verb}`:`Juda kichik: kutilgan ${n.origin} ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`Noto\u2018g\u2018ri satr: "${a.prefix}" bilan boshlanishi kerak`:a.format==="ends_with"?`Noto\u2018g\u2018ri satr: "${a.suffix}" bilan tugashi kerak`:a.format==="includes"?`Noto\u2018g\u2018ri satr: "${a.includes}" ni o\u2018z ichiga olishi kerak`:a.format==="regex"?`Noto\u2018g\u2018ri satr: ${a.pattern} shabloniga mos kelishi kerak`:`Noto\u2018g\u2018ri ${r[a.format]??n.format}`}case"not_multiple_of":return`Noto\u2018g\u2018ri raqam: ${n.divisor} ning karralisi bo\u2018lishi kerak`;case"unrecognized_keys":return`Noma\u2019lum kalit${n.keys.length>1?"lar":""}: ${j(n.keys,", ")}`;case"invalid_key":return`${n.origin} dagi kalit noto\u2018g\u2018ri`;case"invalid_union":return"Noto\u2018g\u2018ri kirish";case"invalid_element":return`${n.origin} da noto\u2018g\u2018ri qiymat`;default:return"Noto\u2018g\u2018ri kirish"}}};function Fz(){return{localeError:Bz()}}const jz=()=>{const 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(n){return e[n]??null}const r={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"},i={nan:"NaN",number:"s\u1ED1",array:"m\u1EA3ng"};return n=>{switch(n.code){case"invalid_type":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i instanceof ${n.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${s}`:`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${a}, nh\u1EADn \u0111\u01B0\u1EE3c ${s}`}case"invalid_value":return n.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${ie(n.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${j(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",o=t(n.origin);return o?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${n.origin??"gi\xE1 tr\u1ECB"} ${o.verb} ${a}${n.maximum.toString()} ${o.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${n.origin??"gi\xE1 tr\u1ECB"} ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",o=t(n.origin);return o?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${n.origin} ${o.verb} ${a}${n.minimum.toString()} ${o.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${n.origin} ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;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}`:`${r[a.format]??n.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 ${n.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${j(n.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${n.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 ${n.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}};function Zz(){return{localeError:jz()}}const Vz=()=>{const 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(n){return e[n]??null}const r={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"},i={nan:"NaN",number:"\u6570\u5B57",array:"\u6570\u7EC4",null:"\u7A7A\u503C(null)"};return n=>{switch(n.code){case"invalid_type":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${n.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${s}`:`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${a}\uFF0C\u5B9E\u9645\u63A5\u6536 ${s}`}case"invalid_value":return n.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${ie(n.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${j(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",o=t(n.origin);return o?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${n.origin??"\u503C"} ${a}${n.maximum.toString()} ${o.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${n.origin??"\u503C"} ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",o=t(n.origin);return o?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${n.origin} ${a}${n.minimum.toString()} ${o.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${n.origin} ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;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${r[a.format]??n.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${n.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${j(n.keys,", ")}`;case"invalid_key":return`${n.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${n.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}};function Gz(){return{localeError:Vz()}}const Hz=()=>{const 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(n){return e[n]??null}const r={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"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${n.expected}\uFF0C\u4F46\u6536\u5230 ${s}`:`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${a}\uFF0C\u4F46\u6536\u5230 ${s}`}case"invalid_value":return n.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${ie(n.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${j(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",o=t(n.origin);return o?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${n.origin??"\u503C"} \u61C9\u70BA ${a}${n.maximum.toString()} ${o.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${n.origin??"\u503C"} \u61C9\u70BA ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",o=t(n.origin);return o?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${n.origin} \u61C9\u70BA ${a}${n.minimum.toString()} ${o.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${n.origin} \u61C9\u70BA ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;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 ${r[a.format]??n.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${n.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${n.keys.length>1?"\u5011":""}\uFF1A${j(n.keys,"\u3001")}`;case"invalid_key":return`${n.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${n.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}};function Wz(){return{localeError:Hz()}}const qz=()=>{const 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(n){return e[n]??null}const r={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"},i={nan:"NaN",number:"n\u1ECD\u0301mb\xE0",array:"akop\u1ECD"};return n=>{switch(n.code){case"invalid_type":{const a=i[n.expected]??n.expected,o=ae(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi instanceof ${n.expected}, \xE0m\u1ECD\u0300 a r\xED ${s}`:`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${a}, \xE0m\u1ECD\u0300 a r\xED ${s}`}case"invalid_value":return n.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${ie(n.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${j(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",o=t(n.origin);return o?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${n.origin??"iye"} ${o.verb} ${a}${n.maximum} ${o.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${a}${n.maximum}`}case"too_small":{const a=n.inclusive?">=":">",o=t(n.origin);return o?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${n.origin} ${o.verb} ${a}${n.minimum} ${o.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${a}${n.minimum}`}case"invalid_format":{const a=n;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: ${r[a.format]??n.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 ${n.divisor}`;case"unrecognized_keys":return`B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ${j(n.keys,", ")}`;case"invalid_key":return`B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ${n.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 ${n.origin}`;default:return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"}}};function Yz(){return{localeError:qz()}}const qm=Object.freeze(Object.defineProperty({__proto__:null,ar:o2,az:u2,be:c2,bg:d2,ca:v2,cs:g2,da:y2,de:b2,el:w2,en:j$,eo:k2,es:$2,fa:C2,fi:P2,fr:L2,frCA:E2,he:R2,hr:U2,hu:F2,hy:Z2,id:G2,is:W2,it:Y2,ja:K2,ka:Q2,kh:tz,km:Z$,ko:nz,lt:az,mk:sz,ms:lz,nl:fz,no:hz,ota:pz,pl:_z,ps:mz,pt:Sz,ro:xz,ru:kz,sl:$z,sv:Cz,ta:Pz,th:Lz,tr:Ez,ua:Rz,uk:V$,ur:Uz,uz:Fz,vi:Zz,yo:Yz,zhCN:Gz,zhTW:Wz},Symbol.toStringTag,{value:"Module"}));var wS;const Ym=Symbol("ZodOutput"),Xm=Symbol("ZodInput");class G${constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){const i=r[0];return this._map.set(t,i),i&&typeof i=="object"&&"id"in i&&this._idmap.set(i.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const 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){const r=t._zod.parent;if(r){const i={...this.get(r)??{}};delete i.id;const n={...i,...this._map.get(t)};return Object.keys(n).length?n:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function sd(){return new G$}(wS=globalThis).__zod_globalRegistry??(wS.__zod_globalRegistry=sd());const Jt=globalThis.__zod_globalRegistry;function H$(e,t){return new e({type:"string",...U(t)})}function W$(e,t){return new e({type:"string",coerce:!0,...U(t)})}function Km(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...U(t)})}function af(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...U(t)})}function Jm(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...U(t)})}function Qm(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...U(t)})}function ey(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...U(t)})}function ty(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...U(t)})}function ud(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...U(t)})}function ry(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...U(t)})}function ny(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...U(t)})}function iy(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...U(t)})}function ay(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...U(t)})}function oy(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...U(t)})}function sy(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...U(t)})}function uy(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...U(t)})}function ly(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...U(t)})}function cy(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...U(t)})}function q$(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...U(t)})}function fy(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...U(t)})}function dy(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...U(t)})}function hy(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...U(t)})}function vy(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...U(t)})}function py(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...U(t)})}function gy(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...U(t)})}const my={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function Y$(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...U(t)})}function X$(e,t){return new e({type:"string",format:"date",check:"string_format",...U(t)})}function K$(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...U(t)})}function J$(e,t){return new e({type:"string",format:"duration",check:"string_format",...U(t)})}function Q$(e,t){return new e({type:"number",checks:[],...U(t)})}function eD(e,t){return new e({type:"number",coerce:!0,checks:[],...U(t)})}function tD(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...U(t)})}function rD(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...U(t)})}function nD(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...U(t)})}function iD(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...U(t)})}function aD(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...U(t)})}function oD(e,t){return new e({type:"boolean",...U(t)})}function sD(e,t){return new e({type:"boolean",coerce:!0,...U(t)})}function uD(e,t){return new e({type:"bigint",...U(t)})}function lD(e,t){return new e({type:"bigint",coerce:!0,...U(t)})}function cD(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...U(t)})}function fD(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...U(t)})}function dD(e,t){return new e({type:"symbol",...U(t)})}function hD(e,t){return new e({type:"undefined",...U(t)})}function vD(e,t){return new e({type:"null",...U(t)})}function pD(e){return new e({type:"any"})}function gD(e){return new e({type:"unknown"})}function mD(e,t){return new e({type:"never",...U(t)})}function yD(e,t){return new e({type:"void",...U(t)})}function _D(e,t){return new e({type:"date",...U(t)})}function bD(e,t){return new e({type:"date",coerce:!0,...U(t)})}function SD(e,t){return new e({type:"nan",...U(t)})}function xn(e,t){return new Nm({check:"less_than",...U(t),value:e,inclusive:!1})}function Qt(e,t){return new Nm({check:"less_than",...U(t),value:e,inclusive:!0})}function Tn(e,t){return new Um({check:"greater_than",...U(t),value:e,inclusive:!1})}function Rt(e,t){return new Um({check:"greater_than",...U(t),value:e,inclusive:!0})}function ld(e){return Tn(0,e)}function cd(e){return xn(0,e)}function fd(e){return Qt(0,e)}function dd(e){return Rt(0,e)}function Ji(e,t){return new lI({check:"multiple_of",...U(t),value:e})}function fa(e,t){return new dI({check:"max_size",...U(t),maximum:e})}function kn(e,t){return new hI({check:"min_size",...U(t),minimum:e})}function To(e,t){return new vI({check:"size_equals",...U(t),size:e})}function ko(e,t){return new pI({check:"max_length",...U(t),maximum:e})}function Qn(e,t){return new gI({check:"min_length",...U(t),minimum:e})}function Io(e,t){return new mI({check:"length_equals",...U(t),length:e})}function Iu(e,t){return new yI({check:"string_format",format:"regex",...U(t),pattern:e})}function $u(e){return new _I({check:"string_format",format:"lowercase",...U(e)})}function Du(e){return new bI({check:"string_format",format:"uppercase",...U(e)})}function Cu(e,t){return new SI({check:"string_format",format:"includes",...U(t),includes:e})}function Au(e,t){return new wI({check:"string_format",format:"starts_with",...U(t),prefix:e})}function Pu(e,t){return new xI({check:"string_format",format:"ends_with",...U(t),suffix:e})}function hd(e,t,r){return new TI({check:"property",property:e,schema:t,...U(r)})}function Mu(e,t){return new kI({check:"mime_type",mime:e,...U(t)})}function cn(e){return new II({check:"overwrite",tx:e})}function Lu(e){return cn(t=>t.normalize(e))}function Ou(){return cn(e=>e.trim())}function Eu(){return cn(e=>e.toLowerCase())}function zu(){return cn(e=>e.toUpperCase())}function Ru(){return cn(e=>lk(e))}function wD(e,t,r){return new e({type:"array",element:t,...U(r)})}function Xz(e,t,r){return new e({type:"union",options:t,...U(r)})}function Kz(e,t,r){return new e({type:"union",options:t,inclusive:!1,...U(r)})}function Jz(e,t,r,i){return new e({type:"union",options:r,discriminator:t,...U(i)})}function Qz(e,t,r){return new e({type:"intersection",left:t,right:r})}function eR(e,t,r,i){const n=r instanceof he,a=n?i:r,o=n?r:null;return new e({type:"tuple",items:t,rest:o,...U(a)})}function tR(e,t,r,i){return new e({type:"record",keyType:t,valueType:r,...U(i)})}function rR(e,t,r,i){return new e({type:"map",keyType:t,valueType:r,...U(i)})}function nR(e,t,r){return new e({type:"set",valueType:t,...U(r)})}function iR(e,t,r){const i=Array.isArray(t)?Object.fromEntries(t.map(n=>[n,n])):t;return new e({type:"enum",entries:i,...U(r)})}function aR(e,t,r){return new e({type:"enum",entries:t,...U(r)})}function oR(e,t,r){return new e({type:"literal",values:Array.isArray(t)?t:[t],...U(r)})}function xD(e,t){return new e({type:"file",...U(t)})}function sR(e,t){return new e({type:"transform",transform:t})}function uR(e,t){return new e({type:"optional",innerType:t})}function lR(e,t){return new e({type:"nullable",innerType:t})}function cR(e,t,r){return new e({type:"default",innerType:t,get defaultValue(){return typeof r=="function"?r():ed(r)}})}function fR(e,t,r){return new e({type:"nonoptional",innerType:t,...U(r)})}function dR(e,t){return new e({type:"success",innerType:t})}function hR(e,t,r){return new e({type:"catch",innerType:t,catchValue:typeof r=="function"?r:()=>r})}function vR(e,t,r){return new e({type:"pipe",in:t,out:r})}function pR(e,t){return new e({type:"readonly",innerType:t})}function gR(e,t,r){return new e({type:"template_literal",parts:t,...U(r)})}function mR(e,t){return new e({type:"lazy",getter:t})}function yR(e,t){return new e({type:"promise",innerType:t})}function TD(e,t,r){const i=U(r);return i.abort??(i.abort=!0),new e({type:"custom",check:"custom",fn:t,...i})}function kD(e,t,r){return new e({type:"custom",check:"custom",fn:t,...U(r)})}function ID(e,t){const r=$D(i=>(i.addIssue=n=>{if(typeof n=="string")i.issues.push(ro(n,i.value,r._zod.def));else{const a=n;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=i.value),a.inst??(a.inst=r),a.continue??(a.continue=!r._zod.def.abort),i.issues.push(ro(a))}},e(i.value,i)),t);return r}function $D(e,t){const r=new Ke({check:"custom",...U(t)});return r._zod.check=e,r}function DD(e){const t=new Ke({check:"describe"});return t._zod.onattach=[r=>{const i=Jt.get(r)??{};Jt.add(r,{...i,description:e})}],t._zod.check=()=>{},t}function CD(e){const t=new Ke({check:"meta"});return t._zod.onattach=[r=>{const i=Jt.get(r)??{};Jt.add(r,{...i,...e})}],t._zod.check=()=>{},t}function AD(e,t){const r=U(t);let i=r.truthy??["true","1","yes","on","y","enabled"],n=r.falsy??["false","0","no","off","n","disabled"];r.case!=="sensitive"&&(i=i.map(h=>typeof h=="string"?h.toLowerCase():h),n=n.map(h=>typeof h=="string"?h.toLowerCase():h));const a=new Set(i),o=new Set(n),s=e.Codec??Wm,u=e.Boolean??jm,l=e.String??ku,c=new l({type:"string",error:r.error}),f=new u({type:"boolean",error:r.error}),d=new s({type:"pipe",in:c,out:f,transform:((h,v)=>{let p=h;return r.case!=="sensitive"&&(p=p.toLowerCase()),a.has(p)?!0:o.has(p)?!1:(v.issues.push({code:"invalid_value",expected:"stringbool",values:[...a,...o],input:v.value,inst:d,continue:!1}),{})}),reverseTransform:((h,v)=>h===!0?i[0]||"true":n[0]||"false"),error:r.error});return d}function Nu(e,t,r,i={}){const n=U(i),a={...U(i),check:"string_format",type:"string",format:t,fn:typeof r=="function"?r:s=>r.test(s),...n};return r instanceof RegExp&&(a.pattern=r),new e(a)}function io(e){let t=(e==null?void 0:e.target)??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:(e==null?void 0:e.metadata)??Jt,target:t,unrepresentable:(e==null?void 0:e.unrepresentable)??"throw",override:(e==null?void 0:e.override)??(()=>{}),io:(e==null?void 0:e.io)??"output",counter:0,seen:new Map,cycles:(e==null?void 0:e.cycles)??"ref",reused:(e==null?void 0:e.reused)??"inline",external:(e==null?void 0:e.external)??void 0}}function Ve(e,t,r={path:[],schemaPath:[]}){var c,f;var i;const n=e._zod.def,a=t.seen.get(e);if(a)return a.count++,r.schemaPath.includes(e)&&(a.cycle=r.path),a.schema;const o={schema:{},count:1,cycle:void 0,path:r.path};t.seen.set(e,o);const s=(f=(c=e._zod).toJSONSchema)==null?void 0:f.call(c);if(s)o.schema=s;else{const d={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,d);else{const v=o.schema,p=t.processors[n.type];if(!p)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${n.type}`);p(e,t,v,d)}const h=e._zod.parent;h&&(o.ref||(o.ref=h),Ve(h,t,d),t.seen.get(h).isParent=!0)}const u=t.metadataRegistry.get(e);return u&&Object.assign(o.schema,u),t.io==="input"&&Lt(e)&&(delete o.schema.examples,delete o.schema.default),t.io==="input"&&"_prefault"in o.schema&&((i=o.schema).default??(i.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function ao(e,t){var o,s,u,l;const r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");const i=new Map;for(const c of e.seen.entries()){const f=(o=e.metadataRegistry.get(c[0]))==null?void 0:o.id;if(f){const d=i.get(f);if(d&&d!==c[0])throw new Error(`Duplicate schema id "${f}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);i.set(f,c[0])}}const n=c=>{var p;const f=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const g=(p=e.external.registry.get(c[0]))==null?void 0:p.id,m=e.external.uri??(_=>_);if(g)return{ref:m(g)};const y=c[1].defId??c[1].schema.id??`schema${e.counter++}`;return c[1].defId=y,{defId:y,ref:`${m("__shared")}#/${f}/${y}`}}if(c[1]===r)return{ref:"#"};const h=`#/${f}/`,v=c[1].schema.id??`__schema${e.counter++}`;return{defId:v,ref:h+v}},a=c=>{if(c[1].schema.$ref)return;const f=c[1],{ref:d,defId:h}=n(c);f.def={...f.schema},h&&(f.defId=h);const v=f.schema;for(const p in v)delete v[p];v.$ref=d};if(e.cycles==="throw")for(const c of e.seen.entries()){const f=c[1];if(f.cycle)throw new Error(`Cycle detected: #/${(s=f.cycle)==null?void 0:s.join("/")}/<root>\n\nSet the \\`cycles\\` parameter to \\`"ref"\\` to resolve cyclical schemas with defs.`)}for(const c of e.seen.entries()){const f=c[1];if(t===c[0]){a(c);continue}if(e.external){const h=(u=e.external.registry.get(c[0]))==null?void 0:u.id;if(t!==c[0]&&h){a(c);continue}}if((l=e.metadataRegistry.get(c[0]))==null?void 0:l.id){a(c);continue}if(f.cycle){a(c);continue}if(f.count>1&&e.reused==="ref"){a(c);continue}}}function oo(e,t){var s,u,l,c;const r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");const i=f=>{const d=e.seen.get(f);if(d.ref===null)return;const h=d.def??d.schema,v={...h},p=d.ref;if(d.ref=null,p){i(p);const m=e.seen.get(p),y=m.schema;if(y.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(h.allOf=h.allOf??[],h.allOf.push(y)):Object.assign(h,y),Object.assign(h,v),f._zod.parent===p)for(const b in h)b==="$ref"||b==="allOf"||b in v||delete h[b];if(y.$ref&&m.def)for(const b in h)b==="$ref"||b==="allOf"||b in m.def&&JSON.stringify(h[b])===JSON.stringify(m.def[b])&&delete h[b]}const g=f._zod.parent;if(g&&g!==p){i(g);const m=e.seen.get(g);if(m!=null&&m.schema.$ref&&(h.$ref=m.schema.$ref,m.def))for(const y in h)y==="$ref"||y==="allOf"||y in m.def&&JSON.stringify(h[y])===JSON.stringify(m.def[y])&&delete h[y]}e.override({zodSchema:f,jsonSchema:h,path:d.path??[]})};for(const f of[...e.seen.entries()].reverse())i(f[0]);const n={};if(e.target==="draft-2020-12"?n.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?n.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?n.$schema="http://json-schema.org/draft-04/schema#":e.target,(s=e.external)!=null&&s.uri){const f=(u=e.external.registry.get(t))==null?void 0:u.id;if(!f)throw new Error("Schema is missing an `id` property");n.$id=e.external.uri(f)}Object.assign(n,r.def??r.schema);const a=(l=e.metadataRegistry.get(t))==null?void 0:l.id;a!==void 0&&n.id===a&&delete n.id;const o=((c=e.external)==null?void 0:c.defs)??{};for(const f of e.seen.entries()){const d=f[1];d.def&&d.defId&&(d.def.id===d.defId&&delete d.def.id,o[d.defId]=d.def)}e.external||Object.keys(o).length>0&&(e.target==="draft-2020-12"?n.$defs=o:n.definitions=o);try{const f=JSON.parse(JSON.stringify(n));return Object.defineProperty(f,"~standard",{value:{...t["~standard"],jsonSchema:{input:js(t,"input",e.processors),output:js(t,"output",e.processors)}},enumerable:!1,writable:!1}),f}catch{throw new Error("Error converting schema to JSON.")}}function Lt(e,t){const r=t??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);const i=e._zod.def;if(i.type==="transform")return!0;if(i.type==="array")return Lt(i.element,r);if(i.type==="set")return Lt(i.valueType,r);if(i.type==="lazy")return Lt(i.getter(),r);if(i.type==="promise"||i.type==="optional"||i.type==="nonoptional"||i.type==="nullable"||i.type==="readonly"||i.type==="default"||i.type==="prefault")return Lt(i.innerType,r);if(i.type==="intersection")return Lt(i.left,r)||Lt(i.right,r);if(i.type==="record"||i.type==="map")return Lt(i.keyType,r)||Lt(i.valueType,r);if(i.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:Lt(i.in,r)||Lt(i.out,r);if(i.type==="object"){for(const n in i.shape)if(Lt(i.shape[n],r))return!0;return!1}if(i.type==="union"){for(const n of i.options)if(Lt(n,r))return!0;return!1}if(i.type==="tuple"){for(const n of i.items)if(Lt(n,r))return!0;return!!(i.rest&&Lt(i.rest,r))}return!1}const PD=(e,t={})=>r=>{const i=io({...r,processors:t});return Ve(e,i),ao(i,e),oo(i,e)},js=(e,t,r={})=>i=>{const{libraryOptions:n,target:a}=i??{},o=io({...n??{},target:a,io:t,processors:r});return Ve(e,o),ao(o,e),oo(o,e)},_R={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},MD=(e,t,r,i)=>{const n=r;n.type="string";const{minimum:a,maximum:o,format:s,patterns:u,contentEncoding:l}=e._zod.bag;if(typeof a=="number"&&(n.minLength=a),typeof o=="number"&&(n.maxLength=o),s&&(n.format=_R[s]??s,n.format===""&&delete n.format,s==="time"&&delete n.format),l&&(n.contentEncoding=l),u&&u.size>0){const c=[...u];c.length===1?n.pattern=c[0].source:c.length>1&&(n.allOf=[...c.map(f=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:f.source}))])}},LD=(e,t,r,i)=>{const n=r,{minimum:a,maximum:o,format:s,multipleOf:u,exclusiveMaximum:l,exclusiveMinimum:c}=e._zod.bag;typeof s=="string"&&s.includes("int")?n.type="integer":n.type="number";const f=typeof c=="number"&&c>=(a??Number.NEGATIVE_INFINITY),d=typeof l=="number"&&l<=(o??Number.POSITIVE_INFINITY),h=t.target==="draft-04"||t.target==="openapi-3.0";f?h?(n.minimum=c,n.exclusiveMinimum=!0):n.exclusiveMinimum=c:typeof a=="number"&&(n.minimum=a),d?h?(n.maximum=l,n.exclusiveMaximum=!0):n.exclusiveMaximum=l:typeof o=="number"&&(n.maximum=o),typeof u=="number"&&(n.multipleOf=u)},OD=(e,t,r,i)=>{r.type="boolean"},ED=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},zD=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},RD=(e,t,r,i)=>{t.target==="openapi-3.0"?(r.type="string",r.nullable=!0,r.enum=[null]):r.type="null"},ND=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},UD=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},BD=(e,t,r,i)=>{r.not={}},FD=(e,t,r,i)=>{},jD=(e,t,r,i)=>{},ZD=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},VD=(e,t,r,i)=>{const n=e._zod.def,a=bm(n.entries);a.every(o=>typeof o=="number")&&(r.type="number"),a.every(o=>typeof o=="string")&&(r.type="string"),r.enum=a},GD=(e,t,r,i)=>{const n=e._zod.def,a=[];for(const o of n.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){const 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},HD=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},WD=(e,t,r,i)=>{const n=r,a=e._zod.pattern;if(!a)throw new Error("Pattern not found in template literal");n.type="string",n.pattern=a.source},qD=(e,t,r,i)=>{const n=r,a={type:"string",format:"binary",contentEncoding:"binary"},{minimum:o,maximum:s,mime:u}=e._zod.bag;o!==void 0&&(a.minLength=o),s!==void 0&&(a.maxLength=s),u?u.length===1?(a.contentMediaType=u[0],Object.assign(n,a)):(Object.assign(n,a),n.anyOf=u.map(l=>({contentMediaType:l}))):Object.assign(n,a)},YD=(e,t,r,i)=>{r.type="boolean"},XD=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},KD=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},JD=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},QD=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},eC=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},tC=(e,t,r,i)=>{const n=r,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o=="number"&&(n.minItems=o),typeof s=="number"&&(n.maxItems=s),n.type="array",n.items=Ve(a.element,t,{...i,path:[...i.path,"items"]})},rC=(e,t,r,i)=>{var l;const n=r,a=e._zod.def;n.type="object",n.properties={};const o=a.shape;for(const c in o)n.properties[c]=Ve(o[c],t,{...i,path:[...i.path,"properties",c]});const s=new Set(Object.keys(o)),u=new Set([...s].filter(c=>{const f=a.shape[c]._zod;return t.io==="input"?f.optin===void 0:f.optout===void 0}));u.size>0&&(n.required=Array.from(u)),((l=a.catchall)==null?void 0:l._zod.def.type)==="never"?n.additionalProperties=!1:a.catchall?a.catchall&&(n.additionalProperties=Ve(a.catchall,t,{...i,path:[...i.path,"additionalProperties"]})):t.io==="output"&&(n.additionalProperties=!1)},yy=(e,t,r,i)=>{const n=e._zod.def,a=n.inclusive===!1,o=n.options.map((s,u)=>Ve(s,t,{...i,path:[...i.path,a?"oneOf":"anyOf",u]}));a?r.oneOf=o:r.anyOf=o},nC=(e,t,r,i)=>{const n=e._zod.def,a=Ve(n.left,t,{...i,path:[...i.path,"allOf",0]}),o=Ve(n.right,t,{...i,path:[...i.path,"allOf",1]}),s=l=>"allOf"in l&&Object.keys(l).length===1,u=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]];r.allOf=u},iC=(e,t,r,i)=>{const n=r,a=e._zod.def;n.type="array";const o=t.target==="draft-2020-12"?"prefixItems":"items",s=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",u=a.items.map((d,h)=>Ve(d,t,{...i,path:[...i.path,o,h]})),l=a.rest?Ve(a.rest,t,{...i,path:[...i.path,s,...t.target==="openapi-3.0"?[a.items.length]:[]]}):null;t.target==="draft-2020-12"?(n.prefixItems=u,l&&(n.items=l)):t.target==="openapi-3.0"?(n.items={anyOf:u},l&&n.items.anyOf.push(l),n.minItems=u.length,l||(n.maxItems=u.length)):(n.items=u,l&&(n.additionalItems=l));const{minimum:c,maximum:f}=e._zod.bag;typeof c=="number"&&(n.minItems=c),typeof f=="number"&&(n.maxItems=f)},aC=(e,t,r,i)=>{const n=r,a=e._zod.def;n.type="object";const o=a.keyType,s=o._zod.bag,u=s==null?void 0:s.patterns;if(a.mode==="loose"&&u&&u.size>0){const c=Ve(a.valueType,t,{...i,path:[...i.path,"patternProperties","*"]});n.patternProperties={};for(const f of u)n.patternProperties[f.source]=c}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(n.propertyNames=Ve(a.keyType,t,{...i,path:[...i.path,"propertyNames"]})),n.additionalProperties=Ve(a.valueType,t,{...i,path:[...i.path,"additionalProperties"]});const l=o._zod.values;if(l){const c=[...l].filter(f=>typeof f=="string"||typeof f=="number");c.length>0&&(n.required=c)}},oC=(e,t,r,i)=>{const n=e._zod.def,a=Ve(n.innerType,t,i),o=t.seen.get(e);t.target==="openapi-3.0"?(o.ref=n.innerType,r.nullable=!0):r.anyOf=[a,{type:"null"}]},sC=(e,t,r,i)=>{const n=e._zod.def;Ve(n.innerType,t,i);const a=t.seen.get(e);a.ref=n.innerType},uC=(e,t,r,i)=>{const n=e._zod.def;Ve(n.innerType,t,i);const a=t.seen.get(e);a.ref=n.innerType,r.default=JSON.parse(JSON.stringify(n.defaultValue))},lC=(e,t,r,i)=>{const n=e._zod.def;Ve(n.innerType,t,i);const a=t.seen.get(e);a.ref=n.innerType,t.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(n.defaultValue)))},cC=(e,t,r,i)=>{const n=e._zod.def;Ve(n.innerType,t,i);const a=t.seen.get(e);a.ref=n.innerType;let o;try{o=n.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=o},fC=(e,t,r,i)=>{const n=e._zod.def,a=n.in._zod.traits.has("$ZodTransform"),o=t.io==="input"?a?n.out:n.in:n.out;Ve(o,t,i);const s=t.seen.get(e);s.ref=o},dC=(e,t,r,i)=>{const n=e._zod.def;Ve(n.innerType,t,i);const a=t.seen.get(e);a.ref=n.innerType,r.readOnly=!0},hC=(e,t,r,i)=>{const n=e._zod.def;Ve(n.innerType,t,i);const a=t.seen.get(e);a.ref=n.innerType},_y=(e,t,r,i)=>{const n=e._zod.def;Ve(n.innerType,t,i);const a=t.seen.get(e);a.ref=n.innerType},vC=(e,t,r,i)=>{const n=e._zod.innerType;Ve(n,t,i);const a=t.seen.get(e);a.ref=n},Op={string:MD,number:LD,boolean:OD,bigint:ED,symbol:zD,null:RD,undefined:ND,void:UD,never:BD,any:FD,unknown:jD,date:ZD,enum:VD,literal:GD,nan:HD,template_literal:WD,file:qD,success:YD,custom:XD,function:KD,transform:JD,map:QD,set:eC,array:tC,object:rC,union:yy,intersection:nC,tuple:iC,record:aC,nullable:oC,nonoptional:sC,default:uC,prefault:lC,catch:cC,pipe:fC,readonly:dC,promise:hC,optional:_y,lazy:vC};function by(e,t){if("_idmap"in e){const i=e,n=io({...t,processors:Op}),a={};for(const u of i._idmap.entries()){const[l,c]=u;Ve(c,n)}const o={},s={registry:i,uri:t==null?void 0:t.uri,defs:a};n.external=s;for(const u of i._idmap.entries()){const[l,c]=u;ao(n,c),o[l]=oo(n,c)}if(Object.keys(a).length>0){const u=n.target==="draft-2020-12"?"$defs":"definitions";o.__shared={[u]:a}}return{schemas:o}}const r=io({...t,processors:Op});return Ve(e,r),ao(r,e),oo(r,e)}class bR{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==null?void 0:t.target)??"draft-2020-12";r==="draft-4"&&(r="draft-04"),r==="draft-7"&&(r="draft-07"),this.ctx=io({processors:Op,target:r,...(t==null?void 0:t.metadata)&&{metadata:t.metadata},...(t==null?void 0:t.unrepresentable)&&{unrepresentable:t.unrepresentable},...(t==null?void 0:t.override)&&{override:t.override},...(t==null?void 0:t.io)&&{io:t.io}})}process(t,r={path:[],schemaPath:[]}){return Ve(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)),ao(this.ctx,t);const i=oo(this.ctx,t),{"~standard":n,...a}=i;return a}}const SR=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),pC=Object.freeze(Object.defineProperty({__proto__:null,$ZodAny:s$,$ZodArray:d$,$ZodAsyncError:Vi,$ZodBase64:YI,$ZodBase64URL:KI,$ZodBigInt:Zm,$ZodBigIntFormat:n$,$ZodBoolean:jm,$ZodCIDRv4:WI,$ZodCIDRv6:qI,$ZodCUID:EI,$ZodCUID2:zI,$ZodCatch:L$,$ZodCheck:Ke,$ZodCheckBigIntFormat:fI,$ZodCheckEndsWith:xI,$ZodCheckGreaterThan:Um,$ZodCheckIncludes:SI,$ZodCheckLengthEquals:mI,$ZodCheckLessThan:Nm,$ZodCheckLowerCase:_I,$ZodCheckMaxLength:pI,$ZodCheckMaxSize:dI,$ZodCheckMimeType:kI,$ZodCheckMinLength:gI,$ZodCheckMinSize:hI,$ZodCheckMultipleOf:lI,$ZodCheckNumberFormat:cI,$ZodCheckOverwrite:II,$ZodCheckProperty:TI,$ZodCheckRegex:yI,$ZodCheckSizeEquals:vI,$ZodCheckStartsWith:wI,$ZodCheckStringFormat:Tu,$ZodCheckUpperCase:bI,$ZodCodec:Wm,$ZodCustom:F$,$ZodCustomStringFormat:t$,$ZodDate:f$,$ZodDefault:C$,$ZodDiscriminatedUnion:y$,$ZodE164:JI,$ZodEmail:PI,$ZodEmoji:LI,$ZodEncodeError:Jf,$ZodEnum:x$,$ZodError:xm,$ZodExactOptional:$$,$ZodFile:k$,$ZodFunction:N$,$ZodGUID:CI,$ZodIPv4:VI,$ZodIPv6:GI,$ZodISODate:FI,$ZodISODateTime:BI,$ZodISODuration:ZI,$ZodISOTime:jI,$ZodIntersection:_$,$ZodJWT:e$,$ZodKSUID:UI,$ZodLazy:B$,$ZodLiteral:T$,$ZodMAC:HI,$ZodMap:S$,$ZodNaN:O$,$ZodNanoID:OI,$ZodNever:l$,$ZodNonOptional:P$,$ZodNull:o$,$ZodNullable:D$,$ZodNumber:Fm,$ZodNumberFormat:r$,$ZodObject:p$,$ZodObjectJIT:g$,$ZodOptional:Gm,$ZodPipe:Hm,$ZodPrefault:A$,$ZodPreprocess:E$,$ZodPromise:U$,$ZodReadonly:z$,$ZodRealError:nr,$ZodRecord:b$,$ZodRegistry:G$,$ZodSet:w$,$ZodString:ku,$ZodStringFormat:qe,$ZodSuccess:M$,$ZodSymbol:i$,$ZodTemplateLiteral:R$,$ZodTransform:I$,$ZodTuple:Vm,$ZodType:he,$ZodULID:RI,$ZodURL:MI,$ZodUUID:AI,$ZodUndefined:a$,$ZodUnion:od,$ZodUnknown:u$,$ZodVoid:c$,$ZodXID:NI,$ZodXor:m$,$brand:_m,$constructor:M,$input:Xm,$output:Ym,Doc:$I,JSONSchema:SR,JSONSchemaGenerator:bR,NEVER:ym,TimePrecision:my,_any:pD,_array:wD,_base64:hy,_base64url:vy,_bigint:uD,_boolean:oD,_catch:hR,_check:$D,_cidrv4:fy,_cidrv6:dy,_coercedBigint:lD,_coercedBoolean:sD,_coercedDate:bD,_coercedNumber:eD,_coercedString:W$,_cuid:iy,_cuid2:ay,_custom:TD,_date:_D,_decode:Dm,_decodeAsync:Am,_default:cR,_discriminatedUnion:Jz,_e164:py,_email:Km,_emoji:ry,_encode:$m,_encodeAsync:Cm,_endsWith:Pu,_enum:iR,_file:xD,_float32:rD,_float64:nD,_gt:Tn,_gte:Rt,_guid:af,_includes:Cu,_int:tD,_int32:iD,_int64:cD,_intersection:Qz,_ipv4:ly,_ipv6:cy,_isoDate:X$,_isoDateTime:Y$,_isoDuration:J$,_isoTime:K$,_jwt:gy,_ksuid:uy,_lazy:mR,_length:Io,_literal:oR,_lowercase:$u,_lt:xn,_lte:Qt,_mac:q$,_map:rR,_max:Qt,_maxLength:ko,_maxSize:fa,_mime:Mu,_min:Rt,_minLength:Qn,_minSize:kn,_multipleOf:Ji,_nan:SD,_nanoid:ny,_nativeEnum:aR,_negative:cd,_never:mD,_nonnegative:dd,_nonoptional:fR,_nonpositive:fd,_normalize:Lu,_null:vD,_nullable:lR,_number:Q$,_optional:uR,_overwrite:cn,_parse:yu,_parseAsync:_u,_pipe:vR,_positive:ld,_promise:yR,_property:hd,_readonly:pR,_record:tR,_refine:kD,_regex:Iu,_safeDecode:Mm,_safeDecodeAsync:Om,_safeEncode:Pm,_safeEncodeAsync:Lm,_safeParse:bu,_safeParseAsync:Su,_set:nR,_size:To,_slugify:Ru,_startsWith:Au,_string:H$,_stringFormat:Nu,_stringbool:AD,_success:dR,_superRefine:ID,_symbol:dD,_templateLiteral:gR,_toLowerCase:Eu,_toUpperCase:zu,_transform:sR,_trim:Ou,_tuple:eR,_uint32:aD,_uint64:fD,_ulid:oy,_undefined:hD,_union:Xz,_unknown:gD,_uppercase:Du,_url:ud,_uuid:Jm,_uuidv4:Qm,_uuidv6:ey,_uuidv7:ty,_void:yD,_xid:sy,_xor:Kz,clone:rr,config:pt,createStandardJSONSchemaMethod:js,createToJSONSchemaMethod:PD,decode:DE,decodeAsync:AE,describe:DD,encode:$E,encodeAsync:CE,extractDefs:ao,finalize:oo,flattenError:nd,formatError:id,globalConfig:Fs,globalRegistry:Jt,initializeContext:io,isValidBase64:Bm,isValidBase64URL:XI,isValidJWT:QI,locales:qm,meta:CD,parse:Pp,parseAsync:Mp,prettifyError:km,process:Ve,regexes:ad,registry:sd,safeDecode:ME,safeDecodeAsync:OE,safeEncode:PE,safeEncodeAsync:LE,safeParse:Im,safeParseAsync:$k,toDotPath:Ik,toJSONSchema:by,treeifyError:Tm,util:wm,version:DI},Symbol.toStringTag,{value:"Module"}));function Sy(e){return!!e._zod}function gC(e,t){return Sy(e)?Im(e,t):e.safeParse(t)}function wR(e){var r,i;if(!e)return;let t;if(Sy(e)?t=(i=(r=e._zod)==null?void 0:r.def)==null?void 0:i.shape:t=e.shape,!!t){if(typeof t=="function")try{return t()}catch{return}return t}}function xR(e){var n;if(Sy(e)){const o=(n=e._zod)==null?void 0:n.def;if(o){if(o.value!==void 0)return o.value;if(Array.isArray(o.values)&&o.values.length>0)return o.values[0]}}const 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]}const i=e.value;if(i!==void 0)return i}const TR=Object.freeze(Object.defineProperty({__proto__:null,endsWith:Pu,gt:Tn,gte:Rt,includes:Cu,length:Io,lowercase:$u,lt:xn,lte:Qt,maxLength:ko,maxSize:fa,mime:Mu,minLength:Qn,minSize:kn,multipleOf:Ji,negative:cd,nonnegative:dd,nonpositive:fd,normalize:Lu,overwrite:cn,positive:ld,property:hd,regex:Iu,size:To,slugify:Ru,startsWith:Au,toLowerCase:Eu,toUpperCase:zu,trim:Ou,uppercase:Du},Symbol.toStringTag,{value:"Module"})),vd=M("ZodISODateTime",(e,t)=>{BI.init(e,t),Ge.init(e,t)});function wy(e){return Y$(vd,e)}const pd=M("ZodISODate",(e,t)=>{FI.init(e,t),Ge.init(e,t)});function mC(e){return X$(pd,e)}const gd=M("ZodISOTime",(e,t)=>{jI.init(e,t),Ge.init(e,t)});function yC(e){return K$(gd,e)}const md=M("ZodISODuration",(e,t)=>{ZI.init(e,t),Ge.init(e,t)});function _C(e){return J$(md,e)}const xy=Object.freeze(Object.defineProperty({__proto__:null,ZodISODate:pd,ZodISODateTime:vd,ZodISODuration:md,ZodISOTime:gd,date:mC,datetime:wy,duration:_C,time:yC},Symbol.toStringTag,{value:"Module"})),bC=(e,t)=>{xm.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>id(e,r)},flatten:{value:r=>nd(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,tf,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,tf,2)}},isEmpty:{get(){return e.issues.length===0}}})},SC=M("ZodError",bC),Xt=M("ZodError",bC,{Parent:Error}),Ty=yu(Xt),ky=_u(Xt),Iy=bu(Xt),$y=Su(Xt),Dy=$m(Xt),Cy=Dm(Xt),Ay=Cm(Xt),Py=Am(Xt),My=Pm(Xt),Ly=Mm(Xt),Oy=Lm(Xt),Ey=Om(Xt),xS=new WeakMap;function Uu(e,t,r){const i=Object.getPrototypeOf(e);let n=xS.get(i);if(n||(n=new Set,xS.set(i,n)),!n.has(t)){n.add(t);for(const a in r){const o=r[a];Object.defineProperty(i,a,{configurable:!0,enumerable:!1,get(){const s=o.bind(this);return Object.defineProperty(this,a,{configurable:!0,writable:!0,enumerable:!0,value:s}),s},set(s){Object.defineProperty(this,a,{configurable:!0,writable:!0,enumerable:!0,value:s})}})}}}const ge=M("ZodType",(e,t)=>(he.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:js(e,"input"),output:js(e,"output")}}),e.toJSONSchema=PD(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(r,i)=>Ty(e,r,i,{callee:e.parse}),e.safeParse=(r,i)=>Iy(e,r,i),e.parseAsync=async(r,i)=>ky(e,r,i,{callee:e.parseAsync}),e.safeParseAsync=async(r,i)=>$y(e,r,i),e.spa=e.safeParseAsync,e.encode=(r,i)=>Dy(e,r,i),e.decode=(r,i)=>Cy(e,r,i),e.encodeAsync=async(r,i)=>Ay(e,r,i),e.decodeAsync=async(r,i)=>Py(e,r,i),e.safeEncode=(r,i)=>My(e,r,i),e.safeDecode=(r,i)=>Ly(e,r,i),e.safeEncodeAsync=async(r,i)=>Oy(e,r,i),e.safeDecodeAsync=async(r,i)=>Ey(e,r,i),Uu(e,"ZodType",{check(...r){const i=this.def;return this.clone(ln(i,{checks:[...i.checks??[],...r.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),{parent:!0})},with(...r){return this.check(...r)},clone(r,i){return rr(this,r,i)},brand(){return this},register(r,i){return r.add(this,i),this},refine(r,i){return this.check(ih(r,i))},superRefine(r,i){return this.check(ah(r,i))},overwrite(r){return this.check(cn(r))},optional(){return We(this)},exactOptional(){return Nd(this)},nullable(){return lo(this)},nullish(){return We(lo(this))},nonoptional(r){return Vd(this,r)},array(){return ue(this)},or(r){return Se([this,r])},and(r){return Oo(this,r)},transform(r){return Vs(this,sl(r))},default(r){return Fd(this,r)},prefault(r){return Zd(this,r)},catch(r){return Wd(this,r)},pipe(r){return Vs(this,r)},readonly(){return Kd(this)},describe(r){const i=this.clone();return Jt.add(i,{description:r}),i},meta(...r){if(r.length===0)return Jt.get(this);const i=this.clone();return Jt.add(i,r[0]),i},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(r){return r(this)}}),Object.defineProperty(e,"description",{get(){var r;return(r=Jt.get(e))==null?void 0:r.description},configurable:!0}),e)),Bu=M("_ZodString",(e,t)=>{ku.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(i,n,a)=>MD(e,i,n);const r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,Uu(e,"_ZodString",{regex(...i){return this.check(Iu(...i))},includes(...i){return this.check(Cu(...i))},startsWith(...i){return this.check(Au(...i))},endsWith(...i){return this.check(Pu(...i))},min(...i){return this.check(Qn(...i))},max(...i){return this.check(ko(...i))},length(...i){return this.check(Io(...i))},nonempty(...i){return this.check(Qn(1,...i))},lowercase(i){return this.check($u(i))},uppercase(i){return this.check(Du(i))},trim(){return this.check(Ou())},normalize(...i){return this.check(Lu(...i))},toLowerCase(){return this.check(Eu())},toUpperCase(){return this.check(zu())},slugify(){return this.check(Ru())}})}),$o=M("ZodString",(e,t)=>{ku.init(e,t),Bu.init(e,t),e.email=r=>e.check(Km(Fu,r)),e.url=r=>e.check(ud(Do,r)),e.jwt=r=>e.check(gy(rl,r)),e.emoji=r=>e.check(ry(ju,r)),e.guid=r=>e.check(af(so,r)),e.uuid=r=>e.check(Jm(Or,r)),e.uuidv4=r=>e.check(Qm(Or,r)),e.uuidv6=r=>e.check(ey(Or,r)),e.uuidv7=r=>e.check(ty(Or,r)),e.nanoid=r=>e.check(ny(Zu,r)),e.guid=r=>e.check(af(so,r)),e.cuid=r=>e.check(iy(Vu,r)),e.cuid2=r=>e.check(ay(Gu,r)),e.ulid=r=>e.check(oy(Hu,r)),e.base64=r=>e.check(hy(Qu,r)),e.base64url=r=>e.check(vy(el,r)),e.xid=r=>e.check(sy(Wu,r)),e.ksuid=r=>e.check(uy(qu,r)),e.ipv4=r=>e.check(ly(Yu,r)),e.ipv6=r=>e.check(cy(Xu,r)),e.cidrv4=r=>e.check(fy(Ku,r)),e.cidrv6=r=>e.check(dy(Ju,r)),e.e164=r=>e.check(py(tl,r)),e.datetime=r=>e.check(wy(r)),e.date=r=>e.check(mC(r)),e.time=r=>e.check(yC(r)),e.duration=r=>e.check(_C(r))});function E(e){return H$($o,e)}const Ge=M("ZodStringFormat",(e,t)=>{qe.init(e,t),Bu.init(e,t)}),Fu=M("ZodEmail",(e,t)=>{PI.init(e,t),Ge.init(e,t)});function zy(e){return Km(Fu,e)}const so=M("ZodGUID",(e,t)=>{CI.init(e,t),Ge.init(e,t)});function Ry(e){return af(so,e)}const Or=M("ZodUUID",(e,t)=>{AI.init(e,t),Ge.init(e,t)});function Ny(e){return Jm(Or,e)}function Uy(e){return Qm(Or,e)}function By(e){return ey(Or,e)}function Fy(e){return ty(Or,e)}const Do=M("ZodURL",(e,t)=>{MI.init(e,t),Ge.init(e,t)});function jy(e){return ud(Do,e)}function Zy(e){return ud(Do,{protocol:zm,hostname:Hk,...U(e)})}const ju=M("ZodEmoji",(e,t)=>{LI.init(e,t),Ge.init(e,t)});function Vy(e){return ry(ju,e)}const Zu=M("ZodNanoID",(e,t)=>{OI.init(e,t),Ge.init(e,t)});function Gy(e){return ny(Zu,e)}const Vu=M("ZodCUID",(e,t)=>{EI.init(e,t),Ge.init(e,t)});function Hy(e){return iy(Vu,e)}const Gu=M("ZodCUID2",(e,t)=>{zI.init(e,t),Ge.init(e,t)});function Wy(e){return ay(Gu,e)}const Hu=M("ZodULID",(e,t)=>{RI.init(e,t),Ge.init(e,t)});function qy(e){return oy(Hu,e)}const Wu=M("ZodXID",(e,t)=>{NI.init(e,t),Ge.init(e,t)});function Yy(e){return sy(Wu,e)}const qu=M("ZodKSUID",(e,t)=>{UI.init(e,t),Ge.init(e,t)});function Xy(e){return uy(qu,e)}const Yu=M("ZodIPv4",(e,t)=>{VI.init(e,t),Ge.init(e,t)});function Ky(e){return ly(Yu,e)}const yd=M("ZodMAC",(e,t)=>{HI.init(e,t),Ge.init(e,t)});function Jy(e){return q$(yd,e)}const Xu=M("ZodIPv6",(e,t)=>{GI.init(e,t),Ge.init(e,t)});function Qy(e){return cy(Xu,e)}const Ku=M("ZodCIDRv4",(e,t)=>{WI.init(e,t),Ge.init(e,t)});function e_(e){return fy(Ku,e)}const Ju=M("ZodCIDRv6",(e,t)=>{qI.init(e,t),Ge.init(e,t)});function t_(e){return dy(Ju,e)}const Qu=M("ZodBase64",(e,t)=>{YI.init(e,t),Ge.init(e,t)});function r_(e){return hy(Qu,e)}const el=M("ZodBase64URL",(e,t)=>{KI.init(e,t),Ge.init(e,t)});function n_(e){return vy(el,e)}const tl=M("ZodE164",(e,t)=>{JI.init(e,t),Ge.init(e,t)});function i_(e){return py(tl,e)}const rl=M("ZodJWT",(e,t)=>{e$.init(e,t),Ge.init(e,t)});function a_(e){return gy(rl,e)}const da=M("ZodCustomStringFormat",(e,t)=>{t$.init(e,t),Ge.init(e,t)});function o_(e,t,r={}){return Nu(da,e,t,r)}function s_(e){return Nu(da,"hostname",Gk,e)}function u_(e){return Nu(da,"hex",sI,e)}function l_(e,t){const r=(t==null?void 0:t.enc)??"hex",i=`${e}_${r}`,n=ad[i];if(!n)throw new Error(`Unrecognized hash format: ${i}`);return Nu(da,i,n,t)}const Co=M("ZodNumber",(e,t)=>{Fm.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(i,n,a)=>LD(e,i,n),Uu(e,"ZodNumber",{gt(i,n){return this.check(Tn(i,n))},gte(i,n){return this.check(Rt(i,n))},min(i,n){return this.check(Rt(i,n))},lt(i,n){return this.check(xn(i,n))},lte(i,n){return this.check(Qt(i,n))},max(i,n){return this.check(Qt(i,n))},int(i){return this.check(Zs(i))},safe(i){return this.check(Zs(i))},positive(i){return this.check(Tn(0,i))},nonnegative(i){return this.check(Rt(0,i))},negative(i){return this.check(xn(0,i))},nonpositive(i){return this.check(Qt(0,i))},multipleOf(i,n){return this.check(Ji(i,n))},step(i,n){return this.check(Ji(i,n))},finite(){return this}});const 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});function ve(e){return Q$(Co,e)}const oi=M("ZodNumberFormat",(e,t)=>{r$.init(e,t),Co.init(e,t)});function Zs(e){return tD(oi,e)}function c_(e){return rD(oi,e)}function f_(e){return nD(oi,e)}function d_(e){return iD(oi,e)}function h_(e){return aD(oi,e)}const Ao=M("ZodBoolean",(e,t)=>{jm.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(r,i,n)=>OD(e,r,i)});function ze(e){return oD(Ao,e)}const Po=M("ZodBigInt",(e,t)=>{Zm.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(i,n,a)=>ED(e,i),e.gte=(i,n)=>e.check(Rt(i,n)),e.min=(i,n)=>e.check(Rt(i,n)),e.gt=(i,n)=>e.check(Tn(i,n)),e.gte=(i,n)=>e.check(Rt(i,n)),e.min=(i,n)=>e.check(Rt(i,n)),e.lt=(i,n)=>e.check(xn(i,n)),e.lte=(i,n)=>e.check(Qt(i,n)),e.max=(i,n)=>e.check(Qt(i,n)),e.positive=i=>e.check(Tn(BigInt(0),i)),e.negative=i=>e.check(xn(BigInt(0),i)),e.nonpositive=i=>e.check(Qt(BigInt(0),i)),e.nonnegative=i=>e.check(Rt(BigInt(0),i)),e.multipleOf=(i,n)=>e.check(Ji(i,n));const r=e._zod.bag;e.minValue=r.minimum??null,e.maxValue=r.maximum??null,e.format=r.format??null});function v_(e){return uD(Po,e)}const nl=M("ZodBigIntFormat",(e,t)=>{n$.init(e,t),Po.init(e,t)});function p_(e){return cD(nl,e)}function g_(e){return fD(nl,e)}const _d=M("ZodSymbol",(e,t)=>{i$.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(r,i,n)=>zD(e,r)});function m_(e){return dD(_d,e)}const bd=M("ZodUndefined",(e,t)=>{a$.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(r,i,n)=>ND(e,r)});function uo(e){return hD(bd,e)}const Sd=M("ZodNull",(e,t)=>{o$.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(r,i,n)=>RD(e,r,i)});function il(e){return vD(Sd,e)}const wd=M("ZodAny",(e,t)=>{s$.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(r,i,n)=>FD()});function y_(){return pD(wd)}const xd=M("ZodUnknown",(e,t)=>{u$.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(r,i,n)=>jD()});function Le(){return gD(xd)}const Td=M("ZodNever",(e,t)=>{l$.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(r,i,n)=>BD(e,r,i)});function Qi(e){return mD(Td,e)}const kd=M("ZodVoid",(e,t)=>{c$.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(r,i,n)=>UD(e,r)});function __(e){return yD(kd,e)}const al=M("ZodDate",(e,t)=>{f$.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(i,n,a)=>ZD(e,i),e.min=(i,n)=>e.check(Rt(i,n)),e.max=(i,n)=>e.check(Qt(i,n));const r=e._zod.bag;e.minDate=r.minimum?new Date(r.minimum):null,e.maxDate=r.maximum?new Date(r.maximum):null});function b_(e){return _D(al,e)}const Id=M("ZodArray",(e,t)=>{d$.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(r,i,n)=>tC(e,r,i,n),e.element=t.element,Uu(e,"ZodArray",{min(r,i){return this.check(Qn(r,i))},nonempty(r){return this.check(Qn(1,r))},max(r,i){return this.check(ko(r,i))},length(r,i){return this.check(Io(r,i))},unwrap(){return this.element}})});function ue(e,t){return wD(Id,e,t)}function S_(e){const t=e._zod.def.shape;return wt(Object.keys(t))}const Mo=M("ZodObject",(e,t)=>{g$.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(r,i,n)=>rC(e,r,i,n),be(e,"shape",()=>t.shape),Uu(e,"ZodObject",{keyof(){return wt(Object.keys(this._zod.def.shape))},catchall(r){return this.clone({...this._zod.def,catchall:r})},passthrough(){return this.clone({...this._zod.def,catchall:Le()})},loose(){return this.clone({...this._zod.def,catchall:Le()})},strict(){return this.clone({...this._zod.def,catchall:Qi()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(r){return mk(this,r)},safeExtend(r){return yk(this,r)},merge(r){return _k(this,r)},pick(r){return pk(this,r)},omit(r){return gk(this,r)},partial(...r){return bk(ul,this,r[0])},required(...r){return Sk(ll,this,r[0])}})});function R(e,t){const r={type:"object",shape:e??{},...U(t)};return new Mo(r)}function w_(e,t){return new Mo({type:"object",shape:e,catchall:Qi(),...U(t)})}function _t(e,t){return new Mo({type:"object",shape:e,catchall:Le(),...U(t)})}const Lo=M("ZodUnion",(e,t)=>{od.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(r,i,n)=>yy(e,r,i,n),e.options=t.options});function Se(e,t){return new Lo({type:"union",options:e,...U(t)})}const $d=M("ZodXor",(e,t)=>{Lo.init(e,t),m$.init(e,t),e._zod.processJSONSchema=(r,i,n)=>yy(e,r,i,n),e.options=t.options});function x_(e,t){return new $d({type:"union",options:e,inclusive:!1,...U(t)})}const Dd=M("ZodDiscriminatedUnion",(e,t)=>{Lo.init(e,t),y$.init(e,t)});function ol(e,t,r){return new Dd({type:"union",options:t,discriminator:e,...U(r)})}const Cd=M("ZodIntersection",(e,t)=>{_$.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(r,i,n)=>nC(e,r,i,n)});function Oo(e,t){return new Cd({type:"intersection",left:e,right:t})}const Ad=M("ZodTuple",(e,t)=>{Vm.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(r,i,n)=>iC(e,r,i,n),e.rest=r=>e.clone({...e._zod.def,rest:r})});function Pd(e,t,r){const i=t instanceof he,n=i?r:t,a=i?t:null;return new Ad({type:"tuple",items:e,rest:a,...U(n)})}const ea=M("ZodRecord",(e,t)=>{b$.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(r,i,n)=>aC(e,r,i,n),e.keyType=t.keyType,e.valueType=t.valueType});function De(e,t,r){return!t||!t._zod?new ea({type:"record",keyType:E(),valueType:e,...U(t)}):new ea({type:"record",keyType:e,valueType:t,...U(r)})}function T_(e,t,r){const i=rr(e);return i._zod.values=void 0,new ea({type:"record",keyType:i,valueType:t,...U(r)})}function k_(e,t,r){return new ea({type:"record",keyType:e,valueType:t,mode:"loose",...U(r)})}const Md=M("ZodMap",(e,t)=>{S$.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(r,i,n)=>QD(e,r),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...r)=>e.check(kn(...r)),e.nonempty=r=>e.check(kn(1,r)),e.max=(...r)=>e.check(fa(...r)),e.size=(...r)=>e.check(To(...r))});function I_(e,t,r){return new Md({type:"map",keyType:e,valueType:t,...U(r)})}const Ld=M("ZodSet",(e,t)=>{w$.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(r,i,n)=>eC(e,r),e.min=(...r)=>e.check(kn(...r)),e.nonempty=r=>e.check(kn(1,r)),e.max=(...r)=>e.check(fa(...r)),e.size=(...r)=>e.check(To(...r))});function $_(e,t){return new Ld({type:"set",valueType:e,...U(t)})}const ta=M("ZodEnum",(e,t)=>{x$.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(i,n,a)=>VD(e,i,n),e.enum=t.entries,e.options=Object.values(t.entries);const r=new Set(Object.keys(t.entries));e.extract=(i,n)=>{const a={};for(const o of i)if(r.has(o))a[o]=t.entries[o];else throw new Error(`Key ${o} not found in enum`);return new ta({...t,checks:[],...U(n),entries:a})},e.exclude=(i,n)=>{const a={...t.entries};for(const o of i)if(r.has(o))delete a[o];else throw new Error(`Key ${o} not found in enum`);return new ta({...t,checks:[],...U(n),entries:a})}});function wt(e,t){const r=Array.isArray(e)?Object.fromEntries(e.map(i=>[i,i])):e;return new ta({type:"enum",entries:r,...U(t)})}function D_(e,t){return new ta({type:"enum",entries:e,...U(t)})}const Od=M("ZodLiteral",(e,t)=>{T$.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(r,i,n)=>GD(e,r,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]}})});function O(e,t){return new Od({type:"literal",values:Array.isArray(e)?e:[e],...U(t)})}const Ed=M("ZodFile",(e,t)=>{k$.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(r,i,n)=>qD(e,r,i),e.min=(r,i)=>e.check(kn(r,i)),e.max=(r,i)=>e.check(fa(r,i)),e.mime=(r,i)=>e.check(Mu(Array.isArray(r)?r:[r],i))});function C_(e){return xD(Ed,e)}const zd=M("ZodTransform",(e,t)=>{I$.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(r,i,n)=>JD(e,r),e._zod.parse=(r,i)=>{if(i.direction==="backward")throw new Jf(e.constructor.name);r.addIssue=a=>{if(typeof a=="string")r.issues.push(ro(a,r.value,t));else{const 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(ro(o))}};const n=t.transform(r.value,r);return n instanceof Promise?n.then(a=>(r.value=a,r.fallback=!0,r)):(r.value=n,r.fallback=!0,r)}});function sl(e){return new zd({type:"transform",transform:e})}const ul=M("ZodOptional",(e,t)=>{Gm.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(r,i,n)=>_y(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function We(e){return new ul({type:"optional",innerType:e})}const Rd=M("ZodExactOptional",(e,t)=>{$$.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(r,i,n)=>_y(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function Nd(e){return new Rd({type:"optional",innerType:e})}const Ud=M("ZodNullable",(e,t)=>{D$.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(r,i,n)=>oC(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function lo(e){return new Ud({type:"nullable",innerType:e})}function A_(e){return We(lo(e))}const Bd=M("ZodDefault",(e,t)=>{C$.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(r,i,n)=>uC(e,r,i,n),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Fd(e,t){return new Bd({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():ed(t)}})}const jd=M("ZodPrefault",(e,t)=>{A$.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(r,i,n)=>lC(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function Zd(e,t){return new jd({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():ed(t)}})}const ll=M("ZodNonOptional",(e,t)=>{P$.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(r,i,n)=>sC(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function Vd(e,t){return new ll({type:"nonoptional",innerType:e,...U(t)})}const Gd=M("ZodSuccess",(e,t)=>{M$.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(r,i,n)=>YD(e,r,i),e.unwrap=()=>e._zod.def.innerType});function P_(e){return new Gd({type:"success",innerType:e})}const Hd=M("ZodCatch",(e,t)=>{L$.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(r,i,n)=>cC(e,r,i,n),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Wd(e,t){return new Hd({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const qd=M("ZodNaN",(e,t)=>{O$.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(r,i,n)=>HD(e,r)});function M_(e){return SD(qd,e)}const Eo=M("ZodPipe",(e,t)=>{Hm.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(r,i,n)=>fC(e,r,i,n),e.in=t.in,e.out=t.out});function Vs(e,t){return new Eo({type:"pipe",in:e,out:t})}const zo=M("ZodCodec",(e,t)=>{Eo.init(e,t),Wm.init(e,t)});function L_(e,t,r){return new zo({type:"pipe",in:e,out:t,transform:r.decode,reverseTransform:r.encode})}function O_(e){const t=e._zod.def;return new zo({type:"pipe",in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}const Yd=M("ZodPreprocess",(e,t)=>{Eo.init(e,t),E$.init(e,t)}),Xd=M("ZodReadonly",(e,t)=>{z$.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(r,i,n)=>dC(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function Kd(e){return new Xd({type:"readonly",innerType:e})}const Jd=M("ZodTemplateLiteral",(e,t)=>{R$.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(r,i,n)=>WD(e,r,i)});function E_(e,t){return new Jd({type:"template_literal",parts:e,...U(t)})}const Qd=M("ZodLazy",(e,t)=>{B$.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(r,i,n)=>vC(e,r,i,n),e.unwrap=()=>e._zod.def.getter()});function eh(e){return new Qd({type:"lazy",getter:e})}const th=M("ZodPromise",(e,t)=>{U$.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(r,i,n)=>hC(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function z_(e){return new th({type:"promise",innerType:e})}const rh=M("ZodFunction",(e,t)=>{N$.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(r,i,n)=>KD(e,r)});function co(e){return new rh({type:"function",input:Array.isArray(e==null?void 0:e.input)?Pd(e==null?void 0:e.input):(e==null?void 0:e.input)??ue(Le()),output:(e==null?void 0:e.output)??Le()})}const Ro=M("ZodCustom",(e,t)=>{F$.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(r,i,n)=>XD(e,r)});function R_(e){const t=new Ke({check:"custom"});return t._zod.check=e,t}function nh(e,t){return TD(Ro,e??(()=>!0),t)}function ih(e,t={}){return kD(Ro,e,t)}function ah(e,t){return ID(e,t)}const N_=DD,U_=CD;function B_(e,t={}){const r=new Ro({type:"custom",check:"custom",fn:i=>i instanceof e,abort:!0,...U(t)});return r._zod.bag.Class=e,r._zod.check=i=>{i.value instanceof e||i.issues.push({code:"invalid_type",expected:e.name,input:i.value,inst:r,path:[...r._zod.def.path??[]]})},r}const F_=(...e)=>AD({Codec:zo,Boolean:Ao,String:$o},...e);function j_(e){const t=eh(()=>Se([E(e),ve(),ze(),il(),ue(t),De(E(),t)]));return t}function cl(e,t){return new Yd({type:"pipe",in:sl(e),out:t})}const kR=Object.freeze(Object.defineProperty({__proto__:null,ZodAny:wd,ZodArray:Id,ZodBase64:Qu,ZodBase64URL:el,ZodBigInt:Po,ZodBigIntFormat:nl,ZodBoolean:Ao,ZodCIDRv4:Ku,ZodCIDRv6:Ju,ZodCUID:Vu,ZodCUID2:Gu,ZodCatch:Hd,ZodCodec:zo,ZodCustom:Ro,ZodCustomStringFormat:da,ZodDate:al,ZodDefault:Bd,ZodDiscriminatedUnion:Dd,ZodE164:tl,ZodEmail:Fu,ZodEmoji:ju,ZodEnum:ta,ZodExactOptional:Rd,ZodFile:Ed,ZodFunction:rh,ZodGUID:so,ZodIPv4:Yu,ZodIPv6:Xu,ZodIntersection:Cd,ZodJWT:rl,ZodKSUID:qu,ZodLazy:Qd,ZodLiteral:Od,ZodMAC:yd,ZodMap:Md,ZodNaN:qd,ZodNanoID:Zu,ZodNever:Td,ZodNonOptional:ll,ZodNull:Sd,ZodNullable:Ud,ZodNumber:Co,ZodNumberFormat:oi,ZodObject:Mo,ZodOptional:ul,ZodPipe:Eo,ZodPrefault:jd,ZodPreprocess:Yd,ZodPromise:th,ZodReadonly:Xd,ZodRecord:ea,ZodSet:Ld,ZodString:$o,ZodStringFormat:Ge,ZodSuccess:Gd,ZodSymbol:_d,ZodTemplateLiteral:Jd,ZodTransform:zd,ZodTuple:Ad,ZodType:ge,ZodULID:Hu,ZodURL:Do,ZodUUID:Or,ZodUndefined:bd,ZodUnion:Lo,ZodUnknown:xd,ZodVoid:kd,ZodXID:Wu,ZodXor:$d,_ZodString:Bu,_default:Fd,_function:co,any:y_,array:ue,base64:r_,base64url:n_,bigint:v_,boolean:ze,catch:Wd,check:R_,cidrv4:e_,cidrv6:t_,codec:L_,cuid:Hy,cuid2:Wy,custom:nh,date:b_,describe:N_,discriminatedUnion:ol,e164:i_,email:zy,emoji:Vy,enum:wt,exactOptional:Nd,file:C_,float32:c_,float64:f_,function:co,guid:Ry,hash:l_,hex:u_,hostname:s_,httpUrl:Zy,instanceof:B_,int:Zs,int32:d_,int64:p_,intersection:Oo,invertCodec:O_,ipv4:Ky,ipv6:Qy,json:j_,jwt:a_,keyof:S_,ksuid:Xy,lazy:eh,literal:O,looseObject:_t,looseRecord:k_,mac:Jy,map:I_,meta:U_,nan:M_,nanoid:Gy,nativeEnum:D_,never:Qi,nonoptional:Vd,null:il,nullable:lo,nullish:A_,number:ve,object:R,optional:We,partialRecord:T_,pipe:Vs,prefault:Zd,preprocess:cl,promise:z_,readonly:Kd,record:De,refine:ih,set:$_,strictObject:w_,string:E,stringFormat:o_,stringbool:F_,success:P_,superRefine:ah,symbol:m_,templateLiteral:E_,transform:sl,tuple:Pd,uint32:h_,uint64:g_,ulid:qy,undefined:uo,union:Se,unknown:Le,url:jy,uuid:Ny,uuidv4:Uy,uuidv6:By,uuidv7:Fy,void:__,xid:Yy,xor:x_},Symbol.toStringTag,{value:"Module"})),wC={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"};function xC(e){pt({customError:e})}function TC(){return pt().customError}var of;of||(of={});const X={...kR,...TR,iso:xy},IR=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);function $R(e,t){const 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 DR(e,t){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");const r=e.slice(1).split("/").filter(Boolean);if(r.length===0)return t.rootSchema;const i=t.version==="draft-2020-12"?"$defs":"definitions";if(r[0]===i){const n=r[1];if(!n||!t.defs[n])throw new Error(`Reference not found: ${e}`);return t.defs[n]}throw new Error(`Reference not found: ${e}`)}function kC(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return X.never();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){const n=e.$ref;if(t.refs.has(n))return t.refs.get(n);if(t.processing.has(n))return X.lazy(()=>{if(!t.refs.has(n))throw new Error(`Circular reference not resolved: ${n}`);return t.refs.get(n)});t.processing.add(n);const a=DR(n,t),o=It(a,t);return t.refs.set(n,o),t.processing.delete(n),o}if(e.enum!==void 0){const n=e.enum;if(t.version==="openapi-3.0"&&e.nullable===!0&&n.length===1&&n[0]===null)return X.null();if(n.length===0)return X.never();if(n.length===1)return X.literal(n[0]);if(n.every(o=>typeof o=="string"))return X.enum(n);const a=n.map(o=>X.literal(o));return a.length<2?a[0]:X.union([a[0],a[1],...a.slice(2)])}if(e.const!==void 0)return X.literal(e.const);const r=e.type;if(Array.isArray(r)){const n=r.map(a=>{const o={...e,type:a};return kC(o,t)});return n.length===0?X.never():n.length===1?n[0]:X.union(n)}if(!r)return X.any();let i;switch(r){case"string":{let n=X.string();if(e.format){const a=e.format;a==="email"?n=n.check(X.email()):a==="uri"||a==="uri-reference"?n=n.check(X.url()):a==="uuid"||a==="guid"?n=n.check(X.uuid()):a==="date-time"?n=n.check(X.iso.datetime()):a==="date"?n=n.check(X.iso.date()):a==="time"?n=n.check(X.iso.time()):a==="duration"?n=n.check(X.iso.duration()):a==="ipv4"?n=n.check(X.ipv4()):a==="ipv6"?n=n.check(X.ipv6()):a==="mac"?n=n.check(X.mac()):a==="cidr"?n=n.check(X.cidrv4()):a==="cidr-v6"?n=n.check(X.cidrv6()):a==="base64"?n=n.check(X.base64()):a==="base64url"?n=n.check(X.base64url()):a==="e164"?n=n.check(X.e164()):a==="jwt"?n=n.check(X.jwt()):a==="emoji"?n=n.check(X.emoji()):a==="nanoid"?n=n.check(X.nanoid()):a==="cuid"?n=n.check(X.cuid()):a==="cuid2"?n=n.check(X.cuid2()):a==="ulid"?n=n.check(X.ulid()):a==="xid"?n=n.check(X.xid()):a==="ksuid"&&(n=n.check(X.ksuid()))}typeof e.minLength=="number"&&(n=n.min(e.minLength)),typeof e.maxLength=="number"&&(n=n.max(e.maxLength)),e.pattern&&(n=n.regex(new RegExp(e.pattern))),i=n;break}case"number":case"integer":{let n=r==="integer"?X.number().int():X.number();typeof e.minimum=="number"&&(n=n.min(e.minimum)),typeof e.maximum=="number"&&(n=n.max(e.maximum)),typeof e.exclusiveMinimum=="number"?n=n.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(n=n.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?n=n.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(n=n.lt(e.maximum)),typeof e.multipleOf=="number"&&(n=n.multipleOf(e.multipleOf)),i=n;break}case"boolean":{i=X.boolean();break}case"null":{i=X.null();break}case"object":{const n={},a=e.properties||{},o=new Set(e.required||[]);for(const[u,l]of Object.entries(a)){const c=It(l,t);n[u]=o.has(u)?c:c.optional()}if(e.propertyNames){const u=It(e.propertyNames,t),l=e.additionalProperties&&typeof e.additionalProperties=="object"?It(e.additionalProperties,t):X.any();if(Object.keys(n).length===0){i=X.record(u,l);break}const c=X.object(n).passthrough(),f=X.looseRecord(u,l);i=X.intersection(c,f);break}if(e.patternProperties){const u=e.patternProperties,l=Object.keys(u),c=[];for(const d of l){const h=It(u[d],t),v=X.string().regex(new RegExp(d));c.push(X.looseRecord(v,h))}const f=[];if(Object.keys(n).length>0&&f.push(X.object(n).passthrough()),f.push(...c),f.length===0)i=X.object({}).passthrough();else if(f.length===1)i=f[0];else{let d=X.intersection(f[0],f[1]);for(let h=2;h<f.length;h++)d=X.intersection(d,f[h]);i=d}break}const s=X.object(n);e.additionalProperties===!1?i=s.strict():typeof e.additionalProperties=="object"?i=s.catchall(It(e.additionalProperties,t)):i=s.passthrough();break}case"array":{const n=e.prefixItems,a=e.items;if(n&&Array.isArray(n)){const o=n.map(u=>It(u,t)),s=a&&typeof a=="object"&&!Array.isArray(a)?It(a,t):void 0;s?i=X.tuple(o).rest(s):i=X.tuple(o),typeof e.minItems=="number"&&(i=i.check(X.minLength(e.minItems))),typeof e.maxItems=="number"&&(i=i.check(X.maxLength(e.maxItems)))}else if(Array.isArray(a)){const o=a.map(u=>It(u,t)),s=e.additionalItems&&typeof e.additionalItems=="object"?It(e.additionalItems,t):void 0;s?i=X.tuple(o).rest(s):i=X.tuple(o),typeof e.minItems=="number"&&(i=i.check(X.minLength(e.minItems))),typeof e.maxItems=="number"&&(i=i.check(X.maxLength(e.maxItems)))}else if(a!==void 0){const o=It(a,t);let s=X.array(o);typeof e.minItems=="number"&&(s=s.min(e.minItems)),typeof e.maxItems=="number"&&(s=s.max(e.maxItems)),i=s}else i=X.array(X.any());break}default:throw new Error(`Unsupported type: ${r}`)}return i}function It(e,t){if(typeof e=="boolean")return e?X.any():X.never();let r=kC(e,t);const i=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){const s=e.anyOf.map(l=>It(l,t)),u=X.union(s);r=i?X.intersection(r,u):u}if(e.oneOf&&Array.isArray(e.oneOf)){const s=e.oneOf.map(l=>It(l,t)),u=X.xor(s);r=i?X.intersection(r,u):u}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)r=i?r:X.any();else{let s=i?r:It(e.allOf[0],t);const u=i?0:1;for(let l=u;l<e.allOf.length;l++)s=X.intersection(s,It(e.allOf[l],t));r=s}e.nullable===!0&&t.version==="openapi-3.0"&&(r=X.nullable(r)),e.readOnly===!0&&(r=X.readonly(r)),e.default!==void 0&&(r=r.default(e.default));const n={},a=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(const s of a)s in e&&(n[s]=e[s]);const o=["contentEncoding","contentMediaType","contentSchema"];for(const s of o)s in e&&(n[s]=e[s]);for(const s of Object.keys(e))IR.has(s)||(n[s]=e[s]);return Object.keys(n).length>0&&t.registry.add(r,n),e.description&&(r=r.describe(e.description)),r}function IC(e,t){if(typeof e=="boolean")return e?X.any():X.never();let r;try{r=JSON.parse(JSON.stringify(e))}catch{throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}const i=$R(r,t==null?void 0:t.defaultTarget),n=r.$defs||r.definitions||{},a={version:i,defs:n,refs:new Map,processing:new Set,rootSchema:r,registry:(t==null?void 0:t.registry)??Jt};return It(r,a)}function CR(e){return W$($o,e)}function AR(e){return eD(Co,e)}function PR(e){return sD(Ao,e)}function MR(e){return lD(Po,e)}function LR(e){return bD(al,e)}const $C=Object.freeze(Object.defineProperty({__proto__:null,bigint:MR,boolean:PR,date:LR,number:AR,string:CR},Symbol.toStringTag,{value:"Module"}));pt(j$());const TS=Object.freeze(Object.defineProperty({__proto__:null,$brand:_m,$input:Xm,$output:Ym,NEVER:ym,TimePrecision:my,ZodAny:wd,ZodArray:Id,ZodBase64:Qu,ZodBase64URL:el,ZodBigInt:Po,ZodBigIntFormat:nl,ZodBoolean:Ao,ZodCIDRv4:Ku,ZodCIDRv6:Ju,ZodCUID:Vu,ZodCUID2:Gu,ZodCatch:Hd,ZodCodec:zo,ZodCustom:Ro,ZodCustomStringFormat:da,ZodDate:al,ZodDefault:Bd,ZodDiscriminatedUnion:Dd,ZodE164:tl,ZodEmail:Fu,ZodEmoji:ju,ZodEnum:ta,ZodError:SC,ZodExactOptional:Rd,ZodFile:Ed,get ZodFirstPartyTypeKind(){return of},ZodFunction:rh,ZodGUID:so,ZodIPv4:Yu,ZodIPv6:Xu,ZodISODate:pd,ZodISODateTime:vd,ZodISODuration:md,ZodISOTime:gd,ZodIntersection:Cd,ZodIssueCode:wC,ZodJWT:rl,ZodKSUID:qu,ZodLazy:Qd,ZodLiteral:Od,ZodMAC:yd,ZodMap:Md,ZodNaN:qd,ZodNanoID:Zu,ZodNever:Td,ZodNonOptional:ll,ZodNull:Sd,ZodNullable:Ud,ZodNumber:Co,ZodNumberFormat:oi,ZodObject:Mo,ZodOptional:ul,ZodPipe:Eo,ZodPrefault:jd,ZodPreprocess:Yd,ZodPromise:th,ZodReadonly:Xd,ZodRealError:Xt,ZodRecord:ea,ZodSet:Ld,ZodString:$o,ZodStringFormat:Ge,ZodSuccess:Gd,ZodSymbol:_d,ZodTemplateLiteral:Jd,ZodTransform:zd,ZodTuple:Ad,ZodType:ge,ZodULID:Hu,ZodURL:Do,ZodUUID:Or,ZodUndefined:bd,ZodUnion:Lo,ZodUnknown:xd,ZodVoid:kd,ZodXID:Wu,ZodXor:$d,_ZodString:Bu,_default:Fd,_function:co,any:y_,array:ue,base64:r_,base64url:n_,bigint:v_,boolean:ze,catch:Wd,check:R_,cidrv4:e_,cidrv6:t_,clone:rr,codec:L_,coerce:$C,config:pt,core:pC,cuid:Hy,cuid2:Wy,custom:nh,date:b_,decode:Cy,decodeAsync:Py,describe:N_,discriminatedUnion:ol,e164:i_,email:zy,emoji:Vy,encode:Dy,encodeAsync:Ay,endsWith:Pu,enum:wt,exactOptional:Nd,file:C_,flattenError:nd,float32:c_,float64:f_,formatError:id,fromJSONSchema:IC,function:co,getErrorMap:TC,globalRegistry:Jt,gt:Tn,gte:Rt,guid:Ry,hash:l_,hex:u_,hostname:s_,httpUrl:Zy,includes:Cu,instanceof:B_,int:Zs,int32:d_,int64:p_,intersection:Oo,invertCodec:O_,ipv4:Ky,ipv6:Qy,iso:xy,json:j_,jwt:a_,keyof:S_,ksuid:Xy,lazy:eh,length:Io,literal:O,locales:qm,looseObject:_t,looseRecord:k_,lowercase:$u,lt:xn,lte:Qt,mac:Jy,map:I_,maxLength:ko,maxSize:fa,meta:U_,mime:Mu,minLength:Qn,minSize:kn,multipleOf:Ji,nan:M_,nanoid:Gy,nativeEnum:D_,negative:cd,never:Qi,nonnegative:dd,nonoptional:Vd,nonpositive:fd,normalize:Lu,null:il,nullable:lo,nullish:A_,number:ve,object:R,optional:We,overwrite:cn,parse:Ty,parseAsync:ky,partialRecord:T_,pipe:Vs,positive:ld,prefault:Zd,preprocess:cl,prettifyError:km,promise:z_,property:hd,readonly:Kd,record:De,refine:ih,regex:Iu,regexes:ad,registry:sd,safeDecode:Ly,safeDecodeAsync:Ey,safeEncode:My,safeEncodeAsync:Oy,safeParse:Iy,safeParseAsync:$y,set:$_,setErrorMap:xC,size:To,slugify:Ru,startsWith:Au,strictObject:w_,string:E,stringFormat:o_,stringbool:F_,success:P_,superRefine:ah,symbol:m_,templateLiteral:E_,toJSONSchema:by,toLowerCase:Eu,toUpperCase:zu,transform:sl,treeifyError:Tm,trim:Ou,tuple:Pd,uint32:h_,uint64:g_,ulid:qy,undefined:uo,union:Se,unknown:Le,uppercase:Du,url:jy,util:wm,uuid:Ny,uuidv4:Uy,uuidv6:By,uuidv7:Fy,void:__,xid:Yy,xor:x_},Symbol.toStringTag,{value:"Module"})),OR=Object.freeze(Object.defineProperty({__proto__:null,$brand:_m,$input:Xm,$output:Ym,NEVER:ym,TimePrecision:my,ZodAny:wd,ZodArray:Id,ZodBase64:Qu,ZodBase64URL:el,ZodBigInt:Po,ZodBigIntFormat:nl,ZodBoolean:Ao,ZodCIDRv4:Ku,ZodCIDRv6:Ju,ZodCUID:Vu,ZodCUID2:Gu,ZodCatch:Hd,ZodCodec:zo,ZodCustom:Ro,ZodCustomStringFormat:da,ZodDate:al,ZodDefault:Bd,ZodDiscriminatedUnion:Dd,ZodE164:tl,ZodEmail:Fu,ZodEmoji:ju,ZodEnum:ta,ZodError:SC,ZodExactOptional:Rd,ZodFile:Ed,get ZodFirstPartyTypeKind(){return of},ZodFunction:rh,ZodGUID:so,ZodIPv4:Yu,ZodIPv6:Xu,ZodISODate:pd,ZodISODateTime:vd,ZodISODuration:md,ZodISOTime:gd,ZodIntersection:Cd,ZodIssueCode:wC,ZodJWT:rl,ZodKSUID:qu,ZodLazy:Qd,ZodLiteral:Od,ZodMAC:yd,ZodMap:Md,ZodNaN:qd,ZodNanoID:Zu,ZodNever:Td,ZodNonOptional:ll,ZodNull:Sd,ZodNullable:Ud,ZodNumber:Co,ZodNumberFormat:oi,ZodObject:Mo,ZodOptional:ul,ZodPipe:Eo,ZodPrefault:jd,ZodPreprocess:Yd,ZodPromise:th,ZodReadonly:Xd,ZodRealError:Xt,ZodRecord:ea,ZodSet:Ld,ZodString:$o,ZodStringFormat:Ge,ZodSuccess:Gd,ZodSymbol:_d,ZodTemplateLiteral:Jd,ZodTransform:zd,ZodTuple:Ad,ZodType:ge,ZodULID:Hu,ZodURL:Do,ZodUUID:Or,ZodUndefined:bd,ZodUnion:Lo,ZodUnknown:xd,ZodVoid:kd,ZodXID:Wu,ZodXor:$d,_ZodString:Bu,_default:Fd,_function:co,any:y_,array:ue,base64:r_,base64url:n_,bigint:v_,boolean:ze,catch:Wd,check:R_,cidrv4:e_,cidrv6:t_,clone:rr,codec:L_,coerce:$C,config:pt,core:pC,cuid:Hy,cuid2:Wy,custom:nh,date:b_,decode:Cy,decodeAsync:Py,default:TS,describe:N_,discriminatedUnion:ol,e164:i_,email:zy,emoji:Vy,encode:Dy,encodeAsync:Ay,endsWith:Pu,enum:wt,exactOptional:Nd,file:C_,flattenError:nd,float32:c_,float64:f_,formatError:id,fromJSONSchema:IC,function:co,getErrorMap:TC,globalRegistry:Jt,gt:Tn,gte:Rt,guid:Ry,hash:l_,hex:u_,hostname:s_,httpUrl:Zy,includes:Cu,instanceof:B_,int:Zs,int32:d_,int64:p_,intersection:Oo,invertCodec:O_,ipv4:Ky,ipv6:Qy,iso:xy,json:j_,jwt:a_,keyof:S_,ksuid:Xy,lazy:eh,length:Io,literal:O,locales:qm,looseObject:_t,looseRecord:k_,lowercase:$u,lt:xn,lte:Qt,mac:Jy,map:I_,maxLength:ko,maxSize:fa,meta:U_,mime:Mu,minLength:Qn,minSize:kn,multipleOf:Ji,nan:M_,nanoid:Gy,nativeEnum:D_,negative:cd,never:Qi,nonnegative:dd,nonoptional:Vd,nonpositive:fd,normalize:Lu,null:il,nullable:lo,nullish:A_,number:ve,object:R,optional:We,overwrite:cn,parse:Ty,parseAsync:ky,partialRecord:T_,pipe:Vs,positive:ld,prefault:Zd,preprocess:cl,prettifyError:km,promise:z_,property:hd,readonly:Kd,record:De,refine:ih,regex:Iu,regexes:ad,registry:sd,safeDecode:Ly,safeDecodeAsync:Ey,safeEncode:My,safeEncodeAsync:Oy,safeParse:Iy,safeParseAsync:$y,set:$_,setErrorMap:xC,size:To,slugify:Ru,startsWith:Au,strictObject:w_,string:E,stringFormat:o_,stringbool:F_,success:P_,superRefine:ah,symbol:m_,templateLiteral:E_,toJSONSchema:by,toLowerCase:Eu,toUpperCase:zu,transform:sl,treeifyError:Tm,trim:Ou,tuple:Pd,uint32:h_,uint64:g_,ulid:qy,undefined:uo,union:Se,unknown:Le,uppercase:Du,url:jy,util:wm,uuid:Ny,uuidv4:Uy,uuidv6:By,uuidv7:Fy,void:__,xid:Yy,xor:x_,z:TS},Symbol.toStringTag,{value:"Module"})),zi="io.modelcontextprotocol/related-task",oh="2.0",ht=nh(e=>e!==null&&(typeof e=="object"||typeof e=="function")),DC=Se([E(),ve().int()]),CC=E();_t({ttl:ve().optional(),pollInterval:ve().optional()});const ER=R({ttl:ve().optional()}),zR=R({taskId:E()}),Z_=_t({progressToken:DC.optional(),[zi]:zR.optional()}),ir=R({_meta:Z_.optional()}),fl=ir.extend({task:ER.optional()}),RR=e=>fl.safeParse(e).success,xt=R({method:E(),params:ir.loose().optional()}),xr=R({_meta:Z_.optional()}),Tr=R({method:E(),params:xr.loose().optional()}),Tt=_t({_meta:Z_.optional()}),dl=Se([E(),ve().int()]),AC=R({jsonrpc:O(oh),id:dl,...xt.shape}).strict(),kS=e=>AC.safeParse(e).success,PC=R({jsonrpc:O(oh),...Tr.shape}).strict(),NR=e=>PC.safeParse(e).success,V_=R({jsonrpc:O(oh),id:dl,result:Tt}).strict(),zl=e=>V_.safeParse(e).success;var Ne;(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"})(Ne||(Ne={}));const G_=R({jsonrpc:O(oh),id:dl.optional(),error:R({code:ve().int(),message:E(),data:Le().optional()})}).strict(),UR=e=>G_.safeParse(e).success,BR=Se([AC,PC,V_,G_]);Se([V_,G_]);const H_=Tt.strict(),FR=xr.extend({requestId:dl.optional(),reason:E().optional()}),W_=Tr.extend({method:O("notifications/cancelled"),params:FR}),jR=R({src:E(),mimeType:E().optional(),sizes:ue(E()).optional(),theme:wt(["light","dark"]).optional()}),hl=R({icons:ue(jR).optional()}),fo=R({name:E(),title:E().optional()}),sh=fo.extend({...fo.shape,...hl.shape,version:E(),websiteUrl:E().optional(),description:E().optional()}),ZR=Oo(R({applyDefaults:ze().optional()}),De(E(),Le())),VR=cl(e=>e&&typeof e=="object"&&!Array.isArray(e)&&Object.keys(e).length===0?{form:{}}:e,Oo(R({form:ZR.optional(),url:ht.optional()}),De(E(),Le()).optional())),GR=_t({list:ht.optional(),cancel:ht.optional(),requests:_t({sampling:_t({createMessage:ht.optional()}).optional(),elicitation:_t({create:ht.optional()}).optional()}).optional()}),HR=_t({list:ht.optional(),cancel:ht.optional(),requests:_t({tools:_t({call:ht.optional()}).optional()}).optional()}),WR=R({experimental:De(E(),ht).optional(),sampling:R({context:ht.optional(),tools:ht.optional()}).optional(),elicitation:VR.optional(),roots:R({listChanged:ze().optional()}).optional(),tasks:GR.optional(),extensions:De(E(),ht).optional()}),qR=ir.extend({protocolVersion:E(),capabilities:WR,clientInfo:sh}),YR=xt.extend({method:O("initialize"),params:qR}),XR=R({experimental:De(E(),ht).optional(),logging:ht.optional(),completions:ht.optional(),prompts:R({listChanged:ze().optional()}).optional(),resources:R({subscribe:ze().optional(),listChanged:ze().optional()}).optional(),tools:R({listChanged:ze().optional()}).optional(),tasks:HR.optional(),extensions:De(E(),ht).optional()}),KR=Tt.extend({protocolVersion:E(),capabilities:XR,serverInfo:sh,instructions:E().optional()}),JR=Tr.extend({method:O("notifications/initialized"),params:xr.optional()}),uh=xt.extend({method:O("ping"),params:ir.optional()}),QR=R({progress:ve(),total:We(ve()),message:We(E())}),eN=R({...xr.shape,...QR.shape,progressToken:DC}),q_=Tr.extend({method:O("notifications/progress"),params:eN}),tN=ir.extend({cursor:CC.optional()}),vl=xt.extend({params:tN.optional()}),pl=Tt.extend({nextCursor:CC.optional()}),rN=wt(["working","input_required","completed","failed","cancelled"]),gl=R({taskId:E(),status:rN,ttl:Se([ve(),il()]),createdAt:E(),lastUpdatedAt:E(),pollInterval:We(ve()),statusMessage:We(E())}),Y_=Tt.extend({task:gl}),nN=xr.merge(gl),sf=Tr.extend({method:O("notifications/tasks/status"),params:nN}),X_=xt.extend({method:O("tasks/get"),params:ir.extend({taskId:E()})}),K_=Tt.merge(gl),J_=xt.extend({method:O("tasks/result"),params:ir.extend({taskId:E()})});Tt.loose();const Q_=vl.extend({method:O("tasks/list")}),e0=pl.extend({tasks:ue(gl)}),t0=xt.extend({method:O("tasks/cancel"),params:ir.extend({taskId:E()})}),iN=Tt.merge(gl),MC=R({uri:E(),mimeType:We(E()),_meta:De(E(),Le()).optional()}),LC=MC.extend({text:E()}),r0=E().refine(e=>{try{return atob(e),!0}catch{return!1}},{message:"Invalid Base64 string"}),OC=MC.extend({blob:r0}),ml=wt(["user","assistant"]),No=R({audience:ue(ml).optional(),priority:ve().min(0).max(1).optional(),lastModified:wy({offset:!0}).optional()}),EC=R({...fo.shape,...hl.shape,uri:E(),description:We(E()),mimeType:We(E()),size:We(ve()),annotations:No.optional(),_meta:We(_t({}))}),aN=R({...fo.shape,...hl.shape,uriTemplate:E(),description:We(E()),mimeType:We(E()),annotations:No.optional(),_meta:We(_t({}))}),oN=vl.extend({method:O("resources/list")}),zC=pl.extend({resources:ue(EC)}),sN=vl.extend({method:O("resources/templates/list")}),uN=pl.extend({resourceTemplates:ue(aN)}),n0=ir.extend({uri:E()}),lN=n0,cN=xt.extend({method:O("resources/read"),params:lN}),RC=Tt.extend({contents:ue(Se([LC,OC]))}),fN=Tr.extend({method:O("notifications/resources/list_changed"),params:xr.optional()}),dN=n0,hN=xt.extend({method:O("resources/subscribe"),params:dN}),vN=n0,pN=xt.extend({method:O("resources/unsubscribe"),params:vN}),gN=xr.extend({uri:E()}),mN=Tr.extend({method:O("notifications/resources/updated"),params:gN}),yN=R({name:E(),description:We(E()),required:We(ze())}),_N=R({...fo.shape,...hl.shape,description:We(E()),arguments:We(ue(yN)),_meta:We(_t({}))}),bN=vl.extend({method:O("prompts/list")}),SN=pl.extend({prompts:ue(_N)}),wN=ir.extend({name:E(),arguments:De(E(),E()).optional()}),xN=xt.extend({method:O("prompts/get"),params:wN}),i0=R({type:O("text"),text:E(),annotations:No.optional(),_meta:De(E(),Le()).optional()}),a0=R({type:O("image"),data:r0,mimeType:E(),annotations:No.optional(),_meta:De(E(),Le()).optional()}),o0=R({type:O("audio"),data:r0,mimeType:E(),annotations:No.optional(),_meta:De(E(),Le()).optional()}),TN=R({type:O("tool_use"),name:E(),id:E(),input:De(E(),Le()),_meta:De(E(),Le()).optional()}),NC=R({type:O("resource"),resource:Se([LC,OC]),annotations:No.optional(),_meta:De(E(),Le()).optional()}),UC=EC.extend({type:O("resource_link")}),yl=Se([i0,a0,o0,UC,NC]),kN=R({role:ml,content:yl}),IN=Tt.extend({description:E().optional(),messages:ue(kN)}),$N=Tr.extend({method:O("notifications/prompts/list_changed"),params:xr.optional()}),DN=R({title:E().optional(),readOnlyHint:ze().optional(),destructiveHint:ze().optional(),idempotentHint:ze().optional(),openWorldHint:ze().optional()}),CN=R({taskSupport:wt(["required","optional","forbidden"]).optional()}),s0=R({...fo.shape,...hl.shape,description:E().optional(),inputSchema:R({type:O("object"),properties:De(E(),ht).optional(),required:ue(E()).optional()}).catchall(Le()),outputSchema:R({type:O("object"),properties:De(E(),ht).optional(),required:ue(E()).optional()}).catchall(Le()).optional(),annotations:DN.optional(),execution:CN.optional(),_meta:De(E(),Le()).optional()}),BC=vl.extend({method:O("tools/list")}),AN=pl.extend({tools:ue(s0)}),lh=Tt.extend({content:ue(yl).default([]),structuredContent:De(E(),Le()).optional(),isError:ze().optional()});lh.or(Tt.extend({toolResult:Le()}));const PN=fl.extend({name:E(),arguments:De(E(),Le()).optional()}),FC=xt.extend({method:O("tools/call"),params:PN}),MN=Tr.extend({method:O("notifications/tools/list_changed"),params:xr.optional()});R({autoRefresh:ze().default(!0),debounceMs:ve().int().nonnegative().default(300)});const jC=wt(["debug","info","notice","warning","error","critical","alert","emergency"]),LN=ir.extend({level:jC}),ON=xt.extend({method:O("logging/setLevel"),params:LN}),EN=xr.extend({level:jC,logger:E().optional(),data:Le()}),zN=Tr.extend({method:O("notifications/message"),params:EN}),RN=R({name:E().optional()}),NN=R({hints:ue(RN).optional(),costPriority:ve().min(0).max(1).optional(),speedPriority:ve().min(0).max(1).optional(),intelligencePriority:ve().min(0).max(1).optional()}),UN=R({mode:wt(["auto","required","none"]).optional()}),BN=R({type:O("tool_result"),toolUseId:E().describe("The unique identifier for the corresponding tool call."),content:ue(yl).default([]),structuredContent:R({}).loose().optional(),isError:ze().optional(),_meta:De(E(),Le()).optional()}),FN=ol("type",[i0,a0,o0]),uf=ol("type",[i0,a0,o0,TN,BN]),jN=R({role:ml,content:Se([uf,ue(uf)]),_meta:De(E(),Le()).optional()}),ZN=fl.extend({messages:ue(jN),modelPreferences:NN.optional(),systemPrompt:E().optional(),includeContext:wt(["none","thisServer","allServers"]).optional(),temperature:ve().optional(),maxTokens:ve().int(),stopSequences:ue(E()).optional(),metadata:ht.optional(),tools:ue(s0).optional(),toolChoice:UN.optional()}),VN=xt.extend({method:O("sampling/createMessage"),params:ZN}),ZC=Tt.extend({model:E(),stopReason:We(wt(["endTurn","stopSequence","maxTokens"]).or(E())),role:ml,content:FN}),VC=Tt.extend({model:E(),stopReason:We(wt(["endTurn","stopSequence","maxTokens","toolUse"]).or(E())),role:ml,content:Se([uf,ue(uf)])}),GN=R({type:O("boolean"),title:E().optional(),description:E().optional(),default:ze().optional()}),HN=R({type:O("string"),title:E().optional(),description:E().optional(),minLength:ve().optional(),maxLength:ve().optional(),format:wt(["email","uri","date","date-time"]).optional(),default:E().optional()}),WN=R({type:wt(["number","integer"]),title:E().optional(),description:E().optional(),minimum:ve().optional(),maximum:ve().optional(),default:ve().optional()}),qN=R({type:O("string"),title:E().optional(),description:E().optional(),enum:ue(E()),default:E().optional()}),YN=R({type:O("string"),title:E().optional(),description:E().optional(),oneOf:ue(R({const:E(),title:E()})),default:E().optional()}),XN=R({type:O("string"),title:E().optional(),description:E().optional(),enum:ue(E()),enumNames:ue(E()).optional(),default:E().optional()}),KN=Se([qN,YN]),JN=R({type:O("array"),title:E().optional(),description:E().optional(),minItems:ve().optional(),maxItems:ve().optional(),items:R({type:O("string"),enum:ue(E())}),default:ue(E()).optional()}),QN=R({type:O("array"),title:E().optional(),description:E().optional(),minItems:ve().optional(),maxItems:ve().optional(),items:R({anyOf:ue(R({const:E(),title:E()}))}),default:ue(E()).optional()}),e4=Se([JN,QN]),t4=Se([XN,KN,e4]),r4=Se([t4,GN,HN,WN]),n4=fl.extend({mode:O("form").optional(),message:E(),requestedSchema:R({type:O("object"),properties:De(E(),r4),required:ue(E()).optional()})}),i4=fl.extend({mode:O("url"),message:E(),elicitationId:E(),url:E().url()}),a4=Se([n4,i4]),o4=xt.extend({method:O("elicitation/create"),params:a4}),s4=xr.extend({elicitationId:E()}),u4=Tr.extend({method:O("notifications/elicitation/complete"),params:s4}),l4=Tt.extend({action:wt(["accept","decline","cancel"]),content:cl(e=>e===null?void 0:e,De(E(),Se([E(),ve(),ze(),ue(E())])).optional())}),c4=R({type:O("ref/resource"),uri:E()}),f4=R({type:O("ref/prompt"),name:E()}),d4=ir.extend({ref:Se([f4,c4]),argument:R({name:E(),value:E()}),context:R({arguments:De(E(),E()).optional()}).optional()}),h4=xt.extend({method:O("completion/complete"),params:d4}),v4=Tt.extend({completion:_t({values:ue(E()).max(100),total:We(ve().int()),hasMore:We(ze())})}),p4=R({uri:E().startsWith("file://"),name:E().optional(),_meta:De(E(),Le()).optional()}),g4=xt.extend({method:O("roots/list"),params:ir.optional()}),m4=Tt.extend({roots:ue(p4)}),y4=Tr.extend({method:O("notifications/roots/list_changed"),params:xr.optional()});Se([uh,YR,h4,ON,xN,bN,oN,sN,cN,hN,pN,FC,BC,X_,J_,Q_,t0]);Se([W_,q_,JR,y4,sf]);Se([H_,ZC,VC,l4,m4,K_,e0,Y_]);Se([uh,VN,o4,g4,X_,J_,Q_,t0]);Se([W_,q_,zN,mN,fN,MN,$N,sf,u4]);Se([H_,KR,v4,IN,SN,zC,uN,RC,lh,AN,K_,e0,Y_]);class Ce extends Error{constructor(t,r,i){super(`MCP error ${t}: ${r}`),this.code=t,this.data=i,this.name="McpError"}static fromError(t,r,i){if(t===Ne.UrlElicitationRequired&&i){const n=i;if(n.elicitations)return new _4(n.elicitations,r)}return new Ce(t,r,i)}}class _4 extends Ce{constructor(t,r=`URL elicitation${t.length>1?"s":""} required`){super(Ne.UrlElicitationRequired,r,{elicitations:t})}get elicitations(){var t;return((t=this.data)==null?void 0:t.elicitations)??[]}}function li(e){return e==="completed"||e==="failed"||e==="cancelled"}new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function IS(e){const t=wR(e),r=t==null?void 0:t.method;if(!r)throw new Error("Schema is missing a method literal");const i=xR(r);if(typeof i!="string")throw new Error("Schema method literal must be a string");return i}function $S(e,t){const r=gC(e,t);if(!r.success)throw r.error;return r.data}const b4=6e4;class S4{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(W_,r=>{this._oncancel(r)}),this.setNotificationHandler(q_,r=>{this._onprogress(r)}),this.setRequestHandler(uh,r=>({})),this._taskStore=t==null?void 0:t.taskStore,this._taskMessageQueue=t==null?void 0:t.taskMessageQueue,this._taskStore&&(this.setRequestHandler(X_,async(r,i)=>{const n=await this._taskStore.getTask(r.params.taskId,i.sessionId);if(!n)throw new Ce(Ne.InvalidParams,"Failed to retrieve task: Task not found");return{...n}}),this.setRequestHandler(J_,async(r,i)=>{const n=async()=>{var s;const a=r.params.taskId;if(this._taskMessageQueue){let u;for(;u=await this._taskMessageQueue.dequeue(a,i.sessionId);){if(u.type==="response"||u.type==="error"){const l=u.message,c=l.id,f=this._requestResolvers.get(c);if(f)if(this._requestResolvers.delete(c),u.type==="response")f(l);else{const d=l,h=new Ce(d.error.code,d.error.message,d.error.data);f(h)}else{const d=u.type==="response"?"Response":"Error";this._onerror(new Error(`${d} handler missing for request ${c}`))}continue}await((s=this._transport)==null?void 0:s.send(u.message,{relatedRequestId:i.requestId}))}}const o=await this._taskStore.getTask(a,i.sessionId);if(!o)throw new Ce(Ne.InvalidParams,`Task not found: ${a}`);if(!li(o.status))return await this._waitForTaskUpdate(a,i.signal),await n();if(li(o.status)){const u=await this._taskStore.getTaskResult(a,i.sessionId);return this._clearTaskQueue(a),{...u,_meta:{...u._meta,[zi]:{taskId:a}}}}return await n()};return await n()}),this.setRequestHandler(Q_,async(r,i)=>{var n;try{const{tasks:a,nextCursor:o}=await this._taskStore.listTasks((n=r.params)==null?void 0:n.cursor,i.sessionId);return{tasks:a,nextCursor:o,_meta:{}}}catch(a){throw new Ce(Ne.InvalidParams,`Failed to list tasks: ${a instanceof Error?a.message:String(a)}`)}}),this.setRequestHandler(t0,async(r,i)=>{try{const n=await this._taskStore.getTask(r.params.taskId,i.sessionId);if(!n)throw new Ce(Ne.InvalidParams,`Task not found: ${r.params.taskId}`);if(li(n.status))throw new Ce(Ne.InvalidParams,`Cannot cancel task in terminal status: ${n.status}`);await this._taskStore.updateTaskStatus(r.params.taskId,"cancelled","Client cancelled task execution.",i.sessionId),this._clearTaskQueue(r.params.taskId);const a=await this._taskStore.getTask(r.params.taskId,i.sessionId);if(!a)throw new Ce(Ne.InvalidParams,`Task not found after cancellation: ${r.params.taskId}`);return{_meta:{},...a}}catch(n){throw n instanceof Ce?n:new Ce(Ne.InvalidRequest,`Failed to cancel task: ${n instanceof Error?n.message:String(n)}`)}}))}async _oncancel(t){if(!t.params.requestId)return;const r=this._requestHandlerAbortControllers.get(t.params.requestId);r==null||r.abort(t.params.reason)}_setupTimeout(t,r,i,n,a=!1){this._timeoutInfo.set(t,{timeoutId:setTimeout(n,r),startTime:Date.now(),timeout:r,maxTotalTimeout:i,resetTimeoutOnProgress:a,onTimeout:n})}_resetTimeout(t){const r=this._timeoutInfo.get(t);if(!r)return!1;const i=Date.now()-r.startTime;if(r.maxTotalTimeout&&i>=r.maxTotalTimeout)throw this._timeoutInfo.delete(t),Ce.fromError(Ne.RequestTimeout,"Maximum total timeout exceeded",{maxTotalTimeout:r.maxTotalTimeout,totalElapsed:i});return clearTimeout(r.timeoutId),r.timeoutId=setTimeout(r.onTimeout,r.timeout),!0}_cleanupTimeout(t){const r=this._timeoutInfo.get(t);r&&(clearTimeout(r.timeoutId),this._timeoutInfo.delete(t))}async connect(t){var a,o,s;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;const r=(a=this.transport)==null?void 0:a.onclose;this._transport.onclose=()=>{r==null||r(),this._onclose()};const i=(o=this.transport)==null?void 0:o.onerror;this._transport.onerror=u=>{i==null||i(u),this._onerror(u)};const n=(s=this._transport)==null?void 0:s.onmessage;this._transport.onmessage=(u,l)=>{n==null||n(u,l),zl(u)||UR(u)?this._onresponse(u):kS(u)?this._onrequest(u,l):NR(u)?this._onnotification(u):this._onerror(new Error(`Unknown message type: ${JSON.stringify(u)}`))},await this._transport.start()}_onclose(){var i;const t=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._taskProgressTokens.clear(),this._pendingDebouncedNotifications.clear();for(const n of this._timeoutInfo.values())clearTimeout(n.timeoutId);this._timeoutInfo.clear();for(const n of this._requestHandlerAbortControllers.values())n.abort();this._requestHandlerAbortControllers.clear();const r=Ce.fromError(Ne.ConnectionClosed,"Connection closed");this._transport=void 0,(i=this.onclose)==null||i.call(this);for(const n of t.values())n(r)}_onerror(t){var r;(r=this.onerror)==null||r.call(this,t)}_onnotification(t){const r=this._notificationHandlers.get(t.method)??this.fallbackNotificationHandler;r!==void 0&&Promise.resolve().then(()=>r(t)).catch(i=>this._onerror(new Error(`Uncaught error in notification handler: ${i}`)))}_onrequest(t,r){var c,f,d,h;const i=this._requestHandlers.get(t.method)??this.fallbackRequestHandler,n=this._transport,a=(d=(f=(c=t.params)==null?void 0:c._meta)==null?void 0:f[zi])==null?void 0:d.taskId;if(i===void 0){const v={jsonrpc:"2.0",id:t.id,error:{code:Ne.MethodNotFound,message:"Method not found"}};a&&this._taskMessageQueue?this._enqueueTaskMessage(a,{type:"error",message:v,timestamp:Date.now()},n==null?void 0:n.sessionId).catch(p=>this._onerror(new Error(`Failed to enqueue error response: ${p}`))):n==null||n.send(v).catch(p=>this._onerror(new Error(`Failed to send an error response: ${p}`)));return}const o=new AbortController;this._requestHandlerAbortControllers.set(t.id,o);const s=RR(t.params)?t.params.task:void 0,u=this._taskStore?this.requestTaskStore(t,n==null?void 0:n.sessionId):void 0,l={signal:o.signal,sessionId:n==null?void 0:n.sessionId,_meta:(h=t.params)==null?void 0:h._meta,sendNotification:async v=>{if(o.signal.aborted)return;const p={relatedRequestId:t.id};a&&(p.relatedTask={taskId:a}),await this.notification(v,p)},sendRequest:async(v,p,g)=>{var _;if(o.signal.aborted)throw new Ce(Ne.ConnectionClosed,"Request was cancelled");const m={...g,relatedRequestId:t.id};a&&!m.relatedTask&&(m.relatedTask={taskId:a});const y=((_=m.relatedTask)==null?void 0:_.taskId)??a;return y&&u&&await u.updateTaskStatus(y,"input_required"),await this.request(v,p,m)},authInfo:r==null?void 0:r.authInfo,requestId:t.id,requestInfo:r==null?void 0:r.requestInfo,taskId:a,taskStore:u,taskRequestedTtl:s==null?void 0:s.ttl,closeSSEStream:r==null?void 0:r.closeSSEStream,closeStandaloneSSEStream:r==null?void 0:r.closeStandaloneSSEStream};Promise.resolve().then(()=>{s&&this.assertTaskHandlerCapability(t.method)}).then(()=>i(t,l)).then(async v=>{if(o.signal.aborted)return;const p={result:v,jsonrpc:"2.0",id:t.id};a&&this._taskMessageQueue?await this._enqueueTaskMessage(a,{type:"response",message:p,timestamp:Date.now()},n==null?void 0:n.sessionId):await(n==null?void 0:n.send(p))},async v=>{if(o.signal.aborted)return;const p={jsonrpc:"2.0",id:t.id,error:{code:Number.isSafeInteger(v.code)?v.code:Ne.InternalError,message:v.message??"Internal error",...v.data!==void 0&&{data:v.data}}};a&&this._taskMessageQueue?await this._enqueueTaskMessage(a,{type:"error",message:p,timestamp:Date.now()},n==null?void 0:n.sessionId):await(n==null?void 0:n.send(p))}).catch(v=>this._onerror(new Error(`Failed to send response: ${v}`))).finally(()=>{this._requestHandlerAbortControllers.get(t.id)===o&&this._requestHandlerAbortControllers.delete(t.id)})}_onprogress(t){const{progressToken:r,...i}=t.params,n=Number(r),a=this._progressHandlers.get(n);if(!a){this._onerror(new Error(`Received a progress notification for an unknown token: ${JSON.stringify(t)}`));return}const o=this._responseHandlers.get(n),s=this._timeoutInfo.get(n);if(s&&o&&s.resetTimeoutOnProgress)try{this._resetTimeout(n)}catch(u){this._responseHandlers.delete(n),this._progressHandlers.delete(n),this._cleanupTimeout(n),o(u);return}a(i)}_onresponse(t){const r=Number(t.id),i=this._requestResolvers.get(r);if(i){if(this._requestResolvers.delete(r),zl(t))i(t);else{const o=new Ce(t.error.code,t.error.message,t.error.data);i(o)}return}const n=this._responseHandlers.get(r);if(n===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(zl(t)&&t.result&&typeof t.result=="object"){const o=t.result;if(o.task&&typeof o.task=="object"){const s=o.task;typeof s.taskId=="string"&&(a=!0,this._taskProgressTokens.set(s.taskId,r))}}if(a||this._progressHandlers.delete(r),zl(t))n(t);else{const o=Ce.fromError(t.error.code,t.error.message,t.error.data);n(o)}}get transport(){return this._transport}async close(){var t;await((t=this._transport)==null?void 0:t.close())}async*requestStream(t,r,i){var o,s;const{task:n}=i??{};if(!n){try{yield{type:"result",result:await this.request(t,r,i)}}catch(u){yield{type:"error",error:u instanceof Ce?u:new Ce(Ne.InternalError,String(u))}}return}let a;try{const u=await this.request(t,Y_,i);if(u.task)a=u.task.taskId,yield{type:"taskCreated",task:u.task};else throw new Ce(Ne.InternalError,"Task creation did not return a task");for(;;){const l=await this.getTask({taskId:a},i);if(yield{type:"taskStatus",task:l},li(l.status)){l.status==="completed"?yield{type:"result",result:await this.getTaskResult({taskId:a},r,i)}:l.status==="failed"?yield{type:"error",error:new Ce(Ne.InternalError,`Task ${a} failed`)}:l.status==="cancelled"&&(yield{type:"error",error:new Ce(Ne.InternalError,`Task ${a} was cancelled`)});return}if(l.status==="input_required"){yield{type:"result",result:await this.getTaskResult({taskId:a},r,i)};return}const c=l.pollInterval??((o=this._options)==null?void 0:o.defaultTaskPollInterval)??1e3;await new Promise(f=>setTimeout(f,c)),(s=i==null?void 0:i.signal)==null||s.throwIfAborted()}}catch(u){yield{type:"error",error:u instanceof Ce?u:new Ce(Ne.InternalError,String(u))}}}request(t,r,i){const{relatedRequestId:n,resumptionToken:a,onresumptiontoken:o,task:s,relatedTask:u}=i??{};return new Promise((l,c)=>{var y,_,b,S,w;const f=x=>{c(x)};if(!this._transport){f(new Error("Not connected"));return}if(((y=this._options)==null?void 0:y.enforceStrictCapabilities)===!0)try{this.assertCapabilityForMethod(t.method),s&&this.assertTaskCapability(t.method)}catch(x){f(x);return}(_=i==null?void 0:i.signal)==null||_.throwIfAborted();const d=this._requestMessageId++,h={...t,jsonrpc:"2.0",id:d};i!=null&&i.onprogress&&(this._progressHandlers.set(d,i.onprogress),h.params={...t.params,_meta:{...((b=t.params)==null?void 0:b._meta)||{},progressToken:d}}),s&&(h.params={...h.params,task:s}),u&&(h.params={...h.params,_meta:{...((S=h.params)==null?void 0:S._meta)||{},[zi]:u}});const v=x=>{var k;this._responseHandlers.delete(d),this._progressHandlers.delete(d),this._cleanupTimeout(d),(k=this._transport)==null||k.send({jsonrpc:"2.0",method:"notifications/cancelled",params:{requestId:d,reason:String(x)}},{relatedRequestId:n,resumptionToken:a,onresumptiontoken:o}).catch(I=>this._onerror(new Error(`Failed to send cancellation: ${I}`)));const T=x instanceof Ce?x:new Ce(Ne.RequestTimeout,String(x));c(T)};this._responseHandlers.set(d,x=>{var T;if(!((T=i==null?void 0:i.signal)!=null&&T.aborted)){if(x instanceof Error)return c(x);try{const k=gC(r,x.result);k.success?l(k.data):c(k.error)}catch(k){c(k)}}}),(w=i==null?void 0:i.signal)==null||w.addEventListener("abort",()=>{var x;v((x=i==null?void 0:i.signal)==null?void 0:x.reason)});const p=(i==null?void 0:i.timeout)??b4,g=()=>v(Ce.fromError(Ne.RequestTimeout,"Request timed out",{timeout:p}));this._setupTimeout(d,p,i==null?void 0:i.maxTotalTimeout,g,(i==null?void 0:i.resetTimeoutOnProgress)??!1);const m=u==null?void 0:u.taskId;if(m){const x=T=>{const k=this._responseHandlers.get(d);k?k(T):this._onerror(new Error(`Response handler missing for side-channeled request ${d}`))};this._requestResolvers.set(d,x),this._enqueueTaskMessage(m,{type:"request",message:h,timestamp:Date.now()}).catch(T=>{this._cleanupTimeout(d),c(T)})}else this._transport.send(h,{relatedRequestId:n,resumptionToken:a,onresumptiontoken:o}).catch(x=>{this._cleanupTimeout(d),c(x)})})}async getTask(t,r){return this.request({method:"tasks/get",params:t},K_,r)}async getTaskResult(t,r,i){return this.request({method:"tasks/result",params:t},r,i)}async listTasks(t,r){return this.request({method:"tasks/list",params:t},e0,r)}async cancelTask(t,r){return this.request({method:"tasks/cancel",params:t},iN,r)}async notification(t,r){var s,u,l,c;if(!this._transport)throw new Error("Not connected");this.assertNotificationCapability(t.method);const i=(s=r==null?void 0:r.relatedTask)==null?void 0:s.taskId;if(i){const f={...t,jsonrpc:"2.0",params:{...t.params,_meta:{...((u=t.params)==null?void 0:u._meta)||{},[zi]:r.relatedTask}}};await this._enqueueTaskMessage(i,{type:"notification",message:f,timestamp:Date.now()});return}if((((l=this._options)==null?void 0:l.debouncedNotificationMethods)??[]).includes(t.method)&&!t.params&&!(r!=null&&r.relatedRequestId)&&!(r!=null&&r.relatedTask)){if(this._pendingDebouncedNotifications.has(t.method))return;this._pendingDebouncedNotifications.add(t.method),Promise.resolve().then(()=>{var d,h;if(this._pendingDebouncedNotifications.delete(t.method),!this._transport)return;let f={...t,jsonrpc:"2.0"};r!=null&&r.relatedTask&&(f={...f,params:{...f.params,_meta:{...((d=f.params)==null?void 0:d._meta)||{},[zi]:r.relatedTask}}}),(h=this._transport)==null||h.send(f,r).catch(v=>this._onerror(v))});return}let o={...t,jsonrpc:"2.0"};r!=null&&r.relatedTask&&(o={...o,params:{...o.params,_meta:{...((c=o.params)==null?void 0:c._meta)||{},[zi]:r.relatedTask}}}),await this._transport.send(o,r)}setRequestHandler(t,r){const i=IS(t);this.assertRequestHandlerCapability(i),this._requestHandlers.set(i,(n,a)=>{const o=$S(t,n);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){const i=IS(t);this._notificationHandlers.set(i,n=>{const a=$S(t,n);return Promise.resolve(r(a))})}removeNotificationHandler(t){this._notificationHandlers.delete(t)}_cleanupTaskProgressHandler(t){const r=this._taskProgressTokens.get(t);r!==void 0&&(this._progressHandlers.delete(r),this._taskProgressTokens.delete(t))}async _enqueueTaskMessage(t,r,i){var a;if(!this._taskStore||!this._taskMessageQueue)throw new Error("Cannot enqueue task message: taskStore and taskMessageQueue are not configured");const n=(a=this._options)==null?void 0:a.maxTaskQueueSize;await this._taskMessageQueue.enqueue(t,r,i,n)}async _clearTaskQueue(t,r){if(this._taskMessageQueue){const i=await this._taskMessageQueue.dequeueAll(t,r);for(const n of i)if(n.type==="request"&&kS(n.message)){const a=n.message.id,o=this._requestResolvers.get(a);o?(o(new Ce(Ne.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){var n,a;let i=((n=this._options)==null?void 0:n.defaultTaskPollInterval)??1e3;try{const o=await((a=this._taskStore)==null?void 0:a.getTask(t));o!=null&&o.pollInterval&&(i=o.pollInterval)}catch{}return new Promise((o,s)=>{if(r.aborted){s(new Ce(Ne.InvalidRequest,"Request cancelled"));return}const u=setTimeout(o,i);r.addEventListener("abort",()=>{clearTimeout(u),s(new Ce(Ne.InvalidRequest,"Request cancelled"))},{once:!0})})}requestTaskStore(t,r){const i=this._taskStore;if(!i)throw new Error("No task store configured");return{createTask:async n=>{if(!t)throw new Error("No request provided");return await i.createTask(n,t.id,{method:t.method,params:t.params},r)},getTask:async n=>{const a=await i.getTask(n,r);if(!a)throw new Ce(Ne.InvalidParams,"Failed to retrieve task: Task not found");return a},storeTaskResult:async(n,a,o)=>{await i.storeTaskResult(n,a,o,r);const s=await i.getTask(n,r);if(s){const u=sf.parse({method:"notifications/tasks/status",params:s});await this.notification(u),li(s.status)&&this._cleanupTaskProgressHandler(n)}},getTaskResult:n=>i.getTaskResult(n,r),updateTaskStatus:async(n,a,o)=>{const s=await i.getTask(n,r);if(!s)throw new Ce(Ne.InvalidParams,`Task "${n}" not found - it may have been cleaned up`);if(li(s.status))throw new Ce(Ne.InvalidParams,`Cannot update task "${n}" from terminal status "${s.status}" to "${a}". Terminal states (completed, failed, cancelled) cannot transition to other states.`);await i.updateTaskStatus(n,a,o,r);const u=await i.getTask(n,r);if(u){const l=sf.parse({method:"notifications/tasks/status",params:u});await this.notification(l),li(u.status)&&this._cleanupTaskProgressHandler(n)}},listTasks:n=>i.listTasks(n,r)}}}function DS(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function w4(e,t){const r={...e};for(const i in t){const n=i,a=t[n];if(a===void 0)continue;const o=r[n];DS(o)&&DS(a)?r[n]={...o,...a}:r[n]=a}return r}(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\')});class x4 extends S4{constructor(){super(...arguments);Oe(this,"_registeredMethods",new Set);Oe(this,"_eventSlots",new Map);Oe(this,"setRequestHandler",(r,i)=>{this._assertMethodNotRegistered(r,"setRequestHandler"),super.setRequestHandler(r,i)});Oe(this,"setNotificationHandler",(r,i)=>{this._assertMethodNotRegistered(r,"setNotificationHandler"),super.setNotificationHandler(r,i)});Oe(this,"replaceRequestHandler",(r,i)=>{let n=r.shape.method.value;this._registeredMethods.add(n),super.setRequestHandler(r,i)})}onEventDispatch(r,i){}_ensureEventSlot(r){let i=this._eventSlots.get(r);if(!i){let n=this.eventSchemas[r];if(!n)throw Error(`Unknown event: ${String(r)}`);i={listeners:[]},this._eventSlots.set(r,i);let a=n.shape.method.value;this._registeredMethods.add(a);let o=i;super.setNotificationHandler(n,s=>{var l;let u=s.params;this.onEventDispatch(r,u),(l=o.onHandler)==null||l.call(o,u);for(let c of[...o.listeners])c(u)})}return i}setEventHandler(r,i){let n=this._ensureEventSlot(r);n.onHandler&&i&&console.warn(`[MCP Apps] on${String(r)} handler replaced. Use addEventListener("${String(r)}", \u2026) to add multiple listeners without replacing.`),n.onHandler=i}getEventHandler(r){var i;return(i=this._eventSlots.get(r))==null?void 0:i.onHandler}addEventListener(r,i){this._ensureEventSlot(r).listeners.push(i)}removeEventListener(r,i){let n=this._eventSlots.get(r);if(!n)return;let a=n.listeners.indexOf(i);a!==-1&&n.listeners.splice(a,1)}warnIfRequestHandlerReplaced(r,i,n){i&&n&&console.warn(`[MCP Apps] ${r} handler replaced. Previous handler will no longer be called.`)}_assertMethodNotRegistered(r,i){let n=r.shape.method.value;if(this._registeredMethods.has(n))throw Error(`Handler for "${n}" already registered (via ${i}). Use addEventListener() to attach multiple listeners, or the on* setter for replace semantics.`);this._registeredMethods.add(n)}}var T4="2026-01-26",k4="ui/notifications/tool-input-partial";class I4{constructor(t=window.parent,r){Oe(this,"eventTarget");Oe(this,"eventSource");Oe(this,"messageListener");Oe(this,"onclose");Oe(this,"onerror");Oe(this,"onmessage");Oe(this,"sessionId");Oe(this,"setProtocolVersion");this.eventTarget=t,this.eventSource=r,this.messageListener=i=>{var a,o,s;if(r&&i.source!==this.eventSource){console.debug("Ignoring message from unknown source",i);return}let n=BR.safeParse(i.data);n.success?(console.debug("Parsed message",n.data),(a=this.onmessage)==null||a.call(this,n.data)):((o=i.data)==null?void 0:o.jsonrpc)!=="2.0"?console.debug("Ignoring non-JSON-RPC message",n.error.message,i):(console.error("Failed to parse message",n.error.message,i),(s=this.onerror)==null||s.call(this,Error("Invalid JSON-RPC message received: "+n.error.message)))}}async start(){window.addEventListener("message",this.messageListener)}async send(t,r){t.method!==k4&&console.debug("Sending message",t),this.eventTarget.postMessage(t,"*")}async close(){var t;window.removeEventListener("message",this.messageListener),(t=this.onclose)==null||t.call(this)}}var $4=Se([O("light"),O("dark")]).describe("Color theme preference for the host environment."),Gs=Se([O("inline"),O("fullscreen"),O("pip")]).describe("Display mode for UI presentation."),D4=Se([O("--color-background-primary"),O("--color-background-secondary"),O("--color-background-tertiary"),O("--color-background-inverse"),O("--color-background-ghost"),O("--color-background-info"),O("--color-background-danger"),O("--color-background-success"),O("--color-background-warning"),O("--color-background-disabled"),O("--color-text-primary"),O("--color-text-secondary"),O("--color-text-tertiary"),O("--color-text-inverse"),O("--color-text-ghost"),O("--color-text-info"),O("--color-text-danger"),O("--color-text-success"),O("--color-text-warning"),O("--color-text-disabled"),O("--color-border-primary"),O("--color-border-secondary"),O("--color-border-tertiary"),O("--color-border-inverse"),O("--color-border-ghost"),O("--color-border-info"),O("--color-border-danger"),O("--color-border-success"),O("--color-border-warning"),O("--color-border-disabled"),O("--color-ring-primary"),O("--color-ring-secondary"),O("--color-ring-inverse"),O("--color-ring-info"),O("--color-ring-danger"),O("--color-ring-success"),O("--color-ring-warning"),O("--font-sans"),O("--font-mono"),O("--font-weight-normal"),O("--font-weight-medium"),O("--font-weight-semibold"),O("--font-weight-bold"),O("--font-text-xs-size"),O("--font-text-sm-size"),O("--font-text-md-size"),O("--font-text-lg-size"),O("--font-heading-xs-size"),O("--font-heading-sm-size"),O("--font-heading-md-size"),O("--font-heading-lg-size"),O("--font-heading-xl-size"),O("--font-heading-2xl-size"),O("--font-heading-3xl-size"),O("--font-text-xs-line-height"),O("--font-text-sm-line-height"),O("--font-text-md-line-height"),O("--font-text-lg-line-height"),O("--font-heading-xs-line-height"),O("--font-heading-sm-line-height"),O("--font-heading-md-line-height"),O("--font-heading-lg-line-height"),O("--font-heading-xl-line-height"),O("--font-heading-2xl-line-height"),O("--font-heading-3xl-line-height"),O("--border-radius-xs"),O("--border-radius-sm"),O("--border-radius-md"),O("--border-radius-lg"),O("--border-radius-xl"),O("--border-radius-full"),O("--border-width-regular"),O("--shadow-hairline"),O("--shadow-sm"),O("--shadow-md"),O("--shadow-lg")]).describe("CSS variable keys available to MCP apps for theming."),C4=De(D4.describe(`Style variables for theming MCP apps.\n\nIndividual style keys are optional - hosts may provide any subset of these values.\nValues are strings containing CSS values (colors, sizes, font stacks, etc.).\n\nNote: This type uses \\`Record<K, string | undefined>\\` rather than \\`Partial<Record<K, string>>\\`\nfor compatibility with Zod schema generation. Both are functionally equivalent for validation.`),Se([E(),uo()]).describe(`Style variables for theming MCP apps.\n\nIndividual style keys are optional - hosts may provide any subset of these values.\nValues are strings containing CSS values (colors, sizes, font stacks, etc.).\n\nNote: This type uses \\`Record<K, string | undefined>\\` rather than \\`Partial<Record<K, string>>\\`\nfor compatibility with Zod schema generation. Both are functionally equivalent for validation.`)).describe(`Style variables for theming MCP apps.\n\nIndividual style keys are optional - hosts may provide any subset of these values.\nValues are strings containing CSS values (colors, sizes, font stacks, etc.).\n\nNote: This type uses \\`Record<K, string | undefined>\\` rather than \\`Partial<Record<K, string>>\\`\nfor compatibility with Zod schema generation. Both are functionally equivalent for validation.`);R({method:O("ui/open-link"),params:R({url:E().describe("URL to open in the host\'s browser")})});var A4=R({isError:ze().optional().describe("True if the host failed to open the URL (e.g., due to security policy).")}).passthrough(),P4=R({isError:ze().optional().describe("True if the download failed (e.g., user cancelled or host denied).")}).passthrough(),M4=R({isError:ze().optional().describe("True if the host rejected or failed to deliver the message.")}).passthrough();R({method:O("ui/notifications/sandbox-proxy-ready"),params:R({})});var u0=R({connectDomains:ue(E()).optional().describe(`Origins for network requests (fetch/XHR/WebSocket).\n\n- Maps to CSP \\`connect-src\\` directive\n- Empty or omitted \u2192 no network connections (secure default)`),resourceDomains:ue(E()).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:ue(E()).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:ue(E()).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\'`)")}),l0=R({camera:R({}).optional().describe("Request camera access.\\n\\nMaps to Permission Policy `camera` feature."),microphone:R({}).optional().describe("Request microphone access.\\n\\nMaps to Permission Policy `microphone` feature."),geolocation:R({}).optional().describe("Request geolocation access.\\n\\nMaps to Permission Policy `geolocation` feature."),clipboardWrite:R({}).optional().describe("Request clipboard write access.\\n\\nMaps to Permission Policy `clipboard-write` feature.")});R({method:O("ui/notifications/size-changed"),params:R({width:ve().optional().describe("New width in pixels."),height:ve().optional().describe("New height in pixels.")})});var L4=R({method:O("ui/notifications/tool-input"),params:R({arguments:De(E(),Le().describe("Complete tool call arguments as key-value pairs.")).optional().describe("Complete tool call arguments as key-value pairs.")})}),O4=R({method:O("ui/notifications/tool-input-partial"),params:R({arguments:De(E(),Le().describe("Partial tool call arguments (incomplete, may change).")).optional().describe("Partial tool call arguments (incomplete, may change).")})}),E4=R({method:O("ui/notifications/tool-cancelled"),params:R({reason:E().optional().describe(\'Optional reason for the cancellation (e.g., "user action", "timeout").\')})}),z4=R({fonts:E().optional()}),R4=R({variables:C4.optional().describe("CSS variables for theming the app."),css:z4.optional().describe("CSS blocks that apps can inject.")}),N4=R({method:O("ui/resource-teardown"),params:R({})});De(E(),Le());var CS=R({text:R({}).optional().describe("Host supports text content blocks."),image:R({}).optional().describe("Host supports image content blocks."),audio:R({}).optional().describe("Host supports audio content blocks."),resource:R({}).optional().describe("Host supports resource content blocks."),resourceLink:R({}).optional().describe("Host supports resource link content blocks."),structuredContent:R({}).optional().describe("Host supports structured content.")});R({method:O("ui/notifications/request-teardown"),params:R({}).optional()});var U4=R({experimental:R({}).optional().describe("Experimental features (structure TBD)."),openLinks:R({}).optional().describe("Host supports opening external URLs."),downloadFile:R({}).optional().describe("Host supports file downloads via ui/download-file."),serverTools:R({listChanged:ze().optional().describe("Host supports tools/list_changed notifications.")}).optional().describe("Host can proxy tool calls to the MCP server."),serverResources:R({listChanged:ze().optional().describe("Host supports resources/list_changed notifications.")}).optional().describe("Host can proxy resource reads to the MCP server."),logging:R({}).optional().describe("Host accepts log messages."),sandbox:R({permissions:l0.optional().describe("Permissions granted by the host (camera, microphone, geolocation)."),csp:u0.optional().describe("CSP domains approved by the host.")}).optional().describe("Sandbox configuration applied by the host."),updateModelContext:CS.optional().describe("Host accepts context updates (ui/update-model-context) to be included in the model\'s context for future turns."),message:CS.optional().describe("Host supports receiving content messages (ui/message) from the view."),sampling:R({tools:R({}).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.")}),B4=R({experimental:R({}).optional().describe("Experimental features (structure TBD)."),tools:R({listChanged:ze().optional().describe("App supports tools/list_changed notifications.")}).optional().describe("App exposes MCP-style tools that the host can call."),availableDisplayModes:ue(Gs).optional().describe("Display modes the app supports.")});R({method:O("ui/notifications/initialized"),params:R({}).optional()});R({csp:u0.optional().describe("Content Security Policy configuration for UI resources."),permissions:l0.optional().describe("Sandbox permissions requested by the UI resource."),domain:E().optional().describe(`Dedicated origin for view sandbox.\n\nUseful when views need stable, dedicated origins for OAuth callbacks, CORS policies, or API key allowlists.\n\n**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:\n- Hash-based subdomains (e.g., \\`{hash}.claudemcpcontent.com\\`)\n- URL-derived subdomains (e.g., \\`www-example-com.oaiusercontent.com\\`)\n\nIf omitted, host uses default sandbox origin (typically per-conversation).`),prefersBorder:ze().optional().describe(`Visual boundary preference - true if view prefers a visible border.\n\nBoolean 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.\n\n- \\`true\\`: request visible border + background\n- \\`false\\`: request no visible border + background\n- omitted: host decides border`)});R({method:O("ui/request-display-mode"),params:R({mode:Gs.describe("The display mode being requested.")})});var F4=R({mode:Gs.describe("The display mode that was actually set. May differ from requested if not supported.")}).passthrough(),j4=Se([O("model"),O("app")]).describe("Tool visibility scope - who can access the tool.");R({resourceUri:E().optional(),visibility:ue(j4).optional().describe(`Who can access this tool. Default: ["model", "app"]\n- "model": Tool visible to and callable by the agent\n- "app": Tool callable by the app from this server only`),csp:Qi().optional(),permissions:Qi().optional()});R({mimeTypes:ue(E()).optional().describe(\'Array of supported MIME types for UI resources.\\nMust include `"text/html;profile=mcp-app"` for MCP Apps support.\')});R({method:O("ui/download-file"),params:R({contents:ue(Se([NC,UC])).describe("Resource contents to download \u2014 embedded (inline data) or linked (host fetches). Uses standard MCP resource types.")})});R({method:O("ui/message"),params:R({role:O("user").describe(\'Message role, currently only "user" is supported.\'),content:ue(yl).describe("Message content blocks (text, image, etc.).")})});R({method:O("ui/notifications/sandbox-resource-ready"),params:R({html:E().describe("HTML content to load into the inner iframe."),sandbox:E().optional().describe("Optional override for the inner iframe\'s sandbox attribute."),csp:u0.optional().describe("CSP configuration from resource metadata."),permissions:l0.optional().describe("Sandbox permissions from resource metadata.")})});var Z4=R({method:O("ui/notifications/tool-result"),params:lh.describe("Standard MCP tool execution result.")}),GC=R({toolInfo:R({id:dl.optional().describe("JSON-RPC id of the tools/call request."),tool:s0.describe("Tool definition including name, inputSchema, etc.")}).optional().describe("Metadata of the tool call that instantiated this App."),theme:$4.optional().describe("Current color theme preference."),styles:R4.optional().describe("Style configuration for theming the app."),displayMode:Gs.optional().describe("How the UI is currently displayed."),availableDisplayModes:ue(Gs).optional().describe("Display modes the host supports."),containerDimensions:Se([R({height:ve().describe("Fixed container height in pixels.")}),R({maxHeight:Se([ve(),uo()]).optional().describe("Maximum container height in pixels.")})]).and(Se([R({width:ve().describe("Fixed container width in pixels.")}),R({maxWidth:Se([ve(),uo()]).optional().describe("Maximum container width in pixels.")})])).optional().describe(`Container dimensions. Represents the dimensions of the iframe or other\ncontainer holding the app. Specify either width or maxWidth, and either height or maxHeight.`),locale:E().optional().describe("User\'s language and region preference in BCP 47 format."),timeZone:E().optional().describe("User\'s timezone in IANA format."),userAgent:E().optional().describe("Host application identifier."),platform:Se([O("web"),O("desktop"),O("mobile")]).optional().describe("Platform type for responsive design decisions."),deviceCapabilities:R({touch:ze().optional().describe("Whether the device supports touch input."),hover:ze().optional().describe("Whether the device supports hover interactions.")}).optional().describe("Device input capabilities."),safeAreaInsets:R({top:ve().describe("Top safe area inset in pixels."),right:ve().describe("Right safe area inset in pixels."),bottom:ve().describe("Bottom safe area inset in pixels."),left:ve().describe("Left safe area inset in pixels.")}).optional().describe("Mobile safe area boundaries in pixels.")}).passthrough(),V4=R({method:O("ui/notifications/host-context-changed"),params:GC.describe("Partial context update containing only changed fields.")});R({method:O("ui/update-model-context"),params:R({content:ue(yl).optional().describe("Context content blocks (text, image, etc.)."),structuredContent:De(E(),Le().describe("Structured content for machine-readable context data.")).optional().describe("Structured content for machine-readable context data.")})});R({method:O("ui/initialize"),params:R({appInfo:sh.describe("App identification (name and version)."),appCapabilities:B4.describe("Features and capabilities this app provides."),protocolVersion:E().describe("Protocol version this app supports.")})});var G4=R({protocolVersion:E().describe(\'Negotiated protocol version string (e.g., "2025-11-21").\'),hostInfo:sh.describe("Host application identification and version."),hostCapabilities:U4.describe("Features and capabilities provided by the host."),hostContext:GC.describe("Rich context about the host environment.")}).passthrough(),H4={target:"draft-2020-12"};async function AS(e,t){let r=e["~standard"];if(r.jsonSchema)return r.jsonSchema[t](H4);if(r.vendor==="zod"){let{z:i}=await sE(()=>Promise.resolve().then(()=>OR),void 0,import.meta.url);return i.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 PS(e,t,r=""){let i=await e["~standard"].validate(t);if(i.issues){let n=i.issues.map(a=>{var s;let o=(s=a.path)==null?void 0:s.map(u=>typeof u=="object"?u.key:u).join(".");return o?`${o}: ${a.message}`:a.message}).join("; ");throw Error(r+n)}return i.value}const Kf=class Kf extends x4{constructor(r,i={},n={autoResize:!0}){super(n);Oe(this,"_appInfo");Oe(this,"_capabilities");Oe(this,"options");Oe(this,"_hostCapabilities");Oe(this,"_hostInfo");Oe(this,"_hostContext");Oe(this,"_registeredTools",{});Oe(this,"_initializedSent",!1);Oe(this,"eventSchemas",{toolinput:L4,toolinputpartial:O4,toolresult:Z4,toolcancelled:E4,hostcontextchanged:V4});Oe(this,"_everHadListener",new Set);Oe(this,"_toolHandlersInitialized",!1);Oe(this,"_onteardown");Oe(this,"_oncalltool");Oe(this,"_onlisttools");Oe(this,"sendOpenLink",this.openLink);this._appInfo=r,this._capabilities=i,this.options=n,n.allowUnsafeEval||pt({jitless:!0}),this.setRequestHandler(uh,a=>(console.log("Received ping:",a.params),{})),this.setEventHandler("hostcontextchanged",void 0)}_assertInitialized(r){var n;if(this._initializedSent)return;let i=`[ext-apps] App.${r}() called before connect() completed the ui/initialize handshake. Await app.connect() before calling this method, or move data loading to an ontoolresult handler.`;if((n=this.options)!=null&&n.strict)throw Error(i);console.warn(`${i}. This will throw in a future release.`)}_assertHandlerTiming(r){var n;if(!Kf.ONE_SHOT_EVENTS.has(r)||this._everHadListener.has(r)||(this._everHadListener.add(r),!this._initializedSent))return;let i=`[ext-apps] "${String(r)}" handler registered after connect() completed the ui/initialize handshake. The host may have already sent this notification. Register handlers before calling app.connect().`;if((n=this.options)!=null&&n.strict)throw Error(i);console.warn(i)}setEventHandler(r,i){i&&this._assertHandlerTiming(r),super.setEventHandler(r,i)}addEventListener(r,i){this._assertHandlerTiming(r),super.addEventListener(r,i)}onEventDispatch(r,i){r==="hostcontextchanged"&&(this._hostContext={...this._hostContext,...i})}registerCapabilities(r){if(this.transport)throw Error("Cannot register capabilities after transport is established");this._capabilities=w4(this._capabilities,r)}registerTool(r,i,n){if(this._registeredTools[r])throw Error(`Tool ${r} is already registered`);let a=this,o=()=>{var l;a._initializedSent&&((l=a._capabilities.tools)!=null&&l.listChanged)&&a.sendToolListChanged()},s=i.inputSchema!==void 0,u={title:i.title,description:i.description,inputSchema:i.inputSchema,outputSchema:i.outputSchema,annotations:i.annotations,_meta:i._meta,enabled:!0,enable(){this.enabled=!0,o()},disable(){this.enabled=!1,o()},update(l){Object.assign(this,l),o()},remove(){a._registeredTools[r]===u&&(delete a._registeredTools[r],o())},handler:async(l,c)=>{if(!u.enabled)throw Error(`Tool ${r} is disabled`);let f;if(s){let d=u.inputSchema,h=d?await PS(d,l??{},`Invalid input for tool ${r}: `):l??{};f=await n(h,c)}else f=await n(c);return u.outputSchema&&!f.isError&&(f.structuredContent=await PS(u.outputSchema,f.structuredContent,`Invalid output for tool ${r}: `)),f}};return this._registeredTools[r]=u,!this._capabilities.tools&&!this.transport&&this.registerCapabilities({tools:{listChanged:!0}}),this.ensureToolHandlersInitialized(),o(),u}ensureToolHandlersInitialized(){this._toolHandlersInitialized||(this._toolHandlersInitialized=!0,this.oncalltool=async(r,i)=>{let n=this._registeredTools[r.name];if(!n)throw Error(`Tool ${r.name} not found`);return n.handler(r.arguments,i)},this.onlisttools=async(r,i)=>({tools:await Promise.all(Object.entries(this._registeredTools).filter(([n,a])=>a.enabled).map(async([n,a])=>{let o={name:n,title:a.title,description:a.description,inputSchema:a.inputSchema?await AS(a.inputSchema,"input"):{type:"object",properties:{}}};return a.outputSchema&&(o.outputSchema=await AS(a.outputSchema,"output")),a.annotations&&(o.annotations=a.annotations),a._meta&&(o._meta=a._meta),o}))}))}async sendToolListChanged(r={}){this._assertInitialized("sendToolListChanged"),await this.notification({method:"notifications/tools/list_changed",params:r})}getHostCapabilities(){return this._hostCapabilities}getHostVersion(){return this._hostInfo}getHostContext(){return this._hostContext}get ontoolinput(){return this.getEventHandler("toolinput")}set ontoolinput(r){this.setEventHandler("toolinput",r)}get ontoolinputpartial(){return this.getEventHandler("toolinputpartial")}set ontoolinputpartial(r){this.setEventHandler("toolinputpartial",r)}get ontoolresult(){return this.getEventHandler("toolresult")}set ontoolresult(r){this.setEventHandler("toolresult",r)}get ontoolcancelled(){return this.getEventHandler("toolcancelled")}set ontoolcancelled(r){this.setEventHandler("toolcancelled",r)}get onhostcontextchanged(){return this.getEventHandler("hostcontextchanged")}set onhostcontextchanged(r){this.setEventHandler("hostcontextchanged",r)}get onteardown(){return this._onteardown}set onteardown(r){this.warnIfRequestHandlerReplaced("onteardown",this._onteardown,r),this._onteardown=r,this.replaceRequestHandler(N4,(i,n)=>{if(!this._onteardown)throw Error("No onteardown handler set");return this._onteardown(i.params,n)})}get oncalltool(){return this._oncalltool}set oncalltool(r){this.warnIfRequestHandlerReplaced("oncalltool",this._oncalltool,r),this._oncalltool=r,this.replaceRequestHandler(FC,(i,n)=>{if(!this._oncalltool)throw Error("No oncalltool handler set");return this._oncalltool(i.params,n)})}get onlisttools(){return this._onlisttools}set onlisttools(r){this.warnIfRequestHandlerReplaced("onlisttools",this._onlisttools,r),this._onlisttools=r,this.replaceRequestHandler(BC,(i,n)=>{if(!this._onlisttools)throw Error("No onlisttools handler set");return this._onlisttools(i.params,n)})}assertCapabilityForMethod(r){var i;switch(r){case"sampling/createMessage":if(!((i=this._hostCapabilities)!=null&&i.sampling))throw Error(`Host does not support sampling (required for ${r})`);break}}assertRequestHandlerCapability(r){switch(r){case"tools/call":case"tools/list":if(!this._capabilities.tools)throw Error(`Client does not support tool capability (required for ${r})`);return;case"ping":case"ui/resource-teardown":return;default:throw Error(`No handler for method ${r} registered`)}}assertNotificationCapability(r){}assertTaskCapability(r){throw Error("Tasks are not supported in MCP Apps")}assertTaskHandlerCapability(r){throw Error("Task handlers are not supported in MCP Apps")}async callServerTool(r,i){if(this._assertInitialized("callServerTool"),typeof r=="string")throw Error(`callServerTool() expects an object as its first argument, but received a string ("${r}"). Did you mean: callServerTool({ name: "${r}", arguments: { ... } })?`);return await this.request({method:"tools/call",params:r},lh,{onprogress:()=>{},resetTimeoutOnProgress:!0,...i})}async readServerResource(r,i){return this._assertInitialized("readServerResource"),await this.request({method:"resources/read",params:r},RC,i)}async listServerResources(r,i){return this._assertInitialized("listServerResources"),await this.request({method:"resources/list",params:r},zC,i)}async createSamplingMessage(r,i){this._assertInitialized("createSamplingMessage");let n=r.tools?VC:ZC;return await this.request({method:"sampling/createMessage",params:r},n,i)}sendMessage(r,i){return this._assertInitialized("sendMessage"),this.request({method:"ui/message",params:r},M4,i)}sendLog(r){return this.notification({method:"notifications/message",params:r})}updateModelContext(r,i){return this._assertInitialized("updateModelContext"),this.request({method:"ui/update-model-context",params:r},H_,i)}openLink(r,i){return this._assertInitialized("openLink"),this.request({method:"ui/open-link",params:r},A4,i)}downloadFile(r,i){return this._assertInitialized("downloadFile"),this.request({method:"ui/download-file",params:r},P4,i)}requestTeardown(r={}){return this.notification({method:"ui/notifications/request-teardown",params:r})}requestDisplayMode(r,i){return this._assertInitialized("requestDisplayMode"),this.request({method:"ui/request-display-mode",params:r},F4,i)}sendSizeChanged(r){return this.notification({method:"ui/notifications/size-changed",params:r})}setupSizeChangedNotifications(){let r=!1,i=0,n=0,a=()=>{r||(r=!0,requestAnimationFrame(()=>{r=!1;let s=document.documentElement,u=s.style.height;s.style.height="max-content";let l=Math.ceil(s.getBoundingClientRect().height);s.style.height=u;let c=Math.ceil(window.innerWidth);(c!==i||l!==n)&&(i=c,n=l,this.sendSizeChanged({width:c,height:l}))}))};a();let o=new ResizeObserver(a);return o.observe(document.documentElement),o.observe(document.body),()=>o.disconnect()}async connect(r=new I4(window.parent,window.parent),i){var n;if(this.transport)throw Error("App is already connected. Call close() before connecting again.");this._initializedSent=!1,await super.connect(r);try{let a=await this.request({method:"ui/initialize",params:{appCapabilities:this._capabilities,appInfo:this._appInfo,protocolVersion:T4}},G4,i);if(a===void 0)throw Error(`Server sent invalid initialize result: ${a}`);this._hostCapabilities=a.hostCapabilities,this._hostInfo=a.hostInfo,this._hostContext=a.hostContext,await this.notification({method:"ui/notifications/initialized"}),this._initializedSent=!0,(n=this.options)!=null&&n.autoResize&&this.setupSizeChangedNotifications()}catch(a){throw this.close(),a}}};Oe(Kf,"ONE_SHOT_EVENTS",new Set(["toolinput","toolinputpartial","toolresult","toolcancelled"]));let Ep=Kf;/*! *****************************************************************************\nCopyright (c) Microsoft Corporation.\n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted.\n\nTHE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\nPERFORMANCE OF THIS SOFTWARE.\n***************************************************************************** */var zp=function(e,t){return zp=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(r[n]=i[n])},zp(e,t)};function H(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");zp(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var W4=(function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e})(),q4=(function(){function e(){this.browser=new W4,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})(),pe=new q4;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(pe.wxa=!0,pe.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?pe.worker=!0:!pe.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(pe.node=!0,pe.svgSupported=!0):Y4(navigator.userAgent,pe);function Y4(e,t){var r=t.browser,i=e.match(/Firefox\\/([\\d.]+)/),n=e.match(/MSIE\\s([\\d.]+)/)||e.match(/Trident\\/.+?rv:(([\\d.]+))/),a=e.match(/Edge?\\/([\\d.]+)/),o=/micromessenger/i.test(e);i&&(r.firefox=!0,r.version=i[1]),n&&(r.ie=!0,r.version=n[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),o&&(r.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,t.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11);var s=t.domSupported=typeof document<"u";if(s){var u=document.documentElement.style;t.transform3dSupported=(r.ie&&"transition"in u||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in u)&&!("OTransition"in u),t.transformSupported=t.transform3dSupported||r.ie&&+r.version>=9}}var c0=12,HC="sans-serif",In=c0+"px "+HC,X4=20,K4=100,J4="007LLmW\'55;N0500LLLLLLLLLL00NNNLzWW\\\\\\\\WQb\\\\0FWLg\\\\bWb\\\\WQ\\\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\\\FFF5.5N";function Q4(e){var t={};if(typeof JSON>"u")return t;for(var r=0;r<e.length;r++){var i=String.fromCharCode(r+32),n=(e.charCodeAt(r)-X4)/K4;t[i]=n}return t}var eU=Q4(J4),rn={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var e,t;return function(r,i){if(!e){var n=rn.createCanvas();e=n&&n.getContext("2d")}if(e)return t!==i&&(t=e.font=i||In),e.measureText(r);r=r||"",i=i||In;var a=/((?:\\d+)?\\.?\\d*)px/.exec(i),o=a&&+a[1]||c0,s=0;if(i.indexOf("mono")>=0)s=o*r.length;else for(var u=0;u<r.length;u++){var l=eU[r[u]];s+=l==null?o:l*o}return{width:s}}})(),loadImage:function(e,t,r){var i=new Image;return i.onload=t,i.onerror=r,i.src=e,i},getTime:function(){return Date.now?Date.now():+new Date}},WC=ei(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),qC=ei(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),_l=Object.prototype.toString,ch=Array.prototype,tU=ch.forEach,rU=ch.filter,f0=ch.slice,nU=ch.map,MS=(function(){}).constructor,Rl=MS?MS.prototype:null,d0="__proto__",Wh=2311,iU=Math.pow(2,53)-1;function YC(){return Wh>=iU&&(Wh=0),Wh++}function XC(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console<"u"&&console.error.apply(console,e)}function me(e){if(e==null||typeof e!="object")return e;var t=e,r=_l.call(e);if(r==="[object Array]"){if(!Ds(e)){t=[];for(var i=0,n=e.length;i<n;i++)t[i]=me(e[i])}}else if(qC[r]){if(!Ds(e)){var a=e.constructor;if(a.from)t=a.from(e);else{t=new a(e.length);for(var i=0,n=e.length;i<n;i++)t[i]=e[i]}}}else if(!WC[r]&&!Ds(e)&&!Hs(e)){t={};for(var o in e)e.hasOwnProperty(o)&&o!==d0&&(t[o]=me(e[o]))}return t}function Ze(e,t,r){if(!ne(t)||!ne(e))return r?me(t):e;for(var i in t)if(t.hasOwnProperty(i)&&i!==d0){var n=e[i],a=t[i];ne(a)&&ne(n)&&!q(a)&&!q(n)&&!Hs(a)&&!Hs(n)&&!LS(a)&&!LS(n)&&!Ds(a)&&!Ds(n)?Ze(n,a,r):(r||!(i in e))&&(e[i]=me(t[i]))}return e}function V(e,t){if(Object.assign)Object.assign(e,t);else for(var r in t)t.hasOwnProperty(r)&&r!==d0&&(e[r]=t[r]);return e}function aU(e,t,r){e=e||{};for(var i=0;i<r.length;i++){var n=r[i];e[n]=t[n]}return e}function je(e,t,r){for(var i=Te(t),n=0,a=i.length;n<a;n++){var o=i[n];e[o]==null&&(e[o]=t[o])}return e}function xe(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var r=0,i=e.length;r<i;r++)if(e[r]===t)return r}return-1}function oU(e,t){var r=e.prototype;function i(){}i.prototype=t.prototype,e.prototype=new i;for(var n in r)r.hasOwnProperty(n)&&(e.prototype[n]=r[n]);e.prototype.constructor=e,e.superClass=t}function Br(e,t,r){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(t),n=0;n<i.length;n++){var a=i[n];a!=="constructor"&&e[a]==null&&(e[a]=t[a])}else je(e,t)}function Wt(e){return!e||typeof e=="string"?!1:typeof e.length=="number"}function C(e,t,r){if(e&&t)if(e.forEach&&e.forEach===tU)e.forEach(t,r);else if(e.length===+e.length)for(var i=0,n=e.length;i<n;i++)t.call(r,e[i],i,e);else for(var a in e)e.hasOwnProperty(a)&&t.call(r,e[a],a,e)}function Q(e,t,r){if(!e)return[];if(!t)return v0(e);if(e.map&&e.map===nU)return e.map(t,r);for(var i=[],n=0,a=e.length;n<a;n++)i.push(t.call(r,e[n],n,e));return i}function ei(e,t,r,i){if(e&&t){for(var n=0,a=e.length;n<a;n++)r=t.call(i,r,e[n],n,e);return r}}function ot(e,t,r){if(!e)return[];if(!t)return v0(e);if(e.filter&&e.filter===rU)return e.filter(t,r);for(var i=[],n=0,a=e.length;n<a;n++)t.call(r,e[n],n,e)&&i.push(e[n]);return i}function sU(e,t,r){if(e&&t){for(var i=0,n=e.length;i<n;i++)if(t.call(r,e[i],i,e))return e[i]}}function Te(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 uU(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return function(){return e.apply(t,r.concat(f0.call(arguments)))}}var Fe=Rl&&le(Rl.bind)?Rl.call.bind(Rl.bind):uU;function He(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return function(){return e.apply(this,t.concat(f0.call(arguments)))}}function q(e){return Array.isArray?Array.isArray(e):_l.call(e)==="[object Array]"}function le(e){return typeof e=="function"}function te(e){return typeof e=="string"}function Rp(e){return _l.call(e)==="[object String]"}function Re(e){return typeof e=="number"}function ne(e){var t=typeof e;return t==="function"||!!e&&t==="object"}function LS(e){return!!WC[_l.call(e)]}function qt(e){return!!qC[_l.call(e)]}function Hs(e){return typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.ownerDocument=="object"}function h0(e){return e.colorStops!=null}function Ws(e){return e!==e}function qs(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,i=e.length;r<i;r++)if(e[r]!=null)return e[r]}function J(e,t){return e??t}function Gi(e,t,r){return e??t??r}function v0(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return f0.apply(e,t)}function p0(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 Rr(e,t){if(!e)throw new Error(t)}function Qr(e){return e==null?null:typeof e.trim=="function"?e.trim():e.replace(/^[\\s\\uFEFF\\xA0]+|[\\s\\uFEFF\\xA0]+$/g,"")}var KC="__ec_primitive__";function Np(e){e[KC]=!0}function Ds(e){return e[KC]}var lU=(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 Te(this.data)},e.prototype.forEach=function(t){var r=this.data;for(var i in r)r.hasOwnProperty(i)&&t(r[i],i)},e})(),JC=typeof Map=="function";function cU(){return JC?new Map:new lU}var fU=(function(){function e(t){var r=q(t);this.data=cU();var i=this;t instanceof e?t.each(n):t&&C(t,n);function n(a,o){r?i.set(a,o):i.set(o,a)}}return e.prototype.hasKey=function(t){return this.data.has(t)},e.prototype.get=function(t){return this.data.get(t)},e.prototype.set=function(t,r){return this.data.set(t,r),r},e.prototype.each=function(t,r){this.data.forEach(function(i,n){t.call(r,i,n)})},e.prototype.keys=function(){var t=this.data.keys();return JC?Array.from(t):t},e.prototype.removeKey=function(t){this.data.delete(t)},e})();function se(e){return new fU(e)}function dU(e,t){for(var r=new e.constructor(e.length+t.length),i=0;i<e.length;i++)r[i]=e[i];for(var n=e.length,i=0;i<t.length;i++)r[i+n]=t[i];return r}function fh(e,t){var r;if(Object.create)r=Object.create(e);else{var i=function(){};i.prototype=e,r=new i}return t&&V(r,t),r}function Ut(e,t){return e.hasOwnProperty(t)}function bt(){}var Ec=180/Math.PI;function Uo(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function hU(e){return[e[0],e[1]]}function qh(e,t,r){return e[0]=t,e[1]=r,e}function OS(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e}function QC(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e}function vU(e){return Math.sqrt(pU(e))}function pU(e){return e[0]*e[0]+e[1]*e[1]}function Yh(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e}function g0(e,t){var r=vU(t);return r===0?(e[0]=0,e[1]=0):(e[0]=t[0]/r,e[1]=t[1]/r),e}function Up(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var Bp=Up;function gU(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var Ga=gU;function Xh(e,t,r,i){return e[0]=t[0]+i*(r[0]-t[0]),e[1]=t[1]+i*(r[1]-t[1]),e}function br(e,t,r){var i=t[0],n=t[1];return e[0]=r[0]*i+r[2]*n+r[4],e[1]=r[1]*i+r[3]*n+r[5],e}function Ua(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e}function Ba(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e}var ba=(function(){function e(t,r){this.target=t,this.topTarget=r&&r.topTarget}return e})(),mU=(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 ba(r,t),"dragstart",t.event))},e.prototype._drag=function(t){var r=this._draggingTarget;if(r){var i=t.offsetX,n=t.offsetY,a=i-this._x,o=n-this._y;this._x=i,this._y=n,r.drift(a,o,t),this.handler.dispatchToElement(new ba(r,t),"drag",t.event);var s=this.handler.findHover(i,n,r).target,u=this._dropTarget;this._dropTarget=s,r!==s&&(u&&s!==u&&this.handler.dispatchToElement(new ba(u,t),"dragleave",t.event),s&&s!==u&&this.handler.dispatchToElement(new ba(s,t),"dragenter",t.event))}},e.prototype._dragEnd=function(t){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new ba(r,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new ba(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},e})(),Mn=(function(){function e(t){t&&(this._$eventProcessor=t)}return e.prototype.on=function(t,r,i,n){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof r=="function"&&(n=i,i=r,r=null),!i||!t)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),a[t]||(a[t]=[]);for(var s=0;s<a[t].length;s++)if(a[t][s].h===i)return this;var u={h:i,query:r,ctx:n||this,callAtLast:i.zrEventfulCallAtLast},l=a[t].length-1,c=a[t][l];return c&&c.callAtLast?a[t].splice(l,0,u):a[t].push(u),this},e.prototype.isSilent=function(t){var r=this._$handlers;return!r||!r[t]||!r[t].length},e.prototype.off=function(t,r){var i=this._$handlers;if(!i)return this;if(!t)return this._$handlers={},this;if(r){if(i[t]){for(var n=[],a=0,o=i[t].length;a<o;a++)i[t][a].h!==r&&n.push(i[t][a]);i[t]=n}i[t]&&i[t].length===0&&delete i[t]}else delete i[t];return this},e.prototype.trigger=function(t){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[t],a=this._$eventProcessor;if(n)for(var o=r.length,s=n.length,u=0;u<s;u++){var l=n[u];if(!(a&&a.filter&&l.query!=null&&!a.filter(t,l.query)))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,r[0]);break;case 2:l.h.call(l.ctx,r[0],r[1]);break;default:l.h.apply(l.ctx,r);break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},e.prototype.triggerWithContext=function(t){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[t],a=this._$eventProcessor;if(n)for(var o=r.length,s=r[o-1],u=n.length,l=0;l<u;l++){var c=n[l];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})(),yU=Math.log(2);function Fp(e,t,r,i,n,a){var o=i+"-"+n,s=e.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var u=Math.round(Math.log((1<<s)-1&~n)/yU);return e[r][u]}for(var l=i|1<<r,c=r+1;i&1<<c;)c++;for(var f=0,d=0,h=0;d<s;d++){var v=1<<d;v&n||(f+=(h%2?-1:1)*e[r][d]*Fp(e,t-1,c,l,n|v,a),h++)}return a[o]=f,f}function ES(e,t){var r=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],i={},n=Fp(r,8,0,0,0,i);if(n!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*Fp(r,7,o===0?1:0,1<<o,1<<s,i)/n*t[o];return function(u,l,c){var f=l*a[6]+c*a[7]+1;u[0]=(l*a[0]+c*a[1]+a[2])/f,u[1]=(l*a[3]+c*a[4]+a[5])/f}}}var lf="___zrEVENTSAVED",Kh=[];function _U(e,t,r,i,n){return jp(Kh,t,i,n,!0)&&jp(e,r,Kh[0],Kh[1])}function bU(e,t){e&&r(e),t&&r(t);function r(i){var n=i[lf];n&&(n.clearMarkers&&n.clearMarkers(),delete i[lf])}}function jp(e,t,r,i,n){if(t.getBoundingClientRect&&pe.domSupported&&!eA(t)){var a=t[lf]||(t[lf]={}),o=SU(t,a),s=wU(o,a,n);if(s)return s(e,r,i),!0}return!1}function SU(e,t){var r=t.markers;if(r)return r;r=t.markers=[];for(var i=["left","right"],n=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,u=a%2,l=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[u]+":0",n[l]+":0",i[1-u]+":auto",n[1-l]+":auto",""].join("!important;"),e.appendChild(o),r.push(o)}return t.clearMarkers=function(){C(r,function(c){c.parentNode&&c.parentNode.removeChild(c)})},r}function wU(e,t,r){for(var i=r?"invTrans":"trans",n=t[i],a=t.srcCoords,o=[],s=[],u=!0,l=0;l<4;l++){var c=e[l].getBoundingClientRect(),f=2*l,d=c.left,h=c.top;o.push(d,h),u=u&&a&&d===a[f]&&h===a[f+1],s.push(e[l].offsetLeft,e[l].offsetTop)}return u&&n?n:(t.srcCoords=o,t[i]=r?ES(s,o):ES(o,s))}function eA(e){return e.nodeName.toUpperCase()==="CANVAS"}var xU=/([&<>"\'])/g,TU={"&":"&amp;","<":"&lt;",">":"&gt;",\'"\':"&quot;","\'":"&#39;"};function zt(e){return e==null?"":(e+"").replace(xU,function(t,r){return TU[r]})}var kU=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Jh=[],IU=pe.browser.firefox&&+pe.browser.version.split(".")[0]<39;function Zp(e,t,r,i){return r=r||{},i?zS(e,t,r):IU&&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):zS(e,t,r),r}function zS(e,t,r){if(pe.domSupported&&e.getBoundingClientRect){var i=t.clientX,n=t.clientY;if(eA(e)){var a=e.getBoundingClientRect();r.zrX=i-a.left,r.zrY=n-a.top;return}else if(jp(Jh,e,i,n)){r.zrX=Jh[0],r.zrY=Jh[1];return}}r.zrX=r.zrY=0}function m0(e){return e||window.event}function lr(e,t,r){if(t=m0(t),t.zrX!=null)return t;var i=t.type,n=i&&i.indexOf("touch")>=0;if(n){var o=i!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&Zp(e,o,t,r)}else{Zp(e,t,t,r);var a=$U(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&kU.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function $U(e){var t=e.wheelDelta;if(t)return t;var r=e.deltaX,i=e.deltaY;if(r==null||i==null)return t;var n=Math.abs(i!==0?i:r),a=i>0?-1:i<0?1:r>0?-1:1;return 3*n*a}function DU(e,t,r,i){e.addEventListener(t,r,i)}function CU(e,t,r,i){e.removeEventListener(t,r,i)}var tA=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},AU=(function(){function e(){this._track=[]}return e.prototype.recognize=function(t,r,i){return this._doTrack(t,r,i),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,r,i){var n=t.touches;if(n){for(var a={points:[],touches:[],target:r,event:t},o=0,s=n.length;o<s;o++){var u=n[o],l=Zp(i,u,{});a.points.push([l.zrX,l.zrY]),a.touches.push(u)}this._track.push(a)}},e.prototype._recognize=function(t){for(var r in Qh)if(Qh.hasOwnProperty(r)){var i=Qh[r](this._track,t);if(i)return i}},e})();function RS(e){var t=e[1][0]-e[0][0],r=e[1][1]-e[0][1];return Math.sqrt(t*t+r*r)}function PU(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var Qh={pinch:function(e,t){var r=e.length;if(r){var i=(e[r-1]||{}).points,n=(e[r-2]||{}).points||i;if(n&&n.length>1&&i&&i.length>1){var a=RS(i)/RS(n);!isFinite(a)&&(a=1),t.pinchScale=a;var o=PU(i);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function nn(){return[1,0,0,1,0,0]}function bl(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function y0(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 Cs(e,t,r){var i=t[0]*r[0]+t[2]*r[1],n=t[1]*r[0]+t[3]*r[1],a=t[0]*r[2]+t[2]*r[3],o=t[1]*r[2]+t[3]*r[3],s=t[0]*r[4]+t[2]*r[5]+t[4],u=t[1]*r[4]+t[3]*r[5]+t[5];return e[0]=i,e[1]=n,e[2]=a,e[3]=o,e[4]=s,e[5]=u,e}function Vp(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 _0(e,t,r,i){i===void 0&&(i=[0,0]);var n=t[0],a=t[2],o=t[4],s=t[1],u=t[3],l=t[5],c=Math.sin(r),f=Math.cos(r);return e[0]=n*f+s*c,e[1]=-n*c+s*f,e[2]=a*f+u*c,e[3]=-a*c+f*u,e[4]=f*(o-i[0])+c*(l-i[1])+i[0],e[5]=f*(l-i[1])-c*(o-i[0])+i[1],e}function MU(e,t,r){var i=r[0],n=r[1];return e[0]=t[0]*i,e[1]=t[1]*n,e[2]=t[2]*i,e[3]=t[3]*n,e[4]=t[4]*i,e[5]=t[5]*n,e}function Bo(e,t){var r=t[0],i=t[2],n=t[4],a=t[1],o=t[3],s=t[5],u=r*o-a*i;return u?(u=1/u,e[0]=o*u,e[1]=-a*u,e[2]=-i*u,e[3]=r*u,e[4]=(i*s-o*n)*u,e[5]=(a*n-r*s)*u,e):null}var de=(function(){function e(t,r){this.x=t||0,this.y=r||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,r){return this.x=t,this.y=r,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,r){this.x+=t.x*r,this.y+=t.y*r},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var r=this.x-t.x,i=this.y-t.y;return Math.sqrt(r*r+i*i)},e.prototype.distanceSquare=function(t){var r=this.x-t.x,i=this.y-t.y;return r*r+i*i},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var r=this.x,i=this.y;return this.x=t[0]*r+t[2]*i+t[4],this.y=t[1]*r+t[3]*i+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,r,i){t.x=r,t.y=i},e.copy=function(t,r){t.x=r.x,t.y=r.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,r){return t.x*r.x+t.y*r.y},e.add=function(t,r,i){t.x=r.x+i.x,t.y=r.y+i.y},e.sub=function(t,r,i){t.x=r.x-i.x,t.y=r.y-i.y},e.scale=function(t,r,i){t.x=r.x*i,t.y=r.y*i},e.scaleAndAdd=function(t,r,i,n){t.x=r.x+i.x*n,t.y=r.y+i.y*n},e.lerp=function(t,r,i,n){var a=1-n;t.x=a*r.x+n*i.x,t.y=a*r.y+n*i.y},e})(),Fi=Math.min,Fa=Math.max,Gp=Math.abs,NS=["x","y"],LU=["width","height"],ci=new de,fi=new de,di=new de,hi=new de,Kt=rA(),ys=Kt.minTv,Hp=Kt.maxTv,As=[0,0],fe=(function(){function e(t,r,i,n){ev(this,t,r,i,n)}return e.set=function(t,r,i,n,a){return n<0&&(r=r+n,n=-n),a<0&&(i=i+a,a=-a),t.x=r,t.y=i,t.width=n,t.height=a,t},e.prototype.union=function(t){var r=Fi(t.x,this.x),i=Fi(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Fa(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Fa(t.y+t.height,this.y+this.height)-i:this.height=t.height,this.x=r,this.y=i},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){return OU(nn(),this,t)},e.prototype.intersect=function(t,r,i){return e.intersect(this,t,r,i)},e.intersect=function(t,r,i,n){i&&de.set(i,0,0);var a=n&&n.outIntersectRect||null,o=n&&n.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!t||!r)return!1;t instanceof e||(t=ev(EU,t.x,t.y,t.width,t.height)),r instanceof e||(r=ev(zU,r.x,r.y,r.width,r.height));var s=!!i;Kt.reset(n,s);var u=Kt.touchThreshold,l=t.x+u,c=t.x+t.width-u,f=t.y+u,d=t.y+t.height-u,h=r.x+u,v=r.x+r.width-u,p=r.y+u,g=r.y+r.height-u;if(l>c||f>d||h>v||p>g)return!1;var m=!(c<h||v<l||d<p||g<f);return(s||a)&&(As[0]=1/0,As[1]=0,BS(l,c,h,v,0,s,a,o),BS(f,d,p,g,1,s,a,o),s&&de.copy(i,m?Kt.useDir?Kt.dirMinTv:ys:Hp)),m},e.contain=function(t,r,i){return r>=t.x&&r<=t.x+t.width&&i>=t.y&&i<=t.y+t.height},e.prototype.contain=function(t,r){return e.contain(this,t,r)},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){US(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?t.x:0,t?t.y:0,t?t.width:0,t?t.height:0)},e.copy=function(t,r){return t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height,t},e.applyTransform=function(t,r,i){if(!i){t!==r&&US(t,r);return}if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var n=i[0],a=i[3],o=i[4],s=i[5];t.x=r.x*n+o,t.y=r.y*a+s,t.width=r.width*n,t.height=r.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}ci.x=di.x=r.x,ci.y=hi.y=r.y,fi.x=hi.x=r.x+r.width,fi.y=di.y=r.y+r.height,ci.transform(i),hi.transform(i),fi.transform(i),di.transform(i),t.x=Fi(ci.x,fi.x,di.x,hi.x),t.y=Fi(ci.y,fi.y,di.y,hi.y);var u=Fa(ci.x,fi.x,di.x,hi.x),l=Fa(ci.y,fi.y,di.y,hi.y);t.width=u-t.x,t.height=l-t.y},e.calculateTransform=function(t,r,i){var n=i.width/r.width,a=i.height/r.height;return t=bl(t||[]),Vp(t,t,qh(tv,-r.x,-r.y)),MU(t,t,qh(tv,n,a)),Vp(t,t,qh(tv,i.x,i.y)),t},e})();fe.create;var ev=fe.set,US=fe.copy,OU=fe.calculateTransform;fe.applyTransform;fe.contain;var EU=new fe(0,0,0,0),zU=new fe(0,0,0,0),tv=[];function BS(e,t,r,i,n,a,o,s){var u=Gp(t-r),l=Gp(i-e),c=Fi(u,l),f=NS[n],d=NS[1-n],h=LU[n];t<r||i<e?u<l?(a&&(Hp[f]=-u),s&&(o[f]=t,o[h]=0)):(a&&(Hp[f]=l),s&&(o[f]=e,o[h]=0)):(o&&(o[f]=Fa(e,r),o[h]=Fi(t,i)-o[f]),a&&(c<As[0]||Kt.useDir)&&(As[0]=Fi(c,As[0]),(u<l||!Kt.bidirectional)&&(ys[f]=u,ys[d]=0,Kt.useDir&&Kt.calcDirMTV()),(u>=l||!Kt.bidirectional)&&(ys[f]=-l,ys[d]=0,Kt.useDir&&Kt.calcDirMTV())))}function rA(){var e=0,t=new de,r=new de,i={minTv:new de,maxTv:new de,useDir:!1,dirMinTv:new de,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(a,o){i.touchThreshold=0,a&&a.touchThreshold!=null&&(i.touchThreshold=Fa(0,a.touchThreshold)),i.negativeSize=!1,o&&(i.minTv.set(1/0,1/0),i.maxTv.set(0,0),i.useDir=!1,a&&a.direction!=null&&(i.useDir=!0,i.dirMinTv.copy(i.minTv),r.copy(i.minTv),e=a.direction,i.bidirectional=a.bidirectional==null||!!a.bidirectional,i.bidirectional||t.set(Math.cos(e),Math.sin(e))))},calcDirMTV:function(){var a=i.minTv,o=i.dirMinTv,s=a.y*a.y+a.x*a.x,u=Math.sin(e),l=Math.cos(e),c=u*a.y+l*a.x;if(n(c)){n(a.x)&&n(a.y)&&o.set(0,0);return}if(r.x=s*l/c,r.y=s*u/c,n(r.x)&&n(r.y)){o.set(0,0);return}(i.bidirectional||t.dot(r)>0)&&r.len()<o.len()&&o.copy(r)}};function n(a){return Gp(a)<1e-10}return i}var nA="silent";function RU(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:NU}}function NU(){tA(this.event)}var UU=(function(e){H(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})(Mn),Ko=(function(){function e(t,r){this.x=t,this.y=r}return e})(),BU=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],rv=new fe(0,0,0,0),iA=(function(e){H(t,e);function t(r,i,n,a,o){var s=e.call(this)||this;return s._hovered=new Ko(0,0),s.storage=r,s.painter=i,s.painterRoot=a,s._pointerSize=o,n=n||new UU,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new mU(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(C(BU,function(i){r.on&&r.on(i,this[i],this)},this),r.handler=this),this.proxy=r},t.prototype.mousemove=function(r){var i=r.zrX,n=r.zrY,a=aA(this,i,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var u=this._hovered=a?new Ko(i,n):this.findHover(i,n),l=u.target,c=this.proxy;c.setCursor&&c.setCursor(l?l.cursor:"default"),s&&l!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(u,"mousemove",r),l&&l!==s&&this.dispatchToElement(u,"mouseover",r)},t.prototype.mouseout=function(r){var i=r.zrEventControl;i!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),i!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},t.prototype.resize=function(){this._hovered=new Ko(0,0)},t.prototype.dispatch=function(r,i){var n=this[r];n&&n.call(this,i)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(r){var i=this.proxy;i.setCursor&&i.setCursor(r)},t.prototype.dispatchToElement=function(r,i,n){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+i,s=RU(i,r,n);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(i,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(i,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(u){typeof u[o]=="function"&&u[o].call(u,s),u.trigger&&u.trigger(i,s)}))}},t.prototype.findHover=function(r,i,n){var a=this.storage.getDisplayList(),o=new Ko(r,i);if(FS(a,o,r,i,n),this._pointerSize&&!o.target){for(var s=[],u=this._pointerSize,l=u/2,c=new fe(r-l,i-l,u,u),f=a.length-1;f>=0;f--){var d=a[f];d!==n&&!d.ignore&&!d.ignoreCoarsePointer&&(!d.parent||!d.parent.ignoreCoarsePointer)&&(rv.copy(d.getBoundingRect()),d.transform&&rv.applyTransform(d.transform),rv.intersect(c)&&s.push(d))}if(s.length)for(var h=4,v=Math.PI/12,p=Math.PI*2,g=0;g<l;g+=h)for(var m=0;m<p;m+=v){var y=r+g*Math.cos(m),_=i+g*Math.sin(m);if(FS(s,o,y,_,n),o.target)return o}}return o},t.prototype.processGesture=function(r,i){this._gestureMgr||(this._gestureMgr=new AU);var n=this._gestureMgr;i==="start"&&n.clear();var a=n.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(i==="end"&&n.clear(),a){var o=a.type;r.gestureEvent=o;var s=new Ko;s.target=a.target,this.dispatchToElement(s,o,a.event)}},t})(Mn);C(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){iA.prototype[e]=function(t){var r=t.zrX,i=t.zrY,n=aA(this,r,i),a,o;if((e!=="mouseup"||!n)&&(a=this.findHover(r,i),o=a.target),e==="mousedown")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(e==="mouseup")this._upEl=o;else if(e==="click"){if(this._downEl!==this._upEl||!this._downPoint||Bp(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function FU(e,t,r){if(e[e.rectHover?"rectContain":"contain"](t,r)){for(var i=e,n=void 0,a=!1;i;){if(i.ignoreClip&&(a=!0),!a){var o=i.getClipPath();if(o&&!o.contain(t,r))return!1}i.silent&&(n=!0);var s=i.__hostTarget;i=s?i.ignoreHostSilent?null:s:i.parent}return n?nA:!0}return!1}function FS(e,t,r,i,n){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==n&&!o.ignore&&(s=FU(o,r,i))&&(!t.topTarget&&(t.topTarget=o),s!==nA)){t.target=o;break}}}function aA(e,t,r){var i=e.painter;return t<0||t>i.getWidth()||r<0||r>i.getHeight()}var oA=32,Jo=7;function jU(e){for(var t=0;e>=oA;)t|=e&1,e>>=1;return e+t}function jS(e,t,r,i){var n=t+1;if(n===r)return 1;if(i(e[n++],e[t])<0){for(;n<r&&i(e[n],e[n-1])<0;)n++;ZU(e,t,n)}else for(;n<r&&i(e[n],e[n-1])>=0;)n++;return n-t}function ZU(e,t,r){for(r--;t<r;){var i=e[t];e[t++]=e[r],e[r--]=i}}function ZS(e,t,r,i,n){for(i===t&&i++;i<r;i++){for(var a=e[i],o=t,s=i,u;o<s;)u=o+s>>>1,n(a,e[u])<0?s=u:o=u+1;var l=i-o;switch(l){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;l>0;)e[o+l]=e[o+l-1],l--}e[o]=a}}function nv(e,t,r,i,n,a){var o=0,s=0,u=1;if(a(e,t[r+n])>0){for(s=i-n;u<s&&a(e,t[r+n+u])>0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s),o+=n,u+=n}else{for(s=n+1;u<s&&a(e,t[r+n-u])<=0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s);var l=o;o=n-u,u=n-l}for(o++;o<u;){var c=o+(u-o>>>1);a(e,t[r+c])>0?o=c+1:u=c}return u}function iv(e,t,r,i,n,a){var o=0,s=0,u=1;if(a(e,t[r+n])<0){for(s=n+1;u<s&&a(e,t[r+n-u])<0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s);var l=o;o=n-u,u=n-l}else{for(s=i-n;u<s&&a(e,t[r+n+u])>=0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s),o+=n,u+=n}for(o++;o<u;){var c=o+(u-o>>>1);a(e,t[r+c])<0?u=c:o=c+1}return u}function VU(e,t){var r=Jo,i,n,a=0,o=[];i=[],n=[];function s(h,v){i[a]=h,n[a]=v,a+=1}function u(){for(;a>1;){var h=a-2;if(h>=1&&n[h-1]<=n[h]+n[h+1]||h>=2&&n[h-2]<=n[h]+n[h-1])n[h-1]<n[h+1]&&h--;else if(n[h]>n[h+1])break;c(h)}}function l(){for(;a>1;){var h=a-2;h>0&&n[h-1]<n[h+1]&&h--,c(h)}}function c(h){var v=i[h],p=n[h],g=i[h+1],m=n[h+1];n[h]=p+m,h===a-3&&(i[h+1]=i[h+2],n[h+1]=n[h+2]),a--;var y=iv(e[g],e,v,p,0,t);v+=y,p-=y,p!==0&&(m=nv(e[v+p-1],e,g,m,m-1,t),m!==0&&(p<=m?f(v,p,g,m):d(v,p,g,m)))}function f(h,v,p,g){var m=0;for(m=0;m<v;m++)o[m]=e[h+m];var y=0,_=p,b=h;if(e[b++]=e[_++],--g===0){for(m=0;m<v;m++)e[b+m]=o[y+m];return}if(v===1){for(m=0;m<g;m++)e[b+m]=e[_+m];e[b+g]=o[y];return}for(var S=r,w,x,T;;){w=0,x=0,T=!1;do if(t(e[_],o[y])<0){if(e[b++]=e[_++],x++,w=0,--g===0){T=!0;break}}else if(e[b++]=o[y++],w++,x=0,--v===1){T=!0;break}while((w|x)<S);if(T)break;do{if(w=iv(e[_],o,y,v,0,t),w!==0){for(m=0;m<w;m++)e[b+m]=o[y+m];if(b+=w,y+=w,v-=w,v<=1){T=!0;break}}if(e[b++]=e[_++],--g===0){T=!0;break}if(x=nv(o[y],e,_,g,0,t),x!==0){for(m=0;m<x;m++)e[b+m]=e[_+m];if(b+=x,_+=x,g-=x,g===0){T=!0;break}}if(e[b++]=o[y++],--v===1){T=!0;break}S--}while(w>=Jo||x>=Jo);if(T)break;S<0&&(S=0),S+=2}if(r=S,r<1&&(r=1),v===1){for(m=0;m<g;m++)e[b+m]=e[_+m];e[b+g]=o[y]}else{if(v===0)throw new Error;for(m=0;m<v;m++)e[b+m]=o[y+m]}}function d(h,v,p,g){var m=0;for(m=0;m<g;m++)o[m]=e[p+m];var y=h+v-1,_=g-1,b=p+g-1,S=0,w=0;if(e[b--]=e[y--],--v===0){for(S=b-(g-1),m=0;m<g;m++)e[S+m]=o[m];return}if(g===1){for(b-=v,y-=v,w=b+1,S=y+1,m=v-1;m>=0;m--)e[w+m]=e[S+m];e[b]=o[_];return}for(var x=r;;){var T=0,k=0,I=!1;do if(t(o[_],e[y])<0){if(e[b--]=e[y--],T++,k=0,--v===0){I=!0;break}}else if(e[b--]=o[_--],k++,T=0,--g===1){I=!0;break}while((T|k)<x);if(I)break;do{if(T=v-iv(o[_],e,h,v,v-1,t),T!==0){for(b-=T,y-=T,v-=T,w=b+1,S=y+1,m=T-1;m>=0;m--)e[w+m]=e[S+m];if(v===0){I=!0;break}}if(e[b--]=o[_--],--g===1){I=!0;break}if(k=g-nv(e[y],o,0,g,g-1,t),k!==0){for(b-=k,_-=k,g-=k,w=b+1,S=_+1,m=0;m<k;m++)e[w+m]=o[S+m];if(g<=1){I=!0;break}}if(e[b--]=e[y--],--v===0){I=!0;break}x--}while(T>=Jo||k>=Jo);if(I)break;x<0&&(x=0),x+=2}if(r=x,r<1&&(r=1),g===1){for(b-=v,y-=v,w=b+1,S=y+1,m=v-1;m>=0;m--)e[w+m]=e[S+m];e[b]=o[_]}else{if(g===0)throw new Error;for(S=b-(g-1),m=0;m<g;m++)e[S+m]=o[m]}}return{mergeRuns:u,forceMergeRuns:l,pushRun:s}}function zc(e,t,r,i){r||(r=0),i||(i=e.length);var n=i-r;if(!(n<2)){var a=0;if(n<oA){a=jS(e,r,i,t),ZS(e,r,i,r+a,t);return}var o=VU(e,t),s=jU(n);do{if(a=jS(e,r,i,t),a<s){var u=n;u>s&&(u=s),ZS(e,r,r+u,r+a,t),a=u}o.pushRun(r,a),o.mergeRuns(),n-=a,r+=a}while(n!==0);o.forceMergeRuns()}}var Lr=1,_s=2,za=4,VS=!1;function av(){VS||(VS=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function GS(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var GU=(function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=GS}return e.prototype.traverse=function(t,r){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(t,r)},e.prototype.getDisplayList=function(t,r){r=r||!1;var i=this._displayList;return(t||!i.length)&&this.updateDisplayList(r),i},e.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var r=this._roots,i=this._displayList,n=0,a=r.length;n<a;n++)this._updateAndAddDisplayable(r[n],null,t);i.length=this._displayListLen,zc(i,GS)},e.prototype._updateAndAddDisplayable=function(t,r,i){if(!(t.ignore&&!i)){t.beforeUpdate(),t.update(),t.afterUpdate();var n=t.getClipPath(),a=r&&r.length,o=0,s=t.__clipPaths;if(!t.ignoreClip&&(a||n)){if(s||(s=t.__clipPaths=[]),a)for(var u=0;u<r.length;u++)s[o++]=r[u];for(var l=n,c=t;l;)l.parent=c,l.updateTransform(),s[o++]=l,c=l,l=l.getClipPath()}if(s&&(s.length=o),t.childrenRef){for(var f=t.childrenRef(),d=0;d<f.length;d++){var h=f[d];t.__dirty&&(h.__dirty|=Lr),this._updateAndAddDisplayable(h,s,i)}t.__dirty=0}else{var v=t;isNaN(v.z)&&(av(),v.z=0),isNaN(v.z2)&&(av(),v.z2=0),isNaN(v.zlevel)&&(av(),v.zlevel=0),this._displayList[this._displayListLen++]=v}var p=t.getDecalElement&&t.getDecalElement();p&&this._updateAndAddDisplayable(p,s,i);var g=t.getTextGuideLine();g&&this._updateAndAddDisplayable(g,s,i);var m=t.getTextContent();m&&this._updateAndAddDisplayable(m,s,i)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var r=0,i=t.length;r<i;r++)this.delRoot(t[r]);return}var n=xe(this._roots,t);n>=0&&this._roots.splice(n,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e})(),Wp;Wp=pe.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var Ps={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,r=.1,i=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=i/4):t=i*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)))},elasticOut:function(e){var t,r=.1,i=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=i/4):t=i*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/i)+1)},elasticInOut:function(e){var t,r=.1,i=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=i/4):t=i*Math.asin(1/r)/(2*Math.PI),(e*=2)<1?-.5*(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)):r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-Ps.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?Ps.bounceIn(e*2)*.5:Ps.bounceOut(e*2-1)*.5+.5}},Nl=Math.pow,qn=Math.sqrt,cf=1e-8,sA=1e-4,HS=qn(3),Ul=1/3,Kr=Uo(),dr=Uo(),Ha=Uo();function Gn(e){return e>-cf&&e<cf}function uA(e){return e>cf||e<-cf}function dt(e,t,r,i,n){var a=1-n;return a*a*(a*e+3*n*t)+n*n*(n*i+3*a*r)}function WS(e,t,r,i,n){var a=1-n;return 3*(((t-e)*a+2*(r-t)*n)*a+(i-r)*n*n)}function ff(e,t,r,i,n,a){var o=i+3*(t-r)-e,s=3*(r-t*2+e),u=3*(t-e),l=e-n,c=s*s-3*o*u,f=s*u-9*o*l,d=u*u-3*s*l,h=0;if(Gn(c)&&Gn(f))if(Gn(s))a[0]=0;else{var v=-u/s;v>=0&&v<=1&&(a[h++]=v)}else{var p=f*f-4*c*d;if(Gn(p)){var g=f/c,v=-s/o+g,m=-g/2;v>=0&&v<=1&&(a[h++]=v),m>=0&&m<=1&&(a[h++]=m)}else if(p>0){var y=qn(p),_=c*s+1.5*o*(-f+y),b=c*s+1.5*o*(-f-y);_<0?_=-Nl(-_,Ul):_=Nl(_,Ul),b<0?b=-Nl(-b,Ul):b=Nl(b,Ul);var v=(-s-(_+b))/(3*o);v>=0&&v<=1&&(a[h++]=v)}else{var S=(2*c*s-3*o*f)/(2*qn(c*c*c)),w=Math.acos(S)/3,x=qn(c),T=Math.cos(w),v=(-s-2*x*T)/(3*o),m=(-s+x*(T+HS*Math.sin(w)))/(3*o),k=(-s+x*(T-HS*Math.sin(w)))/(3*o);v>=0&&v<=1&&(a[h++]=v),m>=0&&m<=1&&(a[h++]=m),k>=0&&k<=1&&(a[h++]=k)}}return h}function lA(e,t,r,i,n){var a=6*r-12*t+6*e,o=9*t+3*i-3*e-9*r,s=3*t-3*e,u=0;if(Gn(o)){if(uA(a)){var l=-s/a;l>=0&&l<=1&&(n[u++]=l)}}else{var c=a*a-4*o*s;if(Gn(c))n[0]=-a/(2*o);else if(c>0){var f=qn(c),l=(-a+f)/(2*o),d=(-a-f)/(2*o);l>=0&&l<=1&&(n[u++]=l),d>=0&&d<=1&&(n[u++]=d)}}return u}function df(e,t,r,i,n,a){var o=(t-e)*n+e,s=(r-t)*n+t,u=(i-r)*n+r,l=(s-o)*n+o,c=(u-s)*n+s,f=(c-l)*n+l;a[0]=e,a[1]=o,a[2]=l,a[3]=f,a[4]=f,a[5]=c,a[6]=u,a[7]=i}function cA(e,t,r,i,n,a,o,s,u,l,c){var f,d=.005,h=1/0,v,p,g,m;Kr[0]=u,Kr[1]=l;for(var y=0;y<1;y+=.05)dr[0]=dt(e,r,n,o,y),dr[1]=dt(t,i,a,s,y),g=Ga(Kr,dr),g<h&&(f=y,h=g);h=1/0;for(var _=0;_<32&&!(d<sA);_++)v=f-d,p=f+d,dr[0]=dt(e,r,n,o,v),dr[1]=dt(t,i,a,s,v),g=Ga(dr,Kr),v>=0&&g<h?(f=v,h=g):(Ha[0]=dt(e,r,n,o,p),Ha[1]=dt(t,i,a,s,p),m=Ga(Ha,Kr),p<=1&&m<h?(f=p,h=m):d*=.5);return c&&(c[0]=dt(e,r,n,o,f),c[1]=dt(t,i,a,s,f)),qn(h)}function HU(e,t,r,i,n,a,o,s,u){for(var l=e,c=t,f=0,d=1/u,h=1;h<=u;h++){var v=h*d,p=dt(e,r,n,o,v),g=dt(t,i,a,s,v),m=p-l,y=g-c;f+=Math.sqrt(m*m+y*y),l=p,c=g}return f}function $t(e,t,r,i){var n=1-i;return n*(n*e+2*i*t)+i*i*r}function qS(e,t,r,i){return 2*((1-i)*(t-e)+i*(r-t))}function WU(e,t,r,i,n){var a=e-2*t+r,o=2*(t-e),s=e-i,u=0;if(Gn(a)){if(uA(o)){var l=-s/o;l>=0&&l<=1&&(n[u++]=l)}}else{var c=o*o-4*a*s;if(Gn(c)){var l=-o/(2*a);l>=0&&l<=1&&(n[u++]=l)}else if(c>0){var f=qn(c),l=(-o+f)/(2*a),d=(-o-f)/(2*a);l>=0&&l<=1&&(n[u++]=l),d>=0&&d<=1&&(n[u++]=d)}}return u}function fA(e,t,r){var i=e+r-2*t;return i===0?.5:(e-t)/i}function hf(e,t,r,i,n){var a=(t-e)*i+e,o=(r-t)*i+t,s=(o-a)*i+a;n[0]=e,n[1]=a,n[2]=s,n[3]=s,n[4]=o,n[5]=r}function dA(e,t,r,i,n,a,o,s,u){var l,c=.005,f=1/0;Kr[0]=o,Kr[1]=s;for(var d=0;d<1;d+=.05){dr[0]=$t(e,r,n,d),dr[1]=$t(t,i,a,d);var h=Ga(Kr,dr);h<f&&(l=d,f=h)}f=1/0;for(var v=0;v<32&&!(c<sA);v++){var p=l-c,g=l+c;dr[0]=$t(e,r,n,p),dr[1]=$t(t,i,a,p);var h=Ga(dr,Kr);if(p>=0&&h<f)l=p,f=h;else{Ha[0]=$t(e,r,n,g),Ha[1]=$t(t,i,a,g);var m=Ga(Ha,Kr);g<=1&&m<f?(l=g,f=m):c*=.5}}return u&&(u[0]=$t(e,r,n,l),u[1]=$t(t,i,a,l)),qn(f)}function qU(e,t,r,i,n,a,o){for(var s=e,u=t,l=0,c=1/o,f=1;f<=o;f++){var d=f*c,h=$t(e,r,n,d),v=$t(t,i,a,d),p=h-s,g=v-u;l+=Math.sqrt(p*p+g*g),s=h,u=v}return l}var YU=/cubic-bezier\\(([0-9,\\.e ]+)\\)/;function b0(e){var t=e&&YU.exec(e);if(t){var r=t[1].split(","),i=+Qr(r[0]),n=+Qr(r[1]),a=+Qr(r[2]),o=+Qr(r[3]);if(isNaN(i+n+a+o))return;var s=[];return function(u){return u<=0?0:u>=1?1:ff(0,i,a,1,u,s)&&dt(0,n,o,1,s[0])}}}var XU=(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||bt,this.ondestroy=t.ondestroy||bt,this.onrestart=t.onrestart||bt,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,r){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var i=this._life,n=t-this._startTime-this._pausedTime,a=n/i;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var u=n%i;this._startTime=t-u,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(t){this.easing=t,this.easingFunc=le(t)?t:Ps[t]||b0(t)},e})(),hA=(function(){function e(t){this.value=t}return e})(),KU=(function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new hA(t);return this.insertEntry(r),r},e.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},e.prototype.remove=function(t){var r=t.prev,i=t.next;r?r.next=i:this.head=i,i?i.prev=r:this.tail=r,t.next=t.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e})(),ho=(function(){function e(t){this._list=new KU,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,r){var i=this._list,n=this._map,a=null;if(n[t]==null){var o=i.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var u=i.head;i.remove(u),delete n[u.key],a=u.value,this._lastRemovedEntry=u}s?s.value=r:s=new hA(r),s.key=t,i.insertEntry(s),n[t]=s}return a},e.prototype.get=function(t){var r=this._map[t],i=this._list;if(r!=null)return r!==i.tail&&(i.remove(r),i.insertEntry(r)),r.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e})(),YS={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function Yn(e){return e=Math.round(e),e<0?0:e>255?255:e}function qp(e){return e<0?0:e>1?1:e}function ov(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Yn(parseFloat(t)/100*255):Yn(parseInt(t,10))}function Hi(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?qp(parseFloat(t)/100):qp(parseFloat(t))}function sv(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 Bl(e,t,r){return e+(t-e)*r}function sr(e,t,r,i,n){return e[0]=t,e[1]=r,e[2]=i,e[3]=n,e}function Yp(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var vA=new ho(20),Fl=null;function Sa(e,t){Fl&&Yp(Fl,t),Fl=vA.put(e,Fl||t.slice())}function zr(e,t){if(e){t=t||[];var r=vA.get(e);if(r)return Yp(t,r);e=e+"";var i=e.replace(/ /g,"").toLowerCase();if(i in YS)return Yp(t,YS[i]),Sa(e,t),t;var n=i.length;if(i.charAt(0)==="#"){if(n===4||n===5){var a=parseInt(i.slice(1,4),16);if(!(a>=0&&a<=4095)){sr(t,0,0,0,1);return}return sr(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,n===5?parseInt(i.slice(4),16)/15:1),Sa(e,t),t}else if(n===7||n===9){var a=parseInt(i.slice(1,7),16);if(!(a>=0&&a<=16777215)){sr(t,0,0,0,1);return}return sr(t,(a&16711680)>>16,(a&65280)>>8,a&255,n===9?parseInt(i.slice(7),16)/255:1),Sa(e,t),t}return}var o=i.indexOf("("),s=i.indexOf(")");if(o!==-1&&s+1===n){var u=i.substr(0,o),l=i.substr(o+1,s-(o+1)).split(","),c=1;switch(u){case"rgba":if(l.length!==4)return l.length===3?sr(t,+l[0],+l[1],+l[2],1):sr(t,0,0,0,1);c=Hi(l.pop());case"rgb":if(l.length>=3)return sr(t,ov(l[0]),ov(l[1]),ov(l[2]),l.length===3?c:Hi(l[3])),Sa(e,t),t;sr(t,0,0,0,1);return;case"hsla":if(l.length!==4){sr(t,0,0,0,1);return}return l[3]=Hi(l[3]),Xp(l,t),Sa(e,t),t;case"hsl":if(l.length!==3){sr(t,0,0,0,1);return}return Xp(l,t),Sa(e,t),t;default:return}}sr(t,0,0,0,1)}}function Xp(e,t){var r=(parseFloat(e[0])%360+360)%360/360,i=Hi(e[1]),n=Hi(e[2]),a=n<=.5?n*(i+1):n+i-n*i,o=n*2-a;return t=t||[],sr(t,Yn(sv(o,a,r+1/3)*255),Yn(sv(o,a,r)*255),Yn(sv(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function JU(e){if(e){var t=e[0]/255,r=e[1]/255,i=e[2]/255,n=Math.min(t,r,i),a=Math.max(t,r,i),o=a-n,s=(a+n)/2,u,l;if(o===0)u=0,l=0;else{s<.5?l=o/(a+n):l=o/(2-a-n);var c=((a-t)/6+o/2)/o,f=((a-r)/6+o/2)/o,d=((a-i)/6+o/2)/o;t===a?u=d-f:r===a?u=1/3+c-d:i===a&&(u=2/3+f-c),u<0&&(u+=1),u>1&&(u-=1)}var h=[u*360,l,s];return e[3]!=null&&h.push(e[3]),h}}function XS(e,t){var r=zr(e);if(r){for(var i=0;i<3;i++)r[i]=r[i]*(1-t)|0,r[i]>255?r[i]=255:r[i]<0&&(r[i]=0);return Sl(r,r.length===4?"rgba":"rgb")}}function QU(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var i=e*(t.length-1),n=Math.floor(i),a=Math.ceil(i),o=zr(t[n]),s=zr(t[a]),u=i-n,l=Sl([Yn(Bl(o[0],s[0],u)),Yn(Bl(o[1],s[1],u)),Yn(Bl(o[2],s[2],u)),qp(Bl(o[3],s[3],u))],"rgba");return r?{color:l,leftIndex:n,rightIndex:a,value:i}:l}}function Kp(e,t,r,i){var n=zr(e);if(e)return n=JU(n),r!=null&&(n[1]=Hi(le(r)?r(n[1]):r)),i!=null&&(n[2]=Hi(le(i)?i(n[2]):i)),Sl(Xp(n),"rgba")}function Sl(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 vf(e,t){var r=zr(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}var KS=new ho(100);function Jp(e){if(te(e)){var t=KS.get(e);return t||(t=XS(e,-.1),KS.put(e,t)),t}else if(h0(e)){var r=V({},e);return r.colorStops=Q(e.colorStops,function(i){return{offset:i.offset,color:XS(i.color,-.1)}}),r}return e}var pf=Math.round;function Ys(e){var t;if(!e||e==="transparent")e="none";else if(typeof e=="string"&&e.indexOf("rgba")>-1){var r=zr(e);r&&(e="rgb("+r[0]+","+r[1]+","+r[2]+")",t=r[3])}return{color:e,opacity:t??1}}var JS=1e-4;function Hn(e){return e<JS&&e>-JS}function jl(e){return pf(e*1e3)/1e3}function Qp(e){return pf(e*1e4)/1e4}function e6(e){return"matrix("+jl(e[0])+","+jl(e[1])+","+jl(e[2])+","+jl(e[3])+","+Qp(e[4])+","+Qp(e[5])+")"}var t6={left:"start",right:"end",center:"middle",middle:"middle"};function r6(e,t,r){return r==="top"?e+=t/2:r==="bottom"&&(e-=t/2),e}function n6(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function i6(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 pA(e){return e&&!!e.image}function a6(e){return e&&!!e.svgElement}function S0(e){return pA(e)||a6(e)}function gA(e){return e.type==="linear"}function mA(e){return e.type==="radial"}function yA(e){return e&&(e.type==="linear"||e.type==="radial")}function dh(e){return"url(#"+e+")"}function _A(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 bA(e){var t=e.x||0,r=e.y||0,i=(e.rotation||0)*Ec,n=J(e.scaleX,1),a=J(e.scaleY,1),o=e.skewX||0,s=e.skewY||0,u=[];return(t||r)&&u.push("translate("+t+"px,"+r+"px)"),i&&u.push("rotate("+i+")"),(n!==1||a!==1)&&u.push("scale("+n+","+a+")"),(o||s)&&u.push("skew("+pf(o*Ec)+"deg, "+pf(s*Ec)+"deg)"),u.join(" ")}var o6=(function(){return typeof Buffer<"u"&&typeof Buffer.from=="function"?function(e){return Buffer.from(e).toString("base64")}:typeof btoa=="function"&&typeof unescape=="function"&&typeof encodeURIComponent=="function"?function(e){return btoa(unescape(encodeURIComponent(e)))}:function(e){return null}})(),eg=Array.prototype.slice;function gn(e,t,r){return(t-e)*r+e}function uv(e,t,r,i){for(var n=t.length,a=0;a<n;a++)e[a]=gn(t[a],r[a],i);return e}function s6(e,t,r,i){for(var n=t.length,a=n&&t[0].length,o=0;o<n;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=gn(t[o][s],r[o][s],i)}return e}function Zl(e,t,r,i){for(var n=t.length,a=0;a<n;a++)e[a]=t[a]+r[a]*i;return e}function QS(e,t,r,i){for(var n=t.length,a=n&&t[0].length,o=0;o<n;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=t[o][s]+r[o][s]*i}return e}function u6(e,t){for(var r=e.length,i=t.length,n=r>i?t:e,a=Math.min(r,i),o=n[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(r,i);s++)n.push({offset:o.offset,color:o.color.slice()})}function l6(e,t,r){var i=e,n=t;if(!(!i.push||!n.push)){var a=i.length,o=n.length;if(a!==o){var s=a>o;if(s)i.length=o;else for(var u=a;u<o;u++)i.push(r===1?n[u]:eg.call(n[u]))}for(var l=i[0]&&i[0].length,u=0;u<i.length;u++)if(r===1)isNaN(i[u])&&(i[u]=n[u]);else for(var c=0;c<l;c++)isNaN(i[u][c])&&(i[u][c]=n[u][c])}}function Rc(e){if(Wt(e)){var t=e.length;if(Wt(e[0])){for(var r=[],i=0;i<t;i++)r.push(eg.call(e[i]));return r}return eg.call(e)}return e}function Nc(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 c6(e){return Wt(e&&e[0])?2:1}var Vl=0,Uc=1,SA=2,bs=3,tg=4,rg=5,ew=6;function tw(e){return e===tg||e===rg}function Gl(e){return e===Uc||e===SA}var Qo=[0,0,0,0],f6=(function(){function e(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,r,i){this._needsSort=!0;var n=this.keyframes,a=n.length,o=!1,s=ew,u=r;if(Wt(r)){var l=c6(r);s=l,(l===1&&!Re(r[0])||l===2&&!Re(r[0][0]))&&(o=!0)}else if(Re(r)&&!Ws(r))s=Vl;else if(te(r))if(!isNaN(+r))s=Vl;else{var c=zr(r);c&&(u=c,s=bs)}else if(h0(r)){var f=V({},u);f.colorStops=Q(r.colorStops,function(h){return{offset:h.offset,color:zr(h.color)}}),gA(r)?s=tg:mA(r)&&(s=rg),u=f}a===0?this.valType=s:(s!==this.valType||s===ew)&&(o=!0),this.discrete=this.discrete||o;var d={time:t,value:u,rawValue:r,percent:0};return i&&(d.easing=i,d.easingFunc=le(i)?i:Ps[i]||b0(i)),n.push(d),d},e.prototype.prepare=function(t,r){var i=this.keyframes;this._needsSort&&i.sort(function(p,g){return p.time-g.time});for(var n=this.valType,a=i.length,o=i[a-1],s=this.discrete,u=Gl(n),l=tw(n),c=0;c<a;c++){var f=i[c],d=f.value,h=o.value;f.percent=f.time/t,s||(u&&c!==a-1?l6(d,h,n):l&&u6(d.colorStops,h.colorStops))}if(!s&&n!==rg&&r&&this.needsAnimate()&&r.needsAnimate()&&n===r.valType&&!r._finished){this._additiveTrack=r;for(var v=i[0].value,c=0;c<a;c++)n===Vl?i[c].additiveValue=i[c].value-v:n===bs?i[c].additiveValue=Zl([],i[c].value,v,-1):Gl(n)&&(i[c].additiveValue=n===Uc?Zl([],i[c].value,v,-1):QS([],i[c].value,v,-1))}},e.prototype.step=function(t,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var i=this._additiveTrack!=null,n=i?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,u=this.propName,l=a===bs,c,f=this._lastFr,d=Math.min,h,v;if(s===1)h=v=o[0];else{if(r<0)c=0;else if(r<this._lastFrP){var p=d(f+1,s-1);for(c=p;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)}v=o[c+1],h=o[c]}if(h&&v){this._lastFr=c,this._lastFrP=r;var g=v.percent-h.percent,m=g===0?1:d((r-h.percent)/g,1);v.easingFunc&&(m=v.easingFunc(m));var y=i?this._additiveValue:l?Qo:t[u];if((Gl(a)||l)&&!y&&(y=this._additiveValue=[]),this.discrete)t[u]=m<1?h.rawValue:v.rawValue;else if(Gl(a))a===Uc?uv(y,h[n],v[n],m):s6(y,h[n],v[n],m);else if(tw(a)){var _=h[n],b=v[n],S=a===tg;t[u]={type:S?"linear":"radial",x:gn(_.x,b.x,m),y:gn(_.y,b.y,m),colorStops:Q(_.colorStops,function(x,T){var k=b.colorStops[T];return{offset:gn(x.offset,k.offset,m),color:Nc(uv([],x.color,k.color,m))}}),global:b.global},S?(t[u].x2=gn(_.x2,b.x2,m),t[u].y2=gn(_.y2,b.y2,m)):t[u].r=gn(_.r,b.r,m)}else if(l)uv(y,h[n],v[n],m),i||(t[u]=Nc(y));else{var w=gn(h[n],v[n],m);i?this._additiveValue=w:t[u]=w}i&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var r=this.valType,i=this.propName,n=this._additiveValue;r===Vl?t[i]=t[i]+n:r===bs?(zr(t[i],Qo),Zl(Qo,Qo,n,1),t[i]=Nc(Qo)):r===Uc?Zl(t[i],t[i],n,1):r===SA&&QS(t[i],t[i],n,1)},e})(),w0=(function(){function e(t,r,i,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=r,r&&n){XC("Can\' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=i}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(t){this._target=t},e.prototype.when=function(t,r,i){return this.whenWithKeys(t,r,Te(r),i)},e.prototype.whenWithKeys=function(t,r,i,n){for(var a=this._tracks,o=0;o<i.length;o++){var s=i[o],u=a[s];if(!u){u=a[s]=new f6(s);var l=void 0,c=this._getAdditiveTrack(s);if(c){var f=c.keyframes,d=f[f.length-1];l=d&&d.value,c.valType===bs&&l&&(l=Nc(l))}else l=this._target[s];if(l==null)continue;t>0&&u.addKeyframe(0,Rc(l),n),this._trackKeys.push(s)}u.addKeyframe(t,Rc(r[s]),n)}return this._maxTime=Math.max(this._maxTime,t),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var r=t.length,i=0;i<r;i++)t[i].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,r=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,r)for(var i=0;i<r.length;i++)r[i].call(this)},e.prototype._setTracksFinished=function(){for(var t=this._tracks,r=this._trackKeys,i=0;i<r.length;i++)t[r[i]].setFinished()},e.prototype._getAdditiveTrack=function(t){var r,i=this._additiveAnimators;if(i)for(var n=0;n<i.length;n++){var a=i[n].getTrack(t);a&&(r=a)}return r},e.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var r=this,i=[],n=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],u=this._getAdditiveTrack(o),l=s.keyframes,c=l.length;if(s.prepare(n,u),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var f=l[c-1];f&&(r._target[s.propName]=f.rawValue),s.setFinished()}else i.push(s)}if(i.length||this._force){var d=new XU({life:n,loop:this._loop,delay:this._delay||0,onframe:function(h){r._started=2;var v=r._additiveAnimators;if(v){for(var p=!1,g=0;g<v.length;g++)if(v[g]._clip){p=!0;break}p||(r._additiveAnimators=null)}for(var g=0;g<i.length;g++)i[g].step(r._target,h);var m=r._onframeCbs;if(m)for(var g=0;g<m.length;g++)m[g](r._target,h)},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 Q(this._trackKeys,function(r){return t._tracks[r]})},e.prototype.stopTracks=function(t,r){if(!t.length||!this._clip)return!0;for(var i=this._tracks,n=this._trackKeys,a=0;a<t.length;a++){var o=i[t[a]];o&&!o.isFinished()&&(r?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<n.length;a++)if(!i[n[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},e.prototype.saveTo=function(t,r,i){if(t){r=r||this._trackKeys;for(var n=0;n<r.length;n++){var a=r[n],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,u=s[i?0:s.length-1];u&&(t[a]=Rc(u.rawValue))}}}},e.prototype.__changeFinalValue=function(t,r){r=r||Te(t);for(var i=0;i<r.length;i++){var n=r[i],a=this._tracks[n];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,t[n]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},e})();function ja(){return new Date().getTime()}var d6=(function(e){H(t,e);function t(r){var i=e.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,r=r||{},i.stage=r.stage||{},i}return t.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},t.prototype.addAnimator=function(r){r.animation=this;var i=r.getClip();i&&this.addClip(i)},t.prototype.removeClip=function(r){if(r.animation){var i=r.prev,n=r.next;i?i.next=n:this._head=n,n?n.prev=i:this._tail=i,r.next=r.prev=r.animation=null}},t.prototype.removeAnimator=function(r){var i=r.getClip();i&&this.removeClip(i),r.animation=null},t.prototype.update=function(r){for(var i=ja()-this._pausedTime,n=i-this._time,a=this._head;a;){var o=a.next,s=a.step(i,n);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=i,r||(this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var r=this;this._running=!0;function i(){r._running&&(Wp(i),!r._paused&&r.update())}Wp(i)},t.prototype.start=function(){this._running||(this._time=ja(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=ja(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=ja()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var r=this._head;r;){var i=r.next;r.prev=r.next=r.animation=null,r=i}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(r,i){i=i||{},this.start();var n=new w0(r,i.loop);return this.addAnimator(n),n},t})(Mn),h6=300,lv=pe.domSupported,cv=(function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=Q(e,function(n){var a=n.replace("mouse","pointer");return r.hasOwnProperty(a)?a:n});return{mouse:e,touch:t,pointer:i}})(),rw={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},nw=!1;function ng(e){var t=e.pointerType;return t==="pen"||t==="touch"}function v6(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 fv(e){e&&(e.zrByTouch=!0)}function p6(e,t){return lr(e.dom,new g6(e,t),!0)}function wA(e,t){for(var r=t,i=!1;r&&r.nodeType!==9&&!(i=r.domBelongToZr||r!==t&&r===e.painterRoot);)r=r.parentNode;return i}var g6=(function(){function e(t,r){this.stopPropagation=bt,this.stopImmediatePropagation=bt,this.preventDefault=bt,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e})(),Pr={mousedown:function(e){e=lr(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=lr(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=lr(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=lr(this.dom,e);var t=e.toElement||e.relatedTarget;wA(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){nw=!0,e=lr(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){nw||(e=lr(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=lr(this.dom,e),fv(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),Pr.mousemove.call(this,e),Pr.mousedown.call(this,e)},touchmove:function(e){e=lr(this.dom,e),fv(e),this.handler.processGesture(e,"change"),Pr.mousemove.call(this,e)},touchend:function(e){e=lr(this.dom,e),fv(e),this.handler.processGesture(e,"end"),Pr.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<h6&&Pr.click.call(this,e)},pointerdown:function(e){Pr.mousedown.call(this,e)},pointermove:function(e){ng(e)||Pr.mousemove.call(this,e)},pointerup:function(e){Pr.mouseup.call(this,e)},pointerout:function(e){ng(e)||Pr.mouseout.call(this,e)}};C(["click","dblclick","contextmenu"],function(e){Pr[e]=function(t){t=lr(this.dom,t),this.trigger(e,t)}});var ig={pointermove:function(e){ng(e)||ig.mousemove.call(this,e)},pointerup:function(e){ig.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}};function m6(e,t){var r=t.domHandlers;pe.pointerEventsSupported?C(cv.pointer,function(i){Bc(t,i,function(n){r[i].call(e,n)})}):(pe.touchEventsSupported&&C(cv.touch,function(i){Bc(t,i,function(n){r[i].call(e,n),v6(t)})}),C(cv.mouse,function(i){Bc(t,i,function(n){n=m0(n),t.touching||r[i].call(e,n)})}))}function y6(e,t){pe.pointerEventsSupported?C(rw.pointer,r):pe.touchEventsSupported||C(rw.mouse,r);function r(i){function n(a){a=m0(a),wA(e,a.target)||(a=p6(e,a),t.domHandlers[i].call(e,a))}Bc(t,i,n,{capture:!0})}}function Bc(e,t,r,i){e.mounted[t]=r,e.listenerOpts[t]=i,DU(e.domTarget,t,r,i)}function dv(e){var t=e.mounted;for(var r in t)t.hasOwnProperty(r)&&CU(e.domTarget,r,t[r],e.listenerOpts[r]);e.mounted={}}var iw=(function(){function e(t,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=r}return e})(),_6=(function(e){H(t,e);function t(r,i){var n=e.call(this)||this;return n.__pointerCapturing=!1,n.dom=r,n.painterRoot=i,n._localHandlerScope=new iw(r,Pr),lv&&(n._globalHandlerScope=new iw(document,ig)),m6(n,n._localHandlerScope),n}return t.prototype.dispose=function(){dv(this._localHandlerScope),lv&&dv(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,lv&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var i=this._globalHandlerScope;r?y6(this,i):dv(i)}},t})(Mn),xA=1;pe.hasGlobalWindow&&(xA=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var aw=xA,ag=.4,og="#333",sg="#ccc",b6="#eee",ow=bl,sw=5e-5;function vi(e){return e>sw||e<-sw}var pi=[],wa=[],hv=nn(),vv=Math.abs,Fo=(function(){function e(){}return e.prototype.getLocalTransform=function(t){return S6(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 vi(this.rotation)||vi(this.x)||vi(this.y)||vi(this.scaleX-1)||vi(this.scaleY-1)||vi(this.skewX)||vi(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),i=this.transform;if(!(r||t)){i&&(ow(i),this.invTransform=null);return}i=i||nn(),r?this.getLocalTransform(i):ow(i),t&&(r?Cs(i,t,i):y0(i,t)),this.transform=i,this._resolveGlobalScaleRatio(i),this.invTransform=this.invTransform||nn(),Bo(this.invTransform,i)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(pi);var i=pi[0]<0?-1:1,n=pi[1]<0?-1:1,a=((pi[0]-i)*r+i)/pi[0]||0,o=((pi[1]-n)*r+n)/pi[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}},e.prototype.getComputedTransform=function(){for(var t=this,r=[];t;)r.push(t),t=t.parent;for(;t=r.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var r=t[0]*t[0]+t[1]*t[1],i=t[2]*t[2]+t[3]*t[3],n=Math.atan2(t[1],t[0]),a=Math.PI/2+n-Math.atan2(t[3],t[2]);i=Math.sqrt(i)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-n,this.x=+t[4],this.y=+t[5],this.scaleX=r,this.scaleY=i,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,r=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||nn(),Cs(wa,t.invTransform,r),r=wa);var i=this.originX,n=this.originY;(i||n)&&(hv[4]=i,hv[5]=n,Cs(wa,r,hv),wa[4]-=i,wa[5]-=n,r=wa),this.setLocalTransform(r)}},e.prototype.getGlobalScale=function(t){var r=this.transform;return t=t||[],r?(t[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),t[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(t[0]=-t[0]),r[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,r){var i=[t,r],n=this.invTransform;return n&&br(i,i,n),i},e.prototype.transformCoordToGlobal=function(t,r){var i=[t,r],n=this.transform;return n&&br(i,i,n),i},e.prototype.getLineScale=function(){var t=this.transform;return t&&vv(t[0]-1)>1e-10&&vv(t[3]-1)>1e-10?Math.sqrt(vv(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){Xs(this,t)},e.getLocalTransform=function(t,r){r=r||[];var i=t.originX||0,n=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,u=t.anchorY,l=t.rotation||0,c=t.x,f=t.y,d=t.skewX?Math.tan(t.skewX):0,h=t.skewY?Math.tan(-t.skewY):0;if(i||n||s||u){var v=i+s,p=n+u;r[4]=-v*a-d*p*o,r[5]=-p*o-h*v*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=h*a,r[2]=d*o,l&&_0(r,r,l),r[4]+=i+c,r[5]+=n+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})(),S6=Fo.getLocalTransform,hh=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Xs(e,t){return aU(e,t,hh)}function an(e){Hl||(Hl=new ho(100)),e=e||In;var t=Hl.get(e);return t||(t={font:e,strWidthCache:new ho(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:rn.measureText("\u56FD",e).width,asciiCharWidth:rn.measureText("a",e).width},Hl.put(e,t)),t}var Hl;function w6(e){if(!(pv>=uw)){e=e||In;for(var t=[],r=+new Date,i=0;i<=127;i++)t[i]=rn.measureText(String.fromCharCode(i),e).width;var n=+new Date-r;return n>16?pv=uw:n>2&&pv++,t}}var pv=0,uw=5;function TA(e,t){return e.asciiWidthMapTried||(e.asciiWidthMap=w6(e.font),e.asciiWidthMapTried=!0),0<=t&&t<=127?e.asciiWidthMap!=null?e.asciiWidthMap[t]:e.asciiCharWidth:e.stWideCharWidth}function on(e,t){var r=e.strWidthCache,i=r.get(t);return i==null&&(i=rn.measureText(t,e.font).width,r.put(t,i)),i}function lw(e,t,r,i){var n=on(an(t),e),a=wl(t),o=vo(0,n,r),s=Wi(0,a,i),u=new fe(o,s,n,a);return u}function kA(e,t,r,i){var n=((e||"")+"").split(`\n`),a=n.length;if(a===1)return lw(n[0],t,r,i);for(var o=new fe(0,0,0,0),s=0;s<n.length;s++){var u=lw(n[s],t,r,i);s===0?o.copy(u):o.union(u)}return o}function vo(e,t,r,i){return r==="right"?i?e+=t:e-=t:r==="center"&&(i?e+=t/2:e-=t/2),e}function Wi(e,t,r,i){return r==="middle"?i?e+=t/2:e-=t/2:r==="bottom"&&(i?e+=t:e-=t),e}function wl(e){return an(e).stWideCharWidth}function ra(e,t){return typeof e=="string"?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function gf(e,t,r){var i=t.position||"inside",n=t.distance!=null?t.distance:5,a=r.height,o=r.width,s=a/2,u=r.x,l=r.y,c="left",f="top";if(i instanceof Array)u+=ra(i[0],r.width),l+=ra(i[1],r.height),c=null,f=null;else switch(i){case"left":u-=n,l+=s,c="right",f="middle";break;case"right":u+=n+o,l+=s,f="middle";break;case"top":u+=o/2,l-=n,c="center",f="bottom";break;case"bottom":u+=o/2,l+=a+n,c="center";break;case"inside":u+=o/2,l+=s,c="center",f="middle";break;case"insideLeft":u+=n,l+=s,f="middle";break;case"insideRight":u+=o-n,l+=s,c="right",f="middle";break;case"insideTop":u+=o/2,l+=n,c="center";break;case"insideBottom":u+=o/2,l+=a-n,c="center",f="bottom";break;case"insideTopLeft":u+=n,l+=n;break;case"insideTopRight":u+=o-n,l+=n,c="right";break;case"insideBottomLeft":u+=n,l+=a-n,f="bottom";break;case"insideBottomRight":u+=o-n,l+=a-n,c="right",f="bottom";break}return e=e||{},e.x=u,e.y=l,e.align=c,e.verticalAlign=f,e}var gv="__zr_normal__",mv=hh.concat(["ignore"]),x6=ei(hh,function(e,t){return e[t]=!0,e},{ignore:!1}),xa={},T6=new fe(0,0,0,0),Wl=[],Fc=0,vh=1,ph=(function(){function e(t){this.id=YC(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,r,i){switch(this.draggable){case"horizontal":r=0;break;case"vertical":t=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=t,n[5]+=r,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(t){var r=this._textContent;if(r&&(!r.ignore||t)){this.textConfig||(this.textConfig={});var i=this.textConfig,n=i.local,a=r.innerTransformable,o=void 0,s=void 0,u=!1;a.parent=n?this:null;var l=!1;a.copyTransform(r);var c=i.position!=null,f=i.autoOverflowArea,d=void 0;if((f||c)&&(d=T6,i.layoutRect?d.copy(i.layoutRect):d.copy(this.getBoundingRect()),n||d.applyTransform(this.transform)),c){this.calculateTextPosition?this.calculateTextPosition(xa,i,d):gf(xa,i,d),a.x=xa.x,a.y=xa.y,o=xa.align,s=xa.verticalAlign;var h=i.origin;if(h&&i.rotation!=null){var v=void 0,p=void 0;h==="center"?(v=d.width*.5,p=d.height*.5):(v=ra(h[0],d.width),p=ra(h[1],d.height)),l=!0,a.originX=-a.x+v+(n?0:d.x),a.originY=-a.y+p+(n?0:d.y)}}i.rotation!=null&&(a.rotation=i.rotation);var g=i.offset;g&&(a.x+=g[0],a.y+=g[1],l||(a.originX=-g[0],a.originY=-g[1]));var m=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(f){var y=m.overflowRect=m.overflowRect||new fe(0,0,0,0);a.getLocalTransform(Wl),Bo(Wl,Wl),fe.copy(y,d),y.applyTransform(Wl)}else m.overflowRect=null;var _=i.inside==null?typeof i.position=="string"&&i.position.indexOf("inside")>=0:i.inside,b=void 0,S=void 0,w=void 0;_&&this.canBeInsideText()?(b=i.insideFill,S=i.insideStroke,(b==null||b==="auto")&&(b=this.getInsideTextFill()),(S==null||S==="auto")&&(S=this.getInsideTextStroke(b),w=!0)):(b=i.outsideFill,S=i.outsideStroke,(b==null||b==="auto")&&(b=this.getOutsideFill()),(S==null||S==="auto")&&(S=this.getOutsideStroke(b),w=!0)),b=b||"#000",(b!==m.fill||S!==m.stroke||w!==m.autoStroke||o!==m.align||s!==m.verticalAlign)&&(u=!0,m.fill=b,m.stroke=S,m.autoStroke=w,m.align=o,m.verticalAlign=s,r.setDefaultTextStyle(m)),r.__dirty|=Lr,u&&r.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(t){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?sg:og},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),i=typeof r=="string"&&zr(r);i||(i=[255,255,255,1]);for(var n=i[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)i[o]=i[o]*n+(a?0:255)*(1-n);return i[3]=1,Sl(i,"rgba")},e.prototype.traverse=function(t,r){},e.prototype.attrKV=function(t,r){t==="textConfig"?this.setTextConfig(r):t==="textContent"?this.setTextContent(r):t==="clipPath"?this.setClipPath(r):t==="extra"?(this.extra=this.extra||{},V(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(ne(t))for(var i=t,n=Te(i),a=0;a<n.length;a++){var o=n[a];this.attrKV(o,t[o])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var r=this._normalState,i=0;i<this.animators.length;i++){var n=this.animators[i],a=n.__fromStateTransition;if(!(n.getLoop()||a&&a!==gv)){var o=n.targetName,s=o?r[o]:r;n.saveTo(s)}}},e.prototype._innerSaveToNormal=function(t){var r=this._normalState;r||(r=this._normalState={}),t.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(t,r,mv)},e.prototype._savePrimaryToNormal=function(t,r,i){for(var n=0;n<i.length;n++){var a=i[n];t[a]!=null&&!(a in r)&&(r[a]=this[a])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var r=this.states;return r[t]||(r[t]={}),r[t]},e.prototype.clearStates=function(t){this.useState(gv,!1,t)},e.prototype.useState=function(t,r,i,n){var a=t===gv,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,u=this.stateTransition;if(!(xe(s,t)>=0&&(r||s.length===1))){var l;if(this.stateProxy&&!a&&(l=this.stateProxy(t)),l||(l=this.states&&this.states[t]),!l&&!a){XC("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(l);var c=this._textContent,f=cw(this,c,l,n);f&&!this.__inHover&&(this.__inHover=f),this._applyStateObj(t,l,this._normalState,r,dw(this,i,u),u);var d=this._textGuide;return c&&c.useState(t,r,i,!!f),d&&d.useState(t,r,i,!!f),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this.__inHover=Fc,this.__dirty&=~Lr),l}}},e.prototype.useStates=function(t,r,i){if(!t.length)this.clearStates();else{var n=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var u=0;u<o;u++)if(t[u]!==a[u]){s=!1;break}}if(s)return;for(var u=0;u<o;u++){var l=t[u],c=void 0;this.stateProxy&&(c=this.stateProxy(l,t)),c||(c=this.states[l]),c&&n.push(c)}var f=n[o-1],d=this._textContent,h=cw(this,d,f,i);h&&!this.__inHover&&(this.__inHover=h);var v=this._mergeStates(n),p=this.stateTransition;this.saveCurrentToNormalState(v),this._applyStateObj(t.join(","),v,this._normalState,!1,dw(this,r,p),p);var g=this._textGuide;d&&d.useStates(t,r,!!h),g&&g.useStates(t,r,!!h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this.__inHover=Fc,this.__dirty&=~Lr)}},e.prototype.isSilent=function(){for(var t=this;t;){if(t.silent)return!0;var r=t.__hostTarget;t=r?t.ignoreHostSilent?null:r:t.parent}return!1},e.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var r=this.animators[t];r.targetName&&r.changeTarget(this[r.targetName])}},e.prototype.removeState=function(t){var r=xe(this.currentStates,t);if(r>=0){var i=this.currentStates.slice();i.splice(r,1),this.useStates(i)}},e.prototype.replaceState=function(t,r,i){var n=this.currentStates.slice(),a=xe(n,t),o=xe(n,r)>=0;a>=0?o?n.splice(a,1):n[a]=r:i&&!o&&n.push(r),this.useStates(n)},e.prototype.toggleState=function(t,r){r?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var r={},i,n=0;n<t.length;n++){var a=t[n];V(r,a),a.textConfig&&(i=i||{},V(i,a.textConfig))}return i&&(r.textConfig=i),r},e.prototype._applyStateObj=function(t,r,i,n,a,o){if(this.__inHover!==vh){var s=!(r&&n);r&&r.textConfig?(this.textConfig=V({},n?this.textConfig:i.textConfig),V(this.textConfig,r.textConfig)):s&&i.textConfig&&(this.textConfig=i.textConfig);for(var u={},l=!1,c=0;c<mv.length;c++){var f=mv[c],d=a&&x6[f];r&&r[f]!=null?d?(l=!0,u[f]=r[f]):this[f]=r[f]:s&&i[f]!=null&&(d?(l=!0,u[f]=i[f]):this[f]=i[f])}if(!a)for(var c=0;c<this.animators.length;c++){var h=this.animators[c],v=h.targetName;h.getLoop()||h.__changeFinalValue(v?(r||i)[v]:r||i)}l&&this._transitionState(t,u,o)}},e.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){var r=this.__zr;r&&t.addSelfToZr(r),t.__zr=r,t.__hostTarget=this}},e.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},e.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(t){var r=this._textContent;r!==t&&(r&&r!==t&&this.removeTextContent(),t.innerTransformable=new Fo,this._attachComponent(t),this._textContent=t,this.markRedraw())},e.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),V(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|=Lr;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var r=this.animators;if(r)for(var i=0;i<r.length;i++)t.animation.addAnimator(r[i]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var r=this.animators;if(r)for(var i=0;i<r.length;i++)t.animation.removeAnimator(r[i]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},e.prototype.animate=function(t,r,i){var n=t?this[t]:this,a=new w0(n,r,i);return t&&(a.targetName=t),this.addAnimator(a,t),a},e.prototype.addAnimator=function(t,r){var i=this.__zr,n=this;t.during(function(){n.updateDuringAnimation(r)}).done(function(){var a=n.animators,o=xe(a,t);o>=0&&a.splice(o,1)}),this.animators.push(t),i&&i.animation.addAnimator(t),i&&i.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,r){for(var i=this.animators,n=i.length,a=[],o=0;o<n;o++){var s=i[o];!t||t===s.scope?s.stop(r):a.push(s)}return this.animators=a,this},e.prototype.animateTo=function(t,r,i){yv(this,t,r,i)},e.prototype.animateFrom=function(t,r,i){yv(this,t,r,i,!0)},e.prototype._transitionState=function(t,r,i,n){for(var a=yv(this,r,i,n),o=0;o<a.length;o++)a[o].__fromStateTransition=t},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=(function(){var t=e.prototype;t.type="element",t.name="",t.ignore=t.silent=t.ignoreHostSilent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=!1,t.__inHover=Fc,t.__dirty=Lr;function r(i,n,a,o){Object.defineProperty(t,i,{get:function(){if(!this[n]){var u=this[n]=[];s(this,u)}return this[n]},set:function(u){this[a]=u[0],this[o]=u[1],this[n]=u,s(this,u)}});function s(u,l){Object.defineProperty(l,0,{get:function(){return u[a]},set:function(c){u[a]=c}}),Object.defineProperty(l,1,{get:function(){return u[o]},set:function(c){u[o]=c}})}}Object.defineProperty&&(r("position","_legacyPos","x","y"),r("scale","_legacyScale","scaleX","scaleY"),r("origin","_legacyOrigin","originX","originY"))})(),e})();Br(ph,Mn);Br(ph,Fo);function yv(e,t,r,i,n){r=r||{};var a=[];IA(e,"",e,t,r,i,a,n);var o=a.length,s=!1,u=r.done,l=r.aborted,c=function(){s=!0,o--,o<=0&&(s?u&&u():l&&l())},f=function(){o--,o<=0&&(s?u&&u():l&&l())};o||u&&u(),a.length>0&&r.during&&a[0].during(function(v,p){r.during(p)});for(var d=0;d<a.length;d++){var h=a[d];c&&h.done(c),f&&h.aborted(f),r.force&&h.duration(r.duration),h.start(r.easing)}return a}function _v(e,t,r){for(var i=0;i<r;i++)e[i]=t[i]}function k6(e){return Wt(e[0])}function I6(e,t,r){if(Wt(t[r]))if(Wt(e[r])||(e[r]=[]),qt(t[r])){var i=t[r].length;e[r].length!==i&&(e[r]=new t[r].constructor(i),_v(e[r],t[r],i))}else{var n=t[r],a=e[r],o=n.length;if(k6(n))for(var s=n[0].length,u=0;u<o;u++)a[u]?_v(a[u],n[u],s):a[u]=Array.prototype.slice.call(n[u]);else _v(a,n,o);a.length=n.length}else e[r]=t[r]}function $6(e,t){return e===t||Wt(e)&&Wt(t)&&D6(e,t)}function D6(e,t){var r=e.length;if(r!==t.length)return!1;for(var i=0;i<r;i++)if(e[i]!==t[i])return!1;return!0}function IA(e,t,r,i,n,a,o,s){for(var u=Te(i),l=n.duration,c=n.delay,f=n.additive,d=n.setToFinal,h=!ne(a),v=e.animators,p=[],g=0;g<u.length;g++){var m=u[g],y=i[m];if(y!=null&&r[m]!=null&&(h||a[m]))if(ne(y)&&!Wt(y)&&!h0(y)){if(t){s||(r[m]=y,e.updateDuringAnimation(t));continue}IA(e,m,r[m],y,n,a&&a[m],o,s)}else p.push(m);else s||(r[m]=y,e.updateDuringAnimation(t),p.push(m))}var _=p.length;if(!f&&_)for(var b=0;b<v.length;b++){var S=v[b];if(S.targetName===t){var w=S.stopTracks(p);if(w){var x=xe(v,S);v.splice(x,1)}}}if(n.force||(p=ot(p,function($){return!$6(i[$],r[$])}),_=p.length),_>0||n.force&&!o.length){var T=void 0,k=void 0,I=void 0;if(s){k={},d&&(T={});for(var b=0;b<_;b++){var m=p[b];k[m]=r[m],d?T[m]=i[m]:r[m]=i[m]}}else if(d){I={};for(var b=0;b<_;b++){var m=p[b];I[m]=Rc(r[m]),I6(r,i,m)}}var S=new w0(r,!1,!1,f?ot(v,function(A){return A.targetName===t}):null);S.targetName=t,n.scope&&(S.scope=n.scope),d&&T&&S.whenWithKeys(0,T,p),I&&S.whenWithKeys(0,I,p),S.whenWithKeys(l??500,s?k:i,p).delay(c||0),e.addAnimator(S,t),o.push(S)}}function cw(e,t,r,i){return!(r&&r.hoverLayer||i)||fw(e)||t&&fw(t)?Fc:vh}function fw(e){return e.type==="text"||e.type==="tspan"}function dw(e,t,r){return!t&&!e.__inHover&&r&&r.duration>0}var ut=(function(e){H(t,e);function t(r){var i=e.call(this)||this;return i.isGroup=!0,i._children=[],i.attr(r),i}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(r){return this._children[r]},t.prototype.childOfName=function(r){for(var i=this._children,n=0;n<i.length;n++)if(i[n].name===r)return i[n]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(r){return r&&r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),this},t.prototype.addBefore=function(r,i){if(r&&r!==this&&r.parent!==this&&i&&i.parent===this){var n=this._children,a=n.indexOf(i);a>=0&&(n.splice(a,0,r),this._doAdd(r))}return this},t.prototype.replace=function(r,i){var n=xe(this._children,r);return n>=0&&this.replaceAt(i,n),this},t.prototype.replaceAt=function(r,i){var n=this._children,a=n[i];if(r&&r!==this&&r.parent!==this&&r!==a){n[i]=r,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(r)}return this},t.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var i=this.__zr;i&&i!==r.__zr&&r.addSelfToZr(i),i&&i.refresh()},t.prototype.remove=function(r){var i=this.__zr,n=this._children,a=xe(n,r);return a<0?this:(n.splice(a,1),r.parent=null,i&&r.removeSelfFromZr(i),i&&i.refresh(),this)},t.prototype.removeAll=function(){for(var r=this._children,i=this.__zr,n=0;n<r.length;n++){var a=r[n];i&&a.removeSelfFromZr(i),a.parent=null}return r.length=0,this},t.prototype.eachChild=function(r,i){for(var n=this._children,a=0;a<n.length;a++){var o=n[a];r.call(i,o,a)}return this},t.prototype.traverse=function(r,i){for(var n=0;n<this._children.length;n++){var a=this._children[n],o=r.call(i,a);a.isGroup&&!o&&a.traverse(r,i)}return this},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var i=0;i<this._children.length;i++){var n=this._children[i];n.addSelfToZr(r)}},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var i=0;i<this._children.length;i++){var n=this._children[i];n.removeSelfFromZr(r)}},t.prototype.getBoundingRect=function(r){for(var i=new fe(0,0,0,0),n=r||this._children,a=[],o=null,s=0;s<n.length;s++){var u=n[s];if(!(u.ignore||u.invisible)){var l=u.getBoundingRect(),c=u.getLocalTransform(a);c?(fe.applyTransform(i,l,c),o=o||i.clone(),o.union(i)):(o=o||l.clone(),o.union(l))}}return o||i},t})(ph);ut.prototype.type="group";/*!\n* ZRender, a high performance 2d drawing library.\n*\n* Copyright (c) 2013, Baidu Inc.\n* All rights reserved.\n*\n* LICENSE\n* https://github.com/ecomfe/zrender/blob/master/LICENSE\n*/var jc={},$A={};function C6(e){delete $A[e]}function A6(e){if(!e)return!1;if(typeof e=="string")return vf(e,1)<ag;if(e.colorStops){for(var t=e.colorStops,r=0,i=t.length,n=0;n<i;n++)r+=vf(t[n].color,1);return r/=i,r<ag}return!1}var P6=(function(){function e(t,r,i){var n=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,i=i||{},this.dom=r,this.id=t;var a=new GU,o=i.renderer||"canvas";jc[o]||(o=Te(jc)[0]),i.useDirtyRect=i.useDirtyRect==null?!1:i.useDirtyRect;var s=new jc[o](r,a,i,t),u=i.ssr||s.ssrOnly;this.storage=a,this.painter=s;var l=!pe.node&&!pe.worker&&!u?new _6(s.getViewportRoot(),s.root):null,c=i.useCoarsePointer,f=c==null||c==="auto"?pe.touchEventsSupported:!!c,d=44,h;f&&(h=J(i.pointerSize,d)),this.handler=new iA(a,s,l,s.root,h),this.animation=new d6({stage:{update:u?null:function(){return n._flush(!1)}}}),u||this.animation.start()}return e.prototype.add=function(t){this._disposed||!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},e.prototype.remove=function(t){this._disposed||!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(t,r){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,r),this.refresh())},e.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=A6(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||this._refresh({animUpdate:!t,refresh:!0,refreshHover:!1})},e.prototype._refresh=function(t){t.animUpdate&&this.animation.update(!0),this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh({refresh:t.refresh,refreshHover:t.refreshHover}),this._needsRefresh=this._needsRefreshHover=!1},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!0)},e.prototype._flush=function(t){var r,i=ja(),n=this._needsRefresh,a=this._needsRefreshHover;(n||a)&&(r=!0,this._refresh({animUpdate:t,refresh:n,refreshHover:a}));var o=ja();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:o-i})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},e.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,r){if(!this._disposed)return this.handler.findHover(t,r)},e.prototype.on=function(t,r,i){return this._disposed||this.handler.on(t,r,i),this},e.prototype.off=function(t,r){this._disposed||this.handler.off(t,r)},e.prototype.trigger=function(t,r){this._disposed||this.handler.trigger(t,r)},e.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),r=0;r<t.length;r++)t[r]instanceof ut&&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,C6(this.id))},e})();function hw(e,t){var r=new P6(YC(),e,t);return $A[r.id]=r,r}function M6(e,t){jc[e]=t}var ug;function L6(e){if(typeof ug=="function")return ug(e)}function O6(e){ug=e}var vw=1e-4,DA=20;function E6(e){return e.replace(/^\\s+|\\s+$/g,"")}var Ct=Math.min,Me=Math.max,ft=Math.abs,$n=Math.round,na=Math.floor,xl=Math.ceil,ha=Math.pow,Ks=Math.log,lg=Math.LN10,z6=Math.PI,R6=Math.random;function Js(e,t,r,i){var n=t[0],a=t[1],o=r[0],s=r[1],u=a-n,l=s-o;if(u===0)return l===0?o:(o+s)/2;if(i)if(u>0){if(e<=n)return o;if(e>=a)return s}else{if(e>=n)return o;if(e<=a)return s}else{if(e===n)return o;if(e===a)return s}return(e-n)/u*l+o}var $e=N6;function N6(e,t,r){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return cg(e,t,r)}function cg(e,t,r){return te(e)?U6(e)?parseFloat(e)/100*t+(r||0):parseFloat(e):e==null?NaN:+e}function U6(e){return!!E6(e).match(/%$/)}function Ae(e,t,r){return isNaN(t)?r?""+e:+e:(t=Ct(Me(0,t),DA),e=(+e).toFixed(t),r?e:+e)}function x0(e){return e.sort(function(t,r){return t-r}),e}function mn(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,r=0;r<15;r++,t*=10)if($n(e*t)/t===e)return r}return B6(e)}function B6(e){var t=e.toString().toLowerCase(),r=t.indexOf("e"),i=r>0?+t.slice(r+1):0,n=r>0?r:t.length,a=t.indexOf("."),o=a<0?0:n-1-a;return Me(0,o-i)}function F6(e,t,r){var i=ft(e[1]-e[0]);if(!isFinite(i)||i===0)return NaN;var n=Ks(2*ft(r||1)*ft(i))/lg,a=Ks(ft(t))/lg,o=Me(0,xl(-n+a));return isFinite(o)||(o=NaN),o}function j6(e,t){var r=ei(e,function(h,v){return h+(isNaN(v)?0:v)},0);if(r===0)return[];for(var i=ha(10,t),n=Q(e,function(h){return(isNaN(h)?0:h)/r*i*100}),a=i*100,o=Q(n,function(h){return na(h)}),s=ei(o,function(h,v){return h+v},0),u=Q(n,function(h,v){return h-o[v]});s<a;){for(var l=Number.NEGATIVE_INFINITY,c=null,f=0,d=u.length;f<d;++f)u[f]>l&&(l=u[f],c=f);++o[c],u[c]=0,++s}return Q(o,function(h){return h/i})}function Z6(e,t){var r=Me(mn(e),mn(t)),i=e+t;return r>DA?i:Ae(i,r)}var pw=ha(2,53)-1;function CA(e){var t=z6*2;return(e%t+t)%t}function mf(e){return e>-vw&&e<vw}var V6=/^(?:(\\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 jo(e){if(e instanceof Date)return e;if(te(e)){var t=V6.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($n(e))}function AA(e){return ha(10,T0(e))}function T0(e){if(e===0)return 0;var t=na(Ks(e)/lg);return e/ha(10,t)>=10&&t++,t}var PA=2;function k0(e,t){var r=T0(e),i=ha(10,r),n=e/i,a;return t===PA?a=1:t?n<1.5?a=1:n<2.5?a=2:n<4?a=3:n<7?a=5:a=10:n<1?a=1:n<2?a=2:n<3?a=3:n<5?a=5:a=10,e=a*i,Ae(e,-r)}function yf(e){var t=parseFloat(e);return t==e&&(t!==0||!te(e)||e.indexOf("x")<=0)?t:NaN}function G6(e){return!isNaN(yf(e))}function I0(){return $n(R6()*9)}function MA(e,t){return t===0?e:MA(t,e%t)}function gw(e,t){return e==null?t:t==null?e:e*t/MA(e,t)}function wr(e){return e!=null&&isFinite(e)}var H6="[ECharts] ",W6=typeof console<"u"&&console.warn&&console.log;function q6(e,t,r){W6&&console[e](H6+t)}function LA(e,t){q6("error",e)}function Vt(e){throw new Error(e)}function mw(e,t,r){return(t-e)*r+e}var OA="series\\0",Y6="\\0_ec_\\0";function Bt(e){return e instanceof Array?e:e==null?[]:[e]}function Qs(e,t,r){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var i=0,n=r.length;i<n;i++){var a=r[i];!e.emphasis[t].hasOwnProperty(a)&&e[t].hasOwnProperty(a)&&(e.emphasis[t][a]=e[t][a])}}}var yw=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function Tl(e){return ne(e)&&!q(e)&&!(e instanceof Date)?e.value:e}function X6(e){return ne(e)&&!(e instanceof Array)}function K6(e,t,r){var i=r==="normalMerge",n=r==="replaceMerge",a=r==="replaceAll";e=e||[],t=(t||[]).slice();var o=se();C(t,function(u,l){if(!ne(u)){t[l]=null;return}});var s=J6(e,o,r);return(i||n)&&Q6(s,e,o,t),i&&eB(s,t),i||n?tB(s,t,n):a&&rB(s,t),nB(s),s}function J6(e,t,r){var i=[];if(r==="replaceAll")return i;for(var n=0;n<e.length;n++){var a=e[n];a&&a.id!=null&&t.set(a.id,n),i.push({existing:r==="replaceMerge"||eu(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return i}function Q6(e,t,r,i){C(i,function(n,a){if(!(!n||n.id==null)){var o=Ms(n.id),s=r.get(o);if(s!=null){var u=e[s];Rr(!u.newOption,\'Duplicated option on id "\'+o+\'".\'),u.newOption=n,u.existing=t[s],i[a]=null}}})}function eB(e,t){C(t,function(r,i){if(!(!r||r.name==null))for(var n=0;n<e.length;n++){var a=e[n].existing;if(!e[n].newOption&&a&&(a.id==null||r.id==null)&&!eu(r)&&!eu(a)&&EA("name",a,r)){e[n].newOption=r,t[i]=null;return}}})}function tB(e,t,r){C(t,function(i){if(i){for(var n,a=0;(n=e[a])&&(n.newOption||eu(n.existing)||n.existing&&i.id!=null&&!EA("id",i,n.existing));)a++;n?(n.newOption=i,n.brandNew=r):e.push({newOption:i,brandNew:r,existing:null,keyInfo:null}),a++}})}function rB(e,t){C(t,function(r){e.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function nB(e){var t=se();C(e,function(r){var i=r.existing;i&&t.set(i.id,r)}),C(e,function(r){var i=r.newOption;Rr(!i||i.id==null||!t.get(i.id)||t.get(i.id)===r,"id duplicates: "+(i&&i.id)),i&&i.id!=null&&t.set(i.id,r),!r.keyInfo&&(r.keyInfo={})}),C(e,function(r,i){var n=r.existing,a=r.newOption,o=r.keyInfo;if(ne(a)){if(o.name=a.name!=null?Ms(a.name):n?n.name:OA+i,n)o.id=Ms(n.id);else if(a.id!=null)o.id=Ms(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 EA(e,t,r){var i=sn(t[e],null),n=sn(r[e],null);return i!=null&&n!=null&&i===n}function Ms(e){return sn(e,"")}function sn(e,t){return e==null?t:te(e)?e:Re(e)||Rp(e)?e+"":t}function $0(e){var t=e.name;return!!(t&&t.indexOf(OA))}function eu(e){return e&&e.id!=null&&Ms(e.id).indexOf(Y6)===0}function iB(e,t,r){C(e,function(i){var n=i.newOption;ne(n)&&(i.keyInfo.mainType=t,i.keyInfo.subType=aB(t,n,i.existing,r))})}function aB(e,t,r,i){var n=t.type?t.type:r?r.subType:i.determineSubType(e,t);return n}function ia(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return q(t.dataIndex)?Q(t.dataIndex,function(r){return e.indexOfRawIndex(r)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return q(t.name)?Q(t.name,function(r){return e.indexOfName(r)}):e.indexOfName(t.name)}function ke(){var e="__ec_inner_"+oB++;return function(t){return t[e]||(t[e]={})}}var oB=I0();function bv(e,t,r){var i=D0(t,r),n=i.mainTypeSpecified,a=i.queryOptionMap,o=i.others,s=o,u=r?r.defaultMainType:null;return!n&&u&&a.set(u,{}),a.each(function(l,c){var f=kl(e,c,l,{useDefault:u===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 D0(e,t){var r;if(te(e)){var i={};i[e+"Index"]=0,r=i}else r=e;var n=se(),a={},o=!1;return C(r,function(s,u){if(u==="dataIndex"||u==="dataIndexInside"){a[u]=s;return}var l=u.match(/^(\\w+)(Index|Id|Name)$/)||[],c=l[1],f=(l[2]||"").toLowerCase();if(!(!c||!f||t&&t.includeMainTypes&&xe(t.includeMainTypes,c)<0)){o=o||!!c;var d=n.get(c)||n.set(c,{});d[f]=s}}),{mainTypeSpecified:o,queryOptionMap:n,others:a}}var gr={useDefault:!0,enableAll:!1,enableNone:!1};function kl(e,t,r,i){i=i||gr;var n=r.index,a=r.id,o=r.name,s={models:null,specified:n!=null||a!=null||o!=null};if(!s.specified){var u=void 0;return s.models=i.useDefault&&(u=e.getComponent(t))?[u]:[],s}if(n==="none"||n===!1){if(i.enableNone)return s.models=[],s;n=-1}return n==="all"&&(i.enableAll?n=a=o=null:n=-1),s.models=e.queryComponents({mainType:t,index:n,id:a,name:o}),s}function sB(e,t,r){var i={};i[t+"Id"]=e[t+"Id"],i[t+"Index"]=e[t+"Index"],i[t+"Name"]=e[t+"Name"];var n={mainType:t,query:i};return r&&(n.subType=r),n}function zA(e,t,r){e.setAttribute?e.setAttribute(t,r):e[t]=r}function uB(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function lB(e){return e==="auto"?pe.domSupported?"html":"richText":e||"html"}function RA(e,t,r,i,n){var a=t==null||t==="auto";if(i==null)return i;if(Re(i)){var o=mw(r||0,i,n);return Ae(o,a?Math.max(mn(r||0),mn(i)):t)}else{if(te(i))return n<1?r:i;for(var s=[],u=r,l=i,c=Math.max(u?u.length:0,l.length),f=0;f<c;++f){var d=e.getDimensionInfo(f);if(d&&d.type==="ordinal")s[f]=(n<1&&u?u:l)[f];else{var h=u&&u[f]?u[f]:0,v=l[f],o=mw(h,v,n);s[f]=Ae(o,a?Math.max(mn(h),mn(v)):t)}}return s}}function hr(){return[1/0,-1/0]}function fg(e,t){Dn(t)&&(t<e[0]&&(e[0]=t),t>e[1]&&(e[1]=t))}function NA(e,t){Dn(t)&&t<e[0]&&(e[0]=t)}function UA(e,t){Dn(t)&&t>e[1]&&(e[1]=t)}function cB(e,t){po(t[0],t[1])&&(t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]))}function Dn(e){return e!=null&&isFinite(e)}function po(e,t){return Dn(e)&&Dn(t)&&e<=t}function fB(e){var t=e[1]-e[0];return isFinite(t)&&t>=0}function dB(e){po(e[0],e[1])&&e[0]>e[1]&&(e[0]=e[1])}function BA(){var e="__ec_once_"+hB++;return function(t,r){Ut(t,e)||(t[e]=1,r())}}var hB=I0();function C0(e,t,r){var i=se(),n=0;C(e,function(a){var o=t(a),s=i.get(o)||0;r&&r(a,s),!s&&!r&&(e[n++]=a),i.set(o,s+1)}),r||(e.length=n)}function vB(e){return e.value+""}function pB(e){return e+""}function FA(e,t){return J(t,!0)?e.seriesIndex+2:0}function jA(e,t,r){var i=e.getData().count();return{progressiveRender:r.progressiveEnabled&&t.incrementalPrepareRender&&i>=r.threshold,large:e.get("large")&&i>=e.get("largeThreshold"),modDataCount:e.get("progressiveChunkMode")==="mod"?e.getData().count():null}}function ZA(e,t){return{seriesType:e,overallReset:t}}function A0(e){return{overallReset:e}}var gB=".",gi="___EC__COMPONENT__CONTAINER___",VA="___EC__EXTENDED_CLASS___";function en(e){var t={main:"",sub:""};if(e){var r=e.split(gB);t.main=r[0]||"",t.sub=r[1]||""}return t}function mB(e){Rr(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),\'componentType "\'+e+\'" illegal\')}function yB(e){return!!(e&&e[VA])}function P0(e,t){e.$constructor=e,e.extend=function(r){var i=this,n;return _B(i)?n=(function(a){H(o,a);function o(){return a.apply(this,arguments)||this}return o})(i):(n=function(){(r.$constructor||i).apply(this,arguments)},oU(n,this)),V(n.prototype,r),n[VA]=!0,n.extend=this.extend,n.superCall=wB,n.superApply=xB,n.superClass=i,n}}function _B(e){return le(e)&&/^class\\s/.test(Function.prototype.toString.call(e))}function GA(e,t){e.extend=t.extend}var bB=Math.round(Math.random()*10);function SB(e){var t=["__\\0is_clz",bB++].join("_");e.prototype[t]=!0,e.isInstance=function(r){return!!(r&&r[t])}}function wB(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return this.superClass.prototype[t].apply(e,r)}function xB(e,t,r){return this.superClass.prototype[t].apply(e,r)}function gh(e){var t={};e.registerClass=function(i){var n=i.type||i.prototype.type;if(n){mB(n),i.prototype.type=n;var a=en(n);if(!a.sub)t[a.main]=i;else if(a.sub!==gi){var o=r(a);o[a.sub]=i}}return i},e.getClass=function(i,n,a){var o=t[i];if(o&&o[gi]&&(o=n?o[n]:null),a&&!o)throw new Error(n?"Component "+i+"."+(n||"")+" is used but not imported.":i+".type should be specified.");return o},e.getClassesByMainType=function(i){var n=en(i),a=[],o=t[n.main];return o&&o[gi]?C(o,function(s,u){u!==gi&&a.push(s)}):a.push(o),a},e.hasClass=function(i){var n=en(i);return!!t[n.main]},e.getAllClassMainTypes=function(){var i=[];return C(t,function(n,a){i.push(a)}),i},e.hasSubTypes=function(i){var n=en(i),a=t[n.main];return a&&a[gi]};function r(i){var n=t[i.main];return(!n||!n[gi])&&(n=t[i.main]={},n[gi]=!0),n}}function tu(e,t){for(var r=0;r<e.length;r++)e[r][1]||(e[r][1]=e[r][0]);return t=t||!1,function(i,n,a){for(var o={},s=0;s<e.length;s++){var u=e[s][1];if(!(n&&xe(n,u)>=0||a&&xe(a,u)<0)){var l=i.getShallow(u,t);l!=null&&(o[e[s][0]]=l)}}return o}}var TB=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],kB=tu(TB),IB=(function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return kB(this,t,r)},e})(),dg=new ho(50);function $B(e){if(typeof e=="string"){var t=dg.get(e);return t&&t.image}else return e}function M0(e,t,r,i,n){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!r)return t;var a=dg.get(e),o={hostEl:r,cb:i,cbPayload:n};return a?(t=a.image,!mh(t)&&a.pending.push(o)):(t=rn.loadImage(e,_w,_w),t.__zrImageSrc=e,dg.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function _w(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var r=e.pending[t],i=r.cb;i&&i(this,r.cbPayload),r.hostEl.dirty()}e.pending.length=0}function mh(e){return e&&e.width&&e.height}var Sv=/\\{([a-zA-Z0-9_]+)\\|([^}]*)\\}/g;function DB(e,t,r,i,n,a){if(!r){e.text="",e.isTruncated=!1;return}var o=(t+"").split(`\n`);a=HA(r,i,n,a);for(var s=!1,u={},l=0,c=o.length;l<c;l++)WA(u,o[l],a),o[l]=u.textLine,s=s||u.isTruncated;e.text=o.join(`\n`),e.isTruncated=s}function HA(e,t,r,i){i=i||{};var n=V({},i);r=J(r,"..."),n.maxIterations=J(i.maxIterations,2);var a=n.minChar=J(i.minChar,0),o=n.fontMeasureInfo=an(t),s=o.asciiCharWidth;n.placeholder=J(i.placeholder,"");for(var u=e=Math.max(0,e-1),l=0;l<a&&u>=s;l++)u-=s;var c=on(o,r);return c>u&&(r="",c=0),u=e-c,n.ellipsis=r,n.ellipsisWidth=c,n.contentWidth=u,n.containerWidth=e,n}function WA(e,t,r){var i=r.containerWidth,n=r.contentWidth,a=r.fontMeasureInfo;if(!i){e.textLine="",e.isTruncated=!1;return}var o=on(a,t);if(o<=i){e.textLine=t,e.isTruncated=!1;return}for(var s=0;;s++){if(o<=n||s>=r.maxIterations){t+=r.ellipsis;break}var u=s===0?CB(t,n,a):o>0?Math.floor(t.length*n/o):0;t=t.substr(0,u),o=on(a,t)}t===""&&(t=r.placeholder),e.textLine=t,e.isTruncated=!0}function CB(e,t,r){for(var i=0,n=0,a=e.length;n<a&&i<t;n++)i+=TA(r,e.charCodeAt(n));return n}function AB(e,t,r,i){var n=L0(e),a=t.overflow,o=t.padding,s=o?o[1]+o[3]:0,u=o?o[0]+o[2]:0,l=t.font,c=a==="truncate",f=wl(l),d=J(t.lineHeight,f),h=t.lineOverflow==="truncate",v=!1,p=t.width;p==null&&r!=null&&(p=r-s);var g=t.height;g==null&&i!=null&&(g=i-u);var m;p!=null&&(a==="break"||a==="breakAll")?m=n?qA(n,t.font,p,a==="breakAll",0).lines:[]:m=n?n.split(`\n`):[];var y=m.length*d;if(g==null&&(g=y),y>g&&h){var _=Math.floor(g/d);v=v||m.length>_,m=m.slice(0,_),y=m.length*d}if(n&&c&&p!=null)for(var b=HA(p,l,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),S={},w=0;w<m.length;w++)WA(S,m[w],b),m[w]=S.textLine,v=v||S.isTruncated;for(var x=g,T=0,k=an(l),w=0;w<m.length;w++)T=Math.max(on(k,m[w]),T);p==null&&(p=T);var I=p;return x+=u,I+=s,{lines:m,height:g,outerWidth:I,outerHeight:x,lineHeight:d,calculatedLineHeight:f,contentWidth:T,contentHeight:y,width:p,isTruncated:v}}var PB=(function(){function e(){}return e})(),bw=(function(){function e(t){this.tokens=[],t&&(this.tokens=t)}return e})(),MB=(function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return e})();function LB(e,t,r,i,n){var a=new MB,o=L0(e);if(!o)return a;var s=t.padding,u=s?s[1]+s[3]:0,l=s?s[0]+s[2]:0,c=t.width;c==null&&r!=null&&(c=r-u);var f=t.height;f==null&&i!=null&&(f=i-l);for(var d=t.overflow,h=(d==="break"||d==="breakAll")&&c!=null?{width:c,accumWidth:0,breakAll:d==="breakAll"}:null,v=Sv.lastIndex=0,p;(p=Sv.exec(o))!=null;){var g=p.index;g>v&&wv(a,o.substring(v,g),t,h),wv(a,p[2],t,h,p[1]),v=Sv.lastIndex}v<o.length&&wv(a,o.substring(v,o.length),t,h);var m=[],y=0,_=0,b=d==="truncate",S=t.lineOverflow==="truncate",w={};function x(ye,tt,Je){ye.width=tt,ye.lineHeight=Je,y+=Je,_=Math.max(_,tt)}e:for(var T=0;T<a.lines.length;T++){for(var k=a.lines[T],I=0,$=0,A=0;A<k.tokens.length;A++){var D=k.tokens[A],P=D.styleName&&t.rich[D.styleName]||{},L=D.textPadding=P.padding,z=L?L[1]+L[3]:0,B=D.font=P.font||t.font;D.contentHeight=wl(B);var N=J(P.height,D.contentHeight);if(D.innerHeight=N,L&&(N+=L[0]+L[2]),D.height=N,D.lineHeight=Gi(P.lineHeight,t.lineHeight,N),D.align=P&&P.align||n,D.verticalAlign=P&&P.verticalAlign||"middle",S&&f!=null&&y+D.lineHeight>f){var F=a.lines.length;A>0?(k.tokens=k.tokens.slice(0,A),x(k,$,I),a.lines=a.lines.slice(0,T+1)):a.lines=a.lines.slice(0,T),a.isTruncated=a.isTruncated||a.lines.length<F;break e}var Z=P.width,G=Z==null||Z==="auto";if(typeof Z=="string"&&Z.charAt(Z.length-1)==="%")D.percentWidth=Z,m.push(D),D.contentWidth=on(an(B),D.text);else{if(G){var W=P.backgroundColor,ee=W&&W.image;ee&&(ee=$B(ee),mh(ee)&&(D.width=Math.max(D.width,ee.width*N/ee.height)))}var K=b&&c!=null?c-$:null;K!=null&&K<D.width?!G||K<z?(D.text="",D.width=D.contentWidth=0):(DB(w,D.text,K-z,B,t.ellipsis,{minChar:t.truncateMinChar}),D.text=w.text,a.isTruncated=a.isTruncated||w.isTruncated,D.width=D.contentWidth=on(an(B),D.text)):D.contentWidth=on(an(B),D.text)}D.width+=z,$+=D.width,P&&(I=Math.max(I,D.lineHeight))}x(k,$,I)}a.outerWidth=a.width=J(c,_),a.outerHeight=a.height=J(f,y),a.contentHeight=y,a.contentWidth=_,a.outerWidth+=u,a.outerHeight+=l;for(var T=0;T<m.length;T++){var D=m[T],ce=D.percentWidth;D.width=parseInt(ce,10)/100*a.width}return a}function wv(e,t,r,i,n){var a=t==="",o=n&&r.rich[n]||{},s=e.lines,u=o.font||r.font,l=!1,c,f;if(i){var d=o.padding,h=d?d[1]+d[3]:0;if(o.width!=null&&o.width!=="auto"){var v=ra(o.width,i.width)+h;s.length>0&&v+i.accumWidth>i.width&&(c=t.split(`\n`),l=!0),i.accumWidth=v}else{var p=qA(t,u,i.width,i.breakAll,i.accumWidth);i.accumWidth=p.accumWidth+h,f=p.linesWidths,c=p.lines}}c||(c=t.split(`\n`));for(var g=an(u),m=0;m<c.length;m++){var y=c[m],_=new PB;if(_.styleName=n,_.text=y,_.isLineHolder=!y&&!a,typeof o.width=="number"?_.width=o.width:_.width=f?f[m]:on(g,y),!m&&!l){var b=(s[s.length-1]||(s[0]=new bw)).tokens,S=b.length;S===1&&b[0].isLineHolder?b[0]=_:(y||!S||a)&&b.push(_)}else s.push(new bw([_]))}}function OB(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var EB=ei(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function zB(e){return OB(e)?!!EB[e]:!0}function qA(e,t,r,i,n){for(var a=[],o=[],s="",u="",l=0,c=0,f=an(t),d=0;d<e.length;d++){var h=e.charAt(d);if(h===`\n`){u&&(s+=u,c+=l),a.push(s),o.push(c),s="",u="",l=0,c=0;continue}var v=TA(f,h.charCodeAt(0)),p=i?!1:!zB(h);if(a.length?c+v>r:n+c+v>r){c?(s||u)&&(p?(s||(s=u,u="",l=0,c=l),a.push(s),o.push(c-l),u+=h,l+=v,s="",c=l):(u&&(s+=u,u="",l=0),a.push(s),o.push(c),s=h,c=v)):p?(a.push(u),o.push(l),u=h,l=v):(a.push(h),o.push(v));continue}c+=v,p?(u+=h,l+=v):(u&&(s+=u,u="",l=0),s+=h)}return u&&(s+=u),s&&(a.push(s),o.push(c)),a.length===1&&(c+=n),{accumWidth:c,lines:a,linesWidths:o}}function Sw(e,t,r,i,n,a){if(e.baseX=r,e.baseY=i,e.outerWidth=e.outerHeight=null,!!t){var o=t.width*2,s=t.height*2;fe.set(ww,vo(r,o,n),Wi(i,s,a),o,s),fe.intersect(t,ww,null,xw);var u=xw.outIntersectRect;e.outerWidth=u.width,e.outerHeight=u.height,e.baseX=vo(u.x,u.width,n,!0),e.baseY=Wi(u.y,u.height,a,!0)}}var ww=new fe(0,0,0,0),xw={outIntersectRect:{},clamp:!0};function L0(e){return e!=null?e+="":e=""}function RB(e){var t=L0(e.text),r=e.font,i=on(an(r),t),n=wl(r);return hg(e,i,n,null)}function hg(e,t,r,i){var n=new fe(vo(e.x||0,t,e.textAlign),Wi(e.y||0,r,e.textBaseline),t,r),a=i??(YA(e)?e.lineWidth:0);return a>0&&(n.x-=a/2,n.y-=a/2,n.width+=a,n.height+=a),n}function YA(e){var t=e.stroke;return t!=null&&t!=="none"&&e.lineWidth>0}var vg="__zr_style_"+Math.round(Math.random()*10),qi={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},yh={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};qi[vg]=!0;var Tw=["z","z2","invisible"],NB=["invisible"],Il=(function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var i=Te(r),n=0;n<i.length;n++){var a=i[n];a==="style"?this.useStyle(r[a]):e.prototype.attrKV.call(this,a,r[a])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(r){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(r,i,n,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&UB(this,r,i)||o&&!o[0]&&!o[3])return!1;if(n&&this.__clipPaths&&this.__clipPaths.length){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var u=this.parent;u;){if(u.ignore)return!1;u=u.parent}return!0},t.prototype.contain=function(r,i){return this.rectContain(r,i)},t.prototype.traverse=function(r,i){r.call(i,this)},t.prototype.rectContain=function(r,i){var n=this.transformCoordToLocal(r,i),a=this.getBoundingRect();return a.contain(n[0],n[1])},t.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var i=this.transform,n=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,u=a.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new fe(0,0,0,0)),i?fe.applyTransform(r,n,i):r.copy(n),(o||s||u)&&(r.width+=o*2+Math.abs(s),r.height+=o*2+Math.abs(u),r.x=Math.min(r.x,r.x+s-o),r.y=Math.min(r.y,r.y+u-o));var l=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-l),r.y=Math.floor(r.y-l),r.width=Math.ceil(r.width+1+l*2),r.height=Math.ceil(r.height+1+l*2))}return r},t.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new fe(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,i){r!=="style"?e.prototype.attrKV.call(this,r,i):this.style?this.setStyle(i):this.useStyle(i)},t.prototype.setStyle=function(r,i){return typeof r=="string"?this.style[r]=i:V(this.style,r),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=_s,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&_s)},t.prototype.styleUpdated=function(){this.__dirty&=~_s},t.prototype.createStyle=function(r){return fh(qi,r)},t.prototype.useStyle=function(r){r[vg]||(r=this.createStyle(r)),this.style=r,this.dirtyStyle()},t.prototype._useHoverStyle=function(r){this.__hoverStyle=r},t.prototype.isStyleObject=function(r){return r[vg]},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var i=this._normalState;r.style&&!i.style&&(i.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(r,i,Tw)},t.prototype._applyStateObj=function(r,i,n,a,o,s){e.prototype._applyStateObj.call(this,r,i,n,a,o,s);var u=!(i&&a),l=this.__inHover===vh,c;if(i&&i.style?o?a?c=i.style:(c=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(c,i.style)):(c=this._mergeStyle(this.createStyle(),a?this.style:n.style),this._mergeStyle(c,i.style)):u&&(c=n.style),c)if(o){var f=this.style;if(this.style=this.createStyle(u?{}:f),u)for(var d=Te(f),h=0;h<d.length;h++){var v=d[h];v in c&&(c[v]=c[v],this.style[v]=f[v])}for(var p=Te(c),h=0;h<p.length;h++){var v=p[h];this.style[v]=this.style[v]}this._transitionState(r,{style:c},s,this.getAnimationStyleProps())}else l?this._useHoverStyle(c):this.useStyle(c);if(!l)for(var g=this.__inHover?NB:Tw,h=0;h<g.length;h++){var v=g[h];i&&i[v]!=null?this[v]=i[v]:u&&n[v]!=null&&(this[v]=n[v])}},t.prototype._mergeStates=function(r){for(var i=e.prototype._mergeStates.call(this,r),n,a=0;a<r.length;a++){var o=r[a];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(i.style=n),i},t.prototype._mergeStyle=function(r,i){return V(r,i),r},t.prototype.getAnimationStyleProps=function(){return yh},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=0,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=Lr|_s})(),t})(ph),xv=new fe(0,0,0,0),Tv=new fe(0,0,0,0);function UB(e,t,r){return xv.copy(e.getBoundingRect()),e.transform&&xv.applyTransform(e.transform),Tv.width=t,Tv.height=r,!xv.intersect(Tv)}var vr=Math.min,pr=Math.max,kv=Math.sin,Iv=Math.cos,mi=Math.PI*2,ql=Uo(),Yl=Uo(),Xl=Uo();function kw(e,t,r,i,n,a){n[0]=vr(e,r),n[1]=vr(t,i),a[0]=pr(e,r),a[1]=pr(t,i)}var Iw=[],$w=[];function BB(e,t,r,i,n,a,o,s,u,l){var c=lA,f=dt,d=c(e,r,n,o,Iw);u[0]=1/0,u[1]=1/0,l[0]=-1/0,l[1]=-1/0;for(var h=0;h<d;h++){var v=f(e,r,n,o,Iw[h]);u[0]=vr(v,u[0]),l[0]=pr(v,l[0])}d=c(t,i,a,s,$w);for(var h=0;h<d;h++){var p=f(t,i,a,s,$w[h]);u[1]=vr(p,u[1]),l[1]=pr(p,l[1])}u[0]=vr(e,u[0]),l[0]=pr(e,l[0]),u[0]=vr(o,u[0]),l[0]=pr(o,l[0]),u[1]=vr(t,u[1]),l[1]=pr(t,l[1]),u[1]=vr(s,u[1]),l[1]=pr(s,l[1])}function FB(e,t,r,i,n,a,o,s){var u=fA,l=$t,c=pr(vr(u(e,r,n),1),0),f=pr(vr(u(t,i,a),1),0),d=l(e,r,n,c),h=l(t,i,a,f);o[0]=vr(e,n,d),o[1]=vr(t,a,h),s[0]=pr(e,n,d),s[1]=pr(t,a,h)}function jB(e,t,r,i,n,a,o,s,u){var l=Ua,c=Ba,f=Math.abs(n-a);if(f%mi<1e-4&&f>1e-4){s[0]=e-r,s[1]=t-i,u[0]=e+r,u[1]=t+i;return}if(ql[0]=Iv(n)*r+e,ql[1]=kv(n)*i+t,Yl[0]=Iv(a)*r+e,Yl[1]=kv(a)*i+t,l(s,ql,Yl),c(u,ql,Yl),n=n%mi,n<0&&(n=n+mi),a=a%mi,a<0&&(a=a+mi),n>a&&!o?a+=mi:n<a&&o&&(n+=mi),o){var d=a;a=n,n=d}for(var h=0;h<a;h+=Math.PI/2)h>n&&(Xl[0]=Iv(h)*r+e,Xl[1]=kv(h)*i+t,l(s,Xl,s),c(u,Xl,u))}var Ee={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},yi=[],_i=[],Gr=[],On=[],Hr=[],Wr=[],$v=Math.min,Dv=Math.max,bi=Math.cos,Si=Math.sin,dn=Math.abs,pg=Math.PI,jn=pg*2,Cv=typeof Float32Array<"u",es=[];function Av(e){var t=Math.round(e/pg*1e8)/1e8;return t%2*pg}function XA(e,t){var r=Av(e[0]);r<0&&(r+=jn);var i=r-e[0],n=e[1];n+=i,!t&&n-r>=jn?n=r+jn:t&&r-n>=jn?n=r-jn:!t&&r>n?n=r+(jn-Av(r-n)):t&&r<n&&(n=r-(jn-Av(n-r))),e[0]=r,e[1]=n}var Cn=(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,i){i=i||0,i>0&&(this._ux=dn(i/aw/t)||0,this._uy=dn(i/aw/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(Ee.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 i=dn(t-this._xi),n=dn(r-this._yi),a=i>this._ux||n>this._uy;if(this.addData(Ee.L,t,r),this._ctx&&a&&this._ctx.lineTo(t,r),a)this._xi=t,this._yi=r,this._pendingPtDist=0;else{var o=i*i+n*n;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=r,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(t,r,i,n,a,o){return this._drawPendingPt(),this.addData(Ee.C,t,r,i,n,a,o),this._ctx&&this._ctx.bezierCurveTo(t,r,i,n,a,o),this._xi=a,this._yi=o,this},e.prototype.quadraticCurveTo=function(t,r,i,n){return this._drawPendingPt(),this.addData(Ee.Q,t,r,i,n),this._ctx&&this._ctx.quadraticCurveTo(t,r,i,n),this._xi=i,this._yi=n,this},e.prototype.arc=function(t,r,i,n,a,o){this._drawPendingPt(),es[0]=n,es[1]=a,XA(es,o),n=es[0],a=es[1];var s=a-n;return this.addData(Ee.A,t,r,i,i,n,s,0,o?0:1),this._ctx&&this._ctx.arc(t,r,i,n,a,o),this._xi=bi(a)*i+t,this._yi=Si(a)*i+r,this},e.prototype.arcTo=function(t,r,i,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,r,i,n,a),this},e.prototype.rect=function(t,r,i,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,r,i,n),this.addData(Ee.R,t,r,i,n),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(Ee.Z);var t=this._ctx,r=this._x0,i=this._y0;return t&&t.closePath(),this._xi=r,this._yi=i,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){if(this._saveData){var r=t.length;!(this.data&&this.data.length===r)&&Cv&&(this.data=new Float32Array(r));for(var i=0;i<r;i++)this.data[i]=t[i];this._len=r}},e.prototype.appendPath=function(t){if(this._saveData){t instanceof Array||(t=[t]);for(var r=t.length,i=0,n=this._len,a=0;a<r;a++)i+=t[a].len();var o=this.data;if(Cv&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(n+i),n>0&&o))for(var s=0;s<n;s++)this.data[s]=o[s];for(var a=0;a<r;a++)for(var u=t[a].data,s=0;s<u.length;s++)this.data[n++]=u[s];this._len=n}},e.prototype.addData=function(t,r,i,n,a,o,s,u,l){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,Cv&&this._len>11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){Gr[0]=Gr[1]=Hr[0]=Hr[1]=Number.MAX_VALUE,On[0]=On[1]=Wr[0]=Wr[1]=-Number.MAX_VALUE;var t=this.data,r=0,i=0,n=0,a=0,o;for(o=0;o<this._len;){var s=t[o++],u=o===1;switch(u&&(r=t[o],i=t[o+1],n=r,a=i),s){case Ee.M:r=n=t[o++],i=a=t[o++],Hr[0]=n,Hr[1]=a,Wr[0]=n,Wr[1]=a;break;case Ee.L:kw(r,i,t[o],t[o+1],Hr,Wr),r=t[o++],i=t[o++];break;case Ee.C:BB(r,i,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],Hr,Wr),r=t[o++],i=t[o++];break;case Ee.Q:FB(r,i,t[o++],t[o++],t[o],t[o+1],Hr,Wr),r=t[o++],i=t[o++];break;case Ee.A:var l=t[o++],c=t[o++],f=t[o++],d=t[o++],h=t[o++],v=t[o++]+h;o+=1;var p=!t[o++];u&&(n=bi(h)*f+l,a=Si(h)*d+c),jB(l,c,f,d,h,v,p,Hr,Wr),r=bi(v)*f+l,i=Si(v)*d+c;break;case Ee.R:n=r=t[o++],a=i=t[o++];var g=t[o++],m=t[o++];kw(n,a,n+g,a+m,Hr,Wr);break;case Ee.Z:r=n,i=a;break}Ua(Gr,Gr,Hr),Ba(On,On,Wr)}return o===0&&(Gr[0]=Gr[1]=On[0]=On[1]=0),new fe(Gr[0],Gr[1],On[0]-Gr[0],On[1]-Gr[1])},e.prototype._calculateLength=function(){var t=this.data,r=this._len,i=this._ux,n=this._uy,a=0,o=0,s=0,u=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,c=0,f=0,d=0;d<r;){var h=t[d++],v=d===1;v&&(a=t[d],o=t[d+1],s=a,u=o);var p=-1;switch(h){case Ee.M:a=s=t[d++],o=u=t[d++];break;case Ee.L:{var g=t[d++],m=t[d++],y=g-a,_=m-o;(dn(y)>i||dn(_)>n||d===r-1)&&(p=Math.sqrt(y*y+_*_),a=g,o=m);break}case Ee.C:{var b=t[d++],S=t[d++],g=t[d++],m=t[d++],w=t[d++],x=t[d++];p=HU(a,o,b,S,g,m,w,x,10),a=w,o=x;break}case Ee.Q:{var b=t[d++],S=t[d++],g=t[d++],m=t[d++];p=qU(a,o,b,S,g,m,10),a=g,o=m;break}case Ee.A:var T=t[d++],k=t[d++],I=t[d++],$=t[d++],A=t[d++],D=t[d++],P=D+A;d+=1,v&&(s=bi(A)*I+T,u=Si(A)*$+k),p=Dv(I,$)*$v(jn,Math.abs(D)),a=bi(P)*I+T,o=Si(P)*$+k;break;case Ee.R:{s=a=t[d++],u=o=t[d++];var L=t[d++],z=t[d++];p=L*2+z*2;break}case Ee.Z:{var y=s-a,_=u-o;p=Math.sqrt(y*y+_*_),a=s,o=u;break}}p>=0&&(l[f++]=p,c+=p)}return this._pathLen=c,c},e.prototype.rebuildPath=function(t,r){var i=this.data,n=this._ux,a=this._uy,o=this._len,s,u,l,c,f,d,h=r<1,v,p,g=0,m=0,y,_=0,b,S;if(!(h&&(this._pathSegLen||this._calculateLength(),v=this._pathSegLen,p=this._pathLen,y=r*p,!y)))e:for(var w=0;w<o;){var x=i[w++],T=w===1;switch(T&&(l=i[w],c=i[w+1],s=l,u=c),x!==Ee.L&&_>0&&(t.lineTo(b,S),_=0),x){case Ee.M:s=l=i[w++],u=c=i[w++],t.moveTo(l,c);break;case Ee.L:{f=i[w++],d=i[w++];var k=dn(f-l),I=dn(d-c);if(k>n||I>a){if(h){var $=v[m++];if(g+$>y){var A=(y-g)/$;t.lineTo(l*(1-A)+f*A,c*(1-A)+d*A);break e}g+=$}t.lineTo(f,d),l=f,c=d,_=0}else{var D=k*k+I*I;D>_&&(b=f,S=d,_=D)}break}case Ee.C:{var P=i[w++],L=i[w++],z=i[w++],B=i[w++],N=i[w++],F=i[w++];if(h){var $=v[m++];if(g+$>y){var A=(y-g)/$;df(l,P,z,N,A,yi),df(c,L,B,F,A,_i),t.bezierCurveTo(yi[1],_i[1],yi[2],_i[2],yi[3],_i[3]);break e}g+=$}t.bezierCurveTo(P,L,z,B,N,F),l=N,c=F;break}case Ee.Q:{var P=i[w++],L=i[w++],z=i[w++],B=i[w++];if(h){var $=v[m++];if(g+$>y){var A=(y-g)/$;hf(l,P,z,A,yi),hf(c,L,B,A,_i),t.quadraticCurveTo(yi[1],_i[1],yi[2],_i[2]);break e}g+=$}t.quadraticCurveTo(P,L,z,B),l=z,c=B;break}case Ee.A:var Z=i[w++],G=i[w++],W=i[w++],ee=i[w++],K=i[w++],ce=i[w++],ye=i[w++],tt=!i[w++],Je=W>ee?W:ee,Ie=dn(W-ee)>.001,Ye=K+ce,oe=!1;if(h){var $=v[m++];g+$>y&&(Ye=K+ce*(y-g)/$,oe=!0),g+=$}if(Ie&&t.ellipse?t.ellipse(Z,G,W,ee,ye,K,Ye,tt):t.arc(Z,G,Je,K,Ye,tt),oe)break e;T&&(s=bi(K)*W+Z,u=Si(K)*ee+G),l=bi(Ye)*W+Z,c=Si(Ye)*ee+G;break;case Ee.R:s=l=i[w],u=c=i[w+1],f=i[w++],d=i[w++];var _e=i[w++],Ft=i[w++];if(h){var $=v[m++];if(g+$>y){var rt=y-g;t.moveTo(f,d),t.lineTo(f+$v(rt,_e),d),rt-=_e,rt>0&&t.lineTo(f+_e,d+$v(rt,Ft)),rt-=Ft,rt>0&&t.lineTo(f+Dv(_e-rt,0),d+Ft),rt-=_e,rt>0&&t.lineTo(f,d+Dv(Ft-rt,0));break e}g+=$}t.rect(f,d,_e,Ft);break;case Ee.Z:if(h){var $=v[m++];if(g+$>y){var A=(y-g)/$;t.lineTo(l*(1-A)+s*A,c*(1-A)+u*A);break e}g+=$}t.closePath(),l=s,c=u}}},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.prototype.canSave=function(){return!!this._saveData},e.CMD=Ee,e.initDefaultProps=(function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),e})();function Ta(e,t,r,i,n,a,o){if(n===0)return!1;var s=n,u=0,l=e;if(o>t+s&&o>i+s||o<t-s&&o<i-s||a>e+s&&a>r+s||a<e-s&&a<r-s)return!1;if(e!==r)u=(t-i)/(e-r),l=(e*i-r*t)/(e-r);else return Math.abs(a-e)<=s/2;var c=u*a-o+l,f=c*c/(u*u+1);return f<=s/2*s/2}function ZB(e,t,r,i,n,a,o,s,u,l,c){if(u===0)return!1;var f=u;if(c>t+f&&c>i+f&&c>a+f&&c>s+f||c<t-f&&c<i-f&&c<a-f&&c<s-f||l>e+f&&l>r+f&&l>n+f&&l>o+f||l<e-f&&l<r-f&&l<n-f&&l<o-f)return!1;var d=cA(e,t,r,i,n,a,o,s,l,c,null);return d<=f/2}function VB(e,t,r,i,n,a,o,s,u){if(o===0)return!1;var l=o;if(u>t+l&&u>i+l&&u>a+l||u<t-l&&u<i-l&&u<a-l||s>e+l&&s>r+l&&s>n+l||s<e-l&&s<r-l&&s<n-l)return!1;var c=dA(e,t,r,i,n,a,s,u,null);return c<=l/2}var Dw=Math.PI*2;function yn(e){return e%=Dw,e<0&&(e+=Dw),e}var ts=Math.PI*2;function GB(e,t,r,i,n,a,o,s,u){if(o===0)return!1;var l=o;s-=e,u-=t;var c=Math.sqrt(s*s+u*u);if(c-l>r||c+l<r)return!1;if(Math.abs(i-n)%ts<1e-4)return!0;if(a){var f=i;i=yn(n),n=yn(f)}else i=yn(i),n=yn(n);i>n&&(n+=ts);var d=Math.atan2(u,s);return d<0&&(d+=ts),d>=i&&d<=n||d+ts>=i&&d+ts<=n}function wi(e,t,r,i,n,a){if(a>t&&a>i||a<t&&a<i||i===t)return 0;var o=(a-t)/(i-t),s=i<t?1:-1;(o===1||o===0)&&(s=i<t?.5:-.5);var u=o*(r-e)+e;return u===n?1/0:u>n?s:0}var En=Cn.CMD,xi=Math.PI*2,HB=1e-4;function WB(e,t){return Math.abs(e-t)<HB}var Ot=[-1,-1,-1],fr=[-1,-1];function qB(){var e=fr[0];fr[0]=fr[1],fr[1]=e}function YB(e,t,r,i,n,a,o,s,u,l){if(l>t&&l>i&&l>a&&l>s||l<t&&l<i&&l<a&&l<s)return 0;var c=ff(t,i,a,s,l,Ot);if(c===0)return 0;for(var f=0,d=-1,h=void 0,v=void 0,p=0;p<c;p++){var g=Ot[p],m=g===0||g===1?.5:1,y=dt(e,r,n,o,g);y<u||(d<0&&(d=lA(t,i,a,s,fr),fr[1]<fr[0]&&d>1&&qB(),h=dt(t,i,a,s,fr[0]),d>1&&(v=dt(t,i,a,s,fr[1]))),d===2?g<fr[0]?f+=h<t?m:-m:g<fr[1]?f+=v<h?m:-m:f+=s<v?m:-m:g<fr[0]?f+=h<t?m:-m:f+=s<h?m:-m)}return f}function XB(e,t,r,i,n,a,o,s){if(s>t&&s>i&&s>a||s<t&&s<i&&s<a)return 0;var u=WU(t,i,a,s,Ot);if(u===0)return 0;var l=fA(t,i,a);if(l>=0&&l<=1){for(var c=0,f=$t(t,i,a,l),d=0;d<u;d++){var h=Ot[d]===0||Ot[d]===1?.5:1,v=$t(e,r,n,Ot[d]);v<o||(Ot[d]<l?c+=f<t?h:-h:c+=a<f?h:-h)}return c}else{var h=Ot[0]===0||Ot[0]===1?.5:1,v=$t(e,r,n,Ot[0]);return v<o?0:a<t?h:-h}}function KB(e,t,r,i,n,a,o,s){if(s-=t,s>r||s<-r)return 0;var u=Math.sqrt(r*r-s*s);Ot[0]=-u,Ot[1]=u;var l=Math.abs(i-n);if(l<1e-4)return 0;if(l>=xi-1e-4){i=0,n=xi;var c=a?1:-1;return o>=Ot[0]+e&&o<=Ot[1]+e?c:0}if(i>n){var f=i;i=n,n=f}i<0&&(i+=xi,n+=xi);for(var d=0,h=0;h<2;h++){var v=Ot[h];if(v+e>o){var p=Math.atan2(s,v),c=a?1:-1;p<0&&(p=xi+p),(p>=i&&p<=n||p+xi>=i&&p+xi<=n)&&(p>Math.PI/2&&p<Math.PI*1.5&&(c=-c),d+=c)}}return d}function KA(e,t,r,i,n){for(var a=e.data,o=e.len(),s=0,u=0,l=0,c=0,f=0,d,h,v=0;v<o;){var p=a[v++],g=v===1;switch(p===En.M&&v>1&&(r||(s+=wi(u,l,c,f,i,n))),g&&(u=a[v],l=a[v+1],c=u,f=l),p){case En.M:c=a[v++],f=a[v++],u=c,l=f;break;case En.L:if(r){if(Ta(u,l,a[v],a[v+1],t,i,n))return!0}else s+=wi(u,l,a[v],a[v+1],i,n)||0;u=a[v++],l=a[v++];break;case En.C:if(r){if(ZB(u,l,a[v++],a[v++],a[v++],a[v++],a[v],a[v+1],t,i,n))return!0}else s+=YB(u,l,a[v++],a[v++],a[v++],a[v++],a[v],a[v+1],i,n)||0;u=a[v++],l=a[v++];break;case En.Q:if(r){if(VB(u,l,a[v++],a[v++],a[v],a[v+1],t,i,n))return!0}else s+=XB(u,l,a[v++],a[v++],a[v],a[v+1],i,n)||0;u=a[v++],l=a[v++];break;case En.A:var m=a[v++],y=a[v++],_=a[v++],b=a[v++],S=a[v++],w=a[v++];v+=1;var x=!!(1-a[v++]);d=Math.cos(S)*_+m,h=Math.sin(S)*b+y,g?(c=d,f=h):s+=wi(u,l,d,h,i,n);var T=(i-m)*b/_+m;if(r){if(GB(m,y,b,S,S+w,x,t,T,n))return!0}else s+=KB(m,y,b,S,S+w,x,T,n);u=Math.cos(S+w)*_+m,l=Math.sin(S+w)*b+y;break;case En.R:c=u=a[v++],f=l=a[v++];var k=a[v++],I=a[v++];if(d=c+k,h=f+I,r){if(Ta(c,f,d,f,t,i,n)||Ta(d,f,d,h,t,i,n)||Ta(d,h,c,h,t,i,n)||Ta(c,h,c,f,t,i,n))return!0}else s+=wi(d,f,d,h,i,n),s+=wi(c,h,c,f,i,n);break;case En.Z:if(r){if(Ta(u,l,c,f,t,i,n))return!0}else s+=wi(u,l,c,f,i,n);u=c,l=f;break}}return!r&&!WB(l,f)&&(s+=wi(u,l,c,f,i,n)||0),s!==0}function JB(e,t,r){return KA(e,0,!1,t,r)}function QB(e,t,r,i){return KA(e,t,!0,r,i)}var _f=je({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},qi),eF={style:je({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},yh.style)},Pv=hh.concat(["invisible","culling","z","z2","zlevel","parent"]),Pe=(function(e){H(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 i=this.style;if(i.decal){var n=this._decalEl=this._decalEl||new t;n.buildPath===t.prototype.buildPath&&(n.buildPath=function(u){r.buildPath(u,r.shape)}),n.silent=!0;var a=n.style;for(var o in i)a[o]!==i[o]&&(a[o]=i[o]);a.fill=i.fill?i.decal:null,a.decal=null,a.shadowColor=null,i.strokeFirst&&(a.stroke=null);for(var s=0;s<Pv.length;++s)n[Pv[s]]=this[Pv[s]];n.__dirty|=Lr}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(r){var i=Te(r);this.shape=this.getDefaultShape();var n=this.getDefaultStyle();n&&this.useStyle(n);for(var a=0;a<i.length;a++){var o=i[a],s=r[o];o==="style"?this.style?V(this.style,s):this.useStyle(s):o==="shape"?V(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(te(r)){var i=vf(r,0);return i>.5?og:i>.2?b6:sg}else if(r)return sg}return og},t.prototype.getInsideTextStroke=function(r){var i=this.style.fill;if(te(i)){var n=this.__zr,a=!!(n&&n.isDarkMode()),o=vf(r,0)<ag;if(a===o)return i}},t.prototype.buildPath=function(r,i,n){},t.prototype.pathUpdated=function(){this.__dirty&=~za},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 Cn(!1)},t.prototype.hasStroke=function(){var r=this.style,i=r.stroke;return!(i==null||i==="none"||!(r.lineWidth>0))},t.prototype.hasFill=function(){var r=this.style,i=r.fill;return i!=null&&i!=="none"},t.prototype.getBoundingRect=function(){var r=this._rect,i=this.style,n=!r;if(n){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&za)&&(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||n){s.copy(r);var u=i.strokeNoScale?this.getLineScale():1,l=i.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;l=Math.max(l,c??4)}u>1e-10&&(s.width+=l/u,s.height+=l/u,s.x-=l/u/2,s.y-=l/u/2)}return s}return r},t.prototype.contain=function(r,i){var n=this.transformCoordToLocal(r,i),a=this.getBoundingRect(),o=this.style;if(r=n[0],i=n[1],a.contain(r,i)){var s=this.path;if(this.hasStroke()){var u=o.lineWidth,l=o.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(this.hasFill()||(u=Math.max(u,this.strokeContainThreshold)),QB(s,u/l,r,i)))return!0}if(this.hasFill())return JB(s,r,i)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=za,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,i){r==="shape"?this.setShape(i):e.prototype.attrKV.call(this,r,i)},t.prototype.setShape=function(r,i){var n=this.shape;return n||(n=this.shape={}),typeof r=="string"?n[r]=i:V(n,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&za)},t.prototype.createStyle=function(r){return fh(_f,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var i=this._normalState;r.shape&&!i.shape&&(i.shape=V({},this.shape))},t.prototype._applyStateObj=function(r,i,n,a,o,s){if(e.prototype._applyStateObj.call(this,r,i,n,a,o,s),this.__inHover!==vh){var u=!(i&&a),l;if(i&&i.shape?o?a?l=i.shape:(l=V({},n.shape),V(l,i.shape)):(l=V({},a?this.shape:n.shape),V(l,i.shape)):u&&(l=n.shape),l)if(o){this.shape=V({},this.shape);for(var c={},f=Te(l),d=0;d<f.length;d++){var h=f[d];typeof l[h]=="object"?this.shape[h]=l[h]:c[h]=l[h]}this._transitionState(r,{shape:c},s)}else this.shape=l,this.dirtyShape()}},t.prototype._mergeStates=function(r){for(var i=e.prototype._mergeStates.call(this,r),n,a=0;a<r.length;a++){var o=r[a];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(i.shape=n),i},t.prototype.getAnimationStyleProps=function(){return eF},t.prototype.isZeroArea=function(){return!1},t.extend=function(r){var i=(function(a){H(o,a);function o(s){var u=a.call(this,s)||this;return r.init&&r.init.call(u,s),u}return o.prototype.getDefaultStyle=function(){return me(r.style)},o.prototype.getDefaultShape=function(){return me(r.shape)},o})(t);for(var n in r)typeof r[n]=="function"&&(i.prototype[n]=r[n]);return i},t.initDefaultProps=(function(){var r=t.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=Lr|_s|za})(),t})(Il),tF=je({strokeFirst:!0,font:In,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},_f),ru=(function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){return YA(this.style)},t.prototype.hasFill=function(){var r=this.style,i=r.fill;return i!=null&&i!=="none"},t.prototype.createStyle=function(r){return fh(tF,r)},t.prototype.setBoundingRect=function(r){this._rect=r},t.prototype.getBoundingRect=function(){return this._rect||(this._rect=RB(this.style)),this._rect},t.initDefaultProps=(function(){var r=t.prototype;r.dirtyRectTolerance=10})(),t})(Il);ru.prototype.type="tspan";var rF=je({x:0,y:0},qi),nF={style:je({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},yh.style)};function iF(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var fn=(function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return fh(rF,r)},t.prototype._getSize=function(r){var i=this.style,n=i[r];if(n!=null)return n;var a=iF(i.image)?i.image:this.__image;if(!a)return 0;var o=r==="width"?"height":"width",s=i[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 nF},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new fe(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t})(Il);fn.prototype.type="image";function aF(e,t){var r=t.x,i=t.y,n=t.width,a=t.height,o=t.r,s,u,l,c;n<0&&(r=r+n,n=-n),a<0&&(i=i+a,a=-a),typeof o=="number"?s=u=l=c=o:o instanceof Array?o.length===1?s=u=l=c=o[0]:o.length===2?(s=l=o[0],u=c=o[1]):o.length===3?(s=o[0],u=c=o[1],l=o[2]):(s=o[0],u=o[1],l=o[2],c=o[3]):s=u=l=c=0;var f;s+u>n&&(f=s+u,s*=n/f,u*=n/f),l+c>n&&(f=l+c,l*=n/f,c*=n/f),u+l>a&&(f=u+l,u*=a/f,l*=a/f),s+c>a&&(f=s+c,s*=a/f,c*=a/f),e.moveTo(r+s,i),e.lineTo(r+n-u,i),u!==0&&e.arc(r+n-u,i+u,u,-Math.PI/2,0),e.lineTo(r+n,i+a-l),l!==0&&e.arc(r+n-l,i+a-l,l,0,Math.PI/2),e.lineTo(r+c,i+a),c!==0&&e.arc(r+c,i+a-c,c,Math.PI/2,Math.PI),e.lineTo(r,i+s),s!==0&&e.arc(r+s,i+s,s,Math.PI,Math.PI*1.5),e.closePath()}var Za=Math.round;function JA(e,t,r){if(t){var i=t.x1,n=t.x2,a=t.y1,o=t.y2;e.x1=i,e.x2=n,e.y1=a,e.y2=o;var s=r&&r.lineWidth;return s&&(Za(i*2)===Za(n*2)&&(e.x1=e.x2=ji(i,s,!0)),Za(a*2)===Za(o*2)&&(e.y1=e.y2=ji(a,s,!0))),e}}function QA(e,t,r){if(t){var i=t.x,n=t.y,a=t.width,o=t.height;e.x=i,e.y=n,e.width=a,e.height=o;var s=r&&r.lineWidth;return s&&(e.x=ji(i,s,!0),e.y=ji(n,s,!0),e.width=Math.max(ji(i+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(ji(n+o,s,!1)-e.y,o===0?0:1)),e}}function ji(e,t,r){if(!t)return e;var i=Za(e*2);return(i+Za(t))%2===0?i/2:(i+(r?1:-1))/2}var oF=(function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e})(),sF={},st=(function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new oF},t.prototype.buildPath=function(r,i){var n,a,o,s;if(this.subPixelOptimize){var u=QA(sF,i,this.style);n=u.x,a=u.y,o=u.width,s=u.height,u.r=i.r,i=u}else n=i.x,a=i.y,o=i.width,s=i.height;i.r?aF(r,i):r.rect(n,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t})(Pe);st.prototype.type="rect";var Cw={fill:"#000"},Aw=2,qr={},uF={style:je({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},yh.style)},At=(function(e){H(t,e);function t(r){var i=e.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=Cw,i.attr(r),i}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 i=this._children[r];i.zlevel=this.zlevel,i.z=this.z,i.z2=this.z2,i.culling=this.culling,i.cursor=this.cursor,i.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 i=this.innerTransformable;return i?i.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,fF(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 i=0;i<this._children.length;i++)this._children[i].__zr=r},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var i=0;i<this._children.length;i++)this._children[i].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var r=new fe(0,0,0,0),i=this._children,n=[],a=null,o=0;o<i.length;o++){var s=i[o],u=s.getBoundingRect(),l=s.getLocalTransform(n);l?(r.copy(u),r.applyTransform(l),a=a||r.clone(),a.union(r)):(a=a||u.clone(),a.union(u))}this._rect=a||r}return this._rect},t.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||Cw},t.prototype.setTextContent=function(r){},t.prototype._mergeStyle=function(r,i){if(!i)return r;var n=i.rich,a=r.rich||n&&{};return V(r,i),n&&a?(this._mergeRich(a,n),r.rich=a):a&&(r.rich=a),r},t.prototype._mergeRich=function(r,i){for(var n=Te(i),a=0;a<n.length;a++){var o=n[a];r[o]=r[o]||{},V(r[o],i[o])}},t.prototype.getAnimationStyleProps=function(){return uF},t.prototype._getOrCreateChild=function(r){var i=this._children[this._childCursor];return(!i||!(i instanceof r))&&(i=new r),this._children[this._childCursor++]=i,i.__zr=this.__zr,i.parent=this,i},t.prototype._updatePlainTexts=function(){var r=this.style,i=r.font||In,n=r.padding,a=this._defaultStyle,o=r.x||0,s=r.y||0,u=r.align||a.align||"left",l=r.verticalAlign||a.verticalAlign||"top";Sw(qr,a.overflowRect,o,s,u,l),o=qr.baseX,s=qr.baseY;var c=Rw(r),f=AB(c,r,qr.outerWidth,qr.outerHeight),d=Mv(r),h=!!r.backgroundColor,v=f.outerHeight,p=f.outerWidth,g=f.lines,m=f.lineHeight;this.isTruncated=!!f.isTruncated;var y=o,_=Wi(s,f.contentHeight,l);if(d||n){var b=vo(o,p,u),S=Wi(s,v,l);d&&this._renderBackground(r,r,b,S,p,v)}_+=m/2,n&&(y=zw(o,u,n),l==="top"?_+=n[0]:l==="bottom"&&(_-=n[2]));for(var w=0,x=!1,T=!1,k=Ew("fill"in r?r.fill:(T=!0,a.fill)),I=Ow("stroke"in r?r.stroke:!h&&(!a.autoStroke||T)?(w=Aw,x=!0,a.stroke):null),$=r.textShadowBlur>0,A=0;A<g.length;A++){var D=this._getOrCreateChild(ru),P=D.createStyle();D.useStyle(P),P.text=g[A],P.x=y,P.y=_,P.textAlign=u,P.textBaseline="middle",P.opacity=r.opacity,P.strokeFirst=!0,$&&(P.shadowBlur=r.textShadowBlur||0,P.shadowColor=r.textShadowColor||"transparent",P.shadowOffsetX=r.textShadowOffsetX||0,P.shadowOffsetY=r.textShadowOffsetY||0),P.stroke=I,P.fill=k,I&&(P.lineWidth=r.lineWidth||w,P.lineDash=r.lineDash,P.lineDashOffset=r.lineDashOffset||0),P.font=i,Mw(P,r),_+=m,D.setBoundingRect(hg(P,f.contentWidth,f.calculatedLineHeight,x?0:null))}},t.prototype._updateRichTexts=function(){var r=this.style,i=this._defaultStyle,n=r.align||i.align,a=r.verticalAlign||i.verticalAlign,o=r.x||0,s=r.y||0;Sw(qr,i.overflowRect,o,s,n,a),o=qr.baseX,s=qr.baseY;var u=Rw(r),l=LB(u,r,qr.outerWidth,qr.outerHeight,n),c=l.width,f=l.outerWidth,d=l.outerHeight,h=r.padding;this.isTruncated=!!l.isTruncated;var v=vo(o,f,n),p=Wi(s,d,a),g=v,m=p;h&&(g+=h[3],m+=h[0]);var y=g+c;Mv(r)&&this._renderBackground(r,r,v,p,f,d);for(var _=!!r.backgroundColor,b=0;b<l.lines.length;b++){for(var S=l.lines[b],w=S.tokens,x=w.length,T=S.lineHeight,k=S.width,I=0,$=g,A=y,D=x-1,P=void 0;I<x&&(P=w[I],!P.align||P.align==="left");)this._placeToken(P,r,T,m,$,"left",_),k-=P.width,$+=P.width,I++;for(;D>=0&&(P=w[D],P.align==="right");)this._placeToken(P,r,T,m,A,"right",_),k-=P.width,A-=P.width,D--;for($+=(c-($-g)-(y-A)-k)/2;I<=D;)P=w[I],this._placeToken(P,r,T,m,$+P.width/2,"center",_),$+=P.width,I++;m+=T}},t.prototype._placeToken=function(r,i,n,a,o,s,u){var l=i.rich[r.styleName]||{};l.text=r.text;var c=r.verticalAlign,f=a+n/2;c==="top"?f=a+r.height/2:c==="bottom"&&(f=a+n-r.height/2);var d=!r.isLineHolder&&Mv(l);d&&this._renderBackground(l,i,s==="right"?o-r.width:s==="center"?o-r.width/2:o,f-r.height/2,r.width,r.height);var h=!!l.backgroundColor,v=r.textPadding;v&&(o=zw(o,s,v),f-=r.height/2-v[0]-r.innerHeight/2);var p=this._getOrCreateChild(ru),g=p.createStyle();p.useStyle(g);var m=this._defaultStyle,y=!1,_=0,b=!1,S=Ew("fill"in l?l.fill:"fill"in i?i.fill:(y=!0,m.fill)),w=Ow("stroke"in l?l.stroke:"stroke"in i?i.stroke:!h&&!u&&(!m.autoStroke||y)?(_=Aw,b=!0,m.stroke):null),x=l.textShadowBlur>0||i.textShadowBlur>0;g.text=r.text,g.x=o,g.y=f,x&&(g.shadowBlur=l.textShadowBlur||i.textShadowBlur||0,g.shadowColor=l.textShadowColor||i.textShadowColor||"transparent",g.shadowOffsetX=l.textShadowOffsetX||i.textShadowOffsetX||0,g.shadowOffsetY=l.textShadowOffsetY||i.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=r.font||In,g.opacity=Gi(l.opacity,i.opacity,1),Mw(g,l),w&&(g.lineWidth=Gi(l.lineWidth,i.lineWidth,_),g.lineDash=J(l.lineDash,i.lineDash),g.lineDashOffset=i.lineDashOffset||0,g.stroke=w),S&&(g.fill=S),p.setBoundingRect(hg(g,r.contentWidth,r.contentHeight,b?0:null))},t.prototype._renderBackground=function(r,i,n,a,o,s){var u=r.backgroundColor,l=r.borderWidth,c=r.borderColor,f=u&&u.image,d=u&&!f,h=r.borderRadius,v=this,p,g;if(d||r.lineHeight||l&&c){p=this._getOrCreateChild(st),p.useStyle(p.createStyle()),p.style.fill=null;var m=p.shape;m.x=n,m.y=a,m.width=o,m.height=s,m.r=h,p.dirtyShape()}if(d){var y=p.style;y.fill=u||null,y.fillOpacity=J(r.fillOpacity,1)}else if(f){g=this._getOrCreateChild(fn),g.onload=function(){v.dirtyStyle()};var _=g.style;_.image=u.image,_.x=n,_.y=a,_.width=o,_.height=s}if(l&&c){var y=p.style;y.lineWidth=l,y.stroke=c,y.strokeOpacity=J(r.strokeOpacity,1),y.lineDash=r.borderDash,y.lineDashOffset=r.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var b=(p||g).style;b.shadowBlur=r.shadowBlur||0,b.shadowColor=r.shadowColor||"transparent",b.shadowOffsetX=r.shadowOffsetX||0,b.shadowOffsetY=r.shadowOffsetY||0,b.opacity=Gi(r.opacity,i.opacity,1)},t.makeFont=function(r){var i="";return tP(r)&&(i=[r.fontStyle,r.fontWeight,eP(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),i&&Qr(i)||r.textFont||r.font},t})(Il),lF={left:!0,right:1,center:1},cF={top:1,bottom:1,middle:1},Pw=["fontStyle","fontWeight","fontSize","fontFamily"];function eP(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?c0+"px":e+"px"}function Mw(e,t){for(var r=0;r<Pw.length;r++){var i=Pw[r],n=t[i];n!=null&&(e[i]=n)}}function tP(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function fF(e){return Lw(e),C(e.rich,Lw),e}function Lw(e){if(e){e.font=At.makeFont(e);var t=e.align;t==="middle"&&(t="center"),e.align=t==null||lF[t]?t:"left";var r=e.verticalAlign;r==="center"&&(r="middle"),e.verticalAlign=r==null||cF[r]?r:"top";var i=e.padding;i&&(e.padding=p0(e.padding))}}function Ow(e,t){return e==null||t<=0||e==="transparent"||e==="none"?null:e.image||e.colorStops?"#000":e}function Ew(e){return e==null||e==="none"?null:e.image||e.colorStops?"#000":e}function zw(e,t,r){return t==="right"?e-r[1]:t==="center"?e+r[3]/2-r[1]/2:e+r[3]}function Rw(e){var t=e.text;return t!=null&&(t+=""),t}function Mv(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var we=ke(),dF=function(e,t,r,i){if(i){var n=we(i);n.dataIndex=r,n.dataType=t,n.seriesIndex=e,n.ssrType="chart",i.type==="group"&&i.traverse(function(a){var o=we(a);o.seriesIndex=e,o.dataIndex=r,o.dataType=t,o.ssrType="chart"})}},Zo="undefined",rP="series",nP=se(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),ar="original",Pt="arrayRows",kr="objectRows",Fr="keyedColumns",Xn="typedArray",iP="unknown",un="column",va="row",hF=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],aP=(function(){function e(t){C(hF,function(r){this[r]=Fe(t[r],t)},this)}return e})();function vF(e,t){return t.mainType===rP?e.getViewOfSeriesModel(t):e.getViewOfComponentModel(t)}var Nw=1,Uw={},oP=ke(),O0=ke(),E0=0,_h=1,bh=2,Yt=["emphasis","blur","select"],bf=["normal","emphasis","blur","select"],pF=10,gF=9,Yi="highlight",Zc="downplay",Sf="select",gg="unselect",wf="toggleSelect",z0="selectchanged";function ka(e){return e!=null&&e!=="none"}function Sh(e,t,r){e.onHoverStateChange&&(e.hoverState||0)!==r&&e.onHoverStateChange(t),e.hoverState=r}function sP(e){Sh(e,"emphasis",bh)}function uP(e){e.hoverState===bh&&Sh(e,"normal",E0)}function R0(e){Sh(e,"blur",_h)}function lP(e){e.hoverState===_h&&Sh(e,"normal",E0)}function mF(e){e.selected=!0}function yF(e){e.selected=!1}function Bw(e,t,r){t(e,r)}function Ln(e,t,r){Bw(e,t,r),e.isGroup&&e.traverse(function(i){Bw(i,t,r)})}function Fw(e,t){switch(t){case"emphasis":e.hoverState=bh;break;case"normal":e.hoverState=E0;break;case"blur":e.hoverState=_h;break;case"select":e.selected=!0}}function _F(e,t,r,i){for(var n=e.style,a={},o=0;o<t.length;o++){var s=t[o],u=n[s];a[s]=u??(i&&i[s])}for(var o=0;o<e.animators.length;o++){var l=e.animators[o];l.__fromStateTransition&&l.__fromStateTransition.indexOf(r)<0&&l.targetName==="style"&&l.saveTo(a,t)}return a}function bF(e,t,r,i){var n=r&&xe(r,"select")>=0,a=!1;if(e instanceof Pe){var o=oP(e),s=n&&o.selectFill||o.normalFill,u=n&&o.selectStroke||o.normalStroke;if(ka(s)||ka(u)){i=i||{};var l=i.style||{};l.fill==="inherit"?(a=!0,i=V({},i),l=V({},l),l.fill=s):!ka(l.fill)&&ka(s)?(a=!0,i=V({},i),l=V({},l),l.fill=Jp(s)):!ka(l.stroke)&&ka(u)&&(a||(i=V({},i),l=V({},l)),l.stroke=Jp(u)),i.style=l}}if(i&&i.z2==null){a||(i=V({},i));var c=e.z2EmphasisLift;i.z2=e.z2+(c??pF)}return i}function SF(e,t,r){if(r&&r.z2==null){r=V({},r);var i=e.z2SelectLift;r.z2=e.z2+(i??gF)}return r}function wF(e,t,r){var i=xe(e.currentStates,t)>=0,n=e.style.opacity,a=i?null:_F(e,["opacity"],t,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=V({},r),o=V({opacity:i?n:a.opacity*.1},o),r.style=o),r}function Lv(e,t){var r=this.states[e];if(this.style){if(e==="emphasis")return bF(this,e,t,r);if(e==="blur")return wF(this,e,r);if(e==="select")return SF(this,e,r)}return r}function xF(e){e.stateProxy=Lv;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=Lv),r&&(r.stateProxy=Lv)}function jw(e,t){!hP(e,t)&&!e.__highByOuter&&Ln(e,sP)}function Zw(e,t){!hP(e,t)&&!e.__highByOuter&&Ln(e,uP)}function nu(e,t){e.__highByOuter|=1<<(t||0),Ln(e,sP)}function iu(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&Ln(e,uP)}function cP(e){Ln(e,R0)}function N0(e){Ln(e,lP)}function fP(e){Ln(e,mF)}function dP(e){Ln(e,yF)}function hP(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function vP(e){var t=e.getModel(),r=[],i=[];t.eachComponent(function(n,a){var o=O0(a),s=vF(e,a),u=n==="series";!u&&i.push(s),o.isBlured&&(s.group.traverse(function(l){lP(l)}),u&&r.push(a)),o.isBlured=!1}),C(i,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(r,!1,t)})}function mg(e,t,r,i){var n=i.getModel();r=r||"coordinateSystem";function a(l,c){for(var f=0;f<c.length;f++){var d=l.getItemGraphicEl(c[f]);d&&N0(d)}}if(e!=null&&!(!t||t==="none")){var o=n.getSeriesByIndex(e),s=o.coordinateSystem;s&&s.master&&(s=s.master);var u=[];n.eachSeries(function(l){var c=o===l,f=l.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 h=i.getViewOfSeriesModel(l);if(h.group.traverse(function(g){g.__highByOuter&&c&&t==="self"||R0(g)}),Wt(t))a(l.getData(),t);else if(ne(t))for(var v=Te(t),p=0;p<v.length;p++)a(l.getData(v[p]),t[v[p]]);u.push(l),O0(l).isBlured=!0}}),n.eachComponent(function(l,c){if(l!=="series"){var f=i.getViewOfComponentModel(c);f&&f.toggleBlurSeries&&f.toggleBlurSeries(u,!0,n)}})}}function yg(e,t,r){if(!(e==null||t==null)){var i=r.getModel().getComponent(e,t);if(i){O0(i).isBlured=!0;var n=r.getViewOfComponentModel(i);!n||!n.focusBlurEnabled||n.group.traverse(function(a){R0(a)})}}}function TF(e,t,r){var i=e.seriesIndex,n=e.getData(t.dataType);if(n){var a=ia(n,t);a=(q(a)?a[0]:a)||0;var o=n.getItemGraphicEl(a);if(!o)for(var s=n.count(),u=0;!o&&u<s;)o=n.getItemGraphicEl(u++);if(o){var l=we(o);mg(i,l.focus,l.blurScope,r)}else{var c=e.get(["emphasis","focus"]),f=e.get(["emphasis","blurScope"]);c!=null&&mg(i,c,f,r)}}}function U0(e,t,r,i){var n={focusSelf:!1,dispatchers:null};if(e==null||e==="series"||t==null||r==null)return n;var a=i.getModel().getComponent(e,t);if(!a)return n;var o=i.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return n;for(var s=o.findHighDownDispatchers(r),u,l=0;l<s.length;l++)if(we(s[l]).focus==="self"){u=!0;break}return{focusSelf:u,dispatchers:s}}function kF(e,t,r){var i=we(e),n=U0(i.componentMainType,i.componentIndex,i.componentHighDownName,r),a=n.dispatchers,o=n.focusSelf;a?(o&&yg(i.componentMainType,i.componentIndex,r),C(a,function(s){return jw(s,t)})):(mg(i.seriesIndex,i.focus,i.blurScope,r),i.focus==="self"&&yg(i.componentMainType,i.componentIndex,r),jw(e,t))}function IF(e,t,r){vP(r);var i=we(e),n=U0(i.componentMainType,i.componentIndex,i.componentHighDownName,r).dispatchers;n?C(n,function(a){return Zw(a,t)}):Zw(e,t)}function $F(e,t,r){if(Sg(t)){var i=t.dataType,n=e.getData(i),a=ia(n,t);q(a)||(a=[a]),e[t.type===wf?"toggleSelect":t.type===Sf?"select":"unselect"](a,i)}}function Vw(e){var t=e.getAllData();C(t,function(r){var i=r.data,n=r.type;i.eachItemGraphicEl(function(a,o){e.isSelected(o,n)?fP(a):dP(a)})})}function DF(e){var t=[];return e.eachSeries(function(r){var i=r.getAllData();C(i,function(n){n.data;var a=n.type,o=r.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:r.seriesIndex};a!=null&&(s.dataType=a),t.push(s)}})}),t}function _g(e,t,r){pP(e,!0),Ln(e,xF),AF(e,t,r)}function CF(e){pP(e,!1)}function aa(e,t,r,i){i?CF(e):_g(e,t,r)}function AF(e,t,r){var i=we(e);t!=null?(i.focus=t,i.blurScope=r):i.focus&&(i.focus=null)}var Gw=["emphasis","blur","select"],PF={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function au(e,t,r,i){r=r||"itemStyle";for(var n=0;n<Gw.length;n++){var a=Gw[n],o=t.getModel([a,r]),s=e.ensureState(a);s.style=o[PF[r]]()}}function pP(e,t){var r=t===!1,i=e;e.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=e.highDownSilentOnTouch),(!r||i.__highDownDispatcher)&&(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!r)}function bg(e){return!!(e&&e.__highDownDispatcher)}function MF(e){var t=Uw[e];return t==null&&Nw<=32&&(t=Uw[e]=Nw++),t}function Sg(e){var t=e.type;return t===Sf||t===gg||t===wf}function Hw(e){var t=e.type;return t===Yi||t===Zc}function LF(e){var t=oP(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 Ia=Cn.CMD,OF=[[],[],[]],Ww=Math.sqrt,EF=Math.atan2;function zF(e,t){if(t){var r=e.data,i=e.len(),n,a,o,s,u,l,c=Ia.M,f=Ia.C,d=Ia.L,h=Ia.R,v=Ia.A,p=Ia.Q;for(o=0,s=0;o<i;){switch(n=r[o++],s=o,a=0,n){case c:a=1;break;case d:a=1;break;case f:a=3;break;case p:a=2;break;case v:var g=t[4],m=t[5],y=Ww(t[0]*t[0]+t[1]*t[1]),_=Ww(t[2]*t[2]+t[3]*t[3]),b=EF(-t[1]/_,t[0]/y);r[o]*=y,r[o++]+=g,r[o]*=_,r[o++]+=m,r[o++]*=y,r[o++]*=_,r[o++]+=b,r[o++]+=b,o+=2,s=o;break;case h:l[0]=r[o++],l[1]=r[o++],br(l,l,t),r[s++]=l[0],r[s++]=l[1],l[0]+=r[o++],l[1]+=r[o++],br(l,l,t),r[s++]=l[0],r[s++]=l[1]}for(u=0;u<a;u++){var S=OF[u];S[0]=r[o++],S[1]=r[o++],br(S,S,t),r[s++]=S[0],r[s++]=S[1]}}e.increaseVersion()}}var Ov=Math.sqrt,Kl=Math.sin,Jl=Math.cos,rs=Math.PI;function qw(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function wg(e,t){return(e[0]*t[0]+e[1]*t[1])/(qw(e)*qw(t))}function Yw(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(wg(e,t))}function Xw(e,t,r,i,n,a,o,s,u,l,c){var f=u*(rs/180),d=Jl(f)*(e-r)/2+Kl(f)*(t-i)/2,h=-1*Kl(f)*(e-r)/2+Jl(f)*(t-i)/2,v=d*d/(o*o)+h*h/(s*s);v>1&&(o*=Ov(v),s*=Ov(v));var p=(n===a?-1:1)*Ov((o*o*(s*s)-o*o*(h*h)-s*s*(d*d))/(o*o*(h*h)+s*s*(d*d)))||0,g=p*o*h/s,m=p*-s*d/o,y=(e+r)/2+Jl(f)*g-Kl(f)*m,_=(t+i)/2+Kl(f)*g+Jl(f)*m,b=Yw([1,0],[(d-g)/o,(h-m)/s]),S=[(d-g)/o,(h-m)/s],w=[(-1*d-g)/o,(-1*h-m)/s],x=Yw(S,w);if(wg(S,w)<=-1&&(x=rs),wg(S,w)>=1&&(x=0),x<0){var T=Math.round(x/rs*1e6)/1e6;x=rs*2+T%2*rs}c.addData(l,y,_,o,s,b,x,f,a)}var RF=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,NF=/-?([0-9]*\\.)?[0-9]+([eE]-?[0-9]+)?/g;function UF(e){var t=new Cn;if(!e)return t;var r=0,i=0,n=r,a=i,o,s=Cn.CMD,u=e.match(RF);if(!u)return t;for(var l=0;l<u.length;l++){for(var c=u[l],f=c.charAt(0),d=void 0,h=c.match(NF)||[],v=h.length,p=0;p<v;p++)h[p]=parseFloat(h[p]);for(var g=0;g<v;){var m=void 0,y=void 0,_=void 0,b=void 0,S=void 0,w=void 0,x=void 0,T=r,k=i,I=void 0,$=void 0;switch(f){case"l":r+=h[g++],i+=h[g++],d=s.L,t.addData(d,r,i);break;case"L":r=h[g++],i=h[g++],d=s.L,t.addData(d,r,i);break;case"m":r+=h[g++],i+=h[g++],d=s.M,t.addData(d,r,i),n=r,a=i,f="l";break;case"M":r=h[g++],i=h[g++],d=s.M,t.addData(d,r,i),n=r,a=i,f="L";break;case"h":r+=h[g++],d=s.L,t.addData(d,r,i);break;case"H":r=h[g++],d=s.L,t.addData(d,r,i);break;case"v":i+=h[g++],d=s.L,t.addData(d,r,i);break;case"V":i=h[g++],d=s.L,t.addData(d,r,i);break;case"C":d=s.C,t.addData(d,h[g++],h[g++],h[g++],h[g++],h[g++],h[g++]),r=h[g-2],i=h[g-1];break;case"c":d=s.C,t.addData(d,h[g++]+r,h[g++]+i,h[g++]+r,h[g++]+i,h[g++]+r,h[g++]+i),r+=h[g-2],i+=h[g-1];break;case"S":m=r,y=i,I=t.len(),$=t.data,o===s.C&&(m+=r-$[I-4],y+=i-$[I-3]),d=s.C,T=h[g++],k=h[g++],r=h[g++],i=h[g++],t.addData(d,m,y,T,k,r,i);break;case"s":m=r,y=i,I=t.len(),$=t.data,o===s.C&&(m+=r-$[I-4],y+=i-$[I-3]),d=s.C,T=r+h[g++],k=i+h[g++],r+=h[g++],i+=h[g++],t.addData(d,m,y,T,k,r,i);break;case"Q":T=h[g++],k=h[g++],r=h[g++],i=h[g++],d=s.Q,t.addData(d,T,k,r,i);break;case"q":T=h[g++]+r,k=h[g++]+i,r+=h[g++],i+=h[g++],d=s.Q,t.addData(d,T,k,r,i);break;case"T":m=r,y=i,I=t.len(),$=t.data,o===s.Q&&(m+=r-$[I-4],y+=i-$[I-3]),r=h[g++],i=h[g++],d=s.Q,t.addData(d,m,y,r,i);break;case"t":m=r,y=i,I=t.len(),$=t.data,o===s.Q&&(m+=r-$[I-4],y+=i-$[I-3]),r+=h[g++],i+=h[g++],d=s.Q,t.addData(d,m,y,r,i);break;case"A":_=h[g++],b=h[g++],S=h[g++],w=h[g++],x=h[g++],T=r,k=i,r=h[g++],i=h[g++],d=s.A,Xw(T,k,r,i,w,x,_,b,S,d,t);break;case"a":_=h[g++],b=h[g++],S=h[g++],w=h[g++],x=h[g++],T=r,k=i,r+=h[g++],i+=h[g++],d=s.A,Xw(T,k,r,i,w,x,_,b,S,d,t);break}}(f==="z"||f==="Z")&&(d=s.Z,t.addData(d),r=n,i=a),o=d}return t.toStatic(),t}var gP=(function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(r){},t})(Pe);function mP(e){return e.setData!=null}function yP(e,t){var r=UF(e),i=V({},t);return i.buildPath=function(n){var a=mP(n);if(a&&n.canSave()){n.appendPath(r);var o=n.getContext();o&&n.rebuildPath(o,1)}else{var o=a?n.getContext():n;o&&r.rebuildPath(o,1)}},i.applyTransform=function(n){zF(r,n),this.dirtyShape()},i}function BF(e,t){return new gP(yP(e,t))}function FF(e,t){var r=yP(e,t),i=(function(n){H(a,n);function a(o){var s=n.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return a})(gP);return i}function jF(e,t){for(var r=[],i=e.length,n=0;n<i;n++){var a=e[n];r.push(a.getUpdatedPathProxy(!0))}var o=new Pe(t);return o.createPathProxy(),o.buildPath=function(s){if(mP(s)){s.appendPath(r);var u=s.getContext();u&&s.rebuildPath(u,1)}},o}var ZF=(function(){function e(){this.cx=0,this.cy=0,this.r=0}return e})(),wh=(function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new ZF},t.prototype.buildPath=function(r,i){r.moveTo(i.cx+i.r,i.cy),r.arc(i.cx,i.cy,i.r,0,Math.PI*2)},t})(Pe);wh.prototype.type="circle";var VF=(function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e})(),B0=(function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new VF},t.prototype.buildPath=function(r,i){var n=.5522848,a=i.cx,o=i.cy,s=i.rx,u=i.ry,l=s*n,c=u*n;r.moveTo(a-s,o),r.bezierCurveTo(a-s,o-c,a-l,o-u,a,o-u),r.bezierCurveTo(a+l,o-u,a+s,o-c,a+s,o),r.bezierCurveTo(a+s,o+c,a+l,o+u,a,o+u),r.bezierCurveTo(a-l,o+u,a-s,o+c,a-s,o),r.closePath()},t})(Pe);B0.prototype.type="ellipse";var _P=Math.PI,Ev=_P*2,Ti=Math.sin,$a=Math.cos,GF=Math.acos,kt=Math.atan2,Kw=Math.abs,Ls=Math.sqrt,Ss=Math.max,Yr=Math.min,Ar=1e-4;function HF(e,t,r,i,n,a,o,s){var u=r-e,l=i-t,c=o-n,f=s-a,d=f*u-c*l;if(!(d*d<Ar))return d=(c*(t-a)-f*(e-n))/d,[e+d*u,t+d*l]}function Ql(e,t,r,i,n,a,o){var s=e-r,u=t-i,l=(o?a:-a)/Ls(s*s+u*u),c=l*u,f=-l*s,d=e+c,h=t+f,v=r+c,p=i+f,g=(d+v)/2,m=(h+p)/2,y=v-d,_=p-h,b=y*y+_*_,S=n-a,w=d*p-v*h,x=(_<0?-1:1)*Ls(Ss(0,S*S*b-w*w)),T=(w*_-y*x)/b,k=(-w*y-_*x)/b,I=(w*_+y*x)/b,$=(-w*y+_*x)/b,A=T-g,D=k-m,P=I-g,L=$-m;return A*A+D*D>P*P+L*L&&(T=I,k=$),{cx:T,cy:k,x0:-c,y0:-f,x1:T*(n/S-1),y1:k*(n/S-1)}}function WF(e){var t;if(q(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 qF(e,t){var r,i=Ss(t.r,0),n=Ss(t.r0||0,0),a=i>0,o=n>0;if(!(!a&&!o)){if(a||(i=n,n=0),n>i){var s=i;i=n,n=s}var u=t.startAngle,l=t.endAngle;if(!(isNaN(u)||isNaN(l))){var c=t.cx,f=t.cy,d=!!t.clockwise,h=Kw(l-u),v=h>Ev&&h%Ev;if(v>Ar&&(h=v),!(i>Ar))e.moveTo(c,f);else if(h>Ev-Ar)e.moveTo(c+i*$a(u),f+i*Ti(u)),e.arc(c,f,i,u,l,!d),n>Ar&&(e.moveTo(c+n*$a(l),f+n*Ti(l)),e.arc(c,f,n,l,u,d));else{var p=void 0,g=void 0,m=void 0,y=void 0,_=void 0,b=void 0,S=void 0,w=void 0,x=void 0,T=void 0,k=void 0,I=void 0,$=void 0,A=void 0,D=void 0,P=void 0,L=i*$a(u),z=i*Ti(u),B=n*$a(l),N=n*Ti(l),F=h>Ar;if(F){var Z=t.cornerRadius;Z&&(r=WF(Z),p=r[0],g=r[1],m=r[2],y=r[3]);var G=Kw(i-n)/2;if(_=Yr(G,m),b=Yr(G,y),S=Yr(G,p),w=Yr(G,g),k=x=Ss(_,b),I=T=Ss(S,w),(x>Ar||T>Ar)&&($=i*$a(l),A=i*Ti(l),D=n*$a(u),P=n*Ti(u),h<_P)){var W=HF(L,z,D,P,$,A,B,N);if(W){var ee=L-W[0],K=z-W[1],ce=$-W[0],ye=A-W[1],tt=1/Ti(GF((ee*ce+K*ye)/(Ls(ee*ee+K*K)*Ls(ce*ce+ye*ye)))/2),Je=Ls(W[0]*W[0]+W[1]*W[1]);k=Yr(x,(i-Je)/(tt+1)),I=Yr(T,(n-Je)/(tt-1))}}}if(!F)e.moveTo(c+L,f+z);else if(k>Ar){var Ie=Yr(m,k),Ye=Yr(y,k),oe=Ql(D,P,L,z,i,Ie,d),_e=Ql($,A,B,N,i,Ye,d);e.moveTo(c+oe.cx+oe.x0,f+oe.cy+oe.y0),k<x&&Ie===Ye?e.arc(c+oe.cx,f+oe.cy,k,kt(oe.y0,oe.x0),kt(_e.y0,_e.x0),!d):(Ie>0&&e.arc(c+oe.cx,f+oe.cy,Ie,kt(oe.y0,oe.x0),kt(oe.y1,oe.x1),!d),e.arc(c,f,i,kt(oe.cy+oe.y1,oe.cx+oe.x1),kt(_e.cy+_e.y1,_e.cx+_e.x1),!d),Ye>0&&e.arc(c+_e.cx,f+_e.cy,Ye,kt(_e.y1,_e.x1),kt(_e.y0,_e.x0),!d))}else e.moveTo(c+L,f+z),e.arc(c,f,i,u,l,!d);if(!(n>Ar)||!F)e.lineTo(c+B,f+N);else if(I>Ar){var Ie=Yr(p,I),Ye=Yr(g,I),oe=Ql(B,N,$,A,n,-Ye,d),_e=Ql(L,z,D,P,n,-Ie,d);e.lineTo(c+oe.cx+oe.x0,f+oe.cy+oe.y0),I<T&&Ie===Ye?e.arc(c+oe.cx,f+oe.cy,I,kt(oe.y0,oe.x0),kt(_e.y0,_e.x0),!d):(Ye>0&&e.arc(c+oe.cx,f+oe.cy,Ye,kt(oe.y0,oe.x0),kt(oe.y1,oe.x1),!d),e.arc(c,f,n,kt(oe.cy+oe.y1,oe.cx+oe.x1),kt(_e.cy+_e.y1,_e.cx+_e.x1),d),Ie>0&&e.arc(c+_e.cx,f+_e.cy,Ie,kt(_e.y1,_e.x1),kt(_e.y0,_e.x0),!d))}else e.lineTo(c+B,f+N),e.arc(c,f,n,l,u,d)}e.closePath()}}}var YF=(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})(),si=(function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new YF},t.prototype.buildPath=function(r,i){qF(r,i)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t})(Pe);si.prototype.type="sector";var XF=(function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e})(),F0=(function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new XF},t.prototype.buildPath=function(r,i){var n=i.cx,a=i.cy,o=Math.PI*2;r.moveTo(n+i.r,a),r.arc(n,a,i.r,0,o,!1),r.moveTo(n+i.r0,a),r.arc(n,a,i.r0,0,o,!0)},t})(Pe);F0.prototype.type="ring";function KF(e,t,r,i){var n=[],a=[],o=[],s=[],u,l,c,f;if(i){c=[1/0,1/0],f=[-1/0,-1/0];for(var d=0,h=e.length;d<h;d++)Ua(c,c,e[d]),Ba(f,f,e[d]);Ua(c,c,i[0]),Ba(f,f,i[1])}for(var d=0,h=e.length;d<h;d++){var v=e[d];if(r)u=e[d?d-1:h-1],l=e[(d+1)%h];else if(d===0||d===h-1){n.push(hU(e[d]));continue}else u=e[d-1],l=e[d+1];QC(a,l,u),Yh(a,a,t);var p=Up(v,u),g=Up(v,l),m=p+g;m!==0&&(p/=m,g/=m),Yh(o,a,-p),Yh(s,a,g);var y=OS([],v,o),_=OS([],v,s);i&&(Ba(y,y,c),Ua(y,y,f),Ba(_,_,c),Ua(_,_,f)),n.push(y),n.push(_)}return r&&n.push(n.shift()),n}function bP(e,t,r){var i=t.smooth,n=t.points;if(n&&n.length>=2){if(i){var a=KF(n,i,r,t.smoothConstraint);e.moveTo(n[0][0],n[0][1]);for(var o=n.length,s=0;s<(r?o:o-1);s++){var u=a[s*2],l=a[s*2+1],c=n[(s+1)%o];e.bezierCurveTo(u[0],u[1],l[0],l[1],c[0],c[1])}}else{e.moveTo(n[0][0],n[0][1]);for(var s=1,f=n.length;s<f;s++)e.lineTo(n[s][0],n[s][1])}r&&e.closePath()}}var JF=(function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e})(),xh=(function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new JF},t.prototype.buildPath=function(r,i){bP(r,i,!0)},t})(Pe);xh.prototype.type="polygon";var QF=(function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e})(),Vo=(function(e){H(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 QF},t.prototype.buildPath=function(r,i){bP(r,i,!1)},t})(Pe);Vo.prototype.type="polyline";var ej={},tj=(function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e})(),An=(function(e){H(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 tj},t.prototype.buildPath=function(r,i){var n,a,o,s;if(this.subPixelOptimize){var u=JA(ej,i,this.style);n=u.x1,a=u.y1,o=u.x2,s=u.y2}else n=i.x1,a=i.y1,o=i.x2,s=i.y2;var l=i.percent;l!==0&&(r.moveTo(n,a),l<1&&(o=n*(1-l)+o*l,s=a*(1-l)+s*l),r.lineTo(o,s))},t.prototype.pointAt=function(r){var i=this.shape;return[i.x1*(1-r)+i.x2*r,i.y1*(1-r)+i.y2*r]},t})(Pe);An.prototype.type="line";var Zt=[],rj=(function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return e})();function Jw(e,t,r){var i=e.cpx2,n=e.cpy2;return i!=null||n!=null?[(r?WS:dt)(e.x1,e.cpx1,e.cpx2,e.x2,t),(r?WS:dt)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(r?qS:$t)(e.x1,e.cpx1,e.x2,t),(r?qS:$t)(e.y1,e.cpy1,e.y2,t)]}var Th=(function(e){H(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 rj},t.prototype.buildPath=function(r,i){var n=i.x1,a=i.y1,o=i.x2,s=i.y2,u=i.cpx1,l=i.cpy1,c=i.cpx2,f=i.cpy2,d=i.percent;d!==0&&(r.moveTo(n,a),c==null||f==null?(d<1&&(hf(n,u,o,d,Zt),u=Zt[1],o=Zt[2],hf(a,l,s,d,Zt),l=Zt[1],s=Zt[2]),r.quadraticCurveTo(u,l,o,s)):(d<1&&(df(n,u,c,o,d,Zt),u=Zt[1],c=Zt[2],o=Zt[3],df(a,l,f,s,d,Zt),l=Zt[1],f=Zt[2],s=Zt[3]),r.bezierCurveTo(u,l,c,f,o,s)))},t.prototype.pointAt=function(r){return Jw(this.shape,r,!1)},t.prototype.tangentAt=function(r){var i=Jw(this.shape,r,!0);return g0(i,i)},t})(Pe);Th.prototype.type="bezier-curve";var nj=(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})(),kh=(function(e){H(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 nj},t.prototype.buildPath=function(r,i){var n=i.cx,a=i.cy,o=Math.max(i.r,0),s=i.startAngle,u=i.endAngle,l=i.clockwise,c=Math.cos(s),f=Math.sin(s);r.moveTo(c*o+n,f*o+a),r.arc(n,a,o,s,u,!l)},t})(Pe);kh.prototype.type="arc";var SP=(function(e){H(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,i=this.shapeChanged(),n=0;n<r.length;n++)i=i||r[n].shapeChanged();i&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],i=this.getGlobalScale(),n=0;n<r.length;n++)r[n].path||r[n].createPathProxy(),r[n].path.setScale(i[0],i[1],r[n].segmentIgnoreThreshold)},t.prototype.buildPath=function(r,i){for(var n=i.paths||[],a=0;a<n.length;a++)n[a].buildPath(r,n[a].shape,!0)},t.prototype.afterBrush=function(){for(var r=this.shape.paths||[],i=0;i<r.length;i++)r[i].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Pe.prototype.getBoundingRect.call(this)},t})(Pe),wP=(function(){function e(t){this.colorStops=t||[]}return e.prototype.addColorStop=function(t,r){this.colorStops.push({offset:t,color:r})},e})(),xP=(function(e){H(t,e);function t(r,i,n,a,o,s){var u=e.call(this,o)||this;return u.x=r??0,u.y=i??0,u.x2=n??1,u.y2=a??0,u.type="linear",u.global=s||!1,u}return t})(wP),ij=(function(e){H(t,e);function t(r,i,n,a,o){var s=e.call(this,a)||this;return s.x=r??.5,s.y=i??.5,s.r=n??.5,s.type="radial",s.global=o||!1,s}return t})(wP),zv=Math.min,aj=Math.max,ec=Math.abs,ki=[0,0],Ii=[0,0],mt=rA(),tc=mt.minTv,rc=mt.maxTv,TP=(function(){function e(t,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var i=0;i<4;i++)this._corners[i]=new de;for(var i=0;i<2;i++)this._axes[i]=new de;t&&this.fromBoundingRect(t,r)}return e.prototype.fromBoundingRect=function(t,r){var i=this._corners,n=this._axes,a=t.x,o=t.y,s=a+t.width,u=o+t.height;if(i[0].set(a,o),i[1].set(s,o),i[2].set(s,u),i[3].set(a,u),r)for(var l=0;l<4;l++)i[l].transform(r);de.sub(n[0],i[1],i[0]),de.sub(n[1],i[3],i[0]),n[0].normalize(),n[1].normalize();for(var l=0;l<2;l++)this._origin[l]=n[l].dot(i[0])},e.prototype.intersect=function(t,r,i){var n=!0,a=!r;return r&&de.set(r,0,0),mt.reset(i,!a),!this._intersectCheckOneSide(this,t,a,1)&&(n=!1,a)||!this._intersectCheckOneSide(t,this,a,-1)&&(n=!1,a)||!a&&!mt.negativeSize&&de.copy(r,n?mt.useDir?mt.dirMinTv:tc:rc),n},e.prototype._intersectCheckOneSide=function(t,r,i,n){for(var a=!0,o=0;o<2;o++){var s=t._axes[o];if(t._getProjMinMaxOnAxis(o,t._corners,ki),t._getProjMinMaxOnAxis(o,r._corners,Ii),mt.negativeSize||ki[1]<Ii[0]||ki[0]>Ii[1]){if(a=!1,mt.negativeSize||i)return a;var u=ec(Ii[0]-ki[1]),l=ec(ki[0]-Ii[1]);zv(u,l)>rc.len()&&(u<l?de.scale(rc,s,-u*n):de.scale(rc,s,l*n))}else if(!i){var u=ec(Ii[0]-ki[1]),l=ec(ki[0]-Ii[1]);(mt.useDir||zv(u,l)<tc.len())&&((u<l||!mt.bidirectional)&&(de.scale(tc,s,u*n),mt.useDir&&mt.calcDirMTV()),(u>=l||!mt.bidirectional)&&(de.scale(tc,s,-l*n),mt.useDir&&mt.calcDirMTV()))}}return a},e.prototype._getProjMinMaxOnAxis=function(t,r,i){for(var n=this._axes[t],a=this._origin,o=r[0].dot(n)+a[t],s=o,u=o,l=1;l<r.length;l++){var c=r[l].dot(n)+a[t];s=zv(c,s),u=aj(c,u)}i[0]=s+mt.touchThreshold,i[1]=u-mt.touchThreshold,mt.negativeSize=i[1]<i[0]},e})(),oj=1,sj=[],uj=(function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.notClear=!0,r.incremental=oj,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return t.prototype.traverse=function(r,i){r.call(i,this)},t.prototype.useStyle=function(){this.style={}},t.prototype._useHoverStyle=function(){this.__hoverStyle=null},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(r,i){i?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},t.prototype.addDisplayables=function(r,i){i=i||!1;for(var n=0;n<r.length;n++)this.addDisplayable(r[n],i)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(r){for(var i=this._cursor;i<this._displayables.length;i++)r&&r(this._displayables[i]);for(var i=0;i<this._temporaryDisplayables.length;i++)r&&r(this._temporaryDisplayables[i])},t.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var i=this._displayables[r];i.parent=this,i.update(),i.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var i=this._temporaryDisplayables[r];i.parent=this,i.update(),i.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new fe(1/0,1/0,-1/0,-1/0),i=0;i<this._displayables.length;i++){var n=this._displayables[i],a=n.getBoundingRect().clone();n.needLocalTransform()&&a.applyTransform(n.getLocalTransform(sj)),r.union(a)}this._rect=r}return this._rect},t.prototype.contain=function(r,i){var n=this.transformCoordToLocal(r,i),a=this.getBoundingRect();if(a.contain(n[0],n[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(r,i))return!0}return!1},t})(Il),lj=ke();function cj(e,t,r,i,n){var a;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s=t&&t.isAnimationEnabled(),u=e==="update";if(s){var l=void 0,c=void 0,f=void 0;i?(l=J(i.duration,200),c=J(i.easing,"cubicOut"),f=0):(l=t.getShallow(u?"animationDurationUpdate":"animationDuration"),c=t.getShallow(u?"animationEasingUpdate":"animationEasing"),f=t.getShallow(u?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(l=a.duration),a.easing!=null&&(c=a.easing),a.delay!=null&&(f=a.delay)),le(f)&&(f=f(r,n)),le(l)&&(l=l(r));var d={duration:l||0,delay:f,easing:c};return d}else return null}function j0(e,t,r,i,n,a,o){var s=!1,u;le(n)?(o=a,a=n,n=null):ne(n)&&(a=n.cb,o=n.during,s=n.isFrom,u=n.removeOpt,n=n.dataIndex);var l=e==="leave";l||t.stopAnimation("leave");var c=cj(e,i,n,l?u||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(t,n):null);if(c&&c.duration>0){var f=c.duration,d=c.delay,h=c.easing,v={duration:f,delay:d||0,easing:h,done:a,force:!!a||!!o,setToFinal:!l,scope:e,during:o};s?t.animateFrom(r,v):t.animateTo(r,v)}else t.stopAnimation(),!s&&t.attr(r),o&&o(1),a&&a()}function lt(e,t,r,i,n,a){j0("update",e,t,r,i,n,a)}function St(e,t,r,i,n,a){j0("enter",e,t,r,i,n,a)}function Wa(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 xf(e,t,r,i,n,a){Wa(e)||j0("leave",e,t,r,i,n,a)}function Qw(e,t,r,i){e.removeTextContent(),e.removeTextGuideLine(),xf(e,{style:{opacity:0}},t,r,i)}function qa(e,t,r){function i(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(n){n.isGroup||Qw(n,t,r,i)}):Qw(e,t,r,i)}function Ih(e){lj(e).oldStyle=e.style}var xg={},Vn=["x","y"],go=["width","height"],kP=0,IP=1,$h=2;function fj(e){return Pe.extend(e)}var dj=FF;function hj(e,t){return dj(e,t)}function jr(e,t){xg[e]=t}function vj(e){if(xg.hasOwnProperty(e))return xg[e]}function Z0(e,t,r,i){var n=BF(e,t);return r&&(i==="center"&&(r=DP(r,n.getBoundingRect())),CP(n,r)),n}function $P(e,t,r){var i=new fn({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(n){if(r==="center"){var a={width:n.width,height:n.height};i.setStyle(DP(t,a))}}});return i}function DP(e,t){var r=t.width/t.height,i=e.height*r,n;i<=e.width?n=e.height:(i=e.width,n=i/r);var a=e.x+e.width/2,o=e.y+e.height/2;return{x:a-i/2,y:o-n/2,width:i,height:n}}var pj=jF;function CP(e,t){if(e.applyTransform){var r=e.getBoundingRect(),i=r.calculateTransform(t);e.applyTransform(i)}}function ou(e,t){return JA(e,e,{lineWidth:t}),e}function gj(e,t){return QA(e,e,t),e}var mj=ji;function yj(e,t){for(var r=bl([]);e&&e!==t;)Cs(r,e.getLocalTransform(),r),e=e.parent;return r}function V0(e,t,r){return t&&!Wt(t)&&(t=Fo.getLocalTransform(t)),r&&(t=Bo([],t)),br([],e,t)}function _j(e,t,r){var i=t[4]===0||t[5]===0||t[0]===0?1:ft(2*t[4]/t[0]),n=t[4]===0||t[5]===0||t[2]===0?1:ft(2*t[4]/t[2]),a=[e==="left"?-i:e==="right"?i:0,e==="top"?-n:e==="bottom"?n:0];return a=V0(a,t,r),ft(a[0])>ft(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function e1(e){return!e.isGroup}function bj(e){return e.shape!=null}function AP(e,t,r){if(!e||!t)return;function i(o){var s={};return o.traverse(function(u){e1(u)&&u.anid&&(s[u.anid]=u)}),s}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};return bj(o)&&(s.shape=me(o.shape)),s}var a=i(e);t.traverse(function(o){if(e1(o)&&o.anid){var s=a[o.anid];if(s){var u=n(o);o.attr(n(s)),lt(o,u,r,we(o).dataIndex)}}})}function Sj(e,t){return Q(e,function(r){var i=r[0];i=Me(i,t.x),i=Ct(i,t.x+t.width);var n=r[1];return n=Me(n,t.y),n=Ct(n,t.y+t.height),[i,n]})}function wj(e,t){var r=Me(e.x,t.x),i=Ct(e.x+e.width,t.x+t.width),n=Me(e.y,t.y),a=Ct(e.y+e.height,t.y+t.height);if(i>=r&&a>=n)return{x:r,y:n,width:i-r,height:a-n}}function G0(e,t,r){var i=V({rectHover:!0},t),n=i.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(n.image=e.slice(8),je(n,r),new fn(i)):Z0(e.replace("path://",""),i,r,"center")}function xj(e,t,r,i,n){for(var a=0,o=n[n.length-1];a<n.length;a++){var s=n[a];if(PP(e,t,r,i,s[0],s[1],o[0],o[1]))return!0;o=s}}function PP(e,t,r,i,n,a,o,s){var u=r-e,l=i-t,c=o-n,f=s-a,d=Rv(c,f,u,l);if(Tj(d))return!1;var h=e-n,v=t-a,p=Rv(h,v,u,l)/d;if(p<0||p>1)return!1;var g=Rv(h,v,c,f)/d;return!(g<0||g>1)}function Rv(e,t,r,i){return e*i-r*t}function Tj(e){return e<=1e-6&&e>=-1e-6}function Tf(e,t,r,i,n){return t==null||(Re(t)?Xe[0]=Xe[1]=Xe[2]=Xe[3]=t:(Xe[0]=t[0],Xe[1]=t[1],Xe[2]=t[2],Xe[3]=t[3]),i&&(Xe[0]=Me(0,Xe[0]),Xe[1]=Me(0,Xe[1]),Xe[2]=Me(0,Xe[2]),Xe[3]=Me(0,Xe[3])),r&&(Xe[0]=-Xe[0],Xe[1]=-Xe[1],Xe[2]=-Xe[2],Xe[3]=-Xe[3]),t1(e,Xe,"x","width",3,1,n&&n[0]||0),t1(e,Xe,"y","height",0,2,n&&n[1]||0)),e}var Xe=[0,0,0,0];function t1(e,t,r,i,n,a,o){var s=t[a]+t[n],u=e[i];e[i]+=s,o=Me(0,Ct(o,u)),e[i]<o?(e[i]=o,e[r]+=t[n]>=0?-t[n]:t[a]>=0?u+t[a]:ft(s)>1e-8?(u-o)*t[n]/s:0):e[r]-=t[n]}function Dh(e){var t=e.itemTooltipOption,r=e.componentModel,i=e.itemName,n=te(t)?{formatter:t}:t,a=r.mainType,o=r.componentIndex,s={componentType:a,name:i,$vars:["name"]};s[a+"Index"]=o;var u=e.formatterParamsExtra;u&&C(Te(u),function(c){Ut(s,c)||(s[c]=u[c],s.$vars.push(c))});var l=we(e.el);l.componentMainType=a,l.componentIndex=o,l.tooltipConfig={name:i,option:je({content:i,encodeHTMLContent:!0,formatterParams:s},n)}}function Tg(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function $l(e,t){if(e)if(q(e))for(var r=0;r<e.length;r++)Tg(e[r],t);else Tg(e,t)}function H0(e){return!e||ft(e[1])<nc&&ft(e[2])<nc||ft(e[0])<nc&&ft(e[3])<nc}var nc=1e-5;function su(e,t){return e?fe.copy(e,t):t.clone()}function W0(e,t){return t?y0(e||nn(),t):void 0}function q0(e){return{z:e.get("z")||0,zlevel:e.get("zlevel")||0}}function kj(e){var t=-1/0,r=1/0;Tg(e,function(a){i(a),i(a.getTextContent()),i(a.getTextGuideLine())});function i(a){if(!(!a||a.isGroup)){var o=a.currentStates;if(o.length)for(var s=0;s<o.length;s++)n(a.states[o[s]]);n(a)}}function n(a){if(a){var o=a.z2;o>t&&(t=o),o<r&&(r=o)}}return r>t&&(r=t=0),{min:r,max:t}}function Y0(e,t,r){MP(e,t,r,-1/0)}function MP(e,t,r,i){if(e.ignoreModelZ)return i;var n=e.getTextContent(),a=e.getTextGuideLine(),o=e.isGroup;if(o)for(var s=e.childrenRef(),u=0;u<s.length;u++)i=Me(MP(s[u],t,r,i),i);else e.z=t,e.zlevel=r,i=Me(e.z2||0,i);if(n&&(n.z=t,n.zlevel=r,isFinite(i)&&(n.z2=i+2)),a){var l=e.textGuideLineConfig;a.z=t,a.zlevel=r,isFinite(i)&&(a.z2=i+(l&&l.showAbove?1:-1))}return i}function Ij(e){return e.animation={duration:0},e}function $j(e,t){return t?y0(ws.transform,t):bl(ws.transform),ws.decomposeTransform(),Xs(e,ws),e}var ws=new Fo;ws.transform=nn();function Dj(e){var t=e.getZr().painter;return t.getType()==="canvas"?t:null}jr("circle",wh);jr("ellipse",B0);jr("sector",si);jr("ring",F0);jr("polygon",xh);jr("polyline",Vo);jr("rect",st);jr("line",An);jr("bezierCurve",Th);jr("arc",kh);const Cj=Object.freeze(Object.defineProperty({__proto__:null,Arc:kh,BezierCurve:Th,BoundingRect:fe,Circle:wh,CompoundPath:SP,Ellipse:B0,Group:ut,HOVER_LAYER_FOR_INCREMENTAL:$h,HOVER_LAYER_FROM_THRESHOLD:IP,HOVER_LAYER_NO:kP,Image:fn,IncrementalDisplayable:uj,Line:An,LinearGradient:xP,OrientedBoundingRect:TP,Path:Pe,Point:de,Polygon:xh,Polyline:Vo,RadialGradient:ij,Rect:st,Ring:F0,Sector:si,Text:At,WH:go,XY:Vn,applyTransform:V0,calcZ2Range:kj,clipPointsByRect:Sj,clipRectByRect:wj,createIcon:G0,decomposeTransform:$j,ensureCopyRect:su,ensureCopyTransform:W0,expandOrShrinkRect:Tf,extendPath:hj,extendShape:fj,getCurrentCanvasPainter:Dj,getShapeClass:vj,getTransform:yj,groupTransition:AP,initProps:St,isBoundingRectAxisAligned:H0,isElementRemoved:Wa,lineLineIntersect:PP,linePolygonIntersect:xj,makeImage:$P,makePath:Z0,mergePath:pj,payloadDisableAnimation:Ij,registerShape:jr,removeElement:xf,removeElementWithFadeOut:qa,resizePath:CP,retrieveZInfo:q0,setTooltipConfig:Dh,subPixelOptimize:mj,subPixelOptimizeLine:ou,subPixelOptimizeRect:gj,transformDirection:_j,traverseElements:$l,traverseUpdateZ:Y0,updateProps:lt},Symbol.toStringTag,{value:"Module"}));var Ch={};function LP(e,t){for(var r=0;r<Yt.length;r++){var i=Yt[r],n=t[i],a=e.ensureState(i);a.style=a.style||{},a.style.text=n}var o=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(o,!0)}function kg(e,t,r){var i=e.labelFetcher,n=e.labelDataIndex,a=e.labelDimIndex,o=t.normal,s;i&&(s=i.getFormattedLabel(n,"normal",null,a,o&&o.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=le(e.defaultText)?e.defaultText(n,e,r):e.defaultText);for(var u={normal:s},l=0;l<Yt.length;l++){var c=Yt[l],f=t[c];u[c]=J(i?i.getFormattedLabel(n,c,null,a,f&&f.get("formatter")):null,s)}return u}function pa(e,t,r,i){r=r||Ch;for(var n=e instanceof At,a=!1,o=0;o<bf.length;o++){var s=t[bf[o]];if(s&&s.getShallow("show")){a=!0;break}}var u=n?e:e.getTextContent();if(a){n||(u||(u=new At,e.setTextContent(u)),e.stateProxy&&(u.stateProxy=e.stateProxy));var l=kg(r,t),c=t.normal,f=!!c.getShallow("show"),d=mo(c,i&&i.normal,r,!1,!n);d.text=l.normal,n||e.setTextConfig(r1(c,r,!1));for(var o=0;o<Yt.length;o++){var h=Yt[o],s=t[h];if(s){var v=u.ensureState(h),p=!!J(s.getShallow("show"),f);if(p!==f&&(v.ignore=!p),v.style=mo(s,i&&i[h],r,!0,!n),v.style.text=l[h],!n){var g=e.ensureState(h);g.textConfig=r1(s,r,!0)}}}u.silent=!!c.getShallow("silent"),u.style.x!=null&&(d.x=u.style.x),u.style.y!=null&&(d.y=u.style.y),u.ignore=!f,u.useStyle(d),u.dirty(),r.enableTextSetter&&(Go(u).setLabelText=function(m){var y=kg(r,t,m);LP(u,y)})}else u&&(u.ignore=!0);e.dirty()}function ui(e,t){t=t||"label";for(var r={normal:e.getModel(t)},i=0;i<Yt.length;i++){var n=Yt[i];r[n]=e.getModel([n,t])}return r}function mo(e,t,r,i,n){var a={};return Aj(a,e,r,i,n),t&&V(a,t),a}function r1(e,t,r){t=t||{};var i={},n,a=e.getShallow("rotate"),o=J(e.getShallow("distance"),r?null:5),s=e.getShallow("offset");return n=e.getShallow("position")||(r?null:"inside"),n==="outside"&&(n=t.defaultOutsidePosition||"top"),n!=null&&(i.position=n),s!=null&&(i.offset=s),a!=null&&(a*=Math.PI/180,i.rotation=a),o!=null&&(i.distance=o),i.outsideFill=e.get("color")==="inherit"?t.inheritColor||null:"auto",t.autoOverflowArea!=null&&(i.autoOverflowArea=t.autoOverflowArea),t.layoutRect!=null&&(i.layoutRect=t.layoutRect),i}function Aj(e,t,r,i,n){r=r||Ch;var a=t.ecModel,o=a&&a.option.textStyle,s=Pj(t),u;if(s){u={};var l="richInheritPlainLabel",c=J(t.get(l),a?a.get(l):void 0);for(var f in s)if(s.hasOwnProperty(f)){var d=t.getModel(["rich",f]);o1(u[f]={},d,o,t,c,r,i,n,!1,!0)}}u&&(e.rich=u);var h=t.get("overflow");h&&(e.overflow=h);var v=t.get("lineOverflow");v&&(e.lineOverflow=v);var p=e,g=t.get("minMargin");if(g!=null)g=Re(g)?g/2:0,p.margin=[g,g,g,g],p.__marginType=Va.minMargin;else{var m=t.get("textMargin");m!=null&&(p.margin=p0(m),p.__marginType=Va.textMargin)}o1(e,t,o,null,null,r,i,n,!0,!1)}function Pj(e){for(var t;e&&e!==e.ecModel;){var r=(e.option||Ch).rich;if(r){t=t||{};for(var i=Te(r),n=0;n<i.length;n++){var a=i[n];t[a]=1}}e=e.parentModel}return t}var n1=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],i1=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],a1=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function o1(e,t,r,i,n,a,o,s,u,l){r=!o&&r||Ch;var c=a&&a.inheritColor,f=t.getShallow("color"),d=t.getShallow("textBorderColor"),h=J(t.getShallow("opacity"),r.opacity);(f==="inherit"||f==="auto")&&(c?f=c:f=null),(d==="inherit"||d==="auto")&&(c?d=c:d=null),s||(f=f||r.color,d=d||r.textBorderColor),f!=null&&(e.fill=f),d!=null&&(e.stroke=d);var v=J(t.getShallow("textBorderWidth"),r.textBorderWidth);v!=null&&(e.lineWidth=v);var p=J(t.getShallow("textBorderType"),r.textBorderType);p!=null&&(e.lineDash=p);var g=J(t.getShallow("textBorderDashOffset"),r.textBorderDashOffset);g!=null&&(e.lineDashOffset=g),!o&&h==null&&!l&&(h=a&&a.defaultOpacity),h!=null&&(e.opacity=h),!o&&!s&&e.fill==null&&a.inheritColor&&(e.fill=a.inheritColor);for(var m=0;m<n1.length;m++){var y=n1[m],_=n!==!1&&i?Gi(t.getShallow(y),i.getShallow(y),r[y]):J(t.getShallow(y),r[y]);_!=null&&(e[y]=_)}for(var m=0;m<i1.length;m++){var y=i1[m],_=t.getShallow(y);_!=null&&(e[y]=_)}if(e.verticalAlign==null){var b=t.getShallow("baseline");b!=null&&(e.verticalAlign=b)}if(!u||!a.disableBox){for(var m=0;m<a1.length;m++){var y=a1[m],_=t.getShallow(y);_!=null&&(e[y]=_)}var S=t.getShallow("borderType");S!=null&&(e.borderDash=S),(e.backgroundColor==="auto"||e.backgroundColor==="inherit")&&c&&(e.backgroundColor=c),(e.borderColor==="auto"||e.borderColor==="inherit")&&c&&(e.borderColor=c)}}function Mj(e,t){var r=t&&t.getModel("textStyle");return Qr([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(" "))}var Go=ke();function Lj(e,t,r,i){if(e){var n=Go(e);n.prevValue=n.value,n.value=r;var a=t.normal;n.valueAnimation=a.get("valueAnimation"),n.valueAnimation&&(n.precision=a.get("precision"),n.defaultInterpolatedText=i,n.statesModels=t)}}function Oj(e,t,r,i,n){var a=Go(e);if(!a.valueAnimation||a.prevValue===a.value)return;var o=a.defaultInterpolatedText,s=J(a.interpolatedValue,a.prevValue),u=a.value;function l(c){var f=RA(r,a.precision,s,u,c);a.interpolatedValue=c===1?null:f;var d=kg({labelDataIndex:t,labelFetcher:n,defaultText:o?o(f):f+""},a.statesModels,f);LP(e,d)}e.percent=0,(a.prevValue==null?St:lt)(e,{percent:1},i,t,null,l)}var Va={minMargin:1,textMargin:2},Ej=["textStyle","color"],Nv=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Uv=new At,zj=(function(){function e(){}return e.prototype.getTextColor=function(t){var r=this.ecModel;return this.getShallow("color")||(!t&&r?r.get(Ej):null)},e.prototype.getFont=function(){return Mj({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")},i=0;i<Nv.length;i++)r[Nv[i]]=this.getShallow(Nv[i]);return Uv.useStyle(r),Uv.update(),Uv.getBoundingRect()},e})(),OP=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Rj=tu(OP),Nj=(function(){function e(){}return e.prototype.getLineStyle=function(t){return Rj(this,t)},e})(),EP=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],Uj=tu(EP),Bj=(function(){function e(){}return e.prototype.getItemStyle=function(t,r){return Uj(this,t,r)},e})(),et=(function(){function e(t,r,i){this.parentModel=r,this.ecModel=i,this.option=t}return e.prototype.init=function(t,r,i){},e.prototype.mergeOption=function(t,r){Ze(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 i=this.option,n=i==null?i:i[t];if(n==null&&!r){var a=this.parentModel;a&&(n=a.getShallow(t))}return n},e.prototype.getModel=function(t,r){var i=t!=null,n=i?this.parsePath(t):null,a=i?this._doGet(n):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(n)),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(me(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(!pe.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 i=this.option;if(!t)return i;for(var n=0;n<t.length&&!(t[n]&&(i=i&&typeof i=="object"?i[t[n]]:null,i==null));n++);return i==null&&r&&(i=r._doGet(this.resolveParentPath(t),r.parentModel)),i},e})();P0(et);SB(et);Br(et,Nj);Br(et,Bj);Br(et,IB);Br(et,zj);var Fj=Math.round(Math.random()*10);function Ah(e){return[e||"",Fj++].join("_")}function jj(e){var t={};e.registerSubTypeDefaulter=function(r,i){var n=en(r);t[n.main]=i},e.determineSubType=function(r,i){var n=i.type;if(!n){var a=en(r).main;e.hasSubTypes(r)&&t[a]&&(n=t[a](i))}return n}}function Zj(e,t){e.topologicalTravel=function(a,o,s,u){if(!a.length)return;var l=r(o),c=l.graph,f=l.noEntryList,d={};for(C(a,function(y){d[y]=!0});f.length;){var h=f.pop(),v=c[h],p=!!d[h];p&&(s.call(u,h,v.originalDeps.slice()),delete d[h]),C(v.successor,p?m:g)}C(d,function(){var y="";throw new Error(y)});function g(y){c[y].entryCount--,c[y].entryCount===0&&f.push(y)}function m(y){d[y]=!0,g(y)}};function r(a){var o={},s=[];return C(a,function(u){var l=i(o,u),c=l.originalDeps=t(u),f=n(c,a);l.entryCount=f.length,l.entryCount===0&&s.push(u),C(f,function(d){xe(l.predecessor,d)<0&&l.predecessor.push(d);var h=i(o,d);xe(h.successor,d)<0&&h.successor.push(u)})}),{graph:o,noEntryList:s}}function i(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function n(a,o){var s=[];return C(a,function(u){xe(o,u)>=0&&s.push(u)}),s}}function zP(e,t){return Ze(Ze({},e,!0),t,!0)}const Vj={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:". "}}}},Gj={time:{month:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"],dayOfWeekAbbr:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53CD\u9009"}},toolbox:{brush:{title:{rect:"\u77E9\u5F62\u9009\u62E9",polygon:"\u5708\u9009",lineX:"\u6A2A\u5411\u9009\u62E9",lineY:"\u7EB5\u5411\u9009\u62E9",keep:"\u4FDD\u6301\u9009\u62E9",clear:"\u6E05\u9664\u9009\u62E9"}},dataView:{title:"\u6570\u636E\u89C6\u56FE",lang:["\u6570\u636E\u89C6\u56FE","\u5173\u95ED","\u5237\u65B0"]},dataZoom:{title:{zoom:"\u533A\u57DF\u7F29\u653E",back:"\u533A\u57DF\u7F29\u653E\u8FD8\u539F"}},magicType:{title:{line:"\u5207\u6362\u4E3A\u6298\u7EBF\u56FE",bar:"\u5207\u6362\u4E3A\u67F1\u72B6\u56FE",stack:"\u5207\u6362\u4E3A\u5806\u53E0",tiled:"\u5207\u6362\u4E3A\u5E73\u94FA"}},restore:{title:"\u8FD8\u539F"},saveAsImage:{title:"\u4FDD\u5B58\u4E3A\u56FE\u7247",lang:["\u53F3\u952E\u53E6\u5B58\u4E3A\u56FE\u7247"]}},series:{typeNames:{pie:"\u997C\u56FE",bar:"\u67F1\u72B6\u56FE",line:"\u6298\u7EBF\u56FE",scatter:"\u6563\u70B9\u56FE",effectScatter:"\u6D9F\u6F2A\u6563\u70B9\u56FE",radar:"\u96F7\u8FBE\u56FE",tree:"\u6811\u56FE",treemap:"\u77E9\u5F62\u6811\u56FE",boxplot:"\u7BB1\u578B\u56FE",candlestick:"K\u7EBF\u56FE",k:"K\u7EBF\u56FE",heatmap:"\u70ED\u529B\u56FE",map:"\u5730\u56FE",parallel:"\u5E73\u884C\u5750\u6807\u56FE",lines:"\u7EBF\u56FE",graph:"\u5173\u7CFB\u56FE",sankey:"\u6851\u57FA\u56FE",funnel:"\u6F0F\u6597\u56FE",gauge:"\u4EEA\u8868\u76D8\u56FE",pictorialBar:"\u8C61\u5F62\u67F1\u56FE",themeRiver:"\u4E3B\u9898\u6CB3\u6D41\u56FE",sunburst:"\u65ED\u65E5\u56FE",custom:"\u81EA\u5B9A\u4E49\u56FE\u8868",chart:"\u56FE\u8868"}},aria:{general:{withTitle:"\u8FD9\u662F\u4E00\u4E2A\u5173\u4E8E\u201C{title}\u201D\u7684\u56FE\u8868\u3002",withoutTitle:"\u8FD9\u662F\u4E00\u4E2A\u56FE\u8868\uFF0C"},series:{single:{prefix:"",withName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\uFF0C\u8868\u793A{seriesName}\u3002",withoutName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\u3002"},multiple:{prefix:"\u5B83\u7531{seriesCount}\u4E2A\u56FE\u8868\u7CFB\u5217\u7EC4\u6210\u3002",withName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A\u8868\u793A{seriesName}\u7684{seriesType}\uFF0C",withoutName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A{seriesType}\uFF0C",separator:{middle:"\uFF1B",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636E\u662F\u2014\u2014",partialData:"\u5176\u4E2D\uFF0C\u524D{displayCnt}\u9879\u662F\u2014\u2014",withName:"{name}\u7684\u6570\u636E\u662F{value}",withoutName:"{value}",separator:{middle:"\uFF0C",end:""}}}};var kf="ZH",X0="EN",Ya=X0,Vc={},K0={},RP=pe.domSupported?(function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Ya).toUpperCase();return e.indexOf(kf)>-1?kf:Ya})():Ya;function NP(e,t){e=e.toUpperCase(),K0[e]=new et(t),Vc[e]=t}function Hj(e){if(te(e)){var t=Vc[e.toUpperCase()]||{};return e===kf||e===X0?me(t):Ze(me(t),me(Vc[Ya]),!1)}else return Ze(me(e),me(Vc[Ya]),!1)}function Wj(e){return K0[e]}function qj(){return K0[Ya]}NP(X0,Vj);NP(kf,Gj);var Yj=null;function Ph(){return Yj}function UP(e,t){t.breakOption;var r=t.breakParsed;return r}function J0(e){var t=e.brk;return t?t.breaks:[]}function If(e){var t=e.brk;return t?t.hasBreaks():!1}var Q0=1e3,eb=Q0*60,Os=eb*60,mr=Os*24,s1=mr*365,Xj={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},Gc={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},Kj="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",ic="{yyyy}-{MM}-{dd}",u1={year:"{yyyy}",month:"{yyyy}-{MM}",day:ic,hour:ic+" "+Gc.hour,minute:ic+" "+Gc.minute,second:ic+" "+Gc.second,millisecond:Kj},Xi=["year","month","day","hour","minute","second","millisecond"],Jj=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Qj(e){return!te(e)&&!le(e)?e5(e):e}function e5(e){e=e||{};var t={},r=!0;return C(Xi,function(i){r&&(r=e[i]==null)}),C(Xi,function(i,n){var a=e[i];t[i]={};for(var o=null,s=n;s>=0;s--){var u=Xi[s],l=ne(a)&&!q(a)?a[u]:a,c=void 0;q(l)?(c=l.slice(),o=c[0]||""):te(l)?(o=l,c=[o]):(o==null?o=Gc[i]:Xj[u].test(o)||(o=t[u][u][0]+" "+o),c=[o],r&&(c[1]="{primary|"+o+"}")),t[i][u]=c}}),t}function zn(e,t){return e+="","0000".substr(0,t-e.length)+e}function Es(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 t5(e){return e===Es(e)}function r5(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Mh(e,t,r,i){var n=jo(e),a=n[BP(r)](),o=n[tb(r)]()+1,s=Math.floor((o-1)/3)+1,u=n[rb(r)](),l=n["get"+(r?"UTC":"")+"Day"](),c=n[nb(r)](),f=(c-1)%12+1,d=n[ib(r)](),h=n[ab(r)](),v=n[ob(r)](),p=c>=12?"pm":"am",g=p.toUpperCase(),m=i instanceof et?i:Wj(i||RP)||qj(),y=m.getModel("time"),_=y.get("month"),b=y.get("monthAbbr"),S=y.get("dayOfWeek"),w=y.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,p+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,zn(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,b[o-1]).replace(/{MM}/g,zn(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,zn(u,2)).replace(/{d}/g,u+"").replace(/{eeee}/g,S[l]).replace(/{ee}/g,w[l]).replace(/{e}/g,l+"").replace(/{HH}/g,zn(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,zn(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,zn(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,zn(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,zn(v,3)).replace(/{S}/g,v+"")}function n5(e,t,r,i,n){var a=null;if(te(r))a=r;else if(le(r)){var o={time:e.time,level:e.time?e.time.level:0},s=Ph();s&&s.makeAxisLabelFormatterParamBreak(o,e.break),a=r(e.value,t,o)}else{var u=e.time;if(u){var l=r[u.lowerTimeUnit][u.upperTimeUnit];a=l[Math.min(u.level,l.length-1)]||""}else{var c=Hc(e.value,n);a=r[c][c][0]}}return Mh(new Date(e.value),a,n,i)}function Hc(e,t){var r=jo(e),i=r[tb(t)]()+1,n=r[rb(t)](),a=r[nb(t)](),o=r[ib(t)](),s=r[ab(t)](),u=r[ob(t)](),l=u===0,c=l&&s===0,f=c&&o===0,d=f&&a===0,h=d&&n===1,v=h&&i===1;return v?"year":h?"month":d?"day":f?"hour":c?"minute":l?"second":"millisecond"}function Ig(e,t,r){switch(t){case"year":e[FP(r)](0);case"month":e[jP(r)](1);case"day":e[ZP(r)](0);case"hour":e[VP(r)](0);case"minute":e[GP(r)](0);case"second":e[HP(r)](0)}return e}function BP(e){return e?"getUTCFullYear":"getFullYear"}function tb(e){return e?"getUTCMonth":"getMonth"}function rb(e){return e?"getUTCDate":"getDate"}function nb(e){return e?"getUTCHours":"getHours"}function ib(e){return e?"getUTCMinutes":"getMinutes"}function ab(e){return e?"getUTCSeconds":"getSeconds"}function ob(e){return e?"getUTCMilliseconds":"getMilliseconds"}function i5(e){return e?"setUTCFullYear":"setFullYear"}function FP(e){return e?"setUTCMonth":"setMonth"}function jP(e){return e?"setUTCDate":"setDate"}function ZP(e){return e?"setUTCHours":"setHours"}function VP(e){return e?"setUTCMinutes":"setMinutes"}function GP(e){return e?"setUTCSeconds":"setSeconds"}function HP(e){return e?"setUTCMilliseconds":"setMilliseconds"}function WP(e){if(!G6(e))return te(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\\d{1,3})(?=(?:\\d{3})+(?!\\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function qP(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(r,i){return i.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var Lh=p0;function $g(e,t,r){var i="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(c){return c&&Qr(c)?c:"-"}function a(c){return wr(c)}var o=t==="time",s=e instanceof Date;if(o||s){var u=o?jo(e):e;if(isNaN(+u)){if(s)return"-"}else return Mh(u,i,r)}if(t==="ordinal")return Rp(e)?n(e):Re(e)&&a(e)?e+"":"-";var l=yf(e);return a(l)?WP(l):Rp(e)?n(e):typeof e=="boolean"?e+"":"-"}var l1=["a","b","c","d","e","f","g"],Bv=function(e,t){return"{"+e+(t??"")+"}"};function YP(e,t,r){q(t)||(t=[t]);var i=t.length;if(!i)return"";for(var n=t[0].$vars||[],a=0;a<n.length;a++){var o=l1[a];e=e.replace(Bv(o),Bv(o,0))}for(var s=0;s<i;s++)for(var u=0;u<n.length;u++){var l=t[s][n[u]];e=e.replace(Bv(l1[u],s),r?zt(l):l)}return e}function a5(e,t){var r=te(e)?{color:e,extraCssText:t}:e||{},i=r.color,n=r.type;t=r.extraCssText;var a=r.renderMode||"html";if(!i)return"";if(a==="html")return n==="subItem"?\'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:\'+zt(i)+";"+(t||"")+\'"></span>\':\'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:\'+zt(i)+";"+(t||"")+\'"></span>\';var o=r.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:n==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}}function oa(e,t){return t=t||"transparent",te(e)?e:ne(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}var Wc={},Fv={},sb=(function(){function e(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return e.prototype.create=function(t,r){this._nonSeriesBoxMasterList=i(Wc),this._normalMasterList=i(Fv);function i(n,a){var o=[];return C(n,function(s,u){var l=s.create(t,r);o=o.concat(l||[])}),o}},e.prototype.update=function(t,r){C(this._normalMasterList,function(i){i.update&&i.update(t,r)})},e.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},e.register=function(t,r){if(t==="matrix"||t==="calendar"){Wc[t]=r;return}Fv[t]=r},e.get=function(t){return Fv[t]||Wc[t]},e})();function o5(e){return!!Wc[e]}var s5=1,XP=2;function u5(e){KP.set(e.fullType,{getCoord2:void 0}).getCoord2=e.getCoord2}var KP=se();function JP(e){var t=e.getShallow("coord",!0),r=s5;if(t==null){var i=KP.get(e.type);i&&i.getCoord2&&(r=XP,t=i.getCoord2(e))}return{coord:t,from:r}}var Xa=0,qc=1,l5=2;function c5(e,t){var r=e.getShallow("coordinateSystem"),i=e.getShallow("coordinateSystemUsage",!0),n=Xa;if(r){var a=e.mainType==="series";i==null&&(i=a?"data":"box"),i==="data"?(n=qc,a||(n=Xa)):i==="box"&&(n=l5,!a&&!o5(r)&&(n=Xa))}return{coordSysType:r,kind:n}}function f5(e){var t=e.targetModel,r=e.coordSysType,i=e.coordSysProvider,n=e.isDefaultDataCoordSys,a=c5(t),o=a.kind,s=a.coordSysType;if(n&&o!==qc&&(o=qc,s=r),o===Xa||s!==r)return Xa;var u=i(r,t);return u?(o===qc?t.coordinateSystem=u:t.boxCoordinateSystem=u,o):Xa}var Yc=C,d5=["left","right","top","bottom","width","height"],ac=[["width","left","right"],["height","top","bottom"]];function ub(e,t,r,i,n){var a=0,o=0;i==null&&(i=1/0),n==null&&(n=1/0);var s=0;t.eachChild(function(u,l){var c=u.getBoundingRect(),f=t.childAt(l+1),d=f&&f.getBoundingRect(),h,v;if(e==="horizontal"){var p=c.width+(d?-d.x+c.x:0);h=a+p,h>i||u.newline?(a=0,h=p,o+=s+r,s=c.height):s=Math.max(s,c.height)}else{var g=c.height+(d?-d.y+c.y:0);v=o+g,v>n||u.newline?(a+=s+r,o=0,v=g,s=c.width):s=Math.max(s,c.width)}u.newline||(u.x=a,u.y=o,u.markRedraw(),e==="horizontal"?a=h+r:o=v+r)})}var zs=ub;He(ub,"vertical");He(ub,"horizontal");function h5(e,t){return{left:e.getShallow("left",t),top:e.getShallow("top",t),right:e.getShallow("right",t),bottom:e.getShallow("bottom",t),width:e.getShallow("width",t),height:e.getShallow("height",t)}}function v5(e,t){var r=Oh(e,t,{enableLayoutOnlyByCenter:!0}),i=e.getBoxLayoutParams(),n,a;if(r.type===xs.point)a=r.refPoint,n=ti(i,{width:t.getWidth(),height:t.getHeight()});else{var o=e.get("center"),s=q(o)?o:[o,o];n=ti(i,r.refContainer),a=r.boxCoordFrom===XP?r.refPoint:[$e(s[0],n.width)+n.x,$e(s[1],n.height)+n.y]}return{viewRect:n,center:a}}function p5(e,t){var r=v5(e,t),i=r.viewRect,n=r.center,a=e.get("radius");q(a)||(a=[0,a]);var o=$e(i.width,t.getWidth()),s=$e(i.height,t.getHeight()),u=Math.min(o,s),l=$e(a[0],u/2),c=$e(a[1],u/2);return{cx:n[0],cy:n[1],r0:l,r:c,viewRect:i}}function ti(e,t,r){r=Lh(r||0);var i=t.width,n=t.height,a=$e(e.left,i),o=$e(e.top,n),s=$e(e.right,i),u=$e(e.bottom,n),l=$e(e.width,i),c=$e(e.height,n),f=r[2]+r[0],d=r[1]+r[3],h=e.aspect;switch(isNaN(l)&&(l=i-s-d-a),isNaN(c)&&(c=n-u-f-o),h!=null&&(isNaN(l)&&isNaN(c)&&(h>i/n?l=i*.8:c=n*.8),isNaN(l)&&(l=h*c),isNaN(c)&&(c=l/h)),isNaN(a)&&(a=i-s-l-d),isNaN(o)&&(o=n-u-c-f),e.left||e.right){case"center":a=i/2-l/2-r[3];break;case"right":a=i-l-d;break}switch(e.top||e.bottom){case"middle":case"center":o=n/2-c/2-r[0];break;case"bottom":o=n-c-f;break}a=a||0,o=o||0,isNaN(l)&&(l=i-d-a-(s||0)),isNaN(c)&&(c=n-f-o-(u||0));var v=new fe((t.x||0)+a+r[3],(t.y||0)+o+r[0],l,c);return v.margin=r,v}var xs={rect:1,point:2};function Oh(e,t,r){var i,n,a,o=e.boxCoordinateSystem,s;if(o){var u=JP(e),l=u.coord,c=u.from;if(o.dataToLayout){a=xs.rect,s=c;var f=o.dataToLayout(l);i=f.contentRect||f.rect}else r&&r.enableLayoutOnlyByCenter&&o.dataToPoint&&(a=xs.point,s=c,n=o.dataToPoint(l))}return a==null&&(a=xs.rect),a===xs.rect&&(i||(i={x:0,y:0,width:t.getWidth(),height:t.getHeight()}),n=[i.x+i.width/2,i.y+i.height/2]),{type:a,refContainer:i,refPoint:n,boxCoordFrom:s}}function uu(e){var t=e.layoutMode||e.constructor.layoutMode;return ne(t)?t:t?{type:t}:null}function ri(e,t,r){var i=r&&r.ignoreSize;!q(i)&&(i=[i,i]);var n=o(ac[0],0),a=o(ac[1],1);u(ac[0],e,n),u(ac[1],e,a);function o(l,c){var f={},d=0,h={},v=0,p=2;if(Yc(l,function(y){h[y]=e[y]}),Yc(l,function(y){Ut(t,y)&&(f[y]=h[y]=t[y]),s(f,y)&&d++,s(h,y)&&v++}),i[c])return s(t,l[1])?h[l[2]]=null:s(t,l[2])&&(h[l[1]]=null),h;if(v===p||!d)return h;if(d>=p)return f;for(var g=0;g<l.length;g++){var m=l[g];if(!Ut(f,m)&&Ut(e,m)){f[m]=e[m];break}}return f}function s(l,c){return l[c]!=null&&l[c]!=="auto"}function u(l,c,f){Yc(l,function(d){c[d]=f[d]})}}function Dl(e){return g5({},e)}function g5(e,t){return t&&e&&Yc(d5,function(r){Ut(t,r)&&(e[r]=t[r])}),e}var m5=ke(),Be=(function(e){H(t,e);function t(r,i,n){var a=e.call(this,r,i,n)||this;return a.uid=Ah("ec_cpt_model"),a}return t.prototype.init=function(r,i,n){this.mergeDefaultAndTheme(r,n)},t.prototype.mergeDefaultAndTheme=function(r,i){var n=uu(this),a=n?Dl(r):{},o=i.getTheme();Ze(r,o.get(this.mainType)),Ze(r,this.getDefaultOption()),n&&ri(r,a,n)},t.prototype.mergeOption=function(r,i){Ze(this.option,r,!0);var n=uu(this);n&&ri(this.option,r,n)},t.prototype.optionUpdated=function(r,i){},t.prototype.getDefaultOption=function(){var r=this.constructor;if(!yB(r))return r.defaultOption;var i=m5(this);if(!i.defaultOption){for(var n=[],a=r;a;){var o=a.prototype.defaultOption;o&&n.push(o),a=a.superClass}for(var s={},u=n.length-1;u>=0;u--)s=Ze(s,n[u],!0);i.defaultOption=s}return i.defaultOption},t.prototype.getReferringComponents=function(r,i){var n=r+"Index",a=r+"Id";return kl(this.ecModel,r,{index:this.get(n,!0),id:this.get(a,!0)},i)},t.prototype.getBoxLayoutParams=function(){return h5(this,!1)},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})(et);GA(Be,et);gh(Be);jj(Be);Zj(Be,y5);function y5(e){var t=[];return C(Be.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=Q(t,function(r){return en(r).main}),e!=="dataset"&&xe(t,"dataset")<=0&&t.unshift("dataset"),t}var re={color:{},darkColor:{},size:{}},nt=re.color={theme:["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"],neutral00:"#fff",neutral05:"#f4f7fd",neutral10:"#e8ebf0",neutral15:"#dbdee4",neutral20:"#cfd2d7",neutral25:"#c3c5cb",neutral30:"#b7b9be",neutral35:"#aaacb2",neutral40:"#9ea0a5",neutral45:"#929399",neutral50:"#86878c",neutral55:"#797b7f",neutral60:"#6d6e73",neutral65:"#616266",neutral70:"#54555a",neutral75:"#48494d",neutral80:"#3c3c41",neutral85:"#303034",neutral90:"#232328",neutral95:"#17171b",neutral99:"#000",accent05:"#eff1f9",accent10:"#e0e4f2",accent15:"#d0d6ec",accent20:"#c0c9e6",accent25:"#b1bbdf",accent30:"#a1aed9",accent35:"#91a0d3",accent40:"#8292cc",accent45:"#7285c6",accent50:"#6578ba",accent55:"#5c6da9",accent60:"#536298",accent65:"#4a5787",accent70:"#404c76",accent75:"#374165",accent80:"#2e3654",accent85:"#252b43",accent90:"#1b2032",accent95:"#121521",transparent:"rgba(0,0,0,0)",highlight:"rgba(255,231,130,0.8)"};V(nt,{primary:nt.neutral80,secondary:nt.neutral70,tertiary:nt.neutral60,quaternary:nt.neutral50,disabled:nt.neutral20,border:nt.neutral30,borderTint:nt.neutral20,borderShade:nt.neutral40,background:nt.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:nt.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:nt.neutral70,axisLineTint:nt.neutral40,axisTick:nt.neutral70,axisTickMinor:nt.neutral60,axisLabel:nt.neutral70,axisSplitLine:nt.neutral15,axisMinorSplitLine:nt.neutral05});for(var $i in nt)if(nt.hasOwnProperty($i)){var c1=nt[$i];$i==="theme"?re.darkColor.theme=nt.theme.slice():$i==="highlight"?re.darkColor.highlight="rgba(255,231,130,0.4)":$i.indexOf("accent")===0?re.darkColor[$i]=Kp(c1,null,function(e){return e*.5},function(e){return Math.min(1,1.3-e)}):re.darkColor[$i]=Kp(c1,null,function(e){return e*.9},function(e){return 1-Math.pow(e,1.5)})}re.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var QP="";typeof navigator<"u"&&(QP=navigator.platform||"");var Da="rgba(0, 0, 0, 0.2)",eM=re.color.theme[0],_5=Kp(eM,null,null,.9);const tM={darkMode:"auto",colorBy:"series",color:re.color.theme,gradientColor:[_5,eM],aria:{decal:{decals:[{color:Da,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Da,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Da,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Da,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Da,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Da,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:QP.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var yt={Must:1,Might:2,Not:3},rM=ke();function b5(e){rM(e).datasetMap=se()}function S5(e,t,r){var i={},n=lb(t);if(!n||!e)return i;var a=[],o=[],s=t.ecModel,u=rM(s).datasetMap,l=n.uid+"_"+r.seriesLayoutBy,c,f;e=e.slice(),C(e,function(p,g){var m=ne(p)?p:e[g]={name:p};m.type==="ordinal"&&c==null&&(c=g,f=v(m)),i[m.name]=[]});var d=u.get(l)||u.set(l,{categoryWayDim:f,valueWayDim:0});C(e,function(p,g){var m=p.name,y=v(p);if(c==null){var _=d.valueWayDim;h(i[m],_,y),h(o,_,y),d.valueWayDim+=y}else if(c===g)h(i[m],0,y),h(a,0,y);else{var _=d.categoryWayDim;h(i[m],_,y),h(o,_,y),d.categoryWayDim+=y}});function h(p,g,m){for(var y=0;y<m;y++)p.push(g+y)}function v(p){var g=p.dimsDef;return g?g.length:1}return a.length&&(i.itemName=a),o.length&&(i.seriesName=o),i}function nM(e,t,r){var i={},n=lb(e);if(!n)return i;var a=t.sourceFormat,o=t.dimensionsDefine,s;(a===kr||a===Fr)&&C(o,function(c,f){(ne(c)?c.name:c)==="name"&&(s=f)});var u=(function(){for(var c={},f={},d=[],h=0,v=Math.min(5,r);h<v;h++){var p=aM(t.data,a,t.seriesLayoutBy,o,t.startIndex,h);d.push(p);var g=p===yt.Not;if(g&&c.v==null&&h!==s&&(c.v=h),(c.n==null||c.n===c.v||!g&&d[c.n]===yt.Not)&&(c.n=h),m(c)&&d[c.n]!==yt.Not)return c;g||(p===yt.Might&&f.v==null&&h!==s&&(f.v=h),(f.n==null||f.n===f.v)&&(f.n=h))}function m(y){return y.v!=null&&y.n!=null}return m(c)?c:m(f)?f:null})();if(u){i.value=[u.v];var l=s??u.n;i.itemName=[l],i.seriesName=[l]}return i}function lb(e){var t=e.get("data",!0);if(!t)return kl(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},gr).models[0]}function w5(e){return!e.get("transform",!0)&&!e.get("fromTransformResult",!0)?[]:kl(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},gr).models}function iM(e,t){return aM(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function aM(e,t,r,i,n,a){var o,s=5;if(qt(e))return yt.Not;var u,l;if(i){var c=i[a];ne(c)?(u=c.name,l=c.type):te(c)&&(u=c)}if(l!=null)return l==="ordinal"?yt.Must:yt.Not;if(t===Pt){var f=e;if(r===va){for(var d=f[a],h=0;h<(d||[]).length&&h<s;h++)if((o=b(d[n+h]))!=null)return o}else for(var h=0;h<f.length&&h<s;h++){var v=f[n+h];if(v&&(o=b(v[a]))!=null)return o}}else if(t===kr){var p=e;if(!u)return yt.Not;for(var h=0;h<p.length&&h<s;h++){var g=p[h];if(g&&(o=b(g[u]))!=null)return o}}else if(t===Fr){var m=e;if(!u)return yt.Not;var d=m[u];if(!d||qt(d))return yt.Not;for(var h=0;h<d.length&&h<s;h++)if((o=b(d[h]))!=null)return o}else if(t===ar)for(var y=e,h=0;h<y.length&&h<s;h++){var g=y[h],_=Tl(g);if(!q(_))return yt.Not;if((o=b(_[a]))!=null)return o}function b(S){var w=te(S);if(S!=null&&isFinite(Number(S))&&S!=="")return w?yt.Might:yt.Not;if(w&&S!=="-")return yt.Must}return yt.Not}var x5=se();function T5(e,t,r){var i=x5.get(t);if(!i)return r;var n=i(e);return n?r.concat(n):r}var f1=ke();ke();var cb=(function(){function e(){}return e.prototype.getColorFromPalette=function(t,r,i){var n=Bt(this.get("color",!0)),a=this.get("colorLayer",!0);return I5(this,f1,n,a,t,r,i)},e.prototype.clearColorPalette=function(){$5(this,f1)},e})();function k5(e,t){for(var r=e.length,i=0;i<r;i++)if(e[i].length>t)return e[i];return e[r-1]}function I5(e,t,r,i,n,a,o){a=a||e;var s=t(a),u=s.paletteIdx||0,l=s.paletteNameMap=s.paletteNameMap||{};if(l.hasOwnProperty(n))return l[n];var c=o==null||!i?r:k5(i,o);if(c=c||r,!(!c||!c.length)){var f=c[u];return n&&(l[n]=f),s.paletteIdx=(u+1)%c.length,f}}function $5(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var oc,ns,d1,h1="\\0_ec_inner",D5=1,fb=(function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r,i,n,a,o,s){a=a||{},this.option=null,this._theme=new et(a),this._locale=new et(o),this._optionManager=s},t.prototype.setOption=function(r,i,n){var a=g1(i);this._optionManager.setOption(r,n,a),this._resetOption(null,a)},t.prototype.resetOption=function(r,i){return this._resetOption(r,g1(i))},t.prototype._resetOption=function(r,i){var n=!1,a=this._optionManager;if(!r||r==="recreate"){var o=a.mountOption(r==="recreate");!this.option||r==="recreate"?d1(this,o):(this.restoreData(),this._mergeOption(o,i)),n=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=a.getTimelineOption(this);s&&(n=!0,this._mergeOption(s,i))}if(!r||r==="recreate"||r==="media"){var u=a.getMediaOption(this);u.length&&C(u,function(l){n=!0,this._mergeOption(l,i)},this)}return n},t.prototype.mergeOption=function(r){this._mergeOption(r,null)},t.prototype._mergeOption=function(r,i){var n=this.option,a=this._componentsMap,o=this._componentsCount,s=[],u=se(),l=i&&i.replaceMergeMainTypeMap;b5(this),C(r,function(f,d){f!=null&&(Be.hasClass(d)?d&&(s.push(d),u.set(d,!0)):n[d]=n[d]==null?me(f):Ze(n[d],f,!0))}),l&&l.each(function(f,d){Be.hasClass(d)&&!u.get(d)&&(s.push(d),u.set(d,!0))}),Be.topologicalTravel(s,Be.getAllClassMainTypes(),c,this);function c(f){var d=T5(this,f,Bt(r[f])),h=a.get(f),v=h?l&&l.get(f)?"replaceMerge":"normalMerge":"replaceAll",p=K6(h,d,v);iB(p,f,Be),n[f]=null,a.set(f,null),o.set(f,0);var g=[],m=[],y=0,_;C(p,function(b,S){var w=b.existing,x=b.newOption;if(!x)w&&(w.mergeOption({},this),w.optionUpdated({},!1));else{var T=f==="series",k=Be.getClass(f,b.keyInfo.subType,!T);if(!k)return;if(f==="tooltip"){if(_)return;_=!0}if(w&&w.constructor===k)w.name=b.keyInfo.name,w.mergeOption(x,this),w.optionUpdated(x,!1);else{var I=V({componentIndex:S},b.keyInfo);w=new k(x,this,this,I),V(w,I),b.brandNew&&(w.__requireNewView=!0),w.init(x,this,this),w.optionUpdated(null,!0)}}w?(g.push(w.option),m.push(w),y++):(g.push(void 0),m.push(void 0))},this),n[f]=g,a.set(f,m),o.set(f,y),f==="series"&&oc(this)}this._seriesIndices||oc(this)},t.prototype.getOption=function(){var r=me(this.option);return C(r,function(i,n){if(Be.hasClass(n)){for(var a=Bt(i),o=a.length,s=!1,u=o-1;u>=0;u--)a[u]&&!eu(a[u])?s=!0:(a[u]=null,!s&&o--);a.length=o,r[n]=a}}),delete r[h1],r},t.prototype.setTheme=function(r){this._theme=new et(r),this._resetOption("recreate",null)},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,i){var n=this._componentsMap.get(r);if(n){var a=n[i||0];if(a)return a;if(i==null){for(var o=0;o<n.length;o++)if(n[o])return n[o]}}},t.prototype.queryComponents=function(r){var i=r.mainType;if(!i)return[];var n=r.index,a=r.id,o=r.name,s=this._componentsMap.get(i);if(!s||!s.length)return[];var u;return n!=null?(u=[],C(Bt(n),function(l){s[l]&&u.push(s[l])})):a!=null?u=v1("id",a,s):o!=null?u=v1("name",o,s):u=ot(s,function(l){return!!l}),p1(u,r)},t.prototype.findComponents=function(r){var i=r.query,n=r.mainType,a=s(i),o=a?this.queryComponents(a):ot(this._componentsMap.get(n),function(l){return!!l});return u(p1(o,r));function s(l){var c=n+"Index",f=n+"Id",d=n+"Name";return l&&(l[c]!=null||l[f]!=null||l[d]!=null)?{mainType:n,index:l[c],id:l[f],name:l[d]}:null}function u(l){return r.filter?ot(l,r.filter):l}},t.prototype.eachComponent=function(r,i,n){var a=this._componentsMap;if(le(r)){var o=i,s=r;a.each(function(f,d){for(var h=0;f&&h<f.length;h++){var v=f[h];v&&s.call(o,d,v,v.componentIndex)}})}else for(var u=te(r)?a.get(r):ne(r)?this.findComponents(r):null,l=0;u&&l<u.length;l++){var c=u[l];c&&i.call(n,c,c.componentIndex)}},t.prototype.getSeriesByName=function(r){var i=sn(r,null);return ot(this._componentsMap.get("series"),function(n){return!!n&&i!=null&&n.name===i})},t.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},t.prototype.getSeriesByType=function(r){return ot(this._componentsMap.get("series"),function(i){return!!i&&i.subType===r})},t.prototype.getSeries=function(){return ot(this._componentsMap.get("series"),function(r){return!!r})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(r,i){ns(this),C(this._seriesIndices,function(n){var a=this._componentsMap.get("series")[n];r.call(i,a,n)},this)},t.prototype.eachRawSeries=function(r,i){C(this._componentsMap.get("series"),function(n){n&&r.call(i,n,n.componentIndex)})},t.prototype.eachSeriesByType=function(r,i,n){ns(this),C(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===r&&i.call(n,o,a)},this)},t.prototype.eachRawSeriesByType=function(r,i,n){return C(this.getSeriesByType(r),i,n)},t.prototype.isSeriesFiltered=function(r){return ns(this),this._seriesIndicesMap.get(r.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(r,i){ns(this);var n=[];C(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];r.call(i,o,a)&&n.push(a)},this),this._seriesIndices=n,this._seriesIndicesMap=se(n)},t.prototype.restoreData=function(r){oc(this);var i=this._componentsMap,n=[];i.each(function(a,o){Be.hasClass(o)&&n.push(o)}),Be.topologicalTravel(n,Be.getAllClassMainTypes(),function(a){C(i.get(a),function(o){o&&(a!=="series"||!C5(o,r))&&o.restoreData()})})},t.internalField=(function(){oc=function(r){var i=r._seriesIndices=[];C(r._componentsMap.get("series"),function(n){n&&i.push(n.componentIndex)}),r._seriesIndicesMap=se(i)},ns=function(r){},d1=function(r,i){r.option={},r.option[h1]=D5,r._componentsMap=se({series:[]}),r._componentsCount=se();var n=i.aria;ne(n)&&n.enabled==null&&(n.enabled=!0),A5(i,r._theme.option),Ze(i,tM,!1),r._mergeOption(i,null)}})(),t})(et);function C5(e,t){if(t){var r=t.seriesIndex,i=t.seriesId,n=t.seriesName;return r!=null&&e.componentIndex!==r||i!=null&&e.id!==i||n!=null&&e.name!==n}}function A5(e,t){var r=e.color&&!e.colorLayer;C(t,function(i,n){n==="colorLayer"&&r||n==="color"&&e.color||Be.hasClass(n)||(typeof i=="object"?e[n]=e[n]?Ze(e[n],i,!1):me(i):e[n]==null&&(e[n]=i))})}function v1(e,t,r){if(q(t)){var i=se();return C(t,function(a){if(a!=null){var o=sn(a,null);o!=null&&i.set(a,!0)}}),ot(r,function(a){return a&&i.get(a[e])})}else{var n=sn(t,null);return ot(r,function(a){return a&&n!=null&&a[e]===n})}}function p1(e,t){return t.hasOwnProperty("subType")?ot(e,function(r){return r&&r.subType===t.subType}):e}function g1(e){var t=se();return e&&C(Bt(e.replaceMerge),function(r){t.set(r,!0)}),{replaceMergeMainTypeMap:t}}Br(fb,cb);var P5=/^(min|max)?(.+)$/,M5=(function(){function e(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return e.prototype.setOption=function(t,r,i){t&&(C(Bt(t.series),function(o){o&&o.data&&qt(o.data)&&Np(o.data)}),C(Bt(t.dataset),function(o){o&&o.source&&qt(o.source)&&Np(o.source)})),t=me(t);var n=this._optionBackup,a=L5(t,r,!n);this._newBaseOption=a.baseOption,n?(a.timelineOptions.length&&(n.timelineOptions=a.timelineOptions),a.mediaList.length&&(n.mediaList=a.mediaList),a.mediaDefault&&(n.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=[],me(t?r.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(t){var r,i=this._timelineOptions;if(i.length){var n=t.getComponent("timeline");n&&(r=me(i[n.getCurrentIndex()]))}return r},e.prototype.getMediaOption=function(t){var r=this._api.getWidth(),i=this._api.getHeight(),n=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!n.length&&!a)return s;for(var u=0,l=n.length;u<l;u++)O5(n[u].query,r,i)&&o.push(u);return!o.length&&a&&(o=[-1]),o.length&&!z5(o,this._currentMediaIndices)&&(s=Q(o,function(c){return me(c===-1?a.option:n[c].option)})),this._currentMediaIndices=o,s},e})();function L5(e,t,r){var i=[],n,a,o=e.baseOption,s=e.timeline,u=e.options,l=e.media,c=!!e.media,f=!!(u||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((f||c)&&(e.options=e.media=null),a=e),c&&q(l)&&C(l,function(h){h&&h.option&&(h.query?i.push(h):n||(n=h))}),d(a),C(u,function(h){return d(h)}),C(i,function(h){return d(h.option)});function d(h){C(t,function(v){v(h,r)})}return{baseOption:a,timelineOptions:u||[],mediaDefault:n,mediaList:i}}function O5(e,t,r){var i={width:t,height:r,aspectratio:t/r},n=!0;return C(e,function(a,o){var s=o.match(P5);if(!(!s||!s[1]||!s[2])){var u=s[1],l=s[2].toLowerCase();E5(i[l],a,u)||(n=!1)}}),n}function E5(e,t,r){return r==="min"?e>=t:r==="max"?e<=t:e===t}function z5(e,t){return e.join(",")===t.join(",")}var Cr=C,lu=ne,m1=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function jv(e){var t=e&&e.itemStyle;if(t)for(var r=0,i=m1.length;r<i;r++){var n=m1[r],a=t.normal,o=t.emphasis;a&&a[n]&&(e[n]=e[n]||{},e[n].normal?Ze(e[n].normal,a[n]):e[n].normal=a[n],a[n]=null),o&&o[n]&&(e[n]=e[n]||{},e[n].emphasis?Ze(e[n].emphasis,o[n]):e[n].emphasis=o[n],o[n]=null)}}function Dt(e,t,r){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var i=e[t].normal,n=e[t].emphasis;i&&(r?(e[t].normal=e[t].emphasis=null,je(e[t],i)):e[t]=i),n&&(e.emphasis=e.emphasis||{},e.emphasis[t]=n,n.focus&&(e.emphasis.focus=n.focus),n.blurScope&&(e.emphasis.blurScope=n.blurScope))}}function Ts(e){Dt(e,"itemStyle"),Dt(e,"lineStyle"),Dt(e,"areaStyle"),Dt(e,"label"),Dt(e,"labelLine"),Dt(e,"upperLabel"),Dt(e,"edgeLabel")}function at(e,t){var r=lu(e)&&e[t],i=lu(r)&&r.textStyle;if(i)for(var n=0,a=yw.length;n<a;n++){var o=yw[n];i.hasOwnProperty(o)&&(r[o]=i[o])}}function cr(e){e&&(Ts(e),at(e,"label"),e.emphasis&&at(e.emphasis,"label"))}function R5(e){if(lu(e)){jv(e),Ts(e),at(e,"label"),at(e,"upperLabel"),at(e,"edgeLabel"),e.emphasis&&(at(e.emphasis,"label"),at(e.emphasis,"upperLabel"),at(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(jv(t),cr(t));var r=e.markLine;r&&(jv(r),cr(r));var i=e.markArea;i&&cr(i);var n=e.data;if(e.type==="graph"){n=n||e.nodes;var a=e.links||e.edges;if(a&&!qt(a))for(var o=0;o<a.length;o++)cr(a[o]);C(e.categories,function(l){Ts(l)})}if(n&&!qt(n))for(var o=0;o<n.length;o++)cr(n[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)cr(s[o]);if(r=e.markLine,r&&r.data)for(var u=r.data,o=0;o<u.length;o++)q(u[o])?(cr(u[o][0]),cr(u[o][1])):cr(u[o]);e.type==="gauge"?(at(e,"axisLabel"),at(e,"title"),at(e,"detail")):e.type==="treemap"?(Dt(e.breadcrumb,"itemStyle"),C(e.levels,function(l){Ts(l)})):e.type==="tree"&&Ts(e.leaves)}}function hn(e){return q(e)?e:e?[e]:[]}function y1(e){return(q(e)?e[0]:e)||{}}function N5(e,t){Cr(hn(e.series),function(i){lu(i)&&R5(i)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),Cr(r,function(i){Cr(hn(e[i]),function(n){n&&(at(n,"axisLabel"),at(n.axisPointer,"label"))})}),Cr(hn(e.parallel),function(i){var n=i&&i.parallelAxisDefault;at(n,"axisLabel"),at(n&&n.axisPointer,"label")}),Cr(hn(e.calendar),function(i){Dt(i,"itemStyle"),at(i,"dayLabel"),at(i,"monthLabel"),at(i,"yearLabel")}),Cr(hn(e.radar),function(i){at(i,"name"),i.name&&i.axisName==null&&(i.axisName=i.name,delete i.name),i.nameGap!=null&&i.axisNameGap==null&&(i.axisNameGap=i.nameGap,delete i.nameGap)}),Cr(hn(e.geo),function(i){lu(i)&&(cr(i),Cr(hn(i.regions),function(n){cr(n)}))}),Cr(hn(e.timeline),function(i){cr(i),Dt(i,"label"),Dt(i,"itemStyle"),Dt(i,"controlStyle",!0);var n=i.data;q(n)&&C(n,function(a){ne(a)&&(Dt(a,"label"),Dt(a,"itemStyle"))})}),Cr(hn(e.toolbox),function(i){Dt(i,"iconStyle"),Cr(i.feature,function(n){Dt(n,"iconStyle")})}),at(y1(e.axisPointer),"label"),at(y1(e.tooltip).axisPointer,"label")}function U5(e,t){for(var r=t.split(","),i=e,n=0;n<r.length&&(i=i&&i[r[n]],i!=null);n++);return i}function B5(e,t,r,i){for(var n=t.split(","),a=e,o,s=0;s<n.length-1;s++)o=n[s],a[o]==null&&(a[o]={}),a=a[o];a[n[s]]==null&&(a[n[s]]=r)}function _1(e){e&&C(F5,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var F5=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],j5=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Zv=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function is(e){var t=e&&e.itemStyle;if(t)for(var r=0;r<Zv.length;r++){var i=Zv[r][1],n=Zv[r][0];t[i]!=null&&(t[n]=t[i])}}function b1(e){e&&e.alignTo==="edge"&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function S1(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function Z5(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus==null&&(e.emphasis.focus="adjacency"))}function oM(e,t){if(e)for(var r=0;r<e.length;r++)t(e[r]),e[r]&&oM(e[r].children,t)}function sM(e,t){N5(e,t),e.series=Bt(e.series),C(e.series,function(r){if(ne(r)){var i=r.type;if(i==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow);else if(i==="pie"||i==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise),b1(r.label);var n=r.data;if(n&&!qt(n))for(var a=0;a<n.length;a++)b1(n[a]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(i==="gauge"){var o=U5(r,"pointer.color");o!=null&&B5(r,"itemStyle.color",o)}else if(i==="bar"){is(r),is(r.backgroundStyle),is(r.emphasis);var n=r.data;if(n&&!qt(n))for(var a=0;a<n.length;a++)typeof n[a]=="object"&&(is(n[a]),is(n[a]&&n[a].emphasis))}else if(i==="sunburst"){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s)),S1(r),oM(r.data,S1)}else i==="graph"||i==="sankey"?Z5(r):i==="map"&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&je(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),_1(r)}}),e.dataRange&&(e.visualMap=e.dataRange),C(j5,function(r){var i=e[r];i&&(q(i)||(i=[i]),C(i,function(n){_1(n)}))})}var V5=A0(G5);function G5(e){var t=se();e.eachSeries(function(r){var i=r.get("stack");if(i){var n=t.get(i)||t.set(i,[]),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;n.push(o)}}),t.each(function(r){if(r.length!==0){var i=r[0].seriesModel,n=i.get("stackOrder")||"seriesAsc";n==="seriesDesc"&&r.reverse(),C(r,function(a,o){a.data.setCalculationInfo("stackedOnSeries",o>0?r[o-1].seriesModel:null)}),H5(r)}})}function H5(e){C(e,function(t,r){var i=[],n=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,u=t.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(l,c,f){var d=o.get(t.stackedDimension,f);if(isNaN(d))return n;var h,v;s?v=o.getRawIndex(f):h=o.get(t.stackedByDimension,f);for(var p=NaN,g=r-1;g>=0;g--){var m=e[g];if(s||(v=m.data.rawIndexOf(m.stackedByDimension,h)),v>=0){var y=m.data.getByRawIndex(m.stackResultDimension,v);if(u==="all"||u==="positive"&&y>0||u==="negative"&&y<0||u==="samesign"&&d>=0&&y>0||u==="samesign"&&d<=0&&y<0){d=Z6(d,y),p=y;break}}}return i[0]=d,i[1]=p,i})})}var Eh=(function(){function e(t){this.data=t.data||(t.sourceFormat===Fr?{}:[]),this.sourceFormat=t.sourceFormat||iP,this.seriesLayoutBy=t.seriesLayoutBy||un,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var r=this.dimensionsDefine=t.dimensionsDefine;if(r)for(var i=0;i<r.length;i++){var n=r[i];n.type==null&&iM(this,i)===yt.Must&&(n.type="ordinal")}}return e})();function db(e){return e instanceof Eh}function Dg(e,t,r){r=r||lM(e);var i=t.seriesLayoutBy,n=q5(e,r,i,t.sourceHeader,t.dimensions),a=new Eh({data:e,sourceFormat:r,seriesLayoutBy:i,dimensionsDefine:n.dimensionsDefine,startIndex:n.startIndex,dimensionsDetectedCount:n.dimensionsDetectedCount,metaRawOption:me(t)});return a}function uM(e){return new Eh({data:e,sourceFormat:qt(e)?Xn:ar})}function W5(e){return new Eh({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:me(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function lM(e){var t=iP;if(qt(e))t=Xn;else if(q(e)){e.length===0&&(t=Pt);for(var r=0,i=e.length;r<i;r++){var n=e[r];if(n!=null){if(q(n)||qt(n)){t=Pt;break}else if(ne(n)){t=kr;break}}}}else if(ne(e)){for(var a in e)if(Ut(e,a)&&Wt(e[a])){t=Fr;break}}return t}function q5(e,t,r,i,n){var a,o;if(!e)return{dimensionsDefine:w1(n),startIndex:o,dimensionsDetectedCount:a};if(t===Pt){var s=e;i==="auto"||i==null?x1(function(l){l!=null&&l!=="-"&&(te(l)?o==null&&(o=1):o=0)},r,s,10):o=Re(i)?i:i?1:0,!n&&o===1&&(n=[],x1(function(l,c){n[c]=l!=null?l+"":""},r,s,1/0)),a=n?n.length:r===va?s.length:s[0]?s[0].length:null}else if(t===kr)n||(n=Y5(e));else if(t===Fr)n||(n=[],C(e,function(l,c){n.push(c)}));else if(t===ar){var u=Tl(e[0]);a=q(u)&&u.length||1}return{startIndex:o,dimensionsDefine:w1(n),dimensionsDetectedCount:a}}function Y5(e){for(var t=0,r;t<e.length&&!(r=e[t++]););if(r)return Te(r)}function w1(e){if(e){var t=se();return Q(e,function(r,i){r=ne(r)?r:{name:r};var n={name:r.name,displayName:r.displayName,type:r.type};if(n.name==null)return n;n.name+="",n.displayName==null&&(n.displayName=n.name);var a=t.get(n.name);return a?n.name+="-"+a.count++:t.set(n.name,{count:1}),n})}}function x1(e,t,r,i){if(t===va)for(var n=0;n<r.length&&n<i;n++)e(r[n]?r[n][0]:null,n);else for(var a=r[0]||[],n=0;n<a.length&&n<i;n++)e(a[n],n)}function cM(e){var t=e.sourceFormat;return t===kr||t===Fr}var Di,Ci,Ai,Pi,T1,k1,fM=(function(){function e(t,r){var i=db(t)?t:uM(t);this._source=i;var n=this._data=i.data,a=i.sourceFormat;i.seriesLayoutBy,a===Xn&&(this._offset=0,this._dimSize=r,this._data=n),k1(this,n,i)}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;k1=function(o,s,u){var l=u.sourceFormat,c=u.seriesLayoutBy,f=u.startIndex,d=u.dimensionsDefine,h=T1[hb(l,c)];if(V(o,h),l===Xn)o.getItem=r,o.count=n,o.fillStorage=i;else{var v=dM(l,c);o.getItem=Fe(v,null,s,f,d);var p=hM(l,c);o.count=Fe(p,null,s,f,d)}};var r=function(o,s){o=o-this._offset,s=s||[];for(var u=this._data,l=this._dimSize,c=l*o,f=0;f<l;f++)s[f]=u[c+f];return s},i=function(o,s,u,l){for(var c=this._data,f=this._dimSize,d=0;d<f;d++){for(var h=l[d],v=h[0]==null?1/0:h[0],p=h[1]==null?-1/0:h[1],g=s-o,m=u[d],y=0;y<g;y++){var _=c[y*f+d];m[o+y]=_,_<v&&(v=_),_>p&&(p=_)}h[0]=v,h[1]=p}},n=function(){return this._data?this._data.length/this._dimSize:0};T1=(t={},t[Pt+"_"+un]={pure:!0,appendData:a},t[Pt+"_"+va]={pure:!0,appendData:function(){throw new Error(\'Do not support appendData when set seriesLayoutBy: "row".\')}},t[kr]={pure:!0,appendData:a},t[Fr]={pure:!0,appendData:function(o){var s=this._data;C(o,function(u,l){for(var c=s[l]||(s[l]=[]),f=0;f<(u||[]).length;f++)c.push(u[f])})}},t[ar]={appendData:a},t[Xn]={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})(),sc=function(e){q(e)||LA("series.data or dataset.source must be an array.")};Di={},Di[Pt+"_"+un]=sc,Di[Pt+"_"+va]=sc,Di[kr]=sc,Di[Fr]=function(e,t){for(var r=0;r<t.length;r++){var i=t[r].name;i==null&&LA("dimension name must not be null/undefined.")}},Di[ar]=sc;var I1=function(e,t,r,i){return e[i]},X5=(Ci={},Ci[Pt+"_"+un]=function(e,t,r,i){return e[i+t]},Ci[Pt+"_"+va]=function(e,t,r,i,n){i+=t;for(var a=n||[],o=e,s=0;s<o.length;s++){var u=o[s];a[s]=u?u[i]:null}return a},Ci[kr]=I1,Ci[Fr]=function(e,t,r,i,n){for(var a=n||[],o=0;o<r.length;o++){var s=r[o].name,u=s!=null?e[s]:null;a[o]=u?u[i]:null}return a},Ci[ar]=I1,Ci);function dM(e,t){var r=X5[hb(e,t)];return r}var $1=function(e,t,r){return e.length},K5=(Ai={},Ai[Pt+"_"+un]=function(e,t,r){return Math.max(0,e.length-t)},Ai[Pt+"_"+va]=function(e,t,r){var i=e[0];return i?Math.max(0,i.length-t):0},Ai[kr]=$1,Ai[Fr]=function(e,t,r){var i=r[0].name,n=i!=null?e[i]:null;return n?n.length:0},Ai[ar]=$1,Ai);function hM(e,t){var r=K5[hb(e,t)];return r}var Vv=function(e,t,r){return e[t]},J5=(Pi={},Pi[Pt]=Vv,Pi[kr]=function(e,t,r){return e[r]},Pi[Fr]=Vv,Pi[ar]=function(e,t,r){var i=Tl(e);return i instanceof Array?i[t]:i},Pi[Xn]=Vv,Pi);function vM(e){var t=J5[e];return t}function hb(e,t){return e===Pt?e+"_"+t:e}function yo(e,t,r){if(e){var i=e.getRawDataItem(t);if(i!=null){var n=e.getStore(),a=n.getSource().sourceFormat;if(r!=null){var o=e.getDimensionIndex(r),s=n.getDimensionProperty(o);return vM(a)(i,o,s)}else{var u=i;return a===ar&&(u=Tl(i)),u}}}}var Q5=/\\{@(.+?)\\}/g,vb=(function(){function e(){}return e.prototype.getDataParams=function(t,r){var i=this.getData(r),n=this.getRawValue(t,r),a=i.getRawIndex(t),o=i.getName(t),s=i.getRawDataItem(t),u=i.getItemVisual(t,"style"),l=u&&u[i.getItemVisual(t,"drawType")||"fill"],c=u&&u.stroke,f=this.mainType,d=f==="series",h=i.userOutput&&i.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:n,color:l,borderColor:c,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(t,r,i,n,a,o){r=r||"normal";var s=this.getData(i),u=this.getDataParams(t,i);if(o&&(u.value=o.interpolatedValue),n!=null&&q(u.value)&&(u.value=u.value[n]),!a){var l=s.getItemModel(t);a=l.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(le(a))return u.status=r,u.dimensionIndex=n,a(u);if(te(a)){var c=YP(a,u);return c.replace(Q5,function(f,d){var h=d.length,v=d;v.charAt(0)==="["&&v.charAt(h-1)==="]"&&(v=+v.slice(1,h-1));var p=yo(s,t,v);if(o&&q(o.interpolatedValue)){var g=s.getDimensionIndex(v);g>=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},e.prototype.getRawValue=function(t,r){return yo(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,i){},e})();function D1(e){var t,r;return ne(e)?e.type&&(r=e):t=e,{text:t,frag:r}}function Rs(e){return new eZ(e)}var eZ=(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,i=t&&t.skip;if(this._dirty&&r){var n=this.context;n.data=n.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!i&&(a=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,u=c(t&&t.modBy),l=t&&t.modDataCount||0;(o!==u||s!==l)&&(a="reset");function c(y){return!(y>=1)&&(y=1),y}var f;(this._dirty||a==="reset")&&(this._dirty=!1,f=this._doReset(i)),this._modBy=u,this._modDataCount=l;var d=t&&t.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,v=Math.min(d!=null?this._dueIndex+d:1/0,this._dueEnd);if(!i&&(f||h<v)){var p=this._progress;if(q(p))for(var g=0;g<p.length;g++)this._doProgress(p[g],h,v,u,l);else this._doProgress(p,h,v,u,l)}this._dueIndex=v;var m=this._settedOutputEnd!=null?this._settedOutputEnd:v;this._outputDueEnd=m}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,i,n,a){C1.reset(r,i,n,a),this._callingProgress=t,this._callingProgress({start:r,end:i,count:i-r,next:C1.next},this.context)},e.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,i;!t&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(i=r.forceFirstProgress,r=r.progress),q(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var n=this._downstream;return n&&n.dirty(),i},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})(),C1=(function(){var e,t,r,i,n,a={reset:function(u,l,c,f){t=u,e=l,r=c,i=f,n=Math.ceil(i/r),a.next=r>1&&i>0?s:o}};return a;function o(){return t<e?t++:null}function s(){var u=t%n*r+Math.ceil(t/n),l=t>=e?null:u<i?u:t;return t++,l}})();function Ka(e,t){var r=t&&t.type;return r==="ordinal"?e:(r==="time"&&!Re(e)&&e!=null&&e!=="-"&&(e=+jo(e)),e==null||e===""?NaN:Number(e))}se({number:function(e){return parseFloat(e)},time:function(e){return+jo(e)},trim:function(e){return te(e)?Qr(e):e}});var tZ=(function(){function e(t,r){var i=t==="desc";this._resultLT=i?1:-1,r==null&&(r=i?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return e.prototype.evaluate=function(t,r){var i=Re(t)?t:yf(t),n=Re(r)?r:yf(r),a=isNaN(i),o=isNaN(n);if(a&&(i=this._incomparable),o&&(n=this._incomparable),a&&o){var s=te(t),u=te(r);s&&(i=u?t:0),u&&(n=s?r:0)}return i<n?this._resultLT:i>n?-this._resultLT:0},e})();function pM(e){var t="",r=-1/0,i=-1/0,n=1/0,a=1/0;return e&&(e.g!=null&&(t+="G"+e.g,r=e.g),e.ge!=null&&(t+="GE"+e.ge,i=e.ge),e.l!=null&&(t+="L"+e.l,n=e.l),e.le!=null&&(t+="LE"+e.le,a=e.le)),{key:t,g:r,ge:i,l:n,le:a}}function gM(e,t){return t>e.g&&t>=e.ge&&t<e.l&&t<=e.le}var rZ=(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 Ka(t,r)},e})();function nZ(e,t){var r=new rZ,i=e.data,n=r.sourceFormat=e.sourceFormat,a=e.startIndex,o="";e.seriesLayoutBy!==un&&Vt(o);var s=[],u={},l=e.dimensionsDefine;if(l)C(l,function(p,g){var m=p.name,y={index:g,name:m,displayName:p.displayName};if(s.push(y),m!=null){var _="";Ut(u,m)&&Vt(_),u[m]=y}});else for(var c=0;c<e.dimensionsDetectedCount;c++)s.push({index:c});var f=dM(n,un);t.__isBuiltIn&&(r.getRawDataItem=function(p){return f(i,a,s,p)},r.getRawData=Fe(iZ,null,e)),r.cloneRawData=Fe(aZ,null,e);var d=hM(n,un);r.count=Fe(d,null,i,a,s);var h=vM(n);r.retrieveValue=function(p,g){var m=f(i,a,s,p);return v(m,g)};var v=r.retrieveValueFromItem=function(p,g){if(p!=null){var m=s[g];if(m)return h(p,g,m.name)}};return r.getDimensionInfo=Fe(oZ,null,s,u),r.cloneAllDimensionInfo=Fe(sZ,null,s),r}function iZ(e){var t=e.sourceFormat;if(!pb(t)){var r="";Vt(r)}return e.data}function aZ(e){var t=e.sourceFormat,r=e.data;if(!pb(t)){var i="";Vt(i)}if(t===Pt){for(var n=[],a=0,o=r.length;a<o;a++)n.push(r[a].slice());return n}else if(t===kr){for(var n=[],a=0,o=r.length;a<o;a++)n.push(V({},r[a]));return n}}function oZ(e,t,r){if(r!=null){if(Re(r)||!isNaN(r)&&!Ut(t,r))return e[r];if(Ut(t,r))return t[r]}}function sZ(e){return me(e)}var mM=se();function uZ(e){e=me(e);var t=e.type,r="";t||Vt(r);var i=t.split(":");i.length!==2&&Vt(r);var n=!1;i[0]==="echarts"&&(t=i[1],n=!0),e.__isBuiltIn=n,mM.set(t,e)}function lZ(e,t,r){var i=Bt(e),n=i.length,a="";n||Vt(a);for(var o=0,s=n;o<s;o++){var u=i[o];t=cZ(u,t),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function cZ(e,t,r,i){var n="";t.length||Vt(n),ne(e)||Vt(n);var a=e.type,o=mM.get(a);o||Vt(n);var s=Q(t,function(l){return nZ(l,o)}),u=Bt(o.transform({upstream:s[0],upstreamList:s,config:me(e.config)}));return Q(u,function(l,c){var f="";ne(l)||Vt(f),l.data||Vt(f);var d=lM(l.data);pb(d)||Vt(f);var h,v=t[0];if(v&&c===0&&!l.dimensions){var p=v.startIndex;p&&(l.data=v.data.slice(0,p).concat(l.data)),h={seriesLayoutBy:un,sourceHeader:p,dimensions:v.metaRawOption.dimensions}}else h={seriesLayoutBy:un,sourceHeader:0,dimensions:l.dimensions};return Dg(l.data,h,null)})}function pb(e){return e===Pt||e===kr}var fZ=typeof Uint32Array===Zo?Array:Uint32Array,dZ=typeof Uint16Array===Zo?Array:Uint16Array,yM=typeof Int32Array===Zo?Array:Int32Array,A1=typeof Float64Array===Zo?Array:Float64Array,_M={float:A1,int:yM,ordinal:Array,number:Array,time:A1},Gv;function Ca(e){return e>65535?fZ:dZ}function hZ(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function P1(e,t,r,i,n){var a=_M[r||"float"];if(n){var o=e[t],s=o&&o.length;if(s!==i){for(var u=new a(i),l=0;l<s;l++)u[l]=o[l];e[t]=u}}else e[t]=new a(i)}var Cg=(function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=se()}return e.prototype.initData=function(t,r,i){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var n=t.getSource(),a=this.defaultDimValueGetter=Gv[n.sourceFormat];this._dimValueGetter=i||a,this._rawExtent=[],cM(n),this._dimensions=Q(r,function(o){return{type:o.type,property:o.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 i=this._calcDimNameToIdx,n=this._dimensions,a=i.get(t);if(a!=null){if(n[a].type===r)return a}else a=n.length;return n[a]={type:r},i.set(t,a),this._chunks[a]=new _M[r||"float"](this._rawCount),this._rawExtent[a]=hr(),a},e.prototype.collectOrdinalMeta=function(t,r){var i=this._chunks[t],n=this._dimensions[t],a=this._rawExtent,o=n.ordinalOffset||0,s=i.length;o===0&&(a[t]=hr());for(var u=a[t],l=o;l<s;l++){var c=i[l]=r.parseAndCollect(i[l]);isNaN(c)||(u[0]=Math.min(c,u[0]),u[1]=Math.max(c,u[1]))}n.ordinalMeta=r,n.ordinalOffset=s,n.type="ordinal"},e.prototype.getOrdinalMeta=function(t){var r=this._dimensions[t],i=r.ordinalMeta;return i},e.prototype.getDimensionProperty=function(t){var r=this._dimensions[t];return r&&r.property},e.prototype.appendData=function(t){var r=this._provider,i=this.count();r.appendData(t);var n=r.count();return r.persistent||(n+=i),i<n&&this._initDataFromProvider(i,n,!0),[i,n]},e.prototype.appendValues=function(t,r){for(var i=this._chunks,n=this._dimensions,a=n.length,o=this._rawExtent,s=this.count(),u=s+Math.max(t.length,r||0),l=0;l<a;l++){var c=n[l];P1(i,l,c.type,u,!0)}for(var f=[],d=s;d<u;d++)for(var h=d-s,v=0;v<a;v++){var c=n[v],p=Gv.arrayRows.call(this,t[h]||f,c.property,h,v);i[v][d]=p;var g=o[v];p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}return this._rawCount=this._count=u,{start:s,end:u}},e.prototype._initDataFromProvider=function(t,r,i){for(var n=this._provider,a=this._chunks,o=this._dimensions,s=o.length,u=this._rawExtent,l=Q(o,function(y){return y.property}),c=0;c<s;c++){var f=o[c];u[c]||(u[c]=hr()),P1(a,c,f.type,r,i)}if(n.fillStorage)n.fillStorage(t,r,a,u);else for(var d=[],h=t;h<r;h++){d=n.getItem(h,d);for(var v=0;v<s;v++){var p=a[v],g=this._dimValueGetter(d,l[v],h,v);p[h]=g;var m=u[v];g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}!n.persistent&&n.clean&&n.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 i=this._chunks[t];return i?i[this.getRawIndex(r)]:NaN},e.prototype.getValues=function(t,r){var i=[],n=[];if(r==null){r=t,t=[];for(var a=0;a<this._dimensions.length;a++)n.push(a)}else n=t;for(var a=0,o=n.length;a<o;a++)i.push(this.get(n[a],r));return i},e.prototype.getByRawIndex=function(t,r){if(!(r>=0&&r<this._rawCount))return NaN;var i=this._chunks[t];return i?i[r]:NaN},e.prototype.getSum=function(t){var r=this._chunks[t],i=0;if(r)for(var n=0,a=this.count();n<a;n++){var o=this.get(t,n);isNaN(o)||(i+=o)}return i},e.prototype.getMedian=function(t){var r=[];this.each([t],function(n){isNaN(n)||r.push(n)}),x0(r);var i=this.count();return i===0?0:i%2===1?r[(i-1)/2]:(r[i/2]+r[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,i=r[t];if(i!=null&&i<this._count&&i===t)return t;for(var n=0,a=this._count-1;n<=a;){var o=(n+a)/2|0;if(r[o]<t)n=o+1;else if(r[o]>t)a=o-1;else return o}return-1},e.prototype.getIndices=function(){var t,r=this._indices;if(r){var i=r.constructor,n=this._count;if(i===Array){t=new i(n);for(var a=0;a<n;a++)t[a]=r[a]}else t=new i(r.buffer,0,n)}else{var i=Ca(this._rawCount);t=new i(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 i=this.clone(),n=i.count(),a=Ca(i._rawCount),o=new a(n),s=[],u=t.length,l=0,c=t[0],f=i._chunks,d=0;d<n;d++){var h=void 0,v=i.getRawIndex(d);if(u===0)h=r(d);else if(u===1){var p=f[c][v];h=r(p,d)}else{for(var g=0;g<u;g++)s[g]=f[t[g]][v];s[g]=d,h=r.apply(null,s)}h&&(o[l++]=v)}return l<n&&(i._indices=o),i._count=l,i._extent=[],i._updateGetRawIdx(),i},e.prototype.selectRange=function(t){var r=this.clone(),i=r._count;if(!i)return this;var n=Te(t),a=n.length;if(!a)return this;var o=r.count(),s=Ca(r._rawCount),u=new s(o),l=0,c=n[0],f=t[c][0],d=t[c][1],h=r._chunks,v=!1;if(!r._indices){var p=0;if(a===1){for(var g=h[n[0]],m=0;m<i;m++){var y=g[m];(y>=f&&y<=d||isNaN(y))&&(u[l++]=p),p++}v=!0}else if(a===2){for(var g=h[n[0]],_=h[n[1]],b=t[n[1]][0],S=t[n[1]][1],m=0;m<i;m++){var y=g[m],w=_[m];(y>=f&&y<=d||isNaN(y))&&(w>=b&&w<=S||isNaN(w))&&(u[l++]=p),p++}v=!0}}if(!v)if(a===1)for(var m=0;m<o;m++){var x=r.getRawIndex(m),y=h[n[0]][x];(y>=f&&y<=d||isNaN(y))&&(u[l++]=x)}else for(var m=0;m<o;m++){for(var T=!0,x=r.getRawIndex(m),k=0;k<a;k++){var I=n[k],y=h[I][x];(y<t[I][0]||y>t[I][1])&&(T=!1)}T&&(u[l++]=r.getRawIndex(m))}return l<o&&(r._indices=u),r._count=l,r._extent=[],r._updateGetRawIdx(),r},e.prototype.map=function(t,r){var i=this.clone(t);return this._updateDims(i,t,r),i},e.prototype.modify=function(t,r){this._updateDims(this,t,r)},e.prototype._updateDims=function(t,r,i){for(var n=t._chunks,a=[],o=r.length,s=t.count(),u=[],l=t._rawExtent,c=0;c<r.length;c++)l[r[c]]=hr();for(var f=0;f<s;f++){for(var d=t.getRawIndex(f),h=0;h<o;h++)u[h]=n[r[h]][d];u[o]=f;var v=i&&i.apply(null,u);if(v!=null){typeof v!="object"&&(a[0]=v,v=a);for(var c=0;c<v.length;c++){var p=r[c],g=v[c],m=l[p],y=n[p];y&&(y[d]=g),g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}}},e.prototype.lttbDownSample=function(t,r){var i=this.clone([t],!0),n=i._chunks,a=n[t],o=this.count(),s=0,u=Math.floor(1/r),l=this.getRawIndex(0),c,f,d,h=new(Ca(this._rawCount))(Math.min((Math.ceil(o/u)+2)*2,o));h[s++]=l;for(var v=1;v<o-1;v+=u){for(var p=Math.min(v+u,o-1),g=Math.min(v+u*2,o),m=(g+p)/2,y=0,_=p;_<g;_++){var b=this.getRawIndex(_),S=a[b];isNaN(S)||(y+=S)}y/=g-p;var w=v,x=Math.min(v+u,o),T=v-1,k=a[l];c=-1,d=w;for(var I=-1,$=0,_=w;_<x;_++){var b=this.getRawIndex(_),S=a[b];if(isNaN(S)){$++,I<0&&(I=b);continue}f=Math.abs((T-m)*(S-k)-(T-_)*(y-k)),f>c&&(c=f,d=b)}$>0&&$<x-w&&(h[s++]=Math.min(I,d),d=Math.max(I,d)),h[s++]=d,l=d}return h[s++]=this.getRawIndex(o-1),i._count=s,i._indices=h,i.getRawIndex=this._getRawIdx,i},e.prototype.minmaxDownSample=function(t,r){for(var i=this.clone([t],!0),n=i._chunks,a=Math.floor(1/r),o=n[t],s=this.count(),u=new(Ca(this._rawCount))(Math.ceil(s/a)*2),l=0,c=0;c<s;c+=a){var f=c,d=o[this.getRawIndex(f)],h=c,v=o[this.getRawIndex(h)],p=a;c+a>s&&(p=s-c);for(var g=0;g<p;g++){var m=this.getRawIndex(c+g),y=o[m];y<d&&(d=y,f=c+g),y>v&&(v=y,h=c+g)}var _=this.getRawIndex(f),b=this.getRawIndex(h);f<h?(u[l++]=_,u[l++]=b):(u[l++]=b,u[l++]=_)}return i._count=l,i._indices=u,i._updateGetRawIdx(),i},e.prototype.downSample=function(t,r,i,n){for(var a=this.clone([t],!0),o=a._chunks,s=[],u=Math.floor(1/r),l=o[t],c=this.count(),f=a._rawExtent[t]=hr(),d=new(Ca(this._rawCount))(Math.ceil(c/u)),h=0,v=0;v<c;v+=u){u>c-v&&(u=c-v,s.length=u);for(var p=0;p<u;p++){var g=this.getRawIndex(v+p);s[p]=l[g]}var m=i(s),y=this.getRawIndex(Math.min(v+n(s,m)||0,c-1));l[y]=m,m<f[0]&&(f[0]=m),m>f[1]&&(f[1]=m),d[h++]=y}return a._count=h,a._indices=d,a._updateGetRawIdx(),a},e.prototype.each=function(t,r){if(this._count)for(var i=t.length,n=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(i){case 0:r(a);break;case 1:r(n[t[0]][s],a);break;case 2:r(n[t[0]][s],n[t[1]][s],a);break;default:for(var u=0,l=[];u<i;u++)l[u]=n[t[u]][s];l[u]=a,r.apply(null,l)}}},e.prototype.getDataExtent=function(t,r){var i=this._chunks[t],n=hr();if(!i)return n;var a=this.count(),o=!this._indices&&!r;if(o)return this._rawExtent[t].slice();var s=this._extent,u=s[t]||(s[t]={}),l=pM(r),c=l.key,f=u[c];if(f)return f.slice();for(var d=n[0],h=n[1],v=0;v<a;v++){var p=this.getRawIndex(v),g=i[p];(!r||gM(l,g))&&(g<d&&(d=g),g>h&&(h=g))}return u[c]=[d,h]},e.prototype.getRawDataItem=function(t){var r=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(r);for(var i=[],n=this._chunks,a=0;a<n.length;a++)i.push(n[a][r]);return i},e.prototype.clone=function(t,r){var i=new e,n=this._chunks,a=t&&ei(t,function(s,u){return s[u]=!0,s},{});if(a)for(var o=0;o<n.length;o++)i._chunks[o]=a[o]?hZ(n[o]):n[o];else i._chunks=n;return this._copyCommonProps(i),r||(i._indices=this._cloneIndices()),i._updateGetRawIdx(),i},e.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=me(this._extent),t._rawExtent=me(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,r=void 0;if(t===Array){var i=this._indices.length;r=new t(i);for(var n=0;n<i;n++)r[n]=this._indices[n]}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,i,n,a){return Ka(r[a],this._dimensions[a])}Gv={arrayRows:t,objectRows:function(r,i,n,a){return Ka(r[i],this._dimensions[a])},keyedColumns:t,original:function(r,i,n,a){var o=r&&(r.value==null?r:r.value);return Ka(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,i,n,a){return r[a]}}})(),e})(),vZ=(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(),i=!!r.length,n,a;if(uc(t)){var o=t,s=void 0,u=void 0,l=void 0;if(i){var c=r[0];c.prepareSource(),l=c.getSource(),s=l.data,u=l.sourceFormat,a=[c._getVersionSign()]}else s=o.get("data",!0),u=qt(s)?Xn:ar,a=[];var f=this._getSourceMetaRawOption()||{},d=l&&l.metaRawOption||{},h=J(f.seriesLayoutBy,d.seriesLayoutBy)||null,v=J(f.sourceHeader,d.sourceHeader),p=J(f.dimensions,d.dimensions),g=h!==d.seriesLayoutBy||!!v!=!!d.sourceHeader||p;n=g?[Dg(s,{seriesLayoutBy:h,sourceHeader:v,dimensions:p},u)]:[]}else{var m=t;if(i){var y=this._applyTransform(r);n=y.sourceList,a=y.upstreamSignList}else{var _=m.get("source",!0);n=[Dg(_,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(n,a)},e.prototype._applyTransform=function(t){var r=this._sourceHost,i=r.get("transform",!0),n=r.get("fromTransformResult",!0);if(n!=null){var a="";t.length!==1&&M1(a)}var o,s=[],u=[];return C(t,function(l){l.prepareSource();var c=l.getSource(n||0),f="";n!=null&&!c&&M1(f),s.push(c),u.push(l._getVersionSign())}),i?o=lZ(i,s,{datasetIndex:r.componentIndex}):n!=null&&(o=[W5(s[0])]),{sourceList:o,upstreamSignList:u}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),r=0;r<t.length;r++){var i=t[r];if(i._isDirty()||this._upstreamSignList[r]!==i._getVersionSign())return!0}},e.prototype.getSource=function(t){t=t||0;var r=this._sourceList[t];if(!r){var i=this._getUpstreamSourceManagers();return i[0]&&i[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,i){var n=0,a=this._storeList,o=a[n];o||(o=a[n]={});var s=o[i];if(!s){var u=this._getUpstreamSourceManagers()[0];uc(this._sourceHost)&&u?s=u._innerGetDataStore(t,r,i):(s=new Cg,s.initData(new fM(r,t.length),t)),o[i]=s}return s},e.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(uc(t)){var r=lb(t);return r?[r.getSourceManager()]:[]}else return Q(w5(t),function(i){return i.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,r,i,n;if(uc(t))r=t.get("seriesLayoutBy",!0),i=t.get("sourceHeader",!0),n=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=t;r=a.get("seriesLayoutBy",!0),i=a.get("sourceHeader",!0),n=a.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:i,dimensions:n}},e})();function uc(e){return e.mainType==="series"}function M1(e){throw new Error(e)}var pZ="line-height:1";function bM(e){var t=e.lineHeight;return t==null?pZ:"line-height:"+zt(t+"")+"px"}function SM(e,t){var r=e.color||re.color.tertiary,i=e.fontSize||12,n=e.fontWeight||"400",a=e.color||re.color.secondary,o=e.fontSize||14,s=e.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+zt(i+"")+"px;color:"+zt(r)+";font-weight:"+zt(n+""),valueStyle:"font-size:"+zt(o+"")+"px;color:"+zt(a)+";font-weight:"+zt(s+"")}:{nameStyle:{fontSize:i,fill:r,fontWeight:n},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var gZ=[0,10,20,30],mZ=["",`\n`,`\n\n`,`\n\n\n`];function sa(e,t){return t.type=e,t}function Ag(e){return e.type==="section"}function wM(e){return Ag(e)?yZ:_Z}function xM(e){if(Ag(e)){var t=0,r=e.blocks.length,i=r>1||r>0&&!e.noHeader;return C(e.blocks,function(n){var a=xM(n);a>=t&&(t=a+ +(i&&(!a||Ag(n)&&!n.noHeader)))}),t}return 0}function yZ(e,t,r,i){var n=t.noHeader,a=bZ(xM(t)),o=[],s=t.blocks||[];Rr(!s||q(s)),s=s||[];var u=e.orderMode;if(t.sortBlocks&&u){s=s.slice();var l={valueAsc:"asc",valueDesc:"desc"};if(Ut(l,u)){var c=new tZ(l[u],null);s.sort(function(p,g){return c.evaluate(p.sortParam,g.sortParam)})}else u==="seriesDesc"&&s.reverse()}C(s,function(p,g){var m=t.valueFormatter,y=wM(p)(m?V(V({},e),{valueFormatter:m}):e,p,g>0?a.html:0,i);y!=null&&o.push(y)});var f=e.renderMode==="richText"?o.join(a.richText):Pg(i,o.join(""),n?r:a.html);if(n)return f;var d=$g(t.header,"ordinal",e.useUTC),h=SM(i,e.renderMode).nameStyle,v=bM(i);return e.renderMode==="richText"?TM(e,d,h)+a.richText+f:Pg(i,\'<div style="\'+h+";"+v+\';">\'+zt(d)+"</div>"+f,r)}function _Z(e,t,r,i){var n=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,u=t.name,l=e.useUTC,c=t.valueFormatter||e.valueFormatter||function(b){return b=q(b)?b:[b],Q(b,function(S,w){return $g(S,q(h)?h[w]:h,l)})};if(!(a&&o)){var f=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||re.color.secondary,n),d=a?"":$g(u,"ordinal",l),h=t.valueType,v=o?[]:c(t.value,t.rawDataIndex),p=!s||!a,g=!s&&a,m=SM(i,n),y=m.nameStyle,_=m.valueStyle;return n==="richText"?(s?"":f)+(a?"":TM(e,d,y))+(o?"":xZ(e,v,p,g,_)):Pg(i,(s?"":f)+(a?"":SZ(d,!s,y))+(o?"":wZ(v,p,g,_)),r)}}function L1(e,t,r,i,n,a){if(e){var o=wM(e),s={useUTC:n,renderMode:r,orderMode:i,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,a)}}function bZ(e){return{html:gZ[e],richText:mZ[e]}}function Pg(e,t,r){var i=\'<div style="clear:both"></div>\',n="margin: "+r+"px 0 0",a=bM(e);return\'<div style="\'+n+";"+a+\';">\'+t+i+"</div>"}function SZ(e,t,r){var i=t?"margin-left:2px":"";return\'<span style="\'+r+";"+i+\'">\'+zt(e)+"</span>"}function wZ(e,t,r,i){var n=r?"10px":"20px",a=t?"float:right;margin-left:"+n:"";return e=q(e)?e:[e],\'<span style="\'+a+";"+i+\'">\'+Q(e,function(o){return zt(o)}).join("&nbsp;&nbsp;")+"</span>"}function TM(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function xZ(e,t,r,i,n){var a=[n],o=i?10:20;return r&&a.push({padding:[0,0,0,o],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(q(t)?t.join(" "):t,a)}function TZ(e,t){var r=e.getData().getItemVisual(t,"style"),i=r[e.visualDrawType];return oa(i)}function kM(e,t){var r=e.get("padding");return r??(t==="richText"?[8,10]:10)}var Hv=(function(){function e(){this.richTextStyles={},this._nextStyleNameId=I0()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,r,i){var n=i==="richText"?this._generateStyleName():null,a=a5({color:r,type:t,renderMode:i,markerId:n});return te(a)?a:(this.richTextStyles[n]=a.style,a.content)},e.prototype.wrapRichTextStyle=function(t,r){var i={};q(r)?C(r,function(a){return V(i,a)}):V(i,r);var n=this._generateStyleName();return this.richTextStyles[n]=i,"{"+n+"|"+t+"}"},e})();function kZ(e){var t=e.series,r=e.dataIndex,i=e.multipleSeries,n=t.getData(),a=n.mapDimensionsAll("defaultedTooltip"),o=a.length,s=t.getRawValue(r),u=q(s),l=TZ(t,r),c,f,d,h;if(o>1||u&&!o){var v=IZ(s,t,r,a,l);c=v.inlineValues,f=v.inlineValueTypes,d=v.blocks,h=v.inlineValues[0]}else if(o){var p=n.getDimensionInfo(a[0]);h=c=yo(n,r,a[0]),f=p.type}else h=c=u?s[0]:s;var g=$0(t),m=g&&t.name||"",y=n.getName(r),_=i?m:y;return sa("section",{header:m,noHeader:i||!g,sortParam:h,blocks:[sa("nameValue",{markerType:"item",markerColor:l,name:_,noName:!Qr(_),value:c,valueType:f,rawDataIndex:n.getRawIndex(r)})].concat(d||[])})}function IZ(e,t,r,i,n){var a=t.getData(),o=ei(e,function(f,d,h){var v=a.getDimensionInfo(h);return f=f||v&&v.tooltip!==!1&&v.displayName!=null},!1),s=[],u=[],l=[];i.length?C(i,function(f){c(yo(a,r,f),f)}):C(e,c);function c(f,d){var h=a.getDimensionInfo(d);!h||h.otherDims.tooltip===!1||(o?l.push(sa("nameValue",{markerType:"subItem",markerColor:n,name:h.displayName,value:f,valueType:h.type})):(s.push(f),u.push(h.type)))}return{inlineValues:s,inlineValueTypes:u,blocks:l}}var Rn=ke();function lc(e,t){return e.getName(t)||e.getId(t)}var $Z="__universalTransitionEnabled",tr=(function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return t.prototype.init=function(r,i,n){this.seriesIndex=this.componentIndex,this.dataTask=Rs({count:CZ,reset:AZ}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,n);var a=Rn(this).sourceManager=new vZ(this);a.prepareSource();var o=this.getInitialData(r,n);E1(o,this),this.dataTask.context.data=o,Rn(this).dataBeforeProcessed=o,O1(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(r,i){var n=uu(this),a=n?Dl(r):{},o=this.subType;Be.hasClass(o)&&(o+="Series"),Ze(r,i.getTheme().get(this.subType)),Ze(r,this.getDefaultOption()),Qs(r,"label",["show"]),this.fillDataTextStyle(r.data),n&&ri(r,a,n)},t.prototype.mergeOption=function(r,i){r=Ze(this.option,r,!0),this.fillDataTextStyle(r.data);var n=uu(this);n&&ri(this.option,r,n);var a=Rn(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,i);E1(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Rn(this).dataBeforeProcessed=o,O1(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(r){if(r&&!qt(r))for(var i=["show"],n=0;n<r.length;n++)r[n]&&r[n].label&&Qs(r[n],"label",i)},t.prototype.getInitialData=function(r,i){},t.prototype.appendData=function(r){var i=this.getRawData();i.appendData(r.data)},t.prototype.getData=function(r){var i=Mg(this);if(i){var n=i.context.data;return r==null||!n.getLinkedData?n:n.getLinkedData(r)}else return Rn(this).data},t.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},t.prototype.setData=function(r){var i=Mg(this);if(i){var n=i.context;n.outputData=r,i!==this.dataTask&&(n.data=r)}Rn(this).data=r},t.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return se(r)},t.prototype.getSourceManager=function(){return Rn(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Rn(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.indicesOfNearest=function(r,i,n,a){var o=this.getData(),s=this.coordinateSystem,u=s&&s.getAxis(r);if(!s||!u)return[];var l=u.dataToCoord(n);a==null&&(a=1/0);for(var c=[],f=1/0,d=-1,h=0,v=o.getDimensionIndex(i),p=o.getStore(),g=0,m=p.count();g<m;g++){var y=p.get(v,g),_=u.dataToCoord(y),b=l-_,S=Math.abs(b);S<=a&&((S<f||S===f&&b>=0&&d<0)&&(f=S,d=b,h=0),b===d&&(c[h++]=g))}return c.length=h,c},t.prototype.formatTooltip=function(r,i,n){return kZ({series:this,dataIndex:r,multipleSeries:i})},t.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(pe.node&&!(r&&r.ssr))return!1;var i=this.getShallow("animation");return i&&this.getData().count()>this.getShallow("animationThreshold")&&(i=!1),!!i},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(r,i,n){var a=this.ecModel,o=cb.prototype.getColorFromPalette.call(this,r,i,n);return o||(o=a.getColorFromPalette(r,i,n)),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,i){this._innerSelect(this.getData(i),r)},t.prototype.unselect=function(r,i){var n=this.option.selectedMap;if(n){var a=this.option.selectedMode,o=this.getData(i);if(a==="series"||n==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<r.length;s++){var u=r[s],l=lc(o,u);n[l]=!1,this._selectedDataIndicesMap[l]=-1}}},t.prototype.toggleSelect=function(r,i){for(var n=[],a=0;a<r.length;a++)n[0]=r[a],this.isSelected(r[a],i)?this.unselect(n,i):this.select(n,i)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,i=Te(r),n=[],a=0;a<i.length;a++){var o=r[i[a]];o>=0&&n.push(o)}return n},t.prototype.isSelected=function(r,i){var n=this.option.selectedMap;if(!n)return!1;var a=this.getData(i);return(n==="all"||n[lc(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[$Z])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},t.prototype._innerSelect=function(r,i){var n,a,o=this.option,s=o.selectedMode,u=i.length;if(!(!s||!u)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){ne(o.selectedMap)||(o.selectedMap={});for(var l=o.selectedMap,c=0;c<u;c++){var f=i[c],d=lc(r,f);l[d]=!0,this._selectedDataIndicesMap[d]=r.getRawIndex(f)}}else if(s==="single"||s===!0){var h=i[u-1],d=lc(r,h);o.selectedMap=(n={},n[d]=!0,n),this._selectedDataIndicesMap=(a={},a[d]=r.getRawIndex(h),a)}}},t.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var i=[];r.hasItemOption&&r.each(function(n){var a=r.getRawDataItem(n);a&&a.selected&&i.push(n)}),i.length>0&&this._innerSelect(r,i)}},t.registerClass=function(r){return Be.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})(Be);Br(tr,vb);Br(tr,cb);GA(tr,Be);function O1(e){var t=e.name;$0(e)||(e.name=DZ(e)||t)}function DZ(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),i=[];return C(r,function(n){var a=t.getDimensionInfo(n);a.displayName&&i.push(a.displayName)}),i.join(" ")}function CZ(e){return e.model.getRawData().count()}function AZ(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),PZ}function PZ(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function E1(e,t){C(dU(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,He(MZ,t))})}function MZ(e,t){var r=Mg(e);return r&&r.setOutputEnd((t||this).count()),t}function Mg(e){var t=(e.ecModel||{}).scheduler,r=t&&t.getPipeline(e.uid);if(r){var i=r.currentTask;if(i){var n=i.agentStubMap;n&&(i=n.get(e.uid))}return i}}var Nr=(function(){function e(){this.group=new ut,this.uid=Ah("viewComponent")}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,i,n){},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,i,n){},e.prototype.updateLayout=function(t,r,i,n){},e.prototype.updateVisual=function(t,r,i,n){},e.prototype.toggleBlurSeries=function(t,r,i){},e.prototype.eachRendered=function(t){var r=this.group;r&&r.traverse(t)},e})();P0(Nr);gh(Nr);function gb(){var e=ke();return function(t){var r=e(t),i=t.pipelineContext,n=!!r.large,a=!!r.progressiveRender,o=r.large=!!(i&&i.large),s=r.progressiveRender=!!(i&&i.progressiveRender);return(n!==o||a!==s)&&"reset"}}var IM=ke(),LZ=gb(),Ht=(function(){function e(){this.group=new ut,this.uid=Ah("viewChart"),this.renderTask=Rs({plan:OZ,reset:EZ}),this.renderTask.context={view:this}}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,i,n){},e.prototype.highlight=function(t,r,i,n){var a=t.getData(n&&n.dataType);a&&R1(a,n,"emphasis")},e.prototype.downplay=function(t,r,i,n){var a=t.getData(n&&n.dataType);a&&R1(a,n,"normal")},e.prototype.remove=function(t,r){this.group.removeAll()},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,i,n){this.render(t,r,i,n)},e.prototype.updateVisual=function(t,r,i,n){this.render(t,r,i,n)},e.prototype.eachRendered=function(t){$l(this.group,t)},e.markUpdateMethod=function(t,r){IM(t).updateMethod=r},e.protoInitialize=(function(){var t=e.prototype;t.type="chart"})(),e})();function z1(e,t,r){e&&bg(e)&&(t==="emphasis"?nu:iu)(e,r)}function R1(e,t,r){var i=ia(e,t),n=t&&t.highlightKey!=null?MF(t.highlightKey):null;i!=null?C(Bt(i),function(a){z1(e.getItemGraphicEl(a),r,n)}):e.eachItemGraphicEl(function(a){z1(a,r,n)})}P0(Ht);gh(Ht);function OZ(e){return LZ(e.model)}function EZ(e){var t=e.model,r=e.ecModel,i=e.api,n=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=n&&IM(n).updateMethod,u=a?"incrementalPrepareRender":s&&o[s]?s:"render";return u!=="render"&&o[u](t,r,i,n),zZ[u]}var zZ={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)}}},$f="\\0__throttleOriginMethod",N1="\\0__throttleRate",U1="\\0__throttleType";function mb(e,t,r){var i,n=0,a=0,o=null,s,u,l,c;t=t||0;function f(){a=new Date().getTime(),o=null,e.apply(u,l||[])}var d=function(){for(var h=[],v=0;v<arguments.length;v++)h[v]=arguments[v];i=new Date().getTime(),u=this,l=h;var p=c||t,g=c||r;c=null,s=i-(g?n:a)-p,clearTimeout(o),g?o=setTimeout(f,p):s>=0?f():o=setTimeout(f,-s),n=i};return d.clear=function(){o&&(clearTimeout(o),o=null)},d.debounceNextCall=function(h){c=h},d}function $M(e,t,r,i){var n=e[t];if(n){var a=n[$f]||n,o=n[U1],s=n[N1];if(s!==r||o!==i){if(r==null||!i)return e[t]=a;n=e[t]=mb(a,r,i==="debounce"),n[$f]=a,n[U1]=i,n[N1]=r}return n}}function Lg(e,t){var r=e[t];r&&r[$f]&&(r.clear&&r.clear(),e[t]=r[$f])}var B1=ke(),F1={itemStyle:tu(EP,!0),lineStyle:tu(OP,!0)},RZ={lineStyle:"stroke",itemStyle:"fill"};function DM(e,t){var r=e.visualStyleMapper||F1[t];return r||(console.warn("Unknown style type \'"+t+"\'."),F1.itemStyle)}function CM(e,t){var r=e.visualDrawType||RZ[t];return r||(console.warn("Unknown style type \'"+t+"\'."),"fill")}var NZ={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),i=e.visualStyleAccessPath||"itemStyle",n=e.getModel(i),a=DM(e,i),o=a(n),s=n.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var u=CM(e,i),l=o[u],c=le(l)?l:null,f=o.fill==="auto"||o.stroke==="auto";if(!o[u]||c||f){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[u]||(o[u]=d,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||le(o.fill)?d:o.fill,o.stroke=o.stroke==="auto"||le(o.stroke)?d:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",u),!t.isSeriesFiltered(e)&&c)return r.setVisual("colorFromPalette",!1),{dataEach:function(h,v){var p=e.getDataParams(v),g=V({},o);g[u]=c(p),h.setItemVisual(v,"style",g)}}}},as=new et,UZ={createOnAllSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData){var r=e.getData(),i=e.visualStyleAccessPath||"itemStyle",n=DM(e,i),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var u=o.getRawDataItem(s);if(u&&u[i]){as.option=u[i];var l=n(as),c=o.ensureUniqueItemVisual(s,"style");V(c,l),as.option.decal&&(o.setItemVisual(s,"decal",as.option.decal),as.option.decal.dirty=!0),a in l&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},BZ={performRawSeries:!0,overallReset:function(e){var t=se();e.eachSeries(function(r){if(!r.isColorBySeries()){var i=r.type+"-"+r.getColorBy();B1(r).scope=t.get(i)||t.set(i,{})}}),e.eachSeries(function(r){if(!r.isColorBySeries()){var i=r.getRawData(),n={},a=r.getData(),o=B1(r).scope,s=r.visualStyleAccessPath||"itemStyle",u=CM(r,s);a.each(function(l){var c=a.getRawIndex(l);n[c]=l}),i.each(function(l){var c=n[l],f=a.getItemVisual(c,"colorFromPalette");if(f){var d=a.ensureUniqueItemVisual(c,"style"),h=i.getName(l)||l+"",v=i.count();d[u]=r.getColorFromPalette(h,o,v)}})}})}},cc=Math.PI;function FZ(e,t){t=t||{},je(t,{text:"loading",textColor:re.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:re.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var r=new ut,i=new st({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(i);var n=new At({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 st({style:{fill:"none"},textContent:n,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});r.add(a);var o;return t.showSpinner&&(o=new kh({shape:{startAngle:-cc/2,endAngle:-cc/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:cc*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:cc*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=n.getBoundingRect().width,u=t.showSpinner?t.spinnerRadius:0,l=(e.getWidth()-u*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:u),c=e.getHeight()/2;t.showSpinner&&o.setShape({cx:l,cy:c}),a.setShape({x:l-u,y:c-u,width:u*2,height:u*2}),i.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},r.resize(),r}var AM=(function(){function e(t,r,i,n){this._stageTaskMap=se(),this.ecInstance=t,this.api=r,i=this._dataProcessorHandlers=i.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=i.concat(n)}return e.prototype.restoreData=function(t,r){t.restoreData(r),this._stageTaskMap.each(function(i){var n=i.overallTask;n&&n.dirty()})},e.prototype.getPerformArgs=function(t,r){if(t.__pipeline){var i=this._pipelineMap.get(t.__pipeline.id),n=i.context,a=!r&&i.progressiveEnabled&&(!n||n.progressiveRender)&&t.__idxInPipeline>i.blockIndex,o=a?i.step:null,s=n&&n.modDataCount,u=s!=null?Math.ceil(s/o):null;return{step:o,modBy:u,modDataCount:s}}},e.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},e.prototype.updateStreamModes=function(t,r){var i=this._pipelineMap.get(t.uid),n=t.__preparePipelineContext?t.__preparePipelineContext(r,i):jA(t,r,i);t.pipelineContext=i.context=n},e.prototype.restorePipelines=function(t,r){var i=this,n=i._pipelineMap=se();r.eachSeries(function(a){var o=t.painter.type==="canvas"&&a.getProgressive(),s=a.uid;n.set(s,{id:s,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:o&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(o||700),count:0}),i._pipe(a,a.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,r=this.api.getModel(),i=this.api;C(this._allHandlers,function(n){var a=t.get(n.uid)||t.set(n.uid,{}),o="";Rr(!(n.reset&&n.overallReset),o),n.reset&&this._createSeriesStageTask(n,a,r,i),n.overallReset&&this._createOverallStageTask(n,a,r,i)},this)},e.prototype.prepareView=function(t,r,i,n){var a=t.renderTask,o=a.context;o.model=r,o.ecModel=i,o.api=n,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,i){this._performStageTasks(this._visualHandlers,t,r,i)},e.prototype._performStageTasks=function(t,r,i,n){n=n||{};var a=!1,o=this;C(t,function(u,l){if(!(n.visualType&&n.visualType!==u.visualType)){var c=o._stageTaskMap.get(u.uid),f=c.seriesTaskMap,d=c.overallTask;if(d){var h,v=d.agentStubMap;v.each(function(g){s(n,g)&&(g.dirty(),h=!0)}),h&&d.dirty(),o.updatePayload(d,i);var p=o.getPerformArgs(d,n.block);v.each(function(g){g.perform(p)}),d.perform(p)&&(a=!0)}else f&&f.each(function(g,m){s(n,g)&&g.dirty();var y=o.getPerformArgs(g,n.block);y.skip=!u.performRawSeries&&r.isSeriesFiltered(g.context.model),o.updatePayload(g,i),g.perform(y)&&(a=!0)})}});function s(u,l){return u.setDirty&&(!u.dirtyMap||u.dirtyMap.get(l.__pipeline.id))}this.unfinished=a||this.unfinished},e.prototype.performSeriesTasks=function(t){var r;t.eachSeries(function(i){r=i.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,i,n){var a=this,o=r.seriesTaskMap,s=r.seriesTaskMap=se(),u=t.seriesType,l=t.getTargetSeries;t.createOnAllSeries?i.eachRawSeries(c):u?i.eachRawSeriesByType(u,c):l&&l(i,n).each(c);function c(f){var d=f.uid,h=s.set(d,o&&o.get(d)||Rs({plan:HZ,reset:WZ,count:YZ}));h.context={model:f,ecModel:i,api:n,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(f,h)}},e.prototype._createOverallStageTask=function(t,r,i,n){var a=this,o=r.overallTask=r.overallTask||Rs({reset:jZ});o.context={ecModel:i,api:n,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,u=o.agentStubMap=se(),l=t.seriesType,c=t.getTargetSeries,f=t.dirtyOnOverallProgress,d=!1,h="";Rr(!t.createOnAllSeries,h),l?i.eachRawSeriesByType(l,v):c?c(i,n).each(v):C(i.getSeries(),v);function v(p){var g=p.uid,m=u.set(g,s&&s.get(g)||(d=!0,Rs({reset:ZZ,onDirty:GZ})));m.context={model:p,dirtyOnOverallProgress:f},m.agent=o,m.__block=f,a._pipe(p,m)}d&&o.dirty()},e.prototype._pipe=function(t,r){var i=t.uid,n=this._pipelineMap.get(i);!n.head&&(n.head=r),n.tail&&n.tail.pipe(r),n.tail=r,r.__idxInPipeline=n.count++,r.__pipeline=n},e.wrapStageHandler=function(t,r){return le(t)&&(t={overallReset:t,seriesType:XZ(t)}),t.uid=Ah("stageHandler"),r&&(t.visualType=r),t},e})();function jZ(e){e.overallReset(e.ecModel,e.api,e.payload)}function ZZ(e){return e.dirtyOnOverallProgress&&VZ}function VZ(){this.agent.dirty(),this.getDownstream().dirty()}function GZ(){this.agent&&this.agent.dirty()}function HZ(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function WZ(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Bt(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?Q(t,function(r,i){return PM(i)}):qZ}var qZ=PM(0);function PM(e){return function(t,r){var i=r.data,n=r.resetDefines[e];if(n&&n.dataEach)for(var a=t.start;a<t.end;a++)n.dataEach(i,a);else n&&n.progress&&n.progress(t,i)}}function YZ(e){return e.data.count()}function XZ(e){Df=null;try{e(cu,MM)}catch{}return Df}var cu={},MM={},Df;LM(cu,fb);LM(MM,aP);cu.eachSeriesByType=cu.eachRawSeriesByType=function(e){Df=e};cu.eachComponent=function(e){e.mainType==="series"&&e.subType&&(Df=e.subType)};function LM(e,t){for(var r in t.prototype)e[r]=bt}var Y=re.darkColor,j1=Y.background,os=function(){return{axisLine:{lineStyle:{color:Y.axisLine}},splitLine:{lineStyle:{color:Y.axisSplitLine}},splitArea:{areaStyle:{color:[Y.backgroundTint,Y.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:Y.axisMinorSplitLine}},axisLabel:{color:Y.axisLabel},axisName:{}}},Z1={label:{color:Y.secondary},itemStyle:{borderColor:Y.borderTint},dividerLineStyle:{color:Y.border}},OM={darkMode:!0,color:Y.theme,backgroundColor:j1,axisPointer:{lineStyle:{color:Y.border},crossStyle:{color:Y.borderShade},label:{color:Y.tertiary}},legend:{textStyle:{color:Y.secondary},pageTextStyle:{color:Y.tertiary}},textStyle:{color:Y.secondary},title:{textStyle:{color:Y.primary},subtextStyle:{color:Y.quaternary}},toolbox:{iconStyle:{borderColor:Y.accent50},feature:{dataView:{backgroundColor:j1,textColor:Y.primary,textareaColor:Y.background,textareaBorderColor:Y.border,buttonColor:Y.accent50,buttonTextColor:Y.neutral00}}},tooltip:{backgroundColor:Y.neutral20,defaultBorderColor:Y.border,textStyle:{color:Y.tertiary}},dataZoom:{borderColor:Y.accent10,textStyle:{color:Y.tertiary},brushStyle:{color:Y.backgroundTint},handleStyle:{color:Y.neutral00,borderColor:Y.accent20},moveHandleStyle:{color:Y.accent40},emphasis:{handleStyle:{borderColor:Y.accent50}},dataBackground:{lineStyle:{color:Y.accent30},areaStyle:{color:Y.accent20}},selectedDataBackground:{lineStyle:{color:Y.accent50},areaStyle:{color:Y.accent30}}},visualMap:{textStyle:{color:Y.secondary},handleStyle:{borderColor:Y.neutral30}},timeline:{lineStyle:{color:Y.accent10},label:{color:Y.tertiary},controlStyle:{color:Y.accent30,borderColor:Y.accent30}},calendar:{itemStyle:{color:Y.neutral00,borderColor:Y.neutral20},dayLabel:{color:Y.tertiary},monthLabel:{color:Y.secondary},yearLabel:{color:Y.secondary}},matrix:{x:Z1,y:Z1,backgroundColor:{borderColor:Y.axisLine},body:{itemStyle:{borderColor:Y.borderTint}}},timeAxis:os(),logAxis:os(),valueAxis:os(),categoryAxis:os(),line:{symbol:"circle"},graph:{color:Y.theme},gauge:{title:{color:Y.secondary},axisLine:{lineStyle:{color:[[1,Y.neutral05]]}},axisLabel:{color:Y.axisLabel},detail:{color:Y.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:Y.background}},radar:(function(){var e=os();return e.axisName={color:Y.axisLabel},e.axisLine.lineStyle.color=Y.neutral20,e})(),treemap:{breadcrumb:{itemStyle:{color:Y.neutral20,textStyle:{color:Y.secondary}},emphasis:{itemStyle:{color:Y.neutral30}}}},sunburst:{itemStyle:{borderColor:Y.background}},map:{itemStyle:{borderColor:Y.border,areaColor:Y.neutral10},label:{color:Y.tertiary},emphasis:{label:{color:Y.primary},itemStyle:{areaColor:Y.highlight}},select:{label:{color:Y.primary},itemStyle:{areaColor:Y.highlight}}},geo:{itemStyle:{borderColor:Y.border,areaColor:Y.neutral10},emphasis:{label:{color:Y.primary},itemStyle:{areaColor:Y.highlight}},select:{label:{color:Y.primary},itemStyle:{color:Y.highlight}}}};OM.categoryAxis.splitLine.show=!1;var KZ=(function(){function e(){}return e.prototype.normalizeQuery=function(t){var r={},i={},n={};if(te(t)){var a=en(t);r.mainType=a.main||null,r.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};C(t,function(u,l){for(var c=!1,f=0;f<o.length;f++){var d=o[f],h=l.lastIndexOf(d);if(h>0&&h===l.length-d.length){var v=l.slice(0,h);v!=="data"&&(r.mainType=v,r[d.toLowerCase()]=u,c=!0)}}s.hasOwnProperty(l)&&(i[l]=u,c=!0),c||(n[l]=u)})}return{cptQuery:r,dataQuery:i,otherQuery:n}},e.prototype.filter=function(t,r){var i=this.eventInfo;if(!i)return!0;var n=i.targetEl,a=i.packedEvent,o=i.model,s=i.view;if(!o||!s)return!0;var u=r.cptQuery,l=r.dataQuery;return c(u,o,"mainType")&&c(u,o,"subType")&&c(u,o,"index","componentIndex")&&c(u,o,"name")&&c(u,o,"id")&&c(l,a,"name")&&c(l,a,"dataIndex")&&c(l,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,r.otherQuery,n,a));function c(f,d,h,v){return f[h]==null||d[v||h]===f[h]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e})(),Og=["symbol","symbolSize","symbolRotate","symbolOffset"],V1=Og.concat(["symbolKeepAspect"]),JZ={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 i={},n={},a=!1,o=0;o<Og.length;o++){var s=Og[o],u=e.get(s);le(u)?(a=!0,n[s]=u):i[s]=u}if(i.symbol=i.symbol||e.defaultSymbol,r.setVisual(V({legendIcon:e.legendIcon||i.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},i)),t.isSeriesFiltered(e))return;var l=Te(n);function c(f,d){for(var h=e.getRawValue(d),v=e.getDataParams(d),p=0;p<l.length;p++){var g=l[p];f.setItemVisual(d,g,n[g](h,v))}}return{dataEach:a?c:null}}},QZ={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.hasSymbolVisual||t.isSeriesFiltered(e))return;var r=e.getData();function i(n,a){for(var o=n.getItemModel(a),s=0;s<V1.length;s++){var u=V1[s],l=o.getShallow(u,!0);l!=null&&n.setItemVisual(a,u,l)}}return{dataEach:r.hasItemOption?i:null}}};function eV(e,t,r){switch(r){case"color":var i=e.getItemVisual(t,"style");return i[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,r)}}function EM(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)}}function tV(e,t){function r(i,n){var a=[];return i.eachComponent({mainType:"series",subType:e,query:n},function(o){a.push(o.seriesIndex)}),a}C([[e+"ToggleSelect","toggleSelect"],[e+"Select","select"],[e+"UnSelect","unselect"]],function(i){t(i[0],function(n,a,o){n=V({},n),o.dispatchAction(V(n,{type:i[1],seriesIndex:r(a,n)}))})})}function Aa(e,t,r,i,n){var a=e+t;r.isSilent(a)||i.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,u=o.option.selectedMap,l=n.selected,c=0;c<l.length;c++)if(l[c].seriesIndex===s){var f=o.getData(),d=ia(f,n.fromActionPayload);r.trigger(a,{type:a,seriesId:o.id,name:q(d)?f.getName(d[0]):f.getName(d),selected:te(u)?u:V({},u)})}})}function rV(e,t,r){e.on("selectchanged",function(i){var n=r.getModel();i.isFromClick?(Aa("map","selectchanged",t,n,i),Aa("pie","selectchanged",t,n,i)):i.fromAction==="select"?(Aa("map","selected",t,n,i),Aa("pie","selected",t,n,i)):i.fromAction==="unselect"&&(Aa("map","unselected",t,n,i),Aa("pie","unselected",t,n,i))})}function ks(e,t,r){for(var i;e&&!(t(e)&&(i=e,r));)e=e.__hostTarget||e.parent;return i}var ur=new Mn,zM={};function nV(e,t){zM[e]=t}function iV(e){return zM[e]}var zh=ke();function aV(e){zh(e).prepare={}}function oV(e){zh(e).fullUpdate={}}function sV(e){return zh(e).prepare}function Ho(e){return zh(e).fullUpdate}var uV=Math.round(Math.random()*9),lV=typeof Object.defineProperty=="function",cV=(function(){function e(){this._id="__ec_inner_"+uV++}return e.prototype.get=function(t){return this._guard(t)[this._id]},e.prototype.set=function(t,r){var i=this._guard(t);return lV?Object.defineProperty(i,this._id,{value:r,enumerable:!1,configurable:!0}):i[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})(),fV=Pe.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,i=t.cy,n=t.width/2,a=t.height/2;e.moveTo(r,i-a),e.lineTo(r+n,i+a),e.lineTo(r-n,i+a),e.closePath()}}),dV=Pe.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,i=t.cy,n=t.width/2,a=t.height/2;e.moveTo(r,i-a),e.lineTo(r+n,i),e.lineTo(r,i+a),e.lineTo(r-n,i),e.closePath()}}),hV=Pe.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.x,i=t.y,n=t.width/5*3,a=Math.max(n,t.height),o=n/2,s=o*o/(a-o),u=i-a+o+s,l=Math.asin(s/o),c=Math.cos(l)*o,f=Math.sin(l),d=Math.cos(l),h=o*.6,v=o*.7;e.moveTo(r-c,u+s),e.arc(r,u,o,Math.PI-l,Math.PI*2+l),e.bezierCurveTo(r+c-f*h,u+s+d*h,r,i-v,r,i),e.bezierCurveTo(r,i-v,r-c+f*h,u+s+d*h,r-c,u+s),e.closePath()}}),vV=Pe.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.height,i=t.width,n=t.x,a=t.y,o=i/3*2;e.moveTo(n,a),e.lineTo(n+o,a+r),e.lineTo(n,a+r/4*3),e.lineTo(n-o,a+r),e.lineTo(n,a),e.closePath()}}),pV={line:An,rect:st,roundRect:st,square:st,circle:wh,diamond:dV,pin:hV,arrow:vV,triangle:fV},gV={line:function(e,t,r,i,n){n.x1=e,n.y1=t+i/2,n.x2=e+r,n.y2=t+i/2},rect:function(e,t,r,i,n){n.x=e,n.y=t,n.width=r,n.height=i},roundRect:function(e,t,r,i,n){n.x=e,n.y=t,n.width=r,n.height=i,n.r=Math.min(r,i)/4},square:function(e,t,r,i,n){var a=Math.min(r,i);n.x=e,n.y=t,n.width=a,n.height=a},circle:function(e,t,r,i,n){n.cx=e+r/2,n.cy=t+i/2,n.r=Math.min(r,i)/2},diamond:function(e,t,r,i,n){n.cx=e+r/2,n.cy=t+i/2,n.width=r,n.height=i},pin:function(e,t,r,i,n){n.x=e+r/2,n.y=t+i/2,n.width=r,n.height=i},arrow:function(e,t,r,i,n){n.x=e+r/2,n.y=t+i/2,n.width=r,n.height=i},triangle:function(e,t,r,i,n){n.cx=e+r/2,n.cy=t+i/2,n.width=r,n.height=i}},Eg={};C(pV,function(e,t){Eg[t]=new e});var mV=Pe.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,r){var i=gf(e,t,r),n=this.shape;return n&&n.symbolType==="pin"&&t.position==="inside"&&(i.y=r.y+r.height*.4),i},buildPath:function(e,t,r){var i=t.symbolType;if(i!=="none"){var n=Eg[i];n||(i="rect",n=Eg[i]),gV[i](t.x,t.y,t.width,t.height,n.shape),n.buildPath(e,n.shape,r)}}});function yV(e,t){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=e,r.fill=t||re.color.neutral00,r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=e:r.fill=e,this.markRedraw()}}function ni(e,t,r,i,n,a,o){var s=e.indexOf("empty")===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var u;return e.indexOf("image://")===0?u=$P(e.slice(8),new fe(t,r,i,n),o?"center":"cover"):e.indexOf("path://")===0?u=Z0(e.slice(7),{},new fe(t,r,i,n),o?"center":"cover"):u=new mV({shape:{symbolType:e,x:t,y:r,width:i,height:n}}),u.__isEmptyBrush=s,u.setColor=yV,a&&u.setColor(a),u}function yb(e){return q(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function Rh(e,t){if(e!=null)return q(e)||(e=[e,e]),[$e(e[0],t[0])||0,$e(J(e[1],e[0]),t[1])||0]}function Zi(e){return isFinite(e)}function _V(e,t,r){var i=t.x==null?0:t.x,n=t.x2==null?1:t.x2,a=t.y==null?0:t.y,o=t.y2==null?0:t.y2;t.global||(i=i*r.width+r.x,n=n*r.width+r.x,a=a*r.height+r.y,o=o*r.height+r.y),i=Zi(i)?i:0,n=Zi(n)?n:1,a=Zi(a)?a:0,o=Zi(o)?o:0;var s=e.createLinearGradient(i,a,n,o);return s}function bV(e,t,r){var i=r.width,n=r.height,a=Math.min(i,n),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,u=t.r==null?.5:t.r;t.global||(o=o*i+r.x,s=s*n+r.y,u=u*a),o=Zi(o)?o:.5,s=Zi(s)?s:.5,u=u>=0&&Zi(u)?u:.5;var l=e.createRadialGradient(o,s,0,o,s,u);return l}function G1(e,t,r){for(var i=t.type==="radial"?bV(e,t,r):_V(e,t,r),n=t.colorStops,a=0;a<n.length;a++)i.addColorStop(n[a].offset,n[a].color);return i}function SV(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 fc(e){return parseInt(e,10)}function H1(e,t,r){var i=["width","height"][t],n=["clientWidth","clientHeight"][t],a=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(r[i]!=null&&r[i]!=="auto")return parseFloat(r[i]);var s=document.defaultView.getComputedStyle(e);return(e[n]||fc(s[i])||fc(e.style[i]))-(fc(s[a])||0)-(fc(s[o])||0)||0}function wV(e,t){return!e||e==="solid"||!(t>0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:Re(e)?[e]:q(e)?e:null}function _b(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&wV(t.lineDash,t.lineWidth),i=t.lineDashOffset;if(r){var n=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;n&&n!==1&&(r=Q(r,function(a){return a/n}),i/=n)}return[r,i]}var xV=new Cn(!0);function Cf(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function W1(e){return typeof e=="string"&&e!=="none"}function Af(e){var t=e.fill;return t!=null&&t!=="none"}function q1(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 Y1(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 X1(e,t,r){var i=M0(t.image,t.__image,r);if(mh(i)){var n=e.createPattern(i,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&n&&n.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*Ec),a.scaleSelf(t.scaleX||1,t.scaleY||1),n.setTransform(a)}return n}}function TV(e,t,r,i,n){var a,o=Cf(r),s=Af(r),u=r.strokePercent,l=u<1,c=!t.path;(!t.silent||l)&&c&&t.createPathProxy();var f=t.path||xV,d=t.__dirty;if(!i){var h=r.fill,v=r.stroke,p=s&&!!h.colorStops,g=o&&!!v.colorStops,m=s&&!!h.image,y=o&&!!v.image,_=void 0,b=void 0,S=void 0,w=void 0,x=void 0;(p||g)&&(x=t.getBoundingRect()),p&&(_=d?G1(e,h,x):t.__canvasFillGradient,t.__canvasFillGradient=_),g&&(b=d?G1(e,v,x):t.__canvasStrokeGradient,t.__canvasStrokeGradient=b),m&&(S=d||!t.__canvasFillPattern?X1(e,h,t):t.__canvasFillPattern,t.__canvasFillPattern=S),y&&(w=d||!t.__canvasStrokePattern?X1(e,v,t):t.__canvasStrokePattern,t.__canvasStrokePattern=w),p?e.fillStyle=_:m&&(S?e.fillStyle=S:s=!1),g?e.strokeStyle=b:y&&(w?e.strokeStyle=w:o=!1)}var T=t.getGlobalScale();f.setScale(T[0],T[1],t.segmentIgnoreThreshold);var k,I;e.setLineDash&&r.lineDash&&(a=_b(t),k=a[0],I=a[1]);var $=!0;(c||d&za)&&(f.setDPR(e.dpr),l?f.setContext(null):(f.setContext(e),$=!1),f.reset(),t.buildPath(f,t.shape,i),f.toStatic(),t.pathUpdated()),$&&f.rebuildPath(e,l?u:1),k&&(e.setLineDash(k),e.lineDashOffset=I),i?(n.batchFill=s,n.batchStroke=o):r.strokeFirst?(o&&Y1(e,r),s&&q1(e,r)):(s&&q1(e,r),o&&Y1(e,r)),k&&e.setLineDash([])}function kV(e,t,r){var i=t.__image=M0(r.image,t.__image,t,t.onload);if(!(!i||!mh(i))){var n=r.x||0,a=r.y||0,o=t.getWidth(),s=t.getHeight(),u=i.width/i.height;if(o==null&&s!=null?o=s*u:s==null&&o!=null?s=o/u:o==null&&s==null&&(o=i.width,s=i.height),r.sWidth&&r.sHeight){var l=r.sx||0,c=r.sy||0;e.drawImage(i,l,c,r.sWidth,r.sHeight,n,a,o,s)}else if(r.sx&&r.sy){var l=r.sx,c=r.sy,f=o-l,d=s-c;e.drawImage(i,l,c,f,d,n,a,o,s)}else e.drawImage(i,n,a,o,s)}}function IV(e,t,r){var i,n=r.text;if(n!=null&&(n+=""),n){e.font=r.font||In,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var a=void 0,o=void 0;e.setLineDash&&r.lineDash&&(i=_b(t),a=i[0],o=i[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),r.strokeFirst?(Cf(r)&&e.strokeText(n,r.x,r.y),Af(r)&&e.fillText(n,r.x,r.y)):(Af(r)&&e.fillText(n,r.x,r.y),Cf(r)&&e.strokeText(n,r.x,r.y)),a&&e.setLineDash([])}}var K1=["shadowBlur","shadowOffsetX","shadowOffsetY"],J1=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function RM(e,t,r,i,n){var a=!1;if(!i&&(r=r||{},t===r))return!1;if(i||t.opacity!==r.opacity){Nt(e,n),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?qi.opacity:o}(i||t.blend!==r.blend)&&(a||(Nt(e,n),a=!0),e.globalCompositeOperation=t.blend||qi.blend);for(var s=0;s<K1.length;s++){var u=K1[s];(i||t[u]!==r[u])&&(a||(Nt(e,n),a=!0),e[u]=e.dpr*(t[u]||0))}return(i||t.shadowColor!==r.shadowColor)&&(a||(Nt(e,n),a=!0),e.shadowColor=t.shadowColor||qi.shadowColor),a}function Q1(e,t,r,i,n){var a=t.style,o=i?null:r&&r.style||{};if(a===o)return!1;var s=RM(e,a,o,i,n);if((i||a.fill!==o.fill)&&(s||(Nt(e,n),s=!0),W1(a.fill)&&(e.fillStyle=a.fill)),(i||a.stroke!==o.stroke)&&(s||(Nt(e,n),s=!0),W1(a.stroke)&&(e.strokeStyle=a.stroke)),(i||a.opacity!==o.opacity)&&(s||(Nt(e,n),s=!0),e.globalAlpha=a.opacity==null?1:a.opacity),t.hasStroke()){var u=a.lineWidth,l=u/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==l&&(s||(Nt(e,n),s=!0),e.lineWidth=l)}for(var c=0;c<J1.length;c++){var f=J1[c],d=f[0];(i||a[d]!==o[d])&&(s||(Nt(e,n),s=!0),e[d]=a[d]||f[1])}return s}function $V(e,t,r,i,n){return RM(e,t.style,r&&r.style,i,n)}function NM(e,t){var r=t.transform,i=e.dpr||1;r?e.setTransform(i*r[0],i*r[1],i*r[2],i*r[3],i*r[4],i*r[5]):e.setTransform(i,0,0,i,0,0)}function DV(e,t,r){for(var i=!1,n=0;n<e.length;n++){var a=e[n];i=i||a.isZeroArea(),NM(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}r.allClipped=i}function CV(e,t){return e&&t?e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||e[4]!==t[4]||e[5]!==t[5]:!(!e&&!t)}var ex=1,tx=2,rx=3,nx=4;function AV(e){var t=Af(e),r=Cf(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 Nt(e,t){t.batchFill&&(t.batchFill=!1,e.fill()),t.batchStroke&&(t.batchStroke=!1,e.stroke())}function PV(e,t){var r={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};zg(e,t,r),Rg(e,r)}function zg(e,t,r){var i=t.transform;if(!t.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){t.__dirty&=~Lr,t.__isRendered=!1;return}var n=t.__clipPaths,a=r.prevElClipPaths,o=t.style,s=!1,u=!1;if((!a||SV(n,a))&&(a&&(Nt(e,r),e.restore(),u=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),n&&n.length&&(Nt(e,r),e.save(),DV(n,e,r),s=!0,r.prevElClipPaths=n)),r.allClipped){t.__dirty&=~Lr,t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(r.beforeBrushParam),t.innerBeforeBrush();var l=r.prevEl;l||(u=s=!0);var c=t instanceof Pe&&t.autoBatch&&AV(o);s||CV(i,l.transform)?(Nt(e,r),NM(e,t)):c||Nt(e,r),t instanceof Pe?(r.lastDrawType!==ex&&(u=!0,r.lastDrawType=ex),Q1(e,t,l,u,r),(!c||!r.batchFill&&!r.batchStroke)&&e.beginPath(),TV(e,t,o,c,r)):t instanceof ru?(r.lastDrawType!==rx&&(u=!0,r.lastDrawType=rx),Q1(e,t,l,u,r),IV(e,t,o)):t instanceof fn?(r.lastDrawType!==tx&&(u=!0,r.lastDrawType=tx),$V(e,t,l,u,r),kV(e,t,o)):t.getTemporalDisplayables&&(r.lastDrawType!==nx&&(u=!0,r.lastDrawType=nx),MV(e,t,r)),t.innerAfterBrush(),t.afterBrush&&(c&&Nt(e,r),t.afterBrush()),r.prevEl=t,t.__dirty=0,t.__isRendered=!0}function Rg(e,t){Nt(e,t),t.prevElClipPaths&&e.restore()}function MV(e,t,r){var i=t.getDisplayables(),n=t.getTemporalDisplayables();e.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover,beforeBrushParam:{}},o,s;for(o=t.getCursor(),s=i.length;o<s;o++){var u=i[o];u.beforeBrush&&u.beforeBrush(r.beforeBrushParam),u.innerBeforeBrush(),zg(e,u,a),u.innerAfterBrush(),u.afterBrush&&u.afterBrush(),a.prevEl=u}Rg(e,a);for(var l=0,c=n.length;l<c;l++){var u=n[l];u.beforeBrush&&u.beforeBrush(r.beforeBrushParam),u.innerBeforeBrush(),zg(e,u,a),u.innerAfterBrush(),u.afterBrush&&u.afterBrush(),a.prevEl=u}Rg(e,a),t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var Wv=new cV,ix=new ho(100),ax=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Ng(e,t){if(e==="none")return null;var r=t.getDevicePixelRatio(),i=t.getZr(),n=i.painter.type==="svg";e.dirty&&Wv.delete(e);var a=Wv.get(e);if(a)return a;var o=je(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 u(s),s.rotation=o.rotation,s.scaleX=s.scaleY=n?1:1/r,Wv.set(e,s),e.dirty=!1,s;function u(l){for(var c=[r],f=!0,d=0;d<ax.length;++d){var h=o[ax[d]];if(h!=null&&!q(h)&&!te(h)&&!Re(h)&&typeof h!="boolean"){f=!1;break}c.push(h)}var v;if(f){v=c.join(",")+(n?"-svg":"");var p=ix.get(v);p&&(n?l.svgElement=p:l.image=p)}var g=BM(o.dashArrayX),m=LV(o.dashArrayY),y=UM(o.symbol),_=OV(g),b=FM(m),S=!n&&rn.createCanvas(),w=n&&{tag:"g",attrs:{},key:"dcl",children:[]},x=k(),T;S&&(S.width=x.width*r,S.height=x.height*r,T=S.getContext("2d")),I(),f&&ix.put(v,S||w),l.image=S,l.svgElement=w,l.svgWidth=x.width,l.svgHeight=x.height;function k(){for(var $=1,A=0,D=_.length;A<D;++A)$=gw($,_[A]);for(var P=1,A=0,D=y.length;A<D;++A)P=gw(P,y[A].length);$*=P;var L=b*_.length*y.length;return{width:Math.max(1,Math.min($,o.maxTileWidth)),height:Math.max(1,Math.min(L,o.maxTileHeight))}}function I(){T&&(T.clearRect(0,0,S.width,S.height),o.backgroundColor&&(T.fillStyle=o.backgroundColor,T.fillRect(0,0,S.width,S.height)));for(var $=0,A=0;A<m.length;++A)$+=m[A];if($<=0)return;for(var D=-b,P=0,L=0,z=0;D<x.height;){if(P%2===0){for(var B=L/2%y.length,N=0,F=0,Z=0;N<x.width*2;){for(var G=0,A=0;A<g[z].length;++A)G+=g[z][A];if(G<=0)break;if(F%2===0){var W=(1-o.symbolSize)*.5,ee=N+g[z][F]*W,K=D+m[P]*W,ce=g[z][F]*o.symbolSize,ye=m[P]*o.symbolSize,tt=Z/2%y[B].length;Je(ee,K,ce,ye,y[B][tt])}N+=g[z][F],++Z,++F,F===g[z].length&&(F=0)}++z,z===g.length&&(z=0)}D+=m[P],++L,++P,P===m.length&&(P=0)}function Je(Ie,Ye,oe,_e,Ft){var rt=n?1:r,Ir=ni(Ft,Ie*rt,Ye*rt,oe*rt,_e*rt,o.color,o.symbolKeepAspect);if(n){var jt=i.painter.renderOneToVNode(Ir);jt&&w.children.push(jt)}else PV(T,Ir)}}}}function UM(e){if(!e||e.length===0)return[["rect"]];if(te(e))return[[e]];for(var t=!0,r=0;r<e.length;++r)if(!te(e[r])){t=!1;break}if(t)return UM([e]);for(var i=[],r=0;r<e.length;++r)te(e[r])?i.push([e[r]]):i.push(e[r]);return i}function BM(e){if(!e||e.length===0)return[[0,0]];if(Re(e)){var t=Math.ceil(e);return[[t,t]]}for(var r=!0,i=0;i<e.length;++i)if(!Re(e[i])){r=!1;break}if(r)return BM([e]);for(var n=[],i=0;i<e.length;++i)if(Re(e[i])){var t=Math.ceil(e[i]);n.push([t,t])}else{var t=Q(e[i],function(s){return Math.ceil(s)});t.length%2===1?n.push(t.concat(t)):n.push(t)}return n}function LV(e){if(!e||typeof e=="object"&&e.length===0)return[0,0];if(Re(e)){var t=Math.ceil(e);return[t,t]}var r=Q(e,function(i){return Math.ceil(i)});return e.length%2?r.concat(r):r}function OV(e){return Q(e,function(t){return FM(t)})}function FM(e){for(var t=0,r=0;r<e.length;++r)t+=e[r];return e.length%2===1?t*2:t}var EV=A0(zV);function zV(e,t){e.eachRawSeries(function(r){if(!e.isSeriesFiltered(r)){var i=r.getData();i.hasItemVisual()&&i.each(function(o){var s=i.getItemVisual(o,"decal");if(s){var u=i.ensureUniqueItemVisual(o,"style");u.decal=Ng(s,t)}});var n=i.getVisual("decal");if(n){var a=i.getVisual("style");a.decal=Ng(n,t)}}})}var RV=1,NV=800,UV=900,BV=920,FV=1e3,jV=2e3,ox=5e3,jM=1e3,ZV=1100,bb=2e3,ZM=3e3,VV=4e3,Nh=4500,GV=4600,HV=5e3,WV=6e3,VM=7e3,qV={PROCESSOR:{SERIES_FILTER:NV,AXIS_STATISTICS:BV,FILTER:FV,STATISTIC:ox,STATISTICS:ox},VISUAL:{LAYOUT:jM,PROGRESSIVE_LAYOUT:ZV,GLOBAL:bb,CHART:ZM,POST_CHART_LAYOUT:GV,COMPONENT:VV,BRUSH:HV,CHART_ITEM:Nh,ARIA:WV,DECAL:VM}},ct="__flagInMainProcess",dc="__mainProcessVersion",gt="__pendingUpdate",qv="__needsUpdateStatus",sx=/^[a-zA-Z0-9_]+$/,Yv="__connectUpdateStatus",ux=0,YV=1,XV=2;function GM(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(this.isDisposed()){this.id;return}return WM(this,e,t)}}function HM(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return WM(this,e,t)}}function WM(e,t,r){return r[0]=r[0]&&r[0].toLowerCase(),Mn.prototype[t].apply(e,r)}var qM=(function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(Mn),YM=qM.prototype;YM.on=HM("on");YM.off=HM("off");var Mi,Xv,hc,vn,vc,Kv,Jv,Pa,Ma,lx,cx,Qv,fx,pc,dx,XM,or,hx,La,KM=(function(e){H(t,e);function t(r,i,n){var a=e.call(this,new KZ)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],n=n||{},a.__v_skip=!0,a._dom=r;var o="canvas",s="auto",u=!1;a[dc]=1,n.ssr&&O6(function(d){var h=we(d),v=h.dataIndex;if(v!=null){var p=se();return p.set("series_index",h.seriesIndex),p.set("data_index",v),h.ssrType&&p.set("ssr_type",h.ssrType),p}});var l=a._zr=hw(r,{renderer:n.renderer||o,devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:J(n.useDirtyRect,u),useCoarsePointer:J(n.useCoarsePointer,s),pointerSize:n.pointerSize});a._ssr=n.ssr,a._throttledZrFlush=mb(Fe(l.flush,l),17),a._updateTheme(i),a._locale=Hj(n.locale||RP),a._coordSysMgr=new sb;var c=a._api=dx(a);function f(d,h){return d.__prio-h.__prio}return zc(Mf,f),zc(Fg,f),a._scheduler=new AM(a,c,Fg,Mf),a._messageCenter=new qM,a._initEvents(),a.resize=Fe(a.resize,a),l.animation.on("frame",a._onframe,a),lx(l,a),cx(l,a),Np(a),a}return t.prototype._onframe=function(){if(!this._disposed){var r=this._scheduler,i=this._model,n=this._api;if(hx(this),this[gt]){var a=this[gt].silent;this[ct]=!0,La(this);try{Mi(this),vn.update.call(this,null,this[gt].updateParams)}catch(u){throw this[ct]=!1,this[gt]=null,u}this._zr.flush(),this[ct]=!1,this[gt]=null,Pa.call(this,a),Ma.call(this,a)}else if(r.unfinished){var o=RV;do{r.unfinished=!1;var s=rn.getTime();r.performSeriesTasks(i),r.performDataProcessorTasks(i),Kv(this,i),r.performVisualTasks(i),pc(this,this._model,n,"remain",{}),o-=rn.getTime()-s}while(o>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,i,n){if(!this[ct]){if(this._disposed){this.id;return}var a,o,s;if(ne(i)&&(n=i.lazyUpdate,a=i.silent,o=i.replaceMerge,s=i.transition,i=i.notMerge),this[ct]=!0,La(this),!this._model||i){var u=new M5(this._api),l=this._theme,c=this._model=new fb;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,l,this._locale,u)}this._model.setOption(r,{replaceMerge:o},jg);var f={seriesTransition:s,optionChanged:!0};if(n)this[gt]={silent:a,updateParams:f},this[ct]=!1,this.getZr().wakeUp();else{try{Mi(this),vn.update.call(this,null,f)}catch(d){throw this[gt]=null,this[ct]=!1,d}this._ssr||this._zr.flush(),this[gt]=null,this[ct]=!1,Pa.call(this,a),Ma.call(this,a)}}},t.prototype.setTheme=function(r,i){if(!this[ct]){if(this._disposed){this.id;return}var n=this._model;if(n){var a=i&&i.silent,o=null;this[gt]&&(a==null&&(a=this[gt].silent),o=this[gt].updateParams,this[gt]=null),this[ct]=!0,La(this);try{this._updateTheme(r),n.setTheme(this._theme),Mi(this),vn.update.call(this,{type:"setTheme"},o)}catch(s){throw this[ct]=!1,s}this[ct]=!1,Pa.call(this,a),Ma.call(this,a)}}},t.prototype._updateTheme=function(r){te(r)&&(r=JM[r]),r&&(r=me(r),r&&sM(r,!0),this._theme=r)},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||pe.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},t.prototype.renderToCanvas=function(r){r=r||{};var i=this._zr.painter;return i.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(r){r=r||{};var i=this._zr.painter;return i.renderToString({useViewBox:r.useViewBox})},t.prototype.getSvgDataURL=function(){var r=this._zr,i=r.storage.getDisplayList();return C(i,function(n){n.stopAnimation(null,!0)}),r.painter.toDataURL()},t.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var i=r.excludeComponents,n=this._model,a=[],o=this;C(i,function(u){n.eachComponent({mainType:u},function(l){var c=o._componentsMap[l.__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 C(a,function(u){u.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var i=r.type==="svg",n=this.group,a=Math.min,o=Math.max,s=1/0;if(vx[n]){var u=s,l=s,c=-s,f=-s,d=[],h=r&&r.pixelRatio||this.getDevicePixelRatio();C(Ns,function(_,b){if(_.group===n){var S=i?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(me(r)),w=_.getDom().getBoundingClientRect();u=a(w.left,u),l=a(w.top,l),c=o(w.right,c),f=o(w.bottom,f),d.push({dom:S,left:w.left,top:w.top})}}),u*=h,l*=h,c*=h,f*=h;var v=c-u,p=f-l,g=rn.createCanvas(),m=hw(g,{renderer:i?"svg":"canvas"});if(m.resize({width:v,height:p}),i){var y="";return C(d,function(_){var b=_.left-u,S=_.top-l;y+=\'<g transform="translate(\'+b+","+S+\')">\'+_.dom+"</g>"}),m.painter.getSvgRoot().innerHTML=y,r.connectedBackgroundColor&&m.painter.setBackgroundColor(r.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return r.connectedBackgroundColor&&m.add(new st({shape:{x:0,y:0,width:v,height:p},style:{fill:r.connectedBackgroundColor}})),C(d,function(_){var b=new fn({style:{x:_.left*h-u,y:_.top*h-l,image:_.dom}});m.add(b)}),m.refreshImmediately(),g.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},t.prototype.convertToPixel=function(r,i,n){return vc(this,"convertToPixel",r,i,n)},t.prototype.convertToLayout=function(r,i,n){return vc(this,"convertToLayout",r,i,n)},t.prototype.convertFromPixel=function(r,i,n){return vc(this,"convertFromPixel",r,i,n)},t.prototype.containPixel=function(r,i){if(this._disposed){this.id;return}var n=this._model,a,o=bv(n,r);return C(o,function(s,u){u.indexOf("Models")>=0&&C(s,function(l){var c=l.coordinateSystem;if(c&&c.containPoint)a=a||!!c.containPoint(i);else if(u==="seriesModels"){var f=this._chartsMap[l.__viewId];f&&f.containPoint&&(a=a||f.containPoint(i,l))}},this)},this),!!a},t.prototype.getVisual=function(r,i){var n=this._model,a=bv(n,r,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),u=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return u!=null?eV(s,u,i):EM(s,i)},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;C(KV,function(n){var a=function(o){var s=r.getModel(),u=o.target,l,c=n==="globalout";if(c?l={}:u&&ks(u,function(p){var g=we(p);if(g&&g.dataIndex!=null){var m=g.dataModel||s.getSeriesByIndex(g.seriesIndex);return l=m&&m.getDataParams(g.dataIndex,g.dataType,u)||{},!0}else if(g.eventData)return l=V({},g.eventData),!0},!0),l){var f=l.componentType,d=l.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",d=l.seriesIndex);var h=f&&d!=null&&s.getComponent(f,d),v=h&&r[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];l.event=o,l.type=n,r._$eventProcessor.eventInfo={targetEl:u,packedEvent:l,model:h,view:v},r.trigger(n,l)}};a.zrEventfulCallAtLast=!0,r._zr.on(n,a,r)});var i=this._messageCenter;C(Bg,function(n,a){i.on(a,function(o){r.trigger(a,o)})}),rV(i,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&&zA(this.getDom(),wb,"");var i=this,n=i._api,a=i._model;C(i._componentsViews,function(o){o.dispose(a,n)}),C(i._chartsViews,function(o){o.dispose(a,n)}),i._zr.dispose(),i._dom=i._model=i._chartsMap=i._componentsMap=i._chartsViews=i._componentsViews=i._scheduler=i._api=i._zr=i._throttledZrFlush=i._theme=i._coordSysMgr=i._messageCenter=null,delete Ns[i.id]},t.prototype.resize=function(r){if(!this[ct]){if(this._disposed){this.id;return}this._zr.resize(r);var i=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!i){var n=i.resetOption("media"),a=r&&r.silent;this[gt]&&(a==null&&(a=this[gt].silent),n=!0,this[gt]=null),this[ct]=!0,La(this);try{n&&Mi(this),vn.update.call(this,{type:"resize",animation:V({duration:0},r&&r.animation)})}catch(o){throw this[ct]=!1,o}this[ct]=!1,Pa.call(this,a),Ma.call(this,a)}}},t.prototype.showLoading=function(r,i){if(this._disposed){this.id;return}if(ne(r)&&(i=r,r=""),r=r||"default",this.hideLoading(),!!Zg[r]){var n=Zg[r](this._api,i),a=this._zr;this._loadingFX=n,a.add(n)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(r){var i=V({},r);return i.type=Ug[r.type],i},t.prototype.dispatchAction=function(r,i){if(this._disposed){this.id;return}if(ne(i)||(i={silent:!!i}),!!Pf[r.type]&&this._model){if(this[ct]){this._pendingActions.push(r);return}var n=i.silent;Jv.call(this,r,n);var a=i.flush;a?this._zr.flush():a!==!1&&pe.browser.weChat&&this._throttledZrFlush(),Pa.call(this,n),Ma.call(this,n)}},t.prototype.updateLabelLayout=function(){ur.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(r){if(this._disposed){this.id;return}var i=r.seriesIndex,n=this.getModel(),a=n.getSeriesByIndex(i);a.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=(function(){Mi=function(f){aV(f._model);var d=f._scheduler;d.restorePipelines(f._zr,f._model),d.prepareStageTasks(),Xv(f,!0),Xv(f,!1),d.plan()},Xv=function(f,d){for(var h=f._model,v=f._scheduler,p=d?f._componentsViews:f._chartsViews,g=d?f._componentsMap:f._chartsMap,m=f._zr,y=f._api,_=0;_<p.length;_++)p[_].__alive=!1;d?h.eachComponent(function(w,x){w!=="series"&&b(x)}):h.eachSeries(b);function b(w){var x=w.__requireNewView;w.__requireNewView=!1;var T="_ec_"+w.id+"_"+w.type,k=!x&&g[T];if(!k){var I=en(w.type),$=d?Nr.getClass(I.main,I.sub):Ht.getClass(I.sub);k=new $,k.init(h,y),g[T]=k,p.push(k),m.add(k.group)}w.__viewId=k.__id=T,k.__alive=!0,k.__model=w,k.group.__ecComponentInfo={mainType:w.mainType,index:w.componentIndex},!d&&v.prepareView(k,w,h,y)}for(var _=0;_<p.length;){var S=p[_];S.__alive?_++:(!d&&S.renderTask.dispose(),m.remove(S.group),S.dispose(h,y),p.splice(_,1),g[S.__id]===S&&delete g[S.__id],S.__id=S.group.__ecComponentInfo=null)}},hc=function(f,d,h,v,p){var g=f._model;if(g.setUpdatePayload(h),!v){C([].concat(f._componentsViews).concat(f._chartsViews),b);return}var m=sB(h,v,p),y=h.excludeSeriesId,_;y!=null&&(_=se(),C(Bt(y),function(S){var w=sn(S,null);w!=null&&_.set(w,!0)})),g&&g.eachComponent(m,function(S){var w=_&&_.get(S.id)!=null;if(!w)if(Hw(h))if(S instanceof tr)h.type===Yi&&!h.notBlur&&!S.get(["emphasis","disabled"])&&TF(S,h,f._api);else{var x=U0(S.mainType,S.componentIndex,h.name,f._api),T=x.focusSelf,k=x.dispatchers;h.type===Yi&&T&&!h.notBlur&&yg(S.mainType,S.componentIndex,f._api),k&&C(k,function(I){h.type===Yi?nu(I):iu(I)})}else Sg(h)&&S instanceof tr&&($F(S,h,f._api),Vw(S),or(f))},f),g&&g.eachComponent(m,function(S){var w=_&&_.get(S.id)!=null;w||b(f[v==="series"?"_chartsMap":"_componentsMap"][S.__viewId])},f);function b(S){S&&S.__alive&&S[d]&&S[d](S.__model,g,f._api,h)}},vn={prepareAndUpdate:function(f){Mi(this),vn.update.call(this,f,f&&{optionChanged:f.newOption!=null})},update:function(f,d){var h=this._model,v=this._api,p=this._zr,g=this._coordSysMgr,m=this._scheduler;if(h){oV(h),h.setUpdatePayload(f),m.restoreData(h,f),m.performSeriesTasks(h),g.create(h,v),ur.trigger("coordsys:aftercreate",h,v),m.performDataProcessorTasks(h,f),Kv(this,h),g.update(h,v),i(h),m.performVisualTasks(h,f);var y=h.get("backgroundColor")||"transparent";p.setBackgroundColor(y);var _=h.get("darkMode");_!=null&&_!=="auto"&&p.setDarkMode(_),Qv(this,h,v,f,d),ur.trigger("afterupdate",h,v)}},updateTransform:function(f){var d=this,h=d._model,v=d._api;if(h){h.setUpdatePayload(f);var p=[];h.eachComponent(function(m,y){if(m!==rP){var _=d.getViewOfComponentModel(y);if(_&&_.__alive)if(_.updateTransform){var b=_.updateTransform(y,h,v,f);b&&b.update&&p.push(_)}else p.push(_)}});var g=se();h.eachSeries(function(m){var y=d._chartsMap[m.__viewId],_=m.pipelineContext;if(y.updateTransform&&!_.progressiveRender){var b=y.updateTransform(m,h,v,f);b&&b.update&&g.set(m.uid,1)}else g.set(m.uid,1)}),d._scheduler.performVisualTasks(h,f,{setDirty:!0,dirtyMap:g}),pc(d,h,v,f,{},g),ur.trigger("afterupdate",h,v)}},updateView:function(f){var d=this._model;d&&(d.setUpdatePayload(f),Ht.markUpdateMethod(f,"updateView"),i(d),this._scheduler.performVisualTasks(d,f,{setDirty:!0}),Qv(this,d,this._api,f,{}),ur.trigger("afterupdate",d,this._api))},updateVisual:function(f){var d=this,h=this._model;h&&(h.setUpdatePayload(f),h.eachSeries(function(v){v.getData().clearAllVisual()}),Ht.markUpdateMethod(f,"updateVisual"),i(h),this._scheduler.performVisualTasks(h,f,{visualType:"visual",setDirty:!0}),h.eachComponent(function(v,p){if(v!=="series"){var g=d.getViewOfComponentModel(p);g&&g.__alive&&g.updateVisual(p,h,d._api,f)}}),h.eachSeries(function(v){var p=d._chartsMap[v.__viewId];p.updateVisual(v,h,d._api,f)}),ur.trigger("afterupdate",h,this._api))},updateLayout:function(f){vn.update.call(this,f)}};function r(f,d,h,v,p){if(f._disposed){f.id;return}for(var g=f._model,m=f._coordSysMgr.getCoordinateSystems(),y,_=bv(g,h),b=0;b<m.length;b++){var S=m[b];if(S[d]&&(y=S[d](g,_,v,p))!=null)return y}}vc=r,Kv=function(f,d){var h=f._chartsMap,v=f._scheduler;d.eachSeries(function(p){v.updateStreamModes(p,h[p.__viewId])})},Jv=function(f,d){var h=this,v=this.getModel(),p=f.type,g=f.escapeConnect,m=Pf[p],y=(m.update||"update").split(":"),_=y.pop(),b=y[0]!=null&&en(y[0]);this[ct]=!0,La(this);var S=[f],w=!1;f.batch&&(w=!0,S=Q(f.batch,function(z){return z=je(V({},z),f),z.batch=null,z}));var x=[],T,k=[],I=m.nonRefinedEventType,$=Sg(f),A=Hw(f);if(A&&vP(this._api),C(S,function(z){var B=m.action(z,v,h._api);if(m.refineEvent?k.push(B):T=B,T=T||V({},z),T.type=I,x.push(T),A){var N=D0(f),F=N.queryOptionMap,Z=N.mainTypeSpecified,G=Z?F.keys()[0]:"series";hc(h,_,z,G),or(h)}else $?(hc(h,_,z,"series"),or(h)):b&&hc(h,_,z,b.main,b.sub)}),_!=="none"&&!A&&!$&&!b)try{this[gt]?(Mi(this),vn.update.call(this,f),this[gt]=null):vn[_].call(this,f)}catch(z){throw this[ct]=!1,z}if(w?T={type:I,escapeConnect:g,batch:x}:T=x[0],this[ct]=!1,!d){var D=void 0;if(m.refineEvent){var P=m.refineEvent(k,f,v,this._api).eventContent;Rr(ne(P)),D=je({type:m.refinedEventType},P),D.fromAction=f.type,D.fromActionPayload=f,D.escapeConnect=!0}var L=this._messageCenter;L.trigger(T.type,T),D&&L.trigger(D.type,D)}},Pa=function(f){for(var d=this._pendingActions;d.length;){var h=d.shift();Jv.call(this,h,f)}},Ma=function(f){!f&&this.trigger("updated")},lx=function(f,d){f.on("rendered",function(h){d.trigger("rendered",h),f.animation.isFinished()&&!d[gt]&&!d._scheduler.unfinished&&!d._pendingActions.length?d.trigger("finished"):f.refresh()})},cx=function(f,d){f.on("mouseover",function(h){var v=h.target,p=ks(v,bg);p&&(kF(p,h,d._api),or(d))}).on("mouseout",function(h){var v=h.target,p=ks(v,bg);p&&(IF(p,h,d._api),or(d))}).on("click",function(h){var v=h.target,p=ks(v,function(y){return we(y).dataIndex!=null},!0);if(p){var g=p.selected?"unselect":"select",m=we(p);d._api.dispatchAction({type:g,dataType:m.dataType,dataIndexInside:m.dataIndex,seriesIndex:m.seriesIndex,isFromClick:!0})}})};function i(f){f.clearColorPalette(),f.eachSeries(function(d){d.clearColorPalette()})}function n(f){var d=[],h=[],v=!1;if(f.eachComponent(function(y,_){var b=_.get("zlevel")||0,S=_.get("z")||0,w=_.getZLevelKey();v=v||!!w,(y==="series"?h:d).push({zlevel:b,z:S,idx:_.componentIndex,type:y,key:w})}),v){var p=d.concat(h),g,m;zc(p,function(y,_){return y.zlevel===_.zlevel?y.z-_.z:y.zlevel-_.zlevel}),C(p,function(y){var _=f.getComponent(y.type,y.idx),b=y.zlevel,S=y.key;g!=null&&(b=Math.max(g,b)),S?(b===g&&S!==m&&b++,m=S):m&&(b===g&&b++,m=""),g=b,_.setZLevel(b)})}}Qv=function(f,d,h,v,p){n(d),fx(f,d,h,v,p),C(f._chartsViews,function(g){g.__alive=!1}),pc(f,d,h,v,p),C(f._chartsViews,function(g){g.__alive||g.remove(d,h)})},fx=function(f,d,h,v,p,g){C(g||f._componentsViews,function(m){var y=m.__model;l(y,m),m.render(y,d,h,v),u(y,m),c(y,m)})},pc=function(f,d,h,v,p,g){var m=f._scheduler;p=V(p||{},{updatedSeries:d.getSeries()}),ur.trigger("series:beforeupdate",d,h,p);var y=!1;d.eachSeries(function(_){var b=f._chartsMap[_.__viewId];b.__alive=!0;var S=b.renderTask;m.updatePayload(S,v),l(_,b),g&&g.get(_.uid)&&S.dirty(),S.perform(m.getPerformArgs(S))&&(y=!0),b.group.silent=!!_.get("silent"),s(_,b),Vw(_)}),m.unfinished=y||m.unfinished,ur.trigger("series:layoutlabels",d,h,p),ur.trigger("series:transition",d,h,p),d.eachSeries(function(_){var b=f._chartsMap[_.__viewId];u(_,b),c(_,b)}),o(f,d),ur.trigger("series:afterupdate",d,h,p)},or=function(f){f[qv]=!0,f.getZr().wakeUp()},La=function(f){f[dc]=(f[dc]+1)%1e6},hx=function(f){f[qv]&&(f.getZr().storage.traverse(function(d){Wa(d)||a(d)}),f[qv]=!1)};function a(f){for(var d=[],h=f.currentStates,v=0;v<h.length;v++){var p=h[v];p==="emphasis"||p==="blur"||p==="select"||d.push(p)}f.selected&&f.states.select&&d.push("select"),f.hoverState===bh&&f.states.emphasis?d.push("emphasis"):f.hoverState===_h&&f.states.blur&&d.push("blur"),f.useStates(d)}function o(f,d){var h=f._zr;if(h.painter.type==="canvas"){var v=h.storage,p=0;v.traverse(function(m){m.isGroup||p++});var g=p>J(d.get("hoverLayerThreshold"),tM.hoverLayerThreshold)&&!pe.node&&!pe.worker;(f._usingTHL||g)&&(d.eachSeries(function(m){if(!m.preventUsingHoverLayer){var y=f._chartsMap[m.__viewId];y.__alive&&y.eachRendered(function(_){var b=_.states.emphasis;b&&b.hoverLayer!==$h&&(b.hoverLayer=g?IP:kP)})}}),f._usingTHL=g)}}function s(f,d){var h=f.get("blendMode")||null;d.eachRendered(function(v){v.isGroup||(v.style.blend=h)})}function u(f,d){if(!f.preventAutoZ){var h=q0(f);d.eachRendered(function(v){return Y0(v,h.z,h.zlevel),!0})}}function l(f,d){d.eachRendered(function(h){if(!Wa(h)){var v=h.getTextContent(),p=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),v&&v.stateTransition&&(v.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function c(f,d){var h=f.getModel("stateAnimation"),v=f.isAnimationEnabled(),p=h.get("duration"),g=p>0?{duration:p,delay:h.get("delay"),easing:h.get("easing")}:null;d.eachRendered(function(m){if(m.states&&m.states.emphasis){if(Wa(m))return;if(m instanceof Pe&&LF(m),m.__dirty){var y=m.prevStates;y&&m.useStates(y)}if(v){m.stateTransition=g;var _=m.getTextContent(),b=m.getTextGuideLine();_&&(_.stateTransition=g),b&&(b.stateTransition=g)}m.__dirty&&a(m)}})}dx=function(f){return new((function(d){H(h,d);function h(){return d!==null&&d.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(v){for(;v;){var p=v.__ecComponentInfo;if(p!=null)return f._model.getComponent(p.mainType,p.index);v=v.parent}},h.prototype.enterEmphasis=function(v,p){nu(v,p),or(f)},h.prototype.leaveEmphasis=function(v,p){iu(v,p),or(f)},h.prototype.enterBlur=function(v){cP(v),or(f)},h.prototype.leaveBlur=function(v){N0(v),or(f)},h.prototype.enterSelect=function(v){fP(v),or(f)},h.prototype.leaveSelect=function(v){dP(v),or(f)},h.prototype.getModel=function(){return f.getModel()},h.prototype.getViewOfComponentModel=function(v){return f.getViewOfComponentModel(v)},h.prototype.getViewOfSeriesModel=function(v){return f.getViewOfSeriesModel(v)},h.prototype.getECUpdateCycleVersion=function(){return f[dc]},h.prototype.usingTHL=function(){return f._usingTHL},h})(aP))(f)},XM=function(f){function d(h,v){for(var p=0;p<h.length;p++){var g=h[p];g[Yv]=v}}C(Ug,function(h,v){f._messageCenter.on(v,function(p){if(vx[f.group]&&f[Yv]!==ux){if(p&&p.escapeConnect)return;var g=f.makeActionFromEvent(p),m=[];C(Ns,function(y){y!==f&&y.group===f.group&&m.push(y)}),d(m,ux),C(m,function(y){y[Yv]!==YV&&y.dispatchAction(g)}),d(m,XV)}})})}})(),t})(Mn),Sb=KM.prototype;Sb.on=GM("on");Sb.off=GM("off");Sb.one=function(e,t,r){var i=this;function n(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];t&&t.apply&&t.apply(this,a),i.off(e,n)}this.on.call(this,e,n,r)};var KV=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var Pf={},Ug={},Bg={},Fg=[],jg=[],Mf=[],JM={},Zg={},Ns={},vx={},JV=+new Date-0,wb="_echarts_instance_";function QV(e,t,r){var i=!(r&&r.ssr);if(i){var n=eG(e);if(n)return n}var a=new KM(e,t,r);return a.id="ec_"+JV++,Ns[a.id]=a,i&&zA(e,wb,a.id),XM(a),ur.trigger("afterinit",a),a}function eG(e){return Ns[uB(e,wb)]}function Uh(e,t){JM[e]=t}function QM(e){xe(jg,e)<0&&jg.push(e)}function eL(e,t){Tb(Fg,e,t,jV)}function tG(e){xb("afterinit",e)}function rG(e){xb("afterupdate",e)}function xb(e,t){ur.on(e,t)}function Wo(e,t,r){var i,n,a,o,s;le(t)&&(r=t,t=""),ne(e)?(i=e.type,n=e.event,o=e.update,s=e.publishNonRefinedEvent,r||(r=e.action),a=e.refineEvent):(i=e,n=t);function u(c){return c.toLowerCase()}n=u(n||i);var l=a?u(i):n;Pf[i]||(Rr(sx.test(i)&&sx.test(n)),a&&Rr(n!==i),Pf[i]={actionType:i,refinedEventType:n,nonRefinedEventType:l,update:o,action:r,refineEvent:a},Bg[n]=1,a&&s&&(Bg[l]=1),Ug[l]=i)}function nG(e,t){sb.register(e,t)}function iG(e,t){Tb(Mf,e,t,jM,"layout")}function ga(e,t){Tb(Mf,e,t,ZM,"visual")}var px=[];function Tb(e,t,r,i,n,a){if((le(t)||ne(t))&&(r=t,t=i),!(xe(px,r)>=0)){px.push(r);var o=AM.wrapStageHandler(r,n);o.__prio=t,o.__raw=r,e.push(o)}}function tL(e,t){Zg[e]=t}function aG(e,t,r){var i=iV("registerMap");i&&i(e,t,r)}var oG=uZ;ga(bb,NZ);ga(Nh,UZ);ga(Nh,BZ);ga(bb,JZ);ga(Nh,QZ);ga(VM,EV);QM(sM);eL(UV,V5);tL("default",FZ);Wo({type:Yi,event:Yi,update:Yi},bt);Wo({type:Zc,event:Zc,update:Zc},bt);Wo({type:Sf,event:z0,update:Sf,action:bt,refineEvent:kb,publishNonRefinedEvent:!0});Wo({type:gg,event:z0,update:gg,action:bt,refineEvent:kb,publishNonRefinedEvent:!0});Wo({type:wf,event:z0,update:wf,action:bt,refineEvent:kb,publishNonRefinedEvent:!0});function kb(e,t,r,i){return{eventContent:{selected:DF(r),isFromClick:t.isFromClick||!1}}}Uh("default",{});Uh("dark",OM);function ss(e){return e==null?0:e.length||1}function gx(e){return e}var sG=(function(){function e(t,r,i,n,a,o){this._old=t,this._new=r,this._oldKeyGetter=i||gx,this._newKeyGetter=n||gx,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,i={},n=new Array(t.length),a=new Array(r.length);this._initIndexMap(t,null,n,"_oldKeyGetter"),this._initIndexMap(r,i,a,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=n[o],u=i[s],l=ss(u);if(l>1){var c=u.shift();u.length===1&&(i[s]=u[0]),this._update&&this._update(c,o)}else l===1?(i[s]=null,this._update&&this._update(u,o)):this._remove&&this._remove(o)}this._performRestAdd(a,i)},e.prototype._executeMultiple=function(){var t=this._old,r=this._new,i={},n={},a=[],o=[];this._initIndexMap(t,i,a,"_oldKeyGetter"),this._initIndexMap(r,n,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var u=a[s],l=i[u],c=n[u],f=ss(l),d=ss(c);if(f>1&&d===1)this._updateManyToOne&&this._updateManyToOne(c,l),n[u]=null;else if(f===1&&d>1)this._updateOneToMany&&this._updateOneToMany(c,l),n[u]=null;else if(f===1&&d===1)this._update&&this._update(c,l),n[u]=null;else if(f>1&&d>1)this._updateManyToMany&&this._updateManyToMany(c,l),n[u]=null;else if(f>1)for(var h=0;h<f;h++)this._remove&&this._remove(l[h]);else this._remove&&this._remove(l)}this._performRestAdd(o,n)},e.prototype._performRestAdd=function(t,r){for(var i=0;i<t.length;i++){var n=t[i],a=r[n],o=ss(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[n]=null}},e.prototype._initIndexMap=function(t,r,i,n){for(var a=this._diffModeMultiple,o=0;o<t.length;o++){var s="_ec_"+this[n](t[o],o);if(a||(i[o]=s),!!r){var u=r[s],l=ss(u);l===0?(r[s]=o,a&&i.push(s)):l===1?r[s]=[u,o]:u.push(o)}}},e})(),uG=(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})();function lG(e,t){var r={},i=r.encode={},n=se(),a=[],o=[],s={};C(e.dimensions,function(d){var h=e.getDimensionInfo(d),v=h.coordDim;if(v){var p=h.coordDimIndex;ep(i,v)[p]=d,h.isExtraCoord||(n.set(v,1),fG(h.type)&&(a[0]=d),ep(s,v)[p]=e.getDimensionIndex(h.name)),h.defaultTooltip&&o.push(d)}nP.each(function(g,m){var y=ep(i,m),_=h.otherDims[m];_!=null&&_!==!1&&(y[_]=h.name)})});var u=[],l={};n.each(function(d,h){var v=i[h];l[h]=v[0],u=u.concat(v)}),r.dataDimsOnCoord=u,r.dataDimIndicesOnCoord=Q(u,function(d){return e.getDimensionInfo(d).storeDimIndex}),r.encodeFirstDimNotExtra=l;var c=i.label;c&&c.length&&(a=c.slice());var f=i.tooltip;return f&&f.length?o=f.slice():o.length||(o=a.slice()),i.defaultedLabel=a,i.defaultedTooltip=o,r.userOutput=new uG(s,t),r}function ep(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function cG(e){return e==="category"?"ordinal":e==="time"?"time":"float"}function fG(e){return!(e==="ordinal"||e==="time")}var Xc=(function(){function e(t){this.otherDims={},t!=null&&V(this,t)}return e})(),dG=ke(),hG={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},rL=(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=iL(this.source)))},e.prototype.getSourceDimensionIndex=function(t){return J(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=cM(this.source),i=!aL(t),n="",a=[],o=0,s=0;o<t;o++){var u=void 0,l=void 0,c=void 0,f=this.dimensions[s];if(f&&f.storeDimIndex===o)u=r?f.name:null,l=f.type,c=f.ordinalMeta,s++;else{var d=this.getSourceDimension(o);d&&(u=r?d.name:null,l=d.type)}a.push({property:u,type:l,ordinalMeta:c}),r&&u!=null&&(!f||!f.isCalculationCoord)&&(n+=i?u.replace(/\\`/g,"`1").replace(/\\$/g,"`2"):u),n+="$",n+=hG[l]||"f",c&&(n+=c.uid),n+="$"}var h=this.source,v=[h.seriesLayoutBy,h.startIndex,n].join("$$");return{dimensions:a,hash:v}},e.prototype.makeOutputDimensionNames=function(){for(var t=[],r=0,i=0;r<this._fullDimCount;r++){var n=void 0,a=this.dimensions[i];if(a&&a.storeDimIndex===r)a.isCalculationCoord||(n=a.name),i++;else{var o=this.getSourceDimension(r);o&&(n=o.name)}t.push(n)}return t},e.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e})();function nL(e){return e instanceof rL}function Ib(e){for(var t=se(),r=0;r<(e||[]).length;r++){var i=e[r],n=ne(i)?i.name:i;n!=null&&t.get(n)==null&&t.set(n,r)}return t}function iL(e){var t=dG(e);return t.dimNameMap||(t.dimNameMap=Ib(e.dimensionsDefine))}function aL(e){return e>30}var us=ne,Nn=Q,vG=typeof Int32Array>"u"?Array:Int32Array,pG="e\\0\\0",mx=-1,gG=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],mG=["_approximateExtent"],yx,gc,ls,cs,tp,fs,rp,Us=(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 i,n=!1;nL(t)?(i=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(n=!0,i=t),i=i||["x","y"];for(var a={},o=[],s={},u=!1,l={},c=0;c<i.length;c++){var f=i[c],d=te(f)?new Xc({name:f}):f instanceof Xc?f:new Xc(f),h=d.name;d.type=d.type||"float",d.coordDim||(d.coordDim=h,d.coordDimIndex=0);var v=d.otherDims=d.otherDims||{};o.push(h),a[h]=d,l[h]!=null&&(u=!0),d.createInvertedIndices&&(s[h]=[]),n&&(d.storeDimIndex=c),v.itemName===0&&(this._nameDimIdx=d.storeDimIndex),v.itemId===0&&(this._idDimIdx=d.storeDimIndex)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(u),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var p=this._dimIdxToName=se();C(o,function(g){p.set(a[g].storeDimIndex,g)})}}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 i=this._dimIdxToName.get(r);if(i!=null)return i;var n=this._schema.getSourceDimension(r);if(n)return n.name},e.prototype.getDimensionIndex=function(t){var r=this._recognizeDimIndex(t);if(r!=null)return r;if(t==null)return-1;var i=this._getDimInfo(t);return i?i.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},e.prototype._recognizeDimIndex=function(t){if(Re(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(i){return r.hasOwnProperty(i)?r[i]:void 0}:function(i){return r[i]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(t,r){var i=this._dimSummary;if(r==null)return i.encodeFirstDimNotExtra[t];var n=i.encode[t];return n?n[r]:null},e.prototype.mapDimensionsAll=function(t){var r=this._dimSummary,i=r.encode[t];return(i||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(t,r,i){var n=this,a;if(t instanceof Cg&&(a=t),!a){var o=this.dimensions,s=db(t)||Wt(t)?new fM(t,o.length):t;a=new Cg;var u=Nn(o,function(l){return{type:n._dimInfos[l].type,property:l}});a.initData(s,u,i)}this._store=a,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=lG(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 i=this._store.appendValues(t,r&&r.length),n=i.start,a=i.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=n;s<a;s++){var u=s-n;this._nameList[s]=r[u],o&&rp(this,s)}},e.prototype._updateOrdinalMeta=function(){for(var t=this._store,r=this.dimensions,i=0;i<r.length;i++){var n=this._dimInfos[r[i]];n.ordinalMeta&&t.collectOrdinalMeta(n.storeDimIndex,n.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==Xn&&!t.fillStorage},e.prototype._doInit=function(t,r){if(!(t>=r)){var i=this._store,n=i.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=n.getSource().sourceFormat,u=s===ar;if(u&&!n.pure)for(var l=[],c=t;c<r;c++){var f=n.getItem(c,l);if(!this.hasItemOption&&X6(f)&&(this.hasItemOption=!0),f){var d=f.name;a[c]==null&&d!=null&&(a[c]=sn(d,null));var h=f.id;o[c]==null&&h!=null&&(o[c]=sn(h,null))}}if(this._shouldMakeIdFromName())for(var c=t;c<r;c++)rp(this,c);yx(this)}},e.prototype.getApproximateExtent=function(t,r){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t),r)},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){us(t)?V(this._calculationInfo,t):this._calculationInfo[t]=r},e.prototype.getName=function(t){var r=this.getRawIndex(t),i=this._nameList[r];return i==null&&this._nameDimIdx!=null&&(i=ls(this,this._nameDimIdx,r)),i==null&&(i=""),i},e.prototype._getCategory=function(t,r){var i=this._store.get(t,r),n=this._store.getOrdinalMeta(t);return n?n.categories[i]:i},e.prototype.getId=function(t){return gc(this,this.getRawIndex(t))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(t,r){var i=this._store,n=this._dimInfos[t];if(n)return i.get(n.storeDimIndex,r)},e.prototype.getByRawIndex=function(t,r){var i=this._store,n=this._dimInfos[t];if(n)return i.getByRawIndex(n.storeDimIndex,r)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t),null)},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 i=this,n=this._store;return q(t)?n.getValues(Nn(t,function(a){return i._getStoreDimIndex(a)}),r):n.getValues(t)},e.prototype.hasValue=function(t){for(var r=this._dimSummary.dataDimIndicesOnCoord,i=0,n=r.length;i<n;i++)if(isNaN(this._store.get(r[i],t)))return!1;return!0},e.prototype.indexOfName=function(t){for(var r=0,i=this._store.count();r<i;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 i=t&&this._invertedIndicesMap[t],n=i&&i[r];return n==null||isNaN(n)?mx:n},e.prototype.each=function(t,r,i){le(t)&&(i=r,r=t,t=[]);var n=i||this,a=Nn(cs(t),this._getStoreDimIndex,this);this._store.each(a,n?Fe(r,n):r)},e.prototype.filterSelf=function(t,r,i){le(t)&&(i=r,r=t,t=[]);var n=i||this,a=Nn(cs(t),this._getStoreDimIndex,this);return this._store=this._store.filter(a,n?Fe(r,n):r),this},e.prototype.selectRange=function(t){var r=this,i={},n=Te(t);return C(n,function(a){var o=r._getStoreDimIndex(a);i[o]=t[a]}),this._store=this._store.selectRange(i),this},e.prototype.mapArray=function(t,r,i){le(t)&&(i=r,r=t,t=[]),i=i||this;var n=[];return this.each(t,function(){n.push(r&&r.apply(this,arguments))},i),n},e.prototype.map=function(t,r,i,n){var a=i||n||this,o=Nn(cs(t),this._getStoreDimIndex,this),s=fs(this);return s._store=this._store.map(o,a?Fe(r,a):r),s},e.prototype.modify=function(t,r,i,n){var a=i||n||this,o=Nn(cs(t),this._getStoreDimIndex,this);this._store.modify(o,a?Fe(r,a):r)},e.prototype.downSample=function(t,r,i,n){var a=fs(this);return a._store=this._store.downSample(this._getStoreDimIndex(t),r,i,n),a},e.prototype.minmaxDownSample=function(t,r){var i=fs(this);return i._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),r),i},e.prototype.lttbDownSample=function(t,r){var i=fs(this);return i._store=this._store.lttbDownSample(this._getStoreDimIndex(t),r),i},e.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},e.prototype.getItemModel=function(t){var r=this.hostModel,i=this.getRawDataItem(t);return new et(i,r,r&&r.ecModel)},e.prototype.diff=function(t){var r=this;return new sG(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(i){return gc(t,i)},function(i){return gc(r,i)})},e.prototype.getVisual=function(t){var r=this._visual;return r&&r[t]},e.prototype.setVisual=function(t,r){this._visual=this._visual||{},us(t)?V(this._visual,t):this._visual[t]=r},e.prototype.getItemVisual=function(t,r){var i=this._itemVisuals[t],n=i&&i[r];return n??this.getVisual(r)},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(t,r){var i=this._itemVisuals,n=i[t];n||(n=i[t]={});var a=n[r];return a==null&&(a=this.getVisual(r),q(a)?a=a.slice():us(a)&&(a=V({},a)),n[r]=a),a},e.prototype.setItemVisual=function(t,r,i){var n=this._itemVisuals[t]||{};this._itemVisuals[t]=n,us(r)?V(n,r):n[r]=i},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){us(t)?V(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,i){this._itemLayouts[t]=i?V(this._itemLayouts[t]||{},r):r},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,r){var i=this.hostModel&&this.hostModel.seriesIndex;dF(i,this.dataType,t,r),this._graphicEls[t]=r},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,r){C(this._graphicEls,function(i,n){i&&t&&t.call(r,i,n)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:Nn(this.dimensions,this._getDimInfo,this),this.hostModel)),tp(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var i=this[t];le(i)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var n=i.apply(this,arguments);return r.apply(this,[n].concat(v0(arguments)))})},e.internalField=(function(){yx=function(t){var r=t._invertedIndicesMap;C(r,function(i,n){var a=t._dimInfos[n],o=a.ordinalMeta,s=t._store;if(o){i=r[n]=new vG(o.categories.length);for(var u=0;u<i.length;u++)i[u]=mx;for(var u=0;u<s.count();u++)i[s.get(a.storeDimIndex,u)]=u}})},ls=function(t,r,i){return sn(t._getCategory(r,i),null)},gc=function(t,r){var i=t._idList[r];return i==null&&t._idDimIdx!=null&&(i=ls(t,t._idDimIdx,r)),i==null&&(i=pG+r),i},cs=function(t){return q(t)||(t=t!=null?[t]:[]),t},fs=function(t){var r=new e(t._schema?t._schema:Nn(t.dimensions,t._getDimInfo,t),t.hostModel);return tp(r,t),r},tp=function(t,r){C(gG.concat(r.__wrappedMethods||[]),function(i){r.hasOwnProperty(i)&&(t[i]=r[i])}),t.__wrappedMethods=r.__wrappedMethods,C(mG,function(i){t[i]=me(r[i])}),t._calculationInfo=V({},r._calculationInfo)},rp=function(t,r){var i=t._nameList,n=t._idList,a=t._nameDimIdx,o=t._idDimIdx,s=i[r],u=n[r];if(s==null&&a!=null&&(i[r]=s=ls(t,a,r)),u==null&&o!=null&&(n[r]=u=ls(t,o,r)),u==null&&s!=null){var l=t._nameRepeatCount,c=l[s]=(l[s]||0)+1;u=s,c>1&&(u+="__ec__"+c),n[r]=u}}})(),e})();function oL(e,t){db(e)||(e=uM(e)),t=t||{};var r=t.coordDimensions||[],i=t.dimensionsDefine||e.dimensionsDefine||[],n=se(),a=[],o=yG(e,r,i,t.dimensionsCount),s=t.canOmitUnusedDimensions&&aL(o),u=i===e.dimensionsDefine,l=u?iL(e):Ib(i),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,o));for(var f=se(c),d=new yM(o),h=0;h<d.length;h++)d[h]=-1;function v(k){var I=d[k];if(I<0){var $=i[k],A=ne($)?$:{name:$},D=new Xc,P=A.name;P!=null&&l.get(P)!=null&&(D.name=D.displayName=P),A.type!=null&&(D.type=A.type),A.displayName!=null&&(D.displayName=A.displayName);var L=a.length;return d[k]=L,D.storeDimIndex=k,a.push(D),D}return a[I]}if(!s)for(var h=0;h<o;h++)v(h);f.each(function(k,I){var $=Bt(k).slice();if($.length===1&&!te($[0])&&$[0]<0){f.set(I,!1);return}var A=f.set(I,[]);C($,function(D,P){var L=te(D)?l.get(D):D;L!=null&&L<o&&(A[P]=L,g(v(L),I,P))})});var p=0;C(r,function(k){var I,$,A,D;if(te(k))I=k,D={};else{D=k,I=D.name;var P=D.ordinalMeta;D.ordinalMeta=null,D=V({},D),D.ordinalMeta=P,$=D.dimsDef,A=D.otherDims,D.name=D.coordDim=D.coordDimIndex=D.dimsDef=D.otherDims=null}var L=f.get(I);if(L!==!1){if(L=Bt(L),!L.length)for(var z=0;z<($&&$.length||1);z++){for(;p<o&&v(p).coordDim!=null;)p++;p<o&&L.push(p++)}C(L,function(B,N){var F=v(B);if(u&&D.type!=null&&(F.type=D.type),g(je(F,D),I,N),F.name==null&&$){var Z=$[N];!ne(Z)&&(Z={name:Z}),F.name=F.displayName=Z.name,F.defaultTooltip=Z.defaultTooltip}A&&je(F.otherDims,A)})}});function g(k,I,$){nP.get(I)!=null?k.otherDims[I]=$:(k.coordDim=I,k.coordDimIndex=$,n.set(I,!0))}var m=t.generateCoord,y=t.generateCoordCount,_=y!=null;y=m?y||1:0;var b=m||"value";function S(k){k.name==null&&(k.name=k.coordDim)}if(s)C(a,function(k){S(k)}),a.sort(function(k,I){return k.storeDimIndex-I.storeDimIndex});else for(var w=0;w<o;w++){var x=v(w),T=x.coordDim;T==null&&(x.coordDim=_G(b,n,_),x.coordDimIndex=0,(!m||y<=0)&&(x.isExtraCoord=!0),y--),S(x),x.type==null&&(iM(e,w)===yt.Must||x.isExtraCoord&&(x.otherDims.itemName!=null||x.otherDims.seriesName!=null))&&(x.type="ordinal")}return C0(a,function(k){return k.name},function(k,I){I>0&&(k.name=k.name+(I-1))}),new rL({source:e,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function yG(e,t,r,i){var n=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,i||0);return C(t,function(a){var o;ne(a)&&(o=a.dimsDef)&&(n=Math.max(n,o.length))}),n}function _G(e,t,r){if(r||t.hasKey(e)){for(var i=0;t.hasKey(e+i);)i++;e+=i}return t.set(e,!0),e}var bG=(function(){function e(t){this.coordSysDims=[],this.axisMap=se(),this.categoryAxisMap=se(),this.coordSysName=t}return e})();function SG(e){var t=e.get("coordinateSystem"),r=new bG(t),i=wG[t];if(i)return i(e,r,r.axisMap,r.categoryAxisMap),r}var wG={cartesian2d:function(e,t,r,i){var n=e.getReferringComponents("xAxis",gr).models[0],a=e.getReferringComponents("yAxis",gr).models[0];t.coordSysDims=["x","y"],r.set("x",n),r.set("y",a),Oa(n)&&(i.set("x",n),t.firstCategoryDimIndex=0),Oa(a)&&(i.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,i){var n=e.getReferringComponents("singleAxis",gr).models[0];t.coordSysDims=["single"],r.set("single",n),Oa(n)&&(i.set("single",n),t.firstCategoryDimIndex=0)},polar:function(e,t,r,i){var n=e.getReferringComponents("polar",gr).models[0],a=n.findAxisModel("radiusAxis"),o=n.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),Oa(a)&&(i.set("radius",a),t.firstCategoryDimIndex=0),Oa(o)&&(i.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,r,i){t.coordSysDims=["lng","lat"]},parallel:function(e,t,r,i){var n=e.ecModel,a=n.getComponent("parallel",e.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();C(a.parallelAxisIndex,function(s,u){var l=n.getComponent("parallelAxis",s),c=o[u];r.set(c,l),Oa(l)&&(i.set(c,l),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=u))})},matrix:function(e,t,r,i){var n=e.getReferringComponents("matrix",gr).models[0];t.coordSysDims=["x","y"];var a=n.getDimensionModel("x"),o=n.getDimensionModel("y");r.set("x",a),r.set("y",o),i.set("x",a),i.set("y",o)}};function Oa(e){return e.get("type")==="category"}function xG(e,t,r){r=r||{};var i=r.byIndex,n=r.stackedCoordDimension,a,o,s;TG(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var u=!!(e&&e.get("stack")),l,c,f,d,h=!0;function v(b){return b.type!=="ordinal"&&b.type!=="time"}if(C(a,function(b,S){te(b)&&(a[S]=b={name:b}),v(b)||(h=!1)}),C(a,function(b,S){u&&!b.isExtraCoord&&(!i&&!l&&b.ordinalMeta&&(l=b),!c&&v(b)&&(!h||b.coordDim!=="x"&&b.coordDim!=="angle")&&(!n||n===b.coordDim)&&(c=b))}),c&&!i&&!l&&(i=!0),c){f="__\\0ecstackresult_"+e.id,d="__\\0ecstackedover_"+e.id,l&&(l.createInvertedIndices=!0);var p=c.coordDim,g=c.type,m=0;C(a,function(b){b.coordDim===p&&m++});var y={name:f,coordDim:p,coordDimIndex:m,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},_={name:d,coordDim:d,coordDimIndex:m+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(y.storeDimIndex=s.ensureCalculationDimension(d,g),_.storeDimIndex=s.ensureCalculationDimension(f,g)),o.appendCalculationDimension(y),o.appendCalculationDimension(_)):(a.push(y),a.push(_))}return{stackedDimension:c&&c.name,stackedByDimension:l&&l.name,isStackedByIndex:i,stackedOverDimension:d,stackResultDimension:f}}function TG(e){return!nL(e.schema)}function ua(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function sL(e,t){return ua(e,t)?e.getCalculationInfo("stackResultDimension"):t}function kG(e,t){var r=e.get("coordinateSystem"),i=sb.get(r),n;return t&&t.coordSysDims&&(n=Q(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var u=s.get("type");o.type=cG(u)}return o})),n||(n=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),n}function IG(e,t,r){var i,n;return r&&C(e,function(a,o){var s=a.coordDim,u=r.categoryAxisMap.get(s);u&&(i==null&&(i=o),a.ordinalMeta=u.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(n=!0)}),!n&&i!=null&&(e[i].otherDims.itemName=0),i}function Bh(e,t,r){r=r||{};var i=t.getSourceManager(),n,a=!1;n=i.getSource(),a=n.sourceFormat===ar;var o=SG(t),s=kG(t,o),u=r.useEncodeDefaulter,l=le(u)?u:u?He(S5,s,t):null,c={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!a},f=oL(n,c),d=IG(f.dimensions,r.createInvertedIndices,o),h=a?null:i.getSharedDataStore(f),v=xG(t,{schema:f,store:h}),p=new Us(f,t);p.setCalculationInfo(v);var g=d!=null&&$G(n)?function(m,y,_,b){return b===d?_:this.defaultDimValueGetter(m,y,_,b)}:null;return p.hasItemOption=!1,p.initData(a?n:h,null,g),p}function $G(e){if(e.sourceFormat===ar){var t=DG(e.data||[]);return!q(Tl(t))}}function DG(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var Zr=(function(){function e(){}return e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(t){this._isBlank=t},e})();gh(Zr);var CG=0,Vg=(function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++CG,this._onCollect=t.onCollect}return e.createByAxisModel=function(t){var r=t.option,i=r.data,n=i&&Q(i,AG);return new e({categories:n,needCollect:!n,deduplication:r.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var r,i=this._needCollect;if(!te(t)&&!i)return t;if(i&&!this._deduplication)return r=this.categories.length,this.categories[r]=t,this._onCollect&&this._onCollect(t,r),r;var n=this._getOrCreateMap();return r=n.get(t),r==null&&(i?(r=this.categories.length,this.categories[r]=t,n.set(t,r),this._onCollect&&this._onCollect(t,r)):r=NaN),r},e.prototype._getOrCreateMap=function(){return this._map||(this._map=se(this.categories))},e})();function AG(e){return ne(e)&&e.value!=null?e.value:e+""}var yr=0,fu=1,PG={needTransform:1,normalize:1,scale:1,transformIn:1,transformOut:1,contain:1,getExtent:1,getExtentUnsafe:1,setExtent:1,setExtent2:1,getFilter:1,sanitize:1,getDefaultStartValue:1,freeze:1},MG=Te(PG),Lf=2,uL=3;function $b(e,t,r){var i;return e=e||{},OG(e,r),{brk:i,mapper:e}}function lL(e,t){C(MG,function(r){e[r]=t[r]})}function cL(e,t){e.freeze=bt}function du(e){return e.getExtentUnsafe(yr,Lf)}function Of(e,t){return e.getExtentUnsafe(fu,t)||e.getExtentUnsafe(yr,t)}function LG(e){var t=Of(e,uL);return t[1]-t[0]}function Fh(e){var t=e.getExtentUnsafe(yr,uL);return t[1]-t[0]}function OG(e,t){var r=e||{},i=[];return r._extents=i,i[yr]=t?t.slice():hr(),V(r,EG),r}var EG={needTransform:function(){return!1},normalize:function(e){var t=this._extents[fu]||this._extents[yr];return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])},scale:function(e){var t=this._extents[fu]||this._extents[yr];return e*(t[1]-t[0])+t[0]},transformIn:function(e){return e},transformOut:function(e){return e},contain:function(e){var t=Of(this,null);return e>=t[0]&&e<=t[1]},getExtent:function(){return this._extents[yr].slice()},getExtentUnsafe:function(e){return this._extents[e]},setExtent:function(e,t){_x(this._extents,yr,e,t)},setExtent2:function(e,t,r){var i=this._extents;i[e]||(i[e]=i[yr].slice()),_x(i,e,t,r)},freeze:function(){}};function _x(e,t,r,i){po(r,i)&&(e[t][0]=r,e[t][1]=i)}function fL(e){return Ef(e)||_o(e)}function Ef(e){return e.type==="interval"}function Db(e){return e.type==="time"}function _o(e){return e.type==="log"}function Vr(e){return e.type==="ordinal"}function zG(e){var t=T0(e),r=ha(10,t),i=$n(e/r);return i?i===2?i=3:i===3?i=5:i*=2:i=1,Ae(i*r,-t)}function la(e){return mn(e)+2}function mc(e,t){return Ks(e)/Ks(t)}function np(e,t,r){var i=r&&r.lookup;if(i){for(var n=0;n<i.from.length;n++)if(e===i.from[n])return i.to[n]}return ha(t,e)}function dL(e,t,r){var i=e.slice();if(i[0]===i[1]){var n=r&&r.ctnShp;if(i[0]!==0){var a=ft(i[0]);t[1]||(i[1]+=a/2),i[0]-=a/2}else n&&(i[0]=-1),i[1]=1}return(!Dn(i[0])||!Dn(i[1]))&&(i[0]=0,i[1]=1),i[1]<i[0]&&i.reverse(),i}function RG(e,t){return[e[0]!==t[0],e[1]!==t[1]]}function Cb(e,t){return e=e||t,$n(Me(e,1))}function hL(e,t,r){var i=du(e),n=i[0],a=e.count(),o=Math.max((t||0)+1,1);n!==0&&o>1&&a/o>2&&(n=Math.round(Math.ceil(n/o)*o)),n!==i[0]&&u(i[0],!0,!0);for(var s=n;s<=i[1];s+=o)u(s,!1,s===i[0]||s===i[1]);s-o!==i[1]&&u(i[1],!0,!0);function u(l,c,f){r({value:l,offInterval:c},f)}}var Ab=(function(e){H(t,e);function t(r){var i=e.call(this)||this;i.type="ordinal",i.parse=t.parse,lL(i,t.decoratedMethods);var n=r.ordinalMeta;n||(n=new Vg({})),q(n)&&(n=new Vg({categories:Q(n,function(o){return ne(o)?o.value:o})})),i._ordinalMeta=n;var a=$b(null,null,r.extent||[0,n.categories.length-1]);return i._mapper=a.mapper,cL(i),i}return t.parse=function(r){return r==null?r=NaN:te(r)?(r=this._ordinalMeta.getOrdinal(r),r==null&&(r=NaN)):r=$n(r),r},t.prototype.getTicks=function(){var r=[];return hL(this,0,function(i){r.push(i)}),r},t.prototype.getMinorTicks=function(r){},t.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var i=r.ordinalNumbers,n=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,u=Ct(s,i.length);o<u;++o){var l=n[o]=i[o];a[l]=o}for(var c=0;o<s;++o){for(;a[c]!=null;)c++;n[o]=c,a[c]=o}},t.prototype._getTickNumber=function(r){var i=this._ticksByOrdinalNumber;return i&&r>=0&&r<i.length?i[r]:r},t.prototype.getRawOrdinalNumber=function(r){var i=this._ordinalNumbersByTick;return i&&r>=0&&r<i.length?i[r]:r},t.prototype.getLabel=function(r){if(!this.isBlank()){var i=this.getRawOrdinalNumber(r.value),n=this._ordinalMeta.categories[i];return n==null?"":n+""}},t.prototype.count=function(){var r=du(this._mapper);return r[1]-r[0]+1},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.type="ordinal",t.decoratedMethods={needTransform:function(){return this._mapper.needTransform()},contain:function(r){return this._mapper.contain(this._getTickNumber(r))&&r>=0&&r<this._ordinalMeta.categories.length},normalize:function(r){return this._mapper.normalize(this._getTickNumber(r))},scale:function(r){return this.getRawOrdinalNumber($n(this._mapper.scale(r)))},transformIn:function(r,i){return this._mapper.transformIn(this._getTickNumber(r),i)},transformOut:function(r,i){return this.getRawOrdinalNumber(this._mapper.transformOut(r,i))},getExtent:function(){return this._mapper.getExtent()},getExtentUnsafe:function(r,i){return this._mapper.getExtentUnsafe(r,i)},setExtent:function(r,i){return this._mapper.setExtent(r,i)},setExtent2:function(r,i,n){return this._mapper.setExtent2(r,i,n)}},t})(Zr);Zr.registerClass(Ab);function Pb(e,t,r,i){for(var n=e.getTicks({expandToNicedExtent:!0}),a=[],o=e.getExtent(),s=1;s<n.length;s++){var u=n[s],l=n[s-1];if(!(l.break||u.break)){for(var c=0,f=[],d=u.value-l.value,h=d/t,v=la(h);c<t-1;){var p=Ae(l.value+(c+1)*h,v);p>o[0]&&p<o[1]&&f.push(p),c++}var g=Ph();g&&g.pruneTicksByBreak("auto",f,r,function(m){return m},i,o),a.push(f)}}return a}var Ja=(function(e){H(t,e);function t(r){var i=e.call(this)||this;i.type="interval",i.parse=t.parse,r=r||{};var n=UP(i,r),a=$b(i,n,null);return i.brk=a.brk,i._cfg={interval:0,intervalPrecision:2,intervalCount:void 0,niceExtent:void 0},i}return t.parse=function(r){return r==null||r===""?NaN:Number(r)},t.prototype.getConfig=function(){return me(this._cfg)},t.prototype.setConfig=function(r){var i=du(this);this._cfg=r=me(r),r.niceExtent==null&&(r.niceExtent=i.slice()),r.intervalPrecision==null&&(r.intervalPrecision=la(r.interval))},t.prototype.getTicks=function(r){r=r||{};var i=this._cfg,n=i.interval,a=du(this),o=i.niceExtent,s=i.intervalPrecision,u=Ph(),l=this.brk,c=u,f=[];if(!n)return f;r.breakTicks;var d=3e3;a[0]<o[0]&&f.push({value:r.expandToNicedExtent?Ae(o[0]-n,s):a[0]});for(var h=function(_,b){return $n((b-_)/n)},v=i.intervalCount,p=o[0],g=0;;g++){if(v==null){if(p>o[1]||!isFinite(p)||!isFinite(o[1]))break}else{if(g>v)break;p=Ct(p,o[1]),g===v&&(p=o[1])}if(f.push({value:p}),p=Ae(p+n,s),l){var m=l.calcNiceTickMultiple(p,h);m>=0&&(p=Ae(p+m*n,s))}if(f.length>0&&p===f[f.length-1].value)break;if(f.length>d)return[]}var y=f.length?f[f.length-1].value:o[1];return a[1]>y&&f.push({value:r.expandToNicedExtent?Ae(y+n,s):a[1]}),f},t.prototype.getMinorTicks=function(r){return Pb(this,r,J0(this),this._cfg.interval)},t.prototype.getLabel=function(r,i){if(r==null)return"";var n=i&&i.precision;n==null?n=mn(r.value)||0:n==="auto"&&(n=this._cfg.intervalPrecision);var a=Ae(r.value,n,!0);return WP(a)},t.type="interval",t})(Zr);Zr.registerClass(Ja);var NG=function(e,t,r,i){for(;r<i;){var n=r+i>>>1;e[n][1]<t?r=n+1:i=n}return r},vL=(function(e){H(t,e);function t(r){var i=e.call(this)||this;i.type="time",i.parse=t.parse,i._locale=r.locale,i._useUTC=r.useUTC,i._interval=0;var n=UP(i,r),a=$b(i,n,null);return i.brk=a.brk,i}return t.prototype.getLabel=function(r){return Mh(r.value,u1[r5(Es(this._minLevelUnit))]||u1.second,this._useUTC,this._locale)},t.prototype.getFormattedLabel=function(r,i,n){return n5(r,i,n,this._locale,this._useUTC)},t.prototype.getTicks=function(r){var i=this._interval,n=du(this),a=this.brk,o=[];if(!i)return o;var s=this._useUTC;o=HG(this._minLevelUnit,this._approxInterval,s,n,Fh(this),a);var u=Xi.length-1,l=0;return C(o,function(c){c.time&&(u=Math.min(u,xe(Xi,c.time.upperTimeUnit)),l=Math.max(l,c.time.level))}),o},t.prototype.getMinorTicks=function(r){return Pb(this,r,J0(this),this._interval)},t.prototype.setTimeInterval=function(r){this._interval=r.interval,this._approxInterval=r.approxInterval,this._minLevelUnit=r.minLevelUnit},t.parse=function(r){return Re(r)?Math.round(r):+jo(r)},t.type="time",t})(Zr),yc=[["second",Q0],["minute",eb],["hour",Os],["quarter-day",Os*6],["half-day",Os*12],["day",mr*1.2],["half-week",mr*3.5],["week",mr*7],["month",mr*31],["quarter",mr*95],["half-year",s1/2],["year",s1]];function UG(e,t,r,i){return Ig(new Date(t),e,i).getTime()===Ig(new Date(r),e,i).getTime()}function BG(e,t){return e/=mr,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function FG(e){var t=30*mr;return e/=t,e>6?6:e>3?3:e>2?2:1}function jG(e){return e/=Os,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function bx(e,t){return e/=t?eb:Q0,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function ZG(e){return Me(k0(e,!0),1)}function VG(e,t,r){var i=Math.max(0,xe(Xi,t)-1);return Ig(new Date(e),Xi[i],r).getTime()}function GG(e,t){var r=new Date(0);r[e](1);var i=r.getTime();r[e](1+t);var n=r.getTime()-i;return function(a,o){return Math.max(0,Math.round((o-a)/n))}}function HG(e,t,r,i,n,a){var o=3e3,s=Jj,u=0;function l(z,B,N,F,Z,G,W){for(var ee=GG(Z,z),K=B,ce=new Date(K);K<N&&K<=i[1]&&(W.push({value:K}),!(u++>o));)if(ce[Z](ce[F]()+z),K=ce.getTime(),a){var ye=a.calcNiceTickMultiple(K,ee);ye>0&&(ce[Z](ce[F]()+ye*z),K=ce.getTime())}W.push({value:K,notAdd:K>i[1]})}function c(z,B,N){var F=[],Z=!B.length;if(!UG(Es(z),i[0],i[1],r)){Z&&(B=[{value:VG(i[0],z,r)},{value:i[1]}]);for(var G=0;G<B.length-1;G++){var W=B[G].value,ee=B[G+1].value;if(W!==ee){var K=void 0,ce=void 0,ye=void 0,tt=!1;switch(z){case"year":K=Math.max(1,Math.round(t/mr/365)),ce=BP(r),ye=i5(r);break;case"half-year":case"quarter":case"month":K=FG(t),ce=tb(r),ye=FP(r);break;case"week":case"half-week":case"day":K=BG(t),ce=rb(r),ye=jP(r),tt=!0;break;case"half-day":case"quarter-day":case"hour":K=jG(t),ce=nb(r),ye=ZP(r);break;case"minute":K=bx(t,!0),ce=ib(r),ye=VP(r);break;case"second":K=bx(t,!1),ce=ab(r),ye=GP(r);break;case"millisecond":K=ZG(t),ce=ob(r),ye=HP(r);break}ee>=i[0]&&W<=i[1]&&l(K,W,ee,ce,ye,tt,F),z==="year"&&N.length>1&&G===0&&N.unshift({value:N[0].value-K})}}for(var G=0;G<F.length;G++)N.push(F[G])}}for(var f=[],d=[],h=0,v=0,p=0;p<s.length;++p){var g=Es(s[p]);if(t5(s[p])){c(s[p],f[f.length-1]||[],d);var m=s[p+1]?Es(s[p+1]):null;if(g!==m){if(d.length){v=h,d.sort(function(z,B){return z.value-B.value});for(var y=[],_=0;_<d.length;++_){var b=d[_].value;(_===0||d[_-1].value!==b)&&(y.push(d[_]),b>=i[0]&&b<=i[1]&&h++)}var S=n/t;if(h>S*1.5&&v>S/1.5||(f.push(y),h>S||e===s[p]))break}d=[]}}}for(var w=ot(Q(f,function(z){return ot(z,function(B){return B.value>=i[0]&&B.value<=i[1]&&!B.notAdd})}),function(z){return z.length>0}),x=w.length-1,T=[],p=0;p<w.length;++p)for(var k=w[p],I=0;I<k.length;++I){var $=Hc(k[I].value,r);T.push({value:k[I].value,time:{level:x-p,upperTimeUnit:$,lowerTimeUnit:$}})}C0(T,vB,null),T.sort(function(z,B){return z.value-B.value});var A=T[0],D=T[T.length-1],P=Hc(i[0],r),L=Hc(i[1],r);return(!A||A.value>i[0])&&T.unshift({value:i[0],time:{level:0,upperTimeUnit:P,lowerTimeUnit:P},notNice:!0}),(!D||D.value<i[1])&&T.push({value:i[1],time:{level:0,upperTimeUnit:L,lowerTimeUnit:L},notNice:!0}),T}var WG=function(e,t){var r=e.getExtent();if(r[0]===r[1]&&(r[0]-=mr,r[1]+=mr),r[1]===-1/0&&r[0]===1/0){var i=new Date;r[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),r[0]=r[1]-mr}e.setExtent(r[0],r[1]);var n=Cb(t.splitNumber,10),a=Fh(e)/n,o=t.minInterval,s=t.maxInterval;o!=null&&a<o&&(a=o),s!=null&&a>s&&(a=s);var u=yc.length,l=Math.min(NG(yc,a,0,u),u-1),c=yc[l][1],f=yc[Math.max(l-1,0)][0];e.setTimeInterval({approxInterval:a,interval:c,minLevelUnit:f})};Zr.registerClass(vL);var _c=0,bc=1,pL=(function(e){H(t,e);function t(r){var i=e.call(this)||this;i.type="log",i.parse=Ja.parse,i.base=r.logBase||10;var n=[],a=[];i._lookup={from:n,to:a},n[_c]=n[bc]=a[_c]=a[bc]=NaN,lL(i,t.mapperMethods),r.breakOption;var o={};return i.powStub=new Ja({breakParsed:o.original}),i.intervalStub=new Ja({breakParsed:o.transformed}),cL(i,i.intervalStub),i}return t.prototype.getTicks=function(r){var i=this.base,n=this.powStub,a=this.intervalStub,o=a.getExtent(),s=n.getExtent(),u={lookup:{from:o,to:s}};return Q(a.getTicks(r||{}),function(l){var c=l.value,f=np(c,i,u),d;return{value:f,break:d}},this)},t.prototype.getMinorTicks=function(r){return Pb(this,r,J0(this.powStub),this.intervalStub.getConfig().interval)},t.prototype.getLabel=function(r,i){return this.intervalStub.getLabel(r,i)},t.type="log",t.mapperMethods={needTransform:function(){return!0},normalize:function(r){return this.intervalStub.normalize(mc(r,this.base))},scale:function(r){return np(this.intervalStub.scale(r),this.base,null)},transformIn:function(r,i){return r=mc(r,this.base),i&&i.depth===Lf?r:this.intervalStub.transformIn(r,i)},transformOut:function(r,i){var n=i?i.depth:null;return Sx.depth=n,xx.lookup=this._lookup,np(n===Lf?r:this.intervalStub.transformOut(r,Sx),this.base,xx)},contain:function(r){return this.powStub.contain(r)},setExtent:function(r,i){this.setExtent2(yr,r,i)},setExtent2:function(r,i,n){if(!(!po(i,n)||i<=0||n<=0)){var a=Tx,o=Tx;if(r===yr){var s=this._lookup;a=s.to,o=s.from}this.powStub.setExtent2(r,a[_c]=i,a[bc]=n);var u=this.base;this.intervalStub.setExtent2(r,o[_c]=mc(i,u),o[bc]=mc(n,u))}},getFilter:function(){return{g:0}},sanitize:function(r,i){return po(i[0],i[1])&&wr(r)&&r<=0&&(r=i[0]),r},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(r,i){return i===null?this.powStub.getExtentUnsafe(r,null):this.intervalStub.getExtentUnsafe(r,i)}},t})(Zr);Zr.registerClass(pL);var Sx={},xx={},Tx=[],gL={value:1,category:1,time:1,log:1},mL=ke();function qG(e){var t=e.get("type");return(t==null||!Ut(gL,t)&&!Zr.getClass(t))&&(t="value"),t}function YG(e,t,r){var i;switch(t){case"category":return new Ab({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:hr()});case"time":return new vL({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC"),breakOption:i});case"log":return new pL({logBase:e.get("logBase"),breakOption:i});case"value":return new Ja({breakOption:i});default:return new(Zr.getClass(t)||Ja)({})}}function XG(e,t,r){var i=e.getExtentUnsafe(yr,null),n=i[0],a=i[1];return po(n,a)?n===t||a===t?JG:n<t&&a>t?KG:Gg:Gg}var KG=1,JG=2,Gg=3;function QG(e){mL(e).noOnMyZero=!0}function eH(e){return mL(e).noOnMyZero}function Cl(e){var t=e.getLabelModel().get("formatter");if(e.type==="time"){var r=Qj(t);return function(n,a){return e.scale.getFormattedLabel(n,a,r)}}else{if(te(t))return function(n){var a=e.scale.getLabel(n),o=t.replace("{value}",a??"");return o};if(le(t)){if(e.type==="category")return function(n,a){return t(zf(e,n),n.value-e.scale.getExtent()[0],null)};var i=Ph();return function(n,a){var o=null;return i&&(o=i.makeAxisLabelFormatterParamBreak(o,n.break)),t(zf(e,n),a,o)}}else return function(n){return e.scale.getLabel(n)}}}function zf(e,t){var r=e.scale;return Vr(r)?r.getLabel(t):t.value}function Mb(e){var t=e.get("interval");return t??"auto"}function tH(e){return e.type==="category"&&Mb(e.getLabelModel())===0}function rH(e,t){var r={};return C(e.mapDimensionsAll(t),function(i){r[sL(e,i)]=!0}),Te(r)}function bo(e){return e==="middle"||e==="center"}function hu(e){return e.getShallow("show")}function nH(e,t,r){var i=e.get("breaks",!0);i==null}function yL(e,t,r,i,n,a){var o=_o(e),s=o?e.intervalStub:e;if(s.setExtent(i[0],i[1]),o){var u=e.powStub,l={depth:Lf},c=e.transformOut(i[0],l),f=e.transformOut(i[1],l),d=RG(r,i);t[0]&&!d[0]&&(c=n[0]),t[1]&&!d[1]&&(f=n[1]),u.setExtent(c,f)}s.setConfig(a)}function Al(e,t){return Vr(e)?e.getRawOrdinalNumber(t.value):t.value}function _L(e,t){return Vr(e)&&!!t.get("boundaryGap")}var iH=(function(){function e(){}return e.prototype.needIncludeZero=function(){return!this.option.scale},e.prototype.getCoordSysModel=function(){},e})(),aH=BA(),Hg="|&",qo=ke(),bL=-2,oH=-1,sH=ke();function SL(e,t){var r=e.model,i=qo(Ho(r.ecModel)).keyed,n=i&&i.get(t);return n&&n.get(r.uid)}function uH(e,t){return xL(SL(e,t))}function lH(e,t){var r=[];return wL(e.model.ecModel,function(i){for(var n=0;n<t.length;n++)t[n]&&i.serByIdx[t[n].seriesIndex]&&r.push(xL(i))}),r}function wL(e,t){var r=qo(Ho(e)).keyed;r&&r.each(function(i,n){i.each(function(a,o){t(a,n,o)})})}function xL(e){return{liPosMinGap:e?e.liPosMinGap:void 0}}function cH(e,t){var r=e.model.ecModel,i=qo(Ho(r)).axSer;i&&Lb(r,i.get(e.model.uid),t)}function TL(e,t,r){var i=SL(e,t);i&&Lb(e.model.ecModel,i.sers,r)}function Lb(e,t,r){if(t)for(var i=0;i<t.length;i++){var n=t[i];e.isSeriesFiltered(n)||r(n)}}function fH(e,t,r){var i=qo(Ho(e)).keyed,n=i&&i.get(t);n&&n.each(function(a){r(a.axis)})}function kL(e,t){var r=e.model,i=qo(Ho(r.ecModel)).keys;i&&C(i.get(r.uid),function(n){t(n)})}function dH(e){var t=sH(sV(e)),r=t.keyed||(t.keyed=se());wL(e,function(i,n,a){var o=r.get(n)||r.set(n,se()),s=o.get(a)||o.set(a,{});i.metrics.liPosMinGap&&IL.liPosMinGap(e,i,s)})}function hH(e,t){IL[e]=t}var IL={};function kx(e,t,r){if(e){var i=t.ecModel,n=qo(Ho(i)),a=e.model.uid,o=n.axSer||(n.axSer=se()),s=o.get(a)||o.set(a,[]);s.push(t);var u=t.subType,l=t.getBaseAxis()===e,c=qg.get(Wg(u,l,r))||qg.get(Wg(u,l,null));if(c){var f=n.keyed||(n.keyed=se()),d=n.keys||(n.keys=se()),h=c.key,v=f.get(h)||f.set(h,se()),p=v.get(a);p||(p=v.set(a,{axis:e,sers:[],serByIdx:[]}),p.metrics=c.getMetrics(e),(d.get(a)||d.set(a,[])).push(h)),p.sers.push(t),p.serByIdx[t.seriesIndex]=t}}}function Wg(e,t,r){return e+Hg+J(t,!0)+Hg+(r||"")}function vH(e,t){var r=Wg(t.seriesType,t.baseAxis,t.coordSysType);qg.set(r,t),aH(e,function(){e.registerProcessor(e.PRIORITY.PROCESSOR.AXIS_STATISTICS,{overallReset:dH})})}var qg=se(),pH=ke(),gH=1,mH=3,$L=(function(){function e(t,r,i,n,a){var o=Vr(t),s=o?r.getCategories().length:null,u;if(o){var l=r.getCategories(!0);u=l&&!l.length}var c=i.slice();(Ef(t)||_o(t)||Db(t))&&(NA(c,ds(t,r.get("dataMin",!0))),UA(c,ds(t,r.get("dataMax",!0)))),fB(c)||(c[0]=c[1]=NaN);var f=[],d=[!1,!1],h=r.get("min",!0);h==="dataMin"?(f[0]=c[0],d[0]=!0):(f[0]=ds(t,le(h)?h({min:c[0],max:c[1]}):h),d[0]=f[0]!=null);var v=r.get("max",!0);v==="dataMax"?(f[1]=c[1],d[1]=!0):(f[1]=ds(t,le(v)?v({min:c[0],max:c[1]}):v),d[1]=f[1]!=null);var p=yH(t,r),g=o?null:c[1]-c[0]||Math.abs(c[0]);f[0]==null&&(f[0]=o?u?c[0]:s?0:NaN:c[0]-p[0]*g),f[1]==null&&(f[1]=o?u?c[1]:s?s-1:NaN:c[1]+p[1]*g),!Dn(f[0])&&(f[0]=NaN),!Dn(f[1])&&(f[1]=NaN);var m=u||Ws(f[0])||Ws(f[1])||o&&!s,y=Ef(t),_=y&&r.needIncludeZero&&r.needIncludeZero();_&&(f[0]>0&&f[1]>0&&!d[0]&&(f[0]=0),f[0]<0&&f[1]<0&&!d[1]&&(f[1]=0));var b=!1;f[0]>f[1]&&(f.reverse(),b=!0);var S=ds(t,r.get("startValue",!0)),w=S!=null;!wr(S)&&n&&(S=t.getDefaultStartValue?t.getDefaultStartValue():0),wr(S)&&(w||!y||_)&&(S<f[0]&&!d[0]?(f[0]=S,d[0]=!0):S>f[1]&&!d[1]&&(f[1]=S,d[1]=!0));var x=this._i={scale:t,dataMM:c,noZoomEffMM:f,zoomMM:[],fixMM:d,zoomFixMM:[!1,!1],startValue:S,isBlank:m,incl0:_,tggAxInv:b,ctnShp:a};Ix(x,f)}return e.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},e.prototype.makeFinal=function(){var t=this._i,r=t.zoomMM,i=t.noZoomEffMM,n=t.zoomFixMM,a=t.fixMM,o={fixMM:a,zoomFixMM:n,isBlank:t.isBlank,incl0:t.incl0,tggAxInv:t.tggAxInv,ctnShp:t.ctnShp,effMM:i.slice()},s=o.effMM;return r[0]!=null&&(s[0]=r[0],a[0]=n[0]=!0),r[1]!=null&&(s[1]=r[1],a[1]=n[1]=!0),Ix(t,s),o},e.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},e.prototype.setZoomMM=function(t,r){this._i.zoomMM[t]=r},e})();function Ix(e,t){var r=e.scale,i=e.dataMM;r.sanitize&&(t[0]=r.sanitize(t[0],i),t[1]=r.sanitize(t[1],i),dB(t))}function ds(e,t){return t==null?null:Ws(t)?NaN:e.parse(t)}function yH(e,t){var r;if(Vr(e))r=[0,0];else{var i=t.get("boundaryGap");typeof i=="boolean"&&(i=null),r=q(i)?i:[i,i]}return[$x(r[0]),$x(r[1])]}function $x(e){return ra(typeof e=="boolean"?0:e,1)||0}function DL(e){var t=pH(e.scale);return t.extent||(t.extent=hr()),t}function _H(e,t){DL(e).dimIdxInCoord=t.get(e.dim)}function bH(e,t){var r=e.scale,i=e.model,n=e.dim;r.rawExtentInfo||SH(r,e,n,i,t)}function SH(e,t,r,i,n){var a=DL(t),o=a.extent,s=!1;cH(t,function(c){if(c.boxCoordinateSystem){var f=JP(c).coord,d=a.dimIdxInCoord;if(d>=0){if(q(f)){var h=f[d];h!=null&&!q(h)&&fg(o,e.parse(h))}}}else if(c.coordinateSystem){var v=c.getData();if(v){var p=e.getFilter?e.getFilter():null;C(rH(v,r),function(g){cB(o,v.getApproximateExtent(g,p))})}c.__requireStartValue&&c.__requireStartValue(t)&&(s=!0)}});var u=TH(e,t,i),l=new $L(e,i,o,s,u);CL(e,l,n),a.extent=null}function wH(e,t){var r=e.scale;CL(r,new $L(r,e.model,t,!1,!1),mH)}function CL(e,t,r){e.rawExtentInfo=t,t.from=r}function xH(e,t){Ob.set(e,t)}var Ob=se();function AL(e,t,r,i,n){e.rawExtentInfo||wH({scale:e,model:t},hr());var a=e.rawExtentInfo.makeFinal(),o=a.effMM;return e.setExtent(o[0],o[1]),e.setBlank(a.isBlank),i&&a.tggAxInv&&r&&!r.get("legacyMinMaxDontInverseAxis")&&(i.inverse=!i.inverse),a}function TH(e,t,r){var i=_L(e,r),n=r.get("containShape",!0);if(n==null&&!i&&(n=!0),!n)return!1;var a=!1;return kL(t,function(o){a=!!Ob.get(o)||a}),a}function kH(e,t,r,i){if(r.ctnShp){var n;if(kL(e,function(s){var u=Ob.get(s);if(u){var l=u(e,i);l&&(n=n||[0,0],NA(n,l[0]),UA(n,l[1]),QG(e))}}),!!n){var a=t.getExtent();if(Vr(t))e.onBand||t.setExtent2(fu,Ct(a[0],a[0]+n[0]),Me(a[1],a[1]+n[1]));else{var o=a.slice();r.zoomFixMM[0]||(o[0]=Ct(o[0],t.transformOut(t.transformIn(o[0],null)+n[0],null))),r.zoomFixMM[1]||(o[1]=Me(o[1],t.transformOut(t.transformIn(o[1],null)+n[1],null))),(o[0]<a[0]||o[1]>a[1])&&t.setExtent2(fu,o[0],o[1])}}}}function Dx(e,t){var r=_o(e),i=r?e.intervalStub:e,n=t.fixMinMax||[],a=r?e.getExtent():null,o=i.getExtent(),s=dL(o,n,t.rawExtentResult);i.setExtent(s[0],s[1]),s=i.getExtent();var u=r?$H(i,t):IH(i,t),l=u.intervalPrecision,c=u.interval,f=t.userInterval;f!=null&&(u.interval=f,u.intervalPrecision=la(f)),n[0]||(s[0]=Ae(na(s[0]/c)*c,l)),n[1]||(s[1]=Ae(xl(s[1]/c)*c,l)),f!=null&&(u.niceExtent=s.slice()),yL(e,n,o,s,a,u)}function IH(e,t){var r=Cb(t.splitNumber,5),i=Fh(e),n=t.minInterval,a=t.maxInterval,o=k0(i/r,!0);n!=null&&o<n&&(o=n),a!=null&&o>a&&(o=a);var s=la(o),u=e.getExtent(),l=[Ae(xl(u[0]/o)*o,s),Ae(na(u[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:l}}function $H(e,t){var r=Cb(t.splitNumber,10),i=e.getExtent(),n=Fh(e),a=Me(AA(n),1),o=r/n*a;o<=.5&&(a*=10);var s=la(a),u=[Ae(xl(i[0]/a)*a,s),Ae(na(i[1]/a)*a,s)];return{intervalPrecision:s,interval:a,niceExtent:u}}function Cx(e){var t=e.scale,r=e.model,i=r.axis,n=r.ecModel;DH(t,r,i,n)}function DH(e,t,r,i,n){var a=AL(e,t,i,r),o=Ef(e)||Db(e);CH(e,{splitNumber:t.get("splitNumber"),fixMinMax:a.fixMM,userInterval:t.get("interval"),minInterval:o?t.get("minInterval"):null,maxInterval:o?t.get("maxInterval"):null,rawExtentResult:a}),r&&i&&kH(r,e,a,i)}function CH(e,t){AH[e.type](e,t)}var AH={interval:Dx,log:Dx,time:WG,ordinal:bt},Ax=[],PH={registerPreprocessor:QM,registerProcessor:eL,registerPostInit:tG,registerPostUpdate:rG,registerUpdateLifecycle:xb,registerAction:Wo,registerCoordinateSystem:nG,registerLayout:iG,registerVisual:ga,registerTransform:oG,registerLoading:tL,registerMap:aG,registerImpl:nV,PRIORITY:qV,ComponentModel:Be,ComponentView:Nr,SeriesModel:tr,ChartView:Ht,registerComponentModel:function(e){Be.registerClass(e)},registerComponentView:function(e){Nr.registerClass(e)},registerSeriesModel:function(e){tr.registerClass(e)},registerChartView:function(e){Ht.registerClass(e)},registerCustomSeries:function(e,t){},registerSubTypeDefaulter:function(e,t){Be.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){M6(e,t)}};function Pn(e){if(q(e)){C(e,function(t){Pn(t)});return}xe(Ax,e)>=0||(Ax.push(e),le(e)&&(e={install:e}),e.install(PH))}var MH=ke(),Bs=ke(),Ur={estimate:1,determine:2};function Rf(e){return{out:{noPxChangeTryDetermine:[]},kind:e}}function LH(e,t){var r=e.getLabelModel().get("customValues");if(r){var i=e.scale;return{labels:Q(PL(r,i),function(n,a){return{formattedLabel:Cl(e)(n,a),rawLabel:i.getLabel(n),tick:n}})}}return e.type==="category"?EH(e,t):RH(e)}function OH(e,t,r){var i=e.scale,n=e.getTickModel().get("customValues");return n?{ticks:PL(n,i)}:e.type==="category"?zH(e,t):{ticks:i.getTicks(r)}}function PL(e,t){var r=t.getExtent(),i=[];return C(e,function(n){n=t.parse(n),n>=r[0]&&n<=r[1]&&i.push(n)}),C0(i,pB,null),x0(i),Q(i,function(n){return{value:n}})}function EH(e,t){var r=e.getLabelModel(),i=ML(e,r,t);return!r.get("show")||e.scale.isBlank()?{labels:[]}:i}function ML(e,t,r){var i=UH(e),n=Mb(t),a=r.kind===Ur.estimate;if(!a){var o=OL(i,n);if(o)return o}var s,u;le(n)?s=Nf(e,n,!1):(u=n==="auto"?BH(e,r):n,s=Nf(e,u,!1));var l={labels:s,labelCategoryInterval:u};return a?r.out.noPxChangeTryDetermine.push(function(){return Yg(i,n,l),!0}):Yg(i,n,l),l}function zH(e,t){var r=NH(e),i=Mb(t),n=OL(r,i);if(n)return n;var a,o;if((!t.get("show")||e.scale.isBlank())&&(a=[]),le(i))a=Nf(e,i,!0);else if(i==="auto"){var s=ML(e,e.getLabelModel(),Rf(Ur.determine));o=s.labelCategoryInterval,a=Q(s.labels,function(u){return u.tick})}else o=i,a=Nf(e,o,!0);return Yg(r,i,{ticks:a,tickCategoryInterval:o})}function RH(e){var t=e.scale.getTicks(),r=Cl(e);return{labels:Q(t,function(i,n){return{formattedLabel:r(i,n),rawLabel:e.scale.getLabel(i),tick:i}})}}var NH=LL("axisTick"),UH=LL("axisLabel");function LL(e){return function(r){return Bs(r)[e]||(Bs(r)[e]={list:[]})}}function OL(e,t){for(var r=0;r<e.list.length;r++)if(e.list[r].key===t)return e.list[r].value}function Yg(e,t,r){return e.list.push({key:t,value:r}),r}function BH(e,t){if(t.kind===Ur.estimate){var r=e.calculateCategoryInterval(t);return t.out.noPxChangeTryDetermine.push(function(){return Bs(e).autoInterval=r,!0}),r}var i=Bs(e).autoInterval;return i??(Bs(e).autoInterval=e.calculateCategoryInterval(t))}function FH(e,t){var r=t.kind,i=ZH(e),n=Cl(e),a=(i.axisRotate-i.labelRotate)/180*Math.PI,o=e.scale,s=o.getExtent(),u=o.count();if(s[1]-s[0]<1)return 0;var l=1,c=40;u>c&&(l=Math.max(1,Math.floor(u/c)));for(var f=s[0],d=e.dataToCoord(f+1)-e.dataToCoord(f),h=Math.abs(d*Math.cos(a)),v=Math.abs(d*Math.sin(a)),p=0,g=0;f<=s[1];f+=l){var m=0,y=0,_=kA(n({value:f}),i.font,"center","top");m=_.width*1.3,y=_.height*1.3,p=Math.max(p,m,7),g=Math.max(g,y,7)}var b=p/h,S=g/v;isNaN(b)&&(b=1/0),isNaN(S)&&(S=1/0);var w=Math.max(0,Math.floor(Math.min(b,S)));if(r===Ur.estimate)return t.out.noPxChangeTryDetermine.push(Fe(jH,null,e,w,u)),w;var x=EL(e,w,u);return x??w}function jH(e,t,r){return EL(e,t,r)==null}function EL(e,t,r){var i=MH(e.model),n=e.getExtent(),a=i.lastAutoInterval,o=i.lastTickCount;if(a!=null&&o!=null&&Math.abs(a-t)<=1&&Math.abs(o-r)<=1&&a>t&&i.axisExtent0===n[0]&&i.axisExtent1===n[1])return a;i.lastTickCount=r,i.lastAutoInterval=t,i.axisExtent0=n[0],i.axisExtent1=n[1]}function ZH(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 Nf(e,t,r){var i=Cl(e),n=e.scale,a=[],o=le(t);return hL(n,o?0:t,function(s,u){var l=n.getLabel(s);if(o){var c=!!t(s.value,l);if(s.offInterval=!c,!c&&!u)return}a.push(r?s:{formattedLabel:i(s),rawLabel:l,tick:s})}),a}var VH=.8;function Yo(e,t){t=t||{};var r={w:NaN,w2:NaN},i=e.scale,n=t.fromStat,a=t.min,o=LG(i);wr(o)||(o=NaN);var s=e.getExtent(),u=ft(s[1]-s[0]);return Vr(i)?GH(r,e,o,u):n&&HH(r,e,o,u,n),a!=null&&(r.w=wr(r.w)?Me(a,r.w):a),r}function GH(e,t,r,i){var n=t.onBand,a=r+(n?1:0);a===0&&(a=1),e.w=i/a,!n&&r&&i&&(e.w2=e.w*r/i)}function HH(e,t,r,i,n){var a=!1,o=-1/0;C(n.key?[uH(t,n.key)]:lH(t,n.sers||[]),function(s){var u=s.liPosMinGap;u!=null&&(u>0?(u>o&&(o=u),a=!1):u===bL&&(a=!0))}),wr(r)&&r>0&&wr(o)?(e.w=i/r*o,e.w2=o):a&&(e.w=i*VH,e.w2=e.w*r/i)}var Px=[0,1],WH=(function(){function e(t,r,i){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=r,this._extent=i||[0,0]}return e.prototype.contain=function(t){var r=this._extent,i=Math.min(r[0],r[1]),n=Math.max(r[0],r[1]);return t>=i&&t<=n},e.prototype.containData=function(t){return this.scale.contain(this.scale.parse(t))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,r){var i=this._extent;i[0]=t,i[1]=r},e.prototype.dataToCoord=function(t,r){var i=this.scale;return t=i.normalize(i.parse(t)),Js(t,Px,Mx(this),r)},e.prototype.coordToData=function(t,r){var i=Js(t,Mx(this),Px,r);return this.scale.scale(i)},e.prototype.pointToData=function(t,r){},e.prototype.getTicksCoords=function(t){t=t||{};var r=t.tickModel||this.getTickModel(),i=OH(this,r,{breakTicks:t.breakTicks,pruneByBreak:t.pruneByBreak}),n=Q(i.ticks,function(s){return{coord:this.dataToCoord(Al(this.scale,s)),tick:s}},this),a=r.get("alignWithLabel"),o=qH(this,n,a);return Q(n,function(s){return{coord:s.coord,tickValue:s.tick.value,onBand:o}})},e.prototype.getMinorTicksCoords=function(){if(Vr(this.scale))return[];var t=this.model.getModel("minorTick"),r=t.get("splitNumber");r>0&&r<100||(r=5);var i=this.scale.getMinorTicks(r),n=Q(i,function(a){return Q(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return n},e.prototype.getViewLabels=function(t){return t=t||Rf(Ur.determine),LH(this,t).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){return Yo(this,{min:1}).w},e.prototype.calculateCategoryInterval=function(t){return t=t||Rf(Ur.determine),FH(this,t)},e})();function Mx(e){var t=e.getExtent();if(e.onBand){var r=t[1]-t[0],i=r/e.scale.count()/2;t[0]+=i,t[1]-=i}return t}function qH(e,t,r){var i=t.length;if(!e.onBand||r||!i)return!1;var n=Yo(e).w;if(!n)return!1;C(t,function(s){s.coord-=n/2});var a=e.scale.getExtent(),o=t[i-1];return o.tick.offInterval&&t.pop(),t.push({coord:o.coord+n,tick:{value:a[1]+1}}),!0}var hs=Math.PI*2,Li=Cn.CMD,YH=["top","right","bottom","left"];function XH(e,t,r,i,n){var a=r.width,o=r.height;switch(e){case"top":i.set(r.x+a/2,r.y-t),n.set(0,-1);break;case"bottom":i.set(r.x+a/2,r.y+o+t),n.set(0,1);break;case"left":i.set(r.x-t,r.y+o/2),n.set(-1,0);break;case"right":i.set(r.x+a+t,r.y+o/2),n.set(1,0);break}}function KH(e,t,r,i,n,a,o,s,u){o-=e,s-=t;var l=Math.sqrt(o*o+s*s);o/=l,s/=l;var c=o*r+e,f=s*r+t;if(Math.abs(i-n)%hs<1e-4)return u[0]=c,u[1]=f,l-r;if(a){var d=i;i=yn(n),n=yn(d)}else i=yn(i),n=yn(n);i>n&&(n+=hs);var h=Math.atan2(s,o);if(h<0&&(h+=hs),h>=i&&h<=n||h+hs>=i&&h+hs<=n)return u[0]=c,u[1]=f,l-r;var v=r*Math.cos(i)+e,p=r*Math.sin(i)+t,g=r*Math.cos(n)+e,m=r*Math.sin(n)+t,y=(v-o)*(v-o)+(p-s)*(p-s),_=(g-o)*(g-o)+(m-s)*(m-s);return y<_?(u[0]=v,u[1]=p,Math.sqrt(y)):(u[0]=g,u[1]=m,Math.sqrt(_))}function Uf(e,t,r,i,n,a,o,s){var u=n-e,l=a-t,c=r-e,f=i-t,d=Math.sqrt(c*c+f*f);c/=d,f/=d;var h=u*c+l*f,v=h/d;s&&(v=Math.min(Math.max(v,0),1)),v*=d;var p=o[0]=e+v*c,g=o[1]=t+v*f;return Math.sqrt((p-n)*(p-n)+(g-a)*(g-a))}function zL(e,t,r,i,n,a,o){r<0&&(e=e+r,r=-r),i<0&&(t=t+i,i=-i);var s=e+r,u=t+i,l=o[0]=Math.min(Math.max(n,e),s),c=o[1]=Math.min(Math.max(a,t),u);return Math.sqrt((l-n)*(l-n)+(c-a)*(c-a))}var Mr=[];function JH(e,t,r){var i=zL(t.x,t.y,t.width,t.height,e.x,e.y,Mr);return r.set(Mr[0],Mr[1]),i}function QH(e,t,r){for(var i=0,n=0,a=0,o=0,s,u,l=1/0,c=t.data,f=e.x,d=e.y,h=0;h<c.length;){var v=c[h++];h===1&&(i=c[h],n=c[h+1],a=i,o=n);var p=l;switch(v){case Li.M:a=c[h++],o=c[h++],i=a,n=o;break;case Li.L:p=Uf(i,n,c[h],c[h+1],f,d,Mr,!0),i=c[h++],n=c[h++];break;case Li.C:p=cA(i,n,c[h++],c[h++],c[h++],c[h++],c[h],c[h+1],f,d,Mr),i=c[h++],n=c[h++];break;case Li.Q:p=dA(i,n,c[h++],c[h++],c[h],c[h+1],f,d,Mr),i=c[h++],n=c[h++];break;case Li.A:var g=c[h++],m=c[h++],y=c[h++],_=c[h++],b=c[h++],S=c[h++];h+=1;var w=!!(1-c[h++]);s=Math.cos(b)*y+g,u=Math.sin(b)*_+m,h<=1&&(a=s,o=u);var x=(f-g)*_/y+g;p=KH(g,m,_,b,b+S,w,x,d,Mr),i=Math.cos(b+S)*y+g,n=Math.sin(b+S)*_+m;break;case Li.R:a=i=c[h++],o=n=c[h++];var T=c[h++],k=c[h++];p=zL(a,o,T,k,f,d,Mr);break;case Li.Z:p=Uf(i,n,a,o,f,d,Mr,!0),i=a,n=o;break}p<l&&(l=p,r.set(Mr[0],Mr[1]))}return l}var Er=new de,Ue=new de,it=new de,tn=new de,Jr=new de;function Lx(e,t){if(e){var r=e.getTextGuideLine(),i=e.getTextContent();if(i&&r){var n=e.textGuideLineConfig||{},a=[[0,0],[0,0],[0,0]],o=n.candidates||YH,s=i.getBoundingRect().clone();s.applyTransform(i.getComputedTransform());var u=1/0,l=n.anchor,c=e.getComputedTransform(),f=c&&Bo([],c),d=t.get("length2")||0;l&&it.copy(l);for(var h=0;h<o.length;h++){var v=o[h];XH(v,0,s,Er,tn),de.scaleAndAdd(Ue,Er,tn,d),Ue.transform(f);var p=e.getBoundingRect(),g=l?l.distance(Ue):e instanceof Pe?QH(Ue,e.path,it):JH(Ue,p,it);g<u&&(u=g,Ue.transform(c),it.transform(c),it.toArray(a[0]),Ue.toArray(a[1]),Er.toArray(a[2]))}RL(a,t.get("minTurnAngle")),r.setShape({points:a})}}}var Bf=[],Et=new de;function RL(e,t){if(t<=180&&t>0){t=t/180*Math.PI,Er.fromArray(e[0]),Ue.fromArray(e[1]),it.fromArray(e[2]),de.sub(tn,Er,Ue),de.sub(Jr,it,Ue);var r=tn.len(),i=Jr.len();if(!(r<.001||i<.001)){tn.scale(1/r),Jr.scale(1/i);var n=tn.dot(Jr),a=Math.cos(t);if(a<n){var o=Uf(Ue.x,Ue.y,it.x,it.y,Er.x,Er.y,Bf,!1);Et.fromArray(Bf),Et.scaleAndAdd(Jr,o/Math.tan(Math.PI-t));var s=it.x!==Ue.x?(Et.x-Ue.x)/(it.x-Ue.x):(Et.y-Ue.y)/(it.y-Ue.y);if(isNaN(s))return;s<0?de.copy(Et,Ue):s>1&&de.copy(Et,it),Et.toArray(e[1])}}}}function e3(e,t,r){if(r<=180&&r>0){r=r/180*Math.PI,Er.fromArray(e[0]),Ue.fromArray(e[1]),it.fromArray(e[2]),de.sub(tn,Ue,Er),de.sub(Jr,it,Ue);var i=tn.len(),n=Jr.len();if(!(i<.001||n<.001)){tn.scale(1/i),Jr.scale(1/n);var a=tn.dot(t),o=Math.cos(r);if(a<o){var s=Uf(Ue.x,Ue.y,it.x,it.y,Er.x,Er.y,Bf,!1);Et.fromArray(Bf);var u=Math.PI/2,l=Math.acos(Jr.dot(t)),c=u+l-r;if(c>=u)de.copy(Et,it);else{Et.scaleAndAdd(Jr,s/Math.tan(Math.PI/2-c));var f=it.x!==Ue.x?(Et.x-Ue.x)/(it.x-Ue.x):(Et.y-Ue.y)/(it.y-Ue.y);if(isNaN(f))return;f<0?de.copy(Et,Ue):f>1&&de.copy(Et,it)}Et.toArray(e[1])}}}}function ip(e,t,r,i){var n=r==="normal",a=n?e:e.ensureState(r);a.ignore=t;var o=i.get("smooth");o=o===!0?.3:Math.max(+o,0)||0,a.shape=a.shape||{},a.shape.smooth=o;var s=i.getModel("lineStyle").getLineStyle();n?e.useStyle(s):a.style=s}function t3(e,t){var r=t.smooth,i=t.points;if(i)if(e.moveTo(i[0][0],i[0][1]),r>0&&i.length>=3){var n=Bp(i[0],i[1]),a=Bp(i[1],i[2]);if(!n||!a){e.lineTo(i[1][0],i[1][1]),e.lineTo(i[2][0],i[2][1]);return}var o=Math.min(n,a)*r,s=Xh([],i[1],i[0],o/n),u=Xh([],i[1],i[2],o/a),l=Xh([],s,u,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],l[0],l[1]),e.bezierCurveTo(u[0],u[1],u[0],u[1],i[2][0],i[2][1])}else for(var c=1;c<i.length;c++)e.lineTo(i[c][0],i[c][1])}function Eb(e,t,r){var i=e.getTextGuideLine(),n=e.getTextContent();if(!n){i&&e.removeTextGuideLine();return}for(var a=t.normal,o=a.get("show"),s=n.ignore,u=0;u<bf.length;u++){var l=bf[u],c=t[l],f=l==="normal";if(c){var d=c.get("show"),h=f?s:J(n.states[l]&&n.states[l].ignore,s);if(h||!J(d,o)){var v=f?i:i&&i.states[l];v&&(v.ignore=!0),i&&ip(i,!0,l,c);continue}i||(i=new Vo,e.setTextGuideLine(i),!f&&(s||!o)&&ip(i,!0,"normal",t.normal),e.stateProxy&&(i.stateProxy=e.stateProxy)),ip(i,!1,l,c)}}if(i){je(i.style,r),i.style.fill=null;var p=a.get("showAbove"),g=e.textGuideLineConfig=e.textGuideLineConfig||{};g.showAbove=p||!1,i.buildPath=t3}}function zb(e,t){t=t||"labelLine";for(var r={normal:e.getModel(t)},i=0;i<Yt.length;i++){var n=Yt[i];r[n]=e.getModel([n,t])}return r}var Ox=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],r3=1,Ff=2,NL=r3|Ff;function jf(e,t,r){r=r||NL,t?e.dirty|=r:e.dirty&=~r}function UL(e,t){return t=t||NL,e.dirty==null||!!(e.dirty&t)}function ii(e){if(e)return UL(e)&&BL(e,e.label,e),e}function BL(e,t,r){var i=t.getComputedTransform();e.transform=W0(e.transform,i);var n=e.localRect=su(e.localRect,t.getBoundingRect()),a=t.style,o=a.margin,s=r&&r.marginForce,u=r&&r.minMarginForce,l=r&&r.marginDefault,c=a.__marginType;c==null&&l&&(o=l,c=Va.textMargin);for(var f=0;f<4;f++)ap[f]=c===Va.minMargin&&u&&u[f]!=null?u[f]:s&&s[f]!=null?s[f]:o?o[f]:0;c===Va.textMargin&&Tf(n,ap,!1,!1);var d=e.rect=su(e.rect,n);return i&&d.applyTransform(i),c===Va.minMargin&&Tf(d,ap,!1,!1),e.axisAligned=H0(i),(e.label=e.label||{}).ignore=t.ignore,jf(e,!1),jf(e,!0,Ff),e}var ap=[0,0,0,0];function n3(e,t,r){return e.transform=W0(e.transform,r),e.localRect=su(e.localRect,t),e.rect=su(e.rect,t),r&&e.rect.applyTransform(r),e.axisAligned=H0(r),e.obb=void 0,(e.label=e.label||{}).ignore=!1,e}function i3(e,t){if(e){e.label.x+=t.x,e.label.y+=t.y,e.label.markRedraw();var r=e.transform;r&&(r[4]+=t.x,r[5]+=t.y);var i=e.rect;i&&(i.x+=t.x,i.y+=t.y);var n=e.obb;n&&n.fromBoundingRect(e.localRect,r)}}function Xg(e,t){for(var r=0;r<Ox.length;r++){var i=Ox[r];e[i]==null&&(e[i]=t[i])}return ii(e)}function Ex(e){var t=e.obb;return(!t||UL(e,Ff))&&(e.obb=t=t||new TP,t.fromBoundingRect(e.localRect,e.transform),jf(e,!1,Ff)),t}function Kg(e,t,r,i,n){var a=e.length,o=Vn[t],s=go[t];if(a<2)return!1;e.sort(function(x,T){return x.rect[o]-T.rect[o]});for(var u=0,l,c=!1,f=0;f<a;f++){var d=e[f],h=d.rect;l=h[o]-u,l<0&&(h[o]-=l,d.label[o]-=l,c=!0),u=h[o]+h[s]}var v=e[0],p=e[a-1],g,m;y(),g<0&&S(-g,.8),m<0&&S(m,.8),y(),_(g,m,1),_(m,g,-1),y(),g<0&&w(-g),m<0&&w(m);function y(){g=v.rect[o]-r,m=i-p.rect[o]-p.rect[s]}function _(x,T,k){if(x<0){var I=Math.min(T,-x);if(I>0){b(I*k,0,a);var $=I+x;$<0&&S(-$*k,1)}else S(-x*k,1)}}function b(x,T,k){x!==0&&(c=!0);for(var I=T;I<k;I++){var $=e[I],A=$.rect;A[o]+=x,$.label[o]+=x}}function S(x,T){for(var k=[],I=0,$=1;$<a;$++){var A=e[$-1].rect,D=Math.max(e[$].rect[o]-A[o]-A[s],0);k.push(D),I+=D}if(I){var P=Math.min(Math.abs(x)/I,T);if(x>0)for(var $=0;$<a-1;$++){var L=k[$]*P;b(L,0,$+1)}else for(var $=a-1;$>0;$--){var L=k[$-1]*P;b(-L,$,a)}}}function w(x){var T=x<0?-1:1;x=Math.abs(x);for(var k=Math.ceil(x/(a-1)),I=0;I<a-1;I++)if(T>0?b(k,0,I+1):b(-k,a-I-1,a),x-=k,x<=0)return}return c}function a3(e){for(var t=0;t<e.length;t++){var r=e[t],i=r.defaultAttr,n=r.labelLine;r.label.attr("ignore",i.ignore),n&&n.attr("ignore",i.labelGuideIgnore)}}function FL(e){var t=[];e.sort(function(l,c){return(c.suggestIgnore?1:0)-(l.suggestIgnore?1:0)||c.priority-l.priority});function r(l){if(!l.ignore){var c=l.ensureState("emphasis");c.ignore==null&&(c.ignore=!1)}l.ignore=!0}for(var i=0;i<e.length;i++){var n=ii(e[i]);if(!n.label.ignore){for(var a=n.label,o=n.labelLine,s=!1,u=0;u<t.length;u++)if(Rb(n,t[u],null,{touchThreshold:.05})){s=!0;break}s?(r(a),o&&r(o)):t.push(n)}}}function Rb(e,t,r,i){return!e||!t||e.label&&e.label.ignore||t.label&&t.label.ignore||!e.rect.intersect(t.rect,r,i)?!1:e.axisAligned&&t.axisAligned?!0:Ex(e).intersect(Ex(t),r,i)}function o3(e){if(e){for(var t=[],r=0;r<e.length;r++)t.push(e[r].slice());return t}}function s3(e,t){var r=e.label,i=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:o3(i&&i.shape.points)}}var zx=["align","verticalAlign","width","height","fontSize"],Mt=new Fo,op=ke(),u3=ke();function Sc(e,t,r){for(var i=0;i<r.length;i++){var n=r[i];t[n]!=null&&(e[n]=t[n])}}var wc=["x","y","rotation"],l3=(function(){function e(){this._labelList=[],this._chartViewList=[]}return e.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},e.prototype._addLabel=function(t,r,i,n,a){var o=n.style,s=n.__hostTarget,u=s.textConfig||{},l=n.getComputedTransform(),c=n.getBoundingRect().plain();fe.applyTransform(c,c,l),l?Mt.setLocalTransform(l):(Mt.x=Mt.y=Mt.rotation=Mt.originX=Mt.originY=0,Mt.scaleX=Mt.scaleY=1),Mt.rotation=yn(Mt.rotation);var f=n.__hostTarget,d;if(f){d=f.getBoundingRect().plain();var h=f.getComputedTransform();fe.applyTransform(d,d,h)}var v=d&&f.getTextGuideLine();this._labelList.push({label:n,labelLine:v,seriesModel:i,dataIndex:t,dataType:r,layoutOptionOrCb:a,layoutOption:null,rect:c,hostRect:d,priority:d?d.width*d.height:0,defaultAttr:{ignore:n.ignore,labelGuideIgnore:v&&v.ignore,x:Mt.x,y:Mt.y,scaleX:Mt.scaleX,scaleY:Mt.scaleY,rotation:Mt.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:n.cursor,attachedPos:u.position,attachedRot:u.rotation}})},e.prototype.addLabelsOfSeries=function(t){var r=this;this._chartViewList.push(t);var i=t.__model,n=i.get("labelLayout");(le(n)||Te(n).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,i,o,n)})},e.prototype.updateLayoutConfig=function(t){var r=t.getWidth(),i=t.getHeight();function n(_,b){return function(){Lx(_,b)}}for(var a=0;a<this._labelList.length;a++){var o=this._labelList[a],s=o.label,u=s.__hostTarget,l=o.defaultAttr,c=void 0;le(o.layoutOptionOrCb)?c=o.layoutOptionOrCb(s3(o,u)):c=o.layoutOptionOrCb,c=c||{},o.layoutOption=c;var f=Math.PI/180;u&&u.setTextConfig({local:!1,position:c.x!=null||c.y!=null?null:l.attachedPos,rotation:c.rotate!=null?c.rotate*f:l.attachedRot,offset:[c.dx||0,c.dy||0]});var d=!1;if(c.x!=null?(s.x=$e(c.x,r),s.setStyle("x",0),d=!0):(s.x=l.x,s.setStyle("x",l.style.x)),c.y!=null?(s.y=$e(c.y,i),s.setStyle("y",0),d=!0):(s.y=l.y,s.setStyle("y",l.style.y)),c.labelLinePoints){var h=u.getTextGuideLine();h&&(h.setShape({points:c.labelLinePoints}),d=!1)}var v=op(s);v.needsUpdateLabelLine=d,s.rotation=c.rotate!=null?c.rotate*f:l.rotation,s.scaleX=l.scaleX,s.scaleY=l.scaleY;for(var p=0;p<zx.length;p++){var g=zx[p];s.setStyle(g,c[g]!=null?c[g]:l.style[g])}if(c.draggable){if(s.draggable=!0,s.cursor="move",u){var m=o.seriesModel;if(o.dataIndex!=null){var y=o.seriesModel.getData(o.dataType);m=y.getItemModel(o.dataIndex)}s.on("drag",n(u,m.getModel("labelLine")))}}else s.off("drag"),s.cursor=l.cursor}},e.prototype.layout=function(t){var r=t.getWidth(),i=t.getHeight(),n=[];C(this._labelList,function(u){u.defaultAttr.ignore||n.push(Xg({},u))});var a=ot(n,function(u){return u.layoutOption.moveOverlap==="shiftX"}),o=ot(n,function(u){return u.layoutOption.moveOverlap==="shiftY"});Kg(a,0,0,r),Kg(o,1,0,i);var s=ot(n,function(u){return u.layoutOption.hideOverlap});a3(s),FL(s)},e.prototype.processLabelsOverall=function(){var t=this;C(this._chartViewList,function(r){var i=r.__model,n=r.ignoreLabelLineUpdate,a=i.isAnimationEnabled();r.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!n,u=o.getTextContent();!s&&u&&(s=op(u).needsUpdateLabelLine),s&&t._updateLabelLine(o,i),a&&t._animateLabels(o,i)})})},e.prototype._updateLabelLine=function(t,r){var i=t.getTextContent(),n=we(t),a=n.dataIndex;if(i&&a!=null){var o=r.getData(n.dataType),s=o.getItemModel(a),u={},l=o.getItemVisual(a,"style");if(l){var c=o.getVisual("drawType");u.stroke=l[c]}var f=s.getModel("labelLine");Eb(t,zb(s),u),Lx(t,f)}},e.prototype._animateLabels=function(t,r){var i=t.getTextContent(),n=t.getTextGuideLine();if(i&&(t.forceLabelAnimation||!i.ignore&&!i.invisible&&!t.disableLabelAnimation&&!Wa(t))){var a=op(i),o=a.oldLayout,s=we(t),u=s.dataIndex,l={x:i.x,y:i.y,rotation:i.rotation},c=r.getData(s.dataType);if(o){i.attr(o);var d=t.prevStates;d&&(xe(d,"select")>=0&&i.attr(a.oldLayoutSelect),xe(d,"emphasis")>=0&&i.attr(a.oldLayoutEmphasis)),lt(i,l,r,u)}else if(i.attr(l),!Go(i).valueAnimation){var f=J(i.style.opacity,1);i.style.opacity=0,St(i,{style:{opacity:f}},r,u)}if(a.oldLayout=l,i.states.select){var h=a.oldLayoutSelect={};Sc(h,l,wc),Sc(h,i.states.select,wc)}if(i.states.emphasis){var v=a.oldLayoutEmphasis={};Sc(v,l,wc),Sc(v,i.states.emphasis,wc)}Oj(i,u,c,r,r)}if(n&&!n.ignore&&!n.invisible){var a=u3(n),o=a.oldLayout,p={points:n.shape.points};o?(n.attr({shape:o}),lt(n,{shape:p},r)):(n.setShape(p),n.style.strokePercent=0,St(n,{style:{strokePercent:1}},r)),a.oldLayout=p}},e})(),sp=ke();function c3(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,i){var n=sp(r).labelManager;n||(n=sp(r).labelManager=new l3),n.clearLabels()}),e.registerUpdateLifecycle("series:layoutlabels",function(t,r,i){var n=sp(r).labelManager;C(i.updatedSeries,function(a){n.addLabelsOfSeries(r.getViewOfSeriesModel(a))}),n.updateLayoutConfig(r),n.layout(r),n.processLabelsOverall()})}var f3=(function(e){H(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){return Bh(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(r){var i=new ut,n=ni("line",0,r.itemHeight/2,r.itemWidth,0,r.lineStyle.stroke,!1);i.add(n),n.setStyle(r.lineStyle);var a=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=a==="none"?"circle":a,u=r.itemHeight*.8,l=ni(s,(r.itemWidth-u)/2,(r.itemHeight-u)/2,u,u,r.itemStyle.fill);i.add(l),l.setStyle(r.itemStyle);var c=r.iconRotate==="inherit"?o:r.iconRotate||0;return l.rotation=c*Math.PI/180,l.setOrigin([r.itemWidth/2,r.itemHeight/2]),s.indexOf("empty")>-1&&(l.style.stroke=l.style.fill,l.style.fill=re.color.neutral00,l.style.lineWidth=2),i},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1,triggerEvent:!1},t})(tr);function Nb(e,t){var r=e.mapDimensionsAll("defaultedLabel"),i=r.length;if(i===1){var n=yo(e,t,r[0]);return n!=null?n+"":null}else if(i){for(var a=[],o=0;o<r.length;o++)a.push(yo(e,t,r[o]));return a.join(" ")}}function jL(e,t){var r=e.mapDimensionsAll("defaultedLabel");if(!q(t))return t+"";for(var i=[],n=0;n<r.length;n++){var a=e.getDimensionIndex(r[n]);a>=0&&i.push(t[a])}return i.join(" ")}var Ub=(function(e){H(t,e);function t(r,i,n,a){var o=e.call(this)||this;return o.updateData(r,i,n,a),o}return t.prototype._createSymbol=function(r,i,n,a,o,s){this.removeAll();var u=ni(r,-1,-1,2,2,null,s);u.attr({z2:J(o,100),culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),u.drift=d3,this._symbolType=r,this.add(u)},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(){nu(this.childAt(0))},t.prototype.downplay=function(){iu(this.childAt(0))},t.prototype.setZ=function(r,i){var n=this.childAt(0);n.zlevel=r,n.z=i},t.prototype.setDraggable=function(r,i){var n=this.childAt(0);n.draggable=r,n.cursor=!i&&r?"move":n.cursor},t.prototype.updateData=function(r,i,n,a){this.silent=!1;var o=r.getItemVisual(i,"symbol")||"circle",s=r.hostModel,u=t.getSymbolSize(r,i),l=t.getSymbolZ2(r,i),c=o!==this._symbolType,f=a&&a.disableAnimation;if(c){var d=r.getItemVisual(i,"symbolKeepAspect");this._createSymbol(o,r,i,u,l,d)}else{var h=this.childAt(0);h.silent=!1;var v={scaleX:u[0]/2,scaleY:u[1]/2};f?h.attr(v):lt(h,v,s,i),Ih(h)}if(this._updateCommon(r,i,u,n,a),c){var h=this.childAt(0);if(!f){var v={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,St(h,v,s,i)}}f&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(r,i,n,a,o){var s=this.childAt(0),u=r.hostModel,l,c,f,d,h,v,p,g,m;if(a&&(l=a.emphasisItemStyle,c=a.blurItemStyle,f=a.selectItemStyle,d=a.focus,h=a.blurScope,p=a.labelStatesModels,g=a.hoverScale,m=a.cursorStyle,v=a.emphasisDisabled),!a||r.hasItemOption){var y=a&&a.itemModel?a.itemModel:r.getItemModel(i),_=y.getModel("emphasis");l=_.getModel("itemStyle").getItemStyle(),f=y.getModel(["select","itemStyle"]).getItemStyle(),c=y.getModel(["blur","itemStyle"]).getItemStyle(),d=_.get("focus"),h=_.get("blurScope"),v=_.get("disabled"),p=ui(y),g=_.getShallow("scale"),m=y.getShallow("cursor")}var b=r.getItemVisual(i,"symbolRotate");s.attr("rotation",(b||0)*Math.PI/180||0);var S=Rh(r.getItemVisual(i,"symbolOffset"),n);S&&(s.x=S[0],s.y=S[1]),m&&s.attr("cursor",m);var w=r.getItemVisual(i,"style"),x=w.fill;if(s instanceof fn){var T=s.style;s.useStyle(V({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},w))}else s.__isEmptyBrush?s.useStyle(V({},w)):s.useStyle(w),s.style.decal=null,s.setColor(x,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var k=r.getItemVisual(i,"liftZ"),I=this._z2;k!=null?I==null&&(this._z2=s.z2,s.z2+=k):I!=null&&(s.z2=I,this._z2=null);var $=o&&o.useNameLabel;pa(s,p,{labelFetcher:u,labelDataIndex:i,defaultText:A,inheritColor:x,defaultOpacity:w.opacity});function A(L){return $?r.getName(L):Nb(r,L)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var D=s.ensureState("emphasis");D.style=l,s.ensureState("select").style=f,s.ensureState("blur").style=c;var P=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;D.scaleX=this._sizeX*P,D.scaleY=this._sizeY*P,this.setSymbolScale(1),aa(this,d,h,v)},t.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},t.prototype.fadeOut=function(r,i,n){var a=this.childAt(0),o=we(this).dataIndex,s=n&&n.animation;if(this.silent=a.silent=!0,n&&n.fadeLabel){var u=a.getTextContent();u&&xf(u,{style:{opacity:0}},i,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();xf(a,{style:{opacity:0},scaleX:0,scaleY:0},i,{dataIndex:o,cb:r,removeOpt:s})},t.getSymbolSize=function(r,i){return yb(r.getItemVisual(i,"symbolSize"))},t.getSymbolZ2=function(r,i){return r.getItemVisual(i,"z2")},t})(ut);function d3(e,t){this.parent.drift(e,t)}function xc(e,t,r,i){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(i&&i.isIgnore&&i.isIgnore(r))&&!(i&&i.clipShape&&!i.clipShape.contain(t[0],t[1]))&&e.getItemVisual(r,"symbol")!=="none"}function Rx(e){return e!=null&&!ne(e)&&(e={isIgnore:e}),e||{}}function Nx(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:ui(t),cursorStyle:t.get("cursor")}}function Ux(e,t,r,i,n,a,o){var s=new e(t,r,i,n);return s.setPosition(a),t.setItemGraphicEl(r,s),o.add(s),s}var ZL=(function(){function e(t){this.group=new ut,this._SymbolCtor=t||Ub}return e.prototype.updateData=function(t,r){this._progressiveEls=null,r=Rx(r);var i=this.group,n=t.hostModel,a=this._data,o=this._SymbolCtor,s=r.disableAnimation,u=this._seriesScope=Nx(t),l={disableAnimation:s},c=r.getSymbolPoint||function(f){return t.getItemLayout(f)};a||i.removeAll(),t.diff(a).add(function(f){var d=c(f);xc(t,d,f,r)&&Ux(o,t,f,u,l,d,i)}).update(function(f,d){var h=a.getItemGraphicEl(d),v=c(f);if(!xc(t,v,f,r)){i.remove(h);return}var p=t.getItemVisual(f,"symbol")||"circle",g=h&&h.getSymbolType&&h.getSymbolType();if(!h||g&&g!==p)i.remove(h),h=new o(t,f,u,l),h.setPosition(v);else{h.updateData(t,f,u,l);var m={x:v[0],y:v[1]};s?h.attr(m):lt(h,m,n)}i.add(h),t.setItemGraphicEl(f,h)}).remove(function(f){var d=a.getItemGraphicEl(f);d&&d.fadeOut(function(){i.remove(d)},n)}).execute(),this._getSymbolPoint=c,this._data=t},e.prototype.updateLayout=function(t){var r=this._data;if(r)for(var i=this,n=r.getStore(),a=0,o=n.count();a<o;a++){var s=r.getItemGraphicEl(a),u=i._getSymbolPoint(a);xc(r,u,a,t)?(s=s||Ux(i._SymbolCtor,r,a,i._seriesScope,{disableAnimation:!0},u,i.group),s.stopAnimation(),s.setPosition(u),s.markRedraw()):s&&(i.group.remove(s),r.setItemGraphicEl(a,null))}},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Nx(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r,i,n){this._progressiveEls=[],n=Rx(n);function a(l){l.isGroup||(l.incremental=i,l.ensureState("emphasis").hoverLayer=$h)}for(var o=t.start;o<t.end;o++){var s=r.getItemLayout(o);if(xc(r,s,o,n)){var u=new this._SymbolCtor(r,o,this._seriesScope);u.traverse(a),u.setPosition(s),this.group.add(u),r.setItemGraphicEl(o,u),this._progressiveEls.push(u)}}},e.prototype.eachRendered=function(t){$l(this._progressiveEls||this.group,t)},e.prototype.remove=function(t){var r=this.group,i=this._data;i&&t?i.eachItemGraphicEl(function(n){n.fadeOut(function(){r.remove(n)},i.hostModel)}):r.removeAll()},e})();function VL(e,t,r){var i=e.getBaseAxis(),n=e.getOtherAxis(i),a=h3(n,r),o=i.dim,s=n.dim,u=t.mapDimension(s),l=t.mapDimension(o),c=s==="x"||s==="radius"?1:0,f=Q(e.dimensions,function(v){return t.mapDimension(v)}),d=!1,h=t.getCalculationInfo("stackResultDimension");return ua(t,f[0])&&(d=!0,f[0]=h),ua(t,f[1])&&(d=!0,f[1]=h),{dataDimsForPoint:f,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!d,valueDim:u,baseDim:l,baseDataOffset:c,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function h3(e,t){var r=0,i=e.scale.getExtent();return t==="start"?r=i[0]:t==="end"?r=i[1]:Re(t)&&!isNaN(t)?r=t:i[0]>0?r=i[0]:i[1]<0&&(r=i[1]),r}function GL(e,t,r,i){var n=NaN;e.stacked&&(n=r.get(r.getCalculationInfo("stackedOverDimension"),i)),isNaN(n)&&(n=e.valueStart);var a=e.baseDataOffset,o=[];return o[a]=r.get(e.baseDim,i),o[1-a]=n,t.dataToPoint(o)}function Sr(e,t){return!isFinite(e)||!isFinite(t)}var v3=typeof Float32Array!==Zo?Float32Array:void 0,p3=typeof Float64Array!==Zo?Float64Array:void 0;function _n(e){return Bb({ctor:v3},e).arr}function Bb(e,t){var r=e.arr,i=e.ctor;if(t>pw&&(t=pw),!r||e.typed&&r.length<t){var n=void 0;if(i)try{n=new i(t),e.typed=!0,r&&n.set(r)}catch{}if(!n&&(n=[],e.typed=!1,r))for(var a=0,o=r.length;a<o;a++)n[a]=r[a];e.arr=n}return e}function g3(e,t){var r=[];return t.diff(e).add(function(i){r.push({cmd:"+",idx:i})}).update(function(i,n){r.push({cmd:"=",idx:n,idx1:i})}).remove(function(i){r.push({cmd:"-",idx:i})}).execute(),r}function m3(e,t,r,i,n,a,o,s){for(var u=g3(e,t),l=[],c=[],f=[],d=[],h=[],v=[],p=[],g=VL(n,t,o),m=e.getLayout("points")||[],y=t.getLayout("points")||[],_=0;_<u.length;_++){var b=u[_],S=!0,w=void 0,x=void 0;switch(b.cmd){case"=":w=b.idx*2,x=b.idx1*2;var T=m[w],k=m[w+1],I=y[x],$=y[x+1];(isNaN(T)||isNaN(k))&&(T=I,k=$),l.push(T,k),c.push(I,$),f.push(r[w],r[w+1]),d.push(i[x],i[x+1]),p.push(t.getRawIndex(b.idx1));break;case"+":var A=b.idx,D=g.dataDimsForPoint,P=n.dataToPoint([t.get(D[0],A),t.get(D[1],A)]);x=A*2,l.push(P[0],P[1]),c.push(y[x],y[x+1]);var L=GL(g,n,t,A);f.push(L[0],L[1]),d.push(i[x],i[x+1]),p.push(t.getRawIndex(A));break;case"-":S=!1}S&&(h.push(b),v.push(v.length))}v.sort(function(ce,ye){return p[ce]-p[ye]});for(var z=l.length,B=_n(z),N=_n(z),F=_n(z),Z=_n(z),G=[],_=0;_<v.length;_++){var W=v[_],ee=_*2,K=W*2;B[ee]=l[K],B[ee+1]=l[K+1],N[ee]=c[K],N[ee+1]=c[K+1],F[ee]=f[K],F[ee+1]=f[K+1],Z[ee]=d[K],Z[ee+1]=d[K+1],G[_]=h[W]}return{current:B,next:N,stackedOnCurrent:F,stackedOnNext:Z,status:G}}var Un=Math.min,Bn=Math.max;function Jg(e,t,r,i,n,a,o,s,u){for(var l,c,f,d,h,v,p=r,g=0;g<i;g++){var m=t[p*2],y=t[p*2+1];if(p>=n||p<0)break;if(Sr(m,y)){if(u){p+=a;continue}break}if(p===r)e[a>0?"moveTo":"lineTo"](m,y),f=m,d=y;else{var _=m-l,b=y-c;if(_*_+b*b<.5){p+=a;continue}if(o>0){for(var S=p+a,w=t[S*2],x=t[S*2+1];w===m&&x===y&&g<i;)g++,S+=a,p+=a,w=t[S*2],x=t[S*2+1],m=t[p*2],y=t[p*2+1],_=m-l,b=y-c;var T=g+1;if(u)for(;Sr(w,x)&&T<i;)T++,S+=a,w=t[S*2],x=t[S*2+1];var k=.5,I=0,$=0,A=void 0,D=void 0;if(T>=i||Sr(w,x))h=m,v=y;else{I=w-l,$=x-c;var P=m-l,L=w-m,z=y-c,B=x-y,N=void 0,F=void 0;if(s==="x"){N=Math.abs(P),F=Math.abs(L);var Z=I>0?1:-1;h=m-Z*N*o,v=y,A=m+Z*F*o,D=y}else if(s==="y"){N=Math.abs(z),F=Math.abs(B);var G=$>0?1:-1;h=m,v=y-G*N*o,A=m,D=y+G*F*o}else N=Math.sqrt(P*P+z*z),F=Math.sqrt(L*L+B*B),k=F/(F+N),h=m-I*o*(1-k),v=y-$*o*(1-k),A=m+I*o*k,D=y+$*o*k,A=Un(A,Bn(w,m)),D=Un(D,Bn(x,y)),A=Bn(A,Un(w,m)),D=Bn(D,Un(x,y)),I=A-m,$=D-y,h=m-I*N/F,v=y-$*N/F,h=Un(h,Bn(l,m)),v=Un(v,Bn(c,y)),h=Bn(h,Un(l,m)),v=Bn(v,Un(c,y)),I=m-h,$=y-v,A=m+I*F/N,D=y+$*F/N}e.bezierCurveTo(f,d,h,v,m,y),f=A,d=D}else e.lineTo(m,y)}l=m,c=y,p+=a}return g}var HL=(function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e})(),y3=(function(e){H(t,e);function t(r){var i=e.call(this,r)||this;return i.type="ec-polyline",i}return t.prototype.getDefaultStyle=function(){return{stroke:re.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new HL},t.prototype.buildPath=function(r,i){var n=i.points,a=0,o=n.length/2;if(i.connectNulls){for(;o>0&&Sr(n[o*2-2],n[o*2-1]);o--);for(;a<o&&Sr(n[a*2],n[a*2+1]);a++);}for(;a<o;)a+=Jg(r,n,a,o,o,1,i.smooth,i.smoothMonotone,i.connectNulls)+1},t.prototype.getPointOn=function(r,i){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n=this.path,a=n.data,o=Cn.CMD,s,u,l=i==="x",c=[],f=0;f<a.length;){var d=a[f++],h=void 0,v=void 0,p=void 0,g=void 0,m=void 0,y=void 0,_=void 0;switch(d){case o.M:s=a[f++],u=a[f++];break;case o.L:if(h=a[f++],v=a[f++],_=l?(r-s)/(h-s):(r-u)/(v-u),_<=1&&_>=0){var b=l?(v-u)*_+u:(h-s)*_+s;return l?[r,b]:[b,r]}s=h,u=v;break;case o.C:h=a[f++],v=a[f++],p=a[f++],g=a[f++],m=a[f++],y=a[f++];var S=l?ff(s,h,p,m,r,c):ff(u,v,g,y,r,c);if(S>0)for(var w=0;w<S;w++){var x=c[w];if(x<=1&&x>=0){var b=l?dt(u,v,g,y,x):dt(s,h,p,m,x);return l?[r,b]:[b,r]}}s=m,u=y;break}}},t})(Pe),_3=(function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(HL),b3=(function(e){H(t,e);function t(r){var i=e.call(this,r)||this;return i.type="ec-polygon",i}return t.prototype.getDefaultShape=function(){return new _3},t.prototype.buildPath=function(r,i){var n=i.points,a=i.stackedOnPoints,o=0,s=n.length/2,u=i.smoothMonotone;if(i.connectNulls){for(;s>0&&Sr(n[s*2-2],n[s*2-1]);s--);for(;o<s&&Sr(n[o*2],n[o*2+1]);o++);}for(;o<s;){var l=Jg(r,n,o,s,s,1,i.smooth,u,i.connectNulls);Jg(r,a,o+l-1,l,s,-1,i.stackedOnSmooth,u,i.connectNulls),o+=l+1,r.closePath()}},t})(Pe);function WL(e,t,r,i,n){var a=e.getArea(),o=a.x,s=a.y,u=a.width,l=a.height,c=r.get(["lineStyle","width"])||0;o-=c/2,s-=c/2,u+=c,l+=c,u=Math.ceil(u),o!==Math.floor(o)&&(o=Math.floor(o),u++);var f=new st({shape:{x:o,y:s,width:u,height:l}});if(t){var d=e.getBaseAxis(),h=d.isHorizontal(),v=d.inverse;h?(v&&(f.shape.x+=u),f.shape.width=0):(v||(f.shape.y+=l),f.shape.height=0);var p=le(n)?function(g){n(g,f)}:null;St(f,{shape:{width:u,height:l,x:o,y:s}},r,null,i,p)}return f}function qL(e,t,r){var i=e.getArea(),n=Ae(i.r0,1),a=Ae(i.r,1),o=new si({shape:{cx:Ae(e.cx,1),cy:Ae(e.cy,1),r0:n,r:a,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});if(t){var s=e.getBaseAxis().dim==="angle";s?o.shape.endAngle=i.startAngle:o.shape.r=n,St(o,{shape:{endAngle:i.endAngle,r:a}},r)}return o}function S3(e,t,r,i,n){if(e){if(e.type==="polar")return qL(e,t,r);if(e.type==="cartesian2d")return WL(e,t,r,i,n)}else return null;return null}function w3(e){var t=e.coordinateSystem;if(e.get("clip",!0)&&t&&(!t.shouldClip||t.shouldClip()))return t.getArea&&t.getArea(.1)}function Fb(e,t){return e.type===t}function Bx(e,t){if(e.length===t.length){for(var r=0;r<e.length;r++)if(e[r]!==t[r])return;return!0}}function Fx(e){for(var t=hr(),r=hr(),i=0;i<e.length;){var n=e[i++],a=e[i++];Sr(n,a)||(fg(t,n),fg(r,a))}return[t,r]}function jx(e,t){var r=Fx(e),i=r[0],n=r[1],a=Fx(t),o=a[0],s=a[1];return Math.max(Math.abs(i[0]-o[0]),Math.abs(n[0]-s[0]),Math.abs(i[1]-o[1]),Math.abs(n[1]-s[1]))}function Zx(e){return Re(e)?e:e?.5:0}function x3(e,t,r){if(r.valueDim==null)return[];for(var i=t.count(),n=_n(i*2),a=0;a<i;a++){var o=GL(r,e,t,a);n[a*2]=o[0],n[a*2+1]=o[1]}return n}function Fn(e,t,r,i,n){var a=r.getBaseAxis(),o=a.dim==="x"||a.dim==="radius"?0:1,s=[],u=0,l=[],c=[],f=[],d=[];if(n){for(u=0;u<e.length;u+=2){var h=t||e;Sr(h[u],h[u+1])||d.push(e[u],e[u+1])}e=d}for(u=0;u<e.length-2;u+=2)switch(f[0]=e[u+2],f[1]=e[u+3],c[0]=e[u],c[1]=e[u+1],s.push(c[0],c[1]),i){case"end":l[o]=f[o],l[1-o]=c[1-o],s.push(l[0],l[1]);break;case"middle":var v=(c[o]+f[o])/2,p=[];l[o]=p[o]=v,l[1-o]=c[1-o],p[1-o]=f[1-o],s.push(l[0],l[1]),s.push(p[0],p[1]);break;default:l[o]=c[o],l[1-o]=f[1-o],s.push(l[0],l[1])}return s.push(e[u++],e[u++]),s}function T3(e,t){var r=[],i=e.length,n,a;function o(c,f,d){var h=c.coord,v=(d-h)/(f.coord-h),p=QU(v,[c.color,f.color]);return{coord:d,color:p}}for(var s=0;s<i;s++){var u=e[s],l=u.coord;if(l<0)n=u;else if(l>t){a?r.push(o(a,u,t)):n&&r.push(o(n,u,0),o(n,u,t));break}else n&&(r.push(o(n,u,0)),n=null),r.push(u),a=u}return r}function k3(e,t,r){var i=e.getVisual("visualMeta");if(!(!i||!i.length||!e.count())&&t.type==="cartesian2d"){for(var n,a,o=i.length-1;o>=0;o--){var s=e.getDimensionInfo(i[o].dimension);if(n=s&&s.coordDim,n==="x"||n==="y"){a=i[o];break}}if(a){var u=t.getAxis(n),l=Q(a.stops,function(_){return{coord:u.toGlobalCoord(u.dataToCoord(_.value)),color:_.color}}),c=l.length,f=a.outerColors.slice();c&&l[0].coord>l[c-1].coord&&(l.reverse(),f.reverse());var d=T3(l,n==="x"?r.getWidth():r.getHeight()),h=d.length;if(!h&&c)return l[0].coord<0?f[1]?f[1]:l[c-1].color:f[0]?f[0]:l[0].color;var v=10,p=d[0].coord-v,g=d[h-1].coord+v,m=g-p;if(m<.001)return"transparent";C(d,function(_){_.offset=(_.coord-p)/m}),d.push({offset:h?d[h-1].offset:.5,color:f[1]||"transparent"}),d.unshift({offset:h?d[0].offset:.5,color:f[0]||"transparent"});var y=new xP(0,0,0,0,d,!0);return y[n]=p,y[n+"2"]=g,y}}}function I3(e,t,r){var i=e.get("showAllSymbol"),n=i==="auto";if(!(i&&!n)){var a=r.getAxesByScale("ordinal")[0];if(a&&!(n&&$3(a,t))){var o=t.mapDimension(a.dim),s={};return C(a.getViewLabels(),function(u){u.tick.offInterval||(s[Al(a.scale,u.tick)]=1)}),function(u){return!s.hasOwnProperty(t.get(o,u))}}}}function $3(e,t){var r=e.getExtent(),i=Math.abs(r[1]-r[0])/e.scale.count();isNaN(i)&&(i=0);for(var n=t.count(),a=Math.max(1,Math.round(n/5)),o=0;o<n;o+=a)if(Ub.getSymbolSize(t,o)[e.isHorizontal()?1:0]*1.5>i)return!1;return!0}function D3(e){for(var t=e.length/2;t>0&&Sr(e[t*2-2],e[t*2-1]);t--);return t-1}function Vx(e,t){return[e[t*2],e[t*2+1]]}function C3(e,t,r){for(var i=e.length/2,n=r==="x"?0:1,a,o,s=0,u=-1,l=0;l<i;l++)if(o=e[l*2+n],!Sr(o,e[l*2+1-n])){if(l===0){a=o;continue}if(a<=t&&o>=t||a>=t&&o<=t){u=l;break}s=l,a=o}return{range:[s,u],t:(t-a)/(o-a)}}function YL(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<Yt.length;t++)if(e.get([Yt[t],"endLabel","show"]))return!0;return!1}function up(e,t,r,i){if(Fb(t,"cartesian2d")){var n=i.getModel("endLabel"),a=n.get("valueAnimation"),o=i.getData(),s={lastFrameIndex:0},u=YL(i)?function(h,v){e._endLabelOnDuring(h,v,o,s,a,n,t)}:null,l=t.getBaseAxis().isHorizontal(),c=WL(t,r,i,function(){var h=e._endLabel;h&&r&&s.originalX!=null&&h.attr({x:s.originalX,y:s.originalY})},u);if(!i.get("clip",!0)){var f=c.shape,d=Math.max(f.width,f.height);l?(f.y-=d,f.height+=d*2):(f.x-=d,f.width+=d*2)}return u&&u(1,c),c}else return qL(t,r,i)}function A3(e,t){var r=t.getBaseAxis(),i=r.isHorizontal(),n=r.inverse,a=i?n?"right":"left":"center",o=i?"middle":n?"top":"bottom";return{normal:{align:e.get("align")||a,verticalAlign:e.get("verticalAlign")||o}}}var P3=(function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(){var r=new ut,i=new ZL;this.group.add(i.group),this._symbolDraw=i,this._lineGroup=r,this._changePolyState=Fe(this._changePolyState,this)},t.prototype.render=function(r,i,n){var a=r.coordinateSystem,o=this.group,s=r.getData(),u=r.getModel("lineStyle"),l=r.getModel("areaStyle"),c=s.getLayout("points")||[],f=a.type==="polar",d=this._coordSys,h=this._symbolDraw,v=this._polyline,p=this._polygon,g=this._lineGroup,m=!i.ssr&&r.get("animation"),y=!l.isEmpty(),_=l.get("origin"),b=VL(a,s,_),S=y&&x3(a,s,b),w=r.get("showSymbol"),x=r.get("connectNulls"),T=w&&!f&&I3(r,s,a),k=this._data;k&&k.eachItemGraphicEl(function(Ie,Ye){Ie.__temp&&(o.remove(Ie),k.setItemGraphicEl(Ye,null))}),w||h.remove(),o.add(g);var I=f?!1:r.get("step"),$;a&&a.getArea&&r.get("clip",!0)&&($=a.getArea(),$.width!=null?($.x-=.1,$.y-=.1,$.width+=.2,$.height+=.2):$.r0&&($.r0-=.5,$.r+=.5)),this._clipShapeForSymbol=$;var A=k3(s,a,n)||s.getVisual("style")[s.getVisual("drawType")];if(!(v&&d.type===a.type&&I===this._step))w&&h.updateData(s,{isIgnore:T,clipShape:$,disableAnimation:!0,getSymbolPoint:function(Ie){return[c[Ie*2],c[Ie*2+1]]}}),m&&this._initSymbolLabelAnimation(s,a,$),I&&(S&&(S=Fn(S,c,a,I,x)),c=Fn(c,null,a,I,x)),v=this._newPolyline(c),y?p=this._newPolygon(c,S):p&&(g.remove(p),p=this._polygon=null),f||this._initOrUpdateEndLabel(r,a,oa(A)),g.setClipPath(up(this,a,!0,r));else{y&&!p?p=this._newPolygon(c,S):p&&!y&&(g.remove(p),p=this._polygon=null),f||this._initOrUpdateEndLabel(r,a,oa(A));var D=g.getClipPath();if(D){var P=up(this,a,!1,r);St(D,{shape:P.shape},r)}else g.setClipPath(up(this,a,!0,r));w&&h.updateData(s,{isIgnore:T,clipShape:$,disableAnimation:!0,getSymbolPoint:function(Ie){return[c[Ie*2],c[Ie*2+1]]}}),(!Bx(this._stackedOnPoints,S)||!Bx(this._points,c))&&(m?this._doUpdateAnimation(s,S,a,n,I,_,x):(I&&(S&&(S=Fn(S,c,a,I,x)),c=Fn(c,null,a,I,x)),v.setShape({points:c}),p&&p.setShape({points:c,stackedOnPoints:S})))}var L=r.getModel("emphasis"),z=L.get("focus"),B=L.get("blurScope"),N=L.get("disabled");if(v.useStyle(je(u.getLineStyle(),{fill:"none",stroke:A,lineJoin:"bevel"})),au(v,r,"lineStyle"),v.style.lineWidth>0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var F=v.getState("emphasis").style;F.lineWidth=+v.style.lineWidth+1}we(v).seriesIndex=r.seriesIndex,aa(v,z,B,N);var Z=Zx(r.get("smooth")),G=r.get("smoothMonotone");if(v.setShape({smooth:Z,smoothMonotone:G,connectNulls:x}),p){var W=s.getCalculationInfo("stackedOnSeries"),ee=0;p.useStyle(je(l.getAreaStyle(),{fill:A,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),W&&(ee=Zx(W.get("smooth"))),p.setShape({smooth:Z,stackedOnSmooth:ee,smoothMonotone:G,connectNulls:x}),au(p,r,"areaStyle"),we(p).seriesIndex=r.seriesIndex,aa(p,z,B,N)}var K=this._changePolyState;s.eachItemGraphicEl(function(Ie){Ie&&(Ie.onHoverStateChange=K)}),this._polyline.onHoverStateChange=K,this._data=s,this._coordSys=a,this._stackedOnPoints=S,this._points=c,this._step=I,this._valueOrigin=_;var ce=r.get("triggerEvent"),ye=r.get("triggerLineEvent"),tt=ye===!0||ce===!0||ce==="line",Je=ye===!0||ce===!0||ce==="area";this.packEventData(r,v,tt),p&&this.packEventData(r,p,Je)},t.prototype.packEventData=function(r,i,n){we(i).eventData=n?{componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line",selfType:i===this._polygon?"area":"line"}:null},t.prototype.highlight=function(r,i,n,a){var o=r.getData(),s=ia(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var u=o.getLayout("points"),l=o.getItemGraphicEl(s);if(!l){var c=u[s*2],f=u[s*2+1];if(Sr(c,f)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,f))return;var d=r.get("zlevel")||0,h=r.get("z")||0;l=new Ub(o,s),l.x=c,l.y=f,l.setZ(d,h);var v=l.getSymbolPath().getTextContent();v&&(v.zlevel=d,v.z=h,v.z2=this._polyline.z2+1),l.__temp=!0,o.setItemGraphicEl(s,l),l.stopSymbolAnimation(!0),this.group.add(l)}l.highlight()}else Ht.prototype.highlight.call(this,r,i,n,a)},t.prototype.downplay=function(r,i,n,a){var o=r.getData(),s=ia(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var u=o.getItemGraphicEl(s);u&&(u.__temp?(o.setItemGraphicEl(s,null),this.group.remove(u)):u.downplay())}else Ht.prototype.downplay.call(this,r,i,n,a)},t.prototype._changePolyState=function(r){var i=this._polygon;Fw(this._polyline,r),i&&Fw(i,r)},t.prototype._newPolyline=function(r){var i=this._polyline;return i&&this._lineGroup.remove(i),i=new y3({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(i),this._polyline=i,i},t.prototype._newPolygon=function(r,i){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new b3({shape:{points:r,stackedOnPoints:i},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(r,i,n){var a,o,s=i.getBaseAxis(),u=s.inverse;i.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):i.type==="polar"&&(a=s.dim==="angle",o=!0);var l=r.hostModel,c=l.get("animationDuration");le(c)&&(c=c(null));var f=l.get("animationDelay")||0,d=le(f)?f(null):f;r.eachItemGraphicEl(function(h,v){var p=h;if(p){var g=[h.x,h.y],m=void 0,y=void 0,_=void 0;if(n)if(o){var b=n,S=i.pointToCoord(g);a?(m=b.startAngle,y=b.endAngle,_=-S[1]/180*Math.PI):(m=b.r0,y=b.r,_=S[0])}else{var w=n;a?(m=w.x,y=w.x+w.width,_=h.x):(m=w.y+w.height,y=w.y,_=h.y)}var x=y===m?0:(_-m)/(y-m);u&&(x=1-x);var T=le(f)?f(v):c*x+d,k=p.getSymbolPath(),I=k.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),I&&I.animateFrom({style:{opacity:0}},{duration:300,delay:T}),k.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(r,i,n){var a=r.getModel("endLabel");if(YL(r)){var o=r.getData(),s=this._polyline,u=o.getLayout("points");if(!u){s.removeTextContent(),this._endLabel=null;return}var l=this._endLabel;l||(l=this._endLabel=new At({z2:200}),l.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=D3(u);c>=0&&(pa(s,ui(r,"endLabel"),{inheritColor:n,labelFetcher:r,labelDataIndex:c,defaultText:function(f,d,h){return h!=null?jL(o,h):Nb(o,f)},enableTextSetter:!0},A3(a,i)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(r,i,n,a,o,s,u){var l=this._endLabel,c=this._polyline;if(l){r<1&&a.originalX==null&&(a.originalX=l.x,a.originalY=l.y);var f=n.getLayout("points"),d=n.hostModel,h=d.get("connectNulls"),v=s.get("precision"),p=s.get("distance")||0,g=u.getBaseAxis(),m=g.isHorizontal(),y=g.inverse,_=i.shape,b=y?m?_.x:_.y+_.height:m?_.x+_.width:_.y,S=(m?p:0)*(y?-1:1),w=(m?0:-p)*(y?-1:1),x=m?"x":"y",T=C3(f,b,x),k=T.range,I=k[1]-k[0],$=void 0;if(I>=1){if(I>1&&!h){var A=Vx(f,k[0]);l.attr({x:A[0]+S,y:A[1]+w}),o&&($=d.getRawValue(k[0]))}else{var A=c.getPointOn(b,x);A&&l.attr({x:A[0]+S,y:A[1]+w});var D=d.getRawValue(k[0]),P=d.getRawValue(k[1]);o&&($=RA(n,v,D,P,T.t))}a.lastFrameIndex=k[0]}else{var L=r===1||a.lastFrameIndex>0?k[0]:0,A=Vx(f,L);o&&($=d.getRawValue(L)),l.attr({x:A[0]+S,y:A[1]+w})}if(o){var z=Go(l);typeof z.setLabelText=="function"&&z.setLabelText($)}}},t.prototype._doUpdateAnimation=function(r,i,n,a,o,s,u){var l=this._polyline,c=this._polygon,f=r.hostModel,d=m3(this._data,r,this._stackedOnPoints,i,this._coordSys,n,this._valueOrigin),h=d.current,v=d.stackedOnCurrent,p=d.next,g=d.stackedOnNext;if(o&&(v=Fn(d.stackedOnCurrent,d.current,n,o,u),h=Fn(d.current,null,n,o,u),g=Fn(d.stackedOnNext,d.next,n,o,u),p=Fn(d.next,null,n,o,u)),jx(h,p)>3e3||c&&jx(v,g)>3e3){l.stopAnimation(),l.setShape({points:p}),c&&(c.stopAnimation(),c.setShape({points:p,stackedOnPoints:g}));return}l.shape.__points=d.current,l.shape.points=h;var m={shape:{points:p}};d.current!==h&&(m.shape.__points=d.next),l.stopAnimation(),lt(l,m,f),c&&(c.setShape({points:h,stackedOnPoints:v}),c.stopAnimation(),lt(c,{shape:{stackedOnPoints:g}},f),l.shape.points!==c.shape.points&&(c.shape.points=l.shape.points));for(var y=[],_=d.status,b=0;b<_.length;b++){var S=_[b].cmd;if(S==="="){var w=r.getItemGraphicEl(_[b].idx1);w&&y.push({el:w,ptIdx:b})}}l.animators&&l.animators.length&&l.animators[0].during(function(){c&&c.dirtyShape();for(var x=l.shape.__points,T=0;T<y.length;T++){var k=y[T].el,I=y[T].ptIdx*2;k.x=x[I],k.y=x[I+1],k.markRedraw()}})},t.prototype.remove=function(r){var i=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(a,o){a.__temp&&(i.remove(a),n.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t})(Ht);function jb(e,t){return{seriesType:e,plan:gb(),reset:function(r){var i=r.getData(),n=r.coordinateSystem,a=r.pipelineContext,o=t||a.large;if(n){var s=Q(n.dimensions,function(h){return i.mapDimension(h)}).slice(0,2),u=s.length,l=i.getCalculationInfo("stackResultDimension");ua(i,s[0])&&(s[0]=l),ua(i,s[1])&&(s[1]=l);var c=i.getStore(),f=i.getDimensionIndex(s[0]),d=i.getDimensionIndex(s[1]);return u&&{progress:function(h,v){for(var p=h.end-h.start,g=o&&_n(p*u),m=[],y=[],_=h.start,b=0;_<h.end;_++){var S=void 0;if(u===1){var w=c.get(f,_);S=n.dataToPoint(w,null,y)}else m[0]=c.get(f,_),m[1]=c.get(d,_),S=n.dataToPoint(m,null,y);o?(g[b++]=S[0],g[b++]=S[1]):v.setItemLayout(_,S.slice())}o&&(v.setLayout("points",g),v.setLayout("pointsRange",{start:h.start,end:h.end}))}}}}}}var M3={average:function(e){for(var t=0,r=0,i=0;i<e.length;i++)isNaN(e[i])||(t+=e[i],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]}},L3=function(e){return Math.round(e.length/2)};function XL(e){return{seriesType:e,reset:function(t,r,i){var n=t.getData(),a=t.get("sampling"),o=t.coordinateSystem,s=n.count();if(s>10&&o.type==="cartesian2d"&&a){var u=o.getBaseAxis(),l=o.getOtherAxis(u),c=u.getExtent(),f=i.getDevicePixelRatio(),d=Math.abs(c[1]-c[0])*(f||1),h=Math.round(s/d);if(isFinite(h)&&h>1){a==="lttb"?t.setData(n.lttbDownSample(n.mapDimension(l.dim),1/h)):a==="minmax"&&t.setData(n.minmaxDownSample(n.mapDimension(l.dim),1/h));var v=void 0;te(a)?v=M3[a]:le(a)&&(v=a),v&&t.setData(n.downSample(n.mapDimension(l.dim),1/h,v,L3))}}}}}function O3(e){e.registerChartView(P3),e.registerSeriesModel(f3),e.registerLayout(jb("line",!0)),e.registerVisual({seriesType:"line",reset:function(t){var r=t.getData(),i=t.getModel("lineStyle").getLineStyle();i&&!i.stroke&&(i.stroke=r.getVisual("style").fill),r.setVisual("legendLineStyle",i)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,XL("line"))}var E3=(function(e){H(t,e);function t(r,i,n,a,o){var s=e.call(this,r,i,n)||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 i=this.getExtent();return i[0]=this.toGlobalCoord(i[0]),i[1]=this.toGlobalCoord(i[1]),r&&i[0]>i[1]&&i.reverse(),i},t.prototype.pointToData=function(r,i){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),i)},t.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},t})(WH),z3=null;function R3(){return z3}var N3="expandAxisBreak",Wn=Math.PI,U3=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],B3=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],So=ke(),KL=ke(),JL=(function(){function e(t){this.recordMap={},this.resolveAxisNameOverlap=t}return e.prototype.ensureRecord=function(t){var r=t.axis.dim,i=t.componentIndex,n=this.recordMap,a=n[r]||(n[r]=[]);return a[i]||(a[i]={ready:{}})},e})();function F3(e,t,r,i){var n=r.axis,a=t.ensureRecord(r),o=[],s,u=Zb(e.axisName)&&bo(e.nameLocation);C(i,function(v){var p=ii(v);if(!(!p||p.label.ignore)){o.push(p);var g=a.transGroup;u&&(g.transform?Bo(vs,g.transform):bl(vs),p.transform&&Cs(vs,vs,p.transform),fe.copy(Tc,p.localRect),Tc.applyTransform(vs),s?s.union(Tc):fe.copy(s=new fe(0,0,0,0),Tc))}});var l=Math.abs(a.dirVec.x)>.1?"x":"y",c=a.transGroup[l];if(o.sort(function(v,p){return Math.abs(v.label[l]-c)-Math.abs(p.label[l]-c)}),u&&s){var f=n.getExtent(),d=Math.min(f[0],f[1]),h=Math.max(f[0],f[1])-d;s.union(new fe(d,0,h,1))}a.stOccupiedRect=s,a.labelInfoList=o}var vs=nn(),Tc=new fe(0,0,0,0),QL=function(e,t,r,i,n,a){if(bo(e.nameLocation)){var o=a.stOccupiedRect;o&&eO(n3({},o,a.transGroup.transform),i,n)}else tO(a.labelInfoList,a.dirVec,i,n)};function eO(e,t,r){var i=new de;Rb(e,t,i,{direction:Math.atan2(r.y,r.x),bidirectional:!1,touchThreshold:.05})&&i3(t,i)}function tO(e,t,r,i){for(var n=de.dot(i,t)>=0,a=0,o=e.length;a<o;a++){var s=e[n?a:o-1-a];s.label.ignore||eO(s,r,i)}}var Kn=(function(){function e(t,r,i,n){this.group=new ut,this._axisModel=t,this._api=r,this._local={},this._shared=n||new JL(QL),this._resetCfgDetermined(i)}return e.prototype.updateCfg=function(t){var r=this._cfg.raw;r.position=t.position,r.labelOffset=t.labelOffset,this._resetCfgDetermined(r)},e.prototype.__getRawCfg=function(){return this._cfg.raw},e.prototype._resetCfgDetermined=function(t){var r=this._axisModel,i=r.getDefaultOption?r.getDefaultOption():{},n=J(t.axisName,r.get("name")),a=r.get("nameMoveOverlap");(a==null||a==="auto")&&(a=J(t.defaultNameMoveOverlap,!0));var o={raw:t,position:t.position,rotation:t.rotation,nameDirection:J(t.nameDirection,1),tickDirection:J(t.tickDirection,1),labelDirection:J(t.labelDirection,1),labelOffset:J(t.labelOffset,0),silent:J(t.silent,!0),axisName:n,nameLocation:Gi(r.get("nameLocation"),i.nameLocation,"end"),shouldNameMoveOverlap:Zb(n)&&a,optionHideOverlap:r.get(["axisLabel","hideOverlap"]),showMinorTicks:r.get(["minorTick","show"])};this._cfg=o;var s=new ut({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s;var u=this._shared.ensureRecord(r);u.transGroup=this._transformGroup,u.dirVec=new de(Math.cos(-o.rotation),Math.sin(-o.rotation))},e.prototype.build=function(t,r){var i=this;return t||(t={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),C(j3,function(n){t[n]&&Z3[n](i._cfg,i._local,i._shared,i._axisModel,i.group,i._transformGroup,i._api,r||{})}),this},e.innerTextLayout=function(t,r,i){var n=CA(r-t),a,o;return mf(n)?(o=i>0?"top":"bottom",a="center"):mf(n-Wn)?(o=i>0?"bottom":"top",a="center"):(o="middle",n>0&&n<Wn?a=i>0?"right":"left":a=i>0?"left":"right"),{rotation:n,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})(),j3=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],Z3={axisLine:function(e,t,r,i,n,a,o){var s=i.get(["axisLine","show"]);if(s==="auto"&&(s=!0,e.raw.axisLineAutoShow!=null&&(s=!!e.raw.axisLineAutoShow)),!!s){var u=i.axis.getExtent(),l=a.transform,c=[u[0],0],f=[u[1],0],d=c[0]>f[0];l&&(br(c,c,l),br(f,f,l));var h=V({lineCap:"round"},i.getModel(["axisLine","lineStyle"]).getLineStyle()),v={strokeContainThreshold:e.raw.strokeContainThreshold||5,silent:!0,z2:1,style:h};if(i.get(["axisLine","breakLine"])&&If(i.axis.scale))R3().buildAxisBreakLine(i,n,a,v);else{var p=new An(V({shape:{x1:c[0],y1:c[1],x2:f[0],y2:f[1]}},v));ou(p.shape,p.style.lineWidth),p.anid="line",n.add(p)}var g=i.get(["axisLine","symbol"]);if(g!=null){var m=i.get(["axisLine","symbolSize"]);te(g)&&(g=[g,g]),(te(m)||Re(m))&&(m=[m,m]);var y=Rh(i.get(["axisLine","symbolOffset"])||0,m),_=m[0],b=m[1];C([{rotate:e.rotation+Math.PI/2,offset:y[0],r:0},{rotate:e.rotation-Math.PI/2,offset:y[1],r:Math.sqrt((c[0]-f[0])*(c[0]-f[0])+(c[1]-f[1])*(c[1]-f[1]))}],function(S,w){if(g[w]!=="none"&&g[w]!=null){var x=ni(g[w],-_/2,-b/2,_,b,h.stroke,!0),T=S.r+S.offset,k=d?f:c;x.attr({rotation:S.rotate,x:k[0]+T*Math.cos(e.rotation),y:k[1]-T*Math.sin(e.rotation),silent:!0,z2:11}),n.add(x)}})}}},axisTickLabelEstimate:function(e,t,r,i,n,a,o,s){var u=Hx(t,n,s);u&&Gx(e,t,r,i,n,a,o,Ur.estimate)},axisTickLabelDetermine:function(e,t,r,i,n,a,o,s){var u=Hx(t,n,s);u&&Gx(e,t,r,i,n,a,o,Ur.determine);var l=W3(e,n,a,i);H3(e,t.labelLayoutList,l),q3(e,n,a,i,e.tickDirection)},axisName:function(e,t,r,i,n,a,o,s){var u=r.ensureRecord(i);t.nameEl&&(n.remove(t.nameEl),t.nameEl=u.nameLayout=u.nameLocation=null);var l=e.axisName;if(Zb(l)){var c=e.nameLocation,f=e.nameDirection,d=i.getModel("nameTextStyle"),h=i.get("nameGap")||0,v=i.axis.getExtent(),p=i.axis.inverse?-1:1,g=new de(0,0),m=new de(0,0);c==="start"?(g.x=v[0]-p*h,m.x=-p):c==="end"?(g.x=v[1]+p*h,m.x=p):(g.x=(v[0]+v[1])/2,g.y=e.labelOffset+f*h,m.y=f);var y=nn();m.transform(_0(y,y,e.rotation));var _=i.get("nameRotate");_!=null&&(_=_*Wn/180);var b,S;bo(c)?b=Kn.innerTextLayout(e.rotation,_??e.rotation,f):(b=V3(e.rotation,c,_||0,v),S=e.raw.axisNameAvailableWidth,S!=null&&(S=Math.abs(S/Math.sin(b.rotation)),!isFinite(S)&&(S=null)));var w=d.getFont(),x=i.get("nameTruncate",!0)||{},T=x.ellipsis,k=qs(e.raw.nameTruncateMaxWidth,x.maxWidth,S),I=s.nameMarginLevel||0,$=new At({x:g.x,y:g.y,rotation:b.rotation,silent:Kn.isLabelSilent(i),style:mo(d,{text:l,font:w,overflow:"truncate",width:k,ellipsis:T,fill:d.getTextColor()||i.get(["axisLine","lineStyle","color"]),align:d.get("align")||b.textAlign,verticalAlign:d.get("verticalAlign")||b.textVerticalAlign}),z2:1});if(Dh({el:$,componentModel:i,itemName:l}),$.__fullText=l,$.anid="name",i.get("triggerEvent")){var A=Kn.makeAxisEventDataBase(i);A.targetType="axisName",A.name=l,we($).eventData=A}a.add($),$.updateTransform(),t.nameEl=$;var D=u.nameLayout=ii({label:$,priority:$.z2,defaultAttr:{ignore:$.ignore},marginDefault:bo(c)?U3[I]:B3[I]});if(u.nameLocation=c,n.add($),$.decomposeTransform(),e.shouldNameMoveOverlap&&D){var P=r.ensureRecord(i);r.resolveAxisNameOverlap(e,r,i,D,m,P)}}}};function Gx(e,t,r,i,n,a,o,s){nO(t)||Y3(e,t,n,s,i,o);var u=t.labelLayoutList;X3(e,i,u,a),e.rotation;var l=e.optionHideOverlap;G3(i,u,l),l&&FL(ot(u,function(c){return c&&!c.label.ignore})),F3(e,r,i,u)}function V3(e,t,r,i){var n=CA(r-e),a,o,s=i[0]>i[1],u=t==="start"&&!s||t!=="start"&&s;return mf(n-Wn/2)?(o=u?"bottom":"top",a="center"):mf(n-Wn*1.5)?(o=u?"top":"bottom",a="center"):(o="middle",n<Wn*1.5&&n>Wn/2?a=u?"left":"right":a=u?"right":"left"),{rotation:n,textAlign:a,textVerticalAlign:o}}function G3(e,t,r){var i=e.axis,n=e.get(["axisLabel","customValues"]);if(tH(i))return;function a(l,c,f){var d=ii(t[c]),h=ii(t[f]),v=i.scale;if(!(!d||!h)){if(l==null){if(!r&&n)return;var p=So(d.label).labelInfo.tick;if(Db(v)&&p.notNice||Vr(v)&&p.offInterval){Ra(d.label);return}}if(l===!1||d.suggestIgnore){Ra(d.label);return}if(h.suggestIgnore){Ra(h.label);return}var g=.1;if(!r){var m=[0,0,0,0];d=Xg({marginForce:m},d),h=Xg({marginForce:m},h)}Rb(d,h,null,{touchThreshold:g})&&Ra(l?h.label:d.label)}}var o=e.get(["axisLabel","showMinLabel"]),s=e.get(["axisLabel","showMaxLabel"]),u=t.length;a(o,0,1),a(s,u-1,u-2)}function H3(e,t,r){e.showMinorTicks||C(t,function(i){if(i&&i.label.ignore)for(var n=0;n<r.length;n++){var a=r[n],o=KL(a),s=So(i.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.labelInfo.tick.value){Ra(a);return}}})}function Ra(e){e&&(e.ignore=!0)}function rO(e,t,r,i,n){for(var a=[],o=[],s=[],u=0;u<e.length;u++){var l=e[u].coord;o[0]=l,o[1]=0,s[0]=l,s[1]=r,t&&(br(o,o,t),br(s,s,t));var c=new An({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});ou(c.shape,c.style.lineWidth),c.anid=n+"_"+e[u].tickValue,a.push(c);var f=KL(c);f.onBand=!!e[u].onBand,f.tickValue=e[u].tickValue}return a}function W3(e,t,r,i){var n=i.axis,a=i.getModel("axisTick"),o=a.get("show");if(o==="auto"&&(o=!0,e.raw.axisTickAutoShow!=null&&(o=!!e.raw.axisTickAutoShow)),!o||n.scale.isBlank())return[];for(var s=a.getModel("lineStyle"),u=e.tickDirection*a.get("length"),l=n.getTicksCoords(),c=rO(l,r.transform,u,je(s.getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])}),"ticks"),f=0;f<c.length;f++)t.add(c[f]);return c}function q3(e,t,r,i,n){var a=i.axis,o=i.getModel("minorTick");if(!(!e.showMinorTicks||a.scale.isBlank())){var s=a.getMinorTicksCoords();if(s.length)for(var u=o.getModel("lineStyle"),l=n*o.get("length"),c=je(u.getLineStyle(),je(i.getModel("axisTick").getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])})),f=0;f<s.length;f++)for(var d=rO(s[f],r.transform,l,c,"minorticks_"+f),h=0;h<d.length;h++)t.add(d[h])}}function Hx(e,t,r){if(nO(e)){var i=e.axisLabelsCreationContext,n=i.out.noPxChangeTryDetermine;if(r.noPxChange){for(var a=!0,o=0;o<n.length;o++)a=a&&n[o]();if(a)return!1}n.length&&(t.remove(e.labelGroup),Qg(e,null,null,null))}return!0}function Y3(e,t,r,i,n,a){var o=n.axis,s=qs(e.raw.axisLabelShow,n.get(["axisLabel","show"])),u=new ut;r.add(u);var l=Rf(i);if(!s||o.scale.isBlank()){Qg(t,[],u,l);return}var c=n.getModel("axisLabel"),f=o.getViewLabels(l),d=(qs(e.raw.labelRotate,c.get("rotate"))||0)*Wn/180,h=Kn.innerTextLayout(e.rotation,d,e.labelDirection),v=n.getCategories&&n.getCategories(!0),p=[],g=n.get("triggerEvent"),m=1/0,y=-1/0;C(f,function(b,S){var w,x=b.tick,T=b.formattedLabel,k=b.rawLabel,I=c,$=Al(o.scale,x);if(v&&v[$]){var A=v[$];ne(A)&&A.textStyle&&(I=new et(A.textStyle,c,n.ecModel))}var D=I.getTextColor()||n.get(["axisLine","lineStyle","color"]),P=I.getShallow("align",!0)||h.textAlign,L=J(I.getShallow("alignMinLabel",!0),P),z=J(I.getShallow("alignMaxLabel",!0),P),B=I.getShallow("verticalAlign",!0)||I.getShallow("baseline",!0)||h.textVerticalAlign,N=J(I.getShallow("verticalAlignMinLabel",!0),B),F=J(I.getShallow("verticalAlignMaxLabel",!0),B),Z=10+(((w=x.time)===null||w===void 0?void 0:w.level)||0);m=Math.min(m,Z),y=Math.max(y,Z);var G=new At({x:0,y:0,rotation:0,silent:Kn.isLabelSilent(n),z2:Z,style:mo(I,{text:T,align:S===0?L:S===f.length-1?z:P,verticalAlign:S===0?N:S===f.length-1?F:B,fill:le(D)?D(o.type==="category"?k:o.type==="value"?$+"":$,S):D})});G.anid="label_"+$;var W=So(G);if(W.labelInfo=b,W.layoutRotation=h.rotation,Dh({el:G,componentModel:n,itemName:T,formatterParamsExtra:{isTruncated:function(){return G.isTruncated},value:k,tickIndex:S}}),g){var ee=Kn.makeAxisEventDataBase(n);ee.targetType="axisLabel",ee.value=k,ee.tickIndex=S;var K=b.tick.break;if(K){var ce=K.parsedBreak;ee.break={start:ce.vmin,end:ce.vmax}}o.type==="category"&&(ee.dataIndex=$),we(G).eventData=ee,K&&J3(n,a,G,K)}p.push(G),u.add(G)});var _=Q(p,function(b){return{label:b,priority:So(b).labelInfo.tick.break?b.z2+(y-m+1):b.z2,defaultAttr:{ignore:b.ignore}}});Qg(t,_,u,l)}function nO(e){return!!e.labelLayoutList}function Qg(e,t,r,i){e.labelLayoutList=t,e.labelGroup=r,e.axisLabelsCreationContext=i}function X3(e,t,r,i){var n=t.get(["axisLabel","margin"]);C(r,function(a,o){var s=ii(a);if(s){var u=s.label,l=So(u);s.suggestIgnore=u.ignore,u.ignore=!1,Xs(pn,K3);var c=t.axis;pn.x=c.dataToCoord(Al(c.scale,l.labelInfo.tick)),pn.y=e.labelOffset+e.labelDirection*n,pn.rotation=l.layoutRotation,i.add(pn),pn.updateTransform(),i.remove(pn),pn.decomposeTransform(),Xs(u,pn),u.markRedraw(),jf(s,!0),ii(s)}})}var pn=new st,K3=new st;function Zb(e){return!!e}function J3(e,t,r,i){r.on("click",function(n){var a={type:N3,breaks:[{start:i.parsedBreak.breakOption.start,end:i.parsedBreak.breakOption.end}]};a[e.axis.dim+"AxisIndex"]=e.componentIndex,t.dispatchAction(a)})}function Zf(e,t,r){r=r||{};var i=t.axis,n={},a=i.getAxesOnZeroOf()[0],o=i.position,s=a?"onZero":o,u=i.dim,l=[e.x,e.x+e.width,e.y,e.y+e.height],c={left:0,right:1,top:0,bottom:1,onZero:2},f=t.get("offset")||0,d=u==="x"?[l[2]-f,l[3]+f]:[l[0]-f,l[1]+f];if(a){var h=a.toGlobalCoord(a.dataToCoord(0));d[c.onZero]=Math.max(Math.min(h,d[1]),d[0])}n.position=[u==="y"?d[c[s]]:l[0],u==="x"?d[c[s]]:l[3]],n.rotation=Math.PI/2*(u==="x"?0:1);var v={top:-1,bottom:1,left:-1,right:1};n.labelDirection=n.tickDirection=n.nameDirection=v[o],n.labelOffset=a?d[c[o]]-d[c.onZero]:0,t.get(["axisTick","inside"])&&(n.tickDirection=-n.tickDirection),qs(r.labelInside,t.get(["axisLabel","inside"]))&&(n.labelDirection=-n.labelDirection);var p=t.get(["axisLabel","rotate"]);return n.labelRotate=s==="top"?-p:p,n.z2=1,n}function Q3(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function eW(e){var t={xAxisModel:null,yAxisModel:null};return C(t,function(r,i){var n=i.replace(/Model$/,""),a=e.getReferringComponents(n,gr).models[0];t[i]=a}),t}function tW(e,t,r,i,n,a){for(var o=Zf(e,r),s=!1,u=!1,l=0;l<t.length;l++)fL(t[l].getOtherAxis(r.axis).scale)&&(s=u=!0,r.axis.type==="category"&&r.axis.onBand&&(u=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=u,o.defaultNameMoveOverlap=a,new Kn(r,i,o,n)}function rW(e,t,r){var i=Zf(t,r);e.updateCfg(i)}function nW(){hH("liPosMinGap",iW)}function iW(e,t,r){var i=se(),n=r.serUids,a=r.liPosMinGap,o,s=t.axis,u=s.scale,l=u.needTransform(),c=u.getFilter?u.getFilter():null,f=pM(c);function d(_){Lb(e,t.sers,function(b){var S=b.getRawData(),w=S.getDimensionIndex(S.mapDimension(s.dim));w>=0&&_(w,b,S.getStore())})}var h=0;if(d(function(_,b,S){i.set(b.uid,1),(!n||!n.hasKey(b.uid))&&(o=!0),h+=S.count()}),(!n||n.keys().length!==i.keys().length)&&(o=!0),!o&&a!=null){t.liPosMinGap=a;return}Bb(Oi,h);var v=0;d(function(_,b,S){for(var w=0,x=S.count();w<x;++w){var T=S.get(_,w);isFinite(T)&&(!c||gM(f,T))&&(l&&(T=u.transformIn(T,null)),Oi.arr[v++]=T)}});var p=Oi.typed?Oi.arr.subarray(0,v):(Oi.arr.length=v,Oi.arr);Oi.typed?p.sort():x0(p);for(var g=1/0,m=1;m<v;++m){var y=p[m]-p[m-1];y>0&&y<g&&(g=y)}r.liPosMinGap=t.liPosMinGap=wr(g)?g:v>0?bL:oH,r.serUids=i}var Oi=Bb({ctor:p3},50);function aW(e){return function(t,r){var i=Yo(t,{fromStat:{key:e}});if(wr(i.w2))return[-i.w2/2,i.w2/2]}}function jh(e,t){return e+Hg+t}function oW(e){return nW(),{liPosMinGap:!Vr(e.scale)}}var Qa="bar";function sW(e,t,r,i){vH(e,{key:t,seriesType:r,coordSysType:i,getMetrics:oW})}function uW(e){var t=e.scale.rawExtentInfo.makeRenderInfo().startValue;return t}var iO={left:0,right:0,top:0,bottom:0},Vf=["25%","25%"],Sn="cartesian2d",lW=(function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.mergeDefaultAndTheme=function(r,i){var n=Dl(r.outerBounds);e.prototype.mergeDefaultAndTheme.apply(this,arguments),n&&r.outerBounds&&ri(r.outerBounds,n)},t.prototype.mergeOption=function(r,i){e.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&r.outerBounds&&ri(this.option.outerBounds,r.outerBounds)},t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:iO,outerBoundsContain:"all",outerBoundsClampWidth:Vf[0],outerBoundsClampHeight:Vf[1],backgroundColor:re.color.transparent,borderWidth:1,borderColor:re.color.neutral30},t})(Be),cW=BA(),fW="__ec_stack_";function aO(e){return e.get("stack")||fW+e.seriesIndex}function dW(e,t){var r=hW(e,t);return r.columnMap=vW(r),r}function hW(e,t){var r=jh(t,Sn),i=[],n=Yo(e,{fromStat:{key:r},min:1});return TL(e,r,function(a){i.push({barWidth:$e(a.get("barWidth"),n.w),barMaxWidth:$e(a.get("barMaxWidth"),n.w),barMinWidth:$e(a.get("barMinWidth")||(oO(a)?.5:1),n.w),barGap:a.get("barGap"),barCategoryGap:a.get("barCategoryGap"),defaultBarGap:a.get("defaultBarGap"),stackId:aO(a)})}),{bandWidthResult:n,seriesInfo:i}}function vW(e){var t=e.bandWidthResult.w,r=t,i=0,n,a,o=[],s={};C(e.seriesInfo,function(p,g){g||(a=p.defaultBarGap||0);var m=p.stackId;Ut(s,m)||i++;var y=s[m];y||(y=s[m]={width:0,maxWidth:0},o.push(m));var _=p.barWidth;_&&!y.width&&(y.width=_,_=Ct(r,_),r-=_);var b=p.barMaxWidth;b&&(y.maxWidth=b);var S=p.barMinWidth;S&&(y.minWidth=S);var w=p.barGap;w!=null&&(a=w);var x=p.barCategoryGap;x!=null&&(n=x)}),n==null&&(n=Me(35-o.length*4,15)+"%");var u=$e(n,t),l=$e(a,1),c=(r-u)/(i+(i-1)*l);c=Me(c,0),C(o,function(p){var g=s[p],m=g.maxWidth,y=g.minWidth;if(g.width){var _=g.width;m&&(_=Ct(_,m)),y&&(_=Me(_,y)),g.width=_,r-=_+l*_,i--}else{var _=c;m&&m<_&&(_=Ct(m,r)),y&&y>_&&(_=y),_!==c&&(g.width=_,r-=_+l*_,i--)}}),c=(r-u)/(i+(i-1)*l),c=Me(c,0);var f=0,d;C(o,function(p){var g=s[p];g.width||(g.width=c),d=g,f+=g.width*(1+l)}),d&&(f-=d.width*l);var h={},v=-f/2;return C(o,function(p){var g=s[p];h[p]=h[p]||{bandWidth:t,offset:v,width:g.width},v+=g.width*(1+l)}),h}function pW(e){return{seriesType:e,overallReset:function(t){var r=jh(e,Sn);fH(t,r,function(i){var n=dW(i,e);TL(i,r,function(a){var o=n.columnMap[aO(a)];a.getData().setLayout({bandWidth:o.bandWidth,offset:o.offset,size:o.width})})})}}}function gW(e){return{seriesType:e,plan:gb(),reset:function(t){if(Q3(t)){var r=t.getData(),i=t.coordinateSystem,n=i.getBaseAxis(),a=i.getOtherAxis(n),o=r.getDimensionIndex(r.mapDimension(a.dim)),s=r.getDimensionIndex(r.mapDimension(n.dim)),u=t.get("showBackground",!0),l=r.mapDimension(a.dim),c=r.getCalculationInfo("stackResultDimension"),f=ua(r,l)&&!!r.getCalculationInfo("stackedOnSeries"),d=a.isHorizontal(),h=a.toGlobalCoord(a.dataToCoord(uW(a))),v=oO(t),p=t.get("barMinHeight")||0,g=c&&r.getDimensionIndex(c),m=r.getLayout("size"),y=r.getLayout("offset");return{progress:function(_,b){for(var S=_.count,w=v&&_n(S*3),x=v&&u&&_n(S*3),T=v&&_n(S),k=i.master.getRect(),I=d?k.width:k.height,$,A=b.getStore(),D=0;($=_.next())!=null;){var P=A.get(f?g:o,$),L=A.get(s,$),z=h,B=void 0;f&&(B=+P-A.get(o,$));var N=void 0,F=void 0,Z=void 0,G=void 0;if(d){var W=i.dataToPoint([P,L]);f&&(z=i.dataToPoint([B,L])[0]),N=z,F=W[1]+y,Z=W[0]-z,G=m,ft(Z)<p&&(Z=(Z<0?-1:1)*p)}else{var W=i.dataToPoint([L,P]);f&&(z=i.dataToPoint([L,B])[1]),N=W[0]+y,F=z,Z=m,G=W[1]-z,ft(G)<p&&(G=(G<=0?-1:1)*p)}v?(w[D]=N,w[D+1]=F,w[D+2]=d?Z:G,x&&(x[D]=d?k.x:N,x[D+1]=d?F:k.y,x[D+2]=I),T[$]=$):b.setItemLayout($,{x:N,y:F,width:Z,height:G}),D+=3}v&&b.setLayout({largePoints:w,largeDataIndices:T,largeBackgroundPoints:x,valueAxisHorizontal:d})}}}}}}function oO(e){return e.pipelineContext&&e.pipelineContext.large}function mW(e){return aW(jh(e,Sn))}function yW(e){cW(e,function(){function t(r){var i=jh(r,Sn);sW(e,i,r,Sn),xH(i,mW(r))}t("bar"),t("pictorialBar")})}var em=(function(e){H(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,i){return Bh(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(r,i,n){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(r),s=a.dataToPoint(o);if(n)C(a.getAxes(),function(d,h){if(d.type==="category"&&i!=null){var v=d.getTicksCoords(),p=d.getTickModel().get("alignWithLabel"),g=o[h],m=i[h]==="x1"||i[h]==="y1";if(m&&!p&&(g+=1),v.length<2)return;if(v.length===2){s[h]=d.toGlobalCoord(d.getExtent()[m?1:0]);return}for(var y=void 0,_=void 0,b=1,S=0;S<v.length;S++){var w=v[S].coord,x=S===v.length-1?v[S-1].tickValue+b:v[S].tickValue;if(x===g){_=w;break}else if(x<g)y=w;else if(y!=null&&x>g){_=(w+y)/2;break}S===1&&(b=x-v[0].tickValue)}_==null&&(y?y&&(_=v[v.length-1].coord):_=v[0].coord),s[h]=d.toGlobalCoord(_)}});else{var u=this.getData(),l=u.getLayout("offset"),c=u.getLayout("size"),f=a.getBaseAxis().isHorizontal()?0:1;s[f]+=l+c/2}return s}return[NaN,NaN]},t.prototype.__requireStartValue=function(r){return this.getBaseAxis()!==r},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",defaultBarGap:"10%"},t})(tr);tr.registerClass(em);var _W=(function(e){H(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 Bh(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.__preparePipelineContext=function(r,i){var n=jA(this,r,i);return n.progressiveRender&&(n.large=!0),n},t.prototype.brushSelector=function(r,i,n){return n.rect(i.getItemLayout(r))},t.type="series."+Qa,t.dependencies=["grid","polar"],t.defaultOption=zP(em.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:re.color.primary,borderWidth:2}},realtimeSort:!1}),t})(em),bW=(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})(),Wx=(function(e){H(t,e);function t(r){var i=e.call(this,r)||this;return i.type="sausage",i}return t.prototype.getDefaultShape=function(){return new bW},t.prototype.buildPath=function(r,i){var n=i.cx,a=i.cy,o=Math.max(i.r0||0,0),s=Math.max(i.r,0),u=(s-o)*.5,l=o+u,c=i.startAngle,f=i.endAngle,d=i.clockwise,h=Math.PI*2,v=d?f-c<h:c-f<h;v||(c=f-(d?h:-h));var p=Math.cos(c),g=Math.sin(c),m=Math.cos(f),y=Math.sin(f);v?(r.moveTo(p*o+n,g*o+a),r.arc(p*l+n,g*l+a,u,-Math.PI+c,c,!d)):r.moveTo(p*s+n,g*s+a),r.arc(n,a,s,c,f,!d),r.arc(m*l+n,y*l+a,u,f-Math.PI*2,f-Math.PI,!d),o!==0&&r.arc(n,a,o,f,c,d)},t})(Pe);function SW(e,t){t=t||{};var r=t.isRoundCap;return function(i,n,a){var o=n.position;if(!o||o instanceof Array)return gf(i,n,a);var s=e(o),u=n.distance!=null?n.distance:5,l=this.shape,c=l.cx,f=l.cy,d=l.r,h=l.r0,v=(d+h)/2,p=l.startAngle,g=l.endAngle,m=(p+g)/2,y=r?Math.abs(d-h)/2:0,_=Math.cos,b=Math.sin,S=c+d*_(p),w=f+d*b(p),x="left",T="top";switch(s){case"startArc":S=c+(h-u)*_(m),w=f+(h-u)*b(m),x="center",T="top";break;case"insideStartArc":S=c+(h+u)*_(m),w=f+(h+u)*b(m),x="center",T="bottom";break;case"startAngle":S=c+v*_(p)+kc(p,u+y,!1),w=f+v*b(p)+Ic(p,u+y,!1),x="right",T="middle";break;case"insideStartAngle":S=c+v*_(p)+kc(p,-u+y,!1),w=f+v*b(p)+Ic(p,-u+y,!1),x="left",T="middle";break;case"middle":S=c+v*_(m),w=f+v*b(m),x="center",T="middle";break;case"endArc":S=c+(d+u)*_(m),w=f+(d+u)*b(m),x="center",T="bottom";break;case"insideEndArc":S=c+(d-u)*_(m),w=f+(d-u)*b(m),x="center",T="top";break;case"endAngle":S=c+v*_(g)+kc(g,u+y,!0),w=f+v*b(g)+Ic(g,u+y,!0),x="left",T="middle";break;case"insideEndAngle":S=c+v*_(g)+kc(g,-u+y,!0),w=f+v*b(g)+Ic(g,-u+y,!0),x="right",T="middle";break;default:return gf(i,n,a)}return i=i||{},i.x=S,i.y=w,i.align=x,i.verticalAlign=T,i}}function wW(e,t,r,i){if(Re(i)){e.setTextConfig({rotation:i});return}else if(q(t)){e.setTextConfig({rotation:0});return}var n=e.shape,a=n.clockwise?n.startAngle:n.endAngle,o=n.clockwise?n.endAngle:n.startAngle,s=(a+o)/2,u,l=r(t);switch(l){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":u=s;break;case"startAngle":case"insideStartAngle":u=a;break;case"endAngle":case"insideEndAngle":u=o;break;default:e.setTextConfig({rotation:0});return}var c=Math.PI*1.5-u;l==="middle"&&c>Math.PI/2&&c<Math.PI*1.5&&(c-=Math.PI),e.setTextConfig({rotation:c})}function kc(e,t,r){return t*Math.sin(e)*(r?-1:1)}function Ic(e,t,r){return t*Math.cos(e)*(r?1:-1)}function Is(e,t,r){var i=e.get("borderRadius");if(i==null)return r?{cornerRadius:0}:null;q(i)||(i=[i,i,i,i]);var n=Math.abs(t.r||0-t.r0||0);return{cornerRadius:Q(i,function(a){return ra(a,n)})}}var lp=Math.max,cp=Math.min,xW=(function(e){H(t,e);function t(){var r=e.call(this)||this;return r.type=Qa,r._isFirstFrame=!0,r}return t.prototype.render=function(r,i,n,a){this._model=r,this._removeOnRenderedListener(n),this._updateDrawMode(r);var o=r.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(r,i,n):this._renderNormal(r,i,n,a))},t.prototype.incrementalPrepareRender=function(r){this._clear(),this._updateDrawMode(r),this._updateLargeClip(r)},t.prototype.incrementalRender=function(r,i){this._progressiveEls=[],this._incrementalRenderLarge(r,i)},t.prototype.eachRendered=function(r){$l(this._progressiveEls||this.group,r)},t.prototype._updateDrawMode=function(r){var i=r.pipelineContext.large;(this._isLargeDraw==null||i!==this._isLargeDraw)&&(this._isLargeDraw=i,this._clear())},t.prototype._renderNormal=function(r,i,n,a){var o=this.group,s=r.getData(),u=this._data,l=r.coordinateSystem,c=l.getBaseAxis(),f;l.type==="cartesian2d"?f=c.isHorizontal():l.type==="polar"&&(f=c.dim==="angle");var d=r.isAnimationEnabled()?r:null,h=TW(r,l);h&&this._enableRealtimeSort(h,s,n);var v=r.get("clip",!0)||h,p=l.getArea();o.removeClipPath();var g=r.get("roundCap",!0),m=r.get("showBackground",!0),y=r.getModel("backgroundStyle"),_=y.get("borderRadius")||0,b=[],S=this._backgroundEls,w=a&&a.isInitSort,x=a&&a.type==="changeAxisOrder";function T($){var A=$c[l.type](s,$);if(!A)return null;var D=PW(l,f,A);return D.useStyle(y.getItemStyle()),l.type==="cartesian2d"?D.setShape("r",_):D.setShape("cornerRadius",_),b[$]=D,D}s.diff(u).add(function($){var A=s.getItemModel($),D=$c[l.type](s,$,A);if(D&&(m&&T($),!(!s.hasValue($)||!Jx[l.type](D)))){var P=!1;v&&(P=qx[l.type](p,D));var L=Yx[l.type](r,s,$,D,f,d,c.model,!1,g);h&&(L.forceLabelAnimation=!0),Qx(L,s,$,A,D,r,f,l.type==="polar"),w?L.attr({shape:D}):h?Xx(h,d,L,D,$,f,!1,!1):St(L,{shape:D},r,$),s.setItemGraphicEl($,L),o.add(L),L.ignore=P}}).update(function($,A){var D=s.getItemModel($),P=$c[l.type](s,$,D);if(P){if(m){var L=void 0;S.length===0?L=T(A):(L=S[A],L.useStyle(y.getItemStyle()),l.type==="cartesian2d"?L.setShape("r",_):L.setShape("cornerRadius",_),b[$]=L);var z=$c[l.type](s,$),B=uO(f,z,l);lt(L,{shape:B},d,$)}var N=u.getItemGraphicEl(A);if(!s.hasValue($)||!Jx[l.type](P)){o.remove(N);return}var F=!1;v&&(F=qx[l.type](p,P),F&&o.remove(N));var Z=N&&(N.type==="sector"&&g||N.type==="sausage"&&!g);if(Z&&(N&&qa(N,r,A),N=null),N?Ih(N):N=Yx[l.type](r,s,$,P,f,d,c.model,!0,g),h&&(N.forceLabelAnimation=!0),x){var G=N.getTextContent();if(G){var W=Go(G);W.prevValue!=null&&(W.prevValue=W.value)}}else Qx(N,s,$,D,P,r,f,l.type==="polar");w?N.attr({shape:P}):h?Xx(h,d,N,P,$,f,!0,x):lt(N,{shape:P},r,$,null),s.setItemGraphicEl($,N),N.ignore=F,o.add(N)}}).remove(function($){var A=u.getItemGraphicEl($);A&&qa(A,r,$)}).execute();var k=this._backgroundGroup||(this._backgroundGroup=new ut);k.removeAll();for(var I=0;I<b.length;++I)k.add(b[I]);o.add(k),this._backgroundEls=b,this._data=s},t.prototype._renderLarge=function(r,i,n){this._clear(),tT(r,this.group),this._updateLargeClip(r)},t.prototype._incrementalRenderLarge=function(r,i){this._removeBackground(),tT(i,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(r){var i=r.get("clip",!0)&&S3(r.coordinateSystem,!1,r),n=this.group;i?n.setClipPath(i):n.removeClipPath()},t.prototype._enableRealtimeSort=function(r,i,n){var a=this;if(i.count()){var o=r.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(i,r,n),this._isFirstFrame=!1;else{var s=function(u){var l=i.getItemGraphicEl(u),c=l&&l.shape;return c&&Math.abs(o.isHorizontal()?c.height:c.width)||0};this._onRendered=function(){a._updateSortWithinSameData(i,s,o,n)},n.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(r,i,n){var a=[];return r.each(r.mapDimension(i.dim),function(o,s){var u=n(s);u=u??NaN,a.push({dataIndex:s,mappedValue:u,ordinalNumber:o})}),a.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:Q(a,function(o){return o.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(r,i,n){for(var a=n.scale,o=r.mapDimension(n.dim),s=Number.MAX_VALUE,u=0,l=a.getOrdinalMeta().categories.length;u<l;++u){var c=r.rawIndexOf(o,a.getRawOrdinalNumber(u)),f=c<0?Number.MIN_VALUE:i(r.indexOfRawIndex(c));if(f>s)return!0;s=f}return!1},t.prototype._isOrderDifferentInView=function(r,i){for(var n=i.scale,a=n.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],n.getOrdinalMeta().categories.length-1);o<=s;++o)if(r.ordinalNumbers[o]!==n.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(r,i,n,a){if(this._isOrderChangedWithinSameData(r,i,n)){var o=this._dataSort(r,n,i);this._isOrderDifferentInView(o,n)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(r,i,n){var a=i.baseAxis,o=this._dataSort(r,a,function(s){return r.get(r.mapDimension(i.otherAxis.dim),s)});n.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},t.prototype.remove=function(r,i){this._clear(this._model),this._removeOnRenderedListener(i)},t.prototype.dispose=function(r,i){this._removeOnRenderedListener(i)},t.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(r){var i=this.group,n=this._data;r&&r.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(a){qa(a,r,we(a).dataIndex)})):i.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type=Qa,t})(Ht),qx={cartesian2d:function(e,t){var r=t.width<0?-1:1,i=t.height<0?-1:1;r<0&&(t.x+=t.width,t.width=-t.width),i<0&&(t.y+=t.height,t.height=-t.height);var n=e.x+e.width,a=e.y+e.height,o=lp(t.x,e.x),s=cp(t.x+t.width,n),u=lp(t.y,e.y),l=cp(t.y+t.height,a),c=s<o,f=l<u;return t.x=c&&o>n?s:o,t.y=f&&u>a?l:u,t.width=c?0:s-o,t.height=f?0:l-u,r<0&&(t.x+=t.width,t.width=-t.width),i<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 i=t.r;t.r=t.r0,t.r0=i}var n=cp(t.r,e.r),a=lp(t.r0,e.r0);t.r=n,t.r0=a;var o=n-a<0;if(r<0){var i=t.r;t.r=t.r0,t.r0=i}return o}},Yx={cartesian2d:function(e,t,r,i,n,a,o,s,u){var l=new st({shape:V({},i),z2:1});if(l.__dataIndex=r,l.name="item",a){var c=l.shape,f=n?"height":"width";c[f]=0}return l},polar:function(e,t,r,i,n,a,o,s,u){var l=!n&&u?Wx:si,c=new l({shape:i,z2:1});c.name="item";var f=sO(n);if(c.calculateTextPosition=SW(f,{isRoundCap:l===Wx}),a){var d=c.shape,h=n?"r":"endAngle",v={};d[h]=n?i.r0:i.startAngle,v[h]=i[h],(s?lt:St)(c,{shape:v},a)}return c}};function TW(e,t){var r=e.get("realtimeSort",!0),i=t.getBaseAxis();if(r&&i.type==="category"&&t.type==="cartesian2d")return{baseAxis:i,otherAxis:t.getOtherAxis(i)}}function Xx(e,t,r,i,n,a,o,s){var u,l;a?(l={x:i.x,width:i.width},u={y:i.y,height:i.height}):(l={y:i.y,height:i.height},u={x:i.x,width:i.width}),s||(o?lt:St)(r,{shape:u},t,n,null);var c=t?e.baseAxis.model:null;(o?lt:St)(r,{shape:l},c,n)}function Kx(e,t){for(var r=0;r<t.length;r++)if(!isFinite(e[t[r]]))return!0;return!1}var kW=["x","y","width","height"],IW=["cx","cy","r","startAngle","endAngle"],Jx={cartesian2d:function(e){return!Kx(e,kW)},polar:function(e){return!Kx(e,IW)}},$c={cartesian2d:function(e,t,r){var i=e.getItemLayout(t);if(!i)return null;var n=r?DW(r,i):0,a=i.width>0?1:-1,o=i.height>0?1:-1;return{x:i.x+a*n/2,y:i.y+o*n/2,width:i.width-a*n,height:i.height-o*n}},polar:function(e,t,r){var i=e.getItemLayout(t);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function $W(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function sO(e){return(function(t){var r=t?"Arc":"Angle";return function(i){switch(i){case"start":case"insideStart":case"end":case"insideEnd":return i+r;default:return i}}})(e)}function Qx(e,t,r,i,n,a,o,s){var u=t.getItemVisual(r,"style");if(s){if(!a.get("roundCap")){var c=e.shape,f=Is(i.getModel("itemStyle"),c,!0);V(c,f),e.setShape(c)}}else{var l=i.get(["itemStyle","borderRadius"])||0;e.setShape("r",l)}e.useStyle(u);var d=i.getShallow("cursor");d&&e.attr("cursor",d);var h=s?o?n.r>=n.r0?"endArc":"startArc":n.endAngle>=n.startAngle?"endAngle":"startAngle":o?MW(n,a.coordinateSystem):LW(n,a.coordinateSystem),v=ui(i);pa(e,v,{labelFetcher:a,labelDataIndex:r,defaultText:Nb(a.getData(),r),inheritColor:u.fill,defaultOpacity:u.opacity,defaultOutsidePosition:h});var p=e.getTextContent();if(s&&p){var g=i.get(["label","position"]);e.textConfig.inside=g==="middle"?!0:null,wW(e,g==="outside"?h:g,sO(o),i.get(["label","rotate"]))}Lj(p,v,a.getRawValue(r),function(y){return jL(t,y)});var m=i.getModel(["emphasis"]);aa(e,m.get("focus"),m.get("blurScope"),m.get("disabled")),au(e,i),$W(n)&&(e.style.fill="none",e.style.stroke="none",C(e.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function DW(e,t){var r=e.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var i=e.get(["itemStyle","borderWidth"])||0,n=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(i,n,a)}var CW=(function(){function e(){}return e})(),eT=(function(e){H(t,e);function t(r){var i=e.call(this,r)||this;return i.type="largeBar",i}return t.prototype.getDefaultShape=function(){return new CW},t.prototype.buildPath=function(r,i){for(var n=i.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],u=[],l=this.barWidth,c=0;c<n.length;c+=3)u[a]=l,u[o]=n[c+2],s[a]=n[c+a],s[o]=n[c+o],r.rect(s[0],s[1],u[0],u[1])},t})(Pe);function tT(e,t,r,i){var n=e.getData(),a=n.getLayout("valueAxisHorizontal")?1:0,o=n.getLayout("largeDataIndices"),s=n.getLayout("size"),u=e.getModel("backgroundStyle"),l=n.getLayout("largeBackgroundPoints"),c=i?FA(e):0;if(l){var f=new eT({shape:{points:l},incremental:c,silent:!0,z2:0});f.baseDimIdx=a,f.largeDataIndices=o,f.barWidth=s,f.useStyle(u.getItemStyle()),t.add(f),r&&r.push(f)}var d=new eT({shape:{points:n.getLayout("largePoints")},incremental:c,ignoreCoarsePointer:!0,z2:1});d.baseDimIdx=a,d.largeDataIndices=o,d.barWidth=s,t.add(d),d.useStyle(n.getVisual("style")),d.style.stroke=null,we(d).seriesIndex=e.seriesIndex,e.get("silent")||(d.on("mousedown",rT),d.on("mousemove",rT)),r&&r.push(d)}var rT=mb(function(e){var t=this,r=AW(t,e.offsetX,e.offsetY);we(t).dataIndex=r>=0?r:null},30,!1);function AW(e,t,r){for(var i=e.baseDimIdx,n=1-i,a=e.shape.points,o=e.largeDataIndices,s=[],u=[],l=e.barWidth,c=0,f=a.length/3;c<f;c++){var d=c*3;if(u[i]=l,u[n]=a[d+2],s[i]=a[d+i],s[n]=a[d+n],u[n]<0&&(s[n]+=u[n],u[n]=-u[n]),t>=s[0]&&t<=s[0]+u[0]&&r>=s[1]&&r<=s[1]+u[1])return o[c]}return-1}function uO(e,t,r){if(Fb(r,"cartesian2d")){var i=t,n=r.getArea();return{x:e?i.x:n.x,y:e?n.y:i.y,width:e?i.width:n.width,height:e?n.height:i.height}}else{var n=r.getArea(),a=t;return{cx:n.cx,cy:n.cy,r0:e?n.r0:a.r0,r:e?n.r:a.r,startAngle:e?a.startAngle:0,endAngle:e?a.endAngle:Math.PI*2}}}function PW(e,t,r){var i=e.type==="polar"?si:st;return new i({shape:uO(t,r,e),silent:!0,z2:0})}function MW(e,t){if(e.height===0){var r=t.getOtherAxis(t.getBaseAxis());return r.inverse?"bottom":"top"}return e.height>0?"bottom":"top"}function LW(e,t){if(e.width===0){var r=t.getOtherAxis(t.getBaseAxis());return r.inverse?"left":"right"}return e.width>=0?"right":"left"}function OW(e){e.registerChartView(xW),e.registerSeriesModel(_W),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,pW(Qa)),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,gW(Qa)),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,XL(Qa)),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,r){var i=t.componentType||"series";r.eachComponent({mainType:i,query:t},function(n){t.sortInfo&&n.axis.setCategorySortInfo(t.sortInfo)})}),yW(e)}function lO(e){return{seriesType:e,reset:function(t,r){var i=r.findComponents({mainType:"legend"});if(!(!i||!i.length)){var n=t.getData();n.filterSelf(function(a){for(var o=n.getName(a),s=0;s<i.length;s++)if(!i[s].isSelected(o))return!1;return!0})}}}}function cO(e,t,r){t=q(t)&&{coordDimensions:t}||V({encodeDefine:e.getEncode()},t);var i=e.getSource(),n=oL(i,t).dimensions,a=new Us(n,e);return a.initData(i,r),a}var fO=(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 i=this._getDataWithEncodedVisual();return i.getItemVisual(t,r)},e})(),Jn="pie",EW=ke(),dO=(function(e){H(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){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new fO(Fe(this.getData,this),Fe(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return cO(this,{coordDimensions:["value"],encodeDefaulter:He(nM,this)})},t.prototype.getDataParams=function(r){var i=this.getData(),n=EW(i),a=n.seats;if(!a){var o=[];i.each(i.mapDimension("value"),function(u){o.push(u)}),a=n.seats=j6(o,i.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){Qs(r,"labelLine",["show"]);var i=r.labelLine,n=r.emphasis.labelLine;i.show=i.show&&r.label.show,n.show=n.show&&r.emphasis.label.show},t.type="series."+Jn,t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"50%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:"box",left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t})(tr);u5({fullType:dO.type,getCoord2:function(e){return e.getShallow("center")}});var zW=Math.PI/180;function nT(e,t,r,i,n,a,o,s,u,l){if(e.length<2)return;function c(p){for(var g=p.rB,m=g*g,y=0;y<p.list.length;y++){var _=p.list[y],b=Math.abs(_.label.y-r),S=i+_.len,w=S*S,x=Math.sqrt(Math.abs((1-b*b/m)*w)),T=t+(x+_.len2)*n,k=T-_.label.x,I=_.targetTextWidth-k*n;hO(_,I,!0),_.label.x=T}}function f(p){for(var g={list:[],maxY:0},m={list:[],maxY:0},y=0;y<p.length;y++)if(p[y].labelAlignTo==="none"){var _=p[y],b=_.label.y>r?m:g,S=Math.abs(_.label.y-r);if(S>=b.maxY){var w=_.label.x-t-_.len2*n,x=i+_.len,T=Math.abs(w)<x?Math.sqrt(S*S/(1-w*w/x/x)):x;b.rB=T,b.maxY=S}b.list.push(_)}c(g),c(m)}for(var d=e.length,h=0;h<d;h++)if(e[h].position==="outer"&&e[h].labelAlignTo==="labelLine"){var v=e[h].label.x-l;e[h].linePoints[1][0]+=v,e[h].label.x=l}Kg(e,1,u,u+o)&&f(e)}function RW(e,t,r,i,n,a,o,s){for(var u=[],l=[],c=Number.MAX_VALUE,f=-Number.MAX_VALUE,d=0;d<e.length;d++){var h=e[d].label;fp(e[d])||(h.x<t?(c=Math.min(c,h.x),u.push(e[d])):(f=Math.max(f,h.x),l.push(e[d])))}for(var d=0;d<e.length;d++){var v=e[d];if(!fp(v)&&v.linePoints){if(v.labelStyleWidth!=null)continue;var h=v.label,p=v.linePoints,g=void 0;v.labelAlignTo==="edge"?h.x<t?g=p[2][0]-v.labelDistance-o-v.edgeDistance:g=o+n-v.edgeDistance-p[2][0]-v.labelDistance:v.labelAlignTo==="labelLine"?h.x<t?g=c-o-v.bleedMargin:g=o+n-f-v.bleedMargin:h.x<t?g=h.x-o-v.bleedMargin:g=o+n-h.x-v.bleedMargin,v.targetTextWidth=g,hO(v,g,!1)}}nT(l,t,r,i,1,n,a,o,s,f),nT(u,t,r,i,-1,n,a,o,s,c);for(var d=0;d<e.length;d++){var v=e[d];if(!fp(v)&&v.linePoints){var h=v.label,p=v.linePoints,m=v.labelAlignTo==="edge",y=h.style.padding,_=y?y[1]+y[3]:0,b=h.style.backgroundColor?0:_,S=v.rect.width+b,w=p[1][0]-p[2][0];m?h.x<t?p[2][0]=o+v.edgeDistance+S+v.labelDistance:p[2][0]=o+n-v.edgeDistance-S-v.labelDistance:(h.x<t?p[2][0]=h.x+v.labelDistance:p[2][0]=h.x-v.labelDistance,p[1][0]=p[2][0]+w),p[1][1]=p[2][1]=h.y}}}function hO(e,t,r){if(e.labelStyleWidth==null){var i=e.label,n=i.style,a=e.rect,o=n.backgroundColor,s=n.padding,u=s?s[1]+s[3]:0,l=n.overflow,c=a.width+(o?0:u);if(t<c||r){if(l&&l.match("break")){i.setStyle("backgroundColor",null),i.setStyle("width",t-u);var f=i.getBoundingRect();i.setStyle("width",Math.ceil(f.width)),i.setStyle("backgroundColor",o)}else{var d=t-u,h=t<c?d:r?d>e.unconstrainedWidth?null:d:null;i.setStyle("width",h)}vO(a,i)}}}function vO(e,t){iT.rect=e,BL(iT,t,NW)}var NW={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},iT={};function fp(e){return e.position==="center"}function UW(e){var t=e.getData(),r=[],i,n,a=!1,o=(e.get("minShowLabelAngle")||0)*zW,s=t.getLayout("viewRect"),u=t.getLayout("r"),l=s.width,c=s.x,f=s.y,d=s.height;function h(w){w.ignore=!0}function v(w){if(!w.ignore)return!0;for(var x in w.states)if(w.states[x].ignore===!1)return!0;return!1}t.each(function(w){var x=t.getItemGraphicEl(w),T=x.shape,k=x.getTextContent(),I=x.getTextGuideLine(),$=t.getItemModel(w),A=$.getModel("label"),D=A.get("position")||$.get(["emphasis","label","position"]),P=A.get("distanceToLabelLine"),L=A.get("alignTo"),z=$e(A.get("edgeDistance"),l),B=A.get("bleedMargin");B==null&&(B=Math.min(l,d)>200?10:2);var N=$.getModel("labelLine"),F=N.get("length");F=$e(F,l);var Z=N.get("length2");if(Z=$e(Z,l),Math.abs(T.endAngle-T.startAngle)<o){C(k.states,h),k.ignore=!0,I&&(C(I.states,h),I.ignore=!0);return}if(v(k)){var G=(T.startAngle+T.endAngle)/2,W=Math.cos(G),ee=Math.sin(G),K,ce,ye,tt;i=T.cx,n=T.cy;var Je=D==="inside"||D==="inner";if(D==="center")K=T.cx,ce=T.cy,tt="center";else{var Ie=(Je?(T.r+T.r0)/2*W:T.r*W)+i,Ye=(Je?(T.r+T.r0)/2*ee:T.r*ee)+n;if(K=Ie+W*3,ce=Ye+ee*3,!Je){var oe=Ie+W*(F+u-T.r),_e=Ye+ee*(F+u-T.r),Ft=oe+(W<0?-1:1)*Z,rt=_e;L==="edge"?K=W<0?c+z:c+l-z:K=Ft+(W<0?-P:P),ce=rt,ye=[[Ie,Ye],[oe,_e],[Ft,rt]]}tt=Je?"center":L==="edge"?W>0?"right":"left":W>0?"left":"right"}var Ir=Math.PI,jt=0,$r=A.get("rotate");if(Re($r))jt=$r*(Ir/180);else if(D==="center")jt=0;else if($r==="radial"||$r===!0){var ma=W<0?-G+Ir:-G;jt=ma}else if($r==="tangential"||$r==="tangential-noflip"&&D!=="outside"&&D!=="outer"){var Dr=Math.atan2(W,ee);Dr<0&&(Dr=Ir*2+Dr);var Ml=ee>0;Ml&&$r!=="tangential-noflip"&&(Dr=Ir+Dr),jt=Dr-Ir}if(a=!!jt,k.x=K,k.y=ce,k.rotation=jt,k.setStyle({verticalAlign:"middle"}),Je){k.setStyle({align:tt});var Hh=k.states.select;Hh&&(Hh.x+=k.x,Hh.y+=k.y)}else{var ya=new fe(0,0,0,0);vO(ya,k),r.push({label:k,labelLine:I,position:D,len:F,len2:Z,minTurnAngle:N.get("minTurnAngle"),maxSurfaceAngle:N.get("maxSurfaceAngle"),surfaceNormal:new de(W,ee),linePoints:ye,textAlign:tt,labelDistance:P,labelAlignTo:L,edgeDistance:z,bleedMargin:B,rect:ya,unconstrainedWidth:ya.width,labelStyleWidth:k.style.width})}x.setTextConfig({inside:Je})}}),!a&&e.get("avoidLabelOverlap")&&RW(r,i,n,u,l,d,c,f);for(var p=0;p<r.length;p++){var g=r[p],m=g.label,y=g.labelLine,_=isNaN(m.x)||isNaN(m.y);if(m){m.setStyle({align:g.textAlign}),_&&(C(m.states,h),m.ignore=!0);var b=m.states.select;b&&(b.x+=m.x,b.y+=m.y)}if(y){var S=g.linePoints;_||!S?(C(y.states,h),y.ignore=!0):(RL(S,g.minTurnAngle),e3(S,g.surfaceNormal,g.maxSurfaceAngle),y.setShape({points:S}),m.__hostTarget.textGuideLineConfig={anchor:new de(S[0][0],S[0][1])})}}}var aT=Math.PI*2,Dc=Math.PI/180,BW=ZA(Jn,FW);function FW(e,t){e.eachSeriesByType(Jn,function(r){var i=r.getData(),n=i.mapDimension("value"),a=p5(r,t),o=a.cx,s=a.cy,u=a.r,l=a.r0,c=a.viewRect,f=-r.get("startAngle")*Dc,d=r.get("endAngle"),h=r.get("padAngle")*Dc;d=d==="auto"?f-aT:-d*Dc;var v=r.get("minAngle")*Dc,p=v+h,g=0;i.each(n,function(z){!isNaN(z)&&g++});var m=i.getSum(n),y=Math.PI/(m||g)*2,_=r.get("clockwise"),b=r.get("roseType"),S=r.get("stillShowZeroSum"),w=i.getDataExtent(n);w[0]=0;var x=_?1:-1,T=[f,d],k=x*h/2;XA(T,!_),f=T[0],d=T[1];var I=pO(r);I.startAngle=f,I.endAngle=d,I.clockwise=_,I.cx=o,I.cy=s,I.r=u,I.r0=l;var $=Math.abs(d-f),A=$,D=0,P=f;if(i.setLayout({viewRect:c,r:u}),i.each(n,function(z,B){var N;if(isNaN(z)){i.setItemLayout(B,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:_,cx:o,cy:s,r0:l,r:b?NaN:u});return}b!=="area"?N=m===0&&S?y:z*y:N=$/g,N<p?(N=p,A-=p):D+=z;var F=P+x*N,Z=0,G=0;h>N?(Z=P+x*N/2,G=Z):(Z=P+k,G=F-k),i.setItemLayout(B,{angle:N,startAngle:Z,endAngle:G,clockwise:_,cx:o,cy:s,r0:l,r:b?Js(z,w,[l,u]):u}),P=F}),A<aT&&g)if(A<=.001){var L=$/g;i.each(n,function(z,B){if(!isNaN(z)){var N=i.getItemLayout(B);N.angle=L;var F=0,Z=0;L<h?(F=f+x*(B+1/2)*L,Z=F):(F=f+x*B*L+k,Z=f+x*(B+1)*L-k),N.startAngle=F,N.endAngle=Z}})}else y=A/D,P=f,i.each(n,function(z,B){if(!isNaN(z)){var N=i.getItemLayout(B),F=N.angle===p?p:z*y,Z=0,G=0;F<h?(Z=P+x*F/2,G=Z):(Z=P+k,G=P+x*F-k),N.startAngle=Z,N.endAngle=G,P+=x*F}})})}var pO=ke(),jW=(function(e){H(t,e);function t(r,i,n){var a=e.call(this)||this;a.z2=2;var o=new At;return a.setTextContent(o),a.updateData(r,i,n,!0),a}return t.prototype.updateData=function(r,i,n,a){var o=this,s=r.hostModel,u=r.getItemModel(i),l=u.getModel("emphasis"),c=r.getItemLayout(i),f=V(Is(u.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?(St(o,{scaleX:0,scaleY:0},s,{dataIndex:i,isFrom:!0}),o.originX=f.cx,o.originY=f.cy):d==="scale"?(o.shape.r=c.r0,St(o,{shape:{r:c.r}},s,i)):n!=null?(o.setShape({startAngle:n,endAngle:n}),St(o,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},s,i)):(o.shape.endAngle=c.startAngle,lt(o,{shape:{endAngle:c.endAngle}},s,i))}else Ih(o),lt(o,{shape:f},s,i);o.useStyle(r.getItemVisual(i,"style")),au(o,u);var h=(c.startAngle+c.endAngle)/2,v=s.get("selectedOffset"),p=Math.cos(h)*v,g=Math.sin(h)*v,m=u.getShallow("cursor");m&&o.attr("cursor",m),this._updateLabel(s,r,i),o.ensureState("emphasis").shape=V({r:c.r+(l.get("scale")&&l.get("scaleSize")||0)},Is(l.getModel("itemStyle"),c)),V(o.ensureState("select"),{x:p,y:g,shape:Is(u.getModel(["select","itemStyle"]),c)}),V(o.ensureState("blur"),{shape:Is(u.getModel(["blur","itemStyle"]),c)});var y=o.getTextGuideLine(),_=o.getTextContent();y&&V(y.ensureState("select"),{x:p,y:g}),V(_.ensureState("select"),{x:p,y:g}),aa(this,l.get("focus"),l.get("blurScope"),l.get("disabled"))},t.prototype._updateLabel=function(r,i,n){var a=this,o=i.getItemModel(n),s=o.getModel("labelLine"),u=i.getItemVisual(n,"style"),l=u&&u.fill,c=u&&u.opacity;pa(a,ui(o),{labelFetcher:i.hostModel,labelDataIndex:n,inheritColor:l,defaultOpacity:c,defaultText:r.getFormattedLabel(n,"normal")||i.getName(n)});var f=a.getTextContent();a.setTextConfig({position:null,rotation:null}),f.attr({z2:10});var d=o.get(["label","position"]);if(d!=="outside"&&d!=="outer")a.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new Vo,this.setTextGuideLine(h)),Eb(this,zb(o),{stroke:l,opacity:Gi(s.get(["lineStyle","opacity"]),c,1)})}},t})(si),ZW=(function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=Jn,r.ignoreLabelLineUpdate=!0,r}return t.prototype.render=function(r,i,n,a){var o=r.getData(),s=this._data,u=this.group,l;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&&(l=c.startAngle)}if(this._emptyCircleSector&&u.remove(this._emptyCircleSector),o.count()===0&&r.get("showEmptyCircle")){var d=pO(r),h=new si({shape:me(d)});h.useStyle(r.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=h,u.add(h)}o.diff(s).add(function(v){var p=new jW(o,v,l);o.setItemGraphicEl(v,p),u.add(p)}).update(function(v,p){var g=s.getItemGraphicEl(p);g.updateData(o,v,l),g.off("click"),u.add(g),o.setItemGraphicEl(v,g)}).remove(function(v){var p=s.getItemGraphicEl(v);qa(p,r,v)}).execute(),UW(r),r.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(r,i){var n=i.getData(),a=n.getItemLayout(0);if(a){var o=r[0]-a.cx,s=r[1]-a.cy,u=Math.sqrt(o*o+s*s);return u<=a.r&&u>=a.r0}},t.type=Jn,t})(Ht);function VW(e){return{seriesType:e,reset:function(t,r){var i=t.getData();i.filterSelf(function(n){var a=i.mapDimension("value"),o=i.get(a,n);return!(Re(o)&&!isNaN(o)&&o<0)})}}}function GW(e){e.registerChartView(ZW),e.registerSeriesModel(dO),tV(Jn,e.registerAction),e.registerLayout(BW),e.registerProcessor(lO(Jn)),e.registerProcessor(VW(Jn))}var HW=(function(e){H(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,i){return Bh(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var r=this.option.progressive;return r??(this.option.large?5e3:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return r??(this.option.large?1e4:this.get("progressiveThreshold"))},t.prototype.brushSelector=function(r,i,n){return n.point(i.getItemLayout(r))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:re.color.primary}},universalTransition:{divideShape:"clone"}},t})(tr),gO=4,WW=(function(){function e(){}return e})(),qW=(function(e){H(t,e);function t(r){var i=e.call(this,r)||this;return i._off=0,i.hoverDataIdx=-1,i}return t.prototype.getDefaultShape=function(){return new WW},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.beforeBrush=function(r){r&&!r.contentRetained&&this.reset()},t.prototype.buildPath=function(r,i){var n=i.points,a=i.size,o=this.symbolProxy,s=o.shape,u=r.getContext?r.getContext():r,l=u&&a[0]<gO,c=this.softClipShape,f;if(l){this._ctx=u;return}for(this._ctx=null,f=this._off;f<n.length;){var d=n[f++],h=n[f++];isNaN(d)||isNaN(h)||c&&!c.contain(d,h)||(s.x=d-a[0]/2,s.y=h-a[1]/2,s.width=a[0],s.height=a[1],o.buildPath(r,s,!0))}this.incremental&&(this._off=f,this.notClear=!0)},t.prototype.afterBrush=function(){var r=this.shape,i=r.points,n=r.size,a=this._ctx,o=this.softClipShape,s;if(a){for(s=this._off;s<i.length;){var u=i[s++],l=i[s++];isNaN(u)||isNaN(l)||o&&!o.contain(u,l)||a.fillRect(u-n[0]/2,l-n[1]/2,n[0],n[1])}this.incremental&&(this._off=s,this.notClear=!0)}},t.prototype.findDataIndex=function(r,i){for(var n=this.shape,a=n.points,o=n.size,s=Math.max(o[0],4),u=Math.max(o[1],4),l=a.length/2-1;l>=0;l--){var c=l*2,f=a[c]-s/2,d=a[c+1]-u/2;if(r>=f&&i>=d&&r<=f+s&&i<=d+u)return l}return-1},t.prototype.contain=function(r,i){var n=this.transformCoordToLocal(r,i),a=this.getBoundingRect();if(r=n[0],i=n[1],a.contain(r,i)){var o=this.hoverDataIdx=this.findDataIndex(r,i);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var r=this._rect;if(!r){for(var i=this.shape,n=i.points,a=i.size,o=a[0],s=a[1],u=1/0,l=1/0,c=-1/0,f=-1/0,d=0;d<n.length;){var h=n[d++],v=n[d++];u=Math.min(h,u),c=Math.max(h,c),l=Math.min(v,l),f=Math.max(v,f)}r=this._rect=new fe(u-o/2,l-s/2,c-u+o,f-l+s)}return r},t})(Pe),YW=(function(){function e(){this.group=new ut}return e.prototype.updateData=function(t,r){this._clear(),this._data=t;var i=this._create();i.setShape({points:t.getLayout("points")}),this._setCommon(i,t,r)},e.prototype.updateLayout=function(t){var r=this._data;if(r){var i=r.getLayout("points");this.group.eachChild(function(n){if(n.startIndex!=null){var a=(n.endIndex-n.startIndex)*2,o=n.startIndex*4*2;i=new Float32Array(i.buffer,o,a)}n.setShape("points",i),n.reset(),n.stopAnimation()})}},e.prototype.incrementalPrepareUpdate=function(t){this._clear()},e.prototype.incrementalUpdate=function(t,r,i,n){var a=this._newAdded[0],o=r.getLayout("points"),s=a&&a.shape.points;if(s&&s.length<2e4){var u=s.length,l=new Float32Array(u+o.length);l.set(s),l.set(o,u),a.endIndex=t.end,a.setShape({points:l})}else{this._newAdded=[];var c=this._create();c.startIndex=t.start,c.endIndex=t.end,c.incremental=i,c.setShape({points:o}),this._setCommon(c,r,n)}},e.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},e.prototype._create=function(){var t=new qW({cursor:"default"});return t.ignoreCoarsePointer=!0,this.group.add(t),this._newAdded.push(t),t},e.prototype._setCommon=function(t,r,i){var n=r.hostModel;i=i||{};var a=r.getVisual("symbolSize");t.setShape("size",a instanceof Array?a:[a,a]),t.softClipShape=i.clipShape||null,t.symbolProxy=ni(r.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<gO;t.useStyle(n.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=r.getVisual("style"),u=s&&s.fill;u&&t.setColor(u);var l=we(t);l.seriesIndex=n.seriesIndex,t.on("mousemove",function(c){l.dataIndex=null;var f=t.hoverDataIdx;f>=0&&(l.dataIndex=f+(t.startIndex||0))})},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e})(),XW=(function(e){H(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,i,n){var a=r.getData(),o=this._updateSymbolDraw(a,r);o.updateData(a,dp(r)),this._finished=!0},t.prototype.incrementalPrepareRender=function(r,i,n){var a=r.getData(),o=this._updateSymbolDraw(a,r);o.incrementalPrepareUpdate(a),this._finished=!1},t.prototype.incrementalRender=function(r,i,n){this._symbolDraw.incrementalUpdate(r,i.getData(),FA(i),dp(i)),this._finished=r.end===i.getData().count()},t.prototype.updateTransform=function(r,i,n){var a=r.getData();if(this.group.dirty(),this._finished){var o=jb("").reset(r,i,n);o.progress&&o.progress({start:0,end:a.count(),count:a.count()},a),this._symbolDraw.updateLayout(dp(r))}else return{update:!0}},t.prototype.eachRendered=function(r){this._symbolDraw&&this._symbolDraw.eachRendered(r)},t.prototype._updateSymbolDraw=function(r,i){var n=this._symbolDraw,a=i.pipelineContext,o=a.large;return(!n||o!==this._isLargeDraw)&&(n&&n.remove(),n=this._symbolDraw=o?new YW:new ZL,this._isLargeDraw=o,this.group.removeAll()),this.group.add(n.group),n},t.prototype.remove=function(r,i){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t})(Ht);function dp(e){return{clipShape:w3(e)}}var tm=(function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",gr).models[0]},t.type="cartesian2dAxis",t})(Be);Br(tm,iH);var mO={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:"auto",onZeroAxisIndex:null,lineStyle:{color:re.color.axisLine,width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15],breakLine:!0},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12,color:re.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:re.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[re.color.backgroundTint,re.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:re.color.neutral00,borderColor:re.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},KW=Ze({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},mO),Vb=Ze({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:re.color.axisMinorSplitLine,width:1}}},mO),JW=Ze({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Vb),QW=je({logBase:10},Vb);const eq={category:KW,value:Vb,time:JW,log:QW};function oT(e,t,r,i){C(gL,function(n,a){var o=Ze(Ze({},eq[a],!0),i,!0),s=(function(u){H(l,u);function l(){var c=u!==null&&u.apply(this,arguments)||this;return c.type=t+"Axis."+a,c}return l.prototype.mergeDefaultAndTheme=function(c,f){var d=uu(this),h=d?Dl(c):{},v=f.getTheme();Ze(c,v.get(a+"Axis")),Ze(c,this.getDefaultOption()),c.type=sT(c),d&&ri(c,h,d)},l.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=Vg.createByAxisModel(this))},l.prototype.getCategories=function(c){var f=this.option;if(f.type==="category")return c?f.data:this.__ordinalMeta.categories},l.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},l.prototype.updateAxisBreaks=function(c){return{breaks:[]}},l.type=t+"Axis."+a,l.defaultOption=o,l})(r);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",sT)}function sT(e){return e.type||(e.data?"category":"value")}var tq=(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 Q(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),ot(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})(),Kc=["x","y"];function uT(e){return(e.type==="interval"||e.type==="time")&&!If(e)}var rq=(function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=Sn,r.dimensions=Kc,r}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,i=this.getAxis("y").scale;if(!(!uT(r)||!uT(i))){var n=Of(r,null),a=Of(i,null),o=this.dataToPoint([n[0],a[0]]),s=this.dataToPoint([n[1],a[1]]),u=n[1]-n[0],l=a[1]-a[0];if(!(!u||!l)){var c=(s[0]-o[0])/u,f=(s[1]-o[1])/l,d=o[0]-n[0]*c,h=o[1]-a[0]*f,v=this._transform=[c,0,0,f,d,h];this._invTransform=Bo([],v)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(r){var i=this.getAxis("x"),n=this.getAxis("y");return i.contain(i.toLocalCoord(r[0]))&&n.contain(n.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,i){var n=this.dataToPoint(r),a=this.dataToPoint(i),o=this.getArea(),s=new fe(n[0],n[1],a[0]-n[0],a[1]-n[1]);return o.intersect(s)},t.prototype.dataToPoint=function(r,i,n){n=n||[];var a=r[0],o=r[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return br(n,r,this._transform);var s=this.getAxis("x"),u=this.getAxis("y");return n[0]=s.toGlobalCoord(s.dataToCoord(a,i)),n[1]=u.toGlobalCoord(u.dataToCoord(o,i)),n},t.prototype.clampData=function(r,i){var n=this.getAxis("x").scale,a=this.getAxis("y").scale,o=n.getExtent(),s=a.getExtent(),u=n.parse(r[0]),l=a.parse(r[1]);return i=i||[],i[0]=Math.min(Math.max(Math.min(o[0],o[1]),u),Math.max(o[0],o[1])),i[1]=Math.min(Math.max(Math.min(s[0],s[1]),l),Math.max(s[0],s[1])),i},t.prototype.pointToData=function(r,i,n){if(n=n||[],this._invTransform)return br(n,r,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return n[0]=a.coordToData(a.toLocalCoord(r[0]),i),n[1]=o.coordToData(o.toLocalCoord(r[1]),i),n},t.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},t.prototype.getArea=function(r){r=r||0;var i=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),a=Math.min(i[0],i[1])-r,o=Math.min(n[0],n[1])-r,s=Math.max(i[0],i[1])-a+r,u=Math.max(n[0],n[1])-o+r;return new fe(a,o,s,u)},t})(tq);function nq(e,t){var r=e.scale,i=e.model,n=AL(r,i,i.ecModel,e),a=_o(r),o=_o(t)?t.intervalStub:t,s=a?r.intervalStub:r,u=r.base,l=o.getTicks(),c=o.getTicks({expandToNicedExtent:!0}),f=l.length-1,d,h,v;if(f===1)d=h=0,v=1;else if(f===2){var p=ft(l[0].value-l[1].value),g=ft(l[1].value-l[2].value);d=h=0,p===g?v=2:(v=1,p<g?d=p/g:h=g/p)}else{var m=o.getConfig().interval;d=(1-(l[0].value-c[0].value)/m)%1,h=(1-(c[f].value-l[f].value)/m)%1,v=f-(d?1:0)-(h?1:0)}var y=n.zoomFixMM,_=y[0]||y[1],b=[n.fixMM[0]||_,n.fixMM[1]||_],S=r.getExtent(),w=s.getExtent(),x=dL(w,b),T,k,I,$,A,D;function P(W){for(var ee=50,K=0;K<ee&&!W();K++)I=a?I*Me(u,2):zG(I),$=la(I)}function L(){T=Ae(D-I*d,$)}function z(){k=Ae(A+I*h,$)}function B(){D=d?Ae(T+I*d,$):T}function N(){A=h?Ae(k-I*h,$):k}if(b[0]&&b[1]){T=x[0],k=x[1],I=(k-T)/(v+d+h);var F=e.getExtent(),Z=ft(F[1]-F[0]);$=F6([k,T],Z,.5/v),B(),N(),wr($)&&(I=Ae(I,$))}else{var G=x[1]-x[0];I=a?Me(AA(G),1):k0(G/v,PA),$=la(I),b[0]?(T=x[0],P(function(){if(B(),A=Ae(D+I*v,$),z(),k>=x[1])return!0})):b[1]?(k=x[1],P(function(){if(N(),D=Ae(A-I*v,$),L(),T<=x[0])return!0})):P(function(){D=Ae(xl(x[0]/I)*I,$),A=Ae(na(x[1]/I)*I,$);var W=$n((A-D)/I);if(W<=v){var ee=v-W,K=void 0,ce=n.incl0||a;if(ce&&x[0]===0)K=[0,ee];else if(ce&&x[1]===0)K=[ee,0];else{var ye=na(ee/2);K=ee%2===0?[ye,ye]:T+k<x[0]+x[1]?[ye,ye+1]:[ye+1,ye]}if(D=Ae(D-I*K[0],$),A=Ae(A+I*K[1],$),L(),z(),T<=x[0]&&k>=x[1])return!0}})}yL(r,b,w,[T,k],S,{interval:I,intervalCount:v,intervalPrecision:$,niceExtent:[D,A]})}var lT=[[3,1],[0,2]],iq=(function(){function e(t,r,i){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Kc,this._initCartesian(t,r,i),this.model=t}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(t,r){var i=this._axesMap;C(this._axesList,function(o){bH(o,gH);var s=o.scale;Vr(s)&&s.setSortInfo(o.model.get("categorySortInfo"))});function n(o){for(var s=Te(o),u=[],l=s.length-1;l>=0;l--){var c=o[+s[l]];c.__alignTo?u.push(c):Cx(c)}C(u,function(f){oq(f,f.__alignTo)?Cx(f):nq(f,f.__alignTo.scale)})}n(i.x),n(i.y);var a={};C(i.x,function(o){cT(i,"y",o,a)}),C(i.y,function(o){cT(i,"x",o,a)}),this.resize(this.model,r)},e.prototype.resize=function(t,r,i){var n=Oh(t,r),a=this._rect=ti(t.getBoxLayoutParams(),n.refContainer),o=this._axesMap,s=this._coordsList,u=t.get("containLabel");if(rm(o,a),!i){var l=lq(a,s,o,u,r),c=void 0;if(u)nm?(nm(this._axesList,a),rm(o,a)):c=vT(a.clone(),"axisLabel",null,a,o,l,n);else{var f=cq(t,a,n),d=f.outerBoundsRect,h=f.parsedOuterBoundsContain,v=f.outerBoundsClamp;d&&(c=vT(d,h,v,a,o,l,n))}yO(a,o,Ur.determine,null,c,n),C(this._coordsList,function(p){p.calcAffineTransform()})}},e.prototype.getAxis=function(t,r){var i=this._axesMap[t];if(i!=null)return i[r||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(t,r){if(t!=null&&r!=null){var i="x"+t+"y"+r;return this._coordsMap[i]}ne(t)&&(r=t.yAxisIndex,t=t.xAxisIndex);for(var n=0,a=this._coordsList;n<a.length;n++)if(a[n].getAxis("x").index===t||a[n].getAxis("y").index===r)return a[n]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(t,r,i){var n=this._findConvertTarget(r);return n.cartesian?n.cartesian.dataToPoint(i):n.axis?n.axis.toGlobalCoord(n.axis.dataToCoord(i)):null},e.prototype.convertFromPixel=function(t,r,i){var n=this._findConvertTarget(r);return n.cartesian?n.cartesian.pointToData(i):n.axis?n.axis.coordToData(n.axis.toLocalCoord(i)):null},e.prototype._findConvertTarget=function(t){var r=t.seriesModel,i=t.xAxisModel||r&&r.getReferringComponents("xAxis",gr).models[0],n=t.yAxisModel||r&&r.getReferringComponents("yAxis",gr).models[0],a=t.gridModel,o=this._coordsList,s,u;if(r)s=r.coordinateSystem,xe(o,s)<0&&(s=null);else if(i&&n)s=this.getCartesian(i.componentIndex,n.componentIndex);else if(i)u=this.getAxis("x",i.componentIndex);else if(n)u=this.getAxis("y",n.componentIndex);else if(a){var l=a.coordinateSystem;l===this&&(s=this._coordsList[0])}return{cartesian:s,axis:u}},e.prototype.containPoint=function(t){var r=this._coordsList[0];if(r)return r.containPoint(t)},e.prototype._initCartesian=function(t,r,i){var n=this,a=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},u={x:0,y:0};if(r.eachComponent("xAxis",l("x"),this),r.eachComponent("yAxis",l("y"),this),!u.x||!u.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,C(s.x,function(c,f){C(s.y,function(d,h){var v="x"+f+"y"+h,p=new rq(v);p.master=n,p.model=t,n._coordsMap[v]=p,n._coordsList.push(p),p.addAxis(c),p.addAxis(d)})}),dT(s.x),dT(s.y);function l(c){return function(f,d){if(aq(f,t)){var h=f.get("position");c==="x"?h!=="top"&&h!=="bottom"&&(h=o.bottom?"top":"bottom"):h!=="left"&&h!=="right"&&(h=o.left?"right":"left"),o[h]=!0;var v=qG(f),p=new E3(c,YG(f,v),[0,0],v,h);p.onBand=_L(p.scale,f),p.inverse=f.get("inverse"),f.axis=p,p.model=f,p.grid=a,p.index=d,a._axesList.push(p),s[c][d]=p,u[c]++}}}},e.prototype.getTooltipAxes=function(t){var r=[],i=[];return C(this.getCartesians(),function(n){var a=t!=null&&t!=="auto"?n.getAxis(t):n.getBaseAxis(),o=n.getOtherAxis(a);xe(r,a)<0&&r.push(a),xe(i,o)<0&&i.push(o)}),{baseAxes:r,otherAxes:i}},e.create=function(t,r){var i=[];return t.eachComponent("grid",function(n,a){var o=new e(n,t,r);o.name="grid_"+a,o.resize(n,r,!0),n.coordinateSystem=o,i.push(o),C(o._axesList,function(s){_H(s,e.dimIdxMap)})}),t.eachSeries(function(n){var a,o;f5({targetModel:n,coordSysType:Sn,coordSysProvider:s});function s(){var u=eW(n),l=u.xAxisModel,c=u.yAxisModel;a=l.axis,o=c.axis;var f=l.getCoordSysModel(),d=f.coordinateSystem;return d.getCartesian(l.componentIndex,c.componentIndex)}a&&o&&(kx(a,n,Sn),kx(o,n,Sn))},this),i},e.dimensions=Kc,e.dimIdxMap=Ib(Kc),e})();function aq(e,t){return e.getCoordSysModel()===t}function cT(e,t,r,i){r.getAxesOnZeroOf=function(){return a?[a]:[]};var n=e[t],a,o=r.model,s=o.get(["axisLine","onZero"]),u=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(u!=null)fT(s,n[u])&&(a=n[u]);else for(var l in n)if(Ut(n,l)&&fT(s,n[l])&&!i[c(n[l])]){a=n[l];break}a&&(i[c(a)]=!0);function c(f){return f.dim+"_"+f.index}}function fT(e,t){if(!t)return!1;var r=t.scale,i=XG(r,0),n=t&&t.type!=="category"&&t.type!=="time"&&i!==Gg;return n&&e==="auto"&&eH(t)&&(n=!1),n}function dT(e){for(var t=Te(e),r,i=[],n=t.length-1;n>=0;n--){var a=e[+t[n]];fL(a.scale)&&nH(a.model,a.type)==null&&(a.model.get("alignTicks")&&a.model.get("interval")==null?i.push(a):r=a)}r||(r=i.pop()),r&&C(i,function(o){o.__alignTo=r})}function oq(e,t){return If(e.scale)||If(t.scale)||t.scale.getTicks().length<2}function sq(e,t){var r=e.getExtent(),i=r[0]+r[1];e.toGlobalCoord=e.dim==="x"?function(n){return n+t}:function(n){return i-n+t},e.toLocalCoord=e.dim==="x"?function(n){return n-t}:function(n){return i-n+t}}function rm(e,t){C(e.x,function(r){return hT(r,t.x,t.width)}),C(e.y,function(r){return hT(r,t.y,t.height)})}function hT(e,t,r){var i=[0,r],n=e.inverse?1:0;e.setExtent(i[n],i[1-n]),sq(e,t)}var nm;function uq(e){nm=e}function vT(e,t,r,i,n,a,o){yO(i,n,Ur.estimate,t,!1,o);var s=[0,0,0,0];l(0),l(1),c(i,0,NaN),c(i,1,NaN);var u=sU(s,function(d){return d>0})==null;return Tf(i,s,!0,!0,r),rm(n,i),u;function l(d){C(n[Vn[d]],function(h){if(hu(h.model)){var v=a.ensureRecord(h.model),p=v.labelInfoList;if(p)for(var g=0;g<p.length;g++){var m=p[g],y=h.scale.normalize(Al(h.scale,So(m.label).labelInfo.tick));y=d===1?1-y:y,c(m.rect,d,y),c(m.rect,1-d,NaN)}var _=v.nameLayout;if(_){var y=bo(v.nameLocation)?.5:NaN;c(_.rect,d,y),c(_.rect,1-d,NaN)}}})}function c(d,h,v){var p=e[Vn[h]]-d[Vn[h]],g=d[go[h]]+d[Vn[h]]-(e[go[h]]+e[Vn[h]]);p=f(p,1-v),g=f(g,v);var m=lT[h][0],y=lT[h][1];s[m]=Me(s[m],p),s[y]=Me(s[y],g)}function f(d,h){return d>0&&!Ws(h)&&h>1e-4&&(d/=h),d}}function lq(e,t,r,i,n){var a=new JL(fq);return C(r,function(o){return C(o,function(s){if(hu(s.model)){var u=!i;s.axisBuilder=tW(e,t,s.model,n,a,u)}})}),a}function yO(e,t,r,i,n,a){var o=r===Ur.determine;C(t,function(l){return C(l,function(c){hu(c.model)&&(rW(c.axisBuilder,e,c.model),c.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:n}))})});var s={x:0,y:0};u(0),u(1);function u(l){s[Vn[1-l]]=e[go[l]]<=a.refContainer[go[l]]*.5?0:1-l===1?2:1}C(t,function(l,c){return C(l,function(f){hu(f.model)&&((i==="all"||o)&&f.axisBuilder.build({axisName:!0},{nameMarginLevel:s[c]}),o&&f.axisBuilder.build({axisLine:!0}))})})}function cq(e,t,r){var i,n=e.get("outerBoundsMode",!0);n==="same"?i=t.clone():(n==null||n==="auto")&&(i=ti(e.get("outerBounds",!0)||iO,r.refContainer));var a=e.get("outerBoundsContain",!0),o;a==null||a==="auto"||xe(["all","axisLabel"],a)<0?o="all":o=a;var s=[cg(J(e.get("outerBoundsClampWidth",!0),Vf[0]),t.width),cg(J(e.get("outerBoundsClampHeight",!0),Vf[1]),t.height)];return{outerBoundsRect:i,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var fq=function(e,t,r,i,n,a){var o=r.axis.dim==="x"?"y":"x";QL(e,t,r,i,n,a),bo(e.nameLocation)||C(t.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&tO(s.labelInfoList,s.dirVec,i,n)})};function dq(e,t){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return hq(r,e,t),r.seriesInvolved&&pq(r,e),r}function hq(e,t,r){var i=t.getComponent("tooltip"),n=t.getComponent("axisPointer"),a=n.get("link",!0)||[],o=[];C(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var u=vu(s.model),l=e.coordSysAxesInfo[u]={};e.coordSysMap[u]=s;var c=s.model,f=c.getModel("tooltip",i);if(C(s.getAxes(),He(p,!1,null)),s.getTooltipAxes&&i&&f.get("show")){var d=f.get("trigger")==="axis",h=f.get(["axisPointer","type"])==="cross",v=s.getTooltipAxes(f.get(["axisPointer","axis"]));(d||h)&&C(v.baseAxes,He(p,h?"cross":!0,d)),h&&C(v.otherAxes,He(p,"cross",!1))}function p(g,m,y){var _=y.model.getModel("axisPointer",n),b=_.get("show");if(!(!b||b==="auto"&&!g&&!im(_))){m==null&&(m=_.get("triggerTooltip")),_=g?vq(y,f,n,t,g,m):_;var S=_.get("snap"),w=_.get("triggerEmphasis"),x=vu(y.model),T=m||S||y.type==="category",k=e.axesInfo[x]={key:x,axis:y,coordSys:s,axisPointerModel:_,triggerTooltip:m,triggerEmphasis:w,involveSeries:T,snap:S,useHandle:im(_),seriesModels:[],linkGroup:null};l[x]=k,e.seriesInvolved=e.seriesInvolved||T;var I=gq(a,y);if(I!=null){var $=o[I]||(o[I]={axesInfo:{}});$.axesInfo[x]=k,$.mapper=a[I].mapper,k.linkGroup=$}}}})}function vq(e,t,r,i,n,a){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],u={};C(s,function(d){u[d]=me(o.get(d))}),u.snap=e.type!=="category"&&!!a,o.get("type")==="cross"&&(u.type="line");var l=u.label||(u.label={});if(l.show==null&&(l.show=!1),n==="cross"){var c=o.get(["label","show"]);if(l.show=c??!0,!a){var f=u.lineStyle=o.get("crossStyle");f&&je(l,f.textStyle)}}return e.model.getModel("axisPointer",new et(u,r,i))}function pq(e,t){t.eachSeries(function(r){var i=r.coordinateSystem,n=r.get(["tooltip","trigger"],!0),a=r.get(["tooltip","show"],!0);!i||!i.model||n==="none"||n===!1||n==="item"||a===!1||r.get(["axisPointer","show"],!0)===!1||C(e.coordSysAxesInfo[vu(i.model)],function(o){var s=o.axis;i.getAxis(s.dim)===s&&(o.seriesModels.push(r),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=r.getData().count())})})}function gq(e,t){for(var r=t.model,i=t.dim,n=0;n<e.length;n++){var a=e[n]||{};if(hp(a[i+"AxisId"],r.id)||hp(a[i+"AxisIndex"],r.componentIndex)||hp(a[i+"AxisName"],r.name))return n}}function hp(e,t){return e==="all"||q(e)&&xe(e,t)>=0||e===t}function mq(e){var t=Gb(e);if(t){var r=t.axisPointerModel,i=t.axis.scale,n=r.option,a=r.get("status"),o=r.get("value");o!=null&&(o=i.parse(o));var s=im(r);a==null&&(n.status=s?"show":"hide");var u=i.getExtent();(o==null||o>u[1])&&(o=u[1]),o<u[0]&&(o=u[0]),n.value=o,s&&(n.status=t.axis.scale.isBlank()?"hide":"show")}}function Gb(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[vu(e)]}function yq(e){var t=Gb(e);return t&&t.axisPointerModel}function im(e){return!!e.get(["handle","show"])}function vu(e){return e.type+"||"+e.id}var pT={},_O=(function(e){H(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,i,n,a){this.axisPointerClass&&mq(r),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,n,!0)},t.prototype.updateAxisPointer=function(r,i,n,a){this._doUpdateAxisPointerClass(r,n,!1)},t.prototype.remove=function(r,i){var n=this._axisPointer;n&&n.remove(i)},t.prototype.dispose=function(r,i){this._disposeAxisPointer(i),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(r,i,n){var a=t.getAxisPointerClass(this.axisPointerClass);if(a){var o=yq(r);o?(this._axisPointer||(this._axisPointer=new a)).render(r,o,i,n):this._disposeAxisPointer(i)}},t.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},t.registerAxisPointerClass=function(r,i){pT[r]=i},t.getAxisPointerClass=function(r){return r&&pT[r]},t.type="axis",t})(Nr),am=ke();function _q(e,t,r,i){var n=r.axis;if(!n.scale.isBlank()){var a=r.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),u=i.coordinateSystem.getRect(),l=n.getTicksCoords({tickModel:a,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(l.length){var c=s.length,f=am(e).splitAreaColors,d=se(),h=0;if(f)for(var v=0;v<l.length;v++){var p=f.get(l[v].tickValue);if(p!=null){h=(p+(c-1)*v)%c;break}}var g=n.toGlobalCoord(l[0].coord),m=o.getAreaStyle();s=q(s)?s:[s];for(var v=1;v<l.length;v++){var y=n.toGlobalCoord(l[v].coord),_=void 0,b=void 0,S=void 0,w=void 0;n.isHorizontal()?(_=g,b=u.y,S=y-_,w=u.height,g=_+S):(_=u.x,b=g,S=u.width,w=y-b,g=b+w);var x=l[v-1].tickValue;x!=null&&d.set(x,h),t.add(new st({anid:x!=null?"area_"+x:null,shape:{x:_,y:b,width:S,height:w},style:je({fill:s[h]},m),autoBatch:!0,silent:!0})),h=(h+1)%c}am(e).splitAreaColors=d}}}function bq(e){am(e).splitAreaColors=null}var Sq=["splitArea","splitLine","minorSplitLine","breakArea"],bO=(function(e){H(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,i,n,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new ut,this.group.add(this._axisGroup),!!hu(r)){this._axisGroup.add(r.axis.axisBuilder.group),C(Sq,function(u){r.get([u,"show"])&&wq[u](this,this._axisGroup,r,r.getCoordSysModel(),n)},this);var s=a&&a.type==="changeAxisOrder"&&a.isInitSort;s||AP(o,this._axisGroup,r),e.prototype.render.call(this,r,i,n,a)}},t.prototype.remove=function(){bq(this)},t.type="cartesianAxis",t})(_O),wq={splitLine:function(e,t,r,i,n){var a=r.axis;if(!a.scale.isBlank()){var o=r.getModel("splitLine"),s=o.getModel("lineStyle"),u=s.get("color"),l=o.get("showMinLine")!==!1,c=o.get("showMaxLine")!==!1;u=q(u)?u:[u];for(var f=i.coordinateSystem.getRect(),d=a.isHorizontal(),h=0,v=a.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),p=[],g=[],m=s.getLineStyle(),y=0;y<v.length;y++){var _=a.toGlobalCoord(v[y].coord);if(!(y===0&&!l||y===v.length-1&&!c)){var b=v[y].tickValue;d?(p[0]=_,p[1]=f.y,g[0]=_,g[1]=f.y+f.height):(p[0]=f.x,p[1]=_,g[0]=f.x+f.width,g[1]=_);var S=h++%u.length,w=new An({anid:b!=null?"line_"+b:null,autoBatch:!0,shape:{x1:p[0],y1:p[1],x2:g[0],y2:g[1]},style:je({stroke:u[S]},m),silent:!0});ou(w.shape,m.lineWidth),t.add(w)}}}},minorSplitLine:function(e,t,r,i,n){var a=r.axis,o=r.getModel("minorSplitLine"),s=o.getModel("lineStyle"),u=i.coordinateSystem.getRect(),l=a.isHorizontal(),c=a.getMinorTicksCoords();if(c.length)for(var f=[],d=[],h=s.getLineStyle(),v=0;v<c.length;v++)for(var p=0;p<c[v].length;p++){var g=a.toGlobalCoord(c[v][p].coord);l?(f[0]=g,f[1]=u.y,d[0]=g,d[1]=u.y+u.height):(f[0]=u.x,f[1]=g,d[0]=u.x+u.width,d[1]=g);var m=new An({anid:"minor_line_"+c[v][p].tickValue,autoBatch:!0,shape:{x1:f[0],y1:f[1],x2:d[0],y2:d[1]},style:h,silent:!0});ou(m.shape,h.lineWidth),t.add(m)}},splitArea:function(e,t,r,i,n){_q(e,t,r,i)},breakArea:function(e,t,r,i,n){r.axis.scale}},SO=(function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="xAxis",t})(bO),xq=(function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=SO.type,r}return t.type="yAxis",t})(bO),Tq=(function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="grid",r}return t.prototype.render=function(r,i){this.group.removeAll(),r.get("show")&&this.group.add(new st({shape:r.coordinateSystem.getRect(),style:je({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t})(Nr),gT={offset:0};function wO(e){e.registerComponentView(Tq),e.registerComponentModel(lW),e.registerCoordinateSystem("cartesian2d",iq),oT(e,"x",tm,gT),oT(e,"y",tm,gT),e.registerComponentView(SO),e.registerComponentView(xq),e.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}function kq(e){Pn(wO),e.registerSeriesModel(HW),e.registerChartView(XW),e.registerLayout(jb("scatter"))}var mT=An.prototype,vp=Th.prototype,xO=(function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e})();(function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(xO);function pp(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}var Iq=(function(e){H(t,e);function t(r){var i=e.call(this,r)||this;return i.type="ec-line",i}return t.prototype.getDefaultStyle=function(){return{stroke:re.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new xO},t.prototype.buildPath=function(r,i){pp(i)?mT.buildPath.call(this,r,i):vp.buildPath.call(this,r,i)},t.prototype.pointAt=function(r){return pp(this.shape)?mT.pointAt.call(this,r):vp.pointAt.call(this,r)},t.prototype.tangentAt=function(r){var i=this.shape,n=pp(i)?[i.x2-i.x1,i.y2-i.y1]:vp.tangentAt.call(this,r);return g0(n,n)},t})(Pe),gp=["fromSymbol","toSymbol"];function yT(e){return"_"+e+"Type"}function _T(e,t,r){var i=t.getItemVisual(r,e);if(!i||i==="none")return i;var n=t.getItemVisual(r,e+"Size"),a=t.getItemVisual(r,e+"Rotate"),o=t.getItemVisual(r,e+"Offset"),s=t.getItemVisual(r,e+"KeepAspect"),u=yb(n),l=Rh(o||0,u);return i+u+l+(a||"")+(s||"")}function bT(e,t,r){var i=t.getItemVisual(r,e);if(!(!i||i==="none")){var n=t.getItemVisual(r,e+"Size"),a=t.getItemVisual(r,e+"Rotate"),o=t.getItemVisual(r,e+"Offset"),s=t.getItemVisual(r,e+"KeepAspect"),u=yb(n),l=Rh(o||0,u),c=ni(i,-u[0]/2+l[0],-u[1]/2+l[1],u[0],u[1],null,s);return c.__specifiedRotation=a==null||isNaN(a)?void 0:+a*Math.PI/180||0,c.name=e,c}}function $q(e){var t=new Iq({name:"line",subPixelOptimize:!0});return om(t.shape,e),t}function om(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 Dq=(function(e){H(t,e);function t(r,i,n){var a=e.call(this)||this;return a._createLine(r,i,n),a}return t.prototype._createLine=function(r,i,n){var a=r.hostModel,o=r.getItemLayout(i),s=r.getItemVisual(i,"z2"),u=$q(o);u.shape.percent=0,St(u,{z2:J(s,0),shape:{percent:1}},a,i),this.add(u),C(gp,function(l){var c=bT(l,r,i);this.add(c),this[yT(l)]=_T(l,r,i)},this),this._updateCommonStl(r,i,n)},t.prototype.updateData=function(r,i,n){var a=r.hostModel,o=this.childOfName("line"),s=r.getItemLayout(i),u={shape:{}};om(u.shape,s),lt(o,u,a,i),C(gp,function(l){var c=_T(l,r,i),f=yT(l);if(this[f]!==c){this.remove(this.childOfName(l));var d=bT(l,r,i);this.add(d)}this[f]=c},this),this._updateCommonStl(r,i,n)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(r,i,n){var a=r.hostModel,o=this.childOfName("line"),s=n&&n.emphasisLineStyle,u=n&&n.blurLineStyle,l=n&&n.selectLineStyle,c=n&&n.labelStatesModels,f=n&&n.emphasisDisabled,d=n&&n.focus,h=n&&n.blurScope;if(!n||r.hasItemOption){var v=r.getItemModel(i),p=v.getModel("emphasis");s=p.getModel("lineStyle").getLineStyle(),u=v.getModel(["blur","lineStyle"]).getLineStyle(),l=v.getModel(["select","lineStyle"]).getLineStyle(),f=p.get("disabled"),d=p.get("focus"),h=p.get("blurScope"),c=ui(v)}var g=r.getItemVisual(i,"style"),m=g.stroke;o.useStyle(g),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=s,o.ensureState("blur").style=u,o.ensureState("select").style=l,C(gp,function(w){var x=this.childOfName(w);if(x){x.setColor(m),x.style.opacity=g.opacity;for(var T=0;T<Yt.length;T++){var k=Yt[T],I=o.getState(k);if(I){var $=I.style||{},A=x.ensureState(k),D=A.style||(A.style={});$.stroke!=null&&(D[x.__isEmptyBrush?"stroke":"fill"]=$.stroke),$.opacity!=null&&(D.opacity=$.opacity)}}x.markRedraw()}},this);var y=a.getRawValue(i);pa(this,c,{labelDataIndex:i,labelFetcher:{getFormattedLabel:function(w,x){return a.getFormattedLabel(w,x,r.dataType)}},inheritColor:m||re.color.neutral99,defaultOpacity:g.opacity,defaultText:(y==null?r.getName(i):isFinite(y)?Ae(y,10):y)+""});var _=this.getTextContent();if(_){var b=c.normal;_.__align=_.style.align,_.__verticalAlign=_.style.verticalAlign,_.__position=b.get("position")||"middle";var S=b.get("distance");q(S)||(S=[S,S]),_.__labelDistance=S}this.setTextConfig({position:null,local:!0,inside:!1}),aa(this,d,h,f)},t.prototype.highlight=function(){nu(this)},t.prototype.downplay=function(){iu(this)},t.prototype.updateLayout=function(r,i){this.childOfName("line").stopAnimation(),this.setLinePoints(r.getItemLayout(i))},t.prototype.setLinePoints=function(r){var i=this.childOfName("line");om(i.shape,r),i.dirty()},t.prototype.beforeUpdate=function(){var r=this,i=r.childOfName("fromSymbol"),n=r.childOfName("toSymbol"),a=r.getTextContent();if(!i&&!n&&(!a||a.ignore))return;for(var o=1,s=this.parent;s;)s.scaleX&&(o/=s.scaleX),s=s.parent;var u=r.childOfName("line");if(!this.__dirty&&!u.__dirty)return;var l=u.shape.percent,c=u.pointAt(0),f=u.pointAt(l),d=QC([],f,c);g0(d,d);function h(I,$){var A=I.__specifiedRotation;if(A==null){var D=u.tangentAt($);I.attr("rotation",($===1?-1:1)*Math.PI/2-Math.atan2(D[1],D[0]))}else I.attr("rotation",A)}if(i&&(i.setPosition(c),h(i,0),i.scaleX=i.scaleY=o*l,i.markRedraw()),n&&(n.setPosition(f),h(n,1),n.scaleX=n.scaleY=o*l,n.markRedraw()),a&&!a.ignore){a.x=a.y=0,a.originX=a.originY=0;var v=void 0,p=void 0,g=a.__labelDistance,m=g[0]*o,y=g[1]*o,_=l/2,b=u.tangentAt(_),S=[b[1],-b[0]],w=u.pointAt(_);S[1]>0&&(S[0]=-S[0],S[1]=-S[1]);var x=b[0]<0?-1:1;if(a.__position!=="start"&&a.__position!=="end"){var T=-Math.atan2(b[1],b[0]);f[0]<c[0]&&(T=Math.PI+T),a.rotation=T}var k=void 0;switch(a.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":k=-y,p="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":k=y,p="top";break;default:k=0,p="middle"}switch(a.__position){case"end":a.x=d[0]*m+f[0],a.y=d[1]*y+f[1],v=d[0]>.8?"left":d[0]<-.8?"right":"center",p=d[1]>.8?"top":d[1]<-.8?"bottom":"middle";break;case"start":a.x=-d[0]*m+c[0],a.y=-d[1]*y+c[1],v=d[0]>.8?"right":d[0]<-.8?"left":"center",p=d[1]>.8?"bottom":d[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":a.x=m*x+c[0],a.y=c[1]+k,v=b[0]<0?"right":"left",a.originX=-m*x,a.originY=-k;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":a.x=w[0],a.y=w[1]+k,v="center",a.originY=-k;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":a.x=-m*x+f[0],a.y=f[1]+k,v=b[0]>=0?"right":"left",a.originX=m*x,a.originY=-k;break}a.scaleX=a.scaleY=o,a.setStyle({verticalAlign:a.__verticalAlign||p,align:a.__align||v})}},t})(ut),Cq=(function(){function e(t){this.group=new ut,this._LineCtor=t||Dq}return e.prototype.updateData=function(t){var r=this;this._progressiveEls=null;var i=this,n=i.group,a=i._lineData;i._lineData=t,a||n.removeAll();var o=ST(t);t.diff(a).add(function(s){r._doAdd(t,s,o)}).update(function(s,u){r._doUpdate(a,t,u,s,o)}).remove(function(s){n.remove(a.getItemGraphicEl(s))}).execute()},e.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(r,i){r.updateLayout(t,i)},this)},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=ST(t),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r,i){this._progressiveEls=[];function n(u){!u.isGroup&&!Aq(u)&&(u.incremental=i,u.ensureState("emphasis").hoverLayer=$h)}for(var a=t.start;a<t.end;a++){var o=r.getItemLayout(a);if(mp(o)){var s=new this._LineCtor(r,a,this._seriesScope);s.traverse(n),this.group.add(s),r.setItemGraphicEl(a,s),this._progressiveEls.push(s)}}},e.prototype.remove=function(){this.group.removeAll()},e.prototype.eachRendered=function(t){$l(this._progressiveEls||this.group,t)},e.prototype._doAdd=function(t,r,i){var n=t.getItemLayout(r);if(mp(n)){var a=new this._LineCtor(t,r,i);t.setItemGraphicEl(r,a),this.group.add(a)}},e.prototype._doUpdate=function(t,r,i,n,a){var o=t.getItemGraphicEl(i);if(!mp(r.getItemLayout(n))){this.group.remove(o);return}o?o.updateData(r,n,a):o=new this._LineCtor(r,n,a),r.setItemGraphicEl(n,o),this.group.add(o)},e})();function Aq(e){return e.animators&&e.animators.length>0}function ST(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:ui(t)}}function wT(e){return isNaN(e[0])||isNaN(e[1])}function mp(e){return e&&!wT(e[0])&&!wT(e[1])}var wo="funnel",Pq=(function(e){H(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){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new fO(Fe(this.getData,this),Fe(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.getInitialData=function(r,i){return cO(this,{coordDimensions:["value"],encodeDefaulter:He(nM,this)})},t.prototype._defaultLabelLine=function(r){Qs(r,"labelLine",["show"]);var i=r.labelLine,n=r.emphasis.labelLine;i.show=i.show&&r.label.show,n.show=n.show&&r.emphasis.label.show},t.prototype.getDataParams=function(r){var i=this.getData(),n=e.prototype.getDataParams.call(this,r),a=i.mapDimension("value"),o=i.getSum(a);return n.percent=o?+(i.get(a,r)/o*100).toFixed(2):0,n.$vars.push("percent"),n},t.type="series."+wo,t.defaultOption={coordinateSystemUsage:"box",z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:65,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:re.color.neutral00,borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:re.color.primary}}},t})(tr),Mq=["itemStyle","opacity"],Lq=(function(e){H(t,e);function t(r,i){var n=e.call(this)||this,a=n,o=new Vo,s=new At;return a.setTextContent(s),n.setTextGuideLine(o),n.updateData(r,i,!0),n}return t.prototype.updateData=function(r,i,n){var a=this,o=r.hostModel,s=r.getItemModel(i),u=r.getItemLayout(i),l=s.getModel("emphasis"),c=s.get(Mq);c=c??1,n||Ih(a),a.useStyle(r.getItemVisual(i,"style")),a.style.lineJoin="round",n?(a.setShape({points:u.points}),a.style.opacity=0,St(a,{style:{opacity:c}},o,i)):lt(a,{style:{opacity:c},shape:{points:u.points}},o,i),au(a,s),this._updateLabel(r,i),aa(this,l.get("focus"),l.get("blurScope"),l.get("disabled"))},t.prototype._updateLabel=function(r,i){var n=this,a=this.getTextGuideLine(),o=n.getTextContent(),s=r.hostModel,u=r.getItemModel(i),l=r.getItemLayout(i),c=l.label,f=r.getItemVisual(i,"style"),d=f.fill;pa(o,ui(u),{labelFetcher:r.hostModel,labelDataIndex:i,defaultOpacity:f.opacity,defaultText:r.getName(i)},{normal:{align:c.textAlign,verticalAlign:c.verticalAlign}});var h=u.getModel("label"),v=h.get("color"),p=v==="inherit"?d:null;n.setTextConfig({local:!0,inside:!!c.inside,insideStroke:p,outsideFill:p});var g=c.linePoints;a.setShape({points:g}),n.textGuideLineConfig={anchor:g?new de(g[0][0],g[0][1]):null},lt(o,{style:{x:c.x,y:c.y}},s,i),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),Eb(n,zb(u),{stroke:d})},t})(xh),Oq=(function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=wo,r.ignoreLabelLineUpdate=!0,r}return t.prototype.render=function(r,i,n){var a=r.getData(),o=this._data,s=this.group;a.diff(o).add(function(u){var l=new Lq(a,u);a.setItemGraphicEl(u,l),s.add(l)}).update(function(u,l){var c=o.getItemGraphicEl(l);c.updateData(a,u),s.add(c),a.setItemGraphicEl(u,c)}).remove(function(u){var l=o.getItemGraphicEl(u);qa(l,r,u)}).execute(),this._data=a},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type=wo,t})(Ht);function Eq(e,t){for(var r=e.mapDimension("value"),i=e.mapArray(r,function(u){return u}),n=[],a=t==="ascending",o=0,s=e.count();o<s;o++)n[o]=o;return le(t)?n.sort(t):t!=="none"&&n.sort(function(u,l){return a?i[u]-i[l]:i[l]-i[u]}),n}function zq(e){var t=e.hostModel,r=TO(t);e.each(function(i){var n=e.getItemModel(i),a=n.getModel("label"),o=a.get("position"),s=n.getModel("labelLine"),u=e.getItemLayout(i),l=u.points,c=o==="inner"||o==="inside"||o==="center"||o==="insideLeft"||o==="insideRight",f,d,h,v;if(c)o==="insideLeft"?(d=(l[0][0]+l[3][0])/2+5,h=(l[0][1]+l[3][1])/2,f="left"):o==="insideRight"?(d=(l[1][0]+l[2][0])/2-5,h=(l[1][1]+l[2][1])/2,f="right"):(d=(l[0][0]+l[1][0]+l[2][0]+l[3][0])/4,h=(l[0][1]+l[1][1]+l[2][1]+l[3][1])/4,f="center"),v=[[d,h],[d,h]];else{var p=void 0,g=void 0,m=void 0,y=void 0,_=s.get("length");te(o)&&(!r&&xe(["top","bottom"],o)>-1&&(o="left"),r&&xe(["left","right"],o)>-1&&(o="bottom")),o==="left"?(p=(l[3][0]+l[0][0])/2,g=(l[3][1]+l[0][1])/2,m=p-_,d=m-5,f="right"):o==="right"?(p=(l[1][0]+l[2][0])/2,g=(l[1][1]+l[2][1])/2,m=p+_,d=m+5,f="left"):o==="top"?(p=(l[3][0]+l[0][0])/2,g=(l[3][1]+l[0][1])/2,y=g-_,h=y-5,f="center"):o==="bottom"?(p=(l[1][0]+l[2][0])/2,g=(l[1][1]+l[2][1])/2,y=g+_,h=y+5,f="center"):o==="rightTop"?(p=r?l[3][0]:l[1][0],g=r?l[3][1]:l[1][1],r?(y=g-_,h=y-5,f="center"):(m=p+_,d=m+5,f="top")):o==="rightBottom"?(p=l[2][0],g=l[2][1],r?(y=g+_,h=y+5,f="center"):(m=p+_,d=m+5,f="bottom")):o==="leftTop"?(p=l[0][0],g=r?l[0][1]:l[1][1],r?(y=g-_,h=y-5,f="center"):(m=p-_,d=m-5,f="right")):o==="leftBottom"?(p=r?l[1][0]:l[3][0],g=r?l[1][1]:l[2][1],r?(y=g+_,h=y+5,f="center"):(m=p-_,d=m-5,f="right")):(p=(l[1][0]+l[2][0])/2,g=(l[1][1]+l[2][1])/2,r?(y=g+_,h=y+5,f="center"):(m=p+_,d=m+5,f="left")),r?(m=p,d=m):(y=g,h=y),v=[[p,g],[m,y]]}u.label={linePoints:v,x:d,y:h,verticalAlign:"middle",textAlign:f,inside:c}})}var Rq=ZA(wo,Nq);function Nq(e,t){e.eachSeriesByType(wo,function(r){var i=r.getData(),n=i.mapDimension("value"),a=r.get("sort"),o=Oh(r,t),s=ti(r.getBoxLayoutParams(),o.refContainer),u=TO(r),l=s.width,c=s.height,f=Eq(i,a),d=s.x,h=s.y,v=u?[$e(r.get("minSize"),c),$e(r.get("maxSize"),c)]:[$e(r.get("minSize"),l),$e(r.get("maxSize"),l)],p=i.getDataExtent(n),g=r.get("min"),m=r.get("max");g==null&&(g=Math.min(p[0],0)),m==null&&(m=p[1]);var y=r.get("funnelAlign"),_=r.get("gap"),b=u?l:c,S=(b-_*(i.count()-1))/i.count(),w=function(L,z){if(u){var B=i.get(n,L)||0,N=Js(B,[g,m],v,!0),F=void 0;switch(y){case"top":F=h;break;case"center":F=h+(c-N)/2;break;case"bottom":F=h+(c-N);break}return[[z,F],[z,F+N]]}var Z=i.get(n,L)||0,G=Js(Z,[g,m],v,!0),W;switch(y){case"left":W=d;break;case"center":W=d+(l-G)/2;break;case"right":W=d+l-G;break}return[[W,z],[W+G,z]]};a==="ascending"&&(S=-S,_=-_,u?d+=l:h+=c,f=f.reverse());for(var x=0;x<f.length;x++){var T=f[x],k=f[x+1],I=i.getItemModel(T);if(u){var $=I.get(["itemStyle","width"]);$==null?$=S:($=$e($,l),a==="ascending"&&($=-$));var A=w(T,d),D=w(k,d+$);d+=$+_,i.setItemLayout(T,{points:A.concat(D.slice().reverse())})}else{var P=I.get(["itemStyle","height"]);P==null?P=S:(P=$e(P,c),a==="ascending"&&(P=-P));var A=w(T,h),D=w(k,h+P);h+=P+_,i.setItemLayout(T,{points:A.concat(D.slice().reverse())})}}zq(i)})}function TO(e){return e.get("orient")==="horizontal"}function Uq(e){e.registerChartView(Oq),e.registerSeriesModel(Pq),e.registerLayout(Rq),e.registerProcessor(lO(wo))}var Ni=ke(),xT=me,yp=Fe,Bq=(function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(t,r,i,n){var a=r.get("value"),o=r.get("status");if(this._axisModel=t,this._axisPointerModel=r,this._api=i,!(!n&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,u=this._handle;if(!o||o==="hide"){s&&s.hide(),u&&u.hide();return}s&&s.show(),u&&u.show();var l={};this.makeElOption(l,a,t,r,i);var c=l.graphicKey;c!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=c;var f=this._moveAnimation=this.determineAnimation(t,r);if(!s)s=this._group=new ut,this.createPointerEl(s,l,t,r),this.createLabelEl(s,l,t,r),i.getZr().add(s);else{var d=He(TT,r,f);this.updatePointerEl(s,l,d),this.updateLabelEl(s,l,d,r)}IT(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 i=r.get("animation"),n=t.axis,a=n.type==="category",o=r.get("snap");if(!o&&!a)return!1;if(i==="auto"||i==null){var s=this.animationThreshold;if(a&&Yo(n).w>s)return!0;if(o){var u=Gb(t).seriesDataCount,l=n.getExtent();return Math.abs(l[0]-l[1])/u>s}return!1}return i===!0},e.prototype.makeElOption=function(t,r,i,n,a){},e.prototype.createPointerEl=function(t,r,i,n){var a=r.pointer;if(a){var o=Ni(t).pointerEl=new Cj[a.type](xT(r.pointer));t.add(o)}},e.prototype.createLabelEl=function(t,r,i,n){if(r.label){var a=Ni(t).labelEl=new At(xT(r.label));t.add(a),kT(a,n)}},e.prototype.updatePointerEl=function(t,r,i){var n=Ni(t).pointerEl;n&&r.pointer&&(n.setStyle(r.pointer.style),i(n,{shape:r.pointer.shape}))},e.prototype.updateLabelEl=function(t,r,i,n){var a=Ni(t).labelEl;a&&(a.setStyle(r.label.style),i(a,{x:r.label.x,y:r.label.y}),kT(a,n))},e.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,i=this._api.getZr(),n=this._handle,a=r.getModel("handle"),o=r.get("status");if(!a.get("show")||!o||o==="hide"){n&&i.remove(n),this._handle=null;return}var s;this._handle||(s=!0,n=this._handle=G0(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(l){tA(l.event)},onmousedown:yp(this._onHandleDragMove,this,0,0),drift:yp(this._onHandleDragMove,this),ondragend:yp(this._onHandleDragEnd,this)}),i.add(n)),IT(n,r,!1),n.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var u=a.get("size");q(u)||(u=[u,u]),n.scaleX=u[0]/2,n.scaleY=u[1]/2,$M(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,r){TT(this._axisPointerModel,!r&&this._moveAnimation,this._handle,_p(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(t,r){var i=this._handle;if(i){this._dragging=!0;var n=this.updateHandleTransform(_p(i),[t,r],this._axisModel,this._axisPointerModel);this._payloadInfo=n,i.stopAnimation(),i.attr(_p(n)),Ni(i).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var r=this._payloadInfo,i=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:i.axis.dim,axisIndex:i.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(),i=this._group,n=this._handle;r&&i&&(this._lastGraphicKey=null,i&&r.remove(i),n&&r.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),Lg(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(t,r,i){return i=i||0,{x:t[i],y:t[1-i],width:r[i],height:r[1-i]}},e})();function TT(e,t,r,i){kO(Ni(r).lastProp,i)||(Ni(r).lastProp=i,t?lt(r,i,e):(r.stopAnimation(),r.attr(i)))}function kO(e,t){if(ne(e)&&ne(t)){var r=!0;return C(t,function(i,n){r=r&&kO(e[n],i)}),!!r}else return e===t}function kT(e,t){e[t.get(["label","show"])?"show":"hide"]()}function _p(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function IT(e,t,r){var i=t.get("z"),n=t.get("zlevel");e&&e.traverse(function(a){a.type!=="group"&&(i!=null&&(a.z=i),n!=null&&(a.zlevel=n),a.silent=r)})}function Fq(e){var t=e.get("type"),r=e.getModel(t+"Style"),i;return t==="line"?(i=r.getLineStyle(),i.fill=null):t==="shadow"&&(i=r.getAreaStyle(),i.stroke=null),i}function jq(e,t,r,i,n){var a=r.get("value"),o=IO(a,t.axis,t.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),u=Lh(s.get("padding")||0),l=s.getFont(),c=kA(o,l),f=n.position,d=c.width+u[1]+u[3],h=c.height+u[0]+u[2],v=n.align;v==="right"&&(f[0]-=d),v==="center"&&(f[0]-=d/2);var p=n.verticalAlign;p==="bottom"&&(f[1]-=h),p==="middle"&&(f[1]-=h/2),Zq(f,d,h,i);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=t.get(["axisLine","lineStyle","color"])),e.label={x:f[0],y:f[1],style:mo(s,{text:o,font:l,fill:s.getTextColor(),padding:u,backgroundColor:g}),z2:10}}function Zq(e,t,r,i){var n=i.getWidth(),a=i.getHeight();e[0]=Math.min(e[0]+t,n)-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 IO(e,t,r,i,n){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:n.precision}),o=n.formatter;if(o){var s={value:zf(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};C(i,function(u){var l=r.getSeriesByIndex(u.seriesIndex),c=u.dataIndexInside,f=l&&l.getDataParams(c);f&&s.seriesData.push(f)}),te(o)?a=o.replace("{value}",a):le(o)&&(a=o(s))}return a}function $O(e,t,r){var i=nn();return _0(i,i,r.rotation),Vp(i,i,r.position),V0([e.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],i)}function Vq(e,t,r,i,n,a){var o=Kn.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=n.get(["label","margin"]),jq(t,i,n,a,{position:$O(i.axis,e,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function Gq(e,t,r){return r=r||0,{x1:e[r],y1:e[1-r],x2:t[r],y2:t[1-r]}}function Hq(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}}function Wq(e,t,r){return Yo(e,{fromStat:{sers:Q(t,function(i){return r.getSeriesByIndex(i.seriesIndex)})},min:1}).w}function qq(e,t,r){return[Me(Ct(t[0],t[1]),e-r/2),Ct(e+r/2,Me(t[0],t[1]))]}var Yq=(function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,i,n,a,o){var s=n.axis,u=s.grid,l=a.get("type"),c=s.getGlobalExtent(),f=$T(u,s).getOtherAxis(s).getGlobalExtent(),d=s.toGlobalCoord(s.dataToCoord(i,!0));if(l&&l!=="none"){var h=Fq(a),v=Xq[l](s,d,c,f,a.get("seriesDataIndices"),a.ecModel);v.style=h,r.graphicKey=v.type,r.pointer=v}var p=Zf(u.getRect(),n);Vq(i,r,p,n,a,o)},t.prototype.getHandleTransform=function(r,i,n){var a=Zf(i.axis.grid.getRect(),i,{labelInside:!1});a.labelMargin=n.get(["handle","margin"]);var o=$O(i.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,i,n,a){var o=n.axis,s=o.grid,u=o.getGlobalExtent(!0),l=$T(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,f=[r.x,r.y];f[c]+=i[c],f[c]=Ct(u[1],f[c]),f[c]=Me(u[0],f[c]);var d=(l[1]+l[0])/2,h=[d,d];h[c]=f[c];var v=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:r.rotation,cursorPoint:h,tooltipOption:v[c]}},t})(Bq);function $T(e,t){var r={};return r[t.dim+"AxisIndex"]=t.index,e.getCartesian(r)}var Xq={line:function(e,t,r,i){var n=Gq([t,i[0]],[t,i[1]],DT(e));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(e,t,r,i,n,a){var o=Wq(e,n,a),s=i[1]-i[0],u=qq(t,r,o),l=u[0],c=u[1];return{type:"Rect",shape:Hq([l,i[0]],[c-l,s],DT(e))}}};function DT(e){return e.dim==="x"?0:1}var Kq=(function(e){H(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:re.color.border,width:1,type:"dashed"},shadowStyle:{color:re.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:re.color.neutral00,padding:[5,7,5,7],backgroundColor:re.color.accent60,borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:re.color.accent40,throttle:40}},t})(Be),bn=ke(),Jq=C;function DO(e,t,r){if(!pe.node){var i=t.getZr();bn(i).records||(bn(i).records={}),Qq(i,t);var n=bn(i).records[e]||(bn(i).records[e]={});n.handler=r}}function Qq(e,t){if(bn(e).initialized)return;bn(e).initialized=!0,r("click",He(bp,"click")),r("mousemove",He(bp,"mousemove")),r("mousewheel",He(bp,"mousewheel")),r("globalout",tY);function r(i,n){e.on(i,function(a){var o=rY(t);Jq(bn(e).records,function(s){s&&n(s,a,o.dispatchAction)}),eY(o.pendings,t)})}}function eY(e,t){var r=e.showTip.length,i=e.hideTip.length,n;r?n=e.showTip[r-1]:i&&(n=e.hideTip[i-1]),n&&(n.dispatchAction=null,t.dispatchAction(n))}function tY(e,t,r){e.handler("leave",null,r)}function bp(e,t,r,i){t.handler(e,r,i)}function rY(e){var t={showTip:[],hideTip:[]},r=function(i){var n=t[i.type];n?n.push(i):(i.dispatchAction=r,e.dispatchAction(i))};return{dispatchAction:r,pendings:t}}function sm(e,t){if(!pe.node){var r=t.getZr(),i=(bn(r).records||{})[e];i&&(bn(r).records[e]=null)}}var nY=(function(e){H(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,i,n){var a=i.getComponent("tooltip"),o=r.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click|mousewheel";DO("axisPointer",n,function(s,u,l){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&l({type:"updateAxisPointer",currTrigger:s,x:u&&u.offsetX,y:u&&u.offsetY})})},t.prototype.remove=function(r,i){sm("axisPointer",i)},t.prototype.dispose=function(r,i){sm("axisPointer",i)},t.type="axisPointer",t})(Nr);function CO(e,t){var r=[],i=e.seriesIndex,n;if(i==null||!(n=t.getSeriesByIndex(i)))return{point:[]};var a=n.getData(),o=ia(a,e);if(o==null||o<0||q(o))return{point:[]};var s=a.getItemGraphicEl(o),u=n.coordinateSystem;if(n.getTooltipPosition)r=n.getTooltipPosition(o)||[];else if(u&&u.dataToPoint)if(e.isStacked){var l=u.getBaseAxis(),c=u.getOtherAxis(l),f=c.dim,d=l.dim,h=f==="x"||f==="radius"?1:0,v=a.mapDimension(d),p=[];p[h]=a.get(v,o),p[1-h]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=u.dataToPoint(p)||[]}else r=u.dataToPoint(a.getValues(Q(u.dimensions,function(m){return a.mapDimension(m)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),r=[g.x+g.width/2,g.y+g.height/2]}return{point:r,el:s}}var CT=ke();function iY(e,t,r){var i=e.currTrigger,n=[e.x,e.y],a=e,o=e.dispatchAction||Fe(r.dispatchAction,r),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){Jc(n)&&(n=CO({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var u=Jc(n),l=a.axesInfo,c=s.axesInfo,f=i==="leave"||Jc(n),d={},h={},v={list:[],map:{}},p={showPointer:He(oY,h),showTooltip:He(sY,v)};C(s.coordSysMap,function(m,y){var _=u||m.containPoint(n);C(s.coordSysAxesInfo[y],function(b,S){var w=b.axis,x=fY(l,b);if(!f&&_&&(!l||x)){var T=x&&x.value;T==null&&!u&&(T=w.pointToData(n)),T!=null&&AT(b,T,p,!1,d)}})});var g={};return C(c,function(m,y){var _=m.linkGroup;_&&!h[y]&&C(_.axesInfo,function(b,S){var w=h[S];if(b!==m&&w){var x=w.value;_.mapper&&(x=m.axis.scale.parse(_.mapper(x,PT(b),PT(m)))),g[m.key]=x}})}),C(g,function(m,y){AT(c[y],m,p,!0,d)}),uY(h,c,d),lY(v,n,e,o),cY(c,o,r),d}}function AT(e,t,r,i,n){var a=e.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!e.involveSeries){r.showPointer(e,t);return}var o=aY(t,e),s=o.payloadBatch,u=o.snapToValue;s[0]&&n.seriesIndex==null&&V(n,s[0]),!i&&e.snap&&a.containData(u)&&u!=null&&(t=u),r.showPointer(e,t,s),r.showTooltip(e,o,u)}}function aY(e,t){var r=t.axis,i=r.dim,n=e,a=[],o=Number.MAX_VALUE,s=-1;return C(t.seriesModels,function(u,l){var c=u.getData().mapDimensionsAll(i),f,d;if(u.getAxisTooltipData){var h=u.getAxisTooltipData(c,e,r);d=h.dataIndices,f=h.nestestValue}else{if(d=u.indicesOfNearest(i,c[0],e,r.type==="category"?.5:null),!d.length)return;f=u.getData().get(c[0],d[0])}if(wr(f)){var v=e-f,p=Math.abs(v);p<=o&&((p<o||v>=0&&s<0)&&(o=p,s=v,n=f,a.length=0),C(d,function(g){a.push({seriesIndex:u.seriesIndex,dataIndexInside:g,dataIndex:u.getData().getRawIndex(g)})}))}}),{payloadBatch:a,snapToValue:n}}function oY(e,t,r,i){e[t.key]={value:r,payloadBatch:i}}function sY(e,t,r,i){var n=r.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!n.length)){var u=t.coordSys.model,l=vu(u),c=e.map[l];c||(c=e.map[l]={coordSysId:u.id,coordSysIndex:u.componentIndex,coordSysType:u.type,coordSysMainType:u.mainType,dataByAxis:[]},e.list.push(c)),c.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:n.slice()})}}function uY(e,t,r){var i=r.axesInfo=[];C(t,function(n,a){var o=n.axisPointerModel.option,s=e[a];s?(!n.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!n.useHandle&&(o.status="hide"),o.status==="show"&&i.push({axisDim:n.axis.dim,axisIndex:n.axis.model.componentIndex,value:o.value})})}function lY(e,t,r,i){if(Jc(t)||!e.list.length){i({type:"hideTip"});return}var n=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:n.dataIndexInside,dataIndex:n.dataIndex,seriesIndex:n.seriesIndex,dataByCoordSys:e.list})}function cY(e,t,r){var i=r.getZr(),n="axisPointerLastHighlights",a=CT(i)[n]||{},o=CT(i)[n]={};C(e,function(c,f){var d=c.axisPointerModel.option;d.status==="show"&&c.triggerEmphasis&&C(d.seriesDataIndices,function(h){o[h.seriesIndex+"|"+h.dataIndex]=h})});var s=[],u=[];function l(c){return{seriesIndex:c.seriesIndex,dataIndex:c.dataIndex}}C(a,function(c,f){!o[f]&&u.push(l(c))}),C(o,function(c,f){!a[f]&&s.push(l(c))}),u.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:u}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function fY(e,t){for(var r=0;r<(e||[]).length;r++){var i=e[r];if(t.axis.dim===i.axisDim&&t.axis.model.componentIndex===i.axisIndex)return i}}function PT(e){var t=e.axis.model,r={},i=r.axisDim=e.axis.dim;return r.axisIndex=r[i+"AxisIndex"]=t.componentIndex,r.axisName=r[i+"AxisName"]=t.name,r.axisId=r[i+"AxisId"]=t.id,r}function Jc(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function AO(e){_O.registerAxisPointerClass("CartesianAxisPointer",Yq),e.registerComponentModel(Kq),e.registerComponentView(nY),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var r=t.axisPointer.link;r&&!q(r)&&(t.axisPointer.link=[r])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(t,r){t.getComponent("axisPointer").coordSysAxesInfo=dq(t,r)}}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},iY)}function dY(e){Pn(wO),Pn(AO)}function hY(e,t){var r=Lh(t.get("padding")),i=t.getItemStyle(["color","opacity"]);i.fill=t.get("backgroundColor");var n=new st({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:i,silent:!0,z2:-1});return n}var vY=(function(e){H(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|mousewheel",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:re.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:re.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:re.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:re.color.tertiary,fontSize:14}},t})(Be);function PO(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function MO(e){if(pe.domSupported){for(var t=document.documentElement.style,r=0,i=e.length;r<i;r++)if(e[r]in t)return e[r]}}var LO=MO(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),pY=MO(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function OO(e,t){if(!e)return t;t=qP(t,!0);var r=e.indexOf(t);return e=r===-1?t:"-"+e.slice(0,r)+"-"+t,e.toLowerCase()}function gY(e,t){var r=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return r?r[t]:null}var mY=OO(pY,"transition"),Hb=OO(LO,"transform"),yY="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(pe.transform3dSupported?"will-change:transform;":"");function _Y(e){return e=e==="left"?"right":e==="right"?"left":e==="top"?"bottom":"top",e}function bY(e,t,r){if(!te(r)||r==="inside")return"";var i=e.get("backgroundColor"),n=e.get("borderWidth");t=oa(t);var a=_Y(r),o=Math.max(Math.round(n)*1.5,6),s="",u=Hb+":",l;xe(["left","right"],a)>-1?(s+="top:50%",u+="translateY(-50%) rotate("+(l=a==="left"?-225:-45)+"deg)"):(s+="left:50%",u+="translateX(-50%) rotate("+(l=a==="top"?225:45)+"deg)");var c=l*Math.PI/180,f=o+n,d=f*Math.abs(Math.cos(c))+f*Math.abs(Math.sin(c)),h=Math.round(((d-Math.SQRT2*n)/2+Math.SQRT2*n-(d-f)/2)*100)/100;s+=";"+a+":-"+h+"px";var v=t+" solid "+n+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+u+";","border-bottom:"+v,"border-right:"+v,"background-color:"+i+";"];return\'<div style="\'+p.join("")+\'"></div>\'}function SY(e,t,r){var i="cubic-bezier(0.23,1,0.32,1)",n="",a="";return r&&(n=" "+e/2+"s "+i,a="opacity"+n+",visibility"+n),t||(n=" "+e+"s "+i,a+=(a.length?",":"")+(pe.transformSupported?""+Hb+n:",left"+n+",top"+n)),mY+":"+a}function MT(e,t,r){var i=e.toFixed(0)+"px",n=t.toFixed(0)+"px";if(!pe.transformSupported)return r?"top:"+n+";left:"+i+";":[["top",n],["left",i]];var a=pe.transform3dSupported,o="translate"+(a?"3d":"")+"("+i+","+n+(a?",0":"")+")";return r?"top:0;left:0;"+Hb+":"+o+";":[["top",0],["left",0],[LO,o]]}function wY(e){var t=[],r=e.get("fontSize"),i=e.getTextColor();i&&t.push("color:"+i),t.push("font:"+e.getFont());var n=J(e.get("lineHeight"),Math.round(r*3/2));r&&t.push("line-height:"+n+"px");var a=e.get("textShadowColor"),o=e.get("textShadowBlur")||0,s=e.get("textShadowOffsetX")||0,u=e.get("textShadowOffsetY")||0;return a&&o&&t.push("text-shadow:"+s+"px "+u+"px "+o+"px "+a),C(["decoration","align"],function(l){var c=e.get(l);c&&t.push("text-"+l+":"+c)}),t.join(";")}function xY(e,t,r,i){var n=[],a=e.get("transitionDuration"),o=e.get("backgroundColor"),s=e.get("shadowBlur"),u=e.get("shadowColor"),l=e.get("shadowOffsetX"),c=e.get("shadowOffsetY"),f=e.getModel("textStyle"),d=kM(e,"html"),h=l+"px "+c+"px "+s+"px "+u;return n.push("box-shadow:"+h),t&&a>0&&n.push(SY(a,r,i)),o&&n.push("background-color:"+o),C(["width","color","radius"],function(v){var p="border-"+v,g=qP(p),m=e.get(g);m!=null&&n.push(p+":"+m+(v==="color"?"":"px"))}),n.push(wY(f)),d!=null&&n.push("padding:"+Lh(d).join("px ")+"px"),n.join(";")+";"}function LT(e,t,r,i,n){var a=t&&t.painter;if(r){var o=a&&a.getViewportRoot();o&&_U(e,o,r,i,n)}else{e[0]=i,e[1]=n;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 TY=(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,pe.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var n=this._zr=t.getZr(),a=r.appendTo,o=a&&(te(a)?document.querySelector(a):Hs(a)?a:le(a)&&a(t.getDom()));LT(this._styleCoord,n,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(i),this._api=t,this._container=o;var s=this;i.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},i.onmousemove=function(u){if(u=u||window.event,!s._enterable){var l=n.handler,c=n.painter.getViewportRoot();lr(c,u,!0),l.dispatch("mousemove",u)}},i.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(),i=gY(r,"position"),n=r.style;n.position!=="absolute"&&i!=="absolute"&&(n.position="relative")}var a=t.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this._enableDisplayTransition=t.get("displayTransition")&&t.get("transitionDuration")>0,this.el.className=t.get("className")||""},e.prototype.show=function(t,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var i=this.el,n=i.style,a=this._styleCoord;i.innerHTML?n.cssText=yY+xY(t,!this._firstShow,this._longHide,this._enableDisplayTransition)+MT(a[0],a[1],!0)+("border-color:"+oa(r)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):n.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(t,r,i,n,a){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(te(a)&&i.get("trigger")==="item"&&!PO(i)&&(s=bY(i,n,a)),te(t))o.innerHTML=t+s;else if(t){o.innerHTML="",q(t)||(t=[t]);for(var u=0;u<t.length;u++)Hs(t[u])&&t[u].parentNode!==o&&o.appendChild(t[u]);if(s&&o.childNodes.length){var l=document.createElement("div");l.innerHTML=s,o.appendChild(l)}}},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 i=this._styleCoord;if(LT(i,this._zr,this._container,t,r),i[0]!=null&&i[1]!=null){var n=this.el.style,a=MT(i[0],i[1]);C(a,function(o){n[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;this._enableDisplayTransition?(r.visibility="hidden",r.opacity="0"):r.display="none",pe.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(Fe(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._zr;bU(t&&t.painter&&t.painter.getViewportRoot(),this._container);var r=this.el;if(r){r.onmouseenter=r.onmousemove=r.onmouseleave=null;var i=r.parentNode;i&&i.removeChild(r)}this.el=this._container=null},e})(),kY=(function(){function e(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),ET(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,i,n,a){var o=this;ne(t)&&Vt(""),this.el&&this._zr.remove(this.el);var s=i.getModel("textStyle");this.el=new At({style:{rich:r.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:n,textShadowColor:s.get("textShadowColor"),fill:i.get(["textStyle","color"]),padding:kM(i,"richText"),verticalAlign:"top",align:"left"},z:i.get("z")}),C(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(l){o.el.style[l]=i.get(l)}),C(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(l){o.el.style[l]=s.get(l)||0}),this._zr.add(this.el);var u=this;this.el.on("mouseover",function(){u._enterable&&(clearTimeout(u._hideTimeout),u._show=!0),u._inContent=!0}),this.el.on("mouseout",function(){u._enterable&&u._show&&u.hideLater(u._hideDelay),u._inContent=!1})},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el,r=this.el.getBoundingRect(),i=OT(t.style);return[r.width+i.left+i.right,r.height+i.top+i.bottom]},e.prototype.moveTo=function(t,r){var i=this.el;if(i){var n=this._styleCoord;ET(n,this._zr,t,r),t=n[0],r=n[1];var a=i.style,o=Zn(a.borderWidth||0),s=OT(a);i.x=t+o+s.left,i.y=r+o+s.top,i.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(Fe(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e})();function Zn(e){return Math.max(0,e)}function OT(e){var t=Zn(e.shadowBlur||0),r=Zn(e.shadowOffsetX||0),i=Zn(e.shadowOffsetY||0);return{left:Zn(t-r),right:Zn(t+r),top:Zn(t-i),bottom:Zn(t+i)}}function ET(e,t,r,i){e[0]=r,e[1]=i,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var IY=new st({shape:{x:-1,y:-1,width:2,height:2}}),$Y=(function(e){H(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,i){if(!(pe.node||!i.getDom())){var n=r.getComponent("tooltip"),a=this._renderMode=lB(n.get("renderMode"));this._tooltipContent=a==="richText"?new kY(i):new TY(i,{appendTo:n.get("appendToBody",!0)?"body":n.get("appendTo",!0)})}},t.prototype.render=function(r,i,n){if(!(pe.node||!n.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=i,this._api=n;var a=this._tooltipContent;a.update(r),a.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?$M(this,"_updatePosition",50,"fixRate"):Lg(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var r=this._tooltipModel,i=r.get("triggerOn");DO("itemTooltip",this._api,Fe(function(n,a,o){i!=="none"&&(i.indexOf(n)>=0?this._tryShow(a,o):n==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var r=this._tooltipModel,i=this._ecModel,n=this._api,a=r.get("triggerOn");if(r.get("trigger")!=="axis"&&(this._lastDataByCoordSys=null,this._cbParamsList=null),this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&o.manuallyShowTip(r,i,n,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(r,i,n,a){if(!(a.from===this.uid||pe.node||!n.getDom())){var o=zT(a,n);this._ticket="";var s=a.dataByCoordSys,u=PY(a,i,n);if(u){var l=u.el.getBoundingRect().clone();l.applyTransform(u.el.transform),this._tryShow({offsetX:l.x+l.width/2,offsetY:l.y+l.height/2,target:u.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var c=IY;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,i,n,a))return;var f=CO(a,i),d=f.point[0],h=f.point[1];d!=null&&h!=null&&this._tryShow({offsetX:d,offsetY:h,target:f.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(n.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:n.getZr().findHover(a.x,a.y).target},o))}},t.prototype.manuallyHideTip=function(r,i,n,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,a.from!==this.uid&&this._hide(zT(a,n))},t.prototype._manuallyAxisShowTip=function(r,i,n,a){var o=a.seriesIndex,s=a.dataIndex,u=i.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||u==null)){var l=i.getSeriesByIndex(o);if(l){var c=l.getData(),f=ps([c.getItemModel(s),l,(l.coordinateSystem||{}).model],this._tooltipModel);if(f.get("trigger")==="axis")return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},t.prototype._tryShow=function(r,i){var n=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(n){var s=we(n);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null,this._cbParamsList=null;var u,l;ks(n,function(c){if(c.tooltipDisabled)return u=l=null,!0;u||l||(we(c).dataIndex!=null?u=c:we(c).tooltipConfig!=null&&(l=c))},!0),u?this._showSeriesItemTooltip(r,u,i):l?this._showComponentItemTooltip(r,l,i):this._hide(i)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(i)}},t.prototype._showOrMove=function(r,i){var n=r.get("showDelay");i=Fe(i,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(i,n):i()},t.prototype._showAxisTooltip=function(r,i){var n=this._ecModel,a=this._tooltipModel,o=[i.offsetX,i.offsetY],s=ps([i.tooltipOption],a),u=this._renderMode,l=[],c=sa("section",{blocks:[],noHeader:!0}),f=[],d=new Hv;C(r,function(y){C(y.dataByAxis,function(_){var b=n.getComponent(_.axisDim+"Axis",_.axisIndex),S=_.value,w=b.axis,x=w.scale.parse(S);if(!(!b||S==null)){var T=IO(S,w,n,_.seriesDataIndices,_.valueLabelOpt),k=sa("section",{header:T,noHeader:!Qr(T),sortBlocks:!0,blocks:[]});c.blocks.push(k),C(_.seriesDataIndices,function(I){var $=n.getSeriesByIndex(I.seriesIndex),A=I.dataIndexInside,D=$.getDataParams(A);if(!(D.dataIndex<0)){D.axisDim=_.axisDim,D.axisIndex=_.axisIndex,D.axisType=_.axisType,D.axisId=_.axisId,D.axisValue=zf(b.axis,{value:x}),D.axisValueLabel=T,D.marker=d.makeTooltipMarker("item",oa(D.color),u);var P=D1($.formatTooltip(A,!0,null)),L=P.frag;if(L){var z=ps([$],a).get("valueFormatter");k.blocks.push(z?V({valueFormatter:z},L):L)}P.text&&f.push(P.text),l.push(D)}})}})}),c.blocks.reverse(),f.reverse();var h=i.position,v=s.get("order"),p=L1(c,d,u,v,n.get("useUTC"),s.get("textStyle"));p&&f.unshift(p);var g=u==="richText"?`\n\n`:"<br/>",m=f.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,l)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,l):this._showTooltipContent(s,m,l,Math.random()+"",o[0],o[1],h,null,d)})},t.prototype._showSeriesItemTooltip=function(r,i,n){var a=this._ecModel,o=we(i),s=o.seriesIndex,u=a.getSeriesByIndex(s),l=o.dataModel||u,c=o.dataIndex,f=o.dataType,d=l.getData(f),h=this._renderMode,v=r.positionDefault,p=ps([d.getItemModel(c),l,u&&(u.coordinateSystem||{}).model],this._tooltipModel,v?{position:v}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var m=l.getDataParams(c,f),y=new Hv;m.marker=y.makeTooltipMarker("item",oa(m.color),h);var _=D1(l.formatTooltip(c,!1,f)),b=p.get("order"),S=p.get("valueFormatter"),w=_.frag,x=w?L1(S?V({valueFormatter:S},w):w,y,h,b,a.get("useUTC"),p.get("textStyle")):_.text,T="item_"+l.name+"_"+c;this._showOrMove(p,function(){this._showTooltipContent(p,x,m,T,r.offsetX,r.offsetY,r.position,r.target,y)}),n({type:"showTip",dataIndexInside:c,dataIndex:d.getRawIndex(c),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(r,i,n){var a=this._renderMode==="html",o=we(i),s=o.tooltipConfig,u=s.option||{},l=u.encodeHTMLContent;if(te(u)){var c=u;u={content:c,formatter:c},l=!0}l&&a&&u.content&&(u=me(u),u.content=zt(u.content));var f=[u],d=this._ecModel.getComponent(o.componentMainType,o.componentIndex);d&&f.push(d),f.push({formatter:u.content});var h=r.positionDefault,v=ps(f,this._tooltipModel,h?{position:h}:null),p=v.get("content"),g=Math.random()+"",m=new Hv;this._showOrMove(v,function(){var y=me(v.get("formatterParams")||{});this._showTooltipContent(v,p,y,g,r.offsetX,r.offsetY,r.position,i,m)}),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(r,i,n,a,o,s,u,l,c){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var f=this._tooltipContent;f.setEnterable(r.get("enterable"));var d=r.get("formatter");u=u||r.get("position");var h=i,v=this._getNearestPoint([o,s],n,r.get("trigger"),r.get("borderColor"),r.get("defaultBorderColor",!0)),p=v.color;if(d)if(te(d)){var g=r.ecModel.get("useUTC"),m=q(n)?n[0]:n,y=m&&m.axisType&&m.axisType.indexOf("time")>=0;h=d,y&&(h=Mh(m.axisValue,h,g)),h=YP(h,n,!0)}else if(le(d)){var _=Fe(function(b,S){b===this._ticket&&(f.setContent(S,c,r,p,u),this._updatePosition(r,u,o,s,f,n,l))},this);this._ticket=a,h=d(n,a,_)}else h=d;f.setContent(h,c,r,p,u),f.show(r,p),this._updatePosition(r,u,o,s,f,n,l)}},t.prototype._getNearestPoint=function(r,i,n,a,o){if(n==="axis"||q(i))return{color:a||o};if(!q(i))return{color:a||i.color||i.borderColor}},t.prototype._updatePosition=function(r,i,n,a,o,s,u){var l=this._api.getWidth(),c=this._api.getHeight();i=i||r.get("position");var f=o.getSize(),d=r.get("align"),h=r.get("verticalAlign"),v=u&&u.getBoundingRect().clone();if(u&&v.applyTransform(u.transform),le(i)&&(i=i([n,a],s,o.el,v,{viewSize:[l,c],contentSize:f.slice()})),q(i))n=$e(i[0],l),a=$e(i[1],c);else if(ne(i)){var p=i;p.width=f[0],p.height=f[1];var g=ti(p,{width:l,height:c});n=g.x,a=g.y,d=null,h=null}else if(te(i)&&u){var m=AY(i,v,f,r.get("borderWidth"));n=m[0],a=m[1]}else{var m=DY(n,a,o,l,c,d?null:20,h?null:20);n=m[0],a=m[1]}if(d&&(n-=RT(d)?f[0]/2:d==="right"?f[0]:0),h&&(a-=RT(h)?f[1]/2:h==="bottom"?f[1]:0),PO(r)){var m=CY(n,a,o,l,c);n=m[0],a=m[1]}o.moveTo(n,a)},t.prototype._updateContentNotChangedOnAxis=function(r,i){var n=this._lastDataByCoordSys,a=this._cbParamsList,o=!!n&&n.length===r.length;return o&&C(n,function(s,u){var l=s.dataByAxis||[],c=r[u]||{},f=c.dataByAxis||[];o=o&&l.length===f.length,o&&C(l,function(d,h){var v=f[h]||{},p=d.seriesDataIndices||[],g=v.seriesDataIndices||[];o=o&&d.value===v.value&&d.axisType===v.axisType&&d.axisId===v.axisId&&p.length===g.length,o&&C(p,function(m,y){var _=g[y];o=o&&m.seriesIndex===_.seriesIndex&&m.dataIndex===_.dataIndex}),a&&C(d.seriesDataIndices,function(m){var y=m.seriesIndex,_=i[y],b=a[y];_&&b&&b.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=i,!!o},t.prototype._hide=function(r){this._lastDataByCoordSys=null,this._cbParamsList=null,r({type:"hideTip",from:this.uid})},t.prototype.dispose=function(r,i){pe.node||!i.getDom()||(Lg(this,"_updatePosition"),this._tooltipContent.dispose(),sm("itemTooltip",i),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},t.type="tooltip",t})(Nr);function ps(e,t,r){var i=t.ecModel,n;r?(n=new et(r,i,i),n=new et(t.option,n,i)):n=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof et&&(o=o.get("tooltip",!0)),te(o)&&(o={formatter:o}),o&&(n=new et(o,n,i)))}return n}function zT(e,t){return e.dispatchAction||Fe(t.dispatchAction,t)}function DY(e,t,r,i,n,a,o){var s=r.getSize(),u=s[0],l=s[1];return a!=null&&(e+u+a+2>i?e-=u+a:e+=a),o!=null&&(t+l+o>n?t-=l+o:t+=o),[e,t]}function CY(e,t,r,i,n){var a=r.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,i)-o,t=Math.min(t+s,n)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function AY(e,t,r,i){var n=r[0],a=r[1],o=Math.ceil(Math.SQRT2*i)+8,s=0,u=0,l=t.width,c=t.height;switch(e){case"inside":s=t.x+l/2-n/2,u=t.y+c/2-a/2;break;case"top":s=t.x+l/2-n/2,u=t.y-a-o;break;case"bottom":s=t.x+l/2-n/2,u=t.y+c+o;break;case"left":s=t.x-n-o,u=t.y+c/2-a/2;break;case"right":s=t.x+l+o,u=t.y+c/2-a/2}return[s,u]}function RT(e){return e==="center"||e==="middle"}function PY(e,t,r){var i=D0(e).queryOptionMap,n=i.keys()[0];if(!(!n||n==="series")){var a=kl(t,n,i.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=r.getViewOfComponentModel(o),u;if(s.group.traverse(function(l){var c=we(l).tooltipConfig;if(c&&c.name===e.name)return u=l,!0}),u)return{componentMainType:n,componentIndex:o.componentIndex,el:u}}}}function MY(e){Pn(AO),e.registerComponentModel(vY),e.registerComponentView($Y),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},bt),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},bt)}function LY(e,t){if(!e)return!1;for(var r=q(e)?e:[e],i=0;i<r.length;i++)if(r[i]&&r[i][t])return!0;return!1}function Cc(e){Qs(e,"label",["show"])}var Ac=ke(),xo=(function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.createdBySelf=!1,r.preventAutoZ=!0,r}return t.prototype.init=function(r,i,n){this.mergeDefaultAndTheme(r,n),this._mergeOption(r,n,!1,!0)},t.prototype.isAnimationEnabled=function(){if(pe.node)return!1;var r=this.__hostSeries;return this.getShallow("animation")&&r&&r.isAnimationEnabled()},t.prototype.mergeOption=function(r,i){this._mergeOption(r,i,!1,!1)},t.prototype._mergeOption=function(r,i,n,a){var o=this.mainType;n||i.eachSeries(function(s){var u=s.get(this.mainType,!0),l=Ac(s)[o];if(!u||!u.data){Ac(s)[o]=null;return}l?l._mergeOption(u,i,!0):(a&&Cc(u),C(u.data,function(c){c instanceof Array?(Cc(c[0]),Cc(c[1])):Cc(c)}),l=this.createMarkerModelFromSeries(u,this,i),V(l,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),l.__hostSeries=s),Ac(s)[o]=l},this)},t.prototype.formatTooltip=function(r,i,n){var a=this.getData(),o=this.getRawValue(r),s=a.getName(r);return sa("section",{header:this.name,blocks:[sa("nameValue",{name:s,value:o,noName:!s,noValue:o==null})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(r){this._data=r},t.prototype.getDataParams=function(r,i){var n=vb.prototype.getDataParams.call(this,r,i),a=this.__hostSeries;return a&&(n.seriesId=a.id,n.seriesName=a.name,n.seriesType=a.subType),n},t.getMarkerModelFromSeries=function(r,i){return Ac(r)[i]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t})(Be);Br(xo,vb.prototype);function OY(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function EY(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}function Pc(e,t,r,i,n,a,o){var s=[],u=ua(t,n),l=u?t.getCalculationInfo("stackResultDimension"):n,c=Gf(t,l,e),f=t.hostModel,d=f.indicesOfNearest(r,l,c)[0];s[a]=t.get(i,d),s[o]=t.get(l,d);var h=t.get(n,d),v=mn(t.get(n,d));return v=Math.min(v,20),v>=0&&(s[o]=+s[o].toFixed(v)),[s,h]}var Mc={min:He(Pc,"min"),max:He(Pc,"max"),average:He(Pc,"average"),median:He(Pc,"median")};function NT(e,t){if(t){var r=e.getData(),i=e.coordinateSystem,n=i&&i.dimensions;if(!EY(t)&&!q(t.coord)&&q(n)){var a=EO(t,r,i,e);if(t=me(t),t.type&&Mc[t.type]&&a.baseAxis&&a.valueAxis){var o=xe(n,a.baseAxis.dim),s=xe(n,a.valueAxis.dim),u=Mc[t.type](r,a.valueAxis.dim,a.baseDataDim,a.valueDataDim,o,s);t.coord=u[0],t.value=u[1]}else t.coord=[t.xAxis!=null?t.xAxis:t.radiusAxis,t.yAxis!=null?t.yAxis:t.angleAxis]}if(t.coord==null||!q(n)){t.coord=[];var l=e.getBaseAxis();if(l&&t.type&&Mc[t.type]){var c=i.getOtherAxis(l);c&&(t.value=Gf(r,r.mapDimension(c.dim),t.type))}}else for(var f=t.coord,d=0;d<2;d++)Mc[f[d]]&&(f[d]=Gf(r,r.mapDimension(n[d]),f[d]));return t}}function EO(e,t,r,i){var n={};return e.valueIndex!=null||e.valueDim!=null?(n.valueDataDim=e.valueIndex!=null?t.getDimension(e.valueIndex):e.valueDim,n.valueAxis=r.getAxis(zY(i,n.valueDataDim)),n.baseAxis=r.getOtherAxis(n.valueAxis),n.baseDataDim=t.mapDimension(n.baseAxis.dim)):(n.baseAxis=i.getBaseAxis(),n.valueAxis=r.getOtherAxis(n.baseAxis),n.baseDataDim=t.mapDimension(n.baseAxis.dim),n.valueDataDim=t.mapDimension(n.valueAxis.dim)),n}function zY(e,t){var r=e.getData().getDimensionInfo(t);return r&&r.coordDim}function UT(e,t){return e&&e.containData&&t.coord&&!OY(t)?e.containData(t.coord):!0}function RY(e,t){return e?function(r,i,n,a){var o=a<2?r.coord&&r.coord[a]:r.value;return Ka(o,t[a])}:function(r,i,n,a){return Ka(r.value,t[a])}}function Gf(e,t,r){if(r==="average"){var i=0,n=0;return e.each(t,function(a,o){isNaN(a)||(i+=a,n++)}),i/n}else return r==="median"?e.getMedian(t):e.getDataExtent(t)[r==="max"?1:0]}var Sp=ke(),NY=(function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(){this.markerGroupMap=se()},t.prototype.render=function(r,i,n){var a=this,o=this.markerGroupMap;o.each(function(s){Sp(s).keep=!1}),i.eachSeries(function(s){var u=xo.getMarkerModelFromSeries(s,a.type);u&&a.renderSeries(s,u,i,n)}),o.each(function(s){!Sp(s).keep&&a.group.remove(s.group)}),UY(i,o,this.type)},t.prototype.markKeep=function(r){Sp(r).keep=!0},t.prototype.toggleBlurSeries=function(r,i){var n=this;C(r,function(a){var o=xo.getMarkerModelFromSeries(a,n.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(u){u&&(i?cP(u):N0(u))})}})},t.type="marker",t})(Nr);function UY(e,t,r){e.eachSeries(function(i){var n=xo.getMarkerModelFromSeries(i,r),a=t.get(i.id);if(n&&a&&a.group){var o=q0(n),s=o.z,u=o.zlevel;Y0(a.group,s,u)}})}var BY=(function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.createMarkerModelFromSeries=function(r,i,n){return new t(r,i,n)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t})(xo),Lc=ke(),FY=function(e,t,r,i){var n=e.getData(),a;if(q(i))a=i;else{var o=i.type;if(o==="min"||o==="max"||o==="average"||o==="median"||i.xAxis!=null||i.yAxis!=null){var s=void 0,u=void 0;if(i.yAxis!=null||i.xAxis!=null)s=t.getAxis(i.yAxis!=null?"y":"x"),u=qs(i.yAxis,i.xAxis);else{var l=EO(i,n,t,e);s=l.valueAxis;var c=sL(n,l.valueDataDim);u=Gf(n,c,o)}var f=s.dim==="x"?0:1,d=1-f,h=me(i),v={coord:[]};h.type=null,h.coord=[],h.coord[d]=-1/0,v.coord[d]=1/0;var p=r.get("precision");p>=0&&Re(u)&&(u=+u.toFixed(Math.min(p,20))),h.coord[f]=v.coord[f]=u,a=[h,v,{type:o,valueIndex:i.valueIndex,value:u}]}else a=[]}var g=[NT(e,a[0]),NT(e,a[1]),V({},a[2])];return g[2].type=g[2].type||null,Ze(g[2],g[0]),Ze(g[2],g[1]),g};function Hf(e){return!isNaN(e)&&!isFinite(e)}function BT(e,t,r,i){var n=1-e,a=i.dimensions[e];return Hf(t[n])&&Hf(r[n])&&t[e]===r[e]&&i.getAxis(a).containData(t[e])}function jY(e,t){if(e.type==="cartesian2d"){var r=t[0].coord,i=t[1].coord;if(r&&i&&(BT(1,r,i,e)||BT(0,r,i,e)))return!0}return UT(e,t[0])&&UT(e,t[1])}function wp(e,t,r,i,n){var a=i.coordinateSystem,o=e.getItemModel(t),s,u=$e(o.get("x"),n.getWidth()),l=$e(o.get("y"),n.getHeight());if(!isNaN(u)&&!isNaN(l))s=[u,l];else{if(i.getMarkerPosition)s=i.getMarkerPosition(e.getValues(e.dimensions,t));else{var c=a.dimensions,f=e.get(c[0],t),d=e.get(c[1],t);s=a.dataToPoint([f,d])}if(Fb(a,"cartesian2d")){var h=a.getAxis("x"),v=a.getAxis("y"),c=a.dimensions;Hf(e.get(c[0],t))?s[0]=h.toGlobalCoord(h.getExtent()[r?0:1]):Hf(e.get(c[1],t))&&(s[1]=v.toGlobalCoord(v.getExtent()[r?0:1]))}isNaN(u)||(s[0]=u),isNaN(l)||(s[1]=l)}e.setItemLayout(t,s)}var ZY=(function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.updateTransform=function(r,i,n){i.eachSeries(function(a){var o=xo.getMarkerModelFromSeries(a,"markLine");if(o){var s=o.getData(),u=Lc(o).from,l=Lc(o).to;u.each(function(c){wp(u,c,!0,a,n),wp(l,c,!1,a,n)}),s.each(function(c){s.setItemLayout(c,[u.getItemLayout(c),l.getItemLayout(c)])}),this.markerGroupMap.get(a.id).updateLayout()}},this)},t.prototype.renderSeries=function(r,i,n,a){var o=r.coordinateSystem,s=r.id,u=r.getData(),l=this.markerGroupMap,c=l.get(s)||l.set(s,new Cq);this.group.add(c.group);var f=VY(o,r,i),d=f.from,h=f.to,v=f.line;Lc(i).from=d,Lc(i).to=h,i.setData(v);var p=i.get("symbol"),g=i.get("symbolSize"),m=i.get("symbolRotate"),y=i.get("symbolOffset");q(p)||(p=[p,p]),q(g)||(g=[g,g]),q(m)||(m=[m,m]),q(y)||(y=[y,y]),f.from.each(function(b){_(d,b,!0),_(h,b,!1)}),v.each(function(b){var S=v.getItemModel(b),w=S.getModel("lineStyle").getLineStyle();v.setItemLayout(b,[d.getItemLayout(b),h.getItemLayout(b)]);var x=S.get("z2");w.stroke==null&&(w.stroke=d.getItemVisual(b,"style").fill),v.setItemVisual(b,{z2:J(x,0),fromSymbolKeepAspect:d.getItemVisual(b,"symbolKeepAspect"),fromSymbolOffset:d.getItemVisual(b,"symbolOffset"),fromSymbolRotate:d.getItemVisual(b,"symbolRotate"),fromSymbolSize:d.getItemVisual(b,"symbolSize"),fromSymbol:d.getItemVisual(b,"symbol"),toSymbolKeepAspect:h.getItemVisual(b,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(b,"symbolOffset"),toSymbolRotate:h.getItemVisual(b,"symbolRotate"),toSymbolSize:h.getItemVisual(b,"symbolSize"),toSymbol:h.getItemVisual(b,"symbol"),style:w})}),c.updateData(v),f.line.eachItemGraphicEl(function(b){we(b).dataModel=i,b.traverse(function(S){we(S).dataModel=i})});function _(b,S,w){var x=b.getItemModel(S);wp(b,S,w,r,a);var T=x.getModel("itemStyle").getItemStyle();T.fill==null&&(T.fill=EM(u,"color")),b.setItemVisual(S,{symbolKeepAspect:x.get("symbolKeepAspect"),symbolOffset:J(x.get("symbolOffset",!0),y[w?0:1]),symbolRotate:J(x.get("symbolRotate",!0),m[w?0:1]),symbolSize:J(x.get("symbolSize"),g[w?0:1]),symbol:J(x.get("symbol",!0),p[w?0:1]),style:T})}this.markKeep(c),c.group.silent=i.get("silent")||r.get("silent")},t.type="markLine",t})(NY);function VY(e,t,r){var i;e?i=Q(e&&e.dimensions,function(l){var c=t.getData(),f=c.getDimensionInfo(c.mapDimension(l))||{};return V(V({},f),{name:l,ordinalMeta:null})}):i=[{name:"value",type:"float"}];var n=new Us(i,r),a=new Us(i,r),o=new Us([],r),s=Q(r.get("data"),He(FY,t,e,r));e&&(s=ot(s,He(jY,e)));var u=RY(!!e,i);return n.initData(Q(s,function(l){return l[0]}),null,u),a.initData(Q(s,function(l){return l[1]}),null,u),o.initData(Q(s,function(l){return l[2]})),o.hasItemOption=!0,{from:n,to:a,line:o}}function GY(e){e.registerComponentModel(BY),e.registerComponentView(ZY),e.registerPreprocessor(function(t){LY(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var HY=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"])}},um=(function(e){H(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,i,n){this.mergeDefaultAndTheme(r,n),r.selected=r.selected||{},this._updateSelector(r)},t.prototype.mergeOption=function(r,i){e.prototype.mergeOption.call(this,r,i),this._updateSelector(r)},t.prototype._updateSelector=function(r){var i=r.selector,n=this.ecModel;i===!0&&(i=r.selector=["all","inverse"]),q(i)&&C(i,function(a,o){te(a)&&(a={type:a}),i[o]=Ze(a,HY(n,a.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var r=this._data;if(r[0]&&this.get("selectedMode")==="single"){for(var i=!1,n=0;n<r.length;n++){var a=r[n].get("name");if(this.isSelected(a)){this.select(a),i=!0;break}}!i&&this.select(r[0].get("name"))}},t.prototype._updateData=function(r){var i=[],n=[];r.eachRawSeries(function(u){var l=u.name;n.push(l);var c;if(u.legendVisualProvider){var f=u.legendVisualProvider,d=f.getAllNames();r.isSeriesFiltered(u)||(n=n.concat(d)),d.length?i=i.concat(d):c=!0}else c=!0;c&&$0(u)&&i.push(u.name)}),this._availableNames=n;var a=this.get("data")||i,o=se(),s=Q(a,function(u){return(te(u)||Re(u))&&(u={name:u}),o.get(u.name)?null:(o.set(u.name,!0),new et(u,this,this.ecModel))},this);this._data=ot(s,function(u){return!!u})},t.prototype.getData=function(){return this._data},t.prototype.select=function(r){var i=this.option.selected,n=this.get("selectedMode");if(n==="single"){var a=this._data;C(a,function(o){i[o.get("name")]=!1})}i[r]=!0},t.prototype.unSelect=function(r){this.get("selectedMode")!=="single"&&(this.option.selected[r]=!1)},t.prototype.toggleSelected=function(r){var i=this.option.selected;i.hasOwnProperty(r)||(i[r]=!0),this[i[r]?"unSelect":"select"](r)},t.prototype.allSelect=function(){var r=this._data,i=this.option.selected;C(r,function(n){i[n.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var r=this._data,i=this.option.selected;C(r,function(n){var a=n.get("name",!0);i.hasOwnProperty(a)||(i[a]=!0),i[a]=!i[a]})},t.prototype.isSelected=function(r){var i=this.option.selected;return!(i.hasOwnProperty(r)&&!i[r])&&xe(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",bottom:re.size.m,align:"auto",backgroundColor:re.color.transparent,borderColor:re.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:re.color.disabled,inactiveBorderColor:re.color.disabled,inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:re.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:re.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:re.color.tertiary,borderWidth:1,borderColor:re.color.border},emphasis:{selectorLabel:{show:!0,color:re.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},t})(Be),Ea=He,lm=C,Oc=ut,zO=(function(e){H(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 Oc),this.group.add(this._selectorGroup=new Oc),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(r,i,n){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 u=r.get("selector",!0),l=r.get("selectorPosition",!0);u&&(!l||l==="auto")&&(l=s==="horizontal"?"end":"start"),this.renderInner(o,r,i,n,u,s,l);var c=Oh(r,n).refContainer,f=r.getBoxLayoutParams(),d=r.get("padding"),h=ti(f,c,d),v=this.layoutInner(r,o,h,a,u,l),p=ti(je({width:v.width,height:v.height},f),c,d);this.group.x=p.x-v.x,this.group.y=p.y-v.y,this.group.markRedraw(),this.group.add(this._backgroundEl=hY(v,r))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(r,i,n,a,o,s,u){var l=this.getContentGroup(),c=se(),f=i.get("selectedMode"),d=i.get("triggerEvent"),h=[];n.eachRawSeries(function(v){!v.get("legendHoverLink")&&h.push(v.id)}),lm(i.getData(),function(v,p){var g=this,m=v.get("name");if(!this.newlineDisabled&&(m===""||m===`\n`)){var y=new Oc;y.newline=!0,l.add(y);return}var _=n.getSeriesByName(m)[0];if(!c.get(m))if(_){var b=_.getData(),S=b.getVisual("legendLineStyle")||{},w=b.getVisual("legendIcon"),x=b.getVisual("style"),T=this._createItem(_,m,p,v,i,r,S,x,w,f,a);T.on("click",Ea(FT,m,null,a,h)).on("mouseover",Ea(cm,_.name,null,a,h)).on("mouseout",Ea(fm,_.name,null,a,h)),n.ssr&&T.eachChild(function(k){var I=we(k);I.seriesIndex=_.seriesIndex,I.dataIndex=p,I.ssrType="legend"}),d&&T.eachChild(function(k){g.packEventData(k,i,_,p,m)}),c.set(m,!0)}else n.eachRawSeries(function(k){var I=this;if(!c.get(m)&&k.legendVisualProvider){var $=k.legendVisualProvider;if(!$.containName(m))return;var A=$.indexOfName(m),D=$.getItemVisual(A,"style"),P=$.getItemVisual(A,"legendIcon"),L=zr(D.fill);L&&L[3]===0&&(L[3]=.2,D=V(V({},D),{fill:Sl(L,"rgba")}));var z=this._createItem(k,m,p,v,i,r,{},D,P,f,a);z.on("click",Ea(FT,null,m,a,h)).on("mouseover",Ea(cm,null,m,a,h)).on("mouseout",Ea(fm,null,m,a,h)),n.ssr&&z.eachChild(function(B){var N=we(B);N.seriesIndex=k.seriesIndex,N.dataIndex=p,N.ssrType="legend"}),d&&z.eachChild(function(B){I.packEventData(B,i,k,p,m)}),c.set(m,!0)}},this)},this),o&&this._createSelector(o,i,a,s,u)},t.prototype.packEventData=function(r,i,n,a,o){var s={componentType:"legend",componentIndex:i.componentIndex,dataIndex:a,value:o,seriesIndex:n.seriesIndex};we(r).eventData=s},t.prototype._createSelector=function(r,i,n,a,o){var s=this.getSelectorGroup();lm(r,function(l){var c=l.type,f=new At({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect",legendId:i.id})}});s.add(f);var d=i.getModel("selectorLabel"),h=i.getModel(["emphasis","selectorLabel"]);pa(f,{normal:d,emphasis:h},{defaultText:l.title}),_g(f)})},t.prototype._createItem=function(r,i,n,a,o,s,u,l,c,f,d){var h=r.visualDrawType,v=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(i),m=a.get("symbolRotate"),y=a.get("symbolKeepAspect"),_=a.get("icon");c=_||c||"roundRect";var b=WY(c,a,u,l,h,g,d),S=new Oc,w=a.getModel("textStyle");if(le(r.getLegendIcon)&&(!_||_==="inherit"))S.add(r.getLegendIcon({itemWidth:v,itemHeight:p,icon:c,iconRotate:m,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:y}));else{var x=_==="inherit"&&r.getData().getVisual("symbol")?m==="inherit"?r.getData().getVisual("symbolRotate"):m:0;S.add(qY({itemWidth:v,itemHeight:p,icon:c,iconRotate:x,itemStyle:b.itemStyle,symbolKeepAspect:y}))}var T=s==="left"?v+5:-5,k=s,I=o.get("formatter"),$=i;te(I)&&I?$=I.replace("{name}",i??""):le(I)&&($=I(i));var A=g?w.getTextColor():a.get("inactiveColor");S.add(new At({style:mo(w,{text:$,x:T,y:p/2,fill:A,align:k,verticalAlign:"middle"},{inheritColor:A})}));var D=new st({shape:S.getBoundingRect(),style:{fill:"transparent"}}),P=a.getModel("tooltip");return P.get("show")&&Dh({el:D,componentModel:o,itemName:i,itemTooltipOption:P.option}),S.add(D),S.eachChild(function(L){L.silent=!0}),D.silent=!f,this.getContentGroup().add(S),_g(S),S.__legendDataIndex=n,S},t.prototype.layoutInner=function(r,i,n,a,o,s){var u=this.getContentGroup(),l=this.getSelectorGroup();zs(r.get("orient"),u,r.get("itemGap"),n.width,n.height);var c=u.getBoundingRect(),f=[-c.x,-c.y];if(l.markRedraw(),u.markRedraw(),o){zs("horizontal",l,r.get("selectorItemGap",!0));var d=l.getBoundingRect(),h=[-d.x,-d.y],v=r.get("selectorButtonGap",!0),p=r.getOrient().index,g=p===0?"width":"height",m=p===0?"height":"width",y=p===0?"y":"x";s==="end"?h[p]+=c[g]+v:f[p]+=d[g]+v,h[1-p]+=c[m]/2-d[m]/2,l.x=h[0],l.y=h[1],u.x=f[0],u.y=f[1];var _={x:0,y:0};return _[g]=c[g]+v+d[g],_[m]=Math.max(c[m],d[m]),_[y]=Math.min(0,d[y]+h[1-p]),_}else return u.x=f[0],u.y=f[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t})(Nr);function WY(e,t,r,i,n,a,o){function s(g,m){g.lineWidth==="auto"&&(g.lineWidth=m.lineWidth>0?2:0),lm(g,function(y,_){g[_]==="inherit"&&(g[_]=m[_])})}var u=t.getModel("itemStyle"),l=u.getItemStyle(),c=e.lastIndexOf("empty",0)===0?"fill":"stroke",f=u.getShallow("decal");l.decal=!f||f==="inherit"?i.decal:Ng(f,o),l.fill==="inherit"&&(l.fill=i[n]),l.stroke==="inherit"&&(l.stroke=i[c]),l.opacity==="inherit"&&(l.opacity=(n==="fill"?i:r).opacity),s(l,i);var d=t.getModel("lineStyle"),h=d.getLineStyle();if(s(h,r),l.fill==="auto"&&(l.fill=i.fill),l.stroke==="auto"&&(l.stroke=i.fill),h.stroke==="auto"&&(h.stroke=i.fill),!a){var v=t.get("inactiveBorderWidth"),p=l[c];l.lineWidth=v==="auto"?i.lineWidth>0&&p?2:0:l.lineWidth,l.fill=t.get("inactiveColor"),l.stroke=t.get("inactiveBorderColor"),h.stroke=d.get("inactiveColor"),h.lineWidth=d.get("inactiveWidth")}return{itemStyle:l,lineStyle:h}}function qY(e){var t=e.icon||"roundRect",r=ni(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=re.color.neutral00,r.style.lineWidth=2),r}function FT(e,t,r,i){fm(e,t,r,i),r.dispatchAction({type:"legendToggleSelect",name:e??t}),cm(e,t,r,i)}function cm(e,t,r,i){r.usingTHL()||r.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:i})}function fm(e,t,r,i){r.usingTHL()||r.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:i})}function gs(e,t,r){var i=e==="allSelect"||e==="inverseSelect",n={},a=[];r.eachComponent({mainType:"legend",query:t},function(s){i?s[e]():s[e](t.name),jT(s,n),a.push(s.componentIndex)});var o={};return r.eachComponent("legend",function(s){C(n,function(u,l){s[u?"select":"unSelect"](l)}),jT(s,o)}),i?{selected:o,legendIndex:a}:{name:t.name,selected:o}}function jT(e,t){var r=t||{};return C(e.getData(),function(i){var n=i.get("name");if(!(n===`\n`||n==="")){var a=e.isSelected(n);Ut(r,n)?r[n]=r[n]&&a:r[n]=a}}),r}function YY(e){e.registerAction("legendToggleSelect","legendselectchanged",He(gs,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",He(gs,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",He(gs,"inverseSelect")),e.registerAction("legendSelect","legendselected",He(gs,"select")),e.registerAction("legendUnSelect","legendunselected",He(gs,"unSelect"))}var XY=A0(KY);function KY(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries(function(r){for(var i=0;i<t.length;i++)if(!t[i].isSelected(r.name))return!1;return!0})}function RO(e){e.registerComponentModel(um),e.registerComponentView(zO),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,XY),e.registerSubTypeDefaulter("legend",function(){return"plain"}),YY(e)}var JY=(function(e){H(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,i,n){var a=Dl(r);e.prototype.init.call(this,r,i,n),ZT(this,r,a)},t.prototype.mergeOption=function(r,i){e.prototype.mergeOption.call(this,r,i),ZT(this,this.option,r)},t.type="legend.scroll",t.defaultOption=zP(um.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:re.color.accent50,pageIconInactiveColor:re.color.accent10,pageIconSize:15,pageTextStyle:{color:re.color.tertiary},animationDurationUpdate:800}),t})(um);function ZT(e,t,r){var i=e.getOrient(),n=[1,1];n[i.index]=0,ri(t,r,{type:"box",ignoreSize:!!n})}var VT=ut,xp=["width","height"],Tp=["x","y"],QY=(function(e){H(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 VT),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new VT)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(r,i,n,a,o,s,u){var l=this;e.prototype.renderInner.call(this,r,i,n,a,o,s,u);var c=this._controllerGroup,f=i.get("pageIconSize",!0),d=q(f)?f:[f,f];v("pagePrev",0);var h=i.getModel("pageTextStyle");c.add(new At({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),v("pageNext",1);function v(p,g){var m=p+"DataIndex",y=G0(i.get("pageIcons",!0)[i.getOrient().name][g],{onclick:Fe(l._pageGo,l,m,i,a)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});y.name=p,c.add(y)}},t.prototype.layoutInner=function(r,i,n,a,o,s){var u=this.getSelectorGroup(),l=r.getOrient().index,c=xp[l],f=Tp[l],d=xp[1-l],h=Tp[1-l];o&&zs("horizontal",u,r.get("selectorItemGap",!0));var v=r.get("selectorButtonGap",!0),p=u.getBoundingRect(),g=[-p.x,-p.y],m=me(n);o&&(m[c]=n[c]-p[c]-v);var y=this._layoutContentAndController(r,a,m,l,c,d,h,f);if(o){if(s==="end")g[l]+=y[c]+v;else{var _=p[c]+v;g[l]-=_,y[f]-=_}y[c]+=p[c]+v,g[1-l]+=y[h]+y[d]/2-p[d]/2,y[d]=Math.max(y[d],p[d]),y[h]=Math.min(y[h],p[h]+g[1-l]),u.x=g[0],u.y=g[1],u.markRedraw()}return y},t.prototype._layoutContentAndController=function(r,i,n,a,o,s,u,l){var c=this.getContentGroup(),f=this._containerGroup,d=this._controllerGroup;zs(r.get("orient"),c,r.get("itemGap"),a?n.width:null,a?null:n.height),zs("horizontal",d,r.get("pageButtonItemGap",!0));var h=c.getBoundingRect(),v=d.getBoundingRect(),p=this._showController=h[o]>n[o],g=[-h.x,-h.y];i||(g[a]=c[l]);var m=[0,0],y=[-v.x,-v.y],_=J(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(p){var b=r.get("pageButtonPosition",!0);b==="end"?y[a]+=n[o]-v[o]:m[a]+=v[o]+_}y[1-a]+=h[s]/2-v[s]/2,c.setPosition(g),f.setPosition(m),d.setPosition(y);var S={x:0,y:0};if(S[o]=p?n[o]:h[o],S[s]=Math.max(h[s],v[s]),S[u]=Math.min(0,v[u]+y[1-a]),f.__rectSize=n[o],p){var w={x:0,y:0};w[o]=Math.max(n[o]-v[o]-_,0),w[s]=S[s],f.setClipPath(new st({shape:w})),f.__rectSize=w[o]}else d.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var x=this._getPageInfo(r);return x.pageIndex!=null&&lt(c,{x:x.contentPosition[0],y:x.contentPosition[1]},p?r:null),this._updatePageInfoView(r,x),S},t.prototype._pageGo=function(r,i,n){var a=this._getPageInfo(i)[r];a!=null&&n.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:i.id})},t.prototype._updatePageInfoView=function(r,i){var n=this._controllerGroup;C(["pagePrev","pageNext"],function(c){var f=c+"DataIndex",d=i[f]!=null,h=n.childOfName(c);h&&(h.setStyle("fill",d?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),h.cursor=d?"pointer":"default")});var a=n.childOfName("pageText"),o=r.get("pageFormatter"),s=i.pageIndex,u=s!=null?s+1:0,l=i.pageCount;a&&o&&a.setStyle("text",te(o)?o.replace("{current}",u==null?"":u+"").replace("{total}",l==null?"":l+""):o({current:u,total:l}))},t.prototype._getPageInfo=function(r){var i=r.get("scrollDataIndex",!0),n=this.getContentGroup(),a=this._containerGroup.__rectSize,o=r.getOrient().index,s=xp[o],u=Tp[o],l=this._findTargetItemIndex(i),c=n.children(),f=c[l],d=c.length,h=d?1:0,v={contentPosition:[n.x,n.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return v;var p=b(f);v.contentPosition[o]=-p.s;for(var g=l+1,m=p,y=p,_=null;g<=d;++g)_=b(c[g]),(!_&&y.e>m.s+a||_&&!S(_,m.s))&&(y.i>m.i?m=y:m=_,m&&(v.pageNextDataIndex==null&&(v.pageNextDataIndex=m.i),++v.pageCount)),y=_;for(var g=l-1,m=p,y=p,_=null;g>=-1;--g)_=b(c[g]),(!_||!S(y,_.s))&&m.i<y.i&&(y=m,v.pagePrevDataIndex==null&&(v.pagePrevDataIndex=m.i),++v.pageCount,++v.pageIndex),m=_;return v;function b(w){if(w){var x=w.getBoundingRect(),T=x[u]+w[u];return{s:T,e:T+x[s],i:w.__legendDataIndex}}}function S(w,x){return w.e>=x&&w.s<=x+a}},t.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var i,n=this.getContentGroup(),a;return n.eachChild(function(o,s){var u=o.__legendDataIndex;a==null&&u!=null&&(a=s),u===r&&(i=s)}),i??a},t.type="legend.scroll",t})(zO);function e9(e){e.registerAction("legendScroll","legendscroll",function(t,r){var i=t.scrollDataIndex;i!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:t},function(n){n.setScrollDataIndex(i)})})}function t9(e){Pn(RO),e.registerComponentModel(JY),e.registerComponentView(QY),e9(e)}function r9(e){Pn(RO),Pn(t9)}function n9(){uq(i9)}function i9(e,t){C(e,function(r){if(!r.model.get(["axisLabel","inside"])){var i=a9(r);if(i){var n=r.isHorizontal()?"height":"width",a=r.model.get(["axisLabel","margin"]);t[n]-=i[n]+a,r.position==="top"?t.y+=i.height+a:r.position==="left"&&(t.x+=i.width+a)}}})}function a9(e){var t=e.model,r=e.scale;if(!t.get(["axisLabel","show"])||r.isBlank())return;var i,n,a=r.getExtent();r instanceof Ab?n=r.count():(i=r.getTicks(),n=i.length);var o=e.getLabelModel(),s=Cl(e),u,l=1;n>40&&(l=Math.ceil(n/40));for(var c=0;c<n;c+=l){var f=i?i[c]:{value:a[0]+c},d=s(f,c),h=o.getTextRect(d),v=p(h,o.get("rotate")||0);u?u.union(v):u=v}return u;function p(g,m){var y=m*Math.PI/180,_=g.width,b=g.height,S=_*Math.abs(Math.cos(y))+Math.abs(b*Math.sin(y)),w=_*Math.abs(Math.sin(y))+Math.abs(b*Math.cos(y)),x=new fe(g.x,g.y,S,w);return x}}var kp=Math.sin,Ip=Math.cos,NO=Math.PI,Ei=Math.PI*2,o9=180/NO,UO=(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,i,n,a,o){this._add("C",t,r,i,n,a,o)},e.prototype.quadraticCurveTo=function(t,r,i,n){this._add("Q",t,r,i,n)},e.prototype.arc=function(t,r,i,n,a,o){this.ellipse(t,r,i,i,0,n,a,o)},e.prototype.ellipse=function(t,r,i,n,a,o,s,u){var l=s-o,c=!u,f=Math.abs(l),d=Hn(f-Ei)||(c?l>=Ei:-l>=Ei),h=l>0?l%Ei:l%Ei+Ei,v=!1;d?v=!0:Hn(f)?v=!1:v=h>=NO==!!c;var p=t+i*Ip(o),g=r+n*kp(o);this._start&&this._add("M",p,g);var m=Math.round(a*o9);if(d){var y=1/this._p,_=(c?1:-1)*(Ei-y);this._add("A",i,n,m,1,+c,t+i*Ip(o+_),r+n*kp(o+_)),y>.01&&this._add("A",i,n,m,0,+c,p,g)}else{var b=t+i*Ip(s),S=r+n*kp(s);this._add("A",i,n,m,+v,+c,b,S)}},e.prototype.rect=function(t,r,i,n){this._add("M",t,r),this._add("l",i,0),this._add("l",0,n),this._add("l",-i,0),this._add("Z")},e.prototype.closePath=function(){this._d.length>0&&this._add("Z")},e.prototype._add=function(t,r,i,n,a,o,s,u,l){for(var c=[],f=this._p,d=1;d<arguments.length;d++){var h=arguments[d];if(isNaN(h)){this._invalid=!0;return}c.push(Math.round(h*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})(),Wb="none",s9=Math.round;function u9(e){var t=e.fill;return t!=null&&t!==Wb}function l9(e){var t=e.stroke;return t!=null&&t!==Wb}var dm=["lineCap","miterLimit","lineJoin"],c9=Q(dm,function(e){return"stroke-"+e.toLowerCase()});function f9(e,t,r,i){var n=t.opacity==null?1:t.opacity;if(r instanceof fn){e("opacity",n);return}if(u9(t)){var a=Ys(t.fill);e("fill",a.color);var o=t.fillOpacity!=null?t.fillOpacity*a.opacity*n:a.opacity*n;o<1&&e("fill-opacity",o)}else e("fill",Wb);if(l9(t)){var s=Ys(t.stroke);e("stroke",s.color);var u=t.strokeNoScale?r.getLineScale():1,l=u?(t.lineWidth||0)/u:0,c=t.strokeOpacity!=null?t.strokeOpacity*s.opacity*n:s.opacity*n,f=t.strokeFirst;if(l!==1&&e("stroke-width",l),f&&e("paint-order",f?"stroke":"fill"),c<1&&e("stroke-opacity",c),t.lineDash){var d=_b(r),h=d[0],v=d[1];h&&(v=s9(v||0),e("stroke-dasharray",h.join(",")),(v||i)&&e("stroke-dashoffset",v))}for(var p=0;p<dm.length;p++){var g=dm[p];if(t[g]!==_f[g]){var m=t[g]||_f[g];m&&e(c9[p],m)}}}}var BO="http://www.w3.org/2000/svg",FO="http://www.w3.org/1999/xlink",d9="http://www.w3.org/2000/xmlns/",h9="http://www.w3.org/XML/1998/namespace",GT="ecmeta_";function jO(e){return document.createElementNS(BO,e)}function vt(e,t,r,i,n){return{tag:e,attrs:r||{},children:i,text:n,key:t}}function v9(e,t){var r=[];if(t)for(var i in t){var n=t[i],a=i;n!==!1&&(n!==!0&&n!=null&&(a+=\'="\'+n+\'"\'),r.push(a))}return"<"+e+" "+r.join(" ")+">"}function p9(e){return"</"+e+">"}function qb(e,t){t=t||{};var r=t.newline?`\n`:"";function i(n){var a=n.children,o=n.tag,s=n.attrs,u=n.text;return v9(o,s)+(o!=="style"?zt(u):u||"")+(a?""+r+Q(a,function(l){return i(l)}).join(r)+r:"")+p9(o)}return i(e)}function g9(e,t,r){r=r||{};var i=r.newline?`\n`:"",n=" {"+i,a=i+"}",o=Q(Te(e),function(u){return u+n+Q(Te(e[u]),function(l){return l+":"+e[u][l]+";"}).join(i)+a}).join(i),s=Q(Te(t),function(u){return"@keyframes "+u+n+Q(Te(t[u]),function(l){return l+n+Q(Te(t[u][l]),function(c){var f=t[u][l][c];return c==="d"&&(f=\'path("\'+f+\'")\'),c+":"+f+";"}).join(i)+a}).join(i)+a}).join(i);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(i)}function hm(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function HT(e,t,r,i){return vt("svg","root",{width:e,height:t,xmlns:BO,"xmlns:xlink":FO,version:"1.1",baseProfile:"full",viewBox:i?"0 0 "+e+" "+t:!1},r)}var m9=0;function ZO(){return m9++}var WT={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"},Ri="transform-origin";function y9(e,t,r){var i=V({},e.shape);V(i,t),e.buildPath(r,i);var n=new UO;return n.reset(_A(e)),r.rebuildPath(n,1),n.generateStr(),n.getStr()}function _9(e,t){var r=t.originX,i=t.originY;(r||i)&&(e[Ri]=r+"px "+i+"px")}var b9={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function VO(e,t){var r=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[r]=e,r}function S9(e,t,r){var i=e.shape.paths,n={},a,o;if(C(i,function(u){var l=hm(r.zrId);l.animation=!0,Zh(u,{},l,!0);var c=l.cssAnims,f=l.cssNodes,d=Te(c),h=d.length;if(h){o=d[h-1];var v=c[o];for(var p in v){var g=v[p];n[p]=n[p]||{d:""},n[p].d+=g.d||""}for(var m in f){var y=f[m].animation;y.indexOf(o)>=0&&(a=y)}}}),!!a){t.d=!1;var s=VO(n,r);return a.replace(o,s)}}function qT(e){return te(e)?WT[e]?"cubic-bezier("+WT[e]+")":b0(e)?e:"":""}function Zh(e,t,r,i){var n=e.animators,a=n.length,o=[];if(e instanceof SP){var s=S9(e,t,r);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var u={},l=0;l<a;l++){var c=n[l],f=[c.getMaxTime()/1e3+"s"],d=qT(c.getClip().easing),h=c.getDelay();d?f.push(d):f.push("linear"),h&&f.push(h/1e3+"s"),c.getLoop()&&f.push("infinite");var v=f.join(" ");u[v]=u[v]||[v,[]],u[v][1].push(c)}function p(y){var _=y[1],b=_.length,S={},w={},x={},T="animation-timing-function";function k(Je,Ie,Ye){for(var oe=Je.getTracks(),_e=Je.getMaxTime(),Ft=0;Ft<oe.length;Ft++){var rt=oe[Ft];if(rt.needsAnimate()){var Ir=rt.keyframes,jt=rt.propName;if(Ye&&(jt=Ye(jt)),jt)for(var $r=0;$r<Ir.length;$r++){var ma=Ir[$r],Dr=Math.round(ma.time/_e*100)+"%",Ml=qT(ma.easing),ya=ma.rawValue;(te(ya)||Re(ya))&&(Ie[Dr]=Ie[Dr]||{},Ie[Dr][jt]=ma.rawValue,Ml&&(Ie[Dr][T]=Ml))}}}}for(var I=0;I<b;I++){var $=_[I],A=$.targetName;A?A==="shape"&&k($,w):!i&&k($,S)}for(var D in S){var P={};Xs(P,e),V(P,S[D]);var L=bA(P),z=S[D][T];x[D]=L?{transform:L}:{},_9(x[D],P),z&&(x[D][T]=z)}var B,N=!0;for(var D in w){x[D]=x[D]||{};var F=!B,z=w[D][T];F&&(B=new Cn);var Z=B.len();B.reset(),x[D].d=y9(e,w[D],B);var G=B.len();if(!F&&Z!==G){N=!1;break}z&&(x[D][T]=z)}if(!N)for(var D in x)delete x[D].d;if(!i)for(var I=0;I<b;I++){var $=_[I],A=$.targetName;A==="style"&&k($,x,function(oe){return b9[oe]})}for(var W=Te(x),ee=!0,K,I=1;I<W.length;I++){var ce=W[I-1],ye=W[I];if(x[ce][Ri]!==x[ye][Ri]){ee=!1;break}K=x[ce][Ri]}if(ee&&K){for(var D in x)x[D][Ri]&&delete x[D][Ri];t[Ri]=K}if(ot(W,function(Je){return Te(x[Je]).length>0}).length){var tt=VO(x,r);return tt+" "+y[0]+" both"}}for(var g in u){var s=p(u[g]);s&&o.push(s)}if(o.length){var m=r.zrId+"-cls-"+ZO();r.cssNodes["."+m]={animation:o.join(",")},t.class=m}}function w9(e,t,r){if(!e.ignore)if(e.isSilent()){var i={"pointer-events":"none"};YT(i,t,r)}else{var n=e.states.emphasis&&e.states.emphasis.style?e.states.emphasis.style:{},a=n.fill;if(!a){var o=e.style&&e.style.fill,s=e.states.select&&e.states.select.style&&e.states.select.style.fill,u=e.currentStates.indexOf("select")>=0&&s||o;u&&(a=Jp(u))}var l=n.lineWidth;if(l){var c=!n.strokeNoScale&&e.transform?e.transform[0]:1;l=l/c}var i={cursor:"pointer"};a&&(i.fill=a),n.stroke&&(i.stroke=n.stroke),l&&(i["stroke-width"]=l),YT(i,t,r)}}function YT(e,t,r,i){var n=JSON.stringify(e),a=r.cssStyleCache[n];a||(a=r.zrId+"-cls-"+ZO(),r.cssStyleCache[n]=a,r.cssNodes["."+a+":hover"]=e),t.class=t.class?t.class+" "+a:a}var pu=Math.round;function GO(e){return e&&te(e.src)}function HO(e){return e&&le(e.toDataURL)}function Yb(e,t,r,i){f9(function(n,a){var o=n==="fill"||n==="stroke";o&&yA(a)?qO(t,e,n,i):o&&S0(a)?YO(r,e,n,i):e[n]=a,o&&i.ssr&&a==="none"&&(e["pointer-events"]="visible")},t,r,!1),C9(r,e,i)}function Xb(e,t){var r=L6(t);r&&(r.each(function(i,n){i!=null&&(e[(GT+n).toLowerCase()]=i+"")}),t.isSilent()&&(e[GT+"silent"]="true"))}function XT(e){return Hn(e[0]-1)&&Hn(e[1])&&Hn(e[2])&&Hn(e[3]-1)}function x9(e){return Hn(e[4])&&Hn(e[5])}function Kb(e,t,r){if(t&&!(x9(t)&&XT(t))){var i=1e4;e.transform=XT(t)?"translate("+pu(t[4]*i)/i+" "+pu(t[5]*i)/i+")":e6(t)}}function KT(e,t,r){for(var i=e.points,n=[],a=0;a<i.length;a++)n.push(pu(i[a][0]*r)/r),n.push(pu(i[a][1]*r)/r);t.points=n.join(" ")}function JT(e){return!e.smooth}function T9(e){var t=Q(e,function(r){return typeof r=="string"?[r,r]:r});return function(r,i,n){for(var a=0;a<t.length;a++){var o=t[a],s=r[o[0]];s!=null&&(i[o[1]]=pu(s*n)/n)}}}var k9={circle:[T9(["cx","cy","r"])],polyline:[KT,JT],polygon:[KT,JT]};function I9(e){for(var t=e.animators,r=0;r<t.length;r++)if(t[r].targetName==="shape")return!0;return!1}function WO(e,t){var r=e.style,i=e.shape,n=k9[e.type],a={},o=t.animation,s="path",u=e.style.strokePercent,l=t.compress&&_A(e)||4;if(n&&!t.willUpdate&&!(n[1]&&!n[1](i))&&!(o&&I9(e))&&!(u<1)){s=e.type;var c=Math.pow(10,l);n[0](i,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 h=d.getVersion(),v=e,p=v.__svgPathBuilder;(v.__svgPathVersion!==h||!p||u!==v.__svgPathStrokePercent)&&(p||(p=v.__svgPathBuilder=new UO),p.reset(l),d.rebuildPath(p,u),p.generateStr(),v.__svgPathVersion=h,v.__svgPathStrokePercent=u),a.d=p.getStr()}return Kb(a,e.transform),Yb(a,r,e,t),Xb(a,e),t.animation&&Zh(e,a,t),t.emphasis&&w9(e,a,t),vt(s,e.id+"",a)}function $9(e,t){var r=e.style,i=r.image;if(i&&!te(i)&&(GO(i)?i=i.src:HO(i)&&(i=i.toDataURL())),!!i){var n=r.x||0,a=r.y||0,o=r.width,s=r.height,u={href:i,width:o,height:s};return n&&(u.x=n),a&&(u.y=a),Kb(u,e.transform),Yb(u,r,e,t),Xb(u,e),t.animation&&Zh(e,u,t),vt("image",e.id+"",u)}}function D9(e,t){var r=e.style,i=r.text;if(i!=null&&(i+=""),!(!i||isNaN(r.x)||isNaN(r.y))){var n=r.font||In,a=r.x||0,o=r6(r.y||0,wl(n),r.textBaseline),s=t6[r.textAlign]||r.textAlign,u={"dominant-baseline":"central","text-anchor":s};if(tP(r)){var l="",c=r.fontStyle,f=eP(r.fontSize);if(!parseFloat(f))return;var d=r.fontFamily||HC,h=r.fontWeight;l+="font-size:"+f+";font-family:"+d+";",c&&c!=="normal"&&(l+="font-style:"+c+";"),h&&h!=="normal"&&(l+="font-weight:"+h+";"),u.style=l}else u.style="font: "+n;return i.match(/\\s/)&&(u["xml:space"]="preserve"),a&&(u.x=a),o&&(u.y=o),Kb(u,e.transform),Yb(u,r,e,t),Xb(u,e),t.animation&&Zh(e,u,t),vt("text",e.id+"",u,void 0,i)}}function QT(e,t){if(e instanceof Pe)return WO(e,t);if(e instanceof fn)return $9(e,t);if(e instanceof ru)return D9(e,t)}function C9(e,t,r){var i=e.style;if(n6(i)){var n=i6(e),a=r.shadowCache,o=a[n];if(!o){var s=e.getGlobalScale(),u=s[0],l=s[1];if(!u||!l)return;var c=i.shadowOffsetX||0,f=i.shadowOffsetY||0,d=i.shadowBlur,h=Ys(i.shadowColor),v=h.opacity,p=h.color,g=d/2/u,m=d/2/l,y=g+" "+m;o=r.zrId+"-s"+r.shadowIdx++,r.defs[o]=vt("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[vt("feDropShadow","",{dx:c/u,dy:f/l,stdDeviation:y,"flood-color":p,"flood-opacity":v})]),a[n]=o}t.filter=dh(o)}}function qO(e,t,r,i){var n=e[r],a,o={gradientUnits:n.global?"userSpaceOnUse":"objectBoundingBox"};if(gA(n))a="linearGradient",o.x1=n.x,o.y1=n.y,o.x2=n.x2,o.y2=n.y2;else if(mA(n))a="radialGradient",o.cx=J(n.x,.5),o.cy=J(n.y,.5),o.r=J(n.r,.5);else return;for(var s=n.colorStops,u=[],l=0,c=s.length;l<c;++l){var f=Qp(s[l].offset)*100+"%",d=s[l].color,h=Ys(d),v=h.color,p=h.opacity,g={offset:f};g["stop-color"]=v,p<1&&(g["stop-opacity"]=p),u.push(vt("stop",l+"",g))}var m=vt(a,"",o,u),y=qb(m),_=i.gradientCache,b=_[y];b||(b=i.zrId+"-g"+i.gradientIdx++,_[y]=b,o.id=b,i.defs[b]=vt(a,b,o,u)),t[r]=dh(b)}function YO(e,t,r,i){var n=e.style[r],a=e.getBoundingRect(),o={},s=n.repeat,u=s==="no-repeat",l=s==="repeat-x",c=s==="repeat-y",f;if(pA(n)){var d=n.imageWidth,h=n.imageHeight,v=void 0,p=n.image;if(te(p)?v=p:GO(p)?v=p.src:HO(p)&&(v=p.toDataURL()),typeof Image>"u"){var g="Image width/height must been given explictly in svg-ssr renderer.";Rr(d,g),Rr(h,g)}else if(d==null||h==null){var m=function(I,$){if(I){var A=I.elm,D=d||$.width,P=h||$.height;I.tag==="pattern"&&(l?(P=1,D/=a.width):c&&(D=1,P/=a.height)),I.attrs.width=D,I.attrs.height=P,A&&(A.setAttribute("width",D),A.setAttribute("height",P))}},y=M0(v,null,e,function(I){u||m(w,I),m(f,I)});y&&y.width&&y.height&&(d=d||y.width,h=h||y.height)}f=vt("image","img",{href:v,width:d,height:h}),o.width=d,o.height=h}else n.svgElement&&(f=me(n.svgElement),o.width=n.svgWidth,o.height=n.svgHeight);if(f){var _,b;u?_=b=1:l?(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 S=bA(n);S&&(o.patternTransform=S);var w=vt("pattern","",o,[f]),x=qb(w),T=i.patternCache,k=T[x];k||(k=i.zrId+"-p"+i.patternIdx++,T[x]=k,o.id=k,w=i.defs[k]=vt("pattern",k,o,[f])),t[r]=dh(k)}}function A9(e,t,r){var i=r.clipPathCache,n=r.defs,a=i[e.id];if(!a){a=r.zrId+"-c"+r.clipPathIdx++;var o={id:a};i[e.id]=a,n[a]=vt("clipPath",a,o,[WO(e,r)])}t["clip-path"]=dh(a)}function ek(e){return document.createTextNode(e)}function Ui(e,t,r){e.insertBefore(t,r)}function tk(e,t){e.removeChild(t)}function rk(e,t){e.appendChild(t)}function XO(e){return e.parentNode}function KO(e){return e.nextSibling}function $p(e,t){e.textContent=t}var nk=58,P9=120,M9=vt("","");function vm(e){return e===void 0}function Xr(e){return e!==void 0}function L9(e,t,r){for(var i={},n=t;n<=r;++n){var a=e[n].key;a!==void 0&&(i[a]=n)}return i}function $s(e,t){var r=e.key===t.key,i=e.tag===t.tag;return i&&r}function gu(e){var t,r=e.children,i=e.tag;if(Xr(i)){var n=e.elm=jO(i);if(Jb(M9,e),q(r))for(t=0;t<r.length;++t){var a=r[t];a!=null&&rk(n,gu(a))}else Xr(e.text)&&!ne(e.text)&&rk(n,ek(e.text))}else e.elm=ek(e.text);return e.elm}function JO(e,t,r,i,n){for(;i<=n;++i){var a=r[i];a!=null&&Ui(e,gu(a),t)}}function Wf(e,t,r,i){for(;r<=i;++r){var n=t[r];if(n!=null)if(Xr(n.tag)){var a=XO(n.elm);tk(a,n.elm)}else tk(e,n.elm)}}function Jb(e,t){var r,i=t.elm,n=e&&e.attrs||{},a=t.attrs||{};if(n!==a){for(r in a){var o=a[r],s=n[r];s!==o&&(o===!0?i.setAttribute(r,""):o===!1?i.removeAttribute(r):r==="style"?i.style.cssText=o:r.charCodeAt(0)!==P9?i.setAttribute(r,o):r==="xmlns:xlink"||r==="xmlns"?i.setAttributeNS(d9,r,o):r.charCodeAt(3)===nk?i.setAttributeNS(h9,r,o):r.charCodeAt(5)===nk?i.setAttributeNS(FO,r,o):i.setAttribute(r,o))}for(r in n)r in a||i.removeAttribute(r)}}function O9(e,t,r){for(var i=0,n=0,a=t.length-1,o=t[0],s=t[a],u=r.length-1,l=r[0],c=r[u],f,d,h,v;i<=a&&n<=u;)o==null?o=t[++i]:s==null?s=t[--a]:l==null?l=r[++n]:c==null?c=r[--u]:$s(o,l)?(Na(o,l),o=t[++i],l=r[++n]):$s(s,c)?(Na(s,c),s=t[--a],c=r[--u]):$s(o,c)?(Na(o,c),Ui(e,o.elm,KO(s.elm)),o=t[++i],c=r[--u]):$s(s,l)?(Na(s,l),Ui(e,s.elm,o.elm),s=t[--a],l=r[++n]):(vm(f)&&(f=L9(t,i,a)),d=f[l.key],vm(d)?Ui(e,gu(l),o.elm):(h=t[d],h.tag!==l.tag?Ui(e,gu(l),o.elm):(Na(h,l),t[d]=void 0,Ui(e,h.elm,o.elm))),l=r[++n]);(i<=a||n<=u)&&(i>a?(v=r[u+1]==null?null:r[u+1].elm,JO(e,v,r,n,u)):Wf(e,t,i,a))}function Na(e,t){var r=t.elm=e.elm,i=e.children,n=t.children;e!==t&&(Jb(e,t),vm(t.text)?Xr(i)&&Xr(n)?i!==n&&O9(r,i,n):Xr(n)?(Xr(e.text)&&$p(r,""),JO(r,null,n,0,n.length-1)):Xr(i)?Wf(r,i,0,i.length-1):Xr(e.text)&&$p(r,""):e.text!==t.text&&(Xr(i)&&Wf(r,i,0,i.length-1),$p(r,t.text)))}function E9(e,t){if($s(e,t))Na(e,t);else{var r=e.elm,i=XO(r);gu(t),i!==null&&(Ui(i,t.elm,KO(r)),Wf(i,[e],0,0))}return t}var z9=0,R9=(function(){function e(t,r,i){if(this.type="svg",this.configLayer=N9(),this.storage=r,this._opts=i=V({},i),this.root=t,this._id="zr"+z9++,this._oldVNode=HT(i.width,i.height),t&&!i.ssr){var n=this._viewport=document.createElement("div");n.style.cssText="position:relative;overflow:hidden";var a=this._svgDom=this._oldVNode.elm=jO("svg");Jb(null,this._oldVNode),n.appendChild(a),t.appendChild(n)}this.resize(i.width,i.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",E9(this._oldVNode,t),this._oldVNode=t}},e.prototype.renderOneToVNode=function(t){return QT(t,hm(this._id))},e.prototype.renderToVNode=function(t){t=t||{};var r=this.storage.getDisplayList(!0),i=this._width,n=this._height,a=hm(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=U9(i,n,this._backgroundColor,a);s&&o.push(s);var u=t.compress?null:this._mainVNode=vt("g","main",{},[]);this._paintList(r,a,u?u.children:o),u&&o.push(u);var l=Q(Te(a.defs),function(d){return a.defs[d]});if(l.length&&o.push(vt("defs","defs",{},l)),t.animation){var c=g9(a.cssNodes,a.cssAnims,{newline:!0});if(c){var f=vt("style","stl",{},[],c);o.push(f)}}return HT(i,n,o,t.useViewBox)},e.prototype.renderToString=function(t){return t=t||{},qb(this.renderToVNode({animation:J(t.cssAnimation,!0),emphasis:J(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:J(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,i){for(var n=t.length,a=[],o=0,s,u,l=0,c=0;c<n;c++){var f=t[c];if(!f.invisible){var d=f.__clipPaths,h=d&&d.length||0,v=u&&u.length||0,p=void 0;for(p=Math.max(h-1,v-1);p>=0&&!(d&&u&&d[p]===u[p]);p--);for(var g=v-1;g>p;g--)o--,s=a[o-1];for(var m=p+1;m<h;m++){var y={};A9(d[m],y,r);var _=vt("g","clip-g-"+l++,y,[]);(s?s.children:i).push(_),a[o++]=_,s=_}u=d;var b=QT(f,r);b&&(s?s.children:i).push(b)}}},e.prototype.resize=function(t,r){var i=this._opts,n=this.root,a=this._viewport;if(t!=null&&(i.width=t),r!=null&&(i.height=r),n&&a&&(a.style.display="none",t=H1(n,0,i),r=H1(n,1,i),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(S0(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",t),s.setAttribute("height",r));var u=this._bgVNode&&this._bgVNode.elm;u&&(u.setAttribute("width",t),u.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(),i="data:image/svg+xml;";return t?(r=o6(r),r&&i+"base64,"+r):i+"charset=UTF-8,"+encodeURIComponent(r)},e})();function N9(e){return function(){}}function U9(e,t,r,i){var n;if(r&&r!=="none")if(n=vt("rect","bg",{width:e,height:t,x:"0",y:"0"}),yA(r))qO({fill:r},n.attrs,"fill",i);else if(S0(r))YO({style:{fill:r},dirty:bt,getBoundingRect:function(){return{width:e,height:t}}},n.attrs,"fill",i);else{var a=Ys(r),o=a.color,s=a.opacity;n.attrs.fill=o,s<1&&(n.attrs["fill-opacity"]=s)}return n}function B9(e){e.registerPainter("svg",R9)}Pn([OW,O3,GW,kq,Uq,dY,MY,r9,GY,c3,n9,B9]);const F9=["#5b5bd6","#0ea5e9","#10b981","#f59e0b","#ef4444","#8b5cf6","#ec4899","#14b8a6"];function QO(e,t,r){const i={axisLine:{lineStyle:{color:r}},axisTick:{show:!1},axisLabel:{color:t},splitLine:{lineStyle:{color:r}}};return{color:F9,backgroundColor:"transparent",textStyle:{color:e,fontFamily:\'ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif\'},title:{textStyle:{color:e}},categoryAxis:{...i,splitLine:{show:!1}},valueAxis:i,legend:{textStyle:{color:t}},tooltip:{backgroundColor:e==="#1a1a1a"?"#ffffff":"#1f1f1f",borderColor:r,textStyle:{color:e==="#1a1a1a"?"#1a1a1a":"#fafafa"}}}}Uh("bonnard-light",QO("#1a1a1a","#6b7280","#e5e7eb"));Uh("bonnard-dark",QO("#fafafa","#9ca3af","#2a2a2a"));const j9=e=>e==="dark"?"bonnard-dark":"bonnard-light",Qe=e=>String(e).replace(/[&<>"]/g,t=>({"&":"&amp;","<":"&lt;",">":"&gt;",\'"\':"&quot;"})[t]);function Gt(e,t,r,i,n=!0){const a=Number(e);if(e==null||Number.isNaN(a))return e==null?"":String(e);if(t==="percent")return`${(i??Math.abs(a)<=1?a*100:a).toFixed(1)}%`;const o=l=>l.toLocaleString("en-US",{maximumFractionDigits:2}),s=l=>Math.abs(l)>=1e6?`${(l/1e6).toFixed(1)}M`:Math.abs(l)>=1e3?`${(l/1e3).toFixed(1)}K`:String(Number.isInteger(l)?l:l.toFixed(2)),u=n?s:o;return t==="currency"?`${r==="USD"||!r?"$":r+" "}${u(a)}`:n?Number.isInteger(a)?a.toLocaleString():s(a):o(a)}function ik(e){const t=Math.abs(e),r=(i,n)=>{const a=(e/i).toFixed(1);return`${a.endsWith(".0")?a.slice(0,-2):a}${n}`};return t>=1e12?r(1e12,"T"):t>=1e9?r(1e9,"B"):t>=1e6?r(1e6,"M"):t>=1e3?r(1e3,"K"):Number.isInteger(e)?e.toLocaleString("en-US"):e.toFixed(2)}function pm(e,t,r){return t==="percent"?Gt(e,t):t==="currency"?`${r==="USD"||!r?"$":r+" "}${ik(e)}`:ik(e)}function Z9(e,t){if(!t)return String(e);let r=String(e);/^\\d{4}-\\d{2}-\\d{2}T/.test(r)&&!r.endsWith("Z")&&!/[+-]\\d{2}:\\d{2}$/.test(r)?r+="Z":/^\\d{4}-\\d{2}-\\d{2}$/.test(r)&&(r+="T00:00:00.000Z");const i=new Date(r);if(Number.isNaN(i.getTime()))return String(e);const n=String(i.getUTCFullYear()).slice(-2);switch(t){case"year":return String(i.getUTCFullYear());case"quarter":return`Q${Math.floor(i.getUTCMonth()/3)+1} ${n}`;case"month":return i.toLocaleDateString("en-US",{month:"short",year:"2-digit",timeZone:"UTC"});default:return i.toLocaleDateString("en-US",{day:"numeric",month:"short",timeZone:"UTC"})}}const gm=1e5,Dp=12;function V9(e){switch(e.chartType){case"pie":return q9(e);case"scatter":return G9(e);case"funnel":return H9(e);case"waterfall":return W9(e);case"line":return Cp(e,"line",!1);case"area":return Cp(e,"line",!0);default:return Cp(e,"bar",!1)}}function G9(e){var p,g,m,y,_;const t=b=>{var S,w,x;return Gt(b,(S=e.xAxis)==null?void 0:S.format,(w=e.xAxis)==null?void 0:w.currency,(x=e.xAxis)==null?void 0:x.fraction)},r=b=>{var S,w,x;return Gt(b,(S=e.yAxis)==null?void 0:S.format,(w=e.yAxis)==null?void 0:w.currency,(x=e.yAxis)==null?void 0:x.fraction)},i=b=>Math.max(0,...e.data.flatMap(S=>b.map(w=>Math.abs(Number(S[w])||0)))),n=e.series.map(b=>b.key),a=i([e.x])>=gm&&((p=e.xAxis)==null?void 0:p.format)!=="percent"?b=>{var S,w;return pm(b,(S=e.xAxis)==null?void 0:S.format,(w=e.xAxis)==null?void 0:w.currency)}:t,o=i(n)>=gm&&((g=e.yAxis)==null?void 0:g.format)!=="percent"?b=>{var S,w;return pm(b,(S=e.yAxis)==null?void 0:S.format,(w=e.yAxis)==null?void 0:w.currency)}:r,s=e.size,u=e.pointLabel,l=e.series.length>1,c=((m=e.yAxis)==null?void 0:m.label)??(l?"value":((y=e.series[0])==null?void 0:y.label)??"value"),f=s?e.data.map(b=>Number(b[s])||0):[],d=f.length?Math.max(...f):0,h=s?b=>10+(d?b[2]/d*38:0):11,v=b=>e.data.filter(S=>S[b]!=null&&S[b]!=="").map(S=>[Number(S[e.x]),Number(S[b]),s?Number(S[s])||0:null,u?S[u]:null]);return{grid:{left:8,right:24,top:16,bottom:l?48:32,containLabel:!0},...l&&{legend:{bottom:0,type:"scroll"}},tooltip:{trigger:"item",formatter:b=>{var k,I,$;const S=b.data,w=l?`${Qe(b.seriesName)}<br/>`:"",x=S[3]!=null?`${Qe(S[3])}<br/>`:"",T=s?`<br/>${Qe(((I=(k=e.columns)==null?void 0:k.find(A=>A.key===s))==null?void 0:I.label)??s)}: ${Gt(S[2])}`:"";return`${w}${x}${Qe((($=e.xAxis)==null?void 0:$.label)??e.x)}: ${t(S[0])}<br/>${Qe(c)}: ${r(S[1])}${T}`}},xAxis:{type:"value",...((_=e.xAxis)==null?void 0:_.label)&&{name:e.xAxis.label,nameLocation:"middle",nameGap:26},axisLabel:{formatter:b=>a(b)},axisLine:{onZero:!1},splitLine:{show:!0}},yAxis:{type:"value",axisLabel:{formatter:b=>o(b)}},series:e.series.map(b=>{const S=v(b.key),w=S.length>400?.4:S.length>150?.6:.8;return{name:b.label,type:"scatter",symbolSize:h,itemStyle:{opacity:w},emphasis:{focus:"self"},data:S}})}}function Cp(e,t,r){var $,A,D,P;const i=!!e.yAxisRight,n=!i&&(e.stacking==="stacked"||e.stacking==="stacked100"),a=!i&&e.stacking==="stacked100",o=a?"percent":($=e.yAxis)==null?void 0:$.format,s=(A=e.yAxis)==null?void 0:A.currency,u=L=>{var z;return Gt(L,o,s,a?!1:(z=e.yAxis)==null?void 0:z.fraction)},l=e.series.filter(L=>L.axis!=="right").map(L=>L.key),f=Math.max(0,...e.data.flatMap(L=>l.map(z=>Math.abs(Number(L[z])||0))))>=gm&&o!=="percent"?L=>pm(L,o,s):u,d=L=>{var z,B,N;return Gt(L,(z=e.yAxisRight)==null?void 0:z.format,(B=e.yAxisRight)==null?void 0:B.currency,(N=e.yAxisRight)==null?void 0:N.fraction)},h=t==="line"&&!n&&!!((D=e.xAxis)!=null&&D.numeric),v=e.data.map(L=>{var z;return Z9(L[e.x],(z=e.xAxis)==null?void 0:z.granularity)}),p=t==="bar"&&v.some(L=>L.length>Dp),g=e.series.filter(L=>L.type!=="line").map(L=>L.key),m=e.data.map(L=>g.reduce((z,B)=>z+(Number(L[B])||0),0)),y=e.series.map(L=>{const z=L.axis==="right",B=z?"line":L.type??t,N=e.data.map(Z=>Z[L.key]),F=a?N.map((Z,G)=>{const W=Number(Z)||0;return{value:m[G]?+(W/m[G]*100).toFixed(2):0,raw:W}}):h?N.map((Z,G)=>[Number(e.data[G][e.x]),Z==null?null:Number(Z)||0]):N.map(Z=>Z==null?null:Number(Z)||0);return{name:L.label,type:B,yAxisIndex:z?1:0,...n&&!z&&!(B==="line"&&t==="bar")?{stack:"total"}:{},...B==="line"?{symbolSize:6,showSymbol:e.data.length<=60}:{barMaxWidth:48},...r&&B==="line"&&!z?{areaStyle:{opacity:n?.85:.18}}:{},emphasis:{focus:"series"},tooltip:{valueFormatter:z?d:u},data:F}}),_={type:"value",...a?{max:100,axisLabel:{formatter:L=>`${L}%`}}:{axisLabel:{formatter:f}}},b={type:"value",axisLabel:{formatter:d},splitLine:{show:!1}},S=!i&&t==="bar"&&(e.horizontal===!0||e.horizontal==null&&p),w=L=>L.length>Dp?`${L.slice(0,Dp-1)}\u2026`:L,T={type:"category",data:v,boundaryGap:t==="bar",axisLine:{onZero:!1},axisLabel:p&&!S?{rotate:30,formatter:L=>w(String(L))}:{hideOverlap:!0},tooltip:{show:!0}},k={type:"value",axisLabel:{formatter:L=>{var z;return Gt(L,(z=e.xAxis)==null?void 0:z.format)}},axisLine:{onZero:!1}},I=S?{...T,inverse:!0}:i?[_,b]:_;if((P=e.reference)!=null&&P.length&&y[0]){const L=S?"xAxis":"yAxis",z=S?"end":"insideEndTop",B=S?"start":"insideStartTop";y[0].markLine={symbol:"none",lineStyle:{type:"dashed"},label:{rotate:0,formatter:"{b}",fontSize:11},data:e.reference.map((N,F)=>({[L]:N.value,name:`${N.label}: ${u(N.value)}`,label:{position:F%2?B:z}}))}}return{grid:{left:8,right:16,top:16,bottom:e.legend?28:8,containLabel:!0},legend:e.legend?{bottom:0,type:"scroll",icon:"roundRect"}:void 0,tooltip:{trigger:"axis",axisPointer:{type:t==="bar"?"shadow":"line"},...a?{formatter:L=>{var F;const z=Array.isArray(L)?L:[L],B=Qe(((F=z[0])==null?void 0:F.axisValueLabel)??""),N=z.map(Z=>{var G,W,ee;return`${Z.marker}${Qe(Z.seriesName)}: ${Gt((G=Z.data)==null?void 0:G.raw,(W=e.yAxis)==null?void 0:W.format,s,(ee=e.yAxis)==null?void 0:ee.fraction)} (${Z.value}%)`}).join("<br/>");return`${B}<br/>${N}`}}:{}},xAxis:S?_:h?k:T,yAxis:I,series:y}}function H9(e){var a,o;const t=((a=e.series[0])==null?void 0:a.key)??"",r=(o=e.columns)==null?void 0:o.find(s=>s.key===t),i=s=>Gt(s,r==null?void 0:r.format,r==null?void 0:r.currency,r==null?void 0:r.fraction),n=e.data.map(s=>({name:String(s[e.x]),value:Number(s[t])||0}));return{tooltip:{trigger:"item",formatter:s=>`${s.marker}${Qe(s.name)}: ${i(s.value)} (${s.percent}%)`},series:[{type:"funnel",left:"6%",right:"6%",top:10,bottom:10,gap:2,sort:"descending",minSize:"6%",maxSize:"100%",label:{show:!0,position:"inside",formatter:"{b} {c}"},labelLine:{show:!1},emphasis:{label:{fontWeight:"bold"}},data:n}]}}function W9(e){var d,h;const t=((d=e.series[0])==null?void 0:d.key)??"",r=(h=e.columns)==null?void 0:h.find(v=>v.key===t),i=v=>Gt(v,r==null?void 0:r.format,r==null?void 0:r.currency,r==null?void 0:r.fraction),n=new Set(e.totals??[]),a=e.data.map(v=>String(v[e.x])),o="#10b981",s="#ef4444",u="#6b7280",l=[],c=[];let f=0;for(const v of e.data){const p=Number(v[t])||0;n.has(String(v[e.x]))?(l.push(0),c.push({value:p,itemStyle:{color:u}}),f=p):p>=0?(l.push(f),c.push({value:p,itemStyle:{color:o}}),f+=p):(f+=p,l.push(f),c.push({value:-p,itemStyle:{color:s}}))}return{grid:{left:8,right:16,top:16,bottom:8,containLabel:!0},tooltip:{trigger:"item",formatter:v=>{const p=e.data[v.dataIndex];return`${Qe(p==null?void 0:p[e.x])}: ${i(Number(p==null?void 0:p[t]))}`}},xAxis:{type:"category",data:a,axisLine:{onZero:!1},axisLabel:{hideOverlap:!0}},yAxis:{type:"value",axisLabel:{formatter:v=>i(v)}},series:[{type:"bar",stack:"wf",itemStyle:{color:"transparent"},emphasis:{disabled:!0},silent:!0,data:l},{type:"bar",stack:"wf",barMaxWidth:48,data:c,label:{show:e.data.length<=12,position:"top",fontSize:10,formatter:v=>{var p;return i(Number((p=e.data[v.dataIndex])==null?void 0:p[t]))}}}]}}function q9(e){var a,o,s;const t=((a=e.series[0])==null?void 0:a.key)??"",r=(o=e.yAxis)==null?void 0:o.currency,i=(s=e.yAxis)==null?void 0:s.format,n=e.data.map(u=>({name:String(u[e.x]),value:Number(u[t])||0}));return{legend:{bottom:0,type:"scroll",icon:"roundRect"},tooltip:{trigger:"item",formatter:u=>{var l;return`${u.marker}${Qe(u.name)}: ${Gt(u.value,i,r,(l=e.yAxis)==null?void 0:l.fraction)} (${u.percent}%)`}},series:[{type:"pie",radius:["45%","70%"],center:["50%","46%"],minShowLabelAngle:6,label:{formatter:"{b}: {d}%"},labelLine:{length:8,length2:8},data:n}]}}function Qb(){return\'<div class="empty" data-empty>No data</div>\'}function eE(e){var n;if(e.data.length===0)return Qb();const t=(n=e.columns)!=null&&n.length?e.columns:Object.keys(e.data[0]??{}).map(a=>({key:a,label:a})),r=t.map(a=>`<th>${Qe(a.label)}</th>`).join(""),i=e.data.map(a=>`<tr>${t.map(o=>`<td>${Qe(Gt(a[o.key],o.format,o.currency,o.fraction,!1))}</td>`).join("")}</tr>`).join("");return`<table class="tbl"><thead><tr>${r}</tr></thead><tbody>${i}</tbody></table>`}function Y9(e){return!!e&&typeof e=="object"&&Array.isArray(e.items)&&!Array.isArray(e.data)}function X9(e){return!!e&&typeof e=="object"&&Array.isArray(e.data)}const K9=e=>Math.min(4,Math.max(1,e??2));function J9(e,t){return e==null?1:Math.min(t,Math.max(1,Math.floor(e)))}function Q9(e){const t=e.value==null?"\u2014":Qe(Gt(e.value,e.format,e.currency,e.fraction,!1));let r="";if(typeof e.delta=="number"&&e.delta!==0){const n=e.delta>0?"up":"down",a=e.delta>0?"\u25B2":"\u25BC",o=Gt(Math.abs(e.delta),e.format,e.currency,e.deltaFraction,!1);r=`<span class="kpi-delta ${n}">${a} ${Qe(o)}</span>`}const i=e.caption?`<div class="kpi-caption">${Qe(e.caption)}</div>`:"";return`<div class="kpi-label">${Qe(e.label)}</div><div class="kpi-value">${t}${r}</div>`+i}function eX(e){return`${e.heading?`<h3>${Qe(e.heading)}</h3>`:""}<div class="text-body">${Qe(e.text)}</div>`}function Qc(e){var t;return(t=e.notes)!=null&&t.length?`<div class="cell-notes">${Qe(e.notes.join(" "))}</div>`:""}function tX(e,t,r){const i=J9(e.span,r),n=i>1?` data-span="${i}"`:"";return"spec"in e?`<div class="cell chart"${n}><div class="cell-chart" id="cell-${t}"></div>${Qc(e.spec)}</div>`:e.type==="kpi"?`<div class="cell kpi"${n}>${Q9(e)}</div>`:e.type==="text"?`<div class="cell text-block"${n}>${eX(e)}</div>`:`<div class="cell unsupported"${n}>Unsupported item</div>`}function rX(e){var o;const t=K9(e.columns),r=e.title?`<div class="dash-title">${Qe(e.title)}</div>`:"",i=e.items.map((s,u)=>tX(s,u,t)).join(""),n=`<div class="grid" style="--cols:${t}">${i}</div>`,a=(o=e.notes)!=null&&o.length?`<div class="dash-notes">${Qe(e.notes.join(" "))}</div>`:"";return`${r}${n}${a}`}const eo=document.getElementById("root");let qf=[],mm=[],ef="light",Yf=null;function Xf(){for(const e of mm)e.disconnect();mm=[];for(const e of qf)e.dispose();qf=[]}function Vh(e,t){Y9(e)?(Yf=e,iX(e)):X9(e)?(Yf=e,nX(e)):t?(Xf(),eo.innerHTML=`<pre class="fallback">${Qe(t)}</pre>`):(Xf(),eo.innerHTML=\'<div class="empty">Waiting for chart data\u2026</div>\')}function tE(e,t){const r=QV(e,j9(ef),{renderer:"svg"});r.setOption(V9(t)),qf.push(r);const i=new ResizeObserver(()=>r.resize());i.observe(e),mm.push(i)}function nX(e){Xf();const t=e.title?`<div class="title">${Qe(e.title)}</div>`:"";if(e.data.length===0){eo.innerHTML=`${t}${Qb()}${Qc(e)}`;return}if(e.chartType==="table"){eo.innerHTML=`${eE(e)}${Qc(e)}`;return}eo.innerHTML=`${t}<div class="ec" id="ec"></div>${Qc(e)}`,tE(document.getElementById("ec"),e)}function iX(e){Xf(),eo.innerHTML=rX(e),e.items.forEach((t,r)=>{if(!("spec"in t))return;const i=document.getElementById(`cell-${r}`);if(i){if(t.spec.data.length===0){i.innerHTML=Qb();return}if(t.spec.chartType==="table"){i.innerHTML=eE(t.spec);return}i.innerHTML=\'<div class="ec"></div>\',tE(i.firstElementChild,t.spec)}})}function aX(){var r,i,n;const e=(r=window.openai)==null?void 0:r.theme;if(e==="light"||e==="dark")return e;const t=(i=Gh.getHostContext())==null?void 0:i.theme;return t==="dark"||t==="light"?t:(n=window.matchMedia)!=null&&n.call(window,"(prefers-color-scheme: dark)").matches?"dark":"light"}function rE(e){e===ef&&qf.length||(ef=e,document.documentElement.dataset.theme=ef,Yf&&Vh(Yf))}const Pl=()=>rE(aX()),Gh=new Ep({name:"Bonnard Chart",version:"0.1.0"});Gh.ontoolresult=e=>{var r,i;const t=(i=(r=e.content)==null?void 0:r.find(n=>n.type==="text"))==null?void 0:i.text;Vh(e.structuredContent,t)};Gh.onhostcontextchanged=()=>Pl();document.addEventListener("openai:set_globals",e=>{var t,r;(r=(t=e.detail)==null?void 0:t.globals)!=null&&r.theme&&Pl()});var ak,ok,sk;(sk=(ak=window.matchMedia)==null?void 0:(ok=ak.call(window,"(prefers-color-scheme: dark)")).addEventListener)==null||sk.call(ok,"change",Pl);location.hash==="#harness"&&(window.addEventListener("message",e=>{const t=e.data;(t==null?void 0:t.type)==="bonnard:harness-render"&&((t.theme==="light"||t.theme==="dark")&&rE(t.theme),Vh(t.structuredContent,t.text))}),parent.postMessage({type:"bonnard:harness-ready"},"*"));Vh(void 0);Pl();Gh.connect().then(Pl).catch(e=>{console.warn("MCP Apps host not detected:",e)});</script>\n </head>\n <body>\n <div id="root"></div>\n </body>\n</html>\n';
11
+
12
+ export {
13
+ isDashboardSpec,
14
+ isChartSpec,
15
+ WIDGET_HTML
16
+ };
17
+ //# sourceMappingURL=chunk-7MYIOIDH.js.map