pkg-components
Version:
1 lines • 1.35 MB
JavaScript
import{j as Qr,a as Or}from"./jsx-runtime-DI8_P1Ft.js";import{P as Wf}from"./index-B3IC6ylx.js";import{d as Et,c as EB,a as ao,b as CB}from"./_commonjs-dynamic-modules-c29mFLwc.js";import{a as vr,c as Di}from"./_commonjsHelpers-C4iS2aBk.js";import{R as IB,r as Ua}from"./index-DPzuYzxM.js";import{b as e0}from"./tslib.es6-BF5GDGeg.js";import{r as yB}from"./___vite-browser-external_commonjs-proxy-BqV5D26a.js";function bB(r,e){for(var t=0;t<e.length;t++){const n=e[t];if(typeof n!="string"&&!Array.isArray(n)){for(const i in n)if(i!=="default"&&!(i in r)){const a=Object.getOwnPropertyDescriptor(n,i);a&&Object.defineProperty(r,i,a.get?a:{enumerable:!0,get:()=>n[i]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}const vE="G",fa="SVG",hi="VIEW",Tt="TEXT",BA="LINK",DA="PAGE",QA="NOTE",kg="PATH",Tg="RECT",Rg="LINE",wB="STOP",Ng="DEFS",oo="IMAGE",Og="TSPAN",xA="CANVAS",Lg="CIRCLE",Mg="ELLIPSE",Pg="POLYGON",Ug="DOCUMENT",Gg="POLYLINE",BB="CLIP_PATH",so="TEXT_INSTANCE",pE="LINEAR_GRADIENT",mE="RADIAL_GRADIENT",DB=Object.freeze(Object.defineProperty({__proto__:null,Canvas:xA,Circle:Lg,ClipPath:BB,Defs:Ng,Document:Ug,Ellipse:Mg,G:vE,Image:oo,Line:Rg,LinearGradient:pE,Link:BA,Note:QA,Page:DA,Path:kg,Polygon:Pg,Polyline:Gg,RadialGradient:mE,Rect:Tg,Stop:wB,Svg:fa,Text:Tt,TextInstance:so,Tspan:Og,View:hi},Symbol.toStringTag,{value:"Module"}));var Hg={exports:{}},Od={exports:{}};typeof Object.create=="function"?Od.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:Od.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}};var QB=Od.exports,Yg={exports:{}},js=typeof Reflect=="object"?Reflect:null,bv=js&&typeof js.apply=="function"?js.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)},df;js&&typeof js.ownKeys=="function"?df=js.ownKeys:Object.getOwnPropertySymbols?df=function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:df=function(e){return Object.getOwnPropertyNames(e)};function xB(r){console&&console.warn&&console.warn(r)}var EE=Number.isNaN||function(e){return e!==e};function qt(){qt.init.call(this)}Yg.exports=qt;Yg.exports.once=kB;qt.EventEmitter=qt;qt.prototype._events=void 0;qt.prototype._eventsCount=0;qt.prototype._maxListeners=void 0;var wv=10;function _A(r){if(typeof r!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof r)}Object.defineProperty(qt,"defaultMaxListeners",{enumerable:!0,get:function(){return wv},set:function(r){if(typeof r!="number"||r<0||EE(r))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+r+".");wv=r}});qt.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};qt.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||EE(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this};function CE(r){return r._maxListeners===void 0?qt.defaultMaxListeners:r._maxListeners}qt.prototype.getMaxListeners=function(){return CE(this)};qt.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i=e==="error",a=this._events;if(a!==void 0)i=i&&a.error===void 0;else if(!i)return!1;if(i){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var l=a[e];if(l===void 0)return!1;if(typeof l=="function")bv(l,this,t);else for(var u=l.length,c=BE(l,u),n=0;n<u;++n)bv(c[n],this,t);return!0};function IE(r,e,t,n){var i,a,o;if(_A(t),a=r._events,a===void 0?(a=r._events=Object.create(null),r._eventsCount=0):(a.newListener!==void 0&&(r.emit("newListener",e,t.listener?t.listener:t),a=r._events),o=a[e]),o===void 0)o=a[e]=t,++r._eventsCount;else if(typeof o=="function"?o=a[e]=n?[t,o]:[o,t]:n?o.unshift(t):o.push(t),i=CE(r),i>0&&o.length>i&&!o.warned){o.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=r,s.type=e,s.count=o.length,xB(s)}return r}qt.prototype.addListener=function(e,t){return IE(this,e,t,!1)};qt.prototype.on=qt.prototype.addListener;qt.prototype.prependListener=function(e,t){return IE(this,e,t,!0)};function _B(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function yE(r,e,t){var n={fired:!1,wrapFn:void 0,target:r,type:e,listener:t},i=_B.bind(n);return i.listener=t,n.wrapFn=i,i}qt.prototype.once=function(e,t){return _A(t),this.on(e,yE(this,e,t)),this};qt.prototype.prependOnceListener=function(e,t){return _A(t),this.prependListener(e,yE(this,e,t)),this};qt.prototype.removeListener=function(e,t){var n,i,a,o,s;if(_A(t),i=this._events,i===void 0)return this;if(n=i[e],n===void 0)return this;if(n===t||n.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete i[e],i.removeListener&&this.emit("removeListener",e,n.listener||t));else if(typeof n!="function"){for(a=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){s=n[o].listener,a=o;break}if(a<0)return this;a===0?n.shift():FB(n,a),n.length===1&&(i[e]=n[0]),i.removeListener!==void 0&&this.emit("removeListener",e,s||t)}return this};qt.prototype.off=qt.prototype.removeListener;qt.prototype.removeAllListeners=function(e){var t,n,i;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[e]),this;if(arguments.length===0){var a=Object.keys(n),o;for(i=0;i<a.length;++i)o=a[i],o!=="removeListener"&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(t=n[e],typeof t=="function")this.removeListener(e,t);else if(t!==void 0)for(i=t.length-1;i>=0;i--)this.removeListener(e,t[i]);return this};function bE(r,e,t){var n=r._events;if(n===void 0)return[];var i=n[e];return i===void 0?[]:typeof i=="function"?t?[i.listener||i]:[i]:t?SB(i):BE(i,i.length)}qt.prototype.listeners=function(e){return bE(this,e,!0)};qt.prototype.rawListeners=function(e){return bE(this,e,!1)};qt.listenerCount=function(r,e){return typeof r.listenerCount=="function"?r.listenerCount(e):wE.call(r,e)};qt.prototype.listenerCount=wE;function wE(r){var e=this._events;if(e!==void 0){var t=e[r];if(typeof t=="function")return 1;if(t!==void 0)return t.length}return 0}qt.prototype.eventNames=function(){return this._eventsCount>0?df(this._events):[]};function BE(r,e){for(var t=new Array(e),n=0;n<e;++n)t[n]=r[n];return t}function FB(r,e){for(;e+1<r.length;e++)r[e]=r[e+1];r.pop()}function SB(r){for(var e=new Array(r.length),t=0;t<e.length;++t)e[t]=r[t].listener||r[t];return e}function kB(r,e){return new Promise(function(t,n){function i(o){r.removeListener(e,a),n(o)}function a(){typeof r.removeListener=="function"&&r.removeListener("error",i),t([].slice.call(arguments))}DE(r,e,a,{once:!0}),e!=="error"&&TB(r,i,{once:!0})})}function TB(r,e,t){typeof r.on=="function"&&DE(r,"error",e,t)}function DE(r,e,t,n){if(typeof r.on=="function")n.once?r.once(e,t):r.on(e,t);else if(typeof r.addEventListener=="function")r.addEventListener(e,function i(a){n.once&&r.removeEventListener(e,i),t(a)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof r)}var RB=Yg.exports,NB=QB,QE=RB.EventEmitter;Hg.exports=an;Hg.exports.default=an;function an(r){if(!(this instanceof an))return new an(r);QE.call(this),r=r||{},this.concurrency=r.concurrency||1/0,this.timeout=r.timeout||0,this.autostart=r.autostart||!1,this.results=r.results||null,this.pending=0,this.session=0,this.running=!1,this.jobs=[],this.timers={}}NB(an,QE);var OB=["pop","shift","indexOf","lastIndexOf"];OB.forEach(function(r){an.prototype[r]=function(){return Array.prototype[r].apply(this.jobs,arguments)}});an.prototype.slice=function(r,e){return this.jobs=this.jobs.slice(r,e),this};an.prototype.reverse=function(){return this.jobs.reverse(),this};var LB=["push","unshift","splice"];LB.forEach(function(r){an.prototype[r]=function(){var e=Array.prototype[r].apply(this.jobs,arguments);return this.autostart&&this.start(),e}});Object.defineProperty(an.prototype,"length",{get:function(){return this.pending+this.jobs.length}});an.prototype.start=function(r){if(r&&PB.call(this,r),this.running=!0,this.pending>=this.concurrency)return;if(this.jobs.length===0){this.pending===0&&Ld.call(this);return}var e=this,t=this.jobs.shift(),n=!0,i=this.session,a=null,o=!1,s=null,l=t.hasOwnProperty("timeout")?t.timeout:this.timeout;function u(h,g){n&&e.session===i&&(n=!1,e.pending--,a!==null&&(delete e.timers[a],clearTimeout(a)),h?e.emit("error",h,t):o===!1&&(s!==null&&(e.results[s]=Array.prototype.slice.call(arguments,1)),e.emit("success",g,t)),e.session===i&&(e.pending===0&&e.jobs.length===0?Ld.call(e):e.running&&e.start()))}l&&(a=setTimeout(function(){o=!0,e.listeners("timeout").length>0?e.emit("timeout",u,t):u()},l),this.timers[a]=a),this.results&&(s=this.results.length,this.results[s]=null),this.pending++,e.emit("start",t);var c=t(u);c&&c.then&&typeof c.then=="function"&&c.then(function(h){return u(null,h)}).catch(function(h){return u(h||!0)}),this.running&&this.jobs.length>0&&this.start()};an.prototype.stop=function(){this.running=!1};an.prototype.end=function(r){MB.call(this),this.jobs.length=0,this.pending=0,Ld.call(this,r)};function MB(){for(var r in this.timers){var e=this.timers[r];delete this.timers[r],clearTimeout(e)}}function PB(r){var e=this;this.on("error",t),this.on("end",n);function t(i){e.end(i)}function n(i){e.removeListener("error",t),e.removeListener("end",n),r(i,this.results)}}function Ld(r){this.session++,this.running=!1,this.emit("end",r)}var UB=Hg.exports;const GB=vr(UB);function rs(r){"@babel/helpers - typeof";return rs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rs(r)}function wt(){wt=function(){return e};var r,e={},t=Object.prototype,n=t.hasOwnProperty,i=Object.defineProperty||function(P,G,H){P[G]=H.value},a=typeof Symbol=="function"?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(P,G,H){return Object.defineProperty(P,G,{value:H,enumerable:!0,configurable:!0,writable:!0}),P[G]}try{u({},"")}catch{u=function(H,q,se){return H[q]=se}}function c(P,G,H,q){var se=G&&G.prototype instanceof Q?G:Q,W=Object.create(se.prototype),ee=new k(q||[]);return i(W,"_invoke",{value:z(P,H,ee)}),W}function h(P,G,H){try{return{type:"normal",arg:P.call(G,H)}}catch(q){return{type:"throw",arg:q}}}e.wrap=c;var g="suspendedStart",v="suspendedYield",p="executing",I="completed",b={};function Q(){}function D(){}function B(){}var _={};u(_,o,function(){return this});var C=Object.getPrototypeOf,O=C&&C(C(L([])));O&&O!==t&&n.call(O,o)&&(_=O);var R=B.prototype=Q.prototype=Object.create(_);function U(P){["next","throw","return"].forEach(function(G){u(P,G,function(H){return this._invoke(G,H)})})}function N(P,G){function H(se,W,ee,j){var ie=h(P[se],P,W);if(ie.type!=="throw"){var ve=ie.arg,pe=ve.value;return pe&&rs(pe)=="object"&&n.call(pe,"__await")?G.resolve(pe.__await).then(function(Fe){H("next",Fe,ee,j)},function(Fe){H("throw",Fe,ee,j)}):G.resolve(pe).then(function(Fe){ve.value=Fe,ee(ve)},function(Fe){return H("throw",Fe,ee,j)})}j(ie.arg)}var q;i(this,"_invoke",{value:function(W,ee){function j(){return new G(function(ie,ve){H(W,ee,ie,ve)})}return q=q?q.then(j,j):j()}})}function z(P,G,H){var q=g;return function(se,W){if(q===p)throw new Error("Generator is already running");if(q===I){if(se==="throw")throw W;return{value:r,done:!0}}for(H.method=se,H.arg=W;;){var ee=H.delegate;if(ee){var j=$(ee,H);if(j){if(j===b)continue;return j}}if(H.method==="next")H.sent=H._sent=H.arg;else if(H.method==="throw"){if(q===g)throw q=I,H.arg;H.dispatchException(H.arg)}else H.method==="return"&&H.abrupt("return",H.arg);q=p;var ie=h(P,G,H);if(ie.type==="normal"){if(q=H.done?I:v,ie.arg===b)continue;return{value:ie.arg,done:H.done}}ie.type==="throw"&&(q=I,H.method="throw",H.arg=ie.arg)}}}function $(P,G){var H=G.method,q=P.iterator[H];if(q===r)return G.delegate=null,H==="throw"&&P.iterator.return&&(G.method="return",G.arg=r,$(P,G),G.method==="throw")||H!=="return"&&(G.method="throw",G.arg=new TypeError("The iterator does not provide a '"+H+"' method")),b;var se=h(q,P.iterator,G.arg);if(se.type==="throw")return G.method="throw",G.arg=se.arg,G.delegate=null,b;var W=se.arg;return W?W.done?(G[P.resultName]=W.value,G.next=P.nextLoc,G.method!=="return"&&(G.method="next",G.arg=r),G.delegate=null,b):W:(G.method="throw",G.arg=new TypeError("iterator result is not an object"),G.delegate=null,b)}function w(P){var G={tryLoc:P[0]};1 in P&&(G.catchLoc=P[1]),2 in P&&(G.finallyLoc=P[2],G.afterLoc=P[3]),this.tryEntries.push(G)}function T(P){var G=P.completion||{};G.type="normal",delete G.arg,P.completion=G}function k(P){this.tryEntries=[{tryLoc:"root"}],P.forEach(w,this),this.reset(!0)}function L(P){if(P||P===""){var G=P[o];if(G)return G.call(P);if(typeof P.next=="function")return P;if(!isNaN(P.length)){var H=-1,q=function se(){for(;++H<P.length;)if(n.call(P,H))return se.value=P[H],se.done=!1,se;return se.value=r,se.done=!0,se};return q.next=q}}throw new TypeError(rs(P)+" is not iterable")}return D.prototype=B,i(R,"constructor",{value:B,configurable:!0}),i(B,"constructor",{value:D,configurable:!0}),D.displayName=u(B,l,"GeneratorFunction"),e.isGeneratorFunction=function(P){var G=typeof P=="function"&&P.constructor;return!!G&&(G===D||(G.displayName||G.name)==="GeneratorFunction")},e.mark=function(P){return Object.setPrototypeOf?Object.setPrototypeOf(P,B):(P.__proto__=B,u(P,l,"GeneratorFunction")),P.prototype=Object.create(R),P},e.awrap=function(P){return{__await:P}},U(N.prototype),u(N.prototype,s,function(){return this}),e.AsyncIterator=N,e.async=function(P,G,H,q,se){se===void 0&&(se=Promise);var W=new N(c(P,G,H,q),se);return e.isGeneratorFunction(G)?W:W.next().then(function(ee){return ee.done?ee.value:W.next()})},U(R),u(R,l,"Generator"),u(R,o,function(){return this}),u(R,"toString",function(){return"[object Generator]"}),e.keys=function(P){var G=Object(P),H=[];for(var q in G)H.push(q);return H.reverse(),function se(){for(;H.length;){var W=H.pop();if(W in G)return se.value=W,se.done=!1,se}return se.done=!0,se}},e.values=L,k.prototype={constructor:k,reset:function(G){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(T),!G)for(var H in this)H.charAt(0)==="t"&&n.call(this,H)&&!isNaN(+H.slice(1))&&(this[H]=r)},stop:function(){this.done=!0;var G=this.tryEntries[0].completion;if(G.type==="throw")throw G.arg;return this.rval},dispatchException:function(G){if(this.done)throw G;var H=this;function q(ve,pe){return ee.type="throw",ee.arg=G,H.next=ve,pe&&(H.method="next",H.arg=r),!!pe}for(var se=this.tryEntries.length-1;se>=0;--se){var W=this.tryEntries[se],ee=W.completion;if(W.tryLoc==="root")return q("end");if(W.tryLoc<=this.prev){var j=n.call(W,"catchLoc"),ie=n.call(W,"finallyLoc");if(j&&ie){if(this.prev<W.catchLoc)return q(W.catchLoc,!0);if(this.prev<W.finallyLoc)return q(W.finallyLoc)}else if(j){if(this.prev<W.catchLoc)return q(W.catchLoc,!0)}else{if(!ie)throw new Error("try statement without catch or finally");if(this.prev<W.finallyLoc)return q(W.finallyLoc)}}}},abrupt:function(G,H){for(var q=this.tryEntries.length-1;q>=0;--q){var se=this.tryEntries[q];if(se.tryLoc<=this.prev&&n.call(se,"finallyLoc")&&this.prev<se.finallyLoc){var W=se;break}}W&&(G==="break"||G==="continue")&&W.tryLoc<=H&&H<=W.finallyLoc&&(W=null);var ee=W?W.completion:{};return ee.type=G,ee.arg=H,W?(this.method="next",this.next=W.finallyLoc,b):this.complete(ee)},complete:function(G,H){if(G.type==="throw")throw G.arg;return G.type==="break"||G.type==="continue"?this.next=G.arg:G.type==="return"?(this.rval=this.arg=G.arg,this.method="return",this.next="end"):G.type==="normal"&&H&&(this.next=H),b},finish:function(G){for(var H=this.tryEntries.length-1;H>=0;--H){var q=this.tryEntries[H];if(q.finallyLoc===G)return this.complete(q.completion,q.afterLoc),T(q),b}},catch:function(G){for(var H=this.tryEntries.length-1;H>=0;--H){var q=this.tryEntries[H];if(q.tryLoc===G){var se=q.completion;if(se.type==="throw"){var W=se.arg;T(q)}return W}}throw new Error("illegal catch attempt")},delegateYield:function(G,H,q){return this.delegate={iterator:L(G),resultName:H,nextLoc:q},this.method==="next"&&(this.arg=r),b}},e}function Bv(r,e,t,n,i,a,o){try{var s=r[a](o),l=s.value}catch(u){t(u);return}s.done?e(l):Promise.resolve(l).then(n,i)}function Kr(r){return function(){var e=this,t=arguments;return new Promise(function(n,i){var a=r.apply(e,t);function o(l){Bv(a,n,i,o,s,"next",l)}function s(l){Bv(a,n,i,o,s,"throw",l)}o(void 0)})}}function ns(r,e){if(r==null)return{};var t={},n=Object.keys(r),i,a;for(a=0;a<n.length;a++)i=n[a],!(e.indexOf(i)>=0)&&(t[i]=r[i]);return t}var Md={exports:{}};(function(r,e){var t=typeof self<"u"?self:Di,n=function(){function a(){this.fetch=!1,this.DOMException=t.DOMException}return a.prototype=t,new a}();(function(a){(function(o){var s={searchParams:"URLSearchParams"in a,iterable:"Symbol"in a&&"iterator"in Symbol,blob:"FileReader"in a&&"Blob"in a&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in a,arrayBuffer:"ArrayBuffer"in a};function l(k){return k&&DataView.prototype.isPrototypeOf(k)}if(s.arrayBuffer)var u=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(k){return k&&u.indexOf(Object.prototype.toString.call(k))>-1};function h(k){if(typeof k!="string"&&(k=String(k)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(k))throw new TypeError("Invalid character in header field name");return k.toLowerCase()}function g(k){return typeof k!="string"&&(k=String(k)),k}function v(k){var L={next:function(){var P=k.shift();return{done:P===void 0,value:P}}};return s.iterable&&(L[Symbol.iterator]=function(){return L}),L}function p(k){this.map={},k instanceof p?k.forEach(function(L,P){this.append(P,L)},this):Array.isArray(k)?k.forEach(function(L){this.append(L[0],L[1])},this):k&&Object.getOwnPropertyNames(k).forEach(function(L){this.append(L,k[L])},this)}p.prototype.append=function(k,L){k=h(k),L=g(L);var P=this.map[k];this.map[k]=P?P+", "+L:L},p.prototype.delete=function(k){delete this.map[h(k)]},p.prototype.get=function(k){return k=h(k),this.has(k)?this.map[k]:null},p.prototype.has=function(k){return this.map.hasOwnProperty(h(k))},p.prototype.set=function(k,L){this.map[h(k)]=g(L)},p.prototype.forEach=function(k,L){for(var P in this.map)this.map.hasOwnProperty(P)&&k.call(L,this.map[P],P,this)},p.prototype.keys=function(){var k=[];return this.forEach(function(L,P){k.push(P)}),v(k)},p.prototype.values=function(){var k=[];return this.forEach(function(L){k.push(L)}),v(k)},p.prototype.entries=function(){var k=[];return this.forEach(function(L,P){k.push([P,L])}),v(k)},s.iterable&&(p.prototype[Symbol.iterator]=p.prototype.entries);function I(k){if(k.bodyUsed)return Promise.reject(new TypeError("Already read"));k.bodyUsed=!0}function b(k){return new Promise(function(L,P){k.onload=function(){L(k.result)},k.onerror=function(){P(k.error)}})}function Q(k){var L=new FileReader,P=b(L);return L.readAsArrayBuffer(k),P}function D(k){var L=new FileReader,P=b(L);return L.readAsText(k),P}function B(k){for(var L=new Uint8Array(k),P=new Array(L.length),G=0;G<L.length;G++)P[G]=String.fromCharCode(L[G]);return P.join("")}function _(k){if(k.slice)return k.slice(0);var L=new Uint8Array(k.byteLength);return L.set(new Uint8Array(k)),L.buffer}function C(){return this.bodyUsed=!1,this._initBody=function(k){this._bodyInit=k,k?typeof k=="string"?this._bodyText=k:s.blob&&Blob.prototype.isPrototypeOf(k)?this._bodyBlob=k:s.formData&&FormData.prototype.isPrototypeOf(k)?this._bodyFormData=k:s.searchParams&&URLSearchParams.prototype.isPrototypeOf(k)?this._bodyText=k.toString():s.arrayBuffer&&s.blob&&l(k)?(this._bodyArrayBuffer=_(k.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):s.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(k)||c(k))?this._bodyArrayBuffer=_(k):this._bodyText=k=Object.prototype.toString.call(k):this._bodyText="",this.headers.get("content-type")||(typeof k=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):s.searchParams&&URLSearchParams.prototype.isPrototypeOf(k)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},s.blob&&(this.blob=function(){var k=I(this);if(k)return k;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?I(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(Q)}),this.text=function(){var k=I(this);if(k)return k;if(this._bodyBlob)return D(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(B(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},s.formData&&(this.formData=function(){return this.text().then(N)}),this.json=function(){return this.text().then(JSON.parse)},this}var O=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function R(k){var L=k.toUpperCase();return O.indexOf(L)>-1?L:k}function U(k,L){L=L||{};var P=L.body;if(k instanceof U){if(k.bodyUsed)throw new TypeError("Already read");this.url=k.url,this.credentials=k.credentials,L.headers||(this.headers=new p(k.headers)),this.method=k.method,this.mode=k.mode,this.signal=k.signal,!P&&k._bodyInit!=null&&(P=k._bodyInit,k.bodyUsed=!0)}else this.url=String(k);if(this.credentials=L.credentials||this.credentials||"same-origin",(L.headers||!this.headers)&&(this.headers=new p(L.headers)),this.method=R(L.method||this.method||"GET"),this.mode=L.mode||this.mode||null,this.signal=L.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&P)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(P)}U.prototype.clone=function(){return new U(this,{body:this._bodyInit})};function N(k){var L=new FormData;return k.trim().split("&").forEach(function(P){if(P){var G=P.split("="),H=G.shift().replace(/\+/g," "),q=G.join("=").replace(/\+/g," ");L.append(decodeURIComponent(H),decodeURIComponent(q))}}),L}function z(k){var L=new p,P=k.replace(/\r?\n[\t ]+/g," ");return P.split(/\r?\n/).forEach(function(G){var H=G.split(":"),q=H.shift().trim();if(q){var se=H.join(":").trim();L.append(q,se)}}),L}C.call(U.prototype);function $(k,L){L||(L={}),this.type="default",this.status=L.status===void 0?200:L.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in L?L.statusText:"OK",this.headers=new p(L.headers),this.url=L.url||"",this._initBody(k)}C.call($.prototype),$.prototype.clone=function(){return new $(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},$.error=function(){var k=new $(null,{status:0,statusText:""});return k.type="error",k};var w=[301,302,303,307,308];$.redirect=function(k,L){if(w.indexOf(L)===-1)throw new RangeError("Invalid status code");return new $(null,{status:L,headers:{location:k}})},o.DOMException=a.DOMException;try{new o.DOMException}catch{o.DOMException=function(L,P){this.message=L,this.name=P;var G=Error(L);this.stack=G.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function T(k,L){return new Promise(function(P,G){var H=new U(k,L);if(H.signal&&H.signal.aborted)return G(new o.DOMException("Aborted","AbortError"));var q=new XMLHttpRequest;function se(){q.abort()}q.onload=function(){var W={status:q.status,statusText:q.statusText,headers:z(q.getAllResponseHeaders()||"")};W.url="responseURL"in q?q.responseURL:W.headers.get("X-Request-URL");var ee="response"in q?q.response:q.responseText;P(new $(ee,W))},q.onerror=function(){G(new TypeError("Network request failed"))},q.ontimeout=function(){G(new TypeError("Network request failed"))},q.onabort=function(){G(new o.DOMException("Aborted","AbortError"))},q.open(H.method,H.url,!0),H.credentials==="include"?q.withCredentials=!0:H.credentials==="omit"&&(q.withCredentials=!1),"responseType"in q&&s.blob&&(q.responseType="blob"),H.headers.forEach(function(W,ee){q.setRequestHeader(ee,W)}),H.signal&&(H.signal.addEventListener("abort",se),q.onreadystatechange=function(){q.readyState===4&&H.signal.removeEventListener("abort",se)}),q.send(typeof H._bodyInit>"u"?null:H._bodyInit)})}return T.polyfill=!0,a.fetch||(a.fetch=T,a.Headers=p,a.Request=U,a.Response=$),o.Headers=p,o.Request=U,o.Response=$,o.fetch=T,Object.defineProperty(o,"__esModule",{value:!0}),o})({})})(n),n.fetch.ponyfill=!0,delete n.fetch.polyfill;var i=n;e=i.fetch,e.default=i.fetch,e.fetch=i.fetch,e.Headers=i.Headers,e.Request=i.Request,e.Response=i.Response,r.exports=e})(Md,Md.exports);var HB=Md.exports;const xE=vr(HB),YB={utf16le:"utf-16le",ucs2:"utf-16le",utf16be:"utf-16be"};class jr{constructor(e){this.buffer=e,this.view=new DataView(e.buffer,e.byteOffset,e.byteLength),this.pos=0,this.length=this.buffer.length}readString(e,t="ascii"){t=YB[t]||t;let n=this.readBuffer(e);try{return new TextDecoder(t).decode(n)}catch{return n}}readBuffer(e){return this.buffer.slice(this.pos,this.pos+=e)}readUInt24BE(){return(this.readUInt16BE()<<8)+this.readUInt8()}readUInt24LE(){return this.readUInt16LE()+(this.readUInt8()<<16)}readInt24BE(){return(this.readInt16BE()<<8)+this.readUInt8()}readInt24LE(){return this.readUInt16LE()+(this.readInt8()<<16)}}jr.TYPES={UInt8:1,UInt16:2,UInt24:3,UInt32:4,Int8:1,Int16:2,Int24:3,Int32:4,Float:4,Double:8};for(let r of Object.getOwnPropertyNames(DataView.prototype))if(r.slice(0,3)==="get"){let e=r.slice(3).replace("Ui","UI");e==="Float32"?e="Float":e==="Float64"&&(e="Double");let t=jr.TYPES[e];jr.prototype["read"+e+(t===1?"":"BE")]=function(){const n=this.view[r](this.pos,!1);return this.pos+=t,n},t!==1&&(jr.prototype["read"+e+"LE"]=function(){const n=this.view[r](this.pos,!0);return this.pos+=t,n})}const zB=new TextEncoder,Dv=new Uint8Array(new Uint16Array([4660]).buffer)[0]==18;class $f{constructor(e){this.buffer=e,this.view=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),this.pos=0}writeBuffer(e){this.buffer.set(e,this.pos),this.pos+=e.length}writeString(e,t="ascii"){let n;switch(t){case"utf16le":case"utf16-le":case"ucs2":n=Qv(e,Dv);break;case"utf16be":case"utf16-be":n=Qv(e,!Dv);break;case"utf8":n=zB.encode(e);break;case"ascii":n=WB(e);break;default:throw new Error(`Unsupported encoding: ${t}`)}this.writeBuffer(n)}writeUInt24BE(e){this.buffer[this.pos++]=e>>>16&255,this.buffer[this.pos++]=e>>>8&255,this.buffer[this.pos++]=e&255}writeUInt24LE(e){this.buffer[this.pos++]=e&255,this.buffer[this.pos++]=e>>>8&255,this.buffer[this.pos++]=e>>>16&255}writeInt24BE(e){e>=0?this.writeUInt24BE(e):this.writeUInt24BE(e+16777215+1)}writeInt24LE(e){e>=0?this.writeUInt24LE(e):this.writeUInt24LE(e+16777215+1)}fill(e,t){if(t<this.buffer.length)this.buffer.fill(e,this.pos,this.pos+t),this.pos+=t;else{const n=new Uint8Array(t);n.fill(e),this.writeBuffer(n)}}}function Qv(r,e){let t=new Uint16Array(r.length);for(let n=0;n<r.length;n++){let i=r.charCodeAt(n);e&&(i=i>>8|(i&255)<<8),t[n]=i}return new Uint8Array(t.buffer)}function WB(r){let e=new Uint8Array(r.length);for(let t=0;t<r.length;t++)e[t]=r.charCodeAt(t);return e}for(let r of Object.getOwnPropertyNames(DataView.prototype))if(r.slice(0,3)==="set"){let e=r.slice(3).replace("Ui","UI");e==="Float32"?e="Float":e==="Float64"&&(e="Double");let t=jr.TYPES[e];$f.prototype["write"+e+(t===1?"":"BE")]=function(n){this.view[r](this.pos,n,!1),this.pos+=t},t!==1&&($f.prototype["write"+e+"LE"]=function(n){this.view[r](this.pos,n,!0),this.pos+=t})}class Aa{fromBuffer(e){let t=new jr(e);return this.decode(t)}toBuffer(e){let t=this.size(e),n=new Uint8Array(t),i=new $f(n);return this.encode(i,e),n}}class Lt extends Aa{constructor(e,t="BE"){super(),this.type=e,this.endian=t,this.fn=this.type,this.type[this.type.length-1]!=="8"&&(this.fn+=this.endian)}size(){return jr.TYPES[this.type]}decode(e){return e[`read${this.fn}`]()}encode(e,t){return e[`write${this.fn}`](t)}}const Be=new Lt("UInt8"),Lr=new Lt("UInt16","BE"),E=Lr,$B=new Lt("UInt16","LE"),VB=new Lt("UInt24","BE"),qa=VB;new Lt("UInt24","LE");const _E=new Lt("UInt32","BE"),Z=_E,KB=new Lt("UInt32","LE"),xr=new Lt("Int8"),qB=new Lt("Int16","BE"),Ce=qB;new Lt("Int16","LE");new Lt("Int24","BE");new Lt("Int24","LE");const JB=new Lt("Int32","BE"),No=JB;new Lt("Int32","LE");new Lt("Float","BE");new Lt("Float","LE");new Lt("Double","BE");new Lt("Double","LE");class As extends Lt{constructor(e,t,n=e>>1){super(`Int${e}`,t),this._point=1<<n}decode(e){return super.decode(e)/this._point}encode(e,t){return super.encode(e,t*this._point|0)}}const jB=new As(16,"BE"),ZB=jB;new As(16,"LE");const XB=new As(32,"BE"),dr=XB;new As(32,"LE");function Si(r,e,t){let n;if(typeof r=="number"?n=r:typeof r=="function"?n=r.call(t,t):t&&typeof r=="string"?n=t[r]:e&&r instanceof Lt&&(n=r.decode(e)),isNaN(n))throw new Error("Not a fixed size");return n}class zg{constructor(e={}){this.enumerable=!0,this.configurable=!0;for(let t in e){const n=e[t];this[t]=n}}}class K extends Aa{constructor(e,t,n="count"){super(),this.type=e,this.length=t,this.lengthType=n}decode(e,t){let n;const{pos:i}=e,a=[];let o=t;if(this.length!=null&&(n=Si(this.length,e,t)),this.length instanceof Lt&&(Object.defineProperties(a,{parent:{value:t},_startOffset:{value:i},_currentOffset:{value:0,writable:!0},_length:{value:n}}),o=a),n==null||this.lengthType==="bytes"){const s=n!=null?e.pos+n:t!=null&&t._length?t._startOffset+t._length:e.length;for(;e.pos<s;)a.push(this.type.decode(e,o))}else for(let s=0,l=n;s<l;s++)a.push(this.type.decode(e,o));return a}size(e,t,n=!0){if(!e)return this.type.size(null,t)*Si(this.length,null,t);let i=0;this.length instanceof Lt&&(i+=this.length.size(),t={parent:t,pointerSize:0});for(let a of e)i+=this.type.size(a,t);return t&&n&&this.length instanceof Lt&&(i+=t.pointerSize),i}encode(e,t,n){let i=n;this.length instanceof Lt&&(i={pointers:[],startOffset:e.pos,parent:n},i.pointerOffset=e.pos+this.size(t,i,!1),this.length.encode(e,t.length));for(let a of t)this.type.encode(e,a,i);if(this.length instanceof Lt){let a=0;for(;a<i.pointers.length;){const o=i.pointers[a++];o.type.encode(e,o.val,o.parent)}}}}class $t extends K{decode(e,t){const{pos:n}=e,i=Si(this.length,e,t);this.length instanceof Lt&&(t={parent:t,_startOffset:n,_currentOffset:0,_length:i});const a=new X1(this.type,i,e,t);return e.pos+=i*this.type.size(null,t),a}size(e,t){return e instanceof X1&&(e=e.toArray()),super.size(e,t)}encode(e,t,n){return t instanceof X1&&(t=t.toArray()),super.encode(e,t,n)}}class X1{constructor(e,t,n,i){this.type=e,this.length=t,this.stream=n,this.ctx=i,this.base=this.stream.pos,this.items=[]}get(e){if(!(e<0||e>=this.length)){if(this.items[e]==null){const{pos:t}=this.stream;this.stream.pos=this.base+this.type.size(null,this.ctx)*e,this.items[e]=this.type.decode(this.stream,this.ctx),this.stream.pos=t}return this.items[e]}}toArray(){const e=[];for(let t=0,n=this.length;t<n;t++)e.push(this.get(t));return e}}class Wn extends Aa{constructor(e,t=[]){super(),this.type=e,this.flags=t}decode(e){const t=this.type.decode(e),n={};for(let i=0;i<this.flags.length;i++){const a=this.flags[i];a!=null&&(n[a]=!!(t&1<<i))}return n}size(){return this.type.size()}encode(e,t){let n=0;for(let i=0;i<this.flags.length;i++){const a=this.flags[i];a!=null&&t[a]&&(n|=1<<i)}return this.type.encode(e,n)}}class Zr extends Aa{constructor(e){super(),this.length=e}decode(e,t){const n=Si(this.length,e,t);return e.readBuffer(n)}size(e,t){if(!e)return Si(this.length,null,t);let n=e.length;return this.length instanceof Lt&&(n+=this.length.size()),n}encode(e,t,n){return this.length instanceof Lt&&this.length.encode(e,t.length),e.writeBuffer(t)}}class Vf extends Aa{constructor(e,t=!0){super(),this.type=e,this.condition=t}decode(e,t){let{condition:n}=this;if(typeof n=="function"&&(n=n.call(t,t)),n)return this.type.decode(e,t)}size(e,t){let{condition:n}=this;return typeof n=="function"&&(n=n.call(t,t)),n?this.type.size(e,t):0}encode(e,t,n){let{condition:i}=this;if(typeof i=="function"&&(i=i.call(n,n)),i)return this.type.encode(e,t,n)}}class rr extends Aa{constructor(e,t=1){super(),this.type=e,this.count=t}decode(e,t){e.pos+=this.size(null,t)}size(e,t){const n=Si(this.count,null,t);return this.type.size()*n}encode(e,t,n){return e.fill(0,this.size(t,n))}}class Nt extends Aa{constructor(e,t="ascii"){super(),this.length=e,this.encoding=t}decode(e,t){let n,i;if(this.length!=null)n=Si(this.length,e,t);else{let s;for({buffer:s,length:n,pos:i}=e;i<n&&s[i]!==0;)++i;n=i-e.pos}let{encoding:a}=this;typeof a=="function"&&(a=a.call(t,t)||"ascii");const o=e.readString(n,a);return this.length==null&&e.pos<e.length&&e.pos++,o}size(e,t){if(!e)return Si(this.length,null,t);let{encoding:n}=this;typeof n=="function"&&(n=n.call(t!=null?t.val:void 0,t!=null?t.val:void 0)||"ascii"),n==="utf16be"&&(n="utf16le");let i=xv(e,n);return this.length instanceof Lt&&(i+=this.length.size()),this.length==null&&i++,i}encode(e,t,n){let{encoding:i}=this;if(typeof i=="function"&&(i=i.call(n!=null?n.val:void 0,n!=null?n.val:void 0)||"ascii"),this.length instanceof Lt&&this.length.encode(e,xv(t,i)),e.writeString(t,i),this.length==null)return e.writeUInt8(0)}}function xv(r,e){switch(e){case"ascii":return r.length;case"utf8":let t=0;for(let n=0;n<r.length;n++){let i=r.charCodeAt(n);if(i>=55296&&i<=56319&&n<r.length-1){let a=r.charCodeAt(++n);(a&64512)===56320?i=((i&1023)<<10)+(a&1023)+65536:n--}i&4294967168?i&4294965248?i&4294901760?i&4292870144||(t+=4):t+=3:t+=2:t++}return t;case"utf16le":case"utf16-le":case"utf16be":case"utf16-be":case"ucs2":return r.length*2;default:throw new Error("Unknown encoding "+e)}}class re extends Aa{constructor(e={}){super(),this.fields=e}decode(e,t,n=0){const i=this._setup(e,t,n);return this._parseFields(e,i,this.fields),this.process!=null&&this.process.call(i,e),i}_setup(e,t,n){const i={};return Object.defineProperties(i,{parent:{value:t},_startOffset:{value:e.pos},_currentOffset:{value:0,writable:!0},_length:{value:n}}),i}_parseFields(e,t,n){for(let a in n){var i;const o=n[a];typeof o=="function"?i=o.call(t,t):i=o.decode(e,t),i!==void 0&&(i instanceof zg?Object.defineProperty(t,a,i):t[a]=i),t._currentOffset=e.pos-t._startOffset}}size(e,t,n=!0){e==null&&(e={});const i={parent:t,val:e,pointerSize:0};this.preEncode!=null&&this.preEncode.call(e);let a=0;for(let o in this.fields){const s=this.fields[o];s.size!=null&&(a+=s.size(e[o],i))}return n&&(a+=i.pointerSize),a}encode(e,t,n){let i;this.preEncode!=null&&this.preEncode.call(t,e);const a={pointers:[],startOffset:e.pos,parent:n,val:t,pointerSize:0};a.pointerOffset=e.pos+this.size(t,a,!1);for(let s in this.fields)i=this.fields[s],i.encode!=null&&i.encode(e,t[s],a);let o=0;for(;o<a.pointers.length;){const s=a.pointers[o++];s.type.encode(e,s.val,s.parent)}}}const e8=(r,e)=>e.reduce((t,n)=>t&&t[n],r);class st extends re{constructor(e,t={}){super(),this.type=e,this.versions=t,typeof e=="string"&&(this.versionPath=e.split("."))}decode(e,t,n=0){const i=this._setup(e,t,n);typeof this.type=="string"?i.version=e8(t,this.versionPath):i.version=this.type.decode(e),this.versions.header&&this._parseFields(e,i,this.versions.header);const a=this.versions[i.version];if(a==null)throw new Error(`Unknown version ${i.version}`);return a instanceof st?a.decode(e,t):(this._parseFields(e,i,a),this.process!=null&&this.process.call(i,e),i)}size(e,t,n=!0){let i,a;if(!e)throw new Error("Not a fixed size");this.preEncode!=null&&this.preEncode.call(e);const o={parent:t,val:e,pointerSize:0};let s=0;if(typeof this.type!="string"&&(s+=this.type.size(e.version,o)),this.versions.header)for(i in this.versions.header)a=this.versions.header[i],a.size!=null&&(s+=a.size(e[i],o));const l=this.versions[e.version];if(l==null)throw new Error(`Unknown version ${e.version}`);for(i in l)a=l[i],a.size!=null&&(s+=a.size(e[i],o));return n&&(s+=o.pointerSize),s}encode(e,t,n){let i,a;this.preEncode!=null&&this.preEncode.call(t,e);const o={pointers:[],startOffset:e.pos,parent:n,val:t,pointerSize:0};if(o.pointerOffset=e.pos+this.size(t,o,!1),typeof this.type!="string"&&this.type.encode(e,t.version),this.versions.header)for(i in this.versions.header)a=this.versions.header[i],a.encode!=null&&a.encode(e,t[i],o);const s=this.versions[t.version];for(i in s)a=s[i],a.encode!=null&&a.encode(e,t[i],o);let l=0;for(;l<o.pointers.length;){const u=o.pointers[l++];u.type.encode(e,u.val,u.parent)}}}class J extends Aa{constructor(e,t,n={}){if(super(),this.offsetType=e,this.type=t,this.options=n,this.type==="void"&&(this.type=null),this.options.type==null&&(this.options.type="local"),this.options.allowNull==null&&(this.options.allowNull=!0),this.options.nullValue==null&&(this.options.nullValue=0),this.options.lazy==null&&(this.options.lazy=!1),this.options.relativeTo){if(typeof this.options.relativeTo!="function")throw new Error("relativeTo option must be a function");this.relativeToGetter=n.relativeTo}}decode(e,t){const n=this.offsetType.decode(e,t);if(n===this.options.nullValue&&this.options.allowNull)return null;let i;switch(this.options.type){case"local":i=t._startOffset;break;case"immediate":i=e.pos-this.offsetType.size();break;case"parent":i=t.parent._startOffset;break;default:for(var a=t;a.parent;)a=a.parent;i=a._startOffset||0}this.options.relativeTo&&(i+=this.relativeToGetter(t));const o=n+i;if(this.type!=null){let s=null;const l=()=>{if(s!=null)return s;const{pos:u}=e;return e.pos=o,s=this.type.decode(e,t),e.pos=u,s};return this.options.lazy?new zg({get:l}):l()}else return o}size(e,t){const n=t;switch(this.options.type){case"local":case"immediate":break;case"parent":t=t.parent;break;default:for(;t.parent;)t=t.parent}let{type:i}=this;if(i==null){if(!(e instanceof Pd))throw new Error("Must be a VoidPointer");({type:i}=e),e=e.value}if(e&&t){let a=i.size(e,n);t.pointerSize+=a}return this.offsetType.size()}encode(e,t,n){let i;const a=n;if(t==null){this.offsetType.encode(e,this.options.nullValue);return}switch(this.options.type){case"local":i=n.startOffset;break;case"immediate":i=e.pos+this.offsetType.size(t,a);break;case"parent":n=n.parent,i=n.startOffset;break;default:for(i=0;n.parent;)n=n.parent}this.options.relativeTo&&(i+=this.relativeToGetter(a.val)),this.offsetType.encode(e,n.pointerOffset-i);let{type:o}=this;if(o==null){if(!(t instanceof Pd))throw new Error("Must be a VoidPointer");({type:o}=t),t=t.value}return n.pointers.push({type:o,val:t,parent:a}),n.pointerOffset+=o.size(t,a)}}class Pd{constructor(e,t){this.type=e,this.value=t}}function U0(r,e,t){return e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var t8=function r(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,i,a;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(i=n;i--!==0;)if(!r(e[i],t[i]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(a=Object.keys(e),n=a.length,n!==Object.keys(t).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,a[i]))return!1;for(i=n;i--!==0;){var o=a[i];if(!r(e[o],t[o]))return!1}return!0}return e!==e&&t!==t};const _v=vr(t8);var Lu={};Lu.byteLength=i8;Lu.toByteArray=o8;Lu.fromByteArray=u8;var pi=[],Cn=[],r8=typeof Uint8Array<"u"?Uint8Array:Array,eh="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var Ts=0,n8=eh.length;Ts<n8;++Ts)pi[Ts]=eh[Ts],Cn[eh.charCodeAt(Ts)]=Ts;Cn[45]=62;Cn[95]=63;function FE(r){var e=r.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var t=r.indexOf("=");t===-1&&(t=e);var n=t===e?0:4-t%4;return[t,n]}function i8(r){var e=FE(r),t=e[0],n=e[1];return(t+n)*3/4-n}function a8(r,e,t){return(e+t)*3/4-t}function o8(r){var e,t=FE(r),n=t[0],i=t[1],a=new r8(a8(r,n,i)),o=0,s=i>0?n-4:n,l;for(l=0;l<s;l+=4)e=Cn[r.charCodeAt(l)]<<18|Cn[r.charCodeAt(l+1)]<<12|Cn[r.charCodeAt(l+2)]<<6|Cn[r.charCodeAt(l+3)],a[o++]=e>>16&255,a[o++]=e>>8&255,a[o++]=e&255;return i===2&&(e=Cn[r.charCodeAt(l)]<<2|Cn[r.charCodeAt(l+1)]>>4,a[o++]=e&255),i===1&&(e=Cn[r.charCodeAt(l)]<<10|Cn[r.charCodeAt(l+1)]<<4|Cn[r.charCodeAt(l+2)]>>2,a[o++]=e>>8&255,a[o++]=e&255),a}function s8(r){return pi[r>>18&63]+pi[r>>12&63]+pi[r>>6&63]+pi[r&63]}function l8(r,e,t){for(var n,i=[],a=e;a<t;a+=3)n=(r[a]<<16&16711680)+(r[a+1]<<8&65280)+(r[a+2]&255),i.push(s8(n));return i.join("")}function u8(r){for(var e,t=r.length,n=t%3,i=[],a=16383,o=0,s=t-n;o<s;o+=a)i.push(l8(r,o,o+a>s?s:o+a));return n===1?(e=r[t-1],i.push(pi[e>>2]+pi[e<<4&63]+"==")):n===2&&(e=(r[t-2]<<8)+r[t-1],i.push(pi[e>>10]+pi[e>>4&63]+pi[e<<2&63]+"=")),i.join("")}var Wg=0,SE=-3;function du(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function c8(r,e){this.source=r,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=e,this.destLen=0,this.ltree=new du,this.dtree=new du}var kE=new du,TE=new du,$g=new Uint8Array(30),Vg=new Uint16Array(30),RE=new Uint8Array(30),NE=new Uint16Array(30),f8=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Fv=new du,si=new Uint8Array(320);function OE(r,e,t,n){var i,a;for(i=0;i<t;++i)r[i]=0;for(i=0;i<30-t;++i)r[i+t]=i/t|0;for(a=n,i=0;i<30;++i)e[i]=a,a+=1<<r[i]}function A8(r,e){var t;for(t=0;t<7;++t)r.table[t]=0;for(r.table[7]=24,r.table[8]=152,r.table[9]=112,t=0;t<24;++t)r.trans[t]=256+t;for(t=0;t<144;++t)r.trans[24+t]=t;for(t=0;t<8;++t)r.trans[168+t]=280+t;for(t=0;t<112;++t)r.trans[176+t]=144+t;for(t=0;t<5;++t)e.table[t]=0;for(e.table[5]=32,t=0;t<32;++t)e.trans[t]=t}var Sv=new Uint16Array(16);function th(r,e,t,n){var i,a;for(i=0;i<16;++i)r.table[i]=0;for(i=0;i<n;++i)r.table[e[t+i]]++;for(r.table[0]=0,a=0,i=0;i<16;++i)Sv[i]=a,a+=r.table[i];for(i=0;i<n;++i)e[t+i]&&(r.trans[Sv[e[t+i]]++]=i)}function h8(r){r.bitcount--||(r.tag=r.source[r.sourceIndex++],r.bitcount=7);var e=r.tag&1;return r.tag>>>=1,e}function gi(r,e,t){if(!e)return t;for(;r.bitcount<24;)r.tag|=r.source[r.sourceIndex++]<<r.bitcount,r.bitcount+=8;var n=r.tag&65535>>>16-e;return r.tag>>>=e,r.bitcount-=e,n+t}function Ud(r,e){for(;r.bitcount<24;)r.tag|=r.source[r.sourceIndex++]<<r.bitcount,r.bitcount+=8;var t=0,n=0,i=0,a=r.tag;do n=2*n+(a&1),a>>>=1,++i,t+=e.table[i],n-=e.table[i];while(n>=0);return r.tag=a,r.bitcount-=i,e.trans[t+n]}function d8(r,e,t){var n,i,a,o,s,l;for(n=gi(r,5,257),i=gi(r,5,1),a=gi(r,4,4),o=0;o<19;++o)si[o]=0;for(o=0;o<a;++o){var u=gi(r,3,0);si[f8[o]]=u}for(th(Fv,si,0,19),s=0;s<n+i;){var c=Ud(r,Fv);switch(c){case 16:var h=si[s-1];for(l=gi(r,2,3);l;--l)si[s++]=h;break;case 17:for(l=gi(r,3,3);l;--l)si[s++]=0;break;case 18:for(l=gi(r,7,11);l;--l)si[s++]=0;break;default:si[s++]=c;break}}th(e,si,0,n),th(t,si,n,i)}function kv(r,e,t){for(;;){var n=Ud(r,e);if(n===256)return Wg;if(n<256)r.dest[r.destLen++]=n;else{var i,a,o,s;for(n-=257,i=gi(r,$g[n],Vg[n]),a=Ud(r,t),o=r.destLen-gi(r,RE[a],NE[a]),s=o;s<o+i;++s)r.dest[r.destLen++]=r.dest[s]}}}function g8(r){for(var e,t,n;r.bitcount>8;)r.sourceIndex--,r.bitcount-=8;if(e=r.source[r.sourceIndex+1],e=256*e+r.source[r.sourceIndex],t=r.source[r.sourceIndex+3],t=256*t+r.source[r.sourceIndex+2],e!==(~t&65535))return SE;for(r.sourceIndex+=4,n=e;n;--n)r.dest[r.destLen++]=r.source[r.sourceIndex++];return r.bitcount=0,Wg}function v8(r,e){var t=new c8(r,e),n,i,a;do{switch(n=h8(t),i=gi(t,2,0),i){case 0:a=g8(t);break;case 1:a=kv(t,kE,TE);break;case 2:d8(t,t.ltree,t.dtree),a=kv(t,t.ltree,t.dtree);break;default:a=SE}if(a!==Wg)throw new Error("Data error")}while(!n);return t.destLen<t.dest.length?typeof t.dest.slice=="function"?t.dest.slice(0,t.destLen):t.dest.subarray(0,t.destLen):t.dest}A8(kE,TE);OE($g,Vg,4,3);OE(RE,NE,2,1);$g[28]=0;Vg[28]=258;var LE=v8;const p8=vr(LE),m8=new Uint8Array(new Uint32Array([305419896]).buffer)[0]===18,Tv=(r,e,t)=>{let n=r[e];r[e]=r[t],r[t]=n},E8=r=>{const e=r.length;for(let t=0;t<e;t+=4)Tv(r,t,t+3),Tv(r,t+1,t+2)},C8=r=>{m8&&E8(r)};var I8={swap32LE:C8};const Rv=LE,{swap32LE:y8}=I8,Kg=11,Jo=5,b8=Kg-Jo,w8=65536>>Kg,B8=1<<b8,D8=B8-1,gf=2,Q8=1<<Jo,rh=Q8-1,ME=65536>>Jo,x8=1024>>Jo,_8=ME+x8,F8=_8,S8=32,k8=F8+S8,T8=1<<gf;class R8{constructor(e){const t=typeof e.readUInt32BE=="function"&&typeof e.slice=="function";if(t||e instanceof Uint8Array){let n;if(t)this.highStart=e.readUInt32LE(0),this.errorValue=e.readUInt32LE(4),n=e.readUInt32LE(8),e=e.slice(12);else{const i=new DataView(e.buffer);this.highStart=i.getUint32(0,!0),this.errorValue=i.getUint32(4,!0),n=i.getUint32(8,!0),e=e.subarray(12)}e=Rv(e,new Uint8Array(n)),e=Rv(e,new Uint8Array(n)),y8(e),this.data=new Uint32Array(e.buffer)}else({data:this.data,highStart:this.highStart,errorValue:this.errorValue}=e)}get(e){let t;return e<0||e>1114111?this.errorValue:e<55296||e>56319&&e<=65535?(t=(this.data[e>>Jo]<<gf)+(e&rh),this.data[t]):e<=65535?(t=(this.data[ME+(e-55296>>Jo)]<<gf)+(e&rh),this.data[t]):e<this.highStart?(t=this.data[k8-w8+(e>>Kg)],t=this.data[t+(e>>Jo&D8)],t=(t<<gf)+(e&rh),this.data[t]):this.data[this.data.length-T8]}}var N8=R8;const FA=vr(N8);function lo(r){return r&&r.__esModule?r.default:r}var ha={};ha=JSON.parse('{"categories":["Cc","Zs","Po","Sc","Ps","Pe","Sm","Pd","Nd","Lu","Sk","Pc","Ll","So","Lo","Pi","Cf","No","Pf","Lt","Lm","Mn","Me","Mc","Nl","Zl","Zp","Cs","Co"],"combiningClasses":["Not_Reordered","Above","Above_Right","Below","Attached_Above_Right","Attached_Below","Overlay","Iota_Subscript","Double_Below","Double_Above","Below_Right","Above_Left","CCC10","CCC11","CCC12","CCC13","CCC14","CCC15","CCC16","CCC17","CCC18","CCC19","CCC20","CCC21","CCC22","CCC23","CCC24","CCC25","CCC30","CCC31","CCC32","CCC27","CCC28","CCC29","CCC33","CCC34","CCC35","CCC36","Nukta","Virama","CCC84","CCC91","CCC103","CCC107","CCC118","CCC122","CCC129","CCC130","CCC132","Attached_Above","Below_Left","Left","Kana_Voicing","CCC26","Right"],"scripts":["Common","Latin","Bopomofo","Inherited","Greek","Coptic","Cyrillic","Armenian","Hebrew","Arabic","Syriac","Thaana","Nko","Samaritan","Mandaic","Devanagari","Bengali","Gurmukhi","Gujarati","Oriya","Tamil","Telugu","Kannada","Malayalam","Sinhala","Thai","Lao","Tibetan","Myanmar","Georgian","Hangul","Ethiopic","Cherokee","Canadian_Aboriginal","Ogham","Runic","Tagalog","Hanunoo","Buhid","Tagbanwa","Khmer","Mongolian","Limbu","Tai_Le","New_Tai_Lue","Buginese","Tai_Tham","Balinese","Sundanese","Batak","Lepcha","Ol_Chiki","Braille","Glagolitic","Tifinagh","Han","Hiragana","Katakana","Yi","Lisu","Vai","Bamum","Syloti_Nagri","Phags_Pa","Saurashtra","Kayah_Li","Rejang","Javanese","Cham","Tai_Viet","Meetei_Mayek","null","Linear_B","Lycian","Carian","Old_Italic","Gothic","Old_Permic","Ugaritic","Old_Persian","Deseret","Shavian","Osmanya","Osage","Elbasan","Caucasian_Albanian","Linear_A","Cypriot","Imperial_Aramaic","Palmyrene","Nabataean","Hatran","Phoenician","Lydian","Meroitic_Hieroglyphs","Meroitic_Cursive","Kharoshthi","Old_South_Arabian","Old_North_Arabian","Manichaean","Avestan","Inscriptional_Parthian","Inscriptional_Pahlavi","Psalter_Pahlavi","Old_Turkic","Old_Hungarian","Hanifi_Rohingya","Old_Sogdian","Sogdian","Elymaic","Brahmi","Kaithi","Sora_Sompeng","Chakma","Mahajani","Sharada","Khojki","Multani","Khudawadi","Grantha","Newa","Tirhuta","Siddham","Modi","Takri","Ahom","Dogra","Warang_Citi","Nandinagari","Zanabazar_Square","Soyombo","Pau_Cin_Hau","Bhaiksuki","Marchen","Masaram_Gondi","Gunjala_Gondi","Makasar","Cuneiform","Egyptian_Hieroglyphs","Anatolian_Hieroglyphs","Mro","Bassa_Vah","Pahawh_Hmong","Medefaidrin","Miao","Tangut","Nushu","Duployan","SignWriting","Nyiakeng_Puachue_Hmong","Wancho","Mende_Kikakui","Adlam"],"eaw":["N","Na","A","W","H","F"]}');const Mu=new FA(Lu.toByteArray("AAARAAAAAADwfAEAZXl5ONRt+/5bPVFZimRfKoTQJNm37CGE7Iw0j3UsTWKsoyI7kwyyTiEUzSD7NiEzhWYijH0wMVkHE4Mx49fzfo+3nuP4/fdZjvv+XNd5n/d9nef1WZvmKhTxiZndzDQBSEYQqxqKwnsKvGQucFh+6t6cJ792ePQBZv5S9yXSwkyjf/P4T7mTNnIAv1dOVhMlR9lflbUL9JeJguqsjvG9NTj/wLb566VAURnLo2vvRi89S3gW/33ihh2eXpDn40BIW7REl/7coRKIhAFlAiOtbLDTt6mMb4GzMF1gNnvX/sBxtbsAIjfztCNcQjcNDtLThRvuXu5M5g/CBjaLBE4lJm4qy/oZD97+IJryApcXfgWYlkvWbhfXgujOJKVu8B+ozqTLbxyJ5kNiR75CxDqfBM9eOlDMmGeoZ0iQbbS5VUplIwI+ZNXEKQVJxlwqjhOY7w3XwPesbLK5JZE+Tt4X8q8km0dzInsPPzbscrjBMVjF5mOHSeRdJVgKUjLTHiHqXSPkep8N/zFk8167KLp75f6RndkvzdfB6Uz3MmqvRArzdCbs1/iRZjYPLLF3U8Qs+H+Rb8iK51a6NIV2V9+07uJsTGFWpPz8J++7iRu2B6eAKlK/kujrLthwaD/7a6J5w90TusnH1JMAc+gNrql4aspOUG/RrsxUKmPzhHgP4Bleru+6Vfc/MBjgXVx7who94nPn7MPFrnwQP7g0k0Dq0h2GSKO6fTZ8nLodN1SiOUj/5EL/Xo1DBvRm0wmrh3x6phcJ20/9CuMr5h8WPqXMSasLoLHoufTmE7mzYrs6B0dY7KjuCogKqsvxnxAwXWvd9Puc9PnE8DOHT2INHxRlIyVHrqZahtfV2E/A2PDdtA3ewlRHMtFIBKO/T4IozWTQZ+mb+gdKuk/ZHrqloucKdsOSJmlWTSntWjcxVMjUmroXLM10I6TwDLnBq4LP69TxgVeyGsd8yHvhF8ydPlrNRSNs9EP7WmeuSE7Lu10JbO