text: "use strict";(self.webpackChunkviolencia_policial=self.webpackChunkviolencia_policial||[]).push([[794],{4494:function(e,n,t){t.d(n,{zt:function(){return p},$j:function(){return U}});var r=t(7294),o=(t(5697),r.createContext(null)),u=function(e){e()},i=function(){return u},a={notify:function(){}},s=function(){function e(e,n){this.store=e,this.parentSub=n,this.unsubscribe=null,this.listeners=a,this.handleChangeWrapper=this.handleChangeWrapper.bind(this)}var n=e.prototype;return n.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},n.notifyNestedSubs=function(){this.listeners.notify()},n.handleChangeWrapper=function(){this.onStateChange&&this.onStateChange()},n.isSubscribed=function(){return Boolean(this.unsubscribe)},n.trySubscribe=function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.handleChangeWrapper):this.store.subscribe(this.handleChangeWrapper),this.listeners=function(){var e=i(),n=null,t=null;return{clear:function(){n=null,t=null},notify:function(){e((function(){for(var e=n;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],t=n;t;)e.push(t),t=t.next;return e},subscribe:function(e){var r=!0,o=t={callback:e,next:null,prev:t};return o.prev?o.prev.next=o:n=o,function(){r&&null!==n&&(r=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:n=o.next)}}}}())},n.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=a)},e}(),c="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect,p=function(e){var n=e.store,t=e.context,u=e.children,i=(0,r.useMemo)((function(){var e=new s(n);return e.onStateChange=e.notifyNestedSubs,{store:n,subscription:e}}),[n]),a=(0,r.useMemo)((function(){return n.getState()}),[n]);c((function(){var e=i.subscription;return e.trySubscribe(),a!==n.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[i,a]);var p=t||o;return r.createElement(p.Provider,{value:i},u)},f=t(7462),d=t(3366),l=t(8679),v=t.n(l),h=t(9864),m=[],b=[null,null];function y(e,n){var t=e[1];return[n.payload,t+1]}function P(e,n,t){c((function(){return e.apply(void 0,n)}),t)}function S(e,n,t,r,o,u,i){e.current=r,n.current=o,t.current=!1,u.current&&(u.current=null,i())}function g(e,n,t,r,o,u,i,a,s,c){if(e){var p=!1,f=null,d=function(){if(!p){var e,t,d=n.getState();try{e=r(d,o.current)}catch(e){t=e,f=e}t||(f=null),e===u.current?i.current||s():(u.current=e,a.current=e,i.current=!0,c({type:"STORE_UPDATED",payload:{error:t}}))}};return t.onStateChange=d,t.trySubscribe(),d(),function(){if(p=!0,t.tryUnsubscribe(),t.onStateChange=null,f)throw f}}}var w=function(){return[null,0]};function C(e,n){void 0===n&&(n={});var t=n,u=t.getDisplayName,i=void 0===u?function(e){return"ConnectAdvanced("+e+")"}:u,a=t.methodName,c=void 0===a?"connectAdvanced":a,p=t.renderCountProp,l=void 0===p?void 0:p,C=t.shouldHandleStateChanges,O=void 0===C||C,E=t.storeKey,M=void 0===E?"store":E,N=(t.withRef,t.forwardRef),x=void 0!==N&&N,R=t.context,T=void 0===R?o:R,q=(0,d.Z)(t,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"]),D=T;return function(n){var t=n.displayName||n.name||"Component",o=i(t),u=(0,f.Z)({},q,{getDisplayName:i,methodName:c,renderCountProp:l,shouldHandleStateChanges:O,storeKey:M,displayName:o,wrappedComponentName:t,WrappedComponent:n}),a=q.pure,p=a?r.useMemo:function(e){return e()};function C(t){var o=(0,r.useMemo)((function(){var e=t.reactReduxForwardedRef,n=(0,d.Z)(t,["reactReduxForwardedRef"]);return[t.context,e,n]}),[t]),i=o[0],a=o[1],c=o[2],l=(0,r.useMemo)((function(){return i&&i.Consumer&&(0,h.isContextConsumer)(r.createElement(i.Consumer,null))?i:D}),[i,D]),v=(0,r.useContext)(l),C=Boolean(t.store)&&Boolean(t.store.getState)&&Boolean(t.store.dispatch);Boolean(v)&&Boolean(v.store);var E=C?t.store:v.store,M=(0,r.useMemo)((function(){return function(n){return e(n.dispatch,u)}(E)}),[E]),N=(0,r.useMemo)((function(){if(!O)return b;var e=new s(E,C?null:v.subscription),n=e.notifyNestedSubs.bind(e);return[e,n]}),[E,C,v]),x=N[0],R=N[1],T=(0,r.useMemo)((function(){return C?v:(0,f.Z)({},v,{subscription:x})}),[C,v,x]),q=(0,r.useReducer)(y,m,w),Z=q[0][0],k=q[1];if(Z&&Z.error)throw Z.error;var B=(0,r.useRef)(),W=(0,r.useRef)(c),j=(0,r.useRef)(),F=(0,r.useRef)(!1),H=p((function(){return j.current&&c===W.current?j.current:M(E.getState(),c)}),[E,Z,c]);P(S,[W,B,F,c,H,j,R]),P(g,[O,E,x,M,W,B,F,j,R,k],[E,x,M]);var U=(0,r.useMemo)((function(){return r.createElement(n,(0,f.Z)({},H,{ref:a}))}),[a,n,H]);return(0,r.useMemo)((function(){return O?r.createElement(l.Provider,{value:T},U):U}),[l,U,T])}var E=a?r.memo(C):C;if(E.WrappedComponent=n,E.displayName=C.displayName=o,x){var N=r.forwardRef((function(e,n){return r.createElement(E,(0,f.Z)({},e,{reactReduxForwardedRef:n}))}));return N.displayName=o,N.WrappedComponent=n,v()(N,n)}return v()(E,n)}}function O(e,n){return e===n?0!==e||0!==n||1/e==1/n:e!=e&&n!=n}function E(e,n){if(O(e,n))return!0;if("object"!=typeof e||null===e||"object"!=typeof n||null===n)return!1;var t=Object.keys(e),r=Object.keys(n);if(t.length!==r.length)return!1;for(var o=0;o<t.length;o++)if(!Object.prototype.hasOwnProperty.call(n,t[o])||!O(e[t[o]],n[t[o]]))return!1;return!0}function M(e){return function(n,t){var r=e(n,t);function o(){return r}return o.dependsOnOwnProps=!1,o}}function N(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function x(e,n){return function(n,t){t.displayName;var r=function(e,n){return r.dependsOnOwnProps?r.mapToProps(e,n):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(n,t){r.mapToProps=e,r.dependsOnOwnProps=N(e);var o=r(n,t);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=N(o),o=r(n,t)),o},r}}var R=[function(e){return"function"==typeof e?x(e):void 0},function(e){return e?void 0:M((function(e){return{dispatch:e}}))},function(e){return e&&"object"==typeof e?M((function(n){return function(e,n){var t={},r=function(r){var o=e[r];"function"==typeof o&&(t[r]=function(){return n(o.apply(void 0,arguments))})};for(var o in e)r(o);return t}(e,n)})):void 0}],T=[function(e){return"function"==typeof e?x(e):void 0},function(e){return e?void 0:M((function(){return{}}))}];function q(e,n,t){return(0,f.Z)({},t,e,n)}var D=[function(e){return"function"==typeof e?function(e){return function(n,t){t.displayName;var r,o=t.pure,u=t.areMergedPropsEqual,i=!1;return function(n,t,a){var s=e(n,t,a);return i?o&&u(s,r)||(r=s):(i=!0,r=s),r}}}(e):void 0},function(e){return e?void 0:function(){return q}}];function Z(e,n,t,r){return function(o,u){return t(e(o,u),n(r,u),u)}}function k(e,n,t,r,o){var u,i,a,s,c,p=o.areStatesEqual,f=o.areOwnPropsEqual,d=o.areStatePropsEqual,l=!1;return function(o,v){return l?function(o,l){var v,h,m=!f(l,i),b=!p(o,u);return u=o,i=l,m&&b?(a=e(u,i),n.dependsOnOwnProps&&(s=n(r,i)),c=t(a,s,i)):m?(e.dependsOnOwnProps&&(a=e(u,i)),n.dependsOnOwnProps&&(s=n(r,i)),c=t(a,s,i)):b?(v=e(u,i),h=!d(v,a),a=v,h&&(c=t(a,s,i)),c):c}(o,v):(a=e(u=o,i=v),s=n(r,i),c=t(a,s,i),l=!0,c)}}function B(e,n){var t=n.initMapStateToProps,r=n.initMapDispatchToProps,o=n.initMergeProps,u=(0,d.Z)(n,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),i=t(e,u),a=r(e,u),s=o(e,u);return(u.pure?k:Z)(i,a,s,e,u)}function W(e,n,t){for(var r=n.length-1;r>=0;r--){var o=n[r](e);if(o)return o}return function(n,r){throw new Error("Invalid value of type "+typeof e+" for "+t+" argument when connecting component "+r.wrappedComponentName+".")}}function j(e,n){return e===n}function F(e){var n=void 0===e?{}:e,t=n.connectHOC,r=void 0===t?C:t,o=n.mapStateToPropsFactories,u=void 0===o?T:o,i=n.mapDispatchToPropsFactories,a=void 0===i?R:i,s=n.mergePropsFactories,c=void 0===s?D:s,p=n.selectorFactory,l=void 0===p?B:p;return function(e,n,t,o){void 0===o&&(o={});var i=o,s=i.pure,p=void 0===s||s,v=i.areStatesEqual,h=void 0===v?j:v,m=i.areOwnPropsEqual,b=void 0===m?E:m,y=i.areStatePropsEqual,P=void 0===y?E:y,S=i.areMergedPropsEqual,g=void 0===S?E:S,w=(0,d.Z)(i,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),C=W(e,u,"mapStateToProps"),O=W(n,a,"mapDispatchToProps"),M=W(t,c,"mergeProps");return r(l,(0,f.Z)({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:C,initMapDispatchToProps:O,initMergeProps:M,pure:p,areStatesEqual:h,areOwnPropsEqual:b,areStatePropsEqual:P,areMergedPropsEqual:g},w))}}var H,U=F();H=t(3935).unstable_batchedUpdates,u=H}}]);