@livelybone/vue-select
Version:
A vue select component, includes cascader
9 lines (8 loc) • 51.2 kB
JavaScript
/**
* Bundle of @livelybone/vue-select
* Generated: 2023-12-26
* Version: 2.7.0
* License: MIT
* Author: 2631541504@qq.com
*/
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).SelectBaseVueSelect=t()}(this,function(){"use strict";function k(t,e){var o,n=Object.keys(t);return Object.getOwnPropertySymbols&&(o=Object.getOwnPropertySymbols(t),e&&(o=o.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,o)),n}function r(n){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?k(Object(r),!0).forEach(function(e){var t,o;t=n,o=r[e=e],(e=function(e){e=function(e,t){if("object"!=typeof e||!e)return e;var o=e[Symbol.toPrimitive];if(void 0===o)return("string"===t?String:Number)(e);o=o.call(e,t||"default");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):k(Object(r)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))})}return n}function i(e){return function(e){if(Array.isArray(e))return n(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){var o;if(e)return"string"==typeof e?n(e,t):"Map"===(o="Object"===(o=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:o)||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?n(e,t):void 0}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}function l(e){return(l="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 A(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var n,r,i,a,s=[],c=!0,l=!1;try{if(i=(o=o.call(e)).next,0===t){if(Object(o)!==o)return;c=!1}else for(;!(c=(n=i.call(o)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){l=!0,r=e}finally{try{if(!c&&null!=o.return&&(a=o.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(e,t)||R(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function W(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||R(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function R(e,t){var o;if(e)return"string"==typeof e?a(e,t):"Map"===(o="Object"===(o=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:o)||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?a(e,t):void 0}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}var F=function(e){return e.NormalObj="object",e.Array="Array",e}({});function s(t){var e=["undefined"!=typeof Promise&&Promise,"undefined"!=typeof Date&&Date,"undefined"!=typeof Error&&Error,"undefined"!=typeof RegExp&&RegExp,"undefined"!=typeof FileList&&FileList,"undefined"!=typeof File&&File,"undefined"!=typeof Element&&Element,"undefined"!=typeof Window&&Window,"undefined"!=typeof Document&&Document];return"object"===l(t)&&null!==t&&!e.some(function(e){return e&&t instanceof e})&&(t instanceof Array?F.Array:F.NormalObj)}function B(e){var c=["",""];return function i(e){var a,s=1<arguments.length&&void 0!==arguments[1]?arguments[1]:["Object"],t=2<arguments.length?arguments[2]:void 0;return"object"===l(e)&&null!==e&&(a=t?[].concat(W(t),[e]):[e],Object.entries(e).some(function(e){var t,o,e=A(e,2),n=e[0],e=e[1],n=[].concat(W(s),[n]),r=(t=e,o=a,void 0!==(r=Object.keys(o).find(function(e){return o[+e]===t}))?{index:+r}:void 0);return r?(c[0]=n.slice(0,r.index+1).reduce(function(e,t){return"".concat(e,".").concat(t)},"").replace(/^\./,""),c[1]=n.reduce(function(e,t){return"".concat(e,".").concat(t)},"").replace(/^\./,""),!0):i(e,n,a)}))}(e)?c:null}function I(n){for(var e=arguments.length,t=new Array(1<e?e-1:0),o=1;o<e;o++)t[o-1]=arguments[o];return t.forEach(function(e){Object.entries(e).forEach(function(e){var e=A(e,2),t=e[0],e=e[1];if("__proto__"===t||"constructor"===t||"prototype"===t)return n;var o=n[t];s(e)&&s(o)?I(o,e):n[t]="object"===l(e)?JSON.parse(JSON.stringify(e)):e})}),n}var o="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,z=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(o&&0<=navigator.userAgent.indexOf(e[t]))return 1;return 0}();var V=o&&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()},z))}};function U(e){return e&&"[object Function]"==={}.toString.call(e)}function f(e,t){return 1!==e.nodeType?[]:(e=e.ownerDocument.defaultView.getComputedStyle(e,null),t?e[t]:e)}function c(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function p(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=f(e),o=t.overflow,n=t.overflowX,t=t.overflowY;return/(auto|scroll|overlay)/.test(o+t+n)?e:p(c(e))}function Y(e){return e&&e.referenceNode?e.referenceNode:e}var X=o&&!(!window.MSInputMethodContext||!document.documentMode),J=o&&/MSIE 10/.test(navigator.userAgent);function u(e){return 11===e?X:10!==e&&X||J}function d(e){if(!e)return document.documentElement;for(var t=u(10)?document.body:null,o=e.offsetParent||null;o===t&&e.nextElementSibling;)o=(e=e.nextElementSibling).offsetParent;var n=o&&o.nodeName;return n&&"BODY"!==n&&"HTML"!==n?-1!==["TH","TD","TABLE"].indexOf(o.nodeName)&&"static"===f(o,"position")?d(o):o:(e?e.ownerDocument:document).documentElement}function h(e){return null!==e.parentNode?h(e.parentNode):e}function m(e,t){var o,n,r;return e&&e.nodeType&&t&&t.nodeType?(n=(r=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING)?e:t,r=r?t:e,(o=document.createRange()).setStart(n,0),o.setEnd(r,0),e!==(o=o.commonAncestorContainer)&&t!==o||n.contains(r)?"BODY"===(r=(n=o).nodeName)||"HTML"!==r&&d(n.firstElementChild)!==n?d(o):o:(r=h(e)).host?m(r.host,t):m(e,h(t).host)):document.documentElement}function b(e,t){var t="top"===(1<arguments.length&&void 0!==t?t:"top")?"scrollTop":"scrollLeft",o=e.nodeName;return("BODY"===o||"HTML"===o?(o=e.ownerDocument.documentElement,e.ownerDocument.scrollingElement||o):e)[t]}function q(e,t){var t="x"===t?"Left":"Top",o="Left"==t?"Right":"Bottom";return parseFloat(e["border"+t+"Width"])+parseFloat(e["border"+o+"Width"])}function G(e,t,o,n){return Math.max(t["offset"+e],t["scroll"+e],o["client"+e],o["offset"+e],o["scroll"+e],u(10)?parseInt(o["offset"+e])+parseInt(n["margin"+("Height"===e?"Top":"Left")])+parseInt(n["margin"+("Height"===e?"Bottom":"Right")]):0)}function K(e){var t=e.body,e=e.documentElement,o=u(10)&&getComputedStyle(e);return{height:G("Height",t,e,o),width:G("Width",t,e,o)}}var e=function(e,t,o){return t&&Q(e.prototype,t),o&&Q(e,o),e};function Q(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function v(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o,n=arguments[t];for(o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};function y(e){return g({},e,{right:e.left+e.width,bottom:e.top+e.height})}function Z(e){var t={};try{u(10)?(t=e.getBoundingClientRect(),o=b(e,"top"),n=b(e,"left"),t.top+=o,t.left+=n,t.bottom+=o,t.right+=n):t=e.getBoundingClientRect()}catch(e){}var o={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},n="HTML"===e.nodeName?K(e.ownerDocument):{},t=n.width||e.clientWidth||o.width,n=n.height||e.clientHeight||o.height,t=e.offsetWidth-t,n=e.offsetHeight-n;return(t||n)&&(t-=q(e=f(e),"x"),n-=q(e,"y"),o.width-=t,o.height-=n),y(o)}function ee(e,t,o){var o=2<arguments.length&&void 0!==o&&o,n=u(10),r="HTML"===t.nodeName,i=Z(e),a=Z(t),e=p(e),s=f(t),c=parseFloat(s.borderTopWidth),l=parseFloat(s.borderLeftWidth),a=(o&&r&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0)),y({top:i.top-a.top-c,left:i.left-a.left-l,width:i.width,height:i.height}));return a.marginTop=0,a.marginLeft=0,!n&&r&&(i=parseFloat(s.marginTop),r=parseFloat(s.marginLeft),a.top-=c-i,a.bottom-=c-i,a.left-=l-r,a.right-=l-r,a.marginTop=i,a.marginLeft=r),a=(n&&!o?t.contains(e):t===e&&"BODY"!==e.nodeName)?function(e,t,o){var o=2<arguments.length&&void 0!==o&&o,n=b(t,"top"),t=b(t,"left"),o=o?-1:1;return e.top+=n*o,e.bottom+=n*o,e.left+=t*o,e.right+=t*o,e}(a,t):a}function te(e){if(!e||!e.parentElement||u())return document.documentElement;for(var t=e.parentElement;t&&"none"===f(t,"transform");)t=t.parentElement;return t||document.documentElement}function oe(e,t,o,n,r){var i,r=4<arguments.length&&void 0!==r&&r,a={top:0,left:0},s=r?te(e):m(e,Y(t)),s=("viewport"===n?a=function(e,t){var t=1<arguments.length&&void 0!==t&&t,o=e.ownerDocument.documentElement,e=ee(e,o),n=Math.max(o.clientWidth,window.innerWidth||0),r=Math.max(o.clientHeight,window.innerHeight||0),i=t?0:b(o),t=t?0:b(o,"left");return y({top:i-e.top+e.marginTop,left:t-e.left+e.marginLeft,width:n,height:r})}(s,r):(i=void 0,"scrollParent"===n?"BODY"===(i=p(c(t))).nodeName&&(i=e.ownerDocument.documentElement):i="window"===n?e.ownerDocument.documentElement:n,t=ee(i,s,r),"HTML"!==i.nodeName||function e(t){var o=t.nodeName;return"BODY"!==o&&"HTML"!==o&&("fixed"===f(t,"position")||!!(o=c(t))&&e(o))}(s)?a=t:(r=(n=K(e.ownerDocument)).height,i=n.width,a.top+=t.top-t.marginTop,a.bottom=r+t.top,a.left+=t.left-t.marginLeft,a.right=i+t.left)),"number"==typeof(o=o||0));return a.left+=s?o:o.left||0,a.top+=s?o:o.top||0,a.right-=s?o:o.right||0,a.bottom-=s?o:o.bottom||0,a}function ne(e,t,o,n,r,i){var a,i=5<arguments.length&&void 0!==i?i:0;return-1===e.indexOf("auto")?e:(n=oe(o,n,i,r),a={top:{width:n.width,height:t.top-n.top},right:{width:n.right-t.right,height:n.height},bottom:{width:n.width,height:n.bottom-t.bottom},left:{width:t.left-n.left,height:n.height}},(0<(r=(i=Object.keys(a).map(function(e){return g({key:e},a[e],{area:(e=a[e]).width*e.height})}).sort(function(e,t){return t.area-e.area})).filter(function(e){var t=e.width,e=e.height;return t>=o.clientWidth&&e>=o.clientHeight})).length?r:i)[0].key+((t=e.split("-")[1])?"-"+t:""))}function re(e,t,o,n){n=3<arguments.length&&void 0!==n?n:null;return ee(o,n?te(t):m(t,Y(o)),n)}function ie(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),o=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),t=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+t,height:e.offsetHeight+o}}function w(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 ae(e,t,o){o=o.split("-")[0];var e=ie(e),n={width:e.width,height:e.height},r=-1!==["right","left"].indexOf(o),i=r?"top":"left",a=r?"left":"top",s=r?"height":"width",r=r?"width":"height";return n[i]=t[i]+t[s]/2-e[s]/2,n[a]=o===a?t[a]-e[r]:t[w(a)],n}function O(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function se(e,o,t){var n,r;return(void 0===t?e:e.slice(0,(e=e,n="name",r=t,Array.prototype.findIndex?e.findIndex(function(e){return e[n]===r}):(t=O(e,function(e){return e[n]===r}),e.indexOf(t))))).forEach(function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var t=e.function||e.fn;e.enabled&&U(t)&&(o.offsets.popper=y(o.offsets.popper),o.offsets.reference=y(o.offsets.reference),o=t(o,e))}),o}function ce(e,o){return e.some(function(e){var t=e.name;return e.enabled&&t===o})}function le(e){for(var t=[!1,"ms","Webkit","Moz","O"],o=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<t.length;n++){var r=t[n],r=r?""+r+o:e;if(void 0!==document.body.style[r])return r}return null}function pe(e){e=e.ownerDocument;return e?e.defaultView:window}function fe(e,t,o,n){o.updateBound=n,pe(e).addEventListener("resize",o.updateBound,{passive:!0});n=p(e);return function e(t,o,n,r){var i="BODY"===t.nodeName,t=i?t.ownerDocument.defaultView:t;t.addEventListener(o,n,{passive:!0}),i||e(p(t.parentNode),o,n,r),r.push(t)}(n,"scroll",o.updateBound,o.scrollParents),o.scrollElement=n,o.eventsEnabled=!0,o}function ue(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,pe(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))}function de(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function he(o,n){Object.keys(n).forEach(function(e){var t="";-1!==["width","height","top","right","bottom","left"].indexOf(e)&&de(n[e])&&(t="px"),o.style[e]=n[e]+t})}function me(e,t){function o(e){return e}var n=e.offsets,r=n.popper,n=n.reference,i=Math.round,a=Math.floor,n=i(n.width),s=i(r.width),c=-1!==["left","right"].indexOf(e.placement),e=-1!==e.placement.indexOf("-"),c=t?c||e||n%2==s%2?i:a:o,a=t?i:o;return{left:c(n%2==1&&s%2==1&&!e&&t?r.left-1:r.left),top:a(r.top),bottom:a(r.bottom),right:c(r.right)}}var be=o&&/Firefox/i.test(navigator.userAgent);function ve(e,t,o){var n,r=O(e,function(e){return e.name===t}),e=!!r&&e.some(function(e){return e.name===o&&e.enabled&&e.order<r.order});return e||(n="`"+t+"`",console.warn("`"+o+"`"+" modifier is required by "+n+" modifier in order to work, be sure to include it before "+n+"!")),e}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"],ge=t.slice(3);function ye(e,t){t=1<arguments.length&&void 0!==t&&t,e=ge.indexOf(e),e=ge.slice(e+1).concat(ge.slice(0,e));return t?e.reverse():e}var we="flip",Oe="clockwise",xe="counterclockwise";function Se(e,s,c,t){var r=[0,0],n=-1!==["right","left"].indexOf(t),t=e.split(/(\+|\-)/).map(function(e){return e.trim()}),e=t.indexOf(O(t,function(e){return-1!==e.search(/,|\s/)})),o=(t[e]&&-1===t[e].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead."),/\s*,\s*|\s+/);return(-1!==e?[t.slice(0,e).concat([t[e].split(o)[0]]),[t[e].split(o)[1]].concat(t.slice(e+1))]:[t]).map(function(e,t){var a=(1===t?!n:n)?"height":"width",o=!1;return e.reduce(function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,o=!0,e):o?(e[e.length-1]+=t,o=!1,e):e.concat(t)},[]).map(function(e){return t=a,o=s,n=c,r=+(i=(e=e).match(/((?:\-|\+)?\d*\.?\d*)(.*)/))[1],i=i[2],r?0===i.indexOf("%")?y("%p"===i?o:n)[t]/100*r:"vh"===i||"vw"===i?("vh"===i?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*r:r:e;var t,o,n,r,i})}).forEach(function(o,n){o.forEach(function(e,t){de(e)&&(r[n]+=e*("-"===o[t-1]?-1:1))})}),r}var x={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t,o,n,r=e.placement,i=r.split("-")[0];return(r=r.split("-")[1])&&(t=(o=e.offsets).reference,o=o.popper,n=(i=-1!==["bottom","top"].indexOf(i))?"width":"height",i={start:v({},i=i?"left":"top",t[i]),end:v({},i,t[i]+t[n]-o[n])},e.offsets.popper=g({},o,i[r])),e}},offset:{order:200,enabled:!0,fn:function(e,t){var t=t.offset,o=e.placement,n=(r=e.offsets).popper,r=r.reference,o=o.split("-")[0],i=void 0,i=de(+t)?[+t,0]:Se(t,n,r,o);return"left"===o?(n.top+=i[0],n.left-=i[1]):"right"===o?(n.top+=i[0],n.left+=i[1]):"top"===o?(n.left+=i[0],n.top-=i[1]):"bottom"===o&&(n.left+=i[0],n.top+=i[1]),e.popper=n,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,n){var t=n.boundariesElement||d(e.instance.popper),o=(e.instance.reference===t&&(t=d(t)),le("transform")),r=e.instance.popper.style,i=r.top,a=r.left,s=r[o],c=(r.top="",r.left="",r[o]="",oe(e.instance.popper,e.instance.reference,n.padding,t,e.positionFixed)),t=(r.top=i,r.left=a,r[o]=s,n.boundaries=c,n.priority),l=e.offsets.popper,p={primary:function(e){var t=l[e];return l[e]<c[e]&&!n.escapeWithReference&&(t=Math.max(l[e],c[e])),v({},e,t)},secondary:function(e){var t="right"===e?"left":"top",o=l[t];return l[e]>c[e]&&!n.escapeWithReference&&(o=Math.min(l[t],c[e]-("right"===e?l.width:l.height))),v({},t,o)}};return t.forEach(function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";l=g({},l,p[t](e))}),e.offsets.popper=l,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=(o=e.offsets).popper,o=o.reference,n=e.placement.split("-")[0],r=Math.floor,i=(n=-1!==["top","bottom"].indexOf(n))?"right":"bottom",a=n?"left":"top",n=n?"width":"height";return t[i]<r(o[a])&&(e.offsets.popper[a]=r(o[a])-t[n]),t[a]>r(o[i])&&(e.offsets.popper[a]=r(o[i])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){if(ve(e.instance.modifiers,"arrow","keepTogether")){t=t.element;if("string"==typeof t){if(!(t=e.instance.popper.querySelector(t)))return e}else if(!e.instance.popper.contains(t))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var o=e.placement.split("-")[0],n=e.offsets,r=n.popper,n=n.reference,o=-1!==["left","right"].indexOf(o),i=o?"height":"width",a=o?"Top":"Left",s=a.toLowerCase(),c=o?"left":"top",o=o?"bottom":"right",l=ie(t)[i],o=(n[o]-l<r[s]&&(e.offsets.popper[s]-=r[s]-(n[o]-l)),n[s]+l>r[o]&&(e.offsets.popper[s]+=n[s]+l-r[o]),e.offsets.popper=y(e.offsets.popper),n[s]+n[i]/2-l/2),n=f(e.instance.popper),p=parseFloat(n["margin"+a]),n=parseFloat(n["border"+a+"Width"]),a=o-e.offsets.popper[s]-p-n,a=Math.max(Math.min(r[i]-l,a),0);e.arrowElement=t,e.offsets.arrow=(v(o={},s,Math.round(a)),v(o,c,""),o)}return e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(l,p){if(!(ce(l.instance.modifiers,"inner")||l.flipped&&l.placement===l.originalPlacement)){var f=oe(l.instance.popper,l.instance.reference,p.padding,p.boundariesElement,l.positionFixed),u=l.placement.split("-")[0],d=w(u),h=l.placement.split("-")[1]||"",m=[];switch(p.behavior){case we:m=[u,d];break;case Oe:m=ye(u);break;case xe:m=ye(u,!0);break;default:m=p.behavior}m.forEach(function(e,t){if(u!==e||m.length===t+1)return l;u=l.placement.split("-")[0],d=w(u);var e=l.offsets.popper,o=l.offsets.reference,n=Math.floor,o="left"===u&&n(e.right)>n(o.left)||"right"===u&&n(e.left)<n(o.right)||"top"===u&&n(e.bottom)>n(o.top)||"bottom"===u&&n(e.top)<n(o.bottom),r=n(e.left)<n(f.left),i=n(e.right)>n(f.right),a=n(e.top)<n(f.top),e=n(e.bottom)>n(f.bottom),n="left"===u&&r||"right"===u&&i||"top"===u&&a||"bottom"===u&&e,s=-1!==["top","bottom"].indexOf(u),c=!!p.flipVariations&&(s&&"start"===h&&r||s&&"end"===h&&i||!s&&"start"===h&&a||!s&&"end"===h&&e),i=!!p.flipVariationsByContent&&(s&&"start"===h&&i||s&&"end"===h&&r||!s&&"start"===h&&e||!s&&"end"===h&&a),r=c||i;(o||n||r)&&(l.flipped=!0,(o||n)&&(u=m[t+1]),r&&(h="end"===(e=h)?"start":"start"===e?"end":e),l.placement=u+(h?"-"+h:""),l.offsets.popper=g({},l.offsets.popper,ae(l.instance.popper,l.offsets.reference,l.placement)),l=se(l.instance.modifiers,l,"flip"))})}return l},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,o=t.split("-")[0],n=(r=e.offsets).popper,r=r.reference,i=-1!==["left","right"].indexOf(o),a=-1===["top","left"].indexOf(o);return n[i?"left":"top"]=r[o]-(a?n[i?"width":"height"]:0),e.placement=w(t),e.offsets.popper=y(n),e}},hide:{order:800,enabled:!0,fn:function(e){if(ve(e.instance.modifiers,"hide","preventOverflow")){var t=e.offsets.reference,o=O(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottom<o.top||t.left>o.right||t.top>o.bottom||t.right<o.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 o=t.x,n=t.y,r=e.offsets.popper,i=(void 0!==(i=O(e.instance.modifiers,function(e){return"applyStyle"===e.name}).gpuAcceleration)&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!"),void 0!==i?i:t.gpuAcceleration),a=Z(t=d(e.instance.popper)),r={position:r.position},s=me(e,window.devicePixelRatio<2||!be),o="bottom"===o?"top":"bottom",n="right"===n?"left":"right",c=le("transform"),l=void 0,p=void 0,p="bottom"==o?"HTML"===t.nodeName?-t.clientHeight+s.bottom:-a.height+s.bottom:s.top,l="right"==n?"HTML"===t.nodeName?-t.clientWidth+s.right:-a.width+s.right:s.left,a=(i&&c?(r[c]="translate3d("+l+"px, "+p+"px, 0)",r[o]=0,r[n]=0,r.willChange="transform"):(t="right"==n?-1:1,r[o]=p*("bottom"==o?-1:1),r[n]=l*t,r.willChange=o+", "+n),{"x-placement":e.placement});return e.attributes=g({},a,e.attributes),e.styles=g({},r,e.styles),e.arrowStyles=g({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,o;return he(e.instance.popper,e.styles),t=e.instance.popper,o=e.attributes,Object.keys(o).forEach(function(e){!1!==o[e]?t.setAttribute(e,o[e]):t.removeAttribute(e)}),e.arrowElement&&Object.keys(e.arrowStyles).length&&he(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,o,n,r){return r=re(r,t,e,o.positionFixed),r=ne(o.placement,r,t,e,o.modifiers.flip.boundariesElement,o.modifiers.flip.padding),t.setAttribute("x-placement",r),he(t,{position:o.positionFixed?"fixed":"absolute"}),o},gpuAcceleration:void 0}}},S=(e(E,[{key:"update",value:function(){return function(){var e;this.state.isDestroyed||((e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}}).offsets.reference=re(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=ne(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=ae(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=se(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,ce(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[le("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=fe(this.reference,this.options,this.state,this.scheduleUpdate))}.call(this)}},{key:"disableEventListeners",value:function(){return ue.call(this)}}]),E);function E(e,t){var o=this,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},r=this,i=E;if(!(r instanceof i))throw new TypeError("Cannot call a class as a function");this.scheduleUpdate=function(){return requestAnimationFrame(o.update)},this.update=V(this.update.bind(this)),this.options=g({},E.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(g({},E.Defaults.modifiers,n.modifiers)).forEach(function(e){o.options.modifiers[e]=g({},E.Defaults.modifiers[e]||{},n.modifiers?n.modifiers[e]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return g({name:e},o.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&U(e.onLoad)&&e.onLoad(o.reference,o.popper,o.options,e,o.state)}),this.update();r=this.options.eventsEnabled;r&&this.enableEventListeners(),this.state.eventsEnabled=r}function Ee(t,e){var o,n=Object.keys(t);return Object.getOwnPropertySymbols&&(o=Object.getOwnPropertySymbols(t),e&&(o=o.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,o)),n}function Pe(n){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ee(Object(r),!0).forEach(function(e){var t,o;t=n,o=r[e=e],e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):Ee(Object(r)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))})}return n}S.Utils=("undefined"!=typeof window?window:global).PopperUtils,S.placements=t,S.Defaults=x;var P="undefined"!=typeof window&&"undefined"!=typeof document;function Te(e,t,o,n){var r,i,n=3<arguments.length&&void 0!==n?n:"left",a=o.offsets,o=o.arrowElement,s=a.arrow,c=a.reference,a=a.popper,s="left"===n?s.left:s.top;return"number"==typeof s&&(i="left"===n?"left":"top",r="left"===n?"width":"height",n="left"===n?"offsetWidth":"offsetHeight",i="start"===e?t+Math.max(0,-(a[i]-c[i])):"end"===e?Math.min(c[r],a[r])-Math.min(0,a[i]-c[i])-t-o[n]:s<t?t:(e=a[r]-o[n]-t)<s?e:s),i}e={name:"VuePopper",props:{arrowPosition:{default:"middle",type:String},arrowOffsetScaling:{default:P&&window.devicePixelRatio||1,type:Number},referenceElm:P?[Window,Element,Document]:Object,popperOptions:Object},data:function(){return{popperJs:null}},computed:{options:function(){var n=this,e=(this.popperOptions||{}).modifiers;return Pe({},this.popperOptions,{modifiers:Pe({},e,{arrow:{fn:function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return function(e,t,o,n){return(o=S.Defaults.modifiers.arrow.fn(o,n)).offsets.arrow.left=Te(e,t,o),o.offsets.arrow.top=Te(e,t,o,"top"),o}.apply(void 0,[n.arrowPosition,n.arrowOffset].concat(t))},element:"[x-arrow]"}})})},arrowOffset:function(){return 10*this.arrowOffsetScaling}},watch:{referenceElm:function(){this.createPopper()}},methods:{referenceEle:function(){return this.referenceElm||(P&&this.$el?this.$el.parentNode||window:null)},createPopper:function(){var e=this.referenceEle();e&&(this.destroyPopper(),this.popperJs=new S(e,this.$el,this.options))},updatePopper:function(){this.popperJs&&this.popperJs.scheduleUpdate()},destroyPopper:function(){this.popperJs&&this.popperJs.destroy()}},mounted:function(){var e,t,o=this;P&&(e="vue-popper-module-style",document.getElementById(e)||((t=document.createElement("style")).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))),this.createPopper(),this.$on("hook:updated",function(){return o.updatePopper()}),this.$on("hook:beforeDestroy",function(){return o.destroyPopper()})}};je=$e=_=_e=t=T=void 0,"boolean"!=typeof(j=Ne=!(x={render:function(){var e=this.$createElement,e=this._self._c||e;return e("div",{staticClass:"vue-popper"},[e("div",{staticClass:"arrow",attrs:{"x-arrow":""}}),this._v(" "),this._t("default")],2)},staticRenderFns:[]}))&&($e=_,_=j,j=!1),H="function"==typeof(e=e)?e.options:e,x&&x.render&&(H.render=x.render,H.staticRenderFns=x.staticRenderFns,H._compiled=!0,Ne)&&(H.functional=!0),t&&(H._scopeId=t),_e?($=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,$e(e)),e&&e._registeredComponents&&e._registeredComponents.add(_e)},H._ssrRegister=$):T&&($=j?function(e){T.call(this,je(e,this.$root.$options.shadowRoot))}:function(e){T.call(this,_(e))}),$&&(H.functional?(He=H.render,H.render=function(e,t){return $.call(t),He(e,t)}):(x=H.beforeCreate,H.beforeCreate=x?[].concat(x,$):[$]));var T,_e,_,$e,je,$,He,Ne=e,t=Me,j=Me,H=Me,Le=/(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,Ce=/(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 Me(e){var t,o=(e=e||{}).ua;return"string"==typeof(o=(o=o||"undefined"==typeof navigator?o:navigator.userAgent)&&o.headers&&"string"==typeof o.headers["user-agent"]?o.headers["user-agent"]:o)&&(!!(!(t=(e.tablet?Ce:Le).test(o))&&e.tablet&&e.featureDetect&&navigator&&1<navigator.maxTouchPoints&&-1!==o.indexOf("Macintosh")&&-1!==o.indexOf("Safari"))||t)}function De(t,e){var o,n=Object.keys(t);return Object.getOwnPropertySymbols&&(o=Object.getOwnPropertySymbols(t),e&&(o=o.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,o)),n}function N(n){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?De(Object(r),!0).forEach(function(e){var t,o;t=n,o=r[e=e],e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):De(Object(r)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))})}return n}function ke(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var o=[],n=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(o.push(a.value),!t||o.length!==t);n=!0);}catch(e){r=!0,i=e}finally{try{n||null==s.return||s.return()}finally{if(r)throw i}}return o}}(e,t)||function(e,t){var o;if(e)return"string"==typeof e?Ae(e,t):"Map"===(o="Object"===(o=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:o)||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?Ae(e,t):void 0}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ae(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}t.isMobile=j,t.default=H,"undefined"!=typeof window&&"undefined"!=typeof document&&0 in document.createElement("div");var We=j(),Re="",Fe="addEventListener",Be="removeEventListener";function L(e,t,o,n){var r=Re+t;return e[Fe].bind(e)(r,o,n),function(){e[Be].bind(e)(r,o,n)}}"undefined"!=typeof window&&"undefined"!=typeof document&&("addEventListener"in window?(Fe="addEventListener",Be="removeEventListener"):(Fe="attachEvent",Be="detachEvent",Re="on"));var Ie=Object.freeze({$isMobile:We,$addListener:L}),x=We?"mobile":"pc",C={start:{pc:"mousedown",mobile:"touchstart"}[x],move:{pc:"mousemove",mobile:"touchmove"}[x],end:{pc:"mouseup",mobile:"touchend"}[x]};function M(e){var t=null;return(t=We?(0<e.changedTouches.length||0<e.targetTouched.length?ke(e.changedTouches,1):ke(e.touches,1))[0]:t)||e}function ze(e,t){return{deltaX:M(e).clientX-M(t).clientX,deltaY:M(e).clientY-M(t).clientY,originalEvent:e}}var Ve=Object.freeze({bind:function(e,i,a){var s,c;return"function"==typeof e&&(a=i,i=e,e=window),L(e,C.start,function e(t){var o,n,r={deltaX:0,deltaY:0,originalEvent:t,type:"dragMoveStart"};t.type===C.start?(s=t,o=L(window,C.move,e,a),n=L(window,C.end,e,a),c=function(){o(),n()}):t.type===C.move?r=N(N({},ze(t,s)),{},{type:"dragMove"}):t.type===C.end&&(r=N(N({},ze(t,s)),{},{type:"dragMoveEnd"}),c)&&c(),i(r)},a)}});function D(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function Ue(t,e){var o,n=Object.keys(t);return Object.getOwnPropertySymbols&&(o=Object.getOwnPropertySymbols(t),e&&(o=o.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,o)),n}var Ye={x:{posPropName:"left",parentScrollPos:"scrollLeft",deltaName:"deltaX",sizeName:"width"},y:{posPropName:"top",parentScrollPos:"scrollTop",deltaName:"deltaY",sizeName:"height"}},Xe={opacity:1,pointerEvents:"initial"};e=function(e,t,o,n,r,i,a,s,c,l){"boolean"!=typeof a&&(c=s,s=a,a=!1);var p,f,u="function"==typeof o?o.options:o;return e&&e.render&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns,u._compiled=!0,r)&&(u.functional=!0),n&&(u._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)},u._ssrRegister=p):t&&(p=a?function(){t.call(this,l(this.$root.$options.shadowRoot))}:function(e){t.call(this,s(e))}),p&&(u.functional?(f=u.render,u.render=function(e,t){return p.call(t),f(e,t)}):(e=u.beforeCreate,u.beforeCreate=e?[].concat(e,p):[p])),o},t=e({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"}],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 Ye[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 o=null!=arguments[e]?arguments[e]:{};e%2?Ue(o,!0).forEach(function(e){D(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Ue(o).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}({},this.showBar?Xe:{},(D(e={},this.$_scrollbarType.posPropName,"".concat(this.sPosition,"px !important")),D(e,this.$_scrollbarType.sizeName,"".concat(this.size,"px !important")),D(e,"userSelect","none"),e))}},watch:{$_show:{handler:function(e){var t=this;this.$nextTick(function(){t.unbind&&t.unbind(),e&&"undefined"!=typeof window&&t.$el&&(t.unbind=Ve.bind(t.$el,t.drag))})},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",D({},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 Je(e,t){var o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};return e.some(function(e){return!!t(e)&&(o=e,!0)}),o}function qe(e,t,o,n,r,i,a,s,c,l){"boolean"!=typeof a&&(c=s,s=a,a=!1);var p,f,u="function"==typeof o?o.options:o;return e&&e.render&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns,u._compiled=!0,r)&&(u.functional=!0),n&&(u._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)},u._ssrRegister=p):t&&(p=a?function(e){t.call(this,l(e,this.$root.$options.shadowRoot))}:function(e){t.call(this,s(e))}),p&&(u.functional?(f=u.render,u.render=function(e,t){return p.call(t),f(e,t)}):(e=u.beforeCreate,u.beforeCreate=e?[].concat(e,p):[p])),o}return qe({render:function(){var t=this,e=t.$createElement,e=t._self._c||e;return e("div",{ref:"wrap",staticClass:"select-base",class:{disabled:!t.canEdit}},[e("div",{directives:[{name:"show",rawName:"v-show",value:!t.canEdit||!t.canSearch||t.optionsHidden,expression:"!canEdit || !canSearch || optionsHidden"}],staticClass:"value",class:{placeholder:!t.selected.value&&0!==t.selected.value},style:t.inputWrapStyle,domProps:{innerHTML:t._s(t.selected.name||t.$placeholder)}}),t._v(" "),t.canEdit?[t.canSearch?e("input",{directives:[{name:"show",rawName:"v-show",value:!t.optionsHidden,expression:"!optionsHidden"},{name:"model",rawName:"v-model",value:t.inputVal,expression:"inputVal"}],ref:"input",staticClass:"input",style:t.inputWrapStyle,attrs:{placeholder:t.$searchPlaceholder},domProps:{value:t.inputVal},on:{input:function(e){e.target.composing||(t.inputVal=e.target.value)}}}):t._e(),t._v(" "),e("span",{staticClass:"icon-arrow",class:{reverse:!t.optionsHidden}}),t._v(" "),e("popper",{directives:[{name:"show",rawName:"v-show",value:!t.optionsHidden,expression:"!optionsHidden"}],ref:"optionsEl",staticClass:"options",attrs:{popperOptions:t.$popperProps.popperOptions,arrowPosition:t.$popperProps.arrowPosition,arrowOffsetScaling:t.$popperProps.arrowOffsetScaling}},[e("options",{attrs:{$_select_isMobile:t.$_select_isMobile,maxHeight:t.maxHeight,marginToWrap:t.marginToWrap,options:t.showOptions},on:{startDrag:function(e){t.shouldHide=!1},endDrag:t.endDrag,select:t.click}},[t._t("default")],2)],1)]:t._e()],2)},staticRenderFns:[]},void 0,{mixins:[{components:{Options:qe({render:function(){var o=this,e=o.$createElement,n=o._self._c||e;return n("scrollbar",o._g({attrs:{isMobile:o.$_select_isMobile,maxHeight:o.maxHeight,scrollTo:o.scrollTo,marginToWrap:o.marginToWrap}},o.$listeners),[o._l(o.options,function(t,e){return n("div",{key:e,ref:"option-"+e,refInFor:!0,staticClass:"option",class:{selected:t.selected},on:{mouseenter:function(e){return o.$emit("hover",t)},click:function(e){return e.stopPropagation(),o.$emit("select",t)}}})}),o._v(" "),o.options.length?o._e():o._t("default")],2)},staticRenderFns:[]},void 0,{components:{scrollbar:e({render:function(){var o=this,e=o.$createElement,n=o._self._c||e;return n("div",{ref:"wrap",staticClass:"scrollbar-wrap",style:o.$_wrapStyle,on:{click:function(e){return o.$emit("wrapClick",e)}}},[n("div",{ref:"content",staticClass:"scrollbar-content",style:o.$_contentStyle},[o._t("default")],2),o._v(" "),!o.isMobile&&o.width.content&&o.height.content?o._l(o.scrollbars,function(e,t){return n("Bar",{key:t,attrs:{type:t,marginToWrap:o.marginToWrap,parentScroll:o.scrollPos[e.scrollPropName],clientSize:e.size.content,scrollSize:e.size.contentInner},on:{scrollTo:function(e){return o.setScroll(e,"drag")}}})}):o._e()],2)},staticRenderFns:[]},void 0,{name:"Scrollbar",components:{Bar:t},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 o=this;return"number"==typeof this.maxHeight?"".concat(this.maxHeight,"px"):/%/.test(this.maxHeight)?this.maxHeight.replace(/(\d+)%/g,function(e,t){return"".concat(o.height.parent*t/100,"px")}):this.maxHeight},$_wrapStyle:function(){return{position:"relative",height:this.isMobile?"auto !important":"".concat(this.height.content,"px !important"),maxHeight:"".concat(this.$_maxHeight," !important"),padding:"0 !important",overflow:"hidden !important"}},$_contentStyle:function(){var e,t;return this.isMobile?{maxHeight:this.$_maxHeight,overflow:"scroll"}:(e=(t=this.nativeScrollbarWidth).x,t=t.y,{width:"calc(100% + ".concat(t,"px) !important"),maxHeight:"calc(".concat(this.$_maxHeight.replace(/(^calc\()|(\)$)/g,"")," + ").concat(e,"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(e){this.$scrollTo(e)},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:{updateScrollbarWidth:function(){this.nativeScrollbarWidth=function(e){var t=(e=e||window)===window;try{var o,n=t?window.nativeScrollbarWidth:null;return n&&"number"==typeof n.y&&"number"==typeof n.x||(o=t?document.createElement("div"):e,t&&(o.setAttribute("style","position:fixed;top:0;left:0;opacity:0;pointer-events:none;width:200px;height:200px;overflow:scroll"),document.body.appendChild(o)),n={y:o.offsetWidth-o.clientWidth,x:o.offsetHeight-o.clientHeight},t&&(window.nativeScrollbarWidth=n,document.body.removeChild(o))),n}catch(e){return{y:17,x:17}}}(this.$refs.content)},updateHeight:function(){var e,t,o,n;this.$refs.content&&"undefined"!=typeof window&&(e=(n=this.$refs.content).scrollHeight,t=n.clientHeight,o=n.scrollWidth,n=n.clientWidth,this.height.content=t,this.height.contentInner=e,this.height.parent=this.$refs.wrap.parentElement.clientHeight,this.width.content=n,this.width.contentInner=o,this.width.parent=this.$refs.wrap.parentElement.clientWidth)},getHeight:function(){this.updateHeight()},$scrollTo:function(t){var o=this;this.$nextTick(function(){var e;null!=t&&(e={scrollLeft:0,scrollTop:0},t.x||t.y?(e.scrollLeft=+t.x*o.maxScroll.scrollLeft,e.scrollTop=+t.y*o.maxScroll.scrollTop):(e.scrollLeft=+t*o.maxScroll.scrollLeft,e.scrollTop=+t*o.maxScroll.scrollTop),o.setScroll(e,"drag"))})},scroll:function(e){var t=this.$refs.content,o=t.scrollTop,t=t.scrollLeft;this.setScroll({scrollTop:o,scrollLeft:t}),this.$emit("scroll",e)},setScroll:function(e){var t=e.scrollTop,e=e.scrollLeft,o="scroll"!==(1<arguments.length&&void 0!==arguments[1]?arguments[1]:"scroll");void 0!==t&&this.setPos(t,"scrollTop",o),void 0!==e&&this.setPos(e,"scrollLeft",o),this.judgeOnBoundary()},setPos:function(e,t,o){this.scrollPos[t]=e,o&&(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}},created:function(){var e,t,n=this,r=!this.isMobile&&"undefined"!=typeof window;r&&(t="vue-scrollbar-live-module-style",document.getElementById(t)||((e=document.createElement("style")).id=t,e.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(e))),this.$once("hook:mounted",function(){var o,t,e;r&&(n.updateScrollbarWidth(),n.$once("hook:beforeDestroy",Ie.$addListener(n.$refs.content,"scroll",n.scroll))),n.updateHeight(),n.$on("hook:beforeDestroy",(o=n,t=function(){n.$emit("domChange"),n.updateScrollbarWidth(),n.updateHeight()},"MutationObserver"in window?((e=new MutationObserver(function(e){e.some(function(e){var t,e=e.target;return o.$el.contains(e)?!(e instanceof Element&&(t=e.className,/^scrollbar\s/.test(t))):e.contains(o.$el)})&&t()})).observe(document.body,{attributes:!0,childList:!0,subtree:!0}),function(){e.disconnect()}):(o.$on("hook:updated",t),function(){})))})}},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 o=this;this.$nextTick(function(){(o.options||[]).forEach(function(e,t){o.$refs["option-".concat(t)]&&((o.$refs["option-".concat(t)][0]||o.$refs["option-".concat(t)]).innerHTML=e.cName||e.name)})})}},beforeMount:function(){var t=this,e=Je(Object.keys(this.options),function(e){return t.options[e].selected});this.scrollTo=1===this.options.length?0:e/(this.options.length-1)}},void 0,!1,void 0,!1,void 0,void 0,void 0),popper:Ne},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}))return e;throw new Error('vue-select: Prop options is invalid! Right example: [{name: "option", value: 1}]')},$popperProps:function(){return function(e){for(var n="same",t=arguments.length,o=new Array(1<t?t-1:0),r=1;r<t;r++)o[r-1]=arguments[r];return[e].concat(o).forEach(function(e,t){var o=B(e);if(o)throw o=JSON.stringify(o),new Error("objectDeepMerge: Circular structure is not supported, the ".concat(t,"th parameter is a circular structure with CircularStructurePaths(").concat(o,")"));t=s(e);if(!t||"same"!==n&&n!==t)throw new Error("objectDeepMerge: Please ensure that parameters are all Array or normal Object");n=t}),I.apply(void 0,[e].concat(o))}({},this.defaultPopperProps,this.popperProps)},$_select_isMobile:function(){return(this.scrollbarProps||{}).isMobile},maxHeight:function(){return(this.scrollbarProps||{}).maxHeight||"50vh"},marginToWrap:function(){return(this.scrollbarProps||{}).marginToWrap||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,o=this;this.canEdit&&(t=e&&this.$refs.wrap.contains(e.target),this.$refs.optionsEl.$el.contains(e.target)||(this.optionsHidden&&t?(this.optionsHidden=!1,this.canSearch&&this.$nextTick(function(){return o.$refs.input.focus()}),"initTemp"in this&&this.initTemp()):(this.shouldHide&&(this.optionsHidden=!0),this.shouldHide=!0)))},endDrag:function(){var e=this;setTimeout