billboard.js
Version:
Re-usable easy interface JavaScript chart library, based on D3 v4+
38 lines • 239 kB
JavaScript
/*!
* 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(sr,_t){typeof exports=="object"&&typeof module=="object"?module.exports=_t():typeof define=="function"&&define.amd?define("bb",[],_t):typeof exports=="object"?exports.bb=_t():(sr.bb=sr.bb||{},sr.bb.plugin=sr.bb.plugin||{},sr.bb.plugin["tableview.pkgd"]=_t())})(this,function(){return(function(){"use strict";var Sr={91469:(function(i,c,t){t.d(c,{default:function(){return nr}});const r=new Set(["span","div","p","br","b","i","em","small","strong","mark","u","s","sub","sup","h1","h2","h3","h4","h5","h6","ul","ol","li","dl","dt","dd","table","thead","tbody","tfoot","tr","th","td","caption","colgroup","col","hr","pre","code","blockquote","abbr","ins","del","a","img","figure","figcaption","svg","g","path","circle","ellipse","rect","line","polyline","polygon","text","tspan","textPath","use","defs","symbol","clipPath","mask","linearGradient","radialGradient","stop","pattern","marker","title","desc"]),n=new Set(["class","id","style","title","lang","dir","href","src","alt","width","height","colspan","rowspan","scope","headers","d","points","x","y","x1","x2","y1","y2","cx","cy","r","rx","ry","dx","dy","viewBox","preserveAspectRatio","transform","fill","fill-opacity","fill-rule","stroke","stroke-width","stroke-opacity","stroke-linecap","stroke-linejoin","stroke-dasharray","stroke-dashoffset","opacity","clip-path","clip-rule","mask","font-family","font-size","font-weight","font-style","text-anchor","dominant-baseline","offset","stop-color","stop-opacity","gradientUnits","gradientTransform","spreadMethod","patternUnits","patternTransform","marker-start","marker-mid","marker-end","markerWidth","markerHeight","refX","refY","xlink:href"]),e=new Map;r.forEach($=>e.set($.toLowerCase(),$));const a=new Map;n.forEach($=>a.set($.toLowerCase(),$));const o=new Set(["http:","https:","mailto:"]),s=new Set(["href","src","xlink:href"]),u=/^<\/?([a-zA-Z][a-zA-Z0-9]*)/,v=/^<\/([a-zA-Z][a-zA-Z0-9]*)\s*>$/,f=/^<([a-zA-Z][a-zA-Z0-9]*)([\s\S]*?)(\/?)>$/,l=/([a-zA-Z][\w:-]*)\s*(?:=\s*(?:"([^"]*)"|'([^']*)'|([^\s>]+)))?/g,d=/url\s*\(\s*["']?([^"')]+)["']?\s*\)/gi,g=["expression(","behavior:","binding:","@import","@charset","-moz-binding:"];function h($){return $.replace(/:/gi,":").replace(/&newline;/gi,`
`).replace(/&tab;/gi," ").replace(/ /gi," ").replace(/</gi,"<").replace(/>/gi,">").replace(/&/gi,"&").replace(/"/gi,'"').replace(/'/gi,"'").replace(/&#(\d+);?/gi,(H,G)=>String.fromCharCode(parseInt(G,10))).replace(/&#x([0-9a-f]+);?/gi,(H,G)=>String.fromCharCode(parseInt(G,16)))}function p($){const G=h($).trim().replace(/[\s\u0000-\u001f]/g,"").toLowerCase();if(!G||G.startsWith("#"))return!0;const ut=G.match(/^[^/?#]*:/);return ut?o.has(ut[0]):!0}function y($){const G=h($).replace(/[\u0000-\u001f]/g,"");d.lastIndex=0;let ut;for(;(ut=d.exec(G))!==null;)if(!p(ut[1]))return null;const It=G.toLowerCase().replace(/\s/g,"");for(const Wt of g)if(It.includes(Wt))return null;return $}const S={'"':""","'":"'","`":"`"},E=/["'`]/g;function m($){return $.replace(E,H=>S[H])}function x($,H,G=!1){if(s.has($))return p(H)?G?m(H):H:null;if($==="style"){const It=y(H);return It===null?null:G?m(It):It}const ut=h(H).toLowerCase().replace(/\s/g,"");return/\bon\w+=/.test(ut)?null:G?m(H):H}function I($){const H=$.match(u);return H?H[1].toLowerCase():null}function O($){const H=I($);return H!==null&&e.has(H)}function T($){var H,G,ut;const It=$.match(v);if(It){const zt=It[1].toLowerCase();return`</${(H=e.get(zt))!=null?H:zt}>`}const Wt=$.match(f);if(!Wt)return"";const[,W,tt,Y]=Wt,j=W.toLowerCase(),rt=(G=e.get(j))!=null?G:j,Ft=[];l.lastIndex=0;let Ot;for(;(Ot=l.exec(tt))!==null;){const zt=Ot[1].toLowerCase(),qt=Ot[2],lt=Ot[3],Qt=Ot[4];if(zt.startsWith("on"))continue;const rr=(ut=a.get(zt))!=null?ut:zt;let ir,ur;if(qt!==void 0)ir=qt,ur='"';else if(lt!==void 0)ir=lt,ur="'";else if(Qt!==void 0)ir=Qt,ur='"';else{a.has(zt)&&Ft.push(rr);continue}if(a.has(zt)){const fr=x(zt,ir,Qt!==void 0);fr!==null&&Ft.push(`${rr}=${ur}${fr}${ur}`)}}const Zt=Ft.length>0?` ${Ft.join(" ")}`:"";return`<${rt}${Zt}${Y?"/>":">"}`}function A($){return typeof $!="string"||!$||$.indexOf("<")===-1?$:$.replace(/<\/?[^>]*>|[^<>\s]+>/g,H=>H.startsWith("<!--")?"":H.startsWith("<")?O(H)?T(H):H.replace(/</g,"<"):H.slice(0,-1)+">")}var P,R,C,N,M,D,F,L,U=Object.defineProperty,B=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,X=Object.prototype.propertyIsEnumerable,K=($,H,G)=>H in $?U($,H,{enumerable:!0,configurable:!0,writable:!0,value:G}):$[H]=G,_=($,H)=>{for(var G in H||(H={}))b.call(H,G)&&K($,G,H[G]);if(B)for(var G of B(H))X.call(H,G)&&K($,G,H[G]);return $};function Q($,H){for(let G=0;G<$.length;G++){const ut=$[G];ut!==null&&R(ut)&&H(ut,G)}}function w($,H,G){return R($[H])?$[H]:G}function V($,H){for(const G in $)if($[G]===H)return!0;return!1}function z($,H,...G){const ut=C($);return ut&&$.call(H,...G),ut}function Z($,H){let G=0;const ut=function(...It){!--G&&H.apply(this,It)};"duration"in $?$.each(()=>++G).on("end",ut):(++G,$.call(ut))}const at=$=>$.charAt(0).toUpperCase()+$.slice(1);function gt($,H="-"){return $.split(H).map((G,ut)=>ut?G.charAt(0).toUpperCase()+G.slice(1).toLowerCase():G.toLowerCase()).join("")}const q=$=>[].slice.call($);function vt(...$){const H=G=>{if(N(G))return G.map(H);if(M(G)&&G.constructor){const ut=new G.constructor;for(const It in G)ut[It]=H(G[It]);return ut}return G};return $.map(G=>H(G)).reduce((G,ut)=>_(_({},G),ut))}function St($={},H){N(H)&&H.forEach(G=>St($,G));for(const G in H)/^\d+$/.test(G)||G in $||($[G]=H[G]);return $}function Pt($){const H=$[0]instanceof Date,G=Array.from(new Set(H?$.map(Number):$));return H?G.map(ut=>new Date(ut)):G}function Et($){return $&&$.length?$.reduce((H,G)=>H.concat(G)):[]}function Tt($,...H){if(!H.length||H.length===1&&!H[0])return $;const G=H.shift();return M($)&&M(G)&&Object.keys(G).forEach(ut=>{if(!/^(__proto__|constructor|prototype)$/i.test(ut)){const It=G[ut];It instanceof Date?$[ut]=new Date(It.getTime()):M(It)?(!$[ut]&&($[ut]={}),$[ut]=Tt($[ut],It)):$[ut]=N(It)?It.concat():It}}),Tt($,...H)}function Lt($,H=!0){let G;return $[0]instanceof Date?G=H?(ut,It)=>ut-It:(ut,It)=>It-ut:H&&!$.every(isNaN)?G=(ut,It)=>ut-It:H||(G=(ut,It)=>ut>It&&-1||ut<It&&1||ut===It&&0),$.concat().sort(G)}function Bt($,H){let G=H.filter(ut=>D(ut));if(G.length)if(F(G[0])){let ut=$==="min"?1/0:-1/0;for(const It of G)($==="min"?It<ut:It>ut)&&(ut=It);G=ut}else G[0]instanceof Date&&(G=Lt(G,$==="min")[0]);else G=void 0;return G}const $t=($,H,G=1)=>{const ut=[],It=Math.max(0,Math.ceil((H-$)/G))|0;for(let Wt=0;Wt<It;Wt++)ut.push($+Wt*G);return ut};let At=0;function Mt($=!0){const H=++At;return $?String(H):H}function Gt($,H,G,ut,It){if(G>ut)return-1;const Wt=Math.floor((G+ut)/2);let{x:W,w:tt=0}=$[Wt];return It&&(W=$[Wt].y,tt=$[Wt].h),H>=W&&H<=W+tt?Wt:H<W?Gt($,H,G,Wt-1,It):Gt($,H,Wt+1,ut,It)}function ot($,H){return A($.replace(/\{=([^}]+)\}/g,(G,ut)=>{var It;return(It=H[ut])!=null?It:""}))}function mt($){var H;let G;if($ instanceof Date)G=$;else if(L($)){const{config:ut,format:It}=this;G=(H=It.dataTime(ut.data_xFormat)($))!=null?H:new Date($)}else F($)&&!isNaN($)&&(G=new Date(+$));return(!G||isNaN(+G))&&console&&console.error&&console.error(`Failed to parse x '${$}' to Date object`),G}function pt($){if(M($)&&!L($)){const W=$;return{top:W.top||0,right:W.right||0,bottom:W.bottom||0,left:W.left||0}}const H=(L($)?$.trim().split(/\s+/):[$]).map(W=>+W||0),[G,ut=G,It=G,Wt=ut]=H;return{top:G,right:ut,bottom:It,left:Wt}}function Vt($,H){H()===!1?P(()=>Vt($,H)):$()}function ft($,H=(G=>G)){const G=new Set;return Q($,(ut,It)=>{G.add(H(ut,It))}),G}function yt($,H,G=(ut=>ut)){const ut=new Map;return Q($,(It,Wt)=>{ut.set(H(It,Wt),G(It,Wt))}),ut}const Ct=$=>$||$===0,Rt=$=>typeof $=="function",Ut=$=>typeof $=="string",Kt=$=>typeof $=="number",J=$=>typeof $=="undefined",st=$=>typeof $!="undefined",k=$=>typeof $=="boolean",et=$=>Math.ceil($/10)*10,dt=$=>Math.ceil($)+.5,nt=$=>$[1]-$[0],Nt=$=>typeof $=="object",Ht=$=>{for(const H in $)return!1;return!0},it=$=>J($)||$===null||Ut($)&&$.length===0||Nt($)&&!($ instanceof Date)&&Ht($)||Kt($)&&isNaN($),ct=$=>!it($),ht=$=>Array.isArray($),xt=$=>$&&!($!=null&&$.nodeType)&&Nt($)&&!ht($);function Dt($){const H=this.config;let G,ut,It;const Wt=()=>{const W=ut.shift();if(W&&G&&Nt(G)&&W in G)return G=G[W],Wt();if(!W)return G};Object.keys(H).forEach(W=>{G=$,ut=W.split("_"),It=Wt(),st(It)&&(H[W]=It)}),this.api&&(this.state.orgConfig=$)}var jt=Object.defineProperty,Yt=($,H,G)=>H in $?jt($,H,{enumerable:!0,configurable:!0,writable:!0,value:G}):$[H]=G,bt=($,H,G)=>Yt($,typeof H!="symbol"?H+"":H,G);class Jt{constructor(H={}){bt(this,"$$"),bt(this,"options"),bt(this,"config"),this.options=H}loadConfig(){Dt.call(this,this.options)}$beforeInit(){}$init(){}$afterInit(){}$redraw(){}$willDestroy(){Object.keys(this).forEach(H=>{this[H]=null,delete this[H]})}}bt(Jt,"version","4.0.1");const Xt={id:"__tableview-style__",class:"bb-tableview",rule:`.bb-tableview {
border-collapse:collapse;
border-spacing:0;
background:#fff;
min-width:100%;
margin-top:10px;
font-family:sans-serif;
font-size:.9em;
}
.bb-tableview tr:hover {
background:#eef7ff;
}
.bb-tableview thead tr {
background:#f8f8f8;
}
.bb-tableview caption,.bb-tableview td,.bb-tableview th {
text-align: center;
border:1px solid silver;
padding:.5em;
}
.bb-tableview caption {
font-size:1.1em;
font-weight:700;
margin-bottom: -1px;
}`},kt={body:`<caption>{=title}</caption>
<thead><tr>{=thead}</tr></thead>
<tbody>{=tbody}</tbody>`,thead:'<th scope="col">{=title}</th>',tbodyHeader:'<th scope="row">{=value}</th>',tbody:"<td>{=value}</td>"};class ar{constructor(){return{selector:void 0,categoryTitle:"Category",categoryFormat:function(H){let G=H;return this.$$.axis.isCategorized()?G=this.$$.categoryName(H):this.$$.axis.isTimeSeries()&&(G=H.toLocaleDateString()),G},class:void 0,style:!0,title:void 0,updateOnToggle:!0,nullString:"-",numberFormat:function(H){return H.toLocaleString()}}}}var lr=Object.defineProperty,cr=Object.defineProperties,dr=Object.getOwnPropertyDescriptors,vr=Object.getOwnPropertySymbols,gr=Object.prototype.hasOwnProperty,hr=Object.prototype.propertyIsEnumerable,er=($,H,G)=>H in $?lr($,H,{enumerable:!0,configurable:!0,writable:!0,value:G}):$[H]=G,tr=($,H)=>{for(var G in H||(H={}))gr.call(H,G)&&er($,G,H[G]);if(vr)for(var G of vr(H))hr.call(H,G)&&er($,G,H[G]);return $},yr=($,H)=>cr($,dr(H)),or=($,H,G)=>er($,typeof H!="symbol"?H+"":H,G);class nr extends Jt{constructor(H){return super(H),or(this,"element"),this.config=new ar,this}$beforeInit(){this.loadConfig()}$init(){const{class:H,selector:G,style:ut}=this.config;let It=document.querySelector(G||`.${H||Xt.class}`);if(!It){const Wt=this.$$.$el.chart.node();It=document.createElement("table"),Wt.parentNode.insertBefore(It,Wt.nextSibling)}if(It.tagName!=="TABLE"){const Wt=document.createElement("table");It.appendChild(Wt),It=Wt}if(ut&&!document.getElementById(Xt.id)){const Wt=document.createElement("style");Wt.id=Xt.id,Wt.innerHTML=Xt.rule,(document.head||document.getElementsByTagName("head")[0]).appendChild(Wt)}It.classList.add(...[ut&&Xt.class,H].filter(Boolean)),this.element=It}generateTable(){const{$$:H,config:G,element:ut}=this,It=H.filterTargetsToShow(H.data.targets);let Wt=ot(kt.thead,{title:It.length?this.config.categoryTitle:""}),W="";const tt=[];It.forEach(Y=>{Wt+=ot(kt.thead,{title:Y.id}),Y.values.forEach((j,rt)=>{tt[rt]||(tt[rt]=[j.x]),tt[rt].push(j.value)})}),tt.forEach(Y=>{W+=`<tr>${Y.map((j,rt)=>ot(rt?kt.tbody:kt.tbodyHeader,{value:rt===0?G.categoryFormat.bind(this)(j):Kt(j)?G.numberFormat.bind(this)(j):G.nullString})).join("")}</tr>`}),ut.innerHTML=ot(kt.body,yr(tr({},G),{title:G.title||H.config.title_text||"",thead:Wt,tbody:W}))}$redraw(){const{state:H}=this.$$;!(H.resizing||!this.config.updateOnToggle&&H.toggling)&&this.generateTable()}$willDestroy(){var H,G;if((H=this.element.parentNode)==null||H.removeChild(this.element),this.$$.charts.length===1){const ut=document.getElementById(Xt.id);(G=ut==null?void 0:ut.parentNode)==null||G.removeChild(ut)}}}}),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 P=s(O),R=T===void 0?P:a(T),C=!E||!E(O),N;if(o(O),v&&(O=f(O,{transfer:[O]}),P===R&&(A||C)))return O;if(P>=R&&(!A||C))N=S(O,0,R);else{var M=A&&!C&&m?{maxByteLength:g(R,m(O))}:void 0;N=new l(R,M);for(var D=new d(O),F=new d(N),L=h(R,P),U=0;U<L;U++)I(F,U,x(D,U))}return v||u(O),N}}),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,P=I&&h(I),R=O&&h(O),C=Object.prototype,N=e.TypeError,M=y("toStringTag"),D=S("TYPED_ARRAY_TAG"),F="TypedArrayConstructor",L=r&&!!p&&u(e.opera)!=="Opera",U=!1,B,b,X,K={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},_={BigInt64Array:8,BigUint64Array:8},Q=function(vt){if(!o(vt))return!1;var St=u(vt);return St==="DataView"||s(K,St)||s(_,St)},w=function(q){var vt=h(q);if(o(vt)){var St=x(vt);return St&&s(St,F)?St[F]:w(vt)}},V=function(q){if(!o(q))return!1;var vt=u(q);return s(K,vt)||s(_,vt)},z=function(q){if(V(q))return q;throw new N("Target is not a typed array")},Z=function(q){if(a(q)&&(!p||g(P,q)))return q;throw new N(v(q)+" is not a typed array constructor")},at=function(q,vt,St,Pt){if(n){if(St)for(var Et in K){var Tt=e[Et];if(Tt&&s(Tt.prototype,q))try{delete Tt.prototype[q]}catch(Lt){try{Tt.prototype[q]=vt}catch(Bt){}}}(!R[q]||St)&&l(R,q,St?vt:L&&O[q]||vt,Pt)}},gt=function(q,vt,St){var Pt,Et;if(n){if(p){if(St){for(Pt in K)if(Et=e[Pt],Et&&s(Et,q))try{delete Et[q]}catch(Tt){}}if(!P[q]||St)try{return l(P,q,St?vt:L&&P[q]||vt)}catch(Tt){}else return}for(Pt in K)Et=e[Pt],Et&&(!Et[q]||St)&&l(Et,q,vt)}};for(B in K)b=e[B],X=b&&b.prototype,X?m(X)[F]=b:L=!1;for(B in _)b=e[B],X=b&&b.prototype,X&&(m(X)[F]=b);if((!L||!a(P)||P===Function.prototype)&&(P=function(){throw new N("Incorrect invocation")},L))for(B in K)e[B]&&p(e[B],P);if((!L||!R||R===C)&&(R=P.prototype,L))for(B in K)e[B]&&p(e[B].prototype,R);if(L&&h(A)!==R&&p(A,R),n&&!s(R,M)){U=!0,d(R,M,{configurable:!0,get:function(){return o(this)?this[D]:void 0}});for(B in K)e[B]&&f(e[B].prototype,D,B)}i.exports={NATIVE_ARRAY_BUFFER_VIEWS:L,TYPED_ARRAY_TAG:U&&D,aTypedArray:z,aTypedArrayConstructor:Z,exportTypedArrayMethod:at,exportTypedArrayStaticMethod:gt,getTypedArrayConstructor:w,isView:Q,isTypedArray:V,TypedArray:P,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,P=o.CONFIGURABLE,R="ArrayBuffer",C="DataView",N="prototype",M="Wrong length",D="Wrong index",F=T.getterFor(R),L=T.getterFor(C),U=T.set,B=r[R],b=B,X=b&&b[N],K=r[C],_=K&&K[N],Q=Object.prototype,w=r.Array,V=r.RangeError,z=n(E),Z=n([].reverse),at=p.pack,gt=p.unpack,q=function(ot){return[ot&255]},vt=function(ot){return[ot&255,ot>>8&255]},St=function(ot){return[ot&255,ot>>8&255,ot>>16&255,ot>>24&255]},Pt=function(ot){return ot[3]<<24|ot[2]<<16|ot[1]<<8|ot[0]},Et=function(ot){return at(h(ot),23,4)},Tt=function(ot){return at(ot,52,8)},Lt=function(ot,mt,pt){u(ot[N],mt,{configurable:!0,get:function(){return pt(this)[mt]}})},Bt=function(ot,mt,pt,Vt){var ft=L(ot),yt=g(pt),Ct=!!Vt;if(yt+mt>ft.byteLength)throw new V(D);var Rt=ft.bytes,Ut=yt+ft.byteOffset,Kt=m(Rt,Ut,Ut+mt);return Ct?Kt:Z(Kt)},$t=function(ot,mt,pt,Vt,ft,yt){var Ct=L(ot),Rt=g(pt),Ut=Vt(+ft),Kt=!!yt;if(Rt+mt>Ct.byteLength)throw new V(D);for(var J=Ct.bytes,st=Rt+Ct.byteOffset,k=0;k<mt;k++)J[st+k]=Ut[Kt?k:mt-k-1]};if(!a)b=function(mt){l(this,X);var pt=g(mt);U(this,{type:R,bytes:z(w(pt),0),byteLength:pt}),e||(this.byteLength=pt,this.detached=!1)},X=b[N],K=function(mt,pt,Vt){l(this,_),l(mt,X);var ft=F(mt),yt=ft.byteLength,Ct=d(pt);if(Ct<0||Ct>yt)throw new V("Wrong offset");if(Vt=Vt===void 0?yt-Ct:g(Vt),Ct+Vt>yt)throw new V(M);U(this,{type:C,buffer:mt,byteLength:Vt,byteOffset:Ct,bytes:ft.bytes}),e||(this.buffer=mt,this.byteLength=Vt,this.byteOffset=Ct)},_=K[N],e&&(Lt(b,"byteLength",F),Lt(K,"buffer",L),Lt(K,"byteLength",L),Lt(K,"byteOffset",L)),v(_,{getInt8:function(mt){return Bt(this,1,mt)[0]<<24>>24},getUint8:function(mt){return Bt(this,1,mt)[0]},getInt16:function(mt){var pt=Bt(this,2,mt,arguments.length>1?arguments[1]:!1);return(pt[1]<<8|pt[0])<<16>>16},getUint16:function(mt){var pt=Bt(this,2,mt,arguments.length>1?arguments[1]:!1);return pt[1]<<8|pt[0]},getInt32:function(mt){return Pt(Bt(this,4,mt,arguments.length>1?arguments[1]:!1))},getUint32:function(mt){return Pt(Bt(this,4,mt,arguments.length>1?arguments[1]:!1))>>>0},getFloat32:function(mt){return gt(Bt(this,4,mt,arguments.length>1?arguments[1]:!1),23)},getFloat64:function(mt){return gt(Bt(this,8,mt,arguments.length>1?arguments[1]:!1),52)},setInt8:function(mt,pt){$t(this,1,mt,q,pt)},setUint8:function(mt,pt){$t(this,1,mt,q,pt)},setInt16:function(mt,pt){$t(this,2,mt,vt,pt,arguments.length>2?arguments[2]:!1)},setUint16:function(mt,pt){$t(this,2,mt,vt,pt,arguments.length>2?arguments[2]:!1)},setInt32:function(mt,pt){$t(this,4,mt,St,pt,arguments.length>2?arguments[2]:!1)},setUint32:function(mt,pt){$t(this,4,mt,St,pt,arguments.length>2?arguments[2]:!1)},setFloat32:function(mt,pt){$t(this,4,mt,Et,pt,arguments.length>2?arguments[2]:!1)},setFloat64:function(mt,pt){$t(this,8,mt,Tt,pt,arguments.length>2?arguments[2]:!1)}});else{var At=A&&B.name!==R;!f(function(){B(1)})||!f(function(){new B(-1)})||f(function(){return new B,new B(1.5),new B(NaN),B.length!==1||At&&!P})?(b=function(mt){return l(this,X),x(new B(g(mt)),this,b)},b[N]=X,X.constructor=b,I(b,B)):At&&P&&s(B,"name",R),S&&y(_)!==Q&&S(_,Q);var Mt=new K(new b(2)),Gt=n(_.setInt8);Mt.setInt8(0,2147483648),Mt.setInt8(1,2147483649),(Mt.getInt8(0)||!Mt.getInt8(1))&&v(_,{setInt8:function(mt,pt){Gt(this,mt,pt<<24>>24)},setUint8:function(mt,pt){Gt(this,mt,pt<<24>>24)}},{unsafe:!0})}O(b,R),O(K,C),i.exports={ArrayBuffer:b,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,P=T>2?arguments[2]:void 0;return new(f("Promise"))(function(R){A!==void 0&&(A=r(A,P));var C=v(I,p),N=C?void 0:u(I)||E,M=e(O)?new O:[],D=C?a(I,C):new g(s(o(I,N)));R(h(D,A,M))})}}),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,P,R,C,N,M;if(O&&!(this===h&&o(O)))for(P=S?new this:[],C=l(I,O),N=C.next;!(R=n(N,C)).done;T++){M=x?a(C,m,[R.value,T],!0):R.value;try{v(P,T,M)}catch(D){g(C,"throw",D)}}else for(A=u(I),P=S?new this(A):h(A);A>T;T++)M=x?m(I[T],T):I[T],v(P,T,M);return f(P,T),P}}),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,P=0,R=f?o(S,O):l||p?o(S,0):void 0,C,N;O>A;A++)if((y||A in I)&&(C=I[A],N=T(C,A,x),v))if(f)s(R,A,N);else if(N)switch(v){case 3:return!0;case 5:return C;case 6:return A;case 2:s(R,P++,C)}else switch(v){case 4:return!1;case 7:s(R,P++,C)}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(P){A=P}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 P=n(x?r(A,m,I):r(A,m));y(P,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 P=n(x?r(A,m,I):r(A,m));y(P,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,P=O.next,R=0;return new T(function(C,N){var M=function(F){l(A,N,F,N)},D=function(){try{try{o(R)}catch(F){return M(F)}T.resolve(e(r(P,A))).then(function(F){try{if(e(F).done)h?(v(x,R),C(x)):C(S?!1:y||void 0);else{var L=F.value;try{if(I){var U=R++,B=m(L,U),b=function(X){if(p)D();else if(y)X?D():l(A,C,!1,N);else if(h)try{u(x,U,X),D()}catch(K){M(K)}else X?l(A,C,S||L,N):D()};a(B)?T.resolve(B).then(b,M):b(B)}else u(x,R++,L),D()}catch(X){M(X)}}}catch(X){N(X)}},N)}catch(F){N(F)}};D()})}};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,C){o(R,O),p(R,{type:E,index:r(null),first:null,last:null,size:0}),d||(R.size=0),s(C)||u(C,R[x],{that:R,AS_ENTRIES:m})}),O=I.prototype,T=y(E),A=function(R,C,N){var M=T(R),D=P(R,C),F,L;return D?D.value=N:(M.last=D={index:L=g(C,!0),key:C,value:N,previous:F=M.last,next:null,removed:!1},M.first||(M.first=D),F&&(F.next=D),d?M.size++:R.size++,L!=="F"&&(M.index[L]=D)),R},P=function(R,C){var N=T(R),M=g(C),D;if(M!=="F")return N.index[M];for(D=N.first;D;D=D.next)if(D.key===C)return D};return e(O,{clear:function(){for(var C=this,N=T(C),M=N.first;M;)M.removed=!0,M.previous&&(M.previous=M.previous.next=null),M=M.next;N.first=N.last=null,N.index=r(null),d?N.size=0:C.size=0},delete:function(R){var C=this,N=T(C),M=P(C,R);if(M){var D=M.next,F=M.previous;delete N.index[M.index],M.removed=!0,F&&(F.next=D),D&&(D.previous=F),N.first===M&&(N.first=D),N.last===M&&(N.last=F),d?N.size--:C.size--}return!!M},forEach:function(C){for(var N=T(this),M=a(C,arguments.length>1?arguments[1]:void 0),D;D=D?D.next:N.first;)for(M(D.value,D.key,this);D&&D.removed;)D=D.previous},has:function(C){return!!P(this,C)}}),e(O,m?{get:function(C){var N=P(this,C);return N&&N.value},set:function(C,N){return A(this,C===0?0:C,N)}}:{add:function(C){return A(this,C=C===0?0:C,C)}}),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,P=T.last;P&&P.removed;)P=P.previous;return!T.target||!(T.last=P=P?P.next:T.state.first)?(T.target=null,f(void 0,!0)):f(A==="keys"?P.key:A==="values"?P.value:[P.key,P.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,P){var R=O(function(D,F){a(D,C),g(D,{type:T,id:E++,frozen:null}),s(F)||v(F,D[P],{that:D,AS_ENTRIES:A})}),C=R.prototype,N=h(T),M=function(D,F,L){var U=N(D),B=e(o(F),!0);return B===!0?m(U).set(F,L):B[U.id]=L,D};return n(C,{delete:function(D){var F=N(this);if(!u(D))return!1;var L=e(D);return L===!0?m(F).delete(D):L&&l(L,F.id)&&delete L[F.id]},has:function(F){var L=N(this);if(!u(F))return!1;var U=e(F);return U===!0?m(L).has(F):U&&l(U,L.id)}}),n(C,A?{get:function(F){var L=N(this);if(u(F)){var U=e(F);if(U===!0)return m(L).get(F);if(U)return U[L.id]}},set:function(F,L){return M(this,F,L)}}:{add:function(F){return M(this,F,!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,P=T,R={},C=function(B){var b=e(A[B]);o(A,B,B==="add"?function(K){return b(this,K===0?0:K),this}:B==="delete"?function(X){return I&&!d(X)?!1:b(this,X===0?0:X)}:B==="get"?function(K){return I&&!d(K)?void 0:b(this,K===0?0:K)}:B==="has"?function(K){return I&&!d(K)?!1:b(this,K===0?0:K)}:function(K,_){return b(this,K===0?0:K,_),this})},N=a(S,!f(T)||!(I||A.forEach&&!g(function(){new T().entries().next()})));if(N)P=m.getConstructor(E,S,x,O),s.enable();else if(a(S,!0)){var M=new P,D=M[O](I?{}:-0,1)!==M,F=g(function(){M.has(1)}),L=h(function(B){new T(B)}),U=!I&&g(function(){for(var B=new T,b=5;b--;)B[O](b,b);return!B.has(-0)});L||(P=E(function(B,b){v(B,A);var X=y(new T,B,P);return l(b)||u(b,X[O],{that:X,AS_ENTRIES:x}),X}),P.prototype=A,A.constructor=P),(F||U)&&(C("delete"),C("has"),x&&C("get")),(U||D)&&C(O),I&&A.clear&&delete A.clear}return R[S]=P,r({global:!0,constructor:!0,forced:P!==T},R),p(P,S),I||m.setStrong(P,S,x),P}}),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,""")+'"'),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++)y[S]="a["+S+"]";l[h]=u("C,a","return new C("+f(y,",")+")")}return l[h](g,p)};i.exports=s?u.bind:function(h){var p=n(this),y=p.prototype,S=o(arguments,1),E=function(){var x=v(S,o(arguments));return this instanceof E?d(p,x.length,x):p.apply(h,x)};return e(y)&&(E.prototype=y),E}}),96499:(function(i,c,t){var r=t(87878),n=Function.prototype.call;i.exports=r?n.bind(n):function(){return n.apply(n,arguments)}}),86588:(function(i,c,t){var r=t(92986),n=t(94879),e=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,o=n(e,"name"),s=o&&function(){}.name==="something",u=o&&(!r||r&&a(e,"name").configurable);i.exports={EXISTS:o,PROPER:s,CONFIGURABLE:u}}),84756:(function(i,c,t){var r=t(11286),n=t(85156);i.exports=function(e,a,o){try{return r(n(Object.getOwnPropertyDescriptor(e,a)[o]))}catch(s){}}}),77422:(function(i,c,t){var r=t(14274),n=t(11286);i.exports=function(e){if(r(e)==="Function")return n(e)}}),11286:(function(i,c,t){var r=t(87878),n=Function.prototype,e=n.call,a=r&&n.bind.bind(e,e);i.exports=r?a:function(o){return function(){return e.apply(o,arguments)}}}),23306:(function(i){var c=TypeError;i.exports=function(t){var r=t&&t.alphabet;if(r===void 0||r==="base64"||r==="base64url")return r||"base64";throw new c("Incorrect `alphabet` option")}}),46660:(function(i,c,t){var r=t(96499),n=t(56116),e=t(25001),a=t(90619),o=t(10613),s=t(10512),u=t(18565),v=u("asyncIterator");i.exports=function(f,l){var d=arguments.length<2?s(f,v):l;return d?e(r(d,f)):new n(o(a(f)))}}),81191:(function(i,c,t){var r=t(34246),n=t(91707);i.exports=function(e){if(n){try{return r.process.getBuiltinModule(e)}catch(a){}try{return Function('return require("'+e+'")')()}catch(a){}}}}),65470:(function(i,c,t){var r=t(34246);i.exports=function(n,e){var a=r[n],o=a&&a.prototype;return o&&o[e]}}),38941:(function(i,c,t){var r=t(34246),n=t(23583),e=function(a){return n(a)?a:void 0};i.exports=function(a,o){return arguments.length<2?e(r[a]):r[a]&&r[a][o]}}),10613:(function(i){i.exports=function(c){return{iterator:c,next:c.next,done:!1}}}),12124:(function(i,c,t){var r=t(96499),n=t(25001),e=t(10613),a=t(81077);i.exports=function(o,s){(!s||typeof o!="string")&&n(o);var u=a(o);return e(n(u!==void 0?r(u,o):o))}}),81077:(function(i,c,t){var r=t(9205),n=t(10512),e=t(5683),a=t(29107),o=t(18565),s=o("iterator");i.exports=function(u){if(!e(u))return n(u,s)||n(u,"@@iterator")||a[r(u)]}}),90619:(function(i,c,t){var r=t(96499),n=t(85156),e=t(25001),a=t(82453),o=t(81077),s=TypeError;i.exports=function(u,v){var f=arguments.length<2?o(u):v;if(n(f))return e(r(f,u));throw new s(a(u)+" is not iterable")}}),10512:(function(i,c,t){var r=t(85156),n=t(5683);i.exports=function(e,a){var o=e[a];return n(o)?void 0:r(o)}}),65263:(function(i,c,t){var r=t(85156),n=t(25001),e=t(96499),a=t(12105),o=t(10613),s="Invalid size",u=RangeError,v=TypeError,f=Math.max,l=function(d,g){this.set=d,this.size=f(g,0),this.has=r(d.has),this.keys=r(d.keys)};l.prototype={getIterator:function(){return o(n(e(this.keys,this.set)))},includes:function(d){return e(this.has,this.set,d)}},i.exports=function(d){n(d);var g=+d.size;if(g!==g)throw new v(s);var h=a(g);if(h<0)throw new u(s);return new l(d,h)}}),38368:(function(i,c,t){var r=t(11286),n=t(49671),e=Math.floor,a=r("".charAt),o=r("".replace),s=r("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,v=/\$([$&'`]|\d{1,2})/g;i.exports=function(f,l,d,g,h,p){var y=d+f.length,S=g.length,E=v;return h!==void 0&&(h=n(h),E=u),o(p,E,function(m,x){var I;swi