fogact 1.1.3

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.
Files changed (72) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +244 -0
  3. package/README.zh-CN.md +244 -0
  4. package/bin/cli.js +9 -0
  5. package/bin/web-server.js +1434 -0
  6. package/config/upstream.example.json +14 -0
  7. package/frontend/activate.html +249 -0
  8. package/frontend/admin/admin-panel-v2.js +1899 -0
  9. package/frontend/admin/index.html +705 -0
  10. package/frontend/assets/market-ui.css +1876 -0
  11. package/frontend/color-test.html +136 -0
  12. package/frontend/index.html +191 -0
  13. package/frontend/user/assets/AnnouncementDetail-Dvxmwz0A.js +12 -0
  14. package/frontend/user/assets/Announcements-CS1tF2mx.js +11 -0
  15. package/frontend/user/assets/CardBind-CsCxihhP.js +21 -0
  16. package/frontend/user/assets/CardContent.vue_vue_type_script_setup_true_lang-D2L-uqSl.js +1 -0
  17. package/frontend/user/assets/CardDescription.vue_vue_type_script_setup_true_lang-D-v5Pl7F.js +1 -0
  18. package/frontend/user/assets/CardTitle.vue_vue_type_script_setup_true_lang-a0CCN6D5.js +1 -0
  19. package/frontend/user/assets/Dashboard-rPsmltm5.js +51 -0
  20. package/frontend/user/assets/DashboardLayout-BUCWGlXC.css +1 -0
  21. package/frontend/user/assets/DashboardLayout-DDkxHYFj.js +80 -0
  22. package/frontend/user/assets/Input.vue_vue_type_script_setup_true_lang-B0SyPmYb.js +6 -0
  23. package/frontend/user/assets/Label.vue_vue_type_script_setup_true_lang-CxYORSgN.js +1 -0
  24. package/frontend/user/assets/Progress.vue_vue_type_script_setup_true_lang-2_QbPsEQ.js +1 -0
  25. package/frontend/user/assets/QuotaPack-B_tJ7Psm.js +6 -0
  26. package/frontend/user/assets/Renewal-BSDhDmwv.js +6 -0
  27. package/frontend/user/assets/ScrollArea.vue_vue_type_script_setup_true_lang-DMYwcfpz.js +1 -0
  28. package/frontend/user/assets/Separator.vue_vue_type_script_setup_true_lang-Ckg8EXj_.js +1 -0
  29. package/frontend/user/assets/Settings-CBdAa3lw.js +11 -0
  30. package/frontend/user/assets/TooltipTrigger.vue_vue_type_script_setup_true_lang-DtSBjzGo.js +16 -0
  31. package/frontend/user/assets/Welcome-7IfzEli4.css +1 -0
  32. package/frontend/user/assets/Welcome-Dtfp6oER.js +1 -0
  33. package/frontend/user/assets/_plugin-vue_export-helper-5cjT4u0R.js +16 -0
  34. package/frontend/user/assets/activity-wYWtyqTJ.js +6 -0
  35. package/frontend/user/assets/announcement-35mOnjRL.js +16 -0
  36. package/frontend/user/assets/calendar-BFNuCata.js +6 -0
  37. package/frontend/user/assets/chart-vendor-CULJE59K.js +37 -0
  38. package/frontend/user/assets/chevron-down-kDbuU1Py.js +6 -0
  39. package/frontend/user/assets/chevron-right-BayASIm0.js +6 -0
  40. package/frontend/user/assets/eye-CY62vip0.js +6 -0
  41. package/frontend/user/assets/gauge-C5NQ-mV8.js +6 -0
  42. package/frontend/user/assets/index-B8QSyYhS.css +1 -0
  43. package/frontend/user/assets/index-Da98HOxL.js +91 -0
  44. package/frontend/user/assets/link-2-DT5R5nGO.js +6 -0
  45. package/frontend/user/assets/package-rUbExUEn.js +6 -0
  46. package/frontend/user/assets/plus-CQc6C8wG.js +11 -0
  47. package/frontend/user/assets/refresh-cw-Y9hCloPL.js +6 -0
  48. package/frontend/user/assets/useUserPageRefresh-BYZvpNR9.js +1 -0
  49. package/frontend/user/assets/zap-l5zbZqrM.js +11 -0
  50. package/frontend/user/index.html +67 -0
  51. package/install.sh +402 -0
  52. package/lib/commands/activate.js +144 -0
  53. package/lib/commands/restore.js +102 -0
  54. package/lib/commands/test.js +40 -0
  55. package/lib/config/claude.js +81 -0
  56. package/lib/config/codex.js +164 -0
  57. package/lib/config/upstream.js +79 -0
  58. package/lib/index.js +164 -0
  59. package/lib/platforms/claude-code.js +35 -0
  60. package/lib/platforms/codex-cli.js +35 -0
  61. package/lib/platforms/editor-codex.js +138 -0
  62. package/lib/platforms/index.js +32 -0
  63. package/lib/platforms/openclaw.js +118 -0
  64. package/lib/platforms/opencode.js +89 -0
  65. package/lib/services/activation-orchestrator.js +666 -0
  66. package/lib/services/backup-service.js +162 -0
  67. package/lib/services/cliproxy-api.js +174 -0
  68. package/lib/services/database.js +461 -0
  69. package/lib/services/newapi.js +97 -0
  70. package/lib/services/node-service.js +49 -0
  71. package/lib/utils/json-file.js +33 -0
  72. package/package.json +53 -0
@@ -0,0 +1,37 @@
1
+ var rd=Object.defineProperty;var ad=(e,t,s)=>t in e?rd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var U=(e,t,s)=>ad(e,typeof t!="symbol"?t+"":t,s);/**
2
+ * @vue/shared v3.5.25
3
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
+ * @license MIT
5
+ **/function Kt(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const et={},ms=[],Zt=()=>{},Zr=()=>!1,ii=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),So=e=>e.startsWith("onUpdate:"),ft=Object.assign,wo=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},ld=Object.prototype.hasOwnProperty,nt=(e,t)=>ld.call(e,t),j=Array.isArray,bs=e=>Es(e)==="[object Map]",os=e=>Es(e)==="[object Set]",wr=e=>Es(e)==="[object Date]",nf=e=>Es(e)==="[object RegExp]",X=e=>typeof e=="function",ht=e=>typeof e=="string",ne=e=>typeof e=="symbol",rt=e=>e!==null&&typeof e=="object",Mo=e=>(rt(e)||X(e))&&X(e.then)&&X(e.catch),Qr=Object.prototype.toString,Es=e=>Qr.call(e),of=e=>Es(e).slice(8,-1),sn=e=>Es(e)==="[object Object]",nn=e=>ht(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,_s=Kt(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),cd=Kt("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),To=e=>{const t=Object.create(null);return(s=>t[s]||(t[s]=e(s)))},fd=/-\w/g,Mt=To(e=>e.replace(fd,t=>t.slice(1).toUpperCase())),hd=/\B([A-Z])/g,Rt=To(e=>e.replace(hd,"-$1").toLowerCase()),ni=To(e=>e.charAt(0).toUpperCase()+e.slice(1)),js=To(e=>e?`on${ni(e)}`:""),Ot=(e,t)=>!Object.is(e,t),ys=(e,...t)=>{for(let s=0;s<e.length;s++)e[s](...t)},ta=(e,t,s,i=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:i,value:s})},on=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Ii=e=>{const t=ht(e)?Number(e):NaN;return isNaN(t)?e:t};let qa;const rn=()=>qa||(qa=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),ud=/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/;function dd(e){return ud.test(e)?`__props.${e}`:`__props[${JSON.stringify(e)}]`}function pd(e,t){return e+JSON.stringify(t,(s,i)=>typeof i=="function"?i.toString():i)}const gd={TEXT:1,1:"TEXT",CLASS:2,2:"CLASS",STYLE:4,4:"STYLE",PROPS:8,8:"PROPS",FULL_PROPS:16,16:"FULL_PROPS",NEED_HYDRATION:32,32:"NEED_HYDRATION",STABLE_FRAGMENT:64,64:"STABLE_FRAGMENT",KEYED_FRAGMENT:128,128:"KEYED_FRAGMENT",UNKEYED_FRAGMENT:256,256:"UNKEYED_FRAGMENT",NEED_PATCH:512,512:"NEED_PATCH",DYNAMIC_SLOTS:1024,1024:"DYNAMIC_SLOTS",DEV_ROOT_FRAGMENT:2048,2048:"DEV_ROOT_FRAGMENT",CACHED:-1,"-1":"CACHED",BAIL:-2,"-2":"BAIL"},md={1:"TEXT",2:"CLASS",4:"STYLE",8:"PROPS",16:"FULL_PROPS",32:"NEED_HYDRATION",64:"STABLE_FRAGMENT",128:"KEYED_FRAGMENT",256:"UNKEYED_FRAGMENT",512:"NEED_PATCH",1024:"DYNAMIC_SLOTS",2048:"DEV_ROOT_FRAGMENT",[-1]:"CACHED",[-2]:"BAIL"},bd={ELEMENT:1,1:"ELEMENT",FUNCTIONAL_COMPONENT:2,2:"FUNCTIONAL_COMPONENT",STATEFUL_COMPONENT:4,4:"STATEFUL_COMPONENT",TEXT_CHILDREN:8,8:"TEXT_CHILDREN",ARRAY_CHILDREN:16,16:"ARRAY_CHILDREN",SLOTS_CHILDREN:32,32:"SLOTS_CHILDREN",TELEPORT:64,64:"TELEPORT",SUSPENSE:128,128:"SUSPENSE",COMPONENT_SHOULD_KEEP_ALIVE:256,256:"COMPONENT_SHOULD_KEEP_ALIVE",COMPONENT_KEPT_ALIVE:512,512:"COMPONENT_KEPT_ALIVE",COMPONENT:6,6:"COMPONENT"},_d={STABLE:1,1:"STABLE",DYNAMIC:2,2:"DYNAMIC",FORWARDED:3,3:"FORWARDED"},yd={1:"STABLE",2:"DYNAMIC",3:"FORWARDED"},xd="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol",ea=Kt(xd),vd=ea,Ga=2;function Sd(e,t=0,s=e.length){if(t=Math.max(0,Math.min(t,e.length)),s=Math.max(0,Math.min(s,e.length)),t>s)return"";let i=e.split(/(\r?\n)/);const n=i.filter((a,l)=>l%2===1);i=i.filter((a,l)=>l%2===0);let o=0;const r=[];for(let a=0;a<i.length;a++)if(o+=i[a].length+(n[a]&&n[a].length||0),o>=t){for(let l=a-Ga;l<=a+Ga||s>o;l++){if(l<0||l>=i.length)continue;const c=l+1;r.push(`${c}${" ".repeat(Math.max(3-String(c).length,0))}| ${i[l]}`);const f=i[l].length,h=n[l]&&n[l].length||0;if(l===a){const u=t-(o-(f+h)),d=Math.max(1,s>o?f-u:s-t);r.push(" | "+" ".repeat(u)+"^".repeat(d))}else if(l>a){if(s>o){const u=Math.max(Math.min(s-o,f),1);r.push(" | "+"^".repeat(u))}o+=f+h}}break}return r.join(`
6
+ `)}function oi(e){if(j(e)){const t={};for(let s=0;s<e.length;s++){const i=e[s],n=ht(i)?rf(i):oi(i);if(n)for(const o in n)t[o]=n[o]}return t}else if(ht(e)||rt(e))return e}const wd=/;(?![^(]*\))/g,Md=/:([^]+)/,Td=/\/\*[^]*?\*\//g;function rf(e){const t={};return e.replace(Td,"").split(wd).forEach(s=>{if(s){const i=s.split(Md);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function kd(e){if(!e)return"";if(ht(e))return e;let t="";for(const s in e){const i=e[s];if(ht(i)||typeof i=="number"){const n=s.startsWith("--")?s:Rt(s);t+=`${n}:${i};`}}return t}function ri(e){let t="";if(ht(e))t=e;else if(j(e))for(let s=0;s<e.length;s++){const i=ri(e[s]);i&&(t+=i+" ")}else if(rt(e))for(const s in e)e[s]&&(t+=s+" ");return t.trim()}function af(e){if(!e)return null;let{class:t,style:s}=e;return t&&!ht(t)&&(e.class=ri(t)),s&&(e.style=oi(s)),e}const Cd="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",Ad="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",Pd="annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics",Ed="area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr",Od=Kt(Cd),Dd=Kt(Ad),Rd=Kt(Pd),Ld=Kt(Ed),lf="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",cf=Kt(lf),Fd=Kt(lf+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");function sa(e){return!!e||e===""}const Id=/[>/="'\u0009\u000a\u000c\u0020]/,qo={};function Nd(e){if(qo.hasOwnProperty(e))return qo[e];const t=Id.test(e);return t&&console.error(`unsafe attribute name: ${e}`),qo[e]=!t}const Bd={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},Hd=Kt("accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,inert,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap"),Vd=Kt("xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,overflow,overline-position,overline-thickness,panose-1,paint-order,path,pathLength,patternContentUnits,patternTransform,patternUnits,ping,pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,preserveAspectRatio,primitiveUnits,r,radius,referrerPolicy,refX,refY,rel,rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,specularConstant,specularExponent,speed,spreadMethod,startOffset,stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,string,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,text-decoration,text-rendering,textLength,to,transform,transform-origin,type,u1,u2,underline-position,underline-thickness,unicode,unicode-bidi,unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xmlns:xlink,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan"),zd=Kt("accent,accentunder,actiontype,align,alignmentscope,altimg,altimg-height,altimg-valign,altimg-width,alttext,bevelled,close,columnsalign,columnlines,columnspan,denomalign,depth,dir,display,displaystyle,encoding,equalcolumns,equalrows,fence,fontstyle,fontweight,form,frame,framespacing,groupalign,height,href,id,indentalign,indentalignfirst,indentalignlast,indentshift,indentshiftfirst,indentshiftlast,indextype,justify,largetop,largeop,lquote,lspace,mathbackground,mathcolor,mathsize,mathvariant,maxsize,minlabelspacing,mode,other,overflow,position,rowalign,rowlines,rowspan,rquote,rspace,scriptlevel,scriptminsize,scriptsizemultiplier,selection,separator,separators,shift,side,src,stackalign,stretchy,subscriptshift,superscriptshift,symmetric,voffset,width,widths,xlink:href,xlink:show,xlink:type,xmlns");function Wd(e){if(e==null)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"}const jd=/["'&<>]/;function $d(e){const t=""+e,s=jd.exec(t);if(!s)return t;let i="",n,o,r=0;for(o=s.index;o<t.length;o++){switch(t.charCodeAt(o)){case 34:n="&quot;";break;case 38:n="&amp;";break;case 39:n="&#39;";break;case 60:n="&lt;";break;case 62:n="&gt;";break;default:continue}r!==o&&(i+=t.slice(r,o)),r=o+1,i+=n}return r!==o?i+t.slice(r,o):i}const Ud=/^-?>|<!--|-->|--!>|<!-$/g;function Kd(e){return e.replace(Ud,"")}const ff=/[ !"#$%&'()*+,./:;<=>?@[\\\]^`{|}~]/g;function Yd(e,t){return e.replace(ff,s=>t?s==='"'?'\\\\\\"':`\\\\${s}`:`\\${s}`)}function Xd(e,t){if(e.length!==t.length)return!1;let s=!0;for(let i=0;s&&i<e.length;i++)s=Ie(e[i],t[i]);return s}function Ie(e,t){if(e===t)return!0;let s=wr(e),i=wr(t);if(s||i)return s&&i?e.getTime()===t.getTime():!1;if(s=ne(e),i=ne(t),s||i)return e===t;if(s=j(e),i=j(t),s||i)return s&&i?Xd(e,t):!1;if(s=rt(e),i=rt(t),s||i){if(!s||!i)return!1;const n=Object.keys(e).length,o=Object.keys(t).length;if(n!==o)return!1;for(const r in e){const a=e.hasOwnProperty(r),l=t.hasOwnProperty(r);if(a&&!l||!a&&l||!Ie(e[r],t[r]))return!1}}return String(e)===String(t)}function an(e,t){return e.findIndex(s=>Ie(s,t))}const hf=e=>!!(e&&e.__v_isRef===!0),ia=e=>ht(e)?e:e==null?"":j(e)||rt(e)&&(e.toString===Qr||!X(e.toString))?hf(e)?ia(e.value):JSON.stringify(e,uf,2):String(e),uf=(e,t)=>hf(t)?uf(e,t.value):bs(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[i,n],o)=>(s[Go(i,o)+" =>"]=n,s),{})}:os(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>Go(s))}:ne(t)?Go(t):rt(t)&&!j(t)&&!sn(t)?String(t):t,Go=(e,t="")=>{var s;return ne(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};function df(e){return e==null?"initial":typeof e=="string"?e===""?" ":e:String(e)}const rv=Object.freeze(Object.defineProperty({__proto__:null,EMPTY_ARR:ms,EMPTY_OBJ:et,NO:Zr,NOOP:Zt,PatchFlagNames:md,PatchFlags:gd,ShapeFlags:bd,SlotFlags:_d,camelize:Mt,capitalize:ni,cssVarNameEscapeSymbolsRE:ff,def:ta,escapeHtml:$d,escapeHtmlComment:Kd,extend:ft,genCacheKey:pd,genPropsAccessExp:dd,generateCodeFrame:Sd,getEscapedCssVarName:Yd,getGlobalThis:rn,hasChanged:Ot,hasOwn:nt,hyphenate:Rt,includeBooleanAttr:sa,invokeArrayFns:ys,isArray:j,isBooleanAttr:Fd,isBuiltInDirective:cd,isDate:wr,isFunction:X,isGloballyAllowed:ea,isGloballyWhitelisted:vd,isHTMLTag:Od,isIntegerKey:nn,isKnownHtmlAttr:Hd,isKnownMathMLAttr:zd,isKnownSvgAttr:Vd,isMap:bs,isMathMLTag:Rd,isModelListener:So,isObject:rt,isOn:ii,isPlainObject:sn,isPromise:Mo,isRegExp:nf,isRenderableAttrValue:Wd,isReservedProp:_s,isSSRSafeAttrName:Nd,isSVGTag:Dd,isSet:os,isSpecialBooleanAttr:cf,isString:ht,isSymbol:ne,isVoidTag:Ld,looseEqual:Ie,looseIndexOf:an,looseToNumber:on,makeMap:Kt,normalizeClass:ri,normalizeCssVarValue:df,normalizeProps:af,normalizeStyle:oi,objectToString:Qr,parseStringStyle:rf,propsToAttrMap:Bd,remove:wo,slotFlagsText:yd,stringifyStyle:kd,toDisplayString:ia,toHandlerKey:js,toNumber:Ii,toRawType:of,toTypeString:Es},Symbol.toStringTag,{value:"Module"}));/**
7
+ * @vue/reactivity v3.5.25
8
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
9
+ * @license MIT
10
+ **/let Et;class na{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Et,!t&&Et&&(this.index=(Et.scopes||(Et.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].pause();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].resume();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].resume()}}run(t){if(this._active){const s=Et;try{return Et=this,t()}finally{Et=s}}}on(){++this._on===1&&(this.prevScope=Et,Et=this)}off(){this._on>0&&--this._on===0&&(Et=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let s,i;for(s=0,i=this.effects.length;s<i;s++)this.effects[s].stop();for(this.effects.length=0,s=0,i=this.cleanups.length;s<i;s++)this.cleanups[s]();if(this.cleanups.length=0,this.scopes){for(s=0,i=this.scopes.length;s<i;s++)this.scopes[s].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const n=this.parent.scopes.pop();n&&n!==this&&(this.parent.scopes[this.index]=n,n.index=this.index)}this.parent=void 0}}}function qd(e){return new na(e)}function pf(){return Et}function Gd(e,t=!1){Et&&Et.cleanups.push(e)}let dt;const Jo=new WeakSet;class Ni{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Et&&Et.active&&Et.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Jo.has(this)&&(Jo.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||mf(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Ja(this),bf(this);const t=dt,s=fe;dt=this,fe=!0;try{return this.fn()}finally{_f(this),dt=t,fe=s,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)aa(t);this.deps=this.depsTail=void 0,Ja(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Jo.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Mr(this)&&this.run()}get dirty(){return Mr(this)}}let gf=0,Ti,ki;function mf(e,t=!1){if(e.flags|=8,t){e.next=ki,ki=e;return}e.next=Ti,Ti=e}function oa(){gf++}function ra(){if(--gf>0)return;if(ki){let t=ki;for(ki=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;Ti;){let t=Ti;for(Ti=void 0;t;){const s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(i){e||(e=i)}t=s}}if(e)throw e}function bf(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function _f(e){let t,s=e.depsTail,i=s;for(;i;){const n=i.prevDep;i.version===-1?(i===s&&(s=n),aa(i),Jd(i)):t=i,i.dep.activeLink=i.prevActiveLink,i.prevActiveLink=void 0,i=n}e.deps=t,e.depsTail=s}function Mr(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(yf(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function yf(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Bi)||(e.globalVersion=Bi,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Mr(e))))return;e.flags|=2;const t=e.dep,s=dt,i=fe;dt=e,fe=!0;try{bf(e);const n=e.fn(e._value);(t.version===0||Ot(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(n){throw t.version++,n}finally{dt=s,fe=i,_f(e),e.flags&=-3}}function aa(e,t=!1){const{dep:s,prevSub:i,nextSub:n}=e;if(i&&(i.nextSub=n,e.prevSub=void 0),n&&(n.prevSub=i,e.nextSub=void 0),s.subs===e&&(s.subs=i,!i&&s.computed)){s.computed.flags&=-5;for(let o=s.computed.deps;o;o=o.nextDep)aa(o,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function Jd(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}function Zd(e,t){e.effect instanceof Ni&&(e=e.effect.fn);const s=new Ni(e);t&&ft(s,t);try{s.run()}catch(n){throw s.stop(),n}const i=s.run.bind(s);return i.effect=s,i}function Qd(e){e.effect.stop()}let fe=!0;const xf=[];function Ne(){xf.push(fe),fe=!1}function Be(){const e=xf.pop();fe=e===void 0?!0:e}function Ja(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=dt;dt=void 0;try{t()}finally{dt=s}}}let Bi=0;class tp{constructor(t,s){this.sub=t,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class ko{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!dt||!fe||dt===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==dt)s=this.activeLink=new tp(dt,this),dt.deps?(s.prevDep=dt.depsTail,dt.depsTail.nextDep=s,dt.depsTail=s):dt.deps=dt.depsTail=s,vf(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const i=s.nextDep;i.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=i),s.prevDep=dt.depsTail,s.nextDep=void 0,dt.depsTail.nextDep=s,dt.depsTail=s,dt.deps===s&&(dt.deps=i)}return s}trigger(t){this.version++,Bi++,this.notify(t)}notify(t){oa();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{ra()}}}function vf(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let i=t.deps;i;i=i.nextDep)vf(i)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const Jn=new WeakMap,xs=Symbol(""),Tr=Symbol(""),Hi=Symbol("");function Dt(e,t,s){if(fe&&dt){let i=Jn.get(e);i||Jn.set(e,i=new Map);let n=i.get(s);n||(i.set(s,n=new ko),n.map=i,n.key=s),n.track()}}function Ee(e,t,s,i,n,o){const r=Jn.get(e);if(!r){Bi++;return}const a=l=>{l&&l.trigger()};if(oa(),t==="clear")r.forEach(a);else{const l=j(e),c=l&&nn(s);if(l&&s==="length"){const f=Number(i);r.forEach((h,u)=>{(u==="length"||u===Hi||!ne(u)&&u>=f)&&a(h)})}else switch((s!==void 0||r.has(void 0))&&a(r.get(s)),c&&a(r.get(Hi)),t){case"add":l?c&&a(r.get("length")):(a(r.get(xs)),bs(e)&&a(r.get(Tr)));break;case"delete":l||(a(r.get(xs)),bs(e)&&a(r.get(Tr)));break;case"set":bs(e)&&a(r.get(xs));break}}ra()}function ep(e,t){const s=Jn.get(e);return s&&s.get(t)}function Fs(e){const t=tt(e);return t===e?t:(Dt(t,"iterate",Hi),Ut(e)?t:t.map(he))}function Co(e){return Dt(e=tt(e),"iterate",Hi),e}function Ye(e,t){return xe(e)?Fe(e)?Gs(he(t)):Gs(t):he(t)}const sp={__proto__:null,[Symbol.iterator](){return Zo(this,Symbol.iterator,e=>Ye(this,e))},concat(...e){return Fs(this).concat(...e.map(t=>j(t)?Fs(t):t))},entries(){return Zo(this,"entries",e=>(e[1]=Ye(this,e[1]),e))},every(e,t){return we(this,"every",e,t,void 0,arguments)},filter(e,t){return we(this,"filter",e,t,s=>s.map(i=>Ye(this,i)),arguments)},find(e,t){return we(this,"find",e,t,s=>Ye(this,s),arguments)},findIndex(e,t){return we(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return we(this,"findLast",e,t,s=>Ye(this,s),arguments)},findLastIndex(e,t){return we(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return we(this,"forEach",e,t,void 0,arguments)},includes(...e){return Qo(this,"includes",e)},indexOf(...e){return Qo(this,"indexOf",e)},join(e){return Fs(this).join(e)},lastIndexOf(...e){return Qo(this,"lastIndexOf",e)},map(e,t){return we(this,"map",e,t,void 0,arguments)},pop(){return hi(this,"pop")},push(...e){return hi(this,"push",e)},reduce(e,...t){return Za(this,"reduce",e,t)},reduceRight(e,...t){return Za(this,"reduceRight",e,t)},shift(){return hi(this,"shift")},some(e,t){return we(this,"some",e,t,void 0,arguments)},splice(...e){return hi(this,"splice",e)},toReversed(){return Fs(this).toReversed()},toSorted(e){return Fs(this).toSorted(e)},toSpliced(...e){return Fs(this).toSpliced(...e)},unshift(...e){return hi(this,"unshift",e)},values(){return Zo(this,"values",e=>Ye(this,e))}};function Zo(e,t,s){const i=Co(e),n=i[t]();return i!==e&&!Ut(e)&&(n._next=n.next,n.next=()=>{const o=n._next();return o.done||(o.value=s(o.value)),o}),n}const ip=Array.prototype;function we(e,t,s,i,n,o){const r=Co(e),a=r!==e&&!Ut(e),l=r[t];if(l!==ip[t]){const h=l.apply(e,o);return a?he(h):h}let c=s;r!==e&&(a?c=function(h,u){return s.call(this,Ye(e,h),u,e)}:s.length>2&&(c=function(h,u){return s.call(this,h,u,e)}));const f=l.call(r,c,i);return a&&n?n(f):f}function Za(e,t,s,i){const n=Co(e);let o=s;return n!==e&&(Ut(e)?s.length>3&&(o=function(r,a,l){return s.call(this,r,a,l,e)}):o=function(r,a,l){return s.call(this,r,Ye(e,a),l,e)}),n[t](o,...i)}function Qo(e,t,s){const i=tt(e);Dt(i,"iterate",Hi);const n=i[t](...s);return(n===-1||n===!1)&&Os(s[0])?(s[0]=tt(s[0]),i[t](...s)):n}function hi(e,t,s=[]){Ne(),oa();const i=tt(e)[t].apply(e,s);return ra(),Be(),i}const np=Kt("__proto__,__v_isRef,__isVue"),Sf=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ne));function op(e){ne(e)||(e=String(e));const t=tt(this);return Dt(t,"has",e),t.hasOwnProperty(e)}class wf{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,i){if(s==="__v_skip")return t.__v_skip;const n=this._isReadonly,o=this._isShallow;if(s==="__v_isReactive")return!n;if(s==="__v_isReadonly")return n;if(s==="__v_isShallow")return o;if(s==="__v_raw")return i===(n?o?Pf:Af:o?Cf:kf).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(i)?t:void 0;const r=j(t);if(!n){let l;if(r&&(l=sp[s]))return l;if(s==="hasOwnProperty")return op}const a=Reflect.get(t,s,vt(t)?t:i);if((ne(s)?Sf.has(s):np(s))||(n||Dt(t,"get",s),o))return a;if(vt(a)){const l=r&&nn(s)?a:a.value;return n&&rt(l)?Zn(l):l}return rt(a)?n?Zn(a):Po(a):a}}class Mf extends wf{constructor(t=!1){super(!1,t)}set(t,s,i,n){let o=t[s];const r=j(t)&&nn(s);if(!this._isShallow){const c=xe(o);if(!Ut(i)&&!xe(i)&&(o=tt(o),i=tt(i)),!r&&vt(o)&&!vt(i))return c||(o.value=i),!0}const a=r?Number(s)<t.length:nt(t,s),l=Reflect.set(t,s,i,vt(t)?t:n);return t===tt(n)&&(a?Ot(i,o)&&Ee(t,"set",s,i):Ee(t,"add",s,i)),l}deleteProperty(t,s){const i=nt(t,s);t[s];const n=Reflect.deleteProperty(t,s);return n&&i&&Ee(t,"delete",s,void 0),n}has(t,s){const i=Reflect.has(t,s);return(!ne(s)||!Sf.has(s))&&Dt(t,"has",s),i}ownKeys(t){return Dt(t,"iterate",j(t)?"length":xs),Reflect.ownKeys(t)}}class Tf extends wf{constructor(t=!1){super(!0,t)}set(t,s){return!0}deleteProperty(t,s){return!0}}const rp=new Mf,ap=new Tf,lp=new Mf(!0),cp=new Tf(!0),kr=e=>e,bn=e=>Reflect.getPrototypeOf(e);function fp(e,t,s){return function(...i){const n=this.__v_raw,o=tt(n),r=bs(o),a=e==="entries"||e===Symbol.iterator&&r,l=e==="keys"&&r,c=n[e](...i),f=s?kr:t?Gs:he;return!t&&Dt(o,"iterate",l?Tr:xs),{next(){const{value:h,done:u}=c.next();return u?{value:h,done:u}:{value:a?[f(h[0]),f(h[1])]:f(h),done:u}},[Symbol.iterator](){return this}}}}function _n(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function hp(e,t){const s={get(n){const o=this.__v_raw,r=tt(o),a=tt(n);e||(Ot(n,a)&&Dt(r,"get",n),Dt(r,"get",a));const{has:l}=bn(r),c=t?kr:e?Gs:he;if(l.call(r,n))return c(o.get(n));if(l.call(r,a))return c(o.get(a));o!==r&&o.get(n)},get size(){const n=this.__v_raw;return!e&&Dt(tt(n),"iterate",xs),n.size},has(n){const o=this.__v_raw,r=tt(o),a=tt(n);return e||(Ot(n,a)&&Dt(r,"has",n),Dt(r,"has",a)),n===a?o.has(n):o.has(n)||o.has(a)},forEach(n,o){const r=this,a=r.__v_raw,l=tt(a),c=t?kr:e?Gs:he;return!e&&Dt(l,"iterate",xs),a.forEach((f,h)=>n.call(o,c(f),c(h),r))}};return ft(s,e?{add:_n("add"),set:_n("set"),delete:_n("delete"),clear:_n("clear")}:{add(n){!t&&!Ut(n)&&!xe(n)&&(n=tt(n));const o=tt(this);return bn(o).has.call(o,n)||(o.add(n),Ee(o,"add",n,n)),this},set(n,o){!t&&!Ut(o)&&!xe(o)&&(o=tt(o));const r=tt(this),{has:a,get:l}=bn(r);let c=a.call(r,n);c||(n=tt(n),c=a.call(r,n));const f=l.call(r,n);return r.set(n,o),c?Ot(o,f)&&Ee(r,"set",n,o):Ee(r,"add",n,o),this},delete(n){const o=tt(this),{has:r,get:a}=bn(o);let l=r.call(o,n);l||(n=tt(n),l=r.call(o,n)),a&&a.call(o,n);const c=o.delete(n);return l&&Ee(o,"delete",n,void 0),c},clear(){const n=tt(this),o=n.size!==0,r=n.clear();return o&&Ee(n,"clear",void 0,void 0),r}}),["keys","values","entries",Symbol.iterator].forEach(n=>{s[n]=fp(n,e,t)}),s}function Ao(e,t){const s=hp(e,t);return(i,n,o)=>n==="__v_isReactive"?!e:n==="__v_isReadonly"?e:n==="__v_raw"?i:Reflect.get(nt(s,n)&&n in i?s:i,n,o)}const up={get:Ao(!1,!1)},dp={get:Ao(!1,!0)},pp={get:Ao(!0,!1)},gp={get:Ao(!0,!0)},kf=new WeakMap,Cf=new WeakMap,Af=new WeakMap,Pf=new WeakMap;function mp(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function bp(e){return e.__v_skip||!Object.isExtensible(e)?0:mp(of(e))}function Po(e){return xe(e)?e:Eo(e,!1,rp,up,kf)}function Ef(e){return Eo(e,!1,lp,dp,Cf)}function Zn(e){return Eo(e,!0,ap,pp,Af)}function _p(e){return Eo(e,!0,cp,gp,Pf)}function Eo(e,t,s,i,n){if(!rt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=bp(e);if(o===0)return e;const r=n.get(e);if(r)return r;const a=new Proxy(e,o===2?i:s);return n.set(e,a),a}function Fe(e){return xe(e)?Fe(e.__v_raw):!!(e&&e.__v_isReactive)}function xe(e){return!!(e&&e.__v_isReadonly)}function Ut(e){return!!(e&&e.__v_isShallow)}function Os(e){return e?!!e.__v_raw:!1}function tt(e){const t=e&&e.__v_raw;return t?tt(t):e}function Of(e){return!nt(e,"__v_skip")&&Object.isExtensible(e)&&ta(e,"__v_skip",!0),e}const he=e=>rt(e)?Po(e):e,Gs=e=>rt(e)?Zn(e):e;function vt(e){return e?e.__v_isRef===!0:!1}function $s(e){return Df(e,!1)}function Oo(e){return Df(e,!0)}function Df(e,t){return vt(e)?e:new yp(e,t)}class yp{constructor(t,s){this.dep=new ko,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:tt(t),this._value=s?t:he(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){const s=this._rawValue,i=this.__v_isShallow||Ut(t)||xe(t);t=i?t:tt(t),Ot(t,s)&&(this._rawValue=t,this._value=i?t:he(t),this.dep.trigger())}}function xp(e){e.dep&&e.dep.trigger()}function ln(e){return vt(e)?e.value:e}function vp(e){return X(e)?e():ln(e)}const Sp={get:(e,t,s)=>t==="__v_raw"?e:ln(Reflect.get(e,t,s)),set:(e,t,s,i)=>{const n=e[t];return vt(n)&&!vt(s)?(n.value=s,!0):Reflect.set(e,t,s,i)}};function la(e){return Fe(e)?e:new Proxy(e,Sp)}class wp{constructor(t){this.__v_isRef=!0,this._value=void 0;const s=this.dep=new ko,{get:i,set:n}=t(s.track.bind(s),s.trigger.bind(s));this._get=i,this._set=n}get value(){return this._value=this._get()}set value(t){this._set(t)}}function Rf(e){return new wp(e)}function Mp(e){const t=j(e)?new Array(e.length):{};for(const s in e)t[s]=Lf(e,s);return t}class Tp{constructor(t,s,i){this._object=t,this._key=s,this._defaultValue=i,this.__v_isRef=!0,this._value=void 0,this._raw=tt(t);let n=!0,o=t;if(!j(t)||!nn(String(s)))do n=!Os(o)||Ut(o);while(n&&(o=o.__v_raw));this._shallow=n}get value(){let t=this._object[this._key];return this._shallow&&(t=ln(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&vt(this._raw[this._key])){const s=this._object[this._key];if(vt(s)){s.value=t;return}}this._object[this._key]=t}get dep(){return ep(this._raw,this._key)}}class kp{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Cp(e,t,s){return vt(e)?e:X(e)?new kp(e):rt(e)&&arguments.length>1?Lf(e,t,s):$s(e)}function Lf(e,t,s){return new Tp(e,t,s)}class Ap{constructor(t,s,i){this.fn=t,this.setter=s,this._value=void 0,this.dep=new ko(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Bi-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=i}notify(){if(this.flags|=16,!(this.flags&8)&&dt!==this)return mf(this,!0),!0}get value(){const t=this.dep.track();return yf(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Pp(e,t,s=!1){let i,n;return X(e)?i=e:(i=e.get,n=e.set),new Ap(i,n,s)}const Ep={GET:"get",HAS:"has",ITERATE:"iterate"},Op={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},yn={},Qn=new WeakMap;let Xe;function Dp(){return Xe}function Ff(e,t=!1,s=Xe){if(s){let i=Qn.get(s);i||Qn.set(s,i=[]),i.push(e)}}function Rp(e,t,s=et){const{immediate:i,deep:n,once:o,scheduler:r,augmentJob:a,call:l}=s,c=_=>n?_:Ut(_)||n===!1||n===0?Oe(_,1):Oe(_);let f,h,u,d,g=!1,p=!1;if(vt(e)?(h=()=>e.value,g=Ut(e)):Fe(e)?(h=()=>c(e),g=!0):j(e)?(p=!0,g=e.some(_=>Fe(_)||Ut(_)),h=()=>e.map(_=>{if(vt(_))return _.value;if(Fe(_))return c(_);if(X(_))return l?l(_,2):_()})):X(e)?t?h=l?()=>l(e,2):e:h=()=>{if(u){Ne();try{u()}finally{Be()}}const _=Xe;Xe=f;try{return l?l(e,3,[d]):e(d)}finally{Xe=_}}:h=Zt,t&&n){const _=h,v=n===!0?1/0:n;h=()=>Oe(_(),v)}const b=pf(),x=()=>{f.stop(),b&&b.active&&wo(b.effects,f)};if(o&&t){const _=t;t=(...v)=>{_(...v),x()}}let S=p?new Array(e.length).fill(yn):yn;const m=_=>{if(!(!(f.flags&1)||!f.dirty&&!_))if(t){const v=f.run();if(n||g||(p?v.some((M,k)=>Ot(M,S[k])):Ot(v,S))){u&&u();const M=Xe;Xe=f;try{const k=[v,S===yn?void 0:p&&S[0]===yn?[]:S,d];S=v,l?l(t,3,k):t(...k)}finally{Xe=M}}}else f.run()};return a&&a(m),f=new Ni(h),f.scheduler=r?()=>r(m,!1):m,d=_=>Ff(_,!1,f),u=f.onStop=()=>{const _=Qn.get(f);if(_){if(l)l(_,4);else for(const v of _)v();Qn.delete(f)}},t?i?m(!0):S=f.run():r?r(m.bind(null,!0),!0):f.run(),x.pause=f.pause.bind(f),x.resume=f.resume.bind(f),x.stop=x,x}function Oe(e,t=1/0,s){if(t<=0||!rt(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,vt(e))Oe(e.value,t,s);else if(j(e))for(let i=0;i<e.length;i++)Oe(e[i],t,s);else if(os(e)||bs(e))e.forEach(i=>{Oe(i,t,s)});else if(sn(e)){for(const i in e)Oe(e[i],t,s);for(const i of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,i)&&Oe(e[i],t,s)}return e}/**
11
+ * @vue/runtime-core v3.5.25
12
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
13
+ * @license MIT
14
+ **/const If=[];function Lp(e){If.push(e)}function Fp(){If.pop()}function Ip(e,t){}const Np={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE",APP_UNMOUNT_CLEANUP:16,16:"APP_UNMOUNT_CLEANUP"},Bp={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function ai(e,t,s,i){try{return i?e(...i):e()}catch(n){Ds(n,t,s)}}function oe(e,t,s,i){if(X(e)){const n=ai(e,t,s,i);return n&&Mo(n)&&n.catch(o=>{Ds(o,t,s)}),n}if(j(e)){const n=[];for(let o=0;o<e.length;o++)n.push(oe(e[o],t,s,i));return n}}function Ds(e,t,s,i=!0){const n=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:r}=t&&t.appContext.config||et;if(t){let a=t.parent;const l=t.proxy,c=`https://vuejs.org/error-reference/#runtime-${s}`;for(;a;){const f=a.ec;if(f){for(let h=0;h<f.length;h++)if(f[h](e,l,c)===!1)return}a=a.parent}if(o){Ne(),ai(o,null,10,[e,l,c]),Be();return}}Hp(e,s,n,i,r)}function Hp(e,t,s,i=!0,n=!1){if(n)throw e;console.error(e)}const Ht=[];let me=-1;const Us=[];let qe=null,Vs=0;const Nf=Promise.resolve();let to=null;function cn(e){const t=to||Nf;return e?t.then(this?e.bind(this):e):t}function Vp(e){let t=me+1,s=Ht.length;for(;t<s;){const i=t+s>>>1,n=Ht[i],o=zi(n);o<e||o===e&&n.flags&2?t=i+1:s=i}return t}function ca(e){if(!(e.flags&1)){const t=zi(e),s=Ht[Ht.length-1];!s||!(e.flags&2)&&t>=zi(s)?Ht.push(e):Ht.splice(Vp(t),0,e),e.flags|=1,Bf()}}function Bf(){to||(to=Nf.then(Hf))}function Vi(e){j(e)?Us.push(...e):qe&&e.id===-1?qe.splice(Vs+1,0,e):e.flags&1||(Us.push(e),e.flags|=1),Bf()}function Qa(e,t,s=me+1){for(;s<Ht.length;s++){const i=Ht[s];if(i&&i.flags&2){if(e&&i.id!==e.uid)continue;Ht.splice(s,1),s--,i.flags&4&&(i.flags&=-2),i(),i.flags&4||(i.flags&=-2)}}}function eo(e){if(Us.length){const t=[...new Set(Us)].sort((s,i)=>zi(s)-zi(i));if(Us.length=0,qe){qe.push(...t);return}for(qe=t,Vs=0;Vs<qe.length;Vs++){const s=qe[Vs];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}qe=null,Vs=0}}const zi=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Hf(e){try{for(me=0;me<Ht.length;me++){const t=Ht[me];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),ai(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;me<Ht.length;me++){const t=Ht[me];t&&(t.flags&=-2)}me=-1,Ht.length=0,eo(),to=null,(Ht.length||Us.length)&&Hf()}}let zs,xn=[];function Vf(e,t){var s,i;zs=e,zs?(zs.enabled=!0,xn.forEach(({event:n,args:o})=>zs.emit(n,...o)),xn=[]):typeof window<"u"&&window.HTMLElement&&!((i=(s=window.navigator)==null?void 0:s.userAgent)!=null&&i.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(o=>{Vf(o,t)}),setTimeout(()=>{zs||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,xn=[])},3e3)):xn=[]}let Ct=null,Do=null;function Wi(e){const t=Ct;return Ct=e,Do=e&&e.type.__scopeId||null,t}function zp(e){Do=e}function Wp(){Do=null}const jp=e=>fa;function fa(e,t=Ct,s){if(!t||e._n)return e;const i=(...n)=>{i._d&&Ki(-1);const o=Wi(t);let r;try{r=e(...n)}finally{Wi(o),i._d&&Ki(1)}return r};return i._n=!0,i._c=!0,i._d=!0,i}function $p(e,t){if(Ct===null)return e;const s=pn(Ct),i=e.dirs||(e.dirs=[]);for(let n=0;n<t.length;n++){let[o,r,a,l=et]=t[n];o&&(X(o)&&(o={mounted:o,updated:o}),o.deep&&Oe(r),i.push({dir:o,instance:s,value:r,oldValue:void 0,arg:a,modifiers:l}))}return e}function _e(e,t,s,i){const n=e.dirs,o=t&&t.dirs;for(let r=0;r<n.length;r++){const a=n[r];o&&(a.oldValue=o[r].value);let l=a.dir[i];l&&(Ne(),oe(l,s,8,[e.el,a,e,t]),Be())}}const zf=Symbol("_vte"),Wf=e=>e.__isTeleport,Ci=e=>e&&(e.disabled||e.disabled===""),tl=e=>e&&(e.defer||e.defer===""),el=e=>typeof SVGElement<"u"&&e instanceof SVGElement,sl=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Cr=(e,t)=>{const s=e&&e.to;return ht(s)?t?t(s):null:s},jf={name:"Teleport",__isTeleport:!0,process(e,t,s,i,n,o,r,a,l,c){const{mc:f,pc:h,pbc:u,o:{insert:d,querySelector:g,createText:p,createComment:b}}=c,x=Ci(t.props);let{shapeFlag:S,children:m,dynamicChildren:_}=t;if(e==null){const v=t.el=p(""),M=t.anchor=p("");d(v,s,i),d(M,s,i);const k=(T,A)=>{S&16&&f(m,T,A,n,o,r,a,l)},C=()=>{const T=t.target=Cr(t.props,g),A=$f(T,t,p,d);T&&(r!=="svg"&&el(T)?r="svg":r!=="mathml"&&sl(T)&&(r="mathml"),n&&n.isCE&&(n.ce._teleportTargets||(n.ce._teleportTargets=new Set)).add(T),x||(k(T,A),jn(t,!1)))};x&&(k(s,M),jn(t,!0)),tl(t.props)?(t.el.__isMounted=!1,yt(()=>{C(),delete t.el.__isMounted},o)):C()}else{if(tl(t.props)&&e.el.__isMounted===!1){yt(()=>{jf.process(e,t,s,i,n,o,r,a,l,c)},o);return}t.el=e.el,t.targetStart=e.targetStart;const v=t.anchor=e.anchor,M=t.target=e.target,k=t.targetAnchor=e.targetAnchor,C=Ci(e.props),T=C?s:M,A=C?v:k;if(r==="svg"||el(M)?r="svg":(r==="mathml"||sl(M))&&(r="mathml"),_?(u(e.dynamicChildren,_,T,n,o,r,a),va(e,t,!0)):l||h(e,t,T,A,n,o,r,a,!1),x)C?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):vn(t,s,v,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const L=t.target=Cr(t.props,g);L&&vn(t,L,null,c,0)}else C&&vn(t,M,k,c,1);jn(t,x)}},remove(e,t,s,{um:i,o:{remove:n}},o){const{shapeFlag:r,children:a,anchor:l,targetStart:c,targetAnchor:f,target:h,props:u}=e;if(h&&(n(c),n(f)),o&&n(l),r&16){const d=o||!Ci(u);for(let g=0;g<a.length;g++){const p=a[g];i(p,t,s,d,!!p.dynamicChildren)}}},move:vn,hydrate:Up};function vn(e,t,s,{o:{insert:i},m:n},o=2){o===0&&i(e.targetAnchor,t,s);const{el:r,anchor:a,shapeFlag:l,children:c,props:f}=e,h=o===2;if(h&&i(r,t,s),(!h||Ci(f))&&l&16)for(let u=0;u<c.length;u++)n(c[u],t,s,2);h&&i(a,t,s)}function Up(e,t,s,i,n,o,{o:{nextSibling:r,parentNode:a,querySelector:l,insert:c,createText:f}},h){function u(p,b,x,S){b.anchor=h(r(p),b,a(p),s,i,n,o),b.targetStart=x,b.targetAnchor=S}const d=t.target=Cr(t.props,l),g=Ci(t.props);if(d){const p=d._lpa||d.firstChild;if(t.shapeFlag&16)if(g)u(e,t,p,p&&r(p));else{t.anchor=r(e);let b=p;for(;b;){if(b&&b.nodeType===8){if(b.data==="teleport start anchor")t.targetStart=b;else if(b.data==="teleport anchor"){t.targetAnchor=b,d._lpa=t.targetAnchor&&r(t.targetAnchor);break}}b=r(b)}t.targetAnchor||$f(d,t,f,c),h(p&&r(p),t,d,s,i,n,o)}jn(t,g)}else g&&t.shapeFlag&16&&u(e,t,e,r(e));return t.anchor&&r(t.anchor)}const Kp=jf;function jn(e,t){const s=e.ctx;if(s&&s.ut){let i,n;for(t?(i=e.el,n=e.anchor):(i=e.targetStart,n=e.targetAnchor);i&&i!==n;)i.nodeType===1&&i.setAttribute("data-v-owner",s.uid),i=i.nextSibling;s.ut()}}function $f(e,t,s,i){const n=t.targetStart=s(""),o=t.targetAnchor=s("");return n[zf]=o,e&&(i(n,e),i(o,e)),o}const Ae=Symbol("_leaveCb"),Sn=Symbol("_enterCb");function ha(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return li(()=>{e.isMounted=!0}),Io(()=>{e.isUnmounting=!0}),e}const te=[Function,Array],ua={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:te,onEnter:te,onAfterEnter:te,onEnterCancelled:te,onBeforeLeave:te,onLeave:te,onAfterLeave:te,onLeaveCancelled:te,onBeforeAppear:te,onAppear:te,onAfterAppear:te,onAppearCancelled:te},Uf=e=>{const t=e.subTree;return t.component?Uf(t.component):t},Yp={name:"BaseTransition",props:ua,setup(e,{slots:t}){const s=Yt(),i=ha();return()=>{const n=t.default&&Ro(t.default(),!0);if(!n||!n.length)return;const o=Kf(n),r=tt(e),{mode:a}=r;if(i.isLeaving)return tr(o);const l=il(o);if(!l)return tr(o);let c=Js(l,r,i,s,h=>c=h);l.type!==bt&&He(l,c);let f=s.subTree&&il(s.subTree);if(f&&f.type!==bt&&!ce(f,l)&&Uf(s).type!==bt){let h=Js(f,r,i,s);if(He(f,h),a==="out-in"&&l.type!==bt)return i.isLeaving=!0,h.afterLeave=()=>{i.isLeaving=!1,s.job.flags&8||s.update(),delete h.afterLeave,f=void 0},tr(o);a==="in-out"&&l.type!==bt?h.delayLeave=(u,d,g)=>{const p=Xf(i,f);p[String(f.key)]=f,u[Ae]=()=>{d(),u[Ae]=void 0,delete c.delayedLeave,f=void 0},c.delayedLeave=()=>{g(),delete c.delayedLeave,f=void 0}}:f=void 0}else f&&(f=void 0);return o}}};function Kf(e){let t=e[0];if(e.length>1){for(const s of e)if(s.type!==bt){t=s;break}}return t}const Yf=Yp;function Xf(e,t){const{leavingVNodes:s}=e;let i=s.get(t.type);return i||(i=Object.create(null),s.set(t.type,i)),i}function Js(e,t,s,i,n){const{appear:o,mode:r,persisted:a=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:f,onEnterCancelled:h,onBeforeLeave:u,onLeave:d,onAfterLeave:g,onLeaveCancelled:p,onBeforeAppear:b,onAppear:x,onAfterAppear:S,onAppearCancelled:m}=t,_=String(e.key),v=Xf(s,e),M=(T,A)=>{T&&oe(T,i,9,A)},k=(T,A)=>{const L=A[1];M(T,A),j(T)?T.every(P=>P.length<=1)&&L():T.length<=1&&L()},C={mode:r,persisted:a,beforeEnter(T){let A=l;if(!s.isMounted)if(o)A=b||l;else return;T[Ae]&&T[Ae](!0);const L=v[_];L&&ce(e,L)&&L.el[Ae]&&L.el[Ae](),M(A,[T])},enter(T){let A=c,L=f,P=h;if(!s.isMounted)if(o)A=x||c,L=S||f,P=m||h;else return;let W=!1;const G=T[Sn]=Y=>{W||(W=!0,Y?M(P,[T]):M(L,[T]),C.delayedLeave&&C.delayedLeave(),T[Sn]=void 0)};A?k(A,[T,G]):G()},leave(T,A){const L=String(e.key);if(T[Sn]&&T[Sn](!0),s.isUnmounting)return A();M(u,[T]);let P=!1;const W=T[Ae]=G=>{P||(P=!0,A(),G?M(p,[T]):M(g,[T]),T[Ae]=void 0,v[L]===e&&delete v[L])};v[L]=e,d?k(d,[T,W]):W()},clone(T){const A=Js(T,t,s,i,n);return n&&n(A),A}};return C}function tr(e){if(hn(e))return e=ve(e),e.children=null,e}function il(e){if(!hn(e))return Wf(e.type)&&e.children?Kf(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:s}=e;if(s){if(t&16)return s[0];if(t&32&&X(s.default))return s.default()}}function He(e,t){e.shapeFlag&6&&e.component?(e.transition=t,He(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Ro(e,t=!1,s){let i=[],n=0;for(let o=0;o<e.length;o++){let r=e[o];const a=s==null?r.key:String(s)+String(r.key!=null?r.key:o);r.type===wt?(r.patchFlag&128&&n++,i=i.concat(Ro(r.children,t,a))):(t||r.type!==bt)&&i.push(a!=null?ve(r,{key:a}):r)}if(n>1)for(let o=0;o<i.length;o++)i[o].patchFlag=-2;return i}function fn(e,t){return X(e)?ft({name:e.name},t,{setup:e}):e}function Xp(){const e=Yt();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function da(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function qp(e){const t=Yt(),s=Oo(null);if(t){const n=t.refs===et?t.refs={}:t.refs;Object.defineProperty(n,e,{enumerable:!0,get:()=>s.value,set:o=>s.value=o})}return s}const so=new WeakMap;function Ks(e,t,s,i,n=!1){if(j(e)){e.forEach((g,p)=>Ks(g,t&&(j(t)?t[p]:t),s,i,n));return}if(ts(i)&&!n){i.shapeFlag&512&&i.type.__asyncResolved&&i.component.subTree.component&&Ks(e,t,s,i.component.subTree);return}const o=i.shapeFlag&4?pn(i.component):i.el,r=n?null:o,{i:a,r:l}=e,c=t&&t.r,f=a.refs===et?a.refs={}:a.refs,h=a.setupState,u=tt(h),d=h===et?Zr:g=>nt(u,g);if(c!=null&&c!==l){if(nl(t),ht(c))f[c]=null,d(c)&&(h[c]=null);else if(vt(c)){c.value=null;const g=t;g.k&&(f[g.k]=null)}}if(X(l))ai(l,a,12,[r,f]);else{const g=ht(l),p=vt(l);if(g||p){const b=()=>{if(e.f){const x=g?d(l)?h[l]:f[l]:l.value;if(n)j(x)&&wo(x,o);else if(j(x))x.includes(o)||x.push(o);else if(g)f[l]=[o],d(l)&&(h[l]=f[l]);else{const S=[o];l.value=S,e.k&&(f[e.k]=S)}}else g?(f[l]=r,d(l)&&(h[l]=r)):p&&(l.value=r,e.k&&(f[e.k]=r))};if(r){const x=()=>{b(),so.delete(e)};x.id=-1,so.set(e,x),yt(x,s)}else nl(e),b()}}}function nl(e){const t=so.get(e);t&&(t.flags|=8,so.delete(e))}let ol=!1;const Is=()=>{ol||(console.error("Hydration completed but contains mismatches."),ol=!0)},Gp=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",Jp=e=>e.namespaceURI.includes("MathML"),wn=e=>{if(e.nodeType===1){if(Gp(e))return"svg";if(Jp(e))return"mathml"}},Ws=e=>e.nodeType===8;function Zp(e){const{mt:t,p:s,o:{patchProp:i,createText:n,nextSibling:o,parentNode:r,remove:a,insert:l,createComment:c}}=e,f=(m,_)=>{if(!_.hasChildNodes()){s(null,m,_),eo(),_._vnode=m;return}h(_.firstChild,m,null,null,null),eo(),_._vnode=m},h=(m,_,v,M,k,C=!1)=>{C=C||!!_.dynamicChildren;const T=Ws(m)&&m.data==="[",A=()=>p(m,_,v,M,k,T),{type:L,ref:P,shapeFlag:W,patchFlag:G}=_;let Y=m.nodeType;_.el=m,G===-2&&(C=!1,_.dynamicChildren=null);let I=null;switch(L){case es:Y!==3?_.children===""?(l(_.el=n(""),r(m),m),I=m):I=A():(m.data!==_.children&&(Is(),m.data=_.children),I=o(m));break;case bt:S(m)?(I=o(m),x(_.el=m.content.firstChild,m,v)):Y!==8||T?I=A():I=o(m);break;case ws:if(T&&(m=o(m),Y=m.nodeType),Y===1||Y===3){I=m;const $=!_.children.length;for(let V=0;V<_.staticCount;V++)$&&(_.children+=I.nodeType===1?I.outerHTML:I.data),V===_.staticCount-1&&(_.anchor=I),I=o(I);return T?o(I):I}else A();break;case wt:T?I=g(m,_,v,M,k,C):I=A();break;default:if(W&1)(Y!==1||_.type.toLowerCase()!==m.tagName.toLowerCase())&&!S(m)?I=A():I=u(m,_,v,M,k,C);else if(W&6){_.slotScopeIds=k;const $=r(m);if(T?I=b(m):Ws(m)&&m.data==="teleport start"?I=b(m,m.data,"teleport end"):I=o(m),t(_,$,null,v,M,wn($),C),ts(_)&&!_.type.__asyncResolved){let V;T?(V=gt(wt),V.anchor=I?I.previousSibling:$.lastChild):V=m.nodeType===3?wa(""):gt("div"),V.el=m,_.component.subTree=V}}else W&64?Y!==8?I=A():I=_.type.hydrate(m,_,v,M,k,C,e,d):W&128&&(I=_.type.hydrate(m,_,v,M,wn(r(m)),k,C,e,h))}return P!=null&&Ks(P,null,M,_),I},u=(m,_,v,M,k,C)=>{C=C||!!_.dynamicChildren;const{type:T,props:A,patchFlag:L,shapeFlag:P,dirs:W,transition:G}=_,Y=T==="input"||T==="option";if(Y||L!==-1){W&&_e(_,null,v,"created");let I=!1;if(S(m)){I=Th(null,G)&&v&&v.vnode.props&&v.vnode.props.appear;const V=m.content.firstChild;if(I){const Z=V.getAttribute("class");Z&&(V.$cls=Z),G.beforeEnter(V)}x(V,m,v),_.el=m=V}if(P&16&&!(A&&(A.innerHTML||A.textContent))){let V=d(m.firstChild,_,m,v,M,k,C);for(;V;){Mn(m,1)||Is();const Z=V;V=V.nextSibling,a(Z)}}else if(P&8){let V=_.children;V[0]===`
15
+ `&&(m.tagName==="PRE"||m.tagName==="TEXTAREA")&&(V=V.slice(1));const{textContent:Z}=m;Z!==V&&Z!==V.replace(/\r\n|\r/g,`
16
+ `)&&(Mn(m,0)||Is(),m.textContent=_.children)}if(A){if(Y||!C||L&48){const V=m.tagName.includes("-");for(const Z in A)(Y&&(Z.endsWith("value")||Z==="indeterminate")||ii(Z)&&!_s(Z)||Z[0]==="."||V)&&i(m,Z,null,A[Z],void 0,v)}else if(A.onClick)i(m,"onClick",null,A.onClick,void 0,v);else if(L&4&&Fe(A.style))for(const V in A.style)A.style[V]}let $;($=A&&A.onVnodeBeforeMount)&&Wt($,v,_),W&&_e(_,null,v,"beforeMount"),(($=A&&A.onVnodeMounted)||W||I)&&Ah(()=>{$&&Wt($,v,_),I&&G.enter(m),W&&_e(_,null,v,"mounted")},M)}return m.nextSibling},d=(m,_,v,M,k,C,T)=>{T=T||!!_.dynamicChildren;const A=_.children,L=A.length;for(let P=0;P<L;P++){const W=T?A[P]:A[P]=jt(A[P]),G=W.type===es;m?(G&&!T&&P+1<L&&jt(A[P+1]).type===es&&(l(n(m.data.slice(W.children.length)),v,o(m)),m.data=W.children),m=h(m,W,M,k,C,T)):G&&!W.children?l(W.el=n(""),v):(Mn(v,1)||Is(),s(null,W,v,null,M,k,wn(v),C))}return m},g=(m,_,v,M,k,C)=>{const{slotScopeIds:T}=_;T&&(k=k?k.concat(T):T);const A=r(m),L=d(o(m),_,A,v,M,k,C);return L&&Ws(L)&&L.data==="]"?o(_.anchor=L):(Is(),l(_.anchor=c("]"),A,L),L)},p=(m,_,v,M,k,C)=>{if(Mn(m.parentElement,1)||Is(),_.el=null,C){const L=b(m);for(;;){const P=o(m);if(P&&P!==L)a(P);else break}}const T=o(m),A=r(m);return a(m),s(null,_,A,T,v,M,wn(A),k),v&&(v.vnode.el=_.el,Bo(v,_.el)),T},b=(m,_="[",v="]")=>{let M=0;for(;m;)if(m=o(m),m&&Ws(m)&&(m.data===_&&M++,m.data===v)){if(M===0)return o(m);M--}return m},x=(m,_,v)=>{const M=_.parentNode;M&&M.replaceChild(m,_);let k=v;for(;k;)k.vnode.el===_&&(k.vnode.el=k.subTree.el=m),k=k.parent},S=m=>m.nodeType===1&&m.tagName==="TEMPLATE";return[f,h]}const rl="data-allow-mismatch",Qp={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function Mn(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(rl);)e=e.parentElement;const s=e&&e.getAttribute(rl);if(s==null)return!1;if(s==="")return!0;{const i=s.split(",");return t===0&&i.includes("children")?!0:i.includes(Qp[t])}}const tg=rn().requestIdleCallback||(e=>setTimeout(e,1)),eg=rn().cancelIdleCallback||(e=>clearTimeout(e)),sg=(e=1e4)=>t=>{const s=tg(t,{timeout:e});return()=>eg(s)};function ig(e){const{top:t,left:s,bottom:i,right:n}=e.getBoundingClientRect(),{innerHeight:o,innerWidth:r}=window;return(t>0&&t<o||i>0&&i<o)&&(s>0&&s<r||n>0&&n<r)}const ng=e=>(t,s)=>{const i=new IntersectionObserver(n=>{for(const o of n)if(o.isIntersecting){i.disconnect(),t();break}},e);return s(n=>{if(n instanceof Element){if(ig(n))return t(),i.disconnect(),!1;i.observe(n)}}),()=>i.disconnect()},og=e=>t=>{if(e){const s=matchMedia(e);if(s.matches)t();else return s.addEventListener("change",t,{once:!0}),()=>s.removeEventListener("change",t)}},rg=(e=[])=>(t,s)=>{ht(e)&&(e=[e]);let i=!1;const n=r=>{i||(i=!0,o(),t(),r.target.dispatchEvent(new r.constructor(r.type,r)))},o=()=>{s(r=>{for(const a of e)r.removeEventListener(a,n)})};return s(r=>{for(const a of e)r.addEventListener(a,n,{once:!0})}),o};function ag(e,t){if(Ws(e)&&e.data==="["){let s=1,i=e.nextSibling;for(;i;){if(i.nodeType===1){if(t(i)===!1)break}else if(Ws(i))if(i.data==="]"){if(--s===0)break}else i.data==="["&&s++;i=i.nextSibling}}else t(e)}const ts=e=>!!e.type.__asyncLoader;function lg(e){X(e)&&(e={loader:e});const{loader:t,loadingComponent:s,errorComponent:i,delay:n=200,hydrate:o,timeout:r,suspensible:a=!0,onError:l}=e;let c=null,f,h=0;const u=()=>(h++,c=null,d()),d=()=>{let g;return c||(g=c=t().catch(p=>{if(p=p instanceof Error?p:new Error(String(p)),l)return new Promise((b,x)=>{l(p,()=>b(u()),()=>x(p),h+1)});throw p}).then(p=>g!==c&&c?c:(p&&(p.__esModule||p[Symbol.toStringTag]==="Module")&&(p=p.default),f=p,p)))};return fn({name:"AsyncComponentWrapper",__asyncLoader:d,__asyncHydrate(g,p,b){let x=!1;(p.bu||(p.bu=[])).push(()=>x=!0);const S=()=>{x||b()},m=o?()=>{const _=o(S,v=>ag(g,v));_&&(p.bum||(p.bum=[])).push(_)}:S;f?m():d().then(()=>!p.isUnmounted&&m())},get __asyncResolved(){return f},setup(){const g=kt;if(da(g),f)return()=>Tn(f,g);const p=m=>{c=null,Ds(m,g,13,!i)};if(a&&g.suspense||Zs)return d().then(m=>()=>Tn(m,g)).catch(m=>(p(m),()=>i?gt(i,{error:m}):null));const b=$s(!1),x=$s(),S=$s(!!n);return n&&setTimeout(()=>{S.value=!1},n),r!=null&&setTimeout(()=>{if(!b.value&&!x.value){const m=new Error(`Async component timed out after ${r}ms.`);p(m),x.value=m}},r),d().then(()=>{b.value=!0,g.parent&&hn(g.parent.vnode)&&g.parent.update()}).catch(m=>{p(m),x.value=m}),()=>{if(b.value&&f)return Tn(f,g);if(x.value&&i)return gt(i,{error:x.value});if(s&&!S.value)return Tn(s,g)}}})}function Tn(e,t){const{ref:s,props:i,children:n,ce:o}=t.vnode,r=gt(e,i,n);return r.ref=s,r.ce=o,delete t.vnode.ce,r}const hn=e=>e.type.__isKeepAlive,cg={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const s=Yt(),i=s.ctx;if(!i.renderer)return()=>{const S=t.default&&t.default();return S&&S.length===1?S[0]:S};const n=new Map,o=new Set;let r=null;const a=s.suspense,{renderer:{p:l,m:c,um:f,o:{createElement:h}}}=i,u=h("div");i.activate=(S,m,_,v,M)=>{const k=S.component;c(S,m,_,0,a),l(k.vnode,S,m,_,k,a,v,S.slotScopeIds,M),yt(()=>{k.isDeactivated=!1,k.a&&ys(k.a);const C=S.props&&S.props.onVnodeMounted;C&&Wt(C,k.parent,S)},a)},i.deactivate=S=>{const m=S.component;no(m.m),no(m.a),c(S,u,null,1,a),yt(()=>{m.da&&ys(m.da);const _=S.props&&S.props.onVnodeUnmounted;_&&Wt(_,m.parent,S),m.isDeactivated=!0},a)};function d(S){er(S),f(S,s,a,!0)}function g(S){n.forEach((m,_)=>{const v=Br(m.type);v&&!S(v)&&p(_)})}function p(S){const m=n.get(S);m&&(!r||!ce(m,r))?d(m):r&&er(r),n.delete(S),o.delete(S)}Ss(()=>[e.include,e.exclude],([S,m])=>{S&&g(_=>yi(S,_)),m&&g(_=>!yi(m,_))},{flush:"post",deep:!0});let b=null;const x=()=>{b!=null&&(oo(s.subTree.type)?yt(()=>{n.set(b,kn(s.subTree))},s.subTree.suspense):n.set(b,kn(s.subTree)))};return li(x),Fo(x),Io(()=>{n.forEach(S=>{const{subTree:m,suspense:_}=s,v=kn(m);if(S.type===v.type&&S.key===v.key){er(v);const M=v.component.da;M&&yt(M,_);return}d(S)})}),()=>{if(b=null,!t.default)return r=null;const S=t.default(),m=S[0];if(S.length>1)return r=null,S;if(!Ve(m)||!(m.shapeFlag&4)&&!(m.shapeFlag&128))return r=null,m;let _=kn(m);if(_.type===bt)return r=null,_;const v=_.type,M=Br(ts(_)?_.type.__asyncResolved||{}:v),{include:k,exclude:C,max:T}=e;if(k&&(!M||!yi(k,M))||C&&M&&yi(C,M))return _.shapeFlag&=-257,r=_,m;const A=_.key==null?v:_.key,L=n.get(A);return _.el&&(_=ve(_),m.shapeFlag&128&&(m.ssContent=_)),b=A,L?(_.el=L.el,_.component=L.component,_.transition&&He(_,_.transition),_.shapeFlag|=512,o.delete(A),o.add(A)):(o.add(A),T&&o.size>parseInt(T,10)&&p(o.values().next().value)),_.shapeFlag|=256,r=_,oo(m.type)?m:_}}},fg=cg;function yi(e,t){return j(e)?e.some(s=>yi(s,t)):ht(e)?e.split(",").includes(t):nf(e)?(e.lastIndex=0,e.test(t)):!1}function qf(e,t){Jf(e,"a",t)}function Gf(e,t){Jf(e,"da",t)}function Jf(e,t,s=kt){const i=e.__wdc||(e.__wdc=()=>{let n=s;for(;n;){if(n.isDeactivated)return;n=n.parent}return e()});if(Lo(t,i,s),s){let n=s.parent;for(;n&&n.parent;)hn(n.parent.vnode)&&hg(i,t,s,n),n=n.parent}}function hg(e,t,s,i){const n=Lo(t,e,i,!0);un(()=>{wo(i[t],n)},s)}function er(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function kn(e){return e.shapeFlag&128?e.ssContent:e}function Lo(e,t,s=kt,i=!1){if(s){const n=s[e]||(s[e]=[]),o=t.__weh||(t.__weh=(...r)=>{Ne();const a=Cs(s),l=oe(t,s,e,r);return a(),Be(),l});return i?n.unshift(o):n.push(o),o}}const ze=e=>(t,s=kt)=>{(!Zs||e==="sp")&&Lo(e,(...i)=>t(...i),s)},Zf=ze("bm"),li=ze("m"),pa=ze("bu"),Fo=ze("u"),Io=ze("bum"),un=ze("um"),Qf=ze("sp"),th=ze("rtg"),eh=ze("rtc");function sh(e,t=kt){Lo("ec",e,t)}const ga="components",ug="directives";function dg(e,t){return ma(ga,e,!0,t)||e}const ih=Symbol.for("v-ndc");function pg(e){return ht(e)?ma(ga,e,!1)||e:e||ih}function gg(e){return ma(ug,e)}function ma(e,t,s=!0,i=!1){const n=Ct||kt;if(n){const o=n.type;if(e===ga){const a=Br(o,!1);if(a&&(a===t||a===Mt(t)||a===ni(Mt(t))))return o}const r=al(n[e]||o[e],t)||al(n.appContext[e],t);return!r&&i?o:r}}function al(e,t){return e&&(e[t]||e[Mt(t)]||e[ni(Mt(t))])}function mg(e,t,s,i){let n;const o=s&&s[i],r=j(e);if(r||ht(e)){const a=r&&Fe(e);let l=!1,c=!1;a&&(l=!Ut(e),c=xe(e),e=Co(e)),n=new Array(e.length);for(let f=0,h=e.length;f<h;f++)n[f]=t(l?c?Gs(he(e[f])):he(e[f]):e[f],f,void 0,o&&o[f])}else if(typeof e=="number"){n=new Array(e);for(let a=0;a<e;a++)n[a]=t(a+1,a,void 0,o&&o[a])}else if(rt(e))if(e[Symbol.iterator])n=Array.from(e,(a,l)=>t(a,l,void 0,o&&o[l]));else{const a=Object.keys(e);n=new Array(a.length);for(let l=0,c=a.length;l<c;l++){const f=a[l];n[l]=t(e[f],f,l,o&&o[l])}}else n=[];return s&&(s[i]=n),n}function bg(e,t){for(let s=0;s<t.length;s++){const i=t[s];if(j(i))for(let n=0;n<i.length;n++)e[i[n].name]=i[n].fn;else i&&(e[i.name]=i.key?(...n)=>{const o=i.fn(...n);return o&&(o.key=i.key),o}:i.fn)}return e}function _g(e,t,s={},i,n){if(Ct.ce||Ct.parent&&ts(Ct.parent)&&Ct.parent.ce){const c=Object.keys(s).length>0;return t!=="default"&&(s.name=t),Ui(),ro(wt,null,[gt("slot",s,i&&i())],c?-2:64)}let o=e[t];o&&o._c&&(o._d=!1),Ui();const r=o&&ba(o(s)),a=s.key||r&&r.key,l=ro(wt,{key:(a&&!ne(a)?a:`_${t}`)+(!r&&i?"_fb":"")},r||(i?i():[]),r&&e._===1?64:-2);return!n&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),o&&o._c&&(o._d=!0),l}function ba(e){return e.some(t=>Ve(t)?!(t.type===bt||t.type===wt&&!ba(t.children)):!0)?e:null}function yg(e,t){const s={};for(const i in e)s[t&&/[A-Z]/.test(i)?`on:${i}`:js(i)]=e[i];return s}const Ar=e=>e?Fh(e)?pn(e):Ar(e.parent):null,Ai=ft(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Ar(e.parent),$root:e=>Ar(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>_a(e),$forceUpdate:e=>e.f||(e.f=()=>{ca(e.update)}),$nextTick:e=>e.n||(e.n=cn.bind(e.proxy)),$watch:e=>$g.bind(e)}),sr=(e,t)=>e!==et&&!e.__isScriptSetup&&nt(e,t),Pr={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:i,data:n,props:o,accessCache:r,type:a,appContext:l}=e;if(t[0]!=="$"){const u=r[t];if(u!==void 0)switch(u){case 1:return i[t];case 2:return n[t];case 4:return s[t];case 3:return o[t]}else{if(sr(i,t))return r[t]=1,i[t];if(n!==et&&nt(n,t))return r[t]=2,n[t];if(nt(o,t))return r[t]=3,o[t];if(s!==et&&nt(s,t))return r[t]=4,s[t];Er&&(r[t]=0)}}const c=Ai[t];let f,h;if(c)return t==="$attrs"&&Dt(e.attrs,"get",""),c(e);if((f=a.__cssModules)&&(f=f[t]))return f;if(s!==et&&nt(s,t))return r[t]=4,s[t];if(h=l.config.globalProperties,nt(h,t))return h[t]},set({_:e},t,s){const{data:i,setupState:n,ctx:o}=e;return sr(n,t)?(n[t]=s,!0):i!==et&&nt(i,t)?(i[t]=s,!0):nt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:i,appContext:n,props:o,type:r}},a){let l;return!!(s[a]||e!==et&&a[0]!=="$"&&nt(e,a)||sr(t,a)||nt(o,a)||nt(i,a)||nt(Ai,a)||nt(n.config.globalProperties,a)||(l=r.__cssModules)&&l[a])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:nt(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}},xg=ft({},Pr,{get(e,t){if(t!==Symbol.unscopables)return Pr.get(e,t,e)},has(e,t){return t[0]!=="_"&&!ea(t)}});function vg(){return null}function Sg(){return null}function wg(e){}function Mg(e){}function Tg(){return null}function kg(){}function Cg(e,t){return null}function Ag(){return nh().slots}function Pg(){return nh().attrs}function nh(e){const t=Yt();return t.setupContext||(t.setupContext=Bh(t))}function ji(e){return j(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}function Eg(e,t){const s=ji(e);for(const i in t){if(i.startsWith("__skip"))continue;let n=s[i];n?j(n)||X(n)?n=s[i]={type:n,default:t[i]}:n.default=t[i]:n===null&&(n=s[i]={default:t[i]}),n&&t[`__skip_${i}`]&&(n.skipFactory=!0)}return s}function Og(e,t){return!e||!t?e||t:j(e)&&j(t)?e.concat(t):ft({},ji(e),ji(t))}function Dg(e,t){const s={};for(const i in e)t.includes(i)||Object.defineProperty(s,i,{enumerable:!0,get:()=>e[i]});return s}function Rg(e){const t=Yt();let s=e();return Fr(),Mo(s)&&(s=s.catch(i=>{throw Cs(t),i})),[s,()=>Cs(t)]}let Er=!0;function Lg(e){const t=_a(e),s=e.proxy,i=e.ctx;Er=!1,t.beforeCreate&&ll(t.beforeCreate,e,"bc");const{data:n,computed:o,methods:r,watch:a,provide:l,inject:c,created:f,beforeMount:h,mounted:u,beforeUpdate:d,updated:g,activated:p,deactivated:b,beforeDestroy:x,beforeUnmount:S,destroyed:m,unmounted:_,render:v,renderTracked:M,renderTriggered:k,errorCaptured:C,serverPrefetch:T,expose:A,inheritAttrs:L,components:P,directives:W,filters:G}=t;if(c&&Fg(c,i,null),r)for(const $ in r){const V=r[$];X(V)&&(i[$]=V.bind(s))}if(n){const $=n.call(s,s);rt($)&&(e.data=Po($))}if(Er=!0,o)for(const $ in o){const V=o[$],Z=X(V)?V.bind(s,s):X(V.get)?V.get.bind(s,s):Zt,ae=!X(V)&&X(V.set)?V.set.bind(s):Zt,Qt=Hh({get:Z,set:ae});Object.defineProperty(i,$,{enumerable:!0,configurable:!0,get:()=>Qt.value,set:Tt=>Qt.value=Tt})}if(a)for(const $ in a)oh(a[$],i,s,$);if(l){const $=X(l)?l.call(s):l;Reflect.ownKeys($).forEach(V=>{ah(V,$[V])})}f&&ll(f,e,"c");function I($,V){j(V)?V.forEach(Z=>$(Z.bind(s))):V&&$(V.bind(s))}if(I(Zf,h),I(li,u),I(pa,d),I(Fo,g),I(qf,p),I(Gf,b),I(sh,C),I(eh,M),I(th,k),I(Io,S),I(un,_),I(Qf,T),j(A))if(A.length){const $=e.exposed||(e.exposed={});A.forEach(V=>{Object.defineProperty($,V,{get:()=>s[V],set:Z=>s[V]=Z,enumerable:!0})})}else e.exposed||(e.exposed={});v&&e.render===Zt&&(e.render=v),L!=null&&(e.inheritAttrs=L),P&&(e.components=P),W&&(e.directives=W),T&&da(e)}function Fg(e,t,s=Zt){j(e)&&(e=Or(e));for(const i in e){const n=e[i];let o;rt(n)?"default"in n?o=Pi(n.from||i,n.default,!0):o=Pi(n.from||i):o=Pi(n),vt(o)?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>o.value,set:r=>o.value=r}):t[i]=o}}function ll(e,t,s){oe(j(e)?e.map(i=>i.bind(t.proxy)):e.bind(t.proxy),t,s)}function oh(e,t,s,i){let n=i.includes(".")?hh(s,i):()=>s[i];if(ht(e)){const o=t[e];X(o)&&Ss(n,o)}else if(X(e))Ss(n,e.bind(s));else if(rt(e))if(j(e))e.forEach(o=>oh(o,t,s,i));else{const o=X(e.handler)?e.handler.bind(s):t[e.handler];X(o)&&Ss(n,o,e)}}function _a(e){const t=e.type,{mixins:s,extends:i}=t,{mixins:n,optionsCache:o,config:{optionMergeStrategies:r}}=e.appContext,a=o.get(t);let l;return a?l=a:!n.length&&!s&&!i?l=t:(l={},n.length&&n.forEach(c=>io(l,c,r,!0)),io(l,t,r)),rt(t)&&o.set(t,l),l}function io(e,t,s,i=!1){const{mixins:n,extends:o}=t;o&&io(e,o,s,!0),n&&n.forEach(r=>io(e,r,s,!0));for(const r in t)if(!(i&&r==="expose")){const a=Ig[r]||s&&s[r];e[r]=a?a(e[r],t[r]):t[r]}return e}const Ig={data:cl,props:fl,emits:fl,methods:xi,computed:xi,beforeCreate:Bt,created:Bt,beforeMount:Bt,mounted:Bt,beforeUpdate:Bt,updated:Bt,beforeDestroy:Bt,beforeUnmount:Bt,destroyed:Bt,unmounted:Bt,activated:Bt,deactivated:Bt,errorCaptured:Bt,serverPrefetch:Bt,components:xi,directives:xi,watch:Bg,provide:cl,inject:Ng};function cl(e,t){return t?e?function(){return ft(X(e)?e.call(this,this):e,X(t)?t.call(this,this):t)}:t:e}function Ng(e,t){return xi(Or(e),Or(t))}function Or(e){if(j(e)){const t={};for(let s=0;s<e.length;s++)t[e[s]]=e[s];return t}return e}function Bt(e,t){return e?[...new Set([].concat(e,t))]:t}function xi(e,t){return e?ft(Object.create(null),e,t):t}function fl(e,t){return e?j(e)&&j(t)?[...new Set([...e,...t])]:ft(Object.create(null),ji(e),ji(t??{})):t}function Bg(e,t){if(!e)return t;if(!t)return e;const s=ft(Object.create(null),e);for(const i in t)s[i]=Bt(e[i],t[i]);return s}function rh(){return{app:null,config:{isNativeTag:Zr,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Hg=0;function Vg(e,t){return function(i,n=null){X(i)||(i=ft({},i)),n!=null&&!rt(n)&&(n=null);const o=rh(),r=new WeakSet,a=[];let l=!1;const c=o.app={_uid:Hg++,_component:i,_props:n,_container:null,_context:o,_instance:null,version:Ta,get config(){return o.config},set config(f){},use(f,...h){return r.has(f)||(f&&X(f.install)?(r.add(f),f.install(c,...h)):X(f)&&(r.add(f),f(c,...h))),c},mixin(f){return o.mixins.includes(f)||o.mixins.push(f),c},component(f,h){return h?(o.components[f]=h,c):o.components[f]},directive(f,h){return h?(o.directives[f]=h,c):o.directives[f]},mount(f,h,u){if(!l){const d=c._ceVNode||gt(i,n);return d.appContext=o,u===!0?u="svg":u===!1&&(u=void 0),h&&t?t(d,f):e(d,f,u),l=!0,c._container=f,f.__vue_app__=c,pn(d.component)}},onUnmount(f){a.push(f)},unmount(){l&&(oe(a,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(f,h){return o.provides[f]=h,c},runWithContext(f){const h=vs;vs=c;try{return f()}finally{vs=h}}};return c}}let vs=null;function ah(e,t){if(kt){let s=kt.provides;const i=kt.parent&&kt.parent.provides;i===s&&(s=kt.provides=Object.create(i)),s[e]=t}}function Pi(e,t,s=!1){const i=Yt();if(i||vs){let n=vs?vs._context.provides:i?i.parent==null||i.ce?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides:void 0;if(n&&e in n)return n[e];if(arguments.length>1)return s&&X(t)?t.call(i&&i.proxy):t}}function zg(){return!!(Yt()||vs)}const lh=Symbol.for("v-scx"),ch=()=>Pi(lh);function Wg(e,t){return dn(e,null,t)}function jg(e,t){return dn(e,null,{flush:"post"})}function fh(e,t){return dn(e,null,{flush:"sync"})}function Ss(e,t,s){return dn(e,t,s)}function dn(e,t,s=et){const{immediate:i,deep:n,flush:o,once:r}=s,a=ft({},s),l=t&&i||!t&&o!=="post";let c;if(Zs){if(o==="sync"){const d=ch();c=d.__watcherHandles||(d.__watcherHandles=[])}else if(!l){const d=()=>{};return d.stop=Zt,d.resume=Zt,d.pause=Zt,d}}const f=kt;a.call=(d,g,p)=>oe(d,f,g,p);let h=!1;o==="post"?a.scheduler=d=>{yt(d,f&&f.suspense)}:o!=="sync"&&(h=!0,a.scheduler=(d,g)=>{g?d():ca(d)}),a.augmentJob=d=>{t&&(d.flags|=4),h&&(d.flags|=2,f&&(d.id=f.uid,d.i=f))};const u=Rp(e,t,a);return Zs&&(c?c.push(u):l&&u()),u}function $g(e,t,s){const i=this.proxy,n=ht(e)?e.includes(".")?hh(i,e):()=>i[e]:e.bind(i,i);let o;X(t)?o=t:(o=t.handler,s=t);const r=Cs(this),a=dn(n,o.bind(i),s);return r(),a}function hh(e,t){const s=t.split(".");return()=>{let i=e;for(let n=0;n<s.length&&i;n++)i=i[s[n]];return i}}function Ug(e,t,s=et){const i=Yt(),n=Mt(t),o=Rt(t),r=uh(e,n),a=Rf((l,c)=>{let f,h=et,u;return fh(()=>{const d=e[n];Ot(f,d)&&(f=d,c())}),{get(){return l(),s.get?s.get(f):f},set(d){const g=s.set?s.set(d):d;if(!Ot(g,f)&&!(h!==et&&Ot(d,h)))return;const p=i.vnode.props;p&&(t in p||n in p||o in p)&&(`onUpdate:${t}`in p||`onUpdate:${n}`in p||`onUpdate:${o}`in p)||(f=d,c()),i.emit(`update:${t}`,g),Ot(d,g)&&Ot(d,h)&&!Ot(g,u)&&c(),h=d,u=g}}});return a[Symbol.iterator]=()=>{let l=0;return{next(){return l<2?{value:l++?r||et:a,done:!1}:{done:!0}}}},a}const uh=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Mt(t)}Modifiers`]||e[`${Rt(t)}Modifiers`];function Kg(e,t,...s){if(e.isUnmounted)return;const i=e.vnode.props||et;let n=s;const o=t.startsWith("update:"),r=o&&uh(i,t.slice(7));r&&(r.trim&&(n=s.map(f=>ht(f)?f.trim():f)),r.number&&(n=s.map(on)));let a,l=i[a=js(t)]||i[a=js(Mt(t))];!l&&o&&(l=i[a=js(Rt(t))]),l&&oe(l,e,6,n);const c=i[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,oe(c,e,6,n)}}const Yg=new WeakMap;function dh(e,t,s=!1){const i=s?Yg:t.emitsCache,n=i.get(e);if(n!==void 0)return n;const o=e.emits;let r={},a=!1;if(!X(e)){const l=c=>{const f=dh(c,t,!0);f&&(a=!0,ft(r,f))};!s&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!a?(rt(e)&&i.set(e,null),null):(j(o)?o.forEach(l=>r[l]=null):ft(r,o),rt(e)&&i.set(e,r),r)}function No(e,t){return!e||!ii(t)?!1:(t=t.slice(2).replace(/Once$/,""),nt(e,t[0].toLowerCase()+t.slice(1))||nt(e,Rt(t))||nt(e,t))}function $n(e){const{type:t,vnode:s,proxy:i,withProxy:n,propsOptions:[o],slots:r,attrs:a,emit:l,render:c,renderCache:f,props:h,data:u,setupState:d,ctx:g,inheritAttrs:p}=e,b=Wi(e);let x,S;try{if(s.shapeFlag&4){const _=n||i,v=_;x=jt(c.call(v,_,f,h,d,u,g)),S=a}else{const _=t;x=jt(_.length>1?_(h,{attrs:a,slots:r,emit:l}):_(h,null)),S=t.props?a:qg(a)}}catch(_){Ei.length=0,Ds(_,e,1),x=gt(bt)}let m=x;if(S&&p!==!1){const _=Object.keys(S),{shapeFlag:v}=m;_.length&&v&7&&(o&&_.some(So)&&(S=Gg(S,o)),m=ve(m,S,!1,!0))}return s.dirs&&(m=ve(m,null,!1,!0),m.dirs=m.dirs?m.dirs.concat(s.dirs):s.dirs),s.transition&&He(m,s.transition),x=m,Wi(b),x}function Xg(e,t=!0){let s;for(let i=0;i<e.length;i++){const n=e[i];if(Ve(n)){if(n.type!==bt||n.children==="v-if"){if(s)return;s=n}}else return}return s}const qg=e=>{let t;for(const s in e)(s==="class"||s==="style"||ii(s))&&((t||(t={}))[s]=e[s]);return t},Gg=(e,t)=>{const s={};for(const i in e)(!So(i)||!(i.slice(9)in t))&&(s[i]=e[i]);return s};function Jg(e,t,s){const{props:i,children:n,component:o}=e,{props:r,children:a,patchFlag:l}=t,c=o.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&l>=0){if(l&1024)return!0;if(l&16)return i?hl(i,r,c):!!r;if(l&8){const f=t.dynamicProps;for(let h=0;h<f.length;h++){const u=f[h];if(r[u]!==i[u]&&!No(c,u))return!0}}}else return(n||a)&&(!a||!a.$stable)?!0:i===r?!1:i?r?hl(i,r,c):!0:!!r;return!1}function hl(e,t,s){const i=Object.keys(t);if(i.length!==Object.keys(e).length)return!0;for(let n=0;n<i.length;n++){const o=i[n];if(t[o]!==e[o]&&!No(s,o))return!0}return!1}function Bo({vnode:e,parent:t},s){for(;t;){const i=t.subTree;if(i.suspense&&i.suspense.activeBranch===e&&(i.el=e.el),i===e)(e=t.vnode).el=s,t=t.parent;else break}}const ph={},gh=()=>Object.create(ph),mh=e=>Object.getPrototypeOf(e)===ph;function Zg(e,t,s,i=!1){const n={},o=gh();e.propsDefaults=Object.create(null),bh(e,t,n,o);for(const r in e.propsOptions[0])r in n||(n[r]=void 0);s?e.props=i?n:Ef(n):e.type.props?e.props=n:e.props=o,e.attrs=o}function Qg(e,t,s,i){const{props:n,attrs:o,vnode:{patchFlag:r}}=e,a=tt(n),[l]=e.propsOptions;let c=!1;if((i||r>0)&&!(r&16)){if(r&8){const f=e.vnode.dynamicProps;for(let h=0;h<f.length;h++){let u=f[h];if(No(e.emitsOptions,u))continue;const d=t[u];if(l)if(nt(o,u))d!==o[u]&&(o[u]=d,c=!0);else{const g=Mt(u);n[g]=Dr(l,a,g,d,e,!1)}else d!==o[u]&&(o[u]=d,c=!0)}}}else{bh(e,t,n,o)&&(c=!0);let f;for(const h in a)(!t||!nt(t,h)&&((f=Rt(h))===h||!nt(t,f)))&&(l?s&&(s[h]!==void 0||s[f]!==void 0)&&(n[h]=Dr(l,a,h,void 0,e,!0)):delete n[h]);if(o!==a)for(const h in o)(!t||!nt(t,h))&&(delete o[h],c=!0)}c&&Ee(e.attrs,"set","")}function bh(e,t,s,i){const[n,o]=e.propsOptions;let r=!1,a;if(t)for(let l in t){if(_s(l))continue;const c=t[l];let f;n&&nt(n,f=Mt(l))?!o||!o.includes(f)?s[f]=c:(a||(a={}))[f]=c:No(e.emitsOptions,l)||(!(l in i)||c!==i[l])&&(i[l]=c,r=!0)}if(o){const l=tt(s),c=a||et;for(let f=0;f<o.length;f++){const h=o[f];s[h]=Dr(n,l,h,c[h],e,!nt(c,h))}}return r}function Dr(e,t,s,i,n,o){const r=e[s];if(r!=null){const a=nt(r,"default");if(a&&i===void 0){const l=r.default;if(r.type!==Function&&!r.skipFactory&&X(l)){const{propsDefaults:c}=n;if(s in c)i=c[s];else{const f=Cs(n);i=c[s]=l.call(null,t),f()}}else i=l;n.ce&&n.ce._setProp(s,i)}r[0]&&(o&&!a?i=!1:r[1]&&(i===""||i===Rt(s))&&(i=!0))}return i}const tm=new WeakMap;function _h(e,t,s=!1){const i=s?tm:t.propsCache,n=i.get(e);if(n)return n;const o=e.props,r={},a=[];let l=!1;if(!X(e)){const f=h=>{l=!0;const[u,d]=_h(h,t,!0);ft(r,u),d&&a.push(...d)};!s&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!o&&!l)return rt(e)&&i.set(e,ms),ms;if(j(o))for(let f=0;f<o.length;f++){const h=Mt(o[f]);ul(h)&&(r[h]=et)}else if(o)for(const f in o){const h=Mt(f);if(ul(h)){const u=o[f],d=r[h]=j(u)||X(u)?{type:u}:ft({},u),g=d.type;let p=!1,b=!0;if(j(g))for(let x=0;x<g.length;++x){const S=g[x],m=X(S)&&S.name;if(m==="Boolean"){p=!0;break}else m==="String"&&(b=!1)}else p=X(g)&&g.name==="Boolean";d[0]=p,d[1]=b,(p||nt(d,"default"))&&a.push(h)}}const c=[r,a];return rt(e)&&i.set(e,c),c}function ul(e){return e[0]!=="$"&&!_s(e)}const ya=e=>e==="_"||e==="_ctx"||e==="$stable",xa=e=>j(e)?e.map(jt):[jt(e)],em=(e,t,s)=>{if(t._n)return t;const i=fa((...n)=>xa(t(...n)),s);return i._c=!1,i},yh=(e,t,s)=>{const i=e._ctx;for(const n in e){if(ya(n))continue;const o=e[n];if(X(o))t[n]=em(n,o,i);else if(o!=null){const r=xa(o);t[n]=()=>r}}},xh=(e,t)=>{const s=xa(t);e.slots.default=()=>s},vh=(e,t,s)=>{for(const i in t)(s||!ya(i))&&(e[i]=t[i])},sm=(e,t,s)=>{const i=e.slots=gh();if(e.vnode.shapeFlag&32){const n=t._;n?(vh(i,t,s),s&&ta(i,"_",n,!0)):yh(t,i)}else t&&xh(e,t)},im=(e,t,s)=>{const{vnode:i,slots:n}=e;let o=!0,r=et;if(i.shapeFlag&32){const a=t._;a?s&&a===1?o=!1:vh(n,t,s):(o=!t.$stable,yh(t,n)),r=t}else t&&(xh(e,t),r={default:1});if(o)for(const a in n)!ya(a)&&r[a]==null&&delete n[a]},yt=Ah;function Sh(e){return Mh(e)}function wh(e){return Mh(e,Zp)}function Mh(e,t){const s=rn();s.__VUE__=!0;const{insert:i,remove:n,patchProp:o,createElement:r,createText:a,createComment:l,setText:c,setElementText:f,parentNode:h,nextSibling:u,setScopeId:d=Zt,insertStaticContent:g}=e,p=(y,w,E,F=null,O=null,D=null,H=void 0,B=null,N=!!w.dynamicChildren)=>{if(y===w)return;y&&!ce(y,w)&&(F=mn(y),Tt(y,O,D,!0),y=null),w.patchFlag===-2&&(N=!1,w.dynamicChildren=null);const{type:R,ref:q,shapeFlag:z}=w;switch(R){case es:b(y,w,E,F);break;case bt:x(y,w,E,F);break;case ws:y==null&&S(w,E,F,H);break;case wt:P(y,w,E,F,O,D,H,B,N);break;default:z&1?v(y,w,E,F,O,D,H,B,N):z&6?W(y,w,E,F,O,D,H,B,N):(z&64||z&128)&&R.process(y,w,E,F,O,D,H,B,N,Ls)}q!=null&&O?Ks(q,y&&y.ref,D,w||y,!w):q==null&&y&&y.ref!=null&&Ks(y.ref,null,D,y,!0)},b=(y,w,E,F)=>{if(y==null)i(w.el=a(w.children),E,F);else{const O=w.el=y.el;w.children!==y.children&&c(O,w.children)}},x=(y,w,E,F)=>{y==null?i(w.el=l(w.children||""),E,F):w.el=y.el},S=(y,w,E,F)=>{[y.el,y.anchor]=g(y.children,w,E,F,y.el,y.anchor)},m=({el:y,anchor:w},E,F)=>{let O;for(;y&&y!==w;)O=u(y),i(y,E,F),y=O;i(w,E,F)},_=({el:y,anchor:w})=>{let E;for(;y&&y!==w;)E=u(y),n(y),y=E;n(w)},v=(y,w,E,F,O,D,H,B,N)=>{if(w.type==="svg"?H="svg":w.type==="math"&&(H="mathml"),y==null)M(w,E,F,O,D,H,B,N);else{const R=y.el&&y.el._isVueCE?y.el:null;try{R&&R._beginPatch(),T(y,w,O,D,H,B,N)}finally{R&&R._endPatch()}}},M=(y,w,E,F,O,D,H,B)=>{let N,R;const{props:q,shapeFlag:z,transition:K,dirs:J}=y;if(N=y.el=r(y.type,D,q&&q.is,q),z&8?f(N,y.children):z&16&&C(y.children,N,null,F,O,ir(y,D),H,B),J&&_e(y,null,F,"created"),k(N,y,y.scopeId,H,F),q){for(const ut in q)ut!=="value"&&!_s(ut)&&o(N,ut,null,q[ut],D,F);"value"in q&&o(N,"value",null,q.value,D),(R=q.onVnodeBeforeMount)&&Wt(R,F,y)}J&&_e(y,null,F,"beforeMount");const it=Th(O,K);it&&K.beforeEnter(N),i(N,w,E),((R=q&&q.onVnodeMounted)||it||J)&&yt(()=>{R&&Wt(R,F,y),it&&K.enter(N),J&&_e(y,null,F,"mounted")},O)},k=(y,w,E,F,O)=>{if(E&&d(y,E),F)for(let D=0;D<F.length;D++)d(y,F[D]);if(O){let D=O.subTree;if(w===D||oo(D.type)&&(D.ssContent===w||D.ssFallback===w)){const H=O.vnode;k(y,H,H.scopeId,H.slotScopeIds,O.parent)}}},C=(y,w,E,F,O,D,H,B,N=0)=>{for(let R=N;R<y.length;R++){const q=y[R]=B?Ge(y[R]):jt(y[R]);p(null,q,w,E,F,O,D,H,B)}},T=(y,w,E,F,O,D,H)=>{const B=w.el=y.el;let{patchFlag:N,dynamicChildren:R,dirs:q}=w;N|=y.patchFlag&16;const z=y.props||et,K=w.props||et;let J;if(E&&as(E,!1),(J=K.onVnodeBeforeUpdate)&&Wt(J,E,w,y),q&&_e(w,y,E,"beforeUpdate"),E&&as(E,!0),(z.innerHTML&&K.innerHTML==null||z.textContent&&K.textContent==null)&&f(B,""),R?A(y.dynamicChildren,R,B,E,F,ir(w,O),D):H||V(y,w,B,null,E,F,ir(w,O),D,!1),N>0){if(N&16)L(B,z,K,E,O);else if(N&2&&z.class!==K.class&&o(B,"class",null,K.class,O),N&4&&o(B,"style",z.style,K.style,O),N&8){const it=w.dynamicProps;for(let ut=0;ut<it.length;ut++){const at=it[ut],Vt=z[at],At=K[at];(At!==Vt||at==="value")&&o(B,at,Vt,At,O,E)}}N&1&&y.children!==w.children&&f(B,w.children)}else!H&&R==null&&L(B,z,K,E,O);((J=K.onVnodeUpdated)||q)&&yt(()=>{J&&Wt(J,E,w,y),q&&_e(w,y,E,"updated")},F)},A=(y,w,E,F,O,D,H)=>{for(let B=0;B<w.length;B++){const N=y[B],R=w[B],q=N.el&&(N.type===wt||!ce(N,R)||N.shapeFlag&198)?h(N.el):E;p(N,R,q,null,F,O,D,H,!0)}},L=(y,w,E,F,O)=>{if(w!==E){if(w!==et)for(const D in w)!_s(D)&&!(D in E)&&o(y,D,w[D],null,O,F);for(const D in E){if(_s(D))continue;const H=E[D],B=w[D];H!==B&&D!=="value"&&o(y,D,B,H,O,F)}"value"in E&&o(y,"value",w.value,E.value,O)}},P=(y,w,E,F,O,D,H,B,N)=>{const R=w.el=y?y.el:a(""),q=w.anchor=y?y.anchor:a("");let{patchFlag:z,dynamicChildren:K,slotScopeIds:J}=w;J&&(B=B?B.concat(J):J),y==null?(i(R,E,F),i(q,E,F),C(w.children||[],E,q,O,D,H,B,N)):z>0&&z&64&&K&&y.dynamicChildren?(A(y.dynamicChildren,K,E,O,D,H,B),(w.key!=null||O&&w===O.subTree)&&va(y,w,!0)):V(y,w,E,q,O,D,H,B,N)},W=(y,w,E,F,O,D,H,B,N)=>{w.slotScopeIds=B,y==null?w.shapeFlag&512?O.ctx.activate(w,E,F,H,N):G(w,E,F,O,D,H,N):Y(y,w,N)},G=(y,w,E,F,O,D,H)=>{const B=y.component=Lh(y,F,O);if(hn(y)&&(B.ctx.renderer=Ls),Ih(B,!1,H),B.asyncDep){if(O&&O.registerDep(B,I,H),!y.el){const N=B.subTree=gt(bt);x(null,N,w,E),y.placeholder=N.el}}else I(B,y,w,E,O,D,H)},Y=(y,w,E)=>{const F=w.component=y.component;if(Jg(y,w,E))if(F.asyncDep&&!F.asyncResolved){$(F,w,E);return}else F.next=w,F.update();else w.el=y.el,F.vnode=w},I=(y,w,E,F,O,D,H)=>{const B=()=>{if(y.isMounted){let{next:z,bu:K,u:J,parent:it,vnode:ut}=y;{const qt=kh(y);if(qt){z&&(z.el=ut.el,$(y,z,H)),qt.asyncDep.then(()=>{y.isUnmounted||B()});return}}let at=z,Vt;as(y,!1),z?(z.el=ut.el,$(y,z,H)):z=ut,K&&ys(K),(Vt=z.props&&z.props.onVnodeBeforeUpdate)&&Wt(Vt,it,z,ut),as(y,!0);const At=$n(y),le=y.subTree;y.subTree=At,p(le,At,h(le.el),mn(le),y,O,D),z.el=At.el,at===null&&Bo(y,At.el),J&&yt(J,O),(Vt=z.props&&z.props.onVnodeUpdated)&&yt(()=>Wt(Vt,it,z,ut),O)}else{let z;const{el:K,props:J}=w,{bm:it,m:ut,parent:at,root:Vt,type:At}=y,le=ts(w);if(as(y,!1),it&&ys(it),!le&&(z=J&&J.onVnodeBeforeMount)&&Wt(z,at,w),as(y,!0),K&&Xo){const qt=()=>{y.subTree=$n(y),Xo(K,y.subTree,y,O,null)};le&&At.__asyncHydrate?At.__asyncHydrate(K,y,qt):qt()}else{Vt.ce&&Vt.ce._def.shadowRoot!==!1&&Vt.ce._injectChildStyle(At);const qt=y.subTree=$n(y);p(null,qt,E,F,y,O,D),w.el=qt.el}if(ut&&yt(ut,O),!le&&(z=J&&J.onVnodeMounted)){const qt=w;yt(()=>Wt(z,at,qt),O)}(w.shapeFlag&256||at&&ts(at.vnode)&&at.vnode.shapeFlag&256)&&y.a&&yt(y.a,O),y.isMounted=!0,w=E=F=null}};y.scope.on();const N=y.effect=new Ni(B);y.scope.off();const R=y.update=N.run.bind(N),q=y.job=N.runIfDirty.bind(N);q.i=y,q.id=y.uid,N.scheduler=()=>ca(q),as(y,!0),R()},$=(y,w,E)=>{w.component=y;const F=y.vnode.props;y.vnode=w,y.next=null,Qg(y,w.props,F,E),im(y,w.children,E),Ne(),Qa(y),Be()},V=(y,w,E,F,O,D,H,B,N=!1)=>{const R=y&&y.children,q=y?y.shapeFlag:0,z=w.children,{patchFlag:K,shapeFlag:J}=w;if(K>0){if(K&128){ae(R,z,E,F,O,D,H,B,N);return}else if(K&256){Z(R,z,E,F,O,D,H,B,N);return}}J&8?(q&16&&Xt(R,O,D),z!==R&&f(E,z)):q&16?J&16?ae(R,z,E,F,O,D,H,B,N):Xt(R,O,D,!0):(q&8&&f(E,""),J&16&&C(z,E,F,O,D,H,B,N))},Z=(y,w,E,F,O,D,H,B,N)=>{y=y||ms,w=w||ms;const R=y.length,q=w.length,z=Math.min(R,q);let K;for(K=0;K<z;K++){const J=w[K]=N?Ge(w[K]):jt(w[K]);p(y[K],J,E,null,O,D,H,B,N)}R>q?Xt(y,O,D,!0,!1,z):C(w,E,F,O,D,H,B,N,z)},ae=(y,w,E,F,O,D,H,B,N)=>{let R=0;const q=w.length;let z=y.length-1,K=q-1;for(;R<=z&&R<=K;){const J=y[R],it=w[R]=N?Ge(w[R]):jt(w[R]);if(ce(J,it))p(J,it,E,null,O,D,H,B,N);else break;R++}for(;R<=z&&R<=K;){const J=y[z],it=w[K]=N?Ge(w[K]):jt(w[K]);if(ce(J,it))p(J,it,E,null,O,D,H,B,N);else break;z--,K--}if(R>z){if(R<=K){const J=K+1,it=J<q?w[J].el:F;for(;R<=K;)p(null,w[R]=N?Ge(w[R]):jt(w[R]),E,it,O,D,H,B,N),R++}}else if(R>K)for(;R<=z;)Tt(y[R],O,D,!0),R++;else{const J=R,it=R,ut=new Map;for(R=it;R<=K;R++){const Gt=w[R]=N?Ge(w[R]):jt(w[R]);Gt.key!=null&&ut.set(Gt.key,R)}let at,Vt=0;const At=K-it+1;let le=!1,qt=0;const fi=new Array(At);for(R=0;R<At;R++)fi[R]=0;for(R=J;R<=z;R++){const Gt=y[R];if(Vt>=At){Tt(Gt,O,D,!0);continue}let ue;if(Gt.key!=null)ue=ut.get(Gt.key);else for(at=it;at<=K;at++)if(fi[at-it]===0&&ce(Gt,w[at])){ue=at;break}ue===void 0?Tt(Gt,O,D,!0):(fi[ue-it]=R+1,ue>=qt?qt=ue:le=!0,p(Gt,w[ue],E,null,O,D,H,B,N),Vt++)}const Ka=le?nm(fi):ms;for(at=Ka.length-1,R=At-1;R>=0;R--){const Gt=it+R,ue=w[Gt],Ya=w[Gt+1],Xa=Gt+1<q?Ya.el||Ya.placeholder:F;fi[R]===0?p(null,ue,E,Xa,O,D,H,B,N):le&&(at<0||R!==Ka[at]?Qt(ue,E,Xa,2):at--)}}},Qt=(y,w,E,F,O=null)=>{const{el:D,type:H,transition:B,children:N,shapeFlag:R}=y;if(R&6){Qt(y.component.subTree,w,E,F);return}if(R&128){y.suspense.move(w,E,F);return}if(R&64){H.move(y,w,E,Ls);return}if(H===wt){i(D,w,E);for(let z=0;z<N.length;z++)Qt(N[z],w,E,F);i(y.anchor,w,E);return}if(H===ws){m(y,w,E);return}if(F!==2&&R&1&&B)if(F===0)B.beforeEnter(D),i(D,w,E),yt(()=>B.enter(D),O);else{const{leave:z,delayLeave:K,afterLeave:J}=B,it=()=>{y.ctx.isUnmounted?n(D):i(D,w,E)},ut=()=>{D._isLeaving&&D[Ae](!0),z(D,()=>{it(),J&&J()})};K?K(D,it,ut):ut()}else i(D,w,E)},Tt=(y,w,E,F=!1,O=!1)=>{const{type:D,props:H,ref:B,children:N,dynamicChildren:R,shapeFlag:q,patchFlag:z,dirs:K,cacheIndex:J}=y;if(z===-2&&(O=!1),B!=null&&(Ne(),Ks(B,null,E,y,!0),Be()),J!=null&&(w.renderCache[J]=void 0),q&256){w.ctx.deactivate(y);return}const it=q&1&&K,ut=!ts(y);let at;if(ut&&(at=H&&H.onVnodeBeforeUnmount)&&Wt(at,w,y),q&6)rs(y.component,E,F);else{if(q&128){y.suspense.unmount(E,F);return}it&&_e(y,null,w,"beforeUnmount"),q&64?y.type.remove(y,w,E,Ls,F):R&&!R.hasOnce&&(D!==wt||z>0&&z&64)?Xt(R,w,E,!1,!0):(D===wt&&z&384||!O&&q&16)&&Xt(N,w,E),F&&je(y)}(ut&&(at=H&&H.onVnodeUnmounted)||it)&&yt(()=>{at&&Wt(at,w,y),it&&_e(y,null,w,"unmounted")},E)},je=y=>{const{type:w,el:E,anchor:F,transition:O}=y;if(w===wt){Se(E,F);return}if(w===ws){_(y);return}const D=()=>{n(E),O&&!O.persisted&&O.afterLeave&&O.afterLeave()};if(y.shapeFlag&1&&O&&!O.persisted){const{leave:H,delayLeave:B}=O,N=()=>H(E,D);B?B(y.el,D,N):N()}else D()},Se=(y,w)=>{let E;for(;y!==w;)E=u(y),n(y),y=E;n(w)},rs=(y,w,E)=>{const{bum:F,scope:O,job:D,subTree:H,um:B,m:N,a:R}=y;no(N),no(R),F&&ys(F),O.stop(),D&&(D.flags|=8,Tt(H,y,w,E)),B&&yt(B,w),yt(()=>{y.isUnmounted=!0},w)},Xt=(y,w,E,F=!1,O=!1,D=0)=>{for(let H=D;H<y.length;H++)Tt(y[H],w,E,F,O)},mn=y=>{if(y.shapeFlag&6)return mn(y.component.subTree);if(y.shapeFlag&128)return y.suspense.next();const w=u(y.anchor||y.el),E=w&&w[zf];return E?u(E):w};let Ko=!1;const Ua=(y,w,E)=>{y==null?w._vnode&&Tt(w._vnode,null,null,!0):p(w._vnode||null,y,w,null,null,null,E),w._vnode=y,Ko||(Ko=!0,Qa(),eo(),Ko=!1)},Ls={p,um:Tt,m:Qt,r:je,mt:G,mc:C,pc:V,pbc:A,n:mn,o:e};let Yo,Xo;return t&&([Yo,Xo]=t(Ls)),{render:Ua,hydrate:Yo,createApp:Vg(Ua,Yo)}}function ir({type:e,props:t},s){return s==="svg"&&e==="foreignObject"||s==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:s}function as({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Th(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function va(e,t,s=!1){const i=e.children,n=t.children;if(j(i)&&j(n))for(let o=0;o<i.length;o++){const r=i[o];let a=n[o];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=n[o]=Ge(n[o]),a.el=r.el),!s&&a.patchFlag!==-2&&va(r,a)),a.type===es&&a.patchFlag!==-1&&(a.el=r.el),a.type===bt&&!a.el&&(a.el=r.el)}}function nm(e){const t=e.slice(),s=[0];let i,n,o,r,a;const l=e.length;for(i=0;i<l;i++){const c=e[i];if(c!==0){if(n=s[s.length-1],e[n]<c){t[i]=n,s.push(i);continue}for(o=0,r=s.length-1;o<r;)a=o+r>>1,e[s[a]]<c?o=a+1:r=a;c<e[s[o]]&&(o>0&&(t[i]=s[o-1]),s[o]=i)}}for(o=s.length,r=s[o-1];o-- >0;)s[o]=r,r=t[r];return s}function kh(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:kh(t)}function no(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const oo=e=>e.__isSuspense;let Rr=0;const om={name:"Suspense",__isSuspense:!0,process(e,t,s,i,n,o,r,a,l,c){if(e==null)am(t,s,i,n,o,r,a,l,c);else{if(o&&o.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}lm(e,t,s,i,n,r,a,l,c)}},hydrate:cm,normalize:fm},rm=om;function $i(e,t){const s=e.props&&e.props[t];X(s)&&s()}function am(e,t,s,i,n,o,r,a,l){const{p:c,o:{createElement:f}}=l,h=f("div"),u=e.suspense=Ch(e,n,i,t,h,s,o,r,a,l);c(null,u.pendingBranch=e.ssContent,h,null,i,u,o,r),u.deps>0?($i(e,"onPending"),$i(e,"onFallback"),c(null,e.ssFallback,t,s,i,null,o,r),Ys(u,e.ssFallback)):u.resolve(!1,!0)}function lm(e,t,s,i,n,o,r,a,{p:l,um:c,o:{createElement:f}}){const h=t.suspense=e.suspense;h.vnode=t,t.el=e.el;const u=t.ssContent,d=t.ssFallback,{activeBranch:g,pendingBranch:p,isInFallback:b,isHydrating:x}=h;if(p)h.pendingBranch=u,ce(p,u)?(l(p,u,h.hiddenContainer,null,n,h,o,r,a),h.deps<=0?h.resolve():b&&(x||(l(g,d,s,i,n,null,o,r,a),Ys(h,d)))):(h.pendingId=Rr++,x?(h.isHydrating=!1,h.activeBranch=p):c(p,n,h),h.deps=0,h.effects.length=0,h.hiddenContainer=f("div"),b?(l(null,u,h.hiddenContainer,null,n,h,o,r,a),h.deps<=0?h.resolve():(l(g,d,s,i,n,null,o,r,a),Ys(h,d))):g&&ce(g,u)?(l(g,u,s,i,n,h,o,r,a),h.resolve(!0)):(l(null,u,h.hiddenContainer,null,n,h,o,r,a),h.deps<=0&&h.resolve()));else if(g&&ce(g,u))l(g,u,s,i,n,h,o,r,a),Ys(h,u);else if($i(t,"onPending"),h.pendingBranch=u,u.shapeFlag&512?h.pendingId=u.component.suspenseId:h.pendingId=Rr++,l(null,u,h.hiddenContainer,null,n,h,o,r,a),h.deps<=0)h.resolve();else{const{timeout:S,pendingId:m}=h;S>0?setTimeout(()=>{h.pendingId===m&&h.fallback(d)},S):S===0&&h.fallback(d)}}function Ch(e,t,s,i,n,o,r,a,l,c,f=!1){const{p:h,m:u,um:d,n:g,o:{parentNode:p,remove:b}}=c;let x;const S=hm(e);S&&t&&t.pendingBranch&&(x=t.pendingId,t.deps++);const m=e.props?Ii(e.props.timeout):void 0,_=o,v={vnode:e,parent:t,parentComponent:s,namespace:r,container:i,hiddenContainer:n,deps:0,pendingId:Rr++,timeout:typeof m=="number"?m:-1,activeBranch:null,pendingBranch:null,isInFallback:!f,isHydrating:f,isUnmounted:!1,effects:[],resolve(M=!1,k=!1){const{vnode:C,activeBranch:T,pendingBranch:A,pendingId:L,effects:P,parentComponent:W,container:G,isInFallback:Y}=v;let I=!1;v.isHydrating?v.isHydrating=!1:M||(I=T&&A.transition&&A.transition.mode==="out-in",I&&(T.transition.afterLeave=()=>{L===v.pendingId&&(u(A,G,o===_?g(T):o,0),Vi(P),Y&&C.ssFallback&&(C.ssFallback.el=null))}),T&&(p(T.el)===G&&(o=g(T)),d(T,W,v,!0),!I&&Y&&C.ssFallback&&yt(()=>C.ssFallback.el=null,v)),I||u(A,G,o,0)),Ys(v,A),v.pendingBranch=null,v.isInFallback=!1;let $=v.parent,V=!1;for(;$;){if($.pendingBranch){$.effects.push(...P),V=!0;break}$=$.parent}!V&&!I&&Vi(P),v.effects=[],S&&t&&t.pendingBranch&&x===t.pendingId&&(t.deps--,t.deps===0&&!k&&t.resolve()),$i(C,"onResolve")},fallback(M){if(!v.pendingBranch)return;const{vnode:k,activeBranch:C,parentComponent:T,container:A,namespace:L}=v;$i(k,"onFallback");const P=g(C),W=()=>{v.isInFallback&&(h(null,M,A,P,T,null,L,a,l),Ys(v,M))},G=M.transition&&M.transition.mode==="out-in";G&&(C.transition.afterLeave=W),v.isInFallback=!0,d(C,T,null,!0),G||W()},move(M,k,C){v.activeBranch&&u(v.activeBranch,M,k,C),v.container=M},next(){return v.activeBranch&&g(v.activeBranch)},registerDep(M,k,C){const T=!!v.pendingBranch;T&&v.deps++;const A=M.vnode.el;M.asyncDep.catch(L=>{Ds(L,M,0)}).then(L=>{if(M.isUnmounted||v.isUnmounted||v.pendingId!==M.suspenseId)return;M.asyncResolved=!0;const{vnode:P}=M;Ir(M,L,!1),A&&(P.el=A);const W=!A&&M.subTree.el;k(M,P,p(A||M.subTree.el),A?null:g(M.subTree),v,r,C),W&&(P.placeholder=null,b(W)),Bo(M,P.el),T&&--v.deps===0&&v.resolve()})},unmount(M,k){v.isUnmounted=!0,v.activeBranch&&d(v.activeBranch,s,M,k),v.pendingBranch&&d(v.pendingBranch,s,M,k)}};return v}function cm(e,t,s,i,n,o,r,a,l){const c=t.suspense=Ch(t,i,s,e.parentNode,document.createElement("div"),null,n,o,r,a,!0),f=l(e,c.pendingBranch=t.ssContent,s,c,o,r);return c.deps===0&&c.resolve(!1,!0),f}function fm(e){const{shapeFlag:t,children:s}=e,i=t&32;e.ssContent=dl(i?s.default:s),e.ssFallback=i?dl(s.fallback):gt(bt)}function dl(e){let t;if(X(e)){const s=ks&&e._c;s&&(e._d=!1,Ui()),e=e(),s&&(e._d=!0,t=Lt,Ph())}return j(e)&&(e=Xg(e)),e=jt(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(s=>s!==e)),e}function Ah(e,t){t&&t.pendingBranch?j(e)?t.effects.push(...e):t.effects.push(e):Vi(e)}function Ys(e,t){e.activeBranch=t;const{vnode:s,parentComponent:i}=e;let n=t.el;for(;!n&&t.component;)t=t.component.subTree,n=t.el;s.el=n,i&&i.subTree===s&&(i.vnode.el=n,Bo(i,n))}function hm(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const wt=Symbol.for("v-fgt"),es=Symbol.for("v-txt"),bt=Symbol.for("v-cmt"),ws=Symbol.for("v-stc"),Ei=[];let Lt=null;function Ui(e=!1){Ei.push(Lt=e?null:[])}function Ph(){Ei.pop(),Lt=Ei[Ei.length-1]||null}let ks=1;function Ki(e,t=!1){ks+=e,e<0&&Lt&&t&&(Lt.hasOnce=!0)}function Eh(e){return e.dynamicChildren=ks>0?Lt||ms:null,Ph(),ks>0&&Lt&&Lt.push(e),e}function um(e,t,s,i,n,o){return Eh(Sa(e,t,s,i,n,o,!0))}function ro(e,t,s,i,n){return Eh(gt(e,t,s,i,n,!0))}function Ve(e){return e?e.__v_isVNode===!0:!1}function ce(e,t){return e.type===t.type&&e.key===t.key}function dm(e){}const Oh=({key:e})=>e??null,Un=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?ht(e)||vt(e)||X(e)?{i:Ct,r:e,k:t,f:!!s}:e:null);function Sa(e,t=null,s=null,i=0,n=null,o=e===wt?0:1,r=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Oh(t),ref:t&&Un(t),scopeId:Do,slotScopeIds:null,children:s,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:i,dynamicProps:n,dynamicChildren:null,appContext:null,ctx:Ct};return a?(Ma(l,s),o&128&&e.normalize(l)):s&&(l.shapeFlag|=ht(s)?8:16),ks>0&&!r&&Lt&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&Lt.push(l),l}const gt=pm;function pm(e,t=null,s=null,i=0,n=null,o=!1){if((!e||e===ih)&&(e=bt),Ve(e)){const a=ve(e,t,!0);return s&&Ma(a,s),ks>0&&!o&&Lt&&(a.shapeFlag&6?Lt[Lt.indexOf(e)]=a:Lt.push(a)),a.patchFlag=-2,a}if(wm(e)&&(e=e.__vccOpts),t){t=Dh(t);let{class:a,style:l}=t;a&&!ht(a)&&(t.class=ri(a)),rt(l)&&(Os(l)&&!j(l)&&(l=ft({},l)),t.style=oi(l))}const r=ht(e)?1:oo(e)?128:Wf(e)?64:rt(e)?4:X(e)?2:0;return Sa(e,t,s,i,n,r,o,!0)}function Dh(e){return e?Os(e)||mh(e)?ft({},e):e:null}function ve(e,t,s=!1,i=!1){const{props:n,ref:o,patchFlag:r,children:a,transition:l}=e,c=t?Rh(n||{},t):n,f={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Oh(c),ref:t&&t.ref?s&&o?j(o)?o.concat(Un(t)):[o,Un(t)]:Un(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==wt?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ve(e.ssContent),ssFallback:e.ssFallback&&ve(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&i&&He(f,l.clone(f)),f}function wa(e=" ",t=0){return gt(es,null,e,t)}function gm(e,t){const s=gt(ws,null,e);return s.staticCount=t,s}function mm(e="",t=!1){return t?(Ui(),ro(bt,null,e)):gt(bt,null,e)}function jt(e){return e==null||typeof e=="boolean"?gt(bt):j(e)?gt(wt,null,e.slice()):Ve(e)?Ge(e):gt(es,null,String(e))}function Ge(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:ve(e)}function Ma(e,t){let s=0;const{shapeFlag:i}=e;if(t==null)t=null;else if(j(t))s=16;else if(typeof t=="object")if(i&65){const n=t.default;n&&(n._c&&(n._d=!1),Ma(e,n()),n._c&&(n._d=!0));return}else{s=32;const n=t._;!n&&!mh(t)?t._ctx=Ct:n===3&&Ct&&(Ct.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else X(t)?(t={default:t,_ctx:Ct},s=32):(t=String(t),i&64?(s=16,t=[wa(t)]):s=8);e.children=t,e.shapeFlag|=s}function Rh(...e){const t={};for(let s=0;s<e.length;s++){const i=e[s];for(const n in i)if(n==="class")t.class!==i.class&&(t.class=ri([t.class,i.class]));else if(n==="style")t.style=oi([t.style,i.style]);else if(ii(n)){const o=t[n],r=i[n];r&&o!==r&&!(j(o)&&o.includes(r))&&(t[n]=o?[].concat(o,r):r)}else n!==""&&(t[n]=i[n])}return t}function Wt(e,t,s,i=null){oe(e,t,7,[s,i])}const bm=rh();let _m=0;function Lh(e,t,s){const i=e.type,n=(t?t.appContext:e.appContext)||bm,o={uid:_m++,vnode:e,type:i,parent:t,appContext:n,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new na(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(n.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:_h(i,n),emitsOptions:dh(i,n),emit:null,emitted:null,propsDefaults:et,inheritAttrs:i.inheritAttrs,ctx:et,data:et,props:et,attrs:et,slots:et,refs:et,setupState:et,setupContext:null,suspense:s,suspenseId:s?s.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=Kg.bind(null,o),e.ce&&e.ce(o),o}let kt=null;const Yt=()=>kt||Ct;let ao,Lr;{const e=rn(),t=(s,i)=>{let n;return(n=e[s])||(n=e[s]=[]),n.push(i),o=>{n.length>1?n.forEach(r=>r(o)):n[0](o)}};ao=t("__VUE_INSTANCE_SETTERS__",s=>kt=s),Lr=t("__VUE_SSR_SETTERS__",s=>Zs=s)}const Cs=e=>{const t=kt;return ao(e),e.scope.on(),()=>{e.scope.off(),ao(t)}},Fr=()=>{kt&&kt.scope.off(),ao(null)};function Fh(e){return e.vnode.shapeFlag&4}let Zs=!1;function Ih(e,t=!1,s=!1){t&&Lr(t);const{props:i,children:n}=e.vnode,o=Fh(e);Zg(e,i,o,t),sm(e,n,s||t);const r=o?ym(e,t):void 0;return t&&Lr(!1),r}function ym(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Pr);const{setup:i}=s;if(i){Ne();const n=e.setupContext=i.length>1?Bh(e):null,o=Cs(e),r=ai(i,e,0,[e.props,n]),a=Mo(r);if(Be(),o(),(a||e.sp)&&!ts(e)&&da(e),a){if(r.then(Fr,Fr),t)return r.then(l=>{Ir(e,l,t)}).catch(l=>{Ds(l,e,0)});e.asyncDep=r}else Ir(e,r,t)}else Nh(e,t)}function Ir(e,t,s){X(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:rt(t)&&(e.setupState=la(t)),Nh(e,s)}let lo,Nr;function xm(e){lo=e,Nr=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,xg))}}const vm=()=>!lo;function Nh(e,t,s){const i=e.type;if(!e.render){if(!t&&lo&&!i.render){const n=i.template||_a(e).template;if(n){const{isCustomElement:o,compilerOptions:r}=e.appContext.config,{delimiters:a,compilerOptions:l}=i,c=ft(ft({isCustomElement:o,delimiters:a},r),l);i.render=lo(n,c)}}e.render=i.render||Zt,Nr&&Nr(e)}{const n=Cs(e);Ne();try{Lg(e)}finally{Be(),n()}}}const Sm={get(e,t){return Dt(e,"get",""),e[t]}};function Bh(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,Sm),slots:e.slots,emit:e.emit,expose:t}}function pn(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(la(Of(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in Ai)return Ai[s](e)},has(t,s){return s in t||s in Ai}})):e.proxy}function Br(e,t=!0){return X(e)?e.displayName||e.name:e.name||t&&e.__name}function wm(e){return X(e)&&"__vccOpts"in e}const Hh=(e,t)=>Pp(e,t,Zs);function Yi(e,t,s){try{Ki(-1);const i=arguments.length;return i===2?rt(t)&&!j(t)?Ve(t)?gt(e,null,[t]):gt(e,t):gt(e,null,t):(i>3?s=Array.prototype.slice.call(arguments,2):i===3&&Ve(s)&&(s=[s]),gt(e,t,s))}finally{Ki(1)}}function Mm(){}function Tm(e,t,s,i){const n=s[i];if(n&&Vh(n,e))return n;const o=t();return o.memo=e.slice(),o.cacheIndex=i,s[i]=o}function Vh(e,t){const s=e.memo;if(s.length!=t.length)return!1;for(let i=0;i<s.length;i++)if(Ot(s[i],t[i]))return!1;return ks>0&&Lt&&Lt.push(e),!0}const Ta="3.5.25",km=Zt,Cm=Bp,Am=zs,Pm=Vf,Em={createComponentInstance:Lh,setupComponent:Ih,renderComponentRoot:$n,setCurrentRenderingInstance:Wi,isVNode:Ve,normalizeVNode:jt,getComponentPublicInstance:pn,ensureValidVNode:ba,pushWarningContext:Lp,popWarningContext:Fp},Om=Em,Dm=null,Rm=null,Lm=null;/**
17
+ * @vue/runtime-dom v3.5.25
18
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
19
+ * @license MIT
20
+ **/let Hr;const pl=typeof window<"u"&&window.trustedTypes;if(pl)try{Hr=pl.createPolicy("vue",{createHTML:e=>e})}catch{}const zh=Hr?e=>Hr.createHTML(e):e=>e,Fm="http://www.w3.org/2000/svg",Im="http://www.w3.org/1998/Math/MathML",Ce=typeof document<"u"?document:null,gl=Ce&&Ce.createElement("template"),Wh={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,i)=>{const n=t==="svg"?Ce.createElementNS(Fm,e):t==="mathml"?Ce.createElementNS(Im,e):s?Ce.createElement(e,{is:s}):Ce.createElement(e);return e==="select"&&i&&i.multiple!=null&&n.setAttribute("multiple",i.multiple),n},createText:e=>Ce.createTextNode(e),createComment:e=>Ce.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ce.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,i,n,o){const r=s?s.previousSibling:t.lastChild;if(n&&(n===o||n.nextSibling))for(;t.insertBefore(n.cloneNode(!0),s),!(n===o||!(n=n.nextSibling)););else{gl.innerHTML=zh(i==="svg"?`<svg>${e}</svg>`:i==="mathml"?`<math>${e}</math>`:e);const a=gl.content;if(i==="svg"||i==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,s)}return[r?r.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},$e="transition",ui="animation",Qs=Symbol("_vtc"),jh={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},$h=ft({},ua,jh),Nm=e=>(e.displayName="Transition",e.props=$h,e),Bm=Nm((e,{slots:t})=>Yi(Yf,Uh(e),t)),ls=(e,t=[])=>{j(e)?e.forEach(s=>s(...t)):e&&e(...t)},ml=e=>e?j(e)?e.some(t=>t.length>1):e.length>1:!1;function Uh(e){const t={};for(const P in e)P in jh||(t[P]=e[P]);if(e.css===!1)return t;const{name:s="v",type:i,duration:n,enterFromClass:o=`${s}-enter-from`,enterActiveClass:r=`${s}-enter-active`,enterToClass:a=`${s}-enter-to`,appearFromClass:l=o,appearActiveClass:c=r,appearToClass:f=a,leaveFromClass:h=`${s}-leave-from`,leaveActiveClass:u=`${s}-leave-active`,leaveToClass:d=`${s}-leave-to`}=e,g=Hm(n),p=g&&g[0],b=g&&g[1],{onBeforeEnter:x,onEnter:S,onEnterCancelled:m,onLeave:_,onLeaveCancelled:v,onBeforeAppear:M=x,onAppear:k=S,onAppearCancelled:C=m}=t,T=(P,W,G,Y)=>{P._enterCancelled=Y,Ke(P,W?f:a),Ke(P,W?c:r),G&&G()},A=(P,W)=>{P._isLeaving=!1,Ke(P,h),Ke(P,d),Ke(P,u),W&&W()},L=P=>(W,G)=>{const Y=P?k:S,I=()=>T(W,P,G);ls(Y,[W,I]),bl(()=>{Ke(W,P?l:o),pe(W,P?f:a),ml(Y)||_l(W,i,p,I)})};return ft(t,{onBeforeEnter(P){ls(x,[P]),pe(P,o),pe(P,r)},onBeforeAppear(P){ls(M,[P]),pe(P,l),pe(P,c)},onEnter:L(!1),onAppear:L(!0),onLeave(P,W){P._isLeaving=!0;const G=()=>A(P,W);pe(P,h),P._enterCancelled?(pe(P,u),Vr(P)):(Vr(P),pe(P,u)),bl(()=>{P._isLeaving&&(Ke(P,h),pe(P,d),ml(_)||_l(P,i,b,G))}),ls(_,[P,G])},onEnterCancelled(P){T(P,!1,void 0,!0),ls(m,[P])},onAppearCancelled(P){T(P,!0,void 0,!0),ls(C,[P])},onLeaveCancelled(P){A(P),ls(v,[P])}})}function Hm(e){if(e==null)return null;if(rt(e))return[nr(e.enter),nr(e.leave)];{const t=nr(e);return[t,t]}}function nr(e){return Ii(e)}function pe(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.add(s)),(e[Qs]||(e[Qs]=new Set)).add(t)}function Ke(e,t){t.split(/\s+/).forEach(i=>i&&e.classList.remove(i));const s=e[Qs];s&&(s.delete(t),s.size||(e[Qs]=void 0))}function bl(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Vm=0;function _l(e,t,s,i){const n=e._endId=++Vm,o=()=>{n===e._endId&&i()};if(s!=null)return setTimeout(o,s);const{type:r,timeout:a,propCount:l}=Kh(e,t);if(!r)return i();const c=r+"end";let f=0;const h=()=>{e.removeEventListener(c,u),o()},u=d=>{d.target===e&&++f>=l&&h()};setTimeout(()=>{f<l&&h()},a+1),e.addEventListener(c,u)}function Kh(e,t){const s=window.getComputedStyle(e),i=g=>(s[g]||"").split(", "),n=i(`${$e}Delay`),o=i(`${$e}Duration`),r=yl(n,o),a=i(`${ui}Delay`),l=i(`${ui}Duration`),c=yl(a,l);let f=null,h=0,u=0;t===$e?r>0&&(f=$e,h=r,u=o.length):t===ui?c>0&&(f=ui,h=c,u=l.length):(h=Math.max(r,c),f=h>0?r>c?$e:ui:null,u=f?f===$e?o.length:l.length:0);const d=f===$e&&/\b(?:transform|all)(?:,|$)/.test(i(`${$e}Property`).toString());return{type:f,timeout:h,propCount:u,hasTransform:d}}function yl(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((s,i)=>xl(s)+xl(e[i])))}function xl(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Vr(e){return(e?e.ownerDocument:document).body.offsetHeight}function zm(e,t,s){const i=e[Qs];i&&(t=(t?[t,...i]:[...i]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const co=Symbol("_vod"),Yh=Symbol("_vsh"),Xh={name:"show",beforeMount(e,{value:t},{transition:s}){e[co]=e.style.display==="none"?"":e.style.display,s&&t?s.beforeEnter(e):di(e,t)},mounted(e,{value:t},{transition:s}){s&&t&&s.enter(e)},updated(e,{value:t,oldValue:s},{transition:i}){!t!=!s&&(i?t?(i.beforeEnter(e),di(e,!0),i.enter(e)):i.leave(e,()=>{di(e,!1)}):di(e,t))},beforeUnmount(e,{value:t}){di(e,t)}};function di(e,t){e.style.display=t?e[co]:"none",e[Yh]=!t}function Wm(){Xh.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const qh=Symbol("");function jm(e){const t=Yt();if(!t)return;const s=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(o=>fo(o,n))},i=()=>{const n=e(t.proxy);t.ce?fo(t.ce,n):zr(t.subTree,n),s(n)};pa(()=>{Vi(i)}),li(()=>{Ss(i,Zt,{flush:"post"});const n=new MutationObserver(i);n.observe(t.subTree.el.parentNode,{childList:!0}),un(()=>n.disconnect())})}function zr(e,t){if(e.shapeFlag&128){const s=e.suspense;e=s.activeBranch,s.pendingBranch&&!s.isHydrating&&s.effects.push(()=>{zr(s.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)fo(e.el,t);else if(e.type===wt)e.children.forEach(s=>zr(s,t));else if(e.type===ws){let{el:s,anchor:i}=e;for(;s&&(fo(s,t),s!==i);)s=s.nextSibling}}function fo(e,t){if(e.nodeType===1){const s=e.style;let i="";for(const n in t){const o=df(t[n]);s.setProperty(`--${n}`,o),i+=`--${n}: ${o};`}s[qh]=i}}const $m=/(?:^|;)\s*display\s*:/;function Um(e,t,s){const i=e.style,n=ht(s);let o=!1;if(s&&!n){if(t)if(ht(t))for(const r of t.split(";")){const a=r.slice(0,r.indexOf(":")).trim();s[a]==null&&Kn(i,a,"")}else for(const r in t)s[r]==null&&Kn(i,r,"");for(const r in s)r==="display"&&(o=!0),Kn(i,r,s[r])}else if(n){if(t!==s){const r=i[qh];r&&(s+=";"+r),i.cssText=s,o=$m.test(s)}}else t&&e.removeAttribute("style");co in e&&(e[co]=o?i.display:"",e[Yh]&&(i.display="none"))}const vl=/\s*!important$/;function Kn(e,t,s){if(j(s))s.forEach(i=>Kn(e,t,i));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const i=Km(e,t);vl.test(s)?e.setProperty(Rt(i),s.replace(vl,""),"important"):e[i]=s}}const Sl=["Webkit","Moz","ms"],or={};function Km(e,t){const s=or[t];if(s)return s;let i=Mt(t);if(i!=="filter"&&i in e)return or[t]=i;i=ni(i);for(let n=0;n<Sl.length;n++){const o=Sl[n]+i;if(o in e)return or[t]=o}return t}const wl="http://www.w3.org/1999/xlink";function Ml(e,t,s,i,n,o=cf(t)){i&&t.startsWith("xlink:")?s==null?e.removeAttributeNS(wl,t.slice(6,t.length)):e.setAttributeNS(wl,t,s):s==null||o&&!sa(s)?e.removeAttribute(t):e.setAttribute(t,o?"":ne(s)?String(s):s)}function Tl(e,t,s,i,n){if(t==="innerHTML"||t==="textContent"){s!=null&&(e[t]=t==="innerHTML"?zh(s):s);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const a=o==="OPTION"?e.getAttribute("value")||"":e.value,l=s==null?e.type==="checkbox"?"on":"":String(s);(a!==l||!("_value"in e))&&(e.value=l),s==null&&e.removeAttribute(t),e._value=s;return}let r=!1;if(s===""||s==null){const a=typeof e[t];a==="boolean"?s=sa(s):s==null&&a==="string"?(s="",r=!0):a==="number"&&(s=0,r=!0)}try{e[t]=s}catch{}r&&e.removeAttribute(n||t)}function De(e,t,s,i){e.addEventListener(t,s,i)}function Ym(e,t,s,i){e.removeEventListener(t,s,i)}const kl=Symbol("_vei");function Xm(e,t,s,i,n=null){const o=e[kl]||(e[kl]={}),r=o[t];if(i&&r)r.value=i;else{const[a,l]=qm(t);if(i){const c=o[t]=Zm(i,n);De(e,a,c,l)}else r&&(Ym(e,a,r,l),o[t]=void 0)}}const Cl=/(?:Once|Passive|Capture)$/;function qm(e){let t;if(Cl.test(e)){t={};let i;for(;i=e.match(Cl);)e=e.slice(0,e.length-i[0].length),t[i[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Rt(e.slice(2)),t]}let rr=0;const Gm=Promise.resolve(),Jm=()=>rr||(Gm.then(()=>rr=0),rr=Date.now());function Zm(e,t){const s=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=s.attached)return;oe(Qm(i,s.value),t,5,[i])};return s.value=e,s.attached=Jm(),s}function Qm(e,t){if(j(t)){const s=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{s.call(e),e._stopped=!0},t.map(i=>n=>!n._stopped&&i&&i(n))}else return t}const Al=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Gh=(e,t,s,i,n,o)=>{const r=n==="svg";t==="class"?zm(e,i,r):t==="style"?Um(e,s,i):ii(t)?So(t)||Xm(e,t,s,i,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):tb(e,t,i,r))?(Tl(e,t,i),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Ml(e,t,i,r,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!ht(i))?Tl(e,Mt(t),i,o,t):(t==="true-value"?e._trueValue=i:t==="false-value"&&(e._falseValue=i),Ml(e,t,i,r))};function tb(e,t,s,i){if(i)return!!(t==="innerHTML"||t==="textContent"||t in e&&Al(t)&&X(s));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const n=e.tagName;if(n==="IMG"||n==="VIDEO"||n==="CANVAS"||n==="SOURCE")return!1}return Al(t)&&ht(s)?!1:t in e}const Pl={};function Jh(e,t,s){let i=fn(e,t);sn(i)&&(i=ft({},i,t));class n extends Ho{constructor(r){super(i,r,s)}}return n.def=i,n}const eb=((e,t)=>Jh(e,t,cu)),sb=typeof HTMLElement<"u"?HTMLElement:class{};class Ho extends sb{constructor(t,s={},i=Wr){super(),this._def=t,this._props=s,this._createApp=i,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._patching=!1,this._dirty=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._ob=null,this.shadowRoot&&i!==Wr?this._root=this.shadowRoot:t.shadowRoot!==!1?(this.attachShadow(ft({},t.shadowRootOptions,{mode:"open"})),this._root=this.shadowRoot):this._root=this}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let t=this;for(;t=t&&(t.parentNode||t.host);)if(t instanceof Ho){this._parent=t;break}this._instance||(this._resolved?this._mount(this._def):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(t=this._parent){t&&(this._instance.parent=t._instance,this._inheritParentContext(t))}_inheritParentContext(t=this._parent){t&&this._app&&Object.setPrototypeOf(this._app._context.provides,t._instance.provides)}disconnectedCallback(){this._connected=!1,cn(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null,this._teleportTargets&&(this._teleportTargets.clear(),this._teleportTargets=void 0))})}_processMutations(t){for(const s of t)this._setAttr(s.attributeName)}_resolveDef(){if(this._pendingResolve)return;for(let i=0;i<this.attributes.length;i++)this._setAttr(this.attributes[i].name);this._ob=new MutationObserver(this._processMutations.bind(this)),this._ob.observe(this,{attributes:!0});const t=(i,n=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:o,styles:r}=i;let a;if(o&&!j(o))for(const l in o){const c=o[l];(c===Number||c&&c.type===Number)&&(l in this._props&&(this._props[l]=Ii(this._props[l])),(a||(a=Object.create(null)))[Mt(l)]=!0)}this._numberProps=a,this._resolveProps(i),this.shadowRoot&&this._applyStyles(r),this._mount(i)},s=this._def.__asyncLoader;s?this._pendingResolve=s().then(i=>{i.configureApp=this._def.configureApp,t(this._def=i,!0)}):t(this._def)}_mount(t){this._app=this._createApp(t),this._inheritParentContext(),t.configureApp&&t.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const s=this._instance&&this._instance.exposed;if(s)for(const i in s)nt(this,i)||Object.defineProperty(this,i,{get:()=>ln(s[i])})}_resolveProps(t){const{props:s}=t,i=j(s)?s:Object.keys(s||{});for(const n of Object.keys(this))n[0]!=="_"&&i.includes(n)&&this._setProp(n,this[n]);for(const n of i.map(Mt))Object.defineProperty(this,n,{get(){return this._getProp(n)},set(o){this._setProp(n,o,!0,!this._patching)}})}_setAttr(t){if(t.startsWith("data-v-"))return;const s=this.hasAttribute(t);let i=s?this.getAttribute(t):Pl;const n=Mt(t);s&&this._numberProps&&this._numberProps[n]&&(i=Ii(i)),this._setProp(n,i,!1,!0)}_getProp(t){return this._props[t]}_setProp(t,s,i=!0,n=!1){if(s!==this._props[t]&&(this._dirty=!0,s===Pl?delete this._props[t]:(this._props[t]=s,t==="key"&&this._app&&(this._app._ceVNode.key=s)),n&&this._instance&&this._update(),i)){const o=this._ob;o&&(this._processMutations(o.takeRecords()),o.disconnect()),s===!0?this.setAttribute(Rt(t),""):typeof s=="string"||typeof s=="number"?this.setAttribute(Rt(t),s+""):s||this.removeAttribute(Rt(t)),o&&o.observe(this,{attributes:!0})}}_update(){const t=this._createVNode();this._app&&(t.appContext=this._app._context),lu(t,this._root)}_createVNode(){const t={};this.shadowRoot||(t.onVnodeMounted=t.onVnodeUpdated=this._renderSlots.bind(this));const s=gt(this._def,ft(t,this._props));return this._instance||(s.ce=i=>{this._instance=i,i.ce=this,i.isCE=!0;const n=(o,r)=>{this.dispatchEvent(new CustomEvent(o,sn(r[0])?ft({detail:r},r[0]):{detail:r}))};i.emit=(o,...r)=>{n(o,r),Rt(o)!==o&&n(Rt(o),r)},this._setParent()}),s}_applyStyles(t,s){if(!t)return;if(s){if(s===this._def||this._styleChildren.has(s))return;this._styleChildren.add(s)}const i=this._nonce;for(let n=t.length-1;n>=0;n--){const o=document.createElement("style");i&&o.setAttribute("nonce",i),o.textContent=t[n],this.shadowRoot.prepend(o)}}_parseSlots(){const t=this._slots={};let s;for(;s=this.firstChild;){const i=s.nodeType===1&&s.getAttribute("slot")||"default";(t[i]||(t[i]=[])).push(s),this.removeChild(s)}}_renderSlots(){const t=this._getSlots(),s=this._instance.type.__scopeId;for(let i=0;i<t.length;i++){const n=t[i],o=n.getAttribute("name")||"default",r=this._slots[o],a=n.parentNode;if(r)for(const l of r){if(s&&l.nodeType===1){const c=s+"-s",f=document.createTreeWalker(l,1);l.setAttribute(c,"");let h;for(;h=f.nextNode();)h.setAttribute(c,"")}a.insertBefore(l,n)}else for(;n.firstChild;)a.insertBefore(n.firstChild,n);a.removeChild(n)}}_getSlots(){const t=[this];this._teleportTargets&&t.push(...this._teleportTargets);const s=new Set;for(const i of t){const n=i.querySelectorAll("slot");for(let o=0;o<n.length;o++)s.add(n[o])}return Array.from(s)}_injectChildStyle(t){this._applyStyles(t.styles,t)}_beginPatch(){this._patching=!0,this._dirty=!1}_endPatch(){this._patching=!1,this._dirty&&this._instance&&this._update()}_removeChildStyle(t){}}function Zh(e){const t=Yt(),s=t&&t.ce;return s||null}function ib(){const e=Zh();return e&&e.shadowRoot}function nb(e="$style"){{const t=Yt();if(!t)return et;const s=t.type.__cssModules;if(!s)return et;const i=s[e];return i||et}}const Qh=new WeakMap,tu=new WeakMap,ho=Symbol("_moveCb"),El=Symbol("_enterCb"),ob=e=>(delete e.props.mode,e),rb=ob({name:"TransitionGroup",props:ft({},$h,{tag:String,moveClass:String}),setup(e,{slots:t}){const s=Yt(),i=ha();let n,o;return Fo(()=>{if(!n.length)return;const r=e.moveClass||`${e.name||"v"}-move`;if(!hb(n[0].el,s.vnode.el,r)){n=[];return}n.forEach(lb),n.forEach(cb);const a=n.filter(fb);Vr(s.vnode.el),a.forEach(l=>{const c=l.el,f=c.style;pe(c,r),f.transform=f.webkitTransform=f.transitionDuration="";const h=c[ho]=u=>{u&&u.target!==c||(!u||u.propertyName.endsWith("transform"))&&(c.removeEventListener("transitionend",h),c[ho]=null,Ke(c,r))};c.addEventListener("transitionend",h)}),n=[]}),()=>{const r=tt(e),a=Uh(r);let l=r.tag||wt;if(n=[],o)for(let c=0;c<o.length;c++){const f=o[c];f.el&&f.el instanceof Element&&(n.push(f),He(f,Js(f,a,i,s)),Qh.set(f,{left:f.el.offsetLeft,top:f.el.offsetTop}))}o=t.default?Ro(t.default()):[];for(let c=0;c<o.length;c++){const f=o[c];f.key!=null&&He(f,Js(f,a,i,s))}return gt(l,null,o)}}}),ab=rb;function lb(e){const t=e.el;t[ho]&&t[ho](),t[El]&&t[El]()}function cb(e){tu.set(e,{left:e.el.offsetLeft,top:e.el.offsetTop})}function fb(e){const t=Qh.get(e),s=tu.get(e),i=t.left-s.left,n=t.top-s.top;if(i||n){const o=e.el.style;return o.transform=o.webkitTransform=`translate(${i}px,${n}px)`,o.transitionDuration="0s",e}}function hb(e,t,s){const i=e.cloneNode(),n=e[Qs];n&&n.forEach(a=>{a.split(/\s+/).forEach(l=>l&&i.classList.remove(l))}),s.split(/\s+/).forEach(a=>a&&i.classList.add(a)),i.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(i);const{hasTransform:r}=Kh(i);return o.removeChild(i),r}const is=e=>{const t=e.props["onUpdate:modelValue"]||!1;return j(t)?s=>ys(t,s):t};function ub(e){e.target.composing=!0}function Ol(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ie=Symbol("_assign");function Dl(e,t,s){return t&&(e=e.trim()),s&&(e=on(e)),e}const uo={created(e,{modifiers:{lazy:t,trim:s,number:i}},n){e[ie]=is(n);const o=i||n.props&&n.props.type==="number";De(e,t?"change":"input",r=>{r.target.composing||e[ie](Dl(e.value,s,o))}),(s||o)&&De(e,"change",()=>{e.value=Dl(e.value,s,o)}),t||(De(e,"compositionstart",ub),De(e,"compositionend",Ol),De(e,"change",Ol))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:s,modifiers:{lazy:i,trim:n,number:o}},r){if(e[ie]=is(r),e.composing)return;const a=(o||e.type==="number")&&!/^0\d/.test(e.value)?on(e.value):e.value,l=t??"";a!==l&&(document.activeElement===e&&e.type!=="range"&&(i&&t===s||n&&e.value.trim()===l)||(e.value=l))}},ka={deep:!0,created(e,t,s){e[ie]=is(s),De(e,"change",()=>{const i=e._modelValue,n=ti(e),o=e.checked,r=e[ie];if(j(i)){const a=an(i,n),l=a!==-1;if(o&&!l)r(i.concat(n));else if(!o&&l){const c=[...i];c.splice(a,1),r(c)}}else if(os(i)){const a=new Set(i);o?a.add(n):a.delete(n),r(a)}else r(su(e,o))})},mounted:Rl,beforeUpdate(e,t,s){e[ie]=is(s),Rl(e,t,s)}};function Rl(e,{value:t,oldValue:s},i){e._modelValue=t;let n;if(j(t))n=an(t,i.props.value)>-1;else if(os(t))n=t.has(i.props.value);else{if(t===s)return;n=Ie(t,su(e,!0))}e.checked!==n&&(e.checked=n)}const Ca={created(e,{value:t},s){e.checked=Ie(t,s.props.value),e[ie]=is(s),De(e,"change",()=>{e[ie](ti(e))})},beforeUpdate(e,{value:t,oldValue:s},i){e[ie]=is(i),t!==s&&(e.checked=Ie(t,i.props.value))}},eu={deep:!0,created(e,{value:t,modifiers:{number:s}},i){const n=os(t);De(e,"change",()=>{const o=Array.prototype.filter.call(e.options,r=>r.selected).map(r=>s?on(ti(r)):ti(r));e[ie](e.multiple?n?new Set(o):o:o[0]),e._assigning=!0,cn(()=>{e._assigning=!1})}),e[ie]=is(i)},mounted(e,{value:t}){Ll(e,t)},beforeUpdate(e,t,s){e[ie]=is(s)},updated(e,{value:t}){e._assigning||Ll(e,t)}};function Ll(e,t){const s=e.multiple,i=j(t);if(!(s&&!i&&!os(t))){for(let n=0,o=e.options.length;n<o;n++){const r=e.options[n],a=ti(r);if(s)if(i){const l=typeof a;l==="string"||l==="number"?r.selected=t.some(c=>String(c)===String(a)):r.selected=an(t,a)>-1}else r.selected=t.has(a);else if(Ie(ti(r),t)){e.selectedIndex!==n&&(e.selectedIndex=n);return}}!s&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function ti(e){return"_value"in e?e._value:e.value}function su(e,t){const s=t?"_trueValue":"_falseValue";return s in e?e[s]:t}const iu={created(e,t,s){Cn(e,t,s,null,"created")},mounted(e,t,s){Cn(e,t,s,null,"mounted")},beforeUpdate(e,t,s,i){Cn(e,t,s,i,"beforeUpdate")},updated(e,t,s,i){Cn(e,t,s,i,"updated")}};function nu(e,t){switch(e){case"SELECT":return eu;case"TEXTAREA":return uo;default:switch(t){case"checkbox":return ka;case"radio":return Ca;default:return uo}}}function Cn(e,t,s,i,n){const r=nu(e.tagName,s.props&&s.props.type)[n];r&&r(e,t,s,i)}function db(){uo.getSSRProps=({value:e})=>({value:e}),Ca.getSSRProps=({value:e},t)=>{if(t.props&&Ie(t.props.value,e))return{checked:!0}},ka.getSSRProps=({value:e},t)=>{if(j(e)){if(t.props&&an(e,t.props.value)>-1)return{checked:!0}}else if(os(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},iu.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const s=nu(t.type.toUpperCase(),t.props&&t.props.type);if(s.getSSRProps)return s.getSSRProps(e,t)}}const pb=["ctrl","shift","alt","meta"],gb={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>pb.some(s=>e[`${s}Key`]&&!t.includes(s))},mb=(e,t)=>{const s=e._withMods||(e._withMods={}),i=t.join(".");return s[i]||(s[i]=((n,...o)=>{for(let r=0;r<t.length;r++){const a=gb[t[r]];if(a&&a(n,t))return}return e(n,...o)}))},bb={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},_b=(e,t)=>{const s=e._withKeys||(e._withKeys={}),i=t.join(".");return s[i]||(s[i]=(n=>{if(!("key"in n))return;const o=Rt(n.key);if(t.some(r=>r===o||bb[r]===o))return e(n)}))},ou=ft({patchProp:Gh},Wh);let Oi,Fl=!1;function ru(){return Oi||(Oi=Sh(ou))}function au(){return Oi=Fl?Oi:wh(ou),Fl=!0,Oi}const lu=((...e)=>{ru().render(...e)}),yb=((...e)=>{au().hydrate(...e)}),Wr=((...e)=>{const t=ru().createApp(...e),{mount:s}=t;return t.mount=i=>{const n=hu(i);if(!n)return;const o=t._component;!X(o)&&!o.render&&!o.template&&(o.template=n.innerHTML),n.nodeType===1&&(n.textContent="");const r=s(n,!1,fu(n));return n instanceof Element&&(n.removeAttribute("v-cloak"),n.setAttribute("data-v-app","")),r},t}),cu=((...e)=>{const t=au().createApp(...e),{mount:s}=t;return t.mount=i=>{const n=hu(i);if(n)return s(n,!0,fu(n))},t});function fu(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function hu(e){return ht(e)?document.querySelector(e):e}let Il=!1;const xb=()=>{Il||(Il=!0,db(),Wm())},av=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:Yf,BaseTransitionPropsValidators:ua,Comment:bt,DeprecationTypes:Lm,EffectScope:na,ErrorCodes:Np,ErrorTypeStrings:Cm,Fragment:wt,KeepAlive:fg,ReactiveEffect:Ni,Static:ws,Suspense:rm,Teleport:Kp,Text:es,TrackOpTypes:Ep,Transition:Bm,TransitionGroup:ab,TriggerOpTypes:Op,VueElement:Ho,assertNumber:Ip,callWithAsyncErrorHandling:oe,callWithErrorHandling:ai,camelize:Mt,capitalize:ni,cloneVNode:ve,compatUtils:Rm,computed:Hh,createApp:Wr,createBlock:ro,createCommentVNode:mm,createElementBlock:um,createElementVNode:Sa,createHydrationRenderer:wh,createPropsRestProxy:Dg,createRenderer:Sh,createSSRApp:cu,createSlots:bg,createStaticVNode:gm,createTextVNode:wa,createVNode:gt,customRef:Rf,defineAsyncComponent:lg,defineComponent:fn,defineCustomElement:Jh,defineEmits:Sg,defineExpose:wg,defineModel:kg,defineOptions:Mg,defineProps:vg,defineSSRCustomElement:eb,defineSlots:Tg,devtools:Am,effect:Zd,effectScope:qd,getCurrentInstance:Yt,getCurrentScope:pf,getCurrentWatcher:Dp,getTransitionRawChildren:Ro,guardReactiveProps:Dh,h:Yi,handleError:Ds,hasInjectionContext:zg,hydrate:yb,hydrateOnIdle:sg,hydrateOnInteraction:rg,hydrateOnMediaQuery:og,hydrateOnVisible:ng,initCustomFormatter:Mm,initDirectivesForSSR:xb,inject:Pi,isMemoSame:Vh,isProxy:Os,isReactive:Fe,isReadonly:xe,isRef:vt,isRuntimeOnly:vm,isShallow:Ut,isVNode:Ve,markRaw:Of,mergeDefaults:Eg,mergeModels:Og,mergeProps:Rh,nextTick:cn,nodeOps:Wh,normalizeClass:ri,normalizeProps:af,normalizeStyle:oi,onActivated:qf,onBeforeMount:Zf,onBeforeUnmount:Io,onBeforeUpdate:pa,onDeactivated:Gf,onErrorCaptured:sh,onMounted:li,onRenderTracked:eh,onRenderTriggered:th,onScopeDispose:Gd,onServerPrefetch:Qf,onUnmounted:un,onUpdated:Fo,onWatcherCleanup:Ff,openBlock:Ui,patchProp:Gh,popScopeId:Wp,provide:ah,proxyRefs:la,pushScopeId:zp,queuePostFlushCb:Vi,reactive:Po,readonly:Zn,ref:$s,registerRuntimeCompiler:xm,render:lu,renderList:mg,renderSlot:_g,resolveComponent:dg,resolveDirective:gg,resolveDynamicComponent:pg,resolveFilter:Dm,resolveTransitionHooks:Js,setBlockTracking:Ki,setDevtoolsHook:Pm,setTransitionHooks:He,shallowReactive:Ef,shallowReadonly:_p,shallowRef:Oo,ssrContextKey:lh,ssrUtils:Om,stop:Qd,toDisplayString:ia,toHandlerKey:js,toHandlers:yg,toRaw:tt,toRef:Cp,toRefs:Mp,toValue:vp,transformVNodeArgs:dm,triggerRef:xp,unref:ln,useAttrs:Pg,useCssModule:nb,useCssVars:jm,useHost:Zh,useId:Xp,useModel:Ug,useSSRContext:ch,useShadowRoot:ib,useSlots:Ag,useTemplateRef:qp,useTransitionState:ha,vModelCheckbox:ka,vModelDynamic:iu,vModelRadio:Ca,vModelSelect:eu,vModelText:uo,vShow:Xh,version:Ta,warn:km,watch:Ss,watchEffect:Wg,watchPostEffect:jg,watchSyncEffect:fh,withAsyncContext:Rg,withCtx:fa,withDefaults:Cg,withDirectives:$p,withKeys:_b,withMemo:Tm,withModifiers:mb,withScopeId:jp},Symbol.toStringTag,{value:"Module"}));/*!
21
+ * @kurkle/color v0.3.4
22
+ * https://github.com/kurkle/color#readme
23
+ * (c) 2024 Jukka Kurkela
24
+ * Released under the MIT License
25
+ */function gn(e){return e+.5|0}const Je=(e,t,s)=>Math.max(Math.min(e,s),t);function vi(e){return Je(gn(e*2.55),0,255)}function ss(e){return Je(gn(e*255),0,255)}function Pe(e){return Je(gn(e/2.55)/100,0,1)}function Nl(e){return Je(gn(e*100),0,100)}const ee={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},jr=[..."0123456789ABCDEF"],vb=e=>jr[e&15],Sb=e=>jr[(e&240)>>4]+jr[e&15],An=e=>(e&240)>>4===(e&15),wb=e=>An(e.r)&&An(e.g)&&An(e.b)&&An(e.a);function Mb(e){var t=e.length,s;return e[0]==="#"&&(t===4||t===5?s={r:255&ee[e[1]]*17,g:255&ee[e[2]]*17,b:255&ee[e[3]]*17,a:t===5?ee[e[4]]*17:255}:(t===7||t===9)&&(s={r:ee[e[1]]<<4|ee[e[2]],g:ee[e[3]]<<4|ee[e[4]],b:ee[e[5]]<<4|ee[e[6]],a:t===9?ee[e[7]]<<4|ee[e[8]]:255})),s}const Tb=(e,t)=>e<255?t(e):"";function kb(e){var t=wb(e)?vb:Sb;return e?"#"+t(e.r)+t(e.g)+t(e.b)+Tb(e.a,t):void 0}const Cb=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function uu(e,t,s){const i=t*Math.min(s,1-s),n=(o,r=(o+e/30)%12)=>s-i*Math.max(Math.min(r-3,9-r,1),-1);return[n(0),n(8),n(4)]}function Ab(e,t,s){const i=(n,o=(n+e/60)%6)=>s-s*t*Math.max(Math.min(o,4-o,1),0);return[i(5),i(3),i(1)]}function Pb(e,t,s){const i=uu(e,1,.5);let n;for(t+s>1&&(n=1/(t+s),t*=n,s*=n),n=0;n<3;n++)i[n]*=1-t-s,i[n]+=t;return i}function Eb(e,t,s,i,n){return e===n?(t-s)/i+(t<s?6:0):t===n?(s-e)/i+2:(e-t)/i+4}function Aa(e){const s=e.r/255,i=e.g/255,n=e.b/255,o=Math.max(s,i,n),r=Math.min(s,i,n),a=(o+r)/2;let l,c,f;return o!==r&&(f=o-r,c=a>.5?f/(2-o-r):f/(o+r),l=Eb(s,i,n,f,o),l=l*60+.5),[l|0,c||0,a]}function Pa(e,t,s,i){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,s,i)).map(ss)}function Ea(e,t,s){return Pa(uu,e,t,s)}function Ob(e,t,s){return Pa(Pb,e,t,s)}function Db(e,t,s){return Pa(Ab,e,t,s)}function du(e){return(e%360+360)%360}function Rb(e){const t=Cb.exec(e);let s=255,i;if(!t)return;t[5]!==i&&(s=t[6]?vi(+t[5]):ss(+t[5]));const n=du(+t[2]),o=+t[3]/100,r=+t[4]/100;return t[1]==="hwb"?i=Ob(n,o,r):t[1]==="hsv"?i=Db(n,o,r):i=Ea(n,o,r),{r:i[0],g:i[1],b:i[2],a:s}}function Lb(e,t){var s=Aa(e);s[0]=du(s[0]+t),s=Ea(s),e.r=s[0],e.g=s[1],e.b=s[2]}function Fb(e){if(!e)return;const t=Aa(e),s=t[0],i=Nl(t[1]),n=Nl(t[2]);return e.a<255?`hsla(${s}, ${i}%, ${n}%, ${Pe(e.a)})`:`hsl(${s}, ${i}%, ${n}%)`}const Bl={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},Hl={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function Ib(){const e={},t=Object.keys(Hl),s=Object.keys(Bl);let i,n,o,r,a;for(i=0;i<t.length;i++){for(r=a=t[i],n=0;n<s.length;n++)o=s[n],a=a.replace(o,Bl[o]);o=parseInt(Hl[r],16),e[a]=[o>>16&255,o>>8&255,o&255]}return e}let Pn;function Nb(e){Pn||(Pn=Ib(),Pn.transparent=[0,0,0,0]);const t=Pn[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const Bb=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function Hb(e){const t=Bb.exec(e);let s=255,i,n,o;if(t){if(t[7]!==i){const r=+t[7];s=t[8]?vi(r):Je(r*255,0,255)}return i=+t[1],n=+t[3],o=+t[5],i=255&(t[2]?vi(i):Je(i,0,255)),n=255&(t[4]?vi(n):Je(n,0,255)),o=255&(t[6]?vi(o):Je(o,0,255)),{r:i,g:n,b:o,a:s}}}function Vb(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${Pe(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const ar=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,Ns=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function zb(e,t,s){const i=Ns(Pe(e.r)),n=Ns(Pe(e.g)),o=Ns(Pe(e.b));return{r:ss(ar(i+s*(Ns(Pe(t.r))-i))),g:ss(ar(n+s*(Ns(Pe(t.g))-n))),b:ss(ar(o+s*(Ns(Pe(t.b))-o))),a:e.a+s*(t.a-e.a)}}function En(e,t,s){if(e){let i=Aa(e);i[t]=Math.max(0,Math.min(i[t]+i[t]*s,t===0?360:1)),i=Ea(i),e.r=i[0],e.g=i[1],e.b=i[2]}}function pu(e,t){return e&&Object.assign(t||{},e)}function Vl(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=ss(e[3]))):(t=pu(e,{r:0,g:0,b:0,a:1}),t.a=ss(t.a)),t}function Wb(e){return e.charAt(0)==="r"?Hb(e):Rb(e)}class Xi{constructor(t){if(t instanceof Xi)return t;const s=typeof t;let i;s==="object"?i=Vl(t):s==="string"&&(i=Mb(t)||Nb(t)||Wb(t)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var t=pu(this._rgb);return t&&(t.a=Pe(t.a)),t}set rgb(t){this._rgb=Vl(t)}rgbString(){return this._valid?Vb(this._rgb):void 0}hexString(){return this._valid?kb(this._rgb):void 0}hslString(){return this._valid?Fb(this._rgb):void 0}mix(t,s){if(t){const i=this.rgb,n=t.rgb;let o;const r=s===o?.5:s,a=2*r-1,l=i.a-n.a,c=((a*l===-1?a:(a+l)/(1+a*l))+1)/2;o=1-c,i.r=255&c*i.r+o*n.r+.5,i.g=255&c*i.g+o*n.g+.5,i.b=255&c*i.b+o*n.b+.5,i.a=r*i.a+(1-r)*n.a,this.rgb=i}return this}interpolate(t,s){return t&&(this._rgb=zb(this._rgb,t._rgb,s)),this}clone(){return new Xi(this.rgb)}alpha(t){return this._rgb.a=ss(t),this}clearer(t){const s=this._rgb;return s.a*=1-t,this}greyscale(){const t=this._rgb,s=gn(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=s,this}opaquer(t){const s=this._rgb;return s.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return En(this._rgb,2,t),this}darken(t){return En(this._rgb,2,-t),this}saturate(t){return En(this._rgb,1,t),this}desaturate(t){return En(this._rgb,1,-t),this}rotate(t){return Lb(this._rgb,t),this}}/*!
26
+ * Chart.js v4.5.1
27
+ * https://www.chartjs.org
28
+ * (c) 2025 Chart.js Contributors
29
+ * Released under the MIT License
30
+ */function Me(){}const jb=(()=>{let e=0;return()=>e++})();function ot(e){return e==null}function xt(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function st(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function Nt(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function de(e,t){return Nt(e)?e:t}function Q(e,t){return typeof e>"u"?t:e}const $b=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/t,gu=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function pt(e,t,s){if(e&&typeof e.call=="function")return e.apply(s,t)}function lt(e,t,s,i){let n,o,r;if(xt(e))for(o=e.length,n=0;n<o;n++)t.call(s,e[n],n);else if(st(e))for(r=Object.keys(e),o=r.length,n=0;n<o;n++)t.call(s,e[r[n]],r[n])}function po(e,t){let s,i,n,o;if(!e||!t||e.length!==t.length)return!1;for(s=0,i=e.length;s<i;++s)if(n=e[s],o=t[s],n.datasetIndex!==o.datasetIndex||n.index!==o.index)return!1;return!0}function go(e){if(xt(e))return e.map(go);if(st(e)){const t=Object.create(null),s=Object.keys(e),i=s.length;let n=0;for(;n<i;++n)t[s[n]]=go(e[s[n]]);return t}return e}function mu(e){return["__proto__","prototype","constructor"].indexOf(e)===-1}function Ub(e,t,s,i){if(!mu(e))return;const n=t[e],o=s[e];st(n)&&st(o)?qi(n,o,i):t[e]=go(o)}function qi(e,t,s){const i=xt(t)?t:[t],n=i.length;if(!st(e))return e;s=s||{};const o=s.merger||Ub;let r;for(let a=0;a<n;++a){if(r=i[a],!st(r))continue;const l=Object.keys(r);for(let c=0,f=l.length;c<f;++c)o(l[c],e,r,s)}return e}function Di(e,t){return qi(e,t,{merger:Kb})}function Kb(e,t,s){if(!mu(e))return;const i=t[e],n=s[e];st(i)&&st(n)?Di(i,n):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=go(n))}const zl={"":e=>e,x:e=>e.x,y:e=>e.y};function Yb(e){const t=e.split("."),s=[];let i="";for(const n of t)i+=n,i.endsWith("\\")?i=i.slice(0,-1)+".":(s.push(i),i="");return s}function Xb(e){const t=Yb(e);return s=>{for(const i of t){if(i==="")break;s=s&&s[i]}return s}}function As(e,t){return(zl[t]||(zl[t]=Xb(t)))(e)}function Oa(e){return e.charAt(0).toUpperCase()+e.slice(1)}const Gi=e=>typeof e<"u",ns=e=>typeof e=="function",Wl=(e,t)=>{if(e.size!==t.size)return!1;for(const s of e)if(!t.has(s))return!1;return!0};function qb(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const ct=Math.PI,mt=2*ct,Gb=mt+ct,mo=Number.POSITIVE_INFINITY,Jb=ct/180,St=ct/2,cs=ct/4,jl=ct*2/3,bu=Math.log10,ye=Math.sign;function Ri(e,t,s){return Math.abs(e-t)<s}function $l(e){const t=Math.round(e);e=Ri(e,t,e/1e3)?t:e;const s=Math.pow(10,Math.floor(bu(e))),i=e/s;return(i<=1?1:i<=2?2:i<=5?5:10)*s}function Zb(e){const t=[],s=Math.sqrt(e);let i;for(i=1;i<s;i++)e%i===0&&(t.push(i),t.push(e/i));return s===(s|0)&&t.push(s),t.sort((n,o)=>n-o).pop(),t}function Qb(e){return typeof e=="symbol"||typeof e=="object"&&e!==null&&!(Symbol.toPrimitive in e||"toString"in e||"valueOf"in e)}function Ji(e){return!Qb(e)&&!isNaN(parseFloat(e))&&isFinite(e)}function t_(e,t){const s=Math.round(e);return s-t<=e&&s+t>=e}function e_(e,t,s){let i,n,o;for(i=0,n=e.length;i<n;i++)o=e[i][s],isNaN(o)||(t.min=Math.min(t.min,o),t.max=Math.max(t.max,o))}function Re(e){return e*(ct/180)}function s_(e){return e*(180/ct)}function Ul(e){if(!Nt(e))return;let t=1,s=0;for(;Math.round(e*t)/t!==e;)t*=10,s++;return s}function _u(e,t){const s=t.x-e.x,i=t.y-e.y,n=Math.sqrt(s*s+i*i);let o=Math.atan2(i,s);return o<-.5*ct&&(o+=mt),{angle:o,distance:n}}function $r(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function i_(e,t){return(e-t+Gb)%mt-ct}function Jt(e){return(e%mt+mt)%mt}function Zi(e,t,s,i){const n=Jt(e),o=Jt(t),r=Jt(s),a=Jt(o-n),l=Jt(r-n),c=Jt(n-o),f=Jt(n-r);return n===o||n===r||i&&o===r||a>l&&c<f}function Ft(e,t,s){return Math.max(t,Math.min(s,e))}function n_(e){return Ft(e,-32768,32767)}function Le(e,t,s,i=1e-6){return e>=Math.min(t,s)-i&&e<=Math.max(t,s)+i}function Da(e,t,s){s=s||(r=>e[r]<t);let i=e.length-1,n=0,o;for(;i-n>1;)o=n+i>>1,s(o)?n=o:i=o;return{lo:n,hi:i}}const ps=(e,t,s,i)=>Da(e,s,i?n=>{const o=e[n][t];return o<s||o===s&&e[n+1][t]===s}:n=>e[n][t]<s),o_=(e,t,s)=>Da(e,s,i=>e[i][t]>=s);function r_(e,t,s){let i=0,n=e.length;for(;i<n&&e[i]<t;)i++;for(;n>i&&e[n-1]>s;)n--;return i>0||n<e.length?e.slice(i,n):e}const yu=["push","pop","shift","splice","unshift"];function a_(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),yu.forEach(s=>{const i="_onData"+Oa(s),n=e[s];Object.defineProperty(e,s,{configurable:!0,enumerable:!1,value(...o){const r=n.apply(this,o);return e._chartjs.listeners.forEach(a=>{typeof a[i]=="function"&&a[i](...o)}),r}})})}function Kl(e,t){const s=e._chartjs;if(!s)return;const i=s.listeners,n=i.indexOf(t);n!==-1&&i.splice(n,1),!(i.length>0)&&(yu.forEach(o=>{delete e[o]}),delete e._chartjs)}function xu(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const vu=(function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame})();function Su(e,t){let s=[],i=!1;return function(...n){s=n,i||(i=!0,vu.call(window,()=>{i=!1,e.apply(t,s)}))}}function l_(e,t){let s;return function(...i){return t?(clearTimeout(s),s=setTimeout(e,t,i)):e.apply(this,i),t}}const Ra=e=>e==="start"?"left":e==="end"?"right":"center",Pt=(e,t,s)=>e==="start"?t:e==="end"?s:(t+s)/2,c_=(e,t,s,i)=>e===(i?"left":"right")?s:e==="center"?(t+s)/2:t;function f_(e,t,s){const i=t.length;let n=0,o=i;if(e._sorted){const{iScale:r,vScale:a,_parsed:l}=e,c=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null,f=r.axis,{min:h,max:u,minDefined:d,maxDefined:g}=r.getUserBounds();if(d){if(n=Math.min(ps(l,f,h).lo,s?i:ps(t,f,r.getPixelForValue(h)).lo),c){const p=l.slice(0,n+1).reverse().findIndex(b=>!ot(b[a.axis]));n-=Math.max(0,p)}n=Ft(n,0,i-1)}if(g){let p=Math.max(ps(l,r.axis,u,!0).hi+1,s?0:ps(t,f,r.getPixelForValue(u),!0).hi+1);if(c){const b=l.slice(p-1).findIndex(x=>!ot(x[a.axis]));p+=Math.max(0,b)}o=Ft(p,n,i)-n}else o=i-n}return{start:n,count:o}}function h_(e){const{xScale:t,yScale:s,_scaleRanges:i}=e,n={xmin:t.min,xmax:t.max,ymin:s.min,ymax:s.max};if(!i)return e._scaleRanges=n,!0;const o=i.xmin!==t.min||i.xmax!==t.max||i.ymin!==s.min||i.ymax!==s.max;return Object.assign(i,n),o}const On=e=>e===0||e===1,Yl=(e,t,s)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*mt/s)),Xl=(e,t,s)=>Math.pow(2,-10*e)*Math.sin((e-t)*mt/s)+1,Li={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*St)+1,easeOutSine:e=>Math.sin(e*St),easeInOutSine:e=>-.5*(Math.cos(ct*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>On(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>On(e)?e:Yl(e,.075,.3),easeOutElastic:e=>On(e)?e:Xl(e,.075,.3),easeInOutElastic(e){return On(e)?e:e<.5?.5*Yl(e*2,.1125,.45):.5+.5*Xl(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-Li.easeOutBounce(1-e),easeOutBounce(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},easeInOutBounce:e=>e<.5?Li.easeInBounce(e*2)*.5:Li.easeOutBounce(e*2-1)*.5+.5};function La(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function ql(e){return La(e)?e:new Xi(e)}function lr(e){return La(e)?e:new Xi(e).saturate(.5).darken(.1).hexString()}const u_=["x","y","borderWidth","radius","tension"],d_=["color","borderColor","backgroundColor"];function p_(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:d_},numbers:{type:"number",properties:u_}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function g_(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const Gl=new Map;function m_(e,t){t=t||{};const s=e+JSON.stringify(t);let i=Gl.get(s);return i||(i=new Intl.NumberFormat(e,t),Gl.set(s,i)),i}function Fa(e,t,s){return m_(t,s).format(e)}const b_={values(e){return xt(e)?e:""+e},numeric(e,t,s){if(e===0)return"0";const i=this.chart.options.locale;let n,o=e;if(s.length>1){const c=Math.max(Math.abs(s[0].value),Math.abs(s[s.length-1].value));(c<1e-4||c>1e15)&&(n="scientific"),o=__(e,s)}const r=bu(Math.abs(o)),a=isNaN(r)?1:Math.max(Math.min(-1*Math.floor(r),20),0),l={notation:n,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),Fa(e,i,l)}};function __(e,t){let s=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(s)>=1&&e!==Math.floor(e)&&(s=e-Math.floor(e)),s}var wu={formatters:b_};function y_(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,s)=>s.lineWidth,tickColor:(t,s)=>s.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:wu.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const Ps=Object.create(null),Ur=Object.create(null);function Fi(e,t){if(!t)return e;const s=t.split(".");for(let i=0,n=s.length;i<n;++i){const o=s[i];e=e[o]||(e[o]=Object.create(null))}return e}function cr(e,t,s){return typeof t=="string"?qi(Fi(e,t),s):qi(Fi(e,""),t)}class x_{constructor(t,s){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=i=>i.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(i,n)=>lr(n.backgroundColor),this.hoverBorderColor=(i,n)=>lr(n.borderColor),this.hoverColor=(i,n)=>lr(n.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(s)}set(t,s){return cr(this,t,s)}get(t){return Fi(this,t)}describe(t,s){return cr(Ur,t,s)}override(t,s){return cr(Ps,t,s)}route(t,s,i,n){const o=Fi(this,t),r=Fi(this,i),a="_"+s;Object.defineProperties(o,{[a]:{value:o[s],writable:!0},[s]:{enumerable:!0,get(){const l=this[a],c=r[n];return st(l)?Object.assign({},c,l):Q(l,c)},set(l){this[a]=l}}})}apply(t){t.forEach(s=>s(this))}}var _t=new x_({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[p_,g_,y_]);function v_(e){return!e||ot(e.size)||ot(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function Jl(e,t,s,i,n){let o=t[n];return o||(o=t[n]=e.measureText(n).width,s.push(n)),o>i&&(i=o),i}function fs(e,t,s){const i=e.currentDevicePixelRatio,n=s!==0?Math.max(s/2,.5):0;return Math.round((t-n)*i)/i+n}function Zl(e,t){!t&&!e||(t=t||e.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function Kr(e,t,s,i){Mu(e,t,s,i,null)}function Mu(e,t,s,i,n){let o,r,a,l,c,f,h,u;const d=t.pointStyle,g=t.rotation,p=t.radius;let b=(g||0)*Jb;if(d&&typeof d=="object"&&(o=d.toString(),o==="[object HTMLImageElement]"||o==="[object HTMLCanvasElement]")){e.save(),e.translate(s,i),e.rotate(b),e.drawImage(d,-d.width/2,-d.height/2,d.width,d.height),e.restore();return}if(!(isNaN(p)||p<=0)){switch(e.beginPath(),d){default:n?e.ellipse(s,i,n/2,p,0,0,mt):e.arc(s,i,p,0,mt),e.closePath();break;case"triangle":f=n?n/2:p,e.moveTo(s+Math.sin(b)*f,i-Math.cos(b)*p),b+=jl,e.lineTo(s+Math.sin(b)*f,i-Math.cos(b)*p),b+=jl,e.lineTo(s+Math.sin(b)*f,i-Math.cos(b)*p),e.closePath();break;case"rectRounded":c=p*.516,l=p-c,r=Math.cos(b+cs)*l,h=Math.cos(b+cs)*(n?n/2-c:l),a=Math.sin(b+cs)*l,u=Math.sin(b+cs)*(n?n/2-c:l),e.arc(s-h,i-a,c,b-ct,b-St),e.arc(s+u,i-r,c,b-St,b),e.arc(s+h,i+a,c,b,b+St),e.arc(s-u,i+r,c,b+St,b+ct),e.closePath();break;case"rect":if(!g){l=Math.SQRT1_2*p,f=n?n/2:l,e.rect(s-f,i-l,2*f,2*l);break}b+=cs;case"rectRot":h=Math.cos(b)*(n?n/2:p),r=Math.cos(b)*p,a=Math.sin(b)*p,u=Math.sin(b)*(n?n/2:p),e.moveTo(s-h,i-a),e.lineTo(s+u,i-r),e.lineTo(s+h,i+a),e.lineTo(s-u,i+r),e.closePath();break;case"crossRot":b+=cs;case"cross":h=Math.cos(b)*(n?n/2:p),r=Math.cos(b)*p,a=Math.sin(b)*p,u=Math.sin(b)*(n?n/2:p),e.moveTo(s-h,i-a),e.lineTo(s+h,i+a),e.moveTo(s+u,i-r),e.lineTo(s-u,i+r);break;case"star":h=Math.cos(b)*(n?n/2:p),r=Math.cos(b)*p,a=Math.sin(b)*p,u=Math.sin(b)*(n?n/2:p),e.moveTo(s-h,i-a),e.lineTo(s+h,i+a),e.moveTo(s+u,i-r),e.lineTo(s-u,i+r),b+=cs,h=Math.cos(b)*(n?n/2:p),r=Math.cos(b)*p,a=Math.sin(b)*p,u=Math.sin(b)*(n?n/2:p),e.moveTo(s-h,i-a),e.lineTo(s+h,i+a),e.moveTo(s+u,i-r),e.lineTo(s-u,i+r);break;case"line":r=n?n/2:Math.cos(b)*p,a=Math.sin(b)*p,e.moveTo(s-r,i-a),e.lineTo(s+r,i+a);break;case"dash":e.moveTo(s,i),e.lineTo(s+Math.cos(b)*(n?n/2:p),i+Math.sin(b)*p);break;case!1:e.closePath();break}e.fill(),t.borderWidth>0&&e.stroke()}}function Qi(e,t,s){return s=s||.5,!t||e&&e.x>t.left-s&&e.x<t.right+s&&e.y>t.top-s&&e.y<t.bottom+s}function Vo(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function zo(e){e.restore()}function S_(e,t,s,i,n){if(!t)return e.lineTo(s.x,s.y);if(n==="middle"){const o=(t.x+s.x)/2;e.lineTo(o,t.y),e.lineTo(o,s.y)}else n==="after"!=!!i?e.lineTo(t.x,s.y):e.lineTo(s.x,t.y);e.lineTo(s.x,s.y)}function w_(e,t,s,i){if(!t)return e.lineTo(s.x,s.y);e.bezierCurveTo(i?t.cp1x:t.cp2x,i?t.cp1y:t.cp2y,i?s.cp2x:s.cp1x,i?s.cp2y:s.cp1y,s.x,s.y)}function M_(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),ot(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}function T_(e,t,s,i,n){if(n.strikethrough||n.underline){const o=e.measureText(i),r=t-o.actualBoundingBoxLeft,a=t+o.actualBoundingBoxRight,l=s-o.actualBoundingBoxAscent,c=s+o.actualBoundingBoxDescent,f=n.strikethrough?(l+c)/2:c;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=n.decorationWidth||2,e.moveTo(r,f),e.lineTo(a,f),e.stroke()}}function k_(e,t){const s=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=s}function tn(e,t,s,i,n,o={}){const r=xt(t)?t:[t],a=o.strokeWidth>0&&o.strokeColor!=="";let l,c;for(e.save(),e.font=n.string,M_(e,o),l=0;l<r.length;++l)c=r[l],o.backdrop&&k_(e,o.backdrop),a&&(o.strokeColor&&(e.strokeStyle=o.strokeColor),ot(o.strokeWidth)||(e.lineWidth=o.strokeWidth),e.strokeText(c,s,i,o.maxWidth)),e.fillText(c,s,i,o.maxWidth),T_(e,s,i,c,o),i+=Number(n.lineHeight);e.restore()}function bo(e,t){const{x:s,y:i,w:n,h:o,radius:r}=t;e.arc(s+r.topLeft,i+r.topLeft,r.topLeft,1.5*ct,ct,!0),e.lineTo(s,i+o-r.bottomLeft),e.arc(s+r.bottomLeft,i+o-r.bottomLeft,r.bottomLeft,ct,St,!0),e.lineTo(s+n-r.bottomRight,i+o),e.arc(s+n-r.bottomRight,i+o-r.bottomRight,r.bottomRight,St,0,!0),e.lineTo(s+n,i+r.topRight),e.arc(s+n-r.topRight,i+r.topRight,r.topRight,0,-St,!0),e.lineTo(s+r.topLeft,i)}const C_=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,A_=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function P_(e,t){const s=(""+e).match(C_);if(!s||s[1]==="normal")return t*1.2;switch(e=+s[2],s[3]){case"px":return e;case"%":e/=100;break}return t*e}const E_=e=>+e||0;function Ia(e,t){const s={},i=st(t),n=i?Object.keys(t):t,o=st(e)?i?r=>Q(e[r],e[t[r]]):r=>e[r]:()=>e;for(const r of n)s[r]=E_(o(r));return s}function Tu(e){return Ia(e,{top:"y",right:"x",bottom:"y",left:"x"})}function Xs(e){return Ia(e,["topLeft","topRight","bottomLeft","bottomRight"])}function re(e){const t=Tu(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function It(e,t){e=e||{},t=t||_t.font;let s=Q(e.size,t.size);typeof s=="string"&&(s=parseInt(s,10));let i=Q(e.style,t.style);i&&!(""+i).match(A_)&&(console.warn('Invalid font style specified: "'+i+'"'),i=void 0);const n={family:Q(e.family,t.family),lineHeight:P_(Q(e.lineHeight,t.lineHeight),s),size:s,style:i,weight:Q(e.weight,t.weight),string:""};return n.string=v_(n),n}function Dn(e,t,s,i){let n,o,r;for(n=0,o=e.length;n<o;++n)if(r=e[n],r!==void 0&&r!==void 0)return r}function O_(e,t,s){const{min:i,max:n}=e,o=gu(t,(n-i)/2),r=(a,l)=>s&&a===0?0:a+l;return{min:r(i,-Math.abs(o)),max:r(n,o)}}function Rs(e,t){return Object.assign(Object.create(e),t)}function Na(e,t=[""],s,i,n=()=>e[0]){const o=s||e;typeof i>"u"&&(i=Pu("_fallback",e));const r={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:o,_fallback:i,_getTarget:n,override:a=>Na([a,...e],t,o,i)};return new Proxy(r,{deleteProperty(a,l){return delete a[l],delete a._keys,delete e[0][l],!0},get(a,l){return Cu(a,l,()=>H_(l,t,e,a))},getOwnPropertyDescriptor(a,l){return Reflect.getOwnPropertyDescriptor(a._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(a,l){return tc(a).includes(l)},ownKeys(a){return tc(a)},set(a,l,c){const f=a._storage||(a._storage=n());return a[l]=f[l]=c,delete a._keys,!0}})}function ei(e,t,s,i){const n={_cacheable:!1,_proxy:e,_context:t,_subProxy:s,_stack:new Set,_descriptors:ku(e,i),setContext:o=>ei(e,o,s,i),override:o=>ei(e.override(o),t,s,i)};return new Proxy(n,{deleteProperty(o,r){return delete o[r],delete e[r],!0},get(o,r,a){return Cu(o,r,()=>R_(o,r,a))},getOwnPropertyDescriptor(o,r){return o._descriptors.allKeys?Reflect.has(e,r)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,r)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(o,r){return Reflect.has(e,r)},ownKeys(){return Reflect.ownKeys(e)},set(o,r,a){return e[r]=a,delete o[r],!0}})}function ku(e,t={scriptable:!0,indexable:!0}){const{_scriptable:s=t.scriptable,_indexable:i=t.indexable,_allKeys:n=t.allKeys}=e;return{allKeys:n,scriptable:s,indexable:i,isScriptable:ns(s)?s:()=>s,isIndexable:ns(i)?i:()=>i}}const D_=(e,t)=>e?e+Oa(t):t,Ba=(e,t)=>st(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function Cu(e,t,s){if(Object.prototype.hasOwnProperty.call(e,t)||t==="constructor")return e[t];const i=s();return e[t]=i,i}function R_(e,t,s){const{_proxy:i,_context:n,_subProxy:o,_descriptors:r}=e;let a=i[t];return ns(a)&&r.isScriptable(t)&&(a=L_(t,a,e,s)),xt(a)&&a.length&&(a=F_(t,a,e,r.isIndexable)),Ba(t,a)&&(a=ei(a,n,o&&o[t],r)),a}function L_(e,t,s,i){const{_proxy:n,_context:o,_subProxy:r,_stack:a}=s;if(a.has(e))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+e);a.add(e);let l=t(o,r||i);return a.delete(e),Ba(e,l)&&(l=Ha(n._scopes,n,e,l)),l}function F_(e,t,s,i){const{_proxy:n,_context:o,_subProxy:r,_descriptors:a}=s;if(typeof o.index<"u"&&i(e))return t[o.index%t.length];if(st(t[0])){const l=t,c=n._scopes.filter(f=>f!==l);t=[];for(const f of l){const h=Ha(c,n,e,f);t.push(ei(h,o,r&&r[e],a))}}return t}function Au(e,t,s){return ns(e)?e(t,s):e}const I_=(e,t)=>e===!0?t:typeof e=="string"?As(t,e):void 0;function N_(e,t,s,i,n){for(const o of t){const r=I_(s,o);if(r){e.add(r);const a=Au(r._fallback,s,n);if(typeof a<"u"&&a!==s&&a!==i)return a}else if(r===!1&&typeof i<"u"&&s!==i)return null}return!1}function Ha(e,t,s,i){const n=t._rootScopes,o=Au(t._fallback,s,i),r=[...e,...n],a=new Set;a.add(i);let l=Ql(a,r,s,o||s,i);return l===null||typeof o<"u"&&o!==s&&(l=Ql(a,r,o,l,i),l===null)?!1:Na(Array.from(a),[""],n,o,()=>B_(t,s,i))}function Ql(e,t,s,i,n){for(;s;)s=N_(e,t,s,i,n);return s}function B_(e,t,s){const i=e._getTarget();t in i||(i[t]={});const n=i[t];return xt(n)&&st(s)?s:n||{}}function H_(e,t,s,i){let n;for(const o of t)if(n=Pu(D_(o,e),s),typeof n<"u")return Ba(e,n)?Ha(s,i,e,n):n}function Pu(e,t){for(const s of t){if(!s)continue;const i=s[e];if(typeof i<"u")return i}}function tc(e){let t=e._keys;return t||(t=e._keys=V_(e._scopes)),t}function V_(e){const t=new Set;for(const s of e)for(const i of Object.keys(s).filter(n=>!n.startsWith("_")))t.add(i);return Array.from(t)}const z_=Number.EPSILON||1e-14,si=(e,t)=>t<e.length&&!e[t].skip&&e[t],Eu=e=>e==="x"?"y":"x";function W_(e,t,s,i){const n=e.skip?t:e,o=t,r=s.skip?t:s,a=$r(o,n),l=$r(r,o);let c=a/(a+l),f=l/(a+l);c=isNaN(c)?0:c,f=isNaN(f)?0:f;const h=i*c,u=i*f;return{previous:{x:o.x-h*(r.x-n.x),y:o.y-h*(r.y-n.y)},next:{x:o.x+u*(r.x-n.x),y:o.y+u*(r.y-n.y)}}}function j_(e,t,s){const i=e.length;let n,o,r,a,l,c=si(e,0);for(let f=0;f<i-1;++f)if(l=c,c=si(e,f+1),!(!l||!c)){if(Ri(t[f],0,z_)){s[f]=s[f+1]=0;continue}n=s[f]/t[f],o=s[f+1]/t[f],a=Math.pow(n,2)+Math.pow(o,2),!(a<=9)&&(r=3/Math.sqrt(a),s[f]=n*r*t[f],s[f+1]=o*r*t[f])}}function $_(e,t,s="x"){const i=Eu(s),n=e.length;let o,r,a,l=si(e,0);for(let c=0;c<n;++c){if(r=a,a=l,l=si(e,c+1),!a)continue;const f=a[s],h=a[i];r&&(o=(f-r[s])/3,a[`cp1${s}`]=f-o,a[`cp1${i}`]=h-o*t[c]),l&&(o=(l[s]-f)/3,a[`cp2${s}`]=f+o,a[`cp2${i}`]=h+o*t[c])}}function U_(e,t="x"){const s=Eu(t),i=e.length,n=Array(i).fill(0),o=Array(i);let r,a,l,c=si(e,0);for(r=0;r<i;++r)if(a=l,l=c,c=si(e,r+1),!!l){if(c){const f=c[t]-l[t];n[r]=f!==0?(c[s]-l[s])/f:0}o[r]=a?c?ye(n[r-1])!==ye(n[r])?0:(n[r-1]+n[r])/2:n[r-1]:n[r]}j_(e,n,o),$_(e,o,t)}function Rn(e,t,s){return Math.max(Math.min(e,s),t)}function K_(e,t){let s,i,n,o,r,a=Qi(e[0],t);for(s=0,i=e.length;s<i;++s)r=o,o=a,a=s<i-1&&Qi(e[s+1],t),o&&(n=e[s],r&&(n.cp1x=Rn(n.cp1x,t.left,t.right),n.cp1y=Rn(n.cp1y,t.top,t.bottom)),a&&(n.cp2x=Rn(n.cp2x,t.left,t.right),n.cp2y=Rn(n.cp2y,t.top,t.bottom)))}function Y_(e,t,s,i,n){let o,r,a,l;if(t.spanGaps&&(e=e.filter(c=>!c.skip)),t.cubicInterpolationMode==="monotone")U_(e,n);else{let c=i?e[e.length-1]:e[0];for(o=0,r=e.length;o<r;++o)a=e[o],l=W_(c,a,e[Math.min(o+1,r-(i?0:1))%r],t.tension),a.cp1x=l.previous.x,a.cp1y=l.previous.y,a.cp2x=l.next.x,a.cp2y=l.next.y,c=a}t.capBezierPoints&&K_(e,s)}function Va(){return typeof window<"u"&&typeof document<"u"}function za(e){let t=e.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function _o(e,t,s){let i;return typeof e=="string"?(i=parseInt(e,10),e.indexOf("%")!==-1&&(i=i/100*t.parentNode[s])):i=e,i}const Wo=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function X_(e,t){return Wo(e).getPropertyValue(t)}const q_=["top","right","bottom","left"];function Ms(e,t,s){const i={};s=s?"-"+s:"";for(let n=0;n<4;n++){const o=q_[n];i[o]=parseFloat(e[t+"-"+o+s])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}const G_=(e,t,s)=>(e>0||t>0)&&(!s||!s.shadowRoot);function J_(e,t){const s=e.touches,i=s&&s.length?s[0]:e,{offsetX:n,offsetY:o}=i;let r=!1,a,l;if(G_(n,o,e.target))a=n,l=o;else{const c=t.getBoundingClientRect();a=i.clientX-c.left,l=i.clientY-c.top,r=!0}return{x:a,y:l,box:r}}function us(e,t){if("native"in e)return e;const{canvas:s,currentDevicePixelRatio:i}=t,n=Wo(s),o=n.boxSizing==="border-box",r=Ms(n,"padding"),a=Ms(n,"border","width"),{x:l,y:c,box:f}=J_(e,s),h=r.left+(f&&a.left),u=r.top+(f&&a.top);let{width:d,height:g}=t;return o&&(d-=r.width+a.width,g-=r.height+a.height),{x:Math.round((l-h)/d*s.width/i),y:Math.round((c-u)/g*s.height/i)}}function Z_(e,t,s){let i,n;if(t===void 0||s===void 0){const o=e&&za(e);if(!o)t=e.clientWidth,s=e.clientHeight;else{const r=o.getBoundingClientRect(),a=Wo(o),l=Ms(a,"border","width"),c=Ms(a,"padding");t=r.width-c.width-l.width,s=r.height-c.height-l.height,i=_o(a.maxWidth,o,"clientWidth"),n=_o(a.maxHeight,o,"clientHeight")}}return{width:t,height:s,maxWidth:i||mo,maxHeight:n||mo}}const Ze=e=>Math.round(e*10)/10;function Q_(e,t,s,i){const n=Wo(e),o=Ms(n,"margin"),r=_o(n.maxWidth,e,"clientWidth")||mo,a=_o(n.maxHeight,e,"clientHeight")||mo,l=Z_(e,t,s);let{width:c,height:f}=l;if(n.boxSizing==="content-box"){const u=Ms(n,"border","width"),d=Ms(n,"padding");c-=d.width+u.width,f-=d.height+u.height}return c=Math.max(0,c-o.width),f=Math.max(0,i?c/i:f-o.height),c=Ze(Math.min(c,r,l.maxWidth)),f=Ze(Math.min(f,a,l.maxHeight)),c&&!f&&(f=Ze(c/2)),(t!==void 0||s!==void 0)&&i&&l.height&&f>l.height&&(f=l.height,c=Ze(Math.floor(f*i))),{width:c,height:f}}function ec(e,t,s){const i=t||1,n=Ze(e.height*i),o=Ze(e.width*i);e.height=Ze(e.height),e.width=Ze(e.width);const r=e.canvas;return r.style&&(s||!r.style.height&&!r.style.width)&&(r.style.height=`${e.height}px`,r.style.width=`${e.width}px`),e.currentDevicePixelRatio!==i||r.height!==n||r.width!==o?(e.currentDevicePixelRatio=i,r.height=n,r.width=o,e.ctx.setTransform(i,0,0,i,0,0),!0):!1}const ty=(function(){let e=!1;try{const t={get passive(){return e=!0,!1}};Va()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch{}return e})();function sc(e,t){const s=X_(e,t),i=s&&s.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function ds(e,t,s,i){return{x:e.x+s*(t.x-e.x),y:e.y+s*(t.y-e.y)}}function ey(e,t,s,i){return{x:e.x+s*(t.x-e.x),y:i==="middle"?s<.5?e.y:t.y:i==="after"?s<1?e.y:t.y:s>0?t.y:e.y}}function sy(e,t,s,i){const n={x:e.cp2x,y:e.cp2y},o={x:t.cp1x,y:t.cp1y},r=ds(e,n,s),a=ds(n,o,s),l=ds(o,t,s),c=ds(r,a,s),f=ds(a,l,s);return ds(c,f,s)}const iy=function(e,t){return{x(s){return e+e+t-s},setWidth(s){t=s},textAlign(s){return s==="center"?s:s==="right"?"left":"right"},xPlus(s,i){return s-i},leftForLtr(s,i){return s-i}}},ny=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function qs(e,t,s){return e?iy(t,s):ny()}function Ou(e,t){let s,i;(t==="ltr"||t==="rtl")&&(s=e.canvas.style,i=[s.getPropertyValue("direction"),s.getPropertyPriority("direction")],s.setProperty("direction",t,"important"),e.prevTextDirection=i)}function Du(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function Ru(e){return e==="angle"?{between:Zi,compare:i_,normalize:Jt}:{between:Le,compare:(t,s)=>t-s,normalize:t=>t}}function ic({start:e,end:t,count:s,loop:i,style:n}){return{start:e%s,end:t%s,loop:i&&(t-e+1)%s===0,style:n}}function oy(e,t,s){const{property:i,start:n,end:o}=s,{between:r,normalize:a}=Ru(i),l=t.length;let{start:c,end:f,loop:h}=e,u,d;if(h){for(c+=l,f+=l,u=0,d=l;u<d&&r(a(t[c%l][i]),n,o);++u)c--,f--;c%=l,f%=l}return f<c&&(f+=l),{start:c,end:f,loop:h,style:e.style}}function Lu(e,t,s){if(!s)return[e];const{property:i,start:n,end:o}=s,r=t.length,{compare:a,between:l,normalize:c}=Ru(i),{start:f,end:h,loop:u,style:d}=oy(e,t,s),g=[];let p=!1,b=null,x,S,m;const _=()=>l(n,m,x)&&a(n,m)!==0,v=()=>a(o,x)===0||l(o,m,x),M=()=>p||_(),k=()=>!p||v();for(let C=f,T=f;C<=h;++C)S=t[C%r],!S.skip&&(x=c(S[i]),x!==m&&(p=l(x,n,o),b===null&&M()&&(b=a(x,n)===0?C:T),b!==null&&k()&&(g.push(ic({start:b,end:C,loop:u,count:r,style:d})),b=null),T=C,m=x));return b!==null&&g.push(ic({start:b,end:h,loop:u,count:r,style:d})),g}function Fu(e,t){const s=[],i=e.segments;for(let n=0;n<i.length;n++){const o=Lu(i[n],e.points,t);o.length&&s.push(...o)}return s}function ry(e,t,s,i){let n=0,o=t-1;if(s&&!i)for(;n<t&&!e[n].skip;)n++;for(;n<t&&e[n].skip;)n++;for(n%=t,s&&(o+=n);o>n&&e[o%t].skip;)o--;return o%=t,{start:n,end:o}}function ay(e,t,s,i){const n=e.length,o=[];let r=t,a=e[t],l;for(l=t+1;l<=s;++l){const c=e[l%n];c.skip||c.stop?a.skip||(i=!1,o.push({start:t%n,end:(l-1)%n,loop:i}),t=r=c.stop?l:null):(r=l,a.skip&&(t=l)),a=c}return r!==null&&o.push({start:t%n,end:r%n,loop:i}),o}function ly(e,t){const s=e.points,i=e.options.spanGaps,n=s.length;if(!n)return[];const o=!!e._loop,{start:r,end:a}=ry(s,n,o,i);if(i===!0)return nc(e,[{start:r,end:a,loop:o}],s,t);const l=a<r?a+n:a,c=!!e._fullLoop&&r===0&&a===n-1;return nc(e,ay(s,r,l,c),s,t)}function nc(e,t,s,i){return!i||!i.setContext||!s?t:cy(e,t,s,i)}function cy(e,t,s,i){const n=e._chart.getContext(),o=oc(e.options),{_datasetIndex:r,options:{spanGaps:a}}=e,l=s.length,c=[];let f=o,h=t[0].start,u=h;function d(g,p,b,x){const S=a?-1:1;if(g!==p){for(g+=l;s[g%l].skip;)g-=S;for(;s[p%l].skip;)p+=S;g%l!==p%l&&(c.push({start:g%l,end:p%l,loop:b,style:x}),f=x,h=p%l)}}for(const g of t){h=a?h:g.start;let p=s[h%l],b;for(u=h+1;u<=g.end;u++){const x=s[u%l];b=oc(i.setContext(Rs(n,{type:"segment",p0:p,p1:x,p0DataIndex:(u-1)%l,p1DataIndex:u%l,datasetIndex:r}))),fy(b,f)&&d(h,u-1,g.loop,f),p=x,f=b}h<u-1&&d(h,u-1,g.loop,f)}return c}function oc(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function fy(e,t){if(!t)return!1;const s=[],i=function(n,o){return La(o)?(s.includes(o)||s.push(o),s.indexOf(o)):o};return JSON.stringify(e,i)!==JSON.stringify(t,i)}function Ln(e,t,s){return e.options.clip?e[s]:t[s]}function hy(e,t){const{xScale:s,yScale:i}=e;return s&&i?{left:Ln(s,t,"left"),right:Ln(s,t,"right"),top:Ln(i,t,"top"),bottom:Ln(i,t,"bottom")}:t}function Iu(e,t){const s=t._clip;if(s.disabled)return!1;const i=hy(t,e.chartArea);return{left:s.left===!1?0:i.left-(s.left===!0?0:s.left),right:s.right===!1?e.width:i.right+(s.right===!0?0:s.right),top:s.top===!1?0:i.top-(s.top===!0?0:s.top),bottom:s.bottom===!1?e.height:i.bottom+(s.bottom===!0?0:s.bottom)}}/*!
31
+ * Chart.js v4.5.1
32
+ * https://www.chartjs.org
33
+ * (c) 2025 Chart.js Contributors
34
+ * Released under the MIT License
35
+ */class uy{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,s,i,n){const o=s.listeners[n],r=s.duration;o.forEach(a=>a({chart:t,initial:s.initial,numSteps:r,currentStep:Math.min(i-s.start,r)}))}_refresh(){this._request||(this._running=!0,this._request=vu.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let s=0;this._charts.forEach((i,n)=>{if(!i.running||!i.items.length)return;const o=i.items;let r=o.length-1,a=!1,l;for(;r>=0;--r)l=o[r],l._active?(l._total>i.duration&&(i.duration=l._total),l.tick(t),a=!0):(o[r]=o[o.length-1],o.pop());a&&(n.draw(),this._notify(n,i,t,"progress")),o.length||(i.running=!1,this._notify(n,i,t,"complete"),i.initial=!1),s+=o.length}),this._lastDate=t,s===0&&(this._running=!1)}_getAnims(t){const s=this._charts;let i=s.get(t);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},s.set(t,i)),i}listen(t,s,i){this._getAnims(t).listeners[s].push(i)}add(t,s){!s||!s.length||this._getAnims(t).items.push(...s)}has(t){return this._getAnims(t).items.length>0}start(t){const s=this._charts.get(t);s&&(s.running=!0,s.start=Date.now(),s.duration=s.items.reduce((i,n)=>Math.max(i,n._duration),0),this._refresh())}running(t){if(!this._running)return!1;const s=this._charts.get(t);return!(!s||!s.running||!s.items.length)}stop(t){const s=this._charts.get(t);if(!s||!s.items.length)return;const i=s.items;let n=i.length-1;for(;n>=0;--n)i[n].cancel();s.items=[],this._notify(t,s,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var Te=new uy;const rc="transparent",dy={boolean(e,t,s){return s>.5?t:e},color(e,t,s){const i=ql(e||rc),n=i.valid&&ql(t||rc);return n&&n.valid?n.mix(i,s).hexString():t},number(e,t,s){return e+(t-e)*s}};class py{constructor(t,s,i,n){const o=s[i];n=Dn([t.to,n,o,t.from]);const r=Dn([t.from,o,n]);this._active=!0,this._fn=t.fn||dy[t.type||typeof r],this._easing=Li[t.easing]||Li.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=s,this._prop=i,this._from=r,this._to=n,this._promises=void 0}active(){return this._active}update(t,s,i){if(this._active){this._notify(!1);const n=this._target[this._prop],o=i-this._start,r=this._duration-o;this._start=i,this._duration=Math.floor(Math.max(r,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=Dn([t.to,s,n,t.from]),this._from=Dn([t.from,n,s])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const s=t-this._start,i=this._duration,n=this._prop,o=this._from,r=this._loop,a=this._to;let l;if(this._active=o!==a&&(r||s<i),!this._active){this._target[n]=a,this._notify(!0);return}if(s<0){this._target[n]=o;return}l=s/i%2,l=r&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[n]=this._fn(o,a,l)}wait(){const t=this._promises||(this._promises=[]);return new Promise((s,i)=>{t.push({res:s,rej:i})})}_notify(t){const s=t?"res":"rej",i=this._promises||[];for(let n=0;n<i.length;n++)i[n][s]()}}class Nu{constructor(t,s){this._chart=t,this._properties=new Map,this.configure(s)}configure(t){if(!st(t))return;const s=Object.keys(_t.animation),i=this._properties;Object.getOwnPropertyNames(t).forEach(n=>{const o=t[n];if(!st(o))return;const r={};for(const a of s)r[a]=o[a];(xt(o.properties)&&o.properties||[n]).forEach(a=>{(a===n||!i.has(a))&&i.set(a,r)})})}_animateOptions(t,s){const i=s.options,n=my(t,i);if(!n)return[];const o=this._createAnimations(n,i);return i.$shared&&gy(t.options.$animations,i).then(()=>{t.options=i},()=>{}),o}_createAnimations(t,s){const i=this._properties,n=[],o=t.$animations||(t.$animations={}),r=Object.keys(s),a=Date.now();let l;for(l=r.length-1;l>=0;--l){const c=r[l];if(c.charAt(0)==="$")continue;if(c==="options"){n.push(...this._animateOptions(t,s));continue}const f=s[c];let h=o[c];const u=i.get(c);if(h)if(u&&h.active()){h.update(u,f,a);continue}else h.cancel();if(!u||!u.duration){t[c]=f;continue}o[c]=h=new py(u,t,c,f),n.push(h)}return n}update(t,s){if(this._properties.size===0){Object.assign(t,s);return}const i=this._createAnimations(t,s);if(i.length)return Te.add(this._chart,i),!0}}function gy(e,t){const s=[],i=Object.keys(t);for(let n=0;n<i.length;n++){const o=e[i[n]];o&&o.active()&&s.push(o.wait())}return Promise.all(s)}function my(e,t){if(!t)return;let s=e.options;if(!s){e.options=t;return}return s.$shared&&(e.options=s=Object.assign({},s,{$shared:!1,$animations:{}})),s}function ac(e,t){const s=e&&e.options||{},i=s.reverse,n=s.min===void 0?t:0,o=s.max===void 0?t:0;return{start:i?o:n,end:i?n:o}}function by(e,t,s){if(s===!1)return!1;const i=ac(e,s),n=ac(t,s);return{top:n.end,right:i.end,bottom:n.start,left:i.start}}function _y(e){let t,s,i,n;return st(e)?(t=e.top,s=e.right,i=e.bottom,n=e.left):t=s=i=n=e,{top:t,right:s,bottom:i,left:n,disabled:e===!1}}function Bu(e,t){const s=[],i=e._getSortedDatasetMetas(t);let n,o;for(n=0,o=i.length;n<o;++n)s.push(i[n].index);return s}function lc(e,t,s,i={}){const n=e.keys,o=i.mode==="single";let r,a,l,c;if(t===null)return;let f=!1;for(r=0,a=n.length;r<a;++r){if(l=+n[r],l===s){if(f=!0,i.all)continue;break}c=e.values[l],Nt(c)&&(o||t===0||ye(t)===ye(c))&&(t+=c)}return!f&&!i.all?0:t}function yy(e,t){const{iScale:s,vScale:i}=t,n=s.axis==="x"?"x":"y",o=i.axis==="x"?"x":"y",r=Object.keys(e),a=new Array(r.length);let l,c,f;for(l=0,c=r.length;l<c;++l)f=r[l],a[l]={[n]:f,[o]:e[f]};return a}function fr(e,t){const s=e&&e.options.stacked;return s||s===void 0&&t.stack!==void 0}function xy(e,t,s){return`${e.id}.${t.id}.${s.stack||s.type}`}function vy(e){const{min:t,max:s,minDefined:i,maxDefined:n}=e.getUserBounds();return{min:i?t:Number.NEGATIVE_INFINITY,max:n?s:Number.POSITIVE_INFINITY}}function Sy(e,t,s){const i=e[t]||(e[t]={});return i[s]||(i[s]={})}function cc(e,t,s,i){for(const n of t.getMatchingVisibleMetas(i).reverse()){const o=e[n.index];if(s&&o>0||!s&&o<0)return n.index}return null}function fc(e,t){const{chart:s,_cachedMeta:i}=e,n=s._stacks||(s._stacks={}),{iScale:o,vScale:r,index:a}=i,l=o.axis,c=r.axis,f=xy(o,r,i),h=t.length;let u;for(let d=0;d<h;++d){const g=t[d],{[l]:p,[c]:b}=g,x=g._stacks||(g._stacks={});u=x[c]=Sy(n,f,p),u[a]=b,u._top=cc(u,r,!0,i.type),u._bottom=cc(u,r,!1,i.type);const S=u._visualValues||(u._visualValues={});S[a]=b}}function hr(e,t){const s=e.scales;return Object.keys(s).filter(i=>s[i].axis===t).shift()}function wy(e,t){return Rs(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function My(e,t,s){return Rs(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:s,index:t,mode:"default",type:"data"})}function pi(e,t){const s=e.controller.index,i=e.vScale&&e.vScale.axis;if(i){t=t||e._parsed;for(const n of t){const o=n._stacks;if(!o||o[i]===void 0||o[i][s]===void 0)return;delete o[i][s],o[i]._visualValues!==void 0&&o[i]._visualValues[s]!==void 0&&delete o[i]._visualValues[s]}}}const ur=e=>e==="reset"||e==="none",hc=(e,t)=>t?e:Object.assign({},e),Ty=(e,t,s)=>e&&!t.hidden&&t._stacked&&{keys:Bu(s,!0),values:null};class Ts{constructor(t,s){this.chart=t,this._ctx=t.ctx,this.index=s,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=fr(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&pi(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,s=this._cachedMeta,i=this.getDataset(),n=(h,u,d,g)=>h==="x"?u:h==="r"?g:d,o=s.xAxisID=Q(i.xAxisID,hr(t,"x")),r=s.yAxisID=Q(i.yAxisID,hr(t,"y")),a=s.rAxisID=Q(i.rAxisID,hr(t,"r")),l=s.indexAxis,c=s.iAxisID=n(l,o,r,a),f=s.vAxisID=n(l,r,o,a);s.xScale=this.getScaleForId(o),s.yScale=this.getScaleForId(r),s.rScale=this.getScaleForId(a),s.iScale=this.getScaleForId(c),s.vScale=this.getScaleForId(f)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const s=this._cachedMeta;return t===s.iScale?s.vScale:s.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&Kl(this._data,this),t._stacked&&pi(t)}_dataCheck(){const t=this.getDataset(),s=t.data||(t.data=[]),i=this._data;if(st(s)){const n=this._cachedMeta;this._data=yy(s,n)}else if(i!==s){if(i){Kl(i,this);const n=this._cachedMeta;pi(n),n._parsed=[]}s&&Object.isExtensible(s)&&a_(s,this),this._syncList=[],this._data=s}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const s=this._cachedMeta,i=this.getDataset();let n=!1;this._dataCheck();const o=s._stacked;s._stacked=fr(s.vScale,s),s.stack!==i.stack&&(n=!0,pi(s),s.stack=i.stack),this._resyncElements(t),(n||o!==s._stacked)&&(fc(this,s._parsed),s._stacked=fr(s.vScale,s))}configure(){const t=this.chart.config,s=t.datasetScopeKeys(this._type),i=t.getOptionScopes(this.getDataset(),s,!0);this.options=t.createResolver(i,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,s){const{_cachedMeta:i,_data:n}=this,{iScale:o,_stacked:r}=i,a=o.axis;let l=t===0&&s===n.length?!0:i._sorted,c=t>0&&i._parsed[t-1],f,h,u;if(this._parsing===!1)i._parsed=n,i._sorted=!0,u=n;else{xt(n[t])?u=this.parseArrayData(i,n,t,s):st(n[t])?u=this.parseObjectData(i,n,t,s):u=this.parsePrimitiveData(i,n,t,s);const d=()=>h[a]===null||c&&h[a]<c[a];for(f=0;f<s;++f)i._parsed[f+t]=h=u[f],l&&(d()&&(l=!1),c=h);i._sorted=l}r&&fc(this,u)}parsePrimitiveData(t,s,i,n){const{iScale:o,vScale:r}=t,a=o.axis,l=r.axis,c=o.getLabels(),f=o===r,h=new Array(n);let u,d,g;for(u=0,d=n;u<d;++u)g=u+i,h[u]={[a]:f||o.parse(c[g],g),[l]:r.parse(s[g],g)};return h}parseArrayData(t,s,i,n){const{xScale:o,yScale:r}=t,a=new Array(n);let l,c,f,h;for(l=0,c=n;l<c;++l)f=l+i,h=s[f],a[l]={x:o.parse(h[0],f),y:r.parse(h[1],f)};return a}parseObjectData(t,s,i,n){const{xScale:o,yScale:r}=t,{xAxisKey:a="x",yAxisKey:l="y"}=this._parsing,c=new Array(n);let f,h,u,d;for(f=0,h=n;f<h;++f)u=f+i,d=s[u],c[f]={x:o.parse(As(d,a),u),y:r.parse(As(d,l),u)};return c}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,s,i){const n=this.chart,o=this._cachedMeta,r=s[t.axis],a={keys:Bu(n,!0),values:s._stacks[t.axis]._visualValues};return lc(a,r,o.index,{mode:i})}updateRangeFromParsed(t,s,i,n){const o=i[s.axis];let r=o===null?NaN:o;const a=n&&i._stacks[s.axis];n&&a&&(n.values=a,r=lc(n,o,this._cachedMeta.index)),t.min=Math.min(t.min,r),t.max=Math.max(t.max,r)}getMinMax(t,s){const i=this._cachedMeta,n=i._parsed,o=i._sorted&&t===i.iScale,r=n.length,a=this._getOtherScale(t),l=Ty(s,i,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:f,max:h}=vy(a);let u,d;function g(){d=n[u];const p=d[a.axis];return!Nt(d[t.axis])||f>p||h<p}for(u=0;u<r&&!(!g()&&(this.updateRangeFromParsed(c,t,d,l),o));++u);if(o){for(u=r-1;u>=0;--u)if(!g()){this.updateRangeFromParsed(c,t,d,l);break}}return c}getAllParsedValues(t){const s=this._cachedMeta._parsed,i=[];let n,o,r;for(n=0,o=s.length;n<o;++n)r=s[n][t.axis],Nt(r)&&i.push(r);return i}getMaxOverflow(){return!1}getLabelAndValue(t){const s=this._cachedMeta,i=s.iScale,n=s.vScale,o=this.getParsed(t);return{label:i?""+i.getLabelForValue(o[i.axis]):"",value:n?""+n.getLabelForValue(o[n.axis]):""}}_update(t){const s=this._cachedMeta;this.update(t||"default"),s._clip=_y(Q(this.options.clip,by(s.xScale,s.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,s=this.chart,i=this._cachedMeta,n=i.data||[],o=s.chartArea,r=[],a=this._drawStart||0,l=this._drawCount||n.length-a,c=this.options.drawActiveElementsOnTop;let f;for(i.dataset&&i.dataset.draw(t,o,a,l),f=a;f<a+l;++f){const h=n[f];h.hidden||(h.active&&c?r.push(h):h.draw(t,o))}for(f=0;f<r.length;++f)r[f].draw(t,o)}getStyle(t,s){const i=s?"active":"default";return t===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(i):this.resolveDataElementOptions(t||0,i)}getContext(t,s,i){const n=this.getDataset();let o;if(t>=0&&t<this._cachedMeta.data.length){const r=this._cachedMeta.data[t];o=r.$context||(r.$context=My(this.getContext(),t,r)),o.parsed=this.getParsed(t),o.raw=n.data[t],o.index=o.dataIndex=t}else o=this.$context||(this.$context=wy(this.chart.getContext(),this.index)),o.dataset=n,o.index=o.datasetIndex=this.index;return o.active=!!s,o.mode=i,o}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,s){return this._resolveElementOptions(this.dataElementType.id,s,t)}_resolveElementOptions(t,s="default",i){const n=s==="active",o=this._cachedDataOpts,r=t+"-"+s,a=o[r],l=this.enableOptionSharing&&Gi(i);if(a)return hc(a,l);const c=this.chart.config,f=c.datasetElementScopeKeys(this._type,t),h=n?[`${t}Hover`,"hover",t,""]:[t,""],u=c.getOptionScopes(this.getDataset(),f),d=Object.keys(_t.elements[t]),g=()=>this.getContext(i,n,s),p=c.resolveNamedOptions(u,d,g,h);return p.$shared&&(p.$shared=l,o[r]=Object.freeze(hc(p,l))),p}_resolveAnimations(t,s,i){const n=this.chart,o=this._cachedDataOpts,r=`animation-${s}`,a=o[r];if(a)return a;let l;if(n.options.animation!==!1){const f=this.chart.config,h=f.datasetAnimationScopeKeys(this._type,s),u=f.getOptionScopes(this.getDataset(),h);l=f.createResolver(u,this.getContext(t,i,s))}const c=new Nu(n,l&&l.animations);return l&&l._cacheable&&(o[r]=Object.freeze(c)),c}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,s){return!s||ur(t)||this.chart._animationsDisabled}_getSharedOptions(t,s){const i=this.resolveDataElementOptions(t,s),n=this._sharedOptions,o=this.getSharedOptions(i),r=this.includeOptions(s,o)||o!==n;return this.updateSharedOptions(o,s,i),{sharedOptions:o,includeOptions:r}}updateElement(t,s,i,n){ur(n)?Object.assign(t,i):this._resolveAnimations(s,n).update(t,i)}updateSharedOptions(t,s,i){t&&!ur(s)&&this._resolveAnimations(void 0,s).update(t,i)}_setStyle(t,s,i,n){t.active=n;const o=this.getStyle(s,n);this._resolveAnimations(s,i,n).update(t,{options:!n&&this.getSharedOptions(o)||o})}removeHoverStyle(t,s,i){this._setStyle(t,i,"active",!1)}setHoverStyle(t,s,i){this._setStyle(t,i,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const s=this._data,i=this._cachedMeta.data;for(const[a,l,c]of this._syncList)this[a](l,c);this._syncList=[];const n=i.length,o=s.length,r=Math.min(o,n);r&&this.parse(0,r),o>n?this._insertElements(n,o-n,t):o<n&&this._removeElements(o,n-o)}_insertElements(t,s,i=!0){const n=this._cachedMeta,o=n.data,r=t+s;let a;const l=c=>{for(c.length+=s,a=c.length-1;a>=r;a--)c[a]=c[a-s]};for(l(o),a=t;a<r;++a)o[a]=new this.dataElementType;this._parsing&&l(n._parsed),this.parse(t,s),i&&this.updateElements(o,t,s,"reset")}updateElements(t,s,i,n){}_removeElements(t,s){const i=this._cachedMeta;if(this._parsing){const n=i._parsed.splice(t,s);i._stacked&&pi(i,n)}i.data.splice(t,s)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[s,i,n]=t;this[s](i,n)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,s){s&&this._sync(["_removeElements",t,s]);const i=arguments.length-2;i&&this._sync(["_insertElements",t,i])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}U(Ts,"defaults",{}),U(Ts,"datasetElementType",null),U(Ts,"dataElementType",null);function ky(e,t){if(!e._cache.$bar){const s=e.getMatchingVisibleMetas(t);let i=[];for(let n=0,o=s.length;n<o;n++)i=i.concat(s[n].controller.getAllParsedValues(e));e._cache.$bar=xu(i.sort((n,o)=>n-o))}return e._cache.$bar}function Cy(e){const t=e.iScale,s=ky(t,e.type);let i=t._length,n,o,r,a;const l=()=>{r===32767||r===-32768||(Gi(a)&&(i=Math.min(i,Math.abs(r-a)||i)),a=r)};for(n=0,o=s.length;n<o;++n)r=t.getPixelForValue(s[n]),l();for(a=void 0,n=0,o=t.ticks.length;n<o;++n)r=t.getPixelForTick(n),l();return i}function Ay(e,t,s,i){const n=s.barThickness;let o,r;return ot(n)?(o=t.min*s.categoryPercentage,r=s.barPercentage):(o=n*i,r=1),{chunk:o/i,ratio:r,start:t.pixels[e]-o/2}}function Py(e,t,s,i){const n=t.pixels,o=n[e];let r=e>0?n[e-1]:null,a=e<n.length-1?n[e+1]:null;const l=s.categoryPercentage;r===null&&(r=o-(a===null?t.end-t.start:a-o)),a===null&&(a=o+o-r);const c=o-(o-Math.min(r,a))/2*l;return{chunk:Math.abs(a-r)/2*l/i,ratio:s.barPercentage,start:c}}function Ey(e,t,s,i){const n=s.parse(e[0],i),o=s.parse(e[1],i),r=Math.min(n,o),a=Math.max(n,o);let l=r,c=a;Math.abs(r)>Math.abs(a)&&(l=a,c=r),t[s.axis]=c,t._custom={barStart:l,barEnd:c,start:n,end:o,min:r,max:a}}function Hu(e,t,s,i){return xt(e)?Ey(e,t,s,i):t[s.axis]=s.parse(e,i),t}function uc(e,t,s,i){const n=e.iScale,o=e.vScale,r=n.getLabels(),a=n===o,l=[];let c,f,h,u;for(c=s,f=s+i;c<f;++c)u=t[c],h={},h[n.axis]=a||n.parse(r[c],c),l.push(Hu(u,h,o,c));return l}function dr(e){return e&&e.barStart!==void 0&&e.barEnd!==void 0}function Oy(e,t,s){return e!==0?ye(e):(t.isHorizontal()?1:-1)*(t.min>=s?1:-1)}function Dy(e){let t,s,i,n,o;return e.horizontal?(t=e.base>e.x,s="left",i="right"):(t=e.base<e.y,s="bottom",i="top"),t?(n="end",o="start"):(n="start",o="end"),{start:s,end:i,reverse:t,top:n,bottom:o}}function Ry(e,t,s,i){let n=t.borderSkipped;const o={};if(!n){e.borderSkipped=o;return}if(n===!0){e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}const{start:r,end:a,reverse:l,top:c,bottom:f}=Dy(e);n==="middle"&&s&&(e.enableBorderRadius=!0,(s._top||0)===i?n=c:(s._bottom||0)===i?n=f:(o[dc(f,r,a,l)]=!0,n=c)),o[dc(n,r,a,l)]=!0,e.borderSkipped=o}function dc(e,t,s,i){return i?(e=Ly(e,t,s),e=pc(e,s,t)):e=pc(e,t,s),e}function Ly(e,t,s){return e===t?s:e===s?t:e}function pc(e,t,s){return e==="start"?t:e==="end"?s:e}function Fy(e,{inflateAmount:t},s){e.inflateAmount=t==="auto"?s===1?.33:0:t}class Yn extends Ts{parsePrimitiveData(t,s,i,n){return uc(t,s,i,n)}parseArrayData(t,s,i,n){return uc(t,s,i,n)}parseObjectData(t,s,i,n){const{iScale:o,vScale:r}=t,{xAxisKey:a="x",yAxisKey:l="y"}=this._parsing,c=o.axis==="x"?a:l,f=r.axis==="x"?a:l,h=[];let u,d,g,p;for(u=i,d=i+n;u<d;++u)p=s[u],g={},g[o.axis]=o.parse(As(p,c),u),h.push(Hu(As(p,f),g,r,u));return h}updateRangeFromParsed(t,s,i,n){super.updateRangeFromParsed(t,s,i,n);const o=i._custom;o&&s===this._cachedMeta.vScale&&(t.min=Math.min(t.min,o.min),t.max=Math.max(t.max,o.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const s=this._cachedMeta,{iScale:i,vScale:n}=s,o=this.getParsed(t),r=o._custom,a=dr(r)?"["+r.start+", "+r.end+"]":""+n.getLabelForValue(o[n.axis]);return{label:""+i.getLabelForValue(o[i.axis]),value:a}}initialize(){this.enableOptionSharing=!0,super.initialize();const t=this._cachedMeta;t.stack=this.getDataset().stack}update(t){const s=this._cachedMeta;this.updateElements(s.data,0,s.data.length,t)}updateElements(t,s,i,n){const o=n==="reset",{index:r,_cachedMeta:{vScale:a}}=this,l=a.getBasePixel(),c=a.isHorizontal(),f=this._getRuler(),{sharedOptions:h,includeOptions:u}=this._getSharedOptions(s,n);for(let d=s;d<s+i;d++){const g=this.getParsed(d),p=o||ot(g[a.axis])?{base:l,head:l}:this._calculateBarValuePixels(d),b=this._calculateBarIndexPixels(d,f),x=(g._stacks||{})[a.axis],S={horizontal:c,base:p.base,enableBorderRadius:!x||dr(g._custom)||r===x._top||r===x._bottom,x:c?p.head:b.center,y:c?b.center:p.head,height:c?b.size:Math.abs(p.size),width:c?Math.abs(p.size):b.size};u&&(S.options=h||this.resolveDataElementOptions(d,t[d].active?"active":n));const m=S.options||t[d].options;Ry(S,m,x,r),Fy(S,m,f.ratio),this.updateElement(t[d],d,S,n)}}_getStacks(t,s){const{iScale:i}=this._cachedMeta,n=i.getMatchingVisibleMetas(this._type).filter(f=>f.controller.options.grouped),o=i.options.stacked,r=[],a=this._cachedMeta.controller.getParsed(s),l=a&&a[i.axis],c=f=>{const h=f._parsed.find(d=>d[i.axis]===l),u=h&&h[f.vScale.axis];if(ot(u)||isNaN(u))return!0};for(const f of n)if(!(s!==void 0&&c(f))&&((o===!1||r.indexOf(f.stack)===-1||o===void 0&&f.stack===void 0)&&r.push(f.stack),f.index===t))break;return r.length||r.push(void 0),r}_getStackCount(t){return this._getStacks(void 0,t).length}_getAxisCount(){return this._getAxis().length}getFirstScaleIdForIndexAxis(){const t=this.chart.scales,s=this.chart.options.indexAxis;return Object.keys(t).filter(i=>t[i].axis===s).shift()}_getAxis(){const t={},s=this.getFirstScaleIdForIndexAxis();for(const i of this.chart.data.datasets)t[Q(this.chart.options.indexAxis==="x"?i.xAxisID:i.yAxisID,s)]=!0;return Object.keys(t)}_getStackIndex(t,s,i){const n=this._getStacks(t,i),o=s!==void 0?n.indexOf(s):-1;return o===-1?n.length-1:o}_getRuler(){const t=this.options,s=this._cachedMeta,i=s.iScale,n=[];let o,r;for(o=0,r=s.data.length;o<r;++o)n.push(i.getPixelForValue(this.getParsed(o)[i.axis],o));const a=t.barThickness;return{min:a||Cy(s),pixels:n,start:i._startPixel,end:i._endPixel,stackCount:this._getStackCount(),scale:i,grouped:t.grouped,ratio:a?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:s,_stacked:i,index:n},options:{base:o,minBarLength:r}}=this,a=o||0,l=this.getParsed(t),c=l._custom,f=dr(c);let h=l[s.axis],u=0,d=i?this.applyStack(s,l,i):h,g,p;d!==h&&(u=d-h,d=h),f&&(h=c.barStart,d=c.barEnd-c.barStart,h!==0&&ye(h)!==ye(c.barEnd)&&(u=0),u+=h);const b=!ot(o)&&!f?o:u;let x=s.getPixelForValue(b);if(this.chart.getDataVisibility(t)?g=s.getPixelForValue(u+d):g=x,p=g-x,Math.abs(p)<r){p=Oy(p,s,a)*r,h===a&&(x-=p/2);const S=s.getPixelForDecimal(0),m=s.getPixelForDecimal(1),_=Math.min(S,m),v=Math.max(S,m);x=Math.max(Math.min(x,v),_),g=x+p,i&&!f&&(l._stacks[s.axis]._visualValues[n]=s.getValueForPixel(g)-s.getValueForPixel(x))}if(x===s.getPixelForValue(a)){const S=ye(p)*s.getLineWidthForValue(a)/2;x+=S,p-=S}return{size:p,base:x,head:g,center:g+p/2}}_calculateBarIndexPixels(t,s){const i=s.scale,n=this.options,o=n.skipNull,r=Q(n.maxBarThickness,1/0);let a,l;const c=this._getAxisCount();if(s.grouped){const f=o?this._getStackCount(t):s.stackCount,h=n.barThickness==="flex"?Py(t,s,n,f*c):Ay(t,s,n,f*c),u=this.chart.options.indexAxis==="x"?this.getDataset().xAxisID:this.getDataset().yAxisID,d=this._getAxis().indexOf(Q(u,this.getFirstScaleIdForIndexAxis())),g=this._getStackIndex(this.index,this._cachedMeta.stack,o?t:void 0)+d;a=h.start+h.chunk*g+h.chunk/2,l=Math.min(r,h.chunk*h.ratio)}else a=i.getPixelForValue(this.getParsed(t)[i.axis],t),l=Math.min(r,s.min*s.ratio);return{base:a-l/2,head:a+l/2,center:a,size:l}}draw(){const t=this._cachedMeta,s=t.vScale,i=t.data,n=i.length;let o=0;for(;o<n;++o)this.getParsed(o)[s.axis]!==null&&!i[o].hidden&&i[o].draw(this._ctx)}}U(Yn,"id","bar"),U(Yn,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),U(Yn,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});function Iy(e,t,s){let i=1,n=1,o=0,r=0;if(t<mt){const a=e,l=a+t,c=Math.cos(a),f=Math.sin(a),h=Math.cos(l),u=Math.sin(l),d=(m,_,v)=>Zi(m,a,l,!0)?1:Math.max(_,_*s,v,v*s),g=(m,_,v)=>Zi(m,a,l,!0)?-1:Math.min(_,_*s,v,v*s),p=d(0,c,h),b=d(St,f,u),x=g(ct,c,h),S=g(ct+St,f,u);i=(p-x)/2,n=(b-S)/2,o=-(p+x)/2,r=-(b+S)/2}return{ratioX:i,ratioY:n,offsetX:o,offsetY:r}}class Si extends Ts{constructor(t,s){super(t,s),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,s){const i=this.getDataset().data,n=this._cachedMeta;if(this._parsing===!1)n._parsed=i;else{let o=l=>+i[l];if(st(i[t])){const{key:l="value"}=this._parsing;o=c=>+As(i[c],l)}let r,a;for(r=t,a=t+s;r<a;++r)n._parsed[r]=o(r)}}_getRotation(){return Re(this.options.rotation-90)}_getCircumference(){return Re(this.options.circumference)}_getRotationExtents(){let t=mt,s=-mt;for(let i=0;i<this.chart.data.datasets.length;++i)if(this.chart.isDatasetVisible(i)&&this.chart.getDatasetMeta(i).type===this._type){const n=this.chart.getDatasetMeta(i).controller,o=n._getRotation(),r=n._getCircumference();t=Math.min(t,o),s=Math.max(s,o+r)}return{rotation:t,circumference:s-t}}update(t){const s=this.chart,{chartArea:i}=s,n=this._cachedMeta,o=n.data,r=this.getMaxBorderWidth()+this.getMaxOffset(o)+this.options.spacing,a=Math.max((Math.min(i.width,i.height)-r)/2,0),l=Math.min($b(this.options.cutout,a),1),c=this._getRingWeight(this.index),{circumference:f,rotation:h}=this._getRotationExtents(),{ratioX:u,ratioY:d,offsetX:g,offsetY:p}=Iy(h,f,l),b=(i.width-r)/u,x=(i.height-r)/d,S=Math.max(Math.min(b,x)/2,0),m=gu(this.options.radius,S),_=Math.max(m*l,0),v=(m-_)/this._getVisibleDatasetWeightTotal();this.offsetX=g*m,this.offsetY=p*m,n.total=this.calculateTotal(),this.outerRadius=m-v*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-v*c,0),this.updateElements(o,0,o.length,t)}_circumference(t,s){const i=this.options,n=this._cachedMeta,o=this._getCircumference();return s&&i.animation.animateRotate||!this.chart.getDataVisibility(t)||n._parsed[t]===null||n.data[t].hidden?0:this.calculateCircumference(n._parsed[t]*o/mt)}updateElements(t,s,i,n){const o=n==="reset",r=this.chart,a=r.chartArea,c=r.options.animation,f=(a.left+a.right)/2,h=(a.top+a.bottom)/2,u=o&&c.animateScale,d=u?0:this.innerRadius,g=u?0:this.outerRadius,{sharedOptions:p,includeOptions:b}=this._getSharedOptions(s,n);let x=this._getRotation(),S;for(S=0;S<s;++S)x+=this._circumference(S,o);for(S=s;S<s+i;++S){const m=this._circumference(S,o),_=t[S],v={x:f+this.offsetX,y:h+this.offsetY,startAngle:x,endAngle:x+m,circumference:m,outerRadius:g,innerRadius:d};b&&(v.options=p||this.resolveDataElementOptions(S,_.active?"active":n)),x+=m,this.updateElement(_,S,v,n)}}calculateTotal(){const t=this._cachedMeta,s=t.data;let i=0,n;for(n=0;n<s.length;n++){const o=t._parsed[n];o!==null&&!isNaN(o)&&this.chart.getDataVisibility(n)&&!s[n].hidden&&(i+=Math.abs(o))}return i}calculateCircumference(t){const s=this._cachedMeta.total;return s>0&&!isNaN(t)?mt*(Math.abs(t)/s):0}getLabelAndValue(t){const s=this._cachedMeta,i=this.chart,n=i.data.labels||[],o=Fa(s._parsed[t],i.options.locale);return{label:n[t]||"",value:o}}getMaxBorderWidth(t){let s=0;const i=this.chart;let n,o,r,a,l;if(!t){for(n=0,o=i.data.datasets.length;n<o;++n)if(i.isDatasetVisible(n)){r=i.getDatasetMeta(n),t=r.data,a=r.controller;break}}if(!t)return 0;for(n=0,o=t.length;n<o;++n)l=a.resolveDataElementOptions(n),l.borderAlign!=="inner"&&(s=Math.max(s,l.borderWidth||0,l.hoverBorderWidth||0));return s}getMaxOffset(t){let s=0;for(let i=0,n=t.length;i<n;++i){const o=this.resolveDataElementOptions(i);s=Math.max(s,o.offset||0,o.hoverOffset||0)}return s}_getRingWeightOffset(t){let s=0;for(let i=0;i<t;++i)this.chart.isDatasetVisible(i)&&(s+=this._getRingWeight(i));return s}_getRingWeight(t){return Math.max(Q(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}U(Si,"id","doughnut"),U(Si,"defaults",{datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"}),U(Si,"descriptors",{_scriptable:t=>t!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")}),U(Si,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const s=t.data,{labels:{pointStyle:i,textAlign:n,color:o,useBorderRadius:r,borderRadius:a}}=t.legend.options;return s.labels.length&&s.datasets.length?s.labels.map((l,c)=>{const h=t.getDatasetMeta(0).controller.getStyle(c);return{text:l,fillStyle:h.backgroundColor,fontColor:o,hidden:!t.getDataVisibility(c),lineDash:h.borderDash,lineDashOffset:h.borderDashOffset,lineJoin:h.borderJoinStyle,lineWidth:h.borderWidth,strokeStyle:h.borderColor,textAlign:n,pointStyle:i,borderRadius:r&&(a||h.borderRadius),index:c}}):[]}},onClick(t,s,i){i.chart.toggleDataVisibility(s.index),i.chart.update()}}}});class Xn extends Ts{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const s=this._cachedMeta,{dataset:i,data:n=[],_dataset:o}=s,r=this.chart._animationsDisabled;let{start:a,count:l}=f_(s,n,r);this._drawStart=a,this._drawCount=l,h_(s)&&(a=0,l=n.length),i._chart=this.chart,i._datasetIndex=this.index,i._decimated=!!o._decimated,i.points=n;const c=this.resolveDatasetElementOptions(t);this.options.showLine||(c.borderWidth=0),c.segment=this.options.segment,this.updateElement(i,void 0,{animated:!r,options:c},t),this.updateElements(n,a,l,t)}updateElements(t,s,i,n){const o=n==="reset",{iScale:r,vScale:a,_stacked:l,_dataset:c}=this._cachedMeta,{sharedOptions:f,includeOptions:h}=this._getSharedOptions(s,n),u=r.axis,d=a.axis,{spanGaps:g,segment:p}=this.options,b=Ji(g)?g:Number.POSITIVE_INFINITY,x=this.chart._animationsDisabled||o||n==="none",S=s+i,m=t.length;let _=s>0&&this.getParsed(s-1);for(let v=0;v<m;++v){const M=t[v],k=x?M:{};if(v<s||v>=S){k.skip=!0;continue}const C=this.getParsed(v),T=ot(C[d]),A=k[u]=r.getPixelForValue(C[u],v),L=k[d]=o||T?a.getBasePixel():a.getPixelForValue(l?this.applyStack(a,C,l):C[d],v);k.skip=isNaN(A)||isNaN(L)||T,k.stop=v>0&&Math.abs(C[u]-_[u])>b,p&&(k.parsed=C,k.raw=c.data[v]),h&&(k.options=f||this.resolveDataElementOptions(v,M.active?"active":n)),x||this.updateElement(M,v,k,n),_=C}}getMaxOverflow(){const t=this._cachedMeta,s=t.dataset,i=s.options&&s.options.borderWidth||0,n=t.data||[];if(!n.length)return i;const o=n[0].size(this.resolveDataElementOptions(0)),r=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(i,o,r)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}U(Xn,"id","line"),U(Xn,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),U(Xn,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});function hs(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class Wa{constructor(t){U(this,"options");this.options=t||{}}static override(t){Object.assign(Wa.prototype,t)}init(){}formats(){return hs()}parse(){return hs()}format(){return hs()}add(){return hs()}diff(){return hs()}startOf(){return hs()}endOf(){return hs()}}var Ny={_date:Wa};function By(e,t,s,i){const{controller:n,data:o,_sorted:r}=e,a=n._cachedMeta.iScale,l=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null;if(a&&t===a.axis&&t!=="r"&&r&&o.length){const c=a._reversePixels?o_:ps;if(i){if(n._sharedOptions){const f=o[0],h=typeof f.getRange=="function"&&f.getRange(t);if(h){const u=c(o,t,s-h),d=c(o,t,s+h);return{lo:u.lo,hi:d.hi}}}}else{const f=c(o,t,s);if(l){const{vScale:h}=n._cachedMeta,{_parsed:u}=e,d=u.slice(0,f.lo+1).reverse().findIndex(p=>!ot(p[h.axis]));f.lo-=Math.max(0,d);const g=u.slice(f.hi).findIndex(p=>!ot(p[h.axis]));f.hi+=Math.max(0,g)}return f}}return{lo:0,hi:o.length-1}}function jo(e,t,s,i,n){const o=e.getSortedVisibleDatasetMetas(),r=s[t];for(let a=0,l=o.length;a<l;++a){const{index:c,data:f}=o[a],{lo:h,hi:u}=By(o[a],t,r,n);for(let d=h;d<=u;++d){const g=f[d];g.skip||i(g,c,d)}}}function Hy(e){const t=e.indexOf("x")!==-1,s=e.indexOf("y")!==-1;return function(i,n){const o=t?Math.abs(i.x-n.x):0,r=s?Math.abs(i.y-n.y):0;return Math.sqrt(Math.pow(o,2)+Math.pow(r,2))}}function pr(e,t,s,i,n){const o=[];return!n&&!e.isPointInArea(t)||jo(e,s,t,function(a,l,c){!n&&!Qi(a,e.chartArea,0)||a.inRange(t.x,t.y,i)&&o.push({element:a,datasetIndex:l,index:c})},!0),o}function Vy(e,t,s,i){let n=[];function o(r,a,l){const{startAngle:c,endAngle:f}=r.getProps(["startAngle","endAngle"],i),{angle:h}=_u(r,{x:t.x,y:t.y});Zi(h,c,f)&&n.push({element:r,datasetIndex:a,index:l})}return jo(e,s,t,o),n}function zy(e,t,s,i,n,o){let r=[];const a=Hy(s);let l=Number.POSITIVE_INFINITY;function c(f,h,u){const d=f.inRange(t.x,t.y,n);if(i&&!d)return;const g=f.getCenterPoint(n);if(!(!!o||e.isPointInArea(g))&&!d)return;const b=a(t,g);b<l?(r=[{element:f,datasetIndex:h,index:u}],l=b):b===l&&r.push({element:f,datasetIndex:h,index:u})}return jo(e,s,t,c),r}function gr(e,t,s,i,n,o){return!o&&!e.isPointInArea(t)?[]:s==="r"&&!i?Vy(e,t,s,n):zy(e,t,s,i,n,o)}function gc(e,t,s,i,n){const o=[],r=s==="x"?"inXRange":"inYRange";let a=!1;return jo(e,s,t,(l,c,f)=>{l[r]&&l[r](t[s],n)&&(o.push({element:l,datasetIndex:c,index:f}),a=a||l.inRange(t.x,t.y,n))}),i&&!a?[]:o}var Wy={modes:{index(e,t,s,i){const n=us(t,e),o=s.axis||"x",r=s.includeInvisible||!1,a=s.intersect?pr(e,n,o,i,r):gr(e,n,o,!1,i,r),l=[];return a.length?(e.getSortedVisibleDatasetMetas().forEach(c=>{const f=a[0].index,h=c.data[f];h&&!h.skip&&l.push({element:h,datasetIndex:c.index,index:f})}),l):[]},dataset(e,t,s,i){const n=us(t,e),o=s.axis||"xy",r=s.includeInvisible||!1;let a=s.intersect?pr(e,n,o,i,r):gr(e,n,o,!1,i,r);if(a.length>0){const l=a[0].datasetIndex,c=e.getDatasetMeta(l).data;a=[];for(let f=0;f<c.length;++f)a.push({element:c[f],datasetIndex:l,index:f})}return a},point(e,t,s,i){const n=us(t,e),o=s.axis||"xy",r=s.includeInvisible||!1;return pr(e,n,o,i,r)},nearest(e,t,s,i){const n=us(t,e),o=s.axis||"xy",r=s.includeInvisible||!1;return gr(e,n,o,s.intersect,i,r)},x(e,t,s,i){const n=us(t,e);return gc(e,n,"x",s.intersect,i)},y(e,t,s,i){const n=us(t,e);return gc(e,n,"y",s.intersect,i)}}};const Vu=["left","top","right","bottom"];function gi(e,t){return e.filter(s=>s.pos===t)}function mc(e,t){return e.filter(s=>Vu.indexOf(s.pos)===-1&&s.box.axis===t)}function mi(e,t){return e.sort((s,i)=>{const n=t?i:s,o=t?s:i;return n.weight===o.weight?n.index-o.index:n.weight-o.weight})}function jy(e){const t=[];let s,i,n,o,r,a;for(s=0,i=(e||[]).length;s<i;++s)n=e[s],{position:o,options:{stack:r,stackWeight:a=1}}=n,t.push({index:s,box:n,pos:o,horizontal:n.isHorizontal(),weight:n.weight,stack:r&&o+r,stackWeight:a});return t}function $y(e){const t={};for(const s of e){const{stack:i,pos:n,stackWeight:o}=s;if(!i||!Vu.includes(n))continue;const r=t[i]||(t[i]={count:0,placed:0,weight:0,size:0});r.count++,r.weight+=o}return t}function Uy(e,t){const s=$y(e),{vBoxMaxWidth:i,hBoxMaxHeight:n}=t;let o,r,a;for(o=0,r=e.length;o<r;++o){a=e[o];const{fullSize:l}=a.box,c=s[a.stack],f=c&&a.stackWeight/c.weight;a.horizontal?(a.width=f?f*i:l&&t.availableWidth,a.height=n):(a.width=i,a.height=f?f*n:l&&t.availableHeight)}return s}function Ky(e){const t=jy(e),s=mi(t.filter(c=>c.box.fullSize),!0),i=mi(gi(t,"left"),!0),n=mi(gi(t,"right")),o=mi(gi(t,"top"),!0),r=mi(gi(t,"bottom")),a=mc(t,"x"),l=mc(t,"y");return{fullSize:s,leftAndTop:i.concat(o),rightAndBottom:n.concat(l).concat(r).concat(a),chartArea:gi(t,"chartArea"),vertical:i.concat(n).concat(l),horizontal:o.concat(r).concat(a)}}function bc(e,t,s,i){return Math.max(e[s],t[s])+Math.max(e[i],t[i])}function zu(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function Yy(e,t,s,i){const{pos:n,box:o}=s,r=e.maxPadding;if(!st(n)){s.size&&(e[n]-=s.size);const h=i[s.stack]||{size:0,count:1};h.size=Math.max(h.size,s.horizontal?o.height:o.width),s.size=h.size/h.count,e[n]+=s.size}o.getPadding&&zu(r,o.getPadding());const a=Math.max(0,t.outerWidth-bc(r,e,"left","right")),l=Math.max(0,t.outerHeight-bc(r,e,"top","bottom")),c=a!==e.w,f=l!==e.h;return e.w=a,e.h=l,s.horizontal?{same:c,other:f}:{same:f,other:c}}function Xy(e){const t=e.maxPadding;function s(i){const n=Math.max(t[i]-e[i],0);return e[i]+=n,n}e.y+=s("top"),e.x+=s("left"),s("right"),s("bottom")}function qy(e,t){const s=t.maxPadding;function i(n){const o={left:0,top:0,right:0,bottom:0};return n.forEach(r=>{o[r]=Math.max(t[r],s[r])}),o}return i(e?["left","right"]:["top","bottom"])}function wi(e,t,s,i){const n=[];let o,r,a,l,c,f;for(o=0,r=e.length,c=0;o<r;++o){a=e[o],l=a.box,l.update(a.width||t.w,a.height||t.h,qy(a.horizontal,t));const{same:h,other:u}=Yy(t,s,a,i);c|=h&&n.length,f=f||u,l.fullSize||n.push(a)}return c&&wi(n,t,s,i)||f}function Fn(e,t,s,i,n){e.top=s,e.left=t,e.right=t+i,e.bottom=s+n,e.width=i,e.height=n}function _c(e,t,s,i){const n=s.padding;let{x:o,y:r}=t;for(const a of e){const l=a.box,c=i[a.stack]||{placed:0,weight:1},f=a.stackWeight/c.weight||1;if(a.horizontal){const h=t.w*f,u=c.size||l.height;Gi(c.start)&&(r=c.start),l.fullSize?Fn(l,n.left,r,s.outerWidth-n.right-n.left,u):Fn(l,t.left+c.placed,r,h,u),c.start=r,c.placed+=h,r=l.bottom}else{const h=t.h*f,u=c.size||l.width;Gi(c.start)&&(o=c.start),l.fullSize?Fn(l,o,n.top,u,s.outerHeight-n.bottom-n.top):Fn(l,o,t.top+c.placed,u,h),c.start=o,c.placed+=h,o=l.right}}t.x=o,t.y=r}var se={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(s){t.draw(s)}}]},e.boxes.push(t)},removeBox(e,t){const s=e.boxes?e.boxes.indexOf(t):-1;s!==-1&&e.boxes.splice(s,1)},configure(e,t,s){t.fullSize=s.fullSize,t.position=s.position,t.weight=s.weight},update(e,t,s,i){if(!e)return;const n=re(e.options.layout.padding),o=Math.max(t-n.width,0),r=Math.max(s-n.height,0),a=Ky(e.boxes),l=a.vertical,c=a.horizontal;lt(e.boxes,p=>{typeof p.beforeLayout=="function"&&p.beforeLayout()});const f=l.reduce((p,b)=>b.box.options&&b.box.options.display===!1?p:p+1,0)||1,h=Object.freeze({outerWidth:t,outerHeight:s,padding:n,availableWidth:o,availableHeight:r,vBoxMaxWidth:o/2/f,hBoxMaxHeight:r/2}),u=Object.assign({},n);zu(u,re(i));const d=Object.assign({maxPadding:u,w:o,h:r,x:n.left,y:n.top},n),g=Uy(l.concat(c),h);wi(a.fullSize,d,h,g),wi(l,d,h,g),wi(c,d,h,g)&&wi(l,d,h,g),Xy(d),_c(a.leftAndTop,d,h,g),d.x+=d.w,d.y+=d.h,_c(a.rightAndBottom,d,h,g),e.chartArea={left:d.left,top:d.top,right:d.left+d.w,bottom:d.top+d.h,height:d.h,width:d.w},lt(a.chartArea,p=>{const b=p.box;Object.assign(b,e.chartArea),b.update(d.w,d.h,{left:0,top:0,right:0,bottom:0})})}};class Wu{acquireContext(t,s){}releaseContext(t){return!1}addEventListener(t,s,i){}removeEventListener(t,s,i){}getDevicePixelRatio(){return 1}getMaximumSize(t,s,i,n){return s=Math.max(0,s||t.width),i=i||t.height,{width:s,height:Math.max(0,n?Math.floor(s/n):i)}}isAttached(t){return!0}updateConfig(t){}}class Gy extends Wu{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const qn="$chartjs",Jy={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},yc=e=>e===null||e==="";function Zy(e,t){const s=e.style,i=e.getAttribute("height"),n=e.getAttribute("width");if(e[qn]={initial:{height:i,width:n,style:{display:s.display,height:s.height,width:s.width}}},s.display=s.display||"block",s.boxSizing=s.boxSizing||"border-box",yc(n)){const o=sc(e,"width");o!==void 0&&(e.width=o)}if(yc(i))if(e.style.height==="")e.height=e.width/(t||2);else{const o=sc(e,"height");o!==void 0&&(e.height=o)}return e}const ju=ty?{passive:!0}:!1;function Qy(e,t,s){e&&e.addEventListener(t,s,ju)}function tx(e,t,s){e&&e.canvas&&e.canvas.removeEventListener(t,s,ju)}function ex(e,t){const s=Jy[e.type]||e.type,{x:i,y:n}=us(e,t);return{type:s,chart:t,native:e,x:i!==void 0?i:null,y:n!==void 0?n:null}}function yo(e,t){for(const s of e)if(s===t||s.contains(t))return!0}function sx(e,t,s){const i=e.canvas,n=new MutationObserver(o=>{let r=!1;for(const a of o)r=r||yo(a.addedNodes,i),r=r&&!yo(a.removedNodes,i);r&&s()});return n.observe(document,{childList:!0,subtree:!0}),n}function ix(e,t,s){const i=e.canvas,n=new MutationObserver(o=>{let r=!1;for(const a of o)r=r||yo(a.removedNodes,i),r=r&&!yo(a.addedNodes,i);r&&s()});return n.observe(document,{childList:!0,subtree:!0}),n}const en=new Map;let xc=0;function $u(){const e=window.devicePixelRatio;e!==xc&&(xc=e,en.forEach((t,s)=>{s.currentDevicePixelRatio!==e&&t()}))}function nx(e,t){en.size||window.addEventListener("resize",$u),en.set(e,t)}function ox(e){en.delete(e),en.size||window.removeEventListener("resize",$u)}function rx(e,t,s){const i=e.canvas,n=i&&za(i);if(!n)return;const o=Su((a,l)=>{const c=n.clientWidth;s(a,l),c<n.clientWidth&&s()},window),r=new ResizeObserver(a=>{const l=a[0],c=l.contentRect.width,f=l.contentRect.height;c===0&&f===0||o(c,f)});return r.observe(n),nx(e,o),r}function mr(e,t,s){s&&s.disconnect(),t==="resize"&&ox(e)}function ax(e,t,s){const i=e.canvas,n=Su(o=>{e.ctx!==null&&s(ex(o,e))},e);return Qy(i,t,n),n}class lx extends Wu{acquireContext(t,s){const i=t&&t.getContext&&t.getContext("2d");return i&&i.canvas===t?(Zy(t,s),i):null}releaseContext(t){const s=t.canvas;if(!s[qn])return!1;const i=s[qn].initial;["height","width"].forEach(o=>{const r=i[o];ot(r)?s.removeAttribute(o):s.setAttribute(o,r)});const n=i.style||{};return Object.keys(n).forEach(o=>{s.style[o]=n[o]}),s.width=s.width,delete s[qn],!0}addEventListener(t,s,i){this.removeEventListener(t,s);const n=t.$proxies||(t.$proxies={}),r={attach:sx,detach:ix,resize:rx}[s]||ax;n[s]=r(t,s,i)}removeEventListener(t,s){const i=t.$proxies||(t.$proxies={}),n=i[s];if(!n)return;({attach:mr,detach:mr,resize:mr}[s]||tx)(t,s,n),i[s]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,s,i,n){return Q_(t,s,i,n)}isAttached(t){const s=t&&za(t);return!!(s&&s.isConnected)}}function cx(e){return!Va()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?Gy:lx}var Wn;let We=(Wn=class{constructor(){U(this,"x");U(this,"y");U(this,"active",!1);U(this,"options");U(this,"$animations")}tooltipPosition(t){const{x:s,y:i}=this.getProps(["x","y"],t);return{x:s,y:i}}hasValue(){return Ji(this.x)&&Ji(this.y)}getProps(t,s){const i=this.$animations;if(!s||!i)return this;const n={};return t.forEach(o=>{n[o]=i[o]&&i[o].active()?i[o]._to:this[o]}),n}},U(Wn,"defaults",{}),U(Wn,"defaultRoutes"),Wn);function fx(e,t){const s=e.options.ticks,i=hx(e),n=Math.min(s.maxTicksLimit||i,i),o=s.major.enabled?dx(t):[],r=o.length,a=o[0],l=o[r-1],c=[];if(r>n)return px(t,c,o,r/n),c;const f=ux(o,t,n);if(r>0){let h,u;const d=r>1?Math.round((l-a)/(r-1)):null;for(In(t,c,f,ot(d)?0:a-d,a),h=0,u=r-1;h<u;h++)In(t,c,f,o[h],o[h+1]);return In(t,c,f,l,ot(d)?t.length:l+d),c}return In(t,c,f),c}function hx(e){const t=e.options.offset,s=e._tickSize(),i=e._length/s+(t?0:1),n=e._maxLength/s;return Math.floor(Math.min(i,n))}function ux(e,t,s){const i=gx(e),n=t.length/s;if(!i)return Math.max(n,1);const o=Zb(i);for(let r=0,a=o.length-1;r<a;r++){const l=o[r];if(l>n)return l}return Math.max(n,1)}function dx(e){const t=[];let s,i;for(s=0,i=e.length;s<i;s++)e[s].major&&t.push(s);return t}function px(e,t,s,i){let n=0,o=s[0],r;for(i=Math.ceil(i),r=0;r<e.length;r++)r===o&&(t.push(e[r]),n++,o=s[n*i])}function In(e,t,s,i,n){const o=Q(i,0),r=Math.min(Q(n,e.length),e.length);let a=0,l,c,f;for(s=Math.ceil(s),n&&(l=n-i,s=l/Math.floor(l/s)),f=o;f<0;)a++,f=Math.round(o+a*s);for(c=Math.max(o,0);c<r;c++)c===f&&(t.push(e[c]),a++,f=Math.round(o+a*s))}function gx(e){const t=e.length;let s,i;if(t<2)return!1;for(i=e[0],s=1;s<t;++s)if(e[s]-e[s-1]!==i)return!1;return i}const mx=e=>e==="left"?"right":e==="right"?"left":e,vc=(e,t,s)=>t==="top"||t==="left"?e[t]+s:e[t]-s,Sc=(e,t)=>Math.min(t||e,e);function wc(e,t){const s=[],i=e.length/t,n=e.length;let o=0;for(;o<n;o+=i)s.push(e[Math.floor(o)]);return s}function bx(e,t,s){const i=e.ticks.length,n=Math.min(t,i-1),o=e._startPixel,r=e._endPixel,a=1e-6;let l=e.getPixelForTick(n),c;if(!(s&&(i===1?c=Math.max(l-o,r-l):t===0?c=(e.getPixelForTick(1)-l)/2:c=(l-e.getPixelForTick(n-1))/2,l+=n<t?c:-c,l<o-a||l>r+a)))return l}function _x(e,t){lt(e,s=>{const i=s.gc,n=i.length/2;let o;if(n>t){for(o=0;o<n;++o)delete s.data[i[o]];i.splice(0,n)}})}function bi(e){return e.drawTicks?e.tickLength:0}function Mc(e,t){if(!e.display)return 0;const s=It(e.font,t),i=re(e.padding);return(xt(e.text)?e.text.length:1)*s.lineHeight+i.height}function yx(e,t){return Rs(e,{scale:t,type:"scale"})}function xx(e,t,s){return Rs(e,{tick:s,index:t,type:"tick"})}function vx(e,t,s){let i=Ra(e);return(s&&t!=="right"||!s&&t==="right")&&(i=mx(i)),i}function Sx(e,t,s,i){const{top:n,left:o,bottom:r,right:a,chart:l}=e,{chartArea:c,scales:f}=l;let h=0,u,d,g;const p=r-n,b=a-o;if(e.isHorizontal()){if(d=Pt(i,o,a),st(s)){const x=Object.keys(s)[0],S=s[x];g=f[x].getPixelForValue(S)+p-t}else s==="center"?g=(c.bottom+c.top)/2+p-t:g=vc(e,s,t);u=a-o}else{if(st(s)){const x=Object.keys(s)[0],S=s[x];d=f[x].getPixelForValue(S)-b+t}else s==="center"?d=(c.left+c.right)/2-b+t:d=vc(e,s,t);g=Pt(i,r,n),h=s==="left"?-St:St}return{titleX:d,titleY:g,maxWidth:u,rotation:h}}class ci extends We{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,s){return t}getUserBounds(){let{_userMin:t,_userMax:s,_suggestedMin:i,_suggestedMax:n}=this;return t=de(t,Number.POSITIVE_INFINITY),s=de(s,Number.NEGATIVE_INFINITY),i=de(i,Number.POSITIVE_INFINITY),n=de(n,Number.NEGATIVE_INFINITY),{min:de(t,i),max:de(s,n),minDefined:Nt(t),maxDefined:Nt(s)}}getMinMax(t){let{min:s,max:i,minDefined:n,maxDefined:o}=this.getUserBounds(),r;if(n&&o)return{min:s,max:i};const a=this.getMatchingVisibleMetas();for(let l=0,c=a.length;l<c;++l)r=a[l].controller.getMinMax(this,t),n||(s=Math.min(s,r.min)),o||(i=Math.max(i,r.max));return s=o&&s>i?i:s,i=n&&s>i?s:i,{min:de(s,de(i,s)),max:de(i,de(s,i))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){pt(this.options.beforeUpdate,[this])}update(t,s,i){const{beginAtZero:n,grace:o,ticks:r}=this.options,a=r.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=s,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=O_(this,o,n),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=a<this.ticks.length;this._convertTicksToLabels(l?wc(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),r.display&&(r.autoSkip||r.source==="auto")&&(this.ticks=fx(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t=this.options.reverse,s,i;this.isHorizontal()?(s=this.left,i=this.right):(s=this.top,i=this.bottom,t=!t),this._startPixel=s,this._endPixel=i,this._reversePixels=t,this._length=i-s,this._alignToPixels=this.options.alignToPixels}afterUpdate(){pt(this.options.afterUpdate,[this])}beforeSetDimensions(){pt(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){pt(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),pt(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){pt(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const s=this.options.ticks;let i,n,o;for(i=0,n=t.length;i<n;i++)o=t[i],o.label=pt(s.callback,[o.value,i,t],this)}afterTickToLabelConversion(){pt(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){pt(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,s=t.ticks,i=Sc(this.ticks.length,t.ticks.maxTicksLimit),n=s.minRotation||0,o=s.maxRotation;let r=n,a,l,c;if(!this._isVisible()||!s.display||n>=o||i<=1||!this.isHorizontal()){this.labelRotation=n;return}const f=this._getLabelSizes(),h=f.widest.width,u=f.highest.height,d=Ft(this.chart.width-h,0,this.maxWidth);a=t.offset?this.maxWidth/i:d/(i-1),h+6>a&&(a=d/(i-(t.offset?.5:1)),l=this.maxHeight-bi(t.grid)-s.padding-Mc(t.title,this.chart.options.font),c=Math.sqrt(h*h+u*u),r=s_(Math.min(Math.asin(Ft((f.highest.height+6)/a,-1,1)),Math.asin(Ft(l/c,-1,1))-Math.asin(Ft(u/c,-1,1)))),r=Math.max(n,Math.min(o,r))),this.labelRotation=r}afterCalculateLabelRotation(){pt(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){pt(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:s,options:{ticks:i,title:n,grid:o}}=this,r=this._isVisible(),a=this.isHorizontal();if(r){const l=Mc(n,s.options.font);if(a?(t.width=this.maxWidth,t.height=bi(o)+l):(t.height=this.maxHeight,t.width=bi(o)+l),i.display&&this.ticks.length){const{first:c,last:f,widest:h,highest:u}=this._getLabelSizes(),d=i.padding*2,g=Re(this.labelRotation),p=Math.cos(g),b=Math.sin(g);if(a){const x=i.mirror?0:b*h.width+p*u.height;t.height=Math.min(this.maxHeight,t.height+x+d)}else{const x=i.mirror?0:p*h.width+b*u.height;t.width=Math.min(this.maxWidth,t.width+x+d)}this._calculatePadding(c,f,b,p)}}this._handleMargins(),a?(this.width=this._length=s.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=s.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,s,i,n){const{ticks:{align:o,padding:r},position:a}=this.options,l=this.labelRotation!==0,c=a!=="top"&&this.axis==="x";if(this.isHorizontal()){const f=this.getPixelForTick(0)-this.left,h=this.right-this.getPixelForTick(this.ticks.length-1);let u=0,d=0;l?c?(u=n*t.width,d=i*s.height):(u=i*t.height,d=n*s.width):o==="start"?d=s.width:o==="end"?u=t.width:o!=="inner"&&(u=t.width/2,d=s.width/2),this.paddingLeft=Math.max((u-f+r)*this.width/(this.width-f),0),this.paddingRight=Math.max((d-h+r)*this.width/(this.width-h),0)}else{let f=s.height/2,h=t.height/2;o==="start"?(f=0,h=t.height):o==="end"&&(f=s.height,h=0),this.paddingTop=f+r,this.paddingBottom=h+r}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){pt(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:s}=this.options;return s==="top"||s==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let s,i;for(s=0,i=t.length;s<i;s++)ot(t[s].label)&&(t.splice(s,1),i--,s--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const s=this.options.ticks.sampleSize;let i=this.ticks;s<i.length&&(i=wc(i,s)),this._labelSizes=t=this._computeLabelSizes(i,i.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,s,i){const{ctx:n,_longestTextCache:o}=this,r=[],a=[],l=Math.floor(s/Sc(s,i));let c=0,f=0,h,u,d,g,p,b,x,S,m,_,v;for(h=0;h<s;h+=l){if(g=t[h].label,p=this._resolveTickFontOptions(h),n.font=b=p.string,x=o[b]=o[b]||{data:{},gc:[]},S=p.lineHeight,m=_=0,!ot(g)&&!xt(g))m=Jl(n,x.data,x.gc,m,g),_=S;else if(xt(g))for(u=0,d=g.length;u<d;++u)v=g[u],!ot(v)&&!xt(v)&&(m=Jl(n,x.data,x.gc,m,v),_+=S);r.push(m),a.push(_),c=Math.max(m,c),f=Math.max(_,f)}_x(o,s);const M=r.indexOf(c),k=a.indexOf(f),C=T=>({width:r[T]||0,height:a[T]||0});return{first:C(0),last:C(s-1),widest:C(M),highest:C(k),widths:r,heights:a}}getLabelForValue(t){return t}getPixelForValue(t,s){return NaN}getValueForPixel(t){}getPixelForTick(t){const s=this.ticks;return t<0||t>s.length-1?null:this.getPixelForValue(s[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const s=this._startPixel+t*this._length;return n_(this._alignToPixels?fs(this.chart,s,0):s)}getDecimalForPixel(t){const s=(t-this._startPixel)/this._length;return this._reversePixels?1-s:s}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:s}=this;return t<0&&s<0?s:t>0&&s>0?t:0}getContext(t){const s=this.ticks||[];if(t>=0&&t<s.length){const i=s[t];return i.$context||(i.$context=xx(this.getContext(),t,i))}return this.$context||(this.$context=yx(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,s=Re(this.labelRotation),i=Math.abs(Math.cos(s)),n=Math.abs(Math.sin(s)),o=this._getLabelSizes(),r=t.autoSkipPadding||0,a=o?o.widest.width+r:0,l=o?o.highest.height+r:0;return this.isHorizontal()?l*i>a*n?a/i:l/n:l*n<a*i?l/i:a/n}_isVisible(){const t=this.options.display;return t!=="auto"?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const s=this.axis,i=this.chart,n=this.options,{grid:o,position:r,border:a}=n,l=o.offset,c=this.isHorizontal(),h=this.ticks.length+(l?1:0),u=bi(o),d=[],g=a.setContext(this.getContext()),p=g.display?g.width:0,b=p/2,x=function(I){return fs(i,I,p)};let S,m,_,v,M,k,C,T,A,L,P,W;if(r==="top")S=x(this.bottom),k=this.bottom-u,T=S-b,L=x(t.top)+b,W=t.bottom;else if(r==="bottom")S=x(this.top),L=t.top,W=x(t.bottom)-b,k=S+b,T=this.top+u;else if(r==="left")S=x(this.right),M=this.right-u,C=S-b,A=x(t.left)+b,P=t.right;else if(r==="right")S=x(this.left),A=t.left,P=x(t.right)-b,M=S+b,C=this.left+u;else if(s==="x"){if(r==="center")S=x((t.top+t.bottom)/2+.5);else if(st(r)){const I=Object.keys(r)[0],$=r[I];S=x(this.chart.scales[I].getPixelForValue($))}L=t.top,W=t.bottom,k=S+b,T=k+u}else if(s==="y"){if(r==="center")S=x((t.left+t.right)/2);else if(st(r)){const I=Object.keys(r)[0],$=r[I];S=x(this.chart.scales[I].getPixelForValue($))}M=S-b,C=M-u,A=t.left,P=t.right}const G=Q(n.ticks.maxTicksLimit,h),Y=Math.max(1,Math.ceil(h/G));for(m=0;m<h;m+=Y){const I=this.getContext(m),$=o.setContext(I),V=a.setContext(I),Z=$.lineWidth,ae=$.color,Qt=V.dash||[],Tt=V.dashOffset,je=$.tickWidth,Se=$.tickColor,rs=$.tickBorderDash||[],Xt=$.tickBorderDashOffset;_=bx(this,m,l),_!==void 0&&(v=fs(i,_,Z),c?M=C=A=P=v:k=T=L=W=v,d.push({tx1:M,ty1:k,tx2:C,ty2:T,x1:A,y1:L,x2:P,y2:W,width:Z,color:ae,borderDash:Qt,borderDashOffset:Tt,tickWidth:je,tickColor:Se,tickBorderDash:rs,tickBorderDashOffset:Xt}))}return this._ticksLength=h,this._borderValue=S,d}_computeLabelItems(t){const s=this.axis,i=this.options,{position:n,ticks:o}=i,r=this.isHorizontal(),a=this.ticks,{align:l,crossAlign:c,padding:f,mirror:h}=o,u=bi(i.grid),d=u+f,g=h?-f:d,p=-Re(this.labelRotation),b=[];let x,S,m,_,v,M,k,C,T,A,L,P,W="middle";if(n==="top")M=this.bottom-g,k=this._getXAxisLabelAlignment();else if(n==="bottom")M=this.top+g,k=this._getXAxisLabelAlignment();else if(n==="left"){const Y=this._getYAxisLabelAlignment(u);k=Y.textAlign,v=Y.x}else if(n==="right"){const Y=this._getYAxisLabelAlignment(u);k=Y.textAlign,v=Y.x}else if(s==="x"){if(n==="center")M=(t.top+t.bottom)/2+d;else if(st(n)){const Y=Object.keys(n)[0],I=n[Y];M=this.chart.scales[Y].getPixelForValue(I)+d}k=this._getXAxisLabelAlignment()}else if(s==="y"){if(n==="center")v=(t.left+t.right)/2-d;else if(st(n)){const Y=Object.keys(n)[0],I=n[Y];v=this.chart.scales[Y].getPixelForValue(I)}k=this._getYAxisLabelAlignment(u).textAlign}s==="y"&&(l==="start"?W="top":l==="end"&&(W="bottom"));const G=this._getLabelSizes();for(x=0,S=a.length;x<S;++x){m=a[x],_=m.label;const Y=o.setContext(this.getContext(x));C=this.getPixelForTick(x)+o.labelOffset,T=this._resolveTickFontOptions(x),A=T.lineHeight,L=xt(_)?_.length:1;const I=L/2,$=Y.color,V=Y.textStrokeColor,Z=Y.textStrokeWidth;let ae=k;r?(v=C,k==="inner"&&(x===S-1?ae=this.options.reverse?"left":"right":x===0?ae=this.options.reverse?"right":"left":ae="center"),n==="top"?c==="near"||p!==0?P=-L*A+A/2:c==="center"?P=-G.highest.height/2-I*A+A:P=-G.highest.height+A/2:c==="near"||p!==0?P=A/2:c==="center"?P=G.highest.height/2-I*A:P=G.highest.height-L*A,h&&(P*=-1),p!==0&&!Y.showLabelBackdrop&&(v+=A/2*Math.sin(p))):(M=C,P=(1-L)*A/2);let Qt;if(Y.showLabelBackdrop){const Tt=re(Y.backdropPadding),je=G.heights[x],Se=G.widths[x];let rs=P-Tt.top,Xt=0-Tt.left;switch(W){case"middle":rs-=je/2;break;case"bottom":rs-=je;break}switch(k){case"center":Xt-=Se/2;break;case"right":Xt-=Se;break;case"inner":x===S-1?Xt-=Se:x>0&&(Xt-=Se/2);break}Qt={left:Xt,top:rs,width:Se+Tt.width,height:je+Tt.height,color:Y.backdropColor}}b.push({label:_,font:T,textOffset:P,options:{rotation:p,color:$,strokeColor:V,strokeWidth:Z,textAlign:ae,textBaseline:W,translation:[v,M],backdrop:Qt}})}return b}_getXAxisLabelAlignment(){const{position:t,ticks:s}=this.options;if(-Re(this.labelRotation))return t==="top"?"left":"right";let n="center";return s.align==="start"?n="left":s.align==="end"?n="right":s.align==="inner"&&(n="inner"),n}_getYAxisLabelAlignment(t){const{position:s,ticks:{crossAlign:i,mirror:n,padding:o}}=this.options,r=this._getLabelSizes(),a=t+o,l=r.widest.width;let c,f;return s==="left"?n?(f=this.right+o,i==="near"?c="left":i==="center"?(c="center",f+=l/2):(c="right",f+=l)):(f=this.right-a,i==="near"?c="right":i==="center"?(c="center",f-=l/2):(c="left",f=this.left)):s==="right"?n?(f=this.left+o,i==="near"?c="right":i==="center"?(c="center",f-=l/2):(c="left",f-=l)):(f=this.left+a,i==="near"?c="left":i==="center"?(c="center",f+=l/2):(c="right",f=this.right)):c="right",{textAlign:c,x:f}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,s=this.options.position;if(s==="left"||s==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(s==="top"||s==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:s},left:i,top:n,width:o,height:r}=this;s&&(t.save(),t.fillStyle=s,t.fillRect(i,n,o,r),t.restore())}getLineWidthForValue(t){const s=this.options.grid;if(!this._isVisible()||!s.display)return 0;const n=this.ticks.findIndex(o=>o.value===t);return n>=0?s.setContext(this.getContext(n)).lineWidth:0}drawGrid(t){const s=this.options.grid,i=this.ctx,n=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let o,r;const a=(l,c,f)=>{!f.width||!f.color||(i.save(),i.lineWidth=f.width,i.strokeStyle=f.color,i.setLineDash(f.borderDash||[]),i.lineDashOffset=f.borderDashOffset,i.beginPath(),i.moveTo(l.x,l.y),i.lineTo(c.x,c.y),i.stroke(),i.restore())};if(s.display)for(o=0,r=n.length;o<r;++o){const l=n[o];s.drawOnChartArea&&a({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),s.drawTicks&&a({x:l.tx1,y:l.ty1},{x:l.tx2,y:l.ty2},{color:l.tickColor,width:l.tickWidth,borderDash:l.tickBorderDash,borderDashOffset:l.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:s,options:{border:i,grid:n}}=this,o=i.setContext(this.getContext()),r=i.display?o.width:0;if(!r)return;const a=n.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let c,f,h,u;this.isHorizontal()?(c=fs(t,this.left,r)-r/2,f=fs(t,this.right,a)+a/2,h=u=l):(h=fs(t,this.top,r)-r/2,u=fs(t,this.bottom,a)+a/2,c=f=l),s.save(),s.lineWidth=o.width,s.strokeStyle=o.color,s.beginPath(),s.moveTo(c,h),s.lineTo(f,u),s.stroke(),s.restore()}drawLabels(t){if(!this.options.ticks.display)return;const i=this.ctx,n=this._computeLabelArea();n&&Vo(i,n);const o=this.getLabelItems(t);for(const r of o){const a=r.options,l=r.font,c=r.label,f=r.textOffset;tn(i,c,0,f,l,a)}n&&zo(i)}drawTitle(){const{ctx:t,options:{position:s,title:i,reverse:n}}=this;if(!i.display)return;const o=It(i.font),r=re(i.padding),a=i.align;let l=o.lineHeight/2;s==="bottom"||s==="center"||st(s)?(l+=r.bottom,xt(i.text)&&(l+=o.lineHeight*(i.text.length-1))):l+=r.top;const{titleX:c,titleY:f,maxWidth:h,rotation:u}=Sx(this,l,s,a);tn(t,i.text,0,0,o,{color:i.color,maxWidth:h,rotation:u,textAlign:vx(a,s,n),textBaseline:"middle",translation:[c,f]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,s=t.ticks&&t.ticks.z||0,i=Q(t.grid&&t.grid.z,-1),n=Q(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==ci.prototype.draw?[{z:s,draw:o=>{this.draw(o)}}]:[{z:i,draw:o=>{this.drawBackground(),this.drawGrid(o),this.drawTitle()}},{z:n,draw:()=>{this.drawBorder()}},{z:s,draw:o=>{this.drawLabels(o)}}]}getMatchingVisibleMetas(t){const s=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",n=[];let o,r;for(o=0,r=s.length;o<r;++o){const a=s[o];a[i]===this.id&&(!t||a.type===t)&&n.push(a)}return n}_resolveTickFontOptions(t){const s=this.options.ticks.setContext(this.getContext(t));return It(s.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class Nn{constructor(t,s,i){this.type=t,this.scope=s,this.override=i,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const s=Object.getPrototypeOf(t);let i;Tx(s)&&(i=this.register(s));const n=this.items,o=t.id,r=this.scope+"."+o;if(!o)throw new Error("class does not have id: "+t);return o in n||(n[o]=t,wx(t,r,i),this.override&&_t.override(t.id,t.overrides)),r}get(t){return this.items[t]}unregister(t){const s=this.items,i=t.id,n=this.scope;i in s&&delete s[i],n&&i in _t[n]&&(delete _t[n][i],this.override&&delete Ps[i])}}function wx(e,t,s){const i=qi(Object.create(null),[s?_t.get(s):{},_t.get(t),e.defaults]);_t.set(t,i),e.defaultRoutes&&Mx(t,e.defaultRoutes),e.descriptors&&_t.describe(t,e.descriptors)}function Mx(e,t){Object.keys(t).forEach(s=>{const i=s.split("."),n=i.pop(),o=[e].concat(i).join("."),r=t[s].split("."),a=r.pop(),l=r.join(".");_t.route(o,n,l,a)})}function Tx(e){return"id"in e&&"defaults"in e}class kx{constructor(){this.controllers=new Nn(Ts,"datasets",!0),this.elements=new Nn(We,"elements"),this.plugins=new Nn(Object,"plugins"),this.scales=new Nn(ci,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,s,i){[...s].forEach(n=>{const o=i||this._getRegistryForType(n);i||o.isForType(n)||o===this.plugins&&n.id?this._exec(t,o,n):lt(n,r=>{const a=i||this._getRegistryForType(r);this._exec(t,a,r)})})}_exec(t,s,i){const n=Oa(t);pt(i["before"+n],[],i),s[t](i),pt(i["after"+n],[],i)}_getRegistryForType(t){for(let s=0;s<this._typedRegistries.length;s++){const i=this._typedRegistries[s];if(i.isForType(t))return i}return this.plugins}_get(t,s,i){const n=s.get(t);if(n===void 0)throw new Error('"'+t+'" is not a registered '+i+".");return n}}var be=new kx;class Cx{constructor(){this._init=void 0}notify(t,s,i,n){if(s==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install")),this._init===void 0)return;const o=n?this._descriptors(t).filter(n):this._descriptors(t),r=this._notify(o,t,s,i);return s==="afterDestroy"&&(this._notify(o,t,"stop"),this._notify(this._init,t,"uninstall"),this._init=void 0),r}_notify(t,s,i,n){n=n||{};for(const o of t){const r=o.plugin,a=r[i],l=[s,n,o.options];if(pt(a,l,r)===!1&&n.cancelable)return!1}return!0}invalidate(){ot(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const s=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),s}_createDescriptors(t,s){const i=t&&t.config,n=Q(i.options&&i.options.plugins,{}),o=Ax(i);return n===!1&&!s?[]:Ex(t,o,n,s)}_notifyStateChanges(t){const s=this._oldCache||[],i=this._cache,n=(o,r)=>o.filter(a=>!r.some(l=>a.plugin.id===l.plugin.id));this._notify(n(s,i),t,"stop"),this._notify(n(i,s),t,"start")}}function Ax(e){const t={},s=[],i=Object.keys(be.plugins.items);for(let o=0;o<i.length;o++)s.push(be.getPlugin(i[o]));const n=e.plugins||[];for(let o=0;o<n.length;o++){const r=n[o];s.indexOf(r)===-1&&(s.push(r),t[r.id]=!0)}return{plugins:s,localIds:t}}function Px(e,t){return!t&&e===!1?null:e===!0?{}:e}function Ex(e,{plugins:t,localIds:s},i,n){const o=[],r=e.getContext();for(const a of t){const l=a.id,c=Px(i[l],n);c!==null&&o.push({plugin:a,options:Ox(e.config,{plugin:a,local:s[l]},c,r)})}return o}function Ox(e,{plugin:t,local:s},i,n){const o=e.pluginScopeKeys(t),r=e.getOptionScopes(i,o);return s&&t.defaults&&r.push(t.defaults),e.createResolver(r,n,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Yr(e,t){const s=_t.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||s.indexAxis||"x"}function Dx(e,t){let s=e;return e==="_index_"?s=t:e==="_value_"&&(s=t==="x"?"y":"x"),s}function Rx(e,t){return e===t?"_index_":"_value_"}function Tc(e){if(e==="x"||e==="y"||e==="r")return e}function Lx(e){if(e==="top"||e==="bottom")return"x";if(e==="left"||e==="right")return"y"}function Xr(e,...t){if(Tc(e))return e;for(const s of t){const i=s.axis||Lx(s.position)||e.length>1&&Tc(e[0].toLowerCase());if(i)return i}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function kc(e,t,s){if(s[t+"AxisID"]===e)return{axis:t}}function Fx(e,t){if(t.data&&t.data.datasets){const s=t.data.datasets.filter(i=>i.xAxisID===e||i.yAxisID===e);if(s.length)return kc(e,"x",s[0])||kc(e,"y",s[0])}return{}}function Ix(e,t){const s=Ps[e.type]||{scales:{}},i=t.scales||{},n=Yr(e.type,t),o=Object.create(null);return Object.keys(i).forEach(r=>{const a=i[r];if(!st(a))return console.error(`Invalid scale configuration for scale: ${r}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${r}`);const l=Xr(r,a,Fx(r,e),_t.scales[a.type]),c=Rx(l,n),f=s.scales||{};o[r]=Di(Object.create(null),[{axis:l},a,f[l],f[c]])}),e.data.datasets.forEach(r=>{const a=r.type||e.type,l=r.indexAxis||Yr(a,t),f=(Ps[a]||{}).scales||{};Object.keys(f).forEach(h=>{const u=Dx(h,l),d=r[u+"AxisID"]||u;o[d]=o[d]||Object.create(null),Di(o[d],[{axis:u},i[d],f[h]])})}),Object.keys(o).forEach(r=>{const a=o[r];Di(a,[_t.scales[a.type],_t.scale])}),o}function Uu(e){const t=e.options||(e.options={});t.plugins=Q(t.plugins,{}),t.scales=Ix(e,t)}function Ku(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function Nx(e){return e=e||{},e.data=Ku(e.data),Uu(e),e}const Cc=new Map,Yu=new Set;function Bn(e,t){let s=Cc.get(e);return s||(s=t(),Cc.set(e,s),Yu.add(s)),s}const _i=(e,t,s)=>{const i=As(t,s);i!==void 0&&e.add(i)};class Bx{constructor(t){this._config=Nx(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=Ku(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),Uu(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Bn(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,s){return Bn(`${t}.transition.${s}`,()=>[[`datasets.${t}.transitions.${s}`,`transitions.${s}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,s){return Bn(`${t}-${s}`,()=>[[`datasets.${t}.elements.${s}`,`datasets.${t}`,`elements.${s}`,""]])}pluginScopeKeys(t){const s=t.id,i=this.type;return Bn(`${i}-plugin-${s}`,()=>[[`plugins.${s}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,s){const i=this._scopeCache;let n=i.get(t);return(!n||s)&&(n=new Map,i.set(t,n)),n}getOptionScopes(t,s,i){const{options:n,type:o}=this,r=this._cachedScopes(t,i),a=r.get(s);if(a)return a;const l=new Set;s.forEach(f=>{t&&(l.add(t),f.forEach(h=>_i(l,t,h))),f.forEach(h=>_i(l,n,h)),f.forEach(h=>_i(l,Ps[o]||{},h)),f.forEach(h=>_i(l,_t,h)),f.forEach(h=>_i(l,Ur,h))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),Yu.has(s)&&r.set(s,c),c}chartOptionScopes(){const{options:t,type:s}=this;return[t,Ps[s]||{},_t.datasets[s]||{},{type:s},_t,Ur]}resolveNamedOptions(t,s,i,n=[""]){const o={$shared:!0},{resolver:r,subPrefixes:a}=Ac(this._resolverCache,t,n);let l=r;if(Vx(r,s)){o.$shared=!1,i=ns(i)?i():i;const c=this.createResolver(t,i,a);l=ei(r,i,c)}for(const c of s)o[c]=l[c];return o}createResolver(t,s,i=[""],n){const{resolver:o}=Ac(this._resolverCache,t,i);return st(s)?ei(o,s,void 0,n):o}}function Ac(e,t,s){let i=e.get(t);i||(i=new Map,e.set(t,i));const n=s.join();let o=i.get(n);return o||(o={resolver:Na(t,s),subPrefixes:s.filter(a=>!a.toLowerCase().includes("hover"))},i.set(n,o)),o}const Hx=e=>st(e)&&Object.getOwnPropertyNames(e).some(t=>ns(e[t]));function Vx(e,t){const{isScriptable:s,isIndexable:i}=ku(e);for(const n of t){const o=s(n),r=i(n),a=(r||o)&&e[n];if(o&&(ns(a)||Hx(a))||r&&xt(a))return!0}return!1}var zx="4.5.1";const Wx=["top","bottom","left","right","chartArea"];function Pc(e,t){return e==="top"||e==="bottom"||Wx.indexOf(e)===-1&&t==="x"}function Ec(e,t){return function(s,i){return s[e]===i[e]?s[t]-i[t]:s[e]-i[e]}}function Oc(e){const t=e.chart,s=t.options.animation;t.notifyPlugins("afterRender"),pt(s&&s.onComplete,[e],t)}function jx(e){const t=e.chart,s=t.options.animation;pt(s&&s.onProgress,[e],t)}function Xu(e){return Va()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const Gn={},Dc=e=>{const t=Xu(e);return Object.values(Gn).filter(s=>s.canvas===t).pop()};function $x(e,t,s){const i=Object.keys(e);for(const n of i){const o=+n;if(o>=t){const r=e[n];delete e[n],(s>0||o>t)&&(e[o+s]=r)}}}function Ux(e,t,s,i){return!s||e.type==="mouseout"?null:i?t:e}var Ue;let ja=(Ue=class{static register(...t){be.add(...t),Rc()}static unregister(...t){be.remove(...t),Rc()}constructor(t,s){const i=this.config=new Bx(s),n=Xu(t),o=Dc(n);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const r=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||cx(n)),this.platform.updateConfig(i);const a=this.platform.acquireContext(n,r.aspectRatio),l=a&&a.canvas,c=l&&l.height,f=l&&l.width;if(this.id=jb(),this.ctx=a,this.canvas=l,this.width=f,this.height=c,this._options=r,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new Cx,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=l_(h=>this.update(h),r.resizeDelay||0),this._dataChanges=[],Gn[this.id]=this,!a||!l){console.error("Failed to create chart: can't acquire context from the given item");return}Te.listen(this,"complete",Oc),Te.listen(this,"progress",jx),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:s},width:i,height:n,_aspectRatio:o}=this;return ot(t)?s&&o?o:n?i/n:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return be}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():ec(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Zl(this.canvas,this.ctx),this}stop(){return Te.stop(this),this}resize(t,s){Te.running(this)?this._resizeBeforeDraw={width:t,height:s}:this._resize(t,s)}_resize(t,s){const i=this.options,n=this.canvas,o=i.maintainAspectRatio&&this.aspectRatio,r=this.platform.getMaximumSize(n,t,s,o),a=i.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=r.width,this.height=r.height,this._aspectRatio=this.aspectRatio,ec(this,a,!0)&&(this.notifyPlugins("resize",{size:r}),pt(i.onResize,[this,r],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const s=this.options.scales||{};lt(s,(i,n)=>{i.id=n})}buildOrUpdateScales(){const t=this.options,s=t.scales,i=this.scales,n=Object.keys(i).reduce((r,a)=>(r[a]=!1,r),{});let o=[];s&&(o=o.concat(Object.keys(s).map(r=>{const a=s[r],l=Xr(r,a),c=l==="r",f=l==="x";return{options:a,dposition:c?"chartArea":f?"bottom":"left",dtype:c?"radialLinear":f?"category":"linear"}}))),lt(o,r=>{const a=r.options,l=a.id,c=Xr(l,a),f=Q(a.type,r.dtype);(a.position===void 0||Pc(a.position,c)!==Pc(r.dposition))&&(a.position=r.dposition),n[l]=!0;let h=null;if(l in i&&i[l].type===f)h=i[l];else{const u=be.getScale(f);h=new u({id:l,type:f,ctx:this.ctx,chart:this}),i[h.id]=h}h.init(a,t)}),lt(n,(r,a)=>{r||delete i[a]}),lt(i,r=>{se.configure(this,r,r.options),se.addBox(this,r)})}_updateMetasets(){const t=this._metasets,s=this.data.datasets.length,i=t.length;if(t.sort((n,o)=>n.index-o.index),i>s){for(let n=s;n<i;++n)this._destroyDatasetMeta(n);t.splice(s,i-s)}this._sortedMetasets=t.slice(0).sort(Ec("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:s}}=this;t.length>s.length&&delete this._stacks,t.forEach((i,n)=>{s.filter(o=>o===i._dataset).length===0&&this._destroyDatasetMeta(n)})}buildOrUpdateControllers(){const t=[],s=this.data.datasets;let i,n;for(this._removeUnreferencedMetasets(),i=0,n=s.length;i<n;i++){const o=s[i];let r=this.getDatasetMeta(i);const a=o.type||this.config.type;if(r.type&&r.type!==a&&(this._destroyDatasetMeta(i),r=this.getDatasetMeta(i)),r.type=a,r.indexAxis=o.indexAxis||Yr(a,this.options),r.order=o.order||0,r.index=i,r.label=""+o.label,r.visible=this.isDatasetVisible(i),r.controller)r.controller.updateIndex(i),r.controller.linkScales();else{const l=be.getController(a),{datasetElementType:c,dataElementType:f}=_t.datasets[a];Object.assign(l,{dataElementType:be.getElement(f),datasetElementType:c&&be.getElement(c)}),r.controller=new l(this,i),t.push(r.controller)}}return this._updateMetasets(),t}_resetElements(){lt(this.data.datasets,(t,s)=>{this.getDatasetMeta(s).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const s=this.config;s.update();const i=this._options=s.createResolver(s.chartOptionScopes(),this.getContext()),n=this._animationsDisabled=!i.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let r=0;for(let c=0,f=this.data.datasets.length;c<f;c++){const{controller:h}=this.getDatasetMeta(c),u=!n&&o.indexOf(h)===-1;h.buildOrUpdateElements(u),r=Math.max(+h.getMaxOverflow(),r)}r=this._minPadding=i.layout.autoPadding?r:0,this._updateLayout(r),n||lt(o,c=>{c.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(Ec("z","_idx"));const{_active:a,_lastEvent:l}=this;l?this._eventHandler(l,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){lt(this.scales,t=>{se.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,s=new Set(Object.keys(this._listeners)),i=new Set(t.events);(!Wl(s,i)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,s=this._getUniformDataChanges()||[];for(const{method:i,start:n,count:o}of s){const r=i==="_removeElements"?-o:o;$x(t,n,r)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const s=this.data.datasets.length,i=o=>new Set(t.filter(r=>r[0]===o).map((r,a)=>a+","+r.splice(1).join(","))),n=i(0);for(let o=1;o<s;o++)if(!Wl(n,i(o)))return;return Array.from(n).map(o=>o.split(",")).map(o=>({method:o[1],start:+o[2],count:+o[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;se.update(this,this.width,this.height,t);const s=this.chartArea,i=s.width<=0||s.height<=0;this._layers=[],lt(this.boxes,n=>{i&&n.position==="chartArea"||(n.configure&&n.configure(),this._layers.push(...n._layers()))},this),this._layers.forEach((n,o)=>{n._idx=o}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let s=0,i=this.data.datasets.length;s<i;++s)this.getDatasetMeta(s).controller.configure();for(let s=0,i=this.data.datasets.length;s<i;++s)this._updateDataset(s,ns(t)?t({datasetIndex:s}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,s){const i=this.getDatasetMeta(t),n={meta:i,index:t,mode:s,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",n)!==!1&&(i.controller._update(s),n.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",n))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(Te.has(this)?this.attached&&!Te.running(this)&&Te.start(this):(this.draw(),Oc({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:i,height:n}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(i,n)}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const s=this._layers;for(t=0;t<s.length&&s[t].z<=0;++t)s[t].draw(this.chartArea);for(this._drawDatasets();t<s.length;++t)s[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const s=this._sortedMetasets,i=[];let n,o;for(n=0,o=s.length;n<o;++n){const r=s[n];(!t||r.visible)&&i.push(r)}return i}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const t=this.getSortedVisibleDatasetMetas();for(let s=t.length-1;s>=0;--s)this._drawDataset(t[s]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const s=this.ctx,i={meta:t,index:t.index,cancelable:!0},n=Iu(this,t);this.notifyPlugins("beforeDatasetDraw",i)!==!1&&(n&&Vo(s,n),t.controller.draw(),n&&zo(s),i.cancelable=!1,this.notifyPlugins("afterDatasetDraw",i))}isPointInArea(t){return Qi(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,s,i,n){const o=Wy.modes[s];return typeof o=="function"?o(this,t,i,n):[]}getDatasetMeta(t){const s=this.data.datasets[t],i=this._metasets;let n=i.filter(o=>o&&o._dataset===s).pop();return n||(n={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:s&&s.order||0,index:t,_dataset:s,_parsed:[],_sorted:!1},i.push(n)),n}getContext(){return this.$context||(this.$context=Rs(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const s=this.data.datasets[t];if(!s)return!1;const i=this.getDatasetMeta(t);return typeof i.hidden=="boolean"?!i.hidden:!s.hidden}setDatasetVisibility(t,s){const i=this.getDatasetMeta(t);i.hidden=!s}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,s,i){const n=i?"show":"hide",o=this.getDatasetMeta(t),r=o.controller._resolveAnimations(void 0,n);Gi(s)?(o.data[s].hidden=!i,this.update()):(this.setDatasetVisibility(t,i),r.update(o,{visible:i}),this.update(a=>a.datasetIndex===t?n:void 0))}hide(t,s){this._updateVisibility(t,s,!1)}show(t,s){this._updateVisibility(t,s,!0)}_destroyDatasetMeta(t){const s=this._metasets[t];s&&s.controller&&s.controller._destroy(),delete this._metasets[t]}_stop(){let t,s;for(this.stop(),Te.remove(this),t=0,s=this.data.datasets.length;t<s;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:s}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),Zl(t,s),this.platform.releaseContext(s),this.canvas=null,this.ctx=null),delete Gn[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,s=this.platform,i=(o,r)=>{s.addEventListener(this,o,r),t[o]=r},n=(o,r,a)=>{o.offsetX=r,o.offsetY=a,this._eventHandler(o)};lt(this.options.events,o=>i(o,n))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,s=this.platform,i=(l,c)=>{s.addEventListener(this,l,c),t[l]=c},n=(l,c)=>{t[l]&&(s.removeEventListener(this,l,c),delete t[l])},o=(l,c)=>{this.canvas&&this.resize(l,c)};let r;const a=()=>{n("attach",a),this.attached=!0,this.resize(),i("resize",o),i("detach",r)};r=()=>{this.attached=!1,n("resize",o),this._stop(),this._resize(0,0),i("attach",a)},s.isAttached(this.canvas)?a():r()}unbindEvents(){lt(this._listeners,(t,s)=>{this.platform.removeEventListener(this,s,t)}),this._listeners={},lt(this._responsiveListeners,(t,s)=>{this.platform.removeEventListener(this,s,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,s,i){const n=i?"set":"remove";let o,r,a,l;for(s==="dataset"&&(o=this.getDatasetMeta(t[0].datasetIndex),o.controller["_"+n+"DatasetHoverStyle"]()),a=0,l=t.length;a<l;++a){r=t[a];const c=r&&this.getDatasetMeta(r.datasetIndex).controller;c&&c[n+"HoverStyle"](r.element,r.datasetIndex,r.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const s=this._active||[],i=t.map(({datasetIndex:o,index:r})=>{const a=this.getDatasetMeta(o);if(!a)throw new Error("No dataset found at index "+o);return{datasetIndex:o,element:a.data[r],index:r}});!po(i,s)&&(this._active=i,this._lastEvent=null,this._updateHoverStyles(i,s))}notifyPlugins(t,s,i){return this._plugins.notify(this,t,s,i)}isPluginEnabled(t){return this._plugins._cache.filter(s=>s.plugin.id===t).length===1}_updateHoverStyles(t,s,i){const n=this.options.hover,o=(l,c)=>l.filter(f=>!c.some(h=>f.datasetIndex===h.datasetIndex&&f.index===h.index)),r=o(s,t),a=i?t:o(t,s);r.length&&this.updateHoverStyle(r,n.mode,!1),a.length&&n.mode&&this.updateHoverStyle(a,n.mode,!0)}_eventHandler(t,s){const i={event:t,replay:s,cancelable:!0,inChartArea:this.isPointInArea(t)},n=r=>(r.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",i,n)===!1)return;const o=this._handleEvent(t,s,i.inChartArea);return i.cancelable=!1,this.notifyPlugins("afterEvent",i,n),(o||i.changed)&&this.render(),this}_handleEvent(t,s,i){const{_active:n=[],options:o}=this,r=s,a=this._getActiveElements(t,n,i,r),l=qb(t),c=Ux(t,this._lastEvent,i,l);i&&(this._lastEvent=null,pt(o.onHover,[t,a,this],this),l&&pt(o.onClick,[t,a,this],this));const f=!po(a,n);return(f||s)&&(this._active=a,this._updateHoverStyles(a,n,s)),this._lastEvent=c,f}_getActiveElements(t,s,i,n){if(t.type==="mouseout")return[];if(!i)return s;const o=this.options.hover;return this.getElementsAtEventForMode(t,o.mode,o,n)}},U(Ue,"defaults",_t),U(Ue,"instances",Gn),U(Ue,"overrides",Ps),U(Ue,"registry",be),U(Ue,"version",zx),U(Ue,"getChart",Dc),Ue);function Rc(){return lt(ja.instances,e=>e._plugins.invalidate())}function Kx(e,t,s){const{startAngle:i,x:n,y:o,outerRadius:r,innerRadius:a,options:l}=t,{borderWidth:c,borderJoinStyle:f}=l,h=Math.min(c/r,Jt(i-s));if(e.beginPath(),e.arc(n,o,r-c/2,i+h/2,s-h/2),a>0){const u=Math.min(c/a,Jt(i-s));e.arc(n,o,a+c/2,s-u/2,i+u/2,!0)}else{const u=Math.min(c/2,r*Jt(i-s));if(f==="round")e.arc(n,o,u,s-ct/2,i+ct/2,!0);else if(f==="bevel"){const d=2*u*u,g=-d*Math.cos(s+ct/2)+n,p=-d*Math.sin(s+ct/2)+o,b=d*Math.cos(i+ct/2)+n,x=d*Math.sin(i+ct/2)+o;e.lineTo(g,p),e.lineTo(b,x)}}e.closePath(),e.moveTo(0,0),e.rect(0,0,e.canvas.width,e.canvas.height),e.clip("evenodd")}function Yx(e,t,s){const{startAngle:i,pixelMargin:n,x:o,y:r,outerRadius:a,innerRadius:l}=t;let c=n/a;e.beginPath(),e.arc(o,r,a,i-c,s+c),l>n?(c=n/l,e.arc(o,r,l,s+c,i-c,!0)):e.arc(o,r,n,s+St,i-St),e.closePath(),e.clip()}function Xx(e){return Ia(e,["outerStart","outerEnd","innerStart","innerEnd"])}function qx(e,t,s,i){const n=Xx(e.options.borderRadius),o=(s-t)/2,r=Math.min(o,i*t/2),a=l=>{const c=(s-Math.min(o,l))*i/2;return Ft(l,0,Math.min(o,c))};return{outerStart:a(n.outerStart),outerEnd:a(n.outerEnd),innerStart:Ft(n.innerStart,0,r),innerEnd:Ft(n.innerEnd,0,r)}}function Bs(e,t,s,i){return{x:s+e*Math.cos(t),y:i+e*Math.sin(t)}}function xo(e,t,s,i,n,o){const{x:r,y:a,startAngle:l,pixelMargin:c,innerRadius:f}=t,h=Math.max(t.outerRadius+i+s-c,0),u=f>0?f+i+s+c:0;let d=0;const g=n-l;if(i){const Y=f>0?f-i:0,I=h>0?h-i:0,$=(Y+I)/2,V=$!==0?g*$/($+i):g;d=(g-V)/2}const p=Math.max(.001,g*h-s/ct)/h,b=(g-p)/2,x=l+b+d,S=n-b-d,{outerStart:m,outerEnd:_,innerStart:v,innerEnd:M}=qx(t,u,h,S-x),k=h-m,C=h-_,T=x+m/k,A=S-_/C,L=u+v,P=u+M,W=x+v/L,G=S-M/P;if(e.beginPath(),o){const Y=(T+A)/2;if(e.arc(r,a,h,T,Y),e.arc(r,a,h,Y,A),_>0){const Z=Bs(C,A,r,a);e.arc(Z.x,Z.y,_,A,S+St)}const I=Bs(P,S,r,a);if(e.lineTo(I.x,I.y),M>0){const Z=Bs(P,G,r,a);e.arc(Z.x,Z.y,M,S+St,G+Math.PI)}const $=(S-M/u+(x+v/u))/2;if(e.arc(r,a,u,S-M/u,$,!0),e.arc(r,a,u,$,x+v/u,!0),v>0){const Z=Bs(L,W,r,a);e.arc(Z.x,Z.y,v,W+Math.PI,x-St)}const V=Bs(k,x,r,a);if(e.lineTo(V.x,V.y),m>0){const Z=Bs(k,T,r,a);e.arc(Z.x,Z.y,m,x-St,T)}}else{e.moveTo(r,a);const Y=Math.cos(T)*h+r,I=Math.sin(T)*h+a;e.lineTo(Y,I);const $=Math.cos(A)*h+r,V=Math.sin(A)*h+a;e.lineTo($,V)}e.closePath()}function Gx(e,t,s,i,n){const{fullCircles:o,startAngle:r,circumference:a}=t;let l=t.endAngle;if(o){xo(e,t,s,i,l,n);for(let c=0;c<o;++c)e.fill();isNaN(a)||(l=r+(a%mt||mt))}return xo(e,t,s,i,l,n),e.fill(),l}function Jx(e,t,s,i,n){const{fullCircles:o,startAngle:r,circumference:a,options:l}=t,{borderWidth:c,borderJoinStyle:f,borderDash:h,borderDashOffset:u,borderRadius:d}=l,g=l.borderAlign==="inner";if(!c)return;e.setLineDash(h||[]),e.lineDashOffset=u,g?(e.lineWidth=c*2,e.lineJoin=f||"round"):(e.lineWidth=c,e.lineJoin=f||"bevel");let p=t.endAngle;if(o){xo(e,t,s,i,p,n);for(let b=0;b<o;++b)e.stroke();isNaN(a)||(p=r+(a%mt||mt))}g&&Yx(e,t,p),l.selfJoin&&p-r>=ct&&d===0&&f!=="miter"&&Kx(e,t,p),o||(xo(e,t,s,i,p,n),e.stroke())}class Hn extends We{constructor(s){super();U(this,"circumference");U(this,"endAngle");U(this,"fullCircles");U(this,"innerRadius");U(this,"outerRadius");U(this,"pixelMargin");U(this,"startAngle");this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,s&&Object.assign(this,s)}inRange(s,i,n){const o=this.getProps(["x","y"],n),{angle:r,distance:a}=_u(o,{x:s,y:i}),{startAngle:l,endAngle:c,innerRadius:f,outerRadius:h,circumference:u}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),d=(this.options.spacing+this.options.borderWidth)/2,g=Q(u,c-l),p=Zi(r,l,c)&&l!==c,b=g>=mt||p,x=Le(a,f+d,h+d);return b&&x}getCenterPoint(s){const{x:i,y:n,startAngle:o,endAngle:r,innerRadius:a,outerRadius:l}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],s),{offset:c,spacing:f}=this.options,h=(o+r)/2,u=(a+l+f+c)/2;return{x:i+Math.cos(h)*u,y:n+Math.sin(h)*u}}tooltipPosition(s){return this.getCenterPoint(s)}draw(s){const{options:i,circumference:n}=this,o=(i.offset||0)/4,r=(i.spacing||0)/2,a=i.circular;if(this.pixelMargin=i.borderAlign==="inner"?.33:0,this.fullCircles=n>mt?Math.floor(n/mt):0,n===0||this.innerRadius<0||this.outerRadius<0)return;s.save();const l=(this.startAngle+this.endAngle)/2;s.translate(Math.cos(l)*o,Math.sin(l)*o);const c=1-Math.sin(Math.min(ct,n||0)),f=o*c;s.fillStyle=i.backgroundColor,s.strokeStyle=i.borderColor,Gx(s,this,f,r,a),Jx(s,this,f,r,a),s.restore()}}U(Hn,"id","arc"),U(Hn,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0,selfJoin:!1}),U(Hn,"defaultRoutes",{backgroundColor:"backgroundColor"}),U(Hn,"descriptors",{_scriptable:!0,_indexable:s=>s!=="borderDash"});function qu(e,t,s=t){e.lineCap=Q(s.borderCapStyle,t.borderCapStyle),e.setLineDash(Q(s.borderDash,t.borderDash)),e.lineDashOffset=Q(s.borderDashOffset,t.borderDashOffset),e.lineJoin=Q(s.borderJoinStyle,t.borderJoinStyle),e.lineWidth=Q(s.borderWidth,t.borderWidth),e.strokeStyle=Q(s.borderColor,t.borderColor)}function Zx(e,t,s){e.lineTo(s.x,s.y)}function Qx(e){return e.stepped?S_:e.tension||e.cubicInterpolationMode==="monotone"?w_:Zx}function Gu(e,t,s={}){const i=e.length,{start:n=0,end:o=i-1}=s,{start:r,end:a}=t,l=Math.max(n,r),c=Math.min(o,a),f=n<r&&o<r||n>a&&o>a;return{count:i,start:l,loop:t.loop,ilen:c<l&&!f?i+c-l:c-l}}function t0(e,t,s,i){const{points:n,options:o}=t,{count:r,start:a,loop:l,ilen:c}=Gu(n,s,i),f=Qx(o);let{move:h=!0,reverse:u}=i||{},d,g,p;for(d=0;d<=c;++d)g=n[(a+(u?c-d:d))%r],!g.skip&&(h?(e.moveTo(g.x,g.y),h=!1):f(e,p,g,u,o.stepped),p=g);return l&&(g=n[(a+(u?c:0))%r],f(e,p,g,u,o.stepped)),!!l}function e0(e,t,s,i){const n=t.points,{count:o,start:r,ilen:a}=Gu(n,s,i),{move:l=!0,reverse:c}=i||{};let f=0,h=0,u,d,g,p,b,x;const S=_=>(r+(c?a-_:_))%o,m=()=>{p!==b&&(e.lineTo(f,b),e.lineTo(f,p),e.lineTo(f,x))};for(l&&(d=n[S(0)],e.moveTo(d.x,d.y)),u=0;u<=a;++u){if(d=n[S(u)],d.skip)continue;const _=d.x,v=d.y,M=_|0;M===g?(v<p?p=v:v>b&&(b=v),f=(h*f+_)/++h):(m(),e.lineTo(_,v),g=M,h=0,p=b=v),x=v}m()}function qr(e){const t=e.options,s=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!s?e0:t0}function s0(e){return e.stepped?ey:e.tension||e.cubicInterpolationMode==="monotone"?sy:ds}function i0(e,t,s,i){let n=t._path;n||(n=t._path=new Path2D,t.path(n,s,i)&&n.closePath()),qu(e,t.options),e.stroke(n)}function n0(e,t,s,i){const{segments:n,options:o}=t,r=qr(t);for(const a of n)qu(e,o,a.style),e.beginPath(),r(e,t,a,{start:s,end:s+i-1})&&e.closePath(),e.stroke()}const o0=typeof Path2D=="function";function r0(e,t,s,i){o0&&!t.options.segment?i0(e,t,s,i):n0(e,t,s,i)}class gs extends We{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,s){const i=this.options;if((i.tension||i.cubicInterpolationMode==="monotone")&&!i.stepped&&!this._pointsUpdated){const n=i.spanGaps?this._loop:this._fullLoop;Y_(this._points,i,t,n,s),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=ly(this,this.options.segment))}first(){const t=this.segments,s=this.points;return t.length&&s[t[0].start]}last(){const t=this.segments,s=this.points,i=t.length;return i&&s[t[i-1].end]}interpolate(t,s){const i=this.options,n=t[s],o=this.points,r=Fu(this,{property:s,start:n,end:n});if(!r.length)return;const a=[],l=s0(i);let c,f;for(c=0,f=r.length;c<f;++c){const{start:h,end:u}=r[c],d=o[h],g=o[u];if(d===g){a.push(d);continue}const p=Math.abs((n-d[s])/(g[s]-d[s])),b=l(d,g,p,i.stepped);b[s]=t[s],a.push(b)}return a.length===1?a[0]:a}pathSegment(t,s,i){return qr(this)(t,this,s,i)}path(t,s,i){const n=this.segments,o=qr(this);let r=this._loop;s=s||0,i=i||this.points.length-s;for(const a of n)r&=o(t,this,a,{start:s,end:s+i-1});return!!r}draw(t,s,i,n){const o=this.options||{};(this.points||[]).length&&o.borderWidth&&(t.save(),r0(t,this,i,n),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}U(gs,"id","line"),U(gs,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),U(gs,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),U(gs,"descriptors",{_scriptable:!0,_indexable:t=>t!=="borderDash"&&t!=="fill"});function Lc(e,t,s,i){const n=e.options,{[s]:o}=e.getProps([s],i);return Math.abs(t-o)<n.radius+n.hitRadius}class br extends We{constructor(s){super();U(this,"parsed");U(this,"skip");U(this,"stop");this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,s&&Object.assign(this,s)}inRange(s,i,n){const o=this.options,{x:r,y:a}=this.getProps(["x","y"],n);return Math.pow(s-r,2)+Math.pow(i-a,2)<Math.pow(o.hitRadius+o.radius,2)}inXRange(s,i){return Lc(this,s,"x",i)}inYRange(s,i){return Lc(this,s,"y",i)}getCenterPoint(s){const{x:i,y:n}=this.getProps(["x","y"],s);return{x:i,y:n}}size(s){s=s||this.options||{};let i=s.radius||0;i=Math.max(i,i&&s.hoverRadius||0);const n=i&&s.borderWidth||0;return(i+n)*2}draw(s,i){const n=this.options;this.skip||n.radius<.1||!Qi(this,i,this.size(n)/2)||(s.strokeStyle=n.borderColor,s.lineWidth=n.borderWidth,s.fillStyle=n.backgroundColor,Kr(s,n,this.x,this.y))}getRange(){const s=this.options||{};return s.radius+s.hitRadius}}U(br,"id","point"),U(br,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),U(br,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function Ju(e,t){const{x:s,y:i,base:n,width:o,height:r}=e.getProps(["x","y","base","width","height"],t);let a,l,c,f,h;return e.horizontal?(h=r/2,a=Math.min(s,n),l=Math.max(s,n),c=i-h,f=i+h):(h=o/2,a=s-h,l=s+h,c=Math.min(i,n),f=Math.max(i,n)),{left:a,top:c,right:l,bottom:f}}function Qe(e,t,s,i){return e?0:Ft(t,s,i)}function a0(e,t,s){const i=e.options.borderWidth,n=e.borderSkipped,o=Tu(i);return{t:Qe(n.top,o.top,0,s),r:Qe(n.right,o.right,0,t),b:Qe(n.bottom,o.bottom,0,s),l:Qe(n.left,o.left,0,t)}}function l0(e,t,s){const{enableBorderRadius:i}=e.getProps(["enableBorderRadius"]),n=e.options.borderRadius,o=Xs(n),r=Math.min(t,s),a=e.borderSkipped,l=i||st(n);return{topLeft:Qe(!l||a.top||a.left,o.topLeft,0,r),topRight:Qe(!l||a.top||a.right,o.topRight,0,r),bottomLeft:Qe(!l||a.bottom||a.left,o.bottomLeft,0,r),bottomRight:Qe(!l||a.bottom||a.right,o.bottomRight,0,r)}}function c0(e){const t=Ju(e),s=t.right-t.left,i=t.bottom-t.top,n=a0(e,s/2,i/2),o=l0(e,s/2,i/2);return{outer:{x:t.left,y:t.top,w:s,h:i,radius:o},inner:{x:t.left+n.l,y:t.top+n.t,w:s-n.l-n.r,h:i-n.t-n.b,radius:{topLeft:Math.max(0,o.topLeft-Math.max(n.t,n.l)),topRight:Math.max(0,o.topRight-Math.max(n.t,n.r)),bottomLeft:Math.max(0,o.bottomLeft-Math.max(n.b,n.l)),bottomRight:Math.max(0,o.bottomRight-Math.max(n.b,n.r))}}}}function _r(e,t,s,i){const n=t===null,o=s===null,a=e&&!(n&&o)&&Ju(e,i);return a&&(n||Le(t,a.left,a.right))&&(o||Le(s,a.top,a.bottom))}function f0(e){return e.topLeft||e.topRight||e.bottomLeft||e.bottomRight}function h0(e,t){e.rect(t.x,t.y,t.w,t.h)}function yr(e,t,s={}){const i=e.x!==s.x?-t:0,n=e.y!==s.y?-t:0,o=(e.x+e.w!==s.x+s.w?t:0)-i,r=(e.y+e.h!==s.y+s.h?t:0)-n;return{x:e.x+i,y:e.y+n,w:e.w+o,h:e.h+r,radius:e.radius}}class xr extends We{constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:s,options:{borderColor:i,backgroundColor:n}}=this,{inner:o,outer:r}=c0(this),a=f0(r.radius)?bo:h0;t.save(),(r.w!==o.w||r.h!==o.h)&&(t.beginPath(),a(t,yr(r,s,o)),t.clip(),a(t,yr(o,-s,r)),t.fillStyle=i,t.fill("evenodd")),t.beginPath(),a(t,yr(o,s)),t.fillStyle=n,t.fill(),t.restore()}inRange(t,s,i){return _r(this,t,s,i)}inXRange(t,s){return _r(this,t,null,s)}inYRange(t,s){return _r(this,null,t,s)}getCenterPoint(t){const{x:s,y:i,base:n,horizontal:o}=this.getProps(["x","y","base","horizontal"],t);return{x:o?(s+n)/2:s,y:o?i:(i+n)/2}}getRange(t){return t==="x"?this.width/2:this.height/2}}U(xr,"id","bar"),U(xr,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),U(xr,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function u0(e,t,s){const i=e.segments,n=e.points,o=t.points,r=[];for(const a of i){let{start:l,end:c}=a;c=$o(l,c,n);const f=Gr(s,n[l],n[c],a.loop);if(!t.segments){r.push({source:a,target:f,start:n[l],end:n[c]});continue}const h=Fu(t,f);for(const u of h){const d=Gr(s,o[u.start],o[u.end],u.loop),g=Lu(a,n,d);for(const p of g)r.push({source:p,target:u,start:{[s]:Fc(f,d,"start",Math.max)},end:{[s]:Fc(f,d,"end",Math.min)}})}}return r}function Gr(e,t,s,i){if(i)return;let n=t[e],o=s[e];return e==="angle"&&(n=Jt(n),o=Jt(o)),{property:e,start:n,end:o}}function d0(e,t){const{x:s=null,y:i=null}=e||{},n=t.points,o=[];return t.segments.forEach(({start:r,end:a})=>{a=$o(r,a,n);const l=n[r],c=n[a];i!==null?(o.push({x:l.x,y:i}),o.push({x:c.x,y:i})):s!==null&&(o.push({x:s,y:l.y}),o.push({x:s,y:c.y}))}),o}function $o(e,t,s){for(;t>e;t--){const i=s[t];if(!isNaN(i.x)&&!isNaN(i.y))break}return t}function Fc(e,t,s,i){return e&&t?i(e[s],t[s]):e?e[s]:t?t[s]:0}function Zu(e,t){let s=[],i=!1;return xt(e)?(i=!0,s=e):s=d0(e,t),s.length?new gs({points:s,options:{tension:0},_loop:i,_fullLoop:i}):null}function Ic(e){return e&&e.fill!==!1}function p0(e,t,s){let n=e[t].fill;const o=[t];let r;if(!s)return n;for(;n!==!1&&o.indexOf(n)===-1;){if(!Nt(n))return n;if(r=e[n],!r)return!1;if(r.visible)return n;o.push(n),n=r.fill}return!1}function g0(e,t,s){const i=y0(e);if(st(i))return isNaN(i.value)?!1:i;let n=parseFloat(i);return Nt(n)&&Math.floor(n)===n?m0(i[0],t,n,s):["origin","start","end","stack","shape"].indexOf(i)>=0&&i}function m0(e,t,s,i){return(e==="-"||e==="+")&&(s=t+s),s===t||s<0||s>=i?!1:s}function b0(e,t){let s=null;return e==="start"?s=t.bottom:e==="end"?s=t.top:st(e)?s=t.getPixelForValue(e.value):t.getBasePixel&&(s=t.getBasePixel()),s}function _0(e,t,s){let i;return e==="start"?i=s:e==="end"?i=t.options.reverse?t.min:t.max:st(e)?i=e.value:i=t.getBaseValue(),i}function y0(e){const t=e.options,s=t.fill;let i=Q(s&&s.target,s);return i===void 0&&(i=!!t.backgroundColor),i===!1||i===null?!1:i===!0?"origin":i}function x0(e){const{scale:t,index:s,line:i}=e,n=[],o=i.segments,r=i.points,a=v0(t,s);a.push(Zu({x:null,y:t.bottom},i));for(let l=0;l<o.length;l++){const c=o[l];for(let f=c.start;f<=c.end;f++)S0(n,r[f],a)}return new gs({points:n,options:{}})}function v0(e,t){const s=[],i=e.getMatchingVisibleMetas("line");for(let n=0;n<i.length;n++){const o=i[n];if(o.index===t)break;o.hidden||s.unshift(o.dataset)}return s}function S0(e,t,s){const i=[];for(let n=0;n<s.length;n++){const o=s[n],{first:r,last:a,point:l}=w0(o,t,"x");if(!(!l||r&&a)){if(r)i.unshift(l);else if(e.push(l),!a)break}}e.push(...i)}function w0(e,t,s){const i=e.interpolate(t,s);if(!i)return{};const n=i[s],o=e.segments,r=e.points;let a=!1,l=!1;for(let c=0;c<o.length;c++){const f=o[c],h=r[f.start][s],u=r[f.end][s];if(Le(n,h,u)){a=n===h,l=n===u;break}}return{first:a,last:l,point:i}}class Qu{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,s,i){const{x:n,y:o,radius:r}=this;return s=s||{start:0,end:mt},t.arc(n,o,r,s.end,s.start,!0),!i.bounds}interpolate(t){const{x:s,y:i,radius:n}=this,o=t.angle;return{x:s+Math.cos(o)*n,y:i+Math.sin(o)*n,angle:o}}}function M0(e){const{chart:t,fill:s,line:i}=e;if(Nt(s))return T0(t,s);if(s==="stack")return x0(e);if(s==="shape")return!0;const n=k0(e);return n instanceof Qu?n:Zu(n,i)}function T0(e,t){const s=e.getDatasetMeta(t);return s&&e.isDatasetVisible(t)?s.dataset:null}function k0(e){return(e.scale||{}).getPointPositionForValue?A0(e):C0(e)}function C0(e){const{scale:t={},fill:s}=e,i=b0(s,t);if(Nt(i)){const n=t.isHorizontal();return{x:n?i:null,y:n?null:i}}return null}function A0(e){const{scale:t,fill:s}=e,i=t.options,n=t.getLabels().length,o=i.reverse?t.max:t.min,r=_0(s,t,o),a=[];if(i.grid.circular){const l=t.getPointPositionForValue(0,o);return new Qu({x:l.x,y:l.y,radius:t.getDistanceFromCenterForValue(r)})}for(let l=0;l<n;++l)a.push(t.getPointPositionForValue(l,r));return a}function vr(e,t,s){const i=M0(t),{chart:n,index:o,line:r,scale:a,axis:l}=t,c=r.options,f=c.fill,h=c.backgroundColor,{above:u=h,below:d=h}=f||{},g=n.getDatasetMeta(o),p=Iu(n,g);i&&r.points.length&&(Vo(e,s),P0(e,{line:r,target:i,above:u,below:d,area:s,scale:a,axis:l,clip:p}),zo(e))}function P0(e,t){const{line:s,target:i,above:n,below:o,area:r,scale:a,clip:l}=t,c=s._loop?"angle":t.axis;e.save();let f=o;o!==n&&(c==="x"?(Nc(e,i,r.top),Sr(e,{line:s,target:i,color:n,scale:a,property:c,clip:l}),e.restore(),e.save(),Nc(e,i,r.bottom)):c==="y"&&(Bc(e,i,r.left),Sr(e,{line:s,target:i,color:o,scale:a,property:c,clip:l}),e.restore(),e.save(),Bc(e,i,r.right),f=n)),Sr(e,{line:s,target:i,color:f,scale:a,property:c,clip:l}),e.restore()}function Nc(e,t,s){const{segments:i,points:n}=t;let o=!0,r=!1;e.beginPath();for(const a of i){const{start:l,end:c}=a,f=n[l],h=n[$o(l,c,n)];o?(e.moveTo(f.x,f.y),o=!1):(e.lineTo(f.x,s),e.lineTo(f.x,f.y)),r=!!t.pathSegment(e,a,{move:r}),r?e.closePath():e.lineTo(h.x,s)}e.lineTo(t.first().x,s),e.closePath(),e.clip()}function Bc(e,t,s){const{segments:i,points:n}=t;let o=!0,r=!1;e.beginPath();for(const a of i){const{start:l,end:c}=a,f=n[l],h=n[$o(l,c,n)];o?(e.moveTo(f.x,f.y),o=!1):(e.lineTo(s,f.y),e.lineTo(f.x,f.y)),r=!!t.pathSegment(e,a,{move:r}),r?e.closePath():e.lineTo(s,h.y)}e.lineTo(s,t.first().y),e.closePath(),e.clip()}function Sr(e,t){const{line:s,target:i,property:n,color:o,scale:r,clip:a}=t,l=u0(s,i,n);for(const{source:c,target:f,start:h,end:u}of l){const{style:{backgroundColor:d=o}={}}=c,g=i!==!0;e.save(),e.fillStyle=d,E0(e,r,a,g&&Gr(n,h,u)),e.beginPath();const p=!!s.pathSegment(e,c);let b;if(g){p?e.closePath():Hc(e,i,u,n);const x=!!i.pathSegment(e,f,{move:p,reverse:!0});b=p&&x,b||Hc(e,i,h,n)}e.closePath(),e.fill(b?"evenodd":"nonzero"),e.restore()}}function E0(e,t,s,i){const n=t.chart.chartArea,{property:o,start:r,end:a}=i||{};if(o==="x"||o==="y"){let l,c,f,h;o==="x"?(l=r,c=n.top,f=a,h=n.bottom):(l=n.left,c=r,f=n.right,h=a),e.beginPath(),s&&(l=Math.max(l,s.left),f=Math.min(f,s.right),c=Math.max(c,s.top),h=Math.min(h,s.bottom)),e.rect(l,c,f-l,h-c),e.clip()}}function Hc(e,t,s,i){const n=t.interpolate(s,i);n&&e.lineTo(n.x,n.y)}var fv={id:"filler",afterDatasetsUpdate(e,t,s){const i=(e.data.datasets||[]).length,n=[];let o,r,a,l;for(r=0;r<i;++r)o=e.getDatasetMeta(r),a=o.dataset,l=null,a&&a.options&&a instanceof gs&&(l={visible:e.isDatasetVisible(r),index:r,fill:g0(a,r,i),chart:e,axis:o.controller.options.indexAxis,scale:o.vScale,line:a}),o.$filler=l,n.push(l);for(r=0;r<i;++r)l=n[r],!(!l||l.fill===!1)&&(l.fill=p0(n,r,s.propagate))},beforeDraw(e,t,s){const i=s.drawTime==="beforeDraw",n=e.getSortedVisibleDatasetMetas(),o=e.chartArea;for(let r=n.length-1;r>=0;--r){const a=n[r].$filler;a&&(a.line.updateControlPoints(o,a.axis),i&&a.fill&&vr(e.ctx,a,o))}},beforeDatasetsDraw(e,t,s){if(s.drawTime!=="beforeDatasetsDraw")return;const i=e.getSortedVisibleDatasetMetas();for(let n=i.length-1;n>=0;--n){const o=i[n].$filler;Ic(o)&&vr(e.ctx,o,e.chartArea)}},beforeDatasetDraw(e,t,s){const i=t.meta.$filler;!Ic(i)||s.drawTime!=="beforeDatasetDraw"||vr(e.ctx,i,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const Vc=(e,t)=>{let{boxHeight:s=t,boxWidth:i=t}=e;return e.usePointStyle&&(s=Math.min(s,t),i=e.pointStyleWidth||Math.min(i,t)),{boxWidth:i,boxHeight:s,itemHeight:Math.max(t,s)}},O0=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class zc extends We{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,s,i){this.maxWidth=t,this.maxHeight=s,this._margins=i,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let s=pt(t.generateLabels,[this.chart],this)||[];t.filter&&(s=s.filter(i=>t.filter(i,this.chart.data))),t.sort&&(s=s.sort((i,n)=>t.sort(i,n,this.chart.data))),this.options.reverse&&s.reverse(),this.legendItems=s}fit(){const{options:t,ctx:s}=this;if(!t.display){this.width=this.height=0;return}const i=t.labels,n=It(i.font),o=n.size,r=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=Vc(i,o);let c,f;s.font=n.string,this.isHorizontal()?(c=this.maxWidth,f=this._fitRows(r,o,a,l)+10):(f=this.maxHeight,c=this._fitCols(r,n,a,l)+10),this.width=Math.min(c,t.maxWidth||this.maxWidth),this.height=Math.min(f,t.maxHeight||this.maxHeight)}_fitRows(t,s,i,n){const{ctx:o,maxWidth:r,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],f=n+a;let h=t;o.textAlign="left",o.textBaseline="middle";let u=-1,d=-f;return this.legendItems.forEach((g,p)=>{const b=i+s/2+o.measureText(g.text).width;(p===0||c[c.length-1]+b+2*a>r)&&(h+=f,c[c.length-(p>0?0:1)]=0,d+=f,u++),l[p]={left:0,top:d,row:u,width:b,height:n},c[c.length-1]+=b+a}),h}_fitCols(t,s,i,n){const{ctx:o,maxHeight:r,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],f=r-t;let h=a,u=0,d=0,g=0,p=0;return this.legendItems.forEach((b,x)=>{const{itemWidth:S,itemHeight:m}=D0(i,s,o,b,n);x>0&&d+m+2*a>f&&(h+=u+a,c.push({width:u,height:d}),g+=u+a,p++,u=d=0),l[x]={left:g,top:d,col:p,width:S,height:m},u=Math.max(u,S),d+=m+a}),h+=u,c.push({width:u,height:d}),h}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:s,options:{align:i,labels:{padding:n},rtl:o}}=this,r=qs(o,this.left,this.width);if(this.isHorizontal()){let a=0,l=Pt(i,this.left+n,this.right-this.lineWidths[a]);for(const c of s)a!==c.row&&(a=c.row,l=Pt(i,this.left+n,this.right-this.lineWidths[a])),c.top+=this.top+t+n,c.left=r.leftForLtr(r.x(l),c.width),l+=c.width+n}else{let a=0,l=Pt(i,this.top+t+n,this.bottom-this.columnSizes[a].height);for(const c of s)c.col!==a&&(a=c.col,l=Pt(i,this.top+t+n,this.bottom-this.columnSizes[a].height)),c.top=l,c.left+=this.left+n,c.left=r.leftForLtr(r.x(c.left),c.width),l+=c.height+n}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;Vo(t,this),this._draw(),zo(t)}}_draw(){const{options:t,columnSizes:s,lineWidths:i,ctx:n}=this,{align:o,labels:r}=t,a=_t.color,l=qs(t.rtl,this.left,this.width),c=It(r.font),{padding:f}=r,h=c.size,u=h/2;let d;this.drawTitle(),n.textAlign=l.textAlign("left"),n.textBaseline="middle",n.lineWidth=.5,n.font=c.string;const{boxWidth:g,boxHeight:p,itemHeight:b}=Vc(r,h),x=function(M,k,C){if(isNaN(g)||g<=0||isNaN(p)||p<0)return;n.save();const T=Q(C.lineWidth,1);if(n.fillStyle=Q(C.fillStyle,a),n.lineCap=Q(C.lineCap,"butt"),n.lineDashOffset=Q(C.lineDashOffset,0),n.lineJoin=Q(C.lineJoin,"miter"),n.lineWidth=T,n.strokeStyle=Q(C.strokeStyle,a),n.setLineDash(Q(C.lineDash,[])),r.usePointStyle){const A={radius:p*Math.SQRT2/2,pointStyle:C.pointStyle,rotation:C.rotation,borderWidth:T},L=l.xPlus(M,g/2),P=k+u;Mu(n,A,L,P,r.pointStyleWidth&&g)}else{const A=k+Math.max((h-p)/2,0),L=l.leftForLtr(M,g),P=Xs(C.borderRadius);n.beginPath(),Object.values(P).some(W=>W!==0)?bo(n,{x:L,y:A,w:g,h:p,radius:P}):n.rect(L,A,g,p),n.fill(),T!==0&&n.stroke()}n.restore()},S=function(M,k,C){tn(n,C.text,M,k+b/2,c,{strikethrough:C.hidden,textAlign:l.textAlign(C.textAlign)})},m=this.isHorizontal(),_=this._computeTitleHeight();m?d={x:Pt(o,this.left+f,this.right-i[0]),y:this.top+f+_,line:0}:d={x:this.left+f,y:Pt(o,this.top+_+f,this.bottom-s[0].height),line:0},Ou(this.ctx,t.textDirection);const v=b+f;this.legendItems.forEach((M,k)=>{n.strokeStyle=M.fontColor,n.fillStyle=M.fontColor;const C=n.measureText(M.text).width,T=l.textAlign(M.textAlign||(M.textAlign=r.textAlign)),A=g+u+C;let L=d.x,P=d.y;l.setWidth(this.width),m?k>0&&L+A+f>this.right&&(P=d.y+=v,d.line++,L=d.x=Pt(o,this.left+f,this.right-i[d.line])):k>0&&P+v>this.bottom&&(L=d.x=L+s[d.line].width+f,d.line++,P=d.y=Pt(o,this.top+_+f,this.bottom-s[d.line].height));const W=l.x(L);if(x(W,P,M),L=c_(T,L+g+u,m?L+A:this.right,t.rtl),S(l.x(L),P,M),m)d.x+=A+f;else if(typeof M.text!="string"){const G=c.lineHeight;d.y+=td(M,G)+f}else d.y+=v}),Du(this.ctx,t.textDirection)}drawTitle(){const t=this.options,s=t.title,i=It(s.font),n=re(s.padding);if(!s.display)return;const o=qs(t.rtl,this.left,this.width),r=this.ctx,a=s.position,l=i.size/2,c=n.top+l;let f,h=this.left,u=this.width;if(this.isHorizontal())u=Math.max(...this.lineWidths),f=this.top+c,h=Pt(t.align,h,this.right-u);else{const g=this.columnSizes.reduce((p,b)=>Math.max(p,b.height),0);f=c+Pt(t.align,this.top,this.bottom-g-t.labels.padding-this._computeTitleHeight())}const d=Pt(a,h,h+u);r.textAlign=o.textAlign(Ra(a)),r.textBaseline="middle",r.strokeStyle=s.color,r.fillStyle=s.color,r.font=i.string,tn(r,s.text,d,f,i)}_computeTitleHeight(){const t=this.options.title,s=It(t.font),i=re(t.padding);return t.display?s.lineHeight+i.height:0}_getLegendItemAt(t,s){let i,n,o;if(Le(t,this.left,this.right)&&Le(s,this.top,this.bottom)){for(o=this.legendHitBoxes,i=0;i<o.length;++i)if(n=o[i],Le(t,n.left,n.left+n.width)&&Le(s,n.top,n.top+n.height))return this.legendItems[i]}return null}handleEvent(t){const s=this.options;if(!F0(t.type,s))return;const i=this._getLegendItemAt(t.x,t.y);if(t.type==="mousemove"||t.type==="mouseout"){const n=this._hoveredItem,o=O0(n,i);n&&!o&&pt(s.onLeave,[t,n,this],this),this._hoveredItem=i,i&&!o&&pt(s.onHover,[t,i,this],this)}else i&&pt(s.onClick,[t,i,this],this)}}function D0(e,t,s,i,n){const o=R0(i,e,t,s),r=L0(n,i,t.lineHeight);return{itemWidth:o,itemHeight:r}}function R0(e,t,s,i){let n=e.text;return n&&typeof n!="string"&&(n=n.reduce((o,r)=>o.length>r.length?o:r)),t+s.size/2+i.measureText(n).width}function L0(e,t,s){let i=e;return typeof t.text!="string"&&(i=td(t,s)),i}function td(e,t){const s=e.text?e.text.length:0;return t*s}function F0(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var hv={id:"legend",_element:zc,start(e,t,s){const i=e.legend=new zc({ctx:e.ctx,options:s,chart:e});se.configure(e,i,s),se.addBox(e,i)},stop(e){se.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,s){const i=e.legend;se.configure(e,i,s),i.options=s},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,s){const i=t.datasetIndex,n=s.chart;n.isDatasetVisible(i)?(n.hide(i),t.hidden=!0):(n.show(i),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:s,pointStyle:i,textAlign:n,color:o,useBorderRadius:r,borderRadius:a}}=e.legend.options;return e._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(s?0:void 0),f=re(c.borderWidth);return{text:t[l.index].label,fillStyle:c.backgroundColor,fontColor:o,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(f.width+f.height)/4,strokeStyle:c.borderColor,pointStyle:i||c.pointStyle,rotation:c.rotation,textAlign:n||c.textAlign,borderRadius:r&&(a||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class ed extends We{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,s){const i=this.options;if(this.left=0,this.top=0,!i.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=s;const n=xt(i.text)?i.text.length:1;this._padding=re(i.padding);const o=n*It(i.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:s,left:i,bottom:n,right:o,options:r}=this,a=r.align;let l=0,c,f,h;return this.isHorizontal()?(f=Pt(a,i,o),h=s+t,c=o-i):(r.position==="left"?(f=i+t,h=Pt(a,n,s),l=ct*-.5):(f=o-t,h=Pt(a,s,n),l=ct*.5),c=n-s),{titleX:f,titleY:h,maxWidth:c,rotation:l}}draw(){const t=this.ctx,s=this.options;if(!s.display)return;const i=It(s.font),o=i.lineHeight/2+this._padding.top,{titleX:r,titleY:a,maxWidth:l,rotation:c}=this._drawArgs(o);tn(t,s.text,0,0,i,{color:s.color,maxWidth:l,rotation:c,textAlign:Ra(s.align),textBaseline:"middle",translation:[r,a]})}}function I0(e,t){const s=new ed({ctx:e.ctx,options:t,chart:e});se.configure(e,s,t),se.addBox(e,s),e.titleBlock=s}var uv={id:"title",_element:ed,start(e,t,s){I0(e,s)},stop(e){const t=e.titleBlock;se.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,s){const i=e.titleBlock;se.configure(e,i,s),i.options=s},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Mi={average(e){if(!e.length)return!1;let t,s,i=new Set,n=0,o=0;for(t=0,s=e.length;t<s;++t){const a=e[t].element;if(a&&a.hasValue()){const l=a.tooltipPosition();i.add(l.x),n+=l.y,++o}}return o===0||i.size===0?!1:{x:[...i].reduce((a,l)=>a+l)/i.size,y:n/o}},nearest(e,t){if(!e.length)return!1;let s=t.x,i=t.y,n=Number.POSITIVE_INFINITY,o,r,a;for(o=0,r=e.length;o<r;++o){const l=e[o].element;if(l&&l.hasValue()){const c=l.getCenterPoint(),f=$r(t,c);f<n&&(n=f,a=l)}}if(a){const l=a.tooltipPosition();s=l.x,i=l.y}return{x:s,y:i}}};function ge(e,t){return t&&(xt(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function ke(e){return(typeof e=="string"||e instanceof String)&&e.indexOf(`
36
+ `)>-1?e.split(`
37
+ `):e}function N0(e,t){const{element:s,datasetIndex:i,index:n}=t,o=e.getDatasetMeta(i).controller,{label:r,value:a}=o.getLabelAndValue(n);return{chart:e,label:r,parsed:o.getParsed(n),raw:e.data.datasets[i].data[n],formattedValue:a,dataset:o.getDataset(),dataIndex:n,datasetIndex:i,element:s}}function Wc(e,t){const s=e.chart.ctx,{body:i,footer:n,title:o}=e,{boxWidth:r,boxHeight:a}=t,l=It(t.bodyFont),c=It(t.titleFont),f=It(t.footerFont),h=o.length,u=n.length,d=i.length,g=re(t.padding);let p=g.height,b=0,x=i.reduce((_,v)=>_+v.before.length+v.lines.length+v.after.length,0);if(x+=e.beforeBody.length+e.afterBody.length,h&&(p+=h*c.lineHeight+(h-1)*t.titleSpacing+t.titleMarginBottom),x){const _=t.displayColors?Math.max(a,l.lineHeight):l.lineHeight;p+=d*_+(x-d)*l.lineHeight+(x-1)*t.bodySpacing}u&&(p+=t.footerMarginTop+u*f.lineHeight+(u-1)*t.footerSpacing);let S=0;const m=function(_){b=Math.max(b,s.measureText(_).width+S)};return s.save(),s.font=c.string,lt(e.title,m),s.font=l.string,lt(e.beforeBody.concat(e.afterBody),m),S=t.displayColors?r+2+t.boxPadding:0,lt(i,_=>{lt(_.before,m),lt(_.lines,m),lt(_.after,m)}),S=0,s.font=f.string,lt(e.footer,m),s.restore(),b+=g.width,{width:b,height:p}}function B0(e,t){const{y:s,height:i}=t;return s<i/2?"top":s>e.height-i/2?"bottom":"center"}function H0(e,t,s,i){const{x:n,width:o}=i,r=s.caretSize+s.caretPadding;if(e==="left"&&n+o+r>t.width||e==="right"&&n-o-r<0)return!0}function V0(e,t,s,i){const{x:n,width:o}=s,{width:r,chartArea:{left:a,right:l}}=e;let c="center";return i==="center"?c=n<=(a+l)/2?"left":"right":n<=o/2?c="left":n>=r-o/2&&(c="right"),H0(c,e,t,s)&&(c="center"),c}function jc(e,t,s){const i=s.yAlign||t.yAlign||B0(e,s);return{xAlign:s.xAlign||t.xAlign||V0(e,t,s,i),yAlign:i}}function z0(e,t){let{x:s,width:i}=e;return t==="right"?s-=i:t==="center"&&(s-=i/2),s}function W0(e,t,s){let{y:i,height:n}=e;return t==="top"?i+=s:t==="bottom"?i-=n+s:i-=n/2,i}function $c(e,t,s,i){const{caretSize:n,caretPadding:o,cornerRadius:r}=e,{xAlign:a,yAlign:l}=s,c=n+o,{topLeft:f,topRight:h,bottomLeft:u,bottomRight:d}=Xs(r);let g=z0(t,a);const p=W0(t,l,c);return l==="center"?a==="left"?g+=c:a==="right"&&(g-=c):a==="left"?g-=Math.max(f,u)+n:a==="right"&&(g+=Math.max(h,d)+n),{x:Ft(g,0,i.width-t.width),y:Ft(p,0,i.height-t.height)}}function Vn(e,t,s){const i=re(s.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-i.right:e.x+i.left}function Uc(e){return ge([],ke(e))}function j0(e,t,s){return Rs(e,{tooltip:t,tooltipItems:s,type:"tooltip"})}function Kc(e,t){const s=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return s?e.override(s):e}const sd={beforeTitle:Me,title(e){if(e.length>0){const t=e[0],s=t.chart.data.labels,i=s?s.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(i>0&&t.dataIndex<i)return s[t.dataIndex]}return""},afterTitle:Me,beforeBody:Me,beforeLabel:Me,label(e){if(this&&this.options&&this.options.mode==="dataset")return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const s=e.formattedValue;return ot(s)||(t+=s),t},labelColor(e){const s=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:s.borderColor,backgroundColor:s.backgroundColor,borderWidth:s.borderWidth,borderDash:s.borderDash,borderDashOffset:s.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const s=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:s.pointStyle,rotation:s.rotation}},afterLabel:Me,afterBody:Me,beforeFooter:Me,footer:Me,afterFooter:Me};function zt(e,t,s,i){const n=e[t].call(s,i);return typeof n>"u"?sd[t].call(s,i):n}class Jr extends We{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const s=this.chart,i=this.options.setContext(this.getContext()),n=i.enabled&&s.options.animation&&i.animations,o=new Nu(this.chart,n);return n._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=j0(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,s){const{callbacks:i}=s,n=zt(i,"beforeTitle",this,t),o=zt(i,"title",this,t),r=zt(i,"afterTitle",this,t);let a=[];return a=ge(a,ke(n)),a=ge(a,ke(o)),a=ge(a,ke(r)),a}getBeforeBody(t,s){return Uc(zt(s.callbacks,"beforeBody",this,t))}getBody(t,s){const{callbacks:i}=s,n=[];return lt(t,o=>{const r={before:[],lines:[],after:[]},a=Kc(i,o);ge(r.before,ke(zt(a,"beforeLabel",this,o))),ge(r.lines,zt(a,"label",this,o)),ge(r.after,ke(zt(a,"afterLabel",this,o))),n.push(r)}),n}getAfterBody(t,s){return Uc(zt(s.callbacks,"afterBody",this,t))}getFooter(t,s){const{callbacks:i}=s,n=zt(i,"beforeFooter",this,t),o=zt(i,"footer",this,t),r=zt(i,"afterFooter",this,t);let a=[];return a=ge(a,ke(n)),a=ge(a,ke(o)),a=ge(a,ke(r)),a}_createItems(t){const s=this._active,i=this.chart.data,n=[],o=[],r=[];let a=[],l,c;for(l=0,c=s.length;l<c;++l)a.push(N0(this.chart,s[l]));return t.filter&&(a=a.filter((f,h,u)=>t.filter(f,h,u,i))),t.itemSort&&(a=a.sort((f,h)=>t.itemSort(f,h,i))),lt(a,f=>{const h=Kc(t.callbacks,f);n.push(zt(h,"labelColor",this,f)),o.push(zt(h,"labelPointStyle",this,f)),r.push(zt(h,"labelTextColor",this,f))}),this.labelColors=n,this.labelPointStyles=o,this.labelTextColors=r,this.dataPoints=a,a}update(t,s){const i=this.options.setContext(this.getContext()),n=this._active;let o,r=[];if(!n.length)this.opacity!==0&&(o={opacity:0});else{const a=Mi[i.position].call(this,n,this._eventPosition);r=this._createItems(i),this.title=this.getTitle(r,i),this.beforeBody=this.getBeforeBody(r,i),this.body=this.getBody(r,i),this.afterBody=this.getAfterBody(r,i),this.footer=this.getFooter(r,i);const l=this._size=Wc(this,i),c=Object.assign({},a,l),f=jc(this.chart,i,c),h=$c(i,c,f,this.chart);this.xAlign=f.xAlign,this.yAlign=f.yAlign,o={opacity:1,x:h.x,y:h.y,width:l.width,height:l.height,caretX:a.x,caretY:a.y}}this._tooltipItems=r,this.$context=void 0,o&&this._resolveAnimations().update(this,o),t&&i.external&&i.external.call(this,{chart:this.chart,tooltip:this,replay:s})}drawCaret(t,s,i,n){const o=this.getCaretPosition(t,i,n);s.lineTo(o.x1,o.y1),s.lineTo(o.x2,o.y2),s.lineTo(o.x3,o.y3)}getCaretPosition(t,s,i){const{xAlign:n,yAlign:o}=this,{caretSize:r,cornerRadius:a}=i,{topLeft:l,topRight:c,bottomLeft:f,bottomRight:h}=Xs(a),{x:u,y:d}=t,{width:g,height:p}=s;let b,x,S,m,_,v;return o==="center"?(_=d+p/2,n==="left"?(b=u,x=b-r,m=_+r,v=_-r):(b=u+g,x=b+r,m=_-r,v=_+r),S=b):(n==="left"?x=u+Math.max(l,f)+r:n==="right"?x=u+g-Math.max(c,h)-r:x=this.caretX,o==="top"?(m=d,_=m-r,b=x-r,S=x+r):(m=d+p,_=m+r,b=x+r,S=x-r),v=m),{x1:b,x2:x,x3:S,y1:m,y2:_,y3:v}}drawTitle(t,s,i){const n=this.title,o=n.length;let r,a,l;if(o){const c=qs(i.rtl,this.x,this.width);for(t.x=Vn(this,i.titleAlign,i),s.textAlign=c.textAlign(i.titleAlign),s.textBaseline="middle",r=It(i.titleFont),a=i.titleSpacing,s.fillStyle=i.titleColor,s.font=r.string,l=0;l<o;++l)s.fillText(n[l],c.x(t.x),t.y+r.lineHeight/2),t.y+=r.lineHeight+a,l+1===o&&(t.y+=i.titleMarginBottom-a)}}_drawColorBox(t,s,i,n,o){const r=this.labelColors[i],a=this.labelPointStyles[i],{boxHeight:l,boxWidth:c}=o,f=It(o.bodyFont),h=Vn(this,"left",o),u=n.x(h),d=l<f.lineHeight?(f.lineHeight-l)/2:0,g=s.y+d;if(o.usePointStyle){const p={radius:Math.min(c,l)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},b=n.leftForLtr(u,c)+c/2,x=g+l/2;t.strokeStyle=o.multiKeyBackground,t.fillStyle=o.multiKeyBackground,Kr(t,p,b,x),t.strokeStyle=r.borderColor,t.fillStyle=r.backgroundColor,Kr(t,p,b,x)}else{t.lineWidth=st(r.borderWidth)?Math.max(...Object.values(r.borderWidth)):r.borderWidth||1,t.strokeStyle=r.borderColor,t.setLineDash(r.borderDash||[]),t.lineDashOffset=r.borderDashOffset||0;const p=n.leftForLtr(u,c),b=n.leftForLtr(n.xPlus(u,1),c-2),x=Xs(r.borderRadius);Object.values(x).some(S=>S!==0)?(t.beginPath(),t.fillStyle=o.multiKeyBackground,bo(t,{x:p,y:g,w:c,h:l,radius:x}),t.fill(),t.stroke(),t.fillStyle=r.backgroundColor,t.beginPath(),bo(t,{x:b,y:g+1,w:c-2,h:l-2,radius:x}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(p,g,c,l),t.strokeRect(p,g,c,l),t.fillStyle=r.backgroundColor,t.fillRect(b,g+1,c-2,l-2))}t.fillStyle=this.labelTextColors[i]}drawBody(t,s,i){const{body:n}=this,{bodySpacing:o,bodyAlign:r,displayColors:a,boxHeight:l,boxWidth:c,boxPadding:f}=i,h=It(i.bodyFont);let u=h.lineHeight,d=0;const g=qs(i.rtl,this.x,this.width),p=function(C){s.fillText(C,g.x(t.x+d),t.y+u/2),t.y+=u+o},b=g.textAlign(r);let x,S,m,_,v,M,k;for(s.textAlign=r,s.textBaseline="middle",s.font=h.string,t.x=Vn(this,b,i),s.fillStyle=i.bodyColor,lt(this.beforeBody,p),d=a&&b!=="right"?r==="center"?c/2+f:c+2+f:0,_=0,M=n.length;_<M;++_){for(x=n[_],S=this.labelTextColors[_],s.fillStyle=S,lt(x.before,p),m=x.lines,a&&m.length&&(this._drawColorBox(s,t,_,g,i),u=Math.max(h.lineHeight,l)),v=0,k=m.length;v<k;++v)p(m[v]),u=h.lineHeight;lt(x.after,p)}d=0,u=h.lineHeight,lt(this.afterBody,p),t.y-=o}drawFooter(t,s,i){const n=this.footer,o=n.length;let r,a;if(o){const l=qs(i.rtl,this.x,this.width);for(t.x=Vn(this,i.footerAlign,i),t.y+=i.footerMarginTop,s.textAlign=l.textAlign(i.footerAlign),s.textBaseline="middle",r=It(i.footerFont),s.fillStyle=i.footerColor,s.font=r.string,a=0;a<o;++a)s.fillText(n[a],l.x(t.x),t.y+r.lineHeight/2),t.y+=r.lineHeight+i.footerSpacing}}drawBackground(t,s,i,n){const{xAlign:o,yAlign:r}=this,{x:a,y:l}=t,{width:c,height:f}=i,{topLeft:h,topRight:u,bottomLeft:d,bottomRight:g}=Xs(n.cornerRadius);s.fillStyle=n.backgroundColor,s.strokeStyle=n.borderColor,s.lineWidth=n.borderWidth,s.beginPath(),s.moveTo(a+h,l),r==="top"&&this.drawCaret(t,s,i,n),s.lineTo(a+c-u,l),s.quadraticCurveTo(a+c,l,a+c,l+u),r==="center"&&o==="right"&&this.drawCaret(t,s,i,n),s.lineTo(a+c,l+f-g),s.quadraticCurveTo(a+c,l+f,a+c-g,l+f),r==="bottom"&&this.drawCaret(t,s,i,n),s.lineTo(a+d,l+f),s.quadraticCurveTo(a,l+f,a,l+f-d),r==="center"&&o==="left"&&this.drawCaret(t,s,i,n),s.lineTo(a,l+h),s.quadraticCurveTo(a,l,a+h,l),s.closePath(),s.fill(),n.borderWidth>0&&s.stroke()}_updateAnimationTarget(t){const s=this.chart,i=this.$animations,n=i&&i.x,o=i&&i.y;if(n||o){const r=Mi[t.position].call(this,this._active,this._eventPosition);if(!r)return;const a=this._size=Wc(this,t),l=Object.assign({},r,this._size),c=jc(s,t,l),f=$c(t,l,c,s);(n._to!==f.x||o._to!==f.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=a.width,this.height=a.height,this.caretX=r.x,this.caretY=r.y,this._resolveAnimations().update(this,f))}}_willRender(){return!!this.opacity}draw(t){const s=this.options.setContext(this.getContext());let i=this.opacity;if(!i)return;this._updateAnimationTarget(s);const n={width:this.width,height:this.height},o={x:this.x,y:this.y};i=Math.abs(i)<.001?0:i;const r=re(s.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;s.enabled&&a&&(t.save(),t.globalAlpha=i,this.drawBackground(o,t,n,s),Ou(t,s.textDirection),o.y+=r.top,this.drawTitle(o,t,s),this.drawBody(o,t,s),this.drawFooter(o,t,s),Du(t,s.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,s){const i=this._active,n=t.map(({datasetIndex:a,index:l})=>{const c=this.chart.getDatasetMeta(a);if(!c)throw new Error("Cannot find a dataset at index "+a);return{datasetIndex:a,element:c.data[l],index:l}}),o=!po(i,n),r=this._positionChanged(n,s);(o||r)&&(this._active=n,this._eventPosition=s,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,s,i=!0){if(s&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const n=this.options,o=this._active||[],r=this._getActiveElements(t,o,s,i),a=this._positionChanged(r,t),l=s||!po(r,o)||a;return l&&(this._active=r,(n.enabled||n.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,s))),l}_getActiveElements(t,s,i,n){const o=this.options;if(t.type==="mouseout")return[];if(!n)return s.filter(a=>this.chart.data.datasets[a.datasetIndex]&&this.chart.getDatasetMeta(a.datasetIndex).controller.getParsed(a.index)!==void 0);const r=this.chart.getElementsAtEventForMode(t,o.mode,o,i);return o.reverse&&r.reverse(),r}_positionChanged(t,s){const{caretX:i,caretY:n,options:o}=this,r=Mi[o.position].call(this,t,s);return r!==!1&&(i!==r.x||n!==r.y)}}U(Jr,"positioners",Mi);var dv={id:"tooltip",_element:Jr,positioners:Mi,afterInit(e,t,s){s&&(e.tooltip=new Jr({chart:e,options:s}))},beforeUpdate(e,t,s){e.tooltip&&e.tooltip.initialize(s)},reset(e,t,s){e.tooltip&&e.tooltip.initialize(s)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const s={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...s,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",s)}},afterEvent(e,t){if(e.tooltip){const s=t.replay;e.tooltip.handleEvent(t.event,s,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:sd},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const $0=(e,t,s,i)=>(typeof t=="string"?(s=e.push(t)-1,i.unshift({index:s,label:t})):isNaN(t)&&(s=null),s);function U0(e,t,s,i){const n=e.indexOf(t);if(n===-1)return $0(e,t,s,i);const o=e.lastIndexOf(t);return n!==o?s:n}const K0=(e,t)=>e===null?null:Ft(Math.round(e),0,t);function Yc(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}class Xc extends ci{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const s=this._addedLabels;if(s.length){const i=this.getLabels();for(const{index:n,label:o}of s)i[n]===o&&i.splice(n,1);this._addedLabels=[]}super.init(t)}parse(t,s){if(ot(t))return null;const i=this.getLabels();return s=isFinite(s)&&i[s]===t?s:U0(i,t,Q(s,t),this._addedLabels),K0(s,i.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:s}=this.getUserBounds();let{min:i,max:n}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(i=0),s||(n=this.getLabels().length-1)),this.min=i,this.max=n}buildTicks(){const t=this.min,s=this.max,i=this.options.offset,n=[];let o=this.getLabels();o=t===0&&s===o.length-1?o:o.slice(t,s+1),this._valueRange=Math.max(o.length-(i?0:1),1),this._startValue=this.min-(i?.5:0);for(let r=t;r<=s;r++)n.push({value:r});return n}getLabelForValue(t){return Yc.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return typeof t!="number"&&(t=this.parse(t)),t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const s=this.ticks;return t<0||t>s.length-1?null:this.getPixelForValue(s[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}U(Xc,"id","category"),U(Xc,"defaults",{ticks:{callback:Yc}});function Y0(e,t){const s=[],{bounds:n,step:o,min:r,max:a,precision:l,count:c,maxTicks:f,maxDigits:h,includeBounds:u}=e,d=o||1,g=f-1,{min:p,max:b}=t,x=!ot(r),S=!ot(a),m=!ot(c),_=(b-p)/(h+1);let v=$l((b-p)/g/d)*d,M,k,C,T;if(v<1e-14&&!x&&!S)return[{value:p},{value:b}];T=Math.ceil(b/v)-Math.floor(p/v),T>g&&(v=$l(T*v/g/d)*d),ot(l)||(M=Math.pow(10,l),v=Math.ceil(v*M)/M),n==="ticks"?(k=Math.floor(p/v)*v,C=Math.ceil(b/v)*v):(k=p,C=b),x&&S&&o&&t_((a-r)/o,v/1e3)?(T=Math.round(Math.min((a-r)/v,f)),v=(a-r)/T,k=r,C=a):m?(k=x?r:k,C=S?a:C,T=c-1,v=(C-k)/T):(T=(C-k)/v,Ri(T,Math.round(T),v/1e3)?T=Math.round(T):T=Math.ceil(T));const A=Math.max(Ul(v),Ul(k));M=Math.pow(10,ot(l)?A:l),k=Math.round(k*M)/M,C=Math.round(C*M)/M;let L=0;for(x&&(u&&k!==r?(s.push({value:r}),k<r&&L++,Ri(Math.round((k+L*v)*M)/M,r,qc(r,_,e))&&L++):k<r&&L++);L<T;++L){const P=Math.round((k+L*v)*M)/M;if(S&&P>a)break;s.push({value:P})}return S&&u&&C!==a?s.length&&Ri(s[s.length-1].value,a,qc(a,_,e))?s[s.length-1].value=a:s.push({value:a}):(!S||C===a)&&s.push({value:C}),s}function qc(e,t,{horizontal:s,minRotation:i}){const n=Re(i),o=(s?Math.sin(n):Math.cos(n))||.001,r=.75*t*(""+e).length;return Math.min(t/o,r)}class X0 extends ci{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,s){return ot(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:s,maxDefined:i}=this.getUserBounds();let{min:n,max:o}=this;const r=l=>n=s?n:l,a=l=>o=i?o:l;if(t){const l=ye(n),c=ye(o);l<0&&c<0?a(0):l>0&&c>0&&r(0)}if(n===o){let l=o===0?1:Math.abs(o*.05);a(o+l),t||r(n-l)}this.min=n,this.max=o}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:s,stepSize:i}=t,n;return i?(n=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,n>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${n} ticks. Limiting to 1000.`),n=1e3)):(n=this.computeTickLimit(),s=s||11),s&&(n=Math.min(s,n)),n}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,s=t.ticks;let i=this.getTickLimit();i=Math.max(2,i);const n={maxTicks:i,bounds:t.bounds,min:t.min,max:t.max,precision:s.precision,step:s.stepSize,count:s.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:s.minRotation||0,includeBounds:s.includeBounds!==!1},o=this._range||this,r=Y0(n,o);return t.bounds==="ticks"&&e_(r,this,"value"),t.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}configure(){const t=this.ticks;let s=this.min,i=this.max;if(super.configure(),this.options.offset&&t.length){const n=(i-s)/Math.max(t.length-1,1)/2;s-=n,i+=n}this._startValue=s,this._endValue=i,this._valueRange=i-s}getLabelForValue(t){return Fa(t,this.chart.options.locale,this.options.ticks.format)}}class Gc extends X0{determineDataLimits(){const{min:t,max:s}=this.getMinMax(!0);this.min=Nt(t)?t:0,this.max=Nt(s)?s:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),s=t?this.width:this.height,i=Re(this.options.ticks.minRotation),n=(t?Math.sin(i):Math.cos(i))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(s/Math.min(40,o.lineHeight/n))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}U(Gc,"id","linear"),U(Gc,"defaults",{ticks:{callback:wu.formatters.numeric}});const Uo={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},$t=Object.keys(Uo);function Jc(e,t){return e-t}function Zc(e,t){if(ot(t))return null;const s=e._adapter,{parser:i,round:n,isoWeekday:o}=e._parseOpts;let r=t;return typeof i=="function"&&(r=i(r)),Nt(r)||(r=typeof i=="string"?s.parse(r,i):s.parse(r)),r===null?null:(n&&(r=n==="week"&&(Ji(o)||o===!0)?s.startOf(r,"isoWeek",o):s.startOf(r,n)),+r)}function Qc(e,t,s,i){const n=$t.length;for(let o=$t.indexOf(e);o<n-1;++o){const r=Uo[$t[o]],a=r.steps?r.steps:Number.MAX_SAFE_INTEGER;if(r.common&&Math.ceil((s-t)/(a*r.size))<=i)return $t[o]}return $t[n-1]}function q0(e,t,s,i,n){for(let o=$t.length-1;o>=$t.indexOf(s);o--){const r=$t[o];if(Uo[r].common&&e._adapter.diff(n,i,r)>=t-1)return r}return $t[s?$t.indexOf(s):0]}function G0(e){for(let t=$t.indexOf(e)+1,s=$t.length;t<s;++t)if(Uo[$t[t]].common)return $t[t]}function tf(e,t,s){if(!s)e[t]=!0;else if(s.length){const{lo:i,hi:n}=Da(s,t),o=s[i]>=t?s[i]:s[n];e[o]=!0}}function J0(e,t,s,i){const n=e._adapter,o=+n.startOf(t[0].value,i),r=t[t.length-1].value;let a,l;for(a=o;a<=r;a=+n.add(a,1,i))l=s[a],l>=0&&(t[l].major=!0);return t}function ef(e,t,s){const i=[],n={},o=t.length;let r,a;for(r=0;r<o;++r)a=t[r],n[a]=r,i.push({value:a,major:!1});return o===0||!s?i:J0(e,i,n,s)}class vo extends ci{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,s={}){const i=t.time||(t.time={}),n=this._adapter=new Ny._date(t.adapters.date);n.init(s),Di(i.displayFormats,n.formats()),this._parseOpts={parser:i.parser,round:i.round,isoWeekday:i.isoWeekday},super.init(t),this._normalized=s.normalized}parse(t,s){return t===void 0?null:Zc(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,s=this._adapter,i=t.time.unit||"day";let{min:n,max:o,minDefined:r,maxDefined:a}=this.getUserBounds();function l(c){!r&&!isNaN(c.min)&&(n=Math.min(n,c.min)),!a&&!isNaN(c.max)&&(o=Math.max(o,c.max))}(!r||!a)&&(l(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&l(this.getMinMax(!1))),n=Nt(n)&&!isNaN(n)?n:+s.startOf(Date.now(),i),o=Nt(o)&&!isNaN(o)?o:+s.endOf(Date.now(),i)+1,this.min=Math.min(n,o-1),this.max=Math.max(n+1,o)}_getLabelBounds(){const t=this.getLabelTimestamps();let s=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;return t.length&&(s=t[0],i=t[t.length-1]),{min:s,max:i}}buildTicks(){const t=this.options,s=t.time,i=t.ticks,n=i.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&n.length&&(this.min=this._userMin||n[0],this.max=this._userMax||n[n.length-1]);const o=this.min,r=this.max,a=r_(n,o,r);return this._unit=s.unit||(i.autoSkip?Qc(s.minUnit,this.min,this.max,this._getLabelCapacity(o)):q0(this,a.length,s.minUnit,this.min,this.max)),this._majorUnit=!i.major.enabled||this._unit==="year"?void 0:G0(this._unit),this.initOffsets(n),t.reverse&&a.reverse(),ef(this,a,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let s=0,i=0,n,o;this.options.offset&&t.length&&(n=this.getDecimalForValue(t[0]),t.length===1?s=1-n:s=(this.getDecimalForValue(t[1])-n)/2,o=this.getDecimalForValue(t[t.length-1]),t.length===1?i=o:i=(o-this.getDecimalForValue(t[t.length-2]))/2);const r=t.length<3?.5:.25;s=Ft(s,0,r),i=Ft(i,0,r),this._offsets={start:s,end:i,factor:1/(s+1+i)}}_generate(){const t=this._adapter,s=this.min,i=this.max,n=this.options,o=n.time,r=o.unit||Qc(o.minUnit,s,i,this._getLabelCapacity(s)),a=Q(n.ticks.stepSize,1),l=r==="week"?o.isoWeekday:!1,c=Ji(l)||l===!0,f={};let h=s,u,d;if(c&&(h=+t.startOf(h,"isoWeek",l)),h=+t.startOf(h,c?"day":r),t.diff(i,s,r)>1e5*a)throw new Error(s+" and "+i+" are too far apart with stepSize of "+a+" "+r);const g=n.ticks.source==="data"&&this.getDataTimestamps();for(u=h,d=0;u<i;u=+t.add(u,a,r),d++)tf(f,u,g);return(u===i||n.bounds==="ticks"||d===1)&&tf(f,u,g),Object.keys(f).sort(Jc).map(p=>+p)}getLabelForValue(t){const s=this._adapter,i=this.options.time;return i.tooltipFormat?s.format(t,i.tooltipFormat):s.format(t,i.displayFormats.datetime)}format(t,s){const n=this.options.time.displayFormats,o=this._unit,r=s||n[o];return this._adapter.format(t,r)}_tickFormatFunction(t,s,i,n){const o=this.options,r=o.ticks.callback;if(r)return pt(r,[t,s,i],this);const a=o.time.displayFormats,l=this._unit,c=this._majorUnit,f=l&&a[l],h=c&&a[c],u=i[s],d=c&&h&&u&&u.major;return this._adapter.format(t,n||(d?h:f))}generateTickLabels(t){let s,i,n;for(s=0,i=t.length;s<i;++s)n=t[s],n.label=this._tickFormatFunction(n.value,s,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const s=this._offsets,i=this.getDecimalForValue(t);return this.getPixelForDecimal((s.start+i)*s.factor)}getValueForPixel(t){const s=this._offsets,i=this.getDecimalForPixel(t)/s.factor-s.end;return this.min+i*(this.max-this.min)}_getLabelSize(t){const s=this.options.ticks,i=this.ctx.measureText(t).width,n=Re(this.isHorizontal()?s.maxRotation:s.minRotation),o=Math.cos(n),r=Math.sin(n),a=this._resolveTickFontOptions(0).size;return{w:i*o+a*r,h:i*r+a*o}}_getLabelCapacity(t){const s=this.options.time,i=s.displayFormats,n=i[s.unit]||i.millisecond,o=this._tickFormatFunction(t,0,ef(this,[t],this._majorUnit),n),r=this._getLabelSize(o),a=Math.floor(this.isHorizontal()?this.width/r.w:this.height/r.h)-1;return a>0?a:1}getDataTimestamps(){let t=this._cache.data||[],s,i;if(t.length)return t;const n=this.getMatchingVisibleMetas();if(this._normalized&&n.length)return this._cache.data=n[0].controller.getAllParsedValues(this);for(s=0,i=n.length;s<i;++s)t=t.concat(n[s].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){const t=this._cache.labels||[];let s,i;if(t.length)return t;const n=this.getLabels();for(s=0,i=n.length;s<i;++s)t.push(Zc(this,n[s]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return xu(t.sort(Jc))}}U(vo,"id","time"),U(vo,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function zn(e,t,s){let i=0,n=e.length-1,o,r,a,l;s?(t>=e[i].pos&&t<=e[n].pos&&({lo:i,hi:n}=ps(e,"pos",t)),{pos:o,time:a}=e[i],{pos:r,time:l}=e[n]):(t>=e[i].time&&t<=e[n].time&&({lo:i,hi:n}=ps(e,"time",t)),{time:o,pos:a}=e[i],{time:r,pos:l}=e[n]);const c=r-o;return c?a+(l-a)*(t-o)/c:a}class sf extends vo{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),s=this._table=this.buildLookupTable(t);this._minPos=zn(s,this.min),this._tableRange=zn(s,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:s,max:i}=this,n=[],o=[];let r,a,l,c,f;for(r=0,a=t.length;r<a;++r)c=t[r],c>=s&&c<=i&&n.push(c);if(n.length<2)return[{time:s,pos:0},{time:i,pos:1}];for(r=0,a=n.length;r<a;++r)f=n[r+1],l=n[r-1],c=n[r],Math.round((f+l)/2)!==c&&o.push({time:c,pos:r/(a-1)});return o}_generate(){const t=this.min,s=this.max;let i=super.getDataTimestamps();return(!i.includes(t)||!i.length)&&i.splice(0,0,t),(!i.includes(s)||i.length===1)&&i.push(s),i.sort((n,o)=>n-o)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const s=this.getDataTimestamps(),i=this.getLabelTimestamps();return s.length&&i.length?t=this.normalize(s.concat(i)):t=s.length?s:i,t=this._cache.all=t,t}getDecimalForValue(t){return(zn(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const s=this._offsets,i=this.getDecimalForPixel(t)/s.factor-s.end;return zn(this._table,i*this._tableRange+this._minPos,!0)}}U(sf,"id","timeseries"),U(sf,"defaults",vo.defaults);const id={data:{type:Object,required:!0},options:{type:Object,default:()=>({})},plugins:{type:Array,default:()=>[]},datasetIdKey:{type:String,default:"label"},updateMode:{type:String,default:void 0}},Z0={ariaLabel:{type:String},ariaDescribedby:{type:String}},Q0={type:{type:String,required:!0},destroyDelay:{type:Number,default:0},...id,...Z0},tv=Ta[0]==="2"?(e,t)=>Object.assign(e,{attrs:t}):(e,t)=>Object.assign(e,t);function Hs(e){return Os(e)?tt(e):e}function ev(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e;return Os(t)?new Proxy(e,{}):e}function sv(e,t){const s=e.options;s&&t&&Object.assign(s,t)}function nd(e,t){e.labels=t}function od(e,t,s){const i=[];e.datasets=t.map(n=>{const o=e.datasets.find(r=>r[s]===n[s]);return!o||!n.data||i.includes(o)?{...n}:(i.push(o),Object.assign(o,n),o)})}function iv(e,t){const s={labels:[],datasets:[]};return nd(s,e.labels),od(s,e.datasets,t),s}const nv=fn({props:Q0,setup(e,t){let{expose:s,slots:i}=t;const n=$s(null),o=Oo(null);s({chart:o});const r=()=>{if(!n.value)return;const{type:c,data:f,options:h,plugins:u,datasetIdKey:d}=e,g=iv(f,d),p=ev(g,f);o.value=new ja(n.value,{type:c,data:p,options:{...h},plugins:u})},a=()=>{const c=tt(o.value);c&&(e.destroyDelay>0?setTimeout(()=>{c.destroy(),o.value=null},e.destroyDelay):(c.destroy(),o.value=null))},l=c=>{c.update(e.updateMode)};return li(r),un(a),Ss([()=>e.options,()=>e.data],(c,f)=>{let[h,u]=c,[d,g]=f;const p=tt(o.value);if(!p)return;let b=!1;if(h){const x=Hs(h),S=Hs(d);x&&x!==S&&(sv(p,x),b=!0)}if(u){const x=Hs(u.labels),S=Hs(g.labels),m=Hs(u.datasets),_=Hs(g.datasets);x!==S&&(nd(p.config.data,x),b=!0),m&&m!==_&&(od(p.config.data,m,e.datasetIdKey),b=!0)}b&&cn(()=>{l(p)})},{deep:!0}),()=>Yi("canvas",{role:"img","aria-label":e.ariaLabel,"aria-describedby":e.ariaDescribedby,ref:n},[Yi("p",{},[i.default?i.default():""])])}});function $a(e,t){return ja.register(t),fn({props:id,setup(s,i){let{expose:n}=i;const o=Oo(null),r=a=>{o.value=a==null?void 0:a.chart};return n({chart:o}),()=>Yi(nv,tv({ref:r},{type:e,...s}))}})}const pv=$a("bar",Yn),gv=$a("doughnut",Si),mv=$a("line",Xn);export{un as $,Sa as A,mg as B,Rh as C,ro as D,fa as E,wt as F,_g as G,gt as H,oi as I,ri as J,Ve as K,li as L,Io as M,pg as N,af as O,wa as P,ia as Q,Yt as R,Cp as S,Mt as T,js as U,Xp as V,bt as W,ve as X,Dh as Y,_b as Z,mb as _,Po as a,_p as a0,vp as a1,Zn as a2,Rf as a3,Fo as a4,xp as a5,Kp as a6,gm as a7,Wr as a8,Eg as a9,gs as aA,uv as aB,dv as aC,hv as aD,fv as aE,mv as aF,xr as aG,pv as aH,Hn as aI,gv as aJ,$p as aK,Xh as aL,jg as aM,yg as aN,uo as aO,Zt as aa,ft as ab,ht as ac,Zr as ad,ne as ae,cd as af,ni as ag,et as ah,rt as ai,j as aj,ii as ak,_s as al,Od as am,Dd as an,Rd as ao,Ld as ap,rf as aq,Kt as ar,Sd as as,av as at,rv as au,Bm as av,ja as aw,Xc as ax,Gc as ay,br as az,Fe as b,Mp as c,Hh as d,qd as e,Pi as f,pf as g,zg as h,vt as i,fn as j,Ef as k,Yi as l,Of as m,cn as n,Gd as o,ah as p,Pg as q,$s as r,Oo as s,tt as t,ln as u,Wg as v,Ss as w,um as x,Ui as y,mm as z};