redux-firestore
Version:
Redux bindings for Firestore.
2 lines • 115 kB
JavaScript
/*! For license information please see redux-firestore.min.js.LICENSE.txt */
!function(t,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("firebase/firestore")):"function"==typeof define&&define.amd?define("ReduxFirestore",["firebase/firestore"],r):"object"==typeof exports?exports.ReduxFirestore=r(require("firebase/firestore")):t.ReduxFirestore=r(t.Firebase)}(self,(function(t){return function(){var r={6017:function(t){t.exports=function(){}},8859:function(t,r,e){var n=e(6449);t.exports=function(){if(!arguments.length)return[];var t=arguments[0];return n(t)?t:[t]}},7217:function(t,r,e){var n=e(3702),o=e(80),i=e(4739),a=e(8655),u=e(1175);function c(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=u,t.exports=c},1873:function(t,r,e){var n=e(9325).Symbol;t.exports=n},7828:function(t,r,e){var n=e(9325).Uint8Array;t.exports=n},1033:function(t){t.exports=function(t,r,e){switch(e.length){case 0:return t.call(r);case 1:return t.call(r,e[0]);case 2:return t.call(r,e[0],e[1]);case 3:return t.call(r,e[0],e[1],e[2])}return t.apply(r,e)}},3945:function(t){t.exports=function(t,r,e,n){for(var o=-1,i=null==t?0:t.length;++o<i;){var a=t[o];r(n,a,e(a),t)}return n}},3729:function(t){t.exports=function(t,r){for(var e=-1,n=null==t?0:t.length;++e<n&&!1!==r(t[e],e,t););return t}},9770:function(t){t.exports=function(t,r){for(var e=-1,n=null==t?0:t.length,o=0,i=[];++e<n;){var a=t[e];r(a,e,t)&&(i[o++]=a)}return i}},5325:function(t,r,e){var n=e(6131);t.exports=function(t,r){return!!(null==t?0:t.length)&&n(t,r,0)>-1}},9905:function(t){t.exports=function(t,r,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(r,t[n]))return!0;return!1}},4932:function(t){t.exports=function(t,r){for(var e=-1,n=null==t?0:t.length,o=Array(n);++e<n;)o[e]=r(t[e],e,t);return o}},4528:function(t){t.exports=function(t,r){for(var e=-1,n=r.length,o=t.length;++e<n;)t[o+e]=r[e];return t}},4248:function(t){t.exports=function(t,r){for(var e=-1,n=null==t?0:t.length;++e<n;)if(r(t[e],e,t))return!0;return!1}},9811:function(t,r,e){var n=e(7237)("length");t.exports=n},1074:function(t){t.exports=function(t){return t.split("")}},7805:function(t,r,e){var n=e(3360),o=e(5288);t.exports=function(t,r,e){(void 0!==e&&!o(t[r],e)||void 0===e&&!(r in t))&&n(t,r,e)}},6547:function(t,r,e){var n=e(3360),o=e(5288),i=Object.prototype.hasOwnProperty;t.exports=function(t,r,e){var a=t[r];i.call(t,r)&&o(a,e)&&(void 0!==e||r in t)||n(t,r,e)}},6025:function(t,r,e){var n=e(5288);t.exports=function(t,r){for(var e=t.length;e--;)if(n(t[e][0],r))return e;return-1}},2429:function(t){t.exports=function(t,r,e,n){for(var o=-1,i=null==t?0:t.length;++o<i;){var a=t[o];r(n,a,e(a),t)}return n}},4733:function(t,r,e){var n=e(1791),o=e(5950);t.exports=function(t,r){return t&&n(r,o(r),t)}},3838:function(t,r,e){var n=e(1791),o=e(7241);t.exports=function(t,r){return t&&n(r,o(r),t)}},3360:function(t,r,e){var n=e(3243);t.exports=function(t,r,e){"__proto__"==r&&n?n(t,r,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[r]=e}},9999:function(t,r,e){var n=e(7217),o=e(3729),i=e(6547),a=e(4733),u=e(3838),c=e(3290),f=e(3007),s=e(2271),l=e(8948),p=e(2),d=e(3349),v=e(5861),y=e(6189),h=e(7199),g=e(5529),b=e(6449),m=e(3656),O=e(7730),E=e(3805),x=e(8440),A=e(5950),S=e(7241),j="[object Arguments]",w="[object Function]",_="[object Object]",T={};T[j]=T["[object Array]"]=T["[object ArrayBuffer]"]=T["[object DataView]"]=T["[object Boolean]"]=T["[object Date]"]=T["[object Float32Array]"]=T["[object Float64Array]"]=T["[object Int8Array]"]=T["[object Int16Array]"]=T["[object Int32Array]"]=T["[object Map]"]=T["[object Number]"]=T[_]=T["[object RegExp]"]=T["[object Set]"]=T["[object String]"]=T["[object Symbol]"]=T["[object Uint8Array]"]=T["[object Uint8ClampedArray]"]=T["[object Uint16Array]"]=T["[object Uint32Array]"]=!0,T["[object Error]"]=T[w]=T["[object WeakMap]"]=!1,t.exports=function t(r,e,P,R,D,I){var C,U=1&e,L=2&e,M=4&e;if(P&&(C=D?P(r,R,D,I):P(r)),void 0!==C)return C;if(!E(r))return r;var N=b(r);if(N){if(C=y(r),!U)return f(r,C)}else{var k=v(r),F=k==w||"[object GeneratorFunction]"==k;if(m(r))return c(r,U);if(k==_||k==j||F&&!D){if(C=L||F?{}:g(r),!U)return L?l(r,u(C,r)):s(r,a(C,r))}else{if(!T[k])return D?r:{};C=h(r,k,U)}}I||(I=new n);var W=I.get(r);if(W)return W;I.set(r,C),x(r)?r.forEach((function(n){C.add(t(n,e,P,n,r,I))})):O(r)&&r.forEach((function(n,o){C.set(o,t(n,e,P,o,r,I))}));var B=N?void 0:(M?L?d:p:L?S:A)(r);return o(B||r,(function(n,o){B&&(n=r[o=n]),i(C,o,t(n,e,P,o,r,I))})),C}},9344:function(t,r,e){var n=e(3805),o=Object.create,i=function(){function t(){}return function(r){if(!n(r))return{};if(o)return o(r);t.prototype=r;var e=new t;return t.prototype=void 0,e}}();t.exports=i},6574:function(t){t.exports=function(t,r){for(var e=-1,n=null==t?0:t.length,o=0,i=[];++e<n;){var a=t[e];r(a,e,t)&&(i[o++]=a)}return i}},2523:function(t){t.exports=function(t,r,e,n){for(var o=t.length,i=e+(n?1:-1);n?i--:++i<o;)if(r(t[i],i,t))return i;return-1}},3120:function(t,r,e){var n=e(4528),o=e(5891);t.exports=function t(r,e,i,a,u){var c=-1,f=r.length;for(i||(i=o),u||(u=[]);++c<f;){var s=r[c];e>0&&i(s)?e>1?t(s,e-1,i,a,u):n(u,s):a||(u[u.length]=s)}return u}},6649:function(t,r,e){var n=e(3221)();t.exports=n},641:function(t,r,e){var n=e(6649),o=e(5950);t.exports=function(t,r){return t&&n(t,r,o)}},7422:function(t,r,e){var n=e(1769),o=e(7797);t.exports=function(t,r){for(var e=0,i=(r=n(r,t)).length;null!=t&&e<i;)t=t[o(r[e++])];return e&&e==i?t:void 0}},2552:function(t){var r=Object.prototype.toString;t.exports=function(t){return r.call(t)}},8077:function(t){t.exports=function(t,r){return null!=t&&r in Object(t)}},6131:function(t){t.exports=function(t,r,e){for(var n=e-1,o=t.length;++n<o;)if(t[n]===r)return n;return-1}},270:function(t,r,e){var n=e(7068),o=e(346);t.exports=function t(r,e,i,a,u){return r===e||(null==r||null==e||!o(r)&&!o(e)?r!=r&&e!=e:n(r,e,i,a,t,u))}},7068:function(t,r,e){var n=e(7217),o=e(5911),i=e(1986),a=e(689),u=e(5861),c=e(6449),f=e(3656),s=e(7167),l="[object Arguments]",p="[object Array]",d="[object Object]",v=Object.prototype.hasOwnProperty;t.exports=function(t,r,e,y,h,g){var b=c(t),m=c(r),O=b?p:u(t),E=m?p:u(r),x=(O=O==l?d:O)==d,A=(E=E==l?d:E)==d,S=O==E;if(S&&f(t)){if(!f(r))return!1;b=!0,x=!1}if(S&&!x)return g||(g=new n),b||s(t)?o(t,r,e,y,h,g):i(t,r,O,e,y,h,g);if(!(1&e)){var j=x&&v.call(t,"__wrapped__"),w=A&&v.call(r,"__wrapped__");if(j||w){var _=j?t.value():t,T=w?r.value():r;return g||(g=new n),h(_,T,e,y,g)}}return!!S&&(g||(g=new n),a(t,r,e,y,h,g))}},1799:function(t,r,e){var n=e(7217),o=e(270);t.exports=function(t,r,e,i){var a=e.length,u=a,c=!i;if(null==t)return!u;for(t=Object(t);a--;){var f=e[a];if(c&&f[2]?f[1]!==t[f[0]]:!(f[0]in t))return!1}for(;++a<u;){var s=(f=e[a])[0],l=t[s],p=f[1];if(c&&f[2]){if(void 0===l&&!(s in t))return!1}else{var d=new n;if(i)var v=i(l,p,s,t,r,d);if(!(void 0===v?o(p,l,3,i,d):v))return!1}}return!0}},5389:function(t){t.exports=function(t){return t}},8984:function(t,r,e){var n=e(4335)(Object.keys,Object);t.exports=n},5128:function(t){t.exports=function(t,r){for(var e=-1,n=null==t?0:t.length,o=Array(n);++e<n;)o[e]=r(t[e],e,t);return o}},5250:function(t,r,e){var n=e(7217),o=e(7805),i=e(6649),a=e(2824),u=e(3805),c=e(7241),f=e(4974);t.exports=function t(r,e,s,l,p){r!==e&&i(e,(function(i,c){if(p||(p=new n),u(i))a(r,e,c,s,t,l,p);else{var d=l?l(f(r,c),i,c+"",r,e,p):void 0;void 0===d&&(d=i),o(r,c,d)}}),c)}},2824:function(t,r,e){var n=e(7805),o=e(3290),i=e(1961),a=e(3007),u=e(5529),c=e(2428),f=e(6449),s=e(3693),l=e(3656),p=e(1882),d=e(3805),v=e(1331),y=e(7167),h=e(4974),g=e(9884);t.exports=function(t,r,e,b,m,O,E){var x=h(t,e),A=h(r,e),S=E.get(A);if(S)n(t,e,S);else{var j=O?O(x,A,e+"",t,r,E):void 0,w=void 0===j;if(w){var _=f(A),T=!_&&l(A),P=!_&&!T&&y(A);j=A,_||T||P?f(x)?j=x:s(x)?j=a(x):T?(w=!1,j=o(A,!0)):P?(w=!1,j=i(A,!0)):j=[]:v(A)||c(A)?(j=x,c(x)?j=g(x):d(x)&&!p(x)||(j=u(A))):w=!1}w&&(E.set(A,j),m(j,A,b,O,E),E.delete(A)),n(t,e,j)}}},6155:function(t,r,e){var n=e(4932),o=e(7422),i=e(5389),a=e(5128),u=e(3937),c=e(7301),f=e(3714),s=e(3488),l=e(6449);t.exports=function(t,r,e){r=r.length?n(r,(function(t){return l(t)?function(r){return o(r,1===t.length?t[0]:t)}:t})):[s];var p=-1;r=n(r,c(i));var d=a(t,(function(t,e,o){return{criteria:n(r,(function(r){return r(t)})),index:++p,value:t}}));return u(d,(function(t,r){return f(t,r,e)}))}},6001:function(t,r,e){var n=e(7420),o=e(631);t.exports=function(t,r){return n(t,r,(function(r,e){return o(t,e)}))}},7420:function(t,r,e){var n=e(7422),o=e(3170),i=e(1769);t.exports=function(t,r,e){for(var a=-1,u=r.length,c={};++a<u;){var f=r[a],s=n(t,f);e(s,f)&&o(c,i(f,t),s)}return c}},7237:function(t){t.exports=function(t){return function(r){return null==r?void 0:r[t]}}},9302:function(t,r,e){var n=e(3488),o=e(6757),i=e(2865);t.exports=function(t,r){return i(o(t,r,n),t+"")}},3170:function(t,r,e){var n=e(6547),o=e(1769),i=e(361),a=e(3805),u=e(7797);t.exports=function(t,r,e,c){if(!a(t))return t;for(var f=-1,s=(r=o(r,t)).length,l=s-1,p=t;null!=p&&++f<s;){var d=u(r[f]),v=e;if("__proto__"===d||"constructor"===d||"prototype"===d)return t;if(f!=l){var y=p[d];void 0===(v=c?c(y,d,p):void 0)&&(v=a(y)?y:i(r[f+1])?[]:{})}n(p,d,v),p=p[d]}return t}},8882:function(t){t.exports=function(t){return t}},5160:function(t){t.exports=function(t,r,e){var n=-1,o=t.length;r<0&&(r=-r>o?0:o+r),(e=e>o?o:e)<0&&(e+=o),o=r>e?0:e-r>>>0,r>>>=0;for(var i=Array(o);++n<o;)i[n]=t[n+r];return i}},3937:function(t){t.exports=function(t,r){var e=t.length;for(t.sort(r);e--;)t[e]=t[e].value;return t}},8096:function(t){t.exports=function(t,r){for(var e=-1,n=Array(t);++e<t;)n[e]=r(e);return n}},7556:function(t){t.exports=function(t){return t}},4128:function(t,r,e){var n=e(1800),o=/^\s+/;t.exports=function(t){return t?t.slice(0,n(t)+1).replace(o,""):t}},7301:function(t){t.exports=function(t){return function(r){return t(r)}}},5765:function(t,r,e){var n=e(8859),o=e(5325),i=e(9905),a=e(9219),u=e(4517),c=e(4247);t.exports=function(t,r,e){var f=-1,s=o,l=t.length,p=!0,d=[],v=d;if(e)p=!1,s=i;else if(l>=200){var y=r?null:u(t);if(y)return c(y);p=!1,s=a,v=new n}else v=r?[]:d;t:for(;++f<l;){var h=t[f],g=r?r(h):h;if(h=e||0!==h?h:0,p&&g==g){for(var b=v.length;b--;)if(v[b]===g)continue t;r&&v.push(g),d.push(h)}else s(v,g,e)||(v!==d&&v.push(g),d.push(h))}return d}},9931:function(t,r,e){var n=e(1769),o=e(8090),i=e(8969),a=e(7797),u=Object.prototype.hasOwnProperty;t.exports=function(t,r){var e=-1,c=(r=n(r,t)).length;if(!c)return!0;for(;++e<c;){var f=a(r[e]);if("__proto__"===f&&!u.call(t,"__proto__"))return!1;if(("constructor"===f||"prototype"===f)&&e<c-1)return!1}var s=i(t,r);return null==s||delete s[a(o(r))]}},9219:function(t,r,e){var n=e(6131);t.exports=function(t,r){return!!(null==t?0:t.length)&&n(t,r,0)>-1}},1769:function(t,r,e){var n=e(6449),o=e(8586),i=e(1802),a=e(3222);t.exports=function(t,r){return n(t)?t:o(t,r)?[t]:i(a(t))}},8754:function(t,r,e){var n=e(5160);t.exports=function(t,r,e){var o=t.length;return e=void 0===e?o:e,!r&&e>=o?t:n(t,r,e)}},3875:function(t,r,e){var n=e(6131);t.exports=function(t,r){for(var e=t.length;e--&&n(r,t[e],0)>-1;);return e}},8380:function(t,r,e){var n=e(6131);t.exports=function(t,r){for(var e=-1,o=t.length;++e<o&&n(r,t[e],0)>-1;);return e}},9653:function(t,r,e){var n=e(7828);t.exports=function(t){var r=new t.constructor(t.byteLength);return new n(r).set(new n(t)),r}},3290:function(t,r,e){t=e.nmd(t);var n=e(9325),o=r&&!r.nodeType&&r,i=o&&t&&!t.nodeType&&t,a=i&&i.exports===o?n.Buffer:void 0,u=a?a.allocUnsafe:void 0;t.exports=function(t,r){if(r)return t.slice();var e=t.length,n=u?u(e):new t.constructor(e);return t.copy(n),n}},1961:function(t,r,e){var n=e(9653);t.exports=function(t,r){var e=r?n(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.length)}},3730:function(t,r,e){var n=e(4394);t.exports=function(t,r){if(t!==r){var e=void 0!==t,o=null===t,i=t==t,a=n(t),u=void 0!==r,c=null===r,f=r==r,s=n(r);if(!c&&!s&&!a&&t>r||a&&u&&f&&!c&&!s||o&&u&&f||!e&&f||!i)return 1;if(!o&&!a&&!s&&t<r||s&&e&&i&&!o&&!a||c&&e&&i||!u&&i||!f)return-1}return 0}},3714:function(t,r,e){var n=e(3730);t.exports=function(t,r,e){for(var o=-1,i=t.criteria,a=r.criteria,u=i.length,c=e.length;++o<u;){var f=n(i[o],a[o]);if(f)return o>=c?f:f*("desc"==e[o]?-1:1)}return t.index-r.index}},1596:function(t){var r=Math.max;t.exports=function(t,e,n,o){for(var i=-1,a=t.length,u=n.length,c=-1,f=e.length,s=r(a-u,0),l=Array(f+s),p=!o;++c<f;)l[c]=e[c];for(;++i<u;)(p||i<a)&&(l[n[i]]=t[i]);for(;s--;)l[c++]=t[i++];return l}},3320:function(t){var r=Math.max;t.exports=function(t,e,n,o){for(var i=-1,a=t.length,u=-1,c=n.length,f=-1,s=e.length,l=r(a-c,0),p=Array(l+s),d=!o;++i<l;)p[i]=t[i];for(var v=i;++f<s;)p[v+f]=e[f];for(;++u<c;)(d||i<a)&&(p[v+n[u]]=t[i++]);return p}},3007:function(t){t.exports=function(t,r){var e=-1,n=t.length;for(r||(r=Array(n));++e<n;)r[e]=t[e];return r}},1791:function(t,r,e){var n=e(6547),o=e(3360);t.exports=function(t,r,e,i){var a=!e;e||(e={});for(var u=-1,c=r.length;++u<c;){var f=r[u],s=i?i(e[f],t[f],f,e,t):void 0;void 0===s&&(s=t[f]),a?o(e,f,s):n(e,f,s)}return e}},2271:function(t,r,e){var n=e(1791),o=e(4664);t.exports=function(t,r){return n(t,o(t),r)}},8948:function(t,r,e){var n=e(1791),o=e(6375);t.exports=function(t,r){return n(t,o(t),r)}},8523:function(t){t.exports=function(t,r){for(var e=t.length,n=0;e--;)t[e]===r&&++n;return n}},2e3:function(t,r,e){var n=e(3945),o=e(2429),i=e(5389),a=e(6449);t.exports=function(t,r){return function(e,u){var c=a(e)?n:o,f=r?r():{};return c(e,t,i(u,2),f)}}},999:function(t,r,e){var n=e(9302),o=e(6800);t.exports=function(t){return n((function(r,e){var n=-1,i=e.length,a=i>1?e[i-1]:void 0,u=i>2?e[2]:void 0;for(a=t.length>3&&"function"==typeof a?(i--,a):void 0,u&&o(e[0],e[1],u)&&(a=i<3?void 0:a,i=1),r=Object(r);++n<i;){var c=e[n];c&&t(r,c,n,a)}return r}))}},3221:function(t){t.exports=function(t){return function(r,e,n){for(var o=-1,i=Object(r),a=n(r),u=a.length;u--;){var c=a[t?u:++o];if(!1===e(i[c],c,i))break}return r}}},1842:function(t,r,e){var n=e(2819),o=e(9325);t.exports=function(t,r,e){var i=1&r,a=n(t);return function r(){return(this&&this!==o&&this instanceof r?a:t).apply(i?e:this,arguments)}}},2819:function(t,r,e){var n=e(9344),o=e(3805);t.exports=function(t){return function(){var r=arguments;switch(r.length){case 0:return new t;case 1:return new t(r[0]);case 2:return new t(r[0],r[1]);case 3:return new t(r[0],r[1],r[2]);case 4:return new t(r[0],r[1],r[2],r[3]);case 5:return new t(r[0],r[1],r[2],r[3],r[4]);case 6:return new t(r[0],r[1],r[2],r[3],r[4],r[5]);case 7:return new t(r[0],r[1],r[2],r[3],r[4],r[5],r[6])}var e=n(t.prototype),i=t.apply(e,r);return o(i)?i:e}}},7078:function(t,r,e){var n=e(1033),o=e(2819),i=e(7471),a=e(8073),u=e(1287),c=e(6306),f=e(9325);t.exports=function(t,r,e){var s=o(t);return function o(){for(var l=arguments.length,p=Array(l),d=l,v=u(o);d--;)p[d]=arguments[d];var y=l<3&&p[0]!==v&&p[l-1]!==v?[]:c(p,v);return(l-=y.length)<e?a(t,r,i,o.placeholder,void 0,p,y,void 0,void 0,e-l):n(this&&this!==f&&this instanceof o?s:t,this,p)}}},6929:function(t,r,e){var n=e(6017),o=e(8816),i=e(7381),a=e(2284),u=e(6449),c=e(5087);t.exports=function(t){return o((function(r){var e=r.length,o=e,f=n.prototype.thru;for(t&&r.reverse();o--;){var s=r[o];if("function"!=typeof s)throw new TypeError("Expected a function");if(f&&!l&&"wrapper"==a(s))var l=new n([],!0)}for(o=l?o:e;++o<e;){s=r[o];var p=a(s),d="wrapper"==p?i(s):void 0;l=d&&c(d[0])&&424==d[1]&&!d[4].length&&1==d[9]?l[a(d[0])].apply(l,d[3]):1==s.length&&c(s)?l[p]():l.thru(s)}return function(){var t=arguments,n=t[0];if(l&&1==t.length&&u(n))return l.plant(n).value();for(var o=0,i=e?r[o].apply(this,t):n;++o<e;)i=r[o].call(this,i);return i}}))}},7471:function(t,r,e){var n=e(1596),o=e(3320),i=e(8523),a=e(2819),u=e(8073),c=e(1287),f=e(8294),s=e(6306),l=e(9325);t.exports=function t(r,e,p,d,v,y,h,g,b,m){var O=128&e,E=1&e,x=2&e,A=24&e,S=512&e,j=x?void 0:a(r);return function w(){for(var _=arguments.length,T=Array(_),P=_;P--;)T[P]=arguments[P];if(A)var R=c(w),D=i(T,R);if(d&&(T=n(T,d,v,A)),y&&(T=o(T,y,h,A)),_-=D,A&&_<m){var I=s(T,R);return u(r,e,t,w.placeholder,p,T,I,g,b,m-_)}var C=E?p:this,U=x?C[r]:r;return _=T.length,g?T=f(T,g):S&&_>1&&T.reverse(),O&&b<_&&(T.length=b),this&&this!==l&&this instanceof w&&(U=j||a(U)),U.apply(C,T)}}},4168:function(t,r,e){var n=e(1033),o=e(2819),i=e(9325);t.exports=function(t,r,e,a){var u=1&r,c=o(t);return function r(){for(var o=-1,f=arguments.length,s=-1,l=a.length,p=Array(l+f),d=this&&this!==i&&this instanceof r?c:t;++s<l;)p[s]=a[s];for(;f--;)p[s++]=arguments[++o];return n(d,u?e:this,p)}}},8073:function(t,r,e){var n=e(5087),o=e(4641),i=e(981);t.exports=function(t,r,e,a,u,c,f,s,l,p){var d=8&r;r|=d?32:64,4&(r&=~(d?64:32))||(r&=-4);var v=[t,r,u,d?c:void 0,d?f:void 0,d?void 0:c,d?void 0:f,s,l,p],y=e.apply(void 0,v);return n(t)&&o(y,v),y.placeholder=a,i(y,t,r)}},4517:function(t){t.exports=function(){}},6977:function(t,r,e){var n=e(8882),o=e(1842),i=e(7078),a=e(7471),u=e(4168),c=e(7381),f=e(3209),s=e(4641),l=e(981),p=e(1489),d=Math.max;t.exports=function(t,r,e,v,y,h,g,b){var m=2&r;if(!m&&"function"!=typeof t)throw new TypeError("Expected a function");var O=v?v.length:0;if(O||(r&=-97,v=y=void 0),g=void 0===g?g:d(p(g),0),b=void 0===b?b:p(b),O-=y?y.length:0,64&r){var E=v,x=y;v=y=void 0}var A=m?void 0:c(t),S=[t,r,e,v,y,E,x,h,g,b];if(A&&f(S,A),t=S[0],r=S[1],e=S[2],v=S[3],y=S[4],!(b=S[9]=void 0===S[9]?m?0:t.length:d(S[9]-O,0))&&24&r&&(r&=-25),r&&1!=r)j=8==r||16==r?i(t,r,b):32!=r&&33!=r||y.length?a.apply(void 0,S):u(t,r,e,v);else var j=o(t,r,e);return l((A?n:s)(j,S),t,r)}},3138:function(t,r,e){var n=e(1331);t.exports=function(t){return n(t)?void 0:t}},3243:function(t,r,e){var n=e(6110),o=function(){try{var t=n(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},5911:function(t,r,e){var n=e(8859),o=e(4248),i=e(9219);t.exports=function(t,r,e,a,u,c){var f=1&e,s=t.length,l=r.length;if(s!=l&&!(f&&l>s))return!1;var p=c.get(t),d=c.get(r);if(p&&d)return p==r&&d==t;var v=-1,y=!0,h=2&e?new n:void 0;for(c.set(t,r),c.set(r,t);++v<s;){var g=t[v],b=r[v];if(a)var m=f?a(b,g,v,r,t,c):a(g,b,v,t,r,c);if(void 0!==m){if(m)continue;y=!1;break}if(h){if(!o(r,(function(t,r){if(!i(h,r)&&(g===t||u(g,t,e,a,c)))return h.push(r)}))){y=!1;break}}else if(g!==b&&!u(g,b,e,a,c)){y=!1;break}}return c.delete(t),c.delete(r),y}},1986:function(t){t.exports=function(t,r){return t===r||t!=t&&r!=r}},689:function(t,r,e){var n=e(2),o=Object.prototype.hasOwnProperty;t.exports=function(t,r,e,i,a,u){var c=1&e,f=n(t),s=f.length;if(s!=n(r).length&&!c)return!1;for(var l=s;l--;){var p=f[l];if(!(c?p in r:o.call(r,p)))return!1}var d=u.get(t),v=u.get(r);if(d&&v)return d==r&&v==t;var y=!0;u.set(t,r),u.set(r,t);for(var h=c;++l<s;){var g=t[p=f[l]],b=r[p];if(i)var m=c?i(b,g,p,r,t,u):i(g,b,p,t,r,u);if(!(void 0===m?g===b||a(g,b,e,i,u):m)){y=!1;break}h||(h="constructor"==p)}if(y&&!h){var O=t.constructor,E=r.constructor;O==E||!("constructor"in t)||!("constructor"in r)||"function"==typeof O&&O instanceof O&&"function"==typeof E&&E instanceof E||(y=!1)}return u.delete(t),u.delete(r),y}},8816:function(t,r,e){var n=e(5970),o=e(6757),i=e(2865);t.exports=function(t){return i(o(t,void 0,n),t+"")}},4840:function(t,r,e){var n="object"==typeof e.g&&e.g&&e.g.Object===Object&&e.g;t.exports=n},2:function(t,r,e){var n=e(4335)(Object.keys,Object);t.exports=n},3349:function(t){t.exports=function(t){var r=[];if(null!=t)for(var e in Object(t))r.push(e);return r}},7381:function(t){t.exports=function(){}},2284:function(t){t.exports=function(){return""}},1287:function(t){t.exports=function(){}},776:function(t,r,e){var n=e(756),o=e(5950);t.exports=function(t){for(var r=o(t),e=r.length;e--;){var i=r[e],a=t[i];r[e]=[i,a,n(a)]}return r}},6110:function(t){t.exports=function(t,r){return null==t?void 0:t[r]}},8879:function(t,r,e){var n=e(4335)(Object.getPrototypeOf,Object);t.exports=n},4664:function(t){t.exports=function(){return[]}},6375:function(t){t.exports=function(){return[]}},5861:function(t){var r=Object.prototype.toString;t.exports=function(t){return r.call(t)}},9326:function(t,r,e){var n=e(1769),o=e(2428),i=e(6449),a=e(361),u=e(294),c=e(7797);t.exports=function(t,r,e){for(var f=-1,s=(r=n(r,t)).length,l=!1;++f<s;){var p=c(r[f]);if(!(l=null!=t&&e(t,p)))break;t=t[p]}return l||++f!=s?l:!!(s=null==t?0:t.length)&&u(s)&&a(p,s)&&(i(t)||o(t))}},9698:function(t){t.exports=function(){return!1}},6189:function(t){var r=Object.prototype.hasOwnProperty;t.exports=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&r.call(t,"index")&&(n.index=t.index,n.input=t.input),n}},7199:function(t){t.exports=function(t){return t}},5529:function(t,r,e){var n=e(9344),o=e(8879),i=e(5527);t.exports=function(t){return"function"!=typeof t.constructor||i(t)?{}:n(o(t))}},5891:function(t,r,e){var n=e(1873),o=e(2428),i=e(6449),a=n?n.isConcatSpreadable:void 0;t.exports=function(t){return i(t)||o(t)||!!(a&&t&&t[a])}},361:function(t){var r=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&r.test(t))&&t>-1&&t%1==0&&t<e}},6800:function(t){t.exports=function(){return!1}},8586:function(t,r,e){var n=e(6449),o=e(4394),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,r){if(n(t))return!1;var e=typeof t;return!("number"!=e&&"symbol"!=e&&"boolean"!=e&&null!=t&&!o(t))||(a.test(t)||!i.test(t)||null!=r&&t in Object(r))}},5087:function(t){t.exports=function(){return!1}},5527:function(t){t.exports=function(){return!1}},756:function(t,r,e){var n=e(3805);t.exports=function(t){return t==t&&!n(t)}},3702:function(t){t.exports=function(){this.__data__=[],this.size=0}},80:function(t,r,e){var n=e(6025),o=Array.prototype.splice;t.exports=function(t){var r=this.__data__,e=n(r,t);return!(e<0)&&(e==r.length-1?r.pop():o.call(r,e,1),--this.size,!0)}},4739:function(t,r,e){var n=e(6025);t.exports=function(t){var r=this.__data__,e=n(r,t);return e<0?void 0:r[e][1]}},8655:function(t,r,e){var n=e(6025);t.exports=function(t){return n(this.__data__,t)>-1}},1175:function(t,r,e){var n=e(6025);t.exports=function(t,r){var e=this.__data__,o=n(e,t);return o<0?(++this.size,e.push([t,r])):e[o][1]=r,this}},2224:function(t){t.exports=function(t){return t}},3209:function(t){t.exports=function(t){return t}},4335:function(t){t.exports=function(t,r){return function(e){return t(r(e))}}},6757:function(t,r,e){var n=e(1033),o=Math.max;t.exports=function(t,r,e){return r=o(void 0===r?t.length-1:r,0),function(){for(var i=arguments,a=-1,u=o(i.length-r,0),c=Array(u);++a<u;)c[a]=i[r+a];a=-1;for(var f=Array(r+1);++a<r;)f[a]=i[a];return f[r]=e(c),n(t,this,f)}}},8969:function(t,r,e){var n=e(7422),o=e(5160);t.exports=function(t,r){return r.length<2?t:n(t,o(r,0,-1))}},8294:function(t,r,e){var n=e(3007),o=e(361),i=Math.min;t.exports=function(t,r){for(var e=t.length,a=i(r.length,e),u=n(t);a--;){var c=r[a];t[a]=o(c,e)?u[c]:void 0}return t}},6306:function(t){t.exports=function(){return[]}},9325:function(t,r,e){var n=e(4840),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();t.exports=i},4974:function(t){t.exports=function(t,r){if(("constructor"!==r||"function"!=typeof t[r])&&"__proto__"!=r)return t[r]}},4641:function(t){t.exports=function(t){return t}},4247:function(t){t.exports=function(){return[]}},2865:function(t){t.exports=function(t){return t}},981:function(t){t.exports=function(t){return t}},1993:function(t,r,e){var n=e(9811),o=e(9698),i=e(7927);t.exports=function(t){return o(t)?i(t):n(t)}},3912:function(t,r,e){var n=e(1074),o=e(9698),i=e(2054);t.exports=function(t){return o(t)?i(t):n(t)}},1802:function(t,r,e){var n=e(2224),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=n((function(t){var r=[];return 46===t.charCodeAt(0)&&r.push(""),t.replace(o,(function(t,e,n,o){r.push(n?o.replace(i,"$1"):e||t)})),r}));t.exports=a},7797:function(t){t.exports=function(t){return t}},1800:function(t){var r=/\s/;t.exports=function(t){for(var e=t.length;e--&&r.test(t.charAt(e)););return e}},7927:function(t,r,e){var n=e(7237)("length");t.exports=n},2054:function(t){t.exports=function(t){return t.split("")}},4626:function(t,r,e){var n=e(6977);t.exports=function(t,r,e){return r=e?void 0:r,r=t&&null==r?t.length:r,n(t,128,void 0,void 0,void 0,void 0,r)}},1013:function(t,r,e){var n=e(5160),o=e(6800),i=e(1489),a=Math.ceil,u=Math.max;t.exports=function(t,r,e){r=(e?o(t,r,e):void 0===r)?1:u(i(r),0);var c=null==t?0:t.length;if(!c||r<1)return[];for(var f=0,s=0,l=Array(a(c/r));f<c;)l[s++]=n(t,f,f+=r);return l}},2629:function(t,r,e){var n=e(9999);t.exports=function(t){return n(t,4)}},8055:function(t,r,e){var n=e(9999);t.exports=function(t){return n(t,5)}},9747:function(t,r,e){var n=e(6977);function o(t,r,e){var i=n(t,8,void 0,void 0,void 0,void 0,void 0,r=e?void 0:r);return i.placeholder=o.placeholder,i}o.placeholder={},t.exports=o},5288:function(t){t.exports=function(t,r){return t===r||t!=t&&r!=r}},2128:function(t){t.exports=function(t,r){for(var e=-1,n=null==t?0:t.length;++e<n;)if(!r(t[e],e,t))return!1;return!0}},7612:function(t){t.exports=function(t,r){for(var e=-1,n=null==t?0:t.length,o=0,i=[];++e<n;){var a=t[e];r(a,e,t)&&(i[o++]=a)}return i}},4713:function(t,r,e){var n=e(2523),o=e(5389),i=e(1489),a=Math.max;t.exports=function(t,r,e){var u=null==t?0:t.length;if(!u)return-1;var c=null==e?0:i(e);return c<0&&(c=a(u+c,0)),n(t,o(r,3),c)}},5970:function(t,r,e){var n=e(3120);t.exports=function(t){return(null==t?0:t.length)?n(t,1):[]}},9870:function(t,r,e){var n=e(6929)();t.exports=n},9754:function(t){t.exports=function(t,r){for(var e=-1,n=null==t?0:t.length;++e<n&&!1!==r(t[e],e,t););return t}},3424:function(t,r,e){var n=e(6962),o=e(2874),i=Array.prototype.push;function a(t,r){return 2==r?function(r,e){return t(r,e)}:function(r){return t(r)}}function u(t){for(var r=t?t.length:0,e=Array(r);r--;)e[r]=t[r];return e}function c(t,r){return function(){var e=arguments.length;if(e){for(var n=Array(e);e--;)n[e]=arguments[e];var o=n[0]=r.apply(void 0,n);return t.apply(void 0,n),o}}}t.exports=function t(r,e,f,s){var l="function"==typeof e,p=e===Object(e);if(p&&(s=f,f=e,e=void 0),null==f)throw new TypeError;s||(s={});var d=!("cap"in s)||s.cap,v=!("curry"in s)||s.curry,y=!("fixed"in s)||s.fixed,h=!("immutable"in s)||s.immutable,g=!("rearg"in s)||s.rearg,b=l?f:o,m="curry"in s&&s.curry,O="fixed"in s&&s.fixed,E="rearg"in s&&s.rearg,x=l?f.runInContext():void 0,A=l?f:{ary:r.ary,assign:r.assign,clone:r.clone,curry:r.curry,forEach:r.forEach,isArray:r.isArray,isError:r.isError,isFunction:r.isFunction,isWeakMap:r.isWeakMap,iteratee:r.iteratee,keys:r.keys,rearg:r.rearg,toInteger:r.toInteger,toPath:r.toPath},S=A.ary,j=A.assign,w=A.clone,_=A.curry,T=A.forEach,P=A.isArray,R=A.isError,D=A.isFunction,I=A.isWeakMap,C=A.keys,U=A.rearg,L=A.toInteger,M=A.toPath,N=C(n.aryMethod),k={castArray:function(t){return function(){var r=arguments[0];return P(r)?t(u(r)):t.apply(void 0,arguments)}},iteratee:function(t){return function(){var r=arguments[1],e=t(arguments[0],r),n=e.length;return d&&"number"==typeof r?(r=r>2?r-2:1,n&&n<=r?e:a(e,r)):e}},mixin:function(t){return function(r){var e=this;if(!D(e))return t(e,Object(r));var n=[];return T(C(r),(function(t){D(r[t])&&n.push([t,e.prototype[t]])})),t(e,Object(r)),T(n,(function(t){var r=t[1];D(r)?e.prototype[t[0]]=r:delete e.prototype[t[0]]})),e}},nthArg:function(t){return function(r){var e=r<0?1:L(r)+1;return _(t(r),e)}},rearg:function(t){return function(r,e){var n=e?e.length:0;return _(t(r,e),n)}},runInContext:function(e){return function(n){return t(r,e(n),s)}}};function F(t,r){if(d){var e=n.iterateeRearg[t];if(e)return function(t,r){return z(t,(function(t){var e=r.length;return function(t,r){return 2==r?function(r,e){return t.apply(void 0,arguments)}:function(r){return t.apply(void 0,arguments)}}(U(a(t,e),r),e)}))}(r,e);var o=!l&&n.iterateeAry[t];if(o)return function(t,r){return z(t,(function(t){return"function"==typeof t?a(t,r):t}))}(r,o)}return r}function W(t,r,e){if(y&&(O||!n.skipFixed[t])){var o=n.methodSpread[t],a=o&&o.start;return void 0===a?S(r,e):function(t,r){return function(){for(var e=arguments.length,n=e-1,o=Array(e);e--;)o[e]=arguments[e];var a=o[r],u=o.slice(0,r);return a&&i.apply(u,a),r!=n&&i.apply(u,o.slice(r+1)),t.apply(this,u)}}(r,a)}return r}function B(t,r,e){return g&&e>1&&(E||!n.skipRearg[t])?U(r,n.methodRearg[t]||n.aryRearg[e]):r}function G(t,r){for(var e=-1,n=(r=M(r)).length,o=n-1,i=w(Object(t)),a=i;null!=a&&++e<n;){var u=r[e],c=a[u];null==c||D(c)||R(c)||I(c)||(a[u]=w(e==o?c:Object(c))),a=a[u]}return i}function q(r,e){var o=n.aliasToReal[r]||r,i=n.remap[o]||o,a=s;return function(r){var n=l?x:A,u=l?x[i]:e,c=j(j({},a),r);return t(n,o,u,c)}}function z(t,r){return function(){var e=arguments.length;if(!e)return t();for(var n=Array(e);e--;)n[e]=arguments[e];var o=g?0:e-1;return n[o]=r(n[o]),t.apply(void 0,n)}}function Q(t,r,e){var o,i=n.aliasToReal[t]||t,a=r,f=k[i];return f?a=f(r):h&&(n.mutate.array[i]?a=c(r,u):n.mutate.object[i]?a=c(r,function(t){return function(r){return t({},r)}}(r)):n.mutate.set[i]&&(a=c(r,G))),T(N,(function(t){return T(n.aryMethod[t],(function(r){if(i==r){var e=n.methodSpread[i],u=e&&e.afterRearg;return o=u?W(i,B(i,a,t),t):B(i,W(i,a,t),t),o=function(t,r,e){return m||v&&e>1?_(r,e):r}(0,o=F(i,o),t),!1}})),!o})),o||(o=a),o==r&&(o=m?_(o,1):function(){return r.apply(this,arguments)}),o.convert=q(i,r),o.placeholder=r.placeholder=e,o}if(!p)return Q(e,f,b);var V=f,K=[];return T(N,(function(t){T(n.aryMethod[t],(function(t){var r=V[n.remap[t]||t];r&&K.push([t,Q(t,r,V)])}))})),T(C(V),(function(t){var r=V[t];if("function"==typeof r){for(var e=K.length;e--;)if(K[e][0]==t)return;r.convert=q(t,r),K.push([t,r])}})),T(K,(function(t){V[t[0]]=t[1]})),V.convert=function(t){return V.runInContext.convert(t)(void 0)},V.placeholder=V,T(C(V),(function(t){T(n.realToAlias[t]||[],(function(r){V[r]=V[t]}))})),V}},6962:function(t,r){r.aliasToReal={each:"forEach",eachRight:"forEachRight",entries:"toPairs",entriesIn:"toPairsIn",extend:"assignIn",extendAll:"assignInAll",extendAllWith:"assignInAllWith",extendWith:"assignInWith",first:"head",conforms:"conformsTo",matches:"isMatch",property:"get",__:"placeholder",F:"stubFalse",T:"stubTrue",all:"every",allPass:"overEvery",always:"constant",any:"some",anyPass:"overSome",apply:"spread",assoc:"set",assocPath:"set",complement:"negate",compose:"flowRight",contains:"includes",dissoc:"unset",dissocPath:"unset",dropLast:"dropRight",dropLastWhile:"dropRightWhile",equals:"isEqual",identical:"eq",indexBy:"keyBy",init:"initial",invertObj:"invert",juxt:"over",omitAll:"omit",nAry:"ary",path:"get",pathEq:"matchesProperty",pathOr:"getOr",paths:"at",pickAll:"pick",pipe:"flow",pluck:"map",prop:"get",propEq:"matchesProperty",propOr:"getOr",props:"at",symmetricDifference:"xor",symmetricDifferenceBy:"xorBy",symmetricDifferenceWith:"xorWith",takeLast:"takeRight",takeLastWhile:"takeRightWhile",unapply:"rest",unnest:"flatten",useWith:"overArgs",where:"conformsTo",whereEq:"isMatch",zipObj:"zipObject"},r.aryMethod={1:["assignAll","assignInAll","attempt","castArray","ceil","create","curry","curryRight","defaultsAll","defaultsDeepAll","floor","flow","flowRight","fromPairs","invert","iteratee","memoize","method","mergeAll","methodOf","mixin","nthArg","over","overEvery","overSome","rest","reverse","round","runInContext","spread","template","trim","trimEnd","trimStart","uniqueId","words","zipAll"],2:["add","after","ary","assign","assignAllWith","assignIn","assignInAllWith","at","before","bind","bindAll","bindKey","chunk","cloneDeepWith","cloneWith","concat","conformsTo","countBy","curryN","curryRightN","debounce","defaults","defaultsDeep","defaultTo","delay","difference","divide","drop","dropRight","dropRightWhile","dropWhile","endsWith","eq","every","filter","find","findIndex","findKey","findLast","findLastIndex","findLastKey","flatMap","flatMapDeep","flattenDepth","forEach","forEachRight","forIn","forInRight","forOwn","forOwnRight","get","groupBy","gt","gte","has","hasIn","includes","indexOf","intersection","invertBy","invoke","invokeMap","isEqual","isMatch","join","keyBy","lastIndexOf","lt","lte","map","mapKeys","mapValues","matchesProperty","maxBy","meanBy","merge","mergeAllWith","minBy","multiply","nth","omit","omitBy","overArgs","pad","padEnd","padStart","parseInt","partial","partialRight","partition","pick","pickBy","propertyOf","pull","pullAll","pullAt","random","range","rangeRight","rearg","reject","remove","repeat","restFrom","result","sampleSize","some","sortBy","sortedIndex","sortedIndexOf","sortedLastIndex","sortedLastIndexOf","sortedUniqBy","split","spreadFrom","startsWith","subtract","sumBy","take","takeRight","takeRightWhile","takeWhile","tap","throttle","thru","times","trimChars","trimCharsEnd","trimCharsStart","truncate","union","uniqBy","uniqWith","unset","unzipWith","without","wrap","xor","zip","zipObject","zipObjectDeep"],3:["assignInWith","assignWith","clamp","differenceBy","differenceWith","findFrom","findIndexFrom","findLastFrom","findLastIndexFrom","getOr","includesFrom","indexOfFrom","inRange","intersectionBy","intersectionWith","invokeArgs","invokeArgsMap","isEqualWith","isMatchWith","flatMapDepth","lastIndexOfFrom","mergeWith","orderBy","padChars","padCharsEnd","padCharsStart","pullAllBy","pullAllWith","rangeStep","rangeStepRight","reduce","reduceRight","replace","set","slice","sortedIndexBy","sortedLastIndexBy","transform","unionBy","unionWith","update","xorBy","xorWith","zipWith"],4:["fill","setWith","updateWith"]},r.aryRearg={2:[1,0],3:[2,0,1],4:[3,2,0,1]},r.iterateeAry={dropRightWhile:1,dropWhile:1,every:1,filter:1,find:1,findFrom:1,findIndex:1,findIndexFrom:1,findKey:1,findLast:1,findLastFrom:1,findLastIndex:1,findLastIndexFrom:1,findLastKey:1,flatMap:1,flatMapDeep:1,flatMapDepth:1,forEach:1,forEachRight:1,forIn:1,forInRight:1,forOwn:1,forOwnRight:1,map:1,mapKeys:1,mapValues:1,partition:1,reduce:2,reduceRight:2,reject:1,remove:1,some:1,takeRightWhile:1,takeWhile:1,times:1,transform:2},r.iterateeRearg={mapKeys:[1],reduceRight:[1,0]},r.methodRearg={assignInAllWith:[1,0],assignInWith:[1,2,0],assignAllWith:[1,0],assignWith:[1,2,0],differenceBy:[1,2,0],differenceWith:[1,2,0],getOr:[2,1,0],intersectionBy:[1,2,0],intersectionWith:[1,2,0],isEqualWith:[1,2,0],isMatchWith:[2,1,0],mergeAllWith:[1,0],mergeWith:[1,2,0],padChars:[2,1,0],padCharsEnd:[2,1,0],padCharsStart:[2,1,0],pullAllBy:[2,1,0],pullAllWith:[2,1,0],rangeStep:[1,2,0],rangeStepRight:[1,2,0],setWith:[3,1,2,0],sortedIndexBy:[2,1,0],sortedLastIndexBy:[2,1,0],unionBy:[1,2,0],unionWith:[1,2,0],updateWith:[3,1,2,0],xorBy:[1,2,0],xorWith:[1,2,0],zipWith:[1,2,0]},r.methodSpread={assignAll:{start:0},assignAllWith:{start:0},assignInAll:{start:0},assignInAllWith:{start:0},defaultsAll:{start:0},defaultsDeepAll:{start:0},invokeArgs:{start:2},invokeArgsMap:{start:2},mergeAll:{start:0},mergeAllWith:{start:0},partial:{start:1},partialRight:{start:1},without:{start:1},zipAll:{start:0}},r.mutate={array:{fill:!0,pull:!0,pullAll:!0,pullAllBy:!0,pullAllWith:!0,pullAt:!0,remove:!0,reverse:!0},object:{assign:!0,assignAll:!0,assignAllWith:!0,assignIn:!0,assignInAll:!0,assignInAllWith:!0,assignInWith:!0,assignWith:!0,defaults:!0,defaultsAll:!0,defaultsDeep:!0,defaultsDeepAll:!0,merge:!0,mergeAll:!0,mergeAllWith:!0,mergeWith:!0},set:{set:!0,setWith:!0,unset:!0,update:!0,updateWith:!0}},r.realToAlias=function(){var t=Object.prototype.hasOwnProperty,e=r.aliasToReal,n={};for(var o in e){var i=e[o];t.call(n,i)?n[i].push(o):n[i]=[o]}return n}(),r.remap={assignAll:"assign",assignAllWith:"assignWith",assignInAll:"assignIn",assignInAllWith:"assignInWith",curryN:"curry",curryRightN:"curryRight",defaultsAll:"defaults",defaultsDeepAll:"defaultsDeep",findFrom:"find",findIndexFrom:"findIndex",findLastFrom:"findLast",findLastIndexFrom:"findLastIndex",getOr:"get",includesFrom:"includes",indexOfFrom:"indexOf",invokeArgs:"invoke",invokeArgsMap:"invokeMap",lastIndexOfFrom:"lastIndexOf",mergeAll:"merge",mergeAllWith:"mergeWith",padChars:"pad",padCharsEnd:"padEnd",padCharsStart:"padStart",propertyOf:"get",rangeStep:"range",rangeStepRight:"rangeRight",restFrom:"rest",spreadFrom:"spread",trimChars:"trim",trimCharsEnd:"trimEnd",trimCharsStart:"trimStart",zipAll:"zip"},r.skipFixed={castArray:!0,flow:!0,flowRight:!0,iteratee:!0,mixin:!0,rearg:!0,runInContext:!0},r.skipRearg={add:!0,assign:!0,assignIn:!0,bind:!0,bindKey:!0,concat:!0,difference:!0,divide:!0,eq:!0,gt:!0,gte:!0,isEqual:!0,lt:!0,lte:!0,matchesProperty:!0,merge:!0,multiply:!0,overArgs:!0,partial:!0,partialRight:!0,propertyOf:!0,random:!0,range:!0,rangeRight:!0,subtract:!0,zip:!0,zipObject:!0,zipObjectDeep:!0}},7934:function(t,r,e){t.exports={ary:e(4626),assign:e(4733),clone:e(2629),curry:e(9747),forEach:e(3729),isArray:e(6449),isError:e(3546),isFunction:e(1882),isWeakMap:e(7886),iteratee:e(3855),keys:e(8984),rearg:e(4195),toInteger:e(1489),toPath:e(2072)}},9920:function(t,r,e){var n=e(3424),o=e(7934);t.exports=function(t,r,e){return n(o,t,r,e)}},4983:function(t,r,e){var n=e(9920)("merge",e(5364));n.placeholder=e(2874),t.exports=n},2874:function(t){t.exports={}},2507:function(t,r,e){var n=e(9920)("setWith",e(5632));n.placeholder=e(2874),t.exports=n},8156:function(t,r,e){var n=e(7422);t.exports=function(t,r,e){var o=null==t?void 0:n(t,r);return void 0===o?e:o}},2013:function(t,r,e){var n=e(3360),o=e(2e3),i=Object.prototype.hasOwnProperty,a=o((function(t,r,e){i.call(t,e)?t[e].push(r):n(t,e,[r])}));t.exports=a},1448:function(t){var r=Object.prototype.hasOwnProperty;t.exports=function(t,e){return null!=t&&r.call(t,e)}},631:function(t,r,e){var n=e(8077),o=e(9326);t.exports=function(t,r){return null!=t&&o(t,r,n)}},3488:function(t){t.exports=function(t){return t}},2428:function(t){t.exports=function(){return!1}},6449:function(t){var r=Array.isArray;t.exports=r},4894:function(t,r,e){var n=e(1882),o=e(294);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},3693:function(t,r,e){var n=e(4894),o=e(346);t.exports=function(t){return o(t)&&n(t)}},3812:function(t,r,e){var n=e(2552),o=e(346);t.exports=function(t){return!0===t||!1===t||o(t)&&"[object Boolean]"==n(t)}},3656:function(t){t.exports=function(){return!1}},2193:function(t,r,e){var n=e(8984),o=e(5861),i=e(2428),a=e(6449),u=e(4894),c=e(3656),f=e(5527),s=e(7167),l=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(u(t)&&(a(t)||"string"==typeof t||"function"==typeof t.splice||c(t)||s(t)||i(t)))return!t.length;var r=o(t);if("[object Map]"==r||"[object Set]"==r)return!t.size;if(f(t))return!n(t).length;for(var e in t)if(l.call(t,e))return!1;return!0}},2404:function(t,r,e){var n=e(270);t.exports=function(t,r){return n(t,r)}},3546:function(t,r,e){var n=e(2552),o=e(346),i=e(1331);t.exports=function(t){if(!o(t))return!1;var r=n(t);return"[object Error]"==r||"[object DOMException]"==r||"string"==typeof t.message&&"string"==typeof t.name&&!i(t)}},1882:function(t,r,e){var n=e(2552),o=e(3805);t.exports=function(t){if(!o(t))return!1;var r=n(t);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r}},294:function(t){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},7730:function(t){t.exports=function(){return!1}},5425:function(t,r,e){var n=e(1799),o=e(776);t.exports=function(t,r){return t===r||n(t,r,o(r))}},8023:function(t,r,e){var n=e(2552),o=e(346);t.exports=function(t){return"number"==typeof t||o(t)&&"[object Number]"==n(t)}},3805:function(t){t.exports=function(t){var r=typeof t;return null!=t&&("object"==r||"function"==r)}},346:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},1331:function(t,r,e){var n=e(2552),o=e(8879),i=e(346),a=Function.prototype,u=Object.prototype,c=a.toString,f=u.hasOwnProperty,s=c.call(Object);t.exports=function(t){if(!i(t)||"[object Object]"!=n(t))return!1;var r=o(t);if(null===r)return!0;var e=f.call(r,"constructor")&&r.constructor;return"function"==typeof e&&e instanceof e&&c.call(e)==s}},8440:function(t){t.exports=function(){return!1}},5015:function(t,r,e){var n=e(2552),o=e(6449),i=e(346);t.exports=function(t){return"string"==typeof t||!o(t)&&i(t)&&"[object String]"==n(t)}},4394:function(t){t.exports=function(){return!1}},7167:function(t){t.exports=function(){return!1}},7886:function(t,r,e){var n=e(5861),o=e(346);t.exports=function(t){return o(t)&&"[object WeakMap]"==n(t)}},3855:function(t,r,e){var n=e(9999),o=e(5389);t.exports=function(t){return o("function"==typeof t?t:n(t,1))}},8970:function(t,r,e){var n=e(3360),o=e(2e3)((function(t,r,e){n(t,e,r)}));t.exports=o},5950:function(t,r,e){var n=e(4335)(Object.keys,Object);t.exports=n},7241:function(t){t.exports=function(t){var r=[];if(null!=t)for(var e in Object(t))r.push(e);return r}},8090:function(t){t.exports=function(t){var r=null==t?0:t.length;return r?t[r-1]:void 0}},5378:function(t){t.exports=function(t,r){for(var e=-1,n=null==t?0:t.length,o=Array(n);++e<n;)o[e]=r(t[e],e,t);return o}},3916:function(t,r,e){var n=e(3360),o=e(641),i=e(5389);t.exports=function(t,r){var e={};return r=i(r,3),o(t,(function(t,o,i){n(e,o,r(t,o,i))})),e}},5364:function(t,r,e){var n=e(5250),o=e(999)((function(t,r,e){n(t,r,e)}));t.exports=o},6048:function(t){t.exports=function(t){if("function"!=typeof t)throw new TypeError("Expected a function");return function(){var r=arguments;switch(r.length){case 0:return!t.call(this);case 1:return!t.call(this,r[0]);case 2:return!t.call(this,r[0],r[1]);case 3:return!t.call(this,r[0],r[1],r[2])}return!t.apply(this,r)}}},179:function(t,r,e){var n=e(4932),o=e(9999),i=e(9931),a=e(1769),u=e(1791),c=e(3138),f=e(8816),s=e(3349),l=f((function(t,r){var e={};if(null==t)return e;var f=!1;r=n(r,(function(r){return r=a(r,t),f||(f=r.length>1),r})),u(t,s(t),e),f&&(e=o(e,7,c));for(var l=r.length;l--;)i(e,r[l]);return e}));t.exports=l},2877:function(t,r,e){var n=e(6155),o=e(6449);t.exports=function(t,r,e,i){return null==t?[]:(o(r)||(r=null==r?[]:[r]),o(e=i?void 0:e)||(e=null==e?[]:[e]),n(t,r,e))}},7055:function(t,r,e){var n=e(9302),o=e(6977),i=e(1287),a=e(6306),u=n((function(t,r){var e=a(r,i(u));return o(t,64,void 0,r,e)}));u.placeholder={},t.exports=u},4383:function(t,r,e){var n=e(6001),o=e(8816)((function(t,r){return null==t?{}:n(t,r)}));t.exports=o},4195:function(t,r,e){var n=e(6977),o=e(8816),i=o((function(t,r){return n(t,256,void 0,void 0,void 0,r)}));t.exports=i},8081:function(t,r,e){var n=e(9770),o=e(6574),i=e(5389),a=e(6449),u=e(6048);t.exports=function(t,r){return(a(t)?n:o)(t,u(i(r,3)))}},3472:function(t,r,e){var n=e(3222);t.exports=function(){var t=arguments,r=n(t[0]);return t.length<3?r:r.replace(t[1],t[2])}},3560:function(t,r,e){var n=e(3170);t.exports=function(t,r,e){return null==t?t:n(t,r,e)}},5632:function(t,r,e){var n=e(3170);t.exports=function(t,r,e,o){return o="function"==typeof o?o:void 0,null==t?t:n(t,r,e,o)}},7091:function(t,r,e){var n=e(8984),o=e(5861),i=e(4894),a=e(5015),u=e(1993);t.exports=function(t){if(null==t)return 0;if(i(t))return a(t)?u(t):t.length;var r=o(t);return"[object Map]"==r||"[object Set]"==r?t.size:n(t).length}},4921:function(t,r,e){var n=e(5160),o=e(1489);t.exports=function(t,r,e){return t&&t.length?(r=e||void 0===r?1:o(r),n(t,0,r<0?0:r)):[]}},7779:function(t,r,e){var n=e(5160),o=e(1489);t.exports=function(t,r,e){var i=null==t?0:t.length;return i?(r=e||void 0===r?1:o(r),n(t,(r=i-r)<0?0:r,i)):[]}},1489:function(t){t.exports=function(t){return t}},2072:function(t,r,e){var n=e(4932),o=e(3007),i=e(6449),a=e(4394),u=e(1802),c=e(7797),f=e(3222);t.exports=function(t){return i(t)?n(t,c):a(t)?[t]:o(u(f(t)))}},9884:function(t,r,e){var n=e(1791),o=e(7241);t.exports=function(t){return n(t,o(t))}},3222:function(t){t.exports=function(t){return t}},4826:function(t,r,e){var n=e(7556),o=e(4128),i=e(8754),a=e(3875),u=e(8380),c=e(3912),f=e(3222);t.exports=function(t,r,e){if((t=f(t))&&(e||void 0===r))return o(t);if(!t||!(r=n(r)))return t;var s=c(t),l=c(r),p=u(s,l),d=a(s,l)+1;return i(s,p,d).join("")}},9488:function(t,r,e){var n=e(7556),o=e(8754),i=e(8380),a=e(3912),u=e(3222),c=/^\s+/;t.exports=function(t,r,e){if((t=u(t))&&(e||void 0===r))return t.replace(c,"");if(!t||!(r=n(r)))return t;var f=a(t),s=i(f,a(r));return o(f,s).join("")}},9786:function(t,r,e){var n=e(3120),o=e(5389),i=e(9302),a=e(5765),u=e(3693),c=e(8090),f=i((function(t){var r=c(t);return u(r)&&(r=void 0),a(n(t,1,u,!0),o(r,2))}));t.exports=f},3357:function(t,r,e){var n=e(9931);t.exports=function(t,r){return null==t||n(t,r)}},8330:function(t,r,e){var n=e(9770),o=e(4932),i=e(7237),a=e(8096),u=e(3693),c=Math.max;t.exports=function(t){if(!t||!t.length)return[];var r=0;return t=n(t,(function(t){if(u(t))return r=c(t.length,r),!0})),a(r,(function(r){return o(t,i(r))}))}},5611:function(t,r,e){var n=e(9302)(e(8330));t.exports=n},9582:function(r){"use strict";r.exports=t},5172:function(t){t.exports=function(t,r){this.v=t,this.k=r},t.exports.__esModule=!0,t.exports.default=t.exports},6993:function(t,r,e){var n=e(5546);function o(){var r,e,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.toStringTag||"@@toStringTag";function c(t,o,i,a){var u=o&&o.prototype instanceof s?o:s,c=Object.create(u.prototype);return n(c,"_invoke",function(t,n,o){var i,a,u,c=0,s=o||[],l=!1,p={p:0,n:0,v:r,a:d,f:d.bind(r,4),d:function(t,e){return i=t,a=0,u=r,p.n=e,f}};function d(t,n){for(a=t,u=n,e=0;!l&&c&&!o&&e<s.length;e++){var o,i=s[e],d=p.p,v=i[2];t>3?(o=v===n)&&(u=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=r):i[0]<=d&&((o=t<2&&d<i[1])?(a=0,p.v=n,p.n=i[1]):d<v&&(o=t<3||i[0]>n||n>v)&&(i[4]=t,i[5]=n,p.n=v,a=0))}if(o||t>1)return f;throw l=!0,n}return function(o,s,v){if(c>1)throw TypeError("Generator is already running");for(l&&1===s&&d(s,v),a=s,u=v;(e=a<2?r:u)||!l;){i||(a?a<3?(a>1&&(p.n=-1),d(a,u)):p.n=u:p.v=u);try{if(c=2,i){if(a||(o="next"),e=i[o]){if(!(e=e.call(i,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=i.return)&&e.call(i),a<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=r}else if((e=(l=p.n<0)?u:t.call(n,p))!==f)break}catch(t){i=r,a=1,u=t}finally{c=1}}return{value:e,done:l}}}(t,i,a),!0),c}var f={};function s(){}function l(){}function p(){}e=Object.getPrototypeOf;var d=[][a]?e(e([][a]())):(n(e={},a,(function(){return this})),e),v=p.prototype=s.prototype=Object.create(d);function y(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,n(t,u,"GeneratorFunction")),t.prototype=Object.create(v),t}return l.prototype=p,n(v,"constructor",p),n(p,"constructor",l),l.displayName="GeneratorFunction",n(p,u,"GeneratorFunction"),n(v),n(v,u,"Generator"),n(v,a,(function(){return this})),n(v,"toString",(function(){return"[object Generator]"})),(t.exports=o=function(){return{w:c,m:y}},t.exports.__esModule=!0,t.exports.default=t.exports)()}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports},5869:function(t,r,e){var n=e(887);t.exports=function(t,r,e,o,i){var a=n(t,r,e,o,i);return a.next().then((function(t){return t.done?t.value:a.next()}))},t.exports.__esModule=!0,t.exports.default=t.exports},887:function(t,r,e){var n=e(6993),o=e(4172);t.exports=function(t,r,e,i,a){return new o(n().w(t,r,e,i),a||Promise)},t.exports.__esModule=!0,t.exports.default=t.exports},4172:function(t,r,e){var n=e(5172),o=e(5546);t.exports=function t(r,e){function i(t,o,a,u){try{var c=r[t](o),f=c.value;return f instanceof n?e.resolve(f.v).then((function(t){i("next",t,a,u)}),(function(t){i("throw",t,a,u)})):e.resolve(f).then((function(t){c.value=t,a(c)}),(function(t){return i("throw",t,a,u)}))}catch(t){u(t)}}var a;this.next||(o(t.prototype),o(t.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",(function(){return this}))),o(this,"_invoke",(function(t,r,n){function o(){return new e((function(r,e){i(t,n,r,e)}))}return a=a?a.then(o,o):o()}),!0)},t.exports.__esModule=!0,t.exports.default=t.exports},5546:function(t){function r(e,n,o,i){var a=Object.defineProperty;try{a({},"",{})}catch(e){a=0}t.exports=r=function(t,e,n,o){function i(e,n){r(t,e,(function(t){return this._invoke(e,n,t)}))}e?a?a(t,e,{value:n,enumerable:!o,configurable:!o,writable:!o}):t[e]=n:(i("next",0),i("throw",1),i("return",2))},t.exports.__esModule=!0,t.exports.default=t.exports,r(e,n,o,i)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports},4373:function(t){t.exports=function(t){var r=Object(t),e=[];for(var n in r)e.unshift(n);return function t(){for(;e.length;)if((n=e.pop())in r)return t.value=n,t.done=!1,t;return t.done=!0,t}},t.exports.__esModule=!0,t.exports.default=t.exports},4633:function(t,r,e){var n=e(5172),o=e(6993),i=e(5869),a=e(887),u=e(4172),c=e(4373),f=e(579);function s(){"use strict";var r=o(),e=r.m(s),l=(Object.getPrototypeOf?Object.getPrototypeOf(e):e.__proto__).constructor;function p(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===l||"GeneratorFunction"===(r.displayName||r.name))}var d={throw:1,return:2,break:3,continue:3};function v(t){var r,e;return function(n){r||(r={stop:function(){return e(n.a,2)},catch:function(){return n.v},abrupt:function(t,r){return e(n.a,d[t],r)},delegateYield:function(t,o,i){return r.resultName=o,e(n.d,f(t),i)},finish:function(t){return e(n.f,t)}},e=function(t,e,o){n.p=r.prev,n.n=r.next;try{return t(e,o)}finally{r.next=n.n}}),r.resultName&&(r[r.resultName]=n.v,r.resultName=void 0),r.sent=n.v,r.next=n.n;try{return t.call(this,r)}finally{n.p=r.prev,n.n=r.next}}}return(t.exports=s=function(){return{wrap:function(t,e,n,o){return r.w(v(t),e,n,o&&o.reverse())},isGeneratorFunction:p,mark:r.m,awrap:function(t,r){return new n(t,r)},AsyncIterator:u,async:function(t,r,e,n,o){return(p(r)?a:i)(v(t),r,e,n,o)},keys:c,values:f}},t.exports.__esModule=!0,t.exports.default=t.exports)()}t.exports=s,t.exports.__esModule=!0,t.exports.default=t.exports},579:function(t,r,e){var n=e(3738).default;t.exports=function(t){if(null!=t){var r=t["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],e=0;if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return{next:function(){return t&&e>=t.length&&(t=void 0),{value:t&&t[e++],done:!t}}}}throw new TypeError(n(t)+" is not iterable")},t.exports.__esModule=!0,t.exports.default=t.exports},3738:function(t){function r(e){return t.exports=r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,r(e)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports},4756:function(t,r,e){var n=e(4633)();t.exports=n;try{regeneratorRuntime=n}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}}},e={};function n(t){var o=e[t];if(void 0!==o)return o.exports;var i=e[t]={id:t,loaded:!1,exports:{}};return r[t](i,i.exports,n),i.loaded=!0,i.exports}n.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(r,{a:r}),r},n.d=function(t,r){for(var e in r)n.o(r,e)&&!n.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:r[e]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t};var o={};return function(){"use strict";n.r(o),n.d(o,{CALL_FIRESTORE:function(){return Mo},actionTypes:function(){return u},actions:function(){return t},constants:function(){return s},createFirestoreInstance:function(){return lr},default:function(){return Bo},enhancer:function(){return yr},firestoreReducer:function(){return Co},getFirestore:function(){return pr},getSnapshotByObject:function(){return ot},middleware:function(){return ko},mockMutate:function(){return Wo},reducer:function(){return Co},reduxFirestore:function(){return yr},version:function(){return Fo}});var t={};function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function e(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==r(e)?e:e+""}function i(t,r,n){return(r=e(r))in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}n.r(t),n.d(t,{add:function(){return $t},default:function(){return cr},deleteRef:function(){return Zt},get:function(){return Xt},mutate:function(){return ir},runTransaction:function(){return or},set:function(){return Jt},setListener:function(){return tr},setListeners:function(){return rr},unsetListener:function(){return er},unsetListeners:function(){return nr},update:function(){return Yt}});var a="@@reduxFirestore",u={START:"".concat(a,"/START"),ERROR:"".concat(a,"/ERROR"),CLEAR_DATA:"".concat(a,"/CLEAR_DATA"),CLEAR_ERROR:"".concat(a,"/CLEAR_ERROR"),CLEAR_ERRORS:"".concat(a,"/CLEAR_ERRORS"),SET_LISTENER:"".concat(a,"/SET_LISTENER"),UNSET_LISTENER:"".concat(a,"/UNSET_LISTENER"),GET_REQUEST:"".concat(a,"/GET_REQUEST"),GET_SUCCESS:"".concat(a,"/GET_SUCCESS"),GET_FAILURE:"".concat(a,"/GET_FAILURE"),SET_REQUEST:"".concat(a,"/SET_REQUEST"),SET_SUCCESS:"".concat(a,"/SET_SUCCESS"),SET_FAILURE:"".concat(a,"/SET_FAILURE"),ADD_REQUEST:"".concat(a,"/ADD_REQUEST"),ADD_SUCCESS:"".concat(a,"/ADD_SUCCESS"),ADD_FAILURE:"".concat(a,"/ADD_FAILURE"),UPDATE_REQUEST:"".concat(a,"/UPDATE_REQUEST"),UPDATE_SUCCESS:"".concat(a,"/UPDATE_SUCCESS"),UPDATE_FAILURE:"".concat(a,"/UPDATE_FAILURE"),DELETE_REQUEST:"".concat(a,"/DELETE_REQUEST"),DELETE_SUCCESS:"".concat(a,"/DELETE_SUCCESS"),DELETE_FAILURE:"".concat(a,"/DELETE_FAILURE"),ATTACH_LISTENER:"".concat(a,"/ATTACH_LISTENER"),LISTENER_RESPONSE:"".concat(a,"/LISTENER_RESPONSE"),LISTENER_ERROR:"".concat(a,"/LISTENER_ERROR"),ON_SNAPSHOT_REQUEST:"".concat(a,"/ON_SNAPSHOT_REQUEST"),ON_SNAPSHOT_SUCCESS:"".concat(a,"/ON_SNAPSHOT_SUCCESS"),ON_SNAPSHOT_FAILURE:"".concat(a,"/ON_SNAPSHOT_FAILURE"),DOCUMENT_ADDED:"".concat(a,"/DOCUMENT_ADDED"),DOCUMENT_MODIFIED:"".concat(a,"/DOCUMENT_MODIFIED"),DOCUMENT_REMOVED:"".concat(a,"/DOCUMENT_REMOVED"),TRANSACTION_START:"".concat(a,"/TRANSACTION_START"),TRANSACTION_SUCCESS:"".concat(a,"/TRANSACTION_SUCCESS"),TRANSACTION_FAILURE:"".concat(a,"/TRANSACTION_FAILURE"),OPTIMISTIC_ADDED:"".concat(a,"/OPTIMISTIC_ADDED"),OPTIMISTIC_MODIFIED:"".concat(a,"/OPTIMISTIC_MODIFIED"),OPTIMISTIC_REMOVED:"".concat(a,"/OPTIMISTIC_REMOVED"),MUTATE_START:"".concat(a,"/MUTATE_START"),MUTATE_SUCCESS:"".concat(a,"/MUTATE_SUCCESS"),MUTATE_FAILURE:"".concat(a,"/MUTATE_FAILURE")},c={logListenerError:!0,enhancerNamespace:"firestore",helpersNamespace:null,allowMultipleListeners:!1,preserveOnDelete:null,preserveOnListenerError:null,preserveCacheAfterUnset:!0,onAttemptCollectionDelete:null,mergeOrdered:!0,mergeOrderedDocUpdates:!0,mergeOrderedCollectionUpdates:!0,globalDataConverter:null},f=["collection","collectionGroup","configureClient","doc","batch","disableNetwork","enableNetwork","enablePersistence","ensureClientConfigured","setLogLevel","settings","mutate"],s={actionsPrefix:a,actionTypes:u,defaultConfig:c},l=n(4983),p=n.n(l),d=n(2128),v=n.n(d);function y(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=Array(r);e<r;e++)n[e]=t[e];return n}function h(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function g(t,r){if(t){if("string"==typeof t)return y(t,r);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?y(t,r):void 0}}function b(t){return function(t){if(Array.isArray(t))return y(t)}(t)||h(t)||g(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(t){if(Array.isArray(t))return t}function O(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function E(t,r){return m(t)||function(t,r){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var n,o,i,a,u=[],c=!0,f=!1;try{if(i=(e=e.call(t)).next,0===r){if(Object(e)!==e)return;c=!1}else for(;!(c=(n=i.call(e)).done)&&(u.push(n.value),u.length!==r);c=!0);}catch(t){f=!0,o=t}finally{try{if(!c&&null!=e.return&&(a=e.return(),Object(a)!==a))return}finally{if(f)throw o}}return u}}(t,r)||g(t,r)||O()}var x=n(3916),A=n.n(x),S=n(3805),j=n.n(S);function w(t,r){if(null==t)return{};var e,n,o=function(t,r){if(null==t)return{};var e={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(-1!==r.indexOf(n))continue;e[n]=t[n]}return e}(t,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)e=i[n],-1===r.indexOf(e)&&{}.propertyIsEnumerable.call(t,e)&&(o[e]=t[e])}return o}function _(t,r,e,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void e(t)}u.done?r(c):Promise.resolve(c).then(n,o)}function T(t){return function(){var r=this,e=arguments;return new Promise((function(n,o){var i=t.apply(r,e);function a(t){_(i,n,o,a,u,"next",t)}function u(t){_(i,n,o,a,u,"throw",t)}a(void 0)}))}}var P=n(5970),R=n.n(P),D=n(8055),I=n.n(D),C=n(1013),U=n.n(C),L=n(4756),M=n.n(L);var N=n(3560),k=n.n(N),F=n(8156),W=n.n(F),B=n(5378),G=n.n(B),q=n(1448),z=n.n(q),Q=n(9754),V=n.n(Q),K=n(4826),H=n.n(K),$=n(2193),J=n.n($),X=n(8023),Y=n.n(X),Z=["path","collection","collectionGroup","id","doc","subcollections","storeAs"],tt=["path","collection","collectionGroup","subcollections"];function rt(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function et(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?rt(Object(e),!0).forEach((function(r){i(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):rt(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}var nt=new WeakMap;function ot(t){return nt.get(t)}function it(t,r){if(!Array.isArray(r))throw new Error("where parameter must be an array.");return Array.isArray(r[0])?r.reduce((function(t,r){return it(t,r)}),t):t.where.apply(t,b(r))}function at(t,r){if(!Array.isArray(r)&&!("string"==typeof r||r instanceof String))throw new Error("orderBy parameter must be an array or string.");return"string"==typeof r||r instanceof String?t.orderBy(r):"string"==typeof r[0]||r[0]instanceof String?t.orderBy.apply(t,b(r)):r.reduce((function(t,r){return at(t,r)}),t)}function ut(t){return[].concat(t)}function ct(t,r){return Array.isArray(r)&&r.forEach((function(r){if(r.collection){if("function"!=typeof t.collection)throw new Error('Collection can only be run on a document. Check that query config for subcollection: "'.concat(r.collection,'" contains a doc parameter.'));t=t.collection(r.collection)}var e,n,o,i;(r.id&&(t=t.doc(r.id)),r.doc&&(t=t.doc(r.doc)),r.where&&(t=it(t,r.where)),r.orderBy&&(t=at(t,r.orderBy)),r.limit&&(t=t.limit(r.limit)),r.startAt)&&(t=(e=t).startAt.apply(e,b(ut(r.startAt))));r.startAfter&&(t=(n=t).startAfter.apply(n,b(ut(r.startAfter))));r.endAt&&(t=(o=t).endAt.apply(o,b(ut(r.endAt))));r.endBefore&&(t=(i=t).endBefore.apply(i,b(ut(r.endBefore))));t=ct(t,r.subcollections)})),t}function ft(t,r){var e,n,o,i;if(!t.firestore)throw new Error("Firestore must be required and initalized.");var a=r.path,u=r.collection,c=r.collectionGroup,f=r.id,s=r.doc,l=r.subcollections,p=r.where,d=r.orderBy,v=r.limit,y=r.startAt,h=r.startAfter,g=r.endAt,m=r.endBefore,O=t.firestore();if(u&&c)throw new Error("Reference cannot contain both Collection and CollectionGroup.");var E=(t&&t._&&t._.config||{}).globalDataConvertor;return(a||u)&&(O=O.collection(a||u)),c&&(O=O.collectionGroup(c)),(f||s)&&(O=O.doc(f||s)),O=ct(O,l),p&&(O=it(O,p)),d&&(O=at(O,d)),v&&(O=O.limit(v)),y&&(O=(e=O).startAt.apply(e,b(ut(y)))),h&&(O=(n=O).startAfter.apply(n,b(ut(h)))),g&&(O=(o=O).endAt.apply(o,b(ut(g)))),m&&(O=(i=O).endBefore.apply(i,b(ut(m)))),E&&(O=O.withConverter(E)),O}function st(t,r){return"string"==typeof r||r instanceof String||Y()(r)?"".concat(t,"=").concat(r):"string"==typeof r[0]||r[0]instanceof String?"".concat(t,"=").concat(r.join(":")):r&&"function"==typeof r.toString?"".concat(t,"=").concat(r.toString()):r.map((function(r){return st(t,r)}))}function lt(t){return["where","orderBy","limit","startAfter","startAt","endAt","endBefore"].reduce((function(r,e){return t[e]?et(et({},r),{},i({},e,t[e])):r}),{})}function pt(t){return Object.keys(t).filter((function(r){return void 0!==t[r]})).map((function(r){return st(r,t[r])})).join("&")}function dt(t){if("string"==typeof t||t instanceof String)return t;var r=t.path,e=t.collection,n=t.collectionGroup,o=t.id,i=t.doc,a=t.subcollections,u=t.storeAs,c=w(t,Z);if(!r&&!e&&!n)throw new Error("Collection or Collection Group is required to build query name");if(u)return u;var f=r||e||n;if((o||i)&&(f=f.concat("/".concat(o||i))),(r||e)&&a){console.error('Queries with subcollections must use "storeAs" to prevent invalid store updates. This closley matches the upcoming major release (v1), which stores subcollections at the top level by default.');var s=a.map((function(t){return dt(t)}));f="".concat(f,"/").concat(s.join("/"))}var l=lt(c);if(!J()(l)){if(l.where&&!Array.isArray(l.where))throw new Error("where parameter must be an array.");f=f.concat("?",pt(l))}return f}function vt(t){if("string"==typeof t||t instanceof String)return t;var r=t.path,e=t.collection,n=t.collectionGroup,o=t.subcollections,i=w(t,tt);if(!r&&!e&&!n)throw new Error("Collection or Collection Group is required to build query name");var a=r||e||n;if((r||e)&&o){var u=o.map((function(t){return dt(t)}));a="".concat(a,"/").concat(u.join("/"))}var c=lt(i);if(!J()(c)){if(c.where&&!Array.isArray(c.where))throw new Error("where parameter must be an array.");a=a.concat("?",pt(c))}return a}function yt(t,r){if(!r)throw new Error("Meta data is required to attach listener.");if(!t||!t._||!t._.listeners)throw new Error("Internal Firebase object required to attach listener. Confirm that reduxFirestore enhancer was added when you were creating your store")}function ht(t,r){var e=function(t){return m(t)||h(t)||g(t)||O()}(r||H()(t,["/"]).split("/")),n=e[0],o=e[1],i=function(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=Array(r);e<r;e++)n[e]=t[e];return n}(e).slice(2),a={};return n&&(a.collection=n),o&&(a.doc=o),i.length&&(a.subcollections=[ht("",i)]),a}function gt(t){if("string"==typeof t||t instanceof String)return ht(t);if(j()(t)){if(!t.collection&&!t.collectionGroup&&!t.doc)throw new Error("Collection, Collection Group and/or Doc are required parameters within query definition object.");return t}throw new Error("Invalid Path Definition: Only Strings and Objects are accepted.")}function bt(t){var r=[];if(t.data&&t.exists){var e=t.id,n=t.ref.parent.path,o=j()(t.data())?et(et({},t.data()||t.data),{},{id:e,path:n}):{id:e,path:n,data:t.data()};nt.set(o,t),r.push(o)}else t.forEach&&t.forEach((function(t){var e=t.id,n=t.ref.parent.path,o=j()(t.data())?et(et({},t.data()||t.data),{},{id:e,path:n}):{id:e,path:n,data:t.data()};nt.set(o,t),r.push(o)}));return nt.set(r,t),r}function mt(t){var r={};if(t.data){var e=t.exists?t.data():null;e?(nt.set(e,t),r[t.id]=et(et({},e),{},{id:t.id,path:t.ref.parent.path})):r[t.id]=null}else t.forEach&&t.forEach((function(t){var e=t.data()||t;nt.set(e,t),r[t.id]=et(et({},e),{},{id:t.id,path:t.ref.parent.path})}));return r&&Object.keys(r).length?(nt.set(r,t),r):null}function Ot(t,r,e){return ft(t,{collection:r.root,doc:e}).get().then((function(t){return et({id:e},t.data())}))}function Et(t,r,e,n){return n[e.root]||k()(n,e.root,{}),Promise.all(G()(r,(function(r,o){var i=!0===r||e.populateByKey?o:r;return Ot(t,e,i).then((function(t){return t?k()(n,"".concat(e.root,".").concat(i),t):n}))})))}function xt(t){return Array.isArray(t)?t.map((function(t){return j()(t)?t:function(t){if("string"==typeof t||t instanceof String)return t;var r=t.split(":");return{child:r[0],root:r[1]}}(t)})):t}var At={added:u.DOCUMENT_ADDED,removed:u.DOCUMENT_REMOVED,modified:u.DOCUMENT_MODIFIED};function St(t){var r,e=t.dispatch,n=t.docData,o=t.meta,i=t.firebase._.config||{},a=i.mergeOrdered,c=i.mergeOrderedDocUpdates,f=i.mergeOrderedCollectionUpdates,s="boolean"!=typeof(null===(r=n.metadata)||void 0===r?void 0:r.fromCache)||n.metadata.fromCache,l="function"==typeof n.docChanges?n.docChanges():n.docChanges;l&&l.length<n.size?l.forEach((function(t,r){var n=r===l.length-1;e(function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=et(et({},I()(r)),{},{path:t.doc.ref.parent.path});r.subcollections&&!r.storeAs?e.subcollections[0]=et(et({},e.subcollections[0]),{},{doc:t.doc.id}):e.doc=t.doc.id;var n=et({id:t.doc.id,path:t.doc.ref.parent.path},t.doc.data());return{type:At[t.type]||u.DOCUMENT_MODIFIED,meta:e,payload:{data:n,ordered:{oldIndex:t.oldIndex,newIndex:t.newIndex}}}}(t,et({reprocess:n},o)))})):e({type:u.LISTENER_RESPONSE,meta:o,payload:{data:mt(n),ordered:bt(n),fromCache:s},merge:{docs:a&&c,collections:a&&f}})}function jt(t){var r=t.firebase,e=t.docData,n=t.meta;return function(t,r,e,n){var o=[],i={},a=xt("function"==typeof n?n(r,e):n);return a.some((function(t){return z()(e,t.child)}))?a.forEach((function(r){var n=W()(e,r.child);return"string"==typeof n||n instanceof String?o.push(Ot(t,r,n).then((function(t){t&&k()(i,"".concat(r.storeAs?r.storeAs:r.root,".").concat(n),t)}))):o.push(Et(t,n,r,i))})):V()(e,(function(r,e){var a=xt("function"==typeof n?n(e,r):n);V()(a,(function(e){var n=W()(r,e.child);if(n)return"string"==typeof n||n instanceof String?o.push(Ot(t,e,n).then((function(t){return t&&k()(i,"".concat(e.storeAs?e.storeAs:e.root,".").concat(n),t),i}))):Array.isArray(n)||j()(n)?o.push(Et(t,n,e,i)):void 0}))})),Promise.all(o).then((function(){return i}))}(r,e.id,mt(e),n.populates).then((function(t){return Object.keys(t).map((function(r){return{meta:{collection:r},payload:{data:t[r]},requesting:!1,requested:!0}}))})).catch((function(t){return console.error("Error with populate:",t,n),Promise.reject(t)}))}var wt=["collection","path","doc","id","data"];function _t(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function Tt(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?_t(Object(e),!0).forEach((function(r){i(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):_t(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}var Pt,Rt=(Pt=T(M().mark((function t(r){var e;return M().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=Object,t.next=1,Promise.all(Object.entries(r).map((function(t){var r=E(t,2),e=r[0];return r[1].then((function(t){return[e,t]}))})));case 1:return t.abrupt("return",e.fromEntries.call(e,t.sent));case 2:case"end":return t.stop()}}),t)}))),function(t){return Pt.apply(this,arguments)}),Dt=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.doc;return"string"==typeof t.id||"string"==typeof r},It=function(t){return!t||t.empty&&t.empty()||t.exists&&t.exists()},Ct=function(t){return Array.isArray(t)&&"string"==typeof t[0]&&0===t[0].indexOf("::")?null:t},Ut=function(t,r){var e;if("::arrayUnion"!==r)return null;for(var n=arguments.length,o=new Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];return(e=t.firestore.FieldValue).arrayUnion.apply(e,o)},Lt=function(t,r){var e;if("::arrayRemove"!==r)return null;for(var n=arguments.length,o=new Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];return(e=t.firestore.FieldValue).arrayRemove.apply(e,o)},Mt=function(t,r,e){return"::increment"===r&&"number"==typeof e&&t.firestore.FieldValue.increment(e)},Nt=function(t,r){return"::serverTimestamp"===r&&t.firestore.FieldValue.serverTimestamp()};function kt(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=r.collection,o=r.path,i=r.doc,a=r.id,u=r.data,c=w(r,wt),f=t.firestore().doc("".concat(o||n,"/").concat(a||i)),s=function(t,r){var e=!1;return[Object.keys(r).reduce((function(r,n){var o=Tt({},r),i=o[n];if(n.includes(".")&&(e=!0),!i)return o;var a=Ct(i)||Nt(t,i[0])||Ut(t,i[0],i[1])||Lt(t,i[0],i[1])||Mt(t,i[0],i[1]);return Array.isArray(i)&&i.length>0&&(o[n]=a),o}),I()(r)),e]}(t,u||c),l=E(s,2),p=l[0],d=l[1],v=void 0!==d&&d;return e?(v?e.update(f,p):e.set(f,p,{merge:!0}),Tt({id:f.id,path:f.parent.path},p)):v?f.update(p):f.set(p,{merge:!0})}function Ft(){return(Ft=T(M().mark((function t(r,e){var n;return M().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=U()(e,500).map((function(t){var e=r.firestore().batch(),n=t.map((function(t){return kt(r,t,e)}));return e.commit().then((function(){return n}))})),t.abrupt("return",Promise.all(n).then(R()));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Wt(){return Wt=T(M().mark((function t(r,e){return M().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",r.firestore().runTransaction(function(){var t=T(M().mark((function t(n){var o,i,a,u;return M().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=function(t){return t?Tt(Tt({},t.data()),{},{id:t.ref.id,path:t.ref.parent.path}):null},i=A()(e.reads,function(){var t=T(M().mark((function t(e){var i,a,u,c,f;return M().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("function"!=typeof e){t.next=1;break}return t.abrupt("return",e());case 1:if(!Dt(e)){t.next=3;break}return i=ft(r,e),t.next=2,n.get(i);case 2:return a=t.sent,t.abrupt("return",o(!1===a.exsits?null:a));case 3:return u=ft(r,e),t.next=4,u.get();case 4:if(c=t.sent,!It(c)&&0!==c.docs.length){t.next=5;break}return t.abrupt("return",[]);case 5:return t.next=6,Promise.all(c.docs.map((function(t){return n.get(t)})));case 6:return f=t.sent,t.abrupt("return",f.map(o));case 7:case"end":return t.stop()}}),t)})));return function(r){return t.apply(this,arguments)}}()),t.next=1,Rt(i);case 1:return a=t.sent,u=[],e.writes.forEach((function(t){var e="function"==typeof t?t(a):t;Array.isArray(e)?(e.map((function(t){return kt(r,t,n)})),u.push(e)):u.push(kt(r,e,n))})),t.abrupt("return",{reads:a,writes:u});case 2:case"end":return t.stop()}}),t)})));return function(r){return t.apply(this,arguments)}}()));case 1:case"end":return t.stop()}}),t)}))),Wt.apply(this,arguments)}function Bt(t,r){return"string"==typeof(null==r?void 0:r.path)||"string"==typeof(null==r?void 0:r.collection)?function(t,r){return kt(t,r)}(t,r):Array.isArray(r)?function(t,r){return Ft.apply(this,arguments)}(t,r):function(t,r){return Wt.apply(this,arguments)}(t,r)}function Gt(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function qt(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?Gt(Object(e),!0).forEach((function(r){i(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Gt(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}function zt(t,r){var e=t.payload;return"function"==typeof e?e(r):e}function Qt(t,r){var e=r.ref,n=r.meta,o=void 0===n?{}:n,i=r.method,a=r.args,u=void 0===a?[]:a,c=r.types;if("function"!=typeof t)throw new Error("dispatch is not a function");var f=E(c,3),s=f[0],l=f[1],p=f[2],d={type:j()(s)?s.type:s,meta:o,payload:j()(s)?s.payload:{args:u}},v=new Promise((function(r,e){Object.defineProperty(d,"_promise",{enumerable:!1,configurable:!1,writable:!1,value:{resolve:r,reject:e}}),"mutate"!==i&&r(),t(d)})),y="mutate"===i?Bt.apply(void 0,[e].concat(b(u))):e[i].apply(e,b(u));return y.then((function(r){var e=j()(l),n={type:e?l.type:l,meta:o,payload:e&&l.payload?zt(l,r):{args:u}};return e&&l.preserve&&(n.preserve=l.preserve),e&&l.merge&&(n.merge=l.merge),t(n),r})).catch((function(r){return t({type:p,meta:o,payload:r}),Promise.reject(r)})),Promise.allSettled([y,v]).then((function(t){var r=E(t,2),e=r[0],n=r[1];return"rejected"===n.status?Promise.reject(n.reason):"rejected"===e.status?Promise.reject(e.reason):e.value}))}function Vt(t,r,e,n){var o=function(t,r){return function(e){return function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return e.apply(t,[t,r].concat(o))}}}(t,r);return qt(qt({},A()(e,o)),n.reduce((function(t,r){var e=r.action,n=r.name;return qt(qt({},t),{},i({},n,o(e)))}),{}))}function Kt(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function Ht(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?Kt(Object(e),!0).forEach((function(r){i(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Kt(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}function $t(t,r,e){for(var n=arguments.length,o=new Array(n>3?n-3:0),i=3;i<n;i++)o[i-3]=arguments[i];var a=gt(e);return Qt(r,{ref:ft(t,a),method:"add",meta:a,args:o,types:[u.ADD_REQUEST,{type:u.ADD_SUCCESS,payload:function(t){var r={id:t.id,data:o[0]};return nt.set(r,t),r}},u.ADD_FAILURE]})}function Jt(t,r,e){for(var n=gt(e),o=arguments.length,i=new Array(o>3?o-3:0),a=3;a<o;a++)i[a-3]=arguments[a];return Qt(r,{ref:ft(t,n),method:"set",meta:n,args:i,types:[u.SET_REQUEST,u.SET_SUCCESS,u.SET_FAILURE]})}function Xt(t,r,e){var n=gt(e),o=t._.config||{},i=o.mergeOrdered,a=o.mergeOrderedDocUpdates,c=o.mergeOrderedCollectionUpdates;return Qt(r,{ref:ft(t,n),method:"get",meta:n,types:[u.GET_REQUEST,{type:u.GET_SUCCESS,payload:function(t){var r;return{data:mt(t),ordered:bt(t),fromCache:"boolean"!=typeof(null===(r=t.metadata)||void 0===r?void 0:r.fromCache)||t.metadata.fromCache}},merge:{docs:i&&a,collections:i&&c}},u.GET_FAILURE]})}function Yt(t,r,e){for(var n=gt(e),o=arguments.length,i=new Array(o>3?o-3:0),a=3;a<o;a++)i[a-3]=arguments[a];return Qt(r,{ref:ft(t,n),method:"update",meta:n,args:i,types:[u.UPDATE_REQUEST,u.UPDATE_SUCCESS,u.UPDATE_FAILURE]})}function Zt(t,r,e){var n=gt(e),o=t._.config;return!n.doc||n.subcollections&&!v()(n.subcollections,"doc")?"function"==typeof o.onAttemptCollectionDelete?o.onAttemptCollectionDelete(e,r,t):Promise.reject(new Error("Only documents can be deleted.")):Qt(r,{ref:ft(t,n),method:"delete",meta:n,types:[u.DELETE_REQUEST,{type:u.DELETE_SUCCESS,preserve:t._.config.preserveOnDelete},u.DELETE_FAILURE]})}function tr(t,r,e,n,o){var i=gt(e),a=function(e){return i.populates?jt({firebase:t,docData:e,meta:i}).then((function(n){n.forEach((function(t){r(Ht(Ht({},t),{},{type:u.LISTENER_RESPONSE,timestamp:Date.now()}))})),St({dispatch:r,docData:e,meta:i,firebase:t})})).catch((function(r){var e=(t._.config||{}).logListenerError;!1!==e&&!1!==e&&console&&"function"==typeof console.error&&console.error("redux-firestore error populating:",r),"function"==typeof o&&o(r)})):(St({dispatch:r,docData:e,meta:i,firebase:t}),"function"==typeof n&&n(e),Promise.resolve())},c=function(e){var n=t._.config||{},a=n.mergeOrdered,c=n.mergeOrderedDocUpdates,f=n.mergeOrderedCollectionUpdates,s=n.logListenerError,l=n.preserveOnListenerError;!1!==s&&console&&"function"==typeof console.error&&console.error('redux-firestore listener error for collection "'.concat(null==i?void 0:i.collection,'":'),e),r({type:u.LISTENER_ERROR,meta:i,payload:e,merge:{docs:a&&c,collections:a&&f},preserve:l}),"function"==typeof o&&o(e)},f=e&&e.includeMetadataChanges||!1,s=f?ft(t,i).onSnapshot({includeMetadataChanges:f},a,c):ft(t,i).onSnapshot(a,c);return function(t,r,e,n){yt(t,e);var o=dt(e);t._.listeners[o]||(t._.listeners[o]=n),r({type:u.SET_LISTENER,meta:e,payload:{name:o}}),t._.listeners}(t,r,i,s),s}function rr(t,r,e){if(!Array.isArray(e))throw new Error("Listeners must be an Array of listener configs (Strings/Objects).");var n=t._.config;if(n.oneListenerPerPath)e.forEach((function(e){var n=dt(e),o=t._.pathListenerCounts[n]||0;t._.pathListenerCounts[n]=o+1,o>0||tr(t,r,e)}));else{var o=n.allowMultipleListeners;e.forEach((function(e){var n=dt(e),i=t._.pathListenerCounts[n]||0,a="function"==typeof o?o(e,t._.listeners):o;t._.pathListenerCounts[n]=i+1,(0===i||a)&&tr(t,r,e)}))}}function er(t,r,e){return function(t,r,e){var n=dt(e);t._.listeners[n]&&(t._.listeners[n](),delete t._.listeners[n]);var o=(t._.config||{}).preserveCacheAfterUnset;r({type:u.UNSET_LISTENER,meta:e,payload:{name:n,preserveCache:o}})}(t,r,gt(e))}function nr(t,r,e){if(!Array.isArray(e))throw new Error("Listeners must be an Array of listener configs (Strings/Objects).");var n=t._.config.allowMultipleListeners;e.forEach((function(e){var o=dt(e),i=t._.pathListenerCounts[o]>=1,a="function"==typeof n?n(e,t._.listeners):n;i&&(t._.pathListenerCounts[o]-=1,(0===t._.pathListenerCounts[o]||a)&&er(t,r,e))}))}function or(t,r,e){return Qt(r,{ref:t.firestore(),method:"runTransaction",args:[e],types:[u.TRANSACTION_START,u.TRANSACTION_SUCCESS,u.TRANSACTION_FAILURE]})}function ir(t,r,e){var n="".concat(+new Date);return Qt(r,{ref:t,method:"mutate",meta:{timestamp:n},args:[e],types:[{type:u.MUTATE_START,payload:{data:e}},u.MUTATE_SUCCESS,{type:u.MUTATE_FAILURE,meta:{timestamp:n},payload:{data:e}}]})}var ar,ur,cr={get:Xt,firestoreRef:ft,add:$t,update:Yt,setListener:tr,setListeners:rr,unsetListener:er,unsetListeners:nr,runTransaction:or,mutate:ir};function fr(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function sr(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?fr(Object(e),!0).forEach((function(r){i(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):fr(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}function lr(r,e,n){var o={listeners:{},pathListenerCounts:{},config:sr(sr({},c),e)};r._=p()(o,r._);var a=Vt(r,n,t,[{action:Zt,name:"delete"},{action:tr,name:"onSnapshot"}]),u=f.reduce((function(t,e){return r.firestore&&"function"==typeof r.firestore()[e]?sr(sr({},t),{},i({},e,r.firestore()[e].bind(r.firestore()))):t}),{});return ar=Object.assign(u,r.firestore,{_:r._},e.helpersNamespace?i({},e.helpersNamespace,a):a)}function pr(){if(!ar)throw new Error("Firestore instance does not yet exist. Check your setup.");return ar}function dr(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function vr(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?dr(Object(e),!0).forEach((function(r){i(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):dr(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}function yr(t,r){return function(e){return function(n,o,i){var a=e(n,o,i),u=vr(vr({},c),r);return ur=lr(t.firebase_||t,u,a.dispatch),a.firestore=ur,a}}}var hr=n(9488),gr=n.n(hr),br=n(3472),mr=n.n(br),Or=n(4383),Er=n.n(Or),xr=n(3812),Ar=n.n(xr);function Sr(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function jr(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?Sr(Object(e),!0).forEach((function(r){i(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Sr(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}function wr(t){return t?t.split(/\//).filter((function(t){return!!t})):[]}function _r(t){return gr()(mr()(t,/[.]/g,"/"),"/")}function Tr(t){return function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return Object.keys(t).reduce((function(n,o){return n[o]=t[o](r[o],e),n}),{})}}function Pr(t){if(!t)throw new Error("Action meta is required to build path for reducers.");var r=t.collection,e=t.collectionGroup,n=t.doc,o=t.subcollections,i=t.storeAs;if(i)return n?[i,n]:[i];if(t.path)return t.path.split("/");if(!r&&!e)throw new Error("Collection or Collection Group is required to construct reducer path.");var a=[r||e];if(n&&(a=[].concat(b(a),[n])),!o)return a;var u=o.map(Pr);return[].concat(b(a),b(R()(u)))}function Rr(t,r,e){var n=!1,o=Array.isArray(t)?t.map((function(t){return t&&t.id===r?(n=!0,e(t)):t})):[];return n||o.push(e({id:r})),o}function Dr(t,r,e){if(Ar()(r))return e?jr(jr({},t),e):t;if("function"==typeof r)return r(t,e);if(Array.isArray(r))return Er()(t,r);throw new Error("Invalid preserve parameter. It must be an Object or an Array.")}var Ir=n(2507),Cr=n.n(Ir),Ur=u.CLEAR_DATA,Lr=u.GET_SUCCESS,Mr=u.LISTENER_RESPONSE,Nr=u.LISTENER_ERROR,kr=u.DELETE_SUCCESS,Fr=u.DOCUMENT_ADDED,Wr=u.DOCUMENT_MODIFIED,Br=u.DOCUMENT_REMOVED;function Gr(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function qr(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?Gr(Object(e),!0).forEach((function(r){i(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Gr(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}var zr=u.CLEAR_ERRORS,Qr=u.CLEAR_ERROR,Vr=u.LISTENER_ERROR,Kr=u.ERROR;var Hr=Tr({byQuery:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,e=r.meta,n=r.payload;switch(r.type){case Kr:case Vr:return qr(qr({},t),{},i({},dt(e),n));case Qr:return qr(qr({},t),{},i({},dt(e),null));default:return t}},allIds:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1?arguments[1]:void 0,e=r.meta;switch(r.type){case Vr:case Kr:return-1!==t.indexOf(dt(e))?t:[].concat(b(t),[dt(e)]);case zr:return[];case Qr:return t.filter((function(t){return t!==dt(e)}));default:return t}}}),$r=Hr,Jr=n(179),Xr=n.n(Jr);function Yr(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function Zr(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?Yr(Object(e),!0).forEach((function(r){i(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Yr(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}var te=Tr({byId:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,e=r.type,n=r.path,o=r.payload;switch(e){case u.SET_LISTENER:return Zr(Zr({},t),{},i({},o.name,{name:o.name,path:n}));case u.UNSET_LISTENER:return Xr()(t,[o.name]);default:return t}},allIds:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1?arguments[1]:void 0,e=r.type,n=r.payload;switch(e){case u.SET_LISTENER:return[].concat(b(t),[n.name]);case u.UNSET_LISTENER:return t.filter((function(t){return t!==n.name}));default:return t}}}),re=te,ee=n(2404),ne=n.n(ee),oe=n(8970),ie=n.n(oe),ae=n(8081),ue=n.n(ae),ce=n(9786),fe=n.n(ce),se=n(7091),le=n.n(se);function pe(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function de(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?pe(Object(e),!0).forEach((function(r){i(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):pe(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}var ve=u.DOCUMENT_ADDED,ye=u.GET_SUCCESS,he=u.LISTENER_RESPONSE,ge=u.CLEAR_DATA,be=u.DELETE_SUCCESS,me=u.DOCUMENT_REMOVED,Oe=u.DOCUMENT_MODIFIED;function Ee(t,r){if(r.payload.ordered){var e=r.payload.ordered,n=e.newIndex,o=e.oldIndex;if(null!==n&&null!==o&&n>-1&&o>-1&&n!==o)return function(t,r,e,n){var o=r.doc,i=e||{},a=i.oldIndex,u=i.newIndex,c=[].concat(b(t.slice(0,a)),b(t.slice(a+1)));return[].concat(b(c.slice(0,u)),[de({id:o},n)||de({},t[a])],b(c.slice(u)))}(t,r.meta,r.payload.ordered,r.payload.data)}if(!r.meta.subcollections||r.meta.storeAs)return Rr(t,r.meta.doc,(function(t){return de({id:r.meta.doc},r.payload.data)}));var a=E(wr(r.meta.path),4),u=a[1],c=a[2],f=a[3];return Rr(t,u,(function(t){return de(de({},t),{},i({},c,Rr(W()(t,c,[]),f,(function(t){return p()(t,r.payload.data)}))))}))}function xe(t,r){if(!r.meta.subcollections||r.meta.storeAs)return ue()(t,{id:r.meta.doc});var e=r.meta.subcollections[0];return e.doc?Rr(t,r.meta.doc,(function(r){return W()(r,e.collection,[]).length?de(de({},r),{},i({},e.collection,ue()(t,{id:e.doc}))):r})):Rr(t,r.meta.doc,(function(t){return Xr()(t,[e.collection])}))}function Ae(t,r){var e=r.meta,n=r.merge,o=void 0===n?{doc:!0,collections:!0}:n;if(e.storeAs)return r.payload.ordered;var a=le()(t),u=!!le()(r.payload.ordered);if(e.doc&&o.doc&&a)return Ee(t,r);if(a&&o.collections){if(!u)return[];var c=t&&ie()(t,"id");return G()(r.payload.ordered,(function(t){var r=W()(c,t.id);return r&&!ne()(r,t)?de(de({},r),t):t}))}if(e.doc&&e.subcollections){var f=e.subcollections[0];return a?Rr(t,e.doc,(function(t){return u?de(de({},t),{},i({},f.collection,fe()(W()(t,f.collection,[]),r.payload.ordered,"id"))):Xr()(t,[f.collection])})):[i({id:e.doc},f.collection,r.payload.ordered)]}return e.doc&&a?le()(r.payload.ordered)?Rr(t,e.doc,(function(t){return p()(t,r.payload.ordered[0])})):t:r.payload.ordered}var Se,je,we=i(i(i(i(i(i({},ve,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1?arguments[1]:void 0,e=r.meta,n=r.payload;return!e.subcollections||e.storeAs?[].concat(b(t.slice(0,n.ordered.newIndex)),[de({id:e.doc},n.data)],b(t.slice(n.ordered.newIndex))):Ee(t,r)})),Oe,Ee),me,xe),be,xe),he,Ae),ye,Ae),_e=(Se=void 0,je=we,function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Se,r=arguments.length>1?arguments[1]:void 0;return je.hasOwnProperty(r.type)?je[r.type](t,r):t});var Te=n(3357),Pe=n.n(Te);function Re(t){for(var r=arguments.length,e=Array(r>1?r-1:0),n=1;n<r;n++)e[n-1]=arguments[n];throw Error("[Immer] minified error nr: "+t+(e.length?" "+e.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function De(t){return!!t&&!!t[mn]}function Ie(t){var r;return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var r=Object.getPrototypeOf(t);if(null===r)return!0;var e=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return e===Object||"function"==typeof e&&Function.toString.call(e)===On}(t)||Array.isArray(t)||!!t[bn]||!!(null===(r=t.constructor)||void 0===r?void 0:r[bn])||Fe(t)||We(t))}function Ce(t,r,e){void 0===e&&(e=!1),0===Ue(t)?(e?Object.keys:En)(t).forEach((function(n){e&&"symbol"==typeof n||r(n,t[n],t)})):t.forEach((function(e,n){return r(n,e,t)}))}function Ue(t){var r=t[mn];return r?r.i>3?r.i-4:r.i:Array.isArray(t)?1:Fe(t)?2:We(t)?3:0}function Le(t,r){return 2===Ue(t)?t.has(r):Object.prototype.hasOwnProperty.call(t,r)}function Me(t,r){return 2===Ue(t)?t.get(r):t[r]}function Ne(t,r,e){var n=Ue(t);2===n?t.set(r,e):3===n?t.add(e):t[r]=e}function ke(t,r){return t===r?0!==t||1/t==1/r:t!=t&&r!=r}function Fe(t){return vn&&t instanceof Map}function We(t){return yn&&t instanceof Set}function Be(t){return t.o||t.t}function Ge(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var r=xn(t);delete r[mn];for(var e=En(r),n=0;n<e.length;n++){var o=e[n],i=r[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(r[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:t[o]})}return Object.create(Object.getPrototypeOf(t),r)}function qe(t,r){return void 0===r&&(r=!1),Qe(t)||De(t)||!Ie(t)||(Ue(t)>1&&(t.set=t.add=t.clear=t.delete=ze),Object.freeze(t),r&&Ce(t,(function(t,r){return qe(r,!0)}),!0)),t}function ze(){Re(2)}function Qe(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function Ve(t){var r=An[t];return r||Re(18,t),r}function Ke(){return pn}function He(t,r){r&&(Ve("Patches"),t.u=[],t.s=[],t.v=r)}function $e(t){Je(t),t.p.forEach(Ye),t.p=null}function Je(t){t===pn&&(pn=t.l)}function Xe(t){return pn={p:[],l:pn,h:t,m:!0,_:0}}function Ye(t){var r=t[mn];0===r.i||1===r.i?r.j():r.g=!0}function Ze(t,r){r._=r.p.length;var e=r.p[0],n=void 0!==t&&t!==e;return r.h.O||Ve("ES5").S(r,t,n),n?(e[mn].P&&($e(r),Re(4)),Ie(t)&&(t=tn(r,t),r.l||en(r,t)),r.u&&Ve("Patches").M(e[mn].t,t,r.u,r.s)):t=tn(r,e,[]),$e(r),r.u&&r.v(r.u,r.s),t!==gn?t:void 0}function tn(t,r,e){if(Qe(r))return r;var n=r[mn];if(!n)return Ce(r,(function(o,i){return rn(t,n,r,o,i,e)}),!0),r;if(n.A!==t)return r;if(!n.P)return en(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=4===n.i||5===n.i?n.o=Ge(n.k):n.o,i=o,a=!1;3===n.i&&(i=new Set(o),o.clear(),a=!0),Ce(i,(function(r,i){return rn(t,n,o,r,i,e,a)})),en(t,o,!1),e&&t.u&&Ve("Patches").N(n,e,t.u,t.s)}return n.o}function rn(t,r,e,n,o,i,a){if(De(o)){var u=tn(t,o,i&&r&&3!==r.i&&!Le(r.R,n)?i.concat(n):void 0);if(Ne(e,n,u),!De(u))return;t.m=!1}else a&&e.add(o);if(Ie(o)&&!Qe(o)){if(!t.h.D&&t._<1)return;tn(t,o),r&&r.A.l||en(t,o)}}function en(t,r,e){void 0===e&&(e=!1),!t.l&&t.h.D&&t.m&&qe(r,e)}function nn(t,r){var e=t[mn];return(e?Be(e):t)[r]}function on(t,r){if(r in t)for(var e=Object.getPrototypeOf(t);e;){var n=Object.getOwnPropertyDescriptor(e,r);if(n)return n;e=Object.getPrototypeOf(e)}}function an(t){t.P||(t.P=!0,t.l&&an(t.l))}function un(t){t.o||(t.o=Ge(t.t))}function cn(t,r,e){var n=Fe(r)?Ve("MapSet").F(r,e):We(r)?Ve("MapSet").T(r,e):t.O?function(t,r){var e=Array.isArray(t),n={i:e?1:0,A:r?r.A:Ke(),P:!1,I:!1,R:{},l:r,t:t,k:null,o:null,j:null,C:!1},o=n,i=Sn;e&&(o=[n],i=jn);var a=Proxy.revocable(o,i),u=a.revoke,c=a.proxy;return n.k=c,n.j=u,c}(r,e):Ve("ES5").J(r,e);return(e?e.A:Ke()).p.push(n),n}function fn(t){return De(t)||Re(22,t),function t(r){if(!Ie(r))return r;var e,n=r[mn],o=Ue(r);if(n){if(!n.P&&(n.i<4||!Ve("ES5").K(n)))return n.t;n.I=!0,e=sn(r,o),n.I=!1}else e=sn(r,o);return Ce(e,(function(r,o){n&&Me(n.t,r)===o||Ne(e,r,t(o))})),3===o?new Set(e):e}(t)}function sn(t,r){switch(r){case 2:return new Map(t);case 3:return Array.from(t)}return Ge(t)}var ln,pn,dn="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),vn="undefined"!=typeof Map,yn="undefined"!=typeof Set,hn="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,gn=dn?Symbol.for("immer-nothing"):((ln={})["immer-nothing"]=!0,ln),bn=dn?Symbol.for("immer-draftable"):"__$immer_draftable",mn=dn?Symbol.for("immer-state"):"__$immer_state",On=("undefined"!=typeof Symbol&&Symbol.iterator,""+Object.prototype.constructor),En="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,xn=Object.getOwnPropertyDescriptors||function(t){var r={};return En(t).forEach((function(e){r[e]=Object.getOwnPropertyDescriptor(t,e)})),r},An={},Sn={get:function(t,r){if(r===mn)return t;var e=Be(t);if(!Le(e,r))return function(t,r,e){var n,o=on(r,e);return o?"value"in o?o.value:null===(n=o.get)||void 0===n?void 0:n.call(t.k):void 0}(t,e,r);var n=e[r];return t.I||!Ie(n)?n:n===nn(t.t,r)?(un(t),t.o[r]=cn(t.A.h,n,t)):n},has:function(t,r){return r in Be(t)},ownKeys:function(t){return Reflect.ownKeys(Be(t))},set:function(t,r,e){var n=on(Be(t),r);if(null==n?void 0:n.set)return n.set.call(t.k,e),!0;if(!t.P){var o=nn(Be(t),r),i=null==o?void 0:o[mn];if(i&&i.t===e)return t.o[r]=e,t.R[r]=!1,!0;if(ke(e,o)&&(void 0!==e||Le(t.t,r)))return!0;un(t),an(t)}return t.o[r]===e&&(void 0!==e||r in t.o)||Number.isNaN(e)&&Number.isNaN(t.o[r])||(t.o[r]=e,t.R[r]=!0),!0},deleteProperty:function(t,r){return void 0!==nn(t.t,r)||r in t.t?(t.R[r]=!1,un(t),an(t)):delete t.R[r],t.o&&delete t.o[r],!0},getOwnPropertyDescriptor:function(t,r){var e=Be(t),n=Reflect.getOwnPropertyDescriptor(e,r);return n?{writable:!0,configurable:1!==t.i||"length"!==r,enumerable:n.enumerable,value:e[r]}:n},defineProperty:function(){Re(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Re(12)}},jn={};Ce(Sn,(function(t,r){jn[t]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}})),jn.deleteProperty=function(t,r){return jn.set.call(this,t,r,void 0)},jn.set=function(t,r,e){return Sn.set.call(this,t[0],r,e,t[0])};var wn=function(){function t(t){var r=this;this.O=hn,this.D=!0,this.produce=function(t,e,n){if("function"==typeof t&&"function"!=typeof e){var o=e;e=t;var i=r;return function(t){var r=this;void 0===t&&(t=o);for(var n=arguments.length,a=Array(n>1?n-1:0),u=1;u<n;u++)a[u-1]=arguments[u];return i.produce(t,(function(t){var n;return(n=e).call.apply(n,[r,t].concat(a))}))}}var a;if("function"!=typeof e&&Re(6),void 0!==n&&"function"!=typeof n&&Re(7),Ie(t)){var u=Xe(r),c=cn(r,t,void 0),f=!0;try{a=e(c),f=!1}finally{f?$e(u):Je(u)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(t){return He(u,n),Ze(t,u)}),(function(t){throw $e(u),t})):(He(u,n),Ze(a,u))}if(!t||"object"!=typeof t){if(void 0===(a=e(t))&&(a=t),a===gn&&(a=void 0),r.D&&qe(a,!0),n){var s=[],l=[];Ve("Patches").M(t,a,s,l),n(s,l)}return a}Re(21,t)},this.produceWithPatches=function(t,e){if("function"==typeof t)return function(e){for(var n=arguments.length,o=Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return r.produceWithPatches(e,(function(r){return t.apply(void 0,[r].concat(o))}))};var n,o,i=r.produce(t,e,(function(t,r){n=t,o=r}));return"undefined"!=typeof Promise&&i instanceof Promise?i.then((function(t){return[t,n,o]})):[i,n,o]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var r=t.prototype;return r.createDraft=function(t){Ie(t)||Re(8),De(t)&&(t=fn(t));var r=Xe(this),e=cn(this,t,void 0);return e[mn].C=!0,Je(r),e},r.finishDraft=function(t,r){var e=(t&&t[mn]).A;return He(e,r),Ze(void 0,e)},r.setAutoFreeze=function(t){this.D=t},r.setUseProxies=function(t){t&&!hn&&Re(20),this.O=t},r.applyPatches=function(t,r){var e;for(e=r.length-1;e>=0;e--){var n=r[e];if(0===n.path.length&&"replace"===n.op){t=n.value;break}}e>-1&&(r=r.slice(e+1));var o=Ve("Patches").$;return De(t)?o(t,r):this.produce(t,(function(t){return o(t,r)}))},t}(),_n=new wn,Tn=_n.produce,Pn=(_n.produceWithPatches.bind(_n),_n.setAutoFreeze.bind(_n),_n.setUseProxies.bind(_n),_n.applyPatches.bind(_n),_n.createDraft.bind(_n),_n.finishDraft.bind(_n),Tn);function Rn(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function Dn(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function In(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?Dn(Object(e),!0).forEach((function(r){i(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Dn(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}var Cn=u.SET_LISTENER,Un=u.UNSET_LISTENER,Ln=u.LISTENER_ERROR,Mn=u.LISTENER_RESPONSE;var Nn=Tr({requesting:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,e=r.type,n=r.meta;switch(e){case Cn:return In(In({},t),{},i({},_r(dt(n)),!0));case Ln:case Mn:case Un:return In(In({},t),{},i({},_r(dt(n)),!1));default:return t}},requested:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,e=r.type,n=r.meta;switch(e){case Cn:case Un:return In(In({},t),{},i({},dt(n),!1));case Ln:case Mn:return In(In({},t),{},i({},dt(n),!0));default:return t}},timestamps:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,e=r.type,n=r.meta;return e===Cn?In(In({},t),{},i({},dt(n),Date.now())):t}}),kn=n(5364),Fn=n.n(kn),Wn=n(2013),Bn=n.n(Wn);var Gn,qn=n(3488),zn=n.n(qn),Qn=n(7779),Vn=n.n(Qn),Kn=n(5425),Hn=n.n(Kn),$n=n(4713),Jn=n.n($n),Xn=n(5632),Yn=n.n(Xn),Zn=n(5611),to=n.n(Zn),ro=n(7055),eo=n.n(ro),no=n(4921),oo=n.n(no),io=n(2877),ao=n.n(io),uo=n(9870),co=n.n(uo),fo=n(7612),so=n.n(fo),lo=n(9582),po=["collection","path","doc","id","data"];function vo(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function yo(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?vo(Object(e),!0).forEach((function(r){i(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):vo(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}var ho=function(t){return t instanceof Object&&void 0!==t.seconds},go={"<":function(t,r){return t<r},"<=":function(t,r){return t<=r},"==":function(t,r){return t===r},"!=":function(t,r){return t!==r},">=":function(t,r){return t>=r},">":function(t,r){return t>r},"array-contains":function(t,r){return t.includes(r)},in:function(t,r){return Array.isArray(r)&&r.includes(t)},"array-contains-any":function(t,r){return r.some((function(r){return t.includes(r)}))},"not-in":function(t,r){return!r.includes(t)},"*":function(){return!0}},bo={"<":function(t,r){return t.seconds<r.seconds||t.seconds===r.seconds&&t.nanoseconds<r.nanoseconds},"<=":function(t,r){return t.seconds<r.seconds||t.seconds===r.seconds&&t.nanoseconds<=r.nanoseconds},"==":function(t,r){return t.seconds===r.seconds&&t.nanoseconds===r.nanoseconds},"!=":function(t,r){return t.seconds!==r.seconds||t.nanoseconds!==r.nanoseconds},">=":function(t,r){return t.seconds>r.seconds||t.seconds===r.seconds&&t.nanoseconds>=r.nanoseconds},">":function(t,r){return t.seconds>r.seconds||t.seconds===r.seconds&&t.nanoseconds>r.nanoseconds},"array-contains":function(t,r){return t.includes(r)},in:function(t,r){return Array.isArray(r)&&r.includes(t)},"array-contains-any":function(t,r){return r.some((function(r){return t.includes(r)}))},"not-in":function(t,r){return!r.includes(t)},"*":function(){return!0}},mo=function(t){return eo()(G(),(function(t){return t}))},Oo=function(t){var r=t.collection;return function(t){var e=t.database,n=void 0===e?{}:e,o=t.databaseOverrides,i=void 0===o?{}:o,a=new Set([].concat(b(Object.keys(n[r]||{})),b(Object.keys(i[r]||{}))));return[Array.from(a).map((function(t){return[r,t]}))]}},Eo=function(t,r){var e=t.orderBy;if(!e)return zn();var n="string"==typeof e[0]?[e]:e,o=to().apply(void 0,b(n.map((function(t){var r=E(t,2),e=r[0];return[function(t){return"string"==typeof t[e]?t[e].toLowerCase():ho(t[e])?t[e].seconds:t[e]},r[1]||"asc"]})))),i=E(o,2),a=i[0],u=i[1];return eo()(G(),(function(t){var e=t.map((function(t){var e=E(t,2),n=e[0],o=e[1];return r(n,o)}));return ao()(e,a,u).map((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.id,e=t.path;return e&&r&&[e,r]}))}))},xo=function(t,r){var e=t.orderBy,n=t.limit,o=t.startAt,i=t.startAfter,a=t.endAt,u=t.endBefore,c=o||i,f=a||u,s=void 0!==i,l=void 0!==u;if(!(c||f||!1)||!e)return zn();var p="string"==typeof e[0]?[e]:e,d=function(t,r){return void 0!==p.find((function(e,n){var c=E(e,2),f=c[0],s=c[1],l=void 0===s?"asc":s,p=Array.isArray(r)?r[n]:r;if(void 0===p)return!1;var d=ho(t[f])?bo:go,v=process["=="];return(o||a)&&(v=d["desc"===l?"<=":">="]),(i||u)&&(v=d["desc"===l?"<":">"]),v(t[f],p)}))};return eo()(G(),(function(t){var e=[],o=void 0===c;return t.forEach((function(t){var i=E(t,2),a=i[0],u=i[1];n&&e.length>=n||(!o&&c&&d(r(a,u),c,void 0,s)&&(o=!0),o&&f&&d(r(a,u),f,l,void 0)&&(o=!1),o&&e.push([a,u]))})),e}))};function Ao(t,r){var e,n,o,i,a=r.database,u=r.databaseOverrides,c=t.via,f=void 0===c?"memory":c,s=t.collection,l=a&&a[s]||{},p=u&&u[s],d=function(t,r){var e=l[r]||{},n=null==p?void 0:p[r];return n?yo(yo({},e),n):e},v=co()([Oo(t),mo()].concat(b(function(t,r){var e=t.where;return e?("string"==typeof e[0]?[e]:e).map((function(t){var e=E(t,3),n=e[0],o=e[1],i=e[2],a=ho(i)?bo[o]:go[o]||function(){return!0};return eo()(G(),(function(t){return so()(t,(function(){var t,e=E(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],2),o=e[0],u=e[1];return!(!o||!u)&&(void 0===(t="__name__"===n?u:n.includes(".")?n.split(".").reduce((function(t,r){return t&&t[r]}),r(o,u)):r(o,u)[n])&&(t=null),a(t,i))}))}))})):[eo()(G(),zn())]}(t,d)),[mo(),Eo(t,d),mo(),xo(t,d),mo(),(e=t,n=e.limit,o=e.endAt,i=e.endBefore,n?void 0!==(o||i)?function(){var t=E(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],1)[0];return[Vn()(t,n)]}:function(){var t=E(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],1)[0];return[oo()(t,n)]}:zn()),mo()])),y=v(r)[0];return"memory"===f&&0===y.length?void 0:y}function So(t,r){var e,n=[],o=Array.isArray(r)?r:[r],i=null===(e=t.databaseOverrides)||void 0===e?void 0:e[r];Object.keys(t).forEach((function(r){var e;if(!["database","databaseOverrides"].includes(r)&&o.includes(t[r].collection)&&(a=t[r],u=t.databaseOverrides,c=void 0===u?{}:u,f=a.collection,s=a.via,l=["cache","server"].includes(s),p=J()(c[f]),!l||!p)){var a,u,c,f,s,l,p;n.push(r);var d=Ao(t[r],t);t[r].ordered&&(null!=d?d:[]).toString()===(null!==(e=t[r].ordered)&&void 0!==e?e:[]).toString()||(k()(t,[r,"ordered"],d),k()(t,[r,"via"],J()(i)?"memory":"optimistic"))}}))}function jo(t,r){return Object.keys(t).reduce((function(t,e){var n,o=t[e];return e.includes(".")?function(t,r,e){delete t[r];var n=r.split(".");n.reduce((function(t,r,o){return void 0===t[r]&&(t[r]={}),o===n.length-1&&(t[r]=e),t[r]}),t)}(t,e,o):Array.isArray(o)&&o.length>0&&(t[e]=("string"==typeof(n=o)[0]&&0===n[0].indexOf("::")?null:n)||function(t){return"::serverTimestamp"===t&&lo.Timestamp.now()}(o[0])||function(t,r,e){return"::arrayUnion"!==t?null:(e()||[]).concat([r])}(o[0],o[1],(function(){return r(e)}))||function(t,r,e){return"::arrayRemove"===t&&(e()||[]).filter((function(t){return t!==r}))}(o[0],o[1],(function(){return r(e)}))||function(t,r,e){return"::increment"===t&&"number"==typeof r&&(e()||0)+r}(o[0],o[1],(function(){return r(e)}))),t}),JSON.parse(JSON.stringify(t)))}function wo(t,e){var n=e.path,o=e.id,i=e.data;if(n&&o){var a=W()(t,["databaseOverrides",n,o],!1);if(a&&(!i||Hn()(i,a))){var u=Object.keys(a),c=i?u.filter((function(t){var e=W()(i,t),n=a[t];return null==e?e===n:Array.isArray(e)?e.every((function(t,r){return t===n[r]})):"object"===r(e)?Object.keys(e).every((function(t){return e[t]===n[t]})):ne()(i[t],a[t])})):u,f=c.length===Object.keys(a).length;f&&1===Object.keys(t.databaseOverrides[n]||{}).length?Pe()(t,["databaseOverrides",n]):f?Pe()(t,["databaseOverrides",n,o]):c.forEach((function(r){Pe()(t,["databaseOverrides",n,o,r])}))}}}var _o=function(t,r){var e=r.action,n=(r.key,r.path);return Pn(t,(function(t){var r,o;t.database||(k()(t,["database"],{}),k()(t,["databaseOverrides"],{}));var i={undefined:!J()(null===(r=t.databaseOverrides)||void 0===r?void 0:r[n])?"optimistic":"memory",true:"cache",false:"server"}[e.payload.fromCache];e.payload.data&&Object.keys(e.payload.data).forEach((function(r){Yn()(t,["database",n,r],e.payload.data[r],Object),wo(t,{path:n,id:r,data:e.payload.data[r]})}));var a=(null===(o=e.payload.ordered)||void 0===o?void 0:o.map((function(t){return[t.path,t.id]})))||Ao(e.meta,t);return k()(t,[e.meta.storeAs],yo(yo({ordered:a},e.meta),{},{via:i})),So(t,n),t}))},To=function(t,r){var e=r.action,n=r.key,o=r.path;return Pn(t,(function(t){Yn()(t,["database",o,e.meta.doc],e.payload.data,Object),wo(t,{path:o,id:e.meta.doc,data:e.payload.data});var r=e.payload,i=r.ordered||{},a=i.oldIndex,u=void 0===a?0:a,c=i.newIndex,f=void 0===c?0:c;if(f!==u){var s=r.data&&[r.data.path,r.data.id]||t[n].ordered[u],l=(t[n]||{ordered:[]}).ordered,p=Jn()(l,[1,e.meta.doc]),d=-1!==p,v=-1===u||d;(-1===f||d)&&p>-1?l.splice(p,0):v&&l.splice(f,0,s),k()(t,[n,"ordered"],l)}return!1!==e.meta.reprocess&&So(t,o),t}))},Po=function(t,r){var e=r.action,n=(r.key,r.path);return Pn(t,(function(t){if(e.payload.data||e.payload.args){var r=(e.payload.data?[{writes:[e.payload.data]}]:e.payload.args).reduce((function(r,e){var o=e.writes;return[].concat(b(r),b(o.map((function(r){var e=r.collection,o=r.path,i=r.doc,a=r.id;return wo(t,{path:o||e,id:a||i}),n||e}))))}),[]),o=Array.from(new Set(r));o.length>0&&So(t,o)}return t}))},Ro=function(t,r){var e=r.action,n=(r.key,r.path);return Pn(t,(function(t){return Yn()(t,["databaseOverrides",n,e.meta.doc],e.payload.data,Object),So(t,n),t}))},Do=(i(i(i(i(i(i(i(i(i(i(Gn={},u.SET_LISTENER,_o),u.LISTENER_RESPONSE,_o),u.GET_SUCCESS,_o),u.UNSET_LISTENER,(function(t,r){var e=r.action,n=r.key,o=r.path;return Pn(t,(function(t){return t[n]&&(e.payload.preserveCache||Pe()(t,[n]),So(t,o)),t}))})),u.DOCUMENT_ADDED,To),u.DOCUMENT_MODIFIED,To),u.DELETE_SUCCESS,(function(t,r){var e=r.action,n=r.key,o=r.path;return Pn(t,(function(t){if(t.database&&t.database[o]&&Pe()(t,["database",o,e.meta.doc]),wo(t,{path:o,id:e.meta.doc}),t[n]&&t[n].ordered){var r=Jn()(t[n].ordered,[1,e.meta.doc]);t[n].ordered.splice(r,1)}return So(t,o),t}))})),u.DOCUMENT_REMOVED,(function(t,r){var e=r.action,n=r.key,o=r.path;return Pn(t,(function(t){if(wo(t,{path:o,id:e.meta.doc,data:e.payload.data}),t[n]&&t[n].ordered){var r=Jn()(t[n].ordered,[1,e.meta.doc]);-1!==r&&t[n].ordered.splice(r,1)}return So(t,o),t}))})),u.OPTIMISTIC_ADDED,Ro),u.OPTIMISTIC_MODIFIED,Ro),i(i(i(i(i(i(i(Gn,u.OPTIMISTIC_REMOVED,(function(t,r){var e=r.action,n=(r.key,r.path);return Pn(t,(function(t){return wo(t,{path:n,id:e.meta.doc}),So(t,n),t}))})),u.MUTATE_FAILURE,Po),u.DELETE_FAILURE,Po),u.UPDATE_FAILURE,Po),u.SET_FAILURE,Po),u.ADD_FAILURE,Po),u.MUTATE_START,(function(t,r){var e=r.action,n=(r.key,r.path,e._promise);try{var o=Pn(t,(function(t){if(e.payload&&e.payload.data){var r=function(t){var r=t.payload,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=r.data||{},a=o.reads,u=o.writes;u?Array.isArray(u)||(u=[u]):u=Array.isArray(r.data)?r.data:[r.data];var c={};a&&(c=Object.keys(a).reduce((function(t,r){var o,u,c,f;if("function"==typeof a[r])return yo(yo({},t),{},i({},r,a[r]()));var s=(null===(o=a[r])||void 0===o?void 0:o.path)||(null===(u=a[r])||void 0===u?void 0:u.collection),l=(null===(c=a[r])||void 0===c?void 0:c.id)||(null===(f=a[r])||void 0===f?void 0:f.doc),p=e[s]||{},d=n[s]||{};return yo(yo({},t),{},i({},r,yo(yo({id:l,path:s},p[l]),d[l]||{})))}),{}));var f=u.map((function(t){return"function"==typeof t?t(c):t})).filter((function(t){return!t||!J()(t)})).reduce((function(t,r){return[].concat(b(t),b(Array.isArray(r)?r:[r]))}),[]).map((function(t){var r=t.collection,n=t.path,o=t.doc,i=t.id,a=t.data,u=w(t,po),c=n||r,f=i||o;return yo({path:c,id:f},jo(r?a:u,(function(t){return(((Object.keys(e).length>0?e:{})[c]||{})[f]||{})[t]})))}));return f}(e,t.database)||[];r.forEach((function(r){Yn()(t,["databaseOverrides",r.path,r.id],r,Object)})),b(new Set(r.map((function(t){return t.path})))).forEach((function(r){So(t,r)}))}return null==n||n.resolve(),t}));return o}catch(r){return null==n||n.reject(r),t}})));var Io=Tr({status:Nn,data:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;switch(r.type){case Lr:case Mr:var e=r.meta,n=r.payload;if(!n||void 0===n.data)return t;var o=function(t){return t.subcollections?o(t.subcollections.slice(-1)[0]):t.doc},i=o(e),a=i?W()(n.data,i):n.data;return!W()(t,e.storeAs?[e.storeAs]:Pr(e))||e.subcollections,Cr()(Object,e.storeAs?[e.storeAs]:Pr(e),a,t);case Wr:case Fr:return Cr()(Object,Pr(r.meta),r.payload.data,t);case Br:case kr:var u=Pr(r.meta),c=Cr()(Object,u,null,t);return r.preserve&&r.preserve.data?Dr(t,r.preserve.data,c):c;case Ur:return r.preserve&&r.preserve.data?Dr(t,r.preserve.data,{}):{};case Nr:var f=Cr()(Object,Pr(r.meta),null,t);return r.preserve&&r.preserve.data?Dr(t,r.preserve.data,f):W()(t,Pr(r.meta))?t:f;default:return t}},ordered:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(!r.type)return t;if(r.type===ge)return r.preserve&&r.preserve.ordered?Dr(t,r.preserve.ordered,{}):{};if(!Object.prototype.hasOwnProperty.call(we,r.type))return t;if(!r.meta||!r.meta.storeAs&&!r.meta.collection)return t;var e=r.meta.storeAs||r.meta.collection,n=W()(t,e);return de(de({},t),{},i({},e,_e(n,r)))},listeners:re,errors:$r,cache:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,e=Do[r.type];return e?e(t,{action:r,key:r.meta&&r.meta.collection?r.meta.storeAs||vt(r.meta):null,path:r.meta?r.meta.collection:null}):t},queries:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return Pn(t,(function(e){if(!function(t){return!!W()(t,"meta.where")&&!!W()(t,"meta.collection")}(r))return t;var n=vt(r.meta);switch(r.type){case u.GET_SUCCESS:case u.LISTENER_RESPONSE:return e[n]=function(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?Rn(Object(e),!0).forEach((function(r){i(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Rn(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}({data:r.payload.data},r.meta),e;case u.UNSET_LISTENER:return e[n]&&(e[n].data=void 0),e;case u.DOCUMENT_ADDED:case u.DOCUMENT_MODIFIED:return k()(e,[n,"data",r.meta.doc],r.payload.data),e;case u.DOCUMENT_REMOVED:case u.DELETE_SUCCESS:return Pe()(e,[n,"data",r.meta.doc]),e;default:return t}}))},composite:function(t){return t}}),Co=function(){for(var t=arguments.length,r=Array(t),e=0;e<t;e++)r[e]=arguments[e];var n="function"!=typeof r[0]&&r.shift(),o=r;if(void 0===n)throw new TypeError("The initial state may not be undefined. If you do not want to set a value for this reducer, you can use null instead of undefined.");return function(t,r){for(var e=arguments.length,i=Array(e>2?e-2:0),a=2;a<e;a++)i[a-2]=arguments[a];var u=void 0===t,c=void 0===r;return u&&c&&n?n:o.reduce((function(t,e,n){if(void 0===e)throw new TypeError("An undefined reducer was passed in at index "+n);return e.apply(void 0,[t,r].concat(i))}),u&&!c&&n?n:t)}}(Io,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return Pn(t,(function(e){switch(r.type){case u.DOCUMENT_MODIFIED:case u.DOCUMENT_ADDED:case u.DOCUMENT_REMOVED:case u.LISTENER_RESPONSE:case u.UNSET_LISTENER:var n=Bn()(!!t.queries&&Object.values(t.queries)||[],(function(t){return t.storeAs||t.collection}));return Object.keys(n).forEach((function(t){var r={};n[t].forEach((function(t){return Fn()(r,W()(t,"data",{}))})),k()(e,["composite",t],r)})),e;default:return t}}))}));function Uo(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function Lo(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?Uo(Object(e),!0).forEach((function(r){i(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Uo(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}var Mo="CALL_FIRESTORE",No={get:[u.GET_REQUEST,u.GET_SUCCESS,u.GET_FAILURE]};function ko(t){return function(r){return function(e){return function(n){var o=n.type===Mo?n:void 0;if(void 0===o)return e(n);var i=o.method;if("function"==typeof i&&(i=i(r.getState())),"string"!=typeof i)throw new Error("Specify a method.");var a=o.args,u=No[i];if(!Array.isArray(u)||3!==u.length)throw new Error("Expected an array of three action types.");if(!u.every((function(t){return"string"==typeof t})))throw new Error("Expected action types to be strings.");var c=E(u,3),f=c[0],s=c[1],l=c[2];return e({type:f}),function(t,r){var e=r.method,n=r.modelArgs,o=r.methodArgs;if(Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]),!t||!t.firestore)throw new Error("firestore is not a Firebase namespace");return o?t.firestore()[e].apply(t,o):t.firestore()[e]}(t,{method:i}).then((function(t){return e({response:t,method:i,args:a,type:s})})).catch((function(t){return e((r={type:l,error:t.message||t||"Something bad happened"},delete(o=Lo(Lo({},n),r))[Mo],o));var r,o}))}}}}var Fo="2.0.2",Wo=function(t,r){return new Promise((function(e,n){t.cache=Co(t,{type:u.MUTATE_START,payload:{data:r},_promise:{resolve:e,reject:n}}).cache}))},Bo={version:Fo,reducer:Co,firestoreReducer:Co,enhancer:yr,reduxFirestore:yr,createFirestoreInstance:lr,actions:t,getFirestore:pr,getSnapshotByObject:ot,constants:s,actionTypes:u,middleware:ko,CALL_FIRESTORE:Mo,mockMutate:Wo}}(),o}()}));