diff --git a/.gitignore b/.gitignore index a2c51692..4eebabaa 100644 --- a/.gitignore +++ b/.gitignore @@ -5,8 +5,8 @@ build docs_ # use scss instead -src/multiple-select.css -src/multiple-select.css.map +src/**/*.css +src/**/*.css.map # Common IDE files nbproject diff --git a/CHANGELOG.md b/CHANGELOG.md index 5e0bc28b..935c9109 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,15 @@ ## Changelog +### 1.4.2 + +- **New:** Added `string/number` array support for `data` option. +- **New:** Added `required` attribute support. +- **New:** Added bootstrap(v3, v4) themes support. +- **Update:** Improved `onAfterCreate` event. +- **Update:** Fixed `destroyed` bug of vue component. +- **Update:** Fixed display bug of only one member of group. +- **Update:** Fixed single group filter bug. + ### 1.4.1 - **New:** Added `displayHtml` option. diff --git a/dist/locale/multiple-select-en-US.min.js b/dist/locale/multiple-select-en-US.min.js index 188acc8b..ae7fe054 100644 --- a/dist/locale/multiple-select-en-US.min.js +++ b/dist/locale/multiple-select-en-US.min.js @@ -1,7 +1,7 @@ /** * multiple-select - Multiple select is a jQuery plugin to select multiple elements with checkboxes :). * - * @version v1.4.1 + * @version v1.4.2 * @homepage http://multiple-select.wenzhixin.net.cn * @author wenzhixin (http://wenzhixin.net.cn/) * @license MIT diff --git a/dist/locale/multiple-select-es-ES.min.js b/dist/locale/multiple-select-es-ES.min.js index c37da804..7b40e5a7 100644 --- a/dist/locale/multiple-select-es-ES.min.js +++ b/dist/locale/multiple-select-es-ES.min.js @@ -1,7 +1,7 @@ /** * multiple-select - Multiple select is a jQuery plugin to select multiple elements with checkboxes :). * - * @version v1.4.1 + * @version v1.4.2 * @homepage http://multiple-select.wenzhixin.net.cn * @author wenzhixin (http://wenzhixin.net.cn/) * @license MIT diff --git a/dist/locale/multiple-select-zh-CN.min.js b/dist/locale/multiple-select-zh-CN.min.js index 9c6f19d4..61a0a82b 100644 --- a/dist/locale/multiple-select-zh-CN.min.js +++ b/dist/locale/multiple-select-zh-CN.min.js @@ -1,7 +1,7 @@ /** * multiple-select - Multiple select is a jQuery plugin to select multiple elements with checkboxes :). * - * @version v1.4.1 + * @version v1.4.2 * @homepage http://multiple-select.wenzhixin.net.cn * @author wenzhixin (http://wenzhixin.net.cn/) * @license MIT diff --git a/dist/locale/multiple-select-zh-TW.min.js b/dist/locale/multiple-select-zh-TW.min.js index 225a4d0e..981ddf02 100644 --- a/dist/locale/multiple-select-zh-TW.min.js +++ b/dist/locale/multiple-select-zh-TW.min.js @@ -1,7 +1,7 @@ /** * multiple-select - Multiple select is a jQuery plugin to select multiple elements with checkboxes :). * - * @version v1.4.1 + * @version v1.4.2 * @homepage http://multiple-select.wenzhixin.net.cn * @author wenzhixin (http://wenzhixin.net.cn/) * @license MIT diff --git a/dist/multiple-select-es.js b/dist/multiple-select-es.js index e43cb795..6640bbbf 100644 --- a/dist/multiple-select-es.js +++ b/dist/multiple-select-es.js @@ -748,7 +748,7 @@ _export({ target: 'String', proto: true, forced: !correctIsRegexpLogic('includes } }); -var VERSION = '1.4.1'; +var VERSION = '1.4.2'; var DEFAULTS = { name: '', placeholder: '', @@ -2706,7 +2706,7 @@ var removeDiacritics = function removeDiacritics(str) { }; function _templateObject26() { - var data = _taggedTemplateLiteral(["[data-group=\"", "\"]"]); + var data = _taggedTemplateLiteral(["[value=\"", "\"]"]); _templateObject26 = function _templateObject26() { return data; @@ -2746,7 +2746,7 @@ function _templateObject23() { } function _templateObject22() { - var data = _taggedTemplateLiteral(["[value=\"", "\"]"]); + var data = _taggedTemplateLiteral(["[", "][data-group=\"", "\"]"]); _templateObject22 = function _templateObject22() { return data; @@ -2756,7 +2756,7 @@ function _templateObject22() { } function _templateObject21() { - var data = _taggedTemplateLiteral(["[", "][data-group=\"", "\"]"]); + var data = _taggedTemplateLiteral(["input[", "]:checked"]); _templateObject21 = function _templateObject21() { return data; @@ -2766,7 +2766,7 @@ function _templateObject21() { } function _templateObject20() { - var data = _taggedTemplateLiteral(["input[", "]:checked"]); + var data = _taggedTemplateLiteral(["[data-group=\"", "\"]"]); _templateObject20 = function _templateObject20() { return data; @@ -2786,7 +2786,7 @@ function _templateObject19() { } function _templateObject18() { - var data = _taggedTemplateLiteral(["[data-group=\"", "\"]"]); + var data = _taggedTemplateLiteral(["", ""]); _templateObject18 = function _templateObject18() { return data; @@ -2796,7 +2796,7 @@ function _templateObject18() { } function _templateObject17() { - var data = _taggedTemplateLiteral(["", ""]); + var data = _taggedTemplateLiteral([" data-group=\"", "\""]); _templateObject17 = function _templateObject17() { return data; @@ -2806,7 +2806,7 @@ function _templateObject17() { } function _templateObject16() { - var data = _taggedTemplateLiteral([" data-group=\"", "\""]); + var data = _taggedTemplateLiteral([""]); _templateObject16 = function _templateObject16() { return data; @@ -2816,7 +2816,7 @@ function _templateObject16() { } function _templateObject15() { - var data = _taggedTemplateLiteral([""]); + var data = _taggedTemplateLiteral(["', ''].join(''); } }, { key: "initView", @@ -3277,6 +3285,7 @@ function () { } this.$parent.css('width', this.options.width || computedWidth); + this.$el.show().addClass('ms-offscreen'); } }, { key: "events", @@ -3366,7 +3375,7 @@ function () { var $items = _this7.$selectItems.filter(':visible'); - var $children = $items.filter(sprintf(_templateObject18(), s)(group)); + var $children = $items.filter(sprintf(_templateObject19(), s)(group)); var checked = $children.length !== $children.filter(':checked').length; $children.prop('checked', checked); @@ -3566,7 +3575,7 @@ function () { $.each(this.$selectGroups, function (i, val) { var group = $(val).parent()[0].getAttribute('data-group'); - var $children = $items.filter(sprintf(_templateObject19(), s)(group)); + var $children = $items.filter(sprintf(_templateObject20(), s)(group)); $(val).prop('checked', $children.length && $children.length === $children.filter(':checked').length); }); } @@ -3598,19 +3607,19 @@ function () { var texts = []; var values = []; - this.$drop.find(sprintf(_templateObject20(), s)(this.selectItemName)).each(function (i, el) { + this.$drop.find(sprintf(_templateObject21(), s)(this.selectItemName)).each(function (i, el) { texts.push($(el).next()[type === 'html' ? 'html' : 'text']()); values.push($(el).val()); }); - if (type === 'text' && this.$selectGroups.length) { + if (type === 'text' && this.$selectGroups.length && !this.options.single) { texts = []; this.$selectGroups.each(function (i, el) { var html = []; var text = $.trim($(el).parent().text()); var group = $(el).parent().data('group'); - var $children = _this8.$drop.find(sprintf(_templateObject21(), s, s)(_this8.selectItemName, group)); + var $children = _this8.$drop.find(sprintf(_templateObject22(), s, s)(_this8.selectItemName, group)); var $selected = $children.filter(':checked'); @@ -3621,7 +3630,7 @@ function () { html.push('['); html.push(text); - if ($children.length > $selected.length) { + if ($children.length >= $selected.length) { var list = []; $selected.each(function (j, elem) { list.push($(elem).parent().text()); @@ -3644,9 +3653,9 @@ function () { this.$selectItems.prop('checked', false); this.$disableItems.prop('checked', false); $.each(values, function (i, value) { - _this9.$selectItems.filter(sprintf(_templateObject22(), s)(value)).prop('checked', true); + _this9.$selectItems.filter(sprintf(_templateObject23(), s)(value)).prop('checked', true); - _this9.$disableItems.filter(sprintf(_templateObject23(), s)(value)).prop('checked', true); + _this9.$disableItems.filter(sprintf(_templateObject24(), s)(value)).prop('checked', true); }); this.$selectAll.prop('checked', this.$selectItems.length === this.$selectItems.filter(':checked').length + this.$disableItems.filter(':checked').length); $.each(this.$selectGroups, function (i, val) { @@ -3686,8 +3695,8 @@ function () { }, { key: "_check", value: function _check(value, checked) { - this.$selectItems.filter(sprintf(_templateObject24(), s)(value)).prop('checked', checked); - this.$disableItems.filter(sprintf(_templateObject25(), s)(value)).prop('checked', checked); + this.$selectItems.filter(sprintf(_templateObject25(), s)(value)).prop('checked', checked); + this.$disableItems.filter(sprintf(_templateObject26(), s)(value)).prop('checked', checked); this.update(); this.updateOptGroupSelect(true); this.updateSelectAll(true, true); @@ -3784,9 +3793,8 @@ function () { _this10.$selectItems.filter("[data-group=\"".concat(group, "\"]")).closest('li')[func](); } else { - var $items = _this10.$selectItems.filter(':visible'); + var _hasText = _this10.$selectItems.filter("[data-group=\"".concat(group, "\"]")).closest('li').filter(':visible').length; - var _hasText = $items.filter(sprintf(_templateObject26(), s)(group)).length; $parent.closest('li')[_hasText ? 'show' : 'hide'](); } }); // Check if no matches found @@ -3811,7 +3819,7 @@ function () { return; } - this.$el.before(this.$parent).show(); + this.$el.before(this.$parent).removeClass('ms-offscreen'); this.$parent.remove(); if (this.fromHtml) { diff --git a/dist/multiple-select-es.min.js b/dist/multiple-select-es.min.js index 57a74b50..b328c262 100644 --- a/dist/multiple-select-es.min.js +++ b/dist/multiple-select-es.min.js @@ -1,10 +1,10 @@ /** * multiple-select - Multiple select is a jQuery plugin to select multiple elements with checkboxes :). * - * @version v1.4.1 + * @version v1.4.2 * @homepage http://multiple-select.wenzhixin.net.cn * @author wenzhixin (http://wenzhixin.net.cn/) * @license MIT */ -function _typeof(e){return _typeof="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},_typeof(e)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var l,n=0;narguments.length?aFunction(path[e])||aFunction(global_1[e]):path[e]&&path[e][t]||global_1[e]&&global_1[e][t]},ceil=Math.ceil,floor=Math.floor,toInteger=function(e){return isNaN(e=+e)?0:(0l?max(l+t,0):min$1(l,t)},createMethod=function(e){return function(t,l,n){var o,s=toIndexedObject(t),i=toLength(s.length),a=toAbsoluteIndex(n,i);if(e&&l!=l){for(;i>a;)if(o=s[a++],o!=o)return!0;}else for(;i>a;a++)if((e||a in s)&&s[a]===l)return e||a||0;return!e&&-1}},arrayIncludes={includes:createMethod(!0),indexOf:createMethod(!1)},indexOf=arrayIncludes.indexOf,objectKeysInternal=function(e,t){var l,n=toIndexedObject(e),o=0,s=[];for(l in n)!has(hiddenKeys,l)&&has(n,l)&&s.push(l);for(;t.length>o;)has(n,l=t[o++])&&(~indexOf(s,l)||s.push(l));return s},enumBugKeys=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],hiddenKeys$1=enumBugKeys.concat("length","prototype"),f$3=Object.getOwnPropertyNames||function(e){return objectKeysInternal(e,hiddenKeys$1)},objectGetOwnPropertyNames={f:f$3},f$4=Object.getOwnPropertySymbols,objectGetOwnPropertySymbols={f:f$4},ownKeys=getBuiltIn("Reflect","ownKeys")||function(e){var t=objectGetOwnPropertyNames.f(anObject(e)),l=objectGetOwnPropertySymbols.f;return l?t.concat(l(e)):t},copyConstructorProperties=function(e,t){for(var l,n=ownKeys(t),o=objectDefineProperty.f,s=objectGetOwnPropertyDescriptor.f,a=0;as;)objectDefineProperty.f(e,l=n[s++],t[l]);return e},html=getBuiltIn("document","documentElement"),IE_PROTO=sharedKey("IE_PROTO"),PROTOTYPE="prototype",Empty=function(){},createDict=function(){var e,t=documentCreateElement("iframe"),l=enumBugKeys.length,n="<",o="script",s=">";for(t.style.display="none",html.appendChild(t),t.src="java"+o+":"+"",e=t.contentWindow.document,e.open(),e.write(n+o+s+"document.F=Object"+n+"/"+o+s),e.close(),createDict=e.F;l--;)delete createDict[PROTOTYPE][enumBugKeys[l]];return createDict()},objectCreate=Object.create||function(e,t){var l;return null===e?l=createDict():(Empty[PROTOTYPE]=anObject(e),l=new Empty,Empty[PROTOTYPE]=null,l[IE_PROTO]=e),void 0===t?l:objectDefineProperties(l,t)};hiddenKeys[IE_PROTO]=!0;var UNSCOPABLES=wellKnownSymbol("unscopables"),ArrayPrototype=Array.prototype;ArrayPrototype[UNSCOPABLES]==null&&hide(ArrayPrototype,UNSCOPABLES,objectCreate(null));var addToUnscopables=function(e){ArrayPrototype[UNSCOPABLES][e]=!0},$includes=arrayIncludes.includes;_export({target:"Array",proto:!0},{includes:function(e){return $includes(this,e,1n;)for(var i,a=indexedObject(arguments[n++]),r=o?objectKeys(a).concat(o(a)):objectKeys(a),c=r.length,d=0;c>d;)i=r[d++],(!descriptors||s.call(a,i))&&(t[i]=a[i]);return t}:nativeAssign;_export({target:"Object",stat:!0,forced:Object.assign!==objectAssign},{assign:objectAssign});var MATCH=wellKnownSymbol("match"),isRegexp=function(e){var t;return isObject(e)&&((t=e[MATCH])===void 0?"RegExp"==classofRaw(e):!!t)},notARegexp=function(e){if(isRegexp(e))throw TypeError("The method doesn't accept regular expressions");return e},MATCH$1=wellKnownSymbol("match"),correctIsRegexpLogic=function(e){var t=/./;try{"/./"[e](t)}catch(l){try{return t[MATCH$1]=!1,"/./"[e](t)}catch(e){}}return!1};_export({target:"String",proto:!0,forced:!correctIsRegexpLogic("includes")},{includes:function(e){return!!~(requireObjectCoercible(this)+"").indexOf(notARegexp(e),1h;h++)if((5==e||n||h in p)&&(r=p[h],c=u(r,h,d),e))if(t)m[h]=c;else if(c)switch(e){case 3:return!0;case 5:return r;case 6:return h;case 2:push.call(m,r);}else if(l)return!1;return n?-1:3==e||l?l:m}},arrayIteration={forEach:createMethod$1(0),map:createMethod$1(1),filter:createMethod$1(2),some:createMethod$1(3),every:createMethod$1(4),find:createMethod$1(5),findIndex:createMethod$1(6)},$forEach=arrayIteration.forEach,HIDDEN=sharedKey("hidden"),SYMBOL="Symbol",PROTOTYPE$1="prototype",TO_PRIMITIVE=wellKnownSymbol("toPrimitive"),setInternalState=internalState.set,getInternalState=internalState.getterFor(SYMBOL),ObjectPrototype=Object[PROTOTYPE$1],$Symbol=global_1.Symbol,JSON=global_1.JSON,nativeJSONStringify=JSON&&JSON.stringify,nativeGetOwnPropertyDescriptor$1=objectGetOwnPropertyDescriptor.f,nativeDefineProperty$1=objectDefineProperty.f,nativeGetOwnPropertyNames$1=objectGetOwnPropertyNamesExternal.f,nativePropertyIsEnumerable$1=objectPropertyIsEnumerable.f,AllSymbols=shared("symbols"),ObjectPrototypeSymbols=shared("op-symbols"),StringToSymbolRegistry=shared("string-to-symbol-registry"),SymbolToStringRegistry=shared("symbol-to-string-registry"),WellKnownSymbolsStore=shared("wks"),QObject=global_1.QObject,USE_SETTER=!QObject||!QObject[PROTOTYPE$1]||!QObject[PROTOTYPE$1].findChild,setSymbolDescriptor=descriptors&&fails(function(){return 7!=objectCreate(nativeDefineProperty$1({},"a",{get:function(){return nativeDefineProperty$1(this,"a",{value:7}).a}})).a})?function(e,t,l){var n=nativeGetOwnPropertyDescriptor$1(ObjectPrototype,t);n&&delete ObjectPrototype[t],nativeDefineProperty$1(e,t,l),n&&e!==ObjectPrototype&&nativeDefineProperty$1(ObjectPrototype,t,n)}:nativeDefineProperty$1,wrap=function(e,t){var l=AllSymbols[e]=objectCreate($Symbol[PROTOTYPE$1]);return setInternalState(l,{type:SYMBOL,tag:e,description:t}),descriptors||(l.description=t),l},isSymbol=nativeSymbol&&"symbol"==typeof $Symbol.iterator?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof $Symbol},$defineProperty=function(e,t,l){e===ObjectPrototype&&$defineProperty(ObjectPrototypeSymbols,t,l),anObject(e);var n=toPrimitive(t,!0);return anObject(l),has(AllSymbols,n)?(l.enumerable?(has(e,HIDDEN)&&e[HIDDEN][n]&&(e[HIDDEN][n]=!1),l=objectCreate(l,{enumerable:createPropertyDescriptor(0,!1)})):(!has(e,HIDDEN)&&nativeDefineProperty$1(e,HIDDEN,createPropertyDescriptor(1,{})),e[HIDDEN][n]=!0),setSymbolDescriptor(e,n,l)):nativeDefineProperty$1(e,n,l)},$defineProperties=function(e,t){anObject(e);var l=toIndexedObject(t),n=objectKeys(l).concat($getOwnPropertySymbols(l));return $forEach(n,function(t){(!descriptors||$propertyIsEnumerable.call(l,t))&&$defineProperty(e,t,l[t])}),e},$create=function(e,t){return t===void 0?objectCreate(e):$defineProperties(objectCreate(e),t)},$propertyIsEnumerable=function(e){var t=toPrimitive(e,!0),l=nativePropertyIsEnumerable$1.call(this,t);return(this!==ObjectPrototype||!has(AllSymbols,t)||has(ObjectPrototypeSymbols,t))&&(!(l||!has(this,t)||!has(AllSymbols,t)||has(this,HIDDEN)&&this[HIDDEN][t])||l)},$getOwnPropertyDescriptor=function(e,t){var l=toIndexedObject(e),n=toPrimitive(t,!0);if(l!==ObjectPrototype||!has(AllSymbols,n)||has(ObjectPrototypeSymbols,n)){var o=nativeGetOwnPropertyDescriptor$1(l,n);return o&&has(AllSymbols,n)&&!(has(l,HIDDEN)&&l[HIDDEN][n])&&(o.enumerable=!0),o}},$getOwnPropertyNames=function(e){var t=nativeGetOwnPropertyNames$1(toIndexedObject(e)),l=[];return $forEach(t,function(e){has(AllSymbols,e)||has(hiddenKeys,e)||l.push(e)}),l},$getOwnPropertySymbols=function(e){var t=e===ObjectPrototype,l=nativeGetOwnPropertyNames$1(t?ObjectPrototypeSymbols:toIndexedObject(e)),n=[];return $forEach(l,function(e){has(AllSymbols,e)&&(!t||has(ObjectPrototype,e))&&n.push(AllSymbols[e])}),n};nativeSymbol||($Symbol=function(){if(this instanceof $Symbol)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?arguments[0]+"":void 0,t=uid(e),l=function(e){this===ObjectPrototype&&l.call(ObjectPrototypeSymbols,e),has(this,HIDDEN)&&has(this[HIDDEN],t)&&(this[HIDDEN][t]=!1),setSymbolDescriptor(this,t,createPropertyDescriptor(1,e))};return descriptors&&USE_SETTER&&setSymbolDescriptor(ObjectPrototype,t,{configurable:!0,set:l}),wrap(t,e)},redefine($Symbol[PROTOTYPE$1],"toString",function(){return getInternalState(this).tag}),objectPropertyIsEnumerable.f=$propertyIsEnumerable,objectDefineProperty.f=$defineProperty,objectGetOwnPropertyDescriptor.f=$getOwnPropertyDescriptor,objectGetOwnPropertyNames.f=objectGetOwnPropertyNamesExternal.f=$getOwnPropertyNames,objectGetOwnPropertySymbols.f=$getOwnPropertySymbols,descriptors&&(nativeDefineProperty$1($Symbol[PROTOTYPE$1],"description",{configurable:!0,get:function(){return getInternalState(this).description}}),redefine(ObjectPrototype,"propertyIsEnumerable",$propertyIsEnumerable,{unsafe:!0})),wrappedWellKnownSymbol.f=function(e){return wrap(wellKnownSymbol(e),e)}),_export({global:!0,wrap:!0,forced:!nativeSymbol,sham:!nativeSymbol},{Symbol:$Symbol}),$forEach(objectKeys(WellKnownSymbolsStore),function(e){defineWellKnownSymbol(e)}),_export({target:SYMBOL,stat:!0,forced:!nativeSymbol},{for:function(e){var t=e+"";if(has(StringToSymbolRegistry,t))return StringToSymbolRegistry[t];var l=$Symbol(t);return StringToSymbolRegistry[t]=l,SymbolToStringRegistry[l]=t,l},keyFor:function(e){if(!isSymbol(e))throw TypeError(e+" is not a symbol");return has(SymbolToStringRegistry,e)?SymbolToStringRegistry[e]:void 0},useSetter:function(){USE_SETTER=!0},useSimple:function(){USE_SETTER=!1}}),_export({target:"Object",stat:!0,forced:!nativeSymbol,sham:!descriptors},{create:$create,defineProperty:$defineProperty,defineProperties:$defineProperties,getOwnPropertyDescriptor:$getOwnPropertyDescriptor}),_export({target:"Object",stat:!0,forced:!nativeSymbol},{getOwnPropertyNames:$getOwnPropertyNames,getOwnPropertySymbols:$getOwnPropertySymbols}),_export({target:"Object",stat:!0,forced:fails(function(){objectGetOwnPropertySymbols.f(1)})},{getOwnPropertySymbols:function(e){return objectGetOwnPropertySymbols.f(toObject(e))}}),JSON&&_export({target:"JSON",stat:!0,forced:!nativeSymbol||fails(function(){var e=$Symbol();return"[null]"!=nativeJSONStringify([e])||"{}"!=nativeJSONStringify({a:e})||"{}"!=nativeJSONStringify(Object(e))})},{stringify:function(e){for(var t,l,n=[e],o=1;arguments.length>o;)n.push(arguments[o++]);if(l=t=n[1],(isObject(t)||void 0!==e)&&!isSymbol(e))return isArray(t)||(t=function(e,t){if("function"==typeof l&&(t=l.call(this,e,t)),!isSymbol(t))return t}),n[1]=t,nativeJSONStringify.apply(JSON,n)}}),$Symbol[PROTOTYPE$1][TO_PRIMITIVE]||hide($Symbol[PROTOTYPE$1],TO_PRIMITIVE,$Symbol[PROTOTYPE$1].valueOf),setToStringTag($Symbol,SYMBOL),hiddenKeys[HIDDEN]=!0;var defineProperty$2=objectDefineProperty.f,NativeSymbol=global_1.Symbol;if(descriptors&&"function"==typeof NativeSymbol&&(!("description"in NativeSymbol.prototype)||NativeSymbol().description!==void 0)){var EmptyStringDescriptionStore={},SymbolWrapper=function(){var e=1>arguments.length||void 0===arguments[0]?void 0:arguments[0]+"",t=this instanceof SymbolWrapper?new NativeSymbol(e):void 0===e?NativeSymbol():NativeSymbol(e);return""===e&&(EmptyStringDescriptionStore[t]=!0),t};copyConstructorProperties(SymbolWrapper,NativeSymbol);var symbolPrototype=SymbolWrapper.prototype=NativeSymbol.prototype;symbolPrototype.constructor=SymbolWrapper;var symbolToString=symbolPrototype.toString,native="Symbol(test)"==NativeSymbol("test")+"",regexp=/^Symbol\((.*)\)[^)]+$/;defineProperty$2(symbolPrototype,"description",{configurable:!0,get:function(){var e=isObject(this)?this.valueOf():this,t=symbolToString.call(e);if(has(EmptyStringDescriptionStore,e))return"";var l=native?t.slice(7,-1):t.replace(regexp,"$1");return""===l?void 0:l}}),_export({global:!0,forced:!0},{Symbol:SymbolWrapper})}defineWellKnownSymbol("iterator");var createProperty=function(e,t,l){var n=toPrimitive(t);n in e?objectDefineProperty.f(e,n,createPropertyDescriptor(0,l)):e[n]=l},SPECIES$1=wellKnownSymbol("species"),arrayMethodHasSpeciesSupport=function(e){return!fails(function(){var t=[],l=t.constructor={};return l[SPECIES$1]=function(){return{foo:1}},1!==t[e](Boolean).foo})},IS_CONCAT_SPREADABLE=wellKnownSymbol("isConcatSpreadable"),MAX_SAFE_INTEGER=9007199254740991,MAXIMUM_ALLOWED_INDEX_EXCEEDED="Maximum allowed index exceeded",IS_CONCAT_SPREADABLE_SUPPORT=!fails(function(){var e=[];return e[IS_CONCAT_SPREADABLE]=!1,e.concat()[0]!==e}),SPECIES_SUPPORT=arrayMethodHasSpeciesSupport("concat"),isConcatSpreadable=function(e){if(!isObject(e))return!1;var t=e[IS_CONCAT_SPREADABLE];return t===void 0?isArray(e):!!t},FORCED=!IS_CONCAT_SPREADABLE_SUPPORT||!SPECIES_SUPPORT;_export({target:"Array",proto:!0,forced:FORCED},{concat:function(){var e,t,l,o,s,a=toObject(this),r=arraySpeciesCreate(a,0),c=0;for(e=-1,l=arguments.length;eMAX_SAFE_INTEGER)throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);for(t=0;t=MAX_SAFE_INTEGER)throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);createProperty(r,c++,s)}return r.length=c,r}});var $filter=arrayIteration.filter;_export({target:"Array",proto:!0,forced:!arrayMethodHasSpeciesSupport("filter")},{filter:function(e){return $filter(this,e,1=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==l?{value:n,done:!1}:"values"==l?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}},"values");addToUnscopables("keys"),addToUnscopables("values"),addToUnscopables("entries");var sloppyArrayMethod=function(e,t){var l=[][e];return!l||!fails(function(){l.call(null,t||function(){throw 1},1)})},nativeJoin=[].join,ES3_STRINGS=indexedObject!=Object,SLOPPY_METHOD=sloppyArrayMethod("join",",");_export({target:"Array",proto:!0,forced:ES3_STRINGS||SLOPPY_METHOD},{join:function(e){return nativeJoin.call(toIndexedObject(this),e===void 0?",":e)}});var $map=arrayIteration.map;_export({target:"Array",proto:!0,forced:!arrayMethodHasSpeciesSupport("map")},{map:function(e){return $map(this,e,1i||i>=a?e?"":void 0:(n=s.charCodeAt(i),55296>n||56319(o=s.charCodeAt(i+1))||57343=l.length?{value:void 0,done:!0}:(e=charAt(l,n),t.index+=e.length,{value:e,done:!1})});var regexpFlags=function(){var e=anObject(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},nativeExec=RegExp.prototype.exec,nativeReplace=String.prototype.replace,patchedExec=nativeExec,UPDATES_LAST_INDEX_WRONG=function(){var e=/a/,t=/b*/g;return nativeExec.call(e,"a"),nativeExec.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),NPCG_INCLUDED=/()??/.exec("")[1]!==void 0,PATCH=UPDATES_LAST_INDEX_WRONG||NPCG_INCLUDED;PATCH&&(patchedExec=function(e){var t,l,n,o,s=this;return NPCG_INCLUDED&&(l=new RegExp("^"+s.source+"$(?!\\s)",regexpFlags.call(s))),UPDATES_LAST_INDEX_WRONG&&(t=s.lastIndex),n=nativeExec.call(s,e),UPDATES_LAST_INDEX_WRONG&&n&&(s.lastIndex=s.global?n.index+n[0].length:t),NPCG_INCLUDED&&n&&1")}),SPLIT_WORKS_WITH_OVERWRITTEN_EXEC=!fails(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var l="ab".split(e);return 2!==l.length||"a"!==l[0]||"b"!==l[1]}),fixRegexpWellKnownSymbolLogic=function(e,t,l,n){var o=wellKnownSymbol(e),s=!fails(function(){var t={};return t[o]=function(){return 7},7!=""[e](t)}),i=s&&!fails(function(){var t=!1,l=/a/;return l.exec=function(){return t=!0,null},"split"===e&&(l.constructor={},l.constructor[SPECIES$3]=function(){return l}),l[o](""),!t});if(!s||!i||"replace"===e&&!REPLACE_SUPPORTS_NAMED_GROUPS||"split"===e&&!SPLIT_WORKS_WITH_OVERWRITTEN_EXEC){var a=/./[o],r=l(o,""[e],function(e,t,l,n,o){return t.exec===regexpExec?s&&!o?{done:!0,value:a.call(t,l,n)}:{done:!0,value:e.call(l,t,n)}:{done:!1}}),c=r[0],d=r[1];redefine(String.prototype,e,c),redefine(RegExp.prototype,o,2==t?function(e,t){return d.call(e,this,t)}:function(e){return d.call(e,this)}),n&&hide(RegExp.prototype[o],"sham",!0)}},SPECIES$4=wellKnownSymbol("species"),speciesConstructor=function(e,t){var l,n=anObject(e).constructor;return n===void 0||(l=anObject(n)[SPECIES$4])==null?t:aFunction$1(l)},charAt$1=stringMultibyte.charAt,advanceStringIndex=function(e,t,l){return t+(l?charAt$1(e,t).length:1)},regexpExecAbstract=function(e,t){var l=e.exec;if("function"==typeof l){var n=l.call(e,t);if("object"!=typeof n)throw TypeError("RegExp exec method returned something other than an Object or null");return n}if("RegExp"!==classofRaw(e))throw TypeError("RegExp#exec called on incompatible receiver");return regexpExec.call(e,t)},arrayPush=[].push,min$2=Math.min,MAX_UINT32=4294967295,SUPPORTS_Y=!fails(function(){return!RegExp(MAX_UINT32,"y")});fixRegexpWellKnownSymbolLogic("split",2,function(e,t,l){var n;return n="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||1<".".split(/()()/).length||"".split(/.?/).length?function(e,l){var n=requireObjectCoercible(this)+"",o=void 0===l?MAX_UINT32:l>>>0;if(0===o)return[];if(void 0===e)return[n];if(!isRegexp(e))return t.call(n,e,o);for(var s,i,a,r=[],c=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,p=new RegExp(e.source,c+"g");(s=regexpExec.call(p,n))&&(i=p.lastIndex,!(i>d&&(r.push(n.slice(d,s.index)),1=o)));)p.lastIndex===s.index&&p.lastIndex++;return d===n.length?(a||!p.test(""))&&r.push(""):r.push(n.slice(d)),r.length>o?r.slice(0,o):r}:function(e,l){return void 0===e&&0===l?[]:t.call(this,e,l)},[function(t,l){var o=requireObjectCoercible(this),s=null==t?void 0:t[e];return void 0===s?n.call(o+"",t,l):s.call(t,o,l)},function(o,s){var a=l(n,o,this,s,n!==t);if(a.done)return a.value;var r=anObject(o),c=this+"",d=speciesConstructor(r,RegExp),u=r.unicode,f=(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.unicode?"u":"")+(SUPPORTS_Y?"y":"g"),h=new d(SUPPORTS_Y?r:"^(?:"+r.source+")",f),g=void 0===s?MAX_UINT32:s>>>0;if(0===g)return[];if(0===c.length)return null===regexpExecAbstract(h,c)?[c]:[];for(var m=0,b=0,y=[];b]*>)/g,SUBSTITUTION_SYMBOLS_NO_NAMED=/\$([$&'`]|\d\d?)/g,maybeToString=function(e){return e===void 0?e:e+""};fixRegexpWellKnownSymbolLogic("replace",2,function(e,t,l){function n(e,l,o,s,i,a){var r=o+e.length,c=s.length,n=SUBSTITUTION_SYMBOLS_NO_NAMED;return void 0!==i&&(i=toObject(i),n=SUBSTITUTION_SYMBOLS),t.call(a,n,function(t,a){var d;switch(a.charAt(0)){case"$":return"$";case"&":return e;case"`":return l.slice(0,o);case"'":return l.slice(r);case"<":d=i[a.slice(1,-1)];break;default:var p=+a;if(0==p)return t;if(p>c){var n=floor$1(p/10);return 0===n?t:n<=c?void 0===s[n-1]?a.charAt(1):s[n-1]+a.charAt(1):t}d=s[p-1];}return void 0===d?"":d})}return[function(l,n){var o=requireObjectCoercible(this),s=l==null?void 0:l[e];return s===void 0?t.call(o+"",l,n):s.call(l,o,n)},function(e,o){var s=l(t,e,this,o);if(s.done)return s.value;var a=anObject(e),r=this+"",c="function"==typeof o;c||(o=o+"");var d=a.global;if(d){var p=a.unicode;a.lastIndex=0}for(var u,f=[];(u=regexpExecAbstract(a,r),null!==u)&&!(f.push(u),!d);){var h=u[0]+"";""==h&&(a.lastIndex=advanceStringIndex(r,toLength(a.lastIndex),p))}for(var g="",m=0,b=0;b=m&&(g+=r.slice(m,k)+E,m=k+y.length)}return g+r.slice(m)}]});var s="s",sprintf=function(e){for(var t=arguments.length,l=Array(1",""]);return _templateObject17=function(){return e},e}function _templateObject16(){var e=_taggedTemplateLiteral([" data-group=\"","\""]);return _templateObject16=function(){return e},e}function _templateObject15(){var e=_taggedTemplateLiteral([""]);return _templateObject15=function(){return e},e}function _templateObject14(){var e=_taggedTemplateLiteral(["