Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

v-click-outside-x

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

v-click-outside-x - npm Package Compare versions

Comparing version 2.0.0 to 2.1.0

__tests__/v-click-outside-x.test.js

21

.eslintrc.js

@@ -29,3 +29,2 @@ /**

'plugin:promise/recommended',
'plugin:lodash/recommended',
'plugin:css-modules/recommended',

@@ -84,3 +83,2 @@ ],

'json',
'lodash',
'no-use-extend-native',

@@ -185,21 +183,2 @@ 'prefer-object-spread',

/**
* ESLint rules for lodash.
* @see {@link https://github.com/wix/eslint-plugin-lodash}
*/
'lodash/matches-prop-shorthand': 'off',
'lodash/matches-shorthand': 'off',
'lodash/prefer-constant': 'off',
'lodash/prefer-get': 'off',
'lodash/prefer-includes': 'off',
'lodash/prefer-is-nil': 'off',
'lodash/prefer-lodash-chain': 'off',
'lodash/prefer-lodash-method': 'off',
'lodash/prefer-lodash-typecheck': 'off',
'lodash/prefer-matches': 'off',
'lodash/prefer-noop': 'off',
'lodash/prefer-over-quantifier': 'off',
'lodash/prefer-some': 'off',
'lodash/prefer-startswith': 'off',
/**
* ESLint rule for suggesting that object spread properties be used.

@@ -206,0 +185,0 @@ * @see {@link https://github.com/bryanrsmith/eslint-plugin-prefer-object-spread}

1953

dist/v-click-outside-x.js

@@ -1,2 +0,1953 @@

!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.vClickOutside=n():t.vClickOutside=n()}("undefined"!=typeof self?self:this,function(){return function(t){function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}var e={};return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},n.p="",n(n.s=39)}([function(t,n,e){var r=e(29)("wks"),o=e(21),i=e(1).Symbol,u="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=u&&i[t]||(u?i:o)("Symbol."+t))}).store=r},function(t,n){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},function(t,n,e){t.exports=!e(10)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,n,e){var r=e(1),o=e(7),i=e(8),u=e(4),f=function(t,n,e){var c,s,a,p=t&f.F,l=t&f.G,v=t&f.S,d=t&f.P,h=t&f.B,y=t&f.W,_=l?o:o[n]||(o[n]={}),x=_.prototype,g=l?r:v?r[n]:(r[n]||{}).prototype;l&&(e=n);for(c in e)(s=!p&&g&&void 0!==g[c])&&c in _||(a=s?g[c]:e[c],_[c]=l&&"function"!=typeof g[c]?e[c]:h&&s?i(a,r):y&&g[c]==a?function(t){var n=function(n,e,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,e)}return new t(n,e,r)}return t.apply(this,arguments)};return n.prototype=t.prototype,n}(a):d&&"function"==typeof a?i(Function.call,a):a,d&&((_.virtual||(_.virtual={}))[c]=a,t&f.R&&x&&!x[c]&&u(x,c,a)))};f.F=1,f.G=2,f.S=4,f.P=8,f.B=16,f.W=32,f.U=64,f.R=128,t.exports=f},function(t,n,e){var r=e(5),o=e(27);t.exports=e(2)?function(t,n,e){return r.f(t,n,o(1,e))}:function(t,n,e){return t[n]=e,t}},function(t,n,e){var r=e(9),o=e(46),i=e(47),u=Object.defineProperty;n.f=e(2)?Object.defineProperty:function(t,n,e){if(r(t),n=i(n,!0),r(e),o)try{return u(t,n,e)}catch(t){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(t[n]=e.value),t}},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n){var e=t.exports={version:"2.5.3"};"number"==typeof __e&&(__e=e)},function(t,n,e){var r=e(25);t.exports=function(t,n,e){if(r(t),void 0===n)return t;switch(e){case 1:return function(e){return t.call(n,e)};case 2:return function(e,r){return t.call(n,e,r)};case 3:return function(e,r,o){return t.call(n,e,r,o)}}return function(){return t.apply(n,arguments)}}},function(t,n,e){var r=e(6);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},function(t,n){t.exports={}},function(t,n,e){var r=e(8),o=e(73),i=e(74),u=e(9),f=e(18),c=e(75),s={},a={},n=t.exports=function(t,n,e,p,l){var v,d,h,y,_=l?function(){return t}:c(t),x=r(e,p,n?2:1),g=0;if("function"!=typeof _)throw TypeError(t+" is not iterable!");if(i(_)){for(v=f(t.length);v>g;g++)if((y=n?x(u(d=t[g])[0],d[1]):x(t[g]))===s||y===a)return y}else for(h=_.call(t);!(d=h.next()).done;)if((y=o(h,x,d.value,n))===s||y===a)return y};n.BREAK=s,n.RETURN=a},function(t,n,e){var r=e(15),o=e(17);t.exports=function(t){return r(o(t))}},function(t,n,e){var r=e(16);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,n){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},function(t,n){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,n,e){var r=e(19),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,n){var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:e)(t)}},function(t,n,e){var r=e(29)("keys"),o=e(21);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,n){var e=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+r).toString(36))}},function(t,n,e){var r=e(17);t.exports=function(t){return Object(r(t))}},function(t,n,e){"use strict";var r=e(63),o=e(3),i=e(64),u=e(4),f=e(11),c=e(12),s=e(65),a=e(24),p=e(67),l=e(0)("iterator"),v=!([].keys&&"next"in[].keys()),d=function(){return this};t.exports=function(t,n,e,h,y,_,x){s(e,n,h);var g,b,m,O=function(t){if(!v&&t in j)return j[t];switch(t){case"keys":case"values":return function(){return new e(this,t)}}return function(){return new e(this,t)}},w=n+" Iterator",S="values"==y,E=!1,j=t.prototype,M=j[l]||j["@@iterator"]||y&&j[y],k=!v&&M||O(y),P=y?S?O("entries"):k:void 0,T="Array"==n?j.entries||M:M;if(T&&(m=p(T.call(new t)))!==Object.prototype&&m.next&&(a(m,w,!0),r||f(m,l)||u(m,l,d)),S&&M&&"values"!==M.name&&(E=!0,k=function(){return M.call(this)}),r&&!x||!v&&!E&&j[l]||u(j,l,k),c[n]=k,c[w]=d,y)if(g={values:S?k:O("values"),keys:_?k:O("keys"),entries:P},x)for(b in g)b in j||i(j,b,g[b]);else o(o.P+o.F*(v||E),n,g);return g}},function(t,n,e){var r=e(5).f,o=e(11),i=e(0)("toStringTag");t.exports=function(t,n,e){t&&!o(t=e?t:t.prototype,i)&&r(t,i,{configurable:!0,value:n})}},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,n,e){var r=e(6),o=e(1).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n,e){var r=e(49),o=e(30);t.exports=Object.keys||function(t){return r(t,o)}},function(t,n,e){var r=e(1),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,n,e){var r=e(5),o=e(9),i=e(28);t.exports=e(2)?Object.defineProperties:function(t,n){o(t);for(var e,u=i(n),f=u.length,c=0;f>c;)r.f(t,e=u[c++],n[e]);return t}},function(t,n,e){var r=e(9),o=e(31),i=e(30),u=e(20)("IE_PROTO"),f=function(){},c=function(){var t,n=e(26)("iframe"),r=i.length;for(n.style.display="none",e(66).appendChild(n),n.src="javascript:",t=n.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),c=t.F;r--;)delete c.prototype[i[r]];return c()};t.exports=Object.create||function(t,n){var e;return null!==t?(f.prototype=r(t),e=new f,f.prototype=null,e[u]=t):e=c(),void 0===n?e:o(e,n)}},function(t,n){t.exports=function(t,n){return{value:n,done:!!t}}},function(t,n,e){var r=e(4);t.exports=function(t,n,e){for(var o in n)e&&t[o]?t[o]=n[o]:r(t,o,n[o]);return t}},function(t,n){t.exports=function(t,n,e,r){if(!(t instanceof n)||void 0!==r&&r in t)throw TypeError(e+": incorrect invocation!");return t}},function(t,n,e){var r=e(16),o=e(0)("toStringTag"),i="Arguments"==r(function(){return arguments}()),u=function(t,n){try{return t[n]}catch(t){}};t.exports=function(t){var n,e,f;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=u(n=Object(t),o))?e:i?r(n):"Object"==(f=r(n))&&"function"==typeof n.callee?"Arguments":f}},function(t,n,e){var r=e(21)("meta"),o=e(6),i=e(11),u=e(5).f,f=0,c=Object.isExtensible||function(){return!0},s=!e(10)(function(){return c(Object.preventExtensions({}))}),a=function(t){u(t,r,{value:{i:"O"+ ++f,w:{}}})},p=function(t,n){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!c(t))return"F";if(!n)return"E";a(t)}return t[r].i},l=function(t,n){if(!i(t,r)){if(!c(t))return!0;if(!n)return!1;a(t)}return t[r].w},v=function(t){return s&&d.NEED&&c(t)&&!i(t,r)&&a(t),t},d=t.exports={KEY:r,NEED:!1,fastKey:p,getWeak:l,onFreeze:v}},function(t,n,e){var r=e(6);t.exports=function(t,n){if(!r(t)||t._t!==n)throw TypeError("Incompatible receiver, "+n+" required!");return t}},function(t,n,e){t.exports=e(40)},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e(41),o=function(t){return t&&t.__esModule?t:{default:t}}(r);n.default={directive:o.default,install:function(t){t.directive("click-outside",o.default)}}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(n,"__esModule",{value:!0});var o=e(42),i=r(o),u=e(54),f=r(u),c=e(57),s=r(c),a=e(58),p=r(a),l=new p.default,v=new p.default,d=[l,v],h=function(t,n){var e=this,r=n.target;t.forEach(function(t){(0,s.default)(this,e),t.forEach(function(t){var o=t.el,i=t.binding;(0,s.default)(this,e),r===o||o.contains(r)||(i.modifiers.stop&&n.stopPropagation(),i.modifiers.prevent&&n.preventDefault(),i.value.call(this,n))}.bind(this))}.bind(this))},y=function(t){h.call(this,l,t)},_=function(t){h.call(this,v,t)};n.default=(0,f.default)({},{$_captureInstances:{get:function(){return l}},$_nonCaptureInstances:{get:function(){return v}},$_onCaptureEvent:{get:function(){return y}},$_onNonCaptureEvent:{get:function(){return _}},bind:{value:function(t,n){if("function"!=typeof n.value)throw new TypeError("Binding value must be a function.");var e=n.arg||"click",r=(0,i.default)({},n,{arg:e,modifiers:(0,i.default)({capture:!1,prevent:!1,stop:!1},n.modifiers)}),o=r.modifiers.capture,u=o?l:v;u.has(e)||u.set(e,[]);var f=u.get(e);if(f.push({el:t,binding:r}),1===f.length){var c=o?y:_;document.addEventListener(e,c,o)}}},unbind:{value:function(t){var n=this;d.forEach(function(e){if((0,s.default)(this,n),e.size>0){var r=e===l;e.forEach(function(o,i){(0,s.default)(this,n);var u=o.filter(function(e){return(0,s.default)(this,n),e.el!==t}.bind(this));if(0===u.length){var f=r?y:_;document.removeEventListener(i,f,r),e.delete(i)}else e.set(i,u)}.bind(this))}}.bind(this))}}})},function(t,n,e){"use strict";n.__esModule=!0;var r=e(43),o=function(t){return t&&t.__esModule?t:{default:t}}(r);n.default=o.default||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t}},function(t,n,e){t.exports={default:e(44),__esModule:!0}},function(t,n,e){e(45),t.exports=e(7).Object.assign},function(t,n,e){var r=e(3);r(r.S+r.F,"Object",{assign:e(48)})},function(t,n,e){t.exports=!e(2)&&!e(10)(function(){return 7!=Object.defineProperty(e(26)("div"),"a",{get:function(){return 7}}).a})},function(t,n,e){var r=e(6);t.exports=function(t,n){if(!r(t))return t;var e,o;if(n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;if("function"==typeof(e=t.valueOf)&&!r(o=e.call(t)))return o;if(!n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,n,e){"use strict";var r=e(28),o=e(52),i=e(53),u=e(22),f=e(15),c=Object.assign;t.exports=!c||e(10)(function(){var t={},n={},e=Symbol(),r="abcdefghijklmnopqrst";return t[e]=7,r.split("").forEach(function(t){n[t]=t}),7!=c({},t)[e]||Object.keys(c({},n)).join("")!=r})?function(t,n){for(var e=u(t),c=arguments.length,s=1,a=o.f,p=i.f;c>s;)for(var l,v=f(arguments[s++]),d=a?r(v).concat(a(v)):r(v),h=d.length,y=0;h>y;)p.call(v,l=d[y++])&&(e[l]=v[l]);return e}:c},function(t,n,e){var r=e(11),o=e(14),i=e(50)(!1),u=e(20)("IE_PROTO");t.exports=function(t,n){var e,f=o(t),c=0,s=[];for(e in f)e!=u&&r(f,e)&&s.push(e);for(;n.length>c;)r(f,e=n[c++])&&(~i(s,e)||s.push(e));return s}},function(t,n,e){var r=e(14),o=e(18),i=e(51);t.exports=function(t){return function(n,e,u){var f,c=r(n),s=o(c.length),a=i(u,s);if(t&&e!=e){for(;s>a;)if((f=c[a++])!=f)return!0}else for(;s>a;a++)if((t||a in c)&&c[a]===e)return t||a||0;return!t&&-1}}},function(t,n,e){var r=e(19),o=Math.max,i=Math.min;t.exports=function(t,n){return t=r(t),t<0?o(t+n,0):i(t,n)}},function(t,n){n.f=Object.getOwnPropertySymbols},function(t,n){n.f={}.propertyIsEnumerable},function(t,n,e){t.exports={default:e(55),__esModule:!0}},function(t,n,e){e(56);var r=e(7).Object;t.exports=function(t,n){return r.defineProperties(t,n)}},function(t,n,e){var r=e(3);r(r.S+r.F*!e(2),"Object",{defineProperties:e(31)})},function(t,n,e){"use strict";n.__esModule=!0,n.default=function(t,n){if(t!==n)throw new TypeError("Cannot instantiate an arrow function")}},function(t,n,e){t.exports={default:e(59),__esModule:!0}},function(t,n,e){e(60),e(61),e(68),e(71),e(82),e(85),e(87),t.exports=e(7).Map},function(t,n){},function(t,n,e){"use strict";var r=e(62)(!0);e(23)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,n=this._t,e=this._i;return e>=n.length?{value:void 0,done:!0}:(t=r(n,e),this._i+=t.length,{value:t,done:!1})})},function(t,n,e){var r=e(19),o=e(17);t.exports=function(t){return function(n,e){var i,u,f=String(o(n)),c=r(e),s=f.length;return c<0||c>=s?t?"":void 0:(i=f.charCodeAt(c),i<55296||i>56319||c+1===s||(u=f.charCodeAt(c+1))<56320||u>57343?t?f.charAt(c):i:t?f.slice(c,c+2):u-56320+(i-55296<<10)+65536)}}},function(t,n){t.exports=!0},function(t,n,e){t.exports=e(4)},function(t,n,e){"use strict";var r=e(32),o=e(27),i=e(24),u={};e(4)(u,e(0)("iterator"),function(){return this}),t.exports=function(t,n,e){t.prototype=r(u,{next:o(1,e)}),i(t,n+" Iterator")}},function(t,n,e){var r=e(1).document;t.exports=r&&r.documentElement},function(t,n,e){var r=e(11),o=e(22),i=e(20)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,n,e){e(69);for(var r=e(1),o=e(4),i=e(12),u=e(0)("toStringTag"),f="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c<f.length;c++){var s=f[c],a=r[s],p=a&&a.prototype;p&&!p[u]&&o(p,u,s),i[s]=i.Array}},function(t,n,e){"use strict";var r=e(70),o=e(33),i=e(12),u=e(14);t.exports=e(23)(Array,"Array",function(t,n){this._t=u(t),this._i=0,this._k=n},function(){var t=this._t,n=this._k,e=this._i++;return!t||e>=t.length?(this._t=void 0,o(1)):"keys"==n?o(0,e):"values"==n?o(0,t[e]):o(0,[e,t[e]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,n){t.exports=function(){}},function(t,n,e){"use strict";var r=e(72),o=e(38);t.exports=e(77)("Map",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{get:function(t){var n=r.getEntry(o(this,"Map"),t);return n&&n.v},set:function(t,n){return r.def(o(this,"Map"),0===t?0:t,n)}},r,!0)},function(t,n,e){"use strict";var r=e(5).f,o=e(32),i=e(34),u=e(8),f=e(35),c=e(13),s=e(23),a=e(33),p=e(76),l=e(2),v=e(37).fastKey,d=e(38),h=l?"_s":"size",y=function(t,n){var e,r=v(n);if("F"!==r)return t._i[r];for(e=t._f;e;e=e.n)if(e.k==n)return e};t.exports={getConstructor:function(t,n,e,s){var a=t(function(t,r){f(t,a,n,"_i"),t._t=n,t._i=o(null),t._f=void 0,t._l=void 0,t[h]=0,void 0!=r&&c(r,e,t[s],t)});return i(a.prototype,{clear:function(){for(var t=d(this,n),e=t._i,r=t._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete e[r.i];t._f=t._l=void 0,t[h]=0},delete:function(t){var e=d(this,n),r=y(e,t);if(r){var o=r.n,i=r.p;delete e._i[r.i],r.r=!0,i&&(i.n=o),o&&(o.p=i),e._f==r&&(e._f=o),e._l==r&&(e._l=i),e[h]--}return!!r},forEach:function(t){d(this,n);for(var e,r=u(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.n:this._f;)for(r(e.v,e.k,this);e&&e.r;)e=e.p},has:function(t){return!!y(d(this,n),t)}}),l&&r(a.prototype,"size",{get:function(){return d(this,n)[h]}}),a},def:function(t,n,e){var r,o,i=y(t,n);return i?i.v=e:(t._l=i={i:o=v(n,!0),k:n,v:e,p:r=t._l,n:void 0,r:!1},t._f||(t._f=i),r&&(r.n=i),t[h]++,"F"!==o&&(t._i[o]=i)),t},getEntry:y,setStrong:function(t,n,e){s(t,n,function(t,e){this._t=d(t,n),this._k=e,this._l=void 0},function(){for(var t=this,n=t._k,e=t._l;e&&e.r;)e=e.p;return t._t&&(t._l=e=e?e.n:t._t._f)?"keys"==n?a(0,e.k):"values"==n?a(0,e.v):a(0,[e.k,e.v]):(t._t=void 0,a(1))},e?"entries":"values",!e,!0),p(n)}}},function(t,n,e){var r=e(9);t.exports=function(t,n,e,o){try{return o?n(r(e)[0],e[1]):n(e)}catch(n){var i=t.return;throw void 0!==i&&r(i.call(t)),n}}},function(t,n,e){var r=e(12),o=e(0)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||i[o]===t)}},function(t,n,e){var r=e(36),o=e(0)("iterator"),i=e(12);t.exports=e(7).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[r(t)]}},function(t,n,e){"use strict";var r=e(1),o=e(7),i=e(5),u=e(2),f=e(0)("species");t.exports=function(t){var n="function"==typeof o[t]?o[t]:r[t];u&&n&&!n[f]&&i.f(n,f,{configurable:!0,get:function(){return this}})}},function(t,n,e){"use strict";var r=e(1),o=e(3),i=e(37),u=e(10),f=e(4),c=e(34),s=e(13),a=e(35),p=e(6),l=e(24),v=e(5).f,d=e(78)(0),h=e(2);t.exports=function(t,n,e,y,_,x){var g=r[t],b=g,m=_?"set":"add",O=b&&b.prototype,w={};return h&&"function"==typeof b&&(x||O.forEach&&!u(function(){(new b).entries().next()}))?(b=n(function(n,e){a(n,b,t,"_c"),n._c=new g,void 0!=e&&s(e,_,n[m],n)}),d("add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON".split(","),function(t){var n="add"==t||"set"==t;t in O&&(!x||"clear"!=t)&&f(b.prototype,t,function(e,r){if(a(this,b,t),!n&&x&&!p(e))return"get"==t&&void 0;var o=this._c[t](0===e?0:e,r);return n?this:o})}),x||v(b.prototype,"size",{get:function(){return this._c.size}})):(b=y.getConstructor(n,t,_,m),c(b.prototype,e),i.NEED=!0),l(b,t),w[t]=b,o(o.G+o.W+o.F,w),x||y.setStrong(b,t,_),b}},function(t,n,e){var r=e(8),o=e(15),i=e(22),u=e(18),f=e(79);t.exports=function(t,n){var e=1==t,c=2==t,s=3==t,a=4==t,p=6==t,l=5==t||p,v=n||f;return function(n,f,d){for(var h,y,_=i(n),x=o(_),g=r(f,d,3),b=u(x.length),m=0,O=e?v(n,b):c?v(n,0):void 0;b>m;m++)if((l||m in x)&&(h=x[m],y=g(h,m,_),t))if(e)O[m]=y;else if(y)switch(t){case 3:return!0;case 5:return h;case 6:return m;case 2:O.push(h)}else if(a)return!1;return p?-1:s||a?a:O}}},function(t,n,e){var r=e(80);t.exports=function(t,n){return new(r(t))(n)}},function(t,n,e){var r=e(6),o=e(81),i=e(0)("species");t.exports=function(t){var n;return o(t)&&(n=t.constructor,"function"!=typeof n||n!==Array&&!o(n.prototype)||(n=void 0),r(n)&&null===(n=n[i])&&(n=void 0)),void 0===n?Array:n}},function(t,n,e){var r=e(16);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,n,e){var r=e(3);r(r.P+r.R,"Map",{toJSON:e(83)("Map")})},function(t,n,e){var r=e(36),o=e(84);t.exports=function(t){return function(){if(r(this)!=t)throw TypeError(t+"#toJSON isn't generic");return o(this)}}},function(t,n,e){var r=e(13);t.exports=function(t,n){var e=[];return r(t,!1,e.push,e,n),e}},function(t,n,e){e(86)("Map")},function(t,n,e){"use strict";var r=e(3);t.exports=function(t){r(r.S,t,{of:function(){for(var t=arguments.length,n=new Array(t);t--;)n[t]=arguments[t];return new this(n)}})}},function(t,n,e){e(88)("Map")},function(t,n,e){"use strict";var r=e(3),o=e(25),i=e(8),u=e(13);t.exports=function(t){r(r.S,t,{from:function(t){var n,e,r,f,c=arguments[1];return o(this),n=void 0!==c,n&&o(c),void 0==t?new this:(e=[],n?(r=0,f=i(c,arguments[2],2),u(t,!1,function(t){e.push(f(t,r++))})):u(t,!1,e.push,e),new this(e))}})}}])});
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define([], factory);
else if(typeof exports === 'object')
exports["vClickOutside"] = factory();
else
root["vClickOutside"] = factory();
})(window, function() {
return /******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
/******/ }
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ i: moduleId,
/******/ l: false,
/******/ exports: {}
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.l = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ }
/******/ };
/******/
/******/ // define __esModule on exports
/******/ __webpack_require__.r = function(exports) {
/******/ Object.defineProperty(exports, '__esModule', { value: true });
/******/ };
/******/
/******/ // getDefaultExport function for compatibility with non-harmony modules
/******/ __webpack_require__.n = function(module) {
/******/ var getter = module && module.__esModule ?
/******/ function getDefault() { return module['default']; } :
/******/ function getModuleExports() { return module; };
/******/ __webpack_require__.d(getter, 'a', getter);
/******/ return getter;
/******/ };
/******/
/******/ // Object.prototype.hasOwnProperty.call
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "";
/******/
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 87);
/******/ })
/************************************************************************/
/******/ ([
/* 0 */
/***/ (function(module, exports, __webpack_require__) {
var store = __webpack_require__(34)('wks');
var uid = __webpack_require__(17);
var Symbol = __webpack_require__(2).Symbol;
var USE_SYMBOL = typeof Symbol == 'function';
var $exports = module.exports = function (name) {
return store[name] || (store[name] =
USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));
};
$exports.store = store;
/***/ }),
/* 1 */
/***/ (function(module, exports, __webpack_require__) {
// Thank's IE8 for his funny defineProperty
module.exports = !__webpack_require__(10)(function () {
return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
});
/***/ }),
/* 2 */
/***/ (function(module, exports) {
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
var global = module.exports = typeof window != 'undefined' && window.Math == Math
? window : typeof self != 'undefined' && self.Math == Math ? self
// eslint-disable-next-line no-new-func
: Function('return this')();
if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef
/***/ }),
/* 3 */
/***/ (function(module, exports) {
module.exports = function (it) {
return typeof it === 'object' ? it !== null : typeof it === 'function';
};
/***/ }),
/* 4 */
/***/ (function(module, exports, __webpack_require__) {
var anObject = __webpack_require__(11);
var IE8_DOM_DEFINE = __webpack_require__(81);
var toPrimitive = __webpack_require__(80);
var dP = Object.defineProperty;
exports.f = __webpack_require__(1) ? Object.defineProperty : function defineProperty(O, P, Attributes) {
anObject(O);
P = toPrimitive(P, true);
anObject(Attributes);
if (IE8_DOM_DEFINE) try {
return dP(O, P, Attributes);
} catch (e) { /* empty */ }
if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
if ('value' in Attributes) O[P] = Attributes.value;
return O;
};
/***/ }),
/* 5 */
/***/ (function(module, exports, __webpack_require__) {
var dP = __webpack_require__(4);
var createDesc = __webpack_require__(36);
module.exports = __webpack_require__(1) ? function (object, key, value) {
return dP.f(object, key, createDesc(1, value));
} : function (object, key, value) {
object[key] = value;
return object;
};
/***/ }),
/* 6 */
/***/ (function(module, exports, __webpack_require__) {
var global = __webpack_require__(2);
var core = __webpack_require__(7);
var ctx = __webpack_require__(12);
var hide = __webpack_require__(5);
var PROTOTYPE = 'prototype';
var $export = function (type, name, source) {
var IS_FORCED = type & $export.F;
var IS_GLOBAL = type & $export.G;
var IS_STATIC = type & $export.S;
var IS_PROTO = type & $export.P;
var IS_BIND = type & $export.B;
var IS_WRAP = type & $export.W;
var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});
var expProto = exports[PROTOTYPE];
var target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE];
var key, own, out;
if (IS_GLOBAL) source = name;
for (key in source) {
// contains in native
own = !IS_FORCED && target && target[key] !== undefined;
if (own && key in exports) continue;
// export native or passed
out = own ? target[key] : source[key];
// prevent global pollution for namespaces
exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key]
// bind timers to global for call from export context
: IS_BIND && own ? ctx(out, global)
// wrap global constructors for prevent change them in library
: IS_WRAP && target[key] == out ? (function (C) {
var F = function (a, b, c) {
if (this instanceof C) {
switch (arguments.length) {
case 0: return new C();
case 1: return new C(a);
case 2: return new C(a, b);
} return new C(a, b, c);
} return C.apply(this, arguments);
};
F[PROTOTYPE] = C[PROTOTYPE];
return F;
// make static versions for prototype methods
})(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;
// export proto methods to core.%CONSTRUCTOR%.methods.%NAME%
if (IS_PROTO) {
(exports.virtual || (exports.virtual = {}))[key] = out;
// export proto methods to core.%CONSTRUCTOR%.prototype.%NAME%
if (type & $export.R && expProto && !expProto[key]) hide(expProto, key, out);
}
}
};
// type bitmap
$export.F = 1; // forced
$export.G = 2; // global
$export.S = 4; // static
$export.P = 8; // proto
$export.B = 16; // bind
$export.W = 32; // wrap
$export.U = 64; // safe
$export.R = 128; // real proto method for `library`
module.exports = $export;
/***/ }),
/* 7 */
/***/ (function(module, exports) {
var core = module.exports = { version: '2.5.3' };
if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
/***/ }),
/* 8 */
/***/ (function(module, exports) {
module.exports = {};
/***/ }),
/* 9 */
/***/ (function(module, exports) {
var hasOwnProperty = {}.hasOwnProperty;
module.exports = function (it, key) {
return hasOwnProperty.call(it, key);
};
/***/ }),
/* 10 */
/***/ (function(module, exports) {
module.exports = function (exec) {
try {
return !!exec();
} catch (e) {
return true;
}
};
/***/ }),
/* 11 */
/***/ (function(module, exports, __webpack_require__) {
var isObject = __webpack_require__(3);
module.exports = function (it) {
if (!isObject(it)) throw TypeError(it + ' is not an object!');
return it;
};
/***/ }),
/* 12 */
/***/ (function(module, exports, __webpack_require__) {
// optional / simple context binding
var aFunction = __webpack_require__(38);
module.exports = function (fn, that, length) {
aFunction(fn);
if (that === undefined) return fn;
switch (length) {
case 1: return function (a) {
return fn.call(that, a);
};
case 2: return function (a, b) {
return fn.call(that, a, b);
};
case 3: return function (a, b, c) {
return fn.call(that, a, b, c);
};
}
return function (/* ...args */) {
return fn.apply(that, arguments);
};
};
/***/ }),
/* 13 */
/***/ (function(module, exports, __webpack_require__) {
var ctx = __webpack_require__(12);
var call = __webpack_require__(54);
var isArrayIter = __webpack_require__(53);
var anObject = __webpack_require__(11);
var toLength = __webpack_require__(20);
var getIterFn = __webpack_require__(52);
var BREAK = {};
var RETURN = {};
var exports = module.exports = function (iterable, entries, fn, that, ITERATOR) {
var iterFn = ITERATOR ? function () { return iterable; } : getIterFn(iterable);
var f = ctx(fn, that, entries ? 2 : 1);
var index = 0;
var length, step, iterator, result;
if (typeof iterFn != 'function') throw TypeError(iterable + ' is not iterable!');
// fast case for arrays with default iterator
if (isArrayIter(iterFn)) for (length = toLength(iterable.length); length > index; index++) {
result = entries ? f(anObject(step = iterable[index])[0], step[1]) : f(iterable[index]);
if (result === BREAK || result === RETURN) return result;
} else for (iterator = iterFn.call(iterable); !(step = iterator.next()).done;) {
result = call(iterator, f, step.value, entries);
if (result === BREAK || result === RETURN) return result;
}
};
exports.BREAK = BREAK;
exports.RETURN = RETURN;
/***/ }),
/* 14 */
/***/ (function(module, exports, __webpack_require__) {
var def = __webpack_require__(4).f;
var has = __webpack_require__(9);
var TAG = __webpack_require__(0)('toStringTag');
module.exports = function (it, tag, stat) {
if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });
};
/***/ }),
/* 15 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var LIBRARY = __webpack_require__(64);
var $export = __webpack_require__(6);
var redefine = __webpack_require__(63);
var hide = __webpack_require__(5);
var has = __webpack_require__(9);
var Iterators = __webpack_require__(8);
var $iterCreate = __webpack_require__(62);
var setToStringTag = __webpack_require__(14);
var getPrototypeOf = __webpack_require__(60);
var ITERATOR = __webpack_require__(0)('iterator');
var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next`
var FF_ITERATOR = '@@iterator';
var KEYS = 'keys';
var VALUES = 'values';
var returnThis = function () { return this; };
module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) {
$iterCreate(Constructor, NAME, next);
var getMethod = function (kind) {
if (!BUGGY && kind in proto) return proto[kind];
switch (kind) {
case KEYS: return function keys() { return new Constructor(this, kind); };
case VALUES: return function values() { return new Constructor(this, kind); };
} return function entries() { return new Constructor(this, kind); };
};
var TAG = NAME + ' Iterator';
var DEF_VALUES = DEFAULT == VALUES;
var VALUES_BUG = false;
var proto = Base.prototype;
var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT];
var $default = (!BUGGY && $native) || getMethod(DEFAULT);
var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined;
var $anyNative = NAME == 'Array' ? proto.entries || $native : $native;
var methods, key, IteratorPrototype;
// Fix native
if ($anyNative) {
IteratorPrototype = getPrototypeOf($anyNative.call(new Base()));
if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) {
// Set @@toStringTag to native iterators
setToStringTag(IteratorPrototype, TAG, true);
// fix for some old engines
if (!LIBRARY && !has(IteratorPrototype, ITERATOR)) hide(IteratorPrototype, ITERATOR, returnThis);
}
}
// fix Array#{values, @@iterator}.name in V8 / FF
if (DEF_VALUES && $native && $native.name !== VALUES) {
VALUES_BUG = true;
$default = function values() { return $native.call(this); };
}
// Define iterator
if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) {
hide(proto, ITERATOR, $default);
}
// Plug for library
Iterators[NAME] = $default;
Iterators[TAG] = returnThis;
if (DEFAULT) {
methods = {
values: DEF_VALUES ? $default : getMethod(VALUES),
keys: IS_SET ? $default : getMethod(KEYS),
entries: $entries
};
if (FORCED) for (key in methods) {
if (!(key in proto)) redefine(proto, key, methods[key]);
} else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);
}
return methods;
};
/***/ }),
/* 16 */
/***/ (function(module, exports, __webpack_require__) {
// 7.1.13 ToObject(argument)
var defined = __webpack_require__(21);
module.exports = function (it) {
return Object(defined(it));
};
/***/ }),
/* 17 */
/***/ (function(module, exports) {
var id = 0;
var px = Math.random();
module.exports = function (key) {
return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
};
/***/ }),
/* 18 */
/***/ (function(module, exports, __webpack_require__) {
var shared = __webpack_require__(34)('keys');
var uid = __webpack_require__(17);
module.exports = function (key) {
return shared[key] || (shared[key] = uid(key));
};
/***/ }),
/* 19 */
/***/ (function(module, exports) {
// 7.1.4 ToInteger
var ceil = Math.ceil;
var floor = Math.floor;
module.exports = function (it) {
return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
};
/***/ }),
/* 20 */
/***/ (function(module, exports, __webpack_require__) {
// 7.1.15 ToLength
var toInteger = __webpack_require__(19);
var min = Math.min;
module.exports = function (it) {
return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991
};
/***/ }),
/* 21 */
/***/ (function(module, exports) {
// 7.2.1 RequireObjectCoercible(argument)
module.exports = function (it) {
if (it == undefined) throw TypeError("Can't call method on " + it);
return it;
};
/***/ }),
/* 22 */
/***/ (function(module, exports) {
var toString = {}.toString;
module.exports = function (it) {
return toString.call(it).slice(8, -1);
};
/***/ }),
/* 23 */
/***/ (function(module, exports, __webpack_require__) {
// fallback for non-array-like ES3 and non-enumerable old V8 strings
var cof = __webpack_require__(22);
// eslint-disable-next-line no-prototype-builtins
module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
return cof(it) == 'String' ? it.split('') : Object(it);
};
/***/ }),
/* 24 */
/***/ (function(module, exports, __webpack_require__) {
// to indexed object, toObject with fallback for non-array-like ES3 strings
var IObject = __webpack_require__(23);
var defined = __webpack_require__(21);
module.exports = function (it) {
return IObject(defined(it));
};
/***/ }),
/* 25 */
/***/ (function(module, exports, __webpack_require__) {
var isObject = __webpack_require__(3);
module.exports = function (it, TYPE) {
if (!isObject(it) || it._t !== TYPE) throw TypeError('Incompatible receiver, ' + TYPE + ' required!');
return it;
};
/***/ }),
/* 26 */
/***/ (function(module, exports, __webpack_require__) {
var META = __webpack_require__(17)('meta');
var isObject = __webpack_require__(3);
var has = __webpack_require__(9);
var setDesc = __webpack_require__(4).f;
var id = 0;
var isExtensible = Object.isExtensible || function () {
return true;
};
var FREEZE = !__webpack_require__(10)(function () {
return isExtensible(Object.preventExtensions({}));
});
var setMeta = function (it) {
setDesc(it, META, { value: {
i: 'O' + ++id, // object ID
w: {} // weak collections IDs
} });
};
var fastKey = function (it, create) {
// return primitive with prefix
if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;
if (!has(it, META)) {
// can't set metadata to uncaught frozen object
if (!isExtensible(it)) return 'F';
// not necessary to add metadata
if (!create) return 'E';
// add missing metadata
setMeta(it);
// return object ID
} return it[META].i;
};
var getWeak = function (it, create) {
if (!has(it, META)) {
// can't set metadata to uncaught frozen object
if (!isExtensible(it)) return true;
// not necessary to add metadata
if (!create) return false;
// add missing metadata
setMeta(it);
// return hash weak collections IDs
} return it[META].w;
};
// add metadata on freeze-family methods calling
var onFreeze = function (it) {
if (FREEZE && meta.NEED && isExtensible(it) && !has(it, META)) setMeta(it);
return it;
};
var meta = module.exports = {
KEY: META,
NEED: false,
fastKey: fastKey,
getWeak: getWeak,
onFreeze: onFreeze
};
/***/ }),
/* 27 */
/***/ (function(module, exports, __webpack_require__) {
// getting tag from 19.1.3.6 Object.prototype.toString()
var cof = __webpack_require__(22);
var TAG = __webpack_require__(0)('toStringTag');
// ES3 wrong here
var ARG = cof(function () { return arguments; }()) == 'Arguments';
// fallback for IE11 Script Access Denied error
var tryGet = function (it, key) {
try {
return it[key];
} catch (e) { /* empty */ }
};
module.exports = function (it) {
var O, T, B;
return it === undefined ? 'Undefined' : it === null ? 'Null'
// @@toStringTag case
: typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T
// builtinTag case
: ARG ? cof(O)
// ES3 arguments fallback
: (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;
};
/***/ }),
/* 28 */
/***/ (function(module, exports) {
module.exports = function (it, Constructor, name, forbiddenField) {
if (!(it instanceof Constructor) || (forbiddenField !== undefined && forbiddenField in it)) {
throw TypeError(name + ': incorrect invocation!');
} return it;
};
/***/ }),
/* 29 */
/***/ (function(module, exports, __webpack_require__) {
var hide = __webpack_require__(5);
module.exports = function (target, src, safe) {
for (var key in src) {
if (safe && target[key]) target[key] = src[key];
else hide(target, key, src[key]);
} return target;
};
/***/ }),
/* 30 */
/***/ (function(module, exports) {
module.exports = function (done, value) {
return { value: value, done: !!done };
};
/***/ }),
/* 31 */
/***/ (function(module, exports, __webpack_require__) {
// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
var anObject = __webpack_require__(11);
var dPs = __webpack_require__(32);
var enumBugKeys = __webpack_require__(33);
var IE_PROTO = __webpack_require__(18)('IE_PROTO');
var Empty = function () { /* empty */ };
var PROTOTYPE = 'prototype';
// Create object with fake `null` prototype: use iframe Object with cleared prototype
var createDict = function () {
// Thrash, waste and sodomy: IE GC bug
var iframe = __webpack_require__(37)('iframe');
var i = enumBugKeys.length;
var lt = '<';
var gt = '>';
var iframeDocument;
iframe.style.display = 'none';
__webpack_require__(61).appendChild(iframe);
iframe.src = 'javascript:'; // eslint-disable-line no-script-url
// createDict = iframe.contentWindow.Object;
// html.removeChild(iframe);
iframeDocument = iframe.contentWindow.document;
iframeDocument.open();
iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
iframeDocument.close();
createDict = iframeDocument.F;
while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];
return createDict();
};
module.exports = Object.create || function create(O, Properties) {
var result;
if (O !== null) {
Empty[PROTOTYPE] = anObject(O);
result = new Empty();
Empty[PROTOTYPE] = null;
// add "__proto__" for Object.getPrototypeOf polyfill
result[IE_PROTO] = O;
} else result = createDict();
return Properties === undefined ? result : dPs(result, Properties);
};
/***/ }),
/* 32 */
/***/ (function(module, exports, __webpack_require__) {
var dP = __webpack_require__(4);
var anObject = __webpack_require__(11);
var getKeys = __webpack_require__(35);
module.exports = __webpack_require__(1) ? Object.defineProperties : function defineProperties(O, Properties) {
anObject(O);
var keys = getKeys(Properties);
var length = keys.length;
var i = 0;
var P;
while (length > i) dP.f(O, P = keys[i++], Properties[P]);
return O;
};
/***/ }),
/* 33 */
/***/ (function(module, exports) {
// IE 8- don't enum bug keys
module.exports = (
'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'
).split(',');
/***/ }),
/* 34 */
/***/ (function(module, exports, __webpack_require__) {
var global = __webpack_require__(2);
var SHARED = '__core-js_shared__';
var store = global[SHARED] || (global[SHARED] = {});
module.exports = function (key) {
return store[key] || (store[key] = {});
};
/***/ }),
/* 35 */
/***/ (function(module, exports, __webpack_require__) {
// 19.1.2.14 / 15.2.3.14 Object.keys(O)
var $keys = __webpack_require__(78);
var enumBugKeys = __webpack_require__(33);
module.exports = Object.keys || function keys(O) {
return $keys(O, enumBugKeys);
};
/***/ }),
/* 36 */
/***/ (function(module, exports) {
module.exports = function (bitmap, value) {
return {
enumerable: !(bitmap & 1),
configurable: !(bitmap & 2),
writable: !(bitmap & 4),
value: value
};
};
/***/ }),
/* 37 */
/***/ (function(module, exports, __webpack_require__) {
var isObject = __webpack_require__(3);
var document = __webpack_require__(2).document;
// typeof document.createElement is 'object' in old IE
var is = isObject(document) && isObject(document.createElement);
module.exports = function (it) {
return is ? document.createElement(it) : {};
};
/***/ }),
/* 38 */
/***/ (function(module, exports) {
module.exports = function (it) {
if (typeof it != 'function') throw TypeError(it + ' is not a function!');
return it;
};
/***/ }),
/* 39 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
// https://tc39.github.io/proposal-setmap-offrom/
var $export = __webpack_require__(6);
var aFunction = __webpack_require__(38);
var ctx = __webpack_require__(12);
var forOf = __webpack_require__(13);
module.exports = function (COLLECTION) {
$export($export.S, COLLECTION, { from: function from(source /* , mapFn, thisArg */) {
var mapFn = arguments[1];
var mapping, A, n, cb;
aFunction(this);
mapping = mapFn !== undefined;
if (mapping) aFunction(mapFn);
if (source == undefined) return new this();
A = [];
if (mapping) {
n = 0;
cb = ctx(mapFn, arguments[2], 2);
forOf(source, false, function (nextItem) {
A.push(cb(nextItem, n++));
});
} else {
forOf(source, false, A.push, A);
}
return new this(A);
} });
};
/***/ }),
/* 40 */
/***/ (function(module, exports, __webpack_require__) {
// https://tc39.github.io/proposal-setmap-offrom/#sec-map.from
__webpack_require__(39)('Map');
/***/ }),
/* 41 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
// https://tc39.github.io/proposal-setmap-offrom/
var $export = __webpack_require__(6);
module.exports = function (COLLECTION) {
$export($export.S, COLLECTION, { of: function of() {
var length = arguments.length;
var A = new Array(length);
while (length--) A[length] = arguments[length];
return new this(A);
} });
};
/***/ }),
/* 42 */
/***/ (function(module, exports, __webpack_require__) {
// https://tc39.github.io/proposal-setmap-offrom/#sec-map.of
__webpack_require__(41)('Map');
/***/ }),
/* 43 */
/***/ (function(module, exports, __webpack_require__) {
var forOf = __webpack_require__(13);
module.exports = function (iter, ITERATOR) {
var result = [];
forOf(iter, false, result.push, result, ITERATOR);
return result;
};
/***/ }),
/* 44 */
/***/ (function(module, exports, __webpack_require__) {
// https://github.com/DavidBruant/Map-Set.prototype.toJSON
var classof = __webpack_require__(27);
var from = __webpack_require__(43);
module.exports = function (NAME) {
return function toJSON() {
if (classof(this) != NAME) throw TypeError(NAME + "#toJSON isn't generic");
return from(this);
};
};
/***/ }),
/* 45 */
/***/ (function(module, exports, __webpack_require__) {
// https://github.com/DavidBruant/Map-Set.prototype.toJSON
var $export = __webpack_require__(6);
$export($export.P + $export.R, 'Map', { toJSON: __webpack_require__(44)('Map') });
/***/ }),
/* 46 */
/***/ (function(module, exports, __webpack_require__) {
// 7.2.2 IsArray(argument)
var cof = __webpack_require__(22);
module.exports = Array.isArray || function isArray(arg) {
return cof(arg) == 'Array';
};
/***/ }),
/* 47 */
/***/ (function(module, exports, __webpack_require__) {
var isObject = __webpack_require__(3);
var isArray = __webpack_require__(46);
var SPECIES = __webpack_require__(0)('species');
module.exports = function (original) {
var C;
if (isArray(original)) {
C = original.constructor;
// cross-realm fallback
if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;
if (isObject(C)) {
C = C[SPECIES];
if (C === null) C = undefined;
}
} return C === undefined ? Array : C;
};
/***/ }),
/* 48 */
/***/ (function(module, exports, __webpack_require__) {
// 9.4.2.3 ArraySpeciesCreate(originalArray, length)
var speciesConstructor = __webpack_require__(47);
module.exports = function (original, length) {
return new (speciesConstructor(original))(length);
};
/***/ }),
/* 49 */
/***/ (function(module, exports, __webpack_require__) {
// 0 -> Array#forEach
// 1 -> Array#map
// 2 -> Array#filter
// 3 -> Array#some
// 4 -> Array#every
// 5 -> Array#find
// 6 -> Array#findIndex
var ctx = __webpack_require__(12);
var IObject = __webpack_require__(23);
var toObject = __webpack_require__(16);
var toLength = __webpack_require__(20);
var asc = __webpack_require__(48);
module.exports = function (TYPE, $create) {
var IS_MAP = TYPE == 1;
var IS_FILTER = TYPE == 2;
var IS_SOME = TYPE == 3;
var IS_EVERY = TYPE == 4;
var IS_FIND_INDEX = TYPE == 6;
var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
var create = $create || asc;
return function ($this, callbackfn, that) {
var O = toObject($this);
var self = IObject(O);
var f = ctx(callbackfn, that, 3);
var length = toLength(self.length);
var index = 0;
var result = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;
var val, res;
for (;length > index; index++) if (NO_HOLES || index in self) {
val = self[index];
res = f(val, index, O);
if (TYPE) {
if (IS_MAP) result[index] = res; // map
else if (res) switch (TYPE) {
case 3: return true; // some
case 5: return val; // find
case 6: return index; // findIndex
case 2: result.push(val); // filter
} else if (IS_EVERY) return false; // every
}
}
return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : result;
};
};
/***/ }),
/* 50 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var global = __webpack_require__(2);
var $export = __webpack_require__(6);
var meta = __webpack_require__(26);
var fails = __webpack_require__(10);
var hide = __webpack_require__(5);
var redefineAll = __webpack_require__(29);
var forOf = __webpack_require__(13);
var anInstance = __webpack_require__(28);
var isObject = __webpack_require__(3);
var setToStringTag = __webpack_require__(14);
var dP = __webpack_require__(4).f;
var each = __webpack_require__(49)(0);
var DESCRIPTORS = __webpack_require__(1);
module.exports = function (NAME, wrapper, methods, common, IS_MAP, IS_WEAK) {
var Base = global[NAME];
var C = Base;
var ADDER = IS_MAP ? 'set' : 'add';
var proto = C && C.prototype;
var O = {};
if (!DESCRIPTORS || typeof C != 'function' || !(IS_WEAK || proto.forEach && !fails(function () {
new C().entries().next();
}))) {
// create collection constructor
C = common.getConstructor(wrapper, NAME, IS_MAP, ADDER);
redefineAll(C.prototype, methods);
meta.NEED = true;
} else {
C = wrapper(function (target, iterable) {
anInstance(target, C, NAME, '_c');
target._c = new Base();
if (iterable != undefined) forOf(iterable, IS_MAP, target[ADDER], target);
});
each('add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON'.split(','), function (KEY) {
var IS_ADDER = KEY == 'add' || KEY == 'set';
if (KEY in proto && !(IS_WEAK && KEY == 'clear')) hide(C.prototype, KEY, function (a, b) {
anInstance(this, C, KEY);
if (!IS_ADDER && IS_WEAK && !isObject(a)) return KEY == 'get' ? undefined : false;
var result = this._c[KEY](a === 0 ? 0 : a, b);
return IS_ADDER ? this : result;
});
});
IS_WEAK || dP(C.prototype, 'size', {
get: function () {
return this._c.size;
}
});
}
setToStringTag(C, NAME);
O[NAME] = C;
$export($export.G + $export.W + $export.F, O);
if (!IS_WEAK) common.setStrong(C, NAME, IS_MAP);
return C;
};
/***/ }),
/* 51 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var global = __webpack_require__(2);
var core = __webpack_require__(7);
var dP = __webpack_require__(4);
var DESCRIPTORS = __webpack_require__(1);
var SPECIES = __webpack_require__(0)('species');
module.exports = function (KEY) {
var C = typeof core[KEY] == 'function' ? core[KEY] : global[KEY];
if (DESCRIPTORS && C && !C[SPECIES]) dP.f(C, SPECIES, {
configurable: true,
get: function () { return this; }
});
};
/***/ }),
/* 52 */
/***/ (function(module, exports, __webpack_require__) {
var classof = __webpack_require__(27);
var ITERATOR = __webpack_require__(0)('iterator');
var Iterators = __webpack_require__(8);
module.exports = __webpack_require__(7).getIteratorMethod = function (it) {
if (it != undefined) return it[ITERATOR]
|| it['@@iterator']
|| Iterators[classof(it)];
};
/***/ }),
/* 53 */
/***/ (function(module, exports, __webpack_require__) {
// check on default Array iterator
var Iterators = __webpack_require__(8);
var ITERATOR = __webpack_require__(0)('iterator');
var ArrayProto = Array.prototype;
module.exports = function (it) {
return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);
};
/***/ }),
/* 54 */
/***/ (function(module, exports, __webpack_require__) {
// call something on iterator step with safe closing on error
var anObject = __webpack_require__(11);
module.exports = function (iterator, fn, value, entries) {
try {
return entries ? fn(anObject(value)[0], value[1]) : fn(value);
// 7.4.6 IteratorClose(iterator, completion)
} catch (e) {
var ret = iterator['return'];
if (ret !== undefined) anObject(ret.call(iterator));
throw e;
}
};
/***/ }),
/* 55 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var dP = __webpack_require__(4).f;
var create = __webpack_require__(31);
var redefineAll = __webpack_require__(29);
var ctx = __webpack_require__(12);
var anInstance = __webpack_require__(28);
var forOf = __webpack_require__(13);
var $iterDefine = __webpack_require__(15);
var step = __webpack_require__(30);
var setSpecies = __webpack_require__(51);
var DESCRIPTORS = __webpack_require__(1);
var fastKey = __webpack_require__(26).fastKey;
var validate = __webpack_require__(25);
var SIZE = DESCRIPTORS ? '_s' : 'size';
var getEntry = function (that, key) {
// fast case
var index = fastKey(key);
var entry;
if (index !== 'F') return that._i[index];
// frozen object case
for (entry = that._f; entry; entry = entry.n) {
if (entry.k == key) return entry;
}
};
module.exports = {
getConstructor: function (wrapper, NAME, IS_MAP, ADDER) {
var C = wrapper(function (that, iterable) {
anInstance(that, C, NAME, '_i');
that._t = NAME; // collection type
that._i = create(null); // index
that._f = undefined; // first entry
that._l = undefined; // last entry
that[SIZE] = 0; // size
if (iterable != undefined) forOf(iterable, IS_MAP, that[ADDER], that);
});
redefineAll(C.prototype, {
// 23.1.3.1 Map.prototype.clear()
// 23.2.3.2 Set.prototype.clear()
clear: function clear() {
for (var that = validate(this, NAME), data = that._i, entry = that._f; entry; entry = entry.n) {
entry.r = true;
if (entry.p) entry.p = entry.p.n = undefined;
delete data[entry.i];
}
that._f = that._l = undefined;
that[SIZE] = 0;
},
// 23.1.3.3 Map.prototype.delete(key)
// 23.2.3.4 Set.prototype.delete(value)
'delete': function (key) {
var that = validate(this, NAME);
var entry = getEntry(that, key);
if (entry) {
var next = entry.n;
var prev = entry.p;
delete that._i[entry.i];
entry.r = true;
if (prev) prev.n = next;
if (next) next.p = prev;
if (that._f == entry) that._f = next;
if (that._l == entry) that._l = prev;
that[SIZE]--;
} return !!entry;
},
// 23.2.3.6 Set.prototype.forEach(callbackfn, thisArg = undefined)
// 23.1.3.5 Map.prototype.forEach(callbackfn, thisArg = undefined)
forEach: function forEach(callbackfn /* , that = undefined */) {
validate(this, NAME);
var f = ctx(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3);
var entry;
while (entry = entry ? entry.n : this._f) {
f(entry.v, entry.k, this);
// revert to the last existing entry
while (entry && entry.r) entry = entry.p;
}
},
// 23.1.3.7 Map.prototype.has(key)
// 23.2.3.7 Set.prototype.has(value)
has: function has(key) {
return !!getEntry(validate(this, NAME), key);
}
});
if (DESCRIPTORS) dP(C.prototype, 'size', {
get: function () {
return validate(this, NAME)[SIZE];
}
});
return C;
},
def: function (that, key, value) {
var entry = getEntry(that, key);
var prev, index;
// change existing entry
if (entry) {
entry.v = value;
// create new entry
} else {
that._l = entry = {
i: index = fastKey(key, true), // <- index
k: key, // <- key
v: value, // <- value
p: prev = that._l, // <- previous entry
n: undefined, // <- next entry
r: false // <- removed
};
if (!that._f) that._f = entry;
if (prev) prev.n = entry;
that[SIZE]++;
// add to index
if (index !== 'F') that._i[index] = entry;
} return that;
},
getEntry: getEntry,
setStrong: function (C, NAME, IS_MAP) {
// add .keys, .values, .entries, [@@iterator]
// 23.1.3.4, 23.1.3.8, 23.1.3.11, 23.1.3.12, 23.2.3.5, 23.2.3.8, 23.2.3.10, 23.2.3.11
$iterDefine(C, NAME, function (iterated, kind) {
this._t = validate(iterated, NAME); // target
this._k = kind; // kind
this._l = undefined; // previous
}, function () {
var that = this;
var kind = that._k;
var entry = that._l;
// revert to the last existing entry
while (entry && entry.r) entry = entry.p;
// get next entry
if (!that._t || !(that._l = entry = entry ? entry.n : that._t._f)) {
// or finish the iteration
that._t = undefined;
return step(1);
}
// return step by kind
if (kind == 'keys') return step(0, entry.k);
if (kind == 'values') return step(0, entry.v);
return step(0, [entry.k, entry.v]);
}, IS_MAP ? 'entries' : 'values', !IS_MAP, true);
// add [@@species], 23.1.2.2, 23.2.2.2
setSpecies(NAME);
}
};
/***/ }),
/* 56 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var strong = __webpack_require__(55);
var validate = __webpack_require__(25);
var MAP = 'Map';
// 23.1 Map Objects
module.exports = __webpack_require__(50)(MAP, function (get) {
return function Map() { return get(this, arguments.length > 0 ? arguments[0] : undefined); };
}, {
// 23.1.3.6 Map.prototype.get(key)
get: function get(key) {
var entry = strong.getEntry(validate(this, MAP), key);
return entry && entry.v;
},
// 23.1.3.9 Map.prototype.set(key, value)
set: function set(key, value) {
return strong.def(validate(this, MAP), key === 0 ? 0 : key, value);
}
}, strong, true);
/***/ }),
/* 57 */
/***/ (function(module, exports) {
module.exports = function () { /* empty */ };
/***/ }),
/* 58 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var addToUnscopables = __webpack_require__(57);
var step = __webpack_require__(30);
var Iterators = __webpack_require__(8);
var toIObject = __webpack_require__(24);
// 22.1.3.4 Array.prototype.entries()
// 22.1.3.13 Array.prototype.keys()
// 22.1.3.29 Array.prototype.values()
// 22.1.3.30 Array.prototype[@@iterator]()
module.exports = __webpack_require__(15)(Array, 'Array', function (iterated, kind) {
this._t = toIObject(iterated); // target
this._i = 0; // next index
this._k = kind; // kind
// 22.1.5.2.1 %ArrayIteratorPrototype%.next()
}, function () {
var O = this._t;
var kind = this._k;
var index = this._i++;
if (!O || index >= O.length) {
this._t = undefined;
return step(1);
}
if (kind == 'keys') return step(0, index);
if (kind == 'values') return step(0, O[index]);
return step(0, [index, O[index]]);
}, 'values');
// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)
Iterators.Arguments = Iterators.Array;
addToUnscopables('keys');
addToUnscopables('values');
addToUnscopables('entries');
/***/ }),
/* 59 */
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(58);
var global = __webpack_require__(2);
var hide = __webpack_require__(5);
var Iterators = __webpack_require__(8);
var TO_STRING_TAG = __webpack_require__(0)('toStringTag');
var DOMIterables = ('CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,' +
'DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,' +
'MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,' +
'SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,' +
'TextTrackList,TouchList').split(',');
for (var i = 0; i < DOMIterables.length; i++) {
var NAME = DOMIterables[i];
var Collection = global[NAME];
var proto = Collection && Collection.prototype;
if (proto && !proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME);
Iterators[NAME] = Iterators.Array;
}
/***/ }),
/* 60 */
/***/ (function(module, exports, __webpack_require__) {
// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)
var has = __webpack_require__(9);
var toObject = __webpack_require__(16);
var IE_PROTO = __webpack_require__(18)('IE_PROTO');
var ObjectProto = Object.prototype;
module.exports = Object.getPrototypeOf || function (O) {
O = toObject(O);
if (has(O, IE_PROTO)) return O[IE_PROTO];
if (typeof O.constructor == 'function' && O instanceof O.constructor) {
return O.constructor.prototype;
} return O instanceof Object ? ObjectProto : null;
};
/***/ }),
/* 61 */
/***/ (function(module, exports, __webpack_require__) {
var document = __webpack_require__(2).document;
module.exports = document && document.documentElement;
/***/ }),
/* 62 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var create = __webpack_require__(31);
var descriptor = __webpack_require__(36);
var setToStringTag = __webpack_require__(14);
var IteratorPrototype = {};
// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
__webpack_require__(5)(IteratorPrototype, __webpack_require__(0)('iterator'), function () { return this; });
module.exports = function (Constructor, NAME, next) {
Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) });
setToStringTag(Constructor, NAME + ' Iterator');
};
/***/ }),
/* 63 */
/***/ (function(module, exports, __webpack_require__) {
module.exports = __webpack_require__(5);
/***/ }),
/* 64 */
/***/ (function(module, exports) {
module.exports = true;
/***/ }),
/* 65 */
/***/ (function(module, exports, __webpack_require__) {
var toInteger = __webpack_require__(19);
var defined = __webpack_require__(21);
// true -> String#at
// false -> String#codePointAt
module.exports = function (TO_STRING) {
return function (that, pos) {
var s = String(defined(that));
var i = toInteger(pos);
var l = s.length;
var a, b;
if (i < 0 || i >= l) return TO_STRING ? '' : undefined;
a = s.charCodeAt(i);
return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff
? TO_STRING ? s.charAt(i) : a
: TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;
};
};
/***/ }),
/* 66 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var $at = __webpack_require__(65)(true);
// 21.1.3.27 String.prototype[@@iterator]()
__webpack_require__(15)(String, 'String', function (iterated) {
this._t = String(iterated); // target
this._i = 0; // next index
// 21.1.5.2.1 %StringIteratorPrototype%.next()
}, function () {
var O = this._t;
var index = this._i;
var point;
if (index >= O.length) return { value: undefined, done: true };
point = $at(O, index);
this._i += point.length;
return { value: point, done: false };
});
/***/ }),
/* 67 */
/***/ (function(module, exports) {
/***/ }),
/* 68 */
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(67);
__webpack_require__(66);
__webpack_require__(59);
__webpack_require__(56);
__webpack_require__(45);
__webpack_require__(42);
__webpack_require__(40);
module.exports = __webpack_require__(7).Map;
/***/ }),
/* 69 */
/***/ (function(module, exports, __webpack_require__) {
module.exports = { "default": __webpack_require__(68), __esModule: true };
/***/ }),
/* 70 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports.default = function (innerThis, boundThis) {
if (innerThis !== boundThis) {
throw new TypeError("Cannot instantiate an arrow function");
}
};
/***/ }),
/* 71 */
/***/ (function(module, exports, __webpack_require__) {
var $export = __webpack_require__(6);
// 19.1.2.3 / 15.2.3.7 Object.defineProperties(O, Properties)
$export($export.S + $export.F * !__webpack_require__(1), 'Object', { defineProperties: __webpack_require__(32) });
/***/ }),
/* 72 */
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(71);
var $Object = __webpack_require__(7).Object;
module.exports = function defineProperties(T, D) {
return $Object.defineProperties(T, D);
};
/***/ }),
/* 73 */
/***/ (function(module, exports, __webpack_require__) {
module.exports = { "default": __webpack_require__(72), __esModule: true };
/***/ }),
/* 74 */
/***/ (function(module, exports) {
exports.f = {}.propertyIsEnumerable;
/***/ }),
/* 75 */
/***/ (function(module, exports) {
exports.f = Object.getOwnPropertySymbols;
/***/ }),
/* 76 */
/***/ (function(module, exports, __webpack_require__) {
var toInteger = __webpack_require__(19);
var max = Math.max;
var min = Math.min;
module.exports = function (index, length) {
index = toInteger(index);
return index < 0 ? max(index + length, 0) : min(index, length);
};
/***/ }),
/* 77 */
/***/ (function(module, exports, __webpack_require__) {
// false -> Array#indexOf
// true -> Array#includes
var toIObject = __webpack_require__(24);
var toLength = __webpack_require__(20);
var toAbsoluteIndex = __webpack_require__(76);
module.exports = function (IS_INCLUDES) {
return function ($this, el, fromIndex) {
var O = toIObject($this);
var length = toLength(O.length);
var index = toAbsoluteIndex(fromIndex, length);
var value;
// Array#includes uses SameValueZero equality algorithm
// eslint-disable-next-line no-self-compare
if (IS_INCLUDES && el != el) while (length > index) {
value = O[index++];
// eslint-disable-next-line no-self-compare
if (value != value) return true;
// Array#indexOf ignores holes, Array#includes - not
} else for (;length > index; index++) if (IS_INCLUDES || index in O) {
if (O[index] === el) return IS_INCLUDES || index || 0;
} return !IS_INCLUDES && -1;
};
};
/***/ }),
/* 78 */
/***/ (function(module, exports, __webpack_require__) {
var has = __webpack_require__(9);
var toIObject = __webpack_require__(24);
var arrayIndexOf = __webpack_require__(77)(false);
var IE_PROTO = __webpack_require__(18)('IE_PROTO');
module.exports = function (object, names) {
var O = toIObject(object);
var i = 0;
var result = [];
var key;
for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);
// Don't enum bug & hidden keys
while (names.length > i) if (has(O, key = names[i++])) {
~arrayIndexOf(result, key) || result.push(key);
}
return result;
};
/***/ }),
/* 79 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
// 19.1.2.1 Object.assign(target, source, ...)
var getKeys = __webpack_require__(35);
var gOPS = __webpack_require__(75);
var pIE = __webpack_require__(74);
var toObject = __webpack_require__(16);
var IObject = __webpack_require__(23);
var $assign = Object.assign;
// should work with symbols and should have deterministic property order (V8 bug)
module.exports = !$assign || __webpack_require__(10)(function () {
var A = {};
var B = {};
// eslint-disable-next-line no-undef
var S = Symbol();
var K = 'abcdefghijklmnopqrst';
A[S] = 7;
K.split('').forEach(function (k) { B[k] = k; });
return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;
}) ? function assign(target, source) { // eslint-disable-line no-unused-vars
var T = toObject(target);
var aLen = arguments.length;
var index = 1;
var getSymbols = gOPS.f;
var isEnum = pIE.f;
while (aLen > index) {
var S = IObject(arguments[index++]);
var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S);
var length = keys.length;
var j = 0;
var key;
while (length > j) if (isEnum.call(S, key = keys[j++])) T[key] = S[key];
} return T;
} : $assign;
/***/ }),
/* 80 */
/***/ (function(module, exports, __webpack_require__) {
// 7.1.1 ToPrimitive(input [, PreferredType])
var isObject = __webpack_require__(3);
// instead of the ES6 spec version, we didn't implement @@toPrimitive case
// and the second argument - flag - preferred type is a string
module.exports = function (it, S) {
if (!isObject(it)) return it;
var fn, val;
if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;
if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
throw TypeError("Can't convert object to primitive value");
};
/***/ }),
/* 81 */
/***/ (function(module, exports, __webpack_require__) {
module.exports = !__webpack_require__(1) && !__webpack_require__(10)(function () {
return Object.defineProperty(__webpack_require__(37)('div'), 'a', { get: function () { return 7; } }).a != 7;
});
/***/ }),
/* 82 */
/***/ (function(module, exports, __webpack_require__) {
// 19.1.3.1 Object.assign(target, source)
var $export = __webpack_require__(6);
$export($export.S + $export.F, 'Object', { assign: __webpack_require__(79) });
/***/ }),
/* 83 */
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(82);
module.exports = __webpack_require__(7).Object.assign;
/***/ }),
/* 84 */
/***/ (function(module, exports, __webpack_require__) {
module.exports = { "default": __webpack_require__(83), __esModule: true };
/***/ }),
/* 85 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
var _assign = __webpack_require__(84);
var _assign2 = _interopRequireDefault(_assign);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
exports.default = _assign2.default || function (target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i];
for (var key in source) {
if (Object.prototype.hasOwnProperty.call(source, key)) {
target[key] = source[key];
}
}
}
return target;
};
/***/ }),
/* 86 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends2 = __webpack_require__(85);
var _extends3 = _interopRequireDefault(_extends2);
var _defineProperties = __webpack_require__(73);
var _defineProperties2 = _interopRequireDefault(_defineProperties);
var _newArrowCheck2 = __webpack_require__(70);
var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2);
var _map = __webpack_require__(69);
var _map2 = _interopRequireDefault(_map);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var CLICK = 'click';
var captureInstances = new _map2.default();
var nonCaptureInstances = new _map2.default();
var instancesList = [captureInstances, nonCaptureInstances];
var commonHandler = function onCommonEvent(instances, event) {
var _this = this;
var target = event.target;
instances.forEach(function (instance) {
(0, _newArrowCheck3.default)(this, _this);
instance.forEach(function (_ref) {
var el = _ref.el,
binding = _ref.binding;
(0, _newArrowCheck3.default)(this, _this);
if (target !== el && !el.contains(target)) {
if (binding.modifiers.stop) {
event.stopPropagation();
}
if (binding.modifiers.prevent) {
event.preventDefault();
}
binding.value.call(this, event);
}
}.bind(this));
}.bind(this));
};
var captureEventHandler = function onCaptureEvent(event) {
commonHandler.call(this, captureInstances, event);
};
var nonCaptureEventHandler = function onNonCaptureEvent(event) {
commonHandler.call(this, nonCaptureInstances, event);
};
exports.default = (0, _defineProperties2.default)({}, {
$_captureInstances: {
get: function get() {
return captureInstances;
}
},
$_nonCaptureInstances: {
get: function get() {
return nonCaptureInstances;
}
},
$_onCaptureEvent: {
get: function get() {
return captureEventHandler;
}
},
$_onNonCaptureEvent: {
get: function get() {
return nonCaptureEventHandler;
}
},
bind: {
value: function bind(el, binding) {
if (typeof binding.value !== 'function') {
throw new TypeError('Binding value must be a function.');
}
var arg = binding.arg || CLICK;
var normalisedBinding = (0, _extends3.default)({}, binding, {
arg: arg,
modifiers: (0, _extends3.default)({
capture: false,
prevent: false,
stop: false
}, binding.modifiers)
});
var useCapture = normalisedBinding.modifiers.capture;
var instances = useCapture ? captureInstances : nonCaptureInstances;
if (!instances.has(arg)) {
instances.set(arg, []);
}
var typeList = instances.get(arg);
typeList.push({ el: el, binding: normalisedBinding });
if (typeList.length === 1) {
var eventHandler = useCapture ? captureEventHandler : nonCaptureEventHandler;
document.addEventListener(arg, eventHandler, useCapture);
}
}
},
unbind: {
value: function unbind(el) {
var _this2 = this;
instancesList.forEach(function (instances) {
(0, _newArrowCheck3.default)(this, _this2);
if (instances.size > 0) {
var useCapture = instances === captureInstances;
instances.forEach(function (instance, eventName) {
(0, _newArrowCheck3.default)(this, _this2);
var newInstance = instance.filter(function (directive) {
(0, _newArrowCheck3.default)(this, _this2);
return directive.el !== el;
}.bind(this));
if (newInstance.length === 0) {
var eventHandler = useCapture ? captureEventHandler : nonCaptureEventHandler;
document.removeEventListener(eventName, eventHandler, useCapture);
instances.delete(eventName);
} else {
instances.set(eventName, newInstance);
}
}.bind(this));
}
}.bind(this));
}
}
});
/***/ }),
/* 87 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _vClickOutside = __webpack_require__(86);
var _vClickOutside2 = _interopRequireDefault(_vClickOutside);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
exports.default = {
directive: _vClickOutside2.default,
install: function install(Vue) {
Vue.directive('click-outside', _vClickOutside2.default);
}
};
/***/ })
/******/ ]);
});
//# sourceMappingURL=v-click-outside-x.js.map
// https://facebook.github.io/jest/docs/en/configuration.html
module.exports = {
collectCoverage: true,
coverageDirectory: '__tests__/coverage/',

@@ -13,3 +12,4 @@ moduleFileExtensions: [

},
testMatch: ['**/?(*.)(spec|test).js?(x)'],
verbose: true,
};
{
"name": "v-click-outside-x",
"version": "2.0.0",
"version": "2.1.0",
"description": "Vue directive to react on clicks outside an element.",

@@ -15,5 +15,6 @@ "homepage": "https://github.com/Xotic750/v-click-outside-x.git",

"scripts": {
"build": "NODE_ENV=production webpack --bail --config webpack.config.js --progress --profile --colors",
"build": "cross-env NODE_ENV=production webpack --bail --config webpack.config.js --progress --profile --colors",
"build:dev": "webpack --bail --config webpack.config.js --progress --profile --colors",
"clean": "rimraf dist __tests__/coverage",
"clean": "rimraf dist && npm run clean:coverage",
"clean:coverage": "rimraf __tests__/coverage",
"lint": "eslint --ext .js .",

@@ -27,3 +28,5 @@ "lint-fix": "npm run lint -- --fix",

"start": "nodemon --exec \"npm run build\" --watch src",
"test": "rimraf __tests__/coverage && jest"
"test": "npm run clean:coverage && jest",
"test:ci": "npm run test -- --ci --maxWorkers=2",
"test:coverage": "npm run test -- --coverage"
},

@@ -44,3 +47,2 @@ "author": {

"devDependencies": {
"ajv": "^6.2.0",
"babel-cli": "^6.26.0",

@@ -50,7 +52,4 @@ "babel-core": "^6.26.0",

"babel-jest": "^22.4.1",
"babel-loader": "^7.1.3",
"babel-polyfill": "^6.26.0",
"babel-plugin-add-module-exports": "^0.2.1",
"babel-loader": "^7.1.4",
"babel-plugin-dynamic-import-node": "^1.2.0",
"babel-plugin-lodash": "^3.3.2",
"babel-plugin-transform-class-properties": "^6.24.1",

@@ -61,9 +60,7 @@ "babel-plugin-transform-es5-property-mutators": "^6.24.1",

"babel-plugin-transform-runtime": "^6.23.0",
"babel-polyfill": "^6.26.0",
"babel-preset-env": "^1.6.1",
"babel-preset-stage-2": "^6.24.1",
"babel-runtime": "^6.26.0",
"chalk": "^2.3.1",
"concurrently": "^3.5.1",
"cross-env": "^5.1.3",
"eslint": "^4.18.1",
"cross-env": "^5.1.4",
"eslint": "^4.18.2",
"eslint-config-airbnb-base": "^12.1.0",

@@ -79,9 +76,8 @@ "eslint-friendly-formatter": "^3.0.0",

"eslint-plugin-import": "^2.9.0",
"eslint-plugin-jest": "^21.12.2",
"eslint-plugin-jest": "^21.14.0",
"eslint-plugin-jsdoc": "^3.5.0",
"eslint-plugin-json": "^1.2.0",
"eslint-plugin-lodash": "^2.6.1",
"eslint-plugin-no-use-extend-native": "^0.3.12",
"eslint-plugin-prefer-object-spread": "^1.2.1",
"eslint-plugin-promise": "^3.6.0",
"eslint-plugin-promise": "^3.7.0",
"eslint-plugin-sort-class-members": "^1.3.0",

@@ -95,5 +91,2 @@ "friendly-errors-webpack-plugin": "^1.6.1",

"jsdoc-to-markdown": "^4.0.1",
"lodash": "^4.17.5",
"lodash-webpack-plugin": "^0.11.4",
"node-notifier": "^5.2.1",
"nodemon": "^1.17.1",

@@ -103,8 +96,9 @@ "nsp": "^3.2.1",

"semver": "^5.5.0",
"webpack": "^3.11.0",
"webpack-bundle-analyzer": "^2.11.0",
"webpack": "^4.1.1",
"webpack-bundle-analyzer": "^2.11.1",
"webpack-cli": "^2.0.11",
"webpack-merge": "^4.1.2"
},
"engines": {
"node": ">=6.0.0",
"node": ">=6.11.5",
"npm": ">=3.10.8",

@@ -111,0 +105,0 @@ "yarn": ">=1.3.2"

@@ -7,5 +7,5 @@ /**

require('babel-polyfill');
const path = require('path');
const webpack = require('webpack');
const LodashModuleReplacementPlugin = require('lodash-webpack-plugin');
const merge = require('webpack-merge');
const eslintFriendlyFormatter = require('eslint-friendly-formatter');

@@ -15,5 +15,7 @@ const {

} = require('webpack-bundle-analyzer');
const assign = require('lodash/assign');
const compact = require('lodash/compact');
const filename = 'v-click-outside-x';
const library = 'vClickOutside';
const dist = path.resolve(__dirname, 'dist');
/**

@@ -52,9 +54,7 @@ * The NODE_ENV environment variable.

module.exports = function generateConfig(env) {
const ENV = assign({}, {
const ENV = merge({
report: false,
}, env);
return {
context: path.resolve(__dirname, '.'),
const base = {
/**

@@ -85,5 +85,5 @@ * This option controls if and how source maps are generated.

*/
entry: [path.join(__dirname, 'src/index.js')],
entry: './index.js',
// mode: NODE_ENV === PRODUCTION ? PRODUCTION : DEVELOPMENT,
mode: NODE_ENV === PRODUCTION ? PRODUCTION : DEVELOPMENT,

@@ -106,3 +106,3 @@ /**

rules: [
/**
/**
* eslint-loader options.

@@ -129,3 +129,3 @@ * @type {!Object}

* This package allows transpiling JavaScript files using Babel and webpack.
* @type {!Object}
*
* @see {@link https://webpack.js.org/loaders/babel-loader/}

@@ -136,11 +136,2 @@ */

loader: 'babel-loader',
options: {
plugins: ['lodash'],
presets: [['env', {
modules: false,
targets: {
node: 8,
},
}]],
},
test: /\.js$/,

@@ -170,6 +161,5 @@ },

output: {
filename: 'v-click-outside-x.js',
library: 'vClickOutside',
library,
libraryTarget: 'umd',
path: path.resolve(__dirname, 'dist'),
path: dist,
},

@@ -184,58 +174,5 @@

*
* @type {array.<!Object>}
*/
plugins: compact([
/**
* Use the shorthand version.
* @type {!Object}
* @see {@link https://webpack.js.org/plugins/environment-plugin/}
*/
new webpack.EnvironmentPlugin({
DEBUG: false, // use 'false' unless process.env.DEBUG is defined.
NODE_ENV: DEVELOPMENT, // use 'development' unless process.env.NODE_ENV is defined.
}),
plugins: [],
/**
* Smaller lodash builds. We are not opting in to path feature.
* @type {!Object}
* @see {@link https://github.com/lodash/lodash-webpack-plugin}
*/
new LodashModuleReplacementPlugin({
paths: true,
}),
/**
* This plugin uses UglifyJS v3 (uglify-es) to minify your JavaScript.
* @type {!Object}
* @see {@link https://webpack.js.org/plugins/uglifyjs-webpack-plugin/}
*/
(function uglifyJs() {
if (NODE_ENV === PRODUCTION) {
return new webpack.optimize.UglifyJsPlugin({
parallel: true,
sourceMap: true,
uglifyOptions: {
ecma: 8,
},
});
}
return undefined;
}()),
/**
* Webpack plugin and CLI utility that represents bundle content as convenient
* interactive zoomable treemap.
* @type {!Object}
* @see {@link https://github.com/webpack-contrib/webpack-bundle-analyzer}
*/
(function bundleAnalyzer() {
if (ENV.report) {
return new BundleAnalyzerPlugin();
}
return undefined;
}),
]),
/**

@@ -247,3 +184,3 @@ * These options change how modules are resolved.

resolve: {
/**
/**
* Create aliases to import or require certain modules more easily.

@@ -253,9 +190,32 @@ * @type {!Object}

*/
alias: {
RootDir: path.resolve(__dirname, '.'),
src: path.resolve(__dirname, 'src'),
},
alias: {},
extensions: ['.js', '.json'],
},
};
const packed = merge(base, {
optimization: {
minimize: false,
},
output: {
filename: `${filename}.js`,
},
});
const minified = merge(base, {
output: {
filename: `${filename}.min.js`,
},
/**
* Webpack plugin and CLI utility that represents bundle content as convenient
* interactive zoomable treemap.
*
* @see {@link https://github.com/webpack-contrib/webpack-bundle-analyzer}
*/
plugins: ENV.report ? [new BundleAnalyzerPlugin()] : [],
});
return [packed, minified];
};

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc