diff --git a/package/ctcgfw/luci-app-openclash/Makefile b/package/ctcgfw/luci-app-openclash/Makefile index bd59a275a2..8ca94d65ee 100644 --- a/package/ctcgfw/luci-app-openclash/Makefile +++ b/package/ctcgfw/luci-app-openclash/Makefile @@ -1,7 +1,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=luci-app-openclash -PKG_VERSION:=0.40.13 +PKG_VERSION:=0.40.14 PKG_RELEASE:=beta PKG_MAINTAINER:=vernesong diff --git a/package/ctcgfw/luci-app-openclash/root/etc/init.d/openclash b/package/ctcgfw/luci-app-openclash/root/etc/init.d/openclash index 656ac76b6e..74d5d55d88 100644 --- a/package/ctcgfw/luci-app-openclash/root/etc/init.d/openclash +++ b/package/ctcgfw/luci-app-openclash/root/etc/init.d/openclash @@ -1085,6 +1085,19 @@ do_run_file() } +#绑定interface防止回环 +check_interface_name() +{ + interface_name=$(ip route |grep "default" |awk '{print $5}' 2>/dev/null) + if [ -z "$(grep "^interface-name: $interface_name" "$CONFIG_FILE" 2>/dev/null)" ] && [ -n "$interface_name" ]; then + if [ ! -z "$(grep "^ \{0,\}interface-name:" "$CONFIG_FILE" 2>/dev/null)" ]; then + sed -i "/^ \{0,\}interface-name:/c\interface-name: ${interface_name}" "$CONFIG_FILE" 2>/dev/null + else + sed -i "/^redir-port:/a\interface-name: ${interface_name}" "$CONFIG_FILE" 2>/dev/null + fi + fi +} + start_run_core() { echo "$core_start_log" >$START_LOG @@ -1092,6 +1105,7 @@ start_run_core() ulimit -SHn 65535 2>/dev/null ulimit -v unlimited 2>/dev/null modprobe tun >/dev/null 2>&1 + check_interface_name config_reload=$(uci get openclash.config.config_reload 2>/dev/null) if [ -n "$(pidof clash)" ] && [ "$core_type" != "Tun" ] && [ "$config_reload" != "0" ]; then curl -s --connect-timeout 5 -m 5 -H 'Content-Type: application/json' -H "Authorization: Bearer ${da_password}" -XPUT http://"$lan_ip":"$cn_port"/configs -d "{\"path\": \"$CONFIG_FILE\"}" 2>/dev/null @@ -1193,6 +1207,7 @@ raw_config_start() cn_port=$(grep "^ \{0,\}external-controller:" "$CONFIG_FILE" |awk -F ':' '{print $3}' |awk -F '#' '{print $1}' |tr -cd "[0-9]" 2>/dev/null) uci set openclash.config.dashboard_password="$cn_port" 2>/dev/null + uci set openclash.config.proxy_port="$proxy_port" uci set openclash.config.restricted_mode=1 uci commit openclash diff --git a/package/ctcgfw/luci-app-openclash/root/etc/openclash/custom/openclash_custom_fake_filter.list b/package/ctcgfw/luci-app-openclash/root/etc/openclash/custom/openclash_custom_fake_filter.list index 88847f114e..f3e9491bbe 100644 --- a/package/ctcgfw/luci-app-openclash/root/etc/openclash/custom/openclash_custom_fake_filter.list +++ b/package/ctcgfw/luci-app-openclash/root/etc/openclash/custom/openclash_custom_fake_filter.list @@ -73,10 +73,16 @@ music.migu.cn #QQ快捷登录 localhost.ptlogin2.qq.com #Nintendo Switch -*.*.*.*.srv.nintendo.net ++.srv.nintendo.net #Sony PlayStation -*.*.*.stun.playstation.net ++.stun.playstation.net #Microsoft Xbox xbox.*.microsoft.com -*.*.*.xboxlive.com -proxy.golang.org \ No newline at end of file ++.xboxlive.com +proxy.golang.org +stun.*.* +stun.*.*.* +#Linksys Router +heartbeat.belkin.com +*.linksys.com +*.linksyssmartwifi.com diff --git a/package/ctcgfw/luci-app-openclash/root/usr/share/openclash/dashboard/asset-manifest.json b/package/ctcgfw/luci-app-openclash/root/usr/share/openclash/dashboard/asset-manifest.json index a3dbb3cc0b..7e0d7fedbe 100644 --- a/package/ctcgfw/luci-app-openclash/root/usr/share/openclash/dashboard/asset-manifest.json +++ b/package/ctcgfw/luci-app-openclash/root/usr/share/openclash/dashboard/asset-manifest.json @@ -1,19 +1,19 @@ { "files": { "main.css": "./static/css/main.83e4b341.chunk.css", - "main.js": "./static/js/main.33688145.chunk.js", + "main.js": "./static/js/main.3ba71f82.chunk.js", "runtime-main.js": "./static/js/runtime-main.fefd5bb9.js", - "static/js/2.4c19c7e9.chunk.js": "./static/js/2.4c19c7e9.chunk.js", + "static/js/2.6366a4a0.chunk.js": "./static/js/2.6366a4a0.chunk.js", "index.html": "./index.html", "service-worker.js": "./service-worker.js", - "static/js/2.4c19c7e9.chunk.js.LICENSE.txt": "./static/js/2.4c19c7e9.chunk.js.LICENSE.txt", + "static/js/2.6366a4a0.chunk.js.LICENSE.txt": "./static/js/2.6366a4a0.chunk.js.LICENSE.txt", "static/media/logo.45983944.png": "./static/media/logo.45983944.png", "workbox-8a532145.js": "./workbox-8a532145.js" }, "entrypoints": [ "static/js/runtime-main.fefd5bb9.js", - "static/js/2.4c19c7e9.chunk.js", + "static/js/2.6366a4a0.chunk.js", "static/css/main.83e4b341.chunk.css", - "static/js/main.33688145.chunk.js" + "static/js/main.3ba71f82.chunk.js" ] } \ No newline at end of file diff --git a/package/ctcgfw/luci-app-openclash/root/usr/share/openclash/dashboard/index.html b/package/ctcgfw/luci-app-openclash/root/usr/share/openclash/dashboard/index.html index ad96416de7..175e6652e2 100644 --- a/package/ctcgfw/luci-app-openclash/root/usr/share/openclash/dashboard/index.html +++ b/package/ctcgfw/luci-app-openclash/root/usr/share/openclash/dashboard/index.html @@ -1 +1 @@ -Clash
\ No newline at end of file +Clash
\ No newline at end of file diff --git a/package/ctcgfw/luci-app-openclash/root/usr/share/openclash/dashboard/service-worker.js b/package/ctcgfw/luci-app-openclash/root/usr/share/openclash/dashboard/service-worker.js index 966aca7453..f4868e6709 100644 --- a/package/ctcgfw/luci-app-openclash/root/usr/share/openclash/dashboard/service-worker.js +++ b/package/ctcgfw/luci-app-openclash/root/usr/share/openclash/dashboard/service-worker.js @@ -1 +1 @@ -if(!self.define){const e=e=>{"require"!==e&&(e+=".js");let s=Promise.resolve();return r[e]||(s=new Promise(async s=>{if("document"in self){const r=document.createElement("script");r.src=e,document.head.appendChild(r),r.onload=s}else importScripts(e),s()})),s.then(()=>{if(!r[e])throw new Error(`Module ${e} didn’t register its module`);return r[e]})},s=(s,r)=>{Promise.all(s.map(e)).then(e=>r(1===e.length?e[0]:e))},r={require:Promise.resolve(s)};self.define=(s,i,c)=>{r[s]||(r[s]=Promise.resolve().then(()=>{let r={};const t={uri:location.origin+s.slice(1)};return Promise.all(i.map(s=>{switch(s){case"exports":return r;case"module":return t;default:return e(s)}})).then(e=>{const s=c(...e);return r.default||(r.default=s),r})}))}}define("./service-worker.js",["./workbox-8a532145"],(function(e){"use strict";self.addEventListener("message",e=>{e.data&&"SKIP_WAITING"===e.data.type&&self.skipWaiting()}),e.clientsClaim(),e.precacheAndRoute([{url:"./index.html",revision:"b1a27ccef352baebb9667369555f9309"},{url:"./static/css/main.83e4b341.chunk.css",revision:"5a48466e5ff2a8ceec3348c3c498c260"},{url:"./static/js/2.4c19c7e9.chunk.js",revision:"d46b87667ddd715dd648d1ef8779c0b7"},{url:"./static/js/2.4c19c7e9.chunk.js.LICENSE.txt",revision:"176c1a1a28b19c611d9701905d8d60b7"},{url:"./static/js/main.33688145.chunk.js",revision:"62d6fab15c25a50205f635111e4e9e01"},{url:"./static/js/runtime-main.fefd5bb9.js",revision:"98f4f314ef9abb714a6c74c41e1e5a04"},{url:"./static/media/logo.45983944.png",revision:"198a55c9efe85ab0145d4402c07cfe65"}],{}),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("./index.html"),{denylist:[/^\/_/,/\/[^/?]+\.[^/]+$/]}))})); +if(!self.define){const e=e=>{"require"!==e&&(e+=".js");let s=Promise.resolve();return r[e]||(s=new Promise(async s=>{if("document"in self){const r=document.createElement("script");r.src=e,document.head.appendChild(r),r.onload=s}else importScripts(e),s()})),s.then(()=>{if(!r[e])throw new Error(`Module ${e} didn’t register its module`);return r[e]})},s=(s,r)=>{Promise.all(s.map(e)).then(e=>r(1===e.length?e[0]:e))},r={require:Promise.resolve(s)};self.define=(s,i,t)=>{r[s]||(r[s]=Promise.resolve().then(()=>{let r={};const c={uri:location.origin+s.slice(1)};return Promise.all(i.map(s=>{switch(s){case"exports":return r;case"module":return c;default:return e(s)}})).then(e=>{const s=t(...e);return r.default||(r.default=s),r})}))}}define("./service-worker.js",["./workbox-8a532145"],(function(e){"use strict";self.addEventListener("message",e=>{e.data&&"SKIP_WAITING"===e.data.type&&self.skipWaiting()}),e.clientsClaim(),e.precacheAndRoute([{url:"./index.html",revision:"ff336a0edf18fc90c7f03fb0e43250a0"},{url:"./static/css/main.83e4b341.chunk.css",revision:"5a48466e5ff2a8ceec3348c3c498c260"},{url:"./static/js/2.6366a4a0.chunk.js",revision:"7a8970333d728cf369978e1fa658787e"},{url:"./static/js/2.6366a4a0.chunk.js.LICENSE.txt",revision:"6557abd439259b9580e2e2d5633cdacb"},{url:"./static/js/main.3ba71f82.chunk.js",revision:"2c4d6d7f7a1d7c843c445be62f92109f"},{url:"./static/js/runtime-main.fefd5bb9.js",revision:"98f4f314ef9abb714a6c74c41e1e5a04"},{url:"./static/media/logo.45983944.png",revision:"198a55c9efe85ab0145d4402c07cfe65"}],{}),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("./index.html"),{denylist:[/^\/_/,/\/[^/?]+\.[^/]+$/]}))})); diff --git a/package/ctcgfw/luci-app-openclash/root/usr/share/openclash/dashboard/static/js/2.4c19c7e9.chunk.js b/package/ctcgfw/luci-app-openclash/root/usr/share/openclash/dashboard/static/js/2.4c19c7e9.chunk.js deleted file mode 100644 index 5153649350..0000000000 --- a/package/ctcgfw/luci-app-openclash/root/usr/share/openclash/dashboard/static/js/2.4c19c7e9.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 2.4c19c7e9.chunk.js.LICENSE.txt */ -(this["webpackJsonpclash-dashboard"]=this["webpackJsonpclash-dashboard"]||[]).push([[2],[function(e,t,n){"use strict";e.exports=n(70)},function(e,t,n){e.exports=n(74)},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(21);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(l){o=!0,i=l}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}}(e,t)||Object(r.a)(e,t)||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(e,t,n){"use strict";function r(e,t,n,r,o,i,a){try{var u=e[i](a),l=u.value}catch(s){return void n(s)}u.done?t(l):Promise.resolve(l).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var a=e.apply(t,n);function u(e){r(a,o,i,u,l,"next",e)}function l(e){r(a,o,i,u,l,"throw",e)}u(void 0)}))}}n.d(t,"a",(function(){return o}))},function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}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 o,i,a=!0,u=!1;return{s:function(){o=e[Symbol.iterator]()},n:function(){var e=o.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==o.return||o.return()}finally{if(u)throw i}}}}},function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var i=n(23);function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var u=n(3),l=n(16),s=n(1),c=n.n(s),f=n(2),d=n(6),p=n(5);function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function g(e,t,n){return(g=m()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&v(o,n.prototype),o}).apply(null,arguments)}function y(e){var t="function"===typeof Map?new Map:void 0;return(y=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return g(e,arguments,h(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),v(r,e)})(e)}function b(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}function w(e){return(w="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function S(e,t){return!t||"object"!==w(t)&&"function"!==typeof t?a(e):t}function x(e){return function(){var t,n=h(e);if(m()){var r=h(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return S(this,t)}}var _=n(10),E=n(0),T=n.n(E),k=n(13),R=n.n(k),O=c.a.mark(Fe),C=c.a.mark(Be);var P=function(e){};var A=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.error,null};function j(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var M=function e(t){Object(_.a)(this,e),j(this,"key",void 0),this.key=t},N=function(e){b(n,e);var t=x(n);function n(){return Object(_.a)(this,n),t.apply(this,arguments)}return n}(M),I=function(e){b(n,e);var t=x(n);function n(){return Object(_.a)(this,n),t.apply(this,arguments)}return n}(M);var z={AbstractRecoilValue:M,RecoilState:N,RecoilValueReadOnly:I,isRecoilValue:function(e){return e instanceof N||e instanceof I}},L=z.AbstractRecoilValue,F=z.RecoilState,D=z.RecoilValueReadOnly,B=z.isRecoilValue,V=Object.freeze({__proto__:null,AbstractRecoilValue:L,RecoilState:F,RecoilValueReadOnly:D,isRecoilValue:B}),U=function e(){Object(_.a)(this,e)},H=new U,W=function(e){b(n,e);var t=x(n);function n(e){return Object(_.a)(this,n),t.call(this,"Tried to set the value of Recoil selector ".concat(e," using an updater function, but it is an async selector in a pending or error state; this is not supported."))}return n}(y(Error)),$=new Map,G=new Map;var q=function(e){b(n,e);var t=x(n);function n(){return Object(_.a)(this,n),t.apply(this,arguments)}return n}(y(Error));var Y={nodes:$,recoilValues:G,registerNode:function(e){if($.has(e.key)){var t='Duplicate atom key "'.concat(e.key,'". This is a FATAL ERROR in\n production. But it is safe to ignore this warning if it occurred because of\n hot module replacement.');A(t)}$.set(e.key,e);var n=null==e.set?new V.RecoilValueReadOnly(e.key):new V.RecoilState(e.key);return G.set(e.key,n),n},getNode:function(e){var t=$.get(e);if(null==t)throw new q('Missing definition for RecoilValue: "'.concat(e,'""'));return t},getNodeMaybe:function(e){return $.get(e)},NodeMissingError:q,DefaultValue:U,DEFAULT_VALUE:H,RecoilValueNotReady:W};var K={enqueueExecution:function(e,t){t()}};var Q=function(e,t){var n=new Set(e);return n.add(t),n},X=function(e,t){var n=new Map(e);return n.delete(t),n},J=function(e,t){var n=new Map(e);return t.forEach((function(e){return n.delete(e)})),n},Z=X,ee=function(e,t,n){var r=new Map(e);return r.set(t,n),r},te=Q,ne=Y.getNode,re=Y.getNodeMaybe,oe=Object.freeze(new Set),ie=function(e){b(n,e);var t=x(n);function n(){return Object(_.a)(this,n),t.apply(this,arguments)}return n}(y(Error));var ae=function(e,t,n){return ne(n).get(e,t)},ue=function(e,t,n){return ne(n).peek(e,t)},le=function(e,t,n,r){var o=ne(n);if(null==o.set)throw new ie("Attempt to set read-only RecoilValue: ".concat(n));return o.set(e,t,r)},se=function(e,t,n){var r,o=re(t);return null===o||void 0===o||null===(r=o.invalidate)||void 0===r||r.call(o),Object(p.a)(Object(p.a)({},e),{},{atomValues:Z(e.atomValues,t),nonvalidatedAtoms:ee(e.nonvalidatedAtoms,t,n),dirtyAtoms:te(e.dirtyAtoms,t)})},ce=function(e,t,n){for(var r=new Set,o=Array.from(n),i=e.getGraph(t.version),a=o.pop();a;a=o.pop()){var u;r.add(a);var l,s=null!==(u=i.nodeToNodeSubscriptions.get(a))&&void 0!==u?u:oe,c=Object(d.a)(s);try{for(c.s();!(l=c.n()).done;){var f=l.value;r.has(f)||o.push(f)}}catch(p){c.e(p)}finally{c.f()}}return r};var fe=function(e){for(var t=new Set,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o2&&void 0!==arguments[2]?arguments[2]:e.getState().currentTree,a=e.getState();i.version!==a.currentTree.version&&i.version!==(null===(n=a.nextTree)||void 0===n?void 0:n.version)&&i.version!==(null===(r=a.previousTree)||void 0===r?void 0:r.version)&&A("Tried to read from a discarded tree");var u=Ee(e,i,o),l=Object(f.a)(u,2),s=l[0],c=l[1];return Re(s,e,i.version),c},setRecoilValue:Ie,setRecoilValueLoadable:function(e,t,n){if(n instanceof Oe)return Ie(e,t,n);var r=t.key;we.trace("set RecoilValue",r,(function(){return e.replaceState(we.wrap((function(e){var t=new Set([r]);return Object(p.a)(Object(p.a)({},e),{},{dirtyAtoms:Se(e.dirtyAtoms,t),atomValues:Ne(e.atomValues,new Map([[r,n]])),nonvalidatedAtoms:xe(e.nonvalidatedAtoms,r)})})))}))},markRecoilValueModified:function(e,t){var n=t.key;we.trace("mark RecoilValue modified",n,(function(){return e.replaceState(we.wrap((function(e){return Object(p.a)(Object(p.a)({},e),{},{dirtyAtoms:Se(e.dirtyAtoms,new Set([n]))})})))}))},setUnvalidatedRecoilValue:function(e,t,n){var r=t.key;we.trace("set unvalidated persisted atom",r,(function(){return e.replaceState(we.wrap((function(e){return ke(e,r,n)})))}))},subscribeToRecoilValue:function(e,t,n){var r=t.key,o=ze++,i=e.getState();return i.nodeToComponentSubscriptions.has(r)||i.nodeToComponentSubscriptions.set(r,new Map),pe(i.nodeToComponentSubscriptions.get(r)).set(o,["TODO debug name",n]),{release:function(){var t=e.getState(),n=t.nodeToComponentSubscriptions.get(r);void 0!==n&&n.has(o)?(n.delete(o),0===n.size&&t.nodeToComponentSubscriptions.delete(r)):A("Subscription missing at release time for atom ".concat(r,". This is a bug in Recoil."))}}},isRecoilValue:Me,applyAtomValueWrites:Ne};function Fe(e){var t,n,r,o,i,a;return c.a.wrap((function(u){for(;;)switch(u.prev=u.next){case 0:t=Object(d.a)(e),u.prev=1,t.s();case 3:if((n=t.n()).done){u.next=24;break}r=n.value,o=Object(d.a)(r),u.prev=6,o.s();case 8:if((i=o.n()).done){u.next=14;break}return a=i.value,u.next=12,a;case 12:u.next=8;break;case 14:u.next=19;break;case 16:u.prev=16,u.t0=u.catch(6),o.e(u.t0);case 19:return u.prev=19,o.f(),u.finish(19);case 22:u.next=3;break;case 24:u.next=29;break;case 26:u.prev=26,u.t1=u.catch(1),t.e(u.t1);case 29:return u.prev=29,t.f(),u.finish(29);case 32:case"end":return u.stop()}}),O,null,[[1,26,29,32],[6,16,19,22]])}var De=Fe;function Be(e,t){var n,r,o,i;return c.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:n=0,r=Object(d.a)(e),a.prev=2,r.s();case 4:if((o=r.n()).done){a.next=11;break}if(i=o.value,!t(i,n++)){a.next=9;break}return a.next=9,i;case 9:a.next=4;break;case 11:a.next=16;break;case 13:a.prev=13,a.t0=a.catch(2),r.e(a.t0);case 16:return a.prev=16,r.f(),a.finish(16);case 19:case"end":return a.stop()}}),C,null,[[2,13,16,19]])}var Ve=Be,Ue=new Map;function He(e){var t;return null!==(t=Ue.get(e))&&void 0!==t&&t}He.setPass=function(e){Ue.set(e,!0)},He.setFail=function(e){Ue.set(e,!1)};var We=He;var $e=function(e,t){return c.a.mark((function n(){var r,o,i,a;return c.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:r=0,o=Object(d.a)(e),n.prev=2,o.s();case 4:if((i=o.n()).done){n.next=10;break}return a=i.value,n.next=8,t(a,r++);case 8:n.next=4;break;case 10:n.next=15;break;case 12:n.prev=12,n.t0=n.catch(2),o.e(n.t0);case 15:return n.prev=15,o.f(),n.finish(15);case 18:case"end":return n.stop()}}),n,null,[[2,12,15,18]])}))()},Ge=ge,qe=0,Ye=function(){return qe++};function Ke(){var e=Ye();return{version:e,stateID:e,transactionMetadata:{},dirtyAtoms:new Set,atomValues:new Map,nonvalidatedAtoms:new Map}}var Qe=function(){var e=Ke();return{currentTree:e,nextTree:null,previousTree:null,knownAtoms:new Set,knownSelectors:new Set,transactionSubscriptions:new Map,nodeTransactionSubscriptions:new Map,nodeToComponentSubscriptions:new Map,queuedComponentCallbacks_DEPRECATED:[],suspendedComponentResolvers:new Set,graphsByVersion:(new Map).set(e.version,Ge()),versionsUsedByComponent:new Map}},Xe=Ye,Je=ce,Ze=ue,et=ge,tt=Y.DEFAULT_VALUE,nt=Y.recoilValues,rt=Le.getRecoilValueAsLoadable,ot=Le.setRecoilValue,it=Xe,at=Qe;function ut(e){return $e(e,(function(e){return pe(nt.get(e))}))}var lt=function(){function e(t){var n=this;Object(_.a)(this,e),j(this,"_store",void 0),j(this,"getLoadable",(function(e){return rt(n._store,e)})),j(this,"getPromise",(function(e){return We("recoil_async_selector_refactor")?n.getLoadable(e).toPromise().then((function(e){return e.value})):n.getLoadable(e).toPromise()})),j(this,"getNodes_UNSTABLE",(function(e){if(!0===(null===e||void 0===e?void 0:e.isModified))return!1===(null===e||void 0===e?void 0:e.isInitialized)?[]:ut(n._store.getState().currentTree.dirtyAtoms);var t=n._store.getState().knownAtoms,r=n._store.getState().knownSelectors;return null==(null===e||void 0===e?void 0:e.isInitialized)?nt.values():!0===e.isInitialized?ut(De([n._store.getState().knownAtoms,n._store.getState().knownSelectors])):Ve(nt.values(),(function(e){var n=e.key;return!t.has(n)&&!r.has(n)}))})),j(this,"getDeps_UNSTABLE",(function(e){n.getLoadable(e);var t=n._store.getGraph(n._store.getState().currentTree.version).nodeDeps.get(e.key);return ut(null!==t&&void 0!==t?t:[])})),j(this,"getSubscribers_UNSTABLE",(function(e){var t=e.key,r=n._store.getState().currentTree;return{nodes:ut(Ve(Je(n._store,r,new Set([t])),(function(e){return e!==t})))}})),j(this,"getInfo_UNSTABLE",(function(e){var t,r=e.key,o=n._store.getState().currentTree,i=n._store.getGraph(o.version);return{loadable:Ze(n._store,o,r),isActive:n._store.getState().knownAtoms.has(r)||n._store.getState().knownSelectors.has(r),isSet:o.atomValues.has(r),isModified:o.dirtyAtoms.has(r),type:n._store.getState().knownAtoms.has(r)?"atom":n._store.getState().knownSelectors.has(r)?"selector":void 0,deps:ut(null!==(t=i.nodeDeps.get(r))&&void 0!==t?t:[]),subscribers:n.getSubscribers_UNSTABLE(e)}})),j(this,"map",(function(e){var t=new ft(n);return e(t),ct(t.getStore_INTERNAL())})),j(this,"asyncMap",function(){var e=Object(u.a)(c.a.mark((function e(t){var r;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=new ft(n),e.next=3,t(r);case 3:return e.abrupt("return",ct(r.getStore_INTERNAL()));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),this._store={getState:function(){return t},replaceState:function(e){t.currentTree=e(t.currentTree)},getGraph:function(e){var n=t.graphsByVersion;if(n.has(e))return pe(n.get(e));var r=et();return n.set(e,r),r},subscribeToTransactions:function(){return{release:function(){}}},addTransactionMetadata:function(){throw new Error("Cannot subscribe to Snapshots")}}}return Object(l.a)(e,[{key:"getStore_INTERNAL",value:function(){return this._store}},{key:"getID",value:function(){return this.getID_INTERNAL()}},{key:"getID_INTERNAL",value:function(){return this._store.getState().currentTree.stateID}}]),e}();function st(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e.getState(),o=n?it():t.version;return{currentTree:n?{version:o,stateID:o,transactionMetadata:Object(p.a)({},t.transactionMetadata),dirtyAtoms:new Set(t.dirtyAtoms),atomValues:new Map(t.atomValues),nonvalidatedAtoms:new Map(t.nonvalidatedAtoms)}:t,nextTree:null,previousTree:null,knownAtoms:new Set(r.knownAtoms),knownSelectors:new Set(r.knownSelectors),transactionSubscriptions:new Map,nodeTransactionSubscriptions:new Map,nodeToComponentSubscriptions:new Map,queuedComponentCallbacks_DEPRECATED:[],suspendedComponentResolvers:new Set,graphsByVersion:(new Map).set(o,e.getGraph(t.version)),versionsUsedByComponent:new Map}}function ct(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"current",n=e.getState(),r="current"===t?n.currentTree:pe(n.previousTree);return new lt(st(e,r))}var ft=function(e){b(n,e);var t=x(n);function n(e){var r;return Object(_.a)(this,n),j(a(r=t.call(this,st(e.getStore_INTERNAL(),e.getStore_INTERNAL().getState().currentTree,!0))),"set",(function(e,t){var n=r.getStore_INTERNAL();ot(n,e,t)})),j(a(r),"reset",(function(e){return ot(r.getStore_INTERNAL(),e,tt)})),r}return n}(lt),dt={Snapshot:lt,MutableSnapshot:ft,freshSnapshot:function(){return new lt(at())},cloneSnapshot:ct},pt=dt.Snapshot,ht=dt.MutableSnapshot,vt=dt.freshSnapshot,mt=dt.cloneSnapshot,gt=Object.freeze({__proto__:null,Snapshot:pt,MutableSnapshot:ht,freshSnapshot:vt,cloneSnapshot:mt}),yt=T.a.useContext,bt=T.a.useEffect,wt=T.a.useMemo,St=T.a.useRef,xt=T.a.useState,_t=ce,Et=le,Tt=se,kt=ge,Rt=be,Ot=me,Ct=Le.applyAtomValueWrites,Pt=gt.freshSnapshot,At=Xe,jt=Qe,Mt=J;function Nt(){throw new Error("This component must be used inside a component.")}var It=Object.freeze({getState:Nt,replaceState:Nt,getGraph:Nt,subscribeToTransactions:Nt,addTransactionMetadata:Nt}),zt=!1;function Lt(e){if(zt)throw new Error("An atom update was triggered within the execution of a state updater function. State updater functions provided to Recoil must be pure functions.");if(null===e.nextTree){var t=e.currentTree.version,n=At();e.nextTree=Object(p.a)(Object(p.a)({},e.currentTree),{},{version:n,stateID:n,dirtyAtoms:new Set,transactionMetadata:{}}),e.graphsByVersion.set(n,Ot(pe(e.graphsByVersion.get(t))))}}var Ft=T.a.createContext({current:It}),Dt=function(){return yt(Ft)},Bt=T.a.createContext(null);function Vt(e){var t=e.getState(),n=t.currentTree,r=n.dirtyAtoms;if(r.size){var o,i=Object(d.a)(t.nodeTransactionSubscriptions);try{for(i.s();!(o=i.n()).done;){var a=Object(f.a)(o.value,2),u=a[0],l=a[1];if(r.has(u)){var s,c=Object(d.a)(l);try{for(c.s();!(s=c.n()).done;){var p=Object(f.a)(s.value,2);p[0];(0,p[1])(e)}}catch(k){c.e(k)}finally{c.f()}}}}catch(k){i.e(k)}finally{i.f()}var h,v=Object(d.a)(t.transactionSubscriptions);try{for(v.s();!(h=v.n()).done;){var m=Object(f.a)(h.value,2);m[0];(0,m[1])(e)}}catch(k){v.e(k)}finally{v.f()}var g,y=_t(e,n,r),b=Object(d.a)(y);try{for(b.s();!(g=b.n()).done;){var w=g.value,S=t.nodeToComponentSubscriptions.get(w);if(S){var x,_=Object(d.a)(S);try{for(_.s();!(x=_.n()).done;){var E=Object(f.a)(x.value,2),T=(E[0],Object(f.a)(E[1],2));T[0];(0,T[1])(n)}}catch(k){_.e(k)}finally{_.f()}}}}catch(k){b.e(k)}finally{b.f()}0,t.suspendedComponentResolvers.forEach((function(e){return we.trace("value became available, waking components","[available in dev build]",e)}))}t.queuedComponentCallbacks_DEPRECATED.forEach((function(e){return e(n)})),t.queuedComponentCallbacks_DEPRECATED.splice(0,t.queuedComponentCallbacks_DEPRECATED.length)}function Ut(e){var t=Dt(),n=xt([]),r=Object(f.a)(n,2),o=(r[0],r[1]);return e.setNotifyBatcherOfChange((function(){return o({})})),bt((function(){K.enqueueExecution("Batcher",(function(){var e=t.current.getState(),n=e.nextTree;if(null!==n){e.previousTree=e.currentTree,e.currentTree=n,e.nextTree=null,Vt(t.current);var r=pe(e.previousTree).version;e.graphsByVersion.delete(r),e.previousTree=null}}))})),null}var Ht=0;var Wt=Dt,$t=function(){return yt(Bt)},Gt=function(e){var t,n,r=e.initializeState_DEPRECATED,o=e.initializeState,i=e.store_INTERNAL,a=e.children,u=St(null),l=null!==(t=T.a.createMutableSource)&&void 0!==t?t:T.a.unstable_createMutableSource,s=null!==i&&void 0!==i?i:{getState:function(){return n.current},replaceState:function(e){var t=c.current.getState();Lt(t);var n,r=pe(t.nextTree);try{zt=!0,n=e(r)}finally{zt=!1}n!==r&&(t.nextTree=n,pe(u.current)())},getGraph:function(e){var t=n.current.graphsByVersion;if(t.has(e))return pe(t.get(e));var r=kt();return t.set(e,r),r},subscribeToTransactions:function(e,t){if(null==t){var n=c.current.getState().transactionSubscriptions,r=Ht++;return n.set(r,e),{release:function(){n.delete(r)}}}var o=c.current.getState().nodeTransactionSubscriptions;o.has(t)||o.set(t,new Map);var i=Ht++;return pe(o.get(t)).set(i,e),{release:function(){var e=o.get(t);e&&(e.delete(i),0===e.size&&o.delete(t))}}},addTransactionMetadata:function(e){Lt(c.current.getState());for(var t=0,n=Object.keys(e);t1&&void 0!==arguments[1]?arguments[1]:{};R.a.unstable_batchedUpdates((function(){e.current.addTransactionMetadata(n),t.forEach((function(t,n){return fn(e.current,new un(n),t)}))}))}},In=function(e){bn(Jt((function(t){var n=t.getState().previousTree,r=t.getState().currentTree;n||(A("Transaction subscribers notified without a previous tree being present -- this is a bug in Recoil"),n=t.getState().currentTree);var o=wn(r),i=wn(n),a=de(rn,(function(e){var t,n,r,o;return{persistence_UNSTABLE:{type:null!==(t=null===(n=e.persistence_UNSTABLE)||void 0===n?void 0:n.type)&&void 0!==t?t:"none",backButton:null!==(r=null===(o=e.persistence_UNSTABLE)||void 0===o?void 0:o.backButton)&&void 0!==r&&r}}})),u=Yt(r.dirtyAtoms,(function(e){return o.has(e)||i.has(e)}));e({atomValues:o,previousAtomValues:i,atomInfo:a,modifiedAtoms:u,transactionMetadata:Object(p.a)({},r.transactionMetadata)})}),[e]))},zn=T.a.useMemo,Ln=Gt,Fn=Wt;var Dn=function(){var e=Fn().current;return zn((function(){return function(t){var n=t.children;return T.a.createElement(Ln,{store_INTERNAL:e},n)}}),[e])};var Bn=function(e){return!!e&&"function"===typeof e.then},Vn={getValue:function(){if("hasValue"!==this.state)throw this.contents;return this.contents},toPromise:function(){return"hasValue"===this.state?Promise.resolve(this.contents):"hasError"===this.state?Promise.reject(this.contents):this.contents},valueMaybe:function(){return"hasValue"===this.state?this.contents:void 0},valueOrThrow:function(){if("hasValue"!==this.state)throw new Error('Loadable expected value, but in "'.concat(this.state,'" state'));return this.contents},errorMaybe:function(){return"hasError"===this.state?this.contents:void 0},errorOrThrow:function(){if("hasError"!==this.state)throw new Error('Loadable expected error, but in "'.concat(this.state,'" state'));return this.contents},promiseMaybe:function(){return"loading"===this.state?this.contents:void 0},promiseOrThrow:function(){if("loading"!==this.state)throw new Error('Loadable expected promise, but in "'.concat(this.state,'" state'));return this.contents},map:function(e){var t=this;if("hasError"===this.state)return this;if("hasValue"===this.state)try{var n=e(this.contents);return Bn(n)?Wn(n):Un(n)}catch(r){return Bn(r)?Wn(r.next((function(){return e(t.contents)}))):Hn(r)}if("loading"===this.state)return Wn(this.contents.then(e).catch((function(n){if(Bn(n))return n.then((function(){return e(t.contents)}));throw n})));throw new Error("Invalid Loadable state")}};function Un(e){return Object.freeze(Object(p.a)({state:"hasValue",contents:e},Vn))}function Hn(e){return Object.freeze(Object(p.a)({state:"hasError",contents:e},Vn))}function Wn(e){return Object.freeze(Object(p.a)({state:"loading",contents:e},Vn))}var $n=Un,Gn=Hn,qn=Wn;var Yn=Symbol("ArrayKeyedMap"),Kn=new Map,Qn=function(){function e(t){if(Object(_.a)(this,e),this._base=new Map,t instanceof e){var n,r=Object(d.a)(t.entries());try{for(r.s();!(n=r.n()).done;){var o=Object(f.a)(n.value,2),i=o[0],a=o[1];this.set(i,a)}}catch(h){r.e(h)}finally{r.f()}}else if(t){var u,l=Object(d.a)(t);try{for(l.s();!(u=l.n()).done;){var s=Object(f.a)(u.value,2),c=s[0],p=s[1];this.set(c,p)}}catch(h){l.e(h)}finally{l.f()}}return this}return Object(l.a)(e,[{key:"get",value:function(e){var t=Array.isArray(e)?e:[e],n=this._base;return t.forEach((function(e){var t;n=null!==(t=n.get(e))&&void 0!==t?t:Kn})),void 0===n?void 0:n.get(Yn)}},{key:"set",value:function(e,t){var n=Array.isArray(e)?e:[e],r=this._base,o=r;return n.forEach((function(e){(o=r.get(e))||(o=new Map,r.set(e,o)),r=o})),o.set(Yn,t),this}},{key:"delete",value:function(e){var t=Array.isArray(e)?e:[e],n=this._base,r=n;return t.forEach((function(e){(r=n.get(e))||(r=new Map,n.set(e,r)),n=r})),r.delete(Yn),this}},{key:"entries",value:function(){var e=[];return function t(n,r){n.forEach((function(n,o){o===Yn?e.push([r,n]):t(n,r.concat(o))}))}(this._base,[]),e.values()}},{key:"toBuiltInMap",value:function(){return new Map(this.entries())}}]),e}();var Xn=function(){return new Qn};var Jn=function(e){return function(){return null}},Zn=Gn,er=qn,tr=$n,nr=ae,rr=ue,or=le,ir=ve,ar=ye,ur=be,lr=Y.DEFAULT_VALUE,sr=Y.RecoilValueNotReady,cr=Y.registerNode,fr=V.AbstractRecoilValue,dr=Le.getRecoilValueAsLoadable,pr=Le.isRecoilValue,hr=Le.setRecoilValueLoadable,vr=Jn,mr=Object.freeze(new Set);function gr(e){var t,n=[],r=Object(d.a)(Array.from(e.keys()).sort());try{for(r.s();!(t=r.n()).done;){var o=t.value,i=pe(e.get(o));n.push(o),n.push(i.state),n.push(i.contents)}}catch(a){r.e(a)}finally{r.f()}return n}var yr=new Map;var br=function(e){var t=e.key,n=e.get,r=e.cacheImplementation_UNSTABLE,o=null!=e.set?e.set:void 0,i=null!==r&&void 0!==r?r:Xn();function a(e){e.getState().knownSelectors.add(t)}function u(e,t){if("loading"===t.state){var n=yr.get(t);void 0===n&&yr.set(t,n=new Set),n.add(e)}}function l(e,n){var r=yr.get(e);if(void 0!==r){var o,i=Object(d.a)(r);try{for(i.s();!(o=i.n()).done;){var a=o.value;hr(a,new fr(t),n)}}catch(u){i.e(u)}finally{i.f()}yr.delete(e)}}function s(e,r){var o,a=new Map,s=null!==(o=e.getGraph(r.version).nodeDeps.get(t))&&void 0!==o?o:mr,c=gr(new Map(Array.from(s).sort().map((function(t){var n=nr(e,r,t),o=Object(f.a)(n,2),i=o[0],u=o[1];return ar(i,a),ur(a,e,r.version),[t,u]})))),d=i.get(c);if(null!=d)return u(e,d),[a,d];var p=function(e,r){var o=vr(t),i=new Map,a=new Map;function u(n){var o=n.key;ir(t,o,a);var u=nr(e,r,o),l=Object(f.a)(u,2),s=l[0],c=l[1];if(i.set(o,c),ar(s,a),ur(a,e,r.version),"hasValue"===c.state)return c.contents;throw c.contents}try{var l,s=n({get:u}),c=pr(s)?u(s):s;return Bn(c)?l=er(c.finally(o)):(o(),l=tr(c)),[a,l,i]}catch(p){var d;return void 0!==p.then?d=er(p.then((function(){var n=dr(e,new fr(t));if("hasError"===n.state)throw n.contents;return n.contents})).finally(o)):(o(),d=Zn(p)),[a,d,i]}}(e,r),h=Object(f.a)(p,3),v=h[0],m=h[1],g=h[2];ar(v,a),ur(a,e,r.version);var y=gr(g);return u(e,m),function(e,t){"loading"!==t.state||t.contents.then((function(n){var r=tr(n);return i=i.set(e,r),l(t,r),n})).catch((function(n){if(Bn(n))return n;var r=Zn(n);return i=i.set(e,r),l(t,r),n})),i=i.set(e,t)}(y,m),[a,m]}function c(e,n){var r,o,a=null!==(r=e.getGraph(n.version).nodeDeps.get(t))&&void 0!==r?r:mr,u=new Map(Array.from(a).sort().map((function(t){return[t,rr(e,n,t)]}))),l=new Map,s=Object(d.a)(u.entries());try{for(s.s();!(o=s.n()).done;){var c=Object(f.a)(o.value,2),p=c[0],h=c[1];if(null==h)return;l.set(p,h)}}catch(m){s.e(m)}finally{s.f()}var v=gr(l);return i.get(v)}function p(e,t){return a(e),s(e,t)}if(null!=o){return cr({key:t,peek:c,get:p,set:function(e,t,n){a(e);var r=new Map,i=new Map;function u(n){var o=n.key,i=nr(e,t,o),a=Object(f.a)(i,2),u=a[0],l=a[1];if(ar(u,r),"hasValue"===l.state)return l.contents;throw"loading"===l.state?new sr(o):l.contents}function l(n,o){var a="function"===typeof o?o(u(n)):o,l=or(e,t,n.key,a),s=Object(f.a)(l,2),c=s[0],d=s[1];ar(c,r),d.forEach((function(e,t){return i.set(t,e)}))}return o({set:l,get:u,reset:function(e){l(e,lr)}},n),[r,i]},dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1})}return cr({key:t,peek:c,get:p,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1})},wr=Gn,Sr=qn,xr=$n,_r=Y.DEFAULT_VALUE,Er=Y.DefaultValue,Tr=Y.registerNode,kr=V.isRecoilValue,Rr=Le.markRecoilValueModified,Or=Le.setRecoilValue,Cr=Le.setRecoilValueLoadable;function Pr(e){var t=e.key,n=e.persistence_UNSTABLE,r=Bn(e.default)?Sr(e.default.then((function(e){return r=xr(e),e})).catch((function(e){throw r=wr(e),e}))):xr(e.default),o=void 0;function i(n,o,i){if(!n.getState().knownAtoms.has(t)){if(n.getState().knownAtoms.add(t),"loading"===r.state){var u=function(){var e;(null!==(e=n.getState().nextTree)&&void 0!==e?e:n.getState().currentTree).atomValues.has(t)||Rr(n,a)};r.contents.then(u).catch(u)}var l=_r;if(null!=e.effects_UNSTABLE){var s,c=function(e){if(p){var t=l instanceof Er||Bn(l)?"hasValue"===r.state?r.contents:_r:l;l="function"===typeof e?e(t):e}else{if(Bn(e))throw new Error("Setting atoms to async values is not implemented.");Or(n,a,e)}},f=function(e){n.subscribeToTransactions((function(n){var o=n.getState(),i=o.currentTree,a=o.previousTree;a||(A("Transaction subscribers notified without a next tree being present -- this is a bug in Recoil"),a=i);var u=i.atomValues.get(t);if(null==u||"hasValue"===u.state){var l,s=null!=u?u.contents:_r,c=null!==(l=a.atomValues.get(t))&&void 0!==l?l:r,f="hasValue"===c.state?c.contents:_r;e(s,f)}}),t)},p=!0,h=function(){return c(_r)},v=Object(d.a)(null!==(m=e.effects_UNSTABLE)&&void 0!==m?m:[]);try{for(v.s();!(s=v.n()).done;){var m;(0,s.value)({node:a,trigger:i,setSelf:c,resetSelf:h,onSet:f})}}catch(g){v.e(g)}finally{v.f()}p=!1}l instanceof Er||o.atomValues.set(t,Bn(l)?Sr(function(e,n){var r=n.then((function(n){var o,i;return(null===(i=(null!==(o=e.getState().nextTree)&&void 0!==o?o:e.getState().currentTree).atomValues.get(t))||void 0===i?void 0:i.contents)===r&&Or(e,a,n),n})).catch((function(n){var o,i;throw(null===(i=(null!==(o=e.getState().nextTree)&&void 0!==o?o:e.getState().currentTree).atomValues.get(t))||void 0===i?void 0:i.contents)===r&&Cr(e,a,wr(n)),n}));return r}(n,l)):xr(l))}}var a=Tr({key:t,peek:function(e,n){var i,a,u;return null!==(i=null!==(a=n.atomValues.get(t))&&void 0!==a?a:null===(u=o)||void 0===u?void 0:u[1])&&void 0!==i?i:r},get:function(e,a){if(i(e,a,"get"),a.atomValues.has(t))return[new Map,pe(a.atomValues.get(t))];if(a.nonvalidatedAtoms.has(t)){if(null!=o)return o;if(null==n)return P("Tried to restore a persisted value for atom ".concat(t," but it has no persistence settings.")),[new Map,r];var u=a.nonvalidatedAtoms.get(t),l=n.validator(u,_r),s=l instanceof Er?r:xr(l);return o=[new Map,s]}return[new Map,r]},set:function(e,n,r){if(i(e,n,"set"),n.atomValues.has(t)){var a=pe(n.atomValues.get(t));if("hasValue"===a.state&&r===a.contents)return[new Map,new Map]}else if(!n.nonvalidatedAtoms.has(t)&&r instanceof Er)return[new Map,new Map];return o=void 0,[new Map,(new Map).set(t,xr(r))]},invalidate:function(){o=void 0},dangerouslyAllowMutability:e.dangerouslyAllowMutability,persistence_UNSTABLE:e.persistence_UNSTABLE?{type:e.persistence_UNSTABLE.type,backButton:e.persistence_UNSTABLE.backButton}:void 0,shouldRestoreFromSnapshots:!0});return a}function Ar(e){var t=e.default,n=o(e,["default"]);return kr(t)?function(e){var t=Ar(Object(p.a)(Object(p.a)({},e),{},{default:_r,persistence_UNSTABLE:void 0===e.persistence_UNSTABLE?void 0:Object(p.a)(Object(p.a)({},e.persistence_UNSTABLE),{},{validator:function(t){return t instanceof Er?t:pe(e.persistence_UNSTABLE).validator(t,_r)}}),effects_UNSTABLE:e.effects_UNSTABLE}));return br({key:"".concat(e.key,"__withFallback"),get:function(n){var r=(0,n.get)(t);return r instanceof Er?e.default:r},set:function(e,n){return(0,e.set)(t,n)},dangerouslyAllowMutability:e.dangerouslyAllowMutability})}(Object(p.a)(Object(p.a)({},n),{},{default:t})):Pr(Object(p.a)(Object(p.a)({},n),{},{default:t}))}var jr=Ar;function Mr(e,t,n){if("string"===typeof e&&!e.includes('"')&&!e.includes("\\"))return'"'.concat(e,'"');switch(typeof e){case"undefined":return"";case"boolean":return e?"true":"false";case"number":case"symbol":return String(e);case"string":return JSON.stringify(e);case"function":if(!0!==(null===t||void 0===t?void 0:t.allowFunctions))throw new Error("Attempt to serialize function in a Recoil cache key");return"__FUNCTION(".concat(e.name,")__")}if(null===e)return"null";var r;if("object"!==typeof e)return null!==(r=JSON.stringify(e))&&void 0!==r?r:"";if(Bn(e))return"__PROMISE__";if(Array.isArray(e))return"[".concat(e.map((function(e,n){return Mr(e,t,n.toString())})),"]");if("function"===typeof e.toJSON)return Mr(e.toJSON(n),t,n);if(e instanceof Map){var o,i={},a=Object(d.a)(e);try{for(a.s();!(o=a.n()).done;){var u=Object(f.a)(o.value,2),l=u[0],s=u[1];i["string"===typeof l?l:Mr(l,t)]=s}}catch(c){a.e(c)}finally{a.f()}return Mr(i,t,n)}return e instanceof Set?Mr(Array.from(e).sort((function(e,n){return Mr(e,t).localeCompare(Mr(n,t))})),t,n):null!=e[Symbol.iterator]&&"function"===typeof e[Symbol.iterator]?Mr(Array.from(e),t,n):"{".concat(Object.keys(e).filter((function(t){return void 0!==e[t]})).sort().map((function(n){return"".concat(Mr(n,t),":").concat(Mr(e[n],t,n))})).join(","),"}")}var Nr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{allowFunctions:!1};return Mr(e,t)};var Ir=function(){var e=new Map,t={get:function(t){return e.get(Nr(t))},set:function(n,r){return e.set(Nr(n),r),t},map:e};return t},zr=0;var Lr=function(e){var t,n,r=null!==(t=null===(n=e.cacheImplementationForParams_UNSTABLE)||void 0===n?void 0:n.call(e))&&void 0!==t?t:Ir();return function(t){var n,o,i=r.get(t);if(null!=i)return i;var a,u="".concat(e.key,"__selectorFamily/").concat(null!==(n=Nr(t,{allowFunctions:!0}))&&void 0!==n?n:"void","/").concat(zr++),l=function(n){return e.get(t)(n)},s=null===(o=e.cacheImplementation_UNSTABLE)||void 0===o?void 0:o.call(e);if(null!=e.set){var c=e.set;a=br({key:u,get:l,set:function(e,n){return c(t)(e,n)},cacheImplementation_UNSTABLE:s,dangerouslyAllowMutability:e.dangerouslyAllowMutability})}else a=br({key:u,get:l,cacheImplementation_UNSTABLE:s,dangerouslyAllowMutability:e.dangerouslyAllowMutability});return r=r.set(t,a),a}},Fr=Y.DEFAULT_VALUE,Dr=Y.DefaultValue;var Br=function(e){var t,n=Ir(),r={key:e.key,default:Fr,persistence_UNSTABLE:e.persistence_UNSTABLE};t=jr(r);var o=Lr({key:"".concat(e.key,"__atomFamily/Default"),get:function(n){return function(r){var o=(0,r.get)("function"===typeof t?t(n):t);return o instanceof Dr?"function"===typeof e.default?e.default(n):e.default:o}},dangerouslyAllowMutability:e.dangerouslyAllowMutability});return function(t){var r,i=n.get(t);if(null!=i)return i;var a=jr(Object(p.a)(Object(p.a)({},e),{},{key:"".concat(e.key,"__").concat(null!==(r=Nr(t))&&void 0!==r?r:"void"),default:o(t),effects_UNSTABLE:"function"===typeof e.effects_UNSTABLE?e.effects_UNSTABLE(t):e.effects_UNSTABLE}));return n=n.set(t,a),a}},Vr=Lr({key:"__constant",get:function(e){return function(){return e}},cacheImplementationForParams_UNSTABLE:Xn});var Ur=function(e){return Vr(e)},Hr=Lr({key:"__error",get:function(e){return function(){throw new Error(e)}},cacheImplementationForParams_UNSTABLE:Xn});var Wr=function(e){return Hr(e)};var $r=function(e){return e},Gr=Gn,qr=qn,Yr=$n;function Kr(e,t){var n,r=Array(t.length).fill(void 0),o=Array(t.length).fill(void 0),i=Object(d.a)(t.entries());try{for(i.s();!(n=i.n()).done;){var a=Object(f.a)(n.value,2),u=a[0],l=a[1];try{r[u]=e(l)}catch(s){o[u]=s}}}catch(c){i.e(c)}finally{i.f()}return[r,o]}function Qr(e){return null!=e&&!Bn(e)}function Xr(e){return Array.isArray(e)?e:Object.getOwnPropertyNames(e).map((function(t){return e[t]}))}function Jr(e){return e.hasOwnProperty("value")?e.value:e}function Zr(e,t){return Array.isArray(e)?t:Object.getOwnPropertyNames(e).reduce((function(e,n,o){return Object(p.a)(Object(p.a)({},e),{},Object(r.a)({},n,t[o]))}),{})}function eo(e,t,n){return Zr(e,n.map((function(e,n){return null==e?Yr(t[n]):Bn(e)?qr(e):Gr(e)})))}var to={waitForNone:Lr({key:"__waitForNone",get:function(e){return function(t){var n=Kr(t.get,Xr(e)),r=Object(f.a)(n,2),o=r[0],i=r[1];return eo(e,o,i)}}}),waitForAny:Lr({key:"__waitForAny",get:function(e){return function(t){var n=Kr(t.get,Xr(e)),r=Object(f.a)(n,2),o=r[0],i=r[1];if(i.some((function(e){return null==e})))return eo(e,o,i);if(i.every(Qr))throw i.find(Qr);if(We("recoil_async_selector_refactor"))return new Promise((function(t,n){var r,a=Object(d.a)(i.entries());try{var u=function(){var a=Object(f.a)(r.value,2),u=a[0],l=a[1];Bn(l)&&l.then((function(n){o[u]=Jr(n),i[u]=null,t(eo(e,o,i))})).catch((function(e){i[u]=e,i.every(Qr)&&n(i[0])}))};for(a.s();!(r=a.n()).done;)u()}catch(l){a.e(l)}finally{a.f()}}));throw new Promise((function(t,n){var r,a=Object(d.a)(i.entries());try{var u=function(){var a=Object(f.a)(r.value,2),u=a[0],l=a[1];Bn(l)&&l.then((function(n){o[u]=n,i[u]=null,t(eo(e,o,i))})).catch((function(e){i[u]=e,i.every(Qr)&&n(i[0])}))};for(a.s();!(r=a.n()).done;)u()}catch(l){a.e(l)}finally{a.f()}}))}}}),waitForAll:Lr({key:"__waitForAll",get:function(e){return function(t){var n=Kr(t.get,Xr(e)),r=Object(f.a)(n,2),o=r[0],i=r[1];if(i.every((function(e){return null==e})))return Zr(e,o);var a=i.find(Qr);if(null!=a)throw a;if(We("recoil_async_selector_refactor"))return Promise.all(i).then((function(t){return Zr(e,t.map(Jr))}));throw Promise.all(i).then((function(t){return Zr(e,t)}))}}}),noWait:Lr({key:"__noWait",get:function(e){return function(t){var n=t.get;try{return Yr(n(e))}catch(r){return Bn(r)?qr(r):Gr(r)}}}})},no=Y.DefaultValue,ro=Gt,oo=V.isRecoilValue,io={DefaultValue:no,RecoilRoot:ro,useRecoilBridgeAcrossReactRoots_UNSTABLE:Dn,atom:jr,selector:br,atomFamily:Br,selectorFamily:Lr,constSelector:Ur,errorSelector:Wr,readOnlySelector:$r,useRecoilValue:Pn,useRecoilValueLoadable:An,useRecoilState:Rn,useRecoilStateLoadable:On,useSetRecoilState:Mn,useResetRecoilState:jn,useRecoilCallback:Tn,useGotoRecoilSnapshot:En,useRecoilSnapshot:kn,useRecoilTransactionObserver_UNSTABLE:Cn,useTransactionObservation_UNSTABLE:In,useSetUnvalidatedAtomValues_UNSTABLE:Nn,noWait:to.noWait,waitForNone:to.waitForNone,waitForAny:to.waitForAny,waitForAll:to.waitForAll,isRecoilValue:oo},ao=io.RecoilRoot,uo=io.atom,lo=io.selector,so=io.useRecoilValue,co=io.useRecoilState},function(e,t,n){"use strict";n.d(t,"a",(function(){return w})),n.d(t,"b",(function(){return E})),n.d(t,"c",(function(){return v})),n.d(t,"d",(function(){return h})),n.d(t,"e",(function(){return _}));var r=n(11),o=n(0),i=n.n(o),a=(n(25),n(15)),u=n(39),l=n(14),s=n(7),c=n(40),f=n.n(c),d=(n(54),n(17)),p=(n(66),function(e){var t=Object(u.a)();return t.displayName=e,t}("Router-History")),h=function(e){var t=Object(u.a)();return t.displayName=e,t}("Router"),v=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._isMounted?n.setState({location:e}):n._pendingLocation=e}))),n}Object(r.a)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&this.unlisten()},n.render=function(){return i.a.createElement(h.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},i.a.createElement(p.Provider,{children:this.props.children||null,value:this.props.history}))},t}(i.a.Component);i.a.Component;var m=function(e){function t(){return e.apply(this,arguments)||this}Object(r.a)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(e){this.props.onUpdate&&this.props.onUpdate.call(this,this,e)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},t}(i.a.Component);var g={},y=0;function b(e,t){return void 0===e&&(e="/"),void 0===t&&(t={}),"/"===e?e:function(e){if(g[e])return g[e];var t=f.a.compile(e);return y<1e4&&(g[e]=t,y++),t}(e)(t,{pretty:!0})}function w(e){var t=e.computedMatch,n=e.to,r=e.push,o=void 0!==r&&r;return i.a.createElement(h.Consumer,null,(function(e){e||Object(l.a)(!1);var r=e.history,u=e.staticContext,c=o?r.push:r.replace,f=Object(a.c)(t?"string"===typeof n?b(n,t.params):Object(s.a)({},n,{pathname:b(n.pathname,t.params)}):n);return u?(c(f),null):i.a.createElement(m,{onMount:function(){c(f)},onUpdate:function(e,t){var n=Object(a.c)(t.to);Object(a.f)(n,Object(s.a)({},f,{key:n.key}))||c(f)},to:n})}))}var S={},x=0;function _(e,t){void 0===t&&(t={}),("string"===typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,o=n.exact,i=void 0!==o&&o,a=n.strict,u=void 0!==a&&a,l=n.sensitive,s=void 0!==l&&l;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=S[n]||(S[n]={});if(r[e])return r[e];var o=[],i={regexp:f()(e,o,t),keys:o};return x<1e4&&(r[e]=i,x++),i}(n,{end:i,strict:u,sensitive:s}),o=r.regexp,a=r.keys,l=o.exec(e);if(!l)return null;var c=l[0],d=l.slice(1),p=e===c;return i&&!p?null:{path:n,url:"/"===n&&""===c?"/":c,isExact:p,params:a.reduce((function(e,t,n){return e[t.name]=d[n],e}),{})}}),null)}var E=function(e){function t(){return e.apply(this,arguments)||this}return Object(r.a)(t,e),t.prototype.render=function(){var e=this;return i.a.createElement(h.Consumer,null,(function(t){t||Object(l.a)(!1);var n=e.props.location||t.location,r=e.props.computedMatch?e.props.computedMatch:e.props.path?_(n.pathname,e.props):t.match,o=Object(s.a)({},t,{location:n,match:r}),a=e.props,u=a.children,c=a.component,f=a.render;return Array.isArray(u)&&0===u.length&&(u=null),i.a.createElement(h.Provider,{value:o},o.match?u?"function"===typeof u?u(o):u:c?i.a.createElement(c,o):f?f(o):null:"function"===typeof u?u(o):null)}))},t}(i.a.Component);function T(e){return"/"===e.charAt(0)?e:"/"+e}function k(e,t){if(!e)return t;var n=T(e);return 0!==t.pathname.indexOf(n)?t:Object(s.a)({},t,{pathname:t.pathname.substr(n.length)})}function R(e){return"string"===typeof e?e:Object(a.e)(e)}function O(e){return function(){Object(l.a)(!1)}}function C(){}i.a.Component;i.a.Component;i.a.useContext},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(45),o=Object.prototype.toString;function i(e){return"[object Array]"===o.call(e)}function a(e){return"undefined"===typeof e}function u(e){return null!==e&&"object"===typeof e}function l(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function s(e){return"[object Function]"===o.call(e)}function c(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),i(e))for(var n=0,r=e.length;n=0;d--){var p=a[d];"."===p?i(a,d):".."===p?(i(a,d),f++):f&&(i(a,d),f--)}if(!s)for(;f--;f)a.unshift("..");!s||""===a[0]||a[0]&&o(a[0])||a.unshift("");var h=a.join("/");return n&&"/"!==h.substr(-1)&&(h+="/"),h};function u(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}var l=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));if("object"===typeof t||"object"===typeof n){var r=u(t),o=u(n);return r!==t||o!==n?e(r,o):Object.keys(Object.assign({},t,n)).every((function(r){return e(t[r],n[r])}))}return!1},s=n(14);function c(e){return"/"===e.charAt(0)?e:"/"+e}function f(e){return"/"===e.charAt(0)?e.substr(1):e}function d(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function p(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function h(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function v(e,t,n,o){var i;"string"===typeof e?(i=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var i=t.indexOf("?");return-1!==i&&(n=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e)).state=t:(void 0===(i=Object(r.a)({},e)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==t&&void 0===i.state&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(u){throw u instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):u}return n&&(i.key=n),o?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=a(i.pathname,o.pathname)):i.pathname=o.pathname:i.pathname||(i.pathname="/"),i}function m(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&l(e.state,t.state)}function g(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,o){if(null!=e){var i="function"===typeof e?e(t,n):e;"string"===typeof i?"function"===typeof r?r(i,o):o(!0):o(!1!==i)}else o(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;rt?n.splice(t,n.length-t,o):n.push(o),f({action:r,location:o,index:t,entries:n})}}))},replace:function(e,t){var r="REPLACE",o=v(e,t,d(),w.location);c.confirmTransitionTo(o,r,n,(function(e){e&&(w.entries[w.index]=o,f({action:r,location:o}))}))},go:b,goBack:function(){b(-1)},goForward:function(){b(1)},canGo:function(e){var t=w.index+e;return t>=0&&t=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(0),o=Object.prototype.hasOwnProperty;function i(){return"undefined"===typeof document||"undefined"===typeof document.visibilityState||"hidden"!==document.visibilityState}var a=new WeakMap,u=0;var l=new(function(){function e(e){void 0===e&&(e={}),this.__cache=new Map(Object.entries(e)),this.__listeners=[]}return e.prototype.get=function(e){var t=this.serializeKey(e)[0];return this.__cache.get(t)},e.prototype.set=function(e,t){var n=this.serializeKey(e)[0];this.__cache.set(n,t),this.notify()},e.prototype.keys=function(){return Array.from(this.__cache.keys())},e.prototype.has=function(e){var t=this.serializeKey(e)[0];return this.__cache.has(t)},e.prototype.clear=function(){this.__cache.clear(),this.notify()},e.prototype.delete=function(e){var t=this.serializeKey(e)[0];this.__cache.delete(t),this.notify()},e.prototype.serializeKey=function(e){var t=null;if("function"===typeof e)try{e=e()}catch(n){e=""}return Array.isArray(e)?(t=e,e=function(e){if(!e.length)return"";for(var t="arg",n=0;n-1&&(t.__listeners[r]=t.__listeners[t.__listeners.length-1],t.__listeners.length--)}}},e.prototype.notify=function(){for(var e=0,t=this.__listeners;en.errorRetryCount)){var a=Math.min(o.retryCount||0,8),u=~~((Math.random()+.5)*(1<0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0));return Promise.all(f).then((function(){return l.get(r)}))}return Promise.resolve(l.get(r))},O=function(e,t,n,r){var o=_[e];if(e&&o)for(var i=0;i0));return[2,Promise.all(h).then((function(){if(c)throw c;return l.get(o)}))]}if(c)throw c;return[2,s]}}))}))};p.Provider;var P=function(){for(var e=this,t=[],n=0;n=1&&(o=t[0]),t.length>2?(a=t[1],u=t[2]):"function"===typeof t[1]?a=t[1]:"object"===typeof t[1]&&(u=t[1]);var s=l.serializeKey(o),d=s[0],m=s[1],k=s[2],R=s[3];u=Object.assign({},c,Object(r.useContext)(p),u);var P=Object(r.useRef)(u);y((function(){P.current=u})),"undefined"===typeof a&&(a=u.fetcher);var A=function(){var e=l.get(d);return"undefined"===typeof e?u.initialData:e},j=A(),M=l.get(k),N=!!l.get(R),I=Object(r.useRef)({data:!1,error:!1,isValidating:!1}),z=Object(r.useRef)({data:j,error:M,isValidating:N});Object(r.useDebugValue)(z.current.data);var L=Object(r.useState)(null)[1],F=Object(r.useCallback)((function(e){var t=!1;for(var n in e)z.current[n]!==e[n]&&(z.current[n]=e[n],I.current[n]&&(t=!0));if(t||u.suspense){if(D.current)return;L({})}}),[]),D=Object(r.useRef)(!1),B=Object(r.useRef)(d),V=Object(r.useRef)({emit:function(e){for(var t,n=[],r=1;r=0&&(n[r]=n[n.length-1],n.pop())}},$=Object(r.useCallback)((function(t){return void 0===t&&(t={}),h(e,void 0,void 0,(function(){var e,n,r,o,i,s,c;return v(this,(function(f){switch(f.label){case 0:if(!d||!a)return[2,!1];if(D.current)return[2,!1];t=Object.assign({dedupe:!1},t),e=!0,n="undefined"!==typeof b[d]&&t.dedupe,f.label=1;case 1:return f.trys.push([1,6,,7]),F({isValidating:!0}),l.set(R,!0),n||O(d,void 0,void 0,!0),r=void 0,o=void 0,n?(o=w[d],[4,b[d]]):[3,3];case 2:return r=f.sent(),[3,5];case 3:return u.loadingTimeout&&!l.get(d)&&setTimeout((function(){e&&V.current.emit("onLoadingSlow",d,u)}),u.loadingTimeout),b[d]=null!==m?a.apply(void 0,m):a(d),w[d]=o=Date.now(),[4,b[d]];case 4:r=f.sent(),setTimeout((function(){delete b[d],delete w[d]}),u.dedupingInterval),V.current.emit("onSuccess",r,d,u),f.label=5;case 5:return w[d]>o||E[d]&&(o<=E[d]||o<=T[d]||0===T[d])?(F({isValidating:!1}),[2,!1]):(l.set(d,r),l.set(k,void 0),l.set(R,!1),i={isValidating:!1},"undefined"!==typeof z.current.error&&(i.error=void 0),u.compare(z.current.data,r)||(i.data=r),F(i),n||O(d,r,void 0,!1),[3,7]);case 6:return s=f.sent(),delete b[d],delete w[d],l.set(k,s),z.current.error!==s&&(F({isValidating:!1,error:s}),n||O(d,void 0,s,!1)),V.current.emit("onError",s,d,u),u.shouldRetryOnError&&(c=(t.retryCount||0)+1,V.current.emit("onErrorRetry",s,d,u,$,Object.assign({dedupe:!0},t,{retryCount:c}))),[3,7];case 7:return e=!1,[2,!0]}}))}))}),[d]);y((function(){if(d){D.current=!1;var e=z.current.data,t=A();B.current!==d&&(B.current=d),u.compare(e,t)||F({data:t});var n=function(){return $({dedupe:!0})};(u.revalidateOnMount||!u.initialData&&void 0===u.revalidateOnMount)&&("undefined"!==typeof t?g(n):n());var r=!1,o=function(){!r&&P.current.revalidateOnFocus&&(r=!0,n(),setTimeout((function(){return r=!1}),P.current.focusThrottleInterval))},i=function(){P.current.revalidateOnReconnect&&n()},a=function(e,t,r,o,i){void 0===e&&(e=!0),void 0===i&&(i=!0);var a={},l=!1;return"undefined"===typeof t||u.compare(z.current.data,t)||(a.data=t,l=!0),z.current.error!==r&&(a.error=r,l=!0),"undefined"!==typeof o&&z.current.isValidating!==o&&(a.isValidating=o,l=!0),l&&F(a),!!e&&(i?n():$())};return H(S,o),H(x,i),H(_,a),function(){F=function(){return null},D.current=!0,W(S,o),W(x,i),W(_,a)}}}),[d,$]),y((function(){var t=null;return P.current.refreshInterval&&(t=setTimeout((function n(){return h(e,void 0,void 0,(function(){return v(this,(function(e){switch(e.label){case 0:return z.current.error||!P.current.refreshWhenHidden&&!i()||!P.current.refreshWhenOffline&&!f()?[3,2]:[4,$({dedupe:!0})];case 1:e.sent(),e.label=2;case 2:return P.current.refreshInterval&&!z.current.error&&(t=setTimeout(n,P.current.refreshInterval)),[2]}}))}))}),P.current.refreshInterval)),function(){t&&clearTimeout(t)}}),[u.refreshInterval,u.refreshWhenHidden,u.refreshWhenOffline,$]);var G=Object(r.useMemo)((function(){var e={revalidate:$,mutate:U};return Object.defineProperties(e,{error:{get:function(){return I.current.error=!0,B.current===d?z.current.error:M},enumerable:!0},data:{get:function(){return I.current.data=!0,B.current===d?z.current.data:j},enumerable:!0},isValidating:{get:function(){return I.current.isValidating=!0,z.current.isValidating},enumerable:!0}}),e}),[$]);if(u.suspense){var q=l.get(d),Y=l.get(k);if("undefined"===typeof q&&(q=j),"undefined"===typeof Y&&(Y=M),"undefined"===typeof q&&"undefined"===typeof Y){if(b[d]||$(),b[d]&&"function"===typeof b[d].then)throw b[d];q=b[d]}if("undefined"===typeof q&&Y)throw Y;return{error:Y,data:q,revalidate:$,mutate:U,isValidating:z.current.isValidating}}return G};t.a=P},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r3?t.i-4:t.i:Array.isArray(e)?1:d(e)?2:p(e)?3:0}function l(e,t){return 2===u(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function s(e,t){return 2===u(e)?e.get(t):e[t]}function c(e,t,n){var r=u(e);2===r?e.set(t,n):3===r?(e.delete(t),e.add(n)):e[t]=n}function f(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function d(e){return B&&e instanceof Map}function p(e){return V&&e instanceof Set}function h(e){return e.o||e.t}function v(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=q(e);delete t[$];for(var n=G(t),r=0;r1&&(e.set=e.add=e.clear=e.delete=g),Object.freeze(e),t&&a(e,(function(e,t){return m(t,!0)}),!0))}function g(){r(2)}function y(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function b(e){var t=Y[e];return t||r(19,e),t}function w(){return F}function S(e,t){t&&(b("Patches"),e.u=[],e.s=[],e.v=t)}function x(e){_(e),e.p.forEach(T),e.p=null}function _(e){e===F&&(F=e.l)}function E(e){return F={p:[],l:F,h:e,m:!0,_:0}}function T(e){var t=e[$];0===t.i||1===t.i?t.j():t.g=!0}function k(e,t){t._=t.p.length;var n=t.p[0],o=void 0!==e&&e!==n;return t.h.O||b("ES5").S(t,e,o),o?(n[$].P&&(x(t),r(4)),i(e)&&(e=R(t,e),t.l||C(t,e)),t.u&&b("Patches").M(n[$],e,t.u,t.s)):e=R(t,n,[]),x(t),t.u&&t.v(t.u,t.s),e!==H?e:void 0}function R(e,t,n){if(y(t))return t;var r=t[$];if(!r)return a(t,(function(o,i){return O(e,r,t,o,i,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return C(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=v(r.k):r.o;a(3===r.i?new Set(o):o,(function(t,i){return O(e,r,o,t,i,n)})),C(e,o,!1),n&&e.u&&b("Patches").R(r,n,e.u,e.s)}return r.o}function O(e,t,n,r,a,u){if(o(a)){var s=R(e,a,u&&t&&3!==t.i&&!l(t.D,r)?u.concat(r):void 0);if(c(n,r,s),!o(s))return;e.m=!1}if(i(a)&&!y(a)){if(!e.h.N&&e._<1)return;R(e,a),t&&t.A.l||C(e,a)}}function C(e,t,n){void 0===n&&(n=!1),e.h.N&&e.m&&m(t,n)}function P(e,t){var n=e[$];return(n?h(n):e)[t]}function A(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function j(e){e.P||(e.P=!0,e.l&&j(e.l))}function M(e){e.o||(e.o=v(e.t))}function N(e,t,n){var r=d(t)?b("MapSet").T(t,n):p(t)?b("MapSet").F(t,n):e.O?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:w(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},o=r,i=K;n&&(o=[r],i=Q);var a=Proxy.revocable(o,i),u=a.revoke,l=a.proxy;return r.k=l,r.j=u,l}(t,n):b("ES5").J(t,n);return(n?n.A:w()).p.push(r),r}function I(e){return o(e)||r(22,e),function e(t){if(!i(t))return t;var n,r=t[$],o=u(t);if(r){if(!r.P&&(r.i<4||!b("ES5").K(r)))return r.t;r.I=!0,n=z(t,o),r.I=!1}else n=z(t,o);return a(n,(function(t,o){r&&s(r.t,t)===o||c(n,t,e(o))})),3===o?new Set(n):n}(e)}function z(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return v(e)}var L,F,D="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),B="undefined"!=typeof Map,V="undefined"!=typeof Set,U="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,H=D?Symbol.for("immer-nothing"):((L={})["immer-nothing"]=!0,L),W=D?Symbol.for("immer-draftable"):"__$immer_draftable",$=D?Symbol.for("immer-state"):"__$immer_state",G=("undefined"!=typeof Symbol&&Symbol.iterator,"undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames),q=Object.getOwnPropertyDescriptors||function(e){var t={};return G(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},Y={},K={get:function(e,t){if(t===$)return e;var n=h(e);if(!l(n,t))return function(e,t,n){var r,o=A(t,n);return o?"value"in o?o.value:null===(r=o.get)||void 0===r?void 0:r.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!i(r)?r:r===P(e.t,t)?(M(e),e.o[t]=N(e.A.h,r,e)):r},has:function(e,t){return t in h(e)},ownKeys:function(e){return Reflect.ownKeys(h(e))},set:function(e,t,n){var r=A(h(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(e.D[t]=!0,!e.P){if(f(n,P(h(e),t))&&(void 0!==n||l(e.t,t)))return!0;M(e),j(e)}return e.o[t]=n,!0},deleteProperty:function(e,t){return void 0!==P(e.t,t)||t in e.t?(e.D[t]=!1,M(e),j(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=h(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){r(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){r(12)}},Q={};a(K,(function(e,t){Q[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),Q.deleteProperty=function(e,t){return K.deleteProperty.call(this,e[0],t)},Q.set=function(e,t,n){return K.set.call(this,e[0],t,n,e[0])};var X=new(function(){function e(e){this.O=U,this.N=!1,"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),this.produce=this.produce.bind(this),this.produceWithPatches=this.produceWithPatches.bind(this)}var t=e.prototype;return t.produce=function(e,t,n){if("function"==typeof e&&"function"!=typeof t){var o=t;t=e;var a=this;return function(e){var n=this;void 0===e&&(e=o);for(var r=arguments.length,i=Array(r>1?r-1:0),u=1;u1?n-1:0),i=1;i=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}var i=b("Patches").$;return o(e)?i(e,t):this.produce(e,(function(e){return i(e,t.slice(n+1))}))},e}()),J=X.produce;X.produceWithPatches.bind(X),X.setAutoFreeze.bind(X),X.setUseProxies.bind(X),X.applyPatches.bind(X),X.createDraft.bind(X),X.finishDraft.bind(X);t.a=J},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(26);function o(e,t){if(e){if("string"===typeof e)return Object(r.a)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(e,t):void 0}}},function(e,t,n){e.exports=function(){"use strict";var e="millisecond",t="second",n="minute",r="hour",o="day",i="week",a="month",u="quarter",l="year",s="date",c=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?.?(\d+)?$/,f=/\[([^\]]+)]|Y{2,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,d=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},p={s:d,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+d(r,2,"0")+":"+d(o,2,"0")},m:function e(t,n){if(t.date()e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){u.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){u.headers[e]=r.merge(i)})),e.exports=u}).call(this,n(126))},function(e,t,n){"use strict";var r=n(12),o=n(128),i=n(130),a=n(46),u=n(131),l=n(134),s=n(135),c=n(50);e.exports=function(e){return new Promise((function(t,n){var f=e.data,d=e.headers;r.isFormData(f)&&delete d["Content-Type"],(r.isBlob(f)||r.isFile(f))&&f.type&&delete d["Content-Type"];var p=new XMLHttpRequest;if(e.auth){var h=e.auth.username||"",v=unescape(encodeURIComponent(e.auth.password))||"";d.Authorization="Basic "+btoa(h+":"+v)}var m=u(e.baseURL,e.url);if(p.open(e.method.toUpperCase(),a(m,e.params,e.paramsSerializer),!0),p.timeout=e.timeout,p.onreadystatechange=function(){if(p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in p?l(p.getAllResponseHeaders()):null,i={data:e.responseType&&"text"!==e.responseType?p.response:p.responseText,status:p.status,statusText:p.statusText,headers:r,config:e,request:p};o(t,n,i),p=null}},p.onabort=function(){p&&(n(c("Request aborted",e,"ECONNABORTED",p)),p=null)},p.onerror=function(){n(c("Network Error",e,null,p)),p=null},p.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(c(t,e,"ECONNABORTED",p)),p=null},r.isStandardBrowserEnv()){var g=(e.withCredentials||s(m))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;g&&(d[e.xsrfHeaderName]=g)}if("setRequestHeader"in p&&r.forEach(d,(function(e,t){"undefined"===typeof f&&"content-type"===t.toLowerCase()?delete d[t]:p.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(p.withCredentials=!!e.withCredentials),e.responseType)try{p.responseType=e.responseType}catch(y){if("json"!==e.responseType)throw y}"function"===typeof e.onDownloadProgress&&p.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){p&&(p.abort(),n(e),p=null)})),f||(f=null),p.send(f)}))}},function(e,t,n){"use strict";var r=n(129);e.exports=function(e,t,n,o,i){var a=new Error(e);return r(a,t,n,o,i)}},function(e,t,n){"use strict";var r=n(12);e.exports=function(e,t){t=t||{};var n={},o=["url","method","data"],i=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],u=["validateStatus"];function l(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function s(o){r.isUndefined(t[o])?r.isUndefined(e[o])||(n[o]=l(void 0,e[o])):n[o]=l(e[o],t[o])}r.forEach(o,(function(e){r.isUndefined(t[e])||(n[e]=l(void 0,t[e]))})),r.forEach(i,s),r.forEach(a,(function(o){r.isUndefined(t[o])?r.isUndefined(e[o])||(n[o]=l(void 0,e[o])):n[o]=l(void 0,t[o])})),r.forEach(u,(function(r){r in t?n[r]=l(e[r],t[r]):r in e&&(n[r]=l(void 0,e[r]))}));var c=o.concat(i).concat(a).concat(u),f=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===c.indexOf(e)}));return r.forEach(f,s),n}},function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},function(e,t){var n=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return n.test(e)}},function(e,t,n){"use strict";e.exports=n(169)},,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(20),o=n(0);function i(e){var t=Object(o.useState)(e),n=t[1];return[t[0],Object(o.useCallback)((function(e){n(Object(r.a)(e))}),[])]}},function(e,t,n){var r=n(81);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},function(e,t,n){e.exports=n(121)},function(e,t,n){e.exports=function(){"use strict";return function(e,t,n){e=e||{};var r=t.prototype,o={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};n.en.relativeTime=o;var i=function(t,r,i,a){for(var u,l,s,c=i.$locale().relativeTime||o,f=e.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],d=f.length,p=0;p0,v<=h.r||!h.r){v<=1&&p>0&&(h=f[p-1]);var m=c[h.l];l="string"==typeof m?m.replace("%d",v):m(v,r,h.l,s);break}}return r?l:(s?c.future:c.past).replace("%s",l)};r.to=function(e,t){return i(e,t,this,!0)},r.from=function(e,t){return i(e,t,this)};var a=function(e){return e.$u?n.utc():n()};r.toNow=function(e){return this.to(a(this),e)},r.fromNow=function(e){return this.from(a(this),e)}}}()},function(e,t,n){"use strict";(function(e){var r=n(0);function o(t){var n;n="undefined"!==typeof window?window:"undefined"!==typeof self?self:e;var r="undefined"!==typeof document&&document.attachEvent;if(!r){var o=function(){var e=n.requestAnimationFrame||n.mozRequestAnimationFrame||n.webkitRequestAnimationFrame||function(e){return n.setTimeout(e,20)};return function(t){return e(t)}}(),i=function(){var e=n.cancelAnimationFrame||n.mozCancelAnimationFrame||n.webkitCancelAnimationFrame||n.clearTimeout;return function(t){return e(t)}}(),a=function(e){var t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,o=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,o.style.width=n.offsetWidth+1+"px",o.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},u=function(e){if(!(e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)){var t=this;a(this),this.__resizeRAF__&&i(this.__resizeRAF__),this.__resizeRAF__=o((function(){(function(e){return e.offsetWidth!=e.__resizeLast__.width||e.offsetHeight!=e.__resizeLast__.height})(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(n){n.call(t,e)})))}))}},l=!1,s="",c="animationstart",f="Webkit Moz O ms".split(" "),d="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),p=document.createElement("fakeelement");if(void 0!==p.style.animationName&&(l=!0),!1===l)for(var h=0;h div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',r=e.head||e.getElementsByTagName("head")[0],o=e.createElement("style");o.id="detectElementResize",o.type="text/css",null!=t&&o.setAttribute("nonce",t),o.styleSheet?o.styleSheet.cssText=n:o.appendChild(e.createTextNode(n)),r.appendChild(o)}}(i),e.__resizeLast__={},e.__resizeListeners__=[],(e.__resizeTriggers__=i.createElement("div")).className="resize-triggers",e.__resizeTriggers__.innerHTML='
',e.appendChild(e.__resizeTriggers__),a(e),e.addEventListener("scroll",u,!0),c&&(e.__resizeTriggers__.__animationListener__=function(t){t.animationName==v&&a(e)},e.__resizeTriggers__.addEventListener(c,e.__resizeTriggers__.__animationListener__))}e.__resizeListeners__.push(o)}},removeResizeListener:function(e,t){if(r)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",u,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(c,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(n){}}}}}var i=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},a=function(){function e(e,t){for(var n=0;n=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var d=null;function p(e){if(void 0===e&&(e=!1),null===d||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?d="positive-descending":(t.scrollLeft=1,d=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),d}return d}var h=function(e,t){return e};function v(e){var t,n,a=e.getItemOffset,s=e.getEstimatedTotalSize,d=e.getItemSize,v=e.getOffsetForIndexAndAlignment,g=e.getStartIndexForOffset,y=e.getStopIndexForStartIndex,b=e.initInstanceProps,w=e.shouldResetStyleCacheOnItemSizeChange,S=e.validateProps;return n=t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=b(n.props,i(i(n))),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:i(i(n)),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"===typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=u((function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=u((function(e,t,r){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:r})})),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,r=n.props,o=r.direction,i=r.itemSize,u=r.layout,l=n._getItemStyleCache(w&&i,w&&u,w&&o);if(l.hasOwnProperty(e))t=l[e];else{var s,c=a(n.props,e,n._instanceProps),f=d(n.props,e,n._instanceProps),p="horizontal"===o||"horizontal"===u;l[e]=((s={position:"absolute"})["rtl"===o?"right":"left"]=p?c:0,s.top=p?0:c,s.height=p?"100%":f,s.width=p?f:"100%",t=s)}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=u((function(e,t,n){return{}})),n._onScrollHorizontal=function(e){var t=e.currentTarget,r=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;n.setState((function(e){if(e.scrollOffset===o)return null;var t=n.props.direction,a=o;if("rtl"===t)switch(p()){case"negative":a=-o;break;case"positive-descending":a=i-r-o}return a=Math.max(0,Math.min(a,i-r)),{isScrolling:!0,scrollDirection:e.scrollOffset0)for(var C=k;C<=R;C++)O.push(Object(l.createElement)(t,{data:d,key:v(C,d),index:C,isScrolling:w?x:void 0,style:this._getItemStyle(C)}));var P=s(this.props,this._instanceProps);return Object(l.createElement)(g||y||"div",{className:n,onScroll:E,ref:this._outerRefSetter,style:Object(r.a)({position:"relative",height:i,width:S,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},Object(l.createElement)(u||c||"div",{children:O,ref:a,style:{height:_?"100%":P,pointerEvents:x?"none":void 0,width:_?P:"100%"}}))},n._callPropsCallbacks=function(){if("function"===typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],o=e[3];this._callOnItemsRendered(t,n,r,o)}if("function"===typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,u=i.scrollOffset,l=i.scrollUpdateWasRequested;this._callOnScroll(a,u,l)}},n._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,o=r.isScrolling,i=r.scrollDirection,a=r.scrollOffset;if(0===t)return[0,0,0,0];var u=g(this.props,a,this._instanceProps),l=y(this.props,u,a,this._instanceProps),s=o&&"backward"!==i?1:Math.max(1,n),c=o&&"forward"!==i?1:Math.max(1,n);return[Math.max(0,u-s),Math.max(0,Math.min(t-1,l+c)),u,l]},t}(l.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},n}var m=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},g=v({getItemOffset:function(e,t){return t*e.itemSize},getItemSize:function(e,t){return e.itemSize},getEstimatedTotalSize:function(e){var t=e.itemCount;return e.itemSize*t},getOffsetForIndexAndAlignment:function(e,t,n,r){var o=e.direction,i=e.height,a=e.itemCount,u=e.itemSize,l=e.layout,s=e.width,c="horizontal"===o||"horizontal"===l?s:i,f=Math.max(0,a*u-c),d=Math.min(f,t*u),p=Math.max(0,t*u-c+u);switch("smart"===n&&(n=r>=p-c&&r<=d+c?"auto":"center"),n){case"start":return d;case"end":return p;case"center":var h=Math.round(p+(d-p)/2);return hf+Math.floor(c/2)?f:h;case"auto":default:return r>=p&&r<=d?r:rP.length&&P.push(e)}function M(e,t,n,r){var o=typeof e;"undefined"!==o&&"boolean"!==o||(e=null);var u=!1;if(null===e)u=!0;else switch(o){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case i:case a:u=!0}}if(u)return n(r,e,""===t?"."+I(e,0):t),1;if(u=0,t=""===t?".":t+":",Array.isArray(e))for(var l=0;l