UNPKG

qrcode-vue3

Version:

Add a style and an image to your QR code Vue3

24 lines 97.2 kB
(function(me,Q){typeof exports=="object"&&typeof module<"u"?module.exports=Q():typeof define=="function"&&define.amd?define(Q):(me=typeof globalThis<"u"?globalThis:me||self,me.QRCodeVue3=Q())})(this,function(){"use strict";var Ls=Object.defineProperty;var Fs=(me,Q,Ae)=>Q in me?Ls(me,Q,{enumerable:!0,configurable:!0,writable:!0,value:Ae}):me[Q]=Ae;var oe=(me,Q,Ae)=>(Fs(me,typeof Q!="symbol"?Q+"":Q,Ae),Ae);/**
* @vue/shared v3.5.3
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**//*! #__NO_SIDE_EFFECTS__ */function me(e,t){const n=new Set(e.split(","));return t?r=>n.has(r.toLowerCase()):r=>n.has(r)}const Q=process.env.NODE_ENV!=="production"?Object.freeze({}):{},Ae=process.env.NODE_ENV!=="production"?Object.freeze([]):[],ie=()=>{},mo=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),se=Object.assign,wo=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},bo=Object.prototype.hasOwnProperty,G=(e,t)=>bo.call(e,t),H=Array.isArray,Be=e=>gt(e)==="[object Map]",Fn=e=>gt(e)==="[object Set]",F=e=>typeof e=="function",ue=e=>typeof e=="string",Ve=e=>typeof e=="symbol",Y=e=>e!==null&&typeof e=="object",Jt=e=>(Y(e)||F(e))&&F(e.then)&&F(e.catch),qn=Object.prototype.toString,gt=e=>qn.call(e),Hn=e=>gt(e).slice(8,-1),jn=e=>gt(e)==="[object Object]",Yt=e=>ue(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Un=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Kn=Un(e=>e.charAt(0).toUpperCase()+e.slice(1)),yo=Un(e=>e?`on${Kn(e)}`:""),$e=(e,t)=>!Object.is(e,t),Eo=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Oo=e=>{const t=ue(e)?Number(e):NaN;return isNaN(t)?e:t};let Wn;const Qn=()=>Wn||(Wn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Gt(e){if(H(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=ue(r)?Co(r):Gt(r);if(o)for(const i in o)t[i]=o[i]}return t}else if(ue(e)||Y(e))return e}const No=/;(?![^(]*\))/g,xo=/:([^]+)/,Do=/\/\*[^]*?\*\//g;function Co(e){const t={};return e.replace(Do,"").split(No).forEach(n=>{if(n){const r=n.split(xo);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function je(e){let t="";if(ue(e))t=e;else if(H(e))for(let n=0;n<e.length;n++){const r=je(e[n]);r&&(t+=r+" ")}else if(Y(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Jn=e=>!!(e&&e.__v_isRef===!0),Yn=e=>ue(e)?e:e==null?"":H(e)||Y(e)&&(e.toString===qn||!F(e.toString))?Jn(e)?Yn(e.value):JSON.stringify(e,Gn,2):String(e),Gn=(e,t)=>Jn(t)?Gn(e,t.value):Be(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o],i)=>(n[Xt(r,i)+" =>"]=o,n),{})}:Fn(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Xt(n))}:Ve(t)?Xt(t):Y(t)&&!H(t)&&!jn(t)?String(t):t,Xt=(e,t="")=>{var n;return Ve(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
* @vue/reactivity v3.5.3
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function ye(e,...t){console.warn(`[Vue warn] ${e}`,...t)}let j;const Zt=new WeakSet;class So{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.nextEffect=void 0,this.cleanup=void 0,this.scheduler=void 0}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Zt.has(this)&&(Zt.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||(this.flags|=8,this.nextEffect=rt,rt=this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,nr(this),Zn(this);const t=j,n=we;j=this,we=!0;try{return this.fn()}finally{process.env.NODE_ENV!=="production"&&j!==this&&ye("Active effect was not restored correctly - this is likely a Vue internal bug."),zn(this),j=t,we=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)nn(t);this.deps=this.depsTail=void 0,nr(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Zt.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){tn(this)&&this.run()}get dirty(){return tn(this)}}let Xn=0,rt;function zt(){Xn++}function en(){if(--Xn>0)return;let e;for(;rt;){let t=rt;for(rt=void 0;t;){const n=t.nextEffect;if(t.nextEffect=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function Zn(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function zn(e){let t,n=e.depsTail;for(let r=n;r;r=r.prevDep)r.version===-1?(r===n&&(n=r.prevDep),nn(r),Mo(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0;e.deps=t,e.depsTail=n}function tn(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&er(t.dep.computed)===!1||t.dep.version!==t.version)return!0;return!!e._dirty}function er(e){if(e.flags&2)return!1;if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===ot))return;e.globalVersion=ot;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&!tn(e)){e.flags&=-3;return}const n=j,r=we;j=e,we=!0;try{Zn(e);const o=e.fn(e._value);(t.version===0||$e(o,e._value))&&(e._value=o,t.version++)}catch(o){throw t.version++,o}finally{j=n,we=r,zn(e),e.flags&=-3}}function nn(e){const{dep:t,prevSub:n,nextSub:r}=e;if(n&&(n.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=n,e.nextSub=void 0),t.subs===e&&(t.subs=n),!t.subs&&t.computed){t.computed.flags&=-5;for(let o=t.computed.deps;o;o=o.nextDep)nn(o)}}function Mo(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let we=!0;const tr=[];function Ue(){tr.push(we),we=!1}function Ke(){const e=tr.pop();we=e===void 0?!0:e}function nr(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=j;j=void 0;try{t()}finally{j=n}}}let ot=0;class rr{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,process.env.NODE_ENV!=="production"&&(this.subsHead=void 0)}track(t){if(!j||!we||j===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==j)n=this.activeLink={dep:this,sub:j,version:this.version,nextDep:void 0,prevDep:void 0,nextSub:void 0,prevSub:void 0,prevActiveLink:void 0},j.deps?(n.prevDep=j.depsTail,j.depsTail.nextDep=n,j.depsTail=n):j.deps=j.depsTail=n,j.flags&4&&or(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=j.depsTail,n.nextDep=void 0,j.depsTail.nextDep=n,j.depsTail=n,j.deps===n&&(j.deps=r)}return process.env.NODE_ENV!=="production"&&j.onTrack&&j.onTrack(se({effect:j},t)),n}trigger(t){this.version++,ot++,this.notify(t)}notify(t){zt();try{if(process.env.NODE_ENV!=="production")for(let n=this.subsHead;n;n=n.nextSub)process.env.NODE_ENV!=="production"&&n.sub.onTrigger&&!(n.sub.flags&8)&&n.sub.onTrigger(se({effect:n.sub},t));for(let n=this.subs;n;n=n.prevSub)n.sub.notify()}finally{en()}}}function or(e){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)or(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),process.env.NODE_ENV!=="production"&&e.dep.subsHead===void 0&&(e.dep.subsHead=e),e.dep.subs=e}const rn=new WeakMap,ke=Symbol(process.env.NODE_ENV!=="production"?"Object iterate":""),on=Symbol(process.env.NODE_ENV!=="production"?"Map keys iterate":""),it=Symbol(process.env.NODE_ENV!=="production"?"Array iterate":"");function z(e,t,n){if(we&&j){let r=rn.get(e);r||rn.set(e,r=new Map);let o=r.get(n);o||r.set(n,o=new rr),process.env.NODE_ENV!=="production"?o.track({target:e,type:t,key:n}):o.track()}}function De(e,t,n,r,o,i){const s=rn.get(e);if(!s){ot++;return}let a=[];if(t==="clear")a=[...s.values()];else{const l=H(e),N=l&&Yt(n);if(l&&n==="length"){const C=Number(r);s.forEach((c,h)=>{(h==="length"||h===it||!Ve(h)&&h>=C)&&a.push(c)})}else{const C=c=>c&&a.push(c);switch(n!==void 0&&C(s.get(n)),N&&C(s.get(it)),t){case"add":l?N&&C(s.get("length")):(C(s.get(ke)),Be(e)&&C(s.get(on)));break;case"delete":l||(C(s.get(ke)),Be(e)&&C(s.get(on)));break;case"set":Be(e)&&C(s.get(ke));break}}}zt();for(const l of a)process.env.NODE_ENV!=="production"?l.trigger({target:e,type:t,key:n,newValue:r,oldValue:o,oldTarget:i}):l.trigger();en()}function We(e){const t=q(e);return t===e?t:(z(t,"iterate",it),fe(e)?t:t.map(de))}function sn(e){return z(e=q(e),"iterate",it),e}const Io={__proto__:null,[Symbol.iterator](){return an(this,Symbol.iterator,de)},concat(...e){return We(this).concat(...e.map(t=>H(t)?We(t):t))},entries(){return an(this,"entries",e=>(e[1]=de(e[1]),e))},every(e,t){return Ee(this,"every",e,t,void 0,arguments)},filter(e,t){return Ee(this,"filter",e,t,n=>n.map(de),arguments)},find(e,t){return Ee(this,"find",e,t,de,arguments)},findIndex(e,t){return Ee(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Ee(this,"findLast",e,t,de,arguments)},findLastIndex(e,t){return Ee(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Ee(this,"forEach",e,t,void 0,arguments)},includes(...e){return cn(this,"includes",e)},indexOf(...e){return cn(this,"indexOf",e)},join(e){return We(this).join(e)},lastIndexOf(...e){return cn(this,"lastIndexOf",e)},map(e,t){return Ee(this,"map",e,t,void 0,arguments)},pop(){return st(this,"pop")},push(...e){return st(this,"push",e)},reduce(e,...t){return ir(this,"reduce",e,t)},reduceRight(e,...t){return ir(this,"reduceRight",e,t)},shift(){return st(this,"shift")},some(e,t){return Ee(this,"some",e,t,void 0,arguments)},splice(...e){return st(this,"splice",e)},toReversed(){return We(this).toReversed()},toSorted(e){return We(this).toSorted(e)},toSpliced(...e){return We(this).toSpliced(...e)},unshift(...e){return st(this,"unshift",e)},values(){return an(this,"values",de)}};function an(e,t,n){const r=sn(e),o=r[t]();return r!==e&&!fe(e)&&(o._next=o.next,o.next=()=>{const i=o._next();return i.value&&(i.value=n(i.value)),i}),o}const To=Array.prototype;function Ee(e,t,n,r,o,i){const s=sn(e),a=s!==e&&!fe(e),l=s[t];if(l!==To[t]){const c=l.apply(e,i);return a?de(c):c}let N=n;s!==e&&(a?N=function(c,h){return n.call(this,de(c),h,e)}:n.length>2&&(N=function(c,h){return n.call(this,c,h,e)}));const C=l.call(s,N,r);return a&&o?o(C):C}function ir(e,t,n,r){const o=sn(e);let i=n;return o!==e&&(fe(e)?n.length>3&&(i=function(s,a,l){return n.call(this,s,a,l,e)}):i=function(s,a,l){return n.call(this,s,de(a),l,e)}),o[t](i,...r)}function cn(e,t,n){const r=q(e);z(r,"iterate",it);const o=r[t](...n);return(o===-1||o===!1)&&Ot(n[0])?(n[0]=q(n[0]),r[t](...n)):o}function st(e,t,n=[]){Ue(),zt();const r=q(e)[t].apply(e,n);return en(),Ke(),r}const Po=me("__proto__,__v_isRef,__isVue"),sr=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ve));function Ro(e){Ve(e)||(e=String(e));const t=q(this);return z(t,"has",e),t.hasOwnProperty(e)}class ar{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){const o=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return i;if(n==="__v_raw")return r===(o?i?vr:gr:i?Wo:hr).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const s=H(t);if(!o){let l;if(s&&(l=Io[n]))return l;if(n==="hasOwnProperty")return Ro}const a=Reflect.get(t,n,ae(t)?t:r);return(Ve(n)?sr.has(n):Po(n))||(o||z(t,"get",n),i)?a:ae(a)?s&&Yt(n)?a:a.value:Y(a)?o?_r(a):fn(a):a}}class Ao extends ar{constructor(t=!1){super(!1,t)}set(t,n,r,o){let i=t[n];if(!this._isShallow){const l=Se(i);if(!fe(r)&&!Se(r)&&(i=q(i),r=q(r)),!H(t)&&ae(i)&&!ae(r))return l?!1:(i.value=r,!0)}const s=H(t)&&Yt(n)?Number(n)<t.length:G(t,n),a=Reflect.set(t,n,r,ae(t)?t:o);return t===q(o)&&(s?$e(r,i)&&De(t,"set",n,r,i):De(t,"add",n,r)),a}deleteProperty(t,n){const r=G(t,n),o=t[n],i=Reflect.deleteProperty(t,n);return i&&r&&De(t,"delete",n,void 0,o),i}has(t,n){const r=Reflect.has(t,n);return(!Ve(n)||!sr.has(n))&&z(t,"has",n),r}ownKeys(t){return z(t,"iterate",H(t)?"length":ke),Reflect.ownKeys(t)}}class cr extends ar{constructor(t=!1){super(!0,t)}set(t,n){return process.env.NODE_ENV!=="production"&&ye(`Set operation on key "${String(n)}" failed: target is readonly.`,t),!0}deleteProperty(t,n){return process.env.NODE_ENV!=="production"&&ye(`Delete operation on key "${String(n)}" failed: target is readonly.`,t),!0}}const Bo=new Ao,Vo=new cr,$o=new cr(!0),un=e=>e,vt=e=>Reflect.getPrototypeOf(e);function _t(e,t,n=!1,r=!1){e=e.__v_raw;const o=q(e),i=q(t);n||($e(t,i)&&z(o,"get",t),z(o,"get",i));const{has:s}=vt(o),a=r?un:n?pn:de;if(s.call(o,t))return a(e.get(t));if(s.call(o,i))return a(e.get(i));e!==o&&e.get(t)}function mt(e,t=!1){const n=this.__v_raw,r=q(n),o=q(e);return t||($e(e,o)&&z(r,"has",e),z(r,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function wt(e,t=!1){return e=e.__v_raw,!t&&z(q(e),"iterate",ke),Reflect.get(e,"size",e)}function ur(e,t=!1){!t&&!fe(e)&&!Se(e)&&(e=q(e));const n=q(this);return vt(n).has.call(n,e)||(n.add(e),De(n,"add",e,e)),this}function lr(e,t,n=!1){!n&&!fe(t)&&!Se(t)&&(t=q(t));const r=q(this),{has:o,get:i}=vt(r);let s=o.call(r,e);s?process.env.NODE_ENV!=="production"&&pr(r,o,e):(e=q(e),s=o.call(r,e));const a=i.call(r,e);return r.set(e,t),s?$e(t,a)&&De(r,"set",e,t,a):De(r,"add",e,t),this}function fr(e){const t=q(this),{has:n,get:r}=vt(t);let o=n.call(t,e);o?process.env.NODE_ENV!=="production"&&pr(t,n,e):(e=q(e),o=n.call(t,e));const i=r?r.call(t,e):void 0,s=t.delete(e);return o&&De(t,"delete",e,void 0,i),s}function dr(){const e=q(this),t=e.size!==0,n=process.env.NODE_ENV!=="production"?Be(e)?new Map(e):new Set(e):void 0,r=e.clear();return t&&De(e,"clear",void 0,void 0,n),r}function bt(e,t){return function(r,o){const i=this,s=i.__v_raw,a=q(s),l=t?un:e?pn:de;return!e&&z(a,"iterate",ke),s.forEach((N,C)=>r.call(o,l(N),l(C),i))}}function yt(e,t,n){return function(...r){const o=this.__v_raw,i=q(o),s=Be(i),a=e==="entries"||e===Symbol.iterator&&s,l=e==="keys"&&s,N=o[e](...r),C=n?un:t?pn:de;return!t&&z(i,"iterate",l?on:ke),{next(){const{value:c,done:h}=N.next();return h?{value:c,done:h}:{value:a?[C(c[0]),C(c[1])]:C(c),done:h}},[Symbol.iterator](){return this}}}}function Ce(e){return function(...t){if(process.env.NODE_ENV!=="production"){const n=t[0]?`on key "${t[0]}" `:"";ye(`${Kn(e)} operation ${n}failed: target is readonly.`,q(this))}return e==="delete"?!1:e==="clear"?void 0:this}}function ko(){const e={get(i){return _t(this,i)},get size(){return wt(this)},has:mt,add:ur,set:lr,delete:fr,clear:dr,forEach:bt(!1,!1)},t={get(i){return _t(this,i,!1,!0)},get size(){return wt(this)},has:mt,add(i){return ur.call(this,i,!0)},set(i,s){return lr.call(this,i,s,!0)},delete:fr,clear:dr,forEach:bt(!1,!0)},n={get(i){return _t(this,i,!0)},get size(){return wt(this,!0)},has(i){return mt.call(this,i,!0)},add:Ce("add"),set:Ce("set"),delete:Ce("delete"),clear:Ce("clear"),forEach:bt(!0,!1)},r={get(i){return _t(this,i,!0,!0)},get size(){return wt(this,!0)},has(i){return mt.call(this,i,!0)},add:Ce("add"),set:Ce("set"),delete:Ce("delete"),clear:Ce("clear"),forEach:bt(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=yt(i,!1,!1),n[i]=yt(i,!0,!1),t[i]=yt(i,!1,!0),r[i]=yt(i,!0,!0)}),[e,n,t,r]}const[Lo,Fo,qo,Ho]=ko();function ln(e,t){const n=t?e?Ho:qo:e?Fo:Lo;return(r,o,i)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?r:Reflect.get(G(n,o)&&o in r?n:r,o,i)}const jo={get:ln(!1,!1)},Uo={get:ln(!0,!1)},Ko={get:ln(!0,!0)};function pr(e,t,n){const r=q(n);if(r!==n&&t.call(e,r)){const o=Hn(e);ye(`Reactive ${o} contains both the raw and reactive versions of the same object${o==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}const hr=new WeakMap,Wo=new WeakMap,gr=new WeakMap,vr=new WeakMap;function Qo(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Jo(e){return e.__v_skip||!Object.isExtensible(e)?0:Qo(Hn(e))}function fn(e){return Se(e)?e:dn(e,!1,Bo,jo,hr)}function _r(e){return dn(e,!0,Vo,Uo,gr)}function Et(e){return dn(e,!0,$o,Ko,vr)}function dn(e,t,n,r,o){if(!Y(e))return process.env.NODE_ENV!=="production"&&ye(`value cannot be made ${t?"readonly":"reactive"}: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=o.get(e);if(i)return i;const s=Jo(e);if(s===0)return e;const a=new Proxy(e,s===2?r:n);return o.set(e,a),a}function Qe(e){return Se(e)?Qe(e.__v_raw):!!(e&&e.__v_isReactive)}function Se(e){return!!(e&&e.__v_isReadonly)}function fe(e){return!!(e&&e.__v_isShallow)}function Ot(e){return e?!!e.__v_raw:!1}function q(e){const t=e&&e.__v_raw;return t?q(t):e}function Yo(e){return Object.isExtensible(e)&&Eo(e,"__v_skip",!0),e}const de=e=>Y(e)?fn(e):e,pn=e=>Y(e)?_r(e):e;function ae(e){return e?e.__v_isRef===!0:!1}function Nt(e){return ae(e)?e.value:e}const Go={get:(e,t,n)=>t==="__v_raw"?e:Nt(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return ae(o)&&!ae(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function mr(e){return Qe(e)?e:new Proxy(e,Go)}class Xo{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new rr(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=ot-1,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){j!==this?(this.flags|=16,this.dep.notify()):process.env.NODE_ENV}get value(){const t=process.env.NODE_ENV!=="production"?this.dep.track({target:this,type:"get",key:"value"}):this.dep.track();return er(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter?this.setter(t):process.env.NODE_ENV!=="production"&&ye("Write operation failed: computed value is readonly")}}function Zo(e,t,n=!1){let r,o;F(e)?r=e:(r=e.get,o=e.set);const i=new Xo(r,o,n);return process.env.NODE_ENV!=="production"&&t&&!n&&(i.onTrack=t.onTrack,i.onTrigger=t.onTrigger),i}const xt={},Dt=new WeakMap;let Le;function zo(e,t=!1,n=Le){if(n){let r=Dt.get(n);r||Dt.set(n,r=[]),r.push(e)}else process.env.NODE_ENV!=="production"&&!t&&ye("onWatcherCleanup() was called when there was no active watcher to associate with.")}function ei(e,t,n=Q){const{immediate:r,deep:o,once:i,scheduler:s,augmentJob:a,call:l}=n,N=L=>{(n.onWarn||ye)("Invalid watch source: ",L,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},C=L=>o?L:fe(L)||o===!1||o===0?Me(L,1):Me(L);let c,h,T,k,U=!1,te=!1;if(ae(e)?(h=()=>e.value,U=fe(e)):Qe(e)?(h=()=>C(e),U=!0):H(e)?(te=!0,U=e.some(L=>Qe(L)||fe(L)),h=()=>e.map(L=>{if(ae(L))return L.value;if(Qe(L))return C(L);if(F(L))return l?l(L,2):L();process.env.NODE_ENV!=="production"&&N(L)})):F(e)?t?h=l?()=>l(e,2):e:h=()=>{if(T){Ue();try{T()}finally{Ke()}}const L=Le;Le=c;try{return l?l(e,3,[k]):e(k)}finally{Le=L}}:(h=ie,process.env.NODE_ENV!=="production"&&N(e)),t&&o){const L=h,v=o===!0?1/0:o;h=()=>Me(L(),v)}const X=()=>{c.stop()};if(i)if(t){const L=t;t=(...v)=>{L(...v),X()}}else{const L=h;h=()=>{L(),X()}}let J=te?new Array(e.length).fill(xt):xt;const ne=L=>{if(!(!(c.flags&1)||!c.dirty&&!L))if(t){const v=c.run();if(o||U||(te?v.some((D,m)=>$e(D,J[m])):$e(v,J))){T&&T();const D=Le;Le=c;try{const m=[v,J===xt?void 0:te&&J[0]===xt?[]:J,k];l?l(t,3,m):t(...m),J=v}finally{Le=D}}}else c.run()};return a&&a(ne),c=new So(h),c.scheduler=s?()=>s(ne,!1):ne,k=L=>zo(L,!1,c),T=c.onStop=()=>{const L=Dt.get(c);if(L){if(l)l(L,4);else for(const v of L)v();Dt.delete(c)}},process.env.NODE_ENV!=="production"&&(c.onTrack=n.onTrack,c.onTrigger=n.onTrigger),t?r?ne(!0):J=c.run():s?s(ne.bind(null,!0),!0):c.run(),X.pause=c.pause.bind(c),X.resume=c.resume.bind(c),X.stop=X,X}function Me(e,t=1/0,n){if(t<=0||!Y(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,ae(e))Me(e.value,t,n);else if(H(e))for(let r=0;r<e.length;r++)Me(e[r],t,n);else if(Fn(e)||Be(e))e.forEach(r=>{Me(r,t,n)});else if(jn(e)){for(const r in e)Me(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Me(e[r],t,n)}return e}/**
* @vue/runtime-core v3.5.3
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/const Fe=[];function wr(e){Fe.push(e)}function br(){Fe.pop()}let hn=!1;function V(e,...t){if(hn)return;hn=!0,Ue();const n=Fe.length?Fe[Fe.length-1].component:null,r=n&&n.appContext.config.warnHandler,o=ti();if(r)Ct(r,n,11,[e+t.map(i=>{var s,a;return(a=(s=i.toString)==null?void 0:s.call(i))!=null?a:JSON.stringify(i)}).join(""),n&&n.proxy,o.map(({vnode:i})=>`at <${An(n,i.type)}>`).join(`
`),o]);else{const i=[`[Vue warn]: ${e}`,...t];o.length&&i.push(`
`,...ni(o)),console.warn(...i)}Ke(),hn=!1}function ti(){let e=Fe[Fe.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const r=e.component&&e.component.parent;e=r&&r.vnode}return t}function ni(e){const t=[];return e.forEach((n,r)=>{t.push(...r===0?[]:[`
`],...ri(n))}),t}function ri({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",r=e.component?e.component.parent==null:!1,o=` at <${An(e.component,e.type,r)}`,i=">"+n;return e.props?[o,...oi(e.props),i]:[o+i]}function oi(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(r=>{t.push(...yr(r,e[r]))}),n.length>3&&t.push(" ..."),t}function yr(e,t,n){return ue(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:ae(t)?(t=yr(e,q(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):F(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=q(t),n?t:[`${e}=`,t])}function ii(e,t){process.env.NODE_ENV!=="production"&&e!==void 0&&(typeof e!="number"?V(`${t} is not a valid number - got ${JSON.stringify(e)}.`):isNaN(e)&&V(`${t} is NaN - the duration expression might be incorrect.`))}const gn={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function Ct(e,t,n,r){try{return r?e(...r):e()}catch(o){Mt(o,t,n)}}function St(e,t,n,r){if(F(e)){const o=Ct(e,t,n,r);return o&&Jt(o)&&o.catch(i=>{Mt(i,t,n)}),o}if(H(e)){const o=[];for(let i=0;i<e.length;i++)o.push(St(e[i],t,n,r));return o}else process.env.NODE_ENV!=="production"&&V(`Invalid value type passed to callWithAsyncErrorHandling(): ${typeof e}`)}function Mt(e,t,n,r=!0){const o=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:s}=t&&t.appContext.config||Q;if(t){let a=t.parent;const l=t.proxy,N=process.env.NODE_ENV!=="production"?gn[n]:`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const C=a.ec;if(C){for(let c=0;c<C.length;c++)if(C[c](e,l,N)===!1)return}a=a.parent}if(i){Ue(),Ct(i,null,10,[e,l,N]),Ke();return}}si(e,n,o,r,s)}function si(e,t,n,r=!0,o=!1){if(process.env.NODE_ENV!=="production"){const i=gn[t];if(n&&wr(n),V(`Unhandled error${i?` during execution of ${i}`:""}`),n&&br(),r)throw e;console.error(e)}else{if(o)throw e;console.error(e)}}let It=!1,vn=!1;const ge=[];let Oe=0;const Je=[];let Ie=null,Ye=0;const Er=Promise.resolve();let _n=null;const ai=100;function ci(e){const t=_n||Er;return e?t.then(this?e.bind(this):e):t}function ui(e){let t=It?Oe+1:0,n=ge.length;for(;t<n;){const r=t+n>>>1,o=ge[r],i=at(o);i<e||i===e&&o.flags&2?t=r+1:n=r}return t}function mn(e){if(!(e.flags&1)){const t=at(e),n=ge[ge.length-1];!n||!(e.flags&2)&&t>=at(n)?ge.push(e):ge.splice(ui(t),0,e),e.flags|=1,Or()}}function Or(){!It&&!vn&&(vn=!0,_n=Er.then(Nr))}function Tt(e){H(e)?Je.push(...e):Ie&&e.id===-1?Ie.splice(Ye+1,0,e):e.flags&1||(Je.push(e),e.flags|=1),Or()}function li(e){if(Je.length){const t=[...new Set(Je)].sort((n,r)=>at(n)-at(r));if(Je.length=0,Ie){Ie.push(...t);return}for(Ie=t,process.env.NODE_ENV!=="production"&&(e=e||new Map),Ye=0;Ye<Ie.length;Ye++){const n=Ie[Ye];process.env.NODE_ENV!=="production"&&xr(e,n)||(n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2)}Ie=null,Ye=0}}const at=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Nr(e){vn=!1,It=!0,process.env.NODE_ENV!=="production"&&(e=e||new Map);const t=process.env.NODE_ENV!=="production"?n=>xr(e,n):ie;try{for(Oe=0;Oe<ge.length;Oe++){const n=ge[Oe];if(n&&!(n.flags&8)){if(process.env.NODE_ENV!=="production"&&t(n))continue;n.flags&4&&(n.flags&=-2),Ct(n,n.i,n.i?15:14),n.flags&=-2}}}finally{for(;Oe<ge.length;Oe++){const n=ge[Oe];n&&(n.flags&=-2)}Oe=0,ge.length=0,li(e),It=!1,_n=null,(ge.length||Je.length)&&Nr(e)}}function xr(e,t){if(!e.has(t))e.set(t,1);else{const n=e.get(t);if(n>ai){const r=t.i,o=r&&ao(r.type);return Mt(`Maximum recursive updates exceeded${o?` in component <${o}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,null,10),!0}else e.set(t,n+1)}}const Pt=new Map;process.env.NODE_ENV!=="production"&&(Qn().__VUE_HMR_RUNTIME__={createRecord:wn(fi),rerender:wn(di),reload:wn(pi)});const Rt=new Map;function fi(e,t){return Rt.has(e)?!1:(Rt.set(e,{initialDef:At(t),instances:new Set}),!0)}function At(e){return co(e)?e.__vccOpts:e}function di(e,t){const n=Rt.get(e);n&&(n.initialDef.render=t,[...n.instances].forEach(r=>{t&&(r.render=t,At(r.type).render=t),r.renderCache=[],r.update()}))}function pi(e,t){const n=Rt.get(e);if(!n)return;t=At(t),Dr(n.initialDef,t);const r=[...n.instances];for(let o=0;o<r.length;o++){const i=r[o],s=At(i.type);let a=Pt.get(s);a||(s!==n.initialDef&&Dr(s,t),Pt.set(s,a=new Set)),a.add(i),i.appContext.propsCache.delete(i.type),i.appContext.emitsCache.delete(i.type),i.appContext.optionsCache.delete(i.type),i.ceReload?(a.add(i),i.ceReload(t.styles),a.delete(i)):i.parent?mn(()=>{i.parent.update(),a.delete(i)}):i.appContext.reload?i.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required."),i.root.ce&&i!==i.root&&i.root.ce._removeChildStyle(s)}Tt(()=>{Pt.clear()})}function Dr(e,t){se(e,t);for(const n in e)n!=="__file"&&!(n in t)&&delete e[n]}function wn(e){return(t,n)=>{try{return e(t,n)}catch(r){console.error(r),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let Te,ct=[],bn=!1;function Cr(e,...t){Te?Te.emit(e,...t):bn||ct.push({event:e,args:t})}function Sr(e,t){var n,r;Te=e,Te?(Te.enabled=!0,ct.forEach(({event:o,args:i})=>Te.emit(o,...i)),ct=[]):typeof window<"u"&&window.HTMLElement&&!((r=(n=window.navigator)==null?void 0:n.userAgent)!=null&&r.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(i=>{Sr(i,t)}),setTimeout(()=>{Te||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,bn=!0,ct=[])},3e3)):(bn=!0,ct=[])}const hi=gi("component:updated");/*! #__NO_SIDE_EFFECTS__ */function gi(e){return t=>{Cr(e,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}const vi=Mr("perf:start"),_i=Mr("perf:end");function Mr(e){return(t,n,r)=>{Cr(e,t.appContext.app,t.uid,t,n,r)}}let pe=null,Ir=null;function Tr(e){const t=pe;return pe=e,Ir=e&&e.type.__scopeId||null,t}function mi(e,t=pe,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&Zr(-1);const i=Tr(t);let s;try{s=e(...o)}finally{Tr(i),r._d&&Zr(1)}return process.env.NODE_ENV!=="production"&&hi(t),s};return r._n=!0,r._c=!0,r._d=!0,r}const wi=e=>e.__isTeleport;function Pr(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Pr(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}/*! #__NO_SIDE_EFFECTS__ */function Rr(e,t){return F(e)?(()=>se({name:e.name},t,{setup:e}))():e}function bi(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const yi=e=>e.type.__isKeepAlive;function Ei(e,t){Ar(e,"a",t)}function Oi(e,t){Ar(e,"da",t)}function Ar(e,t,n=re){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Bt(t,r,n),n){let o=n.parent;for(;o&&o.parent;)yi(o.parent.vnode)&&Ni(r,t,n,o),o=o.parent}}function Ni(e,t,n,r){const o=Bt(t,e,r,!0);Br(()=>{wo(r[t],o)},n)}function Bt(e,t,n=re,r=!1){if(n){const o=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...s)=>{Ue();const a=ht(n),l=St(t,n,e,s);return a(),Ke(),l});return r?o.unshift(i):o.push(i),i}else if(process.env.NODE_ENV!=="production"){const o=yo(gn[e].replace(/ hook$/,""));V(`${o} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.`)}}const Ne=e=>(t,n=re)=>{(!jt||e==="sp")&&Bt(e,(...r)=>t(...r),n)},xi=Ne("bm"),Di=Ne("m"),Ci=Ne("bu"),Si=Ne("u"),Mi=Ne("bum"),Br=Ne("um"),Ii=Ne("sp"),Ti=Ne("rtg"),Pi=Ne("rtc");function Ri(e,t=re){Bt("ec",e,t)}const Vr=Symbol.for("v-ndc"),yn=e=>e?ps(e)?vs(e):yn(e.parent):null,ut=se(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>process.env.NODE_ENV!=="production"?Et(e.props):e.props,$attrs:e=>process.env.NODE_ENV!=="production"?Et(e.attrs):e.attrs,$slots:e=>process.env.NODE_ENV!=="production"?Et(e.slots):e.slots,$refs:e=>process.env.NODE_ENV!=="production"?Et(e.refs):e.refs,$parent:e=>yn(e.parent),$root:e=>yn(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>xn(e),$forceUpdate:e=>e.f||(e.f=()=>{mn(e.update)}),$nextTick:e=>e.n||(e.n=ci.bind(e.proxy)),$watch:e=>Xi.bind(e)}),En=e=>e==="_"||e==="$",On=(e,t)=>e!==Q&&!e.__isScriptSetup&&G(e,t),Ai={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:o,props:i,accessCache:s,type:a,appContext:l}=e;if(process.env.NODE_ENV!=="production"&&t==="__isVue")return!0;let N;if(t[0]!=="$"){const T=s[t];if(T!==void 0)switch(T){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return i[t]}else{if(On(r,t))return s[t]=1,r[t];if(o!==Q&&G(o,t))return s[t]=2,o[t];if((N=e.propsOptions[0])&&G(N,t))return s[t]=3,i[t];if(n!==Q&&G(n,t))return s[t]=4,n[t];Nn&&(s[t]=0)}}const C=ut[t];let c,h;if(C)return t==="$attrs"?(z(e.attrs,"get",""),process.env.NODE_ENV!=="production"&&void 0):process.env.NODE_ENV!=="production"&&t==="$slots"&&z(e,"get",t),C(e);if((c=a.__cssModules)&&(c=c[t]))return c;if(n!==Q&&G(n,t))return s[t]=4,n[t];if(h=l.config.globalProperties,G(h,t))return h[t];process.env.NODE_ENV!=="production"&&pe&&(!ue(t)||t.indexOf("__v")!==0)&&(o!==Q&&En(t[0])&&G(o,t)?V(`Property ${JSON.stringify(t)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):e===pe&&V(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))},set({_:e},t,n){const{data:r,setupState:o,ctx:i}=e;return On(o,t)?(o[t]=n,!0):process.env.NODE_ENV!=="production"&&o.__isScriptSetup&&G(o,t)?(V(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):r!==Q&&G(r,t)?(r[t]=n,!0):G(e.props,t)?(process.env.NODE_ENV!=="production"&&V(`Attempting to mutate prop "${t}". Props are readonly.`),!1):t[0]==="$"&&t.slice(1)in e?(process.env.NODE_ENV!=="production"&&V(`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`),!1):(process.env.NODE_ENV!=="production"&&t in e.appContext.config.globalProperties?Object.defineProperty(i,t,{enumerable:!0,configurable:!0,value:n}):i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,propsOptions:i}},s){let a;return!!n[s]||e!==Q&&G(e,s)||On(t,s)||(a=i[0])&&G(a,s)||G(r,s)||G(ut,s)||G(o.config.globalProperties,s)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:G(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};process.env.NODE_ENV!=="production"&&(Ai.ownKeys=e=>(V("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."),Reflect.ownKeys(e)));function Bi(e){const{ctx:t,setupState:n}=e;Object.keys(q(n)).forEach(r=>{if(!n.__isScriptSetup){if(En(r[0])){V(`setup() return property ${JSON.stringify(r)} should not start with "$" or "_" which are reserved prefixes for Vue internals.`);return}Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>n[r],set:ie})}})}function $r(e){return H(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function Vi(e){const t=io();process.env.NODE_ENV!=="production"&&!t&&V("withAsyncContext called without active current instance. This is likely a bug.");let n=e();return ds(),Jt(n)&&(n=n.catch(r=>{throw ht(t),r})),[n,()=>ht(t)]}function $i(){const e=Object.create(null);return(t,n)=>{e[n]?V(`${t} property "${n}" is already defined in ${e[n]}.`):e[n]=t}}let Nn=!0;function ki(e){const t=xn(e),n=e.proxy,r=e.ctx;Nn=!1,t.beforeCreate&&kr(t.beforeCreate,e,"bc");const{data:o,computed:i,methods:s,watch:a,provide:l,inject:N,created:C,beforeMount:c,mounted:h,beforeUpdate:T,updated:k,activated:U,deactivated:te,beforeDestroy:X,beforeUnmount:J,destroyed:ne,unmounted:L,render:v,renderTracked:D,renderTriggered:m,errorCaptured:S,serverPrefetch:d,expose:g,inheritAttrs:f,components:u,directives:O,filters:y}=t,b=process.env.NODE_ENV!=="production"?$i():null;if(process.env.NODE_ENV!=="production"){const[M]=e.propsOptions;if(M)for(const P in M)b("Props",P)}if(N&&Li(N,r,b),s)for(const M in s){const P=s[M];F(P)?(process.env.NODE_ENV!=="production"?Object.defineProperty(r,M,{value:P.bind(n),configurable:!0,enumerable:!0,writable:!0}):r[M]=P.bind(n),process.env.NODE_ENV!=="production"&&b("Methods",M)):process.env.NODE_ENV!=="production"&&V(`Method "${M}" has type "${typeof P}" in the component definition. Did you reference the function correctly?`)}if(o){process.env.NODE_ENV!=="production"&&!F(o)&&V("The data option must be a function. Plain object usage is no longer supported.");const M=o.call(n,n);if(process.env.NODE_ENV!=="production"&&Jt(M)&&V("data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>."),!Y(M))process.env.NODE_ENV!=="production"&&V("data() should return an object.");else if(e.data=fn(M),process.env.NODE_ENV!=="production")for(const P in M)b("Data",P),En(P[0])||Object.defineProperty(r,P,{configurable:!0,enumerable:!0,get:()=>M[P],set:ie})}if(Nn=!0,i)for(const M in i){const P=i[M],K=F(P)?P.bind(n,n):F(P.get)?P.get.bind(n,n):ie;process.env.NODE_ENV!=="production"&&K===ie&&V(`Computed property "${M}" has no getter.`);const ee=!F(P)&&F(P.set)?P.set.bind(n):process.env.NODE_ENV!=="production"?()=>{V(`Write operation failed: computed property "${M}" is readonly.`)}:ie,he=ws({get:K,set:ee});Object.defineProperty(r,M,{enumerable:!0,configurable:!0,get:()=>he.value,set:be=>he.value=be}),process.env.NODE_ENV!=="production"&&b("Computed",M)}if(a)for(const M in a)Lr(a[M],r,n,M);if(l){const M=F(l)?l.call(n):l;Reflect.ownKeys(M).forEach(P=>{Ui(P,M[P])})}C&&kr(C,e,"c");function R(M,P){H(P)?P.forEach(K=>M(K.bind(n))):P&&M(P.bind(n))}if(R(xi,c),R(Di,h),R(Ci,T),R(Si,k),R(Ei,U),R(Oi,te),R(Ri,S),R(Pi,D),R(Ti,m),R(Mi,J),R(Br,L),R(Ii,d),H(g))if(g.length){const M=e.exposed||(e.exposed={});g.forEach(P=>{Object.defineProperty(M,P,{get:()=>n[P],set:K=>n[P]=K})})}else e.exposed||(e.exposed={});v&&e.render===ie&&(e.render=v),f!=null&&(e.inheritAttrs=f),u&&(e.components=u),O&&(e.directives=O),d&&bi(e)}function Li(e,t,n=ie){H(e)&&(e=Dn(e));for(const r in e){const o=e[r];let i;Y(o)?"default"in o?i=$t(o.from||r,o.default,!0):i=$t(o.from||r):i=$t(o),ae(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:s=>i.value=s}):t[r]=i,process.env.NODE_ENV!=="production"&&n("Inject",r)}}function kr(e,t,n){St(H(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Lr(e,t,n,r){let o=r.includes(".")?Ur(n,r):()=>n[r];if(ue(e)){const i=t[e];F(i)?Cn(o,i):process.env.NODE_ENV!=="production"&&V(`Invalid watch handler specified by key "${e}"`,i)}else if(F(e))Cn(o,e.bind(n));else if(Y(e))if(H(e))e.forEach(i=>Lr(i,t,n,r));else{const i=F(e.handler)?e.handler.bind(n):t[e.handler];F(i)?Cn(o,i,e):process.env.NODE_ENV!=="production"&&V(`Invalid watch handler specified by key "${e.handler}"`,i)}else process.env.NODE_ENV!=="production"&&V(`Invalid watch option: "${r}"`,e)}function xn(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:s}}=e.appContext,a=i.get(t);let l;return a?l=a:!o.length&&!n&&!r?l=t:(l={},o.length&&o.forEach(N=>Vt(l,N,s,!0)),Vt(l,t,s)),Y(t)&&i.set(t,l),l}function Vt(e,t,n,r=!1){const{mixins:o,extends:i}=t;i&&Vt(e,i,n,!0),o&&o.forEach(s=>Vt(e,s,n,!0));for(const s in t)if(r&&s==="expose")process.env.NODE_ENV!=="production"&&V('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const a=Fi[s]||n&&n[s];e[s]=a?a(e[s],t[s]):t[s]}return e}const Fi={data:Fr,props:qr,emits:qr,methods:lt,computed:lt,beforeCreate:ce,created:ce,beforeMount:ce,mounted:ce,beforeUpdate:ce,updated:ce,beforeDestroy:ce,beforeUnmount:ce,destroyed:ce,unmounted:ce,activated:ce,deactivated:ce,errorCaptured:ce,serverPrefetch:ce,components:lt,directives:lt,watch:Hi,provide:Fr,inject:qi};function Fr(e,t){return t?e?function(){return se(F(e)?e.call(this,this):e,F(t)?t.call(this,this):t)}:t:e}function qi(e,t){return lt(Dn(e),Dn(t))}function Dn(e){if(H(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function ce(e,t){return e?[...new Set([].concat(e,t))]:t}function lt(e,t){return e?se(Object.create(null),e,t):t}function qr(e,t){return e?H(e)&&H(t)?[...new Set([...e,...t])]:se(Object.create(null),$r(e),$r(t??{})):t}function Hi(e,t){if(!e)return t;if(!t)return e;const n=se(Object.create(null),e);for(const r in t)n[r]=ce(e[r],t[r]);return n}let ji=null;function Ui(e,t){if(!re)process.env.NODE_ENV!=="production"&&V("provide() can only be used inside setup().");else{let n=re.provides;const r=re.parent&&re.parent.provides;r===n&&(n=re.provides=Object.create(r)),n[e]=t}}function $t(e,t,n=!1){const r=re||pe;if(r||ji){const o=r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(o&&e in o)return o[e];if(arguments.length>1)return n&&F(t)?t.call(r&&r.proxy):t;process.env.NODE_ENV!=="production"&&V(`injection "${String(e)}" not found.`)}else process.env.NODE_ENV!=="production"&&V("inject() can only be used inside setup() or functional components.")}const Ki={},Hr=e=>Object.getPrototypeOf(e)===Ki;let ft,Pe;function Wi(e,t){e.appContext.config.performance&&kt()&&Pe.mark(`vue-${t}-${e.uid}`),process.env.NODE_ENV!=="production"&&vi(e,t,kt()?Pe.now():Date.now())}function Qi(e,t){if(e.appContext.config.performance&&kt()){const n=`vue-${t}-${e.uid}`,r=n+":end";Pe.mark(r),Pe.measure(`<${An(e,e.type)}> ${t}`,n,r),Pe.clearMarks(n),Pe.clearMarks(r)}process.env.NODE_ENV!=="production"&&_i(e,t,kt()?Pe.now():Date.now())}function kt(){return ft!==void 0||(typeof window<"u"&&window.performance?(ft=!0,Pe=window.performance):ft=!1),ft}const Ji=os,Yi=Symbol.for("v-scx"),Gi=()=>{{const e=$t(Yi);return e||process.env.NODE_ENV!=="production"&&V("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}};function Cn(e,t,n){return process.env.NODE_ENV!=="production"&&!F(t)&&V("`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."),jr(e,t,n)}function jr(e,t,n=Q){const{immediate:r,deep:o,flush:i,once:s}=n;process.env.NODE_ENV!=="production"&&!t&&(r!==void 0&&V('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),o!==void 0&&V('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'),s!==void 0&&V('watch() "once" option is only respected when using the watch(source, callback, options?) signature.'));const a=se({},n);process.env.NODE_ENV!=="production"&&(a.onWarn=V);let l;if(jt)if(i==="sync"){const h=Gi();l=h.__watcherHandles||(h.__watcherHandles=[])}else if(!t||r)a.once=!0;else return{stop:ie,resume:ie,pause:ie};const N=re;a.call=(h,T,k)=>St(h,N,T,k);let C=!1;i==="post"?a.scheduler=h=>{Ji(h,N&&N.suspense)}:i!=="sync"&&(C=!0,a.scheduler=(h,T)=>{T?h():mn(h)}),a.augmentJob=h=>{t&&(h.flags|=4),C&&(h.flags|=2,N&&(h.id=N.uid,h.i=N))};const c=ei(e,t,a);return l&&l.push(c),c}function Xi(e,t,n){const r=this.proxy,o=ue(e)?e.includes(".")?Ur(r,e):()=>r[e]:e.bind(r,r);let i;F(t)?i=t:(i=t.handler,n=t);const s=ht(this),a=jr(o,i.bind(r),n);return s(),a}function Ur(e,t){const n=t.split(".");return()=>{let r=e;for(let o=0;o<n.length&&r;o++)r=r[n[o]];return r}}function qs(){}function Kr(e,t=!0){let n;for(let r=0;r<e.length;r++){const o=e[r];if(Tn(o)){if(o.type!==Xe||o.children==="v-if"){if(n)return;if(n=o,process.env.NODE_ENV!=="production"&&t&&n.patchFlag>0&&n.patchFlag&2048)return Kr(n.children)}}else return}return n}function Wr({vnode:e,parent:t},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r===e)(e=t.vnode).el=n,t=t.parent;else break}}const Zi=e=>e.__isSuspense;let Sn=0;const zi={name:"Suspense",__isSuspense:!0,process(e,t,n,r,o,i,s,a,l,N){if(e==null)es(t,n,r,o,i,s,a,l,N);else{if(i&&i.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}ts(e,t,n,r,o,s,a,l,N)}},hydrate:ns,normalize:rs};function dt(e,t){const n=e.props&&e.props[t];F(n)&&n()}function es(e,t,n,r,o,i,s,a,l){const{p:N,o:{createElement:C}}=l,c=C("div"),h=e.suspense=Jr(e,o,r,t,c,n,i,s,a,l);N(null,h.pendingBranch=e.ssContent,c,null,r,h,i,s),h.deps>0?(dt(e,"onPending"),dt(e,"onFallback"),N(null,e.ssFallback,t,n,r,null,i,s),Ge(h,e.ssFallback)):h.resolve(!1,!0)}function ts(e,t,n,r,o,i,s,a,{p:l,um:N,o:{createElement:C}}){const c=t.suspense=e.suspense;c.vnode=t,t.el=e.el;const h=t.ssContent,T=t.ssFallback,{activeBranch:k,pendingBranch:U,isInFallback:te,isHydrating:X}=c;if(U)c.pendingBranch=h,Pn(h,U)?(l(U,h,c.hiddenContainer,null,o,c,i,s,a),c.deps<=0?c.resolve():te&&(X||(l(k,T,n,r,o,null,i,s,a),Ge(c,T)))):(c.pendingId=Sn++,X?(c.isHydrating=!1,c.activeBranch=U):N(U,o,c),c.deps=0,c.effects.length=0,c.hiddenContainer=C("div"),te?(l(null,h,c.hiddenContainer,null,o,c,i,s,a),c.deps<=0?c.resolve():(l(k,T,n,r,o,null,i,s,a),Ge(c,T))):k&&Pn(h,k)?(l(k,h,n,r,o,c,i,s,a),c.resolve(!0)):(l(null,h,c.hiddenContainer,null,o,c,i,s,a),c.deps<=0&&c.resolve()));else if(k&&Pn(h,k))l(k,h,n,r,o,c,i,s,a),Ge(c,h);else if(dt(t,"onPending"),c.pendingBranch=h,h.shapeFlag&512?c.pendingId=h.component.suspenseId:c.pendingId=Sn++,l(null,h,c.hiddenContainer,null,o,c,i,s,a),c.deps<=0)c.resolve();else{const{timeout:J,pendingId:ne}=c;J>0?setTimeout(()=>{c.pendingId===ne&&c.fallback(T)},J):J===0&&c.fallback(T)}}let Qr=!1;function Jr(e,t,n,r,o,i,s,a,l,N,C=!1){process.env.NODE_ENV!=="production"&&!Qr&&(Qr=!0,console[console.info?"info":"log"]("<Suspense> is an experimental feature and its API will likely change."));const{p:c,m:h,um:T,n:k,o:{parentNode:U,remove:te}}=N;let X;const J=is(e);J&&t&&t.pendingBranch&&(X=t.pendingId,t.deps++);const ne=e.props?Oo(e.props.timeout):void 0;process.env.NODE_ENV!=="production"&&ii(ne,"Suspense timeout");const L=i,v={vnode:e,parent:t,parentComponent:n,namespace:s,container:r,hiddenContainer:o,deps:0,pendingId:Sn++,timeout:typeof ne=="number"?ne:-1,activeBranch:null,pendingBranch:null,isInFallback:!C,isHydrating:C,isUnmounted:!1,effects:[],resolve(D=!1,m=!1){if(process.env.NODE_ENV!=="production"){if(!D&&!v.pendingBranch)throw new Error("suspense.resolve() is called without a pending branch.");if(v.isUnmounted)throw new Error("suspense.resolve() is called on an already unmounted suspense boundary.")}const{vnode:S,activeBranch:d,pendingBranch:g,pendingId:f,effects:u,parentComponent:O,container:y}=v;let b=!1;v.isHydrating?v.isHydrating=!1:D||(b=d&&g.transition&&g.transition.mode==="out-in",b&&(d.transition.afterLeave=()=>{f===v.pendingId&&(h(g,y,i===L?k(d):i,0),Tt(u))}),d&&(U(d.el)===y&&(i=k(d)),T(d,O,v,!0)),b||h(g,y,i,0)),Ge(v,g),v.pendingBranch=null,v.isInFallback=!1;let R=v.parent,M=!1;for(;R;){if(R.pendingBranch){R.effects.push(...u),M=!0;break}R=R.parent}!M&&!b&&Tt(u),v.effects=[],J&&t&&t.pendingBranch&&X===t.pendingId&&(t.deps--,t.deps===0&&!m&&t.resolve()),dt(S,"onResolve")},fallback(D){if(!v.pendingBranch)return;const{vnode:m,activeBranch:S,parentComponent:d,container:g,namespace:f}=v;dt(m,"onFallback");const u=k(S),O=()=>{v.isInFallback&&(c(null,D,g,u,d,null,f,a,l),Ge(v,D))},y=D.transition&&D.transition.mode==="out-in";y&&(S.transition.afterLeave=O),v.isInFallback=!0,T(S,d,null,!0),y||O()},move(D,m,S){v.activeBranch&&h(v.activeBranch,D,m,S),v.container=D},next(){return v.activeBranch&&k(v.activeBranch)},registerDep(D,m,S){const d=!!v.pendingBranch;d&&v.deps++;const g=D.vnode.el;D.asyncDep.catch(f=>{Mt(f,D,0)}).then(f=>{if(D.isUnmounted||v.isUnmounted||v.pendingId!==D.suspenseId)return;D.asyncResolved=!0;const{vnode:u}=D;process.env.NODE_ENV!=="production"&&wr(u),hs(D,f,!1),g&&(u.el=g);const O=!g&&D.subTree.el;m(D,u,U(g||D.subTree.el),g?null:k(D.subTree),v,s,S),O&&te(O),Wr(D,u.el),process.env.NODE_ENV!=="production"&&br(),d&&--v.deps===0&&v.resolve()})},unmount(D,m){v.isUnmounted=!0,v.activeBranch&&T(v.activeBranch,n,D,m),v.pendingBranch&&T(v.pendingBranch,n,D,m)}};return v}function ns(e,t,n,r,o,i,s,a,l){const N=t.suspense=Jr(t,r,n,e.parentNode,document.createElement("div"),null,o,i,s,a,!0),C=l(e,N.pendingBranch=t.ssContent,n,N,i,s);return N.deps===0&&N.resolve(!1,!0),C}function rs(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=Yr(r?n.default:n),e.ssFallback=r?Yr(n.fallback):Re(Xe)}function Yr(e){let t;if(F(e)){const n=ze&&e._c;n&&(e._d=!1,Ze()),e=e(),n&&(e._d=!0,t=le,Xr())}if(H(e)){const n=Kr(e);process.env.NODE_ENV!=="production"&&!n&&e.filter(r=>r!==Vr).length>0&&V("<Suspense> slots expect a single root node."),e=n}return e=us(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function os(e,t){t&&t.pendingBranch?H(e)?t.effects.push(...e):t.effects.push(e):Tt(e)}function Ge(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e;let o=t.el;for(;!o&&t.component;)t=t.component.subTree,o=t.el;n.el=o,r&&r.subTree===n&&(r.vnode.el=o,Wr(r,o))}function is(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const Mn=Symbol.for("v-fgt"),Gr=Symbol.for("v-txt"),Xe=Symbol.for("v-cmt"),Lt=[];let le=null;function Ze(e=!1){Lt.push(le=e?null:[])}function Xr(){Lt.pop(),le=Lt[Lt.length-1]||null}let ze=1;function Zr(e){ze+=e,e<0&&le&&(le.hasOnce=!0)}function zr(e){return e.dynamicChildren=ze>0?le||Ae:null,Xr(),ze>0&&le&&le.push(e),e}function In(e,t,n,r,o,i){return zr(qt(e,t,n,r,o,i,!0))}function eo(e,t,n,r,o){return zr(Re(e,t,n,r,o,!0))}function Tn(e){return e?e.__v_isVNode===!0:!1}function Pn(e,t){if(process.env.NODE_ENV!=="production"&&t.shapeFlag&6&&e.component){const n=Pt.get(t.type);if(n&&n.has(e.component))return e.shapeFlag&=-257,t.shapeFlag&=-513,!1}return e.type===t.type&&e.key===t.key}const ss=(...e)=>no(...e),to=({key:e})=>e??null,Ft=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ue(e)||ae(e)||F(e)?{i:pe,r:e,k:t,f:!!n}:e:null);function qt(e,t=null,n=null,r=0,o=null,i=e===Mn?0:1,s=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&to(t),ref:t&&Ft(t),scopeId:Ir,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:pe};return a?(Rn(l,n),i&128&&e.normalize(l)):n&&(l.shapeFlag|=ue(n)?8:16),process.env.NODE_ENV!=="production"&&l.key!==l.key&&V("VNode created with invalid key (NaN). VNode type:",l.type),ze>0&&!s&&le&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&le.push(l),l}const Re=process.env.NODE_ENV!=="production"?ss:no;function no(e,t=null,n=null,r=0,o=null,i=!1){if((!e||e===Vr)&&(process.env.NODE_ENV!=="production"&&!e&&V(`Invalid vnode type when creating vnode: ${e}.`),e=Xe),Tn(e)){const a=pt(e,t,!0);return n&&Rn(a,n),ze>0&&!i&&le&&(a.shapeFlag&6?le[le.indexOf(e)]=a:le.push(a)),a.patchFlag=-2,a}if(co(e)&&(e=e.__vccOpts),t){t=as(t);let{class:a,style:l}=t;a&&!ue(a)&&(t.class=je(a)),Y(l)&&(Ot(l)&&!H(l)&&(l=se({},l)),t.style=Gt(l))}const s=ue(e)?1:Zi(e)?128:wi(e)?64:Y(e)?4:F(e)?2:0;return process.env.NODE_ENV!=="production"&&s&4&&Ot(e)&&(e=q(e),V("Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",`
Component that was made reactive: `,e)),qt(e,t,n,r,o,s,i,!0)}function as(e){return e?Ot(e)||Hr(e)?se({},e):e:null}function pt(e,t,n=!1,r=!1){const{props:o,ref:i,patchFlag:s,children:a,transition:l}=e,N=t?fs(o||{},t):o,C={__v_isVNode:!0,__v_skip:!0,type:e.type,props:N,key:N&&to(N),ref:t&&t.ref?n&&i?H(i)?i.concat(Ft(t)):[i,Ft(t)]:Ft(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:process.env.NODE_ENV!=="production"&&s===-1&&H(a)?a.map(ro):a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Mn?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&pt(e.ssContent),ssFallback:e.ssFallback&&pt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&Pr(C,l.clone(C)),C}function ro(e){const t=pt(e);return H(e.children)&&(t.children=e.children.map(ro)),t}function cs(e=" ",t=0){return Re(Gr,null,e,t)}function oo(e="",t=!1){return t?(Ze(),eo(Xe,null,e)):Re(Xe,null,e)}function us(e){return e==null||typeof e=="boolean"?Re(Xe):H(e)?Re(Mn,null,e.slice()):typeof e=="object"?ls(e):Re(Gr,null,String(e))}function ls(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:pt(e)}function Rn(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(H(t))n=16;else if(typeof t=="object")if(r&65){const o=t.default;o&&(o._c&&(o._d=!1),Rn(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!Hr(t)?t._ctx=pe:o===3&&pe&&(pe.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else F(t)?(t={default:t,_ctx:pe},n=32):(t=String(t),r&64?(n=16,t=[cs(t)]):n=8);e.children=t,e.shapeFlag|=n}function fs(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const o in r)if(o==="class")t.class!==r.class&&(t.class=je([t.class,r.class]));else if(o==="style")t.style=Gt([t.style,r.style]);else if(mo(o)){const i=t[o],s=r[o];s&&i!==s&&!(H(i)&&i.includes(s))&&(t[o]=i?[].concat(i,s):s)}else o!==""&&(t[o]=r[o])}return t}let re=null;const io=()=>re||pe;let Ht;{const e=Qn(),t=(n,r)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(r),i=>{o.length>1?o.forEach(s=>s(i)):o[0](i)}};Ht=t("__VUE_INSTANCE_SETTERS__",n=>re=n),t("__VUE_SSR_SETTERS__",n=>jt=n)}const ht=e=>{const t=re;return Ht(e),e.scope.on(),()=>{e.scope.off(),Ht(t)}},ds=()=>{re&&re.scope.off(),Ht(null)};function ps(e){return e.vnode.shapeFlag&4}let jt=!1;function hs(e,t,n){F(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Y(t)?(process.env.NODE_ENV!=="production"&&Tn(t)&&V("setup() should not return VNodes directly - return a render function instead."),process.env.NODE_ENV!=="production"&&(e.devtoolsRawSetupState=t),e.setupState=mr(t),process.env.NODE_ENV!=="production"&&Bi(e)):process.env.NODE_ENV!=="production"&&t!==void 0&&V(`setup() should return an object. Received: ${t===null?"null":typeof t}`),gs(e,n)}let so;function gs(e,t,n){const r=e.type;if(!e.render){if(!t&&so&&!r.render){const o=r.template||xn(e).template;if(o){process.env.NODE_ENV!=="production"&&Wi(e,"compile");const{isCustomElement:i,compilerOptions:s}=e.appContext.config,{delimiters:a,compilerOptions:l}=r,N=se(se({isCustomElement:i,delimiters:a},s),l);r.render=so(o,N),process.env.NODE_ENV!=="production"&&Qi(e,"compile")}}e.render=r.render||ie}{const o=ht(e);Ue();try{ki(e)}finally{Ke(),o()}}process.env.NODE_ENV!=="production"&&!r.render&&e.render===ie&&!t&&(r.template?V('Component provided template option but runtime compilation is not supported in this build of Vue. Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".'):V("Component is missing template or render function: ",r))}process.env.NODE_ENV;function vs(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(mr(Yo(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ut)return ut[n](e)},has(t,n){return n in t||n in ut}})):e.proxy}const _s=/(?:^|[-_])(\w)/g,ms=e=>e.replace(_s,t=>t.toUpperCase()).replace(/[-_]/g,"");function ao(e,t=!0){return F(e)?e.displayName||e.name:e.name||t&&e.__name}function An(e,t,n=!1){let r=ao(t);if(!r&&t.__file){const o=t.__file.match(/([^/\\]+)\.\w+$/);o&&(r=o[1])}if(!r&&e&&e.parent){const o=i=>{for(const s in i)if(i[s]===t)return s};r=o(e.components||e.parent.type.components)||o(e.appContext.components)}return r?ms(r):n?"App":"Anonymous"}function co(e){return F(e)&&"__vccOpts"in e}const ws=(e,t)=>{const n=Zo(e,t,jt);if(process.env.NODE_ENV!=="production"){const r=io();r&&r.appContext.config.warnRecursiveComputed&&(n._warnRecursive=!0)}return n};function bs(){if(process.env.NODE_ENV==="production"||typeof window>"u")return;const e={style:"color:#3ba776"},t={style:"color:#1677ff"},n={style:"color:#f5222d"},r={style:"color:#eb2f96"},o={__vue_custom_formatter:!0,header(c){return Y(c)?c.__isVue?["div",e,"VueInstance"]:ae(c)?["div",{},["span",e,C(c)],"<",a("_value"in c?c._value:c),">"]:Qe(c)?["div",{},["span",e,fe(c)?"ShallowReactive":"Reactive"],"<",a(c),`>${Se(c)?" (readonly)":""}`]:Se(c)?["div",{},["span",e,fe(c)?"ShallowReadonly":"Readonly"],"<",a(c),">"]:null:null},hasBody(c){return c&&c.__isVue},body(c){if(c&&c.__isVue)return["div",{},...i(c.$)]}};function i(c){const h=[];c.type.props&&c.props&&h.push(s("props",q(c.props))),c.setupState!==Q&&h.push(s("setup",c.setupState)),c.data!==Q&&h.push(s("data",q(c.data)));const T=l(c,"computed");T&&h.push(s("computed",T));const k=l(c,"inject");return k&&h.push(s("injected",k)),h.push(["div",{},["span",{style:r.style+";opacity:0.66"},"$ (internal): "],["object",{object:c}]]),h}function s(c,h){return h=se({},h),Object.keys(h).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},c],["div",{style:"padding-left:1.25em"},...Object.keys(h).map(T=>["div",{},["span",r,T+": "],a(h[T],!1)])]]:["span",{}]}function a(c,h=!0){return typeof c=="number"?["span",t,c]:typeof c=="string"?["span",n,JSON.stringify(c)]:typeof c=="boolean"?["span",r,c]:Y(c)?["object",{object:h?q(c):c}]:["span",n,String(c)]}function l(c,h){const T=c.type;if(F(T))return;const k={};for(const U in c.ctx)N(T,U,h)&&(k[U]=c.ctx[U]);return k}function N(c,h,T){const k=c[T];if(H(k)&&k.includes(h)||Y(k)&&h in k||c.extends&&N(c.extends,h,T)||c.mixins&&c.mixins.some(U=>N(U,h,T)))return!0}function C(c){return fe(c)?"ShallowRef":c.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(o):window.devtoolsFormatters=[o]}process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV;/**
* vue v3.5.3
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function ys(){bs()}process.env.NODE_ENV!=="production"&&ys();const Bn={numeric:"Numeric",alphanumeric:"Alphanumeric",byte:"Byte",kanji:"Kanji"};function Es(e){switch(!0){case/^[0-9]*$/.test(e):return Bn.numeric;case/^[0-9A-Z $%*+\-./:]*$/.test(e):return Bn.alphanumeric;default:return Bn.byte}}const Ut=e=>!!e&&typeof e=="object"&&!Array.isArray(e);function Kt(e,...t){if(!t.length)return e;const n=t.shift();return n===void 0||!Ut(e)||!Ut(n)?e:(e={...e},Object.keys(n).forEach(r=>{const o=e[r],i=n[r];Array.isArray(o)&&Array.isArray(i)?e[r]=i:Ut(o)&&Ut(i)?e[r]=Kt(Object.assign({},o),i):e[r]=i}),Kt(e,...t))}function Os(e,t){const n=document.createElement("a");n.download=t,n.href=e,document.body.appendChild(n),n.click(),document.body.removeChild(n)}function Ns({originalHeight:e,originalWidth:t,maxHiddenDots:n,maxHiddenAxisDots:r,dotSize:o}){const i={x:0,y:0},s={x:0,y:0};if(e<=0||t<=0||n<=0||o<=0)return{height:0,width:0,hideYDots:0,hideXDots:0};const a=e/t;return i.x=Math.floor(Math.sqrt(n/a)),i.x<=0&&(i.x=1),r&&r<i.x&&(i.x=r),i.x%2===0&&i.x--,s.x=i.x*o,i.y=1+2*Math.ceil((i.x*a-1)/2),s.y=Math.round(s.x*a),(i.y*i.x>n||r&&r<i.y)&&(r&&r<i.y?(i.y=r,i.y%2===0&&i.x--):i.y-=2,s.y=i.y*o,i.x=1+2*Math.ceil((i.y/a-1)/2),s.x=Math.round(s.y/a)),{height:s.y,width:s.x,hideYDots:i.y,hideXDots:i.x}}const xs={L:.07,M:.15,Q:.25,H:.3},et={dots:"dots",rounded:"rounded",classy:"classy",classyRounded:"classy-rounded",square:"square",extraRounded:"extra-rounded"};class Vn{constructor({context:t,type:n}){oe(this,"_context");oe(this,"_type");this._context=t,this._type=n}draw(t,n,r,o){const i=this._context,s=this._type;let a;switch(s){case et.dots:a=this._drawDot;break;case et.classy:a=this._drawClassy;break;case et.classyRounded:a=this._drawClassyRounded;break;case et.rounded:a=this._drawRounded;break;case et.extraRounded:a=this._drawExtraRounded;break;case et.square:default:a=this._drawSquare}a.call(this,{x:t,y:n,size:r,context:i,getNeighbor:o})}_rotateFigure({x:t,y:n,size:r,context:o,rotation:i,draw:s}){const a=t+r/2,l=n+r/2;o.translate(a,l),i&&o.rotate(i),s(),o.closePath(),i&&o.rotate(-i),o.translate(-a,-l)}_basicDot(t){const{size:n,context:r}=t;this._rotateFigure({...t,draw:()=>{r.moveTo(0,0),r.arc(0,0,n/2,0,Math.PI*2)}})}_basicSquare(t){const{size:n,context:r}=t;this._rotateFigure({...t,draw:()=>{r.moveTo(0,0),r.rect(-n/2,-n/2,n,n)}})}_basicSideRounded(t){const{size:n,context:r}=t;this._rotateFigure({...t,draw:()=>{r.moveTo(0,0),r.arc(0,0,n/2,-Math.PI/2,Math.PI/2),r.lineTo(-n/2,n/2),r.lineTo(-n/2,-n/2),r.lineTo(0,-n/2)}})}_basicCornerRounded(t){const{size:n,context:r}=t;this._rotateFigure({...t,draw:()=>{r.moveTo(0,0),r.arc(0,0,n/2,-Math.PI/2,0),r.lineTo(n/2,n/2),r.lineTo(-n/2,n/2),r.lineTo(-n/2,-n/2),r.lineTo(0,-n/2)}})}_basicCornerExtraRounded(t){const{size:n,context:r}=t;this._rotateFigure({...t,draw:()=>{r.moveTo(0,0),r.arc(-n/2,n/2,n,-Math.PI/2,0),r.lineTo(-n/2,n/2),r.lineTo(-n/2,-n/2)}})}_basicCornersRounded(t){const{size:n,context:r}=t;this._rotateFigure({...t,draw:()=>{r.moveTo(0,0),r.arc(0,0,n/2,-Math.PI/2,0),r.lineTo(n/2,n/2),r.lineTo(0,n/2),r.arc(0,0,n/2,Math.PI/2,Math.PI),r.lineTo(-n/2,-n/2),r.lineTo(0,-n/2)}})}_basicCornersExtraRounded(t){const{size:n,context:r}=t;this._rotateFigure({...t,draw:()=>{r.moveTo(0,0),r.arc(-n/2,n/2,n,-Math.PI/2,0),r.arc(n/2,-n/2,n,Math.PI/2,Math.PI)}})}_drawDot({x:t,y:n,size:r,context:o}){this._basicDot({x:t,y:n,size:r,context:o,rotation:0})}_drawSquare({x:t,y:n,size:r,context:o}){this._basicSquare({x:t,y:n,size:r,context:o,rotation:0})}_drawRounded({x:t,y:n,size:r,context:o,getNeighbor:i}){const s=+i(-1,0),a=+i(1,0),l=+i(0,-1),N=+i(0,1),C=s+a+l+N;if(C===0){this._basicDot({x:t,y:n,size:r,context:o,rotation:0});return}if(C>2||s&&a||l&&N){this._basicSquare({x:t,y:n,size:r,context:o,rotation:0});return}if(C===2){let c=0;s&&l?c=Math.PI/2:l&&a?c=Math.PI:a&&N&&(c=-Math.PI/2),this._basicCornerRounded({x:t,y:n,size:r,context:o,rotation:c});return}if(C===1){let c=0;l?c=Math.PI/2:a?c=Math.PI:N&&(c=-Math.PI/2),this._basicSideRounded({x:t,y:n,size:r,context:o,rotation:c})}}_drawExtraRounded({x:t,y:n,size:r,context:o,getNeighbor:i}){const s=+i(-1,0),a=+i(1,0),l=+i(0,-1),N=+i(0,1),C=s+a+l+N;if(C===0){this._basicDot({x:t,y:n,size:r,context:o,rotation:0});return}if(C>2||s&&a||l&&N){this._basicSquare({x:t,y:n,size:r,context:o,rotation:0});return}if(C===2){let c=0;s&&l?c=Math.PI/2:l&&a?c=Math.PI:a&&N&&(c=-Math.PI/2),this._basicCornerExtraRounded({x:t,y:n,size:r,context:o,rotation:c});return}if(C===1){let c=0;l?c=Math.PI/2:a?c=Math.PI:N&&(c=-Math.PI/2),this._basicSideRounded({x:t,y:n,size:r,context:o,rotation:c})}}_drawClassy({x:t,y:n,size:r,context:o,getNeighbor:i}){const s=+i(-1,0),a=+i(1,0),l=+i(0,-1),N=+i(0,1);if(s+a+l+N===0){this._basicCornersRounded({x:t,y:n,size:r,context:o,rotation:Math.PI/2});return}if(!s&&!l){this._basicCornerRounded({x:t,y:n,size:r,context:o,rotation:-Math.PI/2});return}if(!a&&!N){this._basicCornerRounded({x:t,y:n,size:r,context:o,rotation:Math.PI/2});return}this._basicSquare({x:t,y:n,size:r,context:o,rotation:0})}_drawClassyRounded({x:t,y:n,size:r,context:o,getNeighbor:i}){const s=+i(-1,0),a=+i(1,0),l=+i(0,-1),N=+i(0,1);if(s+a+l+N===0){this._basicCornersRounded({x:t,y:n,size:r,context:o,rotation:Math.PI/2});return}if(!s&&!l){this._basicCornerExtraRounded({x:t,y:n,size:r,context:o,rotation:-Math.PI/2});return}if(!a&&!N){this._basicCornerExtraRounded({x:t,y:n,size:r,context:o,rotation:Math.PI/2});return}this._basicSquare({x:t,y:n,size:r,context:o,rotation:0})}}const $n={dot:"dot",square:"square",extraRounded:"extra-rounded"};class Ds{constructor({context:t,type:n}){oe(this,"_context");oe(this,"_type");this._context=t,this._type=n}draw(t,n,r,o){const i=this._context,s=this._type;let a;switch(s){case $n.square:a=this._drawSquare;break;case $n.extraRounded:a=this._drawExtraRounded;break;case $n.dot:default:a=this._drawDot}a.call(this,{x:t,y:n,size:r,context:i,rotation:o})}_rotateFigure({x:t,y:n,size:r,context:o,rotation:i,draw:s}){const a=t+r/2,l=n+r/2;o.translate(a,l),i&&o.rotate(i),s(),o.closePath(),i&&o.rotate(-i),o.translate(-a,-l)}_basicDot(t){const{size:n,context:r}=t,o=n/7;this._rotateFigure({...t,draw:()=>{r.arc(0,0,n/2,0,Math.PI*2),r.arc(0,0,n/2-o,0,Math.PI*2)}})}_basicSquare(t){const{size:n,context:r}=t,o=n/7;this._rotateFigure({...t,draw:()=>{r.rect(-n/2,-n/2,n,n),r.rect(-n/2+o,-n/2+o,n-2*o,n-2*o)}})}_basicExtraRounded(t){const{size:n,context:r}=t,o=n/7;this._rotateFigure({...t,draw:()=>{r.arc(-o,-o,2.5*o,Math.PI,-Math.PI/2),r.lineTo(o,-3.5*o),r.arc(o,-o,2.5*o,-Math.PI/2,0),r.lineTo(3.5*o,-o),r.arc(o,o,2.5*o,0,Math.PI/2),r.lineTo(-o,3.5*o),r.arc(-o,o,2.5*o,Math.PI/2,Math.PI),r.lineTo(-3.5*o,-o),r.arc(-o,-o,1.5*o,Math.PI,-Math.PI/2),r.lineTo(o,-2.5*o),r.arc(o,-o,1.5*o,-Math.PI/2,0),r.lineTo(2.5*o,-o),r.arc(o,o,1.5*o,0,Math.PI/2),r.lineTo(-o,2.5*o),r.arc(-o,o,1.5*o,Math.PI/2,Math.PI),r.lineTo(-2.5*o,-o)}})}_drawDot({x:t,y:n,size:r,context:o,rotation:i}){this._basicDot({x:t,y:n,size:r,context:o,rotation:i})}_drawSquare({x:t,y:n,size:r,context:o,rotation:i}){this._basicSquare({x:t,y:n,size:r,context:o,rotation:i})}_drawExtraRounded({x:t,y:n,size:r,context:o,rotation:i}){this._basicExtraRounded({x:t,y:n,size:r,context:o,rotation:i})}}const uo={dot:"dot",square:"square"};class Cs{constructor({context:t,type:n}){oe(this,"_context");oe(this,"_type");this._context=t,this._type=n}draw(t,n,r,o){const i=this._context;switch(this._type){case uo.square:this._drawSquare({x:t,y:n,size:r,context:i,rotation:o});break;case uo.dot:default:this._drawDot({x:t,y:n,size:r,context:i,rotation:o})}}_rotateFigure({x:t,y:n,size:r,context:o,rotation:i,draw:s}){const a=t+r/2,l=n+r/2;o.moveTo(0,0),o.translate(a,l),i&&o.rotate(i),s(),o.closePath(),i&&o.rotate(-i),o.translate(-a,-l)}_drawDot(t){const{size:n,context:r}=t;this._rotateFigure({...t,draw:()=>{r.moveTo(0,0),r.arc(0,0,n/2,0,Math.PI*2)}})}_drawSquare(t){const{size:n,context:r}=t;this._rotateFigure({...t,draw:()=>{r.moveTo(0,0),r.rect(-n/2,-n/2,n,n)}})}}const Ss={radial:"radial",linear:"linear"},qe=[[1,1,1,1,1,1,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,1,1,1,1,1,1]],He=[[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]];class Ms{constructor(t){oe(this,"_canvas");oe(this,"_options");oe(this,"_qr");oe(this,"_image");this._canvas=document.createElement("canvas"),this._canvas.width=t.width,this._canvas.height=t.height,this._options=t}get context(){return this._canvas.getContext("2d")}get width(){return this._canvas.width}get height(){return this._canvas.height}getCanvas(){return this._canvas}clear(){const t=this.context;t&&t.clearRect(0,0,this._canvas.width,this._canvas.height)}async drawQR(t){const n=t.getModuleCount(),r=Math.min(this._options.width,this._options.height)-this._options.margin*2,o=Math.floor(r/n);let i={hideXDots:0,hideYDots:0,width:0,height:0};if(this._qr=t,this._options.image){if(await this.loadImage(),!this._image)return;const{imageOptions:s,qrOptions:a}=this._options,l=s.imageSize*xs[a.errorCorrectionLevel],N=Math.floor(l*n*n);i=Ns({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:N,maxHiddenAxisDots:n-14,dotSize:o})}this.clear(),this.drawBackground(),this.drawDots((s,a)=>{var l,N,C,c,h,T;return!(this._options.imageOptions.hideBackgroundDots&&s>=(n-i.hideXDots)/2&&s<(n+i.hideXDots)/2&&a>=(n-i.hideYDots)/2&&a<(n+i.hideYDots)/2||(l=qe[s])!=null&&l[a]||(N=qe[s-n+7])!=null&&N[a]||(C=qe[s])!=null&&C[a-n+7]||(c=He[s])!=null&&c[a]||(h=He[s-n+7])!=null&&h[a]||(T=He[s])!=null&&T[a-n+7])}),this.drawCorners(),this._options.image&&this.drawImage({width:i.width,height:i.height,count:n,dotSize:o})}drawBackground(){const t=this.context,n=this._options;if(t){if(n.backgroundOptions.gradient){const r=n.backgroundOptions.gradient,o=this._createGradient({context:t,options:r,additionalRotation:0,x:0,y:0,size:this._canvas.width>this._canvas.height?this._canvas.width:this._canvas.height});r.colorStops.forEach(({offset:i,color:s})=>{o.addColorStop(i,s)}),t.fillStyle=o}else n.backgroundOptions.color&&(t.fillStyle=n.backgroundOptions.color);t.fillRect(0,0,this._canvas.width,this._canvas.height)}}drawDots(t){if(!this._qr)throw"QR code is not defined";const n=this.context;if(!n)throw"QR code is not defined";const r=this._options,o=this._qr.getModuleCount();if(o>r.width||o>r.height)throw"The canvas is too small.";const i=Math.min(r.width,r.height)-r.margin*2,s=Math.floor(i/o),a=Math.floor((r.width-o*s)/2),l=Math.floor((r.height-o*s)/2),N=new Vn({context:n,type:r.dotsOptions.type});n.beginPath();for(let C=0;C<o;C++)for(let c=0;c<o;c++)t&&!t(C,c)||this._qr.isDark(C,c)&&N.draw(a+C*s,l+c*s,s,(h,T)=>C+h<0||c+T<0||C+h>=o||c+T>=o||t&&!t(C+h,c+T)?!1:!!this._qr&&this._qr.isDark(C+h,c+T));if(r.dotsOptions.gradient){const C=r.dotsOptions.gradient,c=this._createGradient({context:n,options:C,additionalRotation:0,x:a,y:l,size:o*s});C.colorStops.forEach(({offset:h,color:T})=>{c.addColorStop(h,T)}),n.fillStyle=n.strokeStyle=c}else r.dotsOptions.color&&(n.fillStyle=n.strokeStyle=r.dotsOptions.color);n.fill("evenodd")}drawCorners(t){if(!this._qr)throw"QR code is not defined";const n=this.context;if(!n)throw"QR code is not defined";const r=this._options,o=this._qr.getModuleCount(),i=Math.min(r.width,r.height)-r.margin*2,s=Math.floor(i/o),a=s*7,l=s*3,N=Math.floor((r.width-o*s)/2),C=Math.floor((r.height-o*s)/2);[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach(([c,h,T])=>{var te,X,J,ne,L,v,D,m,S,d;if(t&&!t(c,h))return;const k=N+c*s*(o-7),U=C+h*s*(o-7);if((te=r.cornersSquareOptions)!=null&&te.type){const g=new Ds({context:n,type:(X=r.cornersSquareOptions)==null?void 0:X.type});n.beginPath(),g.draw(k,U,a,T)}else{const g=new Vn({context:n,type:r.dotsOptions.type});n.beginPath();for(let f=0;f<qe.length;f++)for(let u=0;u<qe[f].length;u++)(J=qe[f])!=null&&J[u]&&g.draw(k+f*s,U+u*s,s,(O,y)=>{var b;return!!((b=qe[f+O])!=null&&b[u+y])})}if((ne=r.cornersSquareOptions)!=null&&ne.gradient){const g=r.cornersSquareOptions.gradient,f=this._createGradient({context:n,options:g,additionalRotation:T,x:k,y:U,size:a});g.colorStops.forEach(({offset:u,color:O})=>{f.addColorStop(u,O)}),n.fillStyle=n.strokeStyle=f}else(L=r.cornersSquareOptions)!=null&&L.color&&(n.fillStyle=n.strokeStyle=r.cornersSquareOptions.color);if(n.fill("evenodd"),(v=r.cornersDotOptions)!=null&&v.type){const g=new Cs({context:n,type:(D=r.cornersDotOptions)==null?void 0:D.type});n.beginPath(),g.draw(k+s*2,U+s*2,l,T)}else{const g=new Vn({context:n,type:r.dotsOptions.type});n.beginPath();for(let f=0;f<He.length;f++)for(let u=0;u<He[f].length;u++)(m=He[f])!=null&&m[u]&&g.draw(k+f*s,U+u*s,s,(O,y)=>{var b;return!!((b=He[f+O])!=null&&b[u+y])})}if((S=r.cornersDotOptions)!=null&&S.gradient){const g=r.cornersDotOptions.gradient,f=this._createGradient({context:n,options:g,additionalRotation:T,x:k+s*2,y:U+s*2,size:l});g.colorStops.forEach(({offset:u,color:O})=>{f.addColorStop(u,O)}),n.fillStyle=n.strokeStyle=f}else(d=r.cornersDotOptions)!=null&&d.color&&(n.fillStyle=n.strokeStyle=r.cornersDotOptions.color);n.fill("evenodd")})}loadImage(){return new Promise((t,n)=>{const r=this._options,o=new Image;if(!r.image)return n("Image is not defined");typeof r.imageOptions.crossOrigin=="string"&&(o.crossOrigin=r.imageOptions.crossOrigin),this._image=o,o.onload=()=>{t()},o.src=r.image})}drawImage({width:t,height:n,count:r,dotSize:o}){const i=this.context;if(!i)throw"canvasContext is not defined";if(!this._image)throw"image is not defined";const s=this._options,a=Math.floor((s.width-r*o)/2),l=Math.floor((s.height-r*o)/2),N=a+s.imageOptions.margin+(r*o-t)/2,C=l+s.imageOptions.margin+(r*o-n)/2,c=t-s.imageOptions.margin*2,h=n-s.imageOptions.margin*2;i.drawImage(this._image,N,C,c<0?0:c,h<0?0:h)}_createGradient({context:t,options:n,additionalRotation:r,x:o,y:i,size:s}){let a;if(n.type===Ss.radial)a=t.createRadialGradient(o+s/2,i+s/2,0,o+s/2,i+s/2,s/2);else{const l=((n.rotation||0)+r)%(2*Math.PI),N=(l+2*Math.PI)%(2*Math.PI);let C=o+s/2,c=i+s/2,h=o+s/2,T=i+s/2;N>=0&&N<=.25*Math.PI||N>1.75*Math.PI&&N<=2*Math.PI?(C=C-s/2,c=c-s/2*Math.tan(l),h=h+s/2,T=T+s/2*Math.tan(l)):N>.25*Math.PI&&N<=.75*Math.PI?(c=c-s/2,C=C-s/2/Math.tan(l),T=T+s/2,h=h+s/2/Math.tan(l)):N>.75*Math.PI&&N<=1.25*Math.PI?(C=C+s/2,c=c+s/2*Math.tan(l),h=h-s/2,T=T-s/2*Math.tan(l)):N>1.25*Math.PI&&N<=1.75*Math.PI&&(c=c+s/2,C=C+s/2/Math.tan(l),T=T-s/2,h=h-s/2/Math.tan(l)),a=t.createLinearGradient(Math.round(C),Math.round(c),Math.round(h),Math.round(T))}return a}}const lo={};for(let e=0;e<=40;e++)lo[e]=e;const Is={L:"L",M:"M",Q:"Q",H:"H"},fo={width:300,height:300,data:"",margin:0,qrOptions:{typeNumber:lo[0],mode:void 0,errorCorrectionLevel:Is.Q},imageOptions:{hideBackgroundDots:!0,imageSize:.4,crossOrigin:void 0,margin:0},dotsOptions:{type:"square",color:"#000"},backgroundOptions:{color:"#fff"}};function Wt(e){const t={...e};if(!t.colorStops||!t.colorStops.length)throw"Field 'colorStops' is required in gradient";return t.rotation?t.rotation=Number(t.rotation):t.rotation=0,t.colorStops=t.colorStops.map(n=>({...n,offset:Number(n.offset)})),t}function po(e){const t={...e};return t.width=Number(t.width),t.height=Number(t.height),t.margin=Number(t.margin),t.imageOptions={...t.imageOptions,hideBackgroundDots:!!t.imageOptions.hideBackgroundDots,imageSize:Number(t.imageOptions.imageSize),margin:Number(t.imageOptions.margin)},t.margin>Math.min(t.width,t.height)&&(t.margin=Math.min(t.width,t.height)),t.dotsOptions={...t.dotsOptions},t.dotsOptions.gradient&&(t.dotsOptions.gradient=Wt(t.dotsOptions.gradient)),t.cornersSquareOptions&&(t.cornersSquareOptions={...t.cornersSquareOptions},t.cornersSquareOptions.gradient&&(t.cornersSquareOptions.gradient=Wt(t.cornersSquareOptions.gradient))),t.cornersDotOptions&&(t.cornersDotOptions={...t.cornersDotOptions},t.cornersDotOptions.gradient&&(t.cornersDotOptions.gradient=Wt(t.cornersDotOptions.gradient))),t.backgroundOptions&&(t.backgroundOptions={...t.backgroundOptions},t.backgroundOptions.gradient&&(t.backgroundOptions.gradient=Wt(t.backgroundOptions.gradient))),t}function Ts(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ho={exports:{}};(function(e,t){var n=function(){var r=function(v,D){var m=236,S=17,d=v,g=i[D],f=null,u=0,O=null,y=[],b={},R=function(_,w){u=d*4+17,f=function(p){for(var E=new Array(p),x=0;x<p;x+=1){E[x]=new Array(p);for(var I=0;I<p;I+=1)E[x][I]=null}return E}(u),M(0,0),M(u-7,0),M(0,u-7),ee(),K(),be(_,w),d>=7&&he(_),O==null&&(O=$s(d,g,y)),xe(O,w)},M=function(_,w){for(var p=-1;p<=7;p+=1)if(!(_+p<=-1||u<=_+p))for(var E=-1;E<=7;E+=1)w+E<=-1||u<=w+E||(0<=p&&p<=6&&(E==0||E==6)||0<=E&&E<=6&&(p==0||p==6)||2<=p&&p<=4&&2<=E&&E<=4?f[_+p][w+E]=!0:f[_+p][w+E]=!1)},P=function(){for(var _=0,w=0,p=0;p<8;p+=1){R(!0,p);var E=a.getLostPoint(b);(p==0||_>E)&&(_=E,w=p)}return w},K=function(){for(var _=8;_<u-8;_+=1)f[_][6]==null&&(f[_][6]=_%2==0);for(var w=8;w<u-8;w+=1)f[6][w]==null&&(f[6][w]=w%2==0)},ee=function(){for(var _=a.getPatternPosition(d),w=0;w<_.length;w+=1)for(var p=0;p<_.length;p+=1){var E=_[w],x=_[p];if(f[E][x]==null)for(var I=-2;I<=2;I+=1)for(var B=-2;B<=2;B+=1)I==-2||I==2||B==-2||B==2||I==0&&B==0?f[E+I][x+B]=!0:f[E+I][x+B]=!1}},he=function(_){for(var w=a.getBCHTypeNumber(d),p=0;p<18;p+=1){var E=!_&&(w>>p&1)==1;f[Math.floor(p/3)][p%3+u-8-3]=E}for(var p=0;p<18;p+=1){var E=!_&&(w>>p&1)==1;f[p%3+u-8-3][Math.floor(p/3)]=E}},be=function(_,w){for(var p=g<<3|w,E=a.getBCHTypeInfo(p),x=0;x<15;x+=1){var I=!_&&(E>>x&1)==1;x<6?f[x][8]=I:x<8?f[x+1][8]=I:f[u-15+x][8]=I}for(var x=0;x<15;x+=1){var I=!_&&(E>>x&1)==1;x<8?f[8][u-x-1]=I:x<9?f[8][15-x-1+1]=I:f[8][15-x-1]=I}f[u-8][8]=!_},xe=function(_,w){for(var p=-1,E=u-1,x=7,I=0,B=a.getMaskFunction(w),A=u-1;A>0;A-=2)for(A==6&&(A-=1);;){for(var W=0;W<2;W+=1)if(f[E][A-W]==null){var Z=!1;I<_.length&&(Z=(_[I]>>>x&1)==1);var $=B(E,A-W);$&&(Z=!Z),f[E][A-W]=Z,x-=1,x==-1&&(I+=1,x=7)}if(E+=p,E<0||u<=E){E-=p,p=-p;break}}},tt=function(_,w){for(var p=0,E=0,x=0,I=new Array(w.length),B=new Array(w.length),A=0;A<w.length;A+=1){var W=w[A].dataCount,Z=w[A].totalCount-W;E=Math.max(E,W),x=Math.max(x,Z),I[A]=new Array(W);for(var $=0;$<I[A].length;$+=1)I[A][$]=255&_.getBuffer()[$+p];p+=W;var ve=a.getErrorCorrectPolynomial(Z),_e=N(I[A],ve.getLength()-1),go=_e.mod(ve);B[A]=new Array(ve.getLength()-1);for(var $=0;$<B[A].length;$+=1){var vo=$+go.getLength()-B[A].length;B[A][$]=vo>=0?go.getAt(vo):0}}for(var _o=0,$=0;$<w.length;$+=1)_o+=w[$].totalCount;for(var Ln=new Array(_o),Qt=0,$=0;$<E;$+=1)for(var A=0;A<w.length;A+=1)$<I[A].length&&(Ln[Qt]=I[A][$],Qt+=1);for(var $=0;$<x;$+=1)for(var A=0;A<w.length;A+=1)$<B[A].length&&(Ln[Qt]=B[A][$],Qt+=1);return Ln},$s=function(_,w,p){for(var E=C.getRSBlocks(_,w),x=c(),I=0;I<p.length;I+=1){var B=p[I];x.put(B.getMode(),4),x.put(B.getLength(),a.getLengthInBits(B.getMode(),_)),B.write(x)}for(var A=0,I=0;I<E.length;I+=1)A+=E[I].dataCount;if(x.getLengthInBits()>A*8)throw"code length overflow. ("+x.getLengthInBits()+">"+A*8+")";for(x.getLengthInBits()+4<=A*8&&x.put(0,4);x.getLengthInBits()%8!=0;)x.putBit(!1);for(;!(x.getLengthInBits()>=A*8||(x.put(m,8),x.getLengthInBits()>=A*8));)x.put(S,8);return tt(x,E)};b.addData=function(_,w){w=w||"Byte";var p=null;switch(w){case"Numeric":p=h(_);break;case"Alphanumeric":p=T(_);break;case"Byte":p=k(_);break;case"Kanji":p=U(_);break;default:throw"mode:"+w}y.push(p),O=null},b.isDark=function(_,w){if(_<0||u<=_||w<0||u<=w)throw _+","+w;return f[_][w]},b.getModuleCount=function(){return u},b.make=function(){if(d<1){for(var _=1;_<40;_++){for(var w=C.getRSBlocks(_,g),p=c(),E=0;E<y.length;E++){var x=y[E];p.put(x.getMode(),4),p.put(x.getLength(),a.getLengthInBits(x.getMode(),_)),x.write(p)}for(var I=0,E=0;E<w.length;E++)I+=w[E].dataCount;if(p.getLengthInBits()<=I*8)break}d=_}R(!1,P())},b.createTableTag=function(_,w){_=_||2,w=typeof w>"u"?_*4:w;var p="";p+='<table style="',p+=" border-width: 0px; border-style: none;",p+=" border-collapse: collapse;",p+=" padding: 0px; margin: "+w+"px;",p+='">',p+="<tbody>";for(var E=0;E<b.getModuleCount();E+=1){p+="<tr>";for(var x=0;x<b.getModuleCount();x+=1)p+='<td style="',p+=" border-width: 0px; border-style: none;",p+=" border-collapse: collapse;",p+=" padding: 0px; margin: 0px;",p+=" width: "+_+"px;",p+=" height: "+_+"px;",p+=" background-color: ",p+=b.isDark(E,x)?"#000000":"#ffffff",p+=";",p+='"/>';p+="</tr>"}return p+="</tbody>",p+="</table>",p},b.createSvgTag=function(_,w,p,E){var x={};typeof arguments[0]=="object"&&(x=arguments[0],_=x.cellSize,w=x.margin,p=x.alt,E=x.title),_=_||2,w=typeof w>"u"?_*4:w,p=typeof p=="string"?{text:p}:p||{},p.text=p.text||null,p.id=p.text?p.id||"qrcode-description":null,E=typeof E=="string"?{text:E}:E||{},E.text=E.text||null,E.id=E.text?E.id||"qrcode-title":null;var I=b.getModuleCount()*_+w*2,B,A,W,Z,$="",ve;for(ve="l"+_+",0 0,"+_+" -"+_+",0 0,-"+_+"z ",$+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',$+=x.scalable?"":' width="'+I+'px" height="'+I+'px"',$+=' viewBox="0 0 '+I+" "+I+'" ',$+=' preserveAspectRatio="xMinYMin meet"',$+=E.text||p.text?' role="img" aria-labelledby="'+nt([E.id,p.id].join(" ").trim())+'"':"",$+=">",$+=E.text?'<title id="'+nt(E.id)+'">'+nt(E.text)+"</title>":"",$+=p.text?'<description id="'+nt(p.id)+'">'+nt(p.text)+"</description>":"",$+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',$+='<path d="',W=0;W<b.getModuleCount();W+=1)for(Z=W*_+w,B=0;B<b.getModuleCount();B+=1)b.isDark(W,B)&&(A=B*_+w,$+="M"+A+","+Z+ve);return $+='" stroke="transparent" fill="black"/>',$+="</svg>",$},b.createDataURL=function(_,w){_=_||2,w=typeof w>"u"?_*4:w;var p=b.getModuleCount()*_+w*2,E=w,x=p-w;return L(p,p,function(I,B){if(E<=I&&I<x&&E<=B&&B<x){var A=Math.floor((I-E)/_),W=Math.floor((B-E)/_);return b.isDark(W,A)?0:1}else return 1})},b.createImgTag=function(_,w,p){_=_||2,w=typeof w>"u"?_*4:w;var E=b.getModuleCount()*_+w*2,x="";return x+="<img",x+=' src="',x+=b.createDataURL(_,w),x+='"',x+=' width="',x+=E,x+='"',x+=' height="',x+=E,x+='"',p&&(x+=' alt="',x+=nt(p),x+='"'),x+="/>",x};var nt=function(_){for(var w="",p=0;p<_.length;p+=1){var E=_.charAt(p);switch(E){case"<":w+="&lt;";break;case">":w+="&gt;";break;case"&":w+="&amp;";break;case'"':w+="&quot;";break;default:w+=E;break}}return w},ks=function(_){var w=1;_=typeof _>"u"?w*2:_;var p=b.getModuleCount()*w+_*2,E=_,x=p-_,I,B,A,W,Z,$={"██":"█","█ ":"▀"," █":"▄","  ":" "},ve={"██":"▀","█ ":"▀"," █":" ","  ":" "},_e="";for(I=0;I<p;I+=2){for(A=Math.floor((I-E)/w),W=Math.floor((I+1-E)/w),B=0;B<p;B+=1)Z="█",E<=B&&B<x&&E<=I&&I<x&&b.isDark(A,Math.floor((B-E)/w))&&(Z=" "),E<=B&&B<x&&E<=I+1&&I+1<x&&b.isDark(W,Math.floor((B-E)/w))?Z+=" ":Z+="█",_e+=_<1&&I+1>=x?ve[Z]:$[Z];_e+=`
`}return p%2&&_>0?_e.substring(0,_e.length-p-1)+Array(p+1).join("▀"):_e.substring(0,_e.length-1)};return b.createASCII=function(_,w){if(_=_||1,_<2)return ks(w);_-=1,w=typeof w>"u"?_*2:w;var p=b.getModuleCount()*_+w*2,E=w,x=p-w,I,B,A,W,Z=Array(_+1).join("██"),$=Array(_+1).join("  "),ve="",_e="";for(I=0;I<p;I+=1){for(A=Math.floor((I-E)/_),_e="",B=0;B<p;B+=1)W=1,E<=B&&B<x&&E<=I&&I<x&&b.isDark(A,Math.floor((B-E)/_))&&(W=0),_e+=W?Z:$;for(A=0;A<_;A+=1)ve+=_e+`
`}return ve.substring(0,ve.length-1)},b.renderTo2dContext=function(_,w){w=w||2;for(var p=b.getModuleCount(),E=0;E<p;E++)for(var x=0;x<p;x++)_.fillStyle=b.isDark(E,x)?"black":"white",_.fillRect(E*w,x*w,w,w)},b};r.stringToBytesFuncs={default:function(v){for(var D=[],m=0;m<v.length;m+=1){var S=v.charCodeAt(m);D.push(S&255)}return D}},r.stringToBytes=r.stringToBytesFuncs.default,r.createStringToBytes=function(v,D){var m=function(){for(var d=J(v),g=function(){var K=d.read();if(K==-1)throw"eof";return K},f=0,u={};;){var O=d.read();if(O==-1)break;var y=g(),b=g(),R=g(),M=String.fromCharCode(O<<8|y),P=b<<8|R;u[M]=P,f+=1}if(f!=D)throw f+" != "+D;return u}(),S="?".charCodeAt(0);return function(d){for(var g=[],f=0;f<d.length;f+=1){var u=d.charCodeAt(f);if(u<128)g.push(u);else{var O=m[d.charAt(f)];typeof O=="number"?(O&255)==O?g.push(O):(g.push(O>>>8),g.push(O&255)):g.push(S)}}return g}};var o={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},i={L:1,M:0,Q:3,H:2},s={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},a=function(){var v=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],D=1335,m=7973,S=21522,d={},g=function(f){for(var u=0;f!=0;)u+=1,f>>>=1;return u};return d.getBCHTypeInfo=function(f){for(var u=f<<10;g(u)-g(D)>=0;)u^=D<<g(u)-g(D);return(f<<10|u)^S},d.getBCHTypeNumber=function(f){for(var u=f<<12;g(u)-g(m)>=0;)u^=m<<g(u)-g(m);return f<<12|u},d.getPatternPosition=function(f){return v[f-1]},d.getMaskFunction=function(f){switch(f){case s.PATTERN000:return function(u,O){return(u+O)%2==0};case s.PATTERN001:return function(u,O){return u%2==0};case s.PATTERN010:return function(u,O){return O%3==0};case s.PATTERN011:return function(u,O){return(u+O)%3==0};case s.PATTERN100:return function(u,O){return(Math.floor(u/2)+Math.floor(O/3))%2==0};case s.PATTERN101:return function(u,O){return u*O%2+u*O%3==0};case s.PATTERN110:return function(u,O){return(u*O%2+u*O%3)%2==0};case s.PATTERN111:return function(u,O){return(u*O%3+(u+O)%2)%2==0};default:throw"bad maskPattern:"+f}},d.getErrorCorrectPolynomial=function(f){for(var u=N([1],0),O=0;O<f;O+=1)u=u.multiply(N([1,l.gexp(O)],0));return u},d.getLengthInBits=function(f,u){if(1<=u&&u<10)switch(f){case o.MODE_NUMBER:return 10;case o.MODE_ALPHA_NUM:return 9;case o.MODE_8BIT_BYTE:return 8;case o.MODE_KANJI:return 8;default:throw"mode:"+f}else if(u<27)switch(f){case o.MODE_NUMBER:return 12;case o.MODE_ALPHA_NUM:return 11;case o.MODE_8BIT_BYTE:return 16;case o.MODE_KANJI:return 10;default:throw"mode:"+f}else if(u<41)switch(f){case o.MODE_NUMBER:return 14;case o.MODE_ALPHA_NUM:return 13;case o.MODE_8BIT_BYTE:return 16;case o.MODE_KANJI:return 12;default:throw"mode:"+f}else throw"type:"+u},d.getLostPoint=function(f){for(var u=f.getModuleCount(),O=0,y=0;y<u;y+=1)for(var b=0;b<u;b+=1){for(var R=0,M=f.isDark(y,b),P=-1;P<=1;P+=1)if(!(y+P<0||u<=y+P))for(var K=-1;K<=1;K+=1)b+K<0||u<=b+K||P==0&&K==0||M==f.isDark(y+P,b+K)&&(R+=1);R>5&&(O+=3+R-5)}for(var y=0;y<u-1;y+=1)for(var b=0;b<u-1;b+=1){var ee=0;f.isDark(y,b)&&(ee+=1),f.isDark(y+1,b)&&(ee+=1),f.isDark(y,b+1)&&(ee+=1),f.isDark(y+1,b+1)&&(ee+=1),(ee==0||ee==4)&&(O+=3)}for(var y=0;y<u;y+=1)for(var b=0;b<u-6;b+=1)f.isDark(y,b)&&!f.isDark(y,b+1)&&f.isDark(y,b+2)&&f.isDark(y,b+3)&&f.isDark(y,b+4)&&!f.isDark(y,b+5)&&f.isDark(y,b+6)&&(O+=40);for(var b=0;b<u;b+=1)for(var y=0;y<u-6;y+=1)f.isDark(y,b)&&!f.isDark(y+1,b)&&f.isDark(y+2,b)&&f.isDark(y+3,b)&&f.isDark(y+4,b)&&!f.isDark(y+5,b)&&f.isDark(y+6,b)&&(O+=40);for(var he=0,b=0;b<u;b+=1)for(var y=0;y<u;y+=1)f.isDark(y,b)&&(he+=1);var be=Math.abs(100*he/u/u-50)/5;return O+=be*10,O},d}(),l=function(){for(var v=new Array(256),D=new Array(256),m=0;m<8;m+=1)v[m]=1<<m;for(var m=8;m<256;m+=1)v[m]=v[m-4]^v[m-5]^v[m-6]^v[m-8];for(var m=0;m<255;m+=1)D[v[m]]=m;var S={};return S.glog=function(d){if(d<1)throw"glog("+d+")";return D[d]},S.gexp=function(d){for(;d<0;)d+=255;for(;d>=256;)d-=255;return v[d]},S}();function N(v,D){if(typeof v.length>"u")throw v.length+"/"+D;var m=function(){for(var d=0;d<v.length&&v[d]==0;)d+=1;for(var g=new Array(v.length-d+D),f=0;f<v.length-d;f+=1)g[f]=v[f+d];return g}(),S={};return S.getAt=function(d){return m[d]},S.getLength=function(){return m.length},S.multiply=function(d){for(var g=new Array(S.getLength()+d.getLength()-1),f=0;f<S.getLength();f+=1)for(var u=0;u<d.getLength();u+=1)g[f+u]^=l.gexp(l.glog(S.getAt(f))+l.glog(d.getAt(u)));return N(g,0)},S.mod=function(d){if(S.getLength()-d.getLength()<0)return S;for(var g=l.glog(S.getAt(0))-l.glog(d.getAt(0)),f=new Array(S.getLength()),u=0;u<S.getLength();u+=1)f[u]=S.getAt(u);for(var u=0;u<d.getLength();u+=1)f[u]^=l.gexp(l.glog(d.getAt(u))+g);return N(f,0).mod(d)},S}var C=function(){var v=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],D=function(d,g){var f={};return f.totalCount=d,f.dataCount=g,f},m={},S=function(d,g){switch(g){case i.L:return v[(d-1)*4+0];case i.M:return v[(d-1)*4+1];case i.Q:return v[(d-1)*4+2];case i.H:return v[(d-1)*4+3];default:return}};return m.getRSBlocks=function(d,g){var f=S(d,g);if(typeof f>"u")throw"bad rs block @ typeNumber:"+d+"/errorCorrectionLevel:"+g;for(var u=f.length/3,O=[],y=0;y<u;y+=1)for(var b=f[y*3+0],R=f[y*3+1],M=f[y*3+2],P=0;P<b;P+=1)O.push(D(R,M));return O},m}(),c=function(){var v=[],D=0,m={};return m.getBuffer=function(){return v},m.getAt=function(S){var d=Math.floor(S/8);return(v[d]>>>7-S%8&1)==1},m.put=function(S,d){for(var g=0;g<d;g+=1)m.putBit((S>>>d-g-1&1)==1)},m.getLengthInBits=function(){return D},m.putBit=function(S){var d=Math.floor(D/8);v.length<=d&&v.push(0),S&&(v[d]|=128>>>D%8),D+=1},m},h=function(v){var D=o.MODE_NUMBER,m=v,S={};S.getMode=function(){return D},S.getLength=function(f){return m.length},S.write=function(f){for(var u=m,O=0;O+2<u.length;)f.put(d(u.substring(O,O+3)),10),O+=3;O<u.length&&(u.length-O==1?f.put(d(u.substring(O,O+1)),4):u.length-O==2&&f.put(d(u.substring(O,O+2)),7))};var d=function(f){for(var u=0,O=0;O<f.length;O+=1)u=u*10+g(f.charAt(O));return u},g=function(f){if("0"<=f&&f<="9")return f.charCodeAt(0)-"0".charCodeAt(0);throw"illegal char :"+f};return S},T=function(v){var D=o.MODE_ALPHA_NUM,m=v,S={};S.getMode=function(){return D},S.getLength=function(g){return m.length},S.write=function(g){for(var f=m,u=0;u+1<f.length;)g.put(d(f.charAt(u))*45+d(f.charAt(u+1)),11),u+=2;u<f.length&&g.put(d(f.charAt(u)),6)};var d=function(g){if("0"<=g&&g<="9")return g.charCodeAt(0)-"0".charCodeAt(0);if("A"<=g&&g<="Z")return g.charCodeAt(0)-"A".charCodeAt(0)+10;switch(g){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+g}};return S},k=function(v){var D=o.MODE_8BIT_BYTE,m=r.stringToBytes(v),S={};return S.getMode=function(){return D},S.getLength=function(d){return m.length},S.write=function(d){for(var g=0;g<m.length;g+=1)d.put(m[g],8)},S},U=function(v){var D=o.MODE_KANJI,m=r.stringToBytesFuncs.SJIS;if(!m)throw"sjis not supported.";(function(g,f){var u=m(g);if(u.length!=2||(u[0]<<8|u[1])!=f)throw"sjis not supported."})("友",38726);var S=m(v),d={};return d.getMode=function(){return D},d.getLength=function(g){return~~(S.length/2)},d.write=function(g){for(var f=S,u=0;u+1<f.length;){var O=(255&f[u])<<8|255&f[u+1];if(33088<=O&&O<=40956)O-=33088;else if(57408<=O&&O<=60351)O-=49472;else throw"illegal char at "+(u+1)+"/"+O;O=(O>>>8&255)*192+(O&255),g.put(O,13),u+=2}if(u<f.length)throw"illegal char at "+(u+1)},d},te=function(){var v=[],D={};return D.writeByte=function(m){v.push(m&255)},D.writeShort=function(m){D.writeByte(m),D.writeByte(m>>>8)},D.writeBytes=function(m,S,d){S=S||0,d=d||m.length;for(var g=0;g<d;g+=1)D.writeByte(m[g+S])},D.writeString=function(m){for(var S=0;S<m.length;S+=1)D.writeByte(m.charCodeAt(S))},D.toByteArray=function(){return v},D.toString=function(){var m="";m+="[";for(var S=0;S<v.length;S+=1)S>0&&(m+=","),m+=v[S];return m+="]",m},D},X=function(){var v=0,D=0,m=0,S="",d={},g=function(u){S+=String.fromCharCode(f(u&63))},f=function(u){if(!(u<0)){if(u<26)return 65+u;if(u<52)return 97+(u-26);if(u<62)return 48+(u-52);if(u==62)return 43;if(u==63)return 47}throw"n:"+u};return d.writeByte=function(u){for(v=v<<8|u&255,D+=8,m+=1;D>=6;)g(v>>>D-6),D-=6},d.flush=function(){if(D>0&&(g(v<<6-D),v=0,D=0),m%3!=0)for(var u=3-m%3,O=0;O<u;O+=1)S+="="},d.toString=function(){return S},d},J=function(v){var D=v,m=0,S=0,d=0,g={};g.read=function(){for(;d<8;){if(m>=D.length){if(d==0)return-1;throw"unexpected end of file./"+d}var u=D.charAt(m);if(m+=1,u=="=")return d=0,-1;if(u.match(/^\s$/))continue;S=S<<6|f(u.charCodeAt(0)),d+=6}var O=S>>>d-8&255;return d-=8,O};var f=function(u){if(65<=u&&u<=90)return u-65;if(97<=u&&u<=122)return u-97+26;if(48<=u&&u<=57)return u-48+52;if(u==43)return 62;if(u==47)return 63;throw"c:"+u};return g},ne=function(v,D){var m=v,S=D,d=new Array(v*D),g={};g.setPixel=function(y,b,R){d[b*m+y]=R},g.write=function(y){y.writeString("GIF87a"),y.writeShort(m),y.writeShort(S),y.writeByte(128),y.writeByte(0),y.writeByte(0),y.writeByte(0),y.writeByte(0),y.writeByte(0),y.writeByte(255),y.writeByte(255),y.writeByte(255),y.writeString(","),y.writeShort(0),y.writeShort(0),y.writeShort(m),y.writeShort(S),y.writeByte(0);var b=2,R=u(b);y.writeByte(b);for(var M=0;R.length-M>255;)y.writeByte(255),y.writeBytes(R,M,255),M+=255;y.writeByte(R.length-M),y.writeBytes(R,M,R.length-M),y.writeByte(0),y.writeString(";")};var f=function(y){var b=y,R=0,M=0,P={};return P.write=function(K,ee){if(K>>>ee)throw"length over";for(;R+ee>=8;)b.writeByte(255&(K<<R|M)),ee-=8-R,K>>>=8-R,M=0,R=0;M=K<<R|M,R=R+ee},P.flush=function(){R>0&&b.writeByte(M)},P},u=function(y){for(var b=1<<y,R=(1<<y)+1,M=y+1,P=O(),K=0;K<b;K+=1)P.add(String.fromCharCode(K));P.add(String.fromCharCode(b)),P.add(String.fromCharCode(R));var ee=te(),he=f(ee);he.write(b,M);var be=0,xe=String.fromCharCode(d[be]);for(be+=1;be<d.length;){var tt=String.fromCharCode(d[be]);be+=1,P.contains(xe+tt)?xe=xe+tt:(he.write(P.indexOf(xe),M),P.size()<4095&&(P.size()==1<<M&&(M+=1),P.add(xe+tt)),xe=tt)}return he.write(P.indexOf(xe),M),he.write(R,M),he.flush(),ee.toByteArray()},O=function(){var y={},b=0,R={};return R.add=function(M){if(R.contains(M))throw"dup key:"+M;y[M]=b,b+=1},R.size=function(){return b},R.indexOf=function(M){return y[M]},R.contains=function(M){return typeof y[M]<"u"},R};return g},L=function(v,D,m){for(var S=ne(v,D),d=0;d<D;d+=1)for(var g=0;g<v;g+=1)S.setPixel(g,d,m(g,d));var f=te();S.write(f);for(var u=X(),O=f.toByteArray(),y=0;y<O.length;y+=1)u.writeByte(O[y]);return u.flush(),"data:image/gif;base64,"+u};return r}();(function(){n.stringToBytesFuncs["UTF-8"]=function(r){function o(i){for(var s=[],a=0;a<i.length;a++){var l=i.charCodeAt(a);l<128?s.push(l):l<2048?s.push(192|l>>6,128|l&63):l<55296||l>=57344?s.push(224|l>>12,128|l>>6&63,128|l&63):(a++,l=65536+((l&1023)<<10|i.charCodeAt(a)&1023),s.push(240|l>>18,128|l>>12&63,128|l>>6&63,128|l&63))}return s}return o(r)}})(),function(r){e.exports=r()}(function(){return n})})(ho);var Ps=ho.exports;const Rs=Ts(Ps);class kn{constructor(t){oe(this,"_options");oe(this,"_container");oe(this,"_canvas");oe(this,"_qr");oe(this,"_drawingPromise");this._options=t?po(Kt(fo,t)):fo,this.update()}static _clearContainer(t){t&&(t.innerHTML="")}update(t){kn._clearContainer(this._container),this._options=t?po(Kt(this._options,t)):this._options,this._options.data&&(this._qr=Rs(this._options.qrOptions.typeNumber,this._options.qrOptions.errorCorrectionLevel),this._qr.addData(this._options.data,this._options.qrOptions.mode||Es(this._options.data)),this._qr.make(),this._canvas=new Ms(this._options),this._drawingPromise=this._canvas.drawQR(this._qr),this.append(this._container))}append(t){if(t){if(typeof t.appendChild!="function")throw"Container should be a single DOM node";this._canvas&&t.appendChild(this._canvas.getCanvas()),this._container=t}}async getImageUrl(t){return this._drawingPromise&&await this._drawingPromise===void 0&&this._canvas?this._canvas.getCanvas().toDataURL(`image/${t}`):""}download(t){this._drawingPromise&&this._drawingPromise.then(()=>{if(!this._canvas)return;const n=t,r=n.extension||"png",o=n.name||"qr",i=this._canvas.getCanvas().toDataURL(`image/${r}`);Os(i,`${o}.${r}`)})}}const As=["src"],Bs={key:1},Vs=Rr({__name:"QRCodeVue3Async",props:{value:{default:""},width:{default:300},height:{default:300},margin:{default:0},imgclass:{default:""},myclass:{default:""},downloadButton:{default:""},buttonName:{default:"Download"},qrOptions:{default:{typeNumber:0,mode:"Byte",errorCorrectionLevel:"Q"}},imageOptions:{default:{hideBackgroundDots:!0,imageSize:.4,margin:0}},dotsOptions:{default:{type:"dots",color:"#6a1a4c",gradient:{type:"linear",rotation:0,colorStops:[{offset:0,color:"#6a1a4c"},{offset:1,color:"#6a1a4c"}]}}},backgroundOptions:{default:{color:"#ffffff"}},cornersSquareOptions:{default:{type:"dot",color:"#000000"}},cornersDotOptions:{default:{type:void 0,color:"#000000"}},fileExt:{default:"png"},image:{default:""},download:{type:Boolean,default:!1},downloadOptions:{default:{name:"vqr",extension:"png"}}},async setup(e){let t,n;const r=e,o=new kn({data:r.value,width:r.width,height:r.height,margin:r.margin,qrOptions:r.qrOptions,imageOptions:r.imageOptions,dotsOptions:r.dotsOptions,backgroundOptions:r.backgroundOptions,image:r.image,cornersSquareOptions:r.cornersSquareOptions,cornersDotOptions:r.cornersDotOptions});let i=([t,n]=Vi(()=>o.getImageUrl(r.fileExt)),t=await t,n(),t);function s(){o.download(r.downloadOptions)}return(a,l)=>(Ze(),In("div",null,[Nt(i)?(Ze(),In("div",{key:0,class:je(a.myclass)},[qt("img",{src:Nt(i),class:je(a.imgclass),crossorigin:"anonymous"},null,10,As)],2)):oo("",!0),Nt(i)&&a.download?(Ze(),In("div",Bs,[qt("button",{onClick:s,class:je(a.downloadButton)},Yn(a.buttonName),3)])):oo("",!0)]))}});return Rr({__name:"QRCodeVue3",props:{value:{default:""},width:{default:300},height:{default:300},margin:{default:0},imgclass:{default:""},myclass:{default:""},downloadButton:{default:""},buttonName:{default:"Download"},qrOptions:{default:{typeNumber:0,mode:"Byte",errorCorrectionLevel:"Q"}},imageOptions:{default:{hideBackgroundDots:!0,imageSize:.4,margin:0}},dotsOptions:{default:{type:"dots",color:"#6a1a4c",gradient:{type:"linear",rotation:0,colorStops:[{offset:0,color:"#6a1a4c"},{offset:1,color:"#6a1a4c"}]}}},backgroundOptions:{default:{color:"#ffffff"}},cornersSquareOptions:{default:{type:"dot",color:"#000000"}},cornersDotOptions:{default:{type:void 0,color:"#000000"}},fileExt:{default:"png"},image:{default:""},download:{type:Boolean,default:!1},downloadOptions:{default:{name:"vqr",extension:"png"}}},setup(e){const t=e;return(n,r)=>(Ze(),eo(zi,null,{default:mi(()=>[Re(Vs,{"background-options":t.backgroundOptions,"button-name":t.buttonName,"corners-dot-options":t.cornersDotOptions,"corners-square-options":t.cornersSquareOptions,"dots-options":t.dotsOptions,download:t.download,"download-button":t.downloadButton,"download-options":t.downloadOptions,"file-ext":t.fileExt,height:t.height,image:t.image,"image-options":t.imageOptions,imgclass:t.imgclass,margin:t.margin,value:t.value,myclass:t.myclass,"qr-options":t.qrOptions,width:t.width},null,8,["background-options","button-name","corners-dot-options","corners-square-options","dots-options","download","download-button","download-options","file-ext","height","image","image-options","imgclass","margin","value","myclass","qr-options","width"])]),_:1}))}})});