UNPKG

view-ui-plus

Version:

A high quality UI components Library with Vue.js 3

24 lines 711 kB
(function(B,t){typeof exports=="object"&&typeof module!="undefined"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(B=typeof globalThis!="undefined"?globalThis:B||self,t(B.ViewUIPlus={},B.Vue))})(this,function(B,t){"use strict";const H=typeof window!="undefined",fe=function(){return H&&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)}}(),ue=function(){return H&&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 S=(e,n)=>{const i=e.__vccOpts||e;for(const[l,r]of n)i[l]=r;return i};const Uc="ivu-affix";function Cs(e,n){const i=n?"pageYOffset":"pageXOffset",l=n?"scrollTop":"scrollLeft";let r=e[i];return H&&typeof r!="number"&&(r=window.document.documentElement[l]),r}function jc(e){if(!H)return;const n=e.getBoundingClientRect(),i=Cs(window,!0),l=Cs(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 vc={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[{[`${Uc}`]:this.affix}]}},mounted(){fe(window,"scroll",this.handleScroll,this.useCapture),fe(window,"resize",this.handleScroll,this.useCapture),t.nextTick(()=>{this.handleScroll()})},beforeUnmount(){ue(window,"scroll",this.handleScroll,this.useCapture),ue(window,"resize",this.handleScroll,this.useCapture)},methods:{handleScroll(){if(!H)return;const e=this.affix,n=Cs(window,!0),i=jc(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 Kc(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 Fr=S(vc,[["render",Kc]]);const Ar="ivu-icon",qc={name:"Icon",props:{type:{type:String,default:""},size:[Number,String],color:String,custom:{type:String,default:""}},computed:{classes(){return[`${Ar}`,{[`${Ar}-${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 Yc(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 se=S(qc,[["render",Yc]]);function V(e,n){for(let i=0;i<n.length;i++)if(e===n[i])return!0;return!1}let bs;function Rr(e){if(H&&(e||bs===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),bs=r-s}return bs}const Gc=H&&(window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver)||!1,Jc=/([\:\-\_]+(.))/g,Xc=/^moz([A-Z])/;function Zc(e){return e.replace(Jc,function(n,i,l,r){return r?l.toUpperCase():l}).replace(Xc,"Moz$1")}function ut(e,n){if(!!H){if(!e||!n)return null;n=Zc(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 Qc(e){return e.toString()[0].toUpperCase()+e.toString().slice(1)}function ki(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 me(e){const n=ki(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(me(e[l]));else if(n==="object")for(let l in e)i[l]=me(e[l]);return i}function ks(e,n=0,i,l=500,r){if(!H)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 Ne(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 wi(e,n){let i=[];const l=e.$parent;return l?(l.$options.name===n&&i.push(l),i.concat(wi(l,n))):[]}const ed=function(e){return(e||"").replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g,"")};function Hr(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 ws(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):Hr(e,a)||(i+=" "+a))}e.classList||(e.className=i)}function Ss(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):Hr(e,a)&&(l=l.replace(" "+a+" "," ")))}e.classList||(e.className=ed(l))}const td={xs:"480px",sm:"576px",md:"768px",lg:"992px",xl:"1200px",xxl:"1600px"};function nd(){if(!H)return;const e=n=>({media:n,matches:!1,on(){},off(){}});window.matchMedia=window.matchMedia||e}const id=/#([^#]+)$/;async function sd(e,n="unnamed"){if(!H)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",rd={name:"Alert",components:{Icon:se},props:{type:{validator(e){return V(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 ld(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 Wr=S(rd,[["render",ld]]);const ad={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 H&&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=H?document.documentElement.scrollTop||document.body.scrollTop||e.target.scrollTop:0;this.getCurrentScrollAtTitleId(n)},handleHashChange(){if(!H)return;const e=window.location.href,n=id.exec(e);!n||(this.currentLink=n[0],this.currentId=n[1])},handleScrollTo(){if(!H)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,ks(this.scrollContainer,this.scrollElement.scrollTop,l,600,()=>{this.animating=!1}),this.handleSetInkTop()},handleSetInkTop(){if(!H)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(){!H||(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(){ue(this.scrollContainer,"scroll",this.handleScroll),ue(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),fe(this.scrollContainer,"scroll",this.handleScroll),fe(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 od(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 Ur=S(ad,[["render",od]]);function Ee(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 cd={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:Ee(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,()=>{}):H&&(window.location.href=this.href)}},mounted(){this.AnchorInstance.addLink(this.id,this),t.nextTick(()=>{this.AnchorInstance.init()})},beforeUnmount(){this.AnchorInstance.removeLink(this.id)}},dd=["href","data-scroll-offset","data-href","title"];function hd(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,dd),t.renderSlot(e.$slots,"default")],2)}var jr=S(cd,[["render",hd]]),en={props:{to:{type:[Object,String]},replace:{type:Boolean,default:!1},target:{type:String,validator(e){return V(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(!H)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;!H||(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 fd(e,n){let i=!1;return n.forEach(l=>{e.includes(l)&&(i=!0)}),i}const vr={name:"Auth",mixins:[en],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=fd(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 ud(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 Kr={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"],p=0;p<f.length;p+=1)if(i&&navigator.userAgent.indexOf(f[p])>=0)return 1;return 0}();function r(f){var p=!1;return function(){p||(p=!0,window.Promise.resolve().then(function(){p=!1,f()}))}}function s(f){var p=!1;return function(){p||(p=!0,setTimeout(function(){p=!1,f()},l))}}var a=i&&window.Promise,o=a?r:s;function d(f){var p={};return f&&p.toString.call(f)==="[object Function]"}function c(f,p){if(f.nodeType!==1)return[];var b=f.ownerDocument.defaultView,w=b.getComputedStyle(f,null);return p?w[p]:w}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 p=c(f),b=p.overflow,w=p.overflowX,D=p.overflowY;return/(auto|scroll|overlay)/.test(b+D+w)?f:m(h(f))}function g(f){return f&&f.referenceNode?f.referenceNode:f}var y=i&&!!(window.MSInputMethodContext&&document.documentMode),C=i&&/MSIE 10/.test(navigator.userAgent);function u(f){return f===11?y:f===10?C:y||C}function x(f){if(!f)return document.documentElement;for(var p=u(10)?document.body:null,b=f.offsetParent||null;b===p&&f.nextElementSibling;)b=(f=f.nextElementSibling).offsetParent;var w=b&&b.nodeName;return!w||w==="BODY"||w==="HTML"?f?f.ownerDocument.documentElement:document.documentElement:["TH","TD","TABLE"].indexOf(b.nodeName)!==-1&&c(b,"position")==="static"?x(b):b}function I(f){var p=f.nodeName;return p==="BODY"?!1:p==="HTML"||x(f.firstElementChild)===f}function $(f){return f.parentNode!==null?$(f.parentNode):f}function j(f,p){if(!f||!f.nodeType||!p||!p.nodeType)return document.documentElement;var b=f.compareDocumentPosition(p)&Node.DOCUMENT_POSITION_FOLLOWING,w=b?f:p,D=b?p:f,N=document.createRange();N.setStart(w,0),N.setEnd(D,0);var _=N.commonAncestorContainer;if(f!==_&&p!==_||w.contains(D))return I(_)?_:x(_);var P=$(f);return P.host?j(P.host,p):j(f,$(p).host)}function T(f){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"top",b=p==="top"?"scrollTop":"scrollLeft",w=f.nodeName;if(w==="BODY"||w==="HTML"){var D=f.ownerDocument.documentElement,N=f.ownerDocument.scrollingElement||D;return N[b]}return f[b]}function k(f,p){var b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,w=T(p,"top"),D=T(p,"left"),N=b?-1:1;return f.top+=w*N,f.bottom+=w*N,f.left+=D*N,f.right+=D*N,f}function M(f,p){var b=p==="x"?"Left":"Top",w=b==="Left"?"Right":"Bottom";return parseFloat(f["border"+b+"Width"])+parseFloat(f["border"+w+"Width"])}function E(f,p,b,w){return Math.max(p["offset"+f],p["scroll"+f],b["client"+f],b["offset"+f],b["scroll"+f],u(10)?parseInt(b["offset"+f])+parseInt(w["margin"+(f==="Height"?"Top":"Left")])+parseInt(w["margin"+(f==="Height"?"Bottom":"Right")]):0)}function U(f){var p=f.body,b=f.documentElement,w=u(10)&&getComputedStyle(b);return{height:E("Height",p,b,w),width:E("Width",p,b,w)}}var Q=function(f,p){if(!(f instanceof p))throw new TypeError("Cannot call a class as a function")},R=function(){function f(p,b){for(var w=0;w<b.length;w++){var D=b[w];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(p,D.key,D)}}return function(p,b,w){return b&&f(p.prototype,b),w&&f(p,w),p}}(),q=function(f,p,b){return p in f?Object.defineProperty(f,p,{value:b,enumerable:!0,configurable:!0,writable:!0}):f[p]=b,f},Y=Object.assign||function(f){for(var p=1;p<arguments.length;p++){var b=arguments[p];for(var w in b)Object.prototype.hasOwnProperty.call(b,w)&&(f[w]=b[w])}return f};function Z(f){return Y({},f,{right:f.left+f.width,bottom:f.top+f.height})}function A(f){var p={};try{if(u(10)){p=f.getBoundingClientRect();var b=T(f,"top"),w=T(f,"left");p.top+=b,p.left+=w,p.bottom+=b,p.right+=w}else p=f.getBoundingClientRect()}catch{}var D={left:p.left,top:p.top,width:p.right-p.left,height:p.bottom-p.top},N=f.nodeName==="HTML"?U(f.ownerDocument):{},_=N.width||f.clientWidth||D.width,P=N.height||f.clientHeight||D.height,F=f.offsetWidth-_,X=f.offsetHeight-P;if(F||X){var ee=c(f);F-=M(ee,"x"),X-=M(ee,"y"),D.width-=F,D.height-=X}return Z(D)}function z(f,p){var b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,w=u(10),D=p.nodeName==="HTML",N=A(f),_=A(p),P=m(f),F=c(p),X=parseFloat(F.borderTopWidth),ee=parseFloat(F.borderLeftWidth);b&&D&&(_.top=Math.max(_.top,0),_.left=Math.max(_.left,0));var G=Z({top:N.top-_.top-X,left:N.left-_.left-ee,width:N.width,height:N.height});if(G.marginTop=0,G.marginLeft=0,!w&&D){var le=parseFloat(F.marginTop),re=parseFloat(F.marginLeft);G.top-=X-le,G.bottom-=X-le,G.left-=ee-re,G.right-=ee-re,G.marginTop=le,G.marginLeft=re}return(w&&!b?p.contains(P):p===P&&P.nodeName!=="BODY")&&(G=k(G,p)),G}function O(f){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,b=f.ownerDocument.documentElement,w=z(f,b),D=Math.max(b.clientWidth,window.innerWidth||0),N=Math.max(b.clientHeight,window.innerHeight||0),_=p?0:T(b),P=p?0:T(b,"left"),F={top:_-w.top+w.marginTop,left:P-w.left+w.marginLeft,width:D,height:N};return Z(F)}function v(f){var p=f.nodeName;if(p==="BODY"||p==="HTML")return!1;if(c(f,"position")==="fixed")return!0;var b=h(f);return b?v(b):!1}function L(f){if(!f||!f.parentElement||u())return document.documentElement;for(var p=f.parentElement;p&&c(p,"transform")==="none";)p=p.parentElement;return p||document.documentElement}function te(f,p,b,w){var D=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,N={top:0,left:0},_=D?L(f):j(f,g(p));if(w==="viewport")N=O(_,D);else{var P=void 0;w==="scrollParent"?(P=m(h(p)),P.nodeName==="BODY"&&(P=f.ownerDocument.documentElement)):w==="window"?P=f.ownerDocument.documentElement:P=w;var F=z(P,_,D);if(P.nodeName==="HTML"&&!v(_)){var X=U(f.ownerDocument),ee=X.height,G=X.width;N.top+=F.top-F.marginTop,N.bottom=ee+F.top,N.left+=F.left-F.marginLeft,N.right=G+F.left}else N=F}b=b||0;var le=typeof b=="number";return N.left+=le?b:b.left||0,N.top+=le?b:b.top||0,N.right-=le?b:b.right||0,N.bottom-=le?b:b.bottom||0,N}function ie(f){var p=f.width,b=f.height;return p*b}function de(f,p,b,w,D){var N=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(f.indexOf("auto")===-1)return f;var _=te(b,w,N,D),P={top:{width:_.width,height:p.top-_.top},right:{width:_.right-p.right,height:_.height},bottom:{width:_.width,height:_.bottom-p.bottom},left:{width:p.left-_.left,height:_.height}},F=Object.keys(P).map(function(le){return Y({key:le},P[le],{area:ie(P[le])})}).sort(function(le,re){return re.area-le.area}),X=F.filter(function(le){var re=le.width,ae=le.height;return re>=b.clientWidth&&ae>=b.clientHeight}),ee=X.length>0?X[0].key:F[0].key,G=f.split("-")[1];return ee+(G?"-"+G:"")}function pe(f,p,b){var w=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,D=w?L(p):j(p,g(b));return z(b,D,w)}function be(f){var p=f.ownerDocument.defaultView,b=p.getComputedStyle(f),w=parseFloat(b.marginTop||0)+parseFloat(b.marginBottom||0),D=parseFloat(b.marginLeft||0)+parseFloat(b.marginRight||0),N={width:f.offsetWidth+D,height:f.offsetHeight+w};return N}function ke(f){var p={left:"right",right:"left",bottom:"top",top:"bottom"};return f.replace(/left|right|bottom|top/g,function(b){return p[b]})}function Me(f,p,b){b=b.split("-")[0];var w=be(f),D={width:w.width,height:w.height},N=["right","left"].indexOf(b)!==-1,_=N?"top":"left",P=N?"left":"top",F=N?"height":"width",X=N?"width":"height";return D[_]=p[_]+p[F]/2-w[F]/2,b===P?D[P]=p[P]-w[X]:D[P]=p[ke(P)],D}function We(f,p){return Array.prototype.find?f.find(p):f.filter(p)[0]}function at(f,p,b){if(Array.prototype.findIndex)return f.findIndex(function(D){return D[p]===b});var w=We(f,function(D){return D[p]===b});return f.indexOf(w)}function ot(f,p,b){var w=b===void 0?f:f.slice(0,at(f,"name",b));return w.forEach(function(D){D.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var N=D.function||D.fn;D.enabled&&d(N)&&(p.offsets.popper=Z(p.offsets.popper),p.offsets.reference=Z(p.offsets.reference),p=N(p,D))}),p}function W(){if(!this.state.isDestroyed){var f={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};f.offsets.reference=pe(this.state,this.popper,this.reference,this.options.positionFixed),f.placement=de(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=Me(this.popper,f.offsets.reference,f.placement),f.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",f=ot(this.modifiers,f),this.state.isCreated?this.options.onUpdate(f):(this.state.isCreated=!0,this.options.onCreate(f))}}function ne(f,p){return f.some(function(b){var w=b.name,D=b.enabled;return D&&w===p})}function ce(f){for(var p=[!1,"ms","Webkit","Moz","O"],b=f.charAt(0).toUpperCase()+f.slice(1),w=0;w<p.length;w++){var D=p[w],N=D?""+D+b:f;if(typeof document.body.style[N]!="undefined")return N}return null}function _e(){return this.state.isDestroyed=!0,ne(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[ce("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function Ae(f){var p=f.ownerDocument;return p?p.defaultView:window}function Dt(f,p,b,w){var D=f.nodeName==="BODY",N=D?f.ownerDocument.defaultView:f;N.addEventListener(p,b,{passive:!0}),D||Dt(m(N.parentNode),p,b,w),w.push(N)}function Jt(f,p,b,w){b.updateBound=w,Ae(f).addEventListener("resize",b.updateBound,{passive:!0});var D=m(f);return Dt(D,"scroll",b.updateBound,b.scrollParents),b.scrollElement=D,b.eventsEnabled=!0,b}function Re(){this.state.eventsEnabled||(this.state=Jt(this.reference,this.options,this.state,this.scheduleUpdate))}function he(f,p){return Ae(f).removeEventListener("resize",p.updateBound),p.scrollParents.forEach(function(b){b.removeEventListener("scroll",p.updateBound)}),p.updateBound=null,p.scrollParents=[],p.scrollElement=null,p.eventsEnabled=!1,p}function Ue(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=he(this.reference,this.state))}function ct(f){return f!==""&&!isNaN(parseFloat(f))&&isFinite(f)}function Xe(f,p){Object.keys(p).forEach(function(b){var w="";["width","height","top","right","bottom","left"].indexOf(b)!==-1&&ct(p[b])&&(w="px"),f.style[b]=p[b]+w})}function dt(f,p){Object.keys(p).forEach(function(b){var w=p[b];w!==!1?f.setAttribute(b,p[b]):f.removeAttribute(b)})}function Xt(f){return Xe(f.instance.popper,f.styles),dt(f.instance.popper,f.attributes),f.arrowElement&&Object.keys(f.arrowStyles).length&&Xe(f.arrowElement,f.arrowStyles),f}function us(f,p,b,w,D){var N=pe(D,p,f,b.positionFixed),_=de(b.placement,N,p,f,b.modifiers.flip.boundariesElement,b.modifiers.flip.padding);return p.setAttribute("x-placement",_),Xe(p,{position:b.positionFixed?"fixed":"absolute"}),b}function zn(f,p){var b=f.offsets,w=b.popper,D=b.reference,N=Math.round,_=Math.floor,P=function(Qt){return Qt},F=N(D.width),X=N(w.width),ee=["left","right"].indexOf(f.placement)!==-1,G=f.placement.indexOf("-")!==-1,le=F%2===X%2,re=F%2===1&&X%2===1,ae=p?ee||G||le?N:_:P,Se=p?N:P;return{left:ae(re&&!G&&p?w.left-1:w.left),top:Se(w.top),bottom:Se(w.bottom),right:ae(w.right)}}var ms=i&&/Firefox/i.test(navigator.userAgent);function ps(f,p){var b=p.x,w=p.y,D=f.offsets.popper,N=We(f.instance.modifiers,function(mn){return mn.name==="applyStyle"}).gpuAcceleration;N!==void 0&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var _=N!==void 0?N:p.gpuAcceleration,P=x(f.instance.popper),F=A(P),X={position:D.position},ee=zn(f,window.devicePixelRatio<2||!ms),G=b==="bottom"?"top":"bottom",le=w==="right"?"left":"right",re=ce("transform"),ae=void 0,Se=void 0;if(G==="bottom"?P.nodeName==="HTML"?Se=-P.clientHeight+ee.bottom:Se=-F.height+ee.bottom:Se=ee.top,le==="right"?P.nodeName==="HTML"?ae=-P.clientWidth+ee.right:ae=-F.width+ee.right:ae=ee.left,_&&re)X[re]="translate3d("+ae+"px, "+Se+"px, 0)",X[G]=0,X[le]=0,X.willChange="transform";else{var Mt=G==="bottom"?-1:1,Qt=le==="right"?-1:1;X[G]=Se*Mt,X[le]=ae*Qt,X.willChange=G+", "+le}var tt={"x-placement":f.placement};return f.attributes=Y({},tt,f.attributes),f.styles=Y({},X,f.styles),f.arrowStyles=Y({},f.offsets.arrow,f.arrowStyles),f}function Ci(f,p,b){var w=We(f,function(P){var F=P.name;return F===p}),D=!!w&&f.some(function(P){return P.name===b&&P.enabled&&P.order<w.order});if(!D){var N="`"+p+"`",_="`"+b+"`";console.warn(_+" modifier is required by "+N+" modifier in order to work, be sure to include it before "+N+"!")}return D}function Ve(f,p){var b;if(!Ci(f.instance.modifiers,"arrow","keepTogether"))return f;var w=p.element;if(typeof w=="string"){if(w=f.instance.popper.querySelector(w),!w)return f}else if(!f.instance.popper.contains(w))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),f;var D=f.placement.split("-")[0],N=f.offsets,_=N.popper,P=N.reference,F=["left","right"].indexOf(D)!==-1,X=F?"height":"width",ee=F?"Top":"Left",G=ee.toLowerCase(),le=F?"left":"top",re=F?"bottom":"right",ae=be(w)[X];P[re]-ae<_[G]&&(f.offsets.popper[G]-=_[G]-(P[re]-ae)),P[G]+ae>_[re]&&(f.offsets.popper[G]+=P[G]+ae-_[re]),f.offsets.popper=Z(f.offsets.popper);var Se=P[G]+P[X]/2-ae/2,Mt=c(f.instance.popper),Qt=parseFloat(Mt["margin"+ee]),tt=parseFloat(Mt["border"+ee+"Width"]),mn=Se-f.offsets.popper[G]-Qt-tt;return mn=Math.max(Math.min(_[X]-ae,mn),0),f.arrowElement=w,f.offsets.arrow=(b={},q(b,G,Math.round(mn)),q(b,le,""),b),f}function ht(f){return f==="end"?"start":f==="start"?"end":f}var _t=["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"],ft=_t.slice(3);function gs(f){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,b=ft.indexOf(f),w=ft.slice(b+1).concat(ft.slice(0,b));return p?w.reverse():w}var Zt={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function $r(f,p){if(ne(f.instance.modifiers,"inner")||f.flipped&&f.placement===f.originalPlacement)return f;var b=te(f.instance.popper,f.instance.reference,p.padding,p.boundariesElement,f.positionFixed),w=f.placement.split("-")[0],D=ke(w),N=f.placement.split("-")[1]||"",_=[];switch(p.behavior){case Zt.FLIP:_=[w,D];break;case Zt.CLOCKWISE:_=gs(w);break;case Zt.COUNTERCLOCKWISE:_=gs(w,!0);break;default:_=p.behavior}return _.forEach(function(P,F){if(w!==P||_.length===F+1)return f;w=f.placement.split("-")[0],D=ke(w);var X=f.offsets.popper,ee=f.offsets.reference,G=Math.floor,le=w==="left"&&G(X.right)>G(ee.left)||w==="right"&&G(X.left)<G(ee.right)||w==="top"&&G(X.bottom)>G(ee.top)||w==="bottom"&&G(X.top)<G(ee.bottom),re=G(X.left)<G(b.left),ae=G(X.right)>G(b.right),Se=G(X.top)<G(b.top),Mt=G(X.bottom)>G(b.bottom),Qt=w==="left"&&re||w==="right"&&ae||w==="top"&&Se||w==="bottom"&&Mt,tt=["top","bottom"].indexOf(w)!==-1,mn=!!p.flipVariations&&(tt&&N==="start"&&re||tt&&N==="end"&&ae||!tt&&N==="start"&&Se||!tt&&N==="end"&&Mt),QS=!!p.flipVariationsByContent&&(tt&&N==="start"&&ae||tt&&N==="end"&&re||!tt&&N==="start"&&Mt||!tt&&N==="end"&&Se),Wc=mn||QS;(le||Qt||Wc)&&(f.flipped=!0,(le||Qt)&&(w=_[F+1]),Wc&&(N=ht(N)),f.placement=w+(N?"-"+N:""),f.offsets.popper=Y({},f.offsets.popper,Me(f.instance.popper,f.offsets.reference,f.placement)),f=ot(f.instance.modifiers,f,"flip"))}),f}function bi(f){var p=f.offsets,b=p.popper,w=p.reference,D=f.placement.split("-")[0],N=Math.floor,_=["top","bottom"].indexOf(D)!==-1,P=_?"right":"bottom",F=_?"left":"top",X=_?"width":"height";return b[P]<N(w[F])&&(f.offsets.popper[F]=N(w[F])-b[X]),b[F]>N(w[P])&&(f.offsets.popper[F]=N(w[P])),f}function Lr(f,p,b,w){var D=f.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),N=+D[1],_=D[2];if(!N)return f;if(_.indexOf("%")===0){var P=void 0;switch(_){case"%p":P=b;break;case"%":case"%r":default:P=w}var F=Z(P);return F[p]/100*N}else if(_==="vh"||_==="vw"){var X=void 0;return _==="vh"?X=Math.max(document.documentElement.clientHeight,window.innerHeight||0):X=Math.max(document.documentElement.clientWidth,window.innerWidth||0),X/100*N}else return N}function vS(f,p,b,w){var D=[0,0],N=["right","left"].indexOf(w)!==-1,_=f.split(/(\+|\-)/).map(function(ee){return ee.trim()}),P=_.indexOf(We(_,function(ee){return ee.search(/,|\s/)!==-1}));_[P]&&_[P].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var F=/\s*,\s*|\s+/,X=P!==-1?[_.slice(0,P).concat([_[P].split(F)[0]]),[_[P].split(F)[1]].concat(_.slice(P+1))]:[_];return X=X.map(function(ee,G){var le=(G===1?!N:N)?"height":"width",re=!1;return ee.reduce(function(ae,Se){return ae[ae.length-1]===""&&["+","-"].indexOf(Se)!==-1?(ae[ae.length-1]=Se,re=!0,ae):re?(ae[ae.length-1]+=Se,re=!1,ae):ae.concat(Se)},[]).map(function(ae){return Lr(ae,le,p,b)})}),X.forEach(function(ee,G){ee.forEach(function(le,re){ct(le)&&(D[G]+=le*(ee[re-1]==="-"?-1:1))})}),D}function KS(f,p){var b=p.offset,w=f.placement,D=f.offsets,N=D.popper,_=D.reference,P=w.split("-")[0],F=void 0;return ct(+b)?F=[+b,0]:F=vS(b,N,_,P),P==="left"?(N.top+=F[0],N.left-=F[1]):P==="right"?(N.top+=F[0],N.left+=F[1]):P==="top"?(N.left+=F[0],N.top-=F[1]):P==="bottom"&&(N.left+=F[0],N.top+=F[1]),f.popper=N,f}function qS(f,p){var b=p.boundariesElement||x(f.instance.popper);f.instance.reference===b&&(b=x(b));var w=ce("transform"),D=f.instance.popper.style,N=D.top,_=D.left,P=D[w];D.top="",D.left="",D[w]="";var F=te(f.instance.popper,f.instance.reference,p.padding,b,f.positionFixed);D.top=N,D.left=_,D[w]=P,p.boundaries=F;var X=p.priority,ee=f.offsets.popper,G={primary:function(re){var ae=ee[re];return ee[re]<F[re]&&!p.escapeWithReference&&(ae=Math.max(ee[re],F[re])),q({},re,ae)},secondary:function(re){var ae=re==="right"?"left":"top",Se=ee[ae];return ee[re]>F[re]&&!p.escapeWithReference&&(Se=Math.min(ee[ae],F[re]-(re==="right"?ee.width:ee.height))),q({},ae,Se)}};return X.forEach(function(le){var re=["left","top"].indexOf(le)!==-1?"primary":"secondary";ee=Y({},ee,G[re](le))}),f.offsets.popper=ee,f}function YS(f){var p=f.placement,b=p.split("-")[0],w=p.split("-")[1];if(w){var D=f.offsets,N=D.reference,_=D.popper,P=["bottom","top"].indexOf(b)!==-1,F=P?"left":"top",X=P?"width":"height",ee={start:q({},F,N[F]),end:q({},F,N[F]+N[X]-_[X])};f.offsets.popper=Y({},_,ee[w])}return f}function GS(f){if(!Ci(f.instance.modifiers,"hide","preventOverflow"))return f;var p=f.offsets.reference,b=We(f.instance.modifiers,function(w){return w.name==="preventOverflow"}).boundaries;if(p.bottom<b.top||p.left>b.right||p.top>b.bottom||p.right<b.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 JS(f){var p=f.placement,b=p.split("-")[0],w=f.offsets,D=w.popper,N=w.reference,_=["left","right"].indexOf(b)!==-1,P=["top","left"].indexOf(b)===-1;return D[_?"left":"top"]=N[b]-(P?D[_?"width":"height"]:0),f.placement=ke(p),f.offsets.popper=Z(D),f}var XS={shift:{order:100,enabled:!0,fn:YS},offset:{order:200,enabled:!0,fn:KS,offset:0},preventOverflow:{order:300,enabled:!0,fn:qS,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:bi},arrow:{order:500,enabled:!0,fn:Ve,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:$r,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:JS},hide:{order:800,enabled:!0,fn:GS},computeStyle:{order:850,enabled:!0,fn:ps,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:Xt,onLoad:us,gpuAcceleration:void 0}},ZS={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:XS},ys=function(){function f(p,b){var w=this,D=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Q(this,f),this.scheduleUpdate=function(){return requestAnimationFrame(w.update)},this.update=o(this.update.bind(this)),this.options=Y({},f.Defaults,D),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=p&&p.jquery?p[0]:p,this.popper=b&&b.jquery?b[0]:b,this.options.modifiers={},Object.keys(Y({},f.Defaults.modifiers,D.modifiers)).forEach(function(_){w.options.modifiers[_]=Y({},f.Defaults.modifiers[_]||{},D.modifiers?D.modifiers[_]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(_){return Y({name:_},w.options.modifiers[_])}).sort(function(_,P){return _.order-P.order}),this.modifiers.forEach(function(_){_.enabled&&d(_.onLoad)&&_.onLoad(w.reference,w.popper,w.options,_,w.state)}),this.update();var N=this.options.eventsEnabled;N&&this.enableEventListeners(),this.state.eventsEnabled=N}return R(f,[{key:"update",value:function(){return W.call(this)}},{key:"destroy",value:function(){return _e.call(this)}},{key:"enableEventListeners",value:function(){return Re.call(this)}},{key:"disableEventListeners",value:function(){return Ue.call(this)}}]),f}();return ys.Utils=(typeof window!="undefined"?window:St).PopperUtils,ys.placements=_t,ys.Defaults=ZS,ys})})(Kr);var qr=Kr.exports;let Pt=0,Si=0;function tn(){Pt++}function md(){Si++}const pd={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 qr(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(ut(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 tn(),Pt},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 gd(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 pn=S(pd,[["render",gd]]);function yd(e){H&&typeof window.viewuiplus!="undefined"&&("langs"in viewuiplus||(viewuiplus.langs={}),viewuiplus.langs[e.i.locale]=e)}const xs={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"}}};yd(xs);var Cd=function(n){return bd(n)&&!kd(n)};function bd(e){return!!e&&typeof e=="object"}function kd(e){var n=Object.prototype.toString.call(e);return n==="[object RegExp]"||n==="[object Date]"||xd(e)}var wd=typeof Symbol=="function"&&Symbol.for,Sd=wd?Symbol.for("react.element"):60103;function xd(e){return e.$$typeof===Sd}function Bd(e){return Array.isArray(e)?[]:{}}function xi(e,n){return n.clone!==!1&&n.isMergeableObject(e)?On(Bd(e),e,n):e}function Vd(e,n,i){return e.concat(n).map(function(l){return xi(l,i)})}function Ed(e,n,i){var l={};return i.isMergeableObject(e)&&Object.keys(e).forEach(function(r){l[r]=xi(e[r],i)}),Object.keys(n).forEach(function(r){!i.isMergeableObject(n[r])||!e[r]?l[r]=xi(n[r],i):l[r]=On(e[r],n[r],i)}),l}function On(e,n,i){i=i||{},i.arrayMerge=i.arrayMerge||Vd,i.isMergeableObject=i.isMergeableObject||Cd;var l=Array.isArray(n),r=Array.isArray(e),s=l===r;return s?l?i.arrayMerge(e,n,i):Ed(e,n,i):xi(n,i)}On.all=function(n,i){if(!Array.isArray(n))throw new Error("first argument should be an array");return n.reduce(function(l,r){return On(l,r,i)},{})};var Td=On;const Nd=/(%|)\{([0-9a-zA-Z_]+)\}/g;function Id(){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(Nd,(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 Dd=Id();let Bi=xs;const _d={zh:xs};let Yr=null,Gr={},Pe=null,Md=function(){if(Reflect.has(this,"$t"))return this.$t(...arguments);if(Pe&&Pe.global)return Pe.global.t(...arguments);if(Pe&&Pe.locale){if(!Gr[Pe.locale]||Yr!=Pe.locale){Gr[Pe.locale]=!0;let e=Pe.getLocaleMessage(Pe.locale)||{},n={};Td(n,_d[Pe.locale],e),Bi=n,Pe.setLocaleMessage(Pe.locale,n),Yr=Pe.locale}return Pe.hlang(...arguments)}};const Jr=function(e,n){let i=Md.apply(this,arguments);if(i!=null)return i;const l=e.split(".");let r=Bi;for(let s=0,a=l.length;s<a;s++){const o=l[s];if(i=r[o],s===a-1)return Dd(i,n);if(!i)return"";r=i}return""};var $n={use:function(e){Bi=e||Bi},t:Jr,i18n:function(e){Pe=e}},ge={methods:{t(...e){return Jr.apply(this,e)}}},zt={data(){return{globalConfig:{}}},created(){const e=t.getCurrentInstance();this.globalConfig=e.appContext.config.globalProperties.$VIEWUI}};const Ln="ivu-select",Pd={name:"iSelectHead",mixins:[ge,zt],components:{Icon:se},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:Ln,query:"",inputLength:20,remoteInitialLabel:this.initialLabel,preventRemoteCall:!1}},computed:{singleDisplayClasses(){const{filterable:e,multiple:n,showPlaceholder:i}=this;return[{[Ln+"-head-with-prefix"]:this.showPrefix,[Ln+"-placeholder"]:i&&!e,[Ln+"-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{[`${Ln}-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.customArrow),n},showPrefix(){const e=this.$slots.prefix&&this.