Files
HJGL_DS/HJGL_DS/FineUIPro.Web/HJGL/JoinMarking/assets/styles-G88NglGL.js
T

25 lines
97 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import{p as e}from"./pdfjs-DXqArq6h.js";import{P as t,d as n,r as o,a as l,b as s}from"./pdf-lib-AfLQbX6n.js";
/**
* @vue/shared v3.5.26
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/
function i(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return e=>e in t}!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))t(e);new MutationObserver(e=>{for(const n of e)if("childList"===n.type)for(const e of n.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&t(e)}).observe(document,{childList:!0,subtree:!0})}function t(e){if(e.ep)return;e.ep=!0;const t=function(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?t.credentials="include":"anonymous"===e.crossOrigin?t.credentials="omit":t.credentials="same-origin",t}(e);fetch(e.href,t)}}();const r={},a=[],c=()=>{},u=()=>!1,f=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),d=e=>e.startsWith("onUpdate:"),p=Object.assign,h=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},v=Object.prototype.hasOwnProperty,g=(e,t)=>v.call(e,t),y=Array.isArray,m=e=>"[object Map]"===O(e),x=e=>"[object Set]"===O(e),b=e=>"[object Date]"===O(e),w=e=>"function"==typeof e,_=e=>"string"==typeof e,S=e=>"symbol"==typeof e,k=e=>null!==e&&"object"==typeof e,M=e=>(k(e)||w(e))&&w(e.then)&&w(e.catch),C=Object.prototype.toString,O=e=>C.call(e),P=e=>"[object Object]"===O(e),E=e=>_(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,T=i(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),A=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},L=/-\w/g,R=A(e=>e.replace(L,e=>e.slice(1).toUpperCase())),j=/\B([A-Z])/g,I=A(e=>e.replace(j,"-$1").toLowerCase()),D=A(e=>e.charAt(0).toUpperCase()+e.slice(1)),F=A(e=>e?`on${D(e)}`:""),V=(e,t)=>!Object.is(e,t),$=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},N=(e,t,n,o=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:n})},U=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let z;const B=()=>z||(z="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{});function W(e){if(y(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],l=_(o)?X(o):W(o);if(l)for(const e in l)t[e]=l[e]}return t}if(_(e)||k(e))return e}const J=/;(?![^(]*\))/g,H=/:([^]+)/,Y=/\/\*[^]*?\*\//g;function X(e){const t={};return e.replace(Y,"").split(J).forEach(e=>{if(e){const n=e.split(H);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function K(e){let t="";if(_(e))t=e;else if(y(e))for(let n=0;n<e.length;n++){const o=K(e[n]);o&&(t+=o+" ")}else if(k(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const q=i("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function G(e){return!!e||""===e}function Z(e,t){if(e===t)return!0;let n=b(e),o=b(t);if(n||o)return!(!n||!o)&&e.getTime()===t.getTime();if(n=S(e),o=S(t),n||o)return e===t;if(n=y(e),o=y(t),n||o)return!(!n||!o)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let o=0;n&&o<e.length;o++)n=Z(e[o],t[o]);return n}(e,t);if(n=k(e),o=k(t),n||o){if(!n||!o)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const o=e.hasOwnProperty(n),l=t.hasOwnProperty(n);if(o&&!l||!o&&l||!Z(e[n],t[n]))return!1}}return String(e)===String(t)}function Q(e,t){return e.findIndex(e=>Z(e,t))}const ee=e=>!(!e||!0!==e.__v_isRef),te=e=>_(e)?e:null==e?"":y(e)||k(e)&&(e.toString===C||!w(e.toString))?ee(e)?te(e.value):JSON.stringify(e,ne,2):String(e),ne=(e,t)=>ee(t)?ne(e,t.value):m(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],o)=>(e[oe(t,o)+" =>"]=n,e),{})}:x(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>oe(e))}:S(t)?oe(t):!k(t)||y(t)||P(t)?t:String(t),oe=(e,t="")=>{var n;return S(e)?`Symbol(${null!=(n=e.description)?n:t})`:e};
/**
* @vue/reactivity v3.5.26
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/
let le,se;class ie{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=le,!e&&le&&(this.index=(le.scopes||(le.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){let e,t;if(this._isPaused=!0,this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].pause();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){let e,t;if(this._isPaused=!1,this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].resume();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].resume()}}run(e){if(this._active){const t=le;try{return le=this,e()}finally{le=t}}}on(){1===++this._on&&(this.prevScope=le,le=this)}off(){this._on>0&&0===--this._on&&(le=this.prevScope,this.prevScope=void 0)}stop(e){if(this._active){let t,n;for(this._active=!1,t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(this.effects.length=0,t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0}}}const re=new WeakSet;class ae{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,le&&le.active&&le.effects.push(this)}pause(){this.flags|=64}resume(){64&this.flags&&(this.flags&=-65,re.has(this)&&(re.delete(this),this.trigger()))}notify(){2&this.flags&&!(32&this.flags)||8&this.flags||de(this)}run(){if(!(1&this.flags))return this.fn();this.flags|=2,Me(this),ve(this);const e=se,t=we;se=this,we=!0;try{return this.fn()}finally{ge(this),se=e,we=t,this.flags&=-3}}stop(){if(1&this.flags){for(let e=this.deps;e;e=e.nextDep)xe(e);this.deps=this.depsTail=void 0,Me(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){64&this.flags?re.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){ye(this)&&this.run()}get dirty(){return ye(this)}}let ce,ue,fe=0;function de(e,t=!1){if(e.flags|=8,t)return e.next=ue,void(ue=e);e.next=ce,ce=e}function pe(){fe++}function he(){if(--fe>0)return;if(ue){let e=ue;for(ue=void 0;e;){const t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;ce;){let n=ce;for(ce=void 0;n;){const o=n.next;if(n.next=void 0,n.flags&=-9,1&n.flags)try{n.trigger()}catch(t){e||(e=t)}n=o}}if(e)throw e}function ve(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function ge(e){let t,n=e.depsTail,o=n;for(;o;){const e=o.prevDep;-1===o.version?(o===n&&(n=e),xe(o),be(o)):t=o,o.dep.activeLink=o.prevActiveLink,o.prevActiveLink=void 0,o=e}e.deps=t,e.depsTail=n}function ye(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(me(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function me(e){if(4&e.flags&&!(16&e.flags))return;if(e.flags&=-17,e.globalVersion===Ce)return;if(e.globalVersion=Ce,!e.isSSR&&128&e.flags&&(!e.deps&&!e._dirty||!ye(e)))return;e.flags|=2;const t=e.dep,n=se,o=we;se=e,we=!0;try{ve(e);const n=e.fn(e._value);(0===t.version||V(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(l){throw t.version++,l}finally{se=n,we=o,ge(e),e.flags&=-3}}function xe(e,t=!1){const{dep:n,prevSub:o,nextSub:l}=e;if(o&&(o.nextSub=l,e.prevSub=void 0),l&&(l.prevSub=o,e.nextSub=void 0),n.subs===e&&(n.subs=o,!o&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)xe(e,!0)}t||--n.sc||!n.map||n.map.delete(n.key)}function be(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 _e=[];function Se(){_e.push(we),we=!1}function ke(){const e=_e.pop();we=void 0===e||e}function Me(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const e=se;se=void 0;try{t()}finally{se=e}}}let Ce=0;class Oe{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Pe{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!se||!we||se===this.computed)return;let t=this.activeLink;if(void 0===t||t.sub!==se)t=this.activeLink=new Oe(se,this),se.deps?(t.prevDep=se.depsTail,se.depsTail.nextDep=t,se.depsTail=t):se.deps=se.depsTail=t,Ee(t);else if(-1===t.version&&(t.version=this.version,t.nextDep)){const e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=se.depsTail,t.nextDep=void 0,se.depsTail.nextDep=t,se.depsTail=t,se.deps===t&&(se.deps=e)}return t}trigger(e){this.version++,Ce++,this.notify(e)}notify(e){pe();try{0;for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{he()}}}function Ee(e){if(e.dep.sc++,4&e.sub.flags){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)Ee(e)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Te=new WeakMap,Ae=Symbol(""),Le=Symbol(""),Re=Symbol("");function je(e,t,n){if(we&&se){let t=Te.get(e);t||Te.set(e,t=new Map);let o=t.get(n);o||(t.set(n,o=new Pe),o.map=t,o.key=n),o.track()}}function Ie(e,t,n,o,l,s){const i=Te.get(e);if(!i)return void Ce++;const r=e=>{e&&e.trigger()};if(pe(),"clear"===t)i.forEach(r);else{const l=y(e),s=l&&E(n);if(l&&"length"===n){const e=Number(o);i.forEach((t,n)=>{("length"===n||n===Re||!S(n)&&n>=e)&&r(t)})}else switch((void 0!==n||i.has(void 0))&&r(i.get(n)),s&&r(i.get(Re)),t){case"add":l?s&&r(i.get("length")):(r(i.get(Ae)),m(e)&&r(i.get(Le)));break;case"delete":l||(r(i.get(Ae)),m(e)&&r(i.get(Le)));break;case"set":m(e)&&r(i.get(Ae))}}he()}function De(e){const t=wt(e);return t===e?t:(je(t,0,Re),xt(e)?t:t.map(_t))}function Fe(e){return je(e=wt(e),0,Re),e}function Ve(e,t){return mt(e)?yt(e)?St(_t(t)):St(t):_t(t)}const $e={__proto__:null,[Symbol.iterator](){return Ne(this,Symbol.iterator,e=>Ve(this,e))},concat(...e){return De(this).concat(...e.map(e=>y(e)?De(e):e))},entries(){return Ne(this,"entries",e=>(e[1]=Ve(this,e[1]),e))},every(e,t){return ze(this,"every",e,t,void 0,arguments)},filter(e,t){return ze(this,"filter",e,t,e=>e.map(e=>Ve(this,e)),arguments)},find(e,t){return ze(this,"find",e,t,e=>Ve(this,e),arguments)},findIndex(e,t){return ze(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return ze(this,"findLast",e,t,e=>Ve(this,e),arguments)},findLastIndex(e,t){return ze(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return ze(this,"forEach",e,t,void 0,arguments)},includes(...e){return We(this,"includes",e)},indexOf(...e){return We(this,"indexOf",e)},join(e){return De(this).join(e)},lastIndexOf(...e){return We(this,"lastIndexOf",e)},map(e,t){return ze(this,"map",e,t,void 0,arguments)},pop(){return Je(this,"pop")},push(...e){return Je(this,"push",e)},reduce(e,...t){return Be(this,"reduce",e,t)},reduceRight(e,...t){return Be(this,"reduceRight",e,t)},shift(){return Je(this,"shift")},some(e,t){return ze(this,"some",e,t,void 0,arguments)},splice(...e){return Je(this,"splice",e)},toReversed(){return De(this).toReversed()},toSorted(e){return De(this).toSorted(e)},toSpliced(...e){return De(this).toSpliced(...e)},unshift(...e){return Je(this,"unshift",e)},values(){return Ne(this,"values",e=>Ve(this,e))}};function Ne(e,t,n){const o=Fe(e),l=o[t]();return o===e||xt(e)||(l._next=l.next,l.next=()=>{const e=l._next();return e.done||(e.value=n(e.value)),e}),l}const Ue=Array.prototype;function ze(e,t,n,o,l,s){const i=Fe(e),r=i!==e&&!xt(e),a=i[t];if(a!==Ue[t]){const t=a.apply(e,s);return r?_t(t):t}let c=n;i!==e&&(r?c=function(t,o){return n.call(this,Ve(e,t),o,e)}:n.length>2&&(c=function(t,o){return n.call(this,t,o,e)}));const u=a.call(i,c,o);return r&&l?l(u):u}function Be(e,t,n,o){const l=Fe(e);let s=n;return l!==e&&(xt(e)?n.length>3&&(s=function(t,o,l){return n.call(this,t,o,l,e)}):s=function(t,o,l){return n.call(this,t,Ve(e,o),l,e)}),l[t](s,...o)}function We(e,t,n){const o=wt(e);je(o,0,Re);const l=o[t](...n);return-1!==l&&!1!==l||!bt(n[0])?l:(n[0]=wt(n[0]),o[t](...n))}function Je(e,t,n=[]){Se(),pe();const o=wt(e)[t].apply(e,n);return he(),ke(),o}const He=i("__proto__,__v_isRef,__isVue"),Ye=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(S));function Xe(e){S(e)||(e=String(e));const t=wt(this);return je(t,0,e),t.hasOwnProperty(e)}class Ke{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if("__v_skip"===t)return e.__v_skip;const o=this._isReadonly,l=this._isShallow;if("__v_isReactive"===t)return!o;if("__v_isReadonly"===t)return o;if("__v_isShallow"===t)return l;if("__v_raw"===t)return n===(o?l?dt:ft:l?ut:ct).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const s=y(e);if(!o){let e;if(s&&(e=$e[t]))return e;if("hasOwnProperty"===t)return Xe}const i=Reflect.get(e,t,kt(e)?e:n);if(S(t)?Ye.has(t):He(t))return i;if(o||je(e,0,t),l)return i;if(kt(i)){const e=s&&E(t)?i:i.value;return o&&k(e)?vt(e):e}return k(i)?o?vt(i):ht(i):i}}class qe extends Ke{constructor(e=!1){super(!1,e)}set(e,t,n,o){let l=e[t];const s=y(e)&&E(t);if(!this._isShallow){const e=mt(l);if(xt(n)||mt(n)||(l=wt(l),n=wt(n)),!s&&kt(l)&&!kt(n))return e||(l.value=n),!0}const i=s?Number(t)<e.length:g(e,t),r=Reflect.set(e,t,n,kt(e)?e:o);return e===wt(o)&&(i?V(n,l)&&Ie(e,"set",t,n):Ie(e,"add",t,n)),r}deleteProperty(e,t){const n=g(e,t);e[t];const o=Reflect.deleteProperty(e,t);return o&&n&&Ie(e,"delete",t,void 0),o}has(e,t){const n=Reflect.has(e,t);return S(t)&&Ye.has(t)||je(e,0,t),n}ownKeys(e){return je(e,0,y(e)?"length":Ae),Reflect.ownKeys(e)}}class Ge extends Ke{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}const Ze=new qe,Qe=new Ge,et=new qe(!0),tt=e=>e,nt=e=>Reflect.getPrototypeOf(e);function ot(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function lt(e,t){const n={get(n){const o=this.__v_raw,l=wt(o),s=wt(n);e||(V(n,s)&&je(l,0,n),je(l,0,s));const{has:i}=nt(l),r=t?tt:e?St:_t;return i.call(l,n)?r(o.get(n)):i.call(l,s)?r(o.get(s)):void(o!==l&&o.get(n))},get size(){const t=this.__v_raw;return!e&&je(wt(t),0,Ae),t.size},has(t){const n=this.__v_raw,o=wt(n),l=wt(t);return e||(V(t,l)&&je(o,0,t),je(o,0,l)),t===l?n.has(t):n.has(t)||n.has(l)},forEach(n,o){const l=this,s=l.__v_raw,i=wt(s),r=t?tt:e?St:_t;return!e&&je(i,0,Ae),s.forEach((e,t)=>n.call(o,r(e),r(t),l))}};p(n,e?{add:ot("add"),set:ot("set"),delete:ot("delete"),clear:ot("clear")}:{add(e){t||xt(e)||mt(e)||(e=wt(e));const n=wt(this);return nt(n).has.call(n,e)||(n.add(e),Ie(n,"add",e,e)),this},set(e,n){t||xt(n)||mt(n)||(n=wt(n));const o=wt(this),{has:l,get:s}=nt(o);let i=l.call(o,e);i||(e=wt(e),i=l.call(o,e));const r=s.call(o,e);return o.set(e,n),i?V(n,r)&&Ie(o,"set",e,n):Ie(o,"add",e,n),this},delete(e){const t=wt(this),{has:n,get:o}=nt(t);let l=n.call(t,e);l||(e=wt(e),l=n.call(t,e)),o&&o.call(t,e);const s=t.delete(e);return l&&Ie(t,"delete",e,void 0),s},clear(){const e=wt(this),t=0!==e.size,n=e.clear();return t&&Ie(e,"clear",void 0,void 0),n}});return["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=function(e,t,n){return function(...o){const l=this.__v_raw,s=wt(l),i=m(s),r="entries"===e||e===Symbol.iterator&&i,a="keys"===e&&i,c=l[e](...o),u=n?tt:t?St:_t;return!t&&je(s,0,a?Le:Ae),{next(){const{value:e,done:t}=c.next();return t?{value:e,done:t}:{value:r?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}(o,e,t)}),n}function st(e,t){const n=lt(e,t);return(t,o,l)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(g(n,o)&&o in t?n:t,o,l)}const it={get:st(!1,!1)},rt={get:st(!1,!0)},at={get:st(!0,!1)},ct=new WeakMap,ut=new WeakMap,ft=new WeakMap,dt=new WeakMap;function pt(e){return e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((e=>O(e).slice(8,-1))(e))}function ht(e){return mt(e)?e:gt(e,!1,Ze,it,ct)}function vt(e){return gt(e,!0,Qe,at,ft)}function gt(e,t,n,o,l){if(!k(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const s=pt(e);if(0===s)return e;const i=l.get(e);if(i)return i;const r=new Proxy(e,2===s?o:n);return l.set(e,r),r}function yt(e){return mt(e)?yt(e.__v_raw):!(!e||!e.__v_isReactive)}function mt(e){return!(!e||!e.__v_isReadonly)}function xt(e){return!(!e||!e.__v_isShallow)}function bt(e){return!!e&&!!e.__v_raw}function wt(e){const t=e&&e.__v_raw;return t?wt(t):e}const _t=e=>k(e)?ht(e):e,St=e=>k(e)?vt(e):e;function kt(e){return!!e&&!0===e.__v_isRef}function Mt(e){return Ot(e,!1)}function Ct(e){return Ot(e,!0)}function Ot(e,t){return kt(e)?e:new Pt(e,t)}class Pt{constructor(e,t){this.dep=new Pe,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:wt(e),this._value=t?e:_t(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){const t=this._rawValue,n=this.__v_isShallow||xt(e)||mt(e);e=n?e:wt(e),V(e,t)&&(this._rawValue=e,this._value=n?e:_t(e),this.dep.trigger())}}const Et={get:(e,t,n)=>{return"__v_raw"===t?e:kt(o=Reflect.get(e,t,n))?o.value:o;var o},set:(e,t,n,o)=>{const l=e[t];return kt(l)&&!kt(n)?(l.value=n,!0):Reflect.set(e,t,n,o)}};function Tt(e){return yt(e)?e:new Proxy(e,Et)}class At{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new Pe(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Ce-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(8&this.flags)&&se!==this)return de(this,!0),!0}get value(){const e=this.dep.track();return me(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}const Lt={},Rt=new WeakMap;let jt;function It(e,t,n=r){const{immediate:o,deep:l,once:s,scheduler:i,augmentJob:a,call:u}=n,f=e=>l?e:xt(e)||!1===l||0===l?Dt(e,1):Dt(e);let d,p,v,g,m=!1,x=!1;if(kt(e)?(p=()=>e.value,m=xt(e)):yt(e)?(p=()=>f(e),m=!0):y(e)?(x=!0,m=e.some(e=>yt(e)||xt(e)),p=()=>e.map(e=>kt(e)?e.value:yt(e)?f(e):w(e)?u?u(e,2):e():void 0)):p=w(e)?t?u?()=>u(e,2):e:()=>{if(v){Se();try{v()}finally{ke()}}const t=jt;jt=d;try{return u?u(e,3,[g]):e(g)}finally{jt=t}}:c,t&&l){const e=p,t=!0===l?1/0:l;p=()=>Dt(e(),t)}const b=le,_=()=>{d.stop(),b&&b.active&&h(b.effects,d)};if(s&&t){const e=t;t=(...t)=>{e(...t),_()}}let S=x?new Array(e.length).fill(Lt):Lt;const k=e=>{if(1&d.flags&&(d.dirty||e))if(t){const e=d.run();if(l||m||(x?e.some((e,t)=>V(e,S[t])):V(e,S))){v&&v();const n=jt;jt=d;try{const n=[e,S===Lt?void 0:x&&S[0]===Lt?[]:S,g];S=e,u?u(t,3,n):t(...n)}finally{jt=n}}}else d.run()};return a&&a(k),d=new ae(p),d.scheduler=i?()=>i(k,!1):k,g=e=>function(e,t=!1,n=jt){if(n){let t=Rt.get(n);t||Rt.set(n,t=[]),t.push(e)}}(e,!1,d),v=d.onStop=()=>{const e=Rt.get(d);if(e){if(u)u(e,4);else for(const t of e)t();Rt.delete(d)}},t?o?k(!0):S=d.run():i?i(k.bind(null,!0),!0):d.run(),_.pause=d.pause.bind(d),_.resume=d.resume.bind(d),_.stop=_,_}function Dt(e,t=1/0,n){if(t<=0||!k(e)||e.__v_skip)return e;if(((n=n||new Map).get(e)||0)>=t)return e;if(n.set(e,t),t--,kt(e))Dt(e.value,t,n);else if(y(e))for(let o=0;o<e.length;o++)Dt(e[o],t,n);else if(x(e)||m(e))e.forEach(e=>{Dt(e,t,n)});else if(P(e)){for(const o in e)Dt(e[o],t,n);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&Dt(e[o],t,n)}return e}
/**
* @vue/runtime-core v3.5.26
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function Ft(e,t,n,o){try{return o?e(...o):e()}catch(l){$t(l,t,n)}}function Vt(e,t,n,o){if(w(e)){const l=Ft(e,t,n,o);return l&&M(l)&&l.catch(e=>{$t(e,t,n)}),l}if(y(e)){const l=[];for(let s=0;s<e.length;s++)l.push(Vt(e[s],t,n,o));return l}}function $t(e,t,n,o=!0){t&&t.vnode;const{errorHandler:l,throwUnhandledErrorInProduction:s}=t&&t.appContext.config||r;if(t){let o=t.parent;const s=t.proxy,i=`https://vuejs.org/error-reference/#runtime-${n}`;for(;o;){const t=o.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,s,i))return;o=o.parent}if(l)return Se(),Ft(l,null,10,[e,s,i]),void ke()}!function(e,t,n,o=!0,l=!1){if(l)throw e;console.error(e)}(e,0,0,o,s)}const Nt=[];let Ut=-1;const zt=[];let Bt=null,Wt=0;const Jt=Promise.resolve();let Ht=null;function Yt(e){const t=Ht||Jt;return e?t.then(this?e.bind(this):e):t}function Xt(e){if(!(1&e.flags)){const t=Zt(e),n=Nt[Nt.length-1];!n||!(2&e.flags)&&t>=Zt(n)?Nt.push(e):Nt.splice(function(e){let t=Ut+1,n=Nt.length;for(;t<n;){const o=t+n>>>1,l=Nt[o],s=Zt(l);s<e||s===e&&2&l.flags?t=o+1:n=o}return t}(t),0,e),e.flags|=1,Kt()}}function Kt(){Ht||(Ht=Jt.then(Qt))}function qt(e,t,n=Ut+1){for(;n<Nt.length;n++){const t=Nt[n];if(t&&2&t.flags){if(e&&t.id!==e.uid)continue;Nt.splice(n,1),n--,4&t.flags&&(t.flags&=-2),t(),4&t.flags||(t.flags&=-2)}}}function Gt(e){if(zt.length){const e=[...new Set(zt)].sort((e,t)=>Zt(e)-Zt(t));if(zt.length=0,Bt)return void Bt.push(...e);for(Bt=e,Wt=0;Wt<Bt.length;Wt++){const e=Bt[Wt];4&e.flags&&(e.flags&=-2),8&e.flags||e(),e.flags&=-2}Bt=null,Wt=0}}const Zt=e=>null==e.id?2&e.flags?-1:1/0:e.id;function Qt(e){try{for(Ut=0;Ut<Nt.length;Ut++){const e=Nt[Ut];!e||8&e.flags||(4&e.flags&&(e.flags&=-2),Ft(e,e.i,e.i?15:14),4&e.flags||(e.flags&=-2))}}finally{for(;Ut<Nt.length;Ut++){const e=Nt[Ut];e&&(e.flags&=-2)}Ut=-1,Nt.length=0,Gt(),Ht=null,(Nt.length||zt.length)&&Qt()}}let en=null,tn=null;function nn(e){const t=en;return en=e,tn=e&&e.type.__scopeId||null,t}function on(e,t){if(null===en)return e;const n=Sl(en),o=e.dirs||(e.dirs=[]);for(let l=0;l<t.length;l++){let[e,s,i,a=r]=t[l];e&&(w(e)&&(e={mounted:e,updated:e}),e.deep&&Dt(s),o.push({dir:e,instance:n,value:s,oldValue:void 0,arg:i,modifiers:a}))}return e}function ln(e,t,n,o){const l=e.dirs,s=t&&t.dirs;for(let i=0;i<l.length;i++){const r=l[i];s&&(r.oldValue=s[i].value);let a=r.dir[o];a&&(Se(),Vt(a,n,8,[e.el,r,e,t]),ke())}}function sn(e,t,n=!1){const o=pl();if(o||so){let l=so?so._context.provides:o?null==o.parent||o.ce?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:void 0;if(l&&e in l)return l[e];if(arguments.length>1)return n&&w(t)?t.call(o&&o.proxy):t}}const rn=Symbol.for("v-scx");function an(e,t,n){return cn(e,t,n)}function cn(e,t,n=r){const{immediate:o,deep:l,flush:s,once:i}=n,a=p({},n),u=t&&o||!t&&"post"!==s;let f;if(xl)if("sync"===s){const e=sn(rn);f=e.__watcherHandles||(e.__watcherHandles=[])}else if(!u){const e=()=>{};return e.stop=c,e.resume=c,e.pause=c,e}const d=dl;a.call=(e,t,n)=>Vt(e,d,t,n);let h=!1;"post"===s?a.scheduler=e=>{To(e,d&&d.suspense)}:"sync"!==s&&(h=!0,a.scheduler=(e,t)=>{t?e():Xt(e)}),a.augmentJob=e=>{t&&(e.flags|=4),h&&(e.flags|=2,d&&(e.id=d.uid,e.i=d))};const v=It(e,t,a);return xl&&(f?f.push(v):u&&v()),v}function un(e,t,n){const o=this.proxy,l=_(e)?e.includes(".")?fn(o,e):()=>o[e]:e.bind(o,o);let s;w(t)?s=t:(s=t.handler,n=t);const i=gl(this),r=cn(l,s.bind(o),n);return i(),r}function fn(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}const dn=Symbol("_vte"),pn=Symbol("_leaveCb");function hn(e,t){6&e.shapeFlag&&e.component?(e.transition=t,hn(e.component.subTree,t)):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function vn(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const gn=new WeakMap;function yn(e,t,n,o,l=!1){if(y(e))return void e.forEach((e,s)=>yn(e,t&&(y(t)?t[s]:t),n,o,l));if(xn(o)&&!l)return void(512&o.shapeFlag&&o.type.__asyncResolved&&o.component.subTree.component&&yn(e,t,n,o.component.subTree));const s=4&o.shapeFlag?Sl(o.component):o.el,i=l?null:s,{i:a,r:c}=e,f=t&&t.r,d=a.refs===r?a.refs={}:a.refs,p=a.setupState,v=wt(p),m=p===r?u:e=>g(v,e);if(null!=f&&f!==c)if(mn(t),_(f))d[f]=null,m(f)&&(p[f]=null);else if(kt(f)){f.value=null;const e=t;e.k&&(d[e.k]=null)}if(w(c))Ft(c,a,12,[i,d]);else{const t=_(c),o=kt(c);if(t||o){const r=()=>{if(e.f){const n=t?m(c)?p[c]:d[c]:c.value;if(l)y(n)&&h(n,s);else if(y(n))n.includes(s)||n.push(s);else if(t)d[c]=[s],m(c)&&(p[c]=d[c]);else{const t=[s];c.value=t,e.k&&(d[e.k]=t)}}else t?(d[c]=i,m(c)&&(p[c]=i)):o&&(c.value=i,e.k&&(d[e.k]=i))};if(i){const t=()=>{r(),gn.delete(e)};t.id=-1,gn.set(e,t),To(t,n)}else mn(e),r()}}}function mn(e){const t=gn.get(e);t&&(t.flags|=8,gn.delete(e))}B().requestIdleCallback,B().cancelIdleCallback;const xn=e=>!!e.type.__asyncLoader,bn=e=>e.type.__isKeepAlive;function wn(e,t){Sn(e,"a",t)}function _n(e,t){Sn(e,"da",t)}function Sn(e,t,n=dl){const o=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(Mn(t,o,n),n){let e=n.parent;for(;e&&e.parent;)bn(e.parent.vnode)&&kn(o,t,n,e),e=e.parent}}function kn(e,t,n,o){const l=Mn(t,e,o,!0);Ln(()=>{h(o[t],l)},n)}function Mn(e,t,n=dl,o=!1){if(n){const l=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...o)=>{Se();const l=gl(n),s=Vt(t,n,e,o);return l(),ke(),s});return o?l.unshift(s):l.push(s),s}}const Cn=e=>(t,n=dl)=>{xl&&"sp"!==e||Mn(e,(...e)=>t(...e),n)},On=Cn("bm"),Pn=Cn("m"),En=Cn("bu"),Tn=Cn("u"),An=Cn("bum"),Ln=Cn("um"),Rn=Cn("sp"),jn=Cn("rtg"),In=Cn("rtc");function Dn(e,t=dl){Mn("ec",e,t)}const Fn=Symbol.for("v-ndc");function Vn(e,t,n,o){let l;const s=n,i=y(e);if(i||_(e)){let n=!1,o=!1;i&&yt(e)&&(n=!xt(e),o=mt(e),e=Fe(e)),l=new Array(e.length);for(let i=0,r=e.length;i<r;i++)l[i]=t(n?o?St(_t(e[i])):_t(e[i]):e[i],i,void 0,s)}else if("number"==typeof e){l=new Array(e);for(let n=0;n<e;n++)l[n]=t(n+1,n,void 0,s)}else if(k(e))if(e[Symbol.iterator])l=Array.from(e,(e,n)=>t(e,n,void 0,s));else{const n=Object.keys(e);l=new Array(n.length);for(let o=0,i=n.length;o<i;o++){const i=n[o];l[o]=t(e[i],i,o,s)}}else l=[];return l}const $n=e=>e?ml(e)?Sl(e):$n(e.parent):null,Nn=p(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>$n(e.parent),$root:e=>$n(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Xn(e),$forceUpdate:e=>e.f||(e.f=()=>{Xt(e.update)}),$nextTick:e=>e.n||(e.n=Yt.bind(e.proxy)),$watch:e=>un.bind(e)}),Un=(e,t)=>e!==r&&!e.__isScriptSetup&&g(e,t),zn={get({_:e},t){if("__v_skip"===t)return!0;const{ctx:n,setupState:o,data:l,props:s,accessCache:i,type:a,appContext:c}=e;if("$"!==t[0]){const e=i[t];if(void 0!==e)switch(e){case 1:return o[t];case 2:return l[t];case 4:return n[t];case 3:return s[t]}else{if(Un(o,t))return i[t]=1,o[t];if(l!==r&&g(l,t))return i[t]=2,l[t];if(g(s,t))return i[t]=3,s[t];if(n!==r&&g(n,t))return i[t]=4,n[t];Wn&&(i[t]=0)}}const u=Nn[t];let f,d;return u?("$attrs"===t&&je(e.attrs,0,""),u(e)):(f=a.__cssModules)&&(f=f[t])?f:n!==r&&g(n,t)?(i[t]=4,n[t]):(d=c.config.globalProperties,g(d,t)?d[t]:void 0)},set({_:e},t,n){const{data:o,setupState:l,ctx:s}=e;return Un(l,t)?(l[t]=n,!0):o!==r&&g(o,t)?(o[t]=n,!0):!g(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(s[t]=n,!0))},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:l,props:s,type:i}},a){let c;return!!(n[a]||e!==r&&"$"!==a[0]&&g(e,a)||Un(t,a)||g(s,a)||g(o,a)||g(Nn,a)||g(l.config.globalProperties,a)||(c=i.__cssModules)&&c[a])},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:g(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Bn(e){return y(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}let Wn=!0;function Jn(e){const t=Xn(e),n=e.proxy,o=e.ctx;Wn=!1,t.beforeCreate&&Hn(t.beforeCreate,e,"bc");const{data:l,computed:s,methods:i,watch:r,provide:a,inject:u,created:f,beforeMount:d,mounted:p,beforeUpdate:h,updated:v,activated:g,deactivated:m,beforeDestroy:x,beforeUnmount:b,destroyed:_,unmounted:S,render:M,renderTracked:C,renderTriggered:O,errorCaptured:P,serverPrefetch:E,expose:T,inheritAttrs:A,components:L,directives:R,filters:j}=t;if(u&&function(e,t){y(e)&&(e=Zn(e));for(const n in e){const o=e[n];let l;l=k(o)?"default"in o?sn(o.from||n,o.default,!0):sn(o.from||n):sn(o),kt(l)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>l.value,set:e=>l.value=e}):t[n]=l}}(u,o,null),i)for(const c in i){const e=i[c];w(e)&&(o[c]=e.bind(n))}if(l){const t=l.call(n,n);k(t)&&(e.data=ht(t))}if(Wn=!0,s)for(const y in s){const e=s[y],t=w(e)?e.bind(n,n):w(e.get)?e.get.bind(n,n):c,l=!w(e)&&w(e.set)?e.set.bind(n):c,i=kl({get:t,set:l});Object.defineProperty(o,y,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e})}if(r)for(const c in r)Yn(r[c],o,n,c);if(a){const e=w(a)?a.call(n):a;Reflect.ownKeys(e).forEach(t=>{!function(e,t){if(dl){let n=dl.provides;const o=dl.parent&&dl.parent.provides;o===n&&(n=dl.provides=Object.create(o)),n[e]=t}}(t,e[t])})}function I(e,t){y(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(f&&Hn(f,e,"c"),I(On,d),I(Pn,p),I(En,h),I(Tn,v),I(wn,g),I(_n,m),I(Dn,P),I(In,C),I(jn,O),I(An,b),I(Ln,S),I(Rn,E),y(T))if(T.length){const t=e.exposed||(e.exposed={});T.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||(e.exposed={});M&&e.render===c&&(e.render=M),null!=A&&(e.inheritAttrs=A),L&&(e.components=L),R&&(e.directives=R),E&&vn(e)}function Hn(e,t,n){Vt(y(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function Yn(e,t,n,o){let l=o.includes(".")?fn(n,o):()=>n[o];if(_(e)){const n=t[e];w(n)&&an(l,n)}else if(w(e))an(l,e.bind(n));else if(k(e))if(y(e))e.forEach(e=>Yn(e,t,n,o));else{const o=w(e.handler)?e.handler.bind(n):t[e.handler];w(o)&&an(l,o,e)}}function Xn(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:l,optionsCache:s,config:{optionMergeStrategies:i}}=e.appContext,r=s.get(t);let a;return r?a=r:l.length||n||o?(a={},l.length&&l.forEach(e=>Kn(a,e,i,!0)),Kn(a,t,i)):a=t,k(t)&&s.set(t,a),a}function Kn(e,t,n,o=!1){const{mixins:l,extends:s}=t;s&&Kn(e,s,n,!0),l&&l.forEach(t=>Kn(e,t,n,!0));for(const i in t)if(o&&"expose"===i);else{const o=qn[i]||n&&n[i];e[i]=o?o(e[i],t[i]):t[i]}return e}const qn={data:Gn,props:to,emits:to,methods:eo,computed:eo,beforeCreate:Qn,created:Qn,beforeMount:Qn,mounted:Qn,beforeUpdate:Qn,updated:Qn,beforeDestroy:Qn,beforeUnmount:Qn,destroyed:Qn,unmounted:Qn,activated:Qn,deactivated:Qn,errorCaptured:Qn,serverPrefetch:Qn,components:eo,directives:eo,watch:function(e,t){if(!e)return t;if(!t)return e;const n=p(Object.create(null),e);for(const o in t)n[o]=Qn(e[o],t[o]);return n},provide:Gn,inject:function(e,t){return eo(Zn(e),Zn(t))}};function Gn(e,t){return t?e?function(){return p(w(e)?e.call(this,this):e,w(t)?t.call(this,this):t)}:t:e}function Zn(e){if(y(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Qn(e,t){return e?[...new Set([].concat(e,t))]:t}function eo(e,t){return e?p(Object.create(null),e,t):t}function to(e,t){return e?y(e)&&y(t)?[...new Set([...e,...t])]:p(Object.create(null),Bn(e),Bn(null!=t?t:{})):t}function no(){return{app:null,config:{isNativeTag:u,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let oo=0;function lo(e,t){return function(t,n=null){w(t)||(t=p({},t)),null==n||k(n)||(n=null);const o=no(),l=new WeakSet,s=[];let i=!1;const r=o.app={_uid:oo++,_component:t,_props:n,_container:null,_context:o,_instance:null,version:Ml,get config(){return o.config},set config(e){},use:(e,...t)=>(l.has(e)||(e&&w(e.install)?(l.add(e),e.install(r,...t)):w(e)&&(l.add(e),e(r,...t))),r),mixin:e=>(o.mixins.includes(e)||o.mixins.push(e),r),component:(e,t)=>t?(o.components[e]=t,r):o.components[e],directive:(e,t)=>t?(o.directives[e]=t,r):o.directives[e],mount(l,s,a){if(!i){const s=r._ceVNode||nl(t,n);return s.appContext=o,!0===a?a="svg":!1===a&&(a=void 0),e(s,l,a),i=!0,r._container=l,l.__vue_app__=r,Sl(s.component)}},onUnmount(e){s.push(e)},unmount(){i&&(Vt(s,r._instance,16),e(null,r._container),delete r._container.__vue_app__)},provide:(e,t)=>(o.provides[e]=t,r),runWithContext(e){const t=so;so=r;try{return e()}finally{so=t}}};return r}}let so=null;function io(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||r;let l=n;const s=t.startsWith("update:"),i=s&&((e,t)=>"modelValue"===t||"model-value"===t?e.modelModifiers:e[`${t}Modifiers`]||e[`${R(t)}Modifiers`]||e[`${I(t)}Modifiers`])(o,t.slice(7));let a;i&&(i.trim&&(l=n.map(e=>_(e)?e.trim():e)),i.number&&(l=n.map(U)));let c=o[a=F(t)]||o[a=F(R(t))];!c&&s&&(c=o[a=F(I(t))]),c&&Vt(c,e,6,l);const u=o[a+"Once"];if(u){if(e.emitted){if(e.emitted[a])return}else e.emitted={};e.emitted[a]=!0,Vt(u,e,6,l)}}const ro=new WeakMap;function ao(e,t,n=!1){const o=n?ro:t.emitsCache,l=o.get(e);if(void 0!==l)return l;const s=e.emits;let i={},r=!1;if(!w(e)){const o=e=>{const n=ao(e,t,!0);n&&(r=!0,p(i,n))};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}return s||r?(y(s)?s.forEach(e=>i[e]=null):p(i,s),k(e)&&o.set(e,i),i):(k(e)&&o.set(e,null),null)}function co(e,t){return!(!e||!f(t))&&(t=t.slice(2).replace(/Once$/,""),g(e,t[0].toLowerCase()+t.slice(1))||g(e,I(t))||g(e,t))}function uo(e){const{type:t,vnode:n,proxy:o,withProxy:l,propsOptions:[s],slots:i,attrs:r,emit:a,render:c,renderCache:u,props:f,data:p,setupState:h,ctx:v,inheritAttrs:g}=e,y=nn(e);let m,x;try{if(4&n.shapeFlag){const e=l||o,t=e;m=il(c.call(t,e,u,f,h,p,v)),x=r}else{const e=t;0,m=il(e.length>1?e(f,{attrs:r,slots:i,emit:a}):e(f,null)),x=t.props?r:fo(r)}}catch(w){Bo.length=0,$t(w,e,1),m=nl(Uo)}let b=m;if(x&&!1!==g){const e=Object.keys(x),{shapeFlag:t}=b;e.length&&7&t&&(s&&e.some(d)&&(x=po(x,s)),b=ol(b,x,!1,!0))}return n.dirs&&(b=ol(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&hn(b,n.transition),m=b,nn(y),m}const fo=e=>{let t;for(const n in e)("class"===n||"style"===n||f(n))&&((t||(t={}))[n]=e[n]);return t},po=(e,t)=>{const n={};for(const o in e)d(o)&&o.slice(9)in t||(n[o]=e[o]);return n};function ho(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let l=0;l<o.length;l++){const s=o[l];if(t[s]!==e[s]&&!co(n,s))return!0}return!1}const vo={},go=()=>Object.create(vo),yo=e=>Object.getPrototypeOf(e)===vo;function mo(e,t,n,o=!1){const l={},s=go();e.propsDefaults=Object.create(null),xo(e,t,l,s);for(const i in e.propsOptions[0])i in l||(l[i]=void 0);n?e.props=o?l:gt(l,!1,et,rt,ut):e.type.props?e.props=l:e.props=s,e.attrs=s}function xo(e,t,n,o){const[l,s]=e.propsOptions;let i,a=!1;if(t)for(let r in t){if(T(r))continue;const c=t[r];let u;l&&g(l,u=R(r))?s&&s.includes(u)?(i||(i={}))[u]=c:n[u]=c:co(e.emitsOptions,r)||r in o&&c===o[r]||(o[r]=c,a=!0)}if(s){const t=wt(n),o=i||r;for(let i=0;i<s.length;i++){const r=s[i];n[r]=bo(l,t,r,o[r],e,!g(o,r))}}return a}function bo(e,t,n,o,l,s){const i=e[n];if(null!=i){const e=g(i,"default");if(e&&void 0===o){const e=i.default;if(i.type!==Function&&!i.skipFactory&&w(e)){const{propsDefaults:s}=l;if(n in s)o=s[n];else{const i=gl(l);o=s[n]=e.call(null,t),i()}}else o=e;l.ce&&l.ce._setProp(n,o)}i[0]&&(s&&!e?o=!1:!i[1]||""!==o&&o!==I(n)||(o=!0))}return o}const wo=new WeakMap;function _o(e,t,n=!1){const o=n?wo:t.propsCache,l=o.get(e);if(l)return l;const s=e.props,i={},c=[];let u=!1;if(!w(e)){const o=e=>{u=!0;const[n,o]=_o(e,t,!0);p(i,n),o&&c.push(...o)};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}if(!s&&!u)return k(e)&&o.set(e,a),a;if(y(s))for(let a=0;a<s.length;a++){const e=R(s[a]);So(e)&&(i[e]=r)}else if(s)for(const r in s){const e=R(r);if(So(e)){const t=s[r],n=i[e]=y(t)||w(t)?{type:t}:p({},t),o=n.type;let l=!1,a=!0;if(y(o))for(let e=0;e<o.length;++e){const t=o[e],n=w(t)&&t.name;if("Boolean"===n){l=!0;break}"String"===n&&(a=!1)}else l=w(o)&&"Boolean"===o.name;n[0]=l,n[1]=a,(l||g(n,"default"))&&c.push(e)}}const f=[i,c];return k(e)&&o.set(e,f),f}function So(e){return"$"!==e[0]&&!T(e)}const ko=e=>"_"===e||"_ctx"===e||"$stable"===e,Mo=e=>y(e)?e.map(il):[il(e)],Co=(e,t,n)=>{if(t._n)return t;const o=function(e,t=en){if(!t)return e;if(e._n)return e;const n=(...o)=>{n._d&&Yo(-1);const l=nn(t);let s;try{s=e(...o)}finally{nn(l),n._d&&Yo(1)}return s};return n._n=!0,n._c=!0,n._d=!0,n}((...e)=>Mo(t(...e)),n);return o._c=!1,o},Oo=(e,t,n)=>{const o=e._ctx;for(const l in e){if(ko(l))continue;const n=e[l];if(w(n))t[l]=Co(0,n,o);else if(null!=n){const e=Mo(n);t[l]=()=>e}}},Po=(e,t)=>{const n=Mo(t);e.slots.default=()=>n},Eo=(e,t,n)=>{for(const o in t)!n&&ko(o)||(e[o]=t[o])},To=function(e,t){t&&t.pendingBranch?y(e)?t.effects.push(...e):t.effects.push(e):(y(n=e)?zt.push(...n):Bt&&-1===n.id?Bt.splice(Wt+1,0,n):1&n.flags||(zt.push(n),n.flags|=1),Kt());var n};function Ao(e){return function(e){B().__VUE__=!0;const{insert:t,remove:n,patchProp:o,createElement:l,createText:s,createComment:i,setText:u,setElementText:f,parentNode:d,nextSibling:p,setScopeId:h=c,insertStaticContent:v}=e,y=(e,t,n,o=null,l=null,s=null,i=void 0,r=null,a=!!t.dynamicChildren)=>{if(e===t)return;e&&!Zo(e,t)&&(o=Z(e),Y(e,l,s,!0),e=null),-2===t.patchFlag&&(a=!1,t.dynamicChildren=null);const{type:c,ref:u,shapeFlag:f}=t;switch(c){case No:m(e,t,n,o);break;case Uo:x(e,t,n,o);break;case zo:null==e&&b(t,n,o,i);break;case $o:L(e,t,n,o,l,s,i,r,a);break;default:1&f?S(e,t,n,o,l,s,i,r,a):6&f?j(e,t,n,o,l,s,i,r,a):(64&f||128&f)&&c.process(e,t,n,o,l,s,i,r,a,te)}null!=u&&l?yn(u,e&&e.ref,s,t||e,!t):null==u&&e&&null!=e.ref&&yn(e.ref,null,s,e,!0)},m=(e,n,o,l)=>{if(null==e)t(n.el=s(n.children),o,l);else{const t=n.el=e.el;n.children!==e.children&&u(t,n.children)}},x=(e,n,o,l)=>{null==e?t(n.el=i(n.children||""),o,l):n.el=e.el},b=(e,t,n,o)=>{[e.el,e.anchor]=v(e.children,t,n,o,e.el,e.anchor)},w=({el:e,anchor:n},o,l)=>{let s;for(;e&&e!==n;)s=p(e),t(e,o,l),e=s;t(n,o,l)},_=({el:e,anchor:t})=>{let o;for(;e&&e!==t;)o=p(e),n(e),e=o;n(t)},S=(e,t,n,o,l,s,i,r,a)=>{if("svg"===t.type?i="svg":"math"===t.type&&(i="mathml"),null==e)k(t,n,o,l,s,i,r,a);else{const n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),P(e,t,l,s,i,r,a)}finally{n&&n._endPatch()}}},k=(e,n,s,i,r,a,c,u)=>{let d,p;const{props:h,shapeFlag:v,transition:g,dirs:y}=e;if(d=e.el=l(e.type,a,h&&h.is,h),8&v?f(d,e.children):16&v&&O(e.children,d,null,i,r,Lo(e,a),c,u),y&&ln(e,null,i,"created"),C(d,e,e.scopeId,c,i),h){for(const e in h)"value"===e||T(e)||o(d,e,null,h[e],a,i);"value"in h&&o(d,"value",null,h.value,a),(p=h.onVnodeBeforeMount)&&cl(p,i,e)}y&&ln(e,null,i,"beforeMount");const m=function(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}(r,g);m&&g.beforeEnter(d),t(d,n,s),((p=h&&h.onVnodeMounted)||m||y)&&To(()=>{p&&cl(p,i,e),m&&g.enter(d),y&&ln(e,null,i,"mounted")},r)},C=(e,t,n,o,l)=>{if(n&&h(e,n),o)for(let s=0;s<o.length;s++)h(e,o[s]);if(l){let n=l.subTree;if(t===n||Vo(n.type)&&(n.ssContent===t||n.ssFallback===t)){const t=l.vnode;C(e,t,t.scopeId,t.slotScopeIds,l.parent)}}},O=(e,t,n,o,l,s,i,r,a=0)=>{for(let c=a;c<e.length;c++){const a=e[c]=r?rl(e[c]):il(e[c]);y(null,a,t,n,o,l,s,i,r)}},P=(e,t,n,l,s,i,a)=>{const c=t.el=e.el;let{patchFlag:u,dynamicChildren:d,dirs:p}=t;u|=16&e.patchFlag;const h=e.props||r,v=t.props||r;let g;if(n&&Ro(n,!1),(g=v.onVnodeBeforeUpdate)&&cl(g,n,t,e),p&&ln(t,e,n,"beforeUpdate"),n&&Ro(n,!0),(h.innerHTML&&null==v.innerHTML||h.textContent&&null==v.textContent)&&f(c,""),d?E(e.dynamicChildren,d,c,n,l,Lo(t,s),i):a||z(e,t,c,null,n,l,Lo(t,s),i,!1),u>0){if(16&u)A(c,h,v,n,s);else if(2&u&&h.class!==v.class&&o(c,"class",null,v.class,s),4&u&&o(c,"style",h.style,v.style,s),8&u){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const l=e[t],i=h[l],r=v[l];r===i&&"value"!==l||o(c,l,i,r,s,n)}}1&u&&e.children!==t.children&&f(c,t.children)}else a||null!=d||A(c,h,v,n,s);((g=v.onVnodeUpdated)||p)&&To(()=>{g&&cl(g,n,t,e),p&&ln(t,e,n,"updated")},l)},E=(e,t,n,o,l,s,i)=>{for(let r=0;r<t.length;r++){const a=e[r],c=t[r],u=a.el&&(a.type===$o||!Zo(a,c)||198&a.shapeFlag)?d(a.el):n;y(a,c,u,null,o,l,s,i,!0)}},A=(e,t,n,l,s)=>{if(t!==n){if(t!==r)for(const i in t)T(i)||i in n||o(e,i,t[i],null,s,l);for(const i in n){if(T(i))continue;const r=n[i],a=t[i];r!==a&&"value"!==i&&o(e,i,a,r,s,l)}"value"in n&&o(e,"value",t.value,n.value,s)}},L=(e,n,o,l,i,r,a,c,u)=>{const f=n.el=e?e.el:s(""),d=n.anchor=e?e.anchor:s("");let{patchFlag:p,dynamicChildren:h,slotScopeIds:v}=n;v&&(c=c?c.concat(v):v),null==e?(t(f,o,l),t(d,o,l),O(n.children||[],o,d,i,r,a,c,u)):p>0&&64&p&&h&&e.dynamicChildren&&e.dynamicChildren.length===h.length?(E(e.dynamicChildren,h,o,i,r,a,c),(null!=n.key||i&&n===i.subTree)&&jo(e,n,!0)):z(e,n,o,d,i,r,a,c,u)},j=(e,t,n,o,l,s,i,r,a)=>{t.slotScopeIds=r,null==e?512&t.shapeFlag?l.ctx.activate(t,n,o,i,a):D(t,n,o,l,s,i,a):F(e,t,a)},D=(e,t,n,o,l,s,i)=>{const a=e.component=function(e,t,n){const o=e.type,l=(t?t.appContext:e.appContext)||ul,s={uid:fl++,vnode:e,type:o,parent:t,appContext:l,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new ie(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(l.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:_o(o,l),emitsOptions:ao(o,l),emit:null,emitted:null,propsDefaults:r,inheritAttrs:o.inheritAttrs,ctx:r,data:r,props:r,attrs:r,slots:r,refs:r,setupState:r,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};s.ctx={_:s},s.root=t?t.root:s,s.emit=io.bind(null,s),e.ce&&e.ce(s);return s}(e,o,l);if(bn(e)&&(a.ctx.renderer=te),function(e,t=!1,n=!1){t&&vl(t);const{props:o,children:l}=e.vnode,s=ml(e);mo(e,o,s,t),((e,t,n)=>{const o=e.slots=go();if(32&e.vnode.shapeFlag){const e=t._;e?(Eo(o,t,n),n&&N(o,"_",e,!0)):Oo(t,o)}else t&&Po(e,t)})(e,l,n||t);const i=s?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,zn);const{setup:o}=n;if(o){Se();const n=e.setupContext=o.length>1?function(e){const t=t=>{e.exposed=t||{}};return{attrs:new Proxy(e.attrs,_l),slots:e.slots,emit:e.emit,expose:t}}(e):null,l=gl(e),s=Ft(o,e,0,[e.props,n]),i=M(s);if(ke(),l(),!i&&!e.sp||xn(e)||vn(e),i){if(s.then(yl,yl),t)return s.then(t=>{bl(e,t)}).catch(t=>{$t(t,e,0)});e.asyncDep=s}else bl(e,s)}else wl(e)}(e,t):void 0;t&&vl(!1)}(a,!1,i),a.asyncDep){if(l&&l.registerDep(a,V,i),!e.el){const o=a.subTree=nl(Uo);x(null,o,t,n),e.placeholder=o.el}}else V(a,e,t,n,l,s,i)},F=(e,t,n)=>{const o=t.component=e.component;if(function(e,t,n){const{props:o,children:l,component:s}=e,{props:i,children:r,patchFlag:a}=t,c=s.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&a>=0))return!(!l&&!r||r&&r.$stable)||o!==i&&(o?!i||ho(o,i,c):!!i);if(1024&a)return!0;if(16&a)return o?ho(o,i,c):!!i;if(8&a){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(i[n]!==o[n]&&!co(c,n))return!0}}return!1}(e,t,n)){if(o.asyncDep&&!o.asyncResolved)return void U(o,t,n);o.next=t,o.update()}else t.el=e.el,o.vnode=t},V=(e,t,n,o,l,s,i)=>{const r=()=>{if(e.isMounted){let{next:t,bu:n,u:o,parent:a,vnode:c}=e;{const n=Io(e);if(n)return t&&(t.el=c.el,U(e,t,i)),void n.asyncDep.then(()=>{e.isUnmounted||r()})}let u,f=t;Ro(e,!1),t?(t.el=c.el,U(e,t,i)):t=c,n&&$(n),(u=t.props&&t.props.onVnodeBeforeUpdate)&&cl(u,a,t,c),Ro(e,!0);const p=uo(e),h=e.subTree;e.subTree=p,y(h,p,d(h.el),Z(h),e,l,s),t.el=p.el,null===f&&function({vnode:e,parent:t},n){for(;t;){const o=t.subTree;if(o.suspense&&o.suspense.activeBranch===e&&(o.el=e.el),o!==e)break;(e=t.vnode).el=n,t=t.parent}}(e,p.el),o&&To(o,l),(u=t.props&&t.props.onVnodeUpdated)&&To(()=>cl(u,a,t,c),l)}else{let i;const{el:r,props:a}=t,{bm:c,m:u,parent:f,root:d,type:p}=e,h=xn(t);Ro(e,!1),c&&$(c),!h&&(i=a&&a.onVnodeBeforeMount)&&cl(i,f,t),Ro(e,!0);{d.ce&&!1!==d.ce._def.shadowRoot&&d.ce._injectChildStyle(p);const i=e.subTree=uo(e);y(null,i,n,o,e,l,s),t.el=i.el}if(u&&To(u,l),!h&&(i=a&&a.onVnodeMounted)){const e=t;To(()=>cl(i,f,e),l)}(256&t.shapeFlag||f&&xn(f.vnode)&&256&f.vnode.shapeFlag)&&e.a&&To(e.a,l),e.isMounted=!0,t=n=o=null}};e.scope.on();const a=e.effect=new ae(r);e.scope.off();const c=e.update=a.run.bind(a),u=e.job=a.runIfDirty.bind(a);u.i=e,u.id=e.uid,a.scheduler=()=>Xt(u),Ro(e,!0),c()},U=(e,t,n)=>{t.component=e;const o=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,o){const{props:l,attrs:s,vnode:{patchFlag:i}}=e,r=wt(l),[a]=e.propsOptions;let c=!1;if(!(o||i>0)||16&i){let o;xo(e,t,l,s)&&(c=!0);for(const s in r)t&&(g(t,s)||(o=I(s))!==s&&g(t,o))||(a?!n||void 0===n[s]&&void 0===n[o]||(l[s]=bo(a,r,s,void 0,e,!0)):delete l[s]);if(s!==r)for(const e in s)t&&g(t,e)||(delete s[e],c=!0)}else if(8&i){const n=e.vnode.dynamicProps;for(let o=0;o<n.length;o++){let i=n[o];if(co(e.emitsOptions,i))continue;const u=t[i];if(a)if(g(s,i))u!==s[i]&&(s[i]=u,c=!0);else{const t=R(i);l[t]=bo(a,r,t,u,e,!1)}else u!==s[i]&&(s[i]=u,c=!0)}}c&&Ie(e.attrs,"set","")}(e,t.props,o,n),((e,t,n)=>{const{vnode:o,slots:l}=e;let s=!0,i=r;if(32&o.shapeFlag){const e=t._;e?n&&1===e?s=!1:Eo(l,t,n):(s=!t.$stable,Oo(t,l)),i=t}else t&&(Po(e,t),i={default:1});if(s)for(const r in l)ko(r)||null!=i[r]||delete l[r]})(e,t.children,n),Se(),qt(e),ke()},z=(e,t,n,o,l,s,i,r,a=!1)=>{const c=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:p,shapeFlag:h}=t;if(p>0){if(128&p)return void J(c,d,n,o,l,s,i,r,a);if(256&p)return void W(c,d,n,o,l,s,i,r,a)}8&h?(16&u&&G(c,l,s),d!==c&&f(n,d)):16&u?16&h?J(c,d,n,o,l,s,i,r,a):G(c,l,s,!0):(8&u&&f(n,""),16&h&&O(d,n,o,l,s,i,r,a))},W=(e,t,n,o,l,s,i,r,c)=>{t=t||a;const u=(e=e||a).length,f=t.length,d=Math.min(u,f);let p;for(p=0;p<d;p++){const o=t[p]=c?rl(t[p]):il(t[p]);y(e[p],o,n,null,l,s,i,r,c)}u>f?G(e,l,s,!0,!1,d):O(t,n,o,l,s,i,r,c,d)},J=(e,t,n,o,l,s,i,r,c)=>{let u=0;const f=t.length;let d=e.length-1,p=f-1;for(;u<=d&&u<=p;){const o=e[u],a=t[u]=c?rl(t[u]):il(t[u]);if(!Zo(o,a))break;y(o,a,n,null,l,s,i,r,c),u++}for(;u<=d&&u<=p;){const o=e[d],a=t[p]=c?rl(t[p]):il(t[p]);if(!Zo(o,a))break;y(o,a,n,null,l,s,i,r,c),d--,p--}if(u>d){if(u<=p){const e=p+1,a=e<f?t[e].el:o;for(;u<=p;)y(null,t[u]=c?rl(t[u]):il(t[u]),n,a,l,s,i,r,c),u++}}else if(u>p)for(;u<=d;)Y(e[u],l,s,!0),u++;else{const h=u,v=u,g=new Map;for(u=v;u<=p;u++){const e=t[u]=c?rl(t[u]):il(t[u]);null!=e.key&&g.set(e.key,u)}let m,x=0;const b=p-v+1;let w=!1,_=0;const S=new Array(b);for(u=0;u<b;u++)S[u]=0;for(u=h;u<=d;u++){const o=e[u];if(x>=b){Y(o,l,s,!0);continue}let a;if(null!=o.key)a=g.get(o.key);else for(m=v;m<=p;m++)if(0===S[m-v]&&Zo(o,t[m])){a=m;break}void 0===a?Y(o,l,s,!0):(S[a-v]=u+1,a>=_?_=a:w=!0,y(o,t[a],n,null,l,s,i,r,c),x++)}const k=w?function(e){const t=e.slice(),n=[0];let o,l,s,i,r;const a=e.length;for(o=0;o<a;o++){const a=e[o];if(0!==a){if(l=n[n.length-1],e[l]<a){t[o]=l,n.push(o);continue}for(s=0,i=n.length-1;s<i;)r=s+i>>1,e[n[r]]<a?s=r+1:i=r;a<e[n[s]]&&(s>0&&(t[o]=n[s-1]),n[s]=o)}}s=n.length,i=n[s-1];for(;s-- >0;)n[s]=i,i=t[i];return n}(S):a;for(m=k.length-1,u=b-1;u>=0;u--){const e=v+u,a=t[e],d=t[e+1],p=e+1<f?d.el||Fo(d):o;0===S[u]?y(null,a,n,p,l,s,i,r,c):w&&(m<0||u!==k[m]?H(a,n,p,2):m--)}}},H=(e,o,l,s,i=null)=>{const{el:r,type:a,transition:c,children:u,shapeFlag:f}=e;if(6&f)return void H(e.component.subTree,o,l,s);if(128&f)return void e.suspense.move(o,l,s);if(64&f)return void a.move(e,o,l,te);if(a===$o){t(r,o,l);for(let e=0;e<u.length;e++)H(u[e],o,l,s);return void t(e.anchor,o,l)}if(a===zo)return void w(e,o,l);if(2!==s&&1&f&&c)if(0===s)c.beforeEnter(r),t(r,o,l),To(()=>c.enter(r),i);else{const{leave:s,delayLeave:i,afterLeave:a}=c,u=()=>{e.ctx.isUnmounted?n(r):t(r,o,l)},f=()=>{r._isLeaving&&r[pn](!0),s(r,()=>{u(),a&&a()})};i?i(r,u,f):f()}else t(r,o,l)},Y=(e,t,n,o=!1,l=!1)=>{const{type:s,props:i,ref:r,children:a,dynamicChildren:c,shapeFlag:u,patchFlag:f,dirs:d,cacheIndex:p}=e;if(-2===f&&(l=!1),null!=r&&(Se(),yn(r,null,n,e,!0),ke()),null!=p&&(t.renderCache[p]=void 0),256&u)return void t.ctx.deactivate(e);const h=1&u&&d,v=!xn(e);let g;if(v&&(g=i&&i.onVnodeBeforeUnmount)&&cl(g,t,e),6&u)q(e.component,n,o);else{if(128&u)return void e.suspense.unmount(n,o);h&&ln(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,te,o):c&&!c.hasOnce&&(s!==$o||f>0&&64&f)?G(c,t,n,!1,!0):(s===$o&&384&f||!l&&16&u)&&G(a,t,n),o&&X(e)}(v&&(g=i&&i.onVnodeUnmounted)||h)&&To(()=>{g&&cl(g,t,e),h&&ln(e,null,t,"unmounted")},n)},X=e=>{const{type:t,el:o,anchor:l,transition:s}=e;if(t===$o)return void K(o,l);if(t===zo)return void _(e);const i=()=>{n(o),s&&!s.persisted&&s.afterLeave&&s.afterLeave()};if(1&e.shapeFlag&&s&&!s.persisted){const{leave:t,delayLeave:n}=s,l=()=>t(o,i);n?n(e.el,i,l):l()}else i()},K=(e,t)=>{let o;for(;e!==t;)o=p(e),n(e),e=o;n(t)},q=(e,t,n)=>{const{bum:o,scope:l,job:s,subTree:i,um:r,m:a,a:c}=e;Do(a),Do(c),o&&$(o),l.stop(),s&&(s.flags|=8,Y(i,e,t,n)),r&&To(r,t),To(()=>{e.isUnmounted=!0},t)},G=(e,t,n,o=!1,l=!1,s=0)=>{for(let i=s;i<e.length;i++)Y(e[i],t,n,o,l)},Z=e=>{if(6&e.shapeFlag)return Z(e.component.subTree);if(128&e.shapeFlag)return e.suspense.next();const t=p(e.anchor||e.el),n=t&&t[dn];return n?p(n):t};let Q=!1;const ee=(e,t,n)=>{let o;null==e?t._vnode&&(Y(t._vnode,null,null,!0),o=t._vnode.component):y(t._vnode||null,e,t,null,null,null,n),t._vnode=e,Q||(Q=!0,qt(o),Gt(),Q=!1)},te={p:y,um:Y,m:H,r:X,mt:D,mc:O,pc:z,pbc:E,n:Z,o:e};let ne;return{render:ee,hydrate:ne,createApp:lo(ee)}}(e)}function Lo({type:e,props:t},n){return"svg"===n&&"foreignObject"===e||"mathml"===n&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Ro({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function jo(e,t,n=!1){const o=e.children,l=t.children;if(y(o)&&y(l))for(let s=0;s<o.length;s++){const t=o[s];let i=l[s];1&i.shapeFlag&&!i.dynamicChildren&&((i.patchFlag<=0||32===i.patchFlag)&&(i=l[s]=rl(l[s]),i.el=t.el),n||-2===i.patchFlag||jo(t,i)),i.type===No&&(-1!==i.patchFlag?i.el=t.el:i.__elIndex=s+(e.type===$o?1:0)),i.type!==Uo||i.el||(i.el=t.el)}}function Io(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Io(t)}function Do(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Fo(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Fo(t.subTree):null}const Vo=e=>e.__isSuspense;const $o=Symbol.for("v-fgt"),No=Symbol.for("v-txt"),Uo=Symbol.for("v-cmt"),zo=Symbol.for("v-stc"),Bo=[];let Wo=null;function Jo(e=!1){Bo.push(Wo=e?null:[])}let Ho=1;function Yo(e,t=!1){Ho+=e,e<0&&Wo&&t&&(Wo.hasOnce=!0)}function Xo(e){return e.dynamicChildren=Ho>0?Wo||a:null,Bo.pop(),Wo=Bo[Bo.length-1]||null,Ho>0&&Wo&&Wo.push(e),e}function Ko(e,t,n,o,l,s){return Xo(tl(e,t,n,o,l,s,!0))}function qo(e,t,n,o,l){return Xo(nl(e,t,n,o,l,!0))}function Go(e){return!!e&&!0===e.__v_isVNode}function Zo(e,t){return e.type===t.type&&e.key===t.key}const Qo=({key:e})=>null!=e?e:null,el=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?_(e)||kt(e)||w(e)?{i:en,r:e,k:t,f:!!n}:e:null);function tl(e,t=null,n=null,o=0,l=null,s=(e===$o?0:1),i=!1,r=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Qo(t),ref:t&&el(t),scopeId:tn,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:s,patchFlag:o,dynamicProps:l,dynamicChildren:null,appContext:null,ctx:en};return r?(al(a,n),128&s&&e.normalize(a)):n&&(a.shapeFlag|=_(n)?8:16),Ho>0&&!i&&Wo&&(a.patchFlag>0||6&s)&&32!==a.patchFlag&&Wo.push(a),a}const nl=function(e,t=null,n=null,o=0,l=null,s=!1){e&&e!==Fn||(e=Uo);if(Go(e)){const o=ol(e,t,!0);return n&&al(o,n),Ho>0&&!s&&Wo&&(6&o.shapeFlag?Wo[Wo.indexOf(e)]=o:Wo.push(o)),o.patchFlag=-2,o}i=e,w(i)&&"__vccOpts"in i&&(e=e.__vccOpts);var i;if(t){t=function(e){return e?bt(e)||yo(e)?p({},e):e:null}(t);let{class:e,style:n}=t;e&&!_(e)&&(t.class=K(e)),k(n)&&(bt(n)&&!y(n)&&(n=p({},n)),t.style=W(n))}const r=_(e)?1:Vo(e)?128:(e=>e.__isTeleport)(e)?64:k(e)?4:w(e)?2:0;return tl(e,t,n,o,l,r,s,!0)};function ol(e,t,n=!1,o=!1){const{props:l,ref:s,patchFlag:i,children:r,transition:a}=e,c=t?function(...e){const t={};for(let n=0;n<e.length;n++){const o=e[n];for(const e in o)if("class"===e)t.class!==o.class&&(t.class=K([t.class,o.class]));else if("style"===e)t.style=W([t.style,o.style]);else if(f(e)){const n=t[e],l=o[e];!l||n===l||y(n)&&n.includes(l)||(t[e]=n?[].concat(n,l):l)}else""!==e&&(t[e]=o[e])}return t}(l||{},t):l,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Qo(c),ref:t&&t.ref?n&&s?y(s)?s.concat(el(t)):[s,el(t)]:el(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:r,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==$o?-1===i?16:16|i:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ol(e.ssContent),ssFallback:e.ssFallback&&ol(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&o&&hn(u,a.clone(u)),u}function ll(e=" ",t=0){return nl(No,null,e,t)}function sl(e="",t=!1){return t?(Jo(),qo(Uo,null,e)):nl(Uo,null,e)}function il(e){return null==e||"boolean"==typeof e?nl(Uo):y(e)?nl($o,null,e.slice()):Go(e)?rl(e):nl(No,null,String(e))}function rl(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:ol(e)}function al(e,t){let n=0;const{shapeFlag:o}=e;if(null==t)t=null;else if(y(t))n=16;else if("object"==typeof t){if(65&o){const n=t.default;return void(n&&(n._c&&(n._d=!1),al(e,n()),n._c&&(n._d=!0)))}{n=32;const o=t._;o||yo(t)?3===o&&en&&(1===en.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=en}}else w(t)?(t={default:t,_ctx:en},n=32):(t=String(t),64&o?(n=16,t=[ll(t)]):n=8);e.children=t,e.shapeFlag|=n}function cl(e,t,n,o=null){Vt(e,t,7,[n,o])}const ul=no();let fl=0;let dl=null;const pl=()=>dl||en;let hl,vl;{const e=B(),t=(t,n)=>{let o;return(o=e[t])||(o=e[t]=[]),o.push(n),e=>{o.length>1?o.forEach(t=>t(e)):o[0](e)}};hl=t("__VUE_INSTANCE_SETTERS__",e=>dl=e),vl=t("__VUE_SSR_SETTERS__",e=>xl=e)}const gl=e=>{const t=dl;return hl(e),e.scope.on(),()=>{e.scope.off(),hl(t)}},yl=()=>{dl&&dl.scope.off(),hl(null)};function ml(e){return 4&e.vnode.shapeFlag}let xl=!1;function bl(e,t,n){w(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:k(t)&&(e.setupState=Tt(t)),wl(e)}function wl(e,t,n){const o=e.type;e.render||(e.render=o.render||c);{const t=gl(e);Se();try{Jn(e)}finally{ke(),t()}}}const _l={get:(e,t)=>(je(e,0,""),e[t])};function Sl(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Tt((t=e.exposed,!g(t,"__v_skip")&&Object.isExtensible(t)&&N(t,"__v_skip",!0),t)),{get:(t,n)=>n in t?t[n]:n in Nn?Nn[n](e):void 0,has:(e,t)=>t in e||t in Nn})):e.proxy;var t}const kl=(e,t)=>{const n=function(e,t,n=!1){let o,l;return w(e)?o=e:(o=e.get,l=e.set),new At(o,l,n)}(e,0,xl);return n},Ml="3.5.26";
/**
* @vue/runtime-dom v3.5.26
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/
let Cl;const Ol="undefined"!=typeof window&&window.trustedTypes;if(Ol)try{Cl=Ol.createPolicy("vue",{createHTML:e=>e})}catch(wi){}const Pl=Cl?e=>Cl.createHTML(e):e=>e,El="undefined"!=typeof document?document:null,Tl=El&&El.createElement("template"),Al={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const l="svg"===t?El.createElementNS("http://www.w3.org/2000/svg",e):"mathml"===t?El.createElementNS("http://www.w3.org/1998/Math/MathML",e):n?El.createElement(e,{is:n}):El.createElement(e);return"select"===e&&o&&null!=o.multiple&&l.setAttribute("multiple",o.multiple),l},createText:e=>El.createTextNode(e),createComment:e=>El.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>El.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,l,s){const i=n?n.previousSibling:t.lastChild;if(l&&(l===s||l.nextSibling))for(;t.insertBefore(l.cloneNode(!0),n),l!==s&&(l=l.nextSibling););else{Tl.innerHTML=Pl("svg"===o?`<svg>${e}</svg>`:"mathml"===o?`<math>${e}</math>`:e);const l=Tl.content;if("svg"===o||"mathml"===o){const e=l.firstChild;for(;e.firstChild;)l.appendChild(e.firstChild);l.removeChild(e)}t.insertBefore(l,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Ll=Symbol("_vtc");const Rl=Symbol("_vod"),jl=Symbol("_vsh"),Il=Symbol(""),Dl=/(?:^|;)\s*display\s*:/;const Fl=/\s*!important$/;function Vl(e,t,n){if(y(n))n.forEach(n=>Vl(e,t,n));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=function(e,t){const n=Nl[t];if(n)return n;let o=R(t);if("filter"!==o&&o in e)return Nl[t]=o;o=D(o);for(let l=0;l<$l.length;l++){const n=$l[l]+o;if(n in e)return Nl[t]=n}return t}(e,t);Fl.test(n)?e.setProperty(I(o),n.replace(Fl,""),"important"):e[o]=n}}const $l=["Webkit","Moz","ms"],Nl={};const Ul="http://www.w3.org/1999/xlink";function zl(e,t,n,o,l,s=q(t)){o&&t.startsWith("xlink:")?null==n?e.removeAttributeNS(Ul,t.slice(6,t.length)):e.setAttributeNS(Ul,t,n):null==n||s&&!G(n)?e.removeAttribute(t):e.setAttribute(t,s?"":S(n)?String(n):n)}function Bl(e,t,n,o,l){if("innerHTML"===t||"textContent"===t)return void(null!=n&&(e[t]="innerHTML"===t?Pl(n):n));const s=e.tagName;if("value"===t&&"PROGRESS"!==s&&!s.includes("-")){const o="OPTION"===s?e.getAttribute("value")||"":e.value,l=null==n?"checkbox"===e.type?"on":"":String(n);return o===l&&"_value"in e||(e.value=l),null==n&&e.removeAttribute(t),void(e._value=n)}let i=!1;if(""===n||null==n){const o=typeof e[t];"boolean"===o?n=G(n):null==n&&"string"===o?(n="",i=!0):"number"===o&&(n=0,i=!0)}try{e[t]=n}catch(wi){}i&&e.removeAttribute(l||t)}function Wl(e,t,n,o){e.addEventListener(t,n,o)}const Jl=Symbol("_vei");function Hl(e,t,n,o,l=null){const s=e[Jl]||(e[Jl]={}),i=s[t];if(o&&i)i.value=o;else{const[n,r]=function(e){let t;if(Yl.test(e)){let n;for(t={};n=e.match(Yl);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}const n=":"===e[2]?e.slice(3):I(e.slice(2));return[n,t]}(t);if(o){const i=s[t]=function(e,t){const n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();Vt(function(e,t){if(y(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(e=>t=>!t._stopped&&e&&e(t))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=ql(),n}(o,l);Wl(e,n,i,r)}else i&&(!function(e,t,n,o){e.removeEventListener(t,n,o)}(e,n,i,r),s[t]=void 0)}}const Yl=/(?:Once|Passive|Capture)$/;let Xl=0;const Kl=Promise.resolve(),ql=()=>Xl||(Kl.then(()=>Xl=0),Xl=Date.now());const Gl=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123;const Zl=e=>{const t=e.props["onUpdate:modelValue"]||!1;return y(t)?e=>$(t,e):t};function Ql(e){e.target.composing=!0}function es(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ts=Symbol("_assign");function ns(e,t,n){return t&&(e=e.trim()),n&&(e=U(e)),e}const os={created(e,{modifiers:{lazy:t,trim:n,number:o}},l){e[ts]=Zl(l);const s=o||l.props&&"number"===l.props.type;Wl(e,t?"change":"input",t=>{t.target.composing||e[ts](ns(e.value,n,s))}),(n||s)&&Wl(e,"change",()=>{e.value=ns(e.value,n,s)}),t||(Wl(e,"compositionstart",Ql),Wl(e,"compositionend",es),Wl(e,"change",es))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:o,trim:l,number:s}},i){if(e[ts]=Zl(i),e.composing)return;const r=null==t?"":t;if((!s&&"number"!==e.type||/^0\d/.test(e.value)?e.value:U(e.value))!==r){if(document.activeElement===e&&"range"!==e.type){if(o&&t===n)return;if(l&&e.value.trim()===r)return}e.value=r}}},ls={deep:!0,created(e,t,n){e[ts]=Zl(n),Wl(e,"change",()=>{const t=e._modelValue,n=cs(e),o=e.checked,l=e[ts];if(y(t)){const e=Q(t,n),s=-1!==e;if(o&&!s)l(t.concat(n));else if(!o&&s){const n=[...t];n.splice(e,1),l(n)}}else if(x(t)){const e=new Set(t);o?e.add(n):e.delete(n),l(e)}else l(us(e,o))})},mounted:ss,beforeUpdate(e,t,n){e[ts]=Zl(n),ss(e,t,n)}};function ss(e,{value:t,oldValue:n},o){let l;if(e._modelValue=t,y(t))l=Q(t,o.props.value)>-1;else if(x(t))l=t.has(o.props.value);else{if(t===n)return;l=Z(t,us(e,!0))}e.checked!==l&&(e.checked=l)}const is={created(e,{value:t},n){e.checked=Z(t,n.props.value),e[ts]=Zl(n),Wl(e,"change",()=>{e[ts](cs(e))})},beforeUpdate(e,{value:t,oldValue:n},o){e[ts]=Zl(o),t!==n&&(e.checked=Z(t,o.props.value))}},rs={deep:!0,created(e,{value:t,modifiers:{number:n}},o){const l=x(t);Wl(e,"change",()=>{const t=Array.prototype.filter.call(e.options,e=>e.selected).map(e=>n?U(cs(e)):cs(e));e[ts](e.multiple?l?new Set(t):t:t[0]),e._assigning=!0,Yt(()=>{e._assigning=!1})}),e[ts]=Zl(o)},mounted(e,{value:t}){as(e,t)},beforeUpdate(e,t,n){e[ts]=Zl(n)},updated(e,{value:t}){e._assigning||as(e,t)}};function as(e,t){const n=e.multiple,o=y(t);if(!n||o||x(t)){for(let l=0,s=e.options.length;l<s;l++){const s=e.options[l],i=cs(s);if(n)if(o){const e=typeof i;s.selected="string"===e||"number"===e?t.some(e=>String(e)===String(i)):Q(t,i)>-1}else s.selected=t.has(i);else if(Z(cs(s),t))return void(e.selectedIndex!==l&&(e.selectedIndex=l))}n||-1===e.selectedIndex||(e.selectedIndex=-1)}}function cs(e){return"_value"in e?e._value:e.value}function us(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const fs=["ctrl","shift","alt","meta"],ds={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>fs.some(n=>e[`${n}Key`]&&!t.includes(n))},ps=(e,t)=>{const n=e._withMods||(e._withMods={}),o=t.join(".");return n[o]||(n[o]=(n,...o)=>{for(let e=0;e<t.length;e++){const o=ds[t[e]];if(o&&o(n,t))return}return e(n,...o)})},hs={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},vs=(e,t)=>{const n=e._withKeys||(e._withKeys={}),o=t.join(".");return n[o]||(n[o]=n=>{if(!("key"in n))return;const o=I(n.key);return t.some(e=>e===o||hs[e]===o)?e(n):void 0})},gs=p({patchProp:(e,t,n,o,l,s)=>{const i="svg"===l;"class"===t?function(e,t,n){const o=e[Ll];o&&(t=(t?[t,...o]:[...o]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,o,i):"style"===t?function(e,t,n){const o=e.style,l=_(n);let s=!1;if(n&&!l){if(t)if(_(t))for(const e of t.split(";")){const t=e.slice(0,e.indexOf(":")).trim();null==n[t]&&Vl(o,t,"")}else for(const e in t)null==n[e]&&Vl(o,e,"");for(const e in n)"display"===e&&(s=!0),Vl(o,e,n[e])}else if(l){if(t!==n){const e=o[Il];e&&(n+=";"+e),o.cssText=n,s=Dl.test(n)}}else t&&e.removeAttribute("style");Rl in e&&(e[Rl]=s?o.display:"",e[jl]&&(o.display="none"))}(e,n,o):f(t)?d(t)||Hl(e,t,0,o,s):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,o){if(o)return"innerHTML"===t||"textContent"===t||!!(t in e&&Gl(t)&&w(n));if("spellcheck"===t||"draggable"===t||"translate"===t||"autocorrect"===t)return!1;if("sandbox"===t&&"IFRAME"===e.tagName)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){const t=e.tagName;if("IMG"===t||"VIDEO"===t||"CANVAS"===t||"SOURCE"===t)return!1}if(Gl(t)&&_(n))return!1;return t in e}(e,t,o,i))?(Bl(e,t,o),e.tagName.includes("-")||"value"!==t&&"checked"!==t&&"selected"!==t||zl(e,t,o,i,0,"value"!==t)):!e._isVueCE||!/[A-Z]/.test(t)&&_(o)?("true-value"===t?e._trueValue=o:"false-value"===t&&(e._falseValue=o),zl(e,t,o,i)):Bl(e,R(t),o,0,t)}},Al);let ys;const ms=(...e)=>{const t=(ys||(ys=Ao(gs))).createApp(...e),{mount:n}=t;return t.mount=e=>{const o=function(e){if(_(e)){return document.querySelector(e)}return e}(e);if(!o)return;const l=t._component;w(l)||l.render||l.template||(l.template=o.innerHTML),1===o.nodeType&&(o.textContent="");const s=n(o,!1,function(e){if(e instanceof SVGElement)return"svg";if("function"==typeof MathMLElement&&e instanceof MathMLElement)return"mathml"}(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),s},t};const xs=[{value:"top-left",label:"左上"},{value:"top",label:"上"},{value:"top-right",label:"右上"},{value:"left",label:"左"},{value:"right",label:"右"},{value:"bottom-left",label:"左下"},{value:"bottom",label:"下"},{value:"bottom-right",label:"右下"}],bs={"top-left":{dx:-1,dy:-1},top:{dx:0,dy:-1},"top-right":{dx:1,dy:-1},left:{dx:-1,dy:0},right:{dx:1,dy:0},"bottom-left":{dx:-1,dy:1},bottom:{dx:0,dy:1},"bottom-right":{dx:1,dy:1}};function ws(e,t=50){const n=bs[e]||bs["top-right"];return{dx:n.dx*t,dy:n.dy*t}}const _s=(e,t)=>{const n=e.__vccOpts||e;for(const[o,l]of t)n[o]=l;return n},Ss={key:2,class:"action-buttons"},ks={class:"weld-info-header"},Ms={class:"weld-info-title"},Cs={class:"weld-info-body"},Os={key:0,class:"weld-info-row"},Ps={class:"weld-info-value"},Es={key:1,class:"weld-info-row"},Ts={class:"weld-info-value"},As={key:2,class:"weld-info-row"},Ls={class:"weld-info-value"},Rs={key:3,class:"weld-info-row"},js={class:"weld-info-value"},Is={key:4,class:"weld-info-row"},Ds={class:"weld-info-value"},Fs={key:5,class:"weld-info-row"},Vs={class:"weld-info-value"},$s={key:6,class:"weld-info-row"},Ns={class:"weld-info-value"},Us={key:7,class:"weld-info-row"},zs={__name:"AnnotationItem",props:{annotation:{type:Object,required:!0},scale:{type:Number,default:1},offset:{type:Object,default:()=>({x:0,y:0})},isSelected:{type:Boolean,default:!1},prefix:{type:String,default:""},suffix:{type:String,default:""},readOnly:{type:Boolean,default:!1},showAllInfo:{type:Boolean,default:!1},defaultAnnotationStyle:{type:String,default:"arrow"}},emits:["update","delete","select","drag-start"],setup(e,{emit:t}){const n=e,o=t,l=Mt(!1),s=Mt(""),i=Mt(null),r=Mt(!1),a=Mt(!1),c=kl(()=>n.showAllInfo||a.value||r.value),u=kl(()=>(n.annotation.fontSize??n.annotation.settings?.fontSize??10)*n.scale),f=kl(()=>{const e=n.annotation.settings?.prefix??n.prefix,t=n.annotation.settings?.suffix??n.suffix;return e+(n.annotation.displayValue??n.annotation.label??"")+t}),d=kl(()=>({position:"absolute",left:n.annotation.x*n.scale+n.offset.x+"px",top:n.annotation.y*n.scale+n.offset.y+"px",transform:"translate(-50%, -50%)",zIndex:n.isSelected?100:10,cursor:l.value?"text":"pointer"})),p=kl(()=>({display:"flex",alignItems:"center",justifyContent:"center",position:"relative",padding:"2px 4px"})),h=kl(()=>{const e=n.annotation.JOT_JointStatus;return e&&"正常"!==e}),v=kl(()=>"circle-outline"===(n.annotation.annotationStyle||n.defaultAnnotationStyle)),g=kl(()=>({fontSize:u.value+"px",fontFamily:"Arial, sans-serif",color:v.value?"#ffffff":h.value?"#dc2626":"#000000",fontWeight:h.value?"bold":"normal",whiteSpace:"nowrap",userSelect:"none"})),y=kl(()=>({position:"absolute",top:"-2px",left:"-4px",right:"-4px",bottom:"-2px",border:"0.5px solid #000000",pointerEvents:"none"}));function m(){if(n.readOnly)return;const e=n.annotation.settings?.prefix??n.prefix,t=n.annotation.settings?.suffix??n.suffix;s.value=e+n.annotation.displayValue+t,l.value=!0,Yt(()=>{i.value&&(i.value.focus(),i.value.select())})}function x(){if(!l.value)return;l.value=!1;const e=n.annotation.settings?.prefix??n.prefix,t=n.annotation.settings?.suffix??n.suffix;let i=s.value;e&&i.startsWith(e)&&(i=i.slice(e.length)),t&&i.endsWith(t)&&(i=i.slice(0,-t.length));const r=parseFloat(i)||n.annotation.displayValue;r!==n.annotation.displayValue&&o("update",{...n.annotation,displayValue:r})}function b(){l.value=!1}function w(){o("delete",n.annotation)}function _(e){if(!l.value){if(n.readOnly)return r.value=!r.value,void o("select",n.annotation);o("select",n.annotation),o("drag-start",{annotation:n.annotation,startX:e.clientX,startY:e.clientY})}}function S(){n.readOnly&&(a.value=!0)}function k(){a.value=!1}return(t,n)=>(Jo(),Ko("div",{class:"annotation-item",style:W(d.value),onDblclick:m,onMousedown:ps(_,["stop"]),onMouseenter:S,onMouseleave:k},[l.value?(Jo(),Ko("div",{key:0,class:"edit-container",onClick:n[1]||(n[1]=ps(()=>{},["stop"]))},[on(tl("input",{ref_key:"inputRef",ref:i,"onUpdate:modelValue":n[0]||(n[0]=e=>s.value=e),class:"edit-input",style:W({fontSize:u.value+"px"}),onBlur:x,onKeydown:[vs(x,["enter"]),vs(b,["escape"])]},null,36),[[os,s.value]])])):(Jo(),Ko("div",{key:1,class:"display-container",style:W(p.value)},[tl("span",{class:"label-text",style:W(g.value)},te(f.value),5),"rect"===(e.annotation.style??e.annotation.borderStyle??e.annotation.settings?.borderStyle)?(Jo(),Ko("div",{key:0,class:"border-rect",style:W(y.value)},null,4)):sl("",!0)],4)),!e.isSelected||l.value||e.readOnly?sl("",!0):(Jo(),Ko("div",Ss,[tl("div",{class:"btn action-btn edit-btn",onClick:ps(m,["stop"]),title:"编辑"},"✏️"),tl("div",{class:"btn action-btn delete-btn",onClick:ps(w,["stop"]),title:"删除"},"🗑️")])),e.readOnly&&c.value?(Jo(),Ko("div",{key:3,class:"weld-info-popup",onClick:n[3]||(n[3]=ps(()=>{},["stop"]))},[tl("div",ks,[tl("span",Ms,te(e.annotation.JOT_JointNo||f.value),1),tl("div",{class:"btn weld-info-close",onClick:n[2]||(n[2]=ps(e=>r.value=!1,["stop"]))},"×")]),tl("div",Cs,[e.annotation.JOT_JointNo?(Jo(),Ko("div",Os,[n[4]||(n[4]=tl("span",{class:"weld-info-label"},"焊口编号",-1)),tl("span",Ps,te(e.annotation.JOT_JointNo),1)])):sl("",!0),e.annotation.WED_Code?(Jo(),Ko("div",Es,[n[5]||(n[5]=tl("span",{class:"weld-info-label"},"焊工代号",-1)),tl("span",Ts,te(e.annotation.WED_Code),1)])):sl("",!0),e.annotation.JOT_Location?(Jo(),Ko("div",As,[n[6]||(n[6]=tl("span",{class:"weld-info-label"},"焊接位置",-1)),tl("span",Ls,te(e.annotation.JOT_Location),1)])):sl("",!0),e.annotation.JOT_WeldDate?(Jo(),Ko("div",Rs,[n[7]||(n[7]=tl("span",{class:"weld-info-label"},"焊接日期",-1)),tl("span",js,te(e.annotation.JOT_WeldDate),1)])):sl("",!0),e.annotation.DetectionTypeCode&&"/"!==e.annotation.DetectionTypeCode?(Jo(),Ko("div",Is,[n[8]||(n[8]=tl("span",{class:"weld-info-label"},"检测类型",-1)),tl("span",Ds,te(e.annotation.DetectionTypeCode),1)])):sl("",!0),e.annotation.IsRepair&&"/"!==e.annotation.IsRepair?(Jo(),Ko("div",Fs,[n[9]||(n[9]=tl("span",{class:"weld-info-label"},"是否返修",-1)),tl("span",Vs,te(e.annotation.IsRepair),1)])):sl("",!0),e.annotation.IsHotProcess&&"/"!==e.annotation.IsHotProcess?(Jo(),Ko("div",$s,[n[10]||(n[10]=tl("span",{class:"weld-info-label"},"是否热处理",-1)),tl("span",Ns,te(e.annotation.IsHotProcess),1)])):sl("",!0),e.annotation.JOT_JointStatus?(Jo(),Ko("div",Us,[n[11]||(n[11]=tl("span",{class:"weld-info-label"},"焊口状态",-1)),tl("span",{class:K(["weld-info-value",{"status-repair":"返修"===e.annotation.JOT_JointStatus,"status-normal":"正常"===e.annotation.JOT_JointStatus}])},te(e.annotation.JOT_JointStatus),3)])):sl("",!0)])])):sl("",!0)],36))}},Bs=_s(zs,[["__scopeId","data-v-189cbce7"]]),Ws={key:0,class:"image-placing-banner"},Js=["src"],Hs=["x1","y1","x2","y2"],Ys=["cx","cy"],Xs=["x","y","width","height"],Ks=["cx","cy","r"],qs=["x1","y1","x2","y2"],Gs=["points"],Zs=["cx","cy"],Qs=["x","y","width","height"],ei=["x","y"],ti=["x","y","width","height"],ni=["points","stroke-width"],oi=["points"],li=["x","y","width","height"],si={style:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",zIndex:"2",pointerEvents:"'none'"}},ii=["src","onMousedown","onClick"],ri=["onMousedown"],ai={key:2,style:{color:"#9ca3af"}},ci={__name:"PdfViewer",props:{file:File,page:{type:Number,default:1},scale:{type:Number,default:null},annotationMode:{type:Boolean,default:!1},borderStyle:{type:String,default:"rect"},annotationStyle:{type:String,default:"arrow"},startNumber:{type:Number,default:1},increment:{type:Number,default:1},prefix:{type:String,default:""},suffix:{type:String,default:""},fontSize:{type:Number,default:10},readOnly:{type:Boolean,default:!1},showAllWeldInfo:{type:Boolean,default:!1},singleClickMode:{type:Boolean,default:!0},defaultAngle:{type:String,default:"top-right"},groupMode:{type:Boolean,default:!1},groups:{type:Array,default:()=>[]},lineRenumberMode:{type:Boolean,default:!1},bookmarkMode:{type:Boolean,default:!1}},emits:["loaded","scale-changed","wheel-zoom","place-image","annotation-selected","image-placing-cancelled","image-deleted","annotation-changed","group-created","line-renumber-applied","bookmark-region-selected"],setup(t,{expose:n,emit:o}){const l=t,s=o,i=Mt(null),r=Mt(null),a={page:1,pagesCount:0,rotation:0,getDestinationHash:()=>"#",getAnchorUrl:()=>"",addLinkAttributes:(e,t)=>{t&&(e.href=t,e.target="_blank",e.rel="noopener noreferrer")},goToDestination:()=>{},goToPage:()=>{},executeNamedAction:()=>{},executeDocActions:()=>{},onFileAttachmentAnnotation:()=>{},setHash:()=>{},rotatePage:()=>{},isInPresentationMode:!1,externalLinkEnabled:!0};async function c(t,n){const o=r.value;if(o){o.innerHTML="";try{const l=await t.getAnnotations({intent:"display"});if(!l||0===l.length)return;const s=t.getViewport({scale:n});o.style.position="relative",o.style.width=Math.floor(s.width)+"px",o.style.height=Math.floor(s.height)+"px";try{e.AnnotationLayer.render({viewport:s.clone({dontFlip:!0}),div:o,annotations:l,page:t,linkService:a,downloadManager:null,renderForms:!1})}catch(wi){console.warn("官方批注层渲染失败:",wi)}!function(e,t,n){let o=0;for(const l of t){if("FreeText"!==l.subtype)continue;const t=l.textContent&&l.textContent.length?l.textContent:l.contentsObj?.str?[l.contentsObj.str]:null;if(!t)continue;const[s,i,r,a]=n.convertToViewportRectangle(l.rect),c=Math.min(s,r),u=Math.min(i,a),f=Math.abs(r-s),d=Math.abs(a-i);if(f<=0||d<=0)continue;const p=t.join("\n"),h=[...p].reduce((e,t)=>e+(t.charCodeAt(0)>255?1:.55),0),v=Math.max(4,Math.min(.45*d,h>0?.95*f/h:.45*d)),g=document.createElement("div");g.className="pdf-freetext-annot",g.textContent=p,g.style.cssText=`position:absolute;left:${c}px;top:${u}px;width:${f}px;height:${d}px;display:flex;align-items:center;justify-content:flex-start;overflow:hidden;font-size:${v}px;line-height:1.2;white-space:nowrap;color:#000;font-family:SimHei,"黑体","Microsoft YaHei","PingFang SC",sans-serif;pointer-events:none;user-select:none;z-index:5;`,e.appendChild(g),o++}o>0&&console.info(`FreeText批注覆盖层:已渲染 ${o}`)}(o,l,s)}catch(wi){console.warn("PDF批注层渲染失败:",wi)}}}let u=null,f=null,d=null;const p=Mt({x:0,y:0}),h=Mt(!1);let v=null;const g=kl(()=>L.value||l.groupMode?"crosshair":l.lineRenumberMode?"url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Ccircle cx='12' cy='12' r='8' fill='none' stroke='%23f59e0b' stroke-width='2'/%3E%3C/svg%3E\") 12 12, crosshair":l.bookmarkMode?"crosshair":l.annotationMode&&!h.value?"url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20'%3E%3Ccircle cx='10' cy='10' r='8' fill='none' stroke='%23ef4444' stroke-width='2'/%3E%3C/svg%3E\") 10 10, crosshair":h.value?"grabbing":"grab"),y=Mt(null),m=Mt(null),x=Mt(null),b=Mt(null),w=Mt(!1),_=Mt([]),S=kl(()=>(l.groups||[]).filter(e=>e.page===l.page)),k=Mt(1),M=Mt({}),C=Mt([]);let O=0,P=0;const E=Mt(1);let T=null;const A=Mt(null),L=kl(()=>null!==A.value),R=Mt({show:!1,x:0,y:0}),j=Mt(80),I=Mt(1),D=Mt(null);let F={};const V=Mt(null),$=Mt(0),N=Mt(0);let U=!1,z=null,B=null,J=null,H=0;const Y=Mt({}),X=kl(()=>M.value[l.page]||[]);async function q(e){if(!u)return;if(f)try{f.cancel()}catch(wi){}const t=await u.getPage(e);try{const n=t.rotate||0;H=(n%360+360)%360,Y.value[e]=H,0!==H&&console.warn(`⚠️ 第 ${e} 页已旋转 ${H}°。标注和图片已自动调整坐标。`)}catch(wi){console.debug("Could not read page rotation:",wi.message),H=0,Y.value[e]=0}let n=l.scale;const o=t.getViewport({scale:1});if(O=o.width,P=o.height,!n){const e=i.value&&i.value.parentElement,t=e&&e.clientWidth?e.clientWidth-24:o.width,l=e&&e.clientHeight?e.clientHeight-24:o.height,s=t/o.width,r=l/o.height;n=Math.min(s,r)}const r=window.devicePixelRatio||1,a=t.getViewport({scale:n*r});E.value=n,$.value=Math.floor(a.width/r),N.value=Math.floor(a.height/r),null===l.scale&&s("scale-changed",n),k.value=n;const d=i.value;d.width=Math.floor(a.width),d.height=Math.floor(a.height),d.style.width=Math.floor(a.width/r)+"px",d.style.height=Math.floor(a.height/r)+"px",p.value={x:0,y:0};const h={canvasContext:d.getContext("2d"),viewport:a};f=t.render(h),await f.promise,f=null,await c(t,n),C.value=F[e]||[],oe()}function G(e){if(u)if(A.value)!function(e){if(console.log("placeImage 被调用,临时图片大小:",A.value?.length,"字节"),!A.value||0===O)return;const t=i.value;if(!t)return;const n=t.getBoundingClientRect(),o=e.clientX-n.left,r=e.clientY-n.top,a=window.devicePixelRatio||1,c=r*a,u=o*a/(E.value*a),f=c/(E.value*a);if(u<0||f<0||u>O||f>P)return;const d=j.value/E.value,p=d/I.value,h={src:A.value,x:u-d/2,y:f-p/2,width:d,height:p,pageNum:l.page};console.log("即将放置图片,图片数据大小:",h.src?.length,"字节"),s("place-image",h),A.value=null,R.value={show:!1,x:0,y:0}}(e);else{if(l.bookmarkMode){const t=i.value.getBoundingClientRect();return x.value={x:e.clientX-t.left,y:e.clientY-t.top},void(b.value={...x.value})}if(l.groupMode){const t=i.value.getBoundingClientRect();return y.value={x:e.clientX-t.left,y:e.clientY-t.top},void(m.value={...y.value})}if(l.lineRenumberMode){const t=i.value.getBoundingClientRect();return w.value=!0,void(_.value=[{x:e.clientX-t.left,y:e.clientY-t.top}])}!l.annotationMode||h.value?(h.value=!0,v={x:e.clientX-p.value.x,y:e.clientY-p.value.y}):function(e){const t=i.value;if(!t||0===O)return;const n=t.getBoundingClientRect(),o=e.clientX-n.left,r=e.clientY-n.top,a=window.devicePixelRatio||1,c=r*a,u=o*a/(E.value*a),f=c/(E.value*a);if(u<0||f<0||u>O||f>P)return;if(T){const e={...T,x:u,y:f};M.value[l.page].push(e),T=null,s("annotation-changed"),oe()}else{M.value[l.page]||(M.value[l.page]=[]);let e=l.startNumber-l.increment;for(const o in M.value){const t=M.value[o];if(t.length>0){const n=t[t.length-1];n.displayValue>e&&(e=n.displayValue)}}const t=e+l.increment,n=l.prefix+t+l.suffix;if(T={x2:u,y2:f,displayValue:t,text:n,style:l.borderStyle,annotationStyle:l.annotationStyle,settings:{prefix:l.prefix,suffix:l.suffix,startNumber:l.startNumber,increment:l.increment,fontSize:l.fontSize}},l.singleClickMode){const{dx:e,dy:t}=ws(l.defaultAngle,50),n=Math.min(Math.max(u+e,0),O),o=Math.min(Math.max(f+t,0),P),i={...T,x:n,y:o};return M.value[l.page].push(i),T=null,s("annotation-changed"),void oe()}oe()}}(e)}}function Z(e){if(L.value&&i.value){const t=i.value.parentElement.getBoundingClientRect(),n=j.value/I.value;R.value={show:!0,x:e.clientX-t.left-j.value/2,y:e.clientY-t.top-n/2}}if(l.bookmarkMode&&x.value){const t=i.value.getBoundingClientRect();return void(b.value={x:e.clientX-t.left,y:e.clientY-t.top})}if(l.groupMode&&y.value){const t=i.value.getBoundingClientRect();return void(m.value={x:e.clientX-t.left,y:e.clientY-t.top})}if(l.lineRenumberMode&&w.value){const t=i.value.getBoundingClientRect(),n={x:e.clientX-t.left,y:e.clientY-t.top},o=_.value[_.value.length-1];return void((!o||Math.hypot(n.x-o.x,n.y-o.y)>4)&&(_.value=[..._.value,n]))}h.value&&(p.value={x:e.clientX-v.x,y:e.clientY-v.y})}function Q(e){if(l.bookmarkMode&&x.value){const e=x.value,t=b.value||e,n=Math.min(e.x,t.x),o=Math.min(e.y,t.y),i=Math.max(e.x,t.x),r=Math.max(e.y,t.y);return x.value=null,b.value=null,void(i-n>5&&r-o>5&&s("bookmark-region-selected",{page:l.page,rect:{x1:n/E.value,y1:o/E.value,x2:i/E.value,y2:r/E.value}}))}if(l.groupMode&&y.value){const e=y.value,t=m.value||e,n=Math.min(e.x,t.x),o=Math.min(e.y,t.y),i=Math.max(e.x,t.x),r=Math.max(e.y,t.y);if(i-n>5||r-o>5){const e=n/E.value,t=o/E.value,a=i/E.value,c=r/E.value,u=(M.value[l.page]||[]).filter(n=>{const o=void 0!==n.x2?n.x2:n.x,l=void 0!==n.y2?n.y2:n.y;return o>=e&&o<=a&&l>=t&&l<=c}).map(e=>{const t=e.settings?.prefix??l.prefix,n=e.settings?.suffix??l.suffix;return{displayValue:e.displayValue,label:t+e.displayValue+n,x:e.x,y:e.y,x2:e.x2,y2:e.y2}});s("group-created",{page:l.page,weldList:u,rect:{x1:e,y1:t,x2:a,y2:c}})}return y.value=null,void(m.value=null)}l.lineRenumberMode&&w.value?function(){const e=_.value;if(w.value=!1,_.value=[],e.length<2)return void s("line-renumber-applied",{count:0});const t=e.map(e=>({x:e.x/E.value,y:e.y/E.value})),n=[];let o=0;for(let l=0;l<t.length-1;l++)n.push(o),o+=Math.hypot(t[l+1].x-t[l].x,t[l+1].y-t[l].y);const i=20/E.value,r=M.value[l.page]||[],a=[];if(r.forEach(e=>{const o=void 0!==e.x2?e.x2:e.x,l=void 0!==e.y2?e.y2:e.y;let s=null;for(let i=0;i<t.length-1;i++){const e=t[i],r=t[i+1],{dist:a,t:c}=ee(o,l,e.x,e.y,r.x,r.y);if(!s||a<s.dist){const t=Math.hypot(r.x-e.x,r.y-e.y);s={dist:a,arcLength:n[i]+c*t}}}s&&s.dist<=i&&a.push({ann:e,arcLength:s.arcLength})}),0===a.length)return void s("line-renumber-applied",{count:0});a.sort((e,t)=>e.arcLength-t.arcLength),a.forEach((e,t)=>{e.ann.displayValue=l.startNumber+t*l.increment,e.ann.settings={...e.ann.settings,prefix:l.prefix,suffix:l.suffix,fontSize:l.fontSize,startNumber:l.startNumber,increment:l.increment}}),M.value={...M.value},oe(),s("annotation-changed");const c=l.startNumber+a.length*l.increment;s("line-renumber-applied",{count:a.length,nextStartNumber:c})}():h.value=!1}function ee(e,t,n,o,l,s){const i=l-n,r=s-o,a=i*i+r*r;let c=0===a?0:((e-n)*i+(t-o)*r)/a;c=Math.max(0,Math.min(1,c));const u=n+c*i,f=o+c*r;return{dist:Math.hypot(e-u,t-f),t:c}}function ne(e){if(!u)return;const t=null!==l.scale?l.scale:k.value,n=e.deltaY>0?.9:1.1,o=Math.max(.5,Math.min(3,+(t*n).toFixed(3)));s("wheel-zoom",o)}function oe(){if(i.value&&T){const e=i.value.getContext("2d"),t=window.devicePixelRatio||1,n=T.x2*E.value*t,o=T.y2*E.value*t,l=8*E.value*t;e.beginPath(),e.arc(n,o,l,0,2*Math.PI),e.strokeStyle="rgba(239,68,68,0.6)",e.lineWidth=1.5*t,e.setLineDash([4,3]),e.stroke(),e.setLineDash([])}}function le(e){const t=e.settings?.prefix??l.prefix,n=e.settings?.suffix??l.suffix;return t+(e.displayValue??"")+n}function se(e){const t=le(e),n=(e.settings?.fontSize??l.fontSize)*E.value;return n*t.length*.65+.6*n}function ie(e){const t=E.value,n=e.x*t,o=e.y*t,l=e.x2*t,s=e.y2*t,i=Math.atan2(s-o,l-n);return`${l-8*Math.cos(i-Math.PI/6)},${s-8*Math.sin(i-Math.PI/6)} ${l},${s} ${l-8*Math.cos(i+Math.PI/6)},${s-8*Math.sin(i+Math.PI/6)}`}function re(){V.value=null,D.value=null,s("annotation-selected",null)}function ae(e,t){V.value=e.id||t,s("annotation-selected",{annotation:e,page:l.page,index:t})}function ce(){A.value=null,R.value={show:!1,x:0,y:0},s("image-placing-cancelled")}function ue(){L.value&&ce()}function fe(e){"Escape"===e.key&&L.value&&(ce(),e.preventDefault()),"Delete"!==e.key&&"Backspace"!==e.key||null===D.value||(pe(),e.preventDefault())}function de(e){D.value=e,V.value=null,s("annotation-selected",null)}function pe(){if(null===D.value)return;const e=D.value;C.value.splice(e,1),F[l.page]=[...C.value],D.value=null,s("image-deleted",{page:l.page,images:C.value})}return e.GlobalWorkerOptions.workerSrc=new URL(""+new URL("pdf.worker.min-BHSKYoqd.js",import.meta.url).href,import.meta.url).href,an(()=>l.file,t=>{t&&async function(t){d&&(URL.revokeObjectURL(d),d=null),d=URL.createObjectURL(t);const n=e.getDocument({url:d,cMapUrl:"cmaps/",cMapPacked:!0,standardFontDataUrl:"standard_fonts/"});u=await n.promise,s("loaded",{pdf:u,numPages:u.numPages}),await Yt(),await q(l.page)}(t)}),an(()=>l.page,e=>{u&&q(e)}),an(()=>l.scale,e=>{u&&Yt().then(()=>q(l.page))}),An(()=>{d&&URL.revokeObjectURL(d)}),n({clearCurrentPageAnnotations:function(){M.value[l.page]&&(M.value[l.page]=[]),T=null,oe(),u&&q(l.page)},undoLastAnnotation:function(){if(T)return T=null,void oe();M.value[l.page]&&M.value[l.page].length>0&&(M.value[l.page].pop(),oe(),u&&q(l.page))},getAnnotations:function(){return M.value},setAnnotations:function(e){const t={};for(const n in e||{}){const o=Array.isArray(e[n])?e[n]:[];t[n]=o.map(e=>{const t=e?.borderStyle??e?.style??e?.settings?.borderStyle??l.borderStyle??"none",n=e?.fontSize??e?.settings?.fontSize??l.fontSize,o=e?.annotationStyle??e?.settings?.annotationStyle??l.annotationStyle??"arrow";return{...e,displayValue:e?.displayValue??e?.label??"",style:e?.style??t,borderStyle:t,fontSize:n,annotationStyle:o,settings:{...e?.settings,fontSize:n,borderStyle:t,annotationStyle:o}}})}M.value=t,oe()},setImages:function(e){F=e,C.value=e[l.page]||[]},renderPage:q,annotations:M,setTemporaryImage:function(e,t=80){console.log("setTemporaryImage 被调用,图片大小:",e?.length,"字节, 尺寸:",t),A.value=e,j.value=t,R.value={show:!1,x:0,y:0};const n=new Image;n.onload=()=>{I.value=n.width/n.height,console.log("图片加载完成,宽高比:",I.value)},n.src=e,i.value&&i.value.parentElement&&i.value.parentElement.focus()},cancelImagePlacing:ce,updateAnnotation:function(e,t,n){M.value[e]&&(M.value[e][t]=n,M.value={...M.value},u&&e===l.page&&q(l.page))},deleteAnnotation:function(e,t){M.value[e]&&(M.value[e].splice(t,1),V.value=null,M.value={...M.value},u&&e===l.page&&q(l.page))},clearSelection:re,selectAnnotation:function(e){const t=M.value[l.page];!t||e<0||e>=t.length||ae(t[e],e)},imagePlacingMode:L,getPageRotations:function(){return Y.value},renumberCurrentPageAnnotations:function(e,t,n,o,s){const i=M.value[l.page];i&&0!==i.length&&(i.forEach((l,i)=>{l.displayValue=e+i*t,l.settings={...l.settings,prefix:n,suffix:o,fontSize:s,startNumber:e,increment:t}}),M.value={...M.value})},addAnnotationsToPage:function(e,t){M.value[e]||(M.value[e]=[]),M.value[e].push(...t),M.value={...M.value}}}),(e,n)=>(Jo(),Ko("div",{class:"canvas-wrapper",style:W({cursor:g.value,position:"relative"}),onMousedown:G,onMousemove:Z,onMouseup:Q,onMouseleave:Q,onWheel:ps(ne,["prevent"]),onClick:ps(re,["self"]),onContextmenu:ps(ue,["prevent"]),onKeydown:fe,tabindex:"0"},[L.value?(Jo(),Ko("div",Ws,[n[0]||(n[0]=tl("div",{class:"banner-content"},[tl("span",{class:"banner-icon"},"📍"),tl("span",null,"点击PDF上要放置图片的位置"),tl("span",{class:"banner-hint"},"(按 ESC 或右键取消)")],-1)),tl("div",{class:"btn banner-cancel",onClick:ps(ce,["stop"])},"取消")])):sl("",!0),L.value&&R.value.show?(Jo(),Ko("div",{key:1,class:"image-preview-cursor",style:W({left:R.value.x+"px",top:R.value.y+"px",width:j.value+"px",height:j.value/I.value+"px"})},[tl("img",{src:A.value,alt:"preview",style:{width:"100%",height:"100%","object-fit":"contain"}},null,8,Js)],4)):sl("",!0),tl("canvas",{ref_key:"canvas",ref:i,style:W({transform:`translate(${p.value.x}px, ${p.value.y}px)`,position:"relative",zIndex:1})},null,4),tl("div",{class:"pdf-annotation-layer",style:W({transform:`translate(${p.value.x}px, ${p.value.y}px)`,"--scale-factor":E.value})},[tl("div",{ref_key:"pdfAnnotLayer",ref:r,class:"annotationLayer"},null,512)],4),tl("div",{class:"annotations-layer",style:W({transform:`translate(${p.value.x}px, ${p.value.y}px)`})},[(Jo(!0),Ko($o,null,Vn(X.value,(e,t)=>(Jo(),qo(Bs,{key:e.id||t,annotation:e,scale:E.value,offset:{x:0,y:0},"is-selected":V.value===(e.id||t),prefix:l.prefix,suffix:l.suffix,"read-only":l.readOnly,"show-all-info":l.showAllWeldInfo,"default-annotation-style":l.annotationStyle,onSelect:n=>ae(e,t),onUpdate:e=>function(e,t){M.value[l.page]&&(M.value[l.page][e]=t,M.value={...M.value})}(t,e),onDelete:e=>function(e){M.value[l.page]&&(M.value[l.page].splice(e,1),V.value=null,s("annotation-selected",null),M.value={...M.value},u&&q(l.page))}(t),onDragStart:e=>function(e,t){U=!0,z=t,B={x:e.startX,y:e.startY},J={...e.annotation};const n=e=>{if(!U)return;const t=(e.clientX-B.x)/E.value,n=(e.clientY-B.y)/E.value,o=M.value[l.page][z];o&&(o.x=Math.max(0,Math.min(O,J.x+t)),o.y=Math.max(0,Math.min(P,J.y+n)),M.value={...M.value})},o=()=>{U=!1,z=null,B=null,J=null,window.removeEventListener("mousemove",n),window.removeEventListener("mouseup",o)};window.addEventListener("mousemove",n),window.addEventListener("mouseup",o)}(e,t)},null,8,["annotation","scale","is-selected","prefix","suffix","read-only","show-all-info","default-annotation-style","onSelect","onUpdate","onDelete","onDragStart"]))),128)),(Jo(),Ko("svg",{class:"connection-lines",style:W({width:$.value+"px",height:N.value+"px"})},[(Jo(!0),Ko($o,null,Vn(X.value,(e,t)=>(Jo(),Ko("g",{key:"line-"+t},[void 0!==e.x2&&void 0!==e.y2?(Jo(),Ko($o,{key:0},["circle-outline"===(e.annotationStyle||l.annotationStyle)?(Jo(),Ko($o,{key:0},[tl("line",{x1:e.x*E.value,y1:e.y*E.value,x2:e.x2*E.value,y2:e.y2*E.value,stroke:"#ef4444","stroke-width":"0.8","stroke-linecap":"round"},null,8,Hs),tl("circle",{cx:e.x2*E.value,cy:e.y2*E.value,r:"6",fill:"none",stroke:"#ef4444","stroke-width":"1.2","stroke-dasharray":"3 2"},null,8,Ys),le(e).length>2?(Jo(),Ko("rect",{key:0,x:e.x*E.value-se(e)/2,y:e.y*E.value-(e.settings?.fontSize??l.fontSize)*E.value*.75,width:se(e),height:(e.settings?.fontSize??l.fontSize)*E.value*1.5,rx:"3",ry:"3",fill:"#ef4444"},null,8,Xs)):(Jo(),Ko("circle",{key:1,cx:e.x*E.value,cy:e.y*E.value,r:(e.settings?.fontSize??l.fontSize)*E.value*.75,fill:"#ef4444"},null,8,Ks))],64)):(Jo(),Ko($o,{key:1},[tl("line",{x1:e.x*E.value,y1:e.y*E.value,x2:e.x2*E.value,y2:e.y2*E.value,stroke:"#000000","stroke-width":"0.8"},null,8,qs),"arrow"===(e.annotationStyle||l.annotationStyle)?(Jo(),Ko("polygon",{key:0,points:ie(e),fill:"#000000"},null,8,Gs)):(Jo(),Ko("circle",{key:1,cx:e.x2*E.value,cy:e.y2*E.value,r:"4",fill:"#000000"},null,8,Zs))],64))],64)):sl("",!0)]))),128)),(Jo(!0),Ko($o,null,Vn(S.value,(e,t)=>(Jo(),Ko("g",{key:"grp-"+t},[tl("rect",{x:e.rect.x1*E.value,y:e.rect.y1*E.value,width:(e.rect.x2-e.rect.x1)*E.value,height:(e.rect.y2-e.rect.y1)*E.value,fill:"rgba(14,165,233,0.07)",stroke:"#0ea5e9","stroke-width":"1.5","stroke-dasharray":"6 3",rx:"3"},null,8,Qs),tl("text",{x:e.rect.x1*E.value+4,y:e.rect.y1*E.value+13,fill:"#0284c7","font-size":"11","font-weight":"600","font-family":"Arial, sans-serif"},te(e.name),9,ei)]))),128)),y.value&&m.value?(Jo(),Ko("rect",{key:0,x:Math.min(y.value.x,m.value.x),y:Math.min(y.value.y,m.value.y),width:Math.abs(m.value.x-y.value.x),height:Math.abs(m.value.y-y.value.y),fill:"rgba(14,165,233,0.1)",stroke:"#0ea5e9","stroke-width":"1.5","stroke-dasharray":"6 3",rx:"3"},null,8,ti)):sl("",!0),_.value.length>1?(Jo(),Ko("polyline",{key:1,points:_.value.map(e=>`${e.x},${e.y}`).join(" "),fill:"none",stroke:"rgba(245,158,11,0.24)","stroke-width":40,"stroke-linecap":"round","stroke-linejoin":"round"},null,8,ni)):sl("",!0),_.value.length>1?(Jo(),Ko("polyline",{key:2,points:_.value.map(e=>`${e.x},${e.y}`).join(" "),fill:"none",stroke:"#f59e0b","stroke-width":"2","stroke-dasharray":"6 4","stroke-linecap":"round","stroke-linejoin":"round"},null,8,oi)):sl("",!0),x.value&&b.value?(Jo(),Ko("rect",{key:3,x:Math.min(x.value.x,b.value.x),y:Math.min(x.value.y,b.value.y),width:Math.abs(b.value.x-x.value.x),height:Math.abs(b.value.y-x.value.y),fill:"rgba(168,85,247,0.12)",stroke:"#a855f7","stroke-width":"1.5","stroke-dasharray":"6 3",rx:"3"},null,8,li)):sl("",!0)],4))],4),tl("div",si,[(Jo(!0),Ko($o,null,Vn(C.value,(e,t)=>(Jo(),Ko("div",{key:e.src.slice(-20)+t,class:K({"image-selected":D.value===t}),style:W({position:"absolute",left:e.x*E.value+p.value.x+"px",top:e.y*E.value+p.value.y+"px",width:e.width*E.value+"px",height:e.height*E.value+"px",zIndex:D.value===t?10:3})},[tl("img",{src:e.src,style:W({width:"100%",height:"100%",border:D.value===t?"3px solid #ef4444":"2px solid #3b82f6",boxSizing:"border-box",objectFit:"contain",pointerEvents:"all",cursor:"move",boxShadow:D.value===t?"0 0 12px rgba(239,68,68,0.5)":"none"}),onMousedown:ps(e=>function(e,t){de(t),h.value=!1;const n=e.clientX,o=e.clientY,l=C.value[t],s=l.x,i=l.y,r=e=>{const t=(e.clientX-n)/E.value,r=(e.clientY-o)/E.value;l.x=Math.max(0,Math.min(O,s+t)),l.y=Math.max(0,Math.min(P,i+r)),C.value=[...C.value]},a=()=>{window.removeEventListener("mousemove",r),window.removeEventListener("mouseup",a)};window.addEventListener("mousemove",r),window.addEventListener("mouseup",a)}(e,t),["stop"]),onClick:ps(e=>de(t),["stop"])},null,44,ii),tl("div",{style:W({position:"absolute",bottom:"-6px",right:"-6px",width:"12px",height:"12px",background:D.value===t?"#ef4444":"#3b82f6",cursor:"nwse-resize",borderRadius:"2px",pointerEvents:"all"}),onMousedown:ps(e=>function(e,t){h.value=!1,de(t);const n=e.clientX,o=e.clientY,l=C.value[t],s=l.width,i=l.height,r=e=>{const t=e.clientX-n,r=e.clientY-o,a=20/E.value,c=Math.max(a,s+t/E.value),u=Math.max(a,i+r/E.value);l.width=c,l.height=u,C.value=[...C.value]},a=()=>{window.removeEventListener("mousemove",r),window.removeEventListener("mouseup",a)};window.addEventListener("mousemove",r),window.addEventListener("mouseup",a)}(e,t),["stop"])},null,44,ri),D.value===t?(Jo(),Ko("div",{key:0,class:"btn image-delete-btn",onClick:ps(pe,["stop"]),title:"删除图片 (Del)"}," × ")):sl("",!0)],6))),128))]),t.file?sl("",!0):(Jo(),Ko("div",ai,"请从左侧选择一个 PDF 文件。"))],36))}},ui=_s(ci,[["__scopeId","data-v-5479fa65"]]);function fi(e){const t=atob(e),n=new Uint8Array(t.length);for(let o=0;o<t.length;o++)n[o]=t.charCodeAt(o);return n}function di(e){const t=e.match(/^data:image\/([\w+]+);base64,(.+)$/);return t?{format:t[1].toLowerCase().replace("svg+xml","svg"),data:t[2]}:{format:null,data:null}}async function pi(e){try{const n=[e];for(const o of n)try{const t=await fetch(o);if(t.ok){const n=await t.blob(),o=await n.arrayBuffer(),l=new Uint8Array(o),s=n.type||"";let i="png";return s.includes("jpeg")||s.includes("jpg")||e.match(/\.jpe?g/i)?i="jpg":(s.includes("png")||e.match(/\.png/i))&&(i="png"),{bytes:l,format:i}}}catch(t){console.warn(`fetch ${o.substring(0,80)} 失败:`,t.message)}return console.warn("所有方式均无法加载图片:",e.substring(0,100)),null}catch(wi){return console.warn("加载图片URL失败:",wi.message),null}}function hi(e){const{width:t,height:n}=e.getSize();return{width:t,height:n}}function vi(e,t,n,o,l,s,i){switch(i){case 90:return{x:t,y:e};case 180:return{x:l-e,y:t};case 270:return{x:l-t,y:s-e};default:return{x:e,y:s-t}}}async function gi(e,i,r,a,c={}){const u=await t.load(e),f=u.getPages(),{startNumber:d,increment:p,prefix:h,suffix:v,fontSize:g,borderStyle:y,annotationStyle:m}=a;for(let t=0;t<f.length;t++){const e=f[t],l=t+1,s=i[l]||[],a=r[l]||[],d=hi(e),{width:p,height:x}=d,b=c[l]||0;for(const t of a)try{if(!t.src)continue;let o=null,l=null;const s=di(t.src);if(s.data)l=s.format,o=fi(s.data);else{const e=await pi(t.src);e&&(l=e.format,o=e.bytes)}if(!o||!l){console.warn("无法加载图片:",t.src.substring(0,100));continue}let i;try{if("png"===l)i=await u.embedPng(o);else{if("jpeg"!==l&&"jpg"!==l){console.warn(`Unsupported image format: ${l}`);continue}i=await u.embedJpg(o)}const s=vi(t.x,t.y,0,0,p,x,b);let r=t.width,a=t.height;if(0!==b){const t=n(b);let o=s.x,l=s.y-a;90===b?(o=s.x+a,l=s.y):180===b?(o=s.x+r,l=s.y):270===b&&(o=s.x-a,l=s.y),e.drawImage(i,{x:o,y:l,width:r,height:a,rotate:t})}else e.drawImage(i,{x:s.x,y:s.y-a,width:r,height:a})}catch(wi){console.warn("Failed to embed image:",wi.message)}}catch(wi){console.warn("Error processing image:",wi.message)}s.forEach(t=>{const l=vi(t.x,t.y,0,0,p,x,b);let s=l.x,i=l.y;const r=t.settings?.prefix??h,a=t.settings?.suffix??v,c=t.fontSize??t.settings?.fontSize??g,u=t.style??t.borderStyle??t.settings?.borderStyle??y,f=t.annotationStyle??t.settings?.annotationStyle??m??"arrow",d=r+(t.displayValue??t.label??"")+a,w=d.length*c*.55,_=w+8,S=c+8,k=s-w/2,M=i-.3*c,C=k-4,O=M-4;if(void 0!==t.x2&&void 0!==t.y2){const l=vi(t.x2,t.y2,0,0,p,x,b);let r=s,a=i,c=l.x,u=l.y;e.drawLine({start:{x:r,y:a},end:{x:c,y:u},thickness:.5,color:o(0,0,0)});const d=f;if("circle-outline"===d){e.drawLine({start:{x:r,y:a},end:{x:c,y:u},thickness:.5,color:o(.93,.27,.27)});const l=4,s=10;for(let t=0;t<s;t++){if(t%2==1)continue;const n=t/s*Math.PI*2,i=(t+.8)/s*Math.PI*2;e.drawLine({start:{x:c+l*Math.cos(n),y:u+l*Math.sin(n)},end:{x:c+l*Math.cos(i),y:u+l*Math.sin(i)},thickness:.8,color:o(.93,.27,.27)})}const i=t.fontSize??t.settings?.fontSize??g,f=t.settings?.prefix??h,d=t.settings?.suffix??v,p=f+t.displayValue+d,y=.85*i,m=.75*i;if(p.length>2){const t=.65*y,l=p.length*t+.6*y,s=1.5*i;let c,u;90===b?(c=r+s/2,u=a-l/2):180===b?(c=r+l/2,u=a+s/2):270===b?(c=r-s/2,u=a+l/2):(c=r-l/2,u=a-s/2),e.drawRectangle({x:c,y:u,width:l,height:s,color:o(.93,.27,.27),rotate:0!==b?n(b):void 0})}else e.drawCircle({x:r,y:a,size:m,color:o(.93,.27,.27)});const x=.55*y,w=p.length*x/2,_=.35*y;return void(270===b?e.drawText(p,{x:r-_,y:a+w,size:y,color:o(1,1,1),rotate:n(270)}):e.drawText(p,{x:r-w,y:a-_,size:y,color:o(1,1,1),rotate:0!==b?n(b):void 0}))}"arrow"===d?yi(e,c,u,r,a,3):e.drawCircle({x:c,y:u,size:2.5,color:o(0,0,0)})}if(90==b){const t=s+S/2,l=i-w/2,r=s+S/2,a=i-_/2;return"rect"===u&&e.drawRectangle({x:r,y:a,width:_,height:S,borderColor:o(0,0,0),borderWidth:.5,rotate:n(90)}),void e.drawText(d,{x:t-S/4,y:l,size:c,color:o(0,0,0),rotate:n(90)})}if(270==b){const t=s,l=i+w/2,r=s-S/2,a=i+_/2;return"rect"===u&&e.drawRectangle({x:r,y:a,width:_,height:S,borderColor:o(0,0,0),borderWidth:.5,rotate:n(270)}),void e.drawText(d,{x:t-S/4,y:l,size:c,color:o(0,0,0),rotate:n(270)})}"rect"===u&&e.drawRectangle({x:C,y:O,width:_,height:S,borderColor:o(0,0,0),borderWidth:.5,rotate:0!==b?n(b):void 0}),e.drawText(d,{x:k,y:M,size:c,color:o(0,0,0),rotate:0!==b?n(b):void 0})})}try{const e=JSON.stringify({version:"1.1",exportDate:(new Date).toISOString(),globalSettings:a,annotations:i}),t=(new TextEncoder).encode(e),n=Array.from(t,e=>e.toString(16).padStart(2,"0")).join("");u.catalog.set(l.of("WeldAnnotations"),s.of(n))}catch(wi){console.warn("嵌入标注数据失败:",wi.message)}return await u.save()}function yi(e,t,n,l,s,i){const r=Math.atan2(n-s,t-l),a=t-i*Math.cos(r-Math.PI/6),c=n-i*Math.sin(r-Math.PI/6),u=t-i*Math.cos(r+Math.PI/6),f=n-i*Math.sin(r+Math.PI/6);e.drawLine({start:{x:a,y:c},end:{x:t,y:n},thickness:.8,color:o(0,0,0)}),e.drawLine({start:{x:u,y:f},end:{x:t,y:n},thickness:.8,color:o(0,0,0)})}async function mi(e,n,o,i=[]){const r=await t.load(e);try{const e={version:"1.1",exportDate:(new Date).toISOString(),globalSettings:o,annotations:n};i&&i.length>0&&(e.groups=i);const t=JSON.stringify(e),a=(new TextEncoder).encode(t),c=Array.from(a,e=>e.toString(16).padStart(2,"0")).join("");r.catalog.set(l.of("WeldAnnotations"),s.of(c))}catch(wi){console.warn("嵌入标注数据失败:",wi.message)}return await r.save()}async function xi(e){try{const n=(await t.load(e,{ignoreEncryption:!0,throwOnInvalidObject:!1})).catalog.lookupMaybe(l.of("WeldAnnotations"),s);if(!n)return null;const o=n.asBytes();let i;i=254===o[0]&&255===o[1]?new TextDecoder("utf-16be").decode(o.slice(2)):255===o[0]&&254===o[1]?new TextDecoder("utf-16le").decode(o.slice(2)):new TextDecoder("utf-8").decode(o);const r=JSON.parse(i);return r.annotations&&r.globalSettings?{annotations:r.annotations,settings:r.globalSettings,version:r.version,groups:r.groups||[]}:null}catch(wi){return console.warn("读取嵌入标注失败:",wi.message),null}}function bi(e,t="annotated.pdf"){const n=new Blob([e],{type:"application/pdf"}),o=URL.createObjectURL(n),l=document.createElement("a");l.href=o,l.download=t,document.body.appendChild(l),l.click(),document.body.removeChild(l),URL.revokeObjectURL(o)}export{xs as A,xi as B,Yt as C,ms as D,An as E,$o as F,ui as P,_s as _,ht as a,sl as b,Ko as c,tl as d,on as e,ll as f,ls as g,rs as h,Vn as i,ps as j,is as k,K as l,kl as m,W as n,Jo as o,Pn as p,nl as q,Mt as r,Ct as s,te as t,gi as u,os as v,an as w,bi as x,mi as y,ws as z};