test-mixer 4.1.2 → 4.1.4
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.4
|
|
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.4";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.4
|
|
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 Ae=Object.create;var E=Object.defineProperty;var Te=Object.getOwnPropertyDescriptor;var Ee=Object.getOwnPropertyNames,bt=Object.getOwnPropertySymbols,Ie=Object.getPrototypeOf,yt=Object.prototype.hasOwnProperty,De=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))De.call(e,n)&&_t(t,n,e[n]);return t};var Q=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Pe=(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 L=(t,e,n)=>(n=t!=null?Ae(Ie(t)):{},mt(e||!t||!t.__esModule?E(n,"default",{value:t,enumerable:!0}):n,t)),Me=t=>mt(E({},"__esModule",{value:!0}),t);var Dt=Q((Ci,It)=>{var X="__lodash_hash_undefined__",$e=9007199254740991,Re="[object Function]",Le="[object GeneratorFunction]",He=/[\\^$.*+?()[\]{}|]/g,Ne=/^\[object .+?Constructor\]$/,Fe=typeof global=="object"&&global&&global.Object===Object&&global,Ge=typeof self=="object"&&self&&self.Object===Object&&self,jt=Fe||Ge||Function("return this")();function Ue(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 Be(t,e){var n=t?t.length:0;return!!n&&ke(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 Ve(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 ke(t,e,n){if(e!==e)return Ve(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 vt(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 Xe=Array.prototype,Ye=Function.prototype,Ct=Object.prototype,q=jt["__core-js_shared__"],wt=function(){var t=/[^.]+$/.exec(q&&q.keys&&q.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),St=Ye.toString,Y=Ct.hasOwnProperty,Ze=Ct.toString,ze=RegExp("^"+St.call(Y).replace(He,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),tn=Xe.splice,xt=Math.max,en=Math.min,nn=At(jt,"Map"),I=At(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__=I?I(null):{}}function on(t){return this.has(t)&&delete this.__data__[t]}function an(t){var e=this.__data__;if(I){var n=e[t];return n===X?void 0:n}return Y.call(e,t)?e[t]:void 0}function sn(t){var e=this.__data__;return I?e[t]!==void 0:Y.call(e,t)}function cn(t,e){var n=this.__data__;return n[t]=I&&e===void 0?X:e,this}m.prototype.clear=rn;m.prototype.delete=on;m.prototype.get=an;m.prototype.has=sn;m.prototype.set=cn;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 un(){this.__data__=[]}function ln(t){var e=this.__data__,n=N(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=N(e,t);return n<0?void 0:e[n][1]}function hn(t){return N(this.__data__,t)>-1}function pn(t,e){var n=this.__data__,r=N(n,t);return r<0?n.push([t,e]):n[r][1]=e,this}j.prototype.clear=un;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 H(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,X),this}function vn(t){return this.__data__.has(t)}H.prototype.add=H.prototype.push=mn;H.prototype.has=vn;function N(t,e){for(var n=t.length;n--;)if(En(t[n][0],e))return n;return-1}function wn(t,e,n){for(var r=n?We:Be,i=t[0].length,o=t.length,s=o,a=Array(o),h=1/0,l=[];s--;){var u=t[s];s&&e&&(u=Ot(u,Je(e))),h=en(u.length,h),a[s]=!n&&(e||i>=120&&u.length>=120)?new H(s&&u):void 0}u=t[0];var d=-1,g=a[0];t:for(;++d<i&&l.length<h;){var f=u[d],p=e?e(f):f;if(f=n||f!==0?f:0,!(g?vt(g,p):r(l,p,n))){for(s=o;--s;){var gt=a[s];if(!(gt?vt(gt,p):r(t[s],p,n)))continue t}g&&g.push(p),l.push(f)}}return l}function xn(t){if(!Et(t)||Sn(t))return!1;var e=Tt(t)||qe(t)?ze:Ne;return e.test(An(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,Ue(t,this,s)}}function On(t){return Dn(t)?t:[]}function F(t,e){var n=t.__data__;return Cn(e)?n[typeof e=="string"?"string":"hash"]:n.map}function At(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 Sn(t){return!!wt&&wt in t}function An(t){if(t!=null){try{return St.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]?wn(e):[]});function En(t,e){return t===e||t!==t&&e!==e}function In(t){return t!=null&&Pn(t.length)&&!Tt(t)}function Dn(t){return Mn(t)&&In(t)}function Tt(t){var e=Et(t)?Ze.call(t):"";return e==Re||e==Le}function Pn(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=$e}function Et(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function Mn(t){return!!t&&typeof t=="object"}It.exports=Tn});var Rt=Q((Si,$t)=>{function $n(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 Ln(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 Hn(t,e,n){if(e!==e)return Ln(t,Fn,n);for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}function Nn(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 Gn(t){return function(e){return t(e)}}var Un=Array.prototype,Pt=Un.splice,Mt=Math.max;function Bn(t,e,n,r){var i=r?Nn:Hn,o=-1,s=e.length,a=t;for(t===e&&(e=Vn(e)),n&&(a=Rn(t,Gn(n)));++o<s;)for(var h=0,l=e[o],u=n?n(l):l;(h=i(a,u,h,r))>-1;)a!==t&&Pt.call(a,h,1),Pt.call(t,h,1);return t}function Wn(t,e){return e=Mt(e===void 0?t.length-1:e,0),function(){for(var n=arguments,r=-1,i=Mt(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,$n(t,this,s)}}function Vn(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}var kn=Wn(Kn);function Kn(t,e){return t&&t.length&&e&&e.length?Bn(t,e):t}$t.exports=kn});var ht=Q((P,C)=>{var Jn=200,Jt="__lodash_hash_undefined__",Qt=9007199254740991,ot="[object Arguments]",Qn="[object Array]",qt="[object Boolean]",Xt="[object Date]",qn="[object Error]",at="[object Function]",Yt="[object GeneratorFunction]",G="[object Map]",Zt="[object Number]",st="[object Object]",Lt="[object Promise]",zt="[object RegExp]",U="[object Set]",te="[object String]",ee="[object Symbol]",z="[object WeakMap]",ne="[object ArrayBuffer]",B="[object DataView]",re="[object Float32Array]",ie="[object Float64Array]",oe="[object Int8Array]",ae="[object Int16Array]",se="[object Int32Array]",ce="[object Uint8Array]",ue="[object Uint8ClampedArray]",le="[object Uint16Array]",fe="[object Uint32Array]",Xn=/[\\^$.*+?()[\]{}|]/g,Yn=/\w*$/,Zn=/^\[object .+?Constructor\]$/,zn=/^(?:0|[1-9]\d*)$/,c={};c[ot]=c[Qn]=c[ne]=c[B]=c[qt]=c[Xt]=c[re]=c[ie]=c[oe]=c[ae]=c[se]=c[G]=c[Zt]=c[st]=c[zt]=c[U]=c[te]=c[ee]=c[ce]=c[ue]=c[le]=c[fe]=!0;c[qn]=c[at]=c[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 P=="object"&&P&&!P.nodeType&&P,Ht=he&&typeof C=="object"&&C&&!C.nodeType&&C,nr=Ht&&Ht.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 cr(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 Nt(t){var e=-1,n=Array(t.size);return t.forEach(function(r,i){n[++e]=[i,r]}),n}function ct(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 ur=Array.prototype,lr=Function.prototype,W=Object.prototype,Z=b["__core-js_shared__"],Gt=function(){var t=/[^.]+$/.exec(Z&&Z.keys&&Z.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),ge=lr.toString,y=W.hasOwnProperty,V=W.toString,fr=RegExp("^"+ge.call(y).replace(Xn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ut=nr?b.Buffer:void 0,Bt=b.Symbol,Wt=b.Uint8Array,hr=ct(Object.getPrototypeOf,Object),pr=Object.create,dr=W.propertyIsEnumerable,gr=ur.splice,Vt=Object.getOwnPropertySymbols,br=Ut?Ut.isBuffer:void 0,_r=ct(Object.keys,Object),tt=T(b,"DataView"),M=T(b,"Map"),et=T(b,"Promise"),nt=T(b,"Set"),rt=T(b,"WeakMap"),$=T(Object,"create"),yr=x(tt),mr=x(M),vr=x(et),wr=x(nt),xr=x(rt),kt=Bt?Bt.prototype:void 0,Kt=kt?kt.valueOf:void 0;function w(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__=$?$(null):{}}function Or(t){return this.has(t)&&delete this.__data__[t]}function Cr(t){var e=this.__data__;if($){var n=e[t];return n===Jt?void 0:n}return y.call(e,t)?e[t]:void 0}function Sr(t){var e=this.__data__;return $?e[t]!==void 0:y.call(e,t)}function Ar(t,e){var n=this.__data__;return n[t]=$&&e===void 0?Jt:e,this}w.prototype.clear=jr;w.prototype.delete=Or;w.prototype.get=Cr;w.prototype.has=Sr;w.prototype.set=Ar;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=k(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():gr.call(e,n,1),!0}function Ir(t){var e=this.__data__,n=k(e,t);return n<0?void 0:e[n][1]}function Dr(t){return k(this.__data__,t)>-1}function Pr(t,e){var n=this.__data__,r=k(n,t);return r<0?n.push([t,e]):n[r][1]=e,this}_.prototype.clear=Tr;_.prototype.delete=Er;_.prototype.get=Ir;_.prototype.has=Dr;_.prototype.set=Pr;function S(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 Mr(){this.__data__={hash:new w,map:new(M||_),string:new w}}function $r(t){return K(this,t).delete(t)}function Rr(t){return K(this,t).get(t)}function Lr(t){return K(this,t).has(t)}function Hr(t,e){return K(this,t).set(t,e),this}S.prototype.clear=Mr;S.prototype.delete=$r;S.prototype.get=Rr;S.prototype.has=Lr;S.prototype.set=Hr;function A(t){this.__data__=new _(t)}function Nr(){this.__data__=new _}function Fr(t){return this.__data__.delete(t)}function Gr(t){return this.__data__.get(t)}function Ur(t){return this.__data__.has(t)}function Br(t,e){var n=this.__data__;if(n instanceof _){var r=n.__data__;if(!M||r.length<Jn-1)return r.push([t,e]),this;n=this.__data__=new S(r)}return n.set(t,e),this}A.prototype.clear=Nr;A.prototype.delete=Fr;A.prototype.get=Gr;A.prototype.has=Ur;A.prototype.set=Br;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"||ui(o,r)))&&n.push(o);return n}function be(t,e,n){var r=t[e];(!(y.call(t,e)&&ve(r,n))||n===void 0&&!(e in t))&&(t[e]=n)}function k(t,e){for(var n=t.length;n--;)if(ve(t[n][0],e))return n;return-1}function Vr(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=v(t),u=l==at||l==Yt;if(gi(t))return Xr(t,e);if(l==st||l==ot||u&&!o){if(de(t))return o?t:{};if(a=si(u?{}:t),!e)return ii(t,Vr(a,t))}else{if(!c[l])return o?t:{};a=ci(t,l,it,e)}}s||(s=new A);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 kr(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 V.call(t)}function Qr(t){if(!J(t)||fi(t))return!1;var e=xe(t)||de(t)?fr:Zn;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 Xr(t,e){if(e)return t.slice();var n=new t.constructor(t.length);return t.copy(n),n}function ut(t){var e=new t.constructor(t.byteLength);return new Wt(e).set(new Wt(t)),e}function Yr(t,e){var n=e?ut(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}function Zr(t,e,n){var r=e?n(Nt(t),!0):Nt(t);return pe(r,rr,new t.constructor)}function zr(t){var e=new t.constructor(t.source,Yn.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?ut(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=cr(t,e);return Qr(n)?n:void 0}var ye=Vt?ct(Vt,Object):yi,v=Jr;(tt&&v(new tt(new ArrayBuffer(1)))!=B||M&&v(new M)!=G||et&&v(et.resolve())!=Lt||nt&&v(new nt)!=U||rt&&v(new rt)!=z)&&(v=function(t){var e=V.call(t),n=e==st?t.constructor:void 0,r=n?x(n):void 0;if(r)switch(r){case yr:return B;case mr:return G;case vr:return Lt;case wr:return U;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)?kr(hr(t)):{}}function ci(t,e,n,r){var i=t.constructor;switch(e){case ne:return ut(t);case qt:case Xt:return new i(+t);case B:return Yr(t,r);case re:case ie:case oe:case ae:case se:case ce:case ue:case le:case fe:return ni(t,r);case G:return Zr(t,r,n);case Zt:case te:return new i(t);case zt:return zr(t);case U:return ti(t,r,n);case ee:return ei(t)}}function ui(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!!Gt&&Gt 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 ve(t,e){return t===e||t!==t&&e!==e}function pi(t){return di(t)&&y.call(t,"callee")&&(!dr.call(t,"callee")||V.call(t)==ot)}var lt=Array.isArray;function we(t){return t!=null&&bi(t.length)&&!xe(t)}function di(t){return _i(t)&&we(t)}var gi=br||mi;function xe(t){var e=J(t)?V.call(t):"";return e==at||e==Yt}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 we(t)?Wr(t):qr(t)}function yi(){return[]}function mi(){return!1}C.exports=hi});var ji={};Pe(ji,{mixer:()=>xi,version:()=>wi});var je=L(Dt(),1),Oe=L(Rt(),1);function D(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=L(ht(),1);function Ce(t,e={}){function n(u){let d=[];for(let g=0;g<1<<u;g++){let f=[];for(let p=0;p<u;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(!D(t))throw new Error("[THROW_ID_02] the first input object must be a true object");if(e&&!D(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=[];D(i)&&Object.keys(i).length&&(a=(0,je.default)(Object.keys(i),Object.keys(r)),a.forEach(u=>(0,Oe.default)(o,u)));let h=n(Object.keys(o).length),l;return h.forEach((u,d)=>{l={},o.forEach((g,f)=>{l[g]=h[d][f]===1}),s.push(l)}),D(i)&&Object.keys(i).length&&s.forEach(u=>{a.forEach(d=>{u[d]=i[d]})}),s}var dt=L(ht(),1);var Se="4.1.2";var wi=Se;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 Me(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]",Le=/[\\^$.*+?()[\]{}|]/g,Fe=/^\[object .+?Constructor\]$/,He=typeof global=="object"&&global&&global.Object===Object&&global,Ne=typeof self=="object"&&self&&self.Object===Object&&self,jt=He||Ne||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 ke(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 We(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 We(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(Le,"\\$&").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 cn(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=cn;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 un(){this.__data__=[]}function ln(t){var e=this.__data__,n=F(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=F(e,t);return n<0?void 0:e[n][1]}function hn(t){return F(this.__data__,t)>-1}function pn(t,e){var n=this.__data__,r=F(n,t);return r<0?n.push([t,e]):n[r][1]=e,this}j.prototype.clear=un;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 H(this,t).delete(t)}function bn(t){return H(this,t).get(t)}function _n(t){return H(this,t).has(t)}function yn(t,e){return H(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 L(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)}L.prototype.add=L.prototype.push=mn;L.prototype.has=wn;function F(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?ke:Ue,i=t[0].length,o=t.length,s=o,a=Array(o),h=1/0,l=[];s--;){var u=t[s];s&&e&&(u=Ot(u,Je(e))),h=en(u.length,h),a[s]=!n&&(e||i>=120&&u.length>=120)?new L(s&&u):void 0}u=t[0];var d=-1,g=a[0];t:for(;++d<i&&l.length<h;){var f=u[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:Fe;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 H(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 Ln(t,e,n){if(e!==e)return Bn(t,Hn,n);for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}function Fn(t,e,n,r){for(var i=n-1,o=t.length;++i<o;)if(r(t[i],e))return i;return-1}function Hn(t){return t!==t}function Nn(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?Fn:Ln,o=-1,s=e.length,a=t;for(t===e&&(e=Wn(e)),n&&(a=Rn(t,Nn(n)));++o<s;)for(var h=0,l=e[o],u=n?n(l):l;(h=i(a,u,h,r))>-1;)a!==t&&$t.call(a,h,1),$t.call(t,h,1);return t}function kn(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 Wn(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}var Vn=kn(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]",N="[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]",ce="[object Uint8Array]",ue="[object Uint8ClampedArray]",le="[object Uint16Array]",fe="[object Uint32Array]",Zn=/[\\^$.*+?()[\]{}|]/g,Xn=/\w*$/,Yn=/^\[object .+?Constructor\]$/,zn=/^(?:0|[1-9]\d*)$/,c={};c[ot]=c[Qn]=c[ne]=c[U]=c[qt]=c[Zt]=c[re]=c[ie]=c[oe]=c[ae]=c[se]=c[N]=c[Yt]=c[st]=c[zt]=c[G]=c[te]=c[ee]=c[ce]=c[ue]=c[le]=c[fe]=!0;c[qn]=c[at]=c[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&&$,Lt=he&&typeof C=="object"&&C&&!C.nodeType&&C,nr=Lt&&Lt.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 cr(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 Ft(t){var e=-1,n=Array(t.size);return t.forEach(function(r,i){n[++e]=[i,r]}),n}function ct(t,e){return function(n){return t(e(n))}}function Ht(t){var e=-1,n=Array(t.size);return t.forEach(function(r){n[++e]=r}),n}var ur=Array.prototype,lr=Function.prototype,k=Object.prototype,Y=b["__core-js_shared__"],Nt=function(){var t=/[^.]+$/.exec(Y&&Y.keys&&Y.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),ge=lr.toString,y=k.hasOwnProperty,W=k.toString,fr=RegExp("^"+ge.call(y).replace(Zn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Gt=nr?b.Buffer:void 0,Ut=b.Symbol,kt=b.Uint8Array,hr=ct(Object.getPrototypeOf,Object),pr=Object.create,dr=k.propertyIsEnumerable,gr=ur.splice,Wt=Object.getOwnPropertySymbols,br=Gt?Gt.isBuffer:void 0,_r=ct(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 Lr(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=Lr;function S(t){this.__data__=new _(t)}function Fr(){this.__data__=new _}function Hr(t){return this.__data__.delete(t)}function Nr(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=Fr;S.prototype.delete=Hr;S.prototype.get=Nr;S.prototype.has=Gr;S.prototype.set=Ur;function kr(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"||ui(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 Wr(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),u=l==at||l==Xt;if(gi(t))return Zr(t,e);if(l==st||l==ot||u&&!o){if(de(t))return o?t:{};if(a=si(u?{}:t),!e)return ii(t,Wr(a,t))}else{if(!c[l])return o?t:{};a=ci(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 W.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 ut(t){var e=new t.constructor(t.byteLength);return new kt(e).set(new kt(t)),e}function Xr(t,e){var n=e?ut(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}function Yr(t,e,n){var r=e?n(Ft(t),!0):Ft(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(Ht(t),!0):Ht(t);return pe(r,ir,new t.constructor)}function ei(t){return Kt?Object(Kt.call(t)):{}}function ni(t,e){var n=e?ut(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=cr(t,e);return Qr(n)?n:void 0}var ye=Wt?ct(Wt,Object):yi,w=Jr;(tt&&w(new tt(new ArrayBuffer(1)))!=U||P&&w(new P)!=N||et&&w(et.resolve())!=Bt||nt&&w(new nt)!=G||rt&&w(new rt)!=z)&&(w=function(t){var e=W.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 N;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 ci(t,e,n,r){var i=t.constructor;switch(e){case ne:return ut(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 ce:case ue:case le:case fe:return ni(t,r);case N: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 ui(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!!Nt&&Nt in t}function me(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||k;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")||W.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)?W.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)?kr(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(u){let d=[];for(let g=0;g<1<<u;g++){let f=[];for(let p=0;p<u;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(u=>(0,Oe.default)(o,u)));let h=n(Object.keys(o).length),l;return h.forEach((u,d)=>{l={},o.forEach((g,f)=>{l[g]=h[d][f]===1}),s.push(l)}),I(i)&&Object.keys(i).length&&s.forEach(u=>{a.forEach(d=>{u[d]=i[d]})}),s}var dt=B(ht(),1);var Ae="4.1.4";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.2.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.7
|
|
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.4",
|
|
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.7"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
75
|
"@types/lodash.clonedeep": "^4.5.7"
|