UNPKG

ship-view-ui-plus

Version:

A high quality UI components Library with Vue.js 3

24 lines 708 kB
(function(T,t){typeof exports=="object"&&typeof module!="undefined"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(T=typeof globalThis!="undefined"?globalThis:T||self,t(T.ViewUIPlus={},T.Vue))})(this,function(T,t){"use strict";const Y=typeof window!="undefined",ke=function(){return Y&&document.addEventListener?function(e,n,i,l=!1){e&&n&&i&&e.addEventListener(n,i,l)}:function(e,n,i){e&&n&&i&&e.attachEvent("on"+n,i)}}(),we=function(){return Y&&document.removeEventListener?function(e,n,i,l=!1){e&&n&&e.removeEventListener(n,i,l)}:function(e,n,i){e&&n&&e.detachEvent("on"+n,i)}}();var E=(e,n)=>{const i=e.__vccOpts||e;for(const[l,r]of n)i[l]=r;return i};const Ec="ivu-affix";function os(e,n){const i=n?"pageYOffset":"pageXOffset",l=n?"scrollTop":"scrollLeft";let r=e[i];return Y&&typeof r!="number"&&(r=window.document.documentElement[l]),r}function Tc(e){if(!Y)return;const n=e.getBoundingClientRect(),i=os(window,!0),l=os(window),r=window.document.body,s=r.clientTop||0,a=r.clientLeft||0;return{top:n.top+i-s,left:n.left+l-a}}const Nc={name:"Affix",emits:["on-change"],props:{offsetTop:{type:Number,default:0},offsetBottom:{type:Number},useCapture:{type:Boolean,default:!1}},data(){return{affix:!1,styles:{},slot:!1,slotStyle:{}}},computed:{offsetType(){let e="top";return this.offsetBottom>=0&&(e="bottom"),e},classes(){return[{[`${Ec}`]:this.affix}]}},mounted(){ke(window,"scroll",this.handleScroll,this.useCapture),ke(window,"resize",this.handleScroll,this.useCapture),t.nextTick(()=>{this.handleScroll()})},beforeUnmount(){we(window,"scroll",this.handleScroll,this.useCapture),we(window,"resize",this.handleScroll,this.useCapture)},methods:{handleScroll(){if(!Y)return;const e=this.affix,n=os(window,!0),i=Tc(this.$el),l=window.innerHeight,r=this.$el.getElementsByTagName("div")[0].offsetHeight;i.top-this.offsetTop<n&&this.offsetType=="top"&&!e?(this.affix=!0,this.slotStyle={width:this.$refs.point.clientWidth+"px",height:this.$refs.point.clientHeight+"px"},this.slot=!0,this.styles={top:`${this.offsetTop}px`,left:`${i.left}px`,width:`${this.$el.offsetWidth}px`},this.$emit("on-change",!0)):i.top-this.offsetTop>n&&this.offsetType=="top"&&e&&(this.slot=!1,this.slotStyle={},this.affix=!1,this.styles=null,this.$emit("on-change",!1)),i.top+this.offsetBottom+r>n+l&&this.offsetType=="bottom"&&!e?(this.affix=!0,this.styles={bottom:`${this.offsetBottom}px`,left:`${i.left}px`,width:`${this.$el.offsetWidth}px`},this.$emit("on-change",!0)):i.top+this.offsetBottom+r<n+l&&this.offsetType=="bottom"&&e&&(this.affix=!1,this.styles=null,this.$emit("on-change",!1))}}};function Ic(e,n,i,l,r,s){return t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",{ref:"point",class:t.normalizeClass(s.classes),style:t.normalizeStyle(r.styles)},[t.renderSlot(e.$slots,"default")],6),t.withDirectives(t.createElementVNode("div",{style:t.normalizeStyle(r.slotStyle)},null,4),[[t.vShow,r.slot]])])}var Nr=E(Nc,[["render",Ic]]);const Ir="ivu-icon",_c={name:"Icon",props:{type:{type:String,default:""},size:[Number,String],color:String,custom:{type:String,default:""}},computed:{classes(){return[`${Ir}`,{[`${Ir}-${this.type}`]:this.type!=="",[`${this.custom}`]:this.custom!==""}]},styles(){let e={};return this.size&&(e["font-size"]=`${this.size}px`),this.color&&(e.color=this.color),e}}};function Dc(e,n,i,l,r,s){return t.openBlock(),t.createElementBlock("i",{class:t.normalizeClass(s.classes),style:t.normalizeStyle(s.styles)},null,6)}var oe=E(_c,[["render",Dc]]);function I(e,n){for(let i=0;i<n.length;i++)if(e===n[i])return!0;return!1}let cs;function _r(e){if(Y&&(e||cs===void 0)){const n=document.createElement("div");n.style.width="100%",n.style.height="200px";const i=document.createElement("div"),l=i.style;l.position="absolute",l.top=0,l.left=0,l.pointerEvents="none",l.visibility="hidden",l.width="200px",l.height="150px",l.overflow="hidden",i.appendChild(n),document.body.appendChild(i);const r=n.offsetWidth;i.style.overflow="scroll";let s=n.offsetWidth;r===s&&(s=i.clientWidth),document.body.removeChild(i),cs=r-s}return cs}const zc=Y&&(window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver)||!1,Pc=/([\:\-\_]+(.))/g,$c=/^moz([A-Z])/;function Mc(e){return e.replace(Pc,function(n,i,l,r){return r?l.toUpperCase():l}).replace($c,"Moz$1")}function ft(e,n){if(!!Y){if(!e||!n)return null;n=Mc(n),n==="float"&&(n="cssFloat");try{const i=document.defaultView.getComputedStyle(e,"");return e.style[n]||i?i[n]:null}catch{return e.style[n]}}}function Oc(e){return e.toString()[0].toUpperCase()+e.toString().slice(1)}function Lc(e){return{"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Undefined]":"undefined","[object Null]":"null","[object Object]":"object"}[Object.prototype.toString.call(e)]}function Se(e){const n=Lc(e);let i;if(n==="array")i=[];else if(n==="object")i={};else return e;if(n==="array")for(let l=0;l<e.length;l++)i.push(Se(e[l]));else if(n==="object")for(let l in e)i[l]=Se(e[l]);return i}function ds(e,n=0,i,l=500,r){if(!Y)return;window.requestAnimationFrame||(window.requestAnimationFrame=window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(d){return window.setTimeout(d,1e3/60)});const s=Math.abs(n-i),a=Math.ceil(s/l*50);function o(d,c,h){if(d===c){r&&r();return}let m=d+h>c?c:d+h;d>c&&(m=d-h<c?c:d-h),e===window?window.scrollTo(m,m):e.scrollTop=m,window.requestAnimationFrame(()=>o(m,c,h))}o(n,i,a)}function Le(e,n,i){typeof n=="string"?i=[n]:i=n;let l=e.$parent,r=l.$options.name;for(;l&&(!r||i.indexOf(r)<0);)l=l.$parent,l&&(r=l.$options.name);return l}function ui(e,n){let i=[];const l=e.$parent;return l?(l.$options.name===n&&i.push(l),i.concat(ui(l,n))):[]}const Fc=function(e){return(e||"").replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g,"")};function Dr(e,n){if(!e||!n)return!1;if(n.indexOf(" ")!==-1)throw new Error("className should not contain space.");return e.classList?e.classList.contains(n):(" "+e.className+" ").indexOf(" "+n+" ")>-1}function hs(e,n){if(!e)return;let i=e.className;const l=(n||"").split(" ");for(let r=0,s=l.length;r<s;r++){const a=l[r];!a||(e.classList?e.classList.add(a):Dr(e,a)||(i+=" "+a))}e.classList||(e.className=i)}function fs(e,n){if(!e||!n)return;const i=n.split(" ");let l=" "+e.className+" ";for(let r=0,s=i.length;r<s;r++){const a=i[r];!a||(e.classList?e.classList.remove(a):Dr(e,a)&&(l=l.replace(" "+a+" "," ")))}e.classList||(e.className=Fc(l))}const Ac={xs:"480px",sm:"576px",md:"768px",lg:"992px",xl:"1200px",xxl:"1600px"};function Rc(){if(!Y)return;const e=n=>({media:n,matches:!1,on(){},off(){}});window.matchMedia=window.matchMedia||e}const Hc=/#([^#]+)$/;async function Wc(e,n="unnamed"){if(!Y)return Promise.reject();try{const l=await(await fetch(e)).blob();if(!l)return Promise.reject();const r=URL.createObjectURL(l),s=document.createElement("a");return s.setAttribute("href",r),s.setAttribute("download",n),s.click(),URL.revokeObjectURL(r),Promise.resolve()}catch(i){return Promise.reject(i)}}const wt="ivu-alert",Uc={name:"Alert",components:{Icon:oe},props:{type:{validator(e){return I(e,["success","info","warning","error"])},default:"info"},closable:{type:Boolean,default:!1},showIcon:{type:Boolean,default:!1},banner:{type:Boolean,default:!1},fade:{type:Boolean,default:!0}},data(){return{closed:!1,desc:!1}},computed:{wrapClasses(){return[`${wt}`,`${wt}-${this.type}`,{[`${wt}-with-icon`]:this.showIcon,[`${wt}-with-desc`]:this.desc,[`${wt}-with-banner`]:this.banner}]},messageClasses(){return`${wt}-message`},descClasses(){return`${wt}-desc`},closeClasses(){return`${wt}-close`},iconClasses(){return`${wt}-icon`},iconType(){let e="";switch(this.type){case"success":e="ios-checkmark-circle";break;case"info":e="ios-information-circle";break;case"warning":e="ios-alert";break;case"error":e="ios-close-circle";break}return this.desc&&(e+="-outline"),e}},methods:{close(e){this.closed=!0,this.$emit("on-close",e)}},mounted(){this.desc=this.$slots.desc!==void 0}};function vc(e,n,i,l,r,s){const a=t.resolveComponent("Icon");return t.openBlock(),t.createBlock(t.Transition,{name:i.fade?"fade":""},{default:t.withCtx(()=>[r.closed?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(s.wrapClasses)},[i.showIcon?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(s.iconClasses)},[t.renderSlot(e.$slots,"icon",{},()=>[t.createVNode(a,{type:s.iconType},null,8,["type"])])],2)):t.createCommentVNode("",!0),t.createElementVNode("span",{class:t.normalizeClass(s.messageClasses)},[t.renderSlot(e.$slots,"default")],2),t.createElementVNode("span",{class:t.normalizeClass(s.descClasses)},[t.renderSlot(e.$slots,"desc")],2),i.closable?(t.openBlock(),t.createElementBlock("a",{key:1,class:t.normalizeClass(s.closeClasses),onClick:n[0]||(n[0]=(...o)=>s.close&&s.close(...o))},[t.renderSlot(e.$slots,"close",{},()=>[t.createVNode(a,{type:"ios-close"})])],2)):t.createCommentVNode("",!0)],2))]),_:3},8,["name"])}var zr=E(Uc,[["render",vc]]);const jc={name:"Anchor",provide(){return{AnchorInstance:this}},emits:["on-change","on-select"],props:{affix:{type:Boolean,default:!0},offsetTop:{type:Number,default:0},offsetBottom:Number,bounds:{type:Number,default:5},container:null,showInk:{type:Boolean,default:!1},scrollOffset:{type:Number,default:0}},data(){return{prefix:"ivu-anchor",isAffixed:!1,inkTop:0,animating:!1,currentLink:"",currentId:"",scrollContainer:null,scrollElement:null,wrapperTop:0,upperFirstTitle:!0,links:[]}},computed:{wrapperComponent(){return this.affix?"Affix":"div"},wrapperStyle(){return{maxHeight:this.offsetTop?`calc(100vh - ${this.offsetTop}px)`:"100vh"}},containerIsWindow(){return this.scrollContainer===window},titlesOffsetArr(){const n=this.links.map(l=>l.link.href).map(l=>l.split("#")[1]);let i=[];return Y&&n.forEach(l=>{const r=document.getElementById(l);r&&i.push({link:`#${l}`,offset:r.offsetTop-this.scrollElement.offsetTop})}),i}},methods:{handleAffixStateChange(e){this.isAffixed=this.affix&&e},handleScroll(e){if(this.upperFirstTitle=!!this.titlesOffsetArr[0]&&e.target.scrollTop<this.titlesOffsetArr[0].offset,this.animating)return;const n=Y?document.documentElement.scrollTop||document.body.scrollTop||e.target.scrollTop:0;this.getCurrentScrollAtTitleId(n)},handleHashChange(){if(!Y)return;const e=window.location.href,n=Hc.exec(e);!n||(this.currentLink=n[0],this.currentId=n[1])},handleScrollTo(){if(!Y)return;const e=document.getElementById(this.currentId),n=document.querySelector(`a[data-href="${this.currentLink}"]`);let i=this.scrollOffset;if(n&&(i=parseFloat(n.getAttribute("data-scroll-offset"))),!e)return;const l=e.offsetTop-this.wrapperTop-i;this.animating=!0,ds(this.scrollContainer,this.scrollElement.scrollTop,l,600,()=>{this.animating=!1}),this.handleSetInkTop()},handleSetInkTop(){if(!Y)return;const e=document.querySelector(`a[data-href="${this.currentLink}"]`);if(!e)return;const n=e.offsetTop,i=n<0?this.offsetTop:n;this.inkTop=i},getCurrentScrollAtTitleId(e){let n=-1,i=this.titlesOffsetArr.length,l={link:"#",offset:0};for(e+=this.bounds;++n<i;){let r=this.titlesOffsetArr[n],s=this.titlesOffsetArr[n+1];if(e>=r.offset&&e<(s&&s.offset||1/0)){l=this.titlesOffsetArr[n];break}}this.currentLink=l.link,this.handleSetInkTop()},getContainer(){!Y||(this.scrollContainer=this.container?typeof this.container=="string"?document.querySelector(this.container):this.container:window,this.scrollElement=this.container?this.scrollContainer:document.documentElement||document.body)},removeListener(){we(this.scrollContainer,"scroll",this.handleScroll),we(window,"hashchange",this.handleHashChange)},init(){this.handleHashChange(),t.nextTick(()=>{this.removeListener(),this.getContainer(),this.wrapperTop=this.containerIsWindow?0:this.scrollElement.offsetTop,this.handleScrollTo(),this.handleSetInkTop(),this.titlesOffsetArr[0]&&(this.upperFirstTitle=this.scrollElement.scrollTop<this.titlesOffsetArr[0].offset),ke(this.scrollContainer,"scroll",this.handleScroll),ke(window,"hashchange",this.handleHashChange)})},addLink(e,n){this.links.push({id:e,link:n})},removeLink(e){const n=this.links.findIndex(i=>i.id===e);this.links.splice(n,1)}},watch:{$route(){this.currentLink="",this.currentId="",this.handleHashChange(),t.nextTick(()=>{this.handleScrollTo()})},container(){this.init()},currentLink(e,n){this.$emit("on-change",e,n)}},mounted(){this.init()},beforeUnmount(){this.removeListener()}};function Kc(e,n,i,l,r,s){return t.openBlock(),t.createBlock(t.resolveDynamicComponent(s.wrapperComponent),{"offset-top":i.offsetTop,"offset-bottom":i.offsetBottom,onOnChange:s.handleAffixStateChange},{default:t.withCtx(()=>[t.createElementVNode("div",{class:t.normalizeClass(`${r.prefix}-wrapper`),style:t.normalizeStyle(s.wrapperStyle)},[t.createElementVNode("div",{class:t.normalizeClass(`${r.prefix}`)},[t.createElementVNode("div",{class:t.normalizeClass(`${r.prefix}-ink`)},[t.withDirectives(t.createElementVNode("span",{class:t.normalizeClass(`${r.prefix}-ink-ball`),style:t.normalizeStyle({top:`${r.inkTop}px`})},null,6),[[t.vShow,i.showInk]])],2),t.renderSlot(e.$slots,"default")],2)],6)]),_:3},40,["offset-top","offset-bottom","onOnChange"])}var Pr=E(jc,[["render",Kc]]);function Pe(e=32){const n="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890",i=n.length;let l="";for(let r=0;r<e;r++)l+=n.charAt(Math.floor(Math.random()*i));return l}const qc={name:"AnchorLink",inject:["AnchorInstance"],props:{href:String,title:String,scrollOffset:{type:Number,default(){return t.inject("AnchorInstance").scrollOffset}}},data(){return{prefix:"ivu-anchor-link",id:Pe(6)}},computed:{anchorLinkClasses(){return[this.prefix,this.AnchorInstance.currentLink===this.href?`${this.prefix}-active`:""]},linkTitleClasses(){return[`${this.prefix}-title`]}},methods:{goAnchor(){this.currentLink=this.href,this.AnchorInstance.handleHashChange(),this.AnchorInstance.handleScrollTo(),this.AnchorInstance.$emit("on-select",this.href),this.$router?this.$router.push(this.href,()=>{}):Y&&(window.location.href=this.href)}},mounted(){this.AnchorInstance.addLink(this.id,this),t.nextTick(()=>{this.AnchorInstance.init()})},beforeUnmount(){this.AnchorInstance.removeLink(this.id)}},Yc=["href","data-scroll-offset","data-href","title"];function Gc(e,n,i,l,r,s){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(s.anchorLinkClasses)},[t.createElementVNode("a",{class:t.normalizeClass(s.linkTitleClasses),href:i.href,"data-scroll-offset":i.scrollOffset,"data-href":i.href,onClick:n[0]||(n[0]=t.withModifiers((...a)=>s.goAnchor&&s.goAnchor(...a),["prevent"])),title:i.title},t.toDisplayString(i.title),11,Yc),t.renderSlot(e.$slots,"default")],2)}var $r=E(qc,[["render",Gc]]),Jt={props:{to:{type:[Object,String]},replace:{type:Boolean,default:!1},target:{type:String,validator(e){return I(e,["_blank","_self","_parent","_top"])},default:"_self"},append:{type:Boolean,required:!1,default:!1}},computed:{linkUrl(){if(typeof this.to!=="string")return null;if(this.to.includes("//"))return this.to;const n=this.$router;if(n){const i=this.$route,l=n.resolve(this.to,i,this.append);return l?l.href:this.to}return this.to}},methods:{handleOpenTo(){if(!Y)return;const e=this.$router;let n=this.to;if(e){const i=this.$route,l=e.resolve(this.to,i,this.append);n=l?l.href:this.to}typeof this.to!="string"&&window.open(n)},handleClick(e=!1){const n=this.$router;!Y||(e?this.handleOpenTo():n?typeof this.to=="string"&&this.to.includes("//")?window.location.href=this.to:this.replace?this.$router.replace(this.to,()=>{}):this.$router.push(this.to,()=>{}):window.location.href=this.to)},handleCheckClick(e,n=!1){if(this.to){if(this.target==="_blank")return this.handleOpenTo(),!1;e.preventDefault(),this.handleClick(n)}}}};function Jc(e,n){let i=!1;return n.forEach(l=>{e.includes(l)&&(i=!0)}),i}const Mr={name:"Auth",mixins:[Jt],emits:["click"],props:{authority:{type:[String,Array,Function,Boolean],default:!0},access:{type:[String,Array]},prevent:{type:Boolean,default:!1},message:{type:String,default:"\u60A8\u6CA1\u6709\u6743\u9650\u8FDB\u884C\u6B64\u64CD\u4F5C"},customTip:{type:Boolean,default:!1},display:{type:String}},computed:{isPermission(){let e;if(typeof this.authority=="boolean")e=this.authority;else if(this.authority instanceof Function)e=this.authority();else{const n=typeof this.authority=="string"?[this.authority]:this.authority,i=typeof this.access=="string"?[this.access]:this.access;e=Jc(n,i)}return e},options(){let e={};return this.display&&(e.display=this.display),{class:{"ivu-auth":!0,"ivu-auth-permission":this.isPermission,"ivu-auth-no-math":!this.isPermission,"ivu-auth-redirect":!this.isPermission&&this.to,"ivu-auth-prevent":this.prevent},style:e}}},render(){return this.isPermission?t.h("div",this.options,this.$slots.default()):this.to?t.h("div",this.options):this.prevent?t.h("div",Object.assign({},this.options,{onClick:this.handlePreventClick}),[t.h("div",{class:"ivu-auth-prevent-no-match"},this.$slots.default())]):t.h("div",this.options,this.$slots.noMatch())},methods:{handlePreventClick(e){this.isPermission||(this.customTip||this.$Message.info({content:this.message,duration:3}),this.$emit("click",e))}},created(){!this.isPermission&&this.to&&this.handleClick(!1)}};var St=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Xc(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Or={exports:{}};/**! * @fileOverview Kickass library to create and place poppers near their reference elements. * @version 1.16.1 * @license * Copyright (c) 2016 Federico Zivolo and contributors * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */(function(e,n){(function(i,l){e.exports=l()})(St,function(){var i=typeof window!="undefined"&&typeof document!="undefined"&&typeof navigator!="undefined",l=function(){for(var f=["Edge","Trident","Firefox"],y=0;y<f.length;y+=1)if(i&&navigator.userAgent.indexOf(f[y])>=0)return 1;return 0}();function r(f){var y=!1;return function(){y||(y=!0,window.Promise.resolve().then(function(){y=!1,f()}))}}function s(f){var y=!1;return function(){y||(y=!0,setTimeout(function(){y=!1,f()},l))}}var a=i&&window.Promise,o=a?r:s;function d(f){var y={};return f&&y.toString.call(f)==="[object Function]"}function c(f,y){if(f.nodeType!==1)return[];var w=f.ownerDocument.defaultView,B=w.getComputedStyle(f,null);return y?B[y]:B}function h(f){return f.nodeName==="HTML"?f:f.parentNode||f.host}function m(f){if(!f)return document.body;switch(f.nodeName){case"HTML":case"BODY":return f.ownerDocument.body;case"#document":return f.body}var y=c(f),w=y.overflow,B=y.overflowX,P=y.overflowY;return/(auto|scroll|overlay)/.test(w+P+B)?f:m(h(f))}function C(f){return f&&f.referenceNode?f.referenceNode:f}var b=i&&!!(window.MSInputMethodContext&&document.documentMode),k=i&&/MSIE 10/.test(navigator.userAgent);function u(f){return f===11?b:f===10?k:b||k}function V(f){if(!f)return document.documentElement;for(var y=u(10)?document.body:null,w=f.offsetParent||null;w===y&&f.nextElementSibling;)w=(f=f.nextElementSibling).offsetParent;var B=w&&w.nodeName;return!B||B==="BODY"||B==="HTML"?f?f.ownerDocument.documentElement:document.documentElement:["TH","TD","TABLE"].indexOf(w.nodeName)!==-1&&c(w,"position")==="static"?V(w):w}function z(f){var y=f.nodeName;return y==="BODY"?!1:y==="HTML"||V(f.firstElementChild)===f}function v(f){return f.parentNode!==null?v(f.parentNode):f}function X(f,y){if(!f||!f.nodeType||!y||!y.nodeType)return document.documentElement;var w=f.compareDocumentPosition(y)&Node.DOCUMENT_POSITION_FOLLOWING,B=w?f:y,P=w?y:f,D=document.createRange();D.setStart(B,0),D.setEnd(P,0);var M=D.commonAncestorContainer;if(f!==M&&y!==M||B.contains(P))return z(M)?M:V(M);var W=v(f);return W.host?X(W.host,y):X(f,v(y).host)}function _(f){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"top",w=y==="top"?"scrollTop":"scrollLeft",B=f.nodeName;if(B==="BODY"||B==="HTML"){var P=f.ownerDocument.documentElement,D=f.ownerDocument.scrollingElement||P;return D[w]}return f[w]}function x(f,y){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,B=_(y,"top"),P=_(y,"left"),D=w?-1:1;return f.top+=B*D,f.bottom+=B*D,f.left+=P*D,f.right+=P*D,f}function F(f,y){var w=y==="x"?"Left":"Top",B=w==="Left"?"Right":"Bottom";return parseFloat(f["border"+w+"Width"])+parseFloat(f["border"+B+"Width"])}function N(f,y,w,B){return Math.max(y["offset"+f],y["scroll"+f],w["client"+f],w["offset"+f],w["scroll"+f],u(10)?parseInt(w["offset"+f])+parseInt(B["margin"+(f==="Height"?"Top":"Left")])+parseInt(B["margin"+(f==="Height"?"Bottom":"Right")]):0)}function J(f){var y=f.body,w=f.documentElement,B=u(10)&&getComputedStyle(w);return{height:N("Height",y,w,B),width:N("Width",y,w,B)}}var G=function(f,y){if(!(f instanceof y))throw new TypeError("Cannot call a class as a function")},j=function(){function f(y,w){for(var B=0;B<w.length;B++){var P=w[B];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(y,P.key,P)}}return function(y,w,B){return w&&f(y.prototype,w),B&&f(y,B),y}}(),me=function(f,y,w){return y in f?Object.defineProperty(f,y,{value:w,enumerable:!0,configurable:!0,writable:!0}):f[y]=w,f},Z=Object.assign||function(f){for(var y=1;y<arguments.length;y++){var w=arguments[y];for(var B in w)Object.prototype.hasOwnProperty.call(w,B)&&(f[B]=w[B])}return f};function L(f){return Z({},f,{right:f.left+f.width,bottom:f.top+f.height})}function A(f){var y={};try{if(u(10)){y=f.getBoundingClientRect();var w=_(f,"top"),B=_(f,"left");y.top+=w,y.left+=B,y.bottom+=w,y.right+=B}else y=f.getBoundingClientRect()}catch{}var P={left:y.left,top:y.top,width:y.right-y.left,height:y.bottom-y.top},D=f.nodeName==="HTML"?J(f.ownerDocument):{},M=D.width||f.clientWidth||P.width,W=D.height||f.clientHeight||P.height,q=f.offsetWidth-M,ie=f.offsetHeight-W;if(q||ie){var le=c(f);q-=F(le,"x"),ie-=F(le,"y"),P.width-=q,P.height-=ie}return L(P)}function R(f,y){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,B=u(10),P=y.nodeName==="HTML",D=A(f),M=A(y),W=m(f),q=c(y),ie=parseFloat(q.borderTopWidth),le=parseFloat(q.borderLeftWidth);w&&P&&(M.top=Math.max(M.top,0),M.left=Math.max(M.left,0));var Q=L({top:D.top-M.top-ie,left:D.left-M.left-le,width:D.width,height:D.height});if(Q.marginTop=0,Q.marginLeft=0,!B&&P){var fe=parseFloat(q.marginTop),he=parseFloat(q.marginLeft);Q.top-=ie-fe,Q.bottom-=ie-fe,Q.left-=le-he,Q.right-=le-he,Q.marginTop=fe,Q.marginLeft=he}return(B&&!w?y.contains(W):y===W&&W.nodeName!=="BODY")&&(Q=x(Q,y)),Q}function ne(f){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,w=f.ownerDocument.documentElement,B=R(f,w),P=Math.max(w.clientWidth,window.innerWidth||0),D=Math.max(w.clientHeight,window.innerHeight||0),M=y?0:_(w),W=y?0:_(w,"left"),q={top:M-B.top+B.marginTop,left:W-B.left+B.marginLeft,width:P,height:D};return L(q)}function K(f){var y=f.nodeName;if(y==="BODY"||y==="HTML")return!1;if(c(f,"position")==="fixed")return!0;var w=h(f);return w?K(w):!1}function ae(f){if(!f||!f.parentElement||u())return document.documentElement;for(var y=f.parentElement;y&&c(y,"transform")==="none";)y=y.parentElement;return y||document.documentElement}function se(f,y,w,B){var P=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,D={top:0,left:0},M=P?ae(f):X(f,C(y));if(B==="viewport")D=ne(M,P);else{var W=void 0;B==="scrollParent"?(W=m(h(y)),W.nodeName==="BODY"&&(W=f.ownerDocument.documentElement)):B==="window"?W=f.ownerDocument.documentElement:W=B;var q=R(W,M,P);if(W.nodeName==="HTML"&&!K(M)){var ie=J(f.ownerDocument),le=ie.height,Q=ie.width;D.top+=q.top-q.marginTop,D.bottom=le+q.top,D.left+=q.left-q.marginLeft,D.right=Q+q.left}else D=q}w=w||0;var fe=typeof w=="number";return D.left+=fe?w:w.left||0,D.top+=fe?w:w.top||0,D.right-=fe?w:w.right||0,D.bottom-=fe?w:w.bottom||0,D}function te(f){var y=f.width,w=f.height;return y*w}function be(f,y,w,B,P){var D=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(f.indexOf("auto")===-1)return f;var M=se(w,B,D,P),W={top:{width:M.width,height:y.top-M.top},right:{width:M.right-y.right,height:M.height},bottom:{width:M.width,height:M.bottom-y.bottom},left:{width:y.left-M.left,height:M.height}},q=Object.keys(W).map(function(fe){return Z({key:fe},W[fe],{area:te(W[fe])})}).sort(function(fe,he){return he.area-fe.area}),ie=q.filter(function(fe){var he=fe.width,ue=fe.height;return he>=w.clientWidth&&ue>=w.clientHeight}),le=ie.length>0?ie[0].key:q[0].key,Q=f.split("-")[1];return le+(Q?"-"+Q:"")}function de(f,y,w){var B=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,P=B?ae(y):X(y,C(w));return R(w,P,B)}function Ee(f){var y=f.ownerDocument.defaultView,w=y.getComputedStyle(f),B=parseFloat(w.marginTop||0)+parseFloat(w.marginBottom||0),P=parseFloat(w.marginLeft||0)+parseFloat(w.marginRight||0),D={width:f.offsetWidth+P,height:f.offsetHeight+B};return D}function He(f){var y={left:"right",right:"left",bottom:"top",top:"bottom"};return f.replace(/left|right|bottom|top/g,function(w){return y[w]})}function xe(f,y,w){w=w.split("-")[0];var B=Ee(f),P={width:B.width,height:B.height},D=["right","left"].indexOf(w)!==-1,M=D?"top":"left",W=D?"left":"top",q=D?"height":"width",ie=D?"width":"height";return P[M]=y[M]+y[q]/2-B[q]/2,w===W?P[W]=y[W]-B[ie]:P[W]=y[He(W)],P}function Me(f,y){return Array.prototype.find?f.find(y):f.filter(y)[0]}function rt(f,y,w){if(Array.prototype.findIndex)return f.findIndex(function(P){return P[y]===w});var B=Me(f,function(P){return P[y]===w});return f.indexOf(B)}function Ye(f,y,w){var B=w===void 0?f:f.slice(0,rt(f,"name",w));return B.forEach(function(P){P.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var D=P.function||P.fn;P.enabled&&d(D)&&(y.offsets.popper=L(y.offsets.popper),y.offsets.reference=L(y.offsets.reference),y=D(y,P))}),y}function H(){if(!this.state.isDestroyed){var f={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};f.offsets.reference=de(this.state,this.popper,this.reference,this.options.positionFixed),f.placement=be(this.options.placement,f.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),f.originalPlacement=f.placement,f.positionFixed=this.options.positionFixed,f.offsets.popper=xe(this.popper,f.offsets.reference,f.placement),f.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",f=Ye(this.modifiers,f),this.state.isCreated?this.options.onUpdate(f):(this.state.isCreated=!0,this.options.onCreate(f))}}function re(f,y){return f.some(function(w){var B=w.name,P=w.enabled;return P&&B===y})}function ye(f){for(var y=[!1,"ms","Webkit","Moz","O"],w=f.charAt(0).toUpperCase()+f.slice(1),B=0;B<y.length;B++){var P=y[B],D=P?""+P+w:f;if(typeof document.body.style[D]!="undefined")return D}return null}function Oe(){return this.state.isDestroyed=!0,re(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[ye("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function p(f){var y=f.ownerDocument;return y?y.defaultView:window}function S(f,y,w,B){var P=f.nodeName==="BODY",D=P?f.ownerDocument.defaultView:f;D.addEventListener(y,w,{passive:!0}),P||S(m(D.parentNode),y,w,B),B.push(D)}function g(f,y,w,B){w.updateBound=B,p(f).addEventListener("resize",w.updateBound,{passive:!0});var P=m(f);return S(P,"scroll",w.updateBound,w.scrollParents),w.scrollElement=P,w.eventsEnabled=!0,w}function $(){this.state.eventsEnabled||(this.state=g(this.reference,this.options,this.state,this.scheduleUpdate))}function O(f,y){return p(f).removeEventListener("resize",y.updateBound),y.scrollParents.forEach(function(w){w.removeEventListener("scroll",y.updateBound)}),y.updateBound=null,y.scrollParents=[],y.scrollElement=null,y.eventsEnabled=!1,y}function U(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=O(this.reference,this.state))}function ce(f){return f!==""&&!isNaN(parseFloat(f))&&isFinite(f)}function pe(f,y){Object.keys(y).forEach(function(w){var B="";["width","height","top","right","bottom","left"].indexOf(w)!==-1&&ce(y[w])&&(B="px"),f.style[w]=y[w]+B})}function Ce(f,y){Object.keys(y).forEach(function(w){var B=y[w];B!==!1?f.setAttribute(w,y[w]):f.removeAttribute(w)})}function _e(f){return pe(f.instance.popper,f.styles),Ce(f.instance.popper,f.attributes),f.arrowElement&&Object.keys(f.arrowStyles).length&&pe(f.arrowElement,f.arrowStyles),f}function kt(f,y,w,B,P){var D=de(P,y,f,w.positionFixed),M=be(w.placement,D,y,f,w.modifiers.flip.boundariesElement,w.modifiers.flip.padding);return y.setAttribute("x-placement",M),pe(y,{position:w.positionFixed?"fixed":"absolute"}),w}function Re(f,y){var w=f.offsets,B=w.popper,P=w.reference,D=Math.round,M=Math.floor,W=function(Gt){return Gt},q=D(P.width),ie=D(B.width),le=["left","right"].indexOf(f.placement)!==-1,Q=f.placement.indexOf("-")!==-1,fe=q%2===ie%2,he=q%2===1&&ie%2===1,ue=y?le||Q||fe?D:M:W,Ne=y?D:W;return{left:ue(he&&!Q&&y?B.left-1:B.left),top:Ne(B.top),bottom:Ne(B.bottom),right:ue(B.right)}}var ss=i&&/Firefox/i.test(navigator.userAgent);function rs(f,y){var w=y.x,B=y.y,P=f.offsets.popper,D=Me(f.instance.modifiers,function(dn){return dn.name==="applyStyle"}).gpuAcceleration;D!==void 0&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var M=D!==void 0?D:y.gpuAcceleration,W=V(f.instance.popper),q=A(W),ie={position:P.position},le=Re(f,window.devicePixelRatio<2||!ss),Q=w==="bottom"?"top":"bottom",fe=B==="right"?"left":"right",he=ye("transform"),ue=void 0,Ne=void 0;if(Q==="bottom"?W.nodeName==="HTML"?Ne=-W.clientHeight+le.bottom:Ne=-q.height+le.bottom:Ne=le.top,fe==="right"?W.nodeName==="HTML"?ue=-W.clientWidth+le.right:ue=-q.width+le.right:ue=le.left,M&&he)ie[he]="translate3d("+ue+"px, "+Ne+"px, 0)",ie[Q]=0,ie[fe]=0,ie.willChange="transform";else{var _t=Q==="bottom"?-1:1,Gt=fe==="right"?-1:1;ie[Q]=Ne*_t,ie[fe]=ue*Gt,ie.willChange=Q+", "+fe}var lt={"x-placement":f.placement};return f.attributes=Z({},lt,f.attributes),f.styles=Z({},ie,f.styles),f.arrowStyles=Z({},f.offsets.arrow,f.arrowStyles),f}function hi(f,y,w){var B=Me(f,function(W){var q=W.name;return q===y}),P=!!B&&f.some(function(W){return W.name===w&&W.enabled&&W.order<B.order});if(!P){var D="`"+y+"`",M="`"+w+"`";console.warn(M+" modifier is required by "+D+" modifier in order to work, be sure to include it before "+D+"!")}return P}function ze(f,y){var w;if(!hi(f.instance.modifiers,"arrow","keepTogether"))return f;var B=y.element;if(typeof B=="string"){if(B=f.instance.popper.querySelector(B),!B)return f}else if(!f.instance.popper.contains(B))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),f;var P=f.placement.split("-")[0],D=f.offsets,M=D.popper,W=D.reference,q=["left","right"].indexOf(P)!==-1,ie=q?"height":"width",le=q?"Top":"Left",Q=le.toLowerCase(),fe=q?"left":"top",he=q?"bottom":"right",ue=Ee(B)[ie];W[he]-ue<M[Q]&&(f.offsets.popper[Q]-=M[Q]-(W[he]-ue)),W[Q]+ue>M[he]&&(f.offsets.popper[Q]+=W[Q]+ue-M[he]),f.offsets.popper=L(f.offsets.popper);var Ne=W[Q]+W[ie]/2-ue/2,_t=c(f.instance.popper),Gt=parseFloat(_t["margin"+le]),lt=parseFloat(_t["border"+le+"Width"]),dn=Ne-f.offsets.popper[Q]-Gt-lt;return dn=Math.max(Math.min(M[ie]-ue,dn),0),f.arrowElement=B,f.offsets.arrow=(w={},me(w,Q,Math.round(dn)),me(w,fe,""),w),f}function dt(f){return f==="end"?"start":f==="start"?"end":f}var It=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],ht=It.slice(3);function ls(f){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,w=ht.indexOf(f),B=ht.slice(w+1).concat(ht.slice(0,w));return y?B.reverse():B}var Yt={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function Er(f,y){if(re(f.instance.modifiers,"inner")||f.flipped&&f.placement===f.originalPlacement)return f;var w=se(f.instance.popper,f.instance.reference,y.padding,y.boundariesElement,f.positionFixed),B=f.placement.split("-")[0],P=He(B),D=f.placement.split("-")[1]||"",M=[];switch(y.behavior){case Yt.FLIP:M=[B,P];break;case Yt.CLOCKWISE:M=ls(B);break;case Yt.COUNTERCLOCKWISE:M=ls(B,!0);break;default:M=y.behavior}return M.forEach(function(W,q){if(B!==W||M.length===q+1)return f;B=f.placement.split("-")[0],P=He(B);var ie=f.offsets.popper,le=f.offsets.reference,Q=Math.floor,fe=B==="left"&&Q(ie.right)>Q(le.left)||B==="right"&&Q(ie.left)<Q(le.right)||B==="top"&&Q(ie.bottom)>Q(le.top)||B==="bottom"&&Q(ie.top)<Q(le.bottom),he=Q(ie.left)<Q(w.left),ue=Q(ie.right)>Q(w.right),Ne=Q(ie.top)<Q(w.top),_t=Q(ie.bottom)>Q(w.bottom),Gt=B==="left"&&he||B==="right"&&ue||B==="top"&&Ne||B==="bottom"&&_t,lt=["top","bottom"].indexOf(B)!==-1,dn=!!y.flipVariations&&(lt&&D==="start"&&he||lt&&D==="end"&&ue||!lt&&D==="start"&&Ne||!lt&&D==="end"&&_t),WS=!!y.flipVariationsByContent&&(lt&&D==="start"&&ue||lt&&D==="end"&&he||!lt&&D==="start"&&_t||!lt&&D==="end"&&Ne),Vc=dn||WS;(fe||Gt||Vc)&&(f.flipped=!0,(fe||Gt)&&(B=M[q+1]),Vc&&(D=dt(D)),f.placement=B+(D?"-"+D:""),f.offsets.popper=Z({},f.offsets.popper,xe(f.instance.popper,f.offsets.reference,f.placement)),f=Ye(f.instance.modifiers,f,"flip"))}),f}function fi(f){var y=f.offsets,w=y.popper,B=y.reference,P=f.placement.split("-")[0],D=Math.floor,M=["top","bottom"].indexOf(P)!==-1,W=M?"right":"bottom",q=M?"left":"top",ie=M?"width":"height";return w[W]<D(B[q])&&(f.offsets.popper[q]=D(B[q])-w[ie]),w[q]>D(B[W])&&(f.offsets.popper[q]=D(B[W])),f}function Tr(f,y,w,B){var P=f.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),D=+P[1],M=P[2];if(!D)return f;if(M.indexOf("%")===0){var W=void 0;switch(M){case"%p":W=w;break;case"%":case"%r":default:W=B}var q=L(W);return q[y]/100*D}else if(M==="vh"||M==="vw"){var ie=void 0;return M==="vh"?ie=Math.max(document.documentElement.clientHeight,window.innerHeight||0):ie=Math.max(document.documentElement.clientWidth,window.innerWidth||0),ie/100*D}else return D}function $S(f,y,w,B){var P=[0,0],D=["right","left"].indexOf(B)!==-1,M=f.split(/(\+|\-)/).map(function(le){return le.trim()}),W=M.indexOf(Me(M,function(le){return le.search(/,|\s/)!==-1}));M[W]&&M[W].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var q=/\s*,\s*|\s+/,ie=W!==-1?[M.slice(0,W).concat([M[W].split(q)[0]]),[M[W].split(q)[1]].concat(M.slice(W+1))]:[M];return ie=ie.map(function(le,Q){var fe=(Q===1?!D:D)?"height":"width",he=!1;return le.reduce(function(ue,Ne){return ue[ue.length-1]===""&&["+","-"].indexOf(Ne)!==-1?(ue[ue.length-1]=Ne,he=!0,ue):he?(ue[ue.length-1]+=Ne,he=!1,ue):ue.concat(Ne)},[]).map(function(ue){return Tr(ue,fe,y,w)})}),ie.forEach(function(le,Q){le.forEach(function(fe,he){ce(fe)&&(P[Q]+=fe*(le[he-1]==="-"?-1:1))})}),P}function MS(f,y){var w=y.offset,B=f.placement,P=f.offsets,D=P.popper,M=P.reference,W=B.split("-")[0],q=void 0;return ce(+w)?q=[+w,0]:q=$S(w,D,M,W),W==="left"?(D.top+=q[0],D.left-=q[1]):W==="right"?(D.top+=q[0],D.left+=q[1]):W==="top"?(D.left+=q[0],D.top-=q[1]):W==="bottom"&&(D.left+=q[0],D.top+=q[1]),f.popper=D,f}function OS(f,y){var w=y.boundariesElement||V(f.instance.popper);f.instance.reference===w&&(w=V(w));var B=ye("transform"),P=f.instance.popper.style,D=P.top,M=P.left,W=P[B];P.top="",P.left="",P[B]="";var q=se(f.instance.popper,f.instance.reference,y.padding,w,f.positionFixed);P.top=D,P.left=M,P[B]=W,y.boundaries=q;var ie=y.priority,le=f.offsets.popper,Q={primary:function(he){var ue=le[he];return le[he]<q[he]&&!y.escapeWithReference&&(ue=Math.max(le[he],q[he])),me({},he,ue)},secondary:function(he){var ue=he==="right"?"left":"top",Ne=le[ue];return le[he]>q[he]&&!y.escapeWithReference&&(Ne=Math.min(le[ue],q[he]-(he==="right"?le.width:le.height))),me({},ue,Ne)}};return ie.forEach(function(fe){var he=["left","top"].indexOf(fe)!==-1?"primary":"secondary";le=Z({},le,Q[he](fe))}),f.offsets.popper=le,f}function LS(f){var y=f.placement,w=y.split("-")[0],B=y.split("-")[1];if(B){var P=f.offsets,D=P.reference,M=P.popper,W=["bottom","top"].indexOf(w)!==-1,q=W?"left":"top",ie=W?"width":"height",le={start:me({},q,D[q]),end:me({},q,D[q]+D[ie]-M[ie])};f.offsets.popper=Z({},M,le[B])}return f}function FS(f){if(!hi(f.instance.modifiers,"hide","preventOverflow"))return f;var y=f.offsets.reference,w=Me(f.instance.modifiers,function(B){return B.name==="preventOverflow"}).boundaries;if(y.bottom<w.top||y.left>w.right||y.top>w.bottom||y.right<w.left){if(f.hide===!0)return f;f.hide=!0,f.attributes["x-out-of-boundaries"]=""}else{if(f.hide===!1)return f;f.hide=!1,f.attributes["x-out-of-boundaries"]=!1}return f}function AS(f){var y=f.placement,w=y.split("-")[0],B=f.offsets,P=B.popper,D=B.reference,M=["left","right"].indexOf(w)!==-1,W=["top","left"].indexOf(w)===-1;return P[M?"left":"top"]=D[w]-(W?P[M?"width":"height"]:0),f.placement=He(y),f.offsets.popper=L(P),f}var RS={shift:{order:100,enabled:!0,fn:LS},offset:{order:200,enabled:!0,fn:MS,offset:0},preventOverflow:{order:300,enabled:!0,fn:OS,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:fi},arrow:{order:500,enabled:!0,fn:ze,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:Er,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:AS},hide:{order:800,enabled:!0,fn:FS},computeStyle:{order:850,enabled:!0,fn:rs,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:_e,onLoad:kt,gpuAcceleration:void 0}},HS={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:RS},as=function(){function f(y,w){var B=this,P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};G(this,f),this.scheduleUpdate=function(){return requestAnimationFrame(B.update)},this.update=o(this.update.bind(this)),this.options=Z({},f.Defaults,P),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=y&&y.jquery?y[0]:y,this.popper=w&&w.jquery?w[0]:w,this.options.modifiers={},Object.keys(Z({},f.Defaults.modifiers,P.modifiers)).forEach(function(M){B.options.modifiers[M]=Z({},f.Defaults.modifiers[M]||{},P.modifiers?P.modifiers[M]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(M){return Z({name:M},B.options.modifiers[M])}).sort(function(M,W){return M.order-W.order}),this.modifiers.forEach(function(M){M.enabled&&d(M.onLoad)&&M.onLoad(B.reference,B.popper,B.options,M,B.state)}),this.update();var D=this.options.eventsEnabled;D&&this.enableEventListeners(),this.state.eventsEnabled=D}return j(f,[{key:"update",value:function(){return H.call(this)}},{key:"destroy",value:function(){return Oe.call(this)}},{key:"enableEventListeners",value:function(){return $.call(this)}},{key:"disableEventListeners",value:function(){return U.call(this)}}]),f}();return as.Utils=(typeof window!="undefined"?window:St).PopperUtils,as.placements=It,as.Defaults=HS,as})})(Or);var Lr=Or.exports;let Dt=0,mi=0;function Xt(){Dt++}function Zc(){mi++}const Qc={name:"Drop",emits:["mouseenter","mouseleave","click"],props:{placement:{type:String,default:"bottom-start"},className:{type:String},transfer:{type:Boolean},eventsEnabled:{type:Boolean,default:!1},visible:{type:Boolean},classes:{type:Object,default:()=>{}},styles:{type:Object,default:()=>{}},transitionName:{type:String,default:"transition-drop"},boundariesElement:{default:"window"}},data(){return{popper:null,width:"",popperStatus:!1,tIndex:this.handleGetIndex()}},computed:{mergedStyle(){let e={};return this.width&&(e.minWidth=`${this.width}px`),this.transfer&&(e["z-index"]=1060+this.tIndex),Object.assign({},this.styles,e)},mergedClass(){return Object.assign({},this.classes,{[this.className]:this.className})}},methods:{update(){t.nextTick(()=>{this.popper?(this.popper.update(),this.popperStatus=!0):this.popper=new Lr(this.$parent.$refs.reference,this.$refs.drop,{eventsEnabled:this.eventsEnabled,placement:this.placement,modifiers:{computeStyle:{gpuAcceleration:!1},preventOverflow:{boundariesElement:this.boundariesElement}},onCreate:()=>{this.resetTransformOrigin(),t.nextTick(this.popper.update())},onUpdate:()=>{this.resetTransformOrigin()}}),this.$parent.$options.name==="iSelect"&&(this.width=parseInt(ft(this.$parent.$el,"width"))),this.tIndex=this.handleGetIndex()})},destroy(){this.popper&&setTimeout(()=>{this.popper&&!this.popperStatus&&(this.popper.popper.style.display="none",this.popper.destroy(),this.popper=null),this.popperStatus=!1},300)},resetTransformOrigin(){if(!this.popper)return;let e=this.popper.popper.getAttribute("x-placement"),n=e.split("-")[0],i=e.split("-")[1];e==="left"||e==="right"||(this.popper.popper.style.transformOrigin=n==="bottom"||n!=="top"&&i==="start"?"center top":"center bottom")},handleGetIndex(){return Xt(),Dt},handleMouseenter(e){this.$emit("mouseenter",e)},handleMouseleave(e){this.$emit("mouseleave",e)},handleOnUpdatePopper(){this.update()},handleOnDestroyPopper(){this.destroy()},handleClick(e){this.$emit("click",e)}},beforeUnmount(){this.popper&&(this.popper.destroy(),this.popper=null)}};function ed(e,n,i,l,r,s){return t.openBlock(),t.createBlock(t.Teleport,{to:"body",disabled:!i.transfer},[t.createVNode(t.Transition,{name:i.transitionName},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",t.mergeProps({class:["ivu-select-dropdown",s.mergedClass],ref:"drop",style:s.mergedStyle},e.$attrs,{onMouseenter:n[0]||(n[0]=(...a)=>s.handleMouseenter&&s.handleMouseenter(...a)),onMouseleave:n[1]||(n[1]=(...a)=>s.handleMouseleave&&s.handleMouseleave(...a)),onClick:n[2]||(n[2]=t.withModifiers((...a)=>s.handleClick&&s.handleClick(...a),["stop"]))}),[t.renderSlot(e.$slots,"default")],16),[[t.vShow,i.visible]])]),_:3},8,["name"])],8,["disabled"])}var hn=E(Qc,[["render",ed]]);function td(e){Y&&typeof window.viewuiplus!="undefined"&&("langs"in viewuiplus||(viewuiplus.langs={}),viewuiplus.langs[e.i.locale]=e)}const us={i:{locale:"zh-CN",select:{placeholder:"\u8BF7\u9009\u62E9",noMatch:"\u65E0\u5339\u914D\u6570\u636E",loading:"\u52A0\u8F7D\u4E2D"},table:{noDataText:"\u6682\u65E0\u6570\u636E",noFilteredDataText:"\u6682\u65E0\u7B5B\u9009\u7ED3\u679C",confirmFilter:"\u7B5B\u9009",resetFilter:"\u91CD\u7F6E",clearFilter:"\u5168\u90E8",sumText:"\u5408\u8BA1"},datepicker:{selectDate:"\u9009\u62E9\u65E5\u671F",selectTime:"\u9009\u62E9\u65F6\u95F4",startTime:"\u5F00\u59CB\u65F6\u95F4",endTime:"\u7ED3\u675F\u65F6\u95F4",clear:"\u6E05\u7A7A",ok:"\u786E\u5B9A",datePanelLabel:"[yyyy\u5E74] [m\u6708]",month:"\u6708",month1:"1 \u6708",month2:"2 \u6708",month3:"3 \u6708",month4:"4 \u6708",month5:"5 \u6708",month6:"6 \u6708",month7:"7 \u6708",month8:"8 \u6708",month9:"9 \u6708",month10:"10 \u6708",month11:"11 \u6708",month12:"12 \u6708",year:"\u5E74",weekStartDay:"0",weeks:{sun:"\u65E5",mon:"\u4E00",tue:"\u4E8C",wed:"\u4E09",thu:"\u56DB",fri:"\u4E94",sat:"\u516D"},months:{m1:"1\u6708",m2:"2\u6708",m3:"3\u6708",m4:"4\u6708",m5:"5\u6708",m6:"6\u6708",m7:"7\u6708",m8:"8\u6708",m9:"9\u6708",m10:"10\u6708",m11:"11\u6708",m12:"12\u6708"}},transfer:{titles:{source:"\u6E90\u5217\u8868",target:"\u76EE\u7684\u5217\u8868"},filterPlaceholder:"\u8BF7\u8F93\u5165\u641C\u7D22\u5185\u5BB9",notFoundText:"\u5217\u8868\u4E3A\u7A7A"},modal:{okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88"},poptip:{okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88"},page:{prev:"\u4E0A\u4E00\u9875",next:"\u4E0B\u4E00\u9875",total:"\u5171",item:"\u6761",items:"\u6761",prev5:"\u5411\u524D 5 \u9875",next5:"\u5411\u540E 5 \u9875",page:"\u6761/\u9875",goto:"\u8DF3\u81F3",p:"\u9875"},rate:{star:"\u661F",stars:"\u661F"},time:{before:"\u524D",after:"\u540E",just:"\u521A\u521A",seconds:"\u79D2",minutes:"\u5206\u949F",hours:"\u5C0F\u65F6",days:"\u5929"},tree:{emptyText:"\u6682\u65E0\u6570\u636E"},image:{zoomIn:"\u653E\u5927",zoomOut:"\u7F29\u5C0F",rotateLeft:"\u5DE6\u65CB\u8F6C",rotateRight:"\u53F3\u65CB\u8F6C",fail:"\u5931\u8D25",preview:"\u9884\u89C8"}}};td(us);var nd=function(n){return id(n)&&!sd(n)};function id(e){return!!e&&typeof e=="object"}function sd(e){var n=Object.prototype.toString.call(e);return n==="[object RegExp]"||n==="[object Date]"||ad(e)}var rd=typeof Symbol=="function"&&Symbol.for,ld=rd?Symbol.for("react.element"):60103;function ad(e){return e.$$typeof===ld}function od(e){return Array.isArray(e)?[]:{}}function pi(e,n){return n.clone!==!1&&n.isMergeableObject(e)?In(od(e),e,n):e}function cd(e,n,i){return e.concat(n).map(function(l){return pi(l,i)})}function dd(e,n,i){var l={};return i.isMergeableObject(e)&&Object.keys(e).forEach(function(r){l[r]=pi(e[r],i)}),Object.keys(n).forEach(function(r){!i.isMergeableObject(n[r])||!e[r]?l[r]=pi(n[r],i):l[r]=In(e[r],n[r],i)}),l}function In(e,n,i){i=i||{},i.arrayMerge=i.arrayMerge||cd,i.isMergeableObject=i.isMergeableObject||nd;var l=Array.isArray(n),r=Array.isArray(e),s=l===r;return s?l?i.arrayMerge(e,n,i):dd(e,n,i):pi(n,i)}In.all=function(n,i){if(!Array.isArray(n))throw new Error("first argument should be an array");return n.reduce(function(l,r){return In(l,r,i)},{})};var hd=In;const fd=/(%|)\{([0-9a-zA-Z_]+)\}/g;function ud(){function e(i,l){return Object.prototype.hasOwnProperty.call(i,l)}function n(i,...l){return l.length===1&&typeof l[0]=="object"&&(l=l[0]),(!l||!l.hasOwnProperty)&&(l={}),i===void 0?"":i.replace(fd,(r,s,a,o)=>{let d;return i[o-1]==="{"&&i[o+r.length]==="}"?a:(d=e(l,a)?l[a]:null,d==null?"":d)})}return n}const md=ud();let gi=us;const pd={zh:us};let Fr=null,Ar={},We=null,gd=function(){if(Reflect.has(this,"$t"))return this.$t(...arguments);if(We&&We.global)return We.global.t(...arguments);if(We&&We.locale){if(!Ar[We.locale]||Fr!=We.locale){Ar[We.locale]=!0;let e=We.getLocaleMessage(We.locale)||{},n={};hd(n,pd[We.locale],e),gi=n,We.setLocaleMessage(We.locale,n),Fr=We.locale}return We.hlang(...arguments)}};const Rr=function(e,n){let i=gd.apply(this,arguments);if(i!=null)return i;const l=e.split(".");let r=gi;for(let s=0,a=l.length;s<a;s++){const o=l[s];if(i=r[o],s===a-1)return md(i,n);if(!i)return"";r=i}return""};var _n={use:function(e){gi=e||gi},t:Rr,i18n:function(e){We=e}},Be={methods:{t(...e){return Rr.apply(this,e)}}},zt={data(){return{globalConfig:{}}},created(){const e=t.getCurrentInstance();this.globalConfig=e.appContext.config.globalProperties.$VIEWUI}};const Dn="ivu-select",yd={name:"iSelectHead",mixins:[Be,zt],components:{Icon:oe},emits:["on-input-focus","on-input-blur","on-keydown","on-enter","on-clear","on-query-change"],inject:["SelectInstance"],props:{disabled:{type:Boolean,default:!1},filterable:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},remote:{type:Boolean,default:!1},initialLabel:{type:[String,Number,Array]},values:{type:Array,default:()=>[]},clearable:{type:[Function,Boolean],default:!1},inputElementId:{type:String},placeholder:{type:String},queryProp:{type:String,default:""},prefix:{type:String},maxTagCount:{type:Number},maxTagPlaceholder:{type:Function},allowCreate:{type:Boolean},showCreateItem:{type:Boolean}},data(){return{prefixCls:Dn,query:"",inputLength:20,remoteInitialLabel:this.initialLabel,preventRemoteCall:!1}},computed:{singleDisplayClasses(){const{filterable:e,multiple:n,showPlaceholder:i}=this;return[{[Dn+"-head-with-prefix"]:this.showPrefix,[Dn+"-placeholder"]:i&&!e,[Dn+"-selected-value"]:!i&&!n&&!e}]},singleDisplayValue(){return this.multiple&&this.values.length>0||this.filterable?"":`${this.selectedSingle}`||this.localePlaceholder},showPlaceholder(){let e=!1;if(this.multiple)!this.values.length>0&&(e=!0);else{const n=this.values[0];(typeof n=="undefined"||String(n).trim()==="")&&(e=!this.remoteInitialLabel)}return e},resetSelect(){return!this.showPlaceholder&&this.clearable},inputStyle(){let e={};return this.multiple&&(this.showPlaceholder?e.width="100%":e.width=`${this.inputLength}px`),e},localePlaceholder(){return this.placeholder===void 0?this.t("i.select.placeholder"):this.placeholder},selectedSingle(){const e=this.values[0];return e?e.label:this.remoteInitialLabel||""},selectedMultiple(){return(this.multiple?this.values:[]).filter((n,i)=>this.maxTagCount===void 0||i<this.maxTagCount)},headCls(){return{[`${Dn}-head-flex`]:this.filterable&&this.showPrefix}},arrowType(){const e=this.globalConfig;let n="ios-arrow-down";return e&&(e.select.customArrow?n="":e.select.arrow&&(n=e.select.arrow)),n},customArrowType(){const e=this.globalConfig;let n="";return e&&e.select.customArrow&&(n=e.select.customAr