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

chimee-helper

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chimee-helper - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

__tests__/index.js

2

build/rollup.config.base.js

@@ -58,3 +58,3 @@ const {version, name, author, license} = require('../package.json');

external (id) {
return !/min|umd|iife/.test(mode) && /babel-runtime|toxic-predicate-functions|toxic-utils/.test(id);
return !/min|umd|iife/.test(mode) && /node_modules/.test(id);
},

@@ -61,0 +61,0 @@ plugins: [

import base from './rollup.config.base';
import uglify from 'rollup-plugin-uglify';
const {name} = require('../package.json');
import {camelize} from 'toxic-utils';
const config = base('min');

@@ -8,3 +10,3 @@ config.plugins.push(uglify());

dest: 'lib/index.min.js',
moduleName: 'chimeeHelper'
moduleName: camelize(name)
});
import base from './rollup.config.base';
const {name} = require('../package.json');
import {camelize} from 'toxic-utils';
export default Object.assign(base('umd'), {
format: 'umd',
dest: 'lib/index.browser.js',
moduleName: 'chimeeHelper'
moduleName: camelize(name)
});
/**
* chimee-helper v0.1.0
* chimee-helper v0.1.1
* (c) 2017 toxic-johann

@@ -12,160 +12,10 @@ * Released under MIT

function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var ___node_modules_toxicUtils_lib_index_mjs = require('../node_modules/toxic-utils/lib/index.mjs');
var ___node_modules_toxicPredicateFunctions_lib_index_mjs = require('../node_modules/toxic-predicate-functions/lib/index.mjs');
var ___node_modules_chimeeHelperUtils_lib_index_mjs = require('../node_modules/chimee-helper-utils/lib/index.mjs');
var toxicUtils = require('toxic-utils');
var toxicPredicateFunctions = require('toxic-predicate-functions');
var _Object$defineProperty = _interopDefault(require('babel-runtime/core-js/object/define-property'));
var _toConsumableArray = _interopDefault(require('babel-runtime/helpers/toConsumableArray'));
var _Promise = _interopDefault(require('babel-runtime/core-js/promise'));
var _Object$keys = _interopDefault(require('babel-runtime/core-js/object/keys'));
var _Array$from = _interopDefault(require('babel-runtime/core-js/array/from'));
// ********************** judgement ************************
/**
* check if the code running in browser environment (not include worker env)
* @returns {Boolean}
*/
var inBrowser$1 = typeof window !== 'undefined' && Object.prototype.toString.call(window) !== '[object Object]';
// ********************** 对象操作 ************************
/**
* 转变一个类数组对象为数组
*/
/**
* sort Object attributes by function
* and transfer them into array
* @param {Object} obj Object form from numric
* @param {Function} fn sort function
* @return {Array} the sorted attirbutes array
*/
// ********************** class operation ***************************
// class MixinBuilder {
// constructor (superclass) {
// this.superclass = superclass || class {};
// }
// with (...mixins) {
// return mixins.reduce((c, mixin) => mixin(c), this.superclass);
// }
// }
// export const mix = (superclass) => {
// return new MixinBuilder(superclass);
// };
/**
* run a queue one by one.If include function reject or return false it will stop
* @param {Array} queue the queue which we want to run one by one
* @return {Promise} tell us whether a queue run finished
*/
/**
* run a queue one by one.If include function return false it will stop
* @param {Array} queue the queue which we want to run one by one
* @return {boolean} tell the user if the queue run finished
*/
/**
* set an attribute to an object which is frozen.
* Means you can't remove it, iterate it or rewrite it.
* @param {!primitive} obj
* @param {string} key
* @param {Anything} value
*/
/**
* set attr on an Object. We will bind getter and setter on it if you provide to us
* @param {!primitive} obj
* @param {string} key
* @param {Function} options.get
* @param {Function} options.set
* @param {String} prefix the origin data's prefix. We do not plan to save it by closure.
*/
// decodeUTF8
/**
* 函数节流(控制函数执行频率)
* @param {Function} func 要节流控制的函数,必填
* @return {Number} wait 等待时长
* @return {Object} options {
* leading<是否首次调用立即执行,否:则按wait设定等待到期后调用才执行>:false,
* trailing<是否在调用并未到期时启用定时器,以保证一定执行>:true
* }
* @return {Object} cxt 上下文对象
* @return {Function}
*/
// requestAnimationFrame
// cancelAnimationFrame
// 根据要求的位数,将9格式化为 09\009\0009...
// video 时间格式化
/**
* 给obj对象扩展上trans方法,用以实现methodName对应的属性方法包装为静态函数且保持上下文的功能
* @param {Object} obj 目标对象
*/
/**
* 追加样式代码到head的style标签,不存在则创建
* @param {String} cssText 样式文本
* @return {HTMLElement}
*/
/**
* 格式化日期对象为:年-月-日 时:分:秒.毫秒
* @param {Date} date Date日期对象
* @param {String} pattern 要输出的日期格式,默认:`yyyy-MM-dd hh:mm:ss.i`
* @return {String}
*/
/**
* 读取本地存储的值(不支持localStorage则降级到cookie)
* @param {String} key 目标数据key
* @return {String}
*/
/**
* 将指定key对应值写入本地存储(不支持localStorage则降级到cookie)
* @param {String} key
* @param {String} val
* @return {String}
*/
Object.keys(toxicUtils).forEach(function (key) { exports[key] = toxicUtils[key]; });
Object.keys(toxicPredicateFunctions).forEach(function (key) { exports[key] = toxicPredicateFunctions[key]; });
exports.inBrowser = toxicUtils.inBrowser;
exports.makeArray = toxicUtils.makeArray;
exports.transObjectAttrIntoArray = toxicUtils.transObjectAttrIntoArray;
exports.runRejectableQueue = toxicUtils.runRejectableQueue;
exports.runStoppableQueue = toxicUtils.runStoppableQueue;
exports.setFrozenAttr = toxicUtils.setFrozenAttr;
exports.setAttrGetterAndSetter = toxicUtils.setAttrGetterAndSetter;
exports.decodeUTF8 = toxicUtils.decodeUTF8;
exports.debounce = toxicUtils.debounce;
exports.throttle = toxicUtils.throttle;
exports.raf = toxicUtils.raf;
exports.caf = toxicUtils.caf;
exports.strRepeat = toxicUtils.strRepeat;
exports.formatTime = toxicUtils.formatTime;
exports.addTransMethod = toxicUtils.addTransMethod;
exports.appendCSS = toxicUtils.appendCSS;
exports.formatDate = toxicUtils.formatDate;
exports.getLocalStorage = toxicUtils.getLocalStorage;
exports.setLocalStorage = toxicUtils.setLocalStorage;
Object.keys(___node_modules_toxicUtils_lib_index_mjs).forEach(function (key) { exports[key] = ___node_modules_toxicUtils_lib_index_mjs[key]; });
Object.keys(___node_modules_toxicPredicateFunctions_lib_index_mjs).forEach(function (key) { exports[key] = ___node_modules_toxicPredicateFunctions_lib_index_mjs[key]; });
Object.keys(___node_modules_chimeeHelperUtils_lib_index_mjs).forEach(function (key) { exports[key] = ___node_modules_chimeeHelperUtils_lib_index_mjs[key]; });

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

!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(t.chimeeHelper=t.chimeeHelper||{})}(this,function(t){"use strict";function n(t){return t&&t.__esModule?t.default:t}function e(t,n){return n={exports:{}},t(n,n.exports),n.exports}function r(t){return void 0===t||null===t}function o(t){return Array.isArray(t)}function i(t){return"function"==typeof t}function u(t){return Object(t)===t&&"[object Object]"===String(t)&&!i(t)&&!o(t)}function f(t){return"number"==typeof t}function a(t){return t instanceof Blob}function c(t){return"string"==typeof t||t instanceof String}function l(t){return"boolean"==typeof t}function s(t){return r(t)||l(t)||c(t)||f(t)}function p(t){return!!("object"===("undefined"==typeof Node?"undefined":ee(Node))?t instanceof Node:t&&"object"===(void 0===t?"undefined":ee(t))&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName)}function y(t){function n(e,r,i){if(o(e)||u(e)){r=r||(u(e)?{}:[]);for(var f in e)r[f]=n(e[f],r[f],f);return r}return t(e,r,i)}return n}function d(t,n){return t.replace(/(^|[^a-zA-Z]+)([a-zA-Z])/g,function(t,e,r,o){return n||0!==o?r.toUpperCase():r.toLowerCase()})}function h(){return(65536*(1+Math.random())|0).toString(16).substring(1)}function v(t,n,e){if(s(t))throw TypeError("setFrozenAttr obj parameter can not be primitive type");if(!c(n))throw TypeError("setFrozenAttr key parameter must be String");Object.defineProperty(t,n,{value:e,configurable:!1,enumerable:!1,writable:!1})}function m(t,n,e){var r=t;if(n+e<r.length){for(;e--;)if(128!=(192&r[++n]))return!1;return!0}return!1}function g(t,n){var e=n,r=(t=""+(t||"")).length;return(((n=(n||r)-r)>0?t.repeat?"0".repeat(n):new Array(n+1).join("0"):"")+t).slice(0,e)}var b=Math.ceil,w=Math.floor,S=function(t){return isNaN(t=+t)?0:(t>0?w:b)(t)},_=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t},O=e(function(t){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)}),A=e(function(t){var n=t.exports={version:"2.4.0"};"number"==typeof __e&&(__e=n)}),j=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t},E=function(t,n,e){if(j(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)}},M=function(t){return"object"==typeof t?null!==t:"function"==typeof t},F=function(t){if(!M(t))throw TypeError(t+" is not an object!");return t},T=function(t){try{return!!t()}catch(t){return!0}},P=!T(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),C=O.document,N=M(C)&&M(C.createElement),x=function(t){return N?C.createElement(t):{}},k=!P&&!T(function(){return 7!=Object.defineProperty(x("div"),"a",{get:function(){return 7}}).a}),z=function(t,n){if(!M(t))return t;var e,r;if(n&&"function"==typeof(e=t.toString)&&!M(r=e.call(t)))return r;if("function"==typeof(e=t.valueOf)&&!M(r=e.call(t)))return r;if(!n&&"function"==typeof(e=t.toString)&&!M(r=e.call(t)))return r;throw TypeError("Can't convert object to primitive value")},I=Object.defineProperty,R={f:P?Object.defineProperty:function(t,n,e){if(F(t),n=z(n,!0),F(e),k)try{return I(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}},D=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}},L=P?function(t,n,e){return R.f(t,n,D(1,e))}:function(t,n,e){return t[n]=e,t},q=function(t,n,e){var r,o,i,u=t&q.F,f=t&q.G,a=t&q.S,c=t&q.P,l=t&q.B,s=t&q.W,p=f?A:A[n]||(A[n]={}),y=p.prototype,d=f?O:a?O[n]:(O[n]||{}).prototype;f&&(e=n);for(r in e)(o=!u&&d&&void 0!==d[r])&&r in p||(i=o?d[r]:e[r],p[r]=f&&"function"!=typeof d[r]?e[r]:l&&o?E(i,O):s&&d[r]==i?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}(i):c&&"function"==typeof i?E(Function.call,i):i,c&&((p.virtual||(p.virtual={}))[r]=i,t&q.R&&y&&!y[r]&&L(y,r,i)))};q.F=1,q.G=2,q.S=4,q.P=8,q.B=16,q.W=32,q.U=64,q.R=128;var H=q,B=L,G={}.hasOwnProperty,W=function(t,n){return G.call(t,n)},$={},U={}.toString,J=function(t){return U.call(t).slice(8,-1)},K=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==J(t)?t.split(""):Object(t)},Q=function(t){return K(_(t))},Y=Math.min,Z=function(t){return t>0?Y(S(t),9007199254740991):0},V=Math.max,X=Math.min,tt=function(t,n){return(t=S(t))<0?V(t+n,0):X(t,n)},nt=O["__core-js_shared__"]||(O["__core-js_shared__"]={}),et=function(t){return nt[t]||(nt[t]={})},rt=0,ot=Math.random(),it=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++rt+ot).toString(36))},ut=et("keys"),ft=function(t){return ut[t]||(ut[t]=it(t))},at=function(t){return function(n,e,r){var o,i=Q(n),u=Z(i.length),f=tt(r,u);if(t&&e!=e){for(;u>f;)if((o=i[f++])!=o)return!0}else for(;u>f;f++)if((t||f in i)&&i[f]===e)return t||f||0;return!t&&-1}}(!1),ct=ft("IE_PROTO"),lt=function(t,n){var e,r=Q(t),o=0,i=[];for(e in r)e!=ct&&W(r,e)&&i.push(e);for(;n.length>o;)W(r,e=n[o++])&&(~at(i,e)||i.push(e));return i},st="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),pt=Object.keys||function(t){return lt(t,st)},yt=P?Object.defineProperties:function(t,n){F(t);for(var e,r=pt(n),o=r.length,i=0;o>i;)R.f(t,e=r[i++],n[e]);return t},dt=O.document&&document.documentElement,ht=ft("IE_PROTO"),vt=function(){},mt=function(){var t,n=x("iframe"),e=st.length;for(n.style.display="none",dt.appendChild(n),n.src="javascript:",(t=n.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),mt=t.F;e--;)delete mt.prototype[st[e]];return mt()},gt=Object.create||function(t,n){var e;return null!==t?(vt.prototype=F(t),e=new vt,vt.prototype=null,e[ht]=t):e=mt(),void 0===n?e:yt(e,n)},bt=e(function(t){var n=et("wks"),e=O.Symbol,r="function"==typeof e;(t.exports=function(t){return n[t]||(n[t]=r&&e[t]||(r?e:it)("Symbol."+t))}).store=n}),wt=R.f,St=bt("toStringTag"),_t=function(t,n,e){t&&!W(t=e?t:t.prototype,St)&&wt(t,St,{configurable:!0,value:n})},Ot={};L(Ot,bt("iterator"),function(){return this});var At=function(t,n,e){t.prototype=gt(Ot,{next:D(1,e)}),_t(t,n+" Iterator")},jt=function(t){return Object(_(t))},Et=ft("IE_PROTO"),Mt=Object.prototype,Ft=Object.getPrototypeOf||function(t){return t=jt(t),W(t,Et)?t[Et]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?Mt:null},Tt=bt("iterator"),Pt=!([].keys&&"next"in[].keys()),Ct=function(){return this},Nt=function(t,n,e,r,o,i,u){At(e,n,r);var f,a,c,l=function(t){if(!Pt&&t in d)return d[t];switch(t){case"keys":case"values":return function(){return new e(this,t)}}return function(){return new e(this,t)}},s=n+" Iterator",p="values"==o,y=!1,d=t.prototype,h=d[Tt]||d["@@iterator"]||o&&d[o],v=h||l(o),m=o?p?l("entries"):v:void 0,g="Array"==n?d.entries||h:h;if(g&&(c=Ft(g.call(new t)))!==Object.prototype&&_t(c,s,!0),p&&h&&"values"!==h.name&&(y=!0,v=function(){return h.call(this)}),u&&(Pt||y||!d[Tt])&&L(d,Tt,v),$[n]=v,$[s]=Ct,o)if(f={values:p?v:l("values"),keys:i?v:l("keys"),entries:m},u)for(a in f)a in d||B(d,a,f[a]);else H(H.P+H.F*(Pt||y),n,f);return f},xt=function(t){return function(n,e){var r,o,i=String(_(n)),u=S(e),f=i.length;return u<0||u>=f?t?"":void 0:(r=i.charCodeAt(u))<55296||r>56319||u+1===f||(o=i.charCodeAt(u+1))<56320||o>57343?t?i.charAt(u):r:t?i.slice(u,u+2):o-56320+(r-55296<<10)+65536}}(!0);Nt(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=xt(n,e),this._i+=t.length,{value:t,done:!1})});var kt=function(t,n,e,r){try{return r?n(F(e)[0],e[1]):n(e)}catch(n){var o=t.return;throw void 0!==o&&F(o.call(t)),n}},zt=bt("iterator"),It=Array.prototype,Rt=function(t){return void 0!==t&&($.Array===t||It[zt]===t)},Dt=function(t,n,e){n in t?R.f(t,n,D(0,e)):t[n]=e},Lt=bt("toStringTag"),qt="Arguments"==J(function(){return arguments}()),Ht=function(t,n){try{return t[n]}catch(t){}},Bt=function(t){var n,e,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=Ht(n=Object(t),Lt))?e:qt?J(n):"Object"==(r=J(n))&&"function"==typeof n.callee?"Arguments":r},Gt=bt("iterator"),Wt=A.getIteratorMethod=function(t){if(void 0!=t)return t[Gt]||t["@@iterator"]||$[Bt(t)]},$t=bt("iterator"),Ut=!1;try{var Jt=[7][$t]();Jt.return=function(){Ut=!0},Array.from(Jt,function(){throw 2})}catch(t){}H(H.S+H.F*!function(t,n){if(!n&&!Ut)return!1;var e=!1;try{var r=[7],o=r[$t]();o.next=function(){return{done:e=!0}},r[$t]=function(){return o},t(r)}catch(t){}return e}(function(t){Array.from(t)}),"Array",{from:function(t){var n,e,r,o,i=jt(t),u="function"==typeof this?this:Array,f=arguments.length,a=f>1?arguments[1]:void 0,c=void 0!==a,l=0,s=Wt(i);if(c&&(a=E(a,f>2?arguments[2]:void 0,2)),void 0==s||u==Array&&Rt(s))for(e=new u(n=Z(i.length));n>l;l++)Dt(e,l,c?a(i[l],l):i[l]);else for(o=s.call(i),e=new u;!(r=o.next()).done;l++)Dt(e,l,c?kt(o,a,[r.value,l],!0):r.value);return e.length=l,e}});var Kt=A.Array.from,Qt=e(function(t){t.exports={default:Kt,__esModule:!0}}),Yt=n(e(function(t,n){n.__esModule=!0;var e=function(t){return t&&t.__esModule?t:{default:t}}(Qt);n.default=function(t){if(Array.isArray(t)){for(var n=0,r=Array(t.length);n<t.length;n++)r[n]=t[n];return r}return(0,e.default)(t)}})),Zt=function(){},Vt=function(t,n){return{value:n,done:!!t}};Nt(Array,"Array",function(t,n){this._t=Q(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,Vt(1)):"keys"==n?Vt(0,e):"values"==n?Vt(0,t[e]):Vt(0,[e,t[e]])},"values");$.Arguments=$.Array,Zt(),Zt(),Zt();for(var Xt=bt("toStringTag"),tn=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],nn=0;nn<5;nn++){var en=tn[nn],rn=O[en],on=rn&&rn.prototype;on&&!on[Xt]&&L(on,Xt,en),$[en]=$.Array}var un={f:bt},fn=un.f("iterator"),an=e(function(t){t.exports={default:fn,__esModule:!0}}),cn=e(function(t){var n=it("meta"),e=R.f,r=0,o=Object.isExtensible||function(){return!0},i=!T(function(){return o(Object.preventExtensions({}))}),u=function(t){e(t,n,{value:{i:"O"+ ++r,w:{}}})},f=t.exports={KEY:n,NEED:!1,fastKey:function(t,e){if(!M(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!W(t,n)){if(!o(t))return"F";if(!e)return"E";u(t)}return t[n].i},getWeak:function(t,e){if(!W(t,n)){if(!o(t))return!0;if(!e)return!1;u(t)}return t[n].w},onFreeze:function(t){return i&&f.NEED&&o(t)&&!W(t,n)&&u(t),t}}}),ln=R.f,sn=function(t){var n=A.Symbol||(A.Symbol={});"_"==t.charAt(0)||t in n||ln(n,t,{value:un.f(t)})},pn=function(t,n){for(var e,r=Q(t),o=pt(r),i=o.length,u=0;i>u;)if(r[e=o[u++]]===n)return e},yn={f:Object.getOwnPropertySymbols},dn={f:{}.propertyIsEnumerable},hn=function(t){var n=pt(t),e=yn.f;if(e)for(var r,o=e(t),i=dn.f,u=0;o.length>u;)i.call(t,r=o[u++])&&n.push(r);return n},vn=Array.isArray||function(t){return"Array"==J(t)},mn=st.concat("length","prototype"),gn={f:Object.getOwnPropertyNames||function(t){return lt(t,mn)}},bn=gn.f,wn={}.toString,Sn="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],_n=function(t){try{return bn(t)}catch(t){return Sn.slice()}},On={f:function(t){return Sn&&"[object Window]"==wn.call(t)?_n(t):bn(Q(t))}},An=Object.getOwnPropertyDescriptor,jn={f:P?An:function(t,n){if(t=Q(t),n=z(n,!0),k)try{return An(t,n)}catch(t){}if(W(t,n))return D(!dn.f.call(t,n),t[n])}},En=cn.KEY,Mn=jn.f,Fn=R.f,Tn=On.f,Pn=O.Symbol,Cn=O.JSON,Nn=Cn&&Cn.stringify,xn=bt("_hidden"),kn=bt("toPrimitive"),zn={}.propertyIsEnumerable,In=et("symbol-registry"),Rn=et("symbols"),Dn=et("op-symbols"),Ln=Object.prototype,qn="function"==typeof Pn,Hn=O.QObject,Bn=!Hn||!Hn.prototype||!Hn.prototype.findChild,Gn=P&&T(function(){return 7!=gt(Fn({},"a",{get:function(){return Fn(this,"a",{value:7}).a}})).a})?function(t,n,e){var r=Mn(Ln,n);r&&delete Ln[n],Fn(t,n,e),r&&t!==Ln&&Fn(Ln,n,r)}:Fn,Wn=function(t){var n=Rn[t]=gt(Pn.prototype);return n._k=t,n},$n=qn&&"symbol"==typeof Pn.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof Pn},Un=function(t,n,e){return t===Ln&&Un(Dn,n,e),F(t),n=z(n,!0),F(e),W(Rn,n)?(e.enumerable?(W(t,xn)&&t[xn][n]&&(t[xn][n]=!1),e=gt(e,{enumerable:D(0,!1)})):(W(t,xn)||Fn(t,xn,D(1,{})),t[xn][n]=!0),Gn(t,n,e)):Fn(t,n,e)},Jn=function(t,n){F(t);for(var e,r=hn(n=Q(n)),o=0,i=r.length;i>o;)Un(t,e=r[o++],n[e]);return t},Kn=function(t){var n=zn.call(this,t=z(t,!0));return!(this===Ln&&W(Rn,t)&&!W(Dn,t))&&(!(n||!W(this,t)||!W(Rn,t)||W(this,xn)&&this[xn][t])||n)},Qn=function(t,n){if(t=Q(t),n=z(n,!0),t!==Ln||!W(Rn,n)||W(Dn,n)){var e=Mn(t,n);return!e||!W(Rn,n)||W(t,xn)&&t[xn][n]||(e.enumerable=!0),e}},Yn=function(t){for(var n,e=Tn(Q(t)),r=[],o=0;e.length>o;)W(Rn,n=e[o++])||n==xn||n==En||r.push(n);return r},Zn=function(t){for(var n,e=t===Ln,r=Tn(e?Dn:Q(t)),o=[],i=0;r.length>i;)!W(Rn,n=r[i++])||e&&!W(Ln,n)||o.push(Rn[n]);return o};qn||(B((Pn=function(){if(this instanceof Pn)throw TypeError("Symbol is not a constructor!");var t=it(arguments.length>0?arguments[0]:void 0),n=function(e){this===Ln&&n.call(Dn,e),W(this,xn)&&W(this[xn],t)&&(this[xn][t]=!1),Gn(this,t,D(1,e))};return P&&Bn&&Gn(Ln,t,{configurable:!0,set:n}),Wn(t)}).prototype,"toString",function(){return this._k}),jn.f=Qn,R.f=Un,gn.f=On.f=Yn,dn.f=Kn,yn.f=Zn,un.f=function(t){return Wn(bt(t))}),H(H.G+H.W+H.F*!qn,{Symbol:Pn});for(var Vn="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),Xn=0;Vn.length>Xn;)bt(Vn[Xn++]);for(var Vn=pt(bt.store),Xn=0;Vn.length>Xn;)sn(Vn[Xn++]);H(H.S+H.F*!qn,"Symbol",{for:function(t){return W(In,t+="")?In[t]:In[t]=Pn(t)},keyFor:function(t){if($n(t))return pn(In,t);throw TypeError(t+" is not a symbol!")},useSetter:function(){Bn=!0},useSimple:function(){Bn=!1}}),H(H.S+H.F*!qn,"Object",{create:function(t,n){return void 0===n?gt(t):Jn(gt(t),n)},defineProperty:Un,defineProperties:Jn,getOwnPropertyDescriptor:Qn,getOwnPropertyNames:Yn,getOwnPropertySymbols:Zn}),Cn&&H(H.S+H.F*(!qn||T(function(){var t=Pn();return"[null]"!=Nn([t])||"{}"!=Nn({a:t})||"{}"!=Nn(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!$n(t)){for(var n,e,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);return"function"==typeof(n=r[1])&&(e=n),!e&&vn(n)||(n=function(t,n){if(e&&(n=e.call(this,t,n)),!$n(n))return n}),r[1]=n,Nn.apply(Cn,r)}}}),Pn.prototype[kn]||L(Pn.prototype,kn,Pn.prototype.valueOf),_t(Pn,"Symbol"),_t(Math,"Math",!0),_t(O.JSON,"JSON",!0),sn("asyncIterator"),sn("observable");var te=A.Symbol,ne=e(function(t){t.exports={default:te,__esModule:!0}}),ee=n(e(function(t,n){function e(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=e(an),o=e(ne),i="function"==typeof o.default&&"symbol"==typeof r.default?function(t){return typeof t}:function(t){return t&&"function"==typeof o.default&&t.constructor===o.default&&t!==o.default.prototype?"symbol":typeof t};n.default="function"==typeof o.default&&"symbol"===i(r.default)?function(t){return void 0===t?"undefined":i(t)}:function(t){return t&&"function"==typeof o.default&&t.constructor===o.default&&t!==o.default.prototype?"symbol":void 0===t?"undefined":i(t)}}));!function(t,n){var e=(A.Object||{})[t]||Object[t],r={};r[t]=n(e),H(H.S+H.F*T(function(){e(1)}),"Object",r)}("keys",function(){return function(t){return pt(jt(t))}});var re=A.Object.keys,oe=n(e(function(t){t.exports={default:re,__esModule:!0}})),ie=Math.floor;H(H.S,"Number",{isInteger:function(t){return!M(t)&&isFinite(t)&&ie(t)===t}});var ue=A.Number.isInteger,fe=n(e(function(t){t.exports={default:ue,__esModule:!0}})),ae="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff",ce="["+ae+"]",le=RegExp("^"+ce+ce+"*"),se=RegExp(ce+ce+"*$"),pe=function(t,n,e){var r={},o=T(function(){return!!ae[t]()||"​…"!="​…"[t]()}),i=r[t]=o?n(ye):ae[t];e&&(r[e]=i),H(H.P+H.F*o,"String",r)},ye=pe.trim=function(t,n){return t=String(_(t)),1&n&&(t=t.replace(le,"")),2&n&&(t=t.replace(se,"")),t},de=pe,he=O.parseFloat,ve=de.trim,me=1/he(ae+"-0")!=-1/0?function(t){var n=ve(String(t),3),e=he(n);return 0===e&&"-"==n.charAt(0)?-0:e}:he;H(H.S+H.F*(Number.parseFloat!=me),"Number",{parseFloat:me});var ge=parseFloat,be=n(e(function(t){t.exports={default:ge,__esModule:!0}})),we=y(function(t){return t}),Se=function(t){if(Array.isArray(t)){for(var n=0,e=Array(t.length);n<t.length;n++)e[n]=t[n];return e}return Array.from(t)},_e="undefined"!=typeof window&&"[object Object]"!==Object.prototype.toString.call(window),Oe=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame||function(t){return setTimeout(t,17)},Ae=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame||function(t){clearTimeout(t)};t.genTraversalHandler=y,t.deepClone=function(t){if(s(t))throw new TypeError("deepClone only accept non primitive type");return we(t)},t.deepAssign=function(){for(var t=arguments.length,n=Array(t),e=0;e<t;e++)n[e]=arguments[e];if(n.length<2)throw new Error("deepAssign accept two and more argument");for(var r=n.length-1;r>-1;r--)if(s(n[r]))throw new TypeError("deepAssign only accept non primitive type");var o=n.shift();return n.forEach(function(t){return we(t,o)}),o},t.camelize=d,t.hypenate=function(t){return d(t).replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})},t.bind=function(t,n){return t.bind?t.bind(n):t.apply?function(){for(var e=arguments.length,r=Array(e),o=0;o<e;o++)r[o]=arguments[o];return t.apply(n,r)}:function(){for(var e=arguments.length,r=Array(e),o=0;o<e;o++)r[o]=arguments[o];return t.call.apply(t,[n].concat(Yt(r)))}},t.uuid=function(){return h()+h()+"-"+h()+"-"+h()+"-"+h()+"-"+h()+h()+h()},t.S4=h,t.rand=function(t){for(var n="";n.length<t;)n+=h();return n.slice(0,t)},t.isVoid=r,t.isArray=o,t.isFunction=i,t.isObject=u,t.isNumber=f,t.isNumeric=function(t){return!o(t)&&t-be(t)+1>=0},t.isInteger=function(t){return fe(t)},t.isEmpty=function(t){return o(t)?0===t.length:u(t)?0===oe(t).length:!t},t.isEvent=function(t){return t instanceof Event||t.originalEvent instanceof Event},t.isBlob=a,t.isFile=function(t){return a(t)&&c(t.name)},t.isDate=function(t){return"[object Date]"===Object.prototype.toString.call(t)},t.isString=c,t.isBoolean=l,t.isPromise=function(t){return!!t&&("object"===(void 0===t?"undefined":ee(t))||"function"==typeof t)&&"function"==typeof t.then},t.isPrimitive=s,t.isUrl=function(t){return c(t)&&!!t.match(/^((https?|ftp|rtsp|mms):\/\/)(([0-9a-z_!~*'().&=+$%-]+: )?[0-9a-z_!~*'().&=+$%-]+@)?(([0-9]{1,3}\.){3}[0-9]{1,3}|([0-9a-z_!~*'()-]+\.)*([0-9a-z][0-9a-z-]{0,61})?[0-9a-z]\.[a-z]{2,6}|localhost)(:[0-9]{1,4})?((\/?)|(\/[0-9a-z_!~*'().;?:@&=+$,%#-]+)+\/?)$/i)},t.isNode=p,t.isElement=function(t){return!!("object"===("undefined"==typeof HTMLElement?"undefined":ee(HTMLElement))?t instanceof HTMLElement:t&&"object"===(void 0===t?"undefined":ee(t))&&null!==t&&1===t.nodeType&&"string"==typeof t.nodeName)},t.isChildNode=function(t,n){return!(!p(t)||!p(n))&&n.parentNode===t},t.isPosterityNode=function(t,n){if(!p(t)||!p(n))return!1;for(;n.parentNode;)if((n=n.parentNode)===t)return!0;return!1},t.isHTMLString=function(t){return/<[^>]+?>/.test(t)},t.isError=function(t){return t instanceof Error},t.inBrowser=_e,t.makeArray=function(t){return Array.from(t)},t.transObjectAttrIntoArray=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(t,n){return+t-+n};return Object.keys(t).sort(n).reduce(function(n,e){return n.concat(t[e])},[])},t.runRejectableQueue=function(t){for(var n=arguments.length,e=Array(n>1?n-1:0),r=1;r<n;r++)e[r-1]=arguments[r];return new Promise(function(n,r){!function o(u){if(!(u>=t.length)){var f=i(t[u])?t[u].apply(t,Se(e)):t[u];return!1===f?r("stop"):Promise.resolve(f).then(function(){return o(u+1)}).catch(function(){return r("stop")})}n()}(0)})},t.runStoppableQueue=function(t){for(var n=arguments.length,e=Array(n>1?n-1:0),r=1;r<n;r++)e[r-1]=arguments[r];return function n(r){return r>=t.length||!1!==(i(t[r])?t[r].apply(t,Se(e)):t[r])&&n(++r)}(0)},t.setFrozenAttr=v,t.setAttrGetterAndSetter=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e.get,o=e.set,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"__";if(s(t))throw TypeError("setFrozenAttr obj parameter can not be primitive type");if(!c(n))throw TypeError("setAttrGetterAndSetter key parameter must be String");var f=t[n];if(!i(r)&&(Object.defineProperty(t,u+n,{value:f,configurable:!0,writable:!0,enumerable:!1}),r=function(){return this[u+n]},o&&i(o))){var a=o;o=function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];this[u+n]=a.call.apply(a,[this].concat(e))}}Object.defineProperty(t,n,{get:r,set:o})},t.decodeUTF8=function(t){for(var n=[],e=t,r=0,o=t.length;r<o;)if(e[r]<128)n.push(String.fromCharCode(e[r])),++r;else{if(e[r]<192);else if(e[r]<224){if(m(e,r,1)){var i=(31&e[r])<<6|63&e[r+1];if(i>=128){n.push(String.fromCharCode(65535&i)),r+=2;continue}}}else if(e[r]<240){if(m(e,r,2)){var u=(15&e[r])<<12|(63&e[r+1])<<6|63&e[r+2];if(u>=2048&&55296!=(63488&u)){n.push(String.fromCharCode(65535&u)),r+=3;continue}}}else if(e[r]<248&&m(e,r,3)){var f=(7&e[r])<<18|(63&e[r+1])<<12|(63&e[r+2])<<6|63&e[r+3];if(f>65536&&f<1114112){f-=65536,n.push(String.fromCharCode(f>>>10|55296)),n.push(String.fromCharCode(1023&f|56320)),r+=4;continue}}n.push(String.fromCharCode(65533)),++r}return n.join("")},t.debounce=function(t,n,e){var r=void 0,o=void 0,i=void 0,u=void 0,f=void 0,a=function a(){var c=new Date-u;c<n&&c>=0?r=setTimeout(a,n-c):(r=null,e||(f=t.apply(i,o),r||(i=o=null)))};return function(){i=this,o=arguments,u=new Date;var c=e&&!r;return r||(r=setTimeout(a,n)),c&&(f=t.apply(i,o),i=o=null),f}},t.throttle=function(t,n,e,r){var o=void 0,i=void 0,u=void 0,f=null,a=0;e||(e={});var c=function(){a=!1===e.leading?0:new Date-0,f=null,u=t.apply(o,i),f||(o=i=null)};return n=n||0,function(){var l=new Date;a||!1!==e.leading||(a=l);var s=n-(l-a);return o=r||this,i=arguments,s<=0||s>n?(f&&(clearTimeout(f),f=null),a=l,u=t.apply(o,i),f||(o=i=null)):f||!1===e.trailing||(f=setTimeout(c,s)),u}},t.raf=Oe,t.caf=Ae,t.strRepeat=g,t.formatTime=function(t){var n=Math.floor(t/3600);t=Math.floor(t%3600);var e=g(Math.floor(t/60),2),r=g(t=Math.floor(t%60),2);return n>=1?n+":"+e+":"+r:e+":"+r},t.addTransMethod=function(t){v(t,"trans",function(n){return t.__fns||v(t,"__fns",{}),t.__fns[n]||(t.__fns[n]=function(){if(!i(t[n]))throw TypeError("obj.trans(methodName) parameter must be Function");return t[n].apply(t,arguments)}),t.__fns[n]})},t.appendCSS=function(t){var n=document,e=n.querySelector("style");if(!e){e=n.createElement("style");var r=n.querySelector("head");r&&r.appendChild(e)}return e.appendChild(n.createTextNode(t)),e},t.formatDate=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yyyy-MM-dd hh:mm:ss.i",e=t.getFullYear().toString(),r={M:t.getMonth()+1,d:t.getDate(),h:t.getHours(),m:t.getMinutes(),s:t.getSeconds(),i:t.getMilliseconds()};n=n.replace(/(y+)/gi,function(t,n){return e.substr(4-Math.min(4,n.length))});for(var o in r)!function(t){n=n.replace(new RegExp("("+t+"+)","g"),function(n,e){return(r[t]<10&&e.length>1?"0":"")+r[t]})}(o);return n},t.getLocalStorage=function(t){try{return window.localStorage&&localStorage.getItem(t)}catch(e){try{var n=document.cookie.match(new RegExp("(^| )"+t+"=([^;]*)(;|$)"));return o(n)?unescape(n[2]):""}catch(t){return""}}},t.setLocalStorage=function(t,n){try{window.localStorage&&localStorage.setItem(t,n)}catch(r){var e=new Date;e.setTime(e.getTime()+2592e7);try{document.cookie=t+"="+escape(n)+";expires="+e.toGMTString()+";path=/;"}catch(t){}}},Object.defineProperty(t,"__esModule",{value:!0})});
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(t.chimeeHelper=t.chimeeHelper||{})}(this,function(t){"use strict";function n(t){return t&&t.__esModule?t.default:t}function e(t,n){return n={exports:{}},t(n,n.exports),n.exports}function r(t){return void 0===t||null===t}function o(t){return Array.isArray(t)}function i(t){return"function"==typeof t}function u(t){return Object(t)===t&&"[object Object]"===String(t)&&!i(t)&&!o(t)}function c(t){return"number"==typeof t}function a(t){return t instanceof Blob}function f(t){return"string"==typeof t||t instanceof String}function s(t){return"boolean"==typeof t}function l(t){return r(t)||s(t)||f(t)||c(t)}function p(t){return!!("object"===("undefined"==typeof Node?"undefined":oe(Node))?t instanceof Node:t&&"object"===(void 0===t?"undefined":oe(t))&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName)}function d(t){function n(e,r,i){if(o(e)||u(e)){r=r||(u(e)?{}:[]);for(var c in e)r[c]=n(e[c],r[c],c);return r}return t(e,r,i)}return n}function h(t,n){return t.replace(/(^|[^a-zA-Z]+)([a-zA-Z])/g,function(t,e,r,o){return n||0!==o?r.toUpperCase():r.toLowerCase()})}function v(){return(65536*(1+Math.random())|0).toString(16).substring(1)}function y(t,n,e){if(l(t))throw TypeError("setFrozenAttr obj parameter can not be primitive type");if(!f(n))throw TypeError("setFrozenAttr key parameter must be String");Pe(t,n,{value:e,configurable:!1,enumerable:!1,writable:!1})}function m(t,n,e){var r=t;if(n+e<r.length){for(;e--;)if(128!=(192&r[++n]))return!1;return!0}return!1}function g(t,n){var e=n,r=(t=""+(t||"")).length;return(((n=(n||r)-r)>0?t.repeat?"0".repeat(n):new Array(n+1).join("0"):"")+t).slice(0,e)}var b=Math.ceil,w=Math.floor,_=function(t){return isNaN(t=+t)?0:(t>0?w:b)(t)},S=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t},j=e(function(t){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)}),O=e(function(t){var n=t.exports={version:"2.4.0"};"number"==typeof __e&&(__e=n)}),A=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t},E=function(t,n,e){if(A(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)}},M=function(t){return"object"==typeof t?null!==t:"function"==typeof t},P=function(t){if(!M(t))throw TypeError(t+" is not an object!");return t},T=function(t){try{return!!t()}catch(t){return!0}},F=!T(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),x=j.document,C=M(x)&&M(x.createElement),N=function(t){return C?x.createElement(t):{}},k=!F&&!T(function(){return 7!=Object.defineProperty(N("div"),"a",{get:function(){return 7}}).a}),R=function(t,n){if(!M(t))return t;var e,r;if(n&&"function"==typeof(e=t.toString)&&!M(r=e.call(t)))return r;if("function"==typeof(e=t.valueOf)&&!M(r=e.call(t)))return r;if(!n&&"function"==typeof(e=t.toString)&&!M(r=e.call(t)))return r;throw TypeError("Can't convert object to primitive value")},I=Object.defineProperty,z={f:F?Object.defineProperty:function(t,n,e){if(P(t),n=R(n,!0),P(e),k)try{return I(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}},D=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}},L=F?function(t,n,e){return z.f(t,n,D(1,e))}:function(t,n,e){return t[n]=e,t},H=function(t,n,e){var r,o,i,u=t&H.F,c=t&H.G,a=t&H.S,f=t&H.P,s=t&H.B,l=t&H.W,p=c?O:O[n]||(O[n]={}),d=p.prototype,h=c?j:a?j[n]:(j[n]||{}).prototype;c&&(e=n);for(r in e)(o=!u&&h&&void 0!==h[r])&&r in p||(i=o?h[r]:e[r],p[r]=c&&"function"!=typeof h[r]?e[r]:s&&o?E(i,j):l&&h[r]==i?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}(i):f&&"function"==typeof i?E(Function.call,i):i,f&&((p.virtual||(p.virtual={}))[r]=i,t&H.R&&d&&!d[r]&&L(d,r,i)))};H.F=1,H.G=2,H.S=4,H.P=8,H.B=16,H.W=32,H.U=64,H.R=128;var q=H,B=L,W={}.hasOwnProperty,G=function(t,n){return W.call(t,n)},U={},$={}.toString,K=function(t){return $.call(t).slice(8,-1)},J=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==K(t)?t.split(""):Object(t)},Q=function(t){return J(S(t))},Y=Math.min,Z=function(t){return t>0?Y(_(t),9007199254740991):0},V=Math.max,X=Math.min,tt=function(t,n){return(t=_(t))<0?V(t+n,0):X(t,n)},nt=j["__core-js_shared__"]||(j["__core-js_shared__"]={}),et=function(t){return nt[t]||(nt[t]={})},rt=0,ot=Math.random(),it=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++rt+ot).toString(36))},ut=et("keys"),ct=function(t){return ut[t]||(ut[t]=it(t))},at=function(t){return function(n,e,r){var o,i=Q(n),u=Z(i.length),c=tt(r,u);if(t&&e!=e){for(;u>c;)if((o=i[c++])!=o)return!0}else for(;u>c;c++)if((t||c in i)&&i[c]===e)return t||c||0;return!t&&-1}}(!1),ft=ct("IE_PROTO"),st=function(t,n){var e,r=Q(t),o=0,i=[];for(e in r)e!=ft&&G(r,e)&&i.push(e);for(;n.length>o;)G(r,e=n[o++])&&(~at(i,e)||i.push(e));return i},lt="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),pt=Object.keys||function(t){return st(t,lt)},dt=F?Object.defineProperties:function(t,n){P(t);for(var e,r=pt(n),o=r.length,i=0;o>i;)z.f(t,e=r[i++],n[e]);return t},ht=j.document&&document.documentElement,vt=ct("IE_PROTO"),yt=function(){},mt=function(){var t,n=N("iframe"),e=lt.length;for(n.style.display="none",ht.appendChild(n),n.src="javascript:",(t=n.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),mt=t.F;e--;)delete mt.prototype[lt[e]];return mt()},gt=Object.create||function(t,n){var e;return null!==t?(yt.prototype=P(t),e=new yt,yt.prototype=null,e[vt]=t):e=mt(),void 0===n?e:dt(e,n)},bt=e(function(t){var n=et("wks"),e=j.Symbol,r="function"==typeof e;(t.exports=function(t){return n[t]||(n[t]=r&&e[t]||(r?e:it)("Symbol."+t))}).store=n}),wt=z.f,_t=bt("toStringTag"),St=function(t,n,e){t&&!G(t=e?t:t.prototype,_t)&&wt(t,_t,{configurable:!0,value:n})},jt={};L(jt,bt("iterator"),function(){return this});var Ot=function(t,n,e){t.prototype=gt(jt,{next:D(1,e)}),St(t,n+" Iterator")},At=function(t){return Object(S(t))},Et=ct("IE_PROTO"),Mt=Object.prototype,Pt=Object.getPrototypeOf||function(t){return t=At(t),G(t,Et)?t[Et]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?Mt:null},Tt=bt("iterator"),Ft=!([].keys&&"next"in[].keys()),xt=function(){return this},Ct=function(t,n,e,r,o,i,u){Ot(e,n,r);var c,a,f,s=function(t){if(!Ft&&t in h)return h[t];switch(t){case"keys":case"values":return function(){return new e(this,t)}}return function(){return new e(this,t)}},l=n+" Iterator",p="values"==o,d=!1,h=t.prototype,v=h[Tt]||h["@@iterator"]||o&&h[o],y=v||s(o),m=o?p?s("entries"):y:void 0,g="Array"==n?h.entries||v:v;if(g&&(f=Pt(g.call(new t)))!==Object.prototype&&St(f,l,!0),p&&v&&"values"!==v.name&&(d=!0,y=function(){return v.call(this)}),u&&(Ft||d||!h[Tt])&&L(h,Tt,y),U[n]=y,U[l]=xt,o)if(c={values:p?y:s("values"),keys:i?y:s("keys"),entries:m},u)for(a in c)a in h||B(h,a,c[a]);else q(q.P+q.F*(Ft||d),n,c);return c},Nt=function(t){return function(n,e){var r,o,i=String(S(n)),u=_(e),c=i.length;return u<0||u>=c?t?"":void 0:(r=i.charCodeAt(u))<55296||r>56319||u+1===c||(o=i.charCodeAt(u+1))<56320||o>57343?t?i.charAt(u):r:t?i.slice(u,u+2):o-56320+(r-55296<<10)+65536}}(!0);Ct(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=Nt(n,e),this._i+=t.length,{value:t,done:!1})});var kt=function(t,n,e,r){try{return r?n(P(e)[0],e[1]):n(e)}catch(n){var o=t.return;throw void 0!==o&&P(o.call(t)),n}},Rt=bt("iterator"),It=Array.prototype,zt=function(t){return void 0!==t&&(U.Array===t||It[Rt]===t)},Dt=function(t,n,e){n in t?z.f(t,n,D(0,e)):t[n]=e},Lt=bt("toStringTag"),Ht="Arguments"==K(function(){return arguments}()),qt=function(t,n){try{return t[n]}catch(t){}},Bt=function(t){var n,e,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=qt(n=Object(t),Lt))?e:Ht?K(n):"Object"==(r=K(n))&&"function"==typeof n.callee?"Arguments":r},Wt=bt("iterator"),Gt=O.getIteratorMethod=function(t){if(void 0!=t)return t[Wt]||t["@@iterator"]||U[Bt(t)]},Ut=bt("iterator"),$t=!1;try{var Kt=[7][Ut]();Kt.return=function(){$t=!0},Array.from(Kt,function(){throw 2})}catch(t){}var Jt=function(t,n){if(!n&&!$t)return!1;var e=!1;try{var r=[7],o=r[Ut]();o.next=function(){return{done:e=!0}},r[Ut]=function(){return o},t(r)}catch(t){}return e};q(q.S+q.F*!Jt(function(t){Array.from(t)}),"Array",{from:function(t){var n,e,r,o,i=At(t),u="function"==typeof this?this:Array,c=arguments.length,a=c>1?arguments[1]:void 0,f=void 0!==a,s=0,l=Gt(i);if(f&&(a=E(a,c>2?arguments[2]:void 0,2)),void 0==l||u==Array&&zt(l))for(e=new u(n=Z(i.length));n>s;s++)Dt(e,s,f?a(i[s],s):i[s]);else for(o=l.call(i),e=new u;!(r=o.next()).done;s++)Dt(e,s,f?kt(o,a,[r.value,s],!0):r.value);return e.length=s,e}});var Qt=O.Array.from,Yt=e(function(t){t.exports={default:Qt,__esModule:!0}}),Zt=n(Yt),Vt=n(e(function(t,n){n.__esModule=!0;var e=function(t){return t&&t.__esModule?t:{default:t}}(Yt);n.default=function(t){if(Array.isArray(t)){for(var n=0,r=Array(t.length);n<t.length;n++)r[n]=t[n];return r}return(0,e.default)(t)}})),Xt=function(){},tn=function(t,n){return{value:n,done:!!t}};Ct(Array,"Array",function(t,n){this._t=Q(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,tn(1)):"keys"==n?tn(0,e):"values"==n?tn(0,t[e]):tn(0,[e,t[e]])},"values");U.Arguments=U.Array,Xt(),Xt(),Xt();for(var nn=bt("toStringTag"),en=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],rn=0;rn<5;rn++){var on=en[rn],un=j[on],cn=un&&un.prototype;cn&&!cn[nn]&&L(cn,nn,on),U[on]=U.Array}var an={f:bt},fn=an.f("iterator"),sn=e(function(t){t.exports={default:fn,__esModule:!0}}),ln=e(function(t){var n=it("meta"),e=z.f,r=0,o=Object.isExtensible||function(){return!0},i=!T(function(){return o(Object.preventExtensions({}))}),u=function(t){e(t,n,{value:{i:"O"+ ++r,w:{}}})},c=t.exports={KEY:n,NEED:!1,fastKey:function(t,e){if(!M(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!G(t,n)){if(!o(t))return"F";if(!e)return"E";u(t)}return t[n].i},getWeak:function(t,e){if(!G(t,n)){if(!o(t))return!0;if(!e)return!1;u(t)}return t[n].w},onFreeze:function(t){return i&&c.NEED&&o(t)&&!G(t,n)&&u(t),t}}}),pn=z.f,dn=function(t){var n=O.Symbol||(O.Symbol={});"_"==t.charAt(0)||t in n||pn(n,t,{value:an.f(t)})},hn=function(t,n){for(var e,r=Q(t),o=pt(r),i=o.length,u=0;i>u;)if(r[e=o[u++]]===n)return e},vn={f:Object.getOwnPropertySymbols},yn={f:{}.propertyIsEnumerable},mn=function(t){var n=pt(t),e=vn.f;if(e)for(var r,o=e(t),i=yn.f,u=0;o.length>u;)i.call(t,r=o[u++])&&n.push(r);return n},gn=Array.isArray||function(t){return"Array"==K(t)},bn=lt.concat("length","prototype"),wn={f:Object.getOwnPropertyNames||function(t){return st(t,bn)}},_n=wn.f,Sn={}.toString,jn="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],On=function(t){try{return _n(t)}catch(t){return jn.slice()}},An={f:function(t){return jn&&"[object Window]"==Sn.call(t)?On(t):_n(Q(t))}},En=Object.getOwnPropertyDescriptor,Mn={f:F?En:function(t,n){if(t=Q(t),n=R(n,!0),k)try{return En(t,n)}catch(t){}if(G(t,n))return D(!yn.f.call(t,n),t[n])}},Pn=ln.KEY,Tn=Mn.f,Fn=z.f,xn=An.f,Cn=j.Symbol,Nn=j.JSON,kn=Nn&&Nn.stringify,Rn=bt("_hidden"),In=bt("toPrimitive"),zn={}.propertyIsEnumerable,Dn=et("symbol-registry"),Ln=et("symbols"),Hn=et("op-symbols"),qn=Object.prototype,Bn="function"==typeof Cn,Wn=j.QObject,Gn=!Wn||!Wn.prototype||!Wn.prototype.findChild,Un=F&&T(function(){return 7!=gt(Fn({},"a",{get:function(){return Fn(this,"a",{value:7}).a}})).a})?function(t,n,e){var r=Tn(qn,n);r&&delete qn[n],Fn(t,n,e),r&&t!==qn&&Fn(qn,n,r)}:Fn,$n=function(t){var n=Ln[t]=gt(Cn.prototype);return n._k=t,n},Kn=Bn&&"symbol"==typeof Cn.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof Cn},Jn=function(t,n,e){return t===qn&&Jn(Hn,n,e),P(t),n=R(n,!0),P(e),G(Ln,n)?(e.enumerable?(G(t,Rn)&&t[Rn][n]&&(t[Rn][n]=!1),e=gt(e,{enumerable:D(0,!1)})):(G(t,Rn)||Fn(t,Rn,D(1,{})),t[Rn][n]=!0),Un(t,n,e)):Fn(t,n,e)},Qn=function(t,n){P(t);for(var e,r=mn(n=Q(n)),o=0,i=r.length;i>o;)Jn(t,e=r[o++],n[e]);return t},Yn=function(t){var n=zn.call(this,t=R(t,!0));return!(this===qn&&G(Ln,t)&&!G(Hn,t))&&(!(n||!G(this,t)||!G(Ln,t)||G(this,Rn)&&this[Rn][t])||n)},Zn=function(t,n){if(t=Q(t),n=R(n,!0),t!==qn||!G(Ln,n)||G(Hn,n)){var e=Tn(t,n);return!e||!G(Ln,n)||G(t,Rn)&&t[Rn][n]||(e.enumerable=!0),e}},Vn=function(t){for(var n,e=xn(Q(t)),r=[],o=0;e.length>o;)G(Ln,n=e[o++])||n==Rn||n==Pn||r.push(n);return r},Xn=function(t){for(var n,e=t===qn,r=xn(e?Hn:Q(t)),o=[],i=0;r.length>i;)!G(Ln,n=r[i++])||e&&!G(qn,n)||o.push(Ln[n]);return o};Bn||(B((Cn=function(){if(this instanceof Cn)throw TypeError("Symbol is not a constructor!");var t=it(arguments.length>0?arguments[0]:void 0),n=function(e){this===qn&&n.call(Hn,e),G(this,Rn)&&G(this[Rn],t)&&(this[Rn][t]=!1),Un(this,t,D(1,e))};return F&&Gn&&Un(qn,t,{configurable:!0,set:n}),$n(t)}).prototype,"toString",function(){return this._k}),Mn.f=Zn,z.f=Jn,wn.f=An.f=Vn,yn.f=Yn,vn.f=Xn,an.f=function(t){return $n(bt(t))}),q(q.G+q.W+q.F*!Bn,{Symbol:Cn});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)bt(te[ne++]);for(var te=pt(bt.store),ne=0;te.length>ne;)dn(te[ne++]);q(q.S+q.F*!Bn,"Symbol",{for:function(t){return G(Dn,t+="")?Dn[t]:Dn[t]=Cn(t)},keyFor:function(t){if(Kn(t))return hn(Dn,t);throw TypeError(t+" is not a symbol!")},useSetter:function(){Gn=!0},useSimple:function(){Gn=!1}}),q(q.S+q.F*!Bn,"Object",{create:function(t,n){return void 0===n?gt(t):Qn(gt(t),n)},defineProperty:Jn,defineProperties:Qn,getOwnPropertyDescriptor:Zn,getOwnPropertyNames:Vn,getOwnPropertySymbols:Xn}),Nn&&q(q.S+q.F*(!Bn||T(function(){var t=Cn();return"[null]"!=kn([t])||"{}"!=kn({a:t})||"{}"!=kn(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!Kn(t)){for(var n,e,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);return"function"==typeof(n=r[1])&&(e=n),!e&&gn(n)||(n=function(t,n){if(e&&(n=e.call(this,t,n)),!Kn(n))return n}),r[1]=n,kn.apply(Nn,r)}}}),Cn.prototype[In]||L(Cn.prototype,In,Cn.prototype.valueOf),St(Cn,"Symbol"),St(Math,"Math",!0),St(j.JSON,"JSON",!0),dn("asyncIterator"),dn("observable");var ee=O.Symbol,re=e(function(t){t.exports={default:ee,__esModule:!0}}),oe=n(e(function(t,n){function e(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=e(sn),o=e(re),i="function"==typeof o.default&&"symbol"==typeof r.default?function(t){return typeof t}:function(t){return t&&"function"==typeof o.default&&t.constructor===o.default&&t!==o.default.prototype?"symbol":typeof t};n.default="function"==typeof o.default&&"symbol"===i(r.default)?function(t){return void 0===t?"undefined":i(t)}:function(t){return t&&"function"==typeof o.default&&t.constructor===o.default&&t!==o.default.prototype?"symbol":void 0===t?"undefined":i(t)}}));!function(t,n){var e=(O.Object||{})[t]||Object[t],r={};r[t]=n(e),q(q.S+q.F*T(function(){e(1)}),"Object",r)}("keys",function(){return function(t){return pt(At(t))}});var ie=O.Object.keys,ue=n(e(function(t){t.exports={default:ie,__esModule:!0}})),ce=Math.floor;q(q.S,"Number",{isInteger:function(t){return!M(t)&&isFinite(t)&&ce(t)===t}});var ae=O.Number.isInteger,fe=n(e(function(t){t.exports={default:ae,__esModule:!0}})),se="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff",le="["+se+"]",pe=RegExp("^"+le+le+"*"),de=RegExp(le+le+"*$"),he=function(t,n,e){var r={},o=T(function(){return!!se[t]()||"​…"!="​…"[t]()}),i=r[t]=o?n(ve):se[t];e&&(r[e]=i),q(q.P+q.F*o,"String",r)},ve=he.trim=function(t,n){return t=String(S(t)),1&n&&(t=t.replace(pe,"")),2&n&&(t=t.replace(de,"")),t},ye=he,me=j.parseFloat,ge=ye.trim,be=1/me(se+"-0")!=-1/0?function(t){var n=ge(String(t),3),e=me(n);return 0===e&&"-"==n.charAt(0)?-0:e}:me;q(q.S+q.F*(Number.parseFloat!=be),"Number",{parseFloat:be});var we=parseFloat,_e=n(e(function(t){t.exports={default:we,__esModule:!0}})),Se=d(function(t){return t});q(q.S+q.F*!F,"Object",{defineProperty:z.f});var je,Oe,Ae,Ee=O.Object,Me=function(t,n,e){return Ee.defineProperty(t,n,e)},Pe=n(e(function(t){t.exports={default:Me,__esModule:!0}})),Te=function(t,n,e,r){if(!(t instanceof n)||void 0!==r&&r in t)throw TypeError(e+": incorrect invocation!");return t},Fe=e(function(t){var n={},e={},r=t.exports=function(t,r,o,i,u){var c,a,f,s,l=u?function(){return t}:Gt(t),p=E(o,i,r?2:1),d=0;if("function"!=typeof l)throw TypeError(t+" is not iterable!");if(zt(l)){for(c=Z(t.length);c>d;d++)if((s=r?p(P(a=t[d])[0],a[1]):p(t[d]))===n||s===e)return s}else for(f=l.call(t);!(a=f.next()).done;)if((s=kt(f,p,a.value,r))===n||s===e)return s};r.BREAK=n,r.RETURN=e}),xe=bt("species"),Ce=function(t,n){var e,r=P(t).constructor;return void 0===r||void 0==(e=P(r)[xe])?n:A(e)},Ne=function(t,n,e){var r=void 0===e;switch(n.length){case 0:return r?t():t.call(e);case 1:return r?t(n[0]):t.call(e,n[0]);case 2:return r?t(n[0],n[1]):t.call(e,n[0],n[1]);case 3:return r?t(n[0],n[1],n[2]):t.call(e,n[0],n[1],n[2]);case 4:return r?t(n[0],n[1],n[2],n[3]):t.call(e,n[0],n[1],n[2],n[3])}return t.apply(e,n)},ke=j.process,Re=j.setImmediate,Ie=j.clearImmediate,ze=j.MessageChannel,De=0,Le={},He=function(){var t=+this;if(Le.hasOwnProperty(t)){var n=Le[t];delete Le[t],n()}},qe=function(t){He.call(t.data)};Re&&Ie||(Re=function(t){for(var n=[],e=1;arguments.length>e;)n.push(arguments[e++]);return Le[++De]=function(){Ne("function"==typeof t?t:Function(t),n)},je(De),De},Ie=function(t){delete Le[t]},"process"==K(ke)?je=function(t){ke.nextTick(E(He,t,1))}:ze?(Ae=(Oe=new ze).port2,Oe.port1.onmessage=qe,je=E(Ae.postMessage,Ae,1)):j.addEventListener&&"function"==typeof postMessage&&!j.importScripts?(je=function(t){j.postMessage(t+"","*")},j.addEventListener("message",qe,!1)):je="onreadystatechange"in N("script")?function(t){ht.appendChild(N("script")).onreadystatechange=function(){ht.removeChild(this),He.call(t)}}:function(t){setTimeout(E(He,t,1),0)});var Be,We,Ge,Ue={set:Re,clear:Ie},$e=Ue.set,Ke=j.MutationObserver||j.WebKitMutationObserver,Je=j.process,Qe=j.Promise,Ye="process"==K(Je),Ze=bt("species"),Ve=Ue.set,Xe=function(){var t,n,e,r=function(){var r,o;for(Ye&&(r=Je.domain)&&r.exit();t;){o=t.fn,t=t.next;try{o()}catch(r){throw t?e():n=void 0,r}}n=void 0,r&&r.enter()};if(Ye)e=function(){Je.nextTick(r)};else if(Ke){var o=!0,i=document.createTextNode("");new Ke(r).observe(i,{characterData:!0}),e=function(){i.data=o=!o}}else if(Qe&&Qe.resolve){var u=Qe.resolve();e=function(){u.then(r)}}else e=function(){$e.call(j,r)};return function(r){var o={fn:r,next:void 0};n&&(n.next=o),t||(t=o,e()),n=o}}(),tr=j.TypeError,nr=j.process,er=j.Promise,nr=j.process,rr="process"==Bt(nr),or=function(){},ir=!!function(){try{var t=er.resolve(1),n=(t.constructor={})[bt("species")]=function(t){t(or,or)};return(rr||"function"==typeof PromiseRejectionEvent)&&t.then(or)instanceof n}catch(t){}}(),ur=function(t,n){return t===n||t===er&&n===Ge},cr=function(t){var n;return!(!M(t)||"function"!=typeof(n=t.then))&&n},ar=function(t){return ur(er,t)?new fr(t):new We(t)},fr=We=function(t){var n,e;this.promise=new t(function(t,r){if(void 0!==n||void 0!==e)throw tr("Bad Promise constructor");n=t,e=r}),this.resolve=A(n),this.reject=A(e)},sr=function(t){try{t()}catch(t){return{error:t}}},lr=function(t,n){if(!t._n){t._n=!0;var e=t._c;Xe(function(){for(var r=t._v,o=1==t._s,i=0;e.length>i;)!function(n){var e,i,u=o?n.ok:n.fail,c=n.resolve,a=n.reject,f=n.domain;try{u?(o||(2==t._h&&hr(t),t._h=1),!0===u?e=r:(f&&f.enter(),e=u(r),f&&f.exit()),e===n.promise?a(tr("Promise-chain cycle")):(i=cr(e))?i.call(e,c,a):c(e)):a(r)}catch(t){a(t)}}(e[i++]);t._c=[],t._n=!1,n&&!t._h&&pr(t)})}},pr=function(t){Ve.call(j,function(){var n,e,r,o=t._v;if(dr(t)&&(n=sr(function(){rr?nr.emit("unhandledRejection",o,t):(e=j.onunhandledrejection)?e({promise:t,reason:o}):(r=j.console)&&r.error&&r.error("Unhandled promise rejection",o)}),t._h=rr||dr(t)?2:1),t._a=void 0,n)throw n.error})},dr=function(t){if(1==t._h)return!1;for(var n,e=t._a||t._c,r=0;e.length>r;)if((n=e[r++]).fail||!dr(n.promise))return!1;return!0},hr=function(t){Ve.call(j,function(){var n;rr?nr.emit("rejectionHandled",t):(n=j.onrejectionhandled)&&n({promise:t,reason:t._v})})},vr=function(t){var n=this;n._d||(n._d=!0,(n=n._w||n)._v=t,n._s=2,n._a||(n._a=n._c.slice()),lr(n,!0))},yr=function(t){var n,e=this;if(!e._d){e._d=!0,e=e._w||e;try{if(e===t)throw tr("Promise can't be resolved itself");(n=cr(t))?Xe(function(){var r={_w:e,_d:!1};try{n.call(t,E(yr,r,1),E(vr,r,1))}catch(t){vr.call(r,t)}}):(e._v=t,e._s=1,lr(e,!1))}catch(t){vr.call({_w:e,_d:!1},t)}}};ir||(er=function(t){Te(this,er,"Promise","_h"),A(t),Be.call(this);try{t(E(yr,this,1),E(vr,this,1))}catch(t){vr.call(this,t)}},(Be=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=function(t,n,e){for(var r in n)e&&t[r]?t[r]=n[r]:L(t,r,n[r]);return t}(er.prototype,{then:function(t,n){var e=ar(Ce(this,er));return e.ok="function"!=typeof t||t,e.fail="function"==typeof n&&n,e.domain=rr?nr.domain:void 0,this._c.push(e),this._a&&this._a.push(e),this._s&&lr(this,!1),e.promise},catch:function(t){return this.then(void 0,t)}}),fr=function(){var t=new Be;this.promise=t,this.resolve=E(yr,t,1),this.reject=E(vr,t,1)}),q(q.G+q.W+q.F*!ir,{Promise:er}),St(er,"Promise"),function(t){var n="function"==typeof O[t]?O[t]:j[t];F&&n&&!n[Ze]&&z.f(n,Ze,{configurable:!0,get:function(){return this}})}("Promise"),Ge=O.Promise,q(q.S+q.F*!ir,"Promise",{reject:function(t){var n=ar(this);return(0,n.reject)(t),n.promise}}),q(q.S+!0*q.F,"Promise",{resolve:function(t){if(t instanceof er&&ur(t.constructor,this))return t;var n=ar(this);return(0,n.resolve)(t),n.promise}}),q(q.S+q.F*!(ir&&Jt(function(t){er.all(t).catch(or)})),"Promise",{all:function(t){var n=this,e=ar(n),r=e.resolve,o=e.reject,i=sr(function(){var e=[],i=0,u=1;Fe(t,!1,function(t){var c=i++,a=!1;e.push(void 0),u++,n.resolve(t).then(function(t){a||(a=!0,e[c]=t,--u||r(e))},o)}),--u||r(e)});return i&&o(i.error),e.promise},race:function(t){var n=this,e=ar(n),r=e.reject,o=sr(function(){Fe(t,!1,function(t){n.resolve(t).then(e.resolve,r)})});return o&&r(o.error),e.promise}});var mr=O.Promise,gr=n(e(function(t){t.exports={default:mr,__esModule:!0}})),br="undefined"!=typeof window&&"[object Object]"!==Object.prototype.toString.call(window),wr=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame||function(t){return setTimeout(t,17)},_r=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame||function(t){clearTimeout(t)};t.genTraversalHandler=d,t.deepClone=function(t){if(l(t))throw new TypeError("deepClone only accept non primitive type");return Se(t)},t.deepAssign=function(){for(var t=arguments.length,n=Array(t),e=0;e<t;e++)n[e]=arguments[e];if(n.length<2)throw new Error("deepAssign accept two and more argument");for(var r=n.length-1;r>-1;r--)if(l(n[r]))throw new TypeError("deepAssign only accept non primitive type");var o=n.shift();return n.forEach(function(t){return Se(t,o)}),o},t.camelize=h,t.hypenate=function(t){return h(t).replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})},t.bind=function(t,n){return t.bind?t.bind(n):t.apply?function(){for(var e=arguments.length,r=Array(e),o=0;o<e;o++)r[o]=arguments[o];return t.apply(n,r)}:function(){for(var e=arguments.length,r=Array(e),o=0;o<e;o++)r[o]=arguments[o];return t.call.apply(t,[n].concat(Vt(r)))}},t.uuid=function(){return v()+v()+"-"+v()+"-"+v()+"-"+v()+"-"+v()+v()+v()},t.S4=v,t.rand=function(t){for(var n="";n.length<t;)n+=v();return n.slice(0,t)},t.isVoid=r,t.isArray=o,t.isFunction=i,t.isObject=u,t.isNumber=c,t.isNumeric=function(t){return!o(t)&&t-_e(t)+1>=0},t.isInteger=function(t){return fe(t)},t.isEmpty=function(t){return o(t)?0===t.length:u(t)?0===ue(t).length:!t},t.isEvent=function(t){return t instanceof Event||t.originalEvent instanceof Event},t.isBlob=a,t.isFile=function(t){return a(t)&&f(t.name)},t.isDate=function(t){return"[object Date]"===Object.prototype.toString.call(t)},t.isString=f,t.isBoolean=s,t.isPromise=function(t){return!!t&&("object"===(void 0===t?"undefined":oe(t))||"function"==typeof t)&&"function"==typeof t.then},t.isPrimitive=l,t.isUrl=function(t){return f(t)&&!!t.match(/^((https?|ftp|rtsp|mms):\/\/)(([0-9a-z_!~*'().&=+$%-]+: )?[0-9a-z_!~*'().&=+$%-]+@)?(([0-9]{1,3}\.){3}[0-9]{1,3}|([0-9a-z_!~*'()-]+\.)*([0-9a-z][0-9a-z-]{0,61})?[0-9a-z]\.[a-z]{2,6}|localhost)(:[0-9]{1,4})?((\/?)|(\/[0-9a-z_!~*'().;?:@&=+$,%#-]+)+\/?)$/i)},t.isNode=p,t.isElement=function(t){return!!("object"===("undefined"==typeof HTMLElement?"undefined":oe(HTMLElement))?t instanceof HTMLElement:t&&"object"===(void 0===t?"undefined":oe(t))&&null!==t&&1===t.nodeType&&"string"==typeof t.nodeName)},t.isChildNode=function(t,n){return!(!p(t)||!p(n))&&n.parentNode===t},t.isPosterityNode=function(t,n){if(!p(t)||!p(n))return!1;for(;n.parentNode;)if((n=n.parentNode)===t)return!0;return!1},t.isHTMLString=function(t){return/<[^>]+?>/.test(t)},t.isError=function(t){return t instanceof Error},t.inBrowser=br,t.makeArray=function(t){return Zt(t)},t.transObjectAttrIntoArray=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(t,n){return+t-+n};return ue(t).sort(n).reduce(function(n,e){return n.concat(t[e])},[])},t.runRejectableQueue=function(t){for(var n=arguments.length,e=Array(n>1?n-1:0),r=1;r<n;r++)e[r-1]=arguments[r];return new gr(function(n,r){!function o(u){if(!(u>=t.length)){var c=i(t[u])?t[u].apply(t,Vt(e)):t[u];return!1===c?r("stop"):gr.resolve(c).then(function(){return o(u+1)}).catch(function(){return r("stop")})}n()}(0)})},t.runStoppableQueue=function(t){for(var n=arguments.length,e=Array(n>1?n-1:0),r=1;r<n;r++)e[r-1]=arguments[r];return function n(r){return r>=t.length||!1!==(i(t[r])?t[r].apply(t,Vt(e)):t[r])&&n(++r)}(0)},t.setFrozenAttr=y,t.setAttrGetterAndSetter=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e.get,o=e.set,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"__";if(l(t))throw TypeError("setFrozenAttr obj parameter can not be primitive type");if(!f(n))throw TypeError("setAttrGetterAndSetter key parameter must be String");var c=t[n];if(!i(r)&&(Pe(t,u+n,{value:c,configurable:!0,writable:!0,enumerable:!1}),r=function(){return this[u+n]},o&&i(o))){var a=o;o=function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];this[u+n]=a.call.apply(a,[this].concat(e))}}Pe(t,n,{get:r,set:o})},t.decodeUTF8=function(t){for(var n=[],e=t,r=0,o=t.length;r<o;)if(e[r]<128)n.push(String.fromCharCode(e[r])),++r;else{if(e[r]<192);else if(e[r]<224){if(m(e,r,1)){var i=(31&e[r])<<6|63&e[r+1];if(i>=128){n.push(String.fromCharCode(65535&i)),r+=2;continue}}}else if(e[r]<240){if(m(e,r,2)){var u=(15&e[r])<<12|(63&e[r+1])<<6|63&e[r+2];if(u>=2048&&55296!=(63488&u)){n.push(String.fromCharCode(65535&u)),r+=3;continue}}}else if(e[r]<248&&m(e,r,3)){var c=(7&e[r])<<18|(63&e[r+1])<<12|(63&e[r+2])<<6|63&e[r+3];if(c>65536&&c<1114112){c-=65536,n.push(String.fromCharCode(c>>>10|55296)),n.push(String.fromCharCode(1023&c|56320)),r+=4;continue}}n.push(String.fromCharCode(65533)),++r}return n.join("")},t.debounce=function(t,n,e){var r=void 0,o=void 0,i=void 0,u=void 0,c=void 0,a=function a(){var f=new Date-u;f<n&&f>=0?r=setTimeout(a,n-f):(r=null,e||(c=t.apply(i,o),r||(i=o=null)))};return function(){i=this,o=arguments,u=new Date;var f=e&&!r;return r||(r=setTimeout(a,n)),f&&(c=t.apply(i,o),i=o=null),c}},t.throttle=function(t,n,e,r){var o=void 0,i=void 0,u=void 0,c=null,a=0;e||(e={});var f=function(){a=!1===e.leading?0:new Date-0,c=null,u=t.apply(o,i),c||(o=i=null)};return n=n||0,function(){var s=new Date;a||!1!==e.leading||(a=s);var l=n-(s-a);return o=r||this,i=arguments,l<=0||l>n?(c&&(clearTimeout(c),c=null),a=s,u=t.apply(o,i),c||(o=i=null)):c||!1===e.trailing||(c=setTimeout(f,l)),u}},t.raf=wr,t.caf=_r,t.strRepeat=g,t.formatTime=function(t){var n=Math.floor(t/3600);t=Math.floor(t%3600);var e=g(Math.floor(t/60),2),r=g(t=Math.floor(t%60),2);return n>=1?n+":"+e+":"+r:e+":"+r},t.addTransMethod=function(t){y(t,"trans",function(n){return t.__fns||y(t,"__fns",{}),t.__fns[n]||(t.__fns[n]=function(){if(!i(t[n]))throw TypeError("obj.trans(methodName) parameter must be Function");return t[n].apply(t,arguments)}),t.__fns[n]})},t.appendCSS=function(t){var n=document,e=n.querySelector("style");if(!e){e=n.createElement("style");var r=n.querySelector("head");r&&r.appendChild(e)}return e.appendChild(n.createTextNode(t)),e},t.formatDate=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yyyy-MM-dd hh:mm:ss.i",e=t.getFullYear().toString(),r={M:t.getMonth()+1,d:t.getDate(),h:t.getHours(),m:t.getMinutes(),s:t.getSeconds(),i:t.getMilliseconds()};n=n.replace(/(y+)/gi,function(t,n){return e.substr(4-Math.min(4,n.length))});for(var o in r)!function(t){n=n.replace(new RegExp("("+t+"+)","g"),function(n,e){return(r[t]<10&&e.length>1?"0":"")+r[t]})}(o);return n},t.getLocalStorage=function(t){try{return window.localStorage&&localStorage.getItem(t)}catch(e){try{var n=document.cookie.match(new RegExp("(^| )"+t+"=([^;]*)(;|$)"));return o(n)?unescape(n[2]):""}catch(t){return""}}},t.setLocalStorage=function(t,n){try{window.localStorage&&localStorage.setItem(t,n)}catch(r){var e=new Date;e.setTime(e.getTime()+2592e7);try{document.cookie=t+"="+escape(n)+";expires="+e.toGMTString()+";path=/;"}catch(t){}}},Object.defineProperty(t,"__esModule",{value:!0})});
{
"name": "chimee-helper",
"version": "0.1.0",
"version": "0.1.1",
"description": "utils of chimee",

@@ -10,6 +10,6 @@ "main": "lib/index.js",

"scripts": {
"test": "jest --coverage && flow",
"test": "jest --coverage",
"start": "jest --coverage --watch",
"flow": "flow",
"lint": "flow && eslint ./src --fix",
"lint": "eslint ./src --fix",
"precommit": "npm run lint",

@@ -40,2 +40,3 @@ "prepush": "npm run test",

"babel-runtime": "^6.23.0",
"chimee-helper-utils": "^0.1.0",
"toxic-predicate-functions": "^0.1.2",

@@ -42,0 +43,0 @@ "toxic-utils": "^0.1.3"

// @flow
export * from 'toxic-utils';
export * from 'toxic-predicate-functions';
export * from './utils';
export * from 'chimee-helper-utils';

Sorry, the diff of this file is too big to display

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