From 7af3c821c9c4cdfe100918407d320e77b683d33c Mon Sep 17 00:00:00 2001 From: awmleer Date: Tue, 9 Apr 2024 02:16:25 +0000 Subject: [PATCH] deploy: 3b22a9110242030ea96145b211e47b61095e9c17 --- 404.html | 13 ++++++++----- _demos/:uuid/index.html | 13 ++++++++----- guide/how-to-migrate-from-v1-to-v2/index.html | 13 ++++++++----- guide/index.html | 13 ++++++++----- guide/performance/index.html | 13 ++++++++----- guide/quick-start/index.html | 13 ++++++++----- guide/use-in-class-components/index.html | 13 ++++++++----- index.html | 13 ++++++++----- umi.035664e1.js | 1 + umi.4e7e3f1f.js | 1 - zh/guide/how-to-migrate-from-v1-to-v2/index.html | 13 ++++++++----- zh/guide/index.html | 13 ++++++++----- zh/guide/performance/index.html | 13 ++++++++----- zh/guide/quick-start/index.html | 13 ++++++++----- zh/guide/use-in-class-components/index.html | 13 ++++++++----- zh/index.html | 13 ++++++++----- ~demos/:uuid/index.html | 13 ++++++++----- 17 files changed, 121 insertions(+), 76 deletions(-) create mode 100644 umi.035664e1.js delete mode 100644 umi.4e7e3f1f.js diff --git a/404.html b/404.html index 59c0f33..ac62511 100644 --- a/404.html +++ b/404.html @@ -25,12 +25,15 @@ @@ -39,6 +42,6 @@
- + diff --git a/_demos/:uuid/index.html b/_demos/:uuid/index.html index 59c0f33..ac62511 100644 --- a/_demos/:uuid/index.html +++ b/_demos/:uuid/index.html @@ -25,12 +25,15 @@ @@ -39,6 +42,6 @@
- + diff --git a/guide/how-to-migrate-from-v1-to-v2/index.html b/guide/how-to-migrate-from-v1-to-v2/index.html index 054e2be..12dcf04 100644 --- a/guide/how-to-migrate-from-v1-to-v2/index.html +++ b/guide/how-to-migrate-from-v1-to-v2/index.html @@ -25,12 +25,15 @@ @@ -39,6 +42,6 @@
- + diff --git a/guide/index.html b/guide/index.html index 59c0f33..ac62511 100644 --- a/guide/index.html +++ b/guide/index.html @@ -25,12 +25,15 @@ @@ -39,6 +42,6 @@
- + diff --git a/guide/performance/index.html b/guide/performance/index.html index dc14699..1c6a865 100644 --- a/guide/performance/index.html +++ b/guide/performance/index.html @@ -25,12 +25,15 @@ @@ -39,6 +42,6 @@
- + diff --git a/guide/quick-start/index.html b/guide/quick-start/index.html index bfed5e6..0bfad33 100644 --- a/guide/quick-start/index.html +++ b/guide/quick-start/index.html @@ -25,12 +25,15 @@ @@ -39,6 +42,6 @@
- + diff --git a/guide/use-in-class-components/index.html b/guide/use-in-class-components/index.html index 8c00e04..34cbf1c 100644 --- a/guide/use-in-class-components/index.html +++ b/guide/use-in-class-components/index.html @@ -25,12 +25,15 @@ @@ -39,6 +42,6 @@
- + diff --git a/index.html b/index.html index 9e6f9da..c11adb5 100644 --- a/index.html +++ b/index.html @@ -25,12 +25,15 @@ @@ -39,6 +42,6 @@
- + diff --git a/umi.035664e1.js b/umi.035664e1.js new file mode 100644 index 0000000..0cbe289 --- /dev/null +++ b/umi.035664e1.js @@ -0,0 +1 @@ +(function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=0)})({"+37V":function(e,t,n){var r=n("GXoa");r("Uint32",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},"+3Zf":function(e,t,n){"use strict";var r=n("OOCw"),o=n("qyeh"),a=n("sErw"),i=n("v3z7"),u=n("R8Xy"),l=n("uZx/");r({target:"Set",proto:!0,real:!0,forced:o},{find:function(e){var t=a(this),n=u(t),r=i(e,arguments.length>1?arguments[1]:void 0,3);return l(n,(function(e){if(r(e,e,t))return l.stop(e)}),void 0,!1,!0).result}})},"+AQ8":function(e,t,n){},"+ock":function(e,t,n){"use strict";var r=n("uF/W"),o=n("sErw"),a=n("h+/6"),i=n("rfqm"),u="toString",l=RegExp.prototype,c=l[u],s=a((function(){return"/a/b"!=c.call({source:"a",flags:"b"})})),f=c.name!=u;(s||f)&&r(RegExp.prototype,u,(function(){var e=o(this),t=String(e.source),n=e.flags,r=String(void 0===n&&e instanceof RegExp&&!("flags"in l)?i.call(e):n);return"/"+t+"/"+r}),{unsafe:!0})},"//kW":function(e,t,n){var r=n("ANLo");e.exports=function(e){var t=r(e);if(t<0)throw RangeError("The argument can't be less than 0");return t}},"/1uK":function(e,t,n){"use strict";var r=n("OOCw"),o=n("Us7a").end,a=n("SRer");r({target:"String",proto:!0,forced:a},{padEnd:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},"/5AF":function(e,t,n){var r=n("ZGY3");r("flat")},"/fpf":function(e,t){var n=1/0,r=Math.abs,o=Math.pow,a=Math.floor,i=Math.log,u=Math.LN2,l=function(e,t,l){var c,s,f,d=new Array(l),p=8*l-t-1,h=(1<>1,m=23===t?o(2,-24)-o(2,-77):0,g=e<0||0===e&&1/e<0?1:0,y=0;for(e=r(e),e!=e||e===n?(s=e!=e?1:0,c=h):(c=a(i(e)/u),e*(f=o(2,-c))<1&&(c--,f*=2),e+=c+v>=1?m/f:m*o(2,1-v),e*f>=2&&(c++,f/=2),c+v>=h?(s=0,c=h):c+v>=1?(s=(e*f-1)*o(2,t),c+=v):(s=e*o(2,v-1)*o(2,t),c=0));t>=8;d[y++]=255&s,s/=256,t-=8);for(c=c<0;d[y++]=255&c,c/=256,p-=8);return d[--y]|=128*g,d},c=function(e,t){var r,a=e.length,i=8*a-t-1,u=(1<>1,c=i-7,s=a-1,f=e[s--],d=127&f;for(f>>=7;c>0;d=256*d+e[s],s--,c-=8);for(r=d&(1<<-c)-1,d>>=-c,c+=t;c>0;r=256*r+e[s],s--,c-=8);if(0===d)d=1-l;else{if(d===u)return r?NaN:f?-n:n;r+=o(2,t),d-=l}return(f?-1:1)*r*o(2,d-t)};e.exports={pack:l,unpack:c}},"/gJP":function(e,t,n){var r=n("r+6h"),o=n("6SQG"),a=n("RzMS"),i=n("aRba"),u=n("0JbB").f,l=n("lFeU").f,c=n("q43B"),s=n("rfqm"),f=n("kj2u"),d=n("uF/W"),p=n("h+/6"),h=n("uJNS").set,v=n("ct0+"),m=n("3Hes"),g=m("match"),y=o.RegExp,b=y.prototype,w=/a/g,E=/a/g,O=new y(w)!==w,k=f.UNSUPPORTED_Y,S=r&&a("RegExp",!O||k||p((function(){return E[g]=!1,y(w)!=w||y(E)==E||"/a/i"!=y(w,"i")})));if(S){var x=function(e,t){var n,r=this instanceof x,o=c(e),a=void 0===t;if(!r&&o&&e.constructor===x&&a)return e;O?o&&!a&&(e=e.source):e instanceof x&&(a&&(t=s.call(e)),e=e.source),k&&(n=!!t&&t.indexOf("y")>-1,n&&(t=t.replace(/y/g,"")));var u=i(O?new y(e,t):y(e,t),r?this:b,x);return k&&n&&h(u,{sticky:n}),u},j=function(e){e in x||u(x,e,{configurable:!0,get:function(){return y[e]},set:function(t){y[e]=t}})},C=l(y),A=0;while(C.length>A)j(C[A++]);b.constructor=x,x.prototype=b,d(o,"RegExp",x)}v("RegExp")},0:function(e,t,n){e.exports=n("tB8F")},"0JbB":function(e,t,n){var r=n("r+6h"),o=n("p3eN"),a=n("sErw"),i=n("JSMs"),u=Object.defineProperty;t.f=r?u:function(e,t,n){if(a(e),t=i(t,!0),a(n),o)try{return u(e,t,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},"0Q8x":function(e,t,n){"use strict";n.r(t),n.d(t,"ApplyPluginsType",(function(){return U})),n.d(t,"Plugin",(function(){return V})),n.d(t,"dynamic",(function(){return z})),n.d(t,"isBrowser",(function(){return H}));var r=n("NUIj"),o=n.n(r),a=n("ptaF");n.d(t,"createBrowserHistory",(function(){return a["a"]})),n.d(t,"createHashHistory",(function(){return a["b"]})),n.d(t,"createMemoryHistory",(function(){return a["d"]}));var i=n("Bm2L");n.d(t,"__RouterContext",(function(){return i["h"]}));var u=n("QwZf");n.d(t,"Link",(function(){return u["a"]})),n.d(t,"MemoryRouter",(function(){return i["a"]})),n.d(t,"NavLink",(function(){return u["b"]})),n.d(t,"Prompt",(function(){return i["b"]})),n.d(t,"Redirect",(function(){return i["c"]})),n.d(t,"Route",(function(){return i["d"]})),n.d(t,"Router",(function(){return i["e"]})),n.d(t,"StaticRouter",(function(){return i["f"]})),n.d(t,"Switch",(function(){return i["g"]})),n.d(t,"matchPath",(function(){return i["i"]})),n.d(t,"useHistory",(function(){return i["j"]})),n.d(t,"useLocation",(function(){return i["k"]})),n.d(t,"useParams",(function(){return i["l"]})),n.d(t,"useRouteMatch",(function(){return i["m"]})),n.d(t,"withRouter",(function(){return i["n"]}));var l=n("ahKI"),c=n("rVbH");function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}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 a,i=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){u=!0,a=e},f:function(){try{i||null==n["return"]||n["return"]()}finally{if(u)throw a}}}}var j=Object(l["createContext"])(null),C=[],A=[],T=!1;function P(e){var t=e(),n={loading:!0,loaded:null,error:null};return n.promise=t.then((function(e){return n.loading=!1,n.loaded=e,e}))["catch"]((function(e){throw n.loading=!1,n.error=e,e})),n}function _(e){var t={loading:!1,loaded:{},error:null},n=[];try{Object.keys(e).forEach((function(r){var o=P(e[r]);o.loading?t.loading=!0:(t.loaded[r]=o.loaded,t.error=o.error),n.push(o.promise),o.promise.then((function(e){t.loaded[r]=e}))["catch"]((function(e){t.error=e}))}))}catch(r){t.error=r}return t.promise=Promise.all(n).then((function(e){return t.loading=!1,e}))["catch"]((function(e){throw t.loading=!1,e})),t}function R(e){return e&&e.__esModule?e["default"]:e}function M(e,t){return Object(l["createElement"])(R(e),t)}function N(e,t){var n=Object.assign({loader:null,loading:null,delay:200,timeout:null,render:M,webpack:null,modules:null},t),r=null;function o(){if(!r){var t=new I(e,n);r={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return r.promise()}if("undefined"===typeof window&&C.push(o),!T&&"undefined"!==typeof window&&"function"===typeof n.webpack){var a=n.webpack();A.push((function(e){var t,n=x(a);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(-1!==e.indexOf(r))return o()}}catch(i){n.e(i)}finally{n.f()}}))}var i=function(e,t){o();var a=Object(l["useContext"])(j),i=Object(c["useSubscription"])(r);return Object(l["useImperativeHandle"])(t,(function(){return{retry:r.retry}})),a&&Array.isArray(n.modules)&&n.modules.forEach((function(e){a(e)})),i.loading||i.error?Object(l["createElement"])(n.loading,{isLoading:i.loading,pastDelay:i.pastDelay,timedOut:i.timedOut,error:i.error,retry:r.retry}):i.loaded?n.render(i.loaded,e):null},u=Object(l["forwardRef"])(i);return u.preload=function(){return o()},u.displayName="LoadableComponent",u}var I=function(){function e(t,n){v(this,e),this._loadFn=t,this._opts=n,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}return g(e,[{key:"promise",value:function(){return this._res.promise}},{key:"retry",value:function(){var e=this;this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};var t=this._res,n=this._opts;t.loading&&("number"===typeof n.delay&&(0===n.delay?this._state.pastDelay=!0:this._delay=setTimeout((function(){e._update({pastDelay:!0})}),n.delay)),"number"===typeof n.timeout&&(this._timeout=setTimeout((function(){e._update({timedOut:!0})}),n.timeout))),this._res.promise.then((function(){e._update(),e._clearTimeouts()}))["catch"]((function(t){e._update(),e._clearTimeouts()})),this._update({})}},{key:"_update",value:function(e){this._state=f(f({},this._state),e),this._callbacks.forEach((function(e){return e()}))}},{key:"_clearTimeouts",value:function(){clearTimeout(this._delay),clearTimeout(this._timeout)}},{key:"getCurrentValue",value:function(){return f(f({},this._state),{},{error:this._res.error,loaded:this._res.loaded,loading:this._res.loading})}},{key:"subscribe",value:function(e){var t=this;return this._callbacks.add(e),function(){t._callbacks["delete"](e)}}}]),e}();function L(e){return N(P,e)}function F(e){if("function"!==typeof e.render)throw new Error("LoadableMap requires a `render(loaded, props)` function");return N(_,e)}function D(e,t){var n=[];while(e.length){var r=e.pop();n.push(r(t))}return Promise.all(n).then((function(){if(e.length)return D(e,t)}))}function z(e){var t=L,n={loading:function(e){e.error,e.isLoading;return Object(l["createElement"])("p",null,"loading...")}};if("function"===typeof e)n.loader=e;else{if("object"!==d(e))throw new Error("Unexpect arguments ".concat(e));n=f(f({},n),e)}return t(n)}function B(e,t){if(!e)throw new Error(t)}L.Map=F,L.preloadAll=function(){return new Promise((function(e,t){D(C).then(e,t)}))},L.preloadReady=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return new Promise((function(t){var n=function(){return T=!0,t()};D(A,e).then(n,n)}))},"undefined"!==typeof window&&(window.__NEXT_PRELOADREADY=L.preloadReady);var U,H=function(){return"undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement};function W(e){var t=e.fns,n=e.args;if(1===t.length)return t[0];var r=t.pop();return t.reduce((function(e,t){return function(){return t(e,n)}}),r)}function G(e){return!!e&&"object"===d(e)&&"function"===typeof e.then}(function(e){e["compose"]="compose",e["modify"]="modify",e["event"]="event"})(U||(U={}));var V=function(){function e(t){v(this,e),this.validKeys=void 0,this.hooks={},this.validKeys=(null===t||void 0===t?void 0:t.validKeys)||[]}return g(e,[{key:"register",value:function(e){var t=this;B(!!e.apply,"register failed, plugin.apply must supplied"),B(!!e.path,"register failed, plugin.path must supplied"),Object.keys(e.apply).forEach((function(n){B(t.validKeys.indexOf(n)>-1,"register failed, invalid key ".concat(n," from plugin ").concat(e.path,".")),t.hooks[n]||(t.hooks[n]=[]),t.hooks[n]=t.hooks[n].concat(e.apply[n])}))}},{key:"getHooks",value:function(e){var t=e.split("."),n=b(t),r=n[0],o=n.slice(1),a=this.hooks[r]||[];return o.length&&(a=a.map((function(e){try{var t,n=e,r=x(o);try{for(r.s();!(t=r.n()).done;){var a=t.value;n=n[a]}}catch(i){r.e(i)}finally{r.f()}return n}catch(u){return null}})).filter(Boolean)),a}},{key:"applyPlugins",value:function(e){var t=e.key,n=e.type,r=e.initialValue,a=e.args,i=e.async,u=this.getHooks(t)||[];switch(a&&B("object"===d(a),"applyPlugins failed, args must be plain object."),n){case U.modify:return i?u.reduce(function(){var e=h(o.a.mark((function e(n,r){var i;return o.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(B("function"===typeof r||"object"===d(r)||G(r),"applyPlugins failed, all hooks for key ".concat(t," must be function, plain object or Promise.")),!G(n)){e.next=5;break}return e.next=4,n;case 4:n=e.sent;case 5:if("function"!==typeof r){e.next=16;break}if(i=r(n,a),!G(i)){e.next=13;break}return e.next=10,i;case 10:return e.abrupt("return",e.sent);case 13:return e.abrupt("return",i);case 14:e.next=21;break;case 16:if(!G(r)){e.next=20;break}return e.next=19,r;case 19:r=e.sent;case 20:return e.abrupt("return",f(f({},n),r));case 21:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),G(r)?r:Promise.resolve(r)):u.reduce((function(e,n){return B("function"===typeof n||"object"===d(n),"applyPlugins failed, all hooks for key ".concat(t," must be function or plain object.")),"function"===typeof n?n(e,a):f(f({},e),n)}),r);case U.event:return u.forEach((function(e){B("function"===typeof e,"applyPlugins failed, all hooks for key ".concat(t," must be function.")),e(a)}));case U.compose:return function(){return W({fns:u.concat(r),args:a})()}}}}]),e}()},"0pkz":function(e,t,n){"use strict";var r=n("684d"),o=n("ZGY3"),a=n("AnAv"),i=n("uJNS"),u=n("vSpU"),l="Array Iterator",c=i.set,s=i.getterFor(l);e.exports=u(Array,"Array",(function(e,t){c(this,{type:l,target:r(e),index:0,kind:t})}),(function(){var e=s(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),a.Arguments=a.Array,o("keys"),o("values"),o("entries")},"0uFb":function(e,t,n){"use strict";var r=n("NUIj");Object.defineProperty(t,"__esModule",{value:!0});var o=n("0Q8x"),a=n("ahKI"),i=n("FaUj"),u=n("2UqR");function l(e){return e&&"object"===typeof e&&"default"in e?e:{default:e}}var c=l(a),s=l(i);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t=0||(o[n]=e[n]);return o}function y(e,t){if(null==e)return{};var n,r,o=g(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function b(e,t){return w(e)||E(e,t)||O(e,t)||S()}function w(e){if(Array.isArray(e))return e}function E(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,u=!1;try{for(n=n.call(e);!(i=(r=n.next()).done);i=!0)if(a.push(r.value),t&&a.length===t)break}catch(l){u=!0,o=l}finally{try{i||null==n["return"]||n["return"]()}finally{if(u)throw o}}return a}}function O(e,t){if(e){if("string"===typeof e)return k(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(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?k(e,t):void 0}}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)f=a.createElement(u[p],s,f),p-=1}return f}return o}function _(e){var t,n,r,a=e.route,i=e.index,u=e.opts,l={key:a.key||i,exact:a.exact,strict:a.strict,sensitive:a.sensitive,path:a.path};return a.redirect?c["default"].createElement(o.Redirect,m({},l,{from:a.path,to:a.redirect})):(!u.ssrProps||u.isServer||(null===(t=a.component)||void 0===t?void 0:t.wrapInitialPropsLoaded)||!(null===(n=a.component)||void 0===n?void 0:n.getInitialProps)&&!(null===(r=a.component)||void 0===r?void 0:r.preload)||(a.component=T(a,u)),c["default"].createElement(x,m({},l,{render:function(e){return P({route:a,opts:u,props:e})}})))}function R(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.routes?c["default"].createElement(C,t,e.routes.map((function(t,n){return _({route:t,index:n,opts:d(d({},e),{},{rootRoutes:e.rootRoutes||e.routes})})}))):null}var M=["history"];function N(e){var t=e.history,n=y(e,M);return a.useEffect((function(){function r(t,r){var a=u.matchRoutes(e.routes,t.pathname);"undefined"!==typeof document&&void 0!==n.defaultTitle&&(document.title=a.length&&a[a.length-1].route.title||n.defaultTitle||""),e.plugin.applyPlugins({key:"onRouteChange",type:o.ApplyPluginsType.event,args:{routes:e.routes,matchedRoutes:a,location:t,action:r}})}return window.g_useSSR&&(window.g_initialProps=null),r(t.location,"POP"),t.listen(r)}),[t]),c["default"].createElement(o.Router,{history:t},R(n))}function I(e){return e.plugin.applyPlugins({type:o.ApplyPluginsType.modify,key:"rootContainer",initialValue:c["default"].createElement(N,{history:e.history,routes:e.routes,plugin:e.plugin,ssrProps:e.ssrProps,defaultTitle:e.defaultTitle}),args:{history:e.history,routes:e.routes,plugin:e.plugin}})}function L(e){var t=I(e);if(!e.rootElement)return t;var n="string"===typeof e.rootElement?document.getElementById(e.rootElement):e.rootElement,r=e.callback||function(){};if(window.g_useSSR)s["default"].hydrateRoot(n,t),r();else{var o=s["default"].createRoot(n);o.render(t),r()}}t.renderClient=L,t.renderRoutes=R},"158W":function(e,t,n){"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}function o(){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(e){return!1}}n.d(t,"a",(function(){return l}));var a=n("k2w+"),i=n("KSJ2");function u(e,t){if(t&&("object"===Object(a["a"])(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Object(i["a"])(e)}function l(e){var t=o();return function(){var n,o=r(e);if(t){var a=r(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return u(this,n)}}},"1N6n":function(e,t,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t>16,l=o>>16,c=(u*i>>>0)+(a*i>>>16);return u*l+(c>>16)+((a*l>>>0)+(c&n)>>16)}})},"1cq2":function(e,t,n){"use strict";var r=n("OOCw"),o=n("qyeh"),a=n("sErw"),i=n("v3z7"),u=n("QHn5"),l=n("uZx/");r({target:"Map",proto:!0,real:!0,forced:o},{find:function(e){var t=a(this),n=u(t),r=i(e,arguments.length>1?arguments[1]:void 0,3);return l(n,(function(e,n){if(r(n,e,t))return l.stop(n)}),void 0,!0,!0).result}})},"1i7f":function(e,t,n){"use strict";n.r(t);var r=n("ahKI"),o=n.n(r),a=n("XCNo"),i=n("2/yZ"),u=n("CT9t"),l=n("k2w+"),c=n("yuw4"),s=n("i97Z"),f=n("BRxd"),d=n.n(f),p=n("UXr9"),h=function(){if("undefined"===typeof navigator||"undefined"===typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null===e||void 0===e?void 0:e.substr(0,4))},v=n("MhlF"),m=n("Z0Y+"),g=n("lM0V"),y=n("hiPI");function b(e){var t=Object(r["useRef"])(),n=Object(r["useRef"])(!1);function o(){for(var r=arguments.length,o=new Array(r),a=0;ad&&pl+v){n=r-1;break}}for(var a=0,s=t-1;s>=0;s-=1){var f=e.get(c[s].key)||j;if(f[u]E,Ce=Object(r["useMemo"])((function(){var e=l;return Se?e=null===I&&P?l:l.slice(0,Math.min(l.length,D/m)):"number"===typeof E&&(e=l.slice(0,E)),e}),[l,m,I,E,Se]),Ae=Object(r["useMemo"])((function(){return Se?l.slice(me+1):l.slice(Ce.length)}),[l,Ce,Se,me]),Te=Object(r["useCallback"])((function(e,t){var n;return"function"===typeof h?h(e):null!==(n=h&&(null===e||void 0===e?void 0:e[h]))&&void 0!==n?n:t}),[h]),Pe=Object(r["useCallback"])(f||function(e){return e},[f]);function _e(e,t,n){(he!==e||void 0!==t&&t!==se)&&(ve(e),n||(we(eD){_e(r-1,e-o-ie+ne);break}}S&&Le(0)+ie>D&&fe(null)}}),[D,G,ne,ie,Te,Ce]);var Fe=be&&!!Ae.length,De={};null!==se&&Se&&(De={position:"absolute",left:se,top:0});var ze,Be={prefixCls:Ee,responsive:Se,component:C,invalidate:xe},Ue=p?function(e,t){var n=Te(e,t);return r["createElement"](W.Provider,{key:n,value:Object(s["a"])(Object(s["a"])({},Be),{},{order:t,item:e,itemKey:n,registerSize:Me,display:t<=me})},p(e,t))}:function(e,t){var n=Te(e,t);return r["createElement"](L,Object(a["a"])({},Be,{order:t,key:n,item:e,renderItem:Pe,itemKey:n,registerSize:Me,display:t<=me}))},He={order:Fe?me:Number.MAX_SAFE_INTEGER,className:"".concat(Ee,"-rest"),registerSize:Ne,display:Fe};if(k)k&&(ze=r["createElement"](W.Provider,{value:Object(s["a"])(Object(s["a"])({},Be),He)},k(Ae)));else{var We=O||J;ze=r["createElement"](L,Object(a["a"])({},Be,He),"function"===typeof We?We(Ae):We)}var Ge=r["createElement"](j,Object(a["a"])({className:d()(!xe&&o,w),style:b,ref:t},T),Ce.map(Ue),je?ze:null,S&&r["createElement"](L,Object(a["a"])({},Be,{responsive:ke,responsiveDisabled:!Se,order:me,className:"".concat(Ee,"-suffix"),registerSize:Ie,display:!0,style:De}),S));return ke&&(Ge=r["createElement"](y["a"],{onResize:Re,disabled:!Se},Ge)),Ge}var te=r["forwardRef"](ee);te.displayName="Overflow",te.Item=X,te.RESPONSIVE=Q,te.INVALIDATE=Z;var ne=te,re=ne,oe=n("SauQ"),ae=n("KcUJ"),ie=n("bAWc"),ue=n("158W"),le=n("c64F"),ce=n("8WKJ"),se=["children","locked"],fe=r["createContext"](null);function de(e,t){var n=Object(s["a"])({},e);return Object.keys(t).forEach((function(e){var r=t[e];void 0!==r&&(n[e]=r)})),n}function pe(e){var t=e.children,n=e.locked,o=Object(c["a"])(e,se),a=r["useContext"](fe),i=Object(ce["a"])((function(){return de(a,o)}),[a,o],(function(e,t){return!n&&(e[0]!==t[0]||!T()(e[1],t[1]))}));return r["createElement"](fe.Provider,{value:i},t)}function he(e,t,n,o){var a=r["useContext"](fe),i=a.activeKey,u=a.onActive,l=a.onInactive,c={active:i===e};return t||(c.onMouseEnter=function(t){null===n||void 0===n||n({key:e,domEvent:t}),u(e)},c.onMouseLeave=function(t){null===o||void 0===o||o({key:e,domEvent:t}),l(e)}),c}var ve=["item"];function me(e){var t=e.item,n=Object(c["a"])(e,ve);return Object.defineProperty(n,"item",{get:function(){return Object(P["a"])(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}function ge(e){var t,n=e.icon,o=e.props,a=e.children;return t="function"===typeof n?r["createElement"](n,Object(s["a"])({},o)):n,t||a||null}function ye(e){var t=r["useContext"](fe),n=t.mode,o=t.rtl,a=t.inlineIndent;if("inline"!==n)return null;var i=e;return o?{paddingRight:i*a}:{paddingLeft:i*a}}var be=[],we=r["createContext"](null);function Ee(){return r["useContext"](we)}var Oe=r["createContext"](be);function ke(e){var t=r["useContext"](Oe);return r["useMemo"]((function(){return void 0!==e?[].concat(Object(m["a"])(t),[e]):t}),[t,e])}var Se=r["createContext"](null),xe=r["createContext"](null);function je(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function Ce(e){var t=r["useContext"](xe);return je(t,e)}var Ae=r["createContext"]({}),Te=Ae,Pe=["title","attribute","elementRef"],_e=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Re=["active"],Me=function(e){Object(ie["a"])(n,e);var t=Object(ue["a"])(n);function n(){return Object(oe["a"])(this,n),t.apply(this,arguments)}return Object(ae["a"])(n,[{key:"render",value:function(){var e=this.props,t=e.title,n=e.attribute,o=e.elementRef,i=Object(c["a"])(e,Pe),u=Object(le["a"])(i,["eventKey"]);return Object(P["a"])(!n,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),r["createElement"](re.Item,Object(a["a"])({},n,{title:"string"===typeof t?t:void 0},u,{ref:o}))}}]),n}(r["Component"]),Ne=function(e){var t,n=e.style,o=e.className,u=e.eventKey,l=(e.warnKey,e.disabled),f=e.itemIcon,p=e.children,h=e.role,v=e.onMouseEnter,g=e.onMouseLeave,y=e.onClick,b=e.onKeyDown,w=e.onFocus,O=Object(c["a"])(e,_e),k=Ce(u),S=r["useContext"](fe),x=S.prefixCls,j=S.onItemClick,C=S.disabled,A=S.overflowDisabled,T=S.itemIcon,P=S.selectedKeys,_=S.onActive,R=r["useContext"](Te),M=R._internalRenderMenuItem,N="".concat(x,"-item"),I=r["useRef"](),L=r["useRef"](),F=C||l,D=ke(u);var z=function(e){return{key:u,keyPath:Object(m["a"])(D).reverse(),item:I.current,domEvent:e}},B=f||T,U=he(u,F,v,g),H=U.active,W=Object(c["a"])(U,Re),G=P.includes(u),V=ye(D.length),$=function(e){if(!F){var t=z(e);null===y||void 0===y||y(me(t)),j(t)}},K=function(e){if(null===b||void 0===b||b(e),e.which===E["a"].ENTER){var t=z(e);null===y||void 0===y||y(me(t)),j(t)}},q=function(e){_(u),null===w||void 0===w||w(e)},X={};"option"===e.role&&(X["aria-selected"]=G);var Y=r["createElement"](Me,Object(a["a"])({ref:I,elementRef:L,role:null===h?"none":h||"menuitem",tabIndex:l?null:-1,"data-menu-id":A&&k?null:k},O,W,X,{component:"li","aria-disabled":l,style:Object(s["a"])(Object(s["a"])({},V),n),className:d()(N,(t={},Object(i["a"])(t,"".concat(N,"-active"),H),Object(i["a"])(t,"".concat(N,"-selected"),G),Object(i["a"])(t,"".concat(N,"-disabled"),F),t),o),onClick:$,onKeyDown:K,onFocus:q}),p,r["createElement"](ge,{props:Object(s["a"])(Object(s["a"])({},e),{},{isSelected:G}),icon:B}));return M&&(Y=M(Y,e,{selected:G})),Y};function Ie(e){var t=e.eventKey,n=Ee(),o=ke(t);return r["useEffect"]((function(){if(n)return n.registerPath(t,o),function(){n.unregisterPath(t,o)}}),[o]),n?null:r["createElement"](Ne,e)}var Le=Ie,Fe=["label","children","key","type"];function De(e,t){return Object(p["a"])(e).map((function(e,n){if(r["isValidElement"](e)){var o,a,i=e.key,u=null!==(o=null===(a=e.props)||void 0===a?void 0:a.eventKey)&&void 0!==o?o:i,l=null===u||void 0===u;l&&(u="tmp_key-".concat([].concat(Object(m["a"])(t),[n]).join("-")));var c={key:u,eventKey:u};return r["cloneElement"](e,c)}return e}))}function ze(e){return(e||[]).map((function(e,t){if(e&&"object"===Object(l["a"])(e)){var n=e.label,o=e.children,i=e.key,u=e.type,s=Object(c["a"])(e,Fe),f=null!==i&&void 0!==i?i:"tmp-".concat(t);return o||"group"===u?"group"===u?r["createElement"](to,Object(a["a"])({key:f},s,{title:n}),ze(o)):r["createElement"](Er,Object(a["a"])({key:f},s,{title:n}),ze(o)):"divider"===u?r["createElement"](no,Object(a["a"])({key:f},s)):r["createElement"](Le,Object(a["a"])({key:f},s),n)}return null})).filter((function(e){return e}))}function Be(e,t,n){var r=e;return t&&(r=ze(t)),De(r,n)}function Ue(e){var t=r["useRef"](e);t.current=e;var n=r["useCallback"]((function(){for(var e,n=arguments.length,r=new Array(n),o=0;o=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function pn(e,t,n,r){var o=un.clone(e),a={width:t.width,height:t.height};return r.adjustX&&o.left=n.left&&o.left+a.width>n.right&&(a.width-=o.left+a.width-n.right),r.adjustX&&o.left+a.width>n.right&&(o.left=Math.max(n.right-a.width,n.left)),r.adjustY&&o.top=n.top&&o.top+a.height>n.bottom&&(a.height-=o.top+a.height-n.bottom),r.adjustY&&o.top+a.height>n.bottom&&(o.top=Math.max(n.bottom-a.height,n.top)),un.mix(o,a)}function hn(e){var t,n,r;if(un.isWindow(e)||9===e.nodeType){var o=un.getWindow(e);t={left:un.getWindowScrollLeft(o),top:un.getWindowScrollTop(o)},n=un.viewportWidth(o),r=un.viewportHeight(o)}else t=un.offset(e),n=un.outerWidth(e),r=un.outerHeight(e);return t.width=n,t.height=r,t}function vn(e,t){var n=t.charAt(0),r=t.charAt(1),o=e.width,a=e.height,i=e.left,u=e.top;return"c"===n?u+=a/2:"b"===n&&(u+=a),"c"===r?i+=o/2:"r"===r&&(i+=o),{left:i,top:u}}function mn(e,t,n,r,o){var a=vn(t,n[1]),i=vn(e,n[0]),u=[i.left-a.left,i.top-a.top];return{left:Math.round(e.left-u[0]+r[0]-o[0]),top:Math.round(e.top-u[1]+r[1]-o[1])}}function gn(e,t,n){return e.leftn.right}function yn(e,t,n){return e.topn.bottom}function bn(e,t,n){return e.left>n.right||e.left+t.widthn.bottom||e.top+t.height=n.right||r.top>=n.bottom}function Cn(e,t,n){var r=n.target||t,o=hn(r),a=!jn(r,n.overflow&&n.overflow.alwaysByViewport);return xn(e,o,n,a)}function An(e,t,n){var r,o,a=un.getDocument(e),i=a.defaultView||a.parentWindow,u=un.getWindowScrollLeft(i),l=un.getWindowScrollTop(i),c=un.viewportWidth(i),s=un.viewportHeight(i);r="pageX"in t?t.pageX:u+t.clientX,o="pageY"in t?t.pageY:l+t.clientY;var f={left:r,top:o,width:0,height:0},d=r>=0&&r<=u+c&&o>=0&&o<=l+s,p=[n.points[0],"cc"];return xn(e,f,lt(lt({},n),{},{points:p}),d)}Cn.__getOffsetParent=cn,Cn.__getVisibleRectForElement=dn;function Tn(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=new Set;function o(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=r.has(e);if(Object(P["a"])(!i,"Warning: There may be circular references"),i)return!1;if(e===t)return!0;if(n&&a>1)return!1;r.add(e);var u=a+1;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(var c=0;c=0;--a){var i=this.tryEntries[a],u=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(l&&c){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:R(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}function Gn(e,t,n,r,o,a,i){try{var u=e[a](i),l=u.value}catch(c){return void n(c)}u.done?t(l):Promise.resolve(l).then(r,o)}function Vn(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){Gn(a,r,o,i,u,"next",e)}function u(e){Gn(a,r,o,i,u,"throw",e)}i(void 0)}))}}var $n=n("SsNn"),Kn=["measure","alignPre","align",null,"motion"],qn=function(e,t){var n=Object($n["a"])(null),o=Object(u["a"])(n,2),a=o[0],i=o[1],l=Object(r["useRef"])();function c(e){i(e,!0)}function s(){g["a"].cancel(l.current)}function f(e){s(),l.current=Object(g["a"])((function(){c((function(e){switch(a){case"align":return"motion";case"motion":return"stable";default:}return e})),null===e||void 0===e||e()}))}return Object(r["useEffect"])((function(){c("measure")}),[e]),Object(r["useEffect"])((function(){switch(a){case"measure":t();break;default:}a&&(l.current=Object(g["a"])(Vn(Wn().mark((function e(){var t,n;return Wn().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=Kn.indexOf(a),n=Kn[t+1],n&&-1!==t&&c(n);case 3:case"end":return e.stop()}}),e)})))))}),[a]),Object(r["useEffect"])((function(){return function(){s()}}),[]),[a,f]},Xn=function(e){var t=r["useState"]({width:0,height:0}),n=Object(u["a"])(t,2),o=n[0],a=n[1];function i(e){var t=e.offsetWidth,n=e.offsetHeight,r=e.getBoundingClientRect(),o=r.width,i=r.height;Math.abs(t-o)<1&&Math.abs(n-i)<1&&(t=o,n=i),a({width:t,height:n})}var l=r["useMemo"]((function(){var t={};if(e){var n=o.width,r=o.height;-1!==e.indexOf("height")&&r?t.height=r:-1!==e.indexOf("minHeight")&&r&&(t.minHeight=r),-1!==e.indexOf("width")&&n?t.width=n:-1!==e.indexOf("minWidth")&&n&&(t.minWidth=n)}return t}),[e,o]);return[l,i]},Yn=r["forwardRef"]((function(e,t){var n=e.visible,o=e.prefixCls,i=e.className,l=e.style,c=e.children,f=e.zIndex,p=e.stretch,h=e.destroyPopupOnHide,v=e.forceRender,m=e.align,g=e.point,y=e.getRootDomNode,b=e.getClassNameFromAlign,w=e.onAlign,E=e.onMouseEnter,O=e.onMouseLeave,k=e.onMouseDown,S=e.onTouchStart,x=e.onClick,j=Object(r["useRef"])(),C=Object(r["useRef"])(),A=Object(r["useState"])(),T=Object(u["a"])(A,2),P=T[0],R=T[1],M=Xn(p),N=Object(u["a"])(M,2),I=N[0],L=N[1];function F(){p&&L(y())}var D=qn(n,F),z=Object(u["a"])(D,2),B=z[0],U=z[1],H=Object(r["useState"])(0),W=Object(u["a"])(H,2),G=W[0],V=W[1],$=Object(r["useRef"])();function K(){return g||y}function q(){var e;null===(e=j.current)||void 0===e||e.forceAlign()}function X(e,t){var n=b(t);P!==n&&R(n),V((function(e){return e+1})),"align"===B&&(null===w||void 0===w||w(e,t))}Object(_["a"])((function(){"alignPre"===B&&V(0)}),[B]),Object(_["a"])((function(){"align"===B&&(G<3?q():U((function(){var e;null===(e=$.current)||void 0===e||e.call($)})))}),[G]);var Y=Object(s["a"])({},at(e));function Q(){return new Promise((function(e){$.current=e}))}["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach((function(e){var t=Y[e];Y[e]=function(e,n){return U(),null===t||void 0===t?void 0:t(e,n)}})),r["useEffect"]((function(){Y.motionName||"motion"!==B||U()}),[Y.motionName,B]),r["useImperativeHandle"](t,(function(){return{forceAlign:q,getElement:function(){return C.current}}}));var Z=Object(s["a"])(Object(s["a"])({},I),{},{zIndex:f,opacity:"motion"!==B&&"stable"!==B&&n?0:void 0,pointerEvents:n||"stable"===B?void 0:"none"},l),J=!0;null===m||void 0===m||!m.points||"align"!==B&&"stable"!==B||(J=!1);var ee=c;return r["Children"].count(c)>1&&(ee=r["createElement"]("div",{className:"".concat(o,"-content")},c)),r["createElement"](ot["a"],Object(a["a"])({visible:n,ref:C,leavedClassName:"".concat(o,"-hidden")},Y,{onAppearPrepare:Q,onEnterPrepare:Q,removeOnLeave:h,forceRender:v}),(function(e,t){var n=e.className,a=e.style,u=d()(o,i,P,n);return r["createElement"](Hn,{target:K(),key:"popup",ref:j,monitorWindowResize:!0,disabled:J,align:m,onAlign:X},r["createElement"]("div",{ref:t,className:u,onMouseEnter:E,onMouseLeave:O,onMouseDownCapture:k,onTouchStartCapture:S,onClick:x,style:Object(s["a"])(Object(s["a"])({},a),Z)},ee))}))}));Yn.displayName="PopupInner";var Qn=Yn,Zn=r["forwardRef"]((function(e,t){var n=e.prefixCls,o=e.visible,i=e.zIndex,u=e.children,l=e.mobile;l=void 0===l?{}:l;var c=l.popupClassName,f=l.popupStyle,p=l.popupMotion,h=void 0===p?{}:p,v=l.popupRender,m=e.onClick,g=r["useRef"]();r["useImperativeHandle"](t,(function(){return{forceAlign:function(){},getElement:function(){return g.current}}}));var y=Object(s["a"])({zIndex:i},f),b=u;return r["Children"].count(u)>1&&(b=r["createElement"]("div",{className:"".concat(n,"-content")},u)),v&&(b=v(b)),r["createElement"](ot["a"],Object(a["a"])({visible:o,ref:g,removeOnLeave:!0},h),(function(e,t){var o=e.className,a=e.style,i=d()(n,c,o);return r["createElement"]("div",{ref:t,className:i,onClick:m,style:Object(s["a"])(Object(s["a"])({},a),y)},b)}))}));Zn.displayName="MobilePopupInner";var Jn=Zn,er=["visible","mobile"],tr=r["forwardRef"]((function(e,t){var n=e.visible,o=e.mobile,i=Object(c["a"])(e,er),l=Object(r["useState"])(n),f=Object(u["a"])(l,2),d=f[0],p=f[1],v=Object(r["useState"])(!1),m=Object(u["a"])(v,2),g=m[0],y=m[1],b=Object(s["a"])(Object(s["a"])({},i),{},{visible:d});Object(r["useEffect"])((function(){p(n),n&&o&&y(h())}),[n,o]);var w=g?r["createElement"](Jn,Object(a["a"])({},b,{mobile:o,ref:t})):r["createElement"](Qn,Object(a["a"])({},b,{ref:t}));return r["createElement"]("div",null,r["createElement"](it,b),w)}));tr.displayName="Popup";var nr=tr,rr=r["createContext"](null),or=rr;function ar(){}function ir(){return""}function ur(e){return e?e.ownerDocument:window.document}var lr=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function cr(e){var t=function(t){Object(ie["a"])(o,t);var n=Object(ue["a"])(o);function o(e){var t,u;return Object(oe["a"])(this,o),t=n.call(this,e),Object(i["a"])(Object($e["a"])(t),"popupRef",r["createRef"]()),Object(i["a"])(Object($e["a"])(t),"triggerRef",r["createRef"]()),Object(i["a"])(Object($e["a"])(t),"portalContainer",void 0),Object(i["a"])(Object($e["a"])(t),"attachId",void 0),Object(i["a"])(Object($e["a"])(t),"clickOutsideHandler",void 0),Object(i["a"])(Object($e["a"])(t),"touchOutsideHandler",void 0),Object(i["a"])(Object($e["a"])(t),"contextMenuOutsideHandler1",void 0),Object(i["a"])(Object($e["a"])(t),"contextMenuOutsideHandler2",void 0),Object(i["a"])(Object($e["a"])(t),"mouseDownTimeout",void 0),Object(i["a"])(Object($e["a"])(t),"focusTime",void 0),Object(i["a"])(Object($e["a"])(t),"preClickTime",void 0),Object(i["a"])(Object($e["a"])(t),"preTouchTime",void 0),Object(i["a"])(Object($e["a"])(t),"delayTimer",void 0),Object(i["a"])(Object($e["a"])(t),"hasPopupMouseDown",void 0),Object(i["a"])(Object($e["a"])(t),"onMouseEnter",(function(e){var n=t.props.mouseEnterDelay;t.fireEvents("onMouseEnter",e),t.delaySetPopupVisible(!0,n,n?null:e)})),Object(i["a"])(Object($e["a"])(t),"onMouseMove",(function(e){t.fireEvents("onMouseMove",e),t.setPoint(e)})),Object(i["a"])(Object($e["a"])(t),"onMouseLeave",(function(e){t.fireEvents("onMouseLeave",e),t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)})),Object(i["a"])(Object($e["a"])(t),"onPopupMouseEnter",(function(){t.clearDelayTimer()})),Object(i["a"])(Object($e["a"])(t),"onPopupMouseLeave",(function(e){var n;e.relatedTarget&&!e.relatedTarget.setTimeout&&Ke(null===(n=t.popupRef.current)||void 0===n?void 0:n.getElement(),e.relatedTarget)||t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)})),Object(i["a"])(Object($e["a"])(t),"onFocus",(function(e){t.fireEvents("onFocus",e),t.clearDelayTimer(),t.isFocusToShow()&&(t.focusTime=Date.now(),t.delaySetPopupVisible(!0,t.props.focusDelay))})),Object(i["a"])(Object($e["a"])(t),"onMouseDown",(function(e){t.fireEvents("onMouseDown",e),t.preClickTime=Date.now()})),Object(i["a"])(Object($e["a"])(t),"onTouchStart",(function(e){t.fireEvents("onTouchStart",e),t.preTouchTime=Date.now()})),Object(i["a"])(Object($e["a"])(t),"onBlur",(function(e){t.fireEvents("onBlur",e),t.clearDelayTimer(),t.isBlurToHide()&&t.delaySetPopupVisible(!1,t.props.blurDelay)})),Object(i["a"])(Object($e["a"])(t),"onContextMenu",(function(e){e.preventDefault(),t.fireEvents("onContextMenu",e),t.setPopupVisible(!0,e)})),Object(i["a"])(Object($e["a"])(t),"onContextMenuClose",(function(){t.isContextMenuToShow()&&t.close()})),Object(i["a"])(Object($e["a"])(t),"onClick",(function(e){if(t.fireEvents("onClick",e),t.focusTime){var n;if(t.preClickTime&&t.preTouchTime?n=Math.min(t.preClickTime,t.preTouchTime):t.preClickTime?n=t.preClickTime:t.preTouchTime&&(n=t.preTouchTime),Math.abs(n-t.focusTime)<20)return;t.focusTime=0}t.preClickTime=0,t.preTouchTime=0,t.isClickToShow()&&(t.isClickToHide()||t.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault();var r=!t.state.popupVisible;(t.isClickToHide()&&!r||r&&t.isClickToShow())&&t.setPopupVisible(!t.state.popupVisible,e)})),Object(i["a"])(Object($e["a"])(t),"onPopupMouseDown",(function(){var e;(t.hasPopupMouseDown=!0,clearTimeout(t.mouseDownTimeout),t.mouseDownTimeout=window.setTimeout((function(){t.hasPopupMouseDown=!1}),0),t.context)&&(e=t.context).onPopupMouseDown.apply(e,arguments)})),Object(i["a"])(Object($e["a"])(t),"onDocumentClick",(function(e){if(!t.props.mask||t.props.maskClosable){var n=e.target,r=t.getRootDomNode(),o=t.getPopupDomNode();Ke(r,n)&&!t.isContextMenuOnly()||Ke(o,n)||t.hasPopupMouseDown||t.close()}})),Object(i["a"])(Object($e["a"])(t),"getRootDomNode",(function(){var e=t.props.getTriggerDOMNode;if(e)return e(t.triggerRef.current);try{var n=Object(qe["a"])(t.triggerRef.current);if(n)return n}catch(r){}return z.a.findDOMNode(Object($e["a"])(t))})),Object(i["a"])(Object($e["a"])(t),"getPopupClassNameFromAlign",(function(e){var n=[],r=t.props,o=r.popupPlacement,a=r.builtinPlacements,i=r.prefixCls,u=r.alignPoint,l=r.getPopupClassNameFromAlign;return o&&a&&n.push(nt(a,i,e,u)),l&&n.push(l(e)),n.join(" ")})),Object(i["a"])(Object($e["a"])(t),"getComponent",(function(){var e=t.props,n=e.prefixCls,o=e.destroyPopupOnHide,i=e.popupClassName,u=e.onPopupAlign,l=e.popupMotion,c=e.popupAnimation,s=e.popupTransitionName,f=e.popupStyle,d=e.mask,p=e.maskAnimation,h=e.maskTransitionName,v=e.maskMotion,m=e.zIndex,g=e.popup,y=e.stretch,b=e.alignPoint,w=e.mobile,E=e.forceRender,O=e.onPopupClick,k=t.state,S=k.popupVisible,x=k.point,j=t.getPopupAlign(),C={};return t.isMouseEnterToShow()&&(C.onMouseEnter=t.onPopupMouseEnter),t.isMouseLeaveToHide()&&(C.onMouseLeave=t.onPopupMouseLeave),C.onMouseDown=t.onPopupMouseDown,C.onTouchStart=t.onPopupMouseDown,r["createElement"](nr,Object(a["a"])({prefixCls:n,destroyPopupOnHide:o,visible:S,point:b&&x,className:i,align:j,onAlign:u,animation:c,getClassNameFromAlign:t.getPopupClassNameFromAlign},C,{stretch:y,getRootDomNode:t.getRootDomNode,style:f,mask:d,zIndex:m,transitionName:s,maskAnimation:p,maskTransitionName:h,maskMotion:v,ref:t.popupRef,motion:l,mobile:w,forceRender:E,onClick:O}),"function"===typeof g?g():g)})),Object(i["a"])(Object($e["a"])(t),"attachParent",(function(e){g["a"].cancel(t.attachId);var n,r=t.props,o=r.getPopupContainer,a=r.getDocument,i=t.getRootDomNode();o?(i||0===o.length)&&(n=o(i)):n=a(t.getRootDomNode()).body,n?n.appendChild(e):t.attachId=Object(g["a"])((function(){t.attachParent(e)}))})),Object(i["a"])(Object($e["a"])(t),"getContainer",(function(){if(!t.portalContainer){var e=t.props.getDocument,n=e(t.getRootDomNode()).createElement("div");n.style.position="absolute",n.style.top="0",n.style.left="0",n.style.width="100%",t.portalContainer=n}return t.attachParent(t.portalContainer),t.portalContainer})),Object(i["a"])(Object($e["a"])(t),"setPoint",(function(e){var n=t.props.alignPoint;n&&e&&t.setState({point:{pageX:e.pageX,pageY:e.pageY}})})),Object(i["a"])(Object($e["a"])(t),"handlePortalUpdate",(function(){t.state.prevPopupVisible!==t.state.popupVisible&&t.props.afterPopupVisibleChange(t.state.popupVisible)})),Object(i["a"])(Object($e["a"])(t),"triggerContextValue",{onPopupMouseDown:t.onPopupMouseDown}),u="popupVisible"in e?!!e.popupVisible:!!e.defaultPopupVisible,t.state={prevPopupVisible:u,popupVisible:u},lr.forEach((function(e){t["fire".concat(e)]=function(n){t.fireEvents(e,n)}})),t}return Object(ae["a"])(o,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e,t=this.props,n=this.state;if(n.popupVisible)return this.clickOutsideHandler||!this.isClickToHide()&&!this.isContextMenuToShow()||(e=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Ye(e,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(e=e||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Ye(e,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(e=e||t.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Ye(e,"scroll",this.onContextMenuClose)),void(!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Ye(window,"blur",this.onContextMenuClose)));this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),g["a"].cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var e;return(null===(e=this.popupRef.current)||void 0===e?void 0:e.getElement())||null}},{key:"getPopupAlign",value:function(){var e=this.props,t=e.popupPlacement,n=e.popupAlign,r=e.builtinPlacements;return t&&r?tt(r,t,n):n}},{key:"setPopupVisible",value:function(e,t){var n=this.props.alignPoint,r=this.state.popupVisible;this.clearDelayTimer(),r!==e&&("popupVisible"in this.props||this.setState({popupVisible:e,prevPopupVisible:r}),this.props.onPopupVisibleChange(e)),n&&t&&e&&this.setPoint(t)}},{key:"delaySetPopupVisible",value:function(e,t,n){var r=this,o=1e3*t;if(this.clearDelayTimer(),o){var a=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=window.setTimeout((function(){r.setPopupVisible(e,a),r.clearDelayTimer()}),o)}else this.setPopupVisible(e,n)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(e){var t=this.props.children.props,n=this.props;return t[e]&&n[e]?this["fire".concat(e)]:t[e]||n[e]}},{key:"isClickToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isContextMenuOnly",value:function(){var e=this.props.action;return"contextMenu"===e||1===e.length&&"contextMenu"===e[0]}},{key:"isContextMenuToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("contextMenu")||-1!==n.indexOf("contextMenu")}},{key:"isClickToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isMouseEnterToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseEnter")}},{key:"isMouseLeaveToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseLeave")}},{key:"isFocusToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("focus")}},{key:"isBlurToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("blur")}},{key:"forcePopupAlign",value:function(){var e;this.state.popupVisible&&(null===(e=this.popupRef.current)||void 0===e||e.forceAlign())}},{key:"fireEvents",value:function(e,t){var n=this.props.children.props[e];n&&n(t);var r=this.props[e];r&&r(t)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var t=this.state.popupVisible,n=this.props,o=n.children,a=n.forceRender,i=n.alignPoint,u=n.className,l=n.autoDestroy,c=r["Children"].only(o),f={key:"trigger"};this.isContextMenuToShow()?f.onContextMenu=this.onContextMenu:f.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(f.onClick=this.onClick,f.onMouseDown=this.onMouseDown,f.onTouchStart=this.onTouchStart):(f.onClick=this.createTwoChains("onClick"),f.onMouseDown=this.createTwoChains("onMouseDown"),f.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(f.onMouseEnter=this.onMouseEnter,i&&(f.onMouseMove=this.onMouseMove)):f.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?f.onMouseLeave=this.onMouseLeave:f.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(f.onFocus=this.onFocus,f.onBlur=this.onBlur):(f.onFocus=this.createTwoChains("onFocus"),f.onBlur=this.createTwoChains("onBlur"));var p=d()(c&&c.props&&c.props.className,u);p&&(f.className=p);var h=Object(s["a"])({},f);Object(Xe["c"])(c)&&(h.ref=Object(Xe["a"])(this.triggerRef,c.ref));var v,m=r["cloneElement"](c,h);return(t||this.popupRef.current||a)&&(v=r["createElement"](e,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!t&&l&&(v=null),r["createElement"](or.Provider,{value:this.triggerContextValue},m,v)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.popupVisible,r={};return void 0!==n&&t.popupVisible!==n&&(r.popupVisible=n,r.prevPopupVisible=t.popupVisible),r}}]),o}(r["Component"]);return Object(i["a"])(t,"contextType",or),Object(i["a"])(t,"defaultProps",{prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:ir,getDocument:ur,onPopupVisibleChange:ar,afterPopupVisibleChange:ar,onPopupAlign:ar,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1}),t}var sr=cr(Je),fr={adjustX:1,adjustY:1},dr={topLeft:{points:["bl","tl"],overflow:fr,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:fr,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:fr,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:fr,offset:[4,0]}},pr={topLeft:{points:["bl","tl"],overflow:fr,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:fr,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:fr,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:fr,offset:[4,0]}};function hr(e,t,n){return t||(n?n[e]||n.other:void 0)}var vr={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function mr(e){var t=e.prefixCls,n=e.visible,o=e.children,a=e.popup,l=e.popupClassName,c=e.popupOffset,f=e.disabled,p=e.mode,h=e.onVisibleChange,v=r["useContext"](fe),m=v.getPopupContainer,y=v.rtl,b=v.subMenuOpenDelay,w=v.subMenuCloseDelay,E=v.builtinPlacements,O=v.triggerSubMenuAction,k=v.forceSubMenuRender,S=v.rootClassName,x=v.motion,j=v.defaultMotions,C=r["useState"](!1),A=Object(u["a"])(C,2),T=A[0],P=A[1],_=y?Object(s["a"])(Object(s["a"])({},pr),E):Object(s["a"])(Object(s["a"])({},dr),E),R=vr[p],M=hr(p,x,j),N=Object(s["a"])(Object(s["a"])({},M),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),I=r["useRef"]();return r["useEffect"]((function(){return I.current=Object(g["a"])((function(){P(n)})),function(){g["a"].cancel(I.current)}}),[n]),r["createElement"](sr,{prefixCls:t,popupClassName:d()("".concat(t,"-popup"),Object(i["a"])({},"".concat(t,"-rtl"),y),l,S),stretch:"horizontal"===p?"minWidth":null,getPopupContainer:m,builtinPlacements:_,popupPlacement:R,popupVisible:T,popup:a,popupAlign:c&&{offset:c},action:f?[]:[O],mouseEnterDelay:b,mouseLeaveDelay:w,onPopupVisibleChange:h,forceRender:k,popupMotion:N},o)}function gr(e){var t=e.id,n=e.open,o=e.keyPath,i=e.children,l="inline",c=r["useContext"](fe),f=c.prefixCls,d=c.forceSubMenuRender,p=c.motion,h=c.defaultMotions,v=c.mode,m=r["useRef"](!1);m.current=v===l;var g=r["useState"](!m.current),y=Object(u["a"])(g,2),b=y[0],w=y[1],E=!!m.current&&n;r["useEffect"]((function(){m.current&&w(!1)}),[v]);var O=Object(s["a"])({},hr(l,p,h));o.length>1&&(O.motionAppear=!1);var k=O.onVisibleChanged;return O.onVisibleChanged=function(e){return m.current||e||w(!0),null===k||void 0===k?void 0:k(e)},b?null:r["createElement"](pe,{mode:l,locked:!m.current},r["createElement"](ot["a"],Object(a["a"])({visible:E},O,{forceRender:d,removeOnLeave:!1,leavedClassName:"".concat(f,"-hidden")}),(function(e){var n=e.className,o=e.style;return r["createElement"](Ve,{id:t,className:n,style:o},i)})))}var yr=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],br=["active"],wr=function(e){var t,n=e.style,o=e.className,l=e.title,f=e.eventKey,p=(e.warnKey,e.disabled),h=e.internalPopupClose,v=e.children,m=e.itemIcon,g=e.expandIcon,y=e.popupClassName,b=e.popupOffset,w=e.onClick,E=e.onMouseEnter,O=e.onMouseLeave,k=e.onTitleClick,S=e.onTitleMouseEnter,x=e.onTitleMouseLeave,j=Object(c["a"])(e,yr),C=Ce(f),A=r["useContext"](fe),T=A.prefixCls,P=A.mode,_=A.openKeys,R=A.disabled,M=A.overflowDisabled,N=A.activeKey,I=A.selectedKeys,L=A.itemIcon,F=A.expandIcon,D=A.onItemClick,z=A.onOpenChange,B=A.onActive,U=r["useContext"](Te),H=U._internalRenderSubMenuItem,W=r["useContext"](Se),G=W.isSubPathKey,V=ke(),$="".concat(T,"-submenu"),K=R||p,q=r["useRef"](),X=r["useRef"]();var Y=m||L,Q=g||F,Z=_.includes(f),J=!M&&Z,ee=G(I,f),te=he(f,K,S,x),ne=te.active,oe=Object(c["a"])(te,br),ae=r["useState"](!1),ie=Object(u["a"])(ae,2),ue=ie[0],le=ie[1],ce=function(e){K||le(e)},se=function(e){ce(!0),null===E||void 0===E||E({key:f,domEvent:e})},de=function(e){ce(!1),null===O||void 0===O||O({key:f,domEvent:e})},ve=r["useMemo"]((function(){return ne||"inline"!==P&&(ue||G([N],f))}),[P,ne,N,ue,f,G]),be=ye(V.length),we=function(e){K||(null===k||void 0===k||k({key:f,domEvent:e}),"inline"===P&&z(f,!Z))},Ee=Ue((function(e){null===w||void 0===w||w(me(e)),D(e)})),Oe=function(e){"inline"!==P&&z(f,e)},xe=function(){B(f)},je=C&&"".concat(C,"-popup"),Ae=r["createElement"]("div",Object(a["a"])({role:"menuitem",style:be,className:"".concat($,"-title"),tabIndex:K?null:-1,ref:q,title:"string"===typeof l?l:null,"data-menu-id":M&&C?null:C,"aria-expanded":J,"aria-haspopup":!0,"aria-controls":je,"aria-disabled":K,onClick:we,onFocus:xe},oe),l,r["createElement"](ge,{icon:"horizontal"!==P?Q:null,props:Object(s["a"])(Object(s["a"])({},e),{},{isOpen:J,isSubMenu:!0})},r["createElement"]("i",{className:"".concat($,"-arrow")}))),Pe=r["useRef"](P);if("inline"!==P&&(Pe.current=V.length>1?"vertical":P),!M){var _e=Pe.current;Ae=r["createElement"](mr,{mode:_e,prefixCls:$,visible:!h&&J&&"inline"!==P,popupClassName:y,popupOffset:b,popup:r["createElement"](pe,{mode:"horizontal"===_e?"vertical":_e},r["createElement"](Ve,{id:je,ref:X},v)),disabled:K,onVisibleChange:Oe},Ae)}var Re=r["createElement"](re.Item,Object(a["a"])({role:"none"},j,{component:"li",style:n,className:d()($,"".concat($,"-").concat(P),o,(t={},Object(i["a"])(t,"".concat($,"-open"),J),Object(i["a"])(t,"".concat($,"-active"),ve),Object(i["a"])(t,"".concat($,"-selected"),ee),Object(i["a"])(t,"".concat($,"-disabled"),K),t)),onMouseEnter:se,onMouseLeave:de}),Ae,!M&&r["createElement"](gr,{id:je,open:J,keyPath:V},v));return H&&(Re=H(Re,e,{selected:ee,active:ve,open:J,disabled:K})),r["createElement"](pe,{onItemClick:Ee,mode:"horizontal"===P?"vertical":P,itemIcon:Y,expandIcon:Q},Re)};function Er(e){var t,n=e.eventKey,o=e.children,a=ke(n),i=De(o,a),u=Ee();return r["useEffect"]((function(){if(u)return u.registerPath(n,a),function(){u.unregisterPath(n,a)}}),[a]),t=u?i:r["createElement"](wr,e,i),r["createElement"](Oe.Provider,{value:a},t)}function Or(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(_n(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),a=Number(o),i=null;return o&&!Number.isNaN(a)?i=a:r&&null===i&&(i=0),r&&e.disabled&&(i=null),null!==i&&(i>=0||t&&i<0)}return!1}function kr(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Object(m["a"])(e.querySelectorAll("*")).filter((function(e){return Or(e,t)}));return Or(e,t)&&n.unshift(e),n}var Sr=E["a"].LEFT,xr=E["a"].RIGHT,jr=E["a"].UP,Cr=E["a"].DOWN,Ar=E["a"].ENTER,Tr=E["a"].ESC,Pr=E["a"].HOME,_r=E["a"].END,Rr=[jr,Cr,Sr,xr];function Mr(e,t,n,r){var o,a,u,l,c="prev",s="next",f="children",d="parent";if("inline"===e&&r===Ar)return{inlineTrigger:!0};var p=(o={},Object(i["a"])(o,jr,c),Object(i["a"])(o,Cr,s),o),h=(a={},Object(i["a"])(a,Sr,n?s:c),Object(i["a"])(a,xr,n?c:s),Object(i["a"])(a,Cr,f),Object(i["a"])(a,Ar,f),a),v=(u={},Object(i["a"])(u,jr,c),Object(i["a"])(u,Cr,s),Object(i["a"])(u,Ar,f),Object(i["a"])(u,Tr,d),Object(i["a"])(u,Sr,n?f:d),Object(i["a"])(u,xr,n?d:f),u),m={inline:p,horizontal:h,vertical:v,inlineSub:p,horizontalSub:v,verticalSub:v},g=null===(l=m["".concat(e).concat(t?"":"Sub")])||void 0===l?void 0:l[r];switch(g){case c:return{offset:-1,sibling:!0};case s:return{offset:1,sibling:!0};case d:return{offset:-1,sibling:!1};case f:return{offset:1,sibling:!1};default:return null}}function Nr(e){var t=e;while(t){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function Ir(e,t){var n=e||document.activeElement;while(n){if(t.has(n))return n;n=n.parentElement}return null}function Lr(e,t){var n=kr(e,!0);return n.filter((function(e){return t.has(e)}))}function Fr(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var o=Lr(e,t),a=o.length,i=o.findIndex((function(e){return n===e}));return r<0?-1===i?i=a-1:i-=1:r>0&&(i+=1),i=(i+a)%a,o[i]}function Dr(e,t,n,o,a,i,u,l,c,s){var f=r["useRef"](),d=r["useRef"]();d.current=t;var p=function(){g["a"].cancel(f.current)};return r["useEffect"]((function(){return function(){p()}}),[]),function(r){var h=r.which;if([].concat(Rr,[Ar,Tr,Pr,_r]).includes(h)){var v,m,y,b=function(){v=new Set,m=new Map,y=new Map;var e=i();return e.forEach((function(e){var t=document.querySelector("[data-menu-id='".concat(je(o,e),"']"));t&&(v.add(t),y.set(t,e),m.set(e,t))})),v};b();var w=m.get(t),E=Ir(w,v),O=y.get(E),k=Mr(e,1===u(O,!0).length,n,h);if(!k&&h!==Pr&&h!==_r)return;(Rr.includes(h)||[Pr,_r].includes(h))&&r.preventDefault();var S=function(e){if(e){var t=e,n=e.querySelector("a");(null===n||void 0===n?void 0:n.getAttribute("href"))&&(t=n);var r=y.get(e);l(r),p(),f.current=Object(g["a"])((function(){d.current===r&&t.focus()}))}};if([Pr,_r].includes(h)||k.sibling||!E){var x,j;x=E&&"inline"!==e?Nr(E):a.current;var C=Lr(x,v);j=h===Pr?C[0]:h===_r?C[C.length-1]:Fr(x,v,E,k.offset),S(j)}else if(k.inlineTrigger)c(O);else if(k.offset>0)c(O,!0),p(),f.current=Object(g["a"])((function(){b();var e=E.getAttribute("aria-controls"),t=document.getElementById(e),n=Fr(t,v);S(n)}),5);else if(k.offset<0){var A=u(O,!0),T=A[A.length-2],P=m.get(T);c(T,!1),S(P)}}null===s||void 0===s||s(r)}}var zr=Math.random().toFixed(5).toString().slice(2),Br=0;function Ur(e){var t=Object(v["a"])(e,{value:e}),n=Object(u["a"])(t,2),o=n[0],a=n[1];return r["useEffect"]((function(){Br+=1;var e="".concat(zr,"-").concat(Br);a("rc-menu-uuid-".concat(e))}),[]),o}function Hr(e){Promise.resolve().then(e)}var Wr="__RC_UTIL_PATH_SPLIT__",Gr=function(e){return e.join(Wr)},Vr=function(e){return e.split(Wr)},$r="rc-menu-more";function Kr(){var e=r["useState"]({}),t=Object(u["a"])(e,2),n=t[1],o=Object(r["useRef"])(new Map),a=Object(r["useRef"])(new Map),i=r["useState"]([]),l=Object(u["a"])(i,2),c=l[0],s=l[1],f=Object(r["useRef"])(0),d=Object(r["useRef"])(!1),p=function(){d.current||n({})},h=Object(r["useCallback"])((function(e,t){var n=Gr(t);a.current.set(n,e),o.current.set(e,n),f.current+=1;var r=f.current;Hr((function(){r===f.current&&p()}))}),[]),v=Object(r["useCallback"])((function(e,t){var n=Gr(t);a.current["delete"](n),o.current["delete"](e)}),[]),g=Object(r["useCallback"])((function(e){s(e)}),[]),y=Object(r["useCallback"])((function(e,t){var n=o.current.get(e)||"",r=Vr(n);return t&&c.includes(r[0])&&r.unshift($r),r}),[c]),b=Object(r["useCallback"])((function(e,t){return e.some((function(e){var n=y(e,!0);return n.includes(t)}))}),[y]),w=function(){var e=Object(m["a"])(o.current.keys());return c.length&&e.push($r),e},E=Object(r["useCallback"])((function(e){var t="".concat(o.current.get(e)).concat(Wr),n=new Set;return Object(m["a"])(a.current.keys()).forEach((function(e){e.startsWith(t)&&n.add(a.current.get(e))})),n}),[]);return r["useEffect"]((function(){return function(){d.current=!0}}),[]),{registerPath:h,unregisterPath:v,refreshOverflowKeys:g,isSubPathKey:b,getKeyPath:y,getKeys:w,getSubPathKeys:E}}var qr=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],Xr=[],Yr=r["forwardRef"]((function(e,t){var n,o,l=e.prefixCls,f=void 0===l?"rc-menu":l,p=e.rootClassName,h=e.style,g=e.className,y=e.tabIndex,b=void 0===y?0:y,w=e.items,E=e.children,O=e.direction,k=e.id,S=e.mode,x=void 0===S?"vertical":S,j=e.inlineCollapsed,C=e.disabled,A=e.disabledOverflow,P=e.subMenuOpenDelay,_=void 0===P?.1:P,R=e.subMenuCloseDelay,M=void 0===R?.1:R,N=e.forceSubMenuRender,I=e.defaultOpenKeys,L=e.openKeys,F=e.activeKey,D=e.defaultActiveFirst,z=e.selectable,B=void 0===z||z,U=e.multiple,H=void 0!==U&&U,W=e.defaultSelectedKeys,G=e.selectedKeys,V=e.onSelect,$=e.onDeselect,K=e.inlineIndent,q=void 0===K?24:K,X=e.motion,Y=e.defaultMotions,Q=e.triggerSubMenuAction,Z=void 0===Q?"hover":Q,J=e.builtinPlacements,ee=e.itemIcon,te=e.expandIcon,ne=e.overflowedIndicator,oe=void 0===ne?"...":ne,ae=e.overflowedIndicatorPopupClassName,ie=e.getPopupContainer,ue=e.onClick,le=e.onOpenChange,ce=e.onKeyDown,se=(e.openAnimation,e.openTransitionName,e._internalRenderMenuItem),fe=e._internalRenderSubMenuItem,de=Object(c["a"])(e,qr),he=r["useMemo"]((function(){return Be(E,w,Xr)}),[E,w]),ve=r["useState"](!1),ge=Object(u["a"])(ve,2),ye=ge[0],be=ge[1],Ee=r["useRef"](),Oe=Ur(k),ke="rtl"===O;var Ce=r["useMemo"]((function(){return"inline"!==x&&"vertical"!==x||!j?[x,!1]:["vertical",j]}),[x,j]),Ae=Object(u["a"])(Ce,2),Pe=Ae[0],_e=Ae[1],Re=r["useState"](0),Me=Object(u["a"])(Re,2),Ne=Me[0],Ie=Me[1],Fe=Ne>=he.length-1||"horizontal"!==Pe||A,De=Object(v["a"])(I,{value:L,postState:function(e){return e||Xr}}),ze=Object(u["a"])(De,2),He=ze[0],We=ze[1],Ge=function(e){We(e),null===le||void 0===le||le(e)},Ve=r["useState"](He),$e=Object(u["a"])(Ve,2),Ke=$e[0],qe=$e[1],Xe="inline"===Pe,Ye=r["useRef"](!1);r["useEffect"]((function(){Xe&&qe(He)}),[He]),r["useEffect"]((function(){Ye.current&&(Xe?We(Ke):Ge(Xr))}),[Xe]),r["useEffect"]((function(){return Ye.current=!0,function(){Ye.current=!1}}),[]);var Qe=Kr(),Ze=Qe.registerPath,Je=Qe.unregisterPath,et=Qe.refreshOverflowKeys,tt=Qe.isSubPathKey,nt=Qe.getKeyPath,rt=Qe.getKeys,ot=Qe.getSubPathKeys,at=r["useMemo"]((function(){return{registerPath:Ze,unregisterPath:Je}}),[Ze,Je]),it=r["useMemo"]((function(){return{isSubPathKey:tt}}),[tt]);r["useEffect"]((function(){et(Fe?Xr:he.slice(Ne+1).map((function(e){return e.key})))}),[Ne,Fe]);var ut=Object(v["a"])(F||D&&(null===(n=he[0])||void 0===n?void 0:n.key),{value:F}),lt=Object(u["a"])(ut,2),ct=lt[0],st=lt[1],ft=Ue((function(e){st(e)})),dt=Ue((function(){st(void 0)}));Object(r["useImperativeHandle"])(t,(function(){return{list:Ee.current,focus:function(e){var t,n,r,o,a=null!==ct&&void 0!==ct?ct:null===(t=he.find((function(e){return!e.props.disabled})))||void 0===t?void 0:t.key;a&&(null===(n=Ee.current)||void 0===n||null===(r=n.querySelector("li[data-menu-id='".concat(je(Oe,a),"']")))||void 0===r||null===(o=r.focus)||void 0===o||o.call(r,e))}}}));var pt=Object(v["a"])(W||[],{value:G,postState:function(e){return Array.isArray(e)?e:null===e||void 0===e?Xr:[e]}}),ht=Object(u["a"])(pt,2),vt=ht[0],mt=ht[1],gt=function(e){if(B){var t,n=e.key,r=vt.includes(n);t=H?r?vt.filter((function(e){return e!==n})):[].concat(Object(m["a"])(vt),[n]):[n],mt(t);var o=Object(s["a"])(Object(s["a"])({},e),{},{selectedKeys:t});r?null===$||void 0===$||$(o):null===V||void 0===V||V(o)}!H&&He.length&&"inline"!==Pe&&Ge(Xr)},yt=Ue((function(e){null===ue||void 0===ue||ue(me(e)),gt(e)})),bt=Ue((function(e,t){var n=He.filter((function(t){return t!==e}));if(t)n.push(e);else if("inline"!==Pe){var r=ot(e);n=n.filter((function(e){return!r.has(e)}))}T()(He,n)||Ge(n)})),wt=Ue(ie),Et=function(e,t){var n=null!==t&&void 0!==t?t:!He.includes(e);bt(e,n)},Ot=Dr(Pe,ct,ke,Oe,Ee,rt,nt,st,Et,ce);r["useEffect"]((function(){be(!0)}),[]);var kt=r["useMemo"]((function(){return{_internalRenderMenuItem:se,_internalRenderSubMenuItem:fe}}),[se,fe]),St="horizontal"!==Pe||A?he:he.map((function(e,t){return r["createElement"](pe,{key:e.key,overflowDisabled:t>Ne},e)})),xt=r["createElement"](re,Object(a["a"])({id:k,ref:Ee,prefixCls:"".concat(f,"-overflow"),component:"ul",itemComponent:Le,className:d()(f,"".concat(f,"-root"),"".concat(f,"-").concat(Pe),g,(o={},Object(i["a"])(o,"".concat(f,"-inline-collapsed"),_e),Object(i["a"])(o,"".concat(f,"-rtl"),ke),o),p),dir:O,style:h,role:"menu",tabIndex:b,data:St,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?he.slice(-t):null;return r["createElement"](Er,{eventKey:$r,title:oe,disabled:Fe,internalPopupClose:0===t,popupClassName:ae},n)},maxCount:"horizontal"!==Pe||A?re.INVALIDATE:re.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){Ie(e)},onKeyDown:Ot},de));return r["createElement"](Te.Provider,{value:kt},r["createElement"](xe.Provider,{value:Oe},r["createElement"](pe,{prefixCls:f,rootClassName:p,mode:Pe,openKeys:He,rtl:ke,disabled:C,motion:ye?X:null,defaultMotions:ye?Y:null,activeKey:ct,onActive:ft,onInactive:dt,selectedKeys:vt,inlineIndent:q,subMenuOpenDelay:_,subMenuCloseDelay:M,forceSubMenuRender:N,builtinPlacements:J,triggerSubMenuAction:Z,getPopupContainer:wt,itemIcon:ee,expandIcon:te,onItemClick:yt,onOpenChange:bt},r["createElement"](Se.Provider,{value:it},xt),r["createElement"]("div",{style:{display:"none"},"aria-hidden":!0},r["createElement"](we.Provider,{value:at},he)))))})),Qr=Yr,Zr=["className","title","eventKey","children"],Jr=["children"],eo=function(e){var t=e.className,n=e.title,o=(e.eventKey,e.children),i=Object(c["a"])(e,Zr),u=r["useContext"](fe),l=u.prefixCls,s="".concat(l,"-item-group");return r["createElement"]("li",Object(a["a"])({},i,{onClick:function(e){return e.stopPropagation()},className:d()(s,t)}),r["createElement"]("div",{className:"".concat(s,"-title"),title:"string"===typeof n?n:void 0},n),r["createElement"]("ul",{className:"".concat(s,"-list")},o))};function to(e){var t=e.children,n=Object(c["a"])(e,Jr),o=ke(n.eventKey),a=De(t,o),i=Ee();return i?a:r["createElement"](eo,Object(le["a"])(n,["warnKey"]),a)}function no(e){var t=e.className,n=e.style,o=r["useContext"](fe),a=o.prefixCls,i=Ee();return i?null:r["createElement"]("li",{className:d()("".concat(a,"-item-divider"),t),style:n})}var ro=Qr;ro.Item=Le,ro.SubMenu=Er,ro.ItemGroup=to,ro.Divider=no;var oo=ro,ao={adjustX:1,adjustY:1},io=[0,0],uo={topLeft:{points:["bl","tl"],overflow:ao,offset:[0,-4],targetOffset:io},topCenter:{points:["bc","tc"],overflow:ao,offset:[0,-4],targetOffset:io},topRight:{points:["br","tr"],overflow:ao,offset:[0,-4],targetOffset:io},bottomLeft:{points:["tl","bl"],overflow:ao,offset:[0,4],targetOffset:io},bottomCenter:{points:["tc","bc"],overflow:ao,offset:[0,4],targetOffset:io},bottomRight:{points:["tr","br"],overflow:ao,offset:[0,4],targetOffset:io}},lo=uo,co=E["a"].ESC,so=E["a"].TAB;function fo(e){var t=e.visible,n=e.setTriggerVisible,o=e.triggerRef,a=e.onVisibleChange,i=e.autoFocus,u=r["useRef"](!1),l=function(){var e,r,i,u;t&&o.current&&(null===(e=o.current)||void 0===e||null===(r=e.triggerRef)||void 0===r||null===(i=r.current)||void 0===i||null===(u=i.focus)||void 0===u||u.call(i),n(!1),"function"===typeof a&&a(!1))},c=function(){var e,t,n,r,a=kr(null===(e=o.current)||void 0===e||null===(t=e.popupRef)||void 0===t||null===(n=t.current)||void 0===n||null===(r=n.getElement)||void 0===r?void 0:r.call(n)),i=a[0];return!!(null===i||void 0===i?void 0:i.focus)&&(i.focus(),u.current=!0,!0)},s=function(e){switch(e.keyCode){case co:l();break;case so:var t=!1;u.current||(t=c()),t?e.preventDefault():l();break}};r["useEffect"]((function(){return t?(window.addEventListener("keydown",s),i&&Object(g["a"])(c,3),function(){window.removeEventListener("keydown",s),u.current=!1}):function(){u.current=!1}}),[t])}var po=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus"];function ho(e,t){var n=e.arrow,o=void 0!==n&&n,a=e.prefixCls,l=void 0===a?"rc-dropdown":a,f=e.transitionName,p=e.animation,h=e.align,v=e.placement,m=void 0===v?"bottomLeft":v,g=e.placements,y=void 0===g?lo:g,b=e.getPopupContainer,w=e.showAction,E=e.hideAction,O=e.overlayClassName,k=e.overlayStyle,S=e.visible,x=e.trigger,j=void 0===x?["hover"]:x,C=e.autoFocus,A=Object(c["a"])(e,po),T=r["useState"](),P=Object(u["a"])(T,2),_=P[0],R=P[1],M="visible"in e?S:_,N=r["useRef"](null);r["useImperativeHandle"](t,(function(){return N.current})),fo({visible:M,setTriggerVisible:R,triggerRef:N,onVisibleChange:e.onVisibleChange,autoFocus:C});var I=function(){var t,n=e.overlay;return t="function"===typeof n?n():n,t},L=function(t){var n=e.onOverlayClick;R(!1),n&&n(t)},F=function(t){var n=e.onVisibleChange;R(t),"function"===typeof n&&n(t)},D=function(){var e=I();return r["createElement"](r["Fragment"],null,o&&r["createElement"]("div",{className:"".concat(l,"-arrow")}),e)},z=function(){var t=e.overlay;return"function"===typeof t?D:D()},B=function(){var t=e.minOverlayWidthMatchTrigger,n=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?t:!n},U=function(){var t=e.openClassName;return void 0!==t?t:"".concat(l,"-open")},H=function(){var t=e.children,n=t.props?t.props:{},o=d()(n.className,U());return M&&t?r["cloneElement"](t,{className:o}):t},W=E;return W||-1===j.indexOf("contextMenu")||(W=["click"]),r["createElement"](sr,Object(s["a"])(Object(s["a"])({builtinPlacements:y},A),{},{prefixCls:l,ref:N,popupClassName:d()(O,Object(i["a"])({},"".concat(l,"-show-arrow"),o)),popupStyle:k,action:j,showAction:w,hideAction:W||[],popupPlacement:m,popupAlign:h,popupTransitionName:f,popupAnimation:p,popupVisible:M,stretch:B()?"minWidth":"",popup:z(),onPopupVisibleChange:F,onPopupClick:L,getPopupContainer:b}),H())}var vo=r["forwardRef"](ho),mo=vo;function go(e,t){var n=e.prefixCls,o=e.editable,a=e.locale,i=e.style;return o&&!1!==o.showAdd?r["createElement"]("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:i,"aria-label":(null===a||void 0===a?void 0:a.addAriaLabel)||"Add tab",onClick:function(e){o.onEdit("add",{event:e})}},o.addIcon||"+"):null}var yo=r["forwardRef"](go);function bo(e,t){var n=e.prefixCls,o=e.id,a=e.tabs,l=e.locale,c=e.mobile,s=e.moreIcon,f=void 0===s?"More":s,p=e.moreTransitionName,h=e.style,v=e.className,m=e.editable,g=e.tabBarGutter,y=e.rtl,b=e.removeAriaLabel,w=e.onTabClick,O=e.getPopupContainer,k=e.popupClassName,S=Object(r["useState"])(!1),x=Object(u["a"])(S,2),j=x[0],C=x[1],A=Object(r["useState"])(null),T=Object(u["a"])(A,2),P=T[0],_=T[1],R="".concat(o,"-more-popup"),M="".concat(n,"-dropdown"),N=null!==P?"".concat(R,"-").concat(P):null,I=null===l||void 0===l?void 0:l.dropdownAriaLabel;function L(e,t){e.preventDefault(),e.stopPropagation(),m.onEdit("remove",{key:t,event:e})}var F=r["createElement"](oo,{onClick:function(e){var t=e.key,n=e.domEvent;w(t,n),C(!1)},prefixCls:"".concat(M,"-menu"),id:R,tabIndex:-1,role:"listbox","aria-activedescendant":N,selectedKeys:[P],"aria-label":void 0!==I?I:"expanded dropdown"},a.map((function(e){var t=m&&!1!==e.closable&&!e.disabled;return r["createElement"](Le,{key:e.key,id:"".concat(R,"-").concat(e.key),role:"option","aria-controls":o&&"".concat(o,"-panel-").concat(e.key),disabled:e.disabled},r["createElement"]("span",null,e.tab),t&&r["createElement"]("button",{type:"button","aria-label":b||"remove",tabIndex:0,className:"".concat(M,"-menu-item-remove"),onClick:function(t){t.stopPropagation(),L(t,e.key)}},e.closeIcon||m.removeIcon||"\xd7"))})));function D(e){for(var t=a.filter((function(e){return!e.disabled})),n=t.findIndex((function(e){return e.key===P}))||0,r=t.length,o=0;oi?(o=n,S.current="x"):(o=r,S.current="y"),t(-o,-o)&&e.preventDefault()}var j=Object(r["useRef"])(null);j.current={onTouchStart:E,onTouchMove:O,onTouchEnd:k,onWheel:x},r["useEffect"]((function(){function t(e){j.current.onTouchStart(e)}function n(e){j.current.onTouchMove(e)}function r(e){j.current.onTouchEnd(e)}function o(e){j.current.onWheel(e)}return document.addEventListener("touchmove",n,{passive:!1}),document.addEventListener("touchend",r,{passive:!1}),e.current.addEventListener("touchstart",t,{passive:!1}),e.current.addEventListener("wheel",o),function(){document.removeEventListener("touchmove",n),document.removeEventListener("touchend",r)}}),[])}function Co(){var e=Object(r["useRef"])(new Map);function t(t){return e.current.has(t)||e.current.set(t,r["createRef"]()),e.current.get(t)}function n(t){e.current["delete"](t)}return[t,n]}function Ao(e,t){var n=r["useRef"](e),o=r["useState"]({}),a=Object(u["a"])(o,2),i=a[1];function l(e){var r="function"===typeof e?e(n.current):e;r!==n.current&&t(r,n.current),n.current=r,i({})}return[n.current,l]}var To=function(e){var t,n=e.position,o=e.prefixCls,a=e.extra;if(!a)return null;var i={};return a&&"object"===Object(l["a"])(a)&&!r["isValidElement"](a)?i=a:i.right=a,"right"===n&&(t=i.right),"left"===n&&(t=i.left),t?r["createElement"]("div",{className:"".concat(o,"-extra-content")},t):null};function Po(e,t){var n,o=r["useContext"](Eo),l=o.prefixCls,c=o.tabs,f=e.className,p=e.style,h=e.id,v=e.animated,E=e.activeKey,O=e.rtl,S=e.extra,j=e.editable,A=e.locale,T=e.tabPosition,P=e.tabBarGutter,_=e.children,R=e.onTabClick,M=e.onTabScroll,N=Object(r["useRef"])(),I=Object(r["useRef"])(),L=Object(r["useRef"])(),F=Object(r["useRef"])(),D=Co(),z=Object(u["a"])(D,2),B=z[0],U=z[1],H="top"===T||"bottom"===T,W=Ao(0,(function(e,t){H&&M&&M({direction:e>t?"left":"right"})})),G=Object(u["a"])(W,2),V=G[0],$=G[1],K=Ao(0,(function(e,t){!H&&M&&M({direction:e>t?"top":"bottom"})})),q=Object(u["a"])(K,2),X=q[0],Y=q[1],Q=Object(r["useState"])(0),Z=Object(u["a"])(Q,2),J=Z[0],ee=Z[1],te=Object(r["useState"])(0),ne=Object(u["a"])(te,2),re=ne[0],oe=ne[1],ae=Object(r["useState"])(null),ie=Object(u["a"])(ae,2),ue=ie[0],le=ie[1],ce=Object(r["useState"])(null),se=Object(u["a"])(ce,2),fe=se[0],de=se[1],pe=Object(r["useState"])(0),he=Object(u["a"])(pe,2),ve=he[0],me=he[1],ge=Object(r["useState"])(0),ye=Object(u["a"])(ge,2),be=ye[0],we=ye[1],Ee=w(new Map),Oe=Object(u["a"])(Ee,2),ke=Oe[0],Se=Oe[1],xe=x(c,ke,J),je="".concat(l,"-nav-operations-hidden"),Ce=0,Ae=0;function Te(e){return eAe?Ae:e}H?O?(Ce=0,Ae=Math.max(0,J-ue)):(Ce=Math.min(0,ue-J),Ae=0):(Ce=Math.min(0,fe-re),Ae=0);var Pe=Object(r["useRef"])(),_e=Object(r["useState"])(),Re=Object(u["a"])(_e,2),Me=Re[0],Ne=Re[1];function Ie(){Ne(Date.now())}function Le(){window.clearTimeout(Pe.current)}function Fe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:E,t=xe.get(e)||{width:0,height:0,left:0,right:0,top:0};if(H){var n=V;O?t.rightV+ue&&(n=t.right+t.width-ue):t.left<-V?n=-t.left:t.left+t.width>-V+ue&&(n=-(t.left+t.width-ue)),Y(0),$(Te(n))}else{var r=X;t.top<-X?r=-t.top:t.top+t.height>-X+fe&&(r=-(t.top+t.height-fe)),$(0),Y(Te(r))}}jo(N,(function(e,t){function n(e,t){e((function(e){var n=Te(e+t);return n}))}if(H){if(ue>=J)return!1;n($,e)}else{if(fe>=re)return!1;n(Y,t)}return Le(),Ie(),!0})),Object(r["useEffect"])((function(){return Le(),Me&&(Pe.current=window.setTimeout((function(){Ne(0)}),100)),Le}),[Me]);var De=C(xe,{width:ue,height:fe,left:V,top:X},{width:J,height:re},{width:ve,height:be},Object(s["a"])(Object(s["a"])({},e),{},{tabs:c})),ze=Object(u["a"])(De,2),Be=ze[0],Ue=ze[1],He={};"top"===T||"bottom"===T?He[O?"marginRight":"marginLeft"]=P:He.marginTop=P;var We=c.map((function(e,t){var n=e.key;return r["createElement"](k,{id:h,prefixCls:l,key:n,tab:e,style:0===t?void 0:He,closable:e.closable,editable:j,active:n===E,renderWrapper:_,removeAriaLabel:null===A||void 0===A?void 0:A.removeAriaLabel,ref:B(n),onClick:function(e){R(n,e)},onRemove:function(){U(n)},onFocus:function(){Fe(n),Ie(),N.current&&(O||(N.current.scrollLeft=0),N.current.scrollTop=0)}})})),Ge=b((function(){var e,t,n,r,o,a,i=(null===(e=N.current)||void 0===e?void 0:e.offsetWidth)||0,u=(null===(t=N.current)||void 0===t?void 0:t.offsetHeight)||0,l=(null===(n=F.current)||void 0===n?void 0:n.offsetWidth)||0,s=(null===(r=F.current)||void 0===r?void 0:r.offsetHeight)||0;le(i),de(u),me(l),we(s);var f=((null===(o=I.current)||void 0===o?void 0:o.offsetWidth)||0)-l,d=((null===(a=I.current)||void 0===a?void 0:a.offsetHeight)||0)-s;ee(f),oe(d),Se((function(){var e=new Map;return c.forEach((function(t){var n=t.key,r=B(n).current;r&&e.set(n,{width:r.offsetWidth,height:r.offsetHeight,left:r.offsetLeft,top:r.offsetTop})})),e}))})),Ve=c.slice(0,Be),$e=c.slice(Ue+1),Ke=[].concat(Object(m["a"])(Ve),Object(m["a"])($e)),qe=Object(r["useState"])(),Xe=Object(u["a"])(qe,2),Ye=Xe[0],Qe=Xe[1],Ze=xe.get(E),Je=Object(r["useRef"])();function et(){g["a"].cancel(Je.current)}Object(r["useEffect"])((function(){var e={};return Ze&&(H?(O?e.right=Ze.right:e.left=Ze.left,e.width=Ze.width):(e.top=Ze.top,e.height=Ze.height)),et(),Je.current=Object(g["a"])((function(){Qe(e)})),et}),[Ze,H,O]),Object(r["useEffect"])((function(){Fe()}),[E,Ze,xe,H]),Object(r["useEffect"])((function(){Ge()}),[O,P,E,c.map((function(e){return e.key})).join("_")]);var tt,nt,rt,ot,at=!!Ke.length,it="".concat(l,"-nav-wrap");return H?O?(nt=V>0,tt=V+uee.length)&&(t=e.length);for(var n=0,r=new Array(t);n=n.length?{value:void 0,done:!0}:(e=c(n,r),t.index+=e.length,{value:{codePoint:l(e,0),position:r},done:!1})}));r({target:"String",proto:!0},{codePoints:function(){return new p(String(a(this)))}})},"1uVM":function(e,t,n){"use strict";e.exports=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%".concat(e.charCodeAt(0).toString(16).toUpperCase())}))}},"1wx2":function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},"1x+Y":function(e,t,n){"use strict";var r=n("OOCw"),o=n("qyeh"),a=n("eyaU"),i=n("sErw"),u=n("lkgX"),l=n("mxPn"),c=n("uZx/");r({target:"Set",proto:!0,real:!0,forced:o},{isSubsetOf:function(e){var t=l(this),n=i(e),r=n.has;return"function"!=typeof r&&(n=new(a("Set"))(e),r=u(n.has)),!c(t,(function(e){if(!1===r.call(n,e))return c.stop()}),void 0,!1,!0).stopped}})},"2/yZ":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("jTF5");function o(e,t,n){return t=Object(r["a"])(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},"2Roc":function(e,t,n){var r=n("3Hes");t.f=r},"2UqR":function(e,t,n){"use strict";n.r(t),n.d(t,"matchRoutes",(function(){return u})),n.d(t,"renderRoutes",(function(){return l}));var r=n("Bm2L"),o=n("1N6n"),a=n("ahKI"),i=n.n(a);function u(e,t,n){return void 0===n&&(n=[]),e.some((function(e){var o=e.path?Object(r["i"])(t,e):n.length?n[n.length-1].match:r["e"].computeRootMatch(t);return o&&(n.push({route:e,match:o}),e.routes&&u(e.routes,t,n)),o})),n}function l(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),e?i.a.createElement(r["g"],n,e.map((function(e,n){return i.a.createElement(r["d"],{key:e.key||n,path:e.path,exact:e.exact,strict:e.strict,render:function(n){return e.render?e.render(Object(o["a"])({},n,{},t,{route:e})):i.a.createElement(e.component,Object(o["a"])({},n,t,{route:e}))}})}))):null}},"2Yex":function(e,t,n){"use strict";var r=n("OOCw"),o=n("YfbA").includes,a=n("ZGY3"),i=n("7/pz"),u=i("indexOf",{ACCESSORS:!0,1:0});r({target:"Array",proto:!0,forced:!u},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},"2fm6":function(e,t,n){"use strict";var r=n("sErw"),o=n("lkgX");e.exports=function(){for(var e,t=r(this),n=o(t["delete"]),a=!0,i=0,u=arguments.length;i-1e-8&&e<1e-8?e-e*e/2:n(1+e)}},"2mBG":function(e,t,n){"use strict";t.__esModule=!0,t.getParameters=void 0;var r=n("m5gC");t.getParameters=r.getParameters},"2q/4":function(e,t,n){var r=n("nBeg");r(Math,"Math",!0)},"3B3C":function(e,t,n){"use strict";var r=n("SHha"),o=n("ahKI");t.useSubscription=function(e){var t=e.getCurrentValue,n=e.subscribe,a=o.useState((function(){return{getCurrentValue:t,subscribe:n,value:t()}}));e=a[0];var i=a[1];return a=e.value,e.getCurrentValue===t&&e.subscribe===n||(a=t(),i({getCurrentValue:t,subscribe:n,value:a})),o.useDebugValue(a),o.useEffect((function(){function e(){if(!o){var e=t();i((function(o){return o.getCurrentValue!==t||o.subscribe!==n||o.value===e?o:r({},o,{value:e})}))}}var o=!1,a=n(e);return e(),function(){o=!0,a()}}),[t,n]),a}},"3CiM":function(e,t,n){var r=n("OOCw"),o=n("CBsr");r({target:"Map",stat:!0},{of:o})},"3EuP":function(e,t,n){"use strict";var r=n("R2qs"),o=n("IYc2");function a(){var e=n("ahKI");return a=function(){return e},e}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n, mountNode);"),t}var E=function(e){var t=(0,a().useState)(),n=f(t,2),i=n[0],l=n[1],c=b();return(0,a().useEffect)((function(){if(e&&c&&1===Object.keys(e.sources).length){var t,n=document.createElement("form"),a=document.createElement("input");return n.method="POST",n.target="_blank",n.style.display="none",n.action=y,n.appendChild(a),n.setAttribute("data-demo",e.title||""),a.name="data",a.value=JSON.stringify({title:e.titlle,js:w(e),css:Object.entries(e.dependencies).filter((function(e){var t=o(e,2),n=t[1];return n.css})).map((function(e){var t=o(e,2),n=t[0],r=t[1],a=r.version,i=r.css;return"@import '~".concat(i.replace(new RegExp("^(".concat(n,")")),"$1@".concat(a)),"';")})).concat(e.background?"body {\n background: ".concat(e.background,";\n}"):"").join("\n"),json:JSON.stringify({description:e.description,dependencies:Object.entries(e.dependencies).reduce((function(e,t){var n=o(t,2),a=n[0],i=n[1].version;return u(u({},e),{},r({},a,i))}),{"react-dom":(null===(t=e.dependencies.react)||void 0===t?void 0:t.version)||"latest"})},null,2)}),document.body.appendChild(n),l((function(){return function(){return n.submit()}})),function(){return n.remove()}}}),[e,c]),i};t["default"]=E},"3Hes":function(e,t,n){var r=n("6SQG"),o=n("WAeE"),a=n("oEsY"),i=n("KgcE"),u=n("O8qS"),l=n("V0hj"),c=o("wks"),s=r.Symbol,f=l?s:s&&s.withoutSetter||i;e.exports=function(e){return a(c,e)||(u&&a(s,e)?c[e]=s[e]:c[e]=f("Symbol."+e)),c[e]}},"3YDC":function(e,t,n){var r=n("OOCw"),o=n("1Sp3"),a=n("sErw"),i=n("zesz"),u=o.has,l=o.toKey,c=function(e,t,n){var r=u(e,t,n);if(r)return!0;var o=i(t);return null!==o&&c(e,o,n)};r({target:"Reflect",stat:!0},{hasMetadata:function(e,t){var n=arguments.length<3?void 0:l(arguments[2]);return c(e,a(t),n)}})},"3f79":function(e,t){e.exports=function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!==typeof e||!e||"object"!==typeof t||!t)return!1;var a=Object.keys(e),i=Object.keys(t);if(a.length!==i.length)return!1;for(var u=Object.prototype.hasOwnProperty.bind(t),l=0;l=51||!o((function(){var e=[];return e[h]=!1,e.concat()[0]!==e})),y=f("concat"),b=function(e){if(!i(e))return!1;var t=e[h];return void 0!==t?!!t:a(e)},w=!g||!y;r({target:"Array",proto:!0,forced:w},{concat:function(e){var t,n,r,o,a,i=u(this),f=s(i,0),d=0;for(t=-1,r=arguments.length;tv)throw TypeError(m);for(n=0;n=v)throw TypeError(m);c(f,d++,a)}return f.length=d,f}})},"4uZn":function(e,t,n){var r=n("6SQG");e.exports=r},"51zF":function(e,t){function n(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,a=void 0;try{for(var i,u=e[Symbol.iterator]();!(r=(i=u.next()).done);r=!0)if(n.push(i.value),t&&n.length===t)break}catch(l){o=!0,a=l}finally{try{r||null==u["return"]||u["return"]()}finally{if(o)throw a}}return n}}e.exports=n},"5G5g":function(e,t,n){var r=n("KZF9");r("observable")},"5RAN":function(e,t,n){var r=n("GXoa");r("Uint16",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},"5TAQ":function(e,t,n){"use strict";var r=n("OOCw"),o=n("r+6h"),a=n("THzI"),i=n("OdMF"),u=n("lkgX"),l=n("0JbB");o&&r({target:"Object",proto:!0,forced:a},{__defineGetter__:function(e,t){l.f(i(this),e,{get:u(t),enumerable:!0,configurable:!0})}})},"5WWi":function(e,t,n){var r=n("OOCw"),o=n("1Sp3"),a=n("sErw"),i=o.has,u=o.toKey;r({target:"Reflect",stat:!0},{hasOwnMetadata:function(e,t){var n=arguments.length<3?void 0:u(arguments[2]);return i(e,a(t),n)}})},"5bpw":function(e,t,n){"use strict";var r=n("OOCw"),o=n("z43i"),a=n("q43B"),i=n("rfqm"),u=n("3Hes"),l=n("qyeh"),c=u("replace"),s=RegExp.prototype;r({target:"String",proto:!0},{replaceAll:function e(t,n){var r,u,f,d,p,h,v,m,g,y=o(this);if(null!=t){if(r=a(t),r&&(u=String(o("flags"in s?t.flags:i.call(t))),!~u.indexOf("g")))throw TypeError("`.replaceAll` does not allow non-global regexes");if(f=t[c],void 0!==f)return f.call(t,y,n);if(l&&r)return String(y).replace(t,n)}if(d=String(y),p=String(t),""===p)return e.call(d,/(?:)/g,n);if(h=d.split(p),"function"!==typeof n)return h.join(String(n));for(v=h[0],m=v.length,g=1;g1?arguments[1]:void 0,n),l=i>2?arguments[2]:void 0,c=void 0===l?n:o(l,n);while(c>u)t[u++]=e;return t}},"5jZn":function(e,t,n){var r=n("OOCw"),o=180/Math.PI;r({target:"Math",stat:!0},{degrees:function(e){return e*o}})},"5yEw":function(e,t,n){var r=n("3Hes"),o=r("toStringTag"),a={};a[o]="z",e.exports="[object z]"===String(a)},"6+9U":function(e,t,n){"use strict";function r(){var e=n("ahKI");return r=function(){return e},e}function o(){var e=a(n("Qkfr"));return o=function(){return e},e}function a(e){return e&&e.__esModule?e:{default:e}}function i(e,t){return f(e)||s(e,t)||l(e,t)||u()}function u(){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 l(e,t){if(e){if("string"===typeof e)return c(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(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?arguments[1]:void 0)}},"6jqD":function(e,t,n){var r=n("x+sk");e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},"6ssM":function(e,t,n){var r=n("r+6h"),o=n("UQib"),a=n("ZVkV"),i=n("684d"),u=n("JSMs"),l=n("oEsY"),c=n("p3eN"),s=Object.getOwnPropertyDescriptor;t.f=r?s:function(e,t){if(e=i(e),t=u(t,!0),c)try{return s(e,t)}catch(n){}if(l(e,t))return a(!o.f.call(e,t),e[t])}},"7/pz":function(e,t,n){var r=n("r+6h"),o=n("h+/6"),a=n("oEsY"),i=Object.defineProperty,u={},l=function(e){throw e};e.exports=function(e,t){if(a(u,e))return u[e];t||(t={});var n=[][e],c=!!a(t,"ACCESSORS")&&t.ACCESSORS,s=a(t,0)?t[0]:l,f=a(t,1)?t[1]:void 0;return u[e]=!!n&&!o((function(){if(c&&!r)return!0;var e={length:-1};c?i(e,1,{enumerable:!0,get:l}):e[1]=1,n.call(e,s,f)}))}},"73fw":function(e,t,n){var r=n("6SQG"),o=n("x+sk"),a=r.document,i=o(a)&&o(a.createElement);e.exports=function(e){return i?a.createElement(e):{}}},"75ce":function(e,t,n){"use strict";n.r(t);var r=n("ahKI"),o=n.n(r),a=n("F4XJ"),i=n("PAHk"),u=o.a.memo((e=>{e.demos;return o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:"markdown"},o.a.createElement("blockquote",null,o.a.createElement("p",null,"\u8fd9\u91cc\u662f Hox v2 \u7684\u6587\u6863\uff0c\u5982\u679c\u4f60\u5728\u4f7f\u7528 v1\uff0c\u90a3\u4e48\u8bf7\u524d\u5f80",o.a.createElement(a["Link"],{to:"https://github.com/umijs/hox/blob/v1/README.md"},"\u8fd9\u91cc"))),o.a.createElement("p",null,o.a.createElement(a["Link"],{to:"https://www.npmjs.com/package/hox"},o.a.createElement("img",{src:"https://img.shields.io/npm/v/hox.svg?logo=npm",alt:"npm version"})),"\xa0",o.a.createElement(a["Link"],{to:"https://www.npmjs.com/package/hox"},o.a.createElement("img",{src:"https://img.shields.io/bundlephobia/min/hox.svg?logo=javascript",alt:"npm bundle size (minified)"})),"\xa0",o.a.createElement("img",{src:"https://img.shields.io/npm/dependency-version/hox/peer/react?logo=react",alt:"React"})),o.a.createElement(i["a"],{code:"npm install --save hox\n# or\nyarn add hox\n# or\npnpm add hox",lang:"shell"}),o.a.createElement("h2",{id:"\u5728\u7ebf\u4f53\u9a8c"},o.a.createElement(a["AnchorLink"],{to:"#\u5728\u7ebf\u4f53\u9a8c","aria-hidden":"true",tabIndex:-1},o.a.createElement("span",{className:"icon icon-link"})),"\u5728\u7ebf\u4f53\u9a8c"),o.a.createElement("p",null,o.a.createElement(a["Link"],{to:"https://codesandbox.io/s/github/awmleer/todo-app-with-hox/tree/master/"},o.a.createElement("img",{src:"https://codesandbox.io/static/img/play-codesandbox.svg",alt:"Edit"}))),o.a.createElement("h2",{id:"\u4ece\u72b6\u6001\u7ba1\u7406\u5230\u72b6\u6001\u5171\u4eab"},o.a.createElement(a["AnchorLink"],{to:"#\u4ece\u72b6\u6001\u7ba1\u7406\u5230\u72b6\u6001\u5171\u4eab","aria-hidden":"true",tabIndex:-1},o.a.createElement("span",{className:"icon icon-link"})),"\u4ece\u72b6\u6001\u7ba1\u7406\u5230\u72b6\u6001\u5171\u4eab"),o.a.createElement("p",null,'\u5728 Hox v1 \u4e2d\uff0c\u6211\u4eec\u4e00\u76f4\u5ba3\u79f0\u5b83\u662f\u4e00\u4e2a"\u72b6\u6001\u7ba1\u7406"\u5e93\u3002'),o.a.createElement("p",null,'\u4e0d\u59a8\u56de\u60f3\uff08\u6216\u8005\u4e86\u89e3\uff09\u4e00\u4e0b redux\u3001zustand\u3001recoil \u8fd9\u4e9b\u72b6\u6001\u7ba1\u7406\u5e93\uff0c\u5b83\u4eec\u867d\u7136\u5728\u4e00\u5b9a\u7a0b\u5ea6\u4e0a\u4e5f\u53ef\u4ee5\u5e2e\u6211\u4eec\u89e3\u51b3\u6570\u636e\u5171\u4eab\u7684\u95ee\u9898\uff0c\u4f46\u5b83\u4eec\u6700\u672c\u8d28\u7684\u80fd\u529b\u8fd8\u662f\u5bf9\u6570\u636e\u7684\u64cd\u4f5c\u3002\u5b83\u4eec\u88ab\u79f0\u505a\u4e5f\u786e\u5b9e\u5e94\u8be5\u88ab\u79f0\u505a"\u72b6\u6001\u7ba1\u7406"\u5de5\u5177\u3002'),o.a.createElement("p",null,"\u800c Hox \u60f3\u89e3\u51b3\u7684\u95ee\u9898\uff0c\u4e0d\u662f\u5982\u4f55\u7ec4\u7ec7\u548c\u64cd\u4f5c\u6570\u636e\uff0c\u4e0d\u662f\u6570\u636e\u6d41\u7684\u5206\u5c42\u3001\u5f02\u6b65\u3001\u7ec6\u7c92\u5ea6\uff0c\u6211\u4eec\u5e0c\u671b Hox \u53ea\u805a\u7126\u4e8e\u4e00\u4e2a\u75db\u70b9\uff1a\u5728\u591a\u4e2a\u7ec4\u4ef6\u95f4\u5171\u4eab\u72b6\u6001\u3002"),o.a.createElement("p",null,"\u5982\u679c\u4f60\u4e5f\u610f\u8bc6\u5230\u4e86\uff0c\u5c42\u5c42\u4f20\u9012\u7684 ",o.a.createElement("code",null,"value")," ",o.a.createElement("code",null,"onChange"),' \u4f1a\u5bf9\u4e00\u4e2a\u4f18\u8d28\u4ee3\u7801\u5e93\u5e26\u6765\u7684\u6bc1\u706d\u6027\u5f71\u54cd\uff0c\u7c97\u66b4\u5730\u628a\u6570\u636e\u585e\u5728 redux \u4e2d\u4e5f\u5e76\u4e0d\u80fd\u8ba9\u4e00\u4e2a\u5e94\u7528\u5f97\u5230\u5f88\u597d\u7684\u62d3\u5c55\u6027\u548c\u53ef\u7ef4\u62a4\u6027\uff0c\u90a3\u4e48 Hox \u6216\u8bb8\u4f1a\u662f\u4e00\u4e2a\u9002\u5408\u4f60\u7684"\u72b6\u6001\u5171\u4eab"\u65b9\u6848\uff0c\u5b83\u7b80\u5355\u3001\u8f7b\u91cf\u3001\u53ef\u9760\uff0c\u9002\u5408\u65e0\u8bba\u5927\u5c0f\u7684\u51e0\u4e4e\u6240\u6709\u9879\u76ee\u3002'),o.a.createElement("h2",{id:"\u4e3a\u4ec0\u4e48\u8981\u7528-hox"},o.a.createElement(a["AnchorLink"],{to:"#\u4e3a\u4ec0\u4e48\u8981\u7528-hox","aria-hidden":"true",tabIndex:-1},o.a.createElement("span",{className:"icon icon-link"})),"\u4e3a\u4ec0\u4e48\u8981\u7528 Hox\uff1f"),o.a.createElement("ul",null,o.a.createElement("li",null,"\u76f4\u63a5\u590d\u7528\u5df2\u6709\u7684 React \u77e5\u8bc6\uff0c\u51e0\u4e4e\u6ca1\u6709\u5b66\u4e60\u6210\u672c\uff0c\u4f60\u600e\u4e48\u5199 React \u7ec4\u4ef6\uff0c\u5c31\u53ef\u4ee5\u600e\u4e48\u5199 Store"),o.a.createElement("li",null,"\u4e3a\u7075\u6d3b\u91cd\u6784\u800c\u8bbe\u8ba1\uff0c\u5728 Store \u548c\u7ec4\u4ef6\u4e2d\u4f7f\u7528\u540c\u4e00\u5957 DSL \u53ef\u4ee5\u8ba9\u4f60\u51e0\u4e4e 0 \u6210\u672c\u7684\u5c06\u7ec4\u4ef6\u7684\u5c40\u90e8\u72b6\u6001\u8f6c\u5316\u4e3a\u4e00\u4e2a\u7ec4\u4ef6\u95f4\u5171\u4eab\u7684\u72b6\u6001"),o.a.createElement("li",null,"\u540c\u65f6\u652f\u6301\u5c40\u90e8\u72b6\u6001\u548c\u5168\u5c40\u72b6\u6001\uff0c\u5728\u7075\u6d3b\u548c\u7b80\u5355\u4e4b\u95f4\u505a\u5230\u4e86\u5f88\u597d\u7684\u5e73\u8861"),o.a.createElement("li",null,"\u4f18\u79c0\u7684\u6027\u80fd\u548c TypeScript \u652f\u6301"))))}));t["default"]=e=>{var t=o.a.useContext(a["context"]),n=t.demos;return o.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&a["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),o.a.createElement(u,{demos:n})}},"78S/":function(e,t){e.exports="undefined"!==typeof ArrayBuffer&&"undefined"!==typeof DataView},"7EYs":function(e,t,n){var r=n("eyaU");e.exports=r("navigator","userAgent")||""},"7F/w":function(e,t,n){"use strict";var r=n("v3z7"),o=n("OdMF"),a=n("pKuQ"),i=n("dwb6"),u=n("upgS"),l=n("tmip"),c=n("MI4T");e.exports=function(e){var t,n,s,f,d,p,h=o(e),v="function"==typeof this?this:Array,m=arguments.length,g=m>1?arguments[1]:void 0,y=void 0!==g,b=c(h),w=0;if(y&&(g=r(g,m>2?arguments[2]:void 0,2)),void 0==b||v==Array&&i(b))for(t=u(h.length),n=new v(t);t>w;w++)p=y?g(h[w],w):h[w],l(n,w,p);else for(f=b.call(h),d=f.next,n=new v;!(s=d.call(f)).done;w++)p=y?a(f,g,[s.value,w],!0):s.value,l(n,w,p);return n.length=w,n}},"7NTl":function(e,t,n){"use strict";var r=n("g0pg"),o=n("vMeL"),a=r.aTypedArrayConstructor,i=r.exportTypedArrayStaticMethod;i("of",(function(){var e=0,t=arguments.length,n=new(a(this))(t);while(t>e)n[e]=arguments[e++];return n}),o)},"7PoB":function(e,t,n){"use strict";var r=n("OOCw"),o=n("qyeh"),a=n("eyaU"),i=n("sErw"),u=n("lkgX"),l=n("v3z7"),c=n("ZT9G"),s=n("QHn5"),f=n("uZx/");r({target:"Map",proto:!0,real:!0,forced:o},{mapValues:function(e){var t=i(this),n=s(t),r=l(e,arguments.length>1?arguments[1]:void 0,3),o=new(c(t,a("Map"))),d=u(o.set);return f(n,(function(e,n){d.call(o,e,r(n,e,t))}),void 0,!0,!0),o}})},"7Xfv":function(e,t,n){"use strict";var r=n("OOCw"),o=n("r+6h"),a=n("THzI"),i=n("OdMF"),u=n("lkgX"),l=n("0JbB");o&&r({target:"Object",proto:!0,forced:a},{__defineSetter__:function(e,t){l.f(i(this),e,{set:u(t),enumerable:!0,configurable:!0})}})},"7m2b":function(e,t,n){"use strict";n.r(t);var r=n("ahKI"),o=n.n(r),a=n("F4XJ"),i=n("PAHk"),u=o.a.memo((e=>{e.demos;return o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:"markdown"},o.a.createElement("blockquote",null,o.a.createElement("p",null,"Here is the documentation for Hox v2, if you are using v1 then go to ",o.a.createElement(a["Link"],{to:"https://github.com/umijs/hox/blob/v1/README.md"},"here"))),o.a.createElement("p",null,o.a.createElement(a["Link"],{to:"https://www.npmjs.com/package/hox"},o.a.createElement("img",{src:"https://img.shields.io/npm/v/hox.svg?logo=npm",alt:"npm version"})),"\xa0",o.a.createElement(a["Link"],{to:"https://www.npmjs.com/package/hox"},o.a.createElement("img",{src:"https://img.shields.io/bundlephobia/min/hox.svg?logo=javascript",alt:"npm bundle size (minified)"})),"\xa0",o.a.createElement("img",{src:"https://img.shields.io/npm/dependency-version/hox/peer/react?logo=react",alt:"React"})),o.a.createElement(i["a"],{code:"npm install --save hox\n# or\nyarn add hox\n# or\npnpm add hox",lang:"shell"}),o.a.createElement("h2",{id:"play-hox-in-codesandbox"},o.a.createElement(a["AnchorLink"],{to:"#play-hox-in-codesandbox","aria-hidden":"true",tabIndex:-1},o.a.createElement("span",{className:"icon icon-link"})),"Play Hox in Codesandbox"),o.a.createElement("p",null,o.a.createElement(a["Link"],{to:"https://codesandbox.io/s/github/awmleer/todo-app-with-hox/tree/master/"},o.a.createElement("img",{src:"https://codesandbox.io/static/img/play-codesandbox.svg",alt:"Edit"}))),o.a.createElement("h2",{id:"from-state-management-to-state-sharing"},o.a.createElement(a["AnchorLink"],{to:"#from-state-management-to-state-sharing","aria-hidden":"true",tabIndex:-1},o.a.createElement("span",{className:"icon icon-link"})),"From state management to state sharing"),o.a.createElement("p",null,'In Hox v1, we\'ve been calling it a "state management" library.'),o.a.createElement("p",null,'May wish to recall (or understand) these state management libraries such as redux, zustand, and recoil. Although they can also help us solve the problem of data sharing to a certain extent, their most essential ability is to operate data. They are called and really should be called "state management" tools.'),o.a.createElement("p",null,"The problem that Hox wants to solve is not how to organize and operate data, nor the hierarchical, asynchronous, and fine-grained data flow. We hope that Hox will only focus on one pain point: sharing state among multiple components."),o.a.createElement("p",null,"If you also realize that the ",o.a.createElement("code",null,"value")," ",o.a.createElement("code",null,"onChange"),' passed from layer to layer will have a devastating impact on a high-quality code base, and rudely stuffing data into redux will not make an application very scalable and effective. Maintainability, then Hox may be a "state sharing" solution for you, it\'s simple, lightweight, reliable, and suitable for almost any project no matter how big or small.'),o.a.createElement("h2",{id:"why-use-hox"},o.a.createElement(a["AnchorLink"],{to:"#why-use-hox","aria-hidden":"true",tabIndex:-1},o.a.createElement("span",{className:"icon icon-link"})),"Why use Hox?"),o.a.createElement("ul",null,o.a.createElement("li",null,"Direct reuse of existing React knowledge, almost no learning cost, how you write React components, you can write Store"),o.a.createElement("li",null,"Designed for flexible refactoring, using the same DSL in Store and components allows you to convert a component's local state into a state shared between components at almost zero cost"),o.a.createElement("li",null,"Supports both local and global states, a good balance between flexibility and simplicity"),o.a.createElement("li",null,"Excellent performance and TypeScript support"))))}));t["default"]=e=>{var t=o.a.useContext(a["context"]),n=t.demos;return o.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&a["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),o.a.createElement(u,{demos:n})}},"7wbt":function(e,t,n){"use strict";var r=n("OOCw"),o=n("qyeh"),a=n("sErw"),i=n("lkgX"),u=n("uZx/");r({target:"Set",proto:!0,real:!0,forced:o},{isDisjointFrom:function(e){var t=a(this),n=i(t.has);return!u(e,(function(e){if(!0===n.call(t,e))return u.stop()})).stopped}})},"86T+":function(e,t){e.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}},"8BbM":function(e,t,n){var r=n("KZF9");r("split")},"8WKJ":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("ahKI");function o(e,t,n){var o=r["useRef"]({});return"value"in o.current&&!n(o.current.condition,t)||(o.current.value=e(),o.current.condition=t),o.current.value}},"8ZJW":function(e,t,n){},"8d12":function(e,t,n){"use strict";var r=n("lkgX"),o=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new o(e)}},"8i6t":function(e,t,n){var r=n("WAeE"),o=n("KgcE"),a=r("keys");e.exports=function(e){return a[e]||(a[e]=o(e))}},"8unG":function(e,t,n){var r=n("6SQG"),o=n("mVlO"),a=n("6aeB"),i=n("MZA9");for(var u in o){var l=r[u],c=l&&l.prototype;if(c&&c.forEach!==a)try{i(c,"forEach",a)}catch(s){c.forEach=a}}},"8xBB":function(e,t,n){var r=n("OOCw"),o=n("6SQG"),a=n("OtMc"),i=n("kk5s"),u=o.process,l="process"==i(u);r({global:!0,enumerable:!0,noTargetGet:!0},{queueMicrotask:function(e){var t=l&&u.domain;a(t?t.bind(e):e)}})},"9BW8":function(e,t,n){"use strict";var r=n("ahKI"),o=n.n(r);n("LTz5");function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&(!f.multiline||f.multiline&&"\n"!==e[f.lastIndex-1])&&(h="(?: "+h+")",m=" "+m,v++),n=new RegExp("^(?:"+h+")",p)),s&&(n=new RegExp("^"+h+"$(?!\\s)",p)),l&&(t=f.lastIndex),o=a.call(d?n:f,m),d?o?(o.input=o.input.slice(v),o[0]=o[0].slice(v),o.index=f.lastIndex,f.lastIndex+=o[0].length):f.lastIndex=0:l&&o&&(f.lastIndex=f.global?o.index+o[0].length:t),s&&o&&o.length>1&&i.call(o[0],n,(function(){for(u=1;u0?r:n)(e)}},AWMC:function(e,t,n){"use strict";var r=n("IYc2");function o(){var e=n("ahKI");return o=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var a=i(n("Q2d3"));function i(e){return e&&e.__esModule?e:{default:e}}function u(e,t){return d(e)||f(e,t)||c(e,t)||l()}function l(){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 c(e,t){if(e){if("string"===typeof e)return s(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(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=55296&&o<=56319&&n>1,e+=m(e/t);e>v*i>>1;r+=o)e=m(e/v);return m(r+(v+1)*e/(e+u))},E=function(e){var t=[];e=y(e);var n,u,l=e.length,d=s,p=0,v=c;for(n=0;n=d&&um((r-p)/S))throw RangeError(h);for(p+=(k-d)*S,d=k,n=0;nr)throw RangeError(h);if(u==d){for(var x=p,j=o;;j+=o){var C=j<=v?a:j>=v+i?i:j-v;if(x=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}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 a,i=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){u=!0,a=e},f:function(){try{i||null==n["return"]||n["return"]()}finally{if(u)throw a}}}}function s(e,t){return v(e)||h(e,t)||d(e,t)||f()}function f(){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 d(e,t){if(e){if("string"===typeof e)return p(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(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0;i-=1){var u=o[i],l=[u].concat(u.children).filter(Boolean),c=l.find((function(e){return e.path&&new RegExp("^".concat(e.path.replace(/\.html$/,""),"(/|.|$)")).test(n[2])}));if(c){a=c.path;break}}return(null===(e=n[0].menus[n[1]])||void 0===e?void 0:e[a])||[]},a=(0,r.useState)(o(e,t,n)),i=s(a,2),u=i[0],l=i[1];return(0,r.useLayoutEffect)((function(){l(o(e,t,n))}),[e.navs,e.menus,t,n]),u},S=function(e,t,n){var o=function(){for(var t=arguments.length,r=new Array(t),o=0;o0?arguments[0]:void 0,s=this,p=[];if(C(s,{type:x,entries:p,updateURL:function(){},updateSearchParams:B}),void 0!==c)if(m(c))if(e=w(c),"function"===typeof e){t=e.call(c),n=t.next;while(!(r=n.call(t)).done){if(o=b(v(r.value)),a=o.next,(i=a.call(o)).done||(u=a.call(o)).done||!a.call(o).done)throw TypeError("Expected sequence with length 2");p.push({key:i.value+"",value:u.value+""})}}else for(l in c)d(c,l)&&p.push({key:l,value:c[l]+""});else z(p,"string"===typeof c?"?"===c.charAt(0)?c.slice(1):c:c+"")},G=W.prototype;u(G,{append:function(e,t){U(arguments.length,2);var n=A(this);n.entries.push({key:e+"",value:t+""}),n.updateURL()},delete:function(e){U(arguments.length,1);var t=A(this),n=t.entries,r=e+"",o=0;while(oe.key){o.splice(t,0,e);break}t===n&&o.push(e)}r.updateURL()},forEach:function(e){var t,n=A(this).entries,r=p(e,arguments.length>1?arguments[1]:void 0,3),o=0;while(o1&&(t=arguments[1],m(t)&&(n=t.body,h(n)===x&&(r=t.headers?new k(t.headers):new k,r.has("content-type")||r.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),t=g(t,{body:y(0,String(n)),headers:y(0,r)}))),o.push(t)),O.apply(this,o)}}),e.exports={URLSearchParams:W,getState:A}},BLCN:function(e,t,n){"use strict";var r=n("OOCw"),o=n("Us7a").start,a=n("SRer");r({target:"String",proto:!0,forced:a},{padStart:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},BRxd:function(e,t,n){var r,o;(function(){"use strict";var n={}.hasOwnProperty;function a(){for(var e=[],t=0;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n>>16,l=o>>>16,c=(u*i>>>0)+(a*i>>>16);return u*l+(c>>>16)+((a*l>>>0)+(c&n)>>>16)}})},CT9t:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n("gF6c");function o(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,u=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(u.push(r.value),u.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n["return"]&&(i=n["return"](),Object(i)!==i))return}finally{if(c)throw o}}return u}}var a=n("3fHA"),i=n("OVON");function u(e,t){return Object(r["a"])(e)||o(e,t)||Object(a["a"])(e,t)||Object(i["a"])()}},CZSf:function(e,t){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},CZpw:function(e,t,n){"use strict";var r,o,a,i,u=n("OOCw"),l=n("qyeh"),c=n("6SQG"),s=n("eyaU"),f=n("N59M"),d=n("uF/W"),p=n("TxBV"),h=n("nBeg"),v=n("ct0+"),m=n("x+sk"),g=n("lkgX"),y=n("CZSf"),b=n("kk5s"),w=n("piBM"),E=n("uZx/"),O=n("eW2S"),k=n("ZT9G"),S=n("bbNk").set,x=n("OtMc"),j=n("rCLu"),C=n("Cqy2"),A=n("8d12"),T=n("86T+"),P=n("uJNS"),_=n("RzMS"),R=n("3Hes"),M=n("tDGd"),N=R("species"),I="Promise",L=P.get,F=P.set,D=P.getterFor(I),z=f,B=c.TypeError,U=c.document,H=c.process,W=s("fetch"),G=A.f,V=G,$="process"==b(H),K=!!(U&&U.createEvent&&c.dispatchEvent),q="unhandledrejection",X="rejectionhandled",Y=0,Q=1,Z=2,J=1,ee=2,te=_(I,(function(){var e=w(z)!==String(z);if(!e){if(66===M)return!0;if(!$&&"function"!=typeof PromiseRejectionEvent)return!0}if(l&&!z.prototype["finally"])return!0;if(M>=51&&/native code/.test(z))return!1;var t=z.resolve(1),n=function(e){e((function(){}),(function(){}))},r=t.constructor={};return r[N]=n,!(t.then((function(){}))instanceof n)})),ne=te||!O((function(e){z.all(e)["catch"]((function(){}))})),re=function(e){var t;return!(!m(e)||"function"!=typeof(t=e.then))&&t},oe=function(e,t,n){if(!t.notified){t.notified=!0;var r=t.reactions;x((function(){var o=t.value,a=t.state==Q,i=0;while(r.length>i){var u,l,c,s=r[i++],f=a?s.ok:s.fail,d=s.resolve,p=s.reject,h=s.domain;try{f?(a||(t.rejection===ee&&le(e,t),t.rejection=J),!0===f?u=o:(h&&h.enter(),u=f(o),h&&(h.exit(),c=!0)),u===s.promise?p(B("Promise-chain cycle")):(l=re(u))?l.call(u,d,p):d(u)):p(o)}catch(v){h&&!c&&h.exit(),p(v)}}t.reactions=[],t.notified=!1,n&&!t.rejection&&ie(e,t)}))}},ae=function(e,t,n){var r,o;K?(r=U.createEvent("Event"),r.promise=t,r.reason=n,r.initEvent(e,!1,!0),c.dispatchEvent(r)):r={promise:t,reason:n},(o=c["on"+e])?o(r):e===q&&C("Unhandled promise rejection",n)},ie=function(e,t){S.call(c,(function(){var n,r=t.value,o=ue(t);if(o&&(n=T((function(){$?H.emit("unhandledRejection",r,e):ae(q,e,r)})),t.rejection=$||ue(t)?ee:J,n.error))throw n.value}))},ue=function(e){return e.rejection!==J&&!e.parent},le=function(e,t){S.call(c,(function(){$?H.emit("rejectionHandled",e):ae(X,e,t.value)}))},ce=function(e,t,n,r){return function(o){e(t,n,o,r)}},se=function(e,t,n,r){t.done||(t.done=!0,r&&(t=r),t.value=n,t.state=Z,oe(e,t,!0))},fe=function(e,t,n,r){if(!t.done){t.done=!0,r&&(t=r);try{if(e===n)throw B("Promise can't be resolved itself");var o=re(n);o?x((function(){var r={done:!1};try{o.call(n,ce(fe,e,r,t),ce(se,e,r,t))}catch(a){se(e,r,a,t)}})):(t.value=n,t.state=Q,oe(e,t,!1))}catch(a){se(e,{done:!1},a,t)}}};te&&(z=function(e){y(this,z,I),g(e),r.call(this);var t=L(this);try{e(ce(fe,this,t),ce(se,this,t))}catch(n){se(this,t,n)}},r=function(e){F(this,{type:I,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:Y,value:void 0})},r.prototype=p(z.prototype,{then:function(e,t){var n=D(this),r=G(k(this,z));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=$?H.domain:void 0,n.parent=!0,n.reactions.push(r),n.state!=Y&&oe(this,n,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new r,t=L(e);this.promise=e,this.resolve=ce(fe,e,t),this.reject=ce(se,e,t)},A.f=G=function(e){return e===z||e===a?new o(e):V(e)},l||"function"!=typeof f||(i=f.prototype.then,d(f.prototype,"then",(function(e,t){var n=this;return new z((function(e,t){i.call(n,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof W&&u({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return j(z,W.apply(c,arguments))}}))),u({global:!0,wrap:!0,forced:te},{Promise:z}),h(z,I,!1,!0),v(I),a=s(I),u({target:I,stat:!0,forced:te},{reject:function(e){var t=G(this);return t.reject.call(void 0,e),t.promise}}),u({target:I,stat:!0,forced:l||te},{resolve:function(e){return j(l&&this===a?z:this,e)}}),u({target:I,stat:!0,forced:ne},{all:function(e){var t=this,n=G(t),r=n.resolve,o=n.reject,a=T((function(){var n=g(t.resolve),a=[],i=0,u=1;E(e,(function(e){var l=i++,c=!1;a.push(void 0),u++,n.call(t,e).then((function(e){c||(c=!0,a[l]=e,--u||r(a))}),o)})),--u||r(a)}));return a.error&&o(a.value),n.promise},race:function(e){var t=this,n=G(t),r=n.reject,o=T((function(){var o=g(t.resolve);E(e,(function(e){o.call(t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}})},CpWJ:function(e,t,n){"use strict";var r=n("OOCw"),o=n("qyeh"),a=n("eyaU"),i=n("sErw"),u=n("lkgX"),l=n("v3z7"),c=n("ZT9G"),s=n("QHn5"),f=n("uZx/");r({target:"Map",proto:!0,real:!0,forced:o},{filter:function(e){var t=i(this),n=s(t),r=l(e,arguments.length>1?arguments[1]:void 0,3),o=new(c(t,a("Map"))),d=u(o.set);return f(n,(function(e,n){r(n,e,t)&&d.call(o,e,n)}),void 0,!0,!0),o}})},Cqy2:function(e,t,n){var r=n("6SQG");e.exports=function(e,t){var n=r.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},CsJM:function(e,t,n){var r=n("z43i"),o=n("Vg85"),a="["+o+"]",i=RegExp("^"+a+a+"*"),u=RegExp(a+a+"*$"),l=function(e){return function(t){var n=String(r(t));return 1&e&&(n=n.replace(i,"")),2&e&&(n=n.replace(u,"")),n}};e.exports={start:l(1),end:l(2),trim:l(3)}},CxkM:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=t.LinkWrapper=void 0;var r=i(n("ahKI")),o=n("k+Ei"),a=["to"];function i(e){return e&&e.__esModule?e:{default:e}}function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function c(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}var s=t.LinkWrapper=function(e){return function(t){var n=t.to,o=l(t,a),i=/^(\w+:)?\/\/|^(mailto|tel):/.test(n)||!n,c=r["default"].isValidElement(o.children);return r["default"].createElement(e,u({to:n||"",component:i?function(){return r["default"].createElement("a",{target:"_blank",rel:"noopener noreferrer",href:n},o.children,n&&!c&&r["default"].createElement("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",x:"0px",y:"0px",viewBox:"0 0 100 100",width:"15",height:"15",className:"__dumi-default-external-link-icon"},r["default"].createElement("path",{fill:"currentColor",d:"M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"}),r["default"].createElement("polygon",{fill:"currentColor",points:"45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"})))}:void 0},o,i?{}:{onClick:function(){var e;window.scrollTo({top:0});for(var t=arguments.length,n=new Array(t),r=0;rl)o.f(e,n=r[l++],t[n]);return e}},DbXJ:function(e,t,n){var r=n("ta0t"),o=n("W6X5"),a=n("XXwF"),i=n("Ysk6");function u(e){return r(e)||o(e)||a(e)||i()}e.exports=u},Dkad:function(e,t,n){var r=n("GXoa");r("Int8",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},DwEz:function(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}n.d(t,"a",(function(){return o}))},EJA2:function(e,t,n){},EN7L:function(e,t,n){"use strict";n("M2ND");var r,o=n("OOCw"),a=n("r+6h"),i=n("Hy9b"),u=n("6SQG"),l=n("DS72"),c=n("uF/W"),s=n("CZSf"),f=n("oEsY"),d=n("NWlk"),p=n("7F/w"),h=n("vfR7").codeAt,v=n("B+gL"),m=n("nBeg"),g=n("BC4x"),y=n("uJNS"),b=u.URL,w=g.URLSearchParams,E=g.getState,O=y.set,k=y.getterFor("URL"),S=Math.floor,x=Math.pow,j="Invalid authority",C="Invalid scheme",A="Invalid host",T="Invalid port",P=/[A-Za-z]/,_=/[\d+-.A-Za-z]/,R=/\d/,M=/^(0x|0X)/,N=/^[0-7]+$/,I=/^\d+$/,L=/^[\dA-Fa-f]+$/,F=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,D=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,z=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,B=/[\u0009\u000A\u000D]/g,U=function(e,t){var n,r,o;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1))return A;if(n=W(t.slice(1,-1)),!n)return A;e.host=n}else if(Z(e)){if(t=v(t),F.test(t))return A;if(n=H(t),null===n)return A;e.host=n}else{if(D.test(t))return A;for(n="",r=p(t),o=0;o4)return e;for(n=[],r=0;r1&&"0"==o.charAt(0)&&(a=M.test(o)?16:8,o=o.slice(8==a?1:2)),""===o)i=0;else{if(!(10==a?I:8==a?N:L).test(o))return e;i=parseInt(o,a)}n.push(i)}for(r=0;r=x(256,5-t))return null}else if(i>255)return null;for(u=n.pop(),r=0;r6)return;r=0;while(d()){if(o=null,r>0){if(!("."==d()&&r<4))return;f++}if(!R.test(d()))return;while(R.test(d())){if(a=parseInt(d(),10),null===o)o=a;else{if(0==o)return;o=10*o+a}if(o>255)return;f++}l[c]=256*l[c]+o,r++,2!=r&&4!=r||c++}if(4!=r)return;break}if(":"==d()){if(f++,!d())return}else if(d())return;l[c++]=t}else{if(null!==s)return;f++,c++,s=c}}if(null!==s){i=c-s,c=7;while(0!=c&&i>0)u=l[c],l[c--]=l[s+i-1],l[s+--i]=u}else if(8!=c)return;return l},G=function(e){for(var t=null,n=1,r=null,o=0,a=0;a<8;a++)0!==e[a]?(o>n&&(t=r,n=o),r=null,o=0):(null===r&&(r=a),++o);return o>n&&(t=r,n=o),t},V=function(e){var t,n,r,o;if("number"==typeof e){for(t=[],n=0;n<4;n++)t.unshift(e%256),e=S(e/256);return t.join(".")}if("object"==typeof e){for(t="",r=G(e),n=0;n<8;n++)o&&0===e[n]||(o&&(o=!1),r===n?(t+=n?":":"::",o=!0):(t+=e[n].toString(16),n<7&&(t+=":")));return"["+t+"]"}return e},$={},K=d({},$,{" ":1,'"':1,"<":1,">":1,"`":1}),q=d({},K,{"#":1,"?":1,"{":1,"}":1}),X=d({},q,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Y=function(e,t){var n=h(e,0);return n>32&&n<127&&!f(t,e)?e:encodeURIComponent(e)},Q={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Z=function(e){return f(Q,e.scheme)},J=function(e){return""!=e.username||""!=e.password},ee=function(e){return!e.host||e.cannotBeABaseURL||"file"==e.scheme},te=function(e,t){var n;return 2==e.length&&P.test(e.charAt(0))&&(":"==(n=e.charAt(1))||!t&&"|"==n)},ne=function(e){var t;return e.length>1&&te(e.slice(0,2))&&(2==e.length||"/"===(t=e.charAt(2))||"\\"===t||"?"===t||"#"===t)},re=function(e){var t=e.path,n=t.length;!n||"file"==e.scheme&&1==n&&te(t[0],!0)||t.pop()},oe=function(e){return"."===e||"%2e"===e.toLowerCase()},ae=function(e){return e=e.toLowerCase(),".."===e||"%2e."===e||".%2e"===e||"%2e%2e"===e},ie={},ue={},le={},ce={},se={},fe={},de={},pe={},he={},ve={},me={},ge={},ye={},be={},we={},Ee={},Oe={},ke={},Se={},xe={},je={},Ce=function(e,t,n,o){var a,i,u,l,c=n||ie,s=0,d="",h=!1,v=!1,m=!1;n||(e.scheme="",e.username="",e.password="",e.host=null,e.port=null,e.path=[],e.query=null,e.fragment=null,e.cannotBeABaseURL=!1,t=t.replace(z,"")),t=t.replace(B,""),a=p(t);while(s<=a.length){switch(i=a[s],c){case ie:if(!i||!P.test(i)){if(n)return C;c=le;continue}d+=i.toLowerCase(),c=ue;break;case ue:if(i&&(_.test(i)||"+"==i||"-"==i||"."==i))d+=i.toLowerCase();else{if(":"!=i){if(n)return C;d="",c=le,s=0;continue}if(n&&(Z(e)!=f(Q,d)||"file"==d&&(J(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=d,n)return void(Z(e)&&Q[e.scheme]==e.port&&(e.port=null));d="","file"==e.scheme?c=be:Z(e)&&o&&o.scheme==e.scheme?c=ce:Z(e)?c=pe:"/"==a[s+1]?(c=se,s++):(e.cannotBeABaseURL=!0,e.path.push(""),c=Se)}break;case le:if(!o||o.cannotBeABaseURL&&"#"!=i)return C;if(o.cannotBeABaseURL&&"#"==i){e.scheme=o.scheme,e.path=o.path.slice(),e.query=o.query,e.fragment="",e.cannotBeABaseURL=!0,c=je;break}c="file"==o.scheme?be:fe;continue;case ce:if("/"!=i||"/"!=a[s+1]){c=fe;continue}c=he,s++;break;case se:if("/"==i){c=ve;break}c=ke;continue;case fe:if(e.scheme=o.scheme,i==r)e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,e.path=o.path.slice(),e.query=o.query;else if("/"==i||"\\"==i&&Z(e))c=de;else if("?"==i)e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,e.path=o.path.slice(),e.query="",c=xe;else{if("#"!=i){e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,e.path=o.path.slice(),e.path.pop(),c=ke;continue}e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,e.path=o.path.slice(),e.query=o.query,e.fragment="",c=je}break;case de:if(!Z(e)||"/"!=i&&"\\"!=i){if("/"!=i){e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,c=ke;continue}c=ve}else c=he;break;case pe:if(c=he,"/"!=i||"/"!=d.charAt(s+1))continue;s++;break;case he:if("/"!=i&&"\\"!=i){c=ve;continue}break;case ve:if("@"==i){h&&(d="%40"+d),h=!0,u=p(d);for(var g=0;g65535)return T;e.port=Z(e)&&w===Q[e.scheme]?null:w,d=""}if(n)return;c=Oe;continue}return T}d+=i;break;case be:if(e.scheme="file","/"==i||"\\"==i)c=we;else{if(!o||"file"!=o.scheme){c=ke;continue}if(i==r)e.host=o.host,e.path=o.path.slice(),e.query=o.query;else if("?"==i)e.host=o.host,e.path=o.path.slice(),e.query="",c=xe;else{if("#"!=i){ne(a.slice(s).join(""))||(e.host=o.host,e.path=o.path.slice(),re(e)),c=ke;continue}e.host=o.host,e.path=o.path.slice(),e.query=o.query,e.fragment="",c=je}}break;case we:if("/"==i||"\\"==i){c=Ee;break}o&&"file"==o.scheme&&!ne(a.slice(s).join(""))&&(te(o.path[0],!0)?e.path.push(o.path[0]):e.host=o.host),c=ke;continue;case Ee:if(i==r||"/"==i||"\\"==i||"?"==i||"#"==i){if(!n&&te(d))c=ke;else if(""==d){if(e.host="",n)return;c=Oe}else{if(l=U(e,d),l)return l;if("localhost"==e.host&&(e.host=""),n)return;d="",c=Oe}continue}d+=i;break;case Oe:if(Z(e)){if(c=ke,"/"!=i&&"\\"!=i)continue}else if(n||"?"!=i)if(n||"#"!=i){if(i!=r&&(c=ke,"/"!=i))continue}else e.fragment="",c=je;else e.query="",c=xe;break;case ke:if(i==r||"/"==i||"\\"==i&&Z(e)||!n&&("?"==i||"#"==i)){if(ae(d)?(re(e),"/"==i||"\\"==i&&Z(e)||e.path.push("")):oe(d)?"/"==i||"\\"==i&&Z(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&te(d)&&(e.host&&(e.host=""),d=d.charAt(0)+":"),e.path.push(d)),d="","file"==e.scheme&&(i==r||"?"==i||"#"==i))while(e.path.length>1&&""===e.path[0])e.path.shift();"?"==i?(e.query="",c=xe):"#"==i&&(e.fragment="",c=je)}else d+=Y(i,q);break;case Se:"?"==i?(e.query="",c=xe):"#"==i?(e.fragment="",c=je):i!=r&&(e.path[0]+=Y(i,$));break;case xe:n||"#"!=i?i!=r&&("'"==i&&Z(e)?e.query+="%27":e.query+="#"==i?"%23":Y(i,$)):(e.fragment="",c=je);break;case je:i!=r&&(e.fragment+=Y(i,K));break}s++}},Ae=function(e){var t,n,r=s(this,Ae,"URL"),o=arguments.length>1?arguments[1]:void 0,i=String(e),u=O(r,{type:"URL"});if(void 0!==o)if(o instanceof Ae)t=k(o);else if(n=Ce(t={},String(o)),n)throw TypeError(n);if(n=Ce(u,i,null,t),n)throw TypeError(n);var l=u.searchParams=new w,c=E(l);c.updateSearchParams(u.query),c.updateURL=function(){u.query=String(l)||null},a||(r.href=Pe.call(r),r.origin=_e.call(r),r.protocol=Re.call(r),r.username=Me.call(r),r.password=Ne.call(r),r.host=Ie.call(r),r.hostname=Le.call(r),r.port=Fe.call(r),r.pathname=De.call(r),r.search=ze.call(r),r.searchParams=Be.call(r),r.hash=Ue.call(r))},Te=Ae.prototype,Pe=function(){var e=k(this),t=e.scheme,n=e.username,r=e.password,o=e.host,a=e.port,i=e.path,u=e.query,l=e.fragment,c=t+":";return null!==o?(c+="//",J(e)&&(c+=n+(r?":"+r:"")+"@"),c+=V(o),null!==a&&(c+=":"+a)):"file"==t&&(c+="//"),c+=e.cannotBeABaseURL?i[0]:i.length?"/"+i.join("/"):"",null!==u&&(c+="?"+u),null!==l&&(c+="#"+l),c},_e=function(){var e=k(this),t=e.scheme,n=e.port;if("blob"==t)try{return new URL(t.path[0]).origin}catch(r){return"null"}return"file"!=t&&Z(e)?t+"://"+V(e.host)+(null!==n?":"+n:""):"null"},Re=function(){return k(this).scheme+":"},Me=function(){return k(this).username},Ne=function(){return k(this).password},Ie=function(){var e=k(this),t=e.host,n=e.port;return null===t?"":null===n?V(t):V(t)+":"+n},Le=function(){var e=k(this).host;return null===e?"":V(e)},Fe=function(){var e=k(this).port;return null===e?"":String(e)},De=function(){var e=k(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},ze=function(){var e=k(this).query;return e?"?"+e:""},Be=function(){return k(this).searchParams},Ue=function(){var e=k(this).fragment;return e?"#"+e:""},He=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(a&&l(Te,{href:He(Pe,(function(e){var t=k(this),n=String(e),r=Ce(t,n);if(r)throw TypeError(r);E(t.searchParams).updateSearchParams(t.query)})),origin:He(_e),protocol:He(Re,(function(e){var t=k(this);Ce(t,String(e)+":",ie)})),username:He(Me,(function(e){var t=k(this),n=p(String(e));if(!ee(t)){t.username="";for(var r=0;r2?arguments[2]:void 0)(e,n);return n.set(e,t(u,e,n)),n}})},"F/PV":function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},F4XJ:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AnchorLink",{enumerable:!0,get:function(){return i["default"]}}),Object.defineProperty(t,"Link",{enumerable:!0,get:function(){return o["default"]}}),Object.defineProperty(t,"NavLink",{enumerable:!0,get:function(){return a["default"]}}),Object.defineProperty(t,"context",{enumerable:!0,get:function(){return r["default"]}}),Object.defineProperty(t,"getDemoUrl",{enumerable:!0,get:function(){return p.getDemoUrl}}),Object.defineProperty(t,"useApiData",{enumerable:!0,get:function(){return h["default"]}}),Object.defineProperty(t,"useCodeSandbox",{enumerable:!0,get:function(){return f["default"]}}),Object.defineProperty(t,"useCopy",{enumerable:!0,get:function(){return l["default"]}}),Object.defineProperty(t,"useDemoUrl",{enumerable:!0,get:function(){return p["default"]}}),Object.defineProperty(t,"useLocaleProps",{enumerable:!0,get:function(){return d["default"]}}),Object.defineProperty(t,"useMotions",{enumerable:!0,get:function(){return s["default"]}}),Object.defineProperty(t,"usePrefersColor",{enumerable:!0,get:function(){return m["default"]}}),Object.defineProperty(t,"useRiddle",{enumerable:!0,get:function(){return c["default"]}}),Object.defineProperty(t,"useSearch",{enumerable:!0,get:function(){return u["default"]}}),Object.defineProperty(t,"useTSPlaygroundUrl",{enumerable:!0,get:function(){return v["default"]}});var r=b(n("Q2d3")),o=b(n("CxkM")),a=b(n("Td1h")),i=b(n("vJPF")),u=b(n("NDcS")),l=b(n("6+9U")),c=b(n("3EuP")),s=b(n("OaOe")),f=b(n("WYcA")),d=b(n("Or3X")),p=y(n("vIBE")),h=b(n("AWMC")),v=b(n("iwOk")),m=b(n("ucOr"));function g(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(g=function(e){return e?n:t})(e)}function y(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var n=g(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}return r["default"]=e,n&&n.set(e,r),r}function b(e){return e&&e.__esModule?e:{default:e}}},FHCv:function(e,t,n){var r=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,o="function"===typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function l(e,t,n,r){var o=t&&t.prototype instanceof v?t:v,a=Object.create(o.prototype),i=new A(r||[]);return a._invoke=S(e,n,i),a}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(r){return{type:"throw",arg:r}}}e.wrap=l;var s="suspendedStart",f="suspendedYield",d="executing",p="completed",h={};function v(){}function m(){}function g(){}var y={};y[a]=function(){return this};var b=Object.getPrototypeOf,w=b&&b(b(T([])));w&&w!==n&&r.call(w,a)&&(y=w);var E=g.prototype=v.prototype=Object.create(y);function O(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function k(e,t){function n(o,a,i,u){var l=c(e[o],e,a);if("throw"!==l.type){var s=l.arg,f=s.value;return f&&"object"===typeof f&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,i,u)}),(function(e){n("throw",e,i,u)})):t.resolve(f).then((function(e){s.value=e,i(s)}),(function(e){return n("throw",e,i,u)}))}u(l.arg)}var o;function a(e,r){function a(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(a,a):a()}this._invoke=a}function S(e,t,n){var r=s;return function(o,a){if(r===d)throw new Error("Generator is already running");if(r===p){if("throw"===o)throw a;return P()}n.method=o,n.arg=a;while(1){var i=n.delegate;if(i){var u=x(i,n);if(u){if(u===h)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===s)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var l=c(e,t,n);if("normal"===l.type){if(r=n.done?p:f,l.arg===h)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=p,n.method="throw",n.arg=l.arg)}}}function x(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator["return"]&&(n.method="return",n.arg=t,x(e,n),"throw"===n.method))return h;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var o=c(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,h;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,h):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,h)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function T(e){if(e){var n=e[a];if(n)return n.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){while(++o=0;--a){var i=this.tryEntries[a],u=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(l&&c){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;C(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:T(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),h}},e}(e.exports);try{regeneratorRuntime=r}catch(o){Function("r","regeneratorRuntime = r")(r)}},FaUj:function(e,t,n){"use strict";var r=n("f/UK");t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},Fdmm:function(e,t,n){"use strict";n.r(t);var r=n("ahKI"),o=n.n(r),a=n("F4XJ"),i=n("PAHk"),u=o.a.memo((e=>{e.demos;return o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:"markdown"},o.a.createElement("h1",{id:"\u6027\u80fd\u4f18\u5316"},o.a.createElement(a["AnchorLink"],{to:"#\u6027\u80fd\u4f18\u5316","aria-hidden":"true",tabIndex:-1},o.a.createElement("span",{className:"icon icon-link"})),"\u6027\u80fd\u4f18\u5316"),o.a.createElement("p",null,o.a.createElement("code",null,"createStore")," \u6216 ",o.a.createElement("code",null,"createGlobalStore")," \u7684\u8fd4\u56de\u503c ",o.a.createElement("code",null,"useXxxStore")," \u652f\u6301\u4f20\u5165\u4e00\u4e2a ",o.a.createElement("code",null,"depsFn")," \u51fd\u6570\uff0c\u6765\u7cbe\u786e\u63a7\u5236\u8ba2\u9605\u7684\u5b57\u6bb5\uff1a"),o.a.createElement(i["a"],{code:"const counter = useCounterStore(store => [store.count, store.x.y])",lang:"jsx"}),o.a.createElement("p",null,"\u8fd9\u548c ",o.a.createElement("code",null,"useMemo")," \u3001 ",o.a.createElement("code",null,"useEffect")," \u7684 ",o.a.createElement("code",null,"deps")," \u975e\u5e38\u76f8\u4f3c\uff0c\u4f46\u662f\uff0c ",o.a.createElement("code",null,"useStore")," \u7684 ",o.a.createElement("code",null,"depsFn")," \u53c2\u6570\u662f\u4e00\u4e2a",o.a.createElement("strong",null,"\u51fd\u6570"),"\u3002"),o.a.createElement("p",null,"\u6b64\u5916\uff0c\u6211\u4eec\u5efa\u8bae\u5bf9\u4e00\u4e2a\u5e9e\u5927\u7684 store \u8fdb\u884c\u62c6\u5206\uff0c\u8fd9\u6837\u4e0d\u4ec5\u4ee3\u7801\u66f4\u6613\u4e8e\u7ef4\u62a4\uff0c\u6027\u80fd\u4e5f\u4f1a\u6709\u6240\u6539\u5584\u3002")))}));t["default"]=e=>{var t=o.a.useContext(a["context"]),n=t.demos;return o.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&a["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),o.a.createElement(u,{demos:n})}},FfOG:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}));var r=n("ptaF"),o={basename:"/"};window.routerBase&&(o.basename=window.routerBase);var a=Object({NODE_ENV:"production"}).__IS_SERVER?null:Object(r["a"])(o),i=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e||(a=Object(r["a"])(o)),a}},Fk8h:function(e,t,n){"use strict";n.r(t);var r=n("ahKI"),o=n.n(r),a=n("F4XJ"),i=n("PAHk"),u=o.a.memo((e=>{e.demos;return o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:"markdown"},o.a.createElement("h1",{id:"how-to-migrate-from-v1-to-v2"},o.a.createElement(a["AnchorLink"],{to:"#how-to-migrate-from-v1-to-v2","aria-hidden":"true",tabIndex:-1},o.a.createElement("span",{className:"icon icon-link"})),"How to migrate from v1 to v2"),o.a.createElement("p",null,"First upgrade the npm package to v2, for example:"),o.a.createElement(i["a"],{code:"npm install --save hox@latest",lang:"shell"}),o.a.createElement("p",null,"##createModel"),o.a.createElement("p",null,o.a.createElement("code",null,"createModel")," corresponds to ",o.a.createElement("code",null,"createGlobalStore")," in v2, so you need to batch replace ",o.a.createElement("code",null,"createModel")," with ",o.a.createElement("code",null,"createGlobalStore"),":"),o.a.createElement(i["a"],{code:"createModel(() => {\n // ...\n})\n\n// \u2b07\ufe0f\n\ncreateGlobalStore(() => {\n // ...\n})",lang:"js"}),o.a.createElement("p",null,"At the same time, ",o.a.createElement("code",null,"createGlobalStore")," does not support the second extra parameter (in the previous ",o.a.createElement("code",null,"createModel"),", this parameter will be passed to the Hook function), but don't worry, you can directly wrap a layer of anonymous function to achieve the same Effect:"),o.a.createElement(i["a"],{code:"function useCounter(initial) {\n // ...\n}\ncreateModel(useCounter, 5)\n\n// \u2b07\ufe0f\n\nfunction useCounter(initial) {\n // ...\n}\ncreateGlobalStore(() => useCounter(5))",lang:"js"}),o.a.createElement("h2",{id:"hoxroot"},o.a.createElement(a["AnchorLink"],{to:"#hoxroot","aria-hidden":"true",tabIndex:-1},o.a.createElement("span",{className:"icon icon-link"})),"HoxRoot"),o.a.createElement("p",null,"In the v2 version of hox, the global Store needs to be collected and executed through the ",o.a.createElement("code",null,"HoxRoot")," component, so you need to wrap a ",o.a.createElement("code",null,"HoxRoot")," in the outermost layer of the entire application:"),o.a.createElement(i["a"],{code:"\n \n",lang:"jsx"}),o.a.createElement("p",null,"It should be noted that on the same browser page, only one HoxRoot can be rendered at the same time."),o.a.createElement("h2",{id:"uselazymodel"},o.a.createElement(a["AnchorLink"],{to:"#uselazymodel","aria-hidden":"true",tabIndex:-1},o.a.createElement("span",{className:"icon icon-link"})),"useLazyModel"),o.a.createElement("p",null,o.a.createElement("code",null,"useLazyModel")," has been removed in hox v2, and there is currently no equivalent function, in general, you can achieve the same purpose with a local Store."),o.a.createElement("h2",{id:"finish"},o.a.createElement(a["AnchorLink"],{to:"#finish","aria-hidden":"true",tabIndex:-1},o.a.createElement("span",{className:"icon icon-link"})),"Finish"),o.a.createElement("p",null,"Now you can start the project and try it out. If you encounter strange problems after following the above process, you can submit ",o.a.createElement(a["Link"],{to:"https://github.com/umijs/hox/issues"},"issue")," in the GitHub repository .")))}));t["default"]=e=>{var t=o.a.useContext(a["context"]),n=t.demos;return o.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&a["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),o.a.createElement(u,{demos:n})}},FlI8:function(e,t,n){var r=n("OOCw"),o=n("7F/w"),a=n("eW2S"),i=!a((function(e){Array.from(e)}));r({target:"Array",stat:!0,forced:i},{from:o})},Ft2i:function(e,t,n){"use strict";var r=n("OOCw"),o=n("lkgX"),a=n("OdMF"),i=n("h+/6"),u=n("rUEg"),l=[],c=l.sort,s=i((function(){l.sort(void 0)})),f=i((function(){l.sort(null)})),d=u("sort"),p=s||!f||!d;r({target:"Array",proto:!0,forced:p},{sort:function(e){return void 0===e?c.call(a(this)):c.call(a(this),o(e))}})},G2F8:function(e,t,n){var r=n("ANLo"),o=n("upgS");e.exports=function(e){if(void 0===e)return 0;var t=r(e),n=o(t);if(t!==n)throw RangeError("Wrong length or index");return n}},G51k:function(e,t,n){"use strict";var r=n("OOCw"),o=n("qyeh"),a=n("ppRt");r({target:"Set",proto:!0,real:!0,forced:o},{addAll:function(){return a.apply(this,arguments)}})},G6hb:function(e,t,n){var r=n("OOCw"),o=n("sErw"),a=n("x+sk"),i=n("oEsY"),u=n("h+/6"),l=n("0JbB"),c=n("6ssM"),s=n("zesz"),f=n("ZVkV");function d(e,t,n){var r,u,p=arguments.length<4?e:arguments[3],h=c.f(o(e),t);if(!h){if(a(u=s(e)))return d(u,t,n,p);h=f(0)}if(i(h,"value")){if(!1===h.writable||!a(p))return!1;if(r=c.f(p,t)){if(r.get||r.set||!1===r.writable)return!1;r.value=n,l.f(p,t,r)}else l.f(p,t,f(0,n));return!0}return void 0!==h.set&&(h.set.call(p,n),!0)}var p=u((function(){var e=l.f({},"a",{configurable:!0});return!1!==Reflect.set(s(e),"a",1,e)}));r({target:"Reflect",stat:!0,forced:p},{set:d})},G7Wg:function(e,t,n){"use strict";var r=n("OOCw"),o=n("qyeh"),a=n("eyaU"),i=n("sErw"),u=n("lkgX"),l=n("ZT9G"),c=n("uZx/");r({target:"Set",proto:!0,real:!0,forced:o},{difference:function(e){var t=i(this),n=new(l(t,a("Set")))(t),r=u(n["delete"]);return c(e,(function(e){r.call(n,e)})),n}})},GDDI:function(e,t,n){var r=n("MZA9"),o=n("KUi+"),a=n("3Hes"),i=a("toPrimitive"),u=Date.prototype;i in u||r(u,i,o)},GXoa:function(e,t,n){"use strict";var r=n("OOCw"),o=n("6SQG"),a=n("r+6h"),i=n("vMeL"),u=n("g0pg"),l=n("xy/A"),c=n("CZSf"),s=n("ZVkV"),f=n("MZA9"),d=n("upgS"),p=n("G2F8"),h=n("vViN"),v=n("JSMs"),m=n("oEsY"),g=n("elB0"),y=n("x+sk"),b=n("QWtl"),w=n("d8EH"),E=n("lFeU").f,O=n("N0ls"),k=n("M+Sl").forEach,S=n("ct0+"),x=n("0JbB"),j=n("6ssM"),C=n("uJNS"),A=n("aRba"),T=C.get,P=C.set,_=x.f,R=j.f,M=Math.round,N=o.RangeError,I=l.ArrayBuffer,L=l.DataView,F=u.NATIVE_ARRAY_BUFFER_VIEWS,D=u.TYPED_ARRAY_TAG,z=u.TypedArray,B=u.TypedArrayPrototype,U=u.aTypedArrayConstructor,H=u.isTypedArray,W="BYTES_PER_ELEMENT",G="Wrong length",V=function(e,t){var n=0,r=t.length,o=new(U(e))(r);while(r>n)o[n]=t[n++];return o},$=function(e,t){_(e,t,{get:function(){return T(this)[t]}})},K=function(e){var t;return e instanceof I||"ArrayBuffer"==(t=g(e))||"SharedArrayBuffer"==t},q=function(e,t){return H(e)&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},X=function(e,t){return q(e,t=v(t,!0))?s(2,e[t]):R(e,t)},Y=function(e,t,n){return!(q(e,t=v(t,!0))&&y(n)&&m(n,"value"))||m(n,"get")||m(n,"set")||n.configurable||m(n,"writable")&&!n.writable||m(n,"enumerable")&&!n.enumerable?_(e,t,n):(e[t]=n.value,e)};a?(F||(j.f=X,x.f=Y,$(B,"buffer"),$(B,"byteOffset"),$(B,"byteLength"),$(B,"length")),r({target:"Object",stat:!0,forced:!F},{getOwnPropertyDescriptor:X,defineProperty:Y}),e.exports=function(e,t,n){var a=e.match(/\d+$/)[0]/8,u=e+(n?"Clamped":"")+"Array",l="get"+e,s="set"+e,v=o[u],m=v,g=m&&m.prototype,x={},j=function(e,t){var n=T(e);return n.view[l](t*a+n.byteOffset,!0)},C=function(e,t,r){var o=T(e);n&&(r=(r=M(r))<0?0:r>255?255:255&r),o.view[s](t*a+o.byteOffset,r,!0)},R=function(e,t){_(e,t,{get:function(){return j(this,t)},set:function(e){return C(this,t,e)},enumerable:!0})};F?i&&(m=t((function(e,t,n,r){return c(e,m,u),A(function(){return y(t)?K(t)?void 0!==r?new v(t,h(n,a),r):void 0!==n?new v(t,h(n,a)):new v(t):H(t)?V(m,t):O.call(m,t):new v(p(t))}(),e,m)})),w&&w(m,z),k(E(v),(function(e){e in m||f(m,e,v[e])})),m.prototype=g):(m=t((function(e,t,n,r){c(e,m,u);var o,i,l,s=0,f=0;if(y(t)){if(!K(t))return H(t)?V(m,t):O.call(m,t);o=t,f=h(n,a);var v=t.byteLength;if(void 0===r){if(v%a)throw N(G);if(i=v-f,i<0)throw N(G)}else if(i=d(r)*a,i+f>v)throw N(G);l=i/a}else l=p(t),i=l*a,o=new I(i);P(e,{buffer:o,byteOffset:f,byteLength:i,length:l,view:new L(o)});while(s2?o.a.createElement("select",{value:l,onChange:function(e){return i["a"].push(f(e.target.value))}},c.map((function(e){return o.a.createElement("option",{value:e.name,key:e.name},e.label)}))):o.a.createElement(a["Link"],{to:f(s.name)},s.label)):null}),l=u,c=(n("DMW9"),function(e){var t=e.onMobileMenuClick,n=e.navPrefix,i=e.location,u=e.darkPrefix,c=Object(r["useContext"])(a["context"]),s=c.base,f=c.config,d=f.mode,p=f.title,h=f.logo,v=c.nav;return o.a.createElement("div",{className:"__dumi-default-navbar","data-mode":d},o.a.createElement("button",{className:"__dumi-default-navbar-toggle",onClick:t}),o.a.createElement(a["Link"],{className:"__dumi-default-navbar-logo",style:{backgroundImage:h&&"url('".concat(h,"')")},to:s,"data-plaintext":!1===h||void 0},p),o.a.createElement("nav",null,n,v.map((function(e){var t,n=Boolean(null===(t=e.children)||void 0===t?void 0:t.length)&&o.a.createElement("ul",null,e.children.map((function(e){return o.a.createElement("li",{key:e.path},o.a.createElement(a["NavLink"],{to:e.path},e.title))})));return o.a.createElement("span",{key:e.title||e.path},e.path?o.a.createElement(a["NavLink"],{to:e.path,key:e.path},e.title):e.title,n)})),o.a.createElement("div",{className:"__dumi-default-navbar-tool"},o.a.createElement(l,{location:i}),u)))}),s=c,f=(n("f8YS"),["slugs"]);function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function h(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}var v=function(e){var t=e.slugs,n=p(e,f);return o.a.createElement("ul",d({role:"slug-list"},n),t.filter((function(e){var t=e.depth;return t>1&&t<4})).map((function(e){return o.a.createElement("li",{key:e.heading,title:e.value,"data-depth":e.depth},o.a.createElement(a["AnchorLink"],{to:"#".concat(e.heading)},o.a.createElement("span",null,e.value)))})))},m=v,g=(n("8ZJW"),function(e){var t=e.mobileMenuCollapsed,n=e.location,i=e.darkPrefix,u=Object(r["useContext"])(a["context"]),c=u.config,s=c.logo,f=c.title,d=c.description,p=c.mode,h=c.repository.url,v=u.menu,g=u.nav,y=u.base,b=u.meta,w=Boolean((b.hero||b.features||b.gapless)&&"site"===p)||!1===b.sidemenu||void 0;return o.a.createElement("div",{className:"__dumi-default-menu","data-mode":p,"data-hidden":w,"data-mobile-show":!t||void 0},o.a.createElement("div",{className:"__dumi-default-menu-inner"},o.a.createElement("div",{className:"__dumi-default-menu-header"},o.a.createElement(a["Link"],{to:y,className:"__dumi-default-menu-logo",style:{backgroundImage:s&&"url('".concat(s,"')")}}),o.a.createElement("h1",null,f),o.a.createElement("p",null,d),/github\.com/.test(h)&&"doc"===p&&o.a.createElement("p",null,o.a.createElement("object",{type:"image/svg+xml",data:"https://img.shields.io/github/stars".concat(h.match(/((\/[^\/]+){2})$/)[1],"?style=social")}))),o.a.createElement("div",{className:"__dumi-default-menu-mobile-area"},!!g.length&&o.a.createElement("ul",{className:"__dumi-default-menu-nav-list"},g.map((function(e){var t,n=Boolean(null===(t=e.children)||void 0===t?void 0:t.length)&&o.a.createElement("ul",null,e.children.map((function(e){return o.a.createElement("li",{key:e.path||e.title},o.a.createElement(a["NavLink"],{to:e.path},e.title))})));return o.a.createElement("li",{key:e.path||e.title},e.path?o.a.createElement(a["NavLink"],{to:e.path},e.title):e.title,n)}))),o.a.createElement(l,{location:n}),i),o.a.createElement("ul",{className:"__dumi-default-menu-list"},!w&&v.map((function(e){var t,r=Boolean(null===(t=b.slugs)||void 0===t?void 0:t.length),i=e.children&&Boolean(e.children.length),u="menu"===b.toc&&!i&&r&&e.path===n.pathname.replace(/([^^])\/$/,"$1"),l=i?e.children.map((function(e){return e.path})):[e.path,n.pathname.startsWith("".concat(e.path,"/"))&&b.title===e.title?n.pathname:null];return o.a.createElement("li",{key:e.path||e.title},o.a.createElement(a["NavLink"],{to:e.path,isActive:function(){return l.includes(n.pathname)}},e.title),Boolean(e.children&&e.children.length)&&o.a.createElement("ul",null,e.children.map((function(e){return o.a.createElement("li",{key:e.path},o.a.createElement(a["NavLink"],{to:e.path,exact:!0},o.a.createElement("span",null,e.title)),Boolean("menu"===b.toc&&"undefined"!==typeof window&&e.path===n.pathname&&r)&&o.a.createElement(m,{slugs:b.slugs}))}))),u&&o.a.createElement(m,{slugs:b.slugs}))})))))}),y=g;n("EJA2");function b(){return b=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&c.map((function(e){var t;return o.a.createElement("li",{key:e.path,onClick:function(){return i("")}},o.a.createElement(a["AnchorLink"],{to:e.path},(null===(t=e.parent)||void 0===t?void 0:t.title)&&o.a.createElement("span",null,e.parent.title),j(n,e.title)))})),0===c.length&&n&&o.a.createElement("li",{style:{textAlign:"center"}},p)))};n("+AQ8");function A(e,t){return M(e)||R(e,t)||P(e,t)||T()}function T(){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 P(e,t){if(e){if("string"===typeof e)return _(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(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_(e,t):void 0}}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);na)o.push(arguments[a++]);if(r=t,(p(t)||void 0!==e)&&!ue(e))return d(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!ue(t))return t}),o[1]=t,K.apply(null,o)}})}$[U][H]||C($[U],H,$[U].valueOf),L($,B),_[z]=!0},Gkaq:function(e,t,n){"use strict";n.r(t);var r=n("ahKI"),o=n.n(r),a=n("F4XJ"),i=n("PAHk"),u=o.a.memo((e=>{e.demos;return o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:"markdown"},o.a.createElement("h1",{id:"quick-start"},o.a.createElement(a["AnchorLink"],{to:"#quick-start","aria-hidden":"true",tabIndex:-1},o.a.createElement("span",{className:"icon icon-link"})),"Quick Start"),o.a.createElement("h2",{id:"create-a-store"},o.a.createElement(a["AnchorLink"],{to:"#create-a-store","aria-hidden":"true",tabIndex:-1},o.a.createElement("span",{className:"icon icon-link"})),"Create a Store"),o.a.createElement("p",null,"In hox, any custom Hook, after being packaged by ",o.a.createElement("code",null,"createStore"),", becomes a persistent state that can be shared between components."),o.a.createElement(i["a"],{code:"import { useState } from 'react'\nimport { createStore } from 'hox'\n\nexport const [useTaskStore, TaskStoreProvider] = createStore(() => {\n const [tasks, setTasks] = useState([])\n\n function addTask(task) {\n setTasks(v => [...v, task])\n }\n\n function finishTask(task) {\n setTasks(v => v.filter(t => t !== task))\n }\n\n return {\n tasks,\n addTask,\n finishTask,\n }\n})",lang:"jsx"}),o.a.createElement("p",null,o.a.createElement("code",null,"createStore")," will return an array with two elements in it, you can deconstruct them through ES6's array destructuring syntax, and take them into names that conform to business logic, such as ",o.a.createElement("code",null,"useTaskStore")," and ",o.a.createElement("code",null,"TaskStoreProvider")," above."),o.a.createElement("p",null,o.a.createElement("code",null,"TaskStoreProvider")," is a state container, and its bottom layer depends on the React Context so you need to inject it into the component tree, for example:"),o.a.createElement(i["a"],{code:"\n
\n \n \n \n \n \n \n \n",lang:"jsx"}),o.a.createElement("p",null,"Next, you can use ",o.a.createElement("code",null,"useTaskStore")," in the ",o.a.createElement("code",null,"TaskList")," component to subscribe and consume data in the store:"),o.a.createElement(i["a"],{code:"function TaskList() {\n const { tasks } = useTaskStore()\n return (\n <>\n {tasks.map(task => (\n \n ))}\n \n )\n}",lang:"jsx"}),o.a.createElement("p",null,"Every time the TaskStore is updated, the TaskList will automatically re-render and get the latest ",o.a.createElement("code",null,"tasks")," data."),o.a.createElement("blockquote",null,o.a.createElement("p",null,o.a.createElement("code",null,"useStore")," is a React Hook, so please follow React's ",o.a.createElement(a["Link"],{to:"https://reactjs.org/docs/hooks-rules.html"},"rules of hooks")," when using it.")),o.a.createElement("p",null,"We recommend names like ",o.a.createElement("code",null,"useXxxStore")," and ",o.a.createElement("code",null,"XxxStoreProvider")," because they are more explicit, but if you think they are too long, consider abbreviating them to ",o.a.createElement("code",null,"useXxx")," and ",o.a.createElement("code",null,"XxxProvider"),"."),o.a.createElement("h2",{id:"the-context-and-multiple-instances-of-store"},o.a.createElement(a["AnchorLink"],{to:"#the-context-and-multiple-instances-of-store","aria-hidden":"true",tabIndex:-1},o.a.createElement("span",{className:"icon icon-link"})),"The Context and Multiple Instances of Store"),o.a.createElement("p",null,"It should be noted that only the internal nodes of ",o.a.createElement("code",null,"CounterStoreProvider")," can get its context, so ",o.a.createElement("code",null,"useTaskStore")," cannot be called in the ",o.a.createElement("code",null,"Header")," component. If you are familiar with React's Context feature, this is well understood."),o.a.createElement(i["a"],{code:"\n
\n \n ...\n \n",lang:"jsx"}),o.a.createElement("p",null,"Each time a ",o.a.createElement("code",null,"TaskStoreProvider")," is rendered, a corresponding store instance will be created. Based on this feature, you can render multiple StoreProviders on the page to achieve multiple instances, and automatically obtain them in the child node components according to the context of the Context To the corresponding store instance:"),o.a.createElement(i["a"],{code:"\n \n ...\n \n\n\n \n ...\n \n",lang:"jsx"}),o.a.createElement("p",null,"Between different StoreProvider instances, the data is completely independent and isolated, just like multiple instances of the same React component."),o.a.createElement("p",null,"You can even render another ",o.a.createElement("code",null,"TaskStoreProvider")," in the ",o.a.createElement("code",null,"TaskStoreProvider")," child node. According to the characteristics of the Context, the ",o.a.createElement("code",null,"TaskList")," component will automatically find the nearest parent Provider:"),o.a.createElement(i["a"],{code:"\n ...\n \n ...\n \n",lang:"jsx"}),o.a.createElement("p",null,"Of course, this is generally not necessary."),o.a.createElement("h2",{id:"the-dependencies-between-stores"},o.a.createElement(a["AnchorLink"],{to:"#the-dependencies-between-stores","aria-hidden":"true",tabIndex:-1},o.a.createElement("span",{className:"icon icon-link"})),"The Dependencies Between Stores"),o.a.createElement("p",null,"Although you can still design the store according to the traditional single data source idea, we recommend splitting the store into multiple small parts, so it is inevitable that we need to deal with dependencies between multiple stores, such as tasks The list module ",o.a.createElement("code",null,"task")," depends on the account module ",o.a.createElement("code",null,"account"),"."),o.a.createElement("p",null,"In hox, handling dependencies between modules is simple and natural: you can use ",o.a.createElement("code",null,"useXXXStore")," directly in one store to fetch another store and subscribe to its updates, just as you would in a component."),o.a.createElement("blockquote",null,o.a.createElement("p",null,"Warning: Beware of circular dependencies!")),o.a.createElement(i["a"],{code:"import { useAccountStore } from './account-store'\n\nexport const [useTaskStore, TaskStoreProvider] = createStore(() => {\n // ...\n const { user } = useAccountStore()\n\n function addTask(taskName) {\n setTasks(v => [\n ...v,\n {\n name: taskName,\n assignee: user.id,\n },\n ])\n }\n\n // ...\n})",lang:"jsx"}),o.a.createElement("h2",{id:"pass-additional-parameters-to-storeprovider"},o.a.createElement(a["AnchorLink"],{to:"#pass-additional-parameters-to-storeprovider","aria-hidden":"true",tabIndex:-1},o.a.createElement("span",{className:"icon icon-link"})),"Pass additional parameters to StoreProvider"),o.a.createElement("p",null,"You can pass additional parameters to the StoreProvider through ",o.a.createElement("code",null,"props"),", and then in the store's Hook, get it through the first parameter ",o.a.createElement("code",null,"props"),", just like writing React components:"),o.a.createElement(i["a"],{code:"{/* ... */}",lang:"jsx"}),o.a.createElement(i["a"],{code:"type Props = {\n initialCount: number,\n}\n\nconst [useCounterStore, CounterStoreProvider] = createStore(function (\n props: Props\n) {\n const [count, setCount] = useState(props.initialCount)\n return { count, setCount }\n})",lang:"jsx"}),o.a.createElement("h2",{id:"global-store"},o.a.createElement(a["AnchorLink"],{to:"#global-store","aria-hidden":"true",tabIndex:-1},o.a.createElement("span",{className:"icon icon-link"})),"Global Store"),o.a.createElement("p",null,"In fact, not all stores need to have a scope and need to support multiple instances. In a real project, most stores may be global, and if you manually add StoreProvider every time, you may feel collapse:"),o.a.createElement(i["a"],{code:"\n \n \n \n \n \n \n \n",lang:"jsx"}),o.a.createElement("p",null,"Therefore, hox provides another type of store: the global store."),o.a.createElement("p",null,"You can create a global ",o.a.createElement("code",null,"store")," with ",o.a.createElement("code",null,"createGlobalStore"),":"),o.a.createElement(i["a"],{code:"import { createGlobalStore } from 'hox'\n\nconst [useAccountStore, getAccountStore] = createGlobalStore(() => {\n // ...\n})",lang:"js"}),o.a.createElement("p",null,"Like ",o.a.createElement("code",null,"createStore"),", ",o.a.createElement("code",null,"createGlobalStore")," returns an array:"),o.a.createElement("p",null,"The first element is the Hook function used to subscribe to the store. Its usage will not be introduced here, it is the same as the ordinary store."),o.a.createElement("p",null,"The second element is somewhat different. It is a static getter function ",o.a.createElement("code",null,"getXxxStore"),", which will be sold here first, and will be introduced in detail below."),o.a.createElement("p",null,"It can be found that there is no corresponding StoreProvider component for the global store, so you do not need to manually add a layer of Provider every time you create a store. However, in order for the global store to register properly, you need to wrap the entire React application with ",o.a.createElement("code",null,"HoxRoot")," in the outermost layer:"),o.a.createElement(i["a"],{code:"import { HoxRoot } from 'hox'\n\nReactDOM.render(\n \n \n ,\n domContainer\n)",lang:"jsx"}),o.a.createElement("p",null,"You can think of ",o.a.createElement("code",null,"HoxRoot")," as a unified StoreProvider for all global stores, through which all global stores can be registered at one time."),o.a.createElement("p",null,"Going back to the ",o.a.createElement("code",null,"getXxxStore")," function just mentioned, its function is to read the current latest value of the store at one time without triggering a continuous subscription, because it is not a Hook, so it does not need to be in the React component rendering function call, you can call it anywhere, anytime:"),o.a.createElement(i["a"],{code:"export function log(message) {\n const { user } = getAccountStore()\n report.requestApi({\n message,\n userId: user.id,\n })\n}",lang:"js"})))}));t["default"]=e=>{var t=o.a.useContext(a["context"]),n=t.demos;return o.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&a["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),o.a.createElement(u,{demos:n})}},GnHn:function(e,t,n){"use strict";var r=n("QkOx"),o=n("sErw"),a=n("z43i"),i=n("1wx2"),u=n("OR72");r("search",1,(function(e,t,n){return[function(t){var n=a(this),r=void 0==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var a=o(e),l=String(this),c=a.lastIndex;i(c,0)||(a.lastIndex=0);var s=u(a,l);return i(a.lastIndex,c)||(a.lastIndex=c),null===s?-1:s.index}]}))},Gs6S:function(e,t,n){"use strict";var r=n("OOCw"),o=n("qyeh"),a=n("sErw"),i=n("R8Xy"),u=n("uZx/");r({target:"Set",proto:!0,real:!0,forced:o},{join:function(e){var t=a(this),n=i(t),r=void 0===e?",":String(e),o=[];return u(n,o.push,o,!1,!0),o.join(r)}})},HRbj:function(e,t,n){"use strict";var r=n("lkgX"),o=n("v3z7"),a=n("uZx/");e.exports=function(e){var t,n,i,u,l=arguments.length,c=l>1?arguments[1]:void 0;return r(this),t=void 0!==c,t&&r(c),void 0==e?new this:(n=[],t?(i=0,u=o(c,l>2?arguments[2]:void 0,2),a(e,(function(e){n.push(u(e,i++))}))):a(e,n.push,n),new this(n))}},HVkW:function(e,t,n){"use strict";var r=n("OOCw"),o=n("r+6h"),a=n("ct0+"),i=n("lkgX"),u=n("sErw"),l=n("x+sk"),c=n("CZSf"),s=n("0JbB").f,f=n("MZA9"),d=n("TxBV"),p=n("mxPn"),h=n("uZx/"),v=n("Cqy2"),m=n("3Hes"),g=n("uJNS"),y=m("observable"),b=g.get,w=g.set,E=function(e){return null==e?void 0:i(e)},O=function(e){var t=e.cleanup;if(t){e.cleanup=void 0;try{t()}catch(n){v(n)}}},k=function(e){return void 0===e.observer},S=function(e,t){if(!o){e.closed=!0;var n=t.subscriptionObserver;n&&(n.closed=!0)}t.observer=void 0},x=function(e,t){var n,r=w(this,{cleanup:void 0,observer:u(e),subscriptionObserver:void 0});o||(this.closed=!1);try{(n=E(e.start))&&n.call(e,this)}catch(s){v(s)}if(!k(r)){var a=r.subscriptionObserver=new j(this);try{var l=t(a),c=l;null!=l&&(r.cleanup="function"===typeof l.unsubscribe?function(){c.unsubscribe()}:i(l))}catch(s){return void a.error(s)}k(r)&&O(r)}};x.prototype=d({},{unsubscribe:function(){var e=b(this);k(e)||(S(this,e),O(e))}}),o&&s(x.prototype,"closed",{configurable:!0,get:function(){return k(b(this))}});var j=function(e){w(this,{subscription:e}),o||(this.closed=!1)};j.prototype=d({},{next:function(e){var t=b(b(this).subscription);if(!k(t)){var n=t.observer;try{var r=E(n.next);r&&r.call(n,e)}catch(o){v(o)}}},error:function(e){var t=b(this).subscription,n=b(t);if(!k(n)){var r=n.observer;S(t,n);try{var o=E(r.error);o?o.call(r,e):v(e)}catch(a){v(a)}O(n)}},complete:function(){var e=b(this).subscription,t=b(e);if(!k(t)){var n=t.observer;S(e,t);try{var r=E(n.complete);r&&r.call(n)}catch(o){v(o)}O(t)}}}),o&&s(j.prototype,"closed",{configurable:!0,get:function(){return k(b(b(this).subscription))}});var C=function(e){c(this,C,"Observable"),w(this,{subscriber:i(e)})};d(C.prototype,{subscribe:function(e){var t=arguments.length;return new x("function"===typeof e?{next:e,error:t>1?arguments[1]:void 0,complete:t>2?arguments[2]:void 0}:l(e)?e:{},b(this).subscriber)}}),d(C,{from:function(e){var t="function"===typeof this?this:C,n=E(u(e)[y]);if(n){var r=u(n.call(e));return r.constructor===t?r:new t((function(e){return r.subscribe(e)}))}var o=p(e);return new t((function(e){h(o,(function(t){if(e.next(t),e.closed)return h.stop()}),void 0,!1,!0),e.complete()}))},of:function(){var e="function"===typeof this?this:C,t=arguments.length,n=new Array(t),r=0;while(r>>0,a=t>>>0,i=n>>>0;return a-(r>>>0)-((~o&i|~(o^i)&o-i>>>0)>>>31)|0}})},Hy9b:function(e,t,n){var r=n("h+/6"),o=n("3Hes"),a=n("qyeh"),i=o("iterator");e.exports=!r((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach((function(e,r){t["delete"]("b"),n+=r+e})),a&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[i]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://\u0442\u0435\u0441\u0442").host||"#%D0%B1"!==new URL("http://a#\u0431").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},HznY:function(e,t,n){"use strict";var r=n("g0pg"),o=n("YfbA").includes,a=r.aTypedArray,i=r.exportTypedArrayMethod;i("includes",(function(e){return o(a(this),e,arguments.length>1?arguments[1]:void 0)}))},IYc2:function(e,t,n){var r=n("Wbhx"),o=n("51zF"),a=n("XXwF"),i=n("S4pK");function u(e,t){return r(e)||o(e,t)||a(e,t)||i()}e.exports=u},JLOv:function(e,t,n){var r=n("OOCw"),o=n("SuUP"),a=n("eyaU"),i=n("QWtl"),u=function(){var e=a("Object","freeze");return e?e(i(null)):i(null)};r({global:!0},{compositeKey:function(){return o.apply(Object,arguments).get("object",u)}})},JSMs:function(e,t,n){var r=n("x+sk");e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},K9Gs:function(e,t,n){"use strict";var r=n("OOCw"),o=n("j/ks"),a=n("OdMF"),i=n("upgS"),u=n("lkgX"),l=n("63eO");r({target:"Array",proto:!0},{flatMap:function(e){var t,n=a(this),r=i(n.length);return u(e),t=l(n,0),t.length=o(t,n,n,r,0,1,e,arguments.length>1?arguments[1]:void 0),t}})},KKQ6:function(e,t,n){"use strict";var r={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=r.F1&&t<=r.F12)return!1;switch(t){case r.ALT:case r.CAPS_LOCK:case r.CONTEXT_MENU:case r.CTRL:case r.DOWN:case r.END:case r.ESC:case r.HOME:case r.INSERT:case r.LEFT:case r.MAC_FF_META:case r.META:case r.NUMLOCK:case r.NUM_CENTER:case r.PAGE_DOWN:case r.PAGE_UP:case r.PAUSE:case r.PRINT_SCREEN:case r.RIGHT:case r.SHIFT:case r.UP:case r.WIN_KEY:case r.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=r.ZERO&&e<=r.NINE)return!0;if(e>=r.NUM_ZERO&&e<=r.NUM_MULTIPLY)return!0;if(e>=r.A&&e<=r.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case r.SPACE:case r.QUESTION_MARK:case r.NUM_PLUS:case r.NUM_MINUS:case r.NUM_PERIOD:case r.NUM_DIVISION:case r.SEMICOLON:case r.DASH:case r.EQUALS:case r.COMMA:case r.PERIOD:case r.SLASH:case r.APOSTROPHE:case r.SINGLE_QUOTE:case r.OPEN_SQUARE_BRACKET:case r.BACKSLASH:case r.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};t["a"]=r},KSJ2:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},KTM1:function(e,t,n){var r=n("OOCw"),o=n("HRbj");r({target:"Set",stat:!0},{from:o})},KUb8:function(e,t,n){"use strict";var r=n("OOCw"),o=n("qyeh"),a=n("sErw"),i=n("QHn5"),u=n("uZx/");r({target:"Map",proto:!0,real:!0,forced:o},{keyOf:function(e){return u(i(a(this)),(function(t,n){if(n===e)return u.stop(t)}),void 0,!0,!0).result}})},"KUi+":function(e,t,n){"use strict";var r=n("sErw"),o=n("JSMs");e.exports=function(e){if("string"!==e&&"number"!==e&&"default"!==e)throw TypeError("Incorrect hint");return o(r(this),"number"!==e)}},KZF9:function(e,t,n){var r=n("4uZn"),o=n("oEsY"),a=n("2Roc"),i=n("0JbB").f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});o(t,e)||i(t,e,{value:a.f(e)})}},KZPF:function(e,t,n){var r=n("OOCw"),o=n("SlEr"),a=n("1Sp3"),i=n("sErw"),u=n("zesz"),l=n("uZx/"),c=a.keys,s=a.toKey,f=function(e){var t=[];return l(e,t.push,t),t},d=function(e,t){var n=c(e,t),r=u(e);if(null===r)return n;var a=d(r,t);return a.length?n.length?f(new o(n.concat(a))):a:n};r({target:"Reflect",stat:!0},{getMetadataKeys:function(e){var t=arguments.length<2?void 0:s(arguments[1]);return d(i(e),t)}})},KcUJ:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("jTF5");function o(e,t){for(var n=0;n{e.demos;return o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:"markdown"},o.a.createElement("h1",{id:"\u5728\u7c7b\u7ec4\u4ef6\u4e2d\u4f7f\u7528"},o.a.createElement(a["AnchorLink"],{to:"#\u5728\u7c7b\u7ec4\u4ef6\u4e2d\u4f7f\u7528","aria-hidden":"true",tabIndex:-1},o.a.createElement("span",{className:"icon icon-link"})),"\u5728\u7c7b\u7ec4\u4ef6\u4e2d\u4f7f\u7528"),o.a.createElement("p",null,"\u867d\u7136 store \u662f\u4f7f\u7528\u7684 Hooks \u8bed\u6cd5\uff0c\u4f46\u4f60\u4ecd\u7136\u53ef\u4ee5\u5728\u7c7b\u7ec4\u4ef6\u4e2d\u83b7\u53d6\u548c\u8ba2\u9605 store\uff0c\u8fd9\u4f9d\u8d56\u4e86 hox \u63d0\u4f9b\u7684 ",o.a.createElement("code",null,"withStore")," \u9ad8\u9636\u7ec4\u4ef6\uff1a"),o.a.createElement(i["a"],{code:"class App extends Component {\n render() {\n const { counter } = this.props\n\n return (\n
\n

{counter.count}

\n \n
\n )\n }\n}\n\nexport default withStore(useCounterStore, counter => ({\n counter,\n}))(App)",lang:"jsx"}),o.a.createElement("p",null,o.a.createElement("code",null,"withStore")," \u7528\u6765\u5728\u7c7b\u7ec4\u4ef6\u4e2d\u4f7f\u7528 store \uff0c\u5b83\u7684\u7528\u6cd5\u7c7b\u4f3c\u4e8e react-redux \u4e2d\u7684 ",o.a.createElement("code",null,"connect")," \u3002"),o.a.createElement("p",null,"\u7b2c\u4e00\u4e2a\u53c2\u6570 ",o.a.createElement("code",null,"useStore")," \u7528\u6765\u63cf\u8ff0\u9700\u8981\u83b7\u53d6\u54ea\u4e9b store \uff0c\u53ef\u4ee5\u53ea\u4f20\u5165\u4e00\u4e2a ",o.a.createElement("code",null,"useStore")," \uff0c\u4e5f\u53ef\u4ee5\u4ee5\u6570\u7ec4\u7684\u5f62\u5f0f\u4f20\u5165\u591a\u4e2a\u3002"),o.a.createElement("p",null,"\u7b2c\u4e8c\u4e2a\u53c2\u6570 ",o.a.createElement("code",null,"mapStoreToProps")," \u7528\u6765\u5b9a\u4e49 store \u5230\u7ec4\u4ef6 ",o.a.createElement("code",null,"props")," \u7684\u6620\u5c04\u89c4\u5219\u3002"),o.a.createElement(i["a"],{code:"declare function withStore(\n useStore,\n mapStoreToProps: (store, ownProps) => object\n): (C: ComponentType) => ComponentType\n\ntype StoreMap = {\n [key: string]: unknown\n}",lang:"typescript"}),o.a.createElement("p",null,"\u793a\u4f8b\uff1a"),o.a.createElement(i["a"],{code:"// \u8ba2\u9605\u5355\u4e2a store\nexport default withStore(useCounterStore, counter => ({\n count: counter.count\n}))(App)\n\n// \u8ba2\u9605\u591a\u4e2a store\nexport default withStore(\n [useCounterStore, useTimerStore],\n ([counter, timer]) => ({\n count: counter.count,\n timer\n })\n)(App)",lang:"js"})))}));t["default"]=e=>{var t=o.a.useContext(a["context"]),n=t.demos;return o.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&a["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),o.a.createElement(u,{demos:n})}},KgcE:function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)}},Kk74:function(e,t,n){var r=n("OOCw"),o=n("1Sp3"),a=n("sErw"),i=o.get,u=o.toKey;r({target:"Reflect",stat:!0},{getOwnMetadata:function(e,t){var n=arguments.length<3?void 0:u(arguments[2]);return i(e,a(t),n)}})},KuRq:function(e,t,n){var r=n("6SQG"),o=n("nBeg");o(r.JSON,"JSON",!0)},LS9I:function(e,t){(function(t){e.exports=function(){var e={873:function(e){var t;t=function(){return this}();try{t=t||new Function("return this")()}catch(n){"object"===typeof window&&(t=window)}e.exports=t}},n={};function r(t){if(n[t])return n[t].exports;var o=n[t]={exports:{}},a=!0;try{e[t](o,o.exports,r),a=!1}finally{a&&delete n[t]}return o.exports}return r.ab=t+"/",r(873)}()}).call(this,"/")},LTz5:function(e,t,n){},"M+Sl":function(e,t,n){var r=n("v3z7"),o=n("MdxV"),a=n("OdMF"),i=n("upgS"),u=n("63eO"),l=[].push,c=function(e){var t=1==e,n=2==e,c=3==e,s=4==e,f=6==e,d=5==e||f;return function(p,h,v,m){for(var g,y,b=a(p),w=o(b),E=r(h,v,3),O=i(w.length),k=0,S=m||u,x=t?S(p,O):n?S(p,0):void 0;O>k;k++)if((d||k in w)&&(g=w[k],y=E(g,k,b),e))if(t)x[k]=y;else if(y)switch(e){case 3:return!0;case 5:return g;case 6:return k;case 2:l.call(x,g)}else if(s)return!1;return f?-1:c||s?s:x}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6)}},M2ND:function(e,t,n){"use strict";var r=n("vfR7").charAt,o=n("uJNS"),a=n("vSpU"),i="String Iterator",u=o.set,l=o.getterFor(i);a(String,"String",(function(e){u(this,{type:i,string:String(e),index:0})}),(function(){var e,t=l(this),n=t.string,o=t.index;return o>=n.length?{value:void 0,done:!0}:(e=r(n,o),t.index+=e.length,{value:e,done:!1})}))},M5mG:function(e,t,n){var r=n("6SQG"),o=n("mVlO"),a=n("0pkz"),i=n("MZA9"),u=n("3Hes"),l=u("iterator"),c=u("toStringTag"),s=a.values;for(var f in o){var d=r[f],p=d&&d.prototype;if(p){if(p[l]!==s)try{i(p,l,s)}catch(v){p[l]=s}if(p[c]||i(p,c,f),o[f])for(var h in a)if(p[h]!==a[h])try{i(p,h,a[h])}catch(v){p[h]=a[h]}}}},MHHe:function(e,t,n){"use strict";var r=n("ahKI"),o=n("wGmU");function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;nt}return!1}function y(e,t,n,r,o,a,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var b={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){b[e]=new y(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];b[t]=new y(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){b[e]=new y(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){b[e]=new y(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){b[e]=new y(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){b[e]=new y(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){b[e]=new y(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){b[e]=new y(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){b[e]=new y(e,5,!1,e.toLowerCase(),null,!1,!1)}));var w=/[\-:]([a-z])/g;function E(e){return e[1].toUpperCase()}function O(e,t,n,r){var o=b.hasOwnProperty(t)?b[t]:null;(null!==o?0!==o.type:r||!(2u||o[i]!==a[u]){var l="\n"+o[i].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}}while(1<=i&&0<=u);break}}}finally{H=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?U(e):""}function G(e){switch(e.tag){case 5:return U(e.type);case 16:return U("Lazy");case 13:return U("Suspense");case 19:return U("SuspenseList");case 0:case 2:case 15:return e=W(e.type,!1),e;case 11:return e=W(e.type.render,!1),e;case 1:return e=W(e.type,!0),e;default:return""}}function V(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case j:return"Fragment";case x:return"Portal";case A:return"Profiler";case C:return"StrictMode";case R:return"Suspense";case M:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case P:return(e.displayName||"Context")+".Consumer";case T:return(e._context.displayName||"Context")+".Provider";case _:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=""!==e?"ForwardRef("+e+")":"ForwardRef"),e;case N:return t=e.displayName||null,null!==t?t:V(e.type)||"Memo";case I:t=e._payload,e=e._init;try{return V(e(t))}catch(n){}}return null}function $(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return V(t);case 8:return t===C?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function K(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function q(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function X(e){var t=q(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var o=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Y(e){e._valueTracker||(e._valueTracker=X(e))}function Q(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=q(e)?e.checked?"true":"false":e.value),e=r,e!==n&&(t.setValue(e),!0)}function Z(e){if(e=e||("undefined"!==typeof document?document:void 0),"undefined"===typeof e)return null;try{return e.activeElement||e.body}catch(t){return e.body}}function J(e,t){var n=t.checked;return B({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=K(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function te(e,t){t=t.checked,null!=t&&O(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=K(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?oe(e,t.type,n):t.hasOwnProperty("defaultValue")&&oe(e,t.type,K(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function re(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,""!==n&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function oe(e,t,n){"number"===t&&Z(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ae=Array.isArray;function ie(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=pe.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function ve(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var me={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ge=["Webkit","ms","Moz","O"];function ye(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||me.hasOwnProperty(e)&&me[e]?(""+t).trim():t+"px"}function be(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=ye(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(me).forEach((function(e){ge.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),me[t]=me[e]}))}));var we=B({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ee(e,t){if(t){if(we[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(a(62))}}function Oe(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ke=null;function Se(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var xe=null,je=null,Ce=null;function Ae(e){if(e=Ho(e)){if("function"!==typeof xe)throw Error(a(280));var t=e.stateNode;t&&(t=Go(t),xe(e.stateNode,e.type,t))}}function Te(e){je?Ce?Ce.push(e):Ce=[e]:je=e}function Pe(){if(je){var e=je,t=Ce;if(Ce=je=null,Ae(e),t)for(e=0;e>>=0,0===e?32:31-(pt(e)/ht|0)|0}var mt=64,gt=4194304;function yt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function bt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,a=e.pingedLanes,i=268435455&n;if(0!==i){var u=i&~o;0!==u?r=yt(u):(a&=i,0!==a&&(r=yt(a)))}else i=n&~o,0!==i?r=yt(i):0!==a&&(r=yt(a));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&o)&&(o=r&-r,a=t&-t,o>=a||16===o&&0!==(4194240&a)))return t;if(0!==(4&r)&&(r|=16&n),t=e.entangledLanes,0!==t)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function xt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-dt(t),e[t]=n}function jt(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Zn),tr=String.fromCharCode(32),nr=!1;function rr(e,t){switch(e){case"keyup":return-1!==Yn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function or(e){return e=e.detail,"object"===typeof e&&"data"in e?e.data:null}var ar=!1;function ir(e,t){switch(e){case"compositionend":return or(t);case"keypress":return 32!==t.which?null:(nr=!0,tr);case"textInput":return e=t.data,e===tr&&nr?null:e;default:return null}}function ur(e,t){if(ar)return"compositionend"===e||!Qn&&rr(e,t)?(e=fn(),sn=cn=ln=null,ar=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Tr(r)}}function _r(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?_r(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function Rr(){for(var e=window,t=Z();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;e=t.contentWindow,t=Z(e.document)}return t}function Mr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function Nr(e){var t=Rr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&_r(n.ownerDocument.documentElement,n)){if(null!==r&&Mr(n))if(t=r.start,e=r.end,void 0===e&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,a=Math.min(r.start,o);r=void 0===r.end?a:Math.min(r.end,o),!e.extend&&a>r&&(o=r,r=a,a=o),o=Pr(n,a);var i=Pr(n,r);o&&i&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof n.focus&&n.focus(),n=0;n=document.documentMode,Lr=null,Fr=null,Dr=null,zr=!1;function Br(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;zr||null==Lr||Lr!==Z(r)||(r=Lr,"selectionStart"in r&&Mr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Dr&&Ar(Dr,r)||(Dr=r,r=vo(Fr,"onSelect"),0$o||(e.current=Vo[$o],Vo[$o]=null,$o--)}function Xo(e,t){$o++,Vo[$o]=e.current,e.current=t}var Yo={},Qo=Ko(Yo),Zo=Ko(!1),Jo=Yo;function ea(e,t){var n=e.type.contextTypes;if(!n)return Yo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,a={};for(o in n)a[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function ta(e){return e=e.childContextTypes,null!==e&&void 0!==e}function na(){qo(Zo),qo(Qo)}function ra(e,t,n){if(Qo.current!==Yo)throw Error(a(168));Xo(Qo,t),Xo(Zo,n)}function oa(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var o in r=r.getChildContext(),r)if(!(o in t))throw Error(a(108,$(e)||"Unknown",o));return B({},n,r)}function aa(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Yo,Jo=Qo.current,Xo(Qo,e),Xo(Zo,Zo.current),!0}function ia(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=oa(e,t,Jo),r.__reactInternalMemoizedMergedChildContext=e,qo(Zo),qo(Qo),Xo(Qo,e)):qo(Zo),Xo(Zo,n)}var ua=null,la=!1,ca=!1;function sa(e){null===ua?ua=[e]:ua.push(e)}function fa(e){la=!0,sa(e)}function da(){if(!ca&&null!==ua){ca=!0;var e=0,t=At;try{var n=ua;for(At=1;e>=i,o-=i,wa=1<<32-dt(t)+o|n<v?(m=f,f=null):m=f.sibling;var g=p(o,f,u[v],l);if(null===g){null===f&&(f=m);break}e&&f&&null===g.alternate&&t(o,f),a=i(g,a,v),null===s?c=g:s.sibling=g,s=g,f=m}if(v===u.length)return n(o,f),Aa&&Oa(o,v),c;if(null===f){for(;vm?(g=v,v=null):g=v.sibling;var b=p(o,v,y.value,c);if(null===b){null===v&&(v=g);break}e&&v&&null===b.alternate&&t(o,v),u=i(b,u,m),null===f?s=b:f.sibling=b,f=b,v=g}if(y.done)return n(o,v),Aa&&Oa(o,m),s;if(null===v){for(;!y.done;m++,y=l.next())y=d(o,y.value,c),null!==y&&(u=i(y,u,m),null===f?s=y:f.sibling=y,f=y);return Aa&&Oa(o,m),s}for(v=r(o,v);!y.done;m++,y=l.next())y=h(v,o,m,y.value,c),null!==y&&(e&&null!==y.alternate&&v.delete(null===y.key?m:y.key),u=i(y,u,m),null===f?s=y:f.sibling=y,f=y);return e&&v.forEach((function(e){return t(o,e)})),Aa&&Oa(o,m),s}function g(e,r,a,i){if("object"===typeof a&&null!==a&&a.type===j&&null===a.key&&(a=a.props.children),"object"===typeof a&&null!==a){switch(a.$$typeof){case S:e:{for(var l=a.key,c=r;null!==c;){if(c.key===l){if(l=a.type,l===j){if(7===c.tag){n(e,c.sibling),r=o(c,a.props.children),r.return=e,e=r;break e}}else if(c.elementType===l||"object"===typeof l&&null!==l&&l.$$typeof===I&&yi(l)===c.type){n(e,c.sibling),r=o(c,a.props),r.ref=mi(e,c,a),r.return=e,e=r;break e}n(e,c);break}t(e,c),c=c.sibling}a.type===j?(r=fs(a.props.children,e.mode,i,a.key),r.return=e,e=r):(i=ss(a.type,a.key,a.props,null,e.mode,i),i.ref=mi(e,r,a),i.return=e,e=i)}return u(e);case x:e:{for(c=a.key;null!==r;){if(r.key===c){if(4===r.tag&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){n(e,r.sibling),r=o(r,a.children||[]),r.return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}r=hs(a,e.mode,i),r.return=e,e=r}return u(e);case I:return c=a._init,g(e,r,c(a._payload),i)}if(ae(a))return v(e,r,a,i);if(D(a))return m(e,r,a,i);gi(e,a)}return"string"===typeof a&&""!==a||"number"===typeof a?(a=""+a,null!==r&&6===r.tag?(n(e,r.sibling),r=o(r,a),r.return=e,e=r):(n(e,r),r=ps(a,e.mode,i),r.return=e,e=r),u(e)):n(e,r)}return g}var wi=bi(!0),Ei=bi(!1),Oi={},ki=Ko(Oi),Si=Ko(Oi),xi=Ko(Oi);function ji(e){if(e===Oi)throw Error(a(174));return e}function Ci(e,t){switch(Xo(xi,t),Xo(Si,e),Xo(ki,Oi),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:de(null,"");break;default:e=8===e?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=de(t,e)}qo(ki),Xo(ki,t)}function Ai(){qo(ki),qo(Si),qo(xi)}function Ti(e){ji(xi.current);var t=ji(ki.current),n=de(t,e.type);t!==n&&(Xo(Si,e),Xo(ki,n))}function Pi(e){Si.current===e&&(qo(ki),qo(Si))}var _i=Ko(0);function Ri(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(n=n.dehydrated,null===n||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Mi=[];function Ni(){for(var e=0;en?n:4,e(!0);var r=Li.transition;Li.transition={};try{e(!1),t()}finally{At=n,Li.transition=r}}function ku(){return Yi().memoizedState}function Su(e,t,n){var r=Ac(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ju(e))Cu(t,n);else if(n=Za(e,t,n,r),null!==n){var o=Cc();Tc(n,e,r,o),Au(n,t,r)}}function xu(e,t,n){var r=Ac(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ju(e))Cu(t,o);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&(a=t.lastRenderedReducer,null!==a))try{var i=t.lastRenderedState,u=a(i,n);if(o.hasEagerState=!0,o.eagerState=u,Cr(u,i)){var l=t.interleaved;return null===l?(o.next=o,Qa(t)):(o.next=l.next,l.next=o),void(t.interleaved=o)}}catch(c){}n=Za(e,t,o,r),null!==n&&(o=Cc(),Tc(n,e,r,o),Au(n,t,r))}}function ju(e){var t=e.alternate;return e===Di||null!==t&&t===Di}function Cu(e,t){Hi=Ui=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Au(e,t,n){if(0!==(4194240&n)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ct(e,n)}}var Tu={readContext:Xa,useCallback:Vi,useContext:Vi,useEffect:Vi,useImperativeHandle:Vi,useInsertionEffect:Vi,useLayoutEffect:Vi,useMemo:Vi,useReducer:Vi,useRef:Vi,useState:Vi,useDebugValue:Vi,useDeferredValue:Vi,useTransition:Vi,useMutableSource:Vi,useSyncExternalStore:Vi,useId:Vi,unstable_isNewReconciler:!1},Pu={readContext:Xa,useCallback:function(e,t){return Xi().memoizedState=[e,void 0===t?null:t],e},useContext:Xa,useEffect:du,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,su(4194308,4,mu.bind(null,t,e),n)},useLayoutEffect:function(e,t){return su(4194308,4,e,t)},useInsertionEffect:function(e,t){return su(4,2,e,t)},useMemo:function(e,t){var n=Xi();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Xi();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Su.bind(null,Di,e),[r.memoizedState,e]},useRef:function(e){var t=Xi();return e={current:e},t.memoizedState=e},useState:uu,useDebugValue:yu,useDeferredValue:function(e){return Xi().memoizedState=e},useTransition:function(){var e=uu(!1),t=e[0];return e=Ou.bind(null,e[1]),Xi().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Di,o=Xi();if(Aa){if(void 0===n)throw Error(a(407));n=n()}else{if(n=t(),null===nc)throw Error(a(349));0!==(30&Fi)||nu(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,du(ou.bind(null,r,i,e),[e]),r.flags|=2048,lu(9,ru.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Xi(),t=nc.identifierPrefix;if(Aa){var n=Ea,r=wa;n=(r&~(1<<32-dt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Wi++,0<\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[Io]=t,e[Lo]=r,tl(e,t,!1,!1),t.stateNode=e;e:{switch(l=Oe(n,r),n){case"dialog":uo("cancel",e),uo("close",e),o=r;break;case"iframe":case"object":case"embed":uo("load",e),o=r;break;case"video":case"audio":for(o=0;ovc&&(t.flags|=128,r=!0,gl(i,!1),t.lanes=4194304)}else{if(!r)if(e=Ri(l),null!==e){if(t.flags|=128,r=!0,n=e.updateQueue,null!==n&&(t.updateQueue=n,t.flags|=4),gl(i,!0),null===i.tail&&"hidden"===i.tailMode&&!l.alternate&&!Aa)return yl(t),null}else 2*nt()-i.renderingStartTime>vc&&1073741824!==n&&(t.flags|=128,r=!0,gl(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(n=i.last,null!==n?n.sibling=l:t.child=l,i.last=l)}return null!==i.tail?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=nt(),t.sibling=null,n=_i.current,Xo(_i,r?1&n|2:1&n),t):(yl(t),null);case 22:case 23:return zc(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!==(1&t.mode)?0!==(1073741824&ac)&&(yl(t),6&t.subtreeFlags&&(t.flags|=8192)):yl(t),null;case 24:return null;case 25:return null}throw Error(a(156,t.tag))}function wl(e,t){switch(xa(t),t.tag){case 1:return ta(t.type)&&na(),e=t.flags,65536&e?(t.flags=-65537&e|128,t):null;case 3:return Ai(),qo(Zo),qo(Qo),Ni(),e=t.flags,0!==(65536&e)&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Pi(t),null;case 13:if(qo(_i),e=t.memoizedState,null!==e&&null!==e.dehydrated){if(null===t.alternate)throw Error(a(340));Fa()}return e=t.flags,65536&e?(t.flags=-65537&e|128,t):null;case 19:return qo(_i),null;case 4:return Ai(),null;case 10:return $a(t.type._context),null;case 22:case 23:return zc(),null;case 24:return null;default:return null}}tl=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},nl=function(){},rl=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,ji(ki.current);var a,i=null;switch(n){case"input":o=J(e,o),r=J(e,r),i=[];break;case"select":o=B({},o,{value:void 0}),r=B({},r,{value:void 0}),i=[];break;case"textarea":o=ue(e,o),r=ue(e,r),i=[];break;default:"function"!==typeof o.onClick&&"function"===typeof r.onClick&&(e.onclick=Oo)}for(s in Ee(n,r),n=null,o)if(!r.hasOwnProperty(s)&&o.hasOwnProperty(s)&&null!=o[s])if("style"===s){var l=o[s];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==s&&"children"!==s&&"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(u.hasOwnProperty(s)?i||(i=[]):(i=i||[]).push(s,null));for(s in r){var c=r[s];if(l=null!=o?o[s]:void 0,r.hasOwnProperty(s)&&c!==l&&(null!=c||null!=l))if("style"===s)if(l){for(a in l)!l.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&l[a]!==c[a]&&(n||(n={}),n[a]=c[a])}else n||(i||(i=[]),i.push(s,n)),n=c;else"dangerouslySetInnerHTML"===s?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(i=i||[]).push(s,c)):"children"===s?"string"!==typeof c&&"number"!==typeof c||(i=i||[]).push(s,""+c):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&(u.hasOwnProperty(s)?(null!=c&&"onScroll"===s&&uo("scroll",e),i||l===c||(i=[])):(i=i||[]).push(s,c))}n&&(i=i||[]).push("style",n);var s=i;(t.updateQueue=s)&&(t.flags|=4)}},ol=function(e,t,n,r){n!==r&&(t.flags|=4)};var El=!1,Ol=!1,kl="function"===typeof WeakSet?WeakSet:Set,Sl=null;function xl(e,t){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(r){Jc(e,t,r)}else n.current=null}function jl(e,t,n){try{n()}catch(r){Jc(e,t,r)}}var Cl=!1;function Al(e,t){if(ko=en,e=Rr(),Mr(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch(E){n=null;break e}var u=0,l=-1,c=-1,s=0,f=0,d=e,p=null;t:for(;;){for(var h;;){if(d!==n||0!==o&&3!==d.nodeType||(l=u+o),d!==i||0!==r&&3!==d.nodeType||(c=u+r),3===d.nodeType&&(u+=d.nodeValue.length),null===(h=d.firstChild))break;p=d,d=h}for(;;){if(d===e)break t;if(p===n&&++s===o&&(l=u),p===i&&++f===r&&(c=u),null!==(h=d.nextSibling))break;d=p,p=d.parentNode}d=h}n=-1===l||-1===c?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(So={focusedElem:e,selectionRange:n},en=!1,Sl=t;null!==Sl;)if(t=Sl,e=t.child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,Sl=e;else for(;null!==Sl;){t=Sl;try{var v=t.alternate;if(0!==(1024&t.flags))switch(t.tag){case 0:case 11:case 15:break;case 1:if(null!==v){var m=v.memoizedProps,g=v.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?m:Ba(t.type,m),g);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(a(163))}}catch(E){Jc(t,t.return,E)}if(e=t.sibling,null!==e){e.return=t.return,Sl=e;break}Sl=t.return}return v=Cl,Cl=!1,v}function Tl(e,t,n){var r=t.updateQueue;if(r=null!==r?r.lastEffect:null,null!==r){var o=r=r.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,void 0!==a&&jl(t,n,a)}o=o.next}while(o!==r)}}function Pl(e,t){if(t=t.updateQueue,t=null!==t?t.lastEffect:null,null!==t){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function _l(e){var t=e.ref;if(null!==t){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}"function"===typeof t?t(e):t.current=e}}function Rl(e){var t=e.alternate;null!==t&&(e.alternate=null,Rl(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(t=e.stateNode,null!==t&&(delete t[Io],delete t[Lo],delete t[Do],delete t[zo],delete t[Bo])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Ml(e){return 5===e.tag||3===e.tag||4===e.tag}function Nl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||Ml(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function Il(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,null!==n&&void 0!==n||null!==t.onclick||(t.onclick=Oo));else if(4!==r&&(e=e.child,null!==e))for(Il(e,t,n),e=e.sibling;null!==e;)Il(e,t,n),e=e.sibling}function Ll(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&(e=e.child,null!==e))for(Ll(e,t,n),e=e.sibling;null!==e;)Ll(e,t,n),e=e.sibling}var Fl=null,Dl=!1;function zl(e,t,n){for(n=n.child;null!==n;)Bl(e,t,n),n=n.sibling}function Bl(e,t,n){if(st&&"function"===typeof st.onCommitFiberUnmount)try{st.onCommitFiberUnmount(ct,n)}catch(u){}switch(n.tag){case 5:Ol||xl(n,t);case 6:var r=Fl,o=Dl;Fl=null,zl(e,t,n),Fl=r,Dl=o,null!==Fl&&(Dl?(e=Fl,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):Fl.removeChild(n.stateNode));break;case 18:null!==Fl&&(Dl?(e=Fl,n=n.stateNode,8===e.nodeType?_o(e.parentNode,n):1===e.nodeType&&_o(e,n),Zt(e)):_o(Fl,n.stateNode));break;case 4:r=Fl,o=Dl,Fl=n.stateNode.containerInfo,Dl=!0,zl(e,t,n),Fl=r,Dl=o;break;case 0:case 11:case 14:case 15:if(!Ol&&(r=n.updateQueue,null!==r&&(r=r.lastEffect,null!==r))){o=r=r.next;do{var a=o,i=a.destroy;a=a.tag,void 0!==i&&(0!==(2&a)||0!==(4&a))&&jl(n,t,i),o=o.next}while(o!==r)}zl(e,t,n);break;case 1:if(!Ol&&(xl(n,t),r=n.stateNode,"function"===typeof r.componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){Jc(n,t,u)}zl(e,t,n);break;case 21:zl(e,t,n);break;case 22:1&n.mode?(Ol=(r=Ol)||null!==n.memoizedState,zl(e,t,n),Ol=r):zl(e,t,n);break;default:zl(e,t,n)}}function Ul(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new kl),t.forEach((function(t){var r=rs.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function Hl(e,t){var n=t.deletions;if(null!==n)for(var r=0;ro&&(o=u),r&=~i}if(r=o,r=nt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Ql(r/1960))-r,10e?16:e,null===Ec)var r=!1;else{if(e=Ec,Ec=null,Oc=0,0!==(6&tc))throw Error(a(331));var o=tc;for(tc|=4,Sl=e.current;null!==Sl;){var i=Sl,u=i.child;if(0!==(16&Sl.flags)){var l=i.deletions;if(null!==l){for(var c=0;cnt()-hc?Bc(e,0):fc|=n),Pc(e,t)}function ts(e,t){0===t&&(0===(1&e.mode)?t=1:(t=gt,gt<<=1,0===(130023424>)&&(gt=4194304)));var n=Cc();e=Ja(e,t),null!==e&&(xt(e,t,n),Pc(e,n))}function ns(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),ts(e,n)}function rs(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(a(314))}null!==r&&r.delete(t),ts(e,n)}function os(e,t){return Ze(e,t)}function as(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function is(e,t,n,r){return new as(e,t,n,r)}function us(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ls(e){if("function"===typeof e)return us(e)?1:0;if(void 0!==e&&null!==e){if(e=e.$$typeof,e===_)return 11;if(e===N)return 14}return 2}function cs(e,t){var n=e.alternate;return null===n?(n=is(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ss(e,t,n,r,o,i){var u=2;if(r=e,"function"===typeof e)us(e)&&(u=1);else if("string"===typeof e)u=5;else e:switch(e){case j:return fs(n.children,o,i,t);case C:u=8,o|=8;break;case A:return e=is(12,n,t,2|o),e.elementType=A,e.lanes=i,e;case R:return e=is(13,n,t,o),e.elementType=R,e.lanes=i,e;case M:return e=is(19,n,t,o),e.elementType=M,e.lanes=i,e;case L:return ds(n,o,i,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case T:u=10;break e;case P:u=9;break e;case _:u=11;break e;case N:u=14;break e;case I:u=16,r=null;break e}throw Error(a(130,null==e?e:typeof e,""))}return t=is(u,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function fs(e,t,n,r){return e=is(7,e,r,t),e.lanes=n,e}function ds(e,t,n,r){return e=is(22,e,r,t),e.elementType=L,e.lanes=n,e.stateNode={isHidden:!1},e}function ps(e,t,n){return e=is(6,e,null,t),e.lanes=n,e}function hs(e,t,n){return t=is(4,null!==e.children?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function vs(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=St(0),this.expirationTimes=St(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=St(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function ms(e,t,n,r,o,a,i,u,l){return e=new vs(e,t,n,u,l),1===t?(t=1,!0===a&&(t|=8)):t=0,a=is(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ti(a),e}function gs(e,t,n){var r=3f)n=o(r,t=c[f++]),void 0!==n&&l(s,t,n);return s}})},MZA9:function(e,t,n){var r=n("r+6h"),o=n("0JbB"),a=n("ZVkV");e.exports=r?function(e,t,n){return o.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},MdxV:function(e,t,n){var r=n("h+/6"),o=n("kk5s"),a="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?a.call(e,""):Object(e)}:Object},MhlF:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n("CT9t"),o=n("XnHr"),a=n("Hdhv"),i=n("SsNn");function u(e){return void 0!==e}function l(e,t){var n=t||{},l=n.defaultValue,c=n.value,s=n.onChange,f=n.postState,d=Object(i["a"])((function(){return u(c)?c:u(l)?"function"===typeof l?l():l:"function"===typeof e?e():e})),p=Object(r["a"])(d,2),h=p[0],v=p[1],m=void 0!==c?c:h,g=f?f(m):m,y=Object(o["a"])(s),b=Object(i["a"])([m]),w=Object(r["a"])(b,2),E=w[0],O=w[1];Object(a["b"])((function(){var e=E[0];h!==e&&y(h,e)}),[E]),Object(a["b"])((function(){u(c)||v(c)}),[c]);var k=Object(o["a"])((function(e,t){v(e,t),O([m],t)}));return[g,k]}},"N+aw":function(e,t,n){var r=n("r+6h"),o=n("3s2x"),a=n("684d"),i=n("UQib").f,u=function(e){return function(t){var n,u=a(t),l=o(u),c=l.length,s=0,f=[];while(c>s)n=l[s++],r&&!i.call(u,n)||f.push(e?[n,u[n]]:u[n]);return f}};e.exports={entries:u(!0),values:u(!1)}},"N/7o":function(e,t,n){"use strict";var r=n("OOCw"),o=n("ANLo"),a=n("pVp3"),i=n("jax1"),u=n("h+/6"),l=1..toFixed,c=Math.floor,s=function(e,t,n){return 0===t?n:t%2===1?s(e,t-1,n*e):s(e*e,t/2,n)},f=function(e){var t=0,n=e;while(n>=4096)t+=12,n/=4096;while(n>=2)t+=1,n/=2;return t},d=l&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!u((function(){l.call({})}));r({target:"Number",proto:!0,forced:d},{toFixed:function(e){var t,n,r,u,l=a(this),d=o(e),p=[0,0,0,0,0,0],h="",v="0",m=function(e,t){var n=-1,r=t;while(++n<6)r+=e*p[n],p[n]=r%1e7,r=c(r/1e7)},g=function(e){var t=6,n=0;while(--t>=0)n+=p[t],p[t]=c(n/e),n=n%e*1e7},y=function(){var e=6,t="";while(--e>=0)if(""!==t||0===e||0!==p[e]){var n=String(p[e]);t=""===t?n:t+i.call("0",7-n.length)+n}return t};if(d<0||d>20)throw RangeError("Incorrect fraction digits");if(l!=l)return"NaN";if(l<=-1e21||l>=1e21)return String(l);if(l<0&&(h="-",l=-l),l>1e-21)if(t=f(l*s(2,69,1))-69,n=t<0?l*s(2,-t,1):l/s(2,t,1),n*=4503599627370496,t=52-t,t>0){m(0,n),r=d;while(r>=7)m(1e7,0),r-=7;m(s(10,r,1),0),r=t-1;while(r>=23)g(1<<23),r-=23;g(1<0?(u=v.length,v=h+(u<=d?"0."+i.call("0",d-u)+v:v.slice(0,u-d)+"."+v.slice(u-d))):v=h+v,v}})},N0ls:function(e,t,n){var r=n("OdMF"),o=n("upgS"),a=n("MI4T"),i=n("dwb6"),u=n("v3z7"),l=n("g0pg").aTypedArrayConstructor;e.exports=function(e){var t,n,c,s,f,d,p=r(e),h=arguments.length,v=h>1?arguments[1]:void 0,m=void 0!==v,g=a(p);if(void 0!=g&&!i(g)){f=g.call(p),d=f.next,p=[];while(!(s=d.call(f)).done)p.push(s.value)}for(m&&h>2&&(v=u(v,arguments[2],2)),n=o(p.length),c=new(l(this))(n),t=0;n>t;t++)c[t]=m?v(p[t],t):p[t];return c}},N59M:function(e,t,n){var r=n("6SQG");e.exports=r.Promise},NDcS:function(e,t,n){"use strict";var r=n("DbXJ");function o(){var e=n("ahKI");return o=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var a=n("F4XJ");function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n-1&&n.push(s[r]);m(n)}else m([])}),[e,s.length]),v},y=function(){var e=(0,o().useContext)(a.context),t=e.config.algolia,n=(0,o().useCallback)((function(e){window.docsearch(u({inputSelector:e},t))}),[t]);return n},b=function(e){var t=(0,o().useContext)(a.context),n=t.config,r=g(e),i=y();return n.algolia?i:r};t["default"]=b},NUIj:function(e,t,n){e.exports=n("FHCv")},NWic:function(e,t,n){var r=n("OOCw"),o=n("hpYE");r({target:"Array",proto:!0,forced:o!==[].lastIndexOf},{lastIndexOf:o})},NWlk:function(e,t,n){"use strict";var r=n("r+6h"),o=n("h+/6"),a=n("3s2x"),i=n("AG0a"),u=n("UQib"),l=n("OdMF"),c=n("MdxV"),s=Object.assign,f=Object.defineProperty;e.exports=!s||o((function(){if(r&&1!==s({b:1},s(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach((function(e){t[e]=e})),7!=s({},e)[n]||a(s({},t)).join("")!=o}))?function(e,t){var n=l(e),o=arguments.length,s=1,f=i.f,d=u.f;while(o>s){var p,h=c(arguments[s++]),v=f?a(h).concat(f(h)):a(h),m=v.length,g=0;while(m>g)p=v[g++],r&&!d.call(h,p)||(n[p]=h[p])}return n}:s},NlHq:function(e,t,n){"use strict";var r=n("OOCw"),o=n("qyeh"),a=n("eyaU"),i=n("sErw"),u=n("lkgX"),l=n("ZT9G"),c=n("uZx/");r({target:"Set",proto:!0,real:!0,forced:o},{intersection:function(e){var t=i(this),n=new(l(t,a("Set"))),r=u(t.has),o=u(n.add);return c(e,(function(e){r.call(t,e)&&o.call(n,e)})),n}})},Nvne:function(e,t,n){var r=n("GXoa");r("Int16",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},O8qS:function(e,t,n){var r=n("h+/6");e.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},OOCw:function(e,t,n){var r=n("6SQG"),o=n("6ssM").f,a=n("MZA9"),i=n("uF/W"),u=n("jukf"),l=n("mult"),c=n("RzMS");e.exports=function(e,t){var n,s,f,d,p,h,v=e.target,m=e.global,g=e.stat;if(s=m?r:g?r[v]||u(v,{}):(r[v]||{}).prototype,s)for(f in t){if(p=t[f],e.noTargetGet?(h=o(s,f),d=h&&h.value):d=s[f],n=c(m?f:v+(g?".":"#")+f,e.forced),!n&&void 0!==d){if(typeof p===typeof d)continue;l(p,d)}(e.sham||d&&d.sham)&&a(p,"sham",!0),i(s,f,p,e)}}},OR72:function(e,t,n){var r=n("kk5s"),o=n("A2zS");e.exports=function(e,t){var n=e.exec;if("function"===typeof n){var a=n.call(e,t);if("object"!==typeof a)throw TypeError("RegExp exec method returned something other than an Object or null");return a}if("RegExp"!==r(e))throw TypeError("RegExp#exec called on incompatible receiver");return o.call(e,t)}},OVON:function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,"a",(function(){return r}))},OaOe:function(e,t,n){"use strict";function r(){var e=n("ahKI");return r=function(){return e},e}function o(e,t){return c(e)||l(e,t)||i(e,t)||a()}function a(){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 i(e,t){if(e){if("string"===typeof e)return u(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(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n3&&void 0!==arguments[3]?arguments[3]:0;if(a36)throw RangeError(u);if(!l.test(e)||(r=a(e,n)).toString(n)!==e)throw SyntaxError(i);return c*r}})},OcJn:function(e,t,n){var r=n("KZF9");r("isConcatSpreadable")},OdMF:function(e,t,n){var r=n("z43i");e.exports=function(e){return Object(r(e))}},Or3X:function(e,t,n){"use strict";function r(){var e=n("ahKI");return r=function(){return e},e}function o(e,t){return c(e)||l(e,t)||i(e,t)||a()}function a(){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 i(e,t){if(e){if("string"===typeof e)return u(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(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=f.reach)break;var S=O.value;if(t.length>e.length)return;if(!(S instanceof o)){var x,j=1;if(y){if(x=a(E,k,e,g),!x||x.index>=e.length)break;var C=x.index,A=x.index+x[0].length,T=k;T+=O.value.length;while(C>=T)O=O.next,T+=O.value.length;if(T-=O.value.length,k=T,O.value instanceof o)continue;for(var P=O;P!==t.tail&&(Tf.reach&&(f.reach=N);var I=O.prev;R&&(I=l(t,I,R),k+=R.length),c(t,I,j);var L=new o(d,m?r.tokenize(_,m):_,b,_);if(O=l(t,I,L),M&&l(t,O,M),j>1){var F={cause:d+","+h,reach:N};i(e,t,n,O.prev,k,F),f&&F.reach>f.reach&&(f.reach=F.reach)}}}}}}function u(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function l(e,t,n){var r=t.next,o={value:n,prev:t,next:r};return t.next=o,r.prev=o,e.length++,o}function c(e,t,n){for(var r=t.next,o=0;o"+a.content+""},r}(),i=a;a["default"]=a,i.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},i.languages.markup["tag"].inside["attr-value"].inside["entity"]=i.languages.markup["entity"],i.languages.markup["doctype"].inside["internal-subset"].inside=i.languages.markup,i.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes["title"]=e.content.replace(/&/,"&"))})),Object.defineProperty(i.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^$)/i,lookbehind:!0,inside:i.languages[t]},n["cdata"]=/^$/i;var r={"included-cdata":{pattern://i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:i.languages[t]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:r},i.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(i.languages.markup.tag,"addAttribute",{value:function(e,t){i.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:i.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),i.languages.html=i.languages.markup,i.languages.mathml=i.languages.markup,i.languages.svg=i.languages.markup,i.languages.xml=i.languages.extend("markup",{}),i.languages.ssml=i.languages.xml,i.languages.atom=i.languages.xml,i.languages.rss=i.languages.xml,function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var o=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],a=r.variable[1].inside,i=0;i]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},i.languages.c=i.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),i.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),i.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},i.languages.c["string"]],char:i.languages.c["char"],comment:i.languages.c["comment"],"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:i.languages.c}}}}),i.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete i.languages.c["boolean"],function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!)\w+(?:\s*\.\s*\w+)*\b/.source.replace(//g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!)\w+/.source.replace(//g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/(?:\s*:\s*)?|:\s*/.source.replace(//g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(i),function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css["atrule"].inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(i),function(e){var t,n=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/;e.languages.css.selector={pattern:e.languages.css.selector.pattern,lookbehind:!0,inside:t={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp("\\[(?:[^[\\]\"']|"+n.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[n,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},e.languages.css["atrule"].inside["selector-function-argument"].inside=t,e.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var r={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},o={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};e.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:r,number:o,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:r,number:o})}(i),i.languages.javascript=i.languages.extend("clike",{"class-name":[i.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),i.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,i.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:i.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:i.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:i.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:i.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:i.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),i.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:i.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),i.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),i.languages.markup&&(i.languages.markup.tag.addInlined("script","javascript"),i.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),i.languages.js=i.languages.javascript,function(e){var t=/#(?!\{).+/,n={pattern:/#\{[^}]+\}/,alias:"variable"};e.languages.coffeescript=e.languages.extend("javascript",{comment:t,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:n}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),e.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:t,interpolation:n}}}),e.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:e.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:n}}]}),e.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete e.languages.coffeescript["template-string"],e.languages.coffee=e.languages.coffeescript}(i),function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,r="(?:"+n.source+"(?:[ \t]+"+t.source+")?|"+t.source+"(?:[ \t]+"+n.source+")?)",o=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,(function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source})),a=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function i(e,t){t=(t||"").replace(/m/g,"")+"m";var n=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,(function(){return r})).replace(/<>/g,(function(){return e}));return RegExp(n,t)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,(function(){return r}))),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,(function(){return r})).replace(/<>/g,(function(){return"(?:"+o+"|"+a+")"}))),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:i(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:i(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:i(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:i(a),lookbehind:!0,greedy:!0},number:{pattern:i(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml}(i),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(//g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),a=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+a+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+a+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+a+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~))+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(t){["url","bold","italic","strike","code-snippet"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){function t(e){if(e&&"string"!==typeof e)for(var n=0,r=e.length;n",quot:'"'},l=String.fromCodePoint||String.fromCharCode;function c(e){var t=e.replace(i,"");return t=t.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;if(t=t.toLowerCase(),"#"===t[0])return n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),l(n);var r=u[t];return r||e})),t}e.languages.md=e.languages.markdown}(i),i.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:i.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},i.hooks.add("after-tokenize",(function(e){if("graphql"===e.language)for(var t=e.tokens.filter((function(e){return"string"!==typeof e&&"comment"!==e.type&&"scalar"!==e.type})),n=0;n0)){var u=d(/^\{$/,/^\}$/);if(-1===u)continue;for(var l=n;l=0&&p(c,"variable-input")}}}}function s(e){return t[n+e]}function f(e,t){t=t||0;for(var n=0;n?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){var t=e.languages.javascript["template-string"],n=t.pattern.source,r=t.inside["interpolation"],o=r.inside["interpolation-punctuation"],a=r.pattern.source;function i(t,r){if(e.languages[t])return{pattern:RegExp("((?:"+r+")\\s*)"+n),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:t}}}}function u(e,t){return"___"+t.toUpperCase()+"_"+e+"___"}function l(t,n,r){var o={code:t,grammar:n,language:r};return e.hooks.run("before-tokenize",o),o.tokens=e.tokenize(o.code,o.grammar),e.hooks.run("after-tokenize",o),o.tokens}function c(t){var n={};n["interpolation-punctuation"]=o;var a=e.tokenize(t,n);if(3===a.length){var i=[1,1];i.push.apply(i,l(a[1],e.languages.javascript,"javascript")),a.splice.apply(a,i)}return new e.Token("interpolation",a,r.alias,t)}function s(t,n,r){var o=e.tokenize(t,{interpolation:{pattern:RegExp(a),lookbehind:!0}}),i=0,s={},f=o.map((function(e){if("string"===typeof e)return e;var n,o=e.content;while(-1!==t.indexOf(n=u(i++,r)));return s[n]=o,n})).join(""),d=l(f,n,r),p=Object.keys(s);function h(e){for(var t=0;t=p.length)return;var n=e[t];if("string"===typeof n||"string"===typeof n.content){var r=p[i],o="string"===typeof n?n:n.content,a=o.indexOf(r);if(-1!==a){++i;var u=o.substring(0,a),l=c(s[r]),f=o.substring(a+r.length),d=[];if(u&&d.push(u),d.push(l),f){var v=[f];h(v),d.push.apply(d,v)}"string"===typeof n?(e.splice.apply(e,[t,1].concat(d)),t+=d.length-1):n.content=d}}else{var m=n.content;Array.isArray(m)?h(m):h([m])}}}return i=0,h(d),new e.Token(r,d,"language-"+r,t)}e.languages.javascript["template-string"]=[i("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),i("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),i("svg",/\bsvg/.source),i("markdown",/\b(?:markdown|md)/.source),i("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),i("sql",/\bsql/.source),t].filter(Boolean);var f={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function d(e){return"string"===typeof e?e:Array.isArray(e)?e.map(d).join(""):d(e.content)}e.hooks.add("after-tokenize",(function(t){function n(t){for(var r=0,o=t.length;r]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript["parameter"],delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(i),function(e){function t(e,t){return RegExp(e.replace(//g,(function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source})),t)}e.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+e.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),e.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+e.languages.javascript["function"].source),lookbehind:!0,alias:["function","property-access"]}}),e.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),e.languages.insertBefore("javascript","keyword",{imports:{pattern:t(/(\bimport\b\s*)(?:(?:\s*,\s*(?:\*\s*as\s+|\{[^{}]*\}))?|\*\s*as\s+|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:e.languages.javascript},exports:{pattern:t(/(\bexport\b\s*)(?:\*(?:\s*as\s+)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:e.languages.javascript}}),e.languages.javascript["keyword"].unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),e.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),e.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:t(/(\.\s*)#?/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var n=["function","function-variable","method","method-variable","property-access"],r=0;r*\.{3}(?:[^{}]|)*\})/.source;function a(e,t){return e=e.replace(//g,(function(){return n})).replace(//g,(function(){return r})).replace(//g,(function(){return o})),RegExp(e,t)}o=a(o).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=a(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),e.languages.jsx.tag.inside["tag"].pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside["tag"].inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside["comment"]=t["comment"],e.languages.insertBefore("inside","attr-name",{spread:{pattern:a(//.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:a(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var i=function e(t){return t?"string"===typeof t?t:"string"===typeof t.content?t.content:t.content.map(e).join(""):""},u=function t(n){for(var r=[],o=0;o0&&r[r.length-1].tagName===i(a.content[0].content[1])&&r.pop():"/>"===a.content[a.content.length-1].content||r.push({tagName:i(a.content[0].content[1]),openedBraces:0}):r.length>0&&"punctuation"===a.type&&"{"===a.content?r[r.length-1].openedBraces++:r.length>0&&r[r.length-1].openedBraces>0&&"punctuation"===a.type&&"}"===a.content?r[r.length-1].openedBraces--:u=!0),(u||"string"===typeof a)&&r.length>0&&0===r[r.length-1].openedBraces){var l=i(a);o0&&("string"===typeof n[o-1]||"plain-text"===n[o-1].type)&&(l=i(n[o-1])+l,n.splice(o-1,1),o--),n[o]=new e.Token("plain-text",l,null,l)}a.content&&"string"!==typeof a.content&&t(a.content)}};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||u(e.tokens)}))}(i),function(e){e.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var t={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(t).forEach((function(n){var r=t[n],o=[];/^\w+$/.test(n)||o.push(/\w+/.exec(n)[0]),"diff"===n&&o.push("bold"),e.languages.diff[n]={pattern:RegExp("^(?:["+r+"].*(?:\r\n?|\n|(?![\\s\\S])))+","m"),alias:o,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(n)[0]}}}})),Object.defineProperty(e.languages.diff,"PREFIXES",{value:t})}(i),i.languages.git={comment:/^#.*/m,deleted:/^[-\u2013].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m},i.languages.go=i.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),i.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete i.languages.go["class-name"],function(e){function t(e,t){return"___"+e.toUpperCase()+t+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(n,r,o,a){if(n.language===r){var i=n.tokenStack=[];n.code=n.code.replace(o,(function(e){if("function"===typeof a&&!a(e))return e;var o,u=i.length;while(-1!==n.code.indexOf(o=t(r,u)))++u;return i[u]=e,o})),n.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(n,r){if(n.language===r&&n.tokenStack){n.grammar=e.languages[r];var o=0,a=Object.keys(n.tokenStack);i(n.tokens)}function i(u){for(var l=0;l=a.length)break;var c=u[l];if("string"===typeof c||c.content&&"string"===typeof c.content){var s=a[o],f=n.tokenStack[s],d="string"===typeof c?c:c.content,p=t(r,s),h=d.indexOf(p);if(h>-1){++o;var v=d.substring(0,h),m=new e.Token(r,e.tokenize(f,n.grammar),"language-"+r,f),g=d.substring(h+p.length),y=[];v&&y.push.apply(y,i([v])),y.push(m),g&&y.push.apply(y,i([g])),"string"===typeof c?u.splice.apply(u,[l,1].concat(y)):c.content=y}}else c.content&&i(c.content)}return u}}}})}(i),function(e){e.languages.handlebars={comment:/\{\{![\s\S]*?\}\}/,delimiter:{pattern:/^\{\{\{?|\}\}\}?$/,alias:"punctuation"},string:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][+-]?\d+)?/,boolean:/\b(?:false|true)\b/,block:{pattern:/^(\s*(?:~\s*)?)[#\/]\S+?(?=\s*(?:~\s*)?$|\s)/,lookbehind:!0,alias:"keyword"},brackets:{pattern:/\[[^\]]+\]/,inside:{punctuation:/\[|\]/,variable:/[\s\S]+/}},punctuation:/[!"#%&':()*+,.\/;<=>@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},e.hooks.add("before-tokenize",(function(t){var n=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;e.languages["markup-templating"].buildPlaceholders(t,"handlebars",n)})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"handlebars")})),e.languages.hbs=e.languages.handlebars}(i),i.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},i.languages.webmanifest=i.languages.json,i.languages.less=i.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),i.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}}),i.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/},i.languages.objectivec=i.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete i.languages.objectivec["class-name"],i.languages.objc=i.languages.objectivec,i.languages.ocaml={comment:{pattern:/\(\*[\s\S]*?\*\)/,greedy:!0},char:{pattern:/'(?:[^\\\r\n']|\\(?:.|[ox]?[0-9a-f]{1,3}))'/i,greedy:!0},string:[{pattern:/"(?:\\(?:[\s\S]|\r\n)|[^\\\r\n"])*"/,greedy:!0},{pattern:/\{([a-z_]*)\|[\s\S]*?\|\1\}/,greedy:!0}],number:[/\b(?:0b[01][01_]*|0o[0-7][0-7_]*)\b/i,/\b0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]*)?(?:p[+-]?\d[\d_]*)?(?!\w)/i,/\b\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?\d[\d_]*)?(?!\w)/i],directive:{pattern:/\B#\w+/,alias:"property"},label:{pattern:/\B~\w+/,alias:"property"},"type-variable":{pattern:/\B'\w+/,alias:"function"},variant:{pattern:/`\w+/,alias:"symbol"},keyword:/\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|nonrec|object|of|open|private|rec|sig|struct|then|to|try|type|val|value|virtual|when|where|while|with)\b/,boolean:/\b(?:false|true)\b/,"operator-like-punctuation":{pattern:/\[[<>|]|[>|]\]|\{<|>\}/,alias:"punctuation"},operator:/\.[.~]|:[=>]|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,punctuation:/;;|::|[(){}\[\].,:;#]|\b_\b/},i.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},i.languages.python["string-interpolation"].inside["interpolation"].inside.rest=i.languages.python,i.languages.py=i.languages.python,i.languages.reason=i.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),i.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete i.languages.reason["function"],function(e){e.languages.sass=e.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),e.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete e.languages.sass.atrule;var t=/\$[-\w]+|#\{\$[-\w]+\}/,n=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];e.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:t,operator:n}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:t,operator:n,important:e.languages.sass.important}}}),delete e.languages.sass.property,delete e.languages.sass.important,e.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})}(i),i.languages.scss=i.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),i.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),i.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),i.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),i.languages.scss["atrule"].inside.rest=i.languages.scss,function(e){var t={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},n={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},r={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:t,number:n,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:t,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:n,punctuation:/[{}()\[\];:,]/};r["interpolation"]={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:r}},r["func"]={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:r}},e.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:r}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:r}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:r}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:r.interpolation}},rest:r}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:r.interpolation,comment:r.comment,punctuation:/[{},]/}},func:r.func,string:r.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:r.interpolation,punctuation:/[{}()\[\];:.]/}}(i),function(e){var t=e.util.clone(e.languages.typescript);e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx["parameter"],delete e.languages.tsx["literal-property"];var n=e.languages.tsx.tag;n.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+n.pattern.source+")",n.pattern.flags),n.lookbehind=!0}(i),i.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/};var u=i,l={plain:{backgroundColor:"#2a2734",color:"#9a86fd"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#6c6783"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#e09142"}},{types:["property","function"],style:{color:"#9a86fd"}},{types:["tag-id","selector","atrule-id"],style:{color:"#eeebff"}},{types:["attr-name"],style:{color:"#c4b9fe"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule","placeholder","variable"],style:{color:"#ffcc99"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#c4b9fe"}}]},c=l,s={Prism:u,theme:c};function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(){return d=Object.assign||function(e){for(var t=1;t0&&e[n-1]===t?e:e.concat(t)},m=function(e){var t=[[]],n=[e],r=[0],o=[e.length],a=0,i=0,u=[],l=[u];while(i>-1){while((a=r[i]++)0?s:["plain"],c=d):(s=v(s,d.type),d.alias&&(s=v(s,d.alias)),c=d.content),"string"===typeof c){var m=c.split(p),g=m.length;u.push({types:s,content:m[0]});for(var y=1;ye.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?arguments[1]:void 0)}})},PynX:function(e,t,n){var r=n("KZF9");r("dispose")},Q2d3:function(e,t,n){"use strict";function r(){var e=o(n("ahKI"));return r=function(){return e},e}function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;t["default"]=r()["default"].createContext({config:{mode:"doc",title:"",navs:{},menus:{},locales:[],repository:{branch:"master"},theme:{}},meta:{title:""},menu:[],nav:[],base:"",routes:[],apis:{},demos:{}})},QHn5:function(e,t,n){var r=n("qyeh"),o=n("mxPn");e.exports=r?o:function(e){return Map.prototype.entries.call(e)}},QKCj:function(e,t,n){n("ax/v")},QQXB:function(e,t,n){"use strict";(function(e){var n=function(){if("undefined"!==typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype["delete"]=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n0},e.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),s?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t,r=c.some((function(e){return!!~n.indexOf(e)}));r&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),d=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),A="undefined"!==typeof WeakMap?new WeakMap:new n,T=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=f.getInstance(),r=new C(t,n,this);A.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach((function(e){T.prototype[e]=function(){var t;return(t=A.get(this))[e].apply(t,arguments)}}));var P=function(){return"undefined"!==typeof o.ResizeObserver?o.ResizeObserver:T}();t["a"]=P}).call(this,n("LS9I"))},QWtl:function(e,t,n){var r,o=n("sErw"),a=n("DS72"),i=n("AqOu"),u=n("Y3cF"),l=n("RtP/"),c=n("73fw"),s=n("8i6t"),f=">",d="<",p="prototype",h="script",v=s("IE_PROTO"),m=function(){},g=function(e){return d+h+f+e+d+"/"+h+f},y=function(e){e.write(g("")),e.close();var t=e.parentWindow.Object;return e=null,t},b=function(){var e,t=c("iframe"),n="java"+h+":";return t.style.display="none",l.appendChild(t),t.src=String(n),e=t.contentWindow.document,e.open(),e.write(g("document.F=Object")),e.close(),e.F},w=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(t){}w=r?y(r):b();var e=i.length;while(e--)delete w[p][i[e]];return w()};u[v]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(m[p]=o(e),n=new m,m[p]=null,n[v]=e):n=w(),void 0===t?n:a(n,t)}},QZNO:function(e,t,n){var r=n("OOCw"),o=n("6SQG");r({global:!0},{globalThis:o})},Qf6j:function(e,t,n){},QiOl:function(e,t,n){"use strict";var r=n("5yEw"),o=n("elB0");e.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},QkOx:function(e,t,n){"use strict";n("jYqw");var r=n("uF/W"),o=n("h+/6"),a=n("3Hes"),i=n("A2zS"),u=n("MZA9"),l=a("species"),c=!o((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$")})),s=function(){return"$0"==="a".replace(/./,"$0")}(),f=a("replace"),d=function(){return!!/./[f]&&""===/./[f]("a","$0")}(),p=!o((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));e.exports=function(e,t,n,f){var h=a(e),v=!o((function(){var t={};return t[h]=function(){return 7},7!=""[e](t)})),m=v&&!o((function(){var t=!1,n=/a/;return"split"===e&&(n={},n.constructor={},n.constructor[l]=function(){return n},n.flags="",n[h]=/./[h]),n.exec=function(){return t=!0,null},n[h](""),!t}));if(!v||!m||"replace"===e&&(!c||!s||d)||"split"===e&&!p){var g=/./[h],y=n(h,""[e],(function(e,t,n,r,o){return t.exec===i?v&&!o?{done:!0,value:g.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),{REPLACE_KEEPS_$0:s,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:d}),b=y[0],w=y[1];r(String.prototype,e,b),r(RegExp.prototype,h,2==t?function(e,t){return w.call(e,this,t)}:function(e){return w.call(e,this)})}f&&u(RegExp.prototype[h],"sham",!0)}},Qkfr:function(e,t,n){"use strict";var r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.target,r=void 0===n?document.body:n,o=document.createElement("textarea"),a=document.activeElement;o.value=e,o.setAttribute("readonly",""),o.style.contain="strict",o.style.position="absolute",o.style.left="-9999px",o.style.fontSize="12pt";var i=document.getSelection(),u=!1;i.rangeCount>0&&(u=i.getRangeAt(0)),r.append(o),o.select(),o.selectionStart=0,o.selectionEnd=e.length;var l=!1;try{l=document.execCommand("copy")}catch(c){}return o.remove(),u&&(i.removeAllRanges(),i.addRange(u)),a&&a.focus(),l};e.exports=r,e.exports["default"]=r},QlVd:function(e,t,n){"use strict";var r=n("OOCw"),o=n("dz2h"),a=n("z43i"),i=n("upgS"),u=n("lkgX"),l=n("sErw"),c=n("kk5s"),s=n("q43B"),f=n("rfqm"),d=n("MZA9"),p=n("h+/6"),h=n("3Hes"),v=n("ZT9G"),m=n("o1x9"),g=n("uJNS"),y=n("qyeh"),b=h("matchAll"),w="RegExp String",E=w+" Iterator",O=g.set,k=g.getterFor(E),S=RegExp.prototype,x=S.exec,j="".matchAll,C=!!j&&!p((function(){"a".matchAll(/./)})),A=function(e,t){var n,r=e.exec;if("function"==typeof r){if(n=r.call(e,t),"object"!=typeof n)throw TypeError("Incorrect exec result");return n}return x.call(e,t)},T=o((function(e,t,n,r){O(this,{type:E,regexp:e,string:t,global:n,unicode:r,done:!1})}),w,(function(){var e=k(this);if(e.done)return{value:void 0,done:!0};var t=e.regexp,n=e.string,r=A(t,n);return null===r?{value:void 0,done:e.done=!0}:e.global?(""==String(r[0])&&(t.lastIndex=m(n,i(t.lastIndex),e.unicode)),{value:r,done:!1}):(e.done=!0,{value:r,done:!1})})),P=function(e){var t,n,r,o,a,u,c=l(this),s=String(e);return t=v(c,RegExp),n=c.flags,void 0===n&&c instanceof RegExp&&!("flags"in S)&&(n=f.call(c)),r=void 0===n?"":String(n),o=new t(t===RegExp?c.source:c,r),a=!!~r.indexOf("g"),u=!!~r.indexOf("u"),o.lastIndex=i(c.lastIndex),new T(o,s,a,u)};r({target:"String",proto:!0,forced:C},{matchAll:function(e){var t,n,r,o,i=a(this);if(null!=e){if(s(e)&&(t=String(a("flags"in S?e.flags:f.call(e))),!~t.indexOf("g")))throw TypeError("`.matchAll` does not allow non-global regexes");if(C)return j.apply(i,arguments);if(r=e[b],void 0===r&&y&&"RegExp"==c(e)&&(r=P),null!=r)return u(r).call(e,i)}else if(C)return j.apply(i,arguments);return n=String(i),o=new RegExp(e,"g"),y?P.call(o,n):o[b](n)}}),y||b in S||d(S,b,P)},QwZf:function(e,t,n){"use strict";n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return E}));var r=n("Bm2L"),o=n("DwEz"),a=n("ahKI"),i=n.n(a),u=n("ptaF"),l=n("1N6n"),c=n("RYX2"),s=n("g8ur");i.a.Component;i.a.Component;var f=function(e,t){return"function"===typeof e?e(t):e},d=function(e,t){return"string"===typeof e?Object(u["c"])(e,null,null,t):e},p=function(e){return e},h=i.a.forwardRef;function v(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}"undefined"===typeof h&&(h=p);var m=h((function(e,t){var n=e.innerRef,r=e.navigate,o=e.onClick,a=Object(c["a"])(e,["innerRef","navigate","onClick"]),u=a.target,s=Object(l["a"])({},a,{onClick:function(e){try{o&&o(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||u&&"_self"!==u||v(e)||(e.preventDefault(),r())}});return s.ref=p!==h&&t||n,i.a.createElement("a",s)}));var g=h((function(e,t){var n=e.component,o=void 0===n?m:n,a=e.replace,u=e.to,v=e.innerRef,g=Object(c["a"])(e,["component","replace","to","innerRef"]);return i.a.createElement(r["h"].Consumer,null,(function(e){e||Object(s["a"])(!1);var n=e.history,r=d(f(u,e.location),e.location),c=r?n.createHref(r):"",m=Object(l["a"])({},g,{href:c,navigate:function(){var t=f(u,e.location),r=a?n.replace:n.push;r(t)}});return p!==h?m.ref=t||v:m.innerRef=v,i.a.createElement(o,m)}))})),y=function(e){return e},b=i.a.forwardRef;function w(){for(var e=arguments.length,t=new Array(e),n=0;n=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},"RtP/":function(e,t,n){var r=n("eyaU");e.exports=r("document","documentElement")},RzMS:function(e,t,n){var r=n("h+/6"),o=/#|\.prototype\./,a=function(e,t){var n=u[i(e)];return n==c||n!=l&&("function"==typeof t?r(t):!!t)},i=a.normalize=function(e){return String(e).replace(o,".").toLowerCase()},u=a.data={},l=a.NATIVE="N",c=a.POLYFILL="P";e.exports=a},S4pK:function(e,t){function n(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}e.exports=n},SCBt:function(e,t,n){var r=n("KZF9");r("match")},SD1J:function(e,t,n){var r=n("q43B");e.exports=function(e){if(r(e))throw TypeError("The method doesn't accept regular expressions");return e}},SFyC:function(e,t,n){"use strict";var r=n("OOCw"),o=n("erIx"),a=n("ANLo"),i=n("upgS"),u=n("OdMF"),l=n("63eO"),c=n("tmip"),s=n("THrr"),f=n("7/pz"),d=s("splice"),p=f("splice",{ACCESSORS:!0,0:0,1:2}),h=Math.max,v=Math.min,m=9007199254740991,g="Maximum allowed length exceeded";r({target:"Array",proto:!0,forced:!d||!p},{splice:function(e,t){var n,r,s,f,d,p,y=u(this),b=i(y.length),w=o(e,b),E=arguments.length;if(0===E?n=r=0:1===E?(n=0,r=b-w):(n=E-2,r=v(h(a(t),0),b-w)),b+n-r>m)throw TypeError(g);for(s=l(y,r),f=0;fb-r+n;f--)delete y[f-1]}else if(n>r)for(f=b-r;f>w;f--)d=f+r-1,p=f+n-1,d in y?y[p]=y[d]:delete y[p];for(f=0;f1?arguments[1]:void 0,3),o=new(c(t,a("Map"))),d=u(o.set);return f(n,(function(e,n){d.call(o,r(n,e,t),n)}),void 0,!0,!0),o}})},SHha:function(e,t,n){"use strict";var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function i(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function u(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map((function(e){return t[e]}));if("0123456789"!==r.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(a){return!1}}e.exports=u()?Object.assign:function(e,t){for(var n,u,l=i(e),c=1;c=51||!r((function(){var t=[],n=t.constructor={};return n[i]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},THzI:function(e,t,n){"use strict";var r=n("qyeh"),o=n("6SQG"),a=n("h+/6");e.exports=r||!a((function(){var e=Math.random();__defineSetter__.call(null,e,(function(){})),delete o[e]}))},TMNz:function(e,t,n){"use strict";var r=n("OOCw"),o=n("M+Sl").map,a=n("THrr"),i=n("7/pz"),u=a("map"),l=i("map");r({target:"Array",proto:!0,forced:!u||!l},{map:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},Td1h:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var r=n("k+Ei"),o=n("CxkM");t["default"]=(0,o.LinkWrapper)(r.NavLink)},Teq4:function(e,t,n){"use strict";n.r(t);var r=n("ahKI"),o=n.n(r),a=n("F4XJ"),i=n("PAHk"),u=o.a.memo((e=>{e.demos;return o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:"markdown"},o.a.createElement("h1",{id:"use-in-class-components"},o.a.createElement(a["AnchorLink"],{to:"#use-in-class-components","aria-hidden":"true",tabIndex:-1},o.a.createElement("span",{className:"icon icon-link"})),"Use in Class Components"),o.a.createElement("p",null,"Although the store is using the Hooks syntax, you can still get and subscribe to the store in the class component, which relies on the ",o.a.createElement("code",null,"withStore")," higher-order component provided by hox:"),o.a.createElement(i["a"],{code:"class App extends Component {\n render() {\n const { counter } = this.props\n\n return (\n
\n

{counter.count}

\n \n
\n )\n }\n}\n\nexport default withStore(useCounterStore, counter => ({\n counter,\n}))(App)",lang:"jsx"}),o.a.createElement("p",null,o.a.createElement("code",null,"withStore")," is used to use store in class components, its usage is similar to ",o.a.createElement("code",null,"connect")," in react-redux."),o.a.createElement("p",null,"The first parameter ",o.a.createElement("code",null,"useStore")," is used to describe which stores need to be obtained. You can pass only one ",o.a.createElement("code",null,"useStore")," or multiple ones in the form of an array."),o.a.createElement("p",null,"The second parameter ",o.a.createElement("code",null,"mapStoreToProps")," is used to define the mapping rules from store to component ",o.a.createElement("code",null,"props"),"."),o.a.createElement(i["a"],{code:"declare function withStore(\n useStore,\n mapStoreToProps: (store, ownProps) => object\n): (C: ComponentType) => ComponentType\n\ntype StoreMap = {\n [key: string]: unknown\n}",lang:"typescript"}),o.a.createElement("p",null,"Example:"),o.a.createElement(i["a"],{code:"// \u8ba2\u9605\u5355\u4e2a store\nexport default withStore(useCounterStore, counter => ({\n count: counter.count\n}))(App)\n\n// \u8ba2\u9605\u591a\u4e2a store\nexport default withStore(\n [useCounterStore, useTimerStore],\n ([counter, timer]) => ({\n count: counter.count,\n timer\n })\n)(App)",lang:"js"})))}));t["default"]=e=>{var t=o.a.useContext(a["context"]),n=t.demos;return o.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&a["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),o.a.createElement(u,{demos:n})}},TxBV:function(e,t,n){var r=n("uF/W");e.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},TxDi:function(e,t,n){var r=n("3Hes"),o=r("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[o]=!1,"/./"[e](t)}catch(r){}}return!1}},U5Fb:function(e,t,n){"use strict";n.r(t);var r=n("ahKI"),o=n.n(r),a=n("F4XJ"),i=n("PAHk"),u=o.a.memo((e=>{e.demos;return o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:"markdown"},o.a.createElement("h1",{id:"\u5982\u4f55\u4ece-v1-\u8fc1\u79fb\u5230-v2"},o.a.createElement(a["AnchorLink"],{to:"#\u5982\u4f55\u4ece-v1-\u8fc1\u79fb\u5230-v2","aria-hidden":"true",tabIndex:-1},o.a.createElement("span",{className:"icon icon-link"})),"\u5982\u4f55\u4ece v1 \u8fc1\u79fb\u5230 v2"),o.a.createElement("p",null,"\u9996\u5148\u5347\u7ea7 npm \u5305\u5230 v2\uff0c\u4f8b\u5982\uff1a"),o.a.createElement(i["a"],{code:"npm install --save hox@latest",lang:"shell"}),o.a.createElement("h2",{id:"createmodel"},o.a.createElement(a["AnchorLink"],{to:"#createmodel","aria-hidden":"true",tabIndex:-1},o.a.createElement("span",{className:"icon icon-link"})),"createModel"),o.a.createElement("p",null,o.a.createElement("code",null,"createModel")," \u5728 v2 \u4e2d\u5bf9\u5e94\u7740 ",o.a.createElement("code",null,"createGlobalStore"),"\uff0c\u56e0\u6b64\u4f60\u9700\u8981\u6279\u91cf\u628a ",o.a.createElement("code",null,"createModel")," \u66ff\u6362\u4e3a ",o.a.createElement("code",null,"createGlobalStore"),"\uff1a"),o.a.createElement(i["a"],{code:"createModel(() => {\n // ...\n})\n\n// \u2b07\ufe0f\n\ncreateGlobalStore(() => {\n // ...\n})",lang:"js"}),o.a.createElement("p",null,"\u540c\u65f6\uff0c",o.a.createElement("code",null,"createGlobalStore")," \u5e76\u4e0d\u652f\u6301\u7b2c\u4e8c\u4e2a\u989d\u5916\u7684\u53c2\u6570\uff08\u5728\u4e4b\u524d\u7684 ",o.a.createElement("code",null,"createModel")," \u4e2d\uff0c\u8fd9\u4e2a\u53c2\u6570\u4f1a\u88ab\u4f20\u9012\u7ed9 Hook \u51fd\u6570\uff09\uff0c\u4f46\u662f\u4e0d\u8981\u62c5\u5fc3\uff0c\u4f60\u53ef\u4ee5\u76f4\u63a5\u81ea\u5df1\u5305\u88f9\u4e00\u5c42\u533f\u540d\u51fd\u6570\uff0c\u6765\u5b9e\u73b0\u540c\u6837\u7684\u6548\u679c\uff1a"),o.a.createElement(i["a"],{code:"function useCounter(initial) {\n // ...\n}\ncreateModel(useCounter, 5)\n\n// \u2b07\ufe0f\n\nfunction useCounter(initial) {\n // ...\n}\ncreateGlobalStore(() => useCounter(5))",lang:"js"}),o.a.createElement("h2",{id:"hoxroot"},o.a.createElement(a["AnchorLink"],{to:"#hoxroot","aria-hidden":"true",tabIndex:-1},o.a.createElement("span",{className:"icon icon-link"})),"HoxRoot"),o.a.createElement("p",null,"\u5728 v2 \u7248\u672c\u7684 hox \u4e2d\uff0c\u9700\u8981\u901a\u8fc7 ",o.a.createElement("code",null,"HoxRoot")," \u7ec4\u4ef6\u6765\u6536\u96c6\u548c\u6267\u884c\u5168\u5c40 Store\uff0c\u56e0\u6b64\u4f60\u9700\u8981\u5728\u6574\u4e2a\u5e94\u7528\u7684\u6700\u5916\u5c42\u5305\u88f9\u4e00\u4e2a ",o.a.createElement("code",null,"HoxRoot"),"\uff1a"),o.a.createElement(i["a"],{code:"\n \n",lang:"jsx"}),o.a.createElement("p",null,"\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u5728\u540c\u4e00\u4e2a\u6d4f\u89c8\u5668\u9875\u9762\u4e0a\uff0c",o.a.createElement("strong",null,"\u53ea\u80fd\u540c\u65f6\u6e32\u67d3\u4e00\u4e2a HoxRoot"),"\u3002"),o.a.createElement("h2",{id:"uselazymodel"},o.a.createElement(a["AnchorLink"],{to:"#uselazymodel","aria-hidden":"true",tabIndex:-1},o.a.createElement("span",{className:"icon icon-link"})),"useLazyModel"),o.a.createElement("p",null,o.a.createElement("code",null,"useLazyModel")," \u5728 hox v2 \u4e2d\u5df2\u88ab\u79fb\u9664\uff0c\u5e76\u4e14\u76ee\u524d\u6ca1\u6709\u53ef\u7b49\u6548\u66ff\u4ee3\u7684\u51fd\u6570\uff0c\u4e00\u822c\u60c5\u51b5\u4e0b\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7\u5c40\u90e8 Store \u6765\u8fbe\u5230\u7684\u540c\u6837\u7684\u76ee\u7684\u3002"),o.a.createElement("h2",{id:"\u5b8c\u6210"},o.a.createElement(a["AnchorLink"],{to:"#\u5b8c\u6210","aria-hidden":"true",tabIndex:-1},o.a.createElement("span",{className:"icon icon-link"})),"\u5b8c\u6210"),o.a.createElement("p",null,"\u73b0\u5728\u53ef\u4ee5\u542f\u52a8\u4e00\u4e0b\u9879\u76ee\u8bd5\u8bd5\u770b\u770b\u4e86\uff0c\u5982\u679c\u4f60\u6309\u7167\u4e0a\u9762\u7684\u6d41\u7a0b\u8fdb\u884c\u64cd\u4f5c\u540e\uff0c\u9047\u5230\u4e86\u5947\u602a\u7684\u95ee\u9898\uff0c\u53ef\u4ee5\u6765 GitHub \u4ed3\u5e93\u4e2d\u63d0\u4ea4 ",o.a.createElement(a["Link"],{to:"https://github.com/umijs/hox/issues"},"issue"),"\u3002")))}));t["default"]=e=>{var t=o.a.useContext(a["context"]),n=t.demos;return o.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&a["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),o.a.createElement(u,{demos:n})}},U5u0:function(e,t,n){var r=n("KZF9");r("search")},UDnj:function(e,t,n){var r=n("KZF9");r("toStringTag")},UMve:function(e,t,n){"use strict";var r=n("OOCw"),o=n("qyeh"),a=n("eyaU"),i=n("sErw"),u=n("lkgX"),l=n("v3z7"),c=n("ZT9G"),s=n("R8Xy"),f=n("uZx/");r({target:"Set",proto:!0,real:!0,forced:o},{filter:function(e){var t=i(this),n=s(t),r=l(e,arguments.length>1?arguments[1]:void 0,3),o=new(c(t,a("Set"))),d=u(o.add);return f(n,(function(e){r(e,e,t)&&d.call(o,e)}),void 0,!1,!0),o}})},UQib:function(e,t,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,a=o&&!r.call({1:2},1);t.f=a?function(e){var t=o(this,e);return!!t&&t.enumerable}:r},UXr9:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("ahKI"),o=n.n(r),a=n("ghVC");function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return o.a.Children.forEach(e,(function(e){(void 0!==e&&null!==e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(i(e)):Object(a["isFragment"])(e)&&e.props?n=n.concat(i(e.props.children,t)):n.push(e))})),n}},Us7a:function(e,t,n){var r=n("upgS"),o=n("jax1"),a=n("z43i"),i=Math.ceil,u=function(e){return function(t,n,u){var l,c,s=String(a(t)),f=s.length,d=void 0===u?" ":String(u),p=r(n);return p<=f||""==d?s:(l=p-f,c=o.call(d,i(l/d.length)),c.length>l&&(c=c.slice(0,l)),e?s+c:c+s)}};e.exports={start:u(!1),end:u(!0)}},Uv1i:function(e,t,n){var r=n("GXoa");r("Int32",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},V0hj:function(e,t,n){var r=n("O8qS");e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},V96g:function(e,t,n){"use strict";var r=n("OOCw"),o=n("qyeh"),a=n("eyaU"),i=n("sErw"),u=n("lkgX"),l=n("ZT9G"),c=n("uZx/");r({target:"Set",proto:!0,real:!0,forced:o},{union:function(e){var t=i(this),n=new(l(t,a("Set")))(t);return c(e,u(n.add),n),n}})},VA8o:function(e,t,n){var r=n("h+/6");e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},VdqM:function(e,t){function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}e.exports=n},Vg85:function(e,t){e.exports="\t\n\v\f\r \xa0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff"},VnLQ:function(e,t,n){"use strict";var r=n("OOCw"),o=n("lkgX"),a=n("eyaU"),i=n("8d12"),u=n("86T+"),l=n("uZx/"),c="No one promise resolved";r({target:"Promise",stat:!0},{any:function(e){var t=this,n=i.f(t),r=n.resolve,s=n.reject,f=u((function(){var n=o(t.resolve),i=[],u=0,f=1,d=!1;l(e,(function(e){var o=u++,l=!1;i.push(void 0),f++,n.call(t,e).then((function(e){l||d||(d=!0,r(e))}),(function(e){l||d||(l=!0,i[o]=e,--f||s(new(a("AggregateError"))(i,c)))}))})),--f||s(new(a("AggregateError"))(i,c))}));return f.error&&s(f.value),n.promise}})},Vpmu:function(e,t,n){},VqGX:function(e,t,n){var r=n("6SQG"),o=n("CsJM").trim,a=n("Vg85"),i=r.parseInt,u=/^[+-]?0[Xx]/,l=8!==i(a+"08")||22!==i(a+"0x16");e.exports=l?function(e,t){var n=o(String(e));return i(n,t>>>0||(u.test(n)?16:10))}:i},W6X5:function(e,t){function n(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}e.exports=n},WAeE:function(e,t,n){var r=n("qyeh"),o=n("l9Lh");(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:r?"pure":"global",copyright:"\xa9 2020 Denis Pushkarev (zloirock.ru)"})},WAtT:function(e,t,n){"use strict";var r=n("2/yZ"),o=n("i97Z"),a=n("CT9t"),i=n("k2w+"),u=n("BRxd"),l=n.n(u),c=n("Y7rC"),s=n("sQaW"),f=n("ahKI"),d=n("yuw4"),p=f["createContext"]({});var h=n("SauQ"),v=n("KcUJ"),m=n("bAWc"),g=n("158W"),y=function(e){Object(m["a"])(n,e);var t=Object(g["a"])(n);function n(){return Object(h["a"])(this,n),t.apply(this,arguments)}return Object(v["a"])(n,[{key:"render",value:function(){return this.props.children}}]),n}(f["Component"]),b=y,w=n("SsNn"),E="none",O="appear",k="enter",S="leave",x="none",j="prepare",C="start",A="active",T="end",P="prepared",_=n("Sdok");function R(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function M(e,t){var n={animationend:R("Animation","AnimationEnd"),transitionend:R("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var N=M(Object(_["a"])(),"undefined"!==typeof window?window:{}),I={};if(Object(_["a"])()){var L=document.createElement("div");I=L.style}var F={};function D(e){if(F[e])return F[e];var t=N[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o1&&void 0!==arguments[1]?arguments[1]:2;t();var a=Object(q["a"])((function(){o<=1?r({isCanceled:function(){return a!==e.current}}):n(r,o-1)}));e.current=a}return f["useEffect"]((function(){return function(){t()}}),[]),[n,t]},Y=[j,C,A,T],Q=[j,P],Z=!1,J=!0;function ee(e){return e===A||e===T}var te=function(e,t,n){var r=Object(w["a"])(x),o=Object(a["a"])(r,2),i=o[0],u=o[1],l=X(),c=Object(a["a"])(l,2),s=c[0],d=c[1];function p(){u(j,!0)}var h=t?Q:Y;return K((function(){if(i!==x&&i!==T){var e=h.indexOf(i),t=h[e+1],r=n(i);r===Z?u(t,!0):t&&s((function(e){function n(){e.isCanceled()||u(t,!0)}!0===r?n():Promise.resolve(r).then(n)}))}}),[e,i]),f["useEffect"]((function(){return function(){d()}}),[]),[p,i]};function ne(e,t,n,i){var u=i.motionEnter,l=void 0===u||u,c=i.motionAppear,s=void 0===c||c,d=i.motionLeave,p=void 0===d||d,h=i.motionDeadline,v=i.motionLeaveImmediately,m=i.onAppearPrepare,g=i.onEnterPrepare,y=i.onLeavePrepare,b=i.onAppearStart,x=i.onEnterStart,T=i.onLeaveStart,_=i.onAppearActive,R=i.onEnterActive,M=i.onLeaveActive,N=i.onAppearEnd,I=i.onEnterEnd,L=i.onLeaveEnd,F=i.onVisibleChanged,D=Object(w["a"])(),z=Object(a["a"])(D,2),B=z[0],U=z[1],H=Object(w["a"])(E),W=Object(a["a"])(H,2),G=W[0],$=W[1],q=Object(w["a"])(null),X=Object(a["a"])(q,2),Y=X[0],Q=X[1],ne=Object(f["useRef"])(!1),re=Object(f["useRef"])(null);function oe(){return n()}var ae=Object(f["useRef"])(!1);function ie(){$(E,!0),Q(null,!0)}function ue(e){var t=oe();if(!e||e.deadline||e.target===t){var n,r=ae.current;G===O&&r?n=null===N||void 0===N?void 0:N(t,e):G===k&&r?n=null===I||void 0===I?void 0:I(t,e):G===S&&r&&(n=null===L||void 0===L?void 0:L(t,e)),G!==E&&r&&!1!==n&&ie()}}var le=V(ue),ce=Object(a["a"])(le,1),se=ce[0],fe=function(e){var t,n,o;switch(e){case O:return t={},Object(r["a"])(t,j,m),Object(r["a"])(t,C,b),Object(r["a"])(t,A,_),t;case k:return n={},Object(r["a"])(n,j,g),Object(r["a"])(n,C,x),Object(r["a"])(n,A,R),n;case S:return o={},Object(r["a"])(o,j,y),Object(r["a"])(o,C,T),Object(r["a"])(o,A,M),o;default:return{}}},de=f["useMemo"]((function(){return fe(G)}),[G]),pe=te(G,!e,(function(e){if(e===j){var t=de[j];return t?t(oe()):Z}var n;me in de&&Q((null===(n=de[me])||void 0===n?void 0:n.call(de,oe(),null))||null);return me===A&&(se(oe()),h>0&&(clearTimeout(re.current),re.current=setTimeout((function(){ue({deadline:!0})}),h))),me===P&&ie(),J})),he=Object(a["a"])(pe,2),ve=he[0],me=he[1],ge=ee(me);ae.current=ge,K((function(){U(t);var n,r=ne.current;ne.current=!0,!r&&t&&s&&(n=O),r&&t&&l&&(n=k),(r&&!t&&p||!r&&v&&!t&&p)&&(n=S);var o=fe(n);n&&(e||o[j])?($(n),ve()):$(E)}),[t]),Object(f["useEffect"])((function(){(G===O&&!s||G===k&&!l||G===S&&!p)&&$(E)}),[s,l,p]),Object(f["useEffect"])((function(){return function(){ne.current=!1,clearTimeout(re.current)}}),[]);var ye=f["useRef"](!1);Object(f["useEffect"])((function(){B&&(ye.current=!0),void 0!==B&&G===E&&((ye.current||B)&&(null===F||void 0===F||F(B)),ye.current=!0)}),[B,G]);var be=Y;return de[j]&&me===C&&(be=Object(o["a"])({transition:"none"},be)),[G,me,be,null!==B&&void 0!==B?B:t]}function re(e){var t=e;function n(e,n){return!(!e.motionName||!t||!1===n)}"object"===Object(i["a"])(e)&&(t=e.transitionSupport);var u=f["forwardRef"]((function(e,t){var i=e.visible,u=void 0===i||i,d=e.removeOnLeave,h=void 0===d||d,v=e.forceRender,m=e.children,g=e.motionName,y=e.leavedClassName,w=e.eventProps,O=f["useContext"](p),k=O.motion,S=n(e,k),x=Object(f["useRef"])(),A=Object(f["useRef"])();function T(){try{return x.current instanceof HTMLElement?x.current:Object(c["a"])(A.current)}catch(e){return null}}var P=ne(S,u,T,e),_=Object(a["a"])(P,4),R=_[0],M=_[1],N=_[2],I=_[3],L=f["useRef"](I);I&&(L.current=!0);var F,D=f["useCallback"]((function(e){x.current=e,Object(s["b"])(t,e)}),[t]),z=Object(o["a"])(Object(o["a"])({},w),{},{visible:u});if(m)if(R===E)F=I?m(Object(o["a"])({},z),D):!h&&L.current&&y?m(Object(o["a"])(Object(o["a"])({},z),{},{className:y}),D):v||!h&&!y?m(Object(o["a"])(Object(o["a"])({},z),{},{style:{display:"none"}}),D):null;else{var B,U;M===j?U="prepare":ee(M)?U="active":M===C&&(U="start");var H=G(g,"".concat(R,"-").concat(U));F=m(Object(o["a"])(Object(o["a"])({},z),{},{className:l()(G(g,R),(B={},Object(r["a"])(B,H,H&&U),Object(r["a"])(B,g,"string"===typeof g),B)),style:N}),D)}else F=null;if(f["isValidElement"](F)&&Object(s["c"])(F)){var W=F,V=W.ref;V||(F=f["cloneElement"](F,{ref:D}))}return f["createElement"](b,{ref:A},F)}));return u.displayName="CSSMotion",u}var oe=re(U),ae=n("XCNo"),ie=n("KSJ2"),ue="add",le="keep",ce="remove",se="removed";function fe(e){var t;return t=e&&"object"===Object(i["a"])(e)&&"key"in e?e:{key:e},Object(o["a"])(Object(o["a"])({},t),{},{key:String(t.key)})}function de(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map(fe)}function pe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,a=t.length,i=de(e),u=de(t);i.forEach((function(e){for(var t=!1,i=r;i1}));return c.forEach((function(e){n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==ce})),n.forEach((function(t){t.key===e&&(t.status=le)}))})),n}var he=["component","children","onVisibleChanged","onAllRemoved"],ve=["status"],me=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function ge(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:oe,n=function(e){Object(m["a"])(a,e);var n=Object(g["a"])(a);function a(){var e;Object(h["a"])(this,a);for(var t=arguments.length,i=new Array(t),u=0;ue.length)&&(t=e.length);for(var n=0,r=new Array(t);n,\n document.getElementById('root'),\n);"):"react-dom/client"===e?"/**\n* This is an auto-generated demo by dumi\n* if you think it is not working as expected,\n* please report the issue at\n* https://github.com/umijs/dumi/issues\n**/\nimport React from 'react';\nimport { createRoot } from \"react-dom/client\";\n".concat(t,'\nimport App from "./App";\n\nconst rootElement = document.getElementById("root");\nconst root = createRoot(rootElement);\n\nroot.render();'):void 0};function h(e){var t=document.createElement("span");t.innerHTML=e;var n=t.textContent;return t.remove(),n}function v(e){var t,n=Boolean(e.sources._.tsx),o=n?".tsx":".jsx",i={},u={},l=Object.values(e.dependencies).filter((function(e){return e.css})),c="App".concat(o),s="index".concat(o);return Object.entries(e.dependencies).forEach((function(e){var t=r(e,2),n=t[0],o=t[1].version;u[n]=o})),u["react-dom"]||(u["react-dom"]=u.react||"latest"),i["sandbox.config.json"]={content:JSON.stringify({template:n?"create-react-app-typescript":"create-react-app"},null,2),isBinary:!1},i["package.json"]={content:JSON.stringify({name:e.title,description:h(e.description||"An auto-generated demo by dumi"),main:s,dependencies:u,devDependencies:n?{typescript:"^3"}:{}},null,2),isBinary:!1},i["index.html"]={content:'
',isBinary:!1},i[s]={content:p((null===u||void 0===u||null===(t=u["react-dom"])||void 0===t?void 0:t.startsWith("18."))||"latest"===u.react?"react-dom/client":"react-dom",l.map((function(e){var t=e.css;return"import '".concat(t,"';")})).join("\n")),isBinary:!1},Object.entries(e.sources).forEach((function(e){var t=r(e,2),n=t[0],o=t[1],a=o.tsx,u=o.jsx,l=o.content;i["_"===n?c:n]={content:a||u||l,isBinary:!1}})),(0,a().getParameters)({files:i})}var m=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d,n=(0,o().useState)(),r=i(n,2),a=r[0],u=r[1];return(0,o().useEffect)((function(){if(e){var n=document.createElement("form"),r=document.createElement("input"),o=v(e);return n.method="POST",n.target="_blank",n.style.display="none",n.action=t,n.appendChild(r),n.setAttribute("data-demo",e.title||""),r.name="parameters",r.value=o,document.body.appendChild(n),u((function(){return function(){return n.submit()}})),function(){return n.remove()}}}),[e]),a};t["default"]=m},Wbhx:function(e,t){function n(e){if(Array.isArray(e))return e}e.exports=n},WkS0:function(e,t,n){"use strict";var r,o,a,i=n("zesz"),u=n("MZA9"),l=n("oEsY"),c=n("3Hes"),s=n("qyeh"),f=c("iterator"),d=!1,p=function(){return this};[].keys&&(a=[].keys(),"next"in a?(o=i(i(a)),o!==Object.prototype&&(r=o)):d=!0),void 0==r&&(r={}),s||l(r,f)||u(r,f,p),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:d}},WkeX:function(e,t,n){"use strict";var r=n("CEyi");function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},Wldj:function(e,t,n){"use strict";var r=n("lkgX"),o=n("x+sk"),a=[].slice,i={},u=function(e,t,n){if(!(t in i)){for(var r=[],o=0;os)if(u=l[s++],u!=u)return!0}else for(;c>s;s++)if((e||s in l)&&l[s]===n)return e||s||0;return!e&&-1}};e.exports={includes:i(!0),indexOf:i(!1)}},Ysk6:function(e,t){function n(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}e.exports=n},YtnI:function(e,t,n){"use strict";var r,o=Symbol["for"]("react.element"),a=Symbol["for"]("react.portal"),i=Symbol["for"]("react.fragment"),u=Symbol["for"]("react.strict_mode"),l=Symbol["for"]("react.profiler"),c=Symbol["for"]("react.provider"),s=Symbol["for"]("react.context"),f=Symbol["for"]("react.server_context"),d=Symbol["for"]("react.forward_ref"),p=Symbol["for"]("react.suspense"),h=Symbol["for"]("react.suspense_list"),v=Symbol["for"]("react.memo"),m=Symbol["for"]("react.lazy"),g=Symbol["for"]("react.offscreen");function y(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type,e){case i:case l:case u:case p:case h:return e;default:switch(e=e&&e.$$typeof,e){case f:case s:case d:case m:case v:case c:return e;default:return t}}case a:return t}}}r=Symbol["for"]("react.module.reference"),t.ContextConsumer=s,t.ContextProvider=c,t.Element=o,t.ForwardRef=d,t.Fragment=i,t.Lazy=m,t.Memo=v,t.Portal=a,t.Profiler=l,t.StrictMode=u,t.Suspense=p,t.SuspenseList=h,t.isAsyncMode=function(){return!1},t.isConcurrentMode=function(){return!1},t.isContextConsumer=function(e){return y(e)===s},t.isContextProvider=function(e){return y(e)===c},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return y(e)===d},t.isFragment=function(e){return y(e)===i},t.isLazy=function(e){return y(e)===m},t.isMemo=function(e){return y(e)===v},t.isPortal=function(e){return y(e)===a},t.isProfiler=function(e){return y(e)===l},t.isStrictMode=function(e){return y(e)===u},t.isSuspense=function(e){return y(e)===p},t.isSuspenseList=function(e){return y(e)===h},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===i||e===l||e===u||e===p||e===h||e===g||"object"===typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===v||e.$$typeof===c||e.$$typeof===s||e.$$typeof===d||e.$$typeof===r||void 0!==e.getModuleId)},t.typeOf=y},Yxqv:function(e,t,n){"use strict";var r=n("OOCw"),o=n("qyeh"),a=n("eyaU"),i=n("sErw"),u=n("lkgX"),l=n("ZT9G"),c=n("uZx/");r({target:"Set",proto:!0,real:!0,forced:o},{symmetricDifference:function(e){var t=i(this),n=new(l(t,a("Set")))(t),r=u(n["delete"]),o=u(n.add);return c(e,(function(e){r.call(n,e)||o.call(n,e)})),n}})},"Z0Y+":function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n("Bw9q");function o(e){if(Array.isArray(e))return Object(r["a"])(e)}var a=n("XBKK"),i=n("3fHA");function u(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l(e){return o(e)||Object(a["a"])(e)||Object(i["a"])(e)||u()}},Z67V:function(e,t,n){"use strict";var r=n("r+6h"),o=n("ZGY3"),a=n("OdMF"),i=n("upgS"),u=n("0JbB").f;r&&!("lastItem"in[])&&(u(Array.prototype,"lastItem",{configurable:!0,get:function(){var e=a(this),t=i(e.length);return 0==t?void 0:e[t-1]},set:function(e){var t=a(this),n=i(t.length);return t[0==n?0:n-1]=e}}),o("lastItem"))},ZGY3:function(e,t,n){var r=n("3Hes"),o=n("QWtl"),a=n("0JbB"),i=r("unscopables"),u=Array.prototype;void 0==u[i]&&a.f(u,i,{configurable:!0,value:o(null)}),e.exports=function(e){u[i][e]=!0}},ZIdP:function(e,t,n){var r=n("OOCw"),o=n("1Sp3"),a=n("sErw"),i=o.toKey,u=o.set;r({target:"Reflect",stat:!0},{defineMetadata:function(e,t,n){var r=arguments.length<4?void 0:i(arguments[3]);u(e,t,a(n),r)}})},ZT9G:function(e,t,n){var r=n("sErw"),o=n("lkgX"),a=n("3Hes"),i=a("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||void 0==(n=r(a)[i])?t:o(n)}},ZVkV:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},ZYMV:function(e,t,n){var r=n("ZwOi"),o=Math.abs,a=Math.pow,i=a(2,-52),u=a(2,-23),l=a(2,127)*(2-u),c=a(2,-126),s=function(e){return e+1/i-1/i};e.exports=Math.fround||function(e){var t,n,a=o(e),f=r(e);return al||n!=n?f*(1/0):f*n)}},ZmXH:function(e,t,n){"use strict";var r=n("0JbB").f,o=n("QWtl"),a=n("TxBV"),i=n("v3z7"),u=n("CZSf"),l=n("uZx/"),c=n("vSpU"),s=n("ct0+"),f=n("r+6h"),d=n("gArs").fastKey,p=n("uJNS"),h=p.set,v=p.getterFor;e.exports={getConstructor:function(e,t,n,c){var s=e((function(e,r){u(e,s,t),h(e,{type:t,index:o(null),first:void 0,last:void 0,size:0}),f||(e.size=0),void 0!=r&&l(r,e[c],e,n)})),p=v(t),m=function(e,t,n){var r,o,a=p(e),i=g(e,t);return i?i.value=n:(a.last=i={index:o=d(t,!0),key:t,value:n,previous:r=a.last,next:void 0,removed:!1},a.first||(a.first=i),r&&(r.next=i),f?a.size++:e.size++,"F"!==o&&(a.index[o]=i)),e},g=function(e,t){var n,r=p(e),o=d(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return a(s.prototype,{clear:function(){var e=this,t=p(e),n=t.index,r=t.first;while(r)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete n[r.index],r=r.next;t.first=t.last=void 0,f?t.size=0:e.size=0},delete:function(e){var t=this,n=p(t),r=g(t,e);if(r){var o=r.next,a=r.previous;delete n.index[r.index],r.removed=!0,a&&(a.next=o),o&&(o.previous=a),n.first==r&&(n.first=o),n.last==r&&(n.last=a),f?n.size--:t.size--}return!!r},forEach:function(e){var t,n=p(this),r=i(e,arguments.length>1?arguments[1]:void 0,3);while(t=t?t.next:n.first){r(t.value,t.key,this);while(t&&t.removed)t=t.previous}},has:function(e){return!!g(this,e)}}),a(s.prototype,n?{get:function(e){var t=g(this,e);return t&&t.value},set:function(e,t){return m(this,0===e?0:e,t)}}:{add:function(e){return m(this,e=0===e?0:e,e)}}),f&&r(s.prototype,"size",{get:function(){return p(this).size}}),s},setStrong:function(e,t,n){var r=t+" Iterator",o=v(t),a=v(r);c(e,t,(function(e,t){h(this,{type:r,target:e,state:o(e),kind:t,last:void 0})}),(function(){var e=a(this),t=e.kind,n=e.last;while(n&&n.removed)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),s(t)}}},ZwOi:function(e,t){e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},ZxN6:function(e,t,n){var r=n("OOCw"),o=n("CBsr");r({target:"WeakSet",stat:!0},{of:o})},aRba:function(e,t,n){var r=n("x+sk"),o=n("d8EH");e.exports=function(e,t,n){var a,i;return o&&"function"==typeof(a=t.constructor)&&a!==n&&r(i=a.prototype)&&i!==n.prototype&&o(e,i),e}},aTTI:function(e,t,n){"use strict";var r=n("OOCw"),o=n("qyeh"),a=n("sErw"),i=n("v3z7"),u=n("R8Xy"),l=n("uZx/");r({target:"Set",proto:!0,real:!0,forced:o},{every:function(e){var t=a(this),n=u(t),r=i(e,arguments.length>1?arguments[1]:void 0,3);return!l(n,(function(e){if(!r(e,e,t))return l.stop()}),void 0,!1,!0).stopped}})},aUZo:function(e,t,n){"use strict";var r=n("OOCw"),o=n("6SQG"),a=n("xy/A"),i=n("ct0+"),u="ArrayBuffer",l=a[u],c=o[u];r({global:!0,forced:c!==l},{ArrayBuffer:l}),i(u)},aVyU:function(e,t,n){"use strict";var r=n("OOCw"),o=n("qyeh"),a=n("2fm6");r({target:"Map",proto:!0,real:!0,forced:o},{deleteAll:function(){return a.apply(this,arguments)}})},aaHa:function(e,t,n){var r=n("Y30u");e.exports=y,e.exports.parse=a,e.exports.compile=i,e.exports.tokensToFunction=c,e.exports.tokensToRegExp=g;var o=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function a(e,t){var n,r=[],a=0,i=0,u="",l=t&&t.delimiter||"/";while(null!=(n=o.exec(e))){var c=n[0],d=n[1],p=n.index;if(u+=e.slice(i,p),i=p+c.length,d)u+=d[1];else{var h=e[i],v=n[2],m=n[3],g=n[4],y=n[5],b=n[6],w=n[7];u&&(r.push(u),u="");var E=null!=v&&null!=h&&h!==v,O="+"===b||"*"===b,k="?"===b||"*"===b,S=n[2]||l,x=g||y;r.push({name:m||a++,prefix:v||"",delimiter:S,optional:k,repeat:O,partial:E,asterisk:!!w,pattern:x?f(x):w?".*":"[^"+s(S)+"]+?"})}}return ia.a.createElement(s.a,r({},e,{config:i,demos:u,apis:l}))},ahKI:function(e,t,n){"use strict";e.exports=n("ruhe")},ahVg:function(e,t,n){"use strict";var r=n("OOCw"),o=n("qyeh"),a=n("sErw"),i=n("v3z7"),u=n("QHn5"),l=n("uZx/");r({target:"Map",proto:!0,real:!0,forced:o},{every:function(e){var t=a(this),n=u(t),r=i(e,arguments.length>1?arguments[1]:void 0,3);return!l(n,(function(e,n){if(!r(n,e,t))return l.stop()}),void 0,!0,!0).stopped}})},alDa:function(e,t,n){"use strict";n.r(t);var r=n("ahKI"),o=n.n(r),a=n("F4XJ"),i=n("PAHk"),u=o.a.memo((e=>{e.demos;return o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:"markdown"},o.a.createElement("h1",{id:"performance"},o.a.createElement(a["AnchorLink"],{to:"#performance","aria-hidden":"true",tabIndex:-1},o.a.createElement("span",{className:"icon icon-link"})),"Performance"),o.a.createElement("p",null,"The return value of ",o.a.createElement("code",null,"createStore")," or ",o.a.createElement("code",null,"createGlobalStore")," ",o.a.createElement("code",null,"useXxxStore")," supports passing a ",o.a.createElement("code",null,"depsFn")," function to precisely control the fields of the subscription:"),o.a.createElement(i["a"],{code:"const counter = useCounterStore(store => [store.count, store.x.y])",lang:"jsx"}),o.a.createElement("p",null,"This is very similar to the ",o.a.createElement("code",null,"deps")," of ",o.a.createElement("code",null,"useMemo")," and ",o.a.createElement("code",null,"useEffect"),", however, the ",o.a.createElement("code",null,"depsFn")," parameter of ",o.a.createElement("code",null,"useStore")," is a ",o.a.createElement("strong",null,"function"),"."),o.a.createElement("p",null,"Also, we recommend splitting up a huge store so not only will the code be easier to maintain, but performance will also improve.")))}));t["default"]=e=>{var t=o.a.useContext(a["context"]),n=t.demos;return o.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&a["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),o.a.createElement(u,{demos:n})}},"ax/v":function(e,t,n){"use strict";var r=n("OOCw"),o=n("lkgX"),a=n("8d12"),i=n("86T+"),u=n("uZx/");r({target:"Promise",stat:!0},{allSettled:function(e){var t=this,n=a.f(t),r=n.resolve,l=n.reject,c=i((function(){var n=o(t.resolve),a=[],i=0,l=1;u(e,(function(e){var o=i++,u=!1;a.push(void 0),l++,n.call(t,e).then((function(e){u||(u=!0,a[o]={status:"fulfilled",value:e},--l||r(a))}),(function(e){u||(u=!0,a[o]={status:"rejected",reason:e},--l||r(a))}))})),--l||r(a)}));return c.error&&l(c.value),n.promise}})},b5rQ:function(e,t,n){"use strict";function r(e,t){var n=e.length;e.push(t);e:for(;0>>1,o=e[r];if(!(0>>1;ri(l,n))ci(s,l)?(e[r]=s,e[c]=n,r=c):(e[r]=l,e[u]=n,r=u);else{if(!(ci(s,n)))break e;e[r]=s,e[c]=n,r=c}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var u=performance;t.unstable_now=function(){return u.now()}}else{var l=Date,c=l.now();t.unstable_now=function(){return l.now()-c}}var s=[],f=[],d=1,p=null,h=3,v=!1,m=!1,g=!1,y="function"===typeof setTimeout?setTimeout:null,b="function"===typeof clearTimeout?clearTimeout:null,w="undefined"!==typeof setImmediate?setImmediate:null;function E(e){for(var t=o(f);null!==t;){if(null===t.callback)a(f);else{if(!(t.startTime<=e))break;a(f),t.sortIndex=t.expirationTime,r(s,t)}t=o(f)}}function O(e){if(g=!1,E(e),!m)if(null!==o(s))m=!0,N(k);else{var t=o(f);null!==t&&I(O,t.startTime-e)}}function k(e,n){m=!1,g&&(g=!1,b(C),C=-1),v=!0;var r=h;try{for(E(n),p=o(s);null!==p&&(!(p.expirationTime>n)||e&&!P());){var i=p.callback;if("function"===typeof i){p.callback=null,h=p.priorityLevel;var u=i(p.expirationTime<=n);n=t.unstable_now(),"function"===typeof u?p.callback=u:p===o(s)&&a(s),E(n)}else a(s);p=o(s)}if(null!==p)var l=!0;else{var c=o(f);null!==c&&I(O,c.startTime-n),l=!1}return l}finally{p=null,h=r,v=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S,x=!1,j=null,C=-1,A=5,T=-1;function P(){return!(t.unstable_now()-Te||125i?(e.sortIndex=a,r(f,e),null===o(s)&&e===o(f)&&(g?(b(C),C=-1):g=!0,I(O,a-i))):(e.sortIndex=u,r(s,e),m||v||(m=!0,N(k))),e},t.unstable_shouldYield=P,t.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}}},bAWc:function(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}function o(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r(e,t)}n.d(t,"a",(function(){return o}))},bCY9:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("0Q8x"),o=new r["Plugin"]({validKeys:["modifyClientRenderOpts","patchRoutes","rootContainer","render","onRouteChange","__mfsu"]})},bHKe:function(e,t,n){var r=n("OOCw"),o=n("6SQG"),a=n("bbNk"),i=!o.setImmediate||!o.clearImmediate;r({global:!0,bind:!0,enumerable:!0,forced:i},{setImmediate:a.set,clearImmediate:a.clear})},bIC1:function(e,t,n){(function(t){var n="Expected a function",r=NaN,o="[object Symbol]",a=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt,s="object"==typeof t&&t&&t.Object===Object&&t,f="object"==typeof self&&self&&self.Object===Object&&self,d=s||f||Function("return this")(),p=Object.prototype,h=p.toString,v=Math.max,m=Math.min,g=function(){return d.Date.now()};function y(e,t,r){var o,a,i,u,l,c,s=0,f=!1,d=!1,p=!0;if("function"!=typeof e)throw new TypeError(n);function h(t){var n=o,r=a;return o=a=void 0,s=t,u=e.apply(r,n),u}function y(e){return s=e,l=setTimeout(O,t),f?h(e):u}function b(e){var n=e-c,r=e-s,o=t-n;return d?m(o,i-r):o}function E(e){var n=e-c,r=e-s;return void 0===c||n>=t||n<0||d&&r>=i}function O(){var e=g();if(E(e))return S(e);l=setTimeout(O,b(e))}function S(e){return l=void 0,p&&o?h(e):(o=a=void 0,u)}function x(){void 0!==l&&clearTimeout(l),s=0,o=c=a=l=void 0}function j(){return void 0===l?u:S(g())}function C(){var e=g(),n=E(e);if(o=arguments,a=this,c=e,n){if(void 0===l)return y(c);if(d)return l=setTimeout(O,t),h(c)}return void 0===l&&(l=setTimeout(O,t)),u}return t=k(t)||0,w(r)&&(f=!!r.leading,d="maxWait"in r,i=d?v(k(r.maxWait)||0,t):i,p="trailing"in r?!!r.trailing:p),C.cancel=x,C.flush=j,C}function b(e,t,r){var o=!0,a=!0;if("function"!=typeof e)throw new TypeError(n);return w(r)&&(o="leading"in r?!!r.leading:o,a="trailing"in r?!!r.trailing:a),y(e,t,{leading:o,maxWait:t,trailing:a})}function w(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function E(e){return!!e&&"object"==typeof e}function O(e){return"symbol"==typeof e||E(e)&&h.call(e)==o}function k(e){if("number"==typeof e)return e;if(O(e))return r;if(w(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=w(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(a,"");var n=u.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):i.test(e)?r:+e}e.exports=b}).call(this,n("LS9I"))},bIgI:function(e,t,n){var r=n("XXwF");function o(e,t){var n;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=r(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var o=0,a=function(){};return{s:a,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:a}}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,u=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return u=e.done,e},e:function(e){l=!0,i=e},f:function(){try{u||null==n["return"]||n["return"]()}finally{if(l)throw i}}}}e.exports=o},bbNk:function(e,t,n){var r,o,a,i=n("6SQG"),u=n("h+/6"),l=n("kk5s"),c=n("v3z7"),s=n("RtP/"),f=n("73fw"),d=n("ytxp"),p=i.location,h=i.setImmediate,v=i.clearImmediate,m=i.process,g=i.MessageChannel,y=i.Dispatch,b=0,w={},E="onreadystatechange",O=function(e){if(w.hasOwnProperty(e)){var t=w[e];delete w[e],t()}},k=function(e){return function(){O(e)}},S=function(e){O(e.data)},x=function(e){i.postMessage(e+"",p.protocol+"//"+p.host)};h&&v||(h=function(e){var t=[],n=1;while(arguments.length>n)t.push(arguments[n++]);return w[++b]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},r(b),b},v=function(e){delete w[e]},"process"==l(m)?r=function(e){m.nextTick(k(e))}:y&&y.now?r=function(e){y.now(k(e))}:g&&!d?(o=new g,a=o.port2,o.port1.onmessage=S,r=c(a.postMessage,a,1)):!i.addEventListener||"function"!=typeof postMessage||i.importScripts||u(x)||"file:"===p.protocol?r=E in f("script")?function(e){s.appendChild(f("script"))[E]=function(){s.removeChild(this),O(e)}}:function(e){setTimeout(k(e),0)}:(r=x,i.addEventListener("message",S,!1))),e.exports={set:h,clear:v}},beEN:function(e,t,n){"use strict";var r=n("OOCw"),o=n("SD1J"),a=n("z43i"),i=n("TxDi");r({target:"String",proto:!0,forced:!i("includes")},{includes:function(e){return!!~String(a(this)).indexOf(o(e),arguments.length>1?arguments[1]:void 0)}})},boNI:function(e,t,n){},brx1:function(e,t,n){var r=n("ct0+");r("Array")},c3e3:function(e,t,n){(function(e,r){r(t,n("ahKI"))})(0,(function(e,t){"use strict";function n(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t["default"]=e,Object.freeze(t)}var r=n(t);function o(e,t){return o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},o(e,t)}function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,o(e,t)}var i=function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=[]),e.length!==t.length||e.some((function(e,n){return!Object.is(e,t[n])}))},u={error:null},l=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o1?arguments[1]:void 0,3),o=new(c(t,a("Set"))),d=u(o.add);return f(n,(function(e){d.call(o,r(e,e,t))}),void 0,!1,!0),o}})},"d+E4":function(e,t,n){"use strict";var r=n("OOCw"),o=n("8d12"),a=n("86T+");r({target:"Promise",stat:!0},{try:function(e){var t=o.f(this),n=a(e);return(n.error?t.reject:t.resolve)(n.value),t.promise}})},d8EH:function(e,t,n){var r=n("sErw"),o=n("6jqD");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,e.call(n,[]),t=n instanceof Array}catch(a){}return function(n,a){return r(n),o(a),t?e.call(n,a):n.__proto__=a,n}}():void 0)},dmWW:function(e,t,n){var r=n("6SQG"),o=n("CsJM").trim,a=n("Vg85"),i=r.parseFloat,u=1/i(a+"-0")!==-1/0;e.exports=u?function(e){var t=o(String(e)),n=i(t);return 0===n&&"-"==t.charAt(0)?-0:n}:i},doyL:function(e,t,n){},dwb6:function(e,t,n){var r=n("3Hes"),o=n("AnAv"),a=r("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||i[a]===e)}},dz2h:function(e,t,n){"use strict";var r=n("WkS0").IteratorPrototype,o=n("QWtl"),a=n("ZVkV"),i=n("nBeg"),u=n("AnAv"),l=function(){return this};e.exports=function(e,t,n){var c=t+" Iterator";return e.prototype=o(r,{next:a(1,n)}),i(e,c,!1,!0),u[c]=l,e}},e38J:function(e,t,n){var r=n("OOCw"),o=n("eyaU"),a=n("lkgX"),i=n("sErw"),u=n("h+/6"),l=o("Reflect","apply"),c=Function.apply,s=!u((function(){l((function(){}))}));r({target:"Reflect",stat:!0,forced:s},{apply:function(e,t,n){return a(e),i(n),l?l(e,t,n):c.call(e,t,n)}})},eOjw:function(e,t,n){var r=n("OOCw"),o=Math.hypot,a=Math.abs,i=Math.sqrt,u=!!o&&o(1/0,NaN)!==1/0;r({target:"Math",stat:!0,forced:u},{hypot:function(e,t){var n,r,o=0,u=0,l=arguments.length,c=0;while(u0?(r=n/c,o+=r*r):o+=n;return c===1/0?1/0:c*i(o)}})},eW2S:function(e,t,n){var r=n("3Hes"),o=r("iterator"),a=!1;try{var i=0,u={next:function(){return{done:!!i++}},return:function(){a=!0}};u[o]=function(){return this},Array.from(u,(function(){throw 2}))}catch(l){}e.exports=function(e,t){if(!t&&!a)return!1;var n=!1;try{var r={};r[o]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(l){}return n}},ecma:function(e,t,n){var r=n("GXoa");r("Float32",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},ediS:function(e,t,n){var r=n("OOCw"),o=n("1Sp3"),a=n("sErw"),i=n("zesz"),u=o.has,l=o.get,c=o.toKey,s=function(e,t,n){var r=u(e,t,n);if(r)return l(e,t,n);var o=i(t);return null!==o?s(e,o,n):void 0};r({target:"Reflect",stat:!0},{getMetadata:function(e,t){var n=arguments.length<3?void 0:c(arguments[2]);return s(e,a(t),n)}})},elB0:function(e,t,n){var r=n("5yEw"),o=n("kk5s"),a=n("3Hes"),i=a("toStringTag"),u="Arguments"==o(function(){return arguments}()),l=function(e,t){try{return e[t]}catch(n){}};e.exports=r?o:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=l(t=Object(e),i))?n:u?o(t):"Object"==(r=o(t))&&"function"==typeof t.callee?"Arguments":r}},em2R:function(e,t,n){var r=n("OOCw"),o=n("1Sp3"),a=n("sErw"),i=o.toKey,u=o.getMap,l=o.store;r({target:"Reflect",stat:!0},{deleteMetadata:function(e,t){var n=arguments.length<3?void 0:i(arguments[2]),r=u(a(t),n,!1);if(void 0===r||!r["delete"](e))return!1;if(r.size)return!0;var o=l.get(t);return o["delete"](n),!!o.size||l["delete"](t)}})},erIx:function(e,t,n){var r=n("ANLo"),o=Math.max,a=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):a(n,t)}},eyaU:function(e,t,n){var r=n("4uZn"),o=n("6SQG"),a=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?a(r[e])||a(o[e]):r[e]&&r[e][t]||o[e]&&o[e][t]}},eyew:function(e,t,n){"use strict";var r=n("OOCw"),o=n("r+6h"),a=n("THzI"),i=n("OdMF"),u=n("JSMs"),l=n("zesz"),c=n("6ssM").f;o&&r({target:"Object",proto:!0,forced:a},{__lookupSetter__:function(e){var t,n=i(this),r=u(e,!0);do{if(t=c(n,r))return t.set}while(n=l(n))}})},"f/UK":function(e,t,n){"use strict";function r(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(e){console.error(e)}}}r(),e.exports=n("MHHe")},f8YS:function(e,t,n){},g0aX:function(e,t,n){var r=n("kk5s");e.exports=Array.isArray||function(e){return"Array"==r(e)}},g0pg:function(e,t,n){"use strict";var r,o=n("78S/"),a=n("r+6h"),i=n("6SQG"),u=n("x+sk"),l=n("oEsY"),c=n("elB0"),s=n("MZA9"),f=n("uF/W"),d=n("0JbB").f,p=n("zesz"),h=n("d8EH"),v=n("3Hes"),m=n("KgcE"),g=i.Int8Array,y=g&&g.prototype,b=i.Uint8ClampedArray,w=b&&b.prototype,E=g&&p(g),O=y&&p(y),k=Object.prototype,S=k.isPrototypeOf,x=v("toStringTag"),j=m("TYPED_ARRAY_TAG"),C=o&&!!h&&"Opera"!==c(i.opera),A=!1,T={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},P=function(e){var t=c(e);return"DataView"===t||l(T,t)},_=function(e){return u(e)&&l(T,c(e))},R=function(e){if(_(e))return e;throw TypeError("Target is not a typed array")},M=function(e){if(h){if(S.call(E,e))return e}else for(var t in T)if(l(T,r)){var n=i[t];if(n&&(e===n||S.call(n,e)))return e}throw TypeError("Target is not a typed array constructor")},N=function(e,t,n){if(a){if(n)for(var r in T){var o=i[r];o&&l(o.prototype,e)&&delete o.prototype[e]}O[e]&&!n||f(O,e,n?t:C&&y[e]||t)}},I=function(e,t,n){var r,o;if(a){if(h){if(n)for(r in T)o=i[r],o&&l(o,e)&&delete o[e];if(E[e]&&!n)return;try{return f(E,e,n?t:C&&g[e]||t)}catch(u){}}for(r in T)o=i[r],!o||o[e]&&!n||f(o,e,t)}};for(r in T)i[r]||(C=!1);if((!C||"function"!=typeof E||E===Function.prototype)&&(E=function(){throw TypeError("Incorrect invocation")},C))for(r in T)i[r]&&h(i[r],E);if((!C||!O||O===k)&&(O=E.prototype,C))for(r in T)i[r]&&h(i[r].prototype,O);if(C&&p(w)!==O&&h(w,O),a&&!l(O,x))for(r in A=!0,d(O,x,{get:function(){return u(this)?this[j]:void 0}}),T)i[r]&&s(i[r],j,r);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:C,TYPED_ARRAY_TAG:A&&j,aTypedArray:R,aTypedArrayConstructor:M,exportTypedArrayMethod:N,exportTypedArrayStaticMethod:I,isView:P,isTypedArray:_,TypedArray:E,TypedArrayPrototype:O}},g8ur:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=!0,o="Invariant failed";function a(e,t){if(!e){if(r)throw new Error(o);var n="function"===typeof t?t():t,a=n?o+": "+n:o;throw new Error(a)}}},gArs:function(e,t,n){var r=n("Y3cF"),o=n("x+sk"),a=n("oEsY"),i=n("0JbB").f,u=n("KgcE"),l=n("Y4d4"),c=u("meta"),s=0,f=Object.isExtensible||function(){return!0},d=function(e){i(e,c,{value:{objectID:"O"+ ++s,weakData:{}}})},p=function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,c)){if(!f(e))return"F";if(!t)return"E";d(e)}return e[c].objectID},h=function(e,t){if(!a(e,c)){if(!f(e))return!0;if(!t)return!1;d(e)}return e[c].weakData},v=function(e){return l&&m.REQUIRED&&f(e)&&!a(e,c)&&d(e),e},m=e.exports={REQUIRED:!1,fastKey:p,getWeakData:h,onFreeze:v};r[c]=!0},gF6c:function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,"a",(function(){return r}))},gGOj:function(e,t,n){"use strict";var r=n("IYc2"),o=n("bIgI"),a=n("DbXJ"),i=n("1uVM"),u=n("X1JF"),l=n("mDdX"),c=n("jrV3"),s=function(e){return null===e||void 0===e};function f(e){switch(e.arrayFormat){case"index":return function(t){return function(n,r){var o=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:[].concat(a(n),null===r?[[h(t,e),"[",o,"]"].join("")]:[[h(t,e),"[",h(o,e),"]=",h(r,e)].join("")])}};case"bracket":return function(t){return function(n,r){return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:[].concat(a(n),null===r?[[h(t,e),"[]"].join("")]:[[h(t,e),"[]=",h(r,e)].join("")])}};case"comma":case"separator":return function(t){return function(n,r){return null===r||void 0===r||0===r.length?n:0===n.length?[[h(t,e),"=",h(r,e)].join("")]:[[n,h(r,e)].join(e.arrayFormatSeparator)]}};default:return function(t){return function(n,r){return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:[].concat(a(n),null===r?[h(t,e)]:[[h(t,e),"=",h(r,e)].join("")])}}}}function d(e){var t;switch(e.arrayFormat){case"index":return function(e,n,r){t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return function(e,n,r){t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"comma":case"separator":return function(t,n,r){var o="string"===typeof n&&n.includes(e.arrayFormatSeparator),a="string"===typeof n&&!o&&v(n,e).includes(e.arrayFormatSeparator);n=a?v(n,e):n;var i=o||a?n.split(e.arrayFormatSeparator).map((function(t){return v(t,e)})):null===n?n:v(n,e);r[t]=i};default:return function(e,t,n){void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}function p(e){if("string"!==typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function h(e,t){return t.encode?t.strict?i(e):encodeURIComponent(e):e}function v(e,t){return t.decode?u(e):e}function m(e){return Array.isArray(e)?e.sort():"object"===typeof e?m(Object.keys(e)).sort((function(e,t){return Number(e)-Number(t)})).map((function(t){return e[t]})):e}function g(e){var t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function y(e){var t="",n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}function b(e){e=g(e);var t=e.indexOf("?");return-1===t?"":e.slice(t+1)}function w(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"===typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function E(e,t){t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t),p(t.arrayFormatSeparator);var n=d(t),a=Object.create(null);if("string"!==typeof e)return a;if(e=e.trim().replace(/^[?#&]/,""),!e)return a;var i,u=o(e.split("&"));try{for(u.s();!(i=u.n()).done;){var c=i.value;if(""!==c){var s=l(t.decode?c.replace(/\+/g," "):c,"="),f=r(s,2),h=f[0],g=f[1];g=void 0===g?null:["comma","separator"].includes(t.arrayFormat)?g:v(g,t),n(v(h,t),g,a)}}}catch(j){u.e(j)}finally{u.f()}for(var y=0,b=Object.keys(a);y0})).join("&")},t.parseUrl=function(e,t){t=Object.assign({decode:!0},t);var n=l(e,"#"),o=r(n,2),a=o[0],i=o[1];return Object.assign({url:a.split("?")[0]||"",query:E(b(e),t)},t&&t.parseFragmentIdentifier&&i?{fragmentIdentifier:v(i,t)}:{})},t.stringifyUrl=function(e,n){n=Object.assign({encode:!0,strict:!0},n);var r=g(e.url).split("?")[0]||"",o=t.extract(e.url),a=t.parse(o,{sort:!1}),i=Object.assign(a,e.query),u=t.stringify(i,n);u&&(u="?".concat(u));var l=y(e.url);return e.fragmentIdentifier&&(l="#".concat(h(e.fragmentIdentifier,n))),"".concat(r).concat(u).concat(l)},t.pick=function(e,n,r){r=Object.assign({parseFragmentIdentifier:!0},r);var o=t.parseUrl(e,r),a=o.url,i=o.query,u=o.fragmentIdentifier;return t.stringifyUrl({url:a,query:c(i,n),fragmentIdentifier:u},r)},t.exclude=function(e,n,r){var o=Array.isArray(n)?function(e){return!n.includes(e)}:function(e,t){return!n(e,t)};return t.pick(e,o,r)}},gTJW:function(e,t,n){"use strict";var r=n("OOCw"),o=n("qyeh"),a=n("2fm6");r({target:"Set",proto:!0,real:!0,forced:o},{deleteAll:function(){return a.apply(this,arguments)}})},ghVC:function(e,t,n){"use strict";e.exports=n("YtnI")},"h+/6":function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},h9Wi:function(e,t,n){var r=n("OOCw"),o=n("2hel"),a=Math.acosh,i=Math.log,u=Math.sqrt,l=Math.LN2,c=!a||710!=Math.floor(a(Number.MAX_VALUE))||a(1/0)!=1/0;r({target:"Math",stat:!0,forced:c},{acosh:function(e){return(e=+e)<1?NaN:e>94906265.62425156?i(e)+l:o(e-1+u(e-1)*u(e+1))}})},hWwf:function(e,t,n){"use strict";var r=n("x+sk"),o=n("0JbB"),a=n("zesz"),i=n("3Hes"),u=i("hasInstance"),l=Function.prototype;u in l||o.f(l,u,{value:function(e){if("function"!=typeof this||!r(e))return!1;if(!r(this.prototype))return e instanceof this;while(e=a(e))if(this.prototype===e)return!0;return!1}})},hiPI:function(e,t,n){"use strict";var r=n("XCNo"),o=n("ahKI"),a=n("UXr9"),i=(n("HYUE"),n("i97Z")),u=n("k2w+"),l=n("Y7rC"),c=n("sQaW"),s=o["createContext"](null);function f(e){var t=e.children,n=e.onBatchResize,r=o["useRef"](0),a=o["useRef"]([]),i=o["useContext"](s),u=o["useCallback"]((function(e,t,o){r.current+=1;var u=r.current;a.current.push({size:e,element:t,data:o}),Promise.resolve().then((function(){u===r.current&&(null===n||void 0===n||n(a.current),a.current=[])})),null===i||void 0===i||i(e,t,o)}),[n,i]);return o["createElement"](s.Provider,{value:u},t)}var d=n("QQXB"),p=new Map;function h(e){e.forEach((function(e){var t,n=e.target;null===(t=p.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}var v=new d["a"](h);function m(e,t){p.has(e)||(p.set(e,new Set),v.observe(e)),p.get(e).add(t)}function g(e,t){p.has(e)&&(p.get(e)["delete"](t),p.get(e).size||(v.unobserve(e),p["delete"](e)))}var y=n("SauQ"),b=n("KcUJ"),w=n("bAWc"),E=n("158W"),O=function(e){Object(w["a"])(n,e);var t=Object(E["a"])(n);function n(){return Object(y["a"])(this,n),t.apply(this,arguments)}return Object(b["a"])(n,[{key:"render",value:function(){return this.props.children}}]),n}(o["Component"]);function k(e,t){var n=e.children,r=e.disabled,a=o["useRef"](null),f=o["useRef"](null),d=o["useContext"](s),p="function"===typeof n,h=p?n(a):n,v=o["useRef"]({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),y=!p&&o["isValidElement"](h)&&Object(c["c"])(h),b=y?h.ref:null,w=Object(c["d"])(b,a),E=function(){var e;return Object(l["a"])(a.current)||(a.current&&"object"===Object(u["a"])(a.current)?Object(l["a"])(null===(e=a.current)||void 0===e?void 0:e.nativeElement):null)||Object(l["a"])(f.current)};o["useImperativeHandle"](t,(function(){return E()}));var k=o["useRef"](e);k.current=e;var S=o["useCallback"]((function(e){var t=k.current,n=t.onResize,r=t.data,o=e.getBoundingClientRect(),a=o.width,u=o.height,l=e.offsetWidth,c=e.offsetHeight,s=Math.floor(a),f=Math.floor(u);if(v.current.width!==s||v.current.height!==f||v.current.offsetWidth!==l||v.current.offsetHeight!==c){var p={width:s,height:f,offsetWidth:l,offsetHeight:c};v.current=p;var h=l===Math.round(a)?a:l,m=c===Math.round(u)?u:c,g=Object(i["a"])(Object(i["a"])({},p),{},{offsetWidth:h,offsetHeight:m});null===d||void 0===d||d(g,e,r),n&&Promise.resolve().then((function(){n(g,e)}))}}),[]);return o["useEffect"]((function(){var e=E();return e&&!r&&m(e,S),function(){return g(e,S)}}),[a.current,r]),o["createElement"](O,{ref:f},y?o["cloneElement"](h,{ref:w}):h)}var S=o["forwardRef"](k);var x=S,j="rc-observer-key";function C(e,t){var n=e.children,i="function"===typeof n?[n]:Object(a["a"])(n);return i.map((function(n,a){var i=(null===n||void 0===n?void 0:n.key)||"".concat(j,"-").concat(a);return o["createElement"](x,Object(r["a"])({},e,{key:i,ref:0===a?t:void 0}),n)}))}var A=o["forwardRef"](C);A.Collection=f;t["a"]=A},hpYE:function(e,t,n){"use strict";var r=n("684d"),o=n("ANLo"),a=n("upgS"),i=n("rUEg"),u=n("7/pz"),l=Math.min,c=[].lastIndexOf,s=!!c&&1/[1].lastIndexOf(1,-0)<0,f=i("lastIndexOf"),d=u("indexOf",{ACCESSORS:!0,1:0}),p=s||!f||!d;e.exports=p?function(e){if(s)return c.apply(this,arguments)||0;var t=r(this),n=a(t.length),i=n-1;for(arguments.length>1&&(i=l(i,o(arguments[1]))),i<0&&(i=n+i);i>=0;i--)if(i in t&&t[i]===e)return i||0;return-1}:c},i3On:function(e,t,n){"use strict";var r=n("OOCw"),o=n("qyeh"),a=n("2fm6");r({target:"WeakSet",proto:!0,real:!0,forced:o},{deleteAll:function(){return a.apply(this,arguments)}})},i97Z:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("2/yZ");function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t1?arguments[1]:void 0,t.length)),r=String(e);return s?s.call(t,r,n):t.slice(n,n+r.length)===r}})},"io+V":function(e,t,n){"use strict";var r=n("OOCw"),o=n("r+6h"),a=n("zesz"),i=n("d8EH"),u=n("QWtl"),l=n("0JbB"),c=n("ZVkV"),s=n("uZx/"),f=n("MZA9"),d=n("uJNS"),p=d.set,h=d.getterFor("AggregateError"),v=function(e,t){var n=this;if(!(n instanceof v))return new v(e,t);i&&(n=i(new Error(t),a(n)));var r=[];return s(e,r.push,r),o?p(n,{errors:r,type:"AggregateError"}):n.errors=r,void 0!==t&&f(n,"message",String(t)),n};v.prototype=u(Error.prototype,{constructor:c(5,v),message:c(5,""),name:c(5,"AggregateError")}),o&&l.f(v.prototype,"errors",{get:function(){return h(this).errors},configurable:!0}),r({global:!0},{AggregateError:v})},iwOk:function(e,t,n){"use strict";function r(){var e=n("ahKI");return r=function(){return e},e}function o(){var e=a(n("wQXD"));return o=function(){return e},e}function a(e){return e&&e.__esModule?e:{default:e}}function i(e,t){return f(e)||s(e,t)||l(e,t)||u()}function u(){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 l(e,t){if(e){if("string"===typeof e)return c(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(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?arguments[1]:void 0)}})},"j/ks":function(e,t,n){"use strict";var r=n("g0aX"),o=n("upgS"),a=n("v3z7"),i=function(e,t,n,u,l,c,s,f){var d,p=l,h=0,v=!!s&&a(s,f,3);while(h0&&r(d))p=i(e,t,d,o(d.length),p,c-1)-1;else{if(p>=9007199254740991)throw TypeError("Exceed the acceptable array length");e[p]=d}p++}h++}return p};e.exports=i},j2YP:function(e,t,n){"use strict";var r=n("OOCw"),o=n("j/ks"),a=n("OdMF"),i=n("upgS"),u=n("ANLo"),l=n("63eO");r({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=a(this),n=i(t.length),r=l(t,0);return r.length=o(r,t,t,n,0,void 0===e?1:u(e)),r}})},jETf:function(e,t,n){"use strict";var r=n("TxBV"),o=n("gArs").getWeakData,a=n("sErw"),i=n("x+sk"),u=n("CZSf"),l=n("uZx/"),c=n("M+Sl"),s=n("oEsY"),f=n("uJNS"),d=f.set,p=f.getterFor,h=c.find,v=c.findIndex,m=0,g=function(e){return e.frozen||(e.frozen=new y)},y=function(){this.entries=[]},b=function(e,t){return h(e.entries,(function(e){return e[0]===t}))};y.prototype={get:function(e){var t=b(this,e);if(t)return t[1]},has:function(e){return!!b(this,e)},set:function(e,t){var n=b(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=v(this.entries,(function(t){return t[0]===e}));return~t&&this.entries.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,c){var f=e((function(e,r){u(e,f,t),d(e,{type:t,id:m++,frozen:void 0}),void 0!=r&&l(r,e[c],e,n)})),h=p(t),v=function(e,t,n){var r=h(e),i=o(a(t),!0);return!0===i?g(r).set(t,n):i[r.id]=n,e};return r(f.prototype,{delete:function(e){var t=h(this);if(!i(e))return!1;var n=o(e);return!0===n?g(t)["delete"](e):n&&s(n,t.id)&&delete n[t.id]},has:function(e){var t=h(this);if(!i(e))return!1;var n=o(e);return!0===n?g(t).has(e):n&&s(n,t.id)}}),r(f.prototype,n?{get:function(e){var t=h(this);if(i(e)){var n=o(e);return!0===n?g(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return v(this,e,t)}}:{add:function(e){return v(this,e,!0)}}),f}}},jHOP:function(e,t,n){"use strict";var r=n("OOCw"),o=n("qyeh"),a=n("sErw"),i=n("v3z7"),u=n("QHn5"),l=n("uZx/");r({target:"Map",proto:!0,real:!0,forced:o},{findKey:function(e){var t=a(this),n=u(t),r=i(e,arguments.length>1?arguments[1]:void 0,3);return l(n,(function(e,n){if(r(n,e,t))return l.stop(e)}),void 0,!0,!0).result}})},jTF5:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("k2w+");function o(e,t){if("object"!==Object(r["a"])(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==Object(r["a"])(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function a(e){var t=o(e,"string");return"symbol"===Object(r["a"])(t)?t:String(t)}},jYqw:function(e,t,n){"use strict";var r=n("OOCw"),o=n("A2zS");r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},jax1:function(e,t,n){"use strict";var r=n("ANLo"),o=n("z43i");e.exports="".repeat||function(e){var t=String(o(this)),n="",a=r(e);if(a<0||a==1/0)throw RangeError("Wrong number of repetitions");for(;a>0;(a>>>=1)&&(t+=t))1&a&&(n+=t);return n}},"jht+":function(e,t,n){var r=n("OOCw");r({target:"Math",stat:!0},{DEG_PER_RAD:Math.PI/180})},jhzO:function(e,t){function n(e,t){for(var n=0;n=0:f>d;d+=p)d in s&&(l=n(l,s[d],d,c));return l}};e.exports={left:u(!1),right:u(!0)}},jukf:function(e,t,n){var r=n("6SQG"),o=n("MZA9");e.exports=function(e,t){try{o(r,e,t)}catch(n){r[e]=t}return t}},"k+Ei":function(e,t,n){"use strict";n.r(t),n.d(t,"ApplyPluginsType",(function(){return U})),n.d(t,"Plugin",(function(){return V})),n.d(t,"dynamic",(function(){return z})),n.d(t,"isBrowser",(function(){return H}));var r=n("NUIj"),o=n.n(r),a=n("ptaF");n.d(t,"createBrowserHistory",(function(){return a["a"]})),n.d(t,"createHashHistory",(function(){return a["b"]})),n.d(t,"createMemoryHistory",(function(){return a["d"]}));var i=n("Bm2L");n.d(t,"__RouterContext",(function(){return i["h"]}));var u=n("QwZf");n.d(t,"Link",(function(){return u["a"]})),n.d(t,"MemoryRouter",(function(){return i["a"]})),n.d(t,"NavLink",(function(){return u["b"]})),n.d(t,"Prompt",(function(){return i["b"]})),n.d(t,"Redirect",(function(){return i["c"]})),n.d(t,"Route",(function(){return i["d"]})),n.d(t,"Router",(function(){return i["e"]})),n.d(t,"StaticRouter",(function(){return i["f"]})),n.d(t,"Switch",(function(){return i["g"]})),n.d(t,"matchPath",(function(){return i["i"]})),n.d(t,"useHistory",(function(){return i["j"]})),n.d(t,"useLocation",(function(){return i["k"]})),n.d(t,"useParams",(function(){return i["l"]})),n.d(t,"useRouteMatch",(function(){return i["m"]})),n.d(t,"withRouter",(function(){return i["n"]}));var l=n("ahKI"),c=n("qABW");function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}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 a,i=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){u=!0,a=e},f:function(){try{i||null==n["return"]||n["return"]()}finally{if(u)throw a}}}}var j=Object(l["createContext"])(null),C=[],A=[],T=!1;function P(e){var t=e(),n={loading:!0,loaded:null,error:null};return n.promise=t.then((function(e){return n.loading=!1,n.loaded=e,e}))["catch"]((function(e){throw n.loading=!1,n.error=e,e})),n}function _(e){var t={loading:!1,loaded:{},error:null},n=[];try{Object.keys(e).forEach((function(r){var o=P(e[r]);o.loading?t.loading=!0:(t.loaded[r]=o.loaded,t.error=o.error),n.push(o.promise),o.promise.then((function(e){t.loaded[r]=e}))["catch"]((function(e){t.error=e}))}))}catch(r){t.error=r}return t.promise=Promise.all(n).then((function(e){return t.loading=!1,e}))["catch"]((function(e){throw t.loading=!1,e})),t}function R(e){return e&&e.__esModule?e["default"]:e}function M(e,t){return Object(l["createElement"])(R(e),t)}function N(e,t){var n=Object.assign({loader:null,loading:null,delay:200,timeout:null,render:M,webpack:null,modules:null},t),r=null;function o(){if(!r){var t=new I(e,n);r={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return r.promise()}if("undefined"===typeof window&&C.push(o),!T&&"undefined"!==typeof window&&"function"===typeof n.webpack){var a=n.webpack();A.push((function(e){var t,n=x(a);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(-1!==e.indexOf(r))return o()}}catch(i){n.e(i)}finally{n.f()}}))}var i=function(e,t){o();var a=Object(l["useContext"])(j),i=Object(c["useSubscription"])(r);return Object(l["useImperativeHandle"])(t,(function(){return{retry:r.retry}})),a&&Array.isArray(n.modules)&&n.modules.forEach((function(e){a(e)})),i.loading||i.error?Object(l["createElement"])(n.loading,{isLoading:i.loading,pastDelay:i.pastDelay,timedOut:i.timedOut,error:i.error,retry:r.retry}):i.loaded?n.render(i.loaded,e):null},u=Object(l["forwardRef"])(i);return u.preload=function(){return o()},u.displayName="LoadableComponent",u}var I=function(){function e(t,n){v(this,e),this._loadFn=t,this._opts=n,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}return g(e,[{key:"promise",value:function(){return this._res.promise}},{key:"retry",value:function(){var e=this;this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};var t=this._res,n=this._opts;t.loading&&("number"===typeof n.delay&&(0===n.delay?this._state.pastDelay=!0:this._delay=setTimeout((function(){e._update({pastDelay:!0})}),n.delay)),"number"===typeof n.timeout&&(this._timeout=setTimeout((function(){e._update({timedOut:!0})}),n.timeout))),this._res.promise.then((function(){e._update(),e._clearTimeouts()}))["catch"]((function(t){e._update(),e._clearTimeouts()})),this._update({})}},{key:"_update",value:function(e){this._state=f(f({},this._state),e),this._callbacks.forEach((function(e){return e()}))}},{key:"_clearTimeouts",value:function(){clearTimeout(this._delay),clearTimeout(this._timeout)}},{key:"getCurrentValue",value:function(){return f(f({},this._state),{},{error:this._res.error,loaded:this._res.loaded,loading:this._res.loading})}},{key:"subscribe",value:function(e){var t=this;return this._callbacks.add(e),function(){t._callbacks["delete"](e)}}}]),e}();function L(e){return N(P,e)}function F(e){if("function"!==typeof e.render)throw new Error("LoadableMap requires a `render(loaded, props)` function");return N(_,e)}function D(e,t){var n=[];while(e.length){var r=e.pop();n.push(r(t))}return Promise.all(n).then((function(){if(e.length)return D(e,t)}))}function z(e){var t=L,n={loading:function(e){e.error,e.isLoading;return Object(l["createElement"])("p",null,"loading...")}};if("function"===typeof e)n.loader=e;else{if("object"!==d(e))throw new Error("Unexpect arguments ".concat(e));n=f(f({},n),e)}return t(n)}function B(e,t){if(!e)throw new Error(t)}L.Map=F,L.preloadAll=function(){return new Promise((function(e,t){D(C).then(e,t)}))},L.preloadReady=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return new Promise((function(t){var n=function(){return T=!0,t()};D(A,e).then(n,n)}))},"undefined"!==typeof window&&(window.__NEXT_PRELOADREADY=L.preloadReady);var U,H=function(){return"undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement};function W(e){var t=e.fns,n=e.args;if(1===t.length)return t[0];var r=t.pop();return t.reduce((function(e,t){return function(){return t(e,n)}}),r)}function G(e){return!!e&&"object"===d(e)&&"function"===typeof e.then}(function(e){e["compose"]="compose",e["modify"]="modify",e["event"]="event"})(U||(U={}));var V=function(){function e(t){v(this,e),this.validKeys=void 0,this.hooks={},this.validKeys=(null===t||void 0===t?void 0:t.validKeys)||[]}return g(e,[{key:"register",value:function(e){var t=this;B(!!e.apply,"register failed, plugin.apply must supplied"),B(!!e.path,"register failed, plugin.path must supplied"),Object.keys(e.apply).forEach((function(n){B(t.validKeys.indexOf(n)>-1,"register failed, invalid key ".concat(n," from plugin ").concat(e.path,".")),t.hooks[n]||(t.hooks[n]=[]),t.hooks[n]=t.hooks[n].concat(e.apply[n])}))}},{key:"getHooks",value:function(e){var t=e.split("."),n=b(t),r=n[0],o=n.slice(1),a=this.hooks[r]||[];return o.length&&(a=a.map((function(e){try{var t,n=e,r=x(o);try{for(r.s();!(t=r.n()).done;){var a=t.value;n=n[a]}}catch(i){r.e(i)}finally{r.f()}return n}catch(u){return null}})).filter(Boolean)),a}},{key:"applyPlugins",value:function(e){var t=e.key,n=e.type,r=e.initialValue,a=e.args,i=e.async,u=this.getHooks(t)||[];switch(a&&B("object"===d(a),"applyPlugins failed, args must be plain object."),n){case U.modify:return i?u.reduce(function(){var e=h(o.a.mark((function e(n,r){var i;return o.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(B("function"===typeof r||"object"===d(r)||G(r),"applyPlugins failed, all hooks for key ".concat(t," must be function, plain object or Promise.")),!G(n)){e.next=5;break}return e.next=4,n;case 4:n=e.sent;case 5:if("function"!==typeof r){e.next=16;break}if(i=r(n,a),!G(i)){e.next=13;break}return e.next=10,i;case 10:return e.abrupt("return",e.sent);case 13:return e.abrupt("return",i);case 14:e.next=21;break;case 16:if(!G(r)){e.next=20;break}return e.next=19,r;case 19:r=e.sent;case 20:return e.abrupt("return",f(f({},n),r));case 21:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),G(r)?r:Promise.resolve(r)):u.reduce((function(e,n){return B("function"===typeof n||"object"===d(n),"applyPlugins failed, all hooks for key ".concat(t," must be function or plain object.")),"function"===typeof n?n(e,a):f(f({},e),n)}),r);case U.event:return u.forEach((function(e){B("function"===typeof e,"applyPlugins failed, all hooks for key ".concat(t," must be function.")),e(a)}));case U.compose:return function(){return W({fns:u.concat(r),args:a})()}}}}]),e}()},"k2w+":function(e,t,n){"use strict";function r(e){return r="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},r(e)}n.d(t,"a",(function(){return r}))},kMjI:function(e,t,n){var r=n("5yEw"),o=n("uF/W"),a=n("QiOl");r||o(Object.prototype,"toString",a,{unsafe:!0})},kXTd:function(e,t,n){var r=n("6SQG"),o=r.isFinite;e.exports=Number.isFinite||function(e){return"number"==typeof e&&o(e)}},"kZ+D":function(e,t,n){var r=n("OOCw"),o=n("SuUP"),a=n("eyaU");r({global:!0},{compositeSymbol:function(){return 1===arguments.length&&"string"===typeof arguments[0]?a("Symbol")["for"](arguments[0]):o.apply(null,arguments).get("symbol",a("Symbol"))}})},kccB:function(e,t,n){var r=n("OOCw"),o=n("dmWW");r({target:"Number",stat:!0,forced:Number.parseFloat!=o},{parseFloat:o})},kj2u:function(e,t,n){"use strict";var r=n("h+/6");function o(e,t){return RegExp(e,t)}t.UNSUPPORTED_Y=r((function(){var e=o("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t.BROKEN_CARET=r((function(){var e=o("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},kk5s:function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},l9Lh:function(e,t,n){var r=n("6SQG"),o=n("jukf"),a="__core-js_shared__",i=r[a]||o(a,{});e.exports=i},lEPs:function(e,t,n){var r=n("OOCw"),o=n("N+aw").entries;r({target:"Object",stat:!0},{entries:function(e){return o(e)}})},lFeU:function(e,t,n){var r=n("vEbx"),o=n("AqOu"),a=o.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,a)}},lM0V:function(e,t,n){"use strict";var r=function(e){return+setTimeout(e,16)},o=function(e){return clearTimeout(e)};"undefined"!==typeof window&&"requestAnimationFrame"in window&&(r=function(e){return window.requestAnimationFrame(e)},o=function(e){return window.cancelAnimationFrame(e)});var a=0,i=new Map;function u(e){i["delete"](e)}var l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;a+=1;var n=a;function o(t){if(0===t)u(n),e();else{var a=r((function(){o(t-1)}));i.set(n,a)}}return o(t),n};l.cancel=function(e){var t=i.get(e);return u(e),o(t)},t["a"]=l},lSsb:function(e,t,n){var r=n("OOCw"),o=n("1Sp3"),a=n("sErw"),i=o.toKey,u=o.set;r({target:"Reflect",stat:!0},{metadata:function(e,t){return function(n,r){u(e,t,a(n),i(r))}}})},lT6V:function(e,t,n){var r=n("OOCw"),o=Math.PI/180;r({target:"Math",stat:!0},{radians:function(e){return e*o}})},ldjU:function(e,t,n){"use strict";var r=n("OOCw"),o=n("CsJM").start,a=n("tSnU"),i=a("trimStart"),u=i?function(){return o(this)}:"".trimStart;r({target:"String",proto:!0,forced:i},{trimStart:u,trimLeft:u})},lkgX:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},m5gC:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getParameters=void 0;var r=n("wQXD");function o(e){return r.compressToBase64(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function a(e){return o(JSON.stringify(e))}t.getParameters=a},mDdX:function(e,t,n){"use strict";e.exports=function(e,t){if("string"!==typeof e||"string"!==typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];var n=e.indexOf(t);return-1===n?[e]:[e.slice(0,n),e.slice(n+t.length)]}},mRlv:function(e,t,n){"use strict";var r=n("BUyj"),o=n("ZmXH");e.exports=r("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),o)},mVlO:function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},mnt4:function(e,t,n){"use strict";var r=n("OOCw"),o=n("uZx/"),a=n("lkgX");r({target:"Map",stat:!0},{groupBy:function(e,t){var n=new this;a(t);var r=a(n.has),i=a(n.get),u=a(n.set);return o(e,(function(e){var o=t(e);r.call(n,o)?i.call(n,o).push(e):u.call(n,o,[e])})),n}})},mult:function(e,t,n){var r=n("oEsY"),o=n("yJKb"),a=n("6ssM"),i=n("0JbB");e.exports=function(e,t){for(var n=o(t),u=i.f,l=a.f,c=0;c]*>)/g,v=/\$([$&'`]|\d\d?)/g,m=function(e){return void 0===e?e:String(e)};r("replace",2,(function(e,t,n,r){var g=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,y=r.REPLACE_KEEPS_$0,b=g?"$":"$0";return[function(n,r){var o=l(this),a=void 0==n?void 0:n[e];return void 0!==a?a.call(n,o,r):t.call(String(o),n,r)},function(e,r){if(!g&&y||"string"===typeof r&&-1===r.indexOf(b)){var a=n(t,e,this,r);if(a.done)return a.value}var l=o(e),p=String(this),h="function"===typeof r;h||(r=String(r));var v=l.global;if(v){var E=l.unicode;l.lastIndex=0}var O=[];while(1){var k=s(l,p);if(null===k)break;if(O.push(k),!v)break;var S=String(k[0]);""===S&&(l.lastIndex=c(p,i(l.lastIndex),E))}for(var x="",j=0,C=0;C=j&&(x+=p.slice(j,T)+N,j=T+A.length)}return x+p.slice(j)}];function w(e,n,r,o,i,u){var l=r+e.length,c=o.length,s=v;return void 0!==i&&(i=a(i),s=h),t.call(u,s,(function(t,a){var u;switch(a.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,r);case"'":return n.slice(l);case"<":u=i[a.slice(1,-1)];break;default:var s=+a;if(0===s)return t;if(s>c){var f=p(s/10);return 0===f?t:f<=c?void 0===o[f-1]?a.charAt(1):o[f-1]+a.charAt(1):t}u=o[s-1]}return void 0===u?"":u}))}}))},nndC:function(e,t,n){var r=n("OOCw"),o=n("CBsr");r({target:"WeakMap",stat:!0},{of:o})},o1x9:function(e,t,n){"use strict";var r=n("vfR7").charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},oEsY:function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},oSdA:function(e,t,n){var r=n("KZF9");r("toPrimitive")},opL2:function(e,t,n){var r=n("r+6h"),o=n("0JbB"),a=n("rfqm"),i=n("kj2u").UNSUPPORTED_Y;r&&("g"!=/./g.flags||i)&&o.f(RegExp.prototype,"flags",{configurable:!0,get:a})},"p/Qk":function(e,t,n){var r=n("OOCw");r({target:"Math",stat:!0},{iaddh:function(e,t,n,r){var o=e>>>0,a=t>>>0,i=n>>>0;return a+(r>>>0)+((o&i|(o|i)&~(o+i>>>0))>>>31)|0}})},p1yP:function(e,t,n){"use strict";var r=n("OOCw"),o=n("r+6h"),a=n("THzI"),i=n("OdMF"),u=n("JSMs"),l=n("zesz"),c=n("6ssM").f;o&&r({target:"Object",proto:!0,forced:a},{__lookupGetter__:function(e){var t,n=i(this),r=u(e,!0);do{if(t=c(n,r))return t.get}while(n=l(n))}})},p3eN:function(e,t,n){var r=n("r+6h"),o=n("h+/6"),a=n("73fw");e.exports=!r&&!o((function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},pDCl:function(e,t,n){var r=n("OOCw"),o=n("HRbj");r({target:"Map",stat:!0},{from:o})},pKuQ:function(e,t,n){var r=n("sErw");e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(i){var a=e["return"];throw void 0!==a&&r(a.call(e)),i}}},pVp3:function(e,t,n){var r=n("kk5s");e.exports=function(e){if("number"!=typeof e&&"Number"!=r(e))throw TypeError("Incorrect invocation");return+e}},paFN:function(e,t,n){"use strict";var r=n("OOCw"),o=n("qyeh"),a=n("sErw"),i=n("lkgX"),u=n("uZx/");r({target:"Set",proto:!0,real:!0,forced:o},{isSupersetOf:function(e){var t=a(this),n=i(t.has);return!u(e,(function(e){if(!1===n.call(t,e))return u.stop()})).stopped}})},piBM:function(e,t,n){var r=n("l9Lh"),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return o.call(e)}),e.exports=r.inspectSource},ppRt:function(e,t,n){"use strict";var r=n("sErw"),o=n("lkgX");e.exports=function(){for(var e=r(this),t=o(e.add),n=0,a=arguments.length;n=0;d--){var p=i[d];"."===p?a(i,d):".."===p?(a(i,d),f++):f&&(a(i,d),f--)}if(!c)for(;f--;f)i.unshift("..");!c||""===i[0]||i[0]&&o(i[0])||i.unshift("");var h=i.join("/");return n&&"/"!==h.substr(-1)&&(h+="/"),h}var u=i;function l(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}function c(e,t){if(e===t)return!0;if(null==e||null==t)return!1;if(Array.isArray(e))return Array.isArray(t)&&e.length===t.length&&e.every((function(e,n){return c(e,t[n])}));if("object"===typeof e||"object"===typeof t){var n=l(e),r=l(t);return n!==e||r!==t?c(n,r):Object.keys(Object.assign({},e,t)).every((function(n){return c(e[n],t[n])}))}return!1}var s=c,f=n("gGOj"),d=n.n(f),p=n("g8ur");function h(e){return"/"===e.charAt(0)?e:"/"+e}function v(e){return"/"===e.charAt(0)?e.substr(1):e}function m(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}function g(e,t){return m(e,t)?e.substr(t.length):e}function y(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function b(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var a=t.indexOf("?");return-1!==a&&(n=t.substr(a),t=t.substr(0,a)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}function w(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 E(e,t,n,o){var a;"string"===typeof e?(a=b(e),a.query=a.search?d.a.parse(a.search):{},a.state=t):(a=Object(r["a"])({},e),void 0===a.pathname&&(a.pathname=""),a.search?("?"!==a.search.charAt(0)&&(a.search="?"+a.search),a.query=d.a.parse(a.search)):(a.search=a.query?d.a.stringify(a.query):"",a.query=a.query||{}),a.hash?"#"!==a.hash.charAt(0)&&(a.hash="#"+a.hash):a.hash="",void 0!==t&&void 0===a.state&&(a.state=t));try{a.pathname=decodeURI(a.pathname)}catch(i){throw i instanceof URIError?new URIError('Pathname "'+a.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):i}return n&&(a.key=n),o?a.pathname?"/"!==a.pathname.charAt(0)&&(a.pathname=u(a.pathname,o.pathname)):a.pathname=o.pathname:a.pathname||(a.pathname="/"),a}function O(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&s(e.state,t.state)}function k(){var e=null;function t(t){return e=t,function(){e===t&&(e=null)}}function n(t,n,r,o){if(null!=e){var a="function"===typeof e?e(t,n):e;"string"===typeof a?"function"===typeof r?r(a,o):o(!0):o(!1!==a)}else o(!0)}var r=[];function o(e){var t=!0;function n(){t&&e.apply(void 0,arguments)}return r.push(n),function(){t=!1,r=r.filter((function(e){return e!==n}))}}function a(){for(var e=arguments.length,t=new Array(e),n=0;nn?a.splice(n,a.length-n,o):a.push(o),f({action:r,location:o,index:n,entries:a})}}))}function g(e,t){var r="REPLACE",o=E(e,t,d(),C.location);s.confirmTransitionTo(o,r,n,(function(e){e&&(C.entries[C.index]=o,f({action:r,location:o}))}))}function y(e){var t=U(C.index+e,0,C.entries.length-1),r="POP",o=C.entries[t];s.confirmTransitionTo(o,r,n,(function(e){e?f({action:r,location:o,index:t}):f()}))}function b(){y(-1)}function O(){y(1)}function S(e){var t=C.index+e;return t>=0&&t1?arguments[1]:void 0)}})},rUEg:function(e,t,n){"use strict";var r=n("h+/6");e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){throw 1},1)}))}},rVbH:function(e,t,n){"use strict";e.exports=n("BZ8O")},rfqm:function(e,t,n){"use strict";var r=n("sErw");e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},rjd2:function(e,t,n){"use strict";var r=n("OOCw"),o=n("uZx/"),a=n("lkgX");r({target:"Map",stat:!0},{keyBy:function(e,t){var n=new this;a(t);var r=a(n.set);return o(e,(function(e){r.call(n,t(e),e)})),n}})},ruhe:function(e,t,n){"use strict";var r=Symbol.for("react.element"),o=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.iterator;function v(e){return null===e||"object"!==typeof e?null:(e=h&&e[h]||e["@@iterator"],"function"===typeof e?e:null)}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,y={};function b(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||m}function w(){}function E(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||m}b.prototype.isReactComponent={},b.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},b.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},w.prototype=b.prototype;var O=E.prototype=new w;O.constructor=E,g(O,b.prototype),O.isPureReactComponent=!0;var k=Array.isArray,S=Object.prototype.hasOwnProperty,x={current:null},j={key:!0,ref:!0,__self:!0,__source:!0};function C(e,t,n){var o,a={},i=null,u=null;if(null!=t)for(o in void 0!==t.ref&&(u=t.ref),void 0!==t.key&&(i=""+t.key),t)S.call(t,o)&&!j.hasOwnProperty(o)&&(a[o]=t[o]);var l=arguments.length-2;if(1===l)a.children=n;else if(1{e.demos;return o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:"markdown"},o.a.createElement("h1",{id:"\u5feb\u901f\u4e0a\u624b"},o.a.createElement(a["AnchorLink"],{to:"#\u5feb\u901f\u4e0a\u624b","aria-hidden":"true",tabIndex:-1},o.a.createElement("span",{className:"icon icon-link"})),"\u5feb\u901f\u4e0a\u624b"),o.a.createElement("h2",{id:"\u521b\u5efa\u4e00\u4e2a-store"},o.a.createElement(a["AnchorLink"],{to:"#\u521b\u5efa\u4e00\u4e2a-store","aria-hidden":"true",tabIndex:-1},o.a.createElement("span",{className:"icon icon-link"})),"\u521b\u5efa\u4e00\u4e2a store"),o.a.createElement("p",null,"\u5728 hox \u4e2d\uff0c\u4efb\u610f\u7684 custom Hook\uff0c\u7ecf\u8fc7 ",o.a.createElement("code",null,"createStore")," \u5305\u88c5\u540e\uff0c\u5c31\u53d8\u6210\u4e86\u6301\u4e45\u5316\uff0c\u53ef\u4ee5\u5728\u7ec4\u4ef6\u95f4\u8fdb\u884c\u5171\u4eab\u7684\u72b6\u6001\u3002"),o.a.createElement(i["a"],{code:"import { useState } from 'react'\nimport { createStore } from 'hox'\n\nexport const [useTaskStore, TaskStoreProvider] = createStore(() => {\n const [tasks, setTasks] = useState([])\n\n function addTask(task) {\n setTasks(v => [...v, task])\n }\n\n function finishTask(task) {\n setTasks(v => v.filter(t => t !== task))\n }\n\n return {\n tasks,\n addTask,\n finishTask,\n }\n})",lang:"jsx"}),o.a.createElement("p",null,o.a.createElement("code",null,"createStore")," \u4f1a\u8fd4\u56de\u4e00\u4e2a\u6570\u7ec4\uff0c\u91cc\u9762\u6709\u4e24\u4e2a\u5143\u7d20\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7 ES6 \u7684\u6570\u7ec4\u89e3\u6784\u8bed\u6cd5\u628a\u4ed6\u4eec\u89e3\u6784\u51fa\u6765\uff0c\u5e76\u4e14\u53d6\u6210\u7b26\u5408\u4e1a\u52a1\u903b\u8f91\u7684\u540d\u5b57\uff0c\u4f8b\u5982\u4e0a\u9762\u7684 ",o.a.createElement("code",null,"useTaskStore")," \u548c ",o.a.createElement("code",null,"TaskStoreProvider"),"\u3002"),o.a.createElement("p",null,o.a.createElement("code",null,"TaskStoreProvider")," \u662f\u72b6\u6001\u7684\u5bb9\u5668\uff0c\u5b83\u7684\u5e95\u5c42\u662f\u4f9d\u8d56\u4e86 React Context \u6240\u4ee5\u4f60\u9700\u8981\u628a\u5b83\u6ce8\u5165\u5230\u7ec4\u4ef6\u6811\u4e2d\uff0c\u4f8b\u5982\uff1a"),o.a.createElement(i["a"],{code:"\n
\n \n \n \n \n \n \n \n",lang:"jsx"}),o.a.createElement("p",null,"\u63a5\u4e0b\u6765\u53ef\u4ee5\u5728 ",o.a.createElement("code",null,"TaskList")," \u7ec4\u4ef6\u4e2d\u4f7f\u7528 ",o.a.createElement("code",null,"useTaskStore")," \u8ba2\u9605\u548c\u6d88\u8d39 store \u4e2d\u7684\u6570\u636e\uff1a"),o.a.createElement(i["a"],{code:"function TaskList() {\n const { tasks } = useTaskStore()\n return (\n <>\n {tasks.map(task => (\n \n ))}\n \n )\n}",lang:"jsx"}),o.a.createElement("p",null,"\u6bcf\u6b21 TaskStore \u66f4\u65b0\u65f6\uff0cTaskList \u90fd\u4f1a\u81ea\u52a8\u91cd\u65b0\u6e32\u67d3\uff0c\u5e76\u4e14\u83b7\u53d6\u5230\u6700\u65b0\u7684 ",o.a.createElement("code",null,"tasks")," \u6570\u636e\u3002"),o.a.createElement("blockquote",null,o.a.createElement("p",null,o.a.createElement("code",null,"useStore")," \u662f\u4e00\u4e2a React Hook \uff0c\u6240\u4ee5\u5728\u4f7f\u7528\u5b83\u7684\u65f6\u5019\uff0c\u8bf7\u9075\u5b88 React \u7684 ",o.a.createElement(a["Link"],{to:"https://reactjs.org/docs/hooks-rules.html"},"rules of hooks")," \u3002")),o.a.createElement("p",null,"\u6211\u4eec\u63a8\u8350 ",o.a.createElement("code",null,"useXxxStore")," \u548c ",o.a.createElement("code",null,"XxxStoreProvider")," \u8fd9\u6837\u7684\u547d\u540d\uff0c\u56e0\u4e3a\u5b83\u4eec\u66f4\u52a0\u660e\u786e\uff0c\u4f46\u662f\u5982\u679c\u4f60\u89c9\u5f97\u5b83\u4eec\u540d\u5b57\u592a\u957f\u4e86\uff0c\u4e5f\u53ef\u4ee5\u8003\u8651\u7f29\u5199\u6210 ",o.a.createElement("code",null,"useXxx")," \u548c ",o.a.createElement("code",null,"XxxProvider"),"\u3002"),o.a.createElement("h2",{id:"store-\u7684\u4e0a\u4e0b\u6587\u548c\u591a\u4e2a\u5b9e\u4f8b"},o.a.createElement(a["AnchorLink"],{to:"#store-\u7684\u4e0a\u4e0b\u6587\u548c\u591a\u4e2a\u5b9e\u4f8b","aria-hidden":"true",tabIndex:-1},o.a.createElement("span",{className:"icon icon-link"})),"store \u7684\u4e0a\u4e0b\u6587\u548c\u591a\u4e2a\u5b9e\u4f8b"),o.a.createElement("p",null,"\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u53ea\u6709 ",o.a.createElement("code",null,"CounterStoreProvider")," \u7684\u5185\u90e8\u8282\u70b9\u624d\u53ef\u4ee5\u83b7\u53d6\u5230\u5b83\u7684\u4e0a\u4e0b\u6587\uff0c\u6240\u4ee5\u5728 ",o.a.createElement("code",null,"Header")," \u7ec4\u4ef6\u4e2d\u662f\u4e0d\u53ef\u4ee5\u8c03\u7528 ",o.a.createElement("code",null,"useTaskStore")," \u7684\u3002\u5982\u679c\u4f60\u719f\u6089 React \u7684 Context \u7279\u6027\uff0c\u90a3\u4e48\u8fd9\u4e00\u70b9\u662f\u5f88\u597d\u7406\u89e3\u7684\u3002"),o.a.createElement(i["a"],{code:"\n
\n \n ...\n \n",lang:"jsx"}),o.a.createElement("p",null,"\u6bcf\u6e32\u67d3\u4e00\u4e2a ",o.a.createElement("code",null,"TaskStoreProvider"),"\uff0c\u5c31\u4f1a\u5bf9\u5e94\u7684\u521b\u5efa\u4e00\u4e2a store \u7684\u5b9e\u4f8b\uff0c\u57fa\u4e8e\u8fd9\u4e2a\u7279\u6027\uff0c\u4f60\u53ef\u4ee5\u5728\u9875\u9762\u4e0a\u6e32\u67d3\u591a\u4e2a StoreProvider\uff0c\u6765\u5b9e\u73b0\u591a\u5b9e\u4f8b\uff0c\u5e76\u4e14\u6839\u636e Context \u7684\u4e0a\u4e0b\u6587\uff0c\u5728\u5b50\u8282\u70b9\u7ec4\u4ef6\u4e2d\u81ea\u52a8\u5730\u83b7\u53d6\u5230\u5bf9\u5e94\u7684 store \u5b9e\u4f8b\uff1a"),o.a.createElement(i["a"],{code:"\n \n ...\n \n\n\n \n ...\n \n",lang:"jsx"}),o.a.createElement("p",null,"\u4e0d\u540c StoreProvider \u5b9e\u4f8b\u4e4b\u95f4\uff0c\u6570\u636e\u662f\u5b8c\u5168\u72ec\u7acb\u548c\u9694\u79bb\u7684\uff0c\u5c31\u50cf\u662f\u540c\u4e00\u4e2a React \u7ec4\u4ef6\u7684\u591a\u4e2a\u5b9e\u4f8b\u4e00\u6837\u3002"),o.a.createElement("p",null,"\u4f60\u751a\u81f3\u53ef\u4ee5\u5728 ",o.a.createElement("code",null,"TaskStoreProvider")," \u5b50\u8282\u70b9\u4e2d\u518d\u6e32\u67d3\u4e00\u4e2a ",o.a.createElement("code",null,"TaskStoreProvider"),"\uff0c\u6839\u636e Context \u7684\u7279\u6027\uff0c",o.a.createElement("code",null,"TaskList")," \u7ec4\u4ef6\u4f1a\u81ea\u52a8\u5bfb\u627e\u5230\u6700\u8fd1\u7684\u7236\u7ea7 Provider\uff1a"),o.a.createElement(i["a"],{code:"\n ...\n \n ...\n \n",lang:"jsx"}),o.a.createElement("p",null,"\u5f53\u7136\uff0c\u4e00\u822c\u6765\u8bf4\u4e0d\u592a\u4f1a\u9700\u8981\u8fd9\u4e48\u7528\u3002"),o.a.createElement("h2",{id:"store-\u4e4b\u95f4\u7684\u4f9d\u8d56"},o.a.createElement(a["AnchorLink"],{to:"#store-\u4e4b\u95f4\u7684\u4f9d\u8d56","aria-hidden":"true",tabIndex:-1},o.a.createElement("span",{className:"icon icon-link"})),"store \u4e4b\u95f4\u7684\u4f9d\u8d56"),o.a.createElement("p",null,"\u867d\u7136\u4f60\u4ecd\u7136\u53ef\u4ee5\u6309\u7167\u4f20\u7edf\u7684\u5355\u4e00\u6570\u636e\u6e90\u7684\u601d\u60f3\u8fdb\u884c store \u7684\u8bbe\u8ba1\uff0c\u4f46\u6211\u4eec\u66f4\u63a8\u8350\u5c06 store \u62c6\u5206\u6210\u591a\u4e2a\u5c0f\u90e8\u5206\uff0c\u4e8e\u662f\u4e0d\u53ef\u907f\u514d\u7684\uff0c\u6211\u4eec\u9700\u8981\u5728\u591a\u4e2a store \u4e4b\u95f4\u5904\u7406\u4f9d\u8d56\u5173\u7cfb\uff0c\u4f8b\u5982\u4efb\u52a1\u5217\u8868\u6a21\u5757 ",o.a.createElement("code",null,"task")," \u4f9d\u8d56\u8d26\u6237\u6a21\u5757 ",o.a.createElement("code",null,"account"),"\u3002"),o.a.createElement("p",null,"\u5728 hox \u4e2d\uff0c\u5904\u7406\u6a21\u5757\u4e4b\u95f4\u7684\u4f9d\u8d56\u975e\u5e38\u7b80\u5355\u4e14\u81ea\u7136\uff1a\u5728\u4e00\u4e2a store \u4e2d\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528 ",o.a.createElement("code",null,"useXXXStore")," \u6765\u83b7\u53d6\u53e6\u4e00\u4e2a store\uff0c\u5e76\u8ba2\u9605\u5176\u66f4\u65b0\uff0c\u548c\u5728\u7ec4\u4ef6\u4e2d\u4f7f\u7528\u5e76\u65e0\u4e24\u6837\u3002"),o.a.createElement("blockquote",null,o.a.createElement("p",null,"\u63d0\u9192\uff1a\u5c0f\u5fc3\u5faa\u73af\u4f9d\u8d56\uff01")),o.a.createElement(i["a"],{code:"import { useAccountStore } from './account-store'\n\nexport const [useTaskStore, TaskStoreProvider] = createStore(() => {\n // ...\n const { user } = useAccountStore()\n\n function addTask(taskName) {\n setTasks(v => [\n ...v,\n {\n name: taskName,\n assignee: user.id,\n },\n ])\n }\n\n // ...\n})",lang:"jsx"}),o.a.createElement("h2",{id:"\u4f20\u9012\u989d\u5916\u7684\u53c2\u6570\u7ed9-storeprovider"},o.a.createElement(a["AnchorLink"],{to:"#\u4f20\u9012\u989d\u5916\u7684\u53c2\u6570\u7ed9-storeprovider","aria-hidden":"true",tabIndex:-1},o.a.createElement("span",{className:"icon icon-link"})),"\u4f20\u9012\u989d\u5916\u7684\u53c2\u6570\u7ed9 StoreProvider"),o.a.createElement("p",null,"\u4f60\u53ef\u4ee5\u901a\u8fc7 ",o.a.createElement("code",null,"props")," \u4f20\u9012\u989d\u5916\u7684\u53c2\u6570\u7ed9 StoreProvider\uff0c\u7136\u540e\u518d store \u7684 Hook \u4e2d\uff0c\u901a\u8fc7\u7b2c\u4e00\u4e2a\u53c2\u6570 ",o.a.createElement("code",null,"props")," \u83b7\u53d6\u5230\uff0c\u5c31\u50cf\u5199 React \u7ec4\u4ef6\u4e00\u6837\uff1a"),o.a.createElement(i["a"],{code:"{/* ... */}",lang:"jsx"}),o.a.createElement(i["a"],{code:"type Props = {\n initialCount: number,\n}\n\nconst [useCounterStore, CounterStoreProvider] = createStore(function (\n props: Props\n) {\n const [count, setCount] = useState(props.initialCount)\n return { count, setCount }\n})",lang:"jsx"}),o.a.createElement("h2",{id:"\u5168\u5c40-store"},o.a.createElement(a["AnchorLink"],{to:"#\u5168\u5c40-store","aria-hidden":"true",tabIndex:-1},o.a.createElement("span",{className:"icon icon-link"})),"\u5168\u5c40 store"),o.a.createElement("p",null,"\u5176\u5b9e\u5e76\u4e0d\u662f\u6240\u6709\u7684 store \u90fd\u9700\u8981\u6709\u4e00\u4e2a\u4f5c\u7528\u57df\u3001\u9700\u8981\u652f\u6301\u591a\u4e2a\u5b9e\u4f8b\uff0c\u5728\u4e00\u4e2a\u771f\u5b9e\u7684\u9879\u76ee\u4e2d\uff0c\u5927\u90e8\u5206\u7684 store \u53ef\u80fd\u90fd\u662f\u5168\u5c40\u6027\u7684\uff0c\u800c\u5982\u679c\u4f60\u6bcf\u6b21\u90fd\u624b\u52a8\u6dfb\u52a0 StoreProvider\uff0c\u53ef\u80fd\u4f1a\u611f\u5230\u5d29\u6e83\uff1a"),o.a.createElement(i["a"],{code:"\n \n \n \n \n \n \n \n",lang:"jsx"}),o.a.createElement("p",null,"\u56e0\u6b64\uff0chox \u63d0\u4f9b\u4e86\u53e6\u4e00\u79cd\u7c7b\u578b\u7684 store\uff1a\u5168\u5c40 store\u3002"),o.a.createElement("p",null,"\u4f60\u53ef\u4ee5\u901a\u8fc7 ",o.a.createElement("code",null,"createGlobalStore")," \u6765\u521b\u5efa\u4e00\u4e2a\u5168\u5c40 ",o.a.createElement("code",null,"store"),"\uff1a"),o.a.createElement(i["a"],{code:"import { createGlobalStore } from 'hox'\n\nconst [useAccountStore, getAccountStore] = createGlobalStore(() => {\n // ...\n})",lang:"js"}),o.a.createElement("p",null,"\u548c ",o.a.createElement("code",null,"createStore")," \u7c7b\u4f3c\uff0c",o.a.createElement("code",null,"createGlobalStore")," \u8fd4\u56de\u4e86\u4e00\u4e2a\u6570\u7ec4\uff1a"),o.a.createElement("p",null,"\u7b2c\u4e00\u4e2a\u5143\u7d20\u662f\u7528\u6765\u8ba2\u9605 store \u7684 Hook \u51fd\u6570\uff0c\u5173\u4e8e\u5b83\u7684\u7528\u6cd5\uff0c\u8fd9\u91cc\u5c31\u4e0d\u518d\u4ecb\u7ecd\u4e86\uff0c\u548c\u666e\u901a store \u662f\u4e00\u6837\u7684\u3002"),o.a.createElement("p",null,"\u800c\u7b2c\u4e8c\u4e2a\u5143\u7d20\u6709\u4e9b\u533a\u522b\uff0c\u662f\u4e00\u4e2a\u9759\u6001\u83b7\u53d6\u51fd\u6570 ",o.a.createElement("code",null,"getXxxStore"),"\uff0c\u8fd9\u91cc\u5148\u5356\u4e2a\u5173\u5b50\uff0c\u4e0b\u9762\u518d\u5177\u4f53\u4ecb\u7ecd\u3002"),o.a.createElement("p",null,"\u53ef\u4ee5\u53d1\u73b0\uff0c\u5bf9\u4e8e\u5168\u5c40 store\uff0c\u5e76\u6ca1\u6709\u5bf9\u5e94\u7684 StoreProvider \u7ec4\u4ef6\uff0c\u56e0\u6b64\u4f60\u4e0d\u9700\u8981\u6bcf\u6b21\u521b\u5efa\u4e00\u4e2a store\uff0c\u5c31\u624b\u52a8\u6dfb\u52a0\u4e00\u5c42 Provider\u3002\u4e0d\u8fc7\uff0c\u4e3a\u4e86\u8ba9\u5168\u5c40 store \u80fd\u591f\u6b63\u5e38\u6ce8\u518c\uff0c\u4f60\u9700\u8981\u5728\u6574\u4e2a React \u5e94\u7528\u7684\u6700\u5916\u5c42\u7528 ",o.a.createElement("code",null,"HoxRoot")," \u5305\u88f9\u4e00\u4e0b\uff1a"),o.a.createElement(i["a"],{code:"import { HoxRoot } from 'hox'\n\nReactDOM.render(\n \n \n ,\n domContainer\n)",lang:"jsx"}),o.a.createElement("p",null,"\u4f60\u53ef\u4ee5\u628a ",o.a.createElement("code",null,"HoxRoot")," \u60f3\u8c61\u6210\u6240\u6709\u5168\u5c40 store \u7684\u7edf\u4e00\u7684 StoreProvider\uff0c\u53ef\u4ee5\u901a\u8fc7\u5b83\u4e00\u6b21\u6027\u5730\u628a\u6240\u6709\u5168\u5c40 store \u90fd\u6ce8\u518c\u6389\u3002"),o.a.createElement("p",null,"\u56de\u5230\u521a\u521a\u63d0\u5230\u7684 ",o.a.createElement("code",null,"getXxxStore")," \u51fd\u6570\uff0c\u5b83\u7684\u4f5c\u7528\u662f\u4e00\u6b21\u6027\u5730\u8bfb\u53d6 store \u5f53\u524d\u6700\u65b0\u7684\u503c\uff0c\u800c\u4e0d\u4f1a\u89e6\u53d1\u6301\u7eed\u7684\u8ba2\u9605\uff0c\u56e0\u4e3a\u5b83\u4e0d\u662f Hook\uff0c\u6240\u4ee5\u5e76\u4e0d\u9700\u8981\u4e00\u5b9a\u5728 React \u7ec4\u4ef6\u6e32\u67d3\u51fd\u6570\u4e2d\u8c03\u7528\uff0c\u4f60\u53ef\u4ee5\u5728\u4efb\u4f55\u5730\u65b9\u3001\u4efb\u4f55\u65f6\u5019\u8c03\u7528\u5b83\uff1a"),o.a.createElement(i["a"],{code:"export function log(message) {\n const { user } = getAccountStore()\n report.requestApi({\n message,\n userId: user.id,\n })\n}",lang:"js"})))}));t["default"]=e=>{var t=o.a.useContext(a["context"]),n=t.demos;return o.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&a["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),o.a.createElement(u,{demos:n})}},sErw:function(e,t,n){var r=n("x+sk");e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},sQaW:function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return u})),n.d(t,"d",(function(){return l})),n.d(t,"c",(function(){return c}));var r=n("k2w+"),o=(n("ahKI"),n("ghVC")),a=n("8WKJ");function i(e,t){"function"===typeof e?e(t):"object"===Object(r["a"])(e)&&e&&"current"in e&&(e.current=t)}function u(){for(var e=arguments.length,t=new Array(e),n=0;n1||"".split(/.?/).length?function(e,n){var r=String(i(this)),a=void 0===n?v:n>>>0;if(0===a)return[];if(void 0===e)return[r];if(!o(e))return t.call(r,e,a);var u,l,c,s=[],d=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),h=0,m=new RegExp(e.source,d+"g");while(u=f.call(m,r)){if(l=m.lastIndex,l>h&&(s.push(r.slice(h,u.index)),u.length>1&&u.index=a))break;m.lastIndex===u.index&&m.lastIndex++}return h===r.length?!c&&m.test("")||s.push(""):s.push(r.slice(h)),s.length>a?s.slice(0,a):s}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var o=i(this),a=void 0==t?void 0:t[e];return void 0!==a?a.call(t,o,n):r.call(String(o),t,n)},function(e,o){var i=n(r,e,this,o,r!==t);if(i.done)return i.value;var f=a(e),d=String(this),p=u(f,RegExp),g=f.unicode,y=(f.ignoreCase?"i":"")+(f.multiline?"m":"")+(f.unicode?"u":"")+(m?"y":"g"),b=new p(m?f:"^(?:"+f.source+")",y),w=void 0===o?v:o>>>0;if(0===w)return[];if(0===d.length)return null===s(b,d)?[d]:[];var E=0,O=0,k=[];while(Oe.length)&&(t=e.length);for(var n=0,r=new Array(t);n{var t=n("ahKI"),r=n("x4W1"),o=r.default,a=n("1i7f"),i=a.default,u=n("F4XJ"),l=u.usePrefersColor,c=u.context,s=t.useContext(c),f=s.demos,p=t.useState([]),h=d(p,2),v=h[0],m=h[1];switch(t.useLayoutEffect((()=>{m(o(e,f))}),[e.match.params.uuid,e.location.query.wrapper,e.location.query.capture]),l(),v.length){case 1:return v[0];case 2:return t.createElement(i,v[0],v[1]);default:return"Demo ".concat(e.match.params.uuid," not found :(")}}},{path:"/_demos/:uuid",redirect:"/~demos/:uuid"},{__dumiRoot:!0,layout:!1,path:"/",wrappers:[n("afA6").default,n("Gdhp").default],routes:[{path:"/",component:n("7m2b").default,exact:!0,meta:{filePath:"docs/index.en.md",updatedTime:1663060657e3,title:"Hox",hero:{title:"Hox",desc:'

State sharing for React components.

'},slugs:[{depth:2,value:"Play Hox in Codesandbox",heading:"play-hox-in-codesandbox"},{depth:2,value:"From state management to state sharing",heading:"from-state-management-to-state-sharing"},{depth:2,value:"Why use Hox?",heading:"why-use-hox"}],locale:"en"},title:"Hox - Hox"},{path:"/zh",component:n("75ce").default,exact:!0,meta:{filePath:"docs/index.zh.md",updatedTime:1663060657e3,title:"Hox",hero:{title:"Hox",desc:'

\u5728 React \u7ec4\u4ef6\u95f4\u5171\u4eab\u72b6\u6001

'},slugs:[{depth:2,value:"\u5728\u7ebf\u4f53\u9a8c",heading:"\u5728\u7ebf\u4f53\u9a8c"},{depth:2,value:"\u4ece\u72b6\u6001\u7ba1\u7406\u5230\u72b6\u6001\u5171\u4eab",heading:"\u4ece\u72b6\u6001\u7ba1\u7406\u5230\u72b6\u6001\u5171\u4eab"},{depth:2,value:"\u4e3a\u4ec0\u4e48\u8981\u7528 Hox\uff1f",heading:"\u4e3a\u4ec0\u4e48\u8981\u7528-hox"}],locale:"zh"},title:"Hox - Hox"},{path:"/guide/how-to-migrate-from-v1-to-v2",component:n("Fk8h").default,exact:!0,meta:{filePath:"docs/guide/how-to-migrate-from-v1-to-v2.en.md",updatedTime:1712628085e3,slugs:[{depth:1,value:"How to migrate from v1 to v2",heading:"how-to-migrate-from-v1-to-v2"},{depth:2,value:"HoxRoot",heading:"hoxroot"},{depth:2,value:"useLazyModel",heading:"uselazymodel"},{depth:2,value:"Finish",heading:"finish"}],title:"How to migrate from v1 to v2",locale:"en",nav:{path:"/guide",title:"Guide"}},title:"How to migrate from v1 to v2 - Hox"},{path:"/zh/guide/how-to-migrate-from-v1-to-v2",component:n("U5Fb").default,exact:!0,meta:{filePath:"docs/guide/how-to-migrate-from-v1-to-v2.zh.md",updatedTime:1658834363e3,slugs:[{depth:1,value:"\u5982\u4f55\u4ece v1 \u8fc1\u79fb\u5230 v2",heading:"\u5982\u4f55\u4ece-v1-\u8fc1\u79fb\u5230-v2"},{depth:2,value:"createModel",heading:"createmodel"},{depth:2,value:"HoxRoot",heading:"hoxroot"},{depth:2,value:"useLazyModel",heading:"uselazymodel"},{depth:2,value:"\u5b8c\u6210",heading:"\u5b8c\u6210"}],title:"\u5982\u4f55\u4ece v1 \u8fc1\u79fb\u5230 v2",locale:"zh",nav:{path:"/zh/guide",title:"Guide"}},title:"\u5982\u4f55\u4ece v1 \u8fc1\u79fb\u5230 v2 - Hox"},{path:"/guide/performance",component:n("alDa").default,exact:!0,meta:{filePath:"docs/guide/performance.en.md",updatedTime:165839273e4,slugs:[{depth:1,value:"Performance",heading:"performance"}],title:"Performance",locale:"en",nav:{path:"/guide",title:"Guide"}},title:"Performance - Hox"},{path:"/zh/guide/performance",component:n("Fdmm").default,exact:!0,meta:{filePath:"docs/guide/performance.zh.md",updatedTime:1657767478e3,slugs:[{depth:1,value:"\u6027\u80fd\u4f18\u5316",heading:"\u6027\u80fd\u4f18\u5316"}],title:"\u6027\u80fd\u4f18\u5316",locale:"zh",nav:{path:"/zh/guide",title:"Guide"}},title:"\u6027\u80fd\u4f18\u5316 - Hox"},{path:"/guide/quick-start",component:n("Gkaq").default,exact:!0,meta:{filePath:"docs/guide/quick-start.en.md",updatedTime:1660445069e3,slugs:[{depth:1,value:"Quick Start",heading:"quick-start"},{depth:2,value:"Create a Store",heading:"create-a-store"},{depth:2,value:"The Context and Multiple Instances of Store",heading:"the-context-and-multiple-instances-of-store"},{depth:2,value:"The Dependencies Between Stores",heading:"the-dependencies-between-stores"},{depth:2,value:"Pass additional parameters to StoreProvider",heading:"pass-additional-parameters-to-storeprovider"},{depth:2,value:"Global Store",heading:"global-store"}],title:"Quick Start",locale:"en",nav:{path:"/guide",title:"Guide"}},title:"Quick Start - Hox"},{path:"/zh/guide/quick-start",component:n("s8zK").default,exact:!0,meta:{filePath:"docs/guide/quick-start.zh.md",updatedTime:1660444739e3,slugs:[{depth:1,value:"\u5feb\u901f\u4e0a\u624b",heading:"\u5feb\u901f\u4e0a\u624b"},{depth:2,value:"\u521b\u5efa\u4e00\u4e2a store",heading:"\u521b\u5efa\u4e00\u4e2a-store"},{depth:2,value:"store \u7684\u4e0a\u4e0b\u6587\u548c\u591a\u4e2a\u5b9e\u4f8b",heading:"store-\u7684\u4e0a\u4e0b\u6587\u548c\u591a\u4e2a\u5b9e\u4f8b"},{depth:2,value:"store \u4e4b\u95f4\u7684\u4f9d\u8d56",heading:"store-\u4e4b\u95f4\u7684\u4f9d\u8d56"},{depth:2,value:"\u4f20\u9012\u989d\u5916\u7684\u53c2\u6570\u7ed9 StoreProvider",heading:"\u4f20\u9012\u989d\u5916\u7684\u53c2\u6570\u7ed9-storeprovider"},{depth:2,value:"\u5168\u5c40 store",heading:"\u5168\u5c40-store"}],title:"\u5feb\u901f\u4e0a\u624b",locale:"zh",nav:{path:"/zh/guide",title:"Guide"}},title:"\u5feb\u901f\u4e0a\u624b - Hox"},{path:"/guide/use-in-class-components",component:n("Teq4").default,exact:!0,meta:{filePath:"docs/guide/use-in-class-components.en.md",updatedTime:165839273e4,slugs:[{depth:1,value:"Use in Class Components",heading:"use-in-class-components"}],title:"Use in Class Components",locale:"en",nav:{path:"/guide",title:"Guide"}},title:"Use in Class Components - Hox"},{path:"/zh/guide/use-in-class-components",component:n("Kfai").default,exact:!0,meta:{filePath:"docs/guide/use-in-class-components.zh.md",updatedTime:1657767478e3,slugs:[{depth:1,value:"\u5728\u7c7b\u7ec4\u4ef6\u4e2d\u4f7f\u7528",heading:"\u5728\u7c7b\u7ec4\u4ef6\u4e2d\u4f7f\u7528"}],title:"\u5728\u7c7b\u7ec4\u4ef6\u4e2d\u4f7f\u7528",locale:"zh",nav:{path:"/zh/guide",title:"Guide"}},title:"\u5728\u7c7b\u7ec4\u4ef6\u4e2d\u4f7f\u7528 - Hox"},{path:"/guide",meta:{},exact:!0,redirect:"/guide/quick-start"},{path:"/zh/guide",meta:{},exact:!0,redirect:"/zh/guide/quick-start"}],title:"Hox",component:e=>e.children}];return r["a"].applyPlugins({key:"patchRoutes",type:a["ApplyPluginsType"].event,args:{routes:e}}),e}var h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r["a"].applyPlugins({key:"render",type:a["ApplyPluginsType"].compose,initialValue:()=>{var t=r["a"].applyPlugins({key:"modifyClientRenderOpts",type:a["ApplyPluginsType"].modify,initialValue:{routes:e.routes||p(),plugin:r["a"],history:Object(o["a"])(e.hot),isServer:Object({NODE_ENV:"production"}).__IS_SERVER,rootElement:"root",defaultTitle:"Hox"}});return Object(i["renderClient"])(t)},args:e})},v=h();t["default"]=v();window.g_umi={version:"3.5.27"}},tDGd:function(e,t,n){var r,o,a=n("6SQG"),i=n("7EYs"),u=a.process,l=u&&u.versions,c=l&&l.v8;c?(r=c.split("."),o=r[0]+r[1]):i&&(r=i.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=i.match(/Chrome\/(\d+)/),r&&(o=r[1]))),e.exports=o&&+o},tOwT:function(e,t,n){"use strict";var r=n("BUyj"),o=n("jETf");r("WeakSet",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),o)},tSbI:function(e,t,n){"use strict";e.exports=n("Swb/")},tSnU:function(e,t,n){var r=n("h+/6"),o=n("Vg85"),a="\u200b\x85\u180e";e.exports=function(e){return r((function(){return!!o[e]()||a[e]()!=a||o[e].name!==e}))}},ta0t:function(e,t,n){var r=n("vTOu");function o(e){if(Array.isArray(e))return r(e)}e.exports=o},tmip:function(e,t,n){"use strict";var r=n("JSMs"),o=n("0JbB"),a=n("ZVkV");e.exports=function(e,t,n){var i=r(t);i in e?o.f(e,i,a(0,n)):e[i]=n}},uAOU:function(e,t,n){"use strict";var r=n("6SQG"),o=n("g0pg"),a=n("h+/6"),i=r.Int8Array,u=o.aTypedArray,l=o.exportTypedArrayMethod,c=[].toLocaleString,s=[].slice,f=!!i&&a((function(){c.call(new i(1))})),d=a((function(){return[1,2].toLocaleString()!=new i([1,2]).toLocaleString()}))||!a((function(){i.prototype.toLocaleString.call([1,2])}));l("toLocaleString",(function(){return c.apply(f?s.call(u(this)):u(this),arguments)}),d)},"uF/W":function(e,t,n){var r=n("6SQG"),o=n("MZA9"),a=n("oEsY"),i=n("jukf"),u=n("piBM"),l=n("uJNS"),c=l.get,s=l.enforce,f=String(String).split("String");(e.exports=function(e,t,n,u){var l=!!u&&!!u.unsafe,c=!!u&&!!u.enumerable,d=!!u&&!!u.noTargetGet;"function"==typeof n&&("string"!=typeof t||a(n,"name")||o(n,"name",t),s(n).source=f.join("string"==typeof t?t:"")),e!==r?(l?!d&&e[t]&&(c=!0):delete e[t],c?e[t]=n:o(e,t,n)):c?e[t]=n:i(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&c(this).source||u(this)}))},uJNS:function(e,t,n){var r,o,a,i=n("qbEc"),u=n("6SQG"),l=n("x+sk"),c=n("MZA9"),s=n("oEsY"),f=n("8i6t"),d=n("Y3cF"),p=u.WeakMap,h=function(e){return a(e)?o(e):r(e,{})},v=function(e){return function(t){var n;if(!l(t)||(n=o(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}};if(i){var m=new p,g=m.get,y=m.has,b=m.set;r=function(e,t){return b.call(m,e,t),t},o=function(e){return g.call(m,e)||{}},a=function(e){return y.call(m,e)}}else{var w=f("state");d[w]=!0,r=function(e,t){return c(e,w,t),t},o=function(e){return s(e,w)?e[w]:{}},a=function(e){return s(e,w)}}e.exports={set:r,get:o,has:a,enforce:h,getterFor:v}},"uZx/":function(e,t,n){var r=n("sErw"),o=n("dwb6"),a=n("upgS"),i=n("v3z7"),u=n("MI4T"),l=n("pKuQ"),c=function(e,t){this.stopped=e,this.result=t},s=e.exports=function(e,t,n,s,f){var d,p,h,v,m,g,y,b=i(t,n,s?2:1);if(f)d=e;else{if(p=u(e),"function"!=typeof p)throw TypeError("Target is not iterable");if(o(p)){for(h=0,v=a(e.length);v>h;h++)if(m=s?b(r(y=e[h])[0],y[1]):b(e[h]),m&&m instanceof c)return m;return new c(!1)}d=p.call(e)}g=d.next;while(!(y=g.call(d)).done)if(m=l(d,b,y.value,s),"object"==typeof m&&m&&m instanceof c)return m;return new c(!1)};s.stop=function(e){return new c(!0,e)}},ucOr:function(e,t,n){"use strict";var r=n("VdqM"),o=n("jhzO");function a(){var e=n("ahKI");return a=function(){return e},e}function i(e,t){return f(e)||s(e,t)||l(e,t)||u()}function u(){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 l(e,t){if(e){if("string"===typeof e)return c(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(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?o(r(e),9007199254740991):0}},v1go:function(e,t,n){"use strict";var r=n("OOCw"),o=n("6ssM").f,a=n("upgS"),i=n("SD1J"),u=n("z43i"),l=n("TxDi"),c=n("qyeh"),s="".endsWith,f=Math.min,d=l("endsWith"),p=!c&&!d&&!!function(){var e=o(String.prototype,"endsWith");return e&&!e.writable}();r({target:"String",proto:!0,forced:!p&&!d},{endsWith:function(e){var t=String(u(this));i(e);var n=arguments.length>1?arguments[1]:void 0,r=a(t.length),o=void 0===n?r:f(a(n),r),l=String(e);return s?s.call(t,l,o):t.slice(o-l.length,o)===l}})},v3z7:function(e,t,n){var r=n("lkgX");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},vEbx:function(e,t,n){var r=n("oEsY"),o=n("684d"),a=n("YfbA").indexOf,i=n("Y3cF");e.exports=function(e,t){var n,u=o(e),l=0,c=[];for(n in u)!r(i,n)&&r(u,n)&&c.push(n);while(t.length>l)r(u,n=t[l++])&&(~a(c,n)||c.push(n));return c}},vIBE:function(e,t,n){"use strict";function r(){var e=n("ahKI");return r=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.getDemoUrl=t.getDemoRouteName=t["default"]=void 0;var o=a(n("Q2d3"));function a(e){return e&&e.__esModule?e:{default:e}}function i(e,t){return f(e)||s(e,t)||l(e,t)||u()}function u(){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 l(e,t){if(e){if("string"===typeof e)return c(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(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n128||n===e.anchors.length-1})),n=this.anchors[Math.max(0,t-1)],r=n.parentElement.id;this.listeners.forEach((function(e){return e(r)}))}},{key:"watch",value:function(e){0===this.anchors.length&&"undefined"!==typeof window&&window.addEventListener("scroll",this.listener),this.anchors.push(e),this.listener()}},{key:"unwatch",value:function(e){this.anchors.splice(this.anchors.findIndex((function(t){return t===e})),1),0===this.anchors.length&&"undefined"!==typeof window&&window.removeEventListener("scroll",this.listener)}},{key:"listen",value:function(e){this.listeners.push(e)}},{key:"unlisten",value:function(e){this.listeners.splice(this.listeners.findIndex((function(t){return t===e})),1)}}]),e}());function k(e){return e.offsetTop+(e.offsetParent?k(e.offsetParent):0)}var S=function e(t){var n,a=(null===(n=t.to.match(/(#[^&?]*)/))||void 0===n?void 0:n[1])||"",i=(0,r.useRef)(null),u=(0,r.useState)(!1),l=f(u,2),c=l[0],d=l[1];return(0,r.useEffect)((function(){var e,t;if(["H1","H2","H3"].includes(null===(e=i.current)||void 0===e||null===(t=e.parentElement)||void 0===t?void 0:t.tagName)&&i.current.parentElement.id){var n=i.current;return O.watch(n),function(){O.unwatch(n)}}var r=function(e){d(a==="#".concat(e))};return O.listen(r),function(){return O.unlisten(r)}}),[]),r["default"].createElement(o.NavLink,s({},t,{ref:i,onClick:function(){return e.scrollToAnchor(a.substring(1))},isActive:function(){return c}}))};S.scrollToAnchor=function(e){window.requestAnimationFrame((function(){var t=document.getElementById(decodeURIComponent(e));t&&window.scrollTo(0,k(t)-100)}))};t["default"]=S},vMeL:function(e,t,n){var r=n("6SQG"),o=n("h+/6"),a=n("eW2S"),i=n("g0pg").NATIVE_ARRAY_BUFFER_VIEWS,u=r.ArrayBuffer,l=r.Int8Array;e.exports=!i||!o((function(){l(1)}))||!o((function(){new l(-1)}))||!a((function(e){new l,new l(null),new l(1.5),new l(e)}),!0)||o((function(){return 1!==new l(new u(2),1,void 0).length}))},vRqM:function(e,t,n){"use strict";var r=n("OOCw"),o=n("CsJM").trim,a=n("tSnU");r({target:"String",proto:!0,forced:a("trim")},{trim:function(){return o(this)}})},vSpU:function(e,t,n){"use strict";var r=n("OOCw"),o=n("dz2h"),a=n("zesz"),i=n("d8EH"),u=n("nBeg"),l=n("MZA9"),c=n("uF/W"),s=n("3Hes"),f=n("qyeh"),d=n("AnAv"),p=n("WkS0"),h=p.IteratorPrototype,v=p.BUGGY_SAFARI_ITERATORS,m=s("iterator"),g="keys",y="values",b="entries",w=function(){return this};e.exports=function(e,t,n,s,p,E,O){o(n,t,s);var k,S,x,j=function(e){if(e===p&&_)return _;if(!v&&e in T)return T[e];switch(e){case g:return function(){return new n(this,e)};case y:return function(){return new n(this,e)};case b:return function(){return new n(this,e)}}return function(){return new n(this)}},C=t+" Iterator",A=!1,T=e.prototype,P=T[m]||T["@@iterator"]||p&&T[p],_=!v&&P||j(p),R="Array"==t&&T.entries||P;if(R&&(k=a(R.call(new e)),h!==Object.prototype&&k.next&&(f||a(k)===h||(i?i(k,h):"function"!=typeof k[m]&&l(k,m,w)),u(k,C,!0,!0),f&&(d[C]=w))),p==y&&P&&P.name!==y&&(A=!0,_=function(){return P.call(this)}),f&&!O||T[m]===_||l(T,m,_),d[t]=_,p)if(S={values:j(y),keys:E?_:j(g),entries:j(b)},O)for(x in S)(v||A||!(x in T))&&c(T,x,S[x]);else r({target:t,proto:!0,forced:v||A},S);return S}},vTOu:function(e,t){function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=c?e?"":void 0:(a=u.charCodeAt(l),a<55296||a>56319||l+1===c||(i=u.charCodeAt(l+1))<56320||i>57343?e?u.charAt(l):a:e?u.slice(l,l+2):i-56320+(a-55296<<10)+65536)}};e.exports={codeAt:a(!1),charAt:a(!0)}},vqhe:function(e,t,n){"use strict";var r=n("OOCw"),o=n("YfbA").indexOf,a=n("rUEg"),i=n("7/pz"),u=[].indexOf,l=!!u&&1/[1].indexOf(1,-0)<0,c=a("indexOf"),s=i("indexOf",{ACCESSORS:!0,1:0});r({target:"Array",proto:!0,forced:l||!c||!s},{indexOf:function(e){return l?u.apply(this,arguments)||0:o(this,e,arguments.length>1?arguments[1]:void 0)}})},wGmU:function(e,t,n){"use strict";e.exports=n("b5rQ")},wQXD:function(e,t,n){var r,o=function(){var e=String.fromCharCode,t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",r={};function o(e,t){if(!r[e]){r[e]={};for(var n=0;n>>8,n[2*r+1]=i%256}return n},decompressFromUint8Array:function(t){if(null===t||void 0===t)return a.decompress(t);for(var n=new Array(t.length/2),r=0,o=n.length;r>=1}else{for(o=1,r=0;r>=1}f--,0==f&&(f=Math.pow(2,p),p++),delete u[s]}else for(o=i[s],r=0;r>=1;f--,0==f&&(f=Math.pow(2,p),p++),i[c]=d++,s=String(l)}if(""!==s){if(Object.prototype.hasOwnProperty.call(u,s)){if(s.charCodeAt(0)<256){for(r=0;r>=1}else{for(o=1,r=0;r>=1}f--,0==f&&(f=Math.pow(2,p),p++),delete u[s]}else for(o=i[s],r=0;r>=1;f--,0==f&&(f=Math.pow(2,p),p++)}for(o=2,r=0;r>=1;while(1){if(v<<=1,m==t-1){h.push(n(v));break}m++}return h.join("")},decompress:function(e){return null==e?"":""==e?null:a._decompress(e.length,32768,(function(t){return e.charCodeAt(t)}))},_decompress:function(t,n,r){var o,a,i,u,l,c,s,f=[],d=4,p=4,h=3,v="",m=[],g={val:r(0),position:n,index:1};for(o=0;o<3;o+=1)f[o]=o;i=0,l=Math.pow(2,2),c=1;while(c!=l)u=g.val&g.position,g.position>>=1,0==g.position&&(g.position=n,g.val=r(g.index++)),i|=(u>0?1:0)*c,c<<=1;switch(i){case 0:i=0,l=Math.pow(2,8),c=1;while(c!=l)u=g.val&g.position,g.position>>=1,0==g.position&&(g.position=n,g.val=r(g.index++)),i|=(u>0?1:0)*c,c<<=1;s=e(i);break;case 1:i=0,l=Math.pow(2,16),c=1;while(c!=l)u=g.val&g.position,g.position>>=1,0==g.position&&(g.position=n,g.val=r(g.index++)),i|=(u>0?1:0)*c,c<<=1;s=e(i);break;case 2:return""}f[3]=s,a=s,m.push(s);while(1){if(g.index>t)return"";i=0,l=Math.pow(2,h),c=1;while(c!=l)u=g.val&g.position,g.position>>=1,0==g.position&&(g.position=n,g.val=r(g.index++)),i|=(u>0?1:0)*c,c<<=1;switch(s=i){case 0:i=0,l=Math.pow(2,8),c=1;while(c!=l)u=g.val&g.position,g.position>>=1,0==g.position&&(g.position=n,g.val=r(g.index++)),i|=(u>0?1:0)*c,c<<=1;f[p++]=e(i),s=p-1,d--;break;case 1:i=0,l=Math.pow(2,16),c=1;while(c!=l)u=g.val&g.position,g.position>>=1,0==g.position&&(g.position=n,g.val=r(g.index++)),i|=(u>0?1:0)*c,c<<=1;f[p++]=e(i),s=p-1,d--;break;case 2:return m.join("")}if(0==d&&(d=Math.pow(2,h),h++),f[s])v=f[s];else{if(s!==p)return null;v=a+a.charAt(0)}m.push(v),f[p++]=a+v.charAt(0),d--,a=v,0==d&&(d=Math.pow(2,h),h++)}}};return a}();r=function(){return o}.call(t,n,t,e),void 0===r||(e.exports=r)},"x+sk":function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},x1LQ:function(e,t,n){"use strict";var r=n("g0pg").exportTypedArrayMethod,o=n("h+/6"),a=n("6SQG"),i=a.Uint8Array,u=i&&i.prototype||{},l=[].toString,c=[].join;o((function(){l.call({})}))&&(l=function(){return c.call(this)});var s=u.toString!=l;r("toString",l,s)},x2v5:function(e){e.exports=JSON.parse("{}")},x4W1:function(e,t,n){"use strict";function r(){var e=a(n("ahKI"));return r=function(){return e},e}function o(){var e=n("F4XJ");return o=function(){return e},e}function a(e){return e&&e.__esModule?e:{default:e}}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t1?arguments[1]:void 0,3);return l(n,(function(e){if(r(e,e,t))return l.stop()}),void 0,!1,!0).stopped}})},xiuu:function(e,t,n){"use strict";var r=n("vMeL"),o=n("g0pg").exportTypedArrayStaticMethod,a=n("N0ls");o("from",a,r)},"xy/A":function(e,t,n){"use strict";var r=n("6SQG"),o=n("r+6h"),a=n("78S/"),i=n("MZA9"),u=n("TxBV"),l=n("h+/6"),c=n("CZSf"),s=n("ANLo"),f=n("upgS"),d=n("G2F8"),p=n("/fpf"),h=n("zesz"),v=n("d8EH"),m=n("lFeU").f,g=n("0JbB").f,y=n("5ilB"),b=n("nBeg"),w=n("uJNS"),E=w.get,O=w.set,k="ArrayBuffer",S="DataView",x="prototype",j="Wrong length",C="Wrong index",A=r[k],T=A,P=r[S],_=P&&P[x],R=Object.prototype,M=r.RangeError,N=p.pack,I=p.unpack,L=function(e){return[255&e]},F=function(e){return[255&e,e>>8&255]},D=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},z=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},B=function(e){return N(e,23,4)},U=function(e){return N(e,52,8)},H=function(e,t){g(e[x],t,{get:function(){return E(this)[t]}})},W=function(e,t,n,r){var o=d(n),a=E(e);if(o+t>a.byteLength)throw M(C);var i=E(a.buffer).bytes,u=o+a.byteOffset,l=i.slice(u,u+t);return r?l:l.reverse()},G=function(e,t,n,r,o,a){var i=d(n),u=E(e);if(i+t>u.byteLength)throw M(C);for(var l=E(u.buffer).bytes,c=i+u.byteOffset,s=r(+o),f=0;fq;)(V=K[q++])in T||i(T,V,A[V]);$.constructor=T}v&&h(_)!==R&&v(_,R);var X=new P(new T(2)),Y=_.setInt8;X.setInt8(0,2147483648),X.setInt8(1,2147483649),!X.getInt8(0)&&X.getInt8(1)||u(_,{setInt8:function(e,t){Y.call(this,e,t<<24>>24)},setUint8:function(e,t){Y.call(this,e,t<<24>>24)}},{unsafe:!0})}else T=function(e){c(this,T,k);var t=d(e);O(this,{bytes:y.call(new Array(t),0),byteLength:t}),o||(this.byteLength=t)},P=function(e,t,n){c(this,P,S),c(e,T,S);var r=E(e).byteLength,a=s(t);if(a<0||a>r)throw M("Wrong offset");if(n=void 0===n?r-a:f(n),a+n>r)throw M(j);O(this,{buffer:e,byteLength:n,byteOffset:a}),o||(this.buffer=e,this.byteLength=n,this.byteOffset=a)},o&&(H(T,"byteLength"),H(P,"buffer"),H(P,"byteLength"),H(P,"byteOffset")),u(P[x],{getInt8:function(e){return W(this,1,e)[0]<<24>>24},getUint8:function(e){return W(this,1,e)[0]},getInt16:function(e){var t=W(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=W(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return z(W(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return z(W(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return I(W(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return I(W(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){G(this,1,e,L,t)},setUint8:function(e,t){G(this,1,e,L,t)},setInt16:function(e,t){G(this,2,e,F,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){G(this,2,e,F,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){G(this,4,e,D,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){G(this,4,e,D,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){G(this,4,e,B,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){G(this,8,e,U,t,arguments.length>2?arguments[2]:void 0)}});b(T,k),b(P,S),e.exports={ArrayBuffer:T,DataView:P}},"y2+G":function(e,t,n){var r=n("684d"),o=n("lFeU").f,a={}.toString,i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],u=function(e){try{return o(e)}catch(t){return i.slice()}};e.exports.f=function(e){return i&&"[object Window]"==a.call(e)?u(e):o(r(e))}},y3he:function(e,t,n){"use strict";var r=n("OOCw"),o=n("CsJM").end,a=n("tSnU"),i=a("trimEnd"),u=i?function(){return o(this)}:"".trimEnd;r({target:"String",proto:!0,forced:i},{trimEnd:u,trimRight:u})},yFoN:function(e,t,n){var r=n("OOCw");r({target:"Math",stat:!0},{signbit:function(e){return(e=+e)==e&&0==e?1/e==-1/0:e<0}})},yJKb:function(e,t,n){var r=n("eyaU"),o=n("lFeU"),a=n("AG0a"),i=n("sErw");e.exports=r("Reflect","ownKeys")||function(e){var t=o.f(i(e)),n=a.f;return n?t.concat(n(e)):t}},yh5m:function(e,t,n){var r=n("OOCw"),o=n("eyaU"),a=n("lkgX"),i=n("sErw"),u=n("x+sk"),l=n("QWtl"),c=n("Wldj"),s=n("h+/6"),f=o("Reflect","construct"),d=s((function(){function e(){}return!(f((function(){}),[],e)instanceof e)})),p=!s((function(){f((function(){}))})),h=d||p;r({target:"Reflect",stat:!0,forced:h,sham:h},{construct:function(e,t){a(e),i(t);var n=arguments.length<3?e:a(arguments[2]);if(p&&!d)return f(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return r.push.apply(r,t),new(c.apply(e,r))}var o=n.prototype,s=l(u(o)?o:Object.prototype),h=Function.apply.call(e,s,t);return u(h)?h:s}})},ytxp:function(e,t,n){var r=n("7EYs");e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(r)},yuw4:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}function o(e,t){if(null==e)return{};var n,o,a=r(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}n.d(t,"a",(function(){return o}))},z43i:function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},zZ4V:function(e,t,n){var r=n("KZF9");r("patternMatch")},zesz:function(e,t,n){var r=n("oEsY"),o=n("OdMF"),a=n("8i6t"),i=n("VA8o"),u=a("IE_PROTO"),l=Object.prototype;e.exports=i?Object.getPrototypeOf:function(e){return e=o(e),r(e,u)?e[u]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?l:null}},zqEY:function(e,t,n){"use strict";var r=n("OOCw"),o=n("qyeh"),a=n("sErw"),i=n("v3z7"),u=n("QHn5"),l=n("uZx/");r({target:"Map",proto:!0,real:!0,forced:o},{some:function(e){var t=a(this),n=u(t),r=i(e,arguments.length>1?arguments[1]:void 0,3);return l(n,(function(e,n){if(r(n,e,t))return l.stop()}),void 0,!0,!0).stopped}})},zyZy:function(e,t,n){"use strict";var r=n("tSbI"),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},u={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function c(e){return r.isMemo(e)?u:l[e["$$typeof"]]||o}l[r.ForwardRef]=i,l[r.Memo]=u;var s=Object.defineProperty,f=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,v=Object.prototype;function m(e,t,n){if("string"!==typeof t){if(v){var r=h(t);r&&r!==v&&m(e,r,n)}var o=f(t);d&&(o=o.concat(d(t)));for(var i=c(e),u=c(t),l=0;l1?arguments[1]:void 0,3);return l(n,(function(e){if(r(e,e,t))return l.stop(e)}),void 0,!1,!0).result}})},"+U9+":function(e,t,n){var r=n("PORw"),o=n("PWyJ"),a="[object AsyncFunction]",i="[object Function]",u="[object GeneratorFunction]",l="[object Proxy]";function c(e){if(!o(e))return!1;var t=r(e);return t==i||t==u||t==a||t==l}e.exports=c},"+e7Y":function(e,t,n){(function(e,r){r(t,n("gbKz"))})(0,(function(e,t){"use strict";function n(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t["default"]=e,Object.freeze(t)}var r=n(t);function o(e,t){return o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},o(e,t)}function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,o(e,t)}var i=function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=[]),e.length!==t.length||e.some((function(e,n){return!Object.is(e,t[n])}))},u={error:null},l=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;oe.length)&&(t=e.length);for(var n=0,r=new Array(t);n, mountNode);"),t}var b=function(e){var t=(0,a().useState)(),n=c(t,2),i=n[0],l=n[1],s=g();return(0,a().useEffect)((function(){if(e&&s&&1===Object.keys(e.sources).length){var t,n=document.createElement("form"),a=document.createElement("input");return n.method="POST",n.target="_blank",n.style.display="none",n.action=m,n.appendChild(a),n.setAttribute("data-demo",e.title||""),a.name="data",a.value=JSON.stringify({title:e.titlle,js:y(e),css:Object.entries(e.dependencies).filter((function(e){var t=o(e,2),n=t[1];return n.css})).map((function(e){var t=o(e,2),n=t[0],r=t[1],a=r.version,i=r.css;return"@import '~".concat(i.replace(new RegExp("^(".concat(n,")")),"$1@".concat(a)),"';")})).concat(e.background?"body {\n background: ".concat(e.background,";\n}"):"").join("\n"),json:JSON.stringify({description:e.description,dependencies:Object.entries(e.dependencies).reduce((function(e,t){var n=o(t,2),a=n[0],i=n[1].version;return u(u({},e),{},r({},a,i))}),{"react-dom":(null===(t=e.dependencies.react)||void 0===t?void 0:t.version)||"latest"})},null,2)}),document.body.appendChild(n),l((function(){return function(){return n.submit()}})),function(){return n.remove()}}}),[e,s]),i};t["default"]=b},"+ock":function(e,t,n){"use strict";var r=n("uF/W"),o=n("sErw"),a=n("h+/6"),i=n("rfqm"),u="toString",l=RegExp.prototype,c=l[u],s=a((function(){return"/a/b"!=c.call({source:"a",flags:"b"})})),f=c.name!=u;(s||f)&&r(RegExp.prototype,u,(function(){var e=o(this),t=String(e.source),n=e.flags,r=String(void 0===n&&e instanceof RegExp&&!("flags"in l)?i.call(e):n);return"/"+t+"/"+r}),{unsafe:!0})},"//kW":function(e,t,n){var r=n("ANLo");e.exports=function(e){var t=r(e);if(t<0)throw RangeError("The argument can't be less than 0");return t}},"/1uK":function(e,t,n){"use strict";var r=n("OOCw"),o=n("Us7a").end,a=n("SRer");r({target:"String",proto:!0,forced:a},{padEnd:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},"/5AF":function(e,t,n){var r=n("ZGY3");r("flat")},"/U8s":function(e,t,n){"use strict";n.r(t),n.d(t,"ApplyPluginsType",(function(){return B})),n.d(t,"Plugin",(function(){return W})),n.d(t,"dynamic",(function(){return z})),n.d(t,"isBrowser",(function(){return H}));var r=n("NUIj"),o=n.n(r),a=n("ptaF");n.d(t,"createBrowserHistory",(function(){return a["a"]})),n.d(t,"createHashHistory",(function(){return a["b"]})),n.d(t,"createMemoryHistory",(function(){return a["d"]}));var i=n("Bm2L");n.d(t,"__RouterContext",(function(){return i["h"]}));var u=n("QwZf");n.d(t,"Link",(function(){return u["a"]})),n.d(t,"MemoryRouter",(function(){return i["a"]})),n.d(t,"NavLink",(function(){return u["b"]})),n.d(t,"Prompt",(function(){return i["b"]})),n.d(t,"Redirect",(function(){return i["c"]})),n.d(t,"Route",(function(){return i["d"]})),n.d(t,"Router",(function(){return i["e"]})),n.d(t,"StaticRouter",(function(){return i["f"]})),n.d(t,"Switch",(function(){return i["g"]})),n.d(t,"matchPath",(function(){return i["i"]})),n.d(t,"useHistory",(function(){return i["j"]})),n.d(t,"useLocation",(function(){return i["k"]})),n.d(t,"useParams",(function(){return i["l"]})),n.d(t,"useRouteMatch",(function(){return i["m"]})),n.d(t,"withRouter",(function(){return i["n"]}));var l=n("gbKz"),c=n("vnjD");function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}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 a,i=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){u=!0,a=e},f:function(){try{i||null==n["return"]||n["return"]()}finally{if(u)throw a}}}}var j=Object(l["createContext"])(null),C=[],A=[],_=!1;function T(e){var t=e(),n={loading:!0,loaded:null,error:null};return n.promise=t.then((function(e){return n.loading=!1,n.loaded=e,e}))["catch"]((function(e){throw n.loading=!1,n.error=e,e})),n}function P(e){var t={loading:!1,loaded:{},error:null},n=[];try{Object.keys(e).forEach((function(r){var o=T(e[r]);o.loading?t.loading=!0:(t.loaded[r]=o.loaded,t.error=o.error),n.push(o.promise),o.promise.then((function(e){t.loaded[r]=e}))["catch"]((function(e){t.error=e}))}))}catch(r){t.error=r}return t.promise=Promise.all(n).then((function(e){return t.loading=!1,e}))["catch"]((function(e){throw t.loading=!1,e})),t}function R(e){return e&&e.__esModule?e["default"]:e}function N(e,t){return Object(l["createElement"])(R(e),t)}function M(e,t){var n=Object.assign({loader:null,loading:null,delay:200,timeout:null,render:N,webpack:null,modules:null},t),r=null;function o(){if(!r){var t=new I(e,n);r={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return r.promise()}if("undefined"===typeof window&&C.push(o),!_&&"undefined"!==typeof window&&"function"===typeof n.webpack){var a=n.webpack();A.push((function(e){var t,n=x(a);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(-1!==e.indexOf(r))return o()}}catch(i){n.e(i)}finally{n.f()}}))}var i=function(e,t){o();var a=Object(l["useContext"])(j),i=Object(c["useSubscription"])(r);return Object(l["useImperativeHandle"])(t,(function(){return{retry:r.retry}})),a&&Array.isArray(n.modules)&&n.modules.forEach((function(e){a(e)})),i.loading||i.error?Object(l["createElement"])(n.loading,{isLoading:i.loading,pastDelay:i.pastDelay,timedOut:i.timedOut,error:i.error,retry:r.retry}):i.loaded?n.render(i.loaded,e):null},u=Object(l["forwardRef"])(i);return u.preload=function(){return o()},u.displayName="LoadableComponent",u}var I=function(){function e(t,n){v(this,e),this._loadFn=t,this._opts=n,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}return g(e,[{key:"promise",value:function(){return this._res.promise}},{key:"retry",value:function(){var e=this;this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};var t=this._res,n=this._opts;t.loading&&("number"===typeof n.delay&&(0===n.delay?this._state.pastDelay=!0:this._delay=setTimeout((function(){e._update({pastDelay:!0})}),n.delay)),"number"===typeof n.timeout&&(this._timeout=setTimeout((function(){e._update({timedOut:!0})}),n.timeout))),this._res.promise.then((function(){e._update(),e._clearTimeouts()}))["catch"]((function(t){e._update(),e._clearTimeouts()})),this._update({})}},{key:"_update",value:function(e){this._state=f(f({},this._state),e),this._callbacks.forEach((function(e){return e()}))}},{key:"_clearTimeouts",value:function(){clearTimeout(this._delay),clearTimeout(this._timeout)}},{key:"getCurrentValue",value:function(){return f(f({},this._state),{},{error:this._res.error,loaded:this._res.loaded,loading:this._res.loading})}},{key:"subscribe",value:function(e){var t=this;return this._callbacks.add(e),function(){t._callbacks["delete"](e)}}}]),e}();function L(e){return M(T,e)}function D(e){if("function"!==typeof e.render)throw new Error("LoadableMap requires a `render(loaded, props)` function");return M(P,e)}function F(e,t){var n=[];while(e.length){var r=e.pop();n.push(r(t))}return Promise.all(n).then((function(){if(e.length)return F(e,t)}))}function z(e){var t=L,n={loading:function(e){e.error,e.isLoading;return Object(l["createElement"])("p",null,"loading...")}};if("function"===typeof e)n.loader=e;else{if("object"!==d(e))throw new Error("Unexpect arguments ".concat(e));n=f(f({},n),e)}return t(n)}function U(e,t){if(!e)throw new Error(t)}L.Map=D,L.preloadAll=function(){return new Promise((function(e,t){F(C).then(e,t)}))},L.preloadReady=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return new Promise((function(t){var n=function(){return _=!0,t()};F(A,e).then(n,n)}))},"undefined"!==typeof window&&(window.__NEXT_PRELOADREADY=L.preloadReady);var B,H=function(){return"undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement};function G(e){var t=e.fns,n=e.args;if(1===t.length)return t[0];var r=t.pop();return t.reduce((function(e,t){return function(){return t(e,n)}}),r)}function V(e){return!!e&&"object"===d(e)&&"function"===typeof e.then}(function(e){e["compose"]="compose",e["modify"]="modify",e["event"]="event"})(B||(B={}));var W=function(){function e(t){v(this,e),this.validKeys=void 0,this.hooks={},this.validKeys=(null===t||void 0===t?void 0:t.validKeys)||[]}return g(e,[{key:"register",value:function(e){var t=this;U(!!e.apply,"register failed, plugin.apply must supplied"),U(!!e.path,"register failed, plugin.path must supplied"),Object.keys(e.apply).forEach((function(n){U(t.validKeys.indexOf(n)>-1,"register failed, invalid key ".concat(n," from plugin ").concat(e.path,".")),t.hooks[n]||(t.hooks[n]=[]),t.hooks[n]=t.hooks[n].concat(e.apply[n])}))}},{key:"getHooks",value:function(e){var t=e.split("."),n=b(t),r=n[0],o=n.slice(1),a=this.hooks[r]||[];return o.length&&(a=a.map((function(e){try{var t,n=e,r=x(o);try{for(r.s();!(t=r.n()).done;){var a=t.value;n=n[a]}}catch(i){r.e(i)}finally{r.f()}return n}catch(u){return null}})).filter(Boolean)),a}},{key:"applyPlugins",value:function(e){var t=e.key,n=e.type,r=e.initialValue,a=e.args,i=e.async,u=this.getHooks(t)||[];switch(a&&U("object"===d(a),"applyPlugins failed, args must be plain object."),n){case B.modify:return i?u.reduce(function(){var e=h(o.a.mark((function e(n,r){var i;return o.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(U("function"===typeof r||"object"===d(r)||V(r),"applyPlugins failed, all hooks for key ".concat(t," must be function, plain object or Promise.")),!V(n)){e.next=5;break}return e.next=4,n;case 4:n=e.sent;case 5:if("function"!==typeof r){e.next=16;break}if(i=r(n,a),!V(i)){e.next=13;break}return e.next=10,i;case 10:return e.abrupt("return",e.sent);case 13:return e.abrupt("return",i);case 14:e.next=21;break;case 16:if(!V(r)){e.next=20;break}return e.next=19,r;case 19:r=e.sent;case 20:return e.abrupt("return",f(f({},n),r));case 21:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),V(r)?r:Promise.resolve(r)):u.reduce((function(e,n){return U("function"===typeof n||"object"===d(n),"applyPlugins failed, all hooks for key ".concat(t," must be function or plain object.")),"function"===typeof n?n(e,a):f(f({},e),n)}),r);case B.event:return u.forEach((function(e){U("function"===typeof e,"applyPlugins failed, all hooks for key ".concat(t," must be function.")),e(a)}));case B.compose:return function(){return G({fns:u.concat(r),args:a})()}}}}]),e}()},"/fpf":function(e,t){var n=1/0,r=Math.abs,o=Math.pow,a=Math.floor,i=Math.log,u=Math.LN2,l=function(e,t,l){var c,s,f,d=new Array(l),p=8*l-t-1,h=(1<>1,m=23===t?o(2,-24)-o(2,-77):0,g=e<0||0===e&&1/e<0?1:0,y=0;for(e=r(e),e!=e||e===n?(s=e!=e?1:0,c=h):(c=a(i(e)/u),e*(f=o(2,-c))<1&&(c--,f*=2),e+=c+v>=1?m/f:m*o(2,1-v),e*f>=2&&(c++,f/=2),c+v>=h?(s=0,c=h):c+v>=1?(s=(e*f-1)*o(2,t),c+=v):(s=e*o(2,v-1)*o(2,t),c=0));t>=8;d[y++]=255&s,s/=256,t-=8);for(c=c<0;d[y++]=255&c,c/=256,p-=8);return d[--y]|=128*g,d},c=function(e,t){var r,a=e.length,i=8*a-t-1,u=(1<>1,c=i-7,s=a-1,f=e[s--],d=127&f;for(f>>=7;c>0;d=256*d+e[s],s--,c-=8);for(r=d&(1<<-c)-1,d>>=-c,c+=t;c>0;r=256*r+e[s],s--,c-=8);if(0===d)d=1-l;else{if(d===u)return r?NaN:f?-n:n;r+=o(2,t),d-=l}return(f?-1:1)*r*o(2,d-t)};e.exports={pack:l,unpack:c}},"/gJP":function(e,t,n){var r=n("r+6h"),o=n("6SQG"),a=n("RzMS"),i=n("aRba"),u=n("0JbB").f,l=n("lFeU").f,c=n("q43B"),s=n("rfqm"),f=n("kj2u"),d=n("uF/W"),p=n("h+/6"),h=n("uJNS").set,v=n("ct0+"),m=n("3Hes"),g=m("match"),y=o.RegExp,b=y.prototype,w=/a/g,E=/a/g,k=new y(w)!==w,O=f.UNSUPPORTED_Y,S=r&&a("RegExp",!k||O||p((function(){return E[g]=!1,y(w)!=w||y(E)==E||"/a/i"!=y(w,"i")})));if(S){var x=function(e,t){var n,r=this instanceof x,o=c(e),a=void 0===t;if(!r&&o&&e.constructor===x&&a)return e;k?o&&!a&&(e=e.source):e instanceof x&&(a&&(t=s.call(e)),e=e.source),O&&(n=!!t&&t.indexOf("y")>-1,n&&(t=t.replace(/y/g,"")));var u=i(k?new y(e,t):y(e,t),r?this:b,x);return O&&n&&h(u,{sticky:n}),u},j=function(e){e in x||u(x,e,{configurable:!0,get:function(){return y[e]},set:function(t){y[e]=t}})},C=l(y),A=0;while(C.length>A)j(C[A++]);b.constructor=x,x.prototype=b,d(o,"RegExp",x)}v("RegExp")},"/sHi":function(e,t,n){"use strict";var r="%[a-f0-9]{2}",o=new RegExp(r,"gi"),a=new RegExp("("+r+")+","gi");function i(e,t){try{return decodeURIComponent(e.join(""))}catch(o){}if(1===e.length)return e;t=t||1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],i(n),i(r))}function u(e){try{return decodeURIComponent(e)}catch(r){for(var t=e.match(o),n=1;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}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 a,i=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){u=!0,a=e},f:function(){try{i||null==n["return"]||n["return"]()}finally{if(u)throw a}}}}var j=Object(l["createContext"])(null),C=[],A=[],_=!1;function T(e){var t=e(),n={loading:!0,loaded:null,error:null};return n.promise=t.then((function(e){return n.loading=!1,n.loaded=e,e}))["catch"]((function(e){throw n.loading=!1,n.error=e,e})),n}function P(e){var t={loading:!1,loaded:{},error:null},n=[];try{Object.keys(e).forEach((function(r){var o=T(e[r]);o.loading?t.loading=!0:(t.loaded[r]=o.loaded,t.error=o.error),n.push(o.promise),o.promise.then((function(e){t.loaded[r]=e}))["catch"]((function(e){t.error=e}))}))}catch(r){t.error=r}return t.promise=Promise.all(n).then((function(e){return t.loading=!1,e}))["catch"]((function(e){throw t.loading=!1,e})),t}function R(e){return e&&e.__esModule?e["default"]:e}function N(e,t){return Object(l["createElement"])(R(e),t)}function M(e,t){var n=Object.assign({loader:null,loading:null,delay:200,timeout:null,render:N,webpack:null,modules:null},t),r=null;function o(){if(!r){var t=new I(e,n);r={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return r.promise()}if("undefined"===typeof window&&C.push(o),!_&&"undefined"!==typeof window&&"function"===typeof n.webpack){var a=n.webpack();A.push((function(e){var t,n=x(a);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(-1!==e.indexOf(r))return o()}}catch(i){n.e(i)}finally{n.f()}}))}var i=function(e,t){o();var a=Object(l["useContext"])(j),i=Object(c["useSubscription"])(r);return Object(l["useImperativeHandle"])(t,(function(){return{retry:r.retry}})),a&&Array.isArray(n.modules)&&n.modules.forEach((function(e){a(e)})),i.loading||i.error?Object(l["createElement"])(n.loading,{isLoading:i.loading,pastDelay:i.pastDelay,timedOut:i.timedOut,error:i.error,retry:r.retry}):i.loaded?n.render(i.loaded,e):null},u=Object(l["forwardRef"])(i);return u.preload=function(){return o()},u.displayName="LoadableComponent",u}var I=function(){function e(t,n){v(this,e),this._loadFn=t,this._opts=n,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}return g(e,[{key:"promise",value:function(){return this._res.promise}},{key:"retry",value:function(){var e=this;this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};var t=this._res,n=this._opts;t.loading&&("number"===typeof n.delay&&(0===n.delay?this._state.pastDelay=!0:this._delay=setTimeout((function(){e._update({pastDelay:!0})}),n.delay)),"number"===typeof n.timeout&&(this._timeout=setTimeout((function(){e._update({timedOut:!0})}),n.timeout))),this._res.promise.then((function(){e._update(),e._clearTimeouts()}))["catch"]((function(t){e._update(),e._clearTimeouts()})),this._update({})}},{key:"_update",value:function(e){this._state=f(f({},this._state),e),this._callbacks.forEach((function(e){return e()}))}},{key:"_clearTimeouts",value:function(){clearTimeout(this._delay),clearTimeout(this._timeout)}},{key:"getCurrentValue",value:function(){return f(f({},this._state),{},{error:this._res.error,loaded:this._res.loaded,loading:this._res.loading})}},{key:"subscribe",value:function(e){var t=this;return this._callbacks.add(e),function(){t._callbacks["delete"](e)}}}]),e}();function L(e){return M(T,e)}function D(e){if("function"!==typeof e.render)throw new Error("LoadableMap requires a `render(loaded, props)` function");return M(P,e)}function F(e,t){var n=[];while(e.length){var r=e.pop();n.push(r(t))}return Promise.all(n).then((function(){if(e.length)return F(e,t)}))}function z(e){var t=L,n={loading:function(e){e.error,e.isLoading;return Object(l["createElement"])("p",null,"loading...")}};if("function"===typeof e)n.loader=e;else{if("object"!==d(e))throw new Error("Unexpect arguments ".concat(e));n=f(f({},n),e)}return t(n)}function U(e,t){if(!e)throw new Error(t)}L.Map=D,L.preloadAll=function(){return new Promise((function(e,t){F(C).then(e,t)}))},L.preloadReady=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return new Promise((function(t){var n=function(){return _=!0,t()};F(A,e).then(n,n)}))},"undefined"!==typeof window&&(window.__NEXT_PRELOADREADY=L.preloadReady);var B,H=function(){return"undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement};function G(e){var t=e.fns,n=e.args;if(1===t.length)return t[0];var r=t.pop();return t.reduce((function(e,t){return function(){return t(e,n)}}),r)}function V(e){return!!e&&"object"===d(e)&&"function"===typeof e.then}(function(e){e["compose"]="compose",e["modify"]="modify",e["event"]="event"})(B||(B={}));var W=function(){function e(t){v(this,e),this.validKeys=void 0,this.hooks={},this.validKeys=(null===t||void 0===t?void 0:t.validKeys)||[]}return g(e,[{key:"register",value:function(e){var t=this;U(!!e.apply,"register failed, plugin.apply must supplied"),U(!!e.path,"register failed, plugin.path must supplied"),Object.keys(e.apply).forEach((function(n){U(t.validKeys.indexOf(n)>-1,"register failed, invalid key ".concat(n," from plugin ").concat(e.path,".")),t.hooks[n]||(t.hooks[n]=[]),t.hooks[n]=t.hooks[n].concat(e.apply[n])}))}},{key:"getHooks",value:function(e){var t=e.split("."),n=b(t),r=n[0],o=n.slice(1),a=this.hooks[r]||[];return o.length&&(a=a.map((function(e){try{var t,n=e,r=x(o);try{for(r.s();!(t=r.n()).done;){var a=t.value;n=n[a]}}catch(i){r.e(i)}finally{r.f()}return n}catch(u){return null}})).filter(Boolean)),a}},{key:"applyPlugins",value:function(e){var t=e.key,n=e.type,r=e.initialValue,a=e.args,i=e.async,u=this.getHooks(t)||[];switch(a&&U("object"===d(a),"applyPlugins failed, args must be plain object."),n){case B.modify:return i?u.reduce(function(){var e=h(o.a.mark((function e(n,r){var i;return o.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(U("function"===typeof r||"object"===d(r)||V(r),"applyPlugins failed, all hooks for key ".concat(t," must be function, plain object or Promise.")),!V(n)){e.next=5;break}return e.next=4,n;case 4:n=e.sent;case 5:if("function"!==typeof r){e.next=16;break}if(i=r(n,a),!V(i)){e.next=13;break}return e.next=10,i;case 10:return e.abrupt("return",e.sent);case 13:return e.abrupt("return",i);case 14:e.next=21;break;case 16:if(!V(r)){e.next=20;break}return e.next=19,r;case 19:r=e.sent;case 20:return e.abrupt("return",f(f({},n),r));case 21:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),V(r)?r:Promise.resolve(r)):u.reduce((function(e,n){return U("function"===typeof n||"object"===d(n),"applyPlugins failed, all hooks for key ".concat(t," must be function or plain object.")),"function"===typeof n?n(e,a):f(f({},e),n)}),r);case B.event:return u.forEach((function(e){U("function"===typeof e,"applyPlugins failed, all hooks for key ".concat(t," must be function.")),e(a)}));case B.compose:return function(){return G({fns:u.concat(r),args:a})()}}}}]),e}()},"0pkz":function(e,t,n){"use strict";var r=n("684d"),o=n("ZGY3"),a=n("AnAv"),i=n("uJNS"),u=n("vSpU"),l="Array Iterator",c=i.set,s=i.getterFor(l);e.exports=u(Array,"Array",(function(e,t){c(this,{type:l,target:r(e),index:0,kind:t})}),(function(){var e=s(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),a.Arguments=a.Array,o("keys"),o("values"),o("entries")},"0zpI":function(e,t,n){var r=n("cBxx"),o=n("MyUB"),a=n("fkhx"),i=n("RtFG"),u=n("wWVk"),l=n("9rFP"),c=1,s=2,f="[object Boolean]",d="[object Date]",p="[object Error]",h="[object Map]",v="[object Number]",m="[object RegExp]",g="[object Set]",y="[object String]",b="[object Symbol]",w="[object ArrayBuffer]",E="[object DataView]",k=r?r.prototype:void 0,O=k?k.valueOf:void 0;function S(e,t,n,r,k,S,x){switch(n){case E:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case w:return!(e.byteLength!=t.byteLength||!S(new o(e),new o(t)));case f:case d:case v:return a(+e,+t);case p:return e.name==t.name&&e.message==t.message;case m:case y:return e==t+"";case h:var j=u;case g:var C=r&c;if(j||(j=l),e.size!=t.size&&!C)return!1;var A=x.get(e);if(A)return A==t;r|=s,x.set(e,t);var _=i(j(e),j(t),r,k,S,x);return x["delete"](e),_;case b:if(O)return O.call(e)==O.call(t)}return!1}e.exports=S},"1Bs4":function(e,t,n){"use strict";var r={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=r.F1&&t<=r.F12)return!1;switch(t){case r.ALT:case r.CAPS_LOCK:case r.CONTEXT_MENU:case r.CTRL:case r.DOWN:case r.END:case r.ESC:case r.HOME:case r.INSERT:case r.LEFT:case r.MAC_FF_META:case r.META:case r.NUMLOCK:case r.NUM_CENTER:case r.PAGE_DOWN:case r.PAGE_UP:case r.PAUSE:case r.PRINT_SCREEN:case r.RIGHT:case r.SHIFT:case r.UP:case r.WIN_KEY:case r.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=r.ZERO&&e<=r.NINE)return!0;if(e>=r.NUM_ZERO&&e<=r.NUM_MULTIPLY)return!0;if(e>=r.A&&e<=r.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case r.SPACE:case r.QUESTION_MARK:case r.NUM_PLUS:case r.NUM_MINUS:case r.NUM_PERIOD:case r.NUM_DIVISION:case r.SEMICOLON:case r.DASH:case r.EQUALS:case r.COMMA:case r.PERIOD:case r.SLASH:case r.APOSTROPHE:case r.SINGLE_QUOTE:case r.OPEN_SQUARE_BRACKET:case r.BACKSLASH:case r.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};t["a"]=r},"1ChE":function(e,t,n){"use strict";(function(e){var r=n("gbKz"),o=n.n(r),a=n("1yhe"),i=n("BA5g"),u=n.n(i),l=1073741823,c="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof e?e:{};function s(){var e="__global_unique_id__";return c[e]=(c[e]||0)+1}function f(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}function d(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}function p(e){return Array.isArray(e)?e[0]:e}function h(e,t){var n,o,i="__create-react-context-"+s()+"__",c=function(e){function n(){var t;return t=e.apply(this,arguments)||this,t.emitter=d(t.props.value),t}Object(a["a"])(n,e);var r=n.prototype;return r.getChildContext=function(){var e;return e={},e[i]=this.emitter,e},r.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,o=e.value;f(r,o)?n=0:(n="function"===typeof t?t(r,o):l,n|=0,0!==n&&this.emitter.set(e.value,n))}},r.render=function(){return this.props.children},n}(r["Component"]);c.childContextTypes=(n={},n[i]=u.a.object.isRequired,n);var h=function(t){function n(){var e;return e=t.apply(this,arguments)||this,e.state={value:e.getValue()},e.onUpdate=function(t,n){var r=0|e.observedBits;0!==(r&n)&&e.setState({value:e.getValue()})},e}Object(a["a"])(n,t);var r=n.prototype;return r.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=void 0===t||null===t?l:t},r.componentDidMount=function(){this.context[i]&&this.context[i].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=void 0===e||null===e?l:e},r.componentWillUnmount=function(){this.context[i]&&this.context[i].off(this.onUpdate)},r.getValue=function(){return this.context[i]?this.context[i].get():e},r.render=function(){return p(this.props.children)(this.state.value)},n}(r["Component"]);return h.contextTypes=(o={},o[i]=u.a.object,o),{Provider:c,Consumer:h}}var v=o.a.createContext||h;t["a"]=v}).call(this,n("LS9I"))},"1DF2":function(e,t,n){var r=n("rkJ6");function o(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}e.exports=o},"1Grl":function(e,t,n){var r=n("7TNV"),o=n("lf6h"),a=Object.prototype,i=a.hasOwnProperty,u=a.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return o(e)&&i.call(e,"callee")&&!u.call(e,"callee")};e.exports=l},"1KG/":function(e,t,n){var r,o=function(){var e=String.fromCharCode,t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",r={};function o(e,t){if(!r[e]){r[e]={};for(var n=0;n>>8,n[2*r+1]=i%256}return n},decompressFromUint8Array:function(t){if(null===t||void 0===t)return a.decompress(t);for(var n=new Array(t.length/2),r=0,o=n.length;r>=1}else{for(o=1,r=0;r>=1}f--,0==f&&(f=Math.pow(2,p),p++),delete u[s]}else for(o=i[s],r=0;r>=1;f--,0==f&&(f=Math.pow(2,p),p++),i[c]=d++,s=String(l)}if(""!==s){if(Object.prototype.hasOwnProperty.call(u,s)){if(s.charCodeAt(0)<256){for(r=0;r>=1}else{for(o=1,r=0;r>=1}f--,0==f&&(f=Math.pow(2,p),p++),delete u[s]}else for(o=i[s],r=0;r>=1;f--,0==f&&(f=Math.pow(2,p),p++)}for(o=2,r=0;r>=1;while(1){if(v<<=1,m==t-1){h.push(n(v));break}m++}return h.join("")},decompress:function(e){return null==e?"":""==e?null:a._decompress(e.length,32768,(function(t){return e.charCodeAt(t)}))},_decompress:function(t,n,r){var o,a,i,u,l,c,s,f=[],d=4,p=4,h=3,v="",m=[],g={val:r(0),position:n,index:1};for(o=0;o<3;o+=1)f[o]=o;i=0,l=Math.pow(2,2),c=1;while(c!=l)u=g.val&g.position,g.position>>=1,0==g.position&&(g.position=n,g.val=r(g.index++)),i|=(u>0?1:0)*c,c<<=1;switch(i){case 0:i=0,l=Math.pow(2,8),c=1;while(c!=l)u=g.val&g.position,g.position>>=1,0==g.position&&(g.position=n,g.val=r(g.index++)),i|=(u>0?1:0)*c,c<<=1;s=e(i);break;case 1:i=0,l=Math.pow(2,16),c=1;while(c!=l)u=g.val&g.position,g.position>>=1,0==g.position&&(g.position=n,g.val=r(g.index++)),i|=(u>0?1:0)*c,c<<=1;s=e(i);break;case 2:return""}f[3]=s,a=s,m.push(s);while(1){if(g.index>t)return"";i=0,l=Math.pow(2,h),c=1;while(c!=l)u=g.val&g.position,g.position>>=1,0==g.position&&(g.position=n,g.val=r(g.index++)),i|=(u>0?1:0)*c,c<<=1;switch(s=i){case 0:i=0,l=Math.pow(2,8),c=1;while(c!=l)u=g.val&g.position,g.position>>=1,0==g.position&&(g.position=n,g.val=r(g.index++)),i|=(u>0?1:0)*c,c<<=1;f[p++]=e(i),s=p-1,d--;break;case 1:i=0,l=Math.pow(2,16),c=1;while(c!=l)u=g.val&g.position,g.position>>=1,0==g.position&&(g.position=n,g.val=r(g.index++)),i|=(u>0?1:0)*c,c<<=1;f[p++]=e(i),s=p-1,d--;break;case 2:return m.join("")}if(0==d&&(d=Math.pow(2,h),h++),f[s])v=f[s];else{if(s!==p)return null;v=a+a.charAt(0)}m.push(v),f[p++]=a+v.charAt(0),d--,a=v,0==d&&(d=Math.pow(2,h),h++)}}};return a}();r=function(){return o}.call(t,n,t,e),void 0===r||(e.exports=r)},"1Sp3":function(e,t,n){var r=n("mRlv"),o=n("Ox3h"),a=n("WAeE"),i=a("metadata"),u=i.store||(i.store=new o),l=function(e,t,n){var o=u.get(e);if(!o){if(!n)return;u.set(e,o=new r)}var a=o.get(t);if(!a){if(!n)return;o.set(t,a=new r)}return a},c=function(e,t,n){var r=l(t,n,!1);return void 0!==r&&r.has(e)},s=function(e,t,n){var r=l(t,n,!1);return void 0===r?void 0:r.get(e)},f=function(e,t,n,r){l(n,r,!0).set(e,t)},d=function(e,t){var n=l(e,t,!1),r=[];return n&&n.forEach((function(e,t){r.push(t)})),r},p=function(e){return void 0===e||"symbol"==typeof e?e:String(e)};e.exports={store:u,getMap:l,has:c,get:s,set:f,keys:d,toKey:p}},"1Tqi":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("o4ox");function o(e,t){if(null==e)return{};var n,o,a=Object(r["a"])(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}},"1a2d":function(e,t,n){"use strict";var r=n("OOCw");r({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},"1aCi":function(e,t,n){var r=n("OOCw");r({target:"Math",stat:!0},{imulh:function(e,t){var n=65535,r=+e,o=+t,a=r&n,i=o&n,u=r>>16,l=o>>16,c=(u*i>>>0)+(a*i>>>16);return u*l+(c>>16)+((a*l>>>0)+(c&n)>>16)}})},"1aIJ":function(e,t){function n(e,t){var n=-1,r=null==e?0:e.length;while(++n1?arguments[1]:void 0,3);return l(n,(function(e,n){if(r(n,e,t))return l.stop(n)}),void 0,!0,!0).result}})},"1mu+":function(e,t,n){"use strict";var r=n("OOCw"),o=n("qyeh"),a=n("sErw"),i=n("QHn5"),u=n("F/PV"),l=n("uZx/");r({target:"Map",proto:!0,real:!0,forced:o},{includes:function(e){return l(i(a(this)),(function(t,n){if(u(n,e))return l.stop()}),void 0,!0,!0).stopped}})},"1rhD":function(e,t,n){"use strict";var r=n("OOCw"),o=n("dz2h"),a=n("z43i"),i=n("uJNS"),u=n("vfR7"),l=u.codeAt,c=u.charAt,s="String Iterator",f=i.set,d=i.getterFor(s),p=o((function(e){f(this,{type:s,string:e,index:0})}),"String",(function(){var e,t=d(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=c(n,r),t.index+=e.length,{value:{codePoint:l(e,0),position:r},done:!1})}));r({target:"String",proto:!0},{codePoints:function(){return new p(String(a(this)))}})},"1uVM":function(e,t,n){"use strict";e.exports=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%".concat(e.charCodeAt(0).toString(16).toUpperCase())}))}},"1wx2":function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},"1x+Y":function(e,t,n){"use strict";var r=n("OOCw"),o=n("qyeh"),a=n("eyaU"),i=n("sErw"),u=n("lkgX"),l=n("mxPn"),c=n("uZx/");r({target:"Set",proto:!0,real:!0,forced:o},{isSubsetOf:function(e){var t=l(this),n=i(e),r=n.has;return"function"!=typeof r&&(n=new(a("Set"))(e),r=u(n.has)),!c(t,(function(e){if(!1===r.call(n,e))return c.stop()}),void 0,!1,!0).stopped}})},"1yhe":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("Gtcz");function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Object(r["a"])(e,t)}},"2Roc":function(e,t,n){var r=n("3Hes");t.f=r},"2Yex":function(e,t,n){"use strict";var r=n("OOCw"),o=n("YfbA").includes,a=n("ZGY3"),i=n("7/pz"),u=i("indexOf",{ACCESSORS:!0,1:0});r({target:"Array",proto:!0,forced:!u},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},"2fm6":function(e,t,n){"use strict";var r=n("sErw"),o=n("lkgX");e.exports=function(){for(var e,t=r(this),n=o(t["delete"]),a=!0,i=0,u=arguments.length;i-1e-8&&e<1e-8?e-e*e/2:n(1+e)}},"2lI5":function(e,t,n){var r=n("67Yi"),o=n("orhk"),a=n("zzA2");function i(e){var t=-1,n=null==e?0:e.length;this.__data__=new r;while(++t=51||!o((function(){var e=[];return e[h]=!1,e.concat()[0]!==e})),y=f("concat"),b=function(e){if(!i(e))return!1;var t=e[h];return void 0!==t?!!t:a(e)},w=!g||!y;r({target:"Array",proto:!0,forced:w},{concat:function(e){var t,n,r,o,a,i=u(this),f=s(i,0),d=0;for(t=-1,r=arguments.length;tv)throw TypeError(m);for(n=0;n=v)throw TypeError(m);c(f,d++,a)}return f.length=d,f}})},"4XhD":function(e,t,n){},"4uZn":function(e,t,n){var r=n("6SQG");e.exports=r},"51zF":function(e,t){function n(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,a=void 0;try{for(var i,u=e[Symbol.iterator]();!(r=(i=u.next()).done);r=!0)if(n.push(i.value),t&&n.length===t)break}catch(l){o=!0,a=l}finally{try{r||null==u["return"]||u["return"]()}finally{if(o)throw a}}return n}}e.exports=n},"52jv":function(e,t,n){},"58gk":function(e,t){function n(e,t){var n=-1,r=null==e?0:e.length,o=0,a=[];while(++n1?arguments[1]:void 0,n),l=i>2?arguments[2]:void 0,c=void 0===l?n:o(l,n);while(c>u)t[u++]=e;return t}},"5jZn":function(e,t,n){var r=n("OOCw"),o=180/Math.PI;r({target:"Math",stat:!0},{degrees:function(e){return e*o}})},"5wpY":function(e,t,n){},"5yEw":function(e,t,n){var r=n("3Hes"),o=r("toStringTag"),a={};a[o]="z",e.exports="[object z]"===String(a)},"63eO":function(e,t,n){var r=n("x+sk"),o=n("g0aX"),a=n("3Hes"),i=a("species");e.exports=function(e,t){var n;return o(e)&&(n=e.constructor,"function"!=typeof n||n!==Array&&!o(n.prototype)?r(n)&&(n=n[i],null===n&&(n=void 0)):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},"67Yi":function(e,t,n){var r=n("K29s"),o=n("AU2x"),a=n("u7Ge"),i=n("w7O4"),u=n("GRr6");function l(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t1?arguments[1]:void 0)}},"6jqD":function(e,t,n){var r=n("x+sk");e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},"6ssM":function(e,t,n){var r=n("r+6h"),o=n("UQib"),a=n("ZVkV"),i=n("684d"),u=n("JSMs"),l=n("oEsY"),c=n("p3eN"),s=Object.getOwnPropertyDescriptor;t.f=r?s:function(e,t){if(e=i(e),t=u(t,!0),c)try{return s(e,t)}catch(n){}if(l(e,t))return a(!o.f.call(e,t),e[t])}},"6vUj":function(e,t,n){var r=n("pgBP"),o=n("dfcU"),a=n("Zjj6");function i(e){return a(e)?r(e):o(e)}e.exports=i},"7/pz":function(e,t,n){var r=n("r+6h"),o=n("h+/6"),a=n("oEsY"),i=Object.defineProperty,u={},l=function(e){throw e};e.exports=function(e,t){if(a(u,e))return u[e];t||(t={});var n=[][e],c=!!a(t,"ACCESSORS")&&t.ACCESSORS,s=a(t,0)?t[0]:l,f=a(t,1)?t[1]:void 0;return u[e]=!!n&&!o((function(){if(c&&!r)return!0;var e={length:-1};c?i(e,1,{enumerable:!0,get:l}):e[1]=1,n.call(e,s,f)}))}},"71bR":function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n("dDvS");function o(e){if(Array.isArray(e))return Object(r["a"])(e)}function a(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}var i=n("u6jA");function u(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l(e){return o(e)||a(e)||Object(i["a"])(e)||u()}},"73fw":function(e,t,n){var r=n("6SQG"),o=n("x+sk"),a=r.document,i=o(a)&&o(a.createElement);e.exports=function(e){return i?a.createElement(e):{}}},"75ce":function(e,t,n){"use strict";n.r(t);var r=n("gbKz"),o=n.n(r),a=n("u4Q2"),i=n("xngY"),u=o.a.memo((e=>{e.demos;return o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:"markdown"},o.a.createElement("blockquote",null,o.a.createElement("p",null,"\u8fd9\u91cc\u662f Hox v2 \u7684\u6587\u6863\uff0c\u5982\u679c\u4f60\u5728\u4f7f\u7528 v1\uff0c\u90a3\u4e48\u8bf7\u524d\u5f80",o.a.createElement(a["Link"],{to:"https://github.com/umijs/hox/blob/v1/README.md"},"\u8fd9\u91cc"))),o.a.createElement("p",null,o.a.createElement(a["Link"],{to:"https://www.npmjs.com/package/hox"},o.a.createElement("img",{src:"https://img.shields.io/npm/v/hox.svg?logo=npm",alt:"npm version"})),"\xa0",o.a.createElement(a["Link"],{to:"https://www.npmjs.com/package/hox"},o.a.createElement("img",{src:"https://img.shields.io/bundlephobia/min/hox.svg?logo=javascript",alt:"npm bundle size (minified)"})),"\xa0",o.a.createElement("img",{src:"https://img.shields.io/npm/dependency-version/hox/peer/react?logo=react",alt:"React"})),o.a.createElement(i["a"],{code:"npm add hox@2.0.0-rc.0",lang:"shell"}),o.a.createElement("h2",{id:"\u5728\u7ebf\u4f53\u9a8c"},o.a.createElement(a["AnchorLink"],{to:"#\u5728\u7ebf\u4f53\u9a8c","aria-hidden":"true",tabIndex:-1},o.a.createElement("span",{className:"icon icon-link"})),"\u5728\u7ebf\u4f53\u9a8c"),o.a.createElement("p",null,o.a.createElement(a["Link"],{to:"https://codesandbox.io/s/github/awmleer/todo-app-with-hox/tree/master/"},o.a.createElement("img",{src:"https://codesandbox.io/static/img/play-codesandbox.svg",alt:"Edit"}))),o.a.createElement("h2",{id:"\u4ece\u72b6\u6001\u7ba1\u7406\u5230\u72b6\u6001\u5171\u4eab"},o.a.createElement(a["AnchorLink"],{to:"#\u4ece\u72b6\u6001\u7ba1\u7406\u5230\u72b6\u6001\u5171\u4eab","aria-hidden":"true",tabIndex:-1},o.a.createElement("span",{className:"icon icon-link"})),"\u4ece\u72b6\u6001\u7ba1\u7406\u5230\u72b6\u6001\u5171\u4eab"),o.a.createElement("p",null,'\u5728 Hox v1 \u4e2d\uff0c\u6211\u4eec\u4e00\u76f4\u5ba3\u79f0\u5b83\u662f\u4e00\u4e2a"\u72b6\u6001\u7ba1\u7406"\u5e93\u3002'),o.a.createElement("p",null,'\u4e0d\u59a8\u56de\u60f3\uff08\u6216\u8005\u4e86\u89e3\uff09\u4e00\u4e0b redux\u3001zustand\u3001recoil \u8fd9\u4e9b\u72b6\u6001\u7ba1\u7406\u5e93\uff0c\u5b83\u4eec\u867d\u7136\u5728\u4e00\u5b9a\u7a0b\u5ea6\u4e0a\u4e5f\u53ef\u4ee5\u5e2e\u6211\u4eec\u89e3\u51b3\u6570\u636e\u5171\u4eab\u7684\u95ee\u9898\uff0c\u4f46\u5b83\u4eec\u6700\u672c\u8d28\u7684\u80fd\u529b\u8fd8\u662f\u5bf9\u6570\u636e\u7684\u64cd\u4f5c\u3002\u5b83\u4eec\u88ab\u79f0\u505a\u4e5f\u786e\u5b9e\u5e94\u8be5\u88ab\u79f0\u505a"\u72b6\u6001\u7ba1\u7406"\u5de5\u5177\u3002'),o.a.createElement("p",null,"\u800c Hox \u60f3\u89e3\u51b3\u7684\u95ee\u9898\uff0c\u4e0d\u662f\u5982\u4f55\u7ec4\u7ec7\u548c\u64cd\u4f5c\u6570\u636e\uff0c\u4e0d\u662f\u6570\u636e\u6d41\u7684\u5206\u5c42\u3001\u5f02\u6b65\u3001\u7ec6\u7c92\u5ea6\uff0c\u6211\u4eec\u5e0c\u671b Hox \u53ea\u805a\u7126\u4e8e\u4e00\u4e2a\u75db\u70b9\uff1a\u5728\u591a\u4e2a\u7ec4\u4ef6\u95f4\u5171\u4eab\u72b6\u6001\u3002"),o.a.createElement("p",null,"\u5982\u679c\u4f60\u4e5f\u610f\u8bc6\u5230\u4e86\uff0c\u5c42\u5c42\u4f20\u9012\u7684 ",o.a.createElement("code",null,"value")," ",o.a.createElement("code",null,"onChange"),' \u4f1a\u5bf9\u4e00\u4e2a\u4f18\u8d28\u4ee3\u7801\u5e93\u5e26\u6765\u7684\u6bc1\u706d\u6027\u5f71\u54cd\uff0c\u7c97\u66b4\u5730\u628a\u6570\u636e\u585e\u5728 redux \u4e2d\u4e5f\u5e76\u4e0d\u80fd\u8ba9\u4e00\u4e2a\u5e94\u7528\u5f97\u5230\u5f88\u597d\u7684\u62d3\u5c55\u6027\u548c\u53ef\u7ef4\u62a4\u6027\uff0c\u90a3\u4e48 Hox \u6216\u8bb8\u4f1a\u662f\u4e00\u4e2a\u9002\u5408\u4f60\u7684"\u72b6\u6001\u5171\u4eab"\u65b9\u6848\uff0c\u5b83\u7b80\u5355\u3001\u8f7b\u91cf\u3001\u53ef\u9760\uff0c\u9002\u5408\u65e0\u8bba\u5927\u5c0f\u7684\u51e0\u4e4e\u6240\u6709\u9879\u76ee\u3002'),o.a.createElement("h2",{id:"\u4e3a\u4ec0\u4e48\u8981\u7528-hox"},o.a.createElement(a["AnchorLink"],{to:"#\u4e3a\u4ec0\u4e48\u8981\u7528-hox","aria-hidden":"true",tabIndex:-1},o.a.createElement("span",{className:"icon icon-link"})),"\u4e3a\u4ec0\u4e48\u8981\u7528 Hox\uff1f"),o.a.createElement("ul",null,o.a.createElement("li",null,"\u76f4\u63a5\u590d\u7528\u5df2\u6709\u7684 React \u77e5\u8bc6\uff0c\u51e0\u4e4e\u6ca1\u6709\u5b66\u4e60\u6210\u672c\uff0c\u4f60\u600e\u4e48\u5199 React \u7ec4\u4ef6\uff0c\u5c31\u53ef\u4ee5\u600e\u4e48\u5199 Store"),o.a.createElement("li",null,"\u4e3a\u7075\u6d3b\u91cd\u6784\u800c\u8bbe\u8ba1\uff0c\u5728 Store \u548c\u7ec4\u4ef6\u4e2d\u4f7f\u7528\u540c\u4e00\u5957 DSL \u53ef\u4ee5\u8ba9\u4f60\u51e0\u4e4e 0 \u6210\u672c\u7684\u5c06\u7ec4\u4ef6\u7684\u5c40\u90e8\u72b6\u6001\u8f6c\u5316\u4e3a\u4e00\u4e2a\u7ec4\u4ef6\u95f4\u5171\u4eab\u7684\u72b6\u6001"),o.a.createElement("li",null,"\u540c\u65f6\u652f\u6301\u5c40\u90e8\u72b6\u6001\u548c\u5168\u5c40\u72b6\u6001\uff0c\u5728\u7075\u6d3b\u548c\u7b80\u5355\u4e4b\u95f4\u505a\u5230\u4e86\u5f88\u597d\u7684\u5e73\u8861"),o.a.createElement("li",null,"\u4f18\u79c0\u7684\u6027\u80fd\u548c TypeScript \u652f\u6301"))))}));t["default"]=e=>{var t=o.a.useContext(a["context"]),n=t.demos;return o.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&a["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),o.a.createElement(u,{demos:n})}},"78S/":function(e,t){e.exports="undefined"!==typeof ArrayBuffer&&"undefined"!==typeof DataView},"7EYs":function(e,t,n){var r=n("eyaU");e.exports=r("navigator","userAgent")||""},"7F/w":function(e,t,n){"use strict";var r=n("v3z7"),o=n("OdMF"),a=n("pKuQ"),i=n("dwb6"),u=n("upgS"),l=n("tmip"),c=n("MI4T");e.exports=function(e){var t,n,s,f,d,p,h=o(e),v="function"==typeof this?this:Array,m=arguments.length,g=m>1?arguments[1]:void 0,y=void 0!==g,b=c(h),w=0;if(y&&(g=r(g,m>2?arguments[2]:void 0,2)),void 0==b||v==Array&&i(b))for(t=u(h.length),n=new v(t);t>w;w++)p=y?g(h[w],w):h[w],l(n,w,p);else for(f=b.call(h),d=f.next,n=new v;!(s=d.call(f)).done;w++)p=y?a(f,g,[s.value,w],!0):s.value,l(n,w,p);return n.length=w,n}},"7HYU":function(e,t){function n(){this.__data__=[],this.size=0}e.exports=n},"7NTl":function(e,t,n){"use strict";var r=n("g0pg"),o=n("vMeL"),a=r.aTypedArrayConstructor,i=r.exportTypedArrayStaticMethod;i("of",(function(){var e=0,t=arguments.length,n=new(a(this))(t);while(t>e)n[e]=arguments[e++];return n}),o)},"7PoB":function(e,t,n){"use strict";var r=n("OOCw"),o=n("qyeh"),a=n("eyaU"),i=n("sErw"),u=n("lkgX"),l=n("v3z7"),c=n("ZT9G"),s=n("QHn5"),f=n("uZx/");r({target:"Map",proto:!0,real:!0,forced:o},{mapValues:function(e){var t=i(this),n=s(t),r=l(e,arguments.length>1?arguments[1]:void 0,3),o=new(c(t,a("Map"))),d=u(o.set);return f(n,(function(e,n){d.call(o,e,r(n,e,t))}),void 0,!0,!0),o}})},"7TNV":function(e,t,n){var r=n("PORw"),o=n("lf6h"),a="[object Arguments]";function i(e){return o(e)&&r(e)==a}e.exports=i},"7Xfv":function(e,t,n){"use strict";var r=n("OOCw"),o=n("r+6h"),a=n("THzI"),i=n("OdMF"),u=n("lkgX"),l=n("0JbB");o&&r({target:"Object",proto:!0,forced:a},{__defineSetter__:function(e,t){l.f(i(this),e,{set:u(t),enumerable:!0,configurable:!0})}})},"7m2b":function(e,t,n){"use strict";n.r(t);var r=n("gbKz"),o=n.n(r),a=n("u4Q2"),i=n("xngY"),u=o.a.memo((e=>{e.demos;return o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:"markdown"},o.a.createElement("blockquote",null,o.a.createElement("p",null,"Here is the documentation for Hox v2, if you are using v1 then go to ",o.a.createElement(a["Link"],{to:"https://github.com/umijs/hox/blob/v1/README.md"},"here"))),o.a.createElement("p",null,o.a.createElement(a["Link"],{to:"https://www.npmjs.com/package/hox"},o.a.createElement("img",{src:"https://img.shields.io/npm/v/hox.svg?logo=npm",alt:"npm version"})),"\xa0",o.a.createElement(a["Link"],{to:"https://www.npmjs.com/package/hox"},o.a.createElement("img",{src:"https://img.shields.io/bundlephobia/min/hox.svg?logo=javascript",alt:"npm bundle size (minified)"})),"\xa0",o.a.createElement("img",{src:"https://img.shields.io/npm/dependency-version/hox/peer/react?logo=react",alt:"React"})),o.a.createElement(i["a"],{code:"npm add hox@2.0.0-rc.0",lang:"shell"}),o.a.createElement("h2",{id:"play-hox-in-codesandbox"},o.a.createElement(a["AnchorLink"],{to:"#play-hox-in-codesandbox","aria-hidden":"true",tabIndex:-1},o.a.createElement("span",{className:"icon icon-link"})),"Play Hox in Codesandbox"),o.a.createElement("p",null,o.a.createElement(a["Link"],{to:"https://codesandbox.io/s/github/awmleer/todo-app-with-hox/tree/master/"},o.a.createElement("img",{src:"https://codesandbox.io/static/img/play-codesandbox.svg",alt:"Edit"}))),o.a.createElement("h2",{id:"from-state-management-to-state-sharing"},o.a.createElement(a["AnchorLink"],{to:"#from-state-management-to-state-sharing","aria-hidden":"true",tabIndex:-1},o.a.createElement("span",{className:"icon icon-link"})),"From state management to state sharing"),o.a.createElement("p",null,'In Hox v1, we\'ve been calling it a "state management" library.'),o.a.createElement("p",null,'May wish to recall (or understand) these state management libraries such as redux, zustand, and recoil. Although they can also help us solve the problem of data sharing to a certain extent, their most essential ability is to operate data. They are called and really should be called "state management" tools.'),o.a.createElement("p",null,"The problem that Hox wants to solve is not how to organize and operate data, nor the hierarchical, asynchronous, and fine-grained data flow. We hope that Hox will only focus on one pain point: sharing state among multiple components."),o.a.createElement("p",null,"If you also realize that the ",o.a.createElement("code",null,"value")," ",o.a.createElement("code",null,"onChange"),' passed from layer to layer will have a devastating impact on a high-quality code base, and rudely stuffing data into redux will not make an application very scalable and effective. Maintainability, then Hox may be a "state sharing" solution for you, it\'s simple, lightweight, reliable, and suitable for almost any project no matter how big or small.'),o.a.createElement("h2",{id:"why-use-hox"},o.a.createElement(a["AnchorLink"],{to:"#why-use-hox","aria-hidden":"true",tabIndex:-1},o.a.createElement("span",{className:"icon icon-link"})),"Why use Hox?"),o.a.createElement("ul",null,o.a.createElement("li",null,"Direct reuse of existing React knowledge, almost no learning cost, how you write React components, you can write Store"),o.a.createElement("li",null,"Designed for flexible refactoring, using the same DSL in Store and components allows you to convert a component's local state into a state shared between components at almost zero cost"),o.a.createElement("li",null,"Supports both local and global states, a good balance between flexibility and simplicity"),o.a.createElement("li",null,"Excellent performance and TypeScript support"))))}));t["default"]=e=>{var t=o.a.useContext(a["context"]),n=t.demos;return o.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&a["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),o.a.createElement(u,{demos:n})}},"7wbt":function(e,t,n){"use strict";var r=n("OOCw"),o=n("qyeh"),a=n("sErw"),i=n("lkgX"),u=n("uZx/");r({target:"Set",proto:!0,real:!0,forced:o},{isDisjointFrom:function(e){var t=a(this),n=i(t.has);return!u(e,(function(e){if(!0===n.call(t,e))return u.stop()})).stopped}})},"7xa0":function(e,t,n){var r=n("3rdh"),o=n("Q69t"),a=n("xuOn"),i=n("ZsxT"),u=n("lUrU");function l(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t0&&(!f.multiline||f.multiline&&"\n"!==e[f.lastIndex-1])&&(h="(?: "+h+")",m=" "+m,v++),n=new RegExp("^(?:"+h+")",p)),s&&(n=new RegExp("^"+h+"$(?!\\s)",p)),l&&(t=f.lastIndex),o=a.call(d?n:f,m),d?o?(o.input=o.input.slice(v),o[0]=o[0].slice(v),o.index=f.lastIndex,f.lastIndex+=o[0].length):f.lastIndex=0:l&&o&&(f.lastIndex=f.global?o.index+o[0].length:t),s&&o&&o.length>1&&i.call(o[0],n,(function(){for(u=1;u0?r:n)(e)}},AU2x:function(e,t,n){var r=n("F71Q");function o(e){var t=r(this,e)["delete"](e);return this.size-=t?1:0,t}e.exports=o},AnAv:function(e,t){e.exports={}},AqOu:function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"B+gL":function(e,t,n){"use strict";var r=2147483647,o=36,a=1,i=26,u=38,l=700,c=72,s=128,f="-",d=/[^\0-\u007E]/,p=/[.\u3002\uFF0E\uFF61]/g,h="Overflow: input needs wider integers to process",v=o-a,m=Math.floor,g=String.fromCharCode,y=function(e){var t=[],n=0,r=e.length;while(n=55296&&o<=56319&&n>1,e+=m(e/t);e>v*i>>1;r+=o)e=m(e/v);return m(r+(v+1)*e/(e+u))},E=function(e){var t=[];e=y(e);var n,u,l=e.length,d=s,p=0,v=c;for(n=0;n=d&&um((r-p)/S))throw RangeError(h);for(p+=(O-d)*S,d=O,n=0;nr)throw RangeError(h);if(u==d){for(var x=p,j=o;;j+=o){var C=j<=v?a:j>=v+i?i:j-v;if(x0?arguments[0]:void 0,s=this,p=[];if(C(s,{type:x,entries:p,updateURL:function(){},updateSearchParams:U}),void 0!==c)if(m(c))if(e=w(c),"function"===typeof e){t=e.call(c),n=t.next;while(!(r=n.call(t)).done){if(o=b(v(r.value)),a=o.next,(i=a.call(o)).done||(u=a.call(o)).done||!a.call(o).done)throw TypeError("Expected sequence with length 2");p.push({key:i.value+"",value:u.value+""})}}else for(l in c)d(c,l)&&p.push({key:l,value:c[l]+""});else z(p,"string"===typeof c?"?"===c.charAt(0)?c.slice(1):c:c+"")},V=G.prototype;u(V,{append:function(e,t){B(arguments.length,2);var n=A(this);n.entries.push({key:e+"",value:t+""}),n.updateURL()},delete:function(e){B(arguments.length,1);var t=A(this),n=t.entries,r=e+"",o=0;while(oe.key){o.splice(t,0,e);break}t===n&&o.push(e)}r.updateURL()},forEach:function(e){var t,n=A(this).entries,r=p(e,arguments.length>1?arguments[1]:void 0,3),o=0;while(o1&&(t=arguments[1],m(t)&&(n=t.body,h(n)===x&&(r=t.headers?new O(t.headers):new O,r.has("content-type")||r.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),t=g(t,{body:y(0,String(n)),headers:y(0,r)}))),o.push(t)),k.apply(this,o)}}),e.exports={URLSearchParams:G,getState:A}},BLCN:function(e,t,n){"use strict";var r=n("OOCw"),o=n("Us7a").start,a=n("SRer");r({target:"String",proto:!0,forced:a},{padStart:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},BUyj:function(e,t,n){"use strict";var r=n("OOCw"),o=n("6SQG"),a=n("RzMS"),i=n("uF/W"),u=n("gArs"),l=n("uZx/"),c=n("CZSf"),s=n("x+sk"),f=n("h+/6"),d=n("eW2S"),p=n("nBeg"),h=n("aRba");e.exports=function(e,t,n){var v=-1!==e.indexOf("Map"),m=-1!==e.indexOf("Weak"),g=v?"set":"add",y=o[e],b=y&&y.prototype,w=y,E={},k=function(e){var t=b[e];i(b,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(m&&!s(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return m&&!s(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(m&&!s(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this})};if(a(e,"function"!=typeof y||!(m||b.forEach&&!f((function(){(new y).entries().next()})))))w=n.getConstructor(t,e,v,g),u.REQUIRED=!0;else if(a(e,!0)){var O=new w,S=O[g](m?{}:-0,1)!=O,x=f((function(){O.has(1)})),j=d((function(e){new y(e)})),C=!m&&f((function(){var e=new y,t=5;while(t--)e[g](t,t);return!e.has(-0)}));j||(w=t((function(t,n){c(t,w,e);var r=h(new y,t,w);return void 0!=n&&l(n,r[g],r,v),r})),w.prototype=b,b.constructor=w),(x||C)&&(k("delete"),k("has"),v&&k("get")),(C||S)&&k(g),m&&b.clear&&delete b.clear}return E[e]=w,r({global:!0,forced:w!=y},E),p(w,e),m||n.setStrong(w,e,v),w}},BZ8O:function(e,t,n){"use strict";var r=n("SHha"),o=n("gbKz");t.useSubscription=function(e){var t=e.getCurrentValue,n=e.subscribe,a=o.useState((function(){return{getCurrentValue:t,subscribe:n,value:t()}}));e=a[0];var i=a[1];return a=e.value,e.getCurrentValue===t&&e.subscribe===n||(a=t(),i({getCurrentValue:t,subscribe:n,value:a})),o.useDebugValue(a),o.useEffect((function(){function e(){if(!o){var e=t();i((function(o){return o.getCurrentValue!==t||o.subscribe!==n||o.value===e?o:r({},o,{value:e})}))}}var o=!1,a=n(e);return e(),function(){o=!0,a()}}),[t,n]),a}},Bm2L:function(e,t,n){"use strict";n.d(t,"a",(function(){return w})),n.d(t,"b",(function(){return k})),n.d(t,"c",(function(){return A})),n.d(t,"d",(function(){return M})),n.d(t,"e",(function(){return b})),n.d(t,"f",(function(){return B})),n.d(t,"g",(function(){return H})),n.d(t,"h",(function(){return y})),n.d(t,"i",(function(){return N})),n.d(t,"j",(function(){return W})),n.d(t,"k",(function(){return $})),n.d(t,"l",(function(){return K})),n.d(t,"m",(function(){return q})),n.d(t,"n",(function(){return G}));var r=n("gUNb"),o=n("gbKz"),a=n.n(o),i=n("ptaF"),u=n("1ChE"),l=n("g8ur"),c=n("UabQ"),s=n("aaHa"),f=n.n(s),d=(n("tSbI"),n("o4ox")),p=n("zyZy"),h=n.n(p),v=function(e){var t=Object(u["a"])();return t.displayName=e,t},m=v("Router-History"),g=function(e){var t=Object(u["a"])();return t.displayName=e,t},y=g("Router"),b=function(e){function t(t){var n;return n=e.call(this,t)||this,n.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 a.a.createElement(y.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},a.a.createElement(m.Provider,{children:this.props.children||null,value:this.props.history}))},t}(a.a.Component);var w=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o>>16,l=o>>>16,c=(u*i>>>0)+(a*i>>>16);return u*l+(c>>>16)+((a*l>>>0)+(c&n)>>>16)}})},CZSf:function(e,t){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},CZpw:function(e,t,n){"use strict";var r,o,a,i,u=n("OOCw"),l=n("qyeh"),c=n("6SQG"),s=n("eyaU"),f=n("N59M"),d=n("uF/W"),p=n("TxBV"),h=n("nBeg"),v=n("ct0+"),m=n("x+sk"),g=n("lkgX"),y=n("CZSf"),b=n("kk5s"),w=n("piBM"),E=n("uZx/"),k=n("eW2S"),O=n("ZT9G"),S=n("bbNk").set,x=n("OtMc"),j=n("rCLu"),C=n("Cqy2"),A=n("8d12"),_=n("86T+"),T=n("uJNS"),P=n("RzMS"),R=n("3Hes"),N=n("tDGd"),M=R("species"),I="Promise",L=T.get,D=T.set,F=T.getterFor(I),z=f,U=c.TypeError,B=c.document,H=c.process,G=s("fetch"),V=A.f,W=V,$="process"==b(H),K=!!(B&&B.createEvent&&c.dispatchEvent),q="unhandledrejection",Q="rejectionhandled",Y=0,X=1,Z=2,J=1,ee=2,te=P(I,(function(){var e=w(z)!==String(z);if(!e){if(66===N)return!0;if(!$&&"function"!=typeof PromiseRejectionEvent)return!0}if(l&&!z.prototype["finally"])return!0;if(N>=51&&/native code/.test(z))return!1;var t=z.resolve(1),n=function(e){e((function(){}),(function(){}))},r=t.constructor={};return r[M]=n,!(t.then((function(){}))instanceof n)})),ne=te||!k((function(e){z.all(e)["catch"]((function(){}))})),re=function(e){var t;return!(!m(e)||"function"!=typeof(t=e.then))&&t},oe=function(e,t,n){if(!t.notified){t.notified=!0;var r=t.reactions;x((function(){var o=t.value,a=t.state==X,i=0;while(r.length>i){var u,l,c,s=r[i++],f=a?s.ok:s.fail,d=s.resolve,p=s.reject,h=s.domain;try{f?(a||(t.rejection===ee&&le(e,t),t.rejection=J),!0===f?u=o:(h&&h.enter(),u=f(o),h&&(h.exit(),c=!0)),u===s.promise?p(U("Promise-chain cycle")):(l=re(u))?l.call(u,d,p):d(u)):p(o)}catch(v){h&&!c&&h.exit(),p(v)}}t.reactions=[],t.notified=!1,n&&!t.rejection&&ie(e,t)}))}},ae=function(e,t,n){var r,o;K?(r=B.createEvent("Event"),r.promise=t,r.reason=n,r.initEvent(e,!1,!0),c.dispatchEvent(r)):r={promise:t,reason:n},(o=c["on"+e])?o(r):e===q&&C("Unhandled promise rejection",n)},ie=function(e,t){S.call(c,(function(){var n,r=t.value,o=ue(t);if(o&&(n=_((function(){$?H.emit("unhandledRejection",r,e):ae(q,e,r)})),t.rejection=$||ue(t)?ee:J,n.error))throw n.value}))},ue=function(e){return e.rejection!==J&&!e.parent},le=function(e,t){S.call(c,(function(){$?H.emit("rejectionHandled",e):ae(Q,e,t.value)}))},ce=function(e,t,n,r){return function(o){e(t,n,o,r)}},se=function(e,t,n,r){t.done||(t.done=!0,r&&(t=r),t.value=n,t.state=Z,oe(e,t,!0))},fe=function(e,t,n,r){if(!t.done){t.done=!0,r&&(t=r);try{if(e===n)throw U("Promise can't be resolved itself");var o=re(n);o?x((function(){var r={done:!1};try{o.call(n,ce(fe,e,r,t),ce(se,e,r,t))}catch(a){se(e,r,a,t)}})):(t.value=n,t.state=X,oe(e,t,!1))}catch(a){se(e,{done:!1},a,t)}}};te&&(z=function(e){y(this,z,I),g(e),r.call(this);var t=L(this);try{e(ce(fe,this,t),ce(se,this,t))}catch(n){se(this,t,n)}},r=function(e){D(this,{type:I,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:Y,value:void 0})},r.prototype=p(z.prototype,{then:function(e,t){var n=F(this),r=V(O(this,z));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=$?H.domain:void 0,n.parent=!0,n.reactions.push(r),n.state!=Y&&oe(this,n,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new r,t=L(e);this.promise=e,this.resolve=ce(fe,e,t),this.reject=ce(se,e,t)},A.f=V=function(e){return e===z||e===a?new o(e):W(e)},l||"function"!=typeof f||(i=f.prototype.then,d(f.prototype,"then",(function(e,t){var n=this;return new z((function(e,t){i.call(n,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof G&&u({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return j(z,G.apply(c,arguments))}}))),u({global:!0,wrap:!0,forced:te},{Promise:z}),h(z,I,!1,!0),v(I),a=s(I),u({target:I,stat:!0,forced:te},{reject:function(e){var t=V(this);return t.reject.call(void 0,e),t.promise}}),u({target:I,stat:!0,forced:l||te},{resolve:function(e){return j(l&&this===a?z:this,e)}}),u({target:I,stat:!0,forced:ne},{all:function(e){var t=this,n=V(t),r=n.resolve,o=n.reject,a=_((function(){var n=g(t.resolve),a=[],i=0,u=1;E(e,(function(e){var l=i++,c=!1;a.push(void 0),u++,n.call(t,e).then((function(e){c||(c=!0,a[l]=e,--u||r(a))}),o)})),--u||r(a)}));return a.error&&o(a.value),n.promise},race:function(e){var t=this,n=V(t),r=n.reject,o=_((function(){var o=g(t.resolve);E(e,(function(e){o.call(t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}})},CpWJ:function(e,t,n){"use strict";var r=n("OOCw"),o=n("qyeh"),a=n("eyaU"),i=n("sErw"),u=n("lkgX"),l=n("v3z7"),c=n("ZT9G"),s=n("QHn5"),f=n("uZx/");r({target:"Map",proto:!0,real:!0,forced:o},{filter:function(e){var t=i(this),n=s(t),r=l(e,arguments.length>1?arguments[1]:void 0,3),o=new(c(t,a("Map"))),d=u(o.set);return f(n,(function(e,n){r(n,e,t)&&d.call(o,e,n)}),void 0,!0,!0),o}})},Cq8A:function(e,t,n){"use strict";function r(e){return r="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},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var o=l(n("gbKz")),a=i(n("bDK3"));function i(e){return e&&e.__esModule?e:{default:e}}function u(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function l(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=a?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(o,i,l):o[i]=e[i]}return o["default"]=e,n&&n.set(e,o),o}function c(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=d(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}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 a,i=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){u=!0,a=e},f:function(){try{i||null==n["return"]||n["return"]()}finally{if(u)throw a}}}}function s(e,t){return v(e)||h(e,t)||d(e,t)||f()}function f(){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 d(e,t){if(e){if("string"===typeof e)return p(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(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0;i-=1){var u=o[i],l=[u].concat(u.children).filter(Boolean),c=l.find((function(e){return e.path&&new RegExp("^".concat(e.path.replace(/\.html$/,""),"(/|.|$)")).test(n[2])}));if(c){a=c.path;break}}return(null===(e=n[0].menus[n[1]])||void 0===e?void 0:e[a])||[]},a=(0,o.useState)(r(e,t,n)),i=s(a,2),u=i[0],l=i[1];return(0,o.useLayoutEffect)((function(){l(r(e,t,n))}),[e.navs,e.menus,t,n]),u},k=function(e,t,n){var r=function(){for(var t=arguments.length,r=new Array(t),o=0;ol)o.f(e,n=r[l++],t[n]);return e}},DbXJ:function(e,t,n){var r=n("ta0t"),o=n("W6X5"),a=n("XXwF"),i=n("Ysk6");function u(e){return r(e)||o(e)||a(e)||i()}e.exports=u},DhcM:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},Dkad:function(e,t,n){var r=n("GXoa");r("Int8",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},DxEE:function(e,t,n){"use strict";function r(e,t){var n=e.length;e.push(t);e:for(;0>>1,o=e[r];if(!(0>>1;ri(l,n))ci(s,l)?(e[r]=s,e[c]=n,r=c):(e[r]=l,e[u]=n,r=u);else{if(!(ci(s,n)))break e;e[r]=s,e[c]=n,r=c}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var u=performance;t.unstable_now=function(){return u.now()}}else{var l=Date,c=l.now();t.unstable_now=function(){return l.now()-c}}var s=[],f=[],d=1,p=null,h=3,v=!1,m=!1,g=!1,y="function"===typeof setTimeout?setTimeout:null,b="function"===typeof clearTimeout?clearTimeout:null,w="undefined"!==typeof setImmediate?setImmediate:null;function E(e){for(var t=o(f);null!==t;){if(null===t.callback)a(f);else{if(!(t.startTime<=e))break;a(f),t.sortIndex=t.expirationTime,r(s,t)}t=o(f)}}function k(e){if(g=!1,E(e),!m)if(null!==o(s))m=!0,M(O);else{var t=o(f);null!==t&&I(k,t.startTime-e)}}function O(e,n){m=!1,g&&(g=!1,b(C),C=-1),v=!0;var r=h;try{for(E(n),p=o(s);null!==p&&(!(p.expirationTime>n)||e&&!T());){var i=p.callback;if("function"===typeof i){p.callback=null,h=p.priorityLevel;var u=i(p.expirationTime<=n);n=t.unstable_now(),"function"===typeof u?p.callback=u:p===o(s)&&a(s),E(n)}else a(s);p=o(s)}if(null!==p)var l=!0;else{var c=o(f);null!==c&&I(k,c.startTime-n),l=!1}return l}finally{p=null,h=r,v=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S,x=!1,j=null,C=-1,A=5,_=-1;function T(){return!(t.unstable_now()-_e||125i?(e.sortIndex=a,r(f,e),null===o(s)&&e===o(f)&&(g?(b(C),C=-1):g=!0,I(k,a-i))):(e.sortIndex=u,r(s,e),m||v||(m=!0,M(O))),e},t.unstable_shouldYield=T,t.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}}},EA9V:function(e,t){function n(e){var t=this.__data__,n=t["delete"](e);return this.size=t.size,n}e.exports=n},EN7L:function(e,t,n){"use strict";n("M2ND");var r,o=n("OOCw"),a=n("r+6h"),i=n("Hy9b"),u=n("6SQG"),l=n("DS72"),c=n("uF/W"),s=n("CZSf"),f=n("oEsY"),d=n("NWlk"),p=n("7F/w"),h=n("vfR7").codeAt,v=n("B+gL"),m=n("nBeg"),g=n("BC4x"),y=n("uJNS"),b=u.URL,w=g.URLSearchParams,E=g.getState,k=y.set,O=y.getterFor("URL"),S=Math.floor,x=Math.pow,j="Invalid authority",C="Invalid scheme",A="Invalid host",_="Invalid port",T=/[A-Za-z]/,P=/[\d+-.A-Za-z]/,R=/\d/,N=/^(0x|0X)/,M=/^[0-7]+$/,I=/^\d+$/,L=/^[\dA-Fa-f]+$/,D=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,F=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,z=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,U=/[\u0009\u000A\u000D]/g,B=function(e,t){var n,r,o;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1))return A;if(n=G(t.slice(1,-1)),!n)return A;e.host=n}else if(Z(e)){if(t=v(t),D.test(t))return A;if(n=H(t),null===n)return A;e.host=n}else{if(F.test(t))return A;for(n="",r=p(t),o=0;o4)return e;for(n=[],r=0;r1&&"0"==o.charAt(0)&&(a=N.test(o)?16:8,o=o.slice(8==a?1:2)),""===o)i=0;else{if(!(10==a?I:8==a?M:L).test(o))return e;i=parseInt(o,a)}n.push(i)}for(r=0;r=x(256,5-t))return null}else if(i>255)return null;for(u=n.pop(),r=0;r6)return;r=0;while(d()){if(o=null,r>0){if(!("."==d()&&r<4))return;f++}if(!R.test(d()))return;while(R.test(d())){if(a=parseInt(d(),10),null===o)o=a;else{if(0==o)return;o=10*o+a}if(o>255)return;f++}l[c]=256*l[c]+o,r++,2!=r&&4!=r||c++}if(4!=r)return;break}if(":"==d()){if(f++,!d())return}else if(d())return;l[c++]=t}else{if(null!==s)return;f++,c++,s=c}}if(null!==s){i=c-s,c=7;while(0!=c&&i>0)u=l[c],l[c--]=l[s+i-1],l[s+--i]=u}else if(8!=c)return;return l},V=function(e){for(var t=null,n=1,r=null,o=0,a=0;a<8;a++)0!==e[a]?(o>n&&(t=r,n=o),r=null,o=0):(null===r&&(r=a),++o);return o>n&&(t=r,n=o),t},W=function(e){var t,n,r,o;if("number"==typeof e){for(t=[],n=0;n<4;n++)t.unshift(e%256),e=S(e/256);return t.join(".")}if("object"==typeof e){for(t="",r=V(e),n=0;n<8;n++)o&&0===e[n]||(o&&(o=!1),r===n?(t+=n?":":"::",o=!0):(t+=e[n].toString(16),n<7&&(t+=":")));return"["+t+"]"}return e},$={},K=d({},$,{" ":1,'"':1,"<":1,">":1,"`":1}),q=d({},K,{"#":1,"?":1,"{":1,"}":1}),Q=d({},q,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Y=function(e,t){var n=h(e,0);return n>32&&n<127&&!f(t,e)?e:encodeURIComponent(e)},X={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Z=function(e){return f(X,e.scheme)},J=function(e){return""!=e.username||""!=e.password},ee=function(e){return!e.host||e.cannotBeABaseURL||"file"==e.scheme},te=function(e,t){var n;return 2==e.length&&T.test(e.charAt(0))&&(":"==(n=e.charAt(1))||!t&&"|"==n)},ne=function(e){var t;return e.length>1&&te(e.slice(0,2))&&(2==e.length||"/"===(t=e.charAt(2))||"\\"===t||"?"===t||"#"===t)},re=function(e){var t=e.path,n=t.length;!n||"file"==e.scheme&&1==n&&te(t[0],!0)||t.pop()},oe=function(e){return"."===e||"%2e"===e.toLowerCase()},ae=function(e){return e=e.toLowerCase(),".."===e||"%2e."===e||".%2e"===e||"%2e%2e"===e},ie={},ue={},le={},ce={},se={},fe={},de={},pe={},he={},ve={},me={},ge={},ye={},be={},we={},Ee={},ke={},Oe={},Se={},xe={},je={},Ce=function(e,t,n,o){var a,i,u,l,c=n||ie,s=0,d="",h=!1,v=!1,m=!1;n||(e.scheme="",e.username="",e.password="",e.host=null,e.port=null,e.path=[],e.query=null,e.fragment=null,e.cannotBeABaseURL=!1,t=t.replace(z,"")),t=t.replace(U,""),a=p(t);while(s<=a.length){switch(i=a[s],c){case ie:if(!i||!T.test(i)){if(n)return C;c=le;continue}d+=i.toLowerCase(),c=ue;break;case ue:if(i&&(P.test(i)||"+"==i||"-"==i||"."==i))d+=i.toLowerCase();else{if(":"!=i){if(n)return C;d="",c=le,s=0;continue}if(n&&(Z(e)!=f(X,d)||"file"==d&&(J(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=d,n)return void(Z(e)&&X[e.scheme]==e.port&&(e.port=null));d="","file"==e.scheme?c=be:Z(e)&&o&&o.scheme==e.scheme?c=ce:Z(e)?c=pe:"/"==a[s+1]?(c=se,s++):(e.cannotBeABaseURL=!0,e.path.push(""),c=Se)}break;case le:if(!o||o.cannotBeABaseURL&&"#"!=i)return C;if(o.cannotBeABaseURL&&"#"==i){e.scheme=o.scheme,e.path=o.path.slice(),e.query=o.query,e.fragment="",e.cannotBeABaseURL=!0,c=je;break}c="file"==o.scheme?be:fe;continue;case ce:if("/"!=i||"/"!=a[s+1]){c=fe;continue}c=he,s++;break;case se:if("/"==i){c=ve;break}c=Oe;continue;case fe:if(e.scheme=o.scheme,i==r)e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,e.path=o.path.slice(),e.query=o.query;else if("/"==i||"\\"==i&&Z(e))c=de;else if("?"==i)e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,e.path=o.path.slice(),e.query="",c=xe;else{if("#"!=i){e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,e.path=o.path.slice(),e.path.pop(),c=Oe;continue}e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,e.path=o.path.slice(),e.query=o.query,e.fragment="",c=je}break;case de:if(!Z(e)||"/"!=i&&"\\"!=i){if("/"!=i){e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,c=Oe;continue}c=ve}else c=he;break;case pe:if(c=he,"/"!=i||"/"!=d.charAt(s+1))continue;s++;break;case he:if("/"!=i&&"\\"!=i){c=ve;continue}break;case ve:if("@"==i){h&&(d="%40"+d),h=!0,u=p(d);for(var g=0;g65535)return _;e.port=Z(e)&&w===X[e.scheme]?null:w,d=""}if(n)return;c=ke;continue}return _}d+=i;break;case be:if(e.scheme="file","/"==i||"\\"==i)c=we;else{if(!o||"file"!=o.scheme){c=Oe;continue}if(i==r)e.host=o.host,e.path=o.path.slice(),e.query=o.query;else if("?"==i)e.host=o.host,e.path=o.path.slice(),e.query="",c=xe;else{if("#"!=i){ne(a.slice(s).join(""))||(e.host=o.host,e.path=o.path.slice(),re(e)),c=Oe;continue}e.host=o.host,e.path=o.path.slice(),e.query=o.query,e.fragment="",c=je}}break;case we:if("/"==i||"\\"==i){c=Ee;break}o&&"file"==o.scheme&&!ne(a.slice(s).join(""))&&(te(o.path[0],!0)?e.path.push(o.path[0]):e.host=o.host),c=Oe;continue;case Ee:if(i==r||"/"==i||"\\"==i||"?"==i||"#"==i){if(!n&&te(d))c=Oe;else if(""==d){if(e.host="",n)return;c=ke}else{if(l=B(e,d),l)return l;if("localhost"==e.host&&(e.host=""),n)return;d="",c=ke}continue}d+=i;break;case ke:if(Z(e)){if(c=Oe,"/"!=i&&"\\"!=i)continue}else if(n||"?"!=i)if(n||"#"!=i){if(i!=r&&(c=Oe,"/"!=i))continue}else e.fragment="",c=je;else e.query="",c=xe;break;case Oe:if(i==r||"/"==i||"\\"==i&&Z(e)||!n&&("?"==i||"#"==i)){if(ae(d)?(re(e),"/"==i||"\\"==i&&Z(e)||e.path.push("")):oe(d)?"/"==i||"\\"==i&&Z(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&te(d)&&(e.host&&(e.host=""),d=d.charAt(0)+":"),e.path.push(d)),d="","file"==e.scheme&&(i==r||"?"==i||"#"==i))while(e.path.length>1&&""===e.path[0])e.path.shift();"?"==i?(e.query="",c=xe):"#"==i&&(e.fragment="",c=je)}else d+=Y(i,q);break;case Se:"?"==i?(e.query="",c=xe):"#"==i?(e.fragment="",c=je):i!=r&&(e.path[0]+=Y(i,$));break;case xe:n||"#"!=i?i!=r&&("'"==i&&Z(e)?e.query+="%27":e.query+="#"==i?"%23":Y(i,$)):(e.fragment="",c=je);break;case je:i!=r&&(e.fragment+=Y(i,K));break}s++}},Ae=function(e){var t,n,r=s(this,Ae,"URL"),o=arguments.length>1?arguments[1]:void 0,i=String(e),u=k(r,{type:"URL"});if(void 0!==o)if(o instanceof Ae)t=O(o);else if(n=Ce(t={},String(o)),n)throw TypeError(n);if(n=Ce(u,i,null,t),n)throw TypeError(n);var l=u.searchParams=new w,c=E(l);c.updateSearchParams(u.query),c.updateURL=function(){u.query=String(l)||null},a||(r.href=Te.call(r),r.origin=Pe.call(r),r.protocol=Re.call(r),r.username=Ne.call(r),r.password=Me.call(r),r.host=Ie.call(r),r.hostname=Le.call(r),r.port=De.call(r),r.pathname=Fe.call(r),r.search=ze.call(r),r.searchParams=Ue.call(r),r.hash=Be.call(r))},_e=Ae.prototype,Te=function(){var e=O(this),t=e.scheme,n=e.username,r=e.password,o=e.host,a=e.port,i=e.path,u=e.query,l=e.fragment,c=t+":";return null!==o?(c+="//",J(e)&&(c+=n+(r?":"+r:"")+"@"),c+=W(o),null!==a&&(c+=":"+a)):"file"==t&&(c+="//"),c+=e.cannotBeABaseURL?i[0]:i.length?"/"+i.join("/"):"",null!==u&&(c+="?"+u),null!==l&&(c+="#"+l),c},Pe=function(){var e=O(this),t=e.scheme,n=e.port;if("blob"==t)try{return new URL(t.path[0]).origin}catch(r){return"null"}return"file"!=t&&Z(e)?t+"://"+W(e.host)+(null!==n?":"+n:""):"null"},Re=function(){return O(this).scheme+":"},Ne=function(){return O(this).username},Me=function(){return O(this).password},Ie=function(){var e=O(this),t=e.host,n=e.port;return null===t?"":null===n?W(t):W(t)+":"+n},Le=function(){var e=O(this).host;return null===e?"":W(e)},De=function(){var e=O(this).port;return null===e?"":String(e)},Fe=function(){var e=O(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},ze=function(){var e=O(this).query;return e?"?"+e:""},Ue=function(){return O(this).searchParams},Be=function(){var e=O(this).fragment;return e?"#"+e:""},He=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(a&&l(_e,{href:He(Te,(function(e){var t=O(this),n=String(e),r=Ce(t,n);if(r)throw TypeError(r);E(t.searchParams).updateSearchParams(t.query)})),origin:He(Pe),protocol:He(Re,(function(e){var t=O(this);Ce(t,String(e)+":",ie)})),username:He(Ne,(function(e){var t=O(this),n=p(String(e));if(!ee(t)){t.username="";for(var r=0;r2?arguments[2]:void 0)(e,n);return n.set(e,t(u,e,n)),n}})},"F/PV":function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},F71Q:function(e,t,n){var r=n("pADs");function o(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}e.exports=o},FHCv:function(e,t,n){var r=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,o="function"===typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function l(e,t,n,r){var o=t&&t.prototype instanceof v?t:v,a=Object.create(o.prototype),i=new A(r||[]);return a._invoke=S(e,n,i),a}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(r){return{type:"throw",arg:r}}}e.wrap=l;var s="suspendedStart",f="suspendedYield",d="executing",p="completed",h={};function v(){}function m(){}function g(){}var y={};y[a]=function(){return this};var b=Object.getPrototypeOf,w=b&&b(b(_([])));w&&w!==n&&r.call(w,a)&&(y=w);var E=g.prototype=v.prototype=Object.create(y);function k(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function O(e,t){function n(o,a,i,u){var l=c(e[o],e,a);if("throw"!==l.type){var s=l.arg,f=s.value;return f&&"object"===typeof f&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,i,u)}),(function(e){n("throw",e,i,u)})):t.resolve(f).then((function(e){s.value=e,i(s)}),(function(e){return n("throw",e,i,u)}))}u(l.arg)}var o;function a(e,r){function a(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(a,a):a()}this._invoke=a}function S(e,t,n){var r=s;return function(o,a){if(r===d)throw new Error("Generator is already running");if(r===p){if("throw"===o)throw a;return T()}n.method=o,n.arg=a;while(1){var i=n.delegate;if(i){var u=x(i,n);if(u){if(u===h)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===s)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var l=c(e,t,n);if("normal"===l.type){if(r=n.done?p:f,l.arg===h)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=p,n.method="throw",n.arg=l.arg)}}}function x(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator["return"]&&(n.method="return",n.arg=t,x(e,n),"throw"===n.method))return h;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var o=c(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,h;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,h):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,h)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function _(e){if(e){var n=e[a];if(n)return n.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){while(++o=0;--a){var i=this.tryEntries[a],u=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(l&&c){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;C(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:_(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),h}},e}(e.exports);try{regeneratorRuntime=r}catch(o){Function("r","regeneratorRuntime = r")(r)}},FbU2:function(e,t,n){var r=n("muZu"),o=n("eoSM");function a(e,t,n){var a=t(e);return o(e)?a:r(a,n(e))}e.exports=a},Fdmm:function(e,t,n){"use strict";n.r(t);var r=n("gbKz"),o=n.n(r),a=n("u4Q2"),i=n("xngY"),u=o.a.memo((e=>{e.demos;return o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:"markdown"},o.a.createElement("h1",{id:"\u6027\u80fd\u4f18\u5316"},o.a.createElement(a["AnchorLink"],{to:"#\u6027\u80fd\u4f18\u5316","aria-hidden":"true",tabIndex:-1},o.a.createElement("span",{className:"icon icon-link"})),"\u6027\u80fd\u4f18\u5316"),o.a.createElement("p",null,o.a.createElement("code",null,"createStore")," \u6216 ",o.a.createElement("code",null,"createGlobalStore")," \u7684\u8fd4\u56de\u503c ",o.a.createElement("code",null,"useXxxStore")," \u652f\u6301\u4f20\u5165\u4e00\u4e2a ",o.a.createElement("code",null,"depsFn")," \u51fd\u6570\uff0c\u6765\u7cbe\u786e\u63a7\u5236\u8ba2\u9605\u7684\u5b57\u6bb5\uff1a"),o.a.createElement(i["a"],{code:"const counter = useCounterStore(store => [store.count, store.x.y])",lang:"jsx"}),o.a.createElement("p",null,"\u8fd9\u548c ",o.a.createElement("code",null,"useMemo")," \u3001 ",o.a.createElement("code",null,"useEffect")," \u7684 ",o.a.createElement("code",null,"deps")," \u975e\u5e38\u76f8\u4f3c\uff0c\u4f46\u662f\uff0c ",o.a.createElement("code",null,"useStore")," \u7684 ",o.a.createElement("code",null,"depsFn")," \u53c2\u6570\u662f\u4e00\u4e2a",o.a.createElement("strong",null,"\u51fd\u6570"),"\u3002"),o.a.createElement("p",null,"\u6b64\u5916\uff0c\u6211\u4eec\u5efa\u8bae\u5bf9\u4e00\u4e2a\u5e9e\u5927\u7684 store \u8fdb\u884c\u62c6\u5206\uff0c\u8fd9\u6837\u4e0d\u4ec5\u4ee3\u7801\u66f4\u6613\u4e8e\u7ef4\u62a4\uff0c\u6027\u80fd\u4e5f\u4f1a\u6709\u6240\u6539\u5584\u3002")))}));t["default"]=e=>{var t=o.a.useContext(a["context"]),n=t.demos;return o.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&a["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),o.a.createElement(u,{demos:n})}},FfOG:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}));var r=n("ptaF"),o={basename:"/"};window.routerBase&&(o.basename=window.routerBase);var a=Object({NODE_ENV:"production"}).__IS_SERVER?null:Object(r["a"])(o),i=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e||(a=Object(r["a"])(o)),a}},Fk8h:function(e,t,n){"use strict";n.r(t);var r=n("gbKz"),o=n.n(r),a=n("u4Q2"),i=n("xngY"),u=o.a.memo((e=>{e.demos;return o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:"markdown"},o.a.createElement("h1",{id:"how-to-migrate-from-v1-to-v2"},o.a.createElement(a["AnchorLink"],{to:"#how-to-migrate-from-v1-to-v2","aria-hidden":"true",tabIndex:-1},o.a.createElement("span",{className:"icon icon-link"})),"How to migrate from v1 to v2"),o.a.createElement("p",null,"First upgrade the npm package to v2, for example:"),o.a.createElement(i["a"],{code:"npm install --save hox@latest",lang:"shell"}),o.a.createElement("p",null,"##createModel"),o.a.createElement("p",null,o.a.createElement("code",null,"createModel")," corresponds to ",o.a.createElement("code",null,"createGlobalStore")," in v2, so you need to batch replace ",o.a.createElement("code",null,"createModel")," with ",o.a.createElement("code",null,"createGlobalStore"),":"),o.a.createElement(i["a"],{code:"createModel(() => {\n // ...\n})\n\n// \u2b07\ufe0f\n\ncreateGlobalStore(() => {\n // ...\n})",lang:"js"}),o.a.createElement("p",null,"At the same time, ",o.a.createElement("code",null,"createGlobalStore")," does not support the second extra parameter (in the previous ",o.a.createElement("code",null,"createModel"),", this parameter will be passed to the Hook function), but don't worry, you can directly wrap a layer of anonymous function to achieve the same Effect:"),o.a.createElement(i["a"],{code:"function useCounter(initial) {\n // ...\n}\ncreateModel(useCounter, 5)\n\n// \u2b07\ufe0f\n\nfunction useCounter(initial) {\n // ...\n}\ncreateGlobalStore(() => useCounter(5))",lang:"js"}),o.a.createElement("h2",{id:"hoxroot"},o.a.createElement(a["AnchorLink"],{to:"#hoxroot","aria-hidden":"true",tabIndex:-1},o.a.createElement("span",{className:"icon icon-link"})),"HoxRoot"),o.a.createElement("p",null,"In the v2 version of hox, the global Store needs to be collected and executed through the ",o.a.createElement("code",null,"HoxRoot")," component, so you need to wrap a ",o.a.createElement("code",null,"HoxRoot")," in the outermost layer of the entire application:"),o.a.createElement(i["a"],{code:"\n \n",lang:"jsx"}),o.a.createElement("p",null,"It should be noted that on the same browser page, only one HoxRoot can be rendered at the same time."),o.a.createElement("h2",{id:"uselazymodel"},o.a.createElement(a["AnchorLink"],{to:"#uselazymodel","aria-hidden":"true",tabIndex:-1},o.a.createElement("span",{className:"icon icon-link"})),"useLazyModel"),o.a.createElement("p",null,o.a.createElement("code",null,"useLazyModel")," has been removed in hox v2, and there is currently no equivalent function, in general, you can achieve the same purpose with a local Store."),o.a.createElement("h2",{id:"finish"},o.a.createElement(a["AnchorLink"],{to:"#finish","aria-hidden":"true",tabIndex:-1},o.a.createElement("span",{className:"icon icon-link"})),"Finish"),o.a.createElement("p",null,"Now you can start the project and try it out. If you encounter strange problems after following the above process, you can submit ",o.a.createElement(a["Link"],{to:"https://github.com/umijs/hox/issues"},"issue")," in the GitHub repository .")))}));t["default"]=e=>{var t=o.a.useContext(a["context"]),n=t.demos;return o.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&a["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),o.a.createElement(u,{demos:n})}},FlI8:function(e,t,n){var r=n("OOCw"),o=n("7F/w"),a=n("eW2S"),i=!a((function(e){Array.from(e)}));r({target:"Array",stat:!0,forced:i},{from:o})},Ft2i:function(e,t,n){"use strict";var r=n("OOCw"),o=n("lkgX"),a=n("OdMF"),i=n("h+/6"),u=n("rUEg"),l=[],c=l.sort,s=i((function(){l.sort(void 0)})),f=i((function(){l.sort(null)})),d=u("sort"),p=s||!f||!d;r({target:"Array",proto:!0,forced:p},{sort:function(e){return void 0===e?c.call(a(this)):c.call(a(this),o(e))}})},G2F8:function(e,t,n){var r=n("ANLo"),o=n("upgS");e.exports=function(e){if(void 0===e)return 0;var t=r(e),n=o(t);if(t!==n)throw RangeError("Wrong length or index");return n}},G3cz:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("f2HW");function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;tt}return!1}function y(e,t,n,r,o,a,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var b={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){b[e]=new y(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];b[t]=new y(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){b[e]=new y(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){b[e]=new y(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){b[e]=new y(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){b[e]=new y(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){b[e]=new y(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){b[e]=new y(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){b[e]=new y(e,5,!1,e.toLowerCase(),null,!1,!1)}));var w=/[\-:]([a-z])/g;function E(e){return e[1].toUpperCase()}function k(e,t,n,r){var o=b.hasOwnProperty(t)?b[t]:null;(null!==o?0!==o.type:r||!(2u||o[i]!==a[u]){var l="\n"+o[i].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}}while(1<=i&&0<=u);break}}}finally{H=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?B(e):""}function V(e){switch(e.tag){case 5:return B(e.type);case 16:return B("Lazy");case 13:return B("Suspense");case 19:return B("SuspenseList");case 0:case 2:case 15:return e=G(e.type,!1),e;case 11:return e=G(e.type.render,!1),e;case 1:return e=G(e.type,!0),e;default:return""}}function W(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case j:return"Fragment";case x:return"Portal";case A:return"Profiler";case C:return"StrictMode";case R:return"Suspense";case N:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case T:return(e.displayName||"Context")+".Consumer";case _:return(e._context.displayName||"Context")+".Provider";case P:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=""!==e?"ForwardRef("+e+")":"ForwardRef"),e;case M:return t=e.displayName||null,null!==t?t:W(e.type)||"Memo";case I:t=e._payload,e=e._init;try{return W(e(t))}catch(n){}}return null}function $(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return W(t);case 8:return t===C?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function K(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function q(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Q(e){var t=q(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var o=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Y(e){e._valueTracker||(e._valueTracker=Q(e))}function X(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=q(e)?e.checked?"true":"false":e.value),e=r,e!==n&&(t.setValue(e),!0)}function Z(e){if(e=e||("undefined"!==typeof document?document:void 0),"undefined"===typeof e)return null;try{return e.activeElement||e.body}catch(t){return e.body}}function J(e,t){var n=t.checked;return U({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=K(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function te(e,t){t=t.checked,null!=t&&k(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=K(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?oe(e,t.type,n):t.hasOwnProperty("defaultValue")&&oe(e,t.type,K(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function re(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,""!==n&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function oe(e,t,n){"number"===t&&Z(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ae=Array.isArray;function ie(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=pe.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function ve(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var me={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ge=["Webkit","ms","Moz","O"];function ye(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||me.hasOwnProperty(e)&&me[e]?(""+t).trim():t+"px"}function be(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=ye(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(me).forEach((function(e){ge.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),me[t]=me[e]}))}));var we=U({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ee(e,t){if(t){if(we[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(a(62))}}function ke(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Oe=null;function Se(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var xe=null,je=null,Ce=null;function Ae(e){if(e=Ho(e)){if("function"!==typeof xe)throw Error(a(280));var t=e.stateNode;t&&(t=Vo(t),xe(e.stateNode,e.type,t))}}function _e(e){je?Ce?Ce.push(e):Ce=[e]:je=e}function Te(){if(je){var e=je,t=Ce;if(Ce=je=null,Ae(e),t)for(e=0;e>>=0,0===e?32:31-(pt(e)/ht|0)|0}var mt=64,gt=4194304;function yt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function bt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,a=e.pingedLanes,i=268435455&n;if(0!==i){var u=i&~o;0!==u?r=yt(u):(a&=i,0!==a&&(r=yt(a)))}else i=n&~o,0!==i?r=yt(i):0!==a&&(r=yt(a));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&o)&&(o=r&-r,a=t&-t,o>=a||16===o&&0!==(4194240&a)))return t;if(0!==(4&r)&&(r|=16&n),t=e.entangledLanes,0!==t)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function xt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-dt(t),e[t]=n}function jt(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Zn),tr=String.fromCharCode(32),nr=!1;function rr(e,t){switch(e){case"keyup":return-1!==Yn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function or(e){return e=e.detail,"object"===typeof e&&"data"in e?e.data:null}var ar=!1;function ir(e,t){switch(e){case"compositionend":return or(t);case"keypress":return 32!==t.which?null:(nr=!0,tr);case"textInput":return e=t.data,e===tr&&nr?null:e;default:return null}}function ur(e,t){if(ar)return"compositionend"===e||!Xn&&rr(e,t)?(e=fn(),sn=cn=ln=null,ar=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=_r(r)}}function Pr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?Pr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function Rr(){for(var e=window,t=Z();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;e=t.contentWindow,t=Z(e.document)}return t}function Nr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function Mr(e){var t=Rr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Pr(n.ownerDocument.documentElement,n)){if(null!==r&&Nr(n))if(t=r.start,e=r.end,void 0===e&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,a=Math.min(r.start,o);r=void 0===r.end?a:Math.min(r.end,o),!e.extend&&a>r&&(o=r,r=a,a=o),o=Tr(n,a);var i=Tr(n,r);o&&i&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof n.focus&&n.focus(),n=0;n=document.documentMode,Lr=null,Dr=null,Fr=null,zr=!1;function Ur(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;zr||null==Lr||Lr!==Z(r)||(r=Lr,"selectionStart"in r&&Nr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Fr&&Ar(Fr,r)||(Fr=r,r=vo(Dr,"onSelect"),0$o||(e.current=Wo[$o],Wo[$o]=null,$o--)}function Qo(e,t){$o++,Wo[$o]=e.current,e.current=t}var Yo={},Xo=Ko(Yo),Zo=Ko(!1),Jo=Yo;function ea(e,t){var n=e.type.contextTypes;if(!n)return Yo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,a={};for(o in n)a[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function ta(e){return e=e.childContextTypes,null!==e&&void 0!==e}function na(){qo(Zo),qo(Xo)}function ra(e,t,n){if(Xo.current!==Yo)throw Error(a(168));Qo(Xo,t),Qo(Zo,n)}function oa(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var o in r=r.getChildContext(),r)if(!(o in t))throw Error(a(108,$(e)||"Unknown",o));return U({},n,r)}function aa(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Yo,Jo=Xo.current,Qo(Xo,e),Qo(Zo,Zo.current),!0}function ia(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=oa(e,t,Jo),r.__reactInternalMemoizedMergedChildContext=e,qo(Zo),qo(Xo),Qo(Xo,e)):qo(Zo),Qo(Zo,n)}var ua=null,la=!1,ca=!1;function sa(e){null===ua?ua=[e]:ua.push(e)}function fa(e){la=!0,sa(e)}function da(){if(!ca&&null!==ua){ca=!0;var e=0,t=At;try{var n=ua;for(At=1;e>=i,o-=i,qa=1<<32-dt(t)+o|n<v?(m=f,f=null):m=f.sibling;var g=p(o,f,u[v],l);if(null===g){null===f&&(f=m);break}e&&f&&null===g.alternate&&t(o,f),a=i(g,a,v),null===s?c=g:s.sibling=g,s=g,f=m}if(v===u.length)return n(o,f),ni&&Ya(o,v),c;if(null===f){for(;vm?(g=v,v=null):g=v.sibling;var b=p(o,v,y.value,c);if(null===b){null===v&&(v=g);break}e&&v&&null===b.alternate&&t(o,v),u=i(b,u,m),null===f?s=b:f.sibling=b,f=b,v=g}if(y.done)return n(o,v),ni&&Ya(o,m),s;if(null===v){for(;!y.done;m++,y=l.next())y=d(o,y.value,c),null!==y&&(u=i(y,u,m),null===f?s=y:f.sibling=y,f=y);return ni&&Ya(o,m),s}for(v=r(o,v);!y.done;m++,y=l.next())y=h(v,o,m,y.value,c),null!==y&&(e&&null!==y.alternate&&v.delete(null===y.key?m:y.key),u=i(y,u,m),null===f?s=y:f.sibling=y,f=y);return e&&v.forEach((function(e){return t(o,e)})),ni&&Ya(o,m),s}function g(e,r,a,i){if("object"===typeof a&&null!==a&&a.type===j&&null===a.key&&(a=a.props.children),"object"===typeof a&&null!==a){switch(a.$$typeof){case S:e:{for(var l=a.key,c=r;null!==c;){if(c.key===l){if(l=a.type,l===j){if(7===c.tag){n(e,c.sibling),r=o(c,a.props.children),r.return=e,e=r;break e}}else if(c.elementType===l||"object"===typeof l&&null!==l&&l.$$typeof===I&&hi(l)===c.type){n(e,c.sibling),r=o(c,a.props),r.ref=di(e,c,a),r.return=e,e=r;break e}n(e,c);break}t(e,c),c=c.sibling}a.type===j?(r=cs(a.props.children,e.mode,i,a.key),r.return=e,e=r):(i=ls(a.type,a.key,a.props,null,e.mode,i),i.ref=di(e,r,a),i.return=e,e=i)}return u(e);case x:e:{for(c=a.key;null!==r;){if(r.key===c){if(4===r.tag&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){n(e,r.sibling),r=o(r,a.children||[]),r.return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}r=ds(a,e.mode,i),r.return=e,e=r}return u(e);case I:return c=a._init,g(e,r,c(a._payload),i)}if(ae(a))return v(e,r,a,i);if(F(a))return m(e,r,a,i);pi(e,a)}return"string"===typeof a&&""!==a||"number"===typeof a?(a=""+a,null!==r&&6===r.tag?(n(e,r.sibling),r=o(r,a),r.return=e,e=r):(n(e,r),r=fs(a,e.mode,i),r.return=e,e=r),u(e)):n(e,r)}return g}var mi=vi(!0),gi=vi(!1),yi={},bi=Ko(yi),wi=Ko(yi),Ei=Ko(yi);function ki(e){if(e===yi)throw Error(a(174));return e}function Oi(e,t){switch(Qo(Ei,t),Qo(wi,e),Qo(bi,yi),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:de(null,"");break;default:e=8===e?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=de(t,e)}qo(bi),Qo(bi,t)}function Si(){qo(bi),qo(wi),qo(Ei)}function xi(e){ki(Ei.current);var t=ki(bi.current),n=de(t,e.type);t!==n&&(Qo(wi,e),Qo(bi,n))}function ji(e){wi.current===e&&(qo(bi),qo(wi))}var Ci=Ko(0);function Ai(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(n=n.dehydrated,null===n||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var _i=[];function Ti(){for(var e=0;e<_i.length;e++)_i[e]._workInProgressVersionPrimary=null;_i.length=0}var Pi=O.ReactCurrentDispatcher,Ri=O.ReactCurrentBatchConfig,Ni=0,Mi=null,Ii=null,Li=null,Di=!1,Fi=!1,zi=0,Ui=0;function Bi(){throw Error(a(321))}function Hi(e,t){if(null===t)return!1;for(var n=0;nn?n:4,e(!0);var r=Ri.transition;Ri.transition={};try{e(!1),t()}finally{At=n,Ri.transition=r}}function yu(){return $i().memoizedState}function bu(e,t,n){var r=Sc(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Eu(e)?ku(t,n):(Ou(e,t,n),n=Oc(),e=xc(e,r,n),null!==e&&Su(e,t,r))}function wu(e,t,n){var r=Sc(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Eu(e))ku(t,o);else{Ou(e,t,o);var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&(a=t.lastRenderedReducer,null!==a))try{var i=t.lastRenderedState,u=a(i,n);if(o.hasEagerState=!0,o.eagerState=u,Cr(u,i))return}catch(l){}n=Oc(),e=xc(e,r,n),null!==e&&Su(e,t,r)}}function Eu(e){var t=e.alternate;return e===Mi||null!==t&&t===Mi}function ku(e,t){Fi=Di=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ou(e,t,n){Cc(e)?(e=t.interleaved,null===e?(n.next=n,null===Sa?Sa=[t]:Sa.push(t)):(n.next=e.next,e.next=n),t.interleaved=n):(e=t.pending,null===e?n.next=n:(n.next=e.next,e.next=n),t.pending=n)}function Su(e,t,n){if(0!==(4194240&n)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ct(e,n)}}var xu={readContext:Oa,useCallback:Bi,useContext:Bi,useEffect:Bi,useImperativeHandle:Bi,useInsertionEffect:Bi,useLayoutEffect:Bi,useMemo:Bi,useReducer:Bi,useRef:Bi,useState:Bi,useDebugValue:Bi,useDeferredValue:Bi,useTransition:Bi,useMutableSource:Bi,useSyncExternalStore:Bi,useId:Bi,unstable_isNewReconciler:!1},ju={readContext:Oa,useCallback:function(e,t){return Wi().memoizedState=[e,void 0===t?null:t],e},useContext:Oa,useEffect:uu,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,au(4194308,4,fu.bind(null,t,e),n)},useLayoutEffect:function(e,t){return au(4194308,4,e,t)},useInsertionEffect:function(e,t){return au(4,2,e,t)},useMemo:function(e,t){var n=Wi();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Wi();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=bu.bind(null,Mi,e),[r.memoizedState,e]},useRef:function(e){var t=Wi();return e={current:e},t.memoizedState=e},useState:nu,useDebugValue:pu,useDeferredValue:function(e){return Wi().memoizedState=e},useTransition:function(){var e=nu(!1),t=e[0];return e=gu.bind(null,e[1]),Wi().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Mi,o=Wi();if(ni){if(void 0===n)throw Error(a(407));n=n()}else{if(n=t(),null===Zl)throw Error(a(349));0!==(30&Ni)||Zi(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,uu(eu.bind(null,r,i,e),[e]),r.flags|=2048,ru(9,Ji.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Wi(),t=Zl.identifierPrefix;if(ni){var n=Qa,r=qa;n=(r&~(1<<32-dt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=zi++,0<\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[Io]=t,e[Lo]=r,Pu(e,t,!1,!1),t.stateNode=e;e:{switch(l=ke(n,r),n){case"dialog":uo("cancel",e),uo("close",e),o=r;break;case"iframe":case"object":case"embed":uo("load",e),o=r;break;case"video":case"audio":for(o=0;ofc&&(t.flags|=128,r=!0,Bu(i,!1),t.lanes=4194304)}else{if(!r)if(e=Ai(l),null!==e){if(t.flags|=128,r=!0,n=e.updateQueue,null!==n&&(t.updateQueue=n,t.flags|=4),Bu(i,!0),null===i.tail&&"hidden"===i.tailMode&&!l.alternate&&!ni)return Hu(t),null}else 2*nt()-i.renderingStartTime>fc&&1073741824!==n&&(t.flags|=128,r=!0,Bu(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(n=i.last,null!==n?n.sibling=l:t.child=l,i.last=l)}return null!==i.tail?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=nt(),t.sibling=null,n=Ci.current,Qo(Ci,r?1&n|2:1&n),t):(Hu(t),null);case 22:case 23:return Dc(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!==(1&t.mode)?0!==(1073741824&tc)&&(Hu(t),6&t.subtreeFlags&&(t.flags|=8192)):Hu(t),null;case 24:return null;case 25:return null}throw Error(a(156,t.tag))}Pu=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ru=function(){},Nu=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,ki(bi.current);var a,i=null;switch(n){case"input":o=J(e,o),r=J(e,r),i=[];break;case"select":o=U({},o,{value:void 0}),r=U({},r,{value:void 0}),i=[];break;case"textarea":o=ue(e,o),r=ue(e,r),i=[];break;default:"function"!==typeof o.onClick&&"function"===typeof r.onClick&&(e.onclick=ko)}for(s in Ee(n,r),n=null,o)if(!r.hasOwnProperty(s)&&o.hasOwnProperty(s)&&null!=o[s])if("style"===s){var l=o[s];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==s&&"children"!==s&&"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(u.hasOwnProperty(s)?i||(i=[]):(i=i||[]).push(s,null));for(s in r){var c=r[s];if(l=null!=o?o[s]:void 0,r.hasOwnProperty(s)&&c!==l&&(null!=c||null!=l))if("style"===s)if(l){for(a in l)!l.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&l[a]!==c[a]&&(n||(n={}),n[a]=c[a])}else n||(i||(i=[]),i.push(s,n)),n=c;else"dangerouslySetInnerHTML"===s?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(i=i||[]).push(s,c)):"children"===s?"string"!==typeof c&&"number"!==typeof c||(i=i||[]).push(s,""+c):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&(u.hasOwnProperty(s)?(null!=c&&"onScroll"===s&&uo("scroll",e),i||l===c||(i=[])):(i=i||[]).push(s,c))}n&&(i=i||[]).push("style",n);var s=i;(t.updateQueue=s)&&(t.flags|=4)}},Mu=function(e,t,n,r){n!==r&&(t.flags|=4)};var Vu=O.ReactCurrentOwner,Wu=!1;function $u(e,t,n,r){t.child=null===e?gi(t,null,n,r):mi(t,e.child,n,r)}function Ku(e,t,n,r,o){n=n.render;var a=t.ref;return ka(t,o),r=Gi(e,t,n,r,a,o),n=Vi(),null===e||Wu?(ni&&n&&Za(t),t.flags|=1,$u(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,hl(e,t,o))}function qu(e,t,n,r,o){if(null===e){var a=n.type;return"function"!==typeof a||as(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?(e=ls(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Qu(e,t,a,r,o))}if(a=e.child,0===(e.lanes&o)){var i=a.memoizedProps;if(n=n.compare,n=null!==n?n:Ar,n(i,r)&&e.ref===t.ref)return hl(e,t,o)}return t.flags|=1,e=us(a,r),e.ref=t.ref,e.return=t,t.child=e}function Qu(e,t,n,r,o){if(null!==e){var a=e.memoizedProps;if(Ar(a,r)&&e.ref===t.ref){if(Wu=!1,t.pendingProps=r=a,0===(e.lanes&o))return t.lanes=e.lanes,hl(e,t,o);0!==(131072&e.flags)&&(Wu=!0)}}return Zu(e,t,n,r,o)}function Yu(e,t,n){var r=t.pendingProps,o=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Qo(nc,tc),tc|=n;else{if(0===(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Qo(nc,tc),tc|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==a?a.baseLanes:n,Qo(nc,tc),tc|=r}else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,Qo(nc,tc),tc|=r;return $u(e,t,o,n),t.child}function Xu(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Zu(e,t,n,r,o){var a=ta(n)?Jo:Xo.current;return a=ea(t,a),ka(t,o),n=Gi(e,t,n,r,a,o),r=Vi(),null===e||Wu?(ni&&r&&Za(t),t.flags|=1,$u(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,hl(e,t,o))}function Ju(e,t,n,r,o){if(ta(n)){var a=!0;aa(t)}else a=!1;if(ka(t,o),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),Fa(t,n,r),Ua(t,n,r,o),r=!0;else if(null===e){var i=t.stateNode,u=t.memoizedProps;i.props=u;var l=i.context,c=n.contextType;"object"===typeof c&&null!==c?c=Oa(c):(c=ta(n)?Jo:Xo.current,c=ea(t,c));var s=n.getDerivedStateFromProps,f="function"===typeof s||"function"===typeof i.getSnapshotBeforeUpdate;f||"function"!==typeof i.UNSAFE_componentWillReceiveProps&&"function"!==typeof i.componentWillReceiveProps||(u!==r||l!==c)&&za(t,i,r,c),xa=!1;var d=t.memoizedState;i.state=d,Ra(t,r,i,o),l=t.memoizedState,u!==r||d!==l||Zo.current||xa?("function"===typeof s&&(Ia(t,n,s,r),l=t.memoizedState),(u=xa||Da(t,n,u,r,d,l,c))?(f||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||("function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"===typeof i.componentDidMount&&(t.flags|=4194308)):("function"===typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),i.props=r,i.state=l,i.context=c,r=u):("function"===typeof i.componentDidMount&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,Ca(e,t),u=t.memoizedProps,c=t.type===t.elementType?u:ha(t.type,u),i.props=c,f=t.pendingProps,d=i.context,l=n.contextType,"object"===typeof l&&null!==l?l=Oa(l):(l=ta(n)?Jo:Xo.current,l=ea(t,l));var p=n.getDerivedStateFromProps;(s="function"===typeof p||"function"===typeof i.getSnapshotBeforeUpdate)||"function"!==typeof i.UNSAFE_componentWillReceiveProps&&"function"!==typeof i.componentWillReceiveProps||(u!==f||d!==l)&&za(t,i,r,l),xa=!1,d=t.memoizedState,i.state=d,Ra(t,r,i,o);var h=t.memoizedState;u!==f||d!==h||Zo.current||xa?("function"===typeof p&&(Ia(t,n,p,r),h=t.memoizedState),(c=xa||Da(t,n,c,r,d,h,l)||!1)?(s||"function"!==typeof i.UNSAFE_componentWillUpdate&&"function"!==typeof i.componentWillUpdate||("function"===typeof i.componentWillUpdate&&i.componentWillUpdate(r,h,l),"function"===typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,h,l)),"function"===typeof i.componentDidUpdate&&(t.flags|=4),"function"===typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof i.componentDidUpdate||u===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!==typeof i.getSnapshotBeforeUpdate||u===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),i.props=r,i.state=h,i.context=l,r=c):("function"!==typeof i.componentDidUpdate||u===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!==typeof i.getSnapshotBeforeUpdate||u===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return el(e,t,n,r,a,o)}function el(e,t,n,r,o,a){Xu(e,t);var i=0!==(128&t.flags);if(!r&&!i)return o&&ia(t,n,!1),hl(e,t,a);r=t.stateNode,Vu.current=t;var u=i&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&i?(t.child=mi(t,e.child,null,a),t.child=mi(t,null,u,a)):$u(e,t,u,a),t.memoizedState=r.state,o&&ia(t,n,!0),t.child}function tl(e){var t=e.stateNode;t.pendingContext?ra(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ra(e,t.context,!1),Oi(e,t.containerInfo)}function nl(e,t,n,r,o){return si(),fi(o),t.flags|=256,$u(e,t,n,r),t.child}var rl={dehydrated:null,treeContext:null,retryLane:0};function ol(e){return{baseLanes:e,cachePool:null,transitions:null}}function al(e,t){return{baseLanes:e.baseLanes|t,cachePool:null,transitions:e.transitions}}function il(e,t,n){var r,o=t.pendingProps,i=Ci.current,u=!1,l=0!==(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!==(2&i)),r?(u=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(i|=1),Qo(Ci,1&i),null===e)return ui(t),e=t.memoizedState,null!==e&&(e=e.dehydrated,null!==e)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(i=o.children,e=o.fallback,u?(o=t.mode,u=t.child,i={mode:"hidden",children:i},0===(1&o)&&null!==u?(u.childLanes=0,u.pendingProps=i):u=ss(i,o,0,null),e=cs(e,o,n,null),u.return=t,e.return=t,u.sibling=e,t.child=u,t.child.memoizedState=ol(n),t.memoizedState=rl,e):ul(t,i));if(i=e.memoizedState,null!==i){if(r=i.dehydrated,null!==r){if(l)return 256&t.flags?(t.flags&=-257,sl(e,t,n,Error(a(422)))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(u=o.fallback,i=t.mode,o=ss({mode:"visible",children:o.children},i,0,null),u=cs(u,i,n,null),u.flags|=2,o.return=t,u.return=t,o.sibling=u,t.child=o,0!==(1&t.mode)&&mi(t,e.child,null,n),t.child.memoizedState=ol(n),t.memoizedState=rl,u);if(0===(1&t.mode))t=sl(e,t,n,null);else if("$!"===r.data)t=sl(e,t,n,Error(a(419)));else if(o=0!==(n&e.childLanes),Wu||o){if(o=Zl,null!==o){switch(n&-n){case 4:u=2;break;case 16:u=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:u=32;break;case 536870912:u=268435456;break;default:u=0}o=0!==(u&(o.suspendedLanes|n))?0:u,0!==o&&o!==i.retryLane&&(i.retryLane=o,xc(e,o,-1))}Bc(),t=sl(e,t,n,Error(a(421)))}else"$?"===r.data?(t.flags|=128,t.child=e.child,t=es.bind(null,e),r._reactRetry=t,t=null):(n=i.treeContext,ti=Ro(r.nextSibling),ei=t,ni=!0,ri=null,null!==n&&(Wa[$a++]=qa,Wa[$a++]=Qa,Wa[$a++]=Ka,qa=n.id,Qa=n.overflow,Ka=t),t=ul(t,t.pendingProps.children),t.flags|=4096);return t}return u?(o=cl(e,t,o.children,o.fallback,n),u=t.child,i=e.child.memoizedState,u.memoizedState=null===i?ol(n):al(i,n),u.childLanes=e.childLanes&~n,t.memoizedState=rl,o):(n=ll(e,t,o.children,n),t.memoizedState=null,n)}return u?(o=cl(e,t,o.children,o.fallback,n),u=t.child,i=e.child.memoizedState,u.memoizedState=null===i?ol(n):al(i,n),u.childLanes=e.childLanes&~n,t.memoizedState=rl,o):(n=ll(e,t,o.children,n),t.memoizedState=null,n)}function ul(e,t){return t=ss({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function ll(e,t,n,r){var o=e.child;return e=o.sibling,n=us(o,{mode:"visible",children:n}),0===(1&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(r=t.deletions,null===r?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n}function cl(e,t,n,r,o){var a=t.mode;e=e.child;var i=e.sibling,u={mode:"hidden",children:n};return 0===(1&a)&&t.child!==e?(n=t.child,n.childLanes=0,n.pendingProps=u,t.deletions=null):(n=us(e,u),n.subtreeFlags=14680064&e.subtreeFlags),null!==i?r=us(i,r):(r=cs(r,a,o,null),r.flags|=2),r.return=t,n.return=t,n.sibling=r,t.child=n,r}function sl(e,t,n,r){return null!==r&&fi(r),mi(t,e.child,null,n),e=ul(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function fl(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Ea(e.return,t,n)}function dl(e,t,n,r,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o)}function pl(e,t,n){var r=t.pendingProps,o=r.revealOrder,a=r.tail;if($u(e,t,r.children,n),r=Ci.current,0!==(2&r))r=1&r|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&fl(e,n,t);else if(19===e.tag)fl(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Qo(Ci,r),0===(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)e=n.alternate,null!==e&&null===Ai(e)&&(o=n),n=n.sibling;n=o,null===n?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),dl(t,!1,o,n,a);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(e=o.alternate,null!==e&&null===Ai(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}dl(t,!0,n,null,a);break;case"together":dl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function hl(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),ac|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(e=t.child,n=us(e,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,n=n.sibling=us(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function vl(e,t,n){switch(t.tag){case 3:tl(t),si();break;case 5:xi(t);break;case 1:ta(t.type)&&aa(t);break;case 4:Oi(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Qo(va,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,null!==r)return null!==r.dehydrated?(Qo(Ci,1&Ci.current),t.flags|=128,null):0!==(n&t.child.childLanes)?il(e,t,n):(Qo(Ci,1&Ci.current),e=hl(e,t,n),null!==e?e.sibling:null);Qo(Ci,1&Ci.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(128&e.flags)){if(r)return pl(e,t,n);t.flags|=128}if(o=t.memoizedState,null!==o&&(o.rendering=null,o.tail=null,o.lastEffect=null),Qo(Ci,Ci.current),r)break;return null;case 22:case 23:return t.lanes=0,Yu(e,t,n)}return hl(e,t,n)}function ml(e,t){switch(Ja(t),t.tag){case 1:return ta(t.type)&&na(),e=t.flags,65536&e?(t.flags=-65537&e|128,t):null;case 3:return Si(),qo(Zo),qo(Xo),Ti(),e=t.flags,0!==(65536&e)&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return ji(t),null;case 13:if(qo(Ci),e=t.memoizedState,null!==e&&null!==e.dehydrated){if(null===t.alternate)throw Error(a(340));si()}return e=t.flags,65536&e?(t.flags=-65537&e|128,t):null;case 19:return qo(Ci),null;case 4:return Si(),null;case 10:return wa(t.type._context),null;case 22:case 23:return Dc(),null;case 24:return null;default:return null}}var gl=!1,yl=!1,bl="function"===typeof WeakSet?WeakSet:Set,wl=null;function El(e,t){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(r){Xc(e,t,r)}else n.current=null}function kl(e,t,n){try{n()}catch(r){Xc(e,t,r)}}var Ol=!1;function Sl(e,t){if(Oo=en,e=Rr(),Nr(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch(k){n=null;break e}var u=0,l=-1,c=-1,s=0,f=0,d=e,p=null;t:for(;;){for(var h;;){if(d!==n||0!==o&&3!==d.nodeType||(l=u+o),d!==i||0!==r&&3!==d.nodeType||(c=u+r),3===d.nodeType&&(u+=d.nodeValue.length),null===(h=d.firstChild))break;p=d,d=h}for(;;){if(d===e)break t;if(p===n&&++s===o&&(l=u),p===i&&++f===r&&(c=u),null!==(h=d.nextSibling))break;d=p,p=d.parentNode}d=h}n=-1===l||-1===c?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(So={focusedElem:e,selectionRange:n},en=!1,wl=t;null!==wl;)if(t=wl,e=t.child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,wl=e;else for(;null!==wl;){t=wl;try{var v=t.alternate;if(0!==(1024&t.flags))switch(t.tag){case 0:case 11:case 15:break;case 1:if(null!==v){var m=v.memoizedProps,g=v.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?m:ha(t.type,m),g);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=t.stateNode.containerInfo;if(1===w.nodeType)w.textContent="";else if(9===w.nodeType){var E=w.body;null!=E&&(E.textContent="")}break;case 5:case 6:case 4:case 17:break;default:throw Error(a(163))}}catch(k){Xc(t,t.return,k)}if(e=t.sibling,null!==e){e.return=t.return,wl=e;break}wl=t.return}return v=Ol,Ol=!1,v}function xl(e,t,n){var r=t.updateQueue;if(r=null!==r?r.lastEffect:null,null!==r){var o=r=r.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,void 0!==a&&kl(t,n,a)}o=o.next}while(o!==r)}}function jl(e,t){if(t=t.updateQueue,t=null!==t?t.lastEffect:null,null!==t){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Cl(e){var t=e.ref;if(null!==t){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}"function"===typeof t?t(e):t.current=e}}function Al(e){var t=e.alternate;null!==t&&(e.alternate=null,Al(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(t=e.stateNode,null!==t&&(delete t[Io],delete t[Lo],delete t[Fo],delete t[zo],delete t[Uo])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function _l(e){return 5===e.tag||3===e.tag||4===e.tag}function Tl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||_l(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function Pl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,null!==n&&void 0!==n||null!==t.onclick||(t.onclick=ko));else if(4!==r&&(e=e.child,null!==e))for(Pl(e,t,n),e=e.sibling;null!==e;)Pl(e,t,n),e=e.sibling}function Rl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&(e=e.child,null!==e))for(Rl(e,t,n),e=e.sibling;null!==e;)Rl(e,t,n),e=e.sibling}var Nl=null,Ml=!1;function Il(e,t,n){for(n=n.child;null!==n;)Ll(e,t,n),n=n.sibling}function Ll(e,t,n){if(st&&"function"===typeof st.onCommitFiberUnmount)try{st.onCommitFiberUnmount(ct,n)}catch(u){}switch(n.tag){case 5:yl||El(n,t);case 6:var r=Nl,o=Ml;Nl=null,Il(e,t,n),Nl=r,Ml=o,null!==Nl&&(Ml?(e=Nl,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):Nl.removeChild(n.stateNode));break;case 18:null!==Nl&&(Ml?(e=Nl,n=n.stateNode,8===e.nodeType?Po(e.parentNode,n):1===e.nodeType&&Po(e,n),Zt(e)):Po(Nl,n.stateNode));break;case 4:r=Nl,o=Ml,Nl=n.stateNode.containerInfo,Ml=!0,Il(e,t,n),Nl=r,Ml=o;break;case 0:case 11:case 14:case 15:if(!yl&&(r=n.updateQueue,null!==r&&(r=r.lastEffect,null!==r))){o=r=r.next;do{var a=o,i=a.destroy;a=a.tag,void 0!==i&&(0!==(2&a)||0!==(4&a))&&kl(n,t,i),o=o.next}while(o!==r)}Il(e,t,n);break;case 1:if(!yl&&(El(n,t),r=n.stateNode,"function"===typeof r.componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){Xc(n,t,u)}Il(e,t,n);break;case 21:Il(e,t,n);break;case 22:1&n.mode?(yl=(r=yl)||null!==n.memoizedState,Il(e,t,n),yl=r):Il(e,t,n);break;default:Il(e,t,n)}}function Dl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new bl),t.forEach((function(t){var r=ts.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function Fl(e,t){var n=t.deletions;if(null!==n)for(var r=0;ro&&(o=u),r&=~i}if(r=o,r=nt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Kl(r/1960))-r,10e?16:e,null===gc)var r=!1;else{if(e=gc,gc=null,yc=0,0!==(6&Xl))throw Error(a(331));var o=Xl;for(Xl|=4,wl=e.current;null!==wl;){var i=wl,u=i.child;if(0!==(16&wl.flags)){var l=i.deletions;if(null!==l){for(var c=0;cnt()-sc?Fc(e,0):uc|=n),Ac(e,t)}function Jc(e,t){0===t&&(0===(1&e.mode)?t=1:(t=gt,gt<<=1,0===(130023424>)&&(gt=4194304)));var n=Oc();e=jc(e,t),null!==e&&(xt(e,t,n),Ac(e,n))}function es(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Jc(e,n)}function ts(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(a(314))}null!==r&&r.delete(t),Jc(e,n)}function ns(e,t){return Ze(e,t)}function rs(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function os(e,t,n,r){return new rs(e,t,n,r)}function as(e){return e=e.prototype,!(!e||!e.isReactComponent)}function is(e){if("function"===typeof e)return as(e)?1:0;if(void 0!==e&&null!==e){if(e=e.$$typeof,e===P)return 11;if(e===M)return 14}return 2}function us(e,t){var n=e.alternate;return null===n?(n=os(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ls(e,t,n,r,o,i){var u=2;if(r=e,"function"===typeof e)as(e)&&(u=1);else if("string"===typeof e)u=5;else e:switch(e){case j:return cs(n.children,o,i,t);case C:u=8,o|=8;break;case A:return e=os(12,n,t,2|o),e.elementType=A,e.lanes=i,e;case R:return e=os(13,n,t,o),e.elementType=R,e.lanes=i,e;case N:return e=os(19,n,t,o),e.elementType=N,e.lanes=i,e;case L:return ss(n,o,i,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case _:u=10;break e;case T:u=9;break e;case P:u=11;break e;case M:u=14;break e;case I:u=16,r=null;break e}throw Error(a(130,null==e?e:typeof e,""))}return t=os(u,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function cs(e,t,n,r){return e=os(7,e,r,t),e.lanes=n,e}function ss(e,t,n,r){return e=os(22,e,r,t),e.elementType=L,e.lanes=n,e.stateNode={},e}function fs(e,t,n){return e=os(6,e,null,t),e.lanes=n,e}function ds(e,t,n){return t=os(4,null!==e.children?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ps(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=St(0),this.expirationTimes=St(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=St(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function hs(e,t,n,r,o,a,i,u,l){return e=new ps(e,t,n,u,l),1===t?(t=1,!0===a&&(t|=8)):t=0,a=os(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ja(a),e}function vs(e,t,n){var r=3n)o[n]=t[n++];return o},$=function(e,t){P(e,t,{get:function(){return _(this)[t]}})},K=function(e){var t;return e instanceof I||"ArrayBuffer"==(t=g(e))||"SharedArrayBuffer"==t},q=function(e,t){return H(e)&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},Q=function(e,t){return q(e,t=v(t,!0))?s(2,e[t]):R(e,t)},Y=function(e,t,n){return!(q(e,t=v(t,!0))&&y(n)&&m(n,"value"))||m(n,"get")||m(n,"set")||n.configurable||m(n,"writable")&&!n.writable||m(n,"enumerable")&&!n.enumerable?P(e,t,n):(e[t]=n.value,e)};a?(D||(j.f=Q,x.f=Y,$(U,"buffer"),$(U,"byteOffset"),$(U,"byteLength"),$(U,"length")),r({target:"Object",stat:!0,forced:!D},{getOwnPropertyDescriptor:Q,defineProperty:Y}),e.exports=function(e,t,n){var a=e.match(/\d+$/)[0]/8,u=e+(n?"Clamped":"")+"Array",l="get"+e,s="set"+e,v=o[u],m=v,g=m&&m.prototype,x={},j=function(e,t){var n=_(e);return n.view[l](t*a+n.byteOffset,!0)},C=function(e,t,r){var o=_(e);n&&(r=(r=N(r))<0?0:r>255?255:255&r),o.view[s](t*a+o.byteOffset,r,!0)},R=function(e,t){P(e,t,{get:function(){return j(this,t)},set:function(e){return C(this,t,e)},enumerable:!0})};D?i&&(m=t((function(e,t,n,r){return c(e,m,u),A(function(){return y(t)?K(t)?void 0!==r?new v(t,h(n,a),r):void 0!==n?new v(t,h(n,a)):new v(t):H(t)?W(m,t):k.call(m,t):new v(p(t))}(),e,m)})),w&&w(m,z),O(E(v),(function(e){e in m||f(m,e,v[e])})),m.prototype=g):(m=t((function(e,t,n,r){c(e,m,u);var o,i,l,s=0,f=0;if(y(t)){if(!K(t))return H(t)?W(m,t):k.call(m,t);o=t,f=h(n,a);var v=t.byteLength;if(void 0===r){if(v%a)throw M(V);if(i=v-f,i<0)throw M(V)}else if(i=d(r)*a,i+f>v)throw M(V);l=i/a}else l=p(t),i=l*a,o=new I(i);T(e,{buffer:o,byteOffset:f,byteLength:i,length:l,view:new L(o)});while(sa)o.push(arguments[a++]);if(r=t,(p(t)||void 0!==e)&&!ue(e))return d(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!ue(t))return t}),o[1]=t,K.apply(null,o)}})}$[B][H]||C($[B],H,$[B].valueOf),L($,U),P[z]=!0},Gkaq:function(e,t,n){"use strict";n.r(t);var r=n("gbKz"),o=n.n(r),a=n("u4Q2"),i=n("xngY"),u=o.a.memo((e=>{e.demos;return o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:"markdown"},o.a.createElement("h1",{id:"quick-start"},o.a.createElement(a["AnchorLink"],{to:"#quick-start","aria-hidden":"true",tabIndex:-1},o.a.createElement("span",{className:"icon icon-link"})),"Quick Start"),o.a.createElement("h2",{id:"create-a-store"},o.a.createElement(a["AnchorLink"],{to:"#create-a-store","aria-hidden":"true",tabIndex:-1},o.a.createElement("span",{className:"icon icon-link"})),"Create a Store"),o.a.createElement("p",null,"In hox, any custom Hook, after being packaged by ",o.a.createElement("code",null,"createStore"),", becomes a persistent state that can be shared between components."),o.a.createElement(i["a"],{code:"import { useState } from 'react'\nimport { createStore } from 'hox'\n\nexport const [useTaskStore, TaskStoreProvider] = createStore(() => {\n const [tasks, setTasks] = useState([])\n\n function addTask(task) {\n setTasks(v => [...v, task])\n }\n\n function finishTask(task) {\n setTasks(v => v.filter(t => t !== task))\n }\n\n return {\n tasks,\n addTask,\n finishTask,\n }\n})",lang:"jsx"}),o.a.createElement("p",null,o.a.createElement("code",null,"createStore")," will return an array with two elements in it, you can deconstruct them through ES6's array destructuring syntax, and take them into names that conform to business logic, such as ",o.a.createElement("code",null,"useTaskStore")," and ",o.a.createElement("code",null,"TaskStoreProvider")," above."),o.a.createElement("p",null,o.a.createElement("code",null,"TaskStoreProvider")," is a state container, and its bottom layer depends on the React Context so you need to inject it into the component tree, for example:"),o.a.createElement(i["a"],{code:"\n
\n \n \n \n \n \n \n \n",lang:"jsx"}),o.a.createElement("p",null,"Next, you can use ",o.a.createElement("code",null,"useTaskStore")," in the ",o.a.createElement("code",null,"TaskList")," component to subscribe and consume data in the store:"),o.a.createElement(i["a"],{code:"function TaskList() {\n const { tasks } = useTaskStore()\n return (\n <>\n {tasks.map(task => (\n \n ))}\n \n )\n}",lang:"jsx"}),o.a.createElement("p",null,"Every time the TaskStore is updated, the TaskList will automatically re-render and get the latest ",o.a.createElement("code",null,"tasks")," data."),o.a.createElement("blockquote",null,o.a.createElement("p",null,o.a.createElement("code",null,"useStore")," is a React Hook, so please follow React's ",o.a.createElement(a["Link"],{to:"https://reactjs.org/docs/hooks-rules.html"},"rules of hooks")," when using it.")),o.a.createElement("p",null,"We recommend names like ",o.a.createElement("code",null,"useXxxStore")," and ",o.a.createElement("code",null,"XxxStoreProvider")," because they are more explicit, but if you think they are too long, consider abbreviating them to ",o.a.createElement("code",null,"useXxx")," and ",o.a.createElement("code",null,"XxxProvider"),"."),o.a.createElement("h2",{id:"the-context-and-multiple-instances-of-store"},o.a.createElement(a["AnchorLink"],{to:"#the-context-and-multiple-instances-of-store","aria-hidden":"true",tabIndex:-1},o.a.createElement("span",{className:"icon icon-link"})),"The Context and Multiple Instances of Store"),o.a.createElement("p",null,"It should be noted that only the internal nodes of ",o.a.createElement("code",null,"CounterStoreProvider")," can get its context, so ",o.a.createElement("code",null,"useTaskStore")," cannot be called in the ",o.a.createElement("code",null,"Header")," component. If you are familiar with React's Context feature, this is well understood."),o.a.createElement(i["a"],{code:"\n
\n \n ...\n \n",lang:"jsx"}),o.a.createElement("p",null,"Each time a ",o.a.createElement("code",null,"TaskStoreProvider")," is rendered, a corresponding store instance will be created. Based on this feature, you can render multiple StoreProviders on the page to achieve multiple instances, and automatically obtain them in the child node components according to the context of the Context To the corresponding store instance:"),o.a.createElement(i["a"],{code:"\n \n ...\n \n\n\n \n ...\n \n",lang:"jsx"}),o.a.createElement("p",null,"Between different StoreProvider instances, the data is completely independent and isolated, just like multiple instances of the same React component."),o.a.createElement("p",null,"You can even render another ",o.a.createElement("code",null,"TaskStoreProvider")," in the ",o.a.createElement("code",null,"TaskStoreProvider")," child node. According to the characteristics of the Context, the ",o.a.createElement("code",null,"TaskList")," component will automatically find the nearest parent Provider:"),o.a.createElement(i["a"],{code:"\n ...\n \n ...\n \n",lang:"jsx"}),o.a.createElement("p",null,"Of course, this is generally not necessary."),o.a.createElement("h2",{id:"the-dependencies-between-stores"},o.a.createElement(a["AnchorLink"],{to:"#the-dependencies-between-stores","aria-hidden":"true",tabIndex:-1},o.a.createElement("span",{className:"icon icon-link"})),"The Dependencies Between Stores"),o.a.createElement("p",null,"Although you can still design the store according to the traditional single data source idea, we recommend splitting the store into multiple small parts, so it is inevitable that we need to deal with dependencies between multiple stores, such as tasks The list module ",o.a.createElement("code",null,"task")," depends on the account module ",o.a.createElement("code",null,"account"),"."),o.a.createElement("p",null,"In hox, handling dependencies between modules is simple and natural: you can use ",o.a.createElement("code",null,"useXXXStore")," directly in one store to fetch another store and subscribe to its updates, just as you would in a component."),o.a.createElement("blockquote",null,o.a.createElement("p",null,"Warning: Beware of circular dependencies!")),o.a.createElement(i["a"],{code:"import { useAccountStore } from './account-store'\n\nexport const [useTaskStore, TaskStoreProvider] = createStore(() => {\n // ...\n const { user } = useAccountStore()\n\n function addTask(taskName) {\n setTasks(v => [\n ...v,\n {\n name: taskName,\n assignee: user.id,\n },\n ])\n }\n\n // ...\n})",lang:"jsx"}),o.a.createElement("h2",{id:"global-store"},o.a.createElement(a["AnchorLink"],{to:"#global-store","aria-hidden":"true",tabIndex:-1},o.a.createElement("span",{className:"icon icon-link"})),"Global Store"),o.a.createElement("p",null,"In fact, not all stores need to have a scope and need to support multiple instances. In a real project, most stores may be global, and if you manually add StoreProvider every time, you may feel collapse:"),o.a.createElement(i["a"],{code:"\n \n \n \n \n \n \n \n",lang:"jsx"}),o.a.createElement("p",null,"Therefore, hox provides another type of store: the global store."),o.a.createElement("p",null,"You can create a global ",o.a.createElement("code",null,"store")," with ",o.a.createElement("code",null,"createGlobalStore"),":"),o.a.createElement(i["a"],{code:"import { createGlobalStore } from 'hox'\n\nconst [useAccountStore, getAccountStore] = createGlobalStore(() => {\n // ...\n})",lang:"js"}),o.a.createElement("p",null,"Like ",o.a.createElement("code",null,"createStore"),", ",o.a.createElement("code",null,"createGlobalStore")," returns an array:"),o.a.createElement("p",null,"The first element is the Hook function used to subscribe to the store. Its usage will not be introduced here, it is the same as the ordinary store."),o.a.createElement("p",null,"The second element is somewhat different. It is a static getter function ",o.a.createElement("code",null,"getXxxStore"),", which will be sold here first, and will be introduced in detail below."),o.a.createElement("p",null,"It can be found that there is no corresponding StoreProvider component for the global store, so you do not need to manually add a layer of Provider every time you create a store. However, in order for the global store to register properly, you need to wrap the entire React application with ",o.a.createElement("code",null,"HoxRoot")," in the outermost layer:"),o.a.createElement(i["a"],{code:"import { HoxRoot } from 'hox'\n\nReactDOM.render(\n \n \n ,\n domContainer\n)",lang:"jsx"}),o.a.createElement("p",null,"You can think of ",o.a.createElement("code",null,"HoxRoot")," as a unified StoreProvider for all global stores, through which all global stores can be registered at one time."),o.a.createElement("p",null,"Going back to the ",o.a.createElement("code",null,"getXxxStore")," function just mentioned, its function is to read the current latest value of the store at one time without triggering a continuous subscription, because it is not a Hook, so it does not need to be in the React component rendering function call, you can call it anywhere, anytime:"),o.a.createElement(i["a"],{code:"export function log(message) {\n const { user } = getAccountStore()\n report.requestApi({\n message,\n userId: user.id,\n })\n}",lang:"js"})))}));t["default"]=e=>{var t=o.a.useContext(a["context"]),n=t.demos;return o.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&a["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),o.a.createElement(u,{demos:n})}},GnHn:function(e,t,n){"use strict";var r=n("QkOx"),o=n("sErw"),a=n("z43i"),i=n("1wx2"),u=n("OR72");r("search",1,(function(e,t,n){return[function(t){var n=a(this),r=void 0==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var a=o(e),l=String(this),c=a.lastIndex;i(c,0)||(a.lastIndex=0);var s=u(a,l);return i(a.lastIndex,c)||(a.lastIndex=c),null===s?-1:s.index}]}))},"Grh/":function(e,t){(function(t){e.exports=function(){var e={311:function(e){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}}},n={};function r(t){if(n[t])return n[t].exports;var o=n[t]={exports:{}},a=!0;try{e[t](o,o.exports,r),a=!1}finally{a&&delete n[t]}return o.exports}return r.ab=t+"/",r(311)}()}).call(this,"/")},Gs6S:function(e,t,n){"use strict";var r=n("OOCw"),o=n("qyeh"),a=n("sErw"),i=n("R8Xy"),u=n("uZx/");r({target:"Set",proto:!0,real:!0,forced:o},{join:function(e){var t=a(this),n=i(t),r=void 0===e?",":String(e),o=[];return u(n,o.push,o,!1,!0),o.join(r)}})},Gtcz:function(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,"a",(function(){return r}))},HAS1:function(e,t,n){"use strict";function r(){return!("undefined"===typeof window||!window.document||!window.document.createElement)}n.d(t,"a",(function(){return r}))},HRbj:function(e,t,n){"use strict";var r=n("lkgX"),o=n("v3z7"),a=n("uZx/");e.exports=function(e){var t,n,i,u,l=arguments.length,c=l>1?arguments[1]:void 0;return r(this),t=void 0!==c,t&&r(c),void 0==e?new this:(n=[],t?(i=0,u=o(c,l>2?arguments[2]:void 0,2),a(e,(function(e){n.push(u(e,i++))}))):a(e,n.push,n),new this(n))}},HU7W:function(e,t){function n(e,t){return null==e?void 0:e[t]}e.exports=n},HVkW:function(e,t,n){"use strict";var r=n("OOCw"),o=n("r+6h"),a=n("ct0+"),i=n("lkgX"),u=n("sErw"),l=n("x+sk"),c=n("CZSf"),s=n("0JbB").f,f=n("MZA9"),d=n("TxBV"),p=n("mxPn"),h=n("uZx/"),v=n("Cqy2"),m=n("3Hes"),g=n("uJNS"),y=m("observable"),b=g.get,w=g.set,E=function(e){return null==e?void 0:i(e)},k=function(e){var t=e.cleanup;if(t){e.cleanup=void 0;try{t()}catch(n){v(n)}}},O=function(e){return void 0===e.observer},S=function(e,t){if(!o){e.closed=!0;var n=t.subscriptionObserver;n&&(n.closed=!0)}t.observer=void 0},x=function(e,t){var n,r=w(this,{cleanup:void 0,observer:u(e),subscriptionObserver:void 0});o||(this.closed=!1);try{(n=E(e.start))&&n.call(e,this)}catch(s){v(s)}if(!O(r)){var a=r.subscriptionObserver=new j(this);try{var l=t(a),c=l;null!=l&&(r.cleanup="function"===typeof l.unsubscribe?function(){c.unsubscribe()}:i(l))}catch(s){return void a.error(s)}O(r)&&k(r)}};x.prototype=d({},{unsubscribe:function(){var e=b(this);O(e)||(S(this,e),k(e))}}),o&&s(x.prototype,"closed",{configurable:!0,get:function(){return O(b(this))}});var j=function(e){w(this,{subscription:e}),o||(this.closed=!1)};j.prototype=d({},{next:function(e){var t=b(b(this).subscription);if(!O(t)){var n=t.observer;try{var r=E(n.next);r&&r.call(n,e)}catch(o){v(o)}}},error:function(e){var t=b(this).subscription,n=b(t);if(!O(n)){var r=n.observer;S(t,n);try{var o=E(r.error);o?o.call(r,e):v(e)}catch(a){v(a)}k(n)}},complete:function(){var e=b(this).subscription,t=b(e);if(!O(t)){var n=t.observer;S(e,t);try{var r=E(n.complete);r&&r.call(n)}catch(o){v(o)}k(t)}}}),o&&s(j.prototype,"closed",{configurable:!0,get:function(){return O(b(b(this).subscription))}});var C=function(e){c(this,C,"Observable"),w(this,{subscriber:i(e)})};d(C.prototype,{subscribe:function(e){var t=arguments.length;return new x("function"===typeof e?{next:e,error:t>1?arguments[1]:void 0,complete:t>2?arguments[2]:void 0}:l(e)?e:{},b(this).subscriber)}}),d(C,{from:function(e){var t="function"===typeof this?this:C,n=E(u(e)[y]);if(n){var r=u(n.call(e));return r.constructor===t?r:new t((function(e){return r.subscribe(e)}))}var o=p(e);return new t((function(e){h(o,(function(t){if(e.next(t),e.closed)return h.stop()}),void 0,!1,!0),e.complete()}))},of:function(){var e="function"===typeof this?this:C,t=arguments.length,n=new Array(t),r=0;while(r>>0,a=t>>>0,i=n>>>0;return a-(r>>>0)-((~o&i|~(o^i)&o-i>>>0)>>>31)|0}})},Hy9b:function(e,t,n){var r=n("h+/6"),o=n("3Hes"),a=n("qyeh"),i=o("iterator");e.exports=!r((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach((function(e,r){t["delete"]("b"),n+=r+e})),a&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[i]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://\u0442\u0435\u0441\u0442").host||"#%D0%B1"!==new URL("http://a#\u0431").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},HznY:function(e,t,n){"use strict";var r=n("g0pg"),o=n("YfbA").includes,a=r.aTypedArray,i=r.exportTypedArrayMethod;i("includes",(function(e){return o(a(this),e,arguments.length>1?arguments[1]:void 0)}))},I99e:function(e,t,n){var r=n("O4yA"),o=r["__core-js_shared__"];e.exports=o},IRsw:function(e,t,n){},IYc2:function(e,t,n){var r=n("Wbhx"),o=n("51zF"),a=n("XXwF"),i=n("S4pK");function u(e,t){return r(e)||o(e,t)||a(e,t)||i()}e.exports=u},"IuL+":function(e,t,n){var r=n("PORw"),o=n("VJj2"),a=n("lf6h"),i="[object Arguments]",u="[object Array]",l="[object Boolean]",c="[object Date]",s="[object Error]",f="[object Function]",d="[object Map]",p="[object Number]",h="[object Object]",v="[object RegExp]",m="[object Set]",g="[object String]",y="[object WeakMap]",b="[object ArrayBuffer]",w="[object DataView]",E="[object Float32Array]",k="[object Float64Array]",O="[object Int8Array]",S="[object Int16Array]",x="[object Int32Array]",j="[object Uint8Array]",C="[object Uint8ClampedArray]",A="[object Uint16Array]",_="[object Uint32Array]",T={};function P(e){return a(e)&&o(e.length)&&!!T[r(e)]}T[E]=T[k]=T[O]=T[S]=T[x]=T[j]=T[C]=T[A]=T[_]=!0,T[i]=T[u]=T[b]=T[l]=T[w]=T[c]=T[s]=T[f]=T[d]=T[p]=T[h]=T[v]=T[m]=T[g]=T[y]=!1,e.exports=P},"J+8q":function(e,t,n){"use strict";n.r(t);var r=n("gbKz"),o=n.n(r),a=n("u4Q2"),i=n("9kvl"),u=(n("rjwW"),function(e){var t=e.location,n=Object(r["useContext"])(a["context"]),u=n.base,l=n.locale,c=n.config.locales,s=c.find((function(e){var t=e.name;return t!==l}));function f(e){var n=u.replace("/".concat(l),""),r=t.pathname.replace(new RegExp("^".concat(u,"(/|$)")),"".concat(n,"$1"))||"/";if(e!==c[0].name){var o="".concat(n,"/").concat(e).replace(/\/\//,"/"),a=t.pathname.replace(u.replace(/^\/$/,"//"),"");return"".concat(o).concat(a).replace(/\/$/,"")}return r}return s?o.a.createElement("div",{className:"__dumi-default-locale-select","data-locale-count":c.length},c.length>2?o.a.createElement("select",{value:l,onChange:function(e){return i["a"].push(f(e.target.value))}},c.map((function(e){return o.a.createElement("option",{value:e.name,key:e.name},e.label)}))):o.a.createElement(a["Link"],{to:f(s.name)},s.label)):null}),l=u,c=(n("k0+P"),function(e){var t=e.onMobileMenuClick,n=e.navPrefix,i=e.location,u=e.darkPrefix,c=Object(r["useContext"])(a["context"]),s=c.base,f=c.config,d=f.mode,p=f.title,h=f.logo,v=c.nav;return o.a.createElement("div",{className:"__dumi-default-navbar","data-mode":d},o.a.createElement("button",{className:"__dumi-default-navbar-toggle",onClick:t}),o.a.createElement(a["Link"],{className:"__dumi-default-navbar-logo",style:{backgroundImage:h&&"url('".concat(h,"')")},to:s,"data-plaintext":!1===h||void 0},p),o.a.createElement("nav",null,n,v.map((function(e){var t,n=Boolean(null===(t=e.children)||void 0===t?void 0:t.length)&&o.a.createElement("ul",null,e.children.map((function(e){return o.a.createElement("li",{key:e.path},o.a.createElement(a["NavLink"],{to:e.path},e.title))})));return o.a.createElement("span",{key:e.title||e.path},e.path?o.a.createElement(a["NavLink"],{to:e.path,key:e.path},e.title):e.title,n)})),o.a.createElement("div",{className:"__dumi-default-navbar-tool"},o.a.createElement(l,{location:i}),u)))}),s=c,f=(n("4XhD"),["slugs"]);function d(){return d=Object.assign||function(e){for(var t=1;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function h(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}var v=function(e){var t=e.slugs,n=p(e,f);return o.a.createElement("ul",d({role:"slug-list"},n),t.filter((function(e){var t=e.depth;return t>1&&t<4})).map((function(e){return o.a.createElement("li",{key:e.heading,title:e.value,"data-depth":e.depth},o.a.createElement(a["AnchorLink"],{to:"#".concat(e.heading)},o.a.createElement("span",null,e.value)))})))},m=v,g=(n("hEAb"),function(e){var t=e.mobileMenuCollapsed,n=e.location,i=e.darkPrefix,u=Object(r["useContext"])(a["context"]),c=u.config,s=c.logo,f=c.title,d=c.description,p=c.mode,h=c.repository.url,v=u.menu,g=u.nav,y=u.base,b=u.meta,w=Boolean((b.hero||b.features||b.gapless)&&"site"===p)||!1===b.sidemenu||void 0;return o.a.createElement("div",{className:"__dumi-default-menu","data-mode":p,"data-hidden":w,"data-mobile-show":!t||void 0},o.a.createElement("div",{className:"__dumi-default-menu-inner"},o.a.createElement("div",{className:"__dumi-default-menu-header"},o.a.createElement(a["Link"],{to:y,className:"__dumi-default-menu-logo",style:{backgroundImage:s&&"url('".concat(s,"')")}}),o.a.createElement("h1",null,f),o.a.createElement("p",null,d),/github\.com/.test(h)&&"doc"===p&&o.a.createElement("p",null,o.a.createElement("object",{type:"image/svg+xml",data:"https://img.shields.io/github/stars".concat(h.match(/((\/[^\/]+){2})$/)[1],"?style=social")}))),o.a.createElement("div",{className:"__dumi-default-menu-mobile-area"},!!g.length&&o.a.createElement("ul",{className:"__dumi-default-menu-nav-list"},g.map((function(e){var t,n=Boolean(null===(t=e.children)||void 0===t?void 0:t.length)&&o.a.createElement("ul",null,e.children.map((function(e){return o.a.createElement("li",{key:e.path||e.title},o.a.createElement(a["NavLink"],{to:e.path},e.title))})));return o.a.createElement("li",{key:e.path||e.title},e.path?o.a.createElement(a["NavLink"],{to:e.path},e.title):e.title,n)}))),o.a.createElement(l,{location:n}),i),o.a.createElement("ul",{className:"__dumi-default-menu-list"},!w&&v.map((function(e){var t,r=Boolean(null===(t=b.slugs)||void 0===t?void 0:t.length),i=e.children&&Boolean(e.children.length),u="menu"===b.toc&&!i&&r&&e.path===n.pathname.replace(/([^^])\/$/,"$1"),l=i?e.children.map((function(e){return e.path})):[e.path,n.pathname.startsWith("".concat(e.path,"/"))&&b.title===e.title?n.pathname:null];return o.a.createElement("li",{key:e.path||e.title},o.a.createElement(a["NavLink"],{to:e.path,isActive:function(){return l.includes(n.pathname)}},e.title),Boolean(e.children&&e.children.length)&&o.a.createElement("ul",null,e.children.map((function(e){return o.a.createElement("li",{key:e.path},o.a.createElement(a["NavLink"],{to:e.path,exact:!0},o.a.createElement("span",null,e.title)),Boolean("menu"===b.toc&&"undefined"!==typeof window&&e.path===n.pathname&&r)&&o.a.createElement(m,{slugs:b.slugs}))}))),u&&o.a.createElement(m,{slugs:b.slugs}))})))))}),y=g;n("woFt");function b(){return b=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&c.map((function(e){var t;return o.a.createElement("li",{key:e.path,onClick:function(){return i("")}},o.a.createElement(a["AnchorLink"],{to:e.path},(null===(t=e.parent)||void 0===t?void 0:t.title)&&o.a.createElement("span",null,e.parent.title),j(n,e.title)))})),0===c.length&&n&&o.a.createElement("li",{style:{textAlign:"center"}},p)))};n("5wpY");function A(e,t){return N(e)||R(e,t)||T(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 T(e,t){if(e){if("string"===typeof e)return P(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(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?P(e,t):void 0}}function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?arguments[1]:void 0),t}})},KEOO:function(e,t,n){"use strict";var r=n("IYc2");function o(){var e=n("gbKz");return o=function(){return e},e}function a(){var e=i(n("1KG/"));return a=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}function u(e,t){return d(e)||f(e,t)||c(e,t)||l()}function l(){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 c(e,t){if(e){if("string"===typeof e)return s(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(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n'},o[l]={content:"/**\n* This is an auto-generated demo by dumi\n* if you think it is not working as expected,\n* please report the issue at\n* https://github.com/umijs/dumi/issues\n**/\n\nimport React from 'react';\nimport ReactDOM from 'react-dom';\n".concat(i.map((function(e){var t=e.css;return"import '".concat(t,"';")})).join("\n"),"\nimport App from './App';\n\nReactDOM.render(\n ,\n document.getElementById('root'),\n);")},Object.entries(e.sources).forEach((function(e){var t=r(e,2),n=t[0],a=t[1],i=a.tsx,l=a.jsx,c=a.content;o["_"===n?u:n]={content:i||l||c}})),h({files:o})}var g=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p,n=(0,o().useState)(),r=u(n,2),a=r[0],i=r[1];return(0,o().useEffect)((function(){if(e){var n=document.createElement("form"),r=document.createElement("input"),o=m(e);return n.method="POST",n.target="_blank",n.style.display="none",n.action=t,n.appendChild(r),n.setAttribute("data-demo",e.title||""),r.name="parameters",r.value=o,document.body.appendChild(n),i((function(){return function(){return n.submit()}})),function(){return n.remove()}}}),[e]),a};t["default"]=g},KSsz:function(e,t){function n(e){return this.__data__.has(e)}e.exports=n},KTM1:function(e,t,n){var r=n("OOCw"),o=n("HRbj");r({target:"Set",stat:!0},{from:o})},KUb8:function(e,t,n){"use strict";var r=n("OOCw"),o=n("qyeh"),a=n("sErw"),i=n("QHn5"),u=n("uZx/");r({target:"Map",proto:!0,real:!0,forced:o},{keyOf:function(e){return u(i(a(this)),(function(t,n){if(n===e)return u.stop(t)}),void 0,!0,!0).result}})},"KUi+":function(e,t,n){"use strict";var r=n("sErw"),o=n("JSMs");e.exports=function(e){if("string"!==e&&"number"!==e&&"default"!==e)throw TypeError("Incorrect hint");return o(r(this),"number"!==e)}},KZF9:function(e,t,n){var r=n("4uZn"),o=n("oEsY"),a=n("2Roc"),i=n("0JbB").f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});o(t,e)||i(t,e,{value:a.f(e)})}},KZPF:function(e,t,n){var r=n("OOCw"),o=n("SlEr"),a=n("1Sp3"),i=n("sErw"),u=n("zesz"),l=n("uZx/"),c=a.keys,s=a.toKey,f=function(e){var t=[];return l(e,t.push,t),t},d=function(e,t){var n=c(e,t),r=u(e);if(null===r)return n;var a=d(r,t);return a.length?n.length?f(new o(n.concat(a))):a:n};r({target:"Reflect",stat:!0},{getMetadataKeys:function(e){var t=arguments.length<2?void 0:s(arguments[1]);return d(i(e),t)}})},Kb0w:function(e,t,n){"use strict";var r=n("IYc2");function o(){var e=n("gbKz");return o=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var a=i(n("bDK3"));function i(e){return e&&e.__esModule?e:{default:e}}function u(e,t){return d(e)||f(e,t)||c(e,t)||l()}function l(){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 c(e,t){if(e){if("string"===typeof e)return s(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(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n{e.demos;return o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:"markdown"},o.a.createElement("h1",{id:"\u5728\u7c7b\u7ec4\u4ef6\u4e2d\u4f7f\u7528"},o.a.createElement(a["AnchorLink"],{to:"#\u5728\u7c7b\u7ec4\u4ef6\u4e2d\u4f7f\u7528","aria-hidden":"true",tabIndex:-1},o.a.createElement("span",{className:"icon icon-link"})),"\u5728\u7c7b\u7ec4\u4ef6\u4e2d\u4f7f\u7528"),o.a.createElement("p",null,"\u867d\u7136 store \u662f\u4f7f\u7528\u7684 Hooks \u8bed\u6cd5\uff0c\u4f46\u4f60\u4ecd\u7136\u53ef\u4ee5\u5728\u7c7b\u7ec4\u4ef6\u4e2d\u83b7\u53d6\u548c\u8ba2\u9605 store\uff0c\u8fd9\u4f9d\u8d56\u4e86 hox \u63d0\u4f9b\u7684 ",o.a.createElement("code",null,"withStore")," \u9ad8\u9636\u7ec4\u4ef6\uff1a"),o.a.createElement(i["a"],{code:"class App extends Component {\n render() {\n const { counter } = this.props\n\n return (\n
\n

{counter.count}

\n \n
\n )\n }\n}\n\nexport default withStore(useCounterStore, counter => ({\n counter,\n}))(App)",lang:"jsx"}),o.a.createElement("p",null,o.a.createElement("code",null,"withStore")," \u7528\u6765\u5728\u7c7b\u7ec4\u4ef6\u4e2d\u4f7f\u7528 store \uff0c\u5b83\u7684\u7528\u6cd5\u7c7b\u4f3c\u4e8e react-redux \u4e2d\u7684 ",o.a.createElement("code",null,"connect")," \u3002"),o.a.createElement("p",null,"\u7b2c\u4e00\u4e2a\u53c2\u6570 ",o.a.createElement("code",null,"useStore")," \u7528\u6765\u63cf\u8ff0\u9700\u8981\u83b7\u53d6\u54ea\u4e9b store \uff0c\u53ef\u4ee5\u53ea\u4f20\u5165\u4e00\u4e2a ",o.a.createElement("code",null,"useStore")," \uff0c\u4e5f\u53ef\u4ee5\u4ee5\u6570\u7ec4\u7684\u5f62\u5f0f\u4f20\u5165\u591a\u4e2a\u3002"),o.a.createElement("p",null,"\u7b2c\u4e8c\u4e2a\u53c2\u6570 ",o.a.createElement("code",null,"mapStoreToProps")," \u7528\u6765\u5b9a\u4e49 store \u5230\u7ec4\u4ef6 ",o.a.createElement("code",null,"props")," \u7684\u6620\u5c04\u89c4\u5219\u3002"),o.a.createElement(i["a"],{code:"declare function withStore(\n useStore,\n mapStoreToProps: (store, ownProps) => object\n): (C: ComponentType) => ComponentType\n\ntype StoreMap = {\n [key: string]: unknown\n}",lang:"typescript"}),o.a.createElement("p",null,"\u793a\u4f8b\uff1a"),o.a.createElement(i["a"],{code:"// \u8ba2\u9605\u5355\u4e2a store\nexport default withStore(useCounterStore, counter => ({\n count: counter.count\n}))(App)\n\n// \u8ba2\u9605\u591a\u4e2a store\nexport default withStore(\n [useCounterStore, useTimerStore],\n ([counter, timer]) => ({\n count: counter.count,\n timer\n })\n)(App)",lang:"js"})))}));t["default"]=e=>{var t=o.a.useContext(a["context"]),n=t.demos;return o.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&a["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),o.a.createElement(u,{demos:n})}},KgcE:function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)}},Kk74:function(e,t,n){var r=n("OOCw"),o=n("1Sp3"),a=n("sErw"),i=o.get,u=o.toKey;r({target:"Reflect",stat:!0},{getOwnMetadata:function(e,t){var n=arguments.length<3?void 0:u(arguments[2]);return i(e,a(t),n)}})},KuRq:function(e,t,n){var r=n("6SQG"),o=n("nBeg");o(r.JSON,"JSON",!0)},LGux:function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}function o(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,u=!1;try{for(n=n.call(e);!(i=(r=n.next()).done);i=!0)if(a.push(r.value),t&&a.length===t)break}catch(l){u=!0,o=l}finally{try{i||null==n["return"]||n["return"]()}finally{if(u)throw o}}return a}}n.d(t,"a",(function(){return u}));var a=n("u6jA");function i(){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(e,t){return r(e)||o(e,t)||Object(a["a"])(e,t)||i()}},LS9I:function(e,t){(function(t){e.exports=function(){var e={873:function(e){var t;t=function(){return this}();try{t=t||new Function("return this")()}catch(n){"object"===typeof window&&(t=window)}e.exports=t}},n={};function r(t){if(n[t])return n[t].exports;var o=n[t]={exports:{}},a=!0;try{e[t](o,o.exports,r),a=!1}finally{a&&delete n[t]}return o.exports}return r.ab=t+"/",r(873)}()}).call(this,"/")},"M+Sl":function(e,t,n){var r=n("v3z7"),o=n("MdxV"),a=n("OdMF"),i=n("upgS"),u=n("63eO"),l=[].push,c=function(e){var t=1==e,n=2==e,c=3==e,s=4==e,f=6==e,d=5==e||f;return function(p,h,v,m){for(var g,y,b=a(p),w=o(b),E=r(h,v,3),k=i(w.length),O=0,S=m||u,x=t?S(p,k):n?S(p,0):void 0;k>O;O++)if((d||O in w)&&(g=w[O],y=E(g,O,b),e))if(t)x[O]=y;else if(y)switch(e){case 3:return!0;case 5:return g;case 6:return O;case 2:l.call(x,g)}else if(s)return!1;return f?-1:c||s?s:x}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6)}},"M/TJ":function(e,t,n){"use strict";n.r(t),n.d(t,"matchRoutes",(function(){return u})),n.d(t,"renderRoutes",(function(){return l}));var r=n("Bm2L"),o=n("UabQ"),a=n("gbKz"),i=n.n(a);function u(e,t,n){return void 0===n&&(n=[]),e.some((function(e){var o=e.path?Object(r["i"])(t,e):n.length?n[n.length-1].match:r["e"].computeRootMatch(t);return o&&(n.push({route:e,match:o}),e.routes&&u(e.routes,t,n)),o})),n}function l(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),e?i.a.createElement(r["g"],n,e.map((function(e,n){return i.a.createElement(r["d"],{key:e.key||n,path:e.path,exact:e.exact,strict:e.strict,render:function(n){return e.render?e.render(Object(o["a"])({},n,{},t,{route:e})):i.a.createElement(e.component,Object(o["a"])({},n,t,{route:e}))}})}))):null}},M2ND:function(e,t,n){"use strict";var r=n("vfR7").charAt,o=n("uJNS"),a=n("vSpU"),i="String Iterator",u=o.set,l=o.getterFor(i);a(String,"String",(function(e){u(this,{type:i,string:String(e),index:0})}),(function(){var e,t=l(this),n=t.string,o=t.index;return o>=n.length?{value:void 0,done:!0}:(e=r(n,o),t.index+=e.length,{value:e,done:!1})}))},M5mG:function(e,t,n){var r=n("6SQG"),o=n("mVlO"),a=n("0pkz"),i=n("MZA9"),u=n("3Hes"),l=u("iterator"),c=u("toStringTag"),s=a.values;for(var f in o){var d=r[f],p=d&&d.prototype;if(p){if(p[l]!==s)try{i(p,l,s)}catch(v){p[l]=s}if(p[c]||i(p,c,f),o[f])for(var h in a)if(p[h]!==a[h])try{i(p,h,a[h])}catch(v){p[h]=a[h]}}}},M9kN:function(e,t,n){var r=n("ry6q"),o=n("GQDD"),a=n("67Yi"),i=200;function u(e,t){var n=this.__data__;if(n instanceof r){var u=n.__data__;if(!o||u.lengthe.length)&&(t=e.length);for(var n=0,r=new Array(t);n128||n===e.anchors.length-1})),n=this.anchors[Math.max(0,t-1)],r=n.parentElement.id;this.listeners.forEach((function(e){return e(r)}))}},{key:"watch",value:function(e){0===this.anchors.length&&"undefined"!==typeof window&&window.addEventListener("scroll",this.listener),this.anchors.push(e),this.listener()}},{key:"unwatch",value:function(e){this.anchors.splice(this.anchors.findIndex((function(t){return t===e})),1),0===this.anchors.length&&"undefined"!==typeof window&&window.removeEventListener("scroll",this.listener)}},{key:"listen",value:function(e){this.listeners.push(e)}},{key:"unlisten",value:function(e){this.listeners.splice(this.listeners.findIndex((function(t){return t===e})),1)}}]),e}());function E(e){return e.offsetTop+(e.offsetParent?E(e.offsetParent):0)}var k=function e(t){var n,r=(null===(n=t.to.match(/(#[^&?]*)/))||void 0===n?void 0:n[1])||"",i=(0,o.useRef)(null),u=(0,o.useState)(!1),l=f(u,2),c=l[0],d=l[1];return(0,o.useEffect)((function(){var e,t;if(["H1","H2","H3"].includes(null===(e=i.current)||void 0===e||null===(t=e.parentElement)||void 0===t?void 0:t.tagName)&&i.current.parentElement.id){var n=i.current;return w.watch(n),function(){w.unwatch(n)}}var o=function(e){d(r==="#".concat(e))};return w.listen(o),function(){return w.unlisten(o)}}),[]),o["default"].createElement(a.NavLink,s({},t,{ref:i,onClick:function(){return e.scrollToAnchor(r.substring(1))},isActive:function(){return c}}))};k.scrollToAnchor=function(e){window.requestAnimationFrame((function(){var t=document.getElementById(decodeURIComponent(e));t&&window.scrollTo(0,E(t)-100)}))};var O=k;t["default"]=O},MTV7:function(e,t,n){var r=n("OOCw"),o=n("r+6h"),a=n("yJKb"),i=n("684d"),u=n("6ssM"),l=n("tmip");r({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(e){var t,n,r=i(e),o=u.f,c=a(r),s={},f=0;while(c.length>f)n=o(r,t=c[f++]),void 0!==n&&l(s,t,n);return s}})},MULs:function(e,t,n){var r=n("Zjmp"),o=n("RtFG"),a=n("0zpI"),i=n("NRXl"),u=n("Vc2o"),l=n("eoSM"),c=n("Zsrj"),s=n("GC0I"),f=1,d="[object Arguments]",p="[object Array]",h="[object Object]",v=Object.prototype,m=v.hasOwnProperty;function g(e,t,n,v,g,y){var b=l(e),w=l(t),E=b?p:u(e),k=w?p:u(t);E=E==d?h:E,k=k==d?h:k;var O=E==h,S=k==h,x=E==k;if(x&&c(e)){if(!c(t))return!1;b=!0,O=!1}if(x&&!O)return y||(y=new r),b||s(e)?o(e,t,n,v,g,y):a(e,t,E,n,v,g,y);if(!(n&f)){var j=O&&m.call(e,"__wrapped__"),C=S&&m.call(t,"__wrapped__");if(j||C){var A=j?e.value():e,_=C?t.value():t;return y||(y=new r),g(A,_,n,v,y)}}return!!x&&(y||(y=new r),i(e,t,n,v,g,y))}e.exports=g},MZA9:function(e,t,n){var r=n("r+6h"),o=n("0JbB"),a=n("ZVkV");e.exports=r?function(e,t,n){return o.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},MdxV:function(e,t,n){var r=n("h+/6"),o=n("kk5s"),a="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?a.call(e,""):Object(e)}:Object},Mfbz:function(e,t,n){var r=n("FbU2"),o=n("oA63"),a=n("6vUj");function i(e){return r(e,a,o)}e.exports=i},MyUB:function(e,t,n){var r=n("O4yA"),o=r.Uint8Array;e.exports=o},"N+aw":function(e,t,n){var r=n("r+6h"),o=n("3s2x"),a=n("684d"),i=n("UQib").f,u=function(e){return function(t){var n,u=a(t),l=o(u),c=l.length,s=0,f=[];while(c>s)n=l[s++],r&&!i.call(u,n)||f.push(e?[n,u[n]]:u[n]);return f}};e.exports={entries:u(!0),values:u(!1)}},"N/7o":function(e,t,n){"use strict";var r=n("OOCw"),o=n("ANLo"),a=n("pVp3"),i=n("jax1"),u=n("h+/6"),l=1..toFixed,c=Math.floor,s=function(e,t,n){return 0===t?n:t%2===1?s(e,t-1,n*e):s(e*e,t/2,n)},f=function(e){var t=0,n=e;while(n>=4096)t+=12,n/=4096;while(n>=2)t+=1,n/=2;return t},d=l&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!u((function(){l.call({})}));r({target:"Number",proto:!0,forced:d},{toFixed:function(e){var t,n,r,u,l=a(this),d=o(e),p=[0,0,0,0,0,0],h="",v="0",m=function(e,t){var n=-1,r=t;while(++n<6)r+=e*p[n],p[n]=r%1e7,r=c(r/1e7)},g=function(e){var t=6,n=0;while(--t>=0)n+=p[t],p[t]=c(n/e),n=n%e*1e7},y=function(){var e=6,t="";while(--e>=0)if(""!==t||0===e||0!==p[e]){var n=String(p[e]);t=""===t?n:t+i.call("0",7-n.length)+n}return t};if(d<0||d>20)throw RangeError("Incorrect fraction digits");if(l!=l)return"NaN";if(l<=-1e21||l>=1e21)return String(l);if(l<0&&(h="-",l=-l),l>1e-21)if(t=f(l*s(2,69,1))-69,n=t<0?l*s(2,-t,1):l/s(2,t,1),n*=4503599627370496,t=52-t,t>0){m(0,n),r=d;while(r>=7)m(1e7,0),r-=7;m(s(10,r,1),0),r=t-1;while(r>=23)g(1<<23),r-=23;g(1<0?(u=v.length,v=h+(u<=d?"0."+i.call("0",d-u)+v:v.slice(0,u-d)+"."+v.slice(u-d))):v=h+v,v}})},N0ls:function(e,t,n){var r=n("OdMF"),o=n("upgS"),a=n("MI4T"),i=n("dwb6"),u=n("v3z7"),l=n("g0pg").aTypedArrayConstructor;e.exports=function(e){var t,n,c,s,f,d,p=r(e),h=arguments.length,v=h>1?arguments[1]:void 0,m=void 0!==v,g=a(p);if(void 0!=g&&!i(g)){f=g.call(p),d=f.next,p=[];while(!(s=d.call(f)).done)p.push(s.value)}for(m&&h>2&&(v=u(v,arguments[2],2)),n=o(p.length),c=new(l(this))(n),t=0;n>t;t++)c[t]=m?v(p[t],t):p[t];return c}},N59M:function(e,t,n){var r=n("6SQG");e.exports=r.Promise},NDrN:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("QxEV");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(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r["a"])(e,t):void 0}}},NRXl:function(e,t,n){var r=n("Mfbz"),o=1,a=Object.prototype,i=a.hasOwnProperty;function u(e,t,n,a,u,l){var c=n&o,s=r(e),f=s.length,d=r(t),p=d.length;if(f!=p&&!c)return!1;var h=f;while(h--){var v=s[h];if(!(c?v in t:i.call(t,v)))return!1}var m=l.get(e),g=l.get(t);if(m&&g)return m==t&&g==e;var y=!0;l.set(e,t),l.set(t,e);var b=c;while(++hs){var p,h=c(arguments[s++]),v=f?a(h).concat(f(h)):a(h),m=v.length,g=0;while(m>g)p=v[g++],r&&!d.call(h,p)||(n[p]=h[p])}return n}:s},NlHq:function(e,t,n){"use strict";var r=n("OOCw"),o=n("qyeh"),a=n("eyaU"),i=n("sErw"),u=n("lkgX"),l=n("ZT9G"),c=n("uZx/");r({target:"Set",proto:!0,real:!0,forced:o},{intersection:function(e){var t=i(this),n=new(l(t,a("Set"))),r=u(t.has),o=u(n.add);return c(e,(function(e){r.call(t,e)&&o.call(n,e)})),n}})},Nvne:function(e,t,n){var r=n("GXoa");r("Int16",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},O4yA:function(e,t,n){var r=n("yn9n"),o="object"==typeof self&&self&&self.Object===Object&&self,a=r||o||Function("return this")();e.exports=a},O8qS:function(e,t,n){var r=n("h+/6");e.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},OOCw:function(e,t,n){var r=n("6SQG"),o=n("6ssM").f,a=n("MZA9"),i=n("uF/W"),u=n("jukf"),l=n("mult"),c=n("RzMS");e.exports=function(e,t){var n,s,f,d,p,h,v=e.target,m=e.global,g=e.stat;if(s=m?r:g?r[v]||u(v,{}):(r[v]||{}).prototype,s)for(f in t){if(p=t[f],e.noTargetGet?(h=o(s,f),d=h&&h.value):d=s[f],n=c(m?f:v+(g?".":"#")+f,e.forced),!n&&void 0!==d){if(typeof p===typeof d)continue;l(p,d)}(e.sham||d&&d.sham)&&a(p,"sham",!0),i(s,f,p,e)}}},OR72:function(e,t,n){var r=n("kk5s"),o=n("A2zS");e.exports=function(e,t){var n=e.exec;if("function"===typeof n){var a=n.call(e,t);if("object"!==typeof a)throw TypeError("RegExp exec method returned something other than an Object or null");return a}if("RegExp"!==r(e))throw TypeError("RegExp#exec called on incompatible receiver");return o.call(e,t)}},Oax0:function(e,t,n){var r=n("rkJ6"),o=Array.prototype,a=o.splice;function i(e){var t=this.__data__,n=r(t,e);if(n<0)return!1;var o=t.length-1;return n==o?t.pop():a.call(t,n,1),--this.size,!0}e.exports=i},Obug:function(e,t,n){"use strict";var r=n("OOCw"),o=n("ANLo"),a=n("VqGX"),i="Invalid number representation",u="Invalid radix",l=/^[\da-z]+$/;r({target:"Number",stat:!0},{fromString:function(e,t){var n,r,c=1;if("string"!=typeof e)throw TypeError(i);if(!e.length)throw SyntaxError(i);if("-"==e.charAt(0)&&(c=-1,e=e.slice(1),!e.length))throw SyntaxError(i);if(n=void 0===t?10:o(t),n<2||n>36)throw RangeError(u);if(!l.test(e)||(r=a(e,n)).toString(n)!==e)throw SyntaxError(i);return c*r}})},OcJn:function(e,t,n){var r=n("KZF9");r("isConcatSpreadable")},OdMF:function(e,t,n){var r=n("z43i");e.exports=function(e){return Object(r(e))}},OtMc:function(e,t,n){var r,o,a,i,u,l,c,s,f=n("6SQG"),d=n("6ssM").f,p=n("kk5s"),h=n("bbNk").set,v=n("ytxp"),m=f.MutationObserver||f.WebKitMutationObserver,g=f.process,y=f.Promise,b="process"==p(g),w=d(f,"queueMicrotask"),E=w&&w.value;E||(r=function(){var e,t;b&&(e=g.domain)&&e.exit();while(o){t=o.fn,o=o.next;try{t()}catch(n){throw o?i():a=void 0,n}}a=void 0,e&&e.enter()},b?i=function(){g.nextTick(r)}:m&&!v?(u=!0,l=document.createTextNode(""),new m(r).observe(l,{characterData:!0}),i=function(){l.data=u=!u}):y&&y.resolve?(c=y.resolve(void 0),s=c.then,i=function(){s.call(c,r)}):i=function(){h.call(f,r)}),e.exports=E||function(e){var t={fn:e,next:void 0};a&&(a.next=t),o||(o=t,i()),a=t}},Ox3h:function(e,t,n){"use strict";var r,o=n("6SQG"),a=n("TxBV"),i=n("gArs"),u=n("BUyj"),l=n("jETf"),c=n("x+sk"),s=n("uJNS").enforce,f=n("qbEc"),d=!o.ActiveXObject&&"ActiveXObject"in o,p=Object.isExtensible,h=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},v=e.exports=u("WeakMap",h,l);if(f&&d){r=l.getConstructor(h,"WeakMap",!0),i.REQUIRED=!0;var m=v.prototype,g=m["delete"],y=m.has,b=m.get,w=m.set;a(m,{delete:function(e){if(c(e)&&!p(e)){var t=s(this);return t.frozen||(t.frozen=new r),g.call(this,e)||t.frozen["delete"](e)}return g.call(this,e)},has:function(e){if(c(e)&&!p(e)){var t=s(this);return t.frozen||(t.frozen=new r),y.call(this,e)||t.frozen.has(e)}return y.call(this,e)},get:function(e){if(c(e)&&!p(e)){var t=s(this);return t.frozen||(t.frozen=new r),y.call(this,e)?b.call(this,e):t.frozen.get(e)}return b.call(this,e)},set:function(e,t){if(c(e)&&!p(e)){var n=s(this);n.frozen||(n.frozen=new r),y.call(this,e)?w.call(this,e,t):n.frozen.set(e,t)}else w.call(this,e,t);return this}})}},Ox8W:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=t.LinkWrapper=void 0;var r=i(n("gbKz")),o=n("/U8s"),a=["to"];function i(e){return e&&e.__esModule?e:{default:e}}function u(){return u=Object.assign||function(e){for(var t=1;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function c(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}var s=function(e){return function(t){var n=t.to,o=l(t,a),i=/^(\w+:)?\/\/|^(mailto|tel):/.test(n)||!n,c=r["default"].isValidElement(o.children);return r["default"].createElement(e,u({to:n||"",component:i?function(){return r["default"].createElement("a",{target:"_blank",rel:"noopener noreferrer",href:n},o.children,n&&!c&&r["default"].createElement("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",x:"0px",y:"0px",viewBox:"0 0 100 100",width:"15",height:"15",className:"__dumi-default-external-link-icon"},r["default"].createElement("path",{fill:"currentColor",d:"M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"}),r["default"].createElement("polygon",{fill:"currentColor",points:"45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"})))}:void 0},o,i?{}:{onClick:function(){var e;window.scrollTo({top:0});for(var t=arguments.length,n=new Array(t),r=0;r1?arguments[1]:void 0)}})},Pu4S:function(e,t,n){"use strict";function r(e){return r="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},r(e)}n.d(t,"a",(function(){return r}))},PynX:function(e,t,n){var r=n("KZF9");r("dispose")},Q69t:function(e,t){function n(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}e.exports=n},QHn5:function(e,t,n){var r=n("qyeh"),o=n("mxPn");e.exports=r?o:function(e){return Map.prototype.entries.call(e)}},QKCj:function(e,t,n){n("ax/v")},QQXB:function(e,t,n){"use strict";(function(e){var n=function(){if("undefined"!==typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype["delete"]=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n0},e.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),s?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t,r=c.some((function(e){return!!~n.indexOf(e)}));r&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),d=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),A="undefined"!==typeof WeakMap?new WeakMap:new n,_=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=f.getInstance(),r=new C(t,n,this);A.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach((function(e){_.prototype[e]=function(){var t;return(t=A.get(this))[e].apply(t,arguments)}}));var T=function(){return"undefined"!==typeof o.ResizeObserver?o.ResizeObserver:_}();t["a"]=T}).call(this,n("LS9I"))},QWtl:function(e,t,n){var r,o=n("sErw"),a=n("DS72"),i=n("AqOu"),u=n("Y3cF"),l=n("RtP/"),c=n("73fw"),s=n("8i6t"),f=">",d="<",p="prototype",h="script",v=s("IE_PROTO"),m=function(){},g=function(e){return d+h+f+e+d+"/"+h+f},y=function(e){e.write(g("")),e.close();var t=e.parentWindow.Object;return e=null,t},b=function(){var e,t=c("iframe"),n="java"+h+":";return t.style.display="none",l.appendChild(t),t.src=String(n),e=t.contentWindow.document,e.open(),e.write(g("document.F=Object")),e.close(),e.F},w=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(t){}w=r?y(r):b();var e=i.length;while(e--)delete w[p][i[e]];return w()};u[v]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(m[p]=o(e),n=new m,m[p]=null,n[v]=e):n=w(),void 0===t?n:a(n,t)}},QZNO:function(e,t,n){var r=n("OOCw"),o=n("6SQG");r({global:!0},{globalThis:o})},QiOl:function(e,t,n){"use strict";var r=n("5yEw"),o=n("elB0");e.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},QkOx:function(e,t,n){"use strict";n("jYqw");var r=n("uF/W"),o=n("h+/6"),a=n("3Hes"),i=n("A2zS"),u=n("MZA9"),l=a("species"),c=!o((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$
")})),s=function(){return"$0"==="a".replace(/./,"$0")}(),f=a("replace"),d=function(){return!!/./[f]&&""===/./[f]("a","$0")}(),p=!o((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));e.exports=function(e,t,n,f){var h=a(e),v=!o((function(){var t={};return t[h]=function(){return 7},7!=""[e](t)})),m=v&&!o((function(){var t=!1,n=/a/;return"split"===e&&(n={},n.constructor={},n.constructor[l]=function(){return n},n.flags="",n[h]=/./[h]),n.exec=function(){return t=!0,null},n[h](""),!t}));if(!v||!m||"replace"===e&&(!c||!s||d)||"split"===e&&!p){var g=/./[h],y=n(h,""[e],(function(e,t,n,r,o){return t.exec===i?v&&!o?{done:!0,value:g.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),{REPLACE_KEEPS_$0:s,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:d}),b=y[0],w=y[1];r(String.prototype,e,b),r(RegExp.prototype,h,2==t?function(e,t){return w.call(e,this,t)}:function(e){return w.call(e,this)})}f&&u(RegExp.prototype[h],"sham",!0)}},Qkfr:function(e,t,n){"use strict";var r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.target,r=void 0===n?document.body:n,o=document.createElement("textarea"),a=document.activeElement;o.value=e,o.setAttribute("readonly",""),o.style.contain="strict",o.style.position="absolute",o.style.left="-9999px",o.style.fontSize="12pt";var i=document.getSelection(),u=!1;i.rangeCount>0&&(u=i.getRangeAt(0)),r.append(o),o.select(),o.selectionStart=0,o.selectionEnd=e.length;var l=!1;try{l=document.execCommand("copy")}catch(c){}return o.remove(),u&&(i.removeAllRanges(),i.addRange(u)),a&&a.focus(),l};e.exports=r,e.exports["default"]=r},QlVd:function(e,t,n){"use strict";var r=n("OOCw"),o=n("dz2h"),a=n("z43i"),i=n("upgS"),u=n("lkgX"),l=n("sErw"),c=n("kk5s"),s=n("q43B"),f=n("rfqm"),d=n("MZA9"),p=n("h+/6"),h=n("3Hes"),v=n("ZT9G"),m=n("o1x9"),g=n("uJNS"),y=n("qyeh"),b=h("matchAll"),w="RegExp String",E=w+" Iterator",k=g.set,O=g.getterFor(E),S=RegExp.prototype,x=S.exec,j="".matchAll,C=!!j&&!p((function(){"a".matchAll(/./)})),A=function(e,t){var n,r=e.exec;if("function"==typeof r){if(n=r.call(e,t),"object"!=typeof n)throw TypeError("Incorrect exec result");return n}return x.call(e,t)},_=o((function(e,t,n,r){k(this,{type:E,regexp:e,string:t,global:n,unicode:r,done:!1})}),w,(function(){var e=O(this);if(e.done)return{value:void 0,done:!0};var t=e.regexp,n=e.string,r=A(t,n);return null===r?{value:void 0,done:e.done=!0}:e.global?(""==String(r[0])&&(t.lastIndex=m(n,i(t.lastIndex),e.unicode)),{value:r,done:!1}):(e.done=!0,{value:r,done:!1})})),T=function(e){var t,n,r,o,a,u,c=l(this),s=String(e);return t=v(c,RegExp),n=c.flags,void 0===n&&c instanceof RegExp&&!("flags"in S)&&(n=f.call(c)),r=void 0===n?"":String(n),o=new t(t===RegExp?c.source:c,r),a=!!~r.indexOf("g"),u=!!~r.indexOf("u"),o.lastIndex=i(c.lastIndex),new _(o,s,a,u)};r({target:"String",proto:!0,forced:C},{matchAll:function(e){var t,n,r,o,i=a(this);if(null!=e){if(s(e)&&(t=String(a("flags"in S?e.flags:f.call(e))),!~t.indexOf("g")))throw TypeError("`.matchAll` does not allow non-global regexes");if(C)return j.apply(i,arguments);if(r=e[b],void 0===r&&y&&"RegExp"==c(e)&&(r=T),null!=r)return u(r).call(e,i)}else if(C)return j.apply(i,arguments);return n=String(i),o=new RegExp(e,"g"),y?T.call(o,n):o[b](n)}}),y||b in S||d(S,b,T)},"QrC+":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("TLpq"),o=n.n(r);function a(e){return e instanceof HTMLElement?e:o.a.findDOMNode(e)}},QwZf:function(e,t,n){"use strict";n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return E}));var r=n("Bm2L"),o=n("gUNb"),a=n("gbKz"),i=n.n(a),u=n("ptaF"),l=n("UabQ"),c=n("o4ox"),s=n("g8ur");i.a.Component;i.a.Component;var f=function(e,t){return"function"===typeof e?e(t):e},d=function(e,t){return"string"===typeof e?Object(u["c"])(e,null,null,t):e},p=function(e){return e},h=i.a.forwardRef;function v(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}"undefined"===typeof h&&(h=p);var m=h((function(e,t){var n=e.innerRef,r=e.navigate,o=e.onClick,a=Object(c["a"])(e,["innerRef","navigate","onClick"]),u=a.target,s=Object(l["a"])({},a,{onClick:function(e){try{o&&o(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||u&&"_self"!==u||v(e)||(e.preventDefault(),r())}});return s.ref=p!==h&&t||n,i.a.createElement("a",s)}));var g=h((function(e,t){var n=e.component,o=void 0===n?m:n,a=e.replace,u=e.to,v=e.innerRef,g=Object(c["a"])(e,["component","replace","to","innerRef"]);return i.a.createElement(r["h"].Consumer,null,(function(e){e||Object(s["a"])(!1);var n=e.history,r=d(f(u,e.location),e.location),c=r?n.createHref(r):"",m=Object(l["a"])({},g,{href:c,navigate:function(){var t=f(u,e.location),r=a?n.replace:n.push;r(t)}});return p!==h?m.ref=t||v:m.innerRef=v,i.a.createElement(o,m)}))})),y=function(e){return e},b=i.a.forwardRef;function w(){for(var e=arguments.length,t=new Array(e),n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);nd))return!1;var h=s.get(e),v=s.get(t);if(h&&v)return h==t&&v==e;var m=-1,g=!0,y=n&u?new r:void 0;s.set(e,t),s.set(t,e);while(++mm)throw TypeError(g);for(s=l(y,r),f=0;fb-r+n;f--)delete y[f-1]}else if(n>r)for(f=b-r;f>w;f--)d=f+r-1,p=f+n-1,d in y?y[p]=y[d]:delete y[p];for(f=0;f1?arguments[1]:void 0,3),o=new(c(t,a("Map"))),d=u(o.set);return f(n,(function(e,n){d.call(o,r(n,e,t),n)}),void 0,!0,!0),o}})},SHha:function(e,t,n){"use strict";var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function i(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function u(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map((function(e){return t[e]}));if("0123456789"!==r.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(a){return!1}}e.exports=u()?Object.assign:function(e,t){for(var n,u,l=i(e),c=1;ce.length)&&(t=e.length);for(var n=0,r=new Array(t);n=51||!r((function(){var t=[],n=t.constructor={};return n[i]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},THzI:function(e,t,n){"use strict";var r=n("qyeh"),o=n("6SQG"),a=n("h+/6");e.exports=r||!a((function(){var e=Math.random();__defineSetter__.call(null,e,(function(){})),delete o[e]}))},TLpq:function(e,t,n){"use strict";function r(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(e){console.error(e)}}}r(),e.exports=n("GPIs")},TMNz:function(e,t,n){"use strict";var r=n("OOCw"),o=n("M+Sl").map,a=n("THrr"),i=n("7/pz"),u=a("map"),l=i("map");r({target:"Array",proto:!0,forced:!u||!l},{map:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},Teq4:function(e,t,n){"use strict";n.r(t);var r=n("gbKz"),o=n.n(r),a=n("u4Q2"),i=n("xngY"),u=o.a.memo((e=>{e.demos;return o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:"markdown"},o.a.createElement("h1",{id:"use-in-class-components"},o.a.createElement(a["AnchorLink"],{to:"#use-in-class-components","aria-hidden":"true",tabIndex:-1},o.a.createElement("span",{className:"icon icon-link"})),"Use in Class Components"),o.a.createElement("p",null,"Although the store is using the Hooks syntax, you can still get and subscribe to the store in the class component, which relies on the ",o.a.createElement("code",null,"withStore")," higher-order component provided by hox:"),o.a.createElement(i["a"],{code:"class App extends Component {\n render() {\n const { counter } = this.props\n\n return (\n
\n

{counter.count}

\n \n
\n )\n }\n}\n\nexport default withStore(useCounterStore, counter => ({\n counter,\n}))(App)",lang:"jsx"}),o.a.createElement("p",null,o.a.createElement("code",null,"withStore")," is used to use store in class components, its usage is similar to ",o.a.createElement("code",null,"connect")," in react-redux."),o.a.createElement("p",null,"The first parameter ",o.a.createElement("code",null,"useStore")," is used to describe which stores need to be obtained. You can pass only one ",o.a.createElement("code",null,"useStore")," or multiple ones in the form of an array."),o.a.createElement("p",null,"The second parameter ",o.a.createElement("code",null,"mapStoreToProps")," is used to define the mapping rules from store to component ",o.a.createElement("code",null,"props"),"."),o.a.createElement(i["a"],{code:"declare function withStore(\n useStore,\n mapStoreToProps: (store, ownProps) => object\n): (C: ComponentType) => ComponentType\n\ntype StoreMap = {\n [key: string]: unknown\n}",lang:"typescript"}),o.a.createElement("p",null,"Example:"),o.a.createElement(i["a"],{code:"// \u8ba2\u9605\u5355\u4e2a store\nexport default withStore(useCounterStore, counter => ({\n count: counter.count\n}))(App)\n\n// \u8ba2\u9605\u591a\u4e2a store\nexport default withStore(\n [useCounterStore, useTimerStore],\n ([counter, timer]) => ({\n count: counter.count,\n timer\n })\n)(App)",lang:"js"})))}));t["default"]=e=>{var t=o.a.useContext(a["context"]),n=t.demos;return o.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&a["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),o.a.createElement(u,{demos:n})}},TxBV:function(e,t,n){var r=n("uF/W");e.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},TxDi:function(e,t,n){var r=n("3Hes"),o=r("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[o]=!1,"/./"[e](t)}catch(r){}}return!1}},Txlo:function(e,t){var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;function o(e,t){var o=typeof e;return t=null==t?n:t,!!t&&("number"==o||"symbol"!=o&&r.test(e))&&e>-1&&e%1==0&&e{e.demos;return o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:"markdown"},o.a.createElement("h1",{id:"\u5982\u4f55\u4ece-v1-\u8fc1\u79fb\u5230-v2"},o.a.createElement(a["AnchorLink"],{to:"#\u5982\u4f55\u4ece-v1-\u8fc1\u79fb\u5230-v2","aria-hidden":"true",tabIndex:-1},o.a.createElement("span",{className:"icon icon-link"})),"\u5982\u4f55\u4ece v1 \u8fc1\u79fb\u5230 v2"),o.a.createElement("p",null,"\u9996\u5148\u5347\u7ea7 npm \u5305\u5230 v2\uff0c\u4f8b\u5982\uff1a"),o.a.createElement(i["a"],{code:"npm install --save hox@latest",lang:"shell"}),o.a.createElement("h2",{id:"createmodel"},o.a.createElement(a["AnchorLink"],{to:"#createmodel","aria-hidden":"true",tabIndex:-1},o.a.createElement("span",{className:"icon icon-link"})),"createModel"),o.a.createElement("p",null,o.a.createElement("code",null,"createModel")," \u5728 v2 \u4e2d\u5bf9\u5e94\u7740 ",o.a.createElement("code",null,"createGlobalStore"),"\uff0c\u56e0\u6b64\u4f60\u9700\u8981\u6279\u91cf\u628a ",o.a.createElement("code",null,"createModel")," \u66ff\u6362\u4e3a ",o.a.createElement("code",null,"createGlobalStore"),"\uff1a"),o.a.createElement(i["a"],{code:"createModel(() => {\n // ...\n})\n\n// \u2b07\ufe0f\n\ncreateGlobalStore(() => {\n // ...\n})",lang:"js"}),o.a.createElement("p",null,"\u540c\u65f6\uff0c",o.a.createElement("code",null,"createGlobalStore")," \u5e76\u4e0d\u652f\u6301\u7b2c\u4e8c\u4e2a\u989d\u5916\u7684\u53c2\u6570\uff08\u5728\u4e4b\u524d\u7684 ",o.a.createElement("code",null,"createModel")," \u4e2d\uff0c\u8fd9\u4e2a\u53c2\u6570\u4f1a\u88ab\u4f20\u9012\u7ed9 Hook \u51fd\u6570\uff09\uff0c\u4f46\u662f\u4e0d\u8981\u62c5\u5fc3\uff0c\u4f60\u53ef\u4ee5\u76f4\u63a5\u81ea\u5df1\u5305\u88f9\u4e00\u5c42\u533f\u540d\u51fd\u6570\uff0c\u6765\u5b9e\u73b0\u540c\u6837\u7684\u6548\u679c\uff1a"),o.a.createElement(i["a"],{code:"function useCounter(initial) {\n // ...\n}\ncreateModel(useCounter, 5)\n\n// \u2b07\ufe0f\n\nfunction useCounter(initial) {\n // ...\n}\ncreateGlobalStore(() => useCounter(5))",lang:"js"}),o.a.createElement("h2",{id:"hoxroot"},o.a.createElement(a["AnchorLink"],{to:"#hoxroot","aria-hidden":"true",tabIndex:-1},o.a.createElement("span",{className:"icon icon-link"})),"HoxRoot"),o.a.createElement("p",null,"\u5728 v2 \u7248\u672c\u7684 hox \u4e2d\uff0c\u9700\u8981\u901a\u8fc7 ",o.a.createElement("code",null,"HoxRoot")," \u7ec4\u4ef6\u6765\u6536\u96c6\u548c\u6267\u884c\u5168\u5c40 Store\uff0c\u56e0\u6b64\u4f60\u9700\u8981\u5728\u6574\u4e2a\u5e94\u7528\u7684\u6700\u5916\u5c42\u5305\u88f9\u4e00\u4e2a ",o.a.createElement("code",null,"HoxRoot"),"\uff1a"),o.a.createElement(i["a"],{code:"\n \n",lang:"jsx"}),o.a.createElement("p",null,"\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u5728\u540c\u4e00\u4e2a\u6d4f\u89c8\u5668\u9875\u9762\u4e0a\uff0c",o.a.createElement("strong",null,"\u53ea\u80fd\u540c\u65f6\u6e32\u67d3\u4e00\u4e2a HoxRoot"),"\u3002"),o.a.createElement("h2",{id:"uselazymodel"},o.a.createElement(a["AnchorLink"],{to:"#uselazymodel","aria-hidden":"true",tabIndex:-1},o.a.createElement("span",{className:"icon icon-link"})),"useLazyModel"),o.a.createElement("p",null,o.a.createElement("code",null,"useLazyModel")," \u5728 hox v2 \u4e2d\u5df2\u88ab\u79fb\u9664\uff0c\u5e76\u4e14\u76ee\u524d\u6ca1\u6709\u53ef\u7b49\u6548\u66ff\u4ee3\u7684\u51fd\u6570\uff0c\u4e00\u822c\u60c5\u51b5\u4e0b\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7\u5c40\u90e8 Store \u6765\u8fbe\u5230\u7684\u540c\u6837\u7684\u76ee\u7684\u3002"),o.a.createElement("h2",{id:"\u5b8c\u6210"},o.a.createElement(a["AnchorLink"],{to:"#\u5b8c\u6210","aria-hidden":"true",tabIndex:-1},o.a.createElement("span",{className:"icon icon-link"})),"\u5b8c\u6210"),o.a.createElement("p",null,"\u73b0\u5728\u53ef\u4ee5\u542f\u52a8\u4e00\u4e0b\u9879\u76ee\u8bd5\u8bd5\u770b\u770b\u4e86\uff0c\u5982\u679c\u4f60\u6309\u7167\u4e0a\u9762\u7684\u6d41\u7a0b\u8fdb\u884c\u64cd\u4f5c\u540e\uff0c\u9047\u5230\u4e86\u5947\u602a\u7684\u95ee\u9898\uff0c\u53ef\u4ee5\u6765 GitHub \u4ed3\u5e93\u4e2d\u63d0\u4ea4 ",o.a.createElement(a["Link"],{to:"https://github.com/umijs/hox/issues"},"issue"),"\u3002")))}));t["default"]=e=>{var t=o.a.useContext(a["context"]),n=t.demos;return o.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&a["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),o.a.createElement(u,{demos:n})}},U5u0:function(e,t,n){var r=n("KZF9");r("search")},UDnj:function(e,t,n){var r=n("KZF9");r("toStringTag")},UMve:function(e,t,n){"use strict";var r=n("OOCw"),o=n("qyeh"),a=n("eyaU"),i=n("sErw"),u=n("lkgX"),l=n("v3z7"),c=n("ZT9G"),s=n("R8Xy"),f=n("uZx/");r({target:"Set",proto:!0,real:!0,forced:o},{filter:function(e){var t=i(this),n=s(t),r=l(e,arguments.length>1?arguments[1]:void 0,3),o=new(c(t,a("Set"))),d=u(o.add);return f(n,(function(e){r(e,e,t)&&d.call(o,e)}),void 0,!1,!0),o}})},UQib:function(e,t,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,a=o&&!r.call({1:2},1);t.f=a?function(e){var t=o(this,e);return!!t&&t.enumerable}:r},UabQ:function(e,t,n){"use strict";function r(){return r=Object.assign||function(e){for(var t=1;tl&&(c=c.slice(0,l)),e?s+c:c+s)}};e.exports={start:u(!1),end:u(!0)}},UtSM:function(e,t,n){var r=n("rkJ6");function o(e){return r(this.__data__,e)>-1}e.exports=o},Uv1i:function(e,t,n){var r=n("GXoa");r("Int32",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},V0hj:function(e,t,n){var r=n("O8qS");e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},V96g:function(e,t,n){"use strict";var r=n("OOCw"),o=n("qyeh"),a=n("eyaU"),i=n("sErw"),u=n("lkgX"),l=n("ZT9G"),c=n("uZx/");r({target:"Set",proto:!0,real:!0,forced:o},{union:function(e){var t=i(this),n=new(l(t,a("Set")))(t);return c(e,u(n.add),n),n}})},VA8o:function(e,t,n){var r=n("h+/6");e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},VJj2:function(e,t){var n=9007199254740991;function r(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}e.exports=r},Vc2o:function(e,t,n){var r=n("t+GO"),o=n("GQDD"),a=n("megh"),i=n("NSh6"),u=n("PVOi"),l=n("PORw"),c=n("GLf+"),s="[object Map]",f="[object Object]",d="[object Promise]",p="[object Set]",h="[object WeakMap]",v="[object DataView]",m=c(r),g=c(o),y=c(a),b=c(i),w=c(u),E=l;(r&&E(new r(new ArrayBuffer(1)))!=v||o&&E(new o)!=s||a&&E(a.resolve())!=d||i&&E(new i)!=p||u&&E(new u)!=h)&&(E=function(e){var t=l(e),n=t==f?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case m:return v;case g:return s;case y:return d;case b:return p;case w:return h}return t}),e.exports=E},VdqM:function(e,t){function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}e.exports=n},Vg85:function(e,t){e.exports="\t\n\v\f\r \xa0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff"},VnLQ:function(e,t,n){"use strict";var r=n("OOCw"),o=n("lkgX"),a=n("eyaU"),i=n("8d12"),u=n("86T+"),l=n("uZx/"),c="No one promise resolved";r({target:"Promise",stat:!0},{any:function(e){var t=this,n=i.f(t),r=n.resolve,s=n.reject,f=u((function(){var n=o(t.resolve),i=[],u=0,f=1,d=!1;l(e,(function(e){var o=u++,l=!1;i.push(void 0),f++,n.call(t,e).then((function(e){l||d||(d=!0,r(e))}),(function(e){l||d||(l=!0,i[o]=e,--f||s(new(a("AggregateError"))(i,c)))}))})),--f||s(new(a("AggregateError"))(i,c))}));return f.error&&s(f.value),n.promise}})},VqGX:function(e,t,n){var r=n("6SQG"),o=n("CsJM").trim,a=n("Vg85"),i=r.parseInt,u=/^[+-]?0[Xx]/,l=8!==i(a+"08")||22!==i(a+"0x16");e.exports=l?function(e,t){var n=o(String(e));return i(n,t>>>0||(u.test(n)?16:10))}:i},W6X5:function(e,t){function n(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}e.exports=n},W8ws:function(e,t,n){"use strict";var r=n("gbKz"),o=n.n(r);n("52jv");function a(){return a=Object.assign||function(e){for(var t=1;ts)if(u=l[s++],u!=u)return!0}else for(;c>s;s++)if((e||s in l)&&l[s]===n)return e||s||0;return!e&&-1}};e.exports={includes:i(!0),indexOf:i(!1)}},Ysk6:function(e,t){function n(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}e.exports=n},Yxqv:function(e,t,n){"use strict";var r=n("OOCw"),o=n("qyeh"),a=n("eyaU"),i=n("sErw"),u=n("lkgX"),l=n("ZT9G"),c=n("uZx/");r({target:"Set",proto:!0,real:!0,forced:o},{symmetricDifference:function(e){var t=i(this),n=new(l(t,a("Set")))(t),r=u(n["delete"]),o=u(n.add);return c(e,(function(e){r.call(n,e)||o.call(n,e)})),n}})},Z67V:function(e,t,n){"use strict";var r=n("r+6h"),o=n("ZGY3"),a=n("OdMF"),i=n("upgS"),u=n("0JbB").f;r&&!("lastItem"in[])&&(u(Array.prototype,"lastItem",{configurable:!0,get:function(){var e=a(this),t=i(e.length);return 0==t?void 0:e[t-1]},set:function(e){var t=a(this),n=i(t.length);return t[0==n?0:n-1]=e}}),o("lastItem"))},ZGY3:function(e,t,n){var r=n("3Hes"),o=n("QWtl"),a=n("0JbB"),i=r("unscopables"),u=Array.prototype;void 0==u[i]&&a.f(u,i,{configurable:!0,value:o(null)}),e.exports=function(e){u[i][e]=!0}},ZIdP:function(e,t,n){var r=n("OOCw"),o=n("1Sp3"),a=n("sErw"),i=o.toKey,u=o.set;r({target:"Reflect",stat:!0},{defineMetadata:function(e,t,n){var r=arguments.length<4?void 0:i(arguments[3]);u(e,t,a(n),r)}})},ZT9G:function(e,t,n){var r=n("sErw"),o=n("lkgX"),a=n("3Hes"),i=a("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||void 0==(n=r(a)[i])?t:o(n)}},ZVkV:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},ZYMV:function(e,t,n){var r=n("ZwOi"),o=Math.abs,a=Math.pow,i=a(2,-52),u=a(2,-23),l=a(2,127)*(2-u),c=a(2,-126),s=function(e){return e+1/i-1/i};e.exports=Math.fround||function(e){var t,n,a=o(e),f=r(e);return al||n!=n?f*(1/0):f*n)}},Zjj6:function(e,t,n){var r=n("+U9+"),o=n("VJj2");function a(e){return null!=e&&o(e.length)&&!r(e)}e.exports=a},Zjmp:function(e,t,n){var r=n("ry6q"),o=n("mIaV"),a=n("EA9V"),i=n("nXRf"),u=n("KSsz"),l=n("M9kN");function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=o,c.prototype["delete"]=a,c.prototype.get=i,c.prototype.has=u,c.prototype.set=l,e.exports=c},ZmXH:function(e,t,n){"use strict";var r=n("0JbB").f,o=n("QWtl"),a=n("TxBV"),i=n("v3z7"),u=n("CZSf"),l=n("uZx/"),c=n("vSpU"),s=n("ct0+"),f=n("r+6h"),d=n("gArs").fastKey,p=n("uJNS"),h=p.set,v=p.getterFor;e.exports={getConstructor:function(e,t,n,c){var s=e((function(e,r){u(e,s,t),h(e,{type:t,index:o(null),first:void 0,last:void 0,size:0}),f||(e.size=0),void 0!=r&&l(r,e[c],e,n)})),p=v(t),m=function(e,t,n){var r,o,a=p(e),i=g(e,t);return i?i.value=n:(a.last=i={index:o=d(t,!0),key:t,value:n,previous:r=a.last,next:void 0,removed:!1},a.first||(a.first=i),r&&(r.next=i),f?a.size++:e.size++,"F"!==o&&(a.index[o]=i)),e},g=function(e,t){var n,r=p(e),o=d(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return a(s.prototype,{clear:function(){var e=this,t=p(e),n=t.index,r=t.first;while(r)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete n[r.index],r=r.next;t.first=t.last=void 0,f?t.size=0:e.size=0},delete:function(e){var t=this,n=p(t),r=g(t,e);if(r){var o=r.next,a=r.previous;delete n.index[r.index],r.removed=!0,a&&(a.next=o),o&&(o.previous=a),n.first==r&&(n.first=o),n.last==r&&(n.last=a),f?n.size--:t.size--}return!!r},forEach:function(e){var t,n=p(this),r=i(e,arguments.length>1?arguments[1]:void 0,3);while(t=t?t.next:n.first){r(t.value,t.key,this);while(t&&t.removed)t=t.previous}},has:function(e){return!!g(this,e)}}),a(s.prototype,n?{get:function(e){var t=g(this,e);return t&&t.value},set:function(e,t){return m(this,0===e?0:e,t)}}:{add:function(e){return m(this,e=0===e?0:e,e)}}),f&&r(s.prototype,"size",{get:function(){return p(this).size}}),s},setStrong:function(e,t,n){var r=t+" Iterator",o=v(t),a=v(r);c(e,t,(function(e,t){h(this,{type:r,target:e,state:o(e),kind:t,last:void 0})}),(function(){var e=a(this),t=e.kind,n=e.last;while(n&&n.removed)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),s(t)}}},Zsrj:function(e,t,n){(function(e){var r=n("O4yA"),o=n("RfhN"),a=t&&!t.nodeType&&t,i=a&&"object"==typeof e&&e&&!e.nodeType&&e,u=i&&i.exports===a,l=u?r.Buffer:void 0,c=l?l.isBuffer:void 0,s=c||o;e.exports=s}).call(this,n("Grh/")(e))},ZsxT:function(e,t,n){var r=n("QzCP"),o=Object.prototype,a=o.hasOwnProperty;function i(e){var t=this.__data__;return r?void 0!==t[e]:a.call(t,e)}e.exports=i},ZwOi:function(e,t){e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},ZxN6:function(e,t,n){var r=n("OOCw"),o=n("CBsr");r({target:"WeakSet",stat:!0},{of:o})},aRba:function(e,t,n){var r=n("x+sk"),o=n("d8EH");e.exports=function(e,t,n){var a,i;return o&&"function"==typeof(a=t.constructor)&&a!==n&&r(i=a.prototype)&&i!==n.prototype&&o(e,i),e}},aTTI:function(e,t,n){"use strict";var r=n("OOCw"),o=n("qyeh"),a=n("sErw"),i=n("v3z7"),u=n("R8Xy"),l=n("uZx/");r({target:"Set",proto:!0,real:!0,forced:o},{every:function(e){var t=a(this),n=u(t),r=i(e,arguments.length>1?arguments[1]:void 0,3);return!l(n,(function(e){if(!r(e,e,t))return l.stop()}),void 0,!1,!0).stopped}})},aUZo:function(e,t,n){"use strict";var r=n("OOCw"),o=n("6SQG"),a=n("xy/A"),i=n("ct0+"),u="ArrayBuffer",l=a[u],c=o[u];r({global:!0,forced:c!==l},{ArrayBuffer:l}),i(u)},aVyU:function(e,t,n){"use strict";var r=n("OOCw"),o=n("qyeh"),a=n("2fm6");r({target:"Map",proto:!0,real:!0,forced:o},{deleteAll:function(){return a.apply(this,arguments)}})},aaHa:function(e,t,n){var r=n("Y30u");e.exports=y,e.exports.parse=a,e.exports.compile=i,e.exports.tokensToFunction=c,e.exports.tokensToRegExp=g;var o=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function a(e,t){var n,r=[],a=0,i=0,u="",l=t&&t.delimiter||"/";while(null!=(n=o.exec(e))){var c=n[0],d=n[1],p=n.index;if(u+=e.slice(i,p),i=p+c.length,d)u+=d[1];else{var h=e[i],v=n[2],m=n[3],g=n[4],y=n[5],b=n[6],w=n[7];u&&(r.push(u),u="");var E=null!=v&&null!=h&&h!==v,k="+"===b||"*"===b,O="?"===b||"*"===b,S=n[2]||l,x=g||y;r.push({name:m||a++,prefix:v||"",delimiter:S,optional:O,repeat:k,partial:E,asterisk:!!w,pattern:x?f(x):w?".*":"[^"+s(S)+"]+?"})}}return ia.a.createElement(s.a,r({},e,{config:i,demos:u,apis:l}))},ahVg:function(e,t,n){"use strict";var r=n("OOCw"),o=n("qyeh"),a=n("sErw"),i=n("v3z7"),u=n("QHn5"),l=n("uZx/");r({target:"Map",proto:!0,real:!0,forced:o},{every:function(e){var t=a(this),n=u(t),r=i(e,arguments.length>1?arguments[1]:void 0,3);return!l(n,(function(e,n){if(!r(n,e,t))return l.stop()}),void 0,!0,!0).stopped}})},alDa:function(e,t,n){"use strict";n.r(t);var r=n("gbKz"),o=n.n(r),a=n("u4Q2"),i=n("xngY"),u=o.a.memo((e=>{e.demos;return o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:"markdown"},o.a.createElement("h1",{id:"performance"},o.a.createElement(a["AnchorLink"],{to:"#performance","aria-hidden":"true",tabIndex:-1},o.a.createElement("span",{className:"icon icon-link"})),"Performance"),o.a.createElement("p",null,"The return value of ",o.a.createElement("code",null,"createStore")," or ",o.a.createElement("code",null,"createGlobalStore")," ",o.a.createElement("code",null,"useXxxStore")," supports passing a ",o.a.createElement("code",null,"depsFn")," function to precisely control the fields of the subscription:"),o.a.createElement(i["a"],{code:"const counter = useCounterStore(store => [store.count, store.x.y])",lang:"jsx"}),o.a.createElement("p",null,"This is very similar to the ",o.a.createElement("code",null,"deps")," of ",o.a.createElement("code",null,"useMemo")," and ",o.a.createElement("code",null,"useEffect"),", however, the ",o.a.createElement("code",null,"depsFn")," parameter of ",o.a.createElement("code",null,"useStore")," is a ",o.a.createElement("strong",null,"function"),"."),o.a.createElement("p",null,"Also, we recommend splitting up a huge store so not only will the code be easier to maintain, but performance will also improve.")))}));t["default"]=e=>{var t=o.a.useContext(a["context"]),n=t.demos;return o.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&a["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),o.a.createElement(u,{demos:n})}},"ax/v":function(e,t,n){"use strict";var r=n("OOCw"),o=n("lkgX"),a=n("8d12"),i=n("86T+"),u=n("uZx/");r({target:"Promise",stat:!0},{allSettled:function(e){var t=this,n=a.f(t),r=n.resolve,l=n.reject,c=i((function(){var n=o(t.resolve),a=[],i=0,l=1;u(e,(function(e){var o=i++,u=!1;a.push(void 0),l++,n.call(t,e).then((function(e){u||(u=!0,a[o]={status:"fulfilled",value:e},--l||r(a))}),(function(e){u||(u=!0,a[o]={status:"rejected",reason:e},--l||r(a))}))})),--l||r(a)}));return c.error&&l(c.value),n.promise}})},bCY9:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("0Q8x"),o=new r["Plugin"]({validKeys:["modifyClientRenderOpts","patchRoutes","rootContainer","render","onRouteChange","__mfsu"]})},bDK3:function(e,t,n){"use strict";function r(){var e=o(n("gbKz"));return r=function(){return e},e}function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var a=r()["default"].createContext({config:{mode:"doc",title:"",navs:{},menus:{},locales:[],repository:{branch:"master"},theme:{}},meta:{title:""},menu:[],nav:[],base:"",routes:[],apis:{},demos:{}});t["default"]=a},bE0b:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("gbKz");function o(e,t,n){var o=r["useRef"]({});return"value"in o.current&&!n(o.current.condition,t)||(o.current.value=e(),o.current.condition=t),o.current.value}},bHKe:function(e,t,n){var r=n("OOCw"),o=n("6SQG"),a=n("bbNk"),i=!o.setImmediate||!o.clearImmediate;r({global:!0,bind:!0,enumerable:!0,forced:i},{setImmediate:a.set,clearImmediate:a.clear})},bIC1:function(e,t,n){(function(t){var n="Expected a function",r=NaN,o="[object Symbol]",a=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt,s="object"==typeof t&&t&&t.Object===Object&&t,f="object"==typeof self&&self&&self.Object===Object&&self,d=s||f||Function("return this")(),p=Object.prototype,h=p.toString,v=Math.max,m=Math.min,g=function(){return d.Date.now()};function y(e,t,r){var o,a,i,u,l,c,s=0,f=!1,d=!1,p=!0;if("function"!=typeof e)throw new TypeError(n);function h(t){var n=o,r=a;return o=a=void 0,s=t,u=e.apply(r,n),u}function y(e){return s=e,l=setTimeout(k,t),f?h(e):u}function b(e){var n=e-c,r=e-s,o=t-n;return d?m(o,i-r):o}function E(e){var n=e-c,r=e-s;return void 0===c||n>=t||n<0||d&&r>=i}function k(){var e=g();if(E(e))return S(e);l=setTimeout(k,b(e))}function S(e){return l=void 0,p&&o?h(e):(o=a=void 0,u)}function x(){void 0!==l&&clearTimeout(l),s=0,o=c=a=l=void 0}function j(){return void 0===l?u:S(g())}function C(){var e=g(),n=E(e);if(o=arguments,a=this,c=e,n){if(void 0===l)return y(c);if(d)return l=setTimeout(k,t),h(c)}return void 0===l&&(l=setTimeout(k,t)),u}return t=O(t)||0,w(r)&&(f=!!r.leading,d="maxWait"in r,i=d?v(O(r.maxWait)||0,t):i,p="trailing"in r?!!r.trailing:p),C.cancel=x,C.flush=j,C}function b(e,t,r){var o=!0,a=!0;if("function"!=typeof e)throw new TypeError(n);return w(r)&&(o="leading"in r?!!r.leading:o,a="trailing"in r?!!r.trailing:a),y(e,t,{leading:o,maxWait:t,trailing:a})}function w(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function E(e){return!!e&&"object"==typeof e}function k(e){return"symbol"==typeof e||E(e)&&h.call(e)==o}function O(e){if("number"==typeof e)return e;if(k(e))return r;if(w(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=w(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(a,"");var n=u.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):i.test(e)?r:+e}e.exports=b}).call(this,n("LS9I"))},bIgI:function(e,t,n){var r=n("XXwF");function o(e,t){var n;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=r(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var o=0,a=function(){};return{s:a,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:a}}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,u=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return u=e.done,e},e:function(e){l=!0,i=e},f:function(){try{u||null==n["return"]||n["return"]()}finally{if(l)throw i}}}}e.exports=o},bK3N:function(e,t,n){var r=n("+U9+"),o=n("e3zV"),a=n("PWyJ"),i=n("GLf+"),u=/[\\^$.*+?()[\]{}|]/g,l=/^\[object .+?Constructor\]$/,c=Function.prototype,s=Object.prototype,f=c.toString,d=s.hasOwnProperty,p=RegExp("^"+f.call(d).replace(u,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function h(e){if(!a(e)||o(e))return!1;var t=r(e)?p:l;return t.test(i(e))}e.exports=h},bUaa:function(e,t,n){(function(e){var r=n("yn9n"),o=t&&!t.nodeType&&t,a=o&&"object"==typeof e&&e&&!e.nodeType&&e,i=a&&a.exports===o,u=i&&r.process,l=function(){try{var e=a&&a.require&&a.require("util").types;return e||u&&u.binding&&u.binding("util")}catch(t){}}();e.exports=l}).call(this,n("Grh/")(e))},bXzL:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("5i7B");function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;tn)t.push(arguments[n++]);return w[++b]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},r(b),b},v=function(e){delete w[e]},"process"==l(m)?r=function(e){m.nextTick(O(e))}:y&&y.now?r=function(e){y.now(O(e))}:g&&!d?(o=new g,a=o.port2,o.port1.onmessage=S,r=c(a.postMessage,a,1)):!i.addEventListener||"function"!=typeof postMessage||i.importScripts||u(x)||"file:"===p.protocol?r=E in f("script")?function(e){s.appendChild(f("script"))[E]=function(){s.removeChild(this),k(e)}}:function(e){setTimeout(O(e),0)}:(r=x,i.addEventListener("message",S,!1))),e.exports={set:h,clear:v}},beEN:function(e,t,n){"use strict";var r=n("OOCw"),o=n("SD1J"),a=n("z43i"),i=n("TxDi");r({target:"String",proto:!0,forced:!i("includes")},{includes:function(e){return!!~String(a(this)).indexOf(o(e),arguments.length>1?arguments[1]:void 0)}})},bnod:function(e,t,n){"use strict";var r=Symbol.for("react.element"),o=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.iterator;function v(e){return null===e||"object"!==typeof e?null:(e=h&&e[h]||e["@@iterator"],"function"===typeof e?e:null)}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,y={};function b(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||m}function w(){}function E(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||m}b.prototype.isReactComponent={},b.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},b.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},w.prototype=b.prototype;var k=E.prototype=new w;k.constructor=E,g(k,b.prototype),k.isPureReactComponent=!0;var O=Array.isArray,S=Object.prototype.hasOwnProperty,x={current:null},j={key:!0,ref:!0,__self:!0,__source:!0};function C(e,t,n){var o,a={},i=null,u=null;if(null!=t)for(o in void 0!==t.ref&&(u=t.ref),void 0!==t.key&&(i=""+t.key),t)S.call(t,o)&&!j.hasOwnProperty(o)&&(a[o]=t[o]);var l=arguments.length-2;if(1===l)a.children=n;else if(11?arguments[1]:void 0,3),o=new(c(t,a("Set"))),d=u(o.add);return f(n,(function(e){d.call(o,r(e,e,t))}),void 0,!1,!0),o}})},"d+E4":function(e,t,n){"use strict";var r=n("OOCw"),o=n("8d12"),a=n("86T+");r({target:"Promise",stat:!0},{try:function(e){var t=o.f(this),n=a(e);return(n.error?t.reject:t.resolve)(n.value),t.promise}})},d5Nj:function(e,t,n){"use strict";var r={};function o(e,t){0}function a(e,t,n){t||r[n]||(e(!1,n),r[n]=!0)}function i(e,t){a(o,e,t)}t["a"]=i},d8EH:function(e,t,n){var r=n("sErw"),o=n("6jqD");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,e.call(n,[]),t=n instanceof Array}catch(a){}return function(n,a){return r(n),o(a),t?e.call(n,a):n.__proto__=a,n}}():void 0)},dDvS:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?(r=n/c,o+=r*r):o+=n;return c===1/0?1/0:c*i(o)}})},eRKo:function(e,t,n){"use strict";var r=n("5i7B"),o=n("bXzL"),a=n("LGux"),i=n("Pu4S"),u=n("gbKz"),l=n("QrC+"),c=n("CHQZ"),s=n("Ebyb"),f=n.n(s),d=n("HAS1");function p(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function h(e,t){var n={animationend:p("Animation","AnimationEnd"),transitionend:p("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var v=h(Object(d["a"])(),"undefined"!==typeof window?window:{}),m={};if(Object(d["a"])()){var g=document.createElement("div");m=g.style}var y={};function b(e){if(y[e])return y[e];var t=v[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o1&&void 0!==arguments[1]?arguments[1]:2;t();var a=Object(L["a"])((function(){o<=1?r({isCanceled:function(){return a!==e.current}}):n(r,o-1)}));e.current=a}return u["useEffect"]((function(){return function(){t()}}),[]),[n,t]},F=Object(d["a"])()?u["useLayoutEffect"]:u["useEffect"],z=F,U=[P,R,N,M],B=!1,H=!0;function G(e){return e===N||e===M}var V=function(e,t){var n=Object(I["a"])(T),r=Object(a["a"])(n,2),o=r[0],i=r[1],l=D(),c=Object(a["a"])(l,2),s=c[0],f=c[1];function d(){i(P,!0)}return z((function(){if(o!==T&&o!==M){var e=U.indexOf(o),n=U[e+1],r=t(o);r===B?i(n,!0):s((function(e){function t(){e.isCanceled()||i(n,!0)}!0===r?t():Promise.resolve(r).then(t)}))}}),[e,o]),u["useEffect"]((function(){return function(){f()}}),[]),[d,o]},W=function(e){var t=Object(u["useRef"])(),n=Object(u["useRef"])(e);n.current=e;var r=u["useCallback"]((function(e){n.current(e)}),[]);function o(e){e&&(e.removeEventListener(S,r),e.removeEventListener(O,r))}function a(e){t.current&&t.current!==e&&o(t.current),e&&e!==t.current&&(e.addEventListener(S,r),e.addEventListener(O,r),t.current=e)}return u["useEffect"]((function(){return function(){o(t.current)}}),[]),[a,o]};function $(e,t,n,i){var l=i.motionEnter,c=void 0===l||l,s=i.motionAppear,f=void 0===s||s,d=i.motionLeave,p=void 0===d||d,h=i.motionDeadline,v=i.motionLeaveImmediately,m=i.onAppearPrepare,g=i.onEnterPrepare,y=i.onLeavePrepare,b=i.onAppearStart,w=i.onEnterStart,E=i.onLeaveStart,k=i.onAppearActive,O=i.onEnterActive,S=i.onLeaveActive,x=i.onAppearEnd,T=i.onEnterEnd,M=i.onLeaveEnd,L=i.onVisibleChanged,D=Object(I["a"])(),F=Object(a["a"])(D,2),U=F[0],$=F[1],K=Object(I["a"])(j),q=Object(a["a"])(K,2),Q=q[0],Y=q[1],X=Object(I["a"])(null),Z=Object(a["a"])(X,2),J=Z[0],ee=Z[1],te=Object(u["useRef"])(!1),ne=Object(u["useRef"])(null);function re(){return n()}var oe=Object(u["useRef"])(!1);function ae(e){var t=re();if(!e||e.deadline||e.target===t){var n,r=oe.current;Q===C&&r?n=null===x||void 0===x?void 0:x(t,e):Q===A&&r?n=null===T||void 0===T?void 0:T(t,e):Q===_&&r&&(n=null===M||void 0===M?void 0:M(t,e)),Q!==j&&r&&!1!==n&&(Y(j,!0),ee(null,!0))}}var ie=W(ae),ue=Object(a["a"])(ie,1),le=ue[0],ce=u["useMemo"]((function(){var e,t,n;switch(Q){case C:return e={},Object(r["a"])(e,P,m),Object(r["a"])(e,R,b),Object(r["a"])(e,N,k),e;case A:return t={},Object(r["a"])(t,P,g),Object(r["a"])(t,R,w),Object(r["a"])(t,N,O),t;case _:return n={},Object(r["a"])(n,P,y),Object(r["a"])(n,R,E),Object(r["a"])(n,N,S),n;default:return{}}}),[Q]),se=V(Q,(function(e){if(e===P){var t=ce[P];return t?t(re()):B}var n;pe in ce&&ee((null===(n=ce[pe])||void 0===n?void 0:n.call(ce,re(),null))||null);return pe===N&&(le(re()),h>0&&(clearTimeout(ne.current),ne.current=setTimeout((function(){ae({deadline:!0})}),h))),H})),fe=Object(a["a"])(se,2),de=fe[0],pe=fe[1],he=G(pe);oe.current=he,z((function(){$(t);var n,r=te.current;(te.current=!0,e)&&(!r&&t&&f&&(n=C),r&&t&&c&&(n=A),(r&&!t&&p||!r&&v&&!t&&p)&&(n=_),n&&(Y(n),de()))}),[t]),Object(u["useEffect"])((function(){(Q===C&&!f||Q===A&&!c||Q===_&&!p)&&Y(j)}),[f,c,p]),Object(u["useEffect"])((function(){return function(){te.current=!1,clearTimeout(ne.current)}}),[]),Object(u["useEffect"])((function(){void 0!==U&&Q===j&&(null===L||void 0===L||L(U))}),[U,Q]);var ve=J;return ce[P]&&pe===R&&(ve=Object(o["a"])({transition:"none"},ve)),[Q,pe,ve,null!==U&&void 0!==U?U:t]}var K=n("XYCV"),q=n("Whls"),Q=n("eUa+"),Y=n("qSce"),X=function(e){Object(Q["a"])(n,e);var t=Object(Y["a"])(n);function n(){return Object(K["a"])(this,n),t.apply(this,arguments)}return Object(q["a"])(n,[{key:"render",value:function(){return this.props.children}}]),n}(u["Component"]),Z=X;function J(e){var t=e;function n(e){return!(!e.motionName||!t)}"object"===Object(i["a"])(e)&&(t=e.transitionSupport);var s=u["forwardRef"]((function(e,t){var i=e.visible,s=void 0===i||i,d=e.removeOnLeave,p=void 0===d||d,h=e.forceRender,v=e.children,m=e.motionName,g=e.leavedClassName,y=e.eventProps,b=n(e),w=Object(u["useRef"])(),E=Object(u["useRef"])();function k(){try{return w.current instanceof HTMLElement?w.current:Object(l["a"])(E.current)}catch(e){return null}}var O=$(b,s,k,e),S=Object(a["a"])(O,4),C=S[0],A=S[1],_=S[2],T=S[3],N=u["useRef"](T);T&&(N.current=!0);var M,I=u["useCallback"]((function(e){w.current=e,Object(c["b"])(t,e)}),[t]),L=Object(o["a"])(Object(o["a"])({},y),{},{visible:s});if(v)if(C!==j&&n(e)){var D,F;A===P?F="prepare":G(A)?F="active":A===R&&(F="start"),M=v(Object(o["a"])(Object(o["a"])({},L),{},{className:f()(x(m,C),(D={},Object(r["a"])(D,x(m,"".concat(C,"-").concat(F)),F),Object(r["a"])(D,m,"string"===typeof m),D)),style:_}),I)}else M=T?v(Object(o["a"])({},L),I):!p&&N.current?v(Object(o["a"])(Object(o["a"])({},L),{},{className:g}),I):h?v(Object(o["a"])(Object(o["a"])({},L),{},{style:{display:"none"}}),I):null;else M=null;if(u["isValidElement"](M)&&Object(c["c"])(M)){var z=M,U=z.ref;U||(M=u["cloneElement"](M,{ref:I}))}return u["createElement"](Z,{ref:E},M)}));return s.displayName="CSSMotion",s}var ee=J(k),te=n("UabQ"),ne=n("1Tqi"),re="add",oe="keep",ae="remove",ie="removed";function ue(e){var t;return t=e&&"object"===Object(i["a"])(e)&&"key"in e?e:{key:e},Object(o["a"])(Object(o["a"])({},t),{},{key:String(t.key)})}function le(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map(ue)}function ce(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,a=t.length,i=le(e),u=le(t);i.forEach((function(e){for(var t=!1,i=r;i1}));return c.forEach((function(e){n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==ae})),n.forEach((function(t){t.key===e&&(t.status=oe)}))})),n}var se=["component","children","onVisibleChanged","onAllRemoved"],fe=["status"],de=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function pe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ee,n=function(e){Object(Q["a"])(r,e);var n=Object(Y["a"])(r);function r(){var e;Object(K["a"])(this,r);for(var t=arguments.length,a=new Array(t),i=0;i=0||(o[n]=e[n]);return o}function y(e,t){if(null==e)return{};var n,r,o=g(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function b(e,t){return w(e)||E(e,t)||k(e,t)||S()}function w(e){if(Array.isArray(e))return e}function E(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,u=!1;try{for(n=n.call(e);!(i=(r=n.next()).done);i=!0)if(a.push(r.value),t&&a.length===t)break}catch(l){u=!0,o=l}finally{try{i||null==n["return"]||n["return"]()}finally{if(u)throw o}}return a}}function k(e,t){if(e){if("string"===typeof e)return O(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(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?O(e,t):void 0}}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)f=a.createElement(u[p],s,f),p-=1}return f}return o}function P(e){var t,n,r,a=e.route,i=e.index,u=e.opts,l={key:a.key||i,exact:a.exact,strict:a.strict,sensitive:a.sensitive,path:a.path};return a.redirect?c["default"].createElement(o.Redirect,m({},l,{from:a.path,to:a.redirect})):(!u.ssrProps||u.isServer||(null===(t=a.component)||void 0===t?void 0:t.wrapInitialPropsLoaded)||!(null===(n=a.component)||void 0===n?void 0:n.getInitialProps)&&!(null===(r=a.component)||void 0===r?void 0:r.preload)||(a.component=_(a,u)),c["default"].createElement(x,m({},l,{render:function(e){return T({route:a,opts:u,props:e})}})))}function R(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.routes?c["default"].createElement(C,t,e.routes.map((function(t,n){return P({route:t,index:n,opts:d(d({},e),{},{rootRoutes:e.rootRoutes||e.routes})})}))):null}var N=["history"];function M(e){var t=e.history,n=y(e,N);return a.useEffect((function(){function r(t,r){var a=u.matchRoutes(e.routes,t.pathname);"undefined"!==typeof document&&void 0!==n.defaultTitle&&(document.title=a.length&&a[a.length-1].route.title||n.defaultTitle||""),e.plugin.applyPlugins({key:"onRouteChange",type:o.ApplyPluginsType.event,args:{routes:e.routes,matchedRoutes:a,location:t,action:r}})}return window.g_useSSR&&(window.g_initialProps=null),r(t.location,"POP"),t.listen(r)}),[t]),c["default"].createElement(o.Router,{history:t},R(n))}function I(e){return e.plugin.applyPlugins({type:o.ApplyPluginsType.modify,key:"rootContainer",initialValue:c["default"].createElement(M,{history:e.history,routes:e.routes,plugin:e.plugin,ssrProps:e.ssrProps,defaultTitle:e.defaultTitle}),args:{history:e.history,routes:e.routes,plugin:e.plugin}})}function L(e){var t=I(e);if(!e.rootElement)return t;var n="string"===typeof e.rootElement?document.getElementById(e.rootElement):e.rootElement,r=e.callback||function(){};if(window.g_useSSR)s["default"].hydrateRoot(n,t),r();else{var o=s["default"].createRoot(n);o.render(t),r()}}t.renderClient=L,t.renderRoutes=R},eyaU:function(e,t,n){var r=n("4uZn"),o=n("6SQG"),a=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?a(r[e])||a(o[e]):r[e]&&r[e][t]||o[e]&&o[e][t]}},eyew:function(e,t,n){"use strict";var r=n("OOCw"),o=n("r+6h"),a=n("THzI"),i=n("OdMF"),u=n("JSMs"),l=n("zesz"),c=n("6ssM").f;o&&r({target:"Object",proto:!0,forced:a},{__lookupSetter__:function(e){var t,n=i(this),r=u(e,!0);do{if(t=c(n,r))return t.set}while(n=l(n))}})},f2HW: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}))},f3hl:function(e,t,n){"use strict";var r=n("VdqM"),o=n("jhzO");function a(){var e=n("gbKz");return a=function(){return e},e}function i(e,t){return f(e)||s(e,t)||l(e,t)||u()}function u(){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 l(e,t){if(e){if("string"===typeof e)return c(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(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0})).join("&")},t.parseUrl=function(e,t){t=Object.assign({decode:!0},t);var n=l(e,"#"),o=r(n,2),a=o[0],i=o[1];return Object.assign({url:a.split("?")[0]||"",query:E(b(e),t)},t&&t.parseFragmentIdentifier&&i?{fragmentIdentifier:v(i,t)}:{})},t.stringifyUrl=function(e,n){n=Object.assign({encode:!0,strict:!0},n);var r=g(e.url).split("?")[0]||"",o=t.extract(e.url),a=t.parse(o,{sort:!1}),i=Object.assign(a,e.query),u=t.stringify(i,n);u&&(u="?".concat(u));var l=y(e.url);return e.fragmentIdentifier&&(l="#".concat(h(e.fragmentIdentifier,n))),"".concat(r).concat(u).concat(l)},t.pick=function(e,n,r){r=Object.assign({parseFragmentIdentifier:!0},r);var o=t.parseUrl(e,r),a=o.url,i=o.query,u=o.fragmentIdentifier;return t.stringifyUrl({url:a,query:c(i,n),fragmentIdentifier:u},r)},t.exclude=function(e,n,r){var o=Array.isArray(n)?function(e){return!n.includes(e)}:function(e,t){return!n(e,t)};return t.pick(e,o,r)}},gTJW:function(e,t,n){"use strict";var r=n("OOCw"),o=n("qyeh"),a=n("2fm6");r({target:"Set",proto:!0,real:!0,forced:o},{deleteAll:function(){return a.apply(this,arguments)}})},gUNb:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("CAEb");function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Object(r["a"])(e,t)}},gbKz:function(e,t,n){"use strict";e.exports=n("bnod")},"h+/6":function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},"h/6S":function(e,t,n){"use strict";var r=n("TLpq");t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},h9Wi:function(e,t,n){var r=n("OOCw"),o=n("2hel"),a=Math.acosh,i=Math.log,u=Math.sqrt,l=Math.LN2,c=!a||710!=Math.floor(a(Number.MAX_VALUE))||a(1/0)!=1/0;r({target:"Math",stat:!0,forced:c},{acosh:function(e){return(e=+e)<1?NaN:e>94906265.62425156?i(e)+l:o(e-1+u(e-1)*u(e+1))}})},hEAb:function(e,t,n){},hWwf:function(e,t,n){"use strict";var r=n("x+sk"),o=n("0JbB"),a=n("zesz"),i=n("3Hes"),u=i("hasInstance"),l=Function.prototype;u in l||o.f(l,u,{value:function(e){if("function"!=typeof this||!r(e))return!1;if(!r(this.prototype))return e instanceof this;while(e=a(e))if(this.prototype===e)return!0;return!1}})},hpYE:function(e,t,n){"use strict";var r=n("684d"),o=n("ANLo"),a=n("upgS"),i=n("rUEg"),u=n("7/pz"),l=Math.min,c=[].lastIndexOf,s=!!c&&1/[1].lastIndexOf(1,-0)<0,f=i("lastIndexOf"),d=u("indexOf",{ACCESSORS:!0,1:0}),p=s||!f||!d;e.exports=p?function(e){if(s)return c.apply(this,arguments)||0;var t=r(this),n=a(t.length),i=n-1;for(arguments.length>1&&(i=l(i,o(arguments[1]))),i<0&&(i=n+i);i>=0;i--)if(i in t&&t[i]===e)return i||0;return-1}:c},i3On:function(e,t,n){"use strict";var r=n("OOCw"),o=n("qyeh"),a=n("2fm6");r({target:"WeakSet",proto:!0,real:!0,forced:o},{deleteAll:function(){return a.apply(this,arguments)}})},iBNQ:function(e,t,n){var r=n("OOCw");r({target:"Math",stat:!0},{RAD_PER_DEG:180/Math.PI})},iEEW:function(e,t,n){"use strict";var r=n("gbKz"),o=n("HAS1"),a=Object(o["a"])()?r["useLayoutEffect"]:r["useEffect"];t["a"]=a},iIWa:function(e,t,n){var r=n("OOCw"),o=n("HRbj");r({target:"WeakSet",stat:!0},{from:o})},iJ36:function(e,t,n){var r=n("GXoa");r("Uint8",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},iLo9:function(e,t,n){"use strict";var r=n("r+6h"),o=n("ZGY3"),a=n("OdMF"),i=n("upgS"),u=n("0JbB").f;r&&!("lastIndex"in[])&&(u(Array.prototype,"lastIndex",{configurable:!0,get:function(){var e=a(this),t=i(e.length);return 0==t?0:t-1}}),o("lastIndex"))},"iS+J":function(e,t,n){var r=n("OOCw"),o=n("N+aw").values;r({target:"Object",stat:!0},{values:function(e){return o(e)}})},ifMV:function(e,t,n){"use strict";function r(){var e=a(n("gbKz"));return r=function(){return e},e}function o(){var e=n("u4Q2");return o=function(){return e},e}function a(e){return e&&e.__esModule?e:{default:e}}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t1?arguments[1]:void 0,t.length)),r=String(e);return s?s.call(t,r,n):t.slice(n,n+r.length)===r}})},"io+V":function(e,t,n){"use strict";var r=n("OOCw"),o=n("r+6h"),a=n("zesz"),i=n("d8EH"),u=n("QWtl"),l=n("0JbB"),c=n("ZVkV"),s=n("uZx/"),f=n("MZA9"),d=n("uJNS"),p=d.set,h=d.getterFor("AggregateError"),v=function(e,t){var n=this;if(!(n instanceof v))return new v(e,t);i&&(n=i(new Error(t),a(n)));var r=[];return s(e,r.push,r),o?p(n,{errors:r,type:"AggregateError"}):n.errors=r,void 0!==t&&f(n,"message",String(t)),n};v.prototype=u(Error.prototype,{constructor:c(5,v),message:c(5,""),name:c(5,"AggregateError")}),o&&l.f(v.prototype,"errors",{get:function(){return h(this).errors},configurable:!0}),r({global:!0},{AggregateError:v})},iojd:function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}function o(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,u=!1;try{for(n=n.call(e);!(i=(r=n.next()).done);i=!0)if(a.push(r.value),t&&a.length===t)break}catch(l){u=!0,o=l}finally{try{i||null==n["return"]||n["return"]()}finally{if(u)throw o}}return a}}n.d(t,"a",(function(){return u}));var a=n("NDrN");function i(){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(e,t){return r(e)||o(e,t)||Object(a["a"])(e,t)||i()}},iwOu:function(e,t,n){"use strict";var r=n("OOCw"),o=n("jssG").left,a=n("rUEg"),i=n("7/pz"),u=a("reduce"),l=i("reduce",{1:0});r({target:"Array",proto:!0,forced:!u||!l},{reduce:function(e){return o(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"j/ks":function(e,t,n){"use strict";var r=n("g0aX"),o=n("upgS"),a=n("v3z7"),i=function(e,t,n,u,l,c,s,f){var d,p=l,h=0,v=!!s&&a(s,f,3);while(h0&&r(d))p=i(e,t,d,o(d.length),p,c-1)-1;else{if(p>=9007199254740991)throw TypeError("Exceed the acceptable array length");e[p]=d}p++}h++}return p};e.exports=i},j2YP:function(e,t,n){"use strict";var r=n("OOCw"),o=n("j/ks"),a=n("OdMF"),i=n("upgS"),u=n("ANLo"),l=n("63eO");r({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=a(this),n=i(t.length),r=l(t,0);return r.length=o(r,t,t,n,0,void 0===e?1:u(e)),r}})},j3Tr:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=function(e){return+setTimeout(e,16)},o=function(e){return clearTimeout(e)};"undefined"!==typeof window&&"requestAnimationFrame"in window&&(r=function(e){return window.requestAnimationFrame(e)},o=function(e){return window.cancelAnimationFrame(e)});var a=0,i=new Map;function u(e){i["delete"](e)}function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;a+=1;var n=a;function o(t){if(0===t)u(n),e();else{var a=r((function(){o(t-1)}));i.set(n,a)}}return o(t),n}l.cancel=function(e){var t=i.get(e);return u(t),o(t)}},jETf:function(e,t,n){"use strict";var r=n("TxBV"),o=n("gArs").getWeakData,a=n("sErw"),i=n("x+sk"),u=n("CZSf"),l=n("uZx/"),c=n("M+Sl"),s=n("oEsY"),f=n("uJNS"),d=f.set,p=f.getterFor,h=c.find,v=c.findIndex,m=0,g=function(e){return e.frozen||(e.frozen=new y)},y=function(){this.entries=[]},b=function(e,t){return h(e.entries,(function(e){return e[0]===t}))};y.prototype={get:function(e){var t=b(this,e);if(t)return t[1]},has:function(e){return!!b(this,e)},set:function(e,t){var n=b(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=v(this.entries,(function(t){return t[0]===e}));return~t&&this.entries.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,c){var f=e((function(e,r){u(e,f,t),d(e,{type:t,id:m++,frozen:void 0}),void 0!=r&&l(r,e[c],e,n)})),h=p(t),v=function(e,t,n){var r=h(e),i=o(a(t),!0);return!0===i?g(r).set(t,n):i[r.id]=n,e};return r(f.prototype,{delete:function(e){var t=h(this);if(!i(e))return!1;var n=o(e);return!0===n?g(t)["delete"](e):n&&s(n,t.id)&&delete n[t.id]},has:function(e){var t=h(this);if(!i(e))return!1;var n=o(e);return!0===n?g(t).has(e):n&&s(n,t.id)}}),r(f.prototype,n?{get:function(e){var t=h(this);if(i(e)){var n=o(e);return!0===n?g(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return v(this,e,t)}}:{add:function(e){return v(this,e,!0)}}),f}}},jHOP:function(e,t,n){"use strict";var r=n("OOCw"),o=n("qyeh"),a=n("sErw"),i=n("v3z7"),u=n("QHn5"),l=n("uZx/");r({target:"Map",proto:!0,real:!0,forced:o},{findKey:function(e){var t=a(this),n=u(t),r=i(e,arguments.length>1?arguments[1]:void 0,3);return l(n,(function(e,n){if(r(n,e,t))return l.stop(e)}),void 0,!0,!0).result}})},jYqw:function(e,t,n){"use strict";var r=n("OOCw"),o=n("A2zS");r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},jax1:function(e,t,n){"use strict";var r=n("ANLo"),o=n("z43i");e.exports="".repeat||function(e){var t=String(o(this)),n="",a=r(e);if(a<0||a==1/0)throw RangeError("Wrong number of repetitions");for(;a>0;(a>>>=1)&&(t+=t))1&a&&(n+=t);return n}},jhIj:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("iojd"),o=n("gbKz");function a(e){var t=o["useRef"](!1),n=o["useState"](e),a=Object(r["a"])(n,2),i=a[0],u=a[1];function l(e,n){n&&t.current||u(e)}return o["useEffect"]((function(){return t.current=!1,function(){t.current=!0}}),[]),[i,l]}},"jht+":function(e,t,n){var r=n("OOCw");r({target:"Math",stat:!0},{DEG_PER_RAD:Math.PI/180})},jhzO:function(e,t){function n(e,t){for(var n=0;n=0:f>d;d+=p)d in s&&(l=n(l,s[d],d,c));return l}};e.exports={left:u(!1),right:u(!0)}},jukf:function(e,t,n){var r=n("6SQG"),o=n("MZA9");e.exports=function(e,t){try{o(r,e,t)}catch(n){r[e]=t}return t}},"k0+P":function(e,t,n){},kMjI:function(e,t,n){var r=n("5yEw"),o=n("uF/W"),a=n("QiOl");r||o(Object.prototype,"toString",a,{unsafe:!0})},kXTd:function(e,t,n){var r=n("6SQG"),o=r.isFinite;e.exports=Number.isFinite||function(e){return"number"==typeof e&&o(e)}},"kZ+D":function(e,t,n){var r=n("OOCw"),o=n("SuUP"),a=n("eyaU");r({global:!0},{compositeSymbol:function(){return 1===arguments.length&&"string"===typeof arguments[0]?a("Symbol")["for"](arguments[0]):o.apply(null,arguments).get("symbol",a("Symbol"))}})},kZcd:function(e,t,n){"use strict";n.r(t);var r=n("gbKz"),o=n.n(r),a=n("UabQ"),i=n("5i7B"),u=n("LGux"),l=n("Pu4S"),c=n("1Tqi"),s=n("bXzL"),f=n("Ebyb"),d=n.n(f),p=n("xoaw"),h=function(){if("undefined"===typeof navigator||"undefined"===typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return!(!/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)&&!/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null===e||void 0===e?void 0:e.substr(0,4)))},v=n("iojd");function m(e){var t=r["useRef"]();t.current=e;var n=r["useCallback"]((function(){for(var e,n=arguments.length,r=new Array(n),o=0;od&&pl+v){n=r-1;break}}for(var a=0,s=t-1;s>=0;s-=1){var f=e.get(c[s].key)||N;if(f[u]=0||(o[n]=e[n]);return o}function B(e,t){if(null==e)return{};var n,r,o=U(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var H=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],G=void 0;function V(e,t){var n=e.prefixCls,o=e.invalidate,a=e.item,i=e.renderItem,u=e.responsive,l=e.responsiveDisabled,c=e.registerSize,s=e.itemKey,f=e.className,p=e.style,h=e.children,v=e.display,m=e.order,g=e.component,y=void 0===g?"div":g,b=B(e,H),w=u&&!v;function E(e){c(s,e)}r["useEffect"]((function(){return function(){E(null)}}),[]);var k,O=i&&a!==G?i(a):h;o||(k={opacity:w?0:1,height:w?0:G,overflowY:w?"hidden":G,order:u?m:G,pointerEvents:w?"none":G,position:w?"absolute":G});var S={};w&&(S["aria-hidden"]=!0);var j=r["createElement"](y,F({className:d()(!o&&n,f),style:Object(z["a"])(Object(z["a"])({},k),p)},S,b,{ref:t}),O);return u&&(j=r["createElement"](x["a"],{onResize:function(e){var t=e.offsetWidth;E(t)},disabled:l},j)),j}var W=r["forwardRef"](V);W.displayName="Item";var $=W;function K(){var e=Object(b["a"])({}),t=Object(v["a"])(e,2),n=t[1],o=Object(r["useRef"])([]),a=0,i=0;function u(e){var t=a;a+=1,o.current.lengthg,je=Object(r["useMemo"])((function(){var e=i;return Oe?e=null===R&&_?i:i.slice(0,Math.min(i.length,M/f)):"number"===typeof g&&(e=i.slice(0,g)),e}),[i,f,R,g,Oe]),Ce=Object(r["useMemo"])((function(){return Oe?i.slice(ve+1):i.slice(je.length)}),[i,je,Oe,ve]),Ae=Object(r["useCallback"])((function(e,t){var n;return"function"===typeof c?c(e):null!==(n=c&&(null===e||void 0===e?void 0:e[c]))&&void 0!==n?n:t}),[c]),_e=Object(r["useCallback"])(u||function(e){return e},[u]);function Te(e,t){he(e),t||(be(eM){Te(r-1),se(e-o-ae+Y);break}}E&&Ie(0)+ae>M&&se(null)}}),[M,D,Y,ae,Ae,je]);var Le=ye&&!!Ce.length,De={};null!==ce&&Oe&&(De={position:"absolute",left:ce,top:0});var Fe,ze={prefixCls:we,responsive:Oe,component:S,invalidate:Se},Ue=l?function(e,t){var n=Ae(e,t);return r["createElement"](te.Provider,{key:n,value:Object(z["a"])(Object(z["a"])({},ze),{},{order:t,item:e,itemKey:n,registerSize:Re,display:t<=ve})},l(e,t))}:function(e,t){var n=Ae(e,t);return r["createElement"]($,F({},ze,{order:t,key:n,item:e,renderItem:_e,itemKey:n,registerSize:Re,display:t<=ve}))},Be={order:Le?ve:Number.MAX_SAFE_INTEGER,className:"".concat(we,"-rest"),registerSize:Ne,display:Le};if(w)w&&(Fe=r["createElement"](te.Provider,{value:Object(z["a"])(Object(z["a"])({},ze),Be)},w(Ce)));else{var He=b||oe;Fe=r["createElement"]($,F({},ze,Be),"function"===typeof He?He(Ce):He)}var Ge=r["createElement"](O,F({className:d()(!Se&&o,m),style:h,ref:t},C),je.map(Ue),xe?Fe:null,E&&r["createElement"]($,F({},ze,{responsive:ke,responsiveDisabled:!Oe,order:ve,className:"".concat(we,"-suffix"),registerSize:Me,display:!0,style:De}),E));return ke&&(Ge=r["createElement"](x["a"],{onResize:Pe,disabled:!Oe},Ge)),Ge}var ie=r["forwardRef"](ae);ie.displayName="Overflow",ie.Item=J,ie.RESPONSIVE=ne,ie.INVALIDATE=re;var ue=ie,le=ue,ce=n("XYCV"),se=n("Whls"),fe=n("eUa+"),de=n("qSce"),pe=n("3yRJ"),he=n("bE0b"),ve=["children","locked"],me=r["createContext"](null);function ge(e,t){var n=Object(s["a"])({},e);return Object.keys(t).forEach((function(e){var r=t[e];void 0!==r&&(n[e]=r)})),n}function ye(e){var t=e.children,n=e.locked,o=Object(c["a"])(e,ve),a=r["useContext"](me),i=Object(he["a"])((function(){return ge(a,o)}),[a,o],(function(e,t){return!n&&(e[0]!==t[0]||!L()(e[1],t[1]))}));return r["createElement"](me.Provider,{value:i},t)}function be(e,t,n,o){var a=r["useContext"](me),i=a.activeKey,u=a.onActive,l=a.onInactive,c={active:i===e};return t||(c.onMouseEnter=function(t){null===n||void 0===n||n({key:e,domEvent:t}),u(e)},c.onMouseLeave=function(t){null===o||void 0===o||o({key:e,domEvent:t}),l(e)}),c}var we=["item"];function Ee(e){var t=e.item,n=Object(c["a"])(e,we);return Object.defineProperty(n,"item",{get:function(){return Object(D["a"])(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}function ke(e){var t,n=e.icon,o=e.props,a=e.children;return t="function"===typeof n?r["createElement"](n,Object(s["a"])({},o)):n,t||a||null}function Oe(e){var t=r["useContext"](me),n=t.mode,o=t.rtl,a=t.inlineIndent;if("inline"!==n)return null;var i=e;return o?{paddingRight:i*a}:{paddingLeft:i*a}}var Se=[],xe=r["createContext"](null);function je(){return r["useContext"](xe)}var Ce=r["createContext"](Se);function Ae(e){var t=r["useContext"](Ce);return r["useMemo"]((function(){return void 0!==e?[].concat(Object(O["a"])(t),[e]):t}),[t,e])}var _e=r["createContext"](null),Te=r["createContext"](null);function Pe(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function Re(e){var t=r["useContext"](Te);return Pe(t,e)}var Ne=r["createContext"]({}),Me=Ne,Ie=["title","attribute","elementRef"],Le=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],De=["active"],Fe=function(e){Object(fe["a"])(n,e);var t=Object(de["a"])(n);function n(){return Object(ce["a"])(this,n),t.apply(this,arguments)}return Object(se["a"])(n,[{key:"render",value:function(){var e=this.props,t=e.title,n=e.attribute,o=e.elementRef,i=Object(c["a"])(e,Ie),u=Object(pe["a"])(i,["eventKey"]);return Object(D["a"])(!n,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),r["createElement"](le.Item,Object(a["a"])({},n,{title:"string"===typeof t?t:void 0},u,{ref:o}))}}]),n}(r["Component"]),ze=function(e){var t,n=e.style,o=e.className,u=e.eventKey,l=(e.warnKey,e.disabled),f=e.itemIcon,p=e.children,h=e.role,v=e.onMouseEnter,m=e.onMouseLeave,g=e.onClick,y=e.onKeyDown,b=e.onFocus,w=Object(c["a"])(e,Le),E=Re(u),k=r["useContext"](me),S=k.prefixCls,x=k.onItemClick,j=k.disabled,C=k.overflowDisabled,_=k.itemIcon,T=k.selectedKeys,P=k.onActive,R=r["useContext"](Me),N=R._internalRenderMenuItem,M="".concat(S,"-item"),I=r["useRef"](),L=r["useRef"](),D=j||l,F=Ae(u);var z=function(e){return{key:u,keyPath:Object(O["a"])(F).reverse(),item:I.current,domEvent:e}},U=f||_,B=be(u,D,v,m),H=B.active,G=Object(c["a"])(B,De),V=T.includes(u),W=Oe(F.length),$=function(e){if(!D){var t=z(e);null===g||void 0===g||g(Ee(t)),x(t)}},K=function(e){if(null===y||void 0===y||y(e),e.which===A["a"].ENTER){var t=z(e);null===g||void 0===g||g(Ee(t)),x(t)}},q=function(e){P(u),null===b||void 0===b||b(e)},Q={};"option"===e.role&&(Q["aria-selected"]=V);var Y=r["createElement"](Fe,Object(a["a"])({ref:I,elementRef:L,role:null===h?"none":h||"menuitem",tabIndex:l?null:-1,"data-menu-id":C&&E?null:E},w,G,Q,{component:"li","aria-disabled":l,style:Object(s["a"])(Object(s["a"])({},W),n),className:d()(M,(t={},Object(i["a"])(t,"".concat(M,"-active"),H),Object(i["a"])(t,"".concat(M,"-selected"),V),Object(i["a"])(t,"".concat(M,"-disabled"),D),t),o),onClick:$,onKeyDown:K,onFocus:q}),p,r["createElement"](ke,{props:Object(s["a"])(Object(s["a"])({},e),{},{isSelected:V}),icon:U}));return N&&(Y=N(Y,e,{selected:V})),Y};function Ue(e){var t=e.eventKey,n=je(),o=Ae(t);return r["useEffect"]((function(){if(n)return n.registerPath(t,o),function(){n.unregisterPath(t,o)}}),[o]),n?null:r["createElement"](ze,e)}var Be=Ue,He=["label","children","key","type"];function Ge(e,t){return Object(p["a"])(e).map((function(e,n){if(r["isValidElement"](e)){var o,a,i=e.key,u=null!==(o=null===(a=e.props)||void 0===a?void 0:a.eventKey)&&void 0!==o?o:i,l=null===u||void 0===u;l&&(u="tmp_key-".concat([].concat(Object(O["a"])(t),[n]).join("-")));var c={key:u,eventKey:u};return r["cloneElement"](e,c)}return e}))}function Ve(e){return(e||[]).map((function(e,t){if(e&&"object"===Object(l["a"])(e)){var n=e.label,o=e.children,i=e.key,u=e.type,s=Object(c["a"])(e,He),f=null!==i&&void 0!==i?i:"tmp-".concat(t);return o||"group"===u?"group"===u?r["createElement"](So,Object(a["a"])({key:f},s,{title:n}),Ve(o)):r["createElement"](Dr,Object(a["a"])({key:f},s,{title:n}),Ve(o)):"divider"===u?r["createElement"](xo,Object(a["a"])({key:f},s)):r["createElement"](Be,Object(a["a"])({key:f},s),n)}return null})).filter((function(e){return e}))}function We(e,t,n){var r=e;return t&&(r=Ve(t)),Ge(r,n)}function $e(e){var t=r["useRef"](e);t.current=e;var n=r["useCallback"]((function(){for(var e,n=arguments.length,r=new Array(n),o=0;o=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function Pn(e,t,n,r){var o=xn.clone(e),a={width:t.width,height:t.height};return r.adjustX&&o.left=n.left&&o.left+a.width>n.right&&(a.width-=o.left+a.width-n.right),r.adjustX&&o.left+a.width>n.right&&(o.left=Math.max(n.right-a.width,n.left)),r.adjustY&&o.top=n.top&&o.top+a.height>n.bottom&&(a.height-=o.top+a.height-n.bottom),r.adjustY&&o.top+a.height>n.bottom&&(o.top=Math.max(n.bottom-a.height,n.top)),xn.mix(o,a)}function Rn(e){var t,n,r;if(xn.isWindow(e)||9===e.nodeType){var o=xn.getWindow(e);t={left:xn.getWindowScrollLeft(o),top:xn.getWindowScrollTop(o)},n=xn.viewportWidth(o),r=xn.viewportHeight(o)}else t=xn.offset(e),n=xn.outerWidth(e),r=xn.outerHeight(e);return t.width=n,t.height=r,t}function Nn(e,t){var n=t.charAt(0),r=t.charAt(1),o=e.width,a=e.height,i=e.left,u=e.top;return"c"===n?u+=a/2:"b"===n&&(u+=a),"c"===r?i+=o/2:"r"===r&&(i+=o),{left:i,top:u}}function Mn(e,t,n,r,o){var a=Nn(t,n[1]),i=Nn(e,n[0]),u=[i.left-a.left,i.top-a.top];return{left:Math.round(e.left-u[0]+r[0]-o[0]),top:Math.round(e.top-u[1]+r[1]-o[1])}}function In(e,t,n){return e.leftn.right}function Ln(e,t,n){return e.topn.bottom}function Dn(e,t,n){return e.left>n.right||e.left+t.widthn.bottom||e.top+t.height=n.right||r.top>=n.bottom}function Wn(e,t,n){var r=n.target||t,o=Rn(r),a=!Vn(r,n.overflow&&n.overflow.alwaysByViewport);return Gn(e,o,n,a)}function $n(e,t,n){var r,o,a=xn.getDocument(e),i=a.defaultView||a.parentWindow,u=xn.getWindowScrollLeft(i),l=xn.getWindowScrollTop(i),c=xn.viewportWidth(i),s=xn.viewportHeight(i);r="pageX"in t?t.pageX:u+t.clientX,o="pageY"in t?t.pageY:l+t.clientY;var f={left:r,top:o,width:0,height:0},d=r>=0&&r<=u+c&&o>=0&&o<=l+s,p=[n.points[0],"cc"];return Gn(e,f,jt(jt({},n),{},{points:p}),d)}Wn.__getOffsetParent=Cn,Wn.__getVisibleRectForElement=Tn;var Kn=n("rDMZ"),qn=n.n(Kn),Qn=n("QQXB");function Yn(e,t){return e===t||!(!e||!t)&&("pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t&&(e.clientX===t.clientX&&e.clientY===t.clientY))}function Xn(e,t){e!==document.activeElement&&st(t,e)&&"function"===typeof e.focus&&e.focus()}function Zn(e,t){var n=null,r=null;function o(e){var o=Object(v["a"])(e,1),a=o[0].target;if(document.documentElement.contains(a)){var i=a.getBoundingClientRect(),u=i.width,l=i.height,c=Math.floor(u),s=Math.floor(l);n===c&&r===s||Promise.resolve().then((function(){t({width:c,height:s})})),n=c,r=s}}var a=new Qn["a"](o);return e&&a.observe(e),function(){a.disconnect()}}var Jn=function(e,t){var n=o.a.useRef(!1),r=o.a.useRef(null);function a(){window.clearTimeout(r.current)}function i(o){if(a(),n.current&&!0!==o)r.current=window.setTimeout((function(){n.current=!1,i()}),t);else{if(!1===e())return;n.current=!0,r.current=window.setTimeout((function(){n.current=!1}),t)}}return[i,function(){n.current=!1,a()}]};function er(e){return"function"!==typeof e?null:e()}function tr(e){return"object"===Object(at["a"])(e)&&e?e:null}var nr=function(e,t){var n=e.children,r=e.disabled,a=e.target,i=e.align,u=e.onAlign,l=e.monitorWindowResize,c=e.monitorBufferTime,s=void 0===c?0:c,f=o.a.useRef({}),d=o.a.useRef(),p=o.a.Children.only(n),h=o.a.useRef({});h.current.disabled=r,h.current.target=a,h.current.align=i,h.current.onAlign=u;var m=Jn((function(){var e=h.current,t=e.disabled,n=e.target,r=e.align,o=e.onAlign;if(!t&&n){var a,i=d.current,u=er(n),l=tr(n);f.current.element=u,f.current.point=l,f.current.align=r;var c=document,s=c.activeElement;return u&&St(u)?a=Wn(i,u,r):l&&(a=$n(i,l,r)),Xn(s,i),o&&a&&o(i,a),!0}return!1}),s),g=Object(v["a"])(m,2),y=g[0],b=g[1],w=o.a.useRef({cancel:function(){}}),E=o.a.useRef({cancel:function(){}});o.a.useEffect((function(){var e=er(a),t=tr(a);d.current!==E.current.element&&(E.current.cancel(),E.current.element=d.current,E.current.cancel=Zn(d.current,y)),f.current.element===e&&Yn(f.current.point,t)&&qn()(f.current.align,i)||(y(),w.current.element!==e&&(w.current.cancel(),w.current.element=e,w.current.cancel=Zn(e,y)))})),o.a.useEffect((function(){r?b():y()}),[r]);var k=o.a.useRef(null);return o.a.useEffect((function(){l?k.current||(k.current=pt(window,"resize",y)):k.current&&(k.current.remove(),k.current=null)}),[l]),o.a.useEffect((function(){return function(){w.current.cancel(),E.current.cancel(),k.current&&k.current.remove(),b()}}),[]),o.a.useImperativeHandle(t,(function(){return{forceAlign:function(){return y(!0)}}})),o.a.isValidElement(p)&&(p=o.a.cloneElement(p,{ref:Object(dt["a"])(p.ref,d)})),p},rr=o.a.forwardRef(nr);rr.displayName="Align";var or=rr,ar=or;function ir(){ir=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",i=r.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(j){u=function(e,t,n){return e[t]=n}}function l(e,t,n,r){var o=t&&t.prototype instanceof f?t:f,a=Object.create(o.prototype),i=new O(r||[]);return a._invoke=function(e,t,n){var r="suspendedStart";return function(o,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw a;return x()}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var u=w(i,n);if(u){if(u===s)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=c(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===s)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}(e,n,i),a}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(j){return{type:"throw",arg:j}}}e.wrap=l;var s={};function f(){}function d(){}function p(){}var h={};u(h,o,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(S([])));m&&m!==t&&n.call(m,o)&&(h=m);var g=p.prototype=f.prototype=Object.create(h);function y(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function r(o,a,i,u){var l=c(e[o],e,a);if("throw"!==l.type){var s=l.arg,f=s.value;return f&&"object"==Object(at["a"])(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,i,u)}),(function(e){r("throw",e,i,u)})):t.resolve(f).then((function(e){s.value=e,i(s)}),(function(e){return r("throw",e,i,u)}))}u(l.arg)}var o;this._invoke=function(e,n){function a(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(a,a):a()}}function w(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator["return"]&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method))return s;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return s}var r=c(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,s;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,s):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,s)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),s}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),s}},e}function ur(e,t,n,r,o,a,i){try{var u=e[a](i),l=u.value}catch(c){return void n(c)}u.done?t(l):Promise.resolve(l).then(r,o)}function lr(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){ur(a,r,o,i,u,"next",e)}function u(e){ur(a,r,o,i,u,"throw",e)}i(void 0)}))}}var cr=["measure","alignPre","align",null,"motion"],sr=function(e,t){var n=Object(b["a"])(null),o=Object(v["a"])(n,2),a=o[0],i=o[1],u=Object(r["useRef"])();function l(e){i(e,!0)}function c(){S["a"].cancel(u.current)}function s(e){c(),u.current=Object(S["a"])((function(){l((function(e){switch(a){case"align":return"motion";case"motion":return"stable";default:}return e})),null===e||void 0===e||e()}))}return Object(r["useEffect"])((function(){l("measure")}),[e]),Object(r["useEffect"])((function(){switch(a){case"measure":t();break;default:}a&&(u.current=Object(S["a"])(lr(ir().mark((function e(){var t,n;return ir().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=cr.indexOf(a),n=cr[t+1],n&&-1!==t&&l(n);case 3:case"end":return e.stop()}}),e)})))))}),[a]),Object(r["useEffect"])((function(){return function(){c()}}),[]),[a,s]},fr=function(e){var t=r["useState"]({width:0,height:0}),n=Object(v["a"])(t,2),o=n[0],a=n[1];function i(e){a({width:e.offsetWidth,height:e.offsetHeight})}var u=r["useMemo"]((function(){var t={};if(e){var n=o.width,r=o.height;-1!==e.indexOf("height")&&r?t.height=r:-1!==e.indexOf("minHeight")&&r&&(t.minHeight=r),-1!==e.indexOf("width")&&n?t.width=n:-1!==e.indexOf("minWidth")&&n&&(t.minWidth=n)}return t}),[e,o]);return[u,i]},dr=r["forwardRef"]((function(e,t){var n=e.visible,o=e.prefixCls,a=e.className,i=e.style,u=e.children,l=e.zIndex,c=e.stretch,s=e.destroyPopupOnHide,f=e.forceRender,p=e.align,h=e.point,m=e.getRootDomNode,g=e.getClassNameFromAlign,b=e.onAlign,w=e.onMouseEnter,E=e.onMouseLeave,k=e.onMouseDown,O=e.onTouchStart,S=e.onClick,x=Object(r["useRef"])(),j=Object(r["useRef"])(),C=Object(r["useState"])(),A=Object(v["a"])(C,2),_=A[0],T=A[1],P=fr(c),R=Object(v["a"])(P,2),N=R[0],M=R[1];function I(){c&&M(m())}var L=sr(n,I),D=Object(v["a"])(L,2),U=D[0],B=D[1],H=Object(r["useState"])(0),G=Object(v["a"])(H,2),V=G[0],W=G[1],$=Object(r["useRef"])();function K(){return h||m}function q(){var e;null===(e=x.current)||void 0===e||e.forceAlign()}function Q(e,t){var n=g(t);_!==n&&T(n),W((function(e){return e+1})),"align"===U&&(null===b||void 0===b||b(e,t))}Object(y["a"])((function(){"alignPre"===U&&W(0)}),[U]),Object(y["a"])((function(){"align"===U&&(V<2?q():B((function(){var e;null===(e=$.current)||void 0===e||e.call($)})))}),[V]);var Y=Object(z["a"])({},Et(e));function X(){return new Promise((function(e){$.current=e}))}["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach((function(e){var t=Y[e];Y[e]=function(e,n){return B(),null===t||void 0===t?void 0:t(e,n)}})),r["useEffect"]((function(){Y.motionName||"motion"!==U||B()}),[Y.motionName,U]),r["useImperativeHandle"](t,(function(){return{forceAlign:q,getElement:function(){return j.current}}}));var Z=Object(z["a"])(Object(z["a"])({},N),{},{zIndex:l,opacity:"motion"!==U&&"stable"!==U&&n?0:void 0,pointerEvents:n||"stable"===U?void 0:"none"},i),J=!0;!(null===p||void 0===p?void 0:p.points)||"align"!==U&&"stable"!==U||(J=!1);var ee=u;return r["Children"].count(u)>1&&(ee=r["createElement"]("div",{className:"".concat(o,"-content")},u)),r["createElement"](wt["a"],F({visible:n,ref:j,leavedClassName:"".concat(o,"-hidden")},Y,{onAppearPrepare:X,onEnterPrepare:X,removeOnLeave:s,forceRender:f}),(function(e,t){var n=e.className,i=e.style,u=d()(o,a,_,n);return r["createElement"](ar,{target:K(),key:"popup",ref:x,monitorWindowResize:!0,disabled:J,align:p,onAlign:Q},r["createElement"]("div",{ref:t,className:u,onMouseEnter:w,onMouseLeave:E,onMouseDownCapture:k,onTouchStartCapture:O,onClick:S,style:Object(z["a"])(Object(z["a"])({},i),Z)},ee))}))}));dr.displayName="PopupInner";var pr=dr,hr=r["forwardRef"]((function(e,t){var n=e.prefixCls,o=e.visible,a=e.zIndex,i=e.children,u=e.mobile;u=void 0===u?{}:u;var l=u.popupClassName,c=u.popupStyle,s=u.popupMotion,f=void 0===s?{}:s,p=u.popupRender,h=e.onClick,v=r["useRef"]();r["useImperativeHandle"](t,(function(){return{forceAlign:function(){},getElement:function(){return v.current}}}));var m=Object(z["a"])({zIndex:a},c),g=i;return r["Children"].count(i)>1&&(g=r["createElement"]("div",{className:"".concat(n,"-content")},i)),p&&(g=p(g)),r["createElement"](wt["a"],F({visible:o,ref:v,removeOnLeave:!0},f),(function(e,t){var o=e.className,a=e.style,i=d()(n,l,o);return r["createElement"]("div",{ref:t,className:i,onClick:h,style:Object(z["a"])(Object(z["a"])({},a),m)},g)}))}));hr.displayName="MobilePopupInner";var vr=hr,mr=["visible","mobile"],gr=r["forwardRef"]((function(e,t){var n=e.visible,o=e.mobile,a=B(e,mr),i=Object(r["useState"])(n),u=Object(v["a"])(i,2),l=u[0],c=u[1],s=Object(r["useState"])(!1),f=Object(v["a"])(s,2),d=f[0],p=f[1],m=Object(z["a"])(Object(z["a"])({},a),{},{visible:l});Object(r["useEffect"])((function(){c(n),n&&o&&p(h())}),[n,o]);var g=d?r["createElement"](vr,F({},m,{mobile:o,ref:t})):r["createElement"](pr,F({},m,{ref:t}));return r["createElement"]("div",null,r["createElement"](kt,m),g)}));gr.displayName="Popup";var yr=gr,br=r["createContext"](null),wr=br;function Er(){}function kr(){return""}function Or(e){return e?e.ownerDocument:window.document}var Sr=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function xr(e){var t=function(t){nt(o,t);var n=ut(o);function o(e){var t,a;return Xe(this,o),t=n.call(this,e),t.popupRef=r["createRef"](),t.triggerRef=r["createRef"](),t.portalContainer=void 0,t.attachId=void 0,t.clickOutsideHandler=void 0,t.touchOutsideHandler=void 0,t.contextMenuOutsideHandler1=void 0,t.contextMenuOutsideHandler2=void 0,t.mouseDownTimeout=void 0,t.focusTime=void 0,t.preClickTime=void 0,t.preTouchTime=void 0,t.delayTimer=void 0,t.hasPopupMouseDown=void 0,t.onMouseEnter=function(e){var n=t.props.mouseEnterDelay;t.fireEvents("onMouseEnter",e),t.delaySetPopupVisible(!0,n,n?null:e)},t.onMouseMove=function(e){t.fireEvents("onMouseMove",e),t.setPoint(e)},t.onMouseLeave=function(e){t.fireEvents("onMouseLeave",e),t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onPopupMouseEnter=function(){t.clearDelayTimer()},t.onPopupMouseLeave=function(e){var n;e.relatedTarget&&!e.relatedTarget.setTimeout&&st(null===(n=t.popupRef.current)||void 0===n?void 0:n.getElement(),e.relatedTarget)||t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onFocus=function(e){t.fireEvents("onFocus",e),t.clearDelayTimer(),t.isFocusToShow()&&(t.focusTime=Date.now(),t.delaySetPopupVisible(!0,t.props.focusDelay))},t.onMouseDown=function(e){t.fireEvents("onMouseDown",e),t.preClickTime=Date.now()},t.onTouchStart=function(e){t.fireEvents("onTouchStart",e),t.preTouchTime=Date.now()},t.onBlur=function(e){t.fireEvents("onBlur",e),t.clearDelayTimer(),t.isBlurToHide()&&t.delaySetPopupVisible(!1,t.props.blurDelay)},t.onContextMenu=function(e){e.preventDefault(),t.fireEvents("onContextMenu",e),t.setPopupVisible(!0,e)},t.onContextMenuClose=function(){t.isContextMenuToShow()&&t.close()},t.onClick=function(e){if(t.fireEvents("onClick",e),t.focusTime){var n;if(t.preClickTime&&t.preTouchTime?n=Math.min(t.preClickTime,t.preTouchTime):t.preClickTime?n=t.preClickTime:t.preTouchTime&&(n=t.preTouchTime),Math.abs(n-t.focusTime)<20)return;t.focusTime=0}t.preClickTime=0,t.preTouchTime=0,t.isClickToShow()&&(t.isClickToHide()||t.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault();var r=!t.state.popupVisible;(t.isClickToHide()&&!r||r&&t.isClickToShow())&&t.setPopupVisible(!t.state.popupVisible,e)},t.onPopupMouseDown=function(){var e;(t.hasPopupMouseDown=!0,clearTimeout(t.mouseDownTimeout),t.mouseDownTimeout=window.setTimeout((function(){t.hasPopupMouseDown=!1}),0),t.context)&&(e=t.context).onPopupMouseDown.apply(e,arguments)},t.onDocumentClick=function(e){if(!t.props.mask||t.props.maskClosable){var n=e.target,r=t.getRootDomNode(),o=t.getPopupDomNode();st(r,n)&&!t.isContextMenuOnly()||st(o,n)||t.hasPopupMouseDown||t.close()}},t.getRootDomNode=function(){var e=t.props.getTriggerDOMNode;if(e)return e(t.triggerRef.current);try{var n=Object(ft["a"])(t.triggerRef.current);if(n)return n}catch(r){}return ct.a.findDOMNode(et(t))},t.getPopupClassNameFromAlign=function(e){var n=[],r=t.props,o=r.popupPlacement,a=r.builtinPlacements,i=r.prefixCls,u=r.alignPoint,l=r.getPopupClassNameFromAlign;return o&&a&&n.push(bt(a,i,e,u)),l&&n.push(l(e)),n.join(" ")},t.getComponent=function(){var e=t.props,n=e.prefixCls,o=e.destroyPopupOnHide,a=e.popupClassName,i=e.onPopupAlign,u=e.popupMotion,l=e.popupAnimation,c=e.popupTransitionName,s=e.popupStyle,f=e.mask,d=e.maskAnimation,p=e.maskTransitionName,h=e.maskMotion,v=e.zIndex,m=e.popup,g=e.stretch,y=e.alignPoint,b=e.mobile,w=e.forceRender,E=e.onPopupClick,k=t.state,O=k.popupVisible,S=k.point,x=t.getPopupAlign(),j={};return t.isMouseEnterToShow()&&(j.onMouseEnter=t.onPopupMouseEnter),t.isMouseLeaveToHide()&&(j.onMouseLeave=t.onPopupMouseLeave),j.onMouseDown=t.onPopupMouseDown,j.onTouchStart=t.onPopupMouseDown,r["createElement"](yr,F({prefixCls:n,destroyPopupOnHide:o,visible:O,point:y&&S,className:a,align:x,onAlign:i,animation:l,getClassNameFromAlign:t.getPopupClassNameFromAlign},j,{stretch:g,getRootDomNode:t.getRootDomNode,style:s,mask:f,zIndex:v,transitionName:c,maskAnimation:d,maskTransitionName:p,maskMotion:h,ref:t.popupRef,motion:u,mobile:b,forceRender:w,onClick:E}),"function"===typeof m?m():m)},t.attachParent=function(e){S["a"].cancel(t.attachId);var n,r=t.props,o=r.getPopupContainer,a=r.getDocument,i=t.getRootDomNode();o?(i||0===o.length)&&(n=o(i)):n=a(t.getRootDomNode()).body,n?n.appendChild(e):t.attachId=Object(S["a"])((function(){t.attachParent(e)}))},t.getContainer=function(){if(!t.portalContainer){var e=t.props.getDocument,n=e(t.getRootDomNode()).createElement("div");n.style.position="absolute",n.style.top="0",n.style.left="0",n.style.width="100%",t.portalContainer=n}return t.attachParent(t.portalContainer),t.portalContainer},t.setPoint=function(e){var n=t.props.alignPoint;n&&e&&t.setState({point:{pageX:e.pageX,pageY:e.pageY}})},t.handlePortalUpdate=function(){t.state.prevPopupVisible!==t.state.popupVisible&&t.props.afterPopupVisibleChange(t.state.popupVisible)},t.triggerContextValue={onPopupMouseDown:t.onPopupMouseDown},a="popupVisible"in e?!!e.popupVisible:!!e.defaultPopupVisible,t.state={prevPopupVisible:a,popupVisible:a},Sr.forEach((function(e){t["fire".concat(e)]=function(n){t.fireEvents(e,n)}})),t}return Je(o,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e,t=this.props,n=this.state;if(n.popupVisible)return this.clickOutsideHandler||!this.isClickToHide()&&!this.isContextMenuToShow()||(e=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=pt(e,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(e=e||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=pt(e,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(e=e||t.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=pt(e,"scroll",this.onContextMenuClose)),void(!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=pt(window,"blur",this.onContextMenuClose)));this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),S["a"].cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var e;return(null===(e=this.popupRef.current)||void 0===e?void 0:e.getElement())||null}},{key:"getPopupAlign",value:function(){var e=this.props,t=e.popupPlacement,n=e.popupAlign,r=e.builtinPlacements;return t&&r?yt(r,t,n):n}},{key:"setPopupVisible",value:function(e,t){var n=this.props.alignPoint,r=this.state.popupVisible;this.clearDelayTimer(),r!==e&&("popupVisible"in this.props||this.setState({popupVisible:e,prevPopupVisible:r}),this.props.onPopupVisibleChange(e)),n&&t&&e&&this.setPoint(t)}},{key:"delaySetPopupVisible",value:function(e,t,n){var r=this,o=1e3*t;if(this.clearDelayTimer(),o){var a=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=window.setTimeout((function(){r.setPopupVisible(e,a),r.clearDelayTimer()}),o)}else this.setPopupVisible(e,n)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(e){var t=this.props.children.props,n=this.props;return t[e]&&n[e]?this["fire".concat(e)]:t[e]||n[e]}},{key:"isClickToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isContextMenuOnly",value:function(){var e=this.props.action;return"contextMenu"===e||1===e.length&&"contextMenu"===e[0]}},{key:"isContextMenuToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("contextMenu")||-1!==n.indexOf("contextMenu")}},{key:"isClickToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isMouseEnterToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseEnter")}},{key:"isMouseLeaveToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseLeave")}},{key:"isFocusToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("focus")}},{key:"isBlurToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("blur")}},{key:"forcePopupAlign",value:function(){var e;this.state.popupVisible&&(null===(e=this.popupRef.current)||void 0===e||e.forceAlign())}},{key:"fireEvents",value:function(e,t){var n=this.props.children.props[e];n&&n(t);var r=this.props[e];r&&r(t)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var t=this.state.popupVisible,n=this.props,o=n.children,a=n.forceRender,i=n.alignPoint,u=n.className,l=n.autoDestroy,c=r["Children"].only(o),s={key:"trigger"};this.isContextMenuToShow()?s.onContextMenu=this.onContextMenu:s.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(s.onClick=this.onClick,s.onMouseDown=this.onMouseDown,s.onTouchStart=this.onTouchStart):(s.onClick=this.createTwoChains("onClick"),s.onMouseDown=this.createTwoChains("onMouseDown"),s.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(s.onMouseEnter=this.onMouseEnter,i&&(s.onMouseMove=this.onMouseMove)):s.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?s.onMouseLeave=this.onMouseLeave:s.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(s.onFocus=this.onFocus,s.onBlur=this.onBlur):(s.onFocus=this.createTwoChains("onFocus"),s.onBlur=this.createTwoChains("onBlur"));var f=d()(c&&c.props&&c.props.className,u);f&&(s.className=f);var p=Object(z["a"])({},s);Object(dt["c"])(c)&&(p.ref=Object(dt["a"])(this.triggerRef,c.ref));var h,v=r["cloneElement"](c,p);return(t||this.popupRef.current||a)&&(h=r["createElement"](e,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!t&&l&&(h=null),r["createElement"](wr.Provider,{value:this.triggerContextValue},v,h)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.popupVisible,r={};return void 0!==n&&t.popupVisible!==n&&(r.popupVisible=n,r.prevPopupVisible=t.popupVisible),r}}]),o}(r["Component"]);return t.contextType=wr,t.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:kr,getDocument:Or,onPopupVisibleChange:Er,afterPopupVisibleChange:Er,onPopupAlign:Er,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},t}var jr=xr(mt),Cr={adjustX:1,adjustY:1},Ar={topLeft:{points:["bl","tl"],overflow:Cr,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Cr,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:Cr,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:Cr,offset:[4,0]}},_r={topLeft:{points:["bl","tl"],overflow:Cr,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Cr,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:Cr,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:Cr,offset:[4,0]}};function Tr(e,t,n){return t||(n?n[e]||n.other:void 0)}var Pr={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Rr(e){var t=e.prefixCls,n=e.visible,o=e.children,a=e.popup,l=e.popupClassName,c=e.popupOffset,f=e.disabled,p=e.mode,h=e.onVisibleChange,v=r["useContext"](me),m=v.getPopupContainer,g=v.rtl,y=v.subMenuOpenDelay,b=v.subMenuCloseDelay,w=v.builtinPlacements,E=v.triggerSubMenuAction,k=v.forceSubMenuRender,O=v.rootClassName,x=v.motion,j=v.defaultMotions,C=r["useState"](!1),A=Object(u["a"])(C,2),_=A[0],T=A[1],P=g?Object(s["a"])(Object(s["a"])({},_r),w):Object(s["a"])(Object(s["a"])({},Ar),w),R=Pr[p],N=Tr(p,x,j),M=Object(s["a"])(Object(s["a"])({},N),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),I=r["useRef"]();return r["useEffect"]((function(){return I.current=Object(S["a"])((function(){T(n)})),function(){S["a"].cancel(I.current)}}),[n]),r["createElement"](jr,{prefixCls:t,popupClassName:d()("".concat(t,"-popup"),Object(i["a"])({},"".concat(t,"-rtl"),g),l,O),stretch:"horizontal"===p?"minWidth":null,getPopupContainer:m,builtinPlacements:P,popupPlacement:R,popupVisible:_,popup:a,popupAlign:c&&{offset:c},action:f?[]:[E],mouseEnterDelay:y,mouseLeaveDelay:b,onPopupVisibleChange:h,forceRender:k,popupMotion:M},o)}function Nr(e){var t=e.id,n=e.open,o=e.keyPath,i=e.children,l="inline",c=r["useContext"](me),f=c.prefixCls,d=c.forceSubMenuRender,p=c.motion,h=c.defaultMotions,v=c.mode,m=r["useRef"](!1);m.current=v===l;var g=r["useState"](!m.current),y=Object(u["a"])(g,2),b=y[0],w=y[1],E=!!m.current&&n;r["useEffect"]((function(){m.current&&w(!1)}),[v]);var k=Object(s["a"])({},Tr(l,p,h));o.length>1&&(k.motionAppear=!1);var O=k.onVisibleChanged;return k.onVisibleChanged=function(e){return m.current||e||w(!0),null===O||void 0===O?void 0:O(e)},b?null:r["createElement"](ye,{mode:l,locked:!m.current},r["createElement"](wt["a"],Object(a["a"])({visible:E},k,{forceRender:d,removeOnLeave:!1,leavedClassName:"".concat(f,"-hidden")}),(function(e){var n=e.className,o=e.style;return r["createElement"](Ye,{id:t,className:n,style:o},i)})))}var Mr=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Ir=["active"],Lr=function(e){var t,n=e.style,o=e.className,l=e.title,f=e.eventKey,p=(e.warnKey,e.disabled),h=e.internalPopupClose,v=e.children,m=e.itemIcon,g=e.expandIcon,y=e.popupClassName,b=e.popupOffset,w=e.onClick,E=e.onMouseEnter,k=e.onMouseLeave,O=e.onTitleClick,S=e.onTitleMouseEnter,x=e.onTitleMouseLeave,j=Object(c["a"])(e,Mr),C=Re(f),A=r["useContext"](me),_=A.prefixCls,T=A.mode,P=A.openKeys,R=A.disabled,N=A.overflowDisabled,M=A.activeKey,I=A.selectedKeys,L=A.itemIcon,D=A.expandIcon,F=A.onItemClick,z=A.onOpenChange,U=A.onActive,B=r["useContext"](Me),H=B._internalRenderSubMenuItem,G=r["useContext"](_e),V=G.isSubPathKey,W=Ae(),$="".concat(_,"-submenu"),K=R||p,q=r["useRef"](),Q=r["useRef"]();var Y=m||L,X=g||D,Z=P.includes(f),J=!N&&Z,ee=V(I,f),te=be(f,K,S,x),ne=te.active,re=Object(c["a"])(te,Ir),oe=r["useState"](!1),ae=Object(u["a"])(oe,2),ie=ae[0],ue=ae[1],ce=function(e){K||ue(e)},se=function(e){ce(!0),null===E||void 0===E||E({key:f,domEvent:e})},fe=function(e){ce(!1),null===k||void 0===k||k({key:f,domEvent:e})},de=r["useMemo"]((function(){return ne||"inline"!==T&&(ie||V([M],f))}),[T,ne,M,ie,f,V]),pe=Oe(W.length),he=function(e){K||(null===O||void 0===O||O({key:f,domEvent:e}),"inline"===T&&z(f,!Z))},ve=$e((function(e){null===w||void 0===w||w(Ee(e)),F(e)})),ge=function(e){"inline"!==T&&z(f,e)},we=function(){U(f)},Se=C&&"".concat(C,"-popup"),xe=r["createElement"]("div",Object(a["a"])({role:"menuitem",style:pe,className:"".concat($,"-title"),tabIndex:K?null:-1,ref:q,title:"string"===typeof l?l:null,"data-menu-id":N&&C?null:C,"aria-expanded":J,"aria-haspopup":!0,"aria-controls":Se,"aria-disabled":K,onClick:he,onFocus:we},re),l,r["createElement"](ke,{icon:"horizontal"!==T?X:null,props:Object(s["a"])(Object(s["a"])({},e),{},{isOpen:J,isSubMenu:!0})},r["createElement"]("i",{className:"".concat($,"-arrow")}))),je=r["useRef"](T);if("inline"!==T&&(je.current=W.length>1?"vertical":T),!N){var Ce=je.current;xe=r["createElement"](Rr,{mode:Ce,prefixCls:$,visible:!h&&J&&"inline"!==T,popupClassName:y,popupOffset:b,popup:r["createElement"](ye,{mode:"horizontal"===Ce?"vertical":Ce},r["createElement"](Ye,{id:Se,ref:Q},v)),disabled:K,onVisibleChange:ge},xe)}var Te=r["createElement"](le.Item,Object(a["a"])({role:"none"},j,{component:"li",style:n,className:d()($,"".concat($,"-").concat(T),o,(t={},Object(i["a"])(t,"".concat($,"-open"),J),Object(i["a"])(t,"".concat($,"-active"),de),Object(i["a"])(t,"".concat($,"-selected"),ee),Object(i["a"])(t,"".concat($,"-disabled"),K),t)),onMouseEnter:se,onMouseLeave:fe}),xe,!N&&r["createElement"](Nr,{id:Se,open:J,keyPath:W},v));return H&&(Te=H(Te,e,{selected:ee,active:de,open:J,disabled:K})),r["createElement"](ye,{onItemClick:ve,mode:"horizontal"===T?"vertical":T,itemIcon:Y,expandIcon:X},Te)};function Dr(e){var t,n=e.eventKey,o=e.children,a=Ae(n),i=Ge(o,a),u=je();return r["useEffect"]((function(){if(u)return u.registerPath(n,a),function(){u.unregisterPath(n,a)}}),[a]),t=u?i:r["createElement"](Lr,e,i),r["createElement"](Ce.Provider,{value:a},t)}var Fr=n("QxEV");function zr(e){if(Array.isArray(e))return Object(Fr["a"])(e)}function Ur(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}var Br=n("NDrN");function Hr(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Gr(e){return zr(e)||Ur(e)||Object(Br["a"])(e)||Hr()}function Vr(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(St(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),a=Number(o),i=null;return o&&!Number.isNaN(a)?i=a:r&&null===i&&(i=0),r&&e.disabled&&(i=null),null!==i&&(i>=0||t&&i<0)}return!1}function Wr(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Gr(e.querySelectorAll("*")).filter((function(e){return Vr(e,t)}));return Vr(e,t)&&n.unshift(e),n}var $r=A["a"].LEFT,Kr=A["a"].RIGHT,qr=A["a"].UP,Qr=A["a"].DOWN,Yr=A["a"].ENTER,Xr=A["a"].ESC,Zr=A["a"].HOME,Jr=A["a"].END,eo=[qr,Qr,$r,Kr];function to(e,t,n,r){var o,a,u,l,c="prev",s="next",f="children",d="parent";if("inline"===e&&r===Yr)return{inlineTrigger:!0};var p=(o={},Object(i["a"])(o,qr,c),Object(i["a"])(o,Qr,s),o),h=(a={},Object(i["a"])(a,$r,n?s:c),Object(i["a"])(a,Kr,n?c:s),Object(i["a"])(a,Qr,f),Object(i["a"])(a,Yr,f),a),v=(u={},Object(i["a"])(u,qr,c),Object(i["a"])(u,Qr,s),Object(i["a"])(u,Yr,f),Object(i["a"])(u,Xr,d),Object(i["a"])(u,$r,n?f:d),Object(i["a"])(u,Kr,n?d:f),u),m={inline:p,horizontal:h,vertical:v,inlineSub:p,horizontalSub:v,verticalSub:v},g=null===(l=m["".concat(e).concat(t?"":"Sub")])||void 0===l?void 0:l[r];switch(g){case c:return{offset:-1,sibling:!0};case s:return{offset:1,sibling:!0};case d:return{offset:-1,sibling:!1};case f:return{offset:1,sibling:!1};default:return null}}function no(e){var t=e;while(t){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function ro(e,t){var n=e||document.activeElement;while(n){if(t.has(n))return n;n=n.parentElement}return null}function oo(e,t){var n=Wr(e,!0);return n.filter((function(e){return t.has(e)}))}function ao(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var o=oo(e,t),a=o.length,i=o.findIndex((function(e){return n===e}));return r<0?-1===i?i=a-1:i-=1:r>0&&(i+=1),i=(i+a)%a,o[i]}function io(e,t,n,o,a,i,u,l,c,s){var f=r["useRef"](),d=r["useRef"]();d.current=t;var p=function(){S["a"].cancel(f.current)};return r["useEffect"]((function(){return function(){p()}}),[]),function(r){var h=r.which;if([].concat(eo,[Yr,Xr,Zr,Jr]).includes(h)){var v,m,g,y=function(){v=new Set,m=new Map,g=new Map;var e=i();return e.forEach((function(e){var t=document.querySelector("[data-menu-id='".concat(Pe(o,e),"']"));t&&(v.add(t),g.set(t,e),m.set(e,t))})),v};y();var b=m.get(t),w=ro(b,v),E=g.get(w),k=to(e,1===u(E,!0).length,n,h);if(!k&&h!==Zr&&h!==Jr)return;(eo.includes(h)||[Zr,Jr].includes(h))&&r.preventDefault();var O=function(e){if(e){var t=e,n=e.querySelector("a");(null===n||void 0===n?void 0:n.getAttribute("href"))&&(t=n);var r=g.get(e);l(r),p(),f.current=Object(S["a"])((function(){d.current===r&&t.focus()}))}};if([Zr,Jr].includes(h)||k.sibling||!w){var x,j;x=w&&"inline"!==e?no(w):a.current;var C=oo(x,v);j=h===Zr?C[0]:h===Jr?C[C.length-1]:ao(x,v,w,k.offset),O(j)}else if(k.inlineTrigger)c(E);else if(k.offset>0)c(E,!0),p(),f.current=Object(S["a"])((function(){y();var e=w.getAttribute("aria-controls"),t=document.getElementById(e),n=ao(t,v);O(n)}),5);else if(k.offset<0){var A=u(E,!0),_=A[A.length-2],T=m.get(_);c(_,!1),O(T)}}null===s||void 0===s||s(r)}}var uo=Math.random().toFixed(5).toString().slice(2),lo=0;function co(e){var t=k(e,{value:e}),n=Object(u["a"])(t,2),o=n[0],a=n[1];return r["useEffect"]((function(){lo+=1;var e="".concat(uo,"-").concat(lo);a("rc-menu-uuid-".concat(e))}),[]),o}function so(e){Promise.resolve().then(e)}var fo="__RC_UTIL_PATH_SPLIT__",po=function(e){return e.join(fo)},ho=function(e){return e.split(fo)},vo="rc-menu-more";function mo(){var e=r["useState"]({}),t=Object(u["a"])(e,2),n=t[1],o=Object(r["useRef"])(new Map),a=Object(r["useRef"])(new Map),i=r["useState"]([]),l=Object(u["a"])(i,2),c=l[0],s=l[1],f=Object(r["useRef"])(0),d=Object(r["useRef"])(!1),p=function(){d.current||n({})},h=Object(r["useCallback"])((function(e,t){var n=po(t);a.current.set(n,e),o.current.set(e,n),f.current+=1;var r=f.current;so((function(){r===f.current&&p()}))}),[]),v=Object(r["useCallback"])((function(e,t){var n=po(t);a.current["delete"](n),o.current["delete"](e)}),[]),m=Object(r["useCallback"])((function(e){s(e)}),[]),g=Object(r["useCallback"])((function(e,t){var n=o.current.get(e)||"",r=ho(n);return t&&c.includes(r[0])&&r.unshift(vo),r}),[c]),y=Object(r["useCallback"])((function(e,t){return e.some((function(e){var n=g(e,!0);return n.includes(t)}))}),[g]),b=function(){var e=Object(O["a"])(o.current.keys());return c.length&&e.push(vo),e},w=Object(r["useCallback"])((function(e){var t="".concat(o.current.get(e)).concat(fo),n=new Set;return Object(O["a"])(a.current.keys()).forEach((function(e){e.startsWith(t)&&n.add(a.current.get(e))})),n}),[]);return r["useEffect"]((function(){return function(){d.current=!0}}),[]),{registerPath:h,unregisterPath:v,refreshOverflowKeys:m,isSubPathKey:y,getKeyPath:g,getKeys:b,getSubPathKeys:w}}var go=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],yo=[],bo=r["forwardRef"]((function(e,t){var n,o,l=e.prefixCls,f=void 0===l?"rc-menu":l,p=e.rootClassName,h=e.style,v=e.className,m=e.tabIndex,g=void 0===m?0:m,y=e.items,b=e.children,w=e.direction,E=e.id,S=e.mode,x=void 0===S?"vertical":S,j=e.inlineCollapsed,C=e.disabled,A=e.disabledOverflow,_=e.subMenuOpenDelay,T=void 0===_?.1:_,P=e.subMenuCloseDelay,R=void 0===P?.1:P,N=e.forceSubMenuRender,M=e.defaultOpenKeys,I=e.openKeys,D=e.activeKey,F=e.defaultActiveFirst,z=e.selectable,U=void 0===z||z,B=e.multiple,H=void 0!==B&&B,G=e.defaultSelectedKeys,V=e.selectedKeys,W=e.onSelect,$=e.onDeselect,K=e.inlineIndent,q=void 0===K?24:K,Q=e.motion,Y=e.defaultMotions,X=e.triggerSubMenuAction,Z=void 0===X?"hover":X,J=e.builtinPlacements,ee=e.itemIcon,te=e.expandIcon,ne=e.overflowedIndicator,re=void 0===ne?"...":ne,oe=e.overflowedIndicatorPopupClassName,ae=e.getPopupContainer,ie=e.onClick,ue=e.onOpenChange,ce=e.onKeyDown,se=(e.openAnimation,e.openTransitionName,e._internalRenderMenuItem),fe=e._internalRenderSubMenuItem,de=Object(c["a"])(e,go),pe=r["useMemo"]((function(){return We(b,y,yo)}),[b,y]),he=r["useState"](!1),ve=Object(u["a"])(he,2),me=ve[0],ge=ve[1],be=r["useRef"](),we=co(E),ke="rtl"===w;var Oe=r["useMemo"]((function(){return"inline"!==x&&"vertical"!==x||!j?[x,!1]:["vertical",j]}),[x,j]),Se=Object(u["a"])(Oe,2),je=Se[0],Ce=Se[1],Ae=r["useState"](0),Re=Object(u["a"])(Ae,2),Ne=Re[0],Ie=Re[1],Le=Ne>=pe.length-1||"horizontal"!==je||A,De=k(M,{value:I,postState:function(e){return e||yo}}),Fe=Object(u["a"])(De,2),ze=Fe[0],Ue=Fe[1],He=function(e){Ue(e),null===ue||void 0===ue||ue(e)},Ge=r["useState"](ze),Ve=Object(u["a"])(Ge,2),Ke=Ve[0],qe=Ve[1],Qe="inline"===je,Ye=r["useRef"](!1);r["useEffect"]((function(){Qe&&qe(ze)}),[ze]),r["useEffect"]((function(){Ye.current?Qe?Ue(Ke):He(yo):Ye.current=!0}),[Qe]);var Xe=mo(),Ze=Xe.registerPath,Je=Xe.unregisterPath,et=Xe.refreshOverflowKeys,tt=Xe.isSubPathKey,nt=Xe.getKeyPath,rt=Xe.getKeys,ot=Xe.getSubPathKeys,at=r["useMemo"]((function(){return{registerPath:Ze,unregisterPath:Je}}),[Ze,Je]),it=r["useMemo"]((function(){return{isSubPathKey:tt}}),[tt]);r["useEffect"]((function(){et(Le?yo:pe.slice(Ne+1).map((function(e){return e.key})))}),[Ne,Le]);var ut=k(D||F&&(null===(n=pe[0])||void 0===n?void 0:n.key),{value:D}),lt=Object(u["a"])(ut,2),ct=lt[0],st=lt[1],ft=$e((function(e){st(e)})),dt=$e((function(){st(void 0)}));Object(r["useImperativeHandle"])(t,(function(){return{list:be.current,focus:function(e){var t,n,r,o,a=null!==ct&&void 0!==ct?ct:null===(t=pe.find((function(e){return!e.props.disabled})))||void 0===t?void 0:t.key;a&&(null===(n=be.current)||void 0===n||null===(r=n.querySelector("li[data-menu-id='".concat(Pe(we,a),"']")))||void 0===r||null===(o=r.focus)||void 0===o||o.call(r,e))}}}));var pt=k(G||[],{value:V,postState:function(e){return Array.isArray(e)?e:null===e||void 0===e?yo:[e]}}),ht=Object(u["a"])(pt,2),vt=ht[0],mt=ht[1],gt=function(e){if(U){var t,n=e.key,r=vt.includes(n);t=H?r?vt.filter((function(e){return e!==n})):[].concat(Object(O["a"])(vt),[n]):[n],mt(t);var o=Object(s["a"])(Object(s["a"])({},e),{},{selectedKeys:t});r?null===$||void 0===$||$(o):null===W||void 0===W||W(o)}!H&&ze.length&&"inline"!==je&&He(yo)},yt=$e((function(e){null===ie||void 0===ie||ie(Ee(e)),gt(e)})),bt=$e((function(e,t){var n=ze.filter((function(t){return t!==e}));if(t)n.push(e);else if("inline"!==je){var r=ot(e);n=n.filter((function(e){return!r.has(e)}))}L()(ze,n)||He(n)})),wt=$e(ae),Et=function(e,t){var n=null!==t&&void 0!==t?t:!ze.includes(e);bt(e,n)},kt=io(je,ct,ke,we,be,rt,nt,st,Et,ce);r["useEffect"]((function(){ge(!0)}),[]);var Ot=r["useMemo"]((function(){return{_internalRenderMenuItem:se,_internalRenderSubMenuItem:fe}}),[se,fe]),St="horizontal"!==je||A?pe:pe.map((function(e,t){return r["createElement"](ye,{key:e.key,overflowDisabled:t>Ne},e)})),xt=r["createElement"](le,Object(a["a"])({id:E,ref:be,prefixCls:"".concat(f,"-overflow"),component:"ul",itemComponent:Be,className:d()(f,"".concat(f,"-root"),"".concat(f,"-").concat(je),v,(o={},Object(i["a"])(o,"".concat(f,"-inline-collapsed"),Ce),Object(i["a"])(o,"".concat(f,"-rtl"),ke),o),p),dir:w,style:h,role:"menu",tabIndex:g,data:St,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?pe.slice(-t):null;return r["createElement"](Dr,{eventKey:vo,title:re,disabled:Le,internalPopupClose:0===t,popupClassName:oe},n)},maxCount:"horizontal"!==je||A?le.INVALIDATE:le.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){Ie(e)},onKeyDown:kt},de));return r["createElement"](Me.Provider,{value:Ot},r["createElement"](Te.Provider,{value:we},r["createElement"](ye,{prefixCls:f,rootClassName:p,mode:je,openKeys:ze,rtl:ke,disabled:C,motion:me?Q:null,defaultMotions:me?Y:null,activeKey:ct,onActive:ft,onInactive:dt,selectedKeys:vt,inlineIndent:q,subMenuOpenDelay:T,subMenuCloseDelay:R,forceSubMenuRender:N,builtinPlacements:J,triggerSubMenuAction:Z,getPopupContainer:wt,itemIcon:ee,expandIcon:te,onItemClick:yt,onOpenChange:bt},r["createElement"](_e.Provider,{value:it},xt),r["createElement"]("div",{style:{display:"none"},"aria-hidden":!0},r["createElement"](xe.Provider,{value:at},pe)))))})),wo=bo,Eo=["className","title","eventKey","children"],ko=["children"],Oo=function(e){var t=e.className,n=e.title,o=(e.eventKey,e.children),i=Object(c["a"])(e,Eo),u=r["useContext"](me),l=u.prefixCls,s="".concat(l,"-item-group");return r["createElement"]("li",Object(a["a"])({},i,{onClick:function(e){return e.stopPropagation()},className:d()(s,t)}),r["createElement"]("div",{className:"".concat(s,"-title"),title:"string"===typeof n?n:void 0},n),r["createElement"]("ul",{className:"".concat(s,"-list")},o))};function So(e){var t=e.children,n=Object(c["a"])(e,ko),o=Ae(n.eventKey),a=Ge(t,o),i=je();return i?a:r["createElement"](Oo,Object(pe["a"])(n,["warnKey"]),a)}function xo(e){var t=e.className,n=e.style,o=r["useContext"](me),a=o.prefixCls,i=je();return i?null:r["createElement"]("li",{className:d()("".concat(a,"-item-divider"),t),style:n})}var jo=wo;jo.Item=Be,jo.SubMenu=Dr,jo.ItemGroup=So,jo.Divider=xo;var Co=jo,Ao=n("f2HW"),_o={adjustX:1,adjustY:1},To=[0,0],Po={topLeft:{points:["bl","tl"],overflow:_o,offset:[0,-4],targetOffset:To},topCenter:{points:["bc","tc"],overflow:_o,offset:[0,-4],targetOffset:To},topRight:{points:["br","tr"],overflow:_o,offset:[0,-4],targetOffset:To},bottomLeft:{points:["tl","bl"],overflow:_o,offset:[0,4],targetOffset:To},bottomCenter:{points:["tc","bc"],overflow:_o,offset:[0,4],targetOffset:To},bottomRight:{points:["tr","br"],overflow:_o,offset:[0,4],targetOffset:To}},Ro=Po,No=A["a"].ESC,Mo=A["a"].TAB;function Io(e){var t=e.visible,n=e.setTriggerVisible,o=e.triggerRef,a=e.onVisibleChange,i=e.autoFocus,u=r["useRef"](!1),l=function(){var e,r,i,u;t&&o.current&&(null===(e=o.current)||void 0===e||null===(r=e.triggerRef)||void 0===r||null===(i=r.current)||void 0===i||null===(u=i.focus)||void 0===u||u.call(i),n(!1),"function"===typeof a&&a(!1))},c=function(){var e,t,n,r,a=Wr(null===(e=o.current)||void 0===e||null===(t=e.popupRef)||void 0===t||null===(n=t.current)||void 0===n||null===(r=n.getElement)||void 0===r?void 0:r.call(n)),i=a[0];return!!(null===i||void 0===i?void 0:i.focus)&&(i.focus(),u.current=!0,!0)},s=function(e){switch(e.keyCode){case No:l();break;case Mo:var t=!1;u.current||(t=c()),t?e.preventDefault():l();break}};r["useEffect"]((function(){return t?(window.addEventListener("keydown",s),i&&Object(S["a"])(c,3),function(){window.removeEventListener("keydown",s),u.current=!1}):function(){u.current=!1}}),[t])}var Lo=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus"];function Do(e,t){var n=e.arrow,o=void 0!==n&&n,a=e.prefixCls,i=void 0===a?"rc-dropdown":a,u=e.transitionName,l=e.animation,c=e.align,s=e.placement,f=void 0===s?"bottomLeft":s,p=e.placements,h=void 0===p?Ro:p,m=e.getPopupContainer,g=e.showAction,y=e.hideAction,b=e.overlayClassName,w=e.overlayStyle,E=e.visible,k=e.trigger,O=void 0===k?["hover"]:k,S=e.autoFocus,x=B(e,Lo),j=r["useState"](),C=Object(v["a"])(j,2),A=C[0],_=C[1],T="visible"in e?E:A,P=r["useRef"](null);r["useImperativeHandle"](t,(function(){return P.current})),Io({visible:T,setTriggerVisible:_,triggerRef:P,onVisibleChange:e.onVisibleChange,autoFocus:S});var R=function(){var t,n=e.overlay;return t="function"===typeof n?n():n,t},N=function(t){var n=e.onOverlayClick;_(!1),n&&n(t)},M=function(t){var n=e.onVisibleChange;_(t),"function"===typeof n&&n(t)},I=function(){var e=R();return r["createElement"](r["Fragment"],null,o&&r["createElement"]("div",{className:"".concat(i,"-arrow")}),e)},L=function(){var t=e.overlay;return"function"===typeof t?I:I()},D=function(){var t=e.minOverlayWidthMatchTrigger,n=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?t:!n},F=function(){var t=e.openClassName;return void 0!==t?t:"".concat(i,"-open")},U=function(){var t=e.children,n=t.props?t.props:{},o=d()(n.className,F());return T&&t?r["cloneElement"](t,{className:o}):t},H=y;return H||-1===O.indexOf("contextMenu")||(H=["click"]),r["createElement"](jr,Object(z["a"])(Object(z["a"])({builtinPlacements:h},x),{},{prefixCls:i,ref:P,popupClassName:d()(b,Object(Ao["a"])({},"".concat(i,"-show-arrow"),o)),popupStyle:w,action:O,showAction:g,hideAction:H||[],popupPlacement:f,popupAlign:c,popupTransitionName:u,popupAnimation:l,popupVisible:T,stretch:D()?"minWidth":"",popup:L(),onPopupVisibleChange:M,onPopupClick:N,getPopupContainer:m}),U())}var Fo=r["forwardRef"](Do),zo=Fo;function Uo(e,t){var n=e.prefixCls,o=e.editable,a=e.locale,i=e.style;return o&&!1!==o.showAdd?r["createElement"]("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:i,"aria-label":(null===a||void 0===a?void 0:a.addAriaLabel)||"Add tab",onClick:function(e){o.onEdit("add",{event:e})}},o.addIcon||"+"):null}var Bo=r["forwardRef"](Uo);function Ho(e,t){var n=e.prefixCls,o=e.id,a=e.tabs,l=e.locale,c=e.mobile,s=e.moreIcon,f=void 0===s?"More":s,p=e.moreTransitionName,h=e.style,v=e.className,m=e.editable,g=e.tabBarGutter,y=e.rtl,b=e.removeAriaLabel,w=e.onTabClick,E=e.popupClassName,k=Object(r["useState"])(!1),O=Object(u["a"])(k,2),S=O[0],x=O[1],j=Object(r["useState"])(null),C=Object(u["a"])(j,2),_=C[0],T=C[1],P="".concat(o,"-more-popup"),R="".concat(n,"-dropdown"),N=null!==_?"".concat(P,"-").concat(_):null,M=null===l||void 0===l?void 0:l.dropdownAriaLabel;function I(e,t){e.preventDefault(),e.stopPropagation(),m.onEdit("remove",{key:t,event:e})}var L=r["createElement"](Co,{onClick:function(e){var t=e.key,n=e.domEvent;w(t,n),x(!1)},prefixCls:"".concat(R,"-menu"),id:P,tabIndex:-1,role:"listbox","aria-activedescendant":N,selectedKeys:[_],"aria-label":void 0!==M?M:"expanded dropdown"},a.map((function(e){var t=m&&!1!==e.closable&&!e.disabled;return r["createElement"](Be,{key:e.key,id:"".concat(P,"-").concat(e.key),role:"option","aria-controls":o&&"".concat(o,"-panel-").concat(e.key),disabled:e.disabled},r["createElement"]("span",null,e.tab),t&&r["createElement"]("button",{type:"button","aria-label":b||"remove",tabIndex:0,className:"".concat(R,"-menu-item-remove"),onClick:function(t){t.stopPropagation(),I(t,e.key)}},e.closeIcon||m.removeIcon||"\xd7"))})));function D(e){for(var t=a.filter((function(e){return!e.disabled})),n=t.findIndex((function(e){return e.key===_}))||0,r=t.length,o=0;oi?(o=n,S.current="x"):(o=r,S.current="y"),t(-o,-o)&&e.preventDefault()}var j=Object(r["useRef"])(null);j.current={onTouchStart:E,onTouchMove:k,onTouchEnd:O,onWheel:x},r["useEffect"]((function(){function t(e){j.current.onTouchStart(e)}function n(e){j.current.onTouchMove(e)}function r(e){j.current.onTouchEnd(e)}function o(e){j.current.onWheel(e)}return document.addEventListener("touchmove",n,{passive:!1}),document.addEventListener("touchend",r,{passive:!1}),e.current.addEventListener("touchstart",t,{passive:!1}),e.current.addEventListener("wheel",o),function(){document.removeEventListener("touchmove",n),document.removeEventListener("touchend",r)}}),[])}function Yo(){var e=Object(r["useRef"])(new Map);function t(t){return e.current.has(t)||e.current.set(t,r["createRef"]()),e.current.get(t)}function n(t){e.current["delete"](t)}return[t,n]}function Xo(e,t){var n=r["useRef"](e),o=r["useState"]({}),a=Object(u["a"])(o,2),i=a[1];function l(e){var r="function"===typeof e?e(n.current):e;r!==n.current&&t(r,n.current),n.current=r,i({})}return[n.current,l]}var Zo=function(e){var t,n=e.position,o=e.prefixCls,a=e.extra;if(!a)return null;var i={};return a&&"object"===Object(l["a"])(a)&&!r["isValidElement"](a)?i=a:i.right=a,"right"===n&&(t=i.right),"left"===n&&(t=i.left),t?r["createElement"]("div",{className:"".concat(o,"-extra-content")},t):null};function Jo(e,t){var n,o=r["useContext"](Vo),l=o.prefixCls,c=o.tabs,f=e.className,p=e.style,h=e.id,v=e.animated,m=e.activeKey,g=e.rtl,y=e.extra,b=e.editable,w=e.locale,E=e.tabPosition,k=e.tabBarGutter,A=e.children,_=e.onTabClick,P=e.onTabScroll,N=Object(r["useRef"])(),I=Object(r["useRef"])(),L=Object(r["useRef"])(),D=Object(r["useRef"])(),F=Yo(),z=Object(u["a"])(F,2),U=z[0],B=z[1],H="top"===E||"bottom"===E,G=Xo(0,(function(e,t){H&&P&&P({direction:e>t?"left":"right"})})),V=Object(u["a"])(G,2),W=V[0],$=V[1],K=Xo(0,(function(e,t){!H&&P&&P({direction:e>t?"top":"bottom"})})),q=Object(u["a"])(K,2),Q=q[0],Y=q[1],X=Object(r["useState"])(0),Z=Object(u["a"])(X,2),J=Z[0],ee=Z[1],te=Object(r["useState"])(0),ne=Object(u["a"])(te,2),re=ne[0],oe=ne[1],ae=Object(r["useState"])(null),ie=Object(u["a"])(ae,2),ue=ie[0],le=ie[1],ce=Object(r["useState"])(null),se=Object(u["a"])(ce,2),fe=se[0],de=se[1],pe=Object(r["useState"])(0),he=Object(u["a"])(pe,2),ve=he[0],me=he[1],ge=Object(r["useState"])(0),ye=Object(u["a"])(ge,2),be=ye[0],we=ye[1],Ee=C(new Map),ke=Object(u["a"])(Ee,2),Oe=ke[0],Se=ke[1],xe=R(c,Oe,J),je="".concat(l,"-nav-operations-hidden"),Ce=0,Ae=0;function _e(e){return eAe?Ae:e}H?g?(Ce=0,Ae=Math.max(0,J-ue)):(Ce=Math.min(0,ue-J),Ae=0):(Ce=Math.min(0,fe-re),Ae=0);var Te=Object(r["useRef"])(),Pe=Object(r["useState"])(),Re=Object(u["a"])(Pe,2),Ne=Re[0],Me=Re[1];function Ie(){Me(Date.now())}function Le(){window.clearTimeout(Te.current)}function De(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:m,t=xe.get(e)||{width:0,height:0,left:0,right:0,top:0};if(H){var n=W;g?t.rightW+ue&&(n=t.right+t.width-ue):t.left<-W?n=-t.left:t.left+t.width>-W+ue&&(n=-(t.left+t.width-ue)),Y(0),$(_e(n))}else{var r=Q;t.top<-Q?r=-t.top:t.top+t.height>-Q+fe&&(r=-(t.top+t.height-fe)),$(0),Y(_e(r))}}Qo(N,(function(e,t){function n(e,t){e((function(e){var n=_e(e+t);return n}))}if(H){if(ue>=J)return!1;n($,e)}else{if(fe>=re)return!1;n(Y,t)}return Le(),Ie(),!0})),Object(r["useEffect"])((function(){return Le(),Ne&&(Te.current=window.setTimeout((function(){Me(0)}),100)),Le}),[Ne]);var Fe=M(xe,{width:ue,height:fe,left:W,top:Q},{width:J,height:re},{width:ve,height:be},Object(s["a"])(Object(s["a"])({},e),{},{tabs:c})),ze=Object(u["a"])(Fe,2),Ue=ze[0],Be=ze[1],He={};"top"===E||"bottom"===E?He[g?"marginRight":"marginLeft"]=k:He.marginTop=k;var Ge=c.map((function(e,t){var n=e.key;return r["createElement"](T,{id:h,prefixCls:l,key:n,tab:e,style:0===t?void 0:He,closable:e.closable,editable:b,active:n===m,renderWrapper:A,removeAriaLabel:null===w||void 0===w?void 0:w.removeAriaLabel,ref:U(n),onClick:function(e){_(n,e)},onRemove:function(){B(n)},onFocus:function(){De(n),Ie(),N.current&&(g||(N.current.scrollLeft=0),N.current.scrollTop=0)}})})),Ve=j((function(){var e,t,n,r,o,a,i=(null===(e=N.current)||void 0===e?void 0:e.offsetWidth)||0,u=(null===(t=N.current)||void 0===t?void 0:t.offsetHeight)||0,l=(null===(n=D.current)||void 0===n?void 0:n.offsetWidth)||0,s=(null===(r=D.current)||void 0===r?void 0:r.offsetHeight)||0;le(i),de(u),me(l),we(s);var f=((null===(o=I.current)||void 0===o?void 0:o.offsetWidth)||0)-l,d=((null===(a=I.current)||void 0===a?void 0:a.offsetHeight)||0)-s;ee(f),oe(d),Se((function(){var e=new Map;return c.forEach((function(t){var n=t.key,r=U(n).current;r&&e.set(n,{width:r.offsetWidth,height:r.offsetHeight,left:r.offsetLeft,top:r.offsetTop})})),e}))})),We=c.slice(0,Ue),$e=c.slice(Be+1),Ke=[].concat(Object(O["a"])(We),Object(O["a"])($e)),qe=Object(r["useState"])(),Qe=Object(u["a"])(qe,2),Ye=Qe[0],Xe=Qe[1],Ze=xe.get(m),Je=Object(r["useRef"])();function et(){S["a"].cancel(Je.current)}Object(r["useEffect"])((function(){var e={};return Ze&&(H?(g?e.right=Ze.right:e.left=Ze.left,e.width=Ze.width):(e.top=Ze.top,e.height=Ze.height)),et(),Je.current=Object(S["a"])((function(){Xe(e)})),et}),[Ze,H,g]),Object(r["useEffect"])((function(){De()}),[m,Ze,xe,H]),Object(r["useEffect"])((function(){Ve()}),[g,k,m,c.map((function(e){return e.key})).join("_")]);var tt,nt,rt,ot,at=!!Ke.length,it="".concat(l,"-nav-wrap");return H?g?(nt=W>0,tt=W+uee.length)&&(t=e.length);for(var n=0,r=new Array(t);n]*>)/g,v=/\$([$&'`]|\d\d?)/g,m=function(e){return void 0===e?e:String(e)};r("replace",2,(function(e,t,n,r){var g=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,y=r.REPLACE_KEEPS_$0,b=g?"$":"$0";return[function(n,r){var o=l(this),a=void 0==n?void 0:n[e];return void 0!==a?a.call(n,o,r):t.call(String(o),n,r)},function(e,r){if(!g&&y||"string"===typeof r&&-1===r.indexOf(b)){var a=n(t,e,this,r);if(a.done)return a.value}var l=o(e),p=String(this),h="function"===typeof r;h||(r=String(r));var v=l.global;if(v){var E=l.unicode;l.lastIndex=0}var k=[];while(1){var O=s(l,p);if(null===O)break;if(k.push(O),!v)break;var S=String(O[0]);""===S&&(l.lastIndex=c(p,i(l.lastIndex),E))}for(var x="",j=0,C=0;C=j&&(x+=p.slice(j,_)+M,j=_+A.length)}return x+p.slice(j)}];function w(e,n,r,o,i,u){var l=r+e.length,c=o.length,s=v;return void 0!==i&&(i=a(i),s=h),t.call(u,s,(function(t,a){var u;switch(a.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,r);case"'":return n.slice(l);case"<":u=i[a.slice(1,-1)];break;default:var s=+a;if(0===s)return t;if(s>c){var f=p(s/10);return 0===f?t:f<=c?void 0===o[f-1]?a.charAt(1):o[f-1]+a.charAt(1):t}u=o[s-1]}return void 0===u?"":u}))}}))},nXRf:function(e,t){function n(e){return this.__data__.get(e)}e.exports=n},nndC:function(e,t,n){var r=n("OOCw"),o=n("CBsr");r({target:"WeakMap",stat:!0},{of:o})},o1x9:function(e,t,n){"use strict";var r=n("vfR7").charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},o4ox:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},oA63:function(e,t,n){var r=n("58gk"),o=n("eKcC"),a=Object.prototype,i=a.propertyIsEnumerable,u=Object.getOwnPropertySymbols,l=u?function(e){return null==e?[]:(e=Object(e),r(u(e),(function(t){return i.call(e,t)})))}:o;e.exports=l},oEsY:function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},oSdA:function(e,t,n){var r=n("KZF9");r("toPrimitive")},ohzl:function(e,t){var n=Object.prototype,r=n.toString;function o(e){return r.call(e)}e.exports=o},opL2:function(e,t,n){var r=n("r+6h"),o=n("0JbB"),a=n("rfqm"),i=n("kj2u").UNSUPPORTED_Y;r&&("g"!=/./g.flags||i)&&o.f(RegExp.prototype,"flags",{configurable:!0,get:a})},orhk:function(e,t){var n="__lodash_hash_undefined__";function r(e){return this.__data__.set(e,n),this}e.exports=r},"p/Qk":function(e,t,n){var r=n("OOCw");r({target:"Math",stat:!0},{iaddh:function(e,t,n,r){var o=e>>>0,a=t>>>0,i=n>>>0;return a+(r>>>0)+((o&i|(o|i)&~(o+i>>>0))>>>31)|0}})},p1yP:function(e,t,n){"use strict";var r=n("OOCw"),o=n("r+6h"),a=n("THzI"),i=n("OdMF"),u=n("JSMs"),l=n("zesz"),c=n("6ssM").f;o&&r({target:"Object",proto:!0,forced:a},{__lookupGetter__:function(e){var t,n=i(this),r=u(e,!0);do{if(t=c(n,r))return t.get}while(n=l(n))}})},p3eN:function(e,t,n){var r=n("r+6h"),o=n("h+/6"),a=n("73fw");e.exports=!r&&!o((function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},pADs:function(e,t){function n(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}e.exports=n},pDCl:function(e,t,n){var r=n("OOCw"),o=n("HRbj");r({target:"Map",stat:!0},{from:o})},pKuQ:function(e,t,n){var r=n("sErw");e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(i){var a=e["return"];throw void 0!==a&&r(a.call(e)),i}}},pVp3:function(e,t,n){var r=n("kk5s");e.exports=function(e){if("number"!=typeof e&&"Number"!=r(e))throw TypeError("Incorrect invocation");return+e}},paFN:function(e,t,n){"use strict";var r=n("OOCw"),o=n("qyeh"),a=n("sErw"),i=n("lkgX"),u=n("uZx/");r({target:"Set",proto:!0,real:!0,forced:o},{isSupersetOf:function(e){var t=a(this),n=i(t.has);return!u(e,(function(e){if(!1===n.call(t,e))return u.stop()})).stopped}})},pgBP:function(e,t,n){var r=n("DQ/D"),o=n("1Grl"),a=n("eoSM"),i=n("Zsrj"),u=n("Txlo"),l=n("GC0I"),c=Object.prototype,s=c.hasOwnProperty;function f(e,t){var n=a(e),c=!n&&o(e),f=!n&&!c&&i(e),d=!n&&!c&&!f&&l(e),p=n||c||f||d,h=p?r(e.length,String):[],v=h.length;for(var m in e)!t&&!s.call(e,m)||p&&("length"==m||f&&("offset"==m||"parent"==m)||d&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||u(m,v))||h.push(m);return h}e.exports=f},"ph/m":function(e,t,n){"use strict";function r(){var e=n("gbKz");return r=function(){return e},e}function o(e,t){return c(e)||l(e,t)||i(e,t)||a()}function a(){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 i(e,t){if(e){if("string"===typeof e)return u(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(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n3&&void 0!==arguments[3]?arguments[3]:0;if(a=0;d--){var p=i[d];"."===p?a(i,d):".."===p?(a(i,d),f++):f&&(a(i,d),f--)}if(!c)for(;f--;f)i.unshift("..");!c||""===i[0]||i[0]&&o(i[0])||i.unshift("");var h=i.join("/");return n&&"/"!==h.substr(-1)&&(h+="/"),h}var u=i;function l(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}function c(e,t){if(e===t)return!0;if(null==e||null==t)return!1;if(Array.isArray(e))return Array.isArray(t)&&e.length===t.length&&e.every((function(e,n){return c(e,t[n])}));if("object"===typeof e||"object"===typeof t){var n=l(e),r=l(t);return n!==e||r!==t?c(n,r):Object.keys(Object.assign({},e,t)).every((function(n){return c(e[n],t[n])}))}return!1}var s=c,f=n("gGOj"),d=n.n(f),p=n("g8ur");function h(e){return"/"===e.charAt(0)?e:"/"+e}function v(e){return"/"===e.charAt(0)?e.substr(1):e}function m(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}function g(e,t){return m(e,t)?e.substr(t.length):e}function y(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function b(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var a=t.indexOf("?");return-1!==a&&(n=t.substr(a),t=t.substr(0,a)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}function w(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 E(e,t,n,o){var a;"string"===typeof e?(a=b(e),a.query=a.search?d.a.parse(a.search):{},a.state=t):(a=Object(r["a"])({},e),void 0===a.pathname&&(a.pathname=""),a.search?("?"!==a.search.charAt(0)&&(a.search="?"+a.search),a.query=d.a.parse(a.search)):(a.search=a.query?d.a.stringify(a.query):"",a.query=a.query||{}),a.hash?"#"!==a.hash.charAt(0)&&(a.hash="#"+a.hash):a.hash="",void 0!==t&&void 0===a.state&&(a.state=t));try{a.pathname=decodeURI(a.pathname)}catch(i){throw i instanceof URIError?new URIError('Pathname "'+a.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):i}return n&&(a.key=n),o?a.pathname?"/"!==a.pathname.charAt(0)&&(a.pathname=u(a.pathname,o.pathname)):a.pathname=o.pathname:a.pathname||(a.pathname="/"),a}function k(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&s(e.state,t.state)}function O(){var e=null;function t(t){return e=t,function(){e===t&&(e=null)}}function n(t,n,r,o){if(null!=e){var a="function"===typeof e?e(t,n):e;"string"===typeof a?"function"===typeof r?r(a,o):o(!0):o(!1!==a)}else o(!0)}var r=[];function o(e){var t=!0;function n(){t&&e.apply(void 0,arguments)}return r.push(n),function(){t=!1,r=r.filter((function(e){return e!==n}))}}function a(){for(var e=arguments.length,t=new Array(e),n=0;nn?a.splice(n,a.length-n,o):a.push(o),f({action:r,location:o,index:n,entries:a})}}))}function g(e,t){var r="REPLACE",o=E(e,t,d(),C.location);s.confirmTransitionTo(o,r,n,(function(e){e&&(C.entries[C.index]=o,f({action:r,location:o}))}))}function y(e){var t=B(C.index+e,0,C.entries.length-1),r="POP",o=C.entries[t];s.confirmTransitionTo(o,r,n,(function(e){e?f({action:r,location:o,index:t}):f()}))}function b(){y(-1)}function k(){y(1)}function S(e){var t=C.index+e;return t>=0&&t1?arguments[1]:void 0)}})},rUEg:function(e,t,n){"use strict";var r=n("h+/6");e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){throw 1},1)}))}},rVbH:function(e,t,n){"use strict";e.exports=n("BZ8O")},rfqm:function(e,t,n){"use strict";var r=n("sErw");e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},rjd2:function(e,t,n){"use strict";var r=n("OOCw"),o=n("uZx/"),a=n("lkgX");r({target:"Map",stat:!0},{keyBy:function(e,t){var n=new this;a(t);var r=a(n.set);return o(e,(function(e){r.call(n,t(e),e)})),n}})},rjwW:function(e,t,n){},rkJ6:function(e,t,n){var r=n("fkhx");function o(e,t){var n=e.length;while(n--)if(r(e[n][0],t))return n;return-1}e.exports=o},ry2H:function(e,t,n){"use strict";var r=n("OOCw"),o=n("qyeh"),a=n("sErw"),i=n("lkgX"),u=n("R8Xy"),l=n("uZx/");r({target:"Set",proto:!0,real:!0,forced:o},{reduce:function(e){var t=a(this),n=u(t),r=arguments.length<2,o=r?void 0:arguments[1];if(i(e),l(n,(function(n){r?(r=!1,o=n):o=e(o,n,n,t)}),void 0,!1,!0),r)throw TypeError("Reduce of empty set with no initial value");return o}})},ry6q:function(e,t,n){var r=n("7HYU"),o=n("Oax0"),a=n("1DF2"),i=n("UtSM"),u=n("TDWY");function l(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t{e.demos;return o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:"markdown"},o.a.createElement("h1",{id:"\u5feb\u901f\u4e0a\u624b"},o.a.createElement(a["AnchorLink"],{to:"#\u5feb\u901f\u4e0a\u624b","aria-hidden":"true",tabIndex:-1},o.a.createElement("span",{className:"icon icon-link"})),"\u5feb\u901f\u4e0a\u624b"),o.a.createElement("h2",{id:"\u521b\u5efa\u4e00\u4e2a-store"},o.a.createElement(a["AnchorLink"],{to:"#\u521b\u5efa\u4e00\u4e2a-store","aria-hidden":"true",tabIndex:-1},o.a.createElement("span",{className:"icon icon-link"})),"\u521b\u5efa\u4e00\u4e2a store"),o.a.createElement("p",null,"\u5728 hox \u4e2d\uff0c\u4efb\u610f\u7684 custom Hook\uff0c\u7ecf\u8fc7 ",o.a.createElement("code",null,"createStore")," \u5305\u88c5\u540e\uff0c\u5c31\u53d8\u6210\u4e86\u6301\u4e45\u5316\uff0c\u53ef\u4ee5\u5728\u7ec4\u4ef6\u95f4\u8fdb\u884c\u5171\u4eab\u7684\u72b6\u6001\u3002"),o.a.createElement(i["a"],{code:"import { useState } from 'react'\nimport { createStore } from 'hox'\n\nexport const [useTaskStore, TaskStoreProvider] = createStore(() => {\n const [tasks, setTasks] = useState([])\n\n function addTask(task) {\n setTasks(v => [...v, task])\n }\n\n function finishTask(task) {\n setTasks(v => v.filter(t => t !== task))\n }\n\n return {\n tasks,\n addTask,\n finishTask,\n }\n})",lang:"jsx"}),o.a.createElement("p",null,o.a.createElement("code",null,"createStore")," \u4f1a\u8fd4\u56de\u4e00\u4e2a\u6570\u7ec4\uff0c\u91cc\u9762\u6709\u4e24\u4e2a\u5143\u7d20\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7 ES6 \u7684\u6570\u7ec4\u89e3\u6784\u8bed\u6cd5\u628a\u4ed6\u4eec\u89e3\u6784\u51fa\u6765\uff0c\u5e76\u4e14\u53d6\u6210\u7b26\u5408\u4e1a\u52a1\u903b\u8f91\u7684\u540d\u5b57\uff0c\u4f8b\u5982\u4e0a\u9762\u7684 ",o.a.createElement("code",null,"useTaskStore")," \u548c ",o.a.createElement("code",null,"TaskStoreProvider"),"\u3002"),o.a.createElement("p",null,o.a.createElement("code",null,"TaskStoreProvider")," \u662f\u72b6\u6001\u7684\u5bb9\u5668\uff0c\u5b83\u7684\u5e95\u5c42\u662f\u4f9d\u8d56\u4e86 React Context \u6240\u4ee5\u4f60\u9700\u8981\u628a\u5b83\u6ce8\u5165\u5230\u7ec4\u4ef6\u6811\u4e2d\uff0c\u4f8b\u5982\uff1a"),o.a.createElement(i["a"],{code:"\n
\n \n \n \n \n \n \n \n",lang:"jsx"}),o.a.createElement("p",null,"\u63a5\u4e0b\u6765\u53ef\u4ee5\u5728 ",o.a.createElement("code",null,"TaskList")," \u7ec4\u4ef6\u4e2d\u4f7f\u7528 ",o.a.createElement("code",null,"useTaskStore")," \u8ba2\u9605\u548c\u6d88\u8d39 store \u4e2d\u7684\u6570\u636e\uff1a"),o.a.createElement(i["a"],{code:"function TaskList() {\n const { tasks } = useTaskStore()\n return (\n <>\n {tasks.map(task => (\n \n ))}\n \n )\n}",lang:"jsx"}),o.a.createElement("p",null,"\u6bcf\u6b21 TaskStore \u66f4\u65b0\u65f6\uff0cTaskList \u90fd\u4f1a\u81ea\u52a8\u91cd\u65b0\u6e32\u67d3\uff0c\u5e76\u4e14\u83b7\u53d6\u5230\u6700\u65b0\u7684 ",o.a.createElement("code",null,"tasks")," \u6570\u636e\u3002"),o.a.createElement("blockquote",null,o.a.createElement("p",null,o.a.createElement("code",null,"useStore")," \u662f\u4e00\u4e2a React Hook \uff0c\u6240\u4ee5\u5728\u4f7f\u7528\u5b83\u7684\u65f6\u5019\uff0c\u8bf7\u9075\u5b88 React \u7684 ",o.a.createElement(a["Link"],{to:"https://reactjs.org/docs/hooks-rules.html"},"rules of hooks")," \u3002")),o.a.createElement("p",null,"\u6211\u4eec\u63a8\u8350 ",o.a.createElement("code",null,"useXxxStore")," \u548c ",o.a.createElement("code",null,"XxxStoreProvider")," \u8fd9\u6837\u7684\u547d\u540d\uff0c\u56e0\u4e3a\u5b83\u4eec\u66f4\u52a0\u660e\u786e\uff0c\u4f46\u662f\u5982\u679c\u4f60\u89c9\u5f97\u5b83\u4eec\u540d\u5b57\u592a\u957f\u4e86\uff0c\u4e5f\u53ef\u4ee5\u8003\u8651\u7f29\u5199\u6210 ",o.a.createElement("code",null,"useXxx")," \u548c ",o.a.createElement("code",null,"XxxProvider"),"\u3002"),o.a.createElement("h2",{id:"store-\u7684\u4e0a\u4e0b\u6587\u548c\u591a\u4e2a\u5b9e\u4f8b"},o.a.createElement(a["AnchorLink"],{to:"#store-\u7684\u4e0a\u4e0b\u6587\u548c\u591a\u4e2a\u5b9e\u4f8b","aria-hidden":"true",tabIndex:-1},o.a.createElement("span",{className:"icon icon-link"})),"store \u7684\u4e0a\u4e0b\u6587\u548c\u591a\u4e2a\u5b9e\u4f8b"),o.a.createElement("p",null,"\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u53ea\u6709 ",o.a.createElement("code",null,"CounterStoreProvider")," \u7684\u5185\u90e8\u8282\u70b9\u624d\u53ef\u4ee5\u83b7\u53d6\u5230\u5b83\u7684\u4e0a\u4e0b\u6587\uff0c\u6240\u4ee5\u5728 ",o.a.createElement("code",null,"Header")," \u7ec4\u4ef6\u4e2d\u662f\u4e0d\u53ef\u4ee5\u8c03\u7528 ",o.a.createElement("code",null,"useTaskStore")," \u7684\u3002\u5982\u679c\u4f60\u719f\u6089 React \u7684 Context \u7279\u6027\uff0c\u90a3\u4e48\u8fd9\u4e00\u70b9\u662f\u5f88\u597d\u7406\u89e3\u7684\u3002"),o.a.createElement(i["a"],{code:"\n
\n \n ...\n \n",lang:"jsx"}),o.a.createElement("p",null,"\u6bcf\u6e32\u67d3\u4e00\u4e2a ",o.a.createElement("code",null,"TaskStoreProvider"),"\uff0c\u5c31\u4f1a\u5bf9\u5e94\u7684\u521b\u5efa\u4e00\u4e2a store \u7684\u5b9e\u4f8b\uff0c\u57fa\u4e8e\u8fd9\u4e2a\u7279\u6027\uff0c\u4f60\u53ef\u4ee5\u5728\u9875\u9762\u4e0a\u6e32\u67d3\u591a\u4e2a StoreProvider\uff0c\u6765\u5b9e\u73b0\u591a\u5b9e\u4f8b\uff0c\u5e76\u4e14\u6839\u636e Context \u7684\u4e0a\u4e0b\u6587\uff0c\u5728\u5b50\u8282\u70b9\u7ec4\u4ef6\u4e2d\u81ea\u52a8\u5730\u83b7\u53d6\u5230\u5bf9\u5e94\u7684 store \u5b9e\u4f8b\uff1a"),o.a.createElement(i["a"],{code:"\n \n ...\n \n\n\n \n ...\n \n",lang:"jsx"}),o.a.createElement("p",null,"\u4e0d\u540c StoreProvider \u5b9e\u4f8b\u4e4b\u95f4\uff0c\u6570\u636e\u662f\u5b8c\u5168\u72ec\u7acb\u548c\u9694\u79bb\u7684\uff0c\u5c31\u50cf\u662f\u540c\u4e00\u4e2a React \u7ec4\u4ef6\u7684\u591a\u4e2a\u5b9e\u4f8b\u4e00\u6837\u3002"),o.a.createElement("p",null,"\u4f60\u751a\u81f3\u53ef\u4ee5\u5728 ",o.a.createElement("code",null,"TaskStoreProvider")," \u5b50\u8282\u70b9\u4e2d\u518d\u6e32\u67d3\u4e00\u4e2a ",o.a.createElement("code",null,"TaskStoreProvider"),"\uff0c\u6839\u636e Context \u7684\u7279\u6027\uff0c",o.a.createElement("code",null,"TaskList")," \u7ec4\u4ef6\u4f1a\u81ea\u52a8\u5bfb\u627e\u5230\u6700\u8fd1\u7684\u7236\u7ea7 Provider\uff1a"),o.a.createElement(i["a"],{code:"\n ...\n \n ...\n \n",lang:"jsx"}),o.a.createElement("p",null,"\u5f53\u7136\uff0c\u4e00\u822c\u6765\u8bf4\u4e0d\u592a\u4f1a\u9700\u8981\u8fd9\u4e48\u7528\u3002"),o.a.createElement("h2",{id:"store-\u4e4b\u95f4\u7684\u4f9d\u8d56"},o.a.createElement(a["AnchorLink"],{to:"#store-\u4e4b\u95f4\u7684\u4f9d\u8d56","aria-hidden":"true",tabIndex:-1},o.a.createElement("span",{className:"icon icon-link"})),"store \u4e4b\u95f4\u7684\u4f9d\u8d56"),o.a.createElement("p",null,"\u867d\u7136\u4f60\u4ecd\u7136\u53ef\u4ee5\u6309\u7167\u4f20\u7edf\u7684\u5355\u4e00\u6570\u636e\u6e90\u7684\u601d\u60f3\u8fdb\u884c store \u7684\u8bbe\u8ba1\uff0c\u4f46\u6211\u4eec\u66f4\u63a8\u8350\u5c06 store \u62c6\u5206\u6210\u591a\u4e2a\u5c0f\u90e8\u5206\uff0c\u4e8e\u662f\u4e0d\u53ef\u907f\u514d\u7684\uff0c\u6211\u4eec\u9700\u8981\u5728\u591a\u4e2a store \u4e4b\u95f4\u5904\u7406\u4f9d\u8d56\u5173\u7cfb\uff0c\u4f8b\u5982\u4efb\u52a1\u5217\u8868\u6a21\u5757 ",o.a.createElement("code",null,"task")," \u4f9d\u8d56\u8d26\u6237\u6a21\u5757 ",o.a.createElement("code",null,"account"),"\u3002"),o.a.createElement("p",null,"\u5728 hox \u4e2d\uff0c\u5904\u7406\u6a21\u5757\u4e4b\u95f4\u7684\u4f9d\u8d56\u975e\u5e38\u7b80\u5355\u4e14\u81ea\u7136\uff1a\u5728\u4e00\u4e2a store \u4e2d\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528 ",o.a.createElement("code",null,"useXXXStore")," \u6765\u83b7\u53d6\u53e6\u4e00\u4e2a store\uff0c\u5e76\u8ba2\u9605\u5176\u66f4\u65b0\uff0c\u548c\u5728\u7ec4\u4ef6\u4e2d\u4f7f\u7528\u5e76\u65e0\u4e24\u6837\u3002"),o.a.createElement("blockquote",null,o.a.createElement("p",null,"\u63d0\u9192\uff1a\u5c0f\u5fc3\u5faa\u73af\u4f9d\u8d56\uff01")),o.a.createElement(i["a"],{code:"import { useAccountStore } from './account-store'\n\nexport const [useTaskStore, TaskStoreProvider] = createStore(() => {\n // ...\n const { user } = useAccountStore()\n\n function addTask(taskName) {\n setTasks(v => [\n ...v,\n {\n name: taskName,\n assignee: user.id,\n },\n ])\n }\n\n // ...\n})",lang:"jsx"}),o.a.createElement("h2",{id:"\u4f20\u9012\u989d\u5916\u7684\u53c2\u6570\u7ed9-storeprovider"},o.a.createElement(a["AnchorLink"],{to:"#\u4f20\u9012\u989d\u5916\u7684\u53c2\u6570\u7ed9-storeprovider","aria-hidden":"true",tabIndex:-1},o.a.createElement("span",{className:"icon icon-link"})),"\u4f20\u9012\u989d\u5916\u7684\u53c2\u6570\u7ed9 StoreProvider"),o.a.createElement("p",null,"\u4f60\u53ef\u4ee5\u901a\u8fc7 ",o.a.createElement("code",null,"props")," \u4f20\u9012\u989d\u5916\u7684\u53c2\u6570\u7ed9 StoreProvider\uff0c\u7136\u540e\u518d store \u7684 Hook \u4e2d\uff0c\u901a\u8fc7\u7b2c\u4e00\u4e2a\u53c2\u6570 ",o.a.createElement("code",null,"props")," \u83b7\u53d6\u5230\uff0c\u5c31\u50cf\u5199 React \u7ec4\u4ef6\u4e00\u6837\uff1a"),o.a.createElement(i["a"],{code:"{/* ... */}",lang:"jsx"}),o.a.createElement(i["a"],{code:"type Props = {\n initialCount: number,\n}\n\nconst [useCounterStore, CounterStoreProvider] = createStore(function (\n props: Props\n) {\n const [count, setCount] = useState(props.initialCount)\n return { count, setCount }\n})",lang:"jsx"}),o.a.createElement("h2",{id:"\u5168\u5c40-store"},o.a.createElement(a["AnchorLink"],{to:"#\u5168\u5c40-store","aria-hidden":"true",tabIndex:-1},o.a.createElement("span",{className:"icon icon-link"})),"\u5168\u5c40 store"),o.a.createElement("p",null,"\u5176\u5b9e\u5e76\u4e0d\u662f\u6240\u6709\u7684 store \u90fd\u9700\u8981\u6709\u4e00\u4e2a\u4f5c\u7528\u57df\u3001\u9700\u8981\u652f\u6301\u591a\u4e2a\u5b9e\u4f8b\uff0c\u5728\u4e00\u4e2a\u771f\u5b9e\u7684\u9879\u76ee\u4e2d\uff0c\u5927\u90e8\u5206\u7684 store \u53ef\u80fd\u90fd\u662f\u5168\u5c40\u6027\u7684\uff0c\u800c\u5982\u679c\u4f60\u6bcf\u6b21\u90fd\u624b\u52a8\u6dfb\u52a0 StoreProvider\uff0c\u53ef\u80fd\u4f1a\u611f\u5230\u5d29\u6e83\uff1a"),o.a.createElement(i["a"],{code:"\n \n \n \n \n \n \n \n",lang:"jsx"}),o.a.createElement("p",null,"\u56e0\u6b64\uff0chox \u63d0\u4f9b\u4e86\u53e6\u4e00\u79cd\u7c7b\u578b\u7684 store\uff1a\u5168\u5c40 store\u3002"),o.a.createElement("p",null,"\u4f60\u53ef\u4ee5\u901a\u8fc7 ",o.a.createElement("code",null,"createGlobalStore")," \u6765\u521b\u5efa\u4e00\u4e2a\u5168\u5c40 ",o.a.createElement("code",null,"store"),"\uff1a"),o.a.createElement(i["a"],{code:"import { createGlobalStore } from 'hox'\n\nconst [useAccountStore, getAccountStore] = createGlobalStore(() => {\n // ...\n})",lang:"js"}),o.a.createElement("p",null,"\u548c ",o.a.createElement("code",null,"createStore")," \u7c7b\u4f3c\uff0c",o.a.createElement("code",null,"createGlobalStore")," \u8fd4\u56de\u4e86\u4e00\u4e2a\u6570\u7ec4\uff1a"),o.a.createElement("p",null,"\u7b2c\u4e00\u4e2a\u5143\u7d20\u662f\u7528\u6765\u8ba2\u9605 store \u7684 Hook \u51fd\u6570\uff0c\u5173\u4e8e\u5b83\u7684\u7528\u6cd5\uff0c\u8fd9\u91cc\u5c31\u4e0d\u518d\u4ecb\u7ecd\u4e86\uff0c\u548c\u666e\u901a store \u662f\u4e00\u6837\u7684\u3002"),o.a.createElement("p",null,"\u800c\u7b2c\u4e8c\u4e2a\u5143\u7d20\u6709\u4e9b\u533a\u522b\uff0c\u662f\u4e00\u4e2a\u9759\u6001\u83b7\u53d6\u51fd\u6570 ",o.a.createElement("code",null,"getXxxStore"),"\uff0c\u8fd9\u91cc\u5148\u5356\u4e2a\u5173\u5b50\uff0c\u4e0b\u9762\u518d\u5177\u4f53\u4ecb\u7ecd\u3002"),o.a.createElement("p",null,"\u53ef\u4ee5\u53d1\u73b0\uff0c\u5bf9\u4e8e\u5168\u5c40 store\uff0c\u5e76\u6ca1\u6709\u5bf9\u5e94\u7684 StoreProvider \u7ec4\u4ef6\uff0c\u56e0\u6b64\u4f60\u4e0d\u9700\u8981\u6bcf\u6b21\u521b\u5efa\u4e00\u4e2a store\uff0c\u5c31\u624b\u52a8\u6dfb\u52a0\u4e00\u5c42 Provider\u3002\u4e0d\u8fc7\uff0c\u4e3a\u4e86\u8ba9\u5168\u5c40 store \u80fd\u591f\u6b63\u5e38\u6ce8\u518c\uff0c\u4f60\u9700\u8981\u5728\u6574\u4e2a React \u5e94\u7528\u7684\u6700\u5916\u5c42\u7528 ",o.a.createElement("code",null,"HoxRoot")," \u5305\u88f9\u4e00\u4e0b\uff1a"),o.a.createElement(i["a"],{code:"import { HoxRoot } from 'hox'\n\nReactDOM.render(\n \n \n ,\n domContainer\n)",lang:"jsx"}),o.a.createElement("p",null,"\u4f60\u53ef\u4ee5\u628a ",o.a.createElement("code",null,"HoxRoot")," \u60f3\u8c61\u6210\u6240\u6709\u5168\u5c40 store \u7684\u7edf\u4e00\u7684 StoreProvider\uff0c\u53ef\u4ee5\u901a\u8fc7\u5b83\u4e00\u6b21\u6027\u5730\u628a\u6240\u6709\u5168\u5c40 store \u90fd\u6ce8\u518c\u6389\u3002"),o.a.createElement("p",null,"\u56de\u5230\u521a\u521a\u63d0\u5230\u7684 ",o.a.createElement("code",null,"getXxxStore")," \u51fd\u6570\uff0c\u5b83\u7684\u4f5c\u7528\u662f\u4e00\u6b21\u6027\u5730\u8bfb\u53d6 store \u5f53\u524d\u6700\u65b0\u7684\u503c\uff0c\u800c\u4e0d\u4f1a\u89e6\u53d1\u6301\u7eed\u7684\u8ba2\u9605\uff0c\u56e0\u4e3a\u5b83\u4e0d\u662f Hook\uff0c\u6240\u4ee5\u5e76\u4e0d\u9700\u8981\u4e00\u5b9a\u5728 React \u7ec4\u4ef6\u6e32\u67d3\u51fd\u6570\u4e2d\u8c03\u7528\uff0c\u4f60\u53ef\u4ee5\u5728\u4efb\u4f55\u5730\u65b9\u3001\u4efb\u4f55\u65f6\u5019\u8c03\u7528\u5b83\uff1a"),o.a.createElement(i["a"],{code:"export function log(message) {\n const { user } = getAccountStore()\n report.requestApi({\n message,\n userId: user.id,\n })\n}",lang:"js"})))}));t["default"]=e=>{var t=o.a.useContext(a["context"]),n=t.demos;return o.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&a["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),o.a.createElement(u,{demos:n})}},sErw:function(e,t,n){var r=n("x+sk");e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},sNUI:function(e,t,n){"use strict";var r=n("UabQ"),o=n("gbKz"),a=n("xoaw"),i=(n("d5Nj"),n("bXzL")),u=n("CHQZ"),l=n("QrC+"),c=n("QQXB"),s=new Map;function f(e){e.forEach((function(e){var t,n=e.target;null===(t=s.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}var d=new c["a"](f);function p(e,t){s.has(e)||(s.set(e,new Set),d.observe(e)),s.get(e).add(t)}function h(e,t){s.has(e)&&(s.get(e)["delete"](t),s.get(e).size||(d.unobserve(e),s["delete"](e)))}var v=n("XYCV"),m=n("Whls"),g=n("eUa+"),y=n("qSce"),b=function(e){Object(g["a"])(n,e);var t=Object(y["a"])(n);function n(){return Object(v["a"])(this,n),t.apply(this,arguments)}return Object(m["a"])(n,[{key:"render",value:function(){return this.props.children}}]),n}(o["Component"]),w=o["createContext"](null);function E(e){var t=e.children,n=e.onBatchResize,r=o["useRef"](0),a=o["useRef"]([]),i=o["useContext"](w),u=o["useCallback"]((function(e,t,o){r.current+=1;var u=r.current;a.current.push({size:e,element:t,data:o}),Promise.resolve().then((function(){u===r.current&&(null===n||void 0===n||n(a.current),a.current=[])})),null===i||void 0===i||i(e,t,o)}),[n,i]);return o["createElement"](w.Provider,{value:u},t)}function k(e){var t=e.children,n=e.disabled,r=o["useRef"](null),a=o["useRef"](null),c=o["useContext"](w),s="function"===typeof t,f=s?t(r):t,d=o["useRef"]({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),v=!s&&o["isValidElement"](f)&&Object(u["c"])(f),m=v?f.ref:null,g=o["useMemo"]((function(){return Object(u["a"])(m,r)}),[m,r]),y=o["useRef"](e);y.current=e;var E=o["useCallback"]((function(e){var t=y.current,n=t.onResize,r=t.data,o=e.getBoundingClientRect(),a=o.width,u=o.height,l=e.offsetWidth,s=e.offsetHeight,f=Math.floor(a),p=Math.floor(u);if(d.current.width!==f||d.current.height!==p||d.current.offsetWidth!==l||d.current.offsetHeight!==s){var h={width:f,height:p,offsetWidth:l,offsetHeight:s};d.current=h;var v=l===Math.round(a)?a:l,m=s===Math.round(u)?u:s,g=Object(i["a"])(Object(i["a"])({},h),{},{offsetWidth:v,offsetHeight:m});null===c||void 0===c||c(g,e,r),n&&Promise.resolve().then((function(){n(g,e)}))}}),[]);return o["useEffect"]((function(){var e=Object(l["a"])(r.current)||Object(l["a"])(a.current);return e&&!n&&p(e,E),function(){return h(e,E)}}),[r.current,n]),o["createElement"](b,{ref:a},v?o["cloneElement"](f,{ref:g}):f)}var O="rc-observer-key";function S(e){var t=e.children,n="function"===typeof t?[t]:Object(a["a"])(t);return n.map((function(t,n){var a=(null===t||void 0===t?void 0:t.key)||"".concat(O,"-").concat(n);return o["createElement"](k,Object(r["a"])({},e,{key:a}),t)}))}S.Collection=E;t["a"]=S},sumy:function(e,t,n){"use strict";function r(){var e=n("gbKz");return r=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.getDemoUrl=t.getDemoRouteName=t["default"]=void 0;var o=a(n("bDK3"));function a(e){return e&&e.__esModule?e:{default:e}}function i(e,t){return f(e)||s(e,t)||l(e,t)||u()}function u(){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 l(e,t){if(e){if("string"===typeof e)return c(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(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n-1&&n.push(f[r]);m(n)}else m([])}),[e,f.length]),v},m=function(){var e=(0,o().useContext)(a.context),t=e.config.algolia,n=(0,o().useCallback)((function(e){window.docsearch(u({inputSelector:e},t))}),[t]);return n},g=function(e){var t=(0,o().useContext)(a.context),n=t.config,r=v(e),i=m();return n.algolia?i:r};t["default"]=g},"t+GO":function(e,t,n){var r=n("t+TA"),o=n("O4yA"),a=r(o,"DataView");e.exports=a},"t+TA":function(e,t,n){var r=n("bK3N"),o=n("HU7W");function a(e,t){var n=o(e,t);return r(n)?n:void 0}e.exports=a},"t+pk":function(e,t,n){"use strict";var r=n("QkOx"),o=n("q43B"),a=n("sErw"),i=n("z43i"),u=n("ZT9G"),l=n("o1x9"),c=n("upgS"),s=n("OR72"),f=n("A2zS"),d=n("h+/6"),p=[].push,h=Math.min,v=4294967295,m=!d((function(){return!RegExp(v,"y")}));r("split",2,(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=String(i(this)),a=void 0===n?v:n>>>0;if(0===a)return[];if(void 0===e)return[r];if(!o(e))return t.call(r,e,a);var u,l,c,s=[],d=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),h=0,m=new RegExp(e.source,d+"g");while(u=f.call(m,r)){if(l=m.lastIndex,l>h&&(s.push(r.slice(h,u.index)),u.length>1&&u.index=a))break;m.lastIndex===u.index&&m.lastIndex++}return h===r.length?!c&&m.test("")||s.push(""):s.push(r.slice(h)),s.length>a?s.slice(0,a):s}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var o=i(this),a=void 0==t?void 0:t[e];return void 0!==a?a.call(t,o,n):r.call(String(o),t,n)},function(e,o){var i=n(r,e,this,o,r!==t);if(i.done)return i.value;var f=a(e),d=String(this),p=u(f,RegExp),g=f.unicode,y=(f.ignoreCase?"i":"")+(f.multiline?"m":"")+(f.unicode?"u":"")+(m?"y":"g"),b=new p(m?f:"^(?:"+f.source+")",y),w=void 0===o?v:o>>>0;if(0===w)return[];if(0===d.length)return null===s(b,d)?[d]:[];var E=0,k=0,O=[];while(ke.length)&&(t=e.length);for(var n=0,r=new Array(t);n{var t=n("gbKz"),r=n("ifMV"),o=r.default,a=n("kZcd"),i=a.default,u=n("u4Q2"),l=u.usePrefersColor,c=u.context,s=t.useContext(c),f=s.demos,p=t.useState([]),h=d(p,2),v=h[0],m=h[1];switch(t.useLayoutEffect((()=>{m(o(e,f))}),[e.match.params.uuid,e.location.query.wrapper,e.location.query.capture]),l(),v.length){case 1:return v[0];case 2:return t.createElement(i,v[0],v[1]);default:return"Demo ".concat(e.match.params.uuid," not found :(")}}},{path:"/_demos/:uuid",redirect:"/~demos/:uuid"},{__dumiRoot:!0,layout:!1,path:"/",wrappers:[n("afA6").default,n("J+8q").default],routes:[{path:"/",component:n("7m2b").default,exact:!0,meta:{filePath:"docs/index.en.md",updatedTime:1658834411e3,title:"Hox",hero:{title:"Hox",desc:'

State sharing for React components.

'},slugs:[{depth:2,value:"Play Hox in Codesandbox",heading:"play-hox-in-codesandbox"},{depth:2,value:"From state management to state sharing",heading:"from-state-management-to-state-sharing"},{depth:2,value:"Why use Hox?",heading:"why-use-hox"}],locale:"en"},title:"Hox - Hox"},{path:"/zh",component:n("75ce").default,exact:!0,meta:{filePath:"docs/index.zh.md",updatedTime:1658834411e3,title:"Hox",hero:{title:"Hox",desc:'

\u5728 React \u7ec4\u4ef6\u95f4\u5171\u4eab\u72b6\u6001

'},slugs:[{depth:2,value:"\u5728\u7ebf\u4f53\u9a8c",heading:"\u5728\u7ebf\u4f53\u9a8c"},{depth:2,value:"\u4ece\u72b6\u6001\u7ba1\u7406\u5230\u72b6\u6001\u5171\u4eab",heading:"\u4ece\u72b6\u6001\u7ba1\u7406\u5230\u72b6\u6001\u5171\u4eab"},{depth:2,value:"\u4e3a\u4ec0\u4e48\u8981\u7528 Hox\uff1f",heading:"\u4e3a\u4ec0\u4e48\u8981\u7528-hox"}],locale:"zh"},title:"Hox - Hox"},{path:"/guide/how-to-migrate-from-v1-to-v2",component:n("Fk8h").default,exact:!0,meta:{filePath:"docs/guide/how-to-migrate-from-v1-to-v2.en.md",updatedTime:1658834363e3,slugs:[{depth:1,value:"How to migrate from v1 to v2",heading:"how-to-migrate-from-v1-to-v2"},{depth:2,value:"HoxRoot",heading:"hoxroot"},{depth:2,value:"useLazyModel",heading:"uselazymodel"},{depth:2,value:"Finish",heading:"finish"}],title:"How to migrate from v1 to v2",locale:"en",nav:{path:"/guide",title:"Guide"}},title:"How to migrate from v1 to v2 - Hox"},{path:"/zh/guide/how-to-migrate-from-v1-to-v2",component:n("U5Fb").default,exact:!0,meta:{filePath:"docs/guide/how-to-migrate-from-v1-to-v2.zh.md",updatedTime:1658834363e3,slugs:[{depth:1,value:"\u5982\u4f55\u4ece v1 \u8fc1\u79fb\u5230 v2",heading:"\u5982\u4f55\u4ece-v1-\u8fc1\u79fb\u5230-v2"},{depth:2,value:"createModel",heading:"createmodel"},{depth:2,value:"HoxRoot",heading:"hoxroot"},{depth:2,value:"useLazyModel",heading:"uselazymodel"},{depth:2,value:"\u5b8c\u6210",heading:"\u5b8c\u6210"}],title:"\u5982\u4f55\u4ece v1 \u8fc1\u79fb\u5230 v2",locale:"zh",nav:{path:"/zh/guide",title:"Guide"}},title:"\u5982\u4f55\u4ece v1 \u8fc1\u79fb\u5230 v2 - Hox"},{path:"/guide/performance",component:n("alDa").default,exact:!0,meta:{filePath:"docs/guide/performance.en.md",updatedTime:165839273e4,slugs:[{depth:1,value:"Performance",heading:"performance"}],title:"Performance",locale:"en",nav:{path:"/guide",title:"Guide"}},title:"Performance - Hox"},{path:"/zh/guide/performance",component:n("Fdmm").default,exact:!0,meta:{filePath:"docs/guide/performance.zh.md",updatedTime:1657767478e3,slugs:[{depth:1,value:"\u6027\u80fd\u4f18\u5316",heading:"\u6027\u80fd\u4f18\u5316"}],title:"\u6027\u80fd\u4f18\u5316",locale:"zh",nav:{path:"/zh/guide",title:"Guide"}},title:"\u6027\u80fd\u4f18\u5316 - Hox"},{path:"/guide/quick-start",component:n("Gkaq").default,exact:!0,meta:{filePath:"docs/guide/quick-start.en.md",updatedTime:165839273e4,slugs:[{depth:1,value:"Quick Start",heading:"quick-start"},{depth:2,value:"Create a Store",heading:"create-a-store"},{depth:2,value:"The Context and Multiple Instances of Store",heading:"the-context-and-multiple-instances-of-store"},{depth:2,value:"The Dependencies Between Stores",heading:"the-dependencies-between-stores"},{depth:2,value:"Global Store",heading:"global-store"}],title:"Quick Start",locale:"en",nav:{path:"/guide",title:"Guide"}},title:"Quick Start - Hox"},{path:"/zh/guide/quick-start",component:n("s8zK").default,exact:!0,meta:{filePath:"docs/guide/quick-start.zh.md",updatedTime:1660444739e3,slugs:[{depth:1,value:"\u5feb\u901f\u4e0a\u624b",heading:"\u5feb\u901f\u4e0a\u624b"},{depth:2,value:"\u521b\u5efa\u4e00\u4e2a store",heading:"\u521b\u5efa\u4e00\u4e2a-store"},{depth:2,value:"store \u7684\u4e0a\u4e0b\u6587\u548c\u591a\u4e2a\u5b9e\u4f8b",heading:"store-\u7684\u4e0a\u4e0b\u6587\u548c\u591a\u4e2a\u5b9e\u4f8b"},{depth:2,value:"store \u4e4b\u95f4\u7684\u4f9d\u8d56",heading:"store-\u4e4b\u95f4\u7684\u4f9d\u8d56"},{depth:2,value:"\u4f20\u9012\u989d\u5916\u7684\u53c2\u6570\u7ed9 StoreProvider",heading:"\u4f20\u9012\u989d\u5916\u7684\u53c2\u6570\u7ed9-storeprovider"},{depth:2,value:"\u5168\u5c40 store",heading:"\u5168\u5c40-store"}],title:"\u5feb\u901f\u4e0a\u624b",locale:"zh",nav:{path:"/zh/guide",title:"Guide"}},title:"\u5feb\u901f\u4e0a\u624b - Hox"},{path:"/guide/use-in-class-components",component:n("Teq4").default,exact:!0,meta:{filePath:"docs/guide/use-in-class-components.en.md",updatedTime:165839273e4,slugs:[{depth:1,value:"Use in Class Components",heading:"use-in-class-components"}],title:"Use in Class Components",locale:"en",nav:{path:"/guide",title:"Guide"}},title:"Use in Class Components - Hox"},{path:"/zh/guide/use-in-class-components",component:n("Kfai").default,exact:!0,meta:{filePath:"docs/guide/use-in-class-components.zh.md",updatedTime:1657767478e3,slugs:[{depth:1,value:"\u5728\u7c7b\u7ec4\u4ef6\u4e2d\u4f7f\u7528",heading:"\u5728\u7c7b\u7ec4\u4ef6\u4e2d\u4f7f\u7528"}],title:"\u5728\u7c7b\u7ec4\u4ef6\u4e2d\u4f7f\u7528",locale:"zh",nav:{path:"/zh/guide",title:"Guide"}},title:"\u5728\u7c7b\u7ec4\u4ef6\u4e2d\u4f7f\u7528 - Hox"},{path:"/guide",meta:{},exact:!0,redirect:"/guide/quick-start"},{path:"/zh/guide",meta:{},exact:!0,redirect:"/guide/quick-start"}],title:"Hox",component:e=>e.children}];return r["a"].applyPlugins({key:"patchRoutes",type:a["ApplyPluginsType"].event,args:{routes:e}}),e}var h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r["a"].applyPlugins({key:"render",type:a["ApplyPluginsType"].compose,initialValue:()=>{var t=r["a"].applyPlugins({key:"modifyClientRenderOpts",type:a["ApplyPluginsType"].modify,initialValue:{routes:e.routes||p(),plugin:r["a"],history:Object(o["a"])(e.hot),isServer:Object({NODE_ENV:"production"}).__IS_SERVER,rootElement:"root",defaultTitle:"Hox"}});return Object(i["renderClient"])(t)},args:e})},v=h();t["default"]=v();window.g_umi={version:"3.5.27"}},tDGd:function(e,t,n){var r,o,a=n("6SQG"),i=n("7EYs"),u=a.process,l=u&&u.versions,c=l&&l.v8;c?(r=c.split("."),o=r[0]+r[1]):i&&(r=i.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=i.match(/Chrome\/(\d+)/),r&&(o=r[1]))),e.exports=o&&+o},tOwT:function(e,t,n){"use strict";var r=n("BUyj"),o=n("jETf");r("WeakSet",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),o)},tSbI:function(e,t,n){"use strict";e.exports=n("Swb/")},tSnU:function(e,t,n){var r=n("h+/6"),o=n("Vg85"),a="\u200b\x85\u180e";e.exports=function(e){return r((function(){return!!o[e]()||a[e]()!=a||o[e].name!==e}))}},ta0t:function(e,t,n){var r=n("vTOu");function o(e){if(Array.isArray(e))return r(e)}e.exports=o},tmip:function(e,t,n){"use strict";var r=n("JSMs"),o=n("0JbB"),a=n("ZVkV");e.exports=function(e,t,n){var i=r(t);i in e?o.f(e,i,a(0,n)):e[i]=n}},u4Q2:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AnchorLink",{enumerable:!0,get:function(){return i["default"]}}),Object.defineProperty(t,"Link",{enumerable:!0,get:function(){return o["default"]}}),Object.defineProperty(t,"NavLink",{enumerable:!0,get:function(){return a["default"]}}),Object.defineProperty(t,"context",{enumerable:!0,get:function(){return r["default"]}}),Object.defineProperty(t,"getDemoUrl",{enumerable:!0,get:function(){return p.getDemoUrl}}),Object.defineProperty(t,"useApiData",{enumerable:!0,get:function(){return h["default"]}}),Object.defineProperty(t,"useCodeSandbox",{enumerable:!0,get:function(){return f["default"]}}),Object.defineProperty(t,"useCopy",{enumerable:!0,get:function(){return l["default"]}}),Object.defineProperty(t,"useDemoUrl",{enumerable:!0,get:function(){return p["default"]}}),Object.defineProperty(t,"useLocaleProps",{enumerable:!0,get:function(){return d["default"]}}),Object.defineProperty(t,"useMotions",{enumerable:!0,get:function(){return s["default"]}}),Object.defineProperty(t,"usePrefersColor",{enumerable:!0,get:function(){return m["default"]}}),Object.defineProperty(t,"useRiddle",{enumerable:!0,get:function(){return c["default"]}}),Object.defineProperty(t,"useSearch",{enumerable:!0,get:function(){return u["default"]}}),Object.defineProperty(t,"useTSPlaygroundUrl",{enumerable:!0,get:function(){return v["default"]}});var r=b(n("bDK3")),o=b(n("Ox8W")),a=b(n("GfU7")),i=b(n("MS37")),u=b(n("sxKX")),l=b(n("Qzwt")),c=b(n("+oJd")),s=b(n("ph/m")),f=b(n("KEOO")),d=b(n("R3NM")),p=y(n("sumy")),h=b(n("Kb0w")),v=b(n("SdQ5")),m=b(n("f3hl"));function g(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(g=function(e){return e?n:t})(e)}function y(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var n=g(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}return r["default"]=e,n&&n.set(e,r),r}function b(e){return e&&e.__esModule?e:{default:e}}},u6jA:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("dDvS");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(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r["a"])(e,t):void 0}}},u7Ge:function(e,t,n){var r=n("F71Q");function o(e){return r(this,e).get(e)}e.exports=o},uAOU:function(e,t,n){"use strict";var r=n("6SQG"),o=n("g0pg"),a=n("h+/6"),i=r.Int8Array,u=o.aTypedArray,l=o.exportTypedArrayMethod,c=[].toLocaleString,s=[].slice,f=!!i&&a((function(){c.call(new i(1))})),d=a((function(){return[1,2].toLocaleString()!=new i([1,2]).toLocaleString()}))||!a((function(){i.prototype.toLocaleString.call([1,2])}));l("toLocaleString",(function(){return c.apply(f?s.call(u(this)):u(this),arguments)}),d)},"uF/W":function(e,t,n){var r=n("6SQG"),o=n("MZA9"),a=n("oEsY"),i=n("jukf"),u=n("piBM"),l=n("uJNS"),c=l.get,s=l.enforce,f=String(String).split("String");(e.exports=function(e,t,n,u){var l=!!u&&!!u.unsafe,c=!!u&&!!u.enumerable,d=!!u&&!!u.noTargetGet;"function"==typeof n&&("string"!=typeof t||a(n,"name")||o(n,"name",t),s(n).source=f.join("string"==typeof t?t:"")),e!==r?(l?!d&&e[t]&&(c=!0):delete e[t],c?e[t]=n:o(e,t,n)):c?e[t]=n:i(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&c(this).source||u(this)}))},uJNS:function(e,t,n){var r,o,a,i=n("qbEc"),u=n("6SQG"),l=n("x+sk"),c=n("MZA9"),s=n("oEsY"),f=n("8i6t"),d=n("Y3cF"),p=u.WeakMap,h=function(e){return a(e)?o(e):r(e,{})},v=function(e){return function(t){var n;if(!l(t)||(n=o(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}};if(i){var m=new p,g=m.get,y=m.has,b=m.set;r=function(e,t){return b.call(m,e,t),t},o=function(e){return g.call(m,e)||{}},a=function(e){return y.call(m,e)}}else{var w=f("state");d[w]=!0,r=function(e,t){return c(e,w,t),t},o=function(e){return s(e,w)?e[w]:{}},a=function(e){return s(e,w)}}e.exports={set:r,get:o,has:a,enforce:h,getterFor:v}},"uZx/":function(e,t,n){var r=n("sErw"),o=n("dwb6"),a=n("upgS"),i=n("v3z7"),u=n("MI4T"),l=n("pKuQ"),c=function(e,t){this.stopped=e,this.result=t},s=e.exports=function(e,t,n,s,f){var d,p,h,v,m,g,y,b=i(t,n,s?2:1);if(f)d=e;else{if(p=u(e),"function"!=typeof p)throw TypeError("Target is not iterable");if(o(p)){for(h=0,v=a(e.length);v>h;h++)if(m=s?b(r(y=e[h])[0],y[1]):b(e[h]),m&&m instanceof c)return m;return new c(!1)}d=p.call(e)}g=d.next;while(!(y=g.call(d)).done)if(m=l(d,b,y.value,s),"object"==typeof m&&m&&m instanceof c)return m;return new c(!1)};s.stop=function(e){return new c(!0,e)}},ubep:function(e,t,n){"use strict";var r=n("SHha"),o=n("gbKz");t.useSubscription=function(e){var t=e.getCurrentValue,n=e.subscribe,a=o.useState((function(){return{getCurrentValue:t,subscribe:n,value:t()}}));e=a[0];var i=a[1];return a=e.value,e.getCurrentValue===t&&e.subscribe===n||(a=t(),i({getCurrentValue:t,subscribe:n,value:a})),o.useDebugValue(a),o.useEffect((function(){function e(){if(!o){var e=t();i((function(o){return o.getCurrentValue!==t||o.subscribe!==n||o.value===e?o:r({},o,{value:e})}))}}var o=!1,a=n(e);return e(),function(){o=!0,a()}}),[t,n]),a}},upgS:function(e,t,n){var r=n("ANLo"),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},v1go:function(e,t,n){"use strict";var r=n("OOCw"),o=n("6ssM").f,a=n("upgS"),i=n("SD1J"),u=n("z43i"),l=n("TxDi"),c=n("qyeh"),s="".endsWith,f=Math.min,d=l("endsWith"),p=!c&&!d&&!!function(){var e=o(String.prototype,"endsWith");return e&&!e.writable}();r({target:"String",proto:!0,forced:!p&&!d},{endsWith:function(e){var t=String(u(this));i(e);var n=arguments.length>1?arguments[1]:void 0,r=a(t.length),o=void 0===n?r:f(a(n),r),l=String(e);return s?s.call(t,l,o):t.slice(o-l.length,o)===l}})},v3z7:function(e,t,n){var r=n("lkgX");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},vEbx:function(e,t,n){var r=n("oEsY"),o=n("684d"),a=n("YfbA").indexOf,i=n("Y3cF");e.exports=function(e,t){var n,u=o(e),l=0,c=[];for(n in u)!r(i,n)&&r(u,n)&&c.push(n);while(t.length>l)r(u,n=t[l++])&&(~a(c,n)||c.push(n));return c}},vMeL:function(e,t,n){var r=n("6SQG"),o=n("h+/6"),a=n("eW2S"),i=n("g0pg").NATIVE_ARRAY_BUFFER_VIEWS,u=r.ArrayBuffer,l=r.Int8Array;e.exports=!i||!o((function(){l(1)}))||!o((function(){new l(-1)}))||!a((function(e){new l,new l(null),new l(1.5),new l(e)}),!0)||o((function(){return 1!==new l(new u(2),1,void 0).length}))},vRqM:function(e,t,n){"use strict";var r=n("OOCw"),o=n("CsJM").trim,a=n("tSnU");r({target:"String",proto:!0,forced:a("trim")},{trim:function(){return o(this)}})},vSpU:function(e,t,n){"use strict";var r=n("OOCw"),o=n("dz2h"),a=n("zesz"),i=n("d8EH"),u=n("nBeg"),l=n("MZA9"),c=n("uF/W"),s=n("3Hes"),f=n("qyeh"),d=n("AnAv"),p=n("WkS0"),h=p.IteratorPrototype,v=p.BUGGY_SAFARI_ITERATORS,m=s("iterator"),g="keys",y="values",b="entries",w=function(){return this};e.exports=function(e,t,n,s,p,E,k){o(n,t,s);var O,S,x,j=function(e){if(e===p&&P)return P;if(!v&&e in _)return _[e];switch(e){case g:return function(){return new n(this,e)};case y:return function(){return new n(this,e)};case b:return function(){return new n(this,e)}}return function(){return new n(this)}},C=t+" Iterator",A=!1,_=e.prototype,T=_[m]||_["@@iterator"]||p&&_[p],P=!v&&T||j(p),R="Array"==t&&_.entries||T;if(R&&(O=a(R.call(new e)),h!==Object.prototype&&O.next&&(f||a(O)===h||(i?i(O,h):"function"!=typeof O[m]&&l(O,m,w)),u(O,C,!0,!0),f&&(d[C]=w))),p==y&&T&&T.name!==y&&(A=!0,P=function(){return T.call(this)}),f&&!k||_[m]===P||l(_,m,P),d[t]=P,p)if(S={values:j(y),keys:E?P:j(g),entries:j(b)},k)for(x in S)(v||A||!(x in _))&&c(_,x,S[x]);else r({target:t,proto:!0,forced:v||A},S);return S}},vTOu:function(e,t){function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=c?e?"":void 0:(a=u.charCodeAt(l),a<55296||a>56319||l+1===c||(i=u.charCodeAt(l+1))<56320||i>57343?e?u.charAt(l):a:e?u.slice(l,l+2):i-56320+(a-55296<<10)+65536)}};e.exports={codeAt:a(!1),charAt:a(!0)}},vnjD:function(e,t,n){"use strict";e.exports=n("ubep")},vqhe:function(e,t,n){"use strict";var r=n("OOCw"),o=n("YfbA").indexOf,a=n("rUEg"),i=n("7/pz"),u=[].indexOf,l=!!u&&1/[1].indexOf(1,-0)<0,c=a("indexOf"),s=i("indexOf",{ACCESSORS:!0,1:0});r({target:"Array",proto:!0,forced:l||!c||!s},{indexOf:function(e){return l?u.apply(this,arguments)||0:o(this,e,arguments.length>1?arguments[1]:void 0)}})},w7O4:function(e,t,n){var r=n("F71Q");function o(e){return r(this,e).has(e)}e.exports=o},wWVk:function(e,t){function n(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}e.exports=n},woFt:function(e,t,n){},"x+sk":function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},x1LQ:function(e,t,n){"use strict";var r=n("g0pg").exportTypedArrayMethod,o=n("h+/6"),a=n("6SQG"),i=a.Uint8Array,u=i&&i.prototype||{},l=[].toString,c=[].join;o((function(){l.call({})}))&&(l=function(){return c.call(this)});var s=u.toString!=l;r("toString",l,s)},x2v5:function(e){e.exports=JSON.parse("{}")},xTvi:function(e,t,n){"use strict";var r=n("OOCw"),o=n("qyeh"),a=n("sErw"),i=n("v3z7"),u=n("R8Xy"),l=n("uZx/");r({target:"Set",proto:!0,real:!0,forced:o},{some:function(e){var t=a(this),n=u(t),r=i(e,arguments.length>1?arguments[1]:void 0,3);return l(n,(function(e){if(r(e,e,t))return l.stop()}),void 0,!1,!0).stopped}})},xiuu:function(e,t,n){"use strict";var r=n("vMeL"),o=n("g0pg").exportTypedArrayStaticMethod,a=n("N0ls");o("from",a,r)},xngY:function(e,t,n){"use strict";var r=n("gbKz"),o=n.n(r),a=function(){var e=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,t=0,n={},r={util:{encode:function e(t){return t instanceof o?new o(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/=f.reach)break;var S=k.value;if(t.length>e.length)return;if(!(S instanceof o)){var x,j=1;if(y){if(x=a(E,O,e,g),!x||x.index>=e.length)break;var C=x.index,A=x.index+x[0].length,_=O;_+=k.value.length;while(C>=_)k=k.next,_+=k.value.length;if(_-=k.value.length,O=_,k.value instanceof o)continue;for(var T=k;T!==t.tail&&(_f.reach&&(f.reach=M);var I=k.prev;R&&(I=l(t,I,R),O+=R.length),c(t,I,j);var L=new o(d,m?r.tokenize(P,m):P,b,P);if(k=l(t,I,L),N&&l(t,k,N),j>1){var D={cause:d+","+h,reach:M};i(e,t,n,k.prev,O,D),f&&D.reach>f.reach&&(f.reach=D.reach)}}}}}}function u(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function l(e,t,n){var r=t.next,o={value:n,prev:t,next:r};return t.next=o,r.prev=o,e.length++,o}function c(e,t,n){for(var r=t.next,o=0;o"+a.content+""},r}(),i=a;a["default"]=a,i.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},i.languages.markup["tag"].inside["attr-value"].inside["entity"]=i.languages.markup["entity"],i.languages.markup["doctype"].inside["internal-subset"].inside=i.languages.markup,i.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes["title"]=e.content.replace(/&/,"&"))})),Object.defineProperty(i.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^$)/i,lookbehind:!0,inside:i.languages[t]},n["cdata"]=/^$/i;var r={"included-cdata":{pattern://i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:i.languages[t]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:r},i.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(i.languages.markup.tag,"addAttribute",{value:function(e,t){i.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:i.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),i.languages.html=i.languages.markup,i.languages.mathml=i.languages.markup,i.languages.svg=i.languages.markup,i.languages.xml=i.languages.extend("markup",{}),i.languages.ssml=i.languages.xml,i.languages.atom=i.languages.xml,i.languages.rss=i.languages.xml,function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var o=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],a=r.variable[1].inside,i=0;i]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},i.languages.c=i.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),i.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),i.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},i.languages.c["string"]],char:i.languages.c["char"],comment:i.languages.c["comment"],"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:i.languages.c}}}}),i.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete i.languages.c["boolean"],function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!)\w+(?:\s*\.\s*\w+)*\b/.source.replace(//g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!)\w+/.source.replace(//g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/(?:\s*:\s*)?|:\s*/.source.replace(//g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(i),function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css["atrule"].inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(i),function(e){var t,n=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/;e.languages.css.selector={pattern:e.languages.css.selector.pattern,lookbehind:!0,inside:t={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp("\\[(?:[^[\\]\"']|"+n.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[n,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},e.languages.css["atrule"].inside["selector-function-argument"].inside=t,e.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var r={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},o={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};e.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:r,number:o,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:r,number:o})}(i),i.languages.javascript=i.languages.extend("clike",{"class-name":[i.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),i.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,i.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:i.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:i.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:i.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:i.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:i.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),i.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:i.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),i.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),i.languages.markup&&(i.languages.markup.tag.addInlined("script","javascript"),i.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),i.languages.js=i.languages.javascript,function(e){var t=/#(?!\{).+/,n={pattern:/#\{[^}]+\}/,alias:"variable"};e.languages.coffeescript=e.languages.extend("javascript",{comment:t,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:n}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),e.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:t,interpolation:n}}}),e.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:e.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:n}}]}),e.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete e.languages.coffeescript["template-string"],e.languages.coffee=e.languages.coffeescript}(i),function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,r="(?:"+n.source+"(?:[ \t]+"+t.source+")?|"+t.source+"(?:[ \t]+"+n.source+")?)",o=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,(function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source})),a=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function i(e,t){t=(t||"").replace(/m/g,"")+"m";var n=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,(function(){return r})).replace(/<>/g,(function(){return e}));return RegExp(n,t)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,(function(){return r}))),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,(function(){return r})).replace(/<>/g,(function(){return"(?:"+o+"|"+a+")"}))),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:i(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:i(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:i(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:i(a),lookbehind:!0,greedy:!0},number:{pattern:i(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml}(i),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(//g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),a=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+a+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+a+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+a+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~))+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(t){["url","bold","italic","strike","code-snippet"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){function t(e){if(e&&"string"!==typeof e)for(var n=0,r=e.length;n",quot:'"'},l=String.fromCodePoint||String.fromCharCode;function c(e){var t=e.replace(i,"");return t=t.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;if(t=t.toLowerCase(),"#"===t[0])return n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),l(n);var r=u[t];return r||e})),t}e.languages.md=e.languages.markdown}(i),i.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:i.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},i.hooks.add("after-tokenize",(function(e){if("graphql"===e.language)for(var t=e.tokens.filter((function(e){return"string"!==typeof e&&"comment"!==e.type&&"scalar"!==e.type})),n=0;n0)){var u=d(/^\{$/,/^\}$/);if(-1===u)continue;for(var l=n;l=0&&p(c,"variable-input")}}}}function s(e){return t[n+e]}function f(e,t){t=t||0;for(var n=0;n?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){var t=e.languages.javascript["template-string"],n=t.pattern.source,r=t.inside["interpolation"],o=r.inside["interpolation-punctuation"],a=r.pattern.source;function i(t,r){if(e.languages[t])return{pattern:RegExp("((?:"+r+")\\s*)"+n),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:t}}}}function u(e,t){return"___"+t.toUpperCase()+"_"+e+"___"}function l(t,n,r){var o={code:t,grammar:n,language:r};return e.hooks.run("before-tokenize",o),o.tokens=e.tokenize(o.code,o.grammar),e.hooks.run("after-tokenize",o),o.tokens}function c(t){var n={};n["interpolation-punctuation"]=o;var a=e.tokenize(t,n);if(3===a.length){var i=[1,1];i.push.apply(i,l(a[1],e.languages.javascript,"javascript")),a.splice.apply(a,i)}return new e.Token("interpolation",a,r.alias,t)}function s(t,n,r){var o=e.tokenize(t,{interpolation:{pattern:RegExp(a),lookbehind:!0}}),i=0,s={},f=o.map((function(e){if("string"===typeof e)return e;var n,o=e.content;while(-1!==t.indexOf(n=u(i++,r)));return s[n]=o,n})).join(""),d=l(f,n,r),p=Object.keys(s);function h(e){for(var t=0;t=p.length)return;var n=e[t];if("string"===typeof n||"string"===typeof n.content){var r=p[i],o="string"===typeof n?n:n.content,a=o.indexOf(r);if(-1!==a){++i;var u=o.substring(0,a),l=c(s[r]),f=o.substring(a+r.length),d=[];if(u&&d.push(u),d.push(l),f){var v=[f];h(v),d.push.apply(d,v)}"string"===typeof n?(e.splice.apply(e,[t,1].concat(d)),t+=d.length-1):n.content=d}}else{var m=n.content;Array.isArray(m)?h(m):h([m])}}}return i=0,h(d),new e.Token(r,d,"language-"+r,t)}e.languages.javascript["template-string"]=[i("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),i("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),i("svg",/\bsvg/.source),i("markdown",/\b(?:markdown|md)/.source),i("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),i("sql",/\bsql/.source),t].filter(Boolean);var f={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function d(e){return"string"===typeof e?e:Array.isArray(e)?e.map(d).join(""):d(e.content)}e.hooks.add("after-tokenize",(function(t){function n(t){for(var r=0,o=t.length;r]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript["parameter"],delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(i),function(e){function t(e,t){return RegExp(e.replace(//g,(function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source})),t)}e.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+e.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),e.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+e.languages.javascript["function"].source),lookbehind:!0,alias:["function","property-access"]}}),e.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),e.languages.insertBefore("javascript","keyword",{imports:{pattern:t(/(\bimport\b\s*)(?:(?:\s*,\s*(?:\*\s*as\s+|\{[^{}]*\}))?|\*\s*as\s+|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:e.languages.javascript},exports:{pattern:t(/(\bexport\b\s*)(?:\*(?:\s*as\s+)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:e.languages.javascript}}),e.languages.javascript["keyword"].unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),e.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),e.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:t(/(\.\s*)#?/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var n=["function","function-variable","method","method-variable","property-access"],r=0;r*\.{3}(?:[^{}]|)*\})/.source;function a(e,t){return e=e.replace(//g,(function(){return n})).replace(//g,(function(){return r})).replace(//g,(function(){return o})),RegExp(e,t)}o=a(o).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=a(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),e.languages.jsx.tag.inside["tag"].pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside["tag"].inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside["comment"]=t["comment"],e.languages.insertBefore("inside","attr-name",{spread:{pattern:a(//.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:a(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var i=function e(t){return t?"string"===typeof t?t:"string"===typeof t.content?t.content:t.content.map(e).join(""):""},u=function t(n){for(var r=[],o=0;o0&&r[r.length-1].tagName===i(a.content[0].content[1])&&r.pop():"/>"===a.content[a.content.length-1].content||r.push({tagName:i(a.content[0].content[1]),openedBraces:0}):r.length>0&&"punctuation"===a.type&&"{"===a.content?r[r.length-1].openedBraces++:r.length>0&&r[r.length-1].openedBraces>0&&"punctuation"===a.type&&"}"===a.content?r[r.length-1].openedBraces--:u=!0),(u||"string"===typeof a)&&r.length>0&&0===r[r.length-1].openedBraces){var l=i(a);o0&&("string"===typeof n[o-1]||"plain-text"===n[o-1].type)&&(l=i(n[o-1])+l,n.splice(o-1,1),o--),n[o]=new e.Token("plain-text",l,null,l)}a.content&&"string"!==typeof a.content&&t(a.content)}};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||u(e.tokens)}))}(i),function(e){e.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var t={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(t).forEach((function(n){var r=t[n],o=[];/^\w+$/.test(n)||o.push(/\w+/.exec(n)[0]),"diff"===n&&o.push("bold"),e.languages.diff[n]={pattern:RegExp("^(?:["+r+"].*(?:\r\n?|\n|(?![\\s\\S])))+","m"),alias:o,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(n)[0]}}}})),Object.defineProperty(e.languages.diff,"PREFIXES",{value:t})}(i),i.languages.git={comment:/^#.*/m,deleted:/^[-\u2013].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m},i.languages.go=i.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),i.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete i.languages.go["class-name"],function(e){function t(e,t){return"___"+e.toUpperCase()+t+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(n,r,o,a){if(n.language===r){var i=n.tokenStack=[];n.code=n.code.replace(o,(function(e){if("function"===typeof a&&!a(e))return e;var o,u=i.length;while(-1!==n.code.indexOf(o=t(r,u)))++u;return i[u]=e,o})),n.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(n,r){if(n.language===r&&n.tokenStack){n.grammar=e.languages[r];var o=0,a=Object.keys(n.tokenStack);i(n.tokens)}function i(u){for(var l=0;l=a.length)break;var c=u[l];if("string"===typeof c||c.content&&"string"===typeof c.content){var s=a[o],f=n.tokenStack[s],d="string"===typeof c?c:c.content,p=t(r,s),h=d.indexOf(p);if(h>-1){++o;var v=d.substring(0,h),m=new e.Token(r,e.tokenize(f,n.grammar),"language-"+r,f),g=d.substring(h+p.length),y=[];v&&y.push.apply(y,i([v])),y.push(m),g&&y.push.apply(y,i([g])),"string"===typeof c?u.splice.apply(u,[l,1].concat(y)):c.content=y}}else c.content&&i(c.content)}return u}}}})}(i),function(e){e.languages.handlebars={comment:/\{\{![\s\S]*?\}\}/,delimiter:{pattern:/^\{\{\{?|\}\}\}?$/,alias:"punctuation"},string:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][+-]?\d+)?/,boolean:/\b(?:false|true)\b/,block:{pattern:/^(\s*(?:~\s*)?)[#\/]\S+?(?=\s*(?:~\s*)?$|\s)/,lookbehind:!0,alias:"keyword"},brackets:{pattern:/\[[^\]]+\]/,inside:{punctuation:/\[|\]/,variable:/[\s\S]+/}},punctuation:/[!"#%&':()*+,.\/;<=>@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},e.hooks.add("before-tokenize",(function(t){var n=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;e.languages["markup-templating"].buildPlaceholders(t,"handlebars",n)})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"handlebars")})),e.languages.hbs=e.languages.handlebars}(i),i.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},i.languages.webmanifest=i.languages.json,i.languages.less=i.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),i.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}}),i.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/},i.languages.objectivec=i.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete i.languages.objectivec["class-name"],i.languages.objc=i.languages.objectivec,i.languages.ocaml={comment:{pattern:/\(\*[\s\S]*?\*\)/,greedy:!0},char:{pattern:/'(?:[^\\\r\n']|\\(?:.|[ox]?[0-9a-f]{1,3}))'/i,greedy:!0},string:[{pattern:/"(?:\\(?:[\s\S]|\r\n)|[^\\\r\n"])*"/,greedy:!0},{pattern:/\{([a-z_]*)\|[\s\S]*?\|\1\}/,greedy:!0}],number:[/\b(?:0b[01][01_]*|0o[0-7][0-7_]*)\b/i,/\b0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]*)?(?:p[+-]?\d[\d_]*)?(?!\w)/i,/\b\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?\d[\d_]*)?(?!\w)/i],directive:{pattern:/\B#\w+/,alias:"property"},label:{pattern:/\B~\w+/,alias:"property"},"type-variable":{pattern:/\B'\w+/,alias:"function"},variant:{pattern:/`\w+/,alias:"symbol"},keyword:/\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|nonrec|object|of|open|private|rec|sig|struct|then|to|try|type|val|value|virtual|when|where|while|with)\b/,boolean:/\b(?:false|true)\b/,"operator-like-punctuation":{pattern:/\[[<>|]|[>|]\]|\{<|>\}/,alias:"punctuation"},operator:/\.[.~]|:[=>]|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,punctuation:/;;|::|[(){}\[\].,:;#]|\b_\b/},i.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},i.languages.python["string-interpolation"].inside["interpolation"].inside.rest=i.languages.python,i.languages.py=i.languages.python,i.languages.reason=i.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),i.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete i.languages.reason["function"],function(e){e.languages.sass=e.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),e.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete e.languages.sass.atrule;var t=/\$[-\w]+|#\{\$[-\w]+\}/,n=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];e.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:t,operator:n}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:t,operator:n,important:e.languages.sass.important}}}),delete e.languages.sass.property,delete e.languages.sass.important,e.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})}(i),i.languages.scss=i.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),i.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),i.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),i.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),i.languages.scss["atrule"].inside.rest=i.languages.scss,function(e){var t={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},n={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},r={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:t,number:n,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:t,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:n,punctuation:/[{}()\[\];:,]/};r["interpolation"]={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:r}},r["func"]={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:r}},e.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:r}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:r}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:r}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:r.interpolation}},rest:r}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:r.interpolation,comment:r.comment,punctuation:/[{},]/}},func:r.func,string:r.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:r.interpolation,punctuation:/[{}()\[\];:.]/}}(i),function(e){var t=e.util.clone(e.languages.typescript);e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx["parameter"],delete e.languages.tsx["literal-property"];var n=e.languages.tsx.tag;n.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+n.pattern.source+")",n.pattern.flags),n.lookbehind=!0}(i),i.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/};var u=i,l={plain:{backgroundColor:"#2a2734",color:"#9a86fd"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#6c6783"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#e09142"}},{types:["property","function"],style:{color:"#9a86fd"}},{types:["tag-id","selector","atrule-id"],style:{color:"#eeebff"}},{types:["attr-name"],style:{color:"#c4b9fe"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule","placeholder","variable"],style:{color:"#ffcc99"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#c4b9fe"}}]},c=l,s={Prism:u,theme:c};function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(){return d=Object.assign||function(e){for(var t=1;t0&&e[n-1]===t?e:e.concat(t)},m=function(e){var t=[[]],n=[e],r=[0],o=[e.length],a=0,i=0,u=[],l=[u];while(i>-1){while((a=r[i]++)0?s:["plain"],c=d):(s=v(s,d.type),d.alias&&(s=v(s,d.alias)),c=d.content),"string"===typeof c){var m=c.split(p),g=m.length;u.push({types:s,content:m[0]});for(var y=1;ye.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{},n=[];return o.a.Children.forEach(e,(function(e){(void 0!==e&&null!==e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(i(e)):Object(a["isFragment"])(e)&&e.props?n=n.concat(i(e.props.children,t)):n.push(e))})),n}},xuOn:function(e,t,n){var r=n("QzCP"),o="__lodash_hash_undefined__",a=Object.prototype,i=a.hasOwnProperty;function u(e){var t=this.__data__;if(r){var n=t[e];return n===o?void 0:n}return i.call(t,e)?t[e]:void 0}e.exports=u},"xy/A":function(e,t,n){"use strict";var r=n("6SQG"),o=n("r+6h"),a=n("78S/"),i=n("MZA9"),u=n("TxBV"),l=n("h+/6"),c=n("CZSf"),s=n("ANLo"),f=n("upgS"),d=n("G2F8"),p=n("/fpf"),h=n("zesz"),v=n("d8EH"),m=n("lFeU").f,g=n("0JbB").f,y=n("5ilB"),b=n("nBeg"),w=n("uJNS"),E=w.get,k=w.set,O="ArrayBuffer",S="DataView",x="prototype",j="Wrong length",C="Wrong index",A=r[O],_=A,T=r[S],P=T&&T[x],R=Object.prototype,N=r.RangeError,M=p.pack,I=p.unpack,L=function(e){return[255&e]},D=function(e){return[255&e,e>>8&255]},F=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},z=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},U=function(e){return M(e,23,4)},B=function(e){return M(e,52,8)},H=function(e,t){g(e[x],t,{get:function(){return E(this)[t]}})},G=function(e,t,n,r){var o=d(n),a=E(e);if(o+t>a.byteLength)throw N(C);var i=E(a.buffer).bytes,u=o+a.byteOffset,l=i.slice(u,u+t);return r?l:l.reverse()},V=function(e,t,n,r,o,a){var i=d(n),u=E(e);if(i+t>u.byteLength)throw N(C);for(var l=E(u.buffer).bytes,c=i+u.byteOffset,s=r(+o),f=0;fq;)(W=K[q++])in _||i(_,W,A[W]);$.constructor=_}v&&h(P)!==R&&v(P,R);var Q=new T(new _(2)),Y=P.setInt8;Q.setInt8(0,2147483648),Q.setInt8(1,2147483649),!Q.getInt8(0)&&Q.getInt8(1)||u(P,{setInt8:function(e,t){Y.call(this,e,t<<24>>24)},setUint8:function(e,t){Y.call(this,e,t<<24>>24)}},{unsafe:!0})}else _=function(e){c(this,_,O);var t=d(e);k(this,{bytes:y.call(new Array(t),0),byteLength:t}),o||(this.byteLength=t)},T=function(e,t,n){c(this,T,S),c(e,_,S);var r=E(e).byteLength,a=s(t);if(a<0||a>r)throw N("Wrong offset");if(n=void 0===n?r-a:f(n),a+n>r)throw N(j);k(this,{buffer:e,byteLength:n,byteOffset:a}),o||(this.buffer=e,this.byteLength=n,this.byteOffset=a)},o&&(H(_,"byteLength"),H(T,"buffer"),H(T,"byteLength"),H(T,"byteOffset")),u(T[x],{getInt8:function(e){return G(this,1,e)[0]<<24>>24},getUint8:function(e){return G(this,1,e)[0]},getInt16:function(e){var t=G(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=G(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return z(G(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return z(G(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return I(G(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return I(G(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){V(this,1,e,L,t)},setUint8:function(e,t){V(this,1,e,L,t)},setInt16:function(e,t){V(this,2,e,D,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){V(this,2,e,D,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){V(this,4,e,F,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){V(this,4,e,F,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){V(this,4,e,U,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){V(this,8,e,B,t,arguments.length>2?arguments[2]:void 0)}});b(_,O),b(T,S),e.exports={ArrayBuffer:_,DataView:T}},"y2+G":function(e,t,n){var r=n("684d"),o=n("lFeU").f,a={}.toString,i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],u=function(e){try{return o(e)}catch(t){return i.slice()}};e.exports.f=function(e){return i&&"[object Window]"==a.call(e)?u(e):o(r(e))}},y3he:function(e,t,n){"use strict";var r=n("OOCw"),o=n("CsJM").end,a=n("tSnU"),i=a("trimEnd"),u=i?function(){return o(this)}:"".trimEnd;r({target:"String",proto:!0,forced:i},{trimEnd:u,trimRight:u})},yFoN:function(e,t,n){var r=n("OOCw");r({target:"Math",stat:!0},{signbit:function(e){return(e=+e)==e&&0==e?1/e==-1/0:e<0}})},yJKb:function(e,t,n){var r=n("eyaU"),o=n("lFeU"),a=n("AG0a"),i=n("sErw");e.exports=r("Reflect","ownKeys")||function(e){var t=o.f(i(e)),n=a.f;return n?t.concat(n(e)):t}},yh5m:function(e,t,n){var r=n("OOCw"),o=n("eyaU"),a=n("lkgX"),i=n("sErw"),u=n("x+sk"),l=n("QWtl"),c=n("Wldj"),s=n("h+/6"),f=o("Reflect","construct"),d=s((function(){function e(){}return!(f((function(){}),[],e)instanceof e)})),p=!s((function(){f((function(){}))})),h=d||p;r({target:"Reflect",stat:!0,forced:h,sham:h},{construct:function(e,t){a(e),i(t);var n=arguments.length<3?e:a(arguments[2]);if(p&&!d)return f(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return r.push.apply(r,t),new(c.apply(e,r))}var o=n.prototype,s=l(u(o)?o:Object.prototype),h=Function.apply.call(e,s,t);return u(h)?h:s}})},yn9n:function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n("LS9I"))},ytxp:function(e,t,n){var r=n("7EYs");e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(r)},z43i:function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},zZ4V:function(e,t,n){var r=n("KZF9");r("patternMatch")},zesz:function(e,t,n){var r=n("oEsY"),o=n("OdMF"),a=n("8i6t"),i=n("VA8o"),u=a("IE_PROTO"),l=Object.prototype;e.exports=i?Object.getPrototypeOf:function(e){return e=o(e),r(e,u)?e[u]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?l:null}},zqEY:function(e,t,n){"use strict";var r=n("OOCw"),o=n("qyeh"),a=n("sErw"),i=n("v3z7"),u=n("QHn5"),l=n("uZx/");r({target:"Map",proto:!0,real:!0,forced:o},{some:function(e){var t=a(this),n=u(t),r=i(e,arguments.length>1?arguments[1]:void 0,3);return l(n,(function(e,n){if(r(n,e,t))return l.stop()}),void 0,!0,!0).stopped}})},zyZy:function(e,t,n){"use strict";var r=n("tSbI"),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},u={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function c(e){return r.isMemo(e)?u:l[e["$$typeof"]]||o}l[r.ForwardRef]=i,l[r.Memo]=u;var s=Object.defineProperty,f=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,v=Object.prototype;function m(e,t,n){if("string"!==typeof t){if(v){var r=h(t);r&&r!==v&&m(e,r,n)}var o=f(t);d&&(o=o.concat(d(t)));for(var i=c(e),u=c(t),l=0;l @@ -39,6 +42,6 @@
- + diff --git a/zh/guide/index.html b/zh/guide/index.html index 59c0f33..ac62511 100644 --- a/zh/guide/index.html +++ b/zh/guide/index.html @@ -25,12 +25,15 @@ @@ -39,6 +42,6 @@
- + diff --git a/zh/guide/performance/index.html b/zh/guide/performance/index.html index b7e6907..c7629d2 100644 --- a/zh/guide/performance/index.html +++ b/zh/guide/performance/index.html @@ -25,12 +25,15 @@ @@ -39,6 +42,6 @@
- + diff --git a/zh/guide/quick-start/index.html b/zh/guide/quick-start/index.html index d6ee8d8..6f2b404 100644 --- a/zh/guide/quick-start/index.html +++ b/zh/guide/quick-start/index.html @@ -25,12 +25,15 @@ @@ -39,6 +42,6 @@
- + diff --git a/zh/guide/use-in-class-components/index.html b/zh/guide/use-in-class-components/index.html index 6bb3013..87ba585 100644 --- a/zh/guide/use-in-class-components/index.html +++ b/zh/guide/use-in-class-components/index.html @@ -25,12 +25,15 @@ @@ -39,6 +42,6 @@
- + diff --git a/zh/index.html b/zh/index.html index 9e6f9da..c11adb5 100644 --- a/zh/index.html +++ b/zh/index.html @@ -25,12 +25,15 @@ @@ -39,6 +42,6 @@
- + diff --git a/~demos/:uuid/index.html b/~demos/:uuid/index.html index 59c0f33..ac62511 100644 --- a/~demos/:uuid/index.html +++ b/~demos/:uuid/index.html @@ -25,12 +25,15 @@ @@ -39,6 +42,6 @@
- +