UNPKG

billboard.js

Version:

Re-usable easy interface JavaScript chart library, based on D3 v4+

11 lines 242 kB
/*! * Copyright (c) 2017 ~ present NAVER Corp. * billboard.js project is licensed under the MIT license * * billboard.js, JavaScript chart library * https://naver.github.io/billboard.js/ * * @version 4.0.1 * @requires billboard.js * @summary billboard.js plugin */(function(pr,ir){typeof exports=="object"&&typeof module=="object"?module.exports=ir():typeof define=="function"&&define.amd?define("bb",[],ir):typeof exports=="object"?exports.bb=ir():(pr.bb=pr.bb||{},pr.bb.plugin=pr.bb.plugin||{},pr.bb.plugin["bubblecompare.pkgd"]=ir())})(this,function(){return(function(){"use strict";var jr={39266:(function(i,c,t){t.d(c,{default:function(){return _r}});function r(){}function n(P){return P==null?r:function(){return this.querySelector(P)}}function e(P){typeof P!="function"&&(P=n(P));for(var U=this._groups,q=U.length,dt=new Array(q),ot=0;ot<q;++ot)for(var xt=U[ot],At=xt.length,Dt=dt[ot]=new Array(At),$t,Kt,Xt=0;Xt<At;++Xt)($t=xt[Xt])&&(Kt=P.call($t,$t.__data__,Xt,xt))&&("__data__"in $t&&(Kt.__data__=$t.__data__),Dt[Xt]=Kt);return new _(dt,this._parents)}function a(P){return P==null?[]:Array.isArray(P)?P:Array.from(P)}function o(){return[]}function s(P){return P==null?o:function(){return this.querySelectorAll(P)}}function u(P){return function(){return a(P.apply(this,arguments))}}function v(P){typeof P=="function"?P=u(P):P=s(P);for(var U=this._groups,q=U.length,dt=[],ot=[],xt=0;xt<q;++xt)for(var At=U[xt],Dt=At.length,$t,Kt=0;Kt<Dt;++Kt)($t=At[Kt])&&(dt.push(P.call($t,$t.__data__,Kt,At)),ot.push($t));return new _(dt,ot)}function f(P){return function(){return this.matches(P)}}function l(P){return function(U){return U.matches(P)}}var d=Array.prototype.find;function g(P){return function(){return d.call(this.children,P)}}function h(){return this.firstElementChild}function p(P){return this.select(P==null?h:g(typeof P=="function"?P:l(P)))}var y=Array.prototype.filter;function S(){return Array.from(this.children)}function E(P){return function(){return y.call(this.children,P)}}function m(P){return this.selectAll(P==null?S:E(typeof P=="function"?P:l(P)))}function x(P){typeof P!="function"&&(P=f(P));for(var U=this._groups,q=U.length,dt=new Array(q),ot=0;ot<q;++ot)for(var xt=U[ot],At=xt.length,Dt=dt[ot]=[],$t,Kt=0;Kt<At;++Kt)($t=xt[Kt])&&P.call($t,$t.__data__,Kt,xt)&&Dt.push($t);return new _(dt,this._parents)}function I(P){return new Array(P.length)}function O(){return new _(this._enter||this._groups.map(I),this._parents)}function T(P,U){this.ownerDocument=P.ownerDocument,this.namespaceURI=P.namespaceURI,this._next=null,this._parent=P,this.__data__=U}T.prototype={constructor:T,appendChild:function(P){return this._parent.insertBefore(P,this._next)},insertBefore:function(P,U){return this._parent.insertBefore(P,U)},querySelector:function(P){return this._parent.querySelector(P)},querySelectorAll:function(P){return this._parent.querySelectorAll(P)}};function A(P){return function(){return P}}function C(P,U,q,dt,ot,xt){for(var At=0,Dt,$t=U.length,Kt=xt.length;At<Kt;++At)(Dt=U[At])?(Dt.__data__=xt[At],dt[At]=Dt):q[At]=new T(P,xt[At]);for(;At<$t;++At)(Dt=U[At])&&(ot[At]=Dt)}function R(P,U,q,dt,ot,xt,At){var Dt,$t,Kt=new Map,Xt=U.length,or=xt.length,cr=new Array(Xt),vr;for(Dt=0;Dt<Xt;++Dt)($t=U[Dt])&&(cr[Dt]=vr=At.call($t,$t.__data__,Dt,U)+"",Kt.has(vr)?ot[Dt]=$t:Kt.set(vr,$t));for(Dt=0;Dt<or;++Dt)vr=At.call(P,xt[Dt],Dt,xt)+"",($t=Kt.get(vr))?(dt[Dt]=$t,$t.__data__=xt[Dt],Kt.delete(vr)):q[Dt]=new T(P,xt[Dt]);for(Dt=0;Dt<Xt;++Dt)($t=U[Dt])&&Kt.get(cr[Dt])===$t&&(ot[Dt]=$t)}function N(P){return P.__data__}function M(P,U){if(!arguments.length)return Array.from(this,N);var q=U?R:C,dt=this._parents,ot=this._groups;typeof P!="function"&&(P=A(P));for(var xt=ot.length,At=new Array(xt),Dt=new Array(xt),$t=new Array(xt),Kt=0;Kt<xt;++Kt){var Xt=dt[Kt],or=ot[Kt],cr=or.length,vr=D(P.call(Xt,Xt&&Xt.__data__,Kt,dt)),dr=vr.length,Wr=Dt[Kt]=new Array(dr),Vr=At[Kt]=new Array(dr),tn=$t[Kt]=new Array(cr);q(Xt,or,Wr,Vr,tn,vr,U);for(var Pr=0,$r=0,Kr,br;Pr<dr;++Pr)if(Kr=Wr[Pr]){for(Pr>=$r&&($r=Pr+1);!(br=Vr[$r])&&++$r<dr;);Kr._next=br||null}}return At=new _(At,dt),At._enter=Dt,At._exit=$t,At}function D(P){return typeof P=="object"&&"length"in P?P:Array.from(P)}function F(){return new _(this._exit||this._groups.map(I),this._parents)}function L(P,U,q){var dt=this.enter(),ot=this,xt=this.exit();return typeof P=="function"?(dt=P(dt),dt&&(dt=dt.selection())):dt=dt.append(P+""),U!=null&&(ot=U(ot),ot&&(ot=ot.selection())),q==null?xt.remove():q(xt),dt&&ot?dt.merge(ot).order():ot}function $(P){for(var U=P.selection?P.selection():P,q=this._groups,dt=U._groups,ot=q.length,xt=dt.length,At=Math.min(ot,xt),Dt=new Array(ot),$t=0;$t<At;++$t)for(var Kt=q[$t],Xt=dt[$t],or=Kt.length,cr=Dt[$t]=new Array(or),vr,dr=0;dr<or;++dr)(vr=Kt[dr]||Xt[dr])&&(cr[dr]=vr);for(;$t<ot;++$t)Dt[$t]=q[$t];return new _(Dt,this._parents)}function B(){for(var P=this._groups,U=-1,q=P.length;++U<q;)for(var dt=P[U],ot=dt.length-1,xt=dt[ot],At;--ot>=0;)(At=dt[ot])&&(xt&&At.compareDocumentPosition(xt)^4&&xt.parentNode.insertBefore(At,xt),xt=At);return this}function j(P){P||(P=V);function U(or,cr){return or&&cr?P(or.__data__,cr.__data__):!or-!cr}for(var q=this._groups,dt=q.length,ot=new Array(dt),xt=0;xt<dt;++xt){for(var At=q[xt],Dt=At.length,$t=ot[xt]=new Array(Dt),Kt,Xt=0;Xt<Dt;++Xt)(Kt=At[Xt])&&($t[Xt]=Kt);$t.sort(U)}return new _(ot,this._parents).order()}function V(P,U){return P<U?-1:P>U?1:P>=U?0:NaN}function z(){var P=arguments[0];return arguments[0]=this,P.apply(null,arguments),this}function K(){return Array.from(this)}function tt(){for(var P=this._groups,U=0,q=P.length;U<q;++U)for(var dt=P[U],ot=0,xt=dt.length;ot<xt;++ot){var At=dt[ot];if(At)return At}return null}function w(){let P=0;for(const U of this)++P;return P}function Z(){return!this.node()}function H(P){for(var U=this._groups,q=0,dt=U.length;q<dt;++q)for(var ot=U[q],xt=0,At=ot.length,Dt;xt<At;++xt)(Dt=ot[xt])&&P.call(Dt,Dt.__data__,xt,ot);return this}var W="http://www.w3.org/1999/xhtml",J={svg:"http://www.w3.org/2000/svg",xhtml:W,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function et(P){var U=P+="",q=U.indexOf(":");return q>=0&&(U=P.slice(0,q))!=="xmlns"&&(P=P.slice(q+1)),J.hasOwnProperty(U)?{space:J[U],local:P}:P}function yt(P){return function(){this.removeAttribute(P)}}function k(P){return function(){this.removeAttributeNS(P.space,P.local)}}function ut(P,U){return function(){this.setAttribute(P,U)}}function Et(P,U){return function(){this.setAttributeNS(P.space,P.local,U)}}function Mt(P,U){return function(){var q=U.apply(this,arguments);q==null?this.removeAttribute(P):this.setAttribute(P,q)}}function Ot(P,U){return function(){var q=U.apply(this,arguments);q==null?this.removeAttributeNS(P.space,P.local):this.setAttributeNS(P.space,P.local,q)}}function Rt(P,U){var q=et(P);if(arguments.length<2){var dt=this.node();return q.local?dt.getAttributeNS(q.space,q.local):dt.getAttribute(q)}return this.each((U==null?q.local?k:yt:typeof U=="function"?q.local?Ot:Mt:q.local?Et:ut)(q,U))}function Bt(P){return P.ownerDocument&&P.ownerDocument.defaultView||P.document&&P||P.defaultView}function Ht(P){return function(){this.style.removeProperty(P)}}function jt(P,U,q){return function(){this.style.setProperty(P,U,q)}}function Pt(P,U,q){return function(){var dt=U.apply(this,arguments);dt==null?this.style.removeProperty(P):this.style.setProperty(P,dt,q)}}function Ft(P,U,q){return arguments.length>1?this.each((U==null?Ht:typeof U=="function"?Pt:jt)(P,U,q==null?"":q)):bt(this.node(),P)}function bt(P,U){return P.style.getPropertyValue(U)||Bt(P).getComputedStyle(P,null).getPropertyValue(U)}function vt(P){return function(){delete this[P]}}function St(P,U){return function(){this[P]=U}}function mt(P,U){return function(){var q=U.apply(this,arguments);q==null?delete this[P]:this[P]=q}}function Yt(P,U){return arguments.length>1?this.each((U==null?vt:typeof U=="function"?mt:St)(P,U)):this.node()[P]}function ft(P){return P.trim().split(/^|\s+/)}function ht(P){return P.classList||new Ct(P)}function Ct(P){this._node=P,this._names=ft(P.getAttribute("class")||"")}Ct.prototype={add:function(P){var U=this._names.indexOf(P);U<0&&(this._names.push(P),this._node.setAttribute("class",this._names.join(" ")))},remove:function(P){var U=this._names.indexOf(P);U>=0&&(this._names.splice(U,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(P){return this._names.indexOf(P)>=0}};function Tt(P,U){for(var q=ht(P),dt=-1,ot=U.length;++dt<ot;)q.add(U[dt])}function Gt(P,U){for(var q=ht(P),dt=-1,ot=U.length;++dt<ot;)q.remove(U[dt])}function Jt(P){return function(){Tt(this,P)}}function X(P){return function(){Gt(this,P)}}function st(P,U){return function(){(U.apply(this,arguments)?Tt:Gt)(this,P)}}function Q(P,U){var q=ft(P+"");if(arguments.length<2){for(var dt=ht(this.node()),ot=-1,xt=q.length;++ot<xt;)if(!dt.contains(q[ot]))return!1;return!0}return this.each((typeof U=="function"?st:U?Jt:X)(q,U))}function nt(){this.textContent=""}function gt(P){return function(){this.textContent=P}}function rt(P){return function(){var U=P.apply(this,arguments);this.textContent=U==null?"":U}}function Lt(P){return arguments.length?this.each(P==null?nt:(typeof P=="function"?rt:gt)(P)):this.node().textContent}function zt(){this.innerHTML=""}function it(P){return function(){this.innerHTML=P}}function lt(P){return function(){var U=P.apply(this,arguments);this.innerHTML=U==null?"":U}}function pt(P){return arguments.length?this.each(P==null?zt:(typeof P=="function"?lt:it)(P)):this.node().innerHTML}function It(){this.nextSibling&&this.parentNode.appendChild(this)}function Ut(){return this.each(It)}function Vt(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Zt(){return this.each(Vt)}function Qt(P){return function(){var U=this.ownerDocument,q=this.namespaceURI;return q===W&&U.documentElement.namespaceURI===W?U.createElement(P):U.createElementNS(q,P)}}function wt(P){return function(){return this.ownerDocument.createElementNS(P.space,P.local)}}function kt(P){var U=et(P);return(U.local?wt:Qt)(U)}function sr(P){var U=typeof P=="function"?P:kt(P);return this.select(function(){return this.appendChild(U.apply(this,arguments))})}function hr(){return null}function xr(P,U){var q=typeof P=="function"?P:kt(P),dt=U==null?hr:typeof U=="function"?U:n(U);return this.select(function(){return this.insertBefore(q.apply(this,arguments),dt.apply(this,arguments)||null)})}function Er(){var P=this.parentNode;P&&P.removeChild(this)}function Ir(){return this.each(Er)}function Or(){var P=this.cloneNode(!1),U=this.parentNode;return U?U.insertBefore(P,this.nextSibling):P}function Cr(){var P=this.cloneNode(!0),U=this.parentNode;return U?U.insertBefore(P,this.nextSibling):P}function Tr(P){return this.select(P?Cr:Or)}function mr(P){return arguments.length?this.property("__data__",P):this.node().__data__}function ur(P){return function(U){P.call(this,U,this.__data__)}}function Nr(P){return P.trim().split(/^|\s+/).map(function(U){var q="",dt=U.indexOf(".");return dt>=0&&(q=U.slice(dt+1),U=U.slice(0,dt)),{type:U,name:q}})}function gr(P){return function(){var U=this.__on;if(U){for(var q=0,dt=-1,ot=U.length,xt;q<ot;++q)xt=U[q],(!P.type||xt.type===P.type)&&xt.name===P.name?this.removeEventListener(xt.type,xt.listener,xt.options):U[++dt]=xt;++dt?U.length=dt:delete this.__on}}}function fr(P,U,q){return function(){var dt=this.__on,ot,xt=ur(U);if(dt){for(var At=0,Dt=dt.length;At<Dt;++At)if((ot=dt[At]).type===P.type&&ot.name===P.name){this.removeEventListener(ot.type,ot.listener,ot.options),this.addEventListener(ot.type,ot.listener=xt,ot.options=q),ot.value=U;return}}this.addEventListener(P.type,xt,q),ot={type:P.type,name:P.name,value:U,listener:xt,options:q},dt?dt.push(ot):this.__on=[ot]}}function Rr(P,U,q){var dt=Nr(P+""),ot,xt=dt.length,At;if(arguments.length<2){var Dt=this.node().__on;if(Dt){for(var $t=0,Kt=Dt.length,Xt;$t<Kt;++$t)for(ot=0,Xt=Dt[$t];ot<xt;++ot)if((At=dt[ot]).type===Xt.type&&At.name===Xt.name)return Xt.value}return}for(Dt=U?fr:gr,ot=0;ot<xt;++ot)this.each(Dt(dt[ot],U,q));return this}function yr(P,U,q){var dt=Bt(P),ot=dt.CustomEvent;typeof ot=="function"?ot=new ot(U,q):(ot=dt.document.createEvent("Event"),q?(ot.initEvent(U,q.bubbles,q.cancelable),ot.detail=q.detail):ot.initEvent(U,!1,!1)),P.dispatchEvent(ot)}function nr(P,U){return function(){return yr(this,P,U)}}function ar(P,U){return function(){return yr(this,P,U.apply(this,arguments))}}function Mr(P,U){return this.each((typeof U=="function"?ar:nr)(P,U))}function*Dr(){for(var P=this._groups,U=0,q=P.length;U<q;++U)for(var dt=P[U],ot=0,xt=dt.length,At;ot<xt;++ot)(At=dt[ot])&&(yield At)}var b=[null];function _(P,U){this._groups=P,this._parents=U}function Y(){return new _([[document.documentElement]],b)}function G(){return this}_.prototype=Y.prototype={constructor:_,select:e,selectAll:v,selectChild:p,selectChildren:m,filter:x,data:M,enter:O,exit:F,join:L,merge:$,selection:G,order:B,sort:j,call:z,nodes:K,node:tt,size:w,empty:Z,each:H,attr:Rt,style:Ft,property:Yt,classed:Q,text:Lt,html:pt,raise:Ut,lower:Zt,append:sr,insert:xr,remove:Ir,clone:Tr,datum:mr,on:Rr,dispatch:Mr,[Symbol.iterator]:Dr};var at=null;function Wt(P){return typeof P=="string"?new _([[document.querySelector(P)]],[document.documentElement]):new _([[P]],b)}const Nt=P=>P||P===0,qt=P=>typeof P=="function",_t=P=>typeof P=="string",tr=P=>typeof P=="number",er=P=>typeof P=="undefined",ct=P=>typeof P!="undefined",rr=P=>typeof P=="boolean",lr=P=>Math.ceil(P/10)*10,Fr=P=>Math.ceil(P)+.5,Br=P=>P[1]-P[0],Sr=P=>typeof P=="object",Ar=P=>{for(const U in P)return!1;return!0},Yr=P=>er(P)||P===null||_t(P)&&P.length===0||Sr(P)&&!(P instanceof Date)&&Ar(P)||tr(P)&&isNaN(P),rn=P=>!Yr(P),Xr=P=>Array.isArray(P),nn=P=>P&&!(P!=null&&P.nodeType)&&Sr(P)&&!Xr(P);function Jr(P){const U=this.config;let q,dt,ot;const xt=()=>{const At=dt.shift();if(At&&q&&Sr(q)&&At in q)return q=q[At],xt();if(!At)return q};Object.keys(U).forEach(At=>{q=P,dt=At.split("_"),ot=xt(),ct(ot)&&(U[At]=ot)}),this.api&&(this.state.orgConfig=P)}var Zr=Object.defineProperty,Qr=(P,U,q)=>U in P?Zr(P,U,{enumerable:!0,configurable:!0,writable:!0,value:q}):P[U]=q,Lr=(P,U,q)=>Qr(P,typeof U!="symbol"?U+"":U,q);class Gr{constructor(U={}){Lr(this,"$$"),Lr(this,"options"),Lr(this,"config"),this.options=U}loadConfig(){Jr.call(this,this.options)}$beforeInit(){}$init(){}$afterInit(){}$redraw(){}$willDestroy(){Object.keys(this).forEach(U=>{this[U]=null,delete this[U]})}}Lr(Gr,"version","4.0.1");var wr=Object.defineProperty,kr=(P,U,q)=>U in P?wr(P,U,{enumerable:!0,configurable:!0,writable:!0,value:q}):P[U]=q,qr=(P,U,q)=>kr(P,typeof U!="symbol"?U+"":U,q);const Hr=class zr extends Gr{constructor(U){return super(U),this}$init(){const{$$:U}=this;U.findClosest=this.findClosest.bind(this),U.getBubbleR=this.getBubbleR.bind(this),U.pointExpandedR=this.pointExpandedR.bind(this)}pointExpandedR(U){const q=this.getBubbleR(U),{expandScale:dt=1}=this.options;return zr.raiseFocusedBubbleLayer(U),this.changeCursorPoint(),q*dt}static raiseFocusedBubbleLayer(U){U.raise&&Wt(U.node().parentNode.parentNode).raise()}changeCursorPoint(){this.$$.$el.eventRect.style("cursor","pointer")}findClosest(U,q){const{$$:dt}=this;return U.filter(ot=>ot&&!dt.isBarType(ot.id)).reduce((ot,xt)=>dt.dist(xt,q)<this.getBubbleR(xt)?xt:ot,0)}getBubbleR(U){const{minR:q,maxR:dt}=this.options,ot=this.getZData(U);if(!ot)return q;const[xt,At]=this.$$.data.targets.reduce(([$t,Kt],Xt)=>{const or=this.getZData(Xt.values[0]);return[Math.min($t,or),Math.max(Kt,or)]},[1e4,0]),Dt=xt>0&&At===xt?0:ot/At;return Math.abs(Dt)*(dt-q)+q}getZData(U){return this.$$.isBubbleZType(U)?this.$$.getBubbleZData(U.value,"z"):U.value}};qr(Hr,"version","0.0.1");let _r=Hr}),85156:(function(i,c,t){var r=t(23583),n=t(82453),e=TypeError;i.exports=function(a){if(r(a))return a;throw new e(n(a)+" is not a function")}}),80042:(function(i,c,t){var r=t(11051),n=t(82453),e=TypeError;i.exports=function(a){if(r(a))return a;throw new e(n(a)+" is not a constructor")}}),59152:(function(i,c,t){var r=t(9205),n=TypeError;i.exports=function(e){if(r(e)==="DataView")return e;throw new n("Argument is not a DataView")}}),53408:(function(i,c,t){var r=t(52427),n=String,e=TypeError;i.exports=function(a){if(r(a))return a;throw new e("Can't set "+n(a)+" as a prototype")}}),76602:(function(i,c,t){var r=t(172).has;i.exports=function(n){return r(n),n}}),72145:(function(i){var c=TypeError;i.exports=function(t){if(typeof t=="string")return t;throw new c("Argument is not a string")}}),36390:(function(i,c,t){var r=t(86629),n=new r.WeakMap,e=r.set,a=r.remove;i.exports=function(o){return e(n,o,1),a(n,o),o}}),87975:(function(i,c,t){var r=t(86629).has;i.exports=function(n){return r(n),n}}),98447:(function(i,c,t){var r=t(38941),n=t(96499),e=t(11286),a=t(45526),o=t(25001),s=t(85156),u=t(5683),v=t(10512),f=t(18565),l=f("asyncDispose"),d=f("dispose"),g=e([].push),h=function(y,S){if(S==="async-dispose"){var E=v(y,l);return E!==void 0||(E=v(y,d),E===void 0)?E:function(){var m=this,x=r("Promise");return new x(function(I){n(E,m),I(void 0)})}}return v(y,d)},p=function(y,S,E){return arguments.length<3&&!u(y)&&(E=s(h(o(y),S))),E===void 0?function(){}:a(E,y)};i.exports=function(y,S,E,m){var x;if(arguments.length<4){if(u(S)&&E==="sync-dispose")return;x=p(S,E)}else x=p(void 0,E,m);g(y.stack,x)}}),23811:(function(i,c,t){var r=t(18565),n=t(5406),e=t(7831).f,a=r("unscopables"),o=Array.prototype;o[a]===void 0&&e(o,a,{configurable:!0,value:n(null)}),i.exports=function(s){o[a][s]=!0}}),24487:(function(i,c,t){var r=t(22149).charAt;i.exports=function(n,e,a){return e+(a&&r(n,e).length||1)}}),12833:(function(i,c,t){var r=t(95307),n=TypeError;i.exports=function(e,a){if(r(a,e))return e;throw new n("Incorrect invocation")}}),56902:(function(i,c,t){var r=t(37540),n=String,e=TypeError;i.exports=function(a){if(a===void 0||r(a))return a;throw new e(n(a)+" is not an object or undefined")}}),25001:(function(i,c,t){var r=t(37540),n=String,e=TypeError;i.exports=function(a){if(r(a))return a;throw new e(n(a)+" is not an object")}}),87332:(function(i,c,t){var r=t(9205),n=TypeError;i.exports=function(e){if(r(e)==="Uint8Array")return e;throw new n("Argument is not an Uint8Array")}}),3237:(function(i){i.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"}),58360:(function(i,c,t){var r=t(34246),n=t(84756),e=t(14274),a=r.ArrayBuffer,o=r.TypeError;i.exports=a&&n(a.prototype,"byteLength","get")||function(s){if(e(s)!=="ArrayBuffer")throw new o("ArrayBuffer expected");return s.byteLength}}),30736:(function(i,c,t){var r=t(34246),n=t(3237),e=t(58360),a=r.DataView;i.exports=function(o){if(!n||e(o)!==0)return!1;try{return new a(o),!1}catch(s){return!0}}}),72058:(function(i,c,t){var r=t(72069);i.exports=r(function(){if(typeof ArrayBuffer=="function"){var n=new ArrayBuffer(8);Object.isExtensible(n)&&Object.defineProperty(n,"a",{value:8})}})}),83843:(function(i,c,t){var r=t(30736),n=TypeError;i.exports=function(e){if(r(e))throw new n("ArrayBuffer is detached");return e}}),65006:(function(i,c,t){var r=t(34246),n=t(11286),e=t(84756),a=t(9450),o=t(83843),s=t(58360),u=t(63741),v=t(99050),f=r.structuredClone,l=r.ArrayBuffer,d=r.DataView,g=Math.max,h=Math.min,p=l.prototype,y=d.prototype,S=n(p.slice),E=e(p,"resizable","get"),m=e(p,"maxByteLength","get"),x=n(y.getInt8),I=n(y.setInt8);i.exports=(v||u)&&function(O,T,A){var C=s(O),R=T===void 0?C:a(T),N=!E||!E(O),M;if(o(O),v&&(O=f(O,{transfer:[O]}),C===R&&(A||N)))return O;if(C>=R&&(!A||N))M=S(O,0,R);else{var D=A&&!N&&m?{maxByteLength:g(R,m(O))}:void 0;M=new l(R,D);for(var F=new d(O),L=new d(M),$=h(R,C),B=0;B<$;B++)I(L,B,x(F,B))}return v||u(O),M}}),88037:(function(i,c,t){var r=t(3237),n=t(92986),e=t(34246),a=t(23583),o=t(37540),s=t(94879),u=t(9205),v=t(82453),f=t(90809),l=t(16142),d=t(85500),g=t(95307),h=t(26313),p=t(15861),y=t(18565),S=t(36374),E=t(82367),m=E.enforce,x=E.get,I=e.Int8Array,O=I&&I.prototype,T=e.Uint8ClampedArray,A=T&&T.prototype,C=I&&h(I),R=O&&h(O),N=Object.prototype,M=e.TypeError,D=y("toStringTag"),F=S("TYPED_ARRAY_TAG"),L="TypedArrayConstructor",$=r&&!!p&&u(e.opera)!=="Opera",B=!1,j,V,z,K={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},tt={BigInt64Array:8,BigUint64Array:8},w=function(ut){if(!o(ut))return!1;var Et=u(ut);return Et==="DataView"||s(K,Et)||s(tt,Et)},Z=function(k){var ut=h(k);if(o(ut)){var Et=x(ut);return Et&&s(Et,L)?Et[L]:Z(ut)}},H=function(k){if(!o(k))return!1;var ut=u(k);return s(K,ut)||s(tt,ut)},W=function(k){if(H(k))return k;throw new M("Target is not a typed array")},J=function(k){if(a(k)&&(!p||g(C,k)))return k;throw new M(v(k)+" is not a typed array constructor")},et=function(k,ut,Et,Mt){if(n){if(Et)for(var Ot in K){var Rt=e[Ot];if(Rt&&s(Rt.prototype,k))try{delete Rt.prototype[k]}catch(Bt){try{Rt.prototype[k]=ut}catch(Ht){}}}(!R[k]||Et)&&l(R,k,Et?ut:$&&O[k]||ut,Mt)}},yt=function(k,ut,Et){var Mt,Ot;if(n){if(p){if(Et){for(Mt in K)if(Ot=e[Mt],Ot&&s(Ot,k))try{delete Ot[k]}catch(Rt){}}if(!C[k]||Et)try{return l(C,k,Et?ut:$&&C[k]||ut)}catch(Rt){}else return}for(Mt in K)Ot=e[Mt],Ot&&(!Ot[k]||Et)&&l(Ot,k,ut)}};for(j in K)V=e[j],z=V&&V.prototype,z?m(z)[L]=V:$=!1;for(j in tt)V=e[j],z=V&&V.prototype,z&&(m(z)[L]=V);if((!$||!a(C)||C===Function.prototype)&&(C=function(){throw new M("Incorrect invocation")},$))for(j in K)e[j]&&p(e[j],C);if((!$||!R||R===N)&&(R=C.prototype,$))for(j in K)e[j]&&p(e[j].prototype,R);if($&&h(A)!==R&&p(A,R),n&&!s(R,D)){B=!0,d(R,D,{configurable:!0,get:function(){return o(this)?this[F]:void 0}});for(j in K)e[j]&&f(e[j].prototype,F,j)}i.exports={NATIVE_ARRAY_BUFFER_VIEWS:$,TYPED_ARRAY_TAG:B&&F,aTypedArray:W,aTypedArrayConstructor:J,exportTypedArrayMethod:et,exportTypedArrayStaticMethod:yt,getTypedArrayConstructor:Z,isView:w,isTypedArray:H,TypedArray:C,TypedArrayPrototype:R}}),17468:(function(i,c,t){var r=t(34246),n=t(11286),e=t(92986),a=t(3237),o=t(86588),s=t(90809),u=t(85500),v=t(2725),f=t(72069),l=t(12833),d=t(12105),g=t(9450),h=t(93279),p=t(25212),y=t(26313),S=t(15861),E=t(43011),m=t(22806),x=t(32345),I=t(93706),O=t(78401),T=t(82367),A=o.PROPER,C=o.CONFIGURABLE,R="ArrayBuffer",N="DataView",M="prototype",D="Wrong length",F="Wrong index",L=T.getterFor(R),$=T.getterFor(N),B=T.set,j=r[R],V=j,z=V&&V[M],K=r[N],tt=K&&K[M],w=Object.prototype,Z=r.Array,H=r.RangeError,W=n(E),J=n([].reverse),et=p.pack,yt=p.unpack,k=function(vt){return[vt&255]},ut=function(vt){return[vt&255,vt>>8&255]},Et=function(vt){return[vt&255,vt>>8&255,vt>>16&255,vt>>24&255]},Mt=function(vt){return vt[3]<<24|vt[2]<<16|vt[1]<<8|vt[0]},Ot=function(vt){return et(h(vt),23,4)},Rt=function(vt){return et(vt,52,8)},Bt=function(vt,St,mt){u(vt[M],St,{configurable:!0,get:function(){return mt(this)[St]}})},Ht=function(vt,St,mt,Yt){var ft=$(vt),ht=g(mt),Ct=!!Yt;if(ht+St>ft.byteLength)throw new H(F);var Tt=ft.bytes,Gt=ht+ft.byteOffset,Jt=m(Tt,Gt,Gt+St);return Ct?Jt:J(Jt)},jt=function(vt,St,mt,Yt,ft,ht){var Ct=$(vt),Tt=g(mt),Gt=Yt(+ft),Jt=!!ht;if(Tt+St>Ct.byteLength)throw new H(F);for(var X=Ct.bytes,st=Tt+Ct.byteOffset,Q=0;Q<St;Q++)X[st+Q]=Gt[Jt?Q:St-Q-1]};if(!a)V=function(St){l(this,z);var mt=g(St);B(this,{type:R,bytes:W(Z(mt),0),byteLength:mt}),e||(this.byteLength=mt,this.detached=!1)},z=V[M],K=function(St,mt,Yt){l(this,tt),l(St,z);var ft=L(St),ht=ft.byteLength,Ct=d(mt);if(Ct<0||Ct>ht)throw new H("Wrong offset");if(Yt=Yt===void 0?ht-Ct:g(Yt),Ct+Yt>ht)throw new H(D);B(this,{type:N,buffer:St,byteLength:Yt,byteOffset:Ct,bytes:ft.bytes}),e||(this.buffer=St,this.byteLength=Yt,this.byteOffset=Ct)},tt=K[M],e&&(Bt(V,"byteLength",L),Bt(K,"buffer",$),Bt(K,"byteLength",$),Bt(K,"byteOffset",$)),v(tt,{getInt8:function(St){return Ht(this,1,St)[0]<<24>>24},getUint8:function(St){return Ht(this,1,St)[0]},getInt16:function(St){var mt=Ht(this,2,St,arguments.length>1?arguments[1]:!1);return(mt[1]<<8|mt[0])<<16>>16},getUint16:function(St){var mt=Ht(this,2,St,arguments.length>1?arguments[1]:!1);return mt[1]<<8|mt[0]},getInt32:function(St){return Mt(Ht(this,4,St,arguments.length>1?arguments[1]:!1))},getUint32:function(St){return Mt(Ht(this,4,St,arguments.length>1?arguments[1]:!1))>>>0},getFloat32:function(St){return yt(Ht(this,4,St,arguments.length>1?arguments[1]:!1),23)},getFloat64:function(St){return yt(Ht(this,8,St,arguments.length>1?arguments[1]:!1),52)},setInt8:function(St,mt){jt(this,1,St,k,mt)},setUint8:function(St,mt){jt(this,1,St,k,mt)},setInt16:function(St,mt){jt(this,2,St,ut,mt,arguments.length>2?arguments[2]:!1)},setUint16:function(St,mt){jt(this,2,St,ut,mt,arguments.length>2?arguments[2]:!1)},setInt32:function(St,mt){jt(this,4,St,Et,mt,arguments.length>2?arguments[2]:!1)},setUint32:function(St,mt){jt(this,4,St,Et,mt,arguments.length>2?arguments[2]:!1)},setFloat32:function(St,mt){jt(this,4,St,Ot,mt,arguments.length>2?arguments[2]:!1)},setFloat64:function(St,mt){jt(this,8,St,Rt,mt,arguments.length>2?arguments[2]:!1)}});else{var Pt=A&&j.name!==R;!f(function(){j(1)})||!f(function(){new j(-1)})||f(function(){return new j,new j(1.5),new j(NaN),j.length!==1||Pt&&!C})?(V=function(St){return l(this,z),x(new j(g(St)),this,V)},V[M]=z,z.constructor=V,I(V,j)):Pt&&C&&s(j,"name",R),S&&y(tt)!==w&&S(tt,w);var Ft=new K(new V(2)),bt=n(tt.setInt8);Ft.setInt8(0,2147483648),Ft.setInt8(1,2147483649),(Ft.getInt8(0)||!Ft.getInt8(1))&&v(tt,{setInt8:function(St,mt){bt(this,St,mt<<24>>24)},setUint8:function(St,mt){bt(this,St,mt<<24>>24)}},{unsafe:!0})}O(V,R),O(K,N),i.exports={ArrayBuffer:V,DataView:K}}),81499:(function(i,c,t){var r=t(49671),n=t(4652),e=t(82628),a=t(12384),o=Math.min;i.exports=[].copyWithin||function(u,v){var f=r(this),l=e(f),d=n(u,l),g=n(v,l),h=arguments.length>2?arguments[2]:void 0,p=o((h===void 0?l:n(h,l))-g,l-d),y=1;for(g<d&&d<g+p&&(y=-1,g+=p-1,d+=p-1);p-- >0;)g in f?f[d]=f[g]:a(f,d),d+=y,g+=y;return f}}),43011:(function(i,c,t){var r=t(49671),n=t(4652),e=t(82628);i.exports=function(o){for(var s=r(this),u=e(s),v=arguments.length,f=n(v>1?arguments[1]:void 0,u),l=v>2?arguments[2]:void 0,d=l===void 0?u:n(l,u);d>f;)s[f++]=o;return s}}),13349:(function(i,c,t){var r=t(66655).forEach,n=t(6148),e=n("forEach");i.exports=e?[].forEach:function(o){return r(this,o,arguments.length>1?arguments[1]:void 0)}}),18319:(function(i,c,t){var r=t(45526),n=t(11286),e=t(11051),a=t(46660),o=t(90619),s=t(10613),u=t(81077),v=t(10512),f=t(38941),l=t(65470),d=t(18565),g=t(56116),h=t(56245).toArray,p=d("asyncIterator"),y=n(l("Array","values")),S=n(y([]).next),E=function(){return new m(this)},m=function(x){this.iterator=y(x)};m.prototype.next=function(){return S(this.iterator)},i.exports=function(I){var O=this,T=arguments.length,A=T>1?arguments[1]:void 0,C=T>2?arguments[2]:void 0;return new(f("Promise"))(function(R){A!==void 0&&(A=r(A,C));var N=v(I,p),M=N?void 0:u(I)||E,D=e(O)?new O:[],F=N?a(I,N):new g(s(o(I,M)));R(h(F,A,D))})}}),5220:(function(i,c,t){var r=t(82628);i.exports=function(n,e,a){for(var o=0,s=arguments.length>2?a:r(e),u=new n(s);s>o;)u[o]=e[o++];return u}}),48258:(function(i,c,t){var r=t(45526),n=t(96499),e=t(49671),a=t(39969),o=t(48199),s=t(11051),u=t(82628),v=t(84082),f=t(2213),l=t(90619),d=t(81077),g=t(99797),h=Array;i.exports=function(y){var S=s(this),E=arguments.length,m=E>1?arguments[1]:void 0,x=m!==void 0;x&&(m=r(m,E>2?arguments[2]:void 0));var I=e(y),O=d(I),T=0,A,C,R,N,M,D;if(O&&!(this===h&&o(O)))for(C=S?new this:[],N=l(I,O),M=N.next;!(R=n(M,N)).done;T++){D=x?a(N,m,[R.value,T],!0):R.value;try{v(C,T,D)}catch(F){g(N,"throw",F)}}else for(A=u(I),C=S?new this(A):h(A);A>T;T++)D=x?m(I[T],T):I[T],v(C,T,D);return f(C,T),C}}),94319:(function(i,c,t){var r=t(36859),n=t(4652),e=t(82628),a=function(o){return function(s,u,v){var f=r(s),l=e(f);if(l===0)return!o&&-1;var d=n(v,l),g;if(o&&u!==u){for(;l>d;)if(g=f[d++],g!==g)return!0}else for(;l>d;d++)if((o||d in f)&&f[d]===u)return o||d||0;return!o&&-1}};i.exports={includes:a(!0),indexOf:a(!1)}}),73849:(function(i,c,t){var r=t(45526),n=t(72181),e=t(49671),a=t(82628),o=function(s){var u=s===1;return function(v,f,l){for(var d=e(v),g=n(d),h=a(g),p=r(f,l),y,S;h-- >0;)if(y=g[h],S=p(y,h,d),S)switch(s){case 0:return y;case 1:return h}return u?-1:void 0}};i.exports={findLast:o(0),findLastIndex:o(1)}}),66655:(function(i,c,t){var r=t(45526),n=t(72181),e=t(49671),a=t(82628),o=t(62083),s=t(84082),u=function(v){var f=v===1,l=v===2,d=v===3,g=v===4,h=v===6,p=v===7,y=v===5||h;return function(S,E,m){for(var x=e(S),I=n(x),O=a(I),T=r(E,m),A=0,C=0,R=f?o(S,O):l||p?o(S,0):void 0,N,M;O>A;A++)if((y||A in I)&&(N=I[A],M=T(N,A,x),v))if(f)s(R,A,M);else if(M)switch(v){case 3:return!0;case 5:return N;case 6:return A;case 2:s(R,C++,N)}else switch(v){case 4:return!1;case 7:s(R,C++,N)}return h?-1:d||g?g:R}};i.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}}),58465:(function(i,c,t){var r=t(66543),n=t(36859),e=t(12105),a=t(82628),o=t(6148),s=Math.min,u=[].lastIndexOf,v=!!u&&1/[1].lastIndexOf(1,-0)<0,f=o("lastIndexOf"),l=v||!f;i.exports=l?function(g){if(v)return r(u,this,arguments)||0;var h=n(this),p=a(h);if(p===0)return-1;var y=p-1;for(arguments.length>1&&(y=s(y,e(arguments[1]))),y<0&&(y=p+y);y>=0;y--)if(y in h&&h[y]===g)return y||0;return-1}:u}),52183:(function(i,c,t){var r=t(72069),n=t(18565),e=t(44241),a=n("species");i.exports=function(o){return e>=51||!r(function(){var s=[],u=s.constructor={};return u[a]=function(){return{foo:1}},s[o](Boolean).foo!==1})}}),6148:(function(i,c,t){var r=t(72069);i.exports=function(n,e){var a=[][n];return!!a&&r(function(){a.call(null,e||function(){return 1},1)})}}),97264:(function(i,c,t){var r=t(85156),n=t(49671),e=t(72181),a=t(82628),o=TypeError,s="Reduce of empty array with no initial value",u=function(v){return function(f,l,d,g){var h=n(f),p=e(h),y=a(h);if(r(l),y===0&&d<2)throw new o(s);var S=v?y-1:0,E=v?-1:1;if(d<2)for(;;){if(S in p){g=p[S],S+=E;break}if(S+=E,v?S<0:y<=S)throw new o(s)}for(;v?S>=0:y>S;S+=E)S in p&&(g=l(g,p[S],S,h));return g}};i.exports={left:u(!1),right:u(!0)}}),2213:(function(i,c,t){var r=t(92986),n=t(3438),e=TypeError,a=Object.getOwnPropertyDescriptor,o=r&&!(function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(s){return s instanceof TypeError}})();i.exports=o?function(s,u){if(n(s)&&!a(s,"length").writable)throw new e("Cannot set read only .length");return s.length=u}:function(s,u){return s.length=u}}),22806:(function(i,c,t){var r=t(11286);i.exports=r([].slice)}),13270:(function(i,c,t){var r=t(22806),n=Math.floor,e=function(a,o){var s=a.length;if(s<8)for(var u=1,v,f;u<s;){for(f=u,v=a[u];f&&o(a[f-1],v)>0;)a[f]=a[--f];f!==u++&&(a[f]=v)}else for(var l=n(s/2),d=e(r(a,0,l),o),g=e(r(a,l),o),h=d.length,p=g.length,y=0,S=0;y<h||S<p;)a[y+S]=y<h&&S<p?o(d[y],g[S])<=0?d[y++]:g[S++]:y<h?d[y++]:g[S++];return a};i.exports=e}),37555:(function(i,c,t){var r=t(3438),n=t(11051),e=t(37540),a=t(18565),o=a("species"),s=Array;i.exports=function(u){var v;return r(u)&&(v=u.constructor,n(v)&&(v===s||r(v.prototype))?v=void 0:e(v)&&(v=v[o],v===null&&(v=void 0))),v===void 0?s:v}}),62083:(function(i,c,t){var r=t(37555);i.exports=function(n,e){return new(r(n))(e===0?0:e)}}),56116:(function(i,c,t){var r=t(96499),n=t(25001),e=t(5406),a=t(10512),o=t(2725),s=t(82367),u=t(99797),v=t(38941),f=t(7828),l=t(10659),d=v("Promise"),g="AsyncFromSyncIterator",h=s.set,p=s.getterFor(g),y=function(E,m,x,I,O){var T=E.done;d.resolve(E.value).then(function(A){m(l(A,T))},function(A){if(!T&&O)try{u(I,"throw",A)}catch(C){A=C}x(A)})},S=function(m){m.type=g,h(this,m)};S.prototype=o(e(f),{next:function(){var m=p(this),x=arguments.length>0,I=x?arguments[0]:void 0;return new d(function(O,T){var A=n(x?r(m.next,m.iterator,I):r(m.next,m.iterator));y(A,O,T,m.iterator,!0)})},return:function(){var E=p(this),m=E.iterator,x=arguments.length>0,I=x?arguments[0]:void 0;return new d(function(O,T){var A=a(m,"return");if(A===void 0)return O(l(I,!0));var C=n(x?r(A,m,I):r(A,m));y(C,O,T,m)})},throw:function(){var E=p(this),m=E.iterator,x=arguments.length>0,I=x?arguments[0]:void 0;return new d(function(O,T){var A=a(m,"throw");if(A===void 0){try{u(m,"normal")}catch(R){return T(R)}return T(new TypeError("The iterator does not provide a throw method"))}var C=n(x?r(A,m,I):r(A,m));y(C,O,T,m,!0)})}}),i.exports=S}),65778:(function(i,c,t){var r=t(96499),n=t(25001),e=t(38941),a=t(10512);i.exports=function(o,s,u,v){try{var f=a(o,"return");if(f)return e("Promise").resolve(r(f,o)).then(function(l){try{s!==v&&n(l)}catch(d){v(d);return}s(u)},function(l){s===v?s(u):v(l)})}catch(l){return v(s===v?u:l)}s(u)}}),56245:(function(i,c,t){var r=t(96499),n=t(85156),e=t(25001),a=t(37540),o=t(20095),s=t(38941),u=t(84082),v=t(2213),f=t(10613),l=t(65778),d=function(g){var h=g===0,p=g===1,y=g===2,S=g===3;return function(E,m,x){e(E);var I=m!==void 0;(I||!h)&&n(m);var O=f(E),T=s("Promise"),A=O.iterator,C=O.next,R=0;return new T(function(N,M){var D=function(L){l(A,M,L,M)},F=function(){try{try{o(R)}catch(L){return D(L)}T.resolve(e(r(C,A))).then(function(L){try{if(e(L).done)h?(v(x,R),N(x)):N(S?!1:y||void 0);else{var $=L.value;try{if(I){var B=R++,j=m($,B),V=function(z){if(p)F();else if(y)z?F():l(A,N,!1,M);else if(h)try{u(x,B,z),F()}catch(K){D(K)}else z?l(A,N,S||$,M):F()};a(j)?T.resolve(j).then(V,D):V(j)}else u(x,R++,$),F()}catch(z){D(z)}}}catch(z){M(z)}},M)}catch(L){M(L)}};F()})}};i.exports={toArray:d(0),forEach:d(1),every:d(2),some:d(3),find:d(4)}}),7828:(function(i,c,t){var r=t(34246),n=t(70443),e=t(23583),a=t(5406),o=t(26313),s=t(16142),u=t(18565),v=t(70457),f="USE_FUNCTION_CONSTRUCTOR",l=u("asyncIterator"),d=r.AsyncIterator,g=n.AsyncIteratorPrototype,h,p;if(g)h=g;else if(e(d))h=d.prototype;else if(n[f]||r[f])try{p=o(o(o(Function("return async function*(){}()")()))),o(p)===Object.prototype&&(h=p)}catch(y){}h?v&&(h=a(h)):h={},e(h[l])||s(h,l,function(){return this}),i.exports=h}),6210:(function(i){var c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",t=c+"+/",r=c+"-_",n=function(e){for(var a={},o=0;o<64;o++)a[e.charAt(o)]=o;return a};i.exports={i2c:t,c2i:n(t),i2cUrl:r,c2iUrl:n(r)}}),39969:(function(i,c,t){var r=t(25001),n=t(99797);i.exports=function(e,a,o,s){try{return s?a(r(o)[0],o[1]):a(o)}catch(u){n(e,"throw",u)}}}),97494:(function(i,c,t){var r=t(18565),n=r("iterator"),e=!1;try{var a=0,o={next:function(){return{done:!!a++}},return:function(){e=!0}};o[n]=function(){return this},Array.from(o,function(){throw 2})}catch(s){}i.exports=function(s,u){try{if(!u&&!e)return!1}catch(l){return!1}var v=!1;try{var f={};f[n]=function(){return{next:function(){return{done:v=!0}}}},s(f)}catch(l){}return v}}),14274:(function(i,c,t){var r=t(11286),n=r({}.toString),e=r("".slice);i.exports=function(a){return e(n(a),8,-1)}}),9205:(function(i,c,t){var r=t(67878),n=t(23583),e=t(14274),a=t(18565),o=a("toStringTag"),s=Object,u=e((function(){return arguments})())==="Arguments",v=function(f,l){try{return f[l]}catch(d){}};i.exports=r?e:function(f){var l,d,g;return f===void 0?"Undefined":f===null?"Null":typeof(d=v(l=s(f),o))=="string"?d:u?e(l):(g=e(l))==="Object"&&n(l.callee)?"Arguments":g}}),34440:(function(i,c,t){var r=t(5406),n=t(85500),e=t(2725),a=t(45526),o=t(12833),s=t(5683),u=t(55902),v=t(10218),f=t(10659),l=t(36167),d=t(92986),g=t(31853).fastKey,h=t(82367),p=h.set,y=h.getterFor;i.exports={getConstructor:function(S,E,m,x){var I=S(function(R,N){o(R,O),p(R,{type:E,index:r(null),first:null,last:null,size:0}),d||(R.size=0),s(N)||u(N,R[x],{that:R,AS_ENTRIES:m})}),O=I.prototype,T=y(E),A=function(R,N,M){var D=T(R),F=C(R,N),L,$;return F?F.value=M:(D.last=F={index:$=g(N,!0),key:N,value:M,previous:L=D.last,next:null,removed:!1},D.first||(D.first=F),L&&(L.next=F),d?D.size++:R.size++,$!=="F"&&(D.index[$]=F)),R},C=function(R,N){var M=T(R),D=g(N),F;if(D!=="F")return M.index[D];for(F=M.first;F;F=F.next)if(F.key===N)return F};return e(O,{clear:function(){for(var N=this,M=T(N),D=M.first;D;)D.removed=!0,D.previous&&(D.previous=D.previous.next=null),D=D.next;M.first=M.last=null,M.index=r(null),d?M.size=0:N.size=0},delete:function(R){var N=this,M=T(N),D=C(N,R);if(D){var F=D.next,L=D.previous;delete M.index[D.index],D.removed=!0,L&&(L.next=F),F&&(F.previous=L),M.first===D&&(M.first=F),M.last===D&&(M.last=L),d?M.size--:N.size--}return!!D},forEach:function(N){for(var M=T(this),D=a(N,arguments.length>1?arguments[1]:void 0),F;F=F?F.next:M.first;)for(D(F.value,F.key,this);F&&F.removed;)F=F.previous},has:function(N){return!!C(this,N)}}),e(O,m?{get:function(N){var M=C(this,N);return M&&M.value},set:function(N,M){return A(this,N===0?0:N,M)}}:{add:function(N){return A(this,N=N===0?0:N,N)}}),d&&n(O,"size",{configurable:!0,get:function(){return T(this).size}}),I},setStrong:function(S,E,m){var x=E+" Iterator",I=y(E),O=y(x);v(S,E,function(T,A){p(this,{type:x,target:T,state:I(T),kind:A,last:null})},function(){for(var T=O(this),A=T.kind,C=T.last;C&&C.removed;)C=C.previous;return!T.target||!(T.last=C=C?C.next:T.state.first)?(T.target=null,f(void 0,!0)):f(A==="keys"?C.key:A==="values"?C.value:[C.key,C.value],!1)},m?"entries":"values",!m,!0),l(E)}}}),94667:(function(i,c,t){var r=t(11286),n=t(2725),e=t(31853).getWeakData,a=t(12833),o=t(25001),s=t(5683),u=t(37540),v=t(55902),f=t(66655),l=t(94879),d=t(82367),g=d.set,h=d.getterFor,p=f.find,y=f.findIndex,S=r([].splice),E=0,m=function(O){return O.frozen||(O.frozen=new x)},x=function(){this.entries=[]},I=function(O,T){return p(O.entries,function(A){return A[0]===T})};x.prototype={get:function(O){var T=I(this,O);if(T)return T[1]},has:function(O){return!!I(this,O)},set:function(O,T){var A=I(this,O);A?A[1]=T:this.entries.push([O,T])},delete:function(O){var T=y(this.entries,function(A){return A[0]===O});return~T&&S(this.entries,T,1),!!~T}},i.exports={getConstructor:function(O,T,A,C){var R=O(function(F,L){a(F,N),g(F,{type:T,id:E++,frozen:null}),s(L)||v(L,F[C],{that:F,AS_ENTRIES:A})}),N=R.prototype,M=h(T),D=function(F,L,$){var B=M(F),j=e(o(L),!0);return j===!0?m(B).set(L,$):j[B.id]=$,F};return n(N,{delete:function(F){var L=M(this);if(!u(F))return!1;var $=e(F);return $===!0?m(L).delete(F):$&&l($,L.id)&&delete $[L.id]},has:function(L){var $=M(this);if(!u(L))return!1;var B=e(L);return B===!0?m($).has(L):B&&l(B,$.id)}}),n(N,A?{get:function(L){var $=M(this);if(u(L)){var B=e(L);if(B===!0)return m($).get(L);if(B)return B[$.id]}},set:function(L,$){return D(this,L,$)}}:{add:function(L){return D(this,L,!0)}}),R}}}),89378:(function(i,c,t){var r=t(14304),n=t(34246),e=t(11286),a=t(13278),o=t(16142),s=t(31853),u=t(55902),v=t(12833),f=t(23583),l=t(5683),d=t(37540),g=t(72069),h=t(97494),p=t(78401),y=t(32345);i.exports=function(S,E,m){var x=S.indexOf("Map")!==-1,I=S.indexOf("Weak")!==-1,O=x?"set":"add",T=n[S],A=T&&T.prototype,C=T,R={},N=function(j){var V=e(A[j]);o(A,j,j==="add"?function(K){return V(this,K===0?0:K),this}:j==="delete"?function(z){return I&&!d(z)?!1:V(this,z===0?0:z)}:j==="get"?function(K){return I&&!d(K)?void 0:V(this,K===0?0:K)}:j==="has"?function(K){return I&&!d(K)?!1:V(this,K===0?0:K)}:function(K,tt){return V(this,K===0?0:K,tt),this})},M=a(S,!f(T)||!(I||A.forEach&&!g(function(){new T().entries().next()})));if(M)C=m.getConstructor(E,S,x,O),s.enable();else if(a(S,!0)){var D=new C,F=D[O](I?{}:-0,1)!==D,L=g(function(){D.has(1)}),$=h(function(j){new T(j)}),B=!I&&g(function(){for(var j=new T,V=5;V--;)j[O](V,V);return!j.has(-0)});$||(C=E(function(j,V){v(j,A);var z=y(new T,j,C);return l(V)||u(V,z[O],{that:z,AS_ENTRIES:x}),z}),C.prototype=A,A.constructor=C),(L||B)&&(N("delete"),N("has"),x&&N("get")),(B||F)&&N(O),I&&A.clear&&delete A.clear}return R[S]=C,r({global:!0,constructor:!0,forced:C!==T},R),p(C,S),I||m.setStrong(C,S,x),C}}),93706:(function(i,c,t){var r=t(94879),n=t(16885),e=t(71349),a=t(7831);i.exports=function(o,s,u){for(var v=n(s),f=a.f,l=e.f,d=0;d<v.length;d++){var g=v[d];!r(o,g)&&!(u&&r(u,g))&&f(o,g,l(s,g))}}}),8790:(function(i,c,t){var r=t(18565),n=r("match");i.exports=function(e){var a=/./;try{"/./"[e](a)}catch(o){try{return a[n]=!1,"/./"[e](a)}catch(s){}}return!1}}),87501:(function(i,c,t){var r=t(72069);i.exports=!r(function(){function n(){}return n.prototype.constructor=null,Object.getPrototypeOf(new n)!==n.prototype})}),68422:(function(i,c,t){var r=t(11286),n=t(2068),e=t(17361),a=/"/g,o=r("".replace);i.exports=function(s,u,v,f){var l=e(n(s)),d="<"+u;return v!==""&&(d+=" "+v+'="'+o(e(f),a,"&quot;")+'"'),d+">"+l+"</"+u+">"}}),10659:(function(i){i.exports=function(c,t){return{value:c,done:t}}}),90809:(function(i,c,t){var r=t(92986),n=t(7831),e=t(18526);i.exports=r?function(a,o,s){return n.f(a,o,e(1,s))}:function(a,o,s){return a[o]=s,a}}),18526:(function(i){i.exports=function(c,t){return{enumerable:!(c&1),configurable:!(c&2),writable:!(c&4),value:t}}}),84082:(function(i,c,t){var r=t(92986),n=t(7831),e=t(18526);i.exports=function(a,o,s){r?n.f(a,o,e(0,s)):a[o]=s}}),11890:(function(i,c,t){var r=t(11286),n=t(72069),e=t(61607).start,a=RangeError,o=isFinite,s=Math.abs,u=Date.prototype,v=u.toISOString,f=r(u.getTime),l=r(u.getUTCDate),d=r(u.getUTCFullYear),g=r(u.getUTCHours),h=r(u.getUTCMilliseconds),p=r(u.getUTCMinutes),y=r(u.getUTCMonth),S=r(u.getUTCSeconds);i.exports=n(function(){return v.call(new Date(-50000000000001))!=="0385-07-25T07:06:39.999Z"})||!n(function(){v.call(new Date(NaN))})?function(){if(!o(f(this)))throw new a("Invalid time value");var m=this,x=d(m),I=h(m),O=x<0?"-":x>9999?"+":"";return O+e(s(x),O?6:4,0)+"-"+e(y(m)+1,2,0)+"-"+e(l(m),2,0)+"T"+e(g(m),2,0)+":"+e(p(m),2,0)+":"+e(S(m),2,0)+"."+e(I,3,0)+"Z"}:v}),84306:(function(i,c,t){var r=t(25001),n=t(2064),e=TypeError;i.exports=function(a){if(r(this),a==="string"||a==="default")a="string";else if(a!=="number")throw new e("Incorrect hint");return n(this,a)}}),85500:(function(i,c,t){var r=t(13749),n=t(7831);i.exports=function(e,a,o){return o.get&&r(o.get,a,{getter:!0}),o.set&&r(o.set,a,{setter:!0}),n.f(e,a,o)}}),16142:(function(i,c,t){var r=t(23583),n=t(7831),e=t(13749),a=t(36003);i.exports=function(o,s,u,v){v||(v={});var f=v.enumerable,l=v.name!==void 0?v.name:s;if(r(u)&&e(u,l,v),v.global)f?o[s]=u:a(s,u);else{try{v.unsafe?o[s]&&(f=!0):delete o[s]}catch(d){}f?o[s]=u:n.f(o,s,{value:u,enumerable:!1,configurable:!v.nonConfigurable,writable:!v.nonWritable})}return o}}),2725:(function(i,c,t){var r=t(16142);i.exports=function(n,e,a){for(var o in e)r(n,o,e[o],a);return n}}),36003:(function(i,c,t){var r=t(34246),n=Object.defineProperty;i.exports=function(e,a){try{n(r,e,{value:a,configurable:!0,writable:!0})}catch(o){r[e]=a}return a}}),12384:(function(i,c,t){var r=t(82453),n=TypeError;i.exports=function(e,a){if(!delete e[a])throw new n("Cannot delete property "+r(a)+" of "+r(e))}}),92986:(function(i,c,t){var r=t(72069);i.exports=!r(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})}),63741:(function(i,c,t){var r=t(34246),n=t(81191),e=t(99050),a=r.structuredClone,o=r.ArrayBuffer,s=r.MessageChannel,u=!1,v,f,l,d;if(e)u=function(g){a(g,{transfer:[g]})};else if(o)try{s||(v=n("worker_threads"),v&&(s=v.MessageChannel)),s&&(f=new s,l=new o(2),d=function(g){f.port1.postMessage(null,[g])},l.byteLength===2&&(d(l),l.byteLength===0&&(u=d)))}catch(g){}i.exports=u}),85501:(function(i,c,t){var r=t(34246),n=t(37540),e=r.document,a=n(e)&&n(e.createElement);i.exports=function(o){return a?e.createElement(o):{}}}),20095:(function(i){var c=TypeError,t=9007199254740991;i.exports=function(r){if(r>t)throw new c("Maximum allowed index exceeded");return r}}),74408:(function(i){i.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}}),93014:(function(i){i.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}}),39882:(function(i,c,t){var r=t(85501),n=r("span").classList,e=n&&n.constructor&&n.constructor.prototype;i.exports=e===Object.prototype?void 0:e}),75785:(function(i){i.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]}),507:(function(i,c,t){var r=t(18257),n=r.match(/firefox\/(\d+)/i);i.exports=!!n&&+n[1]}),17417:(function(i,c,t){var r=t(18257);i.exports=/MSIE|Trident/.test(r)}),7307:(function(i,c,t){var r=t(18257);i.exports=/ipad|iphone|ipod/i.test(r)&&typeof Pebble!="undefined"}),5286:(function(i,c,t){var r=t(18257);i.exports=/ipad|iphone|ipod/i.test(r)&&/applewebkit/i.test(r)}),91707:(function(i,c,t){var r=t(21501);i.exports=r==="NODE"}),67722:(function(i,c,t){var r=t(18257);i.exports=/web0s(?!.*chrome)/i.test(r)}),18257:(function(i,c,t){var r=t(34246),n=r.navigator,e=n&&n.userAgent;i.exports=e?String(e):""}),44241:(function(i,c,t){var r=t(34246),n=t(18257),e=r.process,a=r.Deno,o=e&&e.versions||a&&a.version,s=o&&o.v8,u,v;s&&(u=s.split("."),v=u[0]>0&&u[0]<4?1:+(u[0]+u[1])),!v&&n&&(u=n.match(/Edge\/(\d+)/),(!u||u[1]>=74)&&(u=n.match(/Chrome\/(\d+)/),u&&(v=+u[1]))),i.exports=v}),66577:(function(i,c,t){var r=t(18257),n=r.match(/AppleWebKit\/(\d+)\./);i.exports=!!n&&+n[1]}),21501:(function(i,c,t){var r=t(34246),n=t(18257),e=t(14274),a=function(o){return n.slice(0,o.length)===o};i.exports=(function(){return a("Bun/")?"BUN":a("Cloudflare-Workers")?"CLOUDFLARE":a("Deno/")?"DENO":a("Node.js/")?"NODE":r.Bun&&typeof Bun.version=="string"?"BUN":r.Deno&&typeof Deno.version=="object"?"DENO":e(r.process)==="process"?"NODE":r.window&&r.document?"BROWSER":"REST"})()}),40851:(function(i,c,t){var r=t(11286),n=Error,e=r("".replace),a=(function(u){return String(new n(u).stack)})("zxcasd"),o=/\n\s*at [^:]*:[^\n]*/,s=o.test(a);i.exports=function(u,v){if(s&&typeof u=="string"&&!n.prepareStackTrace)for(;v--;)u=e(u,o,"");return u}}),97077:(function(i,c,t){var r=t(90809),n=t(40851),e=t(16929),a=Error.captureStackTrace;i.exports=function(o,s,u,v){e&&(a?a(o,s):r(o,"stack",n(u,v)))}}),16929:(function(i,c,t){var r=t(72069),n=t(18526);i.exports=!r(function(){var e=new Error("a");return"stack"in e?(Object.defineProperty(e,"stack",n(1,7)),e.stack!==7):!0})}),58434:(function(i,c,t){var r=t(92986),n=t(72069),e=t(25001),a=t(15453),o=Error.prototype.toString,s=n(function(){if(r){var u=Object.create(Object.defineProperty({},"name",{get:function(){return this===u}}));if(o.call(u)!=="true")return!0}return o.call({message:1,name:2})!=="2: 1"||o.call({})!=="Error"});i.exports=s?function(){var v=e(this),f=a(v.name,"Error"),l=a(v.message);return f?l?f+": "+l:f:l}:o}),14304:(function(i,c,t){var r=t(34246),n=t(71349).f,e=t(90809),a=t(16142),o=t(36003),s=t(93706),u=t(13278);i.exports=function(v,f){var l=v.target,d=v.global,g=v.stat,h,p,y,S,E,m;if(d?p=r:g?p=r[l]||o(l,{}):p=r[l]&&r[l].prototype,p)for(y in f){if(E=f[y],v.dontCallGetSet?(m=n(p,y),S=m&&m.value):S=p[y],h=u(d?y:l+(g?".":"#")+y,v.forced),!h&&S!==void 0){if(typeof E==typeof S)continue;s(E,S)}(v.sham||S&&S.sham)&&e(E,"sham",!0),a(p,y,E,v)}}}),72069:(function(i){i.exports=function(c){try{return!!c()}catch(t){return!0}}}),63194:(function(i,c,t){t(31145);var r=t(96499),n=t(16142),e=t(44381),a=t(72069),o=t(18565),s=t(90809),u=o("species"),v=RegExp.prototype;i.exports=function(f,l,d,g){var h=o(f),p=!a(function(){var m={};return m[h]=function(){return 7},""[f](m)!==7}),y=p&&!a(function(){var m=!1,x=/a/;if(f==="split"){var I={};I[u]=function(){return x},x={constructor:I,flags:""},x[h]=/./[h]}return x.exec=function(){return m=!0,null},x[h](""),!m});if(!p||!y||d){var S=/./[h],E=l(h,""[f],function(m,x,I,O,T){var A=x.exec;return A===e||A===v.exec?p&&!T?{done:!0,value:r(S,x,I,O)}:{done:!0,value:r(m,I,x,O)}:{done:!1}});n(String.prototype,f,E[0]),n(v,h,E[1])}g&&s(v[h],"sham",!0)}}),53149:(function(i,c,t){var r=t(3438),n=t(82628),e=t(20095),a=t(45526),o=t(84082),s=function(u,v,f,l,d,g,h,p){for(var y=d,S=0,E=h?a(h,p):!1,m,x;S<l;)S in f&&(m=E?E(f[S],S,v):f[S],g>0&&r(m)?(x=n(m),y=s(u,v,m,x,y,g-1)-1):(e(y+1),o(u,y,m)),y++),S++;return y};i.exports=s}),27534:(function(i,c,t){var r=t(72069);i.exports=!r(function(){return Object.isExtensible(Object.preventExtensions({}))})}),66543:(function(i,c,t){var r=t(87878),n=Function.prototype,e=n.apply,a=n.call;i.exports=typeof Reflect=="object"&&Reflect.apply||(r?a.bind(e):function(){return a.apply(e,arguments)})}),45526:(function(i,c,t){var r=t(77422),n=t(85156),e=t(87878),a=r(r.bind);i.exports=function(o,s){return n(o),s===void 0?o:e?a(o,s):function(){return o.apply(s,arguments)}}}),87878:(function(i,c,t){var r=t(72069);i.exports=!r(function(){var n=function(){}.bind();return typeof n!="function"||n.hasOwnProperty("prototype")})}),91384:(function(i,c,t){var r=t(11286),n=t(85156),e=t(37540),a=t(94879),o=t(22806),s=t(87878),u=Function,v=r([].concat),f=r([].join),l={},d=function(g,h,p){if(!a(l,h)){for(var y=[],S=0;S<h;S++