123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235 |
- import{A as Qr,F as Be,au as eo,d as ie,e as I,av as to,y as Ve,aw as Ie,ax as no,r as E,w as Vt,ay as d,az as ro,aA as oo,aB as Le,aC as Jn,aD as Me,aE as Se,T as ze,h as Qn,aF as Xe,v as er,g as st,aG as io,aH as ao,aI as so}from"./index-5e5e4ebc.js";import{w as dn,q as lo,o as ee,a as Y,i as It,b as Yt,S as lt,c as ve,g as ft,r as ht,d as uo,e as co,f as Zt,h as fo,M as qt,t as De,j as Lt,k as ho,U as fn,l as hn,m as ot,n as vo,p as go,s as po,u as mo,v as bo,x as wo,y as yo,z as Gt,A as xo,B as tr,C as Dt,D as So,E as W,F as k,G as vt,H as Co,I as Ce,J as xe,K as ge,L as Ze,N as Kt,O as it,P as Ro,Q as To,R as Mo,T as Oo,V as ut,W as Po,X as vn,Y as Ct,Z as nr,_ as Eo,$ as gn,a0 as rr,a1 as $o,a2 as zo,a3 as He,a4 as Je,a5 as or,a6 as Ao,a7 as ir,a8 as Bo,a9 as Io,aa as Lo}from"./fade-in-scale-up.cssr-b7c54253.js";function ct(e){return e.composedPath()[0]||null}function Do(e=8){return Math.random().toString(16).slice(2,2+e)}function _o(e,t=[],n){const r={};return t.forEach(o=>{r[o]=e[o]}),Object.assign(r,n)}function _t(e,t=!0,n=[]){return e.forEach(r=>{if(r!==null){if(typeof r!="object"){(typeof r=="string"||typeof r=="number")&&n.push(Qr(String(r)));return}if(Array.isArray(r)){_t(r,t,n);return}if(r.type===Be){if(r.children===null)return;Array.isArray(r.children)&&_t(r.children,t,n)}else r.type!==eo&&n.push(r)}}),n}function pn(e,t="default",n=void 0){const r=e[t];if(!r)return dn("getFirstSlotVNode",`slot[${t}] is empty`),null;const o=_t(r(n));return o.length===1?o[0]:(dn("getFirstSlotVNode",`slot[${t}] should have exactly one child`),null)}const mn=ie({render(){var e,t;return(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)}}),ko=/^(\d|\.)+$/,bn=/(\d|\.)+/;function Rt(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(ko.test(e)){const o=(Number(e)+n)*t;return r?o===0?"0":`${o}px`:`${o}`}else{const o=bn.exec(e);return o?e.replace(bn,String((Number(o[0])+n)*t)):e}return e}function Fo(e,t){if(e===void 0)return!1;if(t){const{context:{ids:n}}=t;return n.has(e)}return lo(e)!==null}let Tt;function Ho(){return Tt===void 0&&(Tt=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),Tt}const Wo=typeof document<"u"&&typeof window<"u";function No(e,t){return I(()=>{for(const n of t)if(e[n]!==void 0)return e[n];return e[t[t.length-1]]})}const Uo=(typeof window>"u"?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!window.MSStream;function Xo(){return Uo}const Pe="@@mmoContext",jo={mounted(e,{value:t}){e[Pe]={handler:void 0},typeof t=="function"&&(e[Pe].handler=t,ee("mousemoveoutside",e,t))},updated(e,{value:t}){const n=e[Pe];typeof t=="function"?n.handler?n.handler!==t&&(Y("mousemoveoutside",e,n.handler),n.handler=t,ee("mousemoveoutside",e,t)):(e[Pe].handler=t,ee("mousemoveoutside",e,t)):n.handler&&(Y("mousemoveoutside",e,n.handler),n.handler=void 0)},unmounted(e){const{handler:t}=e[Pe];t&&Y("mousemoveoutside",e,t),e[Pe].handler=void 0}},Vo=jo,Ee="@@coContext",Yo={mounted(e,{value:t,modifiers:n}){e[Ee]={handler:void 0},typeof t=="function"&&(e[Ee].handler=t,ee("clickoutside",e,t,{capture:n.capture}))},updated(e,{value:t,modifiers:n}){const r=e[Ee];typeof t=="function"?r.handler?r.handler!==t&&(Y("clickoutside",e,r.handler,{capture:n.capture}),r.handler=t,ee("clickoutside",e,t,{capture:n.capture})):(e[Ee].handler=t,ee("clickoutside",e,t,{capture:n.capture})):r.handler&&(Y("clickoutside",e,r.handler,{capture:n.capture}),r.handler=void 0)},unmounted(e,{modifiers:t}){const{handler:n}=e[Ee];n&&Y("clickoutside",e,n,{capture:t.capture}),e[Ee].handler=void 0}},wn=Yo;function yn(e,t){console.error(`[vueuc/${e}]: ${t}`)}function xn(e){return typeof e=="string"?document.querySelector(e):e()}var Re=[],Zo=function(){return Re.some(function(e){return e.activeTargets.length>0})},qo=function(){return Re.some(function(e){return e.skippedTargets.length>0})},Sn="ResizeObserver loop completed with undelivered notifications.",Go=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:Sn}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=Sn),window.dispatchEvent(e)},Ye;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Ye||(Ye={}));var Te=function(e){return Object.freeze(e)},Ko=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,Te(this)}return e}(),ar=function(){function e(t,n,r,o){return this.x=t,this.y=n,this.width=r,this.height=o,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Te(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,r=t.y,o=t.top,i=t.right,a=t.bottom,s=t.left,u=t.width,l=t.height;return{x:n,y:r,top:o,right:i,bottom:a,left:s,width:u,height:l}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),Jt=function(e){return e instanceof SVGElement&&"getBBox"in e},sr=function(e){if(Jt(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var o=e,i=o.offsetWidth,a=o.offsetHeight;return!(i||a||e.getClientRects().length)},Cn=function(e){var t;if(e instanceof Element)return!0;var n=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},Jo=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},je=typeof window<"u"?window:{},Qe=new WeakMap,Rn=/auto|scroll/,Qo=/^tb|vertical/,ei=/msie|trident/i.test(je.navigator&&je.navigator.userAgent),ce=function(e){return parseFloat(e||"0")},Ae=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new Ko((n?t:e)||0,(n?e:t)||0)},Tn=Te({devicePixelContentBoxSize:Ae(),borderBoxSize:Ae(),contentBoxSize:Ae(),contentRect:new ar(0,0,0,0)}),lr=function(e,t){if(t===void 0&&(t=!1),Qe.has(e)&&!t)return Qe.get(e);if(sr(e))return Qe.set(e,Tn),Tn;var n=getComputedStyle(e),r=Jt(e)&&e.ownerSVGElement&&e.getBBox(),o=!ei&&n.boxSizing==="border-box",i=Qo.test(n.writingMode||""),a=!r&&Rn.test(n.overflowY||""),s=!r&&Rn.test(n.overflowX||""),u=r?0:ce(n.paddingTop),l=r?0:ce(n.paddingRight),f=r?0:ce(n.paddingBottom),v=r?0:ce(n.paddingLeft),y=r?0:ce(n.borderTopWidth),S=r?0:ce(n.borderRightWidth),O=r?0:ce(n.borderBottomWidth),T=r?0:ce(n.borderLeftWidth),b=v+l,m=u+f,$=T+S,F=y+O,N=s?e.offsetHeight-F-e.clientHeight:0,X=a?e.offsetWidth-$-e.clientWidth:0,H=o?b+$:0,C=o?m+F:0,M=r?r.width:ce(n.width)-H-X,L=r?r.height:ce(n.height)-C-N,P=M+b+X+$,K=L+m+N+F,Z=Te({devicePixelContentBoxSize:Ae(Math.round(M*devicePixelRatio),Math.round(L*devicePixelRatio),i),borderBoxSize:Ae(P,K,i),contentBoxSize:Ae(M,L,i),contentRect:new ar(v,u,M,L)});return Qe.set(e,Z),Z},ur=function(e,t,n){var r=lr(e,n),o=r.borderBoxSize,i=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(t){case Ye.DEVICE_PIXEL_CONTENT_BOX:return a;case Ye.BORDER_BOX:return o;default:return i}},ti=function(){function e(t){var n=lr(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=Te([n.borderBoxSize]),this.contentBoxSize=Te([n.contentBoxSize]),this.devicePixelContentBoxSize=Te([n.devicePixelContentBoxSize])}return e}(),cr=function(e){if(sr(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},ni=function(){var e=1/0,t=[];Re.forEach(function(a){if(a.activeTargets.length!==0){var s=[];a.activeTargets.forEach(function(l){var f=new ti(l.target),v=cr(l.target);s.push(f),l.lastReportedSize=ur(l.target,l.observedBox),v<e&&(e=v)}),t.push(function(){a.callback.call(a.observer,s,a.observer)}),a.activeTargets.splice(0,a.activeTargets.length)}});for(var n=0,r=t;n<r.length;n++){var o=r[n];o()}return e},Mn=function(e){Re.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(o){o.isActive()&&(cr(o.target)>e?n.activeTargets.push(o):n.skippedTargets.push(o))})})},ri=function(){var e=0;for(Mn(e);Zo();)e=ni(),Mn(e);return qo()&&Go(),e>0},Mt,dr=[],oi=function(){return dr.splice(0).forEach(function(e){return e()})},ii=function(e){if(!Mt){var t=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return oi()}).observe(n,r),Mt=function(){n.textContent="".concat(t?t--:t++)}}dr.push(e),Mt()},ai=function(e){ii(function(){requestAnimationFrame(e)})},at=0,si=function(){return!!at},li=250,ui={attributes:!0,characterData:!0,childList:!0,subtree:!0},On=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Pn=function(e){return e===void 0&&(e=0),Date.now()+e},Ot=!1,ci=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var n=this;if(t===void 0&&(t=li),!Ot){Ot=!0;var r=Pn(t);ai(function(){var o=!1;try{o=ri()}finally{if(Ot=!1,t=r-Pn(),!si())return;o?n.run(1e3):t>0?n.run(t):n.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,n=function(){return t.observer&&t.observer.observe(document.body,ui)};document.body?n():je.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),On.forEach(function(n){return je.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),On.forEach(function(n){return je.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),kt=new ci,En=function(e){!at&&e>0&&kt.start(),at+=e,!at&&kt.stop()},di=function(e){return!Jt(e)&&!Jo(e)&&getComputedStyle(e).display==="inline"},fi=function(){function e(t,n){this.target=t,this.observedBox=n||Ye.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=ur(this.target,this.observedBox,!0);return di(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),hi=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),et=new WeakMap,$n=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},tt=function(){function e(){}return e.connect=function(t,n){var r=new hi(t,n);et.set(t,r)},e.observe=function(t,n,r){var o=et.get(t),i=o.observationTargets.length===0;$n(o.observationTargets,n)<0&&(i&&Re.push(o),o.observationTargets.push(new fi(n,r&&r.box)),En(1),kt.schedule())},e.unobserve=function(t,n){var r=et.get(t),o=$n(r.observationTargets,n),i=r.observationTargets.length===1;o>=0&&(i&&Re.splice(Re.indexOf(r),1),r.observationTargets.splice(o,1),En(-1))},e.disconnect=function(t){var n=this,r=et.get(t);r.observationTargets.slice().forEach(function(o){return n.unobserve(t,o.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e}(),vi=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");tt.connect(this,t)}return e.prototype.observe=function(t,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Cn(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");tt.observe(this,t,n)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Cn(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");tt.unobserve(this,t)},e.prototype.disconnect=function(){tt.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();class gi{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<"u"&&window.ResizeObserver||vi)(this.handleResize),this.elHandlersMap=new Map}handleResize(t){for(const n of t){const r=this.elHandlersMap.get(n.target);r!==void 0&&r(n)}}registerHandler(t,n){this.elHandlersMap.set(t,n),this.observer.observe(t)}unregisterHandler(t){this.elHandlersMap.has(t)&&(this.elHandlersMap.delete(t),this.observer.unobserve(t))}}const zn=new gi,An=ie({name:"ResizeObserver",props:{onResize:Function},setup(e){let t=!1;const n=to().proxy;function r(o){const{onResize:i}=e;i!==void 0&&i(o)}Ve(()=>{const o=n.$el;if(o===void 0){yn("resize-observer","$el does not exist.");return}if(o.nextElementSibling!==o.nextSibling&&o.nodeType===3&&o.nodeValue!==""){yn("resize-observer","$el can not be observed (it may be a text node).");return}o.nextElementSibling!==null&&(zn.registerHandler(o.nextElementSibling,r),t=!0)}),Ie(()=>{t&&zn.unregisterHandler(n.$el.nextElementSibling)})},render(){return no(this.$slots,"default")}});function fr(e){return e instanceof HTMLElement}function hr(e){for(let t=0;t<e.childNodes.length;t++){const n=e.childNodes[t];if(fr(n)&&(gr(n)||hr(n)))return!0}return!1}function vr(e){for(let t=e.childNodes.length-1;t>=0;t--){const n=e.childNodes[t];if(fr(n)&&(gr(n)||vr(n)))return!0}return!1}function gr(e){if(!pi(e))return!1;try{e.focus({preventScroll:!0})}catch(t){}return document.activeElement===e}function pi(e){if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.getAttribute("disabled"))return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return e.type!=="hidden"&&e.type!=="file";case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}}let We=[];const mi=ie({name:"FocusTrap",props:{disabled:Boolean,active:Boolean,autoFocus:{type:Boolean,default:!0},onEsc:Function,initialFocusTo:String,finalFocusTo:String,returnFocusOnDeactivated:{type:Boolean,default:!0}},setup(e){const t=Do(),n=E(null),r=E(null);let o=!1,i=!1;const a=typeof document>"u"?null:document.activeElement;function s(){return We[We.length-1]===t}function u(b){var m;b.code==="Escape"&&s()&&((m=e.onEsc)===null||m===void 0||m.call(e,b))}Ve(()=>{Vt(()=>e.active,b=>{b?(v(),ee("keydown",document,u)):(Y("keydown",document,u),o&&y())},{immediate:!0})}),Ie(()=>{Y("keydown",document,u),o&&y()});function l(b){if(!i&&s()){const m=f();if(m===null||m.contains(ct(b)))return;S("first")}}function f(){const b=n.value;if(b===null)return null;let m=b;for(;m=m.nextSibling,!(m===null||m instanceof Element&&m.tagName==="DIV"););return m}function v(){var b;if(!e.disabled){if(We.push(t),e.autoFocus){const{initialFocusTo:m}=e;m===void 0?S("first"):(b=xn(m))===null||b===void 0||b.focus({preventScroll:!0})}o=!0,document.addEventListener("focus",l,!0)}}function y(){var b;if(e.disabled||(document.removeEventListener("focus",l,!0),We=We.filter($=>$!==t),s()))return;const{finalFocusTo:m}=e;m!==void 0?(b=xn(m))===null||b===void 0||b.focus({preventScroll:!0}):e.returnFocusOnDeactivated&&a instanceof HTMLElement&&(i=!0,a.focus({preventScroll:!0}),i=!1)}function S(b){if(s()&&e.active){const m=n.value,$=r.value;if(m!==null&&$!==null){const F=f();if(F==null||F===$){i=!0,m.focus({preventScroll:!0}),i=!1;return}i=!0;const N=b==="first"?hr(F):vr(F);i=!1,N||(i=!0,m.focus({preventScroll:!0}),i=!1)}}}function O(b){if(i)return;const m=f();m!==null&&(b.relatedTarget!==null&&m.contains(b.relatedTarget)?S("last"):S("first"))}function T(b){i||(b.relatedTarget!==null&&b.relatedTarget===n.value?S("last"):S("first"))}return{focusableStartRef:n,focusableEndRef:r,focusableStyle:"position: absolute; height: 0; width: 0;",handleStartFocus:O,handleEndFocus:T}},render(){const{default:e}=this.$slots;if(e===void 0)return null;if(this.disabled)return e();const{active:t,focusableStyle:n}=this;return d(Be,null,[d("div",{"aria-hidden":"true",tabindex:t?"0":"-1",ref:"focusableStartRef",style:n,onFocus:this.handleStartFocus}),e(),d("div",{"aria-hidden":"true",style:n,ref:"focusableEndRef",tabindex:t?"0":"-1",onFocus:this.handleEndFocus})])}});function bi(e){const t={isDeactivated:!1};let n=!1;return ro(()=>{if(t.isDeactivated=!1,!n){n=!0;return}e()}),oo(()=>{t.isDeactivated=!0,n||(n=!0)}),t}var wi="[object Symbol]";function Qt(e){return typeof e=="symbol"||It(e)&&Yt(e)==wi}function pr(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var yi=1/0,Bn=lt?lt.prototype:void 0,In=Bn?Bn.toString:void 0;function mr(e){if(typeof e=="string")return e;if(ve(e))return pr(e,mr)+"";if(Qt(e))return In?In.call(e):"";var t=e+"";return t=="0"&&1/e==-yi?"-0":t}var xi=ft(ht,"WeakMap");const Ft=xi;var Si=uo(Object.keys,Object);const Ci=Si;var Ri=Object.prototype,Ti=Ri.hasOwnProperty;function Mi(e){if(!co(e))return Ci(e);var t=[];for(var n in Object(e))Ti.call(e,n)&&n!="constructor"&&t.push(n);return t}function en(e){return Zt(e)?fo(e):Mi(e)}var Oi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Pi=/^\w*$/;function tn(e,t){if(ve(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Qt(e)?!0:Pi.test(e)||!Oi.test(e)||t!=null&&e in Object(t)}var Ei="Expected a function";function nn(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Ei);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(nn.Cache||qt),n}nn.Cache=qt;var $i=500;function zi(e){var t=nn(e,function(r){return n.size===$i&&n.clear(),r}),n=t.cache;return t}var Ai=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Bi=/\\(\\)?/g,Ii=zi(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Ai,function(n,r,o,i){t.push(o?i.replace(Bi,"$1"):r||n)}),t});const Li=Ii;function gt(e){return e==null?"":mr(e)}function br(e,t){return ve(e)?e:tn(e,t)?[e]:Li(gt(e))}var Di=1/0;function pt(e){if(typeof e=="string"||Qt(e))return e;var t=e+"";return t=="0"&&1/e==-Di?"-0":t}function wr(e,t){t=br(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[pt(t[n++])];return n&&n==r?e:void 0}function _i(e,t,n){var r=e==null?void 0:wr(e,t);return r===void 0?n:r}function ki(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function Fi(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}function Hi(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:Fi(e,t,n)}var Wi="\\ud800-\\udfff",Ni="\\u0300-\\u036f",Ui="\\ufe20-\\ufe2f",Xi="\\u20d0-\\u20ff",ji=Ni+Ui+Xi,Vi="\\ufe0e\\ufe0f",Yi="\\u200d",Zi=RegExp("["+Yi+Wi+ji+Vi+"]");function yr(e){return Zi.test(e)}function qi(e){return e.split("")}var xr="\\ud800-\\udfff",Gi="\\u0300-\\u036f",Ki="\\ufe20-\\ufe2f",Ji="\\u20d0-\\u20ff",Qi=Gi+Ki+Ji,ea="\\ufe0e\\ufe0f",ta="["+xr+"]",Ht="["+Qi+"]",Wt="\\ud83c[\\udffb-\\udfff]",na="(?:"+Ht+"|"+Wt+")",Sr="[^"+xr+"]",Cr="(?:\\ud83c[\\udde6-\\uddff]){2}",Rr="[\\ud800-\\udbff][\\udc00-\\udfff]",ra="\\u200d",Tr=na+"?",Mr="["+ea+"]?",oa="(?:"+ra+"(?:"+[Sr,Cr,Rr].join("|")+")"+Mr+Tr+")*",ia=Mr+Tr+oa,aa="(?:"+[Sr+Ht+"?",Ht,Cr,Rr,ta].join("|")+")",sa=RegExp(Wt+"(?="+Wt+")|"+aa+ia,"g");function la(e){return e.match(sa)||[]}function ua(e){return yr(e)?la(e):qi(e)}function ca(e){return function(t){t=gt(t);var n=yr(t)?ua(t):void 0,r=n?n[0]:t.charAt(0),o=n?Hi(n,1).join(""):t.slice(1);return r[e]()+o}}var da=ca("toUpperCase");const fa=da;function ha(e,t,n,r){var o=-1,i=e==null?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function va(e){return function(t){return e==null?void 0:e[t]}}var ga={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},pa=va(ga);const ma=pa;var ba=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,wa="\\u0300-\\u036f",ya="\\ufe20-\\ufe2f",xa="\\u20d0-\\u20ff",Sa=wa+ya+xa,Ca="["+Sa+"]",Ra=RegExp(Ca,"g");function Ta(e){return e=gt(e),e&&e.replace(ba,ma).replace(Ra,"")}var Ma=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Oa(e){return e.match(Ma)||[]}var Pa=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function Ea(e){return Pa.test(e)}var Or="\\ud800-\\udfff",$a="\\u0300-\\u036f",za="\\ufe20-\\ufe2f",Aa="\\u20d0-\\u20ff",Ba=$a+za+Aa,Pr="\\u2700-\\u27bf",Er="a-z\\xdf-\\xf6\\xf8-\\xff",Ia="\\xac\\xb1\\xd7\\xf7",La="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Da="\\u2000-\\u206f",_a=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",$r="A-Z\\xc0-\\xd6\\xd8-\\xde",ka="\\ufe0e\\ufe0f",zr=Ia+La+Da+_a,Ar="['’]",Ln="["+zr+"]",Fa="["+Ba+"]",Br="\\d+",Ha="["+Pr+"]",Ir="["+Er+"]",Lr="[^"+Or+zr+Br+Pr+Er+$r+"]",Wa="\\ud83c[\\udffb-\\udfff]",Na="(?:"+Fa+"|"+Wa+")",Ua="[^"+Or+"]",Dr="(?:\\ud83c[\\udde6-\\uddff]){2}",_r="[\\ud800-\\udbff][\\udc00-\\udfff]",$e="["+$r+"]",Xa="\\u200d",Dn="(?:"+Ir+"|"+Lr+")",ja="(?:"+$e+"|"+Lr+")",_n="(?:"+Ar+"(?:d|ll|m|re|s|t|ve))?",kn="(?:"+Ar+"(?:D|LL|M|RE|S|T|VE))?",kr=Na+"?",Fr="["+ka+"]?",Va="(?:"+Xa+"(?:"+[Ua,Dr,_r].join("|")+")"+Fr+kr+")*",Ya="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Za="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",qa=Fr+kr+Va,Ga="(?:"+[Ha,Dr,_r].join("|")+")"+qa,Ka=RegExp([$e+"?"+Ir+"+"+_n+"(?="+[Ln,$e,"$"].join("|")+")",ja+"+"+kn+"(?="+[Ln,$e+Dn,"$"].join("|")+")",$e+"?"+Dn+"+"+_n,$e+"+"+kn,Za,Ya,Br,Ga].join("|"),"g");function Ja(e){return e.match(Ka)||[]}function Qa(e,t,n){return e=gt(e),t=n?void 0:t,t===void 0?Ea(e)?Ja(e):Oa(e):e.match(t)||[]}var es="['’]",ts=RegExp(es,"g");function ns(e){return function(t){return ha(Qa(Ta(t).replace(ts,"")),e,"")}}function rs(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 os(){return[]}var is=Object.prototype,as=is.propertyIsEnumerable,Fn=Object.getOwnPropertySymbols,ss=Fn?function(e){return e==null?[]:(e=Object(e),rs(Fn(e),function(t){return as.call(e,t)}))}:os;const ls=ss;function us(e,t,n){var r=t(e);return ve(e)?r:ki(r,n(e))}function Hn(e){return us(e,en,ls)}var cs=ft(ht,"DataView");const Nt=cs;var ds=ft(ht,"Promise");const Ut=ds;var fs=ft(ht,"Set");const Xt=fs;var Wn="[object Map]",hs="[object Object]",Nn="[object Promise]",Un="[object Set]",Xn="[object WeakMap]",jn="[object DataView]",vs=De(Nt),gs=De(Lt),ps=De(Ut),ms=De(Xt),bs=De(Ft),ye=Yt;(Nt&&ye(new Nt(new ArrayBuffer(1)))!=jn||Lt&&ye(new Lt)!=Wn||Ut&&ye(Ut.resolve())!=Nn||Xt&&ye(new Xt)!=Un||Ft&&ye(new Ft)!=Xn)&&(ye=function(e){var t=Yt(e),n=t==hs?e.constructor:void 0,r=n?De(n):"";if(r)switch(r){case vs:return jn;case gs:return Wn;case ps:return Nn;case ms:return Un;case bs:return Xn}return t});const Vn=ye;var ws="__lodash_hash_undefined__";function ys(e){return this.__data__.set(e,ws),this}function xs(e){return this.__data__.has(e)}function dt(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new qt;++t<n;)this.add(e[t])}dt.prototype.add=dt.prototype.push=ys;dt.prototype.has=xs;function Ss(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 Cs(e,t){return e.has(t)}var Rs=1,Ts=2;function Hr(e,t,n,r,o,i){var a=n&Rs,s=e.length,u=t.length;if(s!=u&&!(a&&u>s))return!1;var l=i.get(e),f=i.get(t);if(l&&f)return l==t&&f==e;var v=-1,y=!0,S=n&Ts?new dt:void 0;for(i.set(e,t),i.set(t,e);++v<s;){var O=e[v],T=t[v];if(r)var b=a?r(T,O,v,t,e,i):r(O,T,v,e,t,i);if(b!==void 0){if(b)continue;y=!1;break}if(S){if(!Ss(t,function(m,$){if(!Cs(S,$)&&(O===m||o(O,m,n,r,i)))return S.push($)})){y=!1;break}}else if(!(O===T||o(O,T,n,r,i))){y=!1;break}}return i.delete(e),i.delete(t),y}function Ms(e){var t=-1,n=Array(e.size);return e.forEach(function(r,o){n[++t]=[o,r]}),n}function Os(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var Ps=1,Es=2,$s="[object Boolean]",zs="[object Date]",As="[object Error]",Bs="[object Map]",Is="[object Number]",Ls="[object RegExp]",Ds="[object Set]",_s="[object String]",ks="[object Symbol]",Fs="[object ArrayBuffer]",Hs="[object DataView]",Yn=lt?lt.prototype:void 0,Pt=Yn?Yn.valueOf:void 0;function Ws(e,t,n,r,o,i,a){switch(n){case Hs:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Fs:return!(e.byteLength!=t.byteLength||!i(new fn(e),new fn(t)));case $s:case zs:case Is:return ho(+e,+t);case As:return e.name==t.name&&e.message==t.message;case Ls:case _s:return e==t+"";case Bs:var s=Ms;case Ds:var u=r&Ps;if(s||(s=Os),e.size!=t.size&&!u)return!1;var l=a.get(e);if(l)return l==t;r|=Es,a.set(e,t);var f=Hr(s(e),s(t),r,o,i,a);return a.delete(e),f;case ks:if(Pt)return Pt.call(e)==Pt.call(t)}return!1}var Ns=1,Us=Object.prototype,Xs=Us.hasOwnProperty;function js(e,t,n,r,o,i){var a=n&Ns,s=Hn(e),u=s.length,l=Hn(t),f=l.length;if(u!=f&&!a)return!1;for(var v=u;v--;){var y=s[v];if(!(a?y in t:Xs.call(t,y)))return!1}var S=i.get(e),O=i.get(t);if(S&&O)return S==t&&O==e;var T=!0;i.set(e,t),i.set(t,e);for(var b=a;++v<u;){y=s[v];var m=e[y],$=t[y];if(r)var F=a?r($,m,y,t,e,i):r(m,$,y,e,t,i);if(!(F===void 0?m===$||o(m,$,n,r,i):F)){T=!1;break}b||(b=y=="constructor")}if(T&&!b){var N=e.constructor,X=t.constructor;N!=X&&"constructor"in e&&"constructor"in t&&!(typeof N=="function"&&N instanceof N&&typeof X=="function"&&X instanceof X)&&(T=!1)}return i.delete(e),i.delete(t),T}var Vs=1,Zn="[object Arguments]",qn="[object Array]",nt="[object Object]",Ys=Object.prototype,Gn=Ys.hasOwnProperty;function Zs(e,t,n,r,o,i){var a=ve(e),s=ve(t),u=a?qn:Vn(e),l=s?qn:Vn(t);u=u==Zn?nt:u,l=l==Zn?nt:l;var f=u==nt,v=l==nt,y=u==l;if(y&&hn(e)){if(!hn(t))return!1;a=!0,f=!1}if(y&&!f)return i||(i=new ot),a||vo(e)?Hr(e,t,n,r,o,i):Ws(e,t,u,n,r,o,i);if(!(n&Vs)){var S=f&&Gn.call(e,"__wrapped__"),O=v&&Gn.call(t,"__wrapped__");if(S||O){var T=S?e.value():e,b=O?t.value():t;return i||(i=new ot),o(T,b,n,r,i)}}return y?(i||(i=new ot),js(e,t,n,r,o,i)):!1}function rn(e,t,n,r,o){return e===t?!0:e==null||t==null||!It(e)&&!It(t)?e!==e&&t!==t:Zs(e,t,n,r,rn,o)}var qs=1,Gs=2;function Ks(e,t,n,r){var o=n.length,i=o,a=!r;if(e==null)return!i;for(e=Object(e);o--;){var s=n[o];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<i;){s=n[o];var u=s[0],l=e[u],f=s[1];if(a&&s[2]){if(l===void 0&&!(u in e))return!1}else{var v=new ot;if(r)var y=r(l,f,u,e,t,v);if(!(y===void 0?rn(f,l,qs|Gs,r,v):y))return!1}}return!0}function Wr(e){return e===e&&!go(e)}function Js(e){for(var t=en(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Wr(o)]}return t}function Nr(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function Qs(e){var t=Js(e);return t.length==1&&t[0][2]?Nr(t[0][0],t[0][1]):function(n){return n===e||Ks(n,e,t)}}function el(e,t){return e!=null&&t in Object(e)}function tl(e,t,n){t=br(t,e);for(var r=-1,o=t.length,i=!1;++r<o;){var a=pt(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&&po(o)&&mo(a,o)&&(ve(e)||bo(e)))}function nl(e,t){return e!=null&&tl(e,t,el)}var rl=1,ol=2;function il(e,t){return tn(e)&&Wr(t)?Nr(pt(e),t):function(n){var r=_i(n,e);return r===void 0&&r===t?nl(n,e):rn(t,r,rl|ol)}}function al(e){return function(t){return t==null?void 0:t[e]}}function sl(e){return function(t){return wr(t,e)}}function ll(e){return tn(e)?al(pt(e)):sl(e)}function ul(e){return typeof e=="function"?e:e==null?wo:typeof e=="object"?ve(e)?il(e[0],e[1]):Qs(e):ll(e)}function cl(e,t){return e&&yo(e,t,en)}function dl(e,t){return function(n,r){if(n==null)return n;if(!Zt(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=Object(n);(t?i--:++i<o)&&r(a[i],i,a)!==!1;);return n}}var fl=dl(cl);const hl=fl;function vl(e,t){var n=-1,r=Zt(e)?Array(e.length):[];return hl(e,function(o,i,a){r[++n]=t(o,i,a)}),r}function gl(e,t){var n=ve(e)?pr:vl;return n(e,ul(t))}var pl=ns(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()});const ml=pl,bl={name:"en-US",global:{undo:"Undo",redo:"Redo",confirm:"Confirm",clear:"Clear"},Popconfirm:{positiveText:"Confirm",negativeText:"Cancel"},Cascader:{placeholder:"Please Select",loading:"Loading",loadingRequiredMessage:e=>`Please load all ${e}'s descendants before checking it.`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",clear:"Clear",now:"Now",confirm:"Confirm",selectTime:"Select Time",selectDate:"Select Date",datePlaceholder:"Select Date",datetimePlaceholder:"Select Date and Time",monthPlaceholder:"Select Month",yearPlaceholder:"Select Year",quarterPlaceholder:"Select Quarter",startDatePlaceholder:"Start Date",endDatePlaceholder:"End Date",startDatetimePlaceholder:"Start Date and Time",endDatetimePlaceholder:"End Date and Time",startMonthPlaceholder:"Start Month",endMonthPlaceholder:"End Month",monthBeforeYear:!0,firstDayOfWeek:6,today:"Today"},DataTable:{checkTableAll:"Select all in the table",uncheckTableAll:"Unselect all in the table",confirm:"Confirm",clear:"Clear"},LegacyTransfer:{sourceTitle:"Source",targetTitle:"Target"},Transfer:{selectAll:"Select all",unselectAll:"Unselect all",clearAll:"Clear",total:e=>`Total ${e} items`,selected:e=>`${e} items selected`},Empty:{description:"No Data"},Select:{placeholder:"Please Select"},TimePicker:{placeholder:"Select Time",positiveText:"OK",negativeText:"Cancel",now:"Now"},Pagination:{goto:"Goto",selectionSuffix:"page"},DynamicTags:{add:"Add"},Log:{loading:"Loading"},Input:{placeholder:"Please Input"},InputNumber:{placeholder:"Please Input"},DynamicInput:{create:"Create"},ThemeEditor:{title:"Theme Editor",clearAllVars:"Clear All Variables",clearSearch:"Clear Search",filterCompName:"Filter Component Name",filterVarName:"Filter Variable Name",import:"Import",export:"Export",restore:"Reset to Default"},Image:{tipPrevious:"Previous picture (←)",tipNext:"Next picture (→)",tipCounterclockwise:"Counterclockwise",tipClockwise:"Clockwise",tipZoomOut:"Zoom out",tipZoomIn:"Zoom in",tipClose:"Close (Esc)",tipOriginalSize:"Zoom to original size"}},wl=bl;function Et(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}function Ne(e){return function(t,n){var r=n!=null&&n.context?String(n.context):"standalone",o;if(r==="formatting"&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,a=n!=null&&n.width?String(n.width):i;o=e.formattingValues[a]||e.formattingValues[i]}else{var s=e.defaultWidth,u=n!=null&&n.width?String(n.width):e.defaultWidth;o=e.values[u]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return o[l]}}function Ue(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var a=i[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(s)?xl(s,function(v){return v.test(a)}):yl(s,function(v){return v.test(a)}),l;l=e.valueCallback?e.valueCallback(u):u,l=n.valueCallback?n.valueCallback(l):l;var f=t.slice(a.length);return{value:l,rest:f}}}function yl(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function xl(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}function Sl(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var o=r[0],i=t.match(e.parsePattern);if(!i)return null;var a=e.valueCallback?e.valueCallback(i[0]):i[0];a=n.valueCallback?n.valueCallback(a):a;var s=t.slice(o.length);return{value:a,rest:s}}}var Cl={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Rl=function(t,n,r){var o,i=Cl[t];return typeof i=="string"?o=i:n===1?o=i.one:o=i.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+o:o+" ago":o};const Tl=Rl;var Ml={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Ol={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Pl={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},El={date:Et({formats:Ml,defaultWidth:"full"}),time:Et({formats:Ol,defaultWidth:"full"}),dateTime:Et({formats:Pl,defaultWidth:"full"})};const $l=El;var zl={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Al=function(t,n,r,o){return zl[t]};const Bl=Al;var Il={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Ll={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Dl={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},_l={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},kl={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Fl={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Hl=function(t,n){var r=Number(t),o=r%100;if(o>20||o<10)switch(o%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},Wl={ordinalNumber:Hl,era:Ne({values:Il,defaultWidth:"wide"}),quarter:Ne({values:Ll,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Ne({values:Dl,defaultWidth:"wide"}),day:Ne({values:_l,defaultWidth:"wide"}),dayPeriod:Ne({values:kl,defaultWidth:"wide",formattingValues:Fl,defaultFormattingWidth:"wide"})};const Nl=Wl;var Ul=/^(\d+)(th|st|nd|rd)?/i,Xl=/\d+/i,jl={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Vl={any:[/^b/i,/^(a|c)/i]},Yl={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Zl={any:[/1/i,/2/i,/3/i,/4/i]},ql={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Gl={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Kl={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Jl={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Ql={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},eu={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},tu={ordinalNumber:Sl({matchPattern:Ul,parsePattern:Xl,valueCallback:function(t){return parseInt(t,10)}}),era:Ue({matchPatterns:jl,defaultMatchWidth:"wide",parsePatterns:Vl,defaultParseWidth:"any"}),quarter:Ue({matchPatterns:Yl,defaultMatchWidth:"wide",parsePatterns:Zl,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Ue({matchPatterns:ql,defaultMatchWidth:"wide",parsePatterns:Gl,defaultParseWidth:"any"}),day:Ue({matchPatterns:Kl,defaultMatchWidth:"wide",parsePatterns:Jl,defaultParseWidth:"any"}),dayPeriod:Ue({matchPatterns:Ql,defaultMatchWidth:"any",parsePatterns:eu,defaultParseWidth:"any"})};const nu=tu;var ru={code:"en-US",formatDistance:Tl,formatLong:$l,formatRelative:Bl,localize:Nl,match:nu,options:{weekStartsOn:0,firstWeekContainsDate:1}};const ou=ru,iu={name:"en-US",locale:ou},au=iu;function su(e){const{mergedLocaleRef:t,mergedDateLocaleRef:n}=Le(Gt,null)||{},r=I(()=>{var i,a;return(a=(i=t==null?void 0:t.value)===null||i===void 0?void 0:i[e])!==null&&a!==void 0?a:wl[e]});return{dateLocaleRef:I(()=>{var i;return(i=n==null?void 0:n.value)!==null&&i!==void 0?i:au}),localeRef:r}}function lu(e,t,n){if(!t){xo("use-style","No style is specified.");return}const r=tr(),o=Le(Gt,null),i=()=>{const a=n==null?void 0:n.value;t.mount({id:a===void 0?e:a+e,head:!0,anchorMetaName:Dt,props:{bPrefix:a?`.${a}-`:void 0},ssr:r}),o!=null&&o.preflightStyleDisabled||So.mount({id:"n-global",head:!0,anchorMetaName:Dt,ssr:r})};r?i():Jn(i)}function uu(e,t,n){if(!t)return;const r=tr(),o=I(()=>{const{value:a}=t;if(!a)return;const s=a[e];if(s)return s}),i=()=>{Me(()=>{const{value:a}=n,s=`${a}${e}Rtl`;if(Fo(s,r))return;const{value:u}=o;u&&u.style.mount({id:s,head:!0,anchorMetaName:Dt,props:{bPrefix:a?`.${a}-`:void 0},ssr:r})})};return r?i():Jn(i),o}function mt(e,t){return ie({name:fa(e),setup(){var n;const r=(n=Le(Gt,null))===null||n===void 0?void 0:n.mergedIconsRef;return()=>{var o;const i=(o=r==null?void 0:r.value)===null||o===void 0?void 0:o[e];return i?i():t}}})}const cu=mt("rotateClockwise",d("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},d("path",{d:"M3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10C17 12.7916 15.3658 15.2026 13 16.3265V14.5C13 14.2239 12.7761 14 12.5 14C12.2239 14 12 14.2239 12 14.5V17.5C12 17.7761 12.2239 18 12.5 18H15.5C15.7761 18 16 17.7761 16 17.5C16 17.2239 15.7761 17 15.5 17H13.8758C16.3346 15.6357 18 13.0128 18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 10.2761 2.22386 10.5 2.5 10.5C2.77614 10.5 3 10.2761 3 10Z",fill:"currentColor"}),d("path",{d:"M10 12C11.1046 12 12 11.1046 12 10C12 8.89543 11.1046 8 10 8C8.89543 8 8 8.89543 8 10C8 11.1046 8.89543 12 10 12ZM10 11C9.44772 11 9 10.5523 9 10C9 9.44772 9.44772 9 10 9C10.5523 9 11 9.44772 11 10C11 10.5523 10.5523 11 10 11Z",fill:"currentColor"}))),du=mt("rotateClockwise",d("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},d("path",{d:"M17 10C17 6.13401 13.866 3 10 3C6.13401 3 3 6.13401 3 10C3 12.7916 4.63419 15.2026 7 16.3265V14.5C7 14.2239 7.22386 14 7.5 14C7.77614 14 8 14.2239 8 14.5V17.5C8 17.7761 7.77614 18 7.5 18H4.5C4.22386 18 4 17.7761 4 17.5C4 17.2239 4.22386 17 4.5 17H6.12422C3.66539 15.6357 2 13.0128 2 10C2 5.58172 5.58172 2 10 2C14.4183 2 18 5.58172 18 10C18 10.2761 17.7761 10.5 17.5 10.5C17.2239 10.5 17 10.2761 17 10Z",fill:"currentColor"}),d("path",{d:"M10 12C8.89543 12 8 11.1046 8 10C8 8.89543 8.89543 8 10 8C11.1046 8 12 8.89543 12 10C12 11.1046 11.1046 12 10 12ZM10 11C10.5523 11 11 10.5523 11 10C11 9.44772 10.5523 9 10 9C9.44772 9 9 9.44772 9 10C9 10.5523 9.44772 11 10 11Z",fill:"currentColor"}))),fu=mt("zoomIn",d("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},d("path",{d:"M11.5 8.5C11.5 8.22386 11.2761 8 11 8H9V6C9 5.72386 8.77614 5.5 8.5 5.5C8.22386 5.5 8 5.72386 8 6V8H6C5.72386 8 5.5 8.22386 5.5 8.5C5.5 8.77614 5.72386 9 6 9H8V11C8 11.2761 8.22386 11.5 8.5 11.5C8.77614 11.5 9 11.2761 9 11V9H11C11.2761 9 11.5 8.77614 11.5 8.5Z",fill:"currentColor"}),d("path",{d:"M8.5 3C11.5376 3 14 5.46243 14 8.5C14 9.83879 13.5217 11.0659 12.7266 12.0196L16.8536 16.1464C17.0488 16.3417 17.0488 16.6583 16.8536 16.8536C16.68 17.0271 16.4106 17.0464 16.2157 16.9114L16.1464 16.8536L12.0196 12.7266C11.0659 13.5217 9.83879 14 8.5 14C5.46243 14 3 11.5376 3 8.5C3 5.46243 5.46243 3 8.5 3ZM8.5 4C6.01472 4 4 6.01472 4 8.5C4 10.9853 6.01472 13 8.5 13C10.9853 13 13 10.9853 13 8.5C13 6.01472 10.9853 4 8.5 4Z",fill:"currentColor"}))),hu=mt("zoomOut",d("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},d("path",{d:"M11 8C11.2761 8 11.5 8.22386 11.5 8.5C11.5 8.77614 11.2761 9 11 9H6C5.72386 9 5.5 8.77614 5.5 8.5C5.5 8.22386 5.72386 8 6 8H11Z",fill:"currentColor"}),d("path",{d:"M14 8.5C14 5.46243 11.5376 3 8.5 3C5.46243 3 3 5.46243 3 8.5C3 11.5376 5.46243 14 8.5 14C9.83879 14 11.0659 13.5217 12.0196 12.7266L16.1464 16.8536L16.2157 16.9114C16.4106 17.0464 16.68 17.0271 16.8536 16.8536C17.0488 16.6583 17.0488 16.3417 16.8536 16.1464L12.7266 12.0196C13.5217 11.0659 14 9.83879 14 8.5ZM4 8.5C4 6.01472 6.01472 4 8.5 4C10.9853 4 13 6.01472 13 8.5C13 10.9853 10.9853 13 8.5 13C6.01472 13 4 10.9853 4 8.5Z",fill:"currentColor"}))),vu=ie({name:"ResizeSmall",render(){return d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},d("g",{fill:"none"},d("path",{d:"M5.5 4A1.5 1.5 0 0 0 4 5.5v1a.5.5 0 0 1-1 0v-1A2.5 2.5 0 0 1 5.5 3h1a.5.5 0 0 1 0 1h-1zM16 5.5A1.5 1.5 0 0 0 14.5 4h-1a.5.5 0 0 1 0-1h1A2.5 2.5 0 0 1 17 5.5v1a.5.5 0 0 1-1 0v-1zm0 9a1.5 1.5 0 0 1-1.5 1.5h-1a.5.5 0 0 0 0 1h1a2.5 2.5 0 0 0 2.5-2.5v-1a.5.5 0 0 0-1 0v1zm-12 0A1.5 1.5 0 0 0 5.5 16h1.25a.5.5 0 0 1 0 1H5.5A2.5 2.5 0 0 1 3 14.5v-1.25a.5.5 0 0 1 1 0v1.25zM8.5 7A1.5 1.5 0 0 0 7 8.5v3A1.5 1.5 0 0 0 8.5 13h3a1.5 1.5 0 0 0 1.5-1.5v-3A1.5 1.5 0 0 0 11.5 7h-3zM8 8.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-3z",fill:"currentColor"})))}}),gu=W("base-icon",`
- height: 1em;
- width: 1em;
- line-height: 1em;
- text-align: center;
- display: inline-block;
- position: relative;
- fill: currentColor;
- transform: translateZ(0);
- `,[k("svg",`
- height: 1em;
- width: 1em;
- `)]),me=ie({name:"BaseIcon",props:{role:String,ariaLabel:String,ariaDisabled:{type:Boolean,default:void 0},ariaHidden:{type:Boolean,default:void 0},clsPrefix:{type:String,required:!0},onClick:Function,onMousedown:Function,onMouseup:Function},setup(e){lu("-base-icon",gu,Se(e,"clsPrefix"))},render(){return d("i",{class:`${this.clsPrefix}-base-icon`,onClick:this.onClick,onMousedown:this.onMousedown,onMouseup:this.onMouseup,role:this.role,"aria-label":this.ariaLabel,"aria-hidden":this.ariaHidden,"aria-disabled":this.ariaDisabled},this.$slots)}}),pu=e=>{const{scrollbarColor:t,scrollbarColorHover:n}=e;return{color:t,colorHover:n}},mu={name:"Scrollbar",common:vt,self:pu},bu=mu,{cubicBezierEaseInOut:Kn}=Co;function jt({name:e="fade-in",enterDuration:t="0.2s",leaveDuration:n="0.2s",enterCubicBezier:r=Kn,leaveCubicBezier:o=Kn}={}){return[k(`&.${e}-transition-enter-active`,{transition:`all ${t} ${r}!important`}),k(`&.${e}-transition-leave-active`,{transition:`all ${n} ${o}!important`}),k(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0}),k(`&.${e}-transition-leave-from, &.${e}-transition-enter-to`,{opacity:1})]}const wu=W("scrollbar",`
- overflow: hidden;
- position: relative;
- z-index: auto;
- height: 100%;
- width: 100%;
- `,[k(">",[W("scrollbar-container",`
- width: 100%;
- overflow: scroll;
- height: 100%;
- max-height: inherit;
- scrollbar-width: none;
- `,[k("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",`
- width: 0;
- height: 0;
- display: none;
- `),k(">",[W("scrollbar-content",`
- box-sizing: border-box;
- min-width: 100%;
- `)])])]),k(">, +",[W("scrollbar-rail",`
- position: absolute;
- pointer-events: none;
- user-select: none;
- -webkit-user-select: none;
- `,[Ce("horizontal",`
- left: 2px;
- right: 2px;
- bottom: 4px;
- height: var(--n-scrollbar-height);
- `,[k(">",[xe("scrollbar",`
- height: var(--n-scrollbar-height);
- border-radius: var(--n-scrollbar-border-radius);
- right: 0;
- `)])]),Ce("vertical",`
- right: 4px;
- top: 2px;
- bottom: 2px;
- width: var(--n-scrollbar-width);
- `,[k(">",[xe("scrollbar",`
- width: var(--n-scrollbar-width);
- border-radius: var(--n-scrollbar-border-radius);
- bottom: 0;
- `)])]),Ce("disabled",[k(">",[xe("scrollbar",{pointerEvents:"none"})])]),k(">",[xe("scrollbar",`
- position: absolute;
- cursor: pointer;
- pointer-events: all;
- background-color: var(--n-scrollbar-color);
- transition: background-color .2s var(--n-scrollbar-bezier);
- `,[jt(),k("&:hover",{backgroundColor:"var(--n-scrollbar-color-hover)"})])])])])]),yu=Object.assign(Object.assign({},ge.props),{size:{type:Number,default:5},duration:{type:Number,default:0},scrollable:{type:Boolean,default:!0},xScrollable:Boolean,trigger:{type:String,default:"hover"},useUnifiedContainer:Boolean,triggerDisplayManually:Boolean,container:Function,content:Function,containerClass:String,containerStyle:[String,Object],contentClass:String,contentStyle:[String,Object],horizontalRailStyle:[String,Object],verticalRailStyle:[String,Object],onScroll:Function,onWheel:Function,onResize:Function,internalOnUpdateScrollLeft:Function,internalHoistYRail:Boolean}),xu=ie({name:"Scrollbar",props:yu,inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=Ze(e),o=uu("Scrollbar",r,t),i=E(null),a=E(null),s=E(null),u=E(null),l=E(null),f=E(null),v=E(null),y=E(null),S=E(null),O=E(null),T=E(null),b=E(0),m=E(0),$=E(!1),F=E(!1);let N=!1,X=!1,H,C,M=0,L=0,P=0,K=0;const Z=Xo(),A=I(()=>{const{value:c}=y,{value:p}=f,{value:R}=O;return c===null||p===null||R===null?0:Math.min(c,R*c/p+e.size*1.5)}),w=I(()=>`${A.value}px`),z=I(()=>{const{value:c}=S,{value:p}=v,{value:R}=T;return c===null||p===null||R===null?0:R*c/p+e.size*1.5}),q=I(()=>`${z.value}px`),ae=I(()=>{const{value:c}=y,{value:p}=b,{value:R}=f,{value:_}=O;if(c===null||R===null||_===null)return 0;{const j=R-c;return j?p/j*(_-A.value):0}}),se=I(()=>`${ae.value}px`),te=I(()=>{const{value:c}=S,{value:p}=m,{value:R}=v,{value:_}=T;if(c===null||R===null||_===null)return 0;{const j=R-c;return j?p/j*(_-z.value):0}}),_e=I(()=>`${te.value}px`),be=I(()=>{const{value:c}=y,{value:p}=f;return c!==null&&p!==null&&p>c}),qe=I(()=>{const{value:c}=S,{value:p}=v;return c!==null&&p!==null&&p>c}),bt=I(()=>{const{trigger:c}=e;return c==="none"||$.value}),ne=I(()=>{const{trigger:c}=e;return c==="none"||F.value}),le=I(()=>{const{container:c}=e;return c?c():a.value}),wt=I(()=>{const{content:c}=e;return c?c():s.value}),Ge=bi(()=>{e.container||ke({top:b.value,left:m.value})}),yt=()=>{Ge.isDeactivated||we()},Ke=c=>{if(Ge.isDeactivated)return;const{onResize:p}=e;p&&p(c),we()},ke=(c,p)=>{if(!e.scrollable)return;if(typeof c=="number"){h(p!=null?p:0,c,0,!1,"auto");return}const{left:R,top:_,index:j,elSize:Q,position:de,behavior:U,el:fe,debounce:Fe=!0}=c;(R!==void 0||_!==void 0)&&h(R!=null?R:0,_!=null?_:0,0,!1,U),fe!==void 0?h(0,fe.offsetTop,fe.offsetHeight,Fe,U):j!==void 0&&Q!==void 0?h(0,j*Q,Q,Fe,U):de==="bottom"?h(0,Number.MAX_SAFE_INTEGER,0,!1,U):de==="top"&&h(0,0,0,!1,U)},pe=(c,p)=>{if(!e.scrollable)return;const{value:R}=le;R&&(typeof c=="object"?R.scrollBy(c):R.scrollBy(c,p||0))};function h(c,p,R,_,j){const{value:Q}=le;if(Q){if(_){const{scrollTop:de,offsetHeight:U}=Q;if(p>de){p+R<=de+U||Q.scrollTo({left:c,top:p+R-U,behavior:j});return}}Q.scrollTo({left:c,top:p,behavior:j})}}function x(){J(),re(),we()}function g(){B()}function B(){D(),G()}function D(){C!==void 0&&window.clearTimeout(C),C=window.setTimeout(()=>{F.value=!1},e.duration)}function G(){H!==void 0&&window.clearTimeout(H),H=window.setTimeout(()=>{$.value=!1},e.duration)}function J(){H!==void 0&&window.clearTimeout(H),$.value=!0}function re(){C!==void 0&&window.clearTimeout(C),F.value=!0}function ue(c){const{onScroll:p}=e;p&&p(c),on()}function on(){const{value:c}=le;c&&(b.value=c.scrollTop,m.value=c.scrollLeft*(o!=null&&o.value?-1:1))}function qr(){const{value:c}=wt;c&&(f.value=c.offsetHeight,v.value=c.offsetWidth);const{value:p}=le;p&&(y.value=p.offsetHeight,S.value=p.offsetWidth);const{value:R}=l,{value:_}=u;R&&(T.value=R.offsetWidth),_&&(O.value=_.offsetHeight)}function an(){const{value:c}=le;c&&(b.value=c.scrollTop,m.value=c.scrollLeft*(o!=null&&o.value?-1:1),y.value=c.offsetHeight,S.value=c.offsetWidth,f.value=c.scrollHeight,v.value=c.scrollWidth);const{value:p}=l,{value:R}=u;p&&(T.value=p.offsetWidth),R&&(O.value=R.offsetHeight)}function we(){e.scrollable&&(e.useUnifiedContainer?an():(qr(),on()))}function sn(c){var p;return!(!((p=i.value)===null||p===void 0)&&p.contains(ct(c)))}function Gr(c){c.preventDefault(),c.stopPropagation(),X=!0,ee("mousemove",window,ln,!0),ee("mouseup",window,un,!0),L=m.value,P=o!=null&&o.value?window.innerWidth-c.clientX:c.clientX}function ln(c){if(!X)return;H!==void 0&&window.clearTimeout(H),C!==void 0&&window.clearTimeout(C);const{value:p}=S,{value:R}=v,{value:_}=z;if(p===null||R===null)return;const Q=(o!=null&&o.value?window.innerWidth-c.clientX-P:c.clientX-P)*(R-p)/(p-_),de=R-p;let U=L+Q;U=Math.min(de,U),U=Math.max(U,0);const{value:fe}=le;if(fe){fe.scrollLeft=U*(o!=null&&o.value?-1:1);const{internalOnUpdateScrollLeft:Fe}=e;Fe&&Fe(U)}}function un(c){c.preventDefault(),c.stopPropagation(),Y("mousemove",window,ln,!0),Y("mouseup",window,un,!0),X=!1,we(),sn(c)&&B()}function Kr(c){c.preventDefault(),c.stopPropagation(),N=!0,ee("mousemove",window,xt,!0),ee("mouseup",window,St,!0),M=b.value,K=c.clientY}function xt(c){if(!N)return;H!==void 0&&window.clearTimeout(H),C!==void 0&&window.clearTimeout(C);const{value:p}=y,{value:R}=f,{value:_}=A;if(p===null||R===null)return;const Q=(c.clientY-K)*(R-p)/(p-_),de=R-p;let U=M+Q;U=Math.min(de,U),U=Math.max(U,0);const{value:fe}=le;fe&&(fe.scrollTop=U)}function St(c){c.preventDefault(),c.stopPropagation(),Y("mousemove",window,xt,!0),Y("mouseup",window,St,!0),N=!1,we(),sn(c)&&B()}Me(()=>{const{value:c}=qe,{value:p}=be,{value:R}=t,{value:_}=l,{value:j}=u;_&&(c?_.classList.remove(`${R}-scrollbar-rail--disabled`):_.classList.add(`${R}-scrollbar-rail--disabled`)),j&&(p?j.classList.remove(`${R}-scrollbar-rail--disabled`):j.classList.add(`${R}-scrollbar-rail--disabled`))}),Ve(()=>{e.container||we()}),Ie(()=>{H!==void 0&&window.clearTimeout(H),C!==void 0&&window.clearTimeout(C),Y("mousemove",window,xt,!0),Y("mouseup",window,St,!0)});const Jr=ge("Scrollbar","-scrollbar",wu,bu,e,t),cn=I(()=>{const{common:{cubicBezierEaseInOut:c,scrollbarBorderRadius:p,scrollbarHeight:R,scrollbarWidth:_},self:{color:j,colorHover:Q}}=Jr.value;return{"--n-scrollbar-bezier":c,"--n-scrollbar-color":j,"--n-scrollbar-color-hover":Q,"--n-scrollbar-border-radius":p,"--n-scrollbar-width":_,"--n-scrollbar-height":R}}),Oe=n?Kt("scrollbar",void 0,cn,e):void 0;return Object.assign(Object.assign({},{scrollTo:ke,scrollBy:pe,sync:we,syncUnifiedContainer:an,handleMouseEnterWrapper:x,handleMouseLeaveWrapper:g}),{mergedClsPrefix:t,rtlEnabled:o,containerScrollTop:b,wrapperRef:i,containerRef:a,contentRef:s,yRailRef:u,xRailRef:l,needYBar:be,needXBar:qe,yBarSizePx:w,xBarSizePx:q,yBarTopPx:se,xBarLeftPx:_e,isShowXBar:bt,isShowYBar:ne,isIos:Z,handleScroll:ue,handleContentResize:yt,handleContainerResize:Ke,handleYScrollMouseDown:Kr,handleXScrollMouseDown:Gr,cssVars:n?void 0:cn,themeClass:Oe==null?void 0:Oe.themeClass,onRender:Oe==null?void 0:Oe.onRender})},render(){var e;const{$slots:t,mergedClsPrefix:n,triggerDisplayManually:r,rtlEnabled:o,internalHoistYRail:i}=this;if(!this.scrollable)return(e=t.default)===null||e===void 0?void 0:e.call(t);const a=this.trigger==="none",s=()=>d("div",{ref:"yRailRef",class:[`${n}-scrollbar-rail`,`${n}-scrollbar-rail--vertical`],"data-scrollbar-rail":!0,style:this.verticalRailStyle,"aria-hidden":!0},d(a?mn:ze,a?null:{name:"fade-in-transition"},{default:()=>this.needYBar&&this.isShowYBar&&!this.isIos?d("div",{class:`${n}-scrollbar-rail__scrollbar`,style:{height:this.yBarSizePx,top:this.yBarTopPx},onMousedown:this.handleYScrollMouseDown}):null})),u=()=>{var f,v;return(f=this.onRender)===null||f===void 0||f.call(this),d("div",Qn(this.$attrs,{role:"none",ref:"wrapperRef",class:[`${n}-scrollbar`,this.themeClass,o&&`${n}-scrollbar--rtl`],style:this.cssVars,onMouseenter:r?void 0:this.handleMouseEnterWrapper,onMouseleave:r?void 0:this.handleMouseLeaveWrapper}),[this.container?(v=t.default)===null||v===void 0?void 0:v.call(t):d("div",{role:"none",ref:"containerRef",class:[`${n}-scrollbar-container`,this.containerClass],style:this.containerStyle,onScroll:this.handleScroll,onWheel:this.onWheel},d(An,{onResize:this.handleContentResize},{default:()=>d("div",{ref:"contentRef",role:"none",style:[{width:this.xScrollable?"fit-content":null},this.contentStyle],class:[`${n}-scrollbar-content`,this.contentClass]},t)})),i?null:s(),this.xScrollable&&d("div",{ref:"xRailRef",class:[`${n}-scrollbar-rail`,`${n}-scrollbar-rail--horizontal`],style:this.horizontalRailStyle,"data-scrollbar-rail":!0,"aria-hidden":!0},d(a?mn:ze,a?null:{name:"fade-in-transition"},{default:()=>this.needXBar&&this.isShowXBar&&!this.isIos?d("div",{class:`${n}-scrollbar-rail__scrollbar`,style:{width:this.xBarSizePx,right:o?this.xBarLeftPx:void 0,left:o?void 0:this.xBarLeftPx},onMousedown:this.handleXScrollMouseDown}):null}))])},l=this.container?u():d(An,{onResize:this.handleContainerResize},{default:u});return i?d(Be,null,l,s()):l}}),Su=xu,Cu={space:"6px",spaceArrow:"10px",arrowOffset:"10px",arrowOffsetVertical:"10px",arrowHeight:"6px",padding:"8px 14px"},Ru=e=>{const{boxShadow2:t,popoverColor:n,textColor2:r,borderRadius:o,fontSize:i,dividerColor:a}=e;return Object.assign(Object.assign({},Cu),{fontSize:i,borderRadius:o,color:n,dividerColor:a,textColor:r,boxShadow:t})},Tu={name:"Popover",common:vt,self:Ru},Ur=Tu,$t={top:"bottom",bottom:"top",left:"right",right:"left"},V="var(--n-arrow-height) * 1.414",Mu=k([W("popover",`
- transition:
- box-shadow .3s var(--n-bezier),
- background-color .3s var(--n-bezier),
- color .3s var(--n-bezier);
- position: relative;
- font-size: var(--n-font-size);
- color: var(--n-text-color);
- box-shadow: var(--n-box-shadow);
- word-break: break-word;
- `,[k(">",[W("scrollbar",`
- height: inherit;
- max-height: inherit;
- `)]),it("raw",`
- background-color: var(--n-color);
- border-radius: var(--n-border-radius);
- `,[it("scrollable",[it("show-header-or-footer","padding: var(--n-padding);")])]),xe("header",`
- padding: var(--n-padding);
- border-bottom: 1px solid var(--n-divider-color);
- transition: border-color .3s var(--n-bezier);
- `),xe("footer",`
- padding: var(--n-padding);
- border-top: 1px solid var(--n-divider-color);
- transition: border-color .3s var(--n-bezier);
- `),Ce("scrollable, show-header-or-footer",[xe("content",`
- padding: var(--n-padding);
- `)])]),W("popover-shared",`
- transform-origin: inherit;
- `,[W("popover-arrow-wrapper",`
- position: absolute;
- overflow: hidden;
- pointer-events: none;
- `,[W("popover-arrow",`
- transition: background-color .3s var(--n-bezier);
- position: absolute;
- display: block;
- width: calc(${V});
- height: calc(${V});
- box-shadow: 0 0 8px 0 rgba(0, 0, 0, .12);
- transform: rotate(45deg);
- background-color: var(--n-color);
- pointer-events: all;
- `)]),k("&.popover-transition-enter-from, &.popover-transition-leave-to",`
- opacity: 0;
- transform: scale(.85);
- `),k("&.popover-transition-enter-to, &.popover-transition-leave-from",`
- transform: scale(1);
- opacity: 1;
- `),k("&.popover-transition-enter-active",`
- transition:
- box-shadow .3s var(--n-bezier),
- background-color .3s var(--n-bezier),
- color .3s var(--n-bezier),
- opacity .15s var(--n-bezier-ease-out),
- transform .15s var(--n-bezier-ease-out);
- `),k("&.popover-transition-leave-active",`
- transition:
- box-shadow .3s var(--n-bezier),
- background-color .3s var(--n-bezier),
- color .3s var(--n-bezier),
- opacity .15s var(--n-bezier-ease-in),
- transform .15s var(--n-bezier-ease-in);
- `)]),oe("top-start",`
- top: calc(${V} / -2);
- left: calc(${he("top-start")} - var(--v-offset-left));
- `),oe("top",`
- top: calc(${V} / -2);
- transform: translateX(calc(${V} / -2)) rotate(45deg);
- left: 50%;
- `),oe("top-end",`
- top: calc(${V} / -2);
- right: calc(${he("top-end")} + var(--v-offset-left));
- `),oe("bottom-start",`
- bottom: calc(${V} / -2);
- left: calc(${he("bottom-start")} - var(--v-offset-left));
- `),oe("bottom",`
- bottom: calc(${V} / -2);
- transform: translateX(calc(${V} / -2)) rotate(45deg);
- left: 50%;
- `),oe("bottom-end",`
- bottom: calc(${V} / -2);
- right: calc(${he("bottom-end")} + var(--v-offset-left));
- `),oe("left-start",`
- left: calc(${V} / -2);
- top: calc(${he("left-start")} - var(--v-offset-top));
- `),oe("left",`
- left: calc(${V} / -2);
- transform: translateY(calc(${V} / -2)) rotate(45deg);
- top: 50%;
- `),oe("left-end",`
- left: calc(${V} / -2);
- bottom: calc(${he("left-end")} + var(--v-offset-top));
- `),oe("right-start",`
- right: calc(${V} / -2);
- top: calc(${he("right-start")} - var(--v-offset-top));
- `),oe("right",`
- right: calc(${V} / -2);
- transform: translateY(calc(${V} / -2)) rotate(45deg);
- top: 50%;
- `),oe("right-end",`
- right: calc(${V} / -2);
- bottom: calc(${he("right-end")} + var(--v-offset-top));
- `),...gl({top:["right-start","left-start"],right:["top-end","bottom-end"],bottom:["right-end","left-end"],left:["top-start","bottom-start"]},(e,t)=>{const n=["right","left"].includes(t),r=n?"width":"height";return e.map(o=>{const i=o.split("-")[1]==="end",s=`calc((${`var(--v-target-${r}, 0px)`} - ${V}) / 2)`,u=he(o);return k(`[v-placement="${o}"] >`,[W("popover-shared",[Ce("center-arrow",[W("popover-arrow",`${t}: calc(max(${s}, ${u}) ${i?"+":"-"} var(--v-offset-${n?"left":"top"}));`)])])])})})]);function he(e){return["top","bottom"].includes(e.split("-")[0])?"var(--n-arrow-offset)":"var(--n-arrow-offset-vertical)"}function oe(e,t){const n=e.split("-")[0],r=["top","bottom"].includes(n)?"height: var(--n-space-arrow);":"width: var(--n-space-arrow);";return k(`[v-placement="${e}"] >`,[W("popover-shared",`
- margin-${$t[n]}: var(--n-space);
- `,[Ce("show-arrow",`
- margin-${$t[n]}: var(--n-space-arrow);
- `),Ce("overlap",`
- margin: 0;
- `),Ro("popover-arrow-wrapper",`
- right: 0;
- left: 0;
- top: 0;
- bottom: 0;
- ${n}: 100%;
- ${$t[n]}: auto;
- ${r}
- `,[W("popover-arrow",t)])])])}const Xr=Object.assign(Object.assign({},ge.props),{to:ut.propTo,show:Boolean,trigger:String,showArrow:Boolean,delay:Number,duration:Number,raw:Boolean,arrowPointToCenter:Boolean,arrowStyle:[String,Object],displayDirective:String,x:Number,y:Number,flip:Boolean,overlap:Boolean,placement:String,width:[Number,String],keepAliveOnHover:Boolean,scrollable:Boolean,contentStyle:[Object,String],headerStyle:[Object,String],footerStyle:[Object,String],internalDeactivateImmediately:Boolean,animated:Boolean,onClickoutside:Function,internalTrapFocus:Boolean,internalOnAfterLeave:Function,minWidth:Number,maxWidth:Number}),Ou=({arrowStyle:e,clsPrefix:t})=>d("div",{key:"__popover-arrow__",class:`${t}-popover-arrow-wrapper`},d("div",{class:`${t}-popover-arrow`,style:e})),Pu=ie({name:"PopoverBody",inheritAttrs:!1,props:Xr,setup(e,{slots:t,attrs:n}){const{namespaceRef:r,mergedClsPrefixRef:o,inlineThemeDisabled:i}=Ze(e),a=ge("Popover","-popover",Mu,Ur,e,o),s=E(null),u=Le("NPopover"),l=E(null),f=E(e.show),v=E(!1);Me(()=>{const{show:C}=e;C&&!Ho()&&!e.internalDeactivateImmediately&&(v.value=!0)});const y=I(()=>{const{trigger:C,onClickoutside:M}=e,L=[],{positionManuallyRef:{value:P}}=u;return P||(C==="click"&&!M&&L.push([wn,N,void 0,{capture:!0}]),C==="hover"&&L.push([Vo,F])),M&&L.push([wn,N,void 0,{capture:!0}]),(e.displayDirective==="show"||e.animated&&v.value)&&L.push([er,e.show]),L}),S=I(()=>{const C=e.width==="trigger"?void 0:Rt(e.width),M=[];C&&M.push({width:C});const{maxWidth:L,minWidth:P}=e;return L&&M.push({maxWidth:Rt(L)}),P&&M.push({maxWidth:Rt(P)}),i||M.push(O.value),M}),O=I(()=>{const{common:{cubicBezierEaseInOut:C,cubicBezierEaseIn:M,cubicBezierEaseOut:L},self:{space:P,spaceArrow:K,padding:Z,fontSize:A,textColor:w,dividerColor:z,color:q,boxShadow:ae,borderRadius:se,arrowHeight:te,arrowOffset:_e,arrowOffsetVertical:be}}=a.value;return{"--n-box-shadow":ae,"--n-bezier":C,"--n-bezier-ease-in":M,"--n-bezier-ease-out":L,"--n-font-size":A,"--n-text-color":w,"--n-color":q,"--n-divider-color":z,"--n-border-radius":se,"--n-arrow-height":te,"--n-arrow-offset":_e,"--n-arrow-offset-vertical":be,"--n-padding":Z,"--n-space":P,"--n-space-arrow":K}}),T=i?Kt("popover",void 0,O,e):void 0;u.setBodyInstance({syncPosition:b}),Ie(()=>{u.setBodyInstance(null)}),Vt(Se(e,"show"),C=>{e.animated||(C?f.value=!0:f.value=!1)});function b(){var C;(C=s.value)===null||C===void 0||C.syncPosition()}function m(C){e.trigger==="hover"&&e.keepAliveOnHover&&e.show&&u.handleMouseEnter(C)}function $(C){e.trigger==="hover"&&e.keepAliveOnHover&&u.handleMouseLeave(C)}function F(C){e.trigger==="hover"&&!X().contains(ct(C))&&u.handleMouseMoveOutside(C)}function N(C){(e.trigger==="click"&&!X().contains(ct(C))||e.onClickoutside)&&u.handleClickOutside(C)}function X(){return u.getTriggerElement()}Xe(To,l),Xe(Mo,null),Xe(Oo,null);function H(){if(T==null||T.onRender(),!(e.displayDirective==="show"||e.show||e.animated&&v.value))return null;let M;const L=u.internalRenderBodyRef.value,{value:P}=o;if(L)M=L([`${P}-popover-shared`,T==null?void 0:T.themeClass.value,e.overlap&&`${P}-popover-shared--overlap`,e.showArrow&&`${P}-popover-shared--show-arrow`,e.arrowPointToCenter&&`${P}-popover-shared--center-arrow`],l,S.value,m,$);else{const{value:K}=u.extraClassRef,{internalTrapFocus:Z}=e,A=!vn(t.header)||!vn(t.footer),w=()=>{var z;const q=A?d(Be,null,Ct(t.header,te=>te?d("div",{class:`${P}-popover__header`,style:e.headerStyle},te):null),Ct(t.default,te=>te?d("div",{class:`${P}-popover__content`,style:e.contentStyle},t):null),Ct(t.footer,te=>te?d("div",{class:`${P}-popover__footer`,style:e.footerStyle},te):null)):e.scrollable?(z=t.default)===null||z===void 0?void 0:z.call(t):d("div",{class:`${P}-popover__content`,style:e.contentStyle},t),ae=e.scrollable?d(Su,{contentClass:A?void 0:`${P}-popover__content`,contentStyle:A?void 0:e.contentStyle},{default:()=>q}):q,se=e.showArrow?Ou({arrowStyle:e.arrowStyle,clsPrefix:P}):null;return[ae,se]};M=d("div",Qn({class:[`${P}-popover`,`${P}-popover-shared`,T==null?void 0:T.themeClass.value,K.map(z=>`${P}-${z}`),{[`${P}-popover--scrollable`]:e.scrollable,[`${P}-popover--show-header-or-footer`]:A,[`${P}-popover--raw`]:e.raw,[`${P}-popover-shared--overlap`]:e.overlap,[`${P}-popover-shared--show-arrow`]:e.showArrow,[`${P}-popover-shared--center-arrow`]:e.arrowPointToCenter}],ref:l,style:S.value,onKeydown:u.handleKeydown,onMouseenter:m,onMouseleave:$},n),Z?d(mi,{active:e.show,autoFocus:!0},{default:w}):w())}return st(M,y.value)}return{displayed:v,namespace:r,isMounted:u.isMountedRef,zIndex:u.zIndexRef,followerRef:s,adjustedTo:ut(e),followerEnabled:f,renderContentNode:H}},render(){return d(Po,{ref:"followerRef",zIndex:this.zIndex,show:this.show,enabled:this.followerEnabled,to:this.adjustedTo,x:this.x,y:this.y,flip:this.flip,placement:this.placement,containerClass:this.namespace,overlap:this.overlap,width:this.width==="trigger"?"target":void 0,teleportDisabled:this.adjustedTo===ut.tdkey},{default:()=>this.animated?d(ze,{name:"popover-transition",appear:this.isMounted,onEnter:()=>{this.followerEnabled=!0},onAfterLeave:()=>{var e;(e=this.internalOnAfterLeave)===null||e===void 0||e.call(this),this.followerEnabled=!1,this.displayed=!1}},{default:this.renderContentNode}):this.renderContentNode()})}}),Eu=Object.keys(Xr),$u={focus:["onFocus","onBlur"],click:["onClick"],hover:["onMouseenter","onMouseleave"],manual:[],nested:["onFocus","onBlur","onMouseenter","onMouseleave","onClick"]};function zu(e,t,n){$u[t].forEach(r=>{e.props?e.props=Object.assign({},e.props):e.props={};const o=e.props[r],i=n[r];o?e.props[r]=(...a)=>{o(...a),i(...a)}:e.props[r]=i})}const jr={show:{type:Boolean,default:void 0},defaultShow:Boolean,showArrow:{type:Boolean,default:!0},trigger:{type:String,default:"hover"},delay:{type:Number,default:100},duration:{type:Number,default:100},raw:Boolean,placement:{type:String,default:"top"},x:Number,y:Number,arrowPointToCenter:Boolean,disabled:Boolean,getDisabled:Function,displayDirective:{type:String,default:"if"},arrowStyle:[String,Object],flip:{type:Boolean,default:!0},animated:{type:Boolean,default:!0},width:{type:[Number,String],default:void 0},overlap:Boolean,keepAliveOnHover:{type:Boolean,default:!0},zIndex:Number,to:ut.propTo,scrollable:Boolean,contentStyle:[Object,String],headerStyle:[Object,String],footerStyle:[Object,String],onClickoutside:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],internalDeactivateImmediately:Boolean,internalSyncTargetWithParent:Boolean,internalInheritedEventHandlers:{type:Array,default:()=>[]},internalTrapFocus:Boolean,internalExtraClass:{type:Array,default:()=>[]},onShow:[Function,Array],onHide:[Function,Array],arrow:{type:Boolean,default:void 0},minWidth:Number,maxWidth:Number},Au=Object.assign(Object.assign(Object.assign({},ge.props),jr),{internalOnAfterLeave:Function,internalRenderBody:Function}),Bu=ie({name:"Popover",inheritAttrs:!1,props:Au,__popover__:!0,setup(e){Me(()=>{e.maxWidth!==void 0&&He("popover","`max-width` is deprecated, please use `style` instead."),e.minWidth!==void 0&&He("popover","`min-width` is deprecated, please use `style` instead."),e.arrow!==void 0&&He("popover","`arrow` is deprecated, please use `showArrow` instead."),e.onHide!==void 0&&He("popover","`on-hide` is deprecated, please use `on-update:show` instead."),e.onShow!==void 0&&He("popover","`on-show` is deprecated, please use `on-update:show` instead.")});const t=nr(),n=E(null),r=I(()=>e.show),o=E(e.defaultShow),i=Eo(r,o),a=gn(()=>e.disabled?!1:i.value),s=()=>{if(e.disabled)return!0;const{getDisabled:w}=e;return!!(w!=null&&w())},u=()=>s()?!1:i.value,l=No(e,["arrow","showArrow"]),f=I(()=>e.overlap?!1:l.value);let v=null;const y=E(null),S=E(null),O=gn(()=>e.x!==void 0&&e.y!==void 0);function T(w){const{"onUpdate:show":z,onUpdateShow:q,onShow:ae,onHide:se}=e;o.value=w,z&&Je(z,w),q&&Je(q,w),w&&ae&&Je(ae,!0),w&&se&&Je(se,!1)}function b(){v&&v.syncPosition()}function m(){const{value:w}=y;w&&(window.clearTimeout(w),y.value=null)}function $(){const{value:w}=S;w&&(window.clearTimeout(w),S.value=null)}function F(){const w=s();if(e.trigger==="focus"&&!w){if(u())return;T(!0)}}function N(){const w=s();if(e.trigger==="focus"&&!w){if(!u())return;T(!1)}}function X(){const w=s();if(e.trigger==="hover"&&!w){if($(),y.value!==null||u())return;const z=()=>{T(!0),y.value=null},{delay:q}=e;q===0?z():y.value=window.setTimeout(z,q)}}function H(){const w=s();if(e.trigger==="hover"&&!w){if(m(),S.value!==null||!u())return;const z=()=>{T(!1),S.value=null},{duration:q}=e;q===0?z():S.value=window.setTimeout(z,q)}}function C(){H()}function M(w){var z;u()&&(e.trigger==="click"&&(m(),$(),T(!1)),(z=e.onClickoutside)===null||z===void 0||z.call(e,w))}function L(){if(e.trigger==="click"&&!s()){m(),$();const w=!u();T(w)}}function P(w){e.internalTrapFocus&&w.key==="Escape"&&(m(),$(),T(!1))}function K(w){o.value=w}function Z(){var w;return(w=n.value)===null||w===void 0?void 0:w.targetRef}function A(w){v=w}return Xe("NPopover",{getTriggerElement:Z,handleKeydown:P,handleMouseEnter:X,handleMouseLeave:H,handleClickOutside:M,handleMouseMoveOutside:C,setBodyInstance:A,positionManuallyRef:O,isMountedRef:t,zIndexRef:Se(e,"zIndex"),extraClassRef:Se(e,"internalExtraClass"),internalRenderBodyRef:Se(e,"internalRenderBody")}),Me(()=>{i.value&&s()&&T(!1)}),{binderInstRef:n,positionManually:O,mergedShowConsideringDisabledProp:a,uncontrolledShow:o,mergedShowArrow:f,getMergedShow:u,setShow:K,handleClick:L,handleMouseEnter:X,handleMouseLeave:H,handleFocus:F,handleBlur:N,syncPosition:b}},render(){var e;const{positionManually:t,$slots:n}=this;let r,o=!1;if(!t&&(n.activator?r=pn(n,"activator"):r=pn(n,"trigger"),r)){r=io(r),r=r.type===ao?d("span",[r]):r;const i={onClick:this.handleClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur};if(!((e=r.type)===null||e===void 0)&&e.__popover__)o=!0,r.props||(r.props={internalSyncTargetWithParent:!0,internalInheritedEventHandlers:[]}),r.props.internalSyncTargetWithParent=!0,r.props.internalInheritedEventHandlers?r.props.internalInheritedEventHandlers=[i,...r.props.internalInheritedEventHandlers]:r.props.internalInheritedEventHandlers=[i];else{const{internalInheritedEventHandlers:a}=this,s=[i,...a],u={onBlur:l=>{s.forEach(f=>{f.onBlur(l)})},onFocus:l=>{s.forEach(f=>{f.onFocus(l)})},onClick:l=>{s.forEach(f=>{f.onClick(l)})},onMouseenter:l=>{s.forEach(f=>{f.onMouseenter(l)})},onMouseleave:l=>{s.forEach(f=>{f.onMouseleave(l)})}};zu(r,a?"nested":t?"manual":this.trigger,u)}}return d(zo,{ref:"binderInstRef",syncTarget:!o,syncTargetWithParent:this.internalSyncTargetWithParent},{default:()=>{this.mergedShowConsideringDisabledProp;const i=this.getMergedShow();return[this.internalTrapFocus&&i?st(d("div",{style:{position:"fixed",inset:0}}),[[rr,{enabled:i,zIndex:this.zIndex}]]):null,t?null:d($o,null,{default:()=>r}),d(Pu,_o(this.$props,Eu,Object.assign(Object.assign({},this.$attrs),{showArrow:this.mergedShowArrow,show:i})),{default:()=>{var a,s;return(s=(a=this.$slots).default)===null||s===void 0?void 0:s.call(a)},header:()=>{var a,s;return(s=(a=this.$slots).header)===null||s===void 0?void 0:s.call(a)},footer:()=>{var a,s;return(s=(a=this.$slots).footer)===null||s===void 0?void 0:s.call(a)}})]}})}}),Iu=Wo&&"loading"in document.createElement("img"),Lu=(e={})=>{var t;const{root:n=null}=e;return{hash:`${e.rootMargin||"0px 0px 0px 0px"}-${Array.isArray(e.threshold)?e.threshold.join(","):(t=e.threshold)!==null&&t!==void 0?t:"0"}`,options:Object.assign(Object.assign({},e),{root:(typeof n=="string"?document.querySelector(n):n)||document.documentElement})}},zt=new WeakMap,At=new WeakMap,Bt=new WeakMap,Du=(e,t,n)=>{if(!e)return()=>{};const r=Lu(t),{root:o}=r.options;let i;const a=zt.get(o);a?i=a:(i=new Map,zt.set(o,i));let s,u;i.has(r.hash)?(u=i.get(r.hash),u[1].has(e)||(s=u[0],u[1].add(e),s.observe(e))):(s=new IntersectionObserver(v=>{v.forEach(y=>{if(y.isIntersecting){const S=At.get(y.target),O=Bt.get(y.target);S&&S(),O&&(O.value=!0)}})},r.options),s.observe(e),u=[s,new Set([e])],i.set(r.hash,u));let l=!1;const f=()=>{l||(At.delete(e),Bt.delete(e),l=!0,u[1].has(e)&&(u[0].unobserve(e),u[1].delete(e)),u[1].size<=0&&i.delete(r.hash),i.size||zt.delete(o))};return At.set(e,f),Bt.set(e,n),f},_u={padding:"8px 14px"},ku=e=>{const{borderRadius:t,boxShadow2:n,baseColor:r}=e;return Object.assign(Object.assign({},_u),{borderRadius:t,boxShadow:n,color:Ao(r,"rgba(0, 0, 0, .85)"),textColor:r})},Fu=or({name:"Tooltip",common:vt,peers:{Popover:Ur},self:ku}),Vr=Fu,Hu=Object.assign(Object.assign({},jr),ge.props),Wu=ie({name:"Tooltip",props:Hu,__popover__:!0,setup(e){const{mergedClsPrefixRef:t}=Ze(e),n=ge("Tooltip","-tooltip",void 0,Vr,e,t),r=E(null);return Object.assign(Object.assign({},{syncPosition(){r.value.syncPosition()},setShow(i){r.value.setShow(i)}}),{popoverRef:r,mergedTheme:n,popoverThemeOverrides:I(()=>n.value.self)})},render(){const{mergedTheme:e,internalExtraClass:t}=this;return d(Bu,Object.assign(Object.assign({},this.$props),{theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:this.popoverThemeOverrides,internalExtraClass:t.concat("tooltip"),ref:"popoverRef"}),this.$slots)}}),Yr=Object.assign(Object.assign({},ge.props),{showToolbar:{type:Boolean,default:!0},showToolbarTooltip:Boolean}),Zr=ir("n-image");function Nu(){return{toolbarIconColor:"rgba(255, 255, 255, .9)",toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}const Uu=or({name:"Image",common:vt,peers:{Tooltip:Vr},self:Nu}),Xu=d("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},d("path",{d:"M6 5C5.75454 5 5.55039 5.17688 5.50806 5.41012L5.5 5.5V14.5C5.5 14.7761 5.72386 15 6 15C6.24546 15 6.44961 14.8231 6.49194 14.5899L6.5 14.5V5.5C6.5 5.22386 6.27614 5 6 5ZM13.8536 5.14645C13.68 4.97288 13.4106 4.9536 13.2157 5.08859L13.1464 5.14645L8.64645 9.64645C8.47288 9.82001 8.4536 10.0894 8.58859 10.2843L8.64645 10.3536L13.1464 14.8536C13.3417 15.0488 13.6583 15.0488 13.8536 14.8536C14.0271 14.68 14.0464 14.4106 13.9114 14.2157L13.8536 14.1464L9.70711 10L13.8536 5.85355C14.0488 5.65829 14.0488 5.34171 13.8536 5.14645Z",fill:"currentColor"})),ju=d("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},d("path",{d:"M13.5 5C13.7455 5 13.9496 5.17688 13.9919 5.41012L14 5.5V14.5C14 14.7761 13.7761 15 13.5 15C13.2545 15 13.0504 14.8231 13.0081 14.5899L13 14.5V5.5C13 5.22386 13.2239 5 13.5 5ZM5.64645 5.14645C5.82001 4.97288 6.08944 4.9536 6.28431 5.08859L6.35355 5.14645L10.8536 9.64645C11.0271 9.82001 11.0464 10.0894 10.9114 10.2843L10.8536 10.3536L6.35355 14.8536C6.15829 15.0488 5.84171 15.0488 5.64645 14.8536C5.47288 14.68 5.4536 14.4106 5.58859 14.2157L5.64645 14.1464L9.79289 10L5.64645 5.85355C5.45118 5.65829 5.45118 5.34171 5.64645 5.14645Z",fill:"currentColor"})),Vu=d("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},d("path",{d:"M4.089 4.216l.057-.07a.5.5 0 0 1 .638-.057l.07.057L10 9.293l5.146-5.147a.5.5 0 0 1 .638-.057l.07.057a.5.5 0 0 1 .057.638l-.057.07L10.707 10l5.147 5.146a.5.5 0 0 1 .057.638l-.057.07a.5.5 0 0 1-.638.057l-.07-.057L10 10.707l-5.146 5.147a.5.5 0 0 1-.638.057l-.07-.057a.5.5 0 0 1-.057-.638l.057-.07L9.293 10L4.146 4.854a.5.5 0 0 1-.057-.638l.057-.07l-.057.07z",fill:"currentColor"})),Yu=k([k("body >",[W("image-container","position: fixed;")]),W("image-preview-container",`
- position: fixed;
- left: 0;
- right: 0;
- top: 0;
- bottom: 0;
- display: flex;
- `),W("image-preview-overlay",`
- z-index: -1;
- position: absolute;
- left: 0;
- right: 0;
- top: 0;
- bottom: 0;
- background: rgba(0, 0, 0, .3);
- `,[jt()]),W("image-preview-toolbar",`
- z-index: 1;
- position: absolute;
- left: 50%;
- transform: translateX(-50%);
- border-radius: var(--n-toolbar-border-radius);
- height: 48px;
- bottom: 40px;
- padding: 0 12px;
- background: var(--n-toolbar-color);
- box-shadow: var(--n-toolbar-box-shadow);
- color: var(--n-toolbar-icon-color);
- transition: color .3s var(--n-bezier);
- display: flex;
- align-items: center;
- `,[W("base-icon",`
- padding: 0 8px;
- font-size: 28px;
- cursor: pointer;
- `),jt()]),W("image-preview-wrapper",`
- position: absolute;
- left: 0;
- right: 0;
- top: 0;
- bottom: 0;
- display: flex;
- pointer-events: none;
- `,[Bo()]),W("image-preview",`
- user-select: none;
- -webkit-user-select: none;
- pointer-events: all;
- margin: auto;
- max-height: calc(100vh - 32px);
- max-width: calc(100vw - 32px);
- transition: transform .3s var(--n-bezier);
- `),W("image",`
- display: inline-flex;
- max-height: 100%;
- max-width: 100%;
- `,[it("preview-disabled",`
- cursor: pointer;
- `),k("img",`
- border-radius: inherit;
- `)])]),rt=32,Zu=ie({name:"ImagePreview",props:Object.assign(Object.assign({},Yr),{onNext:Function,onPrev:Function,clsPrefix:{type:String,required:!0}}),setup(e){const t=ge("Image","-image",Yu,Uu,e,Se(e,"clsPrefix"));let n=null;const r=E(null),o=E(null),i=E(void 0),a=E(!1),s=E(!1),{localeRef:u}=su("Image");function l(){const{value:h}=o;if(!n||!h)return;const{style:x}=h,g=n.getBoundingClientRect(),B=g.left+g.width/2,D=g.top+g.height/2;x.transformOrigin=`${B}px ${D}px`}function f(h){var x,g;switch(h.key){case" ":h.preventDefault();break;case"ArrowLeft":(x=e.onPrev)===null||x===void 0||x.call(e);break;case"ArrowRight":(g=e.onNext)===null||g===void 0||g.call(e);break;case"Escape":le();break}}Vt(a,h=>{h?ee("keydown",document,f):Y("keydown",document,f)}),Ie(()=>{Y("keydown",document,f)});let v=0,y=0,S=0,O=0,T=0,b=0,m=0,$=0,F=!1;function N(h){const{clientX:x,clientY:g}=h;S=x-v,O=g-y,Lo(ne)}function X(h){const{mouseUpClientX:x,mouseUpClientY:g,mouseDownClientX:B,mouseDownClientY:D}=h,G=B-x,J=D-g,re=`vertical${J>0?"Top":"Bottom"}`,ue=`horizontal${G>0?"Left":"Right"}`;return{moveVerticalDirection:re,moveHorizontalDirection:ue,deltaHorizontal:G,deltaVertical:J}}function H(h){const{value:x}=r;if(!x)return{offsetX:0,offsetY:0};const g=x.getBoundingClientRect(),{moveVerticalDirection:B,moveHorizontalDirection:D,deltaHorizontal:G,deltaVertical:J}=h||{};let re=0,ue=0;return g.width<=window.innerWidth?re=0:g.left>0?re=(g.width-window.innerWidth)/2:g.right<window.innerWidth?re=-(g.width-window.innerWidth)/2:D==="horizontalRight"?re=Math.min((g.width-window.innerWidth)/2,T-(G!=null?G:0)):re=Math.max(-((g.width-window.innerWidth)/2),T-(G!=null?G:0)),g.height<=window.innerHeight?ue=0:g.top>0?ue=(g.height-window.innerHeight)/2:g.bottom<window.innerHeight?ue=-(g.height-window.innerHeight)/2:B==="verticalBottom"?ue=Math.min((g.height-window.innerHeight)/2,b-(J!=null?J:0)):ue=Math.max(-((g.height-window.innerHeight)/2),b-(J!=null?J:0)),{offsetX:re,offsetY:ue}}function C(h){Y("mousemove",document,N),Y("mouseup",document,C);const{clientX:x,clientY:g}=h;F=!1;const B=X({mouseUpClientX:x,mouseUpClientY:g,mouseDownClientX:m,mouseDownClientY:$}),D=H(B);S=D.offsetX,O=D.offsetY,ne()}const M=Le(Zr,null);function L(h){var x,g;if((g=(x=M==null?void 0:M.previewedImgPropsRef.value)===null||x===void 0?void 0:x.onMousedown)===null||g===void 0||g.call(x,h),h.button!==0)return;const{clientX:B,clientY:D}=h;F=!0,v=B-S,y=D-O,T=S,b=O,m=B,$=D,ne(),ee("mousemove",document,N),ee("mouseup",document,C)}function P(h){var x,g;(g=(x=M==null?void 0:M.previewedImgPropsRef.value)===null||x===void 0?void 0:x.onDblclick)===null||g===void 0||g.call(x,h);const B=be();A=A===B?1:B,ne()}const K=1.5;let Z=0,A=1,w=0;function z(){A=1,Z=0}function q(){var h;z(),w=0,(h=e.onPrev)===null||h===void 0||h.call(e)}function ae(){var h;z(),w=0,(h=e.onNext)===null||h===void 0||h.call(e)}function se(){w-=90,ne()}function te(){w+=90,ne()}function _e(){const{value:h}=r;if(!h)return 1;const{innerWidth:x,innerHeight:g}=window,B=Math.max(1,h.naturalHeight/(g-rt)),D=Math.max(1,h.naturalWidth/(x-rt));return Math.max(3,B*2,D*2)}function be(){const{value:h}=r;if(!h)return 1;const{innerWidth:x,innerHeight:g}=window,B=h.naturalHeight/(g-rt),D=h.naturalWidth/(x-rt);return B<1&&D<1?1:Math.max(B,D)}function qe(){const h=_e();A<h&&(Z+=1,A=Math.min(h,Math.pow(K,Z)),ne())}function bt(){if(A>.5){const h=A;Z-=1,A=Math.max(.5,Math.pow(K,Z));const x=h-A;ne(!1);const g=H();A+=x,ne(!1),A-=x,S=g.offsetX,O=g.offsetY,ne()}}function ne(h=!0){var x;const{value:g}=r;if(!g)return;const{style:B}=g,D=so((x=M==null?void 0:M.previewedImgPropsRef.value)===null||x===void 0?void 0:x.style);let G="";if(typeof D=="string")G=D+";";else for(const re in D)G+=`${ml(re)}: ${D[re]};`;const J=`transform-origin: center; transform: translateX(${S}px) translateY(${O}px) rotate(${w}deg) scale(${A});`;F?B.cssText=G+"cursor: grabbing; transition: none;"+J:B.cssText=G+"cursor: grab;"+J+(h?"":"transition: none;"),h||g.offsetHeight}function le(){a.value=!a.value,s.value=!0}function wt(){A=be(),Z=Math.ceil(Math.log(A)/Math.log(K)),S=0,O=0,ne()}const Ge={setPreviewSrc:h=>{i.value=h},setThumbnailEl:h=>{n=h},toggleShow:le};function yt(h,x){if(e.showToolbarTooltip){const{value:g}=t;return d(Wu,{to:!1,theme:g.peers.Tooltip,themeOverrides:g.peerOverrides.Tooltip,keepAliveOnHover:!1},{default:()=>u.value[x],trigger:()=>h})}else return h}const Ke=I(()=>{const{common:{cubicBezierEaseInOut:h},self:{toolbarIconColor:x,toolbarBorderRadius:g,toolbarBoxShadow:B,toolbarColor:D}}=t.value;return{"--n-bezier":h,"--n-toolbar-icon-color":x,"--n-toolbar-color":D,"--n-toolbar-border-radius":g,"--n-toolbar-box-shadow":B}}),{inlineThemeDisabled:ke}=Ze(),pe=ke?Kt("image-preview",void 0,Ke,e):void 0;return Object.assign({previewRef:r,previewWrapperRef:o,previewSrc:i,show:a,appear:nr(),displayed:s,previewedImgProps:M==null?void 0:M.previewedImgPropsRef,handleWheel(h){h.preventDefault()},handlePreviewMousedown:L,handlePreviewDblclick:P,syncTransformOrigin:l,handleAfterLeave:()=>{z(),w=0,s.value=!1},handleDragStart:h=>{var x,g;(g=(x=M==null?void 0:M.previewedImgPropsRef.value)===null||x===void 0?void 0:x.onDragstart)===null||g===void 0||g.call(x,h),h.preventDefault()},zoomIn:qe,zoomOut:bt,rotateCounterclockwise:se,rotateClockwise:te,handleSwitchPrev:q,handleSwitchNext:ae,withTooltip:yt,resizeToOrignalImageSize:wt,cssVars:ke?void 0:Ke,themeClass:pe==null?void 0:pe.themeClass,onRender:pe==null?void 0:pe.onRender},Ge)},render(){var e,t;const{clsPrefix:n}=this;return d(Be,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),d(Io,{show:this.show},{default:()=>{var r;return this.show||this.displayed?((r=this.onRender)===null||r===void 0||r.call(this),st(d("div",{class:[`${n}-image-preview-container`,this.themeClass],style:this.cssVars,onWheel:this.handleWheel},d(ze,{name:"fade-in-transition",appear:this.appear},{default:()=>this.show?d("div",{class:`${n}-image-preview-overlay`,onClick:this.toggleShow}):null}),this.showToolbar?d(ze,{name:"fade-in-transition",appear:this.appear},{default:()=>{if(!this.show)return null;const{withTooltip:o}=this;return d("div",{class:`${n}-image-preview-toolbar`},this.onPrev?d(Be,null,o(d(me,{clsPrefix:n,onClick:this.handleSwitchPrev},{default:()=>Xu}),"tipPrevious"),o(d(me,{clsPrefix:n,onClick:this.handleSwitchNext},{default:()=>ju}),"tipNext")):null,o(d(me,{clsPrefix:n,onClick:this.rotateCounterclockwise},{default:()=>d(du,null)}),"tipCounterclockwise"),o(d(me,{clsPrefix:n,onClick:this.rotateClockwise},{default:()=>d(cu,null)}),"tipClockwise"),o(d(me,{clsPrefix:n,onClick:this.resizeToOrignalImageSize},{default:()=>d(vu,null)}),"tipOriginalSize"),o(d(me,{clsPrefix:n,onClick:this.zoomOut},{default:()=>d(hu,null)}),"tipZoomOut"),o(d(me,{clsPrefix:n,onClick:this.zoomIn},{default:()=>d(fu,null)}),"tipZoomIn"),o(d(me,{clsPrefix:n,onClick:this.toggleShow},{default:()=>Vu}),"tipClose"))}}):null,d(ze,{name:"fade-in-scale-up-transition",onAfterLeave:this.handleAfterLeave,appear:this.appear,onEnter:this.syncTransformOrigin,onBeforeLeave:this.syncTransformOrigin},{default:()=>{const{previewedImgProps:o={}}=this;return st(d("div",{class:`${n}-image-preview-wrapper`,ref:"previewWrapperRef"},d("img",Object.assign({},o,{draggable:!1,onMousedown:this.handlePreviewMousedown,onDblclick:this.handlePreviewDblclick,class:[`${n}-image-preview`,o.class],key:this.previewSrc,src:this.previewSrc,ref:"previewRef",onDragstart:this.handleDragStart}))),[[er,this.show]])}})),[[rr,{enabled:this.show}]])):null}}))}}),qu=ir("n-image-group"),Gu=Object.assign({alt:String,height:[String,Number],imgProps:Object,previewedImgProps:Object,lazy:Boolean,intersectionObserverOptions:Object,objectFit:{type:String,default:"fill"},previewSrc:String,fallbackSrc:String,width:[String,Number],src:String,previewDisabled:Boolean,loadDescription:String,onError:Function,onLoad:Function},Yr),ec=ie({name:"Image",props:Gu,inheritAttrs:!1,setup(e){const t=E(null),n=E(!1),r=E(null),o=Le(qu,null),{mergedClsPrefixRef:i}=o||Ze(e),a={click:()=>{if(e.previewDisabled||n.value)return;const l=e.previewSrc||e.src;if(o){o.setPreviewSrc(l),o.setThumbnailEl(t.value),o.toggleShow();return}const{value:f}=r;f&&(f.setPreviewSrc(l),f.setThumbnailEl(t.value),f.toggleShow())}},s=E(!e.lazy);Ve(()=>{var l;(l=t.value)===null||l===void 0||l.setAttribute("data-group-id",(o==null?void 0:o.groupId)||"")}),Ve(()=>{if(e.lazy&&e.intersectionObserverOptions){let l;const f=Me(()=>{l==null||l(),l=void 0,l=Du(t.value,e.intersectionObserverOptions,s)});Ie(()=>{f(),l==null||l()})}}),Me(()=>{var l;e.src,(l=e.imgProps)===null||l===void 0||l.src,n.value=!1});const u=E(!1);return Xe(Zr,{previewedImgPropsRef:Se(e,"previewedImgProps")}),Object.assign({mergedClsPrefix:i,groupId:o==null?void 0:o.groupId,previewInstRef:r,imageRef:t,showError:n,shouldStartLoading:s,loaded:u,mergedOnClick:l=>{var f,v;a.click(),(v=(f=e.imgProps)===null||f===void 0?void 0:f.onClick)===null||v===void 0||v.call(f,l)},mergedOnError:l=>{if(!s.value)return;n.value=!0;const{onError:f,imgProps:{onError:v}={}}=e;f==null||f(l),v==null||v(l)},mergedOnLoad:l=>{const{onLoad:f,imgProps:{onLoad:v}={}}=e;f==null||f(l),v==null||v(l),u.value=!0}},a)},render(){var e,t;const{mergedClsPrefix:n,imgProps:r={},loaded:o,$attrs:i,lazy:a}=this,s=(t=(e=this.$slots).placeholder)===null||t===void 0?void 0:t.call(e),u=this.src||r.src,l=d("img",Object.assign(Object.assign({},r),{ref:"imageRef",width:this.width||r.width,height:this.height||r.height,src:this.showError?this.fallbackSrc:a&&this.intersectionObserverOptions?this.shouldStartLoading?u:void 0:u,alt:this.alt||r.alt,"aria-label":this.alt||r.alt,onClick:this.mergedOnClick,onError:this.mergedOnError,onLoad:this.mergedOnLoad,loading:Iu&&a&&!this.intersectionObserverOptions?"lazy":"eager",style:[r.style||"",s&&!o?{height:"0",width:"0",visibility:"hidden"}:"",{objectFit:this.objectFit}],"data-error":this.showError,"data-preview-src":this.previewSrc||this.src}));return d("div",Object.assign({},i,{role:"none",class:[i.class,`${n}-image`,(this.previewDisabled||this.showError)&&`${n}-image--preview-disabled`]}),this.groupId?l:d(Zu,{theme:this.theme,themeOverrides:this.themeOverrides,clsPrefix:n,ref:"previewInstRef",showToolbar:this.showToolbar,showToolbarTooltip:this.showToolbarTooltip},{default:()=>l}),!o&&s)}});export{ec as N};
|