@gkd-kit/inspect 0.0.1750946427915 → 0.0.1751183167731
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/assets/ActionCard.vue_vue_type_script_setup_true_lang-fNpluFj0.js +17 -0
- package/dist/assets/{ActionCard.vue_vue_type_script_setup_true_lang-PAYp10Bk.js.map → ActionCard.vue_vue_type_script_setup_true_lang-fNpluFj0.js.map} +1 -1
- package/dist/assets/DevicePage-CZoWkQzd.js +49 -0
- package/dist/assets/DevicePage-CZoWkQzd.js.map +1 -0
- package/dist/assets/{HomePage-D1aYSq5n.js → HomePage-D9jsrGSM.js} +7 -7
- package/dist/assets/HomePage-D9jsrGSM.js.map +1 -0
- package/dist/assets/{ImportPage-BpwSSxFv.js → ImportPage-CJD0J8K6.js} +2 -2
- package/dist/assets/{ImportPage-BpwSSxFv.js.map → ImportPage-CJD0J8K6.js.map} +1 -1
- package/dist/assets/{Input-DakhkhRu.js → Input-BWOc1Pu7.js} +2 -2
- package/dist/assets/{Input-DakhkhRu.js.map → Input-BWOc1Pu7.js.map} +1 -1
- package/dist/assets/{SelectorPage-B8sK0rHd.js → SelectorPage-CooXdhPW.js} +2 -2
- package/dist/assets/{SelectorPage-B8sK0rHd.js.map → SelectorPage-CooXdhPW.js.map} +1 -1
- package/dist/assets/{SnapshotPage-BxGCD3gs.js → SnapshotPage-C8Q0C5gw.js} +10 -10
- package/dist/assets/SnapshotPage-C8Q0C5gw.js.map +1 -0
- package/dist/assets/{SvgPage-DtOA2z5b.js → SvgPage-CZ0kwBxr.js} +2 -2
- package/dist/assets/{SvgPage-DtOA2z5b.js.map → SvgPage-CZ0kwBxr.js.map} +1 -1
- package/dist/assets/{TrackGraph-fb_DI1El.js → TrackGraph-Bq-QwVBW.js} +3 -3
- package/dist/assets/{TrackGraph-fb_DI1El.js.map → TrackGraph-Bq-QwVBW.js.map} +1 -1
- package/dist/assets/{_404Page-CtPfHH3v.js → _404Page-BdR9z2S1.js} +2 -2
- package/dist/assets/{_404Page-CtPfHH3v.js.map → _404Page-BdR9z2S1.js.map} +1 -1
- package/dist/assets/chunk-nZTGrq2r.js +3 -0
- package/dist/assets/{chunk-BxBCNnrz.js.map → chunk-nZTGrq2r.js.map} +1 -1
- package/dist/assets/{dayjs.min-lRbA81xW.js → dayjs.min-nGJM-SKv.js} +2 -2
- package/dist/assets/{dayjs.min-lRbA81xW.js.map → dayjs.min-nGJM-SKv.js.map} +1 -1
- package/dist/assets/{error-aAUoJqWJ.js → error-Be00rObg.js} +2 -2
- package/dist/assets/{error-aAUoJqWJ.js.map → error-Be00rObg.js.map} +1 -1
- package/dist/assets/{import-FrDi0X_0.js → import-Df2Fau0_.js} +2 -2
- package/dist/assets/{import-FrDi0X_0.js.map → import-Df2Fau0_.js.map} +1 -1
- package/dist/assets/{index-CVBUu2Si.js → index-BIfLFWuH.js} +3 -3
- package/dist/assets/{index-CVBUu2Si.js.map → index-BIfLFWuH.js.map} +1 -1
- package/dist/assets/{index-COYXkapr.js → index-IcbtfFdd.js} +6 -6
- package/dist/assets/index-IcbtfFdd.js.map +1 -0
- package/dist/assets/index-tQGywndn.css +1 -0
- package/dist/assets/{jszip.min-Cy5MVem1.js → jszip.min-Du6y-Q7a.js} +2 -2
- package/dist/assets/{jszip.min-Cy5MVem1.js.map → jszip.min-Du6y-Q7a.js.map} +1 -1
- package/dist/assets/{node-BAV4BU5G.js → node-DeXZi5w1.js} +2 -2
- package/dist/assets/{node-BAV4BU5G.js.map → node-DeXZi5w1.js.map} +1 -1
- package/dist/assets/{snapshot-DQoBFjtA.js → snapshot-CELy9cS2.js} +2 -2
- package/dist/assets/{snapshot-DQoBFjtA.js.map → snapshot-CELy9cS2.js.map} +1 -1
- package/dist/assets/{table-qWtkkPlj.js → table-wcRv5TdX.js} +2 -2
- package/dist/assets/{table-qWtkkPlj.js.map → table-wcRv5TdX.js.map} +1 -1
- package/dist/index.html +3 -3
- package/package.json +3 -3
- package/dist/assets/ActionCard.vue_vue_type_script_setup_true_lang-PAYp10Bk.js +0 -17
- package/dist/assets/DevicePage-DsvVoBQM.js +0 -49
- package/dist/assets/DevicePage-DsvVoBQM.js.map +0 -1
- package/dist/assets/HomePage-D1aYSq5n.js.map +0 -1
- package/dist/assets/SnapshotPage-BxGCD3gs.js.map +0 -1
- package/dist/assets/chunk-BxBCNnrz.js +0 -3
- package/dist/assets/index-C98pF2u5.css +0 -1
- package/dist/assets/index-COYXkapr.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{A as Fe,bg as de,bT as Gt,q as L,a5 as $t,ae as X,bz as xt,bA as St,bx as Ct,o as _,bj as ee,bh as G,ad as ue,h as q,bU as Ut,a2 as ae,bV as qt,a7 as we,bW as Ge,bX as Qt,k as x,bY as Zt,bZ as Mt,bk as Jt,H as ie,au as Rt,t as U,bs as Ot,b_ as ye,b$ as $e,c0 as en,c1 as tn,c2 as nn,c3 as We,c4 as K,c5 as At,c6 as je,c7 as rn,c8 as _t,c9 as oe,ca as ze,cb as Ue,cc as on,cd as qe,ce as Qe,cf as ve,cg as an,ch as Ze,ci as sn,cj as ln,ck as un,cl as dn,cm as fn,cn,co as hn,d as ke,e as I,a as D,g as Se,b as Ce,f as ne,cp as pn,bm as vn,u as He,m as Q,E as Et,br as Je,a8 as gn,x as Tt,bt as Re,j as et,cq as mn,aE as Pt,r as Me,S as bn,as as wn,cr as yn,cs as $n,ct as xn,b5 as Sn,p as Cn,y as fe,ai as Mn,ah as On,by as An}from"./index-COYXkapr.js";let me=[];const Bt=new WeakMap;function _n(){me.forEach(e=>e(...Bt.get(e))),me=[]}function En(e,...t){Bt.set(e,t),!me.includes(e)&&me.push(e)===1&&requestAnimationFrame(_n)}let te,se;const Tn=()=>{var e,t;te=Gt?(t=(e=document)===null||e===void 0?void 0:e.fonts)===null||t===void 0?void 0:t.ready:void 0,se=!1,te!==void 0?te.then(()=>{se=!0}):se=!0};Tn();function Pn(e){if(se)return;let t=!1;Fe(()=>{se||te==null||te.then(()=>{t||e()})}),de(()=>{t=!0})}function Bn(e,t){return L(()=>{for(const n of t)if(e[n]!==void 0)return e[n];return e[t[t.length-1]]})}const Xo=$t("n-internal-select-menu"),zn=$t("n-internal-select-menu-body"),zt="__disabled__";function re(e){const t=X(xt,null),n=X(St,null),r=X(Ct,null),o=X(zn,null),i=_();if(typeof document<"u"){i.value=document.fullscreenElement;const a=()=>{i.value=document.fullscreenElement};Fe(()=>{ee("fullscreenchange",document,a)}),de(()=>{G("fullscreenchange",document,a)})}return ue(()=>{var a;const{to:u}=e;return u!==void 0?u===!1?zt:u===!0?i.value||"body":u:t!=null&&t.value?(a=t.value.$el)!==null&&a!==void 0?a:t.value:n!=null&&n.value?n.value:r!=null&&r.value?r.value:o!=null&&o.value?o.value:u??(i.value||"body")})}re.tdkey=zt;re.propTo={type:[String,Object,Boolean],default:void 0};let k=null;function It(){if(k===null&&(k=document.getElementById("v-binder-view-measurer"),k===null)){k=document.createElement("div"),k.id="v-binder-view-measurer";const{style:e}=k;e.position="fixed",e.left="0",e.right="0",e.top="0",e.bottom="0",e.pointerEvents="none",e.visibility="hidden",document.body.appendChild(k)}return k.getBoundingClientRect()}function In(e,t){const n=It();return{top:t,left:e,height:0,width:0,right:n.width-e,bottom:n.height-t}}function Oe(e){const t=e.getBoundingClientRect(),n=It();return{left:t.left-n.left,top:t.top-n.top,bottom:n.height+n.top-t.bottom,right:n.width+n.left-t.right,width:t.width,height:t.height}}function Dn(e){return e.nodeType===9?null:e.parentNode}function Dt(e){if(e===null)return null;const t=Dn(e);if(t===null)return null;if(t.nodeType===9)return document;if(t.nodeType===1){const{overflow:n,overflowX:r,overflowY:o}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(n+o+r))return t}return Dt(t)}const Ln=q({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){var t;ae("VBinder",(t=qt())===null||t===void 0?void 0:t.proxy);const n=X("VBinder",null),r=_(null),o=h=>{r.value=h,n&&e.syncTargetWithParent&&n.setTargetRef(h)};let i=[];const a=()=>{let h=r.value;for(;h=Dt(h),h!==null;)i.push(h);for(const y of i)ee("scroll",y,m,!0)},u=()=>{for(const h of i)G("scroll",h,m,!0);i=[]},l=new Set,p=h=>{l.size===0&&a(),l.has(h)||l.add(h)},g=h=>{l.has(h)&&l.delete(h),l.size===0&&u()},m=()=>{En(s)},s=()=>{l.forEach(h=>h())},f=new Set,d=h=>{f.size===0&&ee("resize",window,b),f.has(h)||f.add(h)},c=h=>{f.has(h)&&f.delete(h),f.size===0&&G("resize",window,b)},b=()=>{f.forEach(h=>h())};return de(()=>{G("resize",window,b),u()}),{targetRef:r,setTargetRef:o,addScrollListener:p,removeScrollListener:g,addResizeListener:d,removeResizeListener:c}},render(){return Ut("binder",this.$slots)}}),Nn=q({name:"Target",setup(){const{setTargetRef:e,syncTarget:t}=X("VBinder");return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){const{syncTarget:e,setTargetDirective:t}=this;return e?we(Ge("follower",this.$slots),[[t]]):Ge("follower",this.$slots)}}),R="@@mmoContext",Fn={mounted(e,{value:t}){e[R]={handler:void 0},typeof t=="function"&&(e[R].handler=t,ee("mousemoveoutside",e,t))},updated(e,{value:t}){const n=e[R];typeof t=="function"?n.handler?n.handler!==t&&(G("mousemoveoutside",e,n.handler),n.handler=t,ee("mousemoveoutside",e,t)):(e[R].handler=t,ee("mousemoveoutside",e,t)):n.handler&&(G("mousemoveoutside",e,n.handler),n.handler=void 0)},unmounted(e){const{handler:t}=e[R];t&&G("mousemoveoutside",e,t),e[R].handler=void 0}},{c:ce}=Qt(),Wn="vueuc-style",he={top:"bottom",bottom:"top",left:"right",right:"left"},tt={start:"end",center:"center",end:"start"},Ae={top:"height",bottom:"height",left:"width",right:"width"},jn={"bottom-start":"top left",bottom:"top center","bottom-end":"top right","top-start":"bottom left",top:"bottom center","top-end":"bottom right","right-start":"top left",right:"center left","right-end":"bottom left","left-start":"top right",left:"center right","left-end":"bottom right"},kn={"bottom-start":"bottom left",bottom:"bottom center","bottom-end":"bottom right","top-start":"top left",top:"top center","top-end":"top right","right-start":"top right",right:"center right","right-end":"bottom right","left-start":"top left",left:"center left","left-end":"bottom left"},Hn={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},nt={top:!0,bottom:!1,left:!0,right:!1},rt={top:"end",bottom:"start",left:"end",right:"start"};function Xn(e,t,n,r,o,i){if(!o||i)return{placement:e,top:0,left:0};const[a,u]=e.split("-");let l=u??"center",p={top:0,left:0};const g=(f,d,c)=>{let b=0,h=0;const y=n[f]-t[d]-t[f];return y>0&&r&&(c?h=nt[d]?y:-y:b=nt[d]?y:-y),{left:b,top:h}},m=a==="left"||a==="right";if(l!=="center"){const f=Hn[e],d=he[f],c=Ae[f];if(n[c]>t[c]){if(t[f]+t[c]<n[c]){const b=(n[c]-t[c])/2;t[f]<b||t[d]<b?t[f]<t[d]?(l=tt[u],p=g(c,d,m)):p=g(c,f,m):l="center"}}else n[c]<t[c]&&t[d]<0&&t[f]>t[d]&&(l=tt[u])}else{const f=a==="bottom"||a==="top"?"left":"top",d=he[f],c=Ae[f],b=(n[c]-t[c])/2;(t[f]<b||t[d]<b)&&(t[f]>t[d]?(l=rt[f],p=g(c,f,m)):(l=rt[d],p=g(c,d,m)))}let s=a;return t[a]<n[Ae[a]]&&t[a]<t[he[a]]&&(s=he[a]),{placement:l!=="center"?`${s}-${l}`:s,left:p.left,top:p.top}}function Kn(e,t){return t?kn[e]:jn[e]}function Yn(e,t,n,r,o,i){if(i)switch(e){case"bottom-start":return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left)}px`,transform:"translateY(-100%)"};case"bottom-end":return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:"translateX(-100%) translateY(-100%)"};case"top-start":return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left)}px`,transform:""};case"top-end":return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:"translateX(-100%)"};case"right-start":return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:"translateX(-100%)"};case"right-end":return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:"translateX(-100%) translateY(-100%)"};case"left-start":return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left)}px`,transform:""};case"left-end":return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left)}px`,transform:"translateY(-100%)"};case"top":return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left+n.width/2)}px`,transform:"translateX(-50%)"};case"right":return{top:`${Math.round(n.top-t.top+n.height/2)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:"translateX(-100%) translateY(-50%)"};case"left":return{top:`${Math.round(n.top-t.top+n.height/2)}px`,left:`${Math.round(n.left-t.left)}px`,transform:"translateY(-50%)"};case"bottom":default:return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left+n.width/2)}px`,transform:"translateX(-50%) translateY(-100%)"}}switch(e){case"bottom-start":return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+o)}px`,transform:""};case"bottom-end":return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+n.width+o)}px`,transform:"translateX(-100%)"};case"top-start":return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+o)}px`,transform:"translateY(-100%)"};case"top-end":return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+n.width+o)}px`,transform:"translateX(-100%) translateY(-100%)"};case"right-start":return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+n.width+o)}px`,transform:""};case"right-end":return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+n.width+o)}px`,transform:"translateY(-100%)"};case"left-start":return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+o)}px`,transform:"translateX(-100%)"};case"left-end":return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+o)}px`,transform:"translateX(-100%) translateY(-100%)"};case"top":return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+n.width/2+o)}px`,transform:"translateY(-100%) translateX(-50%)"};case"right":return{top:`${Math.round(n.top-t.top+n.height/2+r)}px`,left:`${Math.round(n.left-t.left+n.width+o)}px`,transform:"translateY(-50%)"};case"left":return{top:`${Math.round(n.top-t.top+n.height/2+r)}px`,left:`${Math.round(n.left-t.left+o)}px`,transform:"translateY(-50%) translateX(-100%)"};case"bottom":default:return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+n.width/2+o)}px`,transform:"translateX(-50%)"}}}const Vn=ce([ce(".v-binder-follower-container",{position:"absolute",left:"0",right:"0",top:"0",height:"0",pointerEvents:"none",zIndex:"auto"}),ce(".v-binder-follower-content",{position:"absolute",zIndex:"auto"},[ce("> *",{pointerEvents:"all"})])]),Gn=q({name:"Follower",inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom"},syncTrigger:{type:Array,default:["resize","scroll"]},to:[String,Object],flip:{type:Boolean,default:!0},internalShift:Boolean,x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(e){const t=X("VBinder"),n=ue(()=>e.enabled!==void 0?e.enabled:e.show),r=_(null),o=_(null),i=()=>{const{syncTrigger:s}=e;s.includes("scroll")&&t.addScrollListener(l),s.includes("resize")&&t.addResizeListener(l)},a=()=>{t.removeScrollListener(l),t.removeResizeListener(l)};Fe(()=>{n.value&&(l(),i())});const u=Jt();Vn.mount({id:"vueuc/binder",head:!0,anchorMetaName:Wn,ssr:u}),de(()=>{a()}),Pn(()=>{n.value&&l()});const l=()=>{if(!n.value)return;const s=r.value;if(s===null)return;const f=t.targetRef,{x:d,y:c,overlap:b}=e,h=d!==void 0&&c!==void 0?In(d,c):Oe(f);s.style.setProperty("--v-target-width",`${Math.round(h.width)}px`),s.style.setProperty("--v-target-height",`${Math.round(h.height)}px`);const{width:y,minWidth:E,placement:T,internalShift:P,flip:Y}=e;s.setAttribute("v-placement",T),b?s.setAttribute("v-overlap",""):s.removeAttribute("v-overlap");const{style:w}=s;y==="target"?w.width=`${h.width}px`:y!==void 0?w.width=y:w.width="",E==="target"?w.minWidth=`${h.width}px`:E!==void 0?w.minWidth=E:w.minWidth="";const M=Oe(s),O=Oe(o.value),{left:$,top:j,placement:N}=Xn(T,h,M,P,Y,b),z=Kn(N,b),{left:V,top:v,transform:S}=Yn(N,O,h,j,$,b);s.setAttribute("v-placement",N),s.style.setProperty("--v-offset-left",`${Math.round($)}px`),s.style.setProperty("--v-offset-top",`${Math.round(j)}px`),s.style.transform=`translateX(${V}) translateY(${v}) ${S}`,s.style.setProperty("--v-transform-origin",z),s.style.transformOrigin=z};ie(n,s=>{s?(i(),p()):a()});const p=()=>{Rt().then(l).catch(s=>console.error(s))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(s=>{ie(U(e,s),l)}),["teleportDisabled"].forEach(s=>{ie(U(e,s),p)}),ie(U(e,"syncTrigger"),s=>{s.includes("resize")?t.addResizeListener(l):t.removeResizeListener(l),s.includes("scroll")?t.addScrollListener(l):t.removeScrollListener(l)});const g=Ot(),m=ue(()=>{const{to:s}=e;if(s!==void 0)return s;g.value});return{VBinder:t,mergedEnabled:n,offsetContainerRef:o,followerRef:r,mergedTo:m,syncPosition:l}},render(){return x(Zt,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e,t;const n=x("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[x("div",{class:"v-binder-follower-content",ref:"followerRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))]);return this.zindexable?we(n,[[Mt,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):n}})}}),Un=/^(\d|\.)+$/,ot=/(\d|\.)+/;function ge(e,{c:t=1,offset:n=0,attachPx:r=!0}={}){if(typeof e=="number"){const o=(e+n)*t;return o===0?"0":`${o}px`}else if(typeof e=="string")if(Un.test(e)){const o=(Number(e)+n)*t;return r?o===0?"0":`${o}px`:`${o}`}else{const o=ot.exec(e);return o?e.replace(ot,String((Number(o[0])+n)*t)):e}return e}let _e;function qn(){return _e===void 0&&(_e=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),_e}var Ie=ye($e,"WeakMap"),Qn=en(Object.keys,Object),Zn=Object.prototype,Jn=Zn.hasOwnProperty;function Rn(e){if(!tn(e))return Qn(e);var t=[];for(var n in Object(e))Jn.call(e,n)&&n!="constructor"&&t.push(n);return t}function Xe(e){return We(e)?nn(e):Rn(e)}var er=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,tr=/^\w*$/;function Ke(e,t){if(K(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||At(e)?!0:tr.test(e)||!er.test(e)||t!=null&&e in Object(t)}var nr="Expected a function";function Ye(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(nr);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Ye.Cache||je),n}Ye.Cache=je;var rr=500;function or(e){var t=Ye(e,function(r){return n.size===rr&&n.clear(),r}),n=t.cache;return t}var ir=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ar=/\\(\\)?/g,sr=or(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(ir,function(n,r,o,i){t.push(o?i.replace(ar,"$1"):r||n)}),t});function Lt(e,t){return K(e)?e:Ke(e,t)?[e]:sr(rn(e))}function xe(e){if(typeof e=="string"||At(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Nt(e,t){t=Lt(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[xe(t[n++])];return n&&n==r?e:void 0}function lr(e,t,n){var r=e==null?void 0:Nt(e,t);return r===void 0?n:r}function ur(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function dr(e,t){for(var n=-1,r=e==null?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function fr(){return[]}var cr=Object.prototype,hr=cr.propertyIsEnumerable,it=Object.getOwnPropertySymbols,pr=it?function(e){return e==null?[]:(e=Object(e),dr(it(e),function(t){return hr.call(e,t)}))}:fr;function vr(e,t,n){var r=t(e);return K(e)?r:ur(r,n(e))}function at(e){return vr(e,Xe,pr)}var De=ye($e,"DataView"),Le=ye($e,"Promise"),Ne=ye($e,"Set"),st="[object Map]",gr="[object Object]",lt="[object Promise]",ut="[object Set]",dt="[object WeakMap]",ft="[object DataView]",mr=oe(De),br=oe(ze),wr=oe(Le),yr=oe(Ne),$r=oe(Ie),H=_t;(De&&H(new De(new ArrayBuffer(1)))!=ft||ze&&H(new ze)!=st||Le&&H(Le.resolve())!=lt||Ne&&H(new Ne)!=ut||Ie&&H(new Ie)!=dt)&&(H=function(e){var t=_t(e),n=t==gr?e.constructor:void 0,r=n?oe(n):"";if(r)switch(r){case mr:return ft;case br:return st;case wr:return lt;case yr:return ut;case $r:return dt}return t});var xr="__lodash_hash_undefined__";function Sr(e){return this.__data__.set(e,xr),this}function Cr(e){return this.__data__.has(e)}function be(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new je;++t<n;)this.add(e[t])}be.prototype.add=be.prototype.push=Sr;be.prototype.has=Cr;function Mr(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function Or(e,t){return e.has(t)}var Ar=1,_r=2;function Ft(e,t,n,r,o,i){var a=n&Ar,u=e.length,l=t.length;if(u!=l&&!(a&&l>u))return!1;var p=i.get(e),g=i.get(t);if(p&&g)return p==t&&g==e;var m=-1,s=!0,f=n&_r?new be:void 0;for(i.set(e,t),i.set(t,e);++m<u;){var d=e[m],c=t[m];if(r)var b=a?r(c,d,m,t,e,i):r(d,c,m,e,t,i);if(b!==void 0){if(b)continue;s=!1;break}if(f){if(!Mr(t,function(h,y){if(!Or(f,y)&&(d===h||o(d,h,n,r,i)))return f.push(y)})){s=!1;break}}else if(!(d===c||o(d,c,n,r,i))){s=!1;break}}return i.delete(e),i.delete(t),s}function Er(e){var t=-1,n=Array(e.size);return e.forEach(function(r,o){n[++t]=[o,r]}),n}function Tr(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var Pr=1,Br=2,zr="[object Boolean]",Ir="[object Date]",Dr="[object Error]",Lr="[object Map]",Nr="[object Number]",Fr="[object RegExp]",Wr="[object Set]",jr="[object String]",kr="[object Symbol]",Hr="[object ArrayBuffer]",Xr="[object DataView]",ct=Ue?Ue.prototype:void 0,Ee=ct?ct.valueOf:void 0;function Kr(e,t,n,r,o,i,a){switch(n){case Xr:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Hr:return!(e.byteLength!=t.byteLength||!i(new qe(e),new qe(t)));case zr:case Ir:case Nr:return on(+e,+t);case Dr:return e.name==t.name&&e.message==t.message;case Fr:case jr:return e==t+"";case Lr:var u=Er;case Wr:var l=r⪻if(u||(u=Tr),e.size!=t.size&&!l)return!1;var p=a.get(e);if(p)return p==t;r|=Br,a.set(e,t);var g=Ft(u(e),u(t),r,o,i,a);return a.delete(e),g;case kr:if(Ee)return Ee.call(e)==Ee.call(t)}return!1}var Yr=1,Vr=Object.prototype,Gr=Vr.hasOwnProperty;function Ur(e,t,n,r,o,i){var a=n&Yr,u=at(e),l=u.length,p=at(t),g=p.length;if(l!=g&&!a)return!1;for(var m=l;m--;){var s=u[m];if(!(a?s in t:Gr.call(t,s)))return!1}var f=i.get(e),d=i.get(t);if(f&&d)return f==t&&d==e;var c=!0;i.set(e,t),i.set(t,e);for(var b=a;++m<l;){s=u[m];var h=e[s],y=t[s];if(r)var E=a?r(y,h,s,t,e,i):r(h,y,s,e,t,i);if(!(E===void 0?h===y||o(h,y,n,r,i):E)){c=!1;break}b||(b=s=="constructor")}if(c&&!b){var T=e.constructor,P=t.constructor;T!=P&&"constructor"in e&&"constructor"in t&&!(typeof T=="function"&&T instanceof T&&typeof P=="function"&&P instanceof P)&&(c=!1)}return i.delete(e),i.delete(t),c}var qr=1,ht="[object Arguments]",pt="[object Array]",pe="[object Object]",Qr=Object.prototype,vt=Qr.hasOwnProperty;function Zr(e,t,n,r,o,i){var a=K(e),u=K(t),l=a?pt:H(e),p=u?pt:H(t);l=l==ht?pe:l,p=p==ht?pe:p;var g=l==pe,m=p==pe,s=l==p;if(s&&Qe(e)){if(!Qe(t))return!1;a=!0,g=!1}if(s&&!g)return i||(i=new ve),a||an(e)?Ft(e,t,n,r,o,i):Kr(e,t,l,n,r,o,i);if(!(n&qr)){var f=g&&vt.call(e,"__wrapped__"),d=m&&vt.call(t,"__wrapped__");if(f||d){var c=f?e.value():e,b=d?t.value():t;return i||(i=new ve),o(c,b,n,r,i)}}return s?(i||(i=new ve),Ur(e,t,n,r,o,i)):!1}function Ve(e,t,n,r,o){return e===t?!0:e==null||t==null||!Ze(e)&&!Ze(t)?e!==e&&t!==t:Zr(e,t,n,r,Ve,o)}var Jr=1,Rr=2;function eo(e,t,n,r){var o=n.length,i=o;if(e==null)return!i;for(e=Object(e);o--;){var a=n[o];if(a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++o<i;){a=n[o];var u=a[0],l=e[u],p=a[1];if(a[2]){if(l===void 0&&!(u in e))return!1}else{var g=new ve,m;if(!(m===void 0?Ve(p,l,Jr|Rr,r,g):m))return!1}}return!0}function Wt(e){return e===e&&!sn(e)}function to(e){for(var t=Xe(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Wt(o)]}return t}function jt(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function no(e){var t=to(e);return t.length==1&&t[0][2]?jt(t[0][0],t[0][1]):function(n){return n===e||eo(n,e,t)}}function ro(e,t){return e!=null&&t in Object(e)}function oo(e,t,n){t=Lt(t,e);for(var r=-1,o=t.length,i=!1;++r<o;){var a=xe(t[r]);if(!(i=e!=null&&n(e,a)))break;e=e[a]}return i||++r!=o?i:(o=e==null?0:e.length,!!o&&ln(o)&&un(a,o)&&(K(e)||dn(e)))}function io(e,t){return e!=null&&oo(e,t,ro)}var ao=1,so=2;function lo(e,t){return Ke(e)&&Wt(t)?jt(xe(e),t):function(n){var r=lr(n,e);return r===void 0&&r===t?io(n,e):Ve(t,r,ao|so)}}function uo(e){return function(t){return t==null?void 0:t[e]}}function fo(e){return function(t){return Nt(t,e)}}function co(e){return Ke(e)?uo(xe(e)):fo(e)}function ho(e){return typeof e=="function"?e:e==null?fn:typeof e=="object"?K(e)?lo(e[0],e[1]):no(e):co(e)}function po(e,t){return e&&cn(e,t,Xe)}function vo(e,t){return function(n,r){if(n==null)return n;if(!We(n))return e(n,r);for(var o=n.length,i=-1,a=Object(n);++i<o&&r(a[i],i,a)!==!1;);return n}}var go=vo(po);function mo(e,t){var n=-1,r=We(e)?Array(e.length):[];return go(e,function(o,i,a){r[++n]=t(o,i,a)}),r}function bo(e,t){var n=K(e)?hn:mo;return n(e,ho(t))}const wo={space:"6px",spaceArrow:"10px",arrowOffset:"10px",arrowOffsetVertical:"10px",arrowHeight:"6px",padding:"8px 14px"};function yo(e){const{boxShadow2:t,popoverColor:n,textColor2:r,borderRadius:o,fontSize:i,dividerColor:a}=e;return Object.assign(Object.assign({},wo),{fontSize:i,borderRadius:o,color:n,dividerColor:a,textColor:r,boxShadow:t})}const kt={name:"Popover",common:ke,self:yo},Te={top:"bottom",bottom:"top",left:"right",right:"left"},C="var(--n-arrow-height) * 1.414",$o=I([D("popover",`
|
|
1
|
+
import{A as Fe,bg as de,bT as Gt,q as L,a5 as $t,ae as X,bz as xt,bA as St,bx as Ct,o as _,bj as ee,bh as G,ad as ue,h as q,bU as Ut,a2 as ae,bV as qt,a7 as we,bW as Ge,bX as Qt,k as x,bY as Zt,bZ as Mt,bk as Jt,H as ie,au as Rt,t as U,bs as Ot,b_ as ye,b$ as $e,c0 as en,c1 as tn,c2 as nn,c3 as We,c4 as K,c5 as At,c6 as je,c7 as rn,c8 as _t,c9 as oe,ca as ze,cb as Ue,cc as on,cd as qe,ce as Qe,cf as ve,cg as an,ch as Ze,ci as sn,cj as ln,ck as un,cl as dn,cm as fn,cn,co as hn,d as ke,e as I,a as D,g as Se,b as Ce,f as ne,cp as pn,bm as vn,u as He,m as Q,E as Et,br as Je,a8 as gn,x as Tt,bt as Re,j as et,cq as mn,aE as Pt,r as Me,S as bn,as as wn,cr as yn,cs as $n,ct as xn,b5 as Sn,p as Cn,y as fe,ai as Mn,ah as On,by as An}from"./index-IcbtfFdd.js";let me=[];const Bt=new WeakMap;function _n(){me.forEach(e=>e(...Bt.get(e))),me=[]}function En(e,...t){Bt.set(e,t),!me.includes(e)&&me.push(e)===1&&requestAnimationFrame(_n)}let te,se;const Tn=()=>{var e,t;te=Gt?(t=(e=document)===null||e===void 0?void 0:e.fonts)===null||t===void 0?void 0:t.ready:void 0,se=!1,te!==void 0?te.then(()=>{se=!0}):se=!0};Tn();function Pn(e){if(se)return;let t=!1;Fe(()=>{se||te==null||te.then(()=>{t||e()})}),de(()=>{t=!0})}function Bn(e,t){return L(()=>{for(const n of t)if(e[n]!==void 0)return e[n];return e[t[t.length-1]]})}const Xo=$t("n-internal-select-menu"),zn=$t("n-internal-select-menu-body"),zt="__disabled__";function re(e){const t=X(xt,null),n=X(St,null),r=X(Ct,null),o=X(zn,null),i=_();if(typeof document<"u"){i.value=document.fullscreenElement;const a=()=>{i.value=document.fullscreenElement};Fe(()=>{ee("fullscreenchange",document,a)}),de(()=>{G("fullscreenchange",document,a)})}return ue(()=>{var a;const{to:u}=e;return u!==void 0?u===!1?zt:u===!0?i.value||"body":u:t!=null&&t.value?(a=t.value.$el)!==null&&a!==void 0?a:t.value:n!=null&&n.value?n.value:r!=null&&r.value?r.value:o!=null&&o.value?o.value:u??(i.value||"body")})}re.tdkey=zt;re.propTo={type:[String,Object,Boolean],default:void 0};let k=null;function It(){if(k===null&&(k=document.getElementById("v-binder-view-measurer"),k===null)){k=document.createElement("div"),k.id="v-binder-view-measurer";const{style:e}=k;e.position="fixed",e.left="0",e.right="0",e.top="0",e.bottom="0",e.pointerEvents="none",e.visibility="hidden",document.body.appendChild(k)}return k.getBoundingClientRect()}function In(e,t){const n=It();return{top:t,left:e,height:0,width:0,right:n.width-e,bottom:n.height-t}}function Oe(e){const t=e.getBoundingClientRect(),n=It();return{left:t.left-n.left,top:t.top-n.top,bottom:n.height+n.top-t.bottom,right:n.width+n.left-t.right,width:t.width,height:t.height}}function Dn(e){return e.nodeType===9?null:e.parentNode}function Dt(e){if(e===null)return null;const t=Dn(e);if(t===null)return null;if(t.nodeType===9)return document;if(t.nodeType===1){const{overflow:n,overflowX:r,overflowY:o}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(n+o+r))return t}return Dt(t)}const Ln=q({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){var t;ae("VBinder",(t=qt())===null||t===void 0?void 0:t.proxy);const n=X("VBinder",null),r=_(null),o=h=>{r.value=h,n&&e.syncTargetWithParent&&n.setTargetRef(h)};let i=[];const a=()=>{let h=r.value;for(;h=Dt(h),h!==null;)i.push(h);for(const y of i)ee("scroll",y,m,!0)},u=()=>{for(const h of i)G("scroll",h,m,!0);i=[]},l=new Set,p=h=>{l.size===0&&a(),l.has(h)||l.add(h)},g=h=>{l.has(h)&&l.delete(h),l.size===0&&u()},m=()=>{En(s)},s=()=>{l.forEach(h=>h())},f=new Set,d=h=>{f.size===0&&ee("resize",window,b),f.has(h)||f.add(h)},c=h=>{f.has(h)&&f.delete(h),f.size===0&&G("resize",window,b)},b=()=>{f.forEach(h=>h())};return de(()=>{G("resize",window,b),u()}),{targetRef:r,setTargetRef:o,addScrollListener:p,removeScrollListener:g,addResizeListener:d,removeResizeListener:c}},render(){return Ut("binder",this.$slots)}}),Nn=q({name:"Target",setup(){const{setTargetRef:e,syncTarget:t}=X("VBinder");return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){const{syncTarget:e,setTargetDirective:t}=this;return e?we(Ge("follower",this.$slots),[[t]]):Ge("follower",this.$slots)}}),R="@@mmoContext",Fn={mounted(e,{value:t}){e[R]={handler:void 0},typeof t=="function"&&(e[R].handler=t,ee("mousemoveoutside",e,t))},updated(e,{value:t}){const n=e[R];typeof t=="function"?n.handler?n.handler!==t&&(G("mousemoveoutside",e,n.handler),n.handler=t,ee("mousemoveoutside",e,t)):(e[R].handler=t,ee("mousemoveoutside",e,t)):n.handler&&(G("mousemoveoutside",e,n.handler),n.handler=void 0)},unmounted(e){const{handler:t}=e[R];t&&G("mousemoveoutside",e,t),e[R].handler=void 0}},{c:ce}=Qt(),Wn="vueuc-style",he={top:"bottom",bottom:"top",left:"right",right:"left"},tt={start:"end",center:"center",end:"start"},Ae={top:"height",bottom:"height",left:"width",right:"width"},jn={"bottom-start":"top left",bottom:"top center","bottom-end":"top right","top-start":"bottom left",top:"bottom center","top-end":"bottom right","right-start":"top left",right:"center left","right-end":"bottom left","left-start":"top right",left:"center right","left-end":"bottom right"},kn={"bottom-start":"bottom left",bottom:"bottom center","bottom-end":"bottom right","top-start":"top left",top:"top center","top-end":"top right","right-start":"top right",right:"center right","right-end":"bottom right","left-start":"top left",left:"center left","left-end":"bottom left"},Hn={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},nt={top:!0,bottom:!1,left:!0,right:!1},rt={top:"end",bottom:"start",left:"end",right:"start"};function Xn(e,t,n,r,o,i){if(!o||i)return{placement:e,top:0,left:0};const[a,u]=e.split("-");let l=u??"center",p={top:0,left:0};const g=(f,d,c)=>{let b=0,h=0;const y=n[f]-t[d]-t[f];return y>0&&r&&(c?h=nt[d]?y:-y:b=nt[d]?y:-y),{left:b,top:h}},m=a==="left"||a==="right";if(l!=="center"){const f=Hn[e],d=he[f],c=Ae[f];if(n[c]>t[c]){if(t[f]+t[c]<n[c]){const b=(n[c]-t[c])/2;t[f]<b||t[d]<b?t[f]<t[d]?(l=tt[u],p=g(c,d,m)):p=g(c,f,m):l="center"}}else n[c]<t[c]&&t[d]<0&&t[f]>t[d]&&(l=tt[u])}else{const f=a==="bottom"||a==="top"?"left":"top",d=he[f],c=Ae[f],b=(n[c]-t[c])/2;(t[f]<b||t[d]<b)&&(t[f]>t[d]?(l=rt[f],p=g(c,f,m)):(l=rt[d],p=g(c,d,m)))}let s=a;return t[a]<n[Ae[a]]&&t[a]<t[he[a]]&&(s=he[a]),{placement:l!=="center"?`${s}-${l}`:s,left:p.left,top:p.top}}function Kn(e,t){return t?kn[e]:jn[e]}function Yn(e,t,n,r,o,i){if(i)switch(e){case"bottom-start":return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left)}px`,transform:"translateY(-100%)"};case"bottom-end":return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:"translateX(-100%) translateY(-100%)"};case"top-start":return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left)}px`,transform:""};case"top-end":return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:"translateX(-100%)"};case"right-start":return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:"translateX(-100%)"};case"right-end":return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:"translateX(-100%) translateY(-100%)"};case"left-start":return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left)}px`,transform:""};case"left-end":return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left)}px`,transform:"translateY(-100%)"};case"top":return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left+n.width/2)}px`,transform:"translateX(-50%)"};case"right":return{top:`${Math.round(n.top-t.top+n.height/2)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:"translateX(-100%) translateY(-50%)"};case"left":return{top:`${Math.round(n.top-t.top+n.height/2)}px`,left:`${Math.round(n.left-t.left)}px`,transform:"translateY(-50%)"};case"bottom":default:return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left+n.width/2)}px`,transform:"translateX(-50%) translateY(-100%)"}}switch(e){case"bottom-start":return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+o)}px`,transform:""};case"bottom-end":return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+n.width+o)}px`,transform:"translateX(-100%)"};case"top-start":return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+o)}px`,transform:"translateY(-100%)"};case"top-end":return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+n.width+o)}px`,transform:"translateX(-100%) translateY(-100%)"};case"right-start":return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+n.width+o)}px`,transform:""};case"right-end":return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+n.width+o)}px`,transform:"translateY(-100%)"};case"left-start":return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+o)}px`,transform:"translateX(-100%)"};case"left-end":return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+o)}px`,transform:"translateX(-100%) translateY(-100%)"};case"top":return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+n.width/2+o)}px`,transform:"translateY(-100%) translateX(-50%)"};case"right":return{top:`${Math.round(n.top-t.top+n.height/2+r)}px`,left:`${Math.round(n.left-t.left+n.width+o)}px`,transform:"translateY(-50%)"};case"left":return{top:`${Math.round(n.top-t.top+n.height/2+r)}px`,left:`${Math.round(n.left-t.left+o)}px`,transform:"translateY(-50%) translateX(-100%)"};case"bottom":default:return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+n.width/2+o)}px`,transform:"translateX(-50%)"}}}const Vn=ce([ce(".v-binder-follower-container",{position:"absolute",left:"0",right:"0",top:"0",height:"0",pointerEvents:"none",zIndex:"auto"}),ce(".v-binder-follower-content",{position:"absolute",zIndex:"auto"},[ce("> *",{pointerEvents:"all"})])]),Gn=q({name:"Follower",inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom"},syncTrigger:{type:Array,default:["resize","scroll"]},to:[String,Object],flip:{type:Boolean,default:!0},internalShift:Boolean,x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(e){const t=X("VBinder"),n=ue(()=>e.enabled!==void 0?e.enabled:e.show),r=_(null),o=_(null),i=()=>{const{syncTrigger:s}=e;s.includes("scroll")&&t.addScrollListener(l),s.includes("resize")&&t.addResizeListener(l)},a=()=>{t.removeScrollListener(l),t.removeResizeListener(l)};Fe(()=>{n.value&&(l(),i())});const u=Jt();Vn.mount({id:"vueuc/binder",head:!0,anchorMetaName:Wn,ssr:u}),de(()=>{a()}),Pn(()=>{n.value&&l()});const l=()=>{if(!n.value)return;const s=r.value;if(s===null)return;const f=t.targetRef,{x:d,y:c,overlap:b}=e,h=d!==void 0&&c!==void 0?In(d,c):Oe(f);s.style.setProperty("--v-target-width",`${Math.round(h.width)}px`),s.style.setProperty("--v-target-height",`${Math.round(h.height)}px`);const{width:y,minWidth:E,placement:T,internalShift:P,flip:Y}=e;s.setAttribute("v-placement",T),b?s.setAttribute("v-overlap",""):s.removeAttribute("v-overlap");const{style:w}=s;y==="target"?w.width=`${h.width}px`:y!==void 0?w.width=y:w.width="",E==="target"?w.minWidth=`${h.width}px`:E!==void 0?w.minWidth=E:w.minWidth="";const M=Oe(s),O=Oe(o.value),{left:$,top:j,placement:N}=Xn(T,h,M,P,Y,b),z=Kn(N,b),{left:V,top:v,transform:S}=Yn(N,O,h,j,$,b);s.setAttribute("v-placement",N),s.style.setProperty("--v-offset-left",`${Math.round($)}px`),s.style.setProperty("--v-offset-top",`${Math.round(j)}px`),s.style.transform=`translateX(${V}) translateY(${v}) ${S}`,s.style.setProperty("--v-transform-origin",z),s.style.transformOrigin=z};ie(n,s=>{s?(i(),p()):a()});const p=()=>{Rt().then(l).catch(s=>console.error(s))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(s=>{ie(U(e,s),l)}),["teleportDisabled"].forEach(s=>{ie(U(e,s),p)}),ie(U(e,"syncTrigger"),s=>{s.includes("resize")?t.addResizeListener(l):t.removeResizeListener(l),s.includes("scroll")?t.addScrollListener(l):t.removeScrollListener(l)});const g=Ot(),m=ue(()=>{const{to:s}=e;if(s!==void 0)return s;g.value});return{VBinder:t,mergedEnabled:n,offsetContainerRef:o,followerRef:r,mergedTo:m,syncPosition:l}},render(){return x(Zt,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e,t;const n=x("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[x("div",{class:"v-binder-follower-content",ref:"followerRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))]);return this.zindexable?we(n,[[Mt,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):n}})}}),Un=/^(\d|\.)+$/,ot=/(\d|\.)+/;function ge(e,{c:t=1,offset:n=0,attachPx:r=!0}={}){if(typeof e=="number"){const o=(e+n)*t;return o===0?"0":`${o}px`}else if(typeof e=="string")if(Un.test(e)){const o=(Number(e)+n)*t;return r?o===0?"0":`${o}px`:`${o}`}else{const o=ot.exec(e);return o?e.replace(ot,String((Number(o[0])+n)*t)):e}return e}let _e;function qn(){return _e===void 0&&(_e=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),_e}var Ie=ye($e,"WeakMap"),Qn=en(Object.keys,Object),Zn=Object.prototype,Jn=Zn.hasOwnProperty;function Rn(e){if(!tn(e))return Qn(e);var t=[];for(var n in Object(e))Jn.call(e,n)&&n!="constructor"&&t.push(n);return t}function Xe(e){return We(e)?nn(e):Rn(e)}var er=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,tr=/^\w*$/;function Ke(e,t){if(K(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||At(e)?!0:tr.test(e)||!er.test(e)||t!=null&&e in Object(t)}var nr="Expected a function";function Ye(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(nr);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Ye.Cache||je),n}Ye.Cache=je;var rr=500;function or(e){var t=Ye(e,function(r){return n.size===rr&&n.clear(),r}),n=t.cache;return t}var ir=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ar=/\\(\\)?/g,sr=or(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(ir,function(n,r,o,i){t.push(o?i.replace(ar,"$1"):r||n)}),t});function Lt(e,t){return K(e)?e:Ke(e,t)?[e]:sr(rn(e))}function xe(e){if(typeof e=="string"||At(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Nt(e,t){t=Lt(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[xe(t[n++])];return n&&n==r?e:void 0}function lr(e,t,n){var r=e==null?void 0:Nt(e,t);return r===void 0?n:r}function ur(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function dr(e,t){for(var n=-1,r=e==null?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function fr(){return[]}var cr=Object.prototype,hr=cr.propertyIsEnumerable,it=Object.getOwnPropertySymbols,pr=it?function(e){return e==null?[]:(e=Object(e),dr(it(e),function(t){return hr.call(e,t)}))}:fr;function vr(e,t,n){var r=t(e);return K(e)?r:ur(r,n(e))}function at(e){return vr(e,Xe,pr)}var De=ye($e,"DataView"),Le=ye($e,"Promise"),Ne=ye($e,"Set"),st="[object Map]",gr="[object Object]",lt="[object Promise]",ut="[object Set]",dt="[object WeakMap]",ft="[object DataView]",mr=oe(De),br=oe(ze),wr=oe(Le),yr=oe(Ne),$r=oe(Ie),H=_t;(De&&H(new De(new ArrayBuffer(1)))!=ft||ze&&H(new ze)!=st||Le&&H(Le.resolve())!=lt||Ne&&H(new Ne)!=ut||Ie&&H(new Ie)!=dt)&&(H=function(e){var t=_t(e),n=t==gr?e.constructor:void 0,r=n?oe(n):"";if(r)switch(r){case mr:return ft;case br:return st;case wr:return lt;case yr:return ut;case $r:return dt}return t});var xr="__lodash_hash_undefined__";function Sr(e){return this.__data__.set(e,xr),this}function Cr(e){return this.__data__.has(e)}function be(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new je;++t<n;)this.add(e[t])}be.prototype.add=be.prototype.push=Sr;be.prototype.has=Cr;function Mr(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function Or(e,t){return e.has(t)}var Ar=1,_r=2;function Ft(e,t,n,r,o,i){var a=n&Ar,u=e.length,l=t.length;if(u!=l&&!(a&&l>u))return!1;var p=i.get(e),g=i.get(t);if(p&&g)return p==t&&g==e;var m=-1,s=!0,f=n&_r?new be:void 0;for(i.set(e,t),i.set(t,e);++m<u;){var d=e[m],c=t[m];if(r)var b=a?r(c,d,m,t,e,i):r(d,c,m,e,t,i);if(b!==void 0){if(b)continue;s=!1;break}if(f){if(!Mr(t,function(h,y){if(!Or(f,y)&&(d===h||o(d,h,n,r,i)))return f.push(y)})){s=!1;break}}else if(!(d===c||o(d,c,n,r,i))){s=!1;break}}return i.delete(e),i.delete(t),s}function Er(e){var t=-1,n=Array(e.size);return e.forEach(function(r,o){n[++t]=[o,r]}),n}function Tr(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var Pr=1,Br=2,zr="[object Boolean]",Ir="[object Date]",Dr="[object Error]",Lr="[object Map]",Nr="[object Number]",Fr="[object RegExp]",Wr="[object Set]",jr="[object String]",kr="[object Symbol]",Hr="[object ArrayBuffer]",Xr="[object DataView]",ct=Ue?Ue.prototype:void 0,Ee=ct?ct.valueOf:void 0;function Kr(e,t,n,r,o,i,a){switch(n){case Xr:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Hr:return!(e.byteLength!=t.byteLength||!i(new qe(e),new qe(t)));case zr:case Ir:case Nr:return on(+e,+t);case Dr:return e.name==t.name&&e.message==t.message;case Fr:case jr:return e==t+"";case Lr:var u=Er;case Wr:var l=r⪻if(u||(u=Tr),e.size!=t.size&&!l)return!1;var p=a.get(e);if(p)return p==t;r|=Br,a.set(e,t);var g=Ft(u(e),u(t),r,o,i,a);return a.delete(e),g;case kr:if(Ee)return Ee.call(e)==Ee.call(t)}return!1}var Yr=1,Vr=Object.prototype,Gr=Vr.hasOwnProperty;function Ur(e,t,n,r,o,i){var a=n&Yr,u=at(e),l=u.length,p=at(t),g=p.length;if(l!=g&&!a)return!1;for(var m=l;m--;){var s=u[m];if(!(a?s in t:Gr.call(t,s)))return!1}var f=i.get(e),d=i.get(t);if(f&&d)return f==t&&d==e;var c=!0;i.set(e,t),i.set(t,e);for(var b=a;++m<l;){s=u[m];var h=e[s],y=t[s];if(r)var E=a?r(y,h,s,t,e,i):r(h,y,s,e,t,i);if(!(E===void 0?h===y||o(h,y,n,r,i):E)){c=!1;break}b||(b=s=="constructor")}if(c&&!b){var T=e.constructor,P=t.constructor;T!=P&&"constructor"in e&&"constructor"in t&&!(typeof T=="function"&&T instanceof T&&typeof P=="function"&&P instanceof P)&&(c=!1)}return i.delete(e),i.delete(t),c}var qr=1,ht="[object Arguments]",pt="[object Array]",pe="[object Object]",Qr=Object.prototype,vt=Qr.hasOwnProperty;function Zr(e,t,n,r,o,i){var a=K(e),u=K(t),l=a?pt:H(e),p=u?pt:H(t);l=l==ht?pe:l,p=p==ht?pe:p;var g=l==pe,m=p==pe,s=l==p;if(s&&Qe(e)){if(!Qe(t))return!1;a=!0,g=!1}if(s&&!g)return i||(i=new ve),a||an(e)?Ft(e,t,n,r,o,i):Kr(e,t,l,n,r,o,i);if(!(n&qr)){var f=g&&vt.call(e,"__wrapped__"),d=m&&vt.call(t,"__wrapped__");if(f||d){var c=f?e.value():e,b=d?t.value():t;return i||(i=new ve),o(c,b,n,r,i)}}return s?(i||(i=new ve),Ur(e,t,n,r,o,i)):!1}function Ve(e,t,n,r,o){return e===t?!0:e==null||t==null||!Ze(e)&&!Ze(t)?e!==e&&t!==t:Zr(e,t,n,r,Ve,o)}var Jr=1,Rr=2;function eo(e,t,n,r){var o=n.length,i=o;if(e==null)return!i;for(e=Object(e);o--;){var a=n[o];if(a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++o<i;){a=n[o];var u=a[0],l=e[u],p=a[1];if(a[2]){if(l===void 0&&!(u in e))return!1}else{var g=new ve,m;if(!(m===void 0?Ve(p,l,Jr|Rr,r,g):m))return!1}}return!0}function Wt(e){return e===e&&!sn(e)}function to(e){for(var t=Xe(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Wt(o)]}return t}function jt(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function no(e){var t=to(e);return t.length==1&&t[0][2]?jt(t[0][0],t[0][1]):function(n){return n===e||eo(n,e,t)}}function ro(e,t){return e!=null&&t in Object(e)}function oo(e,t,n){t=Lt(t,e);for(var r=-1,o=t.length,i=!1;++r<o;){var a=xe(t[r]);if(!(i=e!=null&&n(e,a)))break;e=e[a]}return i||++r!=o?i:(o=e==null?0:e.length,!!o&&ln(o)&&un(a,o)&&(K(e)||dn(e)))}function io(e,t){return e!=null&&oo(e,t,ro)}var ao=1,so=2;function lo(e,t){return Ke(e)&&Wt(t)?jt(xe(e),t):function(n){var r=lr(n,e);return r===void 0&&r===t?io(n,e):Ve(t,r,ao|so)}}function uo(e){return function(t){return t==null?void 0:t[e]}}function fo(e){return function(t){return Nt(t,e)}}function co(e){return Ke(e)?uo(xe(e)):fo(e)}function ho(e){return typeof e=="function"?e:e==null?fn:typeof e=="object"?K(e)?lo(e[0],e[1]):no(e):co(e)}function po(e,t){return e&&cn(e,t,Xe)}function vo(e,t){return function(n,r){if(n==null)return n;if(!We(n))return e(n,r);for(var o=n.length,i=-1,a=Object(n);++i<o&&r(a[i],i,a)!==!1;);return n}}var go=vo(po);function mo(e,t){var n=-1,r=We(e)?Array(e.length):[];return go(e,function(o,i,a){r[++n]=t(o,i,a)}),r}function bo(e,t){var n=K(e)?hn:mo;return n(e,ho(t))}const wo={space:"6px",spaceArrow:"10px",arrowOffset:"10px",arrowOffsetVertical:"10px",arrowHeight:"6px",padding:"8px 14px"};function yo(e){const{boxShadow2:t,popoverColor:n,textColor2:r,borderRadius:o,fontSize:i,dividerColor:a}=e;return Object.assign(Object.assign({},wo),{fontSize:i,borderRadius:o,color:n,dividerColor:a,textColor:r,boxShadow:t})}const kt={name:"Popover",common:ke,self:yo},Te={top:"bottom",bottom:"top",left:"right",right:"left"},C="var(--n-arrow-height) * 1.414",$o=I([D("popover",`
|
|
2
2
|
transition:
|
|
3
3
|
box-shadow .3s var(--n-bezier),
|
|
4
4
|
background-color .3s var(--n-bezier),
|
|
@@ -123,4 +123,4 @@ import{A as Fe,bg as de,bT as Gt,q as L,a5 as $t,ae as X,bz as xt,bA as St,bx as
|
|
|
123
123
|
position: relative;
|
|
124
124
|
fill: currentColor;
|
|
125
125
|
`,[ne("color-transition",{transition:"color .3s var(--n-bezier)"}),ne("depth",{color:"var(--n-color)"},[I("svg",{opacity:"var(--n-opacity)",transition:"opacity .3s var(--n-bezier)"})]),I("svg",{height:"1em",width:"1em"})]),Lo=Object.assign(Object.assign({},Q.props),{depth:[String,Number],size:[Number,String],color:String,component:[Object,Function]}),Yo=q({_n_icon__:!0,name:"Icon",inheritAttrs:!1,props:Lo,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Q("Icon","-icon",Do,Io,e,t),o=L(()=>{const{depth:a}=e,{common:{cubicBezierEaseInOut:u},self:l}=r.value;if(a!==void 0){const{color:p,[`opacity${a}Depth`]:g}=l;return{"--n-bezier":u,"--n-color":p,"--n-opacity":g}}return{"--n-bezier":u,"--n-color":"","--n-opacity":""}}),i=n?Tt("icon",L(()=>`${e.depth||"d"}`),o,e):void 0;return{mergedClsPrefix:t,mergedStyle:L(()=>{const{size:a,color:u}=e;return{fontSize:ge(a),color:u}}),cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{$parent:t,depth:n,mergedClsPrefix:r,component:o,onRender:i,themeClass:a}=this;return!((e=t==null?void 0:t.$options)===null||e===void 0)&&e._n_icon__&&An("icon","don't wrap `n-icon` inside `n-icon`"),i==null||i(),x("i",Pt(this.$attrs,{role:"img",class:[`${r}-icon`,a,{[`${r}-icon--depth`]:n,[`${r}-icon--color-transition`]:n!==void 0}],style:[this.cssVars,this.mergedStyle]}),o?x(o):this.$slots)}}),gt=e=>{let t=e.lastIndexOf(".");return t===-1?e:e.slice(t+1)},Pe=(e,t)=>e+(t===1?"":t),mt=(e,t=!0,n=1)=>{if(!e.parent)return t?"[parent=null]":[Pe("<",n),"[parent=null]"].join(" ");if(e.idQf){const r=e.attr.vid?"vid":"id",o=e.attr.vid||e.attr.id;return t?`[${r}="${o}"]`:[Pe("<",n),`[${r}="${o}"]`].join(" ")}return t?["@"+gt(e.attr.name),mt(e.parent,!1,e.attr.index+1)].join(" "):[Pe("<",n),gt(e.attr.name),mt(e.parent,!1,e.attr.index+1)].join(" ")},Vo=e=>(e.forEach(t=>{var n,r,o;t.attr??={name:"NULL"},t.children??=[],t.parent=e[t.pid],t.parent&&(t.attr.index??=t.parent.children.length,(n=t.parent)==null||n.children.push(t)),Object.defineProperty(t,"isLeaf",{get(){return t.children.length==0}}),t.attr.depth=(((o=(r=t.parent)==null?void 0:r.attr)==null?void 0:o.depth)??-1)+1,t.attr._id??=t.id,t.attr._pid??=t.pid}),e[0]),No=(e,t)=>{const n=e.attr,{x:r,y:o}=t;return n.left<=r&&r<=n.right&&n.top<=o&&o<=n.bottom},bt=(e,t)=>e.attr.left<=t.attr.left&&e.attr.top<=t.attr.top&&e.attr.right>=t.attr.right&&e.attr.bottom>=t.attr.bottom,Fo=(e,t)=>e.attr.left===t.attr.left&&e.attr.top===t.attr.top&&e.attr.right===t.attr.right&&e.attr.bottom===t.attr.bottom,le=(e,t)=>{var r;if(((r=e==null?void 0:e.children)==null?void 0:r.length)===0)return!1;let n=t.parent;for(;;){if((n==null?void 0:n.id)===(e==null?void 0:e.id))return!0;if(n=n==null?void 0:n.parent,!n)break}return!1},Go=(e,t)=>{var r;if(!e||!t)return[];let n=[];for(const o of e)((r=o==null?void 0:o.attr)==null?void 0:r.left)!==void 0&&No(o,t)&&n.push(o);return n.length<=1||(n=n.filter(o=>!n.some(i=>le(o,i)&&bt(o,i))),n.length<=1)||(n=n.filter(o=>!n.some(i=>o!=i&&(le(o,i)||le(o.parent,i))&&bt(o,i)&&!Fo(o,i))),n.sort((o,i)=>wt(o)-wt(i))),n},wt=e=>{const t=e.attr.width??e.attr.right-e.attr.left,n=e.attr.height??e.attr.bottom-e.attr.top;return t*n},Kt=e=>{const t=e.attr.childCount;return(e.attr.name||"🐔"+(t>1?"":` [${t}]`)).split(".").at(-1)},Yt=e=>e.attr.text||e.attr.desc||e.attr.vid||e.attr.id,Be=Symbol("labelKey"),Uo=e=>{if(Reflect.has(e,Be))return Reflect.get(e,Be);let t=Kt(e);const n=e.children.length;n>1&&(t=`${t} [${n}]`);const r=Yt(e);return r&&(t=`${t} : ${r}`),Reflect.set(e,Be,t),t},Wo=(e,t=15)=>{let n=Kt(e);const r=e.children.length;r>1&&(n=`${n} [${r}]`);const o=Yt(e);return o?o.length>t?`${n} : ${o.slice(0,t)}...`:`${n} : ${o}`:n},jo=e=>typeof e.device=="object"&&e.device?e.device:e,qo=e=>e.appInfo||{id:e.appId,name:e.appName,versionCode:e.appVersionCode,versionName:e.appVersionName,hidden:!1,isSystem:!1,mtime:Date.now()},Qo=e=>{const t=jo(e);return e.gkdAppInfo||{id:"li.songe.gkd",name:"GKD",versionCode:t.gkdVersionCode,versionName:t.gkdVersionName,hidden:!1,isSystem:!1,mtime:Date.now()}},Zo=e=>!!(e&&typeof e=="object"&&typeof e.id=="number"&&e.attr),Jo=(e,t)=>{const r=!!(e.idQf||e.textQf||e.quickFind)?"bold":void 0,o=e.id===(t==null?void 0:t.id)?"#00F":void 0;return{fontWeight:r,color:o}},ko=(e,t)=>{for(let n=e.length-1;n>=0;n--){const r=e[n];if(r.children.length&&t.every(o=>r===o||le(r,o)))return r}throw new Error("no top node")},yt=[],Ro=(e,t)=>{const n=ko(e,t),r=new Set([n,...t]),o=n.children.toReversed();for(;o.length>0;){const s=o.pop();t.some(f=>le(s,f))&&(r.add(s),o.push(...s.children.toReversed()))}const i=new Set,a=new Map,u=s=>{var f;if(i.has(s)){const d=((f=s.parent)==null?void 0:f.children)||yt,c=d.indexOf(s),b=d.find((h,y)=>y>c&&!r.has(h)&&r.has(d[y+1]))||d.at(-1);return`[${c} ~ ${b.attr.index}]`}return a.get(s)?"[ ... ]":Wo(s)},l=s=>{const f=s.children.find(d=>r.has(d)&&!t.includes(d));if(f&&!s.children.some(d=>d!==f&&(t.includes(d)||r.has(d))))return l(f)||f},p=new Map;return{topNode:n,getLabel:u,getChildren:s=>{if(s.children.every(d=>!r.has(d)))return yt;if(a.has(s)){const d=a.get(s);if(d)return[d]}else if(!t.includes(s)){const d=l(s);if(d&&!s.children.includes(d))return a.set(s,d),[d];a.set(s,void 0)}if(s.children.length<=1)return s.children;if(p.get(s.id))return p.get(s.id);const f=[];for(let d=0;d<s.children.length;d++){const c=s.children[d],b=s.children[d-1],h=s.children[d+1];r.has(c)?f.push(c):(!b||r.has(b))&&s.children.some((y,E)=>E>d&&r.has(y))&&(f.push(c),h&&!r.has(h)&&i.add(c))}return p.set(s.id,f),f},isPlaceholder:s=>i.has(s)||!!a.get(s)}},ei=e=>!!(e.idQf||e.textQf||e.quickFind);export{Or as A,Ln as B,ho as C,Ro as D,ei as E,Yo as N,Ne as S,Nn as V,_o as _,Ko as a,mt as b,Jo as c,Uo as d,jo as e,Go as f,qo as g,Qo as h,Xt as i,ce as j,Wn as k,Vo as l,Xo as m,zn as n,Gn as o,kt as p,Bn as q,ge as r,lr as s,xo as t,re as u,En as v,Po as w,Zo as x,Tr as y,be as z};
|
|
126
|
-
//# sourceMappingURL=node-
|
|
126
|
+
//# sourceMappingURL=node-DeXZi5w1.js.map
|