test-mixer 4.1.6 → 4.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/test-mixer.esm.js +2 -2
- package/dist/test-mixer.umd.js +4 -4
- package/package.json +2 -2
package/dist/test-mixer.esm.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @name test-mixer
|
|
3
3
|
* @fileoverview Test helper to generate function opts object variations
|
|
4
|
-
* @version 4.1.
|
|
4
|
+
* @version 4.1.8
|
|
5
5
|
* @author Roy Revelt, Codsen Ltd
|
|
6
6
|
* @license MIT
|
|
7
7
|
* {@link https://codsen.com/os/test-mixer/}
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
import{combinations as u}from"object-boolean-combinations";import l from"lodash.clonedeep";var i="4.1.
|
|
10
|
+
import{combinations as u}from"object-boolean-combinations";import l from"lodash.clonedeep";var i="4.1.8";var h=i;function f(o={},t={}){if(o&&typeof o!="object")throw new Error("test-mixer: [THROW_ID_01] the first input arg is missing!");if(t&&typeof t!="object")throw new Error("test-mixer: [THROW_ID_02] the second input arg is missing!");let s;if(typeof o=="object"&&typeof t=="object"&&Object.keys(o).filter(e=>typeof o[e]=="boolean").some(e=>Object.keys(t).includes(e)?!1:(s=e,!0)))throw new Error(`test-mixer: [THROW_ID_03] the second input arg object should be defaults; it should be a superset of 1st input arg object. However, 1st input arg object contains key "${s}" which 2nd input arg object doesn't have.`);if(!Object.keys(t).length)return[];let p=l(o),n=l(t),r={};return Object.keys(t).forEach(e=>{typeof n[e]=="boolean"&&!Object.keys(o).includes(e)&&(r[e]=n[e])}),u(r).map(e=>({...t,...p,...e}))}export{f as mixer,h as version};
|
package/dist/test-mixer.umd.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @name test-mixer
|
|
3
3
|
* @fileoverview Test helper to generate function opts object variations
|
|
4
|
-
* @version 4.1.
|
|
4
|
+
* @version 4.1.8
|
|
5
5
|
* @author Roy Revelt, Codsen Ltd
|
|
6
6
|
* @license MIT
|
|
7
7
|
* {@link https://codsen.com/os/test-mixer/}
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
"use strict";var testMixer=(()=>{var Se=Object.create;var E=Object.defineProperty;var Te=Object.getOwnPropertyDescriptor;var Ee=Object.getOwnPropertyNames,bt=Object.getOwnPropertySymbols,De=Object.getPrototypeOf,yt=Object.prototype.hasOwnProperty,Ie=Object.prototype.propertyIsEnumerable;var _t=(t,e,n)=>e in t?E(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,R=(t,e)=>{for(var n in e||(e={}))yt.call(e,n)&&_t(t,n,e[n]);if(bt)for(var n of bt(e))Ie.call(e,n)&&_t(t,n,e[n]);return t};var Q=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),$e=(t,e)=>{for(var n in e)E(t,n,{get:e[n],enumerable:!0})},mt=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Ee(e))!yt.call(t,i)&&i!==n&&E(t,i,{get:()=>e[i],enumerable:!(r=Te(e,i))||r.enumerable});return t};var B=(t,e,n)=>(n=t!=null?Se(De(t)):{},mt(e||!t||!t.__esModule?E(n,"default",{value:t,enumerable:!0}):n,t)),Pe=t=>mt(E({},"__esModule",{value:!0}),t);var It=Q((Ci,Dt)=>{var Z="__lodash_hash_undefined__",Me=9007199254740991,Re="[object Function]",Be="[object GeneratorFunction]",Ne=/[\\^$.*+?()[\]{}|]/g,Le=/^\[object .+?Constructor\]$/,Fe=typeof global=="object"&&global&&global.Object===Object&&global,He=typeof self=="object"&&self&&self.Object===Object&&self,jt=Fe||He||Function("return this")();function Ge(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function Ue(t,e){var n=t?t.length:0;return!!n&&Ve(t,e,0)>-1}function We(t,e,n){for(var r=-1,i=t?t.length:0;++r<i;)if(n(e,t[r]))return!0;return!1}function Ot(t,e){for(var n=-1,r=t?t.length:0,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}function ke(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1}function Ve(t,e,n){if(e!==e)return ke(t,Ke,n);for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}function Ke(t){return t!==t}function Je(t){return function(e){return t(e)}}function wt(t,e){return t.has(e)}function Qe(t,e){return t==null?void 0:t[e]}function qe(t){var e=!1;if(t!=null&&typeof t.toString!="function")try{e=!!(t+"")}catch(n){}return e}var Ze=Array.prototype,Xe=Function.prototype,Ct=Object.prototype,q=jt["__core-js_shared__"],vt=function(){var t=/[^.]+$/.exec(q&&q.keys&&q.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),At=Xe.toString,X=Ct.hasOwnProperty,Ye=Ct.toString,ze=RegExp("^"+At.call(X).replace(Ne,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),tn=Ze.splice,xt=Math.max,en=Math.min,nn=St(jt,"Map"),D=St(Object,"create");function m(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function rn(){this.__data__=D?D(null):{}}function on(t){return this.has(t)&&delete this.__data__[t]}function an(t){var e=this.__data__;if(D){var n=e[t];return n===Z?void 0:n}return X.call(e,t)?e[t]:void 0}function sn(t){var e=this.__data__;return D?e[t]!==void 0:X.call(e,t)}function un(t,e){var n=this.__data__;return n[t]=D&&e===void 0?Z:e,this}m.prototype.clear=rn;m.prototype.delete=on;m.prototype.get=an;m.prototype.has=sn;m.prototype.set=un;function j(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function cn(){this.__data__=[]}function ln(t){var e=this.__data__,n=L(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():tn.call(e,n,1),!0}function fn(t){var e=this.__data__,n=L(e,t);return n<0?void 0:e[n][1]}function hn(t){return L(this.__data__,t)>-1}function pn(t,e){var n=this.__data__,r=L(n,t);return r<0?n.push([t,e]):n[r][1]=e,this}j.prototype.clear=cn;j.prototype.delete=ln;j.prototype.get=fn;j.prototype.has=hn;j.prototype.set=pn;function O(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function dn(){this.__data__={hash:new m,map:new(nn||j),string:new m}}function gn(t){return F(this,t).delete(t)}function bn(t){return F(this,t).get(t)}function _n(t){return F(this,t).has(t)}function yn(t,e){return F(this,t).set(t,e),this}O.prototype.clear=dn;O.prototype.delete=gn;O.prototype.get=bn;O.prototype.has=_n;O.prototype.set=yn;function N(t){var e=-1,n=t?t.length:0;for(this.__data__=new O;++e<n;)this.add(t[e])}function mn(t){return this.__data__.set(t,Z),this}function wn(t){return this.__data__.has(t)}N.prototype.add=N.prototype.push=mn;N.prototype.has=wn;function L(t,e){for(var n=t.length;n--;)if(En(t[n][0],e))return n;return-1}function vn(t,e,n){for(var r=n?We:Ue,i=t[0].length,o=t.length,s=o,a=Array(o),h=1/0,l=[];s--;){var c=t[s];s&&e&&(c=Ot(c,Je(e))),h=en(c.length,h),a[s]=!n&&(e||i>=120&&c.length>=120)?new N(s&&c):void 0}c=t[0];var d=-1,g=a[0];t:for(;++d<i&&l.length<h;){var f=c[d],p=e?e(f):f;if(f=n||f!==0?f:0,!(g?wt(g,p):r(l,p,n))){for(s=o;--s;){var gt=a[s];if(!(gt?wt(gt,p):r(t[s],p,n)))continue t}g&&g.push(p),l.push(f)}}return l}function xn(t){if(!Et(t)||An(t))return!1;var e=Tt(t)||qe(t)?ze:Le;return e.test(Sn(t))}function jn(t,e){return e=xt(e===void 0?t.length-1:e,0),function(){for(var n=arguments,r=-1,i=xt(n.length-e,0),o=Array(i);++r<i;)o[r]=n[e+r];r=-1;for(var s=Array(e+1);++r<e;)s[r]=n[r];return s[e]=o,Ge(t,this,s)}}function On(t){return In(t)?t:[]}function F(t,e){var n=t.__data__;return Cn(e)?n[typeof e=="string"?"string":"hash"]:n.map}function St(t,e){var n=Qe(t,e);return xn(n)?n:void 0}function Cn(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function An(t){return!!vt&&vt in t}function Sn(t){if(t!=null){try{return At.call(t)}catch(e){}try{return t+""}catch(e){}}return""}var Tn=jn(function(t){var e=Ot(t,On);return e.length&&e[0]===t[0]?vn(e):[]});function En(t,e){return t===e||t!==t&&e!==e}function Dn(t){return t!=null&&$n(t.length)&&!Tt(t)}function In(t){return Pn(t)&&Dn(t)}function Tt(t){var e=Et(t)?Ye.call(t):"";return e==Re||e==Be}function $n(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Me}function Et(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function Pn(t){return!!t&&typeof t=="object"}Dt.exports=Tn});var Rt=Q((Ai,Mt)=>{function Mn(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function Rn(t,e){for(var n=-1,r=t?t.length:0,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}function Bn(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1}function Nn(t,e,n){if(e!==e)return Bn(t,Fn,n);for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}function Ln(t,e,n,r){for(var i=n-1,o=t.length;++i<o;)if(r(t[i],e))return i;return-1}function Fn(t){return t!==t}function Hn(t){return function(e){return t(e)}}var Gn=Array.prototype,$t=Gn.splice,Pt=Math.max;function Un(t,e,n,r){var i=r?Ln:Nn,o=-1,s=e.length,a=t;for(t===e&&(e=kn(e)),n&&(a=Rn(t,Hn(n)));++o<s;)for(var h=0,l=e[o],c=n?n(l):l;(h=i(a,c,h,r))>-1;)a!==t&&$t.call(a,h,1),$t.call(t,h,1);return t}function Wn(t,e){return e=Pt(e===void 0?t.length-1:e,0),function(){for(var n=arguments,r=-1,i=Pt(n.length-e,0),o=Array(i);++r<i;)o[r]=n[e+r];r=-1;for(var s=Array(e+1);++r<e;)s[r]=n[r];return s[e]=o,Mn(t,this,s)}}function kn(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}var Vn=Wn(Kn);function Kn(t,e){return t&&t.length&&e&&e.length?Un(t,e):t}Mt.exports=Vn});var ht=Q(($,C)=>{var Jn=200,Jt="__lodash_hash_undefined__",Qt=9007199254740991,ot="[object Arguments]",Qn="[object Array]",qt="[object Boolean]",Zt="[object Date]",qn="[object Error]",at="[object Function]",Xt="[object GeneratorFunction]",H="[object Map]",Yt="[object Number]",st="[object Object]",Bt="[object Promise]",zt="[object RegExp]",G="[object Set]",te="[object String]",ee="[object Symbol]",z="[object WeakMap]",ne="[object ArrayBuffer]",U="[object DataView]",re="[object Float32Array]",ie="[object Float64Array]",oe="[object Int8Array]",ae="[object Int16Array]",se="[object Int32Array]",ue="[object Uint8Array]",ce="[object Uint8ClampedArray]",le="[object Uint16Array]",fe="[object Uint32Array]",Zn=/[\\^$.*+?()[\]{}|]/g,Xn=/\w*$/,Yn=/^\[object .+?Constructor\]$/,zn=/^(?:0|[1-9]\d*)$/,u={};u[ot]=u[Qn]=u[ne]=u[U]=u[qt]=u[Zt]=u[re]=u[ie]=u[oe]=u[ae]=u[se]=u[H]=u[Yt]=u[st]=u[zt]=u[G]=u[te]=u[ee]=u[ue]=u[ce]=u[le]=u[fe]=!0;u[qn]=u[at]=u[z]=!1;var tr=typeof global=="object"&&global&&global.Object===Object&&global,er=typeof self=="object"&&self&&self.Object===Object&&self,b=tr||er||Function("return this")(),he=typeof $=="object"&&$&&!$.nodeType&&$,Nt=he&&typeof C=="object"&&C&&!C.nodeType&&C,nr=Nt&&Nt.exports===he;function rr(t,e){return t.set(e[0],e[1]),t}function ir(t,e){return t.add(e),t}function or(t,e){for(var n=-1,r=t?t.length:0;++n<r&&e(t[n],n,t)!==!1;);return t}function ar(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}function pe(t,e,n,r){var i=-1,o=t?t.length:0;for(r&&o&&(n=t[++i]);++i<o;)n=e(n,t[i],i,t);return n}function sr(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function ur(t,e){return t==null?void 0:t[e]}function de(t){var e=!1;if(t!=null&&typeof t.toString!="function")try{e=!!(t+"")}catch(n){}return e}function Lt(t){var e=-1,n=Array(t.size);return t.forEach(function(r,i){n[++e]=[i,r]}),n}function ut(t,e){return function(n){return t(e(n))}}function Ft(t){var e=-1,n=Array(t.size);return t.forEach(function(r){n[++e]=r}),n}var cr=Array.prototype,lr=Function.prototype,W=Object.prototype,Y=b["__core-js_shared__"],Ht=function(){var t=/[^.]+$/.exec(Y&&Y.keys&&Y.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),ge=lr.toString,y=W.hasOwnProperty,k=W.toString,fr=RegExp("^"+ge.call(y).replace(Zn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Gt=nr?b.Buffer:void 0,Ut=b.Symbol,Wt=b.Uint8Array,hr=ut(Object.getPrototypeOf,Object),pr=Object.create,dr=W.propertyIsEnumerable,gr=cr.splice,kt=Object.getOwnPropertySymbols,br=Gt?Gt.isBuffer:void 0,_r=ut(Object.keys,Object),tt=T(b,"DataView"),P=T(b,"Map"),et=T(b,"Promise"),nt=T(b,"Set"),rt=T(b,"WeakMap"),M=T(Object,"create"),yr=x(tt),mr=x(P),wr=x(et),vr=x(nt),xr=x(rt),Vt=Ut?Ut.prototype:void 0,Kt=Vt?Vt.valueOf:void 0;function v(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function jr(){this.__data__=M?M(null):{}}function Or(t){return this.has(t)&&delete this.__data__[t]}function Cr(t){var e=this.__data__;if(M){var n=e[t];return n===Jt?void 0:n}return y.call(e,t)?e[t]:void 0}function Ar(t){var e=this.__data__;return M?e[t]!==void 0:y.call(e,t)}function Sr(t,e){var n=this.__data__;return n[t]=M&&e===void 0?Jt:e,this}v.prototype.clear=jr;v.prototype.delete=Or;v.prototype.get=Cr;v.prototype.has=Ar;v.prototype.set=Sr;function _(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Tr(){this.__data__=[]}function Er(t){var e=this.__data__,n=V(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():gr.call(e,n,1),!0}function Dr(t){var e=this.__data__,n=V(e,t);return n<0?void 0:e[n][1]}function Ir(t){return V(this.__data__,t)>-1}function $r(t,e){var n=this.__data__,r=V(n,t);return r<0?n.push([t,e]):n[r][1]=e,this}_.prototype.clear=Tr;_.prototype.delete=Er;_.prototype.get=Dr;_.prototype.has=Ir;_.prototype.set=$r;function A(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Pr(){this.__data__={hash:new v,map:new(P||_),string:new v}}function Mr(t){return K(this,t).delete(t)}function Rr(t){return K(this,t).get(t)}function Br(t){return K(this,t).has(t)}function Nr(t,e){return K(this,t).set(t,e),this}A.prototype.clear=Pr;A.prototype.delete=Mr;A.prototype.get=Rr;A.prototype.has=Br;A.prototype.set=Nr;function S(t){this.__data__=new _(t)}function Lr(){this.__data__=new _}function Fr(t){return this.__data__.delete(t)}function Hr(t){return this.__data__.get(t)}function Gr(t){return this.__data__.has(t)}function Ur(t,e){var n=this.__data__;if(n instanceof _){var r=n.__data__;if(!P||r.length<Jn-1)return r.push([t,e]),this;n=this.__data__=new A(r)}return n.set(t,e),this}S.prototype.clear=Lr;S.prototype.delete=Fr;S.prototype.get=Hr;S.prototype.has=Gr;S.prototype.set=Ur;function Wr(t,e){var n=lt(t)||pi(t)?sr(t.length,String):[],r=n.length,i=!!r;for(var o in t)(e||y.call(t,o))&&!(i&&(o=="length"||ci(o,r)))&&n.push(o);return n}function be(t,e,n){var r=t[e];(!(y.call(t,e)&&we(r,n))||n===void 0&&!(e in t))&&(t[e]=n)}function V(t,e){for(var n=t.length;n--;)if(we(t[n][0],e))return n;return-1}function kr(t,e){return t&&_e(e,ft(e),t)}function it(t,e,n,r,i,o,s){var a;if(r&&(a=o?r(t,i,o,s):r(t)),a!==void 0)return a;if(!J(t))return t;var h=lt(t);if(h){if(a=ai(t),!e)return ri(t,a)}else{var l=w(t),c=l==at||l==Xt;if(gi(t))return Zr(t,e);if(l==st||l==ot||c&&!o){if(de(t))return o?t:{};if(a=si(c?{}:t),!e)return ii(t,kr(a,t))}else{if(!u[l])return o?t:{};a=ui(t,l,it,e)}}s||(s=new S);var d=s.get(t);if(d)return d;if(s.set(t,a),!h)var g=n?oi(t):ft(t);return or(g||t,function(f,p){g&&(p=f,f=t[p]),be(a,p,it(f,e,n,r,p,t,s))}),a}function Vr(t){return J(t)?pr(t):{}}function Kr(t,e,n){var r=e(t);return lt(t)?r:ar(r,n(t))}function Jr(t){return k.call(t)}function Qr(t){if(!J(t)||fi(t))return!1;var e=xe(t)||de(t)?fr:Yn;return e.test(x(t))}function qr(t){if(!me(t))return _r(t);var e=[];for(var n in Object(t))y.call(t,n)&&n!="constructor"&&e.push(n);return e}function Zr(t,e){if(e)return t.slice();var n=new t.constructor(t.length);return t.copy(n),n}function ct(t){var e=new t.constructor(t.byteLength);return new Wt(e).set(new Wt(t)),e}function Xr(t,e){var n=e?ct(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}function Yr(t,e,n){var r=e?n(Lt(t),!0):Lt(t);return pe(r,rr,new t.constructor)}function zr(t){var e=new t.constructor(t.source,Xn.exec(t));return e.lastIndex=t.lastIndex,e}function ti(t,e,n){var r=e?n(Ft(t),!0):Ft(t);return pe(r,ir,new t.constructor)}function ei(t){return Kt?Object(Kt.call(t)):{}}function ni(t,e){var n=e?ct(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function ri(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}function _e(t,e,n,r){n||(n={});for(var i=-1,o=e.length;++i<o;){var s=e[i],a=r?r(n[s],t[s],s,n,t):void 0;be(n,s,a===void 0?t[s]:a)}return n}function ii(t,e){return _e(t,ye(t),e)}function oi(t){return Kr(t,ft,ye)}function K(t,e){var n=t.__data__;return li(e)?n[typeof e=="string"?"string":"hash"]:n.map}function T(t,e){var n=ur(t,e);return Qr(n)?n:void 0}var ye=kt?ut(kt,Object):yi,w=Jr;(tt&&w(new tt(new ArrayBuffer(1)))!=U||P&&w(new P)!=H||et&&w(et.resolve())!=Bt||nt&&w(new nt)!=G||rt&&w(new rt)!=z)&&(w=function(t){var e=k.call(t),n=e==st?t.constructor:void 0,r=n?x(n):void 0;if(r)switch(r){case yr:return U;case mr:return H;case wr:return Bt;case vr:return G;case xr:return z}return e});function ai(t){var e=t.length,n=t.constructor(e);return e&&typeof t[0]=="string"&&y.call(t,"index")&&(n.index=t.index,n.input=t.input),n}function si(t){return typeof t.constructor=="function"&&!me(t)?Vr(hr(t)):{}}function ui(t,e,n,r){var i=t.constructor;switch(e){case ne:return ct(t);case qt:case Zt:return new i(+t);case U:return Xr(t,r);case re:case ie:case oe:case ae:case se:case ue:case ce:case le:case fe:return ni(t,r);case H:return Yr(t,r,n);case Yt:case te:return new i(t);case zt:return zr(t);case G:return ti(t,r,n);case ee:return ei(t)}}function ci(t,e){return e=e==null?Qt:e,!!e&&(typeof t=="number"||zn.test(t))&&t>-1&&t%1==0&&t<e}function li(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function fi(t){return!!Ht&&Ht in t}function me(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||W;return t===n}function x(t){if(t!=null){try{return ge.call(t)}catch(e){}try{return t+""}catch(e){}}return""}function hi(t){return it(t,!0,!0)}function we(t,e){return t===e||t!==t&&e!==e}function pi(t){return di(t)&&y.call(t,"callee")&&(!dr.call(t,"callee")||k.call(t)==ot)}var lt=Array.isArray;function ve(t){return t!=null&&bi(t.length)&&!xe(t)}function di(t){return _i(t)&&ve(t)}var gi=br||mi;function xe(t){var e=J(t)?k.call(t):"";return e==at||e==Xt}function bi(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Qt}function J(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function _i(t){return!!t&&typeof t=="object"}function ft(t){return ve(t)?Wr(t):qr(t)}function yi(){return[]}function mi(){return!1}C.exports=hi});var ji={};$e(ji,{mixer:()=>xi,version:()=>vi});var je=B(It(),1),Oe=B(Rt(),1);function I(t){if(t==null||typeof t!="object")return!1;let e=Object.getPrototypeOf(t);return e!==null&&e!==Object.prototype&&Object.getPrototypeOf(e)!==null?!1:!(Symbol.iterator in t)&&!(Symbol.toStringTag in t)}var pt=B(ht(),1);function Ce(t,e={}){function n(c){let d=[];for(let g=0;g<1<<c;g++){let f=[];for(let p=0;p<c;p++)f.push(g&1<<p?1:0);d.push(f)}return d}if(!t)throw new Error("[THROW_ID_01] missing input object");if(!I(t))throw new Error("[THROW_ID_02] the first input object must be a true object");if(e&&!I(e))throw new Error("[THROW_ID_03] the second override object must be a true object");let r=(0,pt.default)(t),i=(0,pt.default)(e),o=Object.keys(r),s=[],a=[];I(i)&&Object.keys(i).length&&(a=(0,je.default)(Object.keys(i),Object.keys(r)),a.forEach(c=>(0,Oe.default)(o,c)));let h=n(Object.keys(o).length),l;return h.forEach((c,d)=>{l={},o.forEach((g,f)=>{l[g]=h[d][f]===1}),s.push(l)}),I(i)&&Object.keys(i).length&&s.forEach(c=>{a.forEach(d=>{c[d]=i[d]})}),s}var dt=B(ht(),1);var Ae="4.1.6";var vi=Ae;function xi(t={},e={}){if(t&&typeof t!="object")throw new Error("test-mixer: [THROW_ID_01] the first input arg is missing!");if(e&&typeof e!="object")throw new Error("test-mixer: [THROW_ID_02] the second input arg is missing!");let n;if(typeof t=="object"&&typeof e=="object"&&Object.keys(t).filter(a=>typeof t[a]=="boolean").some(a=>Object.keys(e).includes(a)?!1:(n=a,!0)))throw new Error(`test-mixer: [THROW_ID_03] the second input arg object should be defaults; it should be a superset of 1st input arg object. However, 1st input arg object contains key "${n}" which 2nd input arg object doesn't have.`);if(!Object.keys(e).length)return[];let r=(0,dt.default)(t),i=(0,dt.default)(e),o={};return Object.keys(e).forEach(a=>{typeof i[a]=="boolean"&&!Object.keys(t).includes(a)&&(o[a]=i[a])}),Ce(o).map(a=>R(R(R({},e),r),a))}return Pe(ji);})();
|
|
10
|
+
"use strict";var testMixer=(()=>{var Se=Object.create;var E=Object.defineProperty;var Te=Object.getOwnPropertyDescriptor;var Ee=Object.getOwnPropertyNames,bt=Object.getOwnPropertySymbols,De=Object.getPrototypeOf,yt=Object.prototype.hasOwnProperty,Ie=Object.prototype.propertyIsEnumerable;var _t=(t,e,n)=>e in t?E(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,R=(t,e)=>{for(var n in e||(e={}))yt.call(e,n)&&_t(t,n,e[n]);if(bt)for(var n of bt(e))Ie.call(e,n)&&_t(t,n,e[n]);return t};var Q=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),$e=(t,e)=>{for(var n in e)E(t,n,{get:e[n],enumerable:!0})},mt=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Ee(e))!yt.call(t,i)&&i!==n&&E(t,i,{get:()=>e[i],enumerable:!(r=Te(e,i))||r.enumerable});return t};var B=(t,e,n)=>(n=t!=null?Se(De(t)):{},mt(e||!t||!t.__esModule?E(n,"default",{value:t,enumerable:!0}):n,t)),Pe=t=>mt(E({},"__esModule",{value:!0}),t);var It=Q((Ci,Dt)=>{var Z="__lodash_hash_undefined__",Me=9007199254740991,Re="[object Function]",Be="[object GeneratorFunction]",Ne=/[\\^$.*+?()[\]{}|]/g,Le=/^\[object .+?Constructor\]$/,Fe=typeof global=="object"&&global&&global.Object===Object&&global,He=typeof self=="object"&&self&&self.Object===Object&&self,jt=Fe||He||Function("return this")();function Ge(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function Ue(t,e){var n=t?t.length:0;return!!n&&Ve(t,e,0)>-1}function We(t,e,n){for(var r=-1,i=t?t.length:0;++r<i;)if(n(e,t[r]))return!0;return!1}function Ot(t,e){for(var n=-1,r=t?t.length:0,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}function ke(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1}function Ve(t,e,n){if(e!==e)return ke(t,Ke,n);for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}function Ke(t){return t!==t}function Je(t){return function(e){return t(e)}}function wt(t,e){return t.has(e)}function Qe(t,e){return t==null?void 0:t[e]}function qe(t){var e=!1;if(t!=null&&typeof t.toString!="function")try{e=!!(t+"")}catch(n){}return e}var Ze=Array.prototype,Xe=Function.prototype,Ct=Object.prototype,q=jt["__core-js_shared__"],vt=function(){var t=/[^.]+$/.exec(q&&q.keys&&q.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),At=Xe.toString,X=Ct.hasOwnProperty,Ye=Ct.toString,ze=RegExp("^"+At.call(X).replace(Ne,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),tn=Ze.splice,xt=Math.max,en=Math.min,nn=St(jt,"Map"),D=St(Object,"create");function m(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function rn(){this.__data__=D?D(null):{}}function on(t){return this.has(t)&&delete this.__data__[t]}function an(t){var e=this.__data__;if(D){var n=e[t];return n===Z?void 0:n}return X.call(e,t)?e[t]:void 0}function sn(t){var e=this.__data__;return D?e[t]!==void 0:X.call(e,t)}function un(t,e){var n=this.__data__;return n[t]=D&&e===void 0?Z:e,this}m.prototype.clear=rn;m.prototype.delete=on;m.prototype.get=an;m.prototype.has=sn;m.prototype.set=un;function j(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function cn(){this.__data__=[]}function ln(t){var e=this.__data__,n=L(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():tn.call(e,n,1),!0}function fn(t){var e=this.__data__,n=L(e,t);return n<0?void 0:e[n][1]}function hn(t){return L(this.__data__,t)>-1}function pn(t,e){var n=this.__data__,r=L(n,t);return r<0?n.push([t,e]):n[r][1]=e,this}j.prototype.clear=cn;j.prototype.delete=ln;j.prototype.get=fn;j.prototype.has=hn;j.prototype.set=pn;function O(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function dn(){this.__data__={hash:new m,map:new(nn||j),string:new m}}function gn(t){return F(this,t).delete(t)}function bn(t){return F(this,t).get(t)}function _n(t){return F(this,t).has(t)}function yn(t,e){return F(this,t).set(t,e),this}O.prototype.clear=dn;O.prototype.delete=gn;O.prototype.get=bn;O.prototype.has=_n;O.prototype.set=yn;function N(t){var e=-1,n=t?t.length:0;for(this.__data__=new O;++e<n;)this.add(t[e])}function mn(t){return this.__data__.set(t,Z),this}function wn(t){return this.__data__.has(t)}N.prototype.add=N.prototype.push=mn;N.prototype.has=wn;function L(t,e){for(var n=t.length;n--;)if(En(t[n][0],e))return n;return-1}function vn(t,e,n){for(var r=n?We:Ue,i=t[0].length,o=t.length,s=o,a=Array(o),h=1/0,l=[];s--;){var c=t[s];s&&e&&(c=Ot(c,Je(e))),h=en(c.length,h),a[s]=!n&&(e||i>=120&&c.length>=120)?new N(s&&c):void 0}c=t[0];var d=-1,g=a[0];t:for(;++d<i&&l.length<h;){var f=c[d],p=e?e(f):f;if(f=n||f!==0?f:0,!(g?wt(g,p):r(l,p,n))){for(s=o;--s;){var gt=a[s];if(!(gt?wt(gt,p):r(t[s],p,n)))continue t}g&&g.push(p),l.push(f)}}return l}function xn(t){if(!Et(t)||An(t))return!1;var e=Tt(t)||qe(t)?ze:Le;return e.test(Sn(t))}function jn(t,e){return e=xt(e===void 0?t.length-1:e,0),function(){for(var n=arguments,r=-1,i=xt(n.length-e,0),o=Array(i);++r<i;)o[r]=n[e+r];r=-1;for(var s=Array(e+1);++r<e;)s[r]=n[r];return s[e]=o,Ge(t,this,s)}}function On(t){return In(t)?t:[]}function F(t,e){var n=t.__data__;return Cn(e)?n[typeof e=="string"?"string":"hash"]:n.map}function St(t,e){var n=Qe(t,e);return xn(n)?n:void 0}function Cn(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function An(t){return!!vt&&vt in t}function Sn(t){if(t!=null){try{return At.call(t)}catch(e){}try{return t+""}catch(e){}}return""}var Tn=jn(function(t){var e=Ot(t,On);return e.length&&e[0]===t[0]?vn(e):[]});function En(t,e){return t===e||t!==t&&e!==e}function Dn(t){return t!=null&&$n(t.length)&&!Tt(t)}function In(t){return Pn(t)&&Dn(t)}function Tt(t){var e=Et(t)?Ye.call(t):"";return e==Re||e==Be}function $n(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Me}function Et(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function Pn(t){return!!t&&typeof t=="object"}Dt.exports=Tn});var Rt=Q((Ai,Mt)=>{function Mn(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function Rn(t,e){for(var n=-1,r=t?t.length:0,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}function Bn(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1}function Nn(t,e,n){if(e!==e)return Bn(t,Fn,n);for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}function Ln(t,e,n,r){for(var i=n-1,o=t.length;++i<o;)if(r(t[i],e))return i;return-1}function Fn(t){return t!==t}function Hn(t){return function(e){return t(e)}}var Gn=Array.prototype,$t=Gn.splice,Pt=Math.max;function Un(t,e,n,r){var i=r?Ln:Nn,o=-1,s=e.length,a=t;for(t===e&&(e=kn(e)),n&&(a=Rn(t,Hn(n)));++o<s;)for(var h=0,l=e[o],c=n?n(l):l;(h=i(a,c,h,r))>-1;)a!==t&&$t.call(a,h,1),$t.call(t,h,1);return t}function Wn(t,e){return e=Pt(e===void 0?t.length-1:e,0),function(){for(var n=arguments,r=-1,i=Pt(n.length-e,0),o=Array(i);++r<i;)o[r]=n[e+r];r=-1;for(var s=Array(e+1);++r<e;)s[r]=n[r];return s[e]=o,Mn(t,this,s)}}function kn(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}var Vn=Wn(Kn);function Kn(t,e){return t&&t.length&&e&&e.length?Un(t,e):t}Mt.exports=Vn});var ht=Q(($,C)=>{var Jn=200,Jt="__lodash_hash_undefined__",Qt=9007199254740991,ot="[object Arguments]",Qn="[object Array]",qt="[object Boolean]",Zt="[object Date]",qn="[object Error]",at="[object Function]",Xt="[object GeneratorFunction]",H="[object Map]",Yt="[object Number]",st="[object Object]",Bt="[object Promise]",zt="[object RegExp]",G="[object Set]",te="[object String]",ee="[object Symbol]",z="[object WeakMap]",ne="[object ArrayBuffer]",U="[object DataView]",re="[object Float32Array]",ie="[object Float64Array]",oe="[object Int8Array]",ae="[object Int16Array]",se="[object Int32Array]",ue="[object Uint8Array]",ce="[object Uint8ClampedArray]",le="[object Uint16Array]",fe="[object Uint32Array]",Zn=/[\\^$.*+?()[\]{}|]/g,Xn=/\w*$/,Yn=/^\[object .+?Constructor\]$/,zn=/^(?:0|[1-9]\d*)$/,u={};u[ot]=u[Qn]=u[ne]=u[U]=u[qt]=u[Zt]=u[re]=u[ie]=u[oe]=u[ae]=u[se]=u[H]=u[Yt]=u[st]=u[zt]=u[G]=u[te]=u[ee]=u[ue]=u[ce]=u[le]=u[fe]=!0;u[qn]=u[at]=u[z]=!1;var tr=typeof global=="object"&&global&&global.Object===Object&&global,er=typeof self=="object"&&self&&self.Object===Object&&self,b=tr||er||Function("return this")(),he=typeof $=="object"&&$&&!$.nodeType&&$,Nt=he&&typeof C=="object"&&C&&!C.nodeType&&C,nr=Nt&&Nt.exports===he;function rr(t,e){return t.set(e[0],e[1]),t}function ir(t,e){return t.add(e),t}function or(t,e){for(var n=-1,r=t?t.length:0;++n<r&&e(t[n],n,t)!==!1;);return t}function ar(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}function pe(t,e,n,r){var i=-1,o=t?t.length:0;for(r&&o&&(n=t[++i]);++i<o;)n=e(n,t[i],i,t);return n}function sr(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function ur(t,e){return t==null?void 0:t[e]}function de(t){var e=!1;if(t!=null&&typeof t.toString!="function")try{e=!!(t+"")}catch(n){}return e}function Lt(t){var e=-1,n=Array(t.size);return t.forEach(function(r,i){n[++e]=[i,r]}),n}function ut(t,e){return function(n){return t(e(n))}}function Ft(t){var e=-1,n=Array(t.size);return t.forEach(function(r){n[++e]=r}),n}var cr=Array.prototype,lr=Function.prototype,W=Object.prototype,Y=b["__core-js_shared__"],Ht=function(){var t=/[^.]+$/.exec(Y&&Y.keys&&Y.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),ge=lr.toString,y=W.hasOwnProperty,k=W.toString,fr=RegExp("^"+ge.call(y).replace(Zn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Gt=nr?b.Buffer:void 0,Ut=b.Symbol,Wt=b.Uint8Array,hr=ut(Object.getPrototypeOf,Object),pr=Object.create,dr=W.propertyIsEnumerable,gr=cr.splice,kt=Object.getOwnPropertySymbols,br=Gt?Gt.isBuffer:void 0,_r=ut(Object.keys,Object),tt=T(b,"DataView"),P=T(b,"Map"),et=T(b,"Promise"),nt=T(b,"Set"),rt=T(b,"WeakMap"),M=T(Object,"create"),yr=x(tt),mr=x(P),wr=x(et),vr=x(nt),xr=x(rt),Vt=Ut?Ut.prototype:void 0,Kt=Vt?Vt.valueOf:void 0;function v(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function jr(){this.__data__=M?M(null):{}}function Or(t){return this.has(t)&&delete this.__data__[t]}function Cr(t){var e=this.__data__;if(M){var n=e[t];return n===Jt?void 0:n}return y.call(e,t)?e[t]:void 0}function Ar(t){var e=this.__data__;return M?e[t]!==void 0:y.call(e,t)}function Sr(t,e){var n=this.__data__;return n[t]=M&&e===void 0?Jt:e,this}v.prototype.clear=jr;v.prototype.delete=Or;v.prototype.get=Cr;v.prototype.has=Ar;v.prototype.set=Sr;function _(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Tr(){this.__data__=[]}function Er(t){var e=this.__data__,n=V(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():gr.call(e,n,1),!0}function Dr(t){var e=this.__data__,n=V(e,t);return n<0?void 0:e[n][1]}function Ir(t){return V(this.__data__,t)>-1}function $r(t,e){var n=this.__data__,r=V(n,t);return r<0?n.push([t,e]):n[r][1]=e,this}_.prototype.clear=Tr;_.prototype.delete=Er;_.prototype.get=Dr;_.prototype.has=Ir;_.prototype.set=$r;function A(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Pr(){this.__data__={hash:new v,map:new(P||_),string:new v}}function Mr(t){return K(this,t).delete(t)}function Rr(t){return K(this,t).get(t)}function Br(t){return K(this,t).has(t)}function Nr(t,e){return K(this,t).set(t,e),this}A.prototype.clear=Pr;A.prototype.delete=Mr;A.prototype.get=Rr;A.prototype.has=Br;A.prototype.set=Nr;function S(t){this.__data__=new _(t)}function Lr(){this.__data__=new _}function Fr(t){return this.__data__.delete(t)}function Hr(t){return this.__data__.get(t)}function Gr(t){return this.__data__.has(t)}function Ur(t,e){var n=this.__data__;if(n instanceof _){var r=n.__data__;if(!P||r.length<Jn-1)return r.push([t,e]),this;n=this.__data__=new A(r)}return n.set(t,e),this}S.prototype.clear=Lr;S.prototype.delete=Fr;S.prototype.get=Hr;S.prototype.has=Gr;S.prototype.set=Ur;function Wr(t,e){var n=lt(t)||pi(t)?sr(t.length,String):[],r=n.length,i=!!r;for(var o in t)(e||y.call(t,o))&&!(i&&(o=="length"||ci(o,r)))&&n.push(o);return n}function be(t,e,n){var r=t[e];(!(y.call(t,e)&&we(r,n))||n===void 0&&!(e in t))&&(t[e]=n)}function V(t,e){for(var n=t.length;n--;)if(we(t[n][0],e))return n;return-1}function kr(t,e){return t&&_e(e,ft(e),t)}function it(t,e,n,r,i,o,s){var a;if(r&&(a=o?r(t,i,o,s):r(t)),a!==void 0)return a;if(!J(t))return t;var h=lt(t);if(h){if(a=ai(t),!e)return ri(t,a)}else{var l=w(t),c=l==at||l==Xt;if(gi(t))return Zr(t,e);if(l==st||l==ot||c&&!o){if(de(t))return o?t:{};if(a=si(c?{}:t),!e)return ii(t,kr(a,t))}else{if(!u[l])return o?t:{};a=ui(t,l,it,e)}}s||(s=new S);var d=s.get(t);if(d)return d;if(s.set(t,a),!h)var g=n?oi(t):ft(t);return or(g||t,function(f,p){g&&(p=f,f=t[p]),be(a,p,it(f,e,n,r,p,t,s))}),a}function Vr(t){return J(t)?pr(t):{}}function Kr(t,e,n){var r=e(t);return lt(t)?r:ar(r,n(t))}function Jr(t){return k.call(t)}function Qr(t){if(!J(t)||fi(t))return!1;var e=xe(t)||de(t)?fr:Yn;return e.test(x(t))}function qr(t){if(!me(t))return _r(t);var e=[];for(var n in Object(t))y.call(t,n)&&n!="constructor"&&e.push(n);return e}function Zr(t,e){if(e)return t.slice();var n=new t.constructor(t.length);return t.copy(n),n}function ct(t){var e=new t.constructor(t.byteLength);return new Wt(e).set(new Wt(t)),e}function Xr(t,e){var n=e?ct(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}function Yr(t,e,n){var r=e?n(Lt(t),!0):Lt(t);return pe(r,rr,new t.constructor)}function zr(t){var e=new t.constructor(t.source,Xn.exec(t));return e.lastIndex=t.lastIndex,e}function ti(t,e,n){var r=e?n(Ft(t),!0):Ft(t);return pe(r,ir,new t.constructor)}function ei(t){return Kt?Object(Kt.call(t)):{}}function ni(t,e){var n=e?ct(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function ri(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}function _e(t,e,n,r){n||(n={});for(var i=-1,o=e.length;++i<o;){var s=e[i],a=r?r(n[s],t[s],s,n,t):void 0;be(n,s,a===void 0?t[s]:a)}return n}function ii(t,e){return _e(t,ye(t),e)}function oi(t){return Kr(t,ft,ye)}function K(t,e){var n=t.__data__;return li(e)?n[typeof e=="string"?"string":"hash"]:n.map}function T(t,e){var n=ur(t,e);return Qr(n)?n:void 0}var ye=kt?ut(kt,Object):yi,w=Jr;(tt&&w(new tt(new ArrayBuffer(1)))!=U||P&&w(new P)!=H||et&&w(et.resolve())!=Bt||nt&&w(new nt)!=G||rt&&w(new rt)!=z)&&(w=function(t){var e=k.call(t),n=e==st?t.constructor:void 0,r=n?x(n):void 0;if(r)switch(r){case yr:return U;case mr:return H;case wr:return Bt;case vr:return G;case xr:return z}return e});function ai(t){var e=t.length,n=t.constructor(e);return e&&typeof t[0]=="string"&&y.call(t,"index")&&(n.index=t.index,n.input=t.input),n}function si(t){return typeof t.constructor=="function"&&!me(t)?Vr(hr(t)):{}}function ui(t,e,n,r){var i=t.constructor;switch(e){case ne:return ct(t);case qt:case Zt:return new i(+t);case U:return Xr(t,r);case re:case ie:case oe:case ae:case se:case ue:case ce:case le:case fe:return ni(t,r);case H:return Yr(t,r,n);case Yt:case te:return new i(t);case zt:return zr(t);case G:return ti(t,r,n);case ee:return ei(t)}}function ci(t,e){return e=e==null?Qt:e,!!e&&(typeof t=="number"||zn.test(t))&&t>-1&&t%1==0&&t<e}function li(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function fi(t){return!!Ht&&Ht in t}function me(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||W;return t===n}function x(t){if(t!=null){try{return ge.call(t)}catch(e){}try{return t+""}catch(e){}}return""}function hi(t){return it(t,!0,!0)}function we(t,e){return t===e||t!==t&&e!==e}function pi(t){return di(t)&&y.call(t,"callee")&&(!dr.call(t,"callee")||k.call(t)==ot)}var lt=Array.isArray;function ve(t){return t!=null&&bi(t.length)&&!xe(t)}function di(t){return _i(t)&&ve(t)}var gi=br||mi;function xe(t){var e=J(t)?k.call(t):"";return e==at||e==Xt}function bi(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Qt}function J(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function _i(t){return!!t&&typeof t=="object"}function ft(t){return ve(t)?Wr(t):qr(t)}function yi(){return[]}function mi(){return!1}C.exports=hi});var ji={};$e(ji,{mixer:()=>xi,version:()=>vi});var je=B(It(),1),Oe=B(Rt(),1);function I(t){if(t==null||typeof t!="object")return!1;let e=Object.getPrototypeOf(t);return e!==null&&e!==Object.prototype&&Object.getPrototypeOf(e)!==null?!1:!(Symbol.iterator in t)&&!(Symbol.toStringTag in t)}var pt=B(ht(),1);function Ce(t,e={}){function n(c){let d=[];for(let g=0;g<1<<c;g++){let f=[];for(let p=0;p<c;p++)f.push(g&1<<p?1:0);d.push(f)}return d}if(!t)throw new Error("[THROW_ID_01] missing input object");if(!I(t))throw new Error("[THROW_ID_02] the first input object must be a true object");if(e&&!I(e))throw new Error("[THROW_ID_03] the second override object must be a true object");let r=(0,pt.default)(t),i=(0,pt.default)(e),o=Object.keys(r),s=[],a=[];I(i)&&Object.keys(i).length&&(a=(0,je.default)(Object.keys(i),Object.keys(r)),a.forEach(c=>(0,Oe.default)(o,c)));let h=n(Object.keys(o).length),l;return h.forEach((c,d)=>{l={},o.forEach((g,f)=>{l[g]=h[d][f]===1}),s.push(l)}),I(i)&&Object.keys(i).length&&s.forEach(c=>{a.forEach(d=>{c[d]=i[d]})}),s}var dt=B(ht(),1);var Ae="4.1.8";var vi=Ae;function xi(t={},e={}){if(t&&typeof t!="object")throw new Error("test-mixer: [THROW_ID_01] the first input arg is missing!");if(e&&typeof e!="object")throw new Error("test-mixer: [THROW_ID_02] the second input arg is missing!");let n;if(typeof t=="object"&&typeof e=="object"&&Object.keys(t).filter(a=>typeof t[a]=="boolean").some(a=>Object.keys(e).includes(a)?!1:(n=a,!0)))throw new Error(`test-mixer: [THROW_ID_03] the second input arg object should be defaults; it should be a superset of 1st input arg object. However, 1st input arg object contains key "${n}" which 2nd input arg object doesn't have.`);if(!Object.keys(e).length)return[];let r=(0,dt.default)(t),i=(0,dt.default)(e),o={};return Object.keys(e).forEach(a=>{typeof i[a]=="boolean"&&!Object.keys(t).includes(a)&&(o[a]=i[a])}),Ce(o).map(a=>R(R(R({},e),r),a))}return Pe(ji);})();
|
|
11
11
|
/**
|
|
12
12
|
* @name codsen-utils
|
|
13
13
|
* @fileoverview Various utility functions
|
|
14
|
-
* @version 1.
|
|
14
|
+
* @version 1.4.0
|
|
15
15
|
* @author Roy Revelt, Codsen Ltd
|
|
16
16
|
* @license MIT
|
|
17
17
|
* {@link https://codsen.com/os/codsen-utils/}
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
/**
|
|
20
20
|
* @name object-boolean-combinations
|
|
21
21
|
* @fileoverview Consumes a defaults object with booleans, generates all possible variations of it
|
|
22
|
-
* @version 6.0.
|
|
22
|
+
* @version 6.0.11
|
|
23
23
|
* @author Roy Revelt, Codsen Ltd
|
|
24
24
|
* @license MIT
|
|
25
25
|
* {@link https://codsen.com/os/object-boolean-combinations/}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "test-mixer",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.8",
|
|
4
4
|
"description": "Test helper to generate function opts object variations",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"combinations",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
},
|
|
70
70
|
"dependencies": {
|
|
71
71
|
"lodash.clonedeep": "^4.5.0",
|
|
72
|
-
"object-boolean-combinations": "^6.0.
|
|
72
|
+
"object-boolean-combinations": "^6.0.11"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
75
|
"@types/lodash.clonedeep": "^4.5.7"
|