@bangerpage/core 0.1.2 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import{x as bg}from"./chunk-YW2TRY4C.js";import{a as RE}from"./chunk-ISQU3ATQ.js";var lp=function(t,e){return lp=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(r[n]=i[n])},lp(t,e)};function L(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");lp(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var Il=12,up="sans-serif",Pt=Il+"px "+up,kE=20,BE=100,UE="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function zE(t){var e={};if(typeof JSON>"u")return e;for(var r=0;r<t.length;r++){var i=String.fromCharCode(r+32),n=(t.charCodeAt(r)-kE)/BE;e[i]=n}return e}var FE=zE(UE),ht={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var t,e;return function(r,i){if(!t){var n=ht.createCanvas();t=n&&n.getContext("2d")}if(t)return e!==i&&(e=t.font=i||Pt),t.measureText(r);r=r||"",i=i||Pt;var a=/((?:\d+)?\.?\d*)px/.exec(i),o=a&&+a[1]||Il,s=0;if(i.indexOf("mono")>=0)s=o*r.length;else for(var l=0;l<r.length;l++){var u=FE[r[l]];s+=u==null?o:u*o}return{width:s}}})(),loadImage:function(t,e,r){var i=new Image;return i.onload=e,i.onerror=r,i.src=t,i},getTime:function(){return Date.now?Date.now():+new Date}};var wg=Ht(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),Eg=Ht(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),Xo=Object.prototype.toString,Pl=Array.prototype,VE=Pl.forEach,GE=Pl.filter,pp=Pl.slice,HE=Pl.map,Tg=function(){}.constructor,Ll=Tg?Tg.prototype:null,hp="__proto__",fp=2311,YE=Math.pow(2,53)-1;function Nl(){return fp>=YE&&(fp=0),fp++}function Rl(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];typeof console<"u"&&console.error.apply(console,t)}function ee(t){if(t==null||typeof t!="object")return t;var e=t,r=Xo.call(t);if(r==="[object Array]"){if(!Wo(t)){e=[];for(var i=0,n=t.length;i<n;i++)e[i]=ee(t[i])}}else if(Eg[r]){if(!Wo(t)){var a=t.constructor;if(a.from)e=a.from(t);else{e=new a(t.length);for(var i=0,n=t.length;i<n;i++)e[i]=t[i]}}}else if(!wg[r]&&!Wo(t)&&!cp(t)){e={};for(var o in t)t.hasOwnProperty(o)&&o!==hp&&(e[o]=ee(t[o]))}return e}function me(t,e,r){if(!Y(e)||!Y(t))return r?ee(e):t;for(var i in e)if(e.hasOwnProperty(i)&&i!==hp){var n=t[i],a=e[i];Y(a)&&Y(n)&&!B(a)&&!B(n)&&!cp(a)&&!cp(n)&&!Cg(a)&&!Cg(n)&&!Wo(a)&&!Wo(n)?me(n,a,r):(r||!(i in t))&&(t[i]=ee(e[i]))}return t}function N(t,e){if(Object.assign)Object.assign(t,e);else for(var r in e)e.hasOwnProperty(r)&&r!==hp&&(t[r]=e[r]);return t}function Ag(t,e,r){t=t||{};for(var i=0;i<r.length;i++){var n=r[i];t[n]=e[n]}return t}function ne(t,e,r){for(var i=J(e),n=0,a=i.length;n<a;n++){var o=i[n];(r?e[o]!=null:t[o]==null)&&(t[o]=e[o])}return t}var ck=ht.createCanvas;function ue(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var r=0,i=t.length;r<i;r++)if(t[r]===e)return r}return-1}function Dg(t,e){var r=t.prototype;function i(){}i.prototype=e.prototype,t.prototype=new i;for(var n in r)r.hasOwnProperty(n)&&(t.prototype[n]=r[n]);t.prototype.constructor=t,t.superClass=e}function xt(t,e,r){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(e),n=0;n<i.length;n++){var a=i[n];a!=="constructor"&&(r?e[a]!=null:t[a]==null)&&(t[a]=e[a])}else ne(t,e,r)}function Ke(t){return!t||typeof t=="string"?!1:typeof t.length=="number"}function C(t,e,r){if(t&&e)if(t.forEach&&t.forEach===VE)t.forEach(e,r);else if(t.length===+t.length)for(var i=0,n=t.length;i<n;i++)e.call(r,t[i],i,t);else for(var a in t)t.hasOwnProperty(a)&&e.call(r,t[a],a,t)}function U(t,e,r){if(!t)return[];if(!e)return kl(t);if(t.map&&t.map===HE)return t.map(e,r);for(var i=[],n=0,a=t.length;n<a;n++)i.push(e.call(r,t[n],n,t));return i}function Ht(t,e,r,i){if(t&&e){for(var n=0,a=t.length;n<a;n++)r=e.call(i,r,t[n],n,t);return r}}function Ie(t,e,r){if(!t)return[];if(!e)return kl(t);if(t.filter&&t.filter===GE)return t.filter(e,r);for(var i=[],n=0,a=t.length;n<a;n++)e.call(r,t[n],n,t)&&i.push(t[n]);return i}function Mg(t,e,r){if(t&&e){for(var i=0,n=t.length;i<n;i++)if(e.call(r,t[i],i,t))return t[i]}}function J(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var r in t)t.hasOwnProperty(r)&&e.push(r);return e}function WE(t,e){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return function(){return t.apply(e,r.concat(pp.call(arguments)))}}var ye=Ll&&j(Ll.bind)?Ll.call.bind(Ll.bind):WE;function Te(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return function(){return t.apply(this,e.concat(pp.call(arguments)))}}function B(t){return Array.isArray?Array.isArray(t):Xo.call(t)==="[object Array]"}function j(t){return typeof t=="function"}function V(t){return typeof t=="string"}function vp(t){return Xo.call(t)==="[object String]"}function oe(t){return typeof t=="number"}function Y(t){var e=typeof t;return e==="function"||!!t&&e==="object"}function Cg(t){return!!wg[Xo.call(t)]}function Fe(t){return!!Eg[Xo.call(t)]}function cp(t){return typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.ownerDocument=="object"}function wa(t){return t.colorStops!=null}function xi(t){return t!==t}function Ea(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0,i=t.length;r<i;r++)if(t[r]!=null)return t[r]}function G(t,e){return t??e}function Yt(t,e,r){return t??e??r}function kl(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return pp.apply(t,e)}function Aa(t){if(typeof t=="number")return[t,t,t,t];var e=t.length;return e===2?[t[0],t[1],t[0],t[1]]:e===3?[t[0],t[1],t[2],t[1]]:t}function Ve(t,e){if(!t)throw new Error(e)}function Nt(t){return t==null?null:typeof t.trim=="function"?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Og="__ec_primitive__";function fn(t){t[Og]=!0}function Wo(t){return t[Og]}var XE=(function(){function t(){this.data={}}return t.prototype.delete=function(e){var r=this.has(e);return r&&delete this.data[e],r},t.prototype.has=function(e){return this.data.hasOwnProperty(e)},t.prototype.get=function(e){return this.data[e]},t.prototype.set=function(e,r){return this.data[e]=r,this},t.prototype.keys=function(){return J(this.data)},t.prototype.forEach=function(e){var r=this.data;for(var i in r)r.hasOwnProperty(i)&&e(r[i],i)},t})(),Ig=typeof Map=="function";function qE(){return Ig?new Map:new XE}var KE=(function(){function t(e){var r=B(e);this.data=qE();var i=this;e instanceof t?e.each(n):e&&C(e,n);function n(a,o){r?i.set(a,o):i.set(o,a)}}return t.prototype.hasKey=function(e){return this.data.has(e)},t.prototype.get=function(e){return this.data.get(e)},t.prototype.set=function(e,r){return this.data.set(e,r),r},t.prototype.each=function(e,r){this.data.forEach(function(i,n){e.call(r,i,n)})},t.prototype.keys=function(){var e=this.data.keys();return Ig?Array.from(e):e},t.prototype.removeKey=function(e){this.data.delete(e)},t})();function X(t){return new KE(t)}function Lg(t,e){for(var r=new t.constructor(t.length+e.length),i=0;i<t.length;i++)r[i]=t[i];for(var n=t.length,i=0;i<e.length;i++)r[i+n]=e[i];return r}function Si(t,e){var r;if(Object.create)r=Object.create(t);else{var i=function(){};i.prototype=t,r=new i}return e&&N(r,e),r}function Me(t,e){return t.hasOwnProperty(e)}function Ge(){}var Da=180/Math.PI,pk=Number.EPSILON||Math.pow(2,-52);var ZE=(function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t})(),jE=(function(){function t(){this.browser=new ZE,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return t})(),bi=new jE;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(bi.wxa=!0,bi.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?bi.worker=!0:!bi.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(bi.node=!0,bi.svgSupported=!0):QE(navigator.userAgent,bi);function QE(t,e){var r=e.browser,i=t.match(/Firefox\/([\d.]+)/),n=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),a=t.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(t);i&&(r.firefox=!0,r.version=i[1]),n&&(r.ie=!0,r.version=n[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),o&&(r.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,e.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11);var s=e.domSupported=typeof document<"u";if(s){var l=document.documentElement.style;e.transform3dSupported=(r.ie&&"transition"in l||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),e.transformSupported=e.transform3dSupported||r.ie&&+r.version>=9}}var _e=bi;var $E=".",cn="___EC__COMPONENT__CONTAINER___",Pg="___EC__EXTENDED_CLASS___";function Rt(t){var e={main:"",sub:""};if(t){var r=t.split($E);e.main=r[0]||"",e.sub=r[1]||""}return e}function JE(t){Ve(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function Ng(t){return!!(t&&t[Pg])}function Ma(t,e){t.$constructor=t,t.extend=function(r){var i=this,n;return eA(i)?n=(function(a){L(o,a);function o(){return a.apply(this,arguments)||this}return o})(i):(n=function(){(r.$constructor||i).apply(this,arguments)},Dg(n,this)),N(n.prototype,r),n[Pg]=!0,n.extend=this.extend,n.superCall=rA,n.superApply=iA,n.superClass=i,n}}function eA(t){return j(t)&&/^class\s/.test(Function.prototype.toString.call(t))}function Bl(t,e){t.extend=e.extend}var tA=Math.round(Math.random()*10);function Rg(t){var e=["__\0is_clz",tA++].join("_");t.prototype[e]=!0,t.isInstance=function(r){return!!(r&&r[e])}}function rA(t,e){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return this.superClass.prototype[e].apply(t,r)}function iA(t,e,r){return this.superClass.prototype[e].apply(t,r)}function Ti(t){var e={};t.registerClass=function(i){var n=i.type||i.prototype.type;if(n){JE(n),i.prototype.type=n;var a=Rt(n);if(!a.sub)e[a.main]=i;else if(a.sub!==cn){var o=r(a);o[a.sub]=i}}return i},t.getClass=function(i,n,a){var o=e[i];if(o&&o[cn]&&(o=n?o[n]:null),a&&!o)throw new Error(n?"Component "+i+"."+(n||"")+" is used but not imported.":i+".type should be specified.");return o},t.getClassesByMainType=function(i){var n=Rt(i),a=[],o=e[n.main];return o&&o[cn]?C(o,function(s,l){l!==cn&&a.push(s)}):a.push(o),a},t.hasClass=function(i){var n=Rt(i);return!!e[n.main]},t.getAllClassMainTypes=function(){var i=[];return C(e,function(n,a){i.push(a)}),i},t.hasSubTypes=function(i){var n=Rt(i),a=e[n.main];return a&&a[cn]};function r(i){var n=e[i.main];return(!n||!n[cn])&&(n=e[i.main]={},n[cn]=!0),n}}function Mr(t,e){for(var r=0;r<t.length;r++)t[r][1]||(t[r][1]=t[r][0]);return e=e||!1,function(i,n,a){for(var o={},s=0;s<t.length;s++){var l=t[s][1];if(!(n&&ue(n,l)>=0||a&&ue(a,l)<0)){var u=i.getShallow(l,e);u!=null&&(o[t[s][0]]=u)}}return o}}var nA=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],aA=Mr(nA),kg=(function(){function t(){}return t.prototype.getAreaStyle=function(e,r){return aA(this,e,r)},t})();var Bg=(function(){function t(e){this.value=e}return t})();var oA=(function(){function t(){this._len=0}return t.prototype.insert=function(e){var r=new Bg(e);return this.insertEntry(r),r},t.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},t.prototype.remove=function(e){var r=e.prev,i=e.next;r?r.next=i:this.head=i,i?i.prev=r:this.tail=r,e.next=e.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t})();var sA=(function(){function t(e){this._list=new oA,this._maxSize=10,this._map={},this._maxSize=e}return t.prototype.put=function(e,r){var i=this._list,n=this._map,a=null;if(n[e]==null){var o=i.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=i.head;i.remove(l),delete n[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new Bg(r),s.key=e,i.insertEntry(s),n[e]=s}return a},t.prototype.get=function(e){var r=this._map[e],i=this._list;if(r!=null)return r!==i.tail&&(i.remove(r),i.insertEntry(r)),r.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t})(),Or=sA;var mp=new Or(50);function zg(t){if(typeof t=="string"){var e=mp.get(t);return e&&e.image}else return t}function qo(t,e,r,i,n){if(t)if(typeof t=="string"){if(e&&e.__zrImageSrc===t||!r)return e;var a=mp.get(t),o={hostEl:r,cb:i,cbPayload:n};return a?(e=a.image,!Oa(e)&&a.pending.push(o)):(e=ht.loadImage(t,Ug,Ug),e.__zrImageSrc=t,mp.put(t,e.__cachedImgObj={image:e,pending:[o]})),e}else return t;else return e}function Ug(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var r=t.pending[e],i=r.cb;i&&i(this,r.cbPayload),r.hostEl.dirty()}t.pending.length=0}function Oa(t){return t&&t.width&&t.height}function St(){return[1,0,0,1,0,0]}function Qr(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function Ko(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function Ci(t,e,r){var i=e[0]*r[0]+e[2]*r[1],n=e[1]*r[0]+e[3]*r[1],a=e[0]*r[2]+e[2]*r[3],o=e[1]*r[2]+e[3]*r[3],s=e[0]*r[4]+e[2]*r[5]+e[4],l=e[1]*r[4]+e[3]*r[5]+e[5];return t[0]=i,t[1]=n,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t}function Zo(t,e,r){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+r[0],t[5]=e[5]+r[1],t}function Ia(t,e,r,i){i===void 0&&(i=[0,0]);var n=e[0],a=e[2],o=e[4],s=e[1],l=e[3],u=e[5],f=Math.sin(r),c=Math.cos(r);return t[0]=n*c+s*f,t[1]=-n*f+s*c,t[2]=a*c+l*f,t[3]=-a*f+c*l,t[4]=c*(o-i[0])+f*(u-i[1])+i[0],t[5]=c*(u-i[1])-f*(o-i[0])+i[1],t}function Fg(t,e,r){var i=r[0],n=r[1];return t[0]=e[0]*i,t[1]=e[1]*n,t[2]=e[2]*i,t[3]=e[3]*n,t[4]=e[4]*i,t[5]=e[5]*n,t}function Ir(t,e){var r=e[0],i=e[2],n=e[4],a=e[1],o=e[3],s=e[5],l=r*o-a*i;return l?(l=1/l,t[0]=o*l,t[1]=-a*l,t[2]=-i*l,t[3]=r*l,t[4]=(i*s-o*n)*l,t[5]=(a*n-r*s)*l,t):null}function wi(t,e){return t==null&&(t=0),e==null&&(e=0),[t,e]}function Vg(t){return[t[0],t[1]]}function Ul(t,e,r){return t[0]=e,t[1]=r,t}function gp(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t}function Gg(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t}function uA(t){return Math.sqrt(fA(t))}function fA(t){return t[0]*t[0]+t[1]*t[1]}function zl(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t}function Hg(t,e){var r=uA(e);return r===0?(t[0]=0,t[1]=0):(t[0]=e[0]/r,t[1]=e[1]/r),t}function Fl(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var Qo=Fl;function cA(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var pn=cA;function Vl(t,e,r,i){return t[0]=e[0]+i*(r[0]-e[0]),t[1]=e[1]+i*(r[1]-e[1]),t}function ot(t,e,r){var i=e[0],n=e[1];return t[0]=r[0]*i+r[2]*n+r[4],t[1]=r[1]*i+r[3]*n+r[5],t}function $r(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t}function Jr(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t}var pA=(function(){function t(e,r){this.x=e||0,this.y=r||0}return t.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(e,r){return this.x=e,this.y=r,this},t.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},t.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},t.prototype.scale=function(e){this.x*=e,this.y*=e},t.prototype.scaleAndAdd=function(e,r){this.x+=e.x*r,this.y+=e.y*r},t.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},t.prototype.dot=function(e){return this.x*e.x+this.y*e.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},t.prototype.distance=function(e){var r=this.x-e.x,i=this.y-e.y;return Math.sqrt(r*r+i*i)},t.prototype.distanceSquare=function(e){var r=this.x-e.x,i=this.y-e.y;return r*r+i*i},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(e){if(e){var r=this.x,i=this.y;return this.x=e[0]*r+e[2]*i+e[4],this.y=e[1]*r+e[3]*i+e[5],this}},t.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},t.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},t.set=function(e,r,i){e.x=r,e.y=i},t.copy=function(e,r){e.x=r.x,e.y=r.y},t.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},t.lenSquare=function(e){return e.x*e.x+e.y*e.y},t.dot=function(e,r){return e.x*r.x+e.y*r.y},t.add=function(e,r,i){e.x=r.x+i.x,e.y=r.y+i.y},t.sub=function(e,r,i){e.x=r.x-i.x,e.y=r.y-i.y},t.scale=function(e,r,i){e.x=r.x*i,e.y=r.y*i},t.scaleAndAdd=function(e,r,i,n){e.x=r.x+i.x*n,e.y=r.y+i.y*n},t.lerp=function(e,r,i,n){var a=1-n;e.x=a*r.x+n*i.x,e.y=a*r.y+n*i.y},t})(),se=pA;var gn=Math.min,La=Math.max,xp=Math.abs,Yg=["x","y"],hA=["width","height"],hn=new se,vn=new se,dn=new se,mn=new se,Wt=bp(),$o=Wt.minTv,Sp=Wt.maxTv,Jo=[0,0],ei=(function(){function t(e,r,i,n){yp(this,e,r,i,n)}return t.set=function(e,r,i,n,a){return n<0&&(r=r+n,n=-n),a<0&&(i=i+a,a=-a),e.x=r,e.y=i,e.width=n,e.height=a,e},t.prototype.union=function(e){var r=gn(e.x,this.x),i=gn(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=La(e.x+e.width,this.x+this.width)-r:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=La(e.y+e.height,this.y+this.height)-i:this.height=e.height,this.x=r,this.y=i},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(e){return vA(St(),this,e)},t.prototype.intersect=function(e,r,i){return t.intersect(this,e,r,i)},t.intersect=function(e,r,i,n){i&&se.set(i,0,0);var a=n&&n.outIntersectRect||null,o=n&&n.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!e||!r)return!1;e instanceof t||(e=yp(dA,e.x,e.y,e.width,e.height)),r instanceof t||(r=yp(mA,r.x,r.y,r.width,r.height));var s=!!i;Wt.reset(n,s);var l=Wt.touchThreshold,u=e.x+l,f=e.x+e.width-l,c=e.y+l,p=e.y+e.height-l,h=r.x+l,v=r.x+r.width-l,d=r.y+l,m=r.y+r.height-l;if(u>f||c>p||h>v||d>m)return!1;var g=!(f<h||v<u||p<d||m<c);return(s||a)&&(Jo[0]=1/0,Jo[1]=0,Xg(u,f,h,v,0,s,a,o),Xg(c,p,d,m,1,s,a,o),s&&se.copy(i,g?Wt.useDir?Wt.dirMinTv:$o:Sp)),g},t.contain=function(e,r,i){return r>=e.x&&r<=e.x+e.width&&i>=e.y&&i<=e.y+e.height},t.prototype.contain=function(e,r){return t.contain(this,e,r)},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){Wg(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return this.width===0||this.height===0},t.create=function(e){return new t(e?e.x:0,e?e.y:0,e?e.width:0,e?e.height:0)},t.copy=function(e,r){return e.x=r.x,e.y=r.y,e.width=r.width,e.height=r.height,e},t.applyTransform=function(e,r,i){if(!i){e!==r&&Wg(e,r);return}if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var n=i[0],a=i[3],o=i[4],s=i[5];e.x=r.x*n+o,e.y=r.y*a+s,e.width=r.width*n,e.height=r.height*a,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}hn.x=dn.x=r.x,hn.y=mn.y=r.y,vn.x=mn.x=r.x+r.width,vn.y=dn.y=r.y+r.height,hn.transform(i),mn.transform(i),vn.transform(i),dn.transform(i),e.x=gn(hn.x,vn.x,dn.x,mn.x),e.y=gn(hn.y,vn.y,dn.y,mn.y);var l=La(hn.x,vn.x,dn.x,mn.x),u=La(hn.y,vn.y,dn.y,mn.y);e.width=l-e.x,e.height=u-e.y},t.calculateTransform=function(e,r,i){var n=i.width/r.width,a=i.height/r.height;return e=Qr(e||[]),Zo(e,e,Ul(_p,-r.x,-r.y)),Fg(e,e,Ul(_p,n,a)),Zo(e,e,Ul(_p,i.x,i.y)),e},t})(),Tk=ei.create,yp=ei.set,Wg=ei.copy,vA=ei.calculateTransform,Ck=ei.applyTransform,wk=ei.contain,dA=new ei(0,0,0,0),mA=new ei(0,0,0,0),_p=[];function Xg(t,e,r,i,n,a,o,s){var l=xp(e-r),u=xp(i-t),f=gn(l,u),c=Yg[n],p=Yg[1-n],h=hA[n];e<r||i<t?l<u?(a&&(Sp[c]=-l),s&&(o[c]=e,o[h]=0)):(a&&(Sp[c]=u),s&&(o[c]=t,o[h]=0)):(o&&(o[c]=La(t,r),o[h]=gn(e,i)-o[c]),a&&(f<Jo[0]||Wt.useDir)&&(Jo[0]=gn(f,Jo[0]),(l<u||!Wt.bidirectional)&&($o[c]=l,$o[p]=0,Wt.useDir&&Wt.calcDirMTV()),(l>=u||!Wt.bidirectional)&&($o[c]=-u,$o[p]=0,Wt.useDir&&Wt.calcDirMTV())))}function bp(){var t=0,e=new se,r=new se,i={minTv:new se,maxTv:new se,useDir:!1,dirMinTv:new se,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(a,o){i.touchThreshold=0,a&&a.touchThreshold!=null&&(i.touchThreshold=La(0,a.touchThreshold)),i.negativeSize=!1,o&&(i.minTv.set(1/0,1/0),i.maxTv.set(0,0),i.useDir=!1,a&&a.direction!=null&&(i.useDir=!0,i.dirMinTv.copy(i.minTv),r.copy(i.minTv),t=a.direction,i.bidirectional=a.bidirectional==null||!!a.bidirectional,i.bidirectional||e.set(Math.cos(t),Math.sin(t))))},calcDirMTV:function(){var a=i.minTv,o=i.dirMinTv,s=a.y*a.y+a.x*a.x,l=Math.sin(t),u=Math.cos(t),f=l*a.y+u*a.x;if(n(f)){n(a.x)&&n(a.y)&&o.set(0,0);return}if(r.x=s*u/f,r.y=s*l/f,n(r.x)&&n(r.y)){o.set(0,0);return}(i.bidirectional||e.dot(r)>0)&&r.len()<o.len()&&o.copy(r)}};function n(a){return xp(a)<1e-10}return i}var re=ei;function dr(t){Gl||(Gl=new Or(100)),t=t||Pt;var e=Gl.get(t);return e||(e={font:t,strWidthCache:new Or(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:ht.measureText("\u56FD",t).width,asciiCharWidth:ht.measureText("a",t).width},Gl.put(t,e)),e}var Gl;function gA(t){if(!(Tp>=qg)){t=t||Pt;for(var e=[],r=+new Date,i=0;i<=127;i++)e[i]=ht.measureText(String.fromCharCode(i),t).width;var n=+new Date-r;return n>16?Tp=qg:n>2&&Tp++,e}}var Tp=0,qg=5;function Cp(t,e){return t.asciiWidthMapTried||(t.asciiWidthMap=gA(t.font),t.asciiWidthMapTried=!0),0<=e&&e<=127?t.asciiWidthMap!=null?t.asciiWidthMap[e]:t.asciiCharWidth:t.stWideCharWidth}function mr(t,e){var r=t.strWidthCache,i=r.get(e);return i==null&&(i=ht.measureText(e,t.font).width,r.put(e,i)),i}function Kg(t,e,r,i){var n=mr(dr(e),t),a=yn(e),o=Ai(0,n,r),s=ti(0,a,i),l=new re(o,s,n,a);return l}function Hl(t,e,r,i){var n=((t||"")+"").split(`
1
+ import{D as bg}from"./chunk-6BFFJEGA.js";import{a as RE}from"./chunk-ISQU3ATQ.js";var lp=function(t,e){return lp=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(r[n]=i[n])},lp(t,e)};function L(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");lp(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var Il=12,up="sans-serif",Pt=Il+"px "+up,kE=20,BE=100,UE="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function zE(t){var e={};if(typeof JSON>"u")return e;for(var r=0;r<t.length;r++){var i=String.fromCharCode(r+32),n=(t.charCodeAt(r)-kE)/BE;e[i]=n}return e}var FE=zE(UE),ht={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var t,e;return function(r,i){if(!t){var n=ht.createCanvas();t=n&&n.getContext("2d")}if(t)return e!==i&&(e=t.font=i||Pt),t.measureText(r);r=r||"",i=i||Pt;var a=/((?:\d+)?\.?\d*)px/.exec(i),o=a&&+a[1]||Il,s=0;if(i.indexOf("mono")>=0)s=o*r.length;else for(var l=0;l<r.length;l++){var u=FE[r[l]];s+=u==null?o:u*o}return{width:s}}})(),loadImage:function(t,e,r){var i=new Image;return i.onload=e,i.onerror=r,i.src=t,i},getTime:function(){return Date.now?Date.now():+new Date}};var wg=Ht(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),Eg=Ht(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),Xo=Object.prototype.toString,Pl=Array.prototype,VE=Pl.forEach,GE=Pl.filter,pp=Pl.slice,HE=Pl.map,Tg=function(){}.constructor,Ll=Tg?Tg.prototype:null,hp="__proto__",fp=2311,YE=Math.pow(2,53)-1;function Nl(){return fp>=YE&&(fp=0),fp++}function Rl(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];typeof console<"u"&&console.error.apply(console,t)}function ee(t){if(t==null||typeof t!="object")return t;var e=t,r=Xo.call(t);if(r==="[object Array]"){if(!Wo(t)){e=[];for(var i=0,n=t.length;i<n;i++)e[i]=ee(t[i])}}else if(Eg[r]){if(!Wo(t)){var a=t.constructor;if(a.from)e=a.from(t);else{e=new a(t.length);for(var i=0,n=t.length;i<n;i++)e[i]=t[i]}}}else if(!wg[r]&&!Wo(t)&&!cp(t)){e={};for(var o in t)t.hasOwnProperty(o)&&o!==hp&&(e[o]=ee(t[o]))}return e}function me(t,e,r){if(!Y(e)||!Y(t))return r?ee(e):t;for(var i in e)if(e.hasOwnProperty(i)&&i!==hp){var n=t[i],a=e[i];Y(a)&&Y(n)&&!B(a)&&!B(n)&&!cp(a)&&!cp(n)&&!Cg(a)&&!Cg(n)&&!Wo(a)&&!Wo(n)?me(n,a,r):(r||!(i in t))&&(t[i]=ee(e[i]))}return t}function N(t,e){if(Object.assign)Object.assign(t,e);else for(var r in e)e.hasOwnProperty(r)&&r!==hp&&(t[r]=e[r]);return t}function Ag(t,e,r){t=t||{};for(var i=0;i<r.length;i++){var n=r[i];t[n]=e[n]}return t}function ne(t,e,r){for(var i=J(e),n=0,a=i.length;n<a;n++){var o=i[n];(r?e[o]!=null:t[o]==null)&&(t[o]=e[o])}return t}var ck=ht.createCanvas;function ue(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var r=0,i=t.length;r<i;r++)if(t[r]===e)return r}return-1}function Dg(t,e){var r=t.prototype;function i(){}i.prototype=e.prototype,t.prototype=new i;for(var n in r)r.hasOwnProperty(n)&&(t.prototype[n]=r[n]);t.prototype.constructor=t,t.superClass=e}function xt(t,e,r){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(e),n=0;n<i.length;n++){var a=i[n];a!=="constructor"&&(r?e[a]!=null:t[a]==null)&&(t[a]=e[a])}else ne(t,e,r)}function Ke(t){return!t||typeof t=="string"?!1:typeof t.length=="number"}function C(t,e,r){if(t&&e)if(t.forEach&&t.forEach===VE)t.forEach(e,r);else if(t.length===+t.length)for(var i=0,n=t.length;i<n;i++)e.call(r,t[i],i,t);else for(var a in t)t.hasOwnProperty(a)&&e.call(r,t[a],a,t)}function U(t,e,r){if(!t)return[];if(!e)return kl(t);if(t.map&&t.map===HE)return t.map(e,r);for(var i=[],n=0,a=t.length;n<a;n++)i.push(e.call(r,t[n],n,t));return i}function Ht(t,e,r,i){if(t&&e){for(var n=0,a=t.length;n<a;n++)r=e.call(i,r,t[n],n,t);return r}}function Ie(t,e,r){if(!t)return[];if(!e)return kl(t);if(t.filter&&t.filter===GE)return t.filter(e,r);for(var i=[],n=0,a=t.length;n<a;n++)e.call(r,t[n],n,t)&&i.push(t[n]);return i}function Mg(t,e,r){if(t&&e){for(var i=0,n=t.length;i<n;i++)if(e.call(r,t[i],i,t))return t[i]}}function J(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var r in t)t.hasOwnProperty(r)&&e.push(r);return e}function WE(t,e){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return function(){return t.apply(e,r.concat(pp.call(arguments)))}}var ye=Ll&&j(Ll.bind)?Ll.call.bind(Ll.bind):WE;function Te(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return function(){return t.apply(this,e.concat(pp.call(arguments)))}}function B(t){return Array.isArray?Array.isArray(t):Xo.call(t)==="[object Array]"}function j(t){return typeof t=="function"}function V(t){return typeof t=="string"}function vp(t){return Xo.call(t)==="[object String]"}function oe(t){return typeof t=="number"}function Y(t){var e=typeof t;return e==="function"||!!t&&e==="object"}function Cg(t){return!!wg[Xo.call(t)]}function Fe(t){return!!Eg[Xo.call(t)]}function cp(t){return typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.ownerDocument=="object"}function wa(t){return t.colorStops!=null}function xi(t){return t!==t}function Ea(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0,i=t.length;r<i;r++)if(t[r]!=null)return t[r]}function G(t,e){return t??e}function Yt(t,e,r){return t??e??r}function kl(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return pp.apply(t,e)}function Aa(t){if(typeof t=="number")return[t,t,t,t];var e=t.length;return e===2?[t[0],t[1],t[0],t[1]]:e===3?[t[0],t[1],t[2],t[1]]:t}function Ve(t,e){if(!t)throw new Error(e)}function Nt(t){return t==null?null:typeof t.trim=="function"?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Og="__ec_primitive__";function fn(t){t[Og]=!0}function Wo(t){return t[Og]}var XE=(function(){function t(){this.data={}}return t.prototype.delete=function(e){var r=this.has(e);return r&&delete this.data[e],r},t.prototype.has=function(e){return this.data.hasOwnProperty(e)},t.prototype.get=function(e){return this.data[e]},t.prototype.set=function(e,r){return this.data[e]=r,this},t.prototype.keys=function(){return J(this.data)},t.prototype.forEach=function(e){var r=this.data;for(var i in r)r.hasOwnProperty(i)&&e(r[i],i)},t})(),Ig=typeof Map=="function";function qE(){return Ig?new Map:new XE}var KE=(function(){function t(e){var r=B(e);this.data=qE();var i=this;e instanceof t?e.each(n):e&&C(e,n);function n(a,o){r?i.set(a,o):i.set(o,a)}}return t.prototype.hasKey=function(e){return this.data.has(e)},t.prototype.get=function(e){return this.data.get(e)},t.prototype.set=function(e,r){return this.data.set(e,r),r},t.prototype.each=function(e,r){this.data.forEach(function(i,n){e.call(r,i,n)})},t.prototype.keys=function(){var e=this.data.keys();return Ig?Array.from(e):e},t.prototype.removeKey=function(e){this.data.delete(e)},t})();function X(t){return new KE(t)}function Lg(t,e){for(var r=new t.constructor(t.length+e.length),i=0;i<t.length;i++)r[i]=t[i];for(var n=t.length,i=0;i<e.length;i++)r[i+n]=e[i];return r}function Si(t,e){var r;if(Object.create)r=Object.create(t);else{var i=function(){};i.prototype=t,r=new i}return e&&N(r,e),r}function Me(t,e){return t.hasOwnProperty(e)}function Ge(){}var Da=180/Math.PI,pk=Number.EPSILON||Math.pow(2,-52);var ZE=(function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t})(),jE=(function(){function t(){this.browser=new ZE,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return t})(),bi=new jE;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(bi.wxa=!0,bi.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?bi.worker=!0:!bi.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(bi.node=!0,bi.svgSupported=!0):QE(navigator.userAgent,bi);function QE(t,e){var r=e.browser,i=t.match(/Firefox\/([\d.]+)/),n=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),a=t.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(t);i&&(r.firefox=!0,r.version=i[1]),n&&(r.ie=!0,r.version=n[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),o&&(r.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,e.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11);var s=e.domSupported=typeof document<"u";if(s){var l=document.documentElement.style;e.transform3dSupported=(r.ie&&"transition"in l||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),e.transformSupported=e.transform3dSupported||r.ie&&+r.version>=9}}var _e=bi;var $E=".",cn="___EC__COMPONENT__CONTAINER___",Pg="___EC__EXTENDED_CLASS___";function Rt(t){var e={main:"",sub:""};if(t){var r=t.split($E);e.main=r[0]||"",e.sub=r[1]||""}return e}function JE(t){Ve(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function Ng(t){return!!(t&&t[Pg])}function Ma(t,e){t.$constructor=t,t.extend=function(r){var i=this,n;return eA(i)?n=(function(a){L(o,a);function o(){return a.apply(this,arguments)||this}return o})(i):(n=function(){(r.$constructor||i).apply(this,arguments)},Dg(n,this)),N(n.prototype,r),n[Pg]=!0,n.extend=this.extend,n.superCall=rA,n.superApply=iA,n.superClass=i,n}}function eA(t){return j(t)&&/^class\s/.test(Function.prototype.toString.call(t))}function Bl(t,e){t.extend=e.extend}var tA=Math.round(Math.random()*10);function Rg(t){var e=["__\0is_clz",tA++].join("_");t.prototype[e]=!0,t.isInstance=function(r){return!!(r&&r[e])}}function rA(t,e){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return this.superClass.prototype[e].apply(t,r)}function iA(t,e,r){return this.superClass.prototype[e].apply(t,r)}function Ti(t){var e={};t.registerClass=function(i){var n=i.type||i.prototype.type;if(n){JE(n),i.prototype.type=n;var a=Rt(n);if(!a.sub)e[a.main]=i;else if(a.sub!==cn){var o=r(a);o[a.sub]=i}}return i},t.getClass=function(i,n,a){var o=e[i];if(o&&o[cn]&&(o=n?o[n]:null),a&&!o)throw new Error(n?"Component "+i+"."+(n||"")+" is used but not imported.":i+".type should be specified.");return o},t.getClassesByMainType=function(i){var n=Rt(i),a=[],o=e[n.main];return o&&o[cn]?C(o,function(s,l){l!==cn&&a.push(s)}):a.push(o),a},t.hasClass=function(i){var n=Rt(i);return!!e[n.main]},t.getAllClassMainTypes=function(){var i=[];return C(e,function(n,a){i.push(a)}),i},t.hasSubTypes=function(i){var n=Rt(i),a=e[n.main];return a&&a[cn]};function r(i){var n=e[i.main];return(!n||!n[cn])&&(n=e[i.main]={},n[cn]=!0),n}}function Mr(t,e){for(var r=0;r<t.length;r++)t[r][1]||(t[r][1]=t[r][0]);return e=e||!1,function(i,n,a){for(var o={},s=0;s<t.length;s++){var l=t[s][1];if(!(n&&ue(n,l)>=0||a&&ue(a,l)<0)){var u=i.getShallow(l,e);u!=null&&(o[t[s][0]]=u)}}return o}}var nA=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],aA=Mr(nA),kg=(function(){function t(){}return t.prototype.getAreaStyle=function(e,r){return aA(this,e,r)},t})();var Bg=(function(){function t(e){this.value=e}return t})();var oA=(function(){function t(){this._len=0}return t.prototype.insert=function(e){var r=new Bg(e);return this.insertEntry(r),r},t.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},t.prototype.remove=function(e){var r=e.prev,i=e.next;r?r.next=i:this.head=i,i?i.prev=r:this.tail=r,e.next=e.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t})();var sA=(function(){function t(e){this._list=new oA,this._maxSize=10,this._map={},this._maxSize=e}return t.prototype.put=function(e,r){var i=this._list,n=this._map,a=null;if(n[e]==null){var o=i.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=i.head;i.remove(l),delete n[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new Bg(r),s.key=e,i.insertEntry(s),n[e]=s}return a},t.prototype.get=function(e){var r=this._map[e],i=this._list;if(r!=null)return r!==i.tail&&(i.remove(r),i.insertEntry(r)),r.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t})(),Or=sA;var mp=new Or(50);function zg(t){if(typeof t=="string"){var e=mp.get(t);return e&&e.image}else return t}function qo(t,e,r,i,n){if(t)if(typeof t=="string"){if(e&&e.__zrImageSrc===t||!r)return e;var a=mp.get(t),o={hostEl:r,cb:i,cbPayload:n};return a?(e=a.image,!Oa(e)&&a.pending.push(o)):(e=ht.loadImage(t,Ug,Ug),e.__zrImageSrc=t,mp.put(t,e.__cachedImgObj={image:e,pending:[o]})),e}else return t;else return e}function Ug(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var r=t.pending[e],i=r.cb;i&&i(this,r.cbPayload),r.hostEl.dirty()}t.pending.length=0}function Oa(t){return t&&t.width&&t.height}function St(){return[1,0,0,1,0,0]}function Qr(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function Ko(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function Ci(t,e,r){var i=e[0]*r[0]+e[2]*r[1],n=e[1]*r[0]+e[3]*r[1],a=e[0]*r[2]+e[2]*r[3],o=e[1]*r[2]+e[3]*r[3],s=e[0]*r[4]+e[2]*r[5]+e[4],l=e[1]*r[4]+e[3]*r[5]+e[5];return t[0]=i,t[1]=n,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t}function Zo(t,e,r){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+r[0],t[5]=e[5]+r[1],t}function Ia(t,e,r,i){i===void 0&&(i=[0,0]);var n=e[0],a=e[2],o=e[4],s=e[1],l=e[3],u=e[5],f=Math.sin(r),c=Math.cos(r);return t[0]=n*c+s*f,t[1]=-n*f+s*c,t[2]=a*c+l*f,t[3]=-a*f+c*l,t[4]=c*(o-i[0])+f*(u-i[1])+i[0],t[5]=c*(u-i[1])-f*(o-i[0])+i[1],t}function Fg(t,e,r){var i=r[0],n=r[1];return t[0]=e[0]*i,t[1]=e[1]*n,t[2]=e[2]*i,t[3]=e[3]*n,t[4]=e[4]*i,t[5]=e[5]*n,t}function Ir(t,e){var r=e[0],i=e[2],n=e[4],a=e[1],o=e[3],s=e[5],l=r*o-a*i;return l?(l=1/l,t[0]=o*l,t[1]=-a*l,t[2]=-i*l,t[3]=r*l,t[4]=(i*s-o*n)*l,t[5]=(a*n-r*s)*l,t):null}function wi(t,e){return t==null&&(t=0),e==null&&(e=0),[t,e]}function Vg(t){return[t[0],t[1]]}function Ul(t,e,r){return t[0]=e,t[1]=r,t}function gp(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t}function Gg(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t}function uA(t){return Math.sqrt(fA(t))}function fA(t){return t[0]*t[0]+t[1]*t[1]}function zl(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t}function Hg(t,e){var r=uA(e);return r===0?(t[0]=0,t[1]=0):(t[0]=e[0]/r,t[1]=e[1]/r),t}function Fl(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var Qo=Fl;function cA(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var pn=cA;function Vl(t,e,r,i){return t[0]=e[0]+i*(r[0]-e[0]),t[1]=e[1]+i*(r[1]-e[1]),t}function ot(t,e,r){var i=e[0],n=e[1];return t[0]=r[0]*i+r[2]*n+r[4],t[1]=r[1]*i+r[3]*n+r[5],t}function $r(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t}function Jr(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t}var pA=(function(){function t(e,r){this.x=e||0,this.y=r||0}return t.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(e,r){return this.x=e,this.y=r,this},t.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},t.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},t.prototype.scale=function(e){this.x*=e,this.y*=e},t.prototype.scaleAndAdd=function(e,r){this.x+=e.x*r,this.y+=e.y*r},t.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},t.prototype.dot=function(e){return this.x*e.x+this.y*e.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},t.prototype.distance=function(e){var r=this.x-e.x,i=this.y-e.y;return Math.sqrt(r*r+i*i)},t.prototype.distanceSquare=function(e){var r=this.x-e.x,i=this.y-e.y;return r*r+i*i},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(e){if(e){var r=this.x,i=this.y;return this.x=e[0]*r+e[2]*i+e[4],this.y=e[1]*r+e[3]*i+e[5],this}},t.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},t.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},t.set=function(e,r,i){e.x=r,e.y=i},t.copy=function(e,r){e.x=r.x,e.y=r.y},t.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},t.lenSquare=function(e){return e.x*e.x+e.y*e.y},t.dot=function(e,r){return e.x*r.x+e.y*r.y},t.add=function(e,r,i){e.x=r.x+i.x,e.y=r.y+i.y},t.sub=function(e,r,i){e.x=r.x-i.x,e.y=r.y-i.y},t.scale=function(e,r,i){e.x=r.x*i,e.y=r.y*i},t.scaleAndAdd=function(e,r,i,n){e.x=r.x+i.x*n,e.y=r.y+i.y*n},t.lerp=function(e,r,i,n){var a=1-n;e.x=a*r.x+n*i.x,e.y=a*r.y+n*i.y},t})(),se=pA;var gn=Math.min,La=Math.max,xp=Math.abs,Yg=["x","y"],hA=["width","height"],hn=new se,vn=new se,dn=new se,mn=new se,Wt=bp(),$o=Wt.minTv,Sp=Wt.maxTv,Jo=[0,0],ei=(function(){function t(e,r,i,n){yp(this,e,r,i,n)}return t.set=function(e,r,i,n,a){return n<0&&(r=r+n,n=-n),a<0&&(i=i+a,a=-a),e.x=r,e.y=i,e.width=n,e.height=a,e},t.prototype.union=function(e){var r=gn(e.x,this.x),i=gn(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=La(e.x+e.width,this.x+this.width)-r:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=La(e.y+e.height,this.y+this.height)-i:this.height=e.height,this.x=r,this.y=i},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(e){return vA(St(),this,e)},t.prototype.intersect=function(e,r,i){return t.intersect(this,e,r,i)},t.intersect=function(e,r,i,n){i&&se.set(i,0,0);var a=n&&n.outIntersectRect||null,o=n&&n.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!e||!r)return!1;e instanceof t||(e=yp(dA,e.x,e.y,e.width,e.height)),r instanceof t||(r=yp(mA,r.x,r.y,r.width,r.height));var s=!!i;Wt.reset(n,s);var l=Wt.touchThreshold,u=e.x+l,f=e.x+e.width-l,c=e.y+l,p=e.y+e.height-l,h=r.x+l,v=r.x+r.width-l,d=r.y+l,m=r.y+r.height-l;if(u>f||c>p||h>v||d>m)return!1;var g=!(f<h||v<u||p<d||m<c);return(s||a)&&(Jo[0]=1/0,Jo[1]=0,Xg(u,f,h,v,0,s,a,o),Xg(c,p,d,m,1,s,a,o),s&&se.copy(i,g?Wt.useDir?Wt.dirMinTv:$o:Sp)),g},t.contain=function(e,r,i){return r>=e.x&&r<=e.x+e.width&&i>=e.y&&i<=e.y+e.height},t.prototype.contain=function(e,r){return t.contain(this,e,r)},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){Wg(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return this.width===0||this.height===0},t.create=function(e){return new t(e?e.x:0,e?e.y:0,e?e.width:0,e?e.height:0)},t.copy=function(e,r){return e.x=r.x,e.y=r.y,e.width=r.width,e.height=r.height,e},t.applyTransform=function(e,r,i){if(!i){e!==r&&Wg(e,r);return}if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var n=i[0],a=i[3],o=i[4],s=i[5];e.x=r.x*n+o,e.y=r.y*a+s,e.width=r.width*n,e.height=r.height*a,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}hn.x=dn.x=r.x,hn.y=mn.y=r.y,vn.x=mn.x=r.x+r.width,vn.y=dn.y=r.y+r.height,hn.transform(i),mn.transform(i),vn.transform(i),dn.transform(i),e.x=gn(hn.x,vn.x,dn.x,mn.x),e.y=gn(hn.y,vn.y,dn.y,mn.y);var l=La(hn.x,vn.x,dn.x,mn.x),u=La(hn.y,vn.y,dn.y,mn.y);e.width=l-e.x,e.height=u-e.y},t.calculateTransform=function(e,r,i){var n=i.width/r.width,a=i.height/r.height;return e=Qr(e||[]),Zo(e,e,Ul(_p,-r.x,-r.y)),Fg(e,e,Ul(_p,n,a)),Zo(e,e,Ul(_p,i.x,i.y)),e},t})(),Tk=ei.create,yp=ei.set,Wg=ei.copy,vA=ei.calculateTransform,Ck=ei.applyTransform,wk=ei.contain,dA=new ei(0,0,0,0),mA=new ei(0,0,0,0),_p=[];function Xg(t,e,r,i,n,a,o,s){var l=xp(e-r),u=xp(i-t),f=gn(l,u),c=Yg[n],p=Yg[1-n],h=hA[n];e<r||i<t?l<u?(a&&(Sp[c]=-l),s&&(o[c]=e,o[h]=0)):(a&&(Sp[c]=u),s&&(o[c]=t,o[h]=0)):(o&&(o[c]=La(t,r),o[h]=gn(e,i)-o[c]),a&&(f<Jo[0]||Wt.useDir)&&(Jo[0]=gn(f,Jo[0]),(l<u||!Wt.bidirectional)&&($o[c]=l,$o[p]=0,Wt.useDir&&Wt.calcDirMTV()),(l>=u||!Wt.bidirectional)&&($o[c]=-u,$o[p]=0,Wt.useDir&&Wt.calcDirMTV())))}function bp(){var t=0,e=new se,r=new se,i={minTv:new se,maxTv:new se,useDir:!1,dirMinTv:new se,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(a,o){i.touchThreshold=0,a&&a.touchThreshold!=null&&(i.touchThreshold=La(0,a.touchThreshold)),i.negativeSize=!1,o&&(i.minTv.set(1/0,1/0),i.maxTv.set(0,0),i.useDir=!1,a&&a.direction!=null&&(i.useDir=!0,i.dirMinTv.copy(i.minTv),r.copy(i.minTv),t=a.direction,i.bidirectional=a.bidirectional==null||!!a.bidirectional,i.bidirectional||e.set(Math.cos(t),Math.sin(t))))},calcDirMTV:function(){var a=i.minTv,o=i.dirMinTv,s=a.y*a.y+a.x*a.x,l=Math.sin(t),u=Math.cos(t),f=l*a.y+u*a.x;if(n(f)){n(a.x)&&n(a.y)&&o.set(0,0);return}if(r.x=s*u/f,r.y=s*l/f,n(r.x)&&n(r.y)){o.set(0,0);return}(i.bidirectional||e.dot(r)>0)&&r.len()<o.len()&&o.copy(r)}};function n(a){return xp(a)<1e-10}return i}var re=ei;function dr(t){Gl||(Gl=new Or(100)),t=t||Pt;var e=Gl.get(t);return e||(e={font:t,strWidthCache:new Or(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:ht.measureText("\u56FD",t).width,asciiCharWidth:ht.measureText("a",t).width},Gl.put(t,e)),e}var Gl;function gA(t){if(!(Tp>=qg)){t=t||Pt;for(var e=[],r=+new Date,i=0;i<=127;i++)e[i]=ht.measureText(String.fromCharCode(i),t).width;var n=+new Date-r;return n>16?Tp=qg:n>2&&Tp++,e}}var Tp=0,qg=5;function Cp(t,e){return t.asciiWidthMapTried||(t.asciiWidthMap=gA(t.font),t.asciiWidthMapTried=!0),0<=e&&e<=127?t.asciiWidthMap!=null?t.asciiWidthMap[e]:t.asciiCharWidth:t.stWideCharWidth}function mr(t,e){var r=t.strWidthCache,i=r.get(e);return i==null&&(i=ht.measureText(e,t.font).width,r.put(e,i)),i}function Kg(t,e,r,i){var n=mr(dr(e),t),a=yn(e),o=Ai(0,n,r),s=ti(0,a,i),l=new re(o,s,n,a);return l}function Hl(t,e,r,i){var n=((t||"")+"").split(`
2
2
  `),a=n.length;if(a===1)return Kg(n[0],e,r,i);for(var o=new re(0,0,0,0),s=0;s<n.length;s++){var l=Kg(n[s],e,r,i);s===0?o.copy(l):o.union(l)}return o}function Ai(t,e,r,i){return r==="right"?i?t+=e:t-=e:r==="center"&&(i?t+=e/2:t-=e/2),t}function ti(t,e,r,i){return r==="middle"?i?t+=e/2:t-=e/2:r==="bottom"&&(i?t+=e:t-=e),t}function yn(t){return dr(t).stWideCharWidth}function vr(t,e){return typeof t=="string"?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function _n(t,e,r){var i=e.position||"inside",n=e.distance!=null?e.distance:5,a=r.height,o=r.width,s=a/2,l=r.x,u=r.y,f="left",c="top";if(i instanceof Array)l+=vr(i[0],r.width),u+=vr(i[1],r.height),f=null,c=null;else switch(i){case"left":l-=n,u+=s,f="right",c="middle";break;case"right":l+=n+o,u+=s,c="middle";break;case"top":l+=o/2,u-=n,f="center",c="bottom";break;case"bottom":l+=o/2,u+=a+n,f="center";break;case"inside":l+=o/2,u+=s,f="center",c="middle";break;case"insideLeft":l+=n,u+=s,c="middle";break;case"insideRight":l+=o-n,u+=s,f="right",c="middle";break;case"insideTop":l+=o/2,u+=n,f="center";break;case"insideBottom":l+=o/2,u+=a-n,f="center",c="bottom";break;case"insideTopLeft":l+=n,u+=n;break;case"insideTopRight":l+=o-n,u+=n,f="right";break;case"insideBottomLeft":l+=n,u+=a-n,c="bottom";break;case"insideBottomRight":l+=o-n,u+=a-n,f="right",c="bottom";break}return t=t||{},t.x=l,t.y=u,t.align=f,t.verticalAlign=c,t}var wp=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function yA(t,e,r,i,n,a){if(!r){t.text="",t.isTruncated=!1;return}var o=(e+"").split(`
3
3
  `);a=Jg(r,i,n,a);for(var s=!1,l={},u=0,f=o.length;u<f;u++)ey(l,o[u],a),o[u]=l.textLine,s=s||l.isTruncated;t.text=o.join(`
4
4
  `),t.isTruncated=s}function Jg(t,e,r,i){i=i||{};var n=N({},i);r=G(r,"..."),n.maxIterations=G(i.maxIterations,2);var a=n.minChar=G(i.minChar,0),o=n.fontMeasureInfo=dr(e),s=o.asciiCharWidth;n.placeholder=G(i.placeholder,"");for(var l=t=Math.max(0,t-1),u=0;u<a&&l>=s;u++)l-=s;var f=mr(o,r);return f>l&&(r="",f=0),l=t-f,n.ellipsis=r,n.ellipsisWidth=f,n.contentWidth=l,n.containerWidth=t,n}function ey(t,e,r){var i=r.containerWidth,n=r.contentWidth,a=r.fontMeasureInfo;if(!i){t.textLine="",t.isTruncated=!1;return}var o=mr(a,e);if(o<=i){t.textLine=e,t.isTruncated=!1;return}for(var s=0;;s++){if(o<=n||s>=r.maxIterations){e+=r.ellipsis;break}var l=s===0?_A(e,n,a):o>0?Math.floor(e.length*n/o):0;e=e.substr(0,l),o=mr(a,e)}e===""&&(e=r.placeholder),t.textLine=e,t.isTruncated=!0}function _A(t,e,r){for(var i=0,n=0,a=t.length;n<a&&i<e;n++)i+=Cp(r,t.charCodeAt(n));return n}function ty(t,e,r,i){var n=Dp(t),a=e.overflow,o=e.padding,s=o?o[1]+o[3]:0,l=o?o[0]+o[2]:0,u=e.font,f=a==="truncate",c=yn(u),p=G(e.lineHeight,c),h=e.lineOverflow==="truncate",v=!1,d=e.width;d==null&&r!=null&&(d=r-s);var m=e.height;m==null&&i!=null&&(m=i-l);var g;d!=null&&(a==="break"||a==="breakAll")?g=n?iy(n,e.font,d,a==="breakAll",0).lines:[]:g=n?n.split(`
@@ -10,4 +10,4 @@ import{x as bg}from"./chunk-YW2TRY4C.js";import{a as RE}from"./chunk-ISQU3ATQ.js
10
10
  `||n==="")){var a=t.isSelected(n);Me(r,n)?r[n]=r[n]&&a:r[n]=a}}),r}function lE(t){t.registerAction("legendToggleSelect","legendselectchanged",Te(bl,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",Te(bl,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",Te(bl,"inverseSelect")),t.registerAction("legendSelect","legendselected",Te(bl,"select")),t.registerAction("legendUnSelect","legendunselected",Te(bl,"unSelect"))}var uE=$a(T2);function T2(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(r){for(var i=0;i<e.length;i++)if(!e[i].isSelected(r.name))return!1;return!0})}function ep(t){t.registerComponentModel(Sl),t.registerComponentView(Jc),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,uE),t.registerSubTypeDefaulter("legend",function(){return"plain"}),lE(t)}var C2=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},e.prototype.init=function(r,i,n){var a=qr(r);t.prototype.init.call(this,r,i,n),fE(this,r,a)},e.prototype.mergeOption=function(r,i){t.prototype.mergeOption.call(this,r,i),fE(this,this.option,r)},e.type="legend.scroll",e.defaultOption=mf(Sl.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:$.color.accent50,pageIconInactiveColor:$.color.accent10,pageIconSize:15,pageTextStyle:{color:$.color.tertiary},animationDurationUpdate:800}),e})(Sl);function fE(t,e,r){var i=t.getOrient(),n=[1,1];n[i.index]=0,jt(e,r,{type:"box",ignoreSize:!!n})}var cE=C2;var pE=Se,Zm=["width","height"],jm=["x","y"],w2=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.newlineDisabled=!0,r._currentIndex=0,r}return e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new pE),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new pE)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(r,i,n,a,o,s,l){var u=this;t.prototype.renderInner.call(this,r,i,n,a,o,s,l);var f=this._controllerGroup,c=i.get("pageIconSize",!0),p=B(c)?c:[c,c];v("pagePrev",0);var h=i.getModel("pageTextStyle");f.add(new Ee({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),v("pageNext",1);function v(d,m){var g=d+"DataIndex",y=Ps(i.get("pageIcons",!0)[i.getOrient().name][m],{onclick:ye(u._pageGo,u,g,i,a)},{x:-p[0]/2,y:-p[1]/2,width:p[0],height:p[1]});y.name=d,f.add(y)}},e.prototype.layoutInner=function(r,i,n,a,o,s){var l=this.getSelectorGroup(),u=r.getOrient().index,f=Zm[u],c=jm[u],p=Zm[1-u],h=jm[1-u];o&&ra("horizontal",l,r.get("selectorItemGap",!0));var v=r.get("selectorButtonGap",!0),d=l.getBoundingRect(),m=[-d.x,-d.y],g=ee(n);o&&(g[f]=n[f]-d[f]-v);var y=this._layoutContentAndController(r,a,g,u,f,p,h,c);if(o){if(s==="end")m[u]+=y[f]+v;else{var _=d[f]+v;m[u]-=_,y[c]-=_}y[f]+=d[f]+v,m[1-u]+=y[h]+y[p]/2-d[p]/2,y[p]=Math.max(y[p],d[p]),y[h]=Math.min(y[h],d[h]+m[1-u]),l.x=m[0],l.y=m[1],l.markRedraw()}return y},e.prototype._layoutContentAndController=function(r,i,n,a,o,s,l,u){var f=this.getContentGroup(),c=this._containerGroup,p=this._controllerGroup;ra(r.get("orient"),f,r.get("itemGap"),a?n.width:null,a?null:n.height),ra("horizontal",p,r.get("pageButtonItemGap",!0));var h=f.getBoundingRect(),v=p.getBoundingRect(),d=this._showController=h[o]>n[o],m=[-h.x,-h.y];i||(m[a]=f[u]);var g=[0,0],y=[-v.x,-v.y],_=G(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(d){var x=r.get("pageButtonPosition",!0);x==="end"?y[a]+=n[o]-v[o]:g[a]+=v[o]+_}y[1-a]+=h[s]/2-v[s]/2,f.setPosition(m),c.setPosition(g),p.setPosition(y);var S={x:0,y:0};if(S[o]=d?n[o]:h[o],S[s]=Math.max(h[s],v[s]),S[l]=Math.min(0,v[l]+y[1-a]),c.__rectSize=n[o],d){var b={x:0,y:0};b[o]=Math.max(n[o]-v[o]-_,0),b[s]=S[s],c.setClipPath(new xe({shape:b})),c.__rectSize=b[o]}else p.eachChild(function(E){E.attr({invisible:!0,silent:!0})});var T=this._getPageInfo(r);return T.pageIndex!=null&&ke(f,{x:T.contentPosition[0],y:T.contentPosition[1]},d?r:null),this._updatePageInfoView(r,T),S},e.prototype._pageGo=function(r,i,n){var a=this._getPageInfo(i)[r];a!=null&&n.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:i.id})},e.prototype._updatePageInfoView=function(r,i){var n=this._controllerGroup;C(["pagePrev","pageNext"],function(f){var c=f+"DataIndex",p=i[c]!=null,h=n.childOfName(f);h&&(h.setStyle("fill",p?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),h.cursor=p?"pointer":"default")});var a=n.childOfName("pageText"),o=r.get("pageFormatter"),s=i.pageIndex,l=s!=null?s+1:0,u=i.pageCount;a&&o&&a.setStyle("text",V(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(r){var i=r.get("scrollDataIndex",!0),n=this.getContentGroup(),a=this._containerGroup.__rectSize,o=r.getOrient().index,s=Zm[o],l=jm[o],u=this._findTargetItemIndex(i),f=n.children(),c=f[u],p=f.length,h=p?1:0,v={contentPosition:[n.x,n.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return v;var d=x(c);v.contentPosition[o]=-d.s;for(var m=u+1,g=d,y=d,_=null;m<=p;++m)_=x(f[m]),(!_&&y.e>g.s+a||_&&!S(_,g.s))&&(y.i>g.i?g=y:g=_,g&&(v.pageNextDataIndex==null&&(v.pageNextDataIndex=g.i),++v.pageCount)),y=_;for(var m=u-1,g=d,y=d,_=null;m>=-1;--m)_=x(f[m]),(!_||!S(y,_.s))&&g.i<y.i&&(y=g,v.pagePrevDataIndex==null&&(v.pagePrevDataIndex=g.i),++v.pageCount,++v.pageIndex),g=_;return v;function x(b){if(b){var T=b.getBoundingRect(),E=T[l]+b[l];return{s:E,e:E+T[s],i:b.__legendDataIndex}}}function S(b,T){return b.e>=T&&b.s<=T+a}},e.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var i,n=this.getContentGroup(),a;return n.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===r&&(i=s)}),i??a},e.type="legend.scroll",e})(Jc),hE=w2;function Qm(t){t.registerAction("legendScroll","legendscroll",function(e,r){var i=e.scrollDataIndex;i!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:e},function(n){n.setScrollDataIndex(i)})})}function vE(t){Gt(ep),t.registerComponentModel(cE),t.registerComponentView(hE),Qm(t)}function $m(t){Gt(ep),Gt(vE)}var E2=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="dataset",r}return e.prototype.init=function(r,i,n){t.prototype.init.call(this,r,i,n),this._sourceManager=new Rf(this),qv(this)},e.prototype.mergeOption=function(r,i){t.prototype.mergeOption.call(this,r,i),qv(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:wt},e})(be);var A2=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="dataset",r}return e.type="dataset",e})(pt);function Jm(t){t.registerComponentModel(E2),t.registerComponentView(A2)}var eg=Math.sin,tg=Math.cos,dE=Math.PI,Sa=Math.PI*2,D2=180/dE,M2=(function(){function t(){}return t.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},t.prototype.moveTo=function(e,r){this._add("M",e,r)},t.prototype.lineTo=function(e,r){this._add("L",e,r)},t.prototype.bezierCurveTo=function(e,r,i,n,a,o){this._add("C",e,r,i,n,a,o)},t.prototype.quadraticCurveTo=function(e,r,i,n){this._add("Q",e,r,i,n)},t.prototype.arc=function(e,r,i,n,a,o){this.ellipse(e,r,i,i,0,n,a,o)},t.prototype.ellipse=function(e,r,i,n,a,o,s,l){var u=s-o,f=!l,c=Math.abs(u),p=Pr(c-Sa)||(f?u>=Sa:-u>=Sa),h=u>0?u%Sa:u%Sa+Sa,v=!1;p?v=!0:Pr(c)?v=!1:v=h>=dE==!!f;var d=e+i*tg(o),m=r+n*eg(o);this._start&&this._add("M",d,m);var g=Math.round(a*D2);if(p){var y=1/this._p,_=(f?1:-1)*(Sa-y);this._add("A",i,n,g,1,+f,e+i*tg(o+_),r+n*eg(o+_)),y>.01&&this._add("A",i,n,g,0,+f,d,m)}else{var x=e+i*tg(s),S=r+n*eg(s);this._add("A",i,n,g,+v,+f,x,S)}},t.prototype.rect=function(e,r,i,n){this._add("M",e,r),this._add("l",i,0),this._add("l",0,n),this._add("l",-i,0),this._add("Z")},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(e,r,i,n,a,o,s,l,u){for(var f=[],c=this._p,p=1;p<arguments.length;p++){var h=arguments[p];if(isNaN(h)){this._invalid=!0;return}f.push(Math.round(h*c)/c)}this._d.push(e+f.join(" ")),this._start=e==="Z"},t.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},t.prototype.getStr=function(){return this._str},t})(),tp=M2;var Tl="none",O2=Math.round;function I2(t){var e=t.fill;return e!=null&&e!==Tl}function L2(t){var e=t.stroke;return e!=null&&e!==Tl}var rg=["lineCap","miterLimit","lineJoin"],P2=U(rg,function(t){return"stroke-"+t.toLowerCase()});function ig(t,e,r,i){var n=e.opacity==null?1:e.opacity;if(r instanceof dt){t("opacity",n);return}if(I2(e)){var a=Li(e.fill);t("fill",a.color);var o=e.fillOpacity!=null?e.fillOpacity*a.opacity*n:a.opacity*n;(i||o<1)&&t("fill-opacity",o)}else t("fill",Tl);if(L2(e)){var s=Li(e.stroke);t("stroke",s.color);var l=e.strokeNoScale?r.getLineScale():1,u=l?(e.lineWidth||0)/l:0,f=e.strokeOpacity!=null?e.strokeOpacity*s.opacity*n:s.opacity*n,c=e.strokeFirst;if((i||u!==1)&&t("stroke-width",u),(i||c)&&t("paint-order",c?"stroke":"fill"),(i||f<1)&&t("stroke-opacity",f),e.lineDash){var p=gl(r),h=p[0],v=p[1];h&&(v=O2(v||0),t("stroke-dasharray",h.join(",")),(v||i)&&t("stroke-dashoffset",v))}else i&&t("stroke-dasharray",Tl);for(var d=0;d<rg.length;d++){var m=rg[d];if(i||e[m]!==Ya[m]){var g=e[m]||Ya[m];g&&t(P2[d],g)}}}else i&&t("stroke",Tl)}var mE="http://www.w3.org/2000/svg",ng="http://www.w3.org/1999/xlink",gE="http://www.w3.org/2000/xmlns/",yE="http://www.w3.org/XML/1998/namespace",ag="ecmeta_";function rp(t){return document.createElementNS(mE,t)}function Xe(t,e,r,i,n){return{tag:t,attrs:r||{},children:i,text:n,key:e}}function N2(t,e){var r=[];if(e)for(var i in e){var n=e[i],a=i;n!==!1&&(n!==!0&&n!=null&&(a+='="'+n+'"'),r.push(a))}return"<"+t+" "+r.join(" ")+">"}function R2(t){return"</"+t+">"}function Cl(t,e){e=e||{};var r=e.newline?`
11
11
  `:"";function i(n){var a=n.children,o=n.tag,s=n.attrs,l=n.text;return N2(o,s)+(o!=="style"?$n(l):l||"")+(a?""+r+U(a,function(u){return i(u)}).join(r)+r:"")+R2(o)}return i(t)}function _E(t,e,r){r=r||{};var i=r.newline?`
12
12
  `:"",n=" {"+i,a=i+"}",o=U(J(t),function(l){return l+n+U(J(t[l]),function(u){return u+":"+t[l][u]+";"}).join(i)+a}).join(i),s=U(J(e),function(l){return"@keyframes "+l+n+U(J(e[l]),function(u){return u+n+U(J(e[l][u]),function(f){var c=e[l][u][f];return f==="d"&&(c='path("'+c+'")'),f+":"+c+";"}).join(i)+a}).join(i)+a}).join(i);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(i)}function wl(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function og(t,e,r,i){return Xe("svg","root",{width:t,height:e,xmlns:mE,"xmlns:xlink":ng,version:"1.1",baseProfile:"full",viewBox:i?"0 0 "+t+" "+e:!1},r)}var k2=0;function ip(){return k2++}var xE={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},ba="transform-origin";function B2(t,e,r){var i=N({},t.shape);N(i,e),t.buildPath(r,i);var n=new tp;return n.reset(ou(t)),r.rebuildPath(n,1),n.generateStr(),n.getStr()}function U2(t,e){var r=e.originX,i=e.originY;(r||i)&&(t[ba]=r+"px "+i+"px")}var z2={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function bE(t,e){var r=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[r]=t,r}function F2(t,e,r){var i=t.shape.paths,n={},a,o;if(C(i,function(l){var u=wl(r.zrId);u.animation=!0,El(l,{},u,!0);var f=u.cssAnims,c=u.cssNodes,p=J(f),h=p.length;if(h){o=p[h-1];var v=f[o];for(var d in v){var m=v[d];n[d]=n[d]||{d:""},n[d].d+=m.d||""}for(var g in c){var y=c[g].animation;y.indexOf(o)>=0&&(a=y)}}}),!!a){e.d=!1;var s=bE(n,r);return a.replace(o,s)}}function SE(t){return V(t)?xE[t]?"cubic-bezier("+xE[t]+")":za(t)?t:"":""}function El(t,e,r,i){var n=t.animators,a=n.length,o=[];if(t instanceof Gu){var s=F2(t,e,r);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var l={},u=0;u<a;u++){var f=n[u],c=[f.getMaxTime()/1e3+"s"],p=SE(f.getClip().easing),h=f.getDelay();p?c.push(p):c.push("linear"),h&&c.push(h/1e3+"s"),f.getLoop()&&c.push("infinite");var v=c.join(" ");l[v]=l[v]||[v,[]],l[v][1].push(f)}function d(y){var _=y[1],x=_.length,S={},b={},T={},E="animation-timing-function";function w(Ne,ge,we){for(var ae=Ne.getTracks(),he=Ne.getMaxTime(),It=0;It<ae.length;It++){var ze=ae[It];if(ze.needsAnimate()){var cr=ze.keyframes,Lt=ze.propName;if(we&&(Lt=we(Lt)),Lt)for(var pr=0;pr<cr.length;pr++){var Ta=cr[pr],hr=Math.round(Ta.time/he*100)+"%",Ol=SE(Ta.easing),Ca=Ta.rawValue;(V(Ca)||oe(Ca))&&(ge[hr]=ge[hr]||{},ge[hr][Lt]=Ta.rawValue,Ol&&(ge[hr][E]=Ol))}}}}for(var A=0;A<x;A++){var D=_[A],O=D.targetName;O?O==="shape"&&w(D,b):!i&&w(D,S)}for(var M in S){var I={};Di(I,t),N(I,S[M]);var R=su(I),P=S[M][E];T[M]=R?{transform:R}:{},U2(T[M],I),P&&(T[M][E]=P)}var z,k=!0;for(var M in b){T[M]=T[M]||{};var F=!z,P=b[M][E];F&&(z=new st);var H=z.len();z.reset(),T[M].d=B2(t,b[M],z);var q=z.len();if(!F&&H!==q){k=!1;break}P&&(T[M][E]=P)}if(!k)for(var M in T)delete T[M].d;if(!i)for(var A=0;A<x;A++){var D=_[A],O=D.targetName;O==="style"&&w(D,T,function(ae){return z2[ae]})}for(var Z=J(T),Q=!0,K,A=1;A<Z.length;A++){var le=Z[A-1],pe=Z[A];if(T[le][ba]!==T[pe][ba]){Q=!1;break}K=T[le][ba]}if(Q&&K){for(var M in T)T[M][ba]&&delete T[M][ba];e[ba]=K}if(Ie(Z,function(Ne){return J(T[Ne]).length>0}).length){var Ue=bE(T,r);return Ue+" "+y[0]+" both"}}for(var m in l){var s=d(l[m]);s&&o.push(s)}if(o.length){var g=r.zrId+"-cls-"+ip();r.cssNodes["."+g]={animation:o.join(",")},e.class=g}}function CE(t,e,r){if(!t.ignore)if(t.isSilent()){var i={"pointer-events":"none"};TE(i,e,r,!0)}else{var n=t.states.emphasis&&t.states.emphasis.style?t.states.emphasis.style:{},a=n.fill;if(!a){var o=t.style&&t.style.fill,s=t.states.select&&t.states.select.style&&t.states.select.style.fill,l=t.currentStates.indexOf("select")>=0&&s||o;l&&(a=ts(l))}var u=n.lineWidth;if(u){var f=!n.strokeNoScale&&t.transform?t.transform[0]:1;u=u/f}var i={cursor:"pointer"};a&&(i.fill=a),n.stroke&&(i.stroke=n.stroke),u&&(i["stroke-width"]=u),TE(i,e,r,!0)}}function TE(t,e,r,i){var n=JSON.stringify(t),a=r.cssStyleCache[n];a||(a=r.zrId+"-cls-"+ip(),r.cssStyleCache[n]=a,r.cssNodes["."+a+(i?":hover":"")]=t),e.class=e.class?e.class+" "+a:a}var Al=Math.round;function DE(t){return t&&V(t.src)}function ME(t){return t&&j(t.toDataURL)}function sg(t,e,r,i){ig(function(n,a){var o=n==="fill"||n==="stroke";o&&au(a)?cg(e,t,n,i):o&&rs(a)?pg(r,t,n,i):t[n]=a,o&&i.ssr&&a==="none"&&(t["pointer-events"]="visible")},e,r,!1),q2(r,t,i)}function lg(t,e){var r=y1(e);r&&(r.each(function(i,n){i!=null&&(t[(ag+n).toLowerCase()]=i+"")}),e.isSilent()&&(t[ag+"silent"]="true"))}function wE(t){return Pr(t[0]-1)&&Pr(t[1])&&Pr(t[2])&&Pr(t[3]-1)}function V2(t){return Pr(t[4])&&Pr(t[5])}function ug(t,e,r){if(e&&!(V2(e)&&wE(e))){var i=r?10:1e4;t.transform=wE(e)?"translate("+Al(e[4]*i)/i+" "+Al(e[5]*i)/i+")":Ty(e)}}function EE(t,e,r){for(var i=t.points,n=[],a=0;a<i.length;a++)n.push(Al(i[a][0]*r)/r),n.push(Al(i[a][1]*r)/r);e.points=n.join(" ")}function AE(t){return!t.smooth}function G2(t){var e=U(t,function(r){return typeof r=="string"?[r,r]:r});return function(r,i,n){for(var a=0;a<e.length;a++){var o=e[a],s=r[o[0]];s!=null&&(i[o[1]]=Al(s*n)/n)}}}var H2={circle:[G2(["cx","cy","r"])],polyline:[EE,AE],polygon:[EE,AE]};function Y2(t){for(var e=t.animators,r=0;r<e.length;r++)if(e[r].targetName==="shape")return!0;return!1}function OE(t,e){var r=t.style,i=t.shape,n=H2[t.type],a={},o=e.animation,s="path",l=t.style.strokePercent,u=e.compress&&ou(t)||4;if(n&&!e.willUpdate&&!(n[1]&&!n[1](i))&&!(o&&Y2(t))&&!(l<1)){s=t.type;var f=Math.pow(10,u);n[0](i,a,f)}else{var c=!t.path||t.shapeChanged();t.path||t.createPathProxy();var p=t.path;c&&(p.beginPath(),t.buildPath(p,t.shape),t.pathUpdated());var h=p.getVersion(),v=t,d=v.__svgPathBuilder;(v.__svgPathVersion!==h||!d||l!==v.__svgPathStrokePercent)&&(d||(d=v.__svgPathBuilder=new tp),d.reset(u),p.rebuildPath(d,l),d.generateStr(),v.__svgPathVersion=h,v.__svgPathStrokePercent=l),a.d=d.getStr()}return ug(a,t.transform),sg(a,r,t,e),lg(a,t),e.animation&&El(t,a,e),e.emphasis&&CE(t,a,e),Xe(s,t.id+"",a)}function W2(t,e){var r=t.style,i=r.image;if(i&&!V(i)&&(DE(i)?i=i.src:ME(i)&&(i=i.toDataURL())),!!i){var n=r.x||0,a=r.y||0,o=r.width,s=r.height,l={href:i,width:o,height:s};return n&&(l.x=n),a&&(l.y=a),ug(l,t.transform),sg(l,r,t,e),lg(l,t),e.animation&&El(t,l,e),Xe("image",t.id+"",l)}}function X2(t,e){var r=t.style,i=r.text;if(i!=null&&(i+=""),!(!i||isNaN(r.x)||isNaN(r.y))){var n=r.font||Pt,a=r.x||0,o=wy(r.y||0,yn(n),r.textBaseline),s=Cy[r.textAlign]||r.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(ph(r)){var u="",f=r.fontStyle,c=ch(r.fontSize);if(!parseFloat(c))return;var p=r.fontFamily||up,h=r.fontWeight;u+="font-size:"+c+";font-family:"+p+";",f&&f!=="normal"&&(u+="font-style:"+f+";"),h&&h!=="normal"&&(u+="font-weight:"+h+";"),l.style=u}else l.style="font: "+n;return i.match(/\s/)&&(l["xml:space"]="preserve"),a&&(l.x=a),o&&(l.y=o),ug(l,t.transform),sg(l,r,t,e),lg(l,t),e.animation&&El(t,l,e),Xe("text",t.id+"",l,void 0,i)}}function fg(t,e){if(t instanceof te)return OE(t,e);if(t instanceof dt)return W2(t,e);if(t instanceof Nn)return X2(t,e)}function q2(t,e,r){var i=t.style;if(Ey(i)){var n=Ay(t),a=r.shadowCache,o=a[n];if(!o){var s=t.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var f=i.shadowOffsetX||0,c=i.shadowOffsetY||0,p=i.shadowBlur,h=Li(i.shadowColor),v=h.opacity,d=h.color,m=p/2/l,g=p/2/u,y=m+" "+g;o=r.zrId+"-s"+r.shadowIdx++,r.defs[o]=Xe("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[Xe("feDropShadow","",{dx:f/l,dy:c/u,stdDeviation:y,"flood-color":d,"flood-opacity":v})]),a[n]=o}e.filter=is(o)}}function cg(t,e,r,i){var n=t[r],a,o={gradientUnits:n.global?"userSpaceOnUse":"objectBoundingBox"};if(iu(n))a="linearGradient",o.x1=n.x,o.y1=n.y,o.x2=n.x2,o.y2=n.y2;else if(nu(n))a="radialGradient",o.cx=G(n.x,.5),o.cy=G(n.y,.5),o.r=G(n.r,.5);else return;for(var s=n.colorStops,l=[],u=0,f=s.length;u<f;++u){var c=ru(s[u].offset)*100+"%",p=s[u].color,h=Li(p),v=h.color,d=h.opacity,m={offset:c};m["stop-color"]=v,d<1&&(m["stop-opacity"]=d),l.push(Xe("stop",u+"",m))}var g=Xe(a,"",o,l),y=Cl(g),_=i.gradientCache,x=_[y];x||(x=i.zrId+"-g"+i.gradientIdx++,_[y]=x,o.id=x,i.defs[x]=Xe(a,x,o,l)),e[r]=is(x)}function pg(t,e,r,i){var n=t.style[r],a=t.getBoundingRect(),o={},s=n.repeat,l=s==="no-repeat",u=s==="repeat-x",f=s==="repeat-y",c;if(Fp(n)){var p=n.imageWidth,h=n.imageHeight,v=void 0,d=n.image;if(V(d)?v=d:DE(d)?v=d.src:ME(d)&&(v=d.toDataURL()),typeof Image>"u"){var m="Image width/height must been given explictly in svg-ssr renderer.";Ve(p,m),Ve(h,m)}else if(p==null||h==null){var g=function(A,D){if(A){var O=A.elm,M=p||D.width,I=h||D.height;A.tag==="pattern"&&(u?(I=1,M/=a.width):f&&(M=1,I/=a.height)),A.attrs.width=M,A.attrs.height=I,O&&(O.setAttribute("width",M),O.setAttribute("height",I))}},y=qo(v,null,t,function(A){l||g(b,A),g(c,A)});y&&y.width&&y.height&&(p=p||y.width,h=h||y.height)}c=Xe("image","img",{href:v,width:p,height:h}),o.width=p,o.height=h}else n.svgElement&&(c=ee(n.svgElement),o.width=n.svgWidth,o.height=n.svgHeight);if(c){var _,x;l?_=x=1:u?(x=1,_=o.width/a.width):f?(_=1,x=o.height/a.height):o.patternUnits="userSpaceOnUse",_!=null&&!isNaN(_)&&(o.width=_),x!=null&&!isNaN(x)&&(o.height=x);var S=su(n);S&&(o.patternTransform=S);var b=Xe("pattern","",o,[c]),T=Cl(b),E=i.patternCache,w=E[T];w||(w=i.zrId+"-p"+i.patternIdx++,E[T]=w,o.id=w,b=i.defs[w]=Xe("pattern",w,o,[c])),e[r]=is(w)}}function IE(t,e,r){var i=r.clipPathCache,n=r.defs,a=i[t.id];if(!a){a=r.zrId+"-c"+r.clipPathIdx++;var o={id:a};i[t.id]=a,n[a]=Xe("clipPath",a,o,[OE(t,r)])}e["clip-path"]=is(a)}function hg(t){return document.createTextNode(t)}function un(t,e,r){t.insertBefore(e,r)}function vg(t,e){t.removeChild(e)}function dg(t,e){t.appendChild(e)}function mg(t){return t.parentNode}function gg(t){return t.nextSibling}function np(t,e){t.textContent=e}var LE=58,Z2=120,j2=Xe("","");function yg(t){return t===void 0}function jr(t){return t!==void 0}function Q2(t,e,r){for(var i={},n=e;n<=r;++n){var a=t[n].key;a!==void 0&&(i[a]=n)}return i}function Dl(t,e){var r=t.key===e.key,i=t.tag===e.tag;return i&&r}function Ml(t){var e,r=t.children,i=t.tag;if(jr(i)){var n=t.elm=rp(i);if(op(j2,t),B(r))for(e=0;e<r.length;++e){var a=r[e];a!=null&&dg(n,Ml(a))}else jr(t.text)&&!Y(t.text)&&dg(n,hg(t.text))}else t.elm=hg(t.text);return t.elm}function PE(t,e,r,i,n){for(;i<=n;++i){var a=r[i];a!=null&&un(t,Ml(a),e)}}function ap(t,e,r,i){for(;r<=i;++r){var n=e[r];if(n!=null)if(jr(n.tag)){var a=mg(n.elm);vg(a,n.elm)}else vg(t,n.elm)}}function op(t,e){var r,i=e.elm,n=t&&t.attrs||{},a=e.attrs||{};if(n!==a){for(r in a){var o=a[r],s=n[r];s!==o&&(o===!0?i.setAttribute(r,""):o===!1?i.removeAttribute(r):r==="style"?i.style.cssText=o:r.charCodeAt(0)!==Z2?i.setAttribute(r,o):r==="xmlns:xlink"||r==="xmlns"?i.setAttributeNS(gE,r,o):r.charCodeAt(3)===LE?i.setAttributeNS(yE,r,o):r.charCodeAt(5)===LE?i.setAttributeNS(ng,r,o):i.setAttribute(r,o))}for(r in n)r in a||i.removeAttribute(r)}}function $2(t,e,r){for(var i=0,n=0,a=e.length-1,o=e[0],s=e[a],l=r.length-1,u=r[0],f=r[l],c,p,h,v;i<=a&&n<=l;)o==null?o=e[++i]:s==null?s=e[--a]:u==null?u=r[++n]:f==null?f=r[--l]:Dl(o,u)?(Vo(o,u),o=e[++i],u=r[++n]):Dl(s,f)?(Vo(s,f),s=e[--a],f=r[--l]):Dl(o,f)?(Vo(o,f),un(t,o.elm,gg(s.elm)),o=e[++i],f=r[--l]):Dl(s,u)?(Vo(s,u),un(t,s.elm,o.elm),s=e[--a],u=r[++n]):(yg(c)&&(c=Q2(e,i,a)),p=c[u.key],yg(p)?un(t,Ml(u),o.elm):(h=e[p],h.tag!==u.tag?un(t,Ml(u),o.elm):(Vo(h,u),e[p]=void 0,un(t,h.elm,o.elm))),u=r[++n]);(i<=a||n<=l)&&(i>a?(v=r[l+1]==null?null:r[l+1].elm,PE(t,v,r,n,l)):ap(t,e,i,a))}function Vo(t,e){var r=e.elm=t.elm,i=t.children,n=e.children;t!==e&&(op(t,e),yg(e.text)?jr(i)&&jr(n)?i!==n&&$2(r,i,n):jr(n)?(jr(t.text)&&np(r,""),PE(r,null,n,0,n.length-1)):jr(i)?ap(r,i,0,i.length-1):jr(t.text)&&np(r,""):t.text!==e.text&&(jr(i)&&ap(r,i,0,i.length-1),np(r,e.text)))}function _g(t,e){if(Dl(t,e))Vo(t,e);else{var r=t.elm,i=mg(r);Ml(e),i!==null&&(un(i,e.elm,gg(r)),ap(i,[t],0,0))}return e}var J2=0,ek=(function(){function t(e,r,i){if(this.type="svg",this.configLayer=tk("configLayer"),this.storage=r,this._opts=i=N({},i),this.root=e,this._id="zr"+J2++,this._oldVNode=og(i.width,i.height),e&&!i.ssr){var n=this._viewport=document.createElement("div");n.style.cssText="position:relative;overflow:hidden";var a=this._svgDom=this._oldVNode.elm=rp("svg");op(null,this._oldVNode),n.appendChild(a),e.appendChild(n)}this.resize(i.width,i.height)}return t.prototype.getType=function(){return this.type},t.prototype.getViewportRoot=function(){return this._viewport},t.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},t.prototype.getSvgDom=function(){return this._svgDom},t.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",_g(this._oldVNode,e),this._oldVNode=e}},t.prototype.renderOneToVNode=function(e){return fg(e,wl(this._id))},t.prototype.renderToVNode=function(e){e=e||{};var r=this.storage.getDisplayList(!0),i=this._width,n=this._height,a=wl(this._id);a.animation=e.animation,a.willUpdate=e.willUpdate,a.compress=e.compress,a.emphasis=e.emphasis,a.ssr=this._opts.ssr;var o=[],s=this._bgVNode=rk(i,n,this._backgroundColor,a);s&&o.push(s);var l=e.compress?null:this._mainVNode=Xe("g","main",{},[]);this._paintList(r,a,l?l.children:o),l&&o.push(l);var u=U(J(a.defs),function(p){return a.defs[p]});if(u.length&&o.push(Xe("defs","defs",{},u)),e.animation){var f=_E(a.cssNodes,a.cssAnims,{newline:!0});if(f){var c=Xe("style","stl",{},[],f);o.push(c)}}return og(i,n,o,e.useViewBox)},t.prototype.renderToString=function(e){return e=e||{},Cl(this.renderToVNode({animation:G(e.cssAnimation,!0),emphasis:G(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:G(e.useViewBox,!0)}),{newline:!0})},t.prototype.setBackgroundColor=function(e){this._backgroundColor=e},t.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},t.prototype._paintList=function(e,r,i){for(var n=e.length,a=[],o=0,s,l,u=0,f=0;f<n;f++){var c=e[f];if(!c.invisible){var p=c.__clipPaths,h=p&&p.length||0,v=l&&l.length||0,d=void 0;for(d=Math.max(h-1,v-1);d>=0&&!(p&&l&&p[d]===l[d]);d--);for(var m=v-1;m>d;m--)o--,s=a[o-1];for(var g=d+1;g<h;g++){var y={};IE(p[g],y,r);var _=Xe("g","clip-g-"+u++,y,[]);(s?s.children:i).push(_),a[o++]=_,s=_}l=p;var x=fg(c,r);x&&(s?s.children:i).push(x)}}},t.prototype.resize=function(e,r){var i=this._opts,n=this.root,a=this._viewport;if(e!=null&&(i.width=e),r!=null&&(i.height=r),n&&a&&(a.style.display="none",e=nm(n,0,i),r=nm(n,1,i),a.style.display=""),this._width!==e||this._height!==r){if(this._width=e,this._height=r,a){var o=a.style;o.width=e+"px",o.height=r+"px"}if(rs(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",e),s.setAttribute("height",r));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",e),l.setAttribute("height",r))}}},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},t.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},t.prototype.toDataURL=function(e){var r=this.renderToString(),i="data:image/svg+xml;";return e?(r=Dy(r),r&&i+"base64,"+r):i+"charset=UTF-8,"+encodeURIComponent(r)},t})();function tk(t){return function(){}}function rk(t,e,r,i){var n;if(r&&r!=="none")if(n=Xe("rect","bg",{width:t,height:e,x:"0",y:"0"}),au(r))cg({fill:r},n.attrs,"fill",i);else if(rs(r))pg({style:{fill:r},dirty:Ge,getBoundingRect:function(){return{width:t,height:e}}},n.attrs,"fill",i);else{var a=Li(r),o=a.color,s=a.opacity;n.attrs.fill=o,s<1&&(n.attrs["fill-opacity"]=s)}return n}var NE=ek;function xg(t){t.registerPainter("svg",NE)}Gt([wd,nd,Pd,km,Ym,$m,Jm,Wm,xg]);var ik=["bar","line","pie","scatter"],nk=28,ak=1e4,Sg=t=>typeof t=="object"&&t!==null&&!Array.isArray(t),Ho=t=>(Array.isArray(t)?t:[t]).filter(Sg);function ok(t){for(let e of Ho(t.series)){let r=e.type;if(typeof r=="string"&&!ik.includes(r))return r}return null}function Yo(t,e){for(let[r,i]of Object.entries(e)){let n=t[r];n===void 0?t[r]=structuredClone(i):Sg(n)&&Sg(i)&&Yo(n,i)}}function Go(t,e){return getComputedStyle(t).getPropertyValue(e).trim()}function sk(t,e,r){let i=Go(r,"--bang-color-ink"),n=Go(r,"--bang-color-line-strong"),a=Go(r,"--bang-color-line"),o={fontSize:nk,color:i},s=structuredClone(t);Yo(s,{animation:!e.exportMode&&!e.reducedMotion,color:[i,Go(r,"--bang-color-signal-text"),Go(r,"--bang-color-ink-muted"),n],textStyle:{fontFamily:Go(r,"--bang-font-sans"),...o}});for(let l of[...Ho(s.xAxis),...Ho(s.yAxis)])Yo(l,{axisLabel:o,nameTextStyle:o,axisLine:{lineStyle:{color:n}},axisTick:{lineStyle:{color:n}},splitLine:{lineStyle:{color:a}}});for(let l of Ho(s.title))Yo(l,{textStyle:o,subtextStyle:o});for(let l of Ho(s.legend))Yo(l,{textStyle:o});for(let l of Ho(s.series))Yo(l,{label:o});return s}async function s$(t,e){await bg(e,ak);let r=QC(t,null,{renderer:"svg"});return{render(i,n){let a=ok(i);if(a!==null)return Promise.reject(new Error(`chart: unsupported series type: ${a}`));let o=sk(i,n,t);return new Promise(s=>{if(o.animation===!1){r.setOption(o,!0),s();return}let l=()=>{r.off("finished",l),s()};r.on("finished",l),r.setOption(o,!0)})},resize:()=>r.resize(),dispose:()=>r.dispose()}}export{ik as SUPPORTED_SERIES_TYPES,sk as buildOption,s$ as createChart,ok as unsupportedSeriesType};
13
- //# sourceMappingURL=chart-impl-4XQPQZ4J.js.map
13
+ //# sourceMappingURL=chart-impl-CMVBON4X.js.map
@@ -0,0 +1,43 @@
1
+ import{b as ut,d as dt}from"./chunk-ISQU3ATQ.js";var q=globalThis,j=q.ShadowRoot&&(q.ShadyCSS===void 0||q.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Y=Symbol(),ft=new WeakMap,P=class{constructor(t,e,n){if(this._$cssResult$=!0,n!==Y)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(j&&t===void 0){let n=e!==void 0&&e.length===1;n&&(t=ft.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&ft.set(e,t))}return t}toString(){return this.cssText}},pt=r=>new P(typeof r=="string"?r:r+"",void 0,Y),Ft=(r,...t)=>{let e=r.length===1?r[0]:t.reduce((n,s,o)=>n+(i=>{if(i._$cssResult$===!0)return i.cssText;if(typeof i=="number")return i;throw Error("Value passed to 'css' function must be a 'css' function result: "+i+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+r[o+1],r[0]);return new P(e,r,Y)},gt=(r,t)=>{if(j)r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let n=document.createElement("style"),s=q.litNonce;s!==void 0&&n.setAttribute("nonce",s),n.textContent=e.cssText,r.appendChild(n)}},Z=j?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(let n of t.cssRules)e+=n.cssText;return pt(e)})(r):r;var{is:zt,defineProperty:Wt,getOwnPropertyDescriptor:Vt,getOwnPropertyNames:Gt,getOwnPropertySymbols:Xt,getPrototypeOf:Yt}=Object,I=globalThis,mt=I.trustedTypes,Zt=mt?mt.emptyScript:"",Jt=I.reactiveElementPolyfillSupport,R=(r,t)=>r,T={toAttribute(r,t){switch(t){case Boolean:r=r?Zt:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,t){let e=r;switch(t){case Boolean:e=r!==null;break;case Number:e=r===null?null:Number(r);break;case Object:case Array:try{e=JSON.parse(r)}catch{e=null}}return e}},B=(r,t)=>!zt(r,t),bt={attribute:!0,type:String,converter:T,reflect:!1,useDefault:!1,hasChanged:B};Symbol.metadata??=Symbol("metadata"),I.litPropertyMetadata??=new WeakMap;var p=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=bt){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){let n=Symbol(),s=this.getPropertyDescriptor(t,n,e);s!==void 0&&Wt(this.prototype,t,s)}}static getPropertyDescriptor(t,e,n){let{get:s,set:o}=Vt(this.prototype,t)??{get(){return this[e]},set(i){this[e]=i}};return{get:s,set(i){let a=s?.call(this);o?.call(this,i),this.requestUpdate(t,a,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??bt}static _$Ei(){if(this.hasOwnProperty(R("elementProperties")))return;let t=Yt(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(R("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(R("properties"))){let e=this.properties,n=[...Gt(e),...Xt(e)];for(let s of n)this.createProperty(s,e[s])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[n,s]of e)this.elementProperties.set(n,s)}this._$Eh=new Map;for(let[e,n]of this.elementProperties){let s=this._$Eu(e,n);s!==void 0&&this._$Eh.set(s,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let n=new Set(t.flat(1/0).reverse());for(let s of n)e.unshift(Z(s))}else t!==void 0&&e.push(Z(t));return e}static _$Eu(t,e){let n=e.attribute;return n===!1?void 0:typeof n=="string"?n:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){let t=new Map,e=this.constructor.elementProperties;for(let n of e.keys())this.hasOwnProperty(n)&&(t.set(n,this[n]),delete this[n]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return gt(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,n){this._$AK(t,n)}_$ET(t,e){let n=this.constructor.elementProperties.get(t),s=this.constructor._$Eu(t,n);if(s!==void 0&&n.reflect===!0){let o=(n.converter?.toAttribute!==void 0?n.converter:T).toAttribute(e,n.type);this._$Em=t,o==null?this.removeAttribute(s):this.setAttribute(s,o),this._$Em=null}}_$AK(t,e){let n=this.constructor,s=n._$Eh.get(t);if(s!==void 0&&this._$Em!==s){let o=n.getPropertyOptions(s),i=typeof o.converter=="function"?{fromAttribute:o.converter}:o.converter?.fromAttribute!==void 0?o.converter:T;this._$Em=s;let a=i.fromAttribute(e,o.type);this[s]=a??this._$Ej?.get(s)??a,this._$Em=null}}requestUpdate(t,e,n,s=!1,o){if(t!==void 0){let i=this.constructor;if(s===!1&&(o=this[t]),n??=i.getPropertyOptions(t),!((n.hasChanged??B)(o,e)||n.useDefault&&n.reflect&&o===this._$Ej?.get(t)&&!this.hasAttribute(i._$Eu(t,n))))return;this.C(t,e,n)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:n,reflect:s,wrapped:o},i){n&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,i??e??this[t]),o!==!0||i!==void 0)||(this._$AL.has(t)||(this.hasUpdated||n||(e=void 0),this._$AL.set(t,e)),s===!0&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[s,o]of this._$Ep)this[s]=o;this._$Ep=void 0}let n=this.constructor.elementProperties;if(n.size>0)for(let[s,o]of n){let{wrapped:i}=o,a=this[s];i!==!0||this._$AL.has(s)||a===void 0||this.C(s,void 0,o,a)}}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(n=>n.hostUpdate?.()),this.update(e)):this._$EM()}catch(n){throw t=!1,this._$EM(),n}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM()}updated(t){}firstUpdated(t){}};p.elementStyles=[],p.shadowRootOptions={mode:"open"},p[R("elementProperties")]=new Map,p[R("finalized")]=new Map,Jt?.({ReactiveElement:p}),(I.reactiveElementVersions??=[]).push("2.1.2");var rt=globalThis,yt=r=>r,D=rt.trustedTypes,$t=D?D.createPolicy("lit-html",{createHTML:r=>r}):void 0,Et="$lit$",b=`lit$${Math.random().toFixed(9).slice(2)}$`,St="?"+b,Kt=`<${St}>`,v=document,k=()=>v.createComment(""),N=r=>r===null||typeof r!="object"&&typeof r!="function",st=Array.isArray,Qt=r=>st(r)||typeof r?.[Symbol.iterator]=="function",J=`[
2
+ \f\r]`,O=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_t=/-->/g,vt=/>/g,$=RegExp(`>|${J}(?:([^\\s"'>=/]+)(${J}*=${J}*(?:[^
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),At=/'/g,xt=/"/g,Ct=/^(?:script|style|textarea|title)$/i,ot=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),ke=ot(1),Ne=ot(2),Me=ot(3),A=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),wt=new WeakMap,_=v.createTreeWalker(v,129);function Pt(r,t){if(!st(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return $t!==void 0?$t.createHTML(t):t}var te=(r,t)=>{let e=r.length-1,n=[],s,o=t===2?"<svg>":t===3?"<math>":"",i=O;for(let a=0;a<e;a++){let l=r[a],c,u,h=-1,f=0;for(;f<l.length&&(i.lastIndex=f,u=i.exec(l),u!==null);)f=i.lastIndex,i===O?u[1]==="!--"?i=_t:u[1]!==void 0?i=vt:u[2]!==void 0?(Ct.test(u[2])&&(s=RegExp("</"+u[2],"g")),i=$):u[3]!==void 0&&(i=$):i===$?u[0]===">"?(i=s??O,h=-1):u[1]===void 0?h=-2:(h=i.lastIndex-u[2].length,c=u[1],i=u[3]===void 0?$:u[3]==='"'?xt:At):i===xt||i===At?i=$:i===_t||i===vt?i=O:(i=$,s=void 0);let m=i===$&&r[a+1].startsWith("/>")?" ":"";o+=i===O?l+Kt:h>=0?(n.push(c),l.slice(0,h)+Et+l.slice(h)+b+m):l+b+(h===-2?a:m)}return[Pt(r,o+(r[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]},M=class r{constructor({strings:t,_$litType$:e},n){let s;this.parts=[];let o=0,i=0,a=t.length-1,l=this.parts,[c,u]=te(t,e);if(this.el=r.createElement(c,n),_.currentNode=this.el.content,e===2||e===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(s=_.nextNode())!==null&&l.length<a;){if(s.nodeType===1){if(s.hasAttributes())for(let h of s.getAttributeNames())if(h.endsWith(Et)){let f=u[i++],m=s.getAttribute(h).split(b),H=/([.?@])?(.*)/.exec(f);l.push({type:1,index:o,name:H[2],strings:m,ctor:H[1]==="."?Q:H[1]==="?"?tt:H[1]==="@"?et:C}),s.removeAttribute(h)}else h.startsWith(b)&&(l.push({type:6,index:o}),s.removeAttribute(h));if(Ct.test(s.tagName)){let h=s.textContent.split(b),f=h.length-1;if(f>0){s.textContent=D?D.emptyScript:"";for(let m=0;m<f;m++)s.append(h[m],k()),_.nextNode(),l.push({type:2,index:++o});s.append(h[f],k())}}}else if(s.nodeType===8)if(s.data===St)l.push({type:2,index:o});else{let h=-1;for(;(h=s.data.indexOf(b,h+1))!==-1;)l.push({type:7,index:o}),h+=b.length-1}o++}}static createElement(t,e){let n=v.createElement("template");return n.innerHTML=t,n}};function S(r,t,e=r,n){if(t===A)return t;let s=n!==void 0?e._$Co?.[n]:e._$Cl,o=N(t)?void 0:t._$litDirective$;return s?.constructor!==o&&(s?._$AO?.(!1),o===void 0?s=void 0:(s=new o(r),s._$AT(r,e,n)),n!==void 0?(e._$Co??=[])[n]=s:e._$Cl=s),s!==void 0&&(t=S(r,s._$AS(r,t.values),s,n)),t}var K=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:n}=this._$AD,s=(t?.creationScope??v).importNode(e,!0);_.currentNode=s;let o=_.nextNode(),i=0,a=0,l=n[0];for(;l!==void 0;){if(i===l.index){let c;l.type===2?c=new L(o,o.nextSibling,this,t):l.type===1?c=new l.ctor(o,l.name,l.strings,this,t):l.type===6&&(c=new nt(o,this,t)),this._$AV.push(c),l=n[++a]}i!==l?.index&&(o=_.nextNode(),i++)}return _.currentNode=v,s}p(t){let e=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(t,n,e),e+=n.strings.length-2):n._$AI(t[e])),e++}},L=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,n,s){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=n,this.options=s,this._$Cv=s?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=S(this,t,e),N(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==A&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Qt(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==d&&N(this._$AH)?this._$AA.nextSibling.data=t:this.T(v.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:n}=t,s=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=M.createElement(Pt(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===s)this._$AH.p(e);else{let o=new K(s,this),i=o.u(this.options);o.p(e),this.T(i),this._$AH=o}}_$AC(t){let e=wt.get(t.strings);return e===void 0&&wt.set(t.strings,e=new M(t)),e}k(t){st(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,n,s=0;for(let o of t)s===e.length?e.push(n=new r(this.O(k()),this.O(k()),this,this.options)):n=e[s],n._$AI(o),s++;s<e.length&&(this._$AR(n&&n._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){let n=yt(t).nextSibling;yt(t).remove(),t=n}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},C=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,n,s,o){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=o,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=d}_$AI(t,e=this,n,s){let o=this.strings,i=!1;if(o===void 0)t=S(this,t,e,0),i=!N(t)||t!==this._$AH&&t!==A,i&&(this._$AH=t);else{let a=t,l,c;for(t=o[0],l=0;l<o.length-1;l++)c=S(this,a[n+l],e,l),c===A&&(c=this._$AH[l]),i||=!N(c)||c!==this._$AH[l],c===d?t=d:t!==d&&(t+=(c??"")+o[l+1]),this._$AH[l]=c}i&&!s&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Q=class extends C{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}},tt=class extends C{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}},et=class extends C{constructor(t,e,n,s,o){super(t,e,n,s,o),this.type=5}_$AI(t,e=this){if((t=S(this,t,e,0)??d)===A)return;let n=this._$AH,s=t===d&&n!==d||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,o=t!==d&&(n===d||s);s&&this.element.removeEventListener(this.name,this,n),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},nt=class{constructor(t,e,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){S(this,t)}};var ee=rt.litHtmlPolyfillSupport;ee?.(M,L),(rt.litHtmlVersions??=[]).push("3.3.3");var Rt=(r,t,e)=>{let n=e?.renderBefore??t,s=n._$litPart$;if(s===void 0){let o=e?.renderBefore??null;n._$litPart$=s=new L(t.insertBefore(k(),o),o,void 0,e??{})}return s._$AI(r),s};var it=globalThis,y=class extends p{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Rt(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return A}};y._$litElement$=!0,y.finalized=!0,it.litElementHydrateSupport?.({LitElement:y});var ne=it.litElementPolyfillSupport;ne?.({LitElement:y});(it.litElementVersions??=[]).push("4.2.2");var re={attribute:!0,type:String,converter:T,reflect:!1,hasChanged:B},se=(r=re,t,e)=>{let{kind:n,metadata:s}=e,o=globalThis.litPropertyMetadata.get(s);if(o===void 0&&globalThis.litPropertyMetadata.set(s,o=new Map),n==="setter"&&((r=Object.create(r)).wrapped=!0),o.set(e.name,r),n==="accessor"){let{name:i}=e;return{set(a){let l=t.get.call(this);t.set.call(this,a),this.requestUpdate(i,l,r,!0,a)},init(a){return a!==void 0&&this.C(i,void 0,r,a),a}}}if(n==="setter"){let{name:i}=e;return function(a){let l=this[i];t.call(this,a),this.requestUpdate(i,l,r,!0,a)}}throw Error("Unsupported decorator location: "+n)};function F(r){return(t,e)=>typeof e=="object"?se(r,t,e):((n,s,o)=>{let i=s.hasOwnProperty(o);return s.constructor.createProperty(o,n),i?Object.getOwnPropertyDescriptor(s,o):void 0})(r,t,e)}function Je(r){return F({...r,state:!0,attribute:!1})}var Tt=15e3;function wn(r,t){customElements.get(r)||customElements.define(r,t)}function g(r){let t=n=>{let s=n.localName;if(n.id)return`${s}#${n.id}`;let o=n.parentElement;if(!o)return s;let i=[...o.children].filter(a=>a.localName===s).indexOf(n)+1;return`${s}:nth-of-type(${i})`},e=[];for(let n=r;n&&(e.unshift(t(n)),!(n.id||n.localName==="bang-root"));n=n.parentElement);return e.join(" > ")}var lt=class extends y{constructor(){super(...arguments);this.renderDone=Promise.resolve()}get renderReady(){return this.updateComplete.then(()=>this.renderDone)}},at=class extends lt{constructor(){super(...arguments);this.frameStep=0}get stepCount(){return 0}connectedCallback(){super.connectedCallback();let e=this.closest("bang-frame");e&&typeof e.currentStep=="number"&&(this.frameStep=e.currentStep)}};ut([F({attribute:!1})],at.prototype,"frameStep",2);var Cn=["xs","s","m","l","xl","2xl"],Pn=["default","muted","accent"],Ot=new Set,kt=new Set;function V(r,t){Ot.has(r)||(Ot.add(r),kt.add(t.replace(/^\[banger\] /,"")),console.warn(t))}function Nt(){return[...kt]}var W=r=>r.localName??"element";function Rn(r,t,e,n){let s=r.getAttribute(t);return s===null?n:e.includes(s)?s:(V(`${W(r)}|${t}|${s}`,`[banger] <${W(r)} ${t}="${s}"> is not one of: ${e.join(", ")}; using "${n}"`),n)}function Tn(r,t,e,n,s){let o=r.getAttribute(t);if(o===null)return s;let i=Number(o);return/^-?\d+$/.test(o.trim())&&i>=e&&i<=n?i:(V(`${W(r)}|${t}|${o}`,`[banger] <${W(r)} ${t}="${o}"> is not an integer from ${e} to ${n}; using ${s}`),s)}function On(r,t){if(!/^\d+(:\d+)*$/.test(r))return null;let e=r.split(":").map(Number);return e.length!==t||e.some(n=>n<1)?null:e}var oe=/^[A-Za-z]{2,3}(-[A-Za-z0-9]{2,8})*$/;function x(r){return r.replace(/[A-Z]/g,t=>t.toLowerCase())}function ie(r){let t=[],e=[],n=new Set;for(let s of(r??"").split(/\s+/).filter(Boolean)){if(!oe.test(s)){e.push(s);continue}let o=x(s);n.has(o)||(n.add(o),t.push(s))}return{languages:t,invalid:e}}function G(r,t){if(!r)return;let e=x(r);return t.find(n=>x(n)===e)}function Nn(r){let{languages:t,query:e,navigatorLanguages:n,useNavigator:s}=r;if(e!==null){let i=G(e,t);if(i)return{language:i,queryIgnored:!1}}let o=e!==null;if(s)for(let i of n){let a=G(i,t);if(a)return{language:a,queryIgnored:o};let l=x(i).split("-")[0],c=t.find(u=>x(u).split("-")[0]===l);if(c)return{language:c,queryIgnored:o}}return{language:t[0],queryIgnored:o}}function Mn(r,t){let e=x(t),n=r.findIndex(s=>x(s)===e);return r[(n+1)%r.length]}function Ut(r){return r.length<2?"":r.map(t=>{let e=`:is(${r.filter(s=>s!==t).map(s=>`[lang="${s}" i]`).join(", ")})`,n=`bang-root[lang="${t}" i]`;return`${n} bang-frame ${e} { display: none !important; }
4
+ ${n} bang-list[data-bang-grouped] > li:not(li:not(${e}) ~ li) { margin-top: 0; }`}).join(`
5
+ `)}var Mt=null,Lt=[];function w(r){let t=[],e=r;for(;e&&e.localName!=="bang-frame"&&e.localName!=="bang-root";)t.push(e),e=e.parentElement;if(!e||e.localName!=="bang-frame")return!0;let n=e.parentElement;for(;n&&n.localName!=="bang-root";)n=n.parentElement;if(!n)return!0;let s=n.getAttribute("languages")??"";s!==Mt&&(Mt=s,Lt=ie(s).languages);let o=Lt,i=G(n.getAttribute("lang"),o);if(o.length===0||i===void 0)return!0;for(let a of t){let l=G(a.getAttribute("lang"),o);if(l!==void 0&&l!==i)return!1}return!0}var ae=2,le=["style","fill","stroke","color","stop-color","flood-color","lighting-color"],ce=new Set(["path","ellipse","circle","rect","line","polyline","polygon","text","image","use"]),he=/(?<!url\(\s*["']?)#[0-9a-fA-F]{3,8}(?![\w-])|\b(?:rgba?|hsla?|hwb|lab|lch|oklab|oklch|color)\([^)]*\)/i;function ue(r,t,e){let n=s=>{let o=s/e;return o>ae?Math.round(o):0};return{x:n(Math.max(r.left-t.left,t.right-r.right)),y:n(Math.max(r.top-t.top,t.bottom-r.bottom))}}function Ht(r){return he.exec(r)?.[0]??null}function qn(r){return`@scope {
6
+ ${r}
7
+ }`}function jn(){return typeof CSSScopeRule=="function"}function de(r){let t=[r.overflowX!==0?`${r.overflowX}px horizontally`:"",r.overflowY!==0?`${r.overflowY}px vertically`:""].filter(Boolean).join(", ");return`${r.frame}: ${r.selector} sticks out of its bang-free box by ${t}; the part outside is clipped`}function fe(r,t){let e=t.length>1?` (and ${t.length-1} more)`:"";return`${r}: color code "${t[0]}" in the CSS${e}; take colors from the theme with var(--bang-color-*)`}function pe(r){return`${r}: <style> is not a direct child of bang-free, so it is not scoped and applies to the whole page; move it directly under bang-free`}function ge(r,t){return`${r}: ${t} must be the only bang-free[overlay] and the last child of its bang-frame; otherwise the other parts move`}function qt(r,t){if(r)for(let e of r){let n=e.style;if(n){let o=Ht(n.cssText);o&&t.push(o)}let s=e.cssRules;s&&qt(s,t)}}function me(r){let t=[];for(let e of r.querySelectorAll("style"))qt(e.sheet?.cssRules,t);for(let e of r.querySelectorAll("*"))for(let n of le){let s=Ht(e.getAttribute(n)??"");s&&t.push(s)}return[...new Set(t)]}function be(r){let t=r.parentElement;if(!w(r))return!1;if(!t||t.localName!=="bang-frame")return!0;for(let e=r.nextElementSibling;e;e=e.nextElementSibling)if(w(e))return!0;return[...t.children].filter(e=>e.localName==="bang-free"&&e.hasAttribute("overlay")&&w(e)).length>=2}function ye(r){let t=r;for(let e=r.ownerSVGElement;e;e=e.ownerSVGElement)t=e;return t}function $e(r,t){let e=r.getBoundingClientRect(),n=g(r.closest("bang-frame")??r),s=null;for(let o of r.querySelectorAll("*")){let i=o.getBoundingClientRect();if(i.width===0&&i.height===0)continue;let a=e;if(o instanceof SVGElement&&o.ownerSVGElement){if(!ce.has(o.localName)||o.closest("defs, marker, clipPath, mask, pattern, symbol"))continue;a=ye(o).getBoundingClientRect()}let{x:l,y:c}=ue(a,i,t);l===0&&c===0||(!s||Math.max(l,c)>Math.max(s.overflowX,s.overflowY))&&(s={frame:n,selector:g(o),overflowX:l,overflowY:c})}return s}function jt(r){let t=[];for(let e of r.querySelectorAll("bang-free")){let n=me(e);n.length>0&&t.push(fe(g(e),n));let s=[...e.querySelectorAll("style")].find(a=>a.parentElement!==e);s&&t.push(pe(g(s))),e.hasAttribute("overlay")&&be(e)&&t.push(ge(g(e.closest("bang-frame")??e),g(e)));let o=e.offsetWidth;if(o===0)continue;let i=$e(e,e.getBoundingClientRect().width/o);i&&t.push(de(i))}return t}function U(r,t,e="timed out"){let n,s=new Promise((o,i)=>{n=setTimeout(()=>i(new Error(e)),t)});return Promise.race([r,s]).finally(()=>clearTimeout(n))}var _e=1e4;function ve(r){return((r instanceof Error?r.message:String(r)).split(`
8
+ `)[0]??"").slice(0,200)}async function Ae(r,t){let e=await Promise.allSettled(r.map(s=>U(s.ready,t,`timed out after ${t}ms`))),n=[];return e.forEach((s,o)=>{s.status==="rejected"&&n.push({selector:r[o].selector,tag:r[o].tag,reason:ve(s.reason)})}),n}function xe(r){let t=new Set,e=n=>{if(n.nodeType===Node.TEXT_NODE){for(let s of n.data)s.trim()!==""&&t.add(s);return}if(n instanceof Element){if(n.localName==="script"||n.localName==="style"||n.localName==="bang-notes"||!w(n))return;n.shadowRoot&&n.shadowRoot.childNodes.forEach(e)}n.childNodes.forEach(e)};return e(r),[...t].join("")}async function Vn(r,t={}){let e=t.timeoutMs??Tt,n=t.fontsTimeoutMs??_e,s=new Set(t.extraWarnings??[]);(await ct(n)).forEach(a=>s.add(a));let o=[];for(let a of r.querySelectorAll("*")){if(!w(a))continue;let l=a.renderReady;l instanceof Promise&&o.push({selector:g(a),tag:a.localName,ready:l})}let i=await Ae(o,e);return(await It(xe(r),n)).forEach(a=>s.add(a)),jt(r).forEach(a=>s.add(a)),Nt().forEach(a=>s.add(a)),{ok:i.length===0,failed:i,warnings:[...s]}}var we=[{family:"Bricolage Grotesque",weights:[800]},{family:"Noto Sans JP",weights:[400,700]},{family:"JetBrains Mono",weights:[400]}],Dt=null,X=null,E=null,ht=null,Ee=`
9
+ html, body { margin: 0; overflow: hidden; background: var(--bang-color-paper, #F6F5F1); }
10
+ [data-step], bang-list > li, bang-list > bang-list { transition: opacity var(--bang-duration-fast, 200ms); }
11
+ [data-bang-hidden] { opacity: 0; pointer-events: none; }
12
+ /* Set after the first mouse flick: a page-turner remote is driving the deck, and its drags would otherwise select text or drag images on every press. */
13
+ html[data-bang-remote] { -webkit-user-select: none; user-select: none; }
14
+ html[data-bang-remote] img { -webkit-user-drag: none; }
15
+ /* The remote also moves the cursor up and down on every press; bang-root hides it until a person moves the mouse. */
16
+ bang-root[data-bang-nocursor] * { cursor: none !important; }
17
+ /* --bang-near is 1 when the frame fills the screen and 0 when the camera is far from it; bang-root sets it on every move. */
18
+ bang-frame [show="near"] { opacity: var(--bang-near, 1); }
19
+ bang-frame [show="far"] { opacity: calc(1 - var(--bang-near, 1)); }
20
+ /* A focus stop keeps its element at full strength and fades the rest, so the edges of neighbours that fall inside the screen read as background rather than as part of the slide. */
21
+ bang-frame[data-bang-spot], bang-frame [data-bang-spot] { transition: opacity var(--bang-duration-slow, 400ms); }
22
+ bang-frame[data-bang-dim], bang-frame [data-bang-dim]:not([data-bang-hidden], [show="far"]) { opacity: 0.16; }
23
+ @media (prefers-reduced-motion: reduce) { bang-frame[data-bang-spot], bang-frame [data-bang-spot] { transition: none; } }
24
+ /* Layouts keep their natural height so the frame can centre them; only those holding a chart or image grow. Set here because document rules outrank :host. */
25
+ /* A band spans its stack even when the stack centres or end-aligns its children. */
26
+ bang-stack > bang-card[kind="band"] { align-self: stretch; }
27
+ bang-stack:has(bang-chart, bang-image, bang-free:not([overlay])), bang-columns:has(bang-chart, bang-image, bang-free:not([overlay])), bang-card:has(bang-chart, bang-image, bang-free:not([overlay])) { flex: 1 1 0; }
28
+ /* A column that holds a free box takes the full row height even when the columns centre or end-align their cells; otherwise the box fills a content-high cell and collapses to 0. */
29
+ bang-columns > :has(bang-free:not([overlay])) { align-self: stretch; }
30
+ /* An arrow or mark between cards sits on the row's centre line, even when the columns stretch their cells. */
31
+ bang-columns > bang-shape { align-self: center; justify-self: center; }
32
+ /* The frame centres its children; when it opens with a title, free space is split between these two auto margins so the title stays on top and the rest is centred below it. */
33
+ bang-frame:not([valign="spread"]) > bang-title:first-child, bang-frame:not([valign="spread"]):has(> bang-title:first-child) > :last-child { margin-bottom: auto; }
34
+ bang-frame:not([valign="spread"]):has(> bang-title:first-child) > :nth-last-child(2):has(+ bang-free[overlay]:last-child) { margin-bottom: auto; }
35
+ /* Inline emphasis lives in the document: ::slotted() cannot reach a <mark> inside a list's li. The text colour is pinned to ink so the highlight contrast check holds whatever the surrounding tone. */
36
+ bang-text mark, bang-title mark, bang-list mark { color: var(--bang-color-ink); background: linear-gradient(transparent 60%, var(--bang-highlight, color-mix(in srgb, var(--bang-color-signal) 40%, transparent)) 60%); -webkit-box-decoration-break: clone; box-decoration-break: clone; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
37
+ /* Tone frames flip the text colour and put signal or ink behind it, so a light band would swallow the text; underline in the text colour instead. */
38
+ bang-frame[tone="accent"] :is(bang-text, bang-title, bang-list) mark, bang-frame[tone="inverse"] :is(bang-text, bang-title, bang-list) mark { color: inherit; background: linear-gradient(transparent 88%, currentColor 88%); }
39
+ `,Se=`
40
+ @page { size: 1920px 1080px; margin: 0 }
41
+ html, body { height: 1080px; }
42
+ `;function Kn(r){let t=Ut(r);if(t==="")return;let e=document.getElementById("bang-lang");e||(e=document.createElement("style"),e.id="bang-lang",document.head.append(e)),e.textContent=t}function Qn(r){if(document.getElementById("bang-base"))return;let t=document.head,e=(o,i)=>{let a=document.createElement("link");a.rel="preconnect",a.href=o,i&&(a.crossOrigin=""),t.append(a)};e("https://fonts.googleapis.com",!1),e("https://fonts.gstatic.com",!0);let n=document.createElement("link");n.id="bang-fonts",n.rel="stylesheet",n.href=dt,Dt=new Promise(o=>{n.addEventListener("load",()=>o("load")),n.addEventListener("error",()=>o("error"))}),t.append(n);let s=document.createElement("style");s.id="bang-base",s.textContent=Ee+(r==="export"?Se:""),t.append(s)}function tr(r){if(E){E.request.href!==r.href&&V(`themefonts|${r.href}`,"[banger] the theme fonts stylesheet is set once per page; a different fontsHref is ignored");return}let t=document.createElement("link");t.id="bang-theme-fonts",t.rel="stylesheet",t.href=r.href;let e=new Promise(n=>{t.addEventListener("load",()=>n("load")),t.addEventListener("error",()=>n("error"))});document.head.append(t),E={request:r,status:e},X=null}async function Bt(r,t,e){if(!r)return{warnings:[],settled:!0};try{return{warnings:await U(r,t)==="error"?[e.failed]:[],settled:!0}}catch{return{warnings:[e.timedOut],settled:!1}}}async function ct(r){if(X)return X;let t=E,[e,n]=await Promise.all([Bt(Dt,r,{failed:"fonts stylesheet failed to load; system fonts are used",timedOut:"fonts stylesheet timed out; system fonts are used"}),Bt(t?.status,r,{failed:"theme fonts stylesheet failed to load; the font stack falls back",timedOut:"theme fonts stylesheet timed out; the font stack falls back"})]),s=[...e.warnings,...n.warnings];return e.settled&&n.settled&&E===t&&(X=s),s}async function Ce(r,t){let e=Date.now()+t,n=()=>Math.max(0,e-Date.now()),s=new Set(await ct(t));await Promise.all([...we,...E?.request.families??[]].flatMap(({family:o,weights:i})=>i.map(async a=>{try{await U(document.fonts.load(`${a} 1em "${o}"`,r),n())}catch(l){s.add(l instanceof Error&&l.message==="timed out"?"fonts timed out":`font load failed: ${o}`)}})));try{await U(document.fonts.ready,n())}catch{s.add("fonts timed out")}return[...s]}function It(r,t){let e=`${r}\0${E?.request.href??""}`;if(ht?.key===e)return ht.result;let n=Ce(r,t);return ht={key:e,result:n},n}export{pt as a,Ft as b,ke as c,Ne as d,d as e,F as f,Je as g,wn as h,g as i,lt as j,at as k,Cn as l,Pn as m,V as n,Rn as o,Tn as p,On as q,ie as r,G as s,Nn as t,Mn as u,w as v,ae as w,qn as x,jn as y,Vn as z,Kn as A,Qn as B,tr as C,It as D};
43
+ //# sourceMappingURL=chunk-6BFFJEGA.js.map