mirror of
https://gitee.com/myxzgzs/boyue-kfcode-hasfj.git
synced 2025-06-21 22:09:36 +08:00
39 lines
186 KiB
JavaScript
39 lines
186 KiB
JavaScript
![]() |
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/LawListView-ZFzHVgg7.js","assets/Pagination-BglOOsm3.js","assets/Pagination-wcAoWHYR.css","assets/LawListView-Te234Z7M.css","assets/CaseListView--ZW6Stue.js","assets/CaseListView-bDxC-yBk.css","assets/FormListView-DWB128rb.js","assets/FormListView-aeZL7PcF.css","assets/QRCodesView-DMr-w9qa.js","assets/QRCodesView-Y6kV9Tb7.css"])))=>i.map(i=>d[i]);
|
||
|
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}})();/**
|
||
|
* @vue/shared v3.5.15
|
||
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
|
* @license MIT
|
||
|
**//*! #__NO_SIDE_EFFECTS__ */function Qs(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const de={},Zt=[],ut=()=>{},nc=()=>!1,gr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Xs=e=>e.startsWith("onUpdate:"),Oe=Object.assign,Zs=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},rc=Object.prototype.hasOwnProperty,ce=(e,t)=>rc.call(e,t),Y=Array.isArray,en=e=>un(e)==="[object Map]",mr=e=>un(e)==="[object Set]",To=e=>un(e)==="[object Date]",sc=e=>un(e)==="[object RegExp]",ee=e=>typeof e=="function",be=e=>typeof e=="string",ft=e=>typeof e=="symbol",ge=e=>e!==null&&typeof e=="object",cl=e=>(ge(e)||ee(e))&&ee(e.then)&&ee(e.catch),ul=Object.prototype.toString,un=e=>ul.call(e),oc=e=>un(e).slice(8,-1),fl=e=>un(e)==="[object Object]",eo=e=>be(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,bn=Qs(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),yr=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},ic=/-(\w)/g,Ye=yr(e=>e.replace(ic,(t,n)=>n?n.toUpperCase():"")),lc=/\B([A-Z])/g,Vt=yr(e=>e.replace(lc,"-$1").toLowerCase()),wr=yr(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ur=yr(e=>e?`on${wr(e)}`:""),Mt=(e,t)=>!Object.is(e,t),tn=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},dl=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},tr=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Po;const vr=()=>Po||(Po=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function to(e){if(Y(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=be(r)?fc(r):to(r);if(s)for(const o in s)t[o]=s[o]}return t}else if(be(e)||ge(e))return e}const ac=/;(?![^(]*\))/g,cc=/:([^]+)/,uc=/\/\*[^]*?\*\//g;function fc(e){const t={};return e.replace(uc,"").split(ac).forEach(n=>{if(n){const r=n.split(cc);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function He(e){let t="";if(be(e))t=e;else if(Y(e))for(let n=0;n<e.length;n++){const r=He(e[n]);r&&(t+=r+" ")}else if(ge(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const dc="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",hc=Qs(dc);function hl(e){return!!e||e===""}function pc(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=br(e[r],t[r]);return n}function br(e,t){if(e===t)return!0;let n=To(e),r=To(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=ft(e),r=ft(t),n||r)return e===t;if(n=Y(e),r=Y(t),n||r)return n&&r?pc(e,t):!1;if(n=ge(e),r=ge(t),n||r){if(!n||!r)return!1;const s=Object.keys(e).length,o=Object.keys(t).length;if(s!==o)return!1;for(const i in e){const l=e.hasOwnProperty(i),a=t.hasOwnProperty(i);if(l&&!a||!l&&a||!br(e[i],t[i]))return!1}}return String(e)===String(t)}function gc(e,t){return e.findIndex(n=>br(n,t))}const pl=e=>!!(e&&e.__v_isRef===!0),we=e=>be(e)?e:e==null?"":Y(e)||ge(e)&&(e.toString===ul||!ee(e.toString))?pl(e)?we(e.value):JSON.stringify(e,gl,2):String(e),gl=(e,t)=>pl(t)?gl(e,t.value):en(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],o)=>(n[jr(r,o)+" =>"]=s,n),{})}:mr(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>jr(n))}:ft(t)?jr(t):ge(t)&&!Y(t)&&!fl(t)?String(t):t,jr=(e,t="")=>{var n;return ft(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
||
|
* @vue/reactivity v3.5.15
|
||
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
|
* @license MIT
|
||
|
**/let De;class ml{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=De,!t&&De&&(this.index=(De.scopes||(De.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=De;try{return De=this,t()}finally{De=n}}}on(){++this._on===1&&(this.prevScope=De,De=this)}off(){this._on>0&&--this._on===0&&(De=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}}function mc(e){return new ml(e)}function yc(){return De}let pe;const qr=new WeakSet;class yl{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,De&&De.active&&De.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,qr.has(this)&&(qr.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||vl(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,xo(this),bl(this);const t=pe,n=Xe;pe=this,Xe=!0;try{return this.fn()}finally{_l(this),pe=t,Xe=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)so(t);this.deps=this.depsTail=void 0,xo(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?qr.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Os(this)&&this.run()}get dirty(){return Os(this)}}let wl=0,_n,En;function vl(e,t=!1){if(e.flags|=8,t){e.next=En,En=e;return}e.next=_n,_n=e}function no(){wl++}function ro(){if(--wl>0)return;if(En){let t=En;for(En=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;_n;){let t=_n;for(_n=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function bl(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function _l(e){let t,n=e.depsTail,r=n;for(;r;){const s=r.prevDep;r.version===-1?(r===n&&(n=s),so(r),wc(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}e.deps=t,e.depsTail=n}function Os(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(El(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function El(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===xn)||(e.globalVersion=xn,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Os(e))))return;e.flags|=2;const t=e.dep,n=pe,r=Xe;pe=e,Xe=!0;try{bl(e);const s=e.fn(e._value);(t.version===0||Mt(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{pe=n,Xe=r,_l(e),e.flags&=-3}}function so(e,t=!1){const{dep:n,prevSub:r,nextSub:s}=e;if(r&&(r.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)so(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function wc(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Xe=!0;const Rl=[];function bt(){Rl.push(Xe),Xe=!1}function _t(){const e=Rl.pop();Xe=e===void 0?!0:e}function xo(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=pe;pe=void 0;try{t()}finally{pe=n}}}let xn=0;class vc{constructor(t,n){this.sub=t,this.dep=n,this.version=n.ver
|
||
|
* @vue/runtime-core v3.5.15
|
||
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
|
* @license MIT
|
||
|
**/function kn(e,t,n,r){try{return r?e(...r):e()}catch(s){Rr(s,t,n)}}function dt(e,t,n,r){if(ee(e)){const s=kn(e,t,n,r);return s&&cl(s)&&s.catch(o=>{Rr(o,t,n)}),s}if(Y(e)){const s=[];for(let o=0;o<e.length;o++)s.push(dt(e[o],t,n,r));return s}}function Rr(e,t,n,r=!0){const s=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||de;if(t){let l=t.parent;const a=t.proxy,c=`https://vuejs.org/error-reference/#runtime-${n}`;for(;l;){const u=l.ec;if(u){for(let f=0;f<u.length;f++)if(u[f](e,a,c)===!1)return}l=l.parent}if(o){bt(),kn(o,null,10,[e,a,c]),_t();return}}Hc(e,n,s,r,i)}function Hc(e,t,n,r=!0,s=!1){if(s)throw e;console.error(e)}const Be=[];let at=-1;const rn=[];let xt=null,Yt=0;const $l=Promise.resolve();let sr=null;function co(e){const t=sr||$l;return e?t.then(this?e.bind(this):e):t}function Vc(e){let t=at+1,n=Be.length;for(;t<n;){const r=t+n>>>1,s=Be[r],o=In(s);o<e||o===e&&s.flags&2?t=r+1:n=r}return t}function uo(e){if(!(e.flags&1)){const t=In(e),n=Be[Be.length-1];!n||!(e.flags&2)&&t>=In(n)?Be.push(e):Be.splice(Vc(t),0,e),e.flags|=1,Dl()}}function Dl(){sr||(sr=$l.then(Fl))}function Kc(e){Y(e)?rn.push(...e):xt&&e.id===-1?xt.splice(Yt+1,0,e):e.flags&1||(rn.push(e),e.flags|=1),Dl()}function Io(e,t,n=at+1){for(;n<Be.length;n++){const r=Be[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;Be.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function kl(e){if(rn.length){const t=[...new Set(rn)].sort((n,r)=>In(n)-In(r));if(rn.length=0,xt){xt.push(...t);return}for(xt=t,Yt=0;Yt<xt.length;Yt++){const n=xt[Yt];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}xt=null,Yt=0}}const In=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Fl(e){try{for(at=0;at<Be.length;at++){const t=Be[at];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),kn(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;at<Be.length;at++){const t=Be[at];t&&(t.flags&=-2)}at=-1,Be.length=0,kl(),sr=null,(Be.length||rn.length)&&Fl()}}let ke=null,Ul=null;function or(e){const t=ke;return ke=e,Ul=e&&e.type.__scopeId||null,t}function ve(e,t=ke,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&Uo(-1);const o=or(t);let i;try{i=e(...s)}finally{or(o),r._d&&Uo(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function zc(e,t){if(ke===null)return e;const n=xr(ke),r=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[o,i,l,a=de]=t[s];o&&(ee(o)&&(o={mounted:o,updated:o}),o.deep&&wt(i),r.push({dir:o,instance:n,value:i,oldValue:void 0,arg:l,modifiers:a}))}return e}function Bt(e,t,n,r){const s=e.dirs,o=t&&t.dirs;for(let i=0;i<s.length;i++){const l=s[i];o&&(l.oldValue=o[i].value);let a=l.dir[r];a&&(bt(),dt(a,n,8,[e.el,l,e,t]),_t())}}const Wc=Symbol("_vte"),Jc=e=>e.__isTeleport;function Sr(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Sr(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 ht(e,t){return ee(e)?Oe({name:e.name},t,{setup:e}):e}function jl(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function ir(e,t,n,r,s=!1){if(Y(e)){e.forEach((m,v)=>ir(m,t&&(Y(t)?t[v]:t),n,r,s));return}if(sn(r)&&!s){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&ir(e,t,n,r.component.subTree);return}const o=r.shapeFlag&4?xr(r.component):r.el,i=s?null:o,{i:l,r:a}=e,c=t&&t.r,u=l.refs===de?l.refs={}:l.refs,f=l.setupState,d=ae(f),h=f===de?()=>!1:m=>ce(d,m);if(c!=null&&c!==a&&(be(c)?(u[c]=null,h(c)&&(f[c]=null)):xe(c)&&(c.value=null)),ee(a))kn(a,l,12,[i,u]);else{const m=be(a),v=xe(a);if(m||v){const A=()=>{if(e.f){const E=m?h(a)?f[a]:u[a]:a.value;s?Y(E)&&Zs(E,o):Y(E)?E.includes(o)||E.push(o):m?(u[a]=[o],h(a)&&(f[a]=u[a])):(a.value=[o],e.k&&(u[e.k]=a.value))}else m?(u[a]=i,h(a)&&(f[a]=i)):v&&(a.value=i,e.k&&(u[e.k]=i))};i?(A.id=-1,Re(A,n)):A()}}}vr().requestIdleCallback;vr().cancelIdleCallback;const sn=e=>!!e.type.__asyncLoader,ql=e=>e.type.__isKeepAlive,Gc={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Vu(),r=n.ctx;if(
|
||
|
* @vue/runtime-dom v3.5.15
|
||
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
|
* @license MIT
|
||
|
**/let js;const Ho=typeof window<"u"&&window.trustedTypes;if(Ho)try{js=Ho.createPolicy("vue",{createHTML:e=>e})}catch{}const ha=js?e=>js.createHTML(e):e=>e,Qu="http://www.w3.org/2000/svg",Xu="http://www.w3.org/1998/Math/MathML",mt=typeof document<"u"?document:null,Vo=mt&&mt.createElement("template"),Zu={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const s=t==="svg"?mt.createElementNS(Qu,e):t==="mathml"?mt.createElementNS(Xu,e):n?mt.createElement(e,{is:n}):mt.createElement(e);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>mt.createTextNode(e),createComment:e=>mt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>mt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,o){const i=n?n.previousSibling:t.lastChild;if(s&&(s===o||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===o||!(s=s.nextSibling)););else{Vo.innerHTML=ha(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const l=Vo.content;if(r==="svg"||r==="mathml"){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},ef=Symbol("_vtc");function tf(e,t,n){const r=e[ef];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Ko=Symbol("_vod"),nf=Symbol("_vsh"),rf=Symbol(""),sf=/(^|;)\s*display\s*:/;function of(e,t,n){const r=e.style,s=be(n);let o=!1;if(n&&!s){if(t)if(be(t))for(const i of t.split(";")){const l=i.slice(0,i.indexOf(":")).trim();n[l]==null&&Qn(r,l,"")}else for(const i in t)n[i]==null&&Qn(r,i,"");for(const i in n)i==="display"&&(o=!0),Qn(r,i,n[i])}else if(s){if(t!==n){const i=r[rf];i&&(n+=";"+i),r.cssText=n,o=sf.test(n)}}else t&&e.removeAttribute("style");Ko in e&&(e[Ko]=o?r.display:"",e[nf]&&(r.display="none"))}const zo=/\s*!important$/;function Qn(e,t,n){if(Y(n))n.forEach(r=>Qn(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=lf(e,t);zo.test(n)?e.setProperty(Vt(r),n.replace(zo,""),"important"):e[r]=n}}const Wo=["Webkit","Moz","ms"],Gr={};function lf(e,t){const n=Gr[t];if(n)return n;let r=Ye(t);if(r!=="filter"&&r in e)return Gr[t]=r;r=wr(r);for(let s=0;s<Wo.length;s++){const o=Wo[s]+r;if(o in e)return Gr[t]=o}return t}const Jo="http://www.w3.org/1999/xlink";function Go(e,t,n,r,s,o=hc(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Jo,t.slice(6,t.length)):e.setAttributeNS(Jo,t,n):n==null||o&&!hl(n)?e.removeAttribute(t):e.setAttribute(t,o?"":ft(n)?String(n):n)}function Yo(e,t,n,r,s){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?ha(n):n);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const l=o==="OPTION"?e.getAttribute("value")||"":e.value,a=n==null?e.type==="checkbox"?"on":"":String(n);(l!==a||!("_value"in e))&&(e.value=a),n==null&&e.removeAttribute(t),e._value=n;return}let i=!1;if(n===""||n==null){const l=typeof e[t];l==="boolean"?n=hl(n):n==null&&l==="string"?(n="",i=!0):l==="number"&&(n=0,i=!0)}try{e[t]=n}catch{}i&&e.removeAttribute(s||t)}function kt(e,t,n,r){e.addEventListener(t,n,r)}function af(e,t,n,r){e.removeEventListener(t,n,r)}const Qo=Symbol("_vei");function cf(e,t,n,r,s=null){const o=e[Qo]||(e[Qo]={}),i=o[t];if(r&&i)i.value=r;else{const[l,a]=uf(t);if(r){const c=o[t]=hf(r,s);kt(e,l,c,a)}else i&&(af(e,l,i,a),o[t]=void 0)}}const Xo=/(?:Once|Passive|Capture)$/;function uf(e){let t;if(Xo.test(e)){t={};let r;for(;r=e.match(Xo);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Vt(e.slice(2)),t]}let Yr=0;const ff=Promise.resolve(),df=()=>Yr||(ff.then(()=>Yr=0),Yr=Date.now());function hf(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;dt(pf(r,n.value),t,5,[r])};return n.value=e,n.attached=df(),n}function pf(e,t){if(Y(t)){const
|
||
|
* pinia v3.0.2
|
||
|
* (c) 2025 Eduardo San Martin Morote
|
||
|
* @license MIT
|
||
|
*/const Cf=Symbol();var ri;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(ri||(ri={}));function Tf(){const e=mc(!0),t=e.run(()=>me({}));let n=[],r=[];const s=Ml({install(o){s._a=o,o.provide(Cf,s),o.config.globalProperties.$pinia=s,r.forEach(i=>n.push(i)),r=[]},use(o){return this._a?n.push(o):r.push(o),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return s}/*!
|
||
|
* vue-router v4.5.1
|
||
|
* (c) 2025 Eduardo San Martin Morote
|
||
|
* @license MIT
|
||
|
*/const Xt=typeof document<"u";function pa(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Pf(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&pa(e.default)}const le=Object.assign;function Xr(e,t){const n={};for(const r in t){const s=t[r];n[r]=et(s)?s.map(e):e(s)}return n}const Tn=()=>{},et=Array.isArray,ga=/#/g,xf=/&/g,Of=/\//g,If=/=/g,Nf=/\?/g,ma=/\+/g,Mf=/%5B/g,Lf=/%5D/g,ya=/%5E/g,Bf=/%60/g,wa=/%7B/g,$f=/%7C/g,va=/%7D/g,Df=/%20/g;function go(e){return encodeURI(""+e).replace($f,"|").replace(Mf,"[").replace(Lf,"]")}function kf(e){return go(e).replace(wa,"{").replace(va,"}").replace(ya,"^")}function qs(e){return go(e).replace(ma,"%2B").replace(Df,"+").replace(ga,"%23").replace(xf,"%26").replace(Bf,"`").replace(wa,"{").replace(va,"}").replace(ya,"^")}function Ff(e){return qs(e).replace(If,"%3D")}function Uf(e){return go(e).replace(ga,"%23").replace(Nf,"%3F")}function jf(e){return e==null?"":Uf(e).replace(Of,"%2F")}function Bn(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const qf=/\/$/,Hf=e=>e.replace(qf,"");function Zr(e,t,n="/"){let r,s={},o="",i="";const l=t.indexOf("#");let a=t.indexOf("?");return l<a&&l>=0&&(a=-1),a>-1&&(r=t.slice(0,a),o=t.slice(a+1,l>-1?l:t.length),s=e(o)),l>-1&&(r=r||t.slice(0,l),i=t.slice(l,t.length)),r=Wf(r??t,n),{fullPath:r+(o&&"?")+o+i,path:r,query:s,hash:Bn(i)}}function Vf(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function si(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Kf(e,t,n){const r=t.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&an(t.matched[r],n.matched[s])&&ba(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function an(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function ba(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!zf(e[n],t[n]))return!1;return!0}function zf(e,t){return et(e)?oi(e,t):et(t)?oi(t,e):e===t}function oi(e,t){return et(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function Wf(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),s=r[r.length-1];(s===".."||s===".")&&r.push("");let o=n.length-1,i,l;for(i=0;i<r.length;i++)if(l=r[i],l!==".")if(l==="..")o>1&&o--;else break;return n.slice(0,o).join("/")+"/"+r.slice(i).join("/")}const Tt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var $n;(function(e){e.pop="pop",e.push="push"})($n||($n={}));var Pn;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Pn||(Pn={}));function Jf(e){if(!e)if(Xt){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Hf(e)}const Gf=/^[^#]+#/;function Yf(e,t){return e.replace(Gf,"#")+t}function Qf(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const Or=()=>({left:window.scrollX,top:window.scrollY});function Xf(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=Qf(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function ii(e,t){return(history.state?history.state.position-t:-1)+e}const Hs=new Map;function Zf(e,t){Hs.set(e,t)}function ed(e){const t=Hs.get(e);return Hs.delete(e),t}let td=()=>location.protocol+"//"+location.host;function _a(e,t){const{pathname:n,search:r,hash:s}=t,o=e.indexOf("#");if(o>-1){let l=s.includes(e.slice(o))?e.slice(o).length:1,a=s.slice(l);return a[0]!=="/"&&(a="/"+a),si(a,"")}return si(n,e)+r+s}function nd(e,t,n,r){let s=[],o=[],i=null;const l=({state:d})=>{const h=_a(e,location),m=n.value,v=t.value;let A=0;if(d){if(n.value=h,t.value=d,i&&i===m){i=null;return}A=v?d.position
|
||
|
`).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim(),!(!n||t[n]&&Bh[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Ci=Symbol("internals");function mn(e){return e&&String(e).trim().toLowerCase()}function Zn(e){return e===!1||e==null?e:S.isArray(e)?e.map(Zn):String(e)}function Dh(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const kh=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ts(e,t,n,r,s){if(S.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!S.isString(t)){if(S.isString(r))return t.indexOf(r)!==-1;if(S.isRegExp(r))return r.test(t)}}function Fh(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Uh(e,t){const n=S.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,o,i){return this[r].call(this,t,s,o,i)},configurable:!0})})}let Ue=class{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function o(l,a,c){const u=mn(a);if(!u)throw new Error("header name must be a non-empty string");const f=S.findKey(s,u);(!f||s[f]===void 0||c===!0||c===void 0&&s[f]!==!1)&&(s[f||a]=Zn(l))}const i=(l,a)=>S.forEach(l,(c,u)=>o(c,u,a));if(S.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(S.isString(t)&&(t=t.trim())&&!kh(t))i($h(t),n);else if(S.isObject(t)&&S.isIterable(t)){let l={},a,c;for(const u of t){if(!S.isArray(u))throw TypeError("Object iterator must return a key-value pair");l[c=u[0]]=(a=l[c])?S.isArray(a)?[...a,u[1]]:[a,u[1]]:u[1]}i(l,n)}else t!=null&&o(n,t,r);return this}get(t,n){if(t=mn(t),t){const r=S.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return Dh(s);if(S.isFunction(n))return n.call(this,s,r);if(S.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=mn(t),t){const r=S.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||ts(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function o(i){if(i=mn(i),i){const l=S.findKey(r,i);l&&(!n||ts(r,r[l],l,n))&&(delete r[l],s=!0)}}return S.isArray(t)?t.forEach(o):o(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const o=n[r];(!t||ts(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const n=this,r={};return S.forEach(this,(s,o)=>{const i=S.findKey(r,o);if(i){n[i]=Zn(s),delete n[o];return}const l=t?Fh(o):String(o).trim();l!==o&&delete n[o],n[l]=Zn(s),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return S.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&S.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
||
|
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[Ci]=this[Ci]={accessors:{}}).accessors,s=this.prototype;function o(i){const l=mn(i);r[l]||(Uh(s,i),r[l]=!0)}return S.isArray(t)?t.forEach(o):o(t),this}};Ue.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);S.reduceDescriptors(Ue.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});S.freezeMethods(Ue);function ns(e,t){const n=this||qn,r=t||n,s=Ue.from(r.headers);let o=r.data;return S.forEach(e,function(l){o=l.call(n,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function qa(e){return!!(e&&e.__CANCEL__)}function dn(e,t,n){te.call(this,e??"canceled",te.ERR_CANCELED,t,n),this.name="CanceledError"}S.inherits(dn,te,{__CANCEL__:!0});function Ha(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new te("Request failed with status code "+n.status,[te.ERR_BAD_REQUEST,te.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function jh(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function qh(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,o=0,i;return t=t!==void 0?t:1e3,function(a){const c=Date.now(),u=r[o];i||(i=c),n[s]=a,r[s]=c;let f=o,d=0;for(;f!==s;)d+=n[f++],f=f%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),c-i<t)return;const h=u&&c-u;return h?Math.round(d*1e3/h):void 0}}function Hh(e,t){let n=0,r=1e3/t,s,o;const i=(c,u=Date.now())=>{n=u,s=null,o&&(clearTimeout(o),o=null),e.apply(null,c)};return[(...c)=>{const u=Date.now(),f=u-n;f>=r?i(c,u):(s=c,o||(o=setTimeout(()=>{o=null,i(s)},r-f)))},()=>s&&i(s)]}const hr=(e,t,n=3)=>{let r=0;const s=qh(50,250);return Hh(o=>{const i=o.loaded,l=o.lengthComputable?o.total:void 0,a=i-r,c=s(a),u=i<=l;r=i;const f={loaded:i,total:l,progress:l?i/l:void 0,bytes:a,rate:c||void 0,estimated:c&&l&&u?(l-i)/c:void 0,event:o,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(f)},n)},Ti=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Pi=e=>(...t)=>S.asap(()=>e(...t)),Vh=Pe.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Pe.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Pe.origin),Pe.navigator&&/(msie|trident)/i.test(Pe.navigator.userAgent)):()=>!0,Kh=Pe.hasStandardBrowserEnv?{write(e,t,n,r,s,o){const i=[e+"="+encodeURIComponent(t)];S.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),S.isString(r)&&i.push("path="+r),S.isString(s)&&i.push("domain="+s),o===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function zh(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Wh(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Va(e,t,n){let r=!zh(t);return e&&(r||n==!1)?Wh(e,t):t}const xi=e=>e instanceof Ue?{...e}:e;function Ht(e,t){t=t||{};const n={};function r(c,u,f,d){return S.isPlainObject(c)&&S.isPlainObject(u)?S.merge.call({caseless:d},c,u):S.isPlainObject(u)?S.merge({},u):S.isArray(u)?u.slice():u}function s(c,u,f,d){if(S.isUndefined(u)){if(!S.isUndefined(c))return r(void 0,c,f,d)}else return r(c,u,f,d)}function o(c,u){if(!S.isUndefined(u))return r(void 0,u)}function i(c,u){if(S.isUndefined(u)){if(!S.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function l(c,u,f){if(f in t)return r(c,u);if(f in e)return r(void 0,c)}const a={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelTo
|
||
|
`+o.map(Ni).join(`
|
||
|
`):" "+Ni(o[0]):"as no adapter specified";throw new te("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:Gs};function rs(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new dn(null,e)}function Mi(e){return rs(e),e.headers=Ue.from(e.headers),e.data=ns.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ja.getAdapter(e.adapter||qn.adapter)(e).then(function(r){return rs(e),r.data=ns.call(e,e.transformResponse,r),r.headers=Ue.from(r.headers),r},function(r){return qa(r)||(rs(e),r&&r.response&&(r.response.data=ns.call(e,e.transformResponse,r.response),r.response.headers=Ue.from(r.response.headers))),Promise.reject(r)})}const Ga="1.9.0",kr={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{kr[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Li={};kr.transitional=function(t,n,r){function s(o,i){return"[Axios v"+Ga+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,l)=>{if(t===!1)throw new te(s(i," has been removed"+(n?" in "+n:"")),te.ERR_DEPRECATED);return n&&!Li[i]&&(Li[i]=!0,console.warn(s(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,l):!0}};kr.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function ip(e,t,n){if(typeof e!="object")throw new te("options must be an object",te.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const o=r[s],i=t[o];if(i){const l=e[o],a=l===void 0||i(l,o,e);if(a!==!0)throw new te("option "+o+" must be "+a,te.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new te("Unknown option "+o,te.ERR_BAD_OPTION)}}const er={assertOptions:ip,validators:kr},it=er.validators;let jt=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Ai,response:new Ai}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const o=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
||
|
`+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ht(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&er.assertOptions(r,{silentJSONParsing:it.transitional(it.boolean),forcedJSONParsing:it.transitional(it.boolean),clarifyTimeoutError:it.transitional(it.boolean)},!1),s!=null&&(S.isFunction(s)?n.paramsSerializer={serialize:s}:er.assertOptions(s,{encode:it.function,serialize:it.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),er.assertOptions(n,{baseUrl:it.spelling("baseURL"),withXsrfToken:it.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&S.merge(o.common,o[n.method]);o&&S.forEach(["delete","get","head","post","put","patch","common"],m=>{delete o[m]}),n.headers=Ue.concat(i,o);const l=[];let a=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(n)===!1||(a=a&&v.synchronous,l.unshift(v.fulfilled,v.rejected))});const c=[];this.interceptors.response.forEach(function(v){c.push(v.fulfilled,v.rejected)});let u,f=0,d;if(!a){const m=[Mi.bind(this),void 0];for(m.unshift.apply(m,l),m.push.apply(m,c),d=m.length,u=Promise.resolve(n);f<d;)u=u.then(m[f++],m[f++]);return u}d=l.length;let h=n;for(f=0;f<d;){const m=l[f++],v=l[f++];try{h=m(h)}catch(A){v.call(this,A);break}}try{u=Mi.call(this,h)}catch(m){return Promise.reject(m)}for(f=0,d=c.length;f<d;)u=u.then(c[f++],c[f++]);return u}getUri(t){t=Ht(this.defaults,t);const n=Va(t.baseURL,t.url,t.allowAbsoluteUrls);return Fa(n,t.params,t.paramsSerializer)}};S.forEach(["delete","get","head","options"],function(t){jt.prototype[t]=function(n,r){return this.request(Ht(r||{},{method:t,url:n,data:(r||{}).data}))}});S.forEach(["post","put","patch"],function(t){function n(r){return function(o,i,l){return this.request(Ht(l||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}jt.prototype[t]=n(),jt.prototype[t+"Form"]=n(!0)});let lp=class Ya{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(s=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const i=new Promise(l=>{r.subscribe(l),o=l}).then(s);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,l){r.reason||(r.reason=new dn(o,i,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Ya(function(s){t=s}),cancel:t}}};function ap(e){return function(n){return e.apply(null,n)}}function cp(e){return S.isObject(e)&&e.isAxiosError===!0}const Ys={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsToo
|
||
|
]))+`;lt.KANJI=new RegExp(n,"g"),lt.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),lt.BYTE=new RegExp(r,"g"),lt.NUMERIC=new RegExp(e,"g"),lt.ALPHANUMERIC=new RegExp(t,"g");const s=new RegExp("^"+n+"$"),o=new RegExp("^"+e+"$"),i=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return lt.testKanji=function(a){return s.test(a)},lt.testNumeric=function(a){return o.test(a)},lt.testAlphanumeric=function(a){return i.test(a)},lt}var Gi;function zt(){return Gi||(Gi=1,function(e){const t=Za(),n=ec();e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(o,i){if(!o.ccBits)throw new Error("Invalid mode: "+o);if(!t.isValid(i))throw new Error("Invalid version: "+i);return i>=1&&i<10?o.ccBits[0]:i<27?o.ccBits[1]:o.ccBits[2]},e.getBestModeForData=function(o){return n.testNumeric(o)?e.NUMERIC:n.testAlphanumeric(o)?e.ALPHANUMERIC:n.testKanji(o)?e.KANJI:e.BYTE},e.toString=function(o){if(o&&o.id)return o.id;throw new Error("Invalid mode")},e.isValid=function(o){return o&&o.bit&&o.ccBits};function r(s){if(typeof s!="string")throw new Error("Param is not a string");switch(s.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+s)}}e.from=function(o,i){if(e.isValid(o))return o;try{return r(o)}catch{return i}}}(ys)),ys}var Yi;function Ep(){return Yi||(Yi=1,function(e){const t=Kt(),n=Xa(),r=Ro(),s=zt(),o=Za(),i=7973,l=t.getBCHDigit(i);function a(d,h,m){for(let v=1;v<=40;v++)if(h<=e.getCapacity(v,m,d))return v}function c(d,h){return s.getCharCountIndicator(d,h)+4}function u(d,h){let m=0;return d.forEach(function(v){const A=c(v.mode,h);m+=A+v.getBitsLength()}),m}function f(d,h){for(let m=1;m<=40;m++)if(u(d,m)<=e.getCapacity(m,h,s.MIXED))return m}e.from=function(h,m){return o.isValid(h)?parseInt(h,10):m},e.getCapacity=function(h,m,v){if(!o.isValid(h))throw new Error("Invalid QR Code version");typeof v>"u"&&(v=s.BYTE);const A=t.getSymbolTotalCodewords(h),E=n.getTotalCodewordsCount(h,m),w=(A-E)*8;if(v===s.MIXED)return w;const b=w-c(v,h);switch(v){case s.NUMERIC:return Math.floor(b/10*3);case s.ALPHANUMERIC:return Math.floor(b/11*2);case s.KANJI:return Math.floor(b/13);case s.BYTE:default:return Math.floor(b/8)}},e.getBestVersionForData=function(h,m){let v;const A=r.from(m,r.M);if(Array.isArray(h)){if(h.length>1)return f(h,A);if(h.length===0)return 1;v=h[0]}else v=h;return a(v.mode,v.getLength(),A)},e.getEncodedBits=function(h){if(!o.isValid(h)||h<7)throw new Error("Invalid QR Code version");let m=h<<12;for(;t.getBCHDigit(m)-l>=0;)m^=i<<t.getBCHDigit(m)-l;return h<<12|m}}(ms)),ms}var vs={},Qi;function Rp(){if(Qi)return vs;Qi=1;const e=Kt(),t=1335,n=21522,r=e.getBCHDigit(t);return vs.getEncodedBits=function(o,i){const l=o.bit<<3|i;let a=l<<10;for(;e.getBCHDigit(a)-r>=0;)a^=t<<e.getBCHDigit(a)-r;return(l<<10|a)^n},vs}var bs={},_s,Xi;function Sp(){if(Xi)return _s;Xi=1;const e=zt();function t(n){this.mode=e.NUMERIC,this.data=n.toString()}return t.getBitsLength=function(r){return 10*Math.floor(r/3)+(r%3?r%3*3+1:0)},t.prototype.getLength=function(){return this.data.length},t.prototype.getBitsLength=function(){return t.getBitsLength(this.data.length)},t.prototype.write=function(r){let s,o,i;for(s=0;s+3<=this.data.length;s+=3)o=this.data.substr(s,3),i=parseInt(o,10),r.put(i,10);const l=this.data.length-s;l>0&&(o=this.data.substr(s),i=parseInt(o,10),r.put(i,l*3+1))},_s=t,_s}var Es,Zi;function Ap(){if(Zi)return Es;Zi=1;const e=zt(),t=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function n(r){this.mode=e.ALPHANUMERIC,this.data=r}return n.getBitsLength=function(s){return 11*Math.floor(s/2)+6*(s%2)},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.len
|
||
|
Make sure your charset is UTF-8`);o=(o>>>8&255)*192+(o&255),r.put(o,13)}},Ss=n,Ss}var As={exports:{}},nl;function Pp(){return nl||(nl=1,function(e){var t={single_source_shortest_paths:function(n,r,s){var o={},i={};i[r]=0;var l=t.PriorityQueue.make();l.push(r,0);for(var a,c,u,f,d,h,m,v,A;!l.empty();){a=l.pop(),c=a.value,f=a.cost,d=n[c]||{};for(u in d)d.hasOwnProperty(u)&&(h=d[u],m=f+h,v=i[u],A=typeof i[u]>"u",(A||v>m)&&(i[u]=m,l.push(u,m),o[u]=c))}if(typeof s<"u"&&typeof i[s]>"u"){var E=["Could not find a path from ",r," to ",s,"."].join("");throw new Error(E)}return o},extract_shortest_path_from_predecessor_list:function(n,r){for(var s=[],o=r;o;)s.push(o),n[o],o=n[o];return s.reverse(),s},find_path:function(n,r,s){var o=t.single_source_shortest_paths(n,r,s);return t.extract_shortest_path_from_predecessor_list(o,s)},PriorityQueue:{make:function(n){var r=t.PriorityQueue,s={},o;n=n||{};for(o in r)r.hasOwnProperty(o)&&(s[o]=r[o]);return s.queue=[],s.sorter=n.sorter||r.default_sorter,s},default_sorter:function(n,r){return n.cost-r.cost},push:function(n,r){var s={value:n,cost:r};this.queue.push(s),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=t}(As)),As.exports}var rl;function xp(){return rl||(rl=1,function(e){const t=zt(),n=Sp(),r=Ap(),s=Cp(),o=Tp(),i=ec(),l=Kt(),a=Pp();function c(E){return unescape(encodeURIComponent(E)).length}function u(E,w,b){const _=[];let D;for(;(D=E.exec(b))!==null;)_.push({data:D[0],index:D.index,mode:w,length:D[0].length});return _}function f(E){const w=u(i.NUMERIC,t.NUMERIC,E),b=u(i.ALPHANUMERIC,t.ALPHANUMERIC,E);let _,D;return l.isKanjiModeEnabled()?(_=u(i.BYTE,t.BYTE,E),D=u(i.KANJI,t.KANJI,E)):(_=u(i.BYTE_KANJI,t.BYTE,E),D=[]),w.concat(b,_,D).sort(function(N,j){return N.index-j.index}).map(function(N){return{data:N.data,mode:N.mode,length:N.length}})}function d(E,w){switch(w){case t.NUMERIC:return n.getBitsLength(E);case t.ALPHANUMERIC:return r.getBitsLength(E);case t.KANJI:return o.getBitsLength(E);case t.BYTE:return s.getBitsLength(E)}}function h(E){return E.reduce(function(w,b){const _=w.length-1>=0?w[w.length-1]:null;return _&&_.mode===b.mode?(w[w.length-1].data+=b.data,w):(w.push(b),w)},[])}function m(E){const w=[];for(let b=0;b<E.length;b++){const _=E[b];switch(_.mode){case t.NUMERIC:w.push([_,{data:_.data,mode:t.ALPHANUMERIC,length:_.length},{data:_.data,mode:t.BYTE,length:_.length}]);break;case t.ALPHANUMERIC:w.push([_,{data:_.data,mode:t.BYTE,length:_.length}]);break;case t.KANJI:w.push([_,{data:_.data,mode:t.BYTE,length:c(_.data)}]);break;case t.BYTE:w.push([{data:_.data,mode:t.BYTE,length:c(_.data)}])}}return w}function v(E,w){const b={},_={start:{}};let D=["start"];for(let I=0;I<E.length;I++){const N=E[I],j=[];for(let U=0;U<N.length;U++){const H=N[U],q=""+I+U;j.push(q),b[q]={node:H,lastCount:0},_[q]={};for(let z=0;z<D.length;z++){const K=D[z];b[K]&&b[K].node.mode===H.mode?(_[K][q]=d(b[K].lastCount+H.length,H.mode)-d(b[K].lastCount,H.mode),b[K].lastCount+=H.length):(b[K]&&(b[K].lastCount=H.length),_[K][q]=d(H.length,H.mode)+4+t.getCharCountIndicator(H.mode,w))}}D=j}for(let I=0;I<D.length;I++)_[D[I]].end=0;return{map:_,table:b}}function A(E,w){let b;const _=t.getBestModeForData(E);if(b=t.from(w,_),b!==t.BYTE&&b.bit<_.bit)throw new Error('"'+E+'" cannot be encoded with mode '+t.toString(b)+`.
|
||
|
Suggested mode is: `+t.toString(_));switch(b===t.KANJI&&!l.isKanjiModeEnabled()&&(b=t.BYTE),b){case t.NUMERIC:return new n(E);case t.ALPHANUMERIC:return new r(E);case t.KANJI:return new o(E);case t.BYTE:return new s(E)}}e.fromArray=function(w){return w.reduce(function(b,_){return typeof _=="string"?b.push(A(_,null)):_.data&&b.push(A(_.data,_.mode)),b},[])},e.fromString=function(w,b){const _=f(w,l.isKanjiModeEnabled()),D=m(_),I=v(D,b),N=a.find_path(I.map,"start","end"),j=[];for(let U=1;U<N.length-1;U++)j.push(I.table[N[U]].node);return e.fromArray(h(j))},e.rawSplit=function(w){return e.fromArray(f(w,l.isKanjiModeEnabled()))}}(bs)),bs}var sl;function Op(){if(sl)return ls;sl=1;const e=Kt(),t=Ro(),n=pp(),r=gp(),s=mp(),o=yp(),i=wp(),l=Xa(),a=_p(),c=Ep(),u=Rp(),f=zt(),d=xp();function h(I,N){const j=I.size,U=o.getPositions(N);for(let H=0;H<U.length;H++){const q=U[H][0],z=U[H][1];for(let K=-1;K<=7;K++)if(!(q+K<=-1||j<=q+K))for(let Q=-1;Q<=7;Q++)z+Q<=-1||j<=z+Q||(K>=0&&K<=6&&(Q===0||Q===6)||Q>=0&&Q<=6&&(K===0||K===6)||K>=2&&K<=4&&Q>=2&&Q<=4?I.set(q+K,z+Q,!0,!0):I.set(q+K,z+Q,!1,!0))}}function m(I){const N=I.size;for(let j=8;j<N-8;j++){const U=j%2===0;I.set(j,6,U,!0),I.set(6,j,U,!0)}}function v(I,N){const j=s.getPositions(N);for(let U=0;U<j.length;U++){const H=j[U][0],q=j[U][1];for(let z=-2;z<=2;z++)for(let K=-2;K<=2;K++)z===-2||z===2||K===-2||K===2||z===0&&K===0?I.set(H+z,q+K,!0,!0):I.set(H+z,q+K,!1,!0)}}function A(I,N){const j=I.size,U=c.getEncodedBits(N);let H,q,z;for(let K=0;K<18;K++)H=Math.floor(K/3),q=K%3+j-8-3,z=(U>>K&1)===1,I.set(H,q,z,!0),I.set(q,H,z,!0)}function E(I,N,j){const U=I.size,H=u.getEncodedBits(N,j);let q,z;for(q=0;q<15;q++)z=(H>>q&1)===1,q<6?I.set(q,8,z,!0):q<8?I.set(q+1,8,z,!0):I.set(U-15+q,8,z,!0),q<8?I.set(8,U-q-1,z,!0):q<9?I.set(8,15-q-1+1,z,!0):I.set(8,15-q-1,z,!0);I.set(U-8,8,1,!0)}function w(I,N){const j=I.size;let U=-1,H=j-1,q=7,z=0;for(let K=j-1;K>0;K-=2)for(K===6&&K--;;){for(let Q=0;Q<2;Q++)if(!I.isReserved(H,K-Q)){let Ie=!1;z<N.length&&(Ie=(N[z]>>>q&1)===1),I.set(H,K-Q,Ie),q--,q===-1&&(z++,q=7)}if(H+=U,H<0||j<=H){H-=U,U=-U;break}}}function b(I,N,j){const U=new n;j.forEach(function(Q){U.put(Q.mode.bit,4),U.put(Q.getLength(),f.getCharCountIndicator(Q.mode,I)),Q.write(U)});const H=e.getSymbolTotalCodewords(I),q=l.getTotalCodewordsCount(I,N),z=(H-q)*8;for(U.getLengthInBits()+4<=z&&U.put(0,4);U.getLengthInBits()%8!==0;)U.putBit(0);const K=(z-U.getLengthInBits())/8;for(let Q=0;Q<K;Q++)U.put(Q%2?17:236,8);return _(U,I,N)}function _(I,N,j){const U=e.getSymbolTotalCodewords(N),H=l.getTotalCodewordsCount(N,j),q=U-H,z=l.getBlocksCount(N,j),K=U%z,Q=z-K,Ie=Math.floor(U/z),ye=Math.floor(q/z),ie=ye+1,se=Ie-ye,Qe=new a(se);let ze=0;const Ne=new Array(z),Ee=new Array(z);let nt=0;const At=new Uint8Array(I.buffer);for(let L=0;L<z;L++){const V=L<Q?ye:ie;Ne[L]=At.slice(ze,ze+V),Ee[L]=Qe.encode(Ne[L]),ze+=V,nt=Math.max(nt,V)}const Ct=new Uint8Array(U);let Me=0,C,$;for(C=0;C<nt;C++)for($=0;$<z;$++)C<Ne[$].length&&(Ct[Me++]=Ne[$][C]);for(C=0;C<se;C++)for($=0;$<z;$++)Ct[Me++]=Ee[$][C];return Ct}function D(I,N,j,U){let H;if(Array.isArray(I))H=d.fromArray(I);else if(typeof I=="string"){let Ie=N;if(!Ie){const ye=d.rawSplit(I);Ie=c.getBestVersionForData(ye,j)}H=d.fromString(I,Ie||40)}else throw new Error("Invalid data");const q=c.getBestVersionForData(H,j);if(!q)throw new Error("The amount of data is too big to be stored in a QR Code");if(!N)N=q;else if(N<q)throw new Error(`
|
||
|
The chosen QR Code version cannot contain this amount of data.
|
||
|
Minimum version required to store current data is: `+q+`.
|
||
|
`);const z=b(N,j,H),K=e.getSymbolSize(N),Q=new r(K);return h(Q,N),m(Q),v(Q,N),E(Q,j,0),N>=7&&A(Q,N),w(Q,z),isNaN(U)&&(U=i.getBestMask(Q,E.bind(null,Q,j))),i.applyMask(U,Q),E(Q,j,U),{modules:Q,version:N,errorCorrectionLevel:j,maskPattern:U,segments:H}}return ls.create=function(N,j){if(typeof N>"u"||N==="")throw new Error("No input text");let U=t.M,H,q;return typeof j<"u"&&(U=t.from(j.errorCorrectionLevel,t.M),H=c.from(j.version),q=i.from(j.maskPattern),j.toSJISFunc&&e.setToSJISFunction(j.toSJISFunc)),D(N,H,U,q)},ls}var Cs={},Ts={},ol;function tc(){return ol||(ol=1,function(e){function t(n){if(typeof n=="number"&&(n=n.toString()),typeof n!="string")throw new Error("Color should be defined as hex string");let r=n.slice().replace("#","").split("");if(r.length<3||r.length===5||r.length>8)throw new Error("Invalid hex color: "+n);(r.length===3||r.length===4)&&(r=Array.prototype.concat.apply([],r.map(function(o){return[o,o]}))),r.length===6&&r.push("F","F");const s=parseInt(r.join(""),16);return{r:s>>24&255,g:s>>16&255,b:s>>8&255,a:s&255,hex:"#"+r.slice(0,6).join("")}}e.getOptions=function(r){r||(r={}),r.color||(r.color={});const s=typeof r.margin>"u"||r.margin===null||r.margin<0?4:r.margin,o=r.width&&r.width>=21?r.width:void 0,i=r.scale||4;return{width:o,scale:o?4:i,margin:s,color:{dark:t(r.color.dark||"#000000ff"),light:t(r.color.light||"#ffffffff")},type:r.type,rendererOpts:r.rendererOpts||{}}},e.getScale=function(r,s){return s.width&&s.width>=r+s.margin*2?s.width/(r+s.margin*2):s.scale},e.getImageWidth=function(r,s){const o=e.getScale(r,s);return Math.floor((r+s.margin*2)*o)},e.qrToImageData=function(r,s,o){const i=s.modules.size,l=s.modules.data,a=e.getScale(i,o),c=Math.floor((i+o.margin*2)*a),u=o.margin*a,f=[o.color.light,o.color.dark];for(let d=0;d<c;d++)for(let h=0;h<c;h++){let m=(d*c+h)*4,v=o.color.light;if(d>=u&&h>=u&&d<c-u&&h<c-u){const A=Math.floor((d-u)/a),E=Math.floor((h-u)/a);v=f[l[A*i+E]?1:0]}r[m++]=v.r,r[m++]=v.g,r[m++]=v.b,r[m]=v.a}}}(Ts)),Ts}var il;function Ip(){return il||(il=1,function(e){const t=tc();function n(s,o,i){s.clearRect(0,0,o.width,o.height),o.style||(o.style={}),o.height=i,o.width=i,o.style.height=i+"px",o.style.width=i+"px"}function r(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}e.render=function(o,i,l){let a=l,c=i;typeof a>"u"&&(!i||!i.getContext)&&(a=i,i=void 0),i||(c=r()),a=t.getOptions(a);const u=t.getImageWidth(o.modules.size,a),f=c.getContext("2d"),d=f.createImageData(u,u);return t.qrToImageData(d.data,o,a),n(f,c,u),f.putImageData(d,0,0),c},e.renderToDataURL=function(o,i,l){let a=l;typeof a>"u"&&(!i||!i.getContext)&&(a=i,i=void 0),a||(a={});const c=e.render(o,i,a),u=a.type||"image/png",f=a.rendererOpts||{};return c.toDataURL(u,f.quality)}}(Cs)),Cs}var Ps={},ll;function Np(){if(ll)return Ps;ll=1;const e=tc();function t(s,o){const i=s.a/255,l=o+'="'+s.hex+'"';return i<1?l+" "+o+'-opacity="'+i.toFixed(2).slice(1)+'"':l}function n(s,o,i){let l=s+o;return typeof i<"u"&&(l+=" "+i),l}function r(s,o,i){let l="",a=0,c=!1,u=0;for(let f=0;f<s.length;f++){const d=Math.floor(f%o),h=Math.floor(f/o);!d&&!c&&(c=!0),s[f]?(u++,f>0&&d>0&&s[f-1]||(l+=c?n("M",d+i,.5+h+i):n("m",a,0),a=0,c=!1),d+1<o&&s[f+1]||(l+=n("h",u),u=0)):a++}return l}return Ps.render=function(o,i,l){const a=e.getOptions(i),c=o.modules.size,u=o.modules.data,f=c+a.margin*2,d=a.color.light.a?"<path "+t(a.color.light,"fill")+' d="M0 0h'+f+"v"+f+'H0z"/>':"",h="<path "+t(a.color.dark,"stroke")+' d="'+r(u,c,a.margin)+'"/>',m='viewBox="0 0 '+f+" "+f+'"',A='<svg xmlns="http://www.w3.org/2000/svg" '+(a.width?'width="'+a.width+'" height="'+a.width+'" ':"")+m+' shape-rendering="crispEdges">'+d+h+`</svg>
|
||
|
`;return typeof l=="function"&&l(null,A),A},Ps}var al;function Mp(){if(al)return Gt;al=1;const e=hp(),t=Op(),n=Ip(),r=Np();function s(o,i,l,a,c){const u=[].slice.call(arguments,1),f=u.length,d=typeof u[f-1]=="function";if(!d&&!e())throw new Error("Callback required as last argument");if(d){if(f<2)throw new Error("Too few arguments provided");f===2?(c=l,l=i,i=a=void 0):f===3&&(i.getContext&&typeof c>"u"?(c=a,a=void 0):(c=a,a=l,l=i,i=void 0))}else{if(f<1)throw new Error("Too few arguments provided");return f===1?(l=i,i=a=void 0):f===2&&!i.getContext&&(a=l,l=i,i=void 0),new Promise(function(h,m){try{const v=t.create(l,a);h(o(v,i,a))}catch(v){m(v)}})}try{const h=t.create(l,a);c(null,o(h,i,a))}catch(h){c(h)}}return Gt.create=t.create,Gt.toCanvas=s.bind(null,n.render),Gt.toDataURL=s.bind(null,n.renderToDataURL),Gt.toString=s.bind(null,function(o,i,l){return r.render(o,l)}),Gt}var Lp=Mp();const Bp=dp(Lp),$p={class:"qrcode-item"},Dp={class:"qrcode-wrapper"},kp={key:0,class:"loading-overlay"},Fp={key:1,class:"qrcode"},Up=["src","alt"],jp={class:"qrcode-info"},qp={class:"qr-url-hint"},Hp={class:"qrcode-controls"},Vp={class:"id-container"},Kp=["title"],zp=["title"],Wp=ht({__name:"QRCodeDisplay",props:{title:{type:String,required:!0},url:{type:String,required:!0},id:{type:String,required:!0}},setup(e){const t=e;me(null);const n=me(""),r=me(!0),s=i=>{try{const l=new URL(i);return i}catch{return i}};St(async()=>{try{r.value=!0,n.value=await Bp.toDataURL(t.url,{width:180,margin:1,errorCorrectionLevel:"H",color:{dark:"#000000",light:"#ffffff"}})}catch(i){console.error("生成二维码失败:",i),n.value=`https://api.qrserver.com/v1/create-qr-code/?size=180x180&data=${encodeURIComponent(t.url)}`}finally{r.value=!1}});const o=()=>{try{if(!n.value)throw new Error("二维码图片不存在");const i=document.createElement("a");i.download=`${t.title}-${t.id}.png`,i.href=n.value,document.body.appendChild(i),i.click(),document.body.removeChild(i)}catch(i){console.error("下载二维码失败:",i),alert("下载二维码失败,请稍后重试")}};return(i,l)=>(G(),X("div",$p,[R("div",Dp,[r.value?(G(),X("div",kp,l[0]||(l[0]=[R("div",{class:"spinner"},null,-1)]))):(G(),X("div",Fp,[R("img",{src:n.value,alt:e.title},null,8,Up)]))]),R("div",jp,[R("h4",null,we(e.title),1),R("div",qp,we(s(e.url)),1),R("div",Hp,[R("div",Vp,[l[1]||(l[1]=R("span",{class:"id-label"},"编号:",-1)),R("span",{class:"id-value",title:e.id},we(e.id),9,Kp)]),R("button",{onClick:o,class:"btn-download",title:`下载${e.title}二维码`},l[2]||(l[2]=[R("span",{class:"icon-download"},null,-1)]),8,zp)])])]))}}),Wt=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},xs=Wt(Wp,[["__scopeId","data-v-86ba8901"]]),Jp=["disabled"],Gp={key:0,class:"search-icon"},Yp={key:1,class:"loading-icon"},Qp={class:"search-results-content"},Xp=["onMousedown","onTouchend"],Zp={class:"result-content"},eg={class:"result-title"},tg={class:"result-type"},ng=ht({__name:"SearchBar",props:{isMobile:{type:Boolean,default:!1},isHomePage:{type:Boolean,default:!1}},setup(e){const t=e,n=Od(),r=me(""),s=me([]),o=me([]),i=me(!1),l=me(!1);async function a(){if(!r.value||r.value.trim()===""){o.value=[],i.value=!1;return}try{l.value=!0;const E=await up(r.value);E.code===200&&E.data?(s.value=E.data,o.value=E.data,i.value=!0):(o.value=[],i.value=!0)}catch(E){console.error("搜索失败:",E),o.value=[],i.value=!0}finally{l.value=!1}}function c(){a(),o.value.length===1&&u(o.value[0])}function u(E){let w="/";switch(E.pageType){case"law":w=`/show.html?Id=${E.formatId}`;break;case"case":w=`/showcase.html?Id=${E.formatId}`;break;case"form":w=`/table.html?Id=${E.formatId}`;break}r.value="",i.value=!1,n.push(w)}function f(){r.value.length>=2?a():r.value.length===0&&(o.value=[],i.value=!1)}function d(){r.value&&r.value.trim()!==""&&a(),t.isHomePage&&t.isMobile&&setTimeout(A,100)}function h(){setTimeout(()=>{i.value=!1},200)}function m(E){E.key==="Enter"&&c()}function v(){const E=document.querySelector(".search-input");E&&E.blur()}function A(){const E=document.querySelector(".search-bar");E&&E.getBoundingClientRect
|