UNPKG

50 kBJavaScriptView Raw
1/**
2 * Bundle of @livelybone/vue-select
3 * Generated: 2019-11-11
4 * Version: 2.6.5
5 * License: MIT
6 * Author: 2631541504@qq.com
7 */
8
9!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).SelectMultiVueSelect=t()}(this,function(){"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function o(o){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?r(i,!0).forEach(function(e){var t,r,n;t=o,n=i[r=e],r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(i)):r(i).forEach(function(e){Object.defineProperty(o,e,Object.getOwnPropertyDescriptor(i,e))})}return o}function i(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function p(e){return(p="function"==typeof Symbol&&"symbol"===t(Symbol.iterator)?function(e){return t(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":t(e)})(e)}function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var s,a=e[Symbol.iterator]();!(n=(s=a.next()).done)&&(r.push(s.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==a.return||a.return()}finally{if(o)throw i}}return r}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function u(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var n,e;function s(e){return!("object"!==p(e)||null===e||e instanceof Promise||e instanceof Date||e instanceof Error||e instanceof RegExp||"undefined"!=typeof window&&(e instanceof FileList||e instanceof File||e instanceof Element||e instanceof Window||e instanceof Document))&&(e instanceof Array?n.Array:n.NormalObj)}function a(e){var l=["",""];return function s(e,t,r){var a=1<arguments.length&&void 0!==t?t:["Object"],n=2<arguments.length?r:void 0,c=n?[].concat(u(n),[e]):[e];return Object.entries(e).some(function(e){var t=f(e,2),r=t[0],n=t[1],o=[].concat(u(a),[r]),i=function(t,r){var e=Object.keys(r).find(function(e){return r[+e]===t});return void 0!==e?{index:+e}:void 0}(n,c);return i?(l[0]=o.slice(0,i.index+1).reduce(function(e,t){return"".concat(e,".").concat(t)},"").replace(/^\./,""),l[1]=o.reduce(function(e,t){return"".concat(e,".").concat(t)},"").replace(/^\./,""),!0):"object"===p(n)&&null!==n&&s(n,o,c)})}(e)?l:null}function c(i){for(var e=arguments.length,t=new Array(1<e?e-1:0),r=1;r<e;r++)t[r-1]=arguments[r];return t.forEach(function(e){Object.entries(e).forEach(function(e){var t=f(e,2),r=t[0],n=t[1],o=i[r];s(n)&&s(o)?c(o,n):i[r]="object"===p(n)?function(e){return JSON.parse(JSON.stringify(e))}(n):n})}),i}(e=n=n||{}).NormalObj="object",e.Array="Array";var l="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,d=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(l&&0<=navigator.userAgent.indexOf(e[t]))return 1;return 0}();var h=l&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},d))}};function m(e){return e&&"[object Function]"==={}.toString.call(e)}function y(e,t){if(1!==e.nodeType)return[];var r=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?r[t]:r}function v(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function b(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=y(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/(auto|scroll|overlay)/.test(r+o+n)?e:b(v(e))}function g(e){return e&&e.referenceNode?e.referenceNode:e}var w=l&&!(!window.MSInputMethodContext||!document.documentMode),x=l&&/MSIE 10/.test(navigator.userAgent);function O(e){return 11===e?w:10===e?x:w||x}function E(e){if(!e)return document.documentElement;for(var t=O(10)?document.body:null,r=e.offsetParent||null;r===t&&e.nextElementSibling;)r=(e=e.nextElementSibling).offsetParent;var n=r&&r.nodeName;return n&&"BODY"!==n&&"HTML"!==n?-1!==["TH","TD","TABLE"].indexOf(r.nodeName)&&"static"===y(r,"position")?E(r):r:e?e.ownerDocument.documentElement:document.documentElement}function P(e){return null!==e.parentNode?P(e.parentNode):e}function S(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var r=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,n=r?e:t,o=r?t:e,i=document.createRange();i.setStart(n,0),i.setEnd(o,0);var s=i.commonAncestorContainer;if(e!==s&&t!==s||n.contains(o))return function(e){var t=e.nodeName;return"BODY"!==t&&("HTML"===t||E(e.firstElementChild)===e)}(s)?s:E(s);var a=P(e);return a.host?S(a.host,t):S(e,P(t).host)}function _(e,t){var r="top"===(1<arguments.length&&void 0!==t?t:"top")?"scrollTop":"scrollLeft",n=e.nodeName;if("BODY"!==n&&"HTML"!==n)return e[r];var o=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||o)[r]}function T(e,t){var r="x"===t?"Left":"Top",n="Left"==r?"Right":"Bottom";return parseFloat(e["border"+r+"Width"],10)+parseFloat(e["border"+n+"Width"],10)}function $(e,t,r,n){return Math.max(t["offset"+e],t["scroll"+e],r["client"+e],r["offset"+e],r["scroll"+e],O(10)?parseInt(r["offset"+e])+parseInt(n["margin"+("Height"===e?"Top":"Left")])+parseInt(n["margin"+("Height"===e?"Bottom":"Right")]):0)}function j(e){var t=e.body,r=e.documentElement,n=O(10)&&getComputedStyle(r);return{height:$("Height",t,r,n),width:$("Width",t,r,n)}}var C=function(e,t,r){return t&&L(e.prototype,t),r&&L(e,r),e};function L(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function N(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var H=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};function M(e){return H({},e,{right:e.left+e.width,bottom:e.top+e.height})}function k(e){var t={};try{if(O(10)){t=e.getBoundingClientRect();var r=_(e,"top"),n=_(e,"left");t.top+=r,t.left+=n,t.bottom+=r,t.right+=n}else t=e.getBoundingClientRect()}catch(e){}var o={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},i="HTML"===e.nodeName?j(e.ownerDocument):{},s=i.width||e.clientWidth||o.width,a=i.height||e.clientHeight||o.height,c=e.offsetWidth-s,l=e.offsetHeight-a;if(c||l){var p=y(e);c-=T(p,"x"),l-=T(p,"y"),o.width-=c,o.height-=l}return M(o)}function D(e,t,r){var n=2<arguments.length&&void 0!==r&&r,o=O(10),i="HTML"===t.nodeName,s=k(e),a=k(t),c=b(e),l=y(t),p=parseFloat(l.borderTopWidth,10),f=parseFloat(l.borderLeftWidth,10);n&&i&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var u=M({top:s.top-a.top-p,left:s.left-a.left-f,width:s.width,height:s.height});if(u.marginTop=0,u.marginLeft=0,!o&&i){var d=parseFloat(l.marginTop,10),h=parseFloat(l.marginLeft,10);u.top-=p-d,u.bottom-=p-d,u.left-=f-h,u.right-=f-h,u.marginTop=d,u.marginLeft=h}return(o&&!n?t.contains(c):t===c&&"BODY"!==c.nodeName)&&(u=function(e,t,r){var n=2<arguments.length&&void 0!==r&&r,o=_(t,"top"),i=_(t,"left"),s=n?-1:1;return e.top+=o*s,e.bottom+=o*s,e.left+=i*s,e.right+=i*s,e}(u,t)),u}function A(e){if(!e||!e.parentElement||O())return document.documentElement;for(var t=e.parentElement;t&&"none"===y(t,"transform");)t=t.parentElement;return t||document.documentElement}function W(e,t,r,n,o){var i=4<arguments.length&&void 0!==o&&o,s={top:0,left:0},a=i?A(e):S(e,g(t));if("viewport"===n)s=function(e,t){var r=1<arguments.length&&void 0!==t&&t,n=e.ownerDocument.documentElement,o=D(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),s=Math.max(n.clientHeight,window.innerHeight||0),a=r?0:_(n),c=r?0:_(n,"left");return M({top:a-o.top+o.marginTop,left:c-o.left+o.marginLeft,width:i,height:s})}(a,i);else{var c=void 0;"scrollParent"===n?"BODY"===(c=b(v(t))).nodeName&&(c=e.ownerDocument.documentElement):c="window"===n?e.ownerDocument.documentElement:n;var l=D(c,a,i);if("HTML"!==c.nodeName||function e(t){var r=t.nodeName;if("BODY"===r||"HTML"===r)return!1;if("fixed"===y(t,"position"))return!0;var n=v(t);return!!n&&e(n)}(a))s=l;else{var p=j(e.ownerDocument),f=p.height,u=p.width;s.top+=l.top-l.marginTop,s.bottom=f+l.top,s.left+=l.left-l.marginLeft,s.right=u+l.left}}var d="number"==typeof(r=r||0);return s.left+=d?r:r.left||0,s.top+=d?r:r.top||0,s.right-=d?r:r.right||0,s.bottom-=d?r:r.bottom||0,s}function R(e,t,n,r,o,i){var s=5<arguments.length&&void 0!==i?i:0;if(-1===e.indexOf("auto"))return e;var a=W(n,r,s,o),c={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},l=Object.keys(c).map(function(e){return H({key:e},c[e],{area:function(e){return e.width*e.height}(c[e])})}).sort(function(e,t){return t.area-e.area}),p=l.filter(function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight}),f=0<p.length?p[0].key:l[0].key,u=e.split("-")[1];return f+(u?"-"+u:"")}function F(e,t,r,n){var o=3<arguments.length&&void 0!==n?n:null;return D(r,o?A(t):S(t,g(r)),o)}function B(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),r=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),n=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+n,height:e.offsetHeight+r}}function z(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function I(e,t,r){r=r.split("-")[0];var n=B(e),o={width:n.width,height:n.height},i=-1!==["right","left"].indexOf(r),s=i?"top":"left",a=i?"left":"top",c=i?"height":"width",l=i?"width":"height";return o[s]=t[s]+t[c]/2-n[c]/2,o[a]=r===a?t[a]-n[l]:t[z(a)],o}function V(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function U(e,r,t){return(void 0===t?e:e.slice(0,function(e,t,r){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===r});var n=V(e,function(e){return e[t]===r});return e.indexOf(n)}(e,"name",t))).forEach(function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var t=e.function||e.fn;e.enabled&&m(t)&&(r.offsets.popper=M(r.offsets.popper),r.offsets.reference=M(r.offsets.reference),r=t(r,e))}),r}function Y(e,r){return e.some(function(e){var t=e.name;return e.enabled&&t===r})}function X(e){for(var t=[!1,"ms","Webkit","Moz","O"],r=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<t.length;n++){var o=t[n],i=o?""+o+r:e;if(void 0!==document.body.style[i])return i}return null}function J(e){var t=e.ownerDocument;return t?t.defaultView:window}function q(e,t,r,n){r.updateBound=n,J(e).addEventListener("resize",r.updateBound,{passive:!0});var o=b(e);return function e(t,r,n,o){var i="BODY"===t.nodeName,s=i?t.ownerDocument.defaultView:t;s.addEventListener(r,n,{passive:!0}),i||e(b(s.parentNode),r,n,o),o.push(s)}(o,"scroll",r.updateBound,r.scrollParents),r.scrollElement=o,r.eventsEnabled=!0,r}function G(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=function(e,t){return J(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(e){e.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}(this.reference,this.state))}function K(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function Q(r,n){Object.keys(n).forEach(function(e){var t="";-1!==["width","height","top","right","bottom","left"].indexOf(e)&&K(n[e])&&(t="px"),r.style[e]=n[e]+t})}function Z(e,t){function r(e){return e}var n=e.offsets,o=n.popper,i=n.reference,s=Math.round,a=Math.floor,c=s(i.width),l=s(o.width),p=-1!==["left","right"].indexOf(e.placement),f=-1!==e.placement.indexOf("-"),u=t?p||f||c%2==l%2?s:a:r,d=t?s:r;return{left:u(c%2==1&&l%2==1&&!f&&t?o.left-1:o.left),top:d(o.top),bottom:d(o.bottom),right:u(o.right)}}var ee=l&&/Firefox/i.test(navigator.userAgent);function te(e,t,r){var n=V(e,function(e){return e.name===t}),o=!!n&&e.some(function(e){return e.name===r&&e.enabled&&e.order<n.order});if(!o){var i="`"+t+"`",s="`"+r+"`";console.warn(s+" modifier is required by "+i+" modifier in order to work, be sure to include it before "+i+"!")}return o}var re=["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"],ne=re.slice(3);function oe(e,t){var r=1<arguments.length&&void 0!==t&&t,n=ne.indexOf(e),o=ne.slice(n+1).concat(ne.slice(0,n));return r?o.reverse():o}var ie="flip",se="clockwise",ae="counterclockwise";function ce(e,o,i,t){var s=[0,0],a=-1!==["right","left"].indexOf(t),r=e.split(/(\+|\-)/).map(function(e){return e.trim()}),n=r.indexOf(V(r,function(e){return-1!==e.search(/,|\s/)}));r[n]&&-1===r[n].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var c=/\s*,\s*|\s+/,l=-1!==n?[r.slice(0,n).concat([r[n].split(c)[0]]),[r[n].split(c)[1]].concat(r.slice(n+1))]:[r];return(l=l.map(function(e,t){var r=(1===t?!a:a)?"height":"width",n=!1;return e.reduce(function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,n=!0,e):n?(e[e.length-1]+=t,n=!1,e):e.concat(t)},[]).map(function(e){return function(e,t,r,n){var o=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+o[1],s=o[2];if(!i)return e;if(0!==s.indexOf("%"))return"vh"!==s&&"vw"!==s?i:("vh"===s?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*i;var a=void 0;switch(s){case"%p":a=r;break;case"%":case"%r":default:a=n}return M(a)[t]/100*i}(e,r,o,i)})})).forEach(function(r,n){r.forEach(function(e,t){K(e)&&(s[n]+=e*("-"===r[t-1]?-1:1))})}),s}var le={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,r=t.split("-")[0],n=t.split("-")[1];if(n){var o=e.offsets,i=o.reference,s=o.popper,a=-1!==["bottom","top"].indexOf(r),c=a?"left":"top",l=a?"width":"height",p={start:N({},c,i[c]),end:N({},c,i[c]+i[l]-s[l])};e.offsets.popper=H({},s,p[n])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var r=t.offset,n=e.placement,o=e.offsets,i=o.popper,s=o.reference,a=n.split("-")[0],c=void 0;return c=K(+r)?[+r,0]:ce(r,i,s,a),"left"===a?(i.top+=c[0],i.left-=c[1]):"right"===a?(i.top+=c[0],i.left+=c[1]):"top"===a?(i.left+=c[0],i.top-=c[1]):"bottom"===a&&(i.left+=c[0],i.top+=c[1]),e.popper=i,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,n){var t=n.boundariesElement||E(e.instance.popper);e.instance.reference===t&&(t=E(t));var r=X("transform"),o=e.instance.popper.style,i=o.top,s=o.left,a=o[r];o.top="",o.left="",o[r]="";var c=W(e.instance.popper,e.instance.reference,n.padding,t,e.positionFixed);o.top=i,o.left=s,o[r]=a,n.boundaries=c;var l=n.priority,p=e.offsets.popper,f={primary:function(e){var t=p[e];return p[e]<c[e]&&!n.escapeWithReference&&(t=Math.max(p[e],c[e])),N({},e,t)},secondary:function(e){var t="right"===e?"left":"top",r=p[t];return p[e]>c[e]&&!n.escapeWithReference&&(r=Math.min(p[t],c[e]-("right"===e?p.width:p.height))),N({},t,r)}};return l.forEach(function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";p=H({},p,f[t](e))}),e.offsets.popper=p,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,r=t.popper,n=t.reference,o=e.placement.split("-")[0],i=Math.floor,s=-1!==["top","bottom"].indexOf(o),a=s?"right":"bottom",c=s?"left":"top",l=s?"width":"height";return r[a]<i(n[c])&&(e.offsets.popper[c]=i(n[c])-r[l]),r[c]>i(n[a])&&(e.offsets.popper[c]=i(n[a])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var r;if(!te(e.instance.modifiers,"arrow","keepTogether"))return e;var n=t.element;if("string"==typeof n){if(!(n=e.instance.popper.querySelector(n)))return e}else if(!e.instance.popper.contains(n))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var o=e.placement.split("-")[0],i=e.offsets,s=i.popper,a=i.reference,c=-1!==["left","right"].indexOf(o),l=c?"height":"width",p=c?"Top":"Left",f=p.toLowerCase(),u=c?"left":"top",d=c?"bottom":"right",h=B(n)[l];a[d]-h<s[f]&&(e.offsets.popper[f]-=s[f]-(a[d]-h)),a[f]+h>s[d]&&(e.offsets.popper[f]+=a[f]+h-s[d]),e.offsets.popper=M(e.offsets.popper);var m=a[f]+a[l]/2-h/2,v=y(e.instance.popper),b=parseFloat(v["margin"+p],10),g=parseFloat(v["border"+p+"Width"],10),w=m-e.offsets.popper[f]-b-g;return w=Math.max(Math.min(s[l]-h,w),0),e.arrowElement=n,e.offsets.arrow=(N(r={},f,Math.round(w)),N(r,u,""),r),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(m,v){if(Y(m.instance.modifiers,"inner"))return m;if(m.flipped&&m.placement===m.originalPlacement)return m;var b=W(m.instance.popper,m.instance.reference,v.padding,v.boundariesElement,m.positionFixed),g=m.placement.split("-")[0],w=z(g),y=m.placement.split("-")[1]||"",x=[];switch(v.behavior){case ie:x=[g,w];break;case se:x=oe(g);break;case ae:x=oe(g,!0);break;default:x=v.behavior}return x.forEach(function(e,t){if(g!==e||x.length===t+1)return m;g=m.placement.split("-")[0],w=z(g);var r=m.offsets.popper,n=m.offsets.reference,o=Math.floor,i="left"===g&&o(r.right)>o(n.left)||"right"===g&&o(r.left)<o(n.right)||"top"===g&&o(r.bottom)>o(n.top)||"bottom"===g&&o(r.top)<o(n.bottom),s=o(r.left)<o(b.left),a=o(r.right)>o(b.right),c=o(r.top)<o(b.top),l=o(r.bottom)>o(b.bottom),p="left"===g&&s||"right"===g&&a||"top"===g&&c||"bottom"===g&&l,f=-1!==["top","bottom"].indexOf(g),u=!!v.flipVariations&&(f&&"start"===y&&s||f&&"end"===y&&a||!f&&"start"===y&&c||!f&&"end"===y&&l),d=!!v.flipVariationsByContent&&(f&&"start"===y&&a||f&&"end"===y&&s||!f&&"start"===y&&l||!f&&"end"===y&&c),h=u||d;(i||p||h)&&(m.flipped=!0,(i||p)&&(g=x[t+1]),h&&(y=function(e){return"end"===e?"start":"start"===e?"end":e}(y)),m.placement=g+(y?"-"+y:""),m.offsets.popper=H({},m.offsets.popper,I(m.instance.popper,m.offsets.reference,m.placement)),m=U(m.instance.modifiers,m,"flip"))}),m},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,r=t.split("-")[0],n=e.offsets,o=n.popper,i=n.reference,s=-1!==["left","right"].indexOf(r),a=-1===["top","left"].indexOf(r);return o[s?"left":"top"]=i[r]-(a?o[s?"width":"height"]:0),e.placement=z(t),e.offsets.popper=M(o),e}},hide:{order:800,enabled:!0,fn:function(e){if(!te(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,r=V(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottom<r.top||t.left>r.right||t.top>r.bottom||t.right<r.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var r=t.x,n=t.y,o=e.offsets.popper,i=V(e.instance.modifiers,function(e){return"applyStyle"===e.name}).gpuAcceleration;void 0!==i&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var s=void 0!==i?i:t.gpuAcceleration,a=E(e.instance.popper),c=k(a),l={position:o.position},p=Z(e,window.devicePixelRatio<2||!ee),f="bottom"===r?"top":"bottom",u="right"===n?"left":"right",d=X("transform"),h=void 0,m=void 0;if(m="bottom"==f?"HTML"===a.nodeName?-a.clientHeight+p.bottom:-c.height+p.bottom:p.top,h="right"==u?"HTML"===a.nodeName?-a.clientWidth+p.right:-c.width+p.right:p.left,s&&d)l[d]="translate3d("+h+"px, "+m+"px, 0)",l[f]=0,l[u]=0,l.willChange="transform";else{var v="bottom"==f?-1:1,b="right"==u?-1:1;l[f]=m*v,l[u]=h*b,l.willChange=f+", "+u}var g={"x-placement":e.placement};return e.attributes=H({},g,e.attributes),e.styles=H({},l,e.styles),e.arrowStyles=H({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){return Q(e.instance.popper,e.styles),function(t,r){Object.keys(r).forEach(function(e){!1!==r[e]?t.setAttribute(e,r[e]):t.removeAttribute(e)})}(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&Q(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,r,n,o){var i=F(o,t,e,r.positionFixed),s=R(r.placement,i,t,e,r.modifiers.flip.boundariesElement,r.modifiers.flip.padding);return t.setAttribute("x-placement",s),Q(t,{position:r.positionFixed?"fixed":"absolute"}),r},gpuAcceleration:void 0}}},pe=(C(fe,[{key:"update",value:function(){return function(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=F(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=R(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=I(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=U(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}.call(this)}},{key:"destroy",value:function(){return function(){return this.state.isDestroyed=!0,Y(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[X("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}.call(this)}},{key:"enableEventListeners",value:function(){return function(){this.state.eventsEnabled||(this.state=q(this.reference,this.options,this.state,this.scheduleUpdate))}.call(this)}},{key:"disableEventListeners",value:function(){return G.call(this)}}]),fe);function fe(e,t){var r=this,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,fe),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=h(this.update.bind(this)),this.options=H({},fe.Defaults,n),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=t&&t.jquery?t[0]:t,this.options.modifiers={},Object.keys(H({},fe.Defaults.modifiers,n.modifiers)).forEach(function(e){r.options.modifiers[e]=H({},fe.Defaults.modifiers[e]||{},n.modifiers?n.modifiers[e]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return H({name:e},r.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&m(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)}),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}function ue(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function de(o){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?ue(i,!0).forEach(function(e){var t,r,n;t=o,n=i[r=e],r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(i)):ue(i).forEach(function(e){Object.defineProperty(o,e,Object.getOwnPropertyDescriptor(i,e))})}return o}pe.Utils=("undefined"!=typeof window?window:global).PopperUtils,pe.placements=re,pe.Defaults=le;var he="undefined"!=typeof window&&"undefined"!=typeof document;var me=function(e,t,r,n,o,i,s,a,c,l){"boolean"!=typeof s&&(c=a,a=s,s=!1);var p,f="function"==typeof r?r.options:r;if(e&&e.render&&(f.render=e.render,f.staticRenderFns=e.staticRenderFns,f._compiled=!0,o&&(f.functional=!0)),n&&(f._scopeId=n),i?(p=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,c(e)),e&&e._registeredComponents&&e._registeredComponents.add(i)},f._ssrRegister=p):t&&(p=s?function(){t.call(this,l(this.$root.$options.shadowRoot))}:function(e){t.call(this,a(e))}),p)if(f.functional){var u=f.render;f.render=function(e,t){return p.call(t),u(e,t)}}else{var d=f.beforeCreate;f.beforeCreate=d?[].concat(d,p):[p]}return r}({render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{ref:"vuePopper",staticClass:"vue-popper"},[t("div",{staticClass:"arrow",attrs:{"x-arrow":""}}),this._v(" "),this._t("default")],2)},staticRenderFns:[]},void 0,{name:"Index",props:{arrowPosition:{default:"middle",type:String},arrowOffsetScaling:{default:he&&window.devicePixelRatio||1,type:Number},referenceElm:he?[Window,Element,Document]:Object,popperOptions:Object},data:function(){return{el:null,popperJs:null}},computed:{referenceEle:function(){return this.referenceElm?this.referenceElm:he&&this.el?this.el.parentNode||window:null},options:function(){var e=(this.popperOptions||{}).modifiers;return de({},this.popperOptions,{modifiers:de({},e,{arrow:{fn:this.arrowModifier,element:"[x-arrow]"}})})},arrowOffset:function(){return 10*this.arrowOffsetScaling}},watch:{referenceEle:function(){this.createPopper()}},methods:{setStyle:function(){if(he){var e="vue-popper-module-style";if(!document.getElementById(e)){var t=document.createElement("style");t.id=e,t.innerText=".arrow-extend,.vue-popper[x-placement^=top] .arrow,.vue-popper[x-placement^=top] .arrow:before,.vue-popper[x-placement^=bottom] .arrow,.vue-popper[x-placement^=bottom] .arrow:before,.vue-popper[x-placement^=left] .arrow,.vue-popper[x-placement^=left] .arrow:before,.vue-popper[x-placement^=right] .arrow,.vue-popper[x-placement^=right] .arrow:before{position:absolute;width:0;height:0}.vue-popper{border:1px solid #c2ccdc;border-radius:.2em;background:#fff}.vue-popper[x-placement^=top]{margin-bottom:.75em}.vue-popper[x-placement^=top] .arrow{bottom:-.4em;border:.4em solid transparent;border-bottom:0;border-top-color:#c2ccdc}.vue-popper[x-placement^=top] .arrow:before{content:'';bottom:-.4em;border:.4em solid transparent;border-bottom:0;border-top-color:#fff;left:-.4em;bottom:1px}.vue-popper[x-placement^=bottom]{margin-top:.75em}.vue-popper[x-placement^=bottom] .arrow{top:-.4em;border:.4em solid transparent;border-top:0;border-bottom-color:#c2ccdc}.vue-popper[x-placement^=bottom] .arrow:before{content:'';top:-.4em;border:.4em solid transparent;border-top:0;border-bottom-color:#fff;left:-.4em;top:1px}.vue-popper[x-placement^=left]{margin-right:.75em}.vue-popper[x-placement^=left] .arrow{right:-.4em;border:.4em solid transparent;border-right:0;border-left-color:#c2ccdc}.vue-popper[x-placement^=left] .arrow:before{content:'';right:-.4em;border:.4em solid transparent;border-right:0;border-left-color:#fff;top:-.4em;right:1px}.vue-popper[x-placement^=right]{margin-left:.75em}.vue-popper[x-placement^=right] .arrow{left:-.4em;border:.4em solid transparent;border-left:0;border-right-color:#c2ccdc}.vue-popper[x-placement^=right] .arrow:before{content:'';left:-.4em;border:.4em solid transparent;border-left:0;border-right-color:#fff;top:-.4em;left:1px}",document.head.appendChild(t)}}},getElement:function(){this.el=this.$refs.vuePopper},createPopper:function(){this.referenceEle&&(this.destroyPopper(),this.popperJs=new pe(this.referenceEle,this.el,this.options))},updatePopper:function(){this.popperJs&&this.popperJs.scheduleUpdate()},destroyPopper:function(){this.popperJs&&this.popperJs.destroy()},arrowModifier:function(e,t){var r=pe.Defaults.modifiers.arrow.fn(e,t),n=r.offsets,o=n.arrow,i=o.left,s=o.top,a=n.reference,c=n.popper,l=r.arrowElement;return r.offsets.arrow.left=this.convertPos(i,c,a,l),r.offsets.arrow.top=this.convertPos(s,c,a,l,"top"),r},convertPos:function(e,t,r,n,o){var i=4<arguments.length&&void 0!==o?o:"left",s="",a="left"===i?"left":"top",c="left"===i?"width":"height",l="left"===i?"offsetWidth":"offsetHeight";return"number"==typeof e&&(s="start"===this.arrowPosition?this.arrowOffset+Math.max(0,-(t[a]-r[a])):"end"===this.arrowPosition?Math.min(r[c],t[c])-Math.min(0,t[a]-r[a])-this.arrowOffset-n[l]:e<this.arrowOffset?this.arrowOffset:e>t[c]-n[l]-this.arrowOffset?t[c]-n[l]-this.arrowOffset:e),s}},mounted:function(){this.setStyle(),this.getElement(),this.createPopper()},updated:function(){this.getElement(),this.updatePopper()},beforeDestroy:function(){this.destroyPopper()}},void 0,!1,void 0,void 0,void 0),ve=xe,be=xe,ge=xe,we=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,ye=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino|android|ipad|playbook|silk/i;function xe(e){var t=(e=e||{}).ua;return t||"undefined"==typeof navigator||(t=navigator.userAgent),t&&t.headers&&"string"==typeof t.headers["user-agent"]&&(t=t.headers["user-agent"]),"string"==typeof t&&(e.tablet?ye.test(t):we.test(t))}function Oe(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function Ee(o){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Oe(i,!0).forEach(function(e){var t,r,n;t=o,n=i[r=e],r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(i)):Oe(i).forEach(function(e){Object.defineProperty(o,e,Object.getOwnPropertyDescriptor(i,e))})}return o}function Pe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var s,a=e[Symbol.iterator]();!(n=(s=a.next()).done)&&(r.push(s.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==a.return||a.return()}finally{if(o)throw i}}return r}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}ve.isMobile=be,ve.default=ge,"undefined"!=typeof window&&"undefined"!=typeof document&&document.createElement("div");var Se="",_e="addEventListener",Te="removeEventListener";function $e(e,t,r,n){var o=Se+t;return e[_e].bind(e)(o,r,n),function(){e[Te].bind(e)(o,r,n)}}"undefined"!=typeof window&&"undefined"!=typeof document&&(window.addEventListener?(_e="addEventListener",Te="removeEventListener"):(_e="attachEvent",Te="detachEvent",Se="on"));var je=be(),Ce=Object.freeze({$addListener:$e,$isMobile:je}),Le=je?"mobile":"pc",Ne={start:{pc:"mousedown",mobile:"touchstart"}[Le],move:{pc:"mousemove",mobile:"touchmove"}[Le],end:{pc:"mouseup",mobile:"touchend"}[Le]};function He(e){var t=null;if(je)if(0<e.changedTouches.length)t=Pe(e.changedTouches,1)[0];else if(0<e.targetTouched.length){t=Pe(e.changedTouches,1)[0]}else{t=Pe(e.touches,1)[0]}return t||e}function Me(e,t){return{deltaX:He(e).clientX-He(t).clientX,deltaY:He(e).clientY-He(t).clientY,originalEvent:e}}var ke=Object.freeze({bind:function(e,i,s){var a,c;return"function"==typeof e&&(s=i,i=e,e=window),$e(e,Ne.start,function e(t){var r={deltaX:0,deltaY:0,originalEvent:t,type:"dragMoveStart"};if(t.type===Ne.start){a=t;var n=$e(window,Ne.move,e,s),o=$e(window,Ne.end,e,s);c=function(){n(),o()}}else t.type===Ne.move?r=Ee({},Me(t,a),{type:"dragMove"}):t.type===Ne.end&&(r=Ee({},Me(t,a),{type:"dragMoveEnd"}),c&&c());i(r)},s)}});function De(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ae(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}var We={x:{posPropName:"left",parentScrollPos:"scrollLeft",deltaName:"deltaX",sizeName:"width"},y:{posPropName:"top",parentScrollPos:"scrollTop",deltaName:"deltaY",sizeName:"height"}},Re={opacity:1,pointerEvents:"initial"};var Fe=function(e,t,r,n,o,i,s,a,c,l){"boolean"!=typeof s&&(c=a,a=s,s=!1);var p,f="function"==typeof r?r.options:r;if(e&&e.render&&(f.render=e.render,f.staticRenderFns=e.staticRenderFns,f._compiled=!0,o&&(f.functional=!0)),n&&(f._scopeId=n),i?(p=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,c(e)),e&&e._registeredComponents&&e._registeredComponents.add(i)},f._ssrRegister=p):t&&(p=s?function(){t.call(this,l(this.$root.$options.shadowRoot))}:function(e){t.call(this,a(e))}),p)if(f.functional){var u=f.render;f.render=function(e,t){return p.call(t),u(e,t)}}else{var d=f.beforeCreate;f.beforeCreate=d?[].concat(d,p):[p]}return r},Be=Fe({render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{directives:[{name:"show",rawName:"v-show",value:e.$_show,expression:"$_show"}],ref:"bar",staticClass:"scrollbar",class:"scrollbar-"+e.type,style:e.$_barStyle,attrs:{draggable:!1}})},staticRenderFns:[]},void 0,{name:"Bar",props:{type:String,parentScroll:Number,marginToWrap:{type:Number,default:5},clientSize:Number,scrollSize:Number},data:function(){return{sPosition:0,showBar:!1,unbind:null,startPosition:0}},computed:{$_show:function(){return this.scrollSize>this.clientSize},$_scrollbarType:function(){return We[this.type]},size:function(){return this.clientSize/this.scrollSize*this.clientSize-2*this.marginToWrap},positionRange:function(){return{min:this.marginToWrap,max:this.clientSize-this.marginToWrap-this.size}},$_barStyle:function(){var e;return function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ae(r,!0).forEach(function(e){De(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ae(r).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}({},this.showBar?Re:{},(De(e={},this.$_scrollbarType.posPropName,"".concat(this.sPosition,"px !important")),De(e,this.$_scrollbarType.sizeName,"".concat(this.size,"px !important")),De(e,"userSelect","none"),e))}},watch:{$_show:{handler:function(e){var t=this;setTimeout(function(){t.unbind&&t.unbind(),e&&"undefined"!=typeof window&&(t.unbind=ke.bind(t.$refs.bar,t.drag))},200)},immediate:!0},parentScroll:{handler:function(e){this.sPosition=(this.positionRange.max-this.positionRange.min)/(this.scrollSize-this.clientSize)*e+this.positionRange.min},immediate:!0}},methods:{drag:function(e){e.originalEvent.preventDefault(),"dragMoveStart"===e.type&&(this.startPosition=this.sPosition);var t=Math.min(this.positionRange.max,Math.max(this.positionRange.min,this.startPosition+e[this.$_scrollbarType.deltaName]));this.$emit("scrollTo",De({},this.$_scrollbarType.parentScrollPos,(t-this.marginToWrap)/(this.positionRange.max-this.marginToWrap)*(this.scrollSize-this.clientSize))),this.showBar="dragMoveEnd"!==e.type}},beforeDestroy:function(){this.unbind&&this.unbind()}},void 0,!1,void 0,void 0,void 0);function ze(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};return e.some(function(e){return!!t(e)&&(r=e,!0)}),r}var Ie={components:{scrollbar:Fe({render:function(){var r=this,e=r.$createElement,n=r._self._c||e;return n("div",{ref:"wrap",staticClass:"scrollbar-wrap",style:r.$_wrapStyle,on:{click:function(e){return r.$emit("wrapClick",e)}}},[n("div",{ref:"content",staticClass:"scrollbar-content",style:r.$_contentStyle},[r._t("default")],2),r._v(" "),!r.isMobile&&r.width.content&&r.height.content?r._l(r.scrollbars,function(e,t){return n("Bar",{key:t,attrs:{type:t,marginToWrap:r.marginToWrap,parentScroll:r.scrollPos[e.scrollPropName],clientSize:e.size.content,scrollSize:e.size.contentInner},on:{scrollTo:function(e){return r.setScroll(e,"drag")}}})}):r._e()],2)},staticRenderFns:[]},void 0,{name:"Scrollbar",components:{Bar:Be},props:{isMobile:Boolean,maxHeight:[Number,String],scrollTo:[Number,Object],marginToWrap:{default:5,type:Number}},data:function(){return{width:{parent:0,content:0,contentInner:0},height:{parent:0,content:0,contentInner:0},scrollPos:{scrollLeft:0,scrollTop:0},isTop:!0,isBottom:!0,isLeft:!0,isRight:!0,nativeScrollbarWidth:{x:0,y:0}}},computed:{scrollbars:function(){return{x:{scrollPropName:"scrollLeft",size:this.width},y:{scrollPropName:"scrollTop",size:this.height}}},$_maxHeight:function(){var r=this;return"number"==typeof this.maxHeight?"".concat(this.maxHeight,"px"):/%/.test(this.maxHeight)?this.maxHeight.replace(/(\d+)%/g,function(e,t){return"".concat(r.height.parent*t/100,"px")}):this.maxHeight},$_wrapStyle:function(){return{position:"relative",height:this.isMobile?"auto !important":"".concat(this.height.wrap,"px !important"),maxHeight:"".concat(this.$_maxHeight," !important"),padding:"0 !important",overflow:"hidden !important"}},$_contentStyle:function(){if(this.isMobile)return{maxHeight:this.$_maxHeight,overflow:"scroll"};var e=this.nativeScrollbarWidth,t=e.x,r=e.y;return{width:"calc(100% + ".concat(r,"px) !important"),maxHeight:"calc(".concat(this.$_maxHeight.replace(/(^calc\()|(\)$)/g,"")," + ").concat(t,"px) !important"),overflow:"scroll"}},maxScroll:function(){return{scrollLeft:this.width.contentInner-this.width.content,scrollTop:this.height.contentInner-this.height.content}}},watch:{scrollTo:{handler:function(t){var r=this;this.$nextTick(function(){if(t){var e={scrollLeft:0,scrollTop:0};t.x||t.y?(e.scrollLeft=t.x*r.maxScroll.scrollLeft,e.scrollTop=t.y*r.maxScroll.scrollTop):(e.scrollLeft=t*r.maxScroll.scrollLeft,e.scrollTop=t*r.maxScroll.scrollTop),r.setScroll(e,"drag")}})},immediate:!0},isBottom:function(e){e&&this.$emit("reachBottom")},isTop:function(e){e&&this.$emit("reachTop")},isLeft:function(e){e&&this.$emit("reachLeft")},isRight:function(e){e&&this.$emit("reachRight")}},methods:{getHeight:function(){function e(){if(i.$refs.content){var e=i.$refs.content,t=e.scrollHeight,r=e.clientHeight,n=e.scrollWidth,o=e.clientWidth;i.height.content=r,i.height.contentInner=t,i.height.parent=i.$refs.wrap.parentElement.clientHeight,i.width.content=o,i.width.contentInner=n,i.width.parent=i.$refs.wrap.parentElement.clientWidth}}var i=this;e(),this.$on("hook:updated",e)},scroll:function(){var e=this.$refs.content,t=e.scrollTop,r=e.scrollLeft;this.setScroll({scrollTop:t,scrollLeft:r})},setScroll:function(e,t){var r=e.scrollTop,n=void 0===r?void 0:r,o=e.scrollLeft,i=void 0===o?void 0:o,s="scroll"!==(1<arguments.length&&void 0!==t?t:"scroll");void 0!==n&&this.setPos(n,"scrollTop",s),void 0!==i&&this.setPos(i,"scrollLeft",s),this.judgeOnBoundary()},setPos:function(e,t,r){this.scrollPos[t]=e,r&&(this.$refs.content[t]=e)},judgeOnBoundary:function(){this.isTop=0===this.scrollPos.scrollTop,this.isBottom=this.scrollPos.scrollTop===this.maxScroll.scrollTop,this.isLeft=0===this.scrollPos.scrollLeft,this.isRight=this.scrollPos.scrollLeft===this.maxScroll.scrollLeft},bind:function(){this.$once("hook:beforeDestroy",Ce.$addListener(this.$refs.content,"scroll",this.scroll))},insertStyle:function(){var e="vue-scrollbar-live-module-style";if(!document.getElementById(e)){var t=document.createElement("style");t.id=e,t.innerText=".scrollbar-wrap .scrollbar-content::-webkit-scrollbar{width:0;height:0;}.scrollbar-wrap .scrollbar-content{-ms-overflow-style:none;scrollbar-width:none;}.scrollbar-wrap .scrollbar{position:absolute;border-radius:.25em;background:#eee;box-shadow:0 0 2px rgba(0,0,0,0.1);opacity:0;pointer-events:none}.scrollbar-wrap .scrollbar-y{right:0.25em;width:.5em}.scrollbar-wrap .scrollbar-x{bottom:0.25em;height:.5em}.scrollbar-wrap:hover .scrollbar{opacity:1;pointer-events:initial}",document.head.appendChild(t)}}},created:function(){var e=this;this.isMobile||"undefined"==typeof window||(this.insertStyle(),this.$once("hook:mounted",function(){e.nativeScrollbarWidth=function(e){var t=(e=e||window)===window;try{var r=t?window.nativeScrollbarWidth:null;if(!r||"number"!=typeof r.y||"number"!=typeof r.x){var n=t?document.createElement("div"):e;t&&(n.setAttribute("style","position:fixed;top:0;left:0;opacity:0;pointer-events:none;width:200px;height:200px;overflow:scroll"),document.body.appendChild(n)),r={y:n.offsetWidth-n.clientWidth,x:n.offsetHeight-n.clientHeight},t&&(window.nativeScrollbarWidth=r,document.body.removeChild(n))}return r}catch(e){return{y:17,x:17}}}(e.$refs.content),e.getHeight(),e.bind()}))}},void 0,!1,void 0,void 0,void 0)},props:{$_select_isMobile:Boolean,maxHeight:[Number,String],marginToWrap:Number,options:Array},data:function(){return{scrollTo:0}},watch:{options:{handler:function(){this.insertHtml()},immediate:!0}},methods:{insertHtml:function(){var r=this;this.$nextTick(function(){(r.options||[]).forEach(function(e,t){r.$refs["option-".concat(t)]&&((r.$refs["option-".concat(t)][0]||r.$refs["option-".concat(t)]).innerHTML=e.cName||e.name)})})}},beforeMount:function(){var t=this,e=ze(Object.keys(this.options),function(e){return t.options[e].selected});this.scrollTo=1===this.options.length?0:e/(this.options.length-1)}};function Ve(e,t,r,n,o,i,s,a,c,l){"boolean"!=typeof s&&(c=a,a=s,s=!1);var p,f="function"==typeof r?r.options:r;if(e&&e.render&&(f.render=e.render,f.staticRenderFns=e.staticRenderFns,f._compiled=!0,o&&(f.functional=!0)),n&&(f._scopeId=n),i?(p=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,c(e)),e&&e._registeredComponents&&e._registeredComponents.add(i)},f._ssrRegister=p):t&&(p=s?function(e){t.call(this,l(e,this.$root.$options.shadowRoot))}:function(e){t.call(this,a(e))}),p)if(f.functional){var u=f.render;f.render=function(e,t){return p.call(t),u(e,t)}}else{var d=f.beforeCreate;f.beforeCreate=d?[].concat(d,p):[p]}return r}"undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());var Ue=Ve({render:function(){var r=this,e=r.$createElement,n=r._self._c||e;return n("scrollbar",r._g({attrs:{isMobile:r.$_select_isMobile,maxHeight:r.maxHeight,scrollTo:r.scrollTo,marginToWrap:r.marginToWrap}},r.$listeners),[r._l(r.options,function(t,e){return n("div",{key:e,ref:"option-"+e,refInFor:!0,staticClass:"option",class:{selected:t.selected},on:{mouseenter:function(){return r.$emit("hover",t)},click:function(e){return e.stopPropagation(),r.$emit("select",t)}}})}),r._v(" "),r.options.length?r._e():r._t("default")],2)},staticRenderFns:[]},void 0,Ie,void 0,!1,void 0,!1,void 0,void 0,void 0);return Ve({render:function(){var r=this,e=r.$createElement,n=r._self._c||e;return n("div",{ref:"wrap",staticClass:"select-multi",class:{disabled:!r.canEdit}},[n("div",{staticClass:"value values"},[r._l(r.selected,function(t,e){return n("div",{key:e,staticClass:"val"},[n("span",{staticClass:"v",domProps:{innerHTML:r._s(t.name)}}),r._v(" "),r.canEdit?n("span",{staticClass:"icon-del",on:{click:function(e){return e.stopPropagation(),r.click(t)}}}):r._e()])}),r._v(" "),r.canEdit?[r.canSearch?n("input",{directives:[{name:"model",rawName:"v-model",value:r.inputVal,expression:"inputVal"}],ref:"input",staticClass:"input val",attrs:{placeholder:r.$searchPlaceholder},domProps:{value:r.inputVal},on:{click:function(){r.optionsHidden=!1},input:function(e){e.target.composing||(r.inputVal=e.target.value)}}}):r.selected.length<=0?n("span",{staticClass:"val placeholder"},[r._v(r._s(r.$placeholder))]):r._e()]:r._e()],2),r._v(" "),r.canEdit?[n("span",{staticClass:"icon-arrow",class:{reverse:!r.optionsHidden}}),r._v(" "),n("popper",{directives:[{name:"show",rawName:"v-show",value:!r.optionsHidden,expression:"!optionsHidden"}],ref:"optionsEl",staticClass:"options",attrs:{popperOptions:r.$popperProps.popperOptions,arrowPosition:r.$popperProps.arrowPosition,arrowOffsetScaling:r.$popperProps.arrowOffsetScaling}},[n("options",{attrs:{$_select_isMobile:r.$_select_isMobile,maxHeight:r.maxHeight,marginToWrap:r.marginToWrap,options:r.showOptions},on:{startDrag:function(){r.shouldHide=!1},endDrag:r.endDrag,select:r.click}},[r._t("default")],2)],1)]:r._e()],2)},staticRenderFns:[]},void 0,{mixins:[{components:{Options:Ue,popper:me},props:{id:String,options:{default:function(){return[]},type:Array},canEdit:{default:!0,type:Boolean},canSearch:Boolean,placeholder:String,searchPlaceholder:String,popperProps:Object,scrollbarProps:Object},data:function(){return{mergedOptions:[],optionsHidden:!0,shouldHide:!0,inputVal:"",defaultPopperProps:Object.freeze({arrowPosition:"start",arrowOffsetScaling:1,popperOptions:{placement:"bottom-start",modifiers:{preventOverflow:{boundariesElement:"undefined"!=typeof document?document.body:""}}}})}},computed:{$placeholder:function(){return this.placeholder||"请选择"},$searchPlaceholder:function(){return this.searchPlaceholder||"搜索"},valid:function(){var e=!0;if(e=!this.options||!this.options.every(function(e){return e.name&&void 0!==e.value}),!e)throw new Error('vue-select: Prop options is invalid! Right example: [{name: "option", value: 1}]');return e},$popperProps:function(){return this.popperProps?function(e){for(var i="same",t=arguments.length,r=new Array(1<t?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return[e].concat(r).forEach(function(e,t){var r=a(e);if(r){var n=JSON.stringify(r);throw new Error("objectDeepMerge: Circular structure is not supported, the ".concat(t,"th parameter is a circular structure with CircularStructurePaths(").concat(n,")"))}var o=s(e);if(!o||"same"!==i&&i!==o)throw new Error("objectDeepMerge: Please ensure that parameters are all Array or normal Object");i=o}),c.apply(void 0,[e].concat(r))}({},this.defaultPopperProps,this.popperProps):this.defaultPopperProps},$_select_isMobile:function(){return(this.scrollbarProps||{}).isMobile},maxHeight:function(){var e=(this.scrollbarProps||{}).maxHeight;return e||"50vh"},marginToWrap:function(){var e=(this.scrollbarProps||{}).marginToWrap;return e||2}},watch:{inputVal:function(e){this.$emit("search",e)},options:function(e){this.mergedOptions=this.mergeOptions(this.mergedOptions,e)}},methods:{toggle:function(e){var t=this;if(this.canEdit){var r=e&&this.$refs.wrap.contains(e.target);this.$refs.optionsEl.$el.contains(e.target)||(this.optionsHidden&&r?(this.optionsHidden=!1,this.canSearch&&this.$nextTick(function(){return t.$refs.input.focus()}),"initTemp"in this&&this.initTemp()):(this.shouldHide&&(this.optionsHidden=!0),this.shouldHide=!0))}},endDrag:function(){var e=this;setTimeout(function(){e.shouldHide=!0},100)},bind:function(e){"undefined"!=typeof window&&window["".concat(e?"add":"remove","EventListener")]("click",this.toggle,!0)},find:ze,mergeOptions:function(e,t){var n=this,r=[].concat(i(e),i(t)).reduce(function(e,t){var r=e[t.value];if(r&&r.name!==t.name)throw new Error("vue-select: the options at same level have conflict items(name: ".concat(t.name," & name: ").concat(r.name,") that have the same value"));return r&&(r.children instanceof Array||t.children instanceof Array)?e[t.value]=o({},t,{children:n.mergeOptions(r.children,t.children)}):e[t.value]=t,e},{});return Object.keys(r).map(function(e){return r[e]})}},beforeMount:function(){this.mergedOptions=i(this.options),this.bind(!0)},beforeDestroy:function(){this.bind(!1)}}],props:{value:{default:function(){return[]},type:Array}},computed:{selected:function(){var e=this;return this.mergedOptions.filter(function(t){return e.value.some(function(e){return e===t.value})})},showOptions:function(){var t=this;return this.options.map(function(e){return o({},e,{selected:t.isSelected(e.value),name:t.html(e)})})}},methods:{html:function(e){return"".concat(e.name).concat(this.isSelected(e.value)?'<span class="icon-selected"></span>':"")},click:function(e){var t=this,r=e.value;if(this.canEdit){var n=this.find(Object.keys(this.value),function(e){return t.value[e]===r},-1);-1<n?this.$emit("input",this.value.slice(0,n).concat(this.value.slice(+n+1))):this.$emit("input",this.value.concat([r]))}},isSelected:function(t){return this.value.some(function(e){return e===t})}}},void 0,!1,void 0,!1,void 0,void 0,void 0)});