PageSourceSearch

https://www.vben.pro/js/PopperContent-_Iy-85wN.js

js vben.pro collected 2026-09-25 21:22:34 UTC 33,693 bytes, 1 lines download raw bytes

1import{En as e,Ht as t,On as n,Q as r,Ut as i,Wt as a,Xt as o,an as s,b as c,bn as l,ct as u,er as d,et as f,ft as p,g as m,gn as h,k as g,mt as _,pn as v,qt as y,tt as b,u as x,v as S,vn as C,xn as w,xt as T,y as E}from"./runtime-core.esm-bundler-BqIb1SNH.js";import{t as D}from"./objectSpread2-BmonrgTA.js";import{t as O}from"./asyncToGenerator-BVcl5FgL.js";import{t as k}from"./objectWithoutProperties-CjlH8YfO.js";import{c as A}from"./dist-Dn5ToRZv.js";import{a as j,g as M,i as N}from"./dist-DDuwdo-m.js";import{a as P,o as F,r as ee}from"./useForwardPropsEmits-CsnS4mNt.js";import{t as te}from"./nullish-DHihWhf5.js";import{t as ne}from"./useDirection-t9RRydzG.js";import{t as re}from"./Primitive-DPYd1Vv4.js";function I(e,t,n){let r=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),r.dispatchEvent(i)}var L=h({layersRoot:new Set,layersWithOutsidePointerEventsDisabled:new Set,originalBodyPointerEvents:void 0,branches:new Set});function ie(e){let t=C(),n=m(()=>{var e,n;return(e=(n=t.value)==null?void 0:n.width)==null?0:e}),r=m(()=>{var e,n;return(e=(n=t.value)==null?void 0:n.height)==null?0:e}),i;return u(()=>{let n=j(e);n?(t.value={width:n.offsetWidth,height:n.offsetHeight},i=new ResizeObserver(e=>{if(!Array.isArray(e)||!e.length)return;let r=e[0],i,a;if(`borderBoxSize`in r){let e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,a=t.blockSize}else i=n.offsetWidth,a=n.offsetHeight;t.value={width:i,height:a}}),i.observe(n,{box:`border-box`})):t.value=void 0}),p(()=>{i==null||i.disconnect(),i=void 0}),{width:n,height:r}}var ae=`dismissableLayer.pointerDownOutside`,oe=`dismissableLayer.focusOutside`;function se(e,t){if(!(t instanceof Element))return!1;let n=t.closest(`[data-dismissable-layer]`),r=e.dataset.dismissableLayer===``?e:e.querySelector(`[data-dismissable-layer]`),i=Array.from(e.ownerDocument.querySelectorAll(`[data-dismissable-layer]`));return!!(n&&(r===n||i.indexOf(r)<i.indexOf(n)))}function ce(t,n,r=!0){var a,o,s;let c=(a=n==null||(o=n.value)==null?void 0:o.ownerDocument)==null?(s=globalThis)==null?void 0:s.document:a,l=C(!1),u=C(()=>{});return i(i=>{if(!A||!e(r))return;let a=function(){var e=O(function*(e){let r=e.target;if(n!=null&&n.value&&r){if(se(n.value,r)){l.value=!1;return}if(e.target&&!l.value){let n={originalEvent:e};function r(){I(ae,t,n)}e.pointerType===`touch`?(c.removeEventListener(`click`,u.value),u.value=r,c.addEventListener(`click`,u.value,{once:!0})):r()}else c.removeEventListener(`click`,u.value);l.value=!1}});return function(t){return e.apply(this,arguments)}}(),o=window.setTimeout(()=>{c.addEventListener(`pointerdown`,a)},0);i(()=>{window.clearTimeout(o),c.removeEventListener(`pointerdown`,a),c.removeEventListener(`click`,u.value)})}),{onPointerDownCapture:()=>{e(r)&&(l.value=!0)}}}function le(t,n,r=!0){var a,o,s;let c=(a=n==null||(o=n.value)==null?void 0:o.ownerDocument)==null?(s=globalThis)==null?void 0:s.document:a,l=C(!1);return i(i=>{if(!A||!e(r))return;let a=function(){var e=O(function*(e){if(!(n!=null&&n.value))return;yield b(),yield b();let r=e.target;n.value&&r&&!se(n.value,r)&&e.target&&!l.value&&I(oe,t,{originalEvent:e})});return function(t){return e.apply(this,arguments)}}();c.addEventListener(`focusin`,a),i(()=>c.removeEventListener(`focusin`,a))}),{onFocusCapture:()=>{e(r)&&(l.value=!0)},onBlurCapture:()=>{e(r)&&(l.value=!1)}}}var ue=g({__name:`DismissableLayer`,props:{disableOutsidePointerEvents:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},present:{type:Boolean,required:!1,default:!0}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`dismiss`],setup(e,{emit:r}){let a=e,o=r,{forwardRef:s,currentElement:c}=ee(),l=m(()=>{var e,t;return(e=(t=c.value)==null?void 0:t.ownerDocument)==null?globalThis.document:e}),u=m(()=>L.layersRoot),f=m(()=>c.value?Array.from(u.value).indexOf(c.value):-1),p=m(()=>L.layersWithOutsidePointerEventsDisabled.size>0),h=m(()=>{let e=Array.from(u.value),[t]=[...L.layersWithOutsidePointerEventsDisabled].slice(-1),n=e.indexOf(t);return f.value>=n}),g=ce(function(){var e=O(function*(e){let t=[...L.branches].some(t=>t==null?void 0:t.contains(e.target));a.present&&h.value&&!t&&(o(`pointerDownOutside`,e),o(`interactOutside`,e),yield b(),e.defaultPrevented||o(`dismiss`))});return function(t){return e.apply(this,arguments)}}(),c,()=>a.present),v=le(e=>{let t=[...L.branches].some(t=>t==null?void 0:t.contains(e.target));a.present&&!t&&(o(`focusOutside`,e),o(`interactOutside`,e),e.defaultPrevented||o(`dismiss`))},c);return N(`Escape`,e=>{a.present&&f.value===u.value.size-1&&(o(`escapeKeyDown`,e),e.defaultPrevented||o(`dismiss`))}),t([c,()=>a.disableOutsidePointerEvents,()=>a.present],([e,t,n],r,i)=>{e&&n&&t&&(L.layersWithOutsidePointerEventsDisabled.size===0&&(L.originalBodyPointerEvents=l.value.body.style.pointerEvents,l.value.body.style.pointerEvents=`none`),L.layersWithOutsidePointerEventsDisabled.add(e),i(()=>{L.layersWithOutsidePointerEventsDisabled.delete(e),L.layersWithOutsidePointerEventsDisabled.size===0&&!te(L.originalBodyPointerEvents)&&(l.value.body.style.pointerEvents=L.originalBodyPointerEvents)}))},{immediate:!0}),t([c,()=>a.present],([e,t],n,r)=>{e&&t&&(u.value.add(e),r(()=>{u.value.delete(e)}))},{immediate:!0}),i(e=>{e(()=>{c.value&&(u.value.delete(c.value),L.layersWithOutsidePointerEventsDisabled.delete(c.value))})}),(e,t)=>(_(),S(n(re),{ref:n(s),"as-child":e.asChild,as:e.as,"data-dismissable-layer":``,style:d({pointerEvents:p.value?h.value?`auto`:`none`:void 0}),onFocusCapture:n(v).onFocusCapture,onBlurCapture:n(v).onBlurCapture,onPointerdownCapture:n(g).onPointerDownCapture},{default:y(()=>[T(e.$slots,`default`)]),_:3},8,[`as-child`,`as`,`style`,`onFocusCapture`,`onBlurCapture`,`onPointerdownCapture`]))}}),de=g({__name:`Teleport`,props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){let t=e,r=P({}),i=m(()=>{var e,n,i;return(e=(n=t.to)==null?(i=r.teleportTo)==null?void 0:i.value:n)==null?`body`:e}),a=M();return(e,t)=>n(a)||e.forceMount?(_(),S(x,{key:0,to:i.value,disabled:e.disabled,defer:e.defer},[T(e.$slots,`default`)],8,[`to`,`disabled`,`defer`])):E(`v-if`,!0)}}),[fe,pe]=F(`PopperRoot`),me=g({inheritAttrs:!1,__name:`PopperRoot`,setup(e){let t=C();return pe({anchor:t,onAnchorChange:e=>t.value=e}),(e,t)=>T(e.$slots,`default`)}}
1),he=g({__name:`PopperAnchor`,props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e,{forwardRef:r,currentElement:i}=ee(),o=fe();return a(()=>{var e;o.onAnchorChange((e=t.reference)==null?i.value:e)}),(e,t)=>(_(),S(n(re),{ref:n(r),as:e.as,"as-child":e.asChild},{default:y(()=>[T(e.$slots,`default`)]),_:3},8,[`as`,`as-child`]))}});function ge(e){return e!==null}function _e(e){return{name:`transformOrigin`,options:e,fn(t){var n,r,i,a,o;let{placement:s,rects:c,middlewareData:l}=t,u=((n=l.arrow)==null?void 0:n.centerOffset)!==0,d=u?0:e.arrowWidth,f=u?0:e.arrowHeight,[p,m]=ve(s),h={start:e.dir===`rtl`?`100%`:`0%`,center:`50%`,end:e.dir===`rtl`?`0%`:`100%`}[m],g={start:`0%`,center:`50%`,end:`100%`}[m],_=((r=(i=l.arrow)==null?void 0:i.x)==null?0:r)+d/2,v=((a=(o=l.arrow)==null?void 0:o.y)==null?0:a)+f/2,y=``,b=``;return p===`bottom`?(y=u?h:`${_}px`,b=`${-f}px`):p===`top`?(y=u?h:`${_}px`,b=`${c.floating.height+f}px`):p===`right`?(y=`${-f}px`,b=u?g:`${v}px`):p===`left`&&(y=`${c.floating.width+f}px`,b=u?g:`${v}px`),{data:{x:y,y:b}}}}}function ve(e){let[t,n=`center`]=e.split(`-`);return[t,n]}var ye=[`top`,`right`,`bottom`,`left`],R=Math.min,z=Math.max,be=Math.round,xe=Math.floor,B=e=>({x:e,y:e}),Se={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Ce(e,t,n){return z(e,R(t,n))}function V(e,t){return typeof e==`function`?e(t):e}function H(e){return e.split(`-`)[0]}function U(e){return e.split(`-`)[1]}function we(e){return e===`x`?`y`:`x`}function Te(e){return e===`y`?`height`:`width`}function W(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function Ee(e){return we(W(e))}function De(e,t,n){n===void 0&&(n=!1);let r=U(e),i=Ee(e),a=Te(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=Ie(o)),[o,Ie(o)]}function Oe(e){let t=Ie(e);return[ke(e),t,ke(t)]}function ke(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var Ae=[`left`,`right`],je=[`right`,`left`],Me=[`top`,`bottom`],Ne=[`bottom`,`top`];function Pe(e,t,n){switch(e){case`top`:case`bottom`:return n?t?je:Ae:t?Ae:je;case`left`:case`right`:return t?Me:Ne;default:return[]}}function Fe(e,t,n,r){let i=U(e),a=Pe(H(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(ke)))),a}function Ie(e){let t=H(e);return Se[t]+e.slice(t.length)}function Le(e){var t,n,r,i;return{top:(t=e.top)==null?0:t,right:(n=e.right)==null?0:n,bottom:(r=e.bottom)==null?0:r,left:(i=e.left)==null?0:i}}function Re(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Le(e)}function ze(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}var Be=[`mainAxis`,`crossAxis`,`fallbackPlacements`,`fallbackStrategy`,`fallbackAxisSideDirection`,`flipAlignment`],Ve=[`strategy`],He=[`mainAxis`,`crossAxis`,`limiter`],Ue=[`apply`];function We(e,t,n){let{reference:r,floating:i}=e,a=W(t),o=Ee(t),s=Te(o),c=H(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=U(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}function Ge(e,t){return Ke.apply(this,arguments)}function Ke(){return Ke=O(function*(e,t){var n;t===void 0&&(t={});let{x:r,y:i,platform:a,rects:o,elements:s,strategy:c}=e,{boundary:l=`clippingAncestors`,rootBoundary:u=`viewport`,elementContext:d=`floating`,altBoundary:f=!1,padding:p=0}=V(t,e),m=Re(p),h=s[f?d===`floating`?`reference`:`floating`:d],g=ze(yield a.getClippingRect({element:(n=yield a.isElement==null?void 0:a.isElement(h))==null||n?h:h.contextElement||(yield a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:l,rootBoundary:u,strategy:c})),_=d===`floating`?{x:r,y:i,width:o.floating.width,height:o.floating.height}:o.reference,v=yield a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating),y=(yield a.isElement==null?void 0:a.isElement(v))&&(yield a.getScale==null?void 0:a.getScale(v))||{x:1,y:1},b=ze(a.convertOffsetParentRelativeRectToViewportRelativeRect?yield a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:_,offsetParent:v,strategy:c}):_);
1return{top:(g.top-b.top+m.top)/y.y,bottom:(b.bottom-g.bottom+m.bottom)/y.y,left:(g.left-b.left+m.left)/y.x,right:(b.right-g.right+m.right)/y.x}}),Ke.apply(this,arguments)}var qe=50,Je=function(){var e=O(function*(e,t,n){let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:D(D({},o),{},{detectOverflow:Ge}),c=yield o.isRTL==null?void 0:o.isRTL(t),l=yield o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=We(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=yield _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v==null?u:v,d=y==null?d:y,m[g]=D(D({},m[g]),b),x&&p<qe&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?yield o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=We(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}});return function(t,n,r){return e.apply(this,arguments)}}(),Ye=e=>({name:`arrow`,options:e,fn(t){return O(function*(){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=V(e,t)||{};if(l==null)return{};let d=Re(u),f={x:n,y:r},p=Ee(i),m=Te(p),h=yield o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=yield o.getOffsetParent==null?void 0:o.getOffsetParent(l),C=S?S[y]:0;(!C||!(yield o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=R(d[_],T),O=R(d[v],T),k=C-h[m]-O,A=C/2-h[m]/2+w,j=Ce(E,A,k),M=!c.arrow&&U(i)!=null&&A!==j&&a.reference[m]/2-(A<E?E:O)-h[m]/2<0,N=M?A<E?A-E:A-k:0;return{[p]:f[p]+N,data:D({[p]:j,centerOffset:A-j-N},M&&{alignmentOffset:N}),reset:M}})()}}),Xe=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,fn(t){return O(function*(){var n,r;let{placement:i,middlewareData:a,rects:o,initialPlacement:s,platform:c,elements:l}=t,u=V(e,t),{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:m=`bestFit`,fallbackAxisSideDirection:h=`none`,flipAlignment:g=!0}=u,_=k(u,Be);if((n=a.arrow)!=null&&n.alignmentOffset)return{};let v=H(i),y=W(s),b=H(s)===s,x=yield c.isRTL==null?void 0:c.isRTL(l.floating),S=p||(b||!g?[Ie(s)]:Oe(s)),C=h!==`none`;!p&&C&&S.push(...Fe(s,g,h,x));let w=[s,...S],T=yield c.detectOverflow(t,_),E=[],D=((r=a.flip)==null?void 0:r.overflows)||[];if(d&&E.push(T[v]),f){let e=De(i,o,x);E.push(T[e[0]],T[e[1]])}if(D=[...D,{placement:i,overflows:E}],!E.every(e=>e<=0)){var O,A;let e=(((O=a.flip)==null?void 0:O.index)||0)+1,t=w[e];if(t&&(f!==`alignment`||y===W(t)||D.every(e=>W(e.placement)!==y||e.overflows[0]>0)))return{data:{index:e,overflows:D},reset:{placement:t}};let n=(A=D.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])==null?void 0:A.placement;if(!n)switch(m){case`bestFit`:{var j;let e=(j=D.filter(e=>{if(C){let t=W(e.placement);return t===y||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])==null?void 0:j[0];e&&(n=e);break}case`initialPlacement`:n=s}if(i!==n)return{reset:{placement:n}}}return{}})()}}};function Ze(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Qe(e){return ye.some(t=>e[t]>=0)}var $e=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,fn(t){return O(function*(){let{rects:n,platform:r}=t,i=V(e,t),{strategy:a=`referenceHidden`}=i,o=k(i,Ve);switch(a){case`referenceHidden`:{let e=Ze(yield r.detectOverflow(t,D(D({},o),{},{elementContext:`reference`})),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Qe(e)}}}case`escaped`:{let e=Ze(yield r.detectOverflow(t,D(D({},o),{},{altBoundary:!0})),n.floating);return{data:{escapedOffsets:e,escaped:Qe(e)}}}default:return{}}})()}}},et=new Set([`left`,`top`]);function tt(e,t){return nt.apply(this,arguments)}function nt(){return nt=O(function*(e,t){let{placement:n,platform:r,elements:i}=e,a=yield r.isRTL==null?void 0:r.isRTL(i.floating),o=H(n),s=U(n),c=W(n)===`y`,l=et.has(o)?-1:1,u=a&&c?-1:1,d=V(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}
1:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}),nt.apply(this,arguments)}var rt=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,fn(t){return O(function*(){var n,r;let{x:i,y:a,placement:o,middlewareData:s}=t,c=yield tt(t,e);return o===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:i+c.x,y:a+c.y,data:D(D({},c),{},{placement:o})}})()}}},it=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,fn(t){return O(function*(){let{x:n,y:r,placement:i,platform:a}=t,o=V(e,t),{mainAxis:s=!0,crossAxis:c=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}}}=o,u=k(o,He),d={x:n,y:r},f=yield a.detectOverflow(t,u),p=W(i),m=we(p),h=d[m],g=d[p],_=(e,t)=>Ce(t+f[e===`y`?`top`:`left`],t,t-f[e===`y`?`bottom`:`right`]);s&&(h=_(m,h)),c&&(g=_(p,g));let v=l.fn(D(D({},t),{},{[m]:h,[p]:g}));return D(D({},v),{},{data:{x:v.x-n,y:v.y-r,enabled:{[m]:s,[p]:c}}})})()}}},at=function(e){return e===void 0&&(e={}),{options:e,fn(t){var n,r;let{x:i,y:a,placement:o,rects:s,middlewareData:c}=t,{offset:l=0,mainAxis:u=!0,crossAxis:d=!0}=V(e,t),f={x:i,y:a},p=W(o),m=we(p),h=f[m],g=f[p],_=V(l,t),v=typeof _==`number`?{mainAxis:_,crossAxis:0}:{mainAxis:(n=_.mainAxis)==null?0:n,crossAxis:(r=_.crossAxis)==null?0:r};if(u){let e=m===`y`?`height`:`width`,t=s.reference[m]-s.floating[e]+v.mainAxis,n=s.reference[m]+s.reference[e]-v.mainAxis;h<t?h=t:h>n&&(h=n)}if(d){var y,b;let e=m===`y`?`width`:`height`,t=et.has(H(o)),n=s.reference[p]-s.floating[e]+(t&&((y=c.offset)==null?void 0:y[p])||0)+(t?0:v.crossAxis),r=s.reference[p]+s.reference[e]+(t?0:((b=c.offset)==null?void 0:b[p])||0)-(t?v.crossAxis:0);g<n?g=n:g>r&&(g=r)}return{[m]:h,[p]:g}}}},ot=function(e){return e===void 0&&(e={}),{name:`size`,options:e,fn(t){return O(function*(){let{placement:n,rects:r,platform:i,elements:a}=t,o=V(e,t),{apply:s=()=>{}}=o,c=k(o,Ue),l=yield i.detectOverflow(t,c),u=H(n),d=U(n),f=W(n)===`y`,{width:p,height:m}=r.floating,h,g;u===`top`||u===`bottom`?(h=u,g=d===((yield i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(g=u,h=d===`end`?`top`:`bottom`);let _=m-l.top-l.bottom,v=p-l.left-l.right,y=R(m-l[h],_),b=R(p-l[g],v),x=t.middlewareData.shift,S=!x,C=y,w=b;x!=null&&x.enabled.x&&(w=v),x!=null&&x.enabled.y&&(C=_),S&&!d&&(f?w=p-2*z(l.left,l.right):C=m-2*z(l.top,l.bottom)),yield s(D(D({},t),{},{availableWidth:w,availableHeight:C}));let T=yield i.getDimensions(a.floating);return p!==T.width||m!==T.height?{reset:{rects:!0}}:{}})()}}};function st(){return typeof window<`u`}function G(e){return ct(e)?(e.nodeName||``).toLowerCase():`#document`}function K(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function q(e){var t;return(t=(ct(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ct(e){return st()?e instanceof Node||e instanceof K(e).Node:!1}function J(e){return st()?e instanceof Element||e instanceof K(e).Element:!1}function Y(e){return st()?e instanceof HTMLElement||e instanceof K(e).HTMLElement:!1}function lt(e){return!st()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof K(e).ShadowRoot}function ut(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Z(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function dt(e){return/^(table|td|th)$/.test(G(e))}function ft(e){try{if(e.matches(`:popover-open`))return!0}catch(e){}try{return e.matches(`:modal`)}catch(e){return!1}}var pt=/transform|translate|scale|rotate|perspective|filter/,mt=/paint|layout|strict|content/,X=e=>!!e&&e!==`none`,ht;function gt(e){let t=J(e)?Z(e):e;return X(t.transform)||X(t.translate)||X(t.scale)||X(t.rotate)||X(t.perspective)||!vt()&&(X(t.backdropFilter)||X(t.filter))||pt.test(t.willChange||``)||mt.test(t.contain||``)}function _t(e){let t=Q(e);for(;Y(t)&&!yt(t);){if(gt(t))return t;if(ft(t))return null;t=Q(t)}return null}function vt(){return ht==null&&(ht=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`)),ht}function yt(e){return/^(html|body|#document)$/.test(G(e))}function Z(e){return K(e).getComputedStyle(e)}function bt(e){return J(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Q(e){if(G(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||lt(e)&&e.host||q(e);return lt(t)?t.host:t}function xt(e){let t=Q(e);return yt(t)?(e.ownerDocument||e).body:Y(t)&&ut(t)?t:xt(t)}function St(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);
vendor: 4,275 bytes, line 1
1let i=xt(e),a=i===((r=e.ownerDocument)==null?void 0:r.body),o=K(i);if(a){let e=Ct(o);return t.concat(o,o.visualViewport||[],ut(i)?i:[],e&&n?St(e):[])}return t.concat(i,St(i,[],n))}function Ct(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function wt(e){let t=Z(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=Y(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=be(n)!==a||be(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Tt(e){return J(e)?e:e.contextElement}function Et(e){let t=Tt(e);if(!Y(t))return B(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=wt(t),o=(a?be(n.width):n.width)/r,s=(a?be(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var Dt=B(0);function Ot(e){let t=K(e);return!vt()||!t.visualViewport?Dt:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function kt(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===K(e)}function $(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Tt(e),o=B(1);t&&(r?J(r)&&(o=Et(r)):o=Et(e));let s=kt(a,n,r)?Ot(a):B(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a&&r){let e=K(a),t=J(r)?K(r):r,n=e,i=Ct(n);for(;i&&t!==n;){let e=Et(i),t=i.getBoundingClientRect(),r=Z(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=K(i),i=Ct(n)}}return ze({width:u,height:d,x:c,y:l})}function At(e,t){let n=bt(e).scrollLeft;return t?t.left+n:$(q(e)).left+n}function jt(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-At(e,n),y:n.top+t.scrollTop}}function Mt(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=q(r),s=t?ft(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=B(1),u=B(0),d=Y(r);if((d||!a)&&((G(r)!==`body`||ut(o))&&(c=bt(r)),d)){let e=$(r);l=Et(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?jt(o,c):B(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function Nt(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function Pt(e){let t=bt(e),n=e.ownerDocument.body,r=z(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=z(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+At(e),o=-t.scrollTop;return Z(n).direction===`rtl`&&(a+=z(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var Ft=25;function It(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=K(e),a=q(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!vt()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(At(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=Ft&&(s-=o)}return{width:s,height:c,x:l,y:u}}function Lt(e,t){let n=$(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Et(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Rt(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=It(e,n,t);else if(t===`document`)r=Pt(q(e));else if(J(t))r=Lt(t,n);else{let n=Ot(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return ze(r)}function zt(e,t){let n=t.get(e);if(n)return n;let r=St(e,[],!1).filter(e=>J(e)&&G(e)!==`body`),i=null,a=Z(e).position===`fixed`,o=a?Q(e):e;for(;J(o)&&!yt(o);){let e=Z(o),t=gt(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=Q(o)}return t.set(e,r),r}function Bt(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?ft(t)?[]:zt(t,this._c):[].concat(n),r],o=Rt(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=Rt(t,a[e],i);s=z(n.top,s),c=R(n.right,c),l=R(n.bottom,l),u=z(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function Vt(e){let{width:t,height:n}=wt(e);return{width:t,height:n}}function Ht(e,t,n){let r=Y(t),i=q(t),a=n===`fixed`,o=$(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=B(0);
1if((r||!a)&&((G(t)!==`body`||ut(i))&&(s=bt(t)),r)){let e=$(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=At(i));let l=i&&!r&&!a?jt(i,s):B(0);return{x:o.left+s.scrollLeft-c.x-l.x,y:o.top+s.scrollTop-c.y-l.y,width:o.width,height:o.height}}function Ut(e){return Z(e).position===`static`}function Wt(e,t){if(!Y(e)||Z(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return q(e)===n&&(n=n.ownerDocument.body),n}function Gt(e,t){let n=K(e);if(ft(e))return n;if(!Y(e)){let t=Q(e);for(;t&&!yt(t);){if(J(t)&&!Ut(t))return t;t=Q(t)}return n}let r=Wt(e,t);for(;r&&dt(r)&&Ut(r);)r=Wt(r,t);return r&&yt(r)&&Ut(r)&&!gt(r)?n:r||_t(e)||n}var Kt=function(){var e=O(function*(e){let t=this.getOffsetParent||Gt,n=this.getDimensions,r=yield n(e.floating);return{reference:Ht(e.reference,yield t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}});return function(t){return e.apply(this,arguments)}}();function qt(e){return Z(e).direction===`rtl`}var Jt={convertOffsetParentRelativeRectToViewportRelativeRect:Mt,getDocumentElement:q,getClippingRect:Bt,getOffsetParent:Gt,getElementRects:Kt,getClientRects:Nt,getDimensions:Vt,getScale:Et,isElement:J,isRTL:qt};function Yt(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Xt(e,t,n){let r=null,i,a=q(e);function o(){var e;clearTimeout(i),(e=r)==null||e.disconnect(),r=null}function s(n,c){n===void 0&&(n=!1),c===void 0&&(c=1),o();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(n||t(),!f||!p)return;let m=xe(d),h=xe(a.clientWidth-(u+f)),g=xe(a.clientHeight-(d+p)),_=xe(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:z(0,R(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!Yt(l,e.getBoundingClientRect()))return s();if(n!==c){if(!y)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,D(D({},v),{},{root:a.ownerDocument}))}catch(e){r=new IntersectionObserver(b,v)}r.observe(e)}let c=K(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function Zt(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=Tt(e),u=i||a?[...l?St(l):[],...t?St(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?Xt(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?$(e):null;c&&g();function g(){let t=$(e);h&&!Yt(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d==null||d(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var Qt=rt,$t=it,en=Xe,tn=ot,nn=$e,rn=Ye,an=at,on=(e,t,n)=>{let r=new Map,i=n==null?{}:n,a=D(D(D({},Jt),i.platform),{},{_c:r});return Je(e,t,D(D({},i),{},{platform:a}))};function sn(e){return typeof e==`object`&&!!e&&`$el`in e}function cn(e){if(sn(e)){let t=e.$el;return ct(t)&&G(t)===`#comment`?null:t}return e}function ln(e){return typeof e==`function`?e():n(e)}function un(e){return{name:`arrow`,options:e,fn(t){let n=cn(ln(e.element));return n==null?{}:rn({element:n,padding:e.padding}).fn(t)}}}function dn(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function fn(e,t){let n=dn(e);return Math.round(t*n)/n}function pn(e,n,r){r===void 0&&(r={});let i=r.whileElementsMounted,a=m(()=>{var e;return(e=ln(r.open))==null||e}),o=m(()=>ln(r.middleware)),c=m(()=>{var e;return(e=ln(r.placement))==null?`bottom`:e}),u=m(()=>{var e;return(e=ln(r.strategy))==null?`absolute`:e}),d=m(()=>{var e;return(e=ln(r.transform))==null||e}),f=m(()=>cn(e.value)),p=m(()=>cn(n.value)),h=C(0),g=C(0),_=C(u.value),y=C(c.value),b=w({}),x=C(!1),S=m(()=>{let e={position:_.value,left:`0`,top:`0`};if(!p.value)return e;let t=fn(p.value,h.value),n=fn(p.value,g.value);return d.value?D(D({},e),{},{transform:`translate(`+t+`px, `+n+`px)`},dn(p.value)>=1.5&&{willChange:`transform`}):{position:_.value,left:t+`px`,top:n+`px`}}),T;
1function E(){if(f.value==null||p.value==null)return;let e=a.value;on(f.value,p.value,{middleware:o.value,placement:c.value,strategy:u.value}).then(t=>{h.value=t.x,g.value=t.y,_.value=t.strategy,y.value=t.placement,b.value=t.middlewareData,x.value=e!==!1})}function O(){typeof T==`function`&&(T(),T=void 0)}function k(){if(O(),i===void 0){E();return}if(f.value!=null&&p.value!=null){T=i(f.value,p.value,E);return}}function A(){a.value||(x.value=!1)}return t([o,c,u,a],E,{flush:`sync`}),t([f,p],k,{flush:`sync`}),t(a,A,{flush:`sync`}),s()&&v(O),{x:l(h),y:l(g),strategy:l(_),placement:l(y),middlewareData:l(b),isPositioned:l(x),floatingStyles:S,update:E}}var mn=[`dir`],hn={side:`bottom`,sideOffset:0,sideFlip:!0,align:`center`,alignOffset:0,alignFlip:!0,arrowPadding:0,hideShiftedArrow:!0,avoidCollisions:!0,collisionBoundary:()=>[],collisionPadding:0,sticky:`partial`,hideWhenDetached:!1,positionStrategy:`fixed`,updatePositionStrategy:`optimized`,prioritizePosition:!1},[gn,_n]=F(`PopperContent`),vn=g({inheritAttrs:!1,__name:`PopperContent`,props:r({memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},D({},hn)),emits:[`placed`],setup(e,{emit:t}){let r=e,s=t,l=fe(),{forwardRef:u,currentElement:p}=ee(),h=ne(m(()=>r.dir)),g=C(),v=C(),{width:b,height:x}=ie(v),w=m(()=>r.side+(r.align===`center`?``:`-${r.align}`)),E=m(()=>typeof r.collisionPadding==`number`?r.collisionPadding:D({top:0,right:0,bottom:0,left:0},r.collisionPadding)),O=m(()=>Array.isArray(r.collisionBoundary)?r.collisionBoundary:[r.collisionBoundary]),k=m(()=>({padding:E.value,boundary:O.value.filter(ge),altBoundary:O.value.length>0})),A=m(()=>({mainAxis:r.sideFlip,crossAxis:r.alignFlip})),j=m(()=>[Qt({mainAxis:r.sideOffset+x.value,alignmentAxis:r.alignOffset}),r.prioritizePosition&&r.avoidCollisions&&en(D(D({},k.value),A.value)),r.avoidCollisions&&$t(D({mainAxis:!0,crossAxis:!!r.prioritizePosition,limiter:r.sticky===`partial`?an():void 0},k.value)),!r.prioritizePosition&&r.avoidCollisions&&en(D(D({},k.value),A.value)),tn(D(D({},k.value),{},{apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--reka-popper-available-width`,`${n}px`),o.setProperty(`--reka-popper-available-height`,`${r}px`),o.setProperty(`--reka-popper-anchor-width`,`${i}px`),o.setProperty(`--reka-popper-anchor-height`,`${a}px`)}})),v.value&&un({element:v.value,padding:r.arrowPadding}),_e({arrowWidth:b.value,arrowHeight:x.value,dir:h.value}),r.hideWhenDetached&&nn(D({strategy:`referenceHidden`},k.value))]),{floatingStyles:M,placement:N,isPositioned:P,middlewareData:F,update:te}=pn(m(()=>{var e;return(e=r.reference)==null?l.anchor.value:e}),g,{strategy:r.positionStrategy,placement:w,whileElementsMounted:(...e)=>Zt(...e,{layoutShift:!r.disableUpdateOnLayoutShift,animationFrame:r.updatePositionStrategy===`always`}),middleware:j}),I=m(()=>ve(N.value)[0]),L=m(()=>ve(N.value)[1]);a(()=>{P.value&&s(`placed`)});let ae=m(()=>{var e;let t=((e=F.value.arrow)==null?void 0:e.centerOffset)!==0;return r.hideShiftedArrow&&t}),oe=C(``);return i(()=>{p.value&&(oe.value=window.getComputedStyle(p.value).zIndex)}),_n({placedSide:I,onArrowChange:e=>v.value=e,arrowX:m(()=>{var e,t;return(e=(t=F.value.arrow)==null?void 0:t.x)==null?0:e}),arrowY:m(()=>{var e,t;return(e=(t=F.value.arrow)==null?void 0:t.y)==null?0:e}),shouldHideArrow:ae}),(e,t)=>{var i,a,s;return _(),c(`div`,{ref_key:`floatingRef`,ref:g,"data-reka-popper-content-wrapper":``,dir:n(h),style:d(D(D({},n(M)),{},{transform:n(P)?n(M).transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:oe.value,"--reka-popper-transform-origin":[(i=n(F).transformOrigin)==null?void 0:i.x,(a=n(F).transformOrigin)==null?void 0:a.y].join(` `)},((s=n(F).hide)==null?void 0:s.referenceHidden)&&{visibility:`hidden`,pointerEvents:`none`}))},[r.memoDependencies?o([r.asChild,r.as,I.value,L.value,n(P),...Object.values(e.$attrs),...r.memoDependencies],()=>(_(),S(n(re),f({key:0,ref:n(u)},e.$attrs,{"as-child":r.asChild,as:r.as,"data-side":I.value,"data-align":L.value,style:{animation:n(P)?void 0:`none`}}),{default:y(()=>[T(e.$slots,`default`)]),_:3},16,[`as-child`,`as`,`data-side`,`data-align`,`style`])),t,0):(_(),S(n(re),f({key:1,ref:n(u)},e.$attrs,{"as-child":r.asChild,as:r.as,"data-side":I.value,"data-align":L.value,dir:n(h),style:{animation:n(P)?void 0:`none`}}),{default:y(()=>[T(e.$slots,`default`)]),_:3},16,[`as-child`,`as`,`data-side`,`data-align`,`dir`,`style`]))],12,mn)}}});
1export{me as a,L as c,he as i,I as l,vn as n,de as o,gn as r,ue as s,hn as t};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.