xframelib 1.2.3 → 1.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2 @@
1
+ import{Nt as e,Pt as t,Tn as n,Un as i,Wn as o,fr as r,mr as a,pr as s,qn as u,xn as l}from"./utils-BbwKxKXj.js";import{Fragment as c,KeepAlive as d,Suspense as p,Transition as f,TransitionGroup as h,computed as m,createBlock as v,createCommentVNode as g,createElementBlock as y,createElementVNode as b,createTextVNode as w,createVNode as x,defineComponent as E,getCurrentInstance as C,h as M,markRaw as O,mergeProps as S,nextTick as P,normalizeClass as z,normalizeStyle as k,onErrorCaptured as D,onMounted as L,onUnmounted as _,openBlock as T,ref as W,renderList as A,renderSlot as N,resolveComponent as R,resolveDynamicComponent as j,shallowReactive as I,toDisplayString as B,unref as V,useCssVars as H,useTemplateRef as $,vShow as U,watch as F,withCtx as q,withDirectives as Y,withModifiers as X}from"vue";import{Icon as Z}from"@iconify/vue";var G="bottom",J="right",K="left",Q=["top",G,J,K],ee="start",te="popper",ne=/*#__PURE__*/Q.reduce(function(e,t){return e.concat([t+"-"+ee,t+"-end"])},[]),ie=/*#__PURE__*/[].concat(Q,["auto"]).reduce(function(e,t){return e.concat([t,t+"-"+ee,t+"-end"])},[]),oe=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function re(e){return e?(e.nodeName||"").toLowerCase():null}function ae(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function se(e){return e instanceof ae(e).Element||e instanceof Element}function ue(e){return e instanceof ae(e).HTMLElement||e instanceof HTMLElement}function le(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ae(e).ShadowRoot||e instanceof ShadowRoot)}var ce={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},i=t.attributes[e]||{},o=t.elements[e];ue(o)&&re(o)&&(Object.assign(o.style,n),Object.keys(i).forEach(function(e){var t=i[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var i=t.elements[e],o=t.attributes[e]||{},r=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});ue(i)&&re(i)&&(Object.assign(i.style,r),Object.keys(o).forEach(function(e){i.removeAttribute(e)}))})}},requires:["computeStyles"]};function de(e){return e.split("-")[0]}var pe=Math.max,fe=Math.min,he=Math.round;function me(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function ve(){return!/^((?!chrome|android).)*safari/i.test(me())}function ge(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var i=e.getBoundingClientRect(),o=1,r=1;t&&ue(e)&&(o=e.offsetWidth>0&&he(i.width)/e.offsetWidth||1,r=e.offsetHeight>0&&he(i.height)/e.offsetHeight||1);var a=(se(e)?ae(e):window).visualViewport,s=!ve()&&n,u=(i.left+(s&&a?a.offsetLeft:0))/o,l=(i.top+(s&&a?a.offsetTop:0))/r,c=i.width/o,d=i.height/r;return{width:c,height:d,top:l,right:u+c,bottom:l+d,left:u,x:u,y:l}}function ye(e){var t=ge(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function be(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&le(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function we(e){return ae(e).getComputedStyle(e)}function xe(e){return["table","td","th"].indexOf(re(e))>=0}function Ee(e){return((se(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ce(e){return"html"===re(e)?e:e.assignedSlot||e.parentNode||(le(e)?e.host:null)||Ee(e)}function Me(e){return ue(e)&&"fixed"!==we(e).position?e.offsetParent:null}function Oe(e){for(var t=ae(e),n=Me(e);n&&xe(n)&&"static"===we(n).position;)n=Me(n);return n&&("html"===re(n)||"body"===re(n)&&"static"===we(n).position)?t:n||function(e){var t=/firefox/i.test(me());if(/Trident/i.test(me())&&ue(e)&&"fixed"===we(e).position)return null;var n=Ce(e);for(le(n)&&(n=n.host);ue(n)&&["html","body"].indexOf(re(n))<0;){var i=we(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||t&&"filter"===i.willChange||t&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(e)||t}function Se(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Pe(e,t,n){return pe(e,fe(t,n))}function ze(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function ke(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var De={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,i=e.name,o=e.options,r=n.elements.arrow,a=n.modifiersData.popperOffsets,s=de(n.placement),u=Se(s),l=["left","right"].indexOf(s)>=0?"height":"width";if(r&&a){var c=function(e,t){return ze("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:ke(e,Q))}(o.padding,n),d=ye(r),p="y"===u?"top":K,f="y"===u?G:J,h=n.rects.reference[l]+n.rects.reference[u]-a[u]-n.rects.popper[l],m=a[u]-n.rects.reference[u],v=Oe(r),g=v?"y"===u?v.clientHeight||0:v.clientWidth||0:0,y=h/2-m/2,b=c[p],w=g-d[l]-c[f],x=g/2-d[l]/2+y,E=Pe(b,x,w),C=u;n.modifiersData[i]=((t={})[C]=E,t.centerOffset=E-x,t)}},effect:function(e){var t=e.state,n=e.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=t.elements.popper.querySelector(i)))&&be(t.elements.popper,i)&&(t.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Le(e){return e.split("-")[1]}var _e={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Te(e){var t,n=e.popper,i=e.popperRect,o=e.placement,r=e.variation,a=e.offsets,s=e.position,u=e.gpuAcceleration,l=e.adaptive,c=e.roundOffsets,d=e.isFixed,p=a.x,f=void 0===p?0:p,h=a.y,m=void 0===h?0:h,v="function"==typeof c?c({x:f,y:m}):{x:f,y:m};f=v.x,m=v.y;var g=a.hasOwnProperty("x"),y=a.hasOwnProperty("y"),b=K,w="top",x=window;if(l){var E=Oe(n),C="clientHeight",M="clientWidth";if(E===ae(n)&&"static"!==we(E=Ee(n)).position&&"absolute"===s&&(C="scrollHeight",M="scrollWidth"),"top"===o||("left"===o||"right"===o)&&"end"===r)w=G,m-=(d&&E===x&&x.visualViewport?x.visualViewport.height:E[C])-i.height,m*=u?1:-1;if("left"===o||("top"===o||"bottom"===o)&&"end"===r)b=J,f-=(d&&E===x&&x.visualViewport?x.visualViewport.width:E[M])-i.width,f*=u?1:-1}var O,S=Object.assign({position:s},l&&_e),P=!0===c?function(e,t){var n=e.x,i=e.y,o=t.devicePixelRatio||1;return{x:he(n*o)/o||0,y:he(i*o)/o||0}}({x:f,y:m},ae(n)):{x:f,y:m};return f=P.x,m=P.y,u?Object.assign({},S,((O={})[w]=y?"0":"",O[b]=g?"0":"",O.transform=(x.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",O)):Object.assign({},S,((t={})[w]=y?m+"px":"",t[b]=g?f+"px":"",t.transform="",t))}var We={passive:!0};var Ae={left:"right",right:"left",bottom:"top",top:"bottom"};function Ne(e){return e.replace(/left|right|bottom|top/g,function(e){return Ae[e]})}var Re={start:"end",end:"start"};function je(e){return e.replace(/start|end/g,function(e){return Re[e]})}function Ie(e){var t=ae(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Be(e){return ge(Ee(e)).left+Ie(e).scrollLeft}function Ve(e){var t=we(e),n=t.overflow,i=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+i)}function He(e){return["html","body","#document"].indexOf(re(e))>=0?e.ownerDocument.body:ue(e)&&Ve(e)?e:He(Ce(e))}function $e(e,t){var n;void 0===t&&(t=[]);var i=He(e),o=i===(null==(n=e.ownerDocument)?void 0:n.body),r=ae(i),a=o?[r].concat(r.visualViewport||[],Ve(i)?i:[]):i,s=t.concat(a);return o?s:s.concat($e(Ce(a)))}function Ue(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Fe(e,t,n){return"viewport"===t?Ue(function(e,t){var n=ae(e),i=Ee(e),o=n.visualViewport,r=i.clientWidth,a=i.clientHeight,s=0,u=0;if(o){r=o.width,a=o.height;var l=ve();(l||!l&&"fixed"===t)&&(s=o.offsetLeft,u=o.offsetTop)}return{width:r,height:a,x:s+Be(e),y:u}}(e,n)):se(t)?function(e,t){var n=ge(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):Ue(function(e){var t,n=Ee(e),i=Ie(e),o=null==(t=e.ownerDocument)?void 0:t.body,r=pe(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=pe(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-i.scrollLeft+Be(e),u=-i.scrollTop;return"rtl"===we(o||n).direction&&(s+=pe(n.clientWidth,o?o.clientWidth:0)-r),{width:r,height:a,x:s,y:u}}(Ee(e)))}function qe(e,t,n,i){var o="clippingParents"===t?function(e){var t=$e(Ce(e)),n=["absolute","fixed"].indexOf(we(e).position)>=0&&ue(e)?Oe(e):e;return se(n)?t.filter(function(e){return se(e)&&be(e,n)&&"body"!==re(e)}):[]}(e):[].concat(t),r=[].concat(o,[n]),a=r[0],s=r.reduce(function(t,n){var o=Fe(e,n,i);return t.top=pe(o.top,t.top),t.right=fe(o.right,t.right),t.bottom=fe(o.bottom,t.bottom),t.left=pe(o.left,t.left),t},Fe(e,a,i));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Ye(e){var t,n=e.reference,i=e.element,o=e.placement,r=o?de(o):null,a=o?Le(o):null,s=n.x+n.width/2-i.width/2,u=n.y+n.height/2-i.height/2;switch(r){case"top":t={x:s,y:n.y-i.height};break;case G:t={x:s,y:n.y+n.height};break;case J:t={x:n.x+n.width,y:u};break;case K:t={x:n.x-i.width,y:u};break;default:t={x:n.x,y:n.y}}var l=r?Se(r):null;if(null!=l){var c="y"===l?"height":"width";switch(a){case ee:t[l]=t[l]-(n[c]/2-i[c]/2);break;case"end":t[l]=t[l]+(n[c]/2-i[c]/2)}}return t}function Xe(e,t){void 0===t&&(t={});var n=t,i=n.placement,o=void 0===i?e.placement:i,r=n.strategy,a=void 0===r?e.strategy:r,s=n.boundary,u=void 0===s?"clippingParents":s,l=n.rootBoundary,c=void 0===l?"viewport":l,d=n.elementContext,p=void 0===d?te:d,f=n.altBoundary,h=void 0!==f&&f,m=n.padding,v=void 0===m?0:m,g=ze("number"!=typeof v?v:ke(v,Q)),y="popper"===p?"reference":te,b=e.rects.popper,w=e.elements[h?y:p],x=qe(se(w)?w:w.contextElement||Ee(e.elements.popper),u,c,a),E=ge(e.elements.reference),C=Ye({reference:E,element:b,strategy:"absolute",placement:o}),M=Ue(Object.assign({},b,C)),O="popper"===p?M:E,S={top:x.top-O.top+g.top,bottom:O.bottom-x.bottom+g.bottom,left:x.left-O.left+g.left,right:O.right-x.right+g.right},P=e.modifiersData.offset;if("popper"===p&&P){var z=P[o];Object.keys(S).forEach(function(e){var t=["right","bottom"].indexOf(e)>=0?1:-1,n=["top","bottom"].indexOf(e)>=0?"y":"x";S[e]+=z[n]*t})}return S}function Ze(e,t){void 0===t&&(t={});var n=t,i=n.placement,o=n.boundary,r=n.rootBoundary,a=n.padding,s=n.flipVariations,u=n.allowedAutoPlacements,l=void 0===u?ie:u,c=Le(i),d=c?s?ne:ne.filter(function(e){return Le(e)===c}):Q,p=d.filter(function(e){return l.indexOf(e)>=0});0===p.length&&(p=d);var f=p.reduce(function(t,n){return t[n]=Xe(e,{placement:n,boundary:o,rootBoundary:r,padding:a})[de(n)],t},{});return Object.keys(f).sort(function(e,t){return f[e]-f[t]})}var Ge={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var o=n.mainAxis,r=void 0===o||o,a=n.altAxis,s=void 0===a||a,u=n.fallbackPlacements,l=n.padding,c=n.boundary,d=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,h=void 0===f||f,m=n.allowedAutoPlacements,v=t.options.placement,g=de(v)===v,y=u||(g||!h?[Ne(v)]:function(e){if("auto"===de(e))return[];var t=Ne(e);return[je(e),t,je(t)]}(v)),b=[v].concat(y).reduce(function(e,n){return e.concat("auto"===de(n)?Ze(t,{placement:n,boundary:c,rootBoundary:d,padding:l,flipVariations:h,allowedAutoPlacements:m}):n)},[]),w=t.rects.reference,x=t.rects.popper,E=/* @__PURE__ */new Map,C=!0,M=b[0],O=0;O<b.length;O++){var S=b[O],P=de(S),z=Le(S)===ee,k=["top",G].indexOf(P)>=0,D=k?"width":"height",L=Xe(t,{placement:S,boundary:c,rootBoundary:d,altBoundary:p,padding:l}),_=k?z?J:K:z?G:"top";w[D]>x[D]&&(_=Ne(_));var T=Ne(_),W=[];if(r&&W.push(L[P]<=0),s&&W.push(L[_]<=0,L[T]<=0),W.every(function(e){return e})){M=S,C=!1;break}E.set(S,W)}if(C)for(var A=function(e){var t=b.find(function(t){var n=E.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return M=t,"break"},N=h?3:1;N>0&&"break"!==A(N);N--);t.placement!==M&&(t.modifiersData[i]._skip=!0,t.placement=M,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Je(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Ke(e){return["top",J,G,K].some(function(t){return e[t]>=0})}var Qe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,i=e.name,o=n.offset,r=void 0===o?[0,0]:o,a=ie.reduce(function(e,n){return e[n]=function(e,t,n){var i=de(e),o=["left","top"].indexOf(i)>=0?-1:1,r="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=r[0],s=r[1];return a=a||0,s=(s||0)*o,["left","right"].indexOf(i)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,r),e},{}),s=a[t.placement],u=s.x,l=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=l),t.modifiersData[i]=a}};var et={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name,o=n.mainAxis,r=void 0===o||o,a=n.altAxis,s=void 0!==a&&a,u=n.boundary,l=n.rootBoundary,c=n.altBoundary,d=n.padding,p=n.tether,f=void 0===p||p,h=n.tetherOffset,m=void 0===h?0:h,v=Xe(t,{boundary:u,rootBoundary:l,padding:d,altBoundary:c}),g=de(t.placement),y=Le(t.placement),b=!y,w=Se(g),x="x"===w?"y":"x",E=t.modifiersData.popperOffsets,C=t.rects.reference,M=t.rects.popper,O="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,S="number"==typeof O?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),P=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,z={x:0,y:0};if(E){if(r){var k,D="y"===w?"top":K,L="y"===w?G:J,_="y"===w?"height":"width",T=E[w],W=T+v[D],A=T-v[L],N=f?-M[_]/2:0,R="start"===y?C[_]:M[_],j="start"===y?-M[_]:-C[_],I=t.elements.arrow,B=f&&I?ye(I):{width:0,height:0},V=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},H=V[D],$=V[L],U=Pe(0,C[_],B[_]),F=b?C[_]/2-N-U-H-S.mainAxis:R-U-H-S.mainAxis,q=b?-C[_]/2+N+U+$+S.mainAxis:j+U+$+S.mainAxis,Y=t.elements.arrow&&Oe(t.elements.arrow),X=Y?"y"===w?Y.clientTop||0:Y.clientLeft||0:0,Z=null!=(k=null==P?void 0:P[w])?k:0,Q=T+q-Z,ee=Pe(f?fe(W,T+F-Z-X):W,T,f?pe(A,Q):A);E[w]=ee,z[w]=ee-T}if(s){var te,ne="x"===w?"top":K,ie="x"===w?G:J,oe=E[x],re="y"===x?"height":"width",ae=oe+v[ne],se=oe-v[ie],ue=-1!==["top",K].indexOf(g),le=null!=(te=null==P?void 0:P[x])?te:0,ce=ue?ae:oe-C[re]-M[re]-le+S.altAxis,he=ue?oe+C[re]+M[re]-le-S.altAxis:se,me=f&&ue?function(e,t,n){var i=Pe(e,t,n);return i>n?n:i}(ce,oe,he):Pe(f?ce:ae,oe,f?he:se);E[x]=me,z[x]=me-oe}t.modifiersData[i]=z}},requiresIfExists:["offset"]};function tt(e,t,n){void 0===n&&(n=!1);var i,o,r=ue(t),a=ue(t)&&function(e){var t=e.getBoundingClientRect(),n=he(t.width)/e.offsetWidth||1,i=he(t.height)/e.offsetHeight||1;return 1!==n||1!==i}(t),s=Ee(t),u=ge(e,a,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&(("body"!==re(t)||Ve(s))&&(l=(i=t)!==ae(i)&&ue(i)?{scrollLeft:(o=i).scrollLeft,scrollTop:o.scrollTop}:Ie(i)),ue(t)?((c=ge(t,!0)).x+=t.clientLeft,c.y+=t.clientTop):s&&(c.x=Be(s))),{x:u.left+l.scrollLeft-c.x,y:u.top+l.scrollTop-c.y,width:u.width,height:u.height}}function nt(e){var t=/* @__PURE__ */new Map,n=/* @__PURE__ */new Set,i=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var i=t.get(e);i&&o(i)}}),i.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||o(e)}),i}var it={placement:"bottom",modifiers:[],strategy:"absolute"};function ot(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function rt(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,i=void 0===n?[]:n,o=t.defaultOptions,r=void 0===o?it:o;return function(e,t,n){void 0===n&&(n=r);var o,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},it,r),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},u=[],l=!1,c={state:s,setOptions:function(n){var o="function"==typeof n?n(s.options):n;d(),s.options=Object.assign({},r,s.options,o),s.scrollParents={reference:se(e)?$e(e):e.contextElement?$e(e.contextElement):[],popper:$e(t)};var a,l,p=function(e){var t=nt(e);return oe.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}((a=[].concat(i,s.options.modifiers),l=a.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{}),Object.keys(l).map(function(e){return l[e]})));return s.orderedModifiers=p.filter(function(e){return e.enabled}),s.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,i=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var r=o({state:s,name:t,instance:c,options:i});u.push(r||function(){})}}),c.update()},forceUpdate:function(){if(!l){var e=s.elements,t=e.reference,n=e.popper;if(ot(t,n)){s.rects={reference:tt(t,Oe(n),"fixed"===s.options.strategy),popper:ye(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach(function(e){return s.modifiersData[e.name]=Object.assign({},e.data)});for(var i=0;i<s.orderedModifiers.length;i++)if(!0!==s.reset){var o=s.orderedModifiers[i],r=o.fn,a=o.options,u=void 0===a?{}:a,d=o.name;"function"==typeof r&&(s=r({state:s,options:u,name:d,instance:c})||s)}else s.reset=!1,i=-1}}},update:(o=function(){return new Promise(function(e){c.forceUpdate(),e(s)})},function(){return a||(a=new Promise(function(e){Promise.resolve().then(function(){a=void 0,e(o())})})),a}),destroy:function(){d(),l=!0}};if(!ot(e,t))return c;function d(){u.forEach(function(e){return e()}),u=[]}return c.setOptions(n).then(function(e){!l&&n.onFirstUpdate&&n.onFirstUpdate(e)}),c}}var at=/*#__PURE__*/rt({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,i=e.options,o=i.scroll,r=void 0===o||o,a=i.resize,s=void 0===a||a,u=ae(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&l.forEach(function(e){e.addEventListener("scroll",n.update,We)}),s&&u.addEventListener("resize",n.update,We),function(){r&&l.forEach(function(e){e.removeEventListener("scroll",n.update,We)}),s&&u.removeEventListener("resize",n.update,We)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Ye({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,i=n.gpuAcceleration,o=void 0===i||i,r=n.adaptive,a=void 0===r||r,s=n.roundOffsets,u=void 0===s||s,l={placement:de(t.placement),variation:Le(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Te(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:u})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Te(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},ce,Qe,Ge,et,De,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,i=t.rects.reference,o=t.rects.popper,r=t.modifiersData.preventOverflow,a=Xe(t,{elementContext:"reference"}),s=Xe(t,{altBoundary:!0}),u=Je(a,i),l=Je(s,o,r),c=Ke(u),d=Ke(l);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}}]}),st='<svg width="16" height="6" xmlns="http://www.w3.org/2000/svg"><path d="M0 6s1.796-.013 4.67-3.615C5.851.9 6.93.006 8 0c1.07-.006 2.148.887 3.343 2.385C14.233 6.005 16 6 16 6H0z"></svg>',ut="tippy-content",lt="tippy-backdrop",ct="tippy-arrow",dt="tippy-svg-arrow",pt={passive:!0,capture:!0},ft=function(){return document.body};function ht(e,t,n){if(Array.isArray(e)){var i=e[t];return null==i?Array.isArray(n)?n[t]:n:i}return e}function mt(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function vt(e,t){return"function"==typeof e?e.apply(void 0,t):e}function gt(e,t){return 0===t?e:function(i){clearTimeout(n),n=setTimeout(function(){e(i)},t)};var n}function yt(e,t){var n=Object.assign({},e);return t.forEach(function(e){delete n[e]}),n}function bt(e){return[].concat(e)}function wt(e,t){-1===e.indexOf(t)&&e.push(t)}function xt(e){return e.split("-")[0]}function Et(e){return[].slice.call(e)}function Ct(e){return Object.keys(e).reduce(function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t},{})}function Mt(){return document.createElement("div")}function Ot(e){return["Element","Fragment"].some(function(t){return mt(e,t)})}function St(e){return mt(e,"MouseEvent")}function Pt(e){return!(!e||!e._tippy||e._tippy.reference!==e)}function zt(e){return Ot(e)?[e]:function(e){return mt(e,"NodeList")}(e)?Et(e):Array.isArray(e)?e:Et(document.querySelectorAll(e))}function kt(e,t){e.forEach(function(e){e&&(e.style.transitionDuration=t+"ms")})}function Dt(e,t){e.forEach(function(e){e&&e.setAttribute("data-state",t)})}function Lt(e){var t,n=bt(e)[0];return null!=n&&null!=(t=n.ownerDocument)&&t.body?n.ownerDocument:document}function _t(e,t,n){var i=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(t){e[i](t,n)})}function Tt(e,t){for(var n=t;n;){var i;if(e.contains(n))return!0;n=null==n.getRootNode||null==(i=n.getRootNode())?void 0:i.host}return!1}var Wt={isTouch:!1},At=0;function Nt(){Wt.isTouch||(Wt.isTouch=!0,window.performance&&document.addEventListener("mousemove",Rt))}function Rt(){var e=performance.now();e-At<20&&(Wt.isTouch=!1,document.removeEventListener("mousemove",Rt)),At=e}function jt(){var e=document.activeElement;if(Pt(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}var It,Bt="undefined"!=typeof window&&"undefined"!=typeof document&&!!window.msCrypto;function Vt(e){return[e+"() was called on a"+("destroy"===e?"n already-":" ")+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function Ht(e){return e.replace(/[ \t]{2,}/g," ").replace(/^[ \t]*/gm,"").trim()}function $t(e){return Ht("\n %ctippy.js\n\n %c"+Ht(e)+"\n\n %c👷‍ This is a development-only message. It will be removed in production.\n ")}function Ut(e){return[$t(e),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}function Ft(e,t){var n;e&&!It.has(t)&&(It.add(t),(n=console).warn.apply(n,Ut(t)))}function qt(e,t){var n;e&&!It.has(t)&&(It.add(t),(n=console).error.apply(n,Ut(t)))}"production"!==a.env.NODE_ENV&&(It=/* @__PURE__ */new Set);var Yt={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},Xt=Object.assign({appendTo:ft,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},Yt,{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),Zt=Object.keys(Xt);function Gt(e){var t=(e.plugins||[]).reduce(function(t,n){var i,o=n.name,r=n.defaultValue;o&&(t[o]=void 0!==e[o]?e[o]:null!=(i=Xt[o])?i:r);return t},{});return Object.assign({},e,t)}function Jt(e,t){var n=Object.assign({},t,{content:vt(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(Gt(Object.assign({},Xt,{plugins:t}))):Zt).reduce(function(t,n){var i=(e.getAttribute("data-tippy-"+n)||"").trim();if(!i)return t;if("content"===n)t[n]=i;else try{t[n]=JSON.parse(i)}catch(o){t[n]=i}return t},{})}(e,t.plugins));return n.aria=Object.assign({},Xt.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}function Kt(e,t){void 0===e&&(e={}),void 0===t&&(t=[]),Object.keys(e).forEach(function(e){var n,i,o=(n=yt(Xt,Object.keys(Yt)),i=e,!{}.hasOwnProperty.call(n,i));o&&(o=0===t.filter(function(t){return t.name===e}).length),Ft(o,["`"+e+"`","is not a valid prop. You may have spelled it incorrectly, or if it's","a plugin, forgot to pass it in an array as props.plugins.","\n\n","All props: https://atomiks.github.io/tippyjs/v6/all-props/\n","Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))})}function Qt(e,t){e.innerHTML=t}function en(e){var t=Mt();return!0===e?t.className=ct:(t.className=dt,Ot(e)?t.appendChild(e):Qt(t,e)),t}function tn(e,t){Ot(t.content)?(Qt(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?Qt(e,t.content):e.textContent=t.content)}function nn(e){var t=e.firstElementChild,n=Et(t.children);return{box:t,content:n.find(function(e){return e.classList.contains(ut)}),arrow:n.find(function(e){return e.classList.contains(ct)||e.classList.contains(dt)}),backdrop:n.find(function(e){return e.classList.contains(lt)})}}function on(e){var t=Mt(),n=Mt();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var i=Mt();function o(n,i){var o=nn(t),r=o.box,a=o.content,s=o.arrow;i.theme?r.setAttribute("data-theme",i.theme):r.removeAttribute("data-theme"),"string"==typeof i.animation?r.setAttribute("data-animation",i.animation):r.removeAttribute("data-animation"),i.inertia?r.setAttribute("data-inertia",""):r.removeAttribute("data-inertia"),r.style.maxWidth="number"==typeof i.maxWidth?i.maxWidth+"px":i.maxWidth,i.role?r.setAttribute("role",i.role):r.removeAttribute("role"),n.content===i.content&&n.allowHTML===i.allowHTML||tn(a,e.props),i.arrow?s?n.arrow!==i.arrow&&(r.removeChild(s),r.appendChild(en(i.arrow))):r.appendChild(en(i.arrow)):s&&r.removeChild(s)}return i.className=ut,i.setAttribute("data-state","hidden"),tn(i,e.props),t.appendChild(n),n.appendChild(i),o(e.props,e.props),{popper:t,onUpdate:o}}on.$$tippy=!0;var rn=1,an=[],sn=[];function un(e,t){var n,i,o,r,s,u,l,c,d=Jt(e,Object.assign({},Xt,Gt(Ct(t)))),p=!1,f=!1,h=!1,m=!1,v=[],g=gt(X,d.interactiveDebounce),y=rn++,b=(c=d.plugins).filter(function(e,t){return c.indexOf(e)===t}),w={id:y,reference:e,popper:Mt(),popperInstance:null,props:d,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:b,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(i),cancelAnimationFrame(o)},setProps:function(t){"production"!==a.env.NODE_ENV&&Ft(w.state.isDestroyed,Vt("setProps"));if(w.state.isDestroyed)return;W("onBeforeUpdate",[w,t]),q();var n=w.props,i=Jt(e,Object.assign({},n,Ct(t),{ignoreAttributes:!0}));w.props=i,F(),n.interactiveDebounce!==i.interactiveDebounce&&(R(),g=gt(X,i.interactiveDebounce));n.triggerTarget&&!i.triggerTarget?bt(n.triggerTarget).forEach(function(e){e.removeAttribute("aria-expanded")}):i.triggerTarget&&e.removeAttribute("aria-expanded");N(),T(),C&&C(n,i);w.popperInstance&&(K(),ee().forEach(function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)}));W("onAfterUpdate",[w,t])},setContent:function(e){w.setProps({content:e})},show:function(){"production"!==a.env.NODE_ENV&&Ft(w.state.isDestroyed,Vt("show"));var e=w.state.isVisible,t=w.state.isDestroyed,n=!w.state.isEnabled,i=Wt.isTouch&&!w.props.touch,o=ht(w.props.duration,0,Xt.duration);if(e||t||n||i)return;if(k().hasAttribute("disabled"))return;if(W("onShow",[w],!1),!1===w.props.onShow(w))return;w.state.isVisible=!0,z()&&(E.style.visibility="visible");T(),V(),w.state.isMounted||(E.style.transition="none");if(z()){var r=L();kt([r.box,r.content],0)}u=function(){var e;if(w.state.isVisible&&!m){if(m=!0,E.offsetHeight,E.style.transition=w.props.moveTransition,z()&&w.props.animation){var t=L(),n=t.box,i=t.content;kt([n,i],o),Dt([n,i],"visible")}A(),N(),wt(sn,w),null==(e=w.popperInstance)||e.forceUpdate(),W("onMount",[w]),w.props.animation&&z()&&function(e,t){$(e,t)}(o,function(){w.state.isShown=!0,W("onShown",[w])})}},function(){var e,t=w.props.appendTo,n=k();e=w.props.interactive&&t===ft||"parent"===t?n.parentNode:vt(t,[n]);e.contains(E)||e.appendChild(E);w.state.isMounted=!0,K(),"production"!==a.env.NODE_ENV&&Ft(w.props.interactive&&t===Xt.appendTo&&n.nextElementSibling!==E,["Interactive tippy element may not be accessible via keyboard","navigation because it is not directly after the reference element","in the DOM source order.","\n\n","Using a wrapper <div> or <span> tag around the reference element","solves this by creating a new parentNode context.","\n\n","Specifying `appendTo: document.body` silences this warning, but it","assumes you are using a focus management solution to handle","keyboard navigation.","\n\n","See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "))}()},hide:function(){"production"!==a.env.NODE_ENV&&Ft(w.state.isDestroyed,Vt("hide"));var e=!w.state.isVisible,t=w.state.isDestroyed,n=!w.state.isEnabled,i=ht(w.props.duration,1,Xt.duration);if(e||t||n)return;if(W("onHide",[w],!1),!1===w.props.onHide(w))return;w.state.isVisible=!1,w.state.isShown=!1,m=!1,p=!1,z()&&(E.style.visibility="hidden");if(R(),H(),T(!0),z()){var o=L(),r=o.box,s=o.content;w.props.animation&&(kt([r,s],i),Dt([r,s],"hidden"))}A(),N(),w.props.animation?z()&&function(e,t){$(e,function(){!w.state.isVisible&&E.parentNode&&E.parentNode.contains(E)&&t()})}(i,w.unmount):w.unmount()},hideWithInteractivity:function(e){"production"!==a.env.NODE_ENV&&Ft(w.state.isDestroyed,Vt("hideWithInteractivity"));D().addEventListener("mousemove",g),wt(an,g),g(e)},enable:function(){w.state.isEnabled=!0},disable:function(){w.hide(),w.state.isEnabled=!1},unmount:function(){"production"!==a.env.NODE_ENV&&Ft(w.state.isDestroyed,Vt("unmount"));w.state.isVisible&&w.hide();if(!w.state.isMounted)return;Q(),ee().forEach(function(e){e._tippy.unmount()}),E.parentNode&&E.parentNode.removeChild(E);sn=sn.filter(function(e){return e!==w}),w.state.isMounted=!1,W("onHidden",[w])},destroy:function(){"production"!==a.env.NODE_ENV&&Ft(w.state.isDestroyed,Vt("destroy"));if(w.state.isDestroyed)return;w.clearDelayTimeouts(),w.unmount(),q(),delete e._tippy,w.state.isDestroyed=!0,W("onDestroy",[w])}};if(!d.render)return"production"!==a.env.NODE_ENV&&qt(!0,"render() function has not been supplied."),w;var x=d.render(w),E=x.popper,C=x.onUpdate;E.setAttribute("data-tippy-root",""),E.id="tippy-"+w.id,w.popper=E,e._tippy=w,E._tippy=w;var M=b.map(function(e){return e.fn(w)}),O=e.hasAttribute("aria-expanded");return F(),N(),T(),W("onCreate",[w]),d.showOnCreate&&te(),E.addEventListener("mouseenter",function(){w.props.interactive&&w.state.isVisible&&w.clearDelayTimeouts()}),E.addEventListener("mouseleave",function(){w.props.interactive&&w.props.trigger.indexOf("mouseenter")>=0&&D().addEventListener("mousemove",g)}),w;function S(){var e=w.props.touch;return Array.isArray(e)?e:[e,0]}function P(){return"hold"===S()[0]}function z(){var e;return!(null==(e=w.props.render)||!e.$$tippy)}function k(){return l||e}function D(){var e=k().parentNode;return e?Lt(e):document}function L(){return nn(E)}function _(e){return w.state.isMounted&&!w.state.isVisible||Wt.isTouch||r&&"focus"===r.type?0:ht(w.props.delay,e?0:1,Xt.delay)}function T(e){void 0===e&&(e=!1),E.style.pointerEvents=w.props.interactive&&!e?"":"none",E.style.zIndex=""+w.props.zIndex}function W(e,t,n){var i;(void 0===n&&(n=!0),M.forEach(function(n){n[e]&&n[e].apply(n,t)}),n)&&(i=w.props)[e].apply(i,t)}function A(){var t=w.props.aria;if(t.content){var n="aria-"+t.content,i=E.id;bt(w.props.triggerTarget||e).forEach(function(e){var t=e.getAttribute(n);if(w.state.isVisible)e.setAttribute(n,t?t+" "+i:i);else{var o=t&&t.replace(i,"").trim();o?e.setAttribute(n,o):e.removeAttribute(n)}})}}function N(){!O&&w.props.aria.expanded&&bt(w.props.triggerTarget||e).forEach(function(e){w.props.interactive?e.setAttribute("aria-expanded",w.state.isVisible&&e===k()?"true":"false"):e.removeAttribute("aria-expanded")})}function R(){D().removeEventListener("mousemove",g),an=an.filter(function(e){return e!==g})}function j(t){if(!Wt.isTouch||!h&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!w.props.interactive||!Tt(E,n)){if(bt(w.props.triggerTarget||e).some(function(e){return Tt(e,n)})){if(Wt.isTouch)return;if(w.state.isVisible&&w.props.trigger.indexOf("click")>=0)return}else W("onClickOutside",[w,t]);!0===w.props.hideOnClick&&(w.clearDelayTimeouts(),w.hide(),f=!0,setTimeout(function(){f=!1}),w.state.isMounted||H())}}}function I(){h=!0}function B(){h=!1}function V(){var e=D();e.addEventListener("mousedown",j,!0),e.addEventListener("touchend",j,pt),e.addEventListener("touchstart",B,pt),e.addEventListener("touchmove",I,pt)}function H(){var e=D();e.removeEventListener("mousedown",j,!0),e.removeEventListener("touchend",j,pt),e.removeEventListener("touchstart",B,pt),e.removeEventListener("touchmove",I,pt)}function $(e,t){var n=L().box;function i(e){e.target===n&&(_t(n,"remove",i),t())}if(0===e)return t();_t(n,"remove",s),_t(n,"add",i),s=i}function U(t,n,i){void 0===i&&(i=!1),bt(w.props.triggerTarget||e).forEach(function(e){e.addEventListener(t,n,i),v.push({node:e,eventType:t,handler:n,options:i})})}function F(){var e;P()&&(U("touchstart",Y,{passive:!0}),U("touchend",Z,{passive:!0})),(e=w.props.trigger,e.split(/\s+/).filter(Boolean)).forEach(function(e){if("manual"!==e)switch(U(e,Y),e){case"mouseenter":U("mouseleave",Z);break;case"focus":U(Bt?"focusout":"blur",G);break;case"focusin":U("focusout",G)}})}function q(){v.forEach(function(e){var t=e.node,n=e.eventType,i=e.handler,o=e.options;t.removeEventListener(n,i,o)}),v=[]}function Y(e){var t,n=!1;if(w.state.isEnabled&&!J(e)&&!f){var i="focus"===(null==(t=r)?void 0:t.type);r=e,l=e.currentTarget,N(),!w.state.isVisible&&St(e)&&an.forEach(function(t){return t(e)}),"click"===e.type&&(w.props.trigger.indexOf("mouseenter")<0||p)&&!1!==w.props.hideOnClick&&w.state.isVisible?n=!0:te(e),"click"===e.type&&(p=!n),n&&!i&&ne(e)}}function X(e){var t=e.target,n=k().contains(t)||E.contains(t);"mousemove"===e.type&&n||function(e,t){var n=t.clientX,i=t.clientY;return e.every(function(e){var t=e.popperRect,o=e.popperState,r=e.props.interactiveBorder,a=xt(o.placement),s=o.modifiersData.offset;if(!s)return!0;var u="bottom"===a?s.top.y:0,l="top"===a?s.bottom.y:0,c="right"===a?s.left.x:0,d="left"===a?s.right.x:0,p=t.top-i+u>r,f=i-t.bottom-l>r,h=t.left-n+c>r,m=n-t.right-d>r;return p||f||h||m})}(ee().concat(E).map(function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:d}:null}).filter(Boolean),e)&&(R(),ne(e))}function Z(e){J(e)||w.props.trigger.indexOf("click")>=0&&p||(w.props.interactive?w.hideWithInteractivity(e):ne(e))}function G(e){w.props.trigger.indexOf("focusin")<0&&e.target!==k()||w.props.interactive&&e.relatedTarget&&E.contains(e.relatedTarget)||ne(e)}function J(e){return!!Wt.isTouch&&P()!==e.type.indexOf("touch")>=0}function K(){Q();var t=w.props,n=t.popperOptions,i=t.placement,o=t.offset,r=t.getReferenceClientRect,a=t.moveTransition,s=z()?nn(E).arrow:null,l=r?{getBoundingClientRect:r,contextElement:r.contextElement||k()}:e,c=[{name:"offset",options:{offset:o}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!a}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(z()){var n=L().box;["placement","reference-hidden","escaped"].forEach(function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)}),t.attributes.popper={}}}}];z()&&s&&c.push({name:"arrow",options:{element:s,padding:3}}),c.push.apply(c,(null==n?void 0:n.modifiers)||[]),w.popperInstance=at(l,E,Object.assign({},n,{placement:i,onFirstUpdate:u,modifiers:c}))}function Q(){w.popperInstance&&(w.popperInstance.destroy(),w.popperInstance=null)}function ee(){return Et(E.querySelectorAll("[data-tippy-root]"))}function te(e){w.clearDelayTimeouts(),e&&W("onTrigger",[w,e]),V();var t=_(!0),i=S(),o=i[0],r=i[1];Wt.isTouch&&"hold"===o&&r&&(t=r),t?n=setTimeout(function(){w.show()},t):w.show()}function ne(e){if(w.clearDelayTimeouts(),W("onUntrigger",[w,e]),w.state.isVisible){if(!(w.props.trigger.indexOf("mouseenter")>=0&&w.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&p)){var t=_(!1);t?i=setTimeout(function(){w.state.isVisible&&w.hide()},t):o=requestAnimationFrame(function(){w.hide()})}}else H()}}function ln(e,t){void 0===t&&(t={});var n=Xt.plugins.concat(t.plugins||[]);"production"!==a.env.NODE_ENV&&(!function(e){var t=!e,n="[object Object]"===Object.prototype.toString.call(e)&&!e.addEventListener;qt(t,["tippy() was passed","`"+String(e)+"`","as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" ")),qt(n,["tippy() was passed a plain object which is not supported as an argument","for virtual positioning. Use props.getReferenceClientRect instead."].join(" "))}(e),Kt(t,n)),document.addEventListener("touchstart",Nt,pt),window.addEventListener("blur",jt);var i=Object.assign({},t,{plugins:n}),o=zt(e);if("production"!==a.env.NODE_ENV){var r=Ot(i.content),s=o.length>1;Ft(r&&s,["tippy() was passed an Element as the `content` prop, but more than","one tippy instance was created by this invocation. This means the","content element will only be appended to the last tippy instance.","\n\n","Instead, pass the .innerHTML of the element, or use a function that","returns a cloned version of the element instead.","\n\n","1) content: element.innerHTML\n","2) content: () => element.cloneNode(true)"].join(" "))}var u=o.reduce(function(e,t){var n=t&&un(t,i);return n&&e.push(n),e},[]);return Ot(e)?u[0]:u}ln.defaultProps=Xt,ln.setDefaultProps=function(e){"production"!==a.env.NODE_ENV&&Kt(e,[]),Object.keys(e).forEach(function(t){Xt[t]=e[t]})},ln.currentInput=Wt;var cn=function(e){var t=void 0===e?{}:e,n=t.exclude,i=t.duration;sn.forEach(function(e){var t=!1;if(n&&(t=Pt(n)?e.reference===n:e.popper===n.popper),!t){var o=e.props.duration;e.setProps({duration:i}),e.hide(),e.state.isDestroyed||e.setProps({duration:o})}})},dn=Object.assign({},ce,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}}),pn=function(e,t){var n;void 0===t&&(t={}),"production"!==a.env.NODE_ENV&&qt(!Array.isArray(e),["The first argument passed to createSingleton() must be an array of","tippy instances. The passed value was",String(e)].join(" "));var i,o=e,r=[],s=[],u=t.overrides,l=[],c=!1;function d(){s=o.map(function(e){return bt(e.props.triggerTarget||e.reference)}).reduce(function(e,t){return e.concat(t)},[])}function p(){r=o.map(function(e){return e.reference})}function f(e){o.forEach(function(t){e?t.enable():t.disable()})}function h(e){return o.map(function(t){var n=t.setProps;return t.setProps=function(o){n(o),t.reference===i&&e.setProps(o)},function(){t.setProps=n}})}function m(e,t){var n=s.indexOf(t);if(t!==i){i=t;var a=(u||[]).concat("content").reduce(function(e,t){return e[t]=o[n].props[t],e},{});e.setProps(Object.assign({},a,{getReferenceClientRect:"function"==typeof a.getReferenceClientRect?a.getReferenceClientRect:function(){var e;return null==(e=r[n])?void 0:e.getBoundingClientRect()}}))}}f(!1),p(),d();var v=ln(Mt(),Object.assign({},yt(t,["overrides"]),{plugins:[{fn:function(){return{onDestroy:function(){f(!0)},onHidden:function(){i=null},onClickOutside:function(e){e.props.showOnCreate&&!c&&(c=!0,i=null)},onShow:function(e){e.props.showOnCreate&&!c&&(c=!0,m(e,r[0]))},onTrigger:function(e,t){m(e,t.currentTarget)}}}}].concat(t.plugins||[]),triggerTarget:s,popperOptions:Object.assign({},t.popperOptions,{modifiers:[].concat((null==(n=t.popperOptions)?void 0:n.modifiers)||[],[dn])})})),g=v.show;v.show=function(e){if(g(),!i&&null==e)return m(v,r[0]);if(!i||null!=e){if("number"==typeof e)return r[e]&&m(v,r[e]);if(o.indexOf(e)>=0){var t=e.reference;return m(v,t)}return r.indexOf(e)>=0?m(v,e):void 0}},v.showNext=function(){var e=r[0];if(!i)return v.show(0);var t=r.indexOf(i);v.show(r[t+1]||e)},v.showPrevious=function(){var e=r[r.length-1];if(!i)return v.show(e);var t=r.indexOf(i),n=r[t-1]||e;v.show(n)};var y=v.setProps;return v.setProps=function(e){u=e.overrides||u,y(e)},v.setInstances=function(e){f(!0),l.forEach(function(e){return e()}),o=e,f(!1),p(),d(),l=h(v),v.setProps({triggerTarget:s})},l=h(v),v},fn={mouseover:"mouseenter",focusin:"focus",click:"click"};function hn(e,t){"production"!==a.env.NODE_ENV&&qt(!(t&&t.target),["You must specity a `target` prop indicating a CSS selector string matching","the target elements that should receive a tippy."].join(" "));var n=[],i=[],o=!1,r=t.target,s=yt(t,["target"]),u=Object.assign({},s,{trigger:"manual",touch:!1}),l=Object.assign({touch:Xt.touch},s,{showOnCreate:!0}),c=ln(e,u);function d(e){if(e.target&&!o){var n=e.target.closest(r);if(n){var a=n.getAttribute("data-tippy-trigger")||t.trigger||Xt.trigger;if(!n._tippy&&!("touchstart"===e.type&&"boolean"==typeof l.touch||"touchstart"!==e.type&&a.indexOf(fn[e.type])<0)){var s=ln(n,l);s&&(i=i.concat(s))}}}}function p(e,t,i,o){void 0===o&&(o=!1),e.addEventListener(t,i,o),n.push({node:e,eventType:t,handler:i,options:o})}return bt(c).forEach(function(e){var t=e.destroy,r=e.enable,a=e.disable;e.destroy=function(e){void 0===e&&(e=!0),e&&i.forEach(function(e){e.destroy()}),i=[],n.forEach(function(e){var t=e.node,n=e.eventType,i=e.handler,o=e.options;t.removeEventListener(n,i,o)}),n=[],t()},e.enable=function(){r(),i.forEach(function(e){return e.enable()}),o=!1},e.disable=function(){a(),i.forEach(function(e){return e.disable()}),o=!0},function(e){var t=e.reference;p(t,"touchstart",d,pt),p(t,"mouseover",d),p(t,"focusin",d),p(t,"click",d)}(e)}),c}var mn={name:"animateFill",defaultValue:!1,fn:function(e){var t;if(null==(t=e.props.render)||!t.$$tippy)return"production"!==a.env.NODE_ENV&&qt(e.props.animateFill,"The `animateFill` plugin requires the default render function."),{};var n=nn(e.popper),i=n.box,o=n.content,r=e.props.animateFill?function(){var e=Mt();return e.className=lt,Dt([e],"hidden"),e}():null;return{onCreate:function(){r&&(i.insertBefore(r,i.firstElementChild),i.setAttribute("data-animatefill",""),i.style.overflow="hidden",e.setProps({arrow:!1,animation:"shift-away"}))},onMount:function(){if(r){var e=i.style.transitionDuration,t=Number(e.replace("ms",""));o.style.transitionDelay=Math.round(t/10)+"ms",r.style.transitionDuration=e,Dt([r],"visible")}},onShow:function(){r&&(r.style.transitionDuration="0ms")},onHide:function(){r&&Dt([r],"hidden")}}}};var vn={clientX:0,clientY:0},gn=[];function yn(e){vn={clientX:e.clientX,clientY:e.clientY}}var bn={name:"followCursor",defaultValue:!1,fn:function(e){var t=e.reference,n=Lt(e.props.triggerTarget||t),i=!1,o=!1,r=!0,a=e.props;function s(){return"initial"===e.props.followCursor&&e.state.isVisible}function u(){n.addEventListener("mousemove",d)}function l(){n.removeEventListener("mousemove",d)}function c(){i=!0,e.setProps({getReferenceClientRect:null}),i=!1}function d(n){var i=!n.target||t.contains(n.target),o=e.props.followCursor,r=n.clientX,a=n.clientY,s=t.getBoundingClientRect(),u=r-s.left,l=a-s.top;!i&&e.props.interactive||e.setProps({getReferenceClientRect:function(){var e=t.getBoundingClientRect(),n=r,i=a;"initial"===o&&(n=e.left+u,i=e.top+l);var s="horizontal"===o?e.top:i,c="vertical"===o?e.right:n,d="horizontal"===o?e.bottom:i,p="vertical"===o?e.left:n;return{width:c-p,height:d-s,top:s,right:c,bottom:d,left:p}}})}function p(){e.props.followCursor&&(gn.push({instance:e,doc:n}),function(e){e.addEventListener("mousemove",yn)}(n))}function f(){gn=gn.filter(function(t){return t.instance!==e}),0===gn.filter(function(e){return e.doc===n}).length&&function(e){e.removeEventListener("mousemove",yn)}(n)}return{onCreate:p,onDestroy:f,onBeforeUpdate:function(){a=e.props},onAfterUpdate:function(t,n){var r=n.followCursor;i||void 0!==r&&a.followCursor!==r&&(f(),r?(p(),!e.state.isMounted||o||s()||u()):(l(),c()))},onMount:function(){e.props.followCursor&&!o&&(r&&(d(vn),r=!1),s()||u())},onTrigger:function(e,t){St(t)&&(vn={clientX:t.clientX,clientY:t.clientY}),o="focus"===t.type},onHidden:function(){e.props.followCursor&&(c(),l(),r=!0)}}}};var wn={name:"inlinePositioning",defaultValue:!1,fn:function(e){var t,n=e.reference;var i=-1,o=!1,r=[],a={name:"tippyInlinePositioning",enabled:!0,phase:"afterWrite",fn:function(o){var a=o.state;e.props.inlinePositioning&&(-1!==r.indexOf(a.placement)&&(r=[]),t!==a.placement&&-1===r.indexOf(a.placement)&&(r.push(a.placement),e.setProps({getReferenceClientRect:function(){return function(e){return function(e,t,n,i){if(n.length<2||null===e)return t;if(2===n.length&&i>=0&&n[0].left>n[1].right)return n[i]||t;switch(e){case"top":case"bottom":var o=n[0],r=n[n.length-1],a="top"===e,s=o.top,u=r.bottom,l=a?o.left:r.left,c=a?o.right:r.right;return{top:s,bottom:u,left:l,right:c,width:c-l,height:u-s};case"left":case"right":var d=Math.min.apply(Math,n.map(function(e){return e.left})),p=Math.max.apply(Math,n.map(function(e){return e.right})),f=n.filter(function(t){return"left"===e?t.left===d:t.right===p}),h=f[0].top,m=f[f.length-1].bottom;return{top:h,bottom:m,left:d,right:p,width:p-d,height:m-h};default:return t}}(xt(e),n.getBoundingClientRect(),Et(n.getClientRects()),i)}(a.placement)}})),t=a.placement)}};function s(){var t;o||(t=function(e,t){var n;return{popperOptions:Object.assign({},e.popperOptions,{modifiers:[].concat(((null==(n=e.popperOptions)?void 0:n.modifiers)||[]).filter(function(e){return e.name!==t.name}),[t])})}}(e.props,a),o=!0,e.setProps(t),o=!1)}return{onCreate:s,onAfterUpdate:s,onTrigger:function(t,n){if(St(n)){var o=Et(e.reference.getClientRects()),r=o.find(function(e){return e.left-2<=n.clientX&&e.right+2>=n.clientX&&e.top-2<=n.clientY&&e.bottom+2>=n.clientY}),a=o.indexOf(r);i=a>-1?a:i}},onHidden:function(){i=-1}}}};var xn,En={name:"sticky",defaultValue:!1,fn:function(e){var t=e.reference,n=e.popper;function i(t){return!0===e.props.sticky||e.props.sticky===t}var o=null,r=null;function a(){var s=i("reference")?(e.popperInstance?e.popperInstance.state.elements.reference:t).getBoundingClientRect():null,u=i("popper")?n.getBoundingClientRect():null;(s&&Cn(o,s)||u&&Cn(r,u))&&e.popperInstance&&e.popperInstance.update(),o=s,r=u,e.state.isMounted&&requestAnimationFrame(a)}return{onMount:function(){e.props.sticky&&a()}}}};function Cn(e,t){return!e||!t||(e.top!==t.top||e.right!==t.right||e.bottom!==t.bottom||e.left!==t.left)}ln.setDefaultProps({render:on}),function(e){e[e.top=0]="top",e[e.bottom=1]="bottom",e[e.centerBack=2]="centerBack",e[e.centerMain=3]="centerMain",e[e.centerFront=4]="centerFront",e[e.left=5]="left",e[e.right=6]="right"}(xn||(xn={}));var Mn=(e,t)=>{const n=e.__vccOpts||e;for(const[i,o]of t)n[i]=o;return n};var On=/*#__PURE__*/Mn(E({name:"SuspenseWithError",setup(){const e=W(null);return D(t=>(e.value="当前页面存在问题,无法渲染……",console.error("onErrorCaptured",t),!0)),{error:e}}}),[["render",function(e,t,n,i,o,r){return e.error?N(e.$slots,"error",{},()=>[w(B(e.error),1)],void 0,0):(T(),v(p,{key:1},{default:q(()=>[N(e.$slots,"default")]),fallback:q(()=>[N(e.$slots,"fallback",{},()=>[t[0]||(t[0]=b("div",null,"加载中……",-1))])]),_:3}))}]]),Sn=/*@__PURE__*/E({name:"RouterTransition",__name:"RouterTransition",setup:e=>(e,t)=>{const n=R("router-view");return T(),v(On,null,{default:q(()=>[x(n,null,{default:q(({Component:e,route:t})=>[(T(),v(d,null,[t.meta.keepAlive?(T(),v(j(e),{key:t.name})):g("",!0)],1024)),t.meta.keepAlive?g("",!0):(T(),v(j(e),{key:t.name}))]),_:1})]),_:1})}}),Pn=class{layoutState;layoutMap=/* @__PURE__ */new Map;preConditionMap=/* @__PURE__ */new Map;widgetsLoadedSet=/* @__PURE__ */new Set;pendingLoads=/* @__PURE__ */new Map;loadTokens=/* @__PURE__ */new Map;dependencyWaiters=/* @__PURE__ */new Map;disposed=!1;widgetConfigDiction=/* @__PURE__ */new Map;_LayoutID;_mapItemRefs;constructor(e,t,n,i){if(this.layoutState=e,this._LayoutID=t,this._mapItemRefs=i,r.RightWidgetConfigMap){const e=r.RightWidgetConfigMap.get(t);e&&e.forEach(e=>{if(this.widgetConfigDiction.set(e.id,e),e.afterid)if(this.preConditionMap.has(e.afterid))this.preConditionMap.get(e.afterid)?.add(e);else{const t=/* @__PURE__ */new Set;t.add(e),this.preConditionMap.set(e.afterid,t)}})}else{const e=r.WidgetConfigList??n;e&&e.forEach(e=>{if(e.layoutID===t&&(this.widgetConfigDiction.set(e.id,e),e.afterid))if(this.preConditionMap.has(e.afterid))this.preConditionMap.get(e.afterid)?.add(e);else{const t=/* @__PURE__ */new Set;t.add(e),this.preConditionMap.set(e.afterid,t)}})}}getLayoutID(){return this._LayoutID}getWidgetConfigMap(){return this.widgetConfigDiction}preloadWidgets(){if(this.widgetConfigDiction.size>0)for(const[e,t]of this.widgetConfigDiction)t.preload&&!t.afterid&&this._loadWidget(t)}async loadWidget(e){if(!e||this.disposed)return;let t;if(o(e)?t=e:u(e)&&(t=this.widgetConfigDiction.get(e)),t){if(t.afterid){if(this.isWidgetLoaded(t.afterid))return this._loadWidget(t);{this.dependencyWaiters.get(t.id)?.();const n=this,i=t.afterid,a=t;function l(e){if(e.layoutID===n._LayoutID&&e.widgetID===i){if(n.dependencyWaiters.get(a.id)!==c)return;c(),n._loadWidget(a)}}const c=()=>{r.EventBus.off(s.WidgetLoadedEvent,l),this.dependencyWaiters.delete(a.id)};return this.dependencyWaiters.set(a.id,c),r.EventBus.on(s.WidgetLoadedEvent,l),this.loadWidget(t.afterid)}}return this._loadWidget(t)}}loadOtherDependenceWidgets(e){this.preConditionMap.has(e)&&this.preConditionMap.get(e)?.forEach(e=>{e.preload&&this._loadWidget(e)})}_loadWidget(e){if(this.disposed)return;if(this.widgetsLoadedSet.has(e.id))return void this.changeWidgetVisible(e.id,!0);const t=this.pendingLoads.get(e.id);if(t)return t;const n=e.component;if(!n)return;const i={};this.loadTokens.set(e.id,i);const o=()=>!this.disposed&&this.loadTokens.get(e.id)===i,a=Promise.resolve().then(()=>{if(o())return n()}).then(t=>{if(o()&&t&&t.default){const n=t.default,i=O("function"==typeof n?Object.assign((...e)=>n(...e),n,{widgetConfig:e}):{...n,widgetConfig:e});return e.instance=i,this.getContainerComponents(e.container).set(e.id,i),this.widgetsLoadedSet.add(e.id),P().then(()=>{o()&&(r.EventBus.emit(s.WidgetLoadedEvent,{layoutID:this._LayoutID,widgetID:e.id}),o()&&this.loadOtherDependenceWidgets(e.id))})}}).catch(t=>{o()&&(r.Logger().error("加载Widget失败:",e.id,t),r.EventBus.emit(s.WidgetLoadedErrorEvent,e))}).finally(()=>{this.pendingLoads.get(e.id)===a&&this.pendingLoads.delete(e.id)});return this.pendingLoads.set(e.id,a),a}hasDependentWidgets(e){let t=!1;if(this.preConditionMap.has(e)){const n=this.preConditionMap.get(e);if(n)for(const e of n)if(this.isWidgetLoaded(e.id)){t=!0;break}}return t}unloadWidget(e){if(!e)return;this.loadTokens.delete(e),this.pendingLoads.delete(e),this.dependencyWaiters.get(e)?.();const t=this.getWigetItem(e);if(t){if(this.preConditionMap.has(e)){const t=this.preConditionMap.get(e);if(t)for(const e of t)this.unloadWidget(e.id)}if(!this.isWidgetLoaded(e))return;this.getContainerComponents(t.container).delete(e),this.widgetsLoadedSet.delete(e),this._mapItemRefs&&(this.changeWidgetVisible(e,!1),this._mapItemRefs.delete(e)),r.EventBus.emit(s.WidgetUnLoadedEvent,{layoutID:this._LayoutID,widgetID:e})}}isWidgetLoaded(e){return this.widgetsLoadedSet.has(e)}splitTwoContainer(e=!1){const t=this.layoutState.centerMainContainer.value,n=this.layoutState.centerBackContainer.value;e?(t&&(t.style.left="0",t.style.width="100%"),n&&(n.style.width="100%")):(t&&(t.style.left="50%",t.style.width="50%"),n&&(n.style.width="50%"))}getLayoutContainer(e){switch(e){case xn.top:return this.layoutState.topContainer.value;case xn.bottom:return this.layoutState.bottomContainer.value;case xn.left:return this.layoutState.leftContainer.value;case xn.right:return this.layoutState.rightContainer.value;case xn.centerBack:return this.layoutState.centerBackContainer.value;case xn.centerMain:return this.layoutState.centerMainContainer.value;case xn.centerFront:return this.layoutState.centerFrontContainer.value}}changeContainerVisible(e,t=!1){const n=this.getLayoutContainer(e);n&&(n.style.visibility=t?"visible":"hidden")}changeWidgetVisible(e,t=!1){const n=this.getWidgetComponent(e);n&&n.changeVisible&&n.changeVisible(t)}isWidgetVisible(e){const t=this.getWidgetComponent(e);return!!t&&(!t.isShow||t.isShow.value)}getWidgetComponent(e){if(this.widgetsLoadedSet.has(e)&&this._mapItemRefs)return this._mapItemRefs.get(e)}getWigetItem(e){return this.widgetConfigDiction.get(e)}getIWigetConfig(e){return this.getWigetItem(e)}getGroupWigetItems(e){const t=[];for(const[n,i]of this.widgetConfigDiction)i.group===e&&t.push(i);return t}getContainerComponents(e){if(this.layoutMap.has(e))return this.layoutMap.get(e);{const t=I(/* @__PURE__ */new Map);return this.layoutMap.set(e,t),t}}getWidgetLoadedIDList(){const e=[];return this.widgetsLoadedSet.forEach(t=>{e.push(t)}),e}unloadAllWidgets(e){const t=[];
2
+ /* @__PURE__ */new Set([...this.widgetsLoadedSet,...this.pendingLoads.keys(),...this.dependencyWaiters.keys()]).forEach(n=>{e&&e.length>0?e.findIndex(e=>e===n)<0&&t.push(n):t.push(n)}),t.forEach(e=>this.unloadWidget(e))}unloadWidgets(e){e&&e.length>0&&e.forEach(e=>{this.unloadWidget(e)})}static getLayoutManager(e,t){if(t){const n=t.find(t=>t.id===e);if(n&&n.layoutID)return r.LayoutMap.get(n.layoutID)}}dispose(){this.disposed=!0,this.unloadAllWidgets(),this.loadTokens.clear(),this.widgetConfigDiction.clear(),this.widgetsLoadedSet.clear(),this._LayoutID?r.LayoutMap.delete(this._LayoutID):(r.LayoutMap.delete(""),r.LayoutManager=void 0)}},zn=["id"],kn=/*#__PURE__*/Mn(/*@__PURE__*/E({__name:"layout",props:{widgetConfig:{type:Array,required:!1,default:void 0},layoutID:{type:String,default:"layoutDefault"},layoutStyle:{type:Object},noLeft:{type:Boolean,default:!1},noRight:{type:Boolean,default:!1},noBottom:{type:Boolean,default:!1},noTop:{type:Boolean,default:!1},noFront:{type:Boolean,default:!1},noBack:{type:Boolean,default:!1},noMain:{type:Boolean,default:!1}},emits:["containerLoaded"],setup(e,{emit:t}){const n=e,i=t,o=n.layoutID,a=$("topContainer"),u=$("centerBackContainer"),l=$("centerMainContainer"),d=$("centerFrontContainer"),p=$("bottomContainer"),f=$("leftContainer"),h=$("rightContainer"),w=m(()=>!n.noTop),E=m(()=>!n.noMain),C=m(()=>!n.noBack),M=m(()=>!n.noFront),O=m(()=>!n.noLeft),P=m(()=>!n.noRight),z=m(()=>!n.noBottom),D=/* @__PURE__ */new Map,W=(e,t)=>{e&&D.set(t,e)},R=new Pn({topContainer:a,centerBackContainer:u,centerMainContainer:l,centerFrontContainer:d,bottomContainer:p,leftContainer:f,rightContainer:h},o,n.widgetConfig,D);function I(e){return R.getContainerComponents(e)}const B=void 0,V=m(()=>w?I(xn.top):B),H=m(()=>E?I(xn.centerMain):B),U=m(()=>C?I(xn.centerBack):B),F=m(()=>M?I(xn.centerFront):B),q=m(()=>O?I(xn.left):B),Y=m(()=>P?I(xn.right):B),X=m(()=>z?I(xn.bottom):B);function Z(e){const t={...e.widgetConfig};return delete t.component,delete t.instance,delete t.preload,delete t.container,t.afterid&&delete t.afterid,t}const G=m(()=>n.layoutStyle);return R&&(o?r.LayoutMap.set(o,R):(r.LayoutManager=R,r.LayoutMap.set("",R)),i("containerLoaded",{layoutID:o,layoutManager:R}),R.preloadWidgets()),L(()=>{R&&r.EventBus.emit(s.LayoutContainerLoaded,{layoutID:o,layoutManager:R})}),_(()=>{R&&R.dispose()}),(e,t)=>(T(),y("div",{id:n.layoutID,class:"layoutContainer",style:k(G.value)},[w.value?(T(),y("div",{key:0,ref_key:"topContainer",ref:a,class:"topContainer"},[N(e.$slots,"top",{},void 0,!0),(T(!0),y(c,null,A(V.value,([e,t])=>(T(),v(j(t),S({ref_for:!0,ref:t=>W(t,e),key:e},{ref_for:!0},Z(t)),null,16))),128))],512)):g("",!0),b("div",null,[E.value?(T(),y("div",{key:0,ref_key:"centerMainContainer",ref:l,class:"centerdiv mainContainer"},[N(e.$slots,"main",{},()=>[x(Sn)],!0),(T(!0),y(c,null,A(H.value,([e,t])=>(T(),v(j(t),S({ref_for:!0,ref:t=>W(t,e),key:e},{ref_for:!0},Z(t)),null,16))),128))],512)):g("",!0),C.value?(T(),y("div",{key:1,ref_key:"centerBackContainer",ref:u,class:"centerdiv backContainer"},[N(e.$slots,"back",{},void 0,!0),(T(!0),y(c,null,A(U.value,([e,t])=>(T(),v(j(t),S({ref_for:!0,ref:t=>W(t,e),key:e},{ref_for:!0},Z(t)),null,16))),128))],512)):g("",!0),M.value?(T(),y("div",{key:2,ref_key:"centerFrontContainer",ref:d,class:"centerdiv centerFrontContainer"},[N(e.$slots,"front",{},void 0,!0),(T(!0),y(c,null,A(F.value,([e,t])=>(T(),v(j(t),S({ref_for:!0,ref:t=>W(t,e),key:e},{ref_for:!0},Z(t)),null,16))),128))],512)):g("",!0),O.value?(T(),y("div",{key:3,ref_key:"leftContainer",ref:f,class:"leftContainer"},[N(e.$slots,"left",{},void 0,!0),(T(!0),y(c,null,A(q.value,([e,t])=>(T(),v(j(t),S({ref_for:!0,ref:t=>W(t,e),key:e},{ref_for:!0},Z(t)),null,16))),128))],512)):g("",!0),P.value?(T(),y("div",{key:4,ref_key:"rightContainer",ref:h,class:"rightContainer"},[N(e.$slots,"right",{},void 0,!0),(T(!0),y(c,null,A(Y.value,([e,t])=>(T(),v(j(t),S({ref_for:!0,ref:t=>W(t,e),key:e},{ref_for:!0},Z(t)),null,16))),128))],512)):g("",!0)]),z.value?(T(),y("div",{key:1,ref_key:"bottomContainer",ref:p,class:"bottomContainer"},[N(e.$slots,"bottom",{},void 0,!0),(T(!0),y(c,null,A(X.value,([e,t])=>(T(),v(j(t),S({ref_for:!0,ref:t=>W(t,e),key:e},{ref_for:!0},Z(t)),null,16))),128))],512)):g("",!0),N(e.$slots,"default",{},void 0,!0)],12,zn))}}),[["__scopeId","data-v-329ca633"]]),Dn=/*@__PURE__*/E({name:"RouterTransition",__name:"RouterTransitionAnimate",props:{enterActive:{default:"animated fadeIn"},leaveActive:{default:"animated fadeOut"}},setup:e=>(t,n)=>{const i=R("router-view");return T(),v(On,null,{default:q(()=>[x(i,null,{default:q(({Component:t,route:n})=>[x(h,{appear:"","enter-active-class":e.enterActive,"leave-active-class":e.leaveActive},{default:q(()=>[(T(),v(d,null,[n.meta.keepAlive?(T(),v(j(t),{key:n.name})):g("",!0)],1024)),n.meta.keepAlive?g("",!0):(T(),v(j(t),{key:n.name}))]),_:2},1032,["enter-active-class","leave-active-class"])]),_:1})]),_:1})}}),Ln=/* @__PURE__ */new Map,_n=W(/* @__PURE__ */new Map),Tn=class{static ZIndexMax=1;static addWindowPanel(e){Ln.set(e.id,e)}static removeWindowPanel(e){Ln.has(e)&&(Ln.delete(e),_n.value.delete(e))}static minimizeWindowPanel(e){Ln.has(e)&&_n.value.set(e,-1)}static openWindowPanel(e){if(Ln.has(e)){_n.value.set(e,1);const t=document.getElementById(e);t&&t.open&&t.open()}}},Wn={width:1024,height:1024,body:'<path fill="currentColor" fill-rule="evenodd" d="M799.855 166.312c.023.007.043.018.084.059l57.69 57.69c.041.041.052.06.059.084a.1.1 0 0 1 0 .069c-.007.023-.018.042-.059.083L569.926 512l287.703 287.703c.041.04.052.06.059.083a.12.12 0 0 1 0 .07c-.007.022-.018.042-.059.083l-57.69 57.69c-.041.041-.06.052-.084.059a.1.1 0 0 1-.069 0c-.023-.007-.042-.018-.083-.059L512 569.926L224.297 857.629c-.04.041-.06.052-.083.059a.12.12 0 0 1-.07 0c-.022-.007-.042-.018-.083-.059l-57.69-57.69c-.041-.041-.052-.06-.059-.084a.1.1 0 0 1 0-.069c.007-.023.018-.042.059-.083L454.073 512L166.371 224.297c-.041-.04-.052-.06-.059-.083a.12.12 0 0 1 0-.07c.007-.022.018-.042.059-.083l57.69-57.69c.041-.041.06-.052.084-.059a.1.1 0 0 1 .069 0c.023.007.042.018.083.059L512 454.073l287.703-287.702c.04-.041.06-.052.083-.059a.12.12 0 0 1 .07 0Z"/>'},An={width:1024,height:1024,body:'<path fill="currentColor" d="M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8"/>'},Nn={width:1024,height:1024,body:'<path fill="currentColor" d="M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32m-40 728H184V184h656z"/>'},Rn={width:1024,height:1024,body:'<path fill="currentColor" d="M326 664H104c-8.8 0-16 7.2-16 16v48c0 8.8 7.2 16 16 16h174v176c0 8.8 7.2 16 16 16h48c8.8 0 16-7.2 16-16V696c0-17.7-14.3-32-32-32m16-576h-48c-8.8 0-16 7.2-16 16v176H104c-8.8 0-16 7.2-16 16v48c0 8.8 7.2 16 16 16h222c17.7 0 32-14.3 32-32V104c0-8.8-7.2-16-16-16m578 576H698c-17.7 0-32 14.3-32 32v224c0 8.8 7.2 16 16 16h48c8.8 0 16-7.2 16-16V744h174c8.8 0 16-7.2 16-16v-48c0-8.8-7.2-16-16-16m0-384H746V104c0-8.8-7.2-16-16-16h-48c-8.8 0-16 7.2-16 16v224c0 17.7 14.3 32 32 32h222c8.8 0 16-7.2 16-16v-48c0-8.8-7.2-16-16-16"/>'},jn=["id"],In=["src"],Bn={key:1,class:"paneltitle"},Vn={class:"dragPanelBar"},Hn={class:"dragPanelContent"},$n={class:"drag-pointer-group"},Un=/*#__PURE__*/Mn(/*@__PURE__*/E({__name:"XWindow",props:{top:{type:[String,Number],default:0},left:{type:[String,Number],default:0},nWidth:{type:[String,Number],default:"300px"},nHeight:{type:[String,Number],default:"400px"},icon:{type:String,default:""},title:{type:String,default:""},titleHeight:{type:[String,Number],default:"40px"},hasMin:{type:Boolean,default:!1},hasMax:{type:Boolean,default:!1},hasClose:{type:Boolean,default:!0},isDark:{type:Boolean,default:!1},pid:{type:String,default:""},tag:{type:[String,Array,Object,Number],default:""},right:{type:[String,Number],default:"unset"},bottom:{type:[String,Number],default:"unset"}},emits:["close","open","loaded","minimize"],setup(e,{expose:t,emit:o}){const a=C();const s=l(),u=W(s),c=e,d=o,p=W(),h=W(),w=m(()=>c.isDark),x=W({x:0,y:0}),E=250,M=100,O=W({width:0,height:0}),S=e=>{p.value&&(p.value.style.left=`${e.x}px`,p.value.style.top=`${e.y}px`)};F(()=>x.value,e=>{S(e)});const P=e=>{p.value&&(p.value.style.width=`${e.width}px`,p.value.style.height=`${e.height}px`)};F(()=>O.value,e=>{P(e)});const D={eventListenerController:null,startingEdges:null,newEdges:null,clickStart:null,mount:()=>{Object.entries(D.refs).forEach(([e,t])=>{t.value&&t.value.addEventListener("mousedown",t=>{D.mouseDown(t,e)})})},mouseDown:(e,t)=>{0==e.button&&(e.preventDefault(),D.startingEdges={left:x.value.x,top:x.value.y,right:x.value.x+O.value.width,bottom:x.value.y+O.value.height},D.newEdges={...D.startingEdges},D.clickStart={x:e.clientX,y:e.clientY},D.eventListenerController=new AbortController,document.addEventListener("mousemove",e=>{D.mouseMove(e,t)},{signal:D.eventListenerController.signal}),document.addEventListener("mouseup",e=>{D.mouseUp(e,t)},{signal:D.eventListenerController.signal}))},mouseMove:(e,t)=>{if(null!=D.startingEdges&&null!=D.newEdges&&null!=D.clickStart&&D.refs[t].value){if(e.preventDefault(),t.toLowerCase().includes("north")){D.newEdges.top=Math.max(D.startingEdges.top+e.clientY-D.clickStart.y,0);const t=D.newEdges.bottom-D.newEdges.top-M;t<0&&(D.newEdges.top+=t)}else t.toLowerCase().includes("south")&&(D.newEdges.bottom=Math.min(D.startingEdges.bottom+e.clientY-D.clickStart.y,document.body.clientHeight));if(t.toLowerCase().includes("west")){D.newEdges.left=Math.max(D.startingEdges.left+e.clientX-D.clickStart.x,0);const t=D.newEdges.right-D.newEdges.left-E;t<0&&(D.newEdges.left+=t)}else t.toLowerCase().includes("east")&&(D.newEdges.right=Math.min(D.startingEdges.right+e.clientX-D.clickStart.x,document.body.clientWidth));D.update()}},update:()=>{null!=D.newEdges&&null!=D.startingEdges&&(x.value={x:Math.max(D.newEdges.left,0),y:Math.max(D.newEdges.top,0)},O.value={width:Math.min(Math.max(D.newEdges.right-D.newEdges.left,E),document.body.clientWidth),height:Math.min(Math.max(D.newEdges.bottom-D.newEdges.top,M),document.body.clientHeight)})},mouseUp:(e,t)=>{0==e.button&&null!=D.startingEdges&&(e.preventDefault(),D.startingEdges=null,D.newEdges=null,D.clickStart=null,D.eventListenerController&&(D.eventListenerController.abort(),D.eventListenerController=null))},refs:{northWest:W(null),north:W(null),northEast:W(null),west:W(null),east:W(null),southWest:W(null),south:W(null),southEast:W(null)}},A={startingMouse:null,startingPosition:null,mouseDown:e=>{0==e.button&&(e.preventDefault(),A.startingMouse={x:e.clientX,y:e.clientY},A.startingPosition=x.value,document.addEventListener("mousemove",A.mouseMove),document.addEventListener("mouseup",A.mouseUp))},mouseMove:e=>{A.startingMouse&&A.startingPosition&&(e.preventDefault(),x.value={x:Math.min(Math.max(A.startingPosition.x+e.clientX-A.startingMouse.x,0),document.body.clientWidth-O.value.width),y:Math.max(A.startingPosition.y+e.clientY-A.startingMouse.y,0)})},mouseUp:e=>{0==e.button&&A.startingMouse&&A.startingPosition&&(e.preventDefault(),A.startingMouse=null,A.startingPosition=null,document.removeEventListener("mousemove",A.mouseMove),document.removeEventListener("mouseup",A.mouseUp))}};function R(e){return{id:s,icon:c.icon,title:c.title,pid:c.pid,data:e??c.tag}}const j=W(1),I=m(()=>!(-1===_n.value.get(s))),H=W(!1),$=W(!0),G=m(()=>"z-index:"+j.value);function J(){j.value<=Tn.ZIndexMax&&(Tn.ZIndexMax+=1,j.value=Tn.ZIndexMax)}function K(){d("minimize",R()),Tn.minimizeWindowPanel(s)}function Q(){H.value=!H.value}function ee(){d("close",R(!1)),$.value=!1,function(){if(a){const e=a.attrs;if(!e)return;const t=e.layoutID,n=e.id;if(t&&n){const e=r.LayoutMap?.get(t);e&&e.unloadWidget(n)}}}()}const te=m(()=>H.value?Rn:Nn),ne={id:s,isShow:I,close:ee,open:function(){const e=R(!0);d("open",e),$.value=!0},showHidePanel:K,updatePosition:S};function ie(e,t=document.body.clientWidth){if(i(e))return e;{const n=Number(e);if(n==n)return n;if(e.endsWith("px")){const t=e.substring(0,e.length-2);return Number(t)}if(e.endsWith("%")){const n=e.substring(0,e.length-1);return Number(n)/100*t}return 300}}function oe(e,t){if(!p.value)return void console.warn("dragPanelRef.value当前窗体html元素为空!");let n=e??document.body.clientWidth,i=t??document.body.clientHeight,o=ie(c.left,n),r=ie(c.top,i);"unset"==c.bottom&&"unset"==c.right||("unset"!=c.right&&(o=n-ie(c.right,n)-O.value.width),"unset"!=c.bottom&&(r=i-ie(c.bottom,i)-O.value.height)),x.value.x=o,x.value.y=r,S(x.value)}function re(){if(ae&&("unset"!=c.bottom||"unset"!=c.right)){const e=ae.getBoundingClientRect();oe(e.width,e.height)}}let ae;return t(ne),L(()=>{!function(){let e=96;if(c.hasMin||(e-=32),c.hasMax||(e-=32),c.hasClose||(e-=32),n.setCssVar("--right-bar-width",e+"px",h.value),!h.value)return;const t=i(c.titleHeight)?c.titleHeight+"px":c.titleHeight;h.value.style.height=t,h.value.style.lineHeight=t}(),function(){const e=R(ne);Tn.addWindowPanel(e),d("loaded",e)}();const{parentElement:e,clientWidth:t,clientHeight:o}=function(e){if(!(e instanceof HTMLElement))throw new Error("参数必须是有效的 DOM 元素");let t=e.parentElement;for(;t&&"static"===globalThis.getComputedStyle(t).position;)t=t.parentElement,t||(t=document.documentElement);return{clientWidth:t?.clientWidth,clientHeight:t?.clientHeight,parentElement:t}}(p.value);ae=e,O.value={width:ie(c.nWidth,t),height:ie(c.nHeight,o)},P(O.value),oe(t,o),D.mount(),n.windowResizeHandler(re)}),_(()=>{n.offWindowResizeHandler(re),Tn.removeWindowPanel(s)}),(t,n)=>(T(),v(f,{appear:"","enter-active-class":"animated zoomIn","leave-active-class":"animated zoomOut"},{default:q(()=>[$.value?Y((T(),y("div",{key:0,ref_key:"dragPanelRef",ref:p,id:u.value,class:z(["dragWindowPanel",{maxPanel:H.value,dragWindowPanel_dark:w.value}]),style:k(G.value)},[b("div",{class:"dragPanelTitle",ref_key:"dragPanelTitleRef",ref:h,onMousedown:n[0]||(n[0]=(...e)=>A.mouseDown&&A.mouseDown(...e)),onClick:X(J,["stop"])},[N(t.$slots,"title",{},()=>[c.icon?(T(),y("img",{key:0,src:c.icon,width:"24",height:"24"},null,8,In)):g("",!0),c.title?(T(),y("span",Bn,B(c.title),1)):g("",!0)],!0),b("div",Vn,[e.hasMin?(T(),v(V(Z),{key:0,icon:V(An),onClick:X(K,["stop"])},null,8,["icon"])):g("",!0),e.hasMax?(T(),v(V(Z),{key:1,icon:te.value,onClick:X(Q,["stop"])},null,8,["icon"])):g("",!0),e.hasClose?(T(),v(V(Z),{key:2,icon:V(Wn),onClick:X(ee,["stop"])},null,8,["icon"])):g("",!0)])],544),b("div",Hn,[N(t.$slots,"default",{},void 0,!0)]),b("div",$n,[b("div",{class:"cursor-nw-resize",ref:D.refs.northWest},null,512),b("div",{class:"cursor-n-resize",ref:D.refs.north},null,512),b("div",{class:"cursor-ne-resize",ref:D.refs.northEast},null,512),b("div",{class:"cursor-w-resize",ref:D.refs.west},null,512),n[1]||(n[1]=b("span",{style:{"pointer-events":"all",visibility:"hidden"}},null,-1)),b("div",{class:"cursor-e-resize",ref:D.refs.east},null,512),b("div",{class:"cursor-sw-resize",ref:D.refs.southWest},null,512),b("div",{class:"cursor-s-resize",ref:D.refs.south},null,512),b("div",{class:"cursor-se-resize",ref:D.refs.southEast},null,512)])],14,jn)),[[U,I.value]]):g("",!0)]),_:3}))}}),[["__scopeId","data-v-51a32350"]]),Fn={class:"adivider"},qn={class:"contentText"},Yn=/*#__PURE__*/Mn(/*@__PURE__*/E({__name:"ADivider",props:{align:{type:String,default:"left"},color:{type:String,default:"#888"}},setup(n){H(e=>({v1dc34ba7:o.value}));const i=n,o=m(()=>t(i.color)||e(i.color)?i.color:"#888"),r=m(()=>"left"!=i.align?"flex:1;":"width:40px;"),a=m(()=>"right"!=i.align?"flex:1;":"width:40px;");return(e,t)=>(T(),y("div",Fn,[b("div",{class:"line",style:k(r.value)},null,4),b("div",qn,[N(e.$slots,"default",{},void 0,!0)]),b("div",{class:"line",style:k(a.value)},null,4)]))}}),[["__scopeId","data-v-133ad44f"]]),Xn={name:"splitpanes",props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},provide(){return{requestUpdate:this.requestUpdate,onPaneAdd:this.onPaneAdd,onPaneRemove:this.onPaneRemove,onPaneClick:this.onPaneClick}},data:()=>({container:null,ready:!1,panes:[],touch:{mouseDown:!1,dragging:!1,activeSplitter:null},splitterTaps:{splitter:null,timeoutId:null}}),computed:{panesCount(){return this.panes.length},indexedPanes(){return this.panes.reduce((e,t)=>(e[t.id]=t)&&e,{})}},methods:{updatePaneComponents(){this.panes.forEach(e=>{e.update&&e.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[e.id].size}%`})})},bindEvents(){document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),document.addEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.addEventListener("touchmove",this.onMouseMove,{passive:!1}),document.addEventListener("touchend",this.onMouseUp))},unbindEvents(){document.removeEventListener("mousemove",this.onMouseMove,{passive:!1}),document.removeEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.removeEventListener("touchmove",this.onMouseMove,{passive:!1}),document.removeEventListener("touchend",this.onMouseUp))},onMouseDown(e,t){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=t},onMouseMove(e){this.touch.mouseDown&&(e.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(e)),this.$emit("resize",this.panes.map(e=>({min:e.min,max:e.max,size:e.size}))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map(e=>({min:e.min,max:e.max,size:e.size}))),this.touch.mouseDown=!1,setTimeout(()=>{this.touch.dragging=!1,this.unbindEvents()},100)},onSplitterClick(e,t){"ontouchstart"in window&&(e.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===t?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(e,t),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=t,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[t])},onSplitterDblClick(e,t){let n=0;this.panes=this.panes.map((e,i)=>(e.size=i===t?e.max:e.min,i!==t&&(n+=e.min),e)),this.panes[t].size-=n,this.$emit("pane-maximize",this.panes[t])},onPaneClick(e,t){this.$emit("pane-click",this.indexedPanes[t])},getCurrentMouseDrag(e){const t=this.container.getBoundingClientRect(),{clientX:n,clientY:i}="ontouchstart"in window&&e.touches?e.touches[0]:e;return{x:n-t.left,y:i-t.top}},getCurrentDragPercentage(e){e=e[this.horizontal?"y":"x"];const t=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(e=t-e),100*e/t},calculatePanesSize(e){const t=this.touch.activeSplitter;let n={prevPanesSize:this.sumPrevPanesSize(t),nextPanesSize:this.sumNextPanesSize(t),prevReachedMinPanes:0,nextReachedMinPanes:0};const i=0+(this.pushOtherPanes?0:n.prevPanesSize),o=100-(this.pushOtherPanes?0:n.nextPanesSize),r=Math.max(Math.min(this.getCurrentDragPercentage(e),o),i);let a=[t,t+1],s=this.panes[a[0]]||null,u=this.panes[a[1]]||null;const l=s.max<100&&r>=s.max+n.prevPanesSize,c=u.max<100&&r<=100-(u.max+this.sumNextPanesSize(t+1));if(l||c)l?(s.size=s.max,u.size=Math.max(100-s.max-n.prevPanesSize-n.nextPanesSize,0)):(s.size=Math.max(100-u.max-n.prevPanesSize-this.sumNextPanesSize(t+1),0),u.size=u.max);else{if(this.pushOtherPanes){const e=this.doPushOtherPanes(n,r);if(!e)return;({sums:n,panesToResize:a}=e),s=this.panes[a[0]]||null,u=this.panes[a[1]]||null}null!==s&&(s.size=Math.min(Math.max(r-n.prevPanesSize-n.prevReachedMinPanes,s.min),s.max)),null!==u&&(u.size=Math.min(Math.max(100-r-n.nextPanesSize-n.nextReachedMinPanes,u.min),u.max))}},doPushOtherPanes(e,t){const n=this.touch.activeSplitter,i=[n,n+1];return t<e.prevPanesSize+this.panes[i[0]].min&&(i[0]=this.findPrevExpandedPane(n).index,e.prevReachedMinPanes=0,i[0]<n&&this.panes.forEach((t,o)=>{o>i[0]&&o<=n&&(t.size=t.min,e.prevReachedMinPanes+=t.min)}),e.prevPanesSize=this.sumPrevPanesSize(i[0]),void 0===i[0])?(e.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((t,i)=>{i>0&&i<=n&&(t.size=t.min,e.prevReachedMinPanes+=t.min)}),this.panes[i[1]].size=100-e.prevReachedMinPanes-this.panes[0].min-e.prevPanesSize-e.nextPanesSize,null):t>100-e.nextPanesSize-this.panes[i[1]].min&&(i[1]=this.findNextExpandedPane(n).index,e.nextReachedMinPanes=0,i[1]>n+1&&this.panes.forEach((t,o)=>{o>n&&o<i[1]&&(t.size=t.min,e.nextReachedMinPanes+=t.min)}),e.nextPanesSize=this.sumNextPanesSize(i[1]-1),void 0===i[1])?(e.nextReachedMinPanes=0,this.panes[this.panesCount-1].size=this.panes[this.panesCount-1].min,this.panes.forEach((t,i)=>{i<this.panesCount-1&&i>=n+1&&(t.size=t.min,e.nextReachedMinPanes+=t.min)}),this.panes[i[0]].size=100-e.prevPanesSize-e.nextReachedMinPanes-this.panes[this.panesCount-1].min-e.nextPanesSize,null):{sums:e,panesToResize:i}},sumPrevPanesSize(e){return this.panes.reduce((t,n,i)=>t+(i<e?n.size:0),0)},sumNextPanesSize(e){return this.panes.reduce((t,n,i)=>t+(i>e+1?n.size:0),0)},findPrevExpandedPane(e){return[...this.panes].reverse().find(t=>t.index<e&&t.size>t.min)||{}},findNextExpandedPane(e){return this.panes.find(t=>t.index>e+1&&t.size>t.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(e=>{const t=e.classList.contains("splitpanes__pane"),n=e.classList.contains("splitpanes__splitter");if(!t&&!n)return e.parentNode.removeChild(e),void console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed.")})},addSplitter(e,t,n=!1){const i=e-1,o=document.createElement("div");o.classList.add("splitpanes__splitter"),n||(o.onmousedown=e=>this.onMouseDown(e,i),"undefined"!=typeof window&&"ontouchstart"in window&&(o.ontouchstart=e=>this.onMouseDown(e,i)),o.onclick=e=>this.onSplitterClick(e,i+1)),this.dblClickSplitter&&(o.ondblclick=e=>this.onSplitterDblClick(e,i+1)),t.parentNode.insertBefore(o,t)},removeSplitter(e){e.onmousedown=void 0,e.onclick=void 0,e.ondblclick=void 0,e.parentNode.removeChild(e)},redoSplitters(){const e=Array.from(this.container.children);e.forEach(e=>{e.className.includes("splitpanes__splitter")&&this.removeSplitter(e)});let t=0;e.forEach(e=>{e.className.includes("splitpanes__pane")&&(!t&&this.firstSplitter?this.addSplitter(t,e,!0):t&&this.addSplitter(t,e),t++)})},requestUpdate({target:e,...t}){const n=this.indexedPanes[e._.uid];Object.entries(t).forEach(([e,t])=>n[e]=t)},onPaneAdd(e){let t=-1;Array.from(e.$el.parentNode.children).some(n=>(n.className.includes("splitpanes__pane")&&t++,n===e.$el));const n=parseFloat(e.minSize),i=parseFloat(e.maxSize);this.panes.splice(t,0,{id:e._.uid,index:t,min:isNaN(n)?0:n,max:isNaN(i)?100:i,size:null===e.size?null:parseFloat(e.size),givenSize:e.size,update:e.update}),this.panes.forEach((e,t)=>e.index=t),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[t]}),this.$emit("pane-add",{index:t,panes:this.panes.map(e=>({min:e.min,max:e.max,size:e.size}))})})},onPaneRemove(e){const t=this.panes.findIndex(t=>t.id===e._.uid),n=this.panes.splice(t,1)[0];this.panes.forEach((e,t)=>e.index=t),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:{...n,index:t}}),this.$emit("pane-remove",{removed:n,panes:this.panes.map(e=>({min:e.min,max:e.max,size:e.size}))})})},resetPaneSizes(e={}){e.addedPane||e.removedPane?this.panes.some(e=>null!==e.givenSize||e.min||e.max<100)?this.equalizeAfterAddOrRemove(e):this.equalize():this.initialPanesSizing(),this.ready&&this.$emit("resized",this.panes.map(e=>({min:e.min,max:e.max,size:e.size})))},equalize(){const e=100/this.panesCount;let t=0;const n=[],i=[];this.panes.forEach(o=>{o.size=Math.max(Math.min(e,o.max),o.min),t-=o.size,o.size>=o.max&&n.push(o.id),o.size<=o.min&&i.push(o.id)}),t>.1&&this.readjustSizes(t,n,i)},initialPanesSizing(){let e=100;const t=[],n=[];let i=0;this.panes.forEach(o=>{e-=o.size,null!==o.size&&i++,o.size>=o.max&&t.push(o.id),o.size<=o.min&&n.push(o.id)});let o=100;e>.1&&(this.panes.forEach(t=>{null===t.size&&(t.size=Math.max(Math.min(e/(this.panesCount-i),t.max),t.min)),o-=t.size}),o>.1&&this.readjustSizes(e,t,n))},equalizeAfterAddOrRemove({addedPane:e}={}){let t=100/this.panesCount,n=0;const i=[],o=[];e&&null!==e.givenSize&&(t=(100-e.givenSize)/(this.panesCount-1)),this.panes.forEach(e=>{n-=e.size,e.size>=e.max&&i.push(e.id),e.size<=e.min&&o.push(e.id)}),Math.abs(n)<.1||(this.panes.forEach(r=>{e&&null!==e.givenSize&&e.id===r.id||(r.size=Math.max(Math.min(t,r.max),r.min)),n-=r.size,r.size>=r.max&&i.push(r.id),r.size<=r.min&&o.push(r.id)}),n>.1&&this.readjustSizes(n,i,o))},readjustSizes(e,t,n){let i;i=e>0?e/(this.panesCount-t.length):e/(this.panesCount-n.length),this.panes.forEach(o=>{if(e>0&&!t.includes(o.id)){const t=Math.max(Math.min(o.size+i,o.max),o.min),n=t-o.size;e-=n,o.size=t}else if(!n.includes(o.id)){const t=Math.max(Math.min(o.size+i,o.max),o.min),n=t-o.size;e-=n,o.size=t}o.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[o.id].size}%`})}),Math.abs(e)>.1&&this.$nextTick(()=>{this.ready&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})}},watch:{panes:{deep:!0,immediate:!1,handler(){this.updatePaneComponents()}},horizontal(){this.updatePaneComponents()},firstSplitter(){this.redoSplitters()},dblClickSplitter(e){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((t,n)=>{t.ondblclick=e?e=>this.onSplitterDblClick(e,n):void 0})}},beforeUnmount(){this.ready=!1},mounted(){this.container=this.$refs.container,this.checkSplitpanesNodes(),this.redoSplitters(),this.resetPaneSizes(),this.updatePaneComponents(),this.$emit("ready"),this.ready=!0},render(){return M("div",{ref:"container",class:["splitpanes","splitpanes--"+(this.horizontal?"horizontal":"vertical"),{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}},Zn={name:"pane",inject:["requestUpdate","onPaneAdd","onPaneRemove","onPaneClick"],props:{size:{type:[Number,String],default:10},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},data:()=>({style:{}}),mounted(){this.onPaneAdd(this)},beforeUnmount(){this.onPaneRemove(this)},methods:{update(e){this.style=e}},computed:{sizeNumber(){return this.size||0===this.size?parseFloat(this.size):null},minSizeNumber(){return parseFloat(this.minSize)},maxSizeNumber(){return parseFloat(this.maxSize)}},watch:{sizeNumber(e){this.requestUpdate({target:this,size:e})},minSizeNumber(e){this.requestUpdate({target:this,min:e})},maxSizeNumber(e){this.requestUpdate({target:this,max:e})}}};var Gn=/*#__PURE__*/Mn(Zn,[["render",function(e,t,n,i,o,r){return T(),y("div",{class:"splitpanes__pane",onClick:t[0]||(t[0]=t=>r.onPaneClick(t,e._.uid)),style:k(e.style)},[N(e.$slots,"default")],4)}]]),Jn=/*@__PURE__*/E({name:"Popover",__name:"index",props:{dir:{type:String,default:"bottom"}},emits:["show","hide"],setup(e,{emit:t}){const n=W(!1),i=t;function o(){n.value=!1}return F(n,()=>{n.value?i("show"):i("hide")}),L(()=>{document.addEventListener("click",o)}),_(()=>{document.removeEventListener("click",o)}),(t,i)=>(T(),y("div",{class:"popover-cantainer",onClick:i[1]||(i[1]=X(()=>{},["stop"]))},[x(f,{name:"popover-content-transition-"+e.dir},{default:q(()=>[n.value?N(t.$slots,"default",{},void 0,void 0,0):g("",!0)]),_:3},8,["name"]),b("div",{onClick:i[0]||(i[0]=e=>n.value=!n.value)},[t.$slots.reference?N(t.$slots,"reference",{},void 0,void 0,0):g("",!0)])]))}}),Kn={class:"xScreen-container"},Qn=/*@__PURE__*/E({__name:"index",setup(e){const t=W(null);let i=1920,o=1080;function r(){if(t.value){t.value.style.transform=`scale(${function(e=1920,t=1080){const n=window.innerWidth/e,i=window.innerHeight/t;return n<i?n:i}(i,o)}) translate(-50%, -50%)`}}return L(()=>{const e=window.innerWidth/window.innerHeight;if(e>=2.5||e<=.4||(i=i>window.innerWidth?window.innerWidth:i,o=o>window.innerHeight?window.innerHeight:o),t.value){const e=t.value;e.style.width=i+"px",e.style.height=o+"px",r()}n.windowResizeHandler(r)}),(e,n)=>(T(),y("div",Kn,[b("div",{ref_key:"scaleContainerRef",ref:t,class:"xScreen"},[N(e.$slots,"default")],512)]))}}),ei={class:"scrollSnapContainer"},ti=/*@__PURE__*/E({__name:"index",props:{height:{type:Number,default:0}},setup(e){H(e=>({v3bebca7d:n.value}));const t=e,n=m(()=>i(t.height)&&t.height>0?`${t.height}px`:"unset");return(e,t)=>(T(),y("div",ei,[N(e.$slots,"default")]))}}),ni=/*@__PURE__*/E({__name:"FVMenu",props:{placement:{type:String,default:"bottom"},shown:{type:Boolean,default:!1}},setup(e){const t=e,n=$("tippyRef"),i=$("contentRef");let o=null;function r(){o&&o.hide()}return L(()=>{if(n.value&&i.value){const e=n.value;e&&(o=ln(e,{content:i.value,placement:t.placement,trigger:"mouseenter",hideOnClick:!0,interactive:!0,appendTo:document.body,showOnCreate:t.shown}))}}),_(()=>{o&&o.destroy()}),(e,t)=>(T(),y("div",null,[b("div",{ref_key:"tippyRef",ref:n},[N(e.$slots,"default")],512),b("div",{ref_key:"contentRef",ref:i,onClick:r},[N(e.$slots,"popper")],512)]))}});export{cn as C,ln as E,bn as S,En as T,xn as _,Gn as a,pn as b,Un as c,Tn as d,Dn as f,On as g,Sn as h,Jn as i,_n as l,Pn as m,ti as n,Xn as o,kn as p,Qn as r,Yn as s,ni as t,Ln as u,st as v,wn as w,hn as x,mn as y};
@@ -0,0 +1,4 @@
1
+ export * from '../controls';
2
+ export * from '../controls/layoutcontainer';
3
+ export * from '../controls/routertransition';
4
+ export * from '../controls/xwindow';
@@ -0,0 +1 @@
1
+ import{a,c as s,d as n,f as o,g as r,h as e,i,l as t,m as p,n as l,o as u,p as S,r as c,s as m,t as d,u as C}from"../controls-CUpF2Uye.js";export{m as ADivider,d as FVMenu,S as LayoutContainer,p as LayoutManager,t as MinWindowMap,a as Pane,i as Popover,e as RouterTransition,o as RouterTransitionAnimate,c as ScaleContainer,l as ScrollSnapContainer,u as Splitpanes,r as SuspenseWithError,C as WindowsMap,s as XWindow,n as XWindowManager};
package/dist/index.css CHANGED
@@ -1 +1 @@
1
- .tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(0.54, 1.5, 0.38, 1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:rgba(0,0,0,0);border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}.adivider{width:100%;margin:10px 0;display:flex;align-items:center;justify-items:center}.adivider .line{border:v-bind(lineColor) 1px solid}.adivider .contentText{background-color:inherit;font-size:18px}.scrollSnapContainer{position:relative;height:v-bind(heightStyle);overflow-x:hidden;overflow-y:auto;scroll-behavior:smooth;scroll-snap-type:y mandatory;scroll-snap-stop:always;-webkit-scroll-snap-type:y mandatory;-webkit-overflow-scrolling:touch}.scrollSection{position:relative;width:100%;min-height:v-bind(heightStyle);scroll-snap-align:start}.layoutContainer{position:relative;width:100%;height:100%;padding:0;margin:0;--layout-top-height: 70px;--layout-left-width: 200px;--layout-right-width: 200px;--layout-bottom-height: 60px;--layout-top-zindex: 100;--layout-bottom-zindex: 100;--layout-centermain-zindex: 80;--layout-centerback-zindex: 90;--layout-centerfront-zindex: 110;--layout-left-zindex: 100;--layout-right-zindex: 100}.topContainer{position:absolute;top:0px;left:0px;width:100%;height:var(--layout-top-height);z-index:var(--layout-top-zindex);overflow:hidden;pointer-events:none}.topContainer>*{pointer-events:all !important}.bottomContainer{position:absolute;bottom:0px;left:0px;width:100%;height:var(--layout-bottom-height);z-index:var(--layout-bottom-zindex);overflow:hidden;pointer-events:none}.bottomContainer>*{pointer-events:all !important}.leftContainer{position:absolute;top:0px;left:0px;bottom:0;z-index:var(--layout-left-zindex);width:var(--layout-left-width);overflow:hidden;pointer-events:none}.leftContainer>*{pointer-events:all !important}.rightContainer{position:absolute;top:0px;right:0px;bottom:0;width:var(--layout-right-width);z-index:var(--layout-right-zindex);overflow:hidden;pointer-events:none}.rightContainer>*{pointer-events:all !important}.centerdiv{position:absolute;top:0;left:0;bottom:0;width:100%;background-color:rgba(0,0,0,0);overflow:hidden;pointer-events:none}.centerdiv>*{pointer-events:all !important}.mainContainer{z-index:var(--layout-centermain-zindex)}.backContainer{z-index:var(--layout-centerback-zindex)}.centerFrontContainer{z-index:var(--layout-centerfront-zindex)}.paneltitle{display:inline-block;vertical-align:middle;font-size:16px;font-weight:600;text-wrap:nowrap;overflow:hidden;margin-left:5px}.dragPanelBar{float:right;padding-right:10px;width:var(--right-bar-width);min-width:40px;height:100%;display:flex;align-items:center;justify-content:space-between}.dragPanelBar svg:hover{border:1px solid #333}.dragWindowPanel{position:absolute;background-color:#ddd;z-index:10;border-radius:6px;display:grid;grid-template-rows:min-content auto;user-select:none}.dragWindowPanel .dragPanelTitle{background-color:#eee;border-radius:5px 5px 0 0;padding-left:5px;vertical-align:middle;pointer-events:all}.dragWindowPanel .dragPanelTitle img{display:inline-block;vertical-align:middle}.dragWindowPanel .dragPanelContent{margin-top:1px;background-color:#eee;height:100%;overflow-x:hidden;overflow-y:auto;padding:5px 8px}.dragWindowPanel .iconify{color:#000}.drag-pointer-group{pointer-events:none;position:absolute;left:0;top:0;z-index:11;margin:-0.5rem;display:grid;height:calc(100% + 1rem);width:calc(100% + 1rem);grid-template-columns:1rem auto 1rem;grid-template-rows:1rem auto 1rem}.drag-pointer-group>*{pointer-events:all !important}.maxPanel{top:0px !important;left:0px !important;width:100% !important;height:100% !important;border-radius:0px !important}.dragWindowPanel_dark{background-color:#043351}.dragWindowPanel_dark .iconify{color:#eee}.dragWindowPanel_dark .dragPanelTitle{background-color:#043351;color:#eee;border-radius:5px 5px 0 0;padding-left:5px;vertical-align:middle;pointer-events:all}.dragWindowPanel_dark .dragPanelTitle img{display:inline-block;vertical-align:middle}.dragWindowPanel_dark .dragPanelContent{background-color:#2f353d;margin-top:1px;height:100%;overflow-x:hidden;overflow-y:auto;padding:5px 8px}.cursor-nw-resize{cursor:nw-resize}.cursor-n-resize{cursor:n-resize}.cursor-ne-resize{cursor:ne-resize}.cursor-w-resize{cursor:w-resize}.cursor-e-resize{cursor:e-resize}.cursor-se-resize{cursor:se-resize}.cursor-sw-resize{cursor:sw-resize}.cursor-s-resize{cursor:s-resize}.popover-content-transition-bottom-enter-from,.popover-content-transition-bottom-leave-to{height:500px !important;opacity:0}.popover-content-transition-bottom-enter-active{transition:height .05s ease-in,opacity .05s ease-in}.popover-content-transition-bottom-leave-active{transition:height .05s ease-out,opacity .05s ease-out}.popover-content-transition-left-enter-from{left:-800px}.popover-content-transition-left-leave-to{left:0}.popover-content-transition-left-enter-active{transition:left 1s}.popover-content-transition-left-leave-active{transition:left 1s}.xScreen-container{width:100%;height:100vh}.xScreen-container .xScreen{position:fixed;top:50%;left:50%;z-index:99;display:flex;flex-direction:column;overflow:hidden;transition:all .3s;transform-origin:left top}.splitpanes{display:flex;width:100%;height:100%}.splitpanes--vertical{flex-direction:row}.splitpanes--horizontal{flex-direction:column}.splitpanes--dragging *{user-select:none}.splitpanes__pane{width:100%;height:100%;overflow:hidden}.splitpanes--vertical .splitpanes__pane{transition:width .2s ease-out}.splitpanes--horizontal .splitpanes__pane{transition:height .2s ease-out}.splitpanes--dragging .splitpanes__pane{transition:none}.splitpanes__splitter{touch-action:none}.splitpanes--vertical>.splitpanes__splitter{min-width:1px;cursor:col-resize}.splitpanes--horizontal>.splitpanes__splitter{min-height:1px;cursor:row-resize}.splitpanes.default-theme .splitpanes__pane{background-color:#f2f2f2}.splitpanes.default-theme .splitpanes__splitter{background-color:#fff;box-sizing:border-box;position:relative;flex-shrink:0}.splitpanes.default-theme .splitpanes__splitter:before,.splitpanes.default-theme .splitpanes__splitter:after{content:"";position:absolute;top:50%;left:50%;background-color:rgba(0,0,0,.15);transition:background-color .3s}.splitpanes.default-theme .splitpanes__splitter:hover:before,.splitpanes.default-theme .splitpanes__splitter:hover:after{background-color:rgba(0,0,0,.25)}.splitpanes.default-theme .splitpanes__splitter:first-child{cursor:auto}.default-theme.splitpanes .splitpanes .splitpanes__splitter{z-index:1}.default-theme.splitpanes--vertical>.splitpanes__splitter,.default-theme .splitpanes--vertical>.splitpanes__splitter{width:7px;border-left:1px solid #eee;margin-left:-1px}.default-theme.splitpanes--vertical>.splitpanes__splitter:before,.default-theme.splitpanes--vertical>.splitpanes__splitter:after,.default-theme .splitpanes--vertical>.splitpanes__splitter:before,.default-theme .splitpanes--vertical>.splitpanes__splitter:after{transform:translateY(-50%);width:1px;height:30px}.default-theme.splitpanes--vertical>.splitpanes__splitter:before,.default-theme .splitpanes--vertical>.splitpanes__splitter:before{margin-left:-2px}.default-theme.splitpanes--vertical>.splitpanes__splitter:after,.default-theme .splitpanes--vertical>.splitpanes__splitter:after{margin-left:1px}.default-theme.splitpanes--horizontal>.splitpanes__splitter,.default-theme .splitpanes--horizontal>.splitpanes__splitter{height:7px;border-top:1px solid #eee;margin-top:-1px}.default-theme.splitpanes--horizontal>.splitpanes__splitter:before,.default-theme.splitpanes--horizontal>.splitpanes__splitter:after,.default-theme .splitpanes--horizontal>.splitpanes__splitter:before,.default-theme .splitpanes--horizontal>.splitpanes__splitter:after{transform:translateX(-50%);width:30px;height:1px}.default-theme.splitpanes--horizontal>.splitpanes__splitter:before,.default-theme .splitpanes--horizontal>.splitpanes__splitter:before{margin-top:-2px}.default-theme.splitpanes--horizontal>.splitpanes__splitter:after,.default-theme .splitpanes--horizontal>.splitpanes__splitter:after{margin-top:1px}
1
+ .adivider{width:100%;margin:10px 0;display:flex;align-items:center;justify-items:center}.adivider .line{border:v-bind(lineColor) 1px solid}.adivider .contentText{background-color:inherit;font-size:18px}.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(0.54, 1.5, 0.38, 1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:rgba(0,0,0,0);border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}.xScreen-container{width:100%;height:100vh}.xScreen-container .xScreen{position:fixed;top:50%;left:50%;z-index:99;display:flex;flex-direction:column;overflow:hidden;transition:all .3s;transform-origin:left top}.scrollSnapContainer{position:relative;height:v-bind(heightStyle);overflow-x:hidden;overflow-y:auto;scroll-behavior:smooth;scroll-snap-type:y mandatory;scroll-snap-stop:always;-webkit-scroll-snap-type:y mandatory;-webkit-overflow-scrolling:touch}.scrollSection{position:relative;width:100%;min-height:v-bind(heightStyle);scroll-snap-align:start}.popover-content-transition-bottom-enter-from,.popover-content-transition-bottom-leave-to{height:500px !important;opacity:0}.popover-content-transition-bottom-enter-active{transition:height .05s ease-in,opacity .05s ease-in}.popover-content-transition-bottom-leave-active{transition:height .05s ease-out,opacity .05s ease-out}.popover-content-transition-left-enter-from{left:-800px}.popover-content-transition-left-leave-to{left:0}.popover-content-transition-left-enter-active{transition:left 1s}.popover-content-transition-left-leave-active{transition:left 1s}.layoutContainer{position:relative;width:100%;height:100%;padding:0;margin:0;--layout-top-height: 70px;--layout-left-width: 200px;--layout-right-width: 200px;--layout-bottom-height: 60px;--layout-top-zindex: 100;--layout-bottom-zindex: 100;--layout-centermain-zindex: 80;--layout-centerback-zindex: 90;--layout-centerfront-zindex: 110;--layout-left-zindex: 100;--layout-right-zindex: 100}.topContainer{position:absolute;top:0px;left:0px;width:100%;height:var(--layout-top-height);z-index:var(--layout-top-zindex);overflow:hidden;pointer-events:none}.topContainer>*{pointer-events:all !important}.bottomContainer{position:absolute;bottom:0px;left:0px;width:100%;height:var(--layout-bottom-height);z-index:var(--layout-bottom-zindex);overflow:hidden;pointer-events:none}.bottomContainer>*{pointer-events:all !important}.leftContainer{position:absolute;top:0px;left:0px;bottom:0;z-index:var(--layout-left-zindex);width:var(--layout-left-width);overflow:hidden;pointer-events:none}.leftContainer>*{pointer-events:all !important}.rightContainer{position:absolute;top:0px;right:0px;bottom:0;width:var(--layout-right-width);z-index:var(--layout-right-zindex);overflow:hidden;pointer-events:none}.rightContainer>*{pointer-events:all !important}.centerdiv{position:absolute;top:0;left:0;bottom:0;width:100%;background-color:rgba(0,0,0,0);overflow:hidden;pointer-events:none}.centerdiv>*{pointer-events:all !important}.mainContainer{z-index:var(--layout-centermain-zindex)}.backContainer{z-index:var(--layout-centerback-zindex)}.centerFrontContainer{z-index:var(--layout-centerfront-zindex)}.paneltitle{display:inline-block;vertical-align:middle;font-size:16px;font-weight:600;text-wrap:nowrap;overflow:hidden;margin-left:5px}.dragPanelBar{float:right;padding-right:10px;width:var(--right-bar-width);min-width:40px;height:100%;display:flex;align-items:center;justify-content:space-between}.dragPanelBar svg:hover{border:1px solid #333}.dragWindowPanel{position:absolute;background-color:#ddd;z-index:10;border-radius:6px;display:grid;grid-template-rows:min-content auto;user-select:none}.dragWindowPanel .dragPanelTitle{background-color:#eee;border-radius:5px 5px 0 0;padding-left:5px;vertical-align:middle;pointer-events:all}.dragWindowPanel .dragPanelTitle img{display:inline-block;vertical-align:middle}.dragWindowPanel .dragPanelContent{margin-top:1px;background-color:#eee;height:100%;overflow-x:hidden;overflow-y:auto;padding:5px 8px}.dragWindowPanel .iconify{color:#000}.drag-pointer-group{pointer-events:none;position:absolute;left:0;top:0;z-index:11;margin:-0.5rem;display:grid;height:calc(100% + 1rem);width:calc(100% + 1rem);grid-template-columns:1rem auto 1rem;grid-template-rows:1rem auto 1rem}.drag-pointer-group>*{pointer-events:all !important}.maxPanel{top:0px !important;left:0px !important;width:100% !important;height:100% !important;border-radius:0px !important}.dragWindowPanel_dark{background-color:#043351}.dragWindowPanel_dark .iconify{color:#eee}.dragWindowPanel_dark .dragPanelTitle{background-color:#043351;color:#eee;border-radius:5px 5px 0 0;padding-left:5px;vertical-align:middle;pointer-events:all}.dragWindowPanel_dark .dragPanelTitle img{display:inline-block;vertical-align:middle}.dragWindowPanel_dark .dragPanelContent{background-color:#2f353d;margin-top:1px;height:100%;overflow-x:hidden;overflow-y:auto;padding:5px 8px}.cursor-nw-resize{cursor:nw-resize}.cursor-n-resize{cursor:n-resize}.cursor-ne-resize{cursor:ne-resize}.cursor-w-resize{cursor:w-resize}.cursor-e-resize{cursor:e-resize}.cursor-se-resize{cursor:se-resize}.cursor-sw-resize{cursor:sw-resize}.cursor-s-resize{cursor:s-resize}.splitpanes{display:flex;width:100%;height:100%}.splitpanes--vertical{flex-direction:row}.splitpanes--horizontal{flex-direction:column}.splitpanes--dragging *{user-select:none}.splitpanes__pane{width:100%;height:100%;overflow:hidden}.splitpanes--vertical .splitpanes__pane{transition:width .2s ease-out}.splitpanes--horizontal .splitpanes__pane{transition:height .2s ease-out}.splitpanes--dragging .splitpanes__pane{transition:none}.splitpanes__splitter{touch-action:none}.splitpanes--vertical>.splitpanes__splitter{min-width:1px;cursor:col-resize}.splitpanes--horizontal>.splitpanes__splitter{min-height:1px;cursor:row-resize}.splitpanes.default-theme .splitpanes__pane{background-color:#f2f2f2}.splitpanes.default-theme .splitpanes__splitter{background-color:#fff;box-sizing:border-box;position:relative;flex-shrink:0}.splitpanes.default-theme .splitpanes__splitter:before,.splitpanes.default-theme .splitpanes__splitter:after{content:"";position:absolute;top:50%;left:50%;background-color:rgba(0,0,0,.15);transition:background-color .3s}.splitpanes.default-theme .splitpanes__splitter:hover:before,.splitpanes.default-theme .splitpanes__splitter:hover:after{background-color:rgba(0,0,0,.25)}.splitpanes.default-theme .splitpanes__splitter:first-child{cursor:auto}.default-theme.splitpanes .splitpanes .splitpanes__splitter{z-index:1}.default-theme.splitpanes--vertical>.splitpanes__splitter,.default-theme .splitpanes--vertical>.splitpanes__splitter{width:7px;border-left:1px solid #eee;margin-left:-1px}.default-theme.splitpanes--vertical>.splitpanes__splitter:before,.default-theme.splitpanes--vertical>.splitpanes__splitter:after,.default-theme .splitpanes--vertical>.splitpanes__splitter:before,.default-theme .splitpanes--vertical>.splitpanes__splitter:after{transform:translateY(-50%);width:1px;height:30px}.default-theme.splitpanes--vertical>.splitpanes__splitter:before,.default-theme .splitpanes--vertical>.splitpanes__splitter:before{margin-left:-2px}.default-theme.splitpanes--vertical>.splitpanes__splitter:after,.default-theme .splitpanes--vertical>.splitpanes__splitter:after{margin-left:1px}.default-theme.splitpanes--horizontal>.splitpanes__splitter,.default-theme .splitpanes--horizontal>.splitpanes__splitter{height:7px;border-top:1px solid #eee;margin-top:-1px}.default-theme.splitpanes--horizontal>.splitpanes__splitter:before,.default-theme.splitpanes--horizontal>.splitpanes__splitter:after,.default-theme .splitpanes--horizontal>.splitpanes__splitter:before,.default-theme .splitpanes--horizontal>.splitpanes__splitter:after{transform:translateX(-50%);width:30px;height:1px}.default-theme.splitpanes--horizontal>.splitpanes__splitter:before,.default-theme .splitpanes--horizontal>.splitpanes__splitter:before{margin-top:-2px}.default-theme.splitpanes--horizontal>.splitpanes__splitter:after,.default-theme .splitpanes--horizontal>.splitpanes__splitter:after{margin-top:1px}
package/dist/index.js ADDED
@@ -0,0 +1 @@
1
+ import{$ as e,$n as t,$t as n,A as a,An as s,At as i,B as o,Bn as r,Bt as c,C as l,Cn as d,Ct as u,D as p,Dn as g,Dt as h,E as f,En as m,Et as w,F as y,Fn as v,Ft as k,G as S,Gn as b,Gt as T,H as C,Hn as E,Ht as L,I as M,In as x,It as A,J as R,Jn as H,Jt as D,K as W,Kn as O,Kt as z,L as B,Ln as I,Lt as N,M as U,Mn as P,Mt as V,N as _,Nn as $,Nt as j,O as q,On as Y,Ot as F,P as G,Pn as J,Pt as X,Q as K,Qn as Q,Qt as Z,R as ee,Rn as te,Rt as ne,S as ae,Sn as se,St as ie,T as oe,Tn as re,Tt as ce,U as le,Un as de,Ut as ue,V as pe,Vn as ge,Vt as he,W as fe,Wn as me,Wt as we,X as ye,Xn as ve,Xt as ke,Y as Se,Yn as be,Yt as Te,Z as Ce,Zn as Ee,Zt as Le,_ as Me,_n as xe,_t as Ae,a as Re,an as He,ar as De,at as We,b as Oe,bn as ze,bt as Be,c as Ie,cn as Ne,cr as Ue,ct as Pe,d as Ve,dn as _e,dr as $e,dt as je,en as qe,er as Ye,et as Fe,f as Ge,fn as Je,fr as Xe,ft as Ke,g as Qe,gn as Ze,gr as et,gt as tt,h as nt,hn as at,hr as st,ht as it,i as ot,in as rt,ir as ct,it as lt,j as dt,jn as ut,jt as pt,k as gt,kn as ht,kt as ft,l as mt,ln as wt,lr as yt,lt as vt,m as kt,mn as St,mt as bt,n as Tt,nn as Ct,nr as Et,nt as Lt,o as Mt,on as xt,or as At,ot as Rt,p as Ht,pn as Dt,pr as Wt,pt as Ot,q as zt,qn as Bt,qt as It,r as Nt,rn as Ut,rr as Pt,rt as Vt,s as _t,sn as $t,sr as jt,st as qt,t as Yt,tn as Ft,tr as Gt,tt as Jt,u as Xt,un as Kt,ur as Qt,ut as Zt,v as en,vn as tn,vt as nn,w as an,wn as sn,wt as on,x as rn,xn as cn,xt as ln,y as dn,yn as un,yt as pn,z as gn,zn as hn,zt as fn}from"./utils-BbwKxKXj.js";import{C as mn,E as wn,S as yn,T as vn,_ as kn,a as Sn,b as bn,c as Tn,d as Cn,f as En,g as Ln,h as Mn,i as xn,l as An,m as Rn,n as Hn,o as Dn,p as Wn,r as On,s as zn,t as Bn,u as In,v as Nn,w as Un,x as Pn,y as Vn}from"./controls-CUpF2Uye.js";import{a as _n,i as $n,n as jn,o as qn,r as Yn,t as Fn}from"./workers-KrixIhH4.js";import{n as Gn,r as Jn,t as Xn}from"./workerservice-BInFtqH4.js";import{getCurrentInstance as Kn,onMounted as Qn,onUnmounted as Zn,ref as ea}from"vue";import{ByteStream as ta,Reader as na,ValueReader as aa,Writer as sa}from"@hprose/io";function ia(){let e;const t=ea(0),n=ea(0),a=ea(""),s=ea(0),i=ea(0),o=ea(0),r=ea(0),c=()=>{const e=/* @__PURE__ */new Date;t.value=e.getFullYear(),n.value=e.getMonth()+1,a.value="日一二三四五六".charAt(e.getDay()),s.value=e.getDate(),i.value=(e.getHours()+"").padStart(2,"0")||new Intl.NumberFormat(void 0,{minimumIntegerDigits:2}).format(e.getHours()),o.value=(e.getMinutes()+"").padStart(2,"0")||new Intl.NumberFormat(void 0,{minimumIntegerDigits:2}).format(e.getMinutes()),r.value=e.getSeconds()};return c(),Qn(()=>{clearInterval(e),e=setInterval(()=>c(),1e3)}),Zn(()=>{clearInterval(e)}),{year:t,month:n,day:s,hour:i,minute:o,second:r,week:a}}var oa=et();function ra(){const e=Kn(),t=e?.proxy?.$options.widgetConfig.id,n=e?.proxy?.$options.widgetConfig.layoutID,a=Xe.LayoutMap.get(n),s={instance:e,wid:t,layoutid:n,widgetConfig:e?.proxy?.$options.widgetConfig,layoutManager:a,onUpdate(e){s&&oa.on(t,e),Zn(()=>{oa.off(t,e)})}};function i(e){let n=[];e?Array.isArray(e)?n=e:n.push(e):n.push(t),n.forEach(e=>{a?.isWidgetLoaded(e)?a?.unloadWidget(e):a?.loadWidget(e)})}return{currentWidget:s,getLayoutManager:e=>e?Xe.LayoutMap.get(e):a,setVisible(e=!0,n){const s=n??t;a?.changeWidgetVisible(s,e)},updateWidget(e,n=null){const a=e??t;oa.emit(a,n)},isActivate:e=>{const n=e??t;return!!a?.isWidgetLoaded(n)&&a?.isWidgetVisible(n)},toggleLoad:(e,n=!0)=>{let s=[];e?Array.isArray(e)?s=e:s.push(e):s.push(t),s.forEach(e=>{const t=a?.isWidgetLoaded(e);n?t||a?.loadWidget(e):t&&a?.unloadWidget(e)})},toggleActivate:i,activate:i,disable:e=>{if(e){let t=[];Array.isArray(e)?t=e:t.push(e),t.forEach(e=>{a?.unloadWidget(e)})}else a?.unloadWidget(t)}}}function ca(e){const t=new sa(new ta);return t.serialize(e),t.stream.toString()}function la(e){return null==e||""===e?e:new na(new ta(e)).deserialize()}var da=class e{debug=!1;simple=!1;utc=!1;longType="number";dictType="object";nullType=void 0;static Instance=new e;textEncoder=new TextEncoder;textDecoder=new TextDecoder;constructor(){}encodeResponse(e,t={}){var n=new ta,a=new sa(n,this.simple,this.utc),s=t;this.simple;var i=0;for(var o in s)i++;i>0&&(n.writeByte(72),a.serialize(s),a.reset()),e instanceof Error?(n.writeByte(69),a.serialize(this.debug&&e.stack?e.stack:e.message)):(n.writeByte(82),a.serialize(e)),n.writeByte(122);const r=n.takeBytes();return this.textDecoder.decode(r)}decodeRequest(e,t={}){const n=this.textEncoder.encode(e);if(0===n.length)return["~",[]];var a=new ta(n),s=new na(a,!1);s.longType=this.longType,s.dictType=this.dictType;var i=a.readByte();if(72===i){var o=s.deserialize(this.nullType);for(var r in o)t[r]=o[r];s.reset(),i=a.readByte()}switch(i){case 67:return[s.deserialize(String),this.decodeArguments(s)];case 122:return["~",[]];default:throw new Error("Invalid request:\r\n"+a.toString())}}decodeArguments(e){var t=e.stream;let n=[];if(97===t.readByte()){e.reset();var a=aa.readCount(t);const i=new Array(a).fill(this.nullType);n=new Array(a),e.addReference(n);for(var s=0;s<a;++s)n[s]=e.deserialize(i[s]);t.readByte()}return n}encodeRequest(e,t,n={}){var a=new ta,s=new sa(a,this.simple,this.utc),i=n;this.simple&&(i.simple=!0);var o=0;for(var r in i)o++;o>0&&(a.writeByte(72),s.serialize(i),s.reset()),a.writeByte(67),s.serialize(e),t.length>0&&(s.reset(),s.serialize(t)),a.writeByte(122);const c=a.takeBytes();return this.textDecoder.decode(c)}decodeResponse(e,t={}){const n=this.textEncoder.encode(e);var a=new ta(n),s=new na(a,!1);s.longType=this.longType,s.dictType=this.dictType;var i=a.readByte();if(72===i){var o=s.deserialize();for(var r in o)t[r]=o[r];s.reset(),i=a.readByte()}switch(i){case 82:return t.simple&&(s.simple=!0),s.deserialize();case 69:throw new Error(s.deserialize(String));case 122:return;default:throw new Error("Invalid response:\r\n"+a.toString())}}},ua=/* @__PURE__ */new Map,pa=/* @__PURE__ */new Map,ga=void 0,ha={getDefaultClient(){if(ga||(ga=new Et(SysConfig?.ServiceURL.DefaultHproseAPI)),!ga)throw Error("HproseProxy对象为空");return ga},registerHprose(e,t){const n=pa.get(e);if(!n){const n=new Et(t);ua.set(e,n)}return n},getHprose:e=>pa?.get(e),getProxyHprose:e=>ua.get(e),unregisterHprose(e){ua.get(e)&&(pa.delete(e),ua.delete(e))}},fa=5e3,ma=36e5,wa={Login:"/api/User/Login",ChangeMyPwd:"/api/User/ChangeMyPwd",Logout:"/api/Check/ExitLogin",RefreshToken:"/api/Check/RefreshToken",CheckToken:"/api/Check/CheckToken",GetSystemRights:"/api/System/GetSystem"},ya="access_token",va=Xe?.Config?.ServiceURL.LoginAuthURL;function ka(){const e=De();e&&Ke(wa.RefreshToken,va,{refreshToken:e}).then(e=>{ba(e.data)})}function Sa(){const e=At.getJsonObject(ya);if(!e)return;const t=/* @__PURE__ */(new Date).getTime(),n=new Date(e.expire).getTime()-t;n>0&&(n<=5e3?ka():setTimeout(ka,n-5e3))}function ba(e){const t=/* @__PURE__ */(new Date).getTime();let n=new Date(e.accessToken.expires).getTime()-t;if(n>=36e5?(n=18e5,console.warn("客户端时间与服务器不一致:过去时间!")):n<-6e5&&(n=18e5,console.warn("客户端时间与服务器不一致:未来时间!")),n>0){let t=ct();t?(t.token=e.accessToken.tokenContent,t.expire=e.accessToken.expires,t.refresh=e.refreshToken.tokenContent):t={token:e.accessToken.tokenContent,expire:e.accessToken.expires,refresh:e.refreshToken.tokenContent},At.set(ya,t,n/1e3),Sa()}else At.remove(ya)}var Ta,Ca="Wm314243",Ea=Xe?.Config?.ServiceURL.LoginAuthURL;async function La(e){const t={username:e.username,pwd:Ct.encryptToString(e.pwd,Ca)},n=(await Ke(wa.Login,Ea,t))?.data;return n&&(ba(n.doubletoken),Fe(!1)),n}function Ma(e){const t={oldpwd:Ct.encryptToString(e.oldpwd,Ca),newpwd:Ct.encryptToString(e.newpwd,Ca)};return Ke(wa.ChangeMyPwd,Ea,t)}function xa(e){return Ct.encryptToString(e,Ca)}function Aa(){const e=ct();e&&(nn(wa.Logout,Ea,{token:e.token,reftoken:e.refresh}),Pt())}function Ra(e){return Ke(wa.CheckToken,Ea,{token:e})}!function(e){e[e.Widget=0]="Widget",e[e.Route=1]="Route",e[e.URL=2]="URL",e[e.Action=3]="Action"}(Ta||(Ta={}));var Ha,Da="ROLE_SYSTEM_RIGHT";function Wa(){return Ha||(Ha=new jt("",Ue("sessionStorage"))),Ha}function Oa(){return Wa().get(Da)}function za(e){Wa().set(Da,e)}function Ba(){Wa().remove(Da)}function Ia(e){if(e)for(let t=0;t<e.length;t++){const n=e[t];n.children&&n.children.length>0?(Ia(n.children),0===n.children.length&&(e.splice(t,1),t--)):n.selected||(e.splice(t,1),t--)}}function Na(e,t,n="name"){e&&t&&e.forEach(e=>{const a=t.find(t=>t[n]===e[n]);a&&(e.children?a.children&&Na(e.children,a.children,n):a.children&&0!==a.children.length||a.selected&&(e.selected=a.selected))})}function Ua(e,t,n="name"){e&&t&&e.forEach(e=>{const a=t.find(t=>t[n]===e[n]);a&&(e.children?a.children&&Ua(e.children,a.children,n):a.children&&0!==a.children.length||a.selected&&(e.selected=a.selected))})}function Pa(e,t,n,a="name"){const s=e[n],i=t[n];s?i&&Ua(s,i,a):i&&(e[n]=i)}function Va(e){if(e&&e.length>0){const t=e.length;let n,a=!1;if(t>0){a=me(e[0]);const s=a?e[0]:JSON.parse(e[0]);if(t>1)for(let t=1;t<e.length;t++){const n=e[t],i=a?n:JSON.parse(n);Pa(s,i,"routes","name"),Pa(s,i,"widgetMenu","name"),Pa(s,i,"widgets","id"),Pa(s,i,"functions","id")}n=s}return n&&(Ia(n.routes),Ia(n.widgetMenu),Ia(n.widgets),Ia(n.functions)),n}}function _a(){return Oa()}async function $a(e,t=!1){Ba();const n=wa.GetSystemRights,a=Xe?.Config?.ServiceURL.LoginAuthURL,s=await Ke(n,a,{systemid:e});if(!s||!s.data)return void Xe.Message?.warn("无法获取功能授权列表!");const i=s.data;if(i&&i.length>0){if(t){const e=JSON.parse(i[0]);return za(e),e}{const e=Va(i);return za(e),e}}}function ja(e,t){const n={...e,meta:{...e.meta}};if(null!=t.index&&(n.meta.index=t.index),null!=t.title&&(n.meta.title=t.title),e.children&&(n.children=[],t.children)){const a=new Map(e.children.map(e=>[e.path,e]));t.children.forEach(e=>{const t=a.get(e.path);if(t){const a=ja(t,e);a&&n.children?.push(a)}})}return n}function qa(e,t=2){if(0===t)return e;const n=_a();if(n&&n.routes){const t=[],a=new Map(n.routes.map(e=>[e.name,e]));return e.forEach(e=>{const n=a.get(e.name);if(n){const a=ja(e,n);a&&t.push(a)}}),t}}function Ya(e,t){const n={...e};if(null!=t.index&&(n.index=t.index),e.children&&(n.children=[],t.children)){const a=new Map(e.children.map(e=>[e.name,e]));t.children.forEach(e=>{const t=a.get(e.name);if(t){const a=Ya(t,e);a&&n.children?.push(a)}})}return n}function Fa(e,t=2){if(0===t)return e;const n=_a();if(n&&n.widgetMenu){const t=[],a=new Map(n.widgetMenu.map(e=>[e.name,e]));return e.forEach(e=>{const n=a.get(e.name);if(n){const a=Ya(e,n);a&&t.push(a)}}),t}}function Ga(e,t=2){if(0===t)return e;const n=_a();if(n&&n.widgets){const t=[],a=new Set(n.widgets.map(e=>e.id));return e?.forEach(e=>{a.has(e.id)&&t.push(e)}),t}}function Ja(e,t=2){if(0===t&&(Xe.RightWidgetConfigMap=e,Xe.RightWidgetConfigMap&&Xe.RightWidgetConfigMap.size>0))return Xe.RightWidgetConfigMap;const n=_a();if(n&&n.widgets){const t=/* @__PURE__ */new Map;if(n.widgets.forEach(e=>{const n=e.layoutID;if(n){let a;t.has(n)&&(a=t.get(n)),a||(a=/* @__PURE__ */new Set,t.set(n,a)),a&&a.add(e.id)}}),t.size>0){const n=/* @__PURE__ */new Map;for(const[a,s]of t){const t=e.get(a);if(t){const e=new Array;t.forEach(t=>{s.has(t.id)&&e.push(t)}),e.length>0&&n.set(a,e)}}return t.clear(),Xe.RightWidgetConfigMap=n,n}return}}function Xa(e,t=2){if(0===t)return e;const n=_a();return n?n.functions:void 0}var Ka=/* @__PURE__ */new WeakMap,Qa=/* @__PURE__ */new WeakMap,Za={mounted(e,t){const n=t.value;Qa.set(e,n);const a=n?.container&&document.querySelector(n.container)||e.parentElement||document.body,s=n?.selector&&e.querySelector(n.selector)||e.querySelector(".drag-el")||e;s!==e&&s.classList.add("ls-draggable");let i=()=>{};const o=t=>{if(0!==t.button)return;t.preventDefault(),i();const n=t.clientX,s=t.clientY,o=e.offsetLeft,r=e.offsetTop,c=e.getBoundingClientRect(),l=a.getBoundingClientRect(),d=e.style.transition;let u=o,p=r;e.style.transition="none","100"!==e.style.zIndex&&(e.style.zIndex="100");const g=t=>{const a=Math.min(Math.max(t.clientX-n,l.left-c.left),l.right-c.right),i=Math.min(Math.max(t.clientY-s,l.top-c.top),l.bottom-c.bottom);u=o+a,p=r+i,e.style.left=`${u}px`,e.style.top=`${p}px`},h=()=>{i(),e.style.transition=d,u===o&&p===r||Qa.get(e)?.onEnd?.({left:u,top:p,element:e})};i=()=>{document.removeEventListener("mousemove",g),document.removeEventListener("mouseup",h),i=()=>{}},document.addEventListener("mousemove",g),document.addEventListener("mouseup",h)};s.addEventListener("mousedown",o),Ka.set(e,()=>{i(),s.removeEventListener("mousedown",o)})},updated(e,t){Qa.set(e,t.value)},beforeUnmount(e){Ka.get(e)?.(),Ka.delete(e),Qa.delete(e)}};function es(e){e.directive("drag",Za)}var ts={created:(e,t)=>{let n=0,a=0,s=0,i=null;e.addEventListener("click",function(e){a=/* @__PURE__ */(new Date).getTime(),n++,1===n&&(a=/* @__PURE__ */(new Date).getTime()),2===n&&(s=/* @__PURE__ */(new Date).getTime()),a&&s&&s-a<400&&2===n&&t.value(),i||(i=setTimeout(()=>{a=0,s=0,n=0,clearTimeout(i),i=null},500))})}};function ns(e){e.directive("dc",ts)}var as={beforeMount(e,t){let n=null,a=0;const s=()=>t?.value(),i=()=>{Date.now()-a<100&&s(),n&&clearInterval(n),n=null};lt.on(e,"mousedown",e=>{0===e.button&&(a=Date.now(),lt.once(document,"mouseup",i),n&&clearInterval(n),n=setInterval(s,100))})}};function ss(e){e.directive("repeatClick",as)}var is={mounted(e,t){const n=t.value;e.style.visibility="hidden",e.style["animation-name"]="none";const a=function(e){const t=globalThis.scrollY||globalThis.pageYOffset||document.documentElement.scrollTop||e.parentNode.scrollTop,n=t+(hn()?document.documentElement.scrollHeight>document.documentElement.clientHeight?globalThis.innerHeight:document.documentElement.clientHeight:Math.min(document.documentElement.clientHeight,globalThis.innerHeight)),a=function(e){let t;for(;void 0===e.offsetTop;)e=e.parentNode;for(t=e.offsetTop;e=e.offsetParent;)t+=e.offsetTop;return t}(e),s=a+e.clientHeight;return a<n&&s>=t},s=function(e,t){if(a(e)){e.style.visibility="visible";for(const n in t)e.style[n]=t[n];"none"!=e.style["animation-name"]&&(e.style["animation-duration"]||(e.style["animation-duration"]="1s")),e.parentNode.removeEventListener("scroll",o)}};let i=Date.now();const o=function(){Date.now()-i>=100&&(s(e,n),i=Date.now())};setTimeout(function(){s(e,n)},1),e.parentNode.addEventListener("scroll",o)}};function os(e){e.directive("wow",is)}var rs={mounted(e,t){const n=t.value,a=Object.assign({},e.classList),s=n.split(" "),i=()=>{s&&s.length>0&&(Tt.updateSize(),s.forEach(t=>{const n=t.indexOf(".");if(n>0){const s=t.substring(0,n),i=t.substring(n+1);if(i){const t=i.split(".");if(t&&t.length>0){let n=Tt;t.forEach(e=>{n=n[e]}),n?e.classList.add(s):a?.contains&&a?.contains(s)||e.classList.remove(s)}}}}))};i(),re.windowResizeHandler(i)}};function cs(e){e.directive("media",rs)}var ls={mounted(e,t,n){const a="string"==typeof t.value?{content:t.value}:t.value||{},s=Object.keys(t.modifiers||{}),i=s.find(e=>"arrow"!==e),o=-1!==s.findIndex(e=>"arrow"===e);i&&(a.placement=a.placement||i),o&&(a.arrow=void 0===a.arrow||a.arrow),n.props&&n.props.onTippyShow&&(a.onShow=function(...e){return n.props?.onTippyShow(...e)}),n.props&&n.props.onTippyShown&&(a.onShown=function(...e){return n.props?.onTippyShown(...e)}),n.props&&n.props.onTippyHidden&&(a.onHidden=function(...e){return n.props?.onTippyHidden(...e)}),n.props&&n.props.onTippyHide&&(a.onHide=function(...e){return n.props?.onTippyHide(...e)}),n.props&&n.props.onTippyMount&&(a.onMount=function(...e){return n.props?.onTippyMount(...e)}),e.getAttribute("title")&&!a.content&&(a.content=e.getAttribute("title"),e.removeAttribute("title")),e.getAttribute("content")&&!a.content&&(a.content=e.getAttribute("content")),wn(e,a)},unmounted(e){e.$tippy?e.$tippy.destroy():e._tippy&&e._tippy.destroy()},updated(e,t){const n="string"==typeof t.value?{content:t.value}:t.value||{};n.content||(n.content=null),e.getAttribute("title")&&!n.content&&(n.content=e.getAttribute("title"),e.removeAttribute("title")),e.getAttribute("content")&&!n.content&&(n.content=e.getAttribute("content")),e.$tippy?e.$tippy.setProps(n||{}):e._tippy&&e._tippy.setProps(n||{})}};function ds(e){e.directive("tooltip",ls)}function us(e){os(e),ss(e),es(e),ns(e),cs(e),ds(e)}var ps=class e{static batteryStatusCallback;static _battery;static batteryStatusChange(e){const t=this._battery;t&&(console.log("电量: "+100*t.level+"%"),console.log("充电状态: "+t.charging),this.batteryStatusCallback&&this.batteryStatusCallback(t))}static async OnBatteryStatusHandler(e){this.batteryStatusCallback=e;const t=await navigator.getBattery();t&&(this._battery=t,this.batteryStatusCallback&&this.batteryStatusCallback(t),t.onlevelchange=this.batteryStatusChange.bind(this),t.onchargingchange=this.batteryStatusChange.bind(this),t.ondischargingtimechange=this.batteryStatusChange.bind(this))}static OffBatteryStatusHandler(){this._battery=void 0}static onlineChangeCallback;static networkStatusChangeHandler=e.networkStatusChange.bind(e);static networkStatusChange(){const e=this.isOnline();console.log(e?"设备已联网":"设备未联网"),this.onlineChangeCallback&&this.onlineChangeCallback(e)}static isOnline(){return navigator.onLine}static OnNetworkHandle(e){this.onlineChangeCallback=e,this.networkStatusChange(),window.addEventListener("online",this.networkStatusChangeHandler),window.addEventListener("offline",this.networkStatusChangeHandler)}static OffNetworkHandle(){window.removeEventListener("online",this.networkStatusChangeHandler),window.removeEventListener("offline",this.networkStatusChangeHandler)}static downloadSpead(e){const t=navigator,n=t.connection||t.mozConnection||t.webkitConnection;return n?(console.log("下行带宽:",n.downlink+" Mbps"),n.addEventListener("change",()=>{console.log("网络状态变化:",n.effectiveType),e&&e(n.downlink)}),n.downlink):-1}static async vibrate(e=300){const t=navigator,n=t.vibrate||t.webkitVibrate||t.mozVibrate||t.msVibrate;n&&n(e)}static defaultSpeakOption={text:"",lang:"zh-CN",rate:1,pitch:1,volume:.2,voice:0};static changeSpeakOptions(e=.2,t=1,n=1,a=0){e>=0&&e<=1&&(this.defaultSpeakOption.volume=e),t>=.1&&t<=2&&(this.defaultSpeakOption.rate=t),n>=0&&n<=2&&(this.defaultSpeakOption.pitch=n),this.defaultSpeakOption.voice=a}static getSupportedVoices(){return window.speechSynthesis.getVoices().map(e=>e.name)}static getSupportedLanguages(){return navigator.languages}static async speak(e,t="zh-CN"){if(!e)return;const n=window.speechSynthesis;n.speaking&&n.cancel();const a=new SpeechSynthesisUtterance;a.lang=t,a.text=e,a.rate=this.defaultSpeakOption.rate,a.pitch=this.defaultSpeakOption.pitch,a.volume=this.defaultSpeakOption.volume;const s=this.defaultSpeakOption.voice;if(s>0){const e=n.getVoices();s<e.length&&(a.voice=e[s])}n.speak(a)}static async speakEnglish(e){this.speak(e,"en-US")}static stopSpeak(){const e=window.speechSynthesis;e.speaking&&e.cancel()}static openNotification(e,t,n,a,s){"Notification"in window||console.log("浏览器不支持桌面通知!");let i=n;if(t)i=i??{},i.body=t;else if("granted"===Notification.permission){const t=new Notification(e,i);t.onclick=e=>{s&&s(e.target)},t.onclose=e=>{a&&a(e.target)}}else"denied"!==Notification.permission&&Notification.requestPermission(t=>{if("granted"===t){const t=new Notification(e,i);t.onclick=e=>{s&&s(e.target)},t.onclose=e=>{a&&a(e.target)}}})}static isPageVisible(){return!document.hidden}static onPageVisibleChange(e){document.addEventListener("visibilitychange",()=>{e&&e(!document.hidden)})}static async copyText(e){return await navigator.clipboard.writeText(e)}static async readText(){return await navigator.clipboard.readText()}static viewTransition(e){if(e){if(!document.startViewTransition)return void e();document.startViewTransition(()=>e())}}},gs=Ve.default;export{zn as ADivider,K as BigFileDownload,N as CommonTool,Ut as DayjsTool,xt as Download,on as EnumColor,Bn as FVMenu,We as FileUpload,qe as GetSignalRClient,Xe as Global,ha as GlobalHprose,st as GlobalMitt,rt as GzipTool,re as H5Tool,Qt as HproseClient,da as HproseRPCCodec,$t as HttpDownload,Ne as JsonDownload,Wn as LayoutContainer,kn as LayoutContainerEnum,Rn as LayoutManager,gs as LocalForage,e as LockState,Ta as MenuItemEnum,An as MinWindowMap,ps as NavigatorPlugin,pe as ObjToUrlParams,C as OpenRouterURL,Sn as Pane,xn as Popover,Et as ProxyClient,Mn as RouterTransition,En as RouterTransitionAnimate,wt as SaveAs,Kt as SaveToSelectedFile,On as ScaleContainer,Tt as Screen,Nt as ScreenClass,Hn as ScrollSnapContainer,Dn as Splitpanes,jt as Storage,jt as StorageHelper,$e as StringUtils,Ln as SuspenseWithError,Wt as SysEvents,fa as TOKEN_REFRESH_TIME,ma as TOKEN_VALID_TIMESPAN,wa as USER_TOKEN_API,Z as WarGridTool,Ft as WaterMark,n as WebCacheTool,In as WindowsMap,Tn as XWindow,Cn as XWindowManager,Ct as XXTEA,He as ZipTool,Vn as animateFill,Ge as autoRefresh,ne as base64ToBlob,fn as blobToDataURL,ce as calculateBestTextColor,Ma as changeMyPWD,le as checkAddDefaultRoute,Sa as checkDoRefreshToken,Ra as checkToken,Pt as clearLocalToken,Ba as clearRight,w as colorIsDark,c as convertDecimalism,he as convertDecimalismData,L as convertDecimalismSpacing,ue as convertToDecimalism,we as convertToDecimalismByString,T as convertToDecimalismByString2,mt as createDB,Rt as createFileUpload,bn as createSingleton,h as darken,fe as deepMerge,ie as delay,Pn as delegate,Xt as deleteDB,la as deserialize,Gn as disposeWorker,Ht as doCloseModal,kt as doLoadModal,ka as doRefreshToken,Fe as doSetLock,ts as doubleClickDirective,Za as dragDirective,o as exportSystemRights,z as filterObj,_e as findStringPrefix,yn as followCursor,qt as get,Je as getCommonFileBase,_a as getCurrentSystemRight,Pe as getData,vt as getDownload,xa as getEncryptPWD,Dt as getFileBase,St as getFileExtension,Xa as getFunctions,Ue as getGlobalStorage,F as getHexColor,Fn as getIconvWorker,ct as getLocalToken,Jt as getLockState,ft as getLongHexColor,at as getPathBase,se as getProxyClient,i as getRGBColor,pt as getRGBColorFromHSLA,It as getRandomInt,D as getRandomItem,De as getRefreshToken,Oa as getRight,S as getRouteURL,qa as getRoutes,$a as getSystemRoleRight,W as getTabRouteData,zt as getVueURL,jn as getWebCacheWorker,Ga as getWidgetConfig,Ja as getWidgetConfigMap,Fa as getWidgetMenus,Yn as getXmathWorker,R as globFilterLayoutWidgetConfig,Se as globFilterObjects,ye as globFilterObjectsOld,Ia as handleNodes,V as hexToRGB,mn as hideAll,Yt as iconv,$n as iconvWorker,d as init,sn as initDefaultProxyClient,Jn as initWorker,Un as inlinePositioning,m as is,g as isArray,Y as isAsyncFunction,ht as isBoolean,s as isClient,ut as isDate,P as isDef,$ as isElement,J as isEmpty,j as isEnumColor,v as isError,x as isFunction,X as isHexColor,I as isImageDom,te as isMap,hn as isMobile,r as isNull,ge as isNullAndUnDef,E as isNullOrUnDef,de as isNumber,me as isObjectX,b as isPromise,O as isServer,Bt as isString,H as isStringLikeJson,be as isStringLikeKml,ve as isSymbol,Ee as isUnDef,Q as isValidURL,t as isWeakMap,Ye as isWeakSet,Gt as isWindow,lt as jquery,k as lighten,La as login,Aa as logout,rs as mediaDirective,Va as mergeFilterRoleSysRight,Ze as mergeNames,Na as mergeNodes,Pa as mergeNodesAll,et as mitt,ze as newGuid,Lt as onLockListener,xe as parseLocalPath,Zt as post,Ce as recursiveRoutes,Xn as registerWorkerSerivces,as as repeatDirective,Te as replaceAll,tn as replaceFileExtension,je as requestDelete,Ke as requestGet,Ot as requestHead,bt as requestOptions,it as requestPatch,tt as requestPatchBody,Ae as requestPost,nn as requestPostBody,pn as requestPut,Be as requestPutBody,ln as requestTrace,ke as reserveDecimal,A as rgbToHex,Nn as roundArrow,ca as serialize,ba as setLocalToken,za as setRight,ns as setupDCDirective,us as setupDirectives,es as setupDragDirective,ss as setupRepeatDirective,ds as setupTooltipDirective,os as setupWowDirective,cs as setupmediaDirective,u as sleep,vn as sticky,yt as storage,At as storageHelper,ot as streamFetch,Re as streamFetchBlob,Mt as streamFetchLoadImage,_t as streamFetchText,Ie as streamFetchUploadFile,wn as tippy,un as toLowerCaseExtension,ls as tooltipDirective,Le as traverseXYArrayFromInsideOut,Vt as unLockListener,ia as useTime,ra as useWidget,cn as uuid,nt as verifiyNumberInteger,Qe as verifyAccount,Me as verifyAndSpace,en as verifyCarNum,dn as verifyCnAndSpace,Oe as verifyEmail,rn as verifyEnAndSpace,ae as verifyFullName,l as verifyIPAddress,an as verifyIdCard,oe as verifyNumberCnUppercase,f as verifyNumberComma,p as verifyNumberIntegerAndFloat,q as verifyNumberPercentage,gt as verifyNumberPercentageFloat,a as verifyPassword,dt as verifyPasswordPowerful,U as verifyPasswordStrength,_ as verifyPhone,G as verifyPostalCode,y as verifyTelPhone,M as verifyTextColor,B as verifyUrl,_n as webCacheWorker,is as wowDirective,ee as writeIconifyList,gn as writeSysRoleRight,qn as xmathWorker};
@@ -34,6 +34,102 @@ declare function requestPost(apiUrl: string, baseUrl?: string, _bodyFormParams?:
34
34
  * @returns
35
35
  */
36
36
  declare function requestPostBody(apiUrl: string, baseUrl?: string, _bodyParams?: any, _queryParams?: any, headers?: any, responseType?: ResponseType, timeoutMS?: number): Promise<any>;
37
+ /**
38
+ * Delete服务请求
39
+ * @param apiUrl API接口路径
40
+ * @param baseUrl 基础服务路径
41
+ * @param _params 查询参数
42
+ * @param headers headers参数
43
+ * @param responseType 响应类型,默认为json
44
+ * @param cancelToken 取消标识
45
+ * @param timeoutMS 超时时间-毫秒
46
+ * @returns 返回Promise对象
47
+ */
48
+ declare function requestDelete(apiUrl: string, baseUrl?: string, _params?: any, headers?: any, responseType?: ResponseType, cancelToken?: any, timeoutMS?: number): Promise<any>;
49
+ /**
50
+ * Head服务请求
51
+ * @param apiUrl API接口路径
52
+ * @param baseUrl 基础服务路径
53
+ * @param _params 查询参数
54
+ * @param headers headers参数
55
+ * @param responseType 响应类型,默认为json
56
+ * @param cancelToken 取消标识
57
+ * @param timeoutMS 超时时间-毫秒
58
+ * @returns 返回Promise对象
59
+ */
60
+ declare function requestHead(apiUrl: string, baseUrl?: string, _params?: any, headers?: any, responseType?: ResponseType, cancelToken?: any, timeoutMS?: number): Promise<any>;
61
+ /**
62
+ * Options服务请求
63
+ * @param apiUrl API接口路径
64
+ * @param baseUrl 基础服务路径
65
+ * @param _params 查询参数
66
+ * @param headers headers参数
67
+ * @param responseType 响应类型,默认为json
68
+ * @param cancelToken 取消标识
69
+ * @param timeoutMS 超时时间-毫秒
70
+ * @returns 返回Promise对象
71
+ */
72
+ declare function requestOptions(apiUrl: string, baseUrl?: string, _params?: any, headers?: any, responseType?: ResponseType, cancelToken?: any, timeoutMS?: number): Promise<any>;
73
+ /**
74
+ * Trace服务请求
75
+ * @param apiUrl API接口路径
76
+ * @param baseUrl 基础服务路径
77
+ * @param _params 查询参数
78
+ * @param headers headers参数
79
+ * @param responseType 响应类型,默认为json
80
+ * @param cancelToken 取消标识
81
+ * @param timeoutMS 超时时间-毫秒
82
+ * @returns 返回Promise对象
83
+ */
84
+ declare function requestTrace(apiUrl: string, baseUrl?: string, _params?: any, headers?: any, responseType?: ResponseType, cancelToken?: any, timeoutMS?: number): Promise<any>;
85
+ /**
86
+ * Put服务请求-FormData
87
+ * @param apiUrl API接口路径
88
+ * @param baseUrl 基础服务路径
89
+ * @param _bodyFormParams 表单参数
90
+ * @param _queryParams URL查询参数
91
+ * @param headers 头相关参数
92
+ * @param responseType 返回类型,默认为json
93
+ * @param timeoutMS 超时时间,默认为60000毫秒
94
+ * @returns 返回Promise对象
95
+ */
96
+ declare function requestPut(apiUrl: string, baseUrl?: string, _bodyFormParams?: any, _queryParams?: any, headers?: any, responseType?: ResponseType, timeoutMS?: number): Promise<any>;
97
+ /**
98
+ * Put服务请求-Body方式
99
+ * @param apiUrl API接口路径
100
+ * @param baseUrl 基础服务路径
101
+ * @param _bodyParams body相关参数
102
+ * @param _queryParams URL查询参数
103
+ * @param headers 头相关参数
104
+ * @param responseType 返回类型,默认为json
105
+ * @param timeoutMS 超时时间,默认为60000毫秒
106
+ * @returns 返回Promise对象
107
+ */
108
+ declare function requestPutBody(apiUrl: string, baseUrl?: string, _bodyParams?: any, _queryParams?: any, headers?: any, responseType?: ResponseType, timeoutMS?: number): Promise<any>;
109
+ /**
110
+ * Patch服务请求-FormData
111
+ * @param apiUrl API接口路径
112
+ * @param baseUrl 基础服务路径
113
+ * @param _bodyFormParams 表单参数
114
+ * @param _queryParams URL查询参数
115
+ * @param headers 头相关参数
116
+ * @param responseType 返回类型,默认为json
117
+ * @param timeoutMS 超时时间,默认为60000毫秒
118
+ * @returns 返回Promise对象
119
+ */
120
+ declare function requestPatch(apiUrl: string, baseUrl?: string, _bodyFormParams?: any, _queryParams?: any, headers?: any, responseType?: ResponseType, timeoutMS?: number): Promise<any>;
121
+ /**
122
+ * Patch服务请求-Body方式
123
+ * @param apiUrl API接口路径
124
+ * @param baseUrl 基础服务路径
125
+ * @param _bodyParams body相关参数
126
+ * @param _queryParams URL查询参数
127
+ * @param headers 头相关参数
128
+ * @param responseType 返回类型,默认为json
129
+ * @param timeoutMS 超时时间,默认为60000毫秒
130
+ * @returns 返回Promise对象
131
+ */
132
+ declare function requestPatchBody(apiUrl: string, baseUrl?: string, _bodyParams?: any, _queryParams?: any, headers?: any, responseType?: ResponseType, timeoutMS?: number): Promise<any>;
37
133
  /**
38
134
  * 业务服务Get请求、请求网站下资源、http完整请求
39
135
  * @param url public下资源相对路径
@@ -65,5 +161,5 @@ declare function getData(fullRequestURL: string, _params?: any): Promise<any>;
65
161
  * @returns
66
162
  */
67
163
  declare function getDownload(url: string, fileName?: string, _params?: any): void;
68
- export { get, post, requestPost, requestGet, getData, requestPostBody, getDownload };
164
+ export { get, post, requestPost, requestGet, getData, requestPostBody, getDownload, requestDelete, requestPut, requestPutBody, requestPatch, requestPatchBody, requestHead, requestOptions, requestTrace, };
69
165
  export type { ResponseType };
@@ -16,7 +16,7 @@ export declare function streamFetchBlob(url: string, mimeType?: string): Promise
16
16
  * 大文件上传——数据流分块
17
17
  * @param file
18
18
  * @param url
19
- * @param processCallBack
19
+ * @param processCallBack 流式模式报告读取进度;降级为普通上传时仅在成功后报告100%
20
20
  * @returns
21
21
  */
22
22
  export declare function streamFetchUploadFile(file: File, url?: string, processCallBack?: Function): Promise<any>;
@@ -0,0 +1 @@
1
+ import{$ as a,$n as s,$t as t,A as n,An as r,At as o,Bn as e,Bt as l,C as m,Ct as i,D as d,Dn as f,Dt as p,E as u,En as c,Et as g,F as j,Fn as k,Ft as v,G as x,Gn as M,Gt as T,H as W,Hn as b,Ht as h,I as q,In as y,It as z,J as A,Jn as C,Jt as D,K as E,Kn as F,Kt as G,L as H,Ln as I,Lt as J,M as K,Mn as L,Mt as N,N as O,Nn as P,Nt as Q,O as R,On as S,Ot as U,P as V,Pn as X,Pt as Y,Q as Z,Qn as $,Qt as _,R as w,Rn as B,Rt as aa,S as sa,St as ta,T as na,Tn as ra,Tt as oa,U as ea,Un as la,Ut as ma,V as ia,Vn as da,Vt as fa,W as pa,Wn as ua,Wt as ca,X as ga,Xn as ja,Xt as ka,Y as va,Yn as xa,Yt as Ma,Z as Ta,Zn as Wa,Zt as ba,_ as ha,_n as qa,_t as ya,a as za,an as Aa,ar as Ca,at as Da,b as Ea,bn as Fa,bt as Ga,c as Ha,cn as Ia,cr as Ja,ct as Ka,d as La,dn as Na,dr as Oa,dt as Pa,en as Qa,er as Ra,et as Sa,f as Ua,fn as Va,ft as Xa,g as Ya,gn as Za,gt as $a,h as _a,hn as wa,ht as Ba,i as as,in as ss,ir as ts,it as ns,j as rs,jn as os,jt as es,k as ls,kn as ms,kt as is,l as ds,ln as fs,lr as ps,lt as us,m as cs,mn as gs,mt as js,n as ks,nn as vs,nt as xs,o as Ms,on as Ts,or as Ws,ot as bs,p as hs,pn as qs,pt as ys,q as zs,qn as As,qt as Cs,r as Ds,rn as Es,rr as Fs,rt as Gs,s as Hs,sn as Is,sr as Js,st as Ks,t as Ls,tn as Ns,tr as Os,tt as Ps,u as Qs,un as Rs,ut as Ss,v as Us,vn as Vs,vt as Xs,w as Ys,wt as Zs,x as $s,xn as _s,xt as ws,y as Bs,yn as at,yt as st,z as tt,zn as nt,zt as rt}from"../utils-BbwKxKXj.js";var ot=La.default;export{Z as BigFileDownload,J as CommonTool,Es as DayjsTool,Ts as Download,Zs as EnumColor,Da as FileUpload,Qa as GetSignalRClient,ss as GzipTool,ra as H5Tool,Is as HttpDownload,Ia as JsonDownload,ot as LocalForage,a as LockState,ia as ObjToUrlParams,W as OpenRouterURL,fs as SaveAs,Rs as SaveToSelectedFile,ks as Screen,Ds as ScreenClass,Js as Storage,Js as StorageHelper,Oa as StringUtils,_ as WarGridTool,Ns as WaterMark,t as WebCacheTool,vs as XXTEA,Aa as ZipTool,Ua as autoRefresh,aa as base64ToBlob,rt as blobToDataURL,oa as calculateBestTextColor,ea as checkAddDefaultRoute,Fs as clearLocalToken,g as colorIsDark,l as convertDecimalism,fa as convertDecimalismData,h as convertDecimalismSpacing,ma as convertToDecimalism,ca as convertToDecimalismByString,T as convertToDecimalismByString2,ds as createDB,bs as createFileUpload,p as darken,pa as deepMerge,ta as delay,Qs as deleteDB,hs as doCloseModal,cs as doLoadModal,Sa as doSetLock,G as filterObj,Na as findStringPrefix,Ks as get,Va as getCommonFileBase,Ka as getData,us as getDownload,qs as getFileBase,gs as getFileExtension,Ja as getGlobalStorage,U as getHexColor,ts as getLocalToken,Ps as getLockState,is as getLongHexColor,wa as getPathBase,o as getRGBColor,es as getRGBColorFromHSLA,Cs as getRandomInt,D as getRandomItem,Ca as getRefreshToken,x as getRouteURL,E as getTabRouteData,zs as getVueURL,A as globFilterLayoutWidgetConfig,va as globFilterObjects,ga as globFilterObjectsOld,N as hexToRGB,Ls as iconv,c as is,f as isArray,S as isAsyncFunction,ms as isBoolean,r as isClient,os as isDate,L as isDef,P as isElement,X as isEmpty,Q as isEnumColor,k as isError,y as isFunction,Y as isHexColor,I as isImageDom,B as isMap,nt as isMobile,e as isNull,da as isNullAndUnDef,b as isNullOrUnDef,la as isNumber,ua as isObjectX,M as isPromise,F as isServer,As as isString,C as isStringLikeJson,xa as isStringLikeKml,ja as isSymbol,Wa as isUnDef,$ as isValidURL,s as isWeakMap,Ra as isWeakSet,Os as isWindow,ns as jquery,v as lighten,Za as mergeNames,Fa as newGuid,xs as onLockListener,qa as parseLocalPath,Ss as post,Ta as recursiveRoutes,Ma as replaceAll,Vs as replaceFileExtension,Pa as requestDelete,Xa as requestGet,ys as requestHead,js as requestOptions,Ba as requestPatch,$a as requestPatchBody,ya as requestPost,Xs as requestPostBody,st as requestPut,Ga as requestPutBody,ws as requestTrace,ka as reserveDecimal,z as rgbToHex,i as sleep,ps as storage,Ws as storageHelper,as as streamFetch,za as streamFetchBlob,Ms as streamFetchLoadImage,Hs as streamFetchText,Ha as streamFetchUploadFile,at as toLowerCaseExtension,ba as traverseXYArrayFromInsideOut,Gs as unLockListener,_s as uuid,_a as verifiyNumberInteger,Ya as verifyAccount,ha as verifyAndSpace,Us as verifyCarNum,Bs as verifyCnAndSpace,Ea as verifyEmail,$s as verifyEnAndSpace,sa as verifyFullName,m as verifyIPAddress,Ys as verifyIdCard,na as verifyNumberCnUppercase,u as verifyNumberComma,d as verifyNumberIntegerAndFloat,R as verifyNumberPercentage,ls as verifyNumberPercentageFloat,n as verifyPassword,rs as verifyPasswordPowerful,K as verifyPasswordStrength,O as verifyPhone,V as verifyPostalCode,j as verifyTelPhone,q as verifyTextColor,H as verifyUrl,w as writeIconifyList,tt as writeSysRoleRight};