check-types-mini 7.0.11 → 7.1.1

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/CHANGELOG.md CHANGED
@@ -3,6 +3,12 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # 7.1.0 (2022-04-10)
7
+
8
+ ### Features
9
+
10
+ - export defaults and version ([7c27fb3](https://github.com/codsen/codsen/commit/7c27fb383cc57fcf2b88566471b6f2fc405093a1))
11
+
6
12
  ## 7.0.0 (2021-09-09)
7
13
 
8
14
  ### Features
package/README.md CHANGED
@@ -26,7 +26,7 @@
26
26
 
27
27
  ## Install
28
28
 
29
- The latest version is **ESM only**: Node 12+ is needed to use it and it must be `import`ed instead of `require`d. If your project is not on ESM yet and you want to use `require`, use an older version of this program, `6.1.0`.
29
+ This package is [pure ESM](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c). If you're not ready yet, install an older version of this program, 6.1.0 (`npm i check-types-mini@6.1.0`).
30
30
 
31
31
  ```bash
32
32
  npm i check-types-mini
@@ -1,17 +1,17 @@
1
1
  /**
2
2
  * @name check-types-mini
3
3
  * @fileoverview Validate options object
4
- * @version 7.0.11
4
+ * @version 7.1.1
5
5
  * @author Roy Revelt, Codsen Ltd
6
6
  * @license MIT
7
7
  * {@link https://codsen.com/os/check-types-mini/}
8
8
  */
9
9
 
10
- import a from"type-detect";import g from"lodash.pullall";import{traverse as V}from"ast-monkey-traverse";import j from"lodash.intersection";import{arrayiffy as A}from"arrayiffy-if-string";import S from"object-path";import{isMatch as N}from"matcher";var d={ignoreKeys:[],ignorePaths:[],acceptArrays:!1,acceptArraysIgnore:[],enforceStrictKeyset:!0,schema:{},msg:"check-types-mini",optsVarName:"opts"};function T(i,r,y){function b(s){return s!=null}function $(s){return a(s)==="Object"}function p(s,l){return typeof l=="string"&&(l=A(l)),Array.from(s).filter(n=>!l.some(t=>N(n,t,{caseSensitive:!0})))}let D=Object.prototype.hasOwnProperty,w=["any","anything","every","everything","all","whatever","whatevs"];if(!b(i))throw new Error("check-types-mini: [THROW_ID_01] First argument is missing!");let e={...d,...y};if(typeof e.ignoreKeys=="string"&&(e.ignoreKeys=[e.ignoreKeys]),typeof e.ignorePaths=="string"&&(e.ignorePaths=[e.ignorePaths]),typeof e.acceptArraysIgnore=="string"&&(e.acceptArraysIgnore=[e.acceptArraysIgnore]),e.msg=`${e.msg}`.trim(),e.msg[e.msg.length-1]===":"&&(e.msg=e.msg.slice(0,e.msg.length-1).trim()),$(e.schema))Object.keys(e.schema).forEach(s=>{if($(e.schema[s])){let l={};V(e.schema[s],(n,t,h)=>{let m=t!==void 0?t:n;return!Array.isArray(m)&&!$(m)&&(l[`${s}.${h.path}`]=m),m}),delete e.schema[s],e.schema={...e.schema,...l}}}),Object.keys(e.schema).forEach(s=>{Array.isArray(e.schema[s])||(e.schema[s]=[e.schema[s]]),e.schema[s]=e.schema[s].map(l=>`${l}`.toLowerCase().trim())});else if(e.schema!=null)throw new Error(`check-types-mini: opts.schema was customised to ${JSON.stringify(e.schema,null,0)} which is not object but ${typeof e.schema}`);if(b(r)||(r={}),e.enforceStrictKeyset)if(b(e.schema)&&Object.keys(e.schema).length>0){if(r&&p(g(Object.keys(i),Object.keys(r).concat(Object.keys(e.schema))),e.ignoreKeys).length){let s=g(Object.keys(i),Object.keys(r).concat(Object.keys(e.schema)));throw new TypeError(`${e.msg}: ${e.optsVarName}.enforceStrictKeyset is on and the following key${s.length>1?"s":""} ${s.length>1?"are":"is"} not covered by schema and/or reference objects: ${s.join(", ")}`)}}else if($(r)&&Object.keys(r).length>0){if(p(g(Object.keys(i),Object.keys(r)),e.ignoreKeys).length!==0){let s=g(Object.keys(i),Object.keys(r));throw new TypeError(`${e.msg}: The input object has key${s.length>1?"s":""} which ${s.length>1?"are":"is"} not covered by the reference object: ${s.join(", ")}`)}else if(p(g(Object.keys(r),Object.keys(i)),e.ignoreKeys).length!==0){let s=g(Object.keys(r),Object.keys(i));throw new TypeError(`${e.msg}: The reference object has key${s.length>1?"s":""} which ${s.length>1?"are":"is"} not present in the input object: ${s.join(", ")}`)}}else throw new TypeError(`${e.msg}: Both ${e.optsVarName}.schema and reference objects are missing! We don't have anything to match the keys as you requested via opts.enforceStrictKeyset!`);let u=[];V(i,(s,l,n)=>{let t=l,h=s;if(n.parentType==="array"&&(h=void 0,t=s),Array.isArray(u)&&u.length&&u.some(o=>n.path.startsWith(o))||h&&e.ignoreKeys.some(o=>N(h,o))||e.ignorePaths.some(o=>N(n.path,o)))return t;let m=!(!$(t)&&!Array.isArray(t)&&Array.isArray(n.parent)),f=!1;$(e.schema)&&D.call(e.schema,n.path)&&(f=!0);let O=!1;if($(r)&&S.has(r,n.path)&&(O=!0),e.enforceStrictKeyset&&m&&!f&&!O)throw new TypeError(`${e.msg}: ${e.optsVarName}.${n.path} is neither covered by reference object (second input argument), nor ${e.optsVarName}.schema! To stop this error, turn off ${e.optsVarName}.enforceStrictKeyset or provide some type reference (2nd argument or ${e.optsVarName}.schema).
10
+ import i from"type-detect";import u from"lodash.pullall";import{traverse as j}from"ast-monkey-traverse";import k from"lodash.intersection";import{arrayiffy as w}from"arrayiffy-if-string";import E from"object-path";import{isMatch as S}from"matcher";var N="7.1.1";var M=N,T={ignoreKeys:[],ignorePaths:[],acceptArrays:!1,acceptArraysIgnore:[],enforceStrictKeyset:!0,schema:{},msg:"check-types-mini",optsVarName:"opts"};function J(a,r,y){function p(s){return s!=null}function $(s){return i(s)==="Object"}function b(s,l){return typeof l=="string"&&(l=w(l)),Array.from(s).filter(n=>!l.some(t=>S(n,t,{caseSensitive:!0})))}let V=Object.prototype.hasOwnProperty,D=["any","anything","every","everything","all","whatever","whatevs"];if(!p(a))throw new Error("check-types-mini: [THROW_ID_01] First argument is missing!");let e={...T,...y};if(typeof e.ignoreKeys=="string"&&(e.ignoreKeys=[e.ignoreKeys]),typeof e.ignorePaths=="string"&&(e.ignorePaths=[e.ignorePaths]),typeof e.acceptArraysIgnore=="string"&&(e.acceptArraysIgnore=[e.acceptArraysIgnore]),e.msg=`${e.msg}`.trim(),e.msg[e.msg.length-1]===":"&&(e.msg=e.msg.slice(0,e.msg.length-1).trim()),$(e.schema))Object.keys(e.schema).forEach(s=>{if($(e.schema[s])){let l={};j(e.schema[s],(n,t,h)=>{let m=t!==void 0?t:n;return!Array.isArray(m)&&!$(m)&&(l[`${s}.${h.path}`]=m),m}),delete e.schema[s],e.schema={...e.schema,...l}}}),Object.keys(e.schema).forEach(s=>{Array.isArray(e.schema[s])||(e.schema[s]=[e.schema[s]]),e.schema[s]=e.schema[s].map(l=>`${l}`.toLowerCase().trim())});else if(e.schema!=null)throw new Error(`check-types-mini: opts.schema was customised to ${JSON.stringify(e.schema,null,0)} which is not object but ${typeof e.schema}`);if(p(r)||(r={}),e.enforceStrictKeyset)if(p(e.schema)&&Object.keys(e.schema).length){if(r&&b(u(Object.keys(a),Object.keys(r).concat(Object.keys(e.schema))),e.ignoreKeys).length){let s=u(Object.keys(a),Object.keys(r).concat(Object.keys(e.schema)));throw new TypeError(`${e.msg}: ${e.optsVarName}.enforceStrictKeyset is on and the following key${s.length>1?"s":""} ${s.length>1?"are":"is"} not covered by schema and/or reference objects: ${s.join(", ")}`)}}else if($(r)&&Object.keys(r).length){if(b(u(Object.keys(a),Object.keys(r)),e.ignoreKeys).length!==0){let s=u(Object.keys(a),Object.keys(r));throw new TypeError(`${e.msg}: The input object has key${s.length>1?"s":""} which ${s.length>1?"are":"is"} not covered by the reference object: ${s.join(", ")}`)}else if(b(u(Object.keys(r),Object.keys(a)),e.ignoreKeys).length!==0){let s=u(Object.keys(r),Object.keys(a));throw new TypeError(`${e.msg}: The reference object has key${s.length>1?"s":""} which ${s.length>1?"are":"is"} not present in the input object: ${s.join(", ")}`)}}else throw new TypeError(`${e.msg}: Both ${e.optsVarName}.schema and reference objects are missing! We don't have anything to match the keys as you requested via opts.enforceStrictKeyset!`);let g=[];j(a,(s,l,n)=>{let t=l,h=s;if(n.parentType==="array"&&(h=void 0,t=s),Array.isArray(g)&&g.length&&g.some(o=>n.path.startsWith(o))||h&&e.ignoreKeys.some(o=>S(h,o))||e.ignorePaths.some(o=>S(n.path,o)))return t;let m=!(!$(t)&&!Array.isArray(t)&&Array.isArray(n.parent)),f=!1;$(e.schema)&&V.call(e.schema,n.path)&&(f=!0);let d=!1;if($(r)&&E.has(r,n.path)&&(d=!0),e.enforceStrictKeyset&&m&&!f&&!d)throw new TypeError(`${e.msg}: ${e.optsVarName}.${n.path} is neither covered by reference object (second input argument), nor ${e.optsVarName}.schema! To stop this error, turn off ${e.optsVarName}.enforceStrictKeyset or provide some type reference (2nd argument or ${e.optsVarName}.schema).
11
11
 
12
12
  Debug info:
13
13
 
14
- obj = ${JSON.stringify(i,null,4)}
14
+ obj = ${JSON.stringify(a,null,4)}
15
15
 
16
16
  ref = ${JSON.stringify(r,null,4)}
17
17
 
@@ -21,4 +21,4 @@ opts = ${JSON.stringify(e,null,4)}
21
21
 
22
22
  current = ${JSON.stringify(t,null,4)}
23
23
 
24
- `);if(f){let o=A(e.schema[n.path]).map(c=>`${c}`.toLowerCase());if(S.set(e.schema,n.path,o),j(o,w).length)u.push(n.path);else if(t!==!0&&t!==!1&&!o.includes(a(t).toLowerCase())||(t===!0||t===!1)&&!o.includes(String(t))&&!o.includes("boolean"))if(Array.isArray(t)&&e.acceptArrays){for(let c=0,E=t.length;c<E;c++)if(!o.includes(a(t[c]).toLowerCase()))throw new TypeError(`${e.msg}: ${e.optsVarName}.${n.path}.${c}, the ${c}th element (equal to ${JSON.stringify(t[c],null,0)}) is of a type ${a(t[c]).toLowerCase()}, but only the following are allowed by the ${e.optsVarName}.schema: ${o.join(", ")}`)}else throw new TypeError(`${e.msg}: ${e.optsVarName}.${n.path} was customised to ${a(t)!=="string"?'"':""}${JSON.stringify(t,null,0)}${a(t)!=="string"?'"':""} (type: ${a(t).toLowerCase()}) which is not among the allowed types in schema (which is equal to ${JSON.stringify(o,null,0)})`)}else if(r&&$(r)&&O){let o=S.get(r,n.path);if(e.acceptArrays&&Array.isArray(t)&&!e.acceptArraysIgnore.includes(s)){if(!t.every(E=>a(E).toLowerCase()===a(r[s]).toLowerCase()))throw new TypeError(`${e.msg}: ${e.optsVarName}.${n.path} was customised to be array, but not all of its elements are ${a(r[s]).toLowerCase()}-type`)}else if(a(t)!==a(o))throw new TypeError(`${e.msg}: ${e.optsVarName}.${n.path} was customised to ${a(t).toLowerCase()==="string"?"":'"'}${JSON.stringify(t,null,0)}${a(t).toLowerCase()==="string"?"":'"'} which is not ${a(o).toLowerCase()} but ${a(t).toLowerCase()}`)}return t})}function H(i,r,y){T(i,r,y)}export{H as checkTypesMini};
24
+ `);if(f){let o=w(e.schema[n.path]).map(c=>`${c}`.toLowerCase());if(E.set(e.schema,n.path,o),k(o,D).length)g.push(n.path);else if(t!==!0&&t!==!1&&!o.includes(i(t).toLowerCase())||(t===!0||t===!1)&&!o.includes(String(t))&&!o.includes("boolean"))if(Array.isArray(t)&&e.acceptArrays){for(let c=0,O=t.length;c<O;c++)if(!o.includes(i(t[c]).toLowerCase()))throw new TypeError(`${e.msg}: ${e.optsVarName}.${n.path}.${c}, the ${c}th element (equal to ${JSON.stringify(t[c],null,0)}) is of a type ${i(t[c]).toLowerCase()}, but only the following are allowed by the ${e.optsVarName}.schema: ${o.join(", ")}`)}else throw new TypeError(`${e.msg}: ${e.optsVarName}.${n.path} was customised to ${i(t)!=="string"?'"':""}${JSON.stringify(t,null,0)}${i(t)!=="string"?'"':""} (type: ${i(t).toLowerCase()}) which is not among the allowed types in schema (which is equal to ${JSON.stringify(o,null,0)})`)}else if(r&&$(r)&&d){let o=E.get(r,n.path);if(e.acceptArrays&&Array.isArray(t)&&!e.acceptArraysIgnore.includes(s)){if(!t.every(O=>i(O).toLowerCase()===i(r[s]).toLowerCase()))throw new TypeError(`${e.msg}: ${e.optsVarName}.${n.path} was customised to be array, but not all of its elements are ${i(r[s]).toLowerCase()}-type`)}else if(i(t)!==i(o))throw new TypeError(`${e.msg}: ${e.optsVarName}.${n.path} was customised to ${i(t).toLowerCase()==="string"?"":'"'}${JSON.stringify(t,null,0)}${i(t).toLowerCase()==="string"?"":'"'} which is not ${i(o).toLowerCase()} but ${i(t).toLowerCase()}`)}return t})}function F(a,r,y){J(a,r,y)}export{F as checkTypesMini,T as defaults,M as version};
@@ -1,13 +1,13 @@
1
1
  /**
2
2
  * @name check-types-mini
3
3
  * @fileoverview Validate options object
4
- * @version 7.0.11
4
+ * @version 7.1.1
5
5
  * @author Roy Revelt, Codsen Ltd
6
6
  * @license MIT
7
7
  * {@link https://codsen.com/os/check-types-mini/}
8
8
  */
9
9
 
10
- var checkTypesMini=(()=>{var zt=Object.create;var F=Object.defineProperty,en=Object.defineProperties,tn=Object.getOwnPropertyDescriptor,nn=Object.getOwnPropertyDescriptors,rn=Object.getOwnPropertyNames,Ve=Object.getOwnPropertySymbols,on=Object.getPrototypeOf,Me=Object.prototype.hasOwnProperty,sn=Object.prototype.propertyIsEnumerable;var Le=(e,t,n)=>t in e?F(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,E=(e,t)=>{for(var n in t||(t={}))Me.call(t,n)&&Le(e,n,t[n]);if(Ve)for(var n of Ve(t))sn.call(t,n)&&Le(e,n,t[n]);return e},R=(e,t)=>en(e,nn(t)),Ke=e=>F(e,"__esModule",{value:!0});var D=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),an=(e,t)=>{for(var n in t)F(e,n,{get:t[n],enumerable:!0})},He=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let c of rn(t))!Me.call(e,c)&&(n||c!=="default")&&F(e,c,{get:()=>t[c],enumerable:!(r=tn(t,c))||r.enumerable});return e},V=(e,t)=>He(Ke(F(e!=null?zt(on(e)):{},"default",!t&&e&&e.__esModule?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e),cn=(e=>(t,n)=>e&&e.get(t)||(n=He(Ke({}),t,1),e&&e.set(t,n),n))(typeof WeakMap!="undefined"?new WeakMap:0);var Je=D((ue,le)=>{(function(e,t){typeof ue=="object"&&typeof le!="undefined"?le.exports=t():typeof define=="function"&&define.amd?define(t):e.typeDetect=t()})(ue,function(){"use strict";var e=typeof Promise=="function",t=typeof self=="object"?self:global,n=typeof Symbol!="undefined",r=typeof Map!="undefined",c=typeof Set!="undefined",l=typeof WeakMap!="undefined",d=typeof WeakSet!="undefined",g=typeof DataView!="undefined",i=n&&typeof Symbol.iterator!="undefined",m=n&&typeof Symbol.toStringTag!="undefined",o=c&&typeof Set.prototype.entries=="function",a=r&&typeof Map.prototype.entries=="function",y=o&&Object.getPrototypeOf(new Set().entries()),h=a&&Object.getPrototypeOf(new Map().entries()),$=i&&typeof Array.prototype[Symbol.iterator]=="function",S=$&&Object.getPrototypeOf([][Symbol.iterator]()),f=i&&typeof String.prototype[Symbol.iterator]=="function",s=f&&Object.getPrototypeOf(""[Symbol.iterator]()),u=8,p=-1;function w(O){var Ie=typeof O;if(Ie!=="object")return Ie;if(O===null)return"null";if(O===t)return"global";if(Array.isArray(O)&&(m===!1||!(Symbol.toStringTag in O)))return"Array";if(typeof window=="object"&&window!==null){if(typeof window.location=="object"&&O===window.location)return"Location";if(typeof window.document=="object"&&O===window.document)return"Document";if(typeof window.navigator=="object"){if(typeof window.navigator.mimeTypes=="object"&&O===window.navigator.mimeTypes)return"MimeTypeArray";if(typeof window.navigator.plugins=="object"&&O===window.navigator.plugins)return"PluginArray"}if((typeof window.HTMLElement=="function"||typeof window.HTMLElement=="object")&&O instanceof window.HTMLElement){if(O.tagName==="BLOCKQUOTE")return"HTMLQuoteElement";if(O.tagName==="TD")return"HTMLTableDataCellElement";if(O.tagName==="TH")return"HTMLTableHeaderCellElement"}}var De=m&&O[Symbol.toStringTag];if(typeof De=="string")return De;var v=Object.getPrototypeOf(O);return v===RegExp.prototype?"RegExp":v===Date.prototype?"Date":e&&v===Promise.prototype?"Promise":c&&v===Set.prototype?"Set":r&&v===Map.prototype?"Map":d&&v===WeakSet.prototype?"WeakSet":l&&v===WeakMap.prototype?"WeakMap":g&&v===DataView.prototype?"DataView":r&&v===h?"Map Iterator":c&&v===y?"Set Iterator":$&&v===S?"Array Iterator":f&&v===s?"String Iterator":v===null?"Object":Object.prototype.toString.call(O).slice(u,p)}return w})});var Re=D((uo,Fe)=>{function un(e,t){for(var n=-1,r=e?e.length:0,c=Array(r);++n<r;)c[n]=t(e[n],n,e);return c}function ln(e,t,n,r){for(var c=e.length,l=n+(r?1:-1);r?l--:++l<c;)if(t(e[l],l,e))return l;return-1}function fn(e,t,n){if(t!==t)return ln(e,gn,n);for(var r=n-1,c=e.length;++r<c;)if(e[r]===t)return r;return-1}function hn(e,t,n,r){for(var c=n-1,l=e.length;++c<l;)if(r(e[c],t))return c;return-1}function gn(e){return e!==e}function pn(e){return function(t){return e(t)}}var yn=Array.prototype,ke=yn.splice;function dn(e,t,n,r){var c=r?hn:fn,l=-1,d=t.length,g=e;for(e===t&&(t=mn(t)),n&&(g=un(e,pn(n)));++l<d;)for(var i=0,m=t[l],o=n?n(m):m;(i=c(g,o,i,r))>-1;)g!==e&&ke.call(g,i,1),ke.call(e,i,1);return e}function mn(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function bn(e,t){return e&&e.length&&t&&t.length?dn(e,t):e}Fe.exports=bn});var Nt=D((W,H)=>{var $n=200,Ge="__lodash_hash_undefined__",Ue=9007199254740991,fe="[object Arguments]",wn="[object Array]",We="[object Boolean]",Be="[object Date]",On="[object Error]",he="[object Function]",Ye="[object GeneratorFunction]",Y="[object Map]",qe="[object Number]",ge="[object Object]",Qe="[object Promise]",Xe="[object RegExp]",q="[object Set]",Ze="[object String]",ze="[object Symbol]",pe="[object WeakMap]",et="[object ArrayBuffer]",Q="[object DataView]",tt="[object Float32Array]",nt="[object Float64Array]",rt="[object Int8Array]",it="[object Int16Array]",ot="[object Int32Array]",st="[object Uint8Array]",at="[object Uint8ClampedArray]",ct="[object Uint16Array]",ut="[object Uint32Array]",_n=/[\\^$.*+?()[\]{}|]/g,Sn=/\w*$/,vn=/^\[object .+?Constructor\]$/,En=/^(?:0|[1-9]\d*)$/,b={};b[fe]=b[wn]=b[et]=b[Q]=b[We]=b[Be]=b[tt]=b[nt]=b[rt]=b[it]=b[ot]=b[Y]=b[qe]=b[ge]=b[Xe]=b[q]=b[Ze]=b[ze]=b[st]=b[at]=b[ct]=b[ut]=!0;b[On]=b[he]=b[pe]=!1;var An=typeof global=="object"&&global&&global.Object===Object&&global,Tn=typeof self=="object"&&self&&self.Object===Object&&self,A=An||Tn||Function("return this")(),lt=typeof W=="object"&&W&&!W.nodeType&&W,ft=lt&&typeof H=="object"&&H&&!H.nodeType&&H,xn=ft&&ft.exports===lt;function jn(e,t){return e.set(t[0],t[1]),e}function Pn(e,t){return e.add(t),e}function Nn(e,t){for(var n=-1,r=e?e.length:0;++n<r&&t(e[n],n,e)!==!1;);return e}function Cn(e,t){for(var n=-1,r=t.length,c=e.length;++n<r;)e[c+n]=t[n];return e}function ht(e,t,n,r){var c=-1,l=e?e.length:0;for(r&&l&&(n=e[++c]);++c<l;)n=t(n,e[c],c,e);return n}function In(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Dn(e,t){return e==null?void 0:e[t]}function gt(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch(n){}return t}function pt(e){var t=-1,n=Array(e.size);return e.forEach(function(r,c){n[++t]=[c,r]}),n}function ye(e,t){return function(n){return e(t(n))}}function yt(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var Vn=Array.prototype,Mn=Function.prototype,X=Object.prototype,de=A["__core-js_shared__"],dt=function(){var e=/[^.]+$/.exec(de&&de.keys&&de.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),mt=Mn.toString,x=X.hasOwnProperty,Z=X.toString,Ln=RegExp("^"+mt.call(x).replace(_n,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),bt=xn?A.Buffer:void 0,$t=A.Symbol,wt=A.Uint8Array,Kn=ye(Object.getPrototypeOf,Object),Hn=Object.create,Jn=X.propertyIsEnumerable,kn=Vn.splice,Ot=Object.getOwnPropertySymbols,Fn=bt?bt.isBuffer:void 0,Rn=ye(Object.keys,Object),me=K(A,"DataView"),G=K(A,"Map"),be=K(A,"Promise"),$e=K(A,"Set"),we=K(A,"WeakMap"),U=K(Object,"create"),Gn=N(me),Un=N(G),Wn=N(be),Bn=N($e),Yn=N(we),_t=$t?$t.prototype:void 0,St=_t?_t.valueOf:void 0;function j(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function qn(){this.__data__=U?U(null):{}}function Qn(e){return this.has(e)&&delete this.__data__[e]}function Xn(e){var t=this.__data__;if(U){var n=t[e];return n===Ge?void 0:n}return x.call(t,e)?t[e]:void 0}function Zn(e){var t=this.__data__;return U?t[e]!==void 0:x.call(t,e)}function zn(e,t){var n=this.__data__;return n[e]=U&&t===void 0?Ge:t,this}j.prototype.clear=qn;j.prototype.delete=Qn;j.prototype.get=Xn;j.prototype.has=Zn;j.prototype.set=zn;function T(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function er(){this.__data__=[]}function tr(e){var t=this.__data__,n=z(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():kn.call(t,n,1),!0}function nr(e){var t=this.__data__,n=z(t,e);return n<0?void 0:t[n][1]}function rr(e){return z(this.__data__,e)>-1}function ir(e,t){var n=this.__data__,r=z(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}T.prototype.clear=er;T.prototype.delete=tr;T.prototype.get=nr;T.prototype.has=rr;T.prototype.set=ir;function M(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function or(){this.__data__={hash:new j,map:new(G||T),string:new j}}function sr(e){return ee(this,e).delete(e)}function ar(e){return ee(this,e).get(e)}function cr(e){return ee(this,e).has(e)}function ur(e,t){return ee(this,e).set(e,t),this}M.prototype.clear=or;M.prototype.delete=sr;M.prototype.get=ar;M.prototype.has=cr;M.prototype.set=ur;function L(e){this.__data__=new T(e)}function lr(){this.__data__=new T}function fr(e){return this.__data__.delete(e)}function hr(e){return this.__data__.get(e)}function gr(e){return this.__data__.has(e)}function pr(e,t){var n=this.__data__;if(n instanceof T){var r=n.__data__;if(!G||r.length<$n-1)return r.push([e,t]),this;n=this.__data__=new M(r)}return n.set(e,t),this}L.prototype.clear=lr;L.prototype.delete=fr;L.prototype.get=hr;L.prototype.has=gr;L.prototype.set=pr;function yr(e,t){var n=Se(e)||Hr(e)?In(e.length,String):[],r=n.length,c=!!r;for(var l in e)(t||x.call(e,l))&&!(c&&(l=="length"||Vr(l,r)))&&n.push(l);return n}function vt(e,t,n){var r=e[t];(!(x.call(e,t)&&xt(r,n))||n===void 0&&!(t in e))&&(e[t]=n)}function z(e,t){for(var n=e.length;n--;)if(xt(e[n][0],t))return n;return-1}function dr(e,t){return e&&Et(t,ve(t),e)}function Oe(e,t,n,r,c,l,d){var g;if(r&&(g=l?r(e,c,l,d):r(e)),g!==void 0)return g;if(!te(e))return e;var i=Se(e);if(i){if(g=Cr(e),!t)return jr(e,g)}else{var m=P(e),o=m==he||m==Ye;if(kr(e))return _r(e,t);if(m==ge||m==fe||o&&!l){if(gt(e))return l?e:{};if(g=Ir(o?{}:e),!t)return Pr(e,dr(g,e))}else{if(!b[m])return l?e:{};g=Dr(e,m,Oe,t)}}d||(d=new L);var a=d.get(e);if(a)return a;if(d.set(e,g),!i)var y=n?Nr(e):ve(e);return Nn(y||e,function(h,$){y&&($=h,h=e[$]),vt(g,$,Oe(h,t,n,r,$,e,d))}),g}function mr(e){return te(e)?Hn(e):{}}function br(e,t,n){var r=t(e);return Se(e)?r:Cn(r,n(e))}function $r(e){return Z.call(e)}function wr(e){if(!te(e)||Lr(e))return!1;var t=Pt(e)||gt(e)?Ln:vn;return t.test(N(e))}function Or(e){if(!Tt(e))return Rn(e);var t=[];for(var n in Object(e))x.call(e,n)&&n!="constructor"&&t.push(n);return t}function _r(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}function _e(e){var t=new e.constructor(e.byteLength);return new wt(t).set(new wt(e)),t}function Sr(e,t){var n=t?_e(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function vr(e,t,n){var r=t?n(pt(e),!0):pt(e);return ht(r,jn,new e.constructor)}function Er(e){var t=new e.constructor(e.source,Sn.exec(e));return t.lastIndex=e.lastIndex,t}function Ar(e,t,n){var r=t?n(yt(e),!0):yt(e);return ht(r,Pn,new e.constructor)}function Tr(e){return St?Object(St.call(e)):{}}function xr(e,t){var n=t?_e(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function jr(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function Et(e,t,n,r){n||(n={});for(var c=-1,l=t.length;++c<l;){var d=t[c],g=r?r(n[d],e[d],d,n,e):void 0;vt(n,d,g===void 0?e[d]:g)}return n}function Pr(e,t){return Et(e,At(e),t)}function Nr(e){return br(e,ve,At)}function ee(e,t){var n=e.__data__;return Mr(t)?n[typeof t=="string"?"string":"hash"]:n.map}function K(e,t){var n=Dn(e,t);return wr(n)?n:void 0}var At=Ot?ye(Ot,Object):Gr,P=$r;(me&&P(new me(new ArrayBuffer(1)))!=Q||G&&P(new G)!=Y||be&&P(be.resolve())!=Qe||$e&&P(new $e)!=q||we&&P(new we)!=pe)&&(P=function(e){var t=Z.call(e),n=t==ge?e.constructor:void 0,r=n?N(n):void 0;if(r)switch(r){case Gn:return Q;case Un:return Y;case Wn:return Qe;case Bn:return q;case Yn:return pe}return t});function Cr(e){var t=e.length,n=e.constructor(t);return t&&typeof e[0]=="string"&&x.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function Ir(e){return typeof e.constructor=="function"&&!Tt(e)?mr(Kn(e)):{}}function Dr(e,t,n,r){var c=e.constructor;switch(t){case et:return _e(e);case We:case Be:return new c(+e);case Q:return Sr(e,r);case tt:case nt:case rt:case it:case ot:case st:case at:case ct:case ut:return xr(e,r);case Y:return vr(e,r,n);case qe:case Ze:return new c(e);case Xe:return Er(e);case q:return Ar(e,r,n);case ze:return Tr(e)}}function Vr(e,t){return t=t==null?Ue:t,!!t&&(typeof e=="number"||En.test(e))&&e>-1&&e%1==0&&e<t}function Mr(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Lr(e){return!!dt&&dt in e}function Tt(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||X;return e===n}function N(e){if(e!=null){try{return mt.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Kr(e){return Oe(e,!0,!0)}function xt(e,t){return e===t||e!==e&&t!==t}function Hr(e){return Jr(e)&&x.call(e,"callee")&&(!Jn.call(e,"callee")||Z.call(e)==fe)}var Se=Array.isArray;function jt(e){return e!=null&&Fr(e.length)&&!Pt(e)}function Jr(e){return Rr(e)&&jt(e)}var kr=Fn||Ur;function Pt(e){var t=te(e)?Z.call(e):"";return t==he||t==Ye}function Fr(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Ue}function te(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function Rr(e){return!!e&&typeof e=="object"}function ve(e){return jt(e)?yr(e):Or(e)}function Gr(){return[]}function Ur(){return!1}H.exports=Kr});var Vt=D((lo,Dt)=>{var Wr="[object Object]";function Br(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch(n){}return t}function Yr(e,t){return function(n){return e(t(n))}}var qr=Function.prototype,Ct=Object.prototype,It=qr.toString,Qr=Ct.hasOwnProperty,Xr=It.call(Object),Zr=Ct.toString,zr=Yr(Object.getPrototypeOf,Object);function ei(e){return!!e&&typeof e=="object"}function ti(e){if(!ei(e)||Zr.call(e)!=Wr||Br(e))return!1;var t=zr(e);if(t===null)return!0;var n=Qr.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&It.call(n)==Xr}Dt.exports=ti});var Yt=D((po,Bt)=>{var Te="__lodash_hash_undefined__",ri=9007199254740991,ii="[object Function]",oi="[object GeneratorFunction]",si=/[\\^$.*+?()[\]{}|]/g,ai=/^\[object .+?Constructor\]$/,ci=typeof global=="object"&&global&&global.Object===Object&&global,ui=typeof self=="object"&&self&&self.Object===Object&&self,Lt=ci||ui||Function("return this")();function li(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function fi(e,t){var n=e?e.length:0;return!!n&&pi(e,t,0)>-1}function hi(e,t,n){for(var r=-1,c=e?e.length:0;++r<c;)if(n(t,e[r]))return!0;return!1}function Kt(e,t){for(var n=-1,r=e?e.length:0,c=Array(r);++n<r;)c[n]=t(e[n],n,e);return c}function gi(e,t,n,r){for(var c=e.length,l=n+(r?1:-1);r?l--:++l<c;)if(t(e[l],l,e))return l;return-1}function pi(e,t,n){if(t!==t)return gi(e,yi,n);for(var r=n-1,c=e.length;++r<c;)if(e[r]===t)return r;return-1}function yi(e){return e!==e}function di(e){return function(t){return e(t)}}function Ht(e,t){return e.has(t)}function mi(e,t){return e==null?void 0:e[t]}function bi(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch(n){}return t}var $i=Array.prototype,wi=Function.prototype,Jt=Object.prototype,xe=Lt["__core-js_shared__"],kt=function(){var e=/[^.]+$/.exec(xe&&xe.keys&&xe.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Ft=wi.toString,je=Jt.hasOwnProperty,Oi=Jt.toString,_i=RegExp("^"+Ft.call(je).replace(si,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Si=$i.splice,Rt=Math.max,vi=Math.min,Ei=Gt(Lt,"Map"),B=Gt(Object,"create");function C(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ai(){this.__data__=B?B(null):{}}function Ti(e){return this.has(e)&&delete this.__data__[e]}function xi(e){var t=this.__data__;if(B){var n=t[e];return n===Te?void 0:n}return je.call(t,e)?t[e]:void 0}function ji(e){var t=this.__data__;return B?t[e]!==void 0:je.call(t,e)}function Pi(e,t){var n=this.__data__;return n[e]=B&&t===void 0?Te:t,this}C.prototype.clear=Ai;C.prototype.delete=Ti;C.prototype.get=xi;C.prototype.has=ji;C.prototype.set=Pi;function J(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ni(){this.__data__=[]}function Ci(e){var t=this.__data__,n=ie(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Si.call(t,n,1),!0}function Ii(e){var t=this.__data__,n=ie(t,e);return n<0?void 0:t[n][1]}function Di(e){return ie(this.__data__,e)>-1}function Vi(e,t){var n=this.__data__,r=ie(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}J.prototype.clear=Ni;J.prototype.delete=Ci;J.prototype.get=Ii;J.prototype.has=Di;J.prototype.set=Vi;function k(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Mi(){this.__data__={hash:new C,map:new(Ei||J),string:new C}}function Li(e){return oe(this,e).delete(e)}function Ki(e){return oe(this,e).get(e)}function Hi(e){return oe(this,e).has(e)}function Ji(e,t){return oe(this,e).set(e,t),this}k.prototype.clear=Mi;k.prototype.delete=Li;k.prototype.get=Ki;k.prototype.has=Hi;k.prototype.set=Ji;function re(e){var t=-1,n=e?e.length:0;for(this.__data__=new k;++t<n;)this.add(e[t])}function ki(e){return this.__data__.set(e,Te),this}function Fi(e){return this.__data__.has(e)}re.prototype.add=re.prototype.push=ki;re.prototype.has=Fi;function ie(e,t){for(var n=e.length;n--;)if(Xi(e[n][0],t))return n;return-1}function Ri(e,t,n){for(var r=n?hi:fi,c=e[0].length,l=e.length,d=l,g=Array(l),i=1/0,m=[];d--;){var o=e[d];d&&t&&(o=Kt(o,di(t))),i=vi(o.length,i),g[d]=!n&&(t||c>=120&&o.length>=120)?new re(d&&o):void 0}o=e[0];var a=-1,y=g[0];e:for(;++a<c&&m.length<i;){var h=o[a],$=t?t(h):h;if(h=n||h!==0?h:0,!(y?Ht(y,$):r(m,$,n))){for(d=l;--d;){var S=g[d];if(!(S?Ht(S,$):r(e[d],$,n)))continue e}y&&y.push($),m.push(h)}}return m}function Gi(e){if(!Wt(e)||Yi(e))return!1;var t=Ut(e)||bi(e)?_i:ai;return t.test(qi(e))}function Ui(e,t){return t=Rt(t===void 0?e.length-1:t,0),function(){for(var n=arguments,r=-1,c=Rt(n.length-t,0),l=Array(c);++r<c;)l[r]=n[t+r];r=-1;for(var d=Array(t+1);++r<t;)d[r]=n[r];return d[t]=l,li(e,this,d)}}function Wi(e){return zi(e)?e:[]}function oe(e,t){var n=e.__data__;return Bi(t)?n[typeof t=="string"?"string":"hash"]:n.map}function Gt(e,t){var n=mi(e,t);return Gi(n)?n:void 0}function Bi(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Yi(e){return!!kt&&kt in e}function qi(e){if(e!=null){try{return Ft.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var Qi=Ui(function(e){var t=Kt(e,Wi);return t.length&&t[0]===e[0]?Ri(t):[]});function Xi(e,t){return e===t||e!==e&&t!==t}function Zi(e){return e!=null&&eo(e.length)&&!Ut(e)}function zi(e){return to(e)&&Zi(e)}function Ut(e){var t=Wt(e)?Oi.call(e):"";return t==ii||t==oi}function eo(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=ri}function Wt(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function to(e){return!!e&&typeof e=="object"}Bt.exports=Qi});var Qt=D((qt,se)=>{(function(e,t){"use strict";typeof se=="object"&&typeof se.exports=="object"?se.exports=t():typeof define=="function"&&define.amd?define([],t):e.objectPath=t()})(qt,function(){"use strict";var e=Object.prototype.toString;function t(o,a){return o==null?!1:Object.prototype.hasOwnProperty.call(o,a)}function n(o){if(!o||l(o)&&o.length===0)return!0;if(typeof o!="string"){for(var a in o)if(t(o,a))return!1;return!0}return!1}function r(o){return e.call(o)}function c(o){return typeof o=="object"&&r(o)==="[object Object]"}var l=Array.isArray||function(o){return e.call(o)==="[object Array]"};function d(o){return typeof o=="boolean"||r(o)==="[object Boolean]"}function g(o){var a=parseInt(o);return a.toString()===o?a:o}function i(o){o=o||{};var a=function(f){return Object.keys(a).reduce(function(s,u){return u==="create"||typeof a[u]=="function"&&(s[u]=a[u].bind(a,f)),s},{})},y;o.includeInheritedProps?y=function(){return!0}:y=function(f,s){return typeof s=="number"&&Array.isArray(f)||t(f,s)};function h(f,s){if(y(f,s))return f[s]}var $;o.includeInheritedProps?$=function(f,s){typeof s!="string"&&typeof s!="number"&&(s=String(s));var u=h(f,s);if(s==="__proto__"||s==="prototype"||s==="constructor"&&typeof u=="function")throw new Error("For security reasons, object's magic properties cannot be set");return u}:$=function(f,s){return h(f,s)};function S(f,s,u,p){if(typeof s=="number"&&(s=[s]),!s||s.length===0)return f;if(typeof s=="string")return S(f,s.split(".").map(g),u,p);var w=s[0],O=$(f,w);return s.length===1?((O===void 0||!p)&&(f[w]=u),O):(O===void 0&&(typeof s[1]=="number"?f[w]=[]:f[w]={}),S(f[w],s.slice(1),u,p))}return a.has=function(f,s){if(typeof s=="number"?s=[s]:typeof s=="string"&&(s=s.split(".")),!s||s.length===0)return!!f;for(var u=0;u<s.length;u++){var p=g(s[u]);if(typeof p=="number"&&l(f)&&p<f.length||(o.includeInheritedProps?p in Object(f):t(f,p)))f=f[p];else return!1}return!0},a.ensureExists=function(f,s,u){return S(f,s,u,!0)},a.set=function(f,s,u,p){return S(f,s,u,p)},a.insert=function(f,s,u,p){var w=a.get(f,s);p=~~p,l(w)||(w=[],a.set(f,s,w)),w.splice(p,0,u)},a.empty=function(f,s){if(!n(s)&&f!=null){var u,p;if(!!(u=a.get(f,s))){if(typeof u=="string")return a.set(f,s,"");if(d(u))return a.set(f,s,!1);if(typeof u=="number")return a.set(f,s,0);if(l(u))u.length=0;else if(c(u))for(p in u)y(u,p)&&delete u[p];else return a.set(f,s,null)}}},a.push=function(f,s){var u=a.get(f,s);l(u)||(u=[],a.set(f,s,u)),u.push.apply(u,Array.prototype.slice.call(arguments,2))},a.coalesce=function(f,s,u){for(var p,w=0,O=s.length;w<O;w++)if((p=a.get(f,s[w]))!==void 0)return p;return u},a.get=function(f,s,u){if(typeof s=="number"&&(s=[s]),!s||s.length===0)return f;if(f==null)return u;if(typeof s=="string")return a.get(f,s.split("."),u);var p=g(s[0]),w=$(f,p);return w===void 0?u:s.length===1?w:a.get(f[p],s.slice(1),u)},a.del=function(s,u){if(typeof u=="number"&&(u=[u]),s==null||n(u))return s;if(typeof u=="string")return a.del(s,u.split("."));var p=g(u[0]);if($(s,p),!y(s,p))return s;if(u.length===1)l(s)?s.splice(p,1):delete s[p];else return a.del(s[p],u.slice(1));return s},a}var m=i();return m.create=i,m.withInheritedProps=i({includeInheritedProps:!0}),m})});var ao={};an(ao,{checkTypesMini:()=>so});var _=V(Je(),1),I=V(Re(),1);var ne=V(Nt(),1),Mt=V(Vt(),1);function ni(e){if(e.includes(".")){let t=e.lastIndexOf(".");if(!e.slice(0,t).includes("."))return e.slice(0,t);for(let n=t-1;n--;)if(e[n]===".")return e.slice(n+1,t)}return null}var Ee=ni;function Ae(e,t){let n={now:!1};function r(c,l,d,g){let i=(0,ne.default)(c),m,o=E({depth:-1,path:""},d);if(o.depth+=1,Array.isArray(i))for(let a=0,y=i.length;a<y&&!g.now;a++){let h=o.path?`${o.path}.${a}`:`${a}`;i[a]!==void 0?(o.parent=(0,ne.default)(i),o.parentType="array",o.parentKey=Ee(h),m=r(l(i[a],void 0,R(E({},o),{path:h}),g),l,R(E({},o),{path:h}),g),Number.isNaN(m)&&a<i.length?(i.splice(a,1),a-=1):i[a]=m):i.splice(a,1)}else if((0,Mt.default)(i))for(let a in i){if(g.now&&a!=null)break;let y=o.path?`${o.path}.${a}`:a;o.depth===0&&a!=null&&(o.topmostKey=a),o.parent=(0,ne.default)(i),o.parentType="object",o.parentKey=Ee(y),m=r(l(a,i[a],R(E({},o),{path:y}),g),l,R(E({},o),{path:y}),g),Number.isNaN(m)?delete i[a]:i[a]=m}return i}return r(e,t,{},n)}var Zt=V(Yt(),1);function Pe(e){return typeof e=="string"?e.length?[e]:[]:e}var ce=V(Qt(),1);function Ne(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Ce=new Map,Xt=(e,t)=>{if(!Array.isArray(e))switch(typeof e){case"string":e=[e];break;case"undefined":e=[];break;default:throw new TypeError(`Expected '${t}' to be a string or an array, but got a type of '${typeof e}'`)}return e.filter(n=>{if(typeof n!="string"){if(typeof n=="undefined")return!1;throw new TypeError(`Expected '${t}' to be an array of strings, but found a type of '${typeof n}' in the array`)}return!0})},no=(e,t)=>{t=E({caseSensitive:!1},t);let n=e+JSON.stringify(t);if(Ce.has(n))return Ce.get(n);let r=e[0]==="!";r&&(e=e.slice(1)),e=Ne(e).replace(/\\\*/g,"[\\s\\S]*");let c=new RegExp(`^${e}$`,t.caseSensitive?"":"i");return c.negated=r,Ce.set(n,c),c},ro=(e,t,n,r)=>{if(e=Xt(e,"inputs"),t=Xt(t,"patterns"),t.length===0)return[];t=t.map(d=>no(d,n));let{allPatterns:c}=n||{},l=[];for(let d of e){let g,i=[...t].fill(!1);for(let[m,o]of t.entries())if(o.test(d)&&(i[m]=!0,g=!o.negated,!g))break;if(!(g===!1||g===void 0&&t.some(m=>!m.negated)||c&&i.some((m,o)=>!m&&!t[o].negated))&&(l.push(d),r))break}return l};function ae(e,t,n){return ro(e,t,n,!0).length>0}var io={ignoreKeys:[],ignorePaths:[],acceptArrays:!1,acceptArraysIgnore:[],enforceStrictKeyset:!0,schema:{},msg:"check-types-mini",optsVarName:"opts"};function oo(e,t,n){function r(o){return o!=null}function c(o){return(0,_.default)(o)==="Object"}function l(o,a){return typeof a=="string"&&(a=Pe(a)),Array.from(o).filter(y=>!a.some(h=>ae(y,h,{caseSensitive:!0})))}let d=Object.prototype.hasOwnProperty,g=["any","anything","every","everything","all","whatever","whatevs"];if(!r(e))throw new Error("check-types-mini: [THROW_ID_01] First argument is missing!");let i=E(E({},io),n);if(typeof i.ignoreKeys=="string"&&(i.ignoreKeys=[i.ignoreKeys]),typeof i.ignorePaths=="string"&&(i.ignorePaths=[i.ignorePaths]),typeof i.acceptArraysIgnore=="string"&&(i.acceptArraysIgnore=[i.acceptArraysIgnore]),i.msg=`${i.msg}`.trim(),i.msg[i.msg.length-1]===":"&&(i.msg=i.msg.slice(0,i.msg.length-1).trim()),c(i.schema))Object.keys(i.schema).forEach(o=>{if(c(i.schema[o])){let a={};Ae(i.schema[o],(y,h,$)=>{let S=h!==void 0?h:y;return!Array.isArray(S)&&!c(S)&&(a[`${o}.${$.path}`]=S),S}),delete i.schema[o],i.schema=E(E({},i.schema),a)}}),Object.keys(i.schema).forEach(o=>{Array.isArray(i.schema[o])||(i.schema[o]=[i.schema[o]]),i.schema[o]=i.schema[o].map(a=>`${a}`.toLowerCase().trim())});else if(i.schema!=null)throw new Error(`check-types-mini: opts.schema was customised to ${JSON.stringify(i.schema,null,0)} which is not object but ${typeof i.schema}`);if(r(t)||(t={}),i.enforceStrictKeyset)if(r(i.schema)&&Object.keys(i.schema).length>0){if(t&&l((0,I.default)(Object.keys(e),Object.keys(t).concat(Object.keys(i.schema))),i.ignoreKeys).length){let o=(0,I.default)(Object.keys(e),Object.keys(t).concat(Object.keys(i.schema)));throw new TypeError(`${i.msg}: ${i.optsVarName}.enforceStrictKeyset is on and the following key${o.length>1?"s":""} ${o.length>1?"are":"is"} not covered by schema and/or reference objects: ${o.join(", ")}`)}}else if(c(t)&&Object.keys(t).length>0){if(l((0,I.default)(Object.keys(e),Object.keys(t)),i.ignoreKeys).length!==0){let o=(0,I.default)(Object.keys(e),Object.keys(t));throw new TypeError(`${i.msg}: The input object has key${o.length>1?"s":""} which ${o.length>1?"are":"is"} not covered by the reference object: ${o.join(", ")}`)}else if(l((0,I.default)(Object.keys(t),Object.keys(e)),i.ignoreKeys).length!==0){let o=(0,I.default)(Object.keys(t),Object.keys(e));throw new TypeError(`${i.msg}: The reference object has key${o.length>1?"s":""} which ${o.length>1?"are":"is"} not present in the input object: ${o.join(", ")}`)}}else throw new TypeError(`${i.msg}: Both ${i.optsVarName}.schema and reference objects are missing! We don't have anything to match the keys as you requested via opts.enforceStrictKeyset!`);let m=[];Ae(e,(o,a,y)=>{let h=a,$=o;if(y.parentType==="array"&&($=void 0,h=o),Array.isArray(m)&&m.length&&m.some(u=>y.path.startsWith(u))||$&&i.ignoreKeys.some(u=>ae($,u))||i.ignorePaths.some(u=>ae(y.path,u)))return h;let S=!(!c(h)&&!Array.isArray(h)&&Array.isArray(y.parent)),f=!1;c(i.schema)&&d.call(i.schema,y.path)&&(f=!0);let s=!1;if(c(t)&&ce.default.has(t,y.path)&&(s=!0),i.enforceStrictKeyset&&S&&!f&&!s)throw new TypeError(`${i.msg}: ${i.optsVarName}.${y.path} is neither covered by reference object (second input argument), nor ${i.optsVarName}.schema! To stop this error, turn off ${i.optsVarName}.enforceStrictKeyset or provide some type reference (2nd argument or ${i.optsVarName}.schema).
10
+ var checkTypesMini=(()=>{var er=Object.create;var R=Object.defineProperty,tr=Object.defineProperties,rr=Object.getOwnPropertyDescriptor,nr=Object.getOwnPropertyDescriptors,ir=Object.getOwnPropertyNames,Ve=Object.getOwnPropertySymbols,or=Object.getPrototypeOf,ke=Object.prototype.hasOwnProperty,sr=Object.prototype.propertyIsEnumerable;var Me=(e,t,r)=>t in e?R(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,E=(e,t)=>{for(var r in t||(t={}))ke.call(t,r)&&Me(e,r,t[r]);if(Ve)for(var r of Ve(t))sr.call(t,r)&&Me(e,r,t[r]);return e},F=(e,t)=>tr(e,nr(t));var I=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ar=(e,t)=>{for(var r in t)R(e,r,{get:t[r],enumerable:!0})},Le=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let c of ir(t))!ke.call(e,c)&&c!==r&&R(e,c,{get:()=>t[c],enumerable:!(n=rr(t,c))||n.enumerable});return e};var V=(e,t,r)=>(r=e!=null?er(or(e)):{},Le(t||!e||!e.__esModule?R(r,"default",{value:e,enumerable:!0}):r,e)),cr=e=>Le(R({},"__esModule",{value:!0}),e);var Ke=I((ue,le)=>{(function(e,t){typeof ue=="object"&&typeof le<"u"?le.exports=t():typeof define=="function"&&define.amd?define(t):e.typeDetect=t()})(ue,function(){"use strict";var e=typeof Promise=="function",t=typeof self=="object"?self:global,r=typeof Symbol<"u",n=typeof Map<"u",c=typeof Set<"u",l=typeof WeakMap<"u",d=typeof WeakSet<"u",h=typeof DataView<"u",i=r&&typeof Symbol.iterator<"u",m=r&&typeof Symbol.toStringTag<"u",o=c&&typeof Set.prototype.entries=="function",a=n&&typeof Map.prototype.entries=="function",y=o&&Object.getPrototypeOf(new Set().entries()),p=a&&Object.getPrototypeOf(new Map().entries()),$=i&&typeof Array.prototype[Symbol.iterator]=="function",S=$&&Object.getPrototypeOf([][Symbol.iterator]()),f=i&&typeof String.prototype[Symbol.iterator]=="function",s=f&&Object.getPrototypeOf(""[Symbol.iterator]()),u=8,g=-1;function w(O){var De=typeof O;if(De!=="object")return De;if(O===null)return"null";if(O===t)return"global";if(Array.isArray(O)&&(m===!1||!(Symbol.toStringTag in O)))return"Array";if(typeof window=="object"&&window!==null){if(typeof window.location=="object"&&O===window.location)return"Location";if(typeof window.document=="object"&&O===window.document)return"Document";if(typeof window.navigator=="object"){if(typeof window.navigator.mimeTypes=="object"&&O===window.navigator.mimeTypes)return"MimeTypeArray";if(typeof window.navigator.plugins=="object"&&O===window.navigator.plugins)return"PluginArray"}if((typeof window.HTMLElement=="function"||typeof window.HTMLElement=="object")&&O instanceof window.HTMLElement){if(O.tagName==="BLOCKQUOTE")return"HTMLQuoteElement";if(O.tagName==="TD")return"HTMLTableDataCellElement";if(O.tagName==="TH")return"HTMLTableHeaderCellElement"}}var Ie=m&&O[Symbol.toStringTag];if(typeof Ie=="string")return Ie;var v=Object.getPrototypeOf(O);return v===RegExp.prototype?"RegExp":v===Date.prototype?"Date":e&&v===Promise.prototype?"Promise":c&&v===Set.prototype?"Set":n&&v===Map.prototype?"Map":d&&v===WeakSet.prototype?"WeakSet":l&&v===WeakMap.prototype?"WeakMap":h&&v===DataView.prototype?"DataView":n&&v===p?"Map Iterator":c&&v===y?"Set Iterator":$&&v===S?"Array Iterator":f&&v===s?"String Iterator":v===null?"Object":Object.prototype.toString.call(O).slice(u,g)}return w})});var Re=I((fo,Je)=>{function ur(e,t){for(var r=-1,n=e?e.length:0,c=Array(n);++r<n;)c[r]=t(e[r],r,e);return c}function lr(e,t,r,n){for(var c=e.length,l=r+(n?1:-1);n?l--:++l<c;)if(t(e[l],l,e))return l;return-1}function fr(e,t,r){if(t!==t)return lr(e,hr,r);for(var n=r-1,c=e.length;++n<c;)if(e[n]===t)return n;return-1}function pr(e,t,r,n){for(var c=r-1,l=e.length;++c<l;)if(n(e[c],t))return c;return-1}function hr(e){return e!==e}function gr(e){return function(t){return e(t)}}var yr=Array.prototype,He=yr.splice;function dr(e,t,r,n){var c=n?pr:fr,l=-1,d=t.length,h=e;for(e===t&&(t=mr(t)),r&&(h=ur(e,gr(r)));++l<d;)for(var i=0,m=t[l],o=r?r(m):m;(i=c(h,o,i,n))>-1;)h!==e&&He.call(h,i,1),He.call(e,i,1);return e}function mr(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}function br(e,t){return e&&e.length&&t&&t.length?dr(e,t):e}Je.exports=br});var Pt=I((G,M)=>{var $r=200,et="__lodash_hash_undefined__",tt=9007199254740991,be="[object Arguments]",wr="[object Array]",rt="[object Boolean]",nt="[object Date]",Or="[object Error]",$e="[object Function]",it="[object GeneratorFunction]",Y="[object Map]",ot="[object Number]",we="[object Object]",Fe="[object Promise]",st="[object RegExp]",q="[object Set]",at="[object String]",ct="[object Symbol]",pe="[object WeakMap]",ut="[object ArrayBuffer]",Q="[object DataView]",lt="[object Float32Array]",ft="[object Float64Array]",pt="[object Int8Array]",ht="[object Int16Array]",gt="[object Int32Array]",yt="[object Uint8Array]",dt="[object Uint8ClampedArray]",mt="[object Uint16Array]",bt="[object Uint32Array]",_r=/[\\^$.*+?()[\]{}|]/g,Sr=/\w*$/,vr=/^\[object .+?Constructor\]$/,Er=/^(?:0|[1-9]\d*)$/,b={};b[be]=b[wr]=b[ut]=b[Q]=b[rt]=b[nt]=b[lt]=b[ft]=b[pt]=b[ht]=b[gt]=b[Y]=b[ot]=b[we]=b[st]=b[q]=b[at]=b[ct]=b[yt]=b[dt]=b[mt]=b[bt]=!0;b[Or]=b[$e]=b[pe]=!1;var Ar=typeof global=="object"&&global&&global.Object===Object&&global,xr=typeof self=="object"&&self&&self.Object===Object&&self,A=Ar||xr||Function("return this")(),$t=typeof G=="object"&&G&&!G.nodeType&&G,Ge=$t&&typeof M=="object"&&M&&!M.nodeType&&M,Tr=Ge&&Ge.exports===$t;function jr(e,t){return e.set(t[0],t[1]),e}function Pr(e,t){return e.add(t),e}function Nr(e,t){for(var r=-1,n=e?e.length:0;++r<n&&t(e[r],r,e)!==!1;);return e}function Cr(e,t){for(var r=-1,n=t.length,c=e.length;++r<n;)e[c+r]=t[r];return e}function wt(e,t,r,n){var c=-1,l=e?e.length:0;for(n&&l&&(r=e[++c]);++c<l;)r=t(r,e[c],c,e);return r}function Dr(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function Ir(e,t){return e==null?void 0:e[t]}function Ot(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch(r){}return t}function Ue(e){var t=-1,r=Array(e.size);return e.forEach(function(n,c){r[++t]=[c,n]}),r}function Oe(e,t){return function(r){return e(t(r))}}function We(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var Vr=Array.prototype,Mr=Function.prototype,X=Object.prototype,fe=A["__core-js_shared__"],Be=function(){var e=/[^.]+$/.exec(fe&&fe.keys&&fe.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),_t=Mr.toString,T=X.hasOwnProperty,Z=X.toString,kr=RegExp("^"+_t.call(T).replace(_r,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ye=Tr?A.Buffer:void 0,qe=A.Symbol,Qe=A.Uint8Array,Lr=Oe(Object.getPrototypeOf,Object),Kr=Object.create,Hr=X.propertyIsEnumerable,Jr=Vr.splice,Xe=Object.getOwnPropertySymbols,Rr=Ye?Ye.isBuffer:void 0,Fr=Oe(Object.keys,Object),he=K(A,"DataView"),U=K(A,"Map"),ge=K(A,"Promise"),ye=K(A,"Set"),de=K(A,"WeakMap"),W=K(Object,"create"),Gr=N(he),Ur=N(U),Wr=N(ge),Br=N(ye),Yr=N(de),Ze=qe?qe.prototype:void 0,ze=Ze?Ze.valueOf:void 0;function P(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function qr(){this.__data__=W?W(null):{}}function Qr(e){return this.has(e)&&delete this.__data__[e]}function Xr(e){var t=this.__data__;if(W){var r=t[e];return r===et?void 0:r}return T.call(t,e)?t[e]:void 0}function Zr(e){var t=this.__data__;return W?t[e]!==void 0:T.call(t,e)}function zr(e,t){var r=this.__data__;return r[e]=W&&t===void 0?et:t,this}P.prototype.clear=qr;P.prototype.delete=Qr;P.prototype.get=Xr;P.prototype.has=Zr;P.prototype.set=zr;function x(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function en(){this.__data__=[]}function tn(e){var t=this.__data__,r=z(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Jr.call(t,r,1),!0}function rn(e){var t=this.__data__,r=z(t,e);return r<0?void 0:t[r][1]}function nn(e){return z(this.__data__,e)>-1}function on(e,t){var r=this.__data__,n=z(r,e);return n<0?r.push([e,t]):r[n][1]=t,this}x.prototype.clear=en;x.prototype.delete=tn;x.prototype.get=rn;x.prototype.has=nn;x.prototype.set=on;function k(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function sn(){this.__data__={hash:new P,map:new(U||x),string:new P}}function an(e){return ee(this,e).delete(e)}function cn(e){return ee(this,e).get(e)}function un(e){return ee(this,e).has(e)}function ln(e,t){return ee(this,e).set(e,t),this}k.prototype.clear=sn;k.prototype.delete=an;k.prototype.get=cn;k.prototype.has=un;k.prototype.set=ln;function L(e){this.__data__=new x(e)}function fn(){this.__data__=new x}function pn(e){return this.__data__.delete(e)}function hn(e){return this.__data__.get(e)}function gn(e){return this.__data__.has(e)}function yn(e,t){var r=this.__data__;if(r instanceof x){var n=r.__data__;if(!U||n.length<$r-1)return n.push([e,t]),this;r=this.__data__=new k(n)}return r.set(e,t),this}L.prototype.clear=fn;L.prototype.delete=pn;L.prototype.get=hn;L.prototype.has=gn;L.prototype.set=yn;function dn(e,t){var r=Se(e)||Hn(e)?Dr(e.length,String):[],n=r.length,c=!!n;for(var l in e)(t||T.call(e,l))&&!(c&&(l=="length"||Mn(l,n)))&&r.push(l);return r}function St(e,t,r){var n=e[t];(!(T.call(e,t)&&xt(n,r))||r===void 0&&!(t in e))&&(e[t]=r)}function z(e,t){for(var r=e.length;r--;)if(xt(e[r][0],t))return r;return-1}function mn(e,t){return e&&vt(t,ve(t),e)}function me(e,t,r,n,c,l,d){var h;if(n&&(h=l?n(e,c,l,d):n(e)),h!==void 0)return h;if(!te(e))return e;var i=Se(e);if(i){if(h=Dn(e),!t)return Pn(e,h)}else{var m=j(e),o=m==$e||m==it;if(Rn(e))return Sn(e,t);if(m==we||m==be||o&&!l){if(Ot(e))return l?e:{};if(h=In(o?{}:e),!t)return Nn(e,mn(h,e))}else{if(!b[m])return l?e:{};h=Vn(e,m,me,t)}}d||(d=new L);var a=d.get(e);if(a)return a;if(d.set(e,h),!i)var y=r?Cn(e):ve(e);return Nr(y||e,function(p,$){y&&($=p,p=e[$]),St(h,$,me(p,t,r,n,$,e,d))}),h}function bn(e){return te(e)?Kr(e):{}}function $n(e,t,r){var n=t(e);return Se(e)?n:Cr(n,r(e))}function wn(e){return Z.call(e)}function On(e){if(!te(e)||Ln(e))return!1;var t=jt(e)||Ot(e)?kr:vr;return t.test(N(e))}function _n(e){if(!At(e))return Fr(e);var t=[];for(var r in Object(e))T.call(e,r)&&r!="constructor"&&t.push(r);return t}function Sn(e,t){if(t)return e.slice();var r=new e.constructor(e.length);return e.copy(r),r}function _e(e){var t=new e.constructor(e.byteLength);return new Qe(t).set(new Qe(e)),t}function vn(e,t){var r=t?_e(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function En(e,t,r){var n=t?r(Ue(e),!0):Ue(e);return wt(n,jr,new e.constructor)}function An(e){var t=new e.constructor(e.source,Sr.exec(e));return t.lastIndex=e.lastIndex,t}function xn(e,t,r){var n=t?r(We(e),!0):We(e);return wt(n,Pr,new e.constructor)}function Tn(e){return ze?Object(ze.call(e)):{}}function jn(e,t){var r=t?_e(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function Pn(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}function vt(e,t,r,n){r||(r={});for(var c=-1,l=t.length;++c<l;){var d=t[c],h=n?n(r[d],e[d],d,r,e):void 0;St(r,d,h===void 0?e[d]:h)}return r}function Nn(e,t){return vt(e,Et(e),t)}function Cn(e){return $n(e,ve,Et)}function ee(e,t){var r=e.__data__;return kn(t)?r[typeof t=="string"?"string":"hash"]:r.map}function K(e,t){var r=Ir(e,t);return On(r)?r:void 0}var Et=Xe?Oe(Xe,Object):Un,j=wn;(he&&j(new he(new ArrayBuffer(1)))!=Q||U&&j(new U)!=Y||ge&&j(ge.resolve())!=Fe||ye&&j(new ye)!=q||de&&j(new de)!=pe)&&(j=function(e){var t=Z.call(e),r=t==we?e.constructor:void 0,n=r?N(r):void 0;if(n)switch(n){case Gr:return Q;case Ur:return Y;case Wr:return Fe;case Br:return q;case Yr:return pe}return t});function Dn(e){var t=e.length,r=e.constructor(t);return t&&typeof e[0]=="string"&&T.call(e,"index")&&(r.index=e.index,r.input=e.input),r}function In(e){return typeof e.constructor=="function"&&!At(e)?bn(Lr(e)):{}}function Vn(e,t,r,n){var c=e.constructor;switch(t){case ut:return _e(e);case rt:case nt:return new c(+e);case Q:return vn(e,n);case lt:case ft:case pt:case ht:case gt:case yt:case dt:case mt:case bt:return jn(e,n);case Y:return En(e,n,r);case ot:case at:return new c(e);case st:return An(e);case q:return xn(e,n,r);case ct:return Tn(e)}}function Mn(e,t){return t=t==null?tt:t,!!t&&(typeof e=="number"||Er.test(e))&&e>-1&&e%1==0&&e<t}function kn(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Ln(e){return!!Be&&Be in e}function At(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||X;return e===r}function N(e){if(e!=null){try{return _t.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Kn(e){return me(e,!0,!0)}function xt(e,t){return e===t||e!==e&&t!==t}function Hn(e){return Jn(e)&&T.call(e,"callee")&&(!Hr.call(e,"callee")||Z.call(e)==be)}var Se=Array.isArray;function Tt(e){return e!=null&&Fn(e.length)&&!jt(e)}function Jn(e){return Gn(e)&&Tt(e)}var Rn=Rr||Wn;function jt(e){var t=te(e)?Z.call(e):"";return t==$e||t==it}function Fn(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=tt}function te(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function Gn(e){return!!e&&typeof e=="object"}function ve(e){return Tt(e)?dn(e):_n(e)}function Un(){return[]}function Wn(){return!1}M.exports=Kn});var It=I((po,Dt)=>{var Bn="[object Object]";function Yn(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch(r){}return t}function qn(e,t){return function(r){return e(t(r))}}var Qn=Function.prototype,Nt=Object.prototype,Ct=Qn.toString,Xn=Nt.hasOwnProperty,Zn=Ct.call(Object),zn=Nt.toString,ei=qn(Object.getPrototypeOf,Object);function ti(e){return!!e&&typeof e=="object"}function ri(e){if(!ti(e)||zn.call(e)!=Bn||Yn(e))return!1;var t=ei(e);if(t===null)return!0;var r=Xn.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Ct.call(r)==Zn}Dt.exports=ri});var Bt=I((mo,Wt)=>{var Te="__lodash_hash_undefined__",ii=9007199254740991,oi="[object Function]",si="[object GeneratorFunction]",ai=/[\\^$.*+?()[\]{}|]/g,ci=/^\[object .+?Constructor\]$/,ui=typeof global=="object"&&global&&global.Object===Object&&global,li=typeof self=="object"&&self&&self.Object===Object&&self,Kt=ui||li||Function("return this")();function fi(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function pi(e,t){var r=e?e.length:0;return!!r&&yi(e,t,0)>-1}function hi(e,t,r){for(var n=-1,c=e?e.length:0;++n<c;)if(r(t,e[n]))return!0;return!1}function Ht(e,t){for(var r=-1,n=e?e.length:0,c=Array(n);++r<n;)c[r]=t(e[r],r,e);return c}function gi(e,t,r,n){for(var c=e.length,l=r+(n?1:-1);n?l--:++l<c;)if(t(e[l],l,e))return l;return-1}function yi(e,t,r){if(t!==t)return gi(e,di,r);for(var n=r-1,c=e.length;++n<c;)if(e[n]===t)return n;return-1}function di(e){return e!==e}function mi(e){return function(t){return e(t)}}function Mt(e,t){return e.has(t)}function bi(e,t){return e==null?void 0:e[t]}function $i(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch(r){}return t}var wi=Array.prototype,Oi=Function.prototype,Jt=Object.prototype,xe=Kt["__core-js_shared__"],kt=function(){var e=/[^.]+$/.exec(xe&&xe.keys&&xe.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Rt=Oi.toString,je=Jt.hasOwnProperty,_i=Jt.toString,Si=RegExp("^"+Rt.call(je).replace(ai,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),vi=wi.splice,Lt=Math.max,Ei=Math.min,Ai=Ft(Kt,"Map"),B=Ft(Object,"create");function C(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function xi(){this.__data__=B?B(null):{}}function Ti(e){return this.has(e)&&delete this.__data__[e]}function ji(e){var t=this.__data__;if(B){var r=t[e];return r===Te?void 0:r}return je.call(t,e)?t[e]:void 0}function Pi(e){var t=this.__data__;return B?t[e]!==void 0:je.call(t,e)}function Ni(e,t){var r=this.__data__;return r[e]=B&&t===void 0?Te:t,this}C.prototype.clear=xi;C.prototype.delete=Ti;C.prototype.get=ji;C.prototype.has=Pi;C.prototype.set=Ni;function H(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Ci(){this.__data__=[]}function Di(e){var t=this.__data__,r=ie(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():vi.call(t,r,1),!0}function Ii(e){var t=this.__data__,r=ie(t,e);return r<0?void 0:t[r][1]}function Vi(e){return ie(this.__data__,e)>-1}function Mi(e,t){var r=this.__data__,n=ie(r,e);return n<0?r.push([e,t]):r[n][1]=t,this}H.prototype.clear=Ci;H.prototype.delete=Di;H.prototype.get=Ii;H.prototype.has=Vi;H.prototype.set=Mi;function J(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function ki(){this.__data__={hash:new C,map:new(Ai||H),string:new C}}function Li(e){return oe(this,e).delete(e)}function Ki(e){return oe(this,e).get(e)}function Hi(e){return oe(this,e).has(e)}function Ji(e,t){return oe(this,e).set(e,t),this}J.prototype.clear=ki;J.prototype.delete=Li;J.prototype.get=Ki;J.prototype.has=Hi;J.prototype.set=Ji;function ne(e){var t=-1,r=e?e.length:0;for(this.__data__=new J;++t<r;)this.add(e[t])}function Ri(e){return this.__data__.set(e,Te),this}function Fi(e){return this.__data__.has(e)}ne.prototype.add=ne.prototype.push=Ri;ne.prototype.has=Fi;function ie(e,t){for(var r=e.length;r--;)if(Zi(e[r][0],t))return r;return-1}function Gi(e,t,r){for(var n=r?hi:pi,c=e[0].length,l=e.length,d=l,h=Array(l),i=1/0,m=[];d--;){var o=e[d];d&&t&&(o=Ht(o,mi(t))),i=Ei(o.length,i),h[d]=!r&&(t||c>=120&&o.length>=120)?new ne(d&&o):void 0}o=e[0];var a=-1,y=h[0];e:for(;++a<c&&m.length<i;){var p=o[a],$=t?t(p):p;if(p=r||p!==0?p:0,!(y?Mt(y,$):n(m,$,r))){for(d=l;--d;){var S=h[d];if(!(S?Mt(S,$):n(e[d],$,r)))continue e}y&&y.push($),m.push(p)}}return m}function Ui(e){if(!Ut(e)||qi(e))return!1;var t=Gt(e)||$i(e)?Si:ci;return t.test(Qi(e))}function Wi(e,t){return t=Lt(t===void 0?e.length-1:t,0),function(){for(var r=arguments,n=-1,c=Lt(r.length-t,0),l=Array(c);++n<c;)l[n]=r[t+n];n=-1;for(var d=Array(t+1);++n<t;)d[n]=r[n];return d[t]=l,fi(e,this,d)}}function Bi(e){return eo(e)?e:[]}function oe(e,t){var r=e.__data__;return Yi(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Ft(e,t){var r=bi(e,t);return Ui(r)?r:void 0}function Yi(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function qi(e){return!!kt&&kt in e}function Qi(e){if(e!=null){try{return Rt.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var Xi=Wi(function(e){var t=Ht(e,Bi);return t.length&&t[0]===e[0]?Gi(t):[]});function Zi(e,t){return e===t||e!==e&&t!==t}function zi(e){return e!=null&&to(e.length)&&!Gt(e)}function eo(e){return ro(e)&&zi(e)}function Gt(e){var t=Ut(e)?_i.call(e):"";return t==oi||t==si}function to(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=ii}function Ut(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function ro(e){return!!e&&typeof e=="object"}Wt.exports=Xi});var qt=I((Yt,se)=>{(function(e,t){"use strict";typeof se=="object"&&typeof se.exports=="object"?se.exports=t():typeof define=="function"&&define.amd?define([],t):e.objectPath=t()})(Yt,function(){"use strict";var e=Object.prototype.toString;function t(o,a){return o==null?!1:Object.prototype.hasOwnProperty.call(o,a)}function r(o){if(!o||l(o)&&o.length===0)return!0;if(typeof o!="string"){for(var a in o)if(t(o,a))return!1;return!0}return!1}function n(o){return e.call(o)}function c(o){return typeof o=="object"&&n(o)==="[object Object]"}var l=Array.isArray||function(o){return e.call(o)==="[object Array]"};function d(o){return typeof o=="boolean"||n(o)==="[object Boolean]"}function h(o){var a=parseInt(o);return a.toString()===o?a:o}function i(o){o=o||{};var a=function(f){return Object.keys(a).reduce(function(s,u){return u==="create"||typeof a[u]=="function"&&(s[u]=a[u].bind(a,f)),s},{})},y;o.includeInheritedProps?y=function(){return!0}:y=function(f,s){return typeof s=="number"&&Array.isArray(f)||t(f,s)};function p(f,s){if(y(f,s))return f[s]}var $;o.includeInheritedProps?$=function(f,s){typeof s!="string"&&typeof s!="number"&&(s=String(s));var u=p(f,s);if(s==="__proto__"||s==="prototype"||s==="constructor"&&typeof u=="function")throw new Error("For security reasons, object's magic properties cannot be set");return u}:$=function(f,s){return p(f,s)};function S(f,s,u,g){if(typeof s=="number"&&(s=[s]),!s||s.length===0)return f;if(typeof s=="string")return S(f,s.split(".").map(h),u,g);var w=s[0],O=$(f,w);return s.length===1?((O===void 0||!g)&&(f[w]=u),O):(O===void 0&&(typeof s[1]=="number"?f[w]=[]:f[w]={}),S(f[w],s.slice(1),u,g))}return a.has=function(f,s){if(typeof s=="number"?s=[s]:typeof s=="string"&&(s=s.split(".")),!s||s.length===0)return!!f;for(var u=0;u<s.length;u++){var g=h(s[u]);if(typeof g=="number"&&l(f)&&g<f.length||(o.includeInheritedProps?g in Object(f):t(f,g)))f=f[g];else return!1}return!0},a.ensureExists=function(f,s,u){return S(f,s,u,!0)},a.set=function(f,s,u,g){return S(f,s,u,g)},a.insert=function(f,s,u,g){var w=a.get(f,s);g=~~g,l(w)||(w=[],a.set(f,s,w)),w.splice(g,0,u)},a.empty=function(f,s){if(!r(s)&&f!=null){var u,g;if(!!(u=a.get(f,s))){if(typeof u=="string")return a.set(f,s,"");if(d(u))return a.set(f,s,!1);if(typeof u=="number")return a.set(f,s,0);if(l(u))u.length=0;else if(c(u))for(g in u)y(u,g)&&delete u[g];else return a.set(f,s,null)}}},a.push=function(f,s){var u=a.get(f,s);l(u)||(u=[],a.set(f,s,u)),u.push.apply(u,Array.prototype.slice.call(arguments,2))},a.coalesce=function(f,s,u){for(var g,w=0,O=s.length;w<O;w++)if((g=a.get(f,s[w]))!==void 0)return g;return u},a.get=function(f,s,u){if(typeof s=="number"&&(s=[s]),!s||s.length===0)return f;if(f==null)return u;if(typeof s=="string")return a.get(f,s.split("."),u);var g=h(s[0]),w=$(f,g);return w===void 0?u:s.length===1?w:a.get(f[g],s.slice(1),u)},a.del=function(s,u){if(typeof u=="number"&&(u=[u]),s==null||r(u))return s;if(typeof u=="string")return a.del(s,u.split("."));var g=h(u[0]);if($(s,g),!y(s,g))return s;if(u.length===1)l(s)?s.splice(g,1):delete s[g];else return a.del(s[g],u.slice(1));return s},a}var m=i();return m.create=i,m.withInheritedProps=i({includeInheritedProps:!0}),m})});var uo={};ar(uo,{checkTypesMini:()=>co,defaults:()=>zt,version:()=>so});var _=V(Ke(),1),D=V(Re(),1);var re=V(Pt(),1),Vt=V(It(),1);function ni(e){if(e.includes(".")){let t=e.lastIndexOf(".");if(!e.slice(0,t).includes("."))return e.slice(0,t);for(let r=t-1;r--;)if(e[r]===".")return e.slice(r+1,t)}return null}var Ee=ni;function Ae(e,t){let r={now:!1};function n(c,l,d,h){let i=(0,re.default)(c),m,o=E({depth:-1,path:""},d);if(o.depth+=1,Array.isArray(i))for(let a=0,y=i.length;a<y&&!h.now;a++){let p=o.path?`${o.path}.${a}`:`${a}`;i[a]!==void 0?(o.parent=(0,re.default)(i),o.parentType="array",o.parentKey=Ee(p),m=n(l(i[a],void 0,F(E({},o),{path:p}),h),l,F(E({},o),{path:p}),h),Number.isNaN(m)&&a<i.length?(i.splice(a,1),a-=1):i[a]=m):i.splice(a,1)}else if((0,Vt.default)(i))for(let a in i){if(h.now&&a!=null)break;let y=o.path?`${o.path}.${a}`:a;o.depth===0&&a!=null&&(o.topmostKey=a),o.parent=(0,re.default)(i),o.parentType="object",o.parentKey=Ee(y),m=n(l(a,i[a],F(E({},o),{path:y}),h),l,F(E({},o),{path:y}),h),Number.isNaN(m)?delete i[a]:i[a]=m}return i}return n(e,t,{},r)}var Zt=V(Bt(),1);function Pe(e){return typeof e=="string"?e.length?[e]:[]:e}var ce=V(qt(),1);function Ne(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Ce=new Map,Qt=(e,t)=>{if(!Array.isArray(e))switch(typeof e){case"string":e=[e];break;case"undefined":e=[];break;default:throw new TypeError(`Expected '${t}' to be a string or an array, but got a type of '${typeof e}'`)}return e.filter(r=>{if(typeof r!="string"){if(typeof r>"u")return!1;throw new TypeError(`Expected '${t}' to be an array of strings, but found a type of '${typeof r}' in the array`)}return!0})},no=(e,t)=>{t=E({caseSensitive:!1},t);let r=e+JSON.stringify(t);if(Ce.has(r))return Ce.get(r);let n=e[0]==="!";n&&(e=e.slice(1)),e=Ne(e).replace(/\\\*/g,"[\\s\\S]*");let c=new RegExp(`^${e}$`,t.caseSensitive?"":"i");return c.negated=n,Ce.set(r,c),c},io=(e,t,r,n)=>{if(e=Qt(e,"inputs"),t=Qt(t,"patterns"),t.length===0)return[];t=t.map(d=>no(d,r));let{allPatterns:c}=r||{},l=[];for(let d of e){let h,i=[...t].fill(!1);for(let[m,o]of t.entries())if(o.test(d)&&(i[m]=!0,h=!o.negated,!h))break;if(!(h===!1||h===void 0&&t.some(m=>!m.negated)||c&&i.some((m,o)=>!m&&!t[o].negated))&&(l.push(d),n))break}return l};function ae(e,t,r){return io(e,t,r,!0).length>0}var Xt="7.1.1";var so=Xt,zt={ignoreKeys:[],ignorePaths:[],acceptArrays:!1,acceptArraysIgnore:[],enforceStrictKeyset:!0,schema:{},msg:"check-types-mini",optsVarName:"opts"};function ao(e,t,r){function n(o){return o!=null}function c(o){return(0,_.default)(o)==="Object"}function l(o,a){return typeof a=="string"&&(a=Pe(a)),Array.from(o).filter(y=>!a.some(p=>ae(y,p,{caseSensitive:!0})))}let d=Object.prototype.hasOwnProperty,h=["any","anything","every","everything","all","whatever","whatevs"];if(!n(e))throw new Error("check-types-mini: [THROW_ID_01] First argument is missing!");let i=E(E({},zt),r);if(typeof i.ignoreKeys=="string"&&(i.ignoreKeys=[i.ignoreKeys]),typeof i.ignorePaths=="string"&&(i.ignorePaths=[i.ignorePaths]),typeof i.acceptArraysIgnore=="string"&&(i.acceptArraysIgnore=[i.acceptArraysIgnore]),i.msg=`${i.msg}`.trim(),i.msg[i.msg.length-1]===":"&&(i.msg=i.msg.slice(0,i.msg.length-1).trim()),c(i.schema))Object.keys(i.schema).forEach(o=>{if(c(i.schema[o])){let a={};Ae(i.schema[o],(y,p,$)=>{let S=p!==void 0?p:y;return!Array.isArray(S)&&!c(S)&&(a[`${o}.${$.path}`]=S),S}),delete i.schema[o],i.schema=E(E({},i.schema),a)}}),Object.keys(i.schema).forEach(o=>{Array.isArray(i.schema[o])||(i.schema[o]=[i.schema[o]]),i.schema[o]=i.schema[o].map(a=>`${a}`.toLowerCase().trim())});else if(i.schema!=null)throw new Error(`check-types-mini: opts.schema was customised to ${JSON.stringify(i.schema,null,0)} which is not object but ${typeof i.schema}`);if(n(t)||(t={}),i.enforceStrictKeyset)if(n(i.schema)&&Object.keys(i.schema).length){if(t&&l((0,D.default)(Object.keys(e),Object.keys(t).concat(Object.keys(i.schema))),i.ignoreKeys).length){let o=(0,D.default)(Object.keys(e),Object.keys(t).concat(Object.keys(i.schema)));throw new TypeError(`${i.msg}: ${i.optsVarName}.enforceStrictKeyset is on and the following key${o.length>1?"s":""} ${o.length>1?"are":"is"} not covered by schema and/or reference objects: ${o.join(", ")}`)}}else if(c(t)&&Object.keys(t).length){if(l((0,D.default)(Object.keys(e),Object.keys(t)),i.ignoreKeys).length!==0){let o=(0,D.default)(Object.keys(e),Object.keys(t));throw new TypeError(`${i.msg}: The input object has key${o.length>1?"s":""} which ${o.length>1?"are":"is"} not covered by the reference object: ${o.join(", ")}`)}else if(l((0,D.default)(Object.keys(t),Object.keys(e)),i.ignoreKeys).length!==0){let o=(0,D.default)(Object.keys(t),Object.keys(e));throw new TypeError(`${i.msg}: The reference object has key${o.length>1?"s":""} which ${o.length>1?"are":"is"} not present in the input object: ${o.join(", ")}`)}}else throw new TypeError(`${i.msg}: Both ${i.optsVarName}.schema and reference objects are missing! We don't have anything to match the keys as you requested via opts.enforceStrictKeyset!`);let m=[];Ae(e,(o,a,y)=>{let p=a,$=o;if(y.parentType==="array"&&($=void 0,p=o),Array.isArray(m)&&m.length&&m.some(u=>y.path.startsWith(u))||$&&i.ignoreKeys.some(u=>ae($,u))||i.ignorePaths.some(u=>ae(y.path,u)))return p;let S=!(!c(p)&&!Array.isArray(p)&&Array.isArray(y.parent)),f=!1;c(i.schema)&&d.call(i.schema,y.path)&&(f=!0);let s=!1;if(c(t)&&ce.default.has(t,y.path)&&(s=!0),i.enforceStrictKeyset&&S&&!f&&!s)throw new TypeError(`${i.msg}: ${i.optsVarName}.${y.path} is neither covered by reference object (second input argument), nor ${i.optsVarName}.schema! To stop this error, turn off ${i.optsVarName}.enforceStrictKeyset or provide some type reference (2nd argument or ${i.optsVarName}.schema).
11
11
 
12
12
  Debug info:
13
13
 
@@ -19,13 +19,13 @@ innerObj = ${JSON.stringify(y,null,4)}
19
19
 
20
20
  opts = ${JSON.stringify(i,null,4)}
21
21
 
22
- current = ${JSON.stringify(h,null,4)}
22
+ current = ${JSON.stringify(p,null,4)}
23
23
 
24
- `);if(f){let u=Pe(i.schema[y.path]).map(p=>`${p}`.toLowerCase());if(ce.default.set(i.schema,y.path,u),(0,Zt.default)(u,g).length)m.push(y.path);else if(h!==!0&&h!==!1&&!u.includes((0,_.default)(h).toLowerCase())||(h===!0||h===!1)&&!u.includes(String(h))&&!u.includes("boolean"))if(Array.isArray(h)&&i.acceptArrays){for(let p=0,w=h.length;p<w;p++)if(!u.includes((0,_.default)(h[p]).toLowerCase()))throw new TypeError(`${i.msg}: ${i.optsVarName}.${y.path}.${p}, the ${p}th element (equal to ${JSON.stringify(h[p],null,0)}) is of a type ${(0,_.default)(h[p]).toLowerCase()}, but only the following are allowed by the ${i.optsVarName}.schema: ${u.join(", ")}`)}else throw new TypeError(`${i.msg}: ${i.optsVarName}.${y.path} was customised to ${(0,_.default)(h)!=="string"?'"':""}${JSON.stringify(h,null,0)}${(0,_.default)(h)!=="string"?'"':""} (type: ${(0,_.default)(h).toLowerCase()}) which is not among the allowed types in schema (which is equal to ${JSON.stringify(u,null,0)})`)}else if(t&&c(t)&&s){let u=ce.default.get(t,y.path);if(i.acceptArrays&&Array.isArray(h)&&!i.acceptArraysIgnore.includes(o)){if(!h.every(w=>(0,_.default)(w).toLowerCase()===(0,_.default)(t[o]).toLowerCase()))throw new TypeError(`${i.msg}: ${i.optsVarName}.${y.path} was customised to be array, but not all of its elements are ${(0,_.default)(t[o]).toLowerCase()}-type`)}else if((0,_.default)(h)!==(0,_.default)(u))throw new TypeError(`${i.msg}: ${i.optsVarName}.${y.path} was customised to ${(0,_.default)(h).toLowerCase()==="string"?"":'"'}${JSON.stringify(h,null,0)}${(0,_.default)(h).toLowerCase()==="string"?"":'"'} which is not ${(0,_.default)(u).toLowerCase()} but ${(0,_.default)(h).toLowerCase()}`)}return h})}function so(e,t,n){oo(e,t,n)}return cn(ao);})();
24
+ `);if(f){let u=Pe(i.schema[y.path]).map(g=>`${g}`.toLowerCase());if(ce.default.set(i.schema,y.path,u),(0,Zt.default)(u,h).length)m.push(y.path);else if(p!==!0&&p!==!1&&!u.includes((0,_.default)(p).toLowerCase())||(p===!0||p===!1)&&!u.includes(String(p))&&!u.includes("boolean"))if(Array.isArray(p)&&i.acceptArrays){for(let g=0,w=p.length;g<w;g++)if(!u.includes((0,_.default)(p[g]).toLowerCase()))throw new TypeError(`${i.msg}: ${i.optsVarName}.${y.path}.${g}, the ${g}th element (equal to ${JSON.stringify(p[g],null,0)}) is of a type ${(0,_.default)(p[g]).toLowerCase()}, but only the following are allowed by the ${i.optsVarName}.schema: ${u.join(", ")}`)}else throw new TypeError(`${i.msg}: ${i.optsVarName}.${y.path} was customised to ${(0,_.default)(p)!=="string"?'"':""}${JSON.stringify(p,null,0)}${(0,_.default)(p)!=="string"?'"':""} (type: ${(0,_.default)(p).toLowerCase()}) which is not among the allowed types in schema (which is equal to ${JSON.stringify(u,null,0)})`)}else if(t&&c(t)&&s){let u=ce.default.get(t,y.path);if(i.acceptArrays&&Array.isArray(p)&&!i.acceptArraysIgnore.includes(o)){if(!p.every(w=>(0,_.default)(w).toLowerCase()===(0,_.default)(t[o]).toLowerCase()))throw new TypeError(`${i.msg}: ${i.optsVarName}.${y.path} was customised to be array, but not all of its elements are ${(0,_.default)(t[o]).toLowerCase()}-type`)}else if((0,_.default)(p)!==(0,_.default)(u))throw new TypeError(`${i.msg}: ${i.optsVarName}.${y.path} was customised to ${(0,_.default)(p).toLowerCase()==="string"?"":'"'}${JSON.stringify(p,null,0)}${(0,_.default)(p).toLowerCase()==="string"?"":'"'} which is not ${(0,_.default)(u).toLowerCase()} but ${(0,_.default)(p).toLowerCase()}`)}return p})}function co(e,t,r){ao(e,t,r)}return cr(uo);})();
25
25
  /**
26
26
  * @name arrayiffy-if-string
27
27
  * @fileoverview Put non-empty strings into arrays, turn empty-ones into empty arrays. Bypass everything else.
28
- * @version 4.0.11
28
+ * @version 4.0.12
29
29
  * @author Roy Revelt, Codsen Ltd
30
30
  * @license MIT
31
31
  * {@link https://codsen.com/os/arrayiffy-if-string/}
@@ -33,7 +33,7 @@ current = ${JSON.stringify(h,null,4)}
33
33
  /**
34
34
  * @name ast-monkey-traverse
35
35
  * @fileoverview Utility library to traverse AST
36
- * @version 3.0.11
36
+ * @version 3.0.12
37
37
  * @author Roy Revelt, Codsen Ltd
38
38
  * @license MIT
39
39
  * {@link https://codsen.com/os/ast-monkey-traverse/}
@@ -41,7 +41,7 @@ current = ${JSON.stringify(h,null,4)}
41
41
  /**
42
42
  * @name ast-monkey-util
43
43
  * @fileoverview Utility library of AST helper functions
44
- * @version 2.0.11
44
+ * @version 2.0.12
45
45
  * @author Roy Revelt, Codsen Ltd
46
46
  * @license MIT
47
47
  * {@link https://codsen.com/os/ast-monkey-util/}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "check-types-mini",
3
- "version": "7.0.11",
3
+ "version": "7.1.1",
4
4
  "description": "Validate options object",
5
5
  "keywords": [
6
6
  "compare",
@@ -37,9 +37,10 @@
37
37
  "scripts": {
38
38
  "build": "node '../../ops/scripts/esbuild.js' && yarn run dts",
39
39
  "dev": "DEV=true node '../../ops/scripts/esbuild.js' && yarn run dts",
40
+ "devtest": "c8 yarn run unit && yarn run examples && yarn run lint",
40
41
  "dts": "rollup -c && yarn run prettier 'types/index.d.ts' --write",
41
42
  "examples": "node '../../ops/scripts/run-examples.js'",
42
- "lect": "node '../../ops/lect/lect.js'",
43
+ "lect": "node '../../ops/lect/lect.js' && yarn run prettier 'README.md' '.all-contributorsrc' 'rollup.config.js' --write",
43
44
  "letspublish": "yarn publish || :",
44
45
  "lint": "eslint . --fix",
45
46
  "perf": "node perf/check.js",
@@ -47,7 +48,7 @@
47
48
  "prettier": "prettier",
48
49
  "prettier:format": "prettier --write '**/*.{ts,tsx,md}' --no-error-on-unmatched-pattern",
49
50
  "pretest": "yarn run lect && yarn run build",
50
- "test": "c8 yarn run unit && yarn run examples && yarn run lint",
51
+ "test": "yarn run devtest",
51
52
  "unit": "uvu test"
52
53
  },
53
54
  "engines": {
@@ -68,8 +69,8 @@
68
69
  }
69
70
  },
70
71
  "dependencies": {
71
- "arrayiffy-if-string": "^4.0.11",
72
- "ast-monkey-traverse": "^3.0.11",
72
+ "arrayiffy-if-string": "^4.0.12",
73
+ "ast-monkey-traverse": "^3.0.12",
73
74
  "lodash.intersection": "^4.4.0",
74
75
  "lodash.pullall": "^4.2.0",
75
76
  "matcher": "^5.0.0",
package/types/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ declare const version: string;
1
2
  interface Obj {
2
3
  [key: string]: any;
3
4
  }
@@ -11,6 +12,7 @@ interface Opts {
11
12
  msg: string;
12
13
  optsVarName: string;
13
14
  }
15
+ declare const defaults: Opts;
14
16
  /**
15
17
  * Validate options object
16
18
  */
@@ -20,4 +22,4 @@ declare function checkTypesMini(
20
22
  originalOptions?: Partial<Opts>
21
23
  ): void;
22
24
 
23
- export { checkTypesMini };
25
+ export { checkTypesMini, defaults, version };