File: /var/www/doco/testConnect/assets/index-23490e5c.js
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();const q0={__name:e=>{const{normalize:t}=e;return t(["English"])},__flag:e=>{const{normalize:t}=e;return t(["EN"])},__status:e=>{const{normalize:t}=e;return t([])},Themes:e=>{const{normalize:t}=e;return t(["Themes"])},LoginBtnName:e=>{const{normalize:t}=e;return t(["Login"])},LoginMeto:e=>{const{normalize:t}=e;return t(["Plase use Metamsk or Wallet Scan to login"])},"":e=>{const{normalize:t}=e;return t([])}},z0=Object.freeze(Object.defineProperty({__proto__:null,default:q0},Symbol.toStringTag,{value:"Module"})),V0={__name:e=>{const{normalize:t}=e;return t(["中文"])},__flag:e=>{const{normalize:t}=e;return t(["CN"])},__status:e=>{const{normalize:t}=e;return t([])},Themes:e=>{const{normalize:t}=e;return t(["主题"])},LoginBtnName:e=>{const{normalize:t}=e;return t(["登录"])},LoginMeto:e=>{const{normalize:t}=e;return t(["请使用Metamask或钱包扫描登入"])},"":e=>{const{normalize:t}=e;return t([])}},K0=Object.freeze(Object.defineProperty({__proto__:null,default:V0},Symbol.toStringTag,{value:"Module"}));function Hs(e,t){const n=Object.create(null),r=e.split(",");for(let i=0;i<r.length;i++)n[r[i]]=!0;return t?i=>!!n[i.toLowerCase()]:i=>!!n[i]}function qs(e){if(me(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],i=Xe(r)?Q0(r):qs(r);if(i)for(const o in i)t[o]=i[o]}return t}else{if(Xe(e))return e;if(Ke(e))return e}}const Y0=/;(?![^(]*\))/g,J0=/:([^]+)/,G0=/\/\*.*?\*\//gs;function Q0(e){const t={};return e.replace(G0,"").split(Y0).forEach(n=>{if(n){const r=n.split(J0);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function zs(e){let t="";if(Xe(e))t=e;else if(me(e))for(let n=0;n<e.length;n++){const r=zs(e[n]);r&&(t+=r+" ")}else if(Ke(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Z0="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",X0=Hs(Z0);function Bu(e){return!!e||e===""}const j2=e=>Xe(e)?e:e==null?"":me(e)||Ke(e)&&(e.toString===$u||!_e(e.toString))?JSON.stringify(e,Lu,2):String(e),Lu=(e,t)=>t&&t.__v_isRef?Lu(e,t.value):tr(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,i])=>(n[`${r} =>`]=i,n),{})}:Du(t)?{[`Set(${t.size})`]:[...t.values()]}:Ke(t)&&!me(t)&&!Wu(t)?String(t):t,Ve={},er=[],Ot=()=>{},ep=()=>!1,tp=/^on[^a-z]/,Wi=e=>tp.test(e),Vs=e=>e.startsWith("onUpdate:"),st=Object.assign,Ks=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},np=Object.prototype.hasOwnProperty,Ee=(e,t)=>np.call(e,t),me=Array.isArray,tr=e=>ji(e)==="[object Map]",Du=e=>ji(e)==="[object Set]",_e=e=>typeof e=="function",Xe=e=>typeof e=="string",Ys=e=>typeof e=="symbol",Ke=e=>e!==null&&typeof e=="object",Uu=e=>Ke(e)&&_e(e.then)&&_e(e.catch),$u=Object.prototype.toString,ji=e=>$u.call(e),rp=e=>ji(e).slice(8,-1),Wu=e=>ji(e)==="[object Object]",Js=e=>Xe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,vi=Hs(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Hi=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},ip=/-(\w)/g,Wt=Hi(e=>e.replace(ip,(t,n)=>n?n.toUpperCase():"")),op=/\B([A-Z])/g,mr=Hi(e=>e.replace(op,"-$1").toLowerCase()),qi=Hi(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ro=Hi(e=>e?`on${qi(e)}`:""),Dr=(e,t)=>!Object.is(e,t),Oo=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Si=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},sp=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let bl;const ap=()=>bl||(bl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let gt;class ju{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=gt,!t&>&&(this.index=(gt.scopes||(gt.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=gt;try{return gt=this,t()}finally{gt=n}}}on(){gt=this}off(){gt=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.scopes)for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0,this._active=!1}}}function Gs(e){return new ju(e)}function lp(e,t=gt){t&&t.active&&t.effects.push(e)}function Qs(){return gt}function Hu(e){gt&>.cleanups.push(e)}const Zs=e=>{const t=new Set(e);return t.w=0,t.n=0,t},qu=e=>(e.w&vn)>0,zu=e=>(e.n&vn)>0,cp=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=vn},up=e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const i=t[r];qu(i)&&!zu(i)?i.delete(e):t[n++]=i,i.w&=~vn,i.n&=~vn}t.length=n}},Ci=new WeakMap;let Sr=0,vn=1;const Go=30;let It;const Un=Symbol(""),Qo=Symbol("");class Xs{constructor(t,n=null,r){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,lp(this,r)}run(){if(!this.active)return this.fn();let t=It,n=dn;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=It,It=this,dn=!0,vn=1<<++Sr,Sr<=Go?cp(this):El(this),this.fn()}finally{Sr<=Go&&up(this),vn=1<<--Sr,It=this.parent,dn=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){It===this?this.deferStop=!0:this.active&&(El(this),this.onStop&&this.onStop(),this.active=!1)}}function El(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let dn=!0;const Vu=[];function gr(){Vu.push(dn),dn=!1}function _r(){const e=Vu.pop();dn=e===void 0?!0:e}function mt(e,t,n){if(dn&&It){let r=Ci.get(e);r||Ci.set(e,r=new Map);let i=r.get(n);i||r.set(n,i=Zs()),Ku(i)}}function Ku(e,t){let n=!1;Sr<=Go?zu(e)||(e.n|=vn,n=!qu(e)):n=!e.has(It),n&&(e.add(It),It.deps.push(e))}function Jt(e,t,n,r,i,o){const s=Ci.get(e);if(!s)return;let a=[];if(t==="clear")a=[...s.values()];else if(n==="length"&&me(e)){const c=Number(r);s.forEach((m,p)=>{(p==="length"||p>=c)&&a.push(m)})}else switch(n!==void 0&&a.push(s.get(n)),t){case"add":me(e)?Js(n)&&a.push(s.get("length")):(a.push(s.get(Un)),tr(e)&&a.push(s.get(Qo)));break;case"delete":me(e)||(a.push(s.get(Un)),tr(e)&&a.push(s.get(Qo)));break;case"set":tr(e)&&a.push(s.get(Un));break}if(a.length===1)a[0]&&Zo(a[0]);else{const c=[];for(const m of a)m&&c.push(...m);Zo(Zs(c))}}function Zo(e,t){const n=me(e)?e:[...e];for(const r of n)r.computed&&xl(r);for(const r of n)r.computed||xl(r)}function xl(e,t){(e!==It||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function fp(e,t){var n;return(n=Ci.get(e))===null||n===void 0?void 0:n.get(t)}const hp=Hs("__proto__,__v_isRef,__isVue"),Yu=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ys)),dp=ea(),pp=ea(!1,!0),mp=ea(!0),Ml=gp();function gp(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=be(this);for(let o=0,s=this.length;o<s;o++)mt(r,"get",o+"");const i=r[t](...n);return i===-1||i===!1?r[t](...n.map(be)):i}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){gr();const r=be(this)[t].apply(this,n);return _r(),r}}),e}function _p(e){const t=be(this);return mt(t,"has",e),t.hasOwnProperty(e)}function ea(e=!1,t=!1){return function(r,i,o){if(i==="__v_isReactive")return!e;if(i==="__v_isReadonly")return e;if(i==="__v_isShallow")return t;if(i==="__v_raw"&&o===(e?t?Np:Xu:t?Zu:Qu).get(r))return r;const s=me(r);if(!e){if(s&&Ee(Ml,i))return Reflect.get(Ml,i,o);if(i==="hasOwnProperty")return _p}const a=Reflect.get(r,i,o);return(Ys(i)?Yu.has(i):hp(i))||(e||mt(r,"get",i),t)?a:Ye(a)?s&&Js(i)?a:a.value:Ke(a)?e?ra(a):vr(a):a}}const vp=Ju(),yp=Ju(!0);function Ju(e=!1){return function(n,r,i,o){let s=n[r];if(rr(s)&&Ye(s)&&!Ye(i))return!1;if(!e&&(!Ti(i)&&!rr(i)&&(s=be(s),i=be(i)),!me(n)&&Ye(s)&&!Ye(i)))return s.value=i,!0;const a=me(n)&&Js(r)?Number(r)<n.length:Ee(n,r),c=Reflect.set(n,r,i,o);return n===be(o)&&(a?Dr(i,s)&&Jt(n,"set",r,i):Jt(n,"add",r,i)),c}}function wp(e,t){const n=Ee(e,t);e[t];const r=Reflect.deleteProperty(e,t);return r&&n&&Jt(e,"delete",t,void 0),r}function bp(e,t){const n=Reflect.has(e,t);return(!Ys(t)||!Yu.has(t))&&mt(e,"has",t),n}function Ep(e){return mt(e,"iterate",me(e)?"length":Un),Reflect.ownKeys(e)}const Gu={get:dp,set:vp,deleteProperty:wp,has:bp,ownKeys:Ep},xp={get:mp,set(e,t){return!0},deleteProperty(e,t){return!0}},Mp=st({},Gu,{get:pp,set:yp}),ta=e=>e,zi=e=>Reflect.getPrototypeOf(e);function li(e,t,n=!1,r=!1){e=e.__v_raw;const i=be(e),o=be(t);n||(t!==o&&mt(i,"get",t),mt(i,"get",o));const{has:s}=zi(i),a=r?ta:n?oa:Ur;if(s.call(i,t))return a(e.get(t));if(s.call(i,o))return a(e.get(o));e!==i&&e.get(t)}function ci(e,t=!1){const n=this.__v_raw,r=be(n),i=be(e);return t||(e!==i&&mt(r,"has",e),mt(r,"has",i)),e===i?n.has(e):n.has(e)||n.has(i)}function ui(e,t=!1){return e=e.__v_raw,!t&&mt(be(e),"iterate",Un),Reflect.get(e,"size",e)}function Sl(e){e=be(e);const t=be(this);return zi(t).has.call(t,e)||(t.add(e),Jt(t,"add",e,e)),this}function Cl(e,t){t=be(t);const n=be(this),{has:r,get:i}=zi(n);let o=r.call(n,e);o||(e=be(e),o=r.call(n,e));const s=i.call(n,e);return n.set(e,t),o?Dr(t,s)&&Jt(n,"set",e,t):Jt(n,"add",e,t),this}function Tl(e){const t=be(this),{has:n,get:r}=zi(t);let i=n.call(t,e);i||(e=be(e),i=n.call(t,e)),r&&r.call(t,e);const o=t.delete(e);return i&&Jt(t,"delete",e,void 0),o}function Al(){const e=be(this),t=e.size!==0,n=e.clear();return t&&Jt(e,"clear",void 0,void 0),n}function fi(e,t){return function(r,i){const o=this,s=o.__v_raw,a=be(s),c=t?ta:e?oa:Ur;return!e&&mt(a,"iterate",Un),s.forEach((m,p)=>r.call(i,c(m),c(p),o))}}function hi(e,t,n){return function(...r){const i=this.__v_raw,o=be(i),s=tr(o),a=e==="entries"||e===Symbol.iterator&&s,c=e==="keys"&&s,m=i[e](...r),p=n?ta:t?oa:Ur;return!t&&mt(o,"iterate",c?Qo:Un),{next(){const{value:b,done:x}=m.next();return x?{value:b,done:x}:{value:a?[p(b[0]),p(b[1])]:p(b),done:x}},[Symbol.iterator](){return this}}}}function an(e){return function(...t){return e==="delete"?!1:this}}function Sp(){const e={get(o){return li(this,o)},get size(){return ui(this)},has:ci,add:Sl,set:Cl,delete:Tl,clear:Al,forEach:fi(!1,!1)},t={get(o){return li(this,o,!1,!0)},get size(){return ui(this)},has:ci,add:Sl,set:Cl,delete:Tl,clear:Al,forEach:fi(!1,!0)},n={get(o){return li(this,o,!0)},get size(){return ui(this,!0)},has(o){return ci.call(this,o,!0)},add:an("add"),set:an("set"),delete:an("delete"),clear:an("clear"),forEach:fi(!0,!1)},r={get(o){return li(this,o,!0,!0)},get size(){return ui(this,!0)},has(o){return ci.call(this,o,!0)},add:an("add"),set:an("set"),delete:an("delete"),clear:an("clear"),forEach:fi(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=hi(o,!1,!1),n[o]=hi(o,!0,!1),t[o]=hi(o,!1,!0),r[o]=hi(o,!0,!0)}),[e,n,t,r]}const[Cp,Tp,Ap,Ip]=Sp();function na(e,t){const n=t?e?Ip:Ap:e?Tp:Cp;return(r,i,o)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(Ee(n,i)&&i in r?n:r,i,o)}const Rp={get:na(!1,!1)},Op={get:na(!1,!0)},kp={get:na(!0,!1)},Qu=new WeakMap,Zu=new WeakMap,Xu=new WeakMap,Np=new WeakMap;function Pp(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Fp(e){return e.__v_skip||!Object.isExtensible(e)?0:Pp(rp(e))}function vr(e){return rr(e)?e:ia(e,!1,Gu,Rp,Qu)}function Bp(e){return ia(e,!1,Mp,Op,Zu)}function ra(e){return ia(e,!0,xp,kp,Xu)}function ia(e,t,n,r,i){if(!Ke(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=i.get(e);if(o)return o;const s=Fp(e);if(s===0)return e;const a=new Proxy(e,s===2?r:n);return i.set(e,a),a}function pn(e){return rr(e)?pn(e.__v_raw):!!(e&&e.__v_isReactive)}function rr(e){return!!(e&&e.__v_isReadonly)}function Ti(e){return!!(e&&e.__v_isShallow)}function ef(e){return pn(e)||rr(e)}function be(e){const t=e&&e.__v_raw;return t?be(t):e}function ir(e){return Si(e,"__v_skip",!0),e}const Ur=e=>Ke(e)?vr(e):e,oa=e=>Ke(e)?ra(e):e;function tf(e){dn&&It&&(e=be(e),Ku(e.dep||(e.dep=Zs())))}function nf(e,t){e=be(e);const n=e.dep;n&&Zo(n)}function Ye(e){return!!(e&&e.__v_isRef===!0)}function dt(e){return of(e,!1)}function rf(e){return of(e,!0)}function of(e,t){return Ye(e)?e:new Lp(e,t)}class Lp{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:be(t),this._value=n?t:Ur(t)}get value(){return tf(this),this._value}set value(t){const n=this.__v_isShallow||Ti(t)||rr(t);t=n?t:be(t),Dr(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Ur(t),nf(this))}}function mn(e){return Ye(e)?e.value:e}const Dp={get:(e,t,n)=>mn(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return Ye(i)&&!Ye(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function sf(e){return pn(e)?e:new Proxy(e,Dp)}function Up(e){const t=me(e)?new Array(e.length):{};for(const n in e)t[n]=Wp(e,n);return t}class $p{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return fp(be(this._object),this._key)}}function Wp(e,t,n){const r=e[t];return Ye(r)?r:new $p(e,t,n)}var af;class jp{constructor(t,n,r,i){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[af]=!1,this._dirty=!0,this.effect=new Xs(t,()=>{this._dirty||(this._dirty=!0,nf(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=r}get value(){const t=be(this);return tf(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}af="__v_isReadonly";function Hp(e,t,n=!1){let r,i;const o=_e(e);return o?(r=e,i=Ot):(r=e.get,i=e.set),new jp(r,i,o||!i,n)}function gn(e,t,n,r){let i;try{i=r?e(...r):e()}catch(o){Vi(o,t,n)}return i}function Et(e,t,n,r){if(_e(e)){const o=gn(e,t,n,r);return o&&Uu(o)&&o.catch(s=>{Vi(s,t,n)}),o}const i=[];for(let o=0;o<e.length;o++)i.push(Et(e[o],t,n,r));return i}function Vi(e,t,n,r=!0){const i=t?t.vnode:null;if(t){let o=t.parent;const s=t.proxy,a=n;for(;o;){const m=o.ec;if(m){for(let p=0;p<m.length;p++)if(m[p](e,s,a)===!1)return}o=o.parent}const c=t.appContext.config.errorHandler;if(c){gn(c,null,10,[e,s,a]);return}}qp(e,n,i,r)}function qp(e,t,n,r=!0){console.error(e)}let $r=!1,Xo=!1;const rt=[];let Ut=0;const nr=[];let Vt=null,Bn=0;const lf=Promise.resolve();let sa=null;function Zr(e){const t=sa||lf;return e?t.then(this?e.bind(this):e):t}function zp(e){let t=Ut+1,n=rt.length;for(;t<n;){const r=t+n>>>1;Wr(rt[r])<e?t=r+1:n=r}return t}function aa(e){(!rt.length||!rt.includes(e,$r&&e.allowRecurse?Ut+1:Ut))&&(e.id==null?rt.push(e):rt.splice(zp(e.id),0,e),cf())}function cf(){!$r&&!Xo&&(Xo=!0,sa=lf.then(ff))}function Vp(e){const t=rt.indexOf(e);t>Ut&&rt.splice(t,1)}function Kp(e){me(e)?nr.push(...e):(!Vt||!Vt.includes(e,e.allowRecurse?Bn+1:Bn))&&nr.push(e),cf()}function Il(e,t=$r?Ut+1:0){for(;t<rt.length;t++){const n=rt[t];n&&n.pre&&(rt.splice(t,1),t--,n())}}function uf(e){if(nr.length){const t=[...new Set(nr)];if(nr.length=0,Vt){Vt.push(...t);return}for(Vt=t,Vt.sort((n,r)=>Wr(n)-Wr(r)),Bn=0;Bn<Vt.length;Bn++)Vt[Bn]();Vt=null,Bn=0}}const Wr=e=>e.id==null?1/0:e.id,Yp=(e,t)=>{const n=Wr(e)-Wr(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function ff(e){Xo=!1,$r=!0,rt.sort(Yp);const t=Ot;try{for(Ut=0;Ut<rt.length;Ut++){const n=rt[Ut];n&&n.active!==!1&&gn(n,null,14)}}finally{Ut=0,rt.length=0,uf(),$r=!1,sa=null,(rt.length||nr.length)&&ff()}}function Jp(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Ve;let i=n;const o=t.startsWith("update:"),s=o&&t.slice(7);if(s&&s in r){const p=`${s==="modelValue"?"model":s}Modifiers`,{number:b,trim:x}=r[p]||Ve;x&&(i=n.map(R=>Xe(R)?R.trim():R)),b&&(i=n.map(sp))}let a,c=r[a=Ro(t)]||r[a=Ro(Wt(t))];!c&&o&&(c=r[a=Ro(mr(t))]),c&&Et(c,e,6,i);const m=r[a+"Once"];if(m){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Et(m,e,6,i)}}function hf(e,t,n=!1){const r=t.emitsCache,i=r.get(e);if(i!==void 0)return i;const o=e.emits;let s={},a=!1;if(!_e(e)){const c=m=>{const p=hf(m,t,!0);p&&(a=!0,st(s,p))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!o&&!a?(Ke(e)&&r.set(e,null),null):(me(o)?o.forEach(c=>s[c]=null):st(s,o),Ke(e)&&r.set(e,s),s)}function Ki(e,t){return!e||!Wi(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ee(e,t[0].toLowerCase()+t.slice(1))||Ee(e,mr(t))||Ee(e,t))}let it=null,df=null;function Ai(e){const t=it;return it=e,df=e&&e.type.__scopeId||null,t}function Gp(e,t=it,n){if(!t||e._n)return e;const r=(...i)=>{r._d&&$l(-1);const o=Ai(t);let s;try{s=e(...i)}finally{Ai(o),r._d&&$l(1)}return s};return r._n=!0,r._c=!0,r._d=!0,r}function ko(e){const{type:t,vnode:n,proxy:r,withProxy:i,props:o,propsOptions:[s],slots:a,attrs:c,emit:m,render:p,renderCache:b,data:x,setupState:R,ctx:C,inheritAttrs:P}=e;let T,A;const L=Ai(e);try{if(n.shapeFlag&4){const $=i||r;T=Lt(p.call($,$,b,o,R,x,C)),A=c}else{const $=t;T=Lt($.length>1?$(o,{attrs:c,slots:a,emit:m}):$(o,null)),A=t.props?c:Qp(c)}}catch($){Rr.length=0,Vi($,e,1),T=ot(St)}let B=T;if(A&&P!==!1){const $=Object.keys(A),{shapeFlag:H}=B;$.length&&H&7&&(s&&$.some(Vs)&&(A=Zp(A,s)),B=yn(B,A))}return n.dirs&&(B=yn(B),B.dirs=B.dirs?B.dirs.concat(n.dirs):n.dirs),n.transition&&(B.transition=n.transition),T=B,Ai(L),T}const Qp=e=>{let t;for(const n in e)(n==="class"||n==="style"||Wi(n))&&((t||(t={}))[n]=e[n]);return t},Zp=(e,t)=>{const n={};for(const r in e)(!Vs(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Xp(e,t,n){const{props:r,children:i,component:o}=e,{props:s,children:a,patchFlag:c}=t,m=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?Rl(r,s,m):!!s;if(c&8){const p=t.dynamicProps;for(let b=0;b<p.length;b++){const x=p[b];if(s[x]!==r[x]&&!Ki(m,x))return!0}}}else return(i||a)&&(!a||!a.$stable)?!0:r===s?!1:r?s?Rl(r,s,m):!0:!!s;return!1}function Rl(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){const o=r[i];if(t[o]!==e[o]&&!Ki(n,o))return!0}return!1}function em({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const tm=e=>e.__isSuspense;function nm(e,t){t&&t.pendingBranch?me(e)?t.effects.push(...e):t.effects.push(e):Kp(e)}function yi(e,t){if(Ge){let n=Ge.provides;const r=Ge.parent&&Ge.parent.provides;r===n&&(n=Ge.provides=Object.create(r)),n[e]=t}}function xt(e,t,n=!1){const r=Ge||it;if(r){const i=r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(i&&e in i)return i[e];if(arguments.length>1)return n&&_e(t)?t.call(r.proxy):t}}function rm(e,t){return la(e,null,t)}const di={};function Mt(e,t,n){return la(e,t,n)}function la(e,t,{immediate:n,deep:r,flush:i,onTrack:o,onTrigger:s}=Ve){const a=Qs()===(Ge==null?void 0:Ge.scope)?Ge:null;let c,m=!1,p=!1;if(Ye(e)?(c=()=>e.value,m=Ti(e)):pn(e)?(c=()=>e,r=!0):me(e)?(p=!0,m=e.some(B=>pn(B)||Ti(B)),c=()=>e.map(B=>{if(Ye(B))return B.value;if(pn(B))return Jn(B);if(_e(B))return gn(B,a,2)})):_e(e)?t?c=()=>gn(e,a,2):c=()=>{if(!(a&&a.isUnmounted))return b&&b(),Et(e,a,3,[x])}:c=Ot,t&&r){const B=c;c=()=>Jn(B())}let b,x=B=>{b=A.onStop=()=>{gn(B,a,4)}},R;if(Hr)if(x=Ot,t?n&&Et(t,a,3,[c(),p?[]:void 0,x]):c(),i==="sync"){const B=tg();R=B.__watcherHandles||(B.__watcherHandles=[])}else return Ot;let C=p?new Array(e.length).fill(di):di;const P=()=>{if(A.active)if(t){const B=A.run();(r||m||(p?B.some(($,H)=>Dr($,C[H])):Dr(B,C)))&&(b&&b(),Et(t,a,3,[B,C===di?void 0:p&&C[0]===di?[]:C,x]),C=B)}else A.run()};P.allowRecurse=!!t;let T;i==="sync"?T=P:i==="post"?T=()=>ht(P,a&&a.suspense):(P.pre=!0,a&&(P.id=a.uid),T=()=>aa(P));const A=new Xs(c,T);t?n?P():C=A.run():i==="post"?ht(A.run.bind(A),a&&a.suspense):A.run();const L=()=>{A.stop(),a&&a.scope&&Ks(a.scope.effects,A)};return R&&R.push(L),L}function im(e,t,n){const r=this.proxy,i=Xe(e)?e.includes(".")?pf(r,e):()=>r[e]:e.bind(r,r);let o;_e(t)?o=t:(o=t.handler,n=t);const s=Ge;or(this);const a=la(i,o.bind(r),n);return s?or(s):$n(),a}function pf(e,t){const n=t.split(".");return()=>{let r=e;for(let i=0;i<n.length&&r;i++)r=r[n[i]];return r}}function Jn(e,t){if(!Ke(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),Ye(e))Jn(e.value,t);else if(me(e))for(let n=0;n<e.length;n++)Jn(e[n],t);else if(Du(e)||tr(e))e.forEach(n=>{Jn(n,t)});else if(Wu(e))for(const n in e)Jn(e[n],t);return e}function om(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Gi(()=>{e.isMounted=!0}),vf(()=>{e.isUnmounting=!0}),e}const wt=[Function,Array],sm={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:wt,onEnter:wt,onAfterEnter:wt,onEnterCancelled:wt,onBeforeLeave:wt,onLeave:wt,onAfterLeave:wt,onLeaveCancelled:wt,onBeforeAppear:wt,onAppear:wt,onAfterAppear:wt,onAppearCancelled:wt},setup(e,{slots:t}){const n=yr(),r=om();let i;return()=>{const o=t.default&&gf(t.default(),!0);if(!o||!o.length)return;let s=o[0];if(o.length>1){for(const P of o)if(P.type!==St){s=P;break}}const a=be(e),{mode:c}=a;if(r.isLeaving)return No(s);const m=Ol(s);if(!m)return No(s);const p=es(m,a,r,n);ts(m,p);const b=n.subTree,x=b&&Ol(b);let R=!1;const{getTransitionKey:C}=m.type;if(C){const P=C();i===void 0?i=P:P!==i&&(i=P,R=!0)}if(x&&x.type!==St&&(!Ln(m,x)||R)){const P=es(x,a,r,n);if(ts(x,P),c==="out-in")return r.isLeaving=!0,P.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},No(s);c==="in-out"&&m.type!==St&&(P.delayLeave=(T,A,L)=>{const B=mf(r,x);B[String(x.key)]=x,T._leaveCb=()=>{A(),T._leaveCb=void 0,delete p.delayedLeave},p.delayedLeave=L})}return s}}},am=sm;function mf(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function es(e,t,n,r){const{appear:i,mode:o,persisted:s=!1,onBeforeEnter:a,onEnter:c,onAfterEnter:m,onEnterCancelled:p,onBeforeLeave:b,onLeave:x,onAfterLeave:R,onLeaveCancelled:C,onBeforeAppear:P,onAppear:T,onAfterAppear:A,onAppearCancelled:L}=t,B=String(e.key),$=mf(n,e),H=(V,ie)=>{V&&Et(V,r,9,ie)},G=(V,ie)=>{const v=ie[1];H(V,ie),me(V)?V.every(l=>l.length<=1)&&v():V.length<=1&&v()},Q={mode:o,persisted:s,beforeEnter(V){let ie=a;if(!n.isMounted)if(i)ie=P||a;else return;V._leaveCb&&V._leaveCb(!0);const v=$[B];v&&Ln(e,v)&&v.el._leaveCb&&v.el._leaveCb(),H(ie,[V])},enter(V){let ie=c,v=m,l=p;if(!n.isMounted)if(i)ie=T||c,v=A||m,l=L||p;else return;let d=!1;const _=V._enterCb=w=>{d||(d=!0,w?H(l,[V]):H(v,[V]),Q.delayedLeave&&Q.delayedLeave(),V._enterCb=void 0)};ie?G(ie,[V,_]):_()},leave(V,ie){const v=String(e.key);if(V._enterCb&&V._enterCb(!0),n.isUnmounting)return ie();H(b,[V]);let l=!1;const d=V._leaveCb=_=>{l||(l=!0,ie(),_?H(C,[V]):H(R,[V]),V._leaveCb=void 0,$[v]===e&&delete $[v])};$[v]=e,x?G(x,[V,d]):d()},clone(V){return es(V,t,n,r)}};return Q}function No(e){if(Yi(e))return e=yn(e),e.children=null,e}function Ol(e){return Yi(e)?e.children?e.children[0]:void 0:e}function ts(e,t){e.shapeFlag&6&&e.component?ts(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function gf(e,t=!1,n){let r=[],i=0;for(let o=0;o<e.length;o++){let s=e[o];const a=n==null?s.key:String(n)+String(s.key!=null?s.key:o);s.type===_t?(s.patchFlag&128&&i++,r=r.concat(gf(s.children,t,a))):(t||s.type!==St)&&r.push(a!=null?yn(s,{key:a}):s)}if(i>1)for(let o=0;o<r.length;o++)r[o].patchFlag=-2;return r}function ca(e){return _e(e)?{setup:e,name:e.name}:e}const Tr=e=>!!e.type.__asyncLoader,Yi=e=>e.type.__isKeepAlive;function lm(e,t){_f(e,"a",t)}function cm(e,t){_f(e,"da",t)}function _f(e,t,n=Ge){const r=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(Ji(t,r,n),n){let i=n.parent;for(;i&&i.parent;)Yi(i.parent.vnode)&&um(r,t,n,i),i=i.parent}}function um(e,t,n,r){const i=Ji(t,e,r,!0);ua(()=>{Ks(r[t],i)},n)}function Ji(e,t,n=Ge,r=!1){if(n){const i=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...s)=>{if(n.isUnmounted)return;gr(),or(n);const a=Et(t,n,e,s);return $n(),_r(),a});return r?i.unshift(o):i.push(o),o}}const Gt=e=>(t,n=Ge)=>(!Hr||e==="sp")&&Ji(e,(...r)=>t(...r),n),fm=Gt("bm"),Gi=Gt("m"),hm=Gt("bu"),dm=Gt("u"),vf=Gt("bum"),ua=Gt("um"),pm=Gt("sp"),mm=Gt("rtg"),gm=Gt("rtc");function _m(e,t=Ge){Ji("ec",e,t)}function kn(e,t,n,r){const i=e.dirs,o=t&&t.dirs;for(let s=0;s<i.length;s++){const a=i[s];o&&(a.oldValue=o[s].value);let c=a.dir[r];c&&(gr(),Et(c,n,8,[e.el,a,e,t]),_r())}}const yf="components";function vm(e,t){return wm(yf,e,!0,t)||e}const ym=Symbol();function wm(e,t,n=!0,r=!1){const i=it||Ge;if(i){const o=i.type;if(e===yf){const a=Zm(o,!1);if(a&&(a===t||a===Wt(t)||a===qi(Wt(t))))return o}const s=kl(i[e]||o[e],t)||kl(i.appContext[e],t);return!s&&r?o:s}}function kl(e,t){return e&&(e[t]||e[Wt(t)]||e[qi(Wt(t))])}function H2(e,t,n,r){let i;const o=n&&n[r];if(me(e)||Xe(e)){i=new Array(e.length);for(let s=0,a=e.length;s<a;s++)i[s]=t(e[s],s,void 0,o&&o[s])}else if(typeof e=="number"){i=new Array(e);for(let s=0;s<e;s++)i[s]=t(s+1,s,void 0,o&&o[s])}else if(Ke(e))if(e[Symbol.iterator])i=Array.from(e,(s,a)=>t(s,a,void 0,o&&o[a]));else{const s=Object.keys(e);i=new Array(s.length);for(let a=0,c=s.length;a<c;a++){const m=s[a];i[a]=t(e[m],m,a,o&&o[a])}}else i=[];return n&&(n[r]=i),i}function q2(e,t,n={},r,i){if(it.isCE||it.parent&&Tr(it.parent)&&it.parent.isCE)return t!=="default"&&(n.name=t),ot("slot",n,r&&r());let o=e[t];o&&o._c&&(o._d=!1),pa();const s=o&&wf(o(n)),a=ma(_t,{key:n.key||s&&s.key||`_${t}`},s||(r?r():[]),s&&e._===1?64:-2);return!i&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),o&&o._c&&(o._d=!0),a}function wf(e){return e.some(t=>Ri(t)?!(t.type===St||t.type===_t&&!wf(t.children)):!0)?e:null}const ns=e=>e?kf(e)?_a(e)||e.proxy:ns(e.parent):null,Ar=st(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>ns(e.parent),$root:e=>ns(e.root),$emit:e=>e.emit,$options:e=>fa(e),$forceUpdate:e=>e.f||(e.f=()=>aa(e.update)),$nextTick:e=>e.n||(e.n=Zr.bind(e.proxy)),$watch:e=>im.bind(e)}),Po=(e,t)=>e!==Ve&&!e.__isScriptSetup&&Ee(e,t),bm={get({_:e},t){const{ctx:n,setupState:r,data:i,props:o,accessCache:s,type:a,appContext:c}=e;let m;if(t[0]!=="$"){const R=s[t];if(R!==void 0)switch(R){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return o[t]}else{if(Po(r,t))return s[t]=1,r[t];if(i!==Ve&&Ee(i,t))return s[t]=2,i[t];if((m=e.propsOptions[0])&&Ee(m,t))return s[t]=3,o[t];if(n!==Ve&&Ee(n,t))return s[t]=4,n[t];rs&&(s[t]=0)}}const p=Ar[t];let b,x;if(p)return t==="$attrs"&&mt(e,"get",t),p(e);if((b=a.__cssModules)&&(b=b[t]))return b;if(n!==Ve&&Ee(n,t))return s[t]=4,n[t];if(x=c.config.globalProperties,Ee(x,t))return x[t]},set({_:e},t,n){const{data:r,setupState:i,ctx:o}=e;return Po(i,t)?(i[t]=n,!0):r!==Ve&&Ee(r,t)?(r[t]=n,!0):Ee(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:o}},s){let a;return!!n[s]||e!==Ve&&Ee(e,s)||Po(t,s)||(a=o[0])&&Ee(a,s)||Ee(r,s)||Ee(Ar,s)||Ee(i.config.globalProperties,s)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Ee(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};let rs=!0;function Em(e){const t=fa(e),n=e.proxy,r=e.ctx;rs=!1,t.beforeCreate&&Nl(t.beforeCreate,e,"bc");const{data:i,computed:o,methods:s,watch:a,provide:c,inject:m,created:p,beforeMount:b,mounted:x,beforeUpdate:R,updated:C,activated:P,deactivated:T,beforeDestroy:A,beforeUnmount:L,destroyed:B,unmounted:$,render:H,renderTracked:G,renderTriggered:Q,errorCaptured:V,serverPrefetch:ie,expose:v,inheritAttrs:l,components:d,directives:_,filters:w}=t;if(m&&xm(m,r,null,e.appContext.config.unwrapInjectedRef),s)for(const W in s){const I=s[W];_e(I)&&(r[W]=I.bind(n))}if(i){const W=i.call(n,n);Ke(W)&&(e.data=vr(W))}if(rs=!0,o)for(const W in o){const I=o[W],f=_e(I)?I.bind(n,n):_e(I.get)?I.get.bind(n,n):Ot,O=!_e(I)&&_e(I.set)?I.set.bind(n):Ot,ne=Qe({get:f,set:O});Object.defineProperty(r,W,{enumerable:!0,configurable:!0,get:()=>ne.value,set:Z=>ne.value=Z})}if(a)for(const W in a)bf(a[W],r,n,W);if(c){const W=_e(c)?c.call(n):c;Reflect.ownKeys(W).forEach(I=>{yi(I,W[I])})}p&&Nl(p,e,"c");function k(W,I){me(I)?I.forEach(f=>W(f.bind(n))):I&&W(I.bind(n))}if(k(fm,b),k(Gi,x),k(hm,R),k(dm,C),k(lm,P),k(cm,T),k(_m,V),k(gm,G),k(mm,Q),k(vf,L),k(ua,$),k(pm,ie),me(v))if(v.length){const W=e.exposed||(e.exposed={});v.forEach(I=>{Object.defineProperty(W,I,{get:()=>n[I],set:f=>n[I]=f})})}else e.exposed||(e.exposed={});H&&e.render===Ot&&(e.render=H),l!=null&&(e.inheritAttrs=l),d&&(e.components=d),_&&(e.directives=_)}function xm(e,t,n=Ot,r=!1){me(e)&&(e=is(e));for(const i in e){const o=e[i];let s;Ke(o)?"default"in o?s=xt(o.from||i,o.default,!0):s=xt(o.from||i):s=xt(o),Ye(s)&&r?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>s.value,set:a=>s.value=a}):t[i]=s}}function Nl(e,t,n){Et(me(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function bf(e,t,n,r){const i=r.includes(".")?pf(n,r):()=>n[r];if(Xe(e)){const o=t[e];_e(o)&&Mt(i,o)}else if(_e(e))Mt(i,e.bind(n));else if(Ke(e))if(me(e))e.forEach(o=>bf(o,t,n,r));else{const o=_e(e.handler)?e.handler.bind(n):t[e.handler];_e(o)&&Mt(i,o,e)}}function fa(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:o,config:{optionMergeStrategies:s}}=e.appContext,a=o.get(t);let c;return a?c=a:!i.length&&!n&&!r?c=t:(c={},i.length&&i.forEach(m=>Ii(c,m,s,!0)),Ii(c,t,s)),Ke(t)&&o.set(t,c),c}function Ii(e,t,n,r=!1){const{mixins:i,extends:o}=t;o&&Ii(e,o,n,!0),i&&i.forEach(s=>Ii(e,s,n,!0));for(const s in t)if(!(r&&s==="expose")){const a=Mm[s]||n&&n[s];e[s]=a?a(e[s],t[s]):t[s]}return e}const Mm={data:Pl,props:Fn,emits:Fn,methods:Fn,computed:Fn,beforeCreate:at,created:at,beforeMount:at,mounted:at,beforeUpdate:at,updated:at,beforeDestroy:at,beforeUnmount:at,destroyed:at,unmounted:at,activated:at,deactivated:at,errorCaptured:at,serverPrefetch:at,components:Fn,directives:Fn,watch:Cm,provide:Pl,inject:Sm};function Pl(e,t){return t?e?function(){return st(_e(e)?e.call(this,this):e,_e(t)?t.call(this,this):t)}:t:e}function Sm(e,t){return Fn(is(e),is(t))}function is(e){if(me(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function at(e,t){return e?[...new Set([].concat(e,t))]:t}function Fn(e,t){return e?st(st(Object.create(null),e),t):t}function Cm(e,t){if(!e)return t;if(!t)return e;const n=st(Object.create(null),e);for(const r in t)n[r]=at(e[r],t[r]);return n}function Tm(e,t,n,r=!1){const i={},o={};Si(o,Qi,1),e.propsDefaults=Object.create(null),Ef(e,t,i,o);for(const s in e.propsOptions[0])s in i||(i[s]=void 0);n?e.props=r?i:Bp(i):e.type.props?e.props=i:e.props=o,e.attrs=o}function Am(e,t,n,r){const{props:i,attrs:o,vnode:{patchFlag:s}}=e,a=be(i),[c]=e.propsOptions;let m=!1;if((r||s>0)&&!(s&16)){if(s&8){const p=e.vnode.dynamicProps;for(let b=0;b<p.length;b++){let x=p[b];if(Ki(e.emitsOptions,x))continue;const R=t[x];if(c)if(Ee(o,x))R!==o[x]&&(o[x]=R,m=!0);else{const C=Wt(x);i[C]=os(c,a,C,R,e,!1)}else R!==o[x]&&(o[x]=R,m=!0)}}}else{Ef(e,t,i,o)&&(m=!0);let p;for(const b in a)(!t||!Ee(t,b)&&((p=mr(b))===b||!Ee(t,p)))&&(c?n&&(n[b]!==void 0||n[p]!==void 0)&&(i[b]=os(c,a,b,void 0,e,!0)):delete i[b]);if(o!==a)for(const b in o)(!t||!Ee(t,b))&&(delete o[b],m=!0)}m&&Jt(e,"set","$attrs")}function Ef(e,t,n,r){const[i,o]=e.propsOptions;let s=!1,a;if(t)for(let c in t){if(vi(c))continue;const m=t[c];let p;i&&Ee(i,p=Wt(c))?!o||!o.includes(p)?n[p]=m:(a||(a={}))[p]=m:Ki(e.emitsOptions,c)||(!(c in r)||m!==r[c])&&(r[c]=m,s=!0)}if(o){const c=be(n),m=a||Ve;for(let p=0;p<o.length;p++){const b=o[p];n[b]=os(i,c,b,m[b],e,!Ee(m,b))}}return s}function os(e,t,n,r,i,o){const s=e[n];if(s!=null){const a=Ee(s,"default");if(a&&r===void 0){const c=s.default;if(s.type!==Function&&_e(c)){const{propsDefaults:m}=i;n in m?r=m[n]:(or(i),r=m[n]=c.call(null,t),$n())}else r=c}s[0]&&(o&&!a?r=!1:s[1]&&(r===""||r===mr(n))&&(r=!0))}return r}function xf(e,t,n=!1){const r=t.propsCache,i=r.get(e);if(i)return i;const o=e.props,s={},a=[];let c=!1;if(!_e(e)){const p=b=>{c=!0;const[x,R]=xf(b,t,!0);st(s,x),R&&a.push(...R)};!n&&t.mixins.length&&t.mixins.forEach(p),e.extends&&p(e.extends),e.mixins&&e.mixins.forEach(p)}if(!o&&!c)return Ke(e)&&r.set(e,er),er;if(me(o))for(let p=0;p<o.length;p++){const b=Wt(o[p]);Fl(b)&&(s[b]=Ve)}else if(o)for(const p in o){const b=Wt(p);if(Fl(b)){const x=o[p],R=s[b]=me(x)||_e(x)?{type:x}:Object.assign({},x);if(R){const C=Dl(Boolean,R.type),P=Dl(String,R.type);R[0]=C>-1,R[1]=P<0||C<P,(C>-1||Ee(R,"default"))&&a.push(b)}}}const m=[s,a];return Ke(e)&&r.set(e,m),m}function Fl(e){return e[0]!=="$"}function Bl(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Ll(e,t){return Bl(e)===Bl(t)}function Dl(e,t){return me(t)?t.findIndex(n=>Ll(n,e)):_e(t)&&Ll(t,e)?0:-1}const Mf=e=>e[0]==="_"||e==="$stable",ha=e=>me(e)?e.map(Lt):[Lt(e)],Im=(e,t,n)=>{if(t._n)return t;const r=Gp((...i)=>ha(t(...i)),n);return r._c=!1,r},Sf=(e,t,n)=>{const r=e._ctx;for(const i in e){if(Mf(i))continue;const o=e[i];if(_e(o))t[i]=Im(i,o,r);else if(o!=null){const s=ha(o);t[i]=()=>s}}},Cf=(e,t)=>{const n=ha(t);e.slots.default=()=>n},Rm=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=be(t),Si(t,"_",n)):Sf(t,e.slots={})}else e.slots={},t&&Cf(e,t);Si(e.slots,Qi,1)},Om=(e,t,n)=>{const{vnode:r,slots:i}=e;let o=!0,s=Ve;if(r.shapeFlag&32){const a=t._;a?n&&a===1?o=!1:(st(i,t),!n&&a===1&&delete i._):(o=!t.$stable,Sf(t,i)),s=t}else t&&(Cf(e,t),s={default:1});if(o)for(const a in i)!Mf(a)&&!(a in s)&&delete i[a]};function Tf(){return{app:null,config:{isNativeTag:ep,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let km=0;function Nm(e,t){return function(r,i=null){_e(r)||(r=Object.assign({},r)),i!=null&&!Ke(i)&&(i=null);const o=Tf(),s=new Set;let a=!1;const c=o.app={_uid:km++,_component:r,_props:i,_container:null,_context:o,_instance:null,version:ng,get config(){return o.config},set config(m){},use(m,...p){return s.has(m)||(m&&_e(m.install)?(s.add(m),m.install(c,...p)):_e(m)&&(s.add(m),m(c,...p))),c},mixin(m){return o.mixins.includes(m)||o.mixins.push(m),c},component(m,p){return p?(o.components[m]=p,c):o.components[m]},directive(m,p){return p?(o.directives[m]=p,c):o.directives[m]},mount(m,p,b){if(!a){const x=ot(r,i);return x.appContext=o,p&&t?t(x,m):e(x,m,b),a=!0,c._container=m,m.__vue_app__=c,_a(x.component)||x.component.proxy}},unmount(){a&&(e(null,c._container),delete c._container.__vue_app__)},provide(m,p){return o.provides[m]=p,c}};return c}}function ss(e,t,n,r,i=!1){if(me(e)){e.forEach((x,R)=>ss(x,t&&(me(t)?t[R]:t),n,r,i));return}if(Tr(r)&&!i)return;const o=r.shapeFlag&4?_a(r.component)||r.component.proxy:r.el,s=i?null:o,{i:a,r:c}=e,m=t&&t.r,p=a.refs===Ve?a.refs={}:a.refs,b=a.setupState;if(m!=null&&m!==c&&(Xe(m)?(p[m]=null,Ee(b,m)&&(b[m]=null)):Ye(m)&&(m.value=null)),_e(c))gn(c,a,12,[s,p]);else{const x=Xe(c),R=Ye(c);if(x||R){const C=()=>{if(e.f){const P=x?Ee(b,c)?b[c]:p[c]:c.value;i?me(P)&&Ks(P,o):me(P)?P.includes(o)||P.push(o):x?(p[c]=[o],Ee(b,c)&&(b[c]=p[c])):(c.value=[o],e.k&&(p[e.k]=c.value))}else x?(p[c]=s,Ee(b,c)&&(b[c]=s)):R&&(c.value=s,e.k&&(p[e.k]=s))};s?(C.id=-1,ht(C,n)):C()}}}const ht=nm;function Pm(e){return Fm(e)}function Fm(e,t){const n=ap();n.__VUE__=!0;const{insert:r,remove:i,patchProp:o,createElement:s,createText:a,createComment:c,setText:m,setElementText:p,parentNode:b,nextSibling:x,setScopeId:R=Ot,insertStaticContent:C}=e,P=(S,U,q,J=null,y=null,u=null,h=!1,M=null,N=!!U.dynamicChildren)=>{if(S===U)return;S&&!Ln(S,U)&&(J=K(S),Z(S,y,u,!0),S=null),U.patchFlag===-2&&(N=!1,U.dynamicChildren=null);const{type:D,ref:F,shapeFlag:j}=U;switch(D){case Xr:T(S,U,q,J);break;case St:A(S,U,q,J);break;case wi:S==null&&L(U,q,J,h);break;case _t:d(S,U,q,J,y,u,h,M,N);break;default:j&1?H(S,U,q,J,y,u,h,M,N):j&6?_(S,U,q,J,y,u,h,M,N):(j&64||j&128)&&D.process(S,U,q,J,y,u,h,M,N,X)}F!=null&&y&&ss(F,S&&S.ref,u,U||S,!U)},T=(S,U,q,J)=>{if(S==null)r(U.el=a(U.children),q,J);else{const y=U.el=S.el;U.children!==S.children&&m(y,U.children)}},A=(S,U,q,J)=>{S==null?r(U.el=c(U.children||""),q,J):U.el=S.el},L=(S,U,q,J)=>{[S.el,S.anchor]=C(S.children,U,q,J,S.el,S.anchor)},B=({el:S,anchor:U},q,J)=>{let y;for(;S&&S!==U;)y=x(S),r(S,q,J),S=y;r(U,q,J)},$=({el:S,anchor:U})=>{let q;for(;S&&S!==U;)q=x(S),i(S),S=q;i(U)},H=(S,U,q,J,y,u,h,M,N)=>{h=h||U.type==="svg",S==null?G(U,q,J,y,u,h,M,N):ie(S,U,y,u,h,M,N)},G=(S,U,q,J,y,u,h,M)=>{let N,D;const{type:F,props:j,shapeFlag:ee,transition:re,dirs:oe}=S;if(N=S.el=s(S.type,u,j&&j.is,j),ee&8?p(N,S.children):ee&16&&V(S.children,N,null,J,y,u&&F!=="foreignObject",h,M),oe&&kn(S,null,J,"created"),Q(N,S,S.scopeId,h,J),j){for(const de in j)de!=="value"&&!vi(de)&&o(N,de,null,j[de],u,S.children,J,y,z);"value"in j&&o(N,"value",null,j.value),(D=j.onVnodeBeforeMount)&&Bt(D,J,S)}oe&&kn(S,null,J,"beforeMount");const ae=(!y||y&&!y.pendingBranch)&&re&&!re.persisted;ae&&re.beforeEnter(N),r(N,U,q),((D=j&&j.onVnodeMounted)||ae||oe)&&ht(()=>{D&&Bt(D,J,S),ae&&re.enter(N),oe&&kn(S,null,J,"mounted")},y)},Q=(S,U,q,J,y)=>{if(q&&R(S,q),J)for(let u=0;u<J.length;u++)R(S,J[u]);if(y){let u=y.subTree;if(U===u){const h=y.vnode;Q(S,h,h.scopeId,h.slotScopeIds,y.parent)}}},V=(S,U,q,J,y,u,h,M,N=0)=>{for(let D=N;D<S.length;D++){const F=S[D]=M?cn(S[D]):Lt(S[D]);P(null,F,U,q,J,y,u,h,M)}},ie=(S,U,q,J,y,u,h)=>{const M=U.el=S.el;let{patchFlag:N,dynamicChildren:D,dirs:F}=U;N|=S.patchFlag&16;const j=S.props||Ve,ee=U.props||Ve;let re;q&&Nn(q,!1),(re=ee.onVnodeBeforeUpdate)&&Bt(re,q,U,S),F&&kn(U,S,q,"beforeUpdate"),q&&Nn(q,!0);const oe=y&&U.type!=="foreignObject";if(D?v(S.dynamicChildren,D,M,q,J,oe,u):h||I(S,U,M,null,q,J,oe,u,!1),N>0){if(N&16)l(M,U,j,ee,q,J,y);else if(N&2&&j.class!==ee.class&&o(M,"class",null,ee.class,y),N&4&&o(M,"style",j.style,ee.style,y),N&8){const ae=U.dynamicProps;for(let de=0;de<ae.length;de++){const he=ae[de],ge=j[he],ut=ee[he];(ut!==ge||he==="value")&&o(M,he,ge,ut,y,S.children,q,J,z)}}N&1&&S.children!==U.children&&p(M,U.children)}else!h&&D==null&&l(M,U,j,ee,q,J,y);((re=ee.onVnodeUpdated)||F)&&ht(()=>{re&&Bt(re,q,U,S),F&&kn(U,S,q,"updated")},J)},v=(S,U,q,J,y,u,h)=>{for(let M=0;M<U.length;M++){const N=S[M],D=U[M],F=N.el&&(N.type===_t||!Ln(N,D)||N.shapeFlag&70)?b(N.el):q;P(N,D,F,null,J,y,u,h,!0)}},l=(S,U,q,J,y,u,h)=>{if(q!==J){if(q!==Ve)for(const M in q)!vi(M)&&!(M in J)&&o(S,M,q[M],null,h,U.children,y,u,z);for(const M in J){if(vi(M))continue;const N=J[M],D=q[M];N!==D&&M!=="value"&&o(S,M,D,N,h,U.children,y,u,z)}"value"in J&&o(S,"value",q.value,J.value)}},d=(S,U,q,J,y,u,h,M,N)=>{const D=U.el=S?S.el:a(""),F=U.anchor=S?S.anchor:a("");let{patchFlag:j,dynamicChildren:ee,slotScopeIds:re}=U;re&&(M=M?M.concat(re):re),S==null?(r(D,q,J),r(F,q,J),V(U.children,q,F,y,u,h,M,N)):j>0&&j&64&&ee&&S.dynamicChildren?(v(S.dynamicChildren,ee,q,y,u,h,M),(U.key!=null||y&&U===y.subTree)&&da(S,U,!0)):I(S,U,q,F,y,u,h,M,N)},_=(S,U,q,J,y,u,h,M,N)=>{U.slotScopeIds=M,S==null?U.shapeFlag&512?y.ctx.activate(U,q,J,h,N):w(U,q,J,y,u,h,N):E(S,U,N)},w=(S,U,q,J,y,u,h)=>{const M=S.component=Km(S,J,y);if(Yi(S)&&(M.ctx.renderer=X),Ym(M),M.asyncDep){if(y&&y.registerDep(M,k),!S.el){const N=M.subTree=ot(St);A(null,N,U,q)}return}k(M,S,U,q,y,u,h)},E=(S,U,q)=>{const J=U.component=S.component;if(Xp(S,U,q))if(J.asyncDep&&!J.asyncResolved){W(J,U,q);return}else J.next=U,Vp(J.update),J.update();else U.el=S.el,J.vnode=U},k=(S,U,q,J,y,u,h)=>{const M=()=>{if(S.isMounted){let{next:F,bu:j,u:ee,parent:re,vnode:oe}=S,ae=F,de;Nn(S,!1),F?(F.el=oe.el,W(S,F,h)):F=oe,j&&Oo(j),(de=F.props&&F.props.onVnodeBeforeUpdate)&&Bt(de,re,F,oe),Nn(S,!0);const he=ko(S),ge=S.subTree;S.subTree=he,P(ge,he,b(ge.el),K(ge),S,y,u),F.el=he.el,ae===null&&em(S,he.el),ee&&ht(ee,y),(de=F.props&&F.props.onVnodeUpdated)&&ht(()=>Bt(de,re,F,oe),y)}else{let F;const{el:j,props:ee}=U,{bm:re,m:oe,parent:ae}=S,de=Tr(U);if(Nn(S,!1),re&&Oo(re),!de&&(F=ee&&ee.onVnodeBeforeMount)&&Bt(F,ae,U),Nn(S,!0),j&&te){const he=()=>{S.subTree=ko(S),te(j,S.subTree,S,y,null)};de?U.type.__asyncLoader().then(()=>!S.isUnmounted&&he()):he()}else{const he=S.subTree=ko(S);P(null,he,q,J,S,y,u),U.el=he.el}if(oe&&ht(oe,y),!de&&(F=ee&&ee.onVnodeMounted)){const he=U;ht(()=>Bt(F,ae,he),y)}(U.shapeFlag&256||ae&&Tr(ae.vnode)&&ae.vnode.shapeFlag&256)&&S.a&&ht(S.a,y),S.isMounted=!0,U=q=J=null}},N=S.effect=new Xs(M,()=>aa(D),S.scope),D=S.update=()=>N.run();D.id=S.uid,Nn(S,!0),D()},W=(S,U,q)=>{U.component=S;const J=S.vnode.props;S.vnode=U,S.next=null,Am(S,U.props,J,q),Om(S,U.children,q),gr(),Il(),_r()},I=(S,U,q,J,y,u,h,M,N=!1)=>{const D=S&&S.children,F=S?S.shapeFlag:0,j=U.children,{patchFlag:ee,shapeFlag:re}=U;if(ee>0){if(ee&128){O(D,j,q,J,y,u,h,M,N);return}else if(ee&256){f(D,j,q,J,y,u,h,M,N);return}}re&8?(F&16&&z(D,y,u),j!==D&&p(q,j)):F&16?re&16?O(D,j,q,J,y,u,h,M,N):z(D,y,u,!0):(F&8&&p(q,""),re&16&&V(j,q,J,y,u,h,M,N))},f=(S,U,q,J,y,u,h,M,N)=>{S=S||er,U=U||er;const D=S.length,F=U.length,j=Math.min(D,F);let ee;for(ee=0;ee<j;ee++){const re=U[ee]=N?cn(U[ee]):Lt(U[ee]);P(S[ee],re,q,null,y,u,h,M,N)}D>F?z(S,y,u,!0,!1,j):V(U,q,J,y,u,h,M,N,j)},O=(S,U,q,J,y,u,h,M,N)=>{let D=0;const F=U.length;let j=S.length-1,ee=F-1;for(;D<=j&&D<=ee;){const re=S[D],oe=U[D]=N?cn(U[D]):Lt(U[D]);if(Ln(re,oe))P(re,oe,q,null,y,u,h,M,N);else break;D++}for(;D<=j&&D<=ee;){const re=S[j],oe=U[ee]=N?cn(U[ee]):Lt(U[ee]);if(Ln(re,oe))P(re,oe,q,null,y,u,h,M,N);else break;j--,ee--}if(D>j){if(D<=ee){const re=ee+1,oe=re<F?U[re].el:J;for(;D<=ee;)P(null,U[D]=N?cn(U[D]):Lt(U[D]),q,oe,y,u,h,M,N),D++}}else if(D>ee)for(;D<=j;)Z(S[D],y,u,!0),D++;else{const re=D,oe=D,ae=new Map;for(D=oe;D<=ee;D++){const ve=U[D]=N?cn(U[D]):Lt(U[D]);ve.key!=null&&ae.set(ve.key,D)}let de,he=0;const ge=ee-oe+1;let ut=!1,Ce=0;const Me=new Array(ge);for(D=0;D<ge;D++)Me[D]=0;for(D=re;D<=j;D++){const ve=S[D];if(he>=ge){Z(ve,y,u,!0);continue}let ye;if(ve.key!=null)ye=ae.get(ve.key);else for(de=oe;de<=ee;de++)if(Me[de-oe]===0&&Ln(ve,U[de])){ye=de;break}ye===void 0?Z(ve,y,u,!0):(Me[ye-oe]=D+1,ye>=Ce?Ce=ye:ut=!0,P(ve,U[ye],q,null,y,u,h,M,N),he++)}const Pt=ut?Bm(Me):er;for(de=Pt.length-1,D=ge-1;D>=0;D--){const ve=oe+D,ye=U[ve],Ft=ve+1<F?U[ve+1].el:J;Me[D]===0?P(null,ye,q,Ft,y,u,h,M,N):ut&&(de<0||D!==Pt[de]?ne(ye,q,Ft,2):de--)}}},ne=(S,U,q,J,y=null)=>{const{el:u,type:h,transition:M,children:N,shapeFlag:D}=S;if(D&6){ne(S.component.subTree,U,q,J);return}if(D&128){S.suspense.move(U,q,J);return}if(D&64){h.move(S,U,q,X);return}if(h===_t){r(u,U,q);for(let j=0;j<N.length;j++)ne(N[j],U,q,J);r(S.anchor,U,q);return}if(h===wi){B(S,U,q);return}if(J!==2&&D&1&&M)if(J===0)M.beforeEnter(u),r(u,U,q),ht(()=>M.enter(u),y);else{const{leave:j,delayLeave:ee,afterLeave:re}=M,oe=()=>r(u,U,q),ae=()=>{j(u,()=>{oe(),re&&re()})};ee?ee(u,oe,ae):ae()}else r(u,U,q)},Z=(S,U,q,J=!1,y=!1)=>{const{type:u,props:h,ref:M,children:N,dynamicChildren:D,shapeFlag:F,patchFlag:j,dirs:ee}=S;if(M!=null&&ss(M,null,q,S,!0),F&256){U.ctx.deactivate(S);return}const re=F&1&&ee,oe=!Tr(S);let ae;if(oe&&(ae=h&&h.onVnodeBeforeUnmount)&&Bt(ae,U,S),F&6)g(S.component,q,J);else{if(F&128){S.suspense.unmount(q,J);return}re&&kn(S,null,U,"beforeUnmount"),F&64?S.type.remove(S,U,q,y,X,J):D&&(u!==_t||j>0&&j&64)?z(D,U,q,!1,!0):(u===_t&&j&384||!y&&F&16)&&z(N,U,q),J&&le(S)}(oe&&(ae=h&&h.onVnodeUnmounted)||re)&&ht(()=>{ae&&Bt(ae,U,S),re&&kn(S,null,U,"unmounted")},q)},le=S=>{const{type:U,el:q,anchor:J,transition:y}=S;if(U===_t){ue(q,J);return}if(U===wi){$(S);return}const u=()=>{i(q),y&&!y.persisted&&y.afterLeave&&y.afterLeave()};if(S.shapeFlag&1&&y&&!y.persisted){const{leave:h,delayLeave:M}=y,N=()=>h(q,u);M?M(S.el,u,N):N()}else u()},ue=(S,U)=>{let q;for(;S!==U;)q=x(S),i(S),S=q;i(U)},g=(S,U,q)=>{const{bum:J,scope:y,update:u,subTree:h,um:M}=S;J&&Oo(J),y.stop(),u&&(u.active=!1,Z(h,S,U,q)),M&&ht(M,U),ht(()=>{S.isUnmounted=!0},U),U&&U.pendingBranch&&!U.isUnmounted&&S.asyncDep&&!S.asyncResolved&&S.suspenseId===U.pendingId&&(U.deps--,U.deps===0&&U.resolve())},z=(S,U,q,J=!1,y=!1,u=0)=>{for(let h=u;h<S.length;h++)Z(S[h],U,q,J,y)},K=S=>S.shapeFlag&6?K(S.component.subTree):S.shapeFlag&128?S.suspense.next():x(S.anchor||S.el),Y=(S,U,q)=>{S==null?U._vnode&&Z(U._vnode,null,null,!0):P(U._vnode||null,S,U,null,null,null,q),Il(),uf(),U._vnode=S},X={p:P,um:Z,m:ne,r:le,mt:w,mc:V,pc:I,pbc:v,n:K,o:e};let se,te;return t&&([se,te]=t(X)),{render:Y,hydrate:se,createApp:Nm(Y,se)}}function Nn({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function da(e,t,n=!1){const r=e.children,i=t.children;if(me(r)&&me(i))for(let o=0;o<r.length;o++){const s=r[o];let a=i[o];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[o]=cn(i[o]),a.el=s.el),n||da(s,a)),a.type===Xr&&(a.el=s.el)}}function Bm(e){const t=e.slice(),n=[0];let r,i,o,s,a;const c=e.length;for(r=0;r<c;r++){const m=e[r];if(m!==0){if(i=n[n.length-1],e[i]<m){t[r]=i,n.push(r);continue}for(o=0,s=n.length-1;o<s;)a=o+s>>1,e[n[a]]<m?o=a+1:s=a;m<e[n[o]]&&(o>0&&(t[r]=n[o-1]),n[o]=r)}}for(o=n.length,s=n[o-1];o-- >0;)n[o]=s,s=t[s];return n}const Lm=e=>e.__isTeleport,Ir=e=>e&&(e.disabled||e.disabled===""),Ul=e=>typeof SVGElement<"u"&&e instanceof SVGElement,as=(e,t)=>{const n=e&&e.to;return Xe(n)?t?t(n):null:n},Dm={__isTeleport:!0,process(e,t,n,r,i,o,s,a,c,m){const{mc:p,pc:b,pbc:x,o:{insert:R,querySelector:C,createText:P,createComment:T}}=m,A=Ir(t.props);let{shapeFlag:L,children:B,dynamicChildren:$}=t;if(e==null){const H=t.el=P(""),G=t.anchor=P("");R(H,n,r),R(G,n,r);const Q=t.target=as(t.props,C),V=t.targetAnchor=P("");Q&&(R(V,Q),s=s||Ul(Q));const ie=(v,l)=>{L&16&&p(B,v,l,i,o,s,a,c)};A?ie(n,G):Q&&ie(Q,V)}else{t.el=e.el;const H=t.anchor=e.anchor,G=t.target=e.target,Q=t.targetAnchor=e.targetAnchor,V=Ir(e.props),ie=V?n:G,v=V?H:Q;if(s=s||Ul(G),$?(x(e.dynamicChildren,$,ie,i,o,s,a),da(e,t,!0)):c||b(e,t,ie,v,i,o,s,a,!1),A)V||pi(t,n,H,m,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const l=t.target=as(t.props,C);l&&pi(t,l,null,m,0)}else V&&pi(t,G,Q,m,1)}Af(t)},remove(e,t,n,r,{um:i,o:{remove:o}},s){const{shapeFlag:a,children:c,anchor:m,targetAnchor:p,target:b,props:x}=e;if(b&&o(p),(s||!Ir(x))&&(o(m),a&16))for(let R=0;R<c.length;R++){const C=c[R];i(C,t,n,!0,!!C.dynamicChildren)}},move:pi,hydrate:Um};function pi(e,t,n,{o:{insert:r},m:i},o=2){o===0&&r(e.targetAnchor,t,n);const{el:s,anchor:a,shapeFlag:c,children:m,props:p}=e,b=o===2;if(b&&r(s,t,n),(!b||Ir(p))&&c&16)for(let x=0;x<m.length;x++)i(m[x],t,n,2);b&&r(a,t,n)}function Um(e,t,n,r,i,o,{o:{nextSibling:s,parentNode:a,querySelector:c}},m){const p=t.target=as(t.props,c);if(p){const b=p._lpa||p.firstChild;if(t.shapeFlag&16)if(Ir(t.props))t.anchor=m(s(e),t,a(e),n,r,i,o),t.targetAnchor=b;else{t.anchor=s(e);let x=b;for(;x;)if(x=s(x),x&&x.nodeType===8&&x.data==="teleport anchor"){t.targetAnchor=x,p._lpa=t.targetAnchor&&s(t.targetAnchor);break}m(b,t,p,n,r,i,o)}Af(t)}return t.anchor&&s(t.anchor)}const z2=Dm;function Af(e){const t=e.ctx;if(t&&t.ut){let n=e.children[0].el;for(;n!==e.targetAnchor;)n.nodeType===1&&n.setAttribute("data-v-owner",t.uid),n=n.nextSibling;t.ut()}}const _t=Symbol(void 0),Xr=Symbol(void 0),St=Symbol(void 0),wi=Symbol(void 0),Rr=[];let Rt=null;function pa(e=!1){Rr.push(Rt=e?null:[])}function $m(){Rr.pop(),Rt=Rr[Rr.length-1]||null}let jr=1;function $l(e){jr+=e}function If(e){return e.dynamicChildren=jr>0?Rt||er:null,$m(),jr>0&&Rt&&Rt.push(e),e}function V2(e,t,n,r,i,o){return If(Of(e,t,n,r,i,o,!0))}function ma(e,t,n,r,i){return If(ot(e,t,n,r,i,!0))}function Ri(e){return e?e.__v_isVNode===!0:!1}function Ln(e,t){return e.type===t.type&&e.key===t.key}const Qi="__vInternal",Rf=({key:e})=>e??null,bi=({ref:e,ref_key:t,ref_for:n})=>e!=null?Xe(e)||Ye(e)||_e(e)?{i:it,r:e,k:t,f:!!n}:e:null;function Of(e,t=null,n=null,r=0,i=null,o=e===_t?0:1,s=!1,a=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Rf(t),ref:t&&bi(t),scopeId:df,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:it};return a?(ga(c,n),o&128&&e.normalize(c)):n&&(c.shapeFlag|=Xe(n)?8:16),jr>0&&!s&&Rt&&(c.patchFlag>0||o&6)&&c.patchFlag!==32&&Rt.push(c),c}const ot=Wm;function Wm(e,t=null,n=null,r=0,i=null,o=!1){if((!e||e===ym)&&(e=St),Ri(e)){const a=yn(e,t,!0);return n&&ga(a,n),jr>0&&!o&&Rt&&(a.shapeFlag&6?Rt[Rt.indexOf(e)]=a:Rt.push(a)),a.patchFlag|=-2,a}if(Xm(e)&&(e=e.__vccOpts),t){t=jm(t);let{class:a,style:c}=t;a&&!Xe(a)&&(t.class=zs(a)),Ke(c)&&(ef(c)&&!me(c)&&(c=st({},c)),t.style=qs(c))}const s=Xe(e)?1:tm(e)?128:Lm(e)?64:Ke(e)?4:_e(e)?2:0;return Of(e,t,n,r,i,s,o,!0)}function jm(e){return e?ef(e)||Qi in e?st({},e):e:null}function yn(e,t,n=!1){const{props:r,ref:i,patchFlag:o,children:s}=e,a=t?qm(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&Rf(a),ref:t&&t.ref?n&&i?me(i)?i.concat(bi(t)):[i,bi(t)]:bi(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==_t?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&yn(e.ssContent),ssFallback:e.ssFallback&&yn(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Hm(e=" ",t=0){return ot(Xr,null,e,t)}function K2(e,t){const n=ot(wi,null,e);return n.staticCount=t,n}function Y2(e="",t=!1){return t?(pa(),ma(St,null,e)):ot(St,null,e)}function Lt(e){return e==null||typeof e=="boolean"?ot(St):me(e)?ot(_t,null,e.slice()):typeof e=="object"?cn(e):ot(Xr,null,String(e))}function cn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:yn(e)}function ga(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(me(t))n=16;else if(typeof t=="object")if(r&65){const i=t.default;i&&(i._c&&(i._d=!1),ga(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!(Qi in t)?t._ctx=it:i===3&&it&&(it.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else _e(t)?(t={default:t,_ctx:it},n=32):(t=String(t),r&64?(n=16,t=[Hm(t)]):n=8);e.children=t,e.shapeFlag|=n}function qm(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const i in r)if(i==="class")t.class!==r.class&&(t.class=zs([t.class,r.class]));else if(i==="style")t.style=qs([t.style,r.style]);else if(Wi(i)){const o=t[i],s=r[i];s&&o!==s&&!(me(o)&&o.includes(s))&&(t[i]=o?[].concat(o,s):s)}else i!==""&&(t[i]=r[i])}return t}function Bt(e,t,n,r=null){Et(e,t,7,[n,r])}const zm=Tf();let Vm=0;function Km(e,t,n){const r=e.type,i=(t?t.appContext:e.appContext)||zm,o={uid:Vm++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new ju(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:xf(r,i),emitsOptions:hf(r,i),emit:null,emitted:null,propsDefaults:Ve,inheritAttrs:r.inheritAttrs,ctx:Ve,data:Ve,props:Ve,attrs:Ve,slots:Ve,refs:Ve,setupState:Ve,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=Jp.bind(null,o),e.ce&&e.ce(o),o}let Ge=null;const yr=()=>Ge||it,or=e=>{Ge=e,e.scope.on()},$n=()=>{Ge&&Ge.scope.off(),Ge=null};function kf(e){return e.vnode.shapeFlag&4}let Hr=!1;function Ym(e,t=!1){Hr=t;const{props:n,children:r}=e.vnode,i=kf(e);Tm(e,n,i,t),Rm(e,r);const o=i?Jm(e,t):void 0;return Hr=!1,o}function Jm(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=ir(new Proxy(e.ctx,bm));const{setup:r}=n;if(r){const i=e.setupContext=r.length>1?Qm(e):null;or(e),gr();const o=gn(r,e,0,[e.props,i]);if(_r(),$n(),Uu(o)){if(o.then($n,$n),t)return o.then(s=>{Wl(e,s,t)}).catch(s=>{Vi(s,e,0)});e.asyncDep=o}else Wl(e,o,t)}else Nf(e,t)}function Wl(e,t,n){_e(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ke(t)&&(e.setupState=sf(t)),Nf(e,n)}let jl;function Nf(e,t,n){const r=e.type;if(!e.render){if(!t&&jl&&!r.render){const i=r.template||fa(e).template;if(i){const{isCustomElement:o,compilerOptions:s}=e.appContext.config,{delimiters:a,compilerOptions:c}=r,m=st(st({isCustomElement:o,delimiters:a},s),c);r.render=jl(i,m)}}e.render=r.render||Ot}or(e),gr(),Em(e),_r(),$n()}function Gm(e){return new Proxy(e.attrs,{get(t,n){return mt(e,"get","$attrs"),t[n]}})}function Qm(e){const t=r=>{e.exposed=r||{}};let n;return{get attrs(){return n||(n=Gm(e))},slots:e.slots,emit:e.emit,expose:t}}function _a(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(sf(ir(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Ar)return Ar[n](e)},has(t,n){return n in t||n in Ar}}))}function Zm(e,t=!0){return _e(e)?e.displayName||e.name:e.name||t&&e.__name}function Xm(e){return _e(e)&&"__vccOpts"in e}const Qe=(e,t)=>Hp(e,t,Hr);function Zi(e,t,n){const r=arguments.length;return r===2?Ke(t)&&!me(t)?Ri(t)?ot(e,null,[t]):ot(e,t):ot(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Ri(n)&&(n=[n]),ot(e,t,n))}const eg=Symbol(""),tg=()=>xt(eg),ng="3.2.47",rg="http://www.w3.org/2000/svg",Dn=typeof document<"u"?document:null,Hl=Dn&&Dn.createElement("template"),ig={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const i=t?Dn.createElementNS(rg,e):Dn.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:e=>Dn.createTextNode(e),createComment:e=>Dn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Dn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,i,o){const s=n?n.previousSibling:t.lastChild;if(i&&(i===o||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===o||!(i=i.nextSibling)););else{Hl.innerHTML=r?`<svg>${e}</svg>`:e;const a=Hl.content;if(r){const c=a.firstChild;for(;c.firstChild;)a.appendChild(c.firstChild);a.removeChild(c)}t.insertBefore(a,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function og(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function sg(e,t,n){const r=e.style,i=Xe(n);if(n&&!i){if(t&&!Xe(t))for(const o in t)n[o]==null&&ls(r,o,"");for(const o in n)ls(r,o,n[o])}else{const o=r.display;i?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=o)}}const ql=/\s*!important$/;function ls(e,t,n){if(me(n))n.forEach(r=>ls(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=ag(e,t);ql.test(n)?e.setProperty(mr(r),n.replace(ql,""),"important"):e[r]=n}}const zl=["Webkit","Moz","ms"],Fo={};function ag(e,t){const n=Fo[t];if(n)return n;let r=Wt(t);if(r!=="filter"&&r in e)return Fo[t]=r;r=qi(r);for(let i=0;i<zl.length;i++){const o=zl[i]+r;if(o in e)return Fo[t]=o}return t}const Vl="http://www.w3.org/1999/xlink";function lg(e,t,n,r,i){if(r&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Vl,t.slice(6,t.length)):e.setAttributeNS(Vl,t,n);else{const o=X0(t);n==null||o&&!Bu(n)?e.removeAttribute(t):e.setAttribute(t,o?"":n)}}function cg(e,t,n,r,i,o,s){if(t==="innerHTML"||t==="textContent"){r&&s(r,i,o),e[t]=n??"";return}if(t==="value"&&e.tagName!=="PROGRESS"&&!e.tagName.includes("-")){e._value=n;const c=n??"";(e.value!==c||e.tagName==="OPTION")&&(e.value=c),n==null&&e.removeAttribute(t);return}let a=!1;if(n===""||n==null){const c=typeof e[t];c==="boolean"?n=Bu(n):n==null&&c==="string"?(n="",a=!0):c==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(t)}function ug(e,t,n,r){e.addEventListener(t,n,r)}function fg(e,t,n,r){e.removeEventListener(t,n,r)}function hg(e,t,n,r,i=null){const o=e._vei||(e._vei={}),s=o[t];if(r&&s)s.value=r;else{const[a,c]=dg(t);if(r){const m=o[t]=gg(r,i);ug(e,a,m,c)}else s&&(fg(e,a,s,c),o[t]=void 0)}}const Kl=/(?:Once|Passive|Capture)$/;function dg(e){let t;if(Kl.test(e)){t={};let r;for(;r=e.match(Kl);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):mr(e.slice(2)),t]}let Bo=0;const pg=Promise.resolve(),mg=()=>Bo||(pg.then(()=>Bo=0),Bo=Date.now());function gg(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Et(_g(r,n.value),t,5,[r])};return n.value=e,n.attached=mg(),n}function _g(e,t){if(me(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>i=>!i._stopped&&r&&r(i))}else return t}const Yl=/^on[a-z]/,vg=(e,t,n,r,i=!1,o,s,a,c)=>{t==="class"?og(e,r,i):t==="style"?sg(e,n,r):Wi(t)?Vs(t)||hg(e,t,n,r,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):yg(e,t,r,i))?cg(e,t,r,o,s,a,c):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),lg(e,t,r,i))};function yg(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&Yl.test(t)&&_e(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Yl.test(t)&&Xe(n)?!1:t in e}const wg={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};am.props;const bg=st({patchProp:vg},ig);let Jl;function Eg(){return Jl||(Jl=Pm(bg))}const xg=(...e)=>{const t=Eg().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=Mg(r);if(!i)return;const o=t._component;!_e(o)&&!o.render&&!o.template&&(o.template=i.innerHTML),i.innerHTML="";const s=n(i,!1,i instanceof SVGElement);return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),s},t};function Mg(e){return Xe(e)?document.querySelector(e):e}var Sg=!1,Gl;const Pf=typeof window<"u",Cg=e=>typeof e=="function",Tg=e=>typeof e=="string",Ag=()=>{};Pf&&((Gl=window==null?void 0:window.navigator)!=null&&Gl.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function va(e){return typeof e=="function"?e():mn(e)}function Ig(e,t){function n(...r){return new Promise((i,o)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(i).catch(o)})}return n}const Ff=e=>e();function Rg(e=Ff){const t=dt(!0);function n(){t.value=!1}function r(){t.value=!0}const i=(...o)=>{t.value&&e(...o)};return{isActive:ra(t),pause:n,resume:r,eventFilter:i}}function Og(e){return e}function Bf(e){return Qs()?(Hu(e),!0):!1}function kg(e){return typeof e=="function"?Qe(e):dt(e)}function Lf(e,t=!0){yr()?Gi(e):t?e():Zr(e)}var Ql=Object.getOwnPropertySymbols,Ng=Object.prototype.hasOwnProperty,Pg=Object.prototype.propertyIsEnumerable,Fg=(e,t)=>{var n={};for(var r in e)Ng.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Ql)for(var r of Ql(e))t.indexOf(r)<0&&Pg.call(e,r)&&(n[r]=e[r]);return n};function Bg(e,t,n={}){const r=n,{eventFilter:i=Ff}=r,o=Fg(r,["eventFilter"]);return Mt(e,Ig(i,t),o)}var Lg=Object.defineProperty,Dg=Object.defineProperties,Ug=Object.getOwnPropertyDescriptors,Oi=Object.getOwnPropertySymbols,Df=Object.prototype.hasOwnProperty,Uf=Object.prototype.propertyIsEnumerable,Zl=(e,t,n)=>t in e?Lg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,$g=(e,t)=>{for(var n in t||(t={}))Df.call(t,n)&&Zl(e,n,t[n]);if(Oi)for(var n of Oi(t))Uf.call(t,n)&&Zl(e,n,t[n]);return e},Wg=(e,t)=>Dg(e,Ug(t)),jg=(e,t)=>{var n={};for(var r in e)Df.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Oi)for(var r of Oi(e))t.indexOf(r)<0&&Uf.call(e,r)&&(n[r]=e[r]);return n};function Hg(e,t,n={}){const r=n,{eventFilter:i}=r,o=jg(r,["eventFilter"]),{eventFilter:s,pause:a,resume:c,isActive:m}=Rg(i);return{stop:Bg(e,t,Wg($g({},o),{eventFilter:s})),pause:a,resume:c,isActive:m}}function qg(e){var t;const n=va(e);return(t=n==null?void 0:n.$el)!=null?t:n}const sr=Pf?window:void 0;function Xl(...e){let t,n,r,i;if(Tg(e[0])||Array.isArray(e[0])?([n,r,i]=e,t=sr):[t,n,r,i]=e,!t)return Ag;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const o=[],s=()=>{o.forEach(p=>p()),o.length=0},a=(p,b,x,R)=>(p.addEventListener(b,x,R),()=>p.removeEventListener(b,x,R)),c=Mt(()=>[qg(t),va(i)],([p,b])=>{s(),p&&o.push(...n.flatMap(x=>r.map(R=>a(p,x,R,b))))},{immediate:!0,flush:"post"}),m=()=>{c(),s()};return Bf(m),m}function zg(e,t=!1){const n=dt(),r=()=>n.value=Boolean(e());return r(),Lf(r,t),n}function Vg(e,t={}){const{window:n=sr}=t,r=zg(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let i;const o=dt(!1),s=()=>{i&&("removeEventListener"in i?i.removeEventListener("change",a):i.removeListener(a))},a=()=>{r.value&&(s(),i=n.matchMedia(kg(e).value),o.value=i.matches,"addEventListener"in i?i.addEventListener("change",a):i.addListener(a))};return rm(a),Bf(()=>s()),o}const cs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},us="__vueuse_ssr_handlers__";cs[us]=cs[us]||{};const Kg=cs[us];function $f(e,t){return Kg[e]||t}function Yg(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}var Jg=Object.defineProperty,ec=Object.getOwnPropertySymbols,Gg=Object.prototype.hasOwnProperty,Qg=Object.prototype.propertyIsEnumerable,tc=(e,t,n)=>t in e?Jg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,nc=(e,t)=>{for(var n in t||(t={}))Gg.call(t,n)&&tc(e,n,t[n]);if(ec)for(var n of ec(t))Qg.call(t,n)&&tc(e,n,t[n]);return e};const Zg={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},rc="vueuse-storage";function Wf(e,t,n,r={}){var i;const{flush:o="pre",deep:s=!0,listenToStorageChanges:a=!0,writeDefaults:c=!0,mergeDefaults:m=!1,shallow:p,window:b=sr,eventFilter:x,onError:R=V=>{console.error(V)}}=r,C=(p?rf:dt)(t);if(!n)try{n=$f("getDefaultStorage",()=>{var V;return(V=sr)==null?void 0:V.localStorage})()}catch(V){R(V)}if(!n)return C;const P=va(t),T=Yg(P),A=(i=r.serializer)!=null?i:Zg[T],{pause:L,resume:B}=Hg(C,()=>$(C.value),{flush:o,deep:s,eventFilter:x});return b&&a&&(Xl(b,"storage",Q),Xl(b,rc,G)),Q(),C;function $(V){try{if(V==null)n.removeItem(e);else{const ie=A.write(V),v=n.getItem(e);v!==ie&&(n.setItem(e,ie),b&&b.dispatchEvent(new CustomEvent(rc,{detail:{key:e,oldValue:v,newValue:ie,storageArea:n}})))}}catch(ie){R(ie)}}function H(V){const ie=V?V.newValue:n.getItem(e);if(ie==null)return c&&P!==null&&n.setItem(e,A.write(P)),P;if(!V&&m){const v=A.read(ie);return Cg(m)?m(v,P):T==="object"&&!Array.isArray(v)?nc(nc({},P),v):v}else return typeof ie!="string"?ie:A.read(ie)}function G(V){Q(V.detail)}function Q(V){if(!(V&&V.storageArea!==n)){if(V&&V.key==null){C.value=P;return}if(!(V&&V.key!==e)){L();try{C.value=H(V)}catch(ie){R(ie)}finally{V?Zr(B):B()}}}}}function Xg(e){return Vg("(prefers-color-scheme: dark)",e)}var e_=Object.defineProperty,ic=Object.getOwnPropertySymbols,t_=Object.prototype.hasOwnProperty,n_=Object.prototype.propertyIsEnumerable,oc=(e,t,n)=>t in e?e_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,r_=(e,t)=>{for(var n in t||(t={}))t_.call(t,n)&&oc(e,n,t[n]);if(ic)for(var n of ic(t))n_.call(t,n)&&oc(e,n,t[n]);return e};function J2(e={}){const{selector:t="html",attribute:n="class",initialValue:r="auto",window:i=sr,storage:o,storageKey:s="vueuse-color-scheme",listenToStorageChanges:a=!0,storageRef:c,emitAuto:m}=e,p=r_({auto:"",light:"light",dark:"dark"},e.modes||{}),b=Xg({window:i}),x=Qe(()=>b.value?"dark":"light"),R=c||(s==null?dt(r):Wf(s,r,o,{window:i,listenToStorageChanges:a})),C=Qe({get(){return R.value==="auto"&&!m?x.value:R.value},set(L){R.value=L}}),P=$f("updateHTMLAttrs",(L,B,$)=>{const H=i==null?void 0:i.document.querySelector(L);if(H)if(B==="class"){const G=$.split(/\s/g);Object.values(p).flatMap(Q=>(Q||"").split(/\s/g)).filter(Boolean).forEach(Q=>{G.includes(Q)?H.classList.add(Q):H.classList.remove(Q)})}else H.setAttribute(B,$)});function T(L){var B;const $=L==="auto"?x.value:L;P(t,n,(B=p[$])!=null?B:$)}function A(L){e.onChanged?e.onChanged(L,T):T(L)}return Mt(C,A,{flush:"post",immediate:!0}),m&&Mt(x,()=>A(C.value),{flush:"post"}),Lf(()=>A(C.value)),C}function i_(e,t,n={}){const{window:r=sr}=n;return Wf(e,t,r==null?void 0:r.localStorage,n)}var sc;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(sc||(sc={}));var o_=Object.defineProperty,ac=Object.getOwnPropertySymbols,s_=Object.prototype.hasOwnProperty,a_=Object.prototype.propertyIsEnumerable,lc=(e,t,n)=>t in e?o_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,l_=(e,t)=>{for(var n in t||(t={}))s_.call(t,n)&&lc(e,n,t[n]);if(ac)for(var n of ac(t))a_.call(t,n)&&lc(e,n,t[n]);return e};const c_={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};l_({linear:Og},c_);/*!
* pinia v2.0.30
* (c) 2023 Eduardo San Martin Morote
* @license MIT
*/let jf;const Xi=e=>jf=e,Hf=Symbol();function fs(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Or;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Or||(Or={}));function u_(){const e=Gs(!0),t=e.run(()=>dt({}));let n=[],r=[];const i=ir({install(o){Xi(i),i._a=o,o.provide(Hf,i),o.config.globalProperties.$pinia=i,r.forEach(s=>n.push(s)),r=[]},use(o){return!this._a&&!Sg?r.push(o):n.push(o),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return i}const qf=()=>{};function cc(e,t,n,r=qf){e.push(t);const i=()=>{const o=e.indexOf(t);o>-1&&(e.splice(o,1),r())};return!n&&Qs()&&Hu(i),i}function zn(e,...t){e.slice().forEach(n=>{n(...t)})}function hs(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,r)=>e.set(r,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],i=e[n];fs(i)&&fs(r)&&e.hasOwnProperty(n)&&!Ye(r)&&!pn(r)?e[n]=hs(i,r):e[n]=r}return e}const f_=Symbol();function h_(e){return!fs(e)||!e.hasOwnProperty(f_)}const{assign:un}=Object;function d_(e){return!!(Ye(e)&&e.effect)}function p_(e,t,n,r){const{state:i,actions:o,getters:s}=t,a=n.state.value[e];let c;function m(){a||(n.state.value[e]=i?i():{});const p=Up(n.state.value[e]);return un(p,o,Object.keys(s||{}).reduce((b,x)=>(b[x]=ir(Qe(()=>{Xi(n);const R=n._s.get(e);return s[x].call(R,R)})),b),{}))}return c=zf(e,m,t,n,r,!0),c.$reset=function(){const b=i?i():{};this.$patch(x=>{un(x,b)})},c}function zf(e,t,n={},r,i,o){let s;const a=un({actions:{}},n),c={deep:!0};let m,p,b=ir([]),x=ir([]),R;const C=r.state.value[e];!o&&!C&&(r.state.value[e]={}),dt({});let P;function T(Q){let V;m=p=!1,typeof Q=="function"?(Q(r.state.value[e]),V={type:Or.patchFunction,storeId:e,events:R}):(hs(r.state.value[e],Q),V={type:Or.patchObject,payload:Q,storeId:e,events:R});const ie=P=Symbol();Zr().then(()=>{P===ie&&(m=!0)}),p=!0,zn(b,V,r.state.value[e])}const A=qf;function L(){s.stop(),b=[],x=[],r._s.delete(e)}function B(Q,V){return function(){Xi(r);const ie=Array.from(arguments),v=[],l=[];function d(E){v.push(E)}function _(E){l.push(E)}zn(x,{args:ie,name:Q,store:H,after:d,onError:_});let w;try{w=V.apply(this&&this.$id===e?this:H,ie)}catch(E){throw zn(l,E),E}return w instanceof Promise?w.then(E=>(zn(v,E),E)).catch(E=>(zn(l,E),Promise.reject(E))):(zn(v,w),w)}}const $={_p:r,$id:e,$onAction:cc.bind(null,x),$patch:T,$reset:A,$subscribe(Q,V={}){const ie=cc(b,Q,V.detached,()=>v()),v=s.run(()=>Mt(()=>r.state.value[e],l=>{(V.flush==="sync"?p:m)&&Q({storeId:e,type:Or.direct,events:R},l)},un({},c,V)));return ie},$dispose:L},H=vr($);r._s.set(e,H);const G=r._e.run(()=>(s=Gs(),s.run(()=>t())));for(const Q in G){const V=G[Q];if(Ye(V)&&!d_(V)||pn(V))o||(C&&h_(V)&&(Ye(V)?V.value=C[Q]:hs(V,C[Q])),r.state.value[e][Q]=V);else if(typeof V=="function"){const ie=B(Q,V);G[Q]=ie,a.actions[Q]=V}}return un(H,G),un(be(H),G),Object.defineProperty(H,"$state",{get:()=>r.state.value[e],set:Q=>{T(V=>{un(V,Q)})}}),r._p.forEach(Q=>{un(H,s.run(()=>Q({store:H,app:r._a,pinia:r,options:a})))}),C&&o&&n.hydrate&&n.hydrate(H.$state,C),m=!0,p=!0,H}function m_(e,t,n){let r,i;const o=typeof t=="function";typeof e=="string"?(r=e,i=o?n:t):(i=e,r=e.id);function s(a,c){const m=yr();return a=a||m&&xt(Hf,null),a&&Xi(a),a=jf,a._s.has(r)||(o?zf(r,t,i,a):p_(r,i,a)),a._s.get(r)}return s.$id=r,s}/*!
* shared v9.2.2
* (c) 2022 kazuya kawaguchi
* Released under the MIT License.
*/const ds=typeof window<"u",g_=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",bn=e=>g_?Symbol(e):e,__=(e,t,n)=>v_({l:e,k:t,s:n}),v_=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),tt=e=>typeof e=="number"&&isFinite(e),y_=e=>ba(e)==="[object Date]",ki=e=>ba(e)==="[object RegExp]",eo=e=>xe(e)&&Object.keys(e).length===0;function w_(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const ct=Object.assign;let uc;const ya=()=>uc||(uc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function fc(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const b_=Object.prototype.hasOwnProperty;function wa(e,t){return b_.call(e,t)}const Ze=Array.isArray,nt=e=>typeof e=="function",fe=e=>typeof e=="string",Je=e=>typeof e=="boolean",Ae=e=>e!==null&&typeof e=="object",Vf=Object.prototype.toString,ba=e=>Vf.call(e),xe=e=>ba(e)==="[object Object]",E_=e=>e==null?"":Ze(e)||xe(e)&&e.toString===Vf?JSON.stringify(e,null,2):String(e);/*!
* message-compiler v9.2.2
* (c) 2022 kazuya kawaguchi
* Released under the MIT License.
*/const Kf={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,__EXTEND_POINT__:15};function Yf(e,t,n={}){const{domain:r,messages:i,args:o}=n,s=e,a=new SyntaxError(String(s));return a.code=e,t&&(a.location=t),a.domain=r,a}/*!
* devtools-if v9.2.2
* (c) 2022 kazuya kawaguchi
* Released under the MIT License.
*/const Jf={I18nInit:"i18n:init",FunctionTranslate:"function:translate"};/*!
* core-base v9.2.2
* (c) 2022 kazuya kawaguchi
* Released under the MIT License.
*/const En=[];En[0]={w:[0],i:[3,0],["["]:[4],o:[7]};En[1]={w:[1],["."]:[2],["["]:[4],o:[7]};En[2]={w:[2],i:[3,0],[0]:[3,0]};En[3]={i:[3,0],[0]:[3,0],w:[1,1],["."]:[2,1],["["]:[4,1],o:[7,1]};En[4]={["'"]:[5,0],['"']:[6,0],["["]:[4,2],["]"]:[1,3],o:8,l:[4,0]};En[5]={["'"]:[4,0],o:8,l:[5,0]};En[6]={['"']:[4,0],o:8,l:[6,0]};const x_=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function M_(e){return x_.test(e)}function S_(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function C_(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function T_(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:M_(t)?S_(t):"*"+t}function A_(e){const t=[];let n=-1,r=0,i=0,o,s,a,c,m,p,b;const x=[];x[0]=()=>{s===void 0?s=a:s+=a},x[1]=()=>{s!==void 0&&(t.push(s),s=void 0)},x[2]=()=>{x[0](),i++},x[3]=()=>{if(i>0)i--,r=4,x[0]();else{if(i=0,s===void 0||(s=T_(s),s===!1))return!1;x[1]()}};function R(){const C=e[n+1];if(r===5&&C==="'"||r===6&&C==='"')return n++,a="\\"+C,x[0](),!0}for(;r!==null;)if(n++,o=e[n],!(o==="\\"&&R())){if(c=C_(o),b=En[r],m=b[c]||b.l||8,m===8||(r=m[0],m[1]!==void 0&&(p=x[m[1]],p&&(a=o,p()===!1))))return;if(r===7)return t}}const hc=new Map;function I_(e,t){return Ae(e)?e[t]:null}function R_(e,t){if(!Ae(e))return null;let n=hc.get(t);if(n||(n=A_(t),n&&hc.set(t,n)),!n)return null;const r=n.length;let i=e,o=0;for(;o<r;){const s=i[n[o]];if(s===void 0)return null;i=s,o++}return i}const O_=e=>e,k_=e=>"",N_="text",P_=e=>e.length===0?"":e.join(""),F_=E_;function dc(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function B_(e){const t=tt(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(tt(e.named.count)||tt(e.named.n))?tt(e.named.count)?e.named.count:tt(e.named.n)?e.named.n:t:t}function L_(e,t){t.count||(t.count=e),t.n||(t.n=e)}function D_(e={}){const t=e.locale,n=B_(e),r=Ae(e.pluralRules)&&fe(t)&&nt(e.pluralRules[t])?e.pluralRules[t]:dc,i=Ae(e.pluralRules)&&fe(t)&&nt(e.pluralRules[t])?dc:void 0,o=A=>A[r(n,A.length,i)],s=e.list||[],a=A=>s[A],c=e.named||{};tt(e.pluralIndex)&&L_(n,c);const m=A=>c[A];function p(A){const L=nt(e.messages)?e.messages(A):Ae(e.messages)?e.messages[A]:!1;return L||(e.parent?e.parent.message(A):k_)}const b=A=>e.modifiers?e.modifiers[A]:O_,x=xe(e.processor)&&nt(e.processor.normalize)?e.processor.normalize:P_,R=xe(e.processor)&&nt(e.processor.interpolate)?e.processor.interpolate:F_,C=xe(e.processor)&&fe(e.processor.type)?e.processor.type:N_,T={list:a,named:m,plural:o,linked:(A,...L)=>{const[B,$]=L;let H="text",G="";L.length===1?Ae(B)?(G=B.modifier||G,H=B.type||H):fe(B)&&(G=B||G):L.length===2&&(fe(B)&&(G=B||G),fe($)&&(H=$||H));let Q=p(A)(T);return H==="vnode"&&Ze(Q)&&G&&(Q=Q[0]),G?b(G)(Q,H):Q},message:p,type:C,interpolate:R,normalize:x};return T}let qr=null;function U_(e){qr=e}function $_(e,t,n){qr&&qr.emit(Jf.I18nInit,{timestamp:Date.now(),i18n:e,version:t,meta:n})}const W_=j_(Jf.FunctionTranslate);function j_(e){return t=>qr&&qr.emit(e,t)}function H_(e,t,n){return[...new Set([n,...Ze(t)?t:Ae(t)?Object.keys(t):fe(t)?[t]:[n]])]}function Gf(e,t,n){const r=fe(n)?n:Ea,i=e;i.__localeChainCache||(i.__localeChainCache=new Map);let o=i.__localeChainCache.get(r);if(!o){o=[];let s=[n];for(;Ze(s);)s=pc(o,s,t);const a=Ze(t)||!xe(t)?t:t.default?t.default:null;s=fe(a)?[a]:a,Ze(s)&&pc(o,s,!1),i.__localeChainCache.set(r,o)}return o}function pc(e,t,n){let r=!0;for(let i=0;i<t.length&&Je(r);i++){const o=t[i];fe(o)&&(r=q_(e,t[i],n))}return r}function q_(e,t,n){let r;const i=t.split("-");do{const o=i.join("-");r=z_(e,o,n),i.splice(-1,1)}while(i.length&&r===!0);return r}function z_(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r=t[t.length-1]!=="!";const i=t.replace(/!/g,"");e.push(i),(Ze(n)||xe(n))&&n[i]&&(r=n[i])}return r}const V_="9.2.2",to=-1,Ea="en-US",mc="",gc=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function K_(){return{upper:(e,t)=>t==="text"&&fe(e)?e.toUpperCase():t==="vnode"&&Ae(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&fe(e)?e.toLowerCase():t==="vnode"&&Ae(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&fe(e)?gc(e):t==="vnode"&&Ae(e)&&"__v_isVNode"in e?gc(e.children):e}}let Y_,Qf;function J_(e){Qf=e}let Zf;function G_(e){Zf=e}let Xf=null;const _c=e=>{Xf=e},Q_=()=>Xf;let eh=null;const vc=e=>{eh=e},Z_=()=>eh;let yc=0;function X_(e={}){const t=fe(e.version)?e.version:V_,n=fe(e.locale)?e.locale:Ea,r=Ze(e.fallbackLocale)||xe(e.fallbackLocale)||fe(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:n,i=xe(e.messages)?e.messages:{[n]:{}},o=xe(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},s=xe(e.numberFormats)?e.numberFormats:{[n]:{}},a=ct({},e.modifiers||{},K_()),c=e.pluralRules||{},m=nt(e.missing)?e.missing:null,p=Je(e.missingWarn)||ki(e.missingWarn)?e.missingWarn:!0,b=Je(e.fallbackWarn)||ki(e.fallbackWarn)?e.fallbackWarn:!0,x=!!e.fallbackFormat,R=!!e.unresolving,C=nt(e.postTranslation)?e.postTranslation:null,P=xe(e.processor)?e.processor:null,T=Je(e.warnHtmlMessage)?e.warnHtmlMessage:!0,A=!!e.escapeParameter,L=nt(e.messageCompiler)?e.messageCompiler:Y_,B=nt(e.messageResolver)?e.messageResolver:Qf||I_,$=nt(e.localeFallbacker)?e.localeFallbacker:Zf||H_,H=Ae(e.fallbackContext)?e.fallbackContext:void 0,G=nt(e.onWarn)?e.onWarn:w_,Q=e,V=Ae(Q.__datetimeFormatters)?Q.__datetimeFormatters:new Map,ie=Ae(Q.__numberFormatters)?Q.__numberFormatters:new Map,v=Ae(Q.__meta)?Q.__meta:{};yc++;const l={version:t,cid:yc,locale:n,fallbackLocale:r,messages:i,modifiers:a,pluralRules:c,missing:m,missingWarn:p,fallbackWarn:b,fallbackFormat:x,unresolving:R,postTranslation:C,processor:P,warnHtmlMessage:T,escapeParameter:A,messageCompiler:L,messageResolver:B,localeFallbacker:$,fallbackContext:H,onWarn:G,__meta:v};return l.datetimeFormats=o,l.numberFormats=s,l.__datetimeFormatters=V,l.__numberFormatters=ie,__INTLIFY_PROD_DEVTOOLS__&&$_(l,t,v),l}function xa(e,t,n,r,i){const{missing:o,onWarn:s}=e;if(o!==null){const a=o(e,n,t,i);return fe(a)?a:t}else return t}function xr(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}let th=Kf.__EXTEND_POINT__;const Lo=()=>++th,Gn={INVALID_ARGUMENT:th,INVALID_DATE_ARGUMENT:Lo(),INVALID_ISO_DATE_ARGUMENT:Lo(),__EXTEND_POINT__:Lo()};function Qn(e){return Yf(e,null,void 0)}const wc=()=>"",Dt=e=>nt(e);function bc(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:i,messageCompiler:o,fallbackLocale:s,messages:a}=e,[c,m]=ps(...t),p=Je(m.missingWarn)?m.missingWarn:e.missingWarn,b=Je(m.fallbackWarn)?m.fallbackWarn:e.fallbackWarn,x=Je(m.escapeParameter)?m.escapeParameter:e.escapeParameter,R=!!m.resolvedMessage,C=fe(m.default)||Je(m.default)?Je(m.default)?o?c:()=>c:m.default:n?o?c:()=>c:"",P=n||C!=="",T=fe(m.locale)?m.locale:e.locale;x&&ev(m);let[A,L,B]=R?[c,T,a[T]||{}]:nh(e,c,T,s,b,p),$=A,H=c;if(!R&&!(fe($)||Dt($))&&P&&($=C,H=$),!R&&(!(fe($)||Dt($))||!fe(L)))return i?to:c;let G=!1;const Q=()=>{G=!0},V=Dt($)?$:rh(e,c,L,$,H,Q);if(G)return $;const ie=rv(e,L,B,m),v=D_(ie),l=tv(e,V,v),d=r?r(l,c):l;if(__INTLIFY_PROD_DEVTOOLS__){const _={timestamp:Date.now(),key:fe(c)?c:Dt($)?$.key:"",locale:L||(Dt($)?$.locale:""),format:fe($)?$:Dt($)?$.source:"",message:d};_.meta=ct({},e.__meta,Q_()||{}),W_(_)}return d}function ev(e){Ze(e.list)?e.list=e.list.map(t=>fe(t)?fc(t):t):Ae(e.named)&&Object.keys(e.named).forEach(t=>{fe(e.named[t])&&(e.named[t]=fc(e.named[t]))})}function nh(e,t,n,r,i,o){const{messages:s,onWarn:a,messageResolver:c,localeFallbacker:m}=e,p=m(e,r,n);let b={},x,R=null;const C="translate";for(let P=0;P<p.length&&(x=p[P],b=s[x]||{},(R=c(b,t))===null&&(R=b[t]),!(fe(R)||nt(R)));P++){const T=xa(e,t,x,o,C);T!==t&&(R=T)}return[R,x,b]}function rh(e,t,n,r,i,o){const{messageCompiler:s,warnHtmlMessage:a}=e;if(Dt(r)){const m=r;return m.locale=m.locale||n,m.key=m.key||t,m}if(s==null){const m=()=>r;return m.locale=n,m.key=t,m}const c=s(r,nv(e,n,i,r,a,o));return c.locale=n,c.key=t,c.source=r,c}function tv(e,t,n){return t(n)}function ps(...e){const[t,n,r]=e,i={};if(!fe(t)&&!tt(t)&&!Dt(t))throw Qn(Gn.INVALID_ARGUMENT);const o=tt(t)?String(t):(Dt(t),t);return tt(n)?i.plural=n:fe(n)?i.default=n:xe(n)&&!eo(n)?i.named=n:Ze(n)&&(i.list=n),tt(r)?i.plural=r:fe(r)?i.default=r:xe(r)&&ct(i,r),[o,i]}function nv(e,t,n,r,i,o){return{warnHtmlMessage:i,onError:s=>{throw o&&o(s),s},onCacheKey:s=>__(t,n,s)}}function rv(e,t,n,r){const{modifiers:i,pluralRules:o,messageResolver:s,fallbackLocale:a,fallbackWarn:c,missingWarn:m,fallbackContext:p}=e,x={locale:t,modifiers:i,pluralRules:o,messages:R=>{let C=s(n,R);if(C==null&&p){const[,,P]=nh(p,R,t,a,c,m);C=s(P,R)}if(fe(C)){let P=!1;const A=rh(e,R,t,C,R,()=>{P=!0});return P?wc:A}else return Dt(C)?C:wc}};return e.processor&&(x.processor=e.processor),r.list&&(x.list=r.list),r.named&&(x.named=r.named),tt(r.plural)&&(x.pluralIndex=r.plural),x}function Ec(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:i,onWarn:o,localeFallbacker:s}=e,{__datetimeFormatters:a}=e,[c,m,p,b]=ms(...t),x=Je(p.missingWarn)?p.missingWarn:e.missingWarn;Je(p.fallbackWarn)?p.fallbackWarn:e.fallbackWarn;const R=!!p.part,C=fe(p.locale)?p.locale:e.locale,P=s(e,i,C);if(!fe(c)||c==="")return new Intl.DateTimeFormat(C,b).format(m);let T={},A,L=null;const B="datetime format";for(let G=0;G<P.length&&(A=P[G],T=n[A]||{},L=T[c],!xe(L));G++)xa(e,c,A,x,B);if(!xe(L)||!fe(A))return r?to:c;let $=`${A}__${c}`;eo(b)||($=`${$}__${JSON.stringify(b)}`);let H=a.get($);return H||(H=new Intl.DateTimeFormat(A,ct({},L,b)),a.set($,H)),R?H.formatToParts(m):H.format(m)}const ih=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function ms(...e){const[t,n,r,i]=e,o={};let s={},a;if(fe(t)){const c=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!c)throw Qn(Gn.INVALID_ISO_DATE_ARGUMENT);const m=c[3]?c[3].trim().startsWith("T")?`${c[1].trim()}${c[3].trim()}`:`${c[1].trim()}T${c[3].trim()}`:c[1].trim();a=new Date(m);try{a.toISOString()}catch{throw Qn(Gn.INVALID_ISO_DATE_ARGUMENT)}}else if(y_(t)){if(isNaN(t.getTime()))throw Qn(Gn.INVALID_DATE_ARGUMENT);a=t}else if(tt(t))a=t;else throw Qn(Gn.INVALID_ARGUMENT);return fe(n)?o.key=n:xe(n)&&Object.keys(n).forEach(c=>{ih.includes(c)?s[c]=n[c]:o[c]=n[c]}),fe(r)?o.locale=r:xe(r)&&(s=r),xe(i)&&(s=i),[o.key||"",a,o,s]}function xc(e,t,n){const r=e;for(const i in n){const o=`${t}__${i}`;r.__datetimeFormatters.has(o)&&r.__datetimeFormatters.delete(o)}}function Mc(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:i,onWarn:o,localeFallbacker:s}=e,{__numberFormatters:a}=e,[c,m,p,b]=gs(...t),x=Je(p.missingWarn)?p.missingWarn:e.missingWarn;Je(p.fallbackWarn)?p.fallbackWarn:e.fallbackWarn;const R=!!p.part,C=fe(p.locale)?p.locale:e.locale,P=s(e,i,C);if(!fe(c)||c==="")return new Intl.NumberFormat(C,b).format(m);let T={},A,L=null;const B="number format";for(let G=0;G<P.length&&(A=P[G],T=n[A]||{},L=T[c],!xe(L));G++)xa(e,c,A,x,B);if(!xe(L)||!fe(A))return r?to:c;let $=`${A}__${c}`;eo(b)||($=`${$}__${JSON.stringify(b)}`);let H=a.get($);return H||(H=new Intl.NumberFormat(A,ct({},L,b)),a.set($,H)),R?H.formatToParts(m):H.format(m)}const oh=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function gs(...e){const[t,n,r,i]=e,o={};let s={};if(!tt(t))throw Qn(Gn.INVALID_ARGUMENT);const a=t;return fe(n)?o.key=n:xe(n)&&Object.keys(n).forEach(c=>{oh.includes(c)?s[c]=n[c]:o[c]=n[c]}),fe(r)?o.locale=r:xe(r)&&(s=r),xe(i)&&(s=i),[o.key||"",a,o,s]}function Sc(e,t,n){const r=e;for(const i in n){const o=`${t}__${i}`;r.__numberFormatters.has(o)&&r.__numberFormatters.delete(o)}}typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(ya().__INTLIFY_PROD_DEVTOOLS__=!1);/*!
* vue-i18n v9.2.2
* (c) 2022 kazuya kawaguchi
* Released under the MIT License.
*/const iv="9.2.2";function ov(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(ya().__INTLIFY_PROD_DEVTOOLS__=!1)}let sh=Kf.__EXTEND_POINT__;const ft=()=>++sh,vt={UNEXPECTED_RETURN_TYPE:sh,INVALID_ARGUMENT:ft(),MUST_BE_CALL_SETUP_TOP:ft(),NOT_INSLALLED:ft(),NOT_AVAILABLE_IN_LEGACY_MODE:ft(),REQUIRED_VALUE:ft(),INVALID_VALUE:ft(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:ft(),NOT_INSLALLED_WITH_PROVIDE:ft(),UNEXPECTED_ERROR:ft(),NOT_COMPATIBLE_LEGACY_VUE_I18N:ft(),BRIDGE_SUPPORT_VUE_2_ONLY:ft(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:ft(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:ft(),__EXTEND_POINT__:ft()};function Ct(e,...t){return Yf(e,null,void 0)}const _s=bn("__transrateVNode"),vs=bn("__datetimeParts"),ys=bn("__numberParts"),sv=bn("__setPluralRules");bn("__intlifyMeta");const av=bn("__injectWithOption");function ws(e){if(!Ae(e))return e;for(const t in e)if(wa(e,t))if(!t.includes("."))Ae(e[t])&&ws(e[t]);else{const n=t.split("."),r=n.length-1;let i=e;for(let o=0;o<r;o++)n[o]in i||(i[n[o]]={}),i=i[n[o]];i[n[r]]=e[t],delete e[t],Ae(i[n[r]])&&ws(i[n[r]])}return e}function ah(e,t){const{messages:n,__i18n:r,messageResolver:i,flatJson:o}=t,s=xe(n)?n:Ze(r)?{}:{[e]:{}};if(Ze(r)&&r.forEach(a=>{if("locale"in a&&"resource"in a){const{locale:c,resource:m}=a;c?(s[c]=s[c]||{},kr(m,s[c])):kr(m,s)}else fe(a)&&kr(JSON.parse(a),s)}),i==null&&o)for(const a in s)wa(s,a)&&ws(s[a]);return s}const mi=e=>!Ae(e)||Ze(e);function kr(e,t){if(mi(e)||mi(t))throw Ct(vt.INVALID_VALUE);for(const n in e)wa(e,n)&&(mi(e[n])||mi(t[n])?t[n]=e[n]:kr(e[n],t[n]))}function lh(e){return e.type}function lv(e,t,n){let r=Ae(t.messages)?t.messages:{};"__i18nGlobal"in n&&(r=ah(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const i=Object.keys(r);i.length&&i.forEach(o=>{e.mergeLocaleMessage(o,r[o])});{if(Ae(t.datetimeFormats)){const o=Object.keys(t.datetimeFormats);o.length&&o.forEach(s=>{e.mergeDateTimeFormat(s,t.datetimeFormats[s])})}if(Ae(t.numberFormats)){const o=Object.keys(t.numberFormats);o.length&&o.forEach(s=>{e.mergeNumberFormat(s,t.numberFormats[s])})}}}function Cc(e){return ot(Xr,null,e,0)}const Tc="__INTLIFY_META__";let Ac=0;function Ic(e){return(t,n,r,i)=>e(n,r,yr()||void 0,i)}const cv=()=>{const e=yr();let t=null;return e&&(t=lh(e)[Tc])?{[Tc]:t}:null};function ch(e={},t){const{__root:n}=e,r=n===void 0;let i=Je(e.inheritLocale)?e.inheritLocale:!0;const o=dt(n&&i?n.locale.value:fe(e.locale)?e.locale:Ea),s=dt(n&&i?n.fallbackLocale.value:fe(e.fallbackLocale)||Ze(e.fallbackLocale)||xe(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:o.value),a=dt(ah(o.value,e)),c=dt(xe(e.datetimeFormats)?e.datetimeFormats:{[o.value]:{}}),m=dt(xe(e.numberFormats)?e.numberFormats:{[o.value]:{}});let p=n?n.missingWarn:Je(e.missingWarn)||ki(e.missingWarn)?e.missingWarn:!0,b=n?n.fallbackWarn:Je(e.fallbackWarn)||ki(e.fallbackWarn)?e.fallbackWarn:!0,x=n?n.fallbackRoot:Je(e.fallbackRoot)?e.fallbackRoot:!0,R=!!e.fallbackFormat,C=nt(e.missing)?e.missing:null,P=nt(e.missing)?Ic(e.missing):null,T=nt(e.postTranslation)?e.postTranslation:null,A=n?n.warnHtmlMessage:Je(e.warnHtmlMessage)?e.warnHtmlMessage:!0,L=!!e.escapeParameter;const B=n?n.modifiers:xe(e.modifiers)?e.modifiers:{};let $=e.pluralRules||n&&n.pluralRules,H;H=(()=>{r&&vc(null);const F={version:iv,locale:o.value,fallbackLocale:s.value,messages:a.value,modifiers:B,pluralRules:$,missing:P===null?void 0:P,missingWarn:p,fallbackWarn:b,fallbackFormat:R,unresolving:!0,postTranslation:T===null?void 0:T,warnHtmlMessage:A,escapeParameter:L,messageResolver:e.messageResolver,__meta:{framework:"vue"}};F.datetimeFormats=c.value,F.numberFormats=m.value,F.__datetimeFormatters=xe(H)?H.__datetimeFormatters:void 0,F.__numberFormatters=xe(H)?H.__numberFormatters:void 0;const j=X_(F);return r&&vc(j),j})(),xr(H,o.value,s.value);function Q(){return[o.value,s.value,a.value,c.value,m.value]}const V=Qe({get:()=>o.value,set:F=>{o.value=F,H.locale=o.value}}),ie=Qe({get:()=>s.value,set:F=>{s.value=F,H.fallbackLocale=s.value,xr(H,o.value,F)}}),v=Qe(()=>a.value),l=Qe(()=>c.value),d=Qe(()=>m.value);function _(){return nt(T)?T:null}function w(F){T=F,H.postTranslation=F}function E(){return C}function k(F){F!==null&&(P=Ic(F)),C=F,H.missing=P}const W=(F,j,ee,re,oe,ae)=>{Q();let de;if(__INTLIFY_PROD_DEVTOOLS__)try{_c(cv()),r||(H.fallbackContext=n?Z_():void 0),de=F(H)}finally{_c(null),r||(H.fallbackContext=void 0)}else de=F(H);if(tt(de)&&de===to){const[he,ge]=j();return n&&x?re(n):oe(he)}else{if(ae(de))return de;throw Ct(vt.UNEXPECTED_RETURN_TYPE)}};function I(...F){return W(j=>Reflect.apply(bc,null,[j,...F]),()=>ps(...F),"translate",j=>Reflect.apply(j.t,j,[...F]),j=>j,j=>fe(j))}function f(...F){const[j,ee,re]=F;if(re&&!Ae(re))throw Ct(vt.INVALID_ARGUMENT);return I(j,ee,ct({resolvedMessage:!0},re||{}))}function O(...F){return W(j=>Reflect.apply(Ec,null,[j,...F]),()=>ms(...F),"datetime format",j=>Reflect.apply(j.d,j,[...F]),()=>mc,j=>fe(j))}function ne(...F){return W(j=>Reflect.apply(Mc,null,[j,...F]),()=>gs(...F),"number format",j=>Reflect.apply(j.n,j,[...F]),()=>mc,j=>fe(j))}function Z(F){return F.map(j=>fe(j)||tt(j)||Je(j)?Cc(String(j)):j)}const ue={normalize:Z,interpolate:F=>F,type:"vnode"};function g(...F){return W(j=>{let ee;const re=j;try{re.processor=ue,ee=Reflect.apply(bc,null,[re,...F])}finally{re.processor=null}return ee},()=>ps(...F),"translate",j=>j[_s](...F),j=>[Cc(j)],j=>Ze(j))}function z(...F){return W(j=>Reflect.apply(Mc,null,[j,...F]),()=>gs(...F),"number format",j=>j[ys](...F),()=>[],j=>fe(j)||Ze(j))}function K(...F){return W(j=>Reflect.apply(Ec,null,[j,...F]),()=>ms(...F),"datetime format",j=>j[vs](...F),()=>[],j=>fe(j)||Ze(j))}function Y(F){$=F,H.pluralRules=$}function X(F,j){const ee=fe(j)?j:o.value,re=S(ee);return H.messageResolver(re,F)!==null}function se(F){let j=null;const ee=Gf(H,s.value,o.value);for(let re=0;re<ee.length;re++){const oe=a.value[ee[re]]||{},ae=H.messageResolver(oe,F);if(ae!=null){j=ae;break}}return j}function te(F){const j=se(F);return j??(n?n.tm(F)||{}:{})}function S(F){return a.value[F]||{}}function U(F,j){a.value[F]=j,H.messages=a.value}function q(F,j){a.value[F]=a.value[F]||{},kr(j,a.value[F]),H.messages=a.value}function J(F){return c.value[F]||{}}function y(F,j){c.value[F]=j,H.datetimeFormats=c.value,xc(H,F,j)}function u(F,j){c.value[F]=ct(c.value[F]||{},j),H.datetimeFormats=c.value,xc(H,F,j)}function h(F){return m.value[F]||{}}function M(F,j){m.value[F]=j,H.numberFormats=m.value,Sc(H,F,j)}function N(F,j){m.value[F]=ct(m.value[F]||{},j),H.numberFormats=m.value,Sc(H,F,j)}Ac++,n&&ds&&(Mt(n.locale,F=>{i&&(o.value=F,H.locale=F,xr(H,o.value,s.value))}),Mt(n.fallbackLocale,F=>{i&&(s.value=F,H.fallbackLocale=F,xr(H,o.value,s.value))}));const D={id:Ac,locale:V,fallbackLocale:ie,get inheritLocale(){return i},set inheritLocale(F){i=F,F&&n&&(o.value=n.locale.value,s.value=n.fallbackLocale.value,xr(H,o.value,s.value))},get availableLocales(){return Object.keys(a.value).sort()},messages:v,get modifiers(){return B},get pluralRules(){return $||{}},get isGlobal(){return r},get missingWarn(){return p},set missingWarn(F){p=F,H.missingWarn=p},get fallbackWarn(){return b},set fallbackWarn(F){b=F,H.fallbackWarn=b},get fallbackRoot(){return x},set fallbackRoot(F){x=F},get fallbackFormat(){return R},set fallbackFormat(F){R=F,H.fallbackFormat=R},get warnHtmlMessage(){return A},set warnHtmlMessage(F){A=F,H.warnHtmlMessage=F},get escapeParameter(){return L},set escapeParameter(F){L=F,H.escapeParameter=F},t:I,getLocaleMessage:S,setLocaleMessage:U,mergeLocaleMessage:q,getPostTranslationHandler:_,setPostTranslationHandler:w,getMissingHandler:E,setMissingHandler:k,[sv]:Y};return D.datetimeFormats=l,D.numberFormats=d,D.rt=f,D.te=X,D.tm=te,D.d=O,D.n=ne,D.getDateTimeFormat=J,D.setDateTimeFormat=y,D.mergeDateTimeFormat=u,D.getNumberFormat=h,D.setNumberFormat=M,D.mergeNumberFormat=N,D[av]=e.__injectWithOption,D[_s]=g,D[vs]=K,D[ys]=z,D}const Ma={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function uv({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,i)=>r=[...r,...Ze(i.children)?i.children:[i]],[]):t.reduce((n,r)=>{const i=e[r];return i&&(n[r]=i()),n},{})}function uh(e){return _t}const Rc={name:"i18n-t",props:ct({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>tt(e)||!isNaN(e)}},Ma),setup(e,t){const{slots:n,attrs:r}=t,i=e.i18n||Sa({useScope:e.scope,__useComponent:!0});return()=>{const o=Object.keys(n).filter(b=>b!=="_"),s={};e.locale&&(s.locale=e.locale),e.plural!==void 0&&(s.plural=fe(e.plural)?+e.plural:e.plural);const a=uv(t,o),c=i[_s](e.keypath,a,s),m=ct({},r),p=fe(e.tag)||Ae(e.tag)?e.tag:uh();return Zi(p,m,c)}}};function fv(e){return Ze(e)&&!fe(e[0])}function fh(e,t,n,r){const{slots:i,attrs:o}=t;return()=>{const s={part:!0};let a={};e.locale&&(s.locale=e.locale),fe(e.format)?s.key=e.format:Ae(e.format)&&(fe(e.format.key)&&(s.key=e.format.key),a=Object.keys(e.format).reduce((x,R)=>n.includes(R)?ct({},x,{[R]:e.format[R]}):x,{}));const c=r(e.value,s,a);let m=[s.key];Ze(c)?m=c.map((x,R)=>{const C=i[x.type],P=C?C({[x.type]:x.value,index:R,parts:c}):[x.value];return fv(P)&&(P[0].key=`${x.type}-${R}`),P}):fe(c)&&(m=[c]);const p=ct({},o),b=fe(e.tag)||Ae(e.tag)?e.tag:uh();return Zi(b,p,m)}}const Oc={name:"i18n-n",props:ct({value:{type:Number,required:!0},format:{type:[String,Object]}},Ma),setup(e,t){const n=e.i18n||Sa({useScope:"parent",__useComponent:!0});return fh(e,t,oh,(...r)=>n[ys](...r))}},kc={name:"i18n-d",props:ct({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Ma),setup(e,t){const n=e.i18n||Sa({useScope:"parent",__useComponent:!0});return fh(e,t,ih,(...r)=>n[vs](...r))}};function hv(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return r!=null?r.__composer:e.global.__composer}}function dv(e){const t=s=>{const{instance:a,modifiers:c,value:m}=s;if(!a||!a.$)throw Ct(vt.UNEXPECTED_ERROR);const p=hv(e,a.$),b=Nc(m);return[Reflect.apply(p.t,p,[...Pc(b)]),p]};return{created:(s,a)=>{const[c,m]=t(a);ds&&e.global===m&&(s.__i18nWatcher=Mt(m.locale,()=>{a.instance&&a.instance.$forceUpdate()})),s.__composer=m,s.textContent=c},unmounted:s=>{ds&&s.__i18nWatcher&&(s.__i18nWatcher(),s.__i18nWatcher=void 0,delete s.__i18nWatcher),s.__composer&&(s.__composer=void 0,delete s.__composer)},beforeUpdate:(s,{value:a})=>{if(s.__composer){const c=s.__composer,m=Nc(a);s.textContent=Reflect.apply(c.t,c,[...Pc(m)])}},getSSRProps:s=>{const[a]=t(s);return{textContent:a}}}}function Nc(e){if(fe(e))return{path:e};if(xe(e)){if(!("path"in e))throw Ct(vt.REQUIRED_VALUE,"path");return e}else throw Ct(vt.INVALID_VALUE)}function Pc(e){const{path:t,locale:n,args:r,choice:i,plural:o}=e,s={},a=r||{};return fe(n)&&(s.locale=n),tt(i)&&(s.plural=i),tt(o)&&(s.plural=o),[t,a,s]}function pv(e,t,...n){const r=xe(n[0])?n[0]:{},i=!!r.useI18nComponentName;(Je(r.globalInstall)?r.globalInstall:!0)&&(e.component(i?"i18n":Rc.name,Rc),e.component(Oc.name,Oc),e.component(kc.name,kc)),e.directive("t",dv(t))}const mv=bn("global-vue-i18n");function gv(e={},t){const n=Je(e.globalInjection)?e.globalInjection:!0,r=!0,i=new Map,[o,s]=_v(e),a=bn("");function c(b){return i.get(b)||null}function m(b,x){i.set(b,x)}function p(b){i.delete(b)}{const b={get mode(){return"composition"},get allowComposition(){return r},async install(x,...R){x.__VUE_I18N_SYMBOL__=a,x.provide(x.__VUE_I18N_SYMBOL__,b),n&&Sv(x,b.global),pv(x,b,...R);const C=x.unmount;x.unmount=()=>{b.dispose(),C()}},get global(){return s},dispose(){o.stop()},__instances:i,__getInstance:c,__setInstance:m,__deleteInstance:p};return b}}function Sa(e={}){const t=yr();if(t==null)throw Ct(vt.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Ct(vt.NOT_INSLALLED);const n=vv(t),r=wv(n),i=lh(t),o=yv(e,i);if(o==="global")return lv(r,e,i),r;if(o==="parent"){let c=bv(n,t,e.__useComponent);return c==null&&(c=r),c}const s=n;let a=s.__getInstance(t);if(a==null){const c=ct({},e);"__i18n"in i&&(c.__i18n=i.__i18n),r&&(c.__root=r),a=ch(c),Ev(s,t),s.__setInstance(t,a)}return a}function _v(e,t,n){const r=Gs();{const i=r.run(()=>ch(e));if(i==null)throw Ct(vt.UNEXPECTED_ERROR);return[r,i]}}function vv(e){{const t=xt(e.isCE?mv:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Ct(e.isCE?vt.NOT_INSLALLED_WITH_PROVIDE:vt.UNEXPECTED_ERROR);return t}}function yv(e,t){return eo(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function wv(e){return e.mode==="composition"?e.global:e.global.__composer}function bv(e,t,n=!1){let r=null;const i=t.root;let o=t.parent;for(;o!=null;){const s=e;if(e.mode==="composition"&&(r=s.__getInstance(o)),r!=null||i===o)break;o=o.parent}return r}function Ev(e,t,n){Gi(()=>{},t),ua(()=>{e.__deleteInstance(t)},t)}const xv=["locale","fallbackLocale","availableLocales"],Mv=["t","rt","d","n","tm"];function Sv(e,t){const n=Object.create(null);xv.forEach(r=>{const i=Object.getOwnPropertyDescriptor(t,r);if(!i)throw Ct(vt.UNEXPECTED_ERROR);const o=Ye(i.value)?{get(){return i.value.value},set(s){i.value.value=s}}:{get(){return i.get&&i.get()}};Object.defineProperty(n,r,o)}),e.config.globalProperties.$i18n=n,Mv.forEach(r=>{const i=Object.getOwnPropertyDescriptor(t,r);if(!i||!i.value)throw Ct(vt.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${r}`,i)})}J_(R_);G_(Gf);ov();if(__INTLIFY_PROD_DEVTOOLS__){const e=ya();e.__INTLIFY__=!0,U_(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}/*!
* vue-router v4.1.6
* (c) 2022 Eduardo San Martin Morote
* @license MIT
*/const Yn=typeof window<"u";function Cv(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Se=Object.assign;function Do(e,t){const n={};for(const r in t){const i=t[r];n[r]=Nt(i)?i.map(e):e(i)}return n}const Nr=()=>{},Nt=Array.isArray,Tv=/\/$/,Av=e=>e.replace(Tv,"");function Uo(e,t,n="/"){let r,i={},o="",s="";const a=t.indexOf("#");let c=t.indexOf("?");return a<c&&a>=0&&(c=-1),c>-1&&(r=t.slice(0,c),o=t.slice(c+1,a>-1?a:t.length),i=e(o)),a>-1&&(r=r||t.slice(0,a),s=t.slice(a,t.length)),r=kv(r??t,n),{fullPath:r+(o&&"?")+o+s,path:r,query:i,hash:s}}function Iv(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Fc(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Rv(e,t,n){const r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&ar(t.matched[r],n.matched[i])&&hh(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function ar(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function hh(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Ov(e[n],t[n]))return!1;return!0}function Ov(e,t){return Nt(e)?Bc(e,t):Nt(t)?Bc(t,e):e===t}function Bc(e,t){return Nt(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function kv(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/");let i=n.length-1,o,s;for(o=0;o<r.length;o++)if(s=r[o],s!==".")if(s==="..")i>1&&i--;else break;return n.slice(0,i).join("/")+"/"+r.slice(o-(o===r.length?1:0)).join("/")}var zr;(function(e){e.pop="pop",e.push="push"})(zr||(zr={}));var Pr;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Pr||(Pr={}));function Nv(e){if(!e)if(Yn){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Av(e)}const Pv=/^[^#]+#/;function Fv(e,t){return e.replace(Pv,"#")+t}function Bv(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const no=()=>({left:window.pageXOffset,top:window.pageYOffset});function Lv(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),i=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=Bv(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function Lc(e,t){return(history.state?history.state.position-t:-1)+e}const bs=new Map;function Dv(e,t){bs.set(e,t)}function Uv(e){const t=bs.get(e);return bs.delete(e),t}let $v=()=>location.protocol+"//"+location.host;function dh(e,t){const{pathname:n,search:r,hash:i}=t,o=e.indexOf("#");if(o>-1){let a=i.includes(e.slice(o))?e.slice(o).length:1,c=i.slice(a);return c[0]!=="/"&&(c="/"+c),Fc(c,"")}return Fc(n,e)+r+i}function Wv(e,t,n,r){let i=[],o=[],s=null;const a=({state:x})=>{const R=dh(e,location),C=n.value,P=t.value;let T=0;if(x){if(n.value=R,t.value=x,s&&s===C){s=null;return}T=P?x.position-P.position:0}else r(R);i.forEach(A=>{A(n.value,C,{delta:T,type:zr.pop,direction:T?T>0?Pr.forward:Pr.back:Pr.unknown})})};function c(){s=n.value}function m(x){i.push(x);const R=()=>{const C=i.indexOf(x);C>-1&&i.splice(C,1)};return o.push(R),R}function p(){const{history:x}=window;x.state&&x.replaceState(Se({},x.state,{scroll:no()}),"")}function b(){for(const x of o)x();o=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",p)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",p),{pauseListeners:c,listen:m,destroy:b}}function Dc(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?no():null}}function jv(e){const{history:t,location:n}=window,r={value:dh(e,n)},i={value:t.state};i.value||o(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(c,m,p){const b=e.indexOf("#"),x=b>-1?(n.host&&document.querySelector("base")?e:e.slice(b))+c:$v()+e+c;try{t[p?"replaceState":"pushState"](m,"",x),i.value=m}catch(R){console.error(R),n[p?"replace":"assign"](x)}}function s(c,m){const p=Se({},t.state,Dc(i.value.back,c,i.value.forward,!0),m,{position:i.value.position});o(c,p,!0),r.value=c}function a(c,m){const p=Se({},i.value,t.state,{forward:c,scroll:no()});o(p.current,p,!0);const b=Se({},Dc(r.value,c,null),{position:p.position+1},m);o(c,b,!1),r.value=c}return{location:r,state:i,push:a,replace:s}}function Hv(e){e=Nv(e);const t=jv(e),n=Wv(e,t.state,t.location,t.replace);function r(o,s=!0){s||n.pauseListeners(),history.go(o)}const i=Se({location:"",base:e,go:r,createHref:Fv.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function qv(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),Hv(e)}function zv(e){return typeof e=="string"||e&&typeof e=="object"}function ph(e){return typeof e=="string"||typeof e=="symbol"}const ln={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},mh=Symbol("");var Uc;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Uc||(Uc={}));function lr(e,t){return Se(new Error,{type:e,[mh]:!0},t)}function Ht(e,t){return e instanceof Error&&mh in e&&(t==null||!!(e.type&t))}const $c="[^/]+?",Vv={sensitive:!1,strict:!1,start:!0,end:!0},Kv=/[.+*?^${}()[\]/\\]/g;function Yv(e,t){const n=Se({},Vv,t),r=[];let i=n.start?"^":"";const o=[];for(const m of e){const p=m.length?[]:[90];n.strict&&!m.length&&(i+="/");for(let b=0;b<m.length;b++){const x=m[b];let R=40+(n.sensitive?.25:0);if(x.type===0)b||(i+="/"),i+=x.value.replace(Kv,"\\$&"),R+=40;else if(x.type===1){const{value:C,repeatable:P,optional:T,regexp:A}=x;o.push({name:C,repeatable:P,optional:T});const L=A||$c;if(L!==$c){R+=10;try{new RegExp(`(${L})`)}catch($){throw new Error(`Invalid custom RegExp for param "${C}" (${L}): `+$.message)}}let B=P?`((?:${L})(?:/(?:${L}))*)`:`(${L})`;b||(B=T&&m.length<2?`(?:/${B})`:"/"+B),T&&(B+="?"),i+=B,R+=20,T&&(R+=-8),P&&(R+=-20),L===".*"&&(R+=-50)}p.push(R)}r.push(p)}if(n.strict&&n.end){const m=r.length-1;r[m][r[m].length-1]+=.7000000000000001}n.strict||(i+="/?"),n.end?i+="$":n.strict&&(i+="(?:/|$)");const s=new RegExp(i,n.sensitive?"":"i");function a(m){const p=m.match(s),b={};if(!p)return null;for(let x=1;x<p.length;x++){const R=p[x]||"",C=o[x-1];b[C.name]=R&&C.repeatable?R.split("/"):R}return b}function c(m){let p="",b=!1;for(const x of e){(!b||!p.endsWith("/"))&&(p+="/"),b=!1;for(const R of x)if(R.type===0)p+=R.value;else if(R.type===1){const{value:C,repeatable:P,optional:T}=R,A=C in m?m[C]:"";if(Nt(A)&&!P)throw new Error(`Provided param "${C}" is an array but it is not repeatable (* or + modifiers)`);const L=Nt(A)?A.join("/"):A;if(!L)if(T)x.length<2&&(p.endsWith("/")?p=p.slice(0,-1):b=!0);else throw new Error(`Missing required param "${C}"`);p+=L}}return p||"/"}return{re:s,score:r,keys:o,parse:a,stringify:c}}function Jv(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===40+40?-1:1:e.length>t.length?t.length===1&&t[0]===40+40?1:-1:0}function Gv(e,t){let n=0;const r=e.score,i=t.score;for(;n<r.length&&n<i.length;){const o=Jv(r[n],i[n]);if(o)return o;n++}if(Math.abs(i.length-r.length)===1){if(Wc(r))return 1;if(Wc(i))return-1}return i.length-r.length}function Wc(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Qv={type:0,value:""},Zv=/[a-zA-Z0-9_]/;function Xv(e){if(!e)return[[]];if(e==="/")return[[Qv]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(R){throw new Error(`ERR (${n})/"${m}": ${R}`)}let n=0,r=n;const i=[];let o;function s(){o&&i.push(o),o=[]}let a=0,c,m="",p="";function b(){m&&(n===0?o.push({type:0,value:m}):n===1||n===2||n===3?(o.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${m}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:m,regexp:p,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),m="")}function x(){m+=c}for(;a<e.length;){if(c=e[a++],c==="\\"&&n!==2){r=n,n=4;continue}switch(n){case 0:c==="/"?(m&&b(),s()):c===":"?(b(),n=1):x();break;case 4:x(),n=r;break;case 1:c==="("?n=2:Zv.test(c)?x():(b(),n=0,c!=="*"&&c!=="?"&&c!=="+"&&a--);break;case 2:c===")"?p[p.length-1]=="\\"?p=p.slice(0,-1)+c:n=3:p+=c;break;case 3:b(),n=0,c!=="*"&&c!=="?"&&c!=="+"&&a--,p="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${m}"`),b(),s(),i}function ey(e,t,n){const r=Yv(Xv(e.path),n),i=Se(r,{record:e,parent:t,children:[],alias:[]});return t&&!i.record.aliasOf==!t.record.aliasOf&&t.children.push(i),i}function ty(e,t){const n=[],r=new Map;t=qc({strict:!1,end:!0,sensitive:!1},t);function i(p){return r.get(p)}function o(p,b,x){const R=!x,C=ny(p);C.aliasOf=x&&x.record;const P=qc(t,p),T=[C];if("alias"in p){const B=typeof p.alias=="string"?[p.alias]:p.alias;for(const $ of B)T.push(Se({},C,{components:x?x.record.components:C.components,path:$,aliasOf:x?x.record:C}))}let A,L;for(const B of T){const{path:$}=B;if(b&&$[0]!=="/"){const H=b.record.path,G=H[H.length-1]==="/"?"":"/";B.path=b.record.path+($&&G+$)}if(A=ey(B,b,P),x?x.alias.push(A):(L=L||A,L!==A&&L.alias.push(A),R&&p.name&&!Hc(A)&&s(p.name)),C.children){const H=C.children;for(let G=0;G<H.length;G++)o(H[G],A,x&&x.children[G])}x=x||A,(A.record.components&&Object.keys(A.record.components).length||A.record.name||A.record.redirect)&&c(A)}return L?()=>{s(L)}:Nr}function s(p){if(ph(p)){const b=r.get(p);b&&(r.delete(p),n.splice(n.indexOf(b),1),b.children.forEach(s),b.alias.forEach(s))}else{const b=n.indexOf(p);b>-1&&(n.splice(b,1),p.record.name&&r.delete(p.record.name),p.children.forEach(s),p.alias.forEach(s))}}function a(){return n}function c(p){let b=0;for(;b<n.length&&Gv(p,n[b])>=0&&(p.record.path!==n[b].record.path||!gh(p,n[b]));)b++;n.splice(b,0,p),p.record.name&&!Hc(p)&&r.set(p.record.name,p)}function m(p,b){let x,R={},C,P;if("name"in p&&p.name){if(x=r.get(p.name),!x)throw lr(1,{location:p});P=x.record.name,R=Se(jc(b.params,x.keys.filter(L=>!L.optional).map(L=>L.name)),p.params&&jc(p.params,x.keys.map(L=>L.name))),C=x.stringify(R)}else if("path"in p)C=p.path,x=n.find(L=>L.re.test(C)),x&&(R=x.parse(C),P=x.record.name);else{if(x=b.name?r.get(b.name):n.find(L=>L.re.test(b.path)),!x)throw lr(1,{location:p,currentLocation:b});P=x.record.name,R=Se({},b.params,p.params),C=x.stringify(R)}const T=[];let A=x;for(;A;)T.unshift(A.record),A=A.parent;return{name:P,path:C,params:R,matched:T,meta:iy(T)}}return e.forEach(p=>o(p)),{addRoute:o,resolve:m,removeRoute:s,getRoutes:a,getRecordMatcher:i}}function jc(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function ny(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:ry(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function ry(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="boolean"?n:n[r];return t}function Hc(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function iy(e){return e.reduce((t,n)=>Se(t,n.meta),{})}function qc(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function gh(e,t){return t.children.some(n=>n===e||gh(e,n))}const _h=/#/g,oy=/&/g,sy=/\//g,ay=/=/g,ly=/\?/g,vh=/\+/g,cy=/%5B/g,uy=/%5D/g,yh=/%5E/g,fy=/%60/g,wh=/%7B/g,hy=/%7C/g,bh=/%7D/g,dy=/%20/g;function Ca(e){return encodeURI(""+e).replace(hy,"|").replace(cy,"[").replace(uy,"]")}function py(e){return Ca(e).replace(wh,"{").replace(bh,"}").replace(yh,"^")}function Es(e){return Ca(e).replace(vh,"%2B").replace(dy,"+").replace(_h,"%23").replace(oy,"%26").replace(fy,"`").replace(wh,"{").replace(bh,"}").replace(yh,"^")}function my(e){return Es(e).replace(ay,"%3D")}function gy(e){return Ca(e).replace(_h,"%23").replace(ly,"%3F")}function _y(e){return e==null?"":gy(e).replace(sy,"%2F")}function Ni(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function vy(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;i<r.length;++i){const o=r[i].replace(vh," "),s=o.indexOf("="),a=Ni(s<0?o:o.slice(0,s)),c=s<0?null:Ni(o.slice(s+1));if(a in t){let m=t[a];Nt(m)||(m=t[a]=[m]),m.push(c)}else t[a]=c}return t}function zc(e){let t="";for(let n in e){const r=e[n];if(n=my(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(Nt(r)?r.map(o=>o&&Es(o)):[r&&Es(r)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function yy(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Nt(r)?r.map(i=>i==null?null:""+i):r==null?r:""+r)}return t}const wy=Symbol(""),Vc=Symbol(""),ro=Symbol(""),Eh=Symbol(""),xs=Symbol("");function Mr(){let e=[];function t(r){return e.push(r),()=>{const i=e.indexOf(r);i>-1&&e.splice(i,1)}}function n(){e=[]}return{add:t,list:()=>e,reset:n}}function fn(e,t,n,r,i){const o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((s,a)=>{const c=b=>{b===!1?a(lr(4,{from:n,to:t})):b instanceof Error?a(b):zv(b)?a(lr(2,{from:t,to:b})):(o&&r.enterCallbacks[i]===o&&typeof b=="function"&&o.push(b),s())},m=e.call(r&&r.instances[i],t,n,c);let p=Promise.resolve(m);e.length<3&&(p=p.then(c)),p.catch(b=>a(b))})}function $o(e,t,n,r){const i=[];for(const o of e)for(const s in o.components){let a=o.components[s];if(!(t!=="beforeRouteEnter"&&!o.instances[s]))if(by(a)){const m=(a.__vccOpts||a)[t];m&&i.push(fn(m,n,r,o,s))}else{let c=a();i.push(()=>c.then(m=>{if(!m)return Promise.reject(new Error(`Couldn't resolve component "${s}" at "${o.path}"`));const p=Cv(m)?m.default:m;o.components[s]=p;const x=(p.__vccOpts||p)[t];return x&&fn(x,n,r,o,s)()}))}}return i}function by(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Kc(e){const t=xt(ro),n=xt(Eh),r=Qe(()=>t.resolve(mn(e.to))),i=Qe(()=>{const{matched:c}=r.value,{length:m}=c,p=c[m-1],b=n.matched;if(!p||!b.length)return-1;const x=b.findIndex(ar.bind(null,p));if(x>-1)return x;const R=Yc(c[m-2]);return m>1&&Yc(p)===R&&b[b.length-1].path!==R?b.findIndex(ar.bind(null,c[m-2])):x}),o=Qe(()=>i.value>-1&&Sy(n.params,r.value.params)),s=Qe(()=>i.value>-1&&i.value===n.matched.length-1&&hh(n.params,r.value.params));function a(c={}){return My(c)?t[mn(e.replace)?"replace":"push"](mn(e.to)).catch(Nr):Promise.resolve()}return{route:r,href:Qe(()=>r.value.href),isActive:o,isExactActive:s,navigate:a}}const Ey=ca({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Kc,setup(e,{slots:t}){const n=vr(Kc(e)),{options:r}=xt(ro),i=Qe(()=>({[Jc(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Jc(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:Zi("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},o)}}}),xy=Ey;function My(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Sy(e,t){for(const n in t){const r=t[n],i=e[n];if(typeof r=="string"){if(r!==i)return!1}else if(!Nt(i)||i.length!==r.length||r.some((o,s)=>o!==i[s]))return!1}return!0}function Yc(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Jc=(e,t,n)=>e??t??n,Cy=ca({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=xt(xs),i=Qe(()=>e.route||r.value),o=xt(Vc,0),s=Qe(()=>{let m=mn(o);const{matched:p}=i.value;let b;for(;(b=p[m])&&!b.components;)m++;return m}),a=Qe(()=>i.value.matched[s.value]);yi(Vc,Qe(()=>s.value+1)),yi(wy,a),yi(xs,i);const c=dt();return Mt(()=>[c.value,a.value,e.name],([m,p,b],[x,R,C])=>{p&&(p.instances[b]=m,R&&R!==p&&m&&m===x&&(p.leaveGuards.size||(p.leaveGuards=R.leaveGuards),p.updateGuards.size||(p.updateGuards=R.updateGuards))),m&&p&&(!R||!ar(p,R)||!x)&&(p.enterCallbacks[b]||[]).forEach(P=>P(m))},{flush:"post"}),()=>{const m=i.value,p=e.name,b=a.value,x=b&&b.components[p];if(!x)return Gc(n.default,{Component:x,route:m});const R=b.props[p],C=R?R===!0?m.params:typeof R=="function"?R(m):R:null,T=Zi(x,Se({},C,t,{onVnodeUnmounted:A=>{A.component.isUnmounted&&(b.instances[p]=null)},ref:c}));return Gc(n.default,{Component:T,route:m})||T}}});function Gc(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Ty=Cy;function Ay(e){const t=ty(e.routes,e),n=e.parseQuery||vy,r=e.stringifyQuery||zc,i=e.history,o=Mr(),s=Mr(),a=Mr(),c=rf(ln);let m=ln;Yn&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const p=Do.bind(null,g=>""+g),b=Do.bind(null,_y),x=Do.bind(null,Ni);function R(g,z){let K,Y;return ph(g)?(K=t.getRecordMatcher(g),Y=z):Y=g,t.addRoute(Y,K)}function C(g){const z=t.getRecordMatcher(g);z&&t.removeRoute(z)}function P(){return t.getRoutes().map(g=>g.record)}function T(g){return!!t.getRecordMatcher(g)}function A(g,z){if(z=Se({},z||c.value),typeof g=="string"){const S=Uo(n,g,z.path),U=t.resolve({path:S.path},z),q=i.createHref(S.fullPath);return Se(S,U,{params:x(U.params),hash:Ni(S.hash),redirectedFrom:void 0,href:q})}let K;if("path"in g)K=Se({},g,{path:Uo(n,g.path,z.path).path});else{const S=Se({},g.params);for(const U in S)S[U]==null&&delete S[U];K=Se({},g,{params:b(g.params)}),z.params=b(z.params)}const Y=t.resolve(K,z),X=g.hash||"";Y.params=p(x(Y.params));const se=Iv(r,Se({},g,{hash:py(X),path:Y.path})),te=i.createHref(se);return Se({fullPath:se,hash:X,query:r===zc?yy(g.query):g.query||{}},Y,{redirectedFrom:void 0,href:te})}function L(g){return typeof g=="string"?Uo(n,g,c.value.path):Se({},g)}function B(g,z){if(m!==g)return lr(8,{from:z,to:g})}function $(g){return Q(g)}function H(g){return $(Se(L(g),{replace:!0}))}function G(g){const z=g.matched[g.matched.length-1];if(z&&z.redirect){const{redirect:K}=z;let Y=typeof K=="function"?K(g):K;return typeof Y=="string"&&(Y=Y.includes("?")||Y.includes("#")?Y=L(Y):{path:Y},Y.params={}),Se({query:g.query,hash:g.hash,params:"path"in Y?{}:g.params},Y)}}function Q(g,z){const K=m=A(g),Y=c.value,X=g.state,se=g.force,te=g.replace===!0,S=G(K);if(S)return Q(Se(L(S),{state:typeof S=="object"?Se({},X,S.state):X,force:se,replace:te}),z||K);const U=K;U.redirectedFrom=z;let q;return!se&&Rv(r,Y,K)&&(q=lr(16,{to:U,from:Y}),O(Y,Y,!0,!1)),(q?Promise.resolve(q):ie(U,Y)).catch(J=>Ht(J)?Ht(J,2)?J:f(J):W(J,U,Y)).then(J=>{if(J){if(Ht(J,2))return Q(Se({replace:te},L(J.to),{state:typeof J.to=="object"?Se({},X,J.to.state):X,force:se}),z||U)}else J=l(U,Y,!0,te,X);return v(U,Y,J),J})}function V(g,z){const K=B(g,z);return K?Promise.reject(K):Promise.resolve()}function ie(g,z){let K;const[Y,X,se]=Iy(g,z);K=$o(Y.reverse(),"beforeRouteLeave",g,z);for(const S of Y)S.leaveGuards.forEach(U=>{K.push(fn(U,g,z))});const te=V.bind(null,g,z);return K.push(te),Vn(K).then(()=>{K=[];for(const S of o.list())K.push(fn(S,g,z));return K.push(te),Vn(K)}).then(()=>{K=$o(X,"beforeRouteUpdate",g,z);for(const S of X)S.updateGuards.forEach(U=>{K.push(fn(U,g,z))});return K.push(te),Vn(K)}).then(()=>{K=[];for(const S of g.matched)if(S.beforeEnter&&!z.matched.includes(S))if(Nt(S.beforeEnter))for(const U of S.beforeEnter)K.push(fn(U,g,z));else K.push(fn(S.beforeEnter,g,z));return K.push(te),Vn(K)}).then(()=>(g.matched.forEach(S=>S.enterCallbacks={}),K=$o(se,"beforeRouteEnter",g,z),K.push(te),Vn(K))).then(()=>{K=[];for(const S of s.list())K.push(fn(S,g,z));return K.push(te),Vn(K)}).catch(S=>Ht(S,8)?S:Promise.reject(S))}function v(g,z,K){for(const Y of a.list())Y(g,z,K)}function l(g,z,K,Y,X){const se=B(g,z);if(se)return se;const te=z===ln,S=Yn?history.state:{};K&&(Y||te?i.replace(g.fullPath,Se({scroll:te&&S&&S.scroll},X)):i.push(g.fullPath,X)),c.value=g,O(g,z,K,te),f()}let d;function _(){d||(d=i.listen((g,z,K)=>{if(!ue.listening)return;const Y=A(g),X=G(Y);if(X){Q(Se(X,{replace:!0}),Y).catch(Nr);return}m=Y;const se=c.value;Yn&&Dv(Lc(se.fullPath,K.delta),no()),ie(Y,se).catch(te=>Ht(te,12)?te:Ht(te,2)?(Q(te.to,Y).then(S=>{Ht(S,20)&&!K.delta&&K.type===zr.pop&&i.go(-1,!1)}).catch(Nr),Promise.reject()):(K.delta&&i.go(-K.delta,!1),W(te,Y,se))).then(te=>{te=te||l(Y,se,!1),te&&(K.delta&&!Ht(te,8)?i.go(-K.delta,!1):K.type===zr.pop&&Ht(te,20)&&i.go(-1,!1)),v(Y,se,te)}).catch(Nr)}))}let w=Mr(),E=Mr(),k;function W(g,z,K){f(g);const Y=E.list();return Y.length?Y.forEach(X=>X(g,z,K)):console.error(g),Promise.reject(g)}function I(){return k&&c.value!==ln?Promise.resolve():new Promise((g,z)=>{w.add([g,z])})}function f(g){return k||(k=!g,_(),w.list().forEach(([z,K])=>g?K(g):z()),w.reset()),g}function O(g,z,K,Y){const{scrollBehavior:X}=e;if(!Yn||!X)return Promise.resolve();const se=!K&&Uv(Lc(g.fullPath,0))||(Y||!K)&&history.state&&history.state.scroll||null;return Zr().then(()=>X(g,z,se)).then(te=>te&&Lv(te)).catch(te=>W(te,g,z))}const ne=g=>i.go(g);let Z;const le=new Set,ue={currentRoute:c,listening:!0,addRoute:R,removeRoute:C,hasRoute:T,getRoutes:P,resolve:A,options:e,push:$,replace:H,go:ne,back:()=>ne(-1),forward:()=>ne(1),beforeEach:o.add,beforeResolve:s.add,afterEach:a.add,onError:E.add,isReady:I,install(g){const z=this;g.component("RouterLink",xy),g.component("RouterView",Ty),g.config.globalProperties.$router=z,Object.defineProperty(g.config.globalProperties,"$route",{enumerable:!0,get:()=>mn(c)}),Yn&&!Z&&c.value===ln&&(Z=!0,$(i.location).catch(X=>{}));const K={};for(const X in ln)K[X]=Qe(()=>c.value[X]);g.provide(ro,z),g.provide(Eh,vr(K)),g.provide(xs,c);const Y=g.unmount;le.add(g),g.unmount=function(){le.delete(g),le.size<1&&(m=ln,d&&d(),d=null,c.value=ln,Z=!1,k=!1),Y()}}};return ue}function Vn(e){return e.reduce((t,n)=>t.then(()=>n()),Promise.resolve())}function Iy(e,t){const n=[],r=[],i=[],o=Math.max(t.matched.length,e.matched.length);for(let s=0;s<o;s++){const a=t.matched[s];a&&(e.matched.find(m=>ar(m,a))?r.push(a):n.push(a));const c=e.matched[s];c&&(t.matched.find(m=>ar(m,c))||i.push(c))}return[n,r,i]}function G2(){return xt(ro)}var Ta=(e=>(e.BASE_LOGIN="/login",e.BASE_HOME="/home",e.ERROR_PAGE="/exception",e))(Ta||{});const Ry="modulepreload",Oy=function(e){return"https://keylab.cc/testConnect/"+e},Qc={},Aa=function(t,n,r){if(!n||n.length===0)return t();const i=document.getElementsByTagName("link");return Promise.all(n.map(o=>{if(o=Oy(o),o in Qc)return;Qc[o]=!0;const s=o.endsWith(".css"),a=s?'[rel="stylesheet"]':"";if(!!r)for(let p=i.length-1;p>=0;p--){const b=i[p];if(b.href===o&&(!s||b.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${a}`))return;const m=document.createElement("link");if(m.rel=s?"stylesheet":Ry,s||(m.as="script",m.crossOrigin=""),m.href=o,document.head.appendChild(m),s)return new Promise((p,b)=>{m.addEventListener("load",p),m.addEventListener("error",()=>b(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>t())},ky=[{path:"/home",name:"Home",component:()=>Aa(()=>import("./index-ac3f13bf.js"),[]),meta:{title:"Home"}}],Ny=Object.freeze(Object.defineProperty({__proto__:null,default:ky},Symbol.toStringTag,{value:"Module"})),Py="PageNotFound",Fy=()=>Aa(()=>import("./index-f74981af.js"),[]),By=()=>Aa(()=>import("./index-35579b14.js"),["assets/index-35579b14.js","assets/index-9b071095.css"]),Ly={path:"/:path(.*)*",name:Py,component:Fy,meta:{title:"ErrorPage"}},Zc=Object.assign({"./modules/home.ts":Ny}),xh=[];Object.keys(Zc).forEach(e=>{const t=Zc[e].default||{},n=Array.isArray(t)?[...t]:[t];xh.push(...n)});const Dy={path:"/layout",name:"Layout",component:By,meta:{title:"Layout"},redirect:Ta.BASE_HOME,children:[...xh,Ly]},Uy={path:"/",name:"Root",redirect:Ta.BASE_HOME,meta:{title:"Root"}},$y=[Uy,Dy];var At=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ei(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){if(this instanceof r){var i=[null];i.push.apply(i,arguments);var o=Function.bind.apply(t,i);return new o}return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var Ms={},Wy={get exports(){return Ms},set exports(e){Ms=e}};/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
* @license MIT */(function(e,t){(function(n,r){e.exports=r()})(At,function(){var n={};n.version="0.2.0";var r=n.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};n.configure=function(C){var P,T;for(P in C)T=C[P],T!==void 0&&C.hasOwnProperty(P)&&(r[P]=T);return this},n.status=null,n.set=function(C){var P=n.isStarted();C=i(C,r.minimum,1),n.status=C===1?null:C;var T=n.render(!P),A=T.querySelector(r.barSelector),L=r.speed,B=r.easing;return T.offsetWidth,a(function($){r.positionUsing===""&&(r.positionUsing=n.getPositioningCSS()),c(A,s(C,L,B)),C===1?(c(T,{transition:"none",opacity:1}),T.offsetWidth,setTimeout(function(){c(T,{transition:"all "+L+"ms linear",opacity:0}),setTimeout(function(){n.remove(),$()},L)},L)):setTimeout($,L)}),this},n.isStarted=function(){return typeof n.status=="number"},n.start=function(){n.status||n.set(0);var C=function(){setTimeout(function(){n.status&&(n.trickle(),C())},r.trickleSpeed)};return r.trickle&&C(),this},n.done=function(C){return!C&&!n.status?this:n.inc(.3+.5*Math.random()).set(1)},n.inc=function(C){var P=n.status;return P?(typeof C!="number"&&(C=(1-P)*i(Math.random()*P,.1,.95)),P=i(P+C,0,.994),n.set(P)):n.start()},n.trickle=function(){return n.inc(Math.random()*r.trickleRate)},function(){var C=0,P=0;n.promise=function(T){return!T||T.state()==="resolved"?this:(P===0&&n.start(),C++,P++,T.always(function(){P--,P===0?(C=0,n.done()):n.set((C-P)/C)}),this)}}(),n.render=function(C){if(n.isRendered())return document.getElementById("nprogress");p(document.documentElement,"nprogress-busy");var P=document.createElement("div");P.id="nprogress",P.innerHTML=r.template;var T=P.querySelector(r.barSelector),A=C?"-100":o(n.status||0),L=document.querySelector(r.parent),B;return c(T,{transition:"all 0 linear",transform:"translate3d("+A+"%,0,0)"}),r.showSpinner||(B=P.querySelector(r.spinnerSelector),B&&R(B)),L!=document.body&&p(L,"nprogress-custom-parent"),L.appendChild(P),P},n.remove=function(){b(document.documentElement,"nprogress-busy"),b(document.querySelector(r.parent),"nprogress-custom-parent");var C=document.getElementById("nprogress");C&&R(C)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var C=document.body.style,P="WebkitTransform"in C?"Webkit":"MozTransform"in C?"Moz":"msTransform"in C?"ms":"OTransform"in C?"O":"";return P+"Perspective"in C?"translate3d":P+"Transform"in C?"translate":"margin"};function i(C,P,T){return C<P?P:C>T?T:C}function o(C){return(-1+C)*100}function s(C,P,T){var A;return r.positionUsing==="translate3d"?A={transform:"translate3d("+o(C)+"%,0,0)"}:r.positionUsing==="translate"?A={transform:"translate("+o(C)+"%,0)"}:A={"margin-left":o(C)+"%"},A.transition="all "+P+"ms "+T,A}var a=function(){var C=[];function P(){var T=C.shift();T&&T(P)}return function(T){C.push(T),C.length==1&&P()}}(),c=function(){var C=["Webkit","O","Moz","ms"],P={};function T($){return $.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(H,G){return G.toUpperCase()})}function A($){var H=document.body.style;if($ in H)return $;for(var G=C.length,Q=$.charAt(0).toUpperCase()+$.slice(1),V;G--;)if(V=C[G]+Q,V in H)return V;return $}function L($){return $=T($),P[$]||(P[$]=A($))}function B($,H,G){H=L(H),$.style[H]=G}return function($,H){var G=arguments,Q,V;if(G.length==2)for(Q in H)V=H[Q],V!==void 0&&H.hasOwnProperty(Q)&&B($,Q,V);else B($,G[1],G[2])}}();function m(C,P){var T=typeof C=="string"?C:x(C);return T.indexOf(" "+P+" ")>=0}function p(C,P){var T=x(C),A=T+P;m(T,P)||(C.className=A.substring(1))}function b(C,P){var T=x(C),A;m(C,P)&&(A=T.replace(" "+P+" "," "),C.className=A.substring(1,A.length-1))}function x(C){return(" "+(C.className||"")+" ").replace(/\s+/gi," ")}function R(C){C&&C.parentNode&&C.parentNode.removeChild(C)}return n})})(Wy);const Pi=Ms;Pi.configure({easing:"ease",speed:300,showSpinner:!0,trickleSpeed:200,minimum:.1});const Ia=Ay({history:qv(),routes:$y,strict:!0,scrollBehavior:()=>({left:0,top:0})});Ia.beforeEach(()=>{Pi.isStarted()||Pi.start()});Ia.afterEach(()=>{Pi.done()});var et=(e=>(e[e.Trace=0]="Trace",e[e.Debug=1]="Debug",e[e.Info=2]="Info",e[e.Warn=3]="Warn",e[e.Error=4]="Error",e))(et||{});function Ss(e,...t){switch(e){case et.Trace:return console.trace(...t);case et.Debug:return console.debug(...t);case et.Info:return console.info(...t);case et.Warn:return console.warn(...t);case et.Error:return console.error(...t)}}class jy{constructor(t,n){this.identifier=t,this.value=n}toJSON(){return{identifier:this.identifier,value:this.value}}}class Mh{constructor(t="%s",n=!0){this.formatType=t,this.useColors=n,this.minimumTagWidth=5,this.message={format:"",args:[],fields:[]}}tag(t,n){let r=t;for(let i=t.length;i<this.minimumTagWidth;++i)r+=" ";this.push(`${r} `,n)}push(t,n,r){if(Array.isArray(t)&&t.every(i=>i instanceof jy)){this.message.fields.push(...t);return}this.useColors&&(n||r)?(this.message.format+=`${this.formatType}${this.getType(t)}${this.formatType}`,this.message.args.push(this.style(n,r),t,this.reset())):(this.message.format+=`${this.getType(t)}`,this.message.args.push(t))}write(t){const n=this.flush();this.doWrite(t,n)}flush(){const t=this.message;return this.message={format:"",args:[],fields:[]},t}getType(t){switch(typeof t){case"object":return"%o";case"number":return"%d";default:return"%s"}}}class Hy extends Mh{constructor(){super("%c")}style(t,n){return(t?`color: ${t};`:"")+(n?`font-weight: ${n};`:"")}reset(){return this.style("inherit","normal")}doWrite(t,n){console.groupCollapsed(n.format,...n.args),n.fields.forEach(r=>{this.push(r.identifier,"#3794ff","bold"),typeof r.value<"u"&&r.value.constructor&&r.value.constructor.name&&this.push(` (${r.value.constructor.name})`),this.push(": "),this.push(r.value);const i=this.flush();Ss(t,i.format,...i.args)}),console.groupEnd()}}class qy extends Mh{constructor(){super("%s",!!process.stdout.isTTY)}style(t,n){return(n==="bold"?"\x1B[1m":"")+(t?this.hex(t):"")}reset(){return"\x1B[0m"}hex(t){const[n,r,i]=this.hexToRgb(t);return`\x1B[38;2;${n};${r};${i}m`}hexToRgb(t){const n=parseInt(t.substring(1),16);return[n>>16&255,n>>8&255,n&255]}doWrite(t,n){if(n.fields.length===0)return Ss(t,`[%s] ${n.format}`,new Date().toISOString(),...n.args);const r={};n.fields.forEach(i=>r[i.identifier]=i.value),Ss(t,`[%s] ${n.format} %s%s%s`,new Date().toISOString(),...n.args,this.style("#8c8c8c"),JSON.stringify(r),this.reset())}}class zy{constructor(t,n){this.expected=t,this.ms=n}}class Ra{constructor(t,n,r,i=[]){if(this._formatter=t,this.name=n,this.defaultFields=r,this.extenders=i,this.level=et.Info,this.muted=!1,n&&(this.nameColor=this.hashStringToColor(n)),typeof process<"u"&&typeof process.env<"u")switch({}.LOG_LEVEL){case"trace":this.level=et.Trace;break;case"debug":this.level=et.Debug;break;case"info":this.level=et.Info;break;case"warn":this.level=et.Warn;break;case"error":this.level=et.Error;break}}set formatter(t){this._formatter=t}get formatter(){return this._formatter}mute(){this.muted=!0}extend(t){this.extenders.push(t)}info(t,...n){this.handle({message:t,fields:n,tagColor:"#66ccff",level:et.Info})}warn(t,...n){this.handle({message:t,fields:n,tagColor:"#ffae00",level:et.Warn})}trace(t,...n){this.handle({message:t,fields:n,tagColor:"#9e9e9e",level:et.Trace})}debug(t,...n){this.handle({message:t,fields:n,tagColor:"#ffb8da",level:et.Debug})}error(t,...n){this.handle({message:t,fields:n,tagColor:"#ff0000",level:et.Error})}named(t,...n){const r=new Ra(this._formatter,t,n,this.extenders);return this.muted&&r.mute(),r}handle(t){if(this.level>t.level||this.muted)return;let n=t.fields||[];if(typeof t.message=="function"){const a=t.message();t.message=a.shift(),n=a}const r=this.defaultFields?n.filter(a=>!!a).concat(this.defaultFields):n.filter(a=>!!a),i=Date.now();let o=[];r&&r.length>0&&(o=r.filter(a=>a.value instanceof zy),this._formatter.push(r)),this._formatter.tag(et[t.level].toLowerCase(),t.tagColor),this.name&&this.nameColor&&this._formatter.tag(this.name,this.nameColor),this._formatter.push(t.message),o.length>0&&o.forEach(a=>{const c=i-a.value.ms,m=c/a.value.expected,p=125*(1-m),b=125+p,x=m<1?b:p,R=m>=1?b:p;this._formatter.push(` ${a.identifier}=`,"#3390ff"),this._formatter.push(`${c}ms`,this.rgbToHex(R>0?R:0,x>0?x:0,0))}),this._formatter.write(t.level),this.extenders.forEach(a=>{a({section:this.name,...t})})}djb2(t){let n=5381;for(let r=0;r<t.length;r++)n=(n<<5)+n+t.charCodeAt(r);return n}rgbToHex(t,n,r){const o=(((Math.round(t)&255)<<16)+((Math.round(n)&255)<<8)+(Math.round(r)&255)).toString(16);return`#${"000000".substring(o.length)}${o}`}hashStringToColor(t){const n=this.djb2(t);return this.rgbToHex((n&16711680)>>16,(n&65280)>>8,n&255)}}const Cs=new Ra(typeof process>"u"||typeof process.stdout>"u"?new Hy:new qy);var Sh={},Vr={},Vy={get exports(){return Vr},set exports(e){Vr=e}};/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */(function(e){var t,n,r,i,o,s,a,c,m,p,b,x,R,C,P,T,A,L,B,$,H,G,Q;(function(V){var ie=typeof At=="object"?At:typeof self=="object"?self:typeof this=="object"?this:{};V(v(ie,v(e.exports)));function v(l,d){return l!==ie&&(typeof Object.create=="function"?Object.defineProperty(l,"__esModule",{value:!0}):l.__esModule=!0),function(_,w){return l[_]=d?d(_,w):w}}})(function(V){var ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,l){v.__proto__=l}||function(v,l){for(var d in l)l.hasOwnProperty(d)&&(v[d]=l[d])};t=function(v,l){ie(v,l);function d(){this.constructor=v}v.prototype=l===null?Object.create(l):(d.prototype=l.prototype,new d)},n=Object.assign||function(v){for(var l,d=1,_=arguments.length;d<_;d++){l=arguments[d];for(var w in l)Object.prototype.hasOwnProperty.call(l,w)&&(v[w]=l[w])}return v},r=function(v,l){var d={};for(var _ in v)Object.prototype.hasOwnProperty.call(v,_)&&l.indexOf(_)<0&&(d[_]=v[_]);if(v!=null&&typeof Object.getOwnPropertySymbols=="function")for(var w=0,_=Object.getOwnPropertySymbols(v);w<_.length;w++)l.indexOf(_[w])<0&&Object.prototype.propertyIsEnumerable.call(v,_[w])&&(d[_[w]]=v[_[w]]);return d},i=function(v,l,d,_){var w=arguments.length,E=w<3?l:_===null?_=Object.getOwnPropertyDescriptor(l,d):_,k;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(v,l,d,_);else for(var W=v.length-1;W>=0;W--)(k=v[W])&&(E=(w<3?k(E):w>3?k(l,d,E):k(l,d))||E);return w>3&&E&&Object.defineProperty(l,d,E),E},o=function(v,l){return function(d,_){l(d,_,v)}},s=function(v,l){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(v,l)},a=function(v,l,d,_){function w(E){return E instanceof d?E:new d(function(k){k(E)})}return new(d||(d=Promise))(function(E,k){function W(O){try{f(_.next(O))}catch(ne){k(ne)}}function I(O){try{f(_.throw(O))}catch(ne){k(ne)}}function f(O){O.done?E(O.value):w(O.value).then(W,I)}f((_=_.apply(v,l||[])).next())})},c=function(v,l){var d={label:0,sent:function(){if(E[0]&1)throw E[1];return E[1]},trys:[],ops:[]},_,w,E,k;return k={next:W(0),throw:W(1),return:W(2)},typeof Symbol=="function"&&(k[Symbol.iterator]=function(){return this}),k;function W(f){return function(O){return I([f,O])}}function I(f){if(_)throw new TypeError("Generator is already executing.");for(;d;)try{if(_=1,w&&(E=f[0]&2?w.return:f[0]?w.throw||((E=w.return)&&E.call(w),0):w.next)&&!(E=E.call(w,f[1])).done)return E;switch(w=0,E&&(f=[f[0]&2,E.value]),f[0]){case 0:case 1:E=f;break;case 4:return d.label++,{value:f[1],done:!1};case 5:d.label++,w=f[1],f=[0];continue;case 7:f=d.ops.pop(),d.trys.pop();continue;default:if(E=d.trys,!(E=E.length>0&&E[E.length-1])&&(f[0]===6||f[0]===2)){d=0;continue}if(f[0]===3&&(!E||f[1]>E[0]&&f[1]<E[3])){d.label=f[1];break}if(f[0]===6&&d.label<E[1]){d.label=E[1],E=f;break}if(E&&d.label<E[2]){d.label=E[2],d.ops.push(f);break}E[2]&&d.ops.pop(),d.trys.pop();continue}f=l.call(v,d)}catch(O){f=[6,O],w=0}finally{_=E=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},Q=function(v,l,d,_){_===void 0&&(_=d),v[_]=l[d]},m=function(v,l){for(var d in v)d!=="default"&&!l.hasOwnProperty(d)&&(l[d]=v[d])},p=function(v){var l=typeof Symbol=="function"&&Symbol.iterator,d=l&&v[l],_=0;if(d)return d.call(v);if(v&&typeof v.length=="number")return{next:function(){return v&&_>=v.length&&(v=void 0),{value:v&&v[_++],done:!v}}};throw new TypeError(l?"Object is not iterable.":"Symbol.iterator is not defined.")},b=function(v,l){var d=typeof Symbol=="function"&&v[Symbol.iterator];if(!d)return v;var _=d.call(v),w,E=[],k;try{for(;(l===void 0||l-- >0)&&!(w=_.next()).done;)E.push(w.value)}catch(W){k={error:W}}finally{try{w&&!w.done&&(d=_.return)&&d.call(_)}finally{if(k)throw k.error}}return E},x=function(){for(var v=[],l=0;l<arguments.length;l++)v=v.concat(b(arguments[l]));return v},R=function(){for(var v=0,l=0,d=arguments.length;l<d;l++)v+=arguments[l].length;for(var _=Array(v),w=0,l=0;l<d;l++)for(var E=arguments[l],k=0,W=E.length;k<W;k++,w++)_[w]=E[k];return _},C=function(v){return this instanceof C?(this.v=v,this):new C(v)},P=function(v,l,d){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var _=d.apply(v,l||[]),w,E=[];return w={},k("next"),k("throw"),k("return"),w[Symbol.asyncIterator]=function(){return this},w;function k(Z){_[Z]&&(w[Z]=function(le){return new Promise(function(ue,g){E.push([Z,le,ue,g])>1||W(Z,le)})})}function W(Z,le){try{I(_[Z](le))}catch(ue){ne(E[0][3],ue)}}function I(Z){Z.value instanceof C?Promise.resolve(Z.value.v).then(f,O):ne(E[0][2],Z)}function f(Z){W("next",Z)}function O(Z){W("throw",Z)}function ne(Z,le){Z(le),E.shift(),E.length&&W(E[0][0],E[0][1])}},T=function(v){var l,d;return l={},_("next"),_("throw",function(w){throw w}),_("return"),l[Symbol.iterator]=function(){return this},l;function _(w,E){l[w]=v[w]?function(k){return(d=!d)?{value:C(v[w](k)),done:w==="return"}:E?E(k):k}:E}},A=function(v){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var l=v[Symbol.asyncIterator],d;return l?l.call(v):(v=typeof p=="function"?p(v):v[Symbol.iterator](),d={},_("next"),_("throw"),_("return"),d[Symbol.asyncIterator]=function(){return this},d);function _(E){d[E]=v[E]&&function(k){return new Promise(function(W,I){k=v[E](k),w(W,I,k.done,k.value)})}}function w(E,k,W,I){Promise.resolve(I).then(function(f){E({value:f,done:W})},k)}},L=function(v,l){return Object.defineProperty?Object.defineProperty(v,"raw",{value:l}):v.raw=l,v},B=function(v){if(v&&v.__esModule)return v;var l={};if(v!=null)for(var d in v)Object.hasOwnProperty.call(v,d)&&(l[d]=v[d]);return l.default=v,l},$=function(v){return v&&v.__esModule?v:{default:v}},H=function(v,l){if(!l.has(v))throw new TypeError("attempted to get private field on non-instance");return l.get(v)},G=function(v,l,d){if(!l.has(v))throw new TypeError("attempted to set private field on non-instance");return l.set(v,d),d},V("__extends",t),V("__assign",n),V("__rest",r),V("__decorate",i),V("__param",o),V("__metadata",s),V("__awaiter",a),V("__generator",c),V("__exportStar",m),V("__createBinding",Q),V("__values",p),V("__read",b),V("__spread",x),V("__spreadArrays",R),V("__await",C),V("__asyncGenerator",P),V("__asyncDelegator",T),V("__asyncValues",A),V("__makeTemplateObject",L),V("__importStar",B),V("__importDefault",$),V("__classPrivateFieldGet",H),V("__classPrivateFieldSet",G)})})(Vy);var Oa={},Te={};Object.defineProperty(Te,"__esModule",{value:!0});Te.getLocalStorage=Te.getLocalStorageOrThrow=Te.getCrypto=Te.getCryptoOrThrow=Te.getLocation=Te.getLocationOrThrow=Te.getNavigator=Te.getNavigatorOrThrow=Te.getDocument=Te.getDocumentOrThrow=Te.getFromWindowOrThrow=Te.getFromWindow=void 0;function Wn(e){let t;return typeof window<"u"&&typeof window[e]<"u"&&(t=window[e]),t}Te.getFromWindow=Wn;function wr(e){const t=Wn(e);if(!t)throw new Error(`${e} is not defined in Window`);return t}Te.getFromWindowOrThrow=wr;function Ky(){return wr("document")}Te.getDocumentOrThrow=Ky;function Yy(){return Wn("document")}Te.getDocument=Yy;function Jy(){return wr("navigator")}Te.getNavigatorOrThrow=Jy;function Gy(){return Wn("navigator")}Te.getNavigator=Gy;function Qy(){return wr("location")}Te.getLocationOrThrow=Qy;function Zy(){return Wn("location")}Te.getLocation=Zy;function Xy(){return wr("crypto")}Te.getCryptoOrThrow=Xy;function e1(){return Wn("crypto")}Te.getCrypto=e1;function t1(){return wr("localStorage")}Te.getLocalStorageOrThrow=t1;function n1(){return Wn("localStorage")}Te.getLocalStorage=n1;Object.defineProperty(Oa,"__esModule",{value:!0});var Ch=Oa.getWindowMetadata=void 0;const Xc=Te;function r1(){let e,t;try{e=Xc.getDocumentOrThrow(),t=Xc.getLocationOrThrow()}catch{return null}function n(){const b=e.getElementsByTagName("link"),x=[];for(let R=0;R<b.length;R++){const C=b[R],P=C.getAttribute("rel");if(P&&P.toLowerCase().indexOf("icon")>-1){const T=C.getAttribute("href");if(T)if(T.toLowerCase().indexOf("https:")===-1&&T.toLowerCase().indexOf("http:")===-1&&T.indexOf("//")!==0){let A=t.protocol+"//"+t.host;if(T.indexOf("/")===0)A+=T;else{const L=t.pathname.split("/");L.pop();const B=L.join("/");A+=B+"/"+T}x.push(A)}else if(T.indexOf("//")===0){const A=t.protocol+T;x.push(A)}else x.push(T)}}return x}function r(...b){const x=e.getElementsByTagName("meta");for(let R=0;R<x.length;R++){const C=x[R],P=["itemprop","property","name"].map(T=>C.getAttribute(T)).filter(T=>T?b.includes(T):!1);if(P.length&&P){const T=C.getAttribute("content");if(T)return T}}return""}function i(){let b=r("name","og:site_name","og:title","twitter:title");return b||(b=e.title),b}function o(){return r("description","og:description","twitter:description","keywords")}const s=i(),a=o(),c=t.origin,m=n();return{description:a,url:c,icons:m,name:s}}Ch=Oa.getWindowMetadata=r1;var ze={};Object.defineProperty(ze,"__esModule",{value:!0});var Th=ze.getLocalStorage=Dh=ze.getLocalStorageOrThrow=Lh=ze.getCrypto=Bh=ze.getCryptoOrThrow=Fh=ze.getLocation=Ph=ze.getLocationOrThrow=Nh=ze.getNavigator=kh=ze.getNavigatorOrThrow=Oh=ze.getDocument=Rh=ze.getDocumentOrThrow=Ih=ze.getFromWindowOrThrow=Ah=ze.getFromWindow=void 0;function jn(e){let t;return typeof window<"u"&&typeof window[e]<"u"&&(t=window[e]),t}var Ah=ze.getFromWindow=jn;function br(e){const t=jn(e);if(!t)throw new Error(`${e} is not defined in Window`);return t}var Ih=ze.getFromWindowOrThrow=br;function i1(){return br("document")}var Rh=ze.getDocumentOrThrow=i1;function o1(){return jn("document")}var Oh=ze.getDocument=o1;function s1(){return br("navigator")}var kh=ze.getNavigatorOrThrow=s1;function a1(){return jn("navigator")}var Nh=ze.getNavigator=a1;function l1(){return br("location")}var Ph=ze.getLocationOrThrow=l1;function c1(){return jn("location")}var Fh=ze.getLocation=c1;function u1(){return br("crypto")}var Bh=ze.getCryptoOrThrow=u1;function f1(){return jn("crypto")}var Lh=ze.getCrypto=f1;function h1(){return br("localStorage")}var Dh=ze.getLocalStorageOrThrow=h1;function d1(){return jn("localStorage")}Th=ze.getLocalStorage=d1;var p1=globalThis&&globalThis.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,i++)r[i]=o[s];return r},m1=function(){function e(t,n,r){this.name=t,this.version=n,this.os=r,this.type="browser"}return e}(),g1=function(){function e(t){this.version=t,this.type="node",this.name="node",this.os=process.platform}return e}(),_1=function(){function e(t,n,r,i){this.name=t,this.version=n,this.os=r,this.bot=i,this.type="bot-device"}return e}(),v1=function(){function e(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null}return e}(),y1=function(){function e(){this.type="react-native",this.name="react-native",this.version=null,this.os=null}return e}(),w1=/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/,b1=/(nuhk|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,eu=3,E1=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FBAV\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["searchbot",w1]],tu=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function x1(e){return e?nu(e):typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"?new y1:typeof navigator<"u"?nu(navigator.userAgent):C1()}function M1(e){return e!==""&&E1.reduce(function(t,n){var r=n[0],i=n[1];if(t)return t;var o=i.exec(e);return!!o&&[r,o]},!1)}function nu(e){var t=M1(e);if(!t)return null;var n=t[0],r=t[1];if(n==="searchbot")return new v1;var i=r[1]&&r[1].split(/[._]/).slice(0,3);i?i.length<eu&&(i=p1(i,T1(eu-i.length))):i=[];var o=i.join("."),s=S1(e),a=b1.exec(e);return a&&a[1]?new _1(n,o,s,a[1]):new m1(n,o,s)}function S1(e){for(var t=0,n=tu.length;t<n;t++){var r=tu[t],i=r[0],o=r[1],s=o.exec(e);if(s)return i}return null}function C1(){var e=typeof process<"u"&&process.version;return e?new g1(process.version.slice(1)):null}function T1(e){for(var t=[],n=0;n<e;n++)t.push("0");return t}function ti(e){return x1(e)}function ni(){const e=ti();return e&&e.os?e.os:void 0}function ka(){const e=ni();return e?e.toLowerCase().includes("android"):!1}function Na(){const e=ni();return e?e.toLowerCase().includes("ios")||e.toLowerCase().includes("mac")&&navigator.maxTouchPoints>1:!1}function Pa(){return ni()?ka()||Na():!1}function Fa(){const e=ti();return e&&e.name?e.name.toLowerCase()==="node":!1}function Ba(){return!Fa()&&!!La()}const Uh=Ah,$h=Ih,Wh=Rh,jh=Oh,Hh=kh,La=Nh,qh=Ph,Da=Fh,zh=Bh,Vh=Lh,Kh=Dh,ri=Th;function Fi(){return Ch()}function A1(e){if(typeof e!="string")throw new Error(`Cannot safe json parse value of type ${typeof e}`);try{return JSON.parse(e)}catch{return e}}function I1(e){return typeof e=="string"?e:JSON.stringify(e)}const Ua=A1,$a=I1;function io(e,t){const n=$a(t),r=ri();r&&r.setItem(e,n)}function oo(e){let t=null,n=null;const r=ri();return r&&(n=r.getItem(e)),t=n&&Ua(n),t}function so(e){const t=ri();t&&t.removeItem(e)}const Kr="WALLETCONNECT_DEEPLINK_CHOICE";function Yh(e,t){const n=encodeURIComponent(e);return t.universalLink?`${t.universalLink}/wc?uri=${n}`:t.deepLink?`${t.deepLink}${t.deepLink.endsWith(":")?"//":"/"}wc?uri=${n}`:""}function Jh(e){const t=e.href.split("?")[0];io(Kr,Object.assign(Object.assign({},e),{href:t}))}function Wa(e,t){return e.filter(n=>n.name.toLowerCase().includes(t.toLowerCase()))[0]}function Gh(e,t){let n=e;return t&&(n=t.map(r=>Wa(e,r)).filter(Boolean)),n}const Qh="https://registry.walletconnect.com";function Zh(){return Qh+"/api/v2/wallets"}function Xh(){return Qh+"/api/v2/dapps"}function ja(e,t="mobile"){var n;return{name:e.name||"",shortName:e.metadata.shortName||"",color:e.metadata.colors.primary||"",logo:(n=e.image_url.sm)!==null&&n!==void 0?n:"",universalLink:e[t].universal||"",deepLink:e[t].native||""}}function ed(e,t="mobile"){return Object.values(e).filter(n=>!!n[t].universal||!!n[t].native).map(n=>ja(n,t))}const R1=Object.freeze(Object.defineProperty({__proto__:null,detectEnv:ti,detectOS:ni,formatIOSMobile:Yh,formatMobileRegistry:ed,formatMobileRegistryEntry:ja,getClientMeta:Fi,getCrypto:Vh,getCryptoOrThrow:zh,getDappRegistryUrl:Xh,getDocument:jh,getDocumentOrThrow:Wh,getFromWindow:Uh,getFromWindowOrThrow:$h,getLocal:oo,getLocalStorage:ri,getLocalStorageOrThrow:Kh,getLocation:Da,getLocationOrThrow:qh,getMobileLinkRegistry:Gh,getMobileRegistryEntry:Wa,getNavigator:La,getNavigatorOrThrow:Hh,getWalletRegistryUrl:Zh,isAndroid:ka,isBrowser:Ba,isIOS:Na,isMobile:Pa,isNode:Fa,mobileLinkChoiceKey:Kr,removeLocal:so,safeJsonParse:Ua,safeJsonStringify:$a,saveMobileLinkInfo:Jh,setLocal:io},Symbol.toStringTag,{value:"Module"})),td=["session_request","session_update","exchange_key","connect","disconnect","display_uri","modal_closed","transport_open","transport_close","transport_error"],Ha=["eth_sendTransaction","eth_signTransaction","eth_sign","eth_signTypedData","eth_signTypedData_v1","eth_signTypedData_v2","eth_signTypedData_v3","eth_signTypedData_v4","personal_sign","wallet_addEthereumChain","wallet_switchEthereumChain","wallet_getPermissions","wallet_requestPermissions","wallet_registerOnboarding","wallet_watchAsset","wallet_scanQRCode"],O1=["eth_accounts","eth_chainId","net_version"],nd={1:"mainnet",3:"ropsten",4:"rinkeby",5:"goerli",42:"kovan"};var Ts={},k1={get exports(){return Ts},set exports(e){Ts=e}};const N1={},P1=Object.freeze(Object.defineProperty({__proto__:null,default:N1},Symbol.toStringTag,{value:"Module"})),rd=ei(P1);(function(e){(function(t,n){function r(v,l){if(!v)throw new Error(l||"Assertion failed")}function i(v,l){v.super_=l;var d=function(){};d.prototype=l.prototype,v.prototype=new d,v.prototype.constructor=v}function o(v,l,d){if(o.isBN(v))return v;this.negative=0,this.words=null,this.length=0,this.red=null,v!==null&&((l==="le"||l==="be")&&(d=l,l=10),this._init(v||0,l||10,d||"be"))}typeof t=="object"?t.exports=o:n.BN=o,o.BN=o,o.wordSize=26;var s;try{s=rd.Buffer}catch{}o.isBN=function(l){return l instanceof o?!0:l!==null&&typeof l=="object"&&l.constructor.wordSize===o.wordSize&&Array.isArray(l.words)},o.max=function(l,d){return l.cmp(d)>0?l:d},o.min=function(l,d){return l.cmp(d)<0?l:d},o.prototype._init=function(l,d,_){if(typeof l=="number")return this._initNumber(l,d,_);if(typeof l=="object")return this._initArray(l,d,_);d==="hex"&&(d=16),r(d===(d|0)&&d>=2&&d<=36),l=l.toString().replace(/\s+/g,"");var w=0;l[0]==="-"&&w++,d===16?this._parseHex(l,w):this._parseBase(l,d,w),l[0]==="-"&&(this.negative=1),this.strip(),_==="le"&&this._initArray(this.toArray(),d,_)},o.prototype._initNumber=function(l,d,_){l<0&&(this.negative=1,l=-l),l<67108864?(this.words=[l&67108863],this.length=1):l<4503599627370496?(this.words=[l&67108863,l/67108864&67108863],this.length=2):(r(l<9007199254740992),this.words=[l&67108863,l/67108864&67108863,1],this.length=3),_==="le"&&this._initArray(this.toArray(),d,_)},o.prototype._initArray=function(l,d,_){if(r(typeof l.length=="number"),l.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(l.length/3),this.words=new Array(this.length);for(var w=0;w<this.length;w++)this.words[w]=0;var E,k,W=0;if(_==="be")for(w=l.length-1,E=0;w>=0;w-=3)k=l[w]|l[w-1]<<8|l[w-2]<<16,this.words[E]|=k<<W&67108863,this.words[E+1]=k>>>26-W&67108863,W+=24,W>=26&&(W-=26,E++);else if(_==="le")for(w=0,E=0;w<l.length;w+=3)k=l[w]|l[w+1]<<8|l[w+2]<<16,this.words[E]|=k<<W&67108863,this.words[E+1]=k>>>26-W&67108863,W+=24,W>=26&&(W-=26,E++);return this.strip()};function a(v,l,d){for(var _=0,w=Math.min(v.length,d),E=l;E<w;E++){var k=v.charCodeAt(E)-48;_<<=4,k>=49&&k<=54?_|=k-49+10:k>=17&&k<=22?_|=k-17+10:_|=k&15}return _}o.prototype._parseHex=function(l,d){this.length=Math.ceil((l.length-d)/6),this.words=new Array(this.length);for(var _=0;_<this.length;_++)this.words[_]=0;var w,E,k=0;for(_=l.length-6,w=0;_>=d;_-=6)E=a(l,_,_+6),this.words[w]|=E<<k&67108863,this.words[w+1]|=E>>>26-k&4194303,k+=24,k>=26&&(k-=26,w++);_+6!==d&&(E=a(l,d,_+6),this.words[w]|=E<<k&67108863,this.words[w+1]|=E>>>26-k&4194303),this.strip()};function c(v,l,d,_){for(var w=0,E=Math.min(v.length,d),k=l;k<E;k++){var W=v.charCodeAt(k)-48;w*=_,W>=49?w+=W-49+10:W>=17?w+=W-17+10:w+=W}return w}o.prototype._parseBase=function(l,d,_){this.words=[0],this.length=1;for(var w=0,E=1;E<=67108863;E*=d)w++;w--,E=E/d|0;for(var k=l.length-_,W=k%w,I=Math.min(k,k-W)+_,f=0,O=_;O<I;O+=w)f=c(l,O,O+w,d),this.imuln(E),this.words[0]+f<67108864?this.words[0]+=f:this._iaddn(f);if(W!==0){var ne=1;for(f=c(l,O,l.length,d),O=0;O<W;O++)ne*=d;this.imuln(ne),this.words[0]+f<67108864?this.words[0]+=f:this._iaddn(f)}},o.prototype.copy=function(l){l.words=new Array(this.length);for(var d=0;d<this.length;d++)l.words[d]=this.words[d];l.length=this.length,l.negative=this.negative,l.red=this.red},o.prototype.clone=function(){var l=new o(null);return this.copy(l),l},o.prototype._expand=function(l){for(;this.length<l;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},o.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var m=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],p=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],b=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];o.prototype.toString=function(l,d){l=l||10,d=d|0||1;var _;if(l===16||l==="hex"){_="";for(var w=0,E=0,k=0;k<this.length;k++){var W=this.words[k],I=((W<<w|E)&16777215).toString(16);E=W>>>24-w&16777215,E!==0||k!==this.length-1?_=m[6-I.length]+I+_:_=I+_,w+=2,w>=26&&(w-=26,k--)}for(E!==0&&(_=E.toString(16)+_);_.length%d!==0;)_="0"+_;return this.negative!==0&&(_="-"+_),_}if(l===(l|0)&&l>=2&&l<=36){var f=p[l],O=b[l];_="";var ne=this.clone();for(ne.negative=0;!ne.isZero();){var Z=ne.modn(O).toString(l);ne=ne.idivn(O),ne.isZero()?_=Z+_:_=m[f-Z.length]+Z+_}for(this.isZero()&&(_="0"+_);_.length%d!==0;)_="0"+_;return this.negative!==0&&(_="-"+_),_}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var l=this.words[0];return this.length===2?l+=this.words[1]*67108864:this.length===3&&this.words[2]===1?l+=4503599627370496+this.words[1]*67108864:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-l:l},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(l,d){return r(typeof s<"u"),this.toArrayLike(s,l,d)},o.prototype.toArray=function(l,d){return this.toArrayLike(Array,l,d)},o.prototype.toArrayLike=function(l,d,_){var w=this.byteLength(),E=_||Math.max(1,w);r(w<=E,"byte array longer than desired length"),r(E>0,"Requested array length <= 0"),this.strip();var k=d==="le",W=new l(E),I,f,O=this.clone();if(k){for(f=0;!O.isZero();f++)I=O.andln(255),O.iushrn(8),W[f]=I;for(;f<E;f++)W[f]=0}else{for(f=0;f<E-w;f++)W[f]=0;for(f=0;!O.isZero();f++)I=O.andln(255),O.iushrn(8),W[E-f-1]=I}return W},Math.clz32?o.prototype._countBits=function(l){return 32-Math.clz32(l)}:o.prototype._countBits=function(l){var d=l,_=0;return d>=4096&&(_+=13,d>>>=13),d>=64&&(_+=7,d>>>=7),d>=8&&(_+=4,d>>>=4),d>=2&&(_+=2,d>>>=2),_+d},o.prototype._zeroBits=function(l){if(l===0)return 26;var d=l,_=0;return d&8191||(_+=13,d>>>=13),d&127||(_+=7,d>>>=7),d&15||(_+=4,d>>>=4),d&3||(_+=2,d>>>=2),d&1||_++,_},o.prototype.bitLength=function(){var l=this.words[this.length-1],d=this._countBits(l);return(this.length-1)*26+d};function x(v){for(var l=new Array(v.bitLength()),d=0;d<l.length;d++){var _=d/26|0,w=d%26;l[d]=(v.words[_]&1<<w)>>>w}return l}o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var l=0,d=0;d<this.length;d++){var _=this._zeroBits(this.words[d]);if(l+=_,_!==26)break}return l},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(l){return this.negative!==0?this.abs().inotn(l).iaddn(1):this.clone()},o.prototype.fromTwos=function(l){return this.testn(l-1)?this.notn(l).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return this.negative!==0},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(l){for(;this.length<l.length;)this.words[this.length++]=0;for(var d=0;d<l.length;d++)this.words[d]=this.words[d]|l.words[d];return this.strip()},o.prototype.ior=function(l){return r((this.negative|l.negative)===0),this.iuor(l)},o.prototype.or=function(l){return this.length>l.length?this.clone().ior(l):l.clone().ior(this)},o.prototype.uor=function(l){return this.length>l.length?this.clone().iuor(l):l.clone().iuor(this)},o.prototype.iuand=function(l){var d;this.length>l.length?d=l:d=this;for(var _=0;_<d.length;_++)this.words[_]=this.words[_]&l.words[_];return this.length=d.length,this.strip()},o.prototype.iand=function(l){return r((this.negative|l.negative)===0),this.iuand(l)},o.prototype.and=function(l){return this.length>l.length?this.clone().iand(l):l.clone().iand(this)},o.prototype.uand=function(l){return this.length>l.length?this.clone().iuand(l):l.clone().iuand(this)},o.prototype.iuxor=function(l){var d,_;this.length>l.length?(d=this,_=l):(d=l,_=this);for(var w=0;w<_.length;w++)this.words[w]=d.words[w]^_.words[w];if(this!==d)for(;w<d.length;w++)this.words[w]=d.words[w];return this.length=d.length,this.strip()},o.prototype.ixor=function(l){return r((this.negative|l.negative)===0),this.iuxor(l)},o.prototype.xor=function(l){return this.length>l.length?this.clone().ixor(l):l.clone().ixor(this)},o.prototype.uxor=function(l){return this.length>l.length?this.clone().iuxor(l):l.clone().iuxor(this)},o.prototype.inotn=function(l){r(typeof l=="number"&&l>=0);var d=Math.ceil(l/26)|0,_=l%26;this._expand(d),_>0&&d--;for(var w=0;w<d;w++)this.words[w]=~this.words[w]&67108863;return _>0&&(this.words[w]=~this.words[w]&67108863>>26-_),this.strip()},o.prototype.notn=function(l){return this.clone().inotn(l)},o.prototype.setn=function(l,d){r(typeof l=="number"&&l>=0);var _=l/26|0,w=l%26;return this._expand(_+1),d?this.words[_]=this.words[_]|1<<w:this.words[_]=this.words[_]&~(1<<w),this.strip()},o.prototype.iadd=function(l){var d;if(this.negative!==0&&l.negative===0)return this.negative=0,d=this.isub(l),this.negative^=1,this._normSign();if(this.negative===0&&l.negative!==0)return l.negative=0,d=this.isub(l),l.negative=1,d._normSign();var _,w;this.length>l.length?(_=this,w=l):(_=l,w=this);for(var E=0,k=0;k<w.length;k++)d=(_.words[k]|0)+(w.words[k]|0)+E,this.words[k]=d&67108863,E=d>>>26;for(;E!==0&&k<_.length;k++)d=(_.words[k]|0)+E,this.words[k]=d&67108863,E=d>>>26;if(this.length=_.length,E!==0)this.words[this.length]=E,this.length++;else if(_!==this)for(;k<_.length;k++)this.words[k]=_.words[k];return this},o.prototype.add=function(l){var d;return l.negative!==0&&this.negative===0?(l.negative=0,d=this.sub(l),l.negative^=1,d):l.negative===0&&this.negative!==0?(this.negative=0,d=l.sub(this),this.negative=1,d):this.length>l.length?this.clone().iadd(l):l.clone().iadd(this)},o.prototype.isub=function(l){if(l.negative!==0){l.negative=0;var d=this.iadd(l);return l.negative=1,d._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(l),this.negative=1,this._normSign();var _=this.cmp(l);if(_===0)return this.negative=0,this.length=1,this.words[0]=0,this;var w,E;_>0?(w=this,E=l):(w=l,E=this);for(var k=0,W=0;W<E.length;W++)d=(w.words[W]|0)-(E.words[W]|0)+k,k=d>>26,this.words[W]=d&67108863;for(;k!==0&&W<w.length;W++)d=(w.words[W]|0)+k,k=d>>26,this.words[W]=d&67108863;if(k===0&&W<w.length&&w!==this)for(;W<w.length;W++)this.words[W]=w.words[W];return this.length=Math.max(this.length,W),w!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(l){return this.clone().isub(l)};function R(v,l,d){d.negative=l.negative^v.negative;var _=v.length+l.length|0;d.length=_,_=_-1|0;var w=v.words[0]|0,E=l.words[0]|0,k=w*E,W=k&67108863,I=k/67108864|0;d.words[0]=W;for(var f=1;f<_;f++){for(var O=I>>>26,ne=I&67108863,Z=Math.min(f,l.length-1),le=Math.max(0,f-v.length+1);le<=Z;le++){var ue=f-le|0;w=v.words[ue]|0,E=l.words[le]|0,k=w*E+ne,O+=k/67108864|0,ne=k&67108863}d.words[f]=ne|0,I=O|0}return I!==0?d.words[f]=I|0:d.length--,d.strip()}var C=function(l,d,_){var w=l.words,E=d.words,k=_.words,W=0,I,f,O,ne=w[0]|0,Z=ne&8191,le=ne>>>13,ue=w[1]|0,g=ue&8191,z=ue>>>13,K=w[2]|0,Y=K&8191,X=K>>>13,se=w[3]|0,te=se&8191,S=se>>>13,U=w[4]|0,q=U&8191,J=U>>>13,y=w[5]|0,u=y&8191,h=y>>>13,M=w[6]|0,N=M&8191,D=M>>>13,F=w[7]|0,j=F&8191,ee=F>>>13,re=w[8]|0,oe=re&8191,ae=re>>>13,de=w[9]|0,he=de&8191,ge=de>>>13,ut=E[0]|0,Ce=ut&8191,Me=ut>>>13,Pt=E[1]|0,ve=Pt&8191,ye=Pt>>>13,Ft=E[2]|0,Ie=Ft&8191,Re=Ft>>>13,Sn=E[3]|0,Oe=Sn&8191,ke=Sn>>>13,Cn=E[4]|0,Ne=Cn&8191,Pe=Cn>>>13,Tn=E[5]|0,Fe=Tn&8191,Be=Tn>>>13,An=E[6]|0,Le=An&8191,De=An>>>13,In=E[7]|0,Ue=In&8191,$e=In>>>13,Rn=E[8]|0,We=Rn&8191,je=Rn>>>13,On=E[9]|0,He=On&8191,qe=On>>>13;_.negative=l.negative^d.negative,_.length=19,I=Math.imul(Z,Ce),f=Math.imul(Z,Me),f=f+Math.imul(le,Ce)|0,O=Math.imul(le,Me);var Zt=(W+I|0)+((f&8191)<<13)|0;W=(O+(f>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,I=Math.imul(g,Ce),f=Math.imul(g,Me),f=f+Math.imul(z,Ce)|0,O=Math.imul(z,Me),I=I+Math.imul(Z,ve)|0,f=f+Math.imul(Z,ye)|0,f=f+Math.imul(le,ve)|0,O=O+Math.imul(le,ye)|0;var Xt=(W+I|0)+((f&8191)<<13)|0;W=(O+(f>>>13)|0)+(Xt>>>26)|0,Xt&=67108863,I=Math.imul(Y,Ce),f=Math.imul(Y,Me),f=f+Math.imul(X,Ce)|0,O=Math.imul(X,Me),I=I+Math.imul(g,ve)|0,f=f+Math.imul(g,ye)|0,f=f+Math.imul(z,ve)|0,O=O+Math.imul(z,ye)|0,I=I+Math.imul(Z,Ie)|0,f=f+Math.imul(Z,Re)|0,f=f+Math.imul(le,Ie)|0,O=O+Math.imul(le,Re)|0;var en=(W+I|0)+((f&8191)<<13)|0;W=(O+(f>>>13)|0)+(en>>>26)|0,en&=67108863,I=Math.imul(te,Ce),f=Math.imul(te,Me),f=f+Math.imul(S,Ce)|0,O=Math.imul(S,Me),I=I+Math.imul(Y,ve)|0,f=f+Math.imul(Y,ye)|0,f=f+Math.imul(X,ve)|0,O=O+Math.imul(X,ye)|0,I=I+Math.imul(g,Ie)|0,f=f+Math.imul(g,Re)|0,f=f+Math.imul(z,Ie)|0,O=O+Math.imul(z,Re)|0,I=I+Math.imul(Z,Oe)|0,f=f+Math.imul(Z,ke)|0,f=f+Math.imul(le,Oe)|0,O=O+Math.imul(le,ke)|0;var tn=(W+I|0)+((f&8191)<<13)|0;W=(O+(f>>>13)|0)+(tn>>>26)|0,tn&=67108863,I=Math.imul(q,Ce),f=Math.imul(q,Me),f=f+Math.imul(J,Ce)|0,O=Math.imul(J,Me),I=I+Math.imul(te,ve)|0,f=f+Math.imul(te,ye)|0,f=f+Math.imul(S,ve)|0,O=O+Math.imul(S,ye)|0,I=I+Math.imul(Y,Ie)|0,f=f+Math.imul(Y,Re)|0,f=f+Math.imul(X,Ie)|0,O=O+Math.imul(X,Re)|0,I=I+Math.imul(g,Oe)|0,f=f+Math.imul(g,ke)|0,f=f+Math.imul(z,Oe)|0,O=O+Math.imul(z,ke)|0,I=I+Math.imul(Z,Ne)|0,f=f+Math.imul(Z,Pe)|0,f=f+Math.imul(le,Ne)|0,O=O+Math.imul(le,Pe)|0;var nn=(W+I|0)+((f&8191)<<13)|0;W=(O+(f>>>13)|0)+(nn>>>26)|0,nn&=67108863,I=Math.imul(u,Ce),f=Math.imul(u,Me),f=f+Math.imul(h,Ce)|0,O=Math.imul(h,Me),I=I+Math.imul(q,ve)|0,f=f+Math.imul(q,ye)|0,f=f+Math.imul(J,ve)|0,O=O+Math.imul(J,ye)|0,I=I+Math.imul(te,Ie)|0,f=f+Math.imul(te,Re)|0,f=f+Math.imul(S,Ie)|0,O=O+Math.imul(S,Re)|0,I=I+Math.imul(Y,Oe)|0,f=f+Math.imul(Y,ke)|0,f=f+Math.imul(X,Oe)|0,O=O+Math.imul(X,ke)|0,I=I+Math.imul(g,Ne)|0,f=f+Math.imul(g,Pe)|0,f=f+Math.imul(z,Ne)|0,O=O+Math.imul(z,Pe)|0,I=I+Math.imul(Z,Fe)|0,f=f+Math.imul(Z,Be)|0,f=f+Math.imul(le,Fe)|0,O=O+Math.imul(le,Be)|0;var rn=(W+I|0)+((f&8191)<<13)|0;W=(O+(f>>>13)|0)+(rn>>>26)|0,rn&=67108863,I=Math.imul(N,Ce),f=Math.imul(N,Me),f=f+Math.imul(D,Ce)|0,O=Math.imul(D,Me),I=I+Math.imul(u,ve)|0,f=f+Math.imul(u,ye)|0,f=f+Math.imul(h,ve)|0,O=O+Math.imul(h,ye)|0,I=I+Math.imul(q,Ie)|0,f=f+Math.imul(q,Re)|0,f=f+Math.imul(J,Ie)|0,O=O+Math.imul(J,Re)|0,I=I+Math.imul(te,Oe)|0,f=f+Math.imul(te,ke)|0,f=f+Math.imul(S,Oe)|0,O=O+Math.imul(S,ke)|0,I=I+Math.imul(Y,Ne)|0,f=f+Math.imul(Y,Pe)|0,f=f+Math.imul(X,Ne)|0,O=O+Math.imul(X,Pe)|0,I=I+Math.imul(g,Fe)|0,f=f+Math.imul(g,Be)|0,f=f+Math.imul(z,Fe)|0,O=O+Math.imul(z,Be)|0,I=I+Math.imul(Z,Le)|0,f=f+Math.imul(Z,De)|0,f=f+Math.imul(le,Le)|0,O=O+Math.imul(le,De)|0;var on=(W+I|0)+((f&8191)<<13)|0;W=(O+(f>>>13)|0)+(on>>>26)|0,on&=67108863,I=Math.imul(j,Ce),f=Math.imul(j,Me),f=f+Math.imul(ee,Ce)|0,O=Math.imul(ee,Me),I=I+Math.imul(N,ve)|0,f=f+Math.imul(N,ye)|0,f=f+Math.imul(D,ve)|0,O=O+Math.imul(D,ye)|0,I=I+Math.imul(u,Ie)|0,f=f+Math.imul(u,Re)|0,f=f+Math.imul(h,Ie)|0,O=O+Math.imul(h,Re)|0,I=I+Math.imul(q,Oe)|0,f=f+Math.imul(q,ke)|0,f=f+Math.imul(J,Oe)|0,O=O+Math.imul(J,ke)|0,I=I+Math.imul(te,Ne)|0,f=f+Math.imul(te,Pe)|0,f=f+Math.imul(S,Ne)|0,O=O+Math.imul(S,Pe)|0,I=I+Math.imul(Y,Fe)|0,f=f+Math.imul(Y,Be)|0,f=f+Math.imul(X,Fe)|0,O=O+Math.imul(X,Be)|0,I=I+Math.imul(g,Le)|0,f=f+Math.imul(g,De)|0,f=f+Math.imul(z,Le)|0,O=O+Math.imul(z,De)|0,I=I+Math.imul(Z,Ue)|0,f=f+Math.imul(Z,$e)|0,f=f+Math.imul(le,Ue)|0,O=O+Math.imul(le,$e)|0;var sn=(W+I|0)+((f&8191)<<13)|0;W=(O+(f>>>13)|0)+(sn>>>26)|0,sn&=67108863,I=Math.imul(oe,Ce),f=Math.imul(oe,Me),f=f+Math.imul(ae,Ce)|0,O=Math.imul(ae,Me),I=I+Math.imul(j,ve)|0,f=f+Math.imul(j,ye)|0,f=f+Math.imul(ee,ve)|0,O=O+Math.imul(ee,ye)|0,I=I+Math.imul(N,Ie)|0,f=f+Math.imul(N,Re)|0,f=f+Math.imul(D,Ie)|0,O=O+Math.imul(D,Re)|0,I=I+Math.imul(u,Oe)|0,f=f+Math.imul(u,ke)|0,f=f+Math.imul(h,Oe)|0,O=O+Math.imul(h,ke)|0,I=I+Math.imul(q,Ne)|0,f=f+Math.imul(q,Pe)|0,f=f+Math.imul(J,Ne)|0,O=O+Math.imul(J,Pe)|0,I=I+Math.imul(te,Fe)|0,f=f+Math.imul(te,Be)|0,f=f+Math.imul(S,Fe)|0,O=O+Math.imul(S,Be)|0,I=I+Math.imul(Y,Le)|0,f=f+Math.imul(Y,De)|0,f=f+Math.imul(X,Le)|0,O=O+Math.imul(X,De)|0,I=I+Math.imul(g,Ue)|0,f=f+Math.imul(g,$e)|0,f=f+Math.imul(z,Ue)|0,O=O+Math.imul(z,$e)|0,I=I+Math.imul(Z,We)|0,f=f+Math.imul(Z,je)|0,f=f+Math.imul(le,We)|0,O=O+Math.imul(le,je)|0;var yo=(W+I|0)+((f&8191)<<13)|0;W=(O+(f>>>13)|0)+(yo>>>26)|0,yo&=67108863,I=Math.imul(he,Ce),f=Math.imul(he,Me),f=f+Math.imul(ge,Ce)|0,O=Math.imul(ge,Me),I=I+Math.imul(oe,ve)|0,f=f+Math.imul(oe,ye)|0,f=f+Math.imul(ae,ve)|0,O=O+Math.imul(ae,ye)|0,I=I+Math.imul(j,Ie)|0,f=f+Math.imul(j,Re)|0,f=f+Math.imul(ee,Ie)|0,O=O+Math.imul(ee,Re)|0,I=I+Math.imul(N,Oe)|0,f=f+Math.imul(N,ke)|0,f=f+Math.imul(D,Oe)|0,O=O+Math.imul(D,ke)|0,I=I+Math.imul(u,Ne)|0,f=f+Math.imul(u,Pe)|0,f=f+Math.imul(h,Ne)|0,O=O+Math.imul(h,Pe)|0,I=I+Math.imul(q,Fe)|0,f=f+Math.imul(q,Be)|0,f=f+Math.imul(J,Fe)|0,O=O+Math.imul(J,Be)|0,I=I+Math.imul(te,Le)|0,f=f+Math.imul(te,De)|0,f=f+Math.imul(S,Le)|0,O=O+Math.imul(S,De)|0,I=I+Math.imul(Y,Ue)|0,f=f+Math.imul(Y,$e)|0,f=f+Math.imul(X,Ue)|0,O=O+Math.imul(X,$e)|0,I=I+Math.imul(g,We)|0,f=f+Math.imul(g,je)|0,f=f+Math.imul(z,We)|0,O=O+Math.imul(z,je)|0,I=I+Math.imul(Z,He)|0,f=f+Math.imul(Z,qe)|0,f=f+Math.imul(le,He)|0,O=O+Math.imul(le,qe)|0;var wo=(W+I|0)+((f&8191)<<13)|0;W=(O+(f>>>13)|0)+(wo>>>26)|0,wo&=67108863,I=Math.imul(he,ve),f=Math.imul(he,ye),f=f+Math.imul(ge,ve)|0,O=Math.imul(ge,ye),I=I+Math.imul(oe,Ie)|0,f=f+Math.imul(oe,Re)|0,f=f+Math.imul(ae,Ie)|0,O=O+Math.imul(ae,Re)|0,I=I+Math.imul(j,Oe)|0,f=f+Math.imul(j,ke)|0,f=f+Math.imul(ee,Oe)|0,O=O+Math.imul(ee,ke)|0,I=I+Math.imul(N,Ne)|0,f=f+Math.imul(N,Pe)|0,f=f+Math.imul(D,Ne)|0,O=O+Math.imul(D,Pe)|0,I=I+Math.imul(u,Fe)|0,f=f+Math.imul(u,Be)|0,f=f+Math.imul(h,Fe)|0,O=O+Math.imul(h,Be)|0,I=I+Math.imul(q,Le)|0,f=f+Math.imul(q,De)|0,f=f+Math.imul(J,Le)|0,O=O+Math.imul(J,De)|0,I=I+Math.imul(te,Ue)|0,f=f+Math.imul(te,$e)|0,f=f+Math.imul(S,Ue)|0,O=O+Math.imul(S,$e)|0,I=I+Math.imul(Y,We)|0,f=f+Math.imul(Y,je)|0,f=f+Math.imul(X,We)|0,O=O+Math.imul(X,je)|0,I=I+Math.imul(g,He)|0,f=f+Math.imul(g,qe)|0,f=f+Math.imul(z,He)|0,O=O+Math.imul(z,qe)|0;var bo=(W+I|0)+((f&8191)<<13)|0;W=(O+(f>>>13)|0)+(bo>>>26)|0,bo&=67108863,I=Math.imul(he,Ie),f=Math.imul(he,Re),f=f+Math.imul(ge,Ie)|0,O=Math.imul(ge,Re),I=I+Math.imul(oe,Oe)|0,f=f+Math.imul(oe,ke)|0,f=f+Math.imul(ae,Oe)|0,O=O+Math.imul(ae,ke)|0,I=I+Math.imul(j,Ne)|0,f=f+Math.imul(j,Pe)|0,f=f+Math.imul(ee,Ne)|0,O=O+Math.imul(ee,Pe)|0,I=I+Math.imul(N,Fe)|0,f=f+Math.imul(N,Be)|0,f=f+Math.imul(D,Fe)|0,O=O+Math.imul(D,Be)|0,I=I+Math.imul(u,Le)|0,f=f+Math.imul(u,De)|0,f=f+Math.imul(h,Le)|0,O=O+Math.imul(h,De)|0,I=I+Math.imul(q,Ue)|0,f=f+Math.imul(q,$e)|0,f=f+Math.imul(J,Ue)|0,O=O+Math.imul(J,$e)|0,I=I+Math.imul(te,We)|0,f=f+Math.imul(te,je)|0,f=f+Math.imul(S,We)|0,O=O+Math.imul(S,je)|0,I=I+Math.imul(Y,He)|0,f=f+Math.imul(Y,qe)|0,f=f+Math.imul(X,He)|0,O=O+Math.imul(X,qe)|0;var Eo=(W+I|0)+((f&8191)<<13)|0;W=(O+(f>>>13)|0)+(Eo>>>26)|0,Eo&=67108863,I=Math.imul(he,Oe),f=Math.imul(he,ke),f=f+Math.imul(ge,Oe)|0,O=Math.imul(ge,ke),I=I+Math.imul(oe,Ne)|0,f=f+Math.imul(oe,Pe)|0,f=f+Math.imul(ae,Ne)|0,O=O+Math.imul(ae,Pe)|0,I=I+Math.imul(j,Fe)|0,f=f+Math.imul(j,Be)|0,f=f+Math.imul(ee,Fe)|0,O=O+Math.imul(ee,Be)|0,I=I+Math.imul(N,Le)|0,f=f+Math.imul(N,De)|0,f=f+Math.imul(D,Le)|0,O=O+Math.imul(D,De)|0,I=I+Math.imul(u,Ue)|0,f=f+Math.imul(u,$e)|0,f=f+Math.imul(h,Ue)|0,O=O+Math.imul(h,$e)|0,I=I+Math.imul(q,We)|0,f=f+Math.imul(q,je)|0,f=f+Math.imul(J,We)|0,O=O+Math.imul(J,je)|0,I=I+Math.imul(te,He)|0,f=f+Math.imul(te,qe)|0,f=f+Math.imul(S,He)|0,O=O+Math.imul(S,qe)|0;var xo=(W+I|0)+((f&8191)<<13)|0;W=(O+(f>>>13)|0)+(xo>>>26)|0,xo&=67108863,I=Math.imul(he,Ne),f=Math.imul(he,Pe),f=f+Math.imul(ge,Ne)|0,O=Math.imul(ge,Pe),I=I+Math.imul(oe,Fe)|0,f=f+Math.imul(oe,Be)|0,f=f+Math.imul(ae,Fe)|0,O=O+Math.imul(ae,Be)|0,I=I+Math.imul(j,Le)|0,f=f+Math.imul(j,De)|0,f=f+Math.imul(ee,Le)|0,O=O+Math.imul(ee,De)|0,I=I+Math.imul(N,Ue)|0,f=f+Math.imul(N,$e)|0,f=f+Math.imul(D,Ue)|0,O=O+Math.imul(D,$e)|0,I=I+Math.imul(u,We)|0,f=f+Math.imul(u,je)|0,f=f+Math.imul(h,We)|0,O=O+Math.imul(h,je)|0,I=I+Math.imul(q,He)|0,f=f+Math.imul(q,qe)|0,f=f+Math.imul(J,He)|0,O=O+Math.imul(J,qe)|0;var Mo=(W+I|0)+((f&8191)<<13)|0;W=(O+(f>>>13)|0)+(Mo>>>26)|0,Mo&=67108863,I=Math.imul(he,Fe),f=Math.imul(he,Be),f=f+Math.imul(ge,Fe)|0,O=Math.imul(ge,Be),I=I+Math.imul(oe,Le)|0,f=f+Math.imul(oe,De)|0,f=f+Math.imul(ae,Le)|0,O=O+Math.imul(ae,De)|0,I=I+Math.imul(j,Ue)|0,f=f+Math.imul(j,$e)|0,f=f+Math.imul(ee,Ue)|0,O=O+Math.imul(ee,$e)|0,I=I+Math.imul(N,We)|0,f=f+Math.imul(N,je)|0,f=f+Math.imul(D,We)|0,O=O+Math.imul(D,je)|0,I=I+Math.imul(u,He)|0,f=f+Math.imul(u,qe)|0,f=f+Math.imul(h,He)|0,O=O+Math.imul(h,qe)|0;var So=(W+I|0)+((f&8191)<<13)|0;W=(O+(f>>>13)|0)+(So>>>26)|0,So&=67108863,I=Math.imul(he,Le),f=Math.imul(he,De),f=f+Math.imul(ge,Le)|0,O=Math.imul(ge,De),I=I+Math.imul(oe,Ue)|0,f=f+Math.imul(oe,$e)|0,f=f+Math.imul(ae,Ue)|0,O=O+Math.imul(ae,$e)|0,I=I+Math.imul(j,We)|0,f=f+Math.imul(j,je)|0,f=f+Math.imul(ee,We)|0,O=O+Math.imul(ee,je)|0,I=I+Math.imul(N,He)|0,f=f+Math.imul(N,qe)|0,f=f+Math.imul(D,He)|0,O=O+Math.imul(D,qe)|0;var Co=(W+I|0)+((f&8191)<<13)|0;W=(O+(f>>>13)|0)+(Co>>>26)|0,Co&=67108863,I=Math.imul(he,Ue),f=Math.imul(he,$e),f=f+Math.imul(ge,Ue)|0,O=Math.imul(ge,$e),I=I+Math.imul(oe,We)|0,f=f+Math.imul(oe,je)|0,f=f+Math.imul(ae,We)|0,O=O+Math.imul(ae,je)|0,I=I+Math.imul(j,He)|0,f=f+Math.imul(j,qe)|0,f=f+Math.imul(ee,He)|0,O=O+Math.imul(ee,qe)|0;var To=(W+I|0)+((f&8191)<<13)|0;W=(O+(f>>>13)|0)+(To>>>26)|0,To&=67108863,I=Math.imul(he,We),f=Math.imul(he,je),f=f+Math.imul(ge,We)|0,O=Math.imul(ge,je),I=I+Math.imul(oe,He)|0,f=f+Math.imul(oe,qe)|0,f=f+Math.imul(ae,He)|0,O=O+Math.imul(ae,qe)|0;var Ao=(W+I|0)+((f&8191)<<13)|0;W=(O+(f>>>13)|0)+(Ao>>>26)|0,Ao&=67108863,I=Math.imul(he,He),f=Math.imul(he,qe),f=f+Math.imul(ge,He)|0,O=Math.imul(ge,qe);var Io=(W+I|0)+((f&8191)<<13)|0;return W=(O+(f>>>13)|0)+(Io>>>26)|0,Io&=67108863,k[0]=Zt,k[1]=Xt,k[2]=en,k[3]=tn,k[4]=nn,k[5]=rn,k[6]=on,k[7]=sn,k[8]=yo,k[9]=wo,k[10]=bo,k[11]=Eo,k[12]=xo,k[13]=Mo,k[14]=So,k[15]=Co,k[16]=To,k[17]=Ao,k[18]=Io,W!==0&&(k[19]=W,_.length++),_};Math.imul||(C=R);function P(v,l,d){d.negative=l.negative^v.negative,d.length=v.length+l.length;for(var _=0,w=0,E=0;E<d.length-1;E++){var k=w;w=0;for(var W=_&67108863,I=Math.min(E,l.length-1),f=Math.max(0,E-v.length+1);f<=I;f++){var O=E-f,ne=v.words[O]|0,Z=l.words[f]|0,le=ne*Z,ue=le&67108863;k=k+(le/67108864|0)|0,ue=ue+W|0,W=ue&67108863,k=k+(ue>>>26)|0,w+=k>>>26,k&=67108863}d.words[E]=W,_=k,k=w}return _!==0?d.words[E]=_:d.length--,d.strip()}function T(v,l,d){var _=new A;return _.mulp(v,l,d)}o.prototype.mulTo=function(l,d){var _,w=this.length+l.length;return this.length===10&&l.length===10?_=C(this,l,d):w<63?_=R(this,l,d):w<1024?_=P(this,l,d):_=T(this,l,d),_};function A(v,l){this.x=v,this.y=l}A.prototype.makeRBT=function(l){for(var d=new Array(l),_=o.prototype._countBits(l)-1,w=0;w<l;w++)d[w]=this.revBin(w,_,l);return d},A.prototype.revBin=function(l,d,_){if(l===0||l===_-1)return l;for(var w=0,E=0;E<d;E++)w|=(l&1)<<d-E-1,l>>=1;return w},A.prototype.permute=function(l,d,_,w,E,k){for(var W=0;W<k;W++)w[W]=d[l[W]],E[W]=_[l[W]]},A.prototype.transform=function(l,d,_,w,E,k){this.permute(k,l,d,_,w,E);for(var W=1;W<E;W<<=1)for(var I=W<<1,f=Math.cos(2*Math.PI/I),O=Math.sin(2*Math.PI/I),ne=0;ne<E;ne+=I)for(var Z=f,le=O,ue=0;ue<W;ue++){var g=_[ne+ue],z=w[ne+ue],K=_[ne+ue+W],Y=w[ne+ue+W],X=Z*K-le*Y;Y=Z*Y+le*K,K=X,_[ne+ue]=g+K,w[ne+ue]=z+Y,_[ne+ue+W]=g-K,w[ne+ue+W]=z-Y,ue!==I&&(X=f*Z-O*le,le=f*le+O*Z,Z=X)}},A.prototype.guessLen13b=function(l,d){var _=Math.max(d,l)|1,w=_&1,E=0;for(_=_/2|0;_;_=_>>>1)E++;return 1<<E+1+w},A.prototype.conjugate=function(l,d,_){if(!(_<=1))for(var w=0;w<_/2;w++){var E=l[w];l[w]=l[_-w-1],l[_-w-1]=E,E=d[w],d[w]=-d[_-w-1],d[_-w-1]=-E}},A.prototype.normalize13b=function(l,d){for(var _=0,w=0;w<d/2;w++){var E=Math.round(l[2*w+1]/d)*8192+Math.round(l[2*w]/d)+_;l[w]=E&67108863,E<67108864?_=0:_=E/67108864|0}return l},A.prototype.convert13b=function(l,d,_,w){for(var E=0,k=0;k<d;k++)E=E+(l[k]|0),_[2*k]=E&8191,E=E>>>13,_[2*k+1]=E&8191,E=E>>>13;for(k=2*d;k<w;++k)_[k]=0;r(E===0),r((E&-8192)===0)},A.prototype.stub=function(l){for(var d=new Array(l),_=0;_<l;_++)d[_]=0;return d},A.prototype.mulp=function(l,d,_){var w=2*this.guessLen13b(l.length,d.length),E=this.makeRBT(w),k=this.stub(w),W=new Array(w),I=new Array(w),f=new Array(w),O=new Array(w),ne=new Array(w),Z=new Array(w),le=_.words;le.length=w,this.convert13b(l.words,l.length,W,w),this.convert13b(d.words,d.length,O,w),this.transform(W,k,I,f,w,E),this.transform(O,k,ne,Z,w,E);for(var ue=0;ue<w;ue++){var g=I[ue]*ne[ue]-f[ue]*Z[ue];f[ue]=I[ue]*Z[ue]+f[ue]*ne[ue],I[ue]=g}return this.conjugate(I,f,w),this.transform(I,f,le,k,w,E),this.conjugate(le,k,w),this.normalize13b(le,w),_.negative=l.negative^d.negative,_.length=l.length+d.length,_.strip()},o.prototype.mul=function(l){var d=new o(null);return d.words=new Array(this.length+l.length),this.mulTo(l,d)},o.prototype.mulf=function(l){var d=new o(null);return d.words=new Array(this.length+l.length),T(this,l,d)},o.prototype.imul=function(l){return this.clone().mulTo(l,this)},o.prototype.imuln=function(l){r(typeof l=="number"),r(l<67108864);for(var d=0,_=0;_<this.length;_++){var w=(this.words[_]|0)*l,E=(w&67108863)+(d&67108863);d>>=26,d+=w/67108864|0,d+=E>>>26,this.words[_]=E&67108863}return d!==0&&(this.words[_]=d,this.length++),this},o.prototype.muln=function(l){return this.clone().imuln(l)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(l){var d=x(l);if(d.length===0)return new o(1);for(var _=this,w=0;w<d.length&&d[w]===0;w++,_=_.sqr());if(++w<d.length)for(var E=_.sqr();w<d.length;w++,E=E.sqr())d[w]!==0&&(_=_.mul(E));return _},o.prototype.iushln=function(l){r(typeof l=="number"&&l>=0);var d=l%26,_=(l-d)/26,w=67108863>>>26-d<<26-d,E;if(d!==0){var k=0;for(E=0;E<this.length;E++){var W=this.words[E]&w,I=(this.words[E]|0)-W<<d;this.words[E]=I|k,k=W>>>26-d}k&&(this.words[E]=k,this.length++)}if(_!==0){for(E=this.length-1;E>=0;E--)this.words[E+_]=this.words[E];for(E=0;E<_;E++)this.words[E]=0;this.length+=_}return this.strip()},o.prototype.ishln=function(l){return r(this.negative===0),this.iushln(l)},o.prototype.iushrn=function(l,d,_){r(typeof l=="number"&&l>=0);var w;d?w=(d-d%26)/26:w=0;var E=l%26,k=Math.min((l-E)/26,this.length),W=67108863^67108863>>>E<<E,I=_;if(w-=k,w=Math.max(0,w),I){for(var f=0;f<k;f++)I.words[f]=this.words[f];I.length=k}if(k!==0)if(this.length>k)for(this.length-=k,f=0;f<this.length;f++)this.words[f]=this.words[f+k];else this.words[0]=0,this.length=1;var O=0;for(f=this.length-1;f>=0&&(O!==0||f>=w);f--){var ne=this.words[f]|0;this.words[f]=O<<26-E|ne>>>E,O=ne&W}return I&&O!==0&&(I.words[I.length++]=O),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(l,d,_){return r(this.negative===0),this.iushrn(l,d,_)},o.prototype.shln=function(l){return this.clone().ishln(l)},o.prototype.ushln=function(l){return this.clone().iushln(l)},o.prototype.shrn=function(l){return this.clone().ishrn(l)},o.prototype.ushrn=function(l){return this.clone().iushrn(l)},o.prototype.testn=function(l){r(typeof l=="number"&&l>=0);var d=l%26,_=(l-d)/26,w=1<<d;if(this.length<=_)return!1;var E=this.words[_];return!!(E&w)},o.prototype.imaskn=function(l){r(typeof l=="number"&&l>=0);var d=l%26,_=(l-d)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=_)return this;if(d!==0&&_++,this.length=Math.min(_,this.length),d!==0){var w=67108863^67108863>>>d<<d;this.words[this.length-1]&=w}return this.strip()},o.prototype.maskn=function(l){return this.clone().imaskn(l)},o.prototype.iaddn=function(l){return r(typeof l=="number"),r(l<67108864),l<0?this.isubn(-l):this.negative!==0?this.length===1&&(this.words[0]|0)<l?(this.words[0]=l-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(l),this.negative=1,this):this._iaddn(l)},o.prototype._iaddn=function(l){this.words[0]+=l;for(var d=0;d<this.length&&this.words[d]>=67108864;d++)this.words[d]-=67108864,d===this.length-1?this.words[d+1]=1:this.words[d+1]++;return this.length=Math.max(this.length,d+1),this},o.prototype.isubn=function(l){if(r(typeof l=="number"),r(l<67108864),l<0)return this.iaddn(-l);if(this.negative!==0)return this.negative=0,this.iaddn(l),this.negative=1,this;if(this.words[0]-=l,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var d=0;d<this.length&&this.words[d]<0;d++)this.words[d]+=67108864,this.words[d+1]-=1;return this.strip()},o.prototype.addn=function(l){return this.clone().iaddn(l)},o.prototype.subn=function(l){return this.clone().isubn(l)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(l,d,_){var w=l.length+_,E;this._expand(w);var k,W=0;for(E=0;E<l.length;E++){k=(this.words[E+_]|0)+W;var I=(l.words[E]|0)*d;k-=I&67108863,W=(k>>26)-(I/67108864|0),this.words[E+_]=k&67108863}for(;E<this.length-_;E++)k=(this.words[E+_]|0)+W,W=k>>26,this.words[E+_]=k&67108863;if(W===0)return this.strip();for(r(W===-1),W=0,E=0;E<this.length;E++)k=-(this.words[E]|0)+W,W=k>>26,this.words[E]=k&67108863;return this.negative=1,this.strip()},o.prototype._wordDiv=function(l,d){var _=this.length-l.length,w=this.clone(),E=l,k=E.words[E.length-1]|0,W=this._countBits(k);_=26-W,_!==0&&(E=E.ushln(_),w.iushln(_),k=E.words[E.length-1]|0);var I=w.length-E.length,f;if(d!=="mod"){f=new o(null),f.length=I+1,f.words=new Array(f.length);for(var O=0;O<f.length;O++)f.words[O]=0}var ne=w.clone()._ishlnsubmul(E,1,I);ne.negative===0&&(w=ne,f&&(f.words[I]=1));for(var Z=I-1;Z>=0;Z--){var le=(w.words[E.length+Z]|0)*67108864+(w.words[E.length+Z-1]|0);for(le=Math.min(le/k|0,67108863),w._ishlnsubmul(E,le,Z);w.negative!==0;)le--,w.negative=0,w._ishlnsubmul(E,1,Z),w.isZero()||(w.negative^=1);f&&(f.words[Z]=le)}return f&&f.strip(),w.strip(),d!=="div"&&_!==0&&w.iushrn(_),{div:f||null,mod:w}},o.prototype.divmod=function(l,d,_){if(r(!l.isZero()),this.isZero())return{div:new o(0),mod:new o(0)};var w,E,k;return this.negative!==0&&l.negative===0?(k=this.neg().divmod(l,d),d!=="mod"&&(w=k.div.neg()),d!=="div"&&(E=k.mod.neg(),_&&E.negative!==0&&E.iadd(l)),{div:w,mod:E}):this.negative===0&&l.negative!==0?(k=this.divmod(l.neg(),d),d!=="mod"&&(w=k.div.neg()),{div:w,mod:k.mod}):this.negative&l.negative?(k=this.neg().divmod(l.neg(),d),d!=="div"&&(E=k.mod.neg(),_&&E.negative!==0&&E.isub(l)),{div:k.div,mod:E}):l.length>this.length||this.cmp(l)<0?{div:new o(0),mod:this}:l.length===1?d==="div"?{div:this.divn(l.words[0]),mod:null}:d==="mod"?{div:null,mod:new o(this.modn(l.words[0]))}:{div:this.divn(l.words[0]),mod:new o(this.modn(l.words[0]))}:this._wordDiv(l,d)},o.prototype.div=function(l){return this.divmod(l,"div",!1).div},o.prototype.mod=function(l){return this.divmod(l,"mod",!1).mod},o.prototype.umod=function(l){return this.divmod(l,"mod",!0).mod},o.prototype.divRound=function(l){var d=this.divmod(l);if(d.mod.isZero())return d.div;var _=d.div.negative!==0?d.mod.isub(l):d.mod,w=l.ushrn(1),E=l.andln(1),k=_.cmp(w);return k<0||E===1&&k===0?d.div:d.div.negative!==0?d.div.isubn(1):d.div.iaddn(1)},o.prototype.modn=function(l){r(l<=67108863);for(var d=(1<<26)%l,_=0,w=this.length-1;w>=0;w--)_=(d*_+(this.words[w]|0))%l;return _},o.prototype.idivn=function(l){r(l<=67108863);for(var d=0,_=this.length-1;_>=0;_--){var w=(this.words[_]|0)+d*67108864;this.words[_]=w/l|0,d=w%l}return this.strip()},o.prototype.divn=function(l){return this.clone().idivn(l)},o.prototype.egcd=function(l){r(l.negative===0),r(!l.isZero());var d=this,_=l.clone();d.negative!==0?d=d.umod(l):d=d.clone();for(var w=new o(1),E=new o(0),k=new o(0),W=new o(1),I=0;d.isEven()&&_.isEven();)d.iushrn(1),_.iushrn(1),++I;for(var f=_.clone(),O=d.clone();!d.isZero();){for(var ne=0,Z=1;!(d.words[0]&Z)&&ne<26;++ne,Z<<=1);if(ne>0)for(d.iushrn(ne);ne-- >0;)(w.isOdd()||E.isOdd())&&(w.iadd(f),E.isub(O)),w.iushrn(1),E.iushrn(1);for(var le=0,ue=1;!(_.words[0]&ue)&&le<26;++le,ue<<=1);if(le>0)for(_.iushrn(le);le-- >0;)(k.isOdd()||W.isOdd())&&(k.iadd(f),W.isub(O)),k.iushrn(1),W.iushrn(1);d.cmp(_)>=0?(d.isub(_),w.isub(k),E.isub(W)):(_.isub(d),k.isub(w),W.isub(E))}return{a:k,b:W,gcd:_.iushln(I)}},o.prototype._invmp=function(l){r(l.negative===0),r(!l.isZero());var d=this,_=l.clone();d.negative!==0?d=d.umod(l):d=d.clone();for(var w=new o(1),E=new o(0),k=_.clone();d.cmpn(1)>0&&_.cmpn(1)>0;){for(var W=0,I=1;!(d.words[0]&I)&&W<26;++W,I<<=1);if(W>0)for(d.iushrn(W);W-- >0;)w.isOdd()&&w.iadd(k),w.iushrn(1);for(var f=0,O=1;!(_.words[0]&O)&&f<26;++f,O<<=1);if(f>0)for(_.iushrn(f);f-- >0;)E.isOdd()&&E.iadd(k),E.iushrn(1);d.cmp(_)>=0?(d.isub(_),w.isub(E)):(_.isub(d),E.isub(w))}var ne;return d.cmpn(1)===0?ne=w:ne=E,ne.cmpn(0)<0&&ne.iadd(l),ne},o.prototype.gcd=function(l){if(this.isZero())return l.abs();if(l.isZero())return this.abs();var d=this.clone(),_=l.clone();d.negative=0,_.negative=0;for(var w=0;d.isEven()&&_.isEven();w++)d.iushrn(1),_.iushrn(1);do{for(;d.isEven();)d.iushrn(1);for(;_.isEven();)_.iushrn(1);var E=d.cmp(_);if(E<0){var k=d;d=_,_=k}else if(E===0||_.cmpn(1)===0)break;d.isub(_)}while(!0);return _.iushln(w)},o.prototype.invm=function(l){return this.egcd(l).a.umod(l)},o.prototype.isEven=function(){return(this.words[0]&1)===0},o.prototype.isOdd=function(){return(this.words[0]&1)===1},o.prototype.andln=function(l){return this.words[0]&l},o.prototype.bincn=function(l){r(typeof l=="number");var d=l%26,_=(l-d)/26,w=1<<d;if(this.length<=_)return this._expand(_+1),this.words[_]|=w,this;for(var E=w,k=_;E!==0&&k<this.length;k++){var W=this.words[k]|0;W+=E,E=W>>>26,W&=67108863,this.words[k]=W}return E!==0&&(this.words[k]=E,this.length++),this},o.prototype.isZero=function(){return this.length===1&&this.words[0]===0},o.prototype.cmpn=function(l){var d=l<0;if(this.negative!==0&&!d)return-1;if(this.negative===0&&d)return 1;this.strip();var _;if(this.length>1)_=1;else{d&&(l=-l),r(l<=67108863,"Number is too big");var w=this.words[0]|0;_=w===l?0:w<l?-1:1}return this.negative!==0?-_|0:_},o.prototype.cmp=function(l){if(this.negative!==0&&l.negative===0)return-1;if(this.negative===0&&l.negative!==0)return 1;var d=this.ucmp(l);return this.negative!==0?-d|0:d},o.prototype.ucmp=function(l){if(this.length>l.length)return 1;if(this.length<l.length)return-1;for(var d=0,_=this.length-1;_>=0;_--){var w=this.words[_]|0,E=l.words[_]|0;if(w!==E){w<E?d=-1:w>E&&(d=1);break}}return d},o.prototype.gtn=function(l){return this.cmpn(l)===1},o.prototype.gt=function(l){return this.cmp(l)===1},o.prototype.gten=function(l){return this.cmpn(l)>=0},o.prototype.gte=function(l){return this.cmp(l)>=0},o.prototype.ltn=function(l){return this.cmpn(l)===-1},o.prototype.lt=function(l){return this.cmp(l)===-1},o.prototype.lten=function(l){return this.cmpn(l)<=0},o.prototype.lte=function(l){return this.cmp(l)<=0},o.prototype.eqn=function(l){return this.cmpn(l)===0},o.prototype.eq=function(l){return this.cmp(l)===0},o.red=function(l){return new V(l)},o.prototype.toRed=function(l){return r(!this.red,"Already a number in reduction context"),r(this.negative===0,"red works only with positives"),l.convertTo(this)._forceRed(l)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(l){return this.red=l,this},o.prototype.forceRed=function(l){return r(!this.red,"Already a number in reduction context"),this._forceRed(l)},o.prototype.redAdd=function(l){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,l)},o.prototype.redIAdd=function(l){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,l)},o.prototype.redSub=function(l){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,l)},o.prototype.redISub=function(l){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,l)},o.prototype.redShl=function(l){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,l)},o.prototype.redMul=function(l){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,l),this.red.mul(this,l)},o.prototype.redIMul=function(l){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,l),this.red.imul(this,l)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(l){return r(this.red&&!l.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,l)};var L={k256:null,p224:null,p192:null,p25519:null};function B(v,l){this.name=v,this.p=new o(l,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}B.prototype._tmp=function(){var l=new o(null);return l.words=new Array(Math.ceil(this.n/13)),l},B.prototype.ireduce=function(l){var d=l,_;do this.split(d,this.tmp),d=this.imulK(d),d=d.iadd(this.tmp),_=d.bitLength();while(_>this.n);var w=_<this.n?-1:d.ucmp(this.p);return w===0?(d.words[0]=0,d.length=1):w>0?d.isub(this.p):d.strip(),d},B.prototype.split=function(l,d){l.iushrn(this.n,0,d)},B.prototype.imulK=function(l){return l.imul(this.k)};function $(){B.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i($,B),$.prototype.split=function(l,d){for(var _=4194303,w=Math.min(l.length,9),E=0;E<w;E++)d.words[E]=l.words[E];if(d.length=w,l.length<=9){l.words[0]=0,l.length=1;return}var k=l.words[9];for(d.words[d.length++]=k&_,E=10;E<l.length;E++){var W=l.words[E]|0;l.words[E-10]=(W&_)<<4|k>>>22,k=W}k>>>=22,l.words[E-10]=k,k===0&&l.length>10?l.length-=10:l.length-=9},$.prototype.imulK=function(l){l.words[l.length]=0,l.words[l.length+1]=0,l.length+=2;for(var d=0,_=0;_<l.length;_++){var w=l.words[_]|0;d+=w*977,l.words[_]=d&67108863,d=w*64+(d/67108864|0)}return l.words[l.length-1]===0&&(l.length--,l.words[l.length-1]===0&&l.length--),l};function H(){B.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}i(H,B);function G(){B.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}i(G,B);function Q(){B.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}i(Q,B),Q.prototype.imulK=function(l){for(var d=0,_=0;_<l.length;_++){var w=(l.words[_]|0)*19+d,E=w&67108863;w>>>=26,l.words[_]=E,d=w}return d!==0&&(l.words[l.length++]=d),l},o._prime=function(l){if(L[l])return L[l];var d;if(l==="k256")d=new $;else if(l==="p224")d=new H;else if(l==="p192")d=new G;else if(l==="p25519")d=new Q;else throw new Error("Unknown prime "+l);return L[l]=d,d};function V(v){if(typeof v=="string"){var l=o._prime(v);this.m=l.p,this.prime=l}else r(v.gtn(1),"modulus must be greater than 1"),this.m=v,this.prime=null}V.prototype._verify1=function(l){r(l.negative===0,"red works only with positives"),r(l.red,"red works only with red numbers")},V.prototype._verify2=function(l,d){r((l.negative|d.negative)===0,"red works only with positives"),r(l.red&&l.red===d.red,"red works only with red numbers")},V.prototype.imod=function(l){return this.prime?this.prime.ireduce(l)._forceRed(this):l.umod(this.m)._forceRed(this)},V.prototype.neg=function(l){return l.isZero()?l.clone():this.m.sub(l)._forceRed(this)},V.prototype.add=function(l,d){this._verify2(l,d);var _=l.add(d);return _.cmp(this.m)>=0&&_.isub(this.m),_._forceRed(this)},V.prototype.iadd=function(l,d){this._verify2(l,d);var _=l.iadd(d);return _.cmp(this.m)>=0&&_.isub(this.m),_},V.prototype.sub=function(l,d){this._verify2(l,d);var _=l.sub(d);return _.cmpn(0)<0&&_.iadd(this.m),_._forceRed(this)},V.prototype.isub=function(l,d){this._verify2(l,d);var _=l.isub(d);return _.cmpn(0)<0&&_.iadd(this.m),_},V.prototype.shl=function(l,d){return this._verify1(l),this.imod(l.ushln(d))},V.prototype.imul=function(l,d){return this._verify2(l,d),this.imod(l.imul(d))},V.prototype.mul=function(l,d){return this._verify2(l,d),this.imod(l.mul(d))},V.prototype.isqr=function(l){return this.imul(l,l.clone())},V.prototype.sqr=function(l){return this.mul(l,l)},V.prototype.sqrt=function(l){if(l.isZero())return l.clone();var d=this.m.andln(3);if(r(d%2===1),d===3){var _=this.m.add(new o(1)).iushrn(2);return this.pow(l,_)}for(var w=this.m.subn(1),E=0;!w.isZero()&&w.andln(1)===0;)E++,w.iushrn(1);r(!w.isZero());var k=new o(1).toRed(this),W=k.redNeg(),I=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new o(2*f*f).toRed(this);this.pow(f,I).cmp(W)!==0;)f.redIAdd(W);for(var O=this.pow(f,w),ne=this.pow(l,w.addn(1).iushrn(1)),Z=this.pow(l,w),le=E;Z.cmp(k)!==0;){for(var ue=Z,g=0;ue.cmp(k)!==0;g++)ue=ue.redSqr();r(g<le);var z=this.pow(O,new o(1).iushln(le-g-1));ne=ne.redMul(z),O=z.redSqr(),Z=Z.redMul(O),le=g}return ne},V.prototype.invm=function(l){var d=l._invmp(this.m);return d.negative!==0?(d.negative=0,this.imod(d).redNeg()):this.imod(d)},V.prototype.pow=function(l,d){if(d.isZero())return new o(1).toRed(this);if(d.cmpn(1)===0)return l.clone();var _=4,w=new Array(1<<_);w[0]=new o(1).toRed(this),w[1]=l;for(var E=2;E<w.length;E++)w[E]=this.mul(w[E-1],l);var k=w[0],W=0,I=0,f=d.bitLength()%26;for(f===0&&(f=26),E=d.length-1;E>=0;E--){for(var O=d.words[E],ne=f-1;ne>=0;ne--){var Z=O>>ne&1;if(k!==w[0]&&(k=this.sqr(k)),Z===0&&W===0){I=0;continue}W<<=1,W|=Z,I++,!(I!==_&&(E!==0||ne!==0))&&(k=this.mul(k,w[W]),I=0,W=0)}f=26}return k},V.prototype.convertTo=function(l){var d=l.umod(this.m);return d===l?d.clone():d},V.prototype.convertFrom=function(l){var d=l.clone();return d.red=null,d},o.mont=function(l){return new ie(l)};function ie(v){V.call(this,v),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}i(ie,V),ie.prototype.convertTo=function(l){return this.imod(l.ushln(this.shift))},ie.prototype.convertFrom=function(l){var d=this.imod(l.mul(this.rinv));return d.red=null,d},ie.prototype.imul=function(l,d){if(l.isZero()||d.isZero())return l.words[0]=0,l.length=1,l;var _=l.imul(d),w=_.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),E=_.isub(w).iushrn(this.shift),k=E;return E.cmp(this.m)>=0?k=E.isub(this.m):E.cmpn(0)<0&&(k=E.iadd(this.m)),k._forceRed(this)},ie.prototype.mul=function(l,d){if(l.isZero()||d.isZero())return new o(0)._forceRed(this);var _=l.mul(d),w=_.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),E=_.isub(w).iushrn(this.shift),k=E;return E.cmp(this.m)>=0?k=E.isub(this.m):E.cmpn(0)<0&&(k=E.iadd(this.m)),k._forceRed(this)},ie.prototype.invm=function(l){var d=this.imod(l._invmp(this.m).mul(this.r2));return d._forceRed(this)}})(e,At)})(k1);const ao=Ts;var id=qa;qa.strict=od;qa.loose=sd;var F1=Object.prototype.toString,B1={"[object Int8Array]":!0,"[object Int16Array]":!0,"[object Int32Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Uint16Array]":!0,"[object Uint32Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0};function qa(e){return od(e)||sd(e)}function od(e){return e instanceof Int8Array||e instanceof Int16Array||e instanceof Int32Array||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Uint16Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array}function sd(e){return B1[F1.call(e)]}var L1=id.strict,D1=function(t){if(L1(t)){var n=Buffer.from(t.buffer);return t.byteLength!==t.buffer.byteLength&&(n=n.slice(t.byteOffset,t.byteOffset+t.byteLength)),n}else return Buffer.from(t)};const za="hex",Va="utf8",U1="binary",$1="buffer",W1="array",j1="typed-array",H1="array-buffer",lo="0";function Ka(e){return new Uint8Array(e)}function Ya(e,t=!1){const n=e.toString(za);return t?Hn(n):n}function Ja(e){return e.toString(Va)}function ad(e){return e.readUIntBE(0,e.length)}function ii(e){return D1(e)}function ld(e,t=!1){return Ya(ii(e),t)}function q1(e){return Ja(ii(e))}function z1(e){return ad(ii(e))}function Ga(e){return Buffer.from(wn(e),za)}function cd(e){return Ka(Ga(e))}function V1(e){return Ja(Ga(e))}function Qa(e){return Buffer.from(e,Va)}function K1(e){return Ka(Qa(e))}function Y1(e,t=!1){return Ya(Qa(e),t)}function J1(e){return Q1(ud(e))}function G1(e){return fd(ud(e))}function ud(e){const t=(e>>>0).toString(2);return Xa(t)}function Q1(e){return ii(fd(e))}function fd(e){return new Uint8Array(rw(e).map(t=>parseInt(t,2)))}function Z1(e){return!(typeof e!="string"||!new RegExp(/^[01]+$/).test(e)||e.length%8!==0)}function hd(e,t){return!(typeof e!="string"||!e.match(/^0x[0-9A-Fa-f]*$/)||t&&e.length!==2+2*t)}function co(e){return Buffer.isBuffer(e)}function Za(e){return id.strict(e)&&!co(e)}function dd(e){return!Za(e)&&!co(e)&&typeof e.byteLength<"u"}function X1(e){return co(e)?$1:Za(e)?j1:dd(e)?H1:Array.isArray(e)?W1:typeof e}function ew(e){return Z1(e)?U1:hd(e)?za:Va}function tw(...e){return Buffer.concat(e)}function nw(e,t=8){const n=e%t;return n?(e-n)/t*t+t:e}function rw(e,t=8){const n=Xa(e).match(new RegExp(`.{${t}}`,"gi"));return Array.from(n||[])}function Xa(e,t=8,n=lo){return iw(e,nw(e.length,t),n)}function iw(e,t,n=lo){return sw(e,t,!0,n)}function wn(e){return e.replace(/^0x/,"")}function Hn(e){return e.startsWith("0x")?e:`0x${e}`}function pd(e){return e=wn(e),e=Xa(e,2),e&&(e=Hn(e)),e}function ow(e){const t=e.startsWith("0x");return e=wn(e),e=e.startsWith(lo)?e.substring(1):e,t?Hn(e):e}function sw(e,t,n,r=lo){const i=t-e.length;let o=e;if(i>0){const s=r.repeat(i);o=n?s+e:e+s}return o}function aw(e){return ii(new Uint8Array(e))}function lw(e){return q1(new Uint8Array(e))}function md(e,t){return ld(new Uint8Array(e),!t)}function cw(e){return z1(new Uint8Array(e))}function uw(...e){return cd(e.map(t=>ld(new Uint8Array(t))).join("")).buffer}function fw(e){return Ka(e).buffer}function hw(e){return Ja(e)}function dw(e,t){return Ya(e,!t)}function pw(e){return ad(e)}function mw(...e){return tw(...e)}function gw(e){return K1(e).buffer}function gd(e){return Qa(e)}function _d(e,t){return Y1(e,!t)}function _w(e){return new ao(e,10).toNumber()}function vw(e){return Ga(e)}function vd(e){return cd(e).buffer}function yw(e){return V1(e)}function ww(e){return new ao(wn(e),"hex").toNumber()}function bw(e){return J1(e)}function Ew(e){return G1(e).buffer}function xw(e){return new ao(e).toString()}function el(e,t){const n=wn(pd(new ao(e).toString(16)));return t?n:Hn(n)}var As={},Mw={get exports(){return As},set exports(e){As=e}};/**
* [js-sha3]{@link https://github.com/emn178/js-sha3}
*
* @version 0.8.0
* @author Chen, Yi-Cyuan [emn178@gmail.com]
* @copyright Chen, Yi-Cyuan 2015-2018
* @license MIT
*/(function(e){(function(){var t="input is invalid type",n="finalize already called",r=typeof window=="object",i=r?window:{};i.JS_SHA3_NO_WINDOW&&(r=!1);var o=!r&&typeof self=="object",s=!i.JS_SHA3_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;s?i=At:o&&(i=self);var a=!i.JS_SHA3_NO_COMMON_JS&&!0&&e.exports,c=!i.JS_SHA3_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",m="0123456789abcdef".split(""),p=[31,7936,2031616,520093696],b=[4,1024,262144,67108864],x=[1,256,65536,16777216],R=[6,1536,393216,100663296],C=[0,8,16,24],P=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],T=[224,256,384,512],A=[128,256],L=["hex","buffer","arrayBuffer","array","digest"],B={128:168,256:136};(i.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(g){return Object.prototype.toString.call(g)==="[object Array]"}),c&&(i.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(g){return typeof g=="object"&&g.buffer&&g.buffer.constructor===ArrayBuffer});for(var $=function(g,z,K){return function(Y){return new Z(g,z,g).update(Y)[K]()}},H=function(g,z,K){return function(Y,X){return new Z(g,z,X).update(Y)[K]()}},G=function(g,z,K){return function(Y,X,se,te){return w["cshake"+g].update(Y,X,se,te)[K]()}},Q=function(g,z,K){return function(Y,X,se,te){return w["kmac"+g].update(Y,X,se,te)[K]()}},V=function(g,z,K,Y){for(var X=0;X<L.length;++X){var se=L[X];g[se]=z(K,Y,se)}return g},ie=function(g,z){var K=$(g,z,"hex");return K.create=function(){return new Z(g,z,g)},K.update=function(Y){return K.create().update(Y)},V(K,$,g,z)},v=function(g,z){var K=H(g,z,"hex");return K.create=function(Y){return new Z(g,z,Y)},K.update=function(Y,X){return K.create(X).update(Y)},V(K,H,g,z)},l=function(g,z){var K=B[g],Y=G(g,z,"hex");return Y.create=function(X,se,te){return!se&&!te?w["shake"+g].create(X):new Z(g,z,X).bytepad([se,te],K)},Y.update=function(X,se,te,S){return Y.create(se,te,S).update(X)},V(Y,G,g,z)},d=function(g,z){var K=B[g],Y=Q(g,z,"hex");return Y.create=function(X,se,te){return new le(g,z,se).bytepad(["KMAC",te],K).bytepad([X],K)},Y.update=function(X,se,te,S){return Y.create(X,te,S).update(se)},V(Y,Q,g,z)},_=[{name:"keccak",padding:x,bits:T,createMethod:ie},{name:"sha3",padding:R,bits:T,createMethod:ie},{name:"shake",padding:p,bits:A,createMethod:v},{name:"cshake",padding:b,bits:A,createMethod:l},{name:"kmac",padding:b,bits:A,createMethod:d}],w={},E=[],k=0;k<_.length;++k)for(var W=_[k],I=W.bits,f=0;f<I.length;++f){var O=W.name+"_"+I[f];if(E.push(O),w[O]=W.createMethod(I[f],W.padding),W.name!=="sha3"){var ne=W.name+I[f];E.push(ne),w[ne]=w[O]}}function Z(g,z,K){this.blocks=[],this.s=[],this.padding=z,this.outputBits=K,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(g<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=K>>5,this.extraBytes=(K&31)>>3;for(var Y=0;Y<50;++Y)this.s[Y]=0}Z.prototype.update=function(g){if(this.finalized)throw new Error(n);var z,K=typeof g;if(K!=="string"){if(K==="object"){if(g===null)throw new Error(t);if(c&&g.constructor===ArrayBuffer)g=new Uint8Array(g);else if(!Array.isArray(g)&&(!c||!ArrayBuffer.isView(g)))throw new Error(t)}else throw new Error(t);z=!0}for(var Y=this.blocks,X=this.byteCount,se=g.length,te=this.blockCount,S=0,U=this.s,q,J;S<se;){if(this.reset)for(this.reset=!1,Y[0]=this.block,q=1;q<te+1;++q)Y[q]=0;if(z)for(q=this.start;S<se&&q<X;++S)Y[q>>2]|=g[S]<<C[q++&3];else for(q=this.start;S<se&&q<X;++S)J=g.charCodeAt(S),J<128?Y[q>>2]|=J<<C[q++&3]:J<2048?(Y[q>>2]|=(192|J>>6)<<C[q++&3],Y[q>>2]|=(128|J&63)<<C[q++&3]):J<55296||J>=57344?(Y[q>>2]|=(224|J>>12)<<C[q++&3],Y[q>>2]|=(128|J>>6&63)<<C[q++&3],Y[q>>2]|=(128|J&63)<<C[q++&3]):(J=65536+((J&1023)<<10|g.charCodeAt(++S)&1023),Y[q>>2]|=(240|J>>18)<<C[q++&3],Y[q>>2]|=(128|J>>12&63)<<C[q++&3],Y[q>>2]|=(128|J>>6&63)<<C[q++&3],Y[q>>2]|=(128|J&63)<<C[q++&3]);if(this.lastByteIndex=q,q>=X){for(this.start=q-X,this.block=Y[te],q=0;q<te;++q)U[q]^=Y[q];ue(U),this.reset=!0}else this.start=q}return this},Z.prototype.encode=function(g,z){var K=g&255,Y=1,X=[K];for(g=g>>8,K=g&255;K>0;)X.unshift(K),g=g>>8,K=g&255,++Y;return z?X.push(Y):X.unshift(Y),this.update(X),X.length},Z.prototype.encodeString=function(g){var z,K=typeof g;if(K!=="string"){if(K==="object"){if(g===null)throw new Error(t);if(c&&g.constructor===ArrayBuffer)g=new Uint8Array(g);else if(!Array.isArray(g)&&(!c||!ArrayBuffer.isView(g)))throw new Error(t)}else throw new Error(t);z=!0}var Y=0,X=g.length;if(z)Y=X;else for(var se=0;se<g.length;++se){var te=g.charCodeAt(se);te<128?Y+=1:te<2048?Y+=2:te<55296||te>=57344?Y+=3:(te=65536+((te&1023)<<10|g.charCodeAt(++se)&1023),Y+=4)}return Y+=this.encode(Y*8),this.update(g),Y},Z.prototype.bytepad=function(g,z){for(var K=this.encode(z),Y=0;Y<g.length;++Y)K+=this.encodeString(g[Y]);var X=z-K%z,se=[];return se.length=X,this.update(se),this},Z.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var g=this.blocks,z=this.lastByteIndex,K=this.blockCount,Y=this.s;if(g[z>>2]|=this.padding[z&3],this.lastByteIndex===this.byteCount)for(g[0]=g[K],z=1;z<K+1;++z)g[z]=0;for(g[K-1]|=2147483648,z=0;z<K;++z)Y[z]^=g[z];ue(Y)}},Z.prototype.toString=Z.prototype.hex=function(){this.finalize();for(var g=this.blockCount,z=this.s,K=this.outputBlocks,Y=this.extraBytes,X=0,se=0,te="",S;se<K;){for(X=0;X<g&&se<K;++X,++se)S=z[X],te+=m[S>>4&15]+m[S&15]+m[S>>12&15]+m[S>>8&15]+m[S>>20&15]+m[S>>16&15]+m[S>>28&15]+m[S>>24&15];se%g===0&&(ue(z),X=0)}return Y&&(S=z[X],te+=m[S>>4&15]+m[S&15],Y>1&&(te+=m[S>>12&15]+m[S>>8&15]),Y>2&&(te+=m[S>>20&15]+m[S>>16&15])),te},Z.prototype.arrayBuffer=function(){this.finalize();var g=this.blockCount,z=this.s,K=this.outputBlocks,Y=this.extraBytes,X=0,se=0,te=this.outputBits>>3,S;Y?S=new ArrayBuffer(K+1<<2):S=new ArrayBuffer(te);for(var U=new Uint32Array(S);se<K;){for(X=0;X<g&&se<K;++X,++se)U[se]=z[X];se%g===0&&ue(z)}return Y&&(U[X]=z[X],S=S.slice(0,te)),S},Z.prototype.buffer=Z.prototype.arrayBuffer,Z.prototype.digest=Z.prototype.array=function(){this.finalize();for(var g=this.blockCount,z=this.s,K=this.outputBlocks,Y=this.extraBytes,X=0,se=0,te=[],S,U;se<K;){for(X=0;X<g&&se<K;++X,++se)S=se<<2,U=z[X],te[S]=U&255,te[S+1]=U>>8&255,te[S+2]=U>>16&255,te[S+3]=U>>24&255;se%g===0&&ue(z)}return Y&&(S=se<<2,U=z[X],te[S]=U&255,Y>1&&(te[S+1]=U>>8&255),Y>2&&(te[S+2]=U>>16&255)),te};function le(g,z,K){Z.call(this,g,z,K)}le.prototype=new Z,le.prototype.finalize=function(){return this.encode(this.outputBits,!0),Z.prototype.finalize.call(this)};var ue=function(g){var z,K,Y,X,se,te,S,U,q,J,y,u,h,M,N,D,F,j,ee,re,oe,ae,de,he,ge,ut,Ce,Me,Pt,ve,ye,Ft,Ie,Re,Sn,Oe,ke,Cn,Ne,Pe,Tn,Fe,Be,An,Le,De,In,Ue,$e,Rn,We,je,On,He,qe,Zt,Xt,en,tn,nn,rn,on,sn;for(Y=0;Y<48;Y+=2)X=g[0]^g[10]^g[20]^g[30]^g[40],se=g[1]^g[11]^g[21]^g[31]^g[41],te=g[2]^g[12]^g[22]^g[32]^g[42],S=g[3]^g[13]^g[23]^g[33]^g[43],U=g[4]^g[14]^g[24]^g[34]^g[44],q=g[5]^g[15]^g[25]^g[35]^g[45],J=g[6]^g[16]^g[26]^g[36]^g[46],y=g[7]^g[17]^g[27]^g[37]^g[47],u=g[8]^g[18]^g[28]^g[38]^g[48],h=g[9]^g[19]^g[29]^g[39]^g[49],z=u^(te<<1|S>>>31),K=h^(S<<1|te>>>31),g[0]^=z,g[1]^=K,g[10]^=z,g[11]^=K,g[20]^=z,g[21]^=K,g[30]^=z,g[31]^=K,g[40]^=z,g[41]^=K,z=X^(U<<1|q>>>31),K=se^(q<<1|U>>>31),g[2]^=z,g[3]^=K,g[12]^=z,g[13]^=K,g[22]^=z,g[23]^=K,g[32]^=z,g[33]^=K,g[42]^=z,g[43]^=K,z=te^(J<<1|y>>>31),K=S^(y<<1|J>>>31),g[4]^=z,g[5]^=K,g[14]^=z,g[15]^=K,g[24]^=z,g[25]^=K,g[34]^=z,g[35]^=K,g[44]^=z,g[45]^=K,z=U^(u<<1|h>>>31),K=q^(h<<1|u>>>31),g[6]^=z,g[7]^=K,g[16]^=z,g[17]^=K,g[26]^=z,g[27]^=K,g[36]^=z,g[37]^=K,g[46]^=z,g[47]^=K,z=J^(X<<1|se>>>31),K=y^(se<<1|X>>>31),g[8]^=z,g[9]^=K,g[18]^=z,g[19]^=K,g[28]^=z,g[29]^=K,g[38]^=z,g[39]^=K,g[48]^=z,g[49]^=K,M=g[0],N=g[1],De=g[11]<<4|g[10]>>>28,In=g[10]<<4|g[11]>>>28,Me=g[20]<<3|g[21]>>>29,Pt=g[21]<<3|g[20]>>>29,nn=g[31]<<9|g[30]>>>23,rn=g[30]<<9|g[31]>>>23,Fe=g[40]<<18|g[41]>>>14,Be=g[41]<<18|g[40]>>>14,Re=g[2]<<1|g[3]>>>31,Sn=g[3]<<1|g[2]>>>31,D=g[13]<<12|g[12]>>>20,F=g[12]<<12|g[13]>>>20,Ue=g[22]<<10|g[23]>>>22,$e=g[23]<<10|g[22]>>>22,ve=g[33]<<13|g[32]>>>19,ye=g[32]<<13|g[33]>>>19,on=g[42]<<2|g[43]>>>30,sn=g[43]<<2|g[42]>>>30,He=g[5]<<30|g[4]>>>2,qe=g[4]<<30|g[5]>>>2,Oe=g[14]<<6|g[15]>>>26,ke=g[15]<<6|g[14]>>>26,j=g[25]<<11|g[24]>>>21,ee=g[24]<<11|g[25]>>>21,Rn=g[34]<<15|g[35]>>>17,We=g[35]<<15|g[34]>>>17,Ft=g[45]<<29|g[44]>>>3,Ie=g[44]<<29|g[45]>>>3,he=g[6]<<28|g[7]>>>4,ge=g[7]<<28|g[6]>>>4,Zt=g[17]<<23|g[16]>>>9,Xt=g[16]<<23|g[17]>>>9,Cn=g[26]<<25|g[27]>>>7,Ne=g[27]<<25|g[26]>>>7,re=g[36]<<21|g[37]>>>11,oe=g[37]<<21|g[36]>>>11,je=g[47]<<24|g[46]>>>8,On=g[46]<<24|g[47]>>>8,An=g[8]<<27|g[9]>>>5,Le=g[9]<<27|g[8]>>>5,ut=g[18]<<20|g[19]>>>12,Ce=g[19]<<20|g[18]>>>12,en=g[29]<<7|g[28]>>>25,tn=g[28]<<7|g[29]>>>25,Pe=g[38]<<8|g[39]>>>24,Tn=g[39]<<8|g[38]>>>24,ae=g[48]<<14|g[49]>>>18,de=g[49]<<14|g[48]>>>18,g[0]=M^~D&j,g[1]=N^~F&ee,g[10]=he^~ut&Me,g[11]=ge^~Ce&Pt,g[20]=Re^~Oe&Cn,g[21]=Sn^~ke&Ne,g[30]=An^~De&Ue,g[31]=Le^~In&$e,g[40]=He^~Zt&en,g[41]=qe^~Xt&tn,g[2]=D^~j&re,g[3]=F^~ee&oe,g[12]=ut^~Me&ve,g[13]=Ce^~Pt&ye,g[22]=Oe^~Cn&Pe,g[23]=ke^~Ne&Tn,g[32]=De^~Ue&Rn,g[33]=In^~$e&We,g[42]=Zt^~en&nn,g[43]=Xt^~tn&rn,g[4]=j^~re&ae,g[5]=ee^~oe&de,g[14]=Me^~ve&Ft,g[15]=Pt^~ye&Ie,g[24]=Cn^~Pe&Fe,g[25]=Ne^~Tn&Be,g[34]=Ue^~Rn&je,g[35]=$e^~We&On,g[44]=en^~nn&on,g[45]=tn^~rn&sn,g[6]=re^~ae&M,g[7]=oe^~de&N,g[16]=ve^~Ft&he,g[17]=ye^~Ie&ge,g[26]=Pe^~Fe&Re,g[27]=Tn^~Be&Sn,g[36]=Rn^~je&An,g[37]=We^~On&Le,g[46]=nn^~on&He,g[47]=rn^~sn&qe,g[8]=ae^~M&D,g[9]=de^~N&F,g[18]=Ft^~he&ut,g[19]=Ie^~ge&Ce,g[28]=Fe^~Re&Oe,g[29]=Be^~Sn&ke,g[38]=je^~An&De,g[39]=On^~Le&In,g[48]=on^~He&Zt,g[49]=sn^~qe&Xt,g[0]^=P[Y],g[1]^=P[Y+1]};if(a)e.exports=w;else for(k=0;k<E.length;++k)i[E[k]]=w[E[k]]})()})(Mw);var Sw={},qt={},ru;function Cw(){if(ru)return qt;ru=1,Object.defineProperty(qt,"__esModule",{value:!0}),qt.isBrowserCryptoAvailable=qt.getSubtleCrypto=qt.getBrowerCrypto=void 0;function e(){return(At==null?void 0:At.crypto)||(At==null?void 0:At.msCrypto)||{}}qt.getBrowerCrypto=e;function t(){const r=e();return r.subtle||r.webkitSubtle}qt.getSubtleCrypto=t;function n(){return!!e()&&!!t()}return qt.isBrowserCryptoAvailable=n,qt}var zt={},iu;function Tw(){if(iu)return zt;iu=1,Object.defineProperty(zt,"__esModule",{value:!0}),zt.isBrowser=zt.isNode=zt.isReactNative=void 0;function e(){return typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"}zt.isReactNative=e;function t(){return typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.node<"u"}zt.isNode=t;function n(){return!e()&&!t()}return zt.isBrowser=n,zt}(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=Vr;t.__exportStar(Cw(),e),t.__exportStar(Tw(),e)})(Sw);function Aw(){const e=Date.now()*Math.pow(10,3),t=Math.floor(Math.random()*Math.pow(10,3));return e+t}function Cr(e){return pd(e)}function Iw(e){return Hn(e)}function Rw(e){return wn(e)}function yd(e){return ow(Hn(e))}const wd=Aw;function Ei(){return((t,n)=>{for(n=t="";t++<36;n+=t*51&52?(t^15?8^Math.random()*(t^20?16:4):4).toString(16):"-");return n})()}function Ow(){console.warn("DEPRECATION WARNING: This WalletConnect client library will be deprecated in favor of @walletconnect/client. Please check docs.walletconnect.org to learn more about this migration!")}function bd(e,t){let n;const r=nd[e];return r&&(n=`https://${r}.infura.io/v3/${t}`),n}function kw(e,t){let n;const r=bd(e,t.infuraId);return t.custom&&t.custom[e]?n=t.custom[e]:r&&(n=r),n}function Ed(e){return e===""||typeof e=="string"&&e.trim()===""}function xd(e){return!(e&&e.length)}function Nw(e){return co(e)}function Pw(e){return Za(e)}function Fw(e){return dd(e)}function Bw(e){return X1(e)}function Lw(e){return ew(e)}function tl(e,t){return hd(e,t)}function Dw(e){return typeof e.params=="object"}function Md(e){return typeof e.method<"u"}function Zn(e){return typeof e.result<"u"}function Yr(e){return typeof e.error<"u"}function Is(e){return typeof e.event<"u"}function Sd(e){return td.includes(e)||e.startsWith("wc_")}function Cd(e){return e.method.startsWith("wc_")?!0:!Ha.includes(e.method)}function Td(e){e=wn(e.toLowerCase());const t=wn(As.keccak_256(gd(e)));let n="";for(let r=0;r<e.length;r++)parseInt(t[r],16)>7?n+=e[r].toUpperCase():n+=e[r];return Hn(n)}const Ad=e=>e?e.toLowerCase().substring(0,2)!=="0x"?!1:/^(0x)?[0-9a-f]{40}$/i.test(e)?/^(0x)?[0-9a-f]{40}$/.test(e)||/^(0x)?[0-9A-F]{40}$/.test(e)?!0:e===Td(e):!1:!1;function Rs(e){return!xd(e)&&!tl(e[0])&&(e[0]=_d(e[0])),e}function xi(e){if(typeof e.type<"u"&&e.type!=="0")return e;if(typeof e.from>"u"||!Ad(e.from))throw new Error("Transaction object must include a valid 'from' value.");function t(i){let o=i;return(typeof i=="number"||typeof i=="string"&&!Ed(i))&&(tl(i)?typeof i=="string"&&(o=Cr(i)):o=el(i)),typeof o=="string"&&(o=yd(o)),o}const n={from:Cr(e.from),to:typeof e.to>"u"?void 0:Cr(e.to),gasPrice:typeof e.gasPrice>"u"?"":t(e.gasPrice),gas:typeof e.gas>"u"?typeof e.gasLimit>"u"?"":t(e.gasLimit):t(e.gas),value:typeof e.value>"u"?"":t(e.value),nonce:typeof e.nonce>"u"?"":t(e.nonce),data:typeof e.data>"u"?"":Cr(e.data)||"0x"},r=["gasPrice","gas","value","nonce"];return Object.keys(n).forEach(i=>{(typeof n[i]>"u"||typeof n[i]=="string"&&!n[i].trim().length)&&r.includes(i)&&delete n[i]}),n}function Uw(e,t){return async(...r)=>new Promise((i,o)=>{const s=(a,c)=>{(a===null||typeof a>"u")&&o(a),i(c)};e.apply(t,[...r,s])})}function Id(e){const t=e.message||"Failed or Rejected Request";let n=-32e3;if(e&&!e.code)switch(t){case"Parse error":n=-32700;break;case"Invalid request":n=-32600;break;case"Method not found":n=-32601;break;case"Invalid params":n=-32602;break;case"Internal error":n=-32603;break;default:n=-32e3;break}const r={code:n,message:t};return e.data&&(r.data=e.data),r}var nl={},$w=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),Rd="%[a-f0-9]{2}",ou=new RegExp("("+Rd+")|([^%]+?)","gi"),su=new RegExp("("+Rd+")+","gi");function Os(e,t){try{return[decodeURIComponent(e.join(""))]}catch{}if(e.length===1)return e;t=t||1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],Os(n),Os(r))}function Ww(e){try{return decodeURIComponent(e)}catch{for(var t=e.match(ou)||[],n=1;n<t.length;n++)e=Os(t,n).join(""),t=e.match(ou)||[];return e}}function jw(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},n=su.exec(e);n;){try{t[n[0]]=decodeURIComponent(n[0])}catch{var r=Ww(n[0]);r!==n[0]&&(t[n[0]]=r)}n=su.exec(e)}t["%C2"]="�";for(var i=Object.keys(t),o=0;o<i.length;o++){var s=i[o];e=e.replace(new RegExp(s,"g"),t[s])}return e}var Hw=function(e){if(typeof e!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch{return jw(e)}},qw=(e,t)=>{if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t==="")return[e];const n=e.indexOf(t);return n===-1?[e]:[e.slice(0,n),e.slice(n+t.length)]};(function(e){const t=$w,n=Hw,r=qw,i=T=>T==null;function o(T){switch(T.arrayFormat){case"index":return A=>(L,B)=>{const $=L.length;return B===void 0||T.skipNull&&B===null||T.skipEmptyString&&B===""?L:B===null?[...L,[c(A,T),"[",$,"]"].join("")]:[...L,[c(A,T),"[",c($,T),"]=",c(B,T)].join("")]};case"bracket":return A=>(L,B)=>B===void 0||T.skipNull&&B===null||T.skipEmptyString&&B===""?L:B===null?[...L,[c(A,T),"[]"].join("")]:[...L,[c(A,T),"[]=",c(B,T)].join("")];case"comma":case"separator":return A=>(L,B)=>B==null||B.length===0?L:L.length===0?[[c(A,T),"=",c(B,T)].join("")]:[[L,c(B,T)].join(T.arrayFormatSeparator)];default:return A=>(L,B)=>B===void 0||T.skipNull&&B===null||T.skipEmptyString&&B===""?L:B===null?[...L,c(A,T)]:[...L,[c(A,T),"=",c(B,T)].join("")]}}function s(T){let A;switch(T.arrayFormat){case"index":return(L,B,$)=>{if(A=/\[(\d*)\]$/.exec(L),L=L.replace(/\[\d*\]$/,""),!A){$[L]=B;return}$[L]===void 0&&($[L]={}),$[L][A[1]]=B};case"bracket":return(L,B,$)=>{if(A=/(\[\])$/.exec(L),L=L.replace(/\[\]$/,""),!A){$[L]=B;return}if($[L]===void 0){$[L]=[B];return}$[L]=[].concat($[L],B)};case"comma":case"separator":return(L,B,$)=>{const G=typeof B=="string"&&B.split("").indexOf(T.arrayFormatSeparator)>-1?B.split(T.arrayFormatSeparator).map(Q=>m(Q,T)):B===null?B:m(B,T);$[L]=G};default:return(L,B,$)=>{if($[L]===void 0){$[L]=B;return}$[L]=[].concat($[L],B)}}}function a(T){if(typeof T!="string"||T.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function c(T,A){return A.encode?A.strict?t(T):encodeURIComponent(T):T}function m(T,A){return A.decode?n(T):T}function p(T){return Array.isArray(T)?T.sort():typeof T=="object"?p(Object.keys(T)).sort((A,L)=>Number(A)-Number(L)).map(A=>T[A]):T}function b(T){const A=T.indexOf("#");return A!==-1&&(T=T.slice(0,A)),T}function x(T){let A="";const L=T.indexOf("#");return L!==-1&&(A=T.slice(L)),A}function R(T){T=b(T);const A=T.indexOf("?");return A===-1?"":T.slice(A+1)}function C(T,A){return A.parseNumbers&&!Number.isNaN(Number(T))&&typeof T=="string"&&T.trim()!==""?T=Number(T):A.parseBooleans&&T!==null&&(T.toLowerCase()==="true"||T.toLowerCase()==="false")&&(T=T.toLowerCase()==="true"),T}function P(T,A){A=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},A),a(A.arrayFormatSeparator);const L=s(A),B=Object.create(null);if(typeof T!="string"||(T=T.trim().replace(/^[?#&]/,""),!T))return B;for(const $ of T.split("&")){let[H,G]=r(A.decode?$.replace(/\+/g," "):$,"=");G=G===void 0?null:["comma","separator"].includes(A.arrayFormat)?G:m(G,A),L(m(H,A),G,B)}for(const $ of Object.keys(B)){const H=B[$];if(typeof H=="object"&&H!==null)for(const G of Object.keys(H))H[G]=C(H[G],A);else B[$]=C(H,A)}return A.sort===!1?B:(A.sort===!0?Object.keys(B).sort():Object.keys(B).sort(A.sort)).reduce(($,H)=>{const G=B[H];return Boolean(G)&&typeof G=="object"&&!Array.isArray(G)?$[H]=p(G):$[H]=G,$},Object.create(null))}e.extract=R,e.parse=P,e.stringify=(T,A)=>{if(!T)return"";A=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},A),a(A.arrayFormatSeparator);const L=G=>A.skipNull&&i(T[G])||A.skipEmptyString&&T[G]==="",B=o(A),$={};for(const G of Object.keys(T))L(G)||($[G]=T[G]);const H=Object.keys($);return A.sort!==!1&&H.sort(A.sort),H.map(G=>{const Q=T[G];return Q===void 0?"":Q===null?c(G,A):Array.isArray(Q)?Q.reduce(B(G),[]).join("&"):c(G,A)+"="+c(Q,A)}).filter(G=>G.length>0).join("&")},e.parseUrl=(T,A)=>{A=Object.assign({decode:!0},A);const[L,B]=r(T,"#");return Object.assign({url:L.split("?")[0]||"",query:P(R(T),A)},A&&A.parseFragmentIdentifier&&B?{fragmentIdentifier:m(B,A)}:{})},e.stringifyUrl=(T,A)=>{A=Object.assign({encode:!0,strict:!0},A);const L=b(T.url).split("?")[0]||"",B=e.extract(T.url),$=e.parse(B,{sort:!1}),H=Object.assign($,T.query);let G=e.stringify(H,A);G&&(G=`?${G}`);let Q=x(T.url);return T.fragmentIdentifier&&(Q=`#${c(T.fragmentIdentifier,A)}`),`${L}${G}${Q}`}})(nl);function Od(e){const t=e.indexOf("?")!==-1?e.indexOf("?"):void 0;return typeof t<"u"?e.substr(t):""}function kd(e,t){let n=rl(e);return n=Object.assign(Object.assign({},n),t),e=Nd(n),e}function rl(e){return nl.parse(e)}function Nd(e){return nl.stringify(e)}function Pd(e){return typeof e.bridge<"u"}function Fd(e){const t=e.indexOf(":"),n=e.indexOf("?")!==-1?e.indexOf("?"):void 0,r=e.substring(0,t),i=e.substring(t+1,n);function o(b){const x="@",R=b.split(x);return{handshakeTopic:R[0],version:parseInt(R[1],10)}}const s=o(i),a=typeof n<"u"?e.substr(n):"";function c(b){const x=rl(b);return{key:x.key||"",bridge:x.bridge||""}}const m=c(a);return Object.assign(Object.assign({protocol:r},s),m)}const zw=Object.freeze(Object.defineProperty({__proto__:null,addHexPrefix:Iw,appendToQueryString:kd,concatArrayBuffers:uw,concatBuffers:mw,convertArrayBufferToBuffer:aw,convertArrayBufferToHex:md,convertArrayBufferToNumber:cw,convertArrayBufferToUtf8:lw,convertBufferToArrayBuffer:fw,convertBufferToHex:dw,convertBufferToNumber:pw,convertBufferToUtf8:hw,convertHexToArrayBuffer:vd,convertHexToBuffer:vw,convertHexToNumber:ww,convertHexToUtf8:yw,convertNumberToArrayBuffer:Ew,convertNumberToBuffer:bw,convertNumberToHex:el,convertNumberToUtf8:xw,convertUtf8ToArrayBuffer:gw,convertUtf8ToBuffer:gd,convertUtf8ToHex:_d,convertUtf8ToNumber:_w,detectEnv:ti,detectOS:ni,formatIOSMobile:Yh,formatMobileRegistry:ed,formatMobileRegistryEntry:ja,formatQueryString:Nd,formatRpcError:Id,getClientMeta:Fi,getCrypto:Vh,getCryptoOrThrow:zh,getDappRegistryUrl:Xh,getDocument:jh,getDocumentOrThrow:Wh,getEncoding:Lw,getFromWindow:Uh,getFromWindowOrThrow:$h,getInfuraRpcUrl:bd,getLocal:oo,getLocalStorage:ri,getLocalStorageOrThrow:Kh,getLocation:Da,getLocationOrThrow:qh,getMobileLinkRegistry:Gh,getMobileRegistryEntry:Wa,getNavigator:La,getNavigatorOrThrow:Hh,getQueryString:Od,getRpcUrl:kw,getType:Bw,getWalletRegistryUrl:Zh,infuraNetworks:nd,isAndroid:ka,isArrayBuffer:Fw,isBrowser:Ba,isBuffer:Nw,isEmptyArray:xd,isEmptyString:Ed,isHexString:tl,isIOS:Na,isInternalEvent:Is,isJsonRpcRequest:Md,isJsonRpcResponseError:Yr,isJsonRpcResponseSuccess:Zn,isJsonRpcSubscription:Dw,isMobile:Pa,isNode:Fa,isReservedEvent:Sd,isSilentPayload:Cd,isTypedArray:Pw,isValidAddress:Ad,isWalletConnectSession:Pd,logDeprecationWarning:Ow,mobileLinkChoiceKey:Kr,parsePersonalSign:Rs,parseQueryString:rl,parseTransactionData:xi,parseWalletConnectUri:Fd,payloadId:wd,promisify:Uw,removeHexLeadingZeros:yd,removeHexPrefix:Rw,removeLocal:so,reservedEvents:td,safeJsonParse:Ua,safeJsonStringify:$a,sanitizeHex:Cr,saveMobileLinkInfo:Jh,setLocal:io,signingMethods:Ha,stateMethods:O1,toChecksumAddress:Td,uuid:Ei},Symbol.toStringTag,{value:"Module"}));class Vw{constructor(){this._eventEmitters=[],typeof window<"u"&&typeof window.addEventListener<"u"&&(window.addEventListener("online",()=>this.trigger("online")),window.addEventListener("offline",()=>this.trigger("offline")))}on(t,n){this._eventEmitters.push({event:t,callback:n})}trigger(t){let n=[];t&&(n=this._eventEmitters.filter(r=>r.event===t)),n.forEach(r=>{r.callback()})}}const Kw=typeof global.WebSocket<"u"?global.WebSocket:require("ws");class Yw{constructor(t){if(this.opts=t,this._queue=[],this._events=[],this._subscriptions=[],this._protocol=t.protocol,this._version=t.version,this._url="",this._netMonitor=null,this._socket=null,this._nextSocket=null,this._subscriptions=t.subscriptions||[],this._netMonitor=t.netMonitor||new Vw,!t.url||typeof t.url!="string")throw new Error("Missing or invalid WebSocket url");this._url=t.url,this._netMonitor.on("online",()=>this._socketCreate())}set readyState(t){}get readyState(){return this._socket?this._socket.readyState:-1}set connecting(t){}get connecting(){return this.readyState===0}set connected(t){}get connected(){return this.readyState===1}set closing(t){}get closing(){return this.readyState===2}set closed(t){}get closed(){return this.readyState===3}open(){this._socketCreate()}close(){this._socketClose()}send(t,n,r){if(!n||typeof n!="string")throw new Error("Missing or invalid topic field");this._socketSend({topic:n,type:"pub",payload:t,silent:!!r})}subscribe(t){this._socketSend({topic:t,type:"sub",payload:"",silent:!0})}on(t,n){this._events.push({event:t,callback:n})}_socketCreate(){if(this._nextSocket)return;const t=Jw(this._url,this._protocol,this._version);if(this._nextSocket=new Kw(t),!this._nextSocket)throw new Error("Failed to create socket");this._nextSocket.onmessage=n=>this._socketReceive(n),this._nextSocket.onopen=()=>this._socketOpen(),this._nextSocket.onerror=n=>this._socketError(n),this._nextSocket.onclose=()=>{setTimeout(()=>{this._nextSocket=null,this._socketCreate()},1e3)}}_socketOpen(){this._socketClose(),this._socket=this._nextSocket,this._nextSocket=null,this._queueSubscriptions(),this._pushQueue()}_socketClose(){this._socket&&(this._socket.onclose=()=>{},this._socket.close())}_socketSend(t){const n=JSON.stringify(t);this._socket&&this._socket.readyState===1?this._socket.send(n):(this._setToQueue(t),this._socketCreate())}async _socketReceive(t){let n;try{n=JSON.parse(t.data)}catch{return}if(this._socketSend({topic:n.topic,type:"ack",payload:"",silent:!0}),this._socket&&this._socket.readyState===1){const r=this._events.filter(i=>i.event==="message");r&&r.length&&r.forEach(i=>i.callback(n))}}_socketError(t){const n=this._events.filter(r=>r.event==="error");n&&n.length&&n.forEach(r=>r.callback(t))}_queueSubscriptions(){this._subscriptions.forEach(n=>this._queue.push({topic:n,type:"sub",payload:"",silent:!0})),this._subscriptions=this.opts.subscriptions||[]}_setToQueue(t){this._queue.push(t)}_pushQueue(){this._queue.forEach(n=>this._socketSend(n)),this._queue=[]}}function Jw(e,t,n){var r,i;const s=(e.startsWith("https")?e.replace("https","wss"):e.startsWith("http")?e.replace("http","ws"):e).split("?"),a=Ba()?{protocol:t,version:n,env:"browser",host:((r=Da())===null||r===void 0?void 0:r.host)||""}:{protocol:t,version:n,env:((i=ti())===null||i===void 0?void 0:i.name)||""},c=kd(Od(s[1]||""),a);return s[0]+"?"+c}const Wo="Session currently connected",Pn="Session currently disconnected",Gw="Session Rejected",Qw="Missing JSON RPC response",Zw='JSON-RPC success response must include "result" field',Xw='JSON-RPC error response must include "error" field',eb='JSON RPC request must have valid "method" value',tb='JSON RPC request must have valid "id" value',nb="Missing one of the required parameters: bridge / uri / session",au="JSON RPC response format is invalid",rb="URI format is invalid",ib="QRCode Modal not provided",lu="User close QRCode Modal";class ob{constructor(){this._eventEmitters=[]}subscribe(t){this._eventEmitters.push(t)}unsubscribe(t){this._eventEmitters=this._eventEmitters.filter(n=>n.event!==t)}trigger(t){let n=[],r;Md(t)?r=t.method:Zn(t)||Yr(t)?r=`response:${t.id}`:Is(t)?r=t.event:r="",r&&(n=this._eventEmitters.filter(i=>i.event===r)),(!n||!n.length)&&!Sd(r)&&!Is(r)&&(n=this._eventEmitters.filter(i=>i.event==="call_request")),n.forEach(i=>{if(Yr(t)){const o=new Error(t.error.message);i.callback(o,null)}else i.callback(null,t)})}}class sb{constructor(t="walletconnect"){this.storageId=t}getSession(){let t=null;const n=oo(this.storageId);return n&&Pd(n)&&(t=n),t}setSession(t){return io(this.storageId,t),t}removeSession(){so(this.storageId)}}const ab="walletconnect.org",lb="abcdefghijklmnopqrstuvwxyz0123456789",Bd=lb.split("").map(e=>`https://${e}.bridge.walletconnect.org`);function cb(e){let t=e.indexOf("//")>-1?e.split("/")[2]:e.split("/")[0];return t=t.split(":")[0],t=t.split("?")[0],t}function ub(e){return cb(e).split(".").slice(-2).join(".")}function fb(){return Math.floor(Math.random()*Bd.length)}function hb(){return Bd[fb()]}function db(e){return ub(e)===ab}function pb(e){return db(e)?hb():e}class mb{constructor(t){if(this.protocol="wc",this.version=1,this._bridge="",this._key=null,this._clientId="",this._clientMeta=null,this._peerId="",this._peerMeta=null,this._handshakeId=0,this._handshakeTopic="",this._connected=!1,this._accounts=[],this._chainId=0,this._networkId=0,this._rpcUrl="",this._eventManager=new ob,this._clientMeta=Fi()||t.connectorOpts.clientMeta||null,this._cryptoLib=t.cryptoLib,this._sessionStorage=t.sessionStorage||new sb(t.connectorOpts.storageId),this._qrcodeModal=t.connectorOpts.qrcodeModal,this._qrcodeModalOptions=t.connectorOpts.qrcodeModalOptions,this._signingMethods=[...Ha,...t.connectorOpts.signingMethods||[]],!t.connectorOpts.bridge&&!t.connectorOpts.uri&&!t.connectorOpts.session)throw new Error(nb);t.connectorOpts.bridge&&(this.bridge=pb(t.connectorOpts.bridge)),t.connectorOpts.uri&&(this.uri=t.connectorOpts.uri);const n=t.connectorOpts.session||this._getStorageSession();n&&(this.session=n),this.handshakeId&&this._subscribeToSessionResponse(this.handshakeId,"Session request rejected"),this._transport=t.transport||new Yw({protocol:this.protocol,version:this.version,url:this.bridge,subscriptions:[this.clientId]}),this._subscribeToInternalEvents(),this._initTransport(),t.connectorOpts.uri&&this._subscribeToSessionRequest(),t.pushServerOpts&&this._registerPushServer(t.pushServerOpts)}set bridge(t){t&&(this._bridge=t)}get bridge(){return this._bridge}set key(t){if(!t)return;const n=vd(t);this._key=n}get key(){return this._key?md(this._key,!0):""}set clientId(t){t&&(this._clientId=t)}get clientId(){let t=this._clientId;return t||(t=this._clientId=Ei()),this._clientId}set peerId(t){t&&(this._peerId=t)}get peerId(){return this._peerId}set clientMeta(t){}get clientMeta(){let t=this._clientMeta;return t||(t=this._clientMeta=Fi()),t}set peerMeta(t){this._peerMeta=t}get peerMeta(){return this._peerMeta}set handshakeTopic(t){t&&(this._handshakeTopic=t)}get handshakeTopic(){return this._handshakeTopic}set handshakeId(t){t&&(this._handshakeId=t)}get handshakeId(){return this._handshakeId}get uri(){return this._formatUri()}set uri(t){if(!t)return;const{handshakeTopic:n,bridge:r,key:i}=this._parseUri(t);this.handshakeTopic=n,this.bridge=r,this.key=i}set chainId(t){this._chainId=t}get chainId(){return this._chainId}set networkId(t){this._networkId=t}get networkId(){return this._networkId}set accounts(t){this._accounts=t}get accounts(){return this._accounts}set rpcUrl(t){this._rpcUrl=t}get rpcUrl(){return this._rpcUrl}set connected(t){}get connected(){return this._connected}set pending(t){}get pending(){return!!this._handshakeTopic}get session(){return{connected:this.connected,accounts:this.accounts,chainId:this.chainId,bridge:this.bridge,key:this.key,clientId:this.clientId,clientMeta:this.clientMeta,peerId:this.peerId,peerMeta:this.peerMeta,handshakeId:this.handshakeId,handshakeTopic:this.handshakeTopic}}set session(t){t&&(this._connected=t.connected,this.accounts=t.accounts,this.chainId=t.chainId,this.bridge=t.bridge,this.key=t.key,this.clientId=t.clientId,this.clientMeta=t.clientMeta,this.peerId=t.peerId,this.peerMeta=t.peerMeta,this.handshakeId=t.handshakeId,this.handshakeTopic=t.handshakeTopic)}on(t,n){const r={event:t,callback:n};this._eventManager.subscribe(r)}off(t){this._eventManager.unsubscribe(t)}async createInstantRequest(t){this._key=await this._generateKey();const n=this._formatRequest({method:"wc_instantRequest",params:[{peerId:this.clientId,peerMeta:this.clientMeta,request:this._formatRequest(t)}]});this.handshakeId=n.id,this.handshakeTopic=Ei(),this._eventManager.trigger({event:"display_uri",params:[this.uri]}),this.on("modal_closed",()=>{throw new Error(lu)});const r=()=>{this.killSession()};try{const i=await this._sendCallRequest(n);return i&&r(),i}catch(i){throw r(),i}}async connect(t){if(!this._qrcodeModal)throw new Error(ib);return this.connected?{chainId:this.chainId,accounts:this.accounts}:(await this.createSession(t),new Promise(async(n,r)=>{this.on("modal_closed",()=>r(new Error(lu))),this.on("connect",(i,o)=>{if(i)return r(i);n(o.params[0])})}))}async createSession(t){if(this._connected)throw new Error(Wo);if(this.pending)return;this._key=await this._generateKey();const n=this._formatRequest({method:"wc_sessionRequest",params:[{peerId:this.clientId,peerMeta:this.clientMeta,chainId:t&&t.chainId?t.chainId:null}]});this.handshakeId=n.id,this.handshakeTopic=Ei(),this._sendSessionRequest(n,"Session update rejected",{topic:this.handshakeTopic}),this._eventManager.trigger({event:"display_uri",params:[this.uri]})}approveSession(t){if(this._connected)throw new Error(Wo);this.chainId=t.chainId,this.accounts=t.accounts,this.networkId=t.networkId||0,this.rpcUrl=t.rpcUrl||"";const n={approved:!0,chainId:this.chainId,networkId:this.networkId,accounts:this.accounts,rpcUrl:this.rpcUrl,peerId:this.clientId,peerMeta:this.clientMeta},r={id:this.handshakeId,jsonrpc:"2.0",result:n};this._sendResponse(r),this._connected=!0,this._setStorageSession(),this._eventManager.trigger({event:"connect",params:[{peerId:this.peerId,peerMeta:this.peerMeta,chainId:this.chainId,accounts:this.accounts}]})}rejectSession(t){if(this._connected)throw new Error(Wo);const n=t&&t.message?t.message:Gw,r=this._formatResponse({id:this.handshakeId,error:{message:n}});this._sendResponse(r),this._connected=!1,this._eventManager.trigger({event:"disconnect",params:[{message:n}]}),this._removeStorageSession()}updateSession(t){if(!this._connected)throw new Error(Pn);this.chainId=t.chainId,this.accounts=t.accounts,this.networkId=t.networkId||0,this.rpcUrl=t.rpcUrl||"";const n={approved:!0,chainId:this.chainId,networkId:this.networkId,accounts:this.accounts,rpcUrl:this.rpcUrl},r=this._formatRequest({method:"wc_sessionUpdate",params:[n]});this._sendSessionRequest(r,"Session update rejected"),this._eventManager.trigger({event:"session_update",params:[{chainId:this.chainId,accounts:this.accounts}]}),this._manageStorageSession()}async killSession(t){const n=t?t.message:"Session Disconnected",r={approved:!1,chainId:null,networkId:null,accounts:null},i=this._formatRequest({method:"wc_sessionUpdate",params:[r]});await this._sendRequest(i),this._handleSessionDisconnect(n)}async sendTransaction(t){if(!this._connected)throw new Error(Pn);const n=xi(t),r=this._formatRequest({method:"eth_sendTransaction",params:[n]});return await this._sendCallRequest(r)}async signTransaction(t){if(!this._connected)throw new Error(Pn);const n=xi(t),r=this._formatRequest({method:"eth_signTransaction",params:[n]});return await this._sendCallRequest(r)}async signMessage(t){if(!this._connected)throw new Error(Pn);const n=this._formatRequest({method:"eth_sign",params:t});return await this._sendCallRequest(n)}async signPersonalMessage(t){if(!this._connected)throw new Error(Pn);t=Rs(t);const n=this._formatRequest({method:"personal_sign",params:t});return await this._sendCallRequest(n)}async signTypedData(t){if(!this._connected)throw new Error(Pn);const n=this._formatRequest({method:"eth_signTypedData",params:t});return await this._sendCallRequest(n)}async updateChain(t){if(!this._connected)throw new Error("Session currently disconnected");const n=this._formatRequest({method:"wallet_updateChain",params:[t]});return await this._sendCallRequest(n)}unsafeSend(t,n){return this._sendRequest(t,n),this._eventManager.trigger({event:"call_request_sent",params:[{request:t,options:n}]}),new Promise((r,i)=>{this._subscribeToResponse(t.id,(o,s)=>{if(o){i(o);return}if(!s)throw new Error(Qw);r(s)})})}async sendCustomRequest(t,n){if(!this._connected)throw new Error(Pn);switch(t.method){case"eth_accounts":return this.accounts;case"eth_chainId":return el(this.chainId);case"eth_sendTransaction":case"eth_signTransaction":t.params&&(t.params[0]=xi(t.params[0]));break;case"personal_sign":t.params&&(t.params=Rs(t.params));break}const r=this._formatRequest(t);return await this._sendCallRequest(r,n)}approveRequest(t){if(Zn(t)){const n=this._formatResponse(t);this._sendResponse(n)}else throw new Error(Zw)}rejectRequest(t){if(Yr(t)){const n=this._formatResponse(t);this._sendResponse(n)}else throw new Error(Xw)}transportClose(){this._transport.close()}async _sendRequest(t,n){const r=this._formatRequest(t),i=await this._encrypt(r),o=typeof(n==null?void 0:n.topic)<"u"?n.topic:this.peerId,s=JSON.stringify(i),a=typeof(n==null?void 0:n.forcePushNotification)<"u"?!n.forcePushNotification:Cd(r);this._transport.send(s,o,a)}async _sendResponse(t){const n=await this._encrypt(t),r=this.peerId,i=JSON.stringify(n),o=!0;this._transport.send(i,r,o)}async _sendSessionRequest(t,n,r){this._sendRequest(t,r),this._subscribeToSessionResponse(t.id,n)}_sendCallRequest(t,n){return this._sendRequest(t,n),this._eventManager.trigger({event:"call_request_sent",params:[{request:t,options:n}]}),this._subscribeToCallResponse(t.id)}_formatRequest(t){if(typeof t.method>"u")throw new Error(eb);return{id:typeof t.id>"u"?wd():t.id,jsonrpc:"2.0",method:t.method,params:typeof t.params>"u"?[]:t.params}}_formatResponse(t){if(typeof t.id>"u")throw new Error(tb);const n={id:t.id,jsonrpc:"2.0"};if(Yr(t)){const r=Id(t.error);return Object.assign(Object.assign(Object.assign({},n),t),{error:r})}else if(Zn(t))return Object.assign(Object.assign({},n),t);throw new Error(au)}_handleSessionDisconnect(t){const n=t||"Session Disconnected";this._connected||(this._qrcodeModal&&this._qrcodeModal.close(),so(Kr)),this._connected&&(this._connected=!1),this._handshakeId&&(this._handshakeId=0),this._handshakeTopic&&(this._handshakeTopic=""),this._peerId&&(this._peerId=""),this._eventManager.trigger({event:"disconnect",params:[{message:n}]}),this._removeStorageSession(),this.transportClose()}_handleSessionResponse(t,n){n?n.approved?(this._connected?(n.chainId&&(this.chainId=n.chainId),n.accounts&&(this.accounts=n.accounts),this._eventManager.trigger({event:"session_update",params:[{chainId:this.chainId,accounts:this.accounts}]})):(this._connected=!0,n.chainId&&(this.chainId=n.chainId),n.accounts&&(this.accounts=n.accounts),n.peerId&&!this.peerId&&(this.peerId=n.peerId),n.peerMeta&&!this.peerMeta&&(this.peerMeta=n.peerMeta),this._eventManager.trigger({event:"connect",params:[{peerId:this.peerId,peerMeta:this.peerMeta,chainId:this.chainId,accounts:this.accounts}]})),this._manageStorageSession()):this._handleSessionDisconnect(t):this._handleSessionDisconnect(t)}async _handleIncomingMessages(t){if(![this.clientId,this.handshakeTopic].includes(t.topic))return;let r;try{r=JSON.parse(t.payload)}catch{return}const i=await this._decrypt(r);i&&this._eventManager.trigger(i)}_subscribeToSessionRequest(){this._transport.subscribe(this.handshakeTopic)}_subscribeToResponse(t,n){this.on(`response:${t}`,n)}_subscribeToSessionResponse(t,n){this._subscribeToResponse(t,(r,i)=>{if(r){this._handleSessionResponse(r.message);return}Zn(i)?this._handleSessionResponse(n,i.result):i.error&&i.error.message?this._handleSessionResponse(i.error.message):this._handleSessionResponse(n)})}_subscribeToCallResponse(t){return new Promise((n,r)=>{this._subscribeToResponse(t,(i,o)=>{if(i){r(i);return}Zn(o)?n(o.result):o.error&&o.error.message?r(o.error):r(new Error(au))})})}_subscribeToInternalEvents(){this.on("display_uri",()=>{this._qrcodeModal&&this._qrcodeModal.open(this.uri,()=>{this._eventManager.trigger({event:"modal_closed",params:[]})},this._qrcodeModalOptions)}),this.on("connect",()=>{this._qrcodeModal&&this._qrcodeModal.close()}),this.on("call_request_sent",(t,n)=>{const{request:r}=n.params[0];if(Pa()&&this._signingMethods.includes(r.method)){const i=oo(Kr);i&&(window.location.href=i.href)}}),this.on("wc_sessionRequest",(t,n)=>{t&&this._eventManager.trigger({event:"error",params:[{code:"SESSION_REQUEST_ERROR",message:t.toString()}]}),this.handshakeId=n.id,this.peerId=n.params[0].peerId,this.peerMeta=n.params[0].peerMeta;const r=Object.assign(Object.assign({},n),{method:"session_request"});this._eventManager.trigger(r)}),this.on("wc_sessionUpdate",(t,n)=>{t&&this._handleSessionResponse(t.message),this._handleSessionResponse("Session disconnected",n.params[0])})}_initTransport(){this._transport.on("message",t=>this._handleIncomingMessages(t)),this._transport.on("open",()=>this._eventManager.trigger({event:"transport_open",params:[]})),this._transport.on("close",()=>this._eventManager.trigger({event:"transport_close",params:[]})),this._transport.on("error",()=>this._eventManager.trigger({event:"transport_error",params:["Websocket connection failed"]})),this._transport.open()}_formatUri(){const t=this.protocol,n=this.handshakeTopic,r=this.version,i=encodeURIComponent(this.bridge),o=this.key;return`${t}:${n}@${r}?bridge=${i}&key=${o}`}_parseUri(t){const n=Fd(t);if(n.protocol===this.protocol){if(!n.handshakeTopic)throw Error("Invalid or missing handshakeTopic parameter value");const r=n.handshakeTopic;if(!n.bridge)throw Error("Invalid or missing bridge url parameter value");const i=decodeURIComponent(n.bridge);if(!n.key)throw Error("Invalid or missing key parameter value");const o=n.key;return{handshakeTopic:r,bridge:i,key:o}}else throw new Error(rb)}async _generateKey(){return this._cryptoLib?await this._cryptoLib.generateKey():null}async _encrypt(t){const n=this._key;return this._cryptoLib&&n?await this._cryptoLib.encrypt(t,n):null}async _decrypt(t){const n=this._key;return this._cryptoLib&&n?await this._cryptoLib.decrypt(t,n):null}_getStorageSession(){let t=null;return this._sessionStorage&&(t=this._sessionStorage.getSession()),t}_setStorageSession(){this._sessionStorage&&this._sessionStorage.setSession(this.session)}_removeStorageSession(){this._sessionStorage&&this._sessionStorage.removeSession()}_manageStorageSession(){this._connected?this._setStorageSession():this._removeStorageSession()}_registerPushServer(t){if(!t.url||typeof t.url!="string")throw Error("Invalid or missing pushServerOpts.url parameter value");if(!t.type||typeof t.type!="string")throw Error("Invalid or missing pushServerOpts.type parameter value");if(!t.token||typeof t.token!="string")throw Error("Invalid or missing pushServerOpts.token parameter value");const n={bridge:this.bridge,topic:this.clientId,type:t.type,token:t.token,peerName:"",language:t.language||""};this.on("connect",async(r,i)=>{if(r)throw r;if(t.peerMeta){const o=i.params[0].peerMeta.name;n.peerName=o}try{if(!(await(await fetch(`${t.url}/new`,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(n)})).json()).success)throw Error("Failed to register in Push Server")}catch{throw Error("Failed to register in Push Server")}})}}const gb=Object.freeze(Object.defineProperty({__proto__:null,default:mb},Symbol.toStringTag,{value:"Module"})),_b=ei(gb);var Tt={};const Ld=ei(zw);var cu;function vb(){if(cu)return Tt;cu=1,Object.defineProperty(Tt,"__esModule",{value:!0});const e=Vr,t=e.__importDefault(rd),n=Ld,r="AES-256-CBC",i="SHA256";function o(R){return new Promise((C,P)=>{t.default.randomBytes(R,(T,A)=>{T&&P(T),C(A)})})}Tt.randomBytes=o;function s(R){return e.__awaiter(this,void 0,void 0,function*(){const C=(R||256)/8,P=yield o(C),T=n.convertBufferToHex(P,!0);return n.convertHexToArrayBuffer(T)})}Tt.generateKey=s;function a(R,C){return e.__awaiter(this,void 0,void 0,function*(){const P=t.default.createHmac(i,C);P.update(R);const T=P.digest("hex");return n.convertHexToBuffer(T)})}Tt.createHmac=a;function c(R,C){return e.__awaiter(this,void 0,void 0,function*(){const P=n.convertHexToBuffer(R.data),T=n.convertHexToBuffer(R.iv),A=n.convertHexToBuffer(R.hmac),L=n.convertBufferToHex(A,!0),B=n.concatBuffers(P,T),$=yield a(B,C),H=n.convertBufferToHex($,!0);return n.removeHexPrefix(L)===n.removeHexPrefix(H)})}Tt.verifyHmac=c;function m(R,C,P){return e.__awaiter(this,void 0,void 0,function*(){const T=t.default.createCipheriv(r,C,P);return n.concatBuffers(T.update(R),T.final())})}Tt.aesCbcEncrypt=m;function p(R,C,P){return e.__awaiter(this,void 0,void 0,function*(){const T=t.default.createDecipheriv(r,C,P);return n.concatBuffers(T.update(R),T.final())})}Tt.aesCbcDecrypt=p;function b(R,C,P){return e.__awaiter(this,void 0,void 0,function*(){const T=n.convertArrayBufferToBuffer(C),A=P||(yield s(128)),L=n.convertArrayBufferToBuffer(A),B=n.convertBufferToHex(L,!0),$=JSON.stringify(R),H=n.convertUtf8ToBuffer($),G=yield m(H,T,L),Q=n.convertBufferToHex(G,!0),V=n.concatBuffers(G,L),ie=yield a(V,T),v=n.convertBufferToHex(ie,!0);return{data:Q,hmac:v,iv:B}})}Tt.encrypt=b;function x(R,C){return e.__awaiter(this,void 0,void 0,function*(){const P=n.convertArrayBufferToBuffer(C);if(!P)throw new Error("Missing key: required for decryption");if(!(yield c(R,P)))return null;const A=n.convertHexToBuffer(R.data),L=n.convertHexToBuffer(R.iv),B=yield p(A,P,L),$=n.convertBufferToUtf8(B);let H;try{H=JSON.parse($)}catch{return null}return H})}return Tt.decrypt=x,Tt}Object.defineProperty(Sh,"__esModule",{value:!0});const Dd=Vr,yb=Dd.__importDefault(_b),wb=Dd.__importStar(vb()),bb=Ld;class Eb extends yb.default{constructor(t,n){super({cryptoLib:wb,connectorOpts:Object.assign(Object.assign({},t),{clientMeta:n.clientMeta||t.clientMeta})}),bb.logDeprecationWarning()}}var xb=Sh.default=Eb;const Mb=ei(R1);var oi={},Sb=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},Ud={},xn={},Cb={}.toString,il=Array.isArray||function(e){return Cb.call(e)=="[object Array]"},Tb=il;function Ab(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},e.foo()===42}catch{return!1}}we.TYPED_ARRAY_SUPPORT=Ab();var uu=we.TYPED_ARRAY_SUPPORT?2147483647:1073741823;function we(e,t,n){return!we.TYPED_ARRAY_SUPPORT&&!(this instanceof we)?new we(e,t,n):typeof e=="number"?$d(this,e):Fb(this,e,t,n)}we.TYPED_ARRAY_SUPPORT&&(we.prototype.__proto__=Uint8Array.prototype,we.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&we[Symbol.species]===we&&Object.defineProperty(we,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}));function ol(e){if(e>=uu)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+uu.toString(16)+" bytes");return e|0}function Ib(e){return e!==e}function cr(e,t){var n;return we.TYPED_ARRAY_SUPPORT?(n=new Uint8Array(t),n.__proto__=we.prototype):(n=e,n===null&&(n=new we(t)),n.length=t),n}function $d(e,t){var n=cr(e,t<0?0:ol(t)|0);if(!we.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)n[r]=0;return n}function Rb(e,t){var n=jd(t)|0,r=cr(e,n),i=r.write(t);return i!==n&&(r=r.slice(0,i)),r}function ks(e,t){for(var n=t.length<0?0:ol(t.length)|0,r=cr(e,n),i=0;i<n;i+=1)r[i]=t[i]&255;return r}function Ob(e,t,n,r){if(n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");var i;return n===void 0&&r===void 0?i=new Uint8Array(t):r===void 0?i=new Uint8Array(t,n):i=new Uint8Array(t,n,r),we.TYPED_ARRAY_SUPPORT?i.__proto__=we.prototype:i=ks(e,i),i}function kb(e,t){if(we.isBuffer(t)){var n=ol(t.length)|0,r=cr(e,n);return r.length===0||t.copy(r,0,0,n),r}if(t){if(typeof ArrayBuffer<"u"&&t.buffer instanceof ArrayBuffer||"length"in t)return typeof t.length!="number"||Ib(t.length)?cr(e,0):ks(e,t);if(t.type==="Buffer"&&Array.isArray(t.data))return ks(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function Wd(e,t){t=t||1/0;for(var n,r=e.length,i=null,o=[],s=0;s<r;++s){if(n=e.charCodeAt(s),n>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}else if(s+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,n&63|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw new Error("Invalid code point")}return o}function jd(e){if(we.isBuffer(e))return e.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;typeof e!="string"&&(e=""+e);var t=e.length;return t===0?0:Wd(e).length}function Nb(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function Pb(e,t,n,r){return Nb(Wd(t,e.length-n),e,n,r)}function Fb(e,t,n,r){if(typeof t=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer?Ob(e,t,n,r):typeof t=="string"?Rb(e,t):kb(e,t)}we.prototype.write=function(t,n,r){n===void 0?(r=this.length,n=0):r===void 0&&typeof n=="string"?(r=this.length,n=0):isFinite(n)&&(n=n|0,isFinite(r)?r=r|0:r=void 0);var i=this.length-n;if((r===void 0||r>i)&&(r=i),t.length>0&&(r<0||n<0)||n>this.length)throw new RangeError("Attempt to write outside buffer bounds");return Pb(this,t,n,r)};we.prototype.slice=function(t,n){var r=this.length;t=~~t,n=n===void 0?r:~~n,t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),n<0?(n+=r,n<0&&(n=0)):n>r&&(n=r),n<t&&(n=t);var i;if(we.TYPED_ARRAY_SUPPORT)i=this.subarray(t,n),i.__proto__=we.prototype;else{var o=n-t;i=new we(o,void 0);for(var s=0;s<o;++s)i[s]=this[s+t]}return i};we.prototype.copy=function(t,n,r,i){if(r||(r=0),!i&&i!==0&&(i=this.length),n>=t.length&&(n=t.length),n||(n=0),i>0&&i<r&&(i=r),i===r||t.length===0||this.length===0)return 0;if(n<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-n<i-r&&(i=t.length-n+r);var o=i-r,s;if(this===t&&r<n&&n<i)for(s=o-1;s>=0;--s)t[s+n]=this[s+r];else if(o<1e3||!we.TYPED_ARRAY_SUPPORT)for(s=0;s<o;++s)t[s+n]=this[s+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+o),n);return o};we.prototype.fill=function(t,n,r){if(typeof t=="string"){if(typeof n=="string"?(n=0,r=this.length):typeof r=="string"&&(r=this.length),t.length===1){var i=t.charCodeAt(0);i<256&&(t=i)}}else typeof t=="number"&&(t=t&255);if(n<0||this.length<n||this.length<r)throw new RangeError("Out of range index");if(r<=n)return this;n=n>>>0,r=r===void 0?this.length:r>>>0,t||(t=0);var o;if(typeof t=="number")for(o=n;o<r;++o)this[o]=t;else{var s=we.isBuffer(t)?t:new we(t),a=s.length;for(o=0;o<r-n;++o)this[o+n]=s[o%a]}return this};we.concat=function(t,n){if(!Tb(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return cr(null,0);var r;if(n===void 0)for(n=0,r=0;r<t.length;++r)n+=t[r].length;var i=$d(null,n),o=0;for(r=0;r<t.length;++r){var s=t[r];if(!we.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(i,o),o+=s.length}return i};we.byteLength=jd;we.prototype._isBuffer=!0;we.isBuffer=function(t){return!!(t!=null&&t._isBuffer)};xn.alloc=function(e){var t=new we(e);return t.fill(0),t};xn.from=function(e){return new we(e)};var yt={},sl,Bb=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];yt.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17};yt.getSymbolTotalCodewords=function(t){return Bb[t]};yt.getBCHDigit=function(e){for(var t=0;e!==0;)t++,e>>>=1;return t};yt.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');sl=t};yt.isKanjiModeEnabled=function(){return typeof sl<"u"};yt.toSJIS=function(t){return sl(t)};var uo={};(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(n){if(typeof n!="string")throw new Error("Param is not a string");var r=n.toLowerCase();switch(r){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+n)}}e.isValid=function(r){return r&&typeof r.bit<"u"&&r.bit>=0&&r.bit<4},e.from=function(r,i){if(e.isValid(r))return r;try{return t(r)}catch{return i}}})(uo);function Hd(){this.buffer=[],this.length=0}Hd.prototype={get:function(e){var t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(var n=0;n<t;n++)this.putBit((e>>>t-n-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var Lb=Hd,fu=xn;function si(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=fu.alloc(e*e),this.reservedBit=fu.alloc(e*e)}si.prototype.set=function(e,t,n,r){var i=e*this.size+t;this.data[i]=n,r&&(this.reservedBit[i]=!0)};si.prototype.get=function(e,t){return this.data[e*this.size+t]};si.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n};si.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var Db=si,qd={};(function(e){var t=yt.getSymbolSize;e.getRowColCoords=function(r){if(r===1)return[];for(var i=Math.floor(r/7)+2,o=t(r),s=o===145?26:Math.ceil((o-13)/(2*i-2))*2,a=[o-7],c=1;c<i-1;c++)a[c]=a[c-1]-s;return a.push(6),a.reverse()},e.getPositions=function(r){for(var i=[],o=e.getRowColCoords(r),s=o.length,a=0;a<s;a++)for(var c=0;c<s;c++)a===0&&c===0||a===0&&c===s-1||a===s-1&&c===0||i.push([o[a],o[c]]);return i}})(qd);var zd={},Ub=yt.getSymbolSize,hu=7;zd.getPositions=function(t){var n=Ub(t);return[[0,0],[n-hu,0],[0,n-hu]]};var Vd={};(function(e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var t={N1:3,N2:3,N3:40,N4:10};e.isValid=function(i){return i!=null&&i!==""&&!isNaN(i)&&i>=0&&i<=7},e.from=function(i){return e.isValid(i)?parseInt(i,10):void 0},e.getPenaltyN1=function(i){for(var o=i.size,s=0,a=0,c=0,m=null,p=null,b=0;b<o;b++){a=c=0,m=p=null;for(var x=0;x<o;x++){var R=i.get(b,x);R===m?a++:(a>=5&&(s+=t.N1+(a-5)),m=R,a=1),R=i.get(x,b),R===p?c++:(c>=5&&(s+=t.N1+(c-5)),p=R,c=1)}a>=5&&(s+=t.N1+(a-5)),c>=5&&(s+=t.N1+(c-5))}return s},e.getPenaltyN2=function(i){for(var o=i.size,s=0,a=0;a<o-1;a++)for(var c=0;c<o-1;c++){var m=i.get(a,c)+i.get(a,c+1)+i.get(a+1,c)+i.get(a+1,c+1);(m===4||m===0)&&s++}return s*t.N2},e.getPenaltyN3=function(i){for(var o=i.size,s=0,a=0,c=0,m=0;m<o;m++){a=c=0;for(var p=0;p<o;p++)a=a<<1&2047|i.get(m,p),p>=10&&(a===1488||a===93)&&s++,c=c<<1&2047|i.get(p,m),p>=10&&(c===1488||c===93)&&s++}return s*t.N3},e.getPenaltyN4=function(i){for(var o=0,s=i.data.length,a=0;a<s;a++)o+=i.data[a];var c=Math.abs(Math.ceil(o*100/s/5)-10);return c*t.N4};function n(r,i,o){switch(r){case e.Patterns.PATTERN000:return(i+o)%2===0;case e.Patterns.PATTERN001:return i%2===0;case e.Patterns.PATTERN010:return o%3===0;case e.Patterns.PATTERN011:return(i+o)%3===0;case e.Patterns.PATTERN100:return(Math.floor(i/2)+Math.floor(o/3))%2===0;case e.Patterns.PATTERN101:return i*o%2+i*o%3===0;case e.Patterns.PATTERN110:return(i*o%2+i*o%3)%2===0;case e.Patterns.PATTERN111:return(i*o%3+(i+o)%2)%2===0;default:throw new Error("bad maskPattern:"+r)}}e.applyMask=function(i,o){for(var s=o.size,a=0;a<s;a++)for(var c=0;c<s;c++)o.isReserved(c,a)||o.xor(c,a,n(i,c,a))},e.getBestMask=function(i,o){for(var s=Object.keys(e.Patterns).length,a=0,c=1/0,m=0;m<s;m++){o(m),e.applyMask(m,i);var p=e.getPenaltyN1(i)+e.getPenaltyN2(i)+e.getPenaltyN3(i)+e.getPenaltyN4(i);e.applyMask(m,i),p<c&&(c=p,a=m)}return a}})(Vd);var fo={},hn=uo,gi=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],_i=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];fo.getBlocksCount=function(t,n){switch(n){case hn.L:return gi[(t-1)*4+0];case hn.M:return gi[(t-1)*4+1];case hn.Q:return gi[(t-1)*4+2];case hn.H:return gi[(t-1)*4+3];default:return}};fo.getTotalCodewordsCount=function(t,n){switch(n){case hn.L:return _i[(t-1)*4+0];case hn.M:return _i[(t-1)*4+1];case hn.Q:return _i[(t-1)*4+2];case hn.H:return _i[(t-1)*4+3];default:return}};var Kd={},ho={},Yd=xn,Fr=Yd.alloc(512),Bi=Yd.alloc(256);(function(){for(var t=1,n=0;n<255;n++)Fr[n]=t,Bi[t]=n,t<<=1,t&256&&(t^=285);for(n=255;n<512;n++)Fr[n]=Fr[n-255]})();ho.log=function(t){if(t<1)throw new Error("log("+t+")");return Bi[t]};ho.exp=function(t){return Fr[t]};ho.mul=function(t,n){return t===0||n===0?0:Fr[Bi[t]+Bi[n]]};(function(e){var t=xn,n=ho;e.mul=function(i,o){for(var s=t.alloc(i.length+o.length-1),a=0;a<i.length;a++)for(var c=0;c<o.length;c++)s[a+c]^=n.mul(i[a],o[c]);return s},e.mod=function(i,o){for(var s=t.from(i);s.length-o.length>=0;){for(var a=s[0],c=0;c<o.length;c++)s[c]^=n.mul(o[c],a);for(var m=0;m<s.length&&s[m]===0;)m++;s=s.slice(m)}return s},e.generateECPolynomial=function(i){for(var o=t.from([1]),s=0;s<i;s++)o=e.mul(o,[1,n.exp(s)]);return o}})(Kd);var Jd={},po={};po.byteLength=jb;po.toByteArray=qb;po.fromByteArray=Kb;var $t=[],bt=[],$b=typeof Uint8Array<"u"?Uint8Array:Array,jo="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var Kn=0,Wb=jo.length;Kn<Wb;++Kn)$t[Kn]=jo[Kn],bt[jo.charCodeAt(Kn)]=Kn;bt["-".charCodeAt(0)]=62;bt["_".charCodeAt(0)]=63;function Gd(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");n===-1&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function jb(e){var t=Gd(e),n=t[0],r=t[1];return(n+r)*3/4-r}function Hb(e,t,n){return(t+n)*3/4-n}function qb(e){var t,n=Gd(e),r=n[0],i=n[1],o=new $b(Hb(e,r,i)),s=0,a=i>0?r-4:r,c;for(c=0;c<a;c+=4)t=bt[e.charCodeAt(c)]<<18|bt[e.charCodeAt(c+1)]<<12|bt[e.charCodeAt(c+2)]<<6|bt[e.charCodeAt(c+3)],o[s++]=t>>16&255,o[s++]=t>>8&255,o[s++]=t&255;return i===2&&(t=bt[e.charCodeAt(c)]<<2|bt[e.charCodeAt(c+1)]>>4,o[s++]=t&255),i===1&&(t=bt[e.charCodeAt(c)]<<10|bt[e.charCodeAt(c+1)]<<4|bt[e.charCodeAt(c+2)]>>2,o[s++]=t>>8&255,o[s++]=t&255),o}function zb(e){return $t[e>>18&63]+$t[e>>12&63]+$t[e>>6&63]+$t[e&63]}function Vb(e,t,n){for(var r,i=[],o=t;o<n;o+=3)r=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(e[o+2]&255),i.push(zb(r));return i.join("")}function Kb(e){for(var t,n=e.length,r=n%3,i=[],o=16383,s=0,a=n-r;s<a;s+=o)i.push(Vb(e,s,s+o>a?a:s+o));return r===1?(t=e[n-1],i.push($t[t>>2]+$t[t<<4&63]+"==")):r===2&&(t=(e[n-2]<<8)+e[n-1],i.push($t[t>>10]+$t[t>>4&63]+$t[t<<2&63]+"=")),i.join("")}var al={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */al.read=function(e,t,n,r,i){var o,s,a=i*8-r-1,c=(1<<a)-1,m=c>>1,p=-7,b=n?i-1:0,x=n?-1:1,R=e[t+b];for(b+=x,o=R&(1<<-p)-1,R>>=-p,p+=a;p>0;o=o*256+e[t+b],b+=x,p-=8);for(s=o&(1<<-p)-1,o>>=-p,p+=r;p>0;s=s*256+e[t+b],b+=x,p-=8);if(o===0)o=1-m;else{if(o===c)return s?NaN:(R?-1:1)*(1/0);s=s+Math.pow(2,r),o=o-m}return(R?-1:1)*s*Math.pow(2,o-r)};al.write=function(e,t,n,r,i,o){var s,a,c,m=o*8-i-1,p=(1<<m)-1,b=p>>1,x=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,R=r?0:o-1,C=r?1:-1,P=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=p):(s=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-s))<1&&(s--,c*=2),s+b>=1?t+=x/c:t+=x*Math.pow(2,1-b),t*c>=2&&(s++,c/=2),s+b>=p?(a=0,s=p):s+b>=1?(a=(t*c-1)*Math.pow(2,i),s=s+b):(a=t*Math.pow(2,b-1)*Math.pow(2,i),s=0));i>=8;e[n+R]=a&255,R+=C,a/=256,i-=8);for(s=s<<i|a,m+=i;m>0;e[n+R]=s&255,R+=C,s/=256,m-=8);e[n+R-C]|=P*128};/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/(function(e){var t=po,n=al,r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=a,e.SlowBuffer=L,e.INSPECT_MAX_BYTES=50;var i=2147483647;e.kMaxLength=i,a.TYPED_ARRAY_SUPPORT=o(),!a.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function o(){try{var y=new Uint8Array(1),u={foo:function(){return 42}};return Object.setPrototypeOf(u,Uint8Array.prototype),Object.setPrototypeOf(y,u),y.foo()===42}catch{return!1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}});function s(y){if(y>i)throw new RangeError('The value "'+y+'" is invalid for option "size"');var u=new Uint8Array(y);return Object.setPrototypeOf(u,a.prototype),u}function a(y,u,h){if(typeof y=="number"){if(typeof u=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return b(y)}return c(y,u,h)}a.poolSize=8192;function c(y,u,h){if(typeof y=="string")return x(y,u);if(ArrayBuffer.isView(y))return C(y);if(y==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof y);if(U(y,ArrayBuffer)||y&&U(y.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(U(y,SharedArrayBuffer)||y&&U(y.buffer,SharedArrayBuffer)))return P(y,u,h);if(typeof y=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var M=y.valueOf&&y.valueOf();if(M!=null&&M!==y)return a.from(M,u,h);var N=T(y);if(N)return N;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof y[Symbol.toPrimitive]=="function")return a.from(y[Symbol.toPrimitive]("string"),u,h);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof y)}a.from=function(y,u,h){return c(y,u,h)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array);function m(y){if(typeof y!="number")throw new TypeError('"size" argument must be of type number');if(y<0)throw new RangeError('The value "'+y+'" is invalid for option "size"')}function p(y,u,h){return m(y),y<=0?s(y):u!==void 0?typeof h=="string"?s(y).fill(u,h):s(y).fill(u):s(y)}a.alloc=function(y,u,h){return p(y,u,h)};function b(y){return m(y),s(y<0?0:A(y)|0)}a.allocUnsafe=function(y){return b(y)},a.allocUnsafeSlow=function(y){return b(y)};function x(y,u){if((typeof u!="string"||u==="")&&(u="utf8"),!a.isEncoding(u))throw new TypeError("Unknown encoding: "+u);var h=B(y,u)|0,M=s(h),N=M.write(y,u);return N!==h&&(M=M.slice(0,N)),M}function R(y){for(var u=y.length<0?0:A(y.length)|0,h=s(u),M=0;M<u;M+=1)h[M]=y[M]&255;return h}function C(y){if(U(y,Uint8Array)){var u=new Uint8Array(y);return P(u.buffer,u.byteOffset,u.byteLength)}return R(y)}function P(y,u,h){if(u<0||y.byteLength<u)throw new RangeError('"offset" is outside of buffer bounds');if(y.byteLength<u+(h||0))throw new RangeError('"length" is outside of buffer bounds');var M;return u===void 0&&h===void 0?M=new Uint8Array(y):h===void 0?M=new Uint8Array(y,u):M=new Uint8Array(y,u,h),Object.setPrototypeOf(M,a.prototype),M}function T(y){if(a.isBuffer(y)){var u=A(y.length)|0,h=s(u);return h.length===0||y.copy(h,0,0,u),h}if(y.length!==void 0)return typeof y.length!="number"||q(y.length)?s(0):R(y);if(y.type==="Buffer"&&Array.isArray(y.data))return R(y.data)}function A(y){if(y>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return y|0}function L(y){return+y!=y&&(y=0),a.alloc(+y)}a.isBuffer=function(u){return u!=null&&u._isBuffer===!0&&u!==a.prototype},a.compare=function(u,h){if(U(u,Uint8Array)&&(u=a.from(u,u.offset,u.byteLength)),U(h,Uint8Array)&&(h=a.from(h,h.offset,h.byteLength)),!a.isBuffer(u)||!a.isBuffer(h))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(u===h)return 0;for(var M=u.length,N=h.length,D=0,F=Math.min(M,N);D<F;++D)if(u[D]!==h[D]){M=u[D],N=h[D];break}return M<N?-1:N<M?1:0},a.isEncoding=function(u){switch(String(u).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(u,h){if(!Array.isArray(u))throw new TypeError('"list" argument must be an Array of Buffers');if(u.length===0)return a.alloc(0);var M;if(h===void 0)for(h=0,M=0;M<u.length;++M)h+=u[M].length;var N=a.allocUnsafe(h),D=0;for(M=0;M<u.length;++M){var F=u[M];if(U(F,Uint8Array))D+F.length>N.length?a.from(F).copy(N,D):Uint8Array.prototype.set.call(N,F,D);else if(a.isBuffer(F))F.copy(N,D);else throw new TypeError('"list" argument must be an Array of Buffers');D+=F.length}return N};function B(y,u){if(a.isBuffer(y))return y.length;if(ArrayBuffer.isView(y)||U(y,ArrayBuffer))return y.byteLength;if(typeof y!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof y);var h=y.length,M=arguments.length>2&&arguments[2]===!0;if(!M&&h===0)return 0;for(var N=!1;;)switch(u){case"ascii":case"latin1":case"binary":return h;case"utf8":case"utf-8":return Y(y).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return h*2;case"hex":return h>>>1;case"base64":return te(y).length;default:if(N)return M?-1:Y(y).length;u=(""+u).toLowerCase(),N=!0}}a.byteLength=B;function $(y,u,h){var M=!1;if((u===void 0||u<0)&&(u=0),u>this.length||((h===void 0||h>this.length)&&(h=this.length),h<=0)||(h>>>=0,u>>>=0,h<=u))return"";for(y||(y="utf8");;)switch(y){case"hex":return f(this,u,h);case"utf8":case"utf-8":return w(this,u,h);case"ascii":return W(this,u,h);case"latin1":case"binary":return I(this,u,h);case"base64":return _(this,u,h);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,u,h);default:if(M)throw new TypeError("Unknown encoding: "+y);y=(y+"").toLowerCase(),M=!0}}a.prototype._isBuffer=!0;function H(y,u,h){var M=y[u];y[u]=y[h],y[h]=M}a.prototype.swap16=function(){var u=this.length;if(u%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var h=0;h<u;h+=2)H(this,h,h+1);return this},a.prototype.swap32=function(){var u=this.length;if(u%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var h=0;h<u;h+=4)H(this,h,h+3),H(this,h+1,h+2);return this},a.prototype.swap64=function(){var u=this.length;if(u%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var h=0;h<u;h+=8)H(this,h,h+7),H(this,h+1,h+6),H(this,h+2,h+5),H(this,h+3,h+4);return this},a.prototype.toString=function(){var u=this.length;return u===0?"":arguments.length===0?w(this,0,u):$.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(u){if(!a.isBuffer(u))throw new TypeError("Argument must be a Buffer");return this===u?!0:a.compare(this,u)===0},a.prototype.inspect=function(){var u="",h=e.INSPECT_MAX_BYTES;return u=this.toString("hex",0,h).replace(/(.{2})/g,"$1 ").trim(),this.length>h&&(u+=" ... "),"<Buffer "+u+">"},r&&(a.prototype[r]=a.prototype.inspect),a.prototype.compare=function(u,h,M,N,D){if(U(u,Uint8Array)&&(u=a.from(u,u.offset,u.byteLength)),!a.isBuffer(u))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof u);if(h===void 0&&(h=0),M===void 0&&(M=u?u.length:0),N===void 0&&(N=0),D===void 0&&(D=this.length),h<0||M>u.length||N<0||D>this.length)throw new RangeError("out of range index");if(N>=D&&h>=M)return 0;if(N>=D)return-1;if(h>=M)return 1;if(h>>>=0,M>>>=0,N>>>=0,D>>>=0,this===u)return 0;for(var F=D-N,j=M-h,ee=Math.min(F,j),re=this.slice(N,D),oe=u.slice(h,M),ae=0;ae<ee;++ae)if(re[ae]!==oe[ae]){F=re[ae],j=oe[ae];break}return F<j?-1:j<F?1:0};function G(y,u,h,M,N){if(y.length===0)return-1;if(typeof h=="string"?(M=h,h=0):h>2147483647?h=2147483647:h<-2147483648&&(h=-2147483648),h=+h,q(h)&&(h=N?0:y.length-1),h<0&&(h=y.length+h),h>=y.length){if(N)return-1;h=y.length-1}else if(h<0)if(N)h=0;else return-1;if(typeof u=="string"&&(u=a.from(u,M)),a.isBuffer(u))return u.length===0?-1:Q(y,u,h,M,N);if(typeof u=="number")return u=u&255,typeof Uint8Array.prototype.indexOf=="function"?N?Uint8Array.prototype.indexOf.call(y,u,h):Uint8Array.prototype.lastIndexOf.call(y,u,h):Q(y,[u],h,M,N);throw new TypeError("val must be string, number or Buffer")}function Q(y,u,h,M,N){var D=1,F=y.length,j=u.length;if(M!==void 0&&(M=String(M).toLowerCase(),M==="ucs2"||M==="ucs-2"||M==="utf16le"||M==="utf-16le")){if(y.length<2||u.length<2)return-1;D=2,F/=2,j/=2,h/=2}function ee(he,ge){return D===1?he[ge]:he.readUInt16BE(ge*D)}var re;if(N){var oe=-1;for(re=h;re<F;re++)if(ee(y,re)===ee(u,oe===-1?0:re-oe)){if(oe===-1&&(oe=re),re-oe+1===j)return oe*D}else oe!==-1&&(re-=re-oe),oe=-1}else for(h+j>F&&(h=F-j),re=h;re>=0;re--){for(var ae=!0,de=0;de<j;de++)if(ee(y,re+de)!==ee(u,de)){ae=!1;break}if(ae)return re}return-1}a.prototype.includes=function(u,h,M){return this.indexOf(u,h,M)!==-1},a.prototype.indexOf=function(u,h,M){return G(this,u,h,M,!0)},a.prototype.lastIndexOf=function(u,h,M){return G(this,u,h,M,!1)};function V(y,u,h,M){h=Number(h)||0;var N=y.length-h;M?(M=Number(M),M>N&&(M=N)):M=N;var D=u.length;M>D/2&&(M=D/2);for(var F=0;F<M;++F){var j=parseInt(u.substr(F*2,2),16);if(q(j))return F;y[h+F]=j}return F}function ie(y,u,h,M){return S(Y(u,y.length-h),y,h,M)}function v(y,u,h,M){return S(X(u),y,h,M)}function l(y,u,h,M){return S(te(u),y,h,M)}function d(y,u,h,M){return S(se(u,y.length-h),y,h,M)}a.prototype.write=function(u,h,M,N){if(h===void 0)N="utf8",M=this.length,h=0;else if(M===void 0&&typeof h=="string")N=h,M=this.length,h=0;else if(isFinite(h))h=h>>>0,isFinite(M)?(M=M>>>0,N===void 0&&(N="utf8")):(N=M,M=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var D=this.length-h;if((M===void 0||M>D)&&(M=D),u.length>0&&(M<0||h<0)||h>this.length)throw new RangeError("Attempt to write outside buffer bounds");N||(N="utf8");for(var F=!1;;)switch(N){case"hex":return V(this,u,h,M);case"utf8":case"utf-8":return ie(this,u,h,M);case"ascii":case"latin1":case"binary":return v(this,u,h,M);case"base64":return l(this,u,h,M);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return d(this,u,h,M);default:if(F)throw new TypeError("Unknown encoding: "+N);N=(""+N).toLowerCase(),F=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function _(y,u,h){return u===0&&h===y.length?t.fromByteArray(y):t.fromByteArray(y.slice(u,h))}function w(y,u,h){h=Math.min(y.length,h);for(var M=[],N=u;N<h;){var D=y[N],F=null,j=D>239?4:D>223?3:D>191?2:1;if(N+j<=h){var ee,re,oe,ae;switch(j){case 1:D<128&&(F=D);break;case 2:ee=y[N+1],(ee&192)===128&&(ae=(D&31)<<6|ee&63,ae>127&&(F=ae));break;case 3:ee=y[N+1],re=y[N+2],(ee&192)===128&&(re&192)===128&&(ae=(D&15)<<12|(ee&63)<<6|re&63,ae>2047&&(ae<55296||ae>57343)&&(F=ae));break;case 4:ee=y[N+1],re=y[N+2],oe=y[N+3],(ee&192)===128&&(re&192)===128&&(oe&192)===128&&(ae=(D&15)<<18|(ee&63)<<12|(re&63)<<6|oe&63,ae>65535&&ae<1114112&&(F=ae))}}F===null?(F=65533,j=1):F>65535&&(F-=65536,M.push(F>>>10&1023|55296),F=56320|F&1023),M.push(F),N+=j}return k(M)}var E=4096;function k(y){var u=y.length;if(u<=E)return String.fromCharCode.apply(String,y);for(var h="",M=0;M<u;)h+=String.fromCharCode.apply(String,y.slice(M,M+=E));return h}function W(y,u,h){var M="";h=Math.min(y.length,h);for(var N=u;N<h;++N)M+=String.fromCharCode(y[N]&127);return M}function I(y,u,h){var M="";h=Math.min(y.length,h);for(var N=u;N<h;++N)M+=String.fromCharCode(y[N]);return M}function f(y,u,h){var M=y.length;(!u||u<0)&&(u=0),(!h||h<0||h>M)&&(h=M);for(var N="",D=u;D<h;++D)N+=J[y[D]];return N}function O(y,u,h){for(var M=y.slice(u,h),N="",D=0;D<M.length-1;D+=2)N+=String.fromCharCode(M[D]+M[D+1]*256);return N}a.prototype.slice=function(u,h){var M=this.length;u=~~u,h=h===void 0?M:~~h,u<0?(u+=M,u<0&&(u=0)):u>M&&(u=M),h<0?(h+=M,h<0&&(h=0)):h>M&&(h=M),h<u&&(h=u);var N=this.subarray(u,h);return Object.setPrototypeOf(N,a.prototype),N};function ne(y,u,h){if(y%1!==0||y<0)throw new RangeError("offset is not uint");if(y+u>h)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(u,h,M){u=u>>>0,h=h>>>0,M||ne(u,h,this.length);for(var N=this[u],D=1,F=0;++F<h&&(D*=256);)N+=this[u+F]*D;return N},a.prototype.readUintBE=a.prototype.readUIntBE=function(u,h,M){u=u>>>0,h=h>>>0,M||ne(u,h,this.length);for(var N=this[u+--h],D=1;h>0&&(D*=256);)N+=this[u+--h]*D;return N},a.prototype.readUint8=a.prototype.readUInt8=function(u,h){return u=u>>>0,h||ne(u,1,this.length),this[u]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(u,h){return u=u>>>0,h||ne(u,2,this.length),this[u]|this[u+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(u,h){return u=u>>>0,h||ne(u,2,this.length),this[u]<<8|this[u+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(u,h){return u=u>>>0,h||ne(u,4,this.length),(this[u]|this[u+1]<<8|this[u+2]<<16)+this[u+3]*16777216},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(u,h){return u=u>>>0,h||ne(u,4,this.length),this[u]*16777216+(this[u+1]<<16|this[u+2]<<8|this[u+3])},a.prototype.readIntLE=function(u,h,M){u=u>>>0,h=h>>>0,M||ne(u,h,this.length);for(var N=this[u],D=1,F=0;++F<h&&(D*=256);)N+=this[u+F]*D;return D*=128,N>=D&&(N-=Math.pow(2,8*h)),N},a.prototype.readIntBE=function(u,h,M){u=u>>>0,h=h>>>0,M||ne(u,h,this.length);for(var N=h,D=1,F=this[u+--N];N>0&&(D*=256);)F+=this[u+--N]*D;return D*=128,F>=D&&(F-=Math.pow(2,8*h)),F},a.prototype.readInt8=function(u,h){return u=u>>>0,h||ne(u,1,this.length),this[u]&128?(255-this[u]+1)*-1:this[u]},a.prototype.readInt16LE=function(u,h){u=u>>>0,h||ne(u,2,this.length);var M=this[u]|this[u+1]<<8;return M&32768?M|4294901760:M},a.prototype.readInt16BE=function(u,h){u=u>>>0,h||ne(u,2,this.length);var M=this[u+1]|this[u]<<8;return M&32768?M|4294901760:M},a.prototype.readInt32LE=function(u,h){return u=u>>>0,h||ne(u,4,this.length),this[u]|this[u+1]<<8|this[u+2]<<16|this[u+3]<<24},a.prototype.readInt32BE=function(u,h){return u=u>>>0,h||ne(u,4,this.length),this[u]<<24|this[u+1]<<16|this[u+2]<<8|this[u+3]},a.prototype.readFloatLE=function(u,h){return u=u>>>0,h||ne(u,4,this.length),n.read(this,u,!0,23,4)},a.prototype.readFloatBE=function(u,h){return u=u>>>0,h||ne(u,4,this.length),n.read(this,u,!1,23,4)},a.prototype.readDoubleLE=function(u,h){return u=u>>>0,h||ne(u,8,this.length),n.read(this,u,!0,52,8)},a.prototype.readDoubleBE=function(u,h){return u=u>>>0,h||ne(u,8,this.length),n.read(this,u,!1,52,8)};function Z(y,u,h,M,N,D){if(!a.isBuffer(y))throw new TypeError('"buffer" argument must be a Buffer instance');if(u>N||u<D)throw new RangeError('"value" argument is out of bounds');if(h+M>y.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(u,h,M,N){if(u=+u,h=h>>>0,M=M>>>0,!N){var D=Math.pow(2,8*M)-1;Z(this,u,h,M,D,0)}var F=1,j=0;for(this[h]=u&255;++j<M&&(F*=256);)this[h+j]=u/F&255;return h+M},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(u,h,M,N){if(u=+u,h=h>>>0,M=M>>>0,!N){var D=Math.pow(2,8*M)-1;Z(this,u,h,M,D,0)}var F=M-1,j=1;for(this[h+F]=u&255;--F>=0&&(j*=256);)this[h+F]=u/j&255;return h+M},a.prototype.writeUint8=a.prototype.writeUInt8=function(u,h,M){return u=+u,h=h>>>0,M||Z(this,u,h,1,255,0),this[h]=u&255,h+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(u,h,M){return u=+u,h=h>>>0,M||Z(this,u,h,2,65535,0),this[h]=u&255,this[h+1]=u>>>8,h+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(u,h,M){return u=+u,h=h>>>0,M||Z(this,u,h,2,65535,0),this[h]=u>>>8,this[h+1]=u&255,h+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(u,h,M){return u=+u,h=h>>>0,M||Z(this,u,h,4,4294967295,0),this[h+3]=u>>>24,this[h+2]=u>>>16,this[h+1]=u>>>8,this[h]=u&255,h+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(u,h,M){return u=+u,h=h>>>0,M||Z(this,u,h,4,4294967295,0),this[h]=u>>>24,this[h+1]=u>>>16,this[h+2]=u>>>8,this[h+3]=u&255,h+4},a.prototype.writeIntLE=function(u,h,M,N){if(u=+u,h=h>>>0,!N){var D=Math.pow(2,8*M-1);Z(this,u,h,M,D-1,-D)}var F=0,j=1,ee=0;for(this[h]=u&255;++F<M&&(j*=256);)u<0&&ee===0&&this[h+F-1]!==0&&(ee=1),this[h+F]=(u/j>>0)-ee&255;return h+M},a.prototype.writeIntBE=function(u,h,M,N){if(u=+u,h=h>>>0,!N){var D=Math.pow(2,8*M-1);Z(this,u,h,M,D-1,-D)}var F=M-1,j=1,ee=0;for(this[h+F]=u&255;--F>=0&&(j*=256);)u<0&&ee===0&&this[h+F+1]!==0&&(ee=1),this[h+F]=(u/j>>0)-ee&255;return h+M},a.prototype.writeInt8=function(u,h,M){return u=+u,h=h>>>0,M||Z(this,u,h,1,127,-128),u<0&&(u=255+u+1),this[h]=u&255,h+1},a.prototype.writeInt16LE=function(u,h,M){return u=+u,h=h>>>0,M||Z(this,u,h,2,32767,-32768),this[h]=u&255,this[h+1]=u>>>8,h+2},a.prototype.writeInt16BE=function(u,h,M){return u=+u,h=h>>>0,M||Z(this,u,h,2,32767,-32768),this[h]=u>>>8,this[h+1]=u&255,h+2},a.prototype.writeInt32LE=function(u,h,M){return u=+u,h=h>>>0,M||Z(this,u,h,4,2147483647,-2147483648),this[h]=u&255,this[h+1]=u>>>8,this[h+2]=u>>>16,this[h+3]=u>>>24,h+4},a.prototype.writeInt32BE=function(u,h,M){return u=+u,h=h>>>0,M||Z(this,u,h,4,2147483647,-2147483648),u<0&&(u=4294967295+u+1),this[h]=u>>>24,this[h+1]=u>>>16,this[h+2]=u>>>8,this[h+3]=u&255,h+4};function le(y,u,h,M,N,D){if(h+M>y.length)throw new RangeError("Index out of range");if(h<0)throw new RangeError("Index out of range")}function ue(y,u,h,M,N){return u=+u,h=h>>>0,N||le(y,u,h,4),n.write(y,u,h,M,23,4),h+4}a.prototype.writeFloatLE=function(u,h,M){return ue(this,u,h,!0,M)},a.prototype.writeFloatBE=function(u,h,M){return ue(this,u,h,!1,M)};function g(y,u,h,M,N){return u=+u,h=h>>>0,N||le(y,u,h,8),n.write(y,u,h,M,52,8),h+8}a.prototype.writeDoubleLE=function(u,h,M){return g(this,u,h,!0,M)},a.prototype.writeDoubleBE=function(u,h,M){return g(this,u,h,!1,M)},a.prototype.copy=function(u,h,M,N){if(!a.isBuffer(u))throw new TypeError("argument should be a Buffer");if(M||(M=0),!N&&N!==0&&(N=this.length),h>=u.length&&(h=u.length),h||(h=0),N>0&&N<M&&(N=M),N===M||u.length===0||this.length===0)return 0;if(h<0)throw new RangeError("targetStart out of bounds");if(M<0||M>=this.length)throw new RangeError("Index out of range");if(N<0)throw new RangeError("sourceEnd out of bounds");N>this.length&&(N=this.length),u.length-h<N-M&&(N=u.length-h+M);var D=N-M;return this===u&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(h,M,N):Uint8Array.prototype.set.call(u,this.subarray(M,N),h),D},a.prototype.fill=function(u,h,M,N){if(typeof u=="string"){if(typeof h=="string"?(N=h,h=0,M=this.length):typeof M=="string"&&(N=M,M=this.length),N!==void 0&&typeof N!="string")throw new TypeError("encoding must be a string");if(typeof N=="string"&&!a.isEncoding(N))throw new TypeError("Unknown encoding: "+N);if(u.length===1){var D=u.charCodeAt(0);(N==="utf8"&&D<128||N==="latin1")&&(u=D)}}else typeof u=="number"?u=u&255:typeof u=="boolean"&&(u=Number(u));if(h<0||this.length<h||this.length<M)throw new RangeError("Out of range index");if(M<=h)return this;h=h>>>0,M=M===void 0?this.length:M>>>0,u||(u=0);var F;if(typeof u=="number")for(F=h;F<M;++F)this[F]=u;else{var j=a.isBuffer(u)?u:a.from(u,N),ee=j.length;if(ee===0)throw new TypeError('The value "'+u+'" is invalid for argument "value"');for(F=0;F<M-h;++F)this[F+h]=j[F%ee]}return this};var z=/[^+/0-9A-Za-z-_]/g;function K(y){if(y=y.split("=")[0],y=y.trim().replace(z,""),y.length<2)return"";for(;y.length%4!==0;)y=y+"=";return y}function Y(y,u){u=u||1/0;for(var h,M=y.length,N=null,D=[],F=0;F<M;++F){if(h=y.charCodeAt(F),h>55295&&h<57344){if(!N){if(h>56319){(u-=3)>-1&&D.push(239,191,189);continue}else if(F+1===M){(u-=3)>-1&&D.push(239,191,189);continue}N=h;continue}if(h<56320){(u-=3)>-1&&D.push(239,191,189),N=h;continue}h=(N-55296<<10|h-56320)+65536}else N&&(u-=3)>-1&&D.push(239,191,189);if(N=null,h<128){if((u-=1)<0)break;D.push(h)}else if(h<2048){if((u-=2)<0)break;D.push(h>>6|192,h&63|128)}else if(h<65536){if((u-=3)<0)break;D.push(h>>12|224,h>>6&63|128,h&63|128)}else if(h<1114112){if((u-=4)<0)break;D.push(h>>18|240,h>>12&63|128,h>>6&63|128,h&63|128)}else throw new Error("Invalid code point")}return D}function X(y){for(var u=[],h=0;h<y.length;++h)u.push(y.charCodeAt(h)&255);return u}function se(y,u){for(var h,M,N,D=[],F=0;F<y.length&&!((u-=2)<0);++F)h=y.charCodeAt(F),M=h>>8,N=h%256,D.push(N),D.push(M);return D}function te(y){return t.toByteArray(K(y))}function S(y,u,h,M){for(var N=0;N<M&&!(N+h>=u.length||N>=y.length);++N)u[N+h]=y[N];return N}function U(y,u){return y instanceof u||y!=null&&y.constructor!=null&&y.constructor.name!=null&&y.constructor.name===u.name}function q(y){return y!==y}var J=function(){for(var y="0123456789abcdef",u=new Array(256),h=0;h<16;++h)for(var M=h*16,N=0;N<16;++N)u[M+N]=y[h]+y[N];return u}()})(Jd);var du=xn,Qd=Kd,Yb=Jd.Buffer;function ll(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}ll.prototype.initialize=function(t){this.degree=t,this.genPoly=Qd.generateECPolynomial(this.degree)};ll.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");var n=du.alloc(this.degree),r=Yb.concat([t,n],t.length+this.degree),i=Qd.mod(r,this.genPoly),o=this.degree-i.length;if(o>0){var s=du.alloc(this.degree);return i.copy(s,o),s}return i};var Jb=ll,Zd={},Mn={},cl={};cl.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40};var jt={},Xd="[0-9]+",Gb="[A-Z $%*+\\-./:]+",Jr="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";Jr=Jr.replace(/u/g,"\\u");var Qb="(?:(?![A-Z0-9 $%*+\\-./:]|"+Jr+`)(?:.|[\r
]))+`;jt.KANJI=new RegExp(Jr,"g");jt.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");jt.BYTE=new RegExp(Qb,"g");jt.NUMERIC=new RegExp(Xd,"g");jt.ALPHANUMERIC=new RegExp(Gb,"g");var Zb=new RegExp("^"+Jr+"$"),Xb=new RegExp("^"+Xd+"$"),eE=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");jt.testKanji=function(t){return Zb.test(t)};jt.testNumeric=function(t){return Xb.test(t)};jt.testAlphanumeric=function(t){return eE.test(t)};(function(e){var t=cl,n=jt;e.NUMERIC={id:"Numeric",bit:1<<0,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:1<<1,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:1<<2,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:1<<3,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(o,s){if(!o.ccBits)throw new Error("Invalid mode: "+o);if(!t.isValid(s))throw new Error("Invalid version: "+s);return s>=1&&s<10?o.ccBits[0]:s<27?o.ccBits[1]:o.ccBits[2]},e.getBestModeForData=function(o){return n.testNumeric(o)?e.NUMERIC:n.testAlphanumeric(o)?e.ALPHANUMERIC:n.testKanji(o)?e.KANJI:e.BYTE},e.toString=function(o){if(o&&o.id)return o.id;throw new Error("Invalid mode")},e.isValid=function(o){return o&&o.bit&&o.ccBits};function r(i){if(typeof i!="string")throw new Error("Param is not a string");var o=i.toLowerCase();switch(o){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+i)}}e.from=function(o,s){if(e.isValid(o))return o;try{return r(o)}catch{return s}}})(Mn);(function(e){var t=yt,n=fo,r=uo,i=Mn,o=cl,s=il,a=1<<12|1<<11|1<<10|1<<9|1<<8|1<<5|1<<2|1<<0,c=t.getBCHDigit(a);function m(R,C,P){for(var T=1;T<=40;T++)if(C<=e.getCapacity(T,P,R))return T}function p(R,C){return i.getCharCountIndicator(R,C)+4}function b(R,C){var P=0;return R.forEach(function(T){var A=p(T.mode,C);P+=A+T.getBitsLength()}),P}function x(R,C){for(var P=1;P<=40;P++){var T=b(R,P);if(T<=e.getCapacity(P,C,i.MIXED))return P}}e.from=function(C,P){return o.isValid(C)?parseInt(C,10):P},e.getCapacity=function(C,P,T){if(!o.isValid(C))throw new Error("Invalid QR Code version");typeof T>"u"&&(T=i.BYTE);var A=t.getSymbolTotalCodewords(C),L=n.getTotalCodewordsCount(C,P),B=(A-L)*8;if(T===i.MIXED)return B;var $=B-p(T,C);switch(T){case i.NUMERIC:return Math.floor($/10*3);case i.ALPHANUMERIC:return Math.floor($/11*2);case i.KANJI:return Math.floor($/13);case i.BYTE:default:return Math.floor($/8)}},e.getBestVersionForData=function(C,P){var T,A=r.from(P,r.M);if(s(C)){if(C.length>1)return x(C,A);if(C.length===0)return 1;T=C[0]}else T=C;return m(T.mode,T.getLength(),A)},e.getEncodedBits=function(C){if(!o.isValid(C)||C<7)throw new Error("Invalid QR Code version");for(var P=C<<12;t.getBCHDigit(P)-c>=0;)P^=a<<t.getBCHDigit(P)-c;return C<<12|P}})(Zd);var e0={},Ns=yt,t0=1<<10|1<<8|1<<5|1<<4|1<<2|1<<1|1<<0,tE=1<<14|1<<12|1<<10|1<<4|1<<1,pu=Ns.getBCHDigit(t0);e0.getEncodedBits=function(t,n){for(var r=t.bit<<3|n,i=r<<10;Ns.getBCHDigit(i)-pu>=0;)i^=t0<<Ns.getBCHDigit(i)-pu;return(r<<10|i)^tE};var n0={},nE=Mn;function ur(e){this.mode=nE.NUMERIC,this.data=e.toString()}ur.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)};ur.prototype.getLength=function(){return this.data.length};ur.prototype.getBitsLength=function(){return ur.getBitsLength(this.data.length)};ur.prototype.write=function(t){var n,r,i;for(n=0;n+3<=this.data.length;n+=3)r=this.data.substr(n,3),i=parseInt(r,10),t.put(i,10);var o=this.data.length-n;o>0&&(r=this.data.substr(n),i=parseInt(r,10),t.put(i,o*3+1))};var rE=ur,iE=Mn,Ho=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function fr(e){this.mode=iE.ALPHANUMERIC,this.data=e}fr.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};fr.prototype.getLength=function(){return this.data.length};fr.prototype.getBitsLength=function(){return fr.getBitsLength(this.data.length)};fr.prototype.write=function(t){var n;for(n=0;n+2<=this.data.length;n+=2){var r=Ho.indexOf(this.data[n])*45;r+=Ho.indexOf(this.data[n+1]),t.put(r,11)}this.data.length%2&&t.put(Ho.indexOf(this.data[n]),6)};var oE=fr,sE=xn,aE=Mn;function hr(e){this.mode=aE.BYTE,this.data=sE.from(e)}hr.getBitsLength=function(t){return t*8};hr.prototype.getLength=function(){return this.data.length};hr.prototype.getBitsLength=function(){return hr.getBitsLength(this.data.length)};hr.prototype.write=function(e){for(var t=0,n=this.data.length;t<n;t++)e.put(this.data[t],8)};var lE=hr,cE=Mn,uE=yt;function dr(e){this.mode=cE.KANJI,this.data=e}dr.getBitsLength=function(t){return t*13};dr.prototype.getLength=function(){return this.data.length};dr.prototype.getBitsLength=function(){return dr.getBitsLength(this.data.length)};dr.prototype.write=function(e){var t;for(t=0;t<this.data.length;t++){var n=uE.toSJIS(this.data[t]);if(n>=33088&&n<=40956)n-=33088;else if(n>=57408&&n<=60351)n-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+`
Make sure your charset is UTF-8`);n=(n>>>8&255)*192+(n&255),e.put(n,13)}};var fE=dr,Ps={},hE={get exports(){return Ps},set exports(e){Ps=e}};(function(e){var t={single_source_shortest_paths:function(n,r,i){var o={},s={};s[r]=0;var a=t.PriorityQueue.make();a.push(r,0);for(var c,m,p,b,x,R,C,P,T;!a.empty();){c=a.pop(),m=c.value,b=c.cost,x=n[m]||{};for(p in x)x.hasOwnProperty(p)&&(R=x[p],C=b+R,P=s[p],T=typeof s[p]>"u",(T||P>C)&&(s[p]=C,a.push(p,C),o[p]=m))}if(typeof i<"u"&&typeof s[i]>"u"){var A=["Could not find a path from ",r," to ",i,"."].join("");throw new Error(A)}return o},extract_shortest_path_from_predecessor_list:function(n,r){for(var i=[],o=r;o;)i.push(o),n[o],o=n[o];return i.reverse(),i},find_path:function(n,r,i){var o=t.single_source_shortest_paths(n,r,i);return t.extract_shortest_path_from_predecessor_list(o,i)},PriorityQueue:{make:function(n){var r=t.PriorityQueue,i={},o;n=n||{};for(o in r)r.hasOwnProperty(o)&&(i[o]=r[o]);return i.queue=[],i.sorter=n.sorter||r.default_sorter,i},default_sorter:function(n,r){return n.cost-r.cost},push:function(n,r){var i={value:n,cost:r};this.queue.push(i),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=t})(hE);(function(e){var t=Mn,n=rE,r=oE,i=lE,o=fE,s=jt,a=yt,c=Ps;function m(A){return unescape(encodeURIComponent(A)).length}function p(A,L,B){for(var $=[],H;(H=A.exec(B))!==null;)$.push({data:H[0],index:H.index,mode:L,length:H[0].length});return $}function b(A){var L=p(s.NUMERIC,t.NUMERIC,A),B=p(s.ALPHANUMERIC,t.ALPHANUMERIC,A),$,H;a.isKanjiModeEnabled()?($=p(s.BYTE,t.BYTE,A),H=p(s.KANJI,t.KANJI,A)):($=p(s.BYTE_KANJI,t.BYTE,A),H=[]);var G=L.concat(B,$,H);return G.sort(function(Q,V){return Q.index-V.index}).map(function(Q){return{data:Q.data,mode:Q.mode,length:Q.length}})}function x(A,L){switch(L){case t.NUMERIC:return n.getBitsLength(A);case t.ALPHANUMERIC:return r.getBitsLength(A);case t.KANJI:return o.getBitsLength(A);case t.BYTE:return i.getBitsLength(A)}}function R(A){return A.reduce(function(L,B){var $=L.length-1>=0?L[L.length-1]:null;return $&&$.mode===B.mode?(L[L.length-1].data+=B.data,L):(L.push(B),L)},[])}function C(A){for(var L=[],B=0;B<A.length;B++){var $=A[B];switch($.mode){case t.NUMERIC:L.push([$,{data:$.data,mode:t.ALPHANUMERIC,length:$.length},{data:$.data,mode:t.BYTE,length:$.length}]);break;case t.ALPHANUMERIC:L.push([$,{data:$.data,mode:t.BYTE,length:$.length}]);break;case t.KANJI:L.push([$,{data:$.data,mode:t.BYTE,length:m($.data)}]);break;case t.BYTE:L.push([{data:$.data,mode:t.BYTE,length:m($.data)}])}}return L}function P(A,L){for(var B={},$={start:{}},H=["start"],G=0;G<A.length;G++){for(var Q=A[G],V=[],ie=0;ie<Q.length;ie++){var v=Q[ie],l=""+G+ie;V.push(l),B[l]={node:v,lastCount:0},$[l]={};for(var d=0;d<H.length;d++){var _=H[d];B[_]&&B[_].node.mode===v.mode?($[_][l]=x(B[_].lastCount+v.length,v.mode)-x(B[_].lastCount,v.mode),B[_].lastCount+=v.length):(B[_]&&(B[_].lastCount=v.length),$[_][l]=x(v.length,v.mode)+4+t.getCharCountIndicator(v.mode,L))}}H=V}for(d=0;d<H.length;d++)$[H[d]].end=0;return{map:$,table:B}}function T(A,L){var B,$=t.getBestModeForData(A);if(B=t.from(L,$),B!==t.BYTE&&B.bit<$.bit)throw new Error('"'+A+'" cannot be encoded with mode '+t.toString(B)+`.
Suggested mode is: `+t.toString($));switch(B===t.KANJI&&!a.isKanjiModeEnabled()&&(B=t.BYTE),B){case t.NUMERIC:return new n(A);case t.ALPHANUMERIC:return new r(A);case t.KANJI:return new o(A);case t.BYTE:return new i(A)}}e.fromArray=function(L){return L.reduce(function(B,$){return typeof $=="string"?B.push(T($,null)):$.data&&B.push(T($.data,$.mode)),B},[])},e.fromString=function(L,B){for(var $=b(L,a.isKanjiModeEnabled()),H=C($),G=P(H,B),Q=c.find_path(G.map,"start","end"),V=[],ie=1;ie<Q.length-1;ie++)V.push(G.table[Q[ie]].node);return e.fromArray(R(V))},e.rawSplit=function(L){return e.fromArray(b(L,a.isKanjiModeEnabled()))}})(n0);var mu=xn,mo=yt,qo=uo,dE=Lb,pE=Db,mE=qd,gE=zd,Fs=Vd,Bs=fo,_E=Jb,Li=Zd,vE=e0,yE=Mn,zo=n0,wE=il;function bE(e,t){for(var n=e.size,r=gE.getPositions(t),i=0;i<r.length;i++)for(var o=r[i][0],s=r[i][1],a=-1;a<=7;a++)if(!(o+a<=-1||n<=o+a))for(var c=-1;c<=7;c++)s+c<=-1||n<=s+c||(a>=0&&a<=6&&(c===0||c===6)||c>=0&&c<=6&&(a===0||a===6)||a>=2&&a<=4&&c>=2&&c<=4?e.set(o+a,s+c,!0,!0):e.set(o+a,s+c,!1,!0))}function EE(e){for(var t=e.size,n=8;n<t-8;n++){var r=n%2===0;e.set(n,6,r,!0),e.set(6,n,r,!0)}}function xE(e,t){for(var n=mE.getPositions(t),r=0;r<n.length;r++)for(var i=n[r][0],o=n[r][1],s=-2;s<=2;s++)for(var a=-2;a<=2;a++)s===-2||s===2||a===-2||a===2||s===0&&a===0?e.set(i+s,o+a,!0,!0):e.set(i+s,o+a,!1,!0)}function ME(e,t){for(var n=e.size,r=Li.getEncodedBits(t),i,o,s,a=0;a<18;a++)i=Math.floor(a/3),o=a%3+n-8-3,s=(r>>a&1)===1,e.set(i,o,s,!0),e.set(o,i,s,!0)}function Vo(e,t,n){var r=e.size,i=vE.getEncodedBits(t,n),o,s;for(o=0;o<15;o++)s=(i>>o&1)===1,o<6?e.set(o,8,s,!0):o<8?e.set(o+1,8,s,!0):e.set(r-15+o,8,s,!0),o<8?e.set(8,r-o-1,s,!0):o<9?e.set(8,15-o-1+1,s,!0):e.set(8,15-o-1,s,!0);e.set(r-8,8,1,!0)}function SE(e,t){for(var n=e.size,r=-1,i=n-1,o=7,s=0,a=n-1;a>0;a-=2)for(a===6&&a--;;){for(var c=0;c<2;c++)if(!e.isReserved(i,a-c)){var m=!1;s<t.length&&(m=(t[s]>>>o&1)===1),e.set(i,a-c,m),o--,o===-1&&(s++,o=7)}if(i+=r,i<0||n<=i){i-=r,r=-r;break}}}function CE(e,t,n){var r=new dE;n.forEach(function(m){r.put(m.mode.bit,4),r.put(m.getLength(),yE.getCharCountIndicator(m.mode,e)),m.write(r)});var i=mo.getSymbolTotalCodewords(e),o=Bs.getTotalCodewordsCount(e,t),s=(i-o)*8;for(r.getLengthInBits()+4<=s&&r.put(0,4);r.getLengthInBits()%8!==0;)r.putBit(0);for(var a=(s-r.getLengthInBits())/8,c=0;c<a;c++)r.put(c%2?17:236,8);return TE(r,e,t)}function TE(e,t,n){for(var r=mo.getSymbolTotalCodewords(t),i=Bs.getTotalCodewordsCount(t,n),o=r-i,s=Bs.getBlocksCount(t,n),a=r%s,c=s-a,m=Math.floor(r/s),p=Math.floor(o/s),b=p+1,x=m-p,R=new _E(x),C=0,P=new Array(s),T=new Array(s),A=0,L=mu.from(e.buffer),B=0;B<s;B++){var $=B<c?p:b;P[B]=L.slice(C,C+$),T[B]=R.encode(P[B]),C+=$,A=Math.max(A,$)}var H=mu.alloc(r),G=0,Q,V;for(Q=0;Q<A;Q++)for(V=0;V<s;V++)Q<P[V].length&&(H[G++]=P[V][Q]);for(Q=0;Q<x;Q++)for(V=0;V<s;V++)H[G++]=T[V][Q];return H}function AE(e,t,n,r){var i;if(wE(e))i=zo.fromArray(e);else if(typeof e=="string"){var o=t;if(!o){var s=zo.rawSplit(e);o=Li.getBestVersionForData(s,n)}i=zo.fromString(e,o||40)}else throw new Error("Invalid data");var a=Li.getBestVersionForData(i,n);if(!a)throw new Error("The amount of data is too big to be stored in a QR Code");if(!t)t=a;else if(t<a)throw new Error(`
The chosen QR Code version cannot contain this amount of data.
Minimum version required to store current data is: `+a+`.
`);var c=CE(t,n,i),m=mo.getSymbolSize(t),p=new pE(m);return bE(p,t),EE(p),xE(p,t),Vo(p,n,0),t>=7&&ME(p,t),SE(p,c),isNaN(r)&&(r=Fs.getBestMask(p,Vo.bind(null,p,n))),Fs.applyMask(r,p),Vo(p,n,r),{modules:p,version:t,errorCorrectionLevel:n,maskPattern:r,segments:i}}Ud.create=function(t,n){if(typeof t>"u"||t==="")throw new Error("No input text");var r=qo.M,i,o;return typeof n<"u"&&(r=qo.from(n.errorCorrectionLevel,qo.M),i=Li.from(n.version),o=Fs.from(n.maskPattern),n.toSJISFunc&&mo.setToSJISFunction(n.toSJISFunc)),AE(t,i,r,o)};var r0={},ul={};(function(e){function t(n){if(typeof n=="number"&&(n=n.toString()),typeof n!="string")throw new Error("Color should be defined as hex string");var r=n.slice().replace("#","").split("");if(r.length<3||r.length===5||r.length>8)throw new Error("Invalid hex color: "+n);(r.length===3||r.length===4)&&(r=Array.prototype.concat.apply([],r.map(function(o){return[o,o]}))),r.length===6&&r.push("F","F");var i=parseInt(r.join(""),16);return{r:i>>24&255,g:i>>16&255,b:i>>8&255,a:i&255,hex:"#"+r.slice(0,6).join("")}}e.getOptions=function(r){r||(r={}),r.color||(r.color={});var i=typeof r.margin>"u"||r.margin===null||r.margin<0?4:r.margin,o=r.width&&r.width>=21?r.width:void 0,s=r.scale||4;return{width:o,scale:o?4:s,margin:i,color:{dark:t(r.color.dark||"#000000ff"),light:t(r.color.light||"#ffffffff")},type:r.type,rendererOpts:r.rendererOpts||{}}},e.getScale=function(r,i){return i.width&&i.width>=r+i.margin*2?i.width/(r+i.margin*2):i.scale},e.getImageWidth=function(r,i){var o=e.getScale(r,i);return Math.floor((r+i.margin*2)*o)},e.qrToImageData=function(r,i,o){for(var s=i.modules.size,a=i.modules.data,c=e.getScale(s,o),m=Math.floor((s+o.margin*2)*c),p=o.margin*c,b=[o.color.light,o.color.dark],x=0;x<m;x++)for(var R=0;R<m;R++){var C=(x*m+R)*4,P=o.color.light;if(x>=p&&R>=p&&x<m-p&&R<m-p){var T=Math.floor((x-p)/c),A=Math.floor((R-p)/c);P=b[a[T*s+A]?1:0]}r[C++]=P.r,r[C++]=P.g,r[C++]=P.b,r[C]=P.a}}})(ul);(function(e){var t=ul;function n(i,o,s){i.clearRect(0,0,o.width,o.height),o.style||(o.style={}),o.height=s,o.width=s,o.style.height=s+"px",o.style.width=s+"px"}function r(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}e.render=function(o,s,a){var c=a,m=s;typeof c>"u"&&(!s||!s.getContext)&&(c=s,s=void 0),s||(m=r()),c=t.getOptions(c);var p=t.getImageWidth(o.modules.size,c),b=m.getContext("2d"),x=b.createImageData(p,p);return t.qrToImageData(x.data,o,c),n(b,m,p),b.putImageData(x,0,0),m},e.renderToDataURL=function(o,s,a){var c=a;typeof c>"u"&&(!s||!s.getContext)&&(c=s,s=void 0),c||(c={});var m=e.render(o,s,c),p=c.type||"image/png",b=c.rendererOpts||{};return m.toDataURL(p,b.quality)}})(r0);var i0={},IE=ul;function gu(e,t){var n=e.a/255,r=t+'="'+e.hex+'"';return n<1?r+" "+t+'-opacity="'+n.toFixed(2).slice(1)+'"':r}function Ko(e,t,n){var r=e+t;return typeof n<"u"&&(r+=" "+n),r}function RE(e,t,n){for(var r="",i=0,o=!1,s=0,a=0;a<e.length;a++){var c=Math.floor(a%t),m=Math.floor(a/t);!c&&!o&&(o=!0),e[a]?(s++,a>0&&c>0&&e[a-1]||(r+=o?Ko("M",c+n,.5+m+n):Ko("m",i,0),i=0,o=!1),c+1<t&&e[a+1]||(r+=Ko("h",s),s=0)):i++}return r}i0.render=function(t,n,r){var i=IE.getOptions(n),o=t.modules.size,s=t.modules.data,a=o+i.margin*2,c=i.color.light.a?"<path "+gu(i.color.light,"fill")+' d="M0 0h'+a+"v"+a+'H0z"/>':"",m="<path "+gu(i.color.dark,"stroke")+' d="'+RE(s,o,i.margin)+'"/>',p='viewBox="0 0 '+a+" "+a+'"',b=i.width?'width="'+i.width+'" height="'+i.width+'" ':"",x='<svg xmlns="http://www.w3.org/2000/svg" '+b+p+' shape-rendering="crispEdges">'+c+m+`</svg>
`;return typeof r=="function"&&r(null,x),x};var OE=Sb,Ls=Ud,o0=r0,kE=i0;function fl(e,t,n,r,i){var o=[].slice.call(arguments,1),s=o.length,a=typeof o[s-1]=="function";if(!a&&!OE())throw new Error("Callback required as last argument");if(a){if(s<2)throw new Error("Too few arguments provided");s===2?(i=n,n=t,t=r=void 0):s===3&&(t.getContext&&typeof i>"u"?(i=r,r=void 0):(i=r,r=n,n=t,t=void 0))}else{if(s<1)throw new Error("Too few arguments provided");return s===1?(n=t,t=r=void 0):s===2&&!t.getContext&&(r=n,n=t,t=void 0),new Promise(function(m,p){try{var b=Ls.create(n,r);m(e(b,t,r))}catch(x){p(x)}})}try{var c=Ls.create(n,r);i(null,e(c,t,r))}catch(m){i(m)}}oi.create=Ls.create;oi.toCanvas=fl.bind(null,o0.render);oi.toDataURL=fl.bind(null,o0.renderToDataURL);oi.toString=fl.bind(null,function(e,t,n){return kE.render(e,n)});var NE=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||n.forEach(function(i){e.addRange(i)}),t&&t.focus()}},PE=NE,_u={"text/plain":"Text","text/html":"Url",default:"Text"},FE="Copy to clipboard: #{key}, Enter";function BE(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function LE(e,t){var n,r,i,o,s,a,c=!1;t||(t={}),n=t.debug||!1;try{i=PE(),o=document.createRange(),s=document.getSelection(),a=document.createElement("span"),a.textContent=e,a.ariaHidden="true",a.style.all="unset",a.style.position="fixed",a.style.top=0,a.style.clip="rect(0, 0, 0, 0)",a.style.whiteSpace="pre",a.style.webkitUserSelect="text",a.style.MozUserSelect="text",a.style.msUserSelect="text",a.style.userSelect="text",a.addEventListener("copy",function(p){if(p.stopPropagation(),t.format)if(p.preventDefault(),typeof p.clipboardData>"u"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var b=_u[t.format]||_u.default;window.clipboardData.setData(b,e)}else p.clipboardData.clearData(),p.clipboardData.setData(t.format,e);t.onCopy&&(p.preventDefault(),t.onCopy(p.clipboardData))}),document.body.appendChild(a),o.selectNodeContents(a),s.addRange(o);var m=document.execCommand("copy");if(!m)throw new Error("copy command was unsuccessful");c=!0}catch(p){n&&console.error("unable to copy using execCommand: ",p),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),c=!0}catch(b){n&&console.error("unable to copy using clipboardData: ",b),n&&console.error("falling back to prompt"),r=BE("message"in t?t.message:FE),window.prompt(r,e)}}finally{s&&(typeof s.removeRange=="function"?s.removeRange(o):s.removeAllRanges()),a&&document.body.removeChild(a),i()}return c}var DE=LE,pe,Br,hl,s0,vu,dl,a0,Yt={},go=[],UE=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord/i;function Kt(e,t){for(var n in t)e[n]=t[n];return e}function l0(e){var t=e.parentNode;t&&t.removeChild(e)}function Qt(e,t,n){var r,i=arguments,o={};for(r in t)r!=="key"&&r!=="ref"&&(o[r]=t[r]);if(arguments.length>3)for(n=[n],r=3;r<arguments.length;r++)n.push(i[r]);if(n!=null&&(o.children=n),typeof e=="function"&&e.defaultProps!=null)for(r in e.defaultProps)o[r]===void 0&&(o[r]=e.defaultProps[r]);return Di(e,o,t&&t.key,t&&t.ref,null)}function Di(e,t,n,r,i){var o={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:i};return i==null&&(o.__v=o),pe.vnode&&pe.vnode(o),o}function c0(){return{}}function ai(e){return e.children}function kt(e,t){this.props=e,this.context=t}function Gr(e,t){if(t==null)return e.__?Gr(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?Gr(e):null}function u0(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return u0(e)}}function Mi(e){(!e.__d&&(e.__d=!0)&&Br.push(e)&&!hl++||vu!==pe.debounceRendering)&&((vu=pe.debounceRendering)||s0)($E)}function $E(){for(var e;hl=Br.length;)e=Br.sort(function(t,n){return t.__v.__b-n.__v.__b}),Br=[],e.some(function(t){var n,r,i,o,s,a,c;t.__d&&(a=(s=(n=t).__v).__e,(c=n.__P)&&(r=[],(i=Kt({},s)).__v=i,o=pl(c,s,i,n.__n,c.ownerSVGElement!==void 0,null,r,a??Gr(s)),h0(r,s),o!=a&&u0(s)))})}function f0(e,t,n,r,i,o,s,a,c){var m,p,b,x,R,C,P,T=n&&n.__k||go,A=T.length;if(a==Yt&&(a=o!=null?o[0]:A?Gr(n,0):null),m=0,t.__k=_n(t.__k,function(L){if(L!=null){if(L.__=t,L.__b=t.__b+1,(b=T[m])===null||b&&L.key==b.key&&L.type===b.type)T[m]=void 0;else for(p=0;p<A;p++){if((b=T[p])&&L.key==b.key&&L.type===b.type){T[p]=void 0;break}b=null}if(x=pl(e,L,b=b||Yt,r,i,o,s,a,c),(p=L.ref)&&b.ref!=p&&(P||(P=[]),b.ref&&P.push(b.ref,null,L),P.push(p,L.__c||x,L)),x!=null){var B;if(C==null&&(C=x),L.__d!==void 0)B=L.__d,L.__d=void 0;else if(o==b||x!=a||x.parentNode==null){e:if(a==null||a.parentNode!==e)e.appendChild(x),B=null;else{for(R=a,p=0;(R=R.nextSibling)&&p<A;p+=2)if(R==x)break e;e.insertBefore(x,a),B=a}t.type=="option"&&(e.value="")}a=B!==void 0?B:x.nextSibling,typeof t.type=="function"&&(t.__d=a)}else a&&b.__e==a&&a.parentNode!=e&&(a=Gr(b))}return m++,L}),t.__e=C,o!=null&&typeof t.type!="function")for(m=o.length;m--;)o[m]!=null&&l0(o[m]);for(m=A;m--;)T[m]!=null&&Lr(T[m],T[m]);if(P)for(m=0;m<P.length;m++)d0(P[m],P[++m],P[++m])}function _n(e,t,n){if(n==null&&(n=[]),e==null||typeof e=="boolean")t&&n.push(t(null));else if(Array.isArray(e))for(var r=0;r<e.length;r++)_n(e[r],t,n);else n.push(t?t(typeof e=="string"||typeof e=="number"?Di(null,e,null,null,e):e.__e!=null||e.__c!=null?Di(e.type,e.props,e.key,null,e.__v):e):e);return n}function WE(e,t,n,r,i){var o;for(o in n)o==="children"||o==="key"||o in t||Ui(e,o,null,n[o],r);for(o in t)i&&typeof t[o]!="function"||o==="children"||o==="key"||o==="value"||o==="checked"||n[o]===t[o]||Ui(e,o,t[o],n[o],r)}function yu(e,t,n){t[0]==="-"?e.setProperty(t,n):e[t]=typeof n=="number"&&UE.test(t)===!1?n+"px":n??""}function Ui(e,t,n,r,i){var o,s,a,c,m;if(i?t==="className"&&(t="class"):t==="class"&&(t="className"),t==="style")if(o=e.style,typeof n=="string")o.cssText=n;else{if(typeof r=="string"&&(o.cssText="",r=null),r)for(c in r)n&&c in n||yu(o,c,"");if(n)for(m in n)r&&n[m]===r[m]||yu(o,m,n[m])}else t[0]==="o"&&t[1]==="n"?(s=t!==(t=t.replace(/Capture$/,"")),a=t.toLowerCase(),t=(a in e?a:t).slice(2),n?(r||e.addEventListener(t,wu,s),(e.l||(e.l={}))[t]=n):e.removeEventListener(t,wu,s)):t!=="list"&&t!=="tagName"&&t!=="form"&&t!=="type"&&t!=="size"&&!i&&t in e?e[t]=n??"":typeof n!="function"&&t!=="dangerouslySetInnerHTML"&&(t!==(t=t.replace(/^xlink:?/,""))?n==null||n===!1?e.removeAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase()):e.setAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase(),n):n==null||n===!1&&!/^ar/.test(t)?e.removeAttribute(t):e.setAttribute(t,n))}function wu(e){this.l[e.type](pe.event?pe.event(e):e)}function pl(e,t,n,r,i,o,s,a,c){var m,p,b,x,R,C,P,T,A,L,B=t.type;if(t.constructor!==void 0)return null;(m=pe.__b)&&m(t);try{e:if(typeof B=="function"){if(T=t.props,A=(m=B.contextType)&&r[m.__c],L=m?A?A.props.value:m.__:r,n.__c?P=(p=t.__c=n.__c).__=p.__E:("prototype"in B&&B.prototype.render?t.__c=p=new B(T,L):(t.__c=p=new kt(T,L),p.constructor=B,p.render=HE),A&&A.sub(p),p.props=T,p.state||(p.state={}),p.context=L,p.__n=r,b=p.__d=!0,p.__h=[]),p.__s==null&&(p.__s=p.state),B.getDerivedStateFromProps!=null&&(p.__s==p.state&&(p.__s=Kt({},p.__s)),Kt(p.__s,B.getDerivedStateFromProps(T,p.__s))),x=p.props,R=p.state,b)B.getDerivedStateFromProps==null&&p.componentWillMount!=null&&p.componentWillMount(),p.componentDidMount!=null&&p.__h.push(p.componentDidMount);else{if(B.getDerivedStateFromProps==null&&T!==x&&p.componentWillReceiveProps!=null&&p.componentWillReceiveProps(T,L),!p.__e&&p.shouldComponentUpdate!=null&&p.shouldComponentUpdate(T,p.__s,L)===!1||t.__v===n.__v&&!p.__){for(p.props=T,p.state=p.__s,t.__v!==n.__v&&(p.__d=!1),p.__v=t,t.__e=n.__e,t.__k=n.__k,p.__h.length&&s.push(p),m=0;m<t.__k.length;m++)t.__k[m]&&(t.__k[m].__=t);break e}p.componentWillUpdate!=null&&p.componentWillUpdate(T,p.__s,L),p.componentDidUpdate!=null&&p.__h.push(function(){p.componentDidUpdate(x,R,C)})}p.context=L,p.props=T,p.state=p.__s,(m=pe.__r)&&m(t),p.__d=!1,p.__v=t,p.__P=e,m=p.render(p.props,p.state,p.context),t.__k=m!=null&&m.type==ai&&m.key==null?m.props.children:Array.isArray(m)?m:[m],p.getChildContext!=null&&(r=Kt(Kt({},r),p.getChildContext())),b||p.getSnapshotBeforeUpdate==null||(C=p.getSnapshotBeforeUpdate(x,R)),f0(e,t,n,r,i,o,s,a,c),p.base=t.__e,p.__h.length&&s.push(p),P&&(p.__E=p.__=null),p.__e=!1}else o==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=jE(n.__e,t,n,r,i,o,s,c);(m=pe.diffed)&&m(t)}catch($){t.__v=null,pe.__e($,t,n)}return t.__e}function h0(e,t){pe.__c&&pe.__c(t,e),e.some(function(n){try{e=n.__h,n.__h=[],e.some(function(r){r.call(n)})}catch(r){pe.__e(r,n.__v)}})}function jE(e,t,n,r,i,o,s,a){var c,m,p,b,x,R=n.props,C=t.props;if(i=t.type==="svg"||i,o!=null){for(c=0;c<o.length;c++)if((m=o[c])!=null&&((t.type===null?m.nodeType===3:m.localName===t.type)||e==m)){e=m,o[c]=null;break}}if(e==null){if(t.type===null)return document.createTextNode(C);e=i?document.createElementNS("http://www.w3.org/2000/svg",t.type):document.createElement(t.type,C.is&&{is:C.is}),o=null,a=!1}if(t.type===null)R!==C&&e.data!=C&&(e.data=C);else{if(o!=null&&(o=go.slice.call(e.childNodes)),p=(R=n.props||Yt).dangerouslySetInnerHTML,b=C.dangerouslySetInnerHTML,!a){if(R===Yt)for(R={},x=0;x<e.attributes.length;x++)R[e.attributes[x].name]=e.attributes[x].value;(b||p)&&(b&&p&&b.__html==p.__html||(e.innerHTML=b&&b.__html||""))}WE(e,C,R,i,a),b?t.__k=[]:(t.__k=t.props.children,f0(e,t,n,r,t.type!=="foreignObject"&&i,o,s,Yt,a)),a||("value"in C&&(c=C.value)!==void 0&&c!==e.value&&Ui(e,"value",c,R.value,!1),"checked"in C&&(c=C.checked)!==void 0&&c!==e.checked&&Ui(e,"checked",c,R.checked,!1))}return e}function d0(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(r){pe.__e(r,n)}}function Lr(e,t,n){var r,i,o;if(pe.unmount&&pe.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||d0(r,null,t)),n||typeof e.type=="function"||(n=(i=e.__e)!=null),e.__e=e.__d=void 0,(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(s){pe.__e(s,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&Lr(r[o],t,n);i!=null&&l0(i)}function HE(e,t,n){return this.constructor(e,n)}function Qr(e,t,n){var r,i,o;pe.__&&pe.__(e,t),i=(r=n===dl)?null:n&&n.__k||t.__k,e=Qt(ai,null,[e]),o=[],pl(t,(r?t:n||t).__k=e,i||Yt,Yt,t.ownerSVGElement!==void 0,n&&!r?[n]:i?null:go.slice.call(t.childNodes),o,n||Yt,r),h0(o,e)}function p0(e,t){Qr(e,t,dl)}function qE(e,t){var n,r;for(r in t=Kt(Kt({},e.props),t),arguments.length>2&&(t.children=go.slice.call(arguments,2)),n={},t)r!=="key"&&r!=="ref"&&(n[r]=t[r]);return Di(e.type,n,t.key||e.key,t.ref||e.ref,null)}function m0(e){var t={},n={__c:"__cC"+a0++,__:e,Consumer:function(r,i){return r.children(i)},Provider:function(r){var i,o=this;return this.getChildContext||(i=[],this.getChildContext=function(){return t[n.__c]=o,t},this.shouldComponentUpdate=function(s){o.props.value!==s.value&&i.some(function(a){a.context=s.value,Mi(a)})},this.sub=function(s){i.push(s);var a=s.componentWillUnmount;s.componentWillUnmount=function(){i.splice(i.indexOf(s),1),a&&a.call(s)}}),r.children}};return n.Consumer.contextType=n,n.Provider.__=n,n}pe={__e:function(e,t){for(var n,r;t=t.__;)if((n=t.__c)&&!n.__)try{if(n.constructor&&n.constructor.getDerivedStateFromError!=null&&(r=!0,n.setState(n.constructor.getDerivedStateFromError(e))),n.componentDidCatch!=null&&(r=!0,n.componentDidCatch(e)),r)return Mi(n.__E=n)}catch(i){e=i}throw e}},kt.prototype.setState=function(e,t){var n;n=this.__s!==this.state?this.__s:this.__s=Kt({},this.state),typeof e=="function"&&(e=e(n,this.props)),e&&Kt(n,e),e!=null&&this.__v&&(t&&this.__h.push(t),Mi(this))},kt.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Mi(this))},kt.prototype.render=ai,Br=[],hl=0,s0=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,dl=Yt,a0=0;var qn,pt,bu,pr=0,Ds=[],Eu=pe.__r,xu=pe.diffed,Mu=pe.__c,Su=pe.unmount;function Er(e,t){pe.__h&&pe.__h(pt,e,pr||t),pr=0;var n=pt.__H||(pt.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function ml(e){return pr=1,gl(E0,e)}function gl(e,t,n){var r=Er(qn++,2);return r.__c||(r.__c=pt,r.__=[n?n(t):E0(void 0,t),function(i){var o=e(r.__[0],i);r.__[0]!==o&&(r.__[0]=o,r.__c.setState({}))}]),r.__}function g0(e,t){var n=Er(qn++,3);!pe.__s&&vl(n.__H,t)&&(n.__=e,n.__H=t,pt.__H.__h.push(n))}function _l(e,t){var n=Er(qn++,4);!pe.__s&&vl(n.__H,t)&&(n.__=e,n.__H=t,pt.__h.push(n))}function _0(e){return pr=5,_o(function(){return{current:e}},[])}function v0(e,t,n){pr=6,_l(function(){typeof e=="function"?e(t()):e&&(e.current=t())},n==null?n:n.concat(e))}function _o(e,t){var n=Er(qn++,7);return vl(n.__H,t)?(n.__H=t,n.__h=e,n.__=e()):n.__}function y0(e,t){return pr=8,_o(function(){return e},t)}function w0(e){var t=pt.context[e.__c],n=Er(qn++,9);return n.__c=e,t?(n.__==null&&(n.__=!0,t.sub(pt)),t.props.value):e.__}function b0(e,t){pe.useDebugValue&&pe.useDebugValue(t?t(e):e)}function zE(e){var t=Er(qn++,10),n=ml();return t.__=e,pt.componentDidCatch||(pt.componentDidCatch=function(r){t.__&&t.__(r),n[1](r)}),[n[0],function(){n[1](void 0)}]}function VE(){Ds.some(function(e){if(e.__P)try{e.__H.__h.forEach(Us),e.__H.__h.forEach($s),e.__H.__h=[]}catch(t){return e.__H.__h=[],pe.__e(t,e.__v),!0}}),Ds=[]}function Us(e){e.t&&e.t()}function $s(e){var t=e.__();typeof t=="function"&&(e.t=t)}function vl(e,t){return!e||t.some(function(n,r){return n!==e[r]})}function E0(e,t){return typeof t=="function"?t(e):t}pe.__r=function(e){Eu&&Eu(e),qn=0,(pt=e.__c).__H&&(pt.__H.__h.forEach(Us),pt.__H.__h.forEach($s),pt.__H.__h=[])},pe.diffed=function(e){xu&&xu(e);var t=e.__c;if(t){var n=t.__H;n&&n.__h.length&&(Ds.push(t)!==1&&bu===pe.requestAnimationFrame||((bu=pe.requestAnimationFrame)||function(r){var i,o=function(){clearTimeout(s),cancelAnimationFrame(i),setTimeout(r)},s=setTimeout(o,100);typeof window<"u"&&(i=requestAnimationFrame(o))})(VE))}},pe.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Us),n.__h=n.__h.filter(function(r){return!r.__||$s(r)})}catch(r){t.some(function(i){i.__h&&(i.__h=[])}),t=[],pe.__e(r,n.__v)}}),Mu&&Mu(e,t)},pe.unmount=function(e){Su&&Su(e);var t=e.__c;if(t){var n=t.__H;if(n)try{n.__.forEach(function(r){return r.t&&r.t()})}catch(r){pe.__e(r,t.__v)}}};function yl(e,t){for(var n in t)e[n]=t[n];return e}function Ws(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}var x0=function(e){var t,n;function r(i){var o;return(o=e.call(this,i)||this).isPureReactComponent=!0,o}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r.prototype.shouldComponentUpdate=function(i,o){return Ws(this.props,i)||Ws(this.state,o)},r}(kt);function M0(e,t){function n(i){var o=this.props.ref,s=o==i.ref;return!s&&o&&(o.call?o(null):o.current=null),t?!t(this.props,i)||!s:Ws(this.props,i)}function r(i){return this.shouldComponentUpdate=n,Qt(e,yl({},i))}return r.prototype.isReactComponent=!0,r.displayName="Memo("+(e.displayName||e.name)+")",r.t=!0,r}var Cu=pe.__b;function S0(e){function t(n){var r=yl({},n);return delete r.ref,e(r,n.ref)}return t.prototype.isReactComponent=t.t=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}pe.__b=function(e){e.type&&e.type.t&&e.ref&&(e.props.ref=e.ref,e.ref=null),Cu&&Cu(e)};var Tu=function(e,t){return e?_n(e).reduce(function(n,r,i){return n.concat(t(r,i))},[]):null},C0={map:Tu,forEach:Tu,count:function(e){return e?_n(e).length:0},only:function(e){if((e=_n(e)).length!==1)throw new Error("Children.only() expects only one child.");return e[0]},toArray:_n},KE=pe.__e;function T0(e){return e&&((e=yl({},e)).__c=null,e.__k=e.__k&&e.__k.map(T0)),e}function $i(){this.__u=0,this.o=null,this.__b=null}function A0(e){var t=e.__.__c;return t&&t.u&&t.u(e)}function I0(e){var t,n,r;function i(o){if(t||(t=e()).then(function(s){n=s.default||s},function(s){r=s}),r)throw r;if(!n)throw t;return Qt(n,o)}return i.displayName="Lazy",i.t=!0,i}function Xn(){this.i=null,this.l=null}pe.__e=function(e,t,n){if(e.then){for(var r,i=t;i=i.__;)if((r=i.__c)&&r.__c)return r.__c(e,t.__c)}KE(e,t,n)},($i.prototype=new kt).__c=function(e,t){var n=this;n.o==null&&(n.o=[]),n.o.push(t);var r=A0(n.__v),i=!1,o=function(){i||(i=!0,r?r(s):s())};t.__c=t.componentWillUnmount,t.componentWillUnmount=function(){o(),t.__c&&t.__c()};var s=function(){var a;if(!--n.__u)for(n.__v.__k[0]=n.state.u,n.setState({u:n.__b=null});a=n.o.pop();)a.forceUpdate()};n.__u++||n.setState({u:n.__b=n.__v.__k[0]}),e.then(o,o)},$i.prototype.render=function(e,t){return this.__b&&(this.__v.__k[0]=T0(this.__b),this.__b=null),[Qt(kt,null,t.u?null:e.children),t.u&&e.fallback]};var Au=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.i=n=n[2]}};(Xn.prototype=new kt).u=function(e){var t=this,n=A0(t.__v),r=t.l.get(e);return r[0]++,function(i){var o=function(){t.props.revealOrder?(r.push(i),Au(t,e,r)):i()};n?n(o):o()}},Xn.prototype.render=function(e){this.i=null,this.l=new Map;var t=_n(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},Xn.prototype.componentDidUpdate=Xn.prototype.componentDidMount=function(){var e=this;e.l.forEach(function(t,n){Au(e,n,t)})};var YE=function(){function e(){}var t=e.prototype;return t.getChildContext=function(){return this.props.context},t.render=function(n){return n.children},e}();function JE(e){var t=this,n=e.container,r=Qt(YE,{context:t.context},e.vnode);return t.s&&t.s!==n&&(t.v.parentNode&&t.s.removeChild(t.v),Lr(t.h),t.p=!1),e.vnode?t.p?(n.__k=t.__k,Qr(r,n),t.__k=n.__k):(t.v=document.createTextNode(""),p0("",n),n.appendChild(t.v),t.p=!0,t.s=n,Qr(r,n,t.v),t.__k=t.v.__k):t.p&&(t.v.parentNode&&t.s.removeChild(t.v),Lr(t.h)),t.h=r,t.componentWillUnmount=function(){t.v.parentNode&&t.s.removeChild(t.v),Lr(t.h)},null}function R0(e,t){return Qt(JE,{vnode:e,container:t})}var Iu=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/;kt.prototype.isReactComponent={};var O0=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103;function js(e,t,n){if(t.__k==null)for(;t.firstChild;)t.removeChild(t.firstChild);return Qr(e,t),typeof n=="function"&&n(),e?e.__c:null}function GE(e,t,n){return p0(e,t),typeof n=="function"&&n(),e?e.__c:null}var Ru=pe.event;function Yo(e,t){e["UNSAFE_"+t]&&!e[t]&&Object.defineProperty(e,t,{configurable:!1,get:function(){return this["UNSAFE_"+t]},set:function(n){this["UNSAFE_"+t]=n}})}pe.event=function(e){Ru&&(e=Ru(e)),e.persist=function(){};var t=!1,n=!1,r=e.stopPropagation;e.stopPropagation=function(){r.call(e),t=!0};var i=e.preventDefault;return e.preventDefault=function(){i.call(e),n=!0},e.isPropagationStopped=function(){return t},e.isDefaultPrevented=function(){return n},e.nativeEvent=e};var Ou={configurable:!0,get:function(){return this.class}},ku=pe.vnode;pe.vnode=function(e){e.$$typeof=O0;var t=e.type,n=e.props;if(t){if(n.class!=n.className&&(Ou.enumerable="className"in n,n.className!=null&&(n.class=n.className),Object.defineProperty(n,"className",Ou)),typeof t!="function"){var r,i,o;for(o in n.defaultValue&&n.value!==void 0&&(n.value||n.value===0||(n.value=n.defaultValue),delete n.defaultValue),Array.isArray(n.value)&&n.multiple&&t==="select"&&(_n(n.children).forEach(function(s){n.value.indexOf(s.props.value)!=-1&&(s.props.selected=!0)}),delete n.value),n)if(r=Iu.test(o))break;if(r)for(o in i=e.props={},n)i[Iu.test(o)?o.replace(/[A-Z0-9]/,"-$&").toLowerCase():o]=n[o]}(function(s){var a=e.type,c=e.props;if(c&&typeof a=="string"){var m={};for(var p in c)/^on(Ani|Tra|Tou)/.test(p)&&(c[p.toLowerCase()]=c[p],delete c[p]),m[p.toLowerCase()]=p;if(m.ondoubleclick&&(c.ondblclick=c[m.ondoubleclick],delete c[m.ondoubleclick]),m.onbeforeinput&&(c.onbeforeinput=c[m.onbeforeinput],delete c[m.onbeforeinput]),m.onchange&&(a==="textarea"||a.toLowerCase()==="input"&&!/^fil|che|ra/i.test(c.type))){var b=m.oninput||"oninput";c[b]||(c[b]=c[m.onchange],delete c[m.onchange])}}})(),typeof t=="function"&&!t.m&&t.prototype&&(Yo(t.prototype,"componentWillMount"),Yo(t.prototype,"componentWillReceiveProps"),Yo(t.prototype,"componentWillUpdate"),t.m=!0)}ku&&ku(e)};var QE="16.8.0";function k0(e){return Qt.bind(null,e)}function wl(e){return!!e&&e.$$typeof===O0}function N0(e){return wl(e)?qE.apply(null,arguments):e}function P0(e){return!!e.__k&&(Qr(null,e),!0)}function F0(e){return e&&(e.base||e.nodeType===1&&e)||null}var B0=function(e,t){return e(t)};const ZE={useState:ml,useReducer:gl,useEffect:g0,useLayoutEffect:_l,useRef:_0,useImperativeHandle:v0,useMemo:_o,useCallback:y0,useContext:w0,useDebugValue:b0,version:"16.8.0",Children:C0,render:js,hydrate:js,unmountComponentAtNode:P0,createPortal:R0,createElement:Qt,createContext:m0,createFactory:k0,cloneElement:N0,createRef:c0,Fragment:ai,isValidElement:wl,findDOMNode:F0,Component:kt,PureComponent:x0,memo:M0,forwardRef:S0,unstable_batchedUpdates:B0,Suspense:$i,SuspenseList:Xn,lazy:I0},XE=Object.freeze(Object.defineProperty({__proto__:null,Children:C0,Component:kt,Fragment:ai,PureComponent:x0,Suspense:$i,SuspenseList:Xn,cloneElement:N0,createContext:m0,createElement:Qt,createFactory:k0,createPortal:R0,createRef:c0,default:ZE,findDOMNode:F0,forwardRef:S0,hydrate:GE,isValidElement:wl,lazy:I0,memo:M0,render:js,unmountComponentAtNode:P0,unstable_batchedUpdates:B0,useCallback:y0,useContext:w0,useDebugValue:b0,useEffect:g0,useErrorBoundary:zE,useImperativeHandle:v0,useLayoutEffect:_l,useMemo:_o,useReducer:gl,useRef:_0,useState:ml,version:QE},Symbol.toStringTag,{value:"Module"})),e2=ei(XE);function L0(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var lt=Mb,D0=L0(oi),t2=L0(DE),ce=e2;function n2(e){D0.toString(e,{type:"terminal"}).then(console.log)}var r2=`:root {
--animation-duration: 300ms;
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes fadeOut {
from {
opacity: 1;
}
to {
opacity: 0;
}
}
.animated {
animation-duration: var(--animation-duration);
animation-fill-mode: both;
}
.fadeIn {
animation-name: fadeIn;
}
.fadeOut {
animation-name: fadeOut;
}
#walletconnect-wrapper {
-webkit-user-select: none;
align-items: center;
display: flex;
height: 100%;
justify-content: center;
left: 0;
pointer-events: none;
position: fixed;
top: 0;
user-select: none;
width: 100%;
z-index: 99999999999999;
}
.walletconnect-modal__headerLogo {
height: 21px;
}
.walletconnect-modal__header p {
color: #ffffff;
font-size: 20px;
font-weight: 600;
margin: 0;
align-items: flex-start;
display: flex;
flex: 1;
margin-left: 5px;
}
.walletconnect-modal__close__wrapper {
position: absolute;
top: 0px;
right: 0px;
z-index: 10000;
background: white;
border-radius: 26px;
padding: 6px;
box-sizing: border-box;
width: 26px;
height: 26px;
cursor: pointer;
}
.walletconnect-modal__close__icon {
position: relative;
top: 7px;
right: 0;
display: flex;
align-items: center;
justify-content: center;
transform: rotate(45deg);
}
.walletconnect-modal__close__line1 {
position: absolute;
width: 100%;
border: 1px solid rgb(48, 52, 59);
}
.walletconnect-modal__close__line2 {
position: absolute;
width: 100%;
border: 1px solid rgb(48, 52, 59);
transform: rotate(90deg);
}
.walletconnect-qrcode__base {
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
background: rgba(37, 41, 46, 0.95);
height: 100%;
left: 0;
pointer-events: auto;
position: fixed;
top: 0;
transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
width: 100%;
will-change: opacity;
padding: 40px;
box-sizing: border-box;
}
.walletconnect-qrcode__text {
color: rgba(60, 66, 82, 0.6);
font-size: 16px;
font-weight: 600;
letter-spacing: 0;
line-height: 1.1875em;
margin: 10px 0 20px 0;
text-align: center;
width: 100%;
}
@media only screen and (max-width: 768px) {
.walletconnect-qrcode__text {
font-size: 4vw;
}
}
@media only screen and (max-width: 320px) {
.walletconnect-qrcode__text {
font-size: 14px;
}
}
.walletconnect-qrcode__image {
width: calc(100% - 30px);
box-sizing: border-box;
cursor: none;
margin: 0 auto;
}
.walletconnect-qrcode__notification {
position: absolute;
bottom: 0;
left: 0;
right: 0;
font-size: 16px;
padding: 16px 20px;
border-radius: 16px;
text-align: center;
transition: all 0.1s ease-in-out;
background: white;
color: black;
margin-bottom: -60px;
opacity: 0;
}
.walletconnect-qrcode__notification.notification__show {
opacity: 1;
}
@media only screen and (max-width: 768px) {
.walletconnect-modal__header {
height: 130px;
}
.walletconnect-modal__base {
overflow: auto;
}
}
@media only screen and (min-device-width: 415px) and (max-width: 768px) {
#content {
max-width: 768px;
box-sizing: border-box;
}
}
@media only screen and (min-width: 375px) and (max-width: 415px) {
#content {
max-width: 414px;
box-sizing: border-box;
}
}
@media only screen and (min-width: 320px) and (max-width: 375px) {
#content {
max-width: 375px;
box-sizing: border-box;
}
}
@media only screen and (max-width: 320px) {
#content {
max-width: 320px;
box-sizing: border-box;
}
}
.walletconnect-modal__base {
-webkit-font-smoothing: antialiased;
background: #ffffff;
border-radius: 24px;
box-shadow: 0 10px 50px 5px rgba(0, 0, 0, 0.4);
font-family: ui-rounded, "SF Pro Rounded", "SF Pro Text", medium-content-sans-serif-font,
-apple-system, BlinkMacSystemFont, ui-sans-serif, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell,
"Open Sans", "Helvetica Neue", sans-serif;
margin-top: 41px;
padding: 24px 24px 22px;
pointer-events: auto;
position: relative;
text-align: center;
transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
will-change: transform;
overflow: visible;
transform: translateY(-50%);
top: 50%;
max-width: 500px;
margin: auto;
}
@media only screen and (max-width: 320px) {
.walletconnect-modal__base {
padding: 24px 12px;
}
}
.walletconnect-modal__base .hidden {
transform: translateY(150%);
transition: 0.125s cubic-bezier(0.4, 0, 1, 1);
}
.walletconnect-modal__header {
align-items: center;
display: flex;
height: 26px;
left: 0;
justify-content: space-between;
position: absolute;
top: -42px;
width: 100%;
}
.walletconnect-modal__base .wc-logo {
align-items: center;
display: flex;
height: 26px;
margin-top: 15px;
padding-bottom: 15px;
pointer-events: auto;
}
.walletconnect-modal__base .wc-logo div {
background-color: #3399ff;
height: 21px;
margin-right: 5px;
mask-image: url("images/wc-logo.svg") center no-repeat;
width: 32px;
}
.walletconnect-modal__base .wc-logo p {
color: #ffffff;
font-size: 20px;
font-weight: 600;
margin: 0;
}
.walletconnect-modal__base h2 {
color: rgba(60, 66, 82, 0.6);
font-size: 16px;
font-weight: 600;
letter-spacing: 0;
line-height: 1.1875em;
margin: 0 0 19px 0;
text-align: center;
width: 100%;
}
.walletconnect-modal__base__row {
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
align-items: center;
border-radius: 20px;
cursor: pointer;
display: flex;
height: 56px;
justify-content: space-between;
padding: 0 15px;
position: relative;
margin: 0px 0px 8px;
text-align: left;
transition: 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94);
will-change: transform;
text-decoration: none;
}
.walletconnect-modal__base__row:hover {
background: rgba(60, 66, 82, 0.06);
}
.walletconnect-modal__base__row:active {
background: rgba(60, 66, 82, 0.06);
transform: scale(0.975);
transition: 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.walletconnect-modal__base__row__h3 {
color: #25292e;
font-size: 20px;
font-weight: 700;
margin: 0;
padding-bottom: 3px;
}
.walletconnect-modal__base__row__right {
align-items: center;
display: flex;
justify-content: center;
}
.walletconnect-modal__base__row__right__app-icon {
border-radius: 8px;
height: 34px;
margin: 0 11px 2px 0;
width: 34px;
background-size: 100%;
box-shadow: 0 4px 12px 0 rgba(37, 41, 46, 0.25);
}
.walletconnect-modal__base__row__right__caret {
height: 18px;
opacity: 0.3;
transition: 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
width: 8px;
will-change: opacity;
}
.walletconnect-modal__base__row:hover .caret,
.walletconnect-modal__base__row:active .caret {
opacity: 0.6;
}
.walletconnect-modal__mobile__toggle {
width: 80%;
display: flex;
margin: 0 auto;
position: relative;
overflow: hidden;
border-radius: 8px;
margin-bottom: 18px;
background: #d4d5d9;
}
.walletconnect-modal__single_wallet {
display: flex;
justify-content: center;
margin-top: 7px;
margin-bottom: 18px;
}
.walletconnect-modal__single_wallet a {
cursor: pointer;
color: rgb(64, 153, 255);
font-size: 21px;
font-weight: 800;
text-decoration: none !important;
margin: 0 auto;
}
.walletconnect-modal__mobile__toggle_selector {
width: calc(50% - 8px);
background: white;
position: absolute;
border-radius: 5px;
height: calc(100% - 8px);
top: 4px;
transition: all 0.2s ease-in-out;
transform: translate3d(4px, 0, 0);
}
.walletconnect-modal__mobile__toggle.right__selected .walletconnect-modal__mobile__toggle_selector {
transform: translate3d(calc(100% + 12px), 0, 0);
}
.walletconnect-modal__mobile__toggle a {
font-size: 12px;
width: 50%;
text-align: center;
padding: 8px;
margin: 0;
font-weight: 600;
z-index: 1;
}
.walletconnect-modal__footer {
display: flex;
justify-content: center;
margin-top: 20px;
}
@media only screen and (max-width: 768px) {
.walletconnect-modal__footer {
margin-top: 5vw;
}
}
.walletconnect-modal__footer a {
cursor: pointer;
color: #898d97;
font-size: 15px;
margin: 0 auto;
}
@media only screen and (max-width: 320px) {
.walletconnect-modal__footer a {
font-size: 14px;
}
}
.walletconnect-connect__buttons__wrapper {
max-height: 44vh;
}
.walletconnect-connect__buttons__wrapper__android {
margin: 50% 0;
}
.walletconnect-connect__buttons__wrapper__wrap {
display: grid;
grid-template-columns: repeat(4, 1fr);
margin: 10px 0;
}
@media only screen and (min-width: 768px) {
.walletconnect-connect__buttons__wrapper__wrap {
margin-top: 40px;
}
}
.walletconnect-connect__button {
background-color: rgb(64, 153, 255);
padding: 12px;
border-radius: 8px;
text-decoration: none;
color: rgb(255, 255, 255);
font-weight: 500;
}
.walletconnect-connect__button__icon_anchor {
cursor: pointer;
display: flex;
justify-content: flex-start;
align-items: center;
margin: 8px;
width: 42px;
justify-self: center;
flex-direction: column;
text-decoration: none !important;
}
@media only screen and (max-width: 320px) {
.walletconnect-connect__button__icon_anchor {
margin: 4px;
}
}
.walletconnect-connect__button__icon {
border-radius: 10px;
height: 42px;
margin: 0;
width: 42px;
background-size: cover !important;
box-shadow: 0 4px 12px 0 rgba(37, 41, 46, 0.25);
}
.walletconnect-connect__button__text {
color: #424952;
font-size: 2.7vw;
text-decoration: none !important;
padding: 0;
margin-top: 1.8vw;
font-weight: 600;
}
@media only screen and (min-width: 768px) {
.walletconnect-connect__button__text {
font-size: 16px;
margin-top: 12px;
}
}
.walletconnect-search__input {
border: none;
background: #d4d5d9;
border-style: none;
padding: 8px 16px;
outline: none;
font-style: normal;
font-stretch: normal;
font-size: 16px;
font-style: normal;
font-stretch: normal;
line-height: normal;
letter-spacing: normal;
text-align: left;
border-radius: 8px;
width: calc(100% - 16px);
margin: 0;
margin-bottom: 8px;
}
`;typeof Symbol<"u"&&(Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator")));typeof Symbol<"u"&&(Symbol.asyncIterator||(Symbol.asyncIterator=Symbol("Symbol.asyncIterator")));function i2(e,t){try{var n=e()}catch(r){return t(r)}return n&&n.then?n.then(void 0,t):n}var o2="data:image/svg+xml,%3Csvg height='185' viewBox='0 0 300 185' width='300' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m61.4385429 36.2562612c48.9112241-47.8881663 128.2119871-47.8881663 177.1232091 0l5.886545 5.7634174c2.445561 2.3944081 2.445561 6.2765112 0 8.6709204l-20.136695 19.715503c-1.222781 1.1972051-3.2053 1.1972051-4.428081 0l-8.100584-7.9311479c-34.121692-33.4079817-89.443886-33.4079817-123.5655788 0l-8.6750562 8.4936051c-1.2227816 1.1972041-3.205301 1.1972041-4.4280806 0l-20.1366949-19.7155031c-2.4455612-2.3944092-2.4455612-6.2765122 0-8.6709204zm218.7677961 40.7737449 17.921697 17.546897c2.445549 2.3943969 2.445563 6.2764769.000031 8.6708899l-80.810171 79.121134c-2.445544 2.394426-6.410582 2.394453-8.85616.000062-.00001-.00001-.000022-.000022-.000032-.000032l-57.354143-56.154572c-.61139-.598602-1.60265-.598602-2.21404 0-.000004.000004-.000007.000008-.000011.000011l-57.3529212 56.154531c-2.4455368 2.394432-6.4105755 2.394472-8.8561612.000087-.0000143-.000014-.0000296-.000028-.0000449-.000044l-80.81241943-79.122185c-2.44556021-2.394408-2.44556021-6.2765115 0-8.6709197l17.92172963-17.5468673c2.4455602-2.3944082 6.4105989-2.3944082 8.8561602 0l57.3549775 56.155357c.6113908.598602 1.602649.598602 2.2140398 0 .0000092-.000009.0000174-.000017.0000265-.000024l57.3521031-56.155333c2.445505-2.3944633 6.410544-2.3945531 8.856161-.0002.000034.0000336.000068.0000673.000101.000101l57.354902 56.155432c.61139.598601 1.60265.598601 2.21404 0l57.353975-56.1543249c2.445561-2.3944092 6.410599-2.3944092 8.85616 0z' fill='%233b99fc'/%3E%3C/svg%3E",s2="WalletConnect",a2=300,l2="rgb(64, 153, 255)",U0="walletconnect-wrapper",Nu="walletconnect-style-sheet",$0="walletconnect-qrcode-modal",c2="walletconnect-qrcode-close",W0="walletconnect-qrcode-text",u2="walletconnect-connect-button";function f2(e){return ce.createElement("div",{className:"walletconnect-modal__header"},ce.createElement("img",{src:o2,className:"walletconnect-modal__headerLogo"}),ce.createElement("p",null,s2),ce.createElement("div",{className:"walletconnect-modal__close__wrapper",onClick:e.onClose},ce.createElement("div",{id:c2,className:"walletconnect-modal__close__icon"},ce.createElement("div",{className:"walletconnect-modal__close__line1"}),ce.createElement("div",{className:"walletconnect-modal__close__line2"}))))}function h2(e){return ce.createElement("a",{className:"walletconnect-connect__button",href:e.href,id:u2+"-"+e.name,onClick:e.onClick,rel:"noopener noreferrer",style:{backgroundColor:e.color},target:"_blank"},e.name)}var d2="data:image/svg+xml,%3Csvg fill='none' height='18' viewBox='0 0 8 18' width='8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath clip-rule='evenodd' d='m.586301.213898c-.435947.33907-.5144813.967342-.175411 1.403292l4.87831 6.27212c.28087.36111.28087.86677 0 1.22788l-4.878311 6.27211c-.33907.436-.260536 1.0642.175412 1.4033.435949.3391 1.064219.2605 1.403289-.1754l4.87832-6.2721c.84259-1.08336.84259-2.60034 0-3.68367l-4.87832-6.27212c-.33907-.4359474-.96734-.514482-1.403289-.175412z' fill='%233c4252' fill-rule='evenodd'/%3E%3C/svg%3E";function p2(e){var t=e.color,n=e.href,r=e.name,i=e.logo,o=e.onClick;return ce.createElement("a",{className:"walletconnect-modal__base__row",href:n,onClick:o,rel:"noopener noreferrer",target:"_blank"},ce.createElement("h3",{className:"walletconnect-modal__base__row__h3"},r),ce.createElement("div",{className:"walletconnect-modal__base__row__right"},ce.createElement("div",{className:"walletconnect-modal__base__row__right__app-icon",style:{background:"url('"+i+"') "+t,backgroundSize:"100%"}}),ce.createElement("img",{src:d2,className:"walletconnect-modal__base__row__right__caret"})))}function m2(e){var t=e.color,n=e.href,r=e.name,i=e.logo,o=e.onClick,s=window.innerWidth<768?(r.length>8?2.5:2.7)+"vw":"inherit";return ce.createElement("a",{className:"walletconnect-connect__button__icon_anchor",href:n,onClick:o,rel:"noopener noreferrer",target:"_blank"},ce.createElement("div",{className:"walletconnect-connect__button__icon",style:{background:"url('"+i+"') "+t,backgroundSize:"100%"}}),ce.createElement("div",{style:{fontSize:s},className:"walletconnect-connect__button__text"},r))}var g2=5,Jo=12;function _2(e){var t=lt.isAndroid(),n=ce.useState(""),r=n[0],i=n[1],o=ce.useState(""),s=o[0],a=o[1],c=ce.useState(1),m=c[0],p=c[1],b=s?e.links.filter(function($){return $.name.toLowerCase().includes(s.toLowerCase())}):e.links,x=e.errorMessage,R=s||b.length>g2,C=Math.ceil(b.length/Jo),P=[(m-1)*Jo+1,m*Jo],T=b.length?b.filter(function($,H){return H+1>=P[0]&&H+1<=P[1]}):[],A=!t&&C>1,L=void 0;function B($){i($.target.value),clearTimeout(L),$.target.value?L=setTimeout(function(){a($.target.value),p(1)},1e3):(i(""),a(""),p(1))}return ce.createElement("div",null,ce.createElement("p",{id:W0,className:"walletconnect-qrcode__text"},t?e.text.connect_mobile_wallet:e.text.choose_preferred_wallet),!t&&ce.createElement("input",{className:"walletconnect-search__input",placeholder:"Search",value:r,onChange:B}),ce.createElement("div",{className:"walletconnect-connect__buttons__wrapper"+(t?"__android":R&&b.length?"__wrap":"")},t?ce.createElement(h2,{name:e.text.connect,color:l2,href:e.uri,onClick:ce.useCallback(function(){lt.saveMobileLinkInfo({name:"Unknown",href:e.uri})},[])}):T.length?T.map(function($){var H=$.color,G=$.name,Q=$.shortName,V=$.logo,ie=lt.formatIOSMobile(e.uri,$),v=ce.useCallback(function(){lt.saveMobileLinkInfo({name:G,href:ie})},[T]);return R?ce.createElement(m2,{color:H,href:ie,name:Q||G,logo:V,onClick:v}):ce.createElement(p2,{color:H,href:ie,name:G,logo:V,onClick:v})}):ce.createElement(ce.Fragment,null,ce.createElement("p",null,x.length?e.errorMessage:e.links.length&&!b.length?e.text.no_wallets_found:e.text.loading))),A&&ce.createElement("div",{className:"walletconnect-modal__footer"},Array(C).fill(0).map(function($,H){var G=H+1,Q=m===G;return ce.createElement("a",{style:{margin:"auto 10px",fontWeight:Q?"bold":"normal"},onClick:function(){return p(G)}},G)})))}function v2(e){var t=!!e.message.trim();return ce.createElement("div",{className:"walletconnect-qrcode__notification"+(t?" notification__show":"")},e.message)}var y2=function(e){try{var t="";return Promise.resolve(D0.toString(e,{margin:0,type:"svg"})).then(function(n){return typeof n=="string"&&(t=n.replace("<svg",'<svg class="walletconnect-qrcode__image"')),t})}catch(n){return Promise.reject(n)}};function w2(e){var t=ce.useState(""),n=t[0],r=t[1],i=ce.useState(""),o=i[0],s=i[1];ce.useEffect(function(){try{return Promise.resolve(y2(e.uri)).then(function(c){s(c)})}catch(c){Promise.reject(c)}},[]);var a=function(){var c=t2(e.uri);c?(r(e.text.copied_to_clipboard),setInterval(function(){return r("")},1200)):(r("Error"),setInterval(function(){return r("")},1200))};return ce.createElement("div",null,ce.createElement("p",{id:W0,className:"walletconnect-qrcode__text"},e.text.scan_qrcode_with_wallet),ce.createElement("div",{dangerouslySetInnerHTML:{__html:o}}),ce.createElement("div",{className:"walletconnect-modal__footer"},ce.createElement("a",{onClick:a},e.text.copy_to_clipboard)),ce.createElement(v2,{message:n}))}function b2(e){var t=lt.isAndroid(),n=lt.isMobile(),r=n?e.qrcodeModalOptions&&e.qrcodeModalOptions.mobileLinks?e.qrcodeModalOptions.mobileLinks:void 0:e.qrcodeModalOptions&&e.qrcodeModalOptions.desktopLinks?e.qrcodeModalOptions.desktopLinks:void 0,i=ce.useState(!1),o=i[0],s=i[1],a=ce.useState(!1),c=a[0],m=a[1],p=ce.useState(!n),b=p[0],x=p[1],R={mobile:n,text:e.text,uri:e.uri,qrcodeModalOptions:e.qrcodeModalOptions},C=ce.useState(""),P=C[0],T=C[1],A=ce.useState(!1),L=A[0],B=A[1],$=ce.useState([]),H=$[0],G=$[1],Q=ce.useState(""),V=Q[0],ie=Q[1],v=function(){c||o||r&&!r.length||H.length>0||ce.useEffect(function(){var d=function(){try{if(t)return Promise.resolve();s(!0);var _=i2(function(){var w=e.qrcodeModalOptions&&e.qrcodeModalOptions.registryUrl?e.qrcodeModalOptions.registryUrl:lt.getWalletRegistryUrl();return Promise.resolve(fetch(w)).then(function(E){return Promise.resolve(E.json()).then(function(k){var W=k.listings,I=n?"mobile":"desktop",f=lt.getMobileLinkRegistry(lt.formatMobileRegistry(W,I),r);s(!1),m(!0),ie(f.length?"":e.text.no_supported_wallets),G(f);var O=f.length===1;O&&(T(lt.formatIOSMobile(e.uri,f[0])),x(!0)),B(O)})})},function(w){s(!1),m(!0),ie(e.text.something_went_wrong),console.error(w)});return Promise.resolve(_&&_.then?_.then(function(){}):void 0)}catch(w){return Promise.reject(w)}};d()})};v();var l=n?b:!b;return ce.createElement("div",{id:$0,className:"walletconnect-qrcode__base animated fadeIn"},ce.createElement("div",{className:"walletconnect-modal__base"},ce.createElement(f2,{onClose:e.onClose}),L&&b?ce.createElement("div",{className:"walletconnect-modal__single_wallet"},ce.createElement("a",{onClick:function(){return lt.saveMobileLinkInfo({name:H[0].name,href:P})},href:P,rel:"noopener noreferrer",target:"_blank"},e.text.connect_with+" "+(L?H[0].name:"")+" ›")):t||o||!o&&H.length?ce.createElement("div",{className:"walletconnect-modal__mobile__toggle"+(l?" right__selected":"")},ce.createElement("div",{className:"walletconnect-modal__mobile__toggle_selector"}),n?ce.createElement(ce.Fragment,null,ce.createElement("a",{onClick:function(){return x(!1),v()}},e.text.mobile),ce.createElement("a",{onClick:function(){return x(!0)}},e.text.qrcode)):ce.createElement(ce.Fragment,null,ce.createElement("a",{onClick:function(){return x(!0)}},e.text.qrcode),ce.createElement("a",{onClick:function(){return x(!1),v()}},e.text.desktop))):null,ce.createElement("div",null,b||!t&&!o&&!H.length?ce.createElement(w2,Object.assign({},R)):ce.createElement(_2,Object.assign({},R,{links:H,errorMessage:V})))))}var E2={choose_preferred_wallet:"Wähle bevorzugte Wallet",connect_mobile_wallet:"Verbinde mit Mobile Wallet",scan_qrcode_with_wallet:"Scanne den QR-code mit einer WalletConnect kompatiblen Wallet",connect:"Verbinden",qrcode:"QR-Code",mobile:"Mobile",desktop:"Desktop",copy_to_clipboard:"In die Zwischenablage kopieren",copied_to_clipboard:"In die Zwischenablage kopiert!",connect_with:"Verbinden mit Hilfe von",loading:"Laden...",something_went_wrong:"Etwas ist schief gelaufen",no_supported_wallets:"Es gibt noch keine unterstützten Wallet",no_wallets_found:"keine Wallet gefunden"},x2={choose_preferred_wallet:"Choose your preferred wallet",connect_mobile_wallet:"Connect to Mobile Wallet",scan_qrcode_with_wallet:"Scan QR code with a WalletConnect-compatible wallet",connect:"Connect",qrcode:"QR Code",mobile:"Mobile",desktop:"Desktop",copy_to_clipboard:"Copy to clipboard",copied_to_clipboard:"Copied to clipboard!",connect_with:"Connect with",loading:"Loading...",something_went_wrong:"Something went wrong",no_supported_wallets:"There are no supported wallets yet",no_wallets_found:"No wallets found"},M2={choose_preferred_wallet:"Elige tu billetera preferida",connect_mobile_wallet:"Conectar a billetera móvil",scan_qrcode_with_wallet:"Escanea el código QR con una billetera compatible con WalletConnect",connect:"Conectar",qrcode:"Código QR",mobile:"Móvil",desktop:"Desktop",copy_to_clipboard:"Copiar",copied_to_clipboard:"Copiado!",connect_with:"Conectar mediante",loading:"Cargando...",something_went_wrong:"Algo salió mal",no_supported_wallets:"Todavía no hay billeteras compatibles",no_wallets_found:"No se encontraron billeteras"},S2={choose_preferred_wallet:"Choisissez votre portefeuille préféré",connect_mobile_wallet:"Se connecter au portefeuille mobile",scan_qrcode_with_wallet:"Scannez le QR code avec un portefeuille compatible WalletConnect",connect:"Se connecter",qrcode:"QR Code",mobile:"Mobile",desktop:"Desktop",copy_to_clipboard:"Copier",copied_to_clipboard:"Copié!",connect_with:"Connectez-vous à l'aide de",loading:"Chargement...",something_went_wrong:"Quelque chose a mal tourné",no_supported_wallets:"Il n'y a pas encore de portefeuilles pris en charge",no_wallets_found:"Aucun portefeuille trouvé"},C2={choose_preferred_wallet:"원하는 지갑을 선택하세요",connect_mobile_wallet:"모바일 지갑과 연결",scan_qrcode_with_wallet:"WalletConnect 지원 지갑에서 QR코드를 스캔하세요",connect:"연결",qrcode:"QR 코드",mobile:"모바일",desktop:"데스크탑",copy_to_clipboard:"클립보드에 복사",copied_to_clipboard:"클립보드에 복사되었습니다!",connect_with:"와 연결하다",loading:"로드 중...",something_went_wrong:"문제가 발생했습니다.",no_supported_wallets:"아직 지원되는 지갑이 없습니다",no_wallets_found:"지갑을 찾을 수 없습니다"},T2={choose_preferred_wallet:"Escolha sua carteira preferida",connect_mobile_wallet:"Conectar-se à carteira móvel",scan_qrcode_with_wallet:"Ler o código QR com uma carteira compatível com WalletConnect",connect:"Conectar",qrcode:"Código QR",mobile:"Móvel",desktop:"Desktop",copy_to_clipboard:"Copiar",copied_to_clipboard:"Copiado!",connect_with:"Ligar por meio de",loading:"Carregamento...",something_went_wrong:"Algo correu mal",no_supported_wallets:"Ainda não há carteiras suportadas",no_wallets_found:"Nenhuma carteira encontrada"},A2={choose_preferred_wallet:"选择你的钱包",connect_mobile_wallet:"连接至移动端钱包",scan_qrcode_with_wallet:"使用兼容 WalletConnect 的钱包扫描二维码",connect:"连接",qrcode:"二维码",mobile:"移动",desktop:"桌面",copy_to_clipboard:"复制到剪贴板",copied_to_clipboard:"复制到剪贴板成功!",connect_with:"通过以下方式连接",loading:"正在加载...",something_went_wrong:"出了问题",no_supported_wallets:"目前还没有支持的钱包",no_wallets_found:"没有找到钱包"},I2={choose_preferred_wallet:"کیف پول مورد نظر خود را انتخاب کنید",connect_mobile_wallet:"به کیف پول موبایل وصل شوید",scan_qrcode_with_wallet:"کد QR را با یک کیف پول سازگار با WalletConnect اسکن کنید",connect:"اتصال",qrcode:"کد QR",mobile:"سیار",desktop:"دسکتاپ",copy_to_clipboard:"کپی به کلیپ بورد",copied_to_clipboard:"در کلیپ بورد کپی شد!",connect_with:"ارتباط با",loading:"...بارگذاری",something_went_wrong:"مشکلی پیش آمد",no_supported_wallets:"هنوز هیچ کیف پول پشتیبانی شده ای وجود ندارد",no_wallets_found:"هیچ کیف پولی پیدا نشد"},Pu={de:E2,en:x2,es:M2,fr:S2,ko:C2,pt:T2,zh:A2,fa:I2};function R2(){var e=lt.getDocumentOrThrow(),t=e.getElementById(Nu);t&&e.head.removeChild(t);var n=e.createElement("style");n.setAttribute("id",Nu),n.innerText=r2,e.head.appendChild(n)}function O2(){var e=lt.getDocumentOrThrow(),t=e.createElement("div");return t.setAttribute("id",U0),e.body.appendChild(t),t}function j0(){var e=lt.getDocumentOrThrow(),t=e.getElementById($0);t&&(t.className=t.className.replace("fadeIn","fadeOut"),setTimeout(function(){var n=e.getElementById(U0);n&&e.body.removeChild(n)},a2))}function k2(e){return function(){j0(),e&&e()}}function N2(){var e=lt.getNavigatorOrThrow().language.split("-")[0]||"en";return Pu[e]||Pu.en}function P2(e,t,n){R2();var r=O2();ce.render(ce.createElement(b2,{text:N2(),uri:e,onClose:k2(t),qrcodeModalOptions:n}),r)}function F2(){j0()}var H0=function(){return typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.node<"u"};function B2(e,t,n){console.log(e),H0()?n2(e):P2(e,t,n)}function L2(){H0()||F2()}var D2={open:B2,close:L2},Fu=D2;const U2=m_("web3user",{state:()=>({account:"",balance:"",network:{chainId:0},loading:!1}),getters:{ethereum(){return window.ethereum},isConnected:e=>!!e.account},actions:{async initialize(){if(this.ethereum){const e=await this.ethereum.request({method:"eth_chainId"});this.network.chainId=e,this.ethereum.on("chainChanged",()=>{window.location.reload()});const t=await this.ethereum.request({method:"eth_accounts"});t.length>0?this.account=t[0]:Cs.info("No auth account")}else Cs.info("Metamask is not exist")},async connectWallet(e){e=="metamask"?await this.useMetamask():await this.useWalletConnect()},async useMetamask(){if(!this.ethereum){alert("Metamask is not exist");return}try{if((await this.ethereum.request({method:"eth_requestAccounts"})).length==0)return;const t=await this.ethereum.request({method:"eth_chainId"});this.network.chainId=t,this.ethereum.on("accountsChanged",n=>{this.account=n[0]}),this.ethereum.on("networkChanged",n=>{this.network.chainId=n})}catch{return}},async useWalletConnect(){const e=new xb({bridge:"https://bridge.walletconnect.org"},{clientMeta:{description:"WalletConnect NodeJS Client",url:"https://nodejs.org/en/",icons:["https://nodejs.org/static/images/logo.svg"],name:"WalletConnect"}});e.connected||e.createSession().then(()=>{const t=e.uri;Fu.open(t,()=>{console.log("QR Code Modal closed")})}),e.on("connect",(t,n)=>{if(t)throw t;Fu.close();const{accounts:r,chainId:i}=n.params[0];this.account=r[0],this.network.chainId=i}),e.on("session_update",(t,n)=>{if(t)throw t;const{accounts:r,chainId:i}=n.params[0];this.account=r[0],this.network.chainId=i}),e.on("disconnect",(t,n)=>{if(t)throw t;this.account="",this.network.chainId=0})}}}),$2=ca({__name:"App",setup(e){return U2().initialize(),Cs.info("I'm ready! ⸜(๑'ᵕ'๑)⸝⋆*"),(n,r)=>{const i=vm("RouterView");return pa(),ma(i)}}});typeof window.global>"u"&&(window.global=window);const vo=xg($2),W2=Object.fromEntries(Object.entries(Object.assign({"./locales/en.json":z0,"./locales/zh-CN.json":K0})).map(([e,t])=>[e.slice(10,-5),t.default]));vo.use(gv({legacy:!1,locale:mn(i_("locale","zh-CN")),messages:W2}));vo.use(u_());vo.use(Ia);vo.mount("#app");export{Sa as A,U2 as B,G2 as C,J2 as D,H2 as E,_t as F,K2 as G,i_ as H,vm as I,z2 as T,Qe as a,ua as b,yn as c,ca as d,Mt as e,vr as f,zs as g,Zi as h,xt as i,pa as j,ma as k,Gp as l,ot as m,Zr as n,Gi as o,yi as p,Of as q,dt as r,rf as s,V2 as t,mn as u,Hm as v,rm as w,j2 as x,Y2 as y,q2 as z};