@hprint/plugins 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Be=require("@hprint/core");var Sf=(a=>(a.ONE="selectOne",a.MULTI="selectMultiple",a.CANCEL="selectCancel",a))(Sf||{}),Xh=(a=>(a.EMPTY="",a.ONE="one",a.MULTI="multiple",a))(Xh||{});const $d=class{static getDeviceDPI(){if(!this._deviceDPI)try{const i=document.createElement("div");i.style.width="1in",i.style.height="0",i.style.position="absolute",i.style.visibility="hidden",document.body.appendChild(i);const s=i.offsetWidth;document.body.removeChild(i),this._deviceDPI=s*window.devicePixelRatio||this.CONSTANTS.DEFAULT_DPI}catch{console.warn("无法获取设备DPI,使用默认值:",this.CONSTANTS.DEFAULT_DPI),this._deviceDPI=this.CONSTANTS.DEFAULT_DPI}return this._deviceDPI}static mmToPx(i,s,o){const v=this.normalizeNumber(i,"毫米值"),b=this.getValidDpi(s),y=v*b/this.CONSTANTS.INCH_TO_MM;return o?.direct?y:Math.ceil(y)}static pxToMm(i,s,o){const v=this.normalizeNumber(i,"像素值"),b=this.getValidDpi(s);return v*this.CONSTANTS.INCH_TO_MM/b}static mmToPxBatch(i,s){return i.map(o=>this.mmToPx(o,s,void 0))}static pxToMmBatch(i,s){return i.map(o=>this.pxToMm(o,s,void 0))}static getValidDpi(i){if(i!=null){const o=this.normalizeNumber(i,"DPI值");if(o<=0)throw new Error("DPI值必须大于0");return o}const s=this.getDeviceDPI();if(s<=0)throw new Error("DPI值必须大于0");return s}static normalizeNumber(i,s){if(typeof i=="string"){const o=i.trim();if(o==="")throw new Error(`${s}不能为空字符串`);const v=Number(o);if(isNaN(v))throw new Error(`${s}必须是有效数字,无法转换: "${i}"`);return v}if(typeof i!="number"||isNaN(i))throw new Error(`${s}必须是有效数字`);return i}static validateNumber(i,s){this.normalizeNumber(i,s)}static resetCache(){this._deviceDPI=null}static ptToPx(i,s){const o=this.normalizeNumber(i,"磅值"),v=this.getValidDpi(void 0),b=o*v/72;return s?.direct?b:Math.ceil(b)}static pxToPt(i){const s=this.normalizeNumber(i,"像素值"),o=this.getValidDpi(void 0);return s*72/o}static ptToPxBatch(i,s){return i.map(o=>this.ptToPx(o,s))}static pxToPtBatch(i){return i.map(s=>this.pxToPt(s))}static mmToPt(i){return this.normalizeNumber(i,"毫米值")*72/25.4}};$d.devicePixelRatio=window.devicePixelRatio,$d.CONSTANTS={INCH_TO_MM:25.4,DEFAULT_DPI:96,STANDARD_DPI:{SCREEN:96,PRINT:300,HIGH_RES:600}};let Bn=$d;const lI=(a,i)=>{const s=[],o=Math.PI*2/a;let v=-Math.PI/2;a%2===0&&(v+=o/2);for(let b=0;b<a;b++){const y=b*o+v;s.push({x:Math.cos(y)*i,y:Math.sin(y)*i})}return s},fI={getPolygonVertices:lI};var b2,hI=new Uint8Array(16);function uI(){if(!b2&&(b2=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!b2))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return b2(hI)}const dI=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function pI(a){return typeof a=="string"&&dI.test(a)}var ga=[];for(var E0=0;E0<256;++E0)ga.push((E0+256).toString(16).substr(1));function gI(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,s=(ga[a[i+0]]+ga[a[i+1]]+ga[a[i+2]]+ga[a[i+3]]+"-"+ga[a[i+4]]+ga[a[i+5]]+"-"+ga[a[i+6]]+ga[a[i+7]]+"-"+ga[a[i+8]]+ga[a[i+9]]+"-"+ga[a[i+10]]+ga[a[i+11]]+ga[a[i+12]]+ga[a[i+13]]+ga[a[i+14]]+ga[a[i+15]]).toLowerCase();if(!pI(s))throw TypeError("Stringified UUID is invalid");return s}function vI(a,i,s){a=a||{};var o=a.random||(a.rng||uI)();return o[6]=o[6]&15|64,o[8]=o[8]&63|128,gI(o)}function AI(a){const i=Object.create(null);for(const s of a.split(","))i[s]=1;return s=>s in i}const Il=process.env.NODE_ENV!=="production"?Object.freeze({}):{};process.env.NODE_ENV!=="production"&&Object.freeze([]);const pl=()=>{},mI=a=>a.charCodeAt(0)===111&&a.charCodeAt(1)===110&&(a.charCodeAt(2)>122||a.charCodeAt(2)<97),Xs=Object.assign,bI=Object.prototype.hasOwnProperty,Jd=(a,i)=>bI.call(a,i),Jn=Array.isArray,Ko=a=>$h(a)==="[object Map]",wI=a=>$h(a)==="[object Set]",_a=a=>typeof a=="function",Ss=a=>typeof a=="string",Pl=a=>typeof a=="symbol",Va=a=>a!==null&&typeof a=="object",yI=a=>(Va(a)||_a(a))&&_a(a.then)&&_a(a.catch),xI=Object.prototype.toString,$h=a=>xI.call(a),Aw=a=>$h(a).slice(8,-1),CI=a=>$h(a)==="[object Object]",Lp=a=>Ss(a)&&a!=="NaN"&&a[0]!=="-"&&""+parseInt(a,10)===a,mw=a=>{const i=Object.create(null);return(s=>i[s]||(i[s]=a(s)))},bw=mw(a=>a.charAt(0).toUpperCase()+a.slice(1)),II=mw(a=>a?`on${bw(a)}`:""),qs=(a,i)=>!Object.is(a,i);let CA;const Jh=()=>CA||(CA=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Gp(a){if(Jn(a)){const i={};for(let s=0;s<a.length;s++){const o=a[s],v=Ss(o)?kI(o):Gp(o);if(v)for(const b in v)i[b]=v[b]}return i}else if(Ss(a)||Va(a))return a}const EI=/;(?![^(]*\))/g,BI=/:([^]+)/,SI=/\/\*[^]*?\*\//g;function kI(a){const i={};return a.replace(SI,"").split(EI).forEach(s=>{if(s){const o=s.split(BI);o.length>1&&(i[o[0].trim()]=o[1].trim())}}),i}function Yp(a){let i="";if(Ss(a))i=a;else if(Jn(a))for(let s=0;s<a.length;s++){const o=Yp(a[s]);o&&(i+=o+" ")}else if(Va(a))for(const s in a)a[s]&&(i+=s+" ");return i.trim()}function as(a,...i){console.warn(`[Vue warn] ${a}`,...i)}let wi;const B0=new WeakSet;class _I{constructor(i){this.fn=i,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,B0.has(this)&&(B0.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||yw(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,IA(this),xw(this);const i=wi,s=N1;wi=this,N1=!0;try{return this.fn()}finally{process.env.NODE_ENV!=="production"&&wi!==this&&as("Active effect was not restored correctly - this is likely a Vue internal bug."),Cw(this),wi=i,N1=s,this.flags&=-3}}stop(){if(this.flags&1){for(let i=this.deps;i;i=i.nextDep)qp(i);this.deps=this.depsTail=void 0,IA(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?B0.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Kd(this)&&this.run()}get dirty(){return Kd(this)}}let ww=0,gl,vl;function yw(a,i=!1){if(a.flags|=8,i){a.next=vl,vl=a;return}a.next=gl,gl=a}function Hp(){ww++}function zp(){if(--ww>0)return;if(vl){let i=vl;for(vl=void 0;i;){const s=i.next;i.next=void 0,i.flags&=-9,i=s}}let a;for(;gl;){let i=gl;for(gl=void 0;i;){const s=i.next;if(i.next=void 0,i.flags&=-9,i.flags&1)try{i.trigger()}catch(o){a||(a=o)}i=s}}if(a)throw a}function xw(a){for(let i=a.deps;i;i=i.nextDep)i.version=-1,i.prevActiveLink=i.dep.activeLink,i.dep.activeLink=i}function Cw(a){let i,s=a.depsTail,o=s;for(;o;){const v=o.prevDep;o.version===-1?(o===s&&(s=v),qp(o),MI(o)):i=o,o.dep.activeLink=o.prevActiveLink,o.prevActiveLink=void 0,o=v}a.deps=i,a.depsTail=s}function Kd(a){for(let i=a.deps;i;i=i.nextDep)if(i.dep.version!==i.version||i.dep.computed&&(Iw(i.dep.computed)||i.dep.version!==i.version))return!0;return!!a._dirty}function Iw(a){if(a.flags&4&&!(a.flags&16)||(a.flags&=-17,a.globalVersion===El)||(a.globalVersion=El,!a.isSSR&&a.flags&128&&(!a.deps&&!a._dirty||!Kd(a))))return;a.flags|=2;const i=a.dep,s=wi,o=N1;wi=a,N1=!0;try{xw(a);const v=a.fn(a._value);(i.version===0||qs(v,a._value))&&(a.flags|=128,a._value=v,i.version++)}catch(v){throw i.version++,v}finally{wi=s,N1=o,Cw(a),a.flags&=-3}}function qp(a,i=!1){const{dep:s,prevSub:o,nextSub:v}=a;if(o&&(o.nextSub=v,a.prevSub=void 0),v&&(v.prevSub=o,a.nextSub=void 0),process.env.NODE_ENV!=="production"&&s.subsHead===a&&(s.subsHead=v),s.subs===a&&(s.subs=o,!o&&s.computed)){s.computed.flags&=-5;for(let b=s.computed.deps;b;b=b.nextDep)qp(b,!0)}!i&&!--s.sc&&s.map&&s.map.delete(s.key)}function MI(a){const{prevDep:i,nextDep:s}=a;i&&(i.nextDep=s,a.prevDep=void 0),s&&(s.prevDep=i,a.nextDep=void 0)}let N1=!0;const Ew=[];function lc(){Ew.push(N1),N1=!1}function fc(){const a=Ew.pop();N1=a===void 0?!0:a}function IA(a){const{cleanup:i}=a;if(a.cleanup=void 0,i){const s=wi;wi=void 0;try{i()}finally{wi=s}}}let El=0;class TI{constructor(i,s){this.sub=i,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}let Wp=class{constructor(i){this.computed=i,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,process.env.NODE_ENV!=="production"&&(this.subsHead=void 0)}track(i){if(!wi||!N1||wi===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==wi)s=this.activeLink=new TI(wi,this),wi.deps?(s.prevDep=wi.depsTail,wi.depsTail.nextDep=s,wi.depsTail=s):wi.deps=wi.depsTail=s,Bw(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const o=s.nextDep;o.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=o),s.prevDep=wi.depsTail,s.nextDep=void 0,wi.depsTail.nextDep=s,wi.depsTail=s,wi.deps===s&&(wi.deps=o)}return process.env.NODE_ENV!=="production"&&wi.onTrack&&wi.onTrack(Xs({effect:wi},i)),s}trigger(i){this.version++,El++,this.notify(i)}notify(i){Hp();try{if(process.env.NODE_ENV!=="production")for(let s=this.subsHead;s;s=s.nextSub)s.sub.onTrigger&&!(s.sub.flags&8)&&s.sub.onTrigger(Xs({effect:s.sub},i));for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{zp()}}};function Bw(a){if(a.dep.sc++,a.sub.flags&4){const i=a.dep.computed;if(i&&!a.dep.subs){i.flags|=20;for(let o=i.deps;o;o=o.nextDep)Bw(o)}const s=a.dep.subs;s!==a&&(a.prevSub=s,s&&(s.nextSub=a)),process.env.NODE_ENV!=="production"&&a.dep.subsHead===void 0&&(a.dep.subsHead=a),a.dep.subs=a}}const Zd=new WeakMap,yo=Symbol(process.env.NODE_ENV!=="production"?"Object iterate":""),ep=Symbol(process.env.NODE_ENV!=="production"?"Map keys iterate":""),Bl=Symbol(process.env.NODE_ENV!=="production"?"Array iterate":"");function za(a,i,s){if(N1&&wi){let o=Zd.get(a);o||Zd.set(a,o=new Map);let v=o.get(s);v||(o.set(s,v=new Wp),v.map=o,v.key=s),process.env.NODE_ENV!=="production"?v.track({target:a,type:i,key:s}):v.track()}}function Hs(a,i,s,o,v,b){const y=Zd.get(a);if(!y){El++;return}const g=l=>{l&&(process.env.NODE_ENV!=="production"?l.trigger({target:a,type:i,key:s,newValue:o,oldValue:v,oldTarget:b}):l.trigger())};if(Hp(),i==="clear")y.forEach(g);else{const l=Jn(a),h=l&&Lp(s);if(l&&s==="length"){const u=Number(o);y.forEach((f,p)=>{(p==="length"||p===Bl||!Pl(p)&&p>=u)&&g(f)})}else switch((s!==void 0||y.has(void 0))&&g(y.get(s)),h&&g(y.get(Bl)),i){case"add":l?h&&g(y.get("length")):(g(y.get(yo)),Ko(a)&&g(y.get(ep)));break;case"delete":l||(g(y.get(yo)),Ko(a)&&g(y.get(ep)));break;case"set":Ko(a)&&g(y.get(yo));break}}zp()}function Lo(a){const i=$r(a);return i===a?i:(za(i,"iterate",Bl),Xa(a)?i:i.map(ks))}function Vp(a){return za(a=$r(a),"iterate",Bl),a}function Ls(a,i){return ss(a)?Zo(a)?kl(ks(i)):kl(i):ks(i)}const OI={__proto__:null,[Symbol.iterator](){return S0(this,Symbol.iterator,a=>Ls(this,a))},concat(...a){return Lo(this).concat(...a.map(i=>Jn(i)?Lo(i):i))},entries(){return S0(this,"entries",a=>(a[1]=Ls(this,a[1]),a))},every(a,i){return bs(this,"every",a,i,void 0,arguments)},filter(a,i){return bs(this,"filter",a,i,s=>s.map(o=>Ls(this,o)),arguments)},find(a,i){return bs(this,"find",a,i,s=>Ls(this,s),arguments)},findIndex(a,i){return bs(this,"findIndex",a,i,void 0,arguments)},findLast(a,i){return bs(this,"findLast",a,i,s=>Ls(this,s),arguments)},findLastIndex(a,i){return bs(this,"findLastIndex",a,i,void 0,arguments)},forEach(a,i){return bs(this,"forEach",a,i,void 0,arguments)},includes(...a){return k0(this,"includes",a)},indexOf(...a){return k0(this,"indexOf",a)},join(a){return Lo(this).join(a)},lastIndexOf(...a){return k0(this,"lastIndexOf",a)},map(a,i){return bs(this,"map",a,i,void 0,arguments)},pop(){return Zc(this,"pop")},push(...a){return Zc(this,"push",a)},reduce(a,...i){return EA(this,"reduce",a,i)},reduceRight(a,...i){return EA(this,"reduceRight",a,i)},shift(){return Zc(this,"shift")},some(a,i){return bs(this,"some",a,i,void 0,arguments)},splice(...a){return Zc(this,"splice",a)},toReversed(){return Lo(this).toReversed()},toSorted(a){return Lo(this).toSorted(a)},toSpliced(...a){return Lo(this).toSpliced(...a)},unshift(...a){return Zc(this,"unshift",a)},values(){return S0(this,"values",a=>Ls(this,a))}};function S0(a,i,s){const o=Vp(a),v=o[i]();return o!==a&&!Xa(a)&&(v._next=v.next,v.next=()=>{const b=v._next();return b.done||(b.value=s(b.value)),b}),v}const RI=Array.prototype;function bs(a,i,s,o,v,b){const y=Vp(a),g=y!==a&&!Xa(a),l=y[i];if(l!==RI[i]){const f=l.apply(a,b);return g?ks(f):f}let h=s;y!==a&&(g?h=function(f,p){return s.call(this,Ls(a,f),p,a)}:s.length>2&&(h=function(f,p){return s.call(this,f,p,a)}));const u=l.call(y,h,o);return g&&v?v(u):u}function EA(a,i,s,o){const v=Vp(a);let b=s;return v!==a&&(Xa(a)?s.length>3&&(b=function(y,g,l){return s.call(this,y,g,l,a)}):b=function(y,g,l){return s.call(this,y,Ls(a,g),l,a)}),v[i](b,...o)}function k0(a,i,s){const o=$r(a);za(o,"iterate",Bl);const v=o[i](...s);return(v===-1||v===!1)&&kf(s[0])?(s[0]=$r(s[0]),o[i](...s)):v}function Zc(a,i,s=[]){lc(),Hp();const o=$r(a)[i].apply(a,s);return zp(),fc(),o}const DI=AI("__proto__,__v_isRef,__isVue"),Sw=new Set(Object.getOwnPropertyNames(Symbol).filter(a=>a!=="arguments"&&a!=="caller").map(a=>Symbol[a]).filter(Pl));function FI(a){Pl(a)||(a=String(a));const i=$r(this);return za(i,"has",a),i.hasOwnProperty(a)}class kw{constructor(i=!1,s=!1){this._isReadonly=i,this._isShallow=s}get(i,s,o){if(s==="__v_skip")return i.__v_skip;const v=this._isReadonly,b=this._isShallow;if(s==="__v_isReactive")return!v;if(s==="__v_isReadonly")return v;if(s==="__v_isShallow")return b;if(s==="__v_raw")return o===(v?b?zI:Tw:b?HI:Mw).get(i)||Object.getPrototypeOf(i)===Object.getPrototypeOf(o)?i:void 0;const y=Jn(i);if(!v){let l;if(y&&(l=OI[s]))return l;if(s==="hasOwnProperty")return FI}const g=Reflect.get(i,s,$a(i)?i:o);if((Pl(s)?Sw.has(s):DI(s))||(v||za(i,"get",s),b))return g;if($a(g)){const l=y&&Lp(s)?g:g.value;return v&&Va(l)?Sl(l):l}return Va(g)?v?Sl(g):Ow(g):g}}class QI extends kw{constructor(i=!1){super(!1,i)}set(i,s,o,v){let b=i[s];const y=Jn(i)&&Lp(s);if(!this._isShallow){const h=ss(b);if(!Xa(o)&&!ss(o)&&(b=$r(b),o=$r(o)),!y&&$a(b)&&!$a(o))return h?(process.env.NODE_ENV!=="production"&&as(`Set operation on key "${String(s)}" failed: target is readonly.`,i[s]),!0):(b.value=o,!0)}const g=y?Number(s)<i.length:Jd(i,s),l=Reflect.set(i,s,o,$a(i)?i:v);return i===$r(v)&&(g?qs(o,b)&&Hs(i,"set",s,o,b):Hs(i,"add",s,o)),l}deleteProperty(i,s){const o=Jd(i,s),v=i[s],b=Reflect.deleteProperty(i,s);return b&&o&&Hs(i,"delete",s,void 0,v),b}has(i,s){const o=Reflect.has(i,s);return(!Pl(s)||!Sw.has(s))&&za(i,"has",s),o}ownKeys(i){return za(i,"iterate",Jn(i)?"length":yo),Reflect.ownKeys(i)}}class jI extends kw{constructor(i=!1){super(!0,i)}set(i,s){return process.env.NODE_ENV!=="production"&&as(`Set operation on key "${String(s)}" failed: target is readonly.`,i),!0}deleteProperty(i,s){return process.env.NODE_ENV!=="production"&&as(`Delete operation on key "${String(s)}" failed: target is readonly.`,i),!0}}const NI=new QI,PI=new jI,w2=a=>Reflect.getPrototypeOf(a);function UI(a,i,s){return function(...o){const v=this.__v_raw,b=$r(v),y=Ko(b),g=a==="entries"||a===Symbol.iterator&&y,l=a==="keys"&&y,h=v[a](...o),u=i?kl:ks;return!i&&za(b,"iterate",l?ep:yo),{next(){const{value:f,done:p}=h.next();return p?{value:f,done:p}:{value:g?[u(f[0]),u(f[1])]:u(f),done:p}},[Symbol.iterator](){return this}}}}function y2(a){return function(...i){if(process.env.NODE_ENV!=="production"){const s=i[0]?`on key "${i[0]}" `:"";as(`${bw(a)} operation ${s}failed: target is readonly.`,$r(this))}return a==="delete"?!1:a==="clear"?void 0:this}}function LI(a,i){const s={get(o){const v=this.__v_raw,b=$r(v),y=$r(o);a||(qs(o,y)&&za(b,"get",o),za(b,"get",y));const{has:g}=w2(b),l=a?kl:ks;if(g.call(b,o))return l(v.get(o));if(g.call(b,y))return l(v.get(y));v!==b&&v.get(o)},get size(){const o=this.__v_raw;return!a&&za($r(o),"iterate",yo),o.size},has(o){const v=this.__v_raw,b=$r(v),y=$r(o);return a||(qs(o,y)&&za(b,"has",o),za(b,"has",y)),o===y?v.has(o):v.has(o)||v.has(y)},forEach(o,v){const b=this,y=b.__v_raw,g=$r(y),l=a?kl:ks;return!a&&za(g,"iterate",yo),y.forEach((h,u)=>o.call(v,l(h),l(u),b))}};return Xs(s,a?{add:y2("add"),set:y2("set"),delete:y2("delete"),clear:y2("clear")}:{add(o){!Xa(o)&&!ss(o)&&(o=$r(o));const v=$r(this);return w2(v).has.call(v,o)||(v.add(o),Hs(v,"add",o,o)),this},set(o,v){!Xa(v)&&!ss(v)&&(v=$r(v));const b=$r(this),{has:y,get:g}=w2(b);let l=y.call(b,o);l?process.env.NODE_ENV!=="production"&&BA(b,y,o):(o=$r(o),l=y.call(b,o));const h=g.call(b,o);return b.set(o,v),l?qs(v,h)&&Hs(b,"set",o,v,h):Hs(b,"add",o,v),this},delete(o){const v=$r(this),{has:b,get:y}=w2(v);let g=b.call(v,o);g?process.env.NODE_ENV!=="production"&&BA(v,b,o):(o=$r(o),g=b.call(v,o));const l=y?y.call(v,o):void 0,h=v.delete(o);return g&&Hs(v,"delete",o,void 0,l),h},clear(){const o=$r(this),v=o.size!==0,b=process.env.NODE_ENV!=="production"?Ko(o)?new Map(o):new Set(o):void 0,y=o.clear();return v&&Hs(o,"clear",void 0,void 0,b),y}}),["keys","values","entries",Symbol.iterator].forEach(o=>{s[o]=UI(o,a)}),s}function _w(a,i){const s=LI(a);return(o,v,b)=>v==="__v_isReactive"?!a:v==="__v_isReadonly"?a:v==="__v_raw"?o:Reflect.get(Jd(s,v)&&v in o?s:o,v,b)}const GI={get:_w(!1)},YI={get:_w(!0)};function BA(a,i,s){const o=$r(s);if(o!==s&&i.call(a,o)){const v=Aw(a);as(`Reactive ${v} contains both the raw and reactive versions of the same object${v==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}const Mw=new WeakMap,HI=new WeakMap,Tw=new WeakMap,zI=new WeakMap;function qI(a){switch(a){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function WI(a){return a.__v_skip||!Object.isExtensible(a)?0:qI(Aw(a))}function Ow(a){return ss(a)?a:Rw(a,!1,NI,GI,Mw)}function Sl(a){return Rw(a,!0,PI,YI,Tw)}function Rw(a,i,s,o,v){if(!Va(a))return process.env.NODE_ENV!=="production"&&as(`value cannot be made ${i?"readonly":"reactive"}: ${String(a)}`),a;if(a.__v_raw&&!(i&&a.__v_isReactive))return a;const b=WI(a);if(b===0)return a;const y=v.get(a);if(y)return y;const g=new Proxy(a,b===2?o:s);return v.set(a,g),g}function Zo(a){return ss(a)?Zo(a.__v_raw):!!(a&&a.__v_isReactive)}function ss(a){return!!(a&&a.__v_isReadonly)}function Xa(a){return!!(a&&a.__v_isShallow)}function kf(a){return a?!!a.__v_raw:!1}function $r(a){const i=a&&a.__v_raw;return i?$r(i):a}const ks=a=>Va(a)?Ow(a):a,kl=a=>Va(a)?Sl(a):a;function $a(a){return a?a.__v_isRef===!0:!1}function $s(a){return VI(a,!1)}function VI(a,i){return $a(a)?a:new XI(a,i)}class XI{constructor(i,s){this.dep=new Wp,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?i:$r(i),this._value=s?i:ks(i),this.__v_isShallow=s}get value(){return process.env.NODE_ENV!=="production"?this.dep.track({target:this,type:"get",key:"value"}):this.dep.track(),this._value}set value(i){const s=this._rawValue,o=this.__v_isShallow||Xa(i)||ss(i);i=o?i:$r(i),qs(i,s)&&(this._rawValue=i,this._value=o?i:ks(i),process.env.NODE_ENV!=="production"?this.dep.trigger({target:this,type:"set",key:"value",newValue:i,oldValue:s}):this.dep.trigger())}}function $I(a){return $a(a)?a.value:a}class JI{constructor(i,s,o){this.fn=i,this.setter=s,this._value=void 0,this.dep=new Wp(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=El-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=o}notify(){if(this.flags|=16,!(this.flags&8)&&wi!==this)return yw(this,!0),!0;process.env.NODE_ENV}get value(){const i=process.env.NODE_ENV!=="production"?this.dep.track({target:this,type:"get",key:"value"}):this.dep.track();return Iw(this),i&&(i.version=this.dep.version),this._value}set value(i){this.setter?this.setter(i):process.env.NODE_ENV!=="production"&&as("Write operation failed: computed value is readonly")}}function KI(a,i,s=!1){let o,v;_a(a)?o=a:(o=a.get,v=a.set);const b=new JI(o,v,s);return process.env.NODE_ENV,b}const x2={},_f=new WeakMap;let Ao;function ZI(a,i=!1,s=Ao){if(s){let o=_f.get(s);o||_f.set(s,o=[]),o.push(a)}else process.env.NODE_ENV!=="production"&&!i&&as("onWatcherCleanup() was called when there was no active watcher to associate with.")}function eE(a,i,s=Il){const{immediate:o,deep:v,once:b,scheduler:y,augmentJob:g,call:l}=s,h=B=>{(s.onWarn||as)("Invalid watch source: ",B,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},u=B=>v?B:Xa(B)||v===!1||v===0?zs(B,1):zs(B);let f,p,d,A,w=!1,m=!1;if($a(a)?(p=()=>a.value,w=Xa(a)):Zo(a)?(p=()=>u(a),w=!0):Jn(a)?(m=!0,w=a.some(B=>Zo(B)||Xa(B)),p=()=>a.map(B=>{if($a(B))return B.value;if(Zo(B))return u(B);if(_a(B))return l?l(B,2):B();process.env.NODE_ENV!=="production"&&h(B)})):_a(a)?i?p=l?()=>l(a,2):a:p=()=>{if(d){lc();try{d()}finally{fc()}}const B=Ao;Ao=f;try{return l?l(a,3,[A]):a(A)}finally{Ao=B}}:(p=pl,process.env.NODE_ENV!=="production"&&h(a)),i&&v){const B=p,k=v===!0?1/0:v;p=()=>zs(B(),k)}const x=()=>{f.stop()};if(b&&i){const B=i;i=(...k)=>{B(...k),x()}}let C=m?new Array(a.length).fill(x2):x2;const E=B=>{if(!(!(f.flags&1)||!f.dirty&&!B))if(i){const k=f.run();if(v||w||(m?k.some((M,T)=>qs(M,C[T])):qs(k,C))){d&&d();const M=Ao;Ao=f;try{const T=[k,C===x2?void 0:m&&C[0]===x2?[]:C,A];C=k,l?l(i,3,T):i(...T)}finally{Ao=M}}}else f.run()};return g&&g(E),f=new _I(p),f.scheduler=y?()=>y(E,!1):E,A=B=>ZI(B,!1,f),d=f.onStop=()=>{const B=_f.get(f);if(B){if(l)l(B,4);else for(const k of B)k();_f.delete(f)}},process.env.NODE_ENV!=="production"&&(f.onTrack=s.onTrack,f.onTrigger=s.onTrigger),i?o?E(!0):C=f.run():y?y(E.bind(null,!0),!0):f.run(),x.pause=f.pause.bind(f),x.resume=f.resume.bind(f),x.stop=x,x}function zs(a,i=1/0,s){if(i<=0||!Va(a)||a.__v_skip||(s=s||new Map,(s.get(a)||0)>=i))return a;if(s.set(a,i),i--,$a(a))zs(a.value,i,s);else if(Jn(a))for(let o=0;o<a.length;o++)zs(a[o],i,s);else if(wI(a)||Ko(a))a.forEach(o=>{zs(o,i,s)});else if(CI(a)){for(const o in a)zs(a[o],i,s);for(const o of Object.getOwnPropertySymbols(a))Object.prototype.propertyIsEnumerable.call(a,o)&&zs(a[o],i,s)}return a}const xo=[];function tE(a){xo.push(a)}function rE(){xo.pop()}let _0=!1;function Ua(a,...i){if(_0)return;_0=!0,lc();const s=xo.length?xo[xo.length-1].component:null,o=s&&s.appContext.config.warnHandler,v=iE();if(o)Kh(o,s,11,[a+i.map(b=>{var y,g;return(g=(y=b.toString)==null?void 0:y.call(b))!=null?g:JSON.stringify(b)}).join(""),s&&s.proxy,v.map(({vnode:b})=>`at <${Vw(s,b.type)}>`).join(`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Be=require("@hprint/core");var Sf=(a=>(a.ONE="selectOne",a.MULTI="selectMultiple",a.CANCEL="selectCancel",a))(Sf||{}),Xh=(a=>(a.EMPTY="",a.ONE="one",a.MULTI="multiple",a))(Xh||{});const $d=class{static getDeviceDPI(){return this.CONSTANTS.DEFAULT_DPI}static mmToPx(i,s,o){const v=this.normalizeNumber(i,"毫米值"),b=this.getValidDpi(s),y=v*b/this.CONSTANTS.INCH_TO_MM;return o?.direct?y:Math.ceil(y)}static pxToMm(i,s,o){const v=this.normalizeNumber(i,"像素值"),b=this.getValidDpi(s);return v*this.CONSTANTS.INCH_TO_MM/b}static mmToPxBatch(i,s){return i.map(o=>this.mmToPx(o,s,void 0))}static pxToMmBatch(i,s){return i.map(o=>this.pxToMm(o,s,void 0))}static getValidDpi(i){if(i!=null){const o=this.normalizeNumber(i,"DPI值");if(o<=0)throw new Error("DPI值必须大于0");return o}const s=this.getDeviceDPI();if(s<=0)throw new Error("DPI值必须大于0");return s}static normalizeNumber(i,s){if(typeof i=="string"){const o=i.trim();if(o==="")throw new Error(`${s}不能为空字符串`);const v=Number(o);if(isNaN(v))throw new Error(`${s}必须是有效数字,无法转换: "${i}"`);return v}if(typeof i!="number"||isNaN(i))throw new Error(`${s}必须是有效数字`);return i}static validateNumber(i,s){this.normalizeNumber(i,s)}static resetCache(){this._deviceDPI=null}static ptToPx(i,s){const o=this.normalizeNumber(i,"磅值"),v=this.getValidDpi(void 0),b=o*v/72;return s?.direct?b:Math.ceil(b)}static pxToPt(i){const s=this.normalizeNumber(i,"像素值"),o=this.getValidDpi(void 0);return s*72/o}static ptToPxBatch(i,s){return i.map(o=>this.ptToPx(o,s))}static pxToPtBatch(i){return i.map(s=>this.pxToPt(s))}static mmToPt(i){return this.normalizeNumber(i,"毫米值")*72/25.4}};$d.devicePixelRatio=window.devicePixelRatio,$d.CONSTANTS={INCH_TO_MM:25.4,DEFAULT_DPI:96,STANDARD_DPI:{SCREEN:96,PRINT:300,HIGH_RES:600}};let Bn=$d;const lI=(a,i)=>{const s=[],o=Math.PI*2/a;let v=-Math.PI/2;a%2===0&&(v+=o/2);for(let b=0;b<a;b++){const y=b*o+v;s.push({x:Math.cos(y)*i,y:Math.sin(y)*i})}return s},fI={getPolygonVertices:lI};var b2,hI=new Uint8Array(16);function uI(){if(!b2&&(b2=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!b2))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return b2(hI)}const dI=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function pI(a){return typeof a=="string"&&dI.test(a)}var ga=[];for(var E0=0;E0<256;++E0)ga.push((E0+256).toString(16).substr(1));function gI(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,s=(ga[a[i+0]]+ga[a[i+1]]+ga[a[i+2]]+ga[a[i+3]]+"-"+ga[a[i+4]]+ga[a[i+5]]+"-"+ga[a[i+6]]+ga[a[i+7]]+"-"+ga[a[i+8]]+ga[a[i+9]]+"-"+ga[a[i+10]]+ga[a[i+11]]+ga[a[i+12]]+ga[a[i+13]]+ga[a[i+14]]+ga[a[i+15]]).toLowerCase();if(!pI(s))throw TypeError("Stringified UUID is invalid");return s}function vI(a,i,s){a=a||{};var o=a.random||(a.rng||uI)();return o[6]=o[6]&15|64,o[8]=o[8]&63|128,gI(o)}function AI(a){const i=Object.create(null);for(const s of a.split(","))i[s]=1;return s=>s in i}const Il=process.env.NODE_ENV!=="production"?Object.freeze({}):{};process.env.NODE_ENV!=="production"&&Object.freeze([]);const pl=()=>{},mI=a=>a.charCodeAt(0)===111&&a.charCodeAt(1)===110&&(a.charCodeAt(2)>122||a.charCodeAt(2)<97),Xs=Object.assign,bI=Object.prototype.hasOwnProperty,Jd=(a,i)=>bI.call(a,i),Jn=Array.isArray,Ko=a=>$h(a)==="[object Map]",wI=a=>$h(a)==="[object Set]",_a=a=>typeof a=="function",Ss=a=>typeof a=="string",Pl=a=>typeof a=="symbol",Va=a=>a!==null&&typeof a=="object",yI=a=>(Va(a)||_a(a))&&_a(a.then)&&_a(a.catch),xI=Object.prototype.toString,$h=a=>xI.call(a),Aw=a=>$h(a).slice(8,-1),CI=a=>$h(a)==="[object Object]",Lp=a=>Ss(a)&&a!=="NaN"&&a[0]!=="-"&&""+parseInt(a,10)===a,mw=a=>{const i=Object.create(null);return(s=>i[s]||(i[s]=a(s)))},bw=mw(a=>a.charAt(0).toUpperCase()+a.slice(1)),II=mw(a=>a?`on${bw(a)}`:""),qs=(a,i)=>!Object.is(a,i);let CA;const Jh=()=>CA||(CA=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Gp(a){if(Jn(a)){const i={};for(let s=0;s<a.length;s++){const o=a[s],v=Ss(o)?kI(o):Gp(o);if(v)for(const b in v)i[b]=v[b]}return i}else if(Ss(a)||Va(a))return a}const EI=/;(?![^(]*\))/g,BI=/:([^]+)/,SI=/\/\*[^]*?\*\//g;function kI(a){const i={};return a.replace(SI,"").split(EI).forEach(s=>{if(s){const o=s.split(BI);o.length>1&&(i[o[0].trim()]=o[1].trim())}}),i}function Yp(a){let i="";if(Ss(a))i=a;else if(Jn(a))for(let s=0;s<a.length;s++){const o=Yp(a[s]);o&&(i+=o+" ")}else if(Va(a))for(const s in a)a[s]&&(i+=s+" ");return i.trim()}function as(a,...i){console.warn(`[Vue warn] ${a}`,...i)}let wi;const B0=new WeakSet;class _I{constructor(i){this.fn=i,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,B0.has(this)&&(B0.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||yw(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,IA(this),xw(this);const i=wi,s=N1;wi=this,N1=!0;try{return this.fn()}finally{process.env.NODE_ENV!=="production"&&wi!==this&&as("Active effect was not restored correctly - this is likely a Vue internal bug."),Cw(this),wi=i,N1=s,this.flags&=-3}}stop(){if(this.flags&1){for(let i=this.deps;i;i=i.nextDep)qp(i);this.deps=this.depsTail=void 0,IA(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?B0.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Kd(this)&&this.run()}get dirty(){return Kd(this)}}let ww=0,gl,vl;function yw(a,i=!1){if(a.flags|=8,i){a.next=vl,vl=a;return}a.next=gl,gl=a}function Hp(){ww++}function zp(){if(--ww>0)return;if(vl){let i=vl;for(vl=void 0;i;){const s=i.next;i.next=void 0,i.flags&=-9,i=s}}let a;for(;gl;){let i=gl;for(gl=void 0;i;){const s=i.next;if(i.next=void 0,i.flags&=-9,i.flags&1)try{i.trigger()}catch(o){a||(a=o)}i=s}}if(a)throw a}function xw(a){for(let i=a.deps;i;i=i.nextDep)i.version=-1,i.prevActiveLink=i.dep.activeLink,i.dep.activeLink=i}function Cw(a){let i,s=a.depsTail,o=s;for(;o;){const v=o.prevDep;o.version===-1?(o===s&&(s=v),qp(o),MI(o)):i=o,o.dep.activeLink=o.prevActiveLink,o.prevActiveLink=void 0,o=v}a.deps=i,a.depsTail=s}function Kd(a){for(let i=a.deps;i;i=i.nextDep)if(i.dep.version!==i.version||i.dep.computed&&(Iw(i.dep.computed)||i.dep.version!==i.version))return!0;return!!a._dirty}function Iw(a){if(a.flags&4&&!(a.flags&16)||(a.flags&=-17,a.globalVersion===El)||(a.globalVersion=El,!a.isSSR&&a.flags&128&&(!a.deps&&!a._dirty||!Kd(a))))return;a.flags|=2;const i=a.dep,s=wi,o=N1;wi=a,N1=!0;try{xw(a);const v=a.fn(a._value);(i.version===0||qs(v,a._value))&&(a.flags|=128,a._value=v,i.version++)}catch(v){throw i.version++,v}finally{wi=s,N1=o,Cw(a),a.flags&=-3}}function qp(a,i=!1){const{dep:s,prevSub:o,nextSub:v}=a;if(o&&(o.nextSub=v,a.prevSub=void 0),v&&(v.prevSub=o,a.nextSub=void 0),process.env.NODE_ENV!=="production"&&s.subsHead===a&&(s.subsHead=v),s.subs===a&&(s.subs=o,!o&&s.computed)){s.computed.flags&=-5;for(let b=s.computed.deps;b;b=b.nextDep)qp(b,!0)}!i&&!--s.sc&&s.map&&s.map.delete(s.key)}function MI(a){const{prevDep:i,nextDep:s}=a;i&&(i.nextDep=s,a.prevDep=void 0),s&&(s.prevDep=i,a.nextDep=void 0)}let N1=!0;const Ew=[];function lc(){Ew.push(N1),N1=!1}function fc(){const a=Ew.pop();N1=a===void 0?!0:a}function IA(a){const{cleanup:i}=a;if(a.cleanup=void 0,i){const s=wi;wi=void 0;try{i()}finally{wi=s}}}let El=0;class TI{constructor(i,s){this.sub=i,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}let Wp=class{constructor(i){this.computed=i,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,process.env.NODE_ENV!=="production"&&(this.subsHead=void 0)}track(i){if(!wi||!N1||wi===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==wi)s=this.activeLink=new TI(wi,this),wi.deps?(s.prevDep=wi.depsTail,wi.depsTail.nextDep=s,wi.depsTail=s):wi.deps=wi.depsTail=s,Bw(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const o=s.nextDep;o.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=o),s.prevDep=wi.depsTail,s.nextDep=void 0,wi.depsTail.nextDep=s,wi.depsTail=s,wi.deps===s&&(wi.deps=o)}return process.env.NODE_ENV!=="production"&&wi.onTrack&&wi.onTrack(Xs({effect:wi},i)),s}trigger(i){this.version++,El++,this.notify(i)}notify(i){Hp();try{if(process.env.NODE_ENV!=="production")for(let s=this.subsHead;s;s=s.nextSub)s.sub.onTrigger&&!(s.sub.flags&8)&&s.sub.onTrigger(Xs({effect:s.sub},i));for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{zp()}}};function Bw(a){if(a.dep.sc++,a.sub.flags&4){const i=a.dep.computed;if(i&&!a.dep.subs){i.flags|=20;for(let o=i.deps;o;o=o.nextDep)Bw(o)}const s=a.dep.subs;s!==a&&(a.prevSub=s,s&&(s.nextSub=a)),process.env.NODE_ENV!=="production"&&a.dep.subsHead===void 0&&(a.dep.subsHead=a),a.dep.subs=a}}const Zd=new WeakMap,yo=Symbol(process.env.NODE_ENV!=="production"?"Object iterate":""),ep=Symbol(process.env.NODE_ENV!=="production"?"Map keys iterate":""),Bl=Symbol(process.env.NODE_ENV!=="production"?"Array iterate":"");function za(a,i,s){if(N1&&wi){let o=Zd.get(a);o||Zd.set(a,o=new Map);let v=o.get(s);v||(o.set(s,v=new Wp),v.map=o,v.key=s),process.env.NODE_ENV!=="production"?v.track({target:a,type:i,key:s}):v.track()}}function Hs(a,i,s,o,v,b){const y=Zd.get(a);if(!y){El++;return}const g=l=>{l&&(process.env.NODE_ENV!=="production"?l.trigger({target:a,type:i,key:s,newValue:o,oldValue:v,oldTarget:b}):l.trigger())};if(Hp(),i==="clear")y.forEach(g);else{const l=Jn(a),h=l&&Lp(s);if(l&&s==="length"){const u=Number(o);y.forEach((f,p)=>{(p==="length"||p===Bl||!Pl(p)&&p>=u)&&g(f)})}else switch((s!==void 0||y.has(void 0))&&g(y.get(s)),h&&g(y.get(Bl)),i){case"add":l?h&&g(y.get("length")):(g(y.get(yo)),Ko(a)&&g(y.get(ep)));break;case"delete":l||(g(y.get(yo)),Ko(a)&&g(y.get(ep)));break;case"set":Ko(a)&&g(y.get(yo));break}}zp()}function Lo(a){const i=$r(a);return i===a?i:(za(i,"iterate",Bl),Xa(a)?i:i.map(ks))}function Vp(a){return za(a=$r(a),"iterate",Bl),a}function Ls(a,i){return ss(a)?Zo(a)?kl(ks(i)):kl(i):ks(i)}const OI={__proto__:null,[Symbol.iterator](){return S0(this,Symbol.iterator,a=>Ls(this,a))},concat(...a){return Lo(this).concat(...a.map(i=>Jn(i)?Lo(i):i))},entries(){return S0(this,"entries",a=>(a[1]=Ls(this,a[1]),a))},every(a,i){return bs(this,"every",a,i,void 0,arguments)},filter(a,i){return bs(this,"filter",a,i,s=>s.map(o=>Ls(this,o)),arguments)},find(a,i){return bs(this,"find",a,i,s=>Ls(this,s),arguments)},findIndex(a,i){return bs(this,"findIndex",a,i,void 0,arguments)},findLast(a,i){return bs(this,"findLast",a,i,s=>Ls(this,s),arguments)},findLastIndex(a,i){return bs(this,"findLastIndex",a,i,void 0,arguments)},forEach(a,i){return bs(this,"forEach",a,i,void 0,arguments)},includes(...a){return k0(this,"includes",a)},indexOf(...a){return k0(this,"indexOf",a)},join(a){return Lo(this).join(a)},lastIndexOf(...a){return k0(this,"lastIndexOf",a)},map(a,i){return bs(this,"map",a,i,void 0,arguments)},pop(){return Zc(this,"pop")},push(...a){return Zc(this,"push",a)},reduce(a,...i){return EA(this,"reduce",a,i)},reduceRight(a,...i){return EA(this,"reduceRight",a,i)},shift(){return Zc(this,"shift")},some(a,i){return bs(this,"some",a,i,void 0,arguments)},splice(...a){return Zc(this,"splice",a)},toReversed(){return Lo(this).toReversed()},toSorted(a){return Lo(this).toSorted(a)},toSpliced(...a){return Lo(this).toSpliced(...a)},unshift(...a){return Zc(this,"unshift",a)},values(){return S0(this,"values",a=>Ls(this,a))}};function S0(a,i,s){const o=Vp(a),v=o[i]();return o!==a&&!Xa(a)&&(v._next=v.next,v.next=()=>{const b=v._next();return b.done||(b.value=s(b.value)),b}),v}const RI=Array.prototype;function bs(a,i,s,o,v,b){const y=Vp(a),g=y!==a&&!Xa(a),l=y[i];if(l!==RI[i]){const f=l.apply(a,b);return g?ks(f):f}let h=s;y!==a&&(g?h=function(f,p){return s.call(this,Ls(a,f),p,a)}:s.length>2&&(h=function(f,p){return s.call(this,f,p,a)}));const u=l.call(y,h,o);return g&&v?v(u):u}function EA(a,i,s,o){const v=Vp(a);let b=s;return v!==a&&(Xa(a)?s.length>3&&(b=function(y,g,l){return s.call(this,y,g,l,a)}):b=function(y,g,l){return s.call(this,y,Ls(a,g),l,a)}),v[i](b,...o)}function k0(a,i,s){const o=$r(a);za(o,"iterate",Bl);const v=o[i](...s);return(v===-1||v===!1)&&kf(s[0])?(s[0]=$r(s[0]),o[i](...s)):v}function Zc(a,i,s=[]){lc(),Hp();const o=$r(a)[i].apply(a,s);return zp(),fc(),o}const DI=AI("__proto__,__v_isRef,__isVue"),Sw=new Set(Object.getOwnPropertyNames(Symbol).filter(a=>a!=="arguments"&&a!=="caller").map(a=>Symbol[a]).filter(Pl));function FI(a){Pl(a)||(a=String(a));const i=$r(this);return za(i,"has",a),i.hasOwnProperty(a)}class kw{constructor(i=!1,s=!1){this._isReadonly=i,this._isShallow=s}get(i,s,o){if(s==="__v_skip")return i.__v_skip;const v=this._isReadonly,b=this._isShallow;if(s==="__v_isReactive")return!v;if(s==="__v_isReadonly")return v;if(s==="__v_isShallow")return b;if(s==="__v_raw")return o===(v?b?zI:Tw:b?HI:Mw).get(i)||Object.getPrototypeOf(i)===Object.getPrototypeOf(o)?i:void 0;const y=Jn(i);if(!v){let l;if(y&&(l=OI[s]))return l;if(s==="hasOwnProperty")return FI}const g=Reflect.get(i,s,$a(i)?i:o);if((Pl(s)?Sw.has(s):DI(s))||(v||za(i,"get",s),b))return g;if($a(g)){const l=y&&Lp(s)?g:g.value;return v&&Va(l)?Sl(l):l}return Va(g)?v?Sl(g):Ow(g):g}}class QI extends kw{constructor(i=!1){super(!1,i)}set(i,s,o,v){let b=i[s];const y=Jn(i)&&Lp(s);if(!this._isShallow){const h=ss(b);if(!Xa(o)&&!ss(o)&&(b=$r(b),o=$r(o)),!y&&$a(b)&&!$a(o))return h?(process.env.NODE_ENV!=="production"&&as(`Set operation on key "${String(s)}" failed: target is readonly.`,i[s]),!0):(b.value=o,!0)}const g=y?Number(s)<i.length:Jd(i,s),l=Reflect.set(i,s,o,$a(i)?i:v);return i===$r(v)&&(g?qs(o,b)&&Hs(i,"set",s,o,b):Hs(i,"add",s,o)),l}deleteProperty(i,s){const o=Jd(i,s),v=i[s],b=Reflect.deleteProperty(i,s);return b&&o&&Hs(i,"delete",s,void 0,v),b}has(i,s){const o=Reflect.has(i,s);return(!Pl(s)||!Sw.has(s))&&za(i,"has",s),o}ownKeys(i){return za(i,"iterate",Jn(i)?"length":yo),Reflect.ownKeys(i)}}class jI extends kw{constructor(i=!1){super(!0,i)}set(i,s){return process.env.NODE_ENV!=="production"&&as(`Set operation on key "${String(s)}" failed: target is readonly.`,i),!0}deleteProperty(i,s){return process.env.NODE_ENV!=="production"&&as(`Delete operation on key "${String(s)}" failed: target is readonly.`,i),!0}}const NI=new QI,PI=new jI,w2=a=>Reflect.getPrototypeOf(a);function UI(a,i,s){return function(...o){const v=this.__v_raw,b=$r(v),y=Ko(b),g=a==="entries"||a===Symbol.iterator&&y,l=a==="keys"&&y,h=v[a](...o),u=i?kl:ks;return!i&&za(b,"iterate",l?ep:yo),{next(){const{value:f,done:p}=h.next();return p?{value:f,done:p}:{value:g?[u(f[0]),u(f[1])]:u(f),done:p}},[Symbol.iterator](){return this}}}}function y2(a){return function(...i){if(process.env.NODE_ENV!=="production"){const s=i[0]?`on key "${i[0]}" `:"";as(`${bw(a)} operation ${s}failed: target is readonly.`,$r(this))}return a==="delete"?!1:a==="clear"?void 0:this}}function LI(a,i){const s={get(o){const v=this.__v_raw,b=$r(v),y=$r(o);a||(qs(o,y)&&za(b,"get",o),za(b,"get",y));const{has:g}=w2(b),l=a?kl:ks;if(g.call(b,o))return l(v.get(o));if(g.call(b,y))return l(v.get(y));v!==b&&v.get(o)},get size(){const o=this.__v_raw;return!a&&za($r(o),"iterate",yo),o.size},has(o){const v=this.__v_raw,b=$r(v),y=$r(o);return a||(qs(o,y)&&za(b,"has",o),za(b,"has",y)),o===y?v.has(o):v.has(o)||v.has(y)},forEach(o,v){const b=this,y=b.__v_raw,g=$r(y),l=a?kl:ks;return!a&&za(g,"iterate",yo),y.forEach((h,u)=>o.call(v,l(h),l(u),b))}};return Xs(s,a?{add:y2("add"),set:y2("set"),delete:y2("delete"),clear:y2("clear")}:{add(o){!Xa(o)&&!ss(o)&&(o=$r(o));const v=$r(this);return w2(v).has.call(v,o)||(v.add(o),Hs(v,"add",o,o)),this},set(o,v){!Xa(v)&&!ss(v)&&(v=$r(v));const b=$r(this),{has:y,get:g}=w2(b);let l=y.call(b,o);l?process.env.NODE_ENV!=="production"&&BA(b,y,o):(o=$r(o),l=y.call(b,o));const h=g.call(b,o);return b.set(o,v),l?qs(v,h)&&Hs(b,"set",o,v,h):Hs(b,"add",o,v),this},delete(o){const v=$r(this),{has:b,get:y}=w2(v);let g=b.call(v,o);g?process.env.NODE_ENV!=="production"&&BA(v,b,o):(o=$r(o),g=b.call(v,o));const l=y?y.call(v,o):void 0,h=v.delete(o);return g&&Hs(v,"delete",o,void 0,l),h},clear(){const o=$r(this),v=o.size!==0,b=process.env.NODE_ENV!=="production"?Ko(o)?new Map(o):new Set(o):void 0,y=o.clear();return v&&Hs(o,"clear",void 0,void 0,b),y}}),["keys","values","entries",Symbol.iterator].forEach(o=>{s[o]=UI(o,a)}),s}function _w(a,i){const s=LI(a);return(o,v,b)=>v==="__v_isReactive"?!a:v==="__v_isReadonly"?a:v==="__v_raw"?o:Reflect.get(Jd(s,v)&&v in o?s:o,v,b)}const GI={get:_w(!1)},YI={get:_w(!0)};function BA(a,i,s){const o=$r(s);if(o!==s&&i.call(a,o)){const v=Aw(a);as(`Reactive ${v} contains both the raw and reactive versions of the same object${v==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}const Mw=new WeakMap,HI=new WeakMap,Tw=new WeakMap,zI=new WeakMap;function qI(a){switch(a){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function WI(a){return a.__v_skip||!Object.isExtensible(a)?0:qI(Aw(a))}function Ow(a){return ss(a)?a:Rw(a,!1,NI,GI,Mw)}function Sl(a){return Rw(a,!0,PI,YI,Tw)}function Rw(a,i,s,o,v){if(!Va(a))return process.env.NODE_ENV!=="production"&&as(`value cannot be made ${i?"readonly":"reactive"}: ${String(a)}`),a;if(a.__v_raw&&!(i&&a.__v_isReactive))return a;const b=WI(a);if(b===0)return a;const y=v.get(a);if(y)return y;const g=new Proxy(a,b===2?o:s);return v.set(a,g),g}function Zo(a){return ss(a)?Zo(a.__v_raw):!!(a&&a.__v_isReactive)}function ss(a){return!!(a&&a.__v_isReadonly)}function Xa(a){return!!(a&&a.__v_isShallow)}function kf(a){return a?!!a.__v_raw:!1}function $r(a){const i=a&&a.__v_raw;return i?$r(i):a}const ks=a=>Va(a)?Ow(a):a,kl=a=>Va(a)?Sl(a):a;function $a(a){return a?a.__v_isRef===!0:!1}function $s(a){return VI(a,!1)}function VI(a,i){return $a(a)?a:new XI(a,i)}class XI{constructor(i,s){this.dep=new Wp,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?i:$r(i),this._value=s?i:ks(i),this.__v_isShallow=s}get value(){return process.env.NODE_ENV!=="production"?this.dep.track({target:this,type:"get",key:"value"}):this.dep.track(),this._value}set value(i){const s=this._rawValue,o=this.__v_isShallow||Xa(i)||ss(i);i=o?i:$r(i),qs(i,s)&&(this._rawValue=i,this._value=o?i:ks(i),process.env.NODE_ENV!=="production"?this.dep.trigger({target:this,type:"set",key:"value",newValue:i,oldValue:s}):this.dep.trigger())}}function $I(a){return $a(a)?a.value:a}class JI{constructor(i,s,o){this.fn=i,this.setter=s,this._value=void 0,this.dep=new Wp(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=El-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=o}notify(){if(this.flags|=16,!(this.flags&8)&&wi!==this)return yw(this,!0),!0;process.env.NODE_ENV}get value(){const i=process.env.NODE_ENV!=="production"?this.dep.track({target:this,type:"get",key:"value"}):this.dep.track();return Iw(this),i&&(i.version=this.dep.version),this._value}set value(i){this.setter?this.setter(i):process.env.NODE_ENV!=="production"&&as("Write operation failed: computed value is readonly")}}function KI(a,i,s=!1){let o,v;_a(a)?o=a:(o=a.get,v=a.set);const b=new JI(o,v,s);return process.env.NODE_ENV,b}const x2={},_f=new WeakMap;let Ao;function ZI(a,i=!1,s=Ao){if(s){let o=_f.get(s);o||_f.set(s,o=[]),o.push(a)}else process.env.NODE_ENV!=="production"&&!i&&as("onWatcherCleanup() was called when there was no active watcher to associate with.")}function eE(a,i,s=Il){const{immediate:o,deep:v,once:b,scheduler:y,augmentJob:g,call:l}=s,h=B=>{(s.onWarn||as)("Invalid watch source: ",B,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},u=B=>v?B:Xa(B)||v===!1||v===0?zs(B,1):zs(B);let f,p,d,A,w=!1,m=!1;if($a(a)?(p=()=>a.value,w=Xa(a)):Zo(a)?(p=()=>u(a),w=!0):Jn(a)?(m=!0,w=a.some(B=>Zo(B)||Xa(B)),p=()=>a.map(B=>{if($a(B))return B.value;if(Zo(B))return u(B);if(_a(B))return l?l(B,2):B();process.env.NODE_ENV!=="production"&&h(B)})):_a(a)?i?p=l?()=>l(a,2):a:p=()=>{if(d){lc();try{d()}finally{fc()}}const B=Ao;Ao=f;try{return l?l(a,3,[A]):a(A)}finally{Ao=B}}:(p=pl,process.env.NODE_ENV!=="production"&&h(a)),i&&v){const B=p,k=v===!0?1/0:v;p=()=>zs(B(),k)}const x=()=>{f.stop()};if(b&&i){const B=i;i=(...k)=>{B(...k),x()}}let C=m?new Array(a.length).fill(x2):x2;const E=B=>{if(!(!(f.flags&1)||!f.dirty&&!B))if(i){const k=f.run();if(v||w||(m?k.some((M,T)=>qs(M,C[T])):qs(k,C))){d&&d();const M=Ao;Ao=f;try{const T=[k,C===x2?void 0:m&&C[0]===x2?[]:C,A];C=k,l?l(i,3,T):i(...T)}finally{Ao=M}}}else f.run()};return g&&g(E),f=new _I(p),f.scheduler=y?()=>y(E,!1):E,A=B=>ZI(B,!1,f),d=f.onStop=()=>{const B=_f.get(f);if(B){if(l)l(B,4);else for(const k of B)k();_f.delete(f)}},process.env.NODE_ENV!=="production"&&(f.onTrack=s.onTrack,f.onTrigger=s.onTrigger),i?o?E(!0):C=f.run():y?y(E.bind(null,!0),!0):f.run(),x.pause=f.pause.bind(f),x.resume=f.resume.bind(f),x.stop=x,x}function zs(a,i=1/0,s){if(i<=0||!Va(a)||a.__v_skip||(s=s||new Map,(s.get(a)||0)>=i))return a;if(s.set(a,i),i--,$a(a))zs(a.value,i,s);else if(Jn(a))for(let o=0;o<a.length;o++)zs(a[o],i,s);else if(wI(a)||Ko(a))a.forEach(o=>{zs(o,i,s)});else if(CI(a)){for(const o in a)zs(a[o],i,s);for(const o of Object.getOwnPropertySymbols(a))Object.prototype.propertyIsEnumerable.call(a,o)&&zs(a[o],i,s)}return a}const xo=[];function tE(a){xo.push(a)}function rE(){xo.pop()}let _0=!1;function Ua(a,...i){if(_0)return;_0=!0,lc();const s=xo.length?xo[xo.length-1].component:null,o=s&&s.appContext.config.warnHandler,v=iE();if(o)Kh(o,s,11,[a+i.map(b=>{var y,g;return(g=(y=b.toString)==null?void 0:y.call(b))!=null?g:JSON.stringify(b)}).join(""),s&&s.proxy,v.map(({vnode:b})=>`at <${Vw(s,b.type)}>`).join(`
2
2
  `),v]);else{const b=[`[Vue warn]: ${a}`,...i];v.length&&b.push(`
3
3
  `,...nE(v)),console.warn(...b)}fc(),_0=!1}function iE(){let a=xo[xo.length-1];if(!a)return[];const i=[];for(;a;){const s=i[0];s&&s.vnode===a?s.recurseCount++:i.push({vnode:a,recurseCount:0});const o=a.component&&a.component.parent;a=o&&o.vnode}return i}function nE(a){const i=[];return a.forEach((s,o)=>{i.push(...o===0?[]:[`
4
4
  `],...aE(s))}),i}function aE({vnode:a,recurseCount:i}){const s=i>0?`... (${i} recursive calls)`:"",o=a.component?a.component.parent==null:!1,v=` at <${Vw(a.component,a.type,o)}`,b=">"+s;return a.props?[v,...sE(a.props),b]:[v+b]}function sE(a){const i=[],s=Object.keys(a);return s.slice(0,3).forEach(o=>{i.push(...Dw(o,a[o]))}),s.length>3&&i.push(" ..."),i}function Dw(a,i,s){return Ss(i)?(i=JSON.stringify(i),s?i:[`${a}=${i}`]):typeof i=="number"||typeof i=="boolean"||i==null?s?i:[`${a}=${i}`]:$a(i)?(i=Dw(a,$r(i.value),!0),s?i:[`${a}=Ref<`,i,">"]):_a(i)?[`${a}=fn${i.name?`<${i.name}>`:""}`]:(i=$r(i),s?i:[`${a}=`,i])}const Xp={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function Kh(a,i,s,o){try{return o?a(...o):a()}catch(v){Jp(v,i,s)}}function $p(a,i,s,o){if(_a(a)){const v=Kh(a,i,s,o);return v&&yI(v)&&v.catch(b=>{Jp(b,i,s)}),v}if(Jn(a)){const v=[];for(let b=0;b<a.length;b++)v.push($p(a[b],i,s,o));return v}else process.env.NODE_ENV!=="production"&&Ua(`Invalid value type passed to callWithAsyncErrorHandling(): ${typeof a}`)}function Jp(a,i,s,o=!0){const v=i?i.vnode:null,{errorHandler:b,throwUnhandledErrorInProduction:y}=i&&i.appContext.config||Il;if(i){let g=i.parent;const l=i.proxy,h=process.env.NODE_ENV!=="production"?Xp[s]:`https://vuejs.org/error-reference/#runtime-${s}`;for(;g;){const u=g.ec;if(u){for(let f=0;f<u.length;f++)if(u[f](a,l,h)===!1)return}g=g.parent}if(b){lc(),Kh(b,null,10,[a,l,h]),fc();return}}oE(a,s,v,o,y)}function oE(a,i,s,o=!0,v=!1){if(process.env.NODE_ENV!=="production"){const b=Xp[i];if(s&&tE(s),Ua(`Unhandled error${b?` during execution of ${b}`:""}`),s&&rE(),o)throw a;console.error(a)}else{if(v)throw a;console.error(a)}}const m1=[];let ys=-1;const ec=[];let Gs=null,zo=0;const cE=Promise.resolve();let tp=null;const lE=100;function fE(a){let i=ys+1,s=m1.length;for(;i<s;){const o=i+s>>>1,v=m1[o],b=_l(v);b<a||b===a&&v.flags&2?i=o+1:s=o}return i}function Fw(a){if(!(a.flags&1)){const i=_l(a),s=m1[m1.length-1];!s||!(a.flags&2)&&i>=_l(s)?m1.push(a):m1.splice(fE(i),0,a),a.flags|=1,Qw()}}function Qw(){tp||(tp=cE.then(Nw))}function jw(a){Jn(a)?ec.push(...a):Gs&&a.id===-1?Gs.splice(zo+1,0,a):a.flags&1||(ec.push(a),a.flags|=1),Qw()}function hE(a){if(ec.length){const i=[...new Set(ec)].sort((s,o)=>_l(s)-_l(o));if(ec.length=0,Gs){Gs.push(...i);return}for(Gs=i,process.env.NODE_ENV!=="production"&&(a=a||new Map),zo=0;zo<Gs.length;zo++){const s=Gs[zo];process.env.NODE_ENV!=="production"&&Pw(a,s)||(s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2)}Gs=null,zo=0}}const _l=a=>a.id==null?a.flags&2?-1:1/0:a.id;function Nw(a){process.env.NODE_ENV!=="production"&&(a=a||new Map);const i=process.env.NODE_ENV!=="production"?s=>Pw(a,s):pl;try{for(ys=0;ys<m1.length;ys++){const s=m1[ys];if(s&&!(s.flags&8)){if(process.env.NODE_ENV!=="production"&&i(s))continue;s.flags&4&&(s.flags&=-2),Kh(s,s.i,s.i?15:14),s.flags&4||(s.flags&=-2)}}}finally{for(;ys<m1.length;ys++){const s=m1[ys];s&&(s.flags&=-2)}ys=-1,m1.length=0,hE(a),tp=null,(m1.length||ec.length)&&Nw(a)}}function Pw(a,i){const s=a.get(i)||0;if(s>lE){const o=i.i,v=o&&Ww(o.type);return Jp(`Maximum recursive updates exceeded${v?` in component <${v}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,null,10),!0}return a.set(i,s+1),!1}const M0=new Map;process.env.NODE_ENV!=="production"&&(Jh().__VUE_HMR_RUNTIME__={createRecord:T0(uE),rerender:T0(dE),reload:T0(pE)});const Mf=new Map;function uE(a,i){return Mf.has(a)?!1:(Mf.set(a,{initialDef:Tf(i),instances:new Set}),!0)}function Tf(a){return Xw(a)?a.__vccOpts:a}function dE(a,i){const s=Mf.get(a);s&&(s.initialDef.render=i,[...s.instances].forEach(o=>{i&&(o.render=i,Tf(o.type).render=i),o.renderCache=[],o.job.flags&8||o.update()}))}function pE(a,i){const s=Mf.get(a);if(!s)return;i=Tf(i),SA(s.initialDef,i);const o=[...s.instances];for(let v=0;v<o.length;v++){const b=o[v],y=Tf(b.type);let g=M0.get(y);g||(y!==s.initialDef&&SA(y,i),M0.set(y,g=new Set)),g.add(b),b.appContext.propsCache.delete(b.type),b.appContext.emitsCache.delete(b.type),b.appContext.optionsCache.delete(b.type),b.ceReload?(g.add(b),b.ceReload(i.styles),g.delete(b)):b.parent?Fw(()=>{b.job.flags&8||(b.parent.update(),g.delete(b))}):b.appContext.reload?b.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required."),b.root.ce&&b!==b.root&&b.root.ce._removeChildStyle(y)}jw(()=>{M0.clear()})}function SA(a,i){Xs(a,i);for(const s in a)s!=="__file"&&!(s in i)&&delete a[s]}function T0(a){return(i,s)=>{try{return a(i,s)}catch(o){console.error(o),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let Ml=null,gE=null;const vE=a=>a.__isTeleport;function Uw(a,i){a.shapeFlag&6&&a.component?(a.transition=i,Uw(a.component.subTree,i)):a.shapeFlag&128?(a.ssContent.transition=i.clone(a.ssContent),a.ssFallback.transition=i.clone(a.ssFallback)):a.transition=i}Jh().requestIdleCallback;Jh().cancelIdleCallback;function AE(a,i,s=hc,o=!1){if(s){const v=s[a]||(s[a]=[]),b=i.__weh||(i.__weh=(...y)=>{lc();const g=PE(s),l=$p(i,s,a,y);return g(),fc(),l});return o?v.unshift(b):v.push(b),b}else if(process.env.NODE_ENV!=="production"){const v=II(Xp[a].replace(/ hook$/,""));Ua(`${v} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.`)}}const mE=a=>(i,s=hc)=>{(!Tl||a==="sp")&&AE(a,(...o)=>i(...o),s)},bE=mE("m"),wE=Symbol.for("v-ndc");process.env.NODE_ENV;let yE=null;function xE(a,i,s=!1){const o=Zp();if(o||yE){let v=o?o.parent==null||o.ce?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:void 0;if(v&&a in v)return v[a];if(arguments.length>1)return s&&_a(i)?i.call(o&&o.proxy):i;process.env.NODE_ENV!=="production"&&Ua(`injection "${String(a)}" not found.`)}else process.env.NODE_ENV!=="production"&&Ua("inject() can only be used inside setup() or functional components.")}const CE=Symbol.for("v-scx"),IE=()=>{{const a=xE(CE);return a||process.env.NODE_ENV!=="production"&&Ua("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),a}};function Lw(a,i,s){return process.env.NODE_ENV!=="production"&&!_a(i)&&Ua("`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."),EE(a,i,s)}function EE(a,i,s=Il){const{immediate:o,deep:v,flush:b,once:y}=s;process.env.NODE_ENV!=="production"&&!i&&(o!==void 0&&Ua('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),v!==void 0&&Ua('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'),y!==void 0&&Ua('watch() "once" option is only respected when using the watch(source, callback, options?) signature.'));const g=Xs({},s);process.env.NODE_ENV!=="production"&&(g.onWarn=Ua);const l=i&&o||!i&&b!=="post";let h;if(Tl){if(b==="sync"){const d=IE();h=d.__watcherHandles||(d.__watcherHandles=[])}else if(!l){const d=()=>{};return d.stop=pl,d.resume=pl,d.pause=pl,d}}const u=hc;g.call=(d,A,w)=>$p(d,u,A,w);let f=!1;b==="post"?g.scheduler=d=>{SE(d,u&&u.suspense)}:b!=="sync"&&(f=!0,g.scheduler=(d,A)=>{A?d():Fw(d)}),g.augmentJob=d=>{i&&(d.flags|=4),f&&(d.flags|=2,u&&(d.id=u.uid,d.i=u))};const p=eE(a,i,g);return Tl&&(h?h.push(p):l&&p()),p}const BE={},Gw=a=>Object.getPrototypeOf(a)===BE,SE=_E,kE=a=>a.__isSuspense;function _E(a,i){i&&i.pendingBranch?Jn(a)?i.effects.push(...a):i.effects.push(a):jw(a)}const Yw=Symbol.for("v-fgt"),ME=Symbol.for("v-txt"),TE=Symbol.for("v-cmt");function OE(a){return a?a.__v_isVNode===!0:!1}const RE=(...a)=>zw(...a),Hw=({key:a})=>a??null,gf=({ref:a,ref_key:i,ref_for:s})=>(typeof a=="number"&&(a=""+a),a!=null?Ss(a)||$a(a)||_a(a)?{i:Ml,r:a,k:i,f:!!s}:a:null);function DE(a,i=null,s=null,o=0,v=null,b=a===Yw?0:1,y=!1,g=!1){const l={__v_isVNode:!0,__v_skip:!0,type:a,props:i,key:i&&Hw(i),ref:i&&gf(i),scopeId:gE,slotScopeIds:null,children:s,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:b,patchFlag:o,dynamicProps:v,dynamicChildren:null,appContext:null,ctx:Ml};return g?(Kp(l,s),b&128&&a.normalize(l)):s&&(l.shapeFlag|=Ss(s)?8:16),process.env.NODE_ENV!=="production"&&l.key!==l.key&&Ua("VNode created with invalid key (NaN). VNode type:",l.type),l}const FE=process.env.NODE_ENV!=="production"?RE:zw;function zw(a,i=null,s=null,o=0,v=null,b=!1){if((!a||a===wE)&&(process.env.NODE_ENV!=="production"&&!a&&Ua(`Invalid vnode type when creating vnode: ${a}.`),a=TE),OE(a)){const g=Of(a,i,!0);return s&&Kp(g,s),g.patchFlag=-2,g}if(Xw(a)&&(a=a.__vccOpts),i){i=QE(i);let{class:g,style:l}=i;g&&!Ss(g)&&(i.class=Yp(g)),Va(l)&&(kf(l)&&!Jn(l)&&(l=Xs({},l)),i.style=Gp(l))}const y=Ss(a)?1:kE(a)?128:vE(a)?64:Va(a)?4:_a(a)?2:0;return process.env.NODE_ENV!=="production"&&y&4&&kf(a)&&(a=$r(a),Ua("Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",`
package/dist/index.mjs CHANGED
@@ -5,19 +5,7 @@ const Xd = class {
5
5
  * 获取设备DPI(缓存结果避免重复计算)
6
6
  */
7
7
  static getDeviceDPI() {
8
- if (!this._deviceDPI)
9
- try {
10
- const i = document.createElement("div");
11
- i.style.width = "1in", i.style.height = "0", i.style.position = "absolute", i.style.visibility = "hidden", document.body.appendChild(i);
12
- const s = i.offsetWidth;
13
- document.body.removeChild(i), this._deviceDPI = s * window.devicePixelRatio || this.CONSTANTS.DEFAULT_DPI;
14
- } catch {
15
- console.warn(
16
- "无法获取设备DPI,使用默认值:",
17
- this.CONSTANTS.DEFAULT_DPI
18
- ), this._deviceDPI = this.CONSTANTS.DEFAULT_DPI;
19
- }
20
- return this._deviceDPI;
8
+ return this.CONSTANTS.DEFAULT_DPI;
21
9
  }
22
10
  /**
23
11
  * 毫米转像素
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hprint/plugins",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -22,8 +22,8 @@
22
22
  "qs": "~6.12.3",
23
23
  "socket.io-client": "^4.8.1",
24
24
  "uuid": "~8.3.2",
25
- "@hprint/core": "0.0.5",
26
- "@hprint/shared": "0.0.5"
25
+ "@hprint/shared": "0.0.6",
26
+ "@hprint/core": "0.0.6"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@types/bwip-js": "^3.2.3",