@vtj/pro 0.10.12 → 0.10.13

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.
Files changed (39) hide show
  1. package/dist/@vtj/materials/assets/antdv/index.umd.js +2 -2
  2. package/dist/@vtj/materials/assets/charts/index.umd.js +2 -2
  3. package/dist/@vtj/materials/assets/element/index.umd.js +2 -2
  4. package/dist/@vtj/materials/assets/ui/index.umd.js +2 -2
  5. package/dist/@vtj/materials/assets/uni-h5/index.umd.js +2 -2
  6. package/dist/@vtj/materials/assets/uni-ui/index.umd.js +2 -2
  7. package/dist/@vtj/materials/assets/vant/index.umd.js +9 -9
  8. package/dist/@vtj/materials/deps/@vtj/charts/index.umd.js +2 -2
  9. package/dist/@vtj/materials/deps/@vtj/icons/index.umd.js +2 -2
  10. package/dist/@vtj/materials/deps/@vtj/ui/index.umd.js +2 -2
  11. package/dist/@vtj/materials/deps/@vtj/utils/index.umd.js +4 -4
  12. package/dist/assets/{@element-plus-icons-vue-CRZvKNrz.js → @element-plus-icons-vue-CKT2Xck5.js} +1 -1
  13. package/dist/assets/{@vueuse-dS-W09Vv.js → @vueuse-B2Ln5mIU.js} +1 -1
  14. package/dist/assets/{Editor-7SLplEph-lPDo8mjp.js → Editor-7SLplEph-XiU5RCA1.js} +1 -1
  15. package/dist/assets/auth-BNKonXq_.js +1 -0
  16. package/dist/assets/{element-plus-BK-hs3-c.js → element-plus-Bd2bW04a.js} +1 -1
  17. package/dist/assets/{extension-FEBgdJgd.js → extension-C0o-vGA_.js} +10 -10
  18. package/dist/assets/index-DVr_v5KA.js +1 -0
  19. package/dist/assets/{index-CSI9UPqe.js → index-Dq6nvnm8.js} +24 -24
  20. package/dist/assets/page-B0jtXeSQ.js +2 -0
  21. package/dist/assets/preview-Bnmb9ETc.js +2 -0
  22. package/dist/assets/{uni-page-ByIXJ059.js → uni-page-Bjgk97mC.js} +1 -1
  23. package/dist/assets/{utils-CqFMRwm6.js → utils-wPzCLnUa.js} +1 -1
  24. package/dist/assets/{vue-DpQa2Qs4.js → vue-DnfbZNhx.js} +1 -1
  25. package/dist/assets/{vue-router-Dv428VRb.js → vue-router-D8EXeL0F.js} +1 -1
  26. package/dist/assets/{vxe-DEIHqUXR.js → vxe-CFTIhv1S.js} +1 -1
  27. package/dist/index.html +8 -8
  28. package/dist/uni/assets/{@dcloudio-uni-h5-vue-BAS6KGFt.js → @dcloudio-uni-h5-vue-DzUn8GQh.js} +1 -1
  29. package/dist/uni/assets/index-BBofSJhT.js +76 -0
  30. package/dist/uni/assets/{vue-router-Dw1LzioT.js → vue-router-pF46KwvV.js} +1 -1
  31. package/dist/uni/index.html +3 -3
  32. package/package.json +11 -11
  33. package/src/Auth.vue +46 -0
  34. package/src/index.ts +4 -0
  35. package/dist/assets/auth-DyfherFL.js +0 -1
  36. package/dist/assets/index-DX9cw63j.js +0 -1
  37. package/dist/assets/page-Db4iyZjl.js +0 -2
  38. package/dist/assets/preview-D7O5WV4s.js +0 -2
  39. package/dist/uni/assets/index-B00slR6a.js +0 -70
@@ -1 +1 @@
1
- var Be=Object.defineProperty,Xe=Object.defineProperties;var Ye=Object.getOwnPropertyDescriptors;var Y=Object.getOwnPropertySymbols;var ue=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable;var ae=(e,t,n)=>t in e?Be(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,F=(e,t)=>{for(var n in t||(t={}))ue.call(t,n)&&ae(e,n,t[n]);if(Y)for(var n of Y(t))le.call(t,n)&&ae(e,n,t[n]);return e},H=(e,t)=>Xe(e,Ye(t));var Q=(e,t)=>{var n={};for(var r in e)ue.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Y)for(var r of Y(e))t.indexOf(r)<0&&le.call(e,r)&&(n[r]=e[r]);return n};import{g as Se,b as Ee,s as A,w as Pe,r as K,e as b,f as W,h as X,i as ne,n as re,u as xe,j as oe,k as C,l as Qe,t as Je,m as _,p as Ge,q as Te,v as Ue}from"./vue-DpQa2Qs4.js";var Ke=Object.defineProperty,qe=Object.defineProperties,Ze=Object.getOwnPropertyDescriptors,ce=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,tt=Object.prototype.propertyIsEnumerable,fe=(e,t,n)=>t in e?Ke(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,nt=(e,t)=>{for(var n in t||(t={}))et.call(t,n)&&fe(e,n,t[n]);if(ce)for(var n of ce(t))tt.call(t,n)&&fe(e,n,t[n]);return e},rt=(e,t)=>qe(e,Ze(t));function on(e,t){var n;const r=A();return Pe(()=>{r.value=e()},rt(nt({},t),{flush:(n=void 0)!=null?n:"sync"})),K(r)}var de;const q=typeof window!="undefined",ot=e=>typeof e!="undefined",te=e=>typeof e=="function",st=e=>typeof e=="string",B=()=>{},it=q&&((de=window==null?void 0:window.navigator)==null?void 0:de.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function z(e){return typeof e=="function"?e():xe(e)}function Ce(e,t){function n(...r){return new Promise((o,i)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(o).catch(i)})}return n}function at(e,t={}){let n,r,o=B;const i=s=>{clearTimeout(s),o(),o=B};return s=>{const u=z(e),c=z(t.maxWait);return n&&i(n),u<=0||c!==void 0&&c<=0?(r&&(i(r),r=null),Promise.resolve(s())):new Promise((p,f)=>{o=t.rejectOnCancel?f:p,c&&!r&&(r=setTimeout(()=>{n&&i(n),r=null,p(s())},c)),n=setTimeout(()=>{r&&i(r),r=null,p(s())},u)})}}function ut(e,t=!0,n=!0,r=!1){let o=0,i,a=!0,s=B,u;const c=()=>{i&&(clearTimeout(i),i=void 0,s(),s=B)};return f=>{const l=z(e),d=Date.now()-o,v=()=>u=f();return c(),l<=0?(o=Date.now(),v()):(d>l&&(n||!a)?(o=Date.now(),v()):t&&(u=new Promise((h,y)=>{s=r?y:h,i=setTimeout(()=>{o=Date.now(),a=!0,h(v()),c()},Math.max(0,l-d))})),!n&&!i&&(i=setTimeout(()=>a=!0,l)),a=!1,u)}}function lt(e){return e}function ct(e,t){let n,r,o;const i=b(!0),a=()=>{i.value=!0,o()};W(e,a,{flush:"sync"});const s=te(t)?t:t.get,u=te(t)?void 0:t.set,c=oe((p,f)=>(r=p,o=f,{get(){return i.value&&(n=s(),i.value=!1),r(),n},set(l){u==null||u(l)}}));return Object.isExtensible(c)&&(c.trigger=a),c}function Z(e){return Se()?(Ee(e),!0):!1}function ft(e,t=200,n={}){return Ce(at(t,n),e)}function sn(e,t=200,n={}){const r=b(e.value),o=ft(()=>{r.value=e.value},t,n);return W(e,()=>o()),r}function an(e,t=200,n=!1,r=!0,o=!1){return Ce(ut(t,n,r,o),e)}function se(e,t=!0){X()?ne(e):t?e():re(e)}function un(e,t,n={}){const{immediate:r=!0}=n,o=b(!1);let i=null;function a(){i&&(clearTimeout(i),i=null)}function s(){o.value=!1,a()}function u(...c){a(),o.value=!0,i=setTimeout(()=>{o.value=!1,i=null,e(...c)},z(t))}return r&&(o.value=!0,q&&u()),Z(s),{isPending:K(o),start:u,stop:s}}function k(e){var t;const n=z(e);return(t=n==null?void 0:n.$el)!=null?t:n}const j=q?window:void 0,dt=q?window.document:void 0;function D(...e){let t,n,r,o;if(st(e[0])||Array.isArray(e[0])?([n,r,o]=e,t=j):[t,n,r,o]=e,!t)return B;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const i=[],a=()=>{i.forEach(p=>p()),i.length=0},s=(p,f,l,d)=>(p.addEventListener(f,l,d),()=>p.removeEventListener(f,l,d)),u=W(()=>[k(t),z(o)],([p,f])=>{a(),p&&i.push(...n.flatMap(l=>r.map(d=>s(p,l,d,f))))},{immediate:!0,flush:"post"}),c=()=>{u(),a()};return Z(c),c}let ve=!1;function ln(e,t,n={}){const{window:r=j,ignore:o=[],capture:i=!0,detectIframe:a=!1}=n;if(!r)return;it&&!ve&&(ve=!0,Array.from(r.document.body.children).forEach(l=>l.addEventListener("click",B)));let s=!0;const u=l=>o.some(d=>{if(typeof d=="string")return Array.from(r.document.querySelectorAll(d)).some(v=>v===l.target||l.composedPath().includes(v));{const v=k(d);return v&&(l.target===v||l.composedPath().includes(v))}}),p=[D(r,"click",l=>{const d=k(e);if(!(!d||d===l.target||l.composedPath().includes(d))){if(l.detail===0&&(s=!u(l)),!s){s=!0;return}t(l)}},{passive:!0,capture:i}),D(r,"pointerdown",l=>{const d=k(e);d&&(s=!l.composedPath().includes(d)&&!u(l))},{passive:!0}),a&&D(r,"blur",l=>{var d;const v=k(e);((d=r.document.activeElement)==null?void 0:d.tagName)==="IFRAME"&&!(v!=null&&v.contains(r.document.activeElement))&&t(l)})].filter(Boolean);return()=>p.forEach(l=>l())}function cn(e={}){var t;const{window:n=j}=e,r=(t=e.document)!=null?t:n==null?void 0:n.document,o=ct(()=>null,()=>r==null?void 0:r.activeElement);return n&&(D(n,"blur",i=>{i.relatedTarget===null&&o.trigger()},!0),D(n,"focus",o.trigger,!0)),o}function We(e,t=!1){const n=b(),r=()=>n.value=!!e();return r(),se(r,t),n}function vt(e){return JSON.parse(JSON.stringify(e))}const pe=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},me="__vueuse_ssr_handlers__";pe[me]=pe[me]||{};function fn(e,t,{window:n=j,initialValue:r=""}={}){const o=b(r),i=C(()=>{var a;return k(t)||((a=n==null?void 0:n.document)==null?void 0:a.documentElement)});return W([i,()=>z(e)],([a,s])=>{var u;if(a&&n){const c=(u=n.getComputedStyle(a).getPropertyValue(s))==null?void 0:u.trim();o.value=c||r}},{immediate:!0}),W(o,a=>{var s;(s=i.value)!=null&&s.style&&i.value.style.setProperty(z(e),a)}),o}function dn({document:e=dt}={}){if(!e)return b("visible");const t=b(e.visibilityState);return D(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var he=Object.getOwnPropertySymbols,pt=Object.prototype.hasOwnProperty,mt=Object.prototype.propertyIsEnumerable,ht=(e,t)=>{var n={};for(var r in e)pt.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&he)for(var r of he(e))t.indexOf(r)<0&&mt.call(e,r)&&(n[r]=e[r]);return n};function gt(e,t,n={}){const r=n,{window:o=j}=r,i=ht(r,["window"]);let a;const s=We(()=>o&&"ResizeObserver"in o),u=()=>{a&&(a.disconnect(),a=void 0)},c=W(()=>k(e),f=>{u(),s.value&&o&&f&&(a=new ResizeObserver(t),a.observe(f,i))},{immediate:!0,flush:"post"}),p=()=>{u(),c()};return Z(p),{isSupported:s,stop:p}}function vn(e,t={}){const{reset:n=!0,windowResize:r=!0,windowScroll:o=!0,immediate:i=!0}=t,a=b(0),s=b(0),u=b(0),c=b(0),p=b(0),f=b(0),l=b(0),d=b(0);function v(){const h=k(e);if(!h){n&&(a.value=0,s.value=0,u.value=0,c.value=0,p.value=0,f.value=0,l.value=0,d.value=0);return}const y=h.getBoundingClientRect();a.value=y.height,s.value=y.bottom,u.value=y.left,c.value=y.right,p.value=y.top,f.value=y.width,l.value=y.x,d.value=y.y}return gt(e,v),W(()=>k(e),h=>!h&&v()),o&&D("scroll",v,{capture:!0,passive:!0}),r&&D("resize",v,{passive:!0}),se(()=>{i&&v()}),{height:a,bottom:s,left:u,right:c,top:p,width:f,x:l,y:d,update:v}}var ge=Object.getOwnPropertySymbols,yt=Object.prototype.hasOwnProperty,wt=Object.prototype.propertyIsEnumerable,bt=(e,t)=>{var n={};for(var r in e)yt.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&ge)for(var r of ge(e))t.indexOf(r)<0&&wt.call(e,r)&&(n[r]=e[r]);return n};function pn(e,t,n={}){const r=n,{window:o=j}=r,i=bt(r,["window"]);let a;const s=We(()=>o&&"MutationObserver"in o),u=()=>{a&&(a.disconnect(),a=void 0)},c=W(()=>k(e),f=>{u(),s.value&&o&&f&&(a=new MutationObserver(t),a.observe(f,i))},{immediate:!0}),p=()=>{u(),c()};return Z(p),{isSupported:s,stop:p}}var ye;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(ye||(ye={}));var Ot=Object.defineProperty,we=Object.getOwnPropertySymbols,_t=Object.prototype.hasOwnProperty,St=Object.prototype.propertyIsEnumerable,be=(e,t,n)=>t in e?Ot(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Et=(e,t)=>{for(var n in t||(t={}))_t.call(t,n)&&be(e,n,t[n]);if(we)for(var n of we(t))St.call(t,n)&&be(e,n,t[n]);return e};const Pt={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};Et({linear:lt},Pt);function mn(e,t,n,r={}){var o,i,a;const{clone:s=!1,passive:u=!1,eventName:c,deep:p=!1,defaultValue:f}=r,l=X(),d=n||(l==null?void 0:l.emit)||((o=l==null?void 0:l.$emit)==null?void 0:o.bind(l))||((a=(i=l==null?void 0:l.proxy)==null?void 0:i.$emit)==null?void 0:a.bind(l==null?void 0:l.proxy));let v=c;t||(t="modelValue"),v=c||v||`update:${t.toString()}`;const h=w=>s?te(s)?s(w):vt(w):w,y=()=>ot(e[t])?h(e[t]):f;if(u){const w=y(),S=b(w);return W(()=>e[t],x=>S.value=h(x)),W(S,x=>{(x!==e[t]||p)&&d(v,x)},{deep:p}),S}else return C({get(){return y()},set(w){d(v,w)}})}function hn({window:e=j}={}){if(!e)return b(!1);const t=b(e.document.hasFocus());return D(e,"blur",()=>{t.value=!1}),D(e,"focus",()=>{t.value=!0}),t}function gn(e={}){const{window:t=j,initialWidth:n=1/0,initialHeight:r=1/0,listenOrientation:o=!0,includeScrollbar:i=!0}=e,a=b(n),s=b(r),u=()=>{t&&(i?(a.value=t.innerWidth,s.value=t.innerHeight):(a.value=t.document.documentElement.clientWidth,s.value=t.document.documentElement.clientHeight))};return u(),se(u),D("resize",u,{passive:!0}),o&&D("orientationchange",u,{passive:!0}),{width:a,height:s}}function $e(e){return Se()?(Ee(e),!0):!1}const ee=new WeakMap,xt=(...e)=>{var t;const n=e[0],r=(t=X())==null?void 0:t.proxy;if(r==null&&!Te())throw new Error("injectLocal must be called in setup");return r&&ee.has(r)&&n in ee.get(r)?ee.get(r)[n]:Ue(...e)},Ae=typeof window!="undefined"&&typeof document!="undefined";typeof WorkerGlobalScope!="undefined"&&globalThis instanceof WorkerGlobalScope;const Tt=Object.prototype.toString,Ct=e=>Tt.call(e)==="[object Object]",Wt=()=>{};function $t(e,t){function n(...r){return new Promise((o,i)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(o).catch(i)})}return n}const Me=e=>e();function At(e=Me,t={}){const{initialState:n="active"}=t,r=Re(n==="active");function o(){r.value=!1}function i(){r.value=!0}const a=(...s)=>{r.value&&e(...s)};return{isActive:K(r),pause:o,resume:i,eventFilter:a}}function Oe(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function Mt(e){return X()}function U(e){return Array.isArray(e)?e:[e]}function Re(...e){if(e.length!==1)return Ge(...e);const t=e[0];return typeof t=="function"?K(oe(()=>({get:t,set:Wt}))):b(t)}function Rt(e,t,n={}){const i=n,{eventFilter:r=Me}=i,o=Q(i,["eventFilter"]);return W(e,$t(r,t),o)}function It(e,t,n={}){const f=n,{eventFilter:r,initialState:o="active"}=f,i=Q(f,["eventFilter","initialState"]),{eventFilter:a,pause:s,resume:u,isActive:c}=At(r,{initialState:o});return{stop:Rt(e,t,H(F({},i),{eventFilter:a})),pause:s,resume:u,isActive:c}}function Dt(e,t={}){if(!Qe(e))return Je(e);const n=Array.isArray(e.value)?Array.from({length:e.value.length}):{};for(const r in e.value)n[r]=oe(()=>({get(){return e.value[r]},set(o){var i;if((i=_(t.replaceRef))!=null?i:!0)if(Array.isArray(e.value)){const s=[...e.value];s[r]=o,e.value=s}else{const s=H(F({},e.value),{[r]:o});Object.setPrototypeOf(s,Object.getPrototypeOf(e.value)),e.value=s}else e.value[r]=o}}));return n}function ie(e,t=!0,n){Mt()?ne(e,n):t?e():re(e)}function Lt(e,t,n){return W(e,t,H(F({},n),{immediate:!0}))}const V=Ae?window:void 0;function N(e){var t;const n=_(e);return(t=n==null?void 0:n.$el)!=null?t:n}function L(...e){const t=[],n=()=>{t.forEach(s=>s()),t.length=0},r=(s,u,c,p)=>(s.addEventListener(u,c,p),()=>s.removeEventListener(u,c,p)),o=C(()=>{const s=U(_(e[0])).filter(u=>u!=null);return s.every(u=>typeof u!="string")?s:void 0}),i=Lt(()=>{var s,u;return[(u=(s=o.value)==null?void 0:s.map(c=>N(c)))!=null?u:[V].filter(c=>c!=null),U(_(o.value?e[1]:e[0])),U(xe(o.value?e[2]:e[1])),_(o.value?e[3]:e[2])]},([s,u,c,p])=>{if(n(),!(s!=null&&s.length)||!(u!=null&&u.length)||!(c!=null&&c.length))return;const f=Ct(p)?F({},p):p;t.push(...s.flatMap(l=>u.flatMap(d=>c.map(v=>r(l,d,v,f)))))},{flush:"post"}),a=()=>{i(),n()};return $e(n),a}function Ft(){const e=A(!1),t=X();return t&&ne(()=>{e.value=!0},t),e}function Ie(e){const t=Ft();return C(()=>(t.value,!!e()))}const kt=Symbol("vueuse-ssr-width");function Vt(){const e=Te()?xt(kt,null):null;return typeof e=="number"?e:void 0}function Nt(e,t={}){const{window:n=V,ssrWidth:r=Vt()}=t,o=Ie(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function"),i=b(typeof r=="number"),a=A(),s=A(!1),u=c=>{s.value=c.matches};return Pe(()=>{if(i.value){i.value=!o.value;const c=_(e).split(",");s.value=c.some(p=>{const f=p.includes("not all"),l=p.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),d=p.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let v=!!(l||d);return l&&v&&(v=r>=Oe(l[1])),d&&v&&(v=r<=Oe(d[1])),f?!v:v});return}o.value&&(a.value=n.matchMedia(_(e)),s.value=a.value.matches)}),L(a,"change",u,{passive:!0}),C(()=>s.value)}const J=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},G="__vueuse_ssr_handlers__",zt=jt();function jt(){return G in J||(J[G]=J[G]||{}),J[G]}function De(e,t){return zt[e]||t}function Ht(e){return Nt("(prefers-color-scheme: dark)",e)}function Bt(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const Xt={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},_e="vueuse-storage";function Yt(e,t,n,r={}){var o;const{flush:i="pre",deep:a=!0,listenToStorageChanges:s=!0,writeDefaults:u=!0,mergeDefaults:c=!1,shallow:p,window:f=V,eventFilter:l,onError:d=g=>{console.error(g)},initOnMounted:v}=r,h=(p?A:b)(typeof t=="function"?t():t),y=C(()=>_(e));if(!n)try{n=De("getDefaultStorage",()=>{var g;return(g=V)==null?void 0:g.localStorage})()}catch(g){d(g)}if(!n)return h;const w=_(t),S=Bt(w),x=(o=r.serializer)!=null?o:Xt[S],{pause:P,resume:M}=It(h,()=>m(h.value),{flush:i,deep:a,eventFilter:l});W(y,()=>T(),{flush:i}),f&&s&&ie(()=>{n instanceof Storage?L(f,"storage",T,{passive:!0}):L(f,_e,R),v&&T()}),v||T();function I(g,O){if(f){const $={key:y.value,oldValue:g,newValue:O,storageArea:n};f.dispatchEvent(n instanceof Storage?new StorageEvent("storage",$):new CustomEvent(_e,{detail:$}))}}function m(g){try{const O=n.getItem(y.value);if(g==null)I(O,null),n.removeItem(y.value);else{const $=x.write(g);O!==$&&(n.setItem(y.value,$),I(O,$))}}catch(O){d(O)}}function E(g){const O=g?g.newValue:n.getItem(y.value);if(O==null)return u&&w!=null&&n.setItem(y.value,x.write(w)),w;if(!g&&c){const $=x.read(O);return typeof c=="function"?c($,w):S==="object"&&!Array.isArray($)?F(F({},w),$):$}else return typeof O!="string"?O:x.read(O)}function T(g){if(!(g&&g.storageArea!==n)){if(g&&g.key==null){h.value=w;return}if(!(g&&g.key!==y.value)){P();try{(g==null?void 0:g.newValue)!==x.write(h.value)&&(h.value=E(g))}catch(O){d(O)}finally{g?re(M):M()}}}}function R(g){T(g.detail)}return h}const Qt="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function Jt(e={}){const{selector:t="html",attribute:n="class",initialValue:r="auto",window:o=V,storage:i,storageKey:a="vueuse-color-scheme",listenToStorageChanges:s=!0,storageRef:u,emitAuto:c,disableTransition:p=!0}=e,f=F({auto:"",light:"light",dark:"dark"},e.modes||{}),l=Ht({window:o}),d=C(()=>l.value?"dark":"light"),v=u||(a==null?Re(r):Yt(a,r,i,{window:o,listenToStorageChanges:s})),h=C(()=>v.value==="auto"?d.value:v.value),y=De("updateHTMLAttrs",(P,M,I)=>{const m=typeof P=="string"?o==null?void 0:o.document.querySelector(P):N(P);if(!m)return;const E=new Set,T=new Set;let R=null;if(M==="class"){const O=I.split(/\s/g);Object.values(f).flatMap($=>($||"").split(/\s/g)).filter(Boolean).forEach($=>{O.includes($)?E.add($):T.add($)})}else R={key:M,value:I};if(E.size===0&&T.size===0&&R===null)return;let g;p&&(g=o.document.createElement("style"),g.appendChild(document.createTextNode(Qt)),o.document.head.appendChild(g));for(const O of E)m.classList.add(O);for(const O of T)m.classList.remove(O);R&&m.setAttribute(R.key,R.value),p&&(o.getComputedStyle(g).opacity,document.head.removeChild(g))});function w(P){var M;y(t,n,(M=f[P])!=null?M:P)}function S(P){e.onChanged?e.onChanged(P,w):w(P)}W(h,S,{flush:"post",immediate:!0}),ie(()=>S(h.value));const x=C({get(){return c?v.value:h.value},set(P){v.value=P}});return Object.assign(x,{store:v,system:d,state:h})}function yn(e={}){const{valueDark:t="dark",valueLight:n=""}=e,r=Jt(H(F({},e),{onChanged:(a,s)=>{var u;e.onChanged?(u=e.onChanged)==null||u.call(e,a==="dark",s,a):s(a)},modes:{dark:t,light:n}})),o=C(()=>r.system.value);return C({get(){return r.value==="dark"},set(a){const s=a?"dark":"light";o.value===s?r.value="auto":r.value=s}})}function wn(e,t={}){var n;const{pointerTypes:r,preventDefault:o,stopPropagation:i,exact:a,onMove:s,onEnd:u,onStart:c,initialValue:p,axis:f="both",draggingElement:l=V,containerElement:d,handle:v=e,buttons:h=[0]}=t,y=b((n=_(p))!=null?n:{x:0,y:0}),w=b(),S=m=>r?r.includes(m.pointerType):!0,x=m=>{_(o)&&m.preventDefault(),_(i)&&m.stopPropagation()},P=m=>{var E;if(!_(h).includes(m.button)||_(t.disabled)||!S(m)||_(a)&&m.target!==_(e))return;const T=_(d),R=(E=T==null?void 0:T.getBoundingClientRect)==null?void 0:E.call(T),g=_(e).getBoundingClientRect(),O={x:m.clientX-(T?g.left-R.left+T.scrollLeft:g.left),y:m.clientY-(T?g.top-R.top+T.scrollTop:g.top)};(c==null?void 0:c(O,m))!==!1&&(w.value=O,x(m))},M=m=>{if(_(t.disabled)||!S(m)||!w.value)return;const E=_(d),T=_(e).getBoundingClientRect();let{x:R,y:g}=y.value;(f==="x"||f==="both")&&(R=m.clientX-w.value.x,E&&(R=Math.min(Math.max(0,R),E.scrollWidth-T.width))),(f==="y"||f==="both")&&(g=m.clientY-w.value.y,E&&(g=Math.min(Math.max(0,g),E.scrollHeight-T.height))),y.value={x:R,y:g},s==null||s(y.value,m),x(m)},I=m=>{_(t.disabled)||!S(m)||w.value&&(w.value=void 0,u==null||u(y.value,m),x(m))};if(Ae){const m=()=>{var E;return{capture:(E=t.capture)!=null?E:!0,passive:!_(o)}};L(v,"pointerdown",P,m),L(l,"pointermove",M,m),L(l,"pointerup",I,m)}return H(F({},Dt(y)),{position:y,isDragging:C(()=>!!w.value),style:C(()=>`left:${y.value.x}px;top:${y.value.y}px;`)})}function Gt(e,t,n={}){const f=n,{window:r=V}=f,o=Q(f,["window"]);let i;const a=Ie(()=>r&&"ResizeObserver"in r),s=()=>{i&&(i.disconnect(),i=void 0)},u=C(()=>{const l=_(e);return Array.isArray(l)?l.map(d=>N(d)):[N(l)]}),c=W(u,l=>{if(s(),a.value&&r){i=new ResizeObserver(t);for(const d of l)d&&i.observe(d,o)}},{immediate:!0,flush:"post"}),p=()=>{s(),c()};return $e(p),{isSupported:a,stop:p}}function Ut(e,t={width:0,height:0},n={}){const{window:r=V,box:o="content-box"}=n,i=C(()=>{var f,l;return(l=(f=N(e))==null?void 0:f.namespaceURI)==null?void 0:l.includes("svg")}),a=b(t.width),s=b(t.height),{stop:u}=Gt(e,([f])=>{const l=o==="border-box"?f.borderBoxSize:o==="content-box"?f.contentBoxSize:f.devicePixelContentBoxSize;if(r&&i.value){const d=N(e);if(d){const v=d.getBoundingClientRect();a.value=v.width,s.value=v.height}}else if(l){const d=U(l);a.value=d.reduce((v,{inlineSize:h})=>v+h,0),s.value=d.reduce((v,{blockSize:h})=>v+h,0)}else a.value=f.contentRect.width,s.value=f.contentRect.height},n);ie(()=>{const f=N(e);f&&(a.value="offsetWidth"in f?f.offsetWidth:t.width,s.value="offsetHeight"in f?f.offsetHeight:t.height)});const c=W(()=>N(e),f=>{a.value=f?t.width:0,s.value=f?t.height:0});function p(){u(),c()}return{width:a,height:s,stop:p}}const Kt={page:e=>[e.pageX,e.pageY],client:e=>[e.clientX,e.clientY],screen:e=>[e.screenX,e.screenY],movement:e=>e instanceof MouseEvent?[e.movementX,e.movementY]:null};function qt(e={}){const{type:t="page",touch:n=!0,resetOnTouchEnds:r=!1,initialValue:o={x:0,y:0},window:i=V,target:a=i,scroll:s=!0,eventFilter:u}=e;let c=null,p=0,f=0;const l=A(o.x),d=A(o.y),v=A(null),h=typeof t=="function"?t:Kt[t],y=m=>{const E=h(m);c=m,E&&([l.value,d.value]=E,v.value="mouse"),i&&(p=i.scrollX,f=i.scrollY)},w=m=>{if(m.touches.length>0){const E=h(m.touches[0]);E&&([l.value,d.value]=E,v.value="touch")}},S=()=>{if(!c||!i)return;const m=h(c);c instanceof MouseEvent&&m&&(l.value=m[0]+i.scrollX-p,d.value=m[1]+i.scrollY-f)},x=()=>{l.value=o.x,d.value=o.y},P=u?m=>u(()=>y(m),{}):m=>y(m),M=u?m=>u(()=>w(m),{}):m=>w(m),I=u?()=>u(()=>S(),{}):()=>S();if(a){const m={passive:!0};L(a,["mousemove","dragover"],P,m),n&&t!=="movement"&&(L(a,["touchstart","touchmove"],M,m),r&&L(a,"touchend",x,m)),s&&t==="page"&&L(i,"scroll",I,m)}return{x:l,y:d,sourceType:v}}function bn(e,t={}){const{handleOutside:n=!0,window:r=V}=t,o=t.type||"page",{x:i,y:a,sourceType:s}=qt(t),u=b(e!=null?e:r==null?void 0:r.document.body),c=A(0),p=A(0),f=A(0),l=A(0),d=A(0),v=A(0),h=A(!0);let y=()=>{};return r&&(y=W([u,i,a],()=>{const w=N(u);if(!w||!(w instanceof Element))return;const{left:S,top:x,width:P,height:M}=w.getBoundingClientRect();f.value=S+(o==="page"?r.pageXOffset:0),l.value=x+(o==="page"?r.pageYOffset:0),d.value=M,v.value=P;const I=i.value-f.value,m=a.value-l.value;h.value=P===0||M===0||I<0||m<0||I>P||m>M,(n||!h.value)&&(c.value=I,p.value=m)},{immediate:!0}),L(document,"mouseleave",()=>h.value=!0,{passive:!0})),{x:i,y:a,sourceType:s,elementX:c,elementY:p,elementPositionX:f,elementPositionY:l,elementHeight:d,elementWidth:v,isOutside:h,stop:y}}function On(e,t){const{containerStyle:n,wrapperProps:r,scrollTo:o,calculateRange:i,currentList:a,containerRef:s}="itemHeight"in t?tn(t,e):en(t,e);return{list:a,scrollTo:o,containerProps:{ref:s,onScroll:()=>{i()},style:n},wrapperProps:r}}function Le(e){const t=A(null),n=Ut(t),r=b([]),o=A(e);return{state:b({start:0,end:10}),source:o,currentList:r,size:n,containerRef:t}}function Fe(e,t,n){return r=>{if(typeof n=="number")return Math.ceil(r/n);const{start:o=0}=e.value;let i=0,a=0;for(let s=o;s<t.value.length;s++){const u=n(s);if(i+=u,a=s,i>r)break}return a-o}}function ke(e,t){return n=>{if(typeof t=="number")return Math.floor(n/t)+1;let r=0,o=0;for(let i=0;i<e.value.length;i++){const a=t(i);if(r+=a,r>=n){o=i;break}}return o+1}}function Ve(e,t,n,r,{containerRef:o,state:i,currentList:a,source:s}){return()=>{const u=o.value;if(u){const c=n(e==="vertical"?u.scrollTop:u.scrollLeft),p=r(e==="vertical"?u.clientHeight:u.clientWidth),f=c-t,l=c+p+t;i.value={start:f<0?0:f,end:l>s.value.length?s.value.length:l},a.value=s.value.slice(i.value.start,i.value.end).map((d,v)=>({data:d,index:v+i.value.start}))}}}function Ne(e,t){return n=>typeof e=="number"?n*e:t.value.slice(0,n).reduce((o,i,a)=>o+e(a),0)}function ze(e,t,n,r){W([e.width,e.height,t,n],()=>{r()})}function je(e,t){return C(()=>typeof e=="number"?t.value.length*e:t.value.reduce((n,r,o)=>n+e(o),0))}const Zt={horizontal:"scrollLeft",vertical:"scrollTop"};function He(e,t,n,r){return o=>{r.value&&(r.value[Zt[e]]=n(o),t())}}function en(e,t){const n=Le(t),{state:r,source:o,currentList:i,size:a,containerRef:s}=n,u={overflowX:"auto"},{itemWidth:c,overscan:p=5}=e,f=Fe(r,o,c),l=ke(o,c),d=Ve("horizontal",p,l,f,n),v=Ne(c,o),h=C(()=>v(r.value.start)),y=je(c,o);ze(a,t,s,d);const w=He("horizontal",d,v,s),S=C(()=>({style:{height:"100%",width:`${y.value-h.value}px`,marginLeft:`${h.value}px`,display:"flex"}}));return{scrollTo:w,calculateRange:d,wrapperProps:S,containerStyle:u,currentList:i,containerRef:s}}function tn(e,t){const n=Le(t),{state:r,source:o,currentList:i,size:a,containerRef:s}=n,u={overflowY:"auto"},{itemHeight:c,overscan:p=5}=e,f=Fe(r,o,c),l=ke(o,c),d=Ve("vertical",p,l,f,n),v=Ne(c,o),h=C(()=>v(r.value.start)),y=je(c,o);ze(a,t,s,d);const w=He("vertical",d,v,s),S=C(()=>({style:{width:"100%",height:`${y.value-h.value}px`,marginTop:`${h.value}px`}}));return{calculateRange:d,scrollTo:w,containerStyle:u,wrapperProps:S,currentList:i,containerRef:s}}export{vn as a,D as b,on as c,gt as d,k as e,an as f,fn as g,un as h,q as i,it as j,pn as k,dn as l,hn as m,mn as n,ln as o,cn as p,wn as q,sn as r,bn as s,Z as t,gn as u,L as v,On as w,Ut as x,yn as y};
1
+ var Be=Object.defineProperty,Xe=Object.defineProperties;var Ye=Object.getOwnPropertyDescriptors;var Y=Object.getOwnPropertySymbols;var ue=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable;var ae=(e,t,n)=>t in e?Be(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,F=(e,t)=>{for(var n in t||(t={}))ue.call(t,n)&&ae(e,n,t[n]);if(Y)for(var n of Y(t))le.call(t,n)&&ae(e,n,t[n]);return e},H=(e,t)=>Xe(e,Ye(t));var Q=(e,t)=>{var n={};for(var r in e)ue.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Y)for(var r of Y(e))t.indexOf(r)<0&&le.call(e,r)&&(n[r]=e[r]);return n};import{g as Se,b as Ee,s as A,w as Pe,r as K,e as b,f as W,h as X,i as ne,n as re,u as xe,j as oe,k as C,l as Qe,t as Je,m as _,p as Ge,q as Te,v as Ue}from"./vue-DnfbZNhx.js";var Ke=Object.defineProperty,qe=Object.defineProperties,Ze=Object.getOwnPropertyDescriptors,ce=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,tt=Object.prototype.propertyIsEnumerable,fe=(e,t,n)=>t in e?Ke(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,nt=(e,t)=>{for(var n in t||(t={}))et.call(t,n)&&fe(e,n,t[n]);if(ce)for(var n of ce(t))tt.call(t,n)&&fe(e,n,t[n]);return e},rt=(e,t)=>qe(e,Ze(t));function on(e,t){var n;const r=A();return Pe(()=>{r.value=e()},rt(nt({},t),{flush:(n=void 0)!=null?n:"sync"})),K(r)}var de;const q=typeof window!="undefined",ot=e=>typeof e!="undefined",te=e=>typeof e=="function",st=e=>typeof e=="string",B=()=>{},it=q&&((de=window==null?void 0:window.navigator)==null?void 0:de.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function z(e){return typeof e=="function"?e():xe(e)}function Ce(e,t){function n(...r){return new Promise((o,i)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(o).catch(i)})}return n}function at(e,t={}){let n,r,o=B;const i=s=>{clearTimeout(s),o(),o=B};return s=>{const u=z(e),c=z(t.maxWait);return n&&i(n),u<=0||c!==void 0&&c<=0?(r&&(i(r),r=null),Promise.resolve(s())):new Promise((p,f)=>{o=t.rejectOnCancel?f:p,c&&!r&&(r=setTimeout(()=>{n&&i(n),r=null,p(s())},c)),n=setTimeout(()=>{r&&i(r),r=null,p(s())},u)})}}function ut(e,t=!0,n=!0,r=!1){let o=0,i,a=!0,s=B,u;const c=()=>{i&&(clearTimeout(i),i=void 0,s(),s=B)};return f=>{const l=z(e),d=Date.now()-o,v=()=>u=f();return c(),l<=0?(o=Date.now(),v()):(d>l&&(n||!a)?(o=Date.now(),v()):t&&(u=new Promise((h,y)=>{s=r?y:h,i=setTimeout(()=>{o=Date.now(),a=!0,h(v()),c()},Math.max(0,l-d))})),!n&&!i&&(i=setTimeout(()=>a=!0,l)),a=!1,u)}}function lt(e){return e}function ct(e,t){let n,r,o;const i=b(!0),a=()=>{i.value=!0,o()};W(e,a,{flush:"sync"});const s=te(t)?t:t.get,u=te(t)?void 0:t.set,c=oe((p,f)=>(r=p,o=f,{get(){return i.value&&(n=s(),i.value=!1),r(),n},set(l){u==null||u(l)}}));return Object.isExtensible(c)&&(c.trigger=a),c}function Z(e){return Se()?(Ee(e),!0):!1}function ft(e,t=200,n={}){return Ce(at(t,n),e)}function sn(e,t=200,n={}){const r=b(e.value),o=ft(()=>{r.value=e.value},t,n);return W(e,()=>o()),r}function an(e,t=200,n=!1,r=!0,o=!1){return Ce(ut(t,n,r,o),e)}function se(e,t=!0){X()?ne(e):t?e():re(e)}function un(e,t,n={}){const{immediate:r=!0}=n,o=b(!1);let i=null;function a(){i&&(clearTimeout(i),i=null)}function s(){o.value=!1,a()}function u(...c){a(),o.value=!0,i=setTimeout(()=>{o.value=!1,i=null,e(...c)},z(t))}return r&&(o.value=!0,q&&u()),Z(s),{isPending:K(o),start:u,stop:s}}function k(e){var t;const n=z(e);return(t=n==null?void 0:n.$el)!=null?t:n}const j=q?window:void 0,dt=q?window.document:void 0;function D(...e){let t,n,r,o;if(st(e[0])||Array.isArray(e[0])?([n,r,o]=e,t=j):[t,n,r,o]=e,!t)return B;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const i=[],a=()=>{i.forEach(p=>p()),i.length=0},s=(p,f,l,d)=>(p.addEventListener(f,l,d),()=>p.removeEventListener(f,l,d)),u=W(()=>[k(t),z(o)],([p,f])=>{a(),p&&i.push(...n.flatMap(l=>r.map(d=>s(p,l,d,f))))},{immediate:!0,flush:"post"}),c=()=>{u(),a()};return Z(c),c}let ve=!1;function ln(e,t,n={}){const{window:r=j,ignore:o=[],capture:i=!0,detectIframe:a=!1}=n;if(!r)return;it&&!ve&&(ve=!0,Array.from(r.document.body.children).forEach(l=>l.addEventListener("click",B)));let s=!0;const u=l=>o.some(d=>{if(typeof d=="string")return Array.from(r.document.querySelectorAll(d)).some(v=>v===l.target||l.composedPath().includes(v));{const v=k(d);return v&&(l.target===v||l.composedPath().includes(v))}}),p=[D(r,"click",l=>{const d=k(e);if(!(!d||d===l.target||l.composedPath().includes(d))){if(l.detail===0&&(s=!u(l)),!s){s=!0;return}t(l)}},{passive:!0,capture:i}),D(r,"pointerdown",l=>{const d=k(e);d&&(s=!l.composedPath().includes(d)&&!u(l))},{passive:!0}),a&&D(r,"blur",l=>{var d;const v=k(e);((d=r.document.activeElement)==null?void 0:d.tagName)==="IFRAME"&&!(v!=null&&v.contains(r.document.activeElement))&&t(l)})].filter(Boolean);return()=>p.forEach(l=>l())}function cn(e={}){var t;const{window:n=j}=e,r=(t=e.document)!=null?t:n==null?void 0:n.document,o=ct(()=>null,()=>r==null?void 0:r.activeElement);return n&&(D(n,"blur",i=>{i.relatedTarget===null&&o.trigger()},!0),D(n,"focus",o.trigger,!0)),o}function We(e,t=!1){const n=b(),r=()=>n.value=!!e();return r(),se(r,t),n}function vt(e){return JSON.parse(JSON.stringify(e))}const pe=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},me="__vueuse_ssr_handlers__";pe[me]=pe[me]||{};function fn(e,t,{window:n=j,initialValue:r=""}={}){const o=b(r),i=C(()=>{var a;return k(t)||((a=n==null?void 0:n.document)==null?void 0:a.documentElement)});return W([i,()=>z(e)],([a,s])=>{var u;if(a&&n){const c=(u=n.getComputedStyle(a).getPropertyValue(s))==null?void 0:u.trim();o.value=c||r}},{immediate:!0}),W(o,a=>{var s;(s=i.value)!=null&&s.style&&i.value.style.setProperty(z(e),a)}),o}function dn({document:e=dt}={}){if(!e)return b("visible");const t=b(e.visibilityState);return D(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var he=Object.getOwnPropertySymbols,pt=Object.prototype.hasOwnProperty,mt=Object.prototype.propertyIsEnumerable,ht=(e,t)=>{var n={};for(var r in e)pt.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&he)for(var r of he(e))t.indexOf(r)<0&&mt.call(e,r)&&(n[r]=e[r]);return n};function gt(e,t,n={}){const r=n,{window:o=j}=r,i=ht(r,["window"]);let a;const s=We(()=>o&&"ResizeObserver"in o),u=()=>{a&&(a.disconnect(),a=void 0)},c=W(()=>k(e),f=>{u(),s.value&&o&&f&&(a=new ResizeObserver(t),a.observe(f,i))},{immediate:!0,flush:"post"}),p=()=>{u(),c()};return Z(p),{isSupported:s,stop:p}}function vn(e,t={}){const{reset:n=!0,windowResize:r=!0,windowScroll:o=!0,immediate:i=!0}=t,a=b(0),s=b(0),u=b(0),c=b(0),p=b(0),f=b(0),l=b(0),d=b(0);function v(){const h=k(e);if(!h){n&&(a.value=0,s.value=0,u.value=0,c.value=0,p.value=0,f.value=0,l.value=0,d.value=0);return}const y=h.getBoundingClientRect();a.value=y.height,s.value=y.bottom,u.value=y.left,c.value=y.right,p.value=y.top,f.value=y.width,l.value=y.x,d.value=y.y}return gt(e,v),W(()=>k(e),h=>!h&&v()),o&&D("scroll",v,{capture:!0,passive:!0}),r&&D("resize",v,{passive:!0}),se(()=>{i&&v()}),{height:a,bottom:s,left:u,right:c,top:p,width:f,x:l,y:d,update:v}}var ge=Object.getOwnPropertySymbols,yt=Object.prototype.hasOwnProperty,wt=Object.prototype.propertyIsEnumerable,bt=(e,t)=>{var n={};for(var r in e)yt.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&ge)for(var r of ge(e))t.indexOf(r)<0&&wt.call(e,r)&&(n[r]=e[r]);return n};function pn(e,t,n={}){const r=n,{window:o=j}=r,i=bt(r,["window"]);let a;const s=We(()=>o&&"MutationObserver"in o),u=()=>{a&&(a.disconnect(),a=void 0)},c=W(()=>k(e),f=>{u(),s.value&&o&&f&&(a=new MutationObserver(t),a.observe(f,i))},{immediate:!0}),p=()=>{u(),c()};return Z(p),{isSupported:s,stop:p}}var ye;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(ye||(ye={}));var Ot=Object.defineProperty,we=Object.getOwnPropertySymbols,_t=Object.prototype.hasOwnProperty,St=Object.prototype.propertyIsEnumerable,be=(e,t,n)=>t in e?Ot(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Et=(e,t)=>{for(var n in t||(t={}))_t.call(t,n)&&be(e,n,t[n]);if(we)for(var n of we(t))St.call(t,n)&&be(e,n,t[n]);return e};const Pt={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};Et({linear:lt},Pt);function mn(e,t,n,r={}){var o,i,a;const{clone:s=!1,passive:u=!1,eventName:c,deep:p=!1,defaultValue:f}=r,l=X(),d=n||(l==null?void 0:l.emit)||((o=l==null?void 0:l.$emit)==null?void 0:o.bind(l))||((a=(i=l==null?void 0:l.proxy)==null?void 0:i.$emit)==null?void 0:a.bind(l==null?void 0:l.proxy));let v=c;t||(t="modelValue"),v=c||v||`update:${t.toString()}`;const h=w=>s?te(s)?s(w):vt(w):w,y=()=>ot(e[t])?h(e[t]):f;if(u){const w=y(),S=b(w);return W(()=>e[t],x=>S.value=h(x)),W(S,x=>{(x!==e[t]||p)&&d(v,x)},{deep:p}),S}else return C({get(){return y()},set(w){d(v,w)}})}function hn({window:e=j}={}){if(!e)return b(!1);const t=b(e.document.hasFocus());return D(e,"blur",()=>{t.value=!1}),D(e,"focus",()=>{t.value=!0}),t}function gn(e={}){const{window:t=j,initialWidth:n=1/0,initialHeight:r=1/0,listenOrientation:o=!0,includeScrollbar:i=!0}=e,a=b(n),s=b(r),u=()=>{t&&(i?(a.value=t.innerWidth,s.value=t.innerHeight):(a.value=t.document.documentElement.clientWidth,s.value=t.document.documentElement.clientHeight))};return u(),se(u),D("resize",u,{passive:!0}),o&&D("orientationchange",u,{passive:!0}),{width:a,height:s}}function $e(e){return Se()?(Ee(e),!0):!1}const ee=new WeakMap,xt=(...e)=>{var t;const n=e[0],r=(t=X())==null?void 0:t.proxy;if(r==null&&!Te())throw new Error("injectLocal must be called in setup");return r&&ee.has(r)&&n in ee.get(r)?ee.get(r)[n]:Ue(...e)},Ae=typeof window!="undefined"&&typeof document!="undefined";typeof WorkerGlobalScope!="undefined"&&globalThis instanceof WorkerGlobalScope;const Tt=Object.prototype.toString,Ct=e=>Tt.call(e)==="[object Object]",Wt=()=>{};function $t(e,t){function n(...r){return new Promise((o,i)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(o).catch(i)})}return n}const Me=e=>e();function At(e=Me,t={}){const{initialState:n="active"}=t,r=Re(n==="active");function o(){r.value=!1}function i(){r.value=!0}const a=(...s)=>{r.value&&e(...s)};return{isActive:K(r),pause:o,resume:i,eventFilter:a}}function Oe(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function Mt(e){return X()}function U(e){return Array.isArray(e)?e:[e]}function Re(...e){if(e.length!==1)return Ge(...e);const t=e[0];return typeof t=="function"?K(oe(()=>({get:t,set:Wt}))):b(t)}function Rt(e,t,n={}){const i=n,{eventFilter:r=Me}=i,o=Q(i,["eventFilter"]);return W(e,$t(r,t),o)}function It(e,t,n={}){const f=n,{eventFilter:r,initialState:o="active"}=f,i=Q(f,["eventFilter","initialState"]),{eventFilter:a,pause:s,resume:u,isActive:c}=At(r,{initialState:o});return{stop:Rt(e,t,H(F({},i),{eventFilter:a})),pause:s,resume:u,isActive:c}}function Dt(e,t={}){if(!Qe(e))return Je(e);const n=Array.isArray(e.value)?Array.from({length:e.value.length}):{};for(const r in e.value)n[r]=oe(()=>({get(){return e.value[r]},set(o){var i;if((i=_(t.replaceRef))!=null?i:!0)if(Array.isArray(e.value)){const s=[...e.value];s[r]=o,e.value=s}else{const s=H(F({},e.value),{[r]:o});Object.setPrototypeOf(s,Object.getPrototypeOf(e.value)),e.value=s}else e.value[r]=o}}));return n}function ie(e,t=!0,n){Mt()?ne(e,n):t?e():re(e)}function Lt(e,t,n){return W(e,t,H(F({},n),{immediate:!0}))}const V=Ae?window:void 0;function N(e){var t;const n=_(e);return(t=n==null?void 0:n.$el)!=null?t:n}function L(...e){const t=[],n=()=>{t.forEach(s=>s()),t.length=0},r=(s,u,c,p)=>(s.addEventListener(u,c,p),()=>s.removeEventListener(u,c,p)),o=C(()=>{const s=U(_(e[0])).filter(u=>u!=null);return s.every(u=>typeof u!="string")?s:void 0}),i=Lt(()=>{var s,u;return[(u=(s=o.value)==null?void 0:s.map(c=>N(c)))!=null?u:[V].filter(c=>c!=null),U(_(o.value?e[1]:e[0])),U(xe(o.value?e[2]:e[1])),_(o.value?e[3]:e[2])]},([s,u,c,p])=>{if(n(),!(s!=null&&s.length)||!(u!=null&&u.length)||!(c!=null&&c.length))return;const f=Ct(p)?F({},p):p;t.push(...s.flatMap(l=>u.flatMap(d=>c.map(v=>r(l,d,v,f)))))},{flush:"post"}),a=()=>{i(),n()};return $e(n),a}function Ft(){const e=A(!1),t=X();return t&&ne(()=>{e.value=!0},t),e}function Ie(e){const t=Ft();return C(()=>(t.value,!!e()))}const kt=Symbol("vueuse-ssr-width");function Vt(){const e=Te()?xt(kt,null):null;return typeof e=="number"?e:void 0}function Nt(e,t={}){const{window:n=V,ssrWidth:r=Vt()}=t,o=Ie(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function"),i=b(typeof r=="number"),a=A(),s=A(!1),u=c=>{s.value=c.matches};return Pe(()=>{if(i.value){i.value=!o.value;const c=_(e).split(",");s.value=c.some(p=>{const f=p.includes("not all"),l=p.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),d=p.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let v=!!(l||d);return l&&v&&(v=r>=Oe(l[1])),d&&v&&(v=r<=Oe(d[1])),f?!v:v});return}o.value&&(a.value=n.matchMedia(_(e)),s.value=a.value.matches)}),L(a,"change",u,{passive:!0}),C(()=>s.value)}const J=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},G="__vueuse_ssr_handlers__",zt=jt();function jt(){return G in J||(J[G]=J[G]||{}),J[G]}function De(e,t){return zt[e]||t}function Ht(e){return Nt("(prefers-color-scheme: dark)",e)}function Bt(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const Xt={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},_e="vueuse-storage";function Yt(e,t,n,r={}){var o;const{flush:i="pre",deep:a=!0,listenToStorageChanges:s=!0,writeDefaults:u=!0,mergeDefaults:c=!1,shallow:p,window:f=V,eventFilter:l,onError:d=g=>{console.error(g)},initOnMounted:v}=r,h=(p?A:b)(typeof t=="function"?t():t),y=C(()=>_(e));if(!n)try{n=De("getDefaultStorage",()=>{var g;return(g=V)==null?void 0:g.localStorage})()}catch(g){d(g)}if(!n)return h;const w=_(t),S=Bt(w),x=(o=r.serializer)!=null?o:Xt[S],{pause:P,resume:M}=It(h,()=>m(h.value),{flush:i,deep:a,eventFilter:l});W(y,()=>T(),{flush:i}),f&&s&&ie(()=>{n instanceof Storage?L(f,"storage",T,{passive:!0}):L(f,_e,R),v&&T()}),v||T();function I(g,O){if(f){const $={key:y.value,oldValue:g,newValue:O,storageArea:n};f.dispatchEvent(n instanceof Storage?new StorageEvent("storage",$):new CustomEvent(_e,{detail:$}))}}function m(g){try{const O=n.getItem(y.value);if(g==null)I(O,null),n.removeItem(y.value);else{const $=x.write(g);O!==$&&(n.setItem(y.value,$),I(O,$))}}catch(O){d(O)}}function E(g){const O=g?g.newValue:n.getItem(y.value);if(O==null)return u&&w!=null&&n.setItem(y.value,x.write(w)),w;if(!g&&c){const $=x.read(O);return typeof c=="function"?c($,w):S==="object"&&!Array.isArray($)?F(F({},w),$):$}else return typeof O!="string"?O:x.read(O)}function T(g){if(!(g&&g.storageArea!==n)){if(g&&g.key==null){h.value=w;return}if(!(g&&g.key!==y.value)){P();try{(g==null?void 0:g.newValue)!==x.write(h.value)&&(h.value=E(g))}catch(O){d(O)}finally{g?re(M):M()}}}}function R(g){T(g.detail)}return h}const Qt="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function Jt(e={}){const{selector:t="html",attribute:n="class",initialValue:r="auto",window:o=V,storage:i,storageKey:a="vueuse-color-scheme",listenToStorageChanges:s=!0,storageRef:u,emitAuto:c,disableTransition:p=!0}=e,f=F({auto:"",light:"light",dark:"dark"},e.modes||{}),l=Ht({window:o}),d=C(()=>l.value?"dark":"light"),v=u||(a==null?Re(r):Yt(a,r,i,{window:o,listenToStorageChanges:s})),h=C(()=>v.value==="auto"?d.value:v.value),y=De("updateHTMLAttrs",(P,M,I)=>{const m=typeof P=="string"?o==null?void 0:o.document.querySelector(P):N(P);if(!m)return;const E=new Set,T=new Set;let R=null;if(M==="class"){const O=I.split(/\s/g);Object.values(f).flatMap($=>($||"").split(/\s/g)).filter(Boolean).forEach($=>{O.includes($)?E.add($):T.add($)})}else R={key:M,value:I};if(E.size===0&&T.size===0&&R===null)return;let g;p&&(g=o.document.createElement("style"),g.appendChild(document.createTextNode(Qt)),o.document.head.appendChild(g));for(const O of E)m.classList.add(O);for(const O of T)m.classList.remove(O);R&&m.setAttribute(R.key,R.value),p&&(o.getComputedStyle(g).opacity,document.head.removeChild(g))});function w(P){var M;y(t,n,(M=f[P])!=null?M:P)}function S(P){e.onChanged?e.onChanged(P,w):w(P)}W(h,S,{flush:"post",immediate:!0}),ie(()=>S(h.value));const x=C({get(){return c?v.value:h.value},set(P){v.value=P}});return Object.assign(x,{store:v,system:d,state:h})}function yn(e={}){const{valueDark:t="dark",valueLight:n=""}=e,r=Jt(H(F({},e),{onChanged:(a,s)=>{var u;e.onChanged?(u=e.onChanged)==null||u.call(e,a==="dark",s,a):s(a)},modes:{dark:t,light:n}})),o=C(()=>r.system.value);return C({get(){return r.value==="dark"},set(a){const s=a?"dark":"light";o.value===s?r.value="auto":r.value=s}})}function wn(e,t={}){var n;const{pointerTypes:r,preventDefault:o,stopPropagation:i,exact:a,onMove:s,onEnd:u,onStart:c,initialValue:p,axis:f="both",draggingElement:l=V,containerElement:d,handle:v=e,buttons:h=[0]}=t,y=b((n=_(p))!=null?n:{x:0,y:0}),w=b(),S=m=>r?r.includes(m.pointerType):!0,x=m=>{_(o)&&m.preventDefault(),_(i)&&m.stopPropagation()},P=m=>{var E;if(!_(h).includes(m.button)||_(t.disabled)||!S(m)||_(a)&&m.target!==_(e))return;const T=_(d),R=(E=T==null?void 0:T.getBoundingClientRect)==null?void 0:E.call(T),g=_(e).getBoundingClientRect(),O={x:m.clientX-(T?g.left-R.left+T.scrollLeft:g.left),y:m.clientY-(T?g.top-R.top+T.scrollTop:g.top)};(c==null?void 0:c(O,m))!==!1&&(w.value=O,x(m))},M=m=>{if(_(t.disabled)||!S(m)||!w.value)return;const E=_(d),T=_(e).getBoundingClientRect();let{x:R,y:g}=y.value;(f==="x"||f==="both")&&(R=m.clientX-w.value.x,E&&(R=Math.min(Math.max(0,R),E.scrollWidth-T.width))),(f==="y"||f==="both")&&(g=m.clientY-w.value.y,E&&(g=Math.min(Math.max(0,g),E.scrollHeight-T.height))),y.value={x:R,y:g},s==null||s(y.value,m),x(m)},I=m=>{_(t.disabled)||!S(m)||w.value&&(w.value=void 0,u==null||u(y.value,m),x(m))};if(Ae){const m=()=>{var E;return{capture:(E=t.capture)!=null?E:!0,passive:!_(o)}};L(v,"pointerdown",P,m),L(l,"pointermove",M,m),L(l,"pointerup",I,m)}return H(F({},Dt(y)),{position:y,isDragging:C(()=>!!w.value),style:C(()=>`left:${y.value.x}px;top:${y.value.y}px;`)})}function Gt(e,t,n={}){const f=n,{window:r=V}=f,o=Q(f,["window"]);let i;const a=Ie(()=>r&&"ResizeObserver"in r),s=()=>{i&&(i.disconnect(),i=void 0)},u=C(()=>{const l=_(e);return Array.isArray(l)?l.map(d=>N(d)):[N(l)]}),c=W(u,l=>{if(s(),a.value&&r){i=new ResizeObserver(t);for(const d of l)d&&i.observe(d,o)}},{immediate:!0,flush:"post"}),p=()=>{s(),c()};return $e(p),{isSupported:a,stop:p}}function Ut(e,t={width:0,height:0},n={}){const{window:r=V,box:o="content-box"}=n,i=C(()=>{var f,l;return(l=(f=N(e))==null?void 0:f.namespaceURI)==null?void 0:l.includes("svg")}),a=b(t.width),s=b(t.height),{stop:u}=Gt(e,([f])=>{const l=o==="border-box"?f.borderBoxSize:o==="content-box"?f.contentBoxSize:f.devicePixelContentBoxSize;if(r&&i.value){const d=N(e);if(d){const v=d.getBoundingClientRect();a.value=v.width,s.value=v.height}}else if(l){const d=U(l);a.value=d.reduce((v,{inlineSize:h})=>v+h,0),s.value=d.reduce((v,{blockSize:h})=>v+h,0)}else a.value=f.contentRect.width,s.value=f.contentRect.height},n);ie(()=>{const f=N(e);f&&(a.value="offsetWidth"in f?f.offsetWidth:t.width,s.value="offsetHeight"in f?f.offsetHeight:t.height)});const c=W(()=>N(e),f=>{a.value=f?t.width:0,s.value=f?t.height:0});function p(){u(),c()}return{width:a,height:s,stop:p}}const Kt={page:e=>[e.pageX,e.pageY],client:e=>[e.clientX,e.clientY],screen:e=>[e.screenX,e.screenY],movement:e=>e instanceof MouseEvent?[e.movementX,e.movementY]:null};function qt(e={}){const{type:t="page",touch:n=!0,resetOnTouchEnds:r=!1,initialValue:o={x:0,y:0},window:i=V,target:a=i,scroll:s=!0,eventFilter:u}=e;let c=null,p=0,f=0;const l=A(o.x),d=A(o.y),v=A(null),h=typeof t=="function"?t:Kt[t],y=m=>{const E=h(m);c=m,E&&([l.value,d.value]=E,v.value="mouse"),i&&(p=i.scrollX,f=i.scrollY)},w=m=>{if(m.touches.length>0){const E=h(m.touches[0]);E&&([l.value,d.value]=E,v.value="touch")}},S=()=>{if(!c||!i)return;const m=h(c);c instanceof MouseEvent&&m&&(l.value=m[0]+i.scrollX-p,d.value=m[1]+i.scrollY-f)},x=()=>{l.value=o.x,d.value=o.y},P=u?m=>u(()=>y(m),{}):m=>y(m),M=u?m=>u(()=>w(m),{}):m=>w(m),I=u?()=>u(()=>S(),{}):()=>S();if(a){const m={passive:!0};L(a,["mousemove","dragover"],P,m),n&&t!=="movement"&&(L(a,["touchstart","touchmove"],M,m),r&&L(a,"touchend",x,m)),s&&t==="page"&&L(i,"scroll",I,m)}return{x:l,y:d,sourceType:v}}function bn(e,t={}){const{handleOutside:n=!0,window:r=V}=t,o=t.type||"page",{x:i,y:a,sourceType:s}=qt(t),u=b(e!=null?e:r==null?void 0:r.document.body),c=A(0),p=A(0),f=A(0),l=A(0),d=A(0),v=A(0),h=A(!0);let y=()=>{};return r&&(y=W([u,i,a],()=>{const w=N(u);if(!w||!(w instanceof Element))return;const{left:S,top:x,width:P,height:M}=w.getBoundingClientRect();f.value=S+(o==="page"?r.pageXOffset:0),l.value=x+(o==="page"?r.pageYOffset:0),d.value=M,v.value=P;const I=i.value-f.value,m=a.value-l.value;h.value=P===0||M===0||I<0||m<0||I>P||m>M,(n||!h.value)&&(c.value=I,p.value=m)},{immediate:!0}),L(document,"mouseleave",()=>h.value=!0,{passive:!0})),{x:i,y:a,sourceType:s,elementX:c,elementY:p,elementPositionX:f,elementPositionY:l,elementHeight:d,elementWidth:v,isOutside:h,stop:y}}function On(e,t){const{containerStyle:n,wrapperProps:r,scrollTo:o,calculateRange:i,currentList:a,containerRef:s}="itemHeight"in t?tn(t,e):en(t,e);return{list:a,scrollTo:o,containerProps:{ref:s,onScroll:()=>{i()},style:n},wrapperProps:r}}function Le(e){const t=A(null),n=Ut(t),r=b([]),o=A(e);return{state:b({start:0,end:10}),source:o,currentList:r,size:n,containerRef:t}}function Fe(e,t,n){return r=>{if(typeof n=="number")return Math.ceil(r/n);const{start:o=0}=e.value;let i=0,a=0;for(let s=o;s<t.value.length;s++){const u=n(s);if(i+=u,a=s,i>r)break}return a-o}}function ke(e,t){return n=>{if(typeof t=="number")return Math.floor(n/t)+1;let r=0,o=0;for(let i=0;i<e.value.length;i++){const a=t(i);if(r+=a,r>=n){o=i;break}}return o+1}}function Ve(e,t,n,r,{containerRef:o,state:i,currentList:a,source:s}){return()=>{const u=o.value;if(u){const c=n(e==="vertical"?u.scrollTop:u.scrollLeft),p=r(e==="vertical"?u.clientHeight:u.clientWidth),f=c-t,l=c+p+t;i.value={start:f<0?0:f,end:l>s.value.length?s.value.length:l},a.value=s.value.slice(i.value.start,i.value.end).map((d,v)=>({data:d,index:v+i.value.start}))}}}function Ne(e,t){return n=>typeof e=="number"?n*e:t.value.slice(0,n).reduce((o,i,a)=>o+e(a),0)}function ze(e,t,n,r){W([e.width,e.height,t,n],()=>{r()})}function je(e,t){return C(()=>typeof e=="number"?t.value.length*e:t.value.reduce((n,r,o)=>n+e(o),0))}const Zt={horizontal:"scrollLeft",vertical:"scrollTop"};function He(e,t,n,r){return o=>{r.value&&(r.value[Zt[e]]=n(o),t())}}function en(e,t){const n=Le(t),{state:r,source:o,currentList:i,size:a,containerRef:s}=n,u={overflowX:"auto"},{itemWidth:c,overscan:p=5}=e,f=Fe(r,o,c),l=ke(o,c),d=Ve("horizontal",p,l,f,n),v=Ne(c,o),h=C(()=>v(r.value.start)),y=je(c,o);ze(a,t,s,d);const w=He("horizontal",d,v,s),S=C(()=>({style:{height:"100%",width:`${y.value-h.value}px`,marginLeft:`${h.value}px`,display:"flex"}}));return{scrollTo:w,calculateRange:d,wrapperProps:S,containerStyle:u,currentList:i,containerRef:s}}function tn(e,t){const n=Le(t),{state:r,source:o,currentList:i,size:a,containerRef:s}=n,u={overflowY:"auto"},{itemHeight:c,overscan:p=5}=e,f=Fe(r,o,c),l=ke(o,c),d=Ve("vertical",p,l,f,n),v=Ne(c,o),h=C(()=>v(r.value.start)),y=je(c,o);ze(a,t,s,d);const w=He("vertical",d,v,s),S=C(()=>({style:{width:"100%",height:`${y.value-h.value}px`,marginTop:`${h.value}px`}}));return{calculateRange:d,scrollTo:w,containerStyle:u,wrapperProps:S,currentList:i,containerRef:s}}export{vn as a,D as b,on as c,gt as d,k as e,an as f,fn as g,un as h,q as i,it as j,pn as k,dn as l,hn as m,mn as n,ln as o,cn as p,wn as q,sn as r,bn as s,Z as t,gn as u,L as v,On as w,Ut as x,yn as y};
@@ -1 +1 @@
1
- var v=Object.defineProperty;var f=Object.getOwnPropertySymbols;var h=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable;var y=(o,a,t)=>a in o?v(o,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[a]=t,g=(o,a)=>{for(var t in a||(a={}))h.call(a,t)&&y(o,t,a[t]);if(f)for(var t of f(a))E.call(a,t)&&y(o,t,a[t]);return o};var _=(o,a,t)=>new Promise((r,u)=>{var c=i=>{try{d(t.next(i))}catch(m){u(m)}},e=i=>{try{d(t.throw(i))}catch(m){u(m)}},d=i=>i.done?r(i.value):Promise.resolve(i.value).then(c,e);d((t=t.apply(o,a)).next())});import{_ as p,e as V}from"./monaco-editor-B8dwQNlP.js";import{d as w,e as T,c as k,i as D,n as b,W as B,f as P,o as A,G as L,a7 as O,H as x,Y as I}from"./vue-DpQa2Qs4.js";const z=w({__name:"Editor",props:{lang:{default:"typescript"},modelValue:{default:""},options:{default:()=>({})},height:{default:"300px"},readonly:{type:Boolean,default:!1},dark:{type:Boolean,default:!1},border:{type:Boolean},minimap:{type:Boolean,default:!1}},emits:["change","blur","update:modelValue"],setup(o,{expose:a,emit:t}){const r=o;self.MonacoEnvironment={createTrustedTypesPolicy:void 0,getWorker(l,n){return _(this,null,function*(){let s;return n==="json"&&(s=yield p(()=>import("./json.worker-DCDqLFYI-C7_rWj4n.js"),[],import.meta.url)),["css","scss","less"].includes(n)&&(s=yield p(()=>import("./css.worker-DhE07keG-DPvIRz-E.js"),[],import.meta.url)),["html","handlebars","razor","vue"].includes(n)&&(s=yield p(()=>import("./html.worker-C5hxLCyX-CnBobk15.js"),[],import.meta.url)),["typescript","javascript"].includes(n)&&(s=yield p(()=>import("./ts.worker-Bjq4oI3m-CFV77luR.js"),[],import.meta.url)),s=s||(yield p(()=>import("./editor.worker-DKpUct5n-Y3jripZQ.js"),[],import.meta.url)),new s.default})}};const u=t,c=T();let e=null;const d=()=>_(this,null,function*(){var l;e&&(yield(l=e.getAction("editor.action.formatDocument"))==null?void 0:l.run(),e.setValue(e.getValue()))}),i=()=>_(this,null,function*(){yield d();const l=e==null?void 0:e.getValue();u("update:modelValue",l),u("blur",l)}),m=()=>{e=V.create(c.value,g({value:r.modelValue,language:r.lang,readOnly:r.readonly,theme:r.dark?"vs-dark":"vs",automaticLayout:!0,minimap:{enabled:r.minimap}},r.options)),e.onDidChangeModelContent(l=>{u("change",e==null?void 0:e.getValue(),l)}),e.onDidBlurEditorText(i)};return D(()=>{b(m)}),B(()=>{e&&e.dispose()}),P(()=>r.modelValue,l=>{e&&e.setValue(l)}),a({getEditor:()=>e}),(l,n)=>(A(),k("div",{class:x(["v-code-editor",{"is-border":r.border}]),ref_key:"container",ref:c,onKeyup:n[0]||(n[0]=O(I(()=>{},["stop"]),["enter"])),style:L({height:r.height})},null,38))}});export{z as default};
1
+ var v=Object.defineProperty;var f=Object.getOwnPropertySymbols;var h=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable;var y=(o,a,t)=>a in o?v(o,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[a]=t,g=(o,a)=>{for(var t in a||(a={}))h.call(a,t)&&y(o,t,a[t]);if(f)for(var t of f(a))E.call(a,t)&&y(o,t,a[t]);return o};var _=(o,a,t)=>new Promise((r,u)=>{var c=i=>{try{d(t.next(i))}catch(m){u(m)}},e=i=>{try{d(t.throw(i))}catch(m){u(m)}},d=i=>i.done?r(i.value):Promise.resolve(i.value).then(c,e);d((t=t.apply(o,a)).next())});import{_ as p,e as V}from"./monaco-editor-B8dwQNlP.js";import{d as w,e as T,c as k,i as D,n as b,W as B,f as P,o as A,G as L,a7 as O,H as x,Y as I}from"./vue-DnfbZNhx.js";const z=w({__name:"Editor",props:{lang:{default:"typescript"},modelValue:{default:""},options:{default:()=>({})},height:{default:"300px"},readonly:{type:Boolean,default:!1},dark:{type:Boolean,default:!1},border:{type:Boolean},minimap:{type:Boolean,default:!1}},emits:["change","blur","update:modelValue"],setup(o,{expose:a,emit:t}){const r=o;self.MonacoEnvironment={createTrustedTypesPolicy:void 0,getWorker(l,n){return _(this,null,function*(){let s;return n==="json"&&(s=yield p(()=>import("./json.worker-DCDqLFYI-C7_rWj4n.js"),[],import.meta.url)),["css","scss","less"].includes(n)&&(s=yield p(()=>import("./css.worker-DhE07keG-DPvIRz-E.js"),[],import.meta.url)),["html","handlebars","razor","vue"].includes(n)&&(s=yield p(()=>import("./html.worker-C5hxLCyX-CnBobk15.js"),[],import.meta.url)),["typescript","javascript"].includes(n)&&(s=yield p(()=>import("./ts.worker-Bjq4oI3m-CFV77luR.js"),[],import.meta.url)),s=s||(yield p(()=>import("./editor.worker-DKpUct5n-Y3jripZQ.js"),[],import.meta.url)),new s.default})}};const u=t,c=T();let e=null;const d=()=>_(this,null,function*(){var l;e&&(yield(l=e.getAction("editor.action.formatDocument"))==null?void 0:l.run(),e.setValue(e.getValue()))}),i=()=>_(this,null,function*(){yield d();const l=e==null?void 0:e.getValue();u("update:modelValue",l),u("blur",l)}),m=()=>{e=V.create(c.value,g({value:r.modelValue,language:r.lang,readOnly:r.readonly,theme:r.dark?"vs-dark":"vs",automaticLayout:!0,minimap:{enabled:r.minimap}},r.options)),e.onDidChangeModelContent(l=>{u("change",e==null?void 0:e.getValue(),l)}),e.onDidBlurEditorText(i)};return D(()=>{b(m)}),B(()=>{e&&e.dispose()}),P(()=>r.modelValue,l=>{e&&e.setValue(l)}),a({getEditor:()=>e}),(l,n)=>(A(),k("div",{class:x(["v-code-editor",{"is-border":r.border}]),ref_key:"container",ref:c,onKeyup:n[0]||(n[0]=O(I(()=>{},["stop"]),["enter"])),style:L({height:r.height})},null,38))}});export{z as default};
@@ -0,0 +1 @@
1
+ var k=Object.defineProperty,v=Object.defineProperties;var A=Object.getOwnPropertyDescriptors;var w=Object.getOwnPropertySymbols;var B=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable;var x=(e,t,o)=>t in e?k(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,g=(e,t)=>{for(var o in t||(t={}))B.call(t,o)&&x(e,o,t[o]);if(w)for(var o of w(t))I.call(t,o)&&x(e,o,t[o]);return e},E=(e,t)=>v(e,A(t));var _=(e,t,o)=>new Promise((i,m)=>{var p=n=>{try{r(o.next(n))}catch(a){m(a)}},s=n=>{try{r(o.throw(n))}catch(a){m(a)}},r=n=>n.done?i(n.value):Promise.resolve(n.value).then(p,s);r((o=o.apply(e,t)).next())});import{useRoute as R}from"./vue-router-D8EXeL0F.js";import{s as S,A as q,n as K,x as O}from"./index-Dq6nvnm8.js";import{a as y}from"./element-plus-Bd2bW04a.js";import"./vxe-CFTIhv1S.js";import{E as $}from"./extension-C0o-vGA_.js";import{d as b,aB as u,c as G,o as L}from"./vue-DnfbZNhx.js";import{_ as M}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./monaco-editor-B8dwQNlP.js";import"./lodash-es-BL-d_OSa.js";import"./@vueuse-B2Ln5mIU.js";import"./@element-plus-icons-vue-CKT2Xck5.js";import"./shared-CFJLz5mK.js";import"./dayjs-DO-COJPZ.js";import"./html2canvas-CIV5arX1.js";import"./mockjs-BEvXV3hb.js";const T={class:"loading"},U=b({__name:"auth",setup(e){return _(this,null,function*(){let t,o;const i=R(),m=new K,p=([t,o]=u(()=>m.getExtension().catch(()=>null)),t=yield t,o(),t),{adapters:s}=p?([t,o]=u(()=>new $(p).load()),t=yield t,o(),t):{},r=s==null?void 0:s.access,n=s==null?void 0:s.remote,a=r?new S(E(g({},r),{alert:y.alert,storageKey:q})):void 0,C=c=>_(this,null,function*(){const h=`${n}/api/open/user/${c}`,l=yield O(h).catch(()=>null);return!l||!l.success?(yield y.alert("登录失败"),null):l.data}),f=i.query.token,d=f?([t,o]=u(()=>C(f)),t=yield t,o(),t):null;if(d)try{a==null||a.login(d);const c=i.query.redirect;location.href=decodeURIComponent(c||"/")}catch(c){location.reload()}return(c,h)=>(L(),G("div",T,"正在登录中..."))})}}),et=M(U,[["__scopeId","data-v-b861aa1a"]]);export{et as default};