react-hooks-global-states 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/bundle.js ADDED
@@ -0,0 +1,2 @@
1
+ /*! For license information please see bundle.js.LICENSE.txt */
2
+ !function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("react")):"function"==typeof define&&define.amd?define(["react"],n):"object"==typeof exports?exports["react-hooks-global-states"]=n(require("react")):t["react-hooks-global-states"]=n(t.react)}(this,(t=>(()=>{var n={852:(t,n,r)=>{"use strict";function e(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var e,u,o,i,a=[],c=!0,f=!1;try{if(o=(r=r.call(t)).next,0===n){if(Object(r)!==r)return;c=!1}else for(;!(c=(e=o.call(r)).done)&&(a.push(e.value),a.length!==n);c=!0);}catch(t){f=!0,u=t}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(f)throw u}}return a}}(t,n)||function(t,n){if(t){if("string"==typeof t)return u(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(t,n):void 0}}(t,n)||function(){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 u(t,n){(null==n||n>t.length)&&(n=t.length);for(var r=0,e=new Array(n);r<n;r++)e[r]=t[r];return e}Object.defineProperty(n,"__esModule",{value:!0}),n.combineAsyncGetters=n.combineAsyncGettersEmitter=void 0;var o=r(608),i=r(486),a=r(156),c=r(774);n.combineAsyncGettersEmitter=function(t){for(var n,r,e,u=arguments.length,a=new Array(u>1?u-1:0),f=1;f<u;f++)a[f-1]=arguments[f];var l=a,s=new Map(l.map((function(t,n){return[n,t()]}))),h=t.selector(Array.from(s.values())),p=void 0!==(null===(n=null==t?void 0:t.config)||void 0===n?void 0:n.isEqual)?null===(r=null==t?void 0:t.config)||void 0===r?void 0:r.isEqual:o.shallowCompare,v=new Set,y=(0,i.debounce)((function(){var n=t.selector(Array.from(s.values()));(null==p?void 0:p(h,n))||(h=n,v.forEach((function(t){return t()})))}),null===(e=null==t?void 0:t.config)||void 0===e?void 0:e.delay),g=l.map((function(t,n){return t((function(t){t((function(t){s.set(n,t),y()}))}))})),d=function(t,n,r){var e,u,a="function"==typeof n,c=a?t:null,f=a?n:t,l=a?r:n,s=Object.assign({delay:0,isEqual:o.shallowCompare},null!=l?l:{}),p=null!==(e=null==c?void 0:c(h))&&void 0!==e?e:h;s.skipFirst||f(p);var y=(0,i.debounce)((function(){var t,n,r=null!==(t=null==c?void 0:c(h))&&void 0!==t?t:h;(null===(n=s.isEqual)||void 0===n?void 0:n.call(s,p,r))||(p=r,f(r))}),null!==(u=s.delay)&&void 0!==u?u:0);return v.add(y),function(){v.delete(y)}};return[d,function(t){if(!t)return h;var n=[];return t((function(){n.push(d.apply(void 0,arguments))})),n.length||(0,c.throwNoSubscribersWereAdded)(),function(){n.forEach((function(t){t(),v.delete(t)}))}},function(){g.forEach((function(t){return t()}))}]},n.combineAsyncGetters=function(t){for(var r=arguments.length,u=new Array(r>1?r-1:0),c=1;c<r;c++)u[c-1]=arguments[c];var f=e(n.combineAsyncGettersEmitter.apply(void 0,[t].concat(u)),3),l=f[0],s=f[1],h=f[2];return[function(t,n){var r=e((0,a.useState)((function(){var n=s();return t?t(n):n})),2),u=r[0],c=r[1];return(0,a.useEffect)((function(){var r,e=Object.assign({delay:0,isEqual:o.shallowCompare},null!=n?n:{}),u=void 0!==e.isEqual?e.isEqual:o.shallowCompare,a=l((function(n){return t?t(n):n}),(0,i.debounce)((function(n){var r=t?t(n):n;(null==u?void 0:u(n,r))||c(r)}),null!==(r=e.delay)&&void 0!==r?r:0));return function(){a()}}),[]),[u,null,null]},s,h]}},853:(t,n,r)=>{"use strict";function e(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var e,u,o,i,a=[],c=!0,f=!1;try{if(o=(r=r.call(t)).next,0===n){if(Object(r)!==r)return;c=!1}else for(;!(c=(e=o.call(r)).done)&&(a.push(e.value),a.length!==n);c=!0);}catch(t){f=!0,u=t}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(f)throw u}}return a}}(t,n)||function(t,n){if(t){if("string"==typeof t)return u(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(t,n):void 0}}(t,n)||function(){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 u(t,n){(null==n||n>t.length)&&(n=t.length);for(var r=0,e=new Array(n);r<n;r++)e[r]=t[r];return e}var o=function(t,n){var r={};for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&n.indexOf(e)<0&&(r[e]=t[e]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var u=0;for(e=Object.getOwnPropertySymbols(t);u<e.length;u++)n.indexOf(e[u])<0&&Object.prototype.propertyIsEnumerable.call(t,e[u])&&(r[e[u]]=t[e[u]])}return r};Object.defineProperty(n,"__esModule",{value:!0}),n.createDerivateEmitter=n.createDerivate=n.createCustomGlobalStateWithDecoupledFuncs=n.createGlobalState=n.createGlobalStateWithDecoupledFuncs=void 0;var i=r(774);n.createGlobalStateWithDecoupledFuncs=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.actions,u=o(n,["actions"]),a=new i.GlobalStore(t,u,r),c=e(a.getHookDecoupled(),2),f=c[0],l=c[1];return[a.getHook(),f,l]},n.createGlobalState=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e((0,n.createGlobalStateWithDecoupledFuncs)(t,r),1)[0]},n.createCustomGlobalStateWithDecoupledFuncs=function(t){var r=t.onInitialize,e=t.onChange;return function(t){var u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{config:null},i=u.config,a=u.onInit,c=u.onStateChanged,f=o(u,["config","onInit","onStateChanged"]);return(0,n.createGlobalStateWithDecoupledFuncs)(t,Object.assign({onInit:function(t){r(t,i),null==a||a(t)},onStateChanged:function(t){e(t,i),null==c||c(t)}},f))}},n.createDerivate=function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function(e){var u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t((function(t){var r=n(t);return e?e(r):r}),e&&u?u:r)}},n.createDerivateEmitter=function(t,r){var e=t._father_emitter;if(e){var u=function(t){var n=e.selector(t);return r(n)},o=(0,n.createDerivateEmitter)(e.getter,u);return o._father_emitter={getter:e.getter,selector:u},o}var i=function(n,e){var u="function"==typeof e,o=u?n:null,i=u?e:n,a=u?arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}:e;return t((function(t){t((function(t){var n,e=r(t);return null!==(n=null==o?void 0:o(e))&&void 0!==n?n:e}),i,a)}))};return i._father_emitter={getter:t,selector:r},i}},774:(t,n,r)=>{"use strict";function e(t){return e="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},e(t)}function u(t,n){(null==n||n>t.length)&&(n=t.length);for(var r=0,e=new Array(n);r<n;r++)e[r]=t[r];return e}function o(){o=function(){return t};var t={},n=Object.prototype,r=n.hasOwnProperty,u=Object.defineProperty||function(t,n,r){t[n]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",f=i.toStringTag||"@@toStringTag";function l(t,n,r){return Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{l({},"")}catch(t){l=function(t,n,r){return t[n]=r}}function s(t,n,r,e){var o=n&&n.prototype instanceof v?n:v,i=Object.create(o.prototype),a=new E(e||[]);return u(i,"_invoke",{value:j(t,r,a)}),i}function h(t,n,r){try{return{type:"normal",arg:t.call(n,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var p={};function v(){}function y(){}function g(){}var d={};l(d,a,(function(){return this}));var _=Object.getPrototypeOf,b=_&&_(_(k([])));b&&b!==n&&r.call(b,a)&&(d=b);var m=g.prototype=v.prototype=Object.create(d);function w(t){["next","throw","return"].forEach((function(n){l(t,n,(function(t){return this._invoke(n,t)}))}))}function S(t,n){function o(u,i,a,c){var f=h(t[u],t,i);if("throw"!==f.type){var l=f.arg,s=l.value;return s&&"object"==e(s)&&r.call(s,"__await")?n.resolve(s.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):n.resolve(s).then((function(t){l.value=t,a(l)}),(function(t){return o("throw",t,a,c)}))}c(f.arg)}var i;u(this,"_invoke",{value:function(t,r){function e(){return new n((function(n,e){o(t,r,n,e)}))}return i=i?i.then(e,e):e()}})}function j(t,n,r){var e="suspendedStart";return function(u,o){if("executing"===e)throw new Error("Generator is already running");if("completed"===e){if("throw"===u)throw o;return{value:void 0,done:!0}}for(r.method=u,r.arg=o;;){var i=r.delegate;if(i){var a=x(i,r);if(a){if(a===p)continue;return a}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===e)throw e="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);e="executing";var c=h(t,n,r);if("normal"===c.type){if(e=r.done?"completed":"suspendedYield",c.arg===p)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(e="completed",r.method="throw",r.arg=c.arg)}}}function x(t,n){var r=n.method,e=t.iterator[r];if(void 0===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=void 0,x(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),p;var u=h(e,t.iterator,n.arg);if("throw"===u.type)return n.method="throw",n.arg=u.arg,n.delegate=null,p;var o=u.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,p):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,p)}function O(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function A(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function k(t){if(t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var e=-1,u=function n(){for(;++e<t.length;)if(r.call(t,e))return n.value=t[e],n.done=!1,n;return n.value=void 0,n.done=!0,n};return u.next=u}}return{next:I}}function I(){return{value:void 0,done:!0}}return y.prototype=g,u(m,"constructor",{value:g,configurable:!0}),u(g,"constructor",{value:y,configurable:!0}),y.displayName=l(g,f,"GeneratorFunction"),t.isGeneratorFunction=function(t){var n="function"==typeof t&&t.constructor;return!!n&&(n===y||"GeneratorFunction"===(n.displayName||n.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,l(t,f,"GeneratorFunction")),t.prototype=Object.create(m),t},t.awrap=function(t){return{__await:t}},w(S.prototype),l(S.prototype,c,(function(){return this})),t.AsyncIterator=S,t.async=function(n,r,e,u,o){void 0===o&&(o=Promise);var i=new S(s(n,r,e,u),o);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},w(m),l(m,f,"Generator"),l(m,a,(function(){return this})),l(m,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var n=Object(t),r=[];for(var e in n)r.push(e);return r.reverse(),function t(){for(;r.length;){var e=r.pop();if(e in n)return t.value=e,t.done=!1,t}return t.done=!0,t}},t.values=k,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(A),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function e(r,e){return i.type="throw",i.arg=t,n.next=r,e&&(n.method="next",n.arg=void 0),!!e}for(var u=this.tryEntries.length-1;u>=0;--u){var o=this.tryEntries[u],i=o.completion;if("root"===o.tryLoc)return e("end");if(o.tryLoc<=this.prev){var a=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(a&&c){if(this.prev<o.catchLoc)return e(o.catchLoc,!0);if(this.prev<o.finallyLoc)return e(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return e(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return e(o.finallyLoc)}}}},abrupt:function(t,n){for(var e=this.tryEntries.length-1;e>=0;--e){var u=this.tryEntries[e];if(u.tryLoc<=this.prev&&r.call(u,"finallyLoc")&&this.prev<u.finallyLoc){var o=u;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=n&&n<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=n,o?(this.method="next",this.next=o.finallyLoc,p):this.complete(i)},complete:function(t,n){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&n&&(this.next=n),p},finish:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),A(r),p}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc===t){var e=r.completion;if("throw"===e.type){var u=e.arg;A(r)}return u}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:k(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},t}function i(t,n){for(var r=0;r<n.length;r++){var e=n[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(t,a(e.key),e)}}function a(t){var n=function(t,n){if("object"!==e(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var u=r.call(t,"string");if("object"!==e(u))return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===e(n)?n:String(n)}Object.defineProperty(n,"__esModule",{value:!0}),n.GlobalStore=n.throwNoSubscribersWereAdded=void 0;var c=r(608),f=r(156);n.throwNoSubscribersWereAdded=function(){throw new Error("No new subscribers were added, please make sure to add at least one subscriber with the subscribe method")};var l=function(){function t(r){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t),this.actionsConfig=l,this.subscribers=new Map,this.actions=null,this.config={metadata:null},this.onInit=null,this.onStateChanged=null,this.onSubscribed=null,this.computePreventStateChange=null,this.initialize=function(){return t=e,n=void 0,r=void 0,u=o().mark((function t(){var n,r,e;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.actionsConfig&&(this.actions=this.getStoreActionsMap()),n=this.onInit,r=this.config.onInit,n||r){t.next=5;break}return t.abrupt("return");case 5:e=this.getConfigCallbackParam(),null==n||n(e),null==r||r(e);case 8:case"end":return t.stop()}}),t,this)})),new(r||(r=Promise))((function(e,o){function i(t){try{c(u.next(t))}catch(t){o(t)}}function a(t){try{c(u.throw(t))}catch(t){o(t)}}function c(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r((function(t){t(n)}))).then(i,a)}c((u=u.apply(t,n||[])).next())}));var t,n,r,u},this.setState=function(t){var n=t.state,r=t.forceUpdate;e.stateWrapper={state:n},Array.from(e.subscribers.values()).forEach((function(t){!function(t){var e=t.selector,u=t.callback,o=t.currentState,i=t.config,a=(null==i?void 0:i.isEqual)||null===(null==i?void 0:i.isEqual)?null==i?void 0:i.isEqual:e?c.shallowCompare:null,f=e?e(n):n;!r&&(null==a?void 0:a(o,f))||u({state:f})}(t)}))},this.setMetadata=function(t){var n,r,u="function"==typeof t?t(null!==(n=e.config.metadata)&&void 0!==n?n:null):t;e.config=Object.assign(Object.assign({},null!==(r=e.config)&&void 0!==r?r:{}),{metadata:u})},this.getMetadata=function(){var t;return null!==(t=e.config.metadata)&&void 0!==t?t:null},this.createChangesSubscriber=function(t){var n=t.callback,r=t.selector,u=t.config,o=r?r(e.stateWrapper.state):e.stateWrapper.state,i={state:o};return(null==u?void 0:u.skipFirst)||n(o),{stateWrapper:i,subscriptionCallback:function(t){var r=t.state;i.state=r,n(r)}}},this.getState=function(t){if(!t)return e.stateWrapper.state;var r=[];return t((function(t,n,u){var o="function"==typeof n,i=o?t:null,a=o?n:t,f=o?u:n,l=e.createChangesSubscriber({selector:i,callback:a,config:f}),s=l.subscriptionCallback,h=l.stateWrapper,p=(0,c.uniqueId)();e.updateSubscription({subscriptionId:p,selector:i,config:f,stateWrapper:h,callback:s}),r.push(p)})),r.length||(0,n.throwNoSubscribersWereAdded)(),function(){r.forEach((function(t){e.subscribers.delete(t)}))}},this.getConfigCallbackParam=function(){var t=e.setMetadata,n=e.getMetadata,r=e.getState,u=e.actions;return{setMetadata:t,getMetadata:n,getState:r,setState:e.setStateWrapper,actions:u}},this.updateSubscription=function(t){var n=t.subscriptionId,r=t.callback,u=t.selector,o=t.config,i=void 0===o?{}:o,a=t.stateWrapper.state,c=e.subscribers.get(n);if(c)return c.currentState=a,c;var f={subscriptionId:n,selector:u,config:i,currentState:a,callback:r};return e.subscribers.set(n,f),f},this.executeOnSubscribed=function(){var t=e.onSubscribed,n=e.config.onSubscribed;if(t||n){var r=e.getConfigCallbackParam();null==t||t(r),null==n||n(r)}},this.getHook=function(){return function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=(0,f.useRef)(null);(0,f.useEffect)((function(){return function(){e.subscribers.delete(o.current)}}),[]);var i,a,l=(i=(0,f.useState)((function(){return t?{state:t(e.stateWrapper.state)}:e.stateWrapper})),a=2,function(t){if(Array.isArray(t))return t}(i)||function(t,n){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var e,u,o,i,a=[],c=!0,f=!1;try{if(o=(r=r.call(t)).next,0===n){if(Object(r)!==r)return;c=!1}else for(;!(c=(e=o.call(r)).done)&&(a.push(e.value),a.length!==n);c=!0);}catch(t){f=!0,u=t}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(f)throw u}}return a}}(i,a)||function(t,n){if(t){if("string"==typeof t)return u(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(t,n):void 0}}(i,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=l[0],h=l[1];return(0,f.useEffect)((function(){null===o.current&&(o.current=(0,c.uniqueId)())}),[]),(0,f.useEffect)((function(){var n=o.current;if(null!==n){var u=!e.subscribers.has(n);e.updateSubscription({subscriptionId:n,stateWrapper:s,selector:t,config:r,callback:h}),u&&e.executeOnSubscribed()}}),[s]),[s.state,e.getStateOrchestrator(),null!==(n=e.config.metadata)&&void 0!==n?n:null]}},this.getHookDecoupled=function(){var t=e.getStateOrchestrator(),n=e.getMetadata;return[e.getState,t,n]},this.getStateOrchestrator=function(){return e.actions?e.actions:e.setStateWrapper},this.hasStateCallbacks=function(){var t=e.computePreventStateChange,n=e.onStateChanged,r=e.config,u=r.computePreventStateChange,o=r.onStateChanged;return!!(t||u||n||o)},this.setStateWrapper=function(t){var n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).forceUpdate,r="function"==typeof t,u=e.stateWrapper.state,o=r?t(u):t;if(n||!Object.is(e.stateWrapper.state,o)){var i=e.setMetadata,a=e.getMetadata,c=e.getState,f=e.actions,l={setMetadata:i,getMetadata:a,setState:e.setState,getState:c,actions:f,previousState:u,state:o},s=e.computePreventStateChange,h=e.config.computePreventStateChange;if((s||h)&&((null==s?void 0:s(l))||(null==h?void 0:h(l))))return;e.setState({forceUpdate:n,state:o});var p=e.onStateChanged,v=e.config.onStateChanged;(p||v)&&(null==p||p(l),null==v||v(l))}},this.getStoreActionsMap=function(){if(!e.actionsConfig)return null;var t=e.actionsConfig,n=e.setMetadata,r=e.setStateWrapper,u=e.getState,o=e.getMetadata,i=Object.keys(t).reduce((function(e,c){var f,l,s;return Object.assign(e,(f={},s=function(){for(var e=t[c],a=arguments.length,f=new Array(a),l=0;l<a;l++)f[l]=arguments[l];var s=e.apply(i,f);return"function"!=typeof s&&function(t){throw new Error("[WRONG CONFIGURATION!]: Every key inside the storeActionsConfig must be a higher order function that returns a function \n[".concat(t,"]: key is not a valid function, try something like this: \n{\n\n ").concat(t,": (param) => ({ setState, getState, setMetadata, getMetadata, actions }) => {\n\n setState((state) => ({ ...state, ...param }))\n\n }\n\n}\n"))}(c),s.call(i,{setState:r,getState:u,setMetadata:n,getMetadata:o,actions:i})},(l=a(l=c))in f?Object.defineProperty(f,l,{value:s,enumerable:!0,configurable:!0,writable:!0}):f[l]=s,f)),e}),{});return i},this.stateWrapper={state:r},this.config=Object.assign({metadata:null},null!=i?i:{}),this.constructor!==t||this.initialize()}var r,e;return r=t,(e=[{key:"state",get:function(){return this.stateWrapper.state}}])&&i(r.prototype,e),Object.defineProperty(r,"prototype",{writable:!1}),t}();n.GlobalStore=l},530:(t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0})},608:(t,n,r)=>{"use strict";function e(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var e,u,o,i,a=[],c=!0,f=!1;try{if(o=(r=r.call(t)).next,0===n){if(Object(r)!==r)return;c=!1}else for(;!(c=(e=o.call(r)).done)&&(a.push(e.value),a.length!==n);c=!0);}catch(t){f=!0,u=t}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(f)throw u}}return a}}(t,n)||o(t,n)||function(){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 u(t,n){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=o(t))||n&&t&&"number"==typeof t.length){r&&(t=r);var e=0,u=function(){};return{s:u,n:function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}},e:function(t){throw t},f:u}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){c=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw i}}}}function o(t,n){if(t){if("string"==typeof t)return i(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(t,n):void 0}}function i(t,n){(null==n||n>t.length)&&(n=t.length);for(var r=0,e=new Array(n);r<n;r++)e[r]=t[r];return e}function a(t){return a="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},a(t)}Object.defineProperty(n,"__esModule",{value:!0}),n.uniqueId=n.debounce=n.shallowCompare=void 0;var c=r(684);n.shallowCompare=function(t,n){if(t===n)return!0;var r=a(t),o=a(n);if(r!==o)return!1;if((0,c.isNil)(t)||(0,c.isNil)(n)||(0,c.isPrimitive)(t)&&(0,c.isPrimitive)(n)||(0,c.isDate)(t)&&(0,c.isDate)(n)||"function"===r&&"function"===o)return t===n;if(Array.isArray(t)){var i=t,f=n;if(i.length!==f.length)return!1;for(var l=0;l<i.length;l++)if(i[l]!==f[l])return!1}if(t instanceof Map){var s=t,h=n;if(s.size!==h.size)return!1;var p,v=u(s);try{for(v.s();!(p=v.n()).done;){var y=e(p.value,2),g=y[0];if(y[1]!==h.get(g))return!1}}catch(t){v.e(t)}finally{v.f()}}if(t instanceof Set){var d=t,_=n;if(d.size!==_.size)return!1;var b,m=u(d);try{for(m.s();!(b=m.n()).done;){var w=b.value;if(!_.has(w))return!1}}catch(t){m.e(t)}finally{m.f()}}var S=Object.keys(t),j=Object.keys(n);if(S.length!==j.length)return!1;for(var x=0,O=S;x<O.length;x++){var A=O[x];if(t[A]!==n[A])return!1}return!0},n.debounce=function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(){for(var e=arguments.length,u=new Array(e),o=0;o<e;o++)u[o]=arguments[o];return n&&clearTimeout(n),n=setTimeout((function(){t.apply(void 0,u)}),r),t.apply(void 0,u)}},n.uniqueId=function(){return Date.now().toString(36)+Math.random().toString(36).substr(2,5)}},195:(t,n,r)=>{"use strict";function e(t){return e="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},e(t)}function u(t,n){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},u(t,n)}function o(t){return o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},o(t)}Object.defineProperty(n,"__esModule",{value:!0}),n.GlobalStoreAbstract=void 0;var i=function(t){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&u(t,n)}(c,t);var n,r,i,a=(r=c,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,n=o(r);if(i){var u=o(this).constructor;t=Reflect.construct(n,arguments,u)}else t=n.apply(this,arguments);return function(t,n){if(n&&("object"===e(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function c(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,c),(n=a.call(this,t,r,e)).onInit=function(t){n.onInitialize(t)},n.onStateChanged=function(t){n.onChange(t)},n}return n=c,Object.defineProperty(n,"prototype",{writable:!1}),n}(r(774).GlobalStore);n.GlobalStoreAbstract=i},991:(t,n,r)=>{"use strict";var e=Object.create?function(t,n,r,e){void 0===e&&(e=r);var u=Object.getOwnPropertyDescriptor(n,r);u&&!("get"in u?!n.__esModule:u.writable||u.configurable)||(u={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(t,e,u)}:function(t,n,r,e){void 0===e&&(e=r),t[e]=n[r]},u=function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};Object.defineProperty(n,"__esModule",{value:!0}),u(r(684),n),u(r(530),n),u(r(774),n),u(r(195),n),u(r(853),n),u(r(608),n),u(r(852),n)},684:function(t){t.exports=(()=>{"use strict";var t={991:(t,n,r)=>{var e=Object.create?function(t,n,r,e){void 0===e&&(e=r);var u=Object.getOwnPropertyDescriptor(n,r);u&&!("get"in u?!n.__esModule:u.writable||u.configurable)||(u={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(t,e,u)}:function(t,n,r,e){void 0===e&&(e=r),t[e]=n[r]};Object.defineProperty(n,"__esModule",{value:!0}),function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)}(r(729),n)},729:(t,n)=>{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,n,e){return(n=function(t){var n=function(t,n){if("object"!==r(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var u=e.call(t,"string");if("object"!==r(u))return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===r(n)?n:String(n)}(n))in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function u(t,n){if(t){if("string"==typeof t)return o(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(t,n):void 0}}function o(t,n){(null==n||n>t.length)&&(n=t.length);for(var r=0,e=new Array(n);r<n;r++)e[r]=t[r];return e}Object.defineProperty(n,"__esModule",{value:!0}),n.formatToStore=n.formatFromStore=n.isPrimitive=n.isFunction=n.isRegex=n.isDate=n.isString=n.isBoolean=n.isNumber=n.isNil=n.clone=void 0,n.clone=function(t){var r,i=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).shallow;if((0,n.isPrimitive)(t)||(0,n.isDate)(t))return t;if(Array.isArray(t))return i?function(t){if(Array.isArray(t))return o(t)}(r=t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(r)||u(r)||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.")}():t.map((function(t){return(0,n.clone)(t)}));if(t instanceof Map){var a=Array.from(t.entries());return i?new Map(a):new Map(a.map((function(t){return(0,n.clone)(t)})))}if(t instanceof Set){var c=Array.from(t.values());return i?new Set(c):new Set(c.map((function(t){return(0,n.clone)(t)})))}return t instanceof RegExp?new RegExp(t.toString()):(0,n.isFunction)(t)?i?t:Object.create(t):i?Object.assign({},t):t instanceof Error?new Error(t.message):Object.keys(t).reduce((function(r,u){var o=t[u];return Object.assign(Object.assign({},r),e({},u,(0,n.clone)(o)))}),{})},n.isNil=function(t){return null==t},n.isNumber=function(t){return"number"==typeof t},n.isBoolean=function(t){return"boolean"==typeof t},n.isString=function(t){return"string"==typeof t},n.isDate=function(t){return t instanceof Date},n.isRegex=function(t){return t instanceof RegExp},n.isFunction=function(t){return"function"==typeof t||t instanceof Function},n.isPrimitive=function(t){return(0,n.isNil)(t)||(0,n.isNumber)(t)||(0,n.isBoolean)(t)||(0,n.isString)(t)||"symbol"===r(t)},n.formatFromStore=function(t){return function(t){var r,o;if((0,n.isPrimitive)(t))return t;if("date"===(null==t?void 0:t.$t))return new Date(t.$v);if("map"===(null==t?void 0:t.$t)){var i=(null!==(r=t.$v)&&void 0!==r?r:[]).map((function(t){var r,e=(2,function(t){if(Array.isArray(t))return t}(r=t)||function(t,n){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var e,u,o,i,a=[],c=!0,f=!1;try{for(o=(r=r.call(t)).next,0;!(c=(e=o.call(r)).done)&&(a.push(e.value),2!==a.length);c=!0);}catch(t){f=!0,u=t}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(f)throw u}}return a}}(r)||u(r,2)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=e[0],i=e[1];return[o,(0,n.formatFromStore)(i)]}));return new Map(i)}if("set"===(null==t?void 0:t.$t)){var a=null!==(o=t.$v)&&void 0!==o?o:[].map((function(t){return(0,n.formatFromStore)(t)}));return new Set(a)}return"regex"===(null==t?void 0:t.$t)?new RegExp(t.$v):"error"===(null==t?void 0:t.$t)?new Error(t.$v):Array.isArray(t)?t.map((function(t){return(0,n.formatFromStore)(t)})):"function"===(null==t?void 0:t.$t)?Function("(".concat(t.$v,")(...arguments)")):Object.keys(t).reduce((function(r,u){var o=t[u];return Object.assign(Object.assign({},r),e({},u,(0,n.formatFromStore)(o)))}),{})}((arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).jsonParse?JSON.parse(t):(0,n.clone)(t))},n.formatToStore=function(t){var u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{stringify:!1},o=u.stringify,i=u.validator,a=u.excludeTypes,c=u.excludeKeys,f=new Set(null!=a?a:[]),l=new Set(null!=c?c:[]),s=f.size||l.size,h=null!=i?i:function(t){var n=t.key,e=t.value;if(!s)return!0;var u=l.has(n),o=f.has(r(e));return!u&&!o},p=function t(r){if((0,n.isPrimitive)(r))return r;if(Array.isArray(r))return r.map((function(n){return t(n)}));if(r instanceof Map)return{$t:"map",$v:Array.from(r.entries()).map((function(n){return t(n)}))};if(r instanceof Set)return{$t:"set",$v:Array.from(r.values()).map((function(n){return t(n)}))};if((0,n.isDate)(r))return{$t:"date",$v:r.toISOString()};if((0,n.isRegex)(r))return{$t:"regex",$v:r.toString()};if((0,n.isFunction)(r)){var u;try{u={$t:"function",$v:r.toString()}}catch(t){u={$t:"error",$v:"Error: Could not serialize function"}}return u}return r instanceof Error?{$t:"error",$v:r.message}:Object.keys(r).reduce((function(n,u){var o=r[u],i=t(o);return h({obj:r,key:u,value:i})?Object.assign(Object.assign({},n),e({},u,t(o))):n}),{})}((0,n.clone)(t));return o?JSON.stringify(p):p}}},n={};return function r(e){var u=n[e];if(void 0!==u)return u.exports;var o=n[e]={exports:{}};return t[e](o,o.exports,r),o.exports}(991)})()},486:function(t,n,r){var e;t=r.nmd(t),function(){var u,o="Expected a function",i="__lodash_hash_undefined__",a="__lodash_placeholder__",c=32,f=128,l=1/0,s=9007199254740991,h=NaN,p=4294967295,v=[["ary",f],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",c],["partialRight",64],["rearg",256]],y="[object Arguments]",g="[object Array]",d="[object Boolean]",_="[object Date]",b="[object Error]",m="[object Function]",w="[object GeneratorFunction]",S="[object Map]",j="[object Number]",x="[object Object]",O="[object Promise]",A="[object RegExp]",E="[object Set]",k="[object String]",I="[object Symbol]",C="[object WeakMap]",P="[object ArrayBuffer]",R="[object DataView]",W="[object Float32Array]",L="[object Float64Array]",M="[object Int8Array]",z="[object Int16Array]",$="[object Int32Array]",T="[object Uint8Array]",D="[object Uint8ClampedArray]",F="[object Uint16Array]",N="[object Uint32Array]",U=/\b__p \+= '';/g,B=/\b(__p \+=) '' \+/g,G=/(__e\(.*?\)|\b__t\)) \+\n'';/g,q=/&(?:amp|lt|gt|quot|#39);/g,Z=/[&<>"']/g,K=RegExp(q.source),H=RegExp(Z.source),V=/<%-([\s\S]+?)%>/g,J=/<%([\s\S]+?)%>/g,Y=/<%=([\s\S]+?)%>/g,Q=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,X=/^\w*$/,tt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,nt=/[\\^$.*+?()[\]{}|]/g,rt=RegExp(nt.source),et=/^\s+/,ut=/\s/,ot=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,it=/\{\n\/\* \[wrapped with (.+)\] \*/,at=/,? & /,ct=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ft=/[()=,{}\[\]\/\s]/,lt=/\\(\\)?/g,st=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ht=/\w*$/,pt=/^[-+]0x[0-9a-f]+$/i,vt=/^0b[01]+$/i,yt=/^\[object .+?Constructor\]$/,gt=/^0o[0-7]+$/i,dt=/^(?:0|[1-9]\d*)$/,_t=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,bt=/($^)/,mt=/['\n\r\u2028\u2029\\]/g,wt="\\ud800-\\udfff",St="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",jt="\\u2700-\\u27bf",xt="a-z\\xdf-\\xf6\\xf8-\\xff",Ot="A-Z\\xc0-\\xd6\\xd8-\\xde",At="\\ufe0e\\ufe0f",Et="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",kt="["+wt+"]",It="["+Et+"]",Ct="["+St+"]",Pt="\\d+",Rt="["+jt+"]",Wt="["+xt+"]",Lt="[^"+wt+Et+Pt+jt+xt+Ot+"]",Mt="\\ud83c[\\udffb-\\udfff]",zt="[^"+wt+"]",$t="(?:\\ud83c[\\udde6-\\uddff]){2}",Tt="[\\ud800-\\udbff][\\udc00-\\udfff]",Dt="["+Ot+"]",Ft="\\u200d",Nt="(?:"+Wt+"|"+Lt+")",Ut="(?:"+Dt+"|"+Lt+")",Bt="(?:['’](?:d|ll|m|re|s|t|ve))?",Gt="(?:['’](?:D|LL|M|RE|S|T|VE))?",qt="(?:"+Ct+"|"+Mt+")?",Zt="["+At+"]?",Kt=Zt+qt+"(?:"+Ft+"(?:"+[zt,$t,Tt].join("|")+")"+Zt+qt+")*",Ht="(?:"+[Rt,$t,Tt].join("|")+")"+Kt,Vt="(?:"+[zt+Ct+"?",Ct,$t,Tt,kt].join("|")+")",Jt=RegExp("['’]","g"),Yt=RegExp(Ct,"g"),Qt=RegExp(Mt+"(?="+Mt+")|"+Vt+Kt,"g"),Xt=RegExp([Dt+"?"+Wt+"+"+Bt+"(?="+[It,Dt,"$"].join("|")+")",Ut+"+"+Gt+"(?="+[It,Dt+Nt,"$"].join("|")+")",Dt+"?"+Nt+"+"+Bt,Dt+"+"+Gt,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Pt,Ht].join("|"),"g"),tn=RegExp("["+Ft+wt+St+At+"]"),nn=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,rn=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],en=-1,un={};un[W]=un[L]=un[M]=un[z]=un[$]=un[T]=un[D]=un[F]=un[N]=!0,un[y]=un[g]=un[P]=un[d]=un[R]=un[_]=un[b]=un[m]=un[S]=un[j]=un[x]=un[A]=un[E]=un[k]=un[C]=!1;var on={};on[y]=on[g]=on[P]=on[R]=on[d]=on[_]=on[W]=on[L]=on[M]=on[z]=on[$]=on[S]=on[j]=on[x]=on[A]=on[E]=on[k]=on[I]=on[T]=on[D]=on[F]=on[N]=!0,on[b]=on[m]=on[C]=!1;var an={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},cn=parseFloat,fn=parseInt,ln="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,sn="object"==typeof self&&self&&self.Object===Object&&self,hn=ln||sn||Function("return this")(),pn=n&&!n.nodeType&&n,vn=pn&&t&&!t.nodeType&&t,yn=vn&&vn.exports===pn,gn=yn&&ln.process,dn=function(){try{return vn&&vn.require&&vn.require("util").types||gn&&gn.binding&&gn.binding("util")}catch(t){}}(),_n=dn&&dn.isArrayBuffer,bn=dn&&dn.isDate,mn=dn&&dn.isMap,wn=dn&&dn.isRegExp,Sn=dn&&dn.isSet,jn=dn&&dn.isTypedArray;function xn(t,n,r){switch(r.length){case 0:return t.call(n);case 1:return t.call(n,r[0]);case 2:return t.call(n,r[0],r[1]);case 3:return t.call(n,r[0],r[1],r[2])}return t.apply(n,r)}function On(t,n,r,e){for(var u=-1,o=null==t?0:t.length;++u<o;){var i=t[u];n(e,i,r(i),t)}return e}function An(t,n){for(var r=-1,e=null==t?0:t.length;++r<e&&!1!==n(t[r],r,t););return t}function En(t,n){for(var r=null==t?0:t.length;r--&&!1!==n(t[r],r,t););return t}function kn(t,n){for(var r=-1,e=null==t?0:t.length;++r<e;)if(!n(t[r],r,t))return!1;return!0}function In(t,n){for(var r=-1,e=null==t?0:t.length,u=0,o=[];++r<e;){var i=t[r];n(i,r,t)&&(o[u++]=i)}return o}function Cn(t,n){return!(null==t||!t.length)&&Fn(t,n,0)>-1}function Pn(t,n,r){for(var e=-1,u=null==t?0:t.length;++e<u;)if(r(n,t[e]))return!0;return!1}function Rn(t,n){for(var r=-1,e=null==t?0:t.length,u=Array(e);++r<e;)u[r]=n(t[r],r,t);return u}function Wn(t,n){for(var r=-1,e=n.length,u=t.length;++r<e;)t[u+r]=n[r];return t}function Ln(t,n,r,e){var u=-1,o=null==t?0:t.length;for(e&&o&&(r=t[++u]);++u<o;)r=n(r,t[u],u,t);return r}function Mn(t,n,r,e){var u=null==t?0:t.length;for(e&&u&&(r=t[--u]);u--;)r=n(r,t[u],u,t);return r}function zn(t,n){for(var r=-1,e=null==t?0:t.length;++r<e;)if(n(t[r],r,t))return!0;return!1}var $n=Gn("length");function Tn(t,n,r){var e;return r(t,(function(t,r,u){if(n(t,r,u))return e=r,!1})),e}function Dn(t,n,r,e){for(var u=t.length,o=r+(e?1:-1);e?o--:++o<u;)if(n(t[o],o,t))return o;return-1}function Fn(t,n,r){return n==n?function(t,n,r){for(var e=r-1,u=t.length;++e<u;)if(t[e]===n)return e;return-1}(t,n,r):Dn(t,Un,r)}function Nn(t,n,r,e){for(var u=r-1,o=t.length;++u<o;)if(e(t[u],n))return u;return-1}function Un(t){return t!=t}function Bn(t,n){var r=null==t?0:t.length;return r?Kn(t,n)/r:h}function Gn(t){return function(n){return null==n?u:n[t]}}function qn(t){return function(n){return null==t?u:t[n]}}function Zn(t,n,r,e,u){return u(t,(function(t,u,o){r=e?(e=!1,t):n(r,t,u,o)})),r}function Kn(t,n){for(var r,e=-1,o=t.length;++e<o;){var i=n(t[e]);i!==u&&(r=r===u?i:r+i)}return r}function Hn(t,n){for(var r=-1,e=Array(t);++r<t;)e[r]=n(r);return e}function Vn(t){return t?t.slice(0,hr(t)+1).replace(et,""):t}function Jn(t){return function(n){return t(n)}}function Yn(t,n){return Rn(n,(function(n){return t[n]}))}function Qn(t,n){return t.has(n)}function Xn(t,n){for(var r=-1,e=t.length;++r<e&&Fn(n,t[r],0)>-1;);return r}function tr(t,n){for(var r=t.length;r--&&Fn(n,t[r],0)>-1;);return r}var nr=qn({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),rr=qn({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function er(t){return"\\"+an[t]}function ur(t){return tn.test(t)}function or(t){var n=-1,r=Array(t.size);return t.forEach((function(t,e){r[++n]=[e,t]})),r}function ir(t,n){return function(r){return t(n(r))}}function ar(t,n){for(var r=-1,e=t.length,u=0,o=[];++r<e;){var i=t[r];i!==n&&i!==a||(t[r]=a,o[u++]=r)}return o}function cr(t){var n=-1,r=Array(t.size);return t.forEach((function(t){r[++n]=t})),r}function fr(t){var n=-1,r=Array(t.size);return t.forEach((function(t){r[++n]=[t,t]})),r}function lr(t){return ur(t)?function(t){for(var n=Qt.lastIndex=0;Qt.test(t);)++n;return n}(t):$n(t)}function sr(t){return ur(t)?function(t){return t.match(Qt)||[]}(t):function(t){return t.split("")}(t)}function hr(t){for(var n=t.length;n--&&ut.test(t.charAt(n)););return n}var pr=qn({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),vr=function t(n){var r,e=(n=null==n?hn:vr.defaults(hn.Object(),n,vr.pick(hn,rn))).Array,ut=n.Date,wt=n.Error,St=n.Function,jt=n.Math,xt=n.Object,Ot=n.RegExp,At=n.String,Et=n.TypeError,kt=e.prototype,It=St.prototype,Ct=xt.prototype,Pt=n["__core-js_shared__"],Rt=It.toString,Wt=Ct.hasOwnProperty,Lt=0,Mt=(r=/[^.]+$/.exec(Pt&&Pt.keys&&Pt.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",zt=Ct.toString,$t=Rt.call(xt),Tt=hn._,Dt=Ot("^"+Rt.call(Wt).replace(nt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ft=yn?n.Buffer:u,Nt=n.Symbol,Ut=n.Uint8Array,Bt=Ft?Ft.allocUnsafe:u,Gt=ir(xt.getPrototypeOf,xt),qt=xt.create,Zt=Ct.propertyIsEnumerable,Kt=kt.splice,Ht=Nt?Nt.isConcatSpreadable:u,Vt=Nt?Nt.iterator:u,Qt=Nt?Nt.toStringTag:u,tn=function(){try{var t=co(xt,"defineProperty");return t({},"",{}),t}catch(t){}}(),an=n.clearTimeout!==hn.clearTimeout&&n.clearTimeout,ln=ut&&ut.now!==hn.Date.now&&ut.now,sn=n.setTimeout!==hn.setTimeout&&n.setTimeout,pn=jt.ceil,vn=jt.floor,gn=xt.getOwnPropertySymbols,dn=Ft?Ft.isBuffer:u,$n=n.isFinite,qn=kt.join,yr=ir(xt.keys,xt),gr=jt.max,dr=jt.min,_r=ut.now,br=n.parseInt,mr=jt.random,wr=kt.reverse,Sr=co(n,"DataView"),jr=co(n,"Map"),xr=co(n,"Promise"),Or=co(n,"Set"),Ar=co(n,"WeakMap"),Er=co(xt,"create"),kr=Ar&&new Ar,Ir={},Cr=$o(Sr),Pr=$o(jr),Rr=$o(xr),Wr=$o(Or),Lr=$o(Ar),Mr=Nt?Nt.prototype:u,zr=Mr?Mr.valueOf:u,$r=Mr?Mr.toString:u;function Tr(t){if(ta(t)&&!Bi(t)&&!(t instanceof Ur)){if(t instanceof Nr)return t;if(Wt.call(t,"__wrapped__"))return To(t)}return new Nr(t)}var Dr=function(){function t(){}return function(n){if(!Xi(n))return{};if(qt)return qt(n);t.prototype=n;var r=new t;return t.prototype=u,r}}();function Fr(){}function Nr(t,n){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=u}function Ur(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=p,this.__views__=[]}function Br(t){var n=-1,r=null==t?0:t.length;for(this.clear();++n<r;){var e=t[n];this.set(e[0],e[1])}}function Gr(t){var n=-1,r=null==t?0:t.length;for(this.clear();++n<r;){var e=t[n];this.set(e[0],e[1])}}function qr(t){var n=-1,r=null==t?0:t.length;for(this.clear();++n<r;){var e=t[n];this.set(e[0],e[1])}}function Zr(t){var n=-1,r=null==t?0:t.length;for(this.__data__=new qr;++n<r;)this.add(t[n])}function Kr(t){var n=this.__data__=new Gr(t);this.size=n.size}function Hr(t,n){var r=Bi(t),e=!r&&Ui(t),u=!r&&!e&&Ki(t),o=!r&&!e&&!u&&ca(t),i=r||e||u||o,a=i?Hn(t.length,At):[],c=a.length;for(var f in t)!n&&!Wt.call(t,f)||i&&("length"==f||u&&("offset"==f||"parent"==f)||o&&("buffer"==f||"byteLength"==f||"byteOffset"==f)||yo(f,c))||a.push(f);return a}function Vr(t){var n=t.length;return n?t[qe(0,n-1)]:u}function Jr(t,n){return Ro(Au(t),oe(n,0,t.length))}function Yr(t){return Ro(Au(t))}function Qr(t,n,r){(r!==u&&!Di(t[n],r)||r===u&&!(n in t))&&ee(t,n,r)}function Xr(t,n,r){var e=t[n];Wt.call(t,n)&&Di(e,r)&&(r!==u||n in t)||ee(t,n,r)}function te(t,n){for(var r=t.length;r--;)if(Di(t[r][0],n))return r;return-1}function ne(t,n,r,e){return le(t,(function(t,u,o){n(e,t,r(t),o)})),e}function re(t,n){return t&&Eu(n,Ca(n),t)}function ee(t,n,r){"__proto__"==n&&tn?tn(t,n,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[n]=r}function ue(t,n){for(var r=-1,o=n.length,i=e(o),a=null==t;++r<o;)i[r]=a?u:Oa(t,n[r]);return i}function oe(t,n,r){return t==t&&(r!==u&&(t=t<=r?t:r),n!==u&&(t=t>=n?t:n)),t}function ie(t,n,r,e,o,i){var a,c=1&n,f=2&n,l=4&n;if(r&&(a=o?r(t,e,o,i):r(t)),a!==u)return a;if(!Xi(t))return t;var s=Bi(t);if(s){if(a=function(t){var n=t.length,r=new t.constructor(n);return n&&"string"==typeof t[0]&&Wt.call(t,"index")&&(r.index=t.index,r.input=t.input),r}(t),!c)return Au(t,a)}else{var h=so(t),p=h==m||h==w;if(Ki(t))return mu(t,c);if(h==x||h==y||p&&!o){if(a=f||p?{}:po(t),!c)return f?function(t,n){return Eu(t,lo(t),n)}(t,function(t,n){return t&&Eu(n,Pa(n),t)}(a,t)):function(t,n){return Eu(t,fo(t),n)}(t,re(a,t))}else{if(!on[h])return o?t:{};a=function(t,n,r){var e,u=t.constructor;switch(n){case P:return wu(t);case d:case _:return new u(+t);case R:return function(t,n){var r=n?wu(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}(t,r);case W:case L:case M:case z:case $:case T:case D:case F:case N:return Su(t,r);case S:return new u;case j:case k:return new u(t);case A:return function(t){var n=new t.constructor(t.source,ht.exec(t));return n.lastIndex=t.lastIndex,n}(t);case E:return new u;case I:return e=t,zr?xt(zr.call(e)):{}}}(t,h,c)}}i||(i=new Kr);var v=i.get(t);if(v)return v;i.set(t,a),oa(t)?t.forEach((function(e){a.add(ie(e,n,r,e,t,i))})):na(t)&&t.forEach((function(e,u){a.set(u,ie(e,n,r,u,t,i))}));var g=s?u:(l?f?no:to:f?Pa:Ca)(t);return An(g||t,(function(e,u){g&&(e=t[u=e]),Xr(a,u,ie(e,n,r,u,t,i))})),a}function ae(t,n,r){var e=r.length;if(null==t)return!e;for(t=xt(t);e--;){var o=r[e],i=n[o],a=t[o];if(a===u&&!(o in t)||!i(a))return!1}return!0}function ce(t,n,r){if("function"!=typeof t)throw new Et(o);return ko((function(){t.apply(u,r)}),n)}function fe(t,n,r,e){var u=-1,o=Cn,i=!0,a=t.length,c=[],f=n.length;if(!a)return c;r&&(n=Rn(n,Jn(r))),e?(o=Pn,i=!1):n.length>=200&&(o=Qn,i=!1,n=new Zr(n));t:for(;++u<a;){var l=t[u],s=null==r?l:r(l);if(l=e||0!==l?l:0,i&&s==s){for(var h=f;h--;)if(n[h]===s)continue t;c.push(l)}else o(n,s,e)||c.push(l)}return c}Tr.templateSettings={escape:V,evaluate:J,interpolate:Y,variable:"",imports:{_:Tr}},Tr.prototype=Fr.prototype,Tr.prototype.constructor=Tr,Nr.prototype=Dr(Fr.prototype),Nr.prototype.constructor=Nr,Ur.prototype=Dr(Fr.prototype),Ur.prototype.constructor=Ur,Br.prototype.clear=function(){this.__data__=Er?Er(null):{},this.size=0},Br.prototype.delete=function(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n},Br.prototype.get=function(t){var n=this.__data__;if(Er){var r=n[t];return r===i?u:r}return Wt.call(n,t)?n[t]:u},Br.prototype.has=function(t){var n=this.__data__;return Er?n[t]!==u:Wt.call(n,t)},Br.prototype.set=function(t,n){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=Er&&n===u?i:n,this},Gr.prototype.clear=function(){this.__data__=[],this.size=0},Gr.prototype.delete=function(t){var n=this.__data__,r=te(n,t);return!(r<0||(r==n.length-1?n.pop():Kt.call(n,r,1),--this.size,0))},Gr.prototype.get=function(t){var n=this.__data__,r=te(n,t);return r<0?u:n[r][1]},Gr.prototype.has=function(t){return te(this.__data__,t)>-1},Gr.prototype.set=function(t,n){var r=this.__data__,e=te(r,t);return e<0?(++this.size,r.push([t,n])):r[e][1]=n,this},qr.prototype.clear=function(){this.size=0,this.__data__={hash:new Br,map:new(jr||Gr),string:new Br}},qr.prototype.delete=function(t){var n=io(this,t).delete(t);return this.size-=n?1:0,n},qr.prototype.get=function(t){return io(this,t).get(t)},qr.prototype.has=function(t){return io(this,t).has(t)},qr.prototype.set=function(t,n){var r=io(this,t),e=r.size;return r.set(t,n),this.size+=r.size==e?0:1,this},Zr.prototype.add=Zr.prototype.push=function(t){return this.__data__.set(t,i),this},Zr.prototype.has=function(t){return this.__data__.has(t)},Kr.prototype.clear=function(){this.__data__=new Gr,this.size=0},Kr.prototype.delete=function(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r},Kr.prototype.get=function(t){return this.__data__.get(t)},Kr.prototype.has=function(t){return this.__data__.has(t)},Kr.prototype.set=function(t,n){var r=this.__data__;if(r instanceof Gr){var e=r.__data__;if(!jr||e.length<199)return e.push([t,n]),this.size=++r.size,this;r=this.__data__=new qr(e)}return r.set(t,n),this.size=r.size,this};var le=Cu(_e),se=Cu(be,!0);function he(t,n){var r=!0;return le(t,(function(t,e,u){return r=!!n(t,e,u)})),r}function pe(t,n,r){for(var e=-1,o=t.length;++e<o;){var i=t[e],a=n(i);if(null!=a&&(c===u?a==a&&!aa(a):r(a,c)))var c=a,f=i}return f}function ve(t,n){var r=[];return le(t,(function(t,e,u){n(t,e,u)&&r.push(t)})),r}function ye(t,n,r,e,u){var o=-1,i=t.length;for(r||(r=vo),u||(u=[]);++o<i;){var a=t[o];n>0&&r(a)?n>1?ye(a,n-1,r,e,u):Wn(u,a):e||(u[u.length]=a)}return u}var ge=Pu(),de=Pu(!0);function _e(t,n){return t&&ge(t,n,Ca)}function be(t,n){return t&&de(t,n,Ca)}function me(t,n){return In(n,(function(n){return Ji(t[n])}))}function we(t,n){for(var r=0,e=(n=gu(n,t)).length;null!=t&&r<e;)t=t[zo(n[r++])];return r&&r==e?t:u}function Se(t,n,r){var e=n(t);return Bi(t)?e:Wn(e,r(t))}function je(t){return null==t?t===u?"[object Undefined]":"[object Null]":Qt&&Qt in xt(t)?function(t){var n=Wt.call(t,Qt),r=t[Qt];try{t[Qt]=u;var e=!0}catch(t){}var o=zt.call(t);return e&&(n?t[Qt]=r:delete t[Qt]),o}(t):function(t){return zt.call(t)}(t)}function xe(t,n){return t>n}function Oe(t,n){return null!=t&&Wt.call(t,n)}function Ae(t,n){return null!=t&&n in xt(t)}function Ee(t,n,r){for(var o=r?Pn:Cn,i=t[0].length,a=t.length,c=a,f=e(a),l=1/0,s=[];c--;){var h=t[c];c&&n&&(h=Rn(h,Jn(n))),l=dr(h.length,l),f[c]=!r&&(n||i>=120&&h.length>=120)?new Zr(c&&h):u}h=t[0];var p=-1,v=f[0];t:for(;++p<i&&s.length<l;){var y=h[p],g=n?n(y):y;if(y=r||0!==y?y:0,!(v?Qn(v,g):o(s,g,r))){for(c=a;--c;){var d=f[c];if(!(d?Qn(d,g):o(t[c],g,r)))continue t}v&&v.push(g),s.push(y)}}return s}function ke(t,n,r){var e=null==(t=Oo(t,n=gu(n,t)))?t:t[zo(Vo(n))];return null==e?u:xn(e,t,r)}function Ie(t){return ta(t)&&je(t)==y}function Ce(t,n,r,e,o){return t===n||(null==t||null==n||!ta(t)&&!ta(n)?t!=t&&n!=n:function(t,n,r,e,o,i){var a=Bi(t),c=Bi(n),f=a?g:so(t),l=c?g:so(n),s=(f=f==y?x:f)==x,h=(l=l==y?x:l)==x,p=f==l;if(p&&Ki(t)){if(!Ki(n))return!1;a=!0,s=!1}if(p&&!s)return i||(i=new Kr),a||ca(t)?Qu(t,n,r,e,o,i):function(t,n,r,e,u,o,i){switch(r){case R:if(t.byteLength!=n.byteLength||t.byteOffset!=n.byteOffset)return!1;t=t.buffer,n=n.buffer;case P:return!(t.byteLength!=n.byteLength||!o(new Ut(t),new Ut(n)));case d:case _:case j:return Di(+t,+n);case b:return t.name==n.name&&t.message==n.message;case A:case k:return t==n+"";case S:var a=or;case E:var c=1&e;if(a||(a=cr),t.size!=n.size&&!c)return!1;var f=i.get(t);if(f)return f==n;e|=2,i.set(t,n);var l=Qu(a(t),a(n),e,u,o,i);return i.delete(t),l;case I:if(zr)return zr.call(t)==zr.call(n)}return!1}(t,n,f,r,e,o,i);if(!(1&r)){var v=s&&Wt.call(t,"__wrapped__"),m=h&&Wt.call(n,"__wrapped__");if(v||m){var w=v?t.value():t,O=m?n.value():n;return i||(i=new Kr),o(w,O,r,e,i)}}return!!p&&(i||(i=new Kr),function(t,n,r,e,o,i){var a=1&r,c=to(t),f=c.length;if(f!=to(n).length&&!a)return!1;for(var l=f;l--;){var s=c[l];if(!(a?s in n:Wt.call(n,s)))return!1}var h=i.get(t),p=i.get(n);if(h&&p)return h==n&&p==t;var v=!0;i.set(t,n),i.set(n,t);for(var y=a;++l<f;){var g=t[s=c[l]],d=n[s];if(e)var _=a?e(d,g,s,n,t,i):e(g,d,s,t,n,i);if(!(_===u?g===d||o(g,d,r,e,i):_)){v=!1;break}y||(y="constructor"==s)}if(v&&!y){var b=t.constructor,m=n.constructor;b==m||!("constructor"in t)||!("constructor"in n)||"function"==typeof b&&b instanceof b&&"function"==typeof m&&m instanceof m||(v=!1)}return i.delete(t),i.delete(n),v}(t,n,r,e,o,i))}(t,n,r,e,Ce,o))}function Pe(t,n,r,e){var o=r.length,i=o,a=!e;if(null==t)return!i;for(t=xt(t);o--;){var c=r[o];if(a&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++o<i;){var f=(c=r[o])[0],l=t[f],s=c[1];if(a&&c[2]){if(l===u&&!(f in t))return!1}else{var h=new Kr;if(e)var p=e(l,s,f,t,n,h);if(!(p===u?Ce(s,l,3,e,h):p))return!1}}return!0}function Re(t){return!(!Xi(t)||(n=t,Mt&&Mt in n))&&(Ji(t)?Dt:yt).test($o(t));var n}function We(t){return"function"==typeof t?t:null==t?rc:"object"==typeof t?Bi(t)?Te(t[0],t[1]):$e(t):sc(t)}function Le(t){if(!wo(t))return yr(t);var n=[];for(var r in xt(t))Wt.call(t,r)&&"constructor"!=r&&n.push(r);return n}function Me(t,n){return t<n}function ze(t,n){var r=-1,u=qi(t)?e(t.length):[];return le(t,(function(t,e,o){u[++r]=n(t,e,o)})),u}function $e(t){var n=ao(t);return 1==n.length&&n[0][2]?jo(n[0][0],n[0][1]):function(r){return r===t||Pe(r,t,n)}}function Te(t,n){return _o(t)&&So(n)?jo(zo(t),n):function(r){var e=Oa(r,t);return e===u&&e===n?Aa(r,t):Ce(n,e,3)}}function De(t,n,r,e,o){t!==n&&ge(n,(function(i,a){if(o||(o=new Kr),Xi(i))!function(t,n,r,e,o,i,a){var c=Ao(t,r),f=Ao(n,r),l=a.get(f);if(l)Qr(t,r,l);else{var s=i?i(c,f,r+"",t,n,a):u,h=s===u;if(h){var p=Bi(f),v=!p&&Ki(f),y=!p&&!v&&ca(f);s=f,p||v||y?Bi(c)?s=c:Zi(c)?s=Au(c):v?(h=!1,s=mu(f,!0)):y?(h=!1,s=Su(f,!0)):s=[]:ea(f)||Ui(f)?(s=c,Ui(c)?s=ga(c):Xi(c)&&!Ji(c)||(s=po(f))):h=!1}h&&(a.set(f,s),o(s,f,e,i,a),a.delete(f)),Qr(t,r,s)}}(t,n,a,r,De,e,o);else{var c=e?e(Ao(t,a),i,a+"",t,n,o):u;c===u&&(c=i),Qr(t,a,c)}}),Pa)}function Fe(t,n){var r=t.length;if(r)return yo(n+=n<0?r:0,r)?t[n]:u}function Ne(t,n,r){n=n.length?Rn(n,(function(t){return Bi(t)?function(n){return we(n,1===t.length?t[0]:t)}:t})):[rc];var e=-1;n=Rn(n,Jn(oo()));var u=ze(t,(function(t,r,u){var o=Rn(n,(function(n){return n(t)}));return{criteria:o,index:++e,value:t}}));return function(t,n){var e=t.length;for(t.sort((function(t,n){return function(t,n,r){for(var e=-1,u=t.criteria,o=n.criteria,i=u.length,a=r.length;++e<i;){var c=ju(u[e],o[e]);if(c)return e>=a?c:c*("desc"==r[e]?-1:1)}return t.index-n.index}(t,n,r)}));e--;)t[e]=t[e].value;return t}(u)}function Ue(t,n,r){for(var e=-1,u=n.length,o={};++e<u;){var i=n[e],a=we(t,i);r(a,i)&&Je(o,gu(i,t),a)}return o}function Be(t,n,r,e){var u=e?Nn:Fn,o=-1,i=n.length,a=t;for(t===n&&(n=Au(n)),r&&(a=Rn(t,Jn(r)));++o<i;)for(var c=0,f=n[o],l=r?r(f):f;(c=u(a,l,c,e))>-1;)a!==t&&Kt.call(a,c,1),Kt.call(t,c,1);return t}function Ge(t,n){for(var r=t?n.length:0,e=r-1;r--;){var u=n[r];if(r==e||u!==o){var o=u;yo(u)?Kt.call(t,u,1):cu(t,u)}}return t}function qe(t,n){return t+vn(mr()*(n-t+1))}function Ze(t,n){var r="";if(!t||n<1||n>s)return r;do{n%2&&(r+=t),(n=vn(n/2))&&(t+=t)}while(n);return r}function Ke(t,n){return Io(xo(t,n,rc),t+"")}function He(t){return Vr(Da(t))}function Ve(t,n){var r=Da(t);return Ro(r,oe(n,0,r.length))}function Je(t,n,r,e){if(!Xi(t))return t;for(var o=-1,i=(n=gu(n,t)).length,a=i-1,c=t;null!=c&&++o<i;){var f=zo(n[o]),l=r;if("__proto__"===f||"constructor"===f||"prototype"===f)return t;if(o!=a){var s=c[f];(l=e?e(s,f,c):u)===u&&(l=Xi(s)?s:yo(n[o+1])?[]:{})}Xr(c,f,l),c=c[f]}return t}var Ye=kr?function(t,n){return kr.set(t,n),t}:rc,Qe=tn?function(t,n){return tn(t,"toString",{configurable:!0,enumerable:!1,value:Xa(n),writable:!0})}:rc;function Xe(t){return Ro(Da(t))}function tu(t,n,r){var u=-1,o=t.length;n<0&&(n=-n>o?0:o+n),(r=r>o?o:r)<0&&(r+=o),o=n>r?0:r-n>>>0,n>>>=0;for(var i=e(o);++u<o;)i[u]=t[u+n];return i}function nu(t,n){var r;return le(t,(function(t,e,u){return!(r=n(t,e,u))})),!!r}function ru(t,n,r){var e=0,u=null==t?e:t.length;if("number"==typeof n&&n==n&&u<=2147483647){for(;e<u;){var o=e+u>>>1,i=t[o];null!==i&&!aa(i)&&(r?i<=n:i<n)?e=o+1:u=o}return u}return eu(t,n,rc,r)}function eu(t,n,r,e){var o=0,i=null==t?0:t.length;if(0===i)return 0;for(var a=(n=r(n))!=n,c=null===n,f=aa(n),l=n===u;o<i;){var s=vn((o+i)/2),h=r(t[s]),p=h!==u,v=null===h,y=h==h,g=aa(h);if(a)var d=e||y;else d=l?y&&(e||p):c?y&&p&&(e||!v):f?y&&p&&!v&&(e||!g):!v&&!g&&(e?h<=n:h<n);d?o=s+1:i=s}return dr(i,4294967294)}function uu(t,n){for(var r=-1,e=t.length,u=0,o=[];++r<e;){var i=t[r],a=n?n(i):i;if(!r||!Di(a,c)){var c=a;o[u++]=0===i?0:i}}return o}function ou(t){return"number"==typeof t?t:aa(t)?h:+t}function iu(t){if("string"==typeof t)return t;if(Bi(t))return Rn(t,iu)+"";if(aa(t))return $r?$r.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}function au(t,n,r){var e=-1,u=Cn,o=t.length,i=!0,a=[],c=a;if(r)i=!1,u=Pn;else if(o>=200){var f=n?null:Zu(t);if(f)return cr(f);i=!1,u=Qn,c=new Zr}else c=n?[]:a;t:for(;++e<o;){var l=t[e],s=n?n(l):l;if(l=r||0!==l?l:0,i&&s==s){for(var h=c.length;h--;)if(c[h]===s)continue t;n&&c.push(s),a.push(l)}else u(c,s,r)||(c!==a&&c.push(s),a.push(l))}return a}function cu(t,n){return null==(t=Oo(t,n=gu(n,t)))||delete t[zo(Vo(n))]}function fu(t,n,r,e){return Je(t,n,r(we(t,n)),e)}function lu(t,n,r,e){for(var u=t.length,o=e?u:-1;(e?o--:++o<u)&&n(t[o],o,t););return r?tu(t,e?0:o,e?o+1:u):tu(t,e?o+1:0,e?u:o)}function su(t,n){var r=t;return r instanceof Ur&&(r=r.value()),Ln(n,(function(t,n){return n.func.apply(n.thisArg,Wn([t],n.args))}),r)}function hu(t,n,r){var u=t.length;if(u<2)return u?au(t[0]):[];for(var o=-1,i=e(u);++o<u;)for(var a=t[o],c=-1;++c<u;)c!=o&&(i[o]=fe(i[o]||a,t[c],n,r));return au(ye(i,1),n,r)}function pu(t,n,r){for(var e=-1,o=t.length,i=n.length,a={};++e<o;){var c=e<i?n[e]:u;r(a,t[e],c)}return a}function vu(t){return Zi(t)?t:[]}function yu(t){return"function"==typeof t?t:rc}function gu(t,n){return Bi(t)?t:_o(t,n)?[t]:Mo(da(t))}var du=Ke;function _u(t,n,r){var e=t.length;return r=r===u?e:r,!n&&r>=e?t:tu(t,n,r)}var bu=an||function(t){return hn.clearTimeout(t)};function mu(t,n){if(n)return t.slice();var r=t.length,e=Bt?Bt(r):new t.constructor(r);return t.copy(e),e}function wu(t){var n=new t.constructor(t.byteLength);return new Ut(n).set(new Ut(t)),n}function Su(t,n){var r=n?wu(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}function ju(t,n){if(t!==n){var r=t!==u,e=null===t,o=t==t,i=aa(t),a=n!==u,c=null===n,f=n==n,l=aa(n);if(!c&&!l&&!i&&t>n||i&&a&&f&&!c&&!l||e&&a&&f||!r&&f||!o)return 1;if(!e&&!i&&!l&&t<n||l&&r&&o&&!e&&!i||c&&r&&o||!a&&o||!f)return-1}return 0}function xu(t,n,r,u){for(var o=-1,i=t.length,a=r.length,c=-1,f=n.length,l=gr(i-a,0),s=e(f+l),h=!u;++c<f;)s[c]=n[c];for(;++o<a;)(h||o<i)&&(s[r[o]]=t[o]);for(;l--;)s[c++]=t[o++];return s}function Ou(t,n,r,u){for(var o=-1,i=t.length,a=-1,c=r.length,f=-1,l=n.length,s=gr(i-c,0),h=e(s+l),p=!u;++o<s;)h[o]=t[o];for(var v=o;++f<l;)h[v+f]=n[f];for(;++a<c;)(p||o<i)&&(h[v+r[a]]=t[o++]);return h}function Au(t,n){var r=-1,u=t.length;for(n||(n=e(u));++r<u;)n[r]=t[r];return n}function Eu(t,n,r,e){var o=!r;r||(r={});for(var i=-1,a=n.length;++i<a;){var c=n[i],f=e?e(r[c],t[c],c,r,t):u;f===u&&(f=t[c]),o?ee(r,c,f):Xr(r,c,f)}return r}function ku(t,n){return function(r,e){var u=Bi(r)?On:ne,o=n?n():{};return u(r,t,oo(e,2),o)}}function Iu(t){return Ke((function(n,r){var e=-1,o=r.length,i=o>1?r[o-1]:u,a=o>2?r[2]:u;for(i=t.length>3&&"function"==typeof i?(o--,i):u,a&&go(r[0],r[1],a)&&(i=o<3?u:i,o=1),n=xt(n);++e<o;){var c=r[e];c&&t(n,c,e,i)}return n}))}function Cu(t,n){return function(r,e){if(null==r)return r;if(!qi(r))return t(r,e);for(var u=r.length,o=n?u:-1,i=xt(r);(n?o--:++o<u)&&!1!==e(i[o],o,i););return r}}function Pu(t){return function(n,r,e){for(var u=-1,o=xt(n),i=e(n),a=i.length;a--;){var c=i[t?a:++u];if(!1===r(o[c],c,o))break}return n}}function Ru(t){return function(n){var r=ur(n=da(n))?sr(n):u,e=r?r[0]:n.charAt(0),o=r?_u(r,1).join(""):n.slice(1);return e[t]()+o}}function Wu(t){return function(n){return Ln(Ja(Ua(n).replace(Jt,"")),t,"")}}function Lu(t){return function(){var n=arguments;switch(n.length){case 0:return new t;case 1:return new t(n[0]);case 2:return new t(n[0],n[1]);case 3:return new t(n[0],n[1],n[2]);case 4:return new t(n[0],n[1],n[2],n[3]);case 5:return new t(n[0],n[1],n[2],n[3],n[4]);case 6:return new t(n[0],n[1],n[2],n[3],n[4],n[5]);case 7:return new t(n[0],n[1],n[2],n[3],n[4],n[5],n[6])}var r=Dr(t.prototype),e=t.apply(r,n);return Xi(e)?e:r}}function Mu(t){return function(n,r,e){var o=xt(n);if(!qi(n)){var i=oo(r,3);n=Ca(n),r=function(t){return i(o[t],t,o)}}var a=t(n,r,e);return a>-1?o[i?n[a]:a]:u}}function zu(t){return Xu((function(n){var r=n.length,e=r,i=Nr.prototype.thru;for(t&&n.reverse();e--;){var a=n[e];if("function"!=typeof a)throw new Et(o);if(i&&!c&&"wrapper"==eo(a))var c=new Nr([],!0)}for(e=c?e:r;++e<r;){var f=eo(a=n[e]),l="wrapper"==f?ro(a):u;c=l&&bo(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?c[eo(l[0])].apply(c,l[3]):1==a.length&&bo(a)?c[f]():c.thru(a)}return function(){var t=arguments,e=t[0];if(c&&1==t.length&&Bi(e))return c.plant(e).value();for(var u=0,o=r?n[u].apply(this,t):e;++u<r;)o=n[u].call(this,o);return o}}))}function $u(t,n,r,o,i,a,c,l,s,h){var p=n&f,v=1&n,y=2&n,g=24&n,d=512&n,_=y?u:Lu(t);return function f(){for(var b=arguments.length,m=e(b),w=b;w--;)m[w]=arguments[w];if(g)var S=uo(f),j=function(t,n){for(var r=t.length,e=0;r--;)t[r]===n&&++e;return e}(m,S);if(o&&(m=xu(m,o,i,g)),a&&(m=Ou(m,a,c,g)),b-=j,g&&b<h){var x=ar(m,S);return Gu(t,n,$u,f.placeholder,r,m,x,l,s,h-b)}var O=v?r:this,A=y?O[t]:t;return b=m.length,l?m=function(t,n){for(var r=t.length,e=dr(n.length,r),o=Au(t);e--;){var i=n[e];t[e]=yo(i,r)?o[i]:u}return t}(m,l):d&&b>1&&m.reverse(),p&&s<b&&(m.length=s),this&&this!==hn&&this instanceof f&&(A=_||Lu(A)),A.apply(O,m)}}function Tu(t,n){return function(r,e){return function(t,n,r,e){return _e(t,(function(t,u,o){n(e,r(t),u,o)})),e}(r,t,n(e),{})}}function Du(t,n){return function(r,e){var o;if(r===u&&e===u)return n;if(r!==u&&(o=r),e!==u){if(o===u)return e;"string"==typeof r||"string"==typeof e?(r=iu(r),e=iu(e)):(r=ou(r),e=ou(e)),o=t(r,e)}return o}}function Fu(t){return Xu((function(n){return n=Rn(n,Jn(oo())),Ke((function(r){var e=this;return t(n,(function(t){return xn(t,e,r)}))}))}))}function Nu(t,n){var r=(n=n===u?" ":iu(n)).length;if(r<2)return r?Ze(n,t):n;var e=Ze(n,pn(t/lr(n)));return ur(n)?_u(sr(e),0,t).join(""):e.slice(0,t)}function Uu(t){return function(n,r,o){return o&&"number"!=typeof o&&go(n,r,o)&&(r=o=u),n=ha(n),r===u?(r=n,n=0):r=ha(r),function(t,n,r,u){for(var o=-1,i=gr(pn((n-t)/(r||1)),0),a=e(i);i--;)a[u?i:++o]=t,t+=r;return a}(n,r,o=o===u?n<r?1:-1:ha(o),t)}}function Bu(t){return function(n,r){return"string"==typeof n&&"string"==typeof r||(n=ya(n),r=ya(r)),t(n,r)}}function Gu(t,n,r,e,o,i,a,f,l,s){var h=8&n;n|=h?c:64,4&(n&=~(h?64:c))||(n&=-4);var p=[t,n,o,h?i:u,h?a:u,h?u:i,h?u:a,f,l,s],v=r.apply(u,p);return bo(t)&&Eo(v,p),v.placeholder=e,Co(v,t,n)}function qu(t){var n=jt[t];return function(t,r){if(t=ya(t),(r=null==r?0:dr(pa(r),292))&&$n(t)){var e=(da(t)+"e").split("e");return+((e=(da(n(e[0]+"e"+(+e[1]+r)))+"e").split("e"))[0]+"e"+(+e[1]-r))}return n(t)}}var Zu=Or&&1/cr(new Or([,-0]))[1]==l?function(t){return new Or(t)}:ac;function Ku(t){return function(n){var r=so(n);return r==S?or(n):r==E?fr(n):function(t,n){return Rn(n,(function(n){return[n,t[n]]}))}(n,t(n))}}function Hu(t,n,r,i,l,s,h,p){var v=2&n;if(!v&&"function"!=typeof t)throw new Et(o);var y=i?i.length:0;if(y||(n&=-97,i=l=u),h=h===u?h:gr(pa(h),0),p=p===u?p:pa(p),y-=l?l.length:0,64&n){var g=i,d=l;i=l=u}var _=v?u:ro(t),b=[t,n,r,i,l,g,d,s,h,p];if(_&&function(t,n){var r=t[1],e=n[1],u=r|e,o=u<131,i=e==f&&8==r||e==f&&256==r&&t[7].length<=n[8]||384==e&&n[7].length<=n[8]&&8==r;if(!o&&!i)return t;1&e&&(t[2]=n[2],u|=1&r?0:4);var c=n[3];if(c){var l=t[3];t[3]=l?xu(l,c,n[4]):c,t[4]=l?ar(t[3],a):n[4]}(c=n[5])&&(l=t[5],t[5]=l?Ou(l,c,n[6]):c,t[6]=l?ar(t[5],a):n[6]),(c=n[7])&&(t[7]=c),e&f&&(t[8]=null==t[8]?n[8]:dr(t[8],n[8])),null==t[9]&&(t[9]=n[9]),t[0]=n[0],t[1]=u}(b,_),t=b[0],n=b[1],r=b[2],i=b[3],l=b[4],!(p=b[9]=b[9]===u?v?0:t.length:gr(b[9]-y,0))&&24&n&&(n&=-25),n&&1!=n)m=8==n||16==n?function(t,n,r){var o=Lu(t);return function i(){for(var a=arguments.length,c=e(a),f=a,l=uo(i);f--;)c[f]=arguments[f];var s=a<3&&c[0]!==l&&c[a-1]!==l?[]:ar(c,l);return(a-=s.length)<r?Gu(t,n,$u,i.placeholder,u,c,s,u,u,r-a):xn(this&&this!==hn&&this instanceof i?o:t,this,c)}}(t,n,p):n!=c&&33!=n||l.length?$u.apply(u,b):function(t,n,r,u){var o=1&n,i=Lu(t);return function n(){for(var a=-1,c=arguments.length,f=-1,l=u.length,s=e(l+c),h=this&&this!==hn&&this instanceof n?i:t;++f<l;)s[f]=u[f];for(;c--;)s[f++]=arguments[++a];return xn(h,o?r:this,s)}}(t,n,r,i);else var m=function(t,n,r){var e=1&n,u=Lu(t);return function n(){return(this&&this!==hn&&this instanceof n?u:t).apply(e?r:this,arguments)}}(t,n,r);return Co((_?Ye:Eo)(m,b),t,n)}function Vu(t,n,r,e){return t===u||Di(t,Ct[r])&&!Wt.call(e,r)?n:t}function Ju(t,n,r,e,o,i){return Xi(t)&&Xi(n)&&(i.set(n,t),De(t,n,u,Ju,i),i.delete(n)),t}function Yu(t){return ea(t)?u:t}function Qu(t,n,r,e,o,i){var a=1&r,c=t.length,f=n.length;if(c!=f&&!(a&&f>c))return!1;var l=i.get(t),s=i.get(n);if(l&&s)return l==n&&s==t;var h=-1,p=!0,v=2&r?new Zr:u;for(i.set(t,n),i.set(n,t);++h<c;){var y=t[h],g=n[h];if(e)var d=a?e(g,y,h,n,t,i):e(y,g,h,t,n,i);if(d!==u){if(d)continue;p=!1;break}if(v){if(!zn(n,(function(t,n){if(!Qn(v,n)&&(y===t||o(y,t,r,e,i)))return v.push(n)}))){p=!1;break}}else if(y!==g&&!o(y,g,r,e,i)){p=!1;break}}return i.delete(t),i.delete(n),p}function Xu(t){return Io(xo(t,u,Go),t+"")}function to(t){return Se(t,Ca,fo)}function no(t){return Se(t,Pa,lo)}var ro=kr?function(t){return kr.get(t)}:ac;function eo(t){for(var n=t.name+"",r=Ir[n],e=Wt.call(Ir,n)?r.length:0;e--;){var u=r[e],o=u.func;if(null==o||o==t)return u.name}return n}function uo(t){return(Wt.call(Tr,"placeholder")?Tr:t).placeholder}function oo(){var t=Tr.iteratee||ec;return t=t===ec?We:t,arguments.length?t(arguments[0],arguments[1]):t}function io(t,n){var r,e,u=t.__data__;return("string"==(e=typeof(r=n))||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==r:null===r)?u["string"==typeof n?"string":"hash"]:u.map}function ao(t){for(var n=Ca(t),r=n.length;r--;){var e=n[r],u=t[e];n[r]=[e,u,So(u)]}return n}function co(t,n){var r=function(t,n){return null==t?u:t[n]}(t,n);return Re(r)?r:u}var fo=gn?function(t){return null==t?[]:(t=xt(t),In(gn(t),(function(n){return Zt.call(t,n)})))}:vc,lo=gn?function(t){for(var n=[];t;)Wn(n,fo(t)),t=Gt(t);return n}:vc,so=je;function ho(t,n,r){for(var e=-1,u=(n=gu(n,t)).length,o=!1;++e<u;){var i=zo(n[e]);if(!(o=null!=t&&r(t,i)))break;t=t[i]}return o||++e!=u?o:!!(u=null==t?0:t.length)&&Qi(u)&&yo(i,u)&&(Bi(t)||Ui(t))}function po(t){return"function"!=typeof t.constructor||wo(t)?{}:Dr(Gt(t))}function vo(t){return Bi(t)||Ui(t)||!!(Ht&&t&&t[Ht])}function yo(t,n){var r=typeof t;return!!(n=null==n?s:n)&&("number"==r||"symbol"!=r&&dt.test(t))&&t>-1&&t%1==0&&t<n}function go(t,n,r){if(!Xi(r))return!1;var e=typeof n;return!!("number"==e?qi(r)&&yo(n,r.length):"string"==e&&n in r)&&Di(r[n],t)}function _o(t,n){if(Bi(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!aa(t))||X.test(t)||!Q.test(t)||null!=n&&t in xt(n)}function bo(t){var n=eo(t),r=Tr[n];if("function"!=typeof r||!(n in Ur.prototype))return!1;if(t===r)return!0;var e=ro(r);return!!e&&t===e[0]}(Sr&&so(new Sr(new ArrayBuffer(1)))!=R||jr&&so(new jr)!=S||xr&&so(xr.resolve())!=O||Or&&so(new Or)!=E||Ar&&so(new Ar)!=C)&&(so=function(t){var n=je(t),r=n==x?t.constructor:u,e=r?$o(r):"";if(e)switch(e){case Cr:return R;case Pr:return S;case Rr:return O;case Wr:return E;case Lr:return C}return n});var mo=Pt?Ji:yc;function wo(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||Ct)}function So(t){return t==t&&!Xi(t)}function jo(t,n){return function(r){return null!=r&&r[t]===n&&(n!==u||t in xt(r))}}function xo(t,n,r){return n=gr(n===u?t.length-1:n,0),function(){for(var u=arguments,o=-1,i=gr(u.length-n,0),a=e(i);++o<i;)a[o]=u[n+o];o=-1;for(var c=e(n+1);++o<n;)c[o]=u[o];return c[n]=r(a),xn(t,this,c)}}function Oo(t,n){return n.length<2?t:we(t,tu(n,0,-1))}function Ao(t,n){if(("constructor"!==n||"function"!=typeof t[n])&&"__proto__"!=n)return t[n]}var Eo=Po(Ye),ko=sn||function(t,n){return hn.setTimeout(t,n)},Io=Po(Qe);function Co(t,n,r){var e=n+"";return Io(t,function(t,n){var r=n.length;if(!r)return t;var e=r-1;return n[e]=(r>1?"& ":"")+n[e],n=n.join(r>2?", ":" "),t.replace(ot,"{\n/* [wrapped with "+n+"] */\n")}(e,function(t,n){return An(v,(function(r){var e="_."+r[0];n&r[1]&&!Cn(t,e)&&t.push(e)})),t.sort()}(function(t){var n=t.match(it);return n?n[1].split(at):[]}(e),r)))}function Po(t){var n=0,r=0;return function(){var e=_r(),o=16-(e-r);if(r=e,o>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(u,arguments)}}function Ro(t,n){var r=-1,e=t.length,o=e-1;for(n=n===u?e:n;++r<n;){var i=qe(r,o),a=t[i];t[i]=t[r],t[r]=a}return t.length=n,t}var Wo,Lo,Mo=(Wo=Wi((function(t){var n=[];return 46===t.charCodeAt(0)&&n.push(""),t.replace(tt,(function(t,r,e,u){n.push(e?u.replace(lt,"$1"):r||t)})),n}),(function(t){return 500===Lo.size&&Lo.clear(),t})),Lo=Wo.cache,Wo);function zo(t){if("string"==typeof t||aa(t))return t;var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}function $o(t){if(null!=t){try{return Rt.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function To(t){if(t instanceof Ur)return t.clone();var n=new Nr(t.__wrapped__,t.__chain__);return n.__actions__=Au(t.__actions__),n.__index__=t.__index__,n.__values__=t.__values__,n}var Do=Ke((function(t,n){return Zi(t)?fe(t,ye(n,1,Zi,!0)):[]})),Fo=Ke((function(t,n){var r=Vo(n);return Zi(r)&&(r=u),Zi(t)?fe(t,ye(n,1,Zi,!0),oo(r,2)):[]})),No=Ke((function(t,n){var r=Vo(n);return Zi(r)&&(r=u),Zi(t)?fe(t,ye(n,1,Zi,!0),u,r):[]}));function Uo(t,n,r){var e=null==t?0:t.length;if(!e)return-1;var u=null==r?0:pa(r);return u<0&&(u=gr(e+u,0)),Dn(t,oo(n,3),u)}function Bo(t,n,r){var e=null==t?0:t.length;if(!e)return-1;var o=e-1;return r!==u&&(o=pa(r),o=r<0?gr(e+o,0):dr(o,e-1)),Dn(t,oo(n,3),o,!0)}function Go(t){return null!=t&&t.length?ye(t,1):[]}function qo(t){return t&&t.length?t[0]:u}var Zo=Ke((function(t){var n=Rn(t,vu);return n.length&&n[0]===t[0]?Ee(n):[]})),Ko=Ke((function(t){var n=Vo(t),r=Rn(t,vu);return n===Vo(r)?n=u:r.pop(),r.length&&r[0]===t[0]?Ee(r,oo(n,2)):[]})),Ho=Ke((function(t){var n=Vo(t),r=Rn(t,vu);return(n="function"==typeof n?n:u)&&r.pop(),r.length&&r[0]===t[0]?Ee(r,u,n):[]}));function Vo(t){var n=null==t?0:t.length;return n?t[n-1]:u}var Jo=Ke(Yo);function Yo(t,n){return t&&t.length&&n&&n.length?Be(t,n):t}var Qo=Xu((function(t,n){var r=null==t?0:t.length,e=ue(t,n);return Ge(t,Rn(n,(function(t){return yo(t,r)?+t:t})).sort(ju)),e}));function Xo(t){return null==t?t:wr.call(t)}var ti=Ke((function(t){return au(ye(t,1,Zi,!0))})),ni=Ke((function(t){var n=Vo(t);return Zi(n)&&(n=u),au(ye(t,1,Zi,!0),oo(n,2))})),ri=Ke((function(t){var n=Vo(t);return n="function"==typeof n?n:u,au(ye(t,1,Zi,!0),u,n)}));function ei(t){if(!t||!t.length)return[];var n=0;return t=In(t,(function(t){if(Zi(t))return n=gr(t.length,n),!0})),Hn(n,(function(n){return Rn(t,Gn(n))}))}function ui(t,n){if(!t||!t.length)return[];var r=ei(t);return null==n?r:Rn(r,(function(t){return xn(n,u,t)}))}var oi=Ke((function(t,n){return Zi(t)?fe(t,n):[]})),ii=Ke((function(t){return hu(In(t,Zi))})),ai=Ke((function(t){var n=Vo(t);return Zi(n)&&(n=u),hu(In(t,Zi),oo(n,2))})),ci=Ke((function(t){var n=Vo(t);return n="function"==typeof n?n:u,hu(In(t,Zi),u,n)})),fi=Ke(ei),li=Ke((function(t){var n=t.length,r=n>1?t[n-1]:u;return r="function"==typeof r?(t.pop(),r):u,ui(t,r)}));function si(t){var n=Tr(t);return n.__chain__=!0,n}function hi(t,n){return n(t)}var pi=Xu((function(t){var n=t.length,r=n?t[0]:0,e=this.__wrapped__,o=function(n){return ue(n,t)};return!(n>1||this.__actions__.length)&&e instanceof Ur&&yo(r)?((e=e.slice(r,+r+(n?1:0))).__actions__.push({func:hi,args:[o],thisArg:u}),new Nr(e,this.__chain__).thru((function(t){return n&&!t.length&&t.push(u),t}))):this.thru(o)})),vi=ku((function(t,n,r){Wt.call(t,r)?++t[r]:ee(t,r,1)})),yi=Mu(Uo),gi=Mu(Bo);function di(t,n){return(Bi(t)?An:le)(t,oo(n,3))}function _i(t,n){return(Bi(t)?En:se)(t,oo(n,3))}var bi=ku((function(t,n,r){Wt.call(t,r)?t[r].push(n):ee(t,r,[n])})),mi=Ke((function(t,n,r){var u=-1,o="function"==typeof n,i=qi(t)?e(t.length):[];return le(t,(function(t){i[++u]=o?xn(n,t,r):ke(t,n,r)})),i})),wi=ku((function(t,n,r){ee(t,r,n)}));function Si(t,n){return(Bi(t)?Rn:ze)(t,oo(n,3))}var ji=ku((function(t,n,r){t[r?0:1].push(n)}),(function(){return[[],[]]})),xi=Ke((function(t,n){if(null==t)return[];var r=n.length;return r>1&&go(t,n[0],n[1])?n=[]:r>2&&go(n[0],n[1],n[2])&&(n=[n[0]]),Ne(t,ye(n,1),[])})),Oi=ln||function(){return hn.Date.now()};function Ai(t,n,r){return n=r?u:n,n=t&&null==n?t.length:n,Hu(t,f,u,u,u,u,n)}function Ei(t,n){var r;if("function"!=typeof n)throw new Et(o);return t=pa(t),function(){return--t>0&&(r=n.apply(this,arguments)),t<=1&&(n=u),r}}var ki=Ke((function(t,n,r){var e=1;if(r.length){var u=ar(r,uo(ki));e|=c}return Hu(t,e,n,r,u)})),Ii=Ke((function(t,n,r){var e=3;if(r.length){var u=ar(r,uo(Ii));e|=c}return Hu(n,e,t,r,u)}));function Ci(t,n,r){var e,i,a,c,f,l,s=0,h=!1,p=!1,v=!0;if("function"!=typeof t)throw new Et(o);function y(n){var r=e,o=i;return e=i=u,s=n,c=t.apply(o,r)}function g(t){var r=t-l;return l===u||r>=n||r<0||p&&t-s>=a}function d(){var t=Oi();if(g(t))return _(t);f=ko(d,function(t){var r=n-(t-l);return p?dr(r,a-(t-s)):r}(t))}function _(t){return f=u,v&&e?y(t):(e=i=u,c)}function b(){var t=Oi(),r=g(t);if(e=arguments,i=this,l=t,r){if(f===u)return function(t){return s=t,f=ko(d,n),h?y(t):c}(l);if(p)return bu(f),f=ko(d,n),y(l)}return f===u&&(f=ko(d,n)),c}return n=ya(n)||0,Xi(r)&&(h=!!r.leading,a=(p="maxWait"in r)?gr(ya(r.maxWait)||0,n):a,v="trailing"in r?!!r.trailing:v),b.cancel=function(){f!==u&&bu(f),s=0,e=l=i=f=u},b.flush=function(){return f===u?c:_(Oi())},b}var Pi=Ke((function(t,n){return ce(t,1,n)})),Ri=Ke((function(t,n,r){return ce(t,ya(n)||0,r)}));function Wi(t,n){if("function"!=typeof t||null!=n&&"function"!=typeof n)throw new Et(o);var r=function(){var e=arguments,u=n?n.apply(this,e):e[0],o=r.cache;if(o.has(u))return o.get(u);var i=t.apply(this,e);return r.cache=o.set(u,i)||o,i};return r.cache=new(Wi.Cache||qr),r}function Li(t){if("function"!=typeof t)throw new Et(o);return function(){var n=arguments;switch(n.length){case 0:return!t.call(this);case 1:return!t.call(this,n[0]);case 2:return!t.call(this,n[0],n[1]);case 3:return!t.call(this,n[0],n[1],n[2])}return!t.apply(this,n)}}Wi.Cache=qr;var Mi=du((function(t,n){var r=(n=1==n.length&&Bi(n[0])?Rn(n[0],Jn(oo())):Rn(ye(n,1),Jn(oo()))).length;return Ke((function(e){for(var u=-1,o=dr(e.length,r);++u<o;)e[u]=n[u].call(this,e[u]);return xn(t,this,e)}))})),zi=Ke((function(t,n){var r=ar(n,uo(zi));return Hu(t,c,u,n,r)})),$i=Ke((function(t,n){var r=ar(n,uo($i));return Hu(t,64,u,n,r)})),Ti=Xu((function(t,n){return Hu(t,256,u,u,u,n)}));function Di(t,n){return t===n||t!=t&&n!=n}var Fi=Bu(xe),Ni=Bu((function(t,n){return t>=n})),Ui=Ie(function(){return arguments}())?Ie:function(t){return ta(t)&&Wt.call(t,"callee")&&!Zt.call(t,"callee")},Bi=e.isArray,Gi=_n?Jn(_n):function(t){return ta(t)&&je(t)==P};function qi(t){return null!=t&&Qi(t.length)&&!Ji(t)}function Zi(t){return ta(t)&&qi(t)}var Ki=dn||yc,Hi=bn?Jn(bn):function(t){return ta(t)&&je(t)==_};function Vi(t){if(!ta(t))return!1;var n=je(t);return n==b||"[object DOMException]"==n||"string"==typeof t.message&&"string"==typeof t.name&&!ea(t)}function Ji(t){if(!Xi(t))return!1;var n=je(t);return n==m||n==w||"[object AsyncFunction]"==n||"[object Proxy]"==n}function Yi(t){return"number"==typeof t&&t==pa(t)}function Qi(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=s}function Xi(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}function ta(t){return null!=t&&"object"==typeof t}var na=mn?Jn(mn):function(t){return ta(t)&&so(t)==S};function ra(t){return"number"==typeof t||ta(t)&&je(t)==j}function ea(t){if(!ta(t)||je(t)!=x)return!1;var n=Gt(t);if(null===n)return!0;var r=Wt.call(n,"constructor")&&n.constructor;return"function"==typeof r&&r instanceof r&&Rt.call(r)==$t}var ua=wn?Jn(wn):function(t){return ta(t)&&je(t)==A},oa=Sn?Jn(Sn):function(t){return ta(t)&&so(t)==E};function ia(t){return"string"==typeof t||!Bi(t)&&ta(t)&&je(t)==k}function aa(t){return"symbol"==typeof t||ta(t)&&je(t)==I}var ca=jn?Jn(jn):function(t){return ta(t)&&Qi(t.length)&&!!un[je(t)]},fa=Bu(Me),la=Bu((function(t,n){return t<=n}));function sa(t){if(!t)return[];if(qi(t))return ia(t)?sr(t):Au(t);if(Vt&&t[Vt])return function(t){for(var n,r=[];!(n=t.next()).done;)r.push(n.value);return r}(t[Vt]());var n=so(t);return(n==S?or:n==E?cr:Da)(t)}function ha(t){return t?(t=ya(t))===l||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function pa(t){var n=ha(t),r=n%1;return n==n?r?n-r:n:0}function va(t){return t?oe(pa(t),0,p):0}function ya(t){if("number"==typeof t)return t;if(aa(t))return h;if(Xi(t)){var n="function"==typeof t.valueOf?t.valueOf():t;t=Xi(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=Vn(t);var r=vt.test(t);return r||gt.test(t)?fn(t.slice(2),r?2:8):pt.test(t)?h:+t}function ga(t){return Eu(t,Pa(t))}function da(t){return null==t?"":iu(t)}var _a=Iu((function(t,n){if(wo(n)||qi(n))Eu(n,Ca(n),t);else for(var r in n)Wt.call(n,r)&&Xr(t,r,n[r])})),ba=Iu((function(t,n){Eu(n,Pa(n),t)})),ma=Iu((function(t,n,r,e){Eu(n,Pa(n),t,e)})),wa=Iu((function(t,n,r,e){Eu(n,Ca(n),t,e)})),Sa=Xu(ue),ja=Ke((function(t,n){t=xt(t);var r=-1,e=n.length,o=e>2?n[2]:u;for(o&&go(n[0],n[1],o)&&(e=1);++r<e;)for(var i=n[r],a=Pa(i),c=-1,f=a.length;++c<f;){var l=a[c],s=t[l];(s===u||Di(s,Ct[l])&&!Wt.call(t,l))&&(t[l]=i[l])}return t})),xa=Ke((function(t){return t.push(u,Ju),xn(Wa,u,t)}));function Oa(t,n,r){var e=null==t?u:we(t,n);return e===u?r:e}function Aa(t,n){return null!=t&&ho(t,n,Ae)}var Ea=Tu((function(t,n,r){null!=n&&"function"!=typeof n.toString&&(n=zt.call(n)),t[n]=r}),Xa(rc)),ka=Tu((function(t,n,r){null!=n&&"function"!=typeof n.toString&&(n=zt.call(n)),Wt.call(t,n)?t[n].push(r):t[n]=[r]}),oo),Ia=Ke(ke);function Ca(t){return qi(t)?Hr(t):Le(t)}function Pa(t){return qi(t)?Hr(t,!0):function(t){if(!Xi(t))return function(t){var n=[];if(null!=t)for(var r in xt(t))n.push(r);return n}(t);var n=wo(t),r=[];for(var e in t)("constructor"!=e||!n&&Wt.call(t,e))&&r.push(e);return r}(t)}var Ra=Iu((function(t,n,r){De(t,n,r)})),Wa=Iu((function(t,n,r,e){De(t,n,r,e)})),La=Xu((function(t,n){var r={};if(null==t)return r;var e=!1;n=Rn(n,(function(n){return n=gu(n,t),e||(e=n.length>1),n})),Eu(t,no(t),r),e&&(r=ie(r,7,Yu));for(var u=n.length;u--;)cu(r,n[u]);return r})),Ma=Xu((function(t,n){return null==t?{}:function(t,n){return Ue(t,n,(function(n,r){return Aa(t,r)}))}(t,n)}));function za(t,n){if(null==t)return{};var r=Rn(no(t),(function(t){return[t]}));return n=oo(n),Ue(t,r,(function(t,r){return n(t,r[0])}))}var $a=Ku(Ca),Ta=Ku(Pa);function Da(t){return null==t?[]:Yn(t,Ca(t))}var Fa=Wu((function(t,n,r){return n=n.toLowerCase(),t+(r?Na(n):n)}));function Na(t){return Va(da(t).toLowerCase())}function Ua(t){return(t=da(t))&&t.replace(_t,nr).replace(Yt,"")}var Ba=Wu((function(t,n,r){return t+(r?"-":"")+n.toLowerCase()})),Ga=Wu((function(t,n,r){return t+(r?" ":"")+n.toLowerCase()})),qa=Ru("toLowerCase"),Za=Wu((function(t,n,r){return t+(r?"_":"")+n.toLowerCase()})),Ka=Wu((function(t,n,r){return t+(r?" ":"")+Va(n)})),Ha=Wu((function(t,n,r){return t+(r?" ":"")+n.toUpperCase()})),Va=Ru("toUpperCase");function Ja(t,n,r){return t=da(t),(n=r?u:n)===u?function(t){return nn.test(t)}(t)?function(t){return t.match(Xt)||[]}(t):function(t){return t.match(ct)||[]}(t):t.match(n)||[]}var Ya=Ke((function(t,n){try{return xn(t,u,n)}catch(t){return Vi(t)?t:new wt(t)}})),Qa=Xu((function(t,n){return An(n,(function(n){n=zo(n),ee(t,n,ki(t[n],t))})),t}));function Xa(t){return function(){return t}}var tc=zu(),nc=zu(!0);function rc(t){return t}function ec(t){return We("function"==typeof t?t:ie(t,1))}var uc=Ke((function(t,n){return function(r){return ke(r,t,n)}})),oc=Ke((function(t,n){return function(r){return ke(t,r,n)}}));function ic(t,n,r){var e=Ca(n),u=me(n,e);null!=r||Xi(n)&&(u.length||!e.length)||(r=n,n=t,t=this,u=me(n,Ca(n)));var o=!(Xi(r)&&"chain"in r&&!r.chain),i=Ji(t);return An(u,(function(r){var e=n[r];t[r]=e,i&&(t.prototype[r]=function(){var n=this.__chain__;if(o||n){var r=t(this.__wrapped__);return(r.__actions__=Au(this.__actions__)).push({func:e,args:arguments,thisArg:t}),r.__chain__=n,r}return e.apply(t,Wn([this.value()],arguments))})})),t}function ac(){}var cc=Fu(Rn),fc=Fu(kn),lc=Fu(zn);function sc(t){return _o(t)?Gn(zo(t)):function(t){return function(n){return we(n,t)}}(t)}var hc=Uu(),pc=Uu(!0);function vc(){return[]}function yc(){return!1}var gc,dc=Du((function(t,n){return t+n}),0),_c=qu("ceil"),bc=Du((function(t,n){return t/n}),1),mc=qu("floor"),wc=Du((function(t,n){return t*n}),1),Sc=qu("round"),jc=Du((function(t,n){return t-n}),0);return Tr.after=function(t,n){if("function"!=typeof n)throw new Et(o);return t=pa(t),function(){if(--t<1)return n.apply(this,arguments)}},Tr.ary=Ai,Tr.assign=_a,Tr.assignIn=ba,Tr.assignInWith=ma,Tr.assignWith=wa,Tr.at=Sa,Tr.before=Ei,Tr.bind=ki,Tr.bindAll=Qa,Tr.bindKey=Ii,Tr.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Bi(t)?t:[t]},Tr.chain=si,Tr.chunk=function(t,n,r){n=(r?go(t,n,r):n===u)?1:gr(pa(n),0);var o=null==t?0:t.length;if(!o||n<1)return[];for(var i=0,a=0,c=e(pn(o/n));i<o;)c[a++]=tu(t,i,i+=n);return c},Tr.compact=function(t){for(var n=-1,r=null==t?0:t.length,e=0,u=[];++n<r;){var o=t[n];o&&(u[e++]=o)}return u},Tr.concat=function(){var t=arguments.length;if(!t)return[];for(var n=e(t-1),r=arguments[0],u=t;u--;)n[u-1]=arguments[u];return Wn(Bi(r)?Au(r):[r],ye(n,1))},Tr.cond=function(t){var n=null==t?0:t.length,r=oo();return t=n?Rn(t,(function(t){if("function"!=typeof t[1])throw new Et(o);return[r(t[0]),t[1]]})):[],Ke((function(r){for(var e=-1;++e<n;){var u=t[e];if(xn(u[0],this,r))return xn(u[1],this,r)}}))},Tr.conforms=function(t){return function(t){var n=Ca(t);return function(r){return ae(r,t,n)}}(ie(t,1))},Tr.constant=Xa,Tr.countBy=vi,Tr.create=function(t,n){var r=Dr(t);return null==n?r:re(r,n)},Tr.curry=function t(n,r,e){var o=Hu(n,8,u,u,u,u,u,r=e?u:r);return o.placeholder=t.placeholder,o},Tr.curryRight=function t(n,r,e){var o=Hu(n,16,u,u,u,u,u,r=e?u:r);return o.placeholder=t.placeholder,o},Tr.debounce=Ci,Tr.defaults=ja,Tr.defaultsDeep=xa,Tr.defer=Pi,Tr.delay=Ri,Tr.difference=Do,Tr.differenceBy=Fo,Tr.differenceWith=No,Tr.drop=function(t,n,r){var e=null==t?0:t.length;return e?tu(t,(n=r||n===u?1:pa(n))<0?0:n,e):[]},Tr.dropRight=function(t,n,r){var e=null==t?0:t.length;return e?tu(t,0,(n=e-(n=r||n===u?1:pa(n)))<0?0:n):[]},Tr.dropRightWhile=function(t,n){return t&&t.length?lu(t,oo(n,3),!0,!0):[]},Tr.dropWhile=function(t,n){return t&&t.length?lu(t,oo(n,3),!0):[]},Tr.fill=function(t,n,r,e){var o=null==t?0:t.length;return o?(r&&"number"!=typeof r&&go(t,n,r)&&(r=0,e=o),function(t,n,r,e){var o=t.length;for((r=pa(r))<0&&(r=-r>o?0:o+r),(e=e===u||e>o?o:pa(e))<0&&(e+=o),e=r>e?0:va(e);r<e;)t[r++]=n;return t}(t,n,r,e)):[]},Tr.filter=function(t,n){return(Bi(t)?In:ve)(t,oo(n,3))},Tr.flatMap=function(t,n){return ye(Si(t,n),1)},Tr.flatMapDeep=function(t,n){return ye(Si(t,n),l)},Tr.flatMapDepth=function(t,n,r){return r=r===u?1:pa(r),ye(Si(t,n),r)},Tr.flatten=Go,Tr.flattenDeep=function(t){return null!=t&&t.length?ye(t,l):[]},Tr.flattenDepth=function(t,n){return null!=t&&t.length?ye(t,n=n===u?1:pa(n)):[]},Tr.flip=function(t){return Hu(t,512)},Tr.flow=tc,Tr.flowRight=nc,Tr.fromPairs=function(t){for(var n=-1,r=null==t?0:t.length,e={};++n<r;){var u=t[n];e[u[0]]=u[1]}return e},Tr.functions=function(t){return null==t?[]:me(t,Ca(t))},Tr.functionsIn=function(t){return null==t?[]:me(t,Pa(t))},Tr.groupBy=bi,Tr.initial=function(t){return null!=t&&t.length?tu(t,0,-1):[]},Tr.intersection=Zo,Tr.intersectionBy=Ko,Tr.intersectionWith=Ho,Tr.invert=Ea,Tr.invertBy=ka,Tr.invokeMap=mi,Tr.iteratee=ec,Tr.keyBy=wi,Tr.keys=Ca,Tr.keysIn=Pa,Tr.map=Si,Tr.mapKeys=function(t,n){var r={};return n=oo(n,3),_e(t,(function(t,e,u){ee(r,n(t,e,u),t)})),r},Tr.mapValues=function(t,n){var r={};return n=oo(n,3),_e(t,(function(t,e,u){ee(r,e,n(t,e,u))})),r},Tr.matches=function(t){return $e(ie(t,1))},Tr.matchesProperty=function(t,n){return Te(t,ie(n,1))},Tr.memoize=Wi,Tr.merge=Ra,Tr.mergeWith=Wa,Tr.method=uc,Tr.methodOf=oc,Tr.mixin=ic,Tr.negate=Li,Tr.nthArg=function(t){return t=pa(t),Ke((function(n){return Fe(n,t)}))},Tr.omit=La,Tr.omitBy=function(t,n){return za(t,Li(oo(n)))},Tr.once=function(t){return Ei(2,t)},Tr.orderBy=function(t,n,r,e){return null==t?[]:(Bi(n)||(n=null==n?[]:[n]),Bi(r=e?u:r)||(r=null==r?[]:[r]),Ne(t,n,r))},Tr.over=cc,Tr.overArgs=Mi,Tr.overEvery=fc,Tr.overSome=lc,Tr.partial=zi,Tr.partialRight=$i,Tr.partition=ji,Tr.pick=Ma,Tr.pickBy=za,Tr.property=sc,Tr.propertyOf=function(t){return function(n){return null==t?u:we(t,n)}},Tr.pull=Jo,Tr.pullAll=Yo,Tr.pullAllBy=function(t,n,r){return t&&t.length&&n&&n.length?Be(t,n,oo(r,2)):t},Tr.pullAllWith=function(t,n,r){return t&&t.length&&n&&n.length?Be(t,n,u,r):t},Tr.pullAt=Qo,Tr.range=hc,Tr.rangeRight=pc,Tr.rearg=Ti,Tr.reject=function(t,n){return(Bi(t)?In:ve)(t,Li(oo(n,3)))},Tr.remove=function(t,n){var r=[];if(!t||!t.length)return r;var e=-1,u=[],o=t.length;for(n=oo(n,3);++e<o;){var i=t[e];n(i,e,t)&&(r.push(i),u.push(e))}return Ge(t,u),r},Tr.rest=function(t,n){if("function"!=typeof t)throw new Et(o);return Ke(t,n=n===u?n:pa(n))},Tr.reverse=Xo,Tr.sampleSize=function(t,n,r){return n=(r?go(t,n,r):n===u)?1:pa(n),(Bi(t)?Jr:Ve)(t,n)},Tr.set=function(t,n,r){return null==t?t:Je(t,n,r)},Tr.setWith=function(t,n,r,e){return e="function"==typeof e?e:u,null==t?t:Je(t,n,r,e)},Tr.shuffle=function(t){return(Bi(t)?Yr:Xe)(t)},Tr.slice=function(t,n,r){var e=null==t?0:t.length;return e?(r&&"number"!=typeof r&&go(t,n,r)?(n=0,r=e):(n=null==n?0:pa(n),r=r===u?e:pa(r)),tu(t,n,r)):[]},Tr.sortBy=xi,Tr.sortedUniq=function(t){return t&&t.length?uu(t):[]},Tr.sortedUniqBy=function(t,n){return t&&t.length?uu(t,oo(n,2)):[]},Tr.split=function(t,n,r){return r&&"number"!=typeof r&&go(t,n,r)&&(n=r=u),(r=r===u?p:r>>>0)?(t=da(t))&&("string"==typeof n||null!=n&&!ua(n))&&!(n=iu(n))&&ur(t)?_u(sr(t),0,r):t.split(n,r):[]},Tr.spread=function(t,n){if("function"!=typeof t)throw new Et(o);return n=null==n?0:gr(pa(n),0),Ke((function(r){var e=r[n],u=_u(r,0,n);return e&&Wn(u,e),xn(t,this,u)}))},Tr.tail=function(t){var n=null==t?0:t.length;return n?tu(t,1,n):[]},Tr.take=function(t,n,r){return t&&t.length?tu(t,0,(n=r||n===u?1:pa(n))<0?0:n):[]},Tr.takeRight=function(t,n,r){var e=null==t?0:t.length;return e?tu(t,(n=e-(n=r||n===u?1:pa(n)))<0?0:n,e):[]},Tr.takeRightWhile=function(t,n){return t&&t.length?lu(t,oo(n,3),!1,!0):[]},Tr.takeWhile=function(t,n){return t&&t.length?lu(t,oo(n,3)):[]},Tr.tap=function(t,n){return n(t),t},Tr.throttle=function(t,n,r){var e=!0,u=!0;if("function"!=typeof t)throw new Et(o);return Xi(r)&&(e="leading"in r?!!r.leading:e,u="trailing"in r?!!r.trailing:u),Ci(t,n,{leading:e,maxWait:n,trailing:u})},Tr.thru=hi,Tr.toArray=sa,Tr.toPairs=$a,Tr.toPairsIn=Ta,Tr.toPath=function(t){return Bi(t)?Rn(t,zo):aa(t)?[t]:Au(Mo(da(t)))},Tr.toPlainObject=ga,Tr.transform=function(t,n,r){var e=Bi(t),u=e||Ki(t)||ca(t);if(n=oo(n,4),null==r){var o=t&&t.constructor;r=u?e?new o:[]:Xi(t)&&Ji(o)?Dr(Gt(t)):{}}return(u?An:_e)(t,(function(t,e,u){return n(r,t,e,u)})),r},Tr.unary=function(t){return Ai(t,1)},Tr.union=ti,Tr.unionBy=ni,Tr.unionWith=ri,Tr.uniq=function(t){return t&&t.length?au(t):[]},Tr.uniqBy=function(t,n){return t&&t.length?au(t,oo(n,2)):[]},Tr.uniqWith=function(t,n){return n="function"==typeof n?n:u,t&&t.length?au(t,u,n):[]},Tr.unset=function(t,n){return null==t||cu(t,n)},Tr.unzip=ei,Tr.unzipWith=ui,Tr.update=function(t,n,r){return null==t?t:fu(t,n,yu(r))},Tr.updateWith=function(t,n,r,e){return e="function"==typeof e?e:u,null==t?t:fu(t,n,yu(r),e)},Tr.values=Da,Tr.valuesIn=function(t){return null==t?[]:Yn(t,Pa(t))},Tr.without=oi,Tr.words=Ja,Tr.wrap=function(t,n){return zi(yu(n),t)},Tr.xor=ii,Tr.xorBy=ai,Tr.xorWith=ci,Tr.zip=fi,Tr.zipObject=function(t,n){return pu(t||[],n||[],Xr)},Tr.zipObjectDeep=function(t,n){return pu(t||[],n||[],Je)},Tr.zipWith=li,Tr.entries=$a,Tr.entriesIn=Ta,Tr.extend=ba,Tr.extendWith=ma,ic(Tr,Tr),Tr.add=dc,Tr.attempt=Ya,Tr.camelCase=Fa,Tr.capitalize=Na,Tr.ceil=_c,Tr.clamp=function(t,n,r){return r===u&&(r=n,n=u),r!==u&&(r=(r=ya(r))==r?r:0),n!==u&&(n=(n=ya(n))==n?n:0),oe(ya(t),n,r)},Tr.clone=function(t){return ie(t,4)},Tr.cloneDeep=function(t){return ie(t,5)},Tr.cloneDeepWith=function(t,n){return ie(t,5,n="function"==typeof n?n:u)},Tr.cloneWith=function(t,n){return ie(t,4,n="function"==typeof n?n:u)},Tr.conformsTo=function(t,n){return null==n||ae(t,n,Ca(n))},Tr.deburr=Ua,Tr.defaultTo=function(t,n){return null==t||t!=t?n:t},Tr.divide=bc,Tr.endsWith=function(t,n,r){t=da(t),n=iu(n);var e=t.length,o=r=r===u?e:oe(pa(r),0,e);return(r-=n.length)>=0&&t.slice(r,o)==n},Tr.eq=Di,Tr.escape=function(t){return(t=da(t))&&H.test(t)?t.replace(Z,rr):t},Tr.escapeRegExp=function(t){return(t=da(t))&&rt.test(t)?t.replace(nt,"\\$&"):t},Tr.every=function(t,n,r){var e=Bi(t)?kn:he;return r&&go(t,n,r)&&(n=u),e(t,oo(n,3))},Tr.find=yi,Tr.findIndex=Uo,Tr.findKey=function(t,n){return Tn(t,oo(n,3),_e)},Tr.findLast=gi,Tr.findLastIndex=Bo,Tr.findLastKey=function(t,n){return Tn(t,oo(n,3),be)},Tr.floor=mc,Tr.forEach=di,Tr.forEachRight=_i,Tr.forIn=function(t,n){return null==t?t:ge(t,oo(n,3),Pa)},Tr.forInRight=function(t,n){return null==t?t:de(t,oo(n,3),Pa)},Tr.forOwn=function(t,n){return t&&_e(t,oo(n,3))},Tr.forOwnRight=function(t,n){return t&&be(t,oo(n,3))},Tr.get=Oa,Tr.gt=Fi,Tr.gte=Ni,Tr.has=function(t,n){return null!=t&&ho(t,n,Oe)},Tr.hasIn=Aa,Tr.head=qo,Tr.identity=rc,Tr.includes=function(t,n,r,e){t=qi(t)?t:Da(t),r=r&&!e?pa(r):0;var u=t.length;return r<0&&(r=gr(u+r,0)),ia(t)?r<=u&&t.indexOf(n,r)>-1:!!u&&Fn(t,n,r)>-1},Tr.indexOf=function(t,n,r){var e=null==t?0:t.length;if(!e)return-1;var u=null==r?0:pa(r);return u<0&&(u=gr(e+u,0)),Fn(t,n,u)},Tr.inRange=function(t,n,r){return n=ha(n),r===u?(r=n,n=0):r=ha(r),function(t,n,r){return t>=dr(n,r)&&t<gr(n,r)}(t=ya(t),n,r)},Tr.invoke=Ia,Tr.isArguments=Ui,Tr.isArray=Bi,Tr.isArrayBuffer=Gi,Tr.isArrayLike=qi,Tr.isArrayLikeObject=Zi,Tr.isBoolean=function(t){return!0===t||!1===t||ta(t)&&je(t)==d},Tr.isBuffer=Ki,Tr.isDate=Hi,Tr.isElement=function(t){return ta(t)&&1===t.nodeType&&!ea(t)},Tr.isEmpty=function(t){if(null==t)return!0;if(qi(t)&&(Bi(t)||"string"==typeof t||"function"==typeof t.splice||Ki(t)||ca(t)||Ui(t)))return!t.length;var n=so(t);if(n==S||n==E)return!t.size;if(wo(t))return!Le(t).length;for(var r in t)if(Wt.call(t,r))return!1;return!0},Tr.isEqual=function(t,n){return Ce(t,n)},Tr.isEqualWith=function(t,n,r){var e=(r="function"==typeof r?r:u)?r(t,n):u;return e===u?Ce(t,n,u,r):!!e},Tr.isError=Vi,Tr.isFinite=function(t){return"number"==typeof t&&$n(t)},Tr.isFunction=Ji,Tr.isInteger=Yi,Tr.isLength=Qi,Tr.isMap=na,Tr.isMatch=function(t,n){return t===n||Pe(t,n,ao(n))},Tr.isMatchWith=function(t,n,r){return r="function"==typeof r?r:u,Pe(t,n,ao(n),r)},Tr.isNaN=function(t){return ra(t)&&t!=+t},Tr.isNative=function(t){if(mo(t))throw new wt("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Re(t)},Tr.isNil=function(t){return null==t},Tr.isNull=function(t){return null===t},Tr.isNumber=ra,Tr.isObject=Xi,Tr.isObjectLike=ta,Tr.isPlainObject=ea,Tr.isRegExp=ua,Tr.isSafeInteger=function(t){return Yi(t)&&t>=-9007199254740991&&t<=s},Tr.isSet=oa,Tr.isString=ia,Tr.isSymbol=aa,Tr.isTypedArray=ca,Tr.isUndefined=function(t){return t===u},Tr.isWeakMap=function(t){return ta(t)&&so(t)==C},Tr.isWeakSet=function(t){return ta(t)&&"[object WeakSet]"==je(t)},Tr.join=function(t,n){return null==t?"":qn.call(t,n)},Tr.kebabCase=Ba,Tr.last=Vo,Tr.lastIndexOf=function(t,n,r){var e=null==t?0:t.length;if(!e)return-1;var o=e;return r!==u&&(o=(o=pa(r))<0?gr(e+o,0):dr(o,e-1)),n==n?function(t,n,r){for(var e=r+1;e--;)if(t[e]===n)return e;return e}(t,n,o):Dn(t,Un,o,!0)},Tr.lowerCase=Ga,Tr.lowerFirst=qa,Tr.lt=fa,Tr.lte=la,Tr.max=function(t){return t&&t.length?pe(t,rc,xe):u},Tr.maxBy=function(t,n){return t&&t.length?pe(t,oo(n,2),xe):u},Tr.mean=function(t){return Bn(t,rc)},Tr.meanBy=function(t,n){return Bn(t,oo(n,2))},Tr.min=function(t){return t&&t.length?pe(t,rc,Me):u},Tr.minBy=function(t,n){return t&&t.length?pe(t,oo(n,2),Me):u},Tr.stubArray=vc,Tr.stubFalse=yc,Tr.stubObject=function(){return{}},Tr.stubString=function(){return""},Tr.stubTrue=function(){return!0},Tr.multiply=wc,Tr.nth=function(t,n){return t&&t.length?Fe(t,pa(n)):u},Tr.noConflict=function(){return hn._===this&&(hn._=Tt),this},Tr.noop=ac,Tr.now=Oi,Tr.pad=function(t,n,r){t=da(t);var e=(n=pa(n))?lr(t):0;if(!n||e>=n)return t;var u=(n-e)/2;return Nu(vn(u),r)+t+Nu(pn(u),r)},Tr.padEnd=function(t,n,r){t=da(t);var e=(n=pa(n))?lr(t):0;return n&&e<n?t+Nu(n-e,r):t},Tr.padStart=function(t,n,r){t=da(t);var e=(n=pa(n))?lr(t):0;return n&&e<n?Nu(n-e,r)+t:t},Tr.parseInt=function(t,n,r){return r||null==n?n=0:n&&(n=+n),br(da(t).replace(et,""),n||0)},Tr.random=function(t,n,r){if(r&&"boolean"!=typeof r&&go(t,n,r)&&(n=r=u),r===u&&("boolean"==typeof n?(r=n,n=u):"boolean"==typeof t&&(r=t,t=u)),t===u&&n===u?(t=0,n=1):(t=ha(t),n===u?(n=t,t=0):n=ha(n)),t>n){var e=t;t=n,n=e}if(r||t%1||n%1){var o=mr();return dr(t+o*(n-t+cn("1e-"+((o+"").length-1))),n)}return qe(t,n)},Tr.reduce=function(t,n,r){var e=Bi(t)?Ln:Zn,u=arguments.length<3;return e(t,oo(n,4),r,u,le)},Tr.reduceRight=function(t,n,r){var e=Bi(t)?Mn:Zn,u=arguments.length<3;return e(t,oo(n,4),r,u,se)},Tr.repeat=function(t,n,r){return n=(r?go(t,n,r):n===u)?1:pa(n),Ze(da(t),n)},Tr.replace=function(){var t=arguments,n=da(t[0]);return t.length<3?n:n.replace(t[1],t[2])},Tr.result=function(t,n,r){var e=-1,o=(n=gu(n,t)).length;for(o||(o=1,t=u);++e<o;){var i=null==t?u:t[zo(n[e])];i===u&&(e=o,i=r),t=Ji(i)?i.call(t):i}return t},Tr.round=Sc,Tr.runInContext=t,Tr.sample=function(t){return(Bi(t)?Vr:He)(t)},Tr.size=function(t){if(null==t)return 0;if(qi(t))return ia(t)?lr(t):t.length;var n=so(t);return n==S||n==E?t.size:Le(t).length},Tr.snakeCase=Za,Tr.some=function(t,n,r){var e=Bi(t)?zn:nu;return r&&go(t,n,r)&&(n=u),e(t,oo(n,3))},Tr.sortedIndex=function(t,n){return ru(t,n)},Tr.sortedIndexBy=function(t,n,r){return eu(t,n,oo(r,2))},Tr.sortedIndexOf=function(t,n){var r=null==t?0:t.length;if(r){var e=ru(t,n);if(e<r&&Di(t[e],n))return e}return-1},Tr.sortedLastIndex=function(t,n){return ru(t,n,!0)},Tr.sortedLastIndexBy=function(t,n,r){return eu(t,n,oo(r,2),!0)},Tr.sortedLastIndexOf=function(t,n){if(null!=t&&t.length){var r=ru(t,n,!0)-1;if(Di(t[r],n))return r}return-1},Tr.startCase=Ka,Tr.startsWith=function(t,n,r){return t=da(t),r=null==r?0:oe(pa(r),0,t.length),n=iu(n),t.slice(r,r+n.length)==n},Tr.subtract=jc,Tr.sum=function(t){return t&&t.length?Kn(t,rc):0},Tr.sumBy=function(t,n){return t&&t.length?Kn(t,oo(n,2)):0},Tr.template=function(t,n,r){var e=Tr.templateSettings;r&&go(t,n,r)&&(n=u),t=da(t),n=ma({},n,e,Vu);var o,i,a=ma({},n.imports,e.imports,Vu),c=Ca(a),f=Yn(a,c),l=0,s=n.interpolate||bt,h="__p += '",p=Ot((n.escape||bt).source+"|"+s.source+"|"+(s===Y?st:bt).source+"|"+(n.evaluate||bt).source+"|$","g"),v="//# sourceURL="+(Wt.call(n,"sourceURL")?(n.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++en+"]")+"\n";t.replace(p,(function(n,r,e,u,a,c){return e||(e=u),h+=t.slice(l,c).replace(mt,er),r&&(o=!0,h+="' +\n__e("+r+") +\n'"),a&&(i=!0,h+="';\n"+a+";\n__p += '"),e&&(h+="' +\n((__t = ("+e+")) == null ? '' : __t) +\n'"),l=c+n.length,n})),h+="';\n";var y=Wt.call(n,"variable")&&n.variable;if(y){if(ft.test(y))throw new wt("Invalid `variable` option passed into `_.template`")}else h="with (obj) {\n"+h+"\n}\n";h=(i?h.replace(U,""):h).replace(B,"$1").replace(G,"$1;"),h="function("+(y||"obj")+") {\n"+(y?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(i?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var g=Ya((function(){return St(c,v+"return "+h).apply(u,f)}));if(g.source=h,Vi(g))throw g;return g},Tr.times=function(t,n){if((t=pa(t))<1||t>s)return[];var r=p,e=dr(t,p);n=oo(n),t-=p;for(var u=Hn(e,n);++r<t;)n(r);return u},Tr.toFinite=ha,Tr.toInteger=pa,Tr.toLength=va,Tr.toLower=function(t){return da(t).toLowerCase()},Tr.toNumber=ya,Tr.toSafeInteger=function(t){return t?oe(pa(t),-9007199254740991,s):0===t?t:0},Tr.toString=da,Tr.toUpper=function(t){return da(t).toUpperCase()},Tr.trim=function(t,n,r){if((t=da(t))&&(r||n===u))return Vn(t);if(!t||!(n=iu(n)))return t;var e=sr(t),o=sr(n);return _u(e,Xn(e,o),tr(e,o)+1).join("")},Tr.trimEnd=function(t,n,r){if((t=da(t))&&(r||n===u))return t.slice(0,hr(t)+1);if(!t||!(n=iu(n)))return t;var e=sr(t);return _u(e,0,tr(e,sr(n))+1).join("")},Tr.trimStart=function(t,n,r){if((t=da(t))&&(r||n===u))return t.replace(et,"");if(!t||!(n=iu(n)))return t;var e=sr(t);return _u(e,Xn(e,sr(n))).join("")},Tr.truncate=function(t,n){var r=30,e="...";if(Xi(n)){var o="separator"in n?n.separator:o;r="length"in n?pa(n.length):r,e="omission"in n?iu(n.omission):e}var i=(t=da(t)).length;if(ur(t)){var a=sr(t);i=a.length}if(r>=i)return t;var c=r-lr(e);if(c<1)return e;var f=a?_u(a,0,c).join(""):t.slice(0,c);if(o===u)return f+e;if(a&&(c+=f.length-c),ua(o)){if(t.slice(c).search(o)){var l,s=f;for(o.global||(o=Ot(o.source,da(ht.exec(o))+"g")),o.lastIndex=0;l=o.exec(s);)var h=l.index;f=f.slice(0,h===u?c:h)}}else if(t.indexOf(iu(o),c)!=c){var p=f.lastIndexOf(o);p>-1&&(f=f.slice(0,p))}return f+e},Tr.unescape=function(t){return(t=da(t))&&K.test(t)?t.replace(q,pr):t},Tr.uniqueId=function(t){var n=++Lt;return da(t)+n},Tr.upperCase=Ha,Tr.upperFirst=Va,Tr.each=di,Tr.eachRight=_i,Tr.first=qo,ic(Tr,(gc={},_e(Tr,(function(t,n){Wt.call(Tr.prototype,n)||(gc[n]=t)})),gc),{chain:!1}),Tr.VERSION="4.17.21",An(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Tr[t].placeholder=Tr})),An(["drop","take"],(function(t,n){Ur.prototype[t]=function(r){r=r===u?1:gr(pa(r),0);var e=this.__filtered__&&!n?new Ur(this):this.clone();return e.__filtered__?e.__takeCount__=dr(r,e.__takeCount__):e.__views__.push({size:dr(r,p),type:t+(e.__dir__<0?"Right":"")}),e},Ur.prototype[t+"Right"]=function(n){return this.reverse()[t](n).reverse()}})),An(["filter","map","takeWhile"],(function(t,n){var r=n+1,e=1==r||3==r;Ur.prototype[t]=function(t){var n=this.clone();return n.__iteratees__.push({iteratee:oo(t,3),type:r}),n.__filtered__=n.__filtered__||e,n}})),An(["head","last"],(function(t,n){var r="take"+(n?"Right":"");Ur.prototype[t]=function(){return this[r](1).value()[0]}})),An(["initial","tail"],(function(t,n){var r="drop"+(n?"":"Right");Ur.prototype[t]=function(){return this.__filtered__?new Ur(this):this[r](1)}})),Ur.prototype.compact=function(){return this.filter(rc)},Ur.prototype.find=function(t){return this.filter(t).head()},Ur.prototype.findLast=function(t){return this.reverse().find(t)},Ur.prototype.invokeMap=Ke((function(t,n){return"function"==typeof t?new Ur(this):this.map((function(r){return ke(r,t,n)}))})),Ur.prototype.reject=function(t){return this.filter(Li(oo(t)))},Ur.prototype.slice=function(t,n){t=pa(t);var r=this;return r.__filtered__&&(t>0||n<0)?new Ur(r):(t<0?r=r.takeRight(-t):t&&(r=r.drop(t)),n!==u&&(r=(n=pa(n))<0?r.dropRight(-n):r.take(n-t)),r)},Ur.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Ur.prototype.toArray=function(){return this.take(p)},_e(Ur.prototype,(function(t,n){var r=/^(?:filter|find|map|reject)|While$/.test(n),e=/^(?:head|last)$/.test(n),o=Tr[e?"take"+("last"==n?"Right":""):n],i=e||/^find/.test(n);o&&(Tr.prototype[n]=function(){var n=this.__wrapped__,a=e?[1]:arguments,c=n instanceof Ur,f=a[0],l=c||Bi(n),s=function(t){var n=o.apply(Tr,Wn([t],a));return e&&h?n[0]:n};l&&r&&"function"==typeof f&&1!=f.length&&(c=l=!1);var h=this.__chain__,p=!!this.__actions__.length,v=i&&!h,y=c&&!p;if(!i&&l){n=y?n:new Ur(this);var g=t.apply(n,a);return g.__actions__.push({func:hi,args:[s],thisArg:u}),new Nr(g,h)}return v&&y?t.apply(this,a):(g=this.thru(s),v?e?g.value()[0]:g.value():g)})})),An(["pop","push","shift","sort","splice","unshift"],(function(t){var n=kt[t],r=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",e=/^(?:pop|shift)$/.test(t);Tr.prototype[t]=function(){var t=arguments;if(e&&!this.__chain__){var u=this.value();return n.apply(Bi(u)?u:[],t)}return this[r]((function(r){return n.apply(Bi(r)?r:[],t)}))}})),_e(Ur.prototype,(function(t,n){var r=Tr[n];if(r){var e=r.name+"";Wt.call(Ir,e)||(Ir[e]=[]),Ir[e].push({name:n,func:r})}})),Ir[$u(u,2).name]=[{name:"wrapper",func:u}],Ur.prototype.clone=function(){var t=new Ur(this.__wrapped__);return t.__actions__=Au(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Au(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Au(this.__views__),t},Ur.prototype.reverse=function(){if(this.__filtered__){var t=new Ur(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Ur.prototype.value=function(){var t=this.__wrapped__.value(),n=this.__dir__,r=Bi(t),e=n<0,u=r?t.length:0,o=function(t,n,r){for(var e=-1,u=r.length;++e<u;){var o=r[e],i=o.size;switch(o.type){case"drop":t+=i;break;case"dropRight":n-=i;break;case"take":n=dr(n,t+i);break;case"takeRight":t=gr(t,n-i)}}return{start:t,end:n}}(0,u,this.__views__),i=o.start,a=o.end,c=a-i,f=e?a:i-1,l=this.__iteratees__,s=l.length,h=0,p=dr(c,this.__takeCount__);if(!r||!e&&u==c&&p==c)return su(t,this.__actions__);var v=[];t:for(;c--&&h<p;){for(var y=-1,g=t[f+=n];++y<s;){var d=l[y],_=d.iteratee,b=d.type,m=_(g);if(2==b)g=m;else if(!m){if(1==b)continue t;break t}}v[h++]=g}return v},Tr.prototype.at=pi,Tr.prototype.chain=function(){return si(this)},Tr.prototype.commit=function(){return new Nr(this.value(),this.__chain__)},Tr.prototype.next=function(){this.__values__===u&&(this.__values__=sa(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?u:this.__values__[this.__index__++]}},Tr.prototype.plant=function(t){for(var n,r=this;r instanceof Fr;){var e=To(r);e.__index__=0,e.__values__=u,n?o.__wrapped__=e:n=e;var o=e;r=r.__wrapped__}return o.__wrapped__=t,n},Tr.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Ur){var n=t;return this.__actions__.length&&(n=new Ur(this)),(n=n.reverse()).__actions__.push({func:hi,args:[Xo],thisArg:u}),new Nr(n,this.__chain__)}return this.thru(Xo)},Tr.prototype.toJSON=Tr.prototype.valueOf=Tr.prototype.value=function(){return su(this.__wrapped__,this.__actions__)},Tr.prototype.first=Tr.prototype.head,Vt&&(Tr.prototype[Vt]=function(){return this}),Tr}();hn._=vr,(e=function(){return vr}.call(n,r,n,t))===u||(t.exports=e)}.call(this)},156:n=>{"use strict";n.exports=t}},r={};function e(t){var u=r[t];if(void 0!==u)return u.exports;var o=r[t]={id:t,loaded:!1,exports:{}};return n[t].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}return e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),e.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),e(991)})()));
@@ -0,0 +1,10 @@
1
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
2
+
3
+ /**
4
+ * @license
5
+ * Lodash <https://lodash.com/>
6
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
7
+ * Released under MIT license <https://lodash.com/license>
8
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
9
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
10
+ */
@@ -0,0 +1,27 @@
1
+ import { StateGetter, UnsubscribeCallback, SelectorCallback, UseHookConfig, SubscribeToEmitter, StateHook } from './GlobalStore.types';
2
+ /**
3
+ * @description
4
+ * This function allows you to create a derivate state by merging the state of multiple hooks.
5
+ * The update of the derivate state is debounced to avoid unnecessary re-renders.
6
+ * By default, the debounce delay is 0, but you can change it by passing a delay in milliseconds as the third parameter.
7
+ * @returns a tuple with the following elements: [subscribe, getState, dispose]
8
+ */
9
+ export declare const combineAsyncGettersEmitter: <TDerivate, TArguments extends StateGetter<unknown>[], TResults = { [K in keyof TArguments]: TArguments[K] extends () => infer TResult ? Exclude<TResult, UnsubscribeCallback> : never; }>(parameters: {
10
+ selector: SelectorCallback<TResults, TDerivate>;
11
+ config?: UseHookConfig<TDerivate> & {
12
+ delay?: number;
13
+ };
14
+ }, ...args: TArguments) => [subscribe: SubscribeToEmitter<TDerivate>, getState: StateGetter<TDerivate>, dispose: UnsubscribeCallback];
15
+ /**
16
+ * @description
17
+ * This function allows you to create a derivate state by merging the state of multiple hooks.
18
+ * The update of the derivate state is debounced to avoid unnecessary re-renders.
19
+ * By default, the debounce delay is 0, but you can change it by passing a delay in milliseconds as the third parameter.
20
+ * @returns A tuple containing the subscribe function, the state getter and the dispose function
21
+ */
22
+ export declare const combineAsyncGetters: <TDerivate, TArguments extends StateGetter<unknown>[], TResults = { [K in keyof TArguments]: TArguments[K] extends () => infer TResult ? Exclude<TResult, UnsubscribeCallback> : never; }>(parameters: {
23
+ selector: SelectorCallback<TResults, TDerivate>;
24
+ config?: UseHookConfig<TDerivate> & {
25
+ delay?: number;
26
+ };
27
+ }, ...args: TArguments) => [useHook: StateHook<TDerivate, null, null>, getState: StateGetter<TDerivate>, dispose: UnsubscribeCallback];
@@ -0,0 +1,201 @@
1
+ import { ActionCollectionConfig, StateSetter, GlobalStoreConfig, ActionCollectionResult, StateConfigCallbackParam, MetadataSetter, UseHookConfig, StateGetter, SubscribeCallbackConfig, SubscribeCallback, SelectorCallback, SubscriberParameters, SubscriptionCallback, MetadataGetter } from "./GlobalStore.types";
2
+ export declare const throwNoSubscribersWereAdded: () => never;
3
+ /**
4
+ * The GlobalStore class is the main class of the library and it is used to create a GlobalStore instances
5
+ * @template {TState} TState - The type of the state object
6
+ * @template {TMetadata} TMetadata - The type of the metadata object (optional) (default: null) no reactive information set to share with the subscribers
7
+ * @template {TStateSetter} TStateSetter - The type of the actionsConfig object (optional) (default: null) if a configuration is passed, the hook will return an object with the actions then all the store manipulation will be done through the actions
8
+ * */
9
+ export declare class GlobalStore<TState, TMetadata = null, TStateSetter extends ActionCollectionConfig<TState, TMetadata> | StateSetter<TState> = StateSetter<TState>> {
10
+ protected actionsConfig: TStateSetter | null;
11
+ /**
12
+ * list of all the subscribers setState functions
13
+ * @template {TState} TState - The type of the state object
14
+ * */
15
+ subscribers: Map<string, SubscriberParameters>;
16
+ /**
17
+ * Actions of the store
18
+ */
19
+ actions?: ActionCollectionResult<TState, TMetadata, TStateSetter>;
20
+ /**
21
+ * additional configuration for the store
22
+ * @template {TState} TState - The type of the state object
23
+ * @template {TMetadata} TMetadata - The type of the metadata object (optional) (default: null) no reactive information set to share with the subscribers
24
+ * @template {TStateSetter} TStateSetter - The type of the actionsConfig object (optional) (default: null) if a configuration is passed, the hook will return an object with the actions then all the store manipulation will be done through the actions
25
+ * @property {GlobalStoreConfig<TState, TMetadata, TStateSetter>} config.metadata - The metadata to pass to the callbacks (optional) (default: null)
26
+ * @property {GlobalStoreConfig<TState, TMetadata, TStateSetter>} config.onInit - The callback to execute when the store is initialized (optional) (default: null)
27
+ * @property {GlobalStoreConfig<TState, TMetadata, TStateSetter>} config.onStateChanged - The callback to execute when the state is changed (optional) (default: null)
28
+ * @property {GlobalStoreConfig<TState, TMetadata, TStateSetter>} config.onSubscribed - The callback to execute when a component is subscribed to the store (optional) (default: null)
29
+ * @property {GlobalStoreConfig<TState, TMetadata, TStateSetter>} config.computePreventStateChange - The callback to execute when the state is changed to compute if the state change should be prevented (optional) (default: null)
30
+ */
31
+ protected config: GlobalStoreConfig<TState, TMetadata, TStateSetter>;
32
+ /**
33
+ * execute once the store is created
34
+ * @template {TState} TState - The type of the state object
35
+ * @template {TMetadata} TMetadata - The type of the metadata object (optional) (default: null) no reactive information set to share with the subscribers
36
+ * @template {TStateSetter} TStateSetter - The type of the actionsConfig object (optional) (default: null) if a configuration is passed, the hook will return an object with the actions then all the store manipulation will be done through the actions
37
+ * @param {StateConfigCallbackParam<TState, TMetadata, TStateSetter>} parameters - The parameters object brings the following properties: setState, getState, setMetadata, getMetadata
38
+ * @param {Dispatch<SetStateAction<TState>>} parameters.setState - The setState function to update the state
39
+ * @param {() => TState} parameters.getState - The getState function to get the state
40
+ * @param {Dispatch<SetStateAction<TMetadata>>} parameters.setMetadata - The setMetadata function to update the metadata
41
+ * @param {() => TMetadata} parameters.getMetadata - The getMetadata function to get the metadata
42
+ * */
43
+ protected onInit?: GlobalStoreConfig<TState, TMetadata, TStateSetter>["onInit"];
44
+ /**
45
+ * execute every time the state is changed
46
+ * @template {TState} TState - The type of the state object
47
+ * @template {TMetadata} TMetadata - The type of the metadata object (optional) (default: null) no reactive information set to share with the subscribers
48
+ * @template {TStateSetter} TStateSetter - The type of the actionsConfig object (optional) (default: null) if a configuration is passed, the hook will return an object with the actions then all the store manipulation will be done through the actions
49
+ * @param {StateConfigCallbackParam<TState, TMetadata, TStateSetter>} parameters - The parameters object brings the following properties: setState, getState, setMetadata, getMetadata
50
+ * @param {Dispatch<SetStateAction<TState>>} parameters.setState - The setState function to update the state
51
+ * @param {() => TState} parameters.getState - The getState function to get the state
52
+ * @param {Dispatch<SetStateAction<TMetadata>>} parameters.setMetadata - The setMetadata function to update the metadata
53
+ * @param {() => TMetadata} parameters.getMetadata - The getMetadata function to get the metadata
54
+ * */
55
+ protected onStateChanged?: GlobalStoreConfig<TState, TMetadata, TStateSetter>["onStateChanged"];
56
+ /**
57
+ * Execute each time a new component gets subscribed to the store
58
+ * @template {TState} TState - The type of the state object
59
+ * @template {TMetadata} TMetadata - The type of the metadata object (optional) (default: null) no reactive information set to share with the subscribers
60
+ * @template {TStateSetter} TStateSetter - The type of the actionsConfig object (optional) (default: null) if a configuration is passed, the hook will return an object with the actions then all the store manipulation will be done through the actions
61
+ * @param {StateConfigCallbackParam<TState, TMetadata, TStateSetter>} parameters - The parameters object brings the following properties: setState, getState, setMetadata, getMetadata
62
+ * @param {Dispatch<SetStateAction<TState>>} parameters.setState - The setState function to update the state
63
+ * @param {() => TState} parameters.getState - The getState function to get the state
64
+ * @param {Dispatch<SetStateAction<TMetadata>>} parameters.setMetadata - The setMetadata function to update the metadata
65
+ * @param {() => TMetadata} parameters.getMetadata - The getMetadata function to get the metadata
66
+ * */
67
+ protected onSubscribed?: GlobalStoreConfig<TState, TMetadata, TStateSetter>["onSubscribed"];
68
+ /**
69
+ * Execute every time a state change is triggered and before the state is updated, it allows to prevent the state change by returning true
70
+ * @template {TState} TState - The type of the state object
71
+ * @template {TMetadata} TMetadata - The type of the metadata object (optional) (default: null) no reactive information set to share with the subscribers
72
+ * @template {TStateSetter} TStateSetter - The type of the actionsConfig object (optional) (default: null) if a configuration is passed, the hook will return an object with the actions then all the store manipulation will be done through the actions
73
+ * @param {StateConfigCallbackParam<TState, TMetadata, TStateSetter>} parameters - The parameters object brings the following properties: setState, getState, setMetadata, getMetadata
74
+ * @param {Dispatch<SetStateAction<TState>>} parameters.setState - The setState function to update the state
75
+ * @param {() => TState} parameters.getState - The getState function to get the state
76
+ * @param {Dispatch<SetStateAction<TMetadata>>} parameters.setMetadata - The setMetadata function to update the metadata
77
+ * @param {() => TMetadata} parameters.getMetadata - The getMetadata function to get the metadata
78
+ * @returns {boolean} - true to prevent the state change, false to allow the state change
79
+ * */
80
+ protected computePreventStateChange?: GlobalStoreConfig<TState, TMetadata, TStateSetter>["computePreventStateChange"];
81
+ /**
82
+ * We use a wrapper in order to be able to force the state update when necessary even with primitive types
83
+ */
84
+ protected stateWrapper: {
85
+ state: TState;
86
+ };
87
+ /**
88
+ * @deprecated direct modifications of the state could end up in unexpected behaviors
89
+ */
90
+ protected get state(): TState;
91
+ /**
92
+ * Create a simple global store
93
+ * @param {TState} state - The initial state
94
+ * */
95
+ constructor(state: TState);
96
+ /**
97
+ * Create a new global store with custom action
98
+ * The metadata object could be null if not needed
99
+ * The setter Object is used to define the actions that will be used to manipulate the state
100
+ * @param {TState} state - The initial state
101
+ * @param {TStateSetter} actionsConfig - The actions configuration object (optional) (default: null) if not null the store manipulation will be done through the actions
102
+ * */
103
+ constructor(state: TState, config: GlobalStoreConfig<TState, TMetadata, TStateSetter>);
104
+ /**
105
+ * Create a new global store with custom action
106
+ * The metadata object could be null if not needed
107
+ * The setter Object is used to define the actions that will be used to manipulate the state
108
+ * The config object is used to define the callbacks that will be executed during the store lifecycle
109
+ * The lifecycle callbacks are: onInit, onStateChanged, onSubscribed and computePreventStateChange
110
+ * @param {TState} state - The initial state
111
+ * @param {GlobalStoreConfig<TState, TMetadata>} config - The configuration object (optional) (default: { metadata: null })
112
+ * @param {GlobalStoreConfig<TState, TMetadata>} config.metadata - The metadata object (optional) (default: null) if not null the metadata object will be reactive
113
+ * @param {GlobalStoreConfig<TState, TMetadata>} config.onInit - The callback to execute when the store is initialized (optional) (default: null)
114
+ * @param {GlobalStoreConfig<TState, TMetadata>} config.onStateChanged - The callback to execute when the state is changed (optional) (default: null)
115
+ * @param {GlobalStoreConfig<TState, TMetadata>} config.onSubscribed - The callback to execute when a new component gets subscribed to the store (optional) (default: null)
116
+ * @param {GlobalStoreConfig<TState, TMetadata>} config.computePreventStateChange - The callback to execute every time a state change is triggered and before the state is updated, it allows to prevent the state change by returning true (optional) (default: null)
117
+ * @param {TStateSetter} actionsConfig - The actions configuration object (optional) (default: null) if not null the store manipulation will be done through the actions
118
+ * */
119
+ constructor(state: TState, config: GlobalStoreConfig<TState, TMetadata, TStateSetter>, actionsConfig: TStateSetter);
120
+ protected initialize: () => Promise<void>;
121
+ /**
122
+ * set the state and update all the subscribers
123
+ * @param {StateSetter<TState>} setter - The setter function or the value to set
124
+ * */
125
+ protected setState: ({ state, forceUpdate, }: {
126
+ state: TState;
127
+ forceUpdate: boolean;
128
+ }) => void;
129
+ /**
130
+ * Set the value of the metadata property, this is no reactive and will not trigger a re-render
131
+ * @param {MetadataSetter<TMetadata>} setter - The setter function or the value to set
132
+ * */
133
+ protected setMetadata: MetadataSetter<TMetadata>;
134
+ protected getMetadata: () => TMetadata;
135
+ protected createChangesSubscriber: ({ callback, selector, config, }: {
136
+ selector?: SelectorCallback<unknown, unknown>;
137
+ callback: SubscribeCallback<unknown>;
138
+ config: SubscribeCallbackConfig<unknown>;
139
+ }) => {
140
+ stateWrapper: {
141
+ state: unknown;
142
+ };
143
+ subscriptionCallback: SubscriptionCallback;
144
+ };
145
+ /**
146
+ * Return current state of the store
147
+ * Optionally you can use this method to subscribe a callback to the store changes
148
+ * @param {UseHookConfig<TState, TDerivate>} config - The configuration object (optional) (default: { selector: null, subscriptionCallback: null, config: null })
149
+ * @param {TSelector} config.selector - The selector function to derive the state (optional) (default: null)
150
+ * @param {TSubscriptionCallback} config.subscriptionCallback - The callback to execute every time the state is changed
151
+ * @param {UseHookConfig<TState, TDerivate>} config.config - The configuration for the callback (optional) (default: null)
152
+ * @param {UseHookConfig<TState, TDerivate>} config.config.isEqual - The compare function to check if the state is changed (optional) (default: shallowCompare)
153
+ * @returns The state of the store, optionally if you provide a subscriptionCallback it this method will return the unsubscribe function
154
+ */
155
+ protected getState: StateGetter<TState>;
156
+ /**
157
+ * get the parameters object to pass to the callback functions (onInit, onStateChanged, onSubscribed, computePreventStateChange)
158
+ * this parameters object brings the following properties: setState, getState, setMetadata, getMetadata
159
+ * this parameter object allows to update the state, get the state, update the metadata, get the metadata
160
+ * @returns {StateConfigCallbackParam<TState, TMetadata>} - The parameters object
161
+ * */
162
+ protected getConfigCallbackParam: () => StateConfigCallbackParam<TState, TMetadata, TStateSetter>;
163
+ protected updateSubscription: ({ subscriptionId, callback, selector, config, stateWrapper: { state }, }: Omit<SubscriberParameters, "currentState"> & {
164
+ stateWrapper: {
165
+ state: unknown;
166
+ };
167
+ }) => SubscriberParameters;
168
+ protected executeOnSubscribed: () => void;
169
+ /**
170
+ * Returns a custom hook that allows to handle a global state
171
+ * @returns {[TState, TStateSetter, TMetadata]} - The state, the state setter or the actions map, the metadata
172
+ * */
173
+ getHook: () => <State = TState>(selector?: SelectorCallback<TState, State>, config?: UseHookConfig<State>) => [state: State extends null ? TState : State, setter: keyof TStateSetter extends never ? StateSetter<TState> : ActionCollectionResult<TState, TMetadata, TStateSetter>, metadata: TMetadata];
174
+ /**
175
+ * Returns an array with the a function to get the state, the state setter or the actions map, and a function to get the metadata
176
+ * @returns {[() => TState, TStateSetter, () => TMetadata]} - The state getter, the state setter or the actions map, the metadata getter
177
+ * */
178
+ getHookDecoupled: () => [StateGetter<TState>, keyof TStateSetter extends never ? StateSetter<TState> : ActionCollectionResult<TState, TMetadata, TStateSetter>, MetadataGetter<TMetadata>];
179
+ /**
180
+ * Returns the state setter or the actions map
181
+ * @returns {TStateSetter} - The state setter or the actions map
182
+ * */
183
+ protected getStateOrchestrator: () => keyof TStateSetter extends never ? StateSetter<TState> : ActionCollectionResult<TState, TMetadata, TStateSetter>;
184
+ /**
185
+ * Calculate whenever or not we should compute the callback parameters on the state change
186
+ * @returns {boolean} - True if we should compute the callback parameters on the state change
187
+ * */
188
+ protected hasStateCallbacks: () => boolean;
189
+ /**
190
+ * This is responsible for defining whenever or not the state change should be allowed or prevented
191
+ * the function also execute the functions:
192
+ * - onStateChanged (if defined) - this function is executed after the state change
193
+ * - computePreventStateChange (if defined) - this function is executed before the state change and it should return a boolean value that will be used to determine if the state change should be prevented or not
194
+ */
195
+ protected setStateWrapper: StateSetter<TState>;
196
+ /**
197
+ * This creates a map of actions that can be used to modify or interact with the state
198
+ * @returns {ActionCollectionResult<TState, TMetadata, TStateSetter>} - The actions map result of the configuration object passed to the constructor
199
+ * */
200
+ protected getStoreActionsMap: () => ActionCollectionResult<TState, TMetadata, TStateSetter>;
201
+ }
@@ -0,0 +1,28 @@
1
+ import { ActionCollectionConfig, StateSetter, ActionCollectionResult, UseHookConfig, AvoidNever, UnsubscribeCallback, StateHook, StateGetter, createStateConfig, CustomGlobalHookBuilderParams, CustomGlobalHookParams, SelectorCallback, SubscribeToEmitter } from './GlobalStore.types';
2
+ /**
3
+ * Creates a global state with the given state and config.
4
+ * @returns {} [HOOK, DECOUPLED_GETTER, DECOUPLED_SETTER] this is an array with the hook, the decoupled getState function and the decoupled setter of the state
5
+ */
6
+ export declare const createGlobalStateWithDecoupledFuncs: <TState, TMetadata = null, TActions extends ActionCollectionConfig<TState, TMetadata> = null>(state: TState, { actions, ...config }?: createStateConfig<TState, TMetadata, TActions>) => [StateHook<TState, keyof TActions extends never ? StateSetter<TState> : ActionCollectionResult<TState, TMetadata, TActions>, TMetadata>, StateGetter<TState>, keyof TActions extends never ? StateSetter<TState> : ActionCollectionResult<TState, TMetadata, TActions>];
7
+ /**
8
+ * Creates a global hook that can be used to access the state and actions across the application
9
+ * @returns {} - () => [TState, Setter, TMetadata] the hook that can be used to access the state and the setter of the state
10
+ */
11
+ export declare const createGlobalState: <TState, TMetadata = null, TActions extends ActionCollectionConfig<TState, TMetadata> = null>(state: TState, config?: createStateConfig<TState, TMetadata, TActions>) => StateHook<TState, keyof TActions extends never ? StateSetter<TState> : ActionCollectionResult<TState, TMetadata, TActions>, TMetadata>;
12
+ /**
13
+ * @description
14
+ * Use this function to create a custom global store.
15
+ * You can use this function to create a store with async storage.
16
+ */
17
+ export declare const createCustomGlobalStateWithDecoupledFuncs: <TInheritMetadata = null, TCustomConfig = null>({ onInitialize, onChange, }: CustomGlobalHookBuilderParams<TInheritMetadata, TCustomConfig>) => <TState, TMetadata = null, TActions extends ActionCollectionConfig<TState, AvoidNever<TInheritMetadata> & AvoidNever<TMetadata>> = null>(state: TState, { config: customConfig, onInit, onStateChanged, ...parameters }?: CustomGlobalHookParams<TCustomConfig, TState, AvoidNever<TInheritMetadata> & AvoidNever<TMetadata>, TActions>) => [StateHook<TState, keyof TActions extends never ? StateSetter<TState> : ActionCollectionResult<TState, AvoidNever<TInheritMetadata> & AvoidNever<TMetadata>, TActions>, AvoidNever<TInheritMetadata> & AvoidNever<TMetadata>>, StateGetter<TState>, keyof TActions extends never ? StateSetter<TState> : ActionCollectionResult<TState, AvoidNever<TInheritMetadata> & AvoidNever<TMetadata>, TActions>];
18
+ /**
19
+ * @description
20
+ * Use this function to create a custom global hook which contains a fragment of the state of another hook or a fragment
21
+ */
22
+ export declare const createDerivate: <TState, TSetter, TMetadata, TDerivate>(useHook: StateHook<TState, TSetter, TMetadata>, selector_: SelectorCallback<TState, TDerivate>, config_?: UseHookConfig<TDerivate>) => <State = TDerivate>(selector?: SelectorCallback<TDerivate, State>, config?: UseHookConfig<State>) => [state: State, setter: TSetter, metadata: TMetadata];
23
+ /**
24
+ * @description
25
+ * This function allows you to create a derivate emitter
26
+ * With this approach, you can subscribe to changes in a specific fragment or subset of the state.
27
+ */
28
+ export declare const createDerivateEmitter: <TDerivate, TGetter extends StateGetter<unknown>, TState = Exclude<ReturnType<TGetter>, UnsubscribeCallback>>(getter: TGetter, selector: SelectorCallback<TState, TDerivate>) => SubscribeToEmitter<TDerivate>;