New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

hey-utils

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hey-utils - npm Package Compare versions

Comparing version 0.0.20 to 0.0.21

2

build/utils.js

@@ -1,1 +0,1 @@

!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.Utils=n():t.Utils=n()}(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.i=function(t){return t},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=83)}([function(t,n){var e=t.exports={version:"2.4.0"};"number"==typeof __e&&(__e=e)},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){var r=e(23)("wks"),o=e(14),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={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},function(t,n,e){var r=e(62),o=e(16);t.exports=function(t){return r(o(t))}},function(t,n,e){t.exports=!e(9)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,n,e){var r=e(7),o=e(13);t.exports=e(5)?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(8),o=e(29),i=e(25),u=Object.defineProperty;n.f=e(5)?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,e){var r=e(10);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){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n,e){var r=e(35),o=e(17);t.exports=Object.keys||function(t){return r(t,o)}},function(t,n){t.exports={}},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},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){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){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,n,e){var r=e(1),o=e(0),i=e(59),u=e(6),c=function(t,n,e){var f,a,s,l=t&c.F,p=t&c.G,y=t&c.S,v=t&c.P,h=t&c.B,d=t&c.W,g=p?o:o[n]||(o[n]={}),b=g.prototype,O=p?r:y?r[n]:(r[n]||{}).prototype;p&&(e=n);for(f in e)(a=!l&&O&&void 0!==O[f])&&f in g||(s=a?O[f]:e[f],g[f]=p&&"function"!=typeof O[f]?e[f]:h&&a?i(s,r):d&&O[f]==s?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}(s):v&&"function"==typeof s?i(Function.call,s):s,v&&((g.virtual||(g.virtual={}))[f]=s,t&c.R&&b&&!b[f]&&u(b,f,s)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,n){t.exports=!0},function(t,n){n.f={}.propertyIsEnumerable},function(t,n,e){var r=e(7).f,o=e(3),i=e(2)("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,e){var r=e(23)("keys"),o=e(14);t.exports=function(t){return r[t]||(r[t]=o(t))}},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){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(10);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){var r=e(1),o=e(0),i=e(19),u=e(27),c=e(7).f;t.exports=function(t){var n=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in n||c(n,t,{value:u.f(t)})}},function(t,n,e){n.f=e(2)},function(t,n,e){var r=e(10),o=e(1).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,n,e){t.exports=!e(5)&&!e(9)(function(){return 7!=Object.defineProperty(e(28)("div"),"a",{get:function(){return 7}}).a})},function(t,n,e){"use strict";var r=e(19),o=e(18),i=e(37),u=e(6),c=e(3),f=e(12),a=e(64),s=e(21),l=e(70),p=e(2)("iterator"),y=!([].keys&&"next"in[].keys()),v=function(){return this};t.exports=function(t,n,e,h,d,g,b){a(e,n,h);var O,x,m,w=function(t){if(!y&&t in P)return P[t];switch(t){case"keys":case"values":return function(){return new e(this,t)}}return function(){return new e(this,t)}},S=n+" Iterator",j="values"==d,_=!1,P=t.prototype,E=P[p]||P["@@iterator"]||d&&P[d],k=E||w(d),A=d?j?w("entries"):k:void 0,M="Array"==n?P.entries||E:E;if(M&&(m=l(M.call(new t)))!==Object.prototype&&(s(m,S,!0),r||c(m,p)||u(m,p,v)),j&&E&&"values"!==E.name&&(_=!0,k=function(){return E.call(this)}),r&&!b||!y&&!_&&P[p]||u(P,p,k),f[n]=k,f[S]=v,d)if(O={values:j?k:w("values"),keys:g?k:w("keys"),entries:A},b)for(x in O)x in P||i(P,x,O[x]);else o(o.P+o.F*(y||_),n,O);return O}},function(t,n,e){var r=e(14)("meta"),o=e(10),i=e(3),u=e(7).f,c=0,f=Object.isExtensible||function(){return!0},a=!e(9)(function(){return f(Object.preventExtensions({}))}),s=function(t){u(t,r,{value:{i:"O"+ ++c,w:{}}})},l=function(t,n){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!f(t))return"F";if(!n)return"E";s(t)}return t[r].i},p=function(t,n){if(!i(t,r)){if(!f(t))return!0;if(!n)return!1;s(t)}return t[r].w},y=function(t){return a&&v.NEED&&f(t)&&!i(t,r)&&s(t),t},v=t.exports={KEY:r,NEED:!1,fastKey:l,getWeak:p,onFreeze:y}},function(t,n,e){var r=e(8),o=e(67),i=e(17),u=e(22)("IE_PROTO"),c=function(){},f=function(){var t,n=e(28)("iframe"),r=i.length;for(n.style.display="none",e(61).appendChild(n),n.src="javascript:",t=n.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),f=t.F;r--;)delete f.prototype[i[r]];return f()};t.exports=Object.create||function(t,n){var e;return null!==t?(c.prototype=r(t),e=new c,c.prototype=null,e[u]=t):e=f(),void 0===n?e:o(e,n)}},function(t,n,e){var r=e(35),o=e(17).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,n){n.f=Object.getOwnPropertySymbols},function(t,n,e){var r=e(3),o=e(4),i=e(57)(!1),u=e(22)("IE_PROTO");t.exports=function(t,n){var e,c=o(t),f=0,a=[];for(e in c)e!=u&&r(c,e)&&a.push(e);for(;n.length>f;)r(c,e=n[f++])&&(~i(a,e)||a.push(e));return a}},function(t,n,e){var r=e(18),o=e(0),i=e(9);t.exports=function(t,n){var e=(o.Object||{})[t]||Object[t],u={};u[t]=n(e),r(r.S+r.F*i(function(){e(1)}),"Object",u)}},function(t,n,e){t.exports=e(6)},function(t,n,e){var r=e(16);t.exports=function(t){return Object(r(t))}},function(t,n,e){"use strict";var r=e(71)(!0);e(30)(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){e(76);for(var r=e(1),o=e(6),i=e(12),u=e(2)("toStringTag"),c=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],f=0;f<5;f++){var a=c[f],s=r[a],l=s&&s.prototype;l&&!l[u]&&o(l,u,a),i[a]=i.Array}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var o=e(43),i=r(o),u=e(42),c=r(u),f=e(45),a=r(f),s=e(44),l=r(s),p=e(48),y=r(p),v={isObject:function(t){return"[object Object]"===Object.prototype.toString.call(t)},isArray:function(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)},isDate:function(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)},isNumber:function(t){return t instanceof Number||"[object Number]"===Object.prototype.toString.call(t)},isString:function(t){return t instanceof String||"[object String]"===Object.prototype.toString.call(t)},isBoolean:function(t){return"boolean"==typeof t},isFunction:function(t){return"function"==typeof t},isNull:function(t){return void 0===t||null===t},isPlainObject:function(t){if(t&&"[object Object]"===Object.prototype.toString.call(t)&&t.constructor===Object&&!hasOwnProperty.call(t,"constructor")){var n;for(n in t);return void 0===n||hasOwnProperty.call(t,n)}return!1},extend:function(){var t,n,e,r,o,i,u=arguments[0]||{},c=1,f=arguments.length,a=!1;for("boolean"==typeof u&&(a=u,u=arguments[1]||{},c=2),"object"===(void 0===u?"undefined":(0,y.default)(u))||this.isFunction(u)||(u={}),f===c&&(u=this,--c);c<f;c++)if(null!=(t=arguments[c]))for(n in t)e=u[n],r=t[n],u!==r&&(a&&r&&(this.isPlainObject(r)||(o=this.isArray(r)))?(o?(o=!1,i=e&&this.isArray(e)?e:[]):i=e&&this.isPlainObject(e)?e:{},u[n]=this.extend(a,i,r)):void 0!==r&&(u[n]=r));return u},freeze:function(t){var n=this,e=this;return(0,l.default)(t),(0,a.default)(t).forEach(function(r,o){e.isObject(t[r])&&n.freeze(t[r])}),t},copy:function(t){var n=null;if(this.isObject(t)){n={};for(var e in t)n[e]=this.copy(t[e])}else if(this.isArray(t)){n=[];var r=!0,o=!1,i=void 0;try{for(var u,f=(0,c.default)(t);!(r=(u=f.next()).done);r=!0){var a=u.value;n.push(this.copy(a))}}catch(t){o=!0,i=t}finally{try{!r&&f.return&&f.return()}finally{if(o)throw i}}}else n=t;return n},getKeyValue:function(t,n){if(!this.isObject(t))return null;var e=null;if(this.isArray(n)?e=n:this.isString(n)&&(e=n.split(".")),null==e||0==e.length)return null;var r=null,o=e.shift(),i=o.match(new RegExp("^(\\w+)\\[(\\d+)\\]$"));if(i){o=i[1];var u=i[2];r=t[o],this.isArray(r)&&r.length>u&&(r=r[u])}else r=t[o];return e.length>0?this.getKeyValue(r,e):r},setKeyValue:function(t,n,e,r){if(!this.isObject(t))return!1;var o=null;if(this.isArray(n)?o=n:this.isString(n)&&(o=n.split("."),r=t),null==o||0==o.length)return!1;var i=null,u=0,c=o.shift(),f=c.match(new RegExp("^(\\w+)\\[(\\d+)\\]$"));if(f){if(c=f[1],u=f[2],i=t[c],this.isArray(i)&&i.length>u){if(o.length>0)return this.setKeyValue(i[u],o,e,r);i[u]=e}}else{if(o.length>0)return this.setKeyValue(t[c],o,e,r);t[c]=e}return r},toArray:function(t,n,e){var r="";if(!this.isObject(t))return[];this.isString(e)&&(r=e);var o=[];for(var i in t){var u=t[i],c={};this.isObject(u)?c=u:c[r]=u,n&&(c[n]=i),o.push(c)}return o},toObject:function(t){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"id",e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r={},o=0;o<t.length;o++){var i=t[o];this.isObject(i)?"count"==n?r[o]=i:(r[i[n]]=i,e&&(r[i[n]].count=o)):r[i]=i}return r},saveLocal:function(t,n){return!!(window.localStorage&&JSON&&t&&n)&&("object"==(void 0===n?"undefined":(0,y.default)(n))&&(n=(0,i.default)(n)),window.localStorage[t]=n,!0)},getLocal:function(t,n){if(window.localStorage&&JSON&&t){var e=window.localStorage[t];if(!n||"json"!=n||void 0===e)return e;try{return JSON.parse(e)}catch(t){return""}}return null},getLocal2Json:function(t){if(window.localStorage&&JSON&&t){var n=window.localStorage[t];if(this.isNull(n))return n;try{return JSON.parse(n)}catch(t){return""}}return null},removeLocal:function(t){return window.localStorage&&JSON&&t&&(window.localStorage[t]=null),null},saveCookie:function(t,n,e,r){var o=!!navigator.cookieEnabled;if(t&&o){r=r||"/","object"==(void 0===n?"undefined":(0,y.default)(n))&&(n=(0,i.default)(n));var u=void 0;return e&&(u=new Date,u.setTime(u.getTime()+1e3*e)),document.cookie=t+"="+escape(n)+(e?";expires="+u.toGMTString():"")+";path="+r,!0}return!1},getCookie:function(t){var n=!!navigator.cookieEnabled;if(t&&n){var e=document.cookie.match(new RegExp("(^| )"+t+"=([^;]*)(;|$)"));if(null!==e)return unescape(e[2])}return null},clearCookie:function(){var t=document.cookie.match(/[^ =;]+(?=\=)/g);if(t)for(var n=t.length;n--;)document.cookie=t[n]+"=0;expires="+new Date(0).toUTCString()},removeCookie:function(t,n){var e=!!navigator.cookieEnabled;if(t&&e){var r=new Date;n=n||"/",r.setTime(r.getTime()-1);var o=this.getCookie(t);return null!==o&&(document.cookie=t+"="+o+";expires="+r.toGMTString()+";path="+n),!0}return!1},uuid:function(){var t=function(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)};return t()+t()+"-"+t()+"-"+t()+"-"+t()+"-"+t()+t()+t()},padLeft:function(t,n){var e="00000"+t;return e.substr(e.length-n)},toggleValue:function(t,n){if(!this.isArray(t))return[n];t.some(function(t){return t==n})?t.splice(t.indexOf(n),1):t.push(n)},toSimpleArray:function(t,n){var e=[];if(this.isObject(t)){var r=!0,o=!1,i=void 0;try{for(var u,f=(0,c.default)((0,a.default)(t));!(r=(u=f.next()).done);r=!0){var s=u.value;e.push(t[s][n])}}catch(t){o=!0,i=t}finally{try{!r&&f.return&&f.return()}finally{if(o)throw i}}}if(this.isArray(t)){var l=!0,p=!1,y=void 0;try{for(var v,h=(0,c.default)(t);!(l=(v=h.next()).done);l=!0){var d=v.value;e.push(d[n])}}catch(t){p=!0,y=t}finally{try{!l&&h.return&&h.return()}finally{if(p)throw y}}}return e},getURLParam:function(t,n){return decodeURIComponent((new RegExp("[?|&]"+t+"=([^&;]+?)(&|#|;|$)").exec(n||location.search)||[!0,""])[1].replace(/\+/g,"%20"))||null},getAuthor:function(){var t=this.getURLParam("author",window.location.search)||this.getLocal("window_author");return t&&this.saveLocal("window_author",t),t}};v.valueForKeypath=v.getKeyValue,v.setValueForKeypath=v.setKeyValue,t.exports=v},function(t,n,e){t.exports={default:e(49),__esModule:!0}},function(t,n,e){t.exports={default:e(50),__esModule:!0}},function(t,n,e){t.exports={default:e(51),__esModule:!0}},function(t,n,e){t.exports={default:e(52),__esModule:!0}},function(t,n,e){t.exports={default:e(53),__esModule:!0}},function(t,n,e){t.exports={default:e(54),__esModule:!0}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var o=e(47),i=r(o),u=e(46),c=r(u),f="function"==typeof c.default&&"symbol"==typeof i.default?function(t){return typeof t}:function(t){return t&&"function"==typeof c.default&&t.constructor===c.default&&t!==c.default.prototype?"symbol":typeof t};n.default="function"==typeof c.default&&"symbol"===f(i.default)?function(t){return void 0===t?"undefined":f(t)}:function(t){return t&&"function"==typeof c.default&&t.constructor===c.default&&t!==c.default.prototype?"symbol":void 0===t?"undefined":f(t)}},function(t,n,e){e(40),e(39),t.exports=e(75)},function(t,n,e){var r=e(0),o=r.JSON||(r.JSON={stringify:JSON.stringify});t.exports=function(t){return o.stringify.apply(o,arguments)}},function(t,n,e){e(77),t.exports=e(0).Object.freeze},function(t,n,e){e(78),t.exports=e(0).Object.keys},function(t,n,e){e(80),e(79),e(81),e(82),t.exports=e(0).Symbol},function(t,n,e){e(39),e(40),t.exports=e(27).f("iterator")},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,n){t.exports=function(){}},function(t,n,e){var r=e(4),o=e(73),i=e(72);t.exports=function(t){return function(n,e,u){var c,f=r(n),a=o(f.length),s=i(u,a);if(t&&e!=e){for(;a>s;)if((c=f[s++])!=c)return!0}else for(;a>s;s++)if((t||s in f)&&f[s]===e)return t||s||0;return!t&&-1}}},function(t,n,e){var r=e(15),o=e(2)("toStringTag"),i="Arguments"==r(function(){return arguments}()),u=function(t,n){try{return t[n]}catch(t){}};t.exports=function(t){var n,e,c;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=u(n=Object(t),o))?e:i?r(n):"Object"==(c=r(n))&&"function"==typeof n.callee?"Arguments":c}},function(t,n,e){var r=e(55);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(11),o=e(34),i=e(20);t.exports=function(t){var n=r(t),e=o.f;if(e)for(var u,c=e(t),f=i.f,a=0;c.length>a;)f.call(t,u=c[a++])&&n.push(u);return n}},function(t,n,e){t.exports=e(1).document&&document.documentElement},function(t,n,e){var r=e(15);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,n,e){var r=e(15);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,n,e){"use strict";var r=e(32),o=e(13),i=e(21),u={};e(6)(u,e(2)("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){t.exports=function(t,n){return{value:n,done:!!t}}},function(t,n,e){var r=e(11),o=e(4);t.exports=function(t,n){for(var e,i=o(t),u=r(i),c=u.length,f=0;c>f;)if(i[e=u[f++]]===n)return e}},function(t,n,e){var r=e(7),o=e(8),i=e(11);t.exports=e(5)?Object.defineProperties:function(t,n){o(t);for(var e,u=i(n),c=u.length,f=0;c>f;)r.f(t,e=u[f++],n[e]);return t}},function(t,n,e){var r=e(20),o=e(13),i=e(4),u=e(25),c=e(3),f=e(29),a=Object.getOwnPropertyDescriptor;n.f=e(5)?a:function(t,n){if(t=i(t),n=u(n,!0),f)try{return a(t,n)}catch(t){}if(c(t,n))return o(!r.f.call(t,n),t[n])}},function(t,n,e){var r=e(4),o=e(33).f,i={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=function(t){try{return o(t)}catch(t){return u.slice()}};t.exports.f=function(t){return u&&"[object Window]"==i.call(t)?c(t):o(r(t))}},function(t,n,e){var r=e(3),o=e(38),i=e(22)("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){var r=e(24),o=e(16);t.exports=function(t){return function(n,e){var i,u,c=String(o(n)),f=r(e),a=c.length;return f<0||f>=a?t?"":void 0:(i=c.charCodeAt(f),i<55296||i>56319||f+1===a||(u=c.charCodeAt(f+1))<56320||u>57343?t?c.charAt(f):i:t?c.slice(f,f+2):u-56320+(i-55296<<10)+65536)}}},function(t,n,e){var r=e(24),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,e){var r=e(24),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,n,e){var r=e(58),o=e(2)("iterator"),i=e(12);t.exports=e(0).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[r(t)]}},function(t,n,e){var r=e(8),o=e(74);t.exports=e(0).getIterator=function(t){var n=o(t);if("function"!=typeof n)throw TypeError(t+" is not iterable!");return r(n.call(t))}},function(t,n,e){"use strict";var r=e(56),o=e(65),i=e(12),u=e(4);t.exports=e(30)(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,e){var r=e(10),o=e(31).onFreeze;e(36)("freeze",function(t){return function(n){return t&&r(n)?t(o(n)):n}})},function(t,n,e){var r=e(38),o=e(11);e(36)("keys",function(){return function(t){return o(r(t))}})},function(t,n){},function(t,n,e){"use strict";var r=e(1),o=e(3),i=e(5),u=e(18),c=e(37),f=e(31).KEY,a=e(9),s=e(23),l=e(21),p=e(14),y=e(2),v=e(27),h=e(26),d=e(66),g=e(60),b=e(63),O=e(8),x=e(4),m=e(25),w=e(13),S=e(32),j=e(69),_=e(68),P=e(7),E=e(11),k=_.f,A=P.f,M=j.f,N=r.Symbol,T=r.JSON,F=T&&T.stringify,C=y("_hidden"),I=y("toPrimitive"),L={}.propertyIsEnumerable,J=s("symbol-registry"),R=s("symbols"),K=s("op-symbols"),D=Object.prototype,V="function"==typeof N,U=r.QObject,z=!U||!U.prototype||!U.prototype.findChild,W=i&&a(function(){return 7!=S(A({},"a",{get:function(){return A(this,"a",{value:7}).a}})).a})?function(t,n,e){var r=k(D,n);r&&delete D[n],A(t,n,e),r&&t!==D&&A(D,n,r)}:A,G=function(t){var n=R[t]=S(N.prototype);return n._k=t,n},$=V&&"symbol"==typeof N.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof N},B=function(t,n,e){return t===D&&B(K,n,e),O(t),n=m(n,!0),O(e),o(R,n)?(e.enumerable?(o(t,C)&&t[C][n]&&(t[C][n]=!1),e=S(e,{enumerable:w(0,!1)})):(o(t,C)||A(t,C,w(1,{})),t[C][n]=!0),W(t,n,e)):A(t,n,e)},Y=function(t,n){O(t);for(var e,r=g(n=x(n)),o=0,i=r.length;i>o;)B(t,e=r[o++],n[e]);return t},Q=function(t,n){return void 0===n?S(t):Y(S(t),n)},q=function(t){var n=L.call(this,t=m(t,!0));return!(this===D&&o(R,t)&&!o(K,t))&&(!(n||!o(this,t)||!o(R,t)||o(this,C)&&this[C][t])||n)},H=function(t,n){if(t=x(t),n=m(n,!0),t!==D||!o(R,n)||o(K,n)){var e=k(t,n);return!e||!o(R,n)||o(t,C)&&t[C][n]||(e.enumerable=!0),e}},X=function(t){for(var n,e=M(x(t)),r=[],i=0;e.length>i;)o(R,n=e[i++])||n==C||n==f||r.push(n);return r},Z=function(t){for(var n,e=t===D,r=M(e?K:x(t)),i=[],u=0;r.length>u;)!o(R,n=r[u++])||e&&!o(D,n)||i.push(R[n]);return i};V||(N=function(){if(this instanceof N)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),n=function(e){this===D&&n.call(K,e),o(this,C)&&o(this[C],t)&&(this[C][t]=!1),W(this,t,w(1,e))};return i&&z&&W(D,t,{configurable:!0,set:n}),G(t)},c(N.prototype,"toString",function(){return this._k}),_.f=H,P.f=B,e(33).f=j.f=X,e(20).f=q,e(34).f=Z,i&&!e(19)&&c(D,"propertyIsEnumerable",q,!0),v.f=function(t){return G(y(t))}),u(u.G+u.W+u.F*!V,{Symbol:N});for(var tt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nt=0;tt.length>nt;)y(tt[nt++]);for(var tt=E(y.store),nt=0;tt.length>nt;)h(tt[nt++]);u(u.S+u.F*!V,"Symbol",{for:function(t){return o(J,t+="")?J[t]:J[t]=N(t)},keyFor:function(t){if($(t))return d(J,t);throw TypeError(t+" is not a symbol!")},useSetter:function(){z=!0},useSimple:function(){z=!1}}),u(u.S+u.F*!V,"Object",{create:Q,defineProperty:B,defineProperties:Y,getOwnPropertyDescriptor:H,getOwnPropertyNames:X,getOwnPropertySymbols:Z}),T&&u(u.S+u.F*(!V||a(function(){var t=N();return"[null]"!=F([t])||"{}"!=F({a:t})||"{}"!=F(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!$(t)){for(var n,e,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);return n=r[1],"function"==typeof n&&(e=n),!e&&b(n)||(n=function(t,n){if(e&&(n=e.call(this,t,n)),!$(n))return n}),r[1]=n,F.apply(T,r)}}}),N.prototype[I]||e(6)(N.prototype,I,N.prototype.valueOf),l(N,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},function(t,n,e){e(26)("asyncIterator")},function(t,n,e){e(26)("observable")},function(t,n,e){t.exports=e(41)}])});
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.Utils=n():t.Utils=n()}(this,function(){return function(t){function n(e){if(r[e])return r[e].exports;var o=r[e]={i:e,l:!1,exports:{}};return t[e].call(o.exports,o,o.exports,n),o.l=!0,o.exports}var r={};return n.m=t,n.c=r,n.i=function(t){return t},n.d=function(t,r,e){n.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:e})},n.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(r,"a",r),r},n.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},n.p="",n(n.s=83)}([function(t,n){var r=t.exports={version:"2.4.0"};"number"==typeof __e&&(__e=r)},function(t,n){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(t,n,r){var e=r(23)("wks"),o=r(14),i=r(1).Symbol,u="function"==typeof i;(t.exports=function(t){return e[t]||(e[t]=u&&i[t]||(u?i:o)("Symbol."+t))}).store=e},function(t,n){var r={}.hasOwnProperty;t.exports=function(t,n){return r.call(t,n)}},function(t,n,r){var e=r(62),o=r(16);t.exports=function(t){return e(o(t))}},function(t,n,r){t.exports=!r(9)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,n,r){var e=r(7),o=r(13);t.exports=r(5)?function(t,n,r){return e.f(t,n,o(1,r))}:function(t,n,r){return t[n]=r,t}},function(t,n,r){var e=r(8),o=r(29),i=r(25),u=Object.defineProperty;n.f=r(5)?Object.defineProperty:function(t,n,r){if(e(t),n=i(n,!0),e(r),o)try{return u(t,n,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[n]=r.value),t}},function(t,n,r){var e=r(10);t.exports=function(t){if(!e(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){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n,r){var e=r(35),o=r(17);t.exports=Object.keys||function(t){return e(t,o)}},function(t,n){t.exports={}},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n){var r=0,e=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++r+e).toString(36))}},function(t,n){var r={}.toString;t.exports=function(t){return r.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){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,n,r){var e=r(1),o=r(0),i=r(59),u=r(6),c="prototype",f=function(t,n,r){var a,s,l,p=t&f.F,v=t&f.G,y=t&f.S,h=t&f.P,d=t&f.B,g=t&f.W,b=v?o:o[n]||(o[n]={}),O=b[c],x=v?e:y?e[n]:(e[n]||{})[c];v&&(r=n);for(a in r)(s=!p&&x&&void 0!==x[a])&&a in b||(l=s?x[a]:r[a],b[a]=v&&"function"!=typeof x[a]?r[a]:d&&s?i(l,e):g&&x[a]==l?function(t){var n=function(n,r,e){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,r)}return new t(n,r,e)}return t.apply(this,arguments)};return n[c]=t[c],n}(l):h&&"function"==typeof l?i(Function.call,l):l,h&&((b.virtual||(b.virtual={}))[a]=l,t&f.R&&O&&!O[a]&&u(O,a,l)))};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){t.exports=!0},function(t,n){n.f={}.propertyIsEnumerable},function(t,n,r){var e=r(7).f,o=r(3),i=r(2)("toStringTag");t.exports=function(t,n,r){t&&!o(t=r?t:t.prototype,i)&&e(t,i,{configurable:!0,value:n})}},function(t,n,r){var e=r(23)("keys"),o=r(14);t.exports=function(t){return e[t]||(e[t]=o(t))}},function(t,n,r){var e=r(1),o="__core-js_shared__",i=e[o]||(e[o]={});t.exports=function(t){return i[t]||(i[t]={})}},function(t,n){var r=Math.ceil,e=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?e:r)(t)}},function(t,n,r){var e=r(10);t.exports=function(t,n){if(!e(t))return t;var r,o;if(n&&"function"==typeof(r=t.toString)&&!e(o=r.call(t)))return o;if("function"==typeof(r=t.valueOf)&&!e(o=r.call(t)))return o;if(!n&&"function"==typeof(r=t.toString)&&!e(o=r.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,n,r){var e=r(1),o=r(0),i=r(19),u=r(27),c=r(7).f;t.exports=function(t){var n=o.Symbol||(o.Symbol=i?{}:e.Symbol||{});"_"==t.charAt(0)||t in n||c(n,t,{value:u.f(t)})}},function(t,n,r){n.f=r(2)},function(t,n,r){var e=r(10),o=r(1).document,i=e(o)&&e(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,n,r){t.exports=!r(5)&&!r(9)(function(){return 7!=Object.defineProperty(r(28)("div"),"a",{get:function(){return 7}}).a})},function(t,n,r){"use strict";var e=r(19),o=r(18),i=r(37),u=r(6),c=r(3),f=r(12),a=r(64),s=r(21),l=r(70),p=r(2)("iterator"),v=!([].keys&&"next"in[].keys()),y="keys",h="values",d=function(){return this};t.exports=function(t,n,r,g,b,O,x){a(r,n,g);var m,w,S,j=function(t){if(!v&&t in A)return A[t];switch(t){case y:case h:return function(){return new r(this,t)}}return function(){return new r(this,t)}},_=n+" Iterator",P=b==h,E=!1,A=t.prototype,k=A[p]||A["@@iterator"]||b&&A[b],M=k||j(b),N=b?P?j("entries"):M:void 0,T="Array"==n?A.entries||k:k;if(T&&(S=l(T.call(new t)))!==Object.prototype&&(s(S,_,!0),e||c(S,p)||u(S,p,d)),P&&k&&k.name!==h&&(E=!0,M=function(){return k.call(this)}),e&&!x||!v&&!E&&A[p]||u(A,p,M),f[n]=M,f[_]=d,b)if(m={values:P?M:j(h),keys:O?M:j(y),entries:N},x)for(w in m)w in A||i(A,w,m[w]);else o(o.P+o.F*(v||E),n,m);return m}},function(t,n,r){var e=r(14)("meta"),o=r(10),i=r(3),u=r(7).f,c=0,f=Object.isExtensible||function(){return!0},a=!r(9)(function(){return f(Object.preventExtensions({}))}),s=function(t){u(t,e,{value:{i:"O"+ ++c,w:{}}})},l=function(t,n){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,e)){if(!f(t))return"F";if(!n)return"E";s(t)}return t[e].i},p=function(t,n){if(!i(t,e)){if(!f(t))return!0;if(!n)return!1;s(t)}return t[e].w},v=function(t){return a&&y.NEED&&f(t)&&!i(t,e)&&s(t),t},y=t.exports={KEY:e,NEED:!1,fastKey:l,getWeak:p,onFreeze:v}},function(t,n,r){var e=r(8),o=r(67),i=r(17),u=r(22)("IE_PROTO"),c=function(){},f="prototype",a=function(){var t,n=r(28)("iframe"),e=i.length,o="<",u=">";for(n.style.display="none",r(61).appendChild(n),n.src="javascript:",t=n.contentWindow.document,t.open(),t.write(o+"script"+u+"document.F=Object"+o+"/script"+u),t.close(),a=t.F;e--;)delete a[f][i[e]];return a()};t.exports=Object.create||function(t,n){var r;return null!==t?(c[f]=e(t),r=new c,c[f]=null,r[u]=t):r=a(),void 0===n?r:o(r,n)}},function(t,n,r){var e=r(35),o=r(17).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return e(t,o)}},function(t,n){n.f=Object.getOwnPropertySymbols},function(t,n,r){var e=r(3),o=r(4),i=r(57)(!1),u=r(22)("IE_PROTO");t.exports=function(t,n){var r,c=o(t),f=0,a=[];for(r in c)r!=u&&e(c,r)&&a.push(r);for(;n.length>f;)e(c,r=n[f++])&&(~i(a,r)||a.push(r));return a}},function(t,n,r){var e=r(18),o=r(0),i=r(9);t.exports=function(t,n){var r=(o.Object||{})[t]||Object[t],u={};u[t]=n(r),e(e.S+e.F*i(function(){r(1)}),"Object",u)}},function(t,n,r){t.exports=r(6)},function(t,n,r){var e=r(16);t.exports=function(t){return Object(e(t))}},function(t,n,r){"use strict";var e=r(71)(!0);r(30)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,n=this._t,r=this._i;return r>=n.length?{value:void 0,done:!0}:(t=e(n,r),this._i+=t.length,{value:t,done:!1})})},function(t,n,r){r(76);for(var e=r(1),o=r(6),i=r(12),u=r(2)("toStringTag"),c=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],f=0;f<5;f++){var a=c[f],s=e[a],l=s&&s.prototype;l&&!l[u]&&o(l,u,a),i[a]=i.Array}},function(t,n,r){"use strict";function e(t){return t&&t.__esModule?t:{default:t}}var o=r(43),i=e(o),u=r(42),c=e(u),f=r(45),a=e(f),s=r(44),l=e(s),p=r(48),v=e(p),y={isObject:function(t){return"[object Object]"===Object.prototype.toString.call(t)},isArray:function(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)},isDate:function(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)},isNumber:function(t){return t instanceof Number||"[object Number]"===Object.prototype.toString.call(t)},isString:function(t){return t instanceof String||"[object String]"===Object.prototype.toString.call(t)},isBoolean:function(t){return"boolean"==typeof t},isFunction:function(t){return"function"==typeof t},isNull:function(t){return void 0===t||null===t},isPlainObject:function(t){if(t&&"[object Object]"===Object.prototype.toString.call(t)&&t.constructor===Object&&!hasOwnProperty.call(t,"constructor")){var n;for(n in t);return void 0===n||hasOwnProperty.call(t,n)}return!1},extend:function(){var t,n,r,e,o,i,u=arguments[0]||{},c=1,f=arguments.length,a=!1;for("boolean"==typeof u&&(a=u,u=arguments[1]||{},c=2),"object"===(void 0===u?"undefined":(0,v.default)(u))||this.isFunction(u)||(u={}),f===c&&(u=this,--c);c<f;c++)if(null!=(t=arguments[c]))for(n in t)r=u[n],e=t[n],r!==e&&(a&&e&&(this.isPlainObject(e)||(o=this.isArray(e)))?(o?(o=!1,i=r&&this.isArray(r)?r:[]):i=r&&this.isPlainObject(r)?r:{},u[n]=this.extend(a,i,e)):void 0!==e&&(u[n]=e));return u},freeze:function(t){var n=this,r=this;return(0,l.default)(t),(0,a.default)(t).forEach(function(e,o){r.isObject(t[e])&&n.freeze(t[e])}),t},copy:function(t){var n=null;if(this.isObject(t)){n={};for(var r in t)n[r]=this.copy(t[r])}else if(this.isArray(t)){n=[];var e=!0,o=!1,i=void 0;try{for(var u,f=(0,c.default)(t);!(e=(u=f.next()).done);e=!0){var a=u.value;n.push(this.copy(a))}}catch(t){o=!0,i=t}finally{try{!e&&f.return&&f.return()}finally{if(o)throw i}}}else n=t;return n},getKeyValue:function(t,n){if(!this.isObject(t))return null;var r=null;if(this.isArray(n)?r=n:this.isString(n)&&(r=n.split(".")),null==r||0==r.length)return null;var e=null,o=r.shift(),i=o.match(new RegExp("^(\\w+)\\[(\\d+)\\]$"));if(i){o=i[1];var u=i[2];e=t[o],this.isArray(e)&&e.length>u&&(e=e[u])}else e=t[o];return r.length>0?this.getKeyValue(e,r):e},setKeyValue:function(t,n,r,e){if(!this.isObject(t))return!1;var o=null;if(this.isArray(n)?o=n:this.isString(n)&&(o=n.split("."),e=t),null==o||0==o.length)return!1;var i=null,u=0,c=o.shift(),f=c.match(new RegExp("^(\\w+)\\[(\\d+)\\]$"));if(f){if(c=f[1],u=f[2],i=t[c],this.isArray(i)&&i.length>u){if(o.length>0)return this.setKeyValue(i[u],o,r,e);i[u]=r}}else{if(o.length>0)return this.setKeyValue(t[c],o,r,e);t[c]=r}return e},toArray:function(t,n,r){var e="";if(!this.isObject(t))return[];this.isString(r)&&(e=r);var o=[];for(var i in t){var u=t[i],c={};this.isObject(u)?c=u:c[e]=u,n&&(c[n]=i),o.push(c)}return o},toObject:function(t){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"id",r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],e={},o=0;o<t.length;o++){var i=t[o];this.isObject(i)?"count"==n?e[o]=i:(e[i[n]]=i,r&&(e[i[n]].count=o)):e[i]=i}return e},saveLocal:function(t,n){return!!(window.localStorage&&JSON&&t&&n)&&("object"==(void 0===n?"undefined":(0,v.default)(n))&&(n=(0,i.default)(n)),window.localStorage[t]=n,!0)},getLocal:function(t,n){if(window.localStorage&&JSON&&t){var r=window.localStorage[t];if(!n||"json"!=n||void 0===r)return r;try{return JSON.parse(r)}catch(t){return""}}return null},getLocal2Json:function(t){if(window.localStorage&&JSON&&t){var n=window.localStorage[t];if(this.isNull(n))return n;try{return JSON.parse(n)}catch(t){return""}}return null},removeLocal:function(t){return window.localStorage&&JSON&&t&&(window.localStorage[t]=null),null},saveCookie:function(t,n,r,e,o){var u=!!navigator.cookieEnabled;if(t&&u){e=e||"/","object"==(void 0===n?"undefined":(0,v.default)(n))&&(n=(0,i.default)(n));var c=void 0;o?(c=new Date,c.setTime(c.getTime()+1e3*o)):c=new Date("9998-01-01");var f=t+"="+escape(n)+(o?";expires="+c.toGMTString():"")+";path="+e;return r&&(f+="domain="+r+";"),document.cookie=f,!0}return!1},getCookie:function(t){var n=!!navigator.cookieEnabled;if(t&&n){var r=document.cookie.match(new RegExp("(^| )"+t+"=([^;]*)(;|$)"));if(null!==r)return unescape(r[2])}return null},clearCookie:function(t,n){var r=document.cookie.match(/[^ =;]+(?=\=)/g);if(n=n||"/",r)for(var e=r.length;e--;){var o=r[e]+"=0;expires="+new Date(0).toUTCString()+";path="+n+";";t&&(o+="domain="+t+";"),document.cookie=o}},removeCookie:function(t,n,r){var e=!!navigator.cookieEnabled;if(t&&e){r=r||"/";var o=t+"=0;expires="+new Date(0).toUTCString()+";path="+r+";";return n&&(o+="domain="+n+";"),null!==cval&&(document.cookie=o),!0}return!1},uuid:function(){var t=function(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)};return t()+t()+"-"+t()+"-"+t()+"-"+t()+"-"+t()+t()+t()},padLeft:function(t,n){var r="00000"+t;return r.substr(r.length-n)},toggleValue:function(t,n){if(!this.isArray(t))return[n];t.some(function(t){return t==n})?t.splice(t.indexOf(n),1):t.push(n)},toSimpleArray:function(t,n){var r=[];if(this.isObject(t)){var e=!0,o=!1,i=void 0;try{for(var u,f=(0,c.default)((0,a.default)(t));!(e=(u=f.next()).done);e=!0){var s=u.value;r.push(t[s][n])}}catch(t){o=!0,i=t}finally{try{!e&&f.return&&f.return()}finally{if(o)throw i}}}if(this.isArray(t)){var l=!0,p=!1,v=void 0;try{for(var y,h=(0,c.default)(t);!(l=(y=h.next()).done);l=!0){var d=y.value;r.push(d[n])}}catch(t){p=!0,v=t}finally{try{!l&&h.return&&h.return()}finally{if(p)throw v}}}return r},getURLParam:function(t,n){return decodeURIComponent((new RegExp("[?|&]"+t+"=([^&;]+?)(&|#|;|$)").exec(n||location.search)||[!0,""])[1].replace(/\+/g,"%20"))||null},getAuthor:function(){var t=this.getURLParam("author",window.location.search)||this.getLocal("window_author");return t&&this.saveLocal("window_author",t),t}};y.valueForKeypath=y.getKeyValue,y.setValueForKeypath=y.setKeyValue,t.exports=y},function(t,n,r){t.exports={default:r(49),__esModule:!0}},function(t,n,r){t.exports={default:r(50),__esModule:!0}},function(t,n,r){t.exports={default:r(51),__esModule:!0}},function(t,n,r){t.exports={default:r(52),__esModule:!0}},function(t,n,r){t.exports={default:r(53),__esModule:!0}},function(t,n,r){t.exports={default:r(54),__esModule:!0}},function(t,n,r){"use strict";function e(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var o=r(47),i=e(o),u=r(46),c=e(u),f="function"==typeof c.default&&"symbol"==typeof i.default?function(t){return typeof t}:function(t){return t&&"function"==typeof c.default&&t.constructor===c.default&&t!==c.default.prototype?"symbol":typeof t};n.default="function"==typeof c.default&&"symbol"===f(i.default)?function(t){return void 0===t?"undefined":f(t)}:function(t){return t&&"function"==typeof c.default&&t.constructor===c.default&&t!==c.default.prototype?"symbol":void 0===t?"undefined":f(t)}},function(t,n,r){r(40),r(39),t.exports=r(75)},function(t,n,r){var e=r(0),o=e.JSON||(e.JSON={stringify:JSON.stringify});t.exports=function(t){return o.stringify.apply(o,arguments)}},function(t,n,r){r(77),t.exports=r(0).Object.freeze},function(t,n,r){r(78),t.exports=r(0).Object.keys},function(t,n,r){r(80),r(79),r(81),r(82),t.exports=r(0).Symbol},function(t,n,r){r(39),r(40),t.exports=r(27).f("iterator")},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,n){t.exports=function(){}},function(t,n,r){var e=r(4),o=r(73),i=r(72);t.exports=function(t){return function(n,r,u){var c,f=e(n),a=o(f.length),s=i(u,a);if(t&&r!=r){for(;a>s;)if((c=f[s++])!=c)return!0}else for(;a>s;s++)if((t||s in f)&&f[s]===r)return t||s||0;return!t&&-1}}},function(t,n,r){var e=r(15),o=r(2)("toStringTag"),i="Arguments"==e(function(){return arguments}()),u=function(t,n){try{return t[n]}catch(t){}};t.exports=function(t){var n,r,c;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=u(n=Object(t),o))?r:i?e(n):"Object"==(c=e(n))&&"function"==typeof n.callee?"Arguments":c}},function(t,n,r){var e=r(55);t.exports=function(t,n,r){if(e(t),void 0===n)return t;switch(r){case 1:return function(r){return t.call(n,r)};case 2:return function(r,e){return t.call(n,r,e)};case 3:return function(r,e,o){return t.call(n,r,e,o)}}return function(){return t.apply(n,arguments)}}},function(t,n,r){var e=r(11),o=r(34),i=r(20);t.exports=function(t){var n=e(t),r=o.f;if(r)for(var u,c=r(t),f=i.f,a=0;c.length>a;)f.call(t,u=c[a++])&&n.push(u);return n}},function(t,n,r){t.exports=r(1).document&&document.documentElement},function(t,n,r){var e=r(15);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==e(t)?t.split(""):Object(t)}},function(t,n,r){var e=r(15);t.exports=Array.isArray||function(t){return"Array"==e(t)}},function(t,n,r){"use strict";var e=r(32),o=r(13),i=r(21),u={};r(6)(u,r(2)("iterator"),function(){return this}),t.exports=function(t,n,r){t.prototype=e(u,{next:o(1,r)}),i(t,n+" Iterator")}},function(t,n){t.exports=function(t,n){return{value:n,done:!!t}}},function(t,n,r){var e=r(11),o=r(4);t.exports=function(t,n){for(var r,i=o(t),u=e(i),c=u.length,f=0;c>f;)if(i[r=u[f++]]===n)return r}},function(t,n,r){var e=r(7),o=r(8),i=r(11);t.exports=r(5)?Object.defineProperties:function(t,n){o(t);for(var r,u=i(n),c=u.length,f=0;c>f;)e.f(t,r=u[f++],n[r]);return t}},function(t,n,r){var e=r(20),o=r(13),i=r(4),u=r(25),c=r(3),f=r(29),a=Object.getOwnPropertyDescriptor;n.f=r(5)?a:function(t,n){if(t=i(t),n=u(n,!0),f)try{return a(t,n)}catch(t){}if(c(t,n))return o(!e.f.call(t,n),t[n])}},function(t,n,r){var e=r(4),o=r(33).f,i={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=function(t){try{return o(t)}catch(t){return u.slice()}};t.exports.f=function(t){return u&&"[object Window]"==i.call(t)?c(t):o(e(t))}},function(t,n,r){var e=r(3),o=r(38),i=r(22)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),e(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,n,r){var e=r(24),o=r(16);t.exports=function(t){return function(n,r){var i,u,c=String(o(n)),f=e(r),a=c.length;return f<0||f>=a?t?"":void 0:(i=c.charCodeAt(f),i<55296||i>56319||f+1===a||(u=c.charCodeAt(f+1))<56320||u>57343?t?c.charAt(f):i:t?c.slice(f,f+2):u-56320+(i-55296<<10)+65536)}}},function(t,n,r){var e=r(24),o=Math.max,i=Math.min;t.exports=function(t,n){return t=e(t),t<0?o(t+n,0):i(t,n)}},function(t,n,r){var e=r(24),o=Math.min;t.exports=function(t){return t>0?o(e(t),9007199254740991):0}},function(t,n,r){var e=r(58),o=r(2)("iterator"),i=r(12);t.exports=r(0).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[e(t)]}},function(t,n,r){var e=r(8),o=r(74);t.exports=r(0).getIterator=function(t){var n=o(t);if("function"!=typeof n)throw TypeError(t+" is not iterable!");return e(n.call(t))}},function(t,n,r){"use strict";var e=r(56),o=r(65),i=r(12),u=r(4);t.exports=r(30)(Array,"Array",function(t,n){this._t=u(t),this._i=0,this._k=n},function(){var t=this._t,n=this._k,r=this._i++;return!t||r>=t.length?(this._t=void 0,o(1)):"keys"==n?o(0,r):"values"==n?o(0,t[r]):o(0,[r,t[r]])},"values"),i.Arguments=i.Array,e("keys"),e("values"),e("entries")},function(t,n,r){var e=r(10),o=r(31).onFreeze;r(36)("freeze",function(t){return function(n){return t&&e(n)?t(o(n)):n}})},function(t,n,r){var e=r(38),o=r(11);r(36)("keys",function(){return function(t){return o(e(t))}})},function(t,n){},function(t,n,r){"use strict";var e=r(1),o=r(3),i=r(5),u=r(18),c=r(37),f=r(31).KEY,a=r(9),s=r(23),l=r(21),p=r(14),v=r(2),y=r(27),h=r(26),d=r(66),g=r(60),b=r(63),O=r(8),x=r(4),m=r(25),w=r(13),S=r(32),j=r(69),_=r(68),P=r(7),E=r(11),A=_.f,k=P.f,M=j.f,N=e.Symbol,T=e.JSON,F=T&&T.stringify,C="prototype",I=v("_hidden"),L=v("toPrimitive"),J={}.propertyIsEnumerable,R=s("symbol-registry"),D=s("symbols"),K=s("op-symbols"),U=Object[C],V="function"==typeof N,z=e.QObject,W=!z||!z[C]||!z[C].findChild,G=i&&a(function(){return 7!=S(k({},"a",{get:function(){return k(this,"a",{value:7}).a}})).a})?function(t,n,r){var e=A(U,n);e&&delete U[n],k(t,n,r),e&&t!==U&&k(U,n,e)}:k,$=function(t){var n=D[t]=S(N[C]);return n._k=t,n},B=V&&"symbol"==typeof N.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof N},Y=function(t,n,r){return t===U&&Y(K,n,r),O(t),n=m(n,!0),O(r),o(D,n)?(r.enumerable?(o(t,I)&&t[I][n]&&(t[I][n]=!1),r=S(r,{enumerable:w(0,!1)})):(o(t,I)||k(t,I,w(1,{})),t[I][n]=!0),G(t,n,r)):k(t,n,r)},Q=function(t,n){O(t);for(var r,e=g(n=x(n)),o=0,i=e.length;i>o;)Y(t,r=e[o++],n[r]);return t},q=function(t,n){return void 0===n?S(t):Q(S(t),n)},H=function(t){var n=J.call(this,t=m(t,!0));return!(this===U&&o(D,t)&&!o(K,t))&&(!(n||!o(this,t)||!o(D,t)||o(this,I)&&this[I][t])||n)},X=function(t,n){if(t=x(t),n=m(n,!0),t!==U||!o(D,n)||o(K,n)){var r=A(t,n);return!r||!o(D,n)||o(t,I)&&t[I][n]||(r.enumerable=!0),r}},Z=function(t){for(var n,r=M(x(t)),e=[],i=0;r.length>i;)o(D,n=r[i++])||n==I||n==f||e.push(n);return e},tt=function(t){for(var n,r=t===U,e=M(r?K:x(t)),i=[],u=0;e.length>u;)!o(D,n=e[u++])||r&&!o(U,n)||i.push(D[n]);return i};V||(N=function(){if(this instanceof N)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),n=function(r){this===U&&n.call(K,r),o(this,I)&&o(this[I],t)&&(this[I][t]=!1),G(this,t,w(1,r))};return i&&W&&G(U,t,{configurable:!0,set:n}),$(t)},c(N[C],"toString",function(){return this._k}),_.f=X,P.f=Y,r(33).f=j.f=Z,r(20).f=H,r(34).f=tt,i&&!r(19)&&c(U,"propertyIsEnumerable",H,!0),y.f=function(t){return $(v(t))}),u(u.G+u.W+u.F*!V,{Symbol:N});for(var nt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),rt=0;nt.length>rt;)v(nt[rt++]);for(var nt=E(v.store),rt=0;nt.length>rt;)h(nt[rt++]);u(u.S+u.F*!V,"Symbol",{for:function(t){return o(R,t+="")?R[t]:R[t]=N(t)},keyFor:function(t){if(B(t))return d(R,t);throw TypeError(t+" is not a symbol!")},useSetter:function(){W=!0},useSimple:function(){W=!1}}),u(u.S+u.F*!V,"Object",{create:q,defineProperty:Y,defineProperties:Q,getOwnPropertyDescriptor:X,getOwnPropertyNames:Z,getOwnPropertySymbols:tt}),T&&u(u.S+u.F*(!V||a(function(){var t=N();return"[null]"!=F([t])||"{}"!=F({a:t})||"{}"!=F(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!B(t)){for(var n,r,e=[t],o=1;arguments.length>o;)e.push(arguments[o++]);return n=e[1],"function"==typeof n&&(r=n),!r&&b(n)||(n=function(t,n){if(r&&(n=r.call(this,t,n)),!B(n))return n}),e[1]=n,F.apply(T,e)}}}),N[C][L]||r(6)(N[C],L,N[C].valueOf),l(N,"Symbol"),l(Math,"Math",!0),l(e.JSON,"JSON",!0)},function(t,n,r){r(26)("asyncIterator")},function(t,n,r){r(26)("observable")},function(t,n,r){t.exports=r(41)}])});
{
"name": "hey-utils",
"version": "0.0.20",
"version": "0.0.21",
"description": "js-utils, js, util",

@@ -5,0 +5,0 @@ "main": "build/utils.js",

@@ -152,3 +152,3 @@ # hey-utils

### saveCookie(name, value, minSec, path)
### saveCookie(name, value, domain, path, minSec)
保存本地cookie,path默认为/,minSec默认无限

@@ -159,5 +159,8 @@

### clearCookie()
### clearCookie(domain, path)
清除所有cookie
### removeCookie(name, domain, path)
删除cookie
### toSimpleArray(data, key)

@@ -164,0 +167,0 @@ 获取对应的key数组

@@ -261,3 +261,3 @@ "use strict";

},
saveCookie(name, value, minSec, path) {
saveCookie(name, value, domain, path, minSec) {
const cookieEnabled = (navigator.cookieEnabled) ? true : false;

@@ -273,5 +273,10 @@ if (name && cookieEnabled) {

exp.setTime(exp.getTime() + minSec * 1000);
} else {
exp = new Date("9998-01-01");
}
document.cookie = `${name}=${escape(value)}${minSec?(`;expires=${exp.toGMTString()}`) : ''};path=${path}`;
let cookieString = `${name}=${escape(value)}${minSec?(`;expires=${exp.toGMTString()}`) : ''};path=${path}`;
if(domain){
cookieString += `domain=${domain};`;
}
document.cookie = cookieString;
return true;

@@ -291,18 +296,24 @@ }

},
clearCookie() {
clearCookie(domain, path) {
const keys = document.cookie.match(/[^ =;]+(?=\=)/g);
path = path || '/';
if (keys) {
for (let i = keys.length; i--;) {
document.cookie = keys[i] + '=0;expires=' + new Date(0).toUTCString()
let cookieString = `${keys[i]}=0;expires=${new Date(0).toUTCString()};path=${path};`;
if(domain){
cookieString += `domain=${domain};`;
}
document.cookie = cookieString;
}
}
},
removeCookie(name, path) {
removeCookie(name, domain, path) {
const cookieEnabled = (navigator.cookieEnabled) ? true : false;
if (name && cookieEnabled) {
const exp = new Date();
path = path || '/';
exp.setTime(exp.getTime() - 1);
const cval = this.getCookie(name);
if (cval !== null) document.cookie = `${name}=${cval};expires=${exp.toGMTString()};path=${path}`;
let cookieString = `${name}=0;expires=${new Date(0).toUTCString()};path=${path};`;
if(domain){
cookieString += `domain=${domain};`;
}
if (cval !== null) document.cookie = cookieString;
return true;

@@ -309,0 +320,0 @@ }

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