dsp-semactic 0.3.3 → 0.3.5

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.
@@ -1 +1,97 @@
1
- (function(x,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(x=typeof globalThis<"u"?globalThis:x||self,e(x.VueDesignSystem={},x.Vue))})(this,function(x,e){"use strict";const z=(c,s)=>{const d=c.__vccOpts||c;for(const[u,r]of s)d[u]=r;return d},X=z({__name:"MyButton",props:{label:{type:String,required:!0},primary:{type:Boolean,default:!1},size:{type:String,validator:function(c){return["small","medium","large"].indexOf(c)!==-1}},backgroundColor:{type:String}},emits:["click"],setup(c,{emit:s}){const d=c,u=s,r=e.computed(()=>({"storybook-button":!0,"storybook-button--primary":d.primary,"storybook-button--secondary":!d.primary,[`storybook-button--${d.size||"medium"}`]:!0})),L=e.computed(()=>({backgroundColor:d.backgroundColor})),N=()=>{u("click")};return(k,p)=>(e.openBlock(),e.createElementBlock("button",{type:"button",class:e.normalizeClass(r.value),onClick:N,style:e.normalizeStyle(L.value)},e.toDisplayString(c.label),7))}},[["__scopeId","data-v-ade7987a"]]),G={key:0,class:"chart-title"},P={key:1,class:"chart-subtitle"},q=["width","height"],R={key:0},j={key:0,class:"grid-lines"},O=["x1","x2","y1","y2"],W=["x1","x2","y1","y2"],Z={class:"axes"},H=["x1","x2","y1","y2"],J=["x1","x2","y1","y2"],K={class:"axis-labels"},Q=["x","y"],U=["x","y"],v=["x","y"],ee=["y","transform"],te={class:"chart-data"},oe={key:0},le=["d","stroke","stroke-width"],ne=["cx","cy","r","fill","onMouseover"],ae={key:1},re=["d","fill","fill-opacity","stroke","stroke-width"],ce={key:2},se=["x","y","width","height","fill","onMouseover"],ie={key:1,class:"radial-chart"},de=["cx","cy","r"],he=["d"],me={key:2},ue=["cx","cy","r"],ye={class:"radial-data"},ke=["d","fill","fill-opacity","stroke","onMouseover"],pe={class:"chart-logos"},fe=["cx","cy","r","fill"],ge=["x","y","width","height","xlink:href","onLoad","onError","clip-path"],xe={key:2,class:"chart-legend"},Be=["onClick"],Ee={class:"legend-text"},$e={class:"tooltip-title"},be={class:"tooltip-value"},w=60,D=z({__name:"Graph",props:{series:{type:Array,required:!0,default:()=>[]},chartType:{type:String,default:"line",validator:c=>["line","area","bar","radial","semi-radial"].includes(c)},width:{type:Number,default:800},height:{type:Number,default:400},title:{type:String,default:""},subtitle:{type:String,default:""},xAxisTitle:{type:String,default:""},yAxisTitle:{type:String,default:""},categories:{type:Array,default:()=>[]},colors:{type:Array,default:()=>["#3498db","#e74c3c","#2ecc71","#f39c12","#9b59b6","#1abc9c","#34495e"]},logos:{type:Array,default:()=>[]},showGrid:{type:Boolean,default:!0},showLegend:{type:Boolean,default:!0},strokeWidth:{type:Number,default:2},markerSize:{type:Number,default:4},areaOpacity:{type:Number,default:.3}},setup(c){const s=c,d=e.ref(new Set),u=e.ref({show:!1,x:0,y:0,title:"",value:""}),r=e.computed(()=>({left:w,top:w,right:s.width-w,bottom:s.height-w,width:s.width-w*2,height:s.height-w*2})),L=e.computed(()=>["line","area","bar"].includes(s.chartType)),N=e.computed(()=>["radial","semi-radial"].includes(s.chartType)),k=e.computed(()=>s.width/2),p=e.computed(()=>s.height/2),h=e.computed(()=>Math.min(r.value.width,r.value.height)/2-20),B=e.computed(()=>h.value*.3),f=e.computed(()=>s.series.filter((l,n)=>!d.value.has(n))),_=e.computed(()=>{if(!f.value.length)return{minX:0,maxX:1,minY:0,maxY:1};let l=1/0,n=-1/0,t=0;f.value.forEach(a=>{a.data&&a.data.length&&(t=Math.max(t,a.data.length-1),a.data.forEach(i=>{typeof i=="number"&&(l=Math.min(l,i),n=Math.max(n,i))}))}),l===1/0&&(l=0,n=100);const o=(n-l)*.1;return{minX:0,maxX:t,minY:Math.max(0,l-o),maxY:n+o}}),M=l=>{const{minX:n,maxX:t}=_.value,o=t-n||1;return r.value.left+(l-n)/o*r.value.width},E=l=>{const{minY:n,maxY:t}=_.value,o=t-n||1;return r.value.bottom-(l-n)/o*r.value.height},_e=e.computed(()=>{const l=[];for(let t=0;t<=5;t++){const o=r.value.top+r.value.height/5*t;l.push({y:o})}return l}),Me=e.computed(()=>{const l=[],n=Math.min(_.value.maxX||5,6);for(let t=0;t<=n;t++){const o=r.value.left+r.value.width/n*t;l.push({x:o})}return l}),Se=e.computed(()=>{const l=[],{maxX:n}=_.value,t=Math.max(1,Math.floor(n/6));for(let o=0;o<=n;o+=t)l.push({x:M(o),y:r.value.bottom+20,text:s.categories[o]||o.toString()});return l}),Ne=e.computed(()=>{const l=[],{minY:n,maxY:t}=_.value,o=5;for(let a=0;a<=o;a++){const i=n+(t-n)*(a/o);l.push({x:r.value.left-10,y:E(i),text:Math.round(i).toString()})}return l}),$=l=>s.colors[l%s.colors.length],Le=e.computed(()=>s.chartType!=="line"?[]:f.value.map((l,n)=>{const t=s.series.findIndex(i=>i===l),o=l.data.map((i,g)=>({x:M(g),y:E(i)}));return{path:o.length>0?`M ${o[0].x} ${o[0].y}`+o.slice(1).map(i=>` L ${i.x} ${i.y}`).join(""):"",color:$(t)}})),Ce=e.computed(()=>{if(s.chartType!=="line")return[];const l=[];return f.value.forEach((n,t)=>{const o=s.series.findIndex(a=>a===n);n.data.forEach((a,i)=>{l.push({x:M(i),y:E(a),color:$(o),value:a,label:s.categories[i]||i.toString(),seriesName:n.name})})}),l}),Ve=e.computed(()=>s.chartType!=="area"?[]:f.value.map((l,n)=>{const t=s.series.findIndex(i=>i===l),o=l.data.map((i,g)=>({x:M(g),y:E(i)}));if(o.length===0)return{path:"",color:$(t)};let a=`M ${o[0].x} ${r.value.bottom}`;return a+=` L ${o[0].x} ${o[0].y}`,o.slice(1).forEach(i=>{a+=` L ${i.x} ${i.y}`}),a+=` L ${o[o.length-1].x} ${r.value.bottom} Z`,{path:a,color:$(t)}})),Ie=e.computed(()=>{if(s.chartType!=="bar")return[];const l=[],{maxX:n}=_.value,t=r.value.width/(n+1)*.8,o=f.value.length,a=t/o;return f.value.forEach((i,g)=>{const m=s.series.findIndex(y=>y===i);i.data.forEach((y,b)=>{const I=M(b)-t/2+g*a,T=E(Math.max(0,y)),A=Math.abs(E(0)-E(y));l.push({x:I,y:T,width:a-2,height:A,color:$(m),value:y,label:s.categories[b]||b.toString(),seriesName:i.name})})}),l}),Te=e.computed(()=>{const l=[];for(let t=1;t<=4;t++)l.push(B.value+(h.value-B.value)*(t/4));return l}),Ae=e.computed(()=>{if(s.chartType!=="semi-radial")return"";const l=k.value-h.value,n=p.value,t=k.value+h.value,o=p.value;return`M ${l} ${n} A ${h.value} ${h.value} 0 0 0 ${t} ${o}`}),ze=e.computed(()=>{if(!N.value)return[];const l=[],n=f.value.reduce((a,i)=>a+(i.data[0]||0),0);if(n===0)return[];let t=s.chartType==="semi-radial"?Math.PI:-Math.PI/2;const o=s.chartType==="semi-radial"?Math.PI:Math.PI*2;return f.value.forEach((a,i)=>{const g=s.series.findIndex(Oe=>Oe===a),m=a.data[0]||0,y=m/n*o,b=t,S=t+y,I=k.value+Math.cos(b)*B.value,T=p.value+Math.sin(b)*B.value,A=k.value+Math.cos(S)*B.value,Fe=p.value+Math.sin(S)*B.value,Ge=k.value+Math.cos(S)*h.value,Pe=p.value+Math.sin(S)*h.value,qe=k.value+Math.cos(b)*h.value,Re=p.value+Math.sin(b)*h.value,F=y>Math.PI?1:0,je=[`M ${I} ${T}`,`A ${B.value} ${B.value} 0 ${F} 1 ${A} ${Fe}`,`L ${Ge} ${Pe}`,`A ${h.value} ${h.value} 0 ${F} 0 ${qe} ${Re}`,"Z"].join(" ");l.push({path:je,color:$(g),value:m,seriesName:a.name,opacity:.8}),t=S}),l}),Y=e.computed(()=>(console.log("Calculating logo positions...",s.logos),s.logos.map((l,n)=>{var g;const t=s.series[l.seriesIndex];if(console.log(`Logo ${n}:`,{seriesIndex:l.seriesIndex,series:t,hasData:((g=t==null?void 0:t.data)==null?void 0:g.length)>0,isHidden:d.value.has(l.seriesIndex)}),!t||!t.data||t.data.length===0)return console.warn(`No data for logo series ${l.seriesIndex}`),null;if(d.value.has(l.seriesIndex))return null;let o,a;if(L.value){const m=t.data.length-1,y=t.data[m];o=M(m)+(l.offsetX||0),a=E(y)+(l.offsetY||0),console.log("Linear chart logo position:",{x:o,y:a,lastValue:y,lastIndex:m})}else if(N.value){const m=Math.PI*2/s.logos.length*n;o=k.value+Math.cos(m)*(h.value+30)+(l.offsetX||0),a=p.value+Math.sin(m)*(h.value+30)+(l.offsetY||0),console.log("Radial chart logo position:",{x:o,y:a,angle:m})}const i={...l,x:o,y:a,seriesIndex:l.seriesIndex};return console.log("Final logo position:",i),i}).filter(Boolean))),Xe=l=>{console.log(`Logo ${l} loaded successfully`);const n=document.querySelector(`.logo-fallback-${l}`),t=document.querySelector(`.logo-image-${l}`);n&&(n.style.opacity="0"),t&&(t.style.opacity="1")},De=l=>{console.warn(`Logo ${l} failed to load, keeping fallback circle`);const n=document.querySelector(`.logo-image-${l}`);n&&(n.style.display="none")},Ye=l=>{d.value.has(l)?d.value.delete(l):d.value.add(l)},C=(l,n)=>{var o;const t=n.target.closest(".custom-chart-container").getBoundingClientRect();u.value={show:!0,x:n.clientX-t.left+10,y:n.clientY-t.top-10,title:l.seriesName||l.label||"",value:((o=l.value)==null?void 0:o.toString())||""}},V=()=>{u.value.show=!1};return(l,n)=>(e.openBlock(),e.createElementBlock("div",{class:"custom-chart-container",style:e.normalizeStyle({width:c.width+"px",height:c.height+"px"})},[c.title?(e.openBlock(),e.createElementBlock("div",G,e.toDisplayString(c.title),1)):e.createCommentVNode("",!0),c.subtitle?(e.openBlock(),e.createElementBlock("div",P,e.toDisplayString(c.subtitle),1)):e.createCommentVNode("",!0),(e.openBlock(),e.createElementBlock("svg",{width:c.width,height:c.height,class:"chart-svg"},[L.value?(e.openBlock(),e.createElementBlock("g",R,[c.showGrid?(e.openBlock(),e.createElementBlock("g",j,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_e.value,(t,o)=>(e.openBlock(),e.createElementBlock("line",{key:`h-grid-${o}`,x1:r.value.left,x2:r.value.right,y1:t.y,y2:t.y,stroke:"#e0e0e0","stroke-width":"1","stroke-dasharray":"2,2"},null,8,O))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Me.value,(t,o)=>(e.openBlock(),e.createElementBlock("line",{key:`v-grid-${o}`,x1:t.x,x2:t.x,y1:r.value.top,y2:r.value.bottom,stroke:"#e0e0e0","stroke-width":"1","stroke-dasharray":"2,2"},null,8,W))),128))])):e.createCommentVNode("",!0),e.createElementVNode("g",Z,[e.createElementVNode("line",{x1:r.value.left,x2:r.value.right,y1:r.value.bottom,y2:r.value.bottom,stroke:"#ccc","stroke-width":"1"},null,8,H),e.createElementVNode("line",{x1:r.value.left,x2:r.value.left,y1:r.value.top,y2:r.value.bottom,stroke:"#ccc","stroke-width":"1"},null,8,J)]),e.createElementVNode("g",K,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Se.value,(t,o)=>(e.openBlock(),e.createElementBlock("text",{key:`x-${o}`,x:t.x,y:t.y,"text-anchor":"middle","font-size":"12",fill:"#666"},e.toDisplayString(t.text),9,Q))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Ne.value,(t,o)=>(e.openBlock(),e.createElementBlock("text",{key:`y-${o}`,x:t.x,y:t.y,"text-anchor":"end","font-size":"12",fill:"#666","dominant-baseline":"middle"},e.toDisplayString(t.text),9,U))),128)),c.xAxisTitle?(e.openBlock(),e.createElementBlock("text",{key:0,x:r.value.left+r.value.width/2,y:c.height-15,"text-anchor":"middle","font-size":"14","font-weight":"bold",fill:"#333"},e.toDisplayString(c.xAxisTitle),9,v)):e.createCommentVNode("",!0),c.yAxisTitle?(e.openBlock(),e.createElementBlock("text",{key:1,x:15,y:r.value.top+r.value.height/2,"text-anchor":"middle","font-size":"14","font-weight":"bold",fill:"#333",transform:`rotate(-90, 15, ${r.value.top+r.value.height/2})`},e.toDisplayString(c.yAxisTitle),9,ee)):e.createCommentVNode("",!0)]),e.createElementVNode("g",te,[c.chartType==="line"?(e.openBlock(),e.createElementBlock("g",oe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Le.value,(t,o)=>(e.openBlock(),e.createElementBlock("path",{key:`line-${o}`,d:t.path,stroke:t.color,"stroke-width":c.strokeWidth,fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},null,8,le))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Ce.value,(t,o)=>(e.openBlock(),e.createElementBlock("circle",{key:`point-${o}`,cx:t.x,cy:t.y,r:c.markerSize,fill:t.color,stroke:"white","stroke-width":"2",onMouseover:a=>C(t,a),onMouseleave:V},null,40,ne))),128))])):e.createCommentVNode("",!0),c.chartType==="area"?(e.openBlock(),e.createElementBlock("g",ae,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Ve.value,(t,o)=>(e.openBlock(),e.createElementBlock("path",{key:`area-${o}`,d:t.path,fill:t.color,"fill-opacity":c.areaOpacity,stroke:t.color,"stroke-width":c.strokeWidth},null,8,re))),128))])):e.createCommentVNode("",!0),c.chartType==="bar"?(e.openBlock(),e.createElementBlock("g",ce,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Ie.value,(t,o)=>(e.openBlock(),e.createElementBlock("rect",{key:`bar-${o}`,x:t.x,y:t.y,width:t.width,height:t.height,fill:t.color,stroke:"white","stroke-width":"1",onMouseover:a=>C(t,a),onMouseleave:V},null,40,se))),128))])):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0),N.value?(e.openBlock(),e.createElementBlock("g",ie,[c.chartType==="radial"?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:k.value,cy:p.value,r:h.value,fill:"none",stroke:"#e0e0e0","stroke-width":"1"},null,8,de)):e.createCommentVNode("",!0),c.chartType==="semi-radial"?(e.openBlock(),e.createElementBlock("path",{key:1,d:Ae.value,fill:"none",stroke:"#e0e0e0","stroke-width":"1"},null,8,he)):e.createCommentVNode("",!0),c.showGrid?(e.openBlock(),e.createElementBlock("g",me,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Te.value,t=>(e.openBlock(),e.createElementBlock("circle",{key:`grid-${t}`,cx:k.value,cy:p.value,r:t,fill:"none",stroke:"#f0f0f0","stroke-width":"1"},null,8,ue))),128))])):e.createCommentVNode("",!0),e.createElementVNode("g",ye,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ze.value,(t,o)=>(e.openBlock(),e.createElementBlock("path",{key:`radial-${o}`,d:t.path,fill:t.color,"fill-opacity":t.opacity||.8,stroke:t.color,"stroke-width":2,onMouseover:a=>C(t,a),onMouseleave:V},null,40,ke))),128))])])):e.createCommentVNode("",!0),e.createElementVNode("g",pe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Y.value,(t,o)=>(e.openBlock(),e.createElementBlock("circle",{key:`logo-fallback-${o}`,cx:t.x,cy:t.y,r:t.width/2,fill:$(t.seriesIndex),stroke:"white","stroke-width":"2",class:e.normalizeClass(`logo-fallback-${o}`)},null,10,fe))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Y.value,(t,o)=>(e.openBlock(),e.createElementBlock("image",{key:`logo-${o}`,x:t.x-t.width/2,y:t.y-t.height/2,width:t.width,height:t.height,"xlink:href":t.url,onLoad:a=>Xe(o),onError:a=>De(o),class:e.normalizeClass(`logo-image-${o}`),"clip-path":`circle(${t.width/2}px at ${t.width/2}px ${t.height/2}px)`},null,42,ge))),128))])],8,q)),c.showLegend?(e.openBlock(),e.createElementBlock("div",xe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,(t,o)=>(e.openBlock(),e.createElementBlock("div",{key:`legend-${o}`,class:e.normalizeClass(["legend-item",{hidden:d.value.has(o)}]),onClick:a=>Ye(o)},[e.createElementVNode("div",{class:"legend-color",style:e.normalizeStyle({backgroundColor:$(o)})},null,4),e.createElementVNode("span",Ee,e.toDisplayString(t.name),1)],10,Be))),128))])):e.createCommentVNode("",!0),u.value.show?(e.openBlock(),e.createElementBlock("div",{key:3,class:"chart-tooltip",style:e.normalizeStyle({left:u.value.x+"px",top:u.value.y+"px"})},[e.createElementVNode("div",$e,e.toDisplayString(u.value.title),1),e.createElementVNode("div",be,e.toDisplayString(u.value.value),1)],4)):e.createCommentVNode("",!0)],4))}},[["__scopeId","data-v-a8dbe667"]]),we={MyButton:X,Graph:D};x.Graph=D,x.MyButton=X,x.default=we,Object.defineProperties(x,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
1
+ (function(rt,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(rt=typeof globalThis<"u"?globalThis:rt||self,t(rt.VueDesignSystem={},rt.Vue))})(this,function(rt,t){"use strict";/*!
2
+ * shared v9.14.4
3
+ * (c) 2025 kazuya kawaguchi
4
+ * Released under the MIT License.
5
+ */const it=typeof window<"u";let Ge,Pt;if(process.env.NODE_ENV!=="production"){const e=it&&window.performance;e&&e.mark&&e.measure&&e.clearMarks&&e.clearMeasures&&(Ge=a=>{e.mark(a)},Pt=(a,s,l)=>{e.measure(a,s,l),e.clearMarks(s),e.clearMarks(l)})}const $o=/\{([0-9a-zA-Z]+)\}/g;function wn(e,...a){return a.length===1&&ce(a[0])&&(a=a[0]),(!a||!a.hasOwnProperty)&&(a={}),e.replace($o,(s,l)=>a.hasOwnProperty(l)?a[l]:"")}const ct=(e,a=!1)=>a?Symbol.for(e):Symbol(e),Uo=(e,a,s)=>Ho({l:e,k:a,s}),Ho=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),we=e=>typeof e=="number"&&isFinite(e),Xo=e=>ra(e)==="[object Date]",zt=e=>ra(e)==="[object RegExp]",En=e=>oe(e)&&Object.keys(e).length===0,Re=Object.assign,Yo=Object.create,_e=(e=null)=>Yo(e);let oa;const ut=()=>oa||(oa=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:_e());function la(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const Wo=Object.prototype.hasOwnProperty;function Je(e,a){return Wo.call(e,a)}const Me=Array.isArray,ve=e=>typeof e=="function",U=e=>typeof e=="string",ye=e=>typeof e=="boolean",ce=e=>e!==null&&typeof e=="object",zo=e=>ce(e)&&ve(e.then)&&ve(e.catch),sa=Object.prototype.toString,ra=e=>sa.call(e),oe=e=>{if(!ce(e))return!1;const a=Object.getPrototypeOf(e);return a===null||a.constructor===Object},Go=e=>e==null?"":Me(e)||oe(e)&&e.toString===sa?JSON.stringify(e,null,2):String(e);function jo(e,a=""){return e.reduce((s,l,c)=>c===0?s+l:s+a+l,"")}const ia=2;function Ko(e,a=0,s=e.length){const l=e.split(/\r?\n/);let c=0;const r=[];for(let h=0;h<l.length;h++)if(c+=l[h].length+1,c>=a){for(let p=h-ia;p<=h+ia||s>c;p++){if(p<0||p>=l.length)continue;const f=p+1;r.push(`${f}${" ".repeat(3-String(f).length)}| ${l[p]}`);const k=l[p].length;if(p===h){const I=a-(c-k)+1,M=Math.max(1,s>c?k-I:s-a);r.push(" | "+" ".repeat(I)+"^".repeat(M))}else if(p>h){if(s>c){const I=Math.max(Math.min(s-c,k),1);r.push(" | "+"^".repeat(I))}c+=k+1}}break}return r.join(`
6
+ `)}function Cn(e){let a=e;return()=>++a}function dt(e,a){typeof console<"u"&&(console.warn("[intlify] "+e),a&&console.warn(a.stack))}const ca={};function ua(e){ca[e]||(ca[e]=!0,dt(e))}function Zo(){const e=new Map;return{events:e,on(s,l){const c=e.get(s);c&&c.push(l)||e.set(s,[l])},off(s,l){const c=e.get(s);c&&c.splice(c.indexOf(l)>>>0,1)},emit(s,l){(e.get(s)||[]).slice().map(c=>c(l)),(e.get("*")||[]).slice().map(c=>c(s,l))}}}const yn=e=>!ce(e)||Me(e);function kn(e,a){if(yn(e)||yn(a))throw new Error("Invalid value");const s=[{src:e,des:a}];for(;s.length;){const{src:l,des:c}=s.pop();Object.keys(l).forEach(r=>{r!=="__proto__"&&(ce(l[r])&&!ce(c[r])&&(c[r]=Array.isArray(l[r])?[]:_e()),yn(c[r])||yn(l[r])?c[r]=l[r]:s.push({src:l[r],des:c[r]}))})}}/*!
7
+ * message-compiler v9.14.4
8
+ * (c) 2025 kazuya kawaguchi
9
+ * Released under the MIT License.
10
+ */function qo(e,a,s){return{line:e,column:a,offset:s}}function vn(e,a,s){return{start:e,end:a}}const Jo=/\{([0-9a-zA-Z]+)\}/g;function da(e,...a){return a.length===1&&Qo(a[0])&&(a=a[0]),(!a||!a.hasOwnProperty)&&(a={}),e.replace(Jo,(s,l)=>a.hasOwnProperty(l)?a[l]:"")}const ma=Object.assign,fa=e=>typeof e=="string",Qo=e=>e!==null&&typeof e=="object";function ha(e,a=""){return e.reduce((s,l,c)=>c===0?s+l:s+a+l,"")}const Nn={USE_MODULO_SYNTAX:1,__EXTEND_POINT__:2},el={[Nn.USE_MODULO_SYNTAX]:"Use modulo before '{{0}}'."};function tl(e,a,...s){const l=da(el[e],...s||[]),c={message:String(l),code:e};return a&&(c.location=a),c}const j={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},nl={[j.EXPECTED_TOKEN]:"Expected token: '{0}'",[j.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[j.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[j.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[j.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[j.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[j.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[j.EMPTY_PLACEHOLDER]:"Empty placeholder",[j.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[j.INVALID_LINKED_FORMAT]:"Invalid linked format",[j.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[j.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[j.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[j.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[j.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[j.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function Gt(e,a,s={}){const{domain:l,messages:c,args:r}=s,h=da((c||nl)[e]||"",...r||[]),p=new SyntaxError(String(h));return p.code=e,a&&(p.location=a),p.domain=l,p}function al(e){throw e}const ol=/<\/?[\w\s="/.':;#-\/]+>/,ll=e=>ol.test(e),mt=" ",sl="\r",Be=`
11
+ `,rl="\u2028",il="\u2029";function cl(e){const a=e;let s=0,l=1,c=1,r=0;const h=x=>a[x]===sl&&a[x+1]===Be,p=x=>a[x]===Be,f=x=>a[x]===il,k=x=>a[x]===rl,I=x=>h(x)||p(x)||f(x)||k(x),M=()=>s,N=()=>l,F=()=>c,z=()=>r,$=x=>h(x)||f(x)||k(x)?Be:a[x],X=()=>$(s),G=()=>$(s+r);function W(){return r=0,I(s)&&(l++,c=0),h(s)&&s++,s++,c++,a[s]}function E(){return h(s+r)&&r++,r++,a[s+r]}function y(){s=0,l=1,c=1,r=0}function w(x=0){r=x}function L(){const x=s+r;for(;x!==s;)W();r=0}return{index:M,line:N,column:F,peekOffset:z,charAt:$,currentChar:X,currentPeek:G,next:W,peek:E,reset:y,resetPeek:w,skipToPeek:L}}const yt=void 0,ul=".",pa="'",dl="tokenizer";function ml(e,a={}){const s=a.location!==!1,l=cl(e),c=()=>l.index(),r=()=>qo(l.line(),l.column(),l.index()),h=r(),p=c(),f={currentType:14,offset:p,startLoc:h,endLoc:h,lastType:14,lastOffset:p,lastStartLoc:h,lastEndLoc:h,braceNest:0,inLinked:!1,text:""},k=()=>f,{onError:I}=a;function M(d,m,T,...Y){const ke=k();if(m.column+=T,m.offset+=T,I){const ge=s?vn(ke.startLoc,m):null,fe=Gt(d,ge,{domain:dl,args:Y});I(fe)}}function N(d,m,T){d.endLoc=r(),d.currentType=m;const Y={type:m};return s&&(Y.loc=vn(d.startLoc,d.endLoc)),T!=null&&(Y.value=T),Y}const F=d=>N(d,14);function z(d,m){return d.currentChar()===m?(d.next(),m):(M(j.EXPECTED_TOKEN,r(),0,m),"")}function $(d){let m="";for(;d.currentPeek()===mt||d.currentPeek()===Be;)m+=d.currentPeek(),d.peek();return m}function X(d){const m=$(d);return d.skipToPeek(),m}function G(d){if(d===yt)return!1;const m=d.charCodeAt(0);return m>=97&&m<=122||m>=65&&m<=90||m===95}function W(d){if(d===yt)return!1;const m=d.charCodeAt(0);return m>=48&&m<=57}function E(d,m){const{currentType:T}=m;if(T!==2)return!1;$(d);const Y=G(d.currentPeek());return d.resetPeek(),Y}function y(d,m){const{currentType:T}=m;if(T!==2)return!1;$(d);const Y=d.currentPeek()==="-"?d.peek():d.currentPeek(),ke=W(Y);return d.resetPeek(),ke}function w(d,m){const{currentType:T}=m;if(T!==2)return!1;$(d);const Y=d.currentPeek()===pa;return d.resetPeek(),Y}function L(d,m){const{currentType:T}=m;if(T!==8)return!1;$(d);const Y=d.currentPeek()===".";return d.resetPeek(),Y}function x(d,m){const{currentType:T}=m;if(T!==9)return!1;$(d);const Y=G(d.currentPeek());return d.resetPeek(),Y}function B(d,m){const{currentType:T}=m;if(!(T===8||T===12))return!1;$(d);const Y=d.currentPeek()===":";return d.resetPeek(),Y}function P(d,m){const{currentType:T}=m;if(T!==10)return!1;const Y=()=>{const ge=d.currentPeek();return ge==="{"?G(d.peek()):ge==="@"||ge==="%"||ge==="|"||ge===":"||ge==="."||ge===mt||!ge?!1:ge===Be?(d.peek(),Y()):Z(d,!1)},ke=Y();return d.resetPeek(),ke}function me(d){$(d);const m=d.currentPeek()==="|";return d.resetPeek(),m}function Ve(d){const m=$(d),T=d.currentPeek()==="%"&&d.peek()==="{";return d.resetPeek(),{isModulo:T,hasSpace:m.length>0}}function Z(d,m=!0){const T=(ke=!1,ge="",fe=!1)=>{const C=d.currentPeek();return C==="{"?ge==="%"?!1:ke:C==="@"||!C?ge==="%"?!0:ke:C==="%"?(d.peek(),T(ke,"%",!0)):C==="|"?ge==="%"||fe?!0:!(ge===mt||ge===Be):C===mt?(d.peek(),T(!0,mt,fe)):C===Be?(d.peek(),T(!0,Be,fe)):!0},Y=T();return m&&d.resetPeek(),Y}function Te(d,m){const T=d.currentChar();return T===yt?yt:m(T)?(d.next(),T):null}function Bt(d){const m=d.charCodeAt(0);return m>=97&&m<=122||m>=65&&m<=90||m>=48&&m<=57||m===95||m===36}function $t(d){return Te(d,Bt)}function Fe(d){const m=d.charCodeAt(0);return m>=97&&m<=122||m>=65&&m<=90||m>=48&&m<=57||m===95||m===36||m===45}function bt(d){return Te(d,Fe)}function Lt(d){const m=d.charCodeAt(0);return m>=48&&m<=57}function Tt(d){return Te(d,Lt)}function Mt(d){const m=d.charCodeAt(0);return m>=48&&m<=57||m>=65&&m<=70||m>=97&&m<=102}function je(d){return Te(d,Mt)}function Ye(d){let m="",T="";for(;m=Tt(d);)T+=m;return T}function Ot(d){X(d);const m=d.currentChar();return m!=="%"&&M(j.EXPECTED_TOKEN,r(),0,m),d.next(),"%"}function St(d){let m="";for(;;){const T=d.currentChar();if(T==="{"||T==="}"||T==="@"||T==="|"||!T)break;if(T==="%")if(Z(d))m+=T,d.next();else break;else if(T===mt||T===Be)if(Z(d))m+=T,d.next();else{if(me(d))break;m+=T,d.next()}else m+=T,d.next()}return m}function Ut(d){X(d);let m="",T="";for(;m=bt(d);)T+=m;return d.currentChar()===yt&&M(j.UNTERMINATED_CLOSING_BRACE,r(),0),T}function xe(d){X(d);let m="";return d.currentChar()==="-"?(d.next(),m+=`-${Ye(d)}`):m+=Ye(d),d.currentChar()===yt&&M(j.UNTERMINATED_CLOSING_BRACE,r(),0),m}function ht(d){return d!==pa&&d!==Be}function qt(d){X(d),z(d,"'");let m="",T="";for(;m=Te(d,ht);)m==="\\"?T+=ot(d):T+=m;const Y=d.currentChar();return Y===Be||Y===yt?(M(j.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,r(),0),Y===Be&&(d.next(),z(d,"'")),T):(z(d,"'"),T)}function ot(d){const m=d.currentChar();switch(m){case"\\":case"'":return d.next(),`\\${m}`;case"u":return pt(d,m,4);case"U":return pt(d,m,6);default:return M(j.UNKNOWN_ESCAPE_SEQUENCE,r(),0,m),""}}function pt(d,m,T){z(d,m);let Y="";for(let ke=0;ke<T;ke++){const ge=je(d);if(!ge){M(j.INVALID_UNICODE_ESCAPE_SEQUENCE,r(),0,`\\${m}${Y}${d.currentChar()}`);break}Y+=ge}return`\\${m}${Y}`}function It(d){return d!=="{"&&d!=="}"&&d!==mt&&d!==Be}function Ht(d){X(d);let m="",T="";for(;m=Te(d,It);)T+=m;return T}function gt(d){let m="",T="";for(;m=$t(d);)T+=m;return T}function R(d){const m=T=>{const Y=d.currentChar();return Y==="{"||Y==="%"||Y==="@"||Y==="|"||Y==="("||Y===")"||!Y||Y===mt?T:(T+=Y,d.next(),m(T))};return m("")}function ue(d){X(d);const m=z(d,"|");return X(d),m}function _t(d,m){let T=null;switch(d.currentChar()){case"{":return m.braceNest>=1&&M(j.NOT_ALLOW_NEST_PLACEHOLDER,r(),0),d.next(),T=N(m,2,"{"),X(d),m.braceNest++,T;case"}":return m.braceNest>0&&m.currentType===2&&M(j.EMPTY_PLACEHOLDER,r(),0),d.next(),T=N(m,3,"}"),m.braceNest--,m.braceNest>0&&X(d),m.inLinked&&m.braceNest===0&&(m.inLinked=!1),T;case"@":return m.braceNest>0&&M(j.UNTERMINATED_CLOSING_BRACE,r(),0),T=tt(d,m)||F(m),m.braceNest=0,T;default:{let ke=!0,ge=!0,fe=!0;if(me(d))return m.braceNest>0&&M(j.UNTERMINATED_CLOSING_BRACE,r(),0),T=N(m,1,ue(d)),m.braceNest=0,m.inLinked=!1,T;if(m.braceNest>0&&(m.currentType===5||m.currentType===6||m.currentType===7))return M(j.UNTERMINATED_CLOSING_BRACE,r(),0),m.braceNest=0,Xt(d,m);if(ke=E(d,m))return T=N(m,5,Ut(d)),X(d),T;if(ge=y(d,m))return T=N(m,6,xe(d)),X(d),T;if(fe=w(d,m))return T=N(m,7,qt(d)),X(d),T;if(!ke&&!ge&&!fe)return T=N(m,13,Ht(d)),M(j.INVALID_TOKEN_IN_PLACEHOLDER,r(),0,T.value),X(d),T;break}}return T}function tt(d,m){const{currentType:T}=m;let Y=null;const ke=d.currentChar();switch((T===8||T===9||T===12||T===10)&&(ke===Be||ke===mt)&&M(j.INVALID_LINKED_FORMAT,r(),0),ke){case"@":return d.next(),Y=N(m,8,"@"),m.inLinked=!0,Y;case".":return X(d),d.next(),N(m,9,".");case":":return X(d),d.next(),N(m,10,":");default:return me(d)?(Y=N(m,1,ue(d)),m.braceNest=0,m.inLinked=!1,Y):L(d,m)||B(d,m)?(X(d),tt(d,m)):x(d,m)?(X(d),N(m,12,gt(d))):P(d,m)?(X(d),ke==="{"?_t(d,m)||Y:N(m,11,R(d))):(T===8&&M(j.INVALID_LINKED_FORMAT,r(),0),m.braceNest=0,m.inLinked=!1,Xt(d,m))}}function Xt(d,m){let T={type:14};if(m.braceNest>0)return _t(d,m)||F(m);if(m.inLinked)return tt(d,m)||F(m);switch(d.currentChar()){case"{":return _t(d,m)||F(m);case"}":return M(j.UNBALANCED_CLOSING_BRACE,r(),0),d.next(),N(m,3,"}");case"@":return tt(d,m)||F(m);default:{if(me(d))return T=N(m,1,ue(d)),m.braceNest=0,m.inLinked=!1,T;const{isModulo:ke,hasSpace:ge}=Ve(d);if(ke)return ge?N(m,0,St(d)):N(m,4,Ot(d));if(Z(d))return N(m,0,St(d));break}}return T}function cn(){const{currentType:d,offset:m,startLoc:T,endLoc:Y}=f;return f.lastType=d,f.lastOffset=m,f.lastStartLoc=T,f.lastEndLoc=Y,f.offset=c(),f.startLoc=r(),l.currentChar()===yt?N(f,14):Xt(l,f)}return{nextToken:cn,currentOffset:c,currentPosition:r,context:k}}const fl="parser",hl=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function pl(e,a,s){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const l=parseInt(a||s,16);return l<=55295||l>=57344?String.fromCodePoint(l):"�"}}}function gl(e={}){const a=e.location!==!1,{onError:s,onWarn:l}=e;function c(E,y,w,L,...x){const B=E.currentPosition();if(B.offset+=L,B.column+=L,s){const P=a?vn(w,B):null,me=Gt(y,P,{domain:fl,args:x});s(me)}}function r(E,y,w,L,...x){const B=E.currentPosition();if(B.offset+=L,B.column+=L,l){const P=a?vn(w,B):null;l(tl(y,P,x))}}function h(E,y,w){const L={type:E};return a&&(L.start=y,L.end=y,L.loc={start:w,end:w}),L}function p(E,y,w,L){a&&(E.end=y,E.loc&&(E.loc.end=w))}function f(E,y){const w=E.context(),L=h(3,w.offset,w.startLoc);return L.value=y,p(L,E.currentOffset(),E.currentPosition()),L}function k(E,y){const w=E.context(),{lastOffset:L,lastStartLoc:x}=w,B=h(5,L,x);return B.index=parseInt(y,10),E.nextToken(),p(B,E.currentOffset(),E.currentPosition()),B}function I(E,y,w){const L=E.context(),{lastOffset:x,lastStartLoc:B}=L,P=h(4,x,B);return P.key=y,w===!0&&(P.modulo=!0),E.nextToken(),p(P,E.currentOffset(),E.currentPosition()),P}function M(E,y){const w=E.context(),{lastOffset:L,lastStartLoc:x}=w,B=h(9,L,x);return B.value=y.replace(hl,pl),E.nextToken(),p(B,E.currentOffset(),E.currentPosition()),B}function N(E){const y=E.nextToken(),w=E.context(),{lastOffset:L,lastStartLoc:x}=w,B=h(8,L,x);return y.type!==12?(c(E,j.UNEXPECTED_EMPTY_LINKED_MODIFIER,w.lastStartLoc,0),B.value="",p(B,L,x),{nextConsumeToken:y,node:B}):(y.value==null&&c(E,j.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,Qe(y)),B.value=y.value||"",p(B,E.currentOffset(),E.currentPosition()),{node:B})}function F(E,y){const w=E.context(),L=h(7,w.offset,w.startLoc);return L.value=y,p(L,E.currentOffset(),E.currentPosition()),L}function z(E){const y=E.context(),w=h(6,y.offset,y.startLoc);let L=E.nextToken();if(L.type===9){const x=N(E);w.modifier=x.node,L=x.nextConsumeToken||E.nextToken()}switch(L.type!==10&&c(E,j.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Qe(L)),L=E.nextToken(),L.type===2&&(L=E.nextToken()),L.type){case 11:L.value==null&&c(E,j.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Qe(L)),w.key=F(E,L.value||"");break;case 5:L.value==null&&c(E,j.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Qe(L)),w.key=I(E,L.value||"");break;case 6:L.value==null&&c(E,j.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Qe(L)),w.key=k(E,L.value||"");break;case 7:L.value==null&&c(E,j.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Qe(L)),w.key=M(E,L.value||"");break;default:{c(E,j.UNEXPECTED_EMPTY_LINKED_KEY,y.lastStartLoc,0);const x=E.context(),B=h(7,x.offset,x.startLoc);return B.value="",p(B,x.offset,x.startLoc),w.key=B,p(w,x.offset,x.startLoc),{nextConsumeToken:L,node:w}}}return p(w,E.currentOffset(),E.currentPosition()),{node:w}}function $(E){const y=E.context(),w=y.currentType===1?E.currentOffset():y.offset,L=y.currentType===1?y.endLoc:y.startLoc,x=h(2,w,L);x.items=[];let B=null,P=null;do{const Z=B||E.nextToken();switch(B=null,Z.type){case 0:Z.value==null&&c(E,j.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Qe(Z)),x.items.push(f(E,Z.value||""));break;case 6:Z.value==null&&c(E,j.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Qe(Z)),x.items.push(k(E,Z.value||""));break;case 4:P=!0;break;case 5:Z.value==null&&c(E,j.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Qe(Z)),x.items.push(I(E,Z.value||"",!!P)),P&&(r(E,Nn.USE_MODULO_SYNTAX,y.lastStartLoc,0,Qe(Z)),P=null);break;case 7:Z.value==null&&c(E,j.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Qe(Z)),x.items.push(M(E,Z.value||""));break;case 8:{const Te=z(E);x.items.push(Te.node),B=Te.nextConsumeToken||null;break}}}while(y.currentType!==14&&y.currentType!==1);const me=y.currentType===1?y.lastOffset:E.currentOffset(),Ve=y.currentType===1?y.lastEndLoc:E.currentPosition();return p(x,me,Ve),x}function X(E,y,w,L){const x=E.context();let B=L.items.length===0;const P=h(1,y,w);P.cases=[],P.cases.push(L);do{const me=$(E);B||(B=me.items.length===0),P.cases.push(me)}while(x.currentType!==14);return B&&c(E,j.MUST_HAVE_MESSAGES_IN_PLURAL,w,0),p(P,E.currentOffset(),E.currentPosition()),P}function G(E){const y=E.context(),{offset:w,startLoc:L}=y,x=$(E);return y.currentType===14?x:X(E,w,L,x)}function W(E){const y=ml(E,ma({},e)),w=y.context(),L=h(0,w.offset,w.startLoc);return a&&L.loc&&(L.loc.source=E),L.body=G(y),e.onCacheKey&&(L.cacheKey=e.onCacheKey(E)),w.currentType!==14&&c(y,j.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,E[w.offset]||""),p(L,y.currentOffset(),y.currentPosition()),L}return{parse:W}}function Qe(e){if(e.type===14)return"EOF";const a=(e.value||"").replace(/\r?\n/gu,"\\n");return a.length>10?a.slice(0,9)+"…":a}function _l(e,a={}){const s={ast:e,helpers:new Set};return{context:()=>s,helper:r=>(s.helpers.add(r),r)}}function ga(e,a){for(let s=0;s<e.length;s++)Dn(e[s],a)}function Dn(e,a){switch(e.type){case 1:ga(e.cases,a),a.helper("plural");break;case 2:ga(e.items,a);break;case 6:{Dn(e.key,a),a.helper("linked"),a.helper("type");break}case 5:a.helper("interpolate"),a.helper("list");break;case 4:a.helper("interpolate"),a.helper("named");break}}function El(e,a={}){const s=_l(e);s.helper("normalize"),e.body&&Dn(e.body,s);const l=s.context();e.helpers=Array.from(l.helpers)}function Cl(e){const a=e.body;return a.type===2?_a(a):a.cases.forEach(s=>_a(s)),e}function _a(e){if(e.items.length===1){const a=e.items[0];(a.type===3||a.type===9)&&(e.static=a.value,delete a.value)}else{const a=[];for(let s=0;s<e.items.length;s++){const l=e.items[s];if(!(l.type===3||l.type===9)||l.value==null)break;a.push(l.value)}if(a.length===e.items.length){e.static=ha(a);for(let s=0;s<e.items.length;s++){const l=e.items[s];(l.type===3||l.type===9)&&delete l.value}}}}const yl="minifier";function jt(e){switch(e.t=e.type,e.type){case 0:{const a=e;jt(a.body),a.b=a.body,delete a.body;break}case 1:{const a=e,s=a.cases;for(let l=0;l<s.length;l++)jt(s[l]);a.c=s,delete a.cases;break}case 2:{const a=e,s=a.items;for(let l=0;l<s.length;l++)jt(s[l]);a.i=s,delete a.items,a.static&&(a.s=a.static,delete a.static);break}case 3:case 9:case 8:case 7:{const a=e;a.value&&(a.v=a.value,delete a.value);break}case 6:{const a=e;jt(a.key),a.k=a.key,delete a.key,a.modifier&&(jt(a.modifier),a.m=a.modifier,delete a.modifier);break}case 5:{const a=e;a.i=a.index,delete a.index;break}case 4:{const a=e;a.k=a.key,delete a.key;break}default:throw Gt(j.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:yl,args:[e.type]})}delete e.type}const kl="parser";function vl(e,a){const{filename:s,breakLineCode:l,needIndent:c}=a,r=a.location!==!1,h={filename:s,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:l,needIndent:c,indentLevel:0};r&&e.loc&&(h.source=e.loc.source);const p=()=>h;function f($,X){h.code+=$}function k($,X=!0){const G=X?l:"";f(c?G+" ".repeat($):G)}function I($=!0){const X=++h.indentLevel;$&&k(X)}function M($=!0){const X=--h.indentLevel;$&&k(X)}function N(){k(h.indentLevel)}return{context:p,push:f,indent:I,deindent:M,newline:N,helper:$=>`_${$}`,needIndent:()=>h.needIndent}}function Nl(e,a){const{helper:s}=e;e.push(`${s("linked")}(`),Kt(e,a.key),a.modifier?(e.push(", "),Kt(e,a.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function bl(e,a){const{helper:s,needIndent:l}=e;e.push(`${s("normalize")}([`),e.indent(l());const c=a.items.length;for(let r=0;r<c&&(Kt(e,a.items[r]),r!==c-1);r++)e.push(", ");e.deindent(l()),e.push("])")}function Ll(e,a){const{helper:s,needIndent:l}=e;if(a.cases.length>1){e.push(`${s("plural")}([`),e.indent(l());const c=a.cases.length;for(let r=0;r<c&&(Kt(e,a.cases[r]),r!==c-1);r++)e.push(", ");e.deindent(l()),e.push("])")}}function Tl(e,a){a.body?Kt(e,a.body):e.push("null")}function Kt(e,a){const{helper:s}=e;switch(a.type){case 0:Tl(e,a);break;case 1:Ll(e,a);break;case 2:bl(e,a);break;case 6:Nl(e,a);break;case 8:e.push(JSON.stringify(a.value),a);break;case 7:e.push(JSON.stringify(a.value),a);break;case 5:e.push(`${s("interpolate")}(${s("list")}(${a.index}))`,a);break;case 4:e.push(`${s("interpolate")}(${s("named")}(${JSON.stringify(a.key)}))`,a);break;case 9:e.push(JSON.stringify(a.value),a);break;case 3:e.push(JSON.stringify(a.value),a);break;default:throw Gt(j.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:kl,args:[a.type]})}}const Ml=(e,a={})=>{const s=fa(a.mode)?a.mode:"normal",l=fa(a.filename)?a.filename:"message.intl";a.sourceMap;const c=a.breakLineCode!=null?a.breakLineCode:s==="arrow"?";":`
12
+ `,r=a.needIndent?a.needIndent:s!=="arrow",h=e.helpers||[],p=vl(e,{filename:l,breakLineCode:c,needIndent:r});p.push(s==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),p.indent(r),h.length>0&&(p.push(`const { ${ha(h.map(I=>`${I}: _${I}`),", ")} } = ctx`),p.newline()),p.push("return "),Kt(p,e),p.deindent(r),p.push("}"),delete e.helpers;const{code:f,map:k}=p.context();return{ast:e,code:f,map:k?k.toJSON():void 0}};function Ol(e,a={}){const s=ma({},a),l=!!s.jit,c=!!s.minify,r=s.optimize==null?!0:s.optimize,p=gl(s).parse(e);return l?(r&&Cl(p),c&&jt(p),{ast:p,code:""}):(El(p,s),Ml(p,s))}/*!
13
+ * core-base v9.14.4
14
+ * (c) 2025 kazuya kawaguchi
15
+ * Released under the MIT License.
16
+ */function Sl(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(ut().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(ut().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(ut().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function et(e){return ce(e)&&xn(e)===0&&(Je(e,"b")||Je(e,"body"))}const Ea=["b","body"];function Il(e){return kt(e,Ea)}const Ca=["c","cases"];function Al(e){return kt(e,Ca,[])}const ya=["s","static"];function wl(e){return kt(e,ya)}const ka=["i","items"];function Dl(e){return kt(e,ka,[])}const va=["t","type"];function xn(e){return kt(e,va)}const Na=["v","value"];function bn(e,a){const s=kt(e,Na);if(s!=null)return s;throw an(a)}const ba=["m","modifier"];function xl(e){return kt(e,ba)}const La=["k","key"];function Pl(e){const a=kt(e,La);if(a)return a;throw an(6)}function kt(e,a,s){for(let l=0;l<a.length;l++){const c=a[l];if(Je(e,c)&&e[c]!=null)return e[c]}return s}const Ta=[...Ea,...Ca,...ya,...ka,...La,...ba,...Na,...va];function an(e){return new Error(`unhandled node type: ${e}`)}const vt=[];vt[0]={w:[0],i:[3,0],"[":[4],o:[7]},vt[1]={w:[1],".":[2],"[":[4],o:[7]},vt[2]={w:[2],i:[3,0],0:[3,0]},vt[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},vt[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},vt[5]={"'":[4,0],o:8,l:[5,0]},vt[6]={'"':[4,0],o:8,l:[6,0]};const Rl=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Vl(e){return Rl.test(e)}function Fl(e){const a=e.charCodeAt(0),s=e.charCodeAt(e.length-1);return a===s&&(a===34||a===39)?e.slice(1,-1):e}function Bl(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function $l(e){const a=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Vl(a)?Fl(a):"*"+a}function Ul(e){const a=[];let s=-1,l=0,c=0,r,h,p,f,k,I,M;const N=[];N[0]=()=>{h===void 0?h=p:h+=p},N[1]=()=>{h!==void 0&&(a.push(h),h=void 0)},N[2]=()=>{N[0](),c++},N[3]=()=>{if(c>0)c--,l=4,N[0]();else{if(c=0,h===void 0||(h=$l(h),h===!1))return!1;N[1]()}};function F(){const z=e[s+1];if(l===5&&z==="'"||l===6&&z==='"')return s++,p="\\"+z,N[0](),!0}for(;l!==null;)if(s++,r=e[s],!(r==="\\"&&F())){if(f=Bl(r),M=vt[l],k=M[f]||M.l||8,k===8||(l=k[0],k[1]!==void 0&&(I=N[k[1]],I&&(p=r,I()===!1))))return;if(l===7)return a}}const Ma=new Map;function Hl(e,a){return ce(e)?e[a]:null}function Xl(e,a){if(!ce(e))return null;let s=Ma.get(a);if(s||(s=Ul(a),s&&Ma.set(a,s)),!s)return null;const l=s.length;let c=e,r=0;for(;r<l;){const h=s[r];if(Ta.includes(h)&&et(c))return null;const p=c[h];if(p===void 0||ve(c))return null;c=p,r++}return c}const Yl=e=>e,Wl=e=>"",zl="text",Gl=e=>e.length===0?"":jo(e),jl=Go;function Oa(e,a){return e=Math.abs(e),a===2?e?e>1?1:0:1:e?Math.min(e,2):0}function Kl(e){const a=we(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(we(e.named.count)||we(e.named.n))?we(e.named.count)?e.named.count:we(e.named.n)?e.named.n:a:a}function Zl(e,a){a.count||(a.count=e),a.n||(a.n=e)}function ql(e={}){const a=e.locale,s=Kl(e),l=ce(e.pluralRules)&&U(a)&&ve(e.pluralRules[a])?e.pluralRules[a]:Oa,c=ce(e.pluralRules)&&U(a)&&ve(e.pluralRules[a])?Oa:void 0,r=G=>G[l(s,G.length,c)],h=e.list||[],p=G=>h[G],f=e.named||_e();we(e.pluralIndex)&&Zl(s,f);const k=G=>f[G];function I(G){const W=ve(e.messages)?e.messages(G):ce(e.messages)?e.messages[G]:!1;return W||(e.parent?e.parent.message(G):Wl)}const M=G=>e.modifiers?e.modifiers[G]:Yl,N=oe(e.processor)&&ve(e.processor.normalize)?e.processor.normalize:Gl,F=oe(e.processor)&&ve(e.processor.interpolate)?e.processor.interpolate:jl,z=oe(e.processor)&&U(e.processor.type)?e.processor.type:zl,X={list:p,named:k,plural:r,linked:(G,...W)=>{const[E,y]=W;let w="text",L="";W.length===1?ce(E)?(L=E.modifier||L,w=E.type||w):U(E)&&(L=E||L):W.length===2&&(U(E)&&(L=E||L),U(y)&&(w=y||w));const x=I(G)(X),B=w==="vnode"&&Me(x)&&L?x[0]:x;return L?M(L)(B,w):B},message:I,type:z,interpolate:F,normalize:N,values:Re(_e(),h,f)};return X}let on=null;function Jl(e){on=e}function Ql(e,a,s){on&&on.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:a,meta:s})}const es=ts("function:translate");function ts(e){return a=>on&&on.emit(e,a)}const Sa=Nn.__EXTEND_POINT__,Rt=Cn(Sa),$e={NOT_FOUND_KEY:Sa,FALLBACK_TO_TRANSLATE:Rt(),CANNOT_FORMAT_NUMBER:Rt(),FALLBACK_TO_NUMBER_FORMAT:Rt(),CANNOT_FORMAT_DATE:Rt(),FALLBACK_TO_DATE_FORMAT:Rt(),EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:Rt(),__EXTEND_POINT__:Rt()},ns={[$e.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[$e.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[$e.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[$e.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[$e.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[$e.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[$e.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]:"This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."};function Vt(e,...a){return wn(ns[e],...a)}const Ia=j.__EXTEND_POINT__,Ft=Cn(Ia),De={INVALID_ARGUMENT:Ia,INVALID_DATE_ARGUMENT:Ft(),INVALID_ISO_DATE_ARGUMENT:Ft(),NOT_SUPPORT_NON_STRING_MESSAGE:Ft(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:Ft(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:Ft(),NOT_SUPPORT_LOCALE_TYPE:Ft(),__EXTEND_POINT__:Ft()};function at(e){return Gt(e,null,process.env.NODE_ENV!=="production"?{messages:as}:void 0)}const as={[De.INVALID_ARGUMENT]:"Invalid arguments",[De.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[De.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[De.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[De.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[De.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[De.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function Pn(e,a){return a.locale!=null?Aa(a.locale):Aa(e.locale)}let Rn;function Aa(e){if(U(e))return e;if(ve(e)){if(e.resolvedOnce&&Rn!=null)return Rn;if(e.constructor.name==="Function"){const a=e();if(zo(a))throw at(De.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Rn=a}else throw at(De.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw at(De.NOT_SUPPORT_LOCALE_TYPE)}function os(e,a,s){return[...new Set([s,...Me(a)?a:ce(a)?Object.keys(a):U(a)?[a]:[s]])]}function wa(e,a,s){const l=U(s)?s:ln,c=e;c.__localeChainCache||(c.__localeChainCache=new Map);let r=c.__localeChainCache.get(l);if(!r){r=[];let h=[s];for(;Me(h);)h=Da(r,h,a);const p=Me(a)||!oe(a)?a:a.default?a.default:null;h=U(p)?[p]:p,Me(h)&&Da(r,h,!1),c.__localeChainCache.set(l,r)}return r}function Da(e,a,s){let l=!0;for(let c=0;c<a.length&&ye(l);c++){const r=a[c];U(r)&&(l=ls(e,a[c],s))}return l}function ls(e,a,s){let l;const c=a.split("-");do{const r=c.join("-");l=ss(e,r,s),c.splice(-1,1)}while(c.length&&l===!0);return l}function ss(e,a,s){let l=!1;if(!e.includes(a)&&(l=!0,a)){l=a[a.length-1]!=="!";const c=a.replace(/!/g,"");e.push(c),(Me(s)||oe(s))&&s[c]&&(l=s[c])}return l}const rs="9.14.4",Ln=-1,ln="en-US",Tn="",xa=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function is(){return{upper:(e,a)=>a==="text"&&U(e)?e.toUpperCase():a==="vnode"&&ce(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,a)=>a==="text"&&U(e)?e.toLowerCase():a==="vnode"&&ce(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,a)=>a==="text"&&U(e)?xa(e):a==="vnode"&&ce(e)&&"__v_isVNode"in e?xa(e.children):e}}let Pa;function Ra(e){Pa=e}let Va;function cs(e){Va=e}let Fa;function us(e){Fa=e}let Ba=null;const ds=e=>{Ba=e},ms=()=>Ba;let $a=null;const Ua=e=>{$a=e},fs=()=>$a;let Ha=0;function hs(e={}){const a=ve(e.onWarn)?e.onWarn:dt,s=U(e.version)?e.version:rs,l=U(e.locale)||ve(e.locale)?e.locale:ln,c=ve(l)?ln:l,r=Me(e.fallbackLocale)||oe(e.fallbackLocale)||U(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:c,h=oe(e.messages)?e.messages:Vn(c),p=oe(e.datetimeFormats)?e.datetimeFormats:Vn(c),f=oe(e.numberFormats)?e.numberFormats:Vn(c),k=Re(_e(),e.modifiers,is()),I=e.pluralRules||_e(),M=ve(e.missing)?e.missing:null,N=ye(e.missingWarn)||zt(e.missingWarn)?e.missingWarn:!0,F=ye(e.fallbackWarn)||zt(e.fallbackWarn)?e.fallbackWarn:!0,z=!!e.fallbackFormat,$=!!e.unresolving,X=ve(e.postTranslation)?e.postTranslation:null,G=oe(e.processor)?e.processor:null,W=ye(e.warnHtmlMessage)?e.warnHtmlMessage:!0,E=!!e.escapeParameter,y=ve(e.messageCompiler)?e.messageCompiler:Pa;process.env.NODE_ENV!=="production"&&ve(e.messageCompiler)&&ua(Vt($e.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const w=ve(e.messageResolver)?e.messageResolver:Va||Hl,L=ve(e.localeFallbacker)?e.localeFallbacker:Fa||os,x=ce(e.fallbackContext)?e.fallbackContext:void 0,B=e,P=ce(B.__datetimeFormatters)?B.__datetimeFormatters:new Map,me=ce(B.__numberFormatters)?B.__numberFormatters:new Map,Ve=ce(B.__meta)?B.__meta:{};Ha++;const Z={version:s,cid:Ha,locale:l,fallbackLocale:r,messages:h,modifiers:k,pluralRules:I,missing:M,missingWarn:N,fallbackWarn:F,fallbackFormat:z,unresolving:$,postTranslation:X,processor:G,warnHtmlMessage:W,escapeParameter:E,messageCompiler:y,messageResolver:w,localeFallbacker:L,fallbackContext:x,onWarn:a,__meta:Ve};return Z.datetimeFormats=p,Z.numberFormats=f,Z.__datetimeFormatters=P,Z.__numberFormatters=me,process.env.NODE_ENV!=="production"&&(Z.__v_emitter=B.__v_emitter!=null?B.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&Ql(Z,s,Ve),Z}const Vn=e=>({[e]:_e()});function Mn(e,a){return e instanceof RegExp?e.test(a):e}function Xa(e,a){return e instanceof RegExp?e.test(a):e}function Fn(e,a,s,l,c){const{missing:r,onWarn:h}=e;if(process.env.NODE_ENV!=="production"){const p=e.__v_emitter;p&&p.emit("missing",{locale:s,key:a,type:c,groupId:`${c}:${a}`})}if(r!==null){const p=r(e,s,a,c);return U(p)?p:a}else return process.env.NODE_ENV!=="production"&&Xa(l,a)&&h(Vt($e.NOT_FOUND_KEY,{key:a,locale:s})),a}function sn(e,a,s){const l=e;l.__localeChainCache=new Map,e.localeFallbacker(e,s,a)}function Ya(e,a){return e===a?!1:e.split("-")[0]===a.split("-")[0]}function ps(e,a){const s=a.indexOf(e);if(s===-1)return!1;for(let l=s+1;l<a.length;l++)if(Ya(e,a[l]))return!0;return!1}function Bn(e){return s=>gs(s,e)}function gs(e,a){const s=Il(a);if(s==null)throw an(0);if(xn(s)===1){const r=Al(s);return e.plural(r.reduce((h,p)=>[...h,Wa(e,p)],[]))}else return Wa(e,s)}function Wa(e,a){const s=wl(a);if(s!=null)return e.type==="text"?s:e.normalize([s]);{const l=Dl(a).reduce((c,r)=>[...c,$n(e,r)],[]);return e.normalize(l)}}function $n(e,a){const s=xn(a);switch(s){case 3:return bn(a,s);case 9:return bn(a,s);case 4:{const l=a;if(Je(l,"k")&&l.k)return e.interpolate(e.named(l.k));if(Je(l,"key")&&l.key)return e.interpolate(e.named(l.key));throw an(s)}case 5:{const l=a;if(Je(l,"i")&&we(l.i))return e.interpolate(e.list(l.i));if(Je(l,"index")&&we(l.index))return e.interpolate(e.list(l.index));throw an(s)}case 6:{const l=a,c=xl(l),r=Pl(l);return e.linked($n(e,r),c?$n(e,c):void 0,e.type)}case 7:return bn(a,s);case 8:return bn(a,s);default:throw new Error(`unhandled node on format message part: ${s}`)}}const _s="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function za(e,a){a&&ll(e)&&dt(wn(_s,{source:e}))}const Ga=e=>e;let Zt=_e();function ja(e){e.code===Nn.USE_MODULO_SYNTAX&&dt(`The use of named interpolation with modulo syntax is deprecated. It will be removed in v10.
17
+ reference: https://vue-i18n.intlify.dev/guide/essentials/syntax#rails-i18n-format
18
+ (message compiler warning message: ${e.message})`)}function Ka(e,a={}){let s=!1;const l=a.onError||al;return a.onError=c=>{s=!0,l(c)},{...Ol(e,a),detectError:s}}const Es=(e,a)=>{if(!U(e))throw at(De.NOT_SUPPORT_NON_STRING_MESSAGE);process.env.NODE_ENV!=="production"&&(a.onWarn=ja);{const s=ye(a.warnHtmlMessage)?a.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&za(e,s);const c=(a.onCacheKey||Ga)(e),r=Zt[c];if(r)return r;const{code:h,detectError:p}=Ka(e,a),f=new Function(`return ${h}`)();return p?f:Zt[c]=f}};function Cs(e,a){if(process.env.NODE_ENV!=="production"&&(a.onWarn=ja),__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&U(e)){const s=ye(a.warnHtmlMessage)?a.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&za(e,s);const c=(a.onCacheKey||Ga)(e),r=Zt[c];if(r)return r;const{ast:h,detectError:p}=Ka(e,{...a,location:process.env.NODE_ENV!=="production",jit:!0}),f=Bn(h);return p?f:Zt[c]=f}else{if(process.env.NODE_ENV!=="production"&&!et(e))return dt(`the message that is resolve with key '${a.key}' is not supported for jit compilation`),()=>e;const s=e.cacheKey;if(s){const l=Zt[s];return l||(Zt[s]=Bn(e))}else return Bn(e)}}const Za=()=>"",Ze=e=>ve(e);function qa(e,...a){const{fallbackFormat:s,postTranslation:l,unresolving:c,messageCompiler:r,fallbackLocale:h,messages:p}=e,[f,k]=Un(...a),I=ye(k.missingWarn)?k.missingWarn:e.missingWarn,M=ye(k.fallbackWarn)?k.fallbackWarn:e.fallbackWarn,N=ye(k.escapeParameter)?k.escapeParameter:e.escapeParameter,F=!!k.resolvedMessage,z=U(k.default)||ye(k.default)?ye(k.default)?r?f:()=>f:k.default:s?r?f:()=>f:"",$=s||z!=="",X=Pn(e,k);N&&ys(k);let[G,W,E]=F?[f,X,p[X]||_e()]:Ja(e,f,X,h,M,I),y=G,w=f;if(!F&&!(U(y)||et(y)||Ze(y))&&$&&(y=z,w=y),!F&&(!(U(y)||et(y)||Ze(y))||!U(W)))return c?Ln:f;if(process.env.NODE_ENV!=="production"&&U(y)&&e.messageCompiler==null)return dt(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${f}'.`),f;let L=!1;const x=()=>{L=!0},B=Ze(y)?y:Qa(e,f,W,y,w,x);if(L)return y;const P=bs(e,W,E,k),me=ql(P),Ve=ks(e,B,me),Z=l?l(Ve,f):Ve;if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const Te={timestamp:Date.now(),key:U(f)?f:Ze(y)?y.key:"",locale:W||(Ze(y)?y.locale:""),format:U(y)?y:Ze(y)?y.source:"",message:Z};Te.meta=Re({},e.__meta,ms()||{}),es(Te)}return Z}function ys(e){Me(e.list)?e.list=e.list.map(a=>U(a)?la(a):a):ce(e.named)&&Object.keys(e.named).forEach(a=>{U(e.named[a])&&(e.named[a]=la(e.named[a]))})}function Ja(e,a,s,l,c,r){const{messages:h,onWarn:p,messageResolver:f,localeFallbacker:k}=e,I=k(e,l,s);let M=_e(),N,F=null,z=s,$=null;const X="translate";for(let G=0;G<I.length;G++){if(N=$=I[G],process.env.NODE_ENV!=="production"&&s!==N&&!Ya(s,N)&&Mn(c,a)&&p(Vt($e.FALLBACK_TO_TRANSLATE,{key:a,target:N})),process.env.NODE_ENV!=="production"&&s!==N){const w=e.__v_emitter;w&&w.emit("fallback",{type:X,key:a,from:z,to:$,groupId:`${X}:${a}`})}M=h[N]||_e();let W=null,E,y;if(process.env.NODE_ENV!=="production"&&it&&(W=window.performance.now(),E="intlify-message-resolve-start",y="intlify-message-resolve-end",Ge&&Ge(E)),(F=f(M,a))===null&&(F=M[a]),process.env.NODE_ENV!=="production"&&it){const w=window.performance.now(),L=e.__v_emitter;L&&W&&F&&L.emit("message-resolve",{type:"message-resolve",key:a,message:F,time:w-W,groupId:`${X}:${a}`}),E&&y&&Ge&&Pt&&(Ge(y),Pt("intlify message resolve",E,y))}if(U(F)||et(F)||Ze(F))break;if(!ps(N,I)){const w=Fn(e,a,N,r,X);w!==a&&(F=w)}z=$}return[F,N,M]}function Qa(e,a,s,l,c,r){const{messageCompiler:h,warnHtmlMessage:p}=e;if(Ze(l)){const N=l;return N.locale=N.locale||s,N.key=N.key||a,N}if(h==null){const N=()=>l;return N.locale=s,N.key=a,N}let f=null,k,I;process.env.NODE_ENV!=="production"&&it&&(f=window.performance.now(),k="intlify-message-compilation-start",I="intlify-message-compilation-end",Ge&&Ge(k));const M=h(l,vs(e,s,c,l,p,r));if(process.env.NODE_ENV!=="production"&&it){const N=window.performance.now(),F=e.__v_emitter;F&&f&&F.emit("message-compilation",{type:"message-compilation",message:l,time:N-f,groupId:`translate:${a}`}),k&&I&&Ge&&Pt&&(Ge(I),Pt("intlify message compilation",k,I))}return M.locale=s,M.key=a,M.source=l,M}function ks(e,a,s){let l=null,c,r;process.env.NODE_ENV!=="production"&&it&&(l=window.performance.now(),c="intlify-message-evaluation-start",r="intlify-message-evaluation-end",Ge&&Ge(c));const h=a(s);if(process.env.NODE_ENV!=="production"&&it){const p=window.performance.now(),f=e.__v_emitter;f&&l&&f.emit("message-evaluation",{type:"message-evaluation",value:h,time:p-l,groupId:`translate:${a.key}`}),c&&r&&Ge&&Pt&&(Ge(r),Pt("intlify message evaluation",c,r))}return h}function Un(...e){const[a,s,l]=e,c=_e();if(!U(a)&&!we(a)&&!Ze(a)&&!et(a))throw at(De.INVALID_ARGUMENT);const r=we(a)?String(a):(Ze(a),a);return we(s)?c.plural=s:U(s)?c.default=s:oe(s)&&!En(s)?c.named=s:Me(s)&&(c.list=s),we(l)?c.plural=l:U(l)?c.default=l:oe(l)&&Re(c,l),[r,c]}function vs(e,a,s,l,c,r){return{locale:a,key:s,warnHtmlMessage:c,onError:h=>{if(r&&r(h),process.env.NODE_ENV!=="production"){const p=Ns(l),f=`Message compilation error: ${h.message}`,k=h.location&&p&&Ko(p,h.location.start.offset,h.location.end.offset),I=e.__v_emitter;I&&p&&I.emit("compile-error",{message:p,error:h.message,start:h.location&&h.location.start.offset,end:h.location&&h.location.end.offset,groupId:`translate:${s}`}),console.error(k?`${f}
19
+ ${k}`:f)}else throw h},onCacheKey:h=>Uo(a,s,h)}}function Ns(e){if(U(e))return e;if(e.loc&&e.loc.source)return e.loc.source}function bs(e,a,s,l){const{modifiers:c,pluralRules:r,messageResolver:h,fallbackLocale:p,fallbackWarn:f,missingWarn:k,fallbackContext:I}=e,N={locale:a,modifiers:c,pluralRules:r,messages:F=>{let z=h(s,F);if(z==null&&I){const[,,$]=Ja(I,F,a,p,f,k);z=h($,F)}if(U(z)||et(z)){let $=!1;const G=Qa(e,F,a,z,F,()=>{$=!0});return $?Za:G}else return Ze(z)?z:Za}};return e.processor&&(N.processor=e.processor),l.list&&(N.list=l.list),l.named&&(N.named=l.named),we(l.plural)&&(N.pluralIndex=l.plural),N}const eo=typeof Intl<"u",to={dateTimeFormat:eo&&typeof Intl.DateTimeFormat<"u",numberFormat:eo&&typeof Intl.NumberFormat<"u"};function no(e,...a){const{datetimeFormats:s,unresolving:l,fallbackLocale:c,onWarn:r,localeFallbacker:h}=e,{__datetimeFormatters:p}=e;if(process.env.NODE_ENV!=="production"&&!to.dateTimeFormat)return r(Vt($e.CANNOT_FORMAT_DATE)),Tn;const[f,k,I,M]=Hn(...a),N=ye(I.missingWarn)?I.missingWarn:e.missingWarn,F=ye(I.fallbackWarn)?I.fallbackWarn:e.fallbackWarn,z=!!I.part,$=Pn(e,I),X=h(e,c,$);if(!U(f)||f==="")return new Intl.DateTimeFormat($,M).format(k);let G={},W,E=null,y=$,w=null;const L="datetime format";for(let P=0;P<X.length;P++){if(W=w=X[P],process.env.NODE_ENV!=="production"&&$!==W&&Mn(F,f)&&r(Vt($e.FALLBACK_TO_DATE_FORMAT,{key:f,target:W})),process.env.NODE_ENV!=="production"&&$!==W){const me=e.__v_emitter;me&&me.emit("fallback",{type:L,key:f,from:y,to:w,groupId:`${L}:${f}`})}if(G=s[W]||{},E=G[f],oe(E))break;Fn(e,f,W,N,L),y=w}if(!oe(E)||!U(W))return l?Ln:f;let x=`${W}__${f}`;En(M)||(x=`${x}__${JSON.stringify(M)}`);let B=p.get(x);return B||(B=new Intl.DateTimeFormat(W,Re({},E,M)),p.set(x,B)),z?B.formatToParts(k):B.format(k)}const ao=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Hn(...e){const[a,s,l,c]=e,r=_e();let h=_e(),p;if(U(a)){const f=a.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!f)throw at(De.INVALID_ISO_DATE_ARGUMENT);const k=f[3]?f[3].trim().startsWith("T")?`${f[1].trim()}${f[3].trim()}`:`${f[1].trim()}T${f[3].trim()}`:f[1].trim();p=new Date(k);try{p.toISOString()}catch{throw at(De.INVALID_ISO_DATE_ARGUMENT)}}else if(Xo(a)){if(isNaN(a.getTime()))throw at(De.INVALID_DATE_ARGUMENT);p=a}else if(we(a))p=a;else throw at(De.INVALID_ARGUMENT);return U(s)?r.key=s:oe(s)&&Object.keys(s).forEach(f=>{ao.includes(f)?h[f]=s[f]:r[f]=s[f]}),U(l)?r.locale=l:oe(l)&&(h=l),oe(c)&&(h=c),[r.key||"",p,r,h]}function oo(e,a,s){const l=e;for(const c in s){const r=`${a}__${c}`;l.__datetimeFormatters.has(r)&&l.__datetimeFormatters.delete(r)}}function lo(e,...a){const{numberFormats:s,unresolving:l,fallbackLocale:c,onWarn:r,localeFallbacker:h}=e,{__numberFormatters:p}=e;if(process.env.NODE_ENV!=="production"&&!to.numberFormat)return r(Vt($e.CANNOT_FORMAT_NUMBER)),Tn;const[f,k,I,M]=Xn(...a),N=ye(I.missingWarn)?I.missingWarn:e.missingWarn,F=ye(I.fallbackWarn)?I.fallbackWarn:e.fallbackWarn,z=!!I.part,$=Pn(e,I),X=h(e,c,$);if(!U(f)||f==="")return new Intl.NumberFormat($,M).format(k);let G={},W,E=null,y=$,w=null;const L="number format";for(let P=0;P<X.length;P++){if(W=w=X[P],process.env.NODE_ENV!=="production"&&$!==W&&Mn(F,f)&&r(Vt($e.FALLBACK_TO_NUMBER_FORMAT,{key:f,target:W})),process.env.NODE_ENV!=="production"&&$!==W){const me=e.__v_emitter;me&&me.emit("fallback",{type:L,key:f,from:y,to:w,groupId:`${L}:${f}`})}if(G=s[W]||{},E=G[f],oe(E))break;Fn(e,f,W,N,L),y=w}if(!oe(E)||!U(W))return l?Ln:f;let x=`${W}__${f}`;En(M)||(x=`${x}__${JSON.stringify(M)}`);let B=p.get(x);return B||(B=new Intl.NumberFormat(W,Re({},E,M)),p.set(x,B)),z?B.formatToParts(k):B.format(k)}const so=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Xn(...e){const[a,s,l,c]=e,r=_e();let h=_e();if(!we(a))throw at(De.INVALID_ARGUMENT);const p=a;return U(s)?r.key=s:oe(s)&&Object.keys(s).forEach(f=>{so.includes(f)?h[f]=s[f]:r[f]=s[f]}),U(l)?r.locale=l:oe(l)&&(h=l),oe(c)&&(h=c),[r.key||"",p,r,h]}function ro(e,a,s){const l=e;for(const c in s){const r=`${a}__${c}`;l.__numberFormatters.has(r)&&l.__numberFormatters.delete(r)}}Sl();/*!
20
+ * vue-i18n v9.14.4
21
+ * (c) 2025 kazuya kawaguchi
22
+ * Released under the MIT License.
23
+ */const Ls="9.14.4";function Ts(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(ut().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(ut().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(ut().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(ut().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(ut().__INTLIFY_PROD_DEVTOOLS__=!1)}const io=$e.__EXTEND_POINT__,ft=Cn(io),He={FALLBACK_TO_ROOT:io,NOT_SUPPORTED_PRESERVE:ft(),NOT_SUPPORTED_FORMATTER:ft(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:ft(),NOT_SUPPORTED_GET_CHOICE_INDEX:ft(),COMPONENT_NAME_LEGACY_COMPATIBLE:ft(),NOT_FOUND_PARENT_SCOPE:ft(),IGNORE_OBJ_FLATTEN:ft(),NOTICE_DROP_ALLOW_COMPOSITION:ft(),NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG:ft()},Ms={[He.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[He.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[He.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[He.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[He.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[He.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[He.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[He.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[He.NOTICE_DROP_ALLOW_COMPOSITION]:"'allowComposition' option will be dropped in the next major version. For more information, please see 👉 https://tinyurl.com/2p97mcze",[He.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG]:"'translateExistCompatible' option will be dropped in the next major version."};function On(e,...a){return wn(Ms[e],...a)}const co=De.__EXTEND_POINT__,Xe=Cn(co),be={UNEXPECTED_RETURN_TYPE:co,INVALID_ARGUMENT:Xe(),MUST_BE_CALL_SETUP_TOP:Xe(),NOT_INSTALLED:Xe(),NOT_AVAILABLE_IN_LEGACY_MODE:Xe(),REQUIRED_VALUE:Xe(),INVALID_VALUE:Xe(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Xe(),NOT_INSTALLED_WITH_PROVIDE:Xe(),UNEXPECTED_ERROR:Xe(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Xe(),BRIDGE_SUPPORT_VUE_2_ONLY:Xe(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Xe(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Xe(),__EXTEND_POINT__:Xe()};function Nt(e,...a){return Gt(e,null,process.env.NODE_ENV!=="production"?{messages:Os,args:a}:void 0)}const Os={[be.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[be.INVALID_ARGUMENT]:"Invalid argument",[be.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[be.NOT_INSTALLED]:"Need to install with `app.use` function",[be.UNEXPECTED_ERROR]:"Unexpected error",[be.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[be.REQUIRED_VALUE]:"Required in value: {0}",[be.INVALID_VALUE]:"Invalid value",[be.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[be.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[be.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[be.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[be.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]:"Must define ‘i18n’ option or custom block in Composition API with using local scope in Legacy API mode",[be.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},Yn=ct("__translateVNode"),Wn=ct("__datetimeParts"),zn=ct("__numberParts"),Gn=ct("__enableEmitter"),jn=ct("__disableEmitter"),Ss=ct("__setPluralRules"),uo=ct("__injectWithOption"),Kn=ct("__dispose");function rn(e){if(!ce(e)||et(e))return e;for(const a in e)if(Je(e,a))if(!a.includes("."))ce(e[a])&&rn(e[a]);else{const s=a.split("."),l=s.length-1;let c=e,r=!1;for(let h=0;h<l;h++){if(s[h]==="__proto__")throw new Error(`unsafe key: ${s[h]}`);if(s[h]in c||(c[s[h]]=_e()),!ce(c[s[h]])){process.env.NODE_ENV!=="production"&&dt(On(He.IGNORE_OBJ_FLATTEN,{key:s[h]})),r=!0;break}c=c[s[h]]}if(r||(et(c)?Ta.includes(s[l])||delete e[a]:(c[s[l]]=e[a],delete e[a])),!et(c)){const h=c[s[l]];ce(h)&&rn(h)}}return e}function Zn(e,a){const{messages:s,__i18n:l,messageResolver:c,flatJson:r}=a,h=oe(s)?s:Me(l)?_e():{[e]:_e()};if(Me(l)&&l.forEach(p=>{if("locale"in p&&"resource"in p){const{locale:f,resource:k}=p;f?(h[f]=h[f]||_e(),kn(k,h[f])):kn(k,h)}else U(p)&&kn(JSON.parse(p),h)}),c==null&&r)for(const p in h)Je(h,p)&&rn(h[p]);return h}function mo(e){return e.type}function Is(e,a,s){let l=ce(a.messages)?a.messages:_e();"__i18nGlobal"in s&&(l=Zn(e.locale.value,{messages:l,__i18n:s.__i18nGlobal}));const c=Object.keys(l);c.length&&c.forEach(r=>{e.mergeLocaleMessage(r,l[r])});{if(ce(a.datetimeFormats)){const r=Object.keys(a.datetimeFormats);r.length&&r.forEach(h=>{e.mergeDateTimeFormat(h,a.datetimeFormats[h])})}if(ce(a.numberFormats)){const r=Object.keys(a.numberFormats);r.length&&r.forEach(h=>{e.mergeNumberFormat(h,a.numberFormats[h])})}}}function fo(e){return t.createVNode(t.Text,null,e,0)}const ho="__INTLIFY_META__",po=()=>[],As=()=>!1;let go=0;function _o(e){return(a,s,l,c)=>e(s,l,t.getCurrentInstance()||void 0,c)}const ws=()=>{const e=t.getCurrentInstance();let a=null;return e&&(a=mo(e)[ho])?{[ho]:a}:null};function Ds(e={},a){const{__root:s,__injectWithOption:l}=e,c=s===void 0,r=e.flatJson,h=it?t.ref:t.shallowRef,p=!!e.translateExistCompatible;process.env.NODE_ENV!=="production"&&p&&ua(On(He.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG));let f=ye(e.inheritLocale)?e.inheritLocale:!0;const k=h(s&&f?s.locale.value:U(e.locale)?e.locale:ln),I=h(s&&f?s.fallbackLocale.value:U(e.fallbackLocale)||Me(e.fallbackLocale)||oe(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:k.value),M=h(Zn(k.value,e)),N=h(oe(e.datetimeFormats)?e.datetimeFormats:{[k.value]:{}}),F=h(oe(e.numberFormats)?e.numberFormats:{[k.value]:{}});let z=s?s.missingWarn:ye(e.missingWarn)||zt(e.missingWarn)?e.missingWarn:!0,$=s?s.fallbackWarn:ye(e.fallbackWarn)||zt(e.fallbackWarn)?e.fallbackWarn:!0,X=s?s.fallbackRoot:ye(e.fallbackRoot)?e.fallbackRoot:!0,G=!!e.fallbackFormat,W=ve(e.missing)?e.missing:null,E=ve(e.missing)?_o(e.missing):null,y=ve(e.postTranslation)?e.postTranslation:null,w=s?s.warnHtmlMessage:ye(e.warnHtmlMessage)?e.warnHtmlMessage:!0,L=!!e.escapeParameter;const x=s?s.modifiers:oe(e.modifiers)?e.modifiers:{};let B=e.pluralRules||s&&s.pluralRules,P;P=(()=>{c&&Ua(null);const C={version:Ls,locale:k.value,fallbackLocale:I.value,messages:M.value,modifiers:x,pluralRules:B,missing:E===null?void 0:E,missingWarn:z,fallbackWarn:$,fallbackFormat:G,unresolving:!0,postTranslation:y===null?void 0:y,warnHtmlMessage:w,escapeParameter:L,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};C.datetimeFormats=N.value,C.numberFormats=F.value,C.__datetimeFormatters=oe(P)?P.__datetimeFormatters:void 0,C.__numberFormatters=oe(P)?P.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(C.__v_emitter=oe(P)?P.__v_emitter:void 0);const A=hs(C);return c&&Ua(A),A})(),sn(P,k.value,I.value);function Ve(){return[k.value,I.value,M.value,N.value,F.value]}const Z=t.computed({get:()=>k.value,set:C=>{k.value=C,P.locale=k.value}}),Te=t.computed({get:()=>I.value,set:C=>{I.value=C,P.fallbackLocale=I.value,sn(P,k.value,C)}}),Bt=t.computed(()=>M.value),$t=t.computed(()=>N.value),Fe=t.computed(()=>F.value);function bt(){return ve(y)?y:null}function Lt(C){y=C,P.postTranslation=C}function Tt(){return W}function Mt(C){C!==null&&(E=_o(C)),W=C,P.missing=E}function je(C,A){return C!=="translate"||!A.resolvedMessage}const Ye=(C,A,le,Q,de,At)=>{Ve();let Ne;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,c||(P.fallbackContext=s?fs():void 0),Ne=C(P)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,c||(P.fallbackContext=void 0)}if(le!=="translate exists"&&we(Ne)&&Ne===Ln||le==="translate exists"&&!Ne){const[te,Oe]=A();if(process.env.NODE_ENV!=="production"&&s&&U(te)&&je(le,Oe)&&(X&&(Mn($,te)||Xa(z,te))&&dt(On(He.FALLBACK_TO_ROOT,{key:te,type:le})),process.env.NODE_ENV!=="production")){const{__v_emitter:O}=P;O&&X&&O.emit("fallback",{type:le,key:te,to:"global",groupId:`${le}:${te}`})}return s&&X?Q(s):de(te)}else{if(At(Ne))return Ne;throw Nt(be.UNEXPECTED_RETURN_TYPE)}};function Ot(...C){return Ye(A=>Reflect.apply(qa,null,[A,...C]),()=>Un(...C),"translate",A=>Reflect.apply(A.t,A,[...C]),A=>A,A=>U(A))}function St(...C){const[A,le,Q]=C;if(Q&&!ce(Q))throw Nt(be.INVALID_ARGUMENT);return Ot(A,le,Re({resolvedMessage:!0},Q||{}))}function Ut(...C){return Ye(A=>Reflect.apply(no,null,[A,...C]),()=>Hn(...C),"datetime format",A=>Reflect.apply(A.d,A,[...C]),()=>Tn,A=>U(A))}function xe(...C){return Ye(A=>Reflect.apply(lo,null,[A,...C]),()=>Xn(...C),"number format",A=>Reflect.apply(A.n,A,[...C]),()=>Tn,A=>U(A))}function ht(C){return C.map(A=>U(A)||we(A)||ye(A)?fo(String(A)):A)}const ot={normalize:ht,interpolate:C=>C,type:"vnode"};function pt(...C){return Ye(A=>{let le;const Q=A;try{Q.processor=ot,le=Reflect.apply(qa,null,[Q,...C])}finally{Q.processor=null}return le},()=>Un(...C),"translate",A=>A[Yn](...C),A=>[fo(A)],A=>Me(A))}function It(...C){return Ye(A=>Reflect.apply(lo,null,[A,...C]),()=>Xn(...C),"number format",A=>A[zn](...C),po,A=>U(A)||Me(A))}function Ht(...C){return Ye(A=>Reflect.apply(no,null,[A,...C]),()=>Hn(...C),"datetime format",A=>A[Wn](...C),po,A=>U(A)||Me(A))}function gt(C){B=C,P.pluralRules=B}function R(C,A){return Ye(()=>{if(!C)return!1;const le=U(A)?A:k.value,Q=tt(le),de=P.messageResolver(Q,C);return p?de!=null:et(de)||Ze(de)||U(de)},()=>[C],"translate exists",le=>Reflect.apply(le.te,le,[C,A]),As,le=>ye(le))}function ue(C){let A=null;const le=wa(P,I.value,k.value);for(let Q=0;Q<le.length;Q++){const de=M.value[le[Q]]||{},At=P.messageResolver(de,C);if(At!=null){A=At;break}}return A}function _t(C){const A=ue(C);return A??(s?s.tm(C)||{}:{})}function tt(C){return M.value[C]||{}}function Xt(C,A){if(r){const le={[C]:A};for(const Q in le)Je(le,Q)&&rn(le[Q]);A=le[C]}M.value[C]=A,P.messages=M.value}function cn(C,A){M.value[C]=M.value[C]||{};const le={[C]:A};if(r)for(const Q in le)Je(le,Q)&&rn(le[Q]);A=le[C],kn(A,M.value[C]),P.messages=M.value}function d(C){return N.value[C]||{}}function m(C,A){N.value[C]=A,P.datetimeFormats=N.value,oo(P,C,A)}function T(C,A){N.value[C]=Re(N.value[C]||{},A),P.datetimeFormats=N.value,oo(P,C,A)}function Y(C){return F.value[C]||{}}function ke(C,A){F.value[C]=A,P.numberFormats=F.value,ro(P,C,A)}function ge(C,A){F.value[C]=Re(F.value[C]||{},A),P.numberFormats=F.value,ro(P,C,A)}go++,s&&it&&(t.watch(s.locale,C=>{f&&(k.value=C,P.locale=C,sn(P,k.value,I.value))}),t.watch(s.fallbackLocale,C=>{f&&(I.value=C,P.fallbackLocale=C,sn(P,k.value,I.value))}));const fe={id:go,locale:Z,fallbackLocale:Te,get inheritLocale(){return f},set inheritLocale(C){f=C,C&&s&&(k.value=s.locale.value,I.value=s.fallbackLocale.value,sn(P,k.value,I.value))},get availableLocales(){return Object.keys(M.value).sort()},messages:Bt,get modifiers(){return x},get pluralRules(){return B||{}},get isGlobal(){return c},get missingWarn(){return z},set missingWarn(C){z=C,P.missingWarn=z},get fallbackWarn(){return $},set fallbackWarn(C){$=C,P.fallbackWarn=$},get fallbackRoot(){return X},set fallbackRoot(C){X=C},get fallbackFormat(){return G},set fallbackFormat(C){G=C,P.fallbackFormat=G},get warnHtmlMessage(){return w},set warnHtmlMessage(C){w=C,P.warnHtmlMessage=C},get escapeParameter(){return L},set escapeParameter(C){L=C,P.escapeParameter=C},t:Ot,getLocaleMessage:tt,setLocaleMessage:Xt,mergeLocaleMessage:cn,getPostTranslationHandler:bt,setPostTranslationHandler:Lt,getMissingHandler:Tt,setMissingHandler:Mt,[Ss]:gt};return fe.datetimeFormats=$t,fe.numberFormats=Fe,fe.rt=St,fe.te=R,fe.tm=_t,fe.d=Ut,fe.n=xe,fe.getDateTimeFormat=d,fe.setDateTimeFormat=m,fe.mergeDateTimeFormat=T,fe.getNumberFormat=Y,fe.setNumberFormat=ke,fe.mergeNumberFormat=ge,fe[uo]=l,fe[Yn]=pt,fe[Wn]=Ht,fe[zn]=It,process.env.NODE_ENV!=="production"&&(fe[Gn]=C=>{P.__v_emitter=C},fe[jn]=()=>{P.__v_emitter=void 0}),fe}const qn={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function xs({slots:e},a){return a.length===1&&a[0]==="default"?(e.default?e.default():[]).reduce((l,c)=>[...l,...c.type===t.Fragment?c.children:[c]],[]):a.reduce((s,l)=>{const c=e[l];return c&&(s[l]=c()),s},_e())}function Eo(e){return t.Fragment}Re({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>we(e)||!isNaN(e)}},qn);function Ps(e){return Me(e)&&!U(e[0])}function Co(e,a,s,l){const{slots:c,attrs:r}=a;return()=>{const h={part:!0};let p=_e();e.locale&&(h.locale=e.locale),U(e.format)?h.key=e.format:ce(e.format)&&(U(e.format.key)&&(h.key=e.format.key),p=Object.keys(e.format).reduce((N,F)=>s.includes(F)?Re(_e(),N,{[F]:e.format[F]}):N,_e()));const f=l(e.value,h,p);let k=[h.key];Me(f)?k=f.map((N,F)=>{const z=c[N.type],$=z?z({[N.type]:N.value,index:F,parts:f}):[N.value];return Ps($)&&($[0].key=`${N.type}-${F}`),$}):U(f)&&(k=[f]);const I=Re(_e(),r),M=U(e.tag)||ce(e.tag)?e.tag:Eo();return t.h(M,I,k)}}Re({value:{type:Number,required:!0},format:{type:[String,Object]}},qn),Re({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},qn);function yo(e,a){}const Rs=ct("global-vue-i18n");function Sn(e={}){const a=t.getCurrentInstance();if(a==null)throw Nt(be.MUST_BE_CALL_SETUP_TOP);if(!a.isCE&&a.appContext.app!=null&&!a.appContext.app.__VUE_I18N_SYMBOL__)throw Nt(be.NOT_INSTALLED);const s=Vs(a),l=Bs(s),c=mo(a),r=Fs(e,c);if(__VUE_I18N_LEGACY_API__&&s.mode==="legacy"&&!e.__useComponent){if(!s.allowComposition)throw Nt(be.NOT_AVAILABLE_IN_LEGACY_MODE);return Xs(a,r,l,e)}if(r==="global")return Is(l,e,c),l;if(r==="parent"){let f=$s(s,a,e.__useComponent);return f==null&&(process.env.NODE_ENV!=="production"&&dt(On(He.NOT_FOUND_PARENT_SCOPE)),f=l),f}const h=s;let p=h.__getInstance(a);if(p==null){const f=Re({},e);"__i18n"in c&&(f.__i18n=c.__i18n),l&&(f.__root=l),p=Ds(f),h.__composerExtend&&(p[Kn]=h.__composerExtend(p)),Hs(h,a,p),h.__setInstance(a,p)}return p}function Vs(e){{const a=t.inject(e.isCE?Rs:e.appContext.app.__VUE_I18N_SYMBOL__);if(!a)throw Nt(e.isCE?be.NOT_INSTALLED_WITH_PROVIDE:be.UNEXPECTED_ERROR);return a}}function Fs(e,a){return En(e)?"__i18n"in a?"local":"global":e.useScope?e.useScope:"local"}function Bs(e){return e.mode==="composition"?e.global:e.global.__composer}function $s(e,a,s=!1){let l=null;const c=a.root;let r=Us(a,s);for(;r!=null;){const h=e;if(e.mode==="composition")l=h.__getInstance(r);else if(__VUE_I18N_LEGACY_API__){const p=h.__getInstance(r);p!=null&&(l=p.__composer,s&&l&&!l[uo]&&(l=null))}if(l!=null||c===r)break;r=r.parent}return l}function Us(e,a=!1){return e==null?null:a&&e.vnode.ctx||e.parent}function Hs(e,a,s){let l=null;t.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&a.vnode.el){a.vnode.el.__VUE_I18N__=s,l=Zo();const c=s;c[Gn]&&c[Gn](l),l.on("*",yo)}},a),t.onUnmounted(()=>{const c=s;process.env.NODE_ENV!=="production"&&a.vnode.el&&a.vnode.el.__VUE_I18N__&&(l&&l.off("*",yo),c[jn]&&c[jn](),delete a.vnode.el.__VUE_I18N__),e.__deleteInstance(a);const r=c[Kn];r&&(r(),delete c[Kn])},a)}function Xs(e,a,s,l={}){const c=a==="local",r=t.shallowRef(null);if(c&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw Nt(be.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const h=ye(l.inheritLocale)?l.inheritLocale:!U(l.locale),p=t.ref(!c||h?s.locale.value:U(l.locale)?l.locale:ln),f=t.ref(!c||h?s.fallbackLocale.value:U(l.fallbackLocale)||Me(l.fallbackLocale)||oe(l.fallbackLocale)||l.fallbackLocale===!1?l.fallbackLocale:p.value),k=t.ref(Zn(p.value,l)),I=t.ref(oe(l.datetimeFormats)?l.datetimeFormats:{[p.value]:{}}),M=t.ref(oe(l.numberFormats)?l.numberFormats:{[p.value]:{}}),N=c?s.missingWarn:ye(l.missingWarn)||zt(l.missingWarn)?l.missingWarn:!0,F=c?s.fallbackWarn:ye(l.fallbackWarn)||zt(l.fallbackWarn)?l.fallbackWarn:!0,z=c?s.fallbackRoot:ye(l.fallbackRoot)?l.fallbackRoot:!0,$=!!l.fallbackFormat,X=ve(l.missing)?l.missing:null,G=ve(l.postTranslation)?l.postTranslation:null,W=c?s.warnHtmlMessage:ye(l.warnHtmlMessage)?l.warnHtmlMessage:!0,E=!!l.escapeParameter,y=c?s.modifiers:oe(l.modifiers)?l.modifiers:{},w=l.pluralRules||c&&s.pluralRules;function L(){return[p.value,f.value,k.value,I.value,M.value]}const x=t.computed({get:()=>r.value?r.value.locale.value:p.value,set:R=>{r.value&&(r.value.locale.value=R),p.value=R}}),B=t.computed({get:()=>r.value?r.value.fallbackLocale.value:f.value,set:R=>{r.value&&(r.value.fallbackLocale.value=R),f.value=R}}),P=t.computed(()=>r.value?r.value.messages.value:k.value),me=t.computed(()=>I.value),Ve=t.computed(()=>M.value);function Z(){return r.value?r.value.getPostTranslationHandler():G}function Te(R){r.value&&r.value.setPostTranslationHandler(R)}function Bt(){return r.value?r.value.getMissingHandler():X}function $t(R){r.value&&r.value.setMissingHandler(R)}function Fe(R){return L(),R()}function bt(...R){return r.value?Fe(()=>Reflect.apply(r.value.t,null,[...R])):Fe(()=>"")}function Lt(...R){return r.value?Reflect.apply(r.value.rt,null,[...R]):""}function Tt(...R){return r.value?Fe(()=>Reflect.apply(r.value.d,null,[...R])):Fe(()=>"")}function Mt(...R){return r.value?Fe(()=>Reflect.apply(r.value.n,null,[...R])):Fe(()=>"")}function je(R){return r.value?r.value.tm(R):{}}function Ye(R,ue){return r.value?r.value.te(R,ue):!1}function Ot(R){return r.value?r.value.getLocaleMessage(R):{}}function St(R,ue){r.value&&(r.value.setLocaleMessage(R,ue),k.value[R]=ue)}function Ut(R,ue){r.value&&r.value.mergeLocaleMessage(R,ue)}function xe(R){return r.value?r.value.getDateTimeFormat(R):{}}function ht(R,ue){r.value&&(r.value.setDateTimeFormat(R,ue),I.value[R]=ue)}function qt(R,ue){r.value&&r.value.mergeDateTimeFormat(R,ue)}function ot(R){return r.value?r.value.getNumberFormat(R):{}}function pt(R,ue){r.value&&(r.value.setNumberFormat(R,ue),M.value[R]=ue)}function It(R,ue){r.value&&r.value.mergeNumberFormat(R,ue)}const Ht={get id(){return r.value?r.value.id:-1},locale:x,fallbackLocale:B,messages:P,datetimeFormats:me,numberFormats:Ve,get inheritLocale(){return r.value?r.value.inheritLocale:h},set inheritLocale(R){r.value&&(r.value.inheritLocale=R)},get availableLocales(){return r.value?r.value.availableLocales:Object.keys(k.value)},get modifiers(){return r.value?r.value.modifiers:y},get pluralRules(){return r.value?r.value.pluralRules:w},get isGlobal(){return r.value?r.value.isGlobal:!1},get missingWarn(){return r.value?r.value.missingWarn:N},set missingWarn(R){r.value&&(r.value.missingWarn=R)},get fallbackWarn(){return r.value?r.value.fallbackWarn:F},set fallbackWarn(R){r.value&&(r.value.missingWarn=R)},get fallbackRoot(){return r.value?r.value.fallbackRoot:z},set fallbackRoot(R){r.value&&(r.value.fallbackRoot=R)},get fallbackFormat(){return r.value?r.value.fallbackFormat:$},set fallbackFormat(R){r.value&&(r.value.fallbackFormat=R)},get warnHtmlMessage(){return r.value?r.value.warnHtmlMessage:W},set warnHtmlMessage(R){r.value&&(r.value.warnHtmlMessage=R)},get escapeParameter(){return r.value?r.value.escapeParameter:E},set escapeParameter(R){r.value&&(r.value.escapeParameter=R)},t:bt,getPostTranslationHandler:Z,setPostTranslationHandler:Te,getMissingHandler:Bt,setMissingHandler:$t,rt:Lt,d:Tt,n:Mt,tm:je,te:Ye,getLocaleMessage:Ot,setLocaleMessage:St,mergeLocaleMessage:Ut,getDateTimeFormat:xe,setDateTimeFormat:ht,mergeDateTimeFormat:qt,getNumberFormat:ot,setNumberFormat:pt,mergeNumberFormat:It};function gt(R){R.locale.value=p.value,R.fallbackLocale.value=f.value,Object.keys(k.value).forEach(ue=>{R.mergeLocaleMessage(ue,k.value[ue])}),Object.keys(I.value).forEach(ue=>{R.mergeDateTimeFormat(ue,I.value[ue])}),Object.keys(M.value).forEach(ue=>{R.mergeNumberFormat(ue,M.value[ue])}),R.escapeParameter=E,R.fallbackFormat=$,R.fallbackRoot=z,R.fallbackWarn=F,R.missingWarn=N,R.warnHtmlMessage=W}return t.onBeforeMount(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw Nt(be.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const R=r.value=e.proxy.$i18n.__composer;a==="global"?(p.value=R.locale.value,f.value=R.fallbackLocale.value,k.value=R.messages.value,I.value=R.datetimeFormats.value,M.value=R.numberFormats.value):c&&gt(R)}),Ht}if(Ts(),__INTLIFY_JIT_COMPILATION__?Ra(Cs):Ra(Es),cs(Xl),us(wa),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=ut();e.__INTLIFY__=!0,Jl(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const Ys=["data-chart-type"],Ws={class:"dss-chart-header"},zs={class:"dss-chart-header-titles"},Gs={key:0,class:"dss-chart-title"},js={key:1,class:"dss-chart-subtitle"},Ks={key:0,class:"dss-chart-legend"},Zs=["onClick","onMouseenter"],qs={class:"dss-legend-text"},Js=["width","height","data-smooth","data-animated"],Qs={id:"chart-clip"},er=["x","y","width","height"],tr={key:0},nr={key:0,class:"dss-grid-lines","clip-path":"url(#chart-clip)"},ar=["x1","x2","y1","y2"],or={class:"dss-axes"},lr=["x1","x2","y1","y2"],sr=["x1","x2","y1","y2"],rr={class:"dss-axis-labels"},ir=["x","y"],cr=["x","y"],ur=["x","y"],dr=["y","transform"],mr={key:1,class:"dss-flag-markers"},fr={"clip-path":"url(#chart-clip)"},hr=["x1","x2","y1","y2","onMouseover"],pr=["x1","x2","y1","y2","onMouseover"],gr=["x1","x2","y1","y2","onMouseover"],_r=["cx","cy","onMouseover"],Er=["cx","cy","fill","onMouseover"],Cr=["x","y"],yr={class:"dss-chart-data","clip-path":"url(#chart-clip)"},kr={key:0},vr=["d","stroke","stroke-width"],Nr=["cx","cy","r","fill","onMouseover"],br={key:1},Lr=["id"],Tr=["x","y","width","height"],Mr=["d","fill","fill-opacity","mask"],Or=["d","stroke","stroke-width"],Sr={key:2},Ir=["d","fill","onMouseover"],Ar=["x","y","width","height","fill","onMouseover"],wr={key:2,class:"dss-crosshair","clip-path":"url(#chart-clip)"},Dr=["x1","x2","y1","y2","stroke"],xr=["cx","cy","r","fill"],Pr={key:1,class:"radial-chart"},Rr=["cx","cy","r"],Vr=["data-chart-type"],Fr=["d","fill","fill-opacity","stroke","stroke-width","onMouseover"],Br={key:1,class:"dss-radial-labels"},$r=["x1","y1","x2","y2","stroke"],Ur=["x1","y1","x2","y2","stroke"],Hr=["x","y","text-anchor","font-size"],Xr={key:2,class:"dss-spider-chart"},Yr={key:0,class:"dss-spider-grid"},Wr=["points"],zr=["x1","x2","y1","y2"],Gr={class:"dss-spider-labels"},jr=["x","y","text-anchor","dominant-baseline"],Kr={class:"dss-spider-data"},Zr=["points","fill","fill-opacity","stroke","stroke-width","onMouseover"],qr=["cx","cy","r","fill","onMouseover"],Jr={class:"dss-chart-logos"},Qr=["cx","cy","r","fill"],ei=["x","y","width","height","xlink:href","onLoad","onError","clip-path"],ti=["onClick","title"],ni=["src","onError"],ai={class:"dss-tooltip-section"},oi={class:"dss-tooltip-title"},li={class:"dss-tooltip-value"},si={key:0,class:"dss-tooltip-section"},ri={class:"dss-tooltip-section-title"},ii={class:"dss-tooltip-group-header"},ci={class:"dss-tooltip-item-content"},ui={class:"dss-tooltip-item-text"},di={key:1,class:"dss-tooltip-section"},mi={class:"dss-tooltip-section-title"},fi={class:"dss-tooltip-item-content"},hi={class:"dss-tooltip-item-title"},pi={key:0,class:"dss-tooltip-item-description"},gi={class:"dss-tooltip-section"},_i={class:"dss-tooltip-title"},Ei={class:"dss-tooltip-series-name"},Ci={class:"dss-tooltip-series-value"},yi={key:0,class:"dss-tooltip-section"},ki={class:"dss-tooltip-section-title"},vi={class:"dss-tooltip-group-header"},Ni={class:"dss-tooltip-item-content"},bi={class:"dss-tooltip-item-text"},Li={key:1,class:"dss-tooltip-section"},Ti={class:"dss-tooltip-section-title"},Mi={class:"dss-tooltip-item-content"},Oi={class:"dss-tooltip-item-title"},Si={key:0,class:"dss-tooltip-item-description"},Ii={key:2,class:"dss-context-menu-separator"},Ai={key:0,class:"dss-context-menu-separator"},wi={key:0,class:"dss-context-menu-separator"},Di=["onClick"],xi=["innerHTML"],Pi={key:0,class:"dss-context-menu-icon"},Ri={class:"dss-marker-modal-header"},Vi={class:"dss-marker-modal-body"},Fi={class:"dss-form-group"},Bi={for:"dss-marker-title"},$i=["placeholder"],Ui={class:"dss-form-group"},Hi={for:"dss-marker-description"},Xi=["placeholder"],Yi={key:0,class:"dss-form-group"},Wi={for:"dss-marker-type"},zi={value:"default"},Gi=["value"],ji={class:"dss-form-group"},Ki={class:"icon-preview"},Zi=["src"],qi={class:"dss-marker-modal-footer"},Ji={class:"modal-footer-left"},Qi={class:"dss-modal-footer-right"},ec=["disabled"],Jn=Object.assign({name:"DSSChart"},{props:{series:{type:Array,required:!0,default:()=>[]},categories:{type:Array,default:()=>[]},flags:{type:Array,default:()=>[]},chartId:{type:String,default:()=>"chart-"+Math.random().toString(36).substring(2,9)},locale:{type:String,default:null},options:{type:Object,default:()=>({}),validator:e=>typeof e=="object"&&e!==null}},setup(e){const{t:a,locale:s}=Sn(),l=e,c={chart:{type:"line",width:800,height:400},title:{text:"",style:{}},subtitle:{text:"",style:{}},xAxis:{title:{text:""},type:"category"},yAxis:{min:"auto",max:"auto",title:{text:""}},legend:{show:!0},radialLabels:{show:!1,pointerLength:25,horizontalLength:35,fontSize:14,color:"#000",textOffset:8},grid:{show:!0,style:{}},watermark:{enabled:!0,opacity:.05,size:"25%",position:"bottom-right"},colors:["#3B82F6","#EF4444","#10B981","#F59E0B","#8B5CF6","#F97316","#06B6D4","#84CC16"],logos:[],stroke:{width:2,curve:"smooth"},bubbles:{size:4},markers:{show:!0,icon:null,iconSize:25,customIcons:{}},fill:{area:{opacity:.3},spider:{opacity:.15}},crosshair:{show:!1,color:"#666"},zoom:{enabled:!0,minScale:1,maxScale:2.5},smoothing:{enabled:!1,factor:.3,barRadius:4},animations:{enabled:!0,type:"draw",duration:2500,delay:0,staggerDelay:200,easing:"ease-out",onDataChange:!0,respectReducedMotion:!0},contextMenu:{enabled:!0,items:{addMarker:!0,downloadSvg:!0,downloadPng:!0,downloadCsv:!0},customItems:[]}};function r(n,i){const o=Object.assign({},n);return p(n)&&p(i)&&Object.keys(i).forEach(u=>{p(i[u])?u in n?o[u]=r(n[u],i[u]):Object.assign(o,{[u]:i[u]}):Object.assign(o,{[u]:i[u]})}),o}const h=()=>{let n=20,i=0;if(N.value&&(n+=30),F.value&&(n+=25),E.value&&l.series.length>0){const o=l.series.filter((v,S)=>!Q.value.has(S)).length,g=Math.floor(k.value/100);i=Math.ceil(o/g)*25+10,n+=i}return{height:n,legendHeight:i}};function p(n){return n&&typeof n=="object"&&!Array.isArray(n)}const f=t.computed(()=>r(c,l.options)),k=t.computed(()=>{const n=f.value;return n&&n.chart&&typeof n.chart.width=="number"?n.chart.width:800}),I=t.computed(()=>{const n=f.value;return n&&n.chart&&typeof n.chart.height=="number"?n.chart.height:400}),M=t.computed(()=>{const n=f.value;return n&&n.chart&&n.chart.type?n.chart.type:"line"}),N=t.computed(()=>{const n=f.value;return n&&n.title&&n.title.text?n.title.text:""}),F=t.computed(()=>{const n=f.value;return n&&n.subtitle&&n.subtitle.text?n.subtitle.text:""}),z=t.computed(()=>{const n=f.value;return n&&n.xAxis&&n.xAxis.title&&n.xAxis.title.text?n.xAxis.title.text:""}),$=t.computed(()=>{const n=f.value;return n&&n.yAxis&&n.yAxis.title&&n.yAxis.title.text?n.yAxis.title.text:""}),X=t.computed(()=>{const n=f.value;if(!n||!n.yAxis)return xt;const i=n.yAxis.min;return typeof i=="number"||i===xt?i:xt}),G=t.computed(()=>{const n=f.value;if(!n||!n.yAxis)return xt;const i=n.yAxis.max;return typeof i=="number"||i===xt?i:xt}),W=t.computed(()=>{const n=f.value;return n&&n.grid&&n.grid.show!==!1}),E=t.computed(()=>{const n=f.value;return n&&n.legend&&n.legend.show!==!1}),y=t.computed(()=>{const n=f.value;return n&&n.crosshair&&n.crosshair.show===!0}),w=t.computed(()=>{const n=f.value;return n&&n.crosshair&&n.crosshair.color?n.crosshair.color:"#666"}),L=t.computed(()=>{const n=f.value;return n&&n.zoom&&n.zoom.enabled!==!1}),x=t.computed(()=>{const n=f.value;return n&&n.zoom&&typeof n.zoom.minScale=="number"?n.zoom.minScale:1}),B=t.computed(()=>{const n=f.value;return n&&n.zoom&&typeof n.zoom.maxScale=="number"?n.zoom.maxScale:2.5}),P=t.computed(()=>{const n=f.value;return n&&n.stroke&&typeof n.stroke.width=="number"?n.stroke.width:2}),me=t.computed(()=>{const n=f.value;return n&&n.bubbles&&typeof n.bubbles.size=="number"?n.bubbles.size:4}),Ve=t.computed(()=>{const n=f.value;return n&&n.fill&&n.fill.area&&typeof n.fill.area.opacity=="number"?n.fill.area.opacity:.3}),Z=t.computed(()=>{const n=f.value;return n&&n.smoothing&&n.smoothing.enabled===!0}),Te=t.computed(()=>{const n=f.value;return n&&n.smoothing&&typeof n.smoothing.factor=="number"?n.smoothing.factor:.3}),Bt=t.computed(()=>{const n=f.value;return Z.value?n&&n.smoothing&&typeof n.smoothing.barRadius=="number"?n.smoothing.barRadius:4:0}),$t=t.computed(()=>{const n=f.value,i=n&&n.colors&&Array.isArray(n.colors)?n.colors:[];return i.length>0?i:["#3B82F6","#EF4444","#10B981","#F59E0B","#8B5CF6","#F97316","#06B6D4","#84CC16"]}),Fe=t.computed(()=>{const n=f.value;return n&&n.animations&&n.animations.enabled!==!1}),bt=t.computed(()=>{const n=f.value;return n&&n.animations&&n.animations.type?n.animations.type:"draw"}),Lt=t.computed(()=>{const n=f.value;return n&&n.animations&&typeof n.animations.duration=="number"?n.animations.duration:2500}),Tt=t.computed(()=>{const n=f.value;return n&&n.animations&&typeof n.animations.delay=="number"?n.animations.delay:0}),Mt=t.computed(()=>{const n=f.value;return n&&n.animations&&n.animations.easing?n.animations.easing:"ease-out"}),je=t.computed(()=>{const n=f.value;return n&&n.animations&&typeof n.animations.staggerDelay=="number"?n.animations.staggerDelay:200}),Ye=t.computed(()=>{const n=f.value;return n&&n.animations&&n.animations.onDataChange!==!1}),Ot=t.computed(()=>{const n=f.value;return n&&n.animations&&n.animations.respectReducedMotion!==!1}),St=t.computed(()=>{const n=f.value;return n&&n.fill&&n.fill.spider&&typeof n.fill.spider.opacity=="number"?n.fill.spider.opacity:.15}),Ut=t.computed(()=>{const n=f.value;return n&&n.contextMenu&&n.contextMenu.enabled===!0}),xe=t.computed(()=>{const n=f.value,i={addMarker:!0,downloadSvg:!0,downloadPng:!0,downloadCsv:!0};return n&&n.contextMenu&&n.contextMenu.items?{...i,...n.contextMenu.items}:i}),ht=t.computed(()=>{const n=f.value;return n&&n.contextMenu&&Array.isArray(n.contextMenu.customItems)?n.contextMenu.customItems:[]}),qt=t.computed(()=>{const n=f.value;return n&&n.markers&&n.markers.icon?n.markers.icon:m.value}),ot=t.computed(()=>{const n=f.value;return n&&n.markers&&n.markers.customIcons?n.markers.customIcons:{}}),pt=t.computed(()=>{const n=f.value;return n&&n.markers&&typeof n.markers.iconSize=="number"?n.markers.iconSize:20}),It=t.computed(()=>!O.value.isZooming),Ht=t.computed(()=>Se.value.map(n=>{if(n.categoryIndex!==void 0&&We.value){const i=nt(n.categoryIndex),o=b.value.bottom+85;return{...n,x:i,y:o}}return n})),gt=t.computed(()=>{const n=f.value;return n&&n.watermark&&n.watermark.enabled===!0}),R=t.computed(()=>{const n=f.value;return n&&n.watermark&&typeof n.watermark.opacity=="number"?n.watermark.opacity:.05}),ue=t.computed(()=>{const n=f.value;return n&&n.watermark&&n.watermark.size?n.watermark.size:"25%"}),_t=t.computed(()=>{const n=f.value;return n&&n.watermark&&n.watermark.position?n.watermark.position:"bottom-right"}),tt=t.computed(()=>{const n={left:b.value.left,top:b.value.top,width:b.value.width,height:b.value.height};let i,o;const u=String(ue.value);if(u.includes("%")){const g=parseFloat(u)/100;i=n.width*g,o=i*(96/499)}else{const g=parseFloat(u)||25;i=Math.min(n.width*.25,200)*(g/25),o=i*(96/499)}return{width:i,height:o,area:n}}),Xt=t.computed(()=>{const{width:n,height:i}=tt.value,o=_t.value;let u,g;const _=b.value.left,v=b.value.right,S=b.value.top,V=b.value.bottom,D=b.value.width,H=b.value.height;switch(o){case"center":u=_+(D-n)/2,g=S+(H-i)/1.2;break;case"top-left":u=_+15,g=S+95;break;case"top-right":u=v-n-5,g=S+95;break;case"bottom-left":u=_+15,g=V-i+75;break;case"bottom-right":default:u=v-n-5,g=V-i+75;break}return{backgroundPositionX:u+"px",backgroundPositionY:g+"px",backgroundSize:`${n}px ${i}px`}}),cn=n=>!l.flags||!l.flags.length?[]:l.flags.filter(i=>i.categoryIndex===n),d=n=>{const i=cn(n),o=uc(n),u=i.filter(v=>v.manual),g=i.filter(v=>!v.manual),_=[];return u.length>0&&_.push({type:a("chart.tooltip.manualFlags"),color:"#047395",flags:u.map(v=>({text:v.text,color:"#047395"}))}),g.length>0&&_.push({type:a("chart.tooltip.autoFlags"),color:"#0dbf89",flags:g.map(v=>({text:v.text,color:"#0dbf89"}))}),{flagGroups:_,markers:o.map(v=>({title:v.title,description:v.description,type:a("chart.tooltip.markers"),color:v.color||"#FF6B6B"}))}},m=t.computed(()=>`data:image/svg+xml;base64,${btoa(`<svg width="55" height="56" viewBox="0 0 55 56" fill="none" xmlns="http://www.w3.org/2000/svg">
24
+ <path d="M55 51.841V4.14647C55 1.86149 53.1797 0.00915527 50.9343 0.00915527L4.06568 0.00915527C1.82027 0.00915527 0 1.86149 0 4.14647V51.841C0 54.126 1.82027 55.9783 4.06568 55.9783H50.9343C53.1797 55.9783 55 54.126 55 51.841Z" fill="#020203"/>
25
+ <path d="M27.7145 10.8883H16.9591C12.7639 10.8883 9.3623 14.3498 9.3623 18.619C9.3623 22.8882 12.7639 26.3497 16.9591 26.3497H27.8036C28.3624 26.3497 28.816 25.8881 28.816 25.3112L28.7188 11.9103C28.7188 11.3416 28.2653 10.8883 27.7064 10.8883H27.7145Z" fill="#FFC230"/>
26
+ <path d="M38.6799 25.649C42.5176 25.649 45.6288 22.483 45.6288 18.5776C45.6288 14.6722 42.5176 11.5063 38.6799 11.5063C34.8421 11.5063 31.731 14.6722 31.731 18.5776C31.731 22.483 34.8421 25.649 38.6799 25.649Z" fill="white"/>
27
+ <path d="M27.2846 45.1083H38.04C42.2352 45.1083 45.6368 41.6468 45.6368 37.3776C45.6368 33.1084 42.2352 29.6469 38.04 29.6469H27.1955C26.6366 29.6469 26.1831 30.1084 26.1831 30.6854L26.2803 44.0863C26.2803 44.655 26.7338 45.1083 27.2927 45.1083H27.2846Z" fill="#07A9DA"/>
28
+ <path d="M16.3198 44.4813C20.1575 44.4813 23.2687 41.3153 23.2687 37.4099C23.2687 33.5045 20.1575 30.3386 16.3198 30.3386C12.482 30.3386 9.37085 33.5045 9.37085 37.4099C9.37085 41.3153 12.482 44.4813 16.3198 44.4813Z" fill="white"/>
29
+ </svg>`)}`),T=t.computed(()=>`data:image/svg+xml;base64,${btoa(`<svg width="499" height="96" viewBox="0 0 499 96" fill="none" xmlns="http://www.w3.org/2000/svg">
30
+ <path d="M171.52 37.8399H160.38C160.26 36.4799 160.02 35.0599 159.68 33.5699C159.34 32.0799 158.77 30.7399 157.96 29.5299C157.16 28.3199 156 27.3199 154.48 26.5099C152.96 25.7099 150.94 25.2999 148.4 25.2999C144.69 25.2999 141.93 26.1299 140.14 27.8099C138.34 29.4799 137.45 31.5499 137.45 34.0299C137.45 37.7999 139.29 40.0799 142.97 40.8499C146.65 41.6299 150.67 42.3799 155.03 43.1199C159.39 43.8599 163.41 45.3899 167.09 47.7099C170.77 50.0299 172.61 54.6199 172.61 61.4899C172.61 64.6499 172.02 67.5099 170.85 70.0699C169.67 72.6399 168.02 74.7899 165.89 76.5199C163.76 78.2499 161.19 79.5799 158.19 80.5099C155.19 81.4399 151.93 81.8999 148.4 81.8999C143.95 81.8999 140.12 81.2699 136.94 79.9999C133.75 78.7299 131.19 77.0799 129.24 75.0399C127.29 72.9999 125.93 70.6899 125.16 68.1299C124.39 65.5599 124.19 62.9499 124.56 60.2899H136.25C136.37 62.0799 136.58 63.7899 136.85 65.3899C137.13 66.9999 137.68 68.4099 138.52 69.6099C139.35 70.8199 140.58 71.7799 142.19 72.4899C143.8 73.1999 145.99 73.5599 148.78 73.5599C153.3 73.5599 156.47 72.6199 158.29 70.7299C160.11 68.8399 161.03 66.6899 161.03 64.2799C161.03 60.2599 159.19 57.7799 155.51 56.8599C151.83 55.9299 147.79 55.0499 143.4 54.2099C139.01 53.3799 134.97 51.7699 131.29 49.3799C127.61 46.9999 125.77 42.3699 125.77 35.5099C125.77 32.8499 126.3 30.3899 127.35 28.1299C128.4 25.8699 129.9 23.9199 131.85 22.2799C133.8 20.6399 136.16 19.3399 138.95 18.3799C141.73 17.4199 144.8 16.9399 148.14 16.9399C152.41 16.9399 156.07 17.4699 159.14 18.5199C162.2 19.5699 164.69 21.0299 166.61 22.8799C168.53 24.7399 169.89 26.9499 170.69 29.5199C171.49 32.0899 171.77 34.8599 171.52 37.8199V37.8399Z" fill="#020203"/>
31
+ <path d="M179.04 58.1699C179.04 55.0799 179.55 52.0499 180.57 49.0699C181.59 46.0999 183.04 43.4899 184.93 41.2299C186.82 38.9699 189.09 37.1499 191.75 35.7499C194.41 34.3599 197.35 33.6599 200.57 33.6599C207 33.6599 212.15 35.9299 216.02 40.4799C219.89 45.0299 221.97 51.5999 222.28 60.1999H189.34C189.77 64.2199 191.09 67.1499 193.28 68.9699C195.48 70.7999 198.12 71.7099 201.21 71.7099C203 71.7099 204.5 71.4599 205.71 70.9699C206.92 70.4799 207.91 69.8899 208.68 69.2099C209.45 68.5299 210.06 67.8199 210.49 67.0799C210.92 66.3399 211.26 65.7199 211.51 65.2199H221.72C221.6 66.7699 221.1 68.5099 220.24 70.4599C219.37 72.4099 218.14 74.2299 216.53 75.9399C214.92 77.6399 212.85 79.0599 210.31 80.2099C207.77 81.3499 204.77 81.9299 201.31 81.9299C197.85 81.9299 194.91 81.2799 192.12 79.9799C189.34 78.6799 186.98 76.9499 185.07 74.7799C183.15 72.6099 181.67 70.0899 180.61 67.2199C179.56 64.3399 179.03 61.3299 179.03 58.1699H179.04ZM200.94 42.0199C198.47 42.0199 196.24 42.7299 194.26 44.1499C192.28 45.5699 190.89 47.8299 190.08 50.9199H211.33C211.02 48.0799 209.95 45.8799 208.13 44.3299C206.3 42.7899 203.91 42.0099 200.94 42.0099V42.0199Z" fill="#020203"/>
32
+ <path d="M268.59 80.9999H258.01V50.3799C258.01 48.2099 257.3 46.5099 255.88 45.2799C254.46 44.0399 252.6 43.4199 250.31 43.4199C248.45 43.4199 246.94 43.8399 245.76 44.6699C244.58 45.4999 243.67 46.5399 243.02 47.7799C242.37 49.0199 241.94 50.3799 241.72 51.8599C241.5 53.3399 241.4 54.7099 241.4 55.9399V80.9999H230.82V34.5999H241.03V38.3099C241.83 37.6899 243.27 36.7599 245.34 35.5199C247.41 34.2799 250.3 33.6599 254.02 33.6599C256.68 33.6599 259.12 34.1599 261.35 35.1399C263.58 36.1299 265.31 37.6799 266.55 39.7799C267.04 39.2899 267.71 38.6799 268.55 37.9699C269.38 37.2599 270.41 36.5799 271.61 35.9299C272.82 35.2799 274.22 34.7399 275.83 34.3099C277.44 33.8799 279.23 33.6599 281.21 33.6599C285.23 33.6599 288.67 34.8099 291.51 37.0899C294.36 39.3799 295.78 43.0599 295.78 48.1299V80.9799H285.2V50.3599C285.2 48.1899 284.49 46.4899 283.07 45.2599C281.65 44.0199 279.79 43.3999 277.5 43.3999C275.64 43.3999 274.13 43.8199 272.95 44.6499C271.77 45.4799 270.86 46.5199 270.21 47.7599C269.56 48.9999 269.13 50.3599 268.91 51.8399C268.69 53.3199 268.59 54.6899 268.59 55.9199V80.9799V80.9999Z" fill="#020203"/>
33
+ <path d="M344.78 67.3499C344.78 68.7099 345.21 69.7199 346.08 70.3699C346.95 71.0199 348.09 71.3399 349.51 71.3399C350.13 71.3399 350.76 71.2899 351.41 71.1999C352.06 71.1099 352.82 70.9699 353.68 70.7799V80.9899C352.07 81.2399 350.77 81.3899 349.78 81.4499C348.79 81.5099 347.89 81.5399 347.09 81.5399C344.24 81.5399 342.05 81.1799 340.5 80.4699C338.95 79.7599 337.65 78.5099 336.6 76.7099C336.17 77.0199 335.55 77.4699 334.74 78.0599C333.94 78.6499 332.95 79.2199 331.77 79.7799C330.59 80.3399 329.2 80.8299 327.59 81.2599C325.98 81.6899 324.16 81.9099 322.11 81.9099C319.51 81.9099 317.1 81.4899 314.87 80.6599C312.64 79.8299 310.72 78.6999 309.12 77.2699C307.51 75.8499 306.24 74.2099 305.32 72.3499C304.39 70.4899 303.93 68.5499 303.93 66.4999C303.93 61.2399 305.96 57.4499 310.01 55.1299C314.06 52.8099 319.27 51.6499 325.65 51.6499H334.56V49.4199C334.56 46.9499 333.68 44.9399 331.92 43.3899C330.16 41.8399 327.88 41.0699 325.1 41.0699C322.32 41.0699 320.09 41.7799 318.6 43.1999C317.12 44.6199 316.37 46.6999 316.37 49.4199H305.05C305.05 46.9499 305.58 44.7199 306.63 42.7399C307.68 40.7599 309.12 39.1099 310.94 37.7799C312.76 36.4499 314.91 35.4299 317.39 34.7199C319.86 34.0099 322.52 33.6499 325.37 33.6499C327.97 33.6499 330.44 33.9399 332.79 34.5299C335.14 35.1199 337.2 36.0299 338.96 37.2699C340.72 38.5099 342.13 40.0499 343.18 41.9099C344.23 43.7699 344.76 45.9299 344.76 48.4099V67.3399L344.78 67.3499ZM315.45 67.6299C315.45 69.4899 316.19 71.0999 317.68 72.4599C319.16 73.8199 321.14 74.4999 323.62 74.4999C325.54 74.4999 327.18 74.1399 328.54 73.4299C329.9 72.7199 331.03 71.8399 331.93 70.7899C332.83 69.7399 333.49 68.6199 333.93 67.4499C334.36 66.2799 334.58 65.2199 334.58 64.2899V59.6499C330.56 59.4599 327.29 59.5399 324.79 59.8799C322.29 60.2199 320.35 60.7599 318.99 61.4999C317.63 62.2399 316.7 63.1399 316.21 64.1899C315.71 65.2399 315.47 66.3899 315.47 67.6199L315.45 67.6299Z" fill="#020203"/>
34
+ <path d="M356.47 58.1699C356.47 54.5799 357.01 51.2899 358.09 48.2899C359.17 45.2899 360.67 42.7099 362.59 40.5399C364.51 38.3799 366.8 36.6899 369.46 35.4799C372.12 34.2699 375.03 33.6699 378.18 33.6699C382.2 33.6699 385.51 34.4399 388.11 35.9899C390.71 37.5399 392.78 39.3799 394.33 41.5099C395.88 43.6399 397.02 45.8899 397.76 48.2399C398.5 50.5899 399.03 52.5399 399.34 54.0899H388.58C388.15 51.2499 387.11 48.8299 385.47 46.8499C383.83 44.8699 381.28 43.8799 377.81 43.8799C374.78 43.8799 372.16 45.0399 369.97 47.3599C367.77 49.6799 366.68 53.1599 366.68 57.7999C366.68 62.6899 367.89 66.2299 370.3 68.4299C372.71 70.6299 375.47 71.7199 378.56 71.7199C380.29 71.7199 381.78 71.4399 383.01 70.8899C384.25 70.3299 385.27 69.6099 386.07 68.7099C386.87 67.8099 387.54 66.8099 388.07 65.6899C388.59 64.5799 389.07 63.4899 389.51 62.4399H399.16C399.16 64.3599 398.73 66.4599 397.86 68.7499C396.99 71.0399 395.68 73.1599 393.92 75.1099C392.16 77.0599 389.91 78.6799 387.19 79.9799C384.47 81.2799 381.28 81.9299 377.63 81.9299C374.47 81.9299 371.58 81.2799 368.95 79.9799C366.32 78.6799 364.09 76.9499 362.27 74.7799C360.44 72.6099 359.02 70.0899 358 67.2199C356.98 64.3499 356.47 61.3299 356.47 58.1699Z" fill="#020203"/>
35
+ <path d="M410.11 17.8899H420.32V34.5899H426.82V44.7999H420.32V68.7399C420.32 70.0999 420.71 71.0299 421.48 71.5199C422.25 72.0199 423.1 72.2599 424.03 72.2599C424.83 72.2599 425.53 72.1799 426.12 72.0299C426.71 71.8799 427.16 71.6999 427.47 71.5199V80.7999C427.04 80.9199 426.23 81.1399 425.06 81.4499C423.88 81.7599 422.24 81.9099 420.14 81.9099C416.61 81.9099 414.06 81.0099 412.48 79.2199C410.9 77.4299 410.11 75.4199 410.11 73.1899V44.7899H404.54V34.5799H410.11V17.8799V17.8899Z" fill="#020203"/>
36
+ <path d="M435.81 16.96H446.39V28.1H435.81V16.96ZM435.81 34.59H446.39V80.99H435.81V34.59Z" fill="#020203"/>
37
+ <path d="M455.67 58.1699C455.67 54.5799 456.21 51.2899 457.29 48.2899C458.37 45.2899 459.87 42.7099 461.79 40.5399C463.71 38.3799 466 36.6899 468.66 35.4799C471.32 34.2699 474.23 33.6699 477.38 33.6699C481.4 33.6699 484.71 34.4399 487.31 35.9899C489.91 37.5399 491.98 39.3799 493.53 41.5099C495.08 43.6399 496.22 45.8899 496.96 48.2399C497.7 50.5899 498.23 52.5399 498.54 54.0899H487.78C487.35 51.2499 486.31 48.8299 484.67 46.8499C483.03 44.8699 480.48 43.8799 477.01 43.8799C473.98 43.8799 471.36 45.0399 469.17 47.3599C466.97 49.6799 465.88 53.1599 465.88 57.7999C465.88 62.6899 467.09 66.2299 469.5 68.4299C471.91 70.6299 474.67 71.7199 477.76 71.7199C479.49 71.7199 480.98 71.4399 482.21 70.8899C483.45 70.3299 484.47 69.6099 485.27 68.7099C486.07 67.8099 486.74 66.8099 487.27 65.6899C487.79 64.5799 488.27 63.4899 488.71 62.4399H498.36C498.36 64.3599 497.93 66.4599 497.06 68.7499C496.19 71.0399 494.88 73.1599 493.12 75.1099C491.36 77.0599 489.11 78.6799 486.39 79.9799C483.67 81.2799 480.48 81.9299 476.83 81.9299C473.67 81.9299 470.78 81.2799 468.15 79.9799C465.52 78.6799 463.29 76.9499 461.47 74.7799C459.64 72.6099 458.22 70.0899 457.2 67.2199C456.18 64.3499 455.67 61.3299 455.67 58.1699Z" fill="#020203"/>
38
+ <path d="M95.8 88.71V7.09C95.8 3.1743 92.6258 0 88.7101 0L7.09004 0C3.17435 0 4.57764e-05 3.1743 4.57764e-05 7.09V88.71C4.57764e-05 92.6257 3.17435 95.8 7.09004 95.8H88.7101C92.6258 95.8 95.8 92.6257 95.8 88.71Z" fill="#020203"/>
39
+ <path d="M48.2801 18.61H29.5501C22.2401 18.61 16.3201 24.53 16.3201 31.84C16.3201 39.15 22.2401 45.07 29.5501 45.07H48.4401C49.4201 45.07 50.2101 44.27 50.2001 43.29L50.0401 20.35C50.0401 19.38 49.2501 18.6 48.2801 18.6V18.61Z" fill="#FFC530"/>
40
+ <path d="M67.37 43.9C74.0582 43.9 79.48 38.4782 79.48 31.79C79.48 25.1018 74.0582 19.68 67.37 19.68C60.6818 19.68 55.26 25.1018 55.26 31.79C55.26 38.4782 60.6818 43.9 67.37 43.9Z" fill="white"/>
41
+ <path d="M47.5201 77.18H66.2501C73.5601 77.18 79.4801 71.26 79.4801 63.95C79.4801 56.64 73.5601 50.72 66.2501 50.72H47.3601C46.3801 50.72 45.5901 51.52 45.6001 52.5L45.7601 75.44C45.7601 76.41 46.5501 77.19 47.5201 77.19V77.18Z" fill="#07ACDD"/>
42
+ <path d="M28.4201 76.12C35.1082 76.12 40.5301 70.6982 40.5301 64.01C40.5301 57.3218 35.1082 51.9 28.4201 51.9C21.7319 51.9 16.3101 57.3218 16.3101 64.01C16.3101 70.6982 21.7319 76.12 28.4201 76.12Z" fill="white"/>
43
+ </svg>`)}`),Y=t.computed(()=>{const n=f.value;return n&&n.radialLabels&&n.radialLabels.show===!0}),ke=t.computed(()=>{const n=f.value;return n&&n.radialLabels&&typeof n.radialLabels.fontSize=="number"?n.radialLabels.fontSize:12});t.computed(()=>{const n=f.value;return n&&n.radialLabels&&n.radialLabels.color?n.radialLabels.color:"#000"});const ge=t.computed(()=>{const n=f.value;return n&&n.radialLabels&&typeof n.radialLabels.pointerLength=="number"?n.radialLabels.pointerLength:25}),fe=t.computed(()=>{const n=f.value;return n&&n.radialLabels&&typeof n.radialLabels.horizontalLength=="number"?n.radialLabels.horizontalLength:40}),C=t.computed(()=>{const n=f.value;return n&&n.radialLabels&&typeof n.radialLabels.textOffset=="number"?n.radialLabels.textOffset:8}),A=t.computed(()=>{if(!l.flags||!l.flags.length)return[];const n=new Map;return l.flags.forEach(i=>{const o=i.categoryIndex;n.has(o)||n.set(o,[]),n.get(o).push(i)}),Array.from(n.entries()).map(([i,o])=>{const u=nt(i),g=o.filter(v=>v.manual),_=o.filter(v=>!v.manual);return{categoryIndex:parseInt(i),x:u,flags:o,manualCount:g.length,autoCount:_.length,totalCount:o.length,hasManual:g.length>0,hasAuto:_.length>0,texts:o.map(v=>v.text).join(`
44
+ `)}})}),le=t.ref({show:!1,x:0,y:0,content:"",count:0}),Q=t.ref(new Set),de=t.ref(null),At=t.ref(!1),Ne=t.ref({show:!1,x:0,y:0,title:"",value:""}),te=t.ref({show:!1,x:0,categoryIndex:-1,data:[]}),Oe=t.ref({show:!1,x:0,y:0,mouseDataX:0,mouseDataY:0,categoryIndex:-1,chartX:0,chartY:0}),O=t.ref({scale:1,offsetX:0,minScale:1,maxScale:2.5,isDragging:!1,lastMouseX:0,lastMouseY:0,isZooming:!1,zoomTimeout:null}),Se=t.ref([]),ie=t.ref({show:!1,title:"",description:"",color:"#FF6B6B",type:"default",editingMarkerId:null}),ko=t.computed(()=>{const n=["default"];return ot.value&&n.push(...Object.keys(ot.value)),n}),un=t.computed(()=>ie.value.editingMarkerId!==null),nc=n=>{Q.value.has(n)||(de.value=n)},ac=()=>{de.value=null},oc=n=>{if(fn.value)return;const o=n.currentTarget.getBoundingClientRect(),u=n.clientX-o.left,g=n.clientY-o.top,_=u>=b.value.left&&u<=b.value.right&&g>=b.value.top+60&&g<=b.value.bottom+90;if(At.value=_,O.value.isDragging&&O.value.scale>1&&We.value&&L.value){te.value.show=!1;const se=n.clientX-O.value.lastMouseX,{minX:q,maxX:ee}=qe.value,ae=ee-q||1,K=se*.8;O.value.offsetX+=K;const J=ae/O.value.scale,re=ae-J,Pe=0,Ue=-re/ae*b.value.width,Wt=Pe;O.value.offsetX=Math.max(Ue,Math.min(Wt,O.value.offsetX)),O.value.lastMouseX=n.clientX,O.value.lastMouseY=n.clientY;return}if(!y.value||!We.value||O.value.isDragging||O.value.isZooming||!_){te.value.show=!1;return}const{minX:v,maxX:S}=qe.value,V=S-v||1,D=V/O.value.scale,H=v-O.value.offsetX/b.value.width*V,ne=(u-b.value.left)/b.value.width,pe=H+ne*D,Ce=Math.round(pe);if(Ce>=0&&Ce<=S){const se=nt(Ce),q=mn.value.map((ee,ae)=>{const Le=l.series.findIndex(J=>J===ee),K=ee.data[Ce];return{seriesName:ee.name,value:K!==void 0?K:null,color:Ke(Le),y:K!==void 0?lt(K):null}}).filter(ee=>ee.value!==null);te.value={show:!0,x:se,categoryIndex:Ce,data:q}}},lc=()=>{te.value.show=!1,At.value=!1,fn.value||(le.value.show=!1),O.value.isDragging&&(O.value.isDragging=!1),O.value.zoomTimeout&&(clearTimeout(O.value.zoomTimeout),O.value.zoomTimeout=null),O.value.isZooming=!1},sc=n=>{if(!Ut.value)return;n.preventDefault();const o=n.currentTarget.getBoundingClientRect(),u=n.clientX-o.left,g=n.clientY-o.top,_=u>=b.value.left&&u<=b.value.right&&g>=b.value.top+60&&g<=b.value.bottom+90,v=40,S=g>=b.value.bottom-v&&g<=b.value.bottom+v;if(!_||!S)return;let V=0,D=0,H=-1;if(We.value){const{minX:q,maxX:ee,minY:ae}=qe.value,Le=ee-q||1,K=Le/O.value.scale,J=q-O.value.offsetX/b.value.width*Le,re=(u-b.value.left)/b.value.width;V=J+re*K,D=ae,H=Math.round(V)}let ne=n.clientX,pe=n.clientY;const Ce=200,se=150;ne+Ce>window.innerWidth&&(ne=window.innerWidth-Ce-10),pe+se>window.innerHeight&&(pe=window.innerHeight-se-10),Oe.value={show:!0,x:ne,y:pe,mouseDataX:V,mouseDataY:D,categoryIndex:Math.max(0,H),chartX:u,chartY:b.value.bottom}},Et=()=>{Oe.value.show=!1},rc=n=>{if(typeof n.template=="function"){const i={series:l.series,categories:l.categories,markers:Se.value},o={chartX:Oe.value.chartX,chartY:Oe.value.chartY,dataX:Oe.value.mouseDataX,dataY:Oe.value.mouseDataY,categoryIndex:Oe.value.categoryIndex};return n.template(i,o)}return n.template||n.label||""},ic=n=>{const i=["dss-context-menu-item"];return n.cssClass&&i.push(n.cssClass),i},cc=n=>n.style||{},vo=n=>n.type&&ot.value[n.type]?ot.value[n.type]:n.customIcon?n.customIcon:qt.value,uc=n=>Se.value.length?Se.value.filter(i=>i.categoryIndex===n):[],dc=n=>{if(!We.value)return{x:0,y:0};const i=nt(n),o=b.value.bottom+85;return{x:i,y:o}},No=()=>{Se.value.forEach(n=>{if(n.categoryIndex!==void 0&&We.value){const i=dc(n.categoryIndex);n.x=i.x,n.y=i.y}})},bo=()=>{if(ie.value.title.trim()){if(un.value){const n=Se.value.findIndex(i=>i.id===ie.value.editingMarkerId);n!==-1&&(Se.value[n].title=ie.value.title.trim(),Se.value[n].description=ie.value.description.trim(),Se.value[n].color=ie.value.color,Se.value[n].type=ie.value.type||"default")}else{const n="dss-marker-"+Date.now()+"-"+Math.random().toString(36).substring(2,9),i=Math.max(0,Math.min(Oe.value.categoryIndex,qe.value.maxX)),o=nt(i),u=b.value.bottom+85,g={id:n,title:ie.value.title.trim(),description:ie.value.description.trim(),color:ie.value.color,type:ie.value.type||"default",x:o,y:u,categoryIndex:i,chartType:M.value};Se.value.push(g)}Jt(),Lo()}},Jt=()=>{ie.value.show=!1,ie.value.title="",ie.value.description="",ie.value.color="#FF6B6B",ie.value.type="default",ie.value.editingMarkerId=null},mc=()=>{un.value&&(fc(ie.value.editingMarkerId),Jt())},fc=n=>{const i=Se.value.findIndex(o=>o.id===n);i!==-1&&(Se.value.splice(i,1),Lo())},hc=n=>{ie.value.show=!0,ie.value.title=n.title,ie.value.description=n.description,ie.value.color=n.color,ie.value.type=n.type||"default",ie.value.editingMarkerId=n.id},pc=()=>{Se.value=[],Ec(),Et()},gc=(n,i)=>{console.warn(`Failed to load custom icon for marker ${i.id}, falling back to default`)},Lo=()=>{try{const n=`dss-chart-markers-${l.chartId}`;localStorage.setItem(n,JSON.stringify(Se.value))}catch(n){console.warn("Could not save markers to localStorage:",n)}},_c=()=>{try{const n=`dss-chart-markers-${l.chartId}`,i=localStorage.getItem(n);if(i){const o=JSON.parse(i);Array.isArray(o)&&(Se.value=o.map(u=>({...u,originalYOffset:u.originalYOffset!==void 0?u.originalYOffset:15})))}}catch(n){console.warn("Could not load markers from localStorage:",n),Se.value=[]}},Ec=()=>{try{const n=`dss-chart-markers-${l.chartId}`;localStorage.removeItem(n)}catch(n){console.warn("Could not clear markers from localStorage:",n)}},In=n=>{const i=N.value||"Chart",o=new Date().toLocaleDateString("en-GB",{day:"2-digit",month:"2-digit",year:"2-digit"}).replace(/\//g,"-");return`${i.replace(/[^a-zA-Z0-9\s]/g,"").replace(/\s+/g,"-").substring(0,50).replace(/^-|-$/g,"")||"Chart"}-${o}.${n}`},To=()=>{const n=te.value.show,i=Ne.value.show;return te.value.show=!1,Ne.value.show=!1,{originalCrosshair:n,originalTooltip:i}},Yt=n=>{te.value.show=n.originalCrosshair,Ne.value.show=n.originalTooltip},Cc=()=>{try{const n=To();setTimeout(()=>{try{const i=document.querySelector(".dss-chart-svg");if(!i){console.error("Chart SVG element not found"),Yt(n);return}const o=h(),u=k.value,g=I.value+o.height,_=i.cloneNode(!0);_.querySelectorAll(".dss-flag-markers, .dss-flag-line, .dss-flag-extension-line, .dss-flag-count-indicator, .dss-flag-count-text").forEach(ee=>ee.remove());const V=new XMLSerializer().serializeToString(_).replace(/<svg[^>]*>/,"").replace("</svg>","");let D="",H=30;if(N.value&&(D+=`
45
+ <text x="24" y="${H}"
46
+ font-family="Arial, sans-serif"
47
+ font-size="18"
48
+ font-weight="bold"
49
+ fill="#333">
50
+ ${N.value.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}
51
+ </text>`,H+=30),F.value&&(D+=`
52
+ <text x="24" y="${H}"
53
+ font-family="Arial, sans-serif"
54
+ font-size="14"
55
+ fill="#666">
56
+ ${F.value.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}
57
+ </text>`,H+=25),E.value&&l.series.length>0){let ee=u-200,ae=N.value||F.value?35:25;const Le=Math.floor((u-250)/120);let K=0;l.series.forEach((J,re)=>{if(!Q.value.has(re)){const Pe=Ke(re),Ue=J.name.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");D+=`<circle cx="${ee+6}" cy="${ae-4}" r="6" fill="${Pe}"/>`,D+=`<text x="${ee+18}" y="${ae}" font-family="Arial, sans-serif" font-size="12" fill="#333">${Ue}</text>`,K++,K%Le===0?(ee=u-200,ae+=20):ee+=Math.min(120,Ue.length*8+35)}})}let ne="";if(gt.value)try{const{width:ee,height:ae}=tt.value,Le=_t.value,K=b.value.left,J=b.value.right,re=b.value.top,Pe=b.value.bottom,Ue=b.value.width,Wt=b.value.height;let Ct,st;switch(Le){case"center":Ct=K+(Ue-ee)/2,st=re+(Wt-ae)/2;break;case"top-left":Ct=K+15,st=re+5;break;case"top-right":Ct=J-ee-5,st=re+5;break;case"bottom-left":Ct=K+15,st=Pe-ae-5;break;case"bottom-right":default:Ct=J-ee-5,st=Pe-ae-5;break}ne=`
58
+ <g opacity="${R.value}">
59
+ <g transform="translate(${Ct}, ${st}) scale(${ee/499})">
60
+ <path d="M171.52 37.8399H160.38C160.26 36.4799 160.02 35.0599 159.68 33.5699C159.34 32.0799 158.77 30.7399 157.96 29.5299C157.16 28.3199 156 27.3199 154.48 26.5099C152.96 25.7099 150.94 25.2999 148.4 25.2999C144.69 25.2999 141.93 26.1299 140.14 27.8099C138.34 29.4799 137.45 31.5499 137.45 34.0299C137.45 37.7999 139.29 40.0799 142.97 40.8499C146.65 41.6299 150.67 42.3799 155.03 43.1199C159.39 43.8599 163.41 45.3899 167.09 47.7099C170.77 50.0299 172.61 54.6199 172.61 61.4899C172.61 64.6499 172.02 67.5099 170.85 70.0699C169.67 72.6399 168.02 74.7899 165.89 76.5199C163.76 78.2499 161.19 79.5799 158.19 80.5099C155.19 81.4399 151.93 81.8999 148.4 81.8999C143.95 81.8999 140.12 81.2699 136.94 79.9999C133.75 78.7299 131.19 77.0799 129.24 75.0399C127.29 72.9999 125.93 70.6899 125.16 68.1299C124.39 65.5599 124.19 62.9499 124.56 60.2899H136.25C136.37 62.0799 136.58 63.7899 136.85 65.3899C137.13 66.9999 137.68 68.4099 138.52 69.6099C139.35 70.8199 140.58 71.7799 142.19 72.4899C143.8 73.1999 145.99 73.5599 148.78 73.5599C153.3 73.5599 156.47 72.6199 158.29 70.7299C160.11 68.8399 161.03 66.6899 161.03 64.2799C161.03 60.2599 159.19 57.7799 155.51 56.8599C151.83 55.9299 147.79 55.0499 143.4 54.2099C139.01 53.3799 134.97 51.7699 131.29 49.3799C127.61 46.9999 125.77 42.3699 125.77 35.5099C125.77 32.8499 126.3 30.3899 127.35 28.1299C128.4 25.8699 129.9 23.9199 131.85 22.2799C133.8 20.6399 136.16 19.3399 138.95 18.3799C141.73 17.4199 144.8 16.9399 148.14 16.9399C152.41 16.9399 156.07 17.4699 159.14 18.5199C162.2 19.5699 164.69 21.0299 166.61 22.8799C168.53 24.7399 169.89 26.9499 170.69 29.5199C171.49 32.0899 171.77 34.8599 171.52 37.8199V37.8399Z" fill="#020203"/>
61
+ <path d="M179.04 58.1699C179.04 55.0799 179.55 52.0499 180.57 49.0699C181.59 46.0999 183.04 43.4899 184.93 41.2299C186.82 38.9699 189.09 37.1499 191.75 35.7499C194.41 34.3599 197.35 33.6599 200.57 33.6599C207 33.6599 212.15 35.9299 216.02 40.4799C219.89 45.0299 221.97 51.5999 222.28 60.1999H189.34C189.77 64.2199 191.09 67.1499 193.28 68.9699C195.48 70.7999 198.12 71.7099 201.21 71.7099C203 71.7099 204.5 71.4599 205.71 70.9699C206.92 70.4799 207.91 69.8899 208.68 69.2099C209.45 68.5299 210.06 67.8199 210.49 67.0799C210.92 66.3399 211.26 65.7199 211.51 65.2199H221.72C221.6 66.7699 221.1 68.5099 220.24 70.4599C219.37 72.4099 218.14 74.2299 216.53 75.9399C214.92 77.6399 212.85 79.0599 210.31 80.2099C207.77 81.3499 204.77 81.9299 201.31 81.9299C197.85 81.9299 194.91 81.2799 192.12 79.9799C189.34 78.6799 186.98 76.9499 185.07 74.7799C183.15 72.6099 181.67 70.0899 180.61 67.2199C179.56 64.3399 179.03 61.3299 179.03 58.1699H179.04ZM200.94 42.0199C198.47 42.0199 196.24 42.7299 194.26 44.1499C192.28 45.5699 190.89 47.8299 190.08 50.9199H211.33C211.02 48.0799 209.95 45.8799 208.13 44.3299C206.3 42.7899 203.91 42.0099 200.94 42.0099V42.0199Z" fill="#020203"/>
62
+ <path d="M268.59 80.9999H258.01V50.3799C258.01 48.2099 257.3 46.5099 255.88 45.2799C254.46 44.0399 252.6 43.4199 250.31 43.4199C248.45 43.4199 246.94 43.8399 245.76 44.6699C244.58 45.4999 243.67 46.5399 243.02 47.7799C242.37 49.0199 241.94 50.3799 241.72 51.8599C241.5 53.3399 241.4 54.7099 241.4 55.9399V80.9999H230.82V34.5999H241.03V38.3099C241.83 37.6899 243.27 36.7599 245.34 35.5199C247.41 34.2799 250.3 33.6599 254.02 33.6599C256.68 33.6599 259.12 34.1599 261.35 35.1399C263.58 36.1299 265.31 37.6799 266.55 39.7799C267.04 39.2899 267.71 38.6799 268.55 37.9699C269.38 37.2599 270.41 36.5799 271.61 35.9299C272.82 35.2799 274.22 34.7399 275.83 34.3099C277.44 33.8799 279.23 33.6599 281.21 33.6599C285.23 33.6599 288.67 34.8099 291.51 37.0899C294.36 39.3799 295.78 43.0599 295.78 48.1299V80.9799H285.2V50.3599C285.2 48.1899 284.49 46.4899 283.07 45.2599C281.65 44.0199 279.79 43.3999 277.5 43.3999C275.64 43.3999 274.13 43.8199 272.95 44.6499C271.77 45.4799 270.86 46.5199 270.21 47.7599C269.56 48.9999 269.13 50.3599 268.91 51.8399C268.69 53.3199 268.59 54.6899 268.59 55.9199V80.9799V80.9999Z" fill="#020203"/>
63
+ <path d="M344.78 67.3499C344.78 68.7099 345.21 69.7199 346.08 70.3699C346.95 71.0199 348.09 71.3399 349.51 71.3399C350.13 71.3399 350.76 71.2899 351.41 71.1999C352.06 71.1099 352.82 70.9699 353.68 70.7799V80.9899C352.07 81.2399 350.77 81.3899 349.78 81.4499C348.79 81.5099 347.89 81.5399 347.09 81.5399C344.24 81.5399 342.05 81.1799 340.5 80.4699C338.95 79.7599 337.65 78.5099 336.6 76.7099C336.17 77.0199 335.55 77.4699 334.74 78.0599C333.94 78.6499 332.95 79.2199 331.77 79.7799C330.59 80.3399 329.2 80.8299 327.59 81.2599C325.98 81.6899 324.16 81.9099 322.11 81.9099C319.51 81.9099 317.1 81.4899 314.87 80.6599C312.64 79.8299 310.72 78.6999 309.12 77.2699C307.51 75.8499 306.24 74.2099 305.32 72.3499C304.39 70.4899 303.93 68.5499 303.93 66.4999C303.93 61.2399 305.96 57.4499 310.01 55.1299C314.06 52.8099 319.27 51.6499 325.65 51.6499H334.56V49.4199C334.56 46.9499 333.68 44.9399 331.92 43.3899C330.16 41.8399 327.88 41.0699 325.1 41.0699C322.32 41.0699 320.09 41.7799 318.6 43.1999C317.12 44.6199 316.37 46.6999 316.37 49.4199H305.05C305.05 46.9499 305.58 44.7199 306.63 42.7399C307.68 40.7599 309.12 39.1099 310.94 37.7799C312.76 36.4499 314.91 35.4299 317.39 34.7199C319.86 34.0099 322.52 33.6499 325.37 33.6499C327.97 33.6499 330.44 33.9399 332.79 34.5299C335.14 35.1199 337.2 36.0299 338.96 37.2699C340.72 38.5099 342.13 40.0499 343.18 41.9099C344.23 43.7699 344.76 45.9299 344.76 48.4099V67.3399L344.78 67.3499ZM315.45 67.6299C315.45 69.4899 316.19 71.0999 317.68 72.4599C319.16 73.8199 321.14 74.4999 323.62 74.4999C325.54 74.4999 327.18 74.1399 328.54 73.4299C329.9 72.7199 331.03 71.8399 331.93 70.7899C332.83 69.7399 333.49 68.6199 333.93 67.4499C334.36 66.2799 334.58 65.2199 334.58 64.2899V59.6499C330.56 59.4599 327.29 59.5399 324.79 59.8799C322.29 60.2199 320.35 60.7599 318.99 61.4999C317.63 62.2399 316.7 63.1399 316.21 64.1899C315.71 65.2399 315.47 66.3899 315.47 67.6199L315.45 67.6299Z" fill="#020203"/>
64
+ <path d="M356.47 58.1699C356.47 54.5799 357.01 51.2899 358.09 48.2899C359.17 45.2899 360.67 42.7099 362.59 40.5399C364.51 38.3799 366.8 36.6899 369.46 35.4799C372.12 34.2699 375.03 33.6699 378.18 33.6699C382.2 33.6699 385.51 34.4399 388.11 35.9899C390.71 37.5399 392.78 39.3799 394.33 41.5099C395.88 43.6399 397.02 45.8899 397.76 48.2399C398.5 50.5899 399.03 52.5399 399.34 54.0899H388.58C388.15 51.2499 387.11 48.8299 385.47 46.8499C383.83 44.8699 381.28 43.8799 377.81 43.8799C374.78 43.8799 372.16 45.0399 369.97 47.3599C367.77 49.6799 366.68 53.1599 366.68 57.7999C366.68 62.6899 367.89 66.2299 370.3 68.4299C372.71 70.6299 375.47 71.7199 378.56 71.7199C380.29 71.7199 381.78 71.4399 383.01 70.8899C384.25 70.3299 385.27 69.6099 386.07 68.7099C386.87 67.8099 387.54 66.8099 388.07 65.6899C388.59 64.5799 389.07 63.4899 389.51 62.4399H399.16C399.16 64.3599 398.73 66.4599 397.86 68.7499C396.99 71.0399 395.68 73.1599 393.92 75.1099C392.16 77.0599 389.91 78.6799 387.19 79.9799C384.47 81.2799 381.28 81.9299 377.63 81.9299C374.47 81.9299 371.58 81.2799 368.95 79.9799C366.32 78.6799 364.09 76.9499 362.27 74.7799C360.44 72.6099 359.02 70.0899 358 67.2199C356.98 64.3499 356.47 61.3299 356.47 58.1699Z" fill="#020203"/>
65
+ <path d="M410.11 17.8899H420.32V34.5899H426.82V44.7999H420.32V68.7399C420.32 70.0999 420.71 71.0299 421.48 71.5199C422.25 72.0199 423.1 72.2599 424.03 72.2599C424.83 72.2599 425.53 72.1799 426.12 72.0299C426.71 71.8799 427.16 71.6999 427.47 71.5199V80.7999C427.04 80.9199 426.23 81.1399 425.06 81.4499C423.88 81.7599 422.24 81.9099 420.14 81.9099C416.61 81.9099 414.06 81.0099 412.48 79.2199C410.9 77.4299 410.11 75.4199 410.11 73.1899V44.7899H404.54V34.5799H410.11V17.8799V17.8899Z" fill="#020203"/>
66
+ <path d="M435.81 16.96H446.39V28.1H435.81V16.96ZM435.81 34.59H446.39V80.99H435.81V34.59Z" fill="#020203"/>
67
+ <path d="M455.67 58.1699C455.67 54.5799 456.21 51.2899 457.29 48.2899C458.37 45.2899 459.87 42.7099 461.79 40.5399C463.71 38.3799 466 36.6899 468.66 35.4799C471.32 34.2699 474.23 33.6699 477.38 33.6699C481.4 33.6699 484.71 34.4399 487.31 35.9899C489.91 37.5399 491.98 39.3799 493.53 41.5099C495.08 43.6399 496.22 45.8899 496.96 48.2399C497.7 50.5899 498.23 52.5399 498.54 54.0899H487.78C487.35 51.2499 486.31 48.8299 484.67 46.8499C483.03 44.8699 480.48 43.8799 477.01 43.8799C473.98 43.8799 471.36 45.0399 469.17 47.3599C466.97 49.6799 465.88 53.1599 465.88 57.7999C465.88 62.6899 467.09 66.2299 469.5 68.4299C471.91 70.6299 474.67 71.7199 477.76 71.7199C479.49 71.7199 480.98 71.4399 482.21 70.8899C483.45 70.3299 484.47 69.6099 485.27 68.7099C486.07 67.8099 486.74 66.8099 487.27 65.6899C487.79 64.5799 488.27 63.4899 488.71 62.4399H498.36C498.36 64.3599 497.93 66.4599 497.06 68.7499C496.19 71.0399 494.88 73.1599 493.12 75.1099C491.36 77.0599 489.11 78.6799 486.39 79.9799C483.67 81.2799 480.48 81.9299 476.83 81.9299C473.67 81.9299 470.78 81.2799 468.15 79.9799C465.52 78.6799 463.29 76.9499 461.47 74.7799C459.64 72.6099 458.22 70.0899 457.2 67.2199C456.18 64.3499 455.67 61.3299 455.67 58.1699Z" fill="#020203"/>
68
+ <path d="M95.8 88.71V7.09C95.8 3.1743 92.6258 0 88.7101 0L7.09004 0C3.17435 0 4.57764e-05 3.1743 4.57764e-05 7.09V88.71C4.57764e-05 92.6257 3.17435 95.8 7.09004 95.8H88.7101C92.6258 95.8 95.8 92.6257 95.8 88.71Z" fill="#020203"/>
69
+ <path d="M48.2801 18.61H29.5501C22.2401 18.61 16.3201 24.53 16.3201 31.84C16.3201 39.15 22.2401 45.07 29.5501 45.07H48.4401C49.4201 45.07 50.2101 44.27 50.2001 43.29L50.0401 20.35C50.0401 19.38 49.2501 18.6 48.2801 18.6V18.61Z" fill="#FFC530"/>
70
+ <path d="M67.37 43.9C74.0582 43.9 79.48 38.4782 79.48 31.79C79.48 25.1018 74.0582 19.68 67.37 19.68C60.6818 19.68 55.26 25.1018 55.26 31.79C55.26 38.4782 60.6818 43.9 67.37 43.9Z" fill="white"/>
71
+ <path d="M47.5201 77.18H66.2501C73.5601 77.18 79.4801 71.26 79.4801 63.95C79.4801 56.64 73.5601 50.72 66.2501 50.72H47.3601C46.3801 50.72 45.5901 51.52 45.6001 52.5L45.7601 75.44C45.7601 76.41 46.5501 77.19 47.5201 77.19V77.18Z" fill="#07ACDD"/>
72
+ <path d="M28.4201 76.12C35.1082 76.12 40.5301 70.6982 40.5301 64.01C40.5301 57.3218 35.1082 51.9 28.4201 51.9C21.7319 51.9 16.3101 57.3218 16.3101 64.01C16.3101 70.6982 21.7319 76.12 28.4201 76.12Z" fill="white"/>
73
+ </g>
74
+ </g>`}catch(ee){console.warn("Watermark processing failed, skipping watermark in SVG:",ee),ne=""}const pe=`<?xml version="1.0" encoding="UTF-8"?>
75
+ <svg width="${u}" height="${g}"
76
+ xmlns="http://www.w3.org/2000/svg"
77
+ xmlns:xlink="http://www.w3.org/1999/xlink">
78
+ <defs>
79
+ <style>
80
+ .dss-chart-title { font-family: Arial, sans-serif; font-size: 18px; font-weight: bold; fill: #333; }
81
+ .dss-chart-subtitle { font-family: Arial, sans-serif; font-size: 14px; fill: #666; }
82
+ .dss-legend-text { font-family: Arial, sans-serif; font-size: 12px; fill: #333; }
83
+ </style>
84
+ </defs>
85
+ <rect width="100%" height="100%" fill="white"/>
86
+ ${D}
87
+ <g transform="translate(0, ${o.height})">
88
+ ${V}
89
+ ${ne}
90
+ </g>
91
+ </svg>`,Ce=new Blob([pe],{type:"image/svg+xml;charset=utf-8"}),se=URL.createObjectURL(Ce),q=document.createElement("a");q.href=se,q.download=In("svg"),document.body.appendChild(q),q.click(),document.body.removeChild(q),URL.revokeObjectURL(se),Yt(n),Et()}catch(i){console.error("Error downloading SVG:",i),Yt(n)}},50)}catch(n){console.error("Error downloading SVG:",n)}},yc=async()=>{try{const n=To();document.querySelector(".dss-custom-chart-container").offsetHeight,await new Promise(ae=>setTimeout(ae,300));const i=h(),o=k.value,u=I.value+i.height,g=document.createElement("canvas"),_=g.getContext("2d"),v=2;g.width=o*v,g.height=u*v,g.style.width=o+"px",g.style.height=u+"px",_.scale(v,v),_.fillStyle="white",_.fillRect(0,0,o,u);let S=30;if(N.value&&(_.fillStyle="#333",_.font="bold 18px Arial, sans-serif",_.fillText(N.value,24,S),S+=30),F.value&&(_.fillStyle="#666",_.font="14px Arial, sans-serif",_.fillText(F.value,24,S),S+=25),E.value&&l.series.length>0){let ae=o-200,Le=N.value||F.value?35:25;const K=Math.floor((o-250)/120);let J=0;_.font="12px Arial, sans-serif",l.series.forEach((re,Pe)=>{if(!Q.value.has(Pe)){const Ue=Ke(Pe);_.beginPath(),_.arc(ae+6,Le-4,6,0,2*Math.PI),_.fillStyle=Ue,_.fill(),_.fillStyle="#333",_.fillText(re.name,ae+18,Le),J++,J%K===0?(ae=o-200,Le+=20):ae+=Math.min(120,re.name.length*8+35)}})}const D=document.querySelector(".dss-chart-svg").cloneNode(!0),H=D.querySelectorAll(".dss-flag-markers, .dss-flag-line, .dss-flag-extension-line, .dss-flag-count-indicator, .dss-flag-count-text"),ne=D.querySelectorAll(".dss-crosshair"),pe=D.querySelectorAll('[class*="tooltip"]');H.forEach(ae=>ae.remove()),ne.forEach(ae=>ae.remove()),pe.forEach(ae=>ae.remove());const Ce=new XMLSerializer().serializeToString(D),se=new Blob([Ce],{type:"image/svg+xml;charset=utf-8"}),q=URL.createObjectURL(se),ee=new Image;return new Promise((ae,Le)=>{ee.onload=async()=>{try{if(_.drawImage(ee,0,i.height),gt.value){const K=new Image,J=()=>{const{width:re,height:Pe}=tt.value,Ue=_t.value,Wt=b.value.left,Ct=b.value.right,st=b.value.top,Fo=b.value.bottom,Gc=b.value.width,jc=b.value.height;let tn,nn;switch(Ue){case"center":tn=Wt+(Gc-re)/2,nn=st+i.height+(jc-Pe)/2;break;case"top-left":tn=Wt+15,nn=st+i.height+10;break;case"top-right":tn=Ct-re-5,nn=st+i.height+10;break;case"bottom-left":tn=Wt+15,nn=Fo+i.height-Pe-5;break;case"bottom-right":default:tn=Ct-re-5,nn=Fo+i.height-Pe-5;break}_.globalAlpha=R.value,_.drawImage(K,tn,nn,re,Pe),_.globalAlpha=1,g.toBlob(Kc=>{const Bo=URL.createObjectURL(Kc),_n=document.createElement("a");_n.href=Bo,_n.download=In("png"),document.body.appendChild(_n),_n.click(),document.body.removeChild(_n),URL.revokeObjectURL(Bo),URL.revokeObjectURL(q),Yt(n),Et(),ae()},"image/png")};K.onload=J,K.onerror=J,K.src=T.value}else g.toBlob(K=>{const J=URL.createObjectURL(K),re=document.createElement("a");re.href=J,re.download=In("png"),document.body.appendChild(re),re.click(),document.body.removeChild(re),URL.revokeObjectURL(J),URL.revokeObjectURL(q),Yt(n),Et(),ae()},"image/png")}catch(K){URL.revokeObjectURL(q),Yt(n),Le(K)}},ee.onerror=()=>{URL.revokeObjectURL(q),Yt(n),Le(new Error("Failed to load SVG image"))},ee.src=q})}catch(n){console.error("Error downloading PNG:",n)}},kc=()=>{try{let n="";N.value&&(n+=`# ${a("chart.csv.chartTitle")}: ${N.value}
92
+ `),F.value&&(n+=`# ${a("chart.csv.chartSubtitle")}: ${F.value}
93
+ `),n+=`# ${a("chart.csv.generated")}: ${new Date().toLocaleString()}
94
+
95
+ `,n+="Category",l.series.forEach(_=>{const v=_.name.replace(/"/g,'""');n+=',"'+v+'"'}),n+=`
96
+ `;const i=Math.max(...l.series.map(_=>{var v;return((v=_.data)==null?void 0:v.length)||0}));for(let _=0;_<i;_++){let V='"'+(l.categories[_]||a("chart.fallback.item",{number:_+1})).toString().replace(/"/g,'""')+'"';l.series.forEach(D=>{const H=D.data&&D.data[_]!==void 0?D.data[_]:"";V+=","+H}),n+=V+`
97
+ `}const o=new Blob([n],{type:"text/csv;charset=utf-8;"}),u=URL.createObjectURL(o),g=document.createElement("a");g.href=u,g.download=In("csv"),document.body.appendChild(g),g.click(),document.body.removeChild(g),URL.revokeObjectURL(u),Et()}catch(n){console.error("Error downloading CSV:",n)}},vc=n=>{if(typeof n.action=="function"){const i={series:l.series,categories:l.categories,markers:Se.value},o={chartX:Oe.value.chartX,chartY:Oe.value.chartY,dataX:Oe.value.mouseDataX,dataY:Oe.value.mouseDataY,categoryIndex:clampedCategoryIndex||Oe.value.categoryIndex};n.action(i,o)}Et()},Nc=()=>{Jt(),ie.value.show=!0,Et()},Mo=n=>{if(Oe.value.show){const i=document.querySelector(".dss-chart-context-menu");i&&!i.contains(n.target)&&Et()}},Oo=n=>{if(!We.value||!L.value)return;n.preventDefault(),n.stopPropagation(),O.value.isZooming=!0,te.value.show=!1,O.value.zoomTimeout&&clearTimeout(O.value.zoomTimeout);const o=n.currentTarget.getBoundingClientRect(),u=n.clientX-o.left,g=n.clientY-o.top;if(u<b.value.left-50||u>b.value.right+50||g<b.value.top-50||g>b.value.bottom+100){O.value.isZooming=!1;return}const _=n.deltaY>0?.9:1.1,v=Math.max(O.value.minScale,Math.min(O.value.maxScale,O.value.scale*_));if(v!==O.value.scale){const{minX:S,maxX:V}=qe.value,D=V-S||1,H=D/O.value.scale,ne=S-O.value.offsetX/b.value.width*D,pe=(u-b.value.left)/b.value.width,Ce=ne+pe*H;O.value.scale=v;const se=D/O.value.scale,q=Ce-pe*se;O.value.offsetX=-(q-S)/D*b.value.width,O.value.scale<=1.01&&(O.value.scale=1,O.value.offsetX=0)}O.value.zoomTimeout=setTimeout(()=>{O.value.isZooming=!1,O.value.zoomTimeout=null},300)},bc=n=>{if(!We.value||!L.value||O.value.scale<=1)return;te.value.show=!1;const o=n.currentTarget.getBoundingClientRect();n.clientX-o.left,n.clientY-o.top,O.value.isDragging=!0,O.value.lastMouseX=n.clientX,O.value.lastMouseY=n.clientY,n.preventDefault()},Lc=()=>{O.value.isDragging=!1},ea=()=>{!We.value||!L.value||(O.value.scale=1,O.value.offsetX=0,O.value.isDragging=!1,O.value.zoomTimeout&&(clearTimeout(O.value.zoomTimeout),O.value.zoomTimeout=null),O.value.isZooming=!1)},Tc=()=>!We.value||!At.value||!L.value?"default":O.value.isDragging?"grabbing":O.value.scale>1?"grab":"dss-crosshair",ta=n=>{if(n.length<2)return"";if(n.length===2)return`M ${n[0].x} ${n[0].y} L ${n[1].x} ${n[1].y}`;let i=`M ${n[0].x} ${n[0].y}`;for(let o=0;o<n.length-1;o++){const u=n[Math.max(o-1,0)],g=n[o],_=n[o+1],v=n[Math.min(o+2,n.length-1)],S=g.x+(_.x-u.x)/6*Te.value,V=g.y+(_.y-u.y)/6*Te.value,D=_.x-(v.x-g.x)/6*Te.value,H=_.y-(v.y-g.y)/6*Te.value;i+=` C ${S} ${V} ${D} ${H} ${_.x} ${_.y}`}return i},wt=t.computed(()=>{const i=50+(z.value?30:0)+60;let o=0;return N.value&&(o+=15),F.value&&(o+=10),{left:66,top:50+o,right:50,bottom:i}}),b=t.computed(()=>({left:wt.value.left,top:wt.value.top,right:k.value-wt.value.right,bottom:I.value-wt.value.bottom,width:k.value-(wt.value.left+wt.value.right),height:I.value-(wt.value.top+wt.value.bottom)})),We=t.computed(()=>["line","area","bar"].includes(M.value)),dn=t.computed(()=>["radial","semi-radial"].includes(M.value)),na=t.computed(()=>M.value==="spider"),Ie=t.computed(()=>k.value/2),Ae=t.computed(()=>I.value/2),he=t.computed(()=>Math.min(b.value.width,b.value.height)/2),ze=t.computed(()=>he.value*.45),Dt=t.computed(()=>l.series),mn=t.computed(()=>l.series.filter((n,i)=>!Q.value.has(i))),xt="auto",qe=t.computed(()=>{if(!mn.value.length)return{minX:0,maxX:1,minY:0,maxY:1};let n=1/0,i=-1/0,o=0;mn.value.forEach(S=>{S.data&&S.data.length&&(o=Math.max(o,S.data.length-1),S.data.forEach(V=>{typeof V=="number"&&(n=Math.min(n,V),i=Math.max(i,V))}))}),l.categories.length>0&&(o=Math.max(o,l.categories.length-1)),n===1/0&&(n=0,i=100);const u=X.value,g=G.value;let _,v;if(u===xt){const S=i-n,V=S>0?S*.1:1;_=Math.max(0,n-V)}else if(typeof u=="number")_=u;else{const S=i-n,V=S>0?S*.1:1;_=Math.max(0,n-V)}if(g===xt){const S=i-n,V=S>0?S*.1:2;v=i+V}else if(typeof g=="number")v=g;else{const S=i-n,V=S>0?S*.1:2;v=i+V}return{minX:0,maxX:o,minY:_,maxY:v}}),nt=n=>{const{minX:i,maxX:o}=qe.value,u=o-i||1,g=u/O.value.scale,_=i-O.value.offsetX/b.value.width*u,v=(n-_)/g;return b.value.left+v*b.value.width},lt=n=>{const{minY:i,maxY:o}=qe.value,u=o-i||1;return b.value.bottom-(n-i)/u*b.value.height},Mc=t.computed(()=>So.value.map(n=>({y:n.y}))),Oc=t.computed(()=>{if(M.value==="bar"){const se=[],{maxX:q}=qe.value,ee=q+1,ae=5,K=(b.value.width-ae*2)/ee;for(let J=0;J<=q;J++){const re=b.value.left+ae+(J+.5)*K;se.push({x:re,y:b.value.bottom+20,text:l.categories[J]||a("chart.fallback.item",{number:J+1})})}return se}const n=[],{minX:i,maxX:o}=qe.value,u=o-i||1,g=u/O.value.scale,_=i-O.value.offsetX/b.value.width*u,v=_+g,S=Math.max(0,Math.floor(_-2)),V=Math.min(o,Math.ceil(v+2)),D=V-S,H=b.value.width,pe=Math.floor(H/60);let Ce=1;D>pe&&(Ce=Math.ceil(D/pe));for(let se=S;se<=V;se+=Ce)if(se>=0&&se<=o){const q=nt(se);q>=b.value.left-100&&q<=b.value.right+100&&n.push({x:q,y:b.value.bottom+20,text:l.categories[se]||`Item ${se+1}`})}return n}),So=t.computed(()=>{const n=[],{minY:i,maxY:o}=qe.value,u=5;for(let g=0;g<=u;g++){const _=i+(o-i)*(g/u),v=Math.round(_);n.push({x:b.value.left-10,y:lt(_),text:v.toString()})}return n}),Ke=n=>{const i=$t.value;if(!i||i.length===0){const o=["#3B82F6","#EF4444","#10B981","#F59E0B","#8B5CF6","#F97316","#06B6D4","#84CC16"];return o[n%o.length]}return i[n%i.length]},Io=n=>{let i=0;for(let o=1;o<n.length;o++){const u=n[o].x-n[o-1].x,g=n[o].y-n[o-1].y;i+=Math.sqrt(u*u+g*g)}return i},Sc=t.computed(()=>M.value!=="line"?[]:Dt.value.map((n,i)=>{const o=n.data.map((V,D)=>({x:nt(D),y:lt(V)}));let u="";o.length>0&&(Z.value?u=ta(o):u=`M ${o[0].x} ${o[0].y}`+o.slice(1).map(V=>` L ${V.x} ${V.y}`).join(""));const g=Io(o),_=Q.value.has(i),v=de.value===i,S=de.value!==null&&de.value!==i;return{path:u,color:Ke(i),pathLength:g,seriesIndex:i,animationDelay:i*je.value,isHighlighted:v,isDimmed:S,isHidden:_}})),Ic=t.computed(()=>{if(M.value!=="line")return[];const n=[];return Dt.value.forEach((i,o)=>{const u=de.value===o,g=de.value!==null&&de.value!==o,_=Q.value.has(o);i.data.forEach((v,S)=>{n.push({x:nt(S),y:lt(v),color:Ke(o),value:v,label:l.categories[S]||S.toString(),seriesName:i.name,categoryIndex:S,dataIndex:S,animationDelay:(o*i.data.length+S)*(je.value/8),isHighlighted:u,isDimmed:g,isHidden:_})})}),n}),aa=t.computed(()=>M.value!=="area"?[]:Dt.value.map((n,i)=>{const o=n.data.map((H,ne)=>({x:nt(ne),y:lt(H)}));if(o.length===0)return{linePath:"",areaPath:"",color:Ke(i),isHidden:Q.value.has(i)};let u=`M ${o[0].x} ${o[0].y}`;Z.value&&o.length>1?u=ta(o):o.slice(1).forEach(H=>{u+=` L ${H.x} ${H.y}`});const g=b.value.bottom+1;let _=`M ${o[0].x} ${g}`;if(_+=` L ${o[0].x} ${o[0].y}`,Z.value&&o.length>1){const H=ta(o),ne=H.substring(H.indexOf("C")||H.indexOf("Q")||H.indexOf("L"));ne?_+=" "+ne:o.slice(1).forEach(pe=>{_+=` L ${pe.x} ${pe.y}`})}else o.slice(1).forEach(H=>{_+=` L ${H.x} ${H.y}`});_+=` L ${o[o.length-1].x} ${g} Z`;const v=de.value===i,S=de.value!==null&&de.value!==i,V=Q.value.has(i),D=Io(o);return{linePath:u,areaPath:_,color:Ke(i),pathLength:D,isHighlighted:v,isDimmed:S,isHidden:V}})),Ac=t.computed(()=>{if(M.value!=="bar")return[];const n=[],{maxX:i}=qe.value,o=Dt.value.length,u=i+1,_=b.value.width/u,v=_*.8,S=v/o,V=S*.05,D=S-V;return Dt.value.forEach((H,ne)=>{const pe=de.value===ne,Ce=de.value!==null&&de.value!==ne,se=Q.value.has(ne);H.data.forEach((q,ee)=>{const K=b.value.left+(ee+.5)*_-v/2+ne*S+V/2,J=lt(Math.max(0,q)),re=Math.abs(lt(0)-lt(q));let Pe="";if(Z.value&&re>0){const Ue=Math.min(Bt.value,D/2,re/2);Pe=[`M ${K} ${J+re}`,`L ${K} ${J+Ue}`,`Q ${K} ${J} ${K+Ue} ${J}`,`L ${K+D-Ue} ${J}`,`Q ${K+D} ${J} ${K+D} ${J+Ue}`,`L ${K+D} ${J+re}`,"Z"].join(" ")}n.push({x:K,y:J,width:D,height:re,color:Ke(ne),value:q,label:l.categories[ee]||ee.toString(),seriesName:H.name,animationDelay:(ne*Dt.value.length+ee)*(je.value/4),isHighlighted:pe,isDimmed:Ce,isHidden:se,barPath:Pe,isSmooth:Z.value&&re>0})})}),n});t.computed(()=>{const n=[];for(let o=1;o<=4;o++)n.push(ze.value+(he.value-ze.value)*(o/4));return n}),t.computed(()=>{if(M.value!=="semi-radial")return"";const n=Ie.value-he.value,i=Ae.value,o=Ie.value+he.value,u=Ae.value;return`M ${n} ${i} A ${he.value} ${he.value} 0 0 0 ${o} ${u}`});const Ao=t.computed(()=>{if(!dn.value)return[];const n=Dt.value.map((_,v)=>({series:_,originalIndex:v})).filter(({originalIndex:_})=>!Q.value.has(_));if(n.length===0)return[];let i=M.value==="semi-radial"?Math.PI:-Math.PI/2;const o=M.value==="semi-radial"?Math.PI:Math.PI*2,u=[];if(n.length===1){const{series:_,originalIndex:v}=n[0],S=_.data[0]||0,V=i,D=i+o-.001,H=V+o/2,ne=Ie.value+Math.cos(V)*ze.value,pe=Ae.value+Math.sin(V)*ze.value,Ce=Ie.value+Math.cos(D)*ze.value,se=Ae.value+Math.sin(D)*ze.value,q=Ie.value+Math.cos(D)*he.value,ee=Ae.value+Math.sin(D)*he.value,ae=Ie.value+Math.cos(V)*he.value,Le=Ae.value+Math.sin(V)*he.value,K=1,J=[`M ${ne} ${pe}`,`A ${ze.value} ${ze.value} 0 ${K} 1 ${Ce} ${se}`,`L ${q} ${ee}`,`A ${he.value} ${he.value} 0 ${K} 0 ${ae} ${Le}`,"Z"].join(" ");return u.push({path:J,color:Ke(v),value:S,seriesName:_.name,opacity:.8,isHighlighted:de.value===v,isDimmed:!1,isHidden:!1,startAngle:V,endAngle:D,midAngle:H}),u}const g=n.reduce((_,{series:v})=>_+(v.data[0]||0),0);return g===0?[]:(n.forEach(({series:_,originalIndex:v})=>{const S=_.data[0]||0,V=S/g*o,D=i,H=i+V,ne=D+V/2,pe=Ie.value+Math.cos(D)*ze.value,Ce=Ae.value+Math.sin(D)*ze.value,se=Ie.value+Math.cos(H)*ze.value,q=Ae.value+Math.sin(H)*ze.value,ee=Ie.value+Math.cos(H)*he.value,ae=Ae.value+Math.sin(H)*he.value,Le=Ie.value+Math.cos(D)*he.value,K=Ae.value+Math.sin(D)*he.value,J=V>Math.PI?1:0,re=[`M ${pe} ${Ce}`,`A ${ze.value} ${ze.value} 0 ${J} 1 ${se} ${q}`,`L ${ee} ${ae}`,`A ${he.value} ${he.value} 0 ${J} 0 ${Le} ${K}`,"Z"].join(" ");u.push({path:re,color:Ke(v),value:S,seriesName:_.name,opacity:.8,isHighlighted:de.value===v,isDimmed:de.value!==null&&de.value!==v,isHidden:!1,startAngle:D,endAngle:H,midAngle:ne}),i=H}),u)}),wc=t.computed(()=>!Y.value||!dn.value?[]:Ao.value.map((n,i)=>{if(n.isHidden)return null;const o=ge.value,u=fe.value,g=C.value,_=Ie.value+Math.cos(n.midAngle)*he.value,v=Ae.value+Math.sin(n.midAngle)*he.value,S=Ie.value+Math.cos(n.midAngle)*(he.value+o),V=Ae.value+Math.sin(n.midAngle)*(he.value+o),D=Math.cos(n.midAngle)>=0,ne=S+u*(D?1:-1),pe=V,Ce=D?S+15:S-15,se=pe-g,q=D?"start":"end";return{pointerStartX:_,pointerStartY:v,pointerEndX:S,pointerEndY:V,horizontalEndX:ne,horizontalEndY:pe,textX:Ce,textY:se,text:`${n.seriesName}: ${n.value}`,color:n.color,textAnchor:q,isRightSide:D,isHighlighted:n.isHighlighted,isDimmed:n.isDimmed}}).filter(Boolean)),An=t.computed(()=>l.categories.length||Math.max(...mn.value.map(n=>n.data.length))),Dc=t.computed(()=>{let n=0;return mn.value.forEach(i=>{i.data.forEach(o=>{typeof o=="number"&&(n=Math.max(n,o))})}),n||100}),wo=t.computed(()=>{const n=[],i=An.value;for(let o=0;o<i;o++){const u=o*2*Math.PI/i-Math.PI/2,g=Ie.value+Math.cos(u)*he.value,_=Ae.value+Math.sin(u)*he.value;n.push({x:g,y:_,angle:u,index:o})}return n}),xc=t.computed(()=>{const n=[],o=An.value;if(o<3)return n;for(let u=1;u<=4;u++){const g=he.value/4*u,_=[];for(let v=0;v<o;v++){const S=v*2*Math.PI/o-Math.PI/2,V=Ie.value+Math.cos(S)*g,D=Ae.value+Math.sin(S)*g;_.push(`${V},${D}`)}n.push({points:_.join(" "),level:u})}return n}),Pc=t.computed(()=>{const n=[];return An.value,wo.value.forEach((i,o)=>{const u=he.value+20,g=Ie.value+Math.cos(i.angle)*u,_=Ae.value+Math.sin(i.angle)*u;let v="middle",S="middle";Math.abs(Math.cos(i.angle))>.5&&(v=Math.cos(i.angle)>0?"start":"end"),Math.abs(Math.sin(i.angle))>.5&&(S=Math.sin(i.angle)>0?"hanging":"auto"),n.push({x:g,y:_,text:l.categories[o]||a("chart.fallback.axis",{number:o+1}),anchor:v,baseline:S})}),n}),Rc=t.computed(()=>{if(!na.value)return[];const n=[],i=An.value;return Dt.value.forEach((o,u)=>{const g=[],_=[],v=de.value===u,S=de.value!==null&&de.value!==u,V=Q.value.has(u);for(let D=0;D<i;D++){const H=o.data[D]||0,pe=H/Dc.value*he.value,Ce=D*2*Math.PI/i-Math.PI/2,se=Ie.value+Math.cos(Ce)*pe,q=Ae.value+Math.sin(Ce)*pe;g.push(`${se},${q}`),_.push({x:se,y:q,value:H,label:l.categories[D]||`Axis ${D+1}`,seriesName:o.name})}n.push({points:g.join(" "),dataPoints:_,color:Ke(u),fillOpacity:St.value,seriesName:o.name,value:`${o.name}: ${o.data.join(", ")}`,isHighlighted:v,isDimmed:S,isHidden:V})}),n}),Do=t.computed(()=>{const n=f.value;return n.logos.map((i,o)=>{const u=l.series[i.seriesIndex];if(!u||!u.data||u.data.length===0||Q.value.has(i.seriesIndex))return null;let g,_;if(We.value){const S=u.data.map((V,D)=>({x:nt(D),y:lt(V)}));if(n.animations.enabled&&!gn.value&&n.animations.type==="draw"&&n.chart.type==="line"&&(Ee.value.isAnimating||!Ee.value.hasAnimated))if(Ee.value.isAnimating){const V=Ee.value.currentFrame/Ee.value.totalFrames,D=xo(n.animations.easing,Math.min(V,1)),H=zc(S,D);g=H.x+(i.offsetX||0),_=H.y+(i.offsetY||0)}else g=S[0].x+(i.offsetX||0),_=S[0].y+(i.offsetY||0);else{const V=u.data.length-1,D=u.data[V];g=nt(V)+(i.offsetX||0),_=lt(D)+(i.offsetY||0)}}else if(dn.value||na.value){const S=Math.PI*2/n.logos.length*o;g=Ie.value+Math.cos(S)*(he.value+30)+(i.offsetX||0),_=Ae.value+Math.sin(S)*(he.value+30)+(i.offsetY||0)}return{...i,x:g,y:_,seriesIndex:i.seriesIndex}}).filter(Boolean)}),Vc=n=>{const i=document.querySelector(`.dss-logo-fallback-${n}`),o=document.querySelector(`.dss-logo-image-${n}`);i&&(i.style.opacity="0"),o&&(o.style.opacity="1")},Fc=n=>{console.warn(`Logo ${n} failed to load, keeping fallback circle`);const i=document.querySelector(`.dss-logo-image-${n}`);i&&(i.style.display="none")},Bc=n=>{Q.value.has(n)?Q.value.delete(n):Q.value.add(n)},$c=t.computed(()=>{if(!Ne.value.show&&!(y.value&&te.value.show&&!O.value.isZooming))return{display:"none"};let n,i;if(y.value&&te.value.show&&!O.value.isZooming){n=te.value.x+15,i=b.value.top;const o=150;n+o>k.value&&(n=te.value.x-o-15),n<0&&(n=10),i<10&&(i=10)}else n=Ne.value.x,i=Ne.value.y;return{left:n+"px",top:i+"px"}}),Qt=(n,i)=>{var ne;if(fn.value)return;const u=i.target.closest(".dss-custom-chart-container").getBoundingClientRect();let g=i.clientX-u.left+10,_=i.clientY-u.top-10;const v=200,S=120,V=k.value,D=I.value;g+v>V&&(g=i.clientX-u.left-v-10),_+S>D&&(_=i.clientY-u.top-S-10),g<0&&(g=10),_<0&&(_=10);let H;typeof n.categoryIndex=="number"?H=n.categoryIndex:typeof n.dataIndex=="number"?H=n.dataIndex:n.label&&l.categories.includes(n.label)&&(H=l.categories.indexOf(n.label)),Ne.value={show:!0,x:g,y:_,title:n.seriesName||n.label||"",value:((ne=n.value)==null?void 0:ne.toString())||"",categoryIndex:H}},en=()=>{Ne.value.show=!1},fn=t.ref(!1),hn=(n,i)=>{fn.value=!0,Ne.value.show=!1,te.value.show=!1;const u=i.target.closest(".dss-custom-chart-container").getBoundingClientRect();let g=i.clientX-u.left+15,_=i.clientY-u.top-10;const v=250;g+v>k.value&&(g=i.clientX-u.left-v-15),g<0&&(g=10),_<0&&(_=10),le.value={show:!0,x:g,y:_,content:n.texts,count:n.totalCount}},pn=()=>{fn.value=!1,le.value.show=!1},Ee=t.ref({isAnimating:!1,currentFrame:0,totalFrames:0,animationId:null,hasAnimated:!1});t.ref(new Map);const xo=(n,i)=>{switch(n){case"linear":return i;case"ease":return i<.5?2*i*i:-1+(4-2*i)*i;case"ease-in":return i*i;case"ease-out":return i*(2-i);case"ease-in-out":return i<.5?2*i*i:-1+(4-2*i)*i;default:return i}},gn=t.computed(()=>Ot.value?window.matchMedia("(prefers-reduced-motion: reduce)").matches:!1),Po=()=>{if(!Fe.value||gn.value){Ee.value.hasAnimated=!0;return}Ee.value.isAnimating=!0,Ee.value.currentFrame=0,Ee.value.totalFrames=Math.ceil(Lt.value/16.67);const n=()=>{const i=Ee.value.currentFrame/Ee.value.totalFrames,o=xo(Mt.value,Math.min(i,1));Uc(o),i<1?(Ee.value.currentFrame++,Ee.value.animationId=requestAnimationFrame(n)):Hc()};Ee.value.animationId=requestAnimationFrame(n)},Uc=n=>{const i=document.querySelector(".dss-custom-chart-container");i&&i.style.setProperty("--dss-animation-progress",n)},Hc=()=>{Ee.value.isAnimating=!1,Ee.value.hasAnimated=!0,Ee.value.animationId&&(cancelAnimationFrame(Ee.value.animationId),Ee.value.animationId=null)},Xc=t.computed(()=>{if(!Fe.value||gn.value||Ee.value.hasAnimated)return{};const n={};return n["--dss-animation-duration"]=`${Lt.value}ms`,n["--dss-animation-easing"]=Yc(Mt.value),n["--dss-stagger-delay"]=`${je.value}ms`,n}),Yc=n=>({linear:"linear",ease:"ease","ease-in":"ease-in","ease-out":"ease-out","ease-in-out":"ease-in-out"})[n]||"ease-out",Wc=()=>{if(!Fe.value||gn.value)return"";const n=["dss-chart-animated"];return Ee.value.hasAnimated||n.push(`dss-animate-${bt.value}`),Ee.value.hasAnimated||(dn.value?n.push("dss-animate-fill"):n.push(`dss-animate-${bt.value}`)),Ee.value.isAnimating&&n.push("dss-is-animating"),n.join(" ")};t.watch(()=>l.series,(n,i)=>{Ye.value&&i&&Ee.value.hasAnimated&&(Ee.value.hasAnimated=!1,t.nextTick(()=>{setTimeout(()=>Po(),Tt.value)}))},{deep:!0}),t.watch(()=>O.value.isZooming,(n,i)=>{i&&!n&&setTimeout(()=>{No()},50)}),t.watch(()=>[O.value.scale,O.value.offsetX],()=>{!O.value.isZooming&&!O.value.isDragging&&No()},{flush:"post"}),t.watch([x,B],([n,i])=>{O.value.minScale=n,O.value.maxScale=i,(O.value.scale<n||O.value.scale>i)&&ea()},{immediate:!0}),t.watch(()=>l.locale,n=>{n&&n!==s.value&&(s.value=n)},{immediate:!0}),t.onMounted(()=>{_c(),Fe.value&&!gn.value?setTimeout(()=>Po(),Tt.value):Ee.value.hasAnimated=!0,document.addEventListener("mousemove",Ro),document.addEventListener("mouseup",Vo),document.addEventListener("click",Mo)}),t.onUnmounted(()=>{Ee.value.animationId&&cancelAnimationFrame(Ee.value.animationId),O.value.zoomTimeout&&clearTimeout(O.value.zoomTimeout),document.removeEventListener("mousemove",Ro),document.removeEventListener("mouseup",Vo),document.removeEventListener("click",Mo)});const Ro=n=>{if(O.value.isDragging&&O.value.scale>1&&We.value){te.value.show=!1;const i=n.clientX-O.value.lastMouseX,{minX:o,maxX:u}=qe.value,g=u-o||1,v=i*.8;O.value.offsetX+=v;const S=g/O.value.scale,V=g-S,D=0,H=-V/g*b.value.width,ne=D;O.value.offsetX=Math.max(H,Math.min(ne,O.value.offsetX)),O.value.lastMouseX=n.clientX,O.value.lastMouseY=n.clientY}},Vo=()=>{O.value.isDragging&&(O.value.isDragging=!1,setTimeout(()=>{!O.value.isDragging&&O.value.isZooming},100))},zc=(n,i)=>{if(!n||n.length===0)return{x:0,y:0};if(n.length===1||i<=0)return n[0];if(i>=1)return n[n.length-1];let o=0;const u=[];for(let v=1;v<n.length;v++){const S=n[v].x-n[v-1].x,V=n[v].y-n[v-1].y,D=Math.sqrt(S*S+V*V);u.push(D),o+=D}const g=o*i;let _=0;for(let v=0;v<u.length;v++){const S=_+u[v];if(g<=S){const V=(g-_)/u[v],D=n[v],H=n[v+1];return{x:D.x+(H.x-D.x)*V,y:D.y+(H.y-D.y)*V}}_=S}return n[n.length-1]};return(n,i)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",{class:t.normalizeClass(["dss-custom-chart-container",Wc()]),style:t.normalizeStyle({width:k.value+"px",height:I.value+20+"px",...Xc.value,cursor:Tc()}),"data-chart-type":M.value,onWheel:Oo,onMousedown:bc,onMousemove:oc,onMouseup:Lc,onMouseleave:lc,onDblclick:ea,onContextmenu:sc,onClick:Et,onWheelCapture:Oo},[t.createElementVNode("div",Ws,[t.createElementVNode("div",zs,[N.value?(t.openBlock(),t.createElementBlock("div",Gs,t.toDisplayString(N.value),1)):t.createCommentVNode("",!0),F.value?(t.openBlock(),t.createElementBlock("div",js,t.toDisplayString(F.value),1)):t.createCommentVNode("",!0)]),E.value?(t.openBlock(),t.createElementBlock("div",Ks,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.series,(o,u)=>(t.openBlock(),t.createElementBlock("div",{key:`legend-${u}`,class:t.normalizeClass(["dss-legend-item",{hidden:Q.value.has(u),"legend-hovered":de.value===u,"legend-dimmed":de.value!==null&&de.value!==u}]),onClick:g=>Bc(u),onMouseenter:g=>nc(u),onMouseleave:ac,style:t.normalizeStyle({animationDelay:`${u*100}ms`})},[t.createElementVNode("div",{class:"dss-legend-color",style:t.normalizeStyle({backgroundColor:Ke(u)})},null,4),t.createElementVNode("span",qs,t.toDisplayString(o.name),1)],46,Zs))),128))])):t.createCommentVNode("",!0)]),(t.openBlock(),t.createElementBlock("svg",{width:k.value,height:I.value,class:"dss-chart-svg","data-smooth":Z.value,"data-animated":Fe.value},[t.createElementVNode("defs",null,[t.createElementVNode("clipPath",Qs,[t.createElementVNode("rect",{x:b.value.left,y:b.value.top,width:b.value.width,height:b.value.height*4},null,8,er)])]),We.value?(t.openBlock(),t.createElementBlock("g",tr,[W.value?(t.openBlock(),t.createElementBlock("g",nr,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Mc.value,(o,u)=>(t.openBlock(),t.createElementBlock("line",{key:`h-grid-${u}`,x1:b.value.left,x2:b.value.right,y1:o.y,y2:o.y,stroke:"#e0e0e0","stroke-width":"1","stroke-dasharray":"4,2",style:t.normalizeStyle({animationDelay:`${u*50}ms`})},null,12,ar))),128))])):t.createCommentVNode("",!0),t.createElementVNode("g",or,[t.createElementVNode("line",{x1:b.value.left,x2:b.value.right,y1:b.value.bottom,y2:b.value.bottom,stroke:"#ccc","stroke-width":"1"},null,8,lr),t.createElementVNode("line",{x1:b.value.left,x2:b.value.left,y1:b.value.top,y2:b.value.bottom,stroke:"#ccc","stroke-width":"1"},null,8,sr)]),t.createElementVNode("g",rr,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Oc.value,(o,u)=>(t.openBlock(),t.createElementBlock("text",{key:`x-${u}`,x:o.x,y:o.y,"text-anchor":"middle","font-size":"12",fill:"#666",style:t.normalizeStyle({animationDelay:`${u*100}ms`})},t.toDisplayString(o.text),13,ir))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(So.value,(o,u)=>(t.openBlock(),t.createElementBlock("text",{key:`y-${u}`,x:o.x,y:o.y,"text-anchor":"end","font-size":"12",fill:"#666","dominant-baseline":"middle",style:t.normalizeStyle({animationDelay:`${u*80}ms`})},t.toDisplayString(o.text),13,cr))),128)),z.value?(t.openBlock(),t.createElementBlock("text",{key:0,x:b.value.left+b.value.width/2,y:b.value.bottom+45,"text-anchor":"middle","font-size":"14","font-weight":"bold",fill:"#333"},t.toDisplayString(z.value),9,ur)):t.createCommentVNode("",!0),$.value?(t.openBlock(),t.createElementBlock("text",{key:1,x:15,y:b.value.top+12+b.value.height/2,"text-anchor":"middle","font-size":"14","font-weight":"bold",fill:"#333",transform:`rotate(-90, 15, ${b.value.top+b.value.height/2})`},t.toDisplayString($.value),9,dr)):t.createCommentVNode("",!0)]),A.value.length>0?(t.openBlock(),t.createElementBlock("g",mr,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(A.value,o=>(t.openBlock(),t.createElementBlock("g",{key:`flag-group-${o.categoryIndex}`},[t.createElementVNode("g",fr,[o.hasManual?(t.openBlock(),t.createElementBlock("line",{key:0,x1:o.x,x2:o.x,y1:b.value.bottom,y2:b.value.top,stroke:"#047395","stroke-width":"2","stroke-dasharray":"8",opacity:"0.9",class:"dss-flag-line",onMouseover:u=>hn(o,u),onMouseleave:pn},null,40,hr)):t.createCommentVNode("",!0),o.hasAuto&&!o.hasManual?(t.openBlock(),t.createElementBlock("line",{key:1,x1:o.x,x2:o.x,y1:b.value.bottom,y2:b.value.top,stroke:"#0dbf89","stroke-width":"2","stroke-dasharray":"8",opacity:"0.9",class:"dss-flag-line",onMouseover:u=>hn(o,u),onMouseleave:pn},null,40,pr)):t.createCommentVNode("",!0),o.hasAuto&&o.hasManual?(t.openBlock(),t.createElementBlock("line",{key:2,x1:o.x,x2:o.x,y1:b.value.bottom,y2:b.value.top,stroke:"#047395","stroke-width":"2","stroke-dasharray":"8",opacity:"0.9",class:"dss-flag-line",onMouseover:u=>hn(o,u),onMouseleave:pn},null,40,gr)):t.createCommentVNode("",!0)]),o.hasManual&&o.hasAuto?(t.openBlock(),t.createElementBlock("circle",{key:0,cx:o.x+8,cy:Math.max(15,b.value.top-10),r:"14",fill:"#0dbf89",stroke:"white","stroke-width":"2",class:"flag-count-circle",onMouseover:u=>hn(o,u),onMouseleave:pn},null,40,_r)):t.createCommentVNode("",!0),t.createElementVNode("circle",{cx:o.x,cy:Math.max(15,b.value.top-10),r:"14",fill:o.hasManual&&o.hasAuto||o.hasManual?"#047395":"#0dbf89",stroke:"white","stroke-width":"2",class:"dss-flag-count-indicator",onMouseover:u=>hn(o,u),onMouseleave:pn},null,40,Er),t.createElementVNode("text",{x:o.x,y:Math.max(15,b.value.top-5),"text-anchor":"middle","font-size":"12","font-weight":"bold",fill:"white",class:"dss-flag-count-text","pointer-events":"none"},t.toDisplayString(o.totalCount),9,Cr)]))),128))])):t.createCommentVNode("",!0),t.createElementVNode("g",yr,[M.value==="line"?(t.openBlock(),t.createElementBlock("g",kr,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Sc.value,(o,u)=>(t.openBlock(),t.createElementBlock("path",{key:`line-${u}`,d:o.path,stroke:o.color,"stroke-width":o.isHighlighted?P.value+2:P.value,fill:"none","stroke-linecap":"round","stroke-linejoin":"round",class:t.normalizeClass({"dss-series-highlighted":o.isHighlighted,"dss-series-dimmed":o.isDimmed,"dss-series-hidden":o.isHidden}),style:t.normalizeStyle({"--dss-path-length":o.pathLength,animationDelay:`${o.animationDelay}ms`})},null,14,vr))),128)),me.value>0?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(Ic.value,(o,u)=>(t.openBlock(),t.createElementBlock("circle",{key:`point-${u}`,cx:o.x,cy:o.y,r:o.isHighlighted?me.value+2:me.value,fill:o.color,stroke:"white","stroke-width":"2",class:t.normalizeClass({"dss-point-highlighted":o.isHighlighted,"dss-point-dimmed":o.isDimmed,"dss-point-hidden":o.isHidden}),style:t.normalizeStyle({animationDelay:`${o.animationDelay}ms`}),onMouseover:g=>Qt(o,g),onMouseleave:en},null,46,Nr))),128)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),M.value==="area"?(t.openBlock(),t.createElementBlock("g",br,[t.createElementVNode("defs",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(aa.value,(o,u)=>(t.openBlock(),t.createElementBlock("mask",{key:`mask-${u}`,id:`area-mask-${u}-${e.chartId}`},[t.createElementVNode("rect",{x:b.value.left-10,y:b.value.top-10,width:b.value.width+20,height:b.value.height+20,fill:"white",class:"dss-area-mask-rect",style:t.normalizeStyle({"--dss-mask-width":`${b.value.width+20}px`})},null,12,Tr)],8,Lr))),128))]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(aa.value,(o,u)=>(t.openBlock(),t.createElementBlock("path",{key:`area-fill-${u}`,d:o.areaPath,fill:o.color,"fill-opacity":o.isHighlighted?Ve.value+.2:Ve.value,mask:`url(#area-mask-${u}-${e.chartId})`,class:t.normalizeClass({"dss-area-fill-smooth":!0,"dss-series-highlighted":o.isHighlighted,"dss-series-dimmed":o.isDimmed,"dss-series-hidden":o.isHidden})},null,10,Mr))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(aa.value,(o,u)=>(t.openBlock(),t.createElementBlock("path",{key:`area-line-${u}`,d:o.linePath,stroke:o.color,"stroke-width":o.isHighlighted?P.value+1:P.value,fill:"none","stroke-linecap":"round","stroke-linejoin":"round",class:t.normalizeClass({"dss-area-line-animated":!0,"dss-series-highlighted":o.isHighlighted,"dss-series-dimmed":o.isDimmed,"dss-series-hidden":o.isHidden}),style:t.normalizeStyle({"--dss-path-length":o.pathLength,animationDelay:`${u*je.value}ms`})},null,14,Or))),128))])):t.createCommentVNode("",!0),M.value==="bar"?(t.openBlock(),t.createElementBlock("g",Sr,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Ac.value,(o,u)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`bar-${u}`},[o.isSmooth?(t.openBlock(),t.createElementBlock("path",{key:0,d:o.barPath,fill:o.color,stroke:"white","stroke-width":"1",class:t.normalizeClass({"dss-bar-highlighted":o.isHighlighted,"dss-bar-dimmed":o.isDimmed,"dss-bar-hidden":o.isHidden}),style:t.normalizeStyle({animationDelay:`${o.animationDelay}ms`}),onMouseover:g=>Qt(o,g),onMouseleave:en},null,46,Ir)):(t.openBlock(),t.createElementBlock("rect",{key:1,x:o.x,y:o.y,width:o.width,height:o.height,fill:o.color,stroke:"white","stroke-width":"1",class:t.normalizeClass({"dss-bar-highlighted":o.isHighlighted,"dss-bar-dimmed":o.isDimmed,"dss-bar-hidden":o.isHidden}),style:t.normalizeStyle({animationDelay:`${o.animationDelay}ms`}),onMouseover:g=>Qt(o,g),onMouseleave:en},null,46,Ar))],64))),128))])):t.createCommentVNode("",!0)]),y.value&&te.value.show&&!O.value.isZooming?(t.openBlock(),t.createElementBlock("g",wr,[t.createElementVNode("line",{x1:te.value.x,x2:te.value.x,y1:b.value.top,y2:b.value.bottom,stroke:w.value,"stroke-width":"1","stroke-dasharray":"4,4",opacity:"0.8"},null,8,Dr),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(te.value.data,(o,u)=>(t.openBlock(),t.createElementBlock("circle",{key:`dss-crosshair-point-${u}`,cx:te.value.x,cy:o.y,r:me.value+2,fill:o.color,stroke:"white","stroke-width":"2",opacity:"0.9"},null,8,xr))),128))])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),dn.value?(t.openBlock(),t.createElementBlock("g",Pr,[M.value==="radial"?(t.openBlock(),t.createElementBlock("circle",{key:0,cx:Ie.value,cy:Ae.value,r:he.value,fill:"none",stroke:"#e0e0e0","stroke-width":"1"},null,8,Rr)):t.createCommentVNode("",!0),t.createElementVNode("g",{class:"dss-radial-data","data-chart-type":M.value},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Ao.value,(o,u)=>(t.openBlock(),t.createElementBlock("path",{key:`radial-${u}`,d:o.path,fill:o.color,"fill-opacity":o.isHighlighted?(o.opacity||.8)+.2:o.opacity||.8,stroke:o.color,"stroke-width":o.isHighlighted?2:1,class:t.normalizeClass({"dss-series-highlighted":o.isHighlighted,"dss-series-dimmed":o.isDimmed,"dss-series-hidden":o.isHidden}),onMouseover:g=>Qt(o,g),onMouseleave:en},null,42,Fr))),128))],8,Vr),Y.value?(t.openBlock(),t.createElementBlock("g",Br,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(wc.value,(o,u)=>(t.openBlock(),t.createElementBlock("g",{key:`radial-label-${u}`,class:t.normalizeClass({"dss-label-highlighted":o.isHighlighted,"dss-label-dimmed":o.isDimmed})},[t.createElementVNode("line",{x1:o.pointerStartX,y1:o.pointerStartY,x2:o.pointerEndX,y2:o.pointerEndY,stroke:o.color,"stroke-width":"1.5",opacity:"0.8",style:t.normalizeStyle({animationDelay:`${u*100}ms`})},null,12,$r),t.createElementVNode("line",{x1:o.pointerEndX,y1:o.pointerEndY,x2:o.horizontalEndX,y2:o.horizontalEndY,stroke:o.color,"stroke-width":"1.5",opacity:"0.8",style:t.normalizeStyle({animationDelay:`${u*120}ms`})},null,12,Ur),t.createElementVNode("text",{x:o.textX,y:o.textY,"text-anchor":o.textAnchor,"font-size":ke.value,"dominant-baseline":"middle",style:t.normalizeStyle({animationDelay:`${u*150}ms`})},t.toDisplayString(o.text),13,Hr)],2))),128))])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),na.value?(t.openBlock(),t.createElementBlock("g",Xr,[W.value?(t.openBlock(),t.createElementBlock("g",Yr,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(xc.value,(o,u)=>(t.openBlock(),t.createElementBlock("polygon",{key:`spider-grid-${u}`,points:o.points,fill:"none",stroke:"#f0f0f0","stroke-width":"1",style:t.normalizeStyle({animationDelay:`${u*150}ms`})},null,12,Wr))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(wo.value,(o,u)=>(t.openBlock(),t.createElementBlock("line",{key:`spider-axis-${u}`,x1:Ie.value,x2:o.x,y1:Ae.value,y2:o.y,stroke:"#e0e0e0","stroke-width":"1",style:t.normalizeStyle({animationDelay:`${u*100}ms`})},null,12,zr))),128))])):t.createCommentVNode("",!0),t.createElementVNode("g",Gr,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Pc.value,(o,u)=>(t.openBlock(),t.createElementBlock("text",{key:`spider-label-${u}`,x:o.x,y:o.y,"text-anchor":o.anchor,"dominant-baseline":o.baseline,"font-size":"12",fill:"#666","font-weight":"500",style:t.normalizeStyle({animationDelay:`${u*120}ms`})},t.toDisplayString(o.text),13,jr))),128))]),t.createElementVNode("g",Kr,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Rc.value,(o,u)=>(t.openBlock(),t.createElementBlock("g",{key:`spider-${u}`},[t.createElementVNode("polygon",{points:o.points,fill:o.color,"fill-opacity":o.isHighlighted?(o.fillOpacity||.1)+.15:o.fillOpacity||.1,stroke:o.color,"stroke-width":o.isHighlighted?P.value+1:P.value,"stroke-linejoin":"round",class:t.normalizeClass({"dss-series-highlighted":o.isHighlighted,"dss-series-dimmed":o.isDimmed,"dss-series-hidden":o.isHidden}),style:t.normalizeStyle({animationDelay:`${u*je.value}ms`}),onMouseover:g=>Qt(o,g),onMouseleave:en},null,46,Zr),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.dataPoints,(g,_)=>(t.openBlock(),t.createElementBlock("circle",{key:`spider-point-${u}-${_}`,cx:g.x,cy:g.y,r:o.isHighlighted?me.value+1:me.value,fill:o.color,stroke:"white","stroke-width":"2",class:t.normalizeClass({"dss-point-highlighted":o.isHighlighted,"dss-point-dimmed":o.isDimmed,"dss-point-hidden":o.isHidden}),style:t.normalizeStyle({animationDelay:`${u*je.value+_*50}ms`}),onMouseover:v=>Qt(g,v),onMouseleave:en},null,46,qr))),128))]))),128))])])):t.createCommentVNode("",!0),t.createElementVNode("g",Jr,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Do.value,(o,u)=>(t.openBlock(),t.createElementBlock("circle",{key:`logo-fallback-${u}`,cx:o.x,cy:o.y,r:o.width/2,fill:Ke(o.seriesIndex),stroke:"white","stroke-width":"2",class:t.normalizeClass(`logo-fallback-${u}`),style:t.normalizeStyle({animationDelay:`${u*200}ms`})},null,14,Qr))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Do.value,(o,u)=>(t.openBlock(),t.createElementBlock("image",{key:`logo-${u}`,x:o.x-o.width/2,y:o.y-o.height/2,width:o.width,height:o.height,"xlink:href":o.url,onLoad:g=>Vc(u),onError:g=>Fc(u),class:t.normalizeClass(`dss-logo-image-${u}`),"clip-path":`circle(${o.width/2}px at ${o.width/2}px ${o.height/2}px)`,style:t.normalizeStyle({animationDelay:`${u*200}ms`})},null,46,ei))),128))])],8,Js)),gt.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:"dss-chart-watermark",style:t.normalizeStyle({position:"absolute",top:"0px",left:"0px",width:k.value+"px",height:I.value+"px",backgroundImage:`url('${T.value}')`,backgroundRepeat:"no-repeat",...Xt.value,opacity:R.value,pointerEvents:"none",zIndex:10})},null,4)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Ht.value,(o,u)=>t.withDirectives((t.openBlock(),t.createElementBlock("div",{key:"marker-"+o.id,class:"dss-chart-marker",style:t.normalizeStyle({position:"absolute",left:o.x+"px",top:o.y+"px",width:pt.value+"px",height:pt.value+"px",transform:"translate(-50%, -50%)",cursor:"pointer",zIndex:500,backgroundColor:"#fff",borderRadius:"50%",border:"2px solid #ddd",pointerEvents:It.value?"auto":"none"}),onClick:t.withModifiers(g=>hc(o),["stop"]),onWheel:i[0]||(i[0]=t.withModifiers(()=>{},["prevent","stop"])),title:o.title+(o.description?": "+o.description:"")},[t.createElementVNode("img",{src:vo(o),class:"dss-marker-icon",alt:"Marker Icon",style:{width:"100%",height:"100%",objectFit:"contain",borderRadius:"50%",pointerEvents:"none"},onError:g=>gc(g,o),draggable:"false"},null,40,ni)],44,ti)),[[t.vShow,It.value]])),128)),Ne.value.show||y.value&&te.value.show&&!O.value.isZooming?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["dss-chart-tooltip",{"dss-crosshair-tooltip":y.value&&te.value.show&&!O.value.isZooming}]),style:t.normalizeStyle($c.value)},[!y.value||!te.value.show||O.value.isZooming?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",ai,[t.createElementVNode("div",oi,t.toDisplayString(Ne.value.title),1),t.createElementVNode("div",li,t.toDisplayString(Ne.value.value),1)]),Ne.value.categoryIndex!==void 0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[d(Ne.value.categoryIndex).flagGroups.length>0?(t.openBlock(),t.createElementBlock("div",si,[i[7]||(i[7]=t.createElementVNode("div",{class:"dss-tooltip-separator"},null,-1)),t.createElementVNode("div",ri,t.toDisplayString(t.unref(a)("chart.tooltip.flags")),1),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d(Ne.value.categoryIndex).flagGroups,(o,u)=>(t.openBlock(),t.createElementBlock("div",{key:`tooltip-flag-group-${u}`},[t.createElementVNode("div",ii,[t.createElementVNode("div",{class:"dss-tooltip-item-indicator",style:t.normalizeStyle({backgroundColor:o.color})},null,4),t.createElementVNode("span",null,t.toDisplayString(o.type),1)]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.flags,(g,_)=>(t.openBlock(),t.createElementBlock("div",{key:`tooltip-flag-${u}-${_}`,class:"dss-tooltip-item dss-tooltip-item-no-indicator"},[t.createElementVNode("div",ci,[t.createElementVNode("div",ui,t.toDisplayString(g.text),1)])]))),128))]))),128))])):t.createCommentVNode("",!0),d(Ne.value.categoryIndex).markers.length>0?(t.openBlock(),t.createElementBlock("div",di,[i[8]||(i[8]=t.createElementVNode("div",{class:"dss-tooltip-separator"},null,-1)),t.createElementVNode("div",mi,t.toDisplayString(t.unref(a)("chart.tooltip.markers")),1),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d(Ne.value.categoryIndex).markers,(o,u)=>(t.openBlock(),t.createElementBlock("div",{key:`tooltip-marker-${u}`,class:"dss-tooltip-item"},[t.createElementVNode("div",{class:"dss-tooltip-item-indicator",style:t.normalizeStyle({backgroundColor:o.color})},null,4),t.createElementVNode("div",fi,[t.createElementVNode("div",hi,t.toDisplayString(o.title),1),o.description?(t.openBlock(),t.createElementBlock("div",pi,t.toDisplayString(o.description),1)):t.createCommentVNode("",!0)])]))),128))])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",gi,[t.createElementVNode("div",_i,t.toDisplayString(e.categories[te.value.categoryIndex]||`Category ${te.value.categoryIndex+1}`),1),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(te.value.data,(o,u)=>(t.openBlock(),t.createElementBlock("div",{key:`crosshair-tooltip-${u}`,class:"dss-tooltip-series"},[t.createElementVNode("div",{class:"dss-tooltip-series-indicator",style:t.normalizeStyle({backgroundColor:o.color})},null,4),t.createElementVNode("span",Ei,t.toDisplayString(o.seriesName)+":",1),t.createElementVNode("span",Ci,t.toDisplayString(o.value),1)]))),128))]),d(te.value.categoryIndex).flagGroups.length>0?(t.openBlock(),t.createElementBlock("div",yi,[i[9]||(i[9]=t.createElementVNode("div",{class:"dss-tooltip-separator"},null,-1)),t.createElementVNode("div",ki,t.toDisplayString(t.unref(a)("chart.tooltip.flags")),1),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d(te.value.categoryIndex).flagGroups,(o,u)=>(t.openBlock(),t.createElementBlock("div",{key:`crosshair-flag-group-${u}`},[t.createElementVNode("div",vi,[t.createElementVNode("div",{class:"dss-tooltip-item-indicator",style:t.normalizeStyle({backgroundColor:o.color})},null,4),t.createElementVNode("span",null,t.toDisplayString(o.type),1)]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.flags,(g,_)=>(t.openBlock(),t.createElementBlock("div",{key:`crosshair-flag-${u}-${_}`,class:"dss-tooltip-item dss-tooltip-item-no-indicator"},[t.createElementVNode("div",Ni,[t.createElementVNode("div",bi,t.toDisplayString(g.text),1)])]))),128))]))),128))])):t.createCommentVNode("",!0),d(te.value.categoryIndex).markers.length>0?(t.openBlock(),t.createElementBlock("div",Li,[i[10]||(i[10]=t.createElementVNode("div",{class:"dss-tooltip-separator"},null,-1)),t.createElementVNode("div",Ti,t.toDisplayString(t.unref(a)("chart.tooltip.dss-markers")),1),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d(te.value.categoryIndex).markers,(o,u)=>(t.openBlock(),t.createElementBlock("div",{key:`crosshair-dss-marker-${u}`,class:"dss-tooltip-item"},[t.createElementVNode("div",{class:"dss-tooltip-item-indicator",style:t.normalizeStyle({backgroundColor:o.color})},null,4),t.createElementVNode("div",Mi,[t.createElementVNode("div",Oi,t.toDisplayString(o.title),1),o.description?(t.openBlock(),t.createElementBlock("div",Si,t.toDisplayString(o.description),1)):t.createCommentVNode("",!0)])]))),128))])):t.createCommentVNode("",!0)],64))],6)):t.createCommentVNode("",!0),We.value&&L.value&&O.value.scale>1?(t.openBlock(),t.createElementBlock("div",{key:2,class:"dss-zoom-indicator",onClick:ea},[i[11]||(i[11]=t.createElementVNode("span",{style:{display:"inline-block",transform:"scaleX(-1)","font-size":"14px"}},"⌕",-1)),t.createTextVNode(" "+t.toDisplayString(Math.round(O.value.scale*100))+"% "+t.toDisplayString(t.unref(a)("chart.zoom.doubleClickToReset")),1)])):t.createCommentVNode("",!0)],46,Ys),Oe.value.show?(t.openBlock(),t.createElementBlock("div",{key:0,class:"dss-chart-context-menu",style:t.normalizeStyle({left:Oe.value.x+"px",top:Oe.value.y+"px"}),onClick:i[1]||(i[1]=t.withModifiers(()=>{},["stop"]))},[xe.value.addMarker?(t.openBlock(),t.createElementBlock("div",{key:0,class:"dss-context-menu-item",onClick:Nc},t.toDisplayString(t.unref(a)("chart.contextMenu.addMarker")),1)):t.createCommentVNode("",!0),Se.value.length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:"dss-context-menu-item",onClick:pc},t.toDisplayString(t.unref(a)("chart.contextMenu.clearAllMarkers")),1)):t.createCommentVNode("",!0),xe.value.addMarker&&(xe.value.downloadSvg||xe.value.downloadPng||xe.value.downloadCsv||ht.value.length>0)?(t.openBlock(),t.createElementBlock("div",Ii)):t.createCommentVNode("",!0),xe.value.downloadSvg?(t.openBlock(),t.createElementBlock("div",{key:3,class:"dss-context-menu-item",onClick:Cc},t.toDisplayString(t.unref(a)("chart.contextMenu.downloadSvg")),1)):t.createCommentVNode("",!0),xe.value.downloadPng?(t.openBlock(),t.createElementBlock("div",{key:4,class:"dss-context-menu-item",onClick:yc},t.toDisplayString(t.unref(a)("chart.contextMenu.downloadPng")),1)):t.createCommentVNode("",!0),xe.value.downloadCsv?(t.openBlock(),t.createElementBlock("div",{key:5,class:"dss-context-menu-item",onClick:kc},t.toDisplayString(t.unref(a)("chart.contextMenu.downloadCsv")),1)):t.createCommentVNode("",!0),ht.value.length>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:6},[xe.value.downloadSvg||xe.value.downloadPng||xe.value.downloadCsv?(t.openBlock(),t.createElementBlock("div",Ai)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(ht.value,(o,u)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:"custom-"+u},[o.separator?(t.openBlock(),t.createElementBlock("div",wi)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(ic(o)),style:t.normalizeStyle(cc(o)),onClick:g=>vc(o)},[o.template?(t.openBlock(),t.createElementBlock("div",{key:0,innerHTML:rc(o),class:"dss-custom-menu-content"},null,8,xi)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[o.icon?(t.openBlock(),t.createElementBlock("span",Pi,t.toDisplayString(o.icon),1)):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(o.label),1)],64))],14,Di)],64))),128))],64)):t.createCommentVNode("",!0)],4)):t.createCommentVNode("",!0),ie.value.show?(t.openBlock(),t.createElementBlock("div",{key:1,class:"dss-marker-modal-overlay",onClick:Jt},[t.createElementVNode("div",{class:"dss-marker-modal",onClick:i[6]||(i[6]=t.withModifiers(()=>{},["stop"]))},[t.createElementVNode("div",Ri,[t.createElementVNode("h3",null,t.toDisplayString(un.value?t.unref(a)("chart.modalMarker.editMarker"):t.unref(a)("chart.contextMenu.addMarker")),1),t.createElementVNode("button",{class:"dss-modal-close-btn",onClick:Jt},"×")]),t.createElementVNode("div",Vi,[t.createElementVNode("div",Fi,[t.createElementVNode("label",Bi,[t.createTextVNode(t.toDisplayString(t.unref(a)("chart.modalMarker.title"))+" ",1),i[12]||(i[12]=t.createElementVNode("span",{style:{color:"hsl(345, 94%, 44%)"}},"*",-1))]),t.withDirectives(t.createElementVNode("input",{id:"dss-marker-title","onUpdate:modelValue":i[2]||(i[2]=o=>ie.value.title=o),type:"text",placeholder:t.unref(a)("chart.modalMarker.placeholderTitle"),class:"dss-form-input",onKeyup:t.withKeys(bo,["enter"])},null,40,$i),[[t.vModelText,ie.value.title]])]),t.createElementVNode("div",Ui,[t.createElementVNode("label",Hi,t.toDisplayString(t.unref(a)("chart.modalMarker.description")),1),t.withDirectives(t.createElementVNode("textarea",{id:"dss-marker-description","onUpdate:modelValue":i[3]||(i[3]=o=>ie.value.description=o),placeholder:t.unref(a)("chart.modalMarker.placeholderDescription"),class:"dss-form-textarea",rows:"3"},null,8,Xi),[[t.vModelText,ie.value.description]])]),ko.value.length>1?(t.openBlock(),t.createElementBlock("div",Yi,[t.createElementVNode("label",Wi,t.toDisplayString(t.unref(a)("chart.modalMarker.iconType")),1),t.withDirectives(t.createElementVNode("select",{id:"dss-marker-type","onUpdate:modelValue":i[4]||(i[4]=o=>ie.value.type=o),class:"form-select"},[t.createElementVNode("option",zi,t.toDisplayString(t.unref(a)("chart.modalMarker.defaultIcon")),1),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(ko.value.filter(o=>o!=="default"),o=>(t.openBlock(),t.createElementBlock("option",{key:o,value:o},t.toDisplayString(o.charAt(0).toUpperCase()+o.slice(1)),9,Gi))),128))],512),[[t.vModelSelect,ie.value.type]])])):t.createCommentVNode("",!0),t.createElementVNode("div",ji,[t.createElementVNode("label",null,t.toDisplayString(t.unref(a)("chart.modalMarker.iconPreview")),1),t.createElementVNode("div",Ki,[t.createElementVNode("img",{src:vo({type:ie.value.type}),alt:"Marker Icon Preview",class:"preview-icon",style:{width:"32px",height:"32px","border-radius":"50%",border:"2px solid #ddd"},onError:i[5]||(i[5]=o=>o.target.style.display="none")},null,40,Zi)])])]),t.createElementVNode("div",qi,[t.createElementVNode("div",Ji,[un.value?(t.openBlock(),t.createElementBlock("button",{key:0,class:"dss-btn dss-btn-danger",onClick:mc},t.toDisplayString(t.unref(a)("chart.modalMarker.deleteMarker")),1)):t.createCommentVNode("",!0)]),t.createElementVNode("div",Qi,[t.createElementVNode("button",{class:"dss-btn dss-btn-secondary",onClick:Jt},t.toDisplayString(t.unref(a)("chart.modalMarker.cancel")),1),t.createElementVNode("button",{class:"dss-btn dss-btn-primary",onClick:bo,disabled:!ie.value.title.trim()},t.toDisplayString(un.value?t.unref(a)("chart.modalMarker.save"):t.unref(a)("chart.contextMenu.addMarker")),9,ec)])])])])):t.createCommentVNode("",!0)],64))}}),Qn=((e,a)=>{const s=e.__vccOpts||e;for(const[l,c]of a)s[l]=c;return s})({__name:"MyButton",props:{label:{type:String,required:!0},primary:{type:Boolean,default:!1},size:{type:String,validator:function(e){return["small","medium","large"].indexOf(e)!==-1}},backgroundColor:{type:String}},emits:["click"],setup(e,{emit:a}){const s=e,l=a,c=t.computed(()=>({"storybook-button":!0,"storybook-button--primary":s.primary,"storybook-button--secondary":!s.primary,[`storybook-button--${s.size||"medium"}`]:!0})),r=t.computed(()=>({backgroundColor:s.backgroundColor})),h=()=>{l("click")};return(p,f)=>(t.openBlock(),t.createElementBlock("button",{type:"button",class:t.normalizeClass(c.value),onClick:h,style:t.normalizeStyle(r.value)},t.toDisplayString(e.label),7))}},[["__scopeId","data-v-ade7987a"]]),tc={DSSChart:Jn,MyButton:Qn,install(e){e.component("DSSChart",Jn),e.component("MyButton",Qn)}};rt.DSSChart=Jn,rt.MyButton=Qn,rt.default=tc,Object.defineProperties(rt,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "dsp-semactic",
3
3
  "private": false,
4
- "version": "0.3.3",
4
+ "version": "0.3.5",
5
5
  "type": "module",
6
6
  "main": "dist/vue-design-system.umd.js",
7
7
  "module": "dist/vue-design-system.es.js",