object-fill-missing-keys 10.0.0 → 10.0.2

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
@@ -5,7 +5,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
5
5
 
6
6
  # 10.0.0 (2022-10-16)
7
7
 
8
- ### Bug Fixes
8
+ ### Fixed
9
9
 
10
10
  - set the merging to be correct as per what is promised ([1830aff](https://github.com/codsen/codsen/commit/1830aff6ed92b5431e4bf754d530c2790031b5dd)), closes [#51](https://github.com/codsen/codsen/issues/51)
11
11
 
@@ -23,7 +23,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
23
23
 
24
24
  ## 9.1.2 (2022-04-18)
25
25
 
26
- ### Bug Fixes
26
+ ### Fixed
27
27
 
28
28
  - tweak types ([050580c](https://github.com/codsen/codsen/commit/050580c1c7935383d499a7f46acb1e6cb44a0ae4))
29
29
 
@@ -57,7 +57,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
57
57
 
58
58
  ## 8.0.1 (2021-01-28)
59
59
 
60
- ### Bug Fixes
60
+ ### Fixed
61
61
 
62
62
  - add testStats to npmignore ([f3c84e9](https://github.com/codsen/codsen/commit/f3c84e95afc5514214312f913692d85b2e12eb29))
63
63
 
@@ -87,108 +87,108 @@ Accidental version bump during migration to sourcehut. Sorry about that.
87
87
 
88
88
  ## 7.9.0 (2019-01-20)
89
89
 
90
- - Various documentation and setup tweaks after we migrated to monorepo
91
- - Setup refresh: updated dependencies and all config files using automated tools
90
+ - Various documentation and setup tweaks after we migrated to monorepo
91
+ - Setup refresh: updated dependencies and all config files using automated tools
92
92
 
93
93
  ## 7.5.0 (2018-12-26)
94
94
 
95
- - Added `opts.doNotFillThesePathsIfTheyContainPlaceholders` ([8c6080e](https://gitlab.com/codsen/codsen/tree/master/packages/object-fill-missing-keys/commits/8c6080e))
95
+ - Added `opts.doNotFillThesePathsIfTheyContainPlaceholders` ([8c6080e](https://gitlab.com/codsen/codsen/tree/master/packages/object-fill-missing-keys/commits/8c6080e))
96
96
 
97
97
  ## 7.4.0 (2018-10-24)
98
98
 
99
- - Updated all dependencies
100
- - Restored coveralls.io reporting
101
- - Restored unit test linting
99
+ - Updated all dependencies
100
+ - Restored coveralls.io reporting
101
+ - Restored unit test linting
102
102
 
103
103
  ## 7.3.0 (2018-08-28)
104
104
 
105
- - Switched to newest Babel (v.7) but `ava`+`esm`+`nyc` didn't work together so we had to disable `nyc`, our code coverage, until further notice
106
- - Added comment removal on Rollup production builds
105
+ - Switched to newest Babel (v.7) but `ava`+`esm`+`nyc` didn't work together so we had to disable `nyc`, our code coverage, until further notice
106
+ - Added comment removal on Rollup production builds
107
107
 
108
108
  ## 7.2.0 (2018-06-19)
109
109
 
110
110
  GitHub sold us out. In the meantime, we:
111
111
 
112
- - Migrated to Bitbucket (to host repo + perform CI) and Codacy (for code quality audit)
113
- - Dropped BitHound (RIP) and Travis
112
+ - Migrated to Bitbucket (to host repo + perform CI) and Codacy (for code quality audit)
113
+ - Dropped BitHound (RIP) and Travis
114
114
 
115
115
  ## 7.1.0 (2018-05-25)
116
116
 
117
- - Set up [Prettier](https://prettier.io) on a custom ESLint rule set.
118
- - Removed `package.lock` and `.editorconfig`
119
- - Wired Rollup to remove comments from non-dev builds. This means we can now leave the `console.log`s in the source code — there's no need to comment-out `console.log` statements or care about them not spilling into production. Now it's done automatically.
120
- - Unit tests are pointing at ES modules build, which means that code coverage is correct now, without Babel functions being missed. This is important because now code coverage is real again and now there are no excuses not to perfect it.
117
+ - Set up [Prettier](https://prettier.io) on a custom ESLint rule set.
118
+ - Removed `package.lock` and `.editorconfig`
119
+ - Wired Rollup to remove comments from non-dev builds. This means we can now leave the `console.log`s in the source code — there's no need to comment-out `console.log` statements or care about them not spilling into production. Now it's done automatically.
120
+ - Unit tests are pointing at ES modules build, which means that code coverage is correct now, without Babel functions being missed. This is important because now code coverage is real again and now there are no excuses not to perfect it.
121
121
 
122
122
  ## 7.0.0 (2018-03-13)
123
123
 
124
- ### Added
124
+ ### Features
125
125
 
126
- - `opts.useNullAsExplicitFalse`
126
+ - `opts.useNullAsExplicitFalse`
127
127
 
128
128
  Since it's on by default, and it behaves differently to if it were off, it's a breaking change and thus warrants a major semver bump.
129
129
 
130
130
  ## 6.0.0 (2018-01-27)
131
131
 
132
- ### Changed
132
+ ### Changes
133
133
 
134
- - Complete recode from scratch in order to control key creation more precisely (necessary for new features). Previously `object-merge-advanced` did all the job.
135
- - `opts.doNotFillThesePathsIfTheyContainPlaceholders`
136
- - `opts.placeholder`
134
+ - Complete recode from scratch in order to control key creation more precisely (necessary for new features). Previously `object-merge-advanced` did all the job.
135
+ - `opts.doNotFillThesePathsIfTheyContainPlaceholders`
136
+ - `opts.placeholder`
137
137
 
138
138
  ## 4.0.0 (2017-12-11)
139
139
 
140
- ### Changed
140
+ ### Changes
141
141
 
142
- - Rebased in ES Modules
143
- - Set up Rollup. Now serving 3 flavours: CommonJS, UMD and ES Module. When this library is used as a dependency, WebPack and Rollup should recognise ES Module wiring via `module` key in package.json and should switch to ES Modules version automatically.
144
- - Fixed few tiny bugs
145
- - Improved unit test coverage to be 100%-lines. I can't do 100%-branches because Babel adds functions which I can't target and we're testing transpiled code. The source is now in ES Modules and everything's covered there.
142
+ - Rebased in ES Modules
143
+ - Set up Rollup. Now serving 3 flavours: CommonJS, UMD and ES Module. When this library is used as a dependency, WebPack and Rollup should recognise ES Module wiring via `module` key in package.json and should switch to ES Modules version automatically.
144
+ - Fixed few tiny bugs
145
+ - Improved unit test coverage to be 100%-lines. I can't do 100%-branches because Babel adds functions which I can't target and we're testing transpiled code. The source is now in ES Modules and everything's covered there.
146
146
  - 👾 Some other setup tweaks to reflect my latest understanding what's best for npm libraries.
147
147
 
148
148
  ## 3.1.0 (2017-10-14)
149
149
 
150
- ### Added
150
+ ### Features
151
151
 
152
- - `opts.placeholder`
153
- - `opts.doNotFillThesePathsIfTheyContainPlaceholders`
152
+ - `opts.placeholder`
153
+ - `opts.doNotFillThesePathsIfTheyContainPlaceholders`
154
154
 
155
155
  ## 3.0.0 (2017-10-13)
156
156
 
157
- ### Changed
157
+ ### Changes
158
158
 
159
159
  - 🔧 Hardened the API - strange cases with no arguments or wrong-ones will `throw` an error. Hence bumping the major semver release.
160
160
 
161
161
  ## 2.3.0 (2017-10-13)
162
162
 
163
- ### Added
163
+ ### Features
164
164
 
165
- - Dropped JS Standard and moved to raw ESLint on `airbnb-base` preset with semicolons off. JS Standard does not have many important rules on, beware.
166
- - Options - third input argument, with all validation (driven by `check-types-mini` [on npm](https://www.npmjs.com/package/check-types-mini), [on GitLab](https://gitlab.com/codsen/codsen/tree/master/packages/check-types-mini))
165
+ - Dropped JS Standard and moved to raw ESLint on `airbnb-base` preset with semicolons off. JS Standard does not have many important rules on, beware.
166
+ - Options - third input argument, with all validation (driven by `check-types-mini` [on npm](https://www.npmjs.com/package/check-types-mini), [on GitLab](https://gitlab.com/codsen/codsen/tree/master/packages/check-types-mini))
167
167
 
168
168
  ## 2.2.0 (2017-05-20)
169
169
 
170
- ### Added
170
+ ### Features
171
171
 
172
- - cli `clear` when running unit tests (not that relevant for end-user, but totally relevant when maintaining all this)
173
- - now consuming `standard` as a normal semver range, not _the latest greatest_ which is a liability remembering what happened on v10 release
174
- - one more unit test
172
+ - cli `clear` when running unit tests (not that relevant for end-user, but totally relevant when maintaining all this)
173
+ - now consuming `standard` as a normal semver range, not _the latest greatest_ which is a liability remembering what happened on v10 release
174
+ - one more unit test
175
175
 
176
176
  ## 2.1.0 (2017-03-16)
177
177
 
178
- ### Changed
178
+ ### Changes
179
179
 
180
180
  - 🔧 Improvements to the merging algorithm
181
181
 
182
182
  ## 2.0.0 (2017-03-16)
183
183
 
184
- ### Changed
184
+ ### Changes
185
185
 
186
186
  - 🔧 Rewrote pretty much the whole core of this. Previously, the algorithm did not take into the account the placeholder values and also didn't use an `object-merge-advanced`-class merging, only filled the missing keys. It's fixed now. From practical standpoint, the main difference is when merging two plain objects, if two have the same key but one's value is a string, another's value is array, array will overwrite string. Previously, not so. Basically, now the full hierarchy of `object-merge-advanced` is retained. This might have consequences to any template code that relied on previous algorithm, but it's a bad practice to mix different data types in the template logic anyway, so hey.
187
187
 
188
- ### Added
188
+ ### Features
189
189
 
190
- - Even more more unit tests
190
+ - Even more more unit tests
191
191
 
192
- ### Improved
192
+ ### Improvements
193
193
 
194
- - Put some test variables into correct scope. It does not change anything, but still.
194
+ - Put some test variables into correct scope. It does not change anything, but still.
@@ -1,11 +1,11 @@
1
1
  /**
2
2
  * @name object-fill-missing-keys
3
3
  * @fileoverview Add missing keys into plain objects, according to a reference object
4
- * @version 10.0.0
4
+ * @version 10.0.2
5
5
  * @author Roy Revelt, Codsen Ltd
6
6
  * @license MIT
7
7
  * {@link https://codsen.com/os/object-fill-missing-keys/}
8
8
  */
9
9
 
10
- import f from"lodash.clonedeep";import{mergeAdvanced as b}from"object-merge-advanced";import{arrayiffy as g}from"arrayiffy-if-string";import{allEq as u}from"object-all-values-equal-to";import o from"lodash.isplainobject";var y="10.0.0";var I=y,m={placeholder:!1,doNotFillThesePathsIfTheyContainPlaceholders:[],useNullAsExplicitFalse:!0};function a(n){return o(n)?"plain object":Array.isArray(n)?"array":typeof n}function j(n){return typeof n=="string"}function d(n){return n!=null}function p(n,l,r,i=""){let e=f(n);if(d(e)||!(i.length&&r.doNotFillThesePathsIfTheyContainPlaceholders.includes(i)&&u(e,r.placeholder)))if(o(l)&&o(e))Object.keys(l).forEach(t=>{let s=`${i?`${i}.`:""}${t}`;r.doNotFillThesePathsIfTheyContainPlaceholders.includes(s)&&(d(e[t])?u(e[t],r.placeholder)&&(e[t]=r.placeholder):e[t]=r.placeholder),(!d(e[t])||!(r.doNotFillThesePathsIfTheyContainPlaceholders.includes(s)&&u(e[t],r.placeholder)))&&(e[t]=p(e[t],l[t],r,s))});else if(Array.isArray(l)&&Array.isArray(e)){if(e.length===0)return l;if(l.length)for(let t=e.length;t--;){let s=`${i?`${i}.`:""}0`;(o(l[0])||Array.isArray(l[0]))&&(e[t]=p(e[t],l[0],r,s))}}else return b(l,e,{useNullAsExplicitFalse:r.useNullAsExplicitFalse,cb:(t,s,c)=>a(t)===a(s)?s:c});return e}function O(n,l,r){if(arguments.length===0)throw new Error("object-fill-missing-keys: [THROW_ID_01] All arguments are missing!");if(!o(n))throw new Error(`object-fill-missing-keys: [THROW_ID_02] First argument, input object must be a plain object. Currently it's type is "${a(n)}" and it's equal to: ${JSON.stringify(n,null,4)}`);if(!o(l))throw new Error(`object-fill-missing-keys: [THROW_ID_03] Second argument, schema object, must be a plain object. Currently it's type is "${a(l)}" and it's equal to: ${JSON.stringify(l,null,4)}`);if(r&&!o(r))throw new Error(`object-fill-missing-keys: [THROW_ID_04] Third argument, schema object, must be a plain object. Currently it's type is "${a(r)}" and it's equal to: ${JSON.stringify(r,null,4)}`);let i={...m,...r};i.doNotFillThesePathsIfTheyContainPlaceholders=g(i.doNotFillThesePathsIfTheyContainPlaceholders);let e=null,t=null;if(i.doNotFillThesePathsIfTheyContainPlaceholders.length&&!i.doNotFillThesePathsIfTheyContainPlaceholders.every((s,c)=>j(s)?!0:(e=s,t=c,!1)))throw new Error(`object-fill-missing-keys: [THROW_ID_06] resolvedOpts.doNotFillThesePathsIfTheyContainPlaceholders element with an index number "${t}" is not a string! It's ${a(e)}, equal to:
10
+ import f from"lodash.clonedeep";import{mergeAdvanced as b}from"object-merge-advanced";import{arrayiffy as g}from"arrayiffy-if-string";import{allEq as u}from"object-all-values-equal-to";import o from"lodash.isplainobject";var y="10.0.2";var I=y,m={placeholder:!1,doNotFillThesePathsIfTheyContainPlaceholders:[],useNullAsExplicitFalse:!0};function a(n){return o(n)?"plain object":Array.isArray(n)?"array":typeof n}function j(n){return typeof n=="string"}function d(n){return n!=null}function p(n,l,r,i=""){let e=f(n);if(d(e)||!(i.length&&r.doNotFillThesePathsIfTheyContainPlaceholders.includes(i)&&u(e,r.placeholder)))if(o(l)&&o(e))Object.keys(l).forEach(t=>{let s=`${i?`${i}.`:""}${t}`;r.doNotFillThesePathsIfTheyContainPlaceholders.includes(s)&&(d(e[t])?u(e[t],r.placeholder)&&(e[t]=r.placeholder):e[t]=r.placeholder),(!d(e[t])||!(r.doNotFillThesePathsIfTheyContainPlaceholders.includes(s)&&u(e[t],r.placeholder)))&&(e[t]=p(e[t],l[t],r,s))});else if(Array.isArray(l)&&Array.isArray(e)){if(e.length===0)return l;if(l.length)for(let t=e.length;t--;){let s=`${i?`${i}.`:""}0`;(o(l[0])||Array.isArray(l[0]))&&(e[t]=p(e[t],l[0],r,s))}}else return b(l,e,{useNullAsExplicitFalse:r.useNullAsExplicitFalse,cb:(t,s,c)=>a(t)===a(s)?s:c});return e}function O(n,l,r){if(arguments.length===0)throw new Error("object-fill-missing-keys: [THROW_ID_01] All arguments are missing!");if(!o(n))throw new Error(`object-fill-missing-keys: [THROW_ID_02] First argument, input object must be a plain object. Currently it's type is "${a(n)}" and it's equal to: ${JSON.stringify(n,null,4)}`);if(!o(l))throw new Error(`object-fill-missing-keys: [THROW_ID_03] Second argument, schema object, must be a plain object. Currently it's type is "${a(l)}" and it's equal to: ${JSON.stringify(l,null,4)}`);if(r&&!o(r))throw new Error(`object-fill-missing-keys: [THROW_ID_04] Third argument, schema object, must be a plain object. Currently it's type is "${a(r)}" and it's equal to: ${JSON.stringify(r,null,4)}`);let i={...m,...r};i.doNotFillThesePathsIfTheyContainPlaceholders=g(i.doNotFillThesePathsIfTheyContainPlaceholders);let e=null,t=null;if(i.doNotFillThesePathsIfTheyContainPlaceholders.length&&!i.doNotFillThesePathsIfTheyContainPlaceholders.every((s,c)=>j(s)?!0:(e=s,t=c,!1)))throw new Error(`object-fill-missing-keys: [THROW_ID_06] resolvedOpts.doNotFillThesePathsIfTheyContainPlaceholders element with an index number "${t}" is not a string! It's ${a(e)}, equal to:
11
11
  ${JSON.stringify(e,null,4)}`);return p(f(n),f(l),i)}export{m as defaults,O as fillMissing,I as version};
@@ -1,19 +1,19 @@
1
1
  /**
2
2
  * @name object-fill-missing-keys
3
3
  * @fileoverview Add missing keys into plain objects, according to a reference object
4
- * @version 10.0.0
4
+ * @version 10.0.2
5
5
  * @author Roy Revelt, Codsen Ltd
6
6
  * @license MIT
7
7
  * {@link https://codsen.com/os/object-fill-missing-keys/}
8
8
  */
9
9
 
10
10
  "use strict";var objectFillMissingKeys=(()=>{var zn=Object.create;var nt=Object.defineProperty,Wn=Object.defineProperties,Jn=Object.getOwnPropertyDescriptor,Vn=Object.getOwnPropertyDescriptors,Yn=Object.getOwnPropertyNames,Ke=Object.getOwnPropertySymbols,Xn=Object.getPrototypeOf,Ge=Object.prototype.hasOwnProperty,Zn=Object.prototype.propertyIsEnumerable;var Le=(t,e,r)=>e in t?nt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,_=(t,e)=>{for(var r in e||(e={}))Ge.call(e,r)&&Le(t,r,e[r]);if(Ke)for(var r of Ke(e))Zn.call(e,r)&&Le(t,r,e[r]);return t},_t=(t,e)=>Wn(t,Vn(e));var k=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Qn=(t,e)=>{for(var r in e)nt(t,r,{get:e[r],enumerable:!0})},Be=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of Yn(e))!Ge.call(t,a)&&a!==r&&nt(t,a,{get:()=>e[a],enumerable:!(n=Jn(e,a))||n.enumerable});return t};var T=(t,e,r)=>(r=t!=null?zn(Xn(t)):{},Be(e||!t||!t.__esModule?nt(r,"default",{value:t,enumerable:!0}):r,t)),ti=t=>Be(nt({},"__esModule",{value:!0}),t);var oe=k((it,z)=>{var ei=200,er="__lodash_hash_undefined__",rr=9007199254740991,Qt="[object Arguments]",ri="[object Array]",nr="[object Boolean]",ir="[object Date]",ni="[object Error]",te="[object Function]",ar="[object GeneratorFunction]",vt="[object Map]",or="[object Number]",ee="[object Object]",Ue="[object Promise]",sr="[object RegExp]",mt="[object Set]",fr="[object String]",cr="[object Symbol]",Wt="[object WeakMap]",ur="[object ArrayBuffer]",Tt="[object DataView]",lr="[object Float32Array]",pr="[object Float64Array]",hr="[object Int8Array]",yr="[object Int16Array]",gr="[object Int32Array]",dr="[object Uint8Array]",br="[object Uint8ClampedArray]",_r="[object Uint16Array]",vr="[object Uint32Array]",ii=/[\\^$.*+?()[\]{}|]/g,ai=/\w*$/,oi=/^\[object .+?Constructor\]$/,si=/^(?:0|[1-9]\d*)$/,d={};d[Qt]=d[ri]=d[ur]=d[Tt]=d[nr]=d[ir]=d[lr]=d[pr]=d[hr]=d[yr]=d[gr]=d[vt]=d[or]=d[ee]=d[sr]=d[mt]=d[fr]=d[cr]=d[dr]=d[br]=d[_r]=d[vr]=!0;d[ni]=d[te]=d[Wt]=!1;var fi=typeof global=="object"&&global&&global.Object===Object&&global,ci=typeof self=="object"&&self&&self.Object===Object&&self,S=fi||ci||Function("return this")(),mr=typeof it=="object"&&it&&!it.nodeType&&it,qe=mr&&typeof z=="object"&&z&&!z.nodeType&&z,ui=qe&&qe.exports===mr;function li(t,e){return t.set(e[0],e[1]),t}function pi(t,e){return t.add(e),t}function hi(t,e){for(var r=-1,n=t?t.length:0;++r<n&&e(t[r],r,t)!==!1;);return t}function yi(t,e){for(var r=-1,n=e.length,a=t.length;++r<n;)t[a+r]=e[r];return t}function Tr(t,e,r,n){var a=-1,i=t?t.length:0;for(n&&i&&(r=t[++a]);++a<i;)r=e(r,t[a],a,t);return r}function gi(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}function di(t,e){return t==null?void 0:t[e]}function Ar(t){var e=!1;if(t!=null&&typeof t.toString!="function")try{e=!!(t+"")}catch(r){}return e}function ze(t){var e=-1,r=Array(t.size);return t.forEach(function(n,a){r[++e]=[a,n]}),r}function re(t,e){return function(r){return t(e(r))}}function We(t){var e=-1,r=Array(t.size);return t.forEach(function(n){r[++e]=n}),r}var bi=Array.prototype,_i=Function.prototype,At=Object.prototype,zt=S["__core-js_shared__"],Je=function(){var t=/[^.]+$/.exec(zt&&zt.keys&&zt.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),jr=_i.toString,I=At.hasOwnProperty,jt=At.toString,vi=RegExp("^"+jr.call(I).replace(ii,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ve=ui?S.Buffer:void 0,Ye=S.Symbol,Xe=S.Uint8Array,mi=re(Object.getPrototypeOf,Object),Ti=Object.create,Ai=At.propertyIsEnumerable,ji=bi.splice,Ze=Object.getOwnPropertySymbols,Oi=Ve?Ve.isBuffer:void 0,wi=re(Object.keys,Object),Jt=V(S,"DataView"),at=V(S,"Map"),Vt=V(S,"Promise"),Yt=V(S,"Set"),Xt=V(S,"WeakMap"),ot=V(Object,"create"),Si=K(Jt),xi=K(at),Ei=K(Vt),Ci=K(Yt),Ii=K(Xt),Qe=Ye?Ye.prototype:void 0,tr=Qe?Qe.valueOf:void 0;function H(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Pi(){this.__data__=ot?ot(null):{}}function Mi(t){return this.has(t)&&delete this.__data__[t]}function $i(t){var e=this.__data__;if(ot){var r=e[t];return r===er?void 0:r}return I.call(e,t)?e[t]:void 0}function Ni(t){var e=this.__data__;return ot?e[t]!==void 0:I.call(e,t)}function Fi(t,e){var r=this.__data__;return r[t]=ot&&e===void 0?er:e,this}H.prototype.clear=Pi;H.prototype.delete=Mi;H.prototype.get=$i;H.prototype.has=Ni;H.prototype.set=Fi;function x(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Di(){this.__data__=[]}function ki(t){var e=this.__data__,r=Ot(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():ji.call(e,r,1),!0}function Ri(t){var e=this.__data__,r=Ot(e,t);return r<0?void 0:e[r][1]}function Hi(t){return Ot(this.__data__,t)>-1}function Ki(t,e){var r=this.__data__,n=Ot(r,t);return n<0?r.push([t,e]):r[n][1]=e,this}x.prototype.clear=Di;x.prototype.delete=ki;x.prototype.get=Ri;x.prototype.has=Hi;x.prototype.set=Ki;function W(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Li(){this.__data__={hash:new H,map:new(at||x),string:new H}}function Gi(t){return wt(this,t).delete(t)}function Bi(t){return wt(this,t).get(t)}function Ui(t){return wt(this,t).has(t)}function qi(t,e){return wt(this,t).set(t,e),this}W.prototype.clear=Li;W.prototype.delete=Gi;W.prototype.get=Bi;W.prototype.has=Ui;W.prototype.set=qi;function J(t){this.__data__=new x(t)}function zi(){this.__data__=new x}function Wi(t){return this.__data__.delete(t)}function Ji(t){return this.__data__.get(t)}function Vi(t){return this.__data__.has(t)}function Yi(t,e){var r=this.__data__;if(r instanceof x){var n=r.__data__;if(!at||n.length<ei-1)return n.push([t,e]),this;r=this.__data__=new W(n)}return r.set(t,e),this}J.prototype.clear=zi;J.prototype.delete=Wi;J.prototype.get=Ji;J.prototype.has=Vi;J.prototype.set=Yi;function Xi(t,e){var r=ie(t)||Ta(t)?gi(t.length,String):[],n=r.length,a=!!n;for(var i in t)(e||I.call(t,i))&&!(a&&(i=="length"||ba(i,n)))&&r.push(i);return r}function Or(t,e,r){var n=t[e];(!(I.call(t,e)&&Er(n,r))||r===void 0&&!(e in t))&&(t[e]=r)}function Ot(t,e){for(var r=t.length;r--;)if(Er(t[r][0],e))return r;return-1}function Zi(t,e){return t&&wr(e,ae(e),t)}function Zt(t,e,r,n,a,i,o){var f;if(n&&(f=i?n(t,a,i,o):n(t)),f!==void 0)return f;if(!St(t))return t;var u=ie(t);if(u){if(f=ya(t),!e)return la(t,f)}else{var h=R(t),y=h==te||h==ar;if(ja(t))return ia(t,e);if(h==ee||h==Qt||y&&!i){if(Ar(t))return i?t:{};if(f=ga(y?{}:t),!e)return pa(t,Zi(f,t))}else{if(!d[h])return i?t:{};f=da(t,h,Zt,e)}}o||(o=new J);var l=o.get(t);if(l)return l;if(o.set(t,f),!u)var s=r?ha(t):ae(t);return hi(s||t,function(g,p){s&&(p=g,g=t[p]),Or(f,p,Zt(g,e,r,n,p,t,o))}),f}function Qi(t){return St(t)?Ti(t):{}}function ta(t,e,r){var n=e(t);return ie(t)?n:yi(n,r(t))}function ea(t){return jt.call(t)}function ra(t){if(!St(t)||va(t))return!1;var e=Ir(t)||Ar(t)?vi:oi;return e.test(K(t))}function na(t){if(!xr(t))return wi(t);var e=[];for(var r in Object(t))I.call(t,r)&&r!="constructor"&&e.push(r);return e}function ia(t,e){if(e)return t.slice();var r=new t.constructor(t.length);return t.copy(r),r}function ne(t){var e=new t.constructor(t.byteLength);return new Xe(e).set(new Xe(t)),e}function aa(t,e){var r=e?ne(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}function oa(t,e,r){var n=e?r(ze(t),!0):ze(t);return Tr(n,li,new t.constructor)}function sa(t){var e=new t.constructor(t.source,ai.exec(t));return e.lastIndex=t.lastIndex,e}function fa(t,e,r){var n=e?r(We(t),!0):We(t);return Tr(n,pi,new t.constructor)}function ca(t){return tr?Object(tr.call(t)):{}}function ua(t,e){var r=e?ne(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}function la(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}function wr(t,e,r,n){r||(r={});for(var a=-1,i=e.length;++a<i;){var o=e[a],f=n?n(r[o],t[o],o,r,t):void 0;Or(r,o,f===void 0?t[o]:f)}return r}function pa(t,e){return wr(t,Sr(t),e)}function ha(t){return ta(t,ae,Sr)}function wt(t,e){var r=t.__data__;return _a(e)?r[typeof e=="string"?"string":"hash"]:r.map}function V(t,e){var r=di(t,e);return ra(r)?r:void 0}var Sr=Ze?re(Ze,Object):Sa,R=ea;(Jt&&R(new Jt(new ArrayBuffer(1)))!=Tt||at&&R(new at)!=vt||Vt&&R(Vt.resolve())!=Ue||Yt&&R(new Yt)!=mt||Xt&&R(new Xt)!=Wt)&&(R=function(t){var e=jt.call(t),r=e==ee?t.constructor:void 0,n=r?K(r):void 0;if(n)switch(n){case Si:return Tt;case xi:return vt;case Ei:return Ue;case Ci:return mt;case Ii:return Wt}return e});function ya(t){var e=t.length,r=t.constructor(e);return e&&typeof t[0]=="string"&&I.call(t,"index")&&(r.index=t.index,r.input=t.input),r}function ga(t){return typeof t.constructor=="function"&&!xr(t)?Qi(mi(t)):{}}function da(t,e,r,n){var a=t.constructor;switch(e){case ur:return ne(t);case nr:case ir:return new a(+t);case Tt:return aa(t,n);case lr:case pr:case hr:case yr:case gr:case dr:case br:case _r:case vr:return ua(t,n);case vt:return oa(t,n,r);case or:case fr:return new a(t);case sr:return sa(t);case mt:return fa(t,n,r);case cr:return ca(t)}}function ba(t,e){return e=e==null?rr:e,!!e&&(typeof t=="number"||si.test(t))&&t>-1&&t%1==0&&t<e}function _a(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function va(t){return!!Je&&Je in t}function xr(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||At;return t===r}function K(t){if(t!=null){try{return jr.call(t)}catch(e){}try{return t+""}catch(e){}}return""}function ma(t){return Zt(t,!0,!0)}function Er(t,e){return t===e||t!==t&&e!==e}function Ta(t){return Aa(t)&&I.call(t,"callee")&&(!Ai.call(t,"callee")||jt.call(t)==Qt)}var ie=Array.isArray;function Cr(t){return t!=null&&Oa(t.length)&&!Ir(t)}function Aa(t){return wa(t)&&Cr(t)}var ja=Oi||xa;function Ir(t){var e=St(t)?jt.call(t):"";return e==te||e==ar}function Oa(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=rr}function St(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function wa(t){return!!t&&typeof t=="object"}function ae(t){return Cr(t)?Xi(t):na(t)}function Sa(){return[]}function xa(){return!1}z.exports=ma});var Dr=k((Ac,Fr)=>{var Pr=1/0,$r=9007199254740991,Ea=17976931348623157e292,Mr=0/0,Ca="[object Arguments]",Ia="[object Function]",Pa="[object GeneratorFunction]",Ma="[object String]",$a="[object Symbol]",Na=/^\s+|\s+$/g,Fa=/^[-+]0x[0-9a-f]+$/i,Da=/^0b[01]+$/i,ka=/^0o[0-7]+$/i,Ra=/^(?:0|[1-9]\d*)$/,Ha=parseInt;function Ka(t,e){for(var r=-1,n=t?t.length:0,a=Array(n);++r<n;)a[r]=e(t[r],r,t);return a}function La(t,e,r,n){for(var a=t.length,i=r+(n?1:-1);n?i--:++i<a;)if(e(t[i],i,t))return i;return-1}function Ga(t,e,r){if(e!==e)return La(t,Ba,r);for(var n=r-1,a=t.length;++n<a;)if(t[n]===e)return n;return-1}function Ba(t){return t!==t}function Ua(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}function qa(t,e){return Ka(e,function(r){return t[r]})}function za(t,e){return function(r){return t(e(r))}}var xt=Object.prototype,fe=xt.hasOwnProperty,Et=xt.toString,Wa=xt.propertyIsEnumerable,Ja=za(Object.keys,Object),Va=Math.max;function Ya(t,e){var r=Nr(t)||eo(t)?Ua(t.length,String):[],n=r.length,a=!!n;for(var i in t)(e||fe.call(t,i))&&!(a&&(i=="length"||Za(i,n)))&&r.push(i);return r}function Xa(t){if(!Qa(t))return Ja(t);var e=[];for(var r in Object(t))fe.call(t,r)&&r!="constructor"&&e.push(r);return e}function Za(t,e){return e=e==null?$r:e,!!e&&(typeof t=="number"||Ra.test(t))&&t>-1&&t%1==0&&t<e}function Qa(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||xt;return t===r}function to(t,e,r,n){t=ce(t)?t:lo(t),r=r&&!n?fo(r):0;var a=t.length;return r<0&&(r=Va(a+r,0)),ao(t)?r<=a&&t.indexOf(e,r)>-1:!!a&&Ga(t,e,r)>-1}function eo(t){return ro(t)&&fe.call(t,"callee")&&(!Wa.call(t,"callee")||Et.call(t)==Ca)}var Nr=Array.isArray;function ce(t){return t!=null&&io(t.length)&&!no(t)}function ro(t){return ue(t)&&ce(t)}function no(t){var e=se(t)?Et.call(t):"";return e==Ia||e==Pa}function io(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=$r}function se(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function ue(t){return!!t&&typeof t=="object"}function ao(t){return typeof t=="string"||!Nr(t)&&ue(t)&&Et.call(t)==Ma}function oo(t){return typeof t=="symbol"||ue(t)&&Et.call(t)==$a}function so(t){if(!t)return t===0?t:0;if(t=co(t),t===Pr||t===-Pr){var e=t<0?-1:1;return e*Ea}return t===t?t:0}function fo(t){var e=so(t),r=e%1;return e===e?r?e-r:e:0}function co(t){if(typeof t=="number")return t;if(oo(t))return Mr;if(se(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=se(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=t.replace(Na,"");var r=Da.test(t);return r||ka.test(t)?Ha(t.slice(2),r?2:8):Fa.test(t)?Mr:+t}function uo(t){return ce(t)?Ya(t):Xa(t)}function lo(t){return t?qa(t,uo(t)):[]}Fr.exports=to});var Br=k((jc,Gr)=>{var po=200,he="__lodash_hash_undefined__",ho=1/0,yo="[object Function]",go="[object GeneratorFunction]",bo=/[\\^$.*+?()[\]{}|]/g,_o=/^\[object .+?Constructor\]$/,vo=typeof global=="object"&&global&&global.Object===Object&&global,mo=typeof self=="object"&&self&&self.Object===Object&&self,ye=vo||mo||Function("return this")();function To(t,e){var r=t?t.length:0;return!!r&&Oo(t,e,0)>-1}function Ao(t,e,r){for(var n=-1,a=t?t.length:0;++n<a;)if(r(e,t[n]))return!0;return!1}function jo(t,e,r,n){for(var a=t.length,i=r+(n?1:-1);n?i--:++i<a;)if(e(t[i],i,t))return i;return-1}function Oo(t,e,r){if(e!==e)return jo(t,wo,r);for(var n=r-1,a=t.length;++n<a;)if(t[n]===e)return n;return-1}function wo(t){return t!==t}function So(t,e){return t.has(e)}function xo(t,e){return t==null?void 0:t[e]}function Eo(t){var e=!1;if(t!=null&&typeof t.toString!="function")try{e=!!(t+"")}catch(r){}return e}function Rr(t){var e=-1,r=Array(t.size);return t.forEach(function(n){r[++e]=n}),r}var Co=Array.prototype,Io=Function.prototype,Hr=Object.prototype,le=ye["__core-js_shared__"],kr=function(){var t=/[^.]+$/.exec(le&&le.keys&&le.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Kr=Io.toString,ge=Hr.hasOwnProperty,Po=Hr.toString,Mo=RegExp("^"+Kr.call(ge).replace(bo,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),$o=Co.splice,No=de(ye,"Map"),pe=de(ye,"Set"),st=de(Object,"create");function L(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Fo(){this.__data__=st?st(null):{}}function Do(t){return this.has(t)&&delete this.__data__[t]}function ko(t){var e=this.__data__;if(st){var r=e[t];return r===he?void 0:r}return ge.call(e,t)?e[t]:void 0}function Ro(t){var e=this.__data__;return st?e[t]!==void 0:ge.call(e,t)}function Ho(t,e){var r=this.__data__;return r[t]=st&&e===void 0?he:e,this}L.prototype.clear=Fo;L.prototype.delete=Do;L.prototype.get=ko;L.prototype.has=Ro;L.prototype.set=Ho;function Y(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Ko(){this.__data__=[]}function Lo(t){var e=this.__data__,r=It(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():$o.call(e,r,1),!0}function Go(t){var e=this.__data__,r=It(e,t);return r<0?void 0:e[r][1]}function Bo(t){return It(this.__data__,t)>-1}function Uo(t,e){var r=this.__data__,n=It(r,t);return n<0?r.push([t,e]):r[n][1]=e,this}Y.prototype.clear=Ko;Y.prototype.delete=Lo;Y.prototype.get=Go;Y.prototype.has=Bo;Y.prototype.set=Uo;function X(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function qo(){this.__data__={hash:new L,map:new(No||Y),string:new L}}function zo(t){return Pt(this,t).delete(t)}function Wo(t){return Pt(this,t).get(t)}function Jo(t){return Pt(this,t).has(t)}function Vo(t,e){return Pt(this,t).set(t,e),this}X.prototype.clear=qo;X.prototype.delete=zo;X.prototype.get=Wo;X.prototype.has=Jo;X.prototype.set=Vo;function Ct(t){var e=-1,r=t?t.length:0;for(this.__data__=new X;++e<r;)this.add(t[e])}function Yo(t){return this.__data__.set(t,he),this}function Xo(t){return this.__data__.has(t)}Ct.prototype.add=Ct.prototype.push=Yo;Ct.prototype.has=Xo;function It(t,e){for(var r=t.length;r--;)if(as(t[r][0],e))return r;return-1}function Zo(t){if(!Lr(t)||rs(t))return!1;var e=os(t)||Eo(t)?Mo:_o;return e.test(ns(t))}function Qo(t,e,r){var n=-1,a=To,i=t.length,o=!0,f=[],u=f;if(r)o=!1,a=Ao;else if(i>=po){var h=e?null:ts(t);if(h)return Rr(h);o=!1,a=So,u=new Ct}else u=e?[]:f;t:for(;++n<i;){var y=t[n],l=e?e(y):y;if(y=r||y!==0?y:0,o&&l===l){for(var s=u.length;s--;)if(u[s]===l)continue t;e&&u.push(l),f.push(y)}else a(u,l,r)||(u!==f&&u.push(l),f.push(y))}return f}var ts=pe&&1/Rr(new pe([,-0]))[1]==ho?function(t){return new pe(t)}:ss;function Pt(t,e){var r=t.__data__;return es(e)?r[typeof e=="string"?"string":"hash"]:r.map}function de(t,e){var r=xo(t,e);return Zo(r)?r:void 0}function es(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function rs(t){return!!kr&&kr in t}function ns(t){if(t!=null){try{return Kr.call(t)}catch(e){}try{return t+""}catch(e){}}return""}function is(t){return t&&t.length?Qo(t):[]}function as(t,e){return t===e||t!==t&&e!==e}function os(t){var e=Lr(t)?Po.call(t):"";return e==yo||e==go}function Lr(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function ss(){}Gr.exports=is});var ft=k((Oc,zr)=>{var fs="[object Object]";function cs(t){var e=!1;if(t!=null&&typeof t.toString!="function")try{e=!!(t+"")}catch(r){}return e}function us(t,e){return function(r){return t(e(r))}}var ls=Function.prototype,Ur=Object.prototype,qr=ls.toString,ps=Ur.hasOwnProperty,hs=qr.call(Object),ys=Ur.toString,gs=us(Object.getPrototypeOf,Object);function ds(t){return!!t&&typeof t=="object"}function bs(t){if(!ds(t)||ys.call(t)!=fs||cs(t))return!1;var e=gs(t);if(e===null)return!0;var r=ps.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&qr.call(r)==hs}zr.exports=bs});var Zr=k((ct,Z)=>{var _s="[object Date]",vs=typeof global=="object"&&global&&global.Object===Object&&global,Xr=typeof ct=="object"&&ct&&!ct.nodeType&&ct,Wr=Xr&&typeof Z=="object"&&Z&&!Z.nodeType&&Z,ms=Wr&&Wr.exports===Xr,Jr=ms&&vs.process,Vr=function(){try{return Jr&&Jr.binding("util")}catch(t){}}(),Yr=Vr&&Vr.isDate;function Ts(t){return function(e){return t(e)}}var As=Object.prototype,js=As.toString;function Os(t){return Ss(t)&&js.call(t)==_s}var ws=Yr?Ts(Yr):Os;function Ss(t){return!!t&&typeof t=="object"}Z.exports=ws});var tn=k((wc,Qr)=>{var xs=typeof global=="object"&&global&&global.Object===Object&&global,Es=typeof self=="object"&&self&&self.Object===Object&&self,Cs=xs||Es||Function("return this")(),Is=Cs.isFinite;function Ps(t){return typeof t=="number"&&Is(t)}Qr.exports=Ps});var Bn=k((lt,tt)=>{var Rs=200,$e="__lodash_hash_undefined__",Kt=1,mn=2,Tn=9007199254740991,$t="[object Arguments]",Se="[object Array]",Hs="[object AsyncFunction]",An="[object Boolean]",jn="[object Date]",On="[object Error]",wn="[object Function]",Ks="[object GeneratorFunction]",Nt="[object Map]",Sn="[object Number]",Ls="[object Null]",Q="[object Object]",cn="[object Promise]",Gs="[object Proxy]",xn="[object RegExp]",Ft="[object Set]",En="[object String]",Bs="[object Symbol]",Us="[object Undefined]",xe="[object WeakMap]",Cn="[object ArrayBuffer]",Dt="[object DataView]",qs="[object Float32Array]",zs="[object Float64Array]",Ws="[object Int8Array]",Js="[object Int16Array]",Vs="[object Int32Array]",Ys="[object Uint8Array]",Xs="[object Uint8ClampedArray]",Zs="[object Uint16Array]",Qs="[object Uint32Array]",tf=/[\\^$.*+?()[\]{}|]/g,ef=/^\[object .+?Constructor\]$/,rf=/^(?:0|[1-9]\d*)$/,b={};b[qs]=b[zs]=b[Ws]=b[Js]=b[Vs]=b[Ys]=b[Xs]=b[Zs]=b[Qs]=!0;b[$t]=b[Se]=b[Cn]=b[An]=b[Dt]=b[jn]=b[On]=b[wn]=b[Nt]=b[Sn]=b[Q]=b[xn]=b[Ft]=b[En]=b[xe]=!1;var In=typeof global=="object"&&global&&global.Object===Object&&global,nf=typeof self=="object"&&self&&self.Object===Object&&self,E=In||nf||Function("return this")(),Pn=typeof lt=="object"&&lt&&!lt.nodeType&&lt,un=Pn&&typeof tt=="object"&&tt&&!tt.nodeType&&tt,Mn=un&&un.exports===Pn,je=Mn&&In.process,ln=function(){try{return je&&je.binding&&je.binding("util")}catch(t){}}(),pn=ln&&ln.isTypedArray;function af(t,e){for(var r=-1,n=t==null?0:t.length,a=0,i=[];++r<n;){var o=t[r];e(o,r,t)&&(i[a++]=o)}return i}function of(t,e){for(var r=-1,n=e.length,a=t.length;++r<n;)t[a+r]=e[r];return t}function sf(t,e){for(var r=-1,n=t==null?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}function ff(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}function cf(t){return function(e){return t(e)}}function uf(t,e){return t.has(e)}function lf(t,e){return t==null?void 0:t[e]}function pf(t){var e=-1,r=Array(t.size);return t.forEach(function(n,a){r[++e]=[a,n]}),r}function hf(t,e){return function(r){return t(e(r))}}function yf(t){var e=-1,r=Array(t.size);return t.forEach(function(n){r[++e]=n}),r}var gf=Array.prototype,df=Function.prototype,Lt=Object.prototype,Oe=E["__core-js_shared__"],$n=df.toString,O=Lt.hasOwnProperty,hn=function(){var t=/[^.]+$/.exec(Oe&&Oe.keys&&Oe.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Nn=Lt.toString,bf=RegExp("^"+$n.call(O).replace(tf,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),yn=Mn?E.Buffer:void 0,kt=E.Symbol,gn=E.Uint8Array,Fn=Lt.propertyIsEnumerable,_f=gf.splice,G=kt?kt.toStringTag:void 0,dn=Object.getOwnPropertySymbols,vf=yn?yn.isBuffer:void 0,mf=hf(Object.keys,Object),Ee=et(E,"DataView"),pt=et(E,"Map"),Ce=et(E,"Promise"),Ie=et(E,"Set"),Pe=et(E,"WeakMap"),ht=et(Object,"create"),Tf=q(Ee),Af=q(pt),jf=q(Ce),Of=q(Ie),wf=q(Pe),bn=kt?kt.prototype:void 0,we=bn?bn.valueOf:void 0;function B(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Sf(){this.__data__=ht?ht(null):{},this.size=0}function xf(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}function Ef(t){var e=this.__data__;if(ht){var r=e[t];return r===$e?void 0:r}return O.call(e,t)?e[t]:void 0}function Cf(t){var e=this.__data__;return ht?e[t]!==void 0:O.call(e,t)}function If(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=ht&&e===void 0?$e:e,this}B.prototype.clear=Sf;B.prototype.delete=xf;B.prototype.get=Ef;B.prototype.has=Cf;B.prototype.set=If;function C(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Pf(){this.__data__=[],this.size=0}function Mf(t){var e=this.__data__,r=Gt(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():_f.call(e,r,1),--this.size,!0}function $f(t){var e=this.__data__,r=Gt(e,t);return r<0?void 0:e[r][1]}function Nf(t){return Gt(this.__data__,t)>-1}function Ff(t,e){var r=this.__data__,n=Gt(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}C.prototype.clear=Pf;C.prototype.delete=Mf;C.prototype.get=$f;C.prototype.has=Nf;C.prototype.set=Ff;function U(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Df(){this.size=0,this.__data__={hash:new B,map:new(pt||C),string:new B}}function kf(t){var e=Bt(this,t).delete(t);return this.size-=e?1:0,e}function Rf(t){return Bt(this,t).get(t)}function Hf(t){return Bt(this,t).has(t)}function Kf(t,e){var r=Bt(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this}U.prototype.clear=Df;U.prototype.delete=kf;U.prototype.get=Rf;U.prototype.has=Hf;U.prototype.set=Kf;function Rt(t){var e=-1,r=t==null?0:t.length;for(this.__data__=new U;++e<r;)this.add(t[e])}function Lf(t){return this.__data__.set(t,$e),this}function Gf(t){return this.__data__.has(t)}Rt.prototype.add=Rt.prototype.push=Lf;Rt.prototype.has=Gf;function N(t){var e=this.__data__=new C(t);this.size=e.size}function Bf(){this.__data__=new C,this.size=0}function Uf(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}function qf(t){return this.__data__.get(t)}function zf(t){return this.__data__.has(t)}function Wf(t,e){var r=this.__data__;if(r instanceof C){var n=r.__data__;if(!pt||n.length<Rs-1)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new U(n)}return r.set(t,e),this.size=r.size,this}N.prototype.clear=Bf;N.prototype.delete=Uf;N.prototype.get=qf;N.prototype.has=zf;N.prototype.set=Wf;function Jf(t,e){var r=Ht(t),n=!r&&cc(t),a=!r&&!n&&Me(t),i=!r&&!n&&!a&&Gn(t),o=r||n||a||i,f=o?ff(t.length,String):[],u=f.length;for(var h in t)(e||O.call(t,h))&&!(o&&(h=="length"||a&&(h=="offset"||h=="parent")||i&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||ic(h,u)))&&f.push(h);return f}function Gt(t,e){for(var r=t.length;r--;)if(Rn(t[r][0],e))return r;return-1}function Vf(t,e,r){var n=e(t);return Ht(t)?n:of(n,r(t))}function gt(t){return t==null?t===void 0?Us:Ls:G&&G in Object(t)?rc(t):fc(t)}function _n(t){return yt(t)&&gt(t)==$t}function Dn(t,e,r,n,a){return t===e?!0:t==null||e==null||!yt(t)&&!yt(e)?t!==t&&e!==e:Yf(t,e,r,n,Dn,a)}function Yf(t,e,r,n,a,i){var o=Ht(t),f=Ht(e),u=o?Se:$(t),h=f?Se:$(e);u=u==$t?Q:u,h=h==$t?Q:h;var y=u==Q,l=h==Q,s=u==h;if(s&&Me(t)){if(!Me(e))return!1;o=!0,y=!1}if(s&&!y)return i||(i=new N),o||Gn(t)?kn(t,e,r,n,a,i):tc(t,e,u,r,n,a,i);if(!(r&Kt)){var g=y&&O.call(t,"__wrapped__"),p=l&&O.call(e,"__wrapped__");if(g||p){var m=g?t.value():t,w=p?e.value():e;return i||(i=new N),a(m,w,r,n,i)}}return s?(i||(i=new N),ec(t,e,r,n,a,i)):!1}function Xf(t){if(!Ln(t)||oc(t))return!1;var e=Hn(t)?bf:ef;return e.test(q(t))}function Zf(t){return yt(t)&&Kn(t.length)&&!!b[gt(t)]}function Qf(t){if(!sc(t))return mf(t);var e=[];for(var r in Object(t))O.call(t,r)&&r!="constructor"&&e.push(r);return e}function kn(t,e,r,n,a,i){var o=r&Kt,f=t.length,u=e.length;if(f!=u&&!(o&&u>f))return!1;var h=i.get(t);if(h&&i.get(e))return h==e;var y=-1,l=!0,s=r&mn?new Rt:void 0;for(i.set(t,e),i.set(e,t);++y<f;){var g=t[y],p=e[y];if(n)var m=o?n(p,g,y,e,t,i):n(g,p,y,t,e,i);if(m!==void 0){if(m)continue;l=!1;break}if(s){if(!sf(e,function(w,D){if(!uf(s,D)&&(g===w||a(g,w,r,n,i)))return s.push(D)})){l=!1;break}}else if(!(g===p||a(g,p,r,n,i))){l=!1;break}}return i.delete(t),i.delete(e),l}function tc(t,e,r,n,a,i,o){switch(r){case Dt:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case Cn:return!(t.byteLength!=e.byteLength||!i(new gn(t),new gn(e)));case An:case jn:case Sn:return Rn(+t,+e);case On:return t.name==e.name&&t.message==e.message;case xn:case En:return t==e+"";case Nt:var f=pf;case Ft:var u=n&Kt;if(f||(f=yf),t.size!=e.size&&!u)return!1;var h=o.get(t);if(h)return h==e;n|=mn,o.set(t,e);var y=kn(f(t),f(e),n,a,i,o);return o.delete(t),y;case Bs:if(we)return we.call(t)==we.call(e)}return!1}function ec(t,e,r,n,a,i){var o=r&Kt,f=vn(t),u=f.length,h=vn(e),y=h.length;if(u!=y&&!o)return!1;for(var l=u;l--;){var s=f[l];if(!(o?s in e:O.call(e,s)))return!1}var g=i.get(t);if(g&&i.get(e))return g==e;var p=!0;i.set(t,e),i.set(e,t);for(var m=o;++l<u;){s=f[l];var w=t[s],D=e[s];if(n)var He=o?n(D,w,s,e,t,i):n(w,D,s,t,e,i);if(!(He===void 0?w===D||a(w,D,r,n,i):He)){p=!1;break}m||(m=s=="constructor")}if(p&&!m){var dt=t.constructor,bt=e.constructor;dt!=bt&&"constructor"in t&&"constructor"in e&&!(typeof dt=="function"&&dt instanceof dt&&typeof bt=="function"&&bt instanceof bt)&&(p=!1)}return i.delete(t),i.delete(e),p}function vn(t){return Vf(t,pc,nc)}function Bt(t,e){var r=t.__data__;return ac(e)?r[typeof e=="string"?"string":"hash"]:r.map}function et(t,e){var r=lf(t,e);return Xf(r)?r:void 0}function rc(t){var e=O.call(t,G),r=t[G];try{t[G]=void 0;var n=!0}catch(i){}var a=Nn.call(t);return n&&(e?t[G]=r:delete t[G]),a}var nc=dn?function(t){return t==null?[]:(t=Object(t),af(dn(t),function(e){return Fn.call(t,e)}))}:hc,$=gt;(Ee&&$(new Ee(new ArrayBuffer(1)))!=Dt||pt&&$(new pt)!=Nt||Ce&&$(Ce.resolve())!=cn||Ie&&$(new Ie)!=Ft||Pe&&$(new Pe)!=xe)&&($=function(t){var e=gt(t),r=e==Q?t.constructor:void 0,n=r?q(r):"";if(n)switch(n){case Tf:return Dt;case Af:return Nt;case jf:return cn;case Of:return Ft;case wf:return xe}return e});function ic(t,e){return e=e==null?Tn:e,!!e&&(typeof t=="number"||rf.test(t))&&t>-1&&t%1==0&&t<e}function ac(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function oc(t){return!!hn&&hn in t}function sc(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||Lt;return t===r}function fc(t){return Nn.call(t)}function q(t){if(t!=null){try{return $n.call(t)}catch(e){}try{return t+""}catch(e){}}return""}function Rn(t,e){return t===e||t!==t&&e!==e}var cc=_n(function(){return arguments}())?_n:function(t){return yt(t)&&O.call(t,"callee")&&!Fn.call(t,"callee")},Ht=Array.isArray;function uc(t){return t!=null&&Kn(t.length)&&!Hn(t)}var Me=vf||yc;function lc(t,e){return Dn(t,e)}function Hn(t){if(!Ln(t))return!1;var e=gt(t);return e==wn||e==Ks||e==Hs||e==Gs}function Kn(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Tn}function Ln(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}function yt(t){return t!=null&&typeof t=="object"}var Gn=pn?cf(pn):Zf;function pc(t){return uc(t)?Jf(t):Qf(t)}function hc(){return[]}function yc(){return!1}tt.exports=lc});var mc={};Qn(mc,{defaults:()=>qn,fillMissing:()=>vc,version:()=>bc});var qt=T(oe(),1);var c=T(oe(),1),an=T(Dr(),1),on=T(Br(),1),j=T(ft(),1),ut=T(Zr(),1),Ae=T(tn(),1);var en=T(ft(),1);function A(t){return t==null?!1:Array.isArray(t)||typeof t=="string"?!!t.length:(0,en.default)(t)?!!Object.keys(t).length:typeof t=="number"}function be(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var _e=new Map,rn=(t,e)=>{if(!Array.isArray(t))switch(typeof t){case"string":t=[t];break;case"undefined":t=[];break;default:throw new TypeError(`Expected '${e}' to be a string or an array, but got a type of '${typeof t}'`)}return t.filter(r=>{if(typeof r!="string"){if(typeof r>"u")return!1;throw new TypeError(`Expected '${e}' to be an array of strings, but found a type of '${typeof r}' in the array`)}return!0})},Ms=(t,e)=>{e=_({caseSensitive:!1},e);let r=t+JSON.stringify(e);if(_e.has(r))return _e.get(r);let n=t[0]==="!";n&&(t=t.slice(1)),t=be(t).replace(/\\\*/g,"[\\s\\S]*");let a=new RegExp(`^${t}$`,e.caseSensitive?"":"i");return a.negated=n,_e.set(r,a),a},$s=(t,e,r,n)=>{if(t=rn(t,"inputs"),e=rn(e,"patterns"),e.length===0)return[];e=e.map(o=>Ms(o,r));let{allPatterns:a}=r||{},i=[];for(let o of t){let f,u=[...e].fill(!1);for(let[h,y]of e.entries())if(y.test(o)&&(u[h]=!0,f=!y.negated,!f))break;if(!(f===!1||f===void 0&&e.some(h=>!h.negated)||a&&u.some((h,y)=>!h&&!e[y].negated))&&(i.push(o),n))break}return i};function Mt(t,e,r){return $s(t,e,r,!0).length>0}var Ns={arrayVsArrayAllMustBeFound:"any",caseSensitive:!0};function ve(t,e,r){if(!t.length||!e.length)return!1;let n=_(_({},Ns),r),a=typeof t=="string"?[t]:Array.from(t);return typeof e=="string"?a.some(i=>Mt(i,e,{caseSensitive:n.caseSensitive})):n.arrayVsArrayAllMustBeFound==="any"?e.some(i=>a.some(o=>Mt(o,i,{caseSensitive:n.caseSensitive}))):e.every(i=>a.some(o=>Mt(o,i,{caseSensitive:n.caseSensitive})))}function me(t){return typeof t=="string"}function Fs(t){return typeof t=="number"}function Te(t){return typeof t=="boolean"}var P=Array.isArray;function nn(t){return!!t&&t.some(e=>typeof e=="string")}function Ds(t,e){return Object.keys(t).length===0||Object.keys(e).length===0||Object.keys(t).every(r=>Object.keys(e).includes(r))||Object.keys(e).every(r=>Object.keys(t).includes(r))}function v(t){return t===null?"null":(0,ut.default)(t)?"date":(0,j.default)(t)?"object":P(t)?"array":typeof t}var ks={cb:null,mergeObjectsOnlyWhenKeysetMatches:!0,ignoreKeys:[],hardMergeKeys:[],hardArrayConcatKeys:[],mergeArraysContainingStringsToBeEmpty:!1,oneToManyArrayObjectMerge:!1,hardMergeEverything:!1,hardArrayConcat:!1,ignoreEverything:!1,concatInsteadOfMerging:!0,dedupeStringsInArrayValues:!1,mergeBoolsUsingOrNotAnd:!0,useNullAsExplicitFalse:!1};function M(t,e,r,n){var y;let a;if(n.useNullAsExplicitFalse&&(e===null||r===null))return typeof n.cb=="function"?n.cb(e,r,null,{path:t.path,key:t.key,type:t.type}):null;let i=P(e)||(0,j.default)(e)?(0,c.default)(e):e,o=P(r)||(0,j.default)(r)?(0,c.default)(r):r,f;n.ignoreEverything?f=i:n.hardMergeEverything&&(f=o);let u=n.hardMergeEverything||n.ignoreEverything;if(P(i))if(A(i))if(P(o)&&A(o)){if(n.mergeArraysContainingStringsToBeEmpty&&(nn(i)||nn(o))){let s=u?f:[];return typeof n.cb=="function"?n.cb((0,c.default)(e),(0,c.default)(r),s,{path:a,key:t.key,type:t.type}):s}if(n.hardArrayConcat){let s=u?f:i.concat(o);return typeof n.cb=="function"?n.cb((0,c.default)(e),(0,c.default)(r),s,{path:a,key:t.key,type:t.type}):s}let l=[];for(let s=0,g=Math.max(i.length,o.length);s<g;s++)a=(y=t.path)!=null&&y.length?`${t.path}.${s}`:`${s}`,(0,j.default)(i[s])&&(0,j.default)(o[s])&&(n.mergeObjectsOnlyWhenKeysetMatches&&Ds(i[s],o[s])||!n.mergeObjectsOnlyWhenKeysetMatches)?l.push(M({path:a,key:t.key,type:[v(i),v(o)]},i[s],o[s],n)):n.oneToManyArrayObjectMerge&&(i.length===1||o.length===1)?l.push(i.length===1?M({path:a,key:t.key,type:[v(i),v(o)]},i[0],o[s],n):M({path:a,key:t.key,type:[v(i),v(o)]},i[s],o[0],n)):n.concatInsteadOfMerging?(s<i.length&&l.push(i[s]),s<o.length&&l.push(o[s])):(s<i.length&&l.push(i[s]),s<o.length&&!(0,an.default)(i,o[s])&&l.push(o[s]));n.dedupeStringsInArrayValues&&l.every(s=>me(s))&&(l=(0,on.default)(l).sort()),i=(0,c.default)(l)}else{let l=u?f:i;return typeof n.cb=="function"?n.cb((0,c.default)(e),(0,c.default)(r),l,{path:a,key:t.key,type:t.type}):l}else{if(A(o)){let s=u?f:o;return typeof n.cb=="function"?n.cb((0,c.default)(e),(0,c.default)(r),s,{path:a,key:t.key,type:t.type}):s}let l=u?f:i;return typeof n.cb=="function"?n.cb((0,c.default)(e),(0,c.default)(r),l,{path:a,key:t.key,type:t.type}):l}else if((0,j.default)(i)){if(A(i)){if(P(o)){if(A(o)){let p=u?f:o;return typeof n.cb=="function"?n.cb((0,c.default)(e),(0,c.default)(r),p,{path:a,key:t.key,type:t.type}):p}let g=u?f:i;return typeof n.cb=="function"?n.cb((0,c.default)(e),(0,c.default)(r),g,{path:a,key:t.key,type:t.type}):g}if((0,j.default)(o)){Object.keys(o).forEach(p=>{var m;a=(m=t.path)!=null&&m.length?`${t.path}.${p}`:`${p}`,i.hasOwnProperty(p)?ve(p,n.ignoreKeys)?i[p]=M({path:a,key:p,type:[v(i),v(o)]},i[p],o[p],_t(_({},n),{ignoreEverything:!0})):ve(p,n.hardMergeKeys)?i[p]=M({path:a,key:p,type:[v(i),v(o)]},i[p],o[p],_t(_({},n),{hardMergeEverything:!0})):ve(p,n.hardArrayConcatKeys)?i[p]=M({path:a,key:p,type:[v(i),v(o)]},i[p],o[p],_t(_({},n),{hardArrayConcat:!0})):i[p]=M({path:a,key:p,type:[v(i[p]),v(o[p])]},i[p],o[p],n):i[p]=o[p]});let g=u?f:i;return typeof n.cb=="function"?n.cb((0,c.default)(e),(0,c.default)(r),g,{path:t.path,key:t.key,type:t.type}):i}let s=u?f:i;return typeof n.cb=="function"?n.cb((0,c.default)(e),(0,c.default)(r),s,{path:t.path,key:t.key,type:t.type}):s}if(P(o)||(0,j.default)(o)||A(o)){let s=u?f:o;return typeof n.cb=="function"?n.cb((0,c.default)(e),(0,c.default)(r),s,{path:t.path,key:t.key,type:t.type}):s}let l=u?f:i;return typeof n.cb=="function"?n.cb((0,c.default)(e),(0,c.default)(r),l,{path:t.path,key:t.key,type:t.type}):l}else if((0,ut.default)(i)){if((0,Ae.default)(+i)){if((0,ut.default)(o)){if((0,Ae.default)(+o)){let p=u?f:i>o?i:o;return typeof n.cb=="function"?n.cb((0,c.default)(e),(0,c.default)(r),p,{path:t.path,key:t.key,type:t.type}):p}let g=u?f:i;return typeof n.cb=="function"?n.cb((0,c.default)(e),(0,c.default)(r),g,{path:t.path,key:t.key,type:t.type}):g}let s=u?f:o||i;return typeof n.cb=="function"?n.cb((0,c.default)(e),(0,c.default)(r),s,{path:t.path,key:t.key,type:t.type}):s}if((0,ut.default)(o)){let s=u?f:o;return typeof n.cb=="function"?n.cb((0,c.default)(e),(0,c.default)(r),s,{path:t.path,key:t.key,type:t.type}):s}let l=u?f:o;return typeof n.cb=="function"?n.cb((0,c.default)(e),(0,c.default)(r),l,{path:t.path,key:t.key,type:t.type}):l}else if(me(i)){if(A(i)){if((P(o)||(0,j.default)(o)||me(o))&&A(o)){let g=u?f:o;return typeof n.cb=="function"?n.cb((0,c.default)(e),(0,c.default)(r),g,{path:t.path,key:t.key,type:t.type}):g}let s=u?f:i;return typeof n.cb=="function"?n.cb((0,c.default)(e),(0,c.default)(r),s,{path:t.path,key:t.key,type:t.type}):s}if(o!=null&&!Te(o)){let s=u?f:o;return typeof n.cb=="function"?n.cb((0,c.default)(e),(0,c.default)(r),s,{path:t.path,key:t.key,type:t.type}):s}let l=u?f:i;return typeof n.cb=="function"?n.cb((0,c.default)(e),(0,c.default)(r),l,{path:t.path,key:t.key,type:t.type}):l}else if(Fs(i)){if(A(o)){let s=u?f:o;return typeof n.cb=="function"?n.cb((0,c.default)(e),(0,c.default)(r),s,{path:t.path,key:t.key,type:t.type}):s}let l=u?f:i;return typeof n.cb=="function"?n.cb((0,c.default)(e),(0,c.default)(r),l,{path:t.path,key:t.key,type:t.type}):l}else if(Te(i)){if(Te(o)){if(n.mergeBoolsUsingOrNotAnd){let g=u?f:i||o;return typeof n.cb=="function"?n.cb((0,c.default)(e),(0,c.default)(r),g,{path:t.path,key:t.key,type:t.type}):g}let s=u?f:i&&o;return typeof n.cb=="function"?n.cb((0,c.default)(e),(0,c.default)(r),s,{path:t.path,key:t.key,type:t.type}):s}if(o!=null){let s=u?f:o;return typeof n.cb=="function"?n.cb((0,c.default)(e),(0,c.default)(r),s,{path:t.path,key:t.key,type:t.type}):s}let l=u?f:i;return typeof n.cb=="function"?n.cb((0,c.default)(e),(0,c.default)(r),l,{path:t.path,key:t.key,type:t.type}):l}else if(i===null){if(o!=null){let s=u?f:o;return typeof n.cb=="function"?n.cb((0,c.default)(e),(0,c.default)(r),s,{path:t.path,key:t.key,type:t.type}):s}let l=u?f:i;return typeof n.cb=="function"?n.cb((0,c.default)(e),(0,c.default)(r),l,{path:t.path,key:t.key,type:t.type}):l}else{let l=u?f:o;return typeof n.cb=="function"?n.cb((0,c.default)(e),(0,c.default)(r),l,{path:t.path,key:t.key,type:t.type}):l}let h=u?f:i;return typeof n.cb=="function"?n.cb((0,c.default)(e),(0,c.default)(r),h,{path:t.path,key:t.key,type:t.type}):h}function sn(t,e,r){var a,i;if(!arguments.length)throw new TypeError("object-merge-advanced/mergeAdvanced(): [THROW_ID_01] Both inputs are missing");let n=_(_({},ks),r);return typeof n.ignoreKeys=="string"&&(n.ignoreKeys=[n.ignoreKeys]),typeof n.hardMergeKeys=="string"&&(n.hardMergeKeys=[n.hardMergeKeys]),(a=n==null?void 0:n.hardMergeKeys)!=null&&a.includes("*")&&(n.hardMergeEverything=!0),(i=n==null?void 0:n.ignoreKeys)!=null&&i.includes("*")&&(n.ignoreEverything=!0),M({key:null,path:"",type:[v(t),v(e)]},t,e,n)}function fn(t){return typeof t!="string"?t:t.length?[t]:[]}var De=T(ft(),1),Ne=T(Bn(),1);var gc={arraysMustNotContainPlaceholders:!0};function Fe(t,e,r){if(Array.isArray(t)){if(t.length===0)return!0;if(r.arraysMustNotContainPlaceholders&&t.length&&t.some(n=>(0,Ne.default)(n,e)))return!1;for(let n=t.length;n--;)if(!Fe(t[n],e,r))return!1;return!0}if((0,De.default)(t)){let n=Object.keys(t);if(n.length===0)return!0;for(let a=n.length;a--;)if(!Fe(t[n[a]],e,r))return!1;return!0}return(0,Ne.default)(t,e)}function Ut(t,e,r){if(t===void 0)throw new Error("object-all-values-equal-to: [THROW_ID_01] The first input is undefined! Please provide the first argument.");if(e===void 0)throw new Error("object-all-values-equal-to: [THROW_ID_02] The second input is undefined! Please provide the second argument.");if(r&&!(0,De.default)(r))throw new Error(`object-all-values-equal-to: [THROW_ID_03] The third argument, options object, was given not as a plain object but as a ${typeof r}, equal to:
11
- ${JSON.stringify(r,null,4)}`);let n=_(_({},gc),r);return Fe(t,e,n)}var F=T(ft(),1);var Un="10.0.0";var bc=Un,qn={placeholder:!1,doNotFillThesePathsIfTheyContainPlaceholders:[],useNullAsExplicitFalse:!0};function rt(t){return(0,F.default)(t)?"plain object":Array.isArray(t)?"array":typeof t}function _c(t){return typeof t=="string"}function ke(t){return t!=null}function Re(t,e,r,n=""){let a=(0,qt.default)(t);if(ke(a)||!(n.length&&r.doNotFillThesePathsIfTheyContainPlaceholders.includes(n)&&Ut(a,r.placeholder)))if((0,F.default)(e)&&(0,F.default)(a))Object.keys(e).forEach(i=>{let o=`${n?`${n}.`:""}${i}`;r.doNotFillThesePathsIfTheyContainPlaceholders.includes(o)&&(ke(a[i])?Ut(a[i],r.placeholder)&&(a[i]=r.placeholder):a[i]=r.placeholder),(!ke(a[i])||!(r.doNotFillThesePathsIfTheyContainPlaceholders.includes(o)&&Ut(a[i],r.placeholder)))&&(a[i]=Re(a[i],e[i],r,o))});else if(Array.isArray(e)&&Array.isArray(a)){if(a.length===0)return e;if(e.length)for(let i=a.length;i--;){let o=`${n?`${n}.`:""}0`;((0,F.default)(e[0])||Array.isArray(e[0]))&&(a[i]=Re(a[i],e[0],r,o))}}else return sn(e,a,{useNullAsExplicitFalse:r.useNullAsExplicitFalse,cb:(i,o,f)=>rt(i)===rt(o)?o:f});return a}function vc(t,e,r){if(arguments.length===0)throw new Error("object-fill-missing-keys: [THROW_ID_01] All arguments are missing!");if(!(0,F.default)(t))throw new Error(`object-fill-missing-keys: [THROW_ID_02] First argument, input object must be a plain object. Currently it's type is "${rt(t)}" and it's equal to: ${JSON.stringify(t,null,4)}`);if(!(0,F.default)(e))throw new Error(`object-fill-missing-keys: [THROW_ID_03] Second argument, schema object, must be a plain object. Currently it's type is "${rt(e)}" and it's equal to: ${JSON.stringify(e,null,4)}`);if(r&&!(0,F.default)(r))throw new Error(`object-fill-missing-keys: [THROW_ID_04] Third argument, schema object, must be a plain object. Currently it's type is "${rt(r)}" and it's equal to: ${JSON.stringify(r,null,4)}`);let n=_(_({},qn),r);n.doNotFillThesePathsIfTheyContainPlaceholders=fn(n.doNotFillThesePathsIfTheyContainPlaceholders);let a=null,i=null;if(n.doNotFillThesePathsIfTheyContainPlaceholders.length&&!n.doNotFillThesePathsIfTheyContainPlaceholders.every((o,f)=>_c(o)?!0:(a=o,i=f,!1)))throw new Error(`object-fill-missing-keys: [THROW_ID_06] resolvedOpts.doNotFillThesePathsIfTheyContainPlaceholders element with an index number "${i}" is not a string! It's ${rt(a)}, equal to:
11
+ ${JSON.stringify(r,null,4)}`);let n=_(_({},gc),r);return Fe(t,e,n)}var F=T(ft(),1);var Un="10.0.2";var bc=Un,qn={placeholder:!1,doNotFillThesePathsIfTheyContainPlaceholders:[],useNullAsExplicitFalse:!0};function rt(t){return(0,F.default)(t)?"plain object":Array.isArray(t)?"array":typeof t}function _c(t){return typeof t=="string"}function ke(t){return t!=null}function Re(t,e,r,n=""){let a=(0,qt.default)(t);if(ke(a)||!(n.length&&r.doNotFillThesePathsIfTheyContainPlaceholders.includes(n)&&Ut(a,r.placeholder)))if((0,F.default)(e)&&(0,F.default)(a))Object.keys(e).forEach(i=>{let o=`${n?`${n}.`:""}${i}`;r.doNotFillThesePathsIfTheyContainPlaceholders.includes(o)&&(ke(a[i])?Ut(a[i],r.placeholder)&&(a[i]=r.placeholder):a[i]=r.placeholder),(!ke(a[i])||!(r.doNotFillThesePathsIfTheyContainPlaceholders.includes(o)&&Ut(a[i],r.placeholder)))&&(a[i]=Re(a[i],e[i],r,o))});else if(Array.isArray(e)&&Array.isArray(a)){if(a.length===0)return e;if(e.length)for(let i=a.length;i--;){let o=`${n?`${n}.`:""}0`;((0,F.default)(e[0])||Array.isArray(e[0]))&&(a[i]=Re(a[i],e[0],r,o))}}else return sn(e,a,{useNullAsExplicitFalse:r.useNullAsExplicitFalse,cb:(i,o,f)=>rt(i)===rt(o)?o:f});return a}function vc(t,e,r){if(arguments.length===0)throw new Error("object-fill-missing-keys: [THROW_ID_01] All arguments are missing!");if(!(0,F.default)(t))throw new Error(`object-fill-missing-keys: [THROW_ID_02] First argument, input object must be a plain object. Currently it's type is "${rt(t)}" and it's equal to: ${JSON.stringify(t,null,4)}`);if(!(0,F.default)(e))throw new Error(`object-fill-missing-keys: [THROW_ID_03] Second argument, schema object, must be a plain object. Currently it's type is "${rt(e)}" and it's equal to: ${JSON.stringify(e,null,4)}`);if(r&&!(0,F.default)(r))throw new Error(`object-fill-missing-keys: [THROW_ID_04] Third argument, schema object, must be a plain object. Currently it's type is "${rt(r)}" and it's equal to: ${JSON.stringify(r,null,4)}`);let n=_(_({},qn),r);n.doNotFillThesePathsIfTheyContainPlaceholders=fn(n.doNotFillThesePathsIfTheyContainPlaceholders);let a=null,i=null;if(n.doNotFillThesePathsIfTheyContainPlaceholders.length&&!n.doNotFillThesePathsIfTheyContainPlaceholders.every((o,f)=>_c(o)?!0:(a=o,i=f,!1)))throw new Error(`object-fill-missing-keys: [THROW_ID_06] resolvedOpts.doNotFillThesePathsIfTheyContainPlaceholders element with an index number "${i}" is not a string! It's ${rt(a)}, equal to:
12
12
  ${JSON.stringify(a,null,4)}`);return Re((0,qt.default)(t),(0,qt.default)(e),n)}return ti(mc);})();
13
13
  /**
14
14
  * @name arrayiffy-if-string
15
15
  * @fileoverview Put non-empty strings into arrays, turn empty-ones into empty arrays. Bypass everything else.
16
- * @version 4.1.1
16
+ * @version 4.1.3
17
17
  * @author Roy Revelt, Codsen Ltd
18
18
  * @license MIT
19
19
  * {@link https://codsen.com/os/arrayiffy-if-string/}
@@ -21,7 +21,7 @@ ${JSON.stringify(a,null,4)}`);return Re((0,qt.default)(t),(0,qt.default)(e),n)}r
21
21
  /**
22
22
  * @name object-all-values-equal-to
23
23
  * @fileoverview Does the AST/nested-plain-object/array/whatever contain only one kind of value?
24
- * @version 3.2.1
24
+ * @version 3.2.3
25
25
  * @author Roy Revelt, Codsen Ltd
26
26
  * @license MIT
27
27
  * {@link https://codsen.com/os/object-all-values-equal-to/}
@@ -29,7 +29,7 @@ ${JSON.stringify(a,null,4)}`);return Re((0,qt.default)(t),(0,qt.default)(e),n)}r
29
29
  /**
30
30
  * @name object-merge-advanced
31
31
  * @fileoverview Deeply merge JSON-like data structures
32
- * @version 13.2.1
32
+ * @version 13.2.3
33
33
  * @author Roy Revelt, Codsen Ltd
34
34
  * @license MIT
35
35
  * {@link https://codsen.com/os/object-merge-advanced/}
@@ -37,7 +37,7 @@ ${JSON.stringify(a,null,4)}`);return Re((0,qt.default)(t),(0,qt.default)(e),n)}r
37
37
  /**
38
38
  * @name util-nonempty
39
39
  * @fileoverview Is the input (plain object, array, string or whatever) not empty?
40
- * @version 4.1.1
40
+ * @version 4.1.3
41
41
  * @author Roy Revelt, Codsen Ltd
42
42
  * @license MIT
43
43
  * {@link https://codsen.com/os/util-nonempty/}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "object-fill-missing-keys",
3
- "version": "10.0.0",
3
+ "version": "10.0.2",
4
4
  "description": "Add missing keys into plain objects, according to a reference object",
5
5
  "keywords": [
6
6
  "add",
@@ -72,11 +72,11 @@
72
72
  }
73
73
  },
74
74
  "dependencies": {
75
- "arrayiffy-if-string": "^4.1.1",
75
+ "arrayiffy-if-string": "^4.1.3",
76
76
  "lodash.clonedeep": "^4.5.0",
77
77
  "lodash.isplainobject": "^4.0.6",
78
- "object-all-values-equal-to": "^3.2.1",
79
- "object-merge-advanced": "^13.2.1"
78
+ "object-all-values-equal-to": "^3.2.3",
79
+ "object-merge-advanced": "^13.2.3"
80
80
  },
81
81
  "devDependencies": {
82
82
  "@types/lodash.clonedeep": "^4.5.7",