Image-legacy-60ca6ce5.js 128 KB

1
  1. System.register(["./index-legacy-7aaf3ce7.js"],(function(e,t){"use strict";var n,r,o,i,a,l,s,u,c,d,f,h,p,v,g,m,b,w,y,x,C,S,$,M,O,z,T,E,P,j;return{setters:[e=>{n=e.A,r=e.F,o=e.aT,i=e.a3,a=e.d,l=e.r,s=e.aU,u=e.w,c=e.e,d=e.y,f=e.av,h=e.aE,p=e.aF,v=e.aV,g=e.g,m=e.aH,b=e.aI,w=e.j,y=e.z,x=e.aW,C=e.aX,S=e.aY,$=e.aZ,M=e.au,O=e.T,z=e.h,T=e.v,E=e.a_,P=e.a$,j=e.aL}],execute:function(){e({c:ce,g:Ou,h:function(e){return We((({props:{bPrefix:e}})=>`${e||De}popover`),[e])},i:function(e){return We((({props:{bPrefix:e}})=>`${e||De}modal, ${e||De}drawer`),[e])},j:Ql,k:ct,l:vs,m:dt,n:wt,r:function(e,t){return e&&de(e())||t()},t:oe,u:ts});let R=[];const _=new WeakMap;function k(){R.forEach((e=>e(..._.get(e)))),R=[]}function B(e,...t){_.set(e,t),R.includes(e)||1===R.push(e)&&requestAnimationFrame(k)}function A(e){return e.composedPath()[0]||null}const I={black:"#000",silver:"#C0C0C0",gray:"#808080",white:"#FFF",maroon:"#800000",red:"#F00",purple:"#800080",fuchsia:"#F0F",green:"#008000",lime:"#0F0",olive:"#808000",yellow:"#FF0",navy:"#000080",blue:"#00F",teal:"#008080",aqua:"#0FF",transparent:"#0000"},D="^\\s*",F="\\s*$",L="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",W="([0-9A-Fa-f])",N="([0-9A-Fa-f]{2})",H=new RegExp(`${D}rgb\\s*\\(${L},${L},${L}\\)${F}`),X=new RegExp(`${D}rgba\\s*\\(${L},${L},${L},${L}\\)${F}`),V=new RegExp(`${D}#${W}${W}${W}${F}`),Z=new RegExp(`${D}#${N}${N}${N}${F}`),Y=new RegExp(`${D}#${W}${W}${W}${W}${F}`),U=new RegExp(`${D}#${N}${N}${N}${N}${F}`);function q(e){return parseInt(e,16)}function J(e){try{let t;if(t=Z.exec(e))return[q(t[1]),q(t[2]),q(t[3]),1];if(t=H.exec(e))return[te(t[1]),te(t[5]),te(t[9]),1];if(t=X.exec(e))return[te(t[1]),te(t[5]),te(t[9]),ee(t[13])];if(t=V.exec(e))return[q(t[1]+t[1]),q(t[2]+t[2]),q(t[3]+t[3]),1];if(t=U.exec(e))return[q(t[1]),q(t[2]),q(t[3]),ee(q(t[4])/255)];if(t=Y.exec(e))return[q(t[1]+t[1]),q(t[2]+t[2]),q(t[3]+t[3]),ee(q(t[4]+t[4])/255)];if(e in I)return J(I[e]);throw new Error(`[seemly/rgba]: Invalid color value ${e}.`)}catch(t){throw t}}function G(e,t,n,r,o){return te((e*t*(1-r)+n*r)/o)}function K(e,t){Array.isArray(e)||(e=J(e)),Array.isArray(t)||(t=J(t));const n=e[3],r=t[3],o=ee(n+r-n*r);return i=G(e[0],n,t[0],r,o),a=G(e[1],n,t[1],r,o),l=G(e[2],n,t[2],r,o),s=o,`rgba(${te(i)}, ${te(a)}, ${te(l)}, ${u=s,u>1?1:u<0?0:u})`;var i,a,l,s,u}function Q(e,t){const[n,r,o,i=1]=Array.isArray(e)?e:J(e),{lightness:a=1,alpha:l=1}=t;return function(e){const[t,n,r]=e;return 3 in e?`rgba(${te(t)}, ${te(n)}, ${te(r)}, ${ee(e[3])})`:`rgba(${te(t)}, ${te(n)}, ${te(r)}, 1)`}([n*a,r*a,o*a,i*l])}function ee(e){const t=Math.round(100*Number(e))/100;return t>1?1:t<0?0:t}function te(e){const t=Math.round(Number(e));return t>255?255:t<0?0:t}function ne(e,t=[],n){const r={};return t.forEach((t=>{r[t]=e[t]})),Object.assign(r,n)}function re(e,t=!0,i=[]){return e.forEach((e=>{if(null!==e)if("object"==typeof e)if(Array.isArray(e))re(e,t,i);else if(e.type===r){if(null===e.children)return;Array.isArray(e.children)&&re(e.children,t,i)}else e.type!==o&&i.push(e);else"string"!=typeof e&&"number"!=typeof e||i.push(n(String(e)))})),i}function oe(e,...t){if(!Array.isArray(e))return e(...t);e.forEach((e=>oe(e,...t)))}const ie=new Set;function ae(e,t){const n=`[naive/${e}]: ${t}`;ie.has(n)||(ie.add(n),console.error(n))}function le(e,t){console.error(`[naive/${e}]: ${t}`)}function se(e,t){throw new Error(`[naive/${e}]: ${t}`)}function ue(e,t="default",n=void 0){const r=e[t];if(!r)return le("getFirstSlotVNode",`slot[${t}] is empty`),null;const o=re(r(n));return 1===o.length?o[0]:(le("getFirstSlotVNode",`slot[${t}] should have exactly one child`),null)}function ce(e){return e}function de(e){return e.some((e=>!i(e)||e.type!==o&&!(e.type===r&&!de(e.children))))?e:null}function fe(e,t){return t(e&&de(e())||null)}function he(e){return!(e&&de(e()))}const pe=a({render(){var e,t;return null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e)}}),ve=/^(\d|\.)+$/,ge=/(\d|\.)+/;function me(e,{c:t=1,offset:n=0,attachPx:r=!0}={}){if("number"==typeof e){const r=(e+n)*t;return 0===r?"0":`${r}px`}if("string"==typeof e){if(ve.test(e)){const o=(Number(e)+n)*t;return r?0===o?"0":`${o}px`:`${o}`}{const r=ge.exec(e);return r?e.replace(ge,String((Number(r[0])+n)*t)):e}}return e}const be=/\s*,(?![^(]*\))\s*/g,we=/\s+/g;function ye(e){let t=[""];return e.forEach((e=>{(e=e&&e.trim())&&(t=e.includes("&")?function(e,t){const n=[];return t.split(be).forEach((t=>{let r=function(e){let t=0;for(let n=0;n<e.length;++n)"&"===e[n]&&++t;return t}(t);if(!r)return void e.forEach((e=>{n.push((e&&e+" ")+t)}));if(1===r)return void e.forEach((e=>{n.push(t.replace("&",e))}));let o=[t];for(;r--;){const t=[];o.forEach((n=>{e.forEach((e=>{t.push(n.replace("&",e))}))})),o=t}o.forEach((e=>n.push(e)))})),n}(t,e):function(e,t){const n=[];return t.split(be).forEach((t=>{e.forEach((e=>{n.push((e&&e+" ")+t)}))})),n}(t,e))})),t.join(", ").replace(we," ")}function xe(e){if(!e)return;const t=e.parentElement;t&&t.removeChild(e)}function Ce(e){return document.querySelector(`style[cssr-id="${e}"]`)}function Se(e){return!!e&&/^\s*@(s|m)/.test(e)}const $e=/[A-Z]/g;function Me(e){return e.replace($e,(e=>"-"+e.toLowerCase()))}function Oe(e,t,n,r){if(!t)return"";const o=function(e,t,n){return"function"==typeof e?e({context:t.context,props:n}):e}(t,n,r);if(!o)return"";if("string"==typeof o)return`${e} {\n${o}\n}`;const i=Object.keys(o);if(0===i.length)return n.config.keepEmptyBlock?e+" {\n}":"";const a=e?[e+" {"]:[];return i.forEach((e=>{const t=o[e];"raw"!==e?(e=Me(e),null!=t&&a.push(` ${e}${function(e,t=" "){return"object"==typeof e&&null!==e?" {\n"+Object.entries(e).map((e=>t+` ${Me(e[0])}: ${e[1]};`)).join("\n")+"\n"+t+"}":`: ${e};`}(t)}`)):a.push("\n"+t+"\n")})),e&&a.push("}"),a.join("\n")}function ze(e,t,n){e&&e.forEach((e=>{if(Array.isArray(e))ze(e,t,n);else if("function"==typeof e){const r=e(t);Array.isArray(r)?ze(r,t,n):r&&n(r)}else e&&n(e)}))}function Te(e,t,n,r,o,i){const a=e.$;let l="";if(a&&"string"!=typeof a)if("function"==typeof a){const e=a({context:r.context,props:o});Se(e)?l=e:t.push(e)}else if(a.before&&a.before(r.context),a.$&&"string"!=typeof a.$){if(a.$){const e=a.$({context:r.context,props:o});Se(e)?l=e:t.push(e)}}else Se(a.$)?l=a.$:t.push(a.$);else Se(a)?l=a:t.push(a);const s=ye(t),u=Oe(s,e.props,r,o);l?(n.push(`${l} {`),i&&u&&i.insertRule(`${l} {\n${u}\n}\n`)):(i&&u&&i.insertRule(u),!i&&u.length&&n.push(u)),e.children&&ze(e.children,{context:r.context,props:o},(e=>{if("string"==typeof e){const t=Oe(s,{raw:e},r,o);i?i.insertRule(t):n.push(t)}else Te(e,t,n,r,o,i)})),t.pop(),l&&n.push("}"),a&&a.after&&a.after(r.context)}function Ee(e,t,n,r=!1){const o=[];return Te(e,[],o,t,n,r?e.instance.__styleSheet:void 0),r?"":o.join("\n\n")}function Pe(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}function je(e,t){e.push(t)}function Re(e,t,n,r,o,i,a,l,s){if(i&&!s){if(void 0===n)return void console.error("[css-render/mount]: `id` is required in `silent` mode.");const o=window.__cssrContext;return void(o[n]||(o[n]=!0,Ee(t,e,r,i)))}let u;if(void 0===n&&(u=t.render(r),n=Pe(u)),s)return void s.adapter(n,null!=u?u:t.render(r));const c=Ce(n);if(null!==c&&!a)return c;const d=null!=c?c:function(e){const t=document.createElement("style");return t.setAttribute("cssr-id",e),t}(n);if(void 0===u&&(u=t.render(r)),d.textContent=u,null!==c)return c;if(l){const e=document.head.querySelector(`meta[name="${l}"]`);if(e)return document.head.insertBefore(d,e),je(t.els,d),d}return o?document.head.insertBefore(d,document.head.querySelector("style, link")):document.head.appendChild(d),je(t.els,d),d}function _e(e){return Ee(this,this.instance,e)}function ke(e={}){const{id:t,ssr:n,props:r,head:o=!1,silent:i=!1,force:a=!1,anchorMetaName:l}=e;return Re(this.instance,this,t,r,o,i,a,l,n)}function Be(e={}){const{id:t}=e;!function(e,t,n){const{els:r}=t;if(void 0===n)r.forEach(xe),t.els=[];else{const e=Ce(n);e&&r.includes(e)&&(xe(e),t.els=r.filter((t=>t!==e)))}}(this.instance,this,t)}"undefined"!=typeof window&&(window.__cssrContext={});const Ae=function(e,t,n,r){return{instance:e,$:t,props:n,children:r,els:[],render:_e,mount:ke,unmount:Be}};function Ie(e={}){let t=null;const n={c:(...e)=>function(e,t,n,r){return Array.isArray(t)?Ae(e,{$:null},null,t):Array.isArray(n)?Ae(e,t,null,n):Array.isArray(r)?Ae(e,t,n,r):Ae(e,t,n,null)}(n,...e),use:(e,...t)=>e.install(n,...t),find:Ce,context:{},config:e,get __styleSheet(){if(!t){const e=document.createElement("style");return document.head.appendChild(e),t=document.styleSheets[document.styleSheets.length-1],t}return t}};return n}const De=".n-",Fe=Ie(),Le=function(e){let t,n=".",r="__",o="--";if(e){let t=e.blockPrefix;t&&(n=t),t=e.elementPrefix,t&&(r=t),t=e.modifierPrefix,t&&(o=t)}const i={install(e){t=e.c;const n=e.context;n.bem={},n.bem.b=null,n.bem.els=null}};return Object.assign(i,{cB:(...e)=>t(function(e){let t,r;return{before(e){t=e.bem.b,r=e.bem.els,e.bem.els=null},after(e){e.bem.b=t,e.bem.els=r},$:({context:t,props:r})=>(e="string"==typeof e?e:e({context:t,props:r}),t.bem.b=e,`${(null==r?void 0:r.bPrefix)||n}${t.bem.b}`)}}(e[0]),e[1],e[2]),cE:(...e)=>t(function(e){let t;return{before(e){t=e.bem.els},after(e){e.bem.els=t},$:({context:t,props:o})=>(e="string"==typeof e?e:e({context:t,props:o}),t.bem.els=e.split(",").map((e=>e.trim())),t.bem.els.map((e=>`${(null==o?void 0:o.bPrefix)||n}${t.bem.b}${r}${e}`)).join(", "))}}(e[0]),e[1],e[2]),cM:(...e)=>{return t((i=e[0],{$({context:e,props:t}){const a=(i="string"==typeof i?i:i({context:e,props:t})).split(",").map((e=>e.trim()));function l(i){return a.map((a=>`&${(null==t?void 0:t.bPrefix)||n}${e.bem.b}${void 0!==i?`${r}${i}`:""}${o}${a}`)).join(", ")}const s=e.bem.els;if(null!==s){if(s.length>=2)throw Error(`[css-render/plugin-bem]: m(${i}) is invalid, using modifier inside multiple elements is not allowed`);return l(s[0])}return l()}}),e[1],e[2]);var i},cNotM:(...e)=>{return t((i=e[0],{$({context:e,props:t}){i="string"==typeof i?i:i({context:e,props:t});const a=e.bem.els;if(null!==a&&a.length>=2)throw Error(`[css-render/plugin-bem]: notM(${i}) is invalid, using modifier inside multiple elements is not allowed`);return`&:not(${(null==t?void 0:t.bPrefix)||n}${e.bem.b}${null!==a&&a.length>0?`${r}${a[0]}`:""}${o}${i})`}}),e[1],e[2]);var i}}),i}({blockPrefix:De,elementPrefix:"__",modifierPrefix:"--"});Fe.use(Le);const{c:We,find:Ne}=Fe;e("b",We);const{cB:He,cE:Xe,cM:Ve,cNotM:Ze}=Le;e({d:He,f:Xe,e:Ve});const Ye=(...e)=>We(">",[He(...e)]);let Ue;const qe="undefined"!=typeof document&&"undefined"!=typeof window;function Je(e){const t=l(!!e.value);if(t.value)return s(t);const n=u(e,(e=>{e&&(t.value=!0,n())}));return s(t)}function Ge(e){const t=c(e),n=l(t.value);return u(t,(e=>{n.value=e})),"function"==typeof e?n:{__v_isRef:!0,get value(){return n.value},set value(t){e.set(t)}}}const Ke="undefined"!=typeof window;let Qe,et;var tt,nt;function rt(e){return e.composedPath()[0]}Qe=Ke?null===(nt=null===(tt=document)||void 0===tt?void 0:tt.fonts)||void 0===nt?void 0:nt.ready:void 0,et=!1,void 0!==Qe?Qe.then((()=>{et=!0})):et=!0;const ot={mousemoveoutside:new WeakMap,clickoutside:new WeakMap};function it(e,t,n){const r=ot[e];let o=r.get(t);void 0===o&&r.set(t,o=new WeakMap);let i=o.get(n);return void 0===i&&o.set(n,i=function(e,t,n){if("mousemoveoutside"===e){const e=e=>{t.contains(rt(e))||n(e)};return{mousemove:e,touchstart:e}}if("clickoutside"===e){let e=!1;const r=n=>{e=!t.contains(rt(n))},o=r=>{e&&(t.contains(rt(r))||n(r))};return{mousedown:r,mouseup:o,touchstart:r,touchend:o}}return console.error(`[evtd/create-trap-handler]: name \`${e}\` is invalid. This could be a bug of evtd.`),{}}(e,t,n)),i}function at(e,t,n,r){if("mousemoveoutside"===e||"clickoutside"===e){const o=it(e,t,n);return Object.keys(o).forEach((e=>{st(e,document,o[e],r)})),!0}return!1}function lt(e,t,n,r){if("mousemoveoutside"===e||"clickoutside"===e){const o=it(e,t,n);return Object.keys(o).forEach((e=>{ut(e,document,o[e],r)})),!0}return!1}const{on:st,off:ut}=function(){if("undefined"==typeof window)return{on:()=>{},off:()=>{}};const e=new WeakMap,t=new WeakMap;function n(){e.set(this,!0)}function r(){e.set(this,!0),t.set(this,!0)}function o(e,t,n){const r=e[t];return e[t]=function(){return n.apply(e,arguments),r.apply(e,arguments)},e}function i(e,t){e[t]=Event.prototype[t]}const a=new WeakMap,l=Object.getOwnPropertyDescriptor(Event.prototype,"currentTarget");function s(){var e;return null!==(e=a.get(this))&&void 0!==e?e:null}function u(e,t){void 0!==l&&Object.defineProperty(e,"currentTarget",{configurable:!0,enumerable:!0,get:null!=t?t:l.get})}const c={bubble:{},capture:{}},d={},f=function(){const l=function(l){const{type:d,eventPhase:f,bubbles:h}=l,p=rt(l);if(2===f)return;const v=1===f?"capture":"bubble";let g=p;const m=[];for(;null===g&&(g=window),m.push(g),g!==window;)g=g.parentNode||null;const b=c.capture[d],w=c.bubble[d];if(o(l,"stopPropagation",n),o(l,"stopImmediatePropagation",r),u(l,s),"capture"===v){if(void 0===b)return;for(let n=m.length-1;n>=0&&!e.has(l);--n){const e=m[n],r=b.get(e);if(void 0!==r){a.set(l,e);for(const e of r){if(t.has(l))break;e(l)}}if(0===n&&!h&&void 0!==w){const n=w.get(e);if(void 0!==n)for(const e of n){if(t.has(l))break;e(l)}}}}else if("bubble"===v){if(void 0===w)return;for(let n=0;n<m.length&&!e.has(l);++n){const e=m[n],r=w.get(e);if(void 0!==r){a.set(l,e);for(const e of r){if(t.has(l))break;e(l)}}}}i(l,"stopPropagation"),i(l,"stopImmediatePropagation"),u(l)};return l.displayName="evtdUnifiedHandler",l}(),h=function(){const e=function(e){const{type:t,eventPhase:n}=e;if(2!==n)return;const r=d[t];void 0!==r&&r.forEach((t=>t(e)))};return e.displayName="evtdUnifiedWindowEventHandler",e}();function p(e,t){const n=c[e];return void 0===n[t]&&(n[t]=new Map,window.addEventListener(t,f,"capture"===e)),n[t]}function v(e,t){let n=e.get(t);return void 0===n&&e.set(t,n=new Set),n}function g(e,t,n,r){if(lt(e,t,n,r))return;const o=!0===r||"object"==typeof r&&!0===r.capture,i=o?"capture":"bubble",a=p(i,e),l=v(a,t);if(t===window&&!function(e,t,n,r){const o=c[t][n];if(void 0!==o){const t=o.get(e);if(void 0!==t&&t.has(r))return!0}return!1}(t,o?"bubble":"capture",e,n)&&function(e,t){const n=d[e];return!(void 0===n||!n.has(t))}(e,n)){const t=d[e];t.delete(n),0===t.size&&(window.removeEventListener(e,h),d[e]=void 0)}l.has(n)&&l.delete(n),0===l.size&&a.delete(t),0===a.size&&(window.removeEventListener(e,f,"capture"===i),c[i][e]=void 0)}return{on:function(e,t,n,r){let o;if(o="object"==typeof r&&!0===r.once?i=>{g(e,t,o,r),n(i)}:n,at(e,t,o,r))return;const i=v(p(!0===r||"object"==typeof r&&!0===r.capture?"capture":"bubble",e),t);if(i.has(o)||i.add(o),t===window){const t=function(e){return void 0===d[e]&&(d[e]=new Set,window.addEventListener(e,h)),d[e]}(e);t.has(o)||t.add(o)}},off:g}}();function ct(e,t){return u(e,(e=>{void 0!==e&&(t.value=e)})),c((()=>void 0===e.value?t.value:e.value))}function dt(){const e=l(!1);return d((()=>{e.value=!0})),s(e)}e({q:st,s:ut});const ft="undefined"!=typeof window&&(/iPad|iPhone|iPod/.test(navigator.platform)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!window.MSStream;function ht(){return ft}const pt="n-internal-select-menu-body",vt="n-modal-body",gt="n-drawer-body",mt="n-popover-body",bt="__disabled__";function wt(e){const t=h(vt,null),n=h(gt,null),r=h(mt,null),o=h(pt,null),i=l();if("undefined"!=typeof document){i.value=document.fullscreenElement;const e=()=>{i.value=document.fullscreenElement};d((()=>{st("fullscreenchange",document,e)})),f((()=>{ut("fullscreenchange",document,e)}))}return Ge((()=>{var a;const{to:l}=e;return void 0!==l?!1===l?bt:!0===l?i.value||"body":l:(null==t?void 0:t.value)?null!==(a=t.value.$el)&&void 0!==a?a:t.value:(null==n?void 0:n.value)?n.value:(null==r?void 0:r.value)?r.value:(null==o?void 0:o.value)?o.value:null!=l?l:i.value||"body"}))}function yt(e,t,n="default"){const r=t[n];if(void 0===r)throw new Error(`[vueuc/${e}]: slot[${n}] is empty.`);return r()}function xt(e,t=!0,i=[]){return e.forEach((e=>{if(null!==e)if("object"==typeof e)if(Array.isArray(e))xt(e,t,i);else if(e.type===r){if(null===e.children)return;Array.isArray(e.children)&&xt(e.children,t,i)}else e.type!==o&&i.push(e);else"string"!=typeof e&&"number"!=typeof e||i.push(n(String(e)))})),i}function Ct(e,t,n="default"){const r=t[n];if(void 0===r)throw new Error(`[vueuc/${e}]: slot[${n}] is empty.`);const o=xt(r());if(1===o.length)return o[0];throw new Error(`[vueuc/${e}]: slot[${n}] should have exactly one child.`)}wt.tdkey=bt,wt.propTo={type:[String,Object,Boolean],default:void 0};let St=null;function $t(){if(null===St&&(St=document.getElementById("v-binder-view-measurer"),null===St)){St=document.createElement("div"),St.id="v-binder-view-measurer";const{style:e}=St;e.position="fixed",e.left="0",e.right="0",e.top="0",e.bottom="0",e.pointerEvents="none",e.visibility="hidden",document.body.appendChild(St)}return St.getBoundingClientRect()}function Mt(e){const t=e.getBoundingClientRect(),n=$t();return{left:t.left-n.left,top:t.top-n.top,bottom:n.height+n.top-t.bottom,right:n.width+n.left-t.right,width:t.width,height:t.height}}function Ot(e){if(null===e)return null;const t=function(e){return 9===e.nodeType?null:e.parentNode}(e);if(null===t)return null;if(9===t.nodeType)return document;if(1===t.nodeType){const{overflow:e,overflowX:n,overflowY:r}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(e+r+n))return t}return Ot(t)}const zt=a({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){var t;p("VBinder",null===(t=v())||void 0===t?void 0:t.proxy);const n=h("VBinder",null),r=l(null);let o=[];const i=()=>{for(const e of o)ut("scroll",e,s,!0);o=[]},a=new Set,s=()=>{B(u)},u=()=>{a.forEach((e=>e()))},c=new Set,d=()=>{c.forEach((e=>e()))};return f((()=>{ut("resize",window,d),i()})),{targetRef:r,setTargetRef:t=>{r.value=t,n&&e.syncTargetWithParent&&n.setTargetRef(t)},addScrollListener:e=>{0===a.size&&(()=>{let e=r.value;for(;e=Ot(e),null!==e;)o.push(e);for(const t of o)st("scroll",t,s,!0)})(),a.has(e)||a.add(e)},removeScrollListener:e=>{a.has(e)&&a.delete(e),0===a.size&&i()},addResizeListener:e=>{0===c.size&&st("resize",window,d),c.has(e)||c.add(e)},removeResizeListener:e=>{c.has(e)&&c.delete(e),0===c.size&&ut("resize",window,d)}}},render(){return yt("binder",this.$slots)}}),Tt=e("V",zt),Et=e("o",a({name:"Target",setup(){const{setTargetRef:e,syncTarget:t}=h("VBinder");return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){const{syncTarget:e,setTargetDirective:t}=this;return e?g(Ct("follower",this.$slots),[[t]]):Ct("follower",this.$slots)}})),Pt="@@mmoContext",jt={mounted(e,{value:t}){e[Pt]={handler:void 0},"function"==typeof t&&(e[Pt].handler=t,st("mousemoveoutside",e,t))},updated(e,{value:t}){const n=e[Pt];"function"==typeof t?n.handler?n.handler!==t&&(ut("mousemoveoutside",e,n.handler),n.handler=t,st("mousemoveoutside",e,t)):(e[Pt].handler=t,st("mousemoveoutside",e,t)):n.handler&&(ut("mousemoveoutside",e,n.handler),n.handler=void 0)},unmounted(e){const{handler:t}=e[Pt];t&&ut("mousemoveoutside",e,t),e[Pt].handler=void 0}},Rt=jt,_t="@@coContext",kt={mounted(e,{value:t,modifiers:n}){e[_t]={handler:void 0},"function"==typeof t&&(e[_t].handler=t,st("clickoutside",e,t,{capture:n.capture}))},updated(e,{value:t,modifiers:n}){const r=e[_t];"function"==typeof t?r.handler?r.handler!==t&&(ut("clickoutside",e,r.handler,{capture:n.capture}),r.handler=t,st("clickoutside",e,t,{capture:n.capture})):(e[_t].handler=t,st("clickoutside",e,t,{capture:n.capture})):r.handler&&(ut("clickoutside",e,r.handler,{capture:n.capture}),r.handler=void 0)},unmounted(e,{modifiers:t}){const{handler:n}=e[_t];n&&ut("clickoutside",e,n,{capture:t.capture}),e[_t].handler=void 0}},Bt=kt,At=new class{constructor(){this.elementZIndex=new Map,this.nextZIndex=2e3}get elementCount(){return this.elementZIndex.size}ensureZIndex(e,t){const{elementZIndex:n}=this;if(void 0!==t)return e.style.zIndex=`${t}`,void n.delete(e);const{nextZIndex:r}=this;n.has(e)&&n.get(e)+1===this.nextZIndex||(e.style.zIndex=`${r}`,n.set(e,r),this.nextZIndex=r+1,this.squashState())}unregister(e,t){const{elementZIndex:n}=this;var r,o;n.has(e)?n.delete(e):void 0===t&&(r="z-index-manager/unregister-element",o="Element not found when unregistering.",console.error(`[vdirs/${r}]: ${o}`)),this.squashState()}squashState(){const{elementCount:e}=this;e||(this.nextZIndex=2e3),this.nextZIndex-e>2500&&this.rearrange()}rearrange(){const e=Array.from(this.elementZIndex.entries());e.sort(((e,t)=>e[1]-t[1])),this.nextZIndex=2e3,e.forEach((e=>{const t=e[0],n=this.nextZIndex++;`${n}`!==t.style.zIndex&&(t.style.zIndex=`${n}`)}))}},It="@@ziContext",Dt={mounted(e,t){const{value:n={}}=t,{zIndex:r,enabled:o}=n;e[It]={enabled:!!o,initialized:!1},o&&(At.ensureZIndex(e,r),e[It].initialized=!0)},updated(e,t){const{value:n={}}=t,{zIndex:r,enabled:o}=n,i=e[It].enabled;o&&!i&&(At.ensureZIndex(e,r),e[It].initialized=!0),e[It].enabled=!!o},unmounted(e,t){if(!e[It].initialized)return;const{value:n={}}=t,{zIndex:r}=n;At.unregister(e,r)}},Ft=Dt,Lt=Symbol("@css-render/vue3-ssr");function Wt(e,t){const n=h(Lt,null);if(null===n)return void console.error("[css-render/vue3-ssr]: no ssr context found.");const{styles:r,ids:o}=n;o.has(e)||null!==r&&(o.add(e),r.push(function(e,t){return`<style cssr-id="${e}">\n${t}\n</style>`}(e,t)))}const Nt="undefined"!=typeof document;function Ht(){if(Nt)return;const e=h(Lt,null);return null!==e?{adapter:Wt,context:e}:void 0}function Xt(e,t){console.error(`[vueuc/${e}]: ${t}`)}const{c:Vt}=Ie();function Zt(e){return"string"==typeof e?document.querySelector(e):e()}const Yt=a({name:"LazyTeleport",props:{to:{type:[String,Object],default:void 0},disabled:Boolean,show:{type:Boolean,required:!0}},setup:e=>({showTeleport:Je(m(e,"show")),mergedTo:c((()=>{const{to:t}=e;return null!=t?t:"body"}))}),render(){return this.showTeleport?this.disabled?yt("lazy-teleport",this.$slots):b(w,{disabled:this.disabled,to:this.mergedTo},yt("lazy-teleport",this.$slots)):null}}),Ut={top:"bottom",bottom:"top",left:"right",right:"left"},qt={start:"end",center:"center",end:"start"},Jt={top:"height",bottom:"height",left:"width",right:"width"},Gt={"bottom-start":"top left",bottom:"top center","bottom-end":"top right","top-start":"bottom left",top:"bottom center","top-end":"bottom right","right-start":"top left",right:"center left","right-end":"bottom left","left-start":"top right",left:"center right","left-end":"bottom right"},Kt={"bottom-start":"bottom left",bottom:"bottom center","bottom-end":"bottom right","top-start":"top left",top:"top center","top-end":"top right","right-start":"top right",right:"center right","right-end":"bottom right","left-start":"top left",left:"center left","left-end":"bottom left"},Qt={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},en={top:!0,bottom:!1,left:!0,right:!1},tn={top:"end",bottom:"start",left:"end",right:"start"},nn=Vt([Vt(".v-binder-follower-container",{position:"absolute",left:"0",right:"0",top:"0",height:"0",pointerEvents:"none",zIndex:"auto"}),Vt(".v-binder-follower-content",{position:"absolute",zIndex:"auto"},[Vt("> *",{pointerEvents:"all"})])]),rn=e("p",a({name:"Follower",inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom"},syncTrigger:{type:Array,default:["resize","scroll"]},to:[String,Object],flip:{type:Boolean,default:!0},internalShift:Boolean,x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(e){const t=h("VBinder"),n=Ge((()=>void 0!==e.enabled?e.enabled:e.show)),r=l(null),o=l(null),i=()=>{const{syncTrigger:n}=e;n.includes("scroll")&&t.addScrollListener(c),n.includes("resize")&&t.addResizeListener(c)},a=()=>{t.removeScrollListener(c),t.removeResizeListener(c)};d((()=>{n.value&&(c(),i())}));const s=Ht();nn.mount({id:"vueuc/binder",head:!0,anchorMetaName:"vueuc-style",ssr:s}),f((()=>{a()})),function(e){if(et)return;let t=!1;d((()=>{et||null==Qe||Qe.then((()=>{t||e()}))})),f((()=>{t=!0}))}((()=>{n.value&&c()}));const c=()=>{if(!n.value)return;const i=r.value;if(null===i)return;const a=t.targetRef,{x:l,y:s,overlap:u}=e,c=void 0!==l&&void 0!==s?function(e,t){const n=$t();return{top:t,left:e,height:0,width:0,right:n.width-e,bottom:n.height-t}}(l,s):Mt(a);i.style.setProperty("--v-target-width",`${Math.round(c.width)}px`),i.style.setProperty("--v-target-height",`${Math.round(c.height)}px`);const{width:d,minWidth:f,placement:h,internalShift:p,flip:v}=e;i.setAttribute("v-placement",h),u?i.setAttribute("v-overlap",""):i.removeAttribute("v-overlap");const{style:g}=i;g.width="target"===d?`${c.width}px`:void 0!==d?d:"",g.minWidth="target"===f?`${c.width}px`:void 0!==f?f:"";const m=Mt(i),b=Mt(o.value),{left:w,top:y,placement:x}=function(e,t,n,r,o,i){if(!o||i)return{placement:e,top:0,left:0};const[a,l]=e.split("-");let s=null!=l?l:"center",u={top:0,left:0};const c=(e,o,i)=>{let a=0,l=0;const s=n[e]-t[o]-t[e];return s>0&&r&&(i?l=en[o]?s:-s:a=en[o]?s:-s),{left:a,top:l}},d="left"===a||"right"===a;if("center"!==s){const r=Qt[e],o=Ut[r],i=Jt[r];if(n[i]>t[i]){if(t[r]+t[i]<n[i]){const e=(n[i]-t[i])/2;t[r]<e||t[o]<e?t[r]<t[o]?(s=qt[l],u=c(i,o,d)):u=c(i,r,d):s="center"}}else n[i]<t[i]&&t[o]<0&&t[r]>t[o]&&(s=qt[l])}else{const e="bottom"===a||"top"===a?"left":"top",r=Ut[e],o=Jt[e],i=(n[o]-t[o])/2;(t[e]<i||t[r]<i)&&(t[e]>t[r]?(s=tn[e],u=c(o,e,d)):(s=tn[r],u=c(o,r,d)))}let f=a;return t[a]<n[Jt[a]]&&t[a]<t[Ut[a]]&&(f=Ut[a]),{placement:"center"!==s?`${f}-${s}`:f,left:u.left,top:u.top}}(h,c,m,p,v,u),C=function(e,t){return t?Kt[e]:Gt[e]}(x,u),{left:S,top:$,transform:M}=function(e,t,n,r,o,i){if(i)switch(e){case"bottom-start":case"left-end":return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left)}px`,transform:"translateY(-100%)"};case"bottom-end":case"right-end":return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:"translateX(-100%) translateY(-100%)"};case"top-start":case"left-start":return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left)}px`,transform:""};case"top-end":case"right-start":return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:"translateX(-100%)"};case"top":return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left+n.width/2)}px`,transform:"translateX(-50%)"};case"right":return{top:`${Math.round(n.top-t.top+n.height/2)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:"translateX(-100%) translateY(-50%)"};case"left":return{top:`${Math.round(n.top-t.top+n.height/2)}px`,left:`${Math.round(n.left-t.left)}px`,transform:"translateY(-50%)"};default:return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left+n.width/2)}px`,transform:"translateX(-50%) translateY(-100%)"}}switch(e){case"bottom-start":return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+o)}px`,transform:""};case"bottom-end":return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+n.width+o)}px`,transform:"translateX(-100%)"};case"top-start":return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+o)}px`,transform:"translateY(-100%)"};case"top-end":return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+n.width+o)}px`,transform:"translateX(-100%) translateY(-100%)"};case"right-start":return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+n.width+o)}px`,transform:""};case"right-end":return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+n.width+o)}px`,transform:"translateY(-100%)"};case"left-start":return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+o)}px`,transform:"translateX(-100%)"};case"left-end":return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+o)}px`,transform:"translateX(-100%) translateY(-100%)"};case"top":return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+n.width/2+o)}px`,transform:"translateY(-100%) translateX(-50%)"};case"right":return{top:`${Math.round(n.top-t.top+n.height/2+r)}px`,left:`${Math.round(n.left-t.left+n.width+o)}px`,transform:"translateY(-50%)"};case"left":return{top:`${Math.round(n.top-t.top+n.height/2+r)}px`,left:`${Math.round(n.left-t.left+o)}px`,transform:"translateY(-50%) translateX(-100%)"};default:return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+n.width/2+o)}px`,transform:"translateX(-50%)"}}}(x,b,c,y,w,u);i.setAttribute("v-placement",x),i.style.setProperty("--v-offset-left",`${Math.round(w)}px`),i.style.setProperty("--v-offset-top",`${Math.round(y)}px`),i.style.transform=`translateX(${S}) translateY(${$}) ${M}`,i.style.setProperty("--v-transform-origin",C),i.style.transformOrigin=C};u(n,(e=>{e?(i(),p()):a()}));const p=()=>{y().then(c).catch((e=>console.error(e)))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach((t=>{u(m(e,t),c)})),["teleportDisabled"].forEach((t=>{u(m(e,t),p)})),u(m(e,"syncTrigger"),(e=>{e.includes("resize")?t.addResizeListener(c):t.removeResizeListener(c),e.includes("scroll")?t.addScrollListener(c):t.removeScrollListener(c)}));const v=dt(),g=Ge((()=>{const{to:t}=e;if(void 0!==t)return t;v.value}));return{VBinder:t,mergedEnabled:n,offsetContainerRef:o,followerRef:r,mergedTo:g,syncPosition:c}},render(){return b(Yt,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e,t;const n=b("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[b("div",{class:"v-binder-follower-content",ref:"followerRef"},null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e))]);return this.zindexable?g(n,[[Ft,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):n}})}}));var on,an=[],ln="ResizeObserver loop completed with undelivered notifications.";!function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"}(on||(on={}));var sn,un=function(e){return Object.freeze(e)},cn=function(e,t){this.inlineSize=e,this.blockSize=t,un(this)},dn=function(){function e(e,t,n,r){return this.x=e,this.y=t,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,un(this)}return e.prototype.toJSON=function(){var e=this;return{x:e.x,y:e.y,top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),fn=function(e){return e instanceof SVGElement&&"getBBox"in e},hn=function(e){if(fn(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)},pn=function(e){var t;if(e instanceof Element)return!0;var n=null===(t=null==e?void 0:e.ownerDocument)||void 0===t?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},vn="undefined"!=typeof window?window:{},gn=new WeakMap,mn=/auto|scroll/,bn=/^tb|vertical/,wn=/msie|trident/i.test(vn.navigator&&vn.navigator.userAgent),yn=function(e){return parseFloat(e||"0")},xn=function(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=!1),new cn((n?t:e)||0,(n?e:t)||0)},Cn=un({devicePixelContentBoxSize:xn(),borderBoxSize:xn(),contentBoxSize:xn(),contentRect:new dn(0,0,0,0)}),Sn=function(e,t){if(void 0===t&&(t=!1),gn.has(e)&&!t)return gn.get(e);if(hn(e))return gn.set(e,Cn),Cn;var n=getComputedStyle(e),r=fn(e)&&e.ownerSVGElement&&e.getBBox(),o=!wn&&"border-box"===n.boxSizing,i=bn.test(n.writingMode||""),a=!r&&mn.test(n.overflowY||""),l=!r&&mn.test(n.overflowX||""),s=r?0:yn(n.paddingTop),u=r?0:yn(n.paddingRight),c=r?0:yn(n.paddingBottom),d=r?0:yn(n.paddingLeft),f=r?0:yn(n.borderTopWidth),h=r?0:yn(n.borderRightWidth),p=r?0:yn(n.borderBottomWidth),v=d+u,g=s+c,m=(r?0:yn(n.borderLeftWidth))+h,b=f+p,w=l?e.offsetHeight-b-e.clientHeight:0,y=a?e.offsetWidth-m-e.clientWidth:0,x=o?v+m:0,C=o?g+b:0,S=r?r.width:yn(n.width)-x-y,$=r?r.height:yn(n.height)-C-w,M=S+v+y+m,O=$+g+w+b,z=un({devicePixelContentBoxSize:xn(Math.round(S*devicePixelRatio),Math.round($*devicePixelRatio),i),borderBoxSize:xn(M,O,i),contentBoxSize:xn(S,$,i),contentRect:new dn(d,s,S,$)});return gn.set(e,z),z},$n=function(e,t,n){var r=Sn(e,n),o=r.borderBoxSize,i=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(t){case on.DEVICE_PIXEL_CONTENT_BOX:return a;case on.BORDER_BOX:return o;default:return i}},Mn=function(e){var t=Sn(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=un([t.borderBoxSize]),this.contentBoxSize=un([t.contentBoxSize]),this.devicePixelContentBoxSize=un([t.devicePixelContentBoxSize])},On=function(e){if(hn(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},zn=function(){var e=1/0,t=[];an.forEach((function(n){if(0!==n.activeTargets.length){var r=[];n.activeTargets.forEach((function(t){var n=new Mn(t.target),o=On(t.target);r.push(n),t.lastReportedSize=$n(t.target,t.observedBox),o<e&&(e=o)})),t.push((function(){n.callback.call(n.observer,r,n.observer)})),n.activeTargets.splice(0,n.activeTargets.length)}}));for(var n=0,r=t;n<r.length;n++)(0,r[n])();return e},Tn=function(e){an.forEach((function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach((function(n){n.isActive()&&(On(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))}))}))},En=function(){var e,t=0;for(Tn(t);an.some((function(e){return e.activeTargets.length>0}));)t=zn(),Tn(t);return an.some((function(e){return e.skippedTargets.length>0}))&&("function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:ln}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=ln),window.dispatchEvent(e)),t>0},Pn=[],jn=function(e){if(!sn){var t=0,n=document.createTextNode("");new MutationObserver((function(){return Pn.splice(0).forEach((function(e){return e()}))})).observe(n,{characterData:!0}),sn=function(){n.textContent="".concat(t?t--:t++)}}Pn.push(e),sn()},Rn=0,_n={attributes:!0,characterData:!0,childList:!0,subtree:!0},kn=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Bn=function(e){return void 0===e&&(e=0),Date.now()+e},An=!1,In=new(function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(void 0===e&&(e=250),!An){An=!0;var n,r=Bn(e);n=function(){var n=!1;try{n=En()}finally{if(An=!1,e=r-Bn(),!Rn)return;n?t.run(1e3):e>0?t.run(e):t.start()}},jn((function(){requestAnimationFrame(n)}))}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,_n)};document.body?t():vn.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),kn.forEach((function(t){return vn.addEventListener(t,e.listener,!0)})))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),kn.forEach((function(t){return vn.removeEventListener(t,e.listener,!0)})),this.stopped=!0)},e}()),Dn=function(e){!Rn&&e>0&&In.start(),!(Rn+=e)&&In.stop()},Fn=function(){function e(e,t){this.target=e,this.observedBox=t||on.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e,t=$n(this.target,this.observedBox,!0);return e=this.target,fn(e)||function(e){switch(e.tagName){case"INPUT":if("image"!==e.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1}(e)||"inline"!==getComputedStyle(e).display||(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),Ln=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},Wn=new WeakMap,Nn=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},Hn=function(){function e(){}return e.connect=function(e,t){var n=new Ln(e,t);Wn.set(e,n)},e.observe=function(e,t,n){var r=Wn.get(e),o=0===r.observationTargets.length;Nn(r.observationTargets,t)<0&&(o&&an.push(r),r.observationTargets.push(new Fn(t,n&&n.box)),Dn(1),In.schedule())},e.unobserve=function(e,t){var n=Wn.get(e),r=Nn(n.observationTargets,t),o=1===n.observationTargets.length;r>=0&&(o&&an.splice(an.indexOf(n),1),n.observationTargets.splice(r,1),Dn(-1))},e.disconnect=function(e){var t=this,n=Wn.get(e);n.observationTargets.slice().forEach((function(n){return t.unobserve(e,n.target)})),n.activeTargets.splice(0,n.activeTargets.length)},e}(),Xn=function(){function e(e){if(0===arguments.length)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof e)throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Hn.connect(this,e)}return e.prototype.observe=function(e,t){if(0===arguments.length)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!pn(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Hn.observe(this,e,t)},e.prototype.unobserve=function(e){if(0===arguments.length)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!pn(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Hn.unobserve(this,e)},e.prototype.disconnect=function(){Hn.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();const Vn=new class{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new("undefined"!=typeof window&&window.ResizeObserver||Xn)(this.handleResize),this.elHandlersMap=new Map}handleResize(e){for(const t of e){const e=this.elHandlersMap.get(t.target);void 0!==e&&e(t)}}registerHandler(e,t){this.elHandlersMap.set(e,t),this.observer.observe(e)}unregisterHandler(e){this.elHandlersMap.has(e)&&(this.elHandlersMap.delete(e),this.observer.unobserve(e))}},Zn=a({name:"ResizeObserver",props:{onResize:Function},setup(e){let t=!1;const n=v().proxy;function r(t){const{onResize:n}=e;void 0!==n&&n(t)}d((()=>{const e=n.$el;void 0!==e?e.nextElementSibling===e.nextSibling||3!==e.nodeType||""===e.nodeValue?null!==e.nextElementSibling&&(Vn.registerHandler(e.nextElementSibling,r),t=!0):Xt("resize-observer","$el can not be observed (it may be a text node)."):Xt("resize-observer","$el does not exist.")})),f((()=>{t&&Vn.unregisterHandler(n.$el.nextElementSibling)}))},render(){return x(this.$slots,"default")}});function Yn(e){return e instanceof HTMLElement}function Un(e){for(let t=0;t<e.childNodes.length;t++){const n=e.childNodes[t];if(Yn(n)&&(Jn(n)||Un(n)))return!0}return!1}function qn(e){for(let t=e.childNodes.length-1;t>=0;t--){const n=e.childNodes[t];if(Yn(n)&&(Jn(n)||qn(n)))return!0}return!1}function Jn(e){if(!function(e){if(e.tabIndex>0||0===e.tabIndex&&null!==e.getAttribute("tabIndex"))return!0;if(e.getAttribute("disabled"))return!1;switch(e.nodeName){case"A":return!!e.href&&"ignore"!==e.rel;case"INPUT":return"hidden"!==e.type&&"file"!==e.type;case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}}(e))return!1;try{e.focus({preventScroll:!0})}catch(t){}return document.activeElement===e}let Gn=[];const Kn=a({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=function(e=8){return Math.random().toString(16).slice(2,2+e)}(),n=l(null),r=l(null);let o=!1,i=!1;const a="undefined"==typeof document?null:document.activeElement;function s(){return Gn[Gn.length-1]===t}function c(t){var n;"Escape"===t.code&&s()&&(null===(n=e.onEsc)||void 0===n||n.call(e,t))}function h(e){if(!i&&s()){const t=p();if(null===t)return;if(t.contains(A(e)))return;g("first")}}function p(){const e=n.value;if(null===e)return null;let t=e;for(;t=t.nextSibling,!(null===t||t instanceof Element&&"DIV"===t.tagName););return t}function v(){var n;if(e.disabled)return;if(document.removeEventListener("focus",h,!0),Gn=Gn.filter((e=>e!==t)),s())return;const{finalFocusTo:r}=e;void 0!==r?null===(n=Zt(r))||void 0===n||n.focus({preventScroll:!0}):e.returnFocusOnDeactivated&&a instanceof HTMLElement&&(i=!0,a.focus({preventScroll:!0}),i=!1)}function g(t){if(s()&&e.active){const e=n.value,o=r.value;if(null!==e&&null!==o){const n=p();if(null==n||n===o)return i=!0,e.focus({preventScroll:!0}),void(i=!1);i=!0;const r="first"===t?Un(n):qn(n);i=!1,r||(i=!0,e.focus({preventScroll:!0}),i=!1)}}}return d((()=>{u((()=>e.active),(n=>{n?(function(){var n;if(!e.disabled){if(Gn.push(t),e.autoFocus){const{initialFocusTo:t}=e;void 0===t?g("first"):null===(n=Zt(t))||void 0===n||n.focus({preventScroll:!0})}o=!0,document.addEventListener("focus",h,!0)}}(),st("keydown",document,c)):(ut("keydown",document,c),o&&v())}),{immediate:!0})})),f((()=>{ut("keydown",document,c),o&&v()})),{focusableStartRef:n,focusableEndRef:r,focusableStyle:"position: absolute; height: 0; width: 0;",handleStartFocus:function(e){if(i)return;const t=p();null!==t&&(null!==e.relatedTarget&&t.contains(e.relatedTarget)?g("last"):g("first"))},handleEndFocus:function(e){i||(null!==e.relatedTarget&&e.relatedTarget===n.value?g("last"):g("first"))}}},render(){const{default:e}=this.$slots;if(void 0===e)return null;if(this.disabled)return e();const{active:t,focusableStyle:n}=this;return b(r,null,[b("div",{"aria-hidden":"true",tabindex:t?"0":"-1",ref:"focusableStartRef",style:n,onFocus:this.handleStartFocus}),e(),b("div",{"aria-hidden":"true",style:n,ref:"focusableEndRef",tabindex:t?"0":"-1",onFocus:this.handleEndFocus})])}}),Qn="object"==typeof global&&global&&global.Object===Object&&global;var er="object"==typeof self&&self&&self.Object===Object&&self;const tr=Qn||er||Function("return this")(),nr=tr.Symbol;var rr=Object.prototype,or=rr.hasOwnProperty,ir=rr.toString,ar=nr?nr.toStringTag:void 0,lr=Object.prototype.toString,sr="[object Null]",ur="[object Undefined]",cr=nr?nr.toStringTag:void 0;function dr(e){return null==e?void 0===e?ur:sr:cr&&cr in Object(e)?function(e){var t=or.call(e,ar),n=e[ar];try{e[ar]=void 0;var r=!0}catch(i){}var o=ir.call(e);return r&&(t?e[ar]=n:delete e[ar]),o}(e):function(e){return lr.call(e)}(e)}function fr(e){return null!=e&&"object"==typeof e}var hr="[object Symbol]";function pr(e){return"symbol"==typeof e||fr(e)&&dr(e)==hr}function vr(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}const gr=Array.isArray;var mr=1/0,br=nr?nr.prototype:void 0,wr=br?br.toString:void 0;function yr(e){if("string"==typeof e)return e;if(gr(e))return vr(e,yr)+"";if(pr(e))return wr?wr.call(e):"";var t=e+"";return"0"==t&&1/e==-mr?"-0":t}function xr(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Cr(e){return e}var Sr="[object AsyncFunction]",$r="[object Function]",Mr="[object GeneratorFunction]",Or="[object Proxy]";function zr(e){if(!xr(e))return!1;var t=dr(e);return t==$r||t==Mr||t==Sr||t==Or}const Tr=tr["__core-js_shared__"];var Er,Pr=(Er=/[^.]+$/.exec(Tr&&Tr.keys&&Tr.keys.IE_PROTO||""))?"Symbol(src)_1."+Er:"",jr=Function.prototype.toString;function Rr(e){if(null!=e){try{return jr.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var _r=/^\[object .+?Constructor\]$/,kr=Function.prototype,Br=Object.prototype,Ar=kr.toString,Ir=Br.hasOwnProperty,Dr=RegExp("^"+Ar.call(Ir).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Fr(e){return!(!xr(e)||(t=e,Pr&&Pr in t))&&(zr(e)?Dr:_r).test(Rr(e));var t}function Lr(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Fr(n)?n:void 0}const Wr=Lr(tr,"WeakMap");var Nr=Object.create,Hr=function(){function e(){}return function(t){if(!xr(t))return{};if(Nr)return Nr(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const Xr=Hr;var Vr=Date.now,Zr=function(){try{var e=Lr(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();const Yr=Zr;var Ur,qr,Jr,Gr=Yr?function(e,t){return Yr(e,"toString",{configurable:!0,enumerable:!1,value:(n=t,function(){return n}),writable:!0});var n}:Cr,Kr=(Ur=Gr,qr=0,Jr=0,function(){var e=Vr(),t=16-(e-Jr);if(Jr=e,t>0){if(++qr>=800)return arguments[0]}else qr=0;return Ur.apply(void 0,arguments)});const Qr=Kr;var eo=9007199254740991,to=/^(?:0|[1-9]\d*)$/;function no(e,t){var n=typeof e;return!!(t=null==t?eo:t)&&("number"==n||"symbol"!=n&&to.test(e))&&e>-1&&e%1==0&&e<t}function ro(e,t,n){"__proto__"==t&&Yr?Yr(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function oo(e,t){return e===t||e!=e&&t!=t}var io=Object.prototype.hasOwnProperty;function ao(e,t,n){var r=e[t];io.call(e,t)&&oo(r,n)&&(void 0!==n||t in e)||ro(e,t,n)}var lo=Math.max;function so(e,t){return Qr(function(e,t,n){return t=lo(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=lo(r.length-t,0),a=Array(i);++o<i;)a[o]=r[t+o];o=-1;for(var l=Array(t+1);++o<t;)l[o]=r[o];return l[t]=n(a),function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}(e,this,l)}}(e,t,Cr),e+"")}var uo=9007199254740991;function co(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=uo}function fo(e){return null!=e&&co(e.length)&&!zr(e)}var ho=Object.prototype;function po(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ho)}function vo(e){return fr(e)&&"[object Arguments]"==dr(e)}var go=Object.prototype,mo=go.hasOwnProperty,bo=go.propertyIsEnumerable,wo=vo(function(){return arguments}())?vo:function(e){return fr(e)&&mo.call(e,"callee")&&!bo.call(e,"callee")};const yo=wo;var xo="object"==typeof e&&e&&!e.nodeType&&e,Co=xo&&"object"==typeof t&&t&&!t.nodeType&&t,So=Co&&Co.exports===xo?tr.Buffer:void 0;const $o=(So?So.isBuffer:void 0)||function(){return!1};var Mo={};Mo["[object Float32Array]"]=Mo["[object Float64Array]"]=Mo["[object Int8Array]"]=Mo["[object Int16Array]"]=Mo["[object Int32Array]"]=Mo["[object Uint8Array]"]=Mo["[object Uint8ClampedArray]"]=Mo["[object Uint16Array]"]=Mo["[object Uint32Array]"]=!0,Mo["[object Arguments]"]=Mo["[object Array]"]=Mo["[object ArrayBuffer]"]=Mo["[object Boolean]"]=Mo["[object DataView]"]=Mo["[object Date]"]=Mo["[object Error]"]=Mo["[object Function]"]=Mo["[object Map]"]=Mo["[object Number]"]=Mo["[object Object]"]=Mo["[object RegExp]"]=Mo["[object Set]"]=Mo["[object String]"]=Mo["[object WeakMap]"]=!1;var Oo="object"==typeof e&&e&&!e.nodeType&&e,zo=Oo&&"object"==typeof t&&t&&!t.nodeType&&t,To=zo&&zo.exports===Oo&&Qn.process,Eo=function(){try{var e=zo&&zo.require&&zo.require("util").types;return e||To&&To.binding&&To.binding("util")}catch(t){}}(),Po=Eo&&Eo.isTypedArray,jo=Po?function(e){return function(t){return e(t)}}(Po):function(e){return fr(e)&&co(e.length)&&!!Mo[dr(e)]};const Ro=jo;var _o=Object.prototype.hasOwnProperty;function ko(e,t){var n=gr(e),r=!n&&yo(e),o=!n&&!r&&$o(e),i=!n&&!r&&!o&&Ro(e),a=n||r||o||i,l=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],s=l.length;for(var u in e)!t&&!_o.call(e,u)||a&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||no(u,s))||l.push(u);return l}function Bo(e,t){return function(n){return e(t(n))}}const Ao=Bo(Object.keys,Object);var Io=Object.prototype.hasOwnProperty;function Do(e){return fo(e)?ko(e):function(e){if(!po(e))return Ao(e);var t=[];for(var n in Object(e))Io.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}var Fo=Object.prototype.hasOwnProperty;function Lo(e){if(!xr(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=po(e),n=[];for(var r in e)("constructor"!=r||!t&&Fo.call(e,r))&&n.push(r);return n}function Wo(e){return fo(e)?ko(e,!0):Lo(e)}var No=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ho=/^\w*$/;function Xo(e,t){if(gr(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!pr(e))||Ho.test(e)||!No.test(e)||null!=t&&e in Object(t)}const Vo=Lr(Object,"create");var Zo=Object.prototype.hasOwnProperty,Yo=Object.prototype.hasOwnProperty;function Uo(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function qo(e,t){for(var n=e.length;n--;)if(oo(e[n][0],t))return n;return-1}Uo.prototype.clear=function(){this.__data__=Vo?Vo(null):{},this.size=0},Uo.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Uo.prototype.get=function(e){var t=this.__data__;if(Vo){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Zo.call(t,e)?t[e]:void 0},Uo.prototype.has=function(e){var t=this.__data__;return Vo?void 0!==t[e]:Yo.call(t,e)},Uo.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Vo&&void 0===t?"__lodash_hash_undefined__":t,this};var Jo=Array.prototype.splice;function Go(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Go.prototype.clear=function(){this.__data__=[],this.size=0},Go.prototype.delete=function(e){var t=this.__data__,n=qo(t,e);return!(n<0||(n==t.length-1?t.pop():Jo.call(t,n,1),--this.size,0))},Go.prototype.get=function(e){var t=this.__data__,n=qo(t,e);return n<0?void 0:t[n][1]},Go.prototype.has=function(e){return qo(this.__data__,e)>-1},Go.prototype.set=function(e,t){var n=this.__data__,r=qo(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};const Ko=Lr(tr,"Map");function Qo(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function ei(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ei.prototype.clear=function(){this.size=0,this.__data__={hash:new Uo,map:new(Ko||Go),string:new Uo}},ei.prototype.delete=function(e){var t=Qo(this,e).delete(e);return this.size-=t?1:0,t},ei.prototype.get=function(e){return Qo(this,e).get(e)},ei.prototype.has=function(e){return Qo(this,e).has(e)},ei.prototype.set=function(e,t){var n=Qo(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};var ti="Expected a function";function ni(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(ti);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(ni.Cache||ei),n}ni.Cache=ei;var ri=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,oi=/\\(\\)?/g,ii=function(e){var t=ni(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ri,(function(e,n,r,o){t.push(r?o.replace(oi,"$1"):n||e)})),t}));const ai=ii;function li(e){return null==e?"":yr(e)}function si(e,t){return gr(e)?e:Xo(e,t)?[e]:ai(li(e))}var ui=1/0;function ci(e){if("string"==typeof e||pr(e))return e;var t=e+"";return"0"==t&&1/e==-ui?"-0":t}function di(e,t){for(var n=0,r=(t=si(t,e)).length;null!=e&&n<r;)e=e[ci(t[n++])];return n&&n==r?e:void 0}const fi=Bo(Object.getPrototypeOf,Object);var hi="[object Object]",pi=Function.prototype,vi=Object.prototype,gi=pi.toString,mi=vi.hasOwnProperty,bi=gi.call(Object);function wi(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o: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}(e,t,n)}var yi=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function xi(e){return yi.test(e)}var Ci,Si="\\ud800-\\udfff",$i="["+Si+"]",Mi="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Oi="\\ud83c[\\udffb-\\udfff]",zi="[^"+Si+"]",Ti="(?:\\ud83c[\\udde6-\\uddff]){2}",Ei="[\\ud800-\\udbff][\\udc00-\\udfff]",Pi="(?:"+Mi+"|"+Oi+")?",ji="[\\ufe0e\\ufe0f]?",Ri=ji+Pi+"(?:\\u200d(?:"+[zi,Ti,Ei].join("|")+")"+ji+Pi+")*",_i="(?:"+[zi+Mi+"?",Mi,Ti,Ei,$i].join("|")+")",ki=RegExp(Oi+"(?="+Oi+")|"+_i+Ri,"g");function Bi(e){return xi(e)?function(e){return e.match(ki)||[]}(e):function(e){return e.split("")}(e)}const Ai=(Ci="toUpperCase",function(e){var t=xi(e=li(e))?Bi(e):void 0,n=t?t[0]:e.charAt(0),r=t?wi(t,1).join(""):e.slice(1);return n[Ci]()+r});var Ii;const Di=(Ii={"À":"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"},function(e){return null==Ii?void 0:Ii[e]});var Fi=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Li=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g"),Wi=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ni=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Hi="\\ud800-\\udfff",Xi="\\u2700-\\u27bf",Vi="a-z\\xdf-\\xf6\\xf8-\\xff",Zi="A-Z\\xc0-\\xd6\\xd8-\\xde",Yi="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\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",Ui="["+Yi+"]",qi="\\d+",Ji="["+Xi+"]",Gi="["+Vi+"]",Ki="[^"+Hi+Yi+qi+Xi+Vi+Zi+"]",Qi="(?:\\ud83c[\\udde6-\\uddff]){2}",ea="[\\ud800-\\udbff][\\udc00-\\udfff]",ta="["+Zi+"]",na="(?:"+Gi+"|"+Ki+")",ra="(?:"+ta+"|"+Ki+")",oa="(?:['’](?:d|ll|m|re|s|t|ve))?",ia="(?:['’](?:D|LL|M|RE|S|T|VE))?",aa="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",la="[\\ufe0e\\ufe0f]?",sa=la+aa+"(?:\\u200d(?:"+["[^"+Hi+"]",Qi,ea].join("|")+")"+la+aa+")*",ua="(?:"+[Ji,Qi,ea].join("|")+")"+sa,ca=RegExp([ta+"?"+Gi+"+"+oa+"(?="+[Ui,ta,"$"].join("|")+")",ra+"+"+ia+"(?="+[Ui,ta+na,"$"].join("|")+")",ta+"?"+na+"+"+oa,ta+"+"+ia,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",qi,ua].join("|"),"g");function da(e,t,n){return e=li(e),void 0===(t=n?void 0:t)?function(e){return Ni.test(e)}(e)?function(e){return e.match(ca)||[]}(e):function(e){return e.match(Wi)||[]}(e):e.match(t)||[]}var fa=RegExp("['’]","g");function ha(e){var t=this.__data__=new Go(e);this.size=t.size}ha.prototype.clear=function(){this.__data__=new Go,this.size=0},ha.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},ha.prototype.get=function(e){return this.__data__.get(e)},ha.prototype.has=function(e){return this.__data__.has(e)},ha.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Go){var r=n.__data__;if(!Ko||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ei(r)}return n.set(e,t),this.size=n.size,this};var pa="object"==typeof e&&e&&!e.nodeType&&e,va=pa&&"object"==typeof t&&t&&!t.nodeType&&t,ga=va&&va.exports===pa?tr.Buffer:void 0,ma=ga?ga.allocUnsafe:void 0,ba=Object.prototype.propertyIsEnumerable,wa=Object.getOwnPropertySymbols,ya=wa?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}(wa(e),(function(t){return ba.call(e,t)})))}:function(){return[]};const xa=ya;function Ca(e){return function(e,t,n){var r=t(e);return gr(e)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(e))}(e,Do,xa)}const Sa=Lr(tr,"DataView"),$a=Lr(tr,"Promise"),Ma=Lr(tr,"Set");var Oa="[object Map]",za="[object Promise]",Ta="[object Set]",Ea="[object WeakMap]",Pa="[object DataView]",ja=Rr(Sa),Ra=Rr(Ko),_a=Rr($a),ka=Rr(Ma),Ba=Rr(Wr),Aa=dr;(Sa&&Aa(new Sa(new ArrayBuffer(1)))!=Pa||Ko&&Aa(new Ko)!=Oa||$a&&Aa($a.resolve())!=za||Ma&&Aa(new Ma)!=Ta||Wr&&Aa(new Wr)!=Ea)&&(Aa=function(e){var t=dr(e),n="[object Object]"==t?e.constructor:void 0,r=n?Rr(n):"";if(r)switch(r){case ja:return Pa;case Ra:return Oa;case _a:return za;case ka:return Ta;case Ba:return Ea}return t});const Ia=Aa,Da=tr.Uint8Array;function Fa(e,t){var n,r,o=t?(n=e.buffer,r=new n.constructor(n.byteLength),new Da(r).set(new Da(n)),r):e.buffer;return new e.constructor(o,e.byteOffset,e.length)}function La(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new ei;++t<n;)this.add(e[t])}function Wa(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function Na(e,t){return e.has(t)}La.prototype.add=La.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},La.prototype.has=function(e){return this.__data__.has(e)};var Ha=1,Xa=2;function Va(e,t,n,r,o,i){var a=n&Ha,l=e.length,s=t.length;if(l!=s&&!(a&&s>l))return!1;var u=i.get(e),c=i.get(t);if(u&&c)return u==t&&c==e;var d=-1,f=!0,h=n&Xa?new La:void 0;for(i.set(e,t),i.set(t,e);++d<l;){var p=e[d],v=t[d];if(r)var g=a?r(v,p,d,t,e,i):r(p,v,d,e,t,i);if(void 0!==g){if(g)continue;f=!1;break}if(h){if(!Wa(t,(function(e,t){if(!Na(h,t)&&(p===e||o(p,e,n,r,i)))return h.push(t)}))){f=!1;break}}else if(p!==v&&!o(p,v,n,r,i)){f=!1;break}}return i.delete(e),i.delete(t),f}function Za(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function Ya(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var Ua=1,qa=2,Ja="[object Boolean]",Ga="[object Date]",Ka="[object Error]",Qa="[object Map]",el="[object Number]",tl="[object RegExp]",nl="[object Set]",rl="[object String]",ol="[object Symbol]",il="[object ArrayBuffer]",al="[object DataView]",ll=nr?nr.prototype:void 0,sl=ll?ll.valueOf:void 0,ul=1,cl=Object.prototype.hasOwnProperty,dl=1,fl="[object Arguments]",hl="[object Array]",pl="[object Object]",vl=Object.prototype.hasOwnProperty;function gl(e,t,n,r,o,i){var a=gr(e),l=gr(t),s=a?hl:Ia(e),u=l?hl:Ia(t),c=(s=s==fl?pl:s)==pl,d=(u=u==fl?pl:u)==pl,f=s==u;if(f&&$o(e)){if(!$o(t))return!1;a=!0,c=!1}if(f&&!c)return i||(i=new ha),a||Ro(e)?Va(e,t,n,r,o,i):function(e,t,n,r,o,i,a){switch(n){case al:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case il:return!(e.byteLength!=t.byteLength||!i(new Da(e),new Da(t)));case Ja:case Ga:case el:return oo(+e,+t);case Ka:return e.name==t.name&&e.message==t.message;case tl:case rl:return e==t+"";case Qa:var l=Za;case nl:var s=r&Ua;if(l||(l=Ya),e.size!=t.size&&!s)return!1;var u=a.get(e);if(u)return u==t;r|=qa,a.set(e,t);var c=Va(l(e),l(t),r,o,i,a);return a.delete(e),c;case ol:if(sl)return sl.call(e)==sl.call(t)}return!1}(e,t,s,n,r,o,i);if(!(n&dl)){var h=c&&vl.call(e,"__wrapped__"),p=d&&vl.call(t,"__wrapped__");if(h||p){var v=h?e.value():e,g=p?t.value():t;return i||(i=new ha),o(v,g,n,r,i)}}return!!f&&(i||(i=new ha),function(e,t,n,r,o,i){var a=n&ul,l=Ca(e),s=l.length;if(s!=Ca(t).length&&!a)return!1;for(var u=s;u--;){var c=l[u];if(!(a?c in t:cl.call(t,c)))return!1}var d=i.get(e),f=i.get(t);if(d&&f)return d==t&&f==e;var h=!0;i.set(e,t),i.set(t,e);for(var p=a;++u<s;){var v=e[c=l[u]],g=t[c];if(r)var m=a?r(g,v,c,t,e,i):r(v,g,c,e,t,i);if(!(void 0===m?v===g||o(v,g,n,r,i):m)){h=!1;break}p||(p="constructor"==c)}if(h&&!p){var b=e.constructor,w=t.constructor;b==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w||(h=!1)}return i.delete(e),i.delete(t),h}(e,t,n,r,o,i))}function ml(e,t,n,r,o){return e===t||(null==e||null==t||!fr(e)&&!fr(t)?e!=e&&t!=t:gl(e,t,n,r,ml,o))}var bl=1,wl=2;function yl(e){return e==e&&!xr(e)}function xl(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}function Cl(e){var t=function(e){for(var t=Do(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,yl(o)]}return t}(e);return 1==t.length&&t[0][2]?xl(t[0][0],t[0][1]):function(n){return n===e||function(e,t,n,r){var o=n.length,i=o,a=!r;if(null==e)return!i;for(e=Object(e);o--;){var l=n[o];if(a&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++o<i;){var s=(l=n[o])[0],u=e[s],c=l[1];if(a&&l[2]){if(void 0===u&&!(s in e))return!1}else{var d=new ha;if(r)var f=r(u,c,s,e,t,d);if(!(void 0===f?ml(c,u,bl|wl,r,d):f))return!1}}return!0}(n,e,t)}}function Sl(e,t){return null!=e&&t in Object(e)}function $l(e,t){return null!=e&&function(e,t,n){for(var r=-1,o=(t=si(t,e)).length,i=!1;++r<o;){var a=ci(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&co(o)&&no(a,o)&&(gr(e)||yo(e))}(e,t,Sl)}var Ml=1,Ol=2;function zl(e,t){return Xo(e)&&yl(t)?xl(ci(e),t):function(n){var r=function(e,t,n){var r=null==e?void 0:di(e,t);return void 0===r?n:r}(n,e);return void 0===r&&r===t?$l(n,e):ml(t,r,Ml|Ol)}}function Tl(e){return Xo(e)?(t=ci(e),function(e){return null==e?void 0:e[t]}):function(e){return function(t){return di(t,e)}}(e);var t}var El,Pl=function(e,t,n){for(var r=-1,o=Object(e),i=n(e),a=i.length;a--;){var l=i[El?a:++r];if(!1===t(o[l],l,o))break}return e};const jl=Pl;var Rl=function(e,t){return function(n,r){if(null==n)return n;if(!fo(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=Object(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}((function(e,t){return e&&jl(e,t,Do)}));const _l=Rl;function kl(e,t,n){(void 0!==n&&!oo(e[t],n)||void 0===n&&!(t in e))&&ro(e,t,n)}function Bl(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}function Al(e){return function(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var l=t[i],s=r?r(n[l],e[l],l,n,e):void 0;void 0===s&&(s=e[l]),o?ro(n,l,s):ao(n,l,s)}return n}(e,Wo(e))}function Il(e,t,n,r,o,i,a){var l=Bl(e,n),s=Bl(t,n),u=a.get(s);if(u)kl(e,n,u);else{var c,d=i?i(l,s,n+"",e,t,a):void 0,f=void 0===d;if(f){var h=gr(s),p=!h&&$o(s),v=!h&&!p&&Ro(s);d=s,h||p||v?gr(l)?d=l:fr(c=l)&&fo(c)?d=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(l):p?(f=!1,d=function(e,t){if(t)return e.slice();var n=e.length,r=ma?ma(n):new e.constructor(n);return e.copy(r),r}(s,!0)):v?(f=!1,d=Fa(s,!0)):d=[]:function(e){if(!fr(e)||dr(e)!=hi)return!1;var t=fi(e);if(null===t)return!0;var n=mi.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&gi.call(n)==bi}(s)||yo(s)?(d=l,yo(l)?d=Al(l):xr(l)&&!zr(l)||(d=function(e){return"function"!=typeof e.constructor||po(e)?{}:Xr(fi(e))}(s))):f=!1}f&&(a.set(s,d),o(d,s,r,i,a),a.delete(s)),kl(e,n,d)}}function Dl(e,t,n,r,o){e!==t&&jl(t,(function(i,a){if(o||(o=new ha),xr(i))Il(e,t,a,n,Dl,r,o);else{var l=r?r(Bl(e,a),i,a+"",e,t,o):void 0;void 0===l&&(l=i),kl(e,a,l)}}),Wo)}function Fl(e,t){var n=-1,r=fo(e)?Array(e.length):[];return _l(e,(function(e,o,i){r[++n]=t(e,o,i)})),r}var Ll,Wl=(Ll=function(e,t,n){return e+(n?"-":"")+t.toLowerCase()},function(e){return function(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}(da(function(e){return(e=li(e))&&e.replace(Fi,Di).replace(Li,"")}(e).replace(fa,"")),Ll,"")});const Nl=Wl;var Hl,Xl=(Hl=function(e,t,n){Dl(e,t,n)},so((function(e,t){var n=-1,r=t.length,o=r>1?t[r-1]:void 0,i=r>2?t[2]:void 0;for(o=Hl.length>3&&"function"==typeof o?(r--,o):void 0,i&&function(e,t,n){if(!xr(n))return!1;var r=typeof t;return!!("number"==r?fo(n)&&no(t,n.length):"string"==r&&t in n)&&oo(n[t],e)}(t[0],t[1],i)&&(o=r<3?void 0:o,r=1),e=Object(e);++n<r;){var a=t[n];a&&Hl(e,a,n,o)}return e})));const Vl=Xl,Zl={fontFamily:'v-sans, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',fontFamilyMono:"v-mono, SFMono-Regular, Menlo, Consolas, Courier, monospace",fontWeight:"400",fontWeightStrong:"500",cubicBezierEaseInOut:"cubic-bezier(.4, 0, .2, 1)",cubicBezierEaseOut:"cubic-bezier(0, 0, .2, 1)",cubicBezierEaseIn:"cubic-bezier(.4, 0, 1, 1)",borderRadius:"3px",borderRadiusSmall:"2px",fontSize:"14px",fontSizeMini:"12px",fontSizeTiny:"12px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",lineHeight:"1.6",heightMini:"16px",heightTiny:"22px",heightSmall:"28px",heightMedium:"34px",heightLarge:"40px",heightHuge:"46px"},{fontSize:Yl,fontFamily:Ul,lineHeight:ql}=Zl,Jl=We("body",`\n margin: 0;\n font-size: ${Yl};\n font-family: ${Ul};\n line-height: ${ql};\n -webkit-text-size-adjust: 100%;\n -webkit-tap-highlight-color: transparent;\n`,[We("input","\n font-family: inherit;\n font-size: inherit;\n ")]),Gl="n-config-provider",Kl="naive-ui-style";function Ql(e,t,n,r,o,i){const a=Ht(),l=h(Gl,null);if(n){const e=()=>{const e=null==i?void 0:i.value;n.mount({id:void 0===e?t:e+t,head:!0,props:{bPrefix:e?`.${e}-`:void 0},anchorMetaName:Kl,ssr:a}),(null==l?void 0:l.preflightStyleDisabled)||Jl.mount({id:"n-global",head:!0,anchorMetaName:Kl,ssr:a})};a?e():$(e)}const s=c((()=>{var t;const{theme:{common:n,self:i,peers:a={}}={},themeOverrides:s={},builtinThemeOverrides:u={}}=o,{common:c,peers:d}=s,{common:f,[e]:{common:h,self:p,peers:v={}}={}}=(null==l?void 0:l.mergedThemeRef.value)||{},{common:g,[e]:m={}}=(null==l?void 0:l.mergedThemeOverridesRef.value)||{},{common:b,peers:w={}}=m,y=Vl({},n||h||f||r.common,g,b,c);return{common:y,self:Vl(null===(t=i||p||r.self)||void 0===t?void 0:t(y),u,m,s),peers:Vl({},r.peers,v,a),peerOverrides:Vl({},u.peers,w,d)}}));return s}Ql.props={theme:Object,themeOverrides:Object,builtinThemeOverrides:Object};const es="n";function ts(e={},t={defaultBordered:!0}){const n=h(Gl,null);return{inlineThemeDisabled:null==n?void 0:n.inlineThemeDisabled,mergedRtlRef:null==n?void 0:n.mergedRtlRef,mergedComponentPropsRef:null==n?void 0:n.mergedComponentPropsRef,mergedBreakpointsRef:null==n?void 0:n.mergedBreakpointsRef,mergedBorderedRef:c((()=>{var r,o;const{bordered:i}=e;return void 0!==i?i:null===(o=null!==(r=null==n?void 0:n.mergedBorderedRef.value)&&void 0!==r?r:t.defaultBordered)||void 0===o||o})),mergedClsPrefixRef:c((()=>(null==n?void 0:n.mergedClsPrefixRef.value)||es)),namespaceRef:c((()=>null==n?void 0:n.mergedNamespaceRef.value))}}const ns={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"}};function rs(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}function os(e){return function(t,n){var r;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,i=null!=n&&n.width?String(n.width):o;r=e.formattingValues[i]||e.formattingValues[o]}else{var a=e.defaultWidth,l=null!=n&&n.width?String(n.width):e.defaultWidth;r=e.values[l]||e.values[a]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function is(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var a,l=i[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(s)?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}(s,(function(e){return e.test(l)})):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}(s,(function(e){return e.test(l)}));return a=e.valueCallback?e.valueCallback(u):u,{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(l.length)}}}var as={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"}};const ls=function(e,t,n){var r,o=as[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},ss={date:rs({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:rs({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:rs({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var us={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};const cs=function(e,t,n,r){return us[e]},ds={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:os({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:os({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:os({values:{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"]},defaultWidth:"wide"}),day:os({values:{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"]},defaultWidth:"wide"}),dayPeriod:os({values:{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"}},defaultWidth:"wide",formattingValues:{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"}},defaultFormattingWidth:"wide"})};var fs,hs={ordinalNumber:(fs={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(fs.matchPattern);if(!n)return null;var r=n[0],o=e.match(fs.parsePattern);if(!o)return null;var i=fs.valueCallback?fs.valueCallback(o[0]):o[0];return{value:i=t.valueCallback?t.valueCallback(i):i,rest:e.slice(r.length)}}),era:is({matchPatterns:{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},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:is({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:is({matchPatterns:{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},defaultMatchWidth:"wide",parsePatterns:{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]},defaultParseWidth:"any"}),day:is({matchPatterns:{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},defaultMatchWidth:"wide",parsePatterns:{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]},defaultParseWidth:"any"}),dayPeriod:is({matchPatterns:{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},defaultMatchWidth:"any",parsePatterns:{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}},defaultParseWidth:"any"})};const ps={name:"en-US",locale:{code:"en-US",formatDistance:ls,formatLong:ss,formatRelative:cs,localize:ds,match:hs,options:{weekStartsOn:0,firstWeekContainsDate:1}}};function vs(e,t,n,r){var o;n||se("useThemeClass","cssVarsRef is not passed");const i=null===(o=h(Gl,null))||void 0===o?void 0:o.mergedThemeHashRef,a=l(""),s=Ht();let u;const c=`__${e}`;return M((()=>{(()=>{let e=c;const o=t?t.value:void 0,l=null==i?void 0:i.value;l&&(e+="-"+l),o&&(e+="-"+o);const{themeOverrides:d,builtinThemeOverrides:f}=r;d&&(e+="-"+Pe(JSON.stringify(d))),f&&(e+="-"+Pe(JSON.stringify(f))),a.value=e,u=()=>{const t=n.value;let r="";for(const e in t)r+=`${e}: ${t[e]};`;We(`.${e}`,r).mount({id:e,ssr:s}),u=void 0}})()})),{themeClass:a,onRender:()=>{null==u||u()}}}function gs(e,t,n){if(!t)return;const r=Ht(),o=c((()=>{const{value:n}=t;if(!n)return;const r=n[e];return r||void 0})),i=()=>{M((()=>{const{value:t}=n,i=`${t}${e}Rtl`;if(function(e,t){if(void 0===e)return!1;if(t){const{context:{ids:n}}=t;return n.has(e)}return null!==Ce(e)}(i,r))return;const{value:a}=o;a&&a.style.mount({id:i,head:!0,anchorMetaName:Kl,props:{bPrefix:t?`.${t}-`:void 0},ssr:r})}))};return r?i():$(i),o}function ms(e,t){return a({name:Ai(e),setup(){var n;const r=null===(n=h(Gl,null))||void 0===n?void 0:n.mergedIconsRef;return()=>{var n;const o=null===(n=null==r?void 0:r.value)||void 0===n?void 0:n[e];return o?o():t}}})}const bs=ms("rotateClockwise",b("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},b("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"}),b("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"}))),ws=ms("rotateClockwise",b("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},b("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"}),b("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"}))),ys=ms("zoomIn",b("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},b("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"}),b("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"}))),xs=ms("zoomOut",b("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},b("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"}),b("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"}))),Cs=a({name:"ResizeSmall",render:()=>b("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},b("g",{fill:"none"},b("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"})))}),Ss=He("base-icon","\n height: 1em;\n width: 1em;\n line-height: 1em;\n text-align: center;\n display: inline-block;\n position: relative;\n fill: currentColor;\n transform: translateZ(0);\n",[We("svg","\n height: 1em;\n width: 1em;\n ")]),$s=a({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){!function(e,t,n){if(!t)return void se("use-style","No style is specified.");const r=Ht(),o=h(Gl,null),i=()=>{const i=null==n?void 0:n.value;t.mount({id:void 0===i?e:i+e,head:!0,anchorMetaName:Kl,props:{bPrefix:i?`.${i}-`:void 0},ssr:r}),(null==o?void 0:o.preflightStyleDisabled)||Jl.mount({id:"n-global",head:!0,anchorMetaName:Kl,ssr:r})};r?i():$(i)}("-base-icon",Ss,m(e,"clsPrefix"))},render(){return b("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)}}),Ms="#FFF",Os="#000",zs="#000",Ts="#fff",Es="#fff",Ps="#fff",js="#fff",Rs="0.82",_s="0.72",ks="0.38",Bs="0.24",As="0.18",Is="0.6",Ds="0.5",Fs="0.2",Ls=".08",Ws="0",Ns="0.25",Hs="0.4",Xs="#36ad6a",Vs="#18a058",Zs="#0c7a43",Ys="#36ad6a",Us="#4098fc",qs="#2080f0",Js="#1060c9",Gs="#4098fc",Ks="#de576d",Qs="#d03050",eu="#ab1f3f",tu="#de576d",nu="#fcb040",ru="#f0a020",ou="#c97c10",iu="#fcb040",au="#36ad6a",lu="#18a058",su="#0c7a43",uu="#36ad6a",cu=J(Ms),du=J(Os),fu="rgba("+du.slice(0,3).join(", ")+", ";function hu(e){return fu+String(e)+")"}function pu(e){const t=Array.from(du);return t[3]=Number(e),K(cu,t)}const vu=Object.assign(Object.assign({name:"common"},Zl),{baseColor:Ms,primaryColor:Vs,primaryColorHover:Xs,primaryColorPressed:Zs,primaryColorSuppl:Ys,infoColor:qs,infoColorHover:Us,infoColorPressed:Js,infoColorSuppl:Gs,successColor:lu,successColorHover:au,successColorPressed:su,successColorSuppl:uu,warningColor:ru,warningColorHover:nu,warningColorPressed:ou,warningColorSuppl:iu,errorColor:Qs,errorColorHover:Ks,errorColorPressed:eu,errorColorSuppl:tu,textColorBase:zs,textColor1:"rgb(31, 34, 37)",textColor2:"rgb(51, 54, 57)",textColor3:"rgb(118, 124, 130)",textColorDisabled:pu(Bs),placeholderColor:pu(Bs),placeholderColorDisabled:pu(As),iconColor:pu(Bs),iconColorHover:Q(pu(Bs),{lightness:.75}),iconColorPressed:Q(pu(Bs),{lightness:.9}),iconColorDisabled:pu(As),opacity1:Rs,opacity2:_s,opacity3:ks,opacity4:Bs,opacity5:As,dividerColor:"rgb(239, 239, 245)",borderColor:"rgb(224, 224, 230)",closeIconColor:pu(Number(Is)),closeIconColorHover:pu(Number(Is)),closeIconColorPressed:pu(Number(Is)),closeColorHover:"rgba(0, 0, 0, .09)",closeColorPressed:"rgba(0, 0, 0, .13)",clearColor:pu(Bs),clearColorHover:Q(pu(Bs),{lightness:.75}),clearColorPressed:Q(pu(Bs),{lightness:.9}),scrollbarColor:hu(Ns),scrollbarColorHover:hu(Hs),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:pu(Ls),railColor:"rgb(219, 219, 223)",popoverColor:Ts,tableColor:Es,cardColor:Es,modalColor:Ps,bodyColor:js,tagColor:"#eee",avatarColor:pu(Fs),invertedColor:"rgb(0, 20, 40)",inputColor:pu(Ws),codeColor:"rgb(244, 244, 248)",tabColor:"rgb(247, 247, 250)",actionColor:"rgb(250, 250, 252)",tableHeaderColor:"rgb(250, 250, 252)",hoverColor:"rgb(243, 243, 245)",tableColorHover:"rgba(0, 0, 100, 0.03)",tableColorStriped:"rgba(0, 0, 100, 0.02)",pressedColor:"rgb(237, 237, 239)",opacityDisabled:Ds,inputColorDisabled:"rgb(250, 250, 252)",buttonColor2:"rgba(46, 51, 56, .05)",buttonColor2Hover:"rgba(46, 51, 56, .09)",buttonColor2Pressed:"rgba(46, 51, 56, .13)",boxShadow1:"0 1px 2px -2px rgba(0, 0, 0, .08), 0 3px 6px 0 rgba(0, 0, 0, .06), 0 5px 12px 4px rgba(0, 0, 0, .04)",boxShadow2:"0 3px 6px -4px rgba(0, 0, 0, .12), 0 6px 16px 0 rgba(0, 0, 0, .08), 0 9px 28px 8px rgba(0, 0, 0, .05)",boxShadow3:"0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)"}),gu=e("a",vu),mu={name:"Scrollbar",common:gu,self:e=>{const{scrollbarColor:t,scrollbarColorHover:n}=e;return{color:t,colorHover:n}}},{cubicBezierEaseInOut:bu}=Zl;function wu({name:e="fade-in",enterDuration:t="0.2s",leaveDuration:n="0.2s",enterCubicBezier:r=bu,leaveCubicBezier:o=bu}={}){return[We(`&.${e}-transition-enter-active`,{transition:`all ${t} ${r}!important`}),We(`&.${e}-transition-leave-active`,{transition:`all ${n} ${o}!important`}),We(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0}),We(`&.${e}-transition-leave-from, &.${e}-transition-enter-to`,{opacity:1})]}const yu=He("scrollbar","\n overflow: hidden;\n position: relative;\n z-index: auto;\n height: 100%;\n width: 100%;\n",[We(">",[He("scrollbar-container","\n width: 100%;\n overflow: scroll;\n height: 100%;\n max-height: inherit;\n scrollbar-width: none;\n ",[We("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb","\n width: 0;\n height: 0;\n display: none;\n "),We(">",[He("scrollbar-content","\n box-sizing: border-box;\n min-width: 100%;\n ")])])]),We(">, +",[He("scrollbar-rail","\n position: absolute;\n pointer-events: none;\n user-select: none;\n -webkit-user-select: none;\n ",[Ve("horizontal","\n left: 2px;\n right: 2px;\n bottom: 4px;\n height: var(--n-scrollbar-height);\n ",[We(">",[Xe("scrollbar","\n height: var(--n-scrollbar-height);\n border-radius: var(--n-scrollbar-border-radius);\n right: 0;\n ")])]),Ve("vertical","\n right: 4px;\n top: 2px;\n bottom: 2px;\n width: var(--n-scrollbar-width);\n ",[We(">",[Xe("scrollbar","\n width: var(--n-scrollbar-width);\n border-radius: var(--n-scrollbar-border-radius);\n bottom: 0;\n ")])]),Ve("disabled",[We(">",[Xe("scrollbar",{pointerEvents:"none"})])]),We(">",[Xe("scrollbar","\n position: absolute;\n cursor: pointer;\n pointer-events: all;\n background-color: var(--n-scrollbar-color);\n transition: background-color .2s var(--n-scrollbar-bezier);\n ",[wu(),We("&:hover",{backgroundColor:"var(--n-scrollbar-color-hover)"})])])])])]),xu=Object.assign(Object.assign({},Ql.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}),Cu=a({name:"Scrollbar",props:xu,inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=ts(e),o=gs("Scrollbar",r,t),i=l(null),a=l(null),s=l(null),u=l(null),h=l(null),p=l(null),v=l(null),g=l(null),m=l(null),b=l(null),w=l(null),y=l(0),x=l(0),$=l(!1),O=l(!1);let z,T,E=!1,P=!1,j=0,R=0,_=0,k=0;const B=ht(),I=c((()=>{const{value:t}=g,{value:n}=p,{value:r}=b;return null===t||null===n||null===r?0:Math.min(t,r*t/n+1.5*e.size)})),D=c((()=>`${I.value}px`)),F=c((()=>{const{value:t}=m,{value:n}=v,{value:r}=w;return null===t||null===n||null===r?0:r*t/n+1.5*e.size})),L=c((()=>`${F.value}px`)),W=c((()=>{const{value:e}=g,{value:t}=y,{value:n}=p,{value:r}=b;if(null===e||null===n||null===r)return 0;{const o=n-e;return o?t/o*(r-I.value):0}})),N=c((()=>`${W.value}px`)),H=c((()=>{const{value:e}=m,{value:t}=x,{value:n}=v,{value:r}=w;if(null===e||null===n||null===r)return 0;{const o=n-e;return o?t/o*(r-F.value):0}})),X=c((()=>`${H.value}px`)),V=c((()=>{const{value:e}=g,{value:t}=p;return null!==e&&null!==t&&t>e})),Z=c((()=>{const{value:e}=m,{value:t}=v;return null!==e&&null!==t&&t>e})),Y=c((()=>{const{trigger:t}=e;return"none"===t||$.value})),U=c((()=>{const{trigger:t}=e;return"none"===t||O.value})),q=c((()=>{const{container:t}=e;return t?t():a.value})),J=c((()=>{const{content:t}=e;return t?t():s.value})),G=function(e){const t={isDeactivated:!1};let n=!1;return C((()=>{t.isDeactivated=!1,n?e():n=!0})),S((()=>{t.isDeactivated=!0,n||(n=!0)})),t}((()=>{e.container||K({top:y.value,left:x.value})})),K=(t,n)=>{if(!e.scrollable)return;if("number"==typeof t)return void Q(null!=n?n:0,t,0,!1,"auto");const{left:r,top:o,index:i,elSize:a,position:l,behavior:s,el:u,debounce:c=!0}=t;void 0===r&&void 0===o||Q(null!=r?r:0,null!=o?o:0,0,!1,s),void 0!==u?Q(0,u.offsetTop,u.offsetHeight,c,s):void 0!==i&&void 0!==a?Q(0,i*a,a,c,s):"bottom"===l?Q(0,Number.MAX_SAFE_INTEGER,0,!1,s):"top"===l&&Q(0,0,0,!1,s)};function Q(e,t,n,r,o){const{value:i}=q;if(i){if(r){const{scrollTop:r,offsetHeight:a}=i;if(t>r)return void(t+n<=r+a||i.scrollTo({left:e,top:t+n-a,behavior:o}))}i.scrollTo({left:e,top:t,behavior:o})}}function ee(){void 0!==T&&window.clearTimeout(T),T=window.setTimeout((()=>{O.value=!1}),e.duration),void 0!==z&&window.clearTimeout(z),z=window.setTimeout((()=>{$.value=!1}),e.duration)}function te(){const{value:e}=q;e&&(y.value=e.scrollTop,x.value=e.scrollLeft*((null==o?void 0:o.value)?-1:1))}function ne(){const{value:e}=q;e&&(y.value=e.scrollTop,x.value=e.scrollLeft*((null==o?void 0:o.value)?-1:1),g.value=e.offsetHeight,m.value=e.offsetWidth,p.value=e.scrollHeight,v.value=e.scrollWidth);const{value:t}=h,{value:n}=u;t&&(w.value=t.offsetWidth),n&&(b.value=n.offsetHeight)}function re(){e.scrollable&&(e.useUnifiedContainer?ne():(function(){const{value:e}=J;e&&(p.value=e.offsetHeight,v.value=e.offsetWidth);const{value:t}=q;t&&(g.value=t.offsetHeight,m.value=t.offsetWidth);const{value:n}=h,{value:r}=u;n&&(w.value=n.offsetWidth),r&&(b.value=r.offsetHeight)}(),te()))}function oe(e){var t;return!(null===(t=i.value)||void 0===t?void 0:t.contains(A(e)))}function ie(t){if(!P)return;void 0!==z&&window.clearTimeout(z),void 0!==T&&window.clearTimeout(T);const{value:n}=m,{value:r}=v,{value:i}=F;if(null===n||null===r)return;const a=(null==o?void 0:o.value)?window.innerWidth-t.clientX-_:t.clientX-_,l=r-n;let s=R+a*(r-n)/(n-i);s=Math.min(l,s),s=Math.max(s,0);const{value:u}=q;if(u){u.scrollLeft=s*((null==o?void 0:o.value)?-1:1);const{internalOnUpdateScrollLeft:t}=e;t&&t(s)}}function ae(e){e.preventDefault(),e.stopPropagation(),ut("mousemove",window,ie,!0),ut("mouseup",window,ae,!0),P=!1,re(),oe(e)&&ee()}function le(e){if(!E)return;void 0!==z&&window.clearTimeout(z),void 0!==T&&window.clearTimeout(T);const{value:t}=g,{value:n}=p,{value:r}=I;if(null===t||null===n)return;const o=e.clientY-k,i=n-t;let a=j+o*(n-t)/(t-r);a=Math.min(i,a),a=Math.max(a,0);const{value:l}=q;l&&(l.scrollTop=a)}function se(e){e.preventDefault(),e.stopPropagation(),ut("mousemove",window,le,!0),ut("mouseup",window,se,!0),E=!1,re(),oe(e)&&ee()}M((()=>{const{value:e}=Z,{value:n}=V,{value:r}=t,{value:o}=h,{value:i}=u;o&&(e?o.classList.remove(`${r}-scrollbar-rail--disabled`):o.classList.add(`${r}-scrollbar-rail--disabled`)),i&&(n?i.classList.remove(`${r}-scrollbar-rail--disabled`):i.classList.add(`${r}-scrollbar-rail--disabled`))})),d((()=>{e.container||re()})),f((()=>{void 0!==z&&window.clearTimeout(z),void 0!==T&&window.clearTimeout(T),ut("mousemove",window,le,!0),ut("mouseup",window,se,!0)}));const ue=Ql("Scrollbar","-scrollbar",yu,mu,e,t),ce=c((()=>{const{common:{cubicBezierEaseInOut:e,scrollbarBorderRadius:t,scrollbarHeight:n,scrollbarWidth:r},self:{color:o,colorHover:i}}=ue.value;return{"--n-scrollbar-bezier":e,"--n-scrollbar-color":o,"--n-scrollbar-color-hover":i,"--n-scrollbar-border-radius":t,"--n-scrollbar-width":r,"--n-scrollbar-height":n}})),de=n?vs("scrollbar",void 0,ce,e):void 0,fe={scrollTo:K,scrollBy:(t,n)=>{if(!e.scrollable)return;const{value:r}=q;r&&("object"==typeof t?r.scrollBy(t):r.scrollBy(t,n||0))},sync:re,syncUnifiedContainer:ne,handleMouseEnterWrapper:function(){void 0!==z&&window.clearTimeout(z),$.value=!0,void 0!==T&&window.clearTimeout(T),O.value=!0,re()},handleMouseLeaveWrapper:function(){ee()}};return Object.assign(Object.assign({},fe),{mergedClsPrefix:t,rtlEnabled:o,containerScrollTop:y,wrapperRef:i,containerRef:a,contentRef:s,yRailRef:u,xRailRef:h,needYBar:V,needXBar:Z,yBarSizePx:D,xBarSizePx:L,yBarTopPx:N,xBarLeftPx:X,isShowXBar:Y,isShowYBar:U,isIos:B,handleScroll:function(t){const{onScroll:n}=e;n&&n(t),te()},handleContentResize:()=>{G.isDeactivated||re()},handleContainerResize:t=>{if(G.isDeactivated)return;const{onResize:n}=e;n&&n(t),re()},handleYScrollMouseDown:function(e){e.preventDefault(),e.stopPropagation(),E=!0,st("mousemove",window,le,!0),st("mouseup",window,se,!0),j=y.value,k=e.clientY},handleXScrollMouseDown:function(e){e.preventDefault(),e.stopPropagation(),P=!0,st("mousemove",window,ie,!0),st("mouseup",window,ae,!0),R=x.value,_=(null==o?void 0:o.value)?window.innerWidth-e.clientX:e.clientX},cssVars:n?void 0:ce,themeClass:null==de?void 0:de.themeClass,onRender:null==de?void 0:de.onRender})},render(){var e;const{$slots:t,mergedClsPrefix:n,triggerDisplayManually:o,rtlEnabled:i,internalHoistYRail:a}=this;if(!this.scrollable)return null===(e=t.default)||void 0===e?void 0:e.call(t);const l="none"===this.trigger,s=()=>b("div",{ref:"yRailRef",class:[`${n}-scrollbar-rail`,`${n}-scrollbar-rail--vertical`],"data-scrollbar-rail":!0,style:this.verticalRailStyle,"aria-hidden":!0},b(l?pe:O,l?null:{name:"fade-in-transition"},{default:()=>this.needYBar&&this.isShowYBar&&!this.isIos?b("div",{class:`${n}-scrollbar-rail__scrollbar`,style:{height:this.yBarSizePx,top:this.yBarTopPx},onMousedown:this.handleYScrollMouseDown}):null})),u=()=>{var e,r;return null===(e=this.onRender)||void 0===e||e.call(this),b("div",z(this.$attrs,{role:"none",ref:"wrapperRef",class:[`${n}-scrollbar`,this.themeClass,i&&`${n}-scrollbar--rtl`],style:this.cssVars,onMouseenter:o?void 0:this.handleMouseEnterWrapper,onMouseleave:o?void 0:this.handleMouseLeaveWrapper}),[this.container?null===(r=t.default)||void 0===r?void 0:r.call(t):b("div",{role:"none",ref:"containerRef",class:[`${n}-scrollbar-container`,this.containerClass],style:this.containerStyle,onScroll:this.handleScroll,onWheel:this.onWheel},b(Zn,{onResize:this.handleContentResize},{default:()=>b("div",{ref:"contentRef",role:"none",style:[{width:this.xScrollable?"fit-content":null},this.contentStyle],class:[`${n}-scrollbar-content`,this.contentClass]},t)})),a?null:s(),this.xScrollable&&b("div",{ref:"xRailRef",class:[`${n}-scrollbar-rail`,`${n}-scrollbar-rail--horizontal`],style:this.horizontalRailStyle,"data-scrollbar-rail":!0,"aria-hidden":!0},b(l?pe:O,l?null:{name:"fade-in-transition"},{default:()=>this.needXBar&&this.isShowXBar&&!this.isIos?b("div",{class:`${n}-scrollbar-rail__scrollbar`,style:{width:this.xBarSizePx,right:i?this.xBarLeftPx:void 0,left:i?void 0:this.xBarLeftPx},onMousedown:this.handleXScrollMouseDown}):null}))])},c=this.container?u():b(Zn,{onResize:this.handleContainerResize},{default:u});return a?b(r,null,c,s()):c}}),Su=Cu,{cubicBezierEaseIn:$u,cubicBezierEaseOut:Mu}=Zl;function Ou({transformOrigin:e="inherit",duration:t=".2s",enterScale:n=".9",originalTransform:r="",originalTransition:o=""}={}){return[We("&.fade-in-scale-up-transition-leave-active",{transformOrigin:e,transition:`opacity ${t} ${$u}, transform ${t} ${$u} ${o&&","+o}`}),We("&.fade-in-scale-up-transition-enter-active",{transformOrigin:e,transition:`opacity ${t} ${Mu}, transform ${t} ${Mu} ${o&&","+o}`}),We("&.fade-in-scale-up-transition-enter-from, &.fade-in-scale-up-transition-leave-to",{opacity:0,transform:`${r} scale(${n})`}),We("&.fade-in-scale-up-transition-leave-from, &.fade-in-scale-up-transition-enter-to",{opacity:1,transform:`${r} scale(1)`})]}const zu={space:"6px",spaceArrow:"10px",arrowOffset:"10px",arrowOffsetVertical:"10px",arrowHeight:"6px",padding:"8px 14px"},Tu={name:"Popover",common:gu,self:e=>{const{boxShadow2:t,popoverColor:n,textColor2:r,borderRadius:o,fontSize:i,dividerColor:a}=e;return Object.assign(Object.assign({},zu),{fontSize:i,borderRadius:o,color:n,dividerColor:a,textColor:r,boxShadow:t})}},Eu=Tu,Pu={top:"bottom",bottom:"top",left:"right",right:"left"},ju="var(--n-arrow-height) * 1.414",Ru=We([He("popover","\n transition:\n box-shadow .3s var(--n-bezier),\n background-color .3s var(--n-bezier),\n color .3s var(--n-bezier);\n position: relative;\n font-size: var(--n-font-size);\n color: var(--n-text-color);\n box-shadow: var(--n-box-shadow);\n word-break: break-word;\n ",[We(">",[He("scrollbar","\n height: inherit;\n max-height: inherit;\n ")]),Ze("raw","\n background-color: var(--n-color);\n border-radius: var(--n-border-radius);\n ",[Ze("scrollable",[Ze("show-header-or-footer","padding: var(--n-padding);")])]),Xe("header","\n padding: var(--n-padding);\n border-bottom: 1px solid var(--n-divider-color);\n transition: border-color .3s var(--n-bezier);\n "),Xe("footer","\n padding: var(--n-padding);\n border-top: 1px solid var(--n-divider-color);\n transition: border-color .3s var(--n-bezier);\n "),Ve("scrollable, show-header-or-footer",[Xe("content","\n padding: var(--n-padding);\n ")])]),He("popover-shared","\n transform-origin: inherit;\n ",[He("popover-arrow-wrapper","\n position: absolute;\n overflow: hidden;\n pointer-events: none;\n ",[He("popover-arrow",`\n transition: background-color .3s var(--n-bezier);\n position: absolute;\n display: block;\n width: calc(${ju});\n height: calc(${ju});\n box-shadow: 0 0 8px 0 rgba(0, 0, 0, .12);\n transform: rotate(45deg);\n background-color: var(--n-color);\n pointer-events: all;\n `)]),We("&.popover-transition-enter-from, &.popover-transition-leave-to","\n opacity: 0;\n transform: scale(.85);\n "),We("&.popover-transition-enter-to, &.popover-transition-leave-from","\n transform: scale(1);\n opacity: 1;\n "),We("&.popover-transition-enter-active","\n transition:\n box-shadow .3s var(--n-bezier),\n background-color .3s var(--n-bezier),\n color .3s var(--n-bezier),\n opacity .15s var(--n-bezier-ease-out),\n transform .15s var(--n-bezier-ease-out);\n "),We("&.popover-transition-leave-active","\n transition:\n box-shadow .3s var(--n-bezier),\n background-color .3s var(--n-bezier),\n color .3s var(--n-bezier),\n opacity .15s var(--n-bezier-ease-in),\n transform .15s var(--n-bezier-ease-in);\n ")]),Iu("top-start",`\n top: calc(${ju} / -2);\n left: calc(${Au("top-start")} - var(--v-offset-left));\n `),Iu("top",`\n top: calc(${ju} / -2);\n transform: translateX(calc(${ju} / -2)) rotate(45deg);\n left: 50%;\n `),Iu("top-end",`\n top: calc(${ju} / -2);\n right: calc(${Au("top-end")} + var(--v-offset-left));\n `),Iu("bottom-start",`\n bottom: calc(${ju} / -2);\n left: calc(${Au("bottom-start")} - var(--v-offset-left));\n `),Iu("bottom",`\n bottom: calc(${ju} / -2);\n transform: translateX(calc(${ju} / -2)) rotate(45deg);\n left: 50%;\n `),Iu("bottom-end",`\n bottom: calc(${ju} / -2);\n right: calc(${Au("bottom-end")} + var(--v-offset-left));\n `),Iu("left-start",`\n left: calc(${ju} / -2);\n top: calc(${Au("left-start")} - var(--v-offset-top));\n `),Iu("left",`\n left: calc(${ju} / -2);\n transform: translateY(calc(${ju} / -2)) rotate(45deg);\n top: 50%;\n `),Iu("left-end",`\n left: calc(${ju} / -2);\n bottom: calc(${Au("left-end")} + var(--v-offset-top));\n `),Iu("right-start",`\n right: calc(${ju} / -2);\n top: calc(${Au("right-start")} - var(--v-offset-top));\n `),Iu("right",`\n right: calc(${ju} / -2);\n transform: translateY(calc(${ju} / -2)) rotate(45deg);\n top: 50%;\n `),Iu("right-end",`\n right: calc(${ju} / -2);\n bottom: calc(${Au("right-end")} + var(--v-offset-top));\n `),...(_u={top:["right-start","left-start"],right:["top-end","bottom-end"],bottom:["right-end","left-end"],left:["top-start","bottom-start"]},ku=(e,t)=>{const n=["right","left"].includes(t),r=n?"width":"height";return e.map((e=>{const o="end"===e.split("-")[1],i=`calc((var(--v-target-${r}, 0px) - ${ju}) / 2)`,a=Au(e);return We(`[v-placement="${e}"] >`,[He("popover-shared",[Ve("center-arrow",[He("popover-arrow",`${t}: calc(max(${i}, ${a}) ${o?"+":"-"} var(--v-offset-${n?"left":"top"}));`)])])])}))},(gr(_u)?vr:Fl)(_u,"function"==typeof(Bu=ku)?Bu:null==Bu?Cr:"object"==typeof Bu?gr(Bu)?zl(Bu[0],Bu[1]):Cl(Bu):Tl(Bu)))]);var _u,ku,Bu;function Au(e){return["top","bottom"].includes(e.split("-")[0])?"var(--n-arrow-offset)":"var(--n-arrow-offset-vertical)"}function Iu(e,t){const n=e.split("-")[0],r=["top","bottom"].includes(n)?"height: var(--n-space-arrow);":"width: var(--n-space-arrow);";return We(`[v-placement="${e}"] >`,[He("popover-shared",`\n margin-${Pu[n]}: var(--n-space);\n `,[Ve("show-arrow",`\n margin-${Pu[n]}: var(--n-space-arrow);\n `),Ve("overlap","\n margin: 0;\n "),Ye("popover-arrow-wrapper",`\n right: 0;\n left: 0;\n top: 0;\n bottom: 0;\n ${n}: 100%;\n ${Pu[n]}: auto;\n ${r}\n `,[He("popover-arrow",t)])])])}const Du=Object.assign(Object.assign({},Ql.props),{to:wt.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}),Fu=a({name:"PopoverBody",inheritAttrs:!1,props:Du,setup(e,{slots:t,attrs:n}){const{namespaceRef:o,mergedClsPrefixRef:i,inlineThemeDisabled:a}=ts(e),s=Ql("Popover","-popover",Ru,Eu,e,i),d=l(null),v=h("NPopover"),w=l(null),y=l(e.show),x=l(!1);M((()=>{const{show:t}=e;!t||(void 0===Ue&&(Ue=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),Ue)||e.internalDeactivateImmediately||(x.value=!0)}));const C=c((()=>{const{trigger:t,onClickoutside:n}=e,r=[],{positionManuallyRef:{value:o}}=v;return o||("click"!==t||n||r.push([Bt,R,void 0,{capture:!0}]),"hover"===t&&r.push([Rt,j])),n&&r.push([Bt,R,void 0,{capture:!0}]),("show"===e.displayDirective||e.animated&&x.value)&&r.push([T,e.show]),r})),S=c((()=>{const t="trigger"===e.width?void 0:me(e.width),n=[];t&&n.push({width:t});const{maxWidth:r,minWidth:o}=e;return r&&n.push({maxWidth:me(r)}),o&&n.push({maxWidth:me(o)}),a||n.push($.value),n})),$=c((()=>{const{common:{cubicBezierEaseInOut:e,cubicBezierEaseIn:t,cubicBezierEaseOut:n},self:{space:r,spaceArrow:o,padding:i,fontSize:a,textColor:l,dividerColor:u,color:c,boxShadow:d,borderRadius:f,arrowHeight:h,arrowOffset:p,arrowOffsetVertical:v}}=s.value;return{"--n-box-shadow":d,"--n-bezier":e,"--n-bezier-ease-in":t,"--n-bezier-ease-out":n,"--n-font-size":a,"--n-text-color":l,"--n-color":c,"--n-divider-color":u,"--n-border-radius":f,"--n-arrow-height":h,"--n-arrow-offset":p,"--n-arrow-offset-vertical":v,"--n-padding":i,"--n-space":r,"--n-space-arrow":o}})),O=a?vs("popover",void 0,$,e):void 0;function E(t){"hover"===e.trigger&&e.keepAliveOnHover&&e.show&&v.handleMouseEnter(t)}function P(t){"hover"===e.trigger&&e.keepAliveOnHover&&v.handleMouseLeave(t)}function j(t){"hover"!==e.trigger||_().contains(A(t))||v.handleMouseMoveOutside(t)}function R(t){("click"===e.trigger&&!_().contains(A(t))||e.onClickoutside)&&v.handleClickOutside(t)}function _(){return v.getTriggerElement()}return v.setBodyInstance({syncPosition:function(){var e;null===(e=d.value)||void 0===e||e.syncPosition()}}),f((()=>{v.setBodyInstance(null)})),u(m(e,"show"),(t=>{e.animated||(y.value=!!t)})),p(mt,w),p(gt,null),p(vt,null),{displayed:x,namespace:o,isMounted:v.isMountedRef,zIndex:v.zIndexRef,followerRef:d,adjustedTo:wt(e),followerEnabled:y,renderContentNode:function(){if(null==O||O.onRender(),!("show"===e.displayDirective||e.show||e.animated&&x.value))return null;let o;const a=v.internalRenderBodyRef.value,{value:l}=i;if(a)o=a([`${l}-popover-shared`,null==O?void 0:O.themeClass.value,e.overlap&&`${l}-popover-shared--overlap`,e.showArrow&&`${l}-popover-shared--show-arrow`,e.arrowPointToCenter&&`${l}-popover-shared--center-arrow`],w,S.value,E,P);else{const{value:i}=v.extraClassRef,{internalTrapFocus:a}=e,s=!he(t.header)||!he(t.footer),u=()=>{var n;const o=s?b(r,null,fe(t.header,(t=>t?b("div",{class:`${l}-popover__header`,style:e.headerStyle},t):null)),fe(t.default,(n=>n?b("div",{class:`${l}-popover__content`,style:e.contentStyle},t):null)),fe(t.footer,(t=>t?b("div",{class:`${l}-popover__footer`,style:e.footerStyle},t):null))):e.scrollable?null===(n=t.default)||void 0===n?void 0:n.call(t):b("div",{class:`${l}-popover__content`,style:e.contentStyle},t);return[e.scrollable?b(Su,{contentClass:s?void 0:`${l}-popover__content`,contentStyle:s?void 0:e.contentStyle},{default:()=>o}):o,e.showArrow?(({arrowStyle:e,clsPrefix:t})=>b("div",{key:"__popover-arrow__",class:`${t}-popover-arrow-wrapper`},b("div",{class:`${t}-popover-arrow`,style:e})))({arrowStyle:e.arrowStyle,clsPrefix:l}):null]};o=b("div",z({class:[`${l}-popover`,`${l}-popover-shared`,null==O?void 0:O.themeClass.value,i.map((e=>`${l}-${e}`)),{[`${l}-popover--scrollable`]:e.scrollable,[`${l}-popover--show-header-or-footer`]:s,[`${l}-popover--raw`]:e.raw,[`${l}-popover-shared--overlap`]:e.overlap,[`${l}-popover-shared--show-arrow`]:e.showArrow,[`${l}-popover-shared--center-arrow`]:e.arrowPointToCenter}],ref:w,style:S.value,onKeydown:v.handleKeydown,onMouseenter:E,onMouseleave:P},n),a?b(Kn,{active:e.show,autoFocus:!0},{default:u}):u())}return g(o,C.value)}}},render(){return b(rn,{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:"trigger"===this.width?"target":void 0,teleportDisabled:this.adjustedTo===wt.tdkey},{default:()=>this.animated?b(O,{name:"popover-transition",appear:this.isMounted,onEnter:()=>{this.followerEnabled=!0},onAfterLeave:()=>{var e;null===(e=this.internalOnAfterLeave)||void 0===e||e.call(this),this.followerEnabled=!1,this.displayed=!1}},{default:this.renderContentNode}):this.renderContentNode()})}}),Lu=Object.keys(Du),Wu={focus:["onFocus","onBlur"],click:["onClick"],hover:["onMouseenter","onMouseleave"],manual:[],nested:["onFocus","onBlur","onMouseenter","onMouseleave","onClick"]},Nu={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:wt.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},Hu=Object.assign(Object.assign(Object.assign({},Ql.props),Nu),{internalOnAfterLeave:Function,internalRenderBody:Function}),Xu=a({name:"Popover",inheritAttrs:!1,props:Hu,__popover__:!0,setup(e){M((()=>{void 0!==e.maxWidth&&ae("popover","`max-width` is deprecated, please use `style` instead."),void 0!==e.minWidth&&ae("popover","`min-width` is deprecated, please use `style` instead."),void 0!==e.arrow&&ae("popover","`arrow` is deprecated, please use `showArrow` instead."),void 0!==e.onHide&&ae("popover","`on-hide` is deprecated, please use `on-update:show` instead."),void 0!==e.onShow&&ae("popover","`on-show` is deprecated, please use `on-update:show` instead.")}));const t=dt(),n=l(null),r=c((()=>e.show)),o=l(e.defaultShow),i=ct(r,o),a=Ge((()=>!e.disabled&&i.value)),s=()=>{if(e.disabled)return!0;const{getDisabled:t}=e;return!!(null==t?void 0:t())},u=()=>!s()&&i.value,d=function(e,t){return c((()=>{for(const n of t)if(void 0!==e[n])return e[n];return e[t[t.length-1]]}))}(e,["arrow","showArrow"]),f=c((()=>!e.overlap&&d.value));let h=null;const v=l(null),g=l(null),b=Ge((()=>void 0!==e.x&&void 0!==e.y));function w(t){const{"onUpdate:show":n,onUpdateShow:r,onShow:i,onHide:a}=e;o.value=t,n&&oe(n,t),r&&oe(r,t),t&&i&&oe(i,!0),t&&a&&oe(a,!1)}function y(){const{value:e}=v;e&&(window.clearTimeout(e),v.value=null)}function x(){const{value:e}=g;e&&(window.clearTimeout(e),g.value=null)}function C(){const t=s();if("hover"===e.trigger&&!t){if(x(),null!==v.value)return;if(u())return;const t=()=>{w(!0),v.value=null},{delay:n}=e;0===n?t():v.value=window.setTimeout(t,n)}}function S(){const t=s();if("hover"===e.trigger&&!t){if(y(),null!==g.value)return;if(!u())return;const t=()=>{w(!1),g.value=null},{duration:n}=e;0===n?t():g.value=window.setTimeout(t,n)}}return p("NPopover",{getTriggerElement:function(){var e;return null===(e=n.value)||void 0===e?void 0:e.targetRef},handleKeydown:function(t){e.internalTrapFocus&&"Escape"===t.key&&(y(),x(),w(!1))},handleMouseEnter:C,handleMouseLeave:S,handleClickOutside:function(t){var n;u()&&("click"===e.trigger&&(y(),x(),w(!1)),null===(n=e.onClickoutside)||void 0===n||n.call(e,t))},handleMouseMoveOutside:function(){S()},setBodyInstance:function(e){h=e},positionManuallyRef:b,isMountedRef:t,zIndexRef:m(e,"zIndex"),extraClassRef:m(e,"internalExtraClass"),internalRenderBodyRef:m(e,"internalRenderBody")}),M((()=>{i.value&&s()&&w(!1)})),{binderInstRef:n,positionManually:b,mergedShowConsideringDisabledProp:a,uncontrolledShow:o,mergedShowArrow:f,getMergedShow:u,setShow:function(e){o.value=e},handleClick:function(){"click"!==e.trigger||s()||(y(),x(),w(!u()))},handleMouseEnter:C,handleMouseLeave:S,handleFocus:function(){const t=s();if("focus"===e.trigger&&!t){if(u())return;w(!0)}},handleBlur:function(){const t=s();if("focus"===e.trigger&&!t){if(!u())return;w(!1)}},syncPosition:function(){h&&h.syncPosition()}}},render(){var e;const{positionManually:t,$slots:n}=this;let r,o=!1;if(!t&&(r=n.activator?ue(n,"activator"):ue(n,"trigger"),r)){r=E(r),r=r.type===P?b("span",[r]):r;const n={onClick:this.handleClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur};if(null===(e=r.type)||void 0===e?void 0:e.__popover__)o=!0,r.props||(r.props={internalSyncTargetWithParent:!0,internalInheritedEventHandlers:[]}),r.props.internalSyncTargetWithParent=!0,r.props.internalInheritedEventHandlers?r.props.internalInheritedEventHandlers=[n,...r.props.internalInheritedEventHandlers]:r.props.internalInheritedEventHandlers=[n];else{const{internalInheritedEventHandlers:e}=this,o=[n,...e],i={onBlur:e=>{o.forEach((t=>{t.onBlur(e)}))},onFocus:e=>{o.forEach((t=>{t.onFocus(e)}))},onClick:e=>{o.forEach((t=>{t.onClick(e)}))},onMouseenter:e=>{o.forEach((t=>{t.onMouseenter(e)}))},onMouseleave:e=>{o.forEach((t=>{t.onMouseleave(e)}))}};!function(e,t,n){Wu[t].forEach((t=>{e.props?e.props=Object.assign({},e.props):e.props={};const r=e.props[t],o=n[t];e.props[t]=r?(...e)=>{r(...e),o(...e)}:o}))}(r,e?"nested":t?"manual":this.trigger,i)}}return b(Tt,{ref:"binderInstRef",syncTarget:!o,syncTargetWithParent:this.internalSyncTargetWithParent},{default:()=>{this.mergedShowConsideringDisabledProp;const e=this.getMergedShow();return[this.internalTrapFocus&&e?g(b("div",{style:{position:"fixed",inset:0}}),[[Ft,{enabled:e,zIndex:this.zIndex}]]):null,t?null:b(Et,null,{default:()=>r}),b(Fu,ne(this.$props,Lu,Object.assign(Object.assign({},this.$attrs),{showArrow:this.mergedShowArrow,show:e})),{default:()=>{var e,t;return null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e)},header:()=>{var e,t;return null===(t=(e=this.$slots).header)||void 0===t?void 0:t.call(e)},footer:()=>{var e,t;return null===(t=(e=this.$slots).footer)||void 0===t?void 0:t.call(e)}})]}})}}),Vu=qe&&"loading"in document.createElement("img"),Zu=new WeakMap,Yu=new WeakMap,Uu=new WeakMap,qu=(e,t,n)=>{if(!e)return()=>{};const r=((e={})=>{var t;const{root:n=null}=e;return{hash:`${e.rootMargin||"0px 0px 0px 0px"}-${Array.isArray(e.threshold)?e.threshold.join(","):null!==(t=e.threshold)&&void 0!==t?t:"0"}`,options:Object.assign(Object.assign({},e),{root:("string"==typeof n?document.querySelector(n):n)||document.documentElement})}})(t),{root:o}=r.options;let i;const a=Zu.get(o);let l,s;a?i=a:(i=new Map,Zu.set(o,i)),i.has(r.hash)?(s=i.get(r.hash),s[1].has(e)||(l=s[0],s[1].add(e),l.observe(e))):(l=new IntersectionObserver((e=>{e.forEach((e=>{if(e.isIntersecting){const t=Yu.get(e.target),n=Uu.get(e.target);t&&t(),n&&(n.value=!0)}}))}),r.options),l.observe(e),s=[l,new Set([e])],i.set(r.hash,s));let u=!1;const c=()=>{u||(Yu.delete(e),Uu.delete(e),u=!0,s[1].has(e)&&(s[0].unobserve(e),s[1].delete(e)),s[1].size<=0&&i.delete(r.hash),i.size||Zu.delete(o))};return Yu.set(e,c),Uu.set(e,n),c},Ju={padding:"8px 14px"},Gu={name:"Tooltip",common:gu,peers:{Popover:Eu},self:e=>{const{borderRadius:t,boxShadow2:n,baseColor:r}=e;return Object.assign(Object.assign({},Ju),{borderRadius:t,boxShadow:n,color:K(r,"rgba(0, 0, 0, .85)"),textColor:r})}},Ku=Object.assign(Object.assign({},Nu),Ql.props),Qu=a({name:"Tooltip",props:Ku,__popover__:!0,setup(e){const{mergedClsPrefixRef:t}=ts(e),n=Ql("Tooltip","-tooltip",void 0,Gu,e,t),r=l(null),o={syncPosition(){r.value.syncPosition()},setShow(e){r.value.setShow(e)}};return Object.assign(Object.assign({},o),{popoverRef:r,mergedTheme:n,popoverThemeOverrides:c((()=>n.value.self))})},render(){const{mergedTheme:e,internalExtraClass:t}=this;return b(Xu,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)}}),ec=Object.assign(Object.assign({},Ql.props),{showToolbar:{type:Boolean,default:!0},showToolbarTooltip:Boolean}),tc="n-image",nc={name:"Image",common:gu,peers:{Tooltip:Gu},self:function(){return{toolbarIconColor:"rgba(255, 255, 255, .9)",toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}},rc=b("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},b("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"})),oc=b("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},b("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"})),ic=b("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},b("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"})),ac=We([We("body >",[He("image-container","position: fixed;")]),He("image-preview-container","\n position: fixed;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n display: flex;\n "),He("image-preview-overlay","\n z-index: -1;\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n background: rgba(0, 0, 0, .3);\n ",[wu()]),He("image-preview-toolbar","\n z-index: 1;\n position: absolute;\n left: 50%;\n transform: translateX(-50%);\n border-radius: var(--n-toolbar-border-radius);\n height: 48px;\n bottom: 40px;\n padding: 0 12px;\n background: var(--n-toolbar-color);\n box-shadow: var(--n-toolbar-box-shadow);\n color: var(--n-toolbar-icon-color);\n transition: color .3s var(--n-bezier);\n display: flex;\n align-items: center;\n ",[He("base-icon","\n padding: 0 8px;\n font-size: 28px;\n cursor: pointer;\n "),wu()]),He("image-preview-wrapper","\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n display: flex;\n pointer-events: none;\n ",[Ou()]),He("image-preview","\n user-select: none;\n -webkit-user-select: none;\n pointer-events: all;\n margin: auto;\n max-height: calc(100vh - 32px);\n max-width: calc(100vw - 32px);\n transition: transform .3s var(--n-bezier);\n "),He("image","\n display: inline-flex;\n max-height: 100%;\n max-width: 100%;\n ",[Ze("preview-disabled","\n cursor: pointer;\n "),We("img","\n border-radius: inherit;\n ")])]),lc=a({name:"ImagePreview",props:Object.assign(Object.assign({},ec),{onNext:Function,onPrev:Function,clsPrefix:{type:String,required:!0}}),setup(e){const t=Ql("Image","-image",ac,nc,e,m(e,"clsPrefix"));let n=null;const r=l(null),o=l(null),i=l(void 0),a=l(!1),s=l(!1),{localeRef:d}=function(e){const{mergedLocaleRef:t,mergedDateLocaleRef:n}=h(Gl,null)||{},r=c((()=>{var n,r;return null!==(r=null===(n=null==t?void 0:t.value)||void 0===n?void 0:n[e])&&void 0!==r?r:ns[e]})),o=c((()=>{var e;return null!==(e=null==n?void 0:n.value)&&void 0!==e?e:ps}));return{dateLocaleRef:o,localeRef:r}}("Image");function p(t){var n,r;switch(t.key){case" ":t.preventDefault();break;case"ArrowLeft":null===(n=e.onPrev)||void 0===n||n.call(e);break;case"ArrowRight":null===(r=e.onNext)||void 0===r||r.call(e);break;case"Escape":D()}}u(a,(e=>{e?st("keydown",document,p):ut("keydown",document,p)})),f((()=>{ut("keydown",document,p)}));let v=0,g=0,w=0,y=0,x=0,C=0,S=0,$=0,M=!1;function O(e){const{clientX:t,clientY:n}=e;w=t-v,y=n-g,B(I)}function z(e){const{value:t}=r;if(!t)return{offsetX:0,offsetY:0};const n=t.getBoundingClientRect(),{moveVerticalDirection:o,moveHorizontalDirection:i,deltaHorizontal:a,deltaVertical:l}=e||{};let s=0,u=0;return s=n.width<=window.innerWidth?0:n.left>0?(n.width-window.innerWidth)/2:n.right<window.innerWidth?-(n.width-window.innerWidth)/2:"horizontalRight"===i?Math.min((n.width-window.innerWidth)/2,x-(null!=a?a:0)):Math.max(-(n.width-window.innerWidth)/2,x-(null!=a?a:0)),u=n.height<=window.innerHeight?0:n.top>0?(n.height-window.innerHeight)/2:n.bottom<window.innerHeight?-(n.height-window.innerHeight)/2:"verticalBottom"===o?Math.min((n.height-window.innerHeight)/2,C-(null!=l?l:0)):Math.max(-(n.height-window.innerHeight)/2,C-(null!=l?l:0)),{offsetX:s,offsetY:u}}function T(e){ut("mousemove",document,O),ut("mouseup",document,T);const{clientX:t,clientY:n}=e;M=!1;const r=function(e){const{mouseUpClientX:t,mouseUpClientY:n,mouseDownClientX:r,mouseDownClientY:o}=e,i=r-t,a=o-n;return{moveVerticalDirection:"vertical"+(a>0?"Top":"Bottom"),moveHorizontalDirection:"horizontal"+(i>0?"Left":"Right"),deltaHorizontal:i,deltaVertical:a}}({mouseUpClientX:t,mouseUpClientY:n,mouseDownClientX:S,mouseDownClientY:$}),o=z(r);w=o.offsetX,y=o.offsetY,I()}const E=h(tc,null);let P=0,R=1,_=0;function k(){R=1,P=0}function A(){const{value:e}=r;if(!e)return 1;const{innerWidth:t,innerHeight:n}=window,o=e.naturalHeight/(n-32),i=e.naturalWidth/(t-32);return o<1&&i<1?1:Math.max(o,i)}function I(e=!0){var t;const{value:n}=r;if(!n)return;const{style:o}=n,i=j(null===(t=null==E?void 0:E.previewedImgPropsRef.value)||void 0===t?void 0:t.style);let a="";if("string"==typeof i)a=i+";";else for(const r in i)a+=`${Nl(r)}: ${i[r]};`;const l=`transform-origin: center; transform: translateX(${w}px) translateY(${y}px) rotate(${_}deg) scale(${R});`;o.cssText=M?a+"cursor: grabbing; transition: none;"+l:a+"cursor: grab;"+l+(e?"":"transition: none;"),e||n.offsetHeight}function D(){a.value=!a.value,s.value=!0}const F={setPreviewSrc:e=>{i.value=e},setThumbnailEl:e=>{n=e},toggleShow:D},L=c((()=>{const{common:{cubicBezierEaseInOut:e},self:{toolbarIconColor:n,toolbarBorderRadius:r,toolbarBoxShadow:o,toolbarColor:i}}=t.value;return{"--n-bezier":e,"--n-toolbar-icon-color":n,"--n-toolbar-color":i,"--n-toolbar-border-radius":r,"--n-toolbar-box-shadow":o}})),{inlineThemeDisabled:W}=ts(),N=W?vs("image-preview",void 0,L,e):void 0;return Object.assign({previewRef:r,previewWrapperRef:o,previewSrc:i,show:a,appear:dt(),displayed:s,previewedImgProps:null==E?void 0:E.previewedImgPropsRef,handleWheel(e){e.preventDefault()},handlePreviewMousedown:function(e){var t,n;if(null===(n=null===(t=null==E?void 0:E.previewedImgPropsRef.value)||void 0===t?void 0:t.onMousedown)||void 0===n||n.call(t,e),0!==e.button)return;const{clientX:r,clientY:o}=e;M=!0,v=r-w,g=o-y,x=w,C=y,S=r,$=o,I(),st("mousemove",document,O),st("mouseup",document,T)},handlePreviewDblclick:function(e){var t,n;null===(n=null===(t=null==E?void 0:E.previewedImgPropsRef.value)||void 0===t?void 0:t.onDblclick)||void 0===n||n.call(t,e);const r=A();R=R===r?1:r,I()},syncTransformOrigin:function(){const{value:e}=o;if(!n||!e)return;const{style:t}=e,r=n.getBoundingClientRect(),i=r.left+r.width/2,a=r.top+r.height/2;t.transformOrigin=`${i}px ${a}px`},handleAfterLeave:()=>{k(),_=0,s.value=!1},handleDragStart:e=>{var t,n;null===(n=null===(t=null==E?void 0:E.previewedImgPropsRef.value)||void 0===t?void 0:t.onDragstart)||void 0===n||n.call(t,e),e.preventDefault()},zoomIn:function(){const e=function(){const{value:e}=r;if(!e)return 1;const{innerWidth:t,innerHeight:n}=window,o=Math.max(1,e.naturalHeight/(n-32)),i=Math.max(1,e.naturalWidth/(t-32));return Math.max(3,2*o,2*i)}();R<e&&(P+=1,R=Math.min(e,Math.pow(1.5,P)),I())},zoomOut:function(){if(R>.5){const e=R;P-=1,R=Math.max(.5,Math.pow(1.5,P));const t=e-R;I(!1);const n=z();R+=t,I(!1),R-=t,w=n.offsetX,y=n.offsetY,I()}},rotateCounterclockwise:function(){_-=90,I()},rotateClockwise:function(){_+=90,I()},handleSwitchPrev:function(){var t;k(),_=0,null===(t=e.onPrev)||void 0===t||t.call(e)},handleSwitchNext:function(){var t;k(),_=0,null===(t=e.onNext)||void 0===t||t.call(e)},withTooltip:function(n,r){if(e.showToolbarTooltip){const{value:e}=t;return b(Qu,{to:!1,theme:e.peers.Tooltip,themeOverrides:e.peerOverrides.Tooltip,keepAliveOnHover:!1},{default:()=>d.value[r],trigger:()=>n})}return n},resizeToOrignalImageSize:function(){R=A(),P=Math.ceil(Math.log(R)/Math.log(1.5)),w=0,y=0,I()},cssVars:W?void 0:L,themeClass:null==N?void 0:N.themeClass,onRender:null==N?void 0:N.onRender},F)},render(){var e,t;const{clsPrefix:n}=this;return b(r,null,null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e),b(Yt,{show:this.show},{default:()=>{var e;return this.show||this.displayed?(null===(e=this.onRender)||void 0===e||e.call(this),g(b("div",{class:[`${n}-image-preview-container`,this.themeClass],style:this.cssVars,onWheel:this.handleWheel},b(O,{name:"fade-in-transition",appear:this.appear},{default:()=>this.show?b("div",{class:`${n}-image-preview-overlay`,onClick:this.toggleShow}):null}),this.showToolbar?b(O,{name:"fade-in-transition",appear:this.appear},{default:()=>{if(!this.show)return null;const{withTooltip:e}=this;return b("div",{class:`${n}-image-preview-toolbar`},this.onPrev?b(r,null,e(b($s,{clsPrefix:n,onClick:this.handleSwitchPrev},{default:()=>rc}),"tipPrevious"),e(b($s,{clsPrefix:n,onClick:this.handleSwitchNext},{default:()=>oc}),"tipNext")):null,e(b($s,{clsPrefix:n,onClick:this.rotateCounterclockwise},{default:()=>b(ws,null)}),"tipCounterclockwise"),e(b($s,{clsPrefix:n,onClick:this.rotateClockwise},{default:()=>b(bs,null)}),"tipClockwise"),e(b($s,{clsPrefix:n,onClick:this.resizeToOrignalImageSize},{default:()=>b(Cs,null)}),"tipOriginalSize"),e(b($s,{clsPrefix:n,onClick:this.zoomOut},{default:()=>b(xs,null)}),"tipZoomOut"),e(b($s,{clsPrefix:n,onClick:this.zoomIn},{default:()=>b(ys,null)}),"tipZoomIn"),e(b($s,{clsPrefix:n,onClick:this.toggleShow},{default:()=>ic}),"tipClose"))}}):null,b(O,{name:"fade-in-scale-up-transition",onAfterLeave:this.handleAfterLeave,appear:this.appear,onEnter:this.syncTransformOrigin,onBeforeLeave:this.syncTransformOrigin},{default:()=>{const{previewedImgProps:e={}}=this;return g(b("div",{class:`${n}-image-preview-wrapper`,ref:"previewWrapperRef"},b("img",Object.assign({},e,{draggable:!1,onMousedown:this.handlePreviewMousedown,onDblclick:this.handlePreviewDblclick,class:[`${n}-image-preview`,e.class],key:this.previewSrc,src:this.previewSrc,ref:"previewRef",onDragstart:this.handleDragStart}))),[[T,this.show]])}})),[[Ft,{enabled:this.show}]])):null}}))}}),sc=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},ec);e("N",a({name:"Image",props:sc,inheritAttrs:!1,setup(e){const t=l(null),n=l(!1),r=l(null),o=h("n-image-group",null),{mergedClsPrefixRef:i}=o||ts(e),a={click:()=>{if(e.previewDisabled||n.value)return;const i=e.previewSrc||e.src;if(o)return o.setPreviewSrc(i),o.setThumbnailEl(t.value),void o.toggleShow();const{value:a}=r;a&&(a.setPreviewSrc(i),a.setThumbnailEl(t.value),a.toggleShow())}},s=l(!e.lazy);d((()=>{var e;null===(e=t.value)||void 0===e||e.setAttribute("data-group-id",(null==o?void 0:o.groupId)||"")})),d((()=>{if(e.lazy&&e.intersectionObserverOptions){let n;const r=M((()=>{null==n||n(),n=void 0,n=qu(t.value,e.intersectionObserverOptions,s)}));f((()=>{r(),null==n||n()}))}})),M((()=>{var t;e.src,null===(t=e.imgProps)||void 0===t||t.src,n.value=!1}));const u=l(!1);return p(tc,{previewedImgPropsRef:m(e,"previewedImgProps")}),Object.assign({mergedClsPrefix:i,groupId:null==o?void 0:o.groupId,previewInstRef:r,imageRef:t,showError:n,shouldStartLoading:s,loaded:u,mergedOnClick:t=>{var n,r;a.click(),null===(r=null===(n=e.imgProps)||void 0===n?void 0:n.onClick)||void 0===r||r.call(n,t)},mergedOnError:t=>{if(!s.value)return;n.value=!0;const{onError:r,imgProps:{onError:o}={}}=e;null==r||r(t),null==o||o(t)},mergedOnLoad:t=>{const{onLoad:n,imgProps:{onLoad:r}={}}=e;null==n||n(t),null==r||r(t),u.value=!0}},a)},render(){var e,t;const{mergedClsPrefix:n,imgProps:r={},loaded:o,$attrs:i,lazy:a}=this,l=null===(t=(e=this.$slots).placeholder)||void 0===t?void 0:t.call(e),s=this.src||r.src,u=b("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?s:void 0:s,alt:this.alt||r.alt,"aria-label":this.alt||r.alt,onClick:this.mergedOnClick,onError:this.mergedOnError,onLoad:this.mergedOnLoad,loading:Vu&&a&&!this.intersectionObserverOptions?"lazy":"eager",style:[r.style||"",l&&!o?{height:"0",width:"0",visibility:"hidden"}:"",{objectFit:this.objectFit}],"data-error":this.showError,"data-preview-src":this.previewSrc||this.src}));return b("div",Object.assign({},i,{role:"none",class:[i.class,`${n}-image`,(this.previewDisabled||this.showError)&&`${n}-image--preview-disabled`]}),this.groupId?u:b(lc,{theme:this.theme,themeOverrides:this.themeOverrides,clsPrefix:n,ref:"previewInstRef",showToolbar:this.showToolbar,showToolbarTooltip:this.showToolbarTooltip},{default:()=>u}),!o&&l)}}))}}}));