diff --git a/404.html b/404.html index 9a44033..c8901f0 100644 --- a/404.html +++ b/404.html @@ -1 +1 @@ -404: This page could not be found

404

This page could not be found.

\ No newline at end of file +404: This page could not be found

404

This page could not be found.

\ No newline at end of file diff --git a/_next/static/chunks/204-efd22c4551fb5267.js b/_next/static/chunks/204-efd22c4551fb5267.js deleted file mode 100644 index a49898f..0000000 --- a/_next/static/chunks/204-efd22c4551fb5267.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[204],{82972:function(t,e,n){t.exports={default:n(15680),__esModule:!0}},92452:function(t,e,n){t.exports={default:n(41969),__esModule:!0}},17866:function(t,e,n){t.exports={default:n(57446),__esModule:!0}},1437:function(t,e,n){t.exports={default:n(74752),__esModule:!0}},3432:function(t,e,n){t.exports={default:n(52005),__esModule:!0}},30631:function(t,e,n){t.exports={default:n(12544),__esModule:!0}},82864:function(t,e){"use strict";e.__esModule=!0,e.default=function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}},97559:function(t,e,n){"use strict";e.__esModule=!0;var r,a=(r=n(17866))&&r.__esModule?r:{default:r};e.default=function(){function t(t,e){for(var n=0;n=0)&&Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}},73006:function(t,e,n){"use strict";e.__esModule=!0;var r,a=(r=n(27239))&&r.__esModule?r:{default:r};e.default=function(t,e){if(!t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&((void 0===e?"undefined":(0,a.default)(e))==="object"||"function"==typeof e)?e:t}},27239:function(t,e,n){"use strict";e.__esModule=!0;var r=i(n(30631)),a=i(n(3432)),o="function"==typeof a.default&&"symbol"==typeof r.default?function(t){return typeof t}:function(t){return t&&"function"==typeof a.default&&t.constructor===a.default&&t!==a.default.prototype?"symbol":typeof t};function i(t){return t&&t.__esModule?t:{default:t}}e.default="function"==typeof a.default&&"symbol"===o(r.default)?function(t){return void 0===t?"undefined":o(t)}:function(t){return t&&"function"==typeof a.default&&t.constructor===a.default&&t!==a.default.prototype?"symbol":void 0===t?"undefined":o(t)}},15680:function(t,e,n){n(38476),t.exports=n(37213).Object.assign},41969:function(t,e,n){n(23012);var r=n(37213).Object;t.exports=function(t,e){return r.create(t,e)}},57446:function(t,e,n){n(94730);var r=n(37213).Object;t.exports=function(t,e,n){return r.defineProperty(t,e,n)}},74752:function(t,e,n){n(49760),t.exports=n(37213).Object.setPrototypeOf},52005:function(t,e,n){n(22503),n(71810),n(51015),n(60107),t.exports=n(37213).Symbol},12544:function(t,e,n){n(97109),n(16917),t.exports=n(62911).f("iterator")},10527:function(t){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},74631:function(t){t.exports=function(){}},96202:function(t,e,n){var r=n(69480);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},57936:function(t,e,n){var r=n(34202),a=n(61826),o=n(48856);t.exports=function(t){return function(e,n,i){var s,l=r(e),u=a(l.length),c=o(i,u);if(t&&n!=n){for(;u>c;)if((s=l[c++])!=s)return!0}else for(;u>c;c++)if((t||c in l)&&l[c]===n)return t||c||0;return!t&&-1}}},60866:function(t){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},37213:function(t){var e=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=e)},38893:function(t,e,n){var r=n(10527);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,a){return t.call(e,n,r,a)}}return function(){return t.apply(e,arguments)}}},8296:function(t){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},70377:function(t,e,n){t.exports=!n(73069)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},32873:function(t,e,n){var r=n(69480),a=n(34506).document,o=r(a)&&r(a.createElement);t.exports=function(t){return o?a.createElement(t):{}}},52848:function(t){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},4352:function(t,e,n){var r=n(95692),a=n(6050),o=n(46824);t.exports=function(t){var e=r(t),n=a.f;if(n)for(var i,s=n(t),l=o.f,u=0;s.length>u;)l.call(t,i=s[u++])&&e.push(i);return e}},75076:function(t,e,n){var r=n(34506),a=n(37213),o=n(38893),i=n(2366),s=n(40255),l="prototype",u=function(t,e,n){var c,f,p,d=t&u.F,h=t&u.G,m=t&u.S,v=t&u.P,y=t&u.B,g=t&u.W,b=h?a:a[e]||(a[e]={}),w=b[l],T=h?r:m?r[e]:(r[e]||{})[l];for(c in h&&(n=e),n)!((f=!d&&T&&void 0!==T[c])&&s(b,c))&&(p=f?T[c]:n[c],b[c]=h&&"function"!=typeof T[c]?n[c]:y&&f?o(p,r):g&&T[c]==p?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e[l]=t[l],e}(p):v&&"function"==typeof p?o(Function.call,p):p,v&&((b.virtual||(b.virtual={}))[c]=p,t&u.R&&w&&!w[c]&&i(w,c,p)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},73069:function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},34506:function(t){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},40255:function(t){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},2366:function(t,e,n){var r=n(46093),a=n(4452);t.exports=n(70377)?function(t,e,n){return r.f(t,e,a(1,n))}:function(t,e,n){return t[e]=n,t}},65609:function(t,e,n){var r=n(34506).document;t.exports=r&&r.documentElement},83278:function(t,e,n){t.exports=!n(70377)&&!n(73069)(function(){return 7!=Object.defineProperty(n(32873)("div"),"a",{get:function(){return 7}}).a})},28365:function(t,e,n){var r=n(60866);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},68926:function(t,e,n){var r=n(60866);t.exports=Array.isArray||function(t){return"Array"==r(t)}},69480:function(t){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},51592:function(t,e,n){"use strict";var r=n(77310),a=n(4452),o=n(5723),i={};n(2366)(i,n(81395)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(i,{next:a(1,n)}),o(t,e+" Iterator")}},58903:function(t,e,n){"use strict";var r=n(44574),a=n(75076),o=n(53682),i=n(2366),s=n(45086),l=n(51592),u=n(5723),c=n(42915),f=n(81395)("iterator"),p=!([].keys&&"next"in[].keys()),d="values",h=function(){return this};t.exports=function(t,e,n,m,v,y,g){l(n,e,m);var b,w,T,S=function(t){return!p&&t in x?x[t]:function(){return new n(this,t)}},k=e+" Iterator",E=v==d,O=!1,x=t.prototype,A=x[f]||x["@@iterator"]||v&&x[v],_=A||S(v),M=v?E?S("entries"):_:void 0,C="Array"==e&&x.entries||A;if(C&&(T=c(C.call(new t)))!==Object.prototype&&T.next&&(u(T,k,!0),r||"function"==typeof T[f]||i(T,f,h)),E&&A&&A.name!==d&&(O=!0,_=function(){return A.call(this)}),(!r||g)&&(p||O||!x[f])&&i(x,f,_),s[e]=_,s[k]=h,v){if(b={values:E?_:S(d),keys:y?_:S("keys"),entries:M},g)for(w in b)w in x||o(x,w,b[w]);else a(a.P+a.F*(p||O),e,b)}return b}},65336:function(t){t.exports=function(t,e){return{value:e,done:!!t}}},45086:function(t){t.exports={}},44574:function(t){t.exports=!0},42727:function(t,e,n){var r=n(67441)("meta"),a=n(69480),o=n(40255),i=n(46093).f,s=0,l=Object.isExtensible||function(){return!0},u=!n(73069)(function(){return l(Object.preventExtensions({}))}),c=function(t){i(t,r,{value:{i:"O"+ ++s,w:{}}})},f=t.exports={KEY:r,NEED:!1,fastKey:function(t,e){if(!a(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,r)){if(!l(t))return"F";if(!e)return"E";c(t)}return t[r].i},getWeak:function(t,e){if(!o(t,r)){if(!l(t))return!0;if(!e)return!1;c(t)}return t[r].w},onFreeze:function(t){return u&&f.NEED&&l(t)&&!o(t,r)&&c(t),t}}},79769:function(t,e,n){"use strict";var r=n(70377),a=n(95692),o=n(6050),i=n(46824),s=n(28689),l=n(28365),u=Object.assign;t.exports=!u||n(73069)(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=u({},t)[n]||Object.keys(u({},e)).join("")!=r})?function(t,e){for(var n=s(t),u=arguments.length,c=1,f=o.f,p=i.f;u>c;)for(var d,h=l(arguments[c++]),m=f?a(h).concat(f(h)):a(h),v=m.length,y=0;v>y;)d=m[y++],(!r||p.call(h,d))&&(n[d]=h[d]);return n}:u},77310:function(t,e,n){var r=n(96202),a=n(46582),o=n(52848),i=n(7186)("IE_PROTO"),s=function(){},l="prototype",u=function(){var t,e=n(32873)("iframe"),r=o.length;for(e.style.display="none",n(65609).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(""),t.close(),u=t.F;r--;)delete u[l][o[r]];return u()};t.exports=Object.create||function(t,e){var n;return null!==t?(s[l]=r(t),n=new s,s[l]=null,n[i]=t):n=u(),void 0===e?n:a(n,e)}},46093:function(t,e,n){var r=n(96202),a=n(83278),o=n(43908),i=Object.defineProperty;e.f=n(70377)?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),a)try{return i(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},46582:function(t,e,n){var r=n(46093),a=n(96202),o=n(95692);t.exports=n(70377)?Object.defineProperties:function(t,e){a(t);for(var n,i=o(e),s=i.length,l=0;s>l;)r.f(t,n=i[l++],e[n]);return t}},11801:function(t,e,n){var r=n(46824),a=n(4452),o=n(34202),i=n(43908),s=n(40255),l=n(83278),u=Object.getOwnPropertyDescriptor;e.f=n(70377)?u:function(t,e){if(t=o(t),e=i(e,!0),l)try{return u(t,e)}catch(t){}if(s(t,e))return a(!r.f.call(t,e),t[e])}},45866:function(t,e,n){var r=n(34202),a=n(69752).f,o={}.toString,i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return a(t)}catch(t){return i.slice()}};t.exports.f=function(t){return i&&"[object Window]"==o.call(t)?s(t):a(r(t))}},69752:function(t,e,n){var r=n(2651),a=n(52848).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,a)}},6050:function(t,e){e.f=Object.getOwnPropertySymbols},42915:function(t,e,n){var r=n(40255),a=n(28689),o=n(7186)("IE_PROTO"),i=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return r(t=a(t),o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?i:null}},2651:function(t,e,n){var r=n(40255),a=n(34202),o=n(57936)(!1),i=n(7186)("IE_PROTO");t.exports=function(t,e){var n,s=a(t),l=0,u=[];for(n in s)n!=i&&r(s,n)&&u.push(n);for(;e.length>l;)r(s,n=e[l++])&&(~o(u,n)||u.push(n));return u}},95692:function(t,e,n){var r=n(2651),a=n(52848);t.exports=Object.keys||function(t){return r(t,a)}},46824:function(t,e){e.f=({}).propertyIsEnumerable},4452:function(t){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},53682:function(t,e,n){t.exports=n(2366)},80130:function(t,e,n){var r=n(69480),a=n(96202),o=function(t,e){if(a(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{(r=n(38893)(Function.call,n(11801).f(Object.prototype,"__proto__").set,2))(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return o(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:o}},5723:function(t,e,n){var r=n(46093).f,a=n(40255),o=n(81395)("toStringTag");t.exports=function(t,e,n){t&&!a(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},7186:function(t,e,n){var r=n(92479)("keys"),a=n(67441);t.exports=function(t){return r[t]||(r[t]=a(t))}},92479:function(t,e,n){var r=n(37213),a=n(34506),o="__core-js_shared__",i=a[o]||(a[o]={});(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(44574)?"pure":"global",copyright:"\xa9 2020 Denis Pushkarev (zloirock.ru)"})},94004:function(t,e,n){var r=n(25999),a=n(8296);t.exports=function(t){return function(e,n){var o,i,s=String(a(e)),l=r(n),u=s.length;return l<0||l>=u?t?"":void 0:(o=s.charCodeAt(l))<55296||o>56319||l+1===u||(i=s.charCodeAt(l+1))<56320||i>57343?t?s.charAt(l):o:t?s.slice(l,l+2):(o-55296<<10)+(i-56320)+65536}}},48856:function(t,e,n){var r=n(25999),a=Math.max,o=Math.min;t.exports=function(t,e){return(t=r(t))<0?a(t+e,0):o(t,e)}},25999:function(t){var e=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:e)(t)}},34202:function(t,e,n){var r=n(28365),a=n(8296);t.exports=function(t){return r(a(t))}},61826:function(t,e,n){var r=n(25999),a=Math.min;t.exports=function(t){return t>0?a(r(t),9007199254740991):0}},28689:function(t,e,n){var r=n(8296);t.exports=function(t){return Object(r(t))}},43908:function(t,e,n){var r=n(69480);t.exports=function(t,e){var n,a;if(!r(t))return t;if(e&&"function"==typeof(n=t.toString)&&!r(a=n.call(t))||"function"==typeof(n=t.valueOf)&&!r(a=n.call(t))||!e&&"function"==typeof(n=t.toString)&&!r(a=n.call(t)))return a;throw TypeError("Can't convert object to primitive value")}},67441:function(t){var e=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+n).toString(36))}},19642:function(t,e,n){var r=n(34506),a=n(37213),o=n(44574),i=n(62911),s=n(46093).f;t.exports=function(t){var e=a.Symbol||(a.Symbol=o?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:i.f(t)})}},62911:function(t,e,n){e.f=n(81395)},81395:function(t,e,n){var r=n(92479)("wks"),a=n(67441),o=n(34506).Symbol,i="function"==typeof o;(t.exports=function(t){return r[t]||(r[t]=i&&o[t]||(i?o:a)("Symbol."+t))}).store=r},67771:function(t,e,n){"use strict";var r=n(74631),a=n(65336),o=n(45086),i=n(34202);t.exports=n(58903)(Array,"Array",function(t,e){this._t=i(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,a(1)):"keys"==e?a(0,n):"values"==e?a(0,t[n]):a(0,[n,t[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},38476:function(t,e,n){var r=n(75076);r(r.S+r.F,"Object",{assign:n(79769)})},23012:function(t,e,n){var r=n(75076);r(r.S,"Object",{create:n(77310)})},94730:function(t,e,n){var r=n(75076);r(r.S+!n(70377)*r.F,"Object",{defineProperty:n(46093).f})},49760:function(t,e,n){var r=n(75076);r(r.S,"Object",{setPrototypeOf:n(80130).set})},71810:function(){},97109:function(t,e,n){"use strict";var r=n(94004)(!0);n(58903)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},22503:function(t,e,n){"use strict";var r=n(34506),a=n(40255),o=n(70377),i=n(75076),s=n(53682),l=n(42727).KEY,u=n(73069),c=n(92479),f=n(5723),p=n(67441),d=n(81395),h=n(62911),m=n(19642),v=n(4352),y=n(68926),g=n(96202),b=n(69480),w=n(28689),T=n(34202),S=n(43908),k=n(4452),E=n(77310),O=n(45866),x=n(11801),A=n(6050),_=n(46093),M=n(95692),C=x.f,D=_.f,F=O.f,j=r.Symbol,P=r.JSON,Z=P&&P.stringify,N="prototype",L=d("_hidden"),R=d("toPrimitive"),I={}.propertyIsEnumerable,U=c("symbol-registry"),X=c("symbols"),V=c("op-symbols"),B=Object[N],H="function"==typeof j&&!!A.f,Y=r.QObject,z=!Y||!Y[N]||!Y[N].findChild,W=o&&u(function(){return 7!=E(D({},"a",{get:function(){return D(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=C(B,e);r&&delete B[e],D(t,e,n),r&&t!==B&&D(B,e,r)}:D,q=function(t){var e=X[t]=E(j[N]);return e._k=t,e},G=H&&"symbol"==typeof j.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof j},Q=function(t,e,n){return(t===B&&Q(V,e,n),g(t),e=S(e,!0),g(n),a(X,e))?(n.enumerable?(a(t,L)&&t[L][e]&&(t[L][e]=!1),n=E(n,{enumerable:k(0,!1)})):(a(t,L)||D(t,L,k(1,{})),t[L][e]=!0),W(t,e,n)):D(t,e,n)},$=function(t,e){g(t);for(var n,r=v(e=T(e)),a=0,o=r.length;o>a;)Q(t,n=r[a++],e[n]);return t},K=function(t){var e=I.call(this,t=S(t,!0));return(!(this===B&&a(X,t))||!!a(V,t))&&(!(e||!a(this,t)||!a(X,t)||a(this,L)&&this[L][t])||e)},J=function(t,e){if(t=T(t),e=S(e,!0),!(t===B&&a(X,e))||a(V,e)){var n=C(t,e);return n&&a(X,e)&&!(a(t,L)&&t[L][e])&&(n.enumerable=!0),n}},tt=function(t){for(var e,n=F(T(t)),r=[],o=0;n.length>o;)a(X,e=n[o++])||e==L||e==l||r.push(e);return r},te=function(t){for(var e,n=t===B,r=F(n?V:T(t)),o=[],i=0;r.length>i;)a(X,e=r[i++])&&(!n||a(B,e))&&o.push(X[e]);return o};H||(s((j=function(){if(this instanceof j)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(n){this===B&&e.call(V,n),a(this,L)&&a(this[L],t)&&(this[L][t]=!1),W(this,t,k(1,n))};return o&&z&&W(B,t,{configurable:!0,set:e}),q(t)})[N],"toString",function(){return this._k}),x.f=J,_.f=Q,n(69752).f=O.f=tt,n(46824).f=K,A.f=te,o&&!n(44574)&&s(B,"propertyIsEnumerable",K,!0),h.f=function(t){return q(d(t))}),i(i.G+i.W+!H*i.F,{Symbol:j});for(var tn="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),tr=0;tn.length>tr;)d(tn[tr++]);for(var ta=M(d.store),to=0;ta.length>to;)m(ta[to++]);i(i.S+!H*i.F,"Symbol",{for:function(t){return a(U,t+="")?U[t]:U[t]=j(t)},keyFor:function(t){if(!G(t))throw TypeError(t+" is not a symbol!");for(var e in U)if(U[e]===t)return e},useSetter:function(){z=!0},useSimple:function(){z=!1}}),i(i.S+!H*i.F,"Object",{create:function(t,e){return void 0===e?E(t):$(E(t),e)},defineProperty:Q,defineProperties:$,getOwnPropertyDescriptor:J,getOwnPropertyNames:tt,getOwnPropertySymbols:te});var ti=u(function(){A.f(1)});i(i.S+i.F*ti,"Object",{getOwnPropertySymbols:function(t){return A.f(w(t))}}),P&&i(i.S+i.F*(!H||u(function(){var t=j();return"[null]"!=Z([t])||"{}"!=Z({a:t})||"{}"!=Z(Object(t))})),"JSON",{stringify:function(t){for(var e,n,r=[t],a=1;arguments.length>a;)r.push(arguments[a++]);if(n=e=r[1],!(!b(e)&&void 0===t||G(t)))return y(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!G(e))return e}),r[1]=e,Z.apply(P,r)}}),j[N][R]||n(2366)(j[N],R,j[N].valueOf),f(j,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},51015:function(t,e,n){n(19642)("asyncIterator")},60107:function(t,e,n){n(19642)("observable")},16917:function(t,e,n){n(67771);for(var r=n(34506),a=n(2366),o=n(45086),i=n(81395)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),l=0;l-1;)(f=u[p]).n===s&&f.c===e?u.splice(p,1):0===c&&(c=p+1);var d=n||this._eventTarget;u.splice(c,0,{c:e,n:s,t:i}),!this._listFun[l]&&(this._listFun[l]=this._listFun[l]||this.dispatchEvent.bind(this,{type:i,target:n}),d.addEventListener?d.addEventListener(i,this._listFun[l],r):d.attachEvent&&d.attachEvent("on"+i,this._listFun[l]))},removeEventListener:function(t,e,n,r){var o=t.split("."),i=o[0],s=o[1],l=""+i+(n?"_"+n.getAttribute(a):""),u=this._listeners[l],c=void 0,f=r;if(s||(f=!0),u){c=u.length;for(var p=n||this._eventTarget;--c>-1;)if(u[c].c===e&&(f||u[c].n===s)){if(u.splice(c,1),!u.length){var d=this._listFun[l];delete this._listeners[l],delete this._listFun[l],p.removeEventListener?p.removeEventListener(i,d):p.detachEvent&&p.detachEvent("on"+i,d)}if(!f)return}}},dispatchEvent:function(t,e){var n=t.type,r=t.target,o=""+n+(r?"_"+r.getAttribute(a):""),i=this._listeners[o],s=void 0,l=void 0,u=void 0;if(i){for(s=i.length,l=this._eventTarget;--s>-1;)if(u=i[s]){var c=e||{type:n,target:l};u.c.call(l,c)}}},removeAllType:function(t,e){var n=this,o=t.split("."),i=o[0],s=o[1],l=""+i+(e?"_"+e.getAttribute(a):""),u=this._listeners[l];this.recoverLists=this.recoverLists.concat((0,r.Zk)(u).filter(function(t){return t.n&&t.n.match(s)})),this.recoverLists.forEach(function(t){n.removeEventListener(t.t+"."+t.n,t.c,e)})},reAllType:function(t,e){var n=this,r=t.split("."),a=r[0],o=r[1];this.recoverLists=this.recoverLists.map(function(t){return t.t===a&&t.n.match(o)?(n.addEventListener(t.t+"."+t.n,t.c,e),null):t}).filter(function(t){return t})}},e.Z=new o("undefined"!=typeof document&&window)},3822:function(t,e,n){"use strict";n.d(e,{Z:function(){return y}});var r=n(61707),a=n(61200),o=n(82864),i=n(73006),s=n(97559),l=n(71212),u=n(50959),c=n(40507),f=n.n(c),p=n(37911),d=n(10422),h=n(49539),m=function(t){function e(t){(0,o.default)(this,e);var n=(0,i.default)(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.getParam=function(t){n.clientHeight=n.target?n.target.clientHeight:(0,h.uK)();var e=n.target?n.target.scrollTop:(0,h.Xh)(),r=n.dom.getBoundingClientRect(),a=n.target?n.target.getBoundingClientRect().top:0,o=r.top+e-a;n.elementShowHeight=e-o+n.clientHeight;var i=(0,h.o1)(n.props.playScale),s=/([\+\-]?[0-9#\.]+)(px|vh|%)?/.exec(String(i[0]));s[2]?"px"===s[2]?n.playHeight=parseFloat(s[1]):n.playHeight=n.clientHeight*parseFloat(s[1])/100:n.playHeight=n.clientHeight*parseFloat(i[0]);var l=r.height,u=/([\+\-]?[0-9#\.]+)(px|vh|%)?/.exec(String(i[1]));u[2]?"px"===u[2]?n.leavePlayHeight=parseFloat(u[1]):n.leavePlayHeight=l*parseFloat(u[1])/100:n.leavePlayHeight=l*parseFloat(i[1]);var c=n.props.replay?n.elementShowHeight>=n.playHeight&&n.elementShowHeight<=n.clientHeight+n.leavePlayHeight:n.elementShowHeight>=n.playHeight,f=c?"enter":"leave",p=n.enter!==c||"boolean"!=typeof n.enter?f:null;p&&n.props.onChange({mode:p,id:n.props.id}),n.props.onScroll({domEvent:t,scrollTop:e,showHeight:n.elementShowHeight,offsetTop:o,id:n.props.id}),n.enter=c},n.addScrollEvent=function(){p.Z.addEventListener(n.eventType,n.scrollEventListener,n.target),(0,h.Xh)()||n.scrollEventListener()},n.scrollEventListener=function(t){n.getParam(t)},n.state={$self:n},n}return(0,l.default)(e,t),(0,s.default)(e,null,[{key:"getDerivedStateFromProps",value:function(t,e){var n=e.prevProps,r=e.$self;return n&&t!==n&&r.scrollEventListener(),{prevProps:t}}}]),(0,s.default)(e,[{key:"componentDidMount",value:function(){if(!h.Q6){this.dom=d.findDOMNode(this);var t=Date.now();this.target=this.props.targetId&&document.getElementById(this.props.targetId);var e=p.Z._listeners.scroll?p.Z._listeners.scroll.length:0;this.eventType="scroll.scrollEvent"+t+e,this.addScrollEvent()}}},{key:"componentWillUnmount",value:function(){p.Z.removeEventListener(this.eventType,this.scrollEventListener,this.target)}},{key:"render",value:function(){var t=this.props,e=t.component,n=(t.playScale,t.location,t.targetId,t.onScroll,t.onChange,t.replay,t.componentProps),o=(0,a.default)(t,["component","playScale","location","targetId","onScroll","onChange","replay","componentProps"]);return u.createElement(e,(0,r.default)({},o,n))}}]),e}(u.Component);m.propTypes={component:f().any,playScale:f().any,id:f().string,onChange:f().func,onScroll:f().func,location:f().string,targetId:f().string,replay:f().bool,componentProps:f().object},m.defaultProps={component:"div",onChange:h.ZT,onScroll:h.ZT,playScale:.5,replay:!1,componentProps:{}},m.isScrollElement=!0;var v=function(t){function e(t){(0,o.default)(this,e);var n=(0,i.default)(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.scrollEventListener=function(t){n.getParam(t);var e=n.state.show,r=n.props,a=r.always,o=r.replay,i=n.elementShowHeight>n.clientHeight+n.leavePlayHeight;if(n.enter||!o&&i)e||n.setState({show:!0}),!a&&n.eventType&&p.Z.removeEventListener(n.eventType,n.scrollEventListener,n.target);else if(a){var s=n.elementShowHeightObject.keys(e).length?t:e,a=Object.keys(t).length>Object.keys(e).length?e:t;Object.keys(r).forEach(function(t){n&&(t in a||(n=!1),"object"==typeof r[t]&&"object"==typeof a[t]?n=E(r[t],a[t]):"function"==typeof r[t]&&"function"==typeof a[t]?r[t].toString().replace(/\s+/g,"")!==a[t].toString().replace(/\s+/g,"")&&(n=!1):r[t]!==a[t]&&(n=!1))})};if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;t.forEach(function(t,n){r(t,e[n])})}else r(t,e);return n}function O(t,e){var n=null;return t&&t.forEach(function(t){!n&&t&&t.key===e&&(n=t)}),n}function x(t,e,n){return"function"==typeof t?t({key:e,index:n}):t}function A(t){return t&&t.children}function _(t,e,n,r,a,o,i,s){if(b)return r;var l=/(?:Left|Right|Width|X)/i.test(n)||s;l="padding"===n||"marign"===n||l;var u=-1!==n.indexOf("border")||-1!==n.indexOf("translate")||"transformOrigin"===n?t:t.parentNode||document.body;u=i?document.body:u;var c=void 0,f=void 0;switch(a){case"%":c=parseFloat(r)/100*(l?u.clientWidth:u.clientHeight);break;case"vw":c=parseFloat(r)*document.body.clientWidth/100;break;case"vh":c=parseFloat(r)*document.body.clientHeight/100;break;case"em":c=parseFloat(r)*parseFloat(e.fontSize);break;case"rem":f=window.getComputedStyle(document.getElementsByTagName("html")[0]),c=parseFloat(r)*parseFloat(f.fontSize);break;default:c=parseFloat(r)}switch(o){case"%":c=c?100*c/(l?u.clientWidth:u.clientHeight):0;break;case"vw":c=parseFloat(r)/document.body.clientWidth*100;break;case"vh":c=parseFloat(r)/document.body.clientHeight*100;break;case"em":c=parseFloat(r)/parseFloat(e.fontSize);break;case"rem":f=f||window.getComputedStyle(document.getElementsByTagName("html")[0]),c=parseFloat(r)/parseFloat(f.fontSize)}return c}function M(t){if("string"==typeof t)return t;var e=t.perspective,n=t.rotate,r=t.rotateX,a=t.rotateY,o=t.scaleX,i=t.scaleY,s=t.scaleZ,l=t.skewX,u=t.skewY,c="string"==typeof t.translateX?t.translateX:t.translateX+"px",f="string"==typeof t.translateY?t.translateY:t.translateY+"px",p="string"==typeof t.translateZ?t.translateZ:t.translateZ+"px",d=l||u?"skew("+l+"deg,"+u+"deg)":"",h=n?"rotate("+n+"deg)":"",m=1!==o||1!==i||1!==s?"scale3d("+o+","+i+","+s+")":"",v=r?"rotateX("+r+"deg)":"",y=a?"rotateY("+a+"deg)":"";return((e?"perspective("+e+"px)":"")+" "+(t.translateZ?"translate3d("+c+","+f+","+p+")":(t.translateX||t.translateY)&&"translate("+c+","+f+")"||(m||h||v||y||d?"":"translate(0px, 0px)"))+" "+m+" "+h+" "+v+" "+y+" "+d).trim()}var C=n(89971);h().path=function(t,e){var n=e||{};if(b)return"linear";for(var r=function(t){if("string"==typeof t){if(t.charAt(0).match(/m/i)){var e=document.createElementNS("http://www.w3.org/2000/svg","path");return e.setAttributeNS(null,"d",t),e}return document.querySelector(t)}if(t.style)return t;throw Error("Error while parsing the path")}(t),a=r.getTotalLength(),o=n.rect||100,i=n.lengthPixel||200,s=[],l=0;l=u})[0]||r.getPointAtLength(l*a)).y/o}};var D=h(),F=function(){};F.prototype.push=function(t){this[t.prototype.name]=t};var j=new F,P=function(t,e,n){this.target=t,this.vars=e,this.type=n,this.propsData={},this.setDefaultData()};P.prototype={name:"style"};var Z=P.prototype;function N(){}function L(t,e){var n=t.duration||0===t.duration?t.duration:450;return{duration:"set"===t.type?0:n,delay:t.delay||0,ease:"function"==typeof t.ease?t.ease:D[t.ease||"easeInOutQuad"],onUpdate:t.onUpdate||N,onComplete:t.onComplete||N,onStart:t.onStart||N,onRepeat:t.onRepeat||N,repeat:t.repeat||0,repeatDelay:t.repeatDelay||0,yoyo:t.yoyo||!1,type:"from"===t.type?"from":"to",initTime:e,appearTo:"number"==typeof t.appearTo?t.appearTo:null,perTime:0,currentRepeat:0}}Z.getTweenData=function(t,e){var n={data:{},dataType:{},dataUnit:{},dataCount:{},dataSplitStr:{}},r=e;if(T[t]&&((r=(r=r.toString().split(" ")).map(function(t){return"number"==typeof e?t+"px":t}))[1]=r[1]||r[0],r[2]=r[2]||r[0],r[3]=r[3]||r[1]||r[0],r=r.join(" ")),t.match(/colo|fill|storker/i)?(n.data[t]=(0,C.lu)(r),n.dataType[t]="color"):"strokeDasharray"===t?(n.data[t]=r.split(","),n.dataType[t]="strokeDasharray"):t.match(/shadow/i)?(n.data[t]=(0,C.hy)(r),n.dataType[t]="shadow"):"string"==typeof r&&r.split(/[\s|,]/).length>1?(n.data[t]=r.split(/[\s|,]/),n.dataSplitStr[t]=r.replace(/[^\s|,]/g,"").replace(/\s+/g," "),n.dataType[t]="string"):(n.data[t]=r,n.dataType[t]="other"),Array.isArray(n.data[t]))n.dataUnit[t]=n.data[t].map(function(t){return t.toString().replace(/[^a-z|%]/g,"")}),n.dataCount[t]=n.data[t].map(function(t){return t.toString().replace(/[^+|=|-]/g,"")}),n.data[t]=n.data[t].map(function(t){return parseFloat(t)||0===parseFloat(t)?parseFloat(t):t});else{n.dataUnit[t]=n.data[t].toString().replace(/[^a-z|%]/g,""),n.dataCount[t]=n.data[t].toString().replace(/[^+|=|-]/g,"");var a=parseFloat(n.data[t].toString().replace(/[a-z|%|=]/g,""));n.data[t]=a||0===a?a:n.data[t]}return n},Z.setDefaultData=function(){var t=this;this.propsData.data={},this.propsData.dataType={},this.propsData.dataUnit={},this.propsData.dataCount={},this.propsData.dataSplitStr={},Object.keys(this.vars).forEach(function(e){if(e in j){t.propsData.data[e]=new j[e](t.target,t.vars[e]);return}var n=(0,C.Lo)(e),r=t.getTweenData(n,t.vars[e]);t.propsData.data[n]=r.data[n],t.propsData.dataType[n]=r.dataType[n],t.propsData.dataUnit[n]=r.dataUnit[n],t.propsData.dataCount[n]=r.dataCount[n],r.dataSplitStr[n]&&(t.propsData.dataSplitStr[n]=r.dataSplitStr[n])})},Z.convertToMarksArray=function(t,e,n,r,a){var o=r.toString().replace(/[^a-z|%]/g,""),i=e[a];return o===i?parseFloat(r):parseFloat(r)||0===parseFloat(r)?_(this.target,t,n,r,o,i,null,"transformOrigin"===n&&!a):r},Z.getAnimStart=function(t,e,n){var r=this,o={},i=e.style||{},s=void 0;return Object.keys(this.propsData.data).forEach(function(e){var l=(0,C.dt)(e),u=i[l]||t[l],c="fixed"===t.position;u&&"none"!==u&&"auto"!==u||(u="");var f=void 0,p=void 0;if(e in j)"bezier"===e&&(r.transform=(0,C.Yf)("transform"),u=t[n?"transformSVG":r.transform],s=s||(i.transform?(0,a.default)({},i.transform):o.transform||(0,C.Ck)(u)),o.transform=s),r.propsData.data[e].getAnimStart(t,n);else if("transform"===l){r.transform=(0,C.Yf)("transform"),u=t[n?"transformSVG":r.transform],f=r.propsData.dataUnit[e],s=s||(i.transform?(0,a.default)({},i.transform):o.transform||(0,C.Ck)(u));var d=/%|vw|vh|em|rem/i;f&&f.match(d)&&(s[e]=s[e]&&s[e].toString().match(d)?parseFloat(s[e]):_(r.target,t,e,s[e],null,f)),o.transform=s}else"filter"===l?(i[l]?u=i[l]:(r.filterName=(0,C.Yf)("filter")||"filter",u=t[r.filterName],r.filterObject=(0,a.default)({},r.filterObject,(0,C.GX)(u)),u=r.filterObject[e]||0),p=u.toString().replace(/[^a-z|%]/g,""),(f=r.propsData.dataUnit[e])!==p&&(u=_(r.target,t,l,parseFloat(u),p,f,c)),o[e]=parseFloat(u)):e.match(/color|fill/i)||"stroke"===e?(u=u||"stroke"!==e?u:"rgba(255, 255, 255, 0)",o[l]=(0,C.lu)(u)):e.match(/shadow/i)?(u=(0,C.hy)(u),f=r.propsData.dataUnit[e],u=u.map(r.convertToMarksArray.bind(r,t,f,e)),o[l]=u):Array.isArray(r.propsData.data[e])?(u=u.split(/[\s|,]/).filter(function(t){return t||0===t}),f=r.propsData.dataUnit[e],u=u.map(r.convertToMarksArray.bind(r,t,f,e)),o[l]=u):((f=r.propsData.dataUnit[l])!==(p=u.toString().replace(/[^a-z|%]/g,""))&&(u=_(r.target,t,l,parseFloat(u),p,f,c)),o[l]=parseFloat(u||0))}),this.start=o,o},Z.setArrayRatio=function(t,e,n,r,a){"color"===a&&4===e.length&&3===n.length&&(n[3]=1);var o=e.indexOf("inset")>=0,i=n.indexOf("inset")>=0;if(o&&!i||i&&!o)throw console.error('Error: "box-shadow" inset have to exist');var s=i?9:8;e.length===s&&n.length===s-1?(n.splice(3,0,0),r.splice(3,0,"")):n.length===s&&e.length===s-1&&e.splice(3,0,0);var l=n.map(function(n,o){var i="color"!==a||3!==o||e[o]?0:1,s="number"==typeof e[o]?e[o]:i;return"string"==typeof n?n:(n-s)*t+s+(r[o]||0)});if("color"===a)return(0,C.Lq)(l);if("shadow"===a){var u=l.length===s?4:3,c=l.slice(0,u).map(function(t){return"number"==typeof t?t+"px":t}),f=l.slice(u,i?l.length-1:l.length),p=(0,C.Lq)(f);return(c.join(" ")+" "+p+" "+(i?"inset":"")).trim()}return l},Z.setRatio=function(t,e,n){var r=this;e.style=e.style||{},this.start.transform&&(e.style.transform=e.style.transform||(0,a.default)({},this.start.transform));var o=this.target.style;Object.keys(this.propsData.data).forEach(function(a){var i="transform"===(0,C.Tk)(a),s=i?r.start.transform[a]:r.start[a],l=r.propsData.data[a],u=r.propsData.dataUnit[a],c=r.propsData.dataCount[a];if(a in j){r.propsData.data[a].setRatio(t,e,n),"bezier"===a?o[r.transform]=M(e.style.transform):Object.keys(e.style).forEach(function(t){o[t]=e.style[t]});return}if(i){if(u&&u.match(/%|vw|vh|em|rem/i))s=parseFloat(r.start.transform[a]),"="===c.charAt(1)?e.style.transform[a]=s+l*t+u:e.style.transform[a]=(l-s)*t+s+u;else if("scale"===a){var f=r.start.transform.scaleX,p=r.start.transform.scaleY;"="===c.charAt(1)?(e.style.transform.scaleX=f+l*t,e.style.transform.scaleY=p+l*t):(e.style.transform.scaleX=(l-f)*t+f,e.style.transform.scaleY=(l-p)*t+p)}else"="===c.charAt(1)?e.style.transform[a]=s+l*t:e.style.transform[a]=(l-s)*t+s;o[r.transform]=M(e.style.transform),n&&(n.transformSVG=(0,C.wz)(o[r.transform]).toString());return}if(Array.isArray(l)){var d=r.propsData.dataType[a];e.style[a]=r.setArrayRatio(t,s,l,u,d),"string"===d&&(e.style[a]=e.style[a].join(r.propsData.dataSplitStr[a]))}else{var h=(0,C.YJ)(a,0);if(h="number"==typeof h?"":h.replace(/[^a-z|%]/g,""),u=u||(C._T.filter.indexOf(a)>=0?"":h),"string"==typeof l)e.style[a]=l;else if("="===c.charAt(1))e.style[a]=s+l*t+u;else{var m=(l-s)*t+s;e.style[a]=u?""+m+u:m}}if(C._T.filter.indexOf(a)>=0){if(!r.filterObject)return;r.filterObject[a]=e.style[a];var v="";Object.keys(r.filterObject).forEach(function(t){v+=" "+t+"("+r.filterObject[t]+")"}),o[r.filterName]=v.trim();return}o[a]=e.style[a]})},j.push(P);var R=function(t,e,n){var r=k(e);this.target=t,this.attr=n||"style",this.accuracy=1e-5,this.totalTime=0,this.progressTime=0,this.defaultData=[],this.start={},this.startDefaultData={},this.tween={},this.data=r,this.perFrame=Math.round(1e3/60),this.register=!1,this.isSvg=this.target.ownerSVGElement;var a=this.setAttrIsStyle();this.setDefaultData(a)},I=R.prototype;I.setAttrIsStyle=function(){var t=this,e=[],n=L({},0);return this.data.forEach(function(r,o){var i=(0,a.default)({},r);"style"===t.attr?(e[o]={},Object.keys(i).forEach(function(t){t in n&&(e[o][t]=i[t],delete i[t])}),e[o].style=i,t.startDefaultData.style=t.target.getAttribute("style")||""):"attr"===t.attr&&(Object.keys(i).forEach(function(e){if("style"===e&&Array.isArray(r[e]))throw Error("Style should be the object.");if("bezier"===e)i.style=(0,a.default)({},i.style,{bezier:i[e]}),delete i[e],t.startDefaultData.style=t.target.getAttribute("style")||"";else{if(e in n)return;t.startDefaultData[e]=t.getValue(e)}}),e[o]=i)}),e},I.setDefaultData=function(t){var e=this,n=0,r=!1,a=t.map(function(t){var a="number"==typeof t.appearTo;a||(n+=t.delay||0);var o=(t.appearTo||0)+(t.delay||0),i=L(t,a?o:n);i.vars={},Object.keys(t).forEach(function(n){if(!(n in i)){var r=t[n];if(n in j)i.vars[n]=new j[n](e.target,r,i.type);else if(("d"===n||"points"===n)&&"SVGMorph"in j)i.vars[n]=new j.SVGMorph(e.target,r,n);else if(n.match(/color/i)||"stroke"===n||"fill"===n)i.vars[n]={type:"color",vars:(0,C.lu)(r)};else if("number"==typeof r||r.split(/[,|\s]/g).length<=1){var a=parseFloat(r),o=r.toString().replace(/[^a-z|%]/g,""),s=r.toString().replace(/[^+|=|-]/g,"");i.vars[n]={unit:o,vars:a,count:s}}}}),i.yoyo&&!i.repeat&&console.warn("Warning: yoyo must be used together with repeat;"),-1===i.repeat&&(r=!0);var s=-1===i.repeat?0:i.repeat;if(a){var l=t.appearTo+(t.delay||0)+i.duration*(s+1)+i.repeatDelay*s;n=l>=n?l:n}else i.delay<-i.duration?n-=i.delay:n+=i.duration*(s+1)+i.repeatDelay*s;return i.mode="",i});this.totalTime=r?Number.MAX_VALUE:n,this.defaultData=a},I.getComputedStyle=function(){var t=document.defaultView?document.defaultView.getComputedStyle(this.target):{};if(this.isSvg){var e=t[(0,C.Yf)("transform")]||"none";if("none"===e){var n=this.target.getAttribute("style");n&&n.indexOf("transform:")>=0?e=n.split(";").filter(function(t){return t.indexOf("transform:")>=0}).map(function(t){return(0,C.wz)(t.split(":")[1].trim()).toString()})[0]:this.target.getAttribute("transform")&&console.warn("Do not add transform on the label, otherwise it will be invalid.")}t.transformSVG=e}return t},I.getAnimStartData=function(t){var e=this,n={};return Object.keys(t).forEach(function(r){if(r in j||"attr"===e.attr&&("d"===r||"points"===r)){e.computedStyle=e.computedStyle||(e.target.getAttribute?e.getComputedStyle():(0,a.default)({},e.target)),n[r]=t[r].getAnimStart(e.computedStyle,e.tween,e.isSvg);return}if("attr"===e.attr){var o=e.getValue(r),i=r.match(/opacity/ig)?1:0,s="null"!==o&&o?o:i;if(r.match(/color/i)||"stroke"===r||"fill"===r)s=s||"stroke"!==r?s:"rgba(255, 255, 255, 0)",s=(0,C.lu)(s),n[r]=s;else if(parseFloat(s)||0===parseFloat(s)||0===s){var l=s.toString().replace(/[^a-z|%]/g,"");n[r]=l!==t[r].unit?_(e.target,r,parseFloat(s),l,t[r].unit):parseFloat(s)}return}n[r]=e.target[r]||0}),n},I.setAnimData=function(t){var e=this;Object.keys(t).forEach(function(n){n in j||"attr"===e.attr&&("d"===n||"points"===n)||(e.target[n]=t[n])})},I.setRatio=function(t,e,n){var r=this;Object.keys(e.vars).forEach(function(a){if(a in j||"attr"===r.attr&&("d"===a||"points"===a)){e.vars[a].setRatio(t,r.tween,r.isSvg&&r.computedStyle);return}var o=e.vars[a],i=r.start[n][a],s=void 0;"attr"===r.attr&&(o.type?"color"===o.type&&(3===o.vars.length&&4===i.length&&(o.vars[3]=1),s=o.vars.map(function(e,n){var r=i[n]||0;return(e-r)*t+r}),r.setValue(a,(0,C.Lq)(s))):(s="="===o.unit.charAt(1)?i+o.vars*t+o.unit:(o.vars-i)*t+i+o.unit,r.setValue(a,o.unit?s:parseFloat(s))))}),this.setAnimData(this.tween)},I.getValue=function(t){return this.target.getAttribute?this.target.getAttribute(t):this.target[t]},I.setValue=function(t,e){this.target.setAttribute?this.target.setAttribute(t,e):this.target[t]=e},I.render=function(){var t=this,e=this.reverse;this.defaultData.forEach(function(n,r){var o=n.initTime,i=(0,C.FH)(n.duration),s=Math.ceil((t.progressTime-o)/(i+n.repeatDelay))-1||0;if(s=s<0?0:s,n.repeat){if(n.repeat=0)||t.start[r]||(t.start[r]=t.getAnimStartData(n.vars),ci&&(f=n.ease(1,l,u,1),t.setRatio(f,n,r)),t.register&&(!r||o)||(t.register=!0,0!==c||!n.duration||!n.delay))){var p={index:r,target:t.target},d=(0,a.default)({moment:t.progressTime},p),h=t.perFrame-t.accuracy,m=n.delay&&e?-h:0;if((c>=m&&!(c>i&&"onComplete"===n.mode)||c=t.perFrame?0:c)>=i-t.accuracy&&!e||e&&c<=0)&&s>=n.repeat){if("onComplete"===n.mode)return;if(f=n.ease(e?0:1,l,u,1),t.setRatio(f,n,r,n.currentRepeat!==s),(!n.reset||n.reset&&c>=i)&&!v)i=i+h)return;n.mode="onComplete"}else if(i>h){var y=c<0?0:c;y=y>i?i:y,f=n.ease(y,l,u,i),t.setRatio(f,n,r),v||(n.repeat&&s>0&&n.currentRepeat!==s?(n.mode="onRepeat",n.currentRepeat=s,n.onRepeat((0,a.default)({},p,{repeatNum:s}))):(n.perTime<=0||e&&n.perTime>=t.reverseStartTime-o)&&"onStart"!==n.mode?(n.mode="onStart",n.onStart(p)):(n.mode="onUpdate",n.onUpdate((0,a.default)({ratio:f},p))))}v||(d.mode=n.mode,t.onChange(d)),n.perTime=c,n.reset&&delete n.reset}}})},I.frame=function(t){var e=this;this.progressTime=t,this.defaultData.forEach(function(t){var n=e.progressTime-t.duration-t.initTime;n0&&(e.progressTime=t.duration+t.initTime)}),this.render()},I.init=I.frame,I.resetAnimData=function(){this.tween={},this.start={}};var U=function(t,e,n){var r=L({},0),a=function(t){return t.split(";").filter(function(t){return t}).map(function(t){return t.split(":").map(function(t){return t.trim()})})},o=a(e),i=a(t);return n.forEach(function(t){Object.keys(t).forEach(function(t){if(!(t in r)){var e=(0,C.Dm)((0,C.Tk)((0,C.Lo)("bezier"===t?"transform":t)));i=i.filter(function(t){return(!w[t[0]]||!w[e])&&t[0]!==e})}})}),o.forEach(function(t){i=i.filter(function(e){return e[0]!==t[0]})}),o.concat(i).map(function(t){return t.join(":")}).join(";")};I.resetDefaultStyle=function(){var t=this;this.tween={},this.defaultData=this.defaultData.map(function(t){return t.reset=!0,delete t.mode,t});var e=L({},0);Object.keys(this.startDefaultData).forEach(function(n){if(!(n in e)){if("style"===n){var r=U(t.target.style.cssText,t.startDefaultData.style,t.data);t.setValue(n,r)}else t.setValue(n,t.startDefaultData[n]);t.computedStyle=null}})},I.reStart=function(t,e,n){var r=this;this.start={},this.tween={},Object.keys(t||{}).forEach(function(a){(n||!e||t[a]!==e[a])&&(r.target.style[a]=(0,C.YJ)(a,t[a]))}),this.setAttrIsStyle(),this.computedStyle=null},I.onChange=N;var X=n(19616),V=n.n(X),B=Date.now||function(){return new Date().getTime()},H={interval:1,timeout:1,TweenOneTicker:2},Y=function(t){return Object.keys(t).map(function(e){return{key:e,func:t[e]}}).sort(function(t,e){var n=t.key.split("_")[0];return H[e.key.split("_")[0]]-H[n]})},z=function(){};z.prototype={tickFnArray:[],tickKeyObject:{},id:-1,tweenId:0,frame:0,perFrame:Math.round(1e3/60),elapsed:0,lastUpdate:B(),startTime:B(),nextTime:0,time:0};var W=z.prototype;W.add=function(t){var e="TweenOneTicker_"+this.tweenId;return this.tweenId++,this.wake(e,t),e},W.wake=function(t,e){this.tickKeyObject[t]=e,this.tickFnArray=Y(this.tickKeyObject),-1===this.id&&(this.id=V()(this.tick))},W.clear=function(t){delete this.tickKeyObject[t],this.tickFnArray=Y(this.tickKeyObject)},W.sleep=function(){V().cancel(this.id),this.id=-1,this.frame=0};var q=new z;W.tick=function(t){q.elapsed=B()-q.lastUpdate,q.elapsed>300&&(q.startTime+=q.elapsed-q.perFrame),q.lastUpdate+=q.elapsed,q.time=q.lastUpdate-q.startTime;var e=q.time-q.nextTime;if((e>0||!q.frame)&&(q.frame++,q.nextTime+=e),q.tickFnArray.forEach(function(e){return e.func(t)}),!q.tickFnArray.length){q.sleep();return}q.id=V()(q.tick)};var G=0;W.timeout=function(t,e){var n=this;if("function"!=typeof t)return console.warn("not function");var r="timeout_"+Date.now()+"-"+G,a=this.time;return this.wake(r,function(){n.time-a>=(e||0)&&(n.clear(r),t())}),G++,r};var Q=0;W.interval=function(t,e){var n=this;if("function"!=typeof t)return console.warn("not function"),null;var r="interval_"+Date.now()+"-"+Q,a=this.time;return this.wake(r,function(){n.time-a>=(e||0)&&(a=n.time,t())}),Q++,r};var $=Math.round(1e3/60),K=p().oneOfType([p().object,p().array]),J=function(t){function e(t){(0,o.default)(this,e);var n=(0,i.default)(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return tt.call(n),n.rafID=-1,n.paused=t.paused,n.reverse=t.reverse,n.updateAnim=!1,n.repeatNum=0,n.currentRef=null,n.forced={},n.setForcedJudg(t),n.state={$self:n},n}return(0,l.default)(e,t),(0,s.default)(e,null,[{key:"getDerivedStateFromProps",value:function(t,e){var n=e.prevProps,r=e.$self,a={prevProps:t};if(n&&t!==n){if(!r.tween&&!r.dom)return r.updateAnim=!0,a;var o=t.animation;E(n.animation,o)||(t.resetStyle&&r.tween&&r.tween.resetDefaultStyle(),r.updateAnim=!0);var i=t.moment;"number"==typeof i&&i!==n.moment&&(r.tween&&!r.updateAnim?(r.startMoment=i,r.startTime=q.time,t.paused&&r.raf(),r.tween.progressTime>=r.tween.totalTime&&r.play()):r.updateAnim=!0),r.paused===t.paused&&r.reverse===t.reverse||(r.paused=t.paused,r.reverse=t.reverse,r.paused?r.cancelRequestAnimationFrame():r.reverse&&t.reverseDelay?(r.cancelRequestAnimationFrame(),q.timeout(r.restart,t.reverseDelay)):(r.tween&&(r.tween.resetAnimData(),r.tween.resetDefaultStyle()),r.updateAnim||r.restart())),!E(n.style,t.style)&&r.tween&&(r.tween.reStart(t.style,n.style,r.tween.progressTime=0?n:Number.MAX_VALUE;var o=q.time-t.startTime+t.startMoment;t.reverse&&(o=(t.startMoment||0)-(q.time-t.startTime));var i=Math.floor((o=(o=o>r?r:o)<=0?0:o)/t.tween.totalTime)||0;i=i>n?n:i;var s=o-t.tween.totalTime*i;s=s<$&&!t.reverse&&r>=$?0:s,n&&o&&o-t.tween.totalTime*i<$&&t.tween.frame(t.tween.totalTime*i),(o=r&&!t.reverse||!o&&t.reverse?n.timelineMode="onTimelineComplete":i!==t.timelineRepeatNum?n.timelineMode="onTimelineRepeat":n.timelineMode="onTimelineUpdate":n.timelineMode="onTimelineStart",t.timelineRepeatNum=i,t.props.onChange(n)},t.moment=o,t.repeatNum=i,t.tween.frame(s)},this.raf=function(){var e=t.tween;if(t.frame(),e!==t.tween)return null;var n=t.props.repeat,r=-1===n?Number.MAX_VALUE:t.tween.totalTime*(n+1);return t.moment>=r&&!t.reverse||t.paused||t.reverse&&0===t.moment?t.cancelRequestAnimationFrame():null},this.cancelRequestAnimationFrame=function(){q.clear(t.rafID),t.rafID=-1}};J.isTweenOne=!0;var te=g(J),tn=function(t){function e(t){(0,o.default)(this,e);var n=(0,i.default)(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));tr.call(n),n.keysToEnter=[],n.keysToLeave=[],n.saveTweenTag={},n.onEnterBool=!1,n.animQueue=[],n.isTween={};var r=S(A(n.props));return n.currentChildren=S(A(n.props)),n.state={children:r,$self:n},n}return(0,l.default)(e,t),(0,s.default)(e,null,[{key:"getDerivedStateFromProps",value:function(t,e){var n=e.prevProps,r=e.$self,a={prevProps:t};if(n&&t!==n){var o=S(t.children);if(Object.keys(r.isTween).length&&!t.exclusive)return r.animQueue.push(o),a;var i=S(r.currentChildren);a.children=r.changeChildren(o,i)}return a}}]),(0,s.default)(e,[{key:"componentDidMount",value:function(){this.onEnterBool=!0}},{key:"changeChildren",value:function(t,e){var n,r,a,o,i=this,s=(n=[],r={},a=[],o=void 0,e.forEach(function(e){e&&(O(t,e.key)?(a.length&&(r[e.key]=a,a=[]),o=e.key):e.key&&a.push(e))}),o||(n=n.concat(a)),t.forEach(function(t){t&&(r.hasOwnProperty(t.key)&&(n=n.concat(r[t.key])),n.push(t),t.key===o&&(n=n.concat(a)))}),n);return this.keysToEnter=[],this.keysToLeave=[],t.forEach(function(t){if(t){var n=t.key,r=O(e,n);i.saveTweenTag[n]&&(i.saveTweenTag[n]=u.cloneElement(i.saveTweenTag[n],{},t)),!r&&n&&i.keysToEnter.push(n)}}),e.forEach(function(e){if(e){var n=e.key;!O(t,n)&&n&&(i.keysToLeave.push(n),delete i.saveTweenTag[n])}}),s}},{key:"render",value:function(){var t=this.state.children;this.currentChildren=t;var e=this.getChildrenToRender(t),n=this.props,o=n.component,i=n.componentProps,s=(n.appear,n.enter,n.leave,n.animatingClassName,n.onEnd,n.exclusive,n.resetStyle,(0,r.default)(n,["component","componentProps","appear","enter","leave","animatingClassName","onEnd","exclusive","resetStyle"]));return o?(0,u.createElement)(o,(0,a.default)({},s,i),e):e[0]||null}}]),e}(u.Component),tr=function(){var t=this;this.onChange=function(e,n,r,a){var o=k(e).length,i=a.target,s="object"==typeof i.className&&"baseVal"in i.className,l="enter"===r||"appear"===r;if("onStart"===a.mode)s?i.className.baseVal=t.setClassName(i.className.baseVal,l):i.className=t.setClassName(i.className,l);else if(a.index===o-1&&"onComplete"===a.mode){if(delete t.isTween[n],s?i.className.baseVal=i.className.baseVal.replace(t.props.animatingClassName[l?0:1],"").trim():i.className=i.className.replace(t.props.animatingClassName[l?0:1],"").trim(),"enter"===r)t.keysToEnter.splice(t.keysToEnter.indexOf(n),1),t.keysToEnter.length||t.reAnimQueue();else if("leave"===r&&(t.keysToLeave.splice(t.keysToLeave.indexOf(n),1),t.currentChildren=t.currentChildren.filter(function(t){return n!==t.key}),!t.keysToLeave.length)){var u=t.currentChildren.map(function(t){return t.key});Object.keys(t.saveTweenTag).forEach(function(e){-1===u.indexOf(e)&&delete t.saveTweenTag[e]}),t.setState({children:t.currentChildren},t.reAnimQueue)}t.props.onEnd({key:n,type:r})}},this.setClassName=function(e,n){var r=e.replace(t.props.animatingClassName[n?1:0],"").trim();return -1===r.indexOf(t.props.animatingClassName[n?0:1])&&(r=(r+" "+t.props.animatingClassName[n?0:1]).trim()),r},this.getTweenChild=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.key;return t.saveTweenTag[r]=u.createElement(te,(0,a.default)({},n,{key:r,component:null}),e),t.saveTweenTag[r]},this.getCoverAnimation=function(e,n,r){var a=void 0;a="leave"===r?t.props.leave:t.props.enter,"appear"===r&&(a=x(t.props.appear,e.key,n)&&t.props.enter||null);var o=x(a,e.key,n),i=t.onChange.bind(t,o,e.key,r),s={key:e.key,animation:o,onChange:i,resetStyle:t.props.resetStyle};return(t.keysToEnter.concat(t.keysToLeave).indexOf(e.key)>=0||!t.onEnterBool&&a)&&!t.saveTweenTag[e.key]&&(t.isTween[e.key]=r),t.getTweenChild(e,s)},this.getChildrenToRender=function(e){return e.map(function(e,n){if(!e||!e.key)return e;var r=e.key;return t.keysToLeave.indexOf(r)>=0?t.getCoverAnimation(e,n,"leave"):(t.keysToEnter.indexOf(r)>=0||t.isTween[r]&&-1===t.keysToLeave.indexOf(r))&&!("enter"===t.isTween[r]&&t.saveTweenTag[r])?t.getCoverAnimation(e,n,"enter"):t.onEnterBool?t.saveTweenTag[r]:t.getCoverAnimation(e,n,"appear")})},this.reAnimQueue=function(){if(!Object.keys(t.isTween).length&&t.animQueue.length){var e=t.changeChildren(t.animQueue[t.animQueue.length-1],t.state.children);t.setState({children:e}),t.animQueue=[]}}};tn.propTypes={component:p().any,componentProps:p().object,children:p().any,style:p().object,appear:p().bool,enter:p().any,leave:p().any,animatingClassName:p().array,onEnd:p().func,resetStyle:p().bool,exclusive:p().bool},tn.defaultProps={component:"div",componentProps:{},appear:!0,animatingClassName:["tween-one-entering","tween-one-leaving"],enter:{x:50,opacity:0,type:"from"},leave:{x:-50,opacity:0},onEnd:function(){},resetStyle:!0,exclusive:!1},tn.isTweenOneGroup=!0;var ta=g(tn);te.TweenOneGroup=ta,te.easing=D,te.plugins=j,te.ticker=q,te.Tween=R;var to=n(37911),ti=n(49539),ts=0,tl=function(t){function e(t){(0,o.default)(this,e);var n=(0,i.default)(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.setDefaultData=function(t){(0,ti.Zk)(t).forEach(function(t,e){var r,o=(Array.isArray(r=t.playScale)?2===r.length?r:[r[0]||0,r[1]||1]:r?[r,1]:[0,1]).map(function(t){return t*n.clientHeight}),i=(0,a.default)({},t);delete i.playScale;var s=(0,a.default)({},t);delete s.playScale,s.delay=o[0],i.delay=o[0],s.duration=o[1]-o[0],i.duration=o[1]-o[0],s.onStart=null,s.onUpdate=null,s.onComplete=null,s.onRepeat=null,i.onStart=i.onStart||ti.ZT,i.onComplete=i.onComplete||ti.ZT,i.onUpdate=i.onUpdate||ti.ZT,i.onStartBack=i.onStartBack||ti.ZT,i.onCompleteBack=i.onCompleteBack||ti.ZT,n.defaultTweenData[e]=s,n.defaultData[e]=i})},n.resizeEventListener=function(){n.defaultData[n.defaultData.length-1]&&n.defaultData[n.defaultData.length-1].onCompleteBool&&!n.props.always||(n.scrollTop=(0,ti.Xh)(),n.target=n.props.targetId&&document.getElementById(n.props.targetId),n.clientHeight=n.target?n.target.clientHeight:(0,ti.uK)(),n.setDefaultData(n.props.animation||{}),n.timeline&&n.timeline.resetDefaultStyle(),n.timeline=new R(n.dom,n.defaultTweenData),n.timeline.init(),n.scrollEventListener())},n.scrollEventListener=function(){var t=n.target?n.target.scrollTop:(0,ti.Xh)();n.clientHeight=n.target?n.target.clientHeight:(0,ti.uK)();var e=n.props.location?document.getElementById(n.props.location):n.dom;if(!e)throw Error('"location" is null');var r=n.target?n.target.getBoundingClientRect().top:0,a=e.getBoundingClientRect().top+t-r,o=t-a+n.clientHeight,i=n.scrollTop-a+n.clientHeight;n.defaultData.forEach(function(t,e){var r=n.defaultData.map(function(t,n){return n=t.delay+r?t.onStartBool||(t.onStartBool=!0,a=!0,t.onStart()):t.onStartBool=!1,o<=t.delay+t.duration+r?!t.onStartBackBool&&t.onCompleteBool&&(t.onStartBackBool=!0,a=!0,t.onStartBack()):t.onStartBackBool=!1,o>=t.delay+t.duration+r?t.onCompleteBool||(t.onCompleteBool=!0,a=!0,t.onComplete()):t.onCompleteBool=!1,o>=t.delay+r&&o<=t.delay+t.duration+r&&!a&&t.onUpdate(o/(t.delay+t.duration+r))}),q.clear(n.tickerId),n.tickerId="scrollParallax"+Date.now()+"-"+ts,++ts>=Number.MAX_VALUE&&(ts=0);var s=q.frame;q.wake(n.tickerId,function(){var t=(q.frame-s)*q.perFrame,e=h().easeOutQuad(t,.08,1,300);n.timeline.frame(i+e*(o-i)),t>=300&&q.clear(n.tickerId)}),n.scrollTop=t,n.defaultData[n.defaultData.length-1].onCompleteBool&&n.eventType&&!n.props.always&&to.Z.removeEventListener(n.eventType,n.scrollEventListener,n.target)},n.scrollTop=0,n.defaultTweenData=[],n.defaultData=[],n.state={$self:n},n}return(0,l.default)(e,t),(0,s.default)(e,null,[{key:"getDerivedStateFromProps",value:function(t,e){var n=e.prevProps,r=e.$self;return n&&t!==n&&!(0,ti.Xv)(n.animation,t.animation)&&(r.setDefaultData(t.animation||{}),r.timeline.resetAnimData(),r.timeline.setDefaultData(r.defaultTweenData)),{prevProps:t}}}]),(0,s.default)(e,[{key:"componentDidMount",value:function(){this.dom=c.findDOMNode(this);var t=Date.now(),e=to.Z._listeners.scroll?to.Z._listeners.scroll.length:0;this.eventType="scroll.scrollEvent"+t+e,this.eventResize="resize.resizeEvent"+t+e,this.resizeEventListener(),to.Z.addEventListener(this.eventResize,this.resizeEventListener,this.target),this.timeline.frame(0),this.scrollEventListener(),to.Z.addEventListener(this.eventType,this.scrollEventListener,this.target)}},{key:"componentWillUnmount",value:function(){to.Z.removeEventListener(this.eventType,this.scrollEventListener,this.target),to.Z.removeEventListener(this.eventResize,this.resizeEventListener,this.target)}},{key:"render",value:function(){var t=this.props,e=(t.animation,t.always,t.component,t.location,t.targetId,t.componentProps),n=(0,r.default)(t,["animation","always","component","location","targetId","componentProps"]),o=(0,a.default)({},n.style);return Object.keys(o).forEach(function(t){if(t.indexOf("filter")>=0||t.indexOf("Filter")>=0)for(var e=["Webkit","Moz","Ms","ms"],n=0;n-1;)(f=u[p]).n===s&&f.c===e?u.splice(p,1):0===c&&(c=p+1);var d=n||this._eventTarget;u.splice(c,0,{c:e,n:s,t:i}),!this._listFun[l]&&(this._listFun[l]=this._listFun[l]||this.dispatchEvent.bind(this,{type:i,target:n}),d.addEventListener?d.addEventListener(i,this._listFun[l],r):d.attachEvent&&d.attachEvent("on"+i,this._listFun[l]))},removeEventListener:function(t,e,n,r){var o=t.split("."),i=o[0],s=o[1],l=""+i+(n?"_"+n.getAttribute(a):""),u=this._listeners[l],c=void 0,f=r;if(s||(f=!0),u){c=u.length;for(var p=n||this._eventTarget;--c>-1;)if(u[c].c===e&&(f||u[c].n===s)){if(u.splice(c,1),!u.length){var d=this._listFun[l];delete this._listeners[l],delete this._listFun[l],p.removeEventListener?p.removeEventListener(i,d):p.detachEvent&&p.detachEvent("on"+i,d)}if(!f)return}}},dispatchEvent:function(t,e){var n=t.type,r=t.target,o=""+n+(r?"_"+r.getAttribute(a):""),i=this._listeners[o],s=void 0,l=void 0,u=void 0;if(i){for(s=i.length,l=this._eventTarget;--s>-1;)if(u=i[s]){var c=e||{type:n,target:l};u.c.call(l,c)}}},removeAllType:function(t,e){var n=this,o=t.split("."),i=o[0],s=o[1],l=""+i+(e?"_"+e.getAttribute(a):""),u=this._listeners[l];this.recoverLists=this.recoverLists.concat((0,r.dataToArray)(u).filter(function(t){return t.n&&t.n.match(s)})),this.recoverLists.forEach(function(t){n.removeEventListener(t.t+"."+t.n,t.c,e)})},reAllType:function(t,e){var n=this,r=t.split("."),a=r[0],o=r[1];this.recoverLists=this.recoverLists.map(function(t){return t.t===a&&t.n.match(o)?(n.addEventListener(t.t+"."+t.n,t.c,e),null):t}).filter(function(t){return t})}},e.default=new o("undefined"!=typeof document&&window),t.exports=e.default},37278:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=h(n(61707)),a=h(n(61200)),o=h(n(82864)),i=h(n(73006)),s=h(n(97559)),l=h(n(71212)),u=h(n(50959)),c=h(n(10422)),f=h(n(40507)),p=h(n(69138)),d=n(30226);function h(t){return t&&t.__esModule?t:{default:t}}var m=function(t){function e(t){(0,o.default)(this,e);var n=(0,i.default)(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.getParam=function(t){n.clientHeight=n.target?n.target.clientHeight:(0,d.windowHeight)();var e=n.target?n.target.scrollTop:(0,d.currentScrollTop)(),r=n.dom.getBoundingClientRect(),a=n.target?n.target.getBoundingClientRect().top:0,o=r.top+e-a;n.elementShowHeight=e-o+n.clientHeight;var i=(0,d.transformArguments)(n.props.playScale),s=/([\+\-]?[0-9#\.]+)(px|vh|%)?/.exec(String(i[0]));s[2]?"px"===s[2]?n.playHeight=parseFloat(s[1]):n.playHeight=n.clientHeight*parseFloat(s[1])/100:n.playHeight=n.clientHeight*parseFloat(i[0]);var l=r.height,u=/([\+\-]?[0-9#\.]+)(px|vh|%)?/.exec(String(i[1]));u[2]?"px"===u[2]?n.leavePlayHeight=parseFloat(u[1]):n.leavePlayHeight=l*parseFloat(u[1])/100:n.leavePlayHeight=l*parseFloat(i[1]);var c=n.props.replay?n.elementShowHeight>=n.playHeight&&n.elementShowHeight<=n.clientHeight+n.leavePlayHeight:n.elementShowHeight>=n.playHeight,f=c?"enter":"leave",p=n.enter!==c||"boolean"!=typeof n.enter?f:null;p&&n.props.onChange({mode:p,id:n.props.id}),n.props.onScroll({domEvent:t,scrollTop:e,showHeight:n.elementShowHeight,offsetTop:o,id:n.props.id}),n.enter=c},n.addScrollEvent=function(){p.default.addEventListener(n.eventType,n.scrollEventListener,n.target),(0,d.currentScrollTop)()||n.scrollEventListener()},n.scrollEventListener=function(t){n.getParam(t)},n.state={$self:n},n}return(0,l.default)(e,t),(0,s.default)(e,null,[{key:"getDerivedStateFromProps",value:function(t,e){var n=e.prevProps,r=e.$self;return n&&t!==n&&r.scrollEventListener(),{prevProps:t}}}]),(0,s.default)(e,[{key:"componentDidMount",value:function(){if(!d.windowIsUndefined){this.dom=c.default.findDOMNode(this);var t=Date.now();this.target=this.props.targetId&&document.getElementById(this.props.targetId);var e=p.default._listeners.scroll?p.default._listeners.scroll.length:0;this.eventType="scroll.scrollEvent"+t+e,this.addScrollEvent()}}},{key:"componentWillUnmount",value:function(){p.default.removeEventListener(this.eventType,this.scrollEventListener,this.target)}},{key:"render",value:function(){var t=this.props,e=t.component,n=(t.playScale,t.location,t.targetId,t.onScroll,t.onChange,t.replay,t.componentProps),o=(0,a.default)(t,["component","playScale","location","targetId","onScroll","onChange","replay","componentProps"]);return u.default.createElement(e,(0,r.default)({},o,n))}}]),e}(u.default.Component);m.propTypes={component:f.default.any,playScale:f.default.any,id:f.default.string,onChange:f.default.func,onScroll:f.default.func,location:f.default.string,targetId:f.default.string,replay:f.default.bool,componentProps:f.default.object},m.defaultProps={component:"div",onChange:d.noop,onScroll:d.noop,playScale:.5,replay:!1,componentProps:{}},m.isScrollElement=!0,e.default=m,t.exports=e.default},884:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=m(n(61707)),a=m(n(61200)),o=m(n(82864)),i=m(n(73006)),s=m(n(97559)),l=m(n(71212)),u=n(50959),c=m(u),f=m(n(40507)),p=m(n(69138)),d=m(n(37278)),h=n(30226);function m(t){return t&&t.__esModule?t:{default:t}}var v=function(t){function e(t){(0,o.default)(this,e);var n=(0,i.default)(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.scrollEventListener=function(t){n.getParam(t);var e=n.state.show,r=n.props,a=r.always,o=r.replay,i=n.elementShowHeight>n.clientHeight+n.leavePlayHeight;if(n.enter||!o&&i)e||n.setState({show:!0}),!a&&n.eventType&&p.default.removeEventListener(n.eventType,n.scrollEventListener,n.target);else if(a){var s=n.elementShowHeightObject.keys(n).length?e:n,o=Object.keys(e).length>Object.keys(n).length?n:e;Object.keys(a).forEach(function(e){r&&(e in o||(r=!1),"object"===(0,c.Z)(a[e])&&"object"===(0,c.Z)(o[e])?r=t(a[e],o[e]):"function"==typeof a[e]&&"function"==typeof o[e]?a[e].toString().replace(/\s+/g,"")!==o[e].toString().replace(/\s+/g,"")&&(r=!1):a[e]!==o[e]&&(r=!1))})};return Array.isArray(e)&&Array.isArray(n)?e.forEach(function(t,e){a(t,n[e])}):a(e,n),r}(m,Z.current)){var t,e=((t=P.current)||0===t?Array.isArray(t)?t:[t]:[]).map(function(t){return t instanceof Element||!(t instanceof i.Component)?t:(0,s.findDOMNode)(t)}).filter(function(t,e){return t instanceof Element?t:(console.warn("Warning: TweenOne tag[".concat(e,"] is not dom.")),!1)});if(N.current&&A&&N.current.kill(),O&&N.current){var n=d?j:(0,a.Z)((0,a.Z)({},j),C.props.style),r=Object.keys(n).map(function(t){return"".concat((0,u.Rs)(t),":").concat((0,u.YJ)(t,n[t]))}).join(";");e.forEach(function(t){t.setAttribute("style",r),delete t._tweenOneVars})}N.current=m&&(0,l.ZP)(e,{animation:m,attr:v,yoyo:T,moment:S,repeat:b,reverse:g,paused:y,repeatDelay:w,onChange:k,onChangeTimeline:E}),Z.current=m}},[m]),(0,i.useEffect)(function(){return function(){N.current&&N.current.kill&&N.current.kill()}},[]);var R=function(t){P.current=t,e&&"current"in e?e.current=t:"function"==typeof e&&e(t)};if(!d&&C&&"string"!=typeof C&&"boolean"!=typeof C&&"number"!=typeof C){var I=C.props||{},U=I.style,X=I.className,V=void 0===X?"":X,B=(0,a.Z)((0,a.Z)({},U),j),H=D?"".concat(D," ").concat(V).trim():V;return i.cloneElement(C,{style:B,ref:R,className:(0,r.Z)(new Set(H.split(/\s+/))).join(" ").trim()||void 0})}return d?(0,i.createElement)(d,(0,a.Z)((0,a.Z)({ref:R},_),h)):(console.warn("Warning: component is null, children must be ReactElement."),C)});d.isTweenOne=!0,d.displayName="TweenOne";var h=d},62940:function(t,e,n){"use strict";n.d(e,{Z:function(){return m}});var r=n(26407),a=n(12309),o=n(76729),i=n(10582),s=n(50959);function l(t){var e=[];return s.Children.forEach(t,function(t){e.push(t)}),e}function u(t,e){var n=null;return t&&t.forEach(function(t){!n&&t&&t.key===e&&(n=t)}),n}function c(t,e,n){return"function"==typeof t?t({key:e,index:n}):t}var f=n(198),p=n(73848),d=["component","componentProps","leave","enter","appear","resetStyle","animatingClassName","onEnd","exclusive"],h=s.forwardRef(function(t,e){var n=t.component,h=void 0===n?"div":n,m=t.componentProps,v=void 0===m?{}:m,y=t.leave,g=void 0===y?{x:-50,opacity:0}:y,b=t.enter,w=void 0===b?{x:50,opacity:0,type:"from"}:b,T=t.appear,S=void 0===T||T,k=t.resetStyle,E=void 0===k||k,O=t.animatingClassName,x=void 0===O?["tween-one-entering","tween-one-leaving"]:O,A=t.onEnd,_=void 0===A?function(){}:A,M=t.exclusive,C=void 0!==M&&M,D=(0,i.Z)(t,d),F=(0,s.useRef)([]),j=(0,s.useRef)([]),P=(0,s.useRef)({}),Z=(0,s.useRef)(!1),N=(0,s.useRef)([]),L=(0,s.useRef)({}),R=l(t&&t.children),I=(0,s.useRef)(R),U=(0,s.useState)(R),X=(0,o.Z)(U,2),V=X[0],B=X[1],H=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.key;return P.current[n]=s.createElement(p.Z,(0,a.Z)((0,a.Z)({},e),{},{key:n,component:null}),t),P.current[n]},Y=function(t,e){var n=t.replace(x[e?1:0],"").trim();return -1===n.indexOf(x[e?0:1])&&(n="".concat(n," ").concat(x[e?0:1]).trim()),n},z=function(t,e){var n,r,a,o,i=(n=[],r={},a=[],o=null,e.forEach(function(e){e&&(e.key&&u(t,e.key)?(a.length&&(r[e.key]=a,a=[]),o=e.key):e.key&&a.push(e))}),o||(n=n.concat(a)),t.forEach(function(t){t&&(t.key&&r.hasOwnProperty(t.key)&&(n=n.concat(r[t.key])),n.push(t),t.key===o&&(n=n.concat(a)))}),n);return F.current=[],j.current=[],t.forEach(function(t){if(t){var n=t.key,r=u(e,n);n&&P.current[n]&&(P.current[n]=s.cloneElement(P.current[n],{},t)),!r&&n&&F.current.push(n)}}),e.forEach(function(e){if(e){var n=e.key;!u(t,n)&&n&&(j.current.push(n),delete P.current[n])}}),i},W=function(){!Object.keys(L.current).length&&N.current.length&&(B(z(N.current[N.current.length-1],I.current)),N.current=[])},q=function(t,e,n){var a=n.targets,o="object"===(0,r.Z)(a.className)&&"baseVal"in a.className,i="enter"===e||"appear"===e;if(t&&"onTimelineComplete"===n.mode){if(delete L.current[t],o?a.className.baseVal=a.className.baseVal.replace(x[i?0:1],"").trim():a.className=a.className.replace(x[i?0:1],"").trim(),i)F.current.splice(F.current.indexOf(t),1),F.current.length||W();else if("leave"===e&&(j.current.splice(j.current.indexOf(t),1),I.current=I.current.filter(function(e){return t!==e.key}),!j.current.length)){var s=I.current.map(function(t){return t.key});Object.keys(P.current).forEach(function(t){-1===s.indexOf(t)&&delete P.current[t]}),B(I.current)}_({key:t,type:e,target:n.targets})}},G=function(t,e,n){var r="leave"===n?g:w;"appear"===n&&(r=c(S,t.key,e)&&w||null);var a=c(r,t.key,e),o="appear"!==n||S?Y(t.props.className||"","enter"===n||"appear"===n)||void 0:t.props.className,i={key:t.key,animation:a,onChangeTimeline:function(e){q(t.key,n,e)},resetStyle:E,className:o};return(t.key&&F.current.concat(j.current).indexOf(t.key)>=0||!Z.current&&r)&&t.key&&!P.current[t.key]&&(L.current[t.key]=n),H(t,i)};(0,f.L)(function(){if(Z.current){var e=l(t.children).filter(function(t){return t}),n=l(I.current);Object.keys(L.current).length&&!C?N.current.push(e):B(z(e,n))}},[t.children]),(0,f.L)(function(){W()}),(0,s.useEffect)(function(){Z.current=!0},[]),I.current=V;var Q=V.map(function(t,e){if(!t||!t.key)return t;var n=t.key;return j.current.indexOf(n)>=0?G(t,j.current.indexOf(n),"leave"):(F.current.indexOf(n)>=0||L.current[n]&&-1===j.current.indexOf(n))&&!("enter"===L.current[n]&&P.current[n])?G(t,F.current.indexOf(n),"enter"):Z.current?P.current[n]:G(t,e,"appear")});return f.Q?h?(0,s.createElement)(h,(0,a.Z)((0,a.Z)((0,a.Z)({},D),v),{},{ref:e}),t.children):s.createElement(s.Fragment,null,t.children):h?(0,s.createElement)(h,(0,a.Z)((0,a.Z)((0,a.Z)({},D),v),{},{ref:e}),Q):Q[0]?(0,s.cloneElement)(Q[0],{ref:e}):null});h.displayName="TweenOneGroup",h.isTweenOneGroup=!0;var m=h},89950:function(t,e,n){"use strict";var r=n(26842),a=n(50465),o=n(61978),i=n(73848);i.Z.plugins=r.Z,i.Z.ticker=a.Z,i.Z.easing=o.Z,e.ZP=i.Z},198:function(t,e,n){"use strict";n.d(e,{L:function(){return o},Q:function(){return a}});var r=n(50959),a=!window.document||!window.document.createElement,o=a?r.useEffect:r.useLayoutEffect},61978:function(t,e,n){"use strict";var r=n(96839),a=n.n(r),o=n(5394);a().path=function(t,e){var n=e||{};if(o.Q6)return"linear";for(var r=(0,o.cP)(t),i=r.getTotalLength(),s=n.rect||100,l=n.lengthPixel||200,u=[],c=0;c=c})[0]||r.getPointAtLength(l*i)).y/s}},e.Z=a()},50465:function(t,e,n){"use strict";var r=n(9130),a=n(82349),o=n(19616),i=n.n(o),s=n(5394),l=new(function(){function t(){var e=this;(0,r.Z)(this,t),this.lagThreshold=150,this.adjustedLag=33,this.emptyTime=0,this.elapsed=0,this.frameFPS=1e3/240,this.startTime=0,this.prevTime=0,this.useTimeout=!1,this.lastUpdate=this.startTime,this.nextTime=this.frameFPS,this.req=void 0,this.id=-1,this.tweenId=0,this.tickFn=[],this.state="sleep",this.time=0,this.frame=0,this.removeReq=function(t){return e.useTimeout?clearTimeout(t):(0,o.cancel)(t)},this.tick=function(){var t=e.tickFn;e.startTime||(e.startTime=(0,s.hK)()-e.frameFPS,e.lastUpdate=e.startTime),e.elapsed=(0,s.hK)()-e.lastUpdate,e.elapsed>e.lagThreshold&&(e.startTime+=e.elapsed-e.adjustedLag),e.lastUpdate+=e.elapsed,e.time=e.lastUpdate-e.startTime;var n=e.time-e.nextTime;if(n>0){e.frame++,e.nextTime+=n+(n>=e.frameFPS?4:e.frameFPS-n);for(var r=e.time-e.prevTime,a=0;a=e.emptyTime)){e.emptyTime=0,e.sleep();return}e.req&&(e.id=e.req(e.tick))},this.wake=function(){e.id&&e.sleep(),e.req=e.useTimeout?function(t){return setTimeout(t,e.frameFPS)}:i(),e.tick(),e.state="wake"},this.sleep=function(){e.removeReq(e.id),e.id=-1,e.req=void 0,e.state="sleep"},this.add=function(t){var n="TweenOneTicker_".concat(e.tweenId);return e.tweenId+=1,-1===e.tickFn.findIndex(function(t){return t.key===n})&&e.tickFn.push({key:n,fn:t}),e.emptyTime=0,e.req||e.wake(),n},this.clear=function(t){e.tickFn=e.tickFn.filter(function(e){return e.key!==t&&e.fn!==t})},this.timeout=function(t,n){if("function"!=typeof t)return console.warn("not function");var r=e.time,a=e.add(function(){e.time-r>=(n||0)&&(e.clear(a),t())});return a},this.interval=function(t,n){if("function"!=typeof t)return console.warn("not function"),null;var r=e.time;return e.add(function(){e.time-r>=(n||0)&&(r=e.time,t())})}}return(0,a.Z)(t,[{key:"fps",value:function(t,e){this.frameFPS=1e3/(t||240),this.nextTime=this.time+this.frameFPS,this.useTimeout=void 0===e?this.useTimeout:e,this.useTimeout&&(this.req=function(e){return setTimeout(e,t)})}}]),t}());e.Z=l},92570:function(t,e,n){"use strict";n.d(e,{ZP:function(){return P}});var r=n(26407),a=n(4860),o=n.n(a),i=n(1017),s=n(9130),l=n(82349),u=n(26842),c=n(12309),f=n(9159),p=n(5394),d=(0,l.Z)(function t(e){var n=this;(0,s.Z)(this,t),this.props=void 0,this.computedStyle=void 0,this.root=void 0,this.index=void 0,this.targetIndex=void 0,this.tweenVars={},this.transformName=void 0,this.filterName=void 0,this.target=void 0,this.start={},this.startAt={},this.propsData={data:{},type:{},unit:{},count:{},splitStr:{},isTransform:{}},this.setDefaultData=function(){var t=n.props;for(var e in t){var r=t[e],a=r.split&&r.split(/\s+|,/).length>1||e.match(/color|fill|stroke/i)||e.match(/shadow/i);if(("background"===e||"backgroundImage"===e)&&r.match(/[a-z|-]+\(([\s\S]*?)\)/gi)){n.propsData.data[e]={value:r,plugin:u.Z.GradientsPlugin};continue}if(a){n.propsData.data[e]={value:r,plugin:u.Z.ArrayPlugin};continue}var o=(0,f.Lo)(e),i=n.getTweenData(o,t[e]);n.propsData.data[o]=i.data[o],n.propsData.type[o]=i.type[o],n.propsData.unit[o]=i.unit[o],n.propsData.count[o]=i.count[o],n.propsData.isTransform[o]="transform"===(0,f.dt)(o),i.splitStr[o]&&(n.propsData.splitStr[o]=i.splitStr[o])}},this.getTweenData=function(t,e){var n={data:{},isTransform:{},type:{},unit:{},count:{},splitStr:{}};n.data[t]=e;var r="string"==typeof n.data[t];n.unit[t]=r?n.data[t].replace(/[^a-z|%]/g,""):"",n.count[t]=r?n.data[t].replace(/[^+|=|-]/g,""):"";var a=r?parseFloat(n.data[t].replace(/[a-z|%|=]/g,"")):n.data[t];return n.data[t]=a||0===a?a:n.data[t],n},this.setStartAtValue=function(t,e){return"object"===(0,r.Z)(e)?(0,p.kp)(t,e):t},this.getAnimStart=function(){var t=n.target,e=n.root,a=n.targetIndex,o=n.propsData,i=n.startAt,s=n.start,l=n.tweenVars,u={};for(var d in i)u[(0,f.Lo)(d)]=i[d];for(var h in n.computedStyle=n.computedStyle||(0,p.Dx)(t),l.style=l.style||{},o.data){var m=o.data[h];if(m.plugin){var v=new m.plugin(m.value,h);v.target=t,v.root=e,v.parent=parent,v.index=n.index,v.targetIndex=a,v.tweenVars=l,v.startAt=n.startAt,v.computedStyle=n.computedStyle,m.plugin=v,s[h]=v.getAnimStart();continue}var y=(0,f.dt)(h),g="transform"===y?n.transformName:y;g="filter"===y?n.filterName:g;var b=l.style[g],w=null!=b?b:n.computedStyle[y],T=null!==(x=u[h])&&void 0!==x?x:w,S=o.unit[h],k="";if("transform"===y){var E,O,x,A,_,M=(E=E||(T===b?(0,c.Z)({},b):(0,f.Ck)(n.computedStyle[n.transformName])))[h];u&&h in u&&(M=n.setStartAtValue(null!==(A=null!==(_=u[h].vars)&&void 0!==_?_:null==b?void 0:b[h])&&void 0!==A?A:M,u[h]),k=u[h].unit,"scale"===h?(E.scaleX=M,E.scaleY=M):E[h]=M),k!==S&&(M=(0,p.o7)({target:t,computedStyle:n.computedStyle,style:y,value:M,startUnit:k,endUnit:S}),"scale"===h?(E.scaleX=M,E.scaleY=M):E[h]=M),s[n.transformName]=E}else if("filter"===y){var C,D,F=f._T.filterConvert[h]||h;(O=O||(T===b?(0,c.Z)({},b):(0,f.GX)(w)||{}))[F]=O[F]||p.eL[F];var j=O[F];u&&h in u&&(j=n.setStartAtValue(null!==(C=u[h].vars)&&void 0!==C?C:j,u[h]),k=u[h].unit,O[F]=j),S!==k&&(O[F]=(0,p.o7)({target:t,computedStyle:n.computedStyle,style:y,value:j,startUnit:k,endUnit:S,fixed:(null===(D=n.computedStyle)||void 0===D?void 0:D.position)==="fixed"})),s[n.filterName]=O}else{(T=null!==(P=u[h])&&void 0!==P?P:w)&&"none"!==T&&"auto"!==T||(T=""),S=o.unit[y],k="object"===(0,r.Z)(T)?T.unit:"".concat(T).replace(/[^a-z|%]/g,""),T=n.setStartAtValue(w,u[h]),S!==k&&(T=(0,p.o7)({target:t,computedStyle:n.computedStyle,style:y,value:parseFloat(T),startUnit:k,endUnit:S,fixed:(null===(Z=n.computedStyle)||void 0===Z?void 0:Z.position)==="fixed"}));var P,Z,N=parseFloat(T);s[y]=isNaN(N)?(0,p.AG)(y):N}}return s},this.render=function(t){var e=n.propsData,r=n.start,a=n.tweenVars.style||{};r[n.transformName]&&!a[n.transformName]&&(a[n.transformName]=(0,c.Z)({},r[n.transformName])),r[n.filterName]&&!a[n.filterName]&&(a[n.filterName]=(0,c.Z)({},r[n.filterName]));var o=a[n.transformName],i=a[n.filterName],s=e.data,l=e.unit,u=e.count,d=e.isTransform;for(var h in s){var m=s[h];if(m.plugin){a[h]=m.plugin.render(t);continue}var v=d[h],y=v?r[n.transformName][h]:r[h],g=l[h],b=u[h];if(v){if("scale"===h){var w=r[n.transformName].scaleX,T=r[n.transformName].scaleY;"="===b.charAt(1)?(o.scaleX=w+m*t,o.scaleY=T+m*t):(o.scaleX=(m-w)*t+w,o.scaleY=(m-T)*t+T)}else o[h]=(0,p.NA)(parseFloat(y),m,t,b,g);o.text=(0,p.q$)(a[n.transformName])}else if(f._T.filter.indexOf(h)>=0){var S=f._T.filterConvert[h]||h;for(var k in y=parseFloat(r[n.filterName][S])||0,i[S]=(0,p.NA)(y,m,t,b,g),i.text="",i)"text"!==k&&(i.text="".concat(i.text," ").concat(k,"(").concat(i[k],")").trim())}else{var E=(0,f.YJ)(h,0);E="number"==typeof E?0:E.replace(/[^a-z|%]/g,""),g=g||E,"string"==typeof m?a[h]=m:a[h]=(0,p.NA)(y,m,t,b,g)}}return a},this.props=e,this.transformName=(0,f.Yf)("transform"),this.filterName=(0,f.Yf)("filter")||"filter",this.setDefaultData()});d.key="style",d.className="style";var h=n(1874),m=n(23248),v=n(53264),y=n(18295),g=(0,l.Z)(function t(e,n){(0,s.Z)(this,t),this.value=void 0,this.key=void 0,this.root=void 0,this.index=void 0,this.style={},this.start={},this.startAt={},this.target=void 0,this.value=e,this.key=n});g.className=void 0,g.key=void 0;var b=function(t){(0,v.Z)(n,t);var e=(0,y.Z)(n);function n(t,r){(0,s.Z)(this,n),(a=e.call(this,t,r)).value=void 0,a.key=void 0,a.start=[],a.tweenVars={},a.vars={},a.computedStyle=void 0,a.propsData={data:[],unit:[],count:[]},a.setDefaultData=function(t,e){var n,r=(0,m.Z)(a),o=r.propsData,i=r.value,s=(0,h.Z)(i);"color"===t&&(s[3]=null!==(n=s[3])&&void 0!==n?n:1),o.type=t,o.data=s.map(function(t){return parseFloat(t)||0===parseFloat(t)?parseFloat(t):t}),o.unit=s.map(function(t){return t.toString().replace(/[^a-z|%]/g,"")}),o.count=s.map(function(t){return t.toString().replace(/[^+|=|-]/g,"")}),e&&(o.splitStr=e)},a.convertToMarksArray=function(t,e,n,r){var o=(n||"").toString().replace(/[^a-z|%]/g,""),i="number"==typeof r?t[r]:void 0;return o===i?parseFloat(n):parseFloat(n)||0===parseFloat(n)?(0,p.o7)({target:a.target,computedStyle:a.computedStyle,style:e,value:n,startUnit:o,endUnit:i,isOriginWidth:"transformOrigin"===e&&!r}):n},a.getAnimStart=function(){var t,e,n,r,o,i,s,l,u,c=(0,m.Z)(a),d=c.startAt,h=c.target,v=c.key,y=c.propsData,g=c.computedStyle,b=c.tweenVars,w=null!==(t=null!==(e=null!==(n=null==d?void 0:d[v])&&void 0!==n?n:g?null===(r=b.style)||void 0===r?void 0:r[v]:b[v])&&void 0!==e?e:(g||h)[v])&&void 0!==t?t:"",T=y.data.indexOf("inset");-1===T||w.match("inset")||"shadow"!==y.type||(o=w,w=""),w&&"none"!==w&&"auto"!==w||(w=""),w="shadow"===y.type?(0,f.hy)(w,v):w,w="color"===y.type?(0,f.lu)(w):w,w="string"===y.type?w.split(/[\s|,]/):w,p.Fi[v]&&(w[1]=null!==(i=w[1])&&void 0!==i?i:w[0],w[2]=null!==(s=w[2])&&void 0!==s?s:w[0],w[3]=null!==(l=null!==(u=w[3])&&void 0!==u?u:w[1])&&void 0!==l?l:w[0]);var S=y.unit,k=w.map(function(t,e){return"NaN"===parseFloat(t).toString()?t:a.convertToMarksArray(S,v,t,e)});return a.start=k.concat(T>=0?"inset":[]),a.start.oldShadow=o,a.start},a.render=function(t){var e=(0,m.Z)(a),n=e.start,r=e.propsData,o=r.type,i=r.splitStr,s=r.data,l=r.count,u=r.unit,c=s.map(function(e,r){return"string"==typeof e?e:(0,p.NA)(n[r],e,t,l[r],u[r])});switch(o){case"string":c=c.join(i);break;case"color":c=(0,f.Lq)(c);break;case"shadow":var d=c.indexOf("inset")>=0,h=d?c.filter(function(t){return"inset"!==t}):c,v=h.slice(0,h.length-4).map(function(t){return"number"==typeof t?"".concat(t,"px"):t}),y=(0,f.Lq)(h.slice(h.length-4,h.length));c="".concat(n.oldShadow?"".concat(n.oldShadow,","):"").concat(v.join(" ")," ").concat(y," ").concat(d?"inset":"").trim()}return c},a.value=t,a.key=r;var a,o="",i="";return"string"==typeof t&&(r.match(p.gU)?(a.value=(0,f.hy)(t,r),o="shadow"):r.match(/color|fill|stroke/i)||t.match(p.rV)?(a.value=(0,f.lu)(t),o="color"):(i=t.replace(/[^\s|,]/g,"").replace(/\s+/g," "),a.value=t.split(/[\s|,]/),o="string")),a.setDefaultData(o,i),a}return(0,l.Z)(n)}(g);b.className="ArrayPlugin";var w={linear:{"to top":"0deg","to top right":"45deg","to right top":"45deg","to right":"90deg","to right bottom":"135deg","to bottom right":"135deg","to bottom":"180deg","to bottom left":"225deg","to left bottom":"225deg","to left":"270deg","to left top":"315deg","to top left":"315deg"},radial:{center:"50% 50%",top:"50% 0%","top right":"100% 0%","right top":"100% 0%",right:"100% 50%","right bottom":"100% 100%","bottom right":"100% 100%",bottom:"50% 100%","bottom left":"0% 100%","left bottom":"0% 100%",left:"0% 50%","left top":"0% 0%","top left":"0% 0%"}},T=["closest-side","closest-corner","farthest-side","farthest-corner"],S=function(t,e,n){console.warn("Warning: The gradient ".concat(t,"(").concat(e," => ").concat(n,") is different, which has been automatically converted to animation gradient ").concat(t,"(").concat(n,")."))},k=function(t){return"url"===t||t.indexOf("image")>=0||"paint"===t||"cross-fade"===t||"element"===t},E=function(t){(0,v.Z)(n,t);var e=(0,y.Z)(n);function n(t){var r;return(0,s.Z)(this,n),(r=e.call(this,t,"backgroundImage")).value=void 0,r.tweenVars={},r.vars=[],r.computedStyle=void 0,r.defaultStartVars=[],r.getPosition=function(t){return t.map(function(t){return{data:parseFloat(t),unit:t.replace(/[^a-z|%]/g,"")}})},r.getAngle=function(t,e){var n,a,o,i;switch(t.replace(/-|gradient|repeating]/g,"")){case"linear":o=r.getPosition((w.linear[e]||e||w.linear["to bottom"]).split(" "));break;case"radial":var s=e.split(" ");n=s.find(function(t){return T.indexOf(t)>=0})||T[3],a=s.find(function(t){return"circle"===t||"ellipse"===t})||"ellipse";var l=RegExp("".concat(n,"|").concat(a,"|at"),"g"),u=e.replace(l,"").trim();i=r.getPosition((w.radial[u]||u||w.radial.center).split(" "));break;case"conic":var c=e.split("at").map(function(t){return t.trim()}),f=(c[0]||"").split(" ");a=f[0]||"from",o=r.getPosition([f[1]||"0deg"]),i=r.getPosition((w.radial[c[1]]||c[1]||w.radial.center).split(" "))}return{extent:n,shape:a,angle:o,position:i}},r.valueToIValue=function(t){return t?t.replace(/\),\s+?(url|radial|conic|linear|repeating|image|element|cross|paint)/,")#,#$1").split("#,#").map(function(t){var e=t.replace(/([a-z|-]+)\((.*)\)/,"$1").trim();if("url"===e)return{type:e,values:t};var n=t.replace(/([a-z|-]+)\((.*)\)/,"$2").replace(/#([0-9a-f]{6}|[0-9a-f]{3})|(rgb[a]?|hsl)+\(\d+\,[\s+]?\d+[\%]?\,[\s+]?\d+[\%]?(\,\d+)?\)/gi,function(t){return t.replace(/\s+/g,"")}).replace(/\,([a-z|#|\s+])/g,"#,#$1").split("#,#").map(function(t){return t.trim()}),a=n[0].match(p.rV)?"":n[0];a&&n.splice(0,1);var o=r.getAngle(e,a);return{type:e,angle:o,values:n.map(function(t){var e,n=t.trim().split(/\s+/),r=(n[0].match(p.rV),n[0]);return r&&(n.splice(0,1),e=(0,f.lu)(r)),{color:e,positions:n.map(function(t){return{data:parseFloat(t),unit:t.toString().replace(/[^a-z|%]/g,"")}})}})}}):[]},r.getAnimStart=function(){var t,e=(0,m.Z)(r),n=e.startAt,a=e.key,o=e.computedStyle,i=e.target,s=e.vars,l=e.tweenVars,u=(0,c.Z)({},n),f=null!==(t=l[a])&&void 0!==t?t:(o||i)[a];f&&"none"!==f&&"auto"!==f||(f=""),u[a]=u[a]||f,u[a]=u[a]?r.valueToIValue(u[a]):r.defaultStartVars;var p=(Math.max(s.length,u[a].length)===u[a].length?u[a]:s).map(function(t,e){var n,o,i,l,f=u[a][e]||r.defaultStartVars[e],p=s[e]||f;if(f&&f.type===p.type||(f.type!==p.type&&S("type",f.type,p.type),f=r.defaultStartVars[e]),k(p.type)||"string"==typeof p.values||"string"==typeof f.values)return(0,c.Z)({},p);(null===(n=p.angle)||void 0===n?void 0:n.extent)!==(null===(o=f.angle)||void 0===o?void 0:o.extent)&&S("extent keyword",null===(i=f.angle)||void 0===i?void 0:i.extent,null===(l=p.angle)||void 0===l?void 0:l.extent);var d=Math.max(f.values.length,p.values.length)===f.values.length?f.values:p.values;return f.values=d.map(function(t,e){var n=f.values[e],r=p.values[e]||n;return(0,c.Z)((0,c.Z)({},n),{},{positions:(r||n).positions.map(function(t,a){var o=n?n.positions[a]||n.positions[n.positions.length-1]:r.positions[r.positions.length-1],i=t||o;return!o&&n&&f.values.length&&(o={data:100/(f.values.length-1)*e,unit:"%"}),i.unit!==o.unit&&S("units",o.unit,i.unit),{data:o.data,unit:i.unit}})})}),f});return r.start=p,r.start},r.render=function(t){var e="";return(Math.max(r.vars.length,r.start.length)===r.vars.length?r.vars:r.start).forEach(function(n,a){var o=r.start[a],i=r.vars[a]||o;if(k(i.type)||"string"==typeof i.values||!i.angle){e+="".concat(e?",":""," ").concat(i.values).trim();return}var s=(Math.max(o.values.length,i.values.length)===o.values.length?o.values:i.values).map(function(e,n){var r=o.values[n],a=i.values[n];a||(a=r);var s=r.color,l=r.positions;!s&&a.color&&(s=(0,h.Z)(a.color)),l||(l=a.positions.map(function(t){return(0,c.Z)({},t)}));var u=a.color?a.color.map(function(e,n){return(0,p.NA)(s[n],e,t)}):a.color,d=a.positions.map(function(e,n){return"".concat((0,p.NA)(l[n].data,e.data,t)).concat(e.unit)}).join(" ");return"".concat(u?(0,f.Lq)(u):u||""," ").concat(d).trim()}),l=i.angle,u=l.angle&&l.angle.map(function(e,n){return"".concat((0,p.NA)(o.angle.angle[n].data,e.data,t)).concat(e.unit)}).join(" "),d=l.position&&l.position.map(function(e,n){return"".concat((0,p.NA)(o.angle.position[n].data,e.data,t)).concat(e.unit)}).join(" "),m="".concat(l.extent||""," ").concat(l.shape||""," ").concat(u||""," ").concat(d?"at ".concat(d):"").trim();e+="".concat(e?",":""," ").concat(i.type,"(").concat(m?"".concat(m,","):"").concat(s.join(","),")").trim()}),e},r.value=t,r.vars=r.valueToIValue(t),r.defaultStartVars=r.vars.map(function(t){return k(t.type)||"string"==typeof t.values?(0,c.Z)({},t):(0,c.Z)((0,c.Z)({},t),{},{values:t.values.map(function(t){var e;return t.color&&"string"!=typeof t.color?(e=(0,h.Z)(t.color))[3]=0:e=t.color,{color:e,positions:(0,h.Z)(t.positions)}})})}),r}return(0,l.Z)(n)}(g);E.className="GradientsPlugin";var O=n(50465),x=function(){function t(){var e=this;(0,s.Z)(this,t),this.children=[],this.autoSleep=200,this.tickerKey=void 0,this.startTime=void 0,this.addChild=function(t){-1===e.children.indexOf(t)?(e.children.push(t),e.updateTickerState()):e.start()},this.removeChild=function(t){e.children=e.children.filter(function(e){return e!==t}),e.updateTickerState()},this.kill=function(t){e.children=e.children.filter(function(e){var n=e.root.targets.map(function(e,n){if(-1===t.indexOf(e))return e;delete e._tweenOneVars});e.root.targets=n;var r=!!n.filter(function(t){return t}).length;return r||e.kill(),r}),e.updateTickerState()},this.killAll=function(t){t&&(e.children.forEach(function(t){null==t||t.root.targets.forEach(function(t){t&&delete t._tweenOneVars})}),e.children=[]),O.Z.clear(e.tickerKey),e.tickerKey=void 0},this.getTotalTime=function(){for(var t=0,n=0;n0)})?e.start():e.killAll(!e.children.length)},this.start=function(){e.tickerKey||(e.tickerKey=O.Z.add(e.render))},this.render=function(t){for(var n=t.time,r=t.elapsed,a=void 0===r?0:r,o=e.children,i=o.length,s=0;su&&n1)&&!(t in u.Z);return t in u.Z||r?n?e:{value:e,plugins:[],array:r}:{vars:parseFloat(e.toString().replace(/=/g,"")),unit:e.toString().replace(/[^a-z|%]/g,""),count:"="===e.toString().charAt(1)?e.toString().replace(/[^\+\=|\-\=]/gi,""):""}},this.setEase=function(t){if("function"==typeof t){n.easing=t;return}if(t.match(/,/g)){n.easing=A.Z.path(t);return}n.easing=A.Z[t]},this.getTotalTime=function(){var t=n.props,e=t.duration,r=t.delay,a=t.repeat,o=void 0===a?0:a,i=t.repeatDelay;return -1===o?Number.MAX_VALUE:(void 0===r?0:r)+(void 0===e?450:e)*(o+1)+(void 0===i?0:i)*o},this.getEaseToRatio=function(t,e){var r=n.props.ease,a=void 0===r?"":r;return 0!==t&&1!==t||"function"==typeof a||a.match(/,/g)?n.easing(e?1-t:t,e?1:0,e?0:1,1):t},this.setRatioToVars=function(t){for(var e=n.vars,r=n.root,a=0;ar?r:e},this.render=function(t){var e=t.moment,r=t.fps,a=void 0===r?0:r,o=t.silence,i=t.render,s=n.parent,l=n.root,u=n.props,c=(0,p.Bn)(l.targets),f=s.onChange,d=u.repeat,h=void 0===d?0:d,m=u.type,v=u.duration,y=void 0===v?450:v,g=u.delay,b=void 0===g?0:g,w=u.repeatDelay,T=void 0===w?0:w,S=u.yoyo,k=e-b,E=Math.floor(k/(y+T))||0;k-=(y+T)*(E=(E=E>(h=-1===h?Number.MAX_VALUE:h)?h:E)<0?0:E);var O=!!(S&&E%2),x="from"===(void 0===m?"to":m),A=(!O||!x)&&(O||x);k=A?y-k:k;var _=x?0:b,M=A?1:0;if(!n.register&&e>=_&&(n.onRegisterAnimate(),(A&&k<=0||!A&&k>=y&&y)&&(n.prevMoment=e,M=A?0:1),n.setRatioToVars(M),f({index:n.index,vars:l.vars})),n.register&&e>b-a&&e=n.totalTime&&"onComplete"!==n.mode&&void 0!==n.prevMoment||void 0===n.prevMoment&&e>=n.totalTime&&y?(M=A?0:1,n.mode="onComplete",n.props.onComplete&&n.props.onComplete({mode:n.mode,index:n.index,moment:k,ratio:M,targets:c,vars:(0,p.Bn)(l.vars)})):void 0===n.prevMoment||e<=0&&e>-a&&"onStart"!==n.mode&&n.prevMoment>e?(n.mode="onStart",n.props.onStart&&n.props.onStart({mode:n.mode,index:n.index,moment:k,ratio:M,targets:c,vars:(0,p.Bn)(l.vars)})):(M=k&&y?k/y:0,n.mode="onUpdate",n.props.onUpdate&&n.props.onUpdate({mode:n.mode,index:n.index,moment:k,ratio:M,targets:c,vars:(0,p.Bn)(l.vars)})),h&&E!==n.repeatNum&&e&&"onUpdate"===n.mode&&(n.mode="onRepeat",n.props.onRepeat&&n.props.onRepeat({mode:n.mode,index:n.index,moment:k,ratio:M,targets:c,vars:(0,p.Bn)(n.root.vars)})),n.setRatioToVars(n.getEaseToRatio(M,x)),h&&(n.repeatNum=E);var C={mode:n.mode,moment:k,repeat:E,ratio:M,targets:l.targets,vars:l.vars,index:n.index};o&&(C.silence=o),i&&(C.render=i),f(C),n.prevMoment=e}},this.item=e,this.startAt=(0,c.Z)({},e.startAt),Object.keys(this.startAt).forEach(function(t){n.startAt[t]=n.changeValueToVars(t,n.startAt[t],!0)});var a={};for(var o in e){var i=e[o];o in p.$e?a[o]=i:this.vars[o]=this.changeValueToVars(o,i)}this.props=(0,c.Z)((0,c.Z)({},p.$e),a),this.setEase(this.props.ease)}return(0,l.Z)(t,[{key:"totalTime",get:function(){return this.getTotalTime()}}]),t}(),M=(0,l.Z)(function t(e){var n=this;(0,s.Z)(this,t),this.props=void 0,this.id=void 0,this.children=[],this.totalTime=0,this.totalTimeRegion=0,this.childTotalTime=0,this.childRegionTotalTime=0,this.prevMoment=void 0,this.progressTime=0,this.progressMoment=-1,this.startMoment=0,this.startTime=0,this.repeatNum=0,this.mode="onTimelineStart",this.pausedState=void 0,this.reverseState=void 0,this.root=void 0,this.parent=void 0,this.regionStartTime=0,this.regionEndTime=void 0,this.onChangeChild=void 0,this.onChangeTimeline=void 0,this.init=function(){for(var t=n.props,e=t.reverse,r=t.animation,a=t.moment,o=(0,p.Zk)(r),i=0;in.childTotalTime&&(n.childTotalTime=r,n.childRegionTotalTime=r)}else n.childTotalTime+=e.totalTime,n.childRegionTotalTime+=e.totalTime}n.regionStartTime&&(n.childRegionTotalTime-=n.regionStartTime),n.regionEndTime&&(n.childRegionTotalTime=n.regionEndTime-n.regionStartTime);var a=n.props,o=a.repeat,i=void 0===o?0:o,s=a.repeatDelay,l=void 0===s?0:s,u=a.delay;n.totalTime=-1===i?Number.MAX_VALUE:u+n.childTotalTime*(i+1)+l*i,n.totalTimeRegion=-1===i?Number.MAX_VALUE:u+n.childRegionTotalTime*(i+1)+l*i},this.setStartTimeOrMoment=function(t){n.startTime=O.Z.time,n.startMoment=t||n.progressMoment},this.reRenderCall=function(){n.render({time:n.startTime,elapsed:O.Z.elapsed||O.Z.frameFPS})},this.play=function(t){var e,r;t?null===(r=n.parent)||void 0===r||r.updateTickerState():null===(e=n.parent)||void 0===e||e.addChild(n)},this.paused=function(){var t=!(arguments.length>0)||void 0===arguments[0]||arguments[0];n.pausedState=t,n.setStartTimeOrMoment(),n.play(t)},this.reverse=function(t){n.reverseState=t,n.setStartTimeOrMoment(),n.play(n.pausedState)},this.goto=function(t,e){var r=t-n.regionStartTime;n.startTime=O.Z.time,n.startMoment=r>n.totalTime?n.totalTime:r,n.progressMoment=n.startMoment,n.progressTime=r,n.play(n.pausedState),n.reRenderCall(),!!e!==n.pausedState&&n.paused(e)},this.kill=function(t){if("number"==typeof t)n.paused(),delete n.children[t],n.setTotalTime(),n.paused(!1);else{var e;n.children=[],null===(e=n.parent)||void 0===e||e.removeChild(n)}},this.onChange=function(t){t.timelineMoment=n.progressMoment,n.onChangeChild(t)},this.render=function(t){var e=t.time,r=t.elapsed||O.Z.frameFPS||0,a=n.totalTime,o=n.totalTimeRegion,i=n.childTotalTime,s=n.childRegionTotalTime,l=n.children,u=n.props,c=n.startTime,f=n.reverseState,p=n.pausedState,d=n.startMoment,h=n.onChangeTimeline,m=n.parent,v=n.root,y=n.prevMoment,g=n.regionStartTime,b=u.repeatDelay,w=void 0===b?0:b,T=u.yoyo,S=u.delay,k=u.repeat,E=void 0===k?0:k;E=-1===E?Number.MAX_VALUE:E;var x=e-c-S,A=f?d-x:x+d;if(!(A<-r)){var _=A<0?0:A;_=_>a?a:_,_=do?d:_;var M=E?Math.floor(_/(s+w)):0,C=_-(s+w)*(M=E&&M>E?E:M),D=!!(T&&M%2);C=g+(C=D?s-C:C);var F=f?!D:D;if(n.mode="onTimelineUpdate","number"!=typeof y&&(n.mode="onTimelineStart"),_>=o-S&&"number"==typeof y&&(n.mode="onTimelineComplete"),M!==n.repeatNum&&(n.mode="onTimelineRepeat",_>i*M&&_=0;F?j++:j--){var P=l[j];F||(P.prevMoment=void 0),P.render({moment:F?P.totalTime:0,fps:r})}h({moment:_,totalTime:a,repeat:M,mode:n.mode,targets:v.targets}),n.mode="onTimelineUpdate"}E&&(n.repeatNum=M),n.progressMoment=_,n.prevMoment=_,n.progressTime=x;for(var Z=0;Z=N.appearTo-r&&CL+r&&!D&&N.totalTime||void 0===N.mode&&!N.totalTime)&&(N.render({moment:N.totalTime,fps:r}),N.prevMoment=void 0),CL&&"onComplete"===N.mode&&!D)return;I=C>L?L:C,N.render({moment:I-N.appearTo,fps:r}),L||(N.render({moment:N.totalTime,fps:r,render:!0}),N.prevMoment=void 0)}}h({moment:_,totalTime:a,repeat:M,mode:n.mode,targets:v.targets}),(p||o&&A+S>=o&&!f||f&&A+S<=0||!l.length)&&(null==m||m.removeChild(n))}},this.props=e;var r=this.props,a=r.paused,o=r.reverse;this.reverseState=o,this.pausedState=a,this.regionStartTime=e.regionStartTime||0,this.regionEndTime=e.regionEndTime});u.Z.push(b),u.Z.push(E),u.Z.push(d);var C=0,D=new x,F=function(){function t(e,n){var a,l=this;(0,s.Z)(this,t),this.targets=void 0,this.props=void 0,this.timeline=void 0,this.animate=void 0,this.$reverse=!1,this.vars=[],this.initTime=void 0,this.attr=void 0,this.init=(a=(0,i.Z)(o().mark(function t(e){var n;return o().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:n=(0,p.Sx)(e),l.targets[0].tagName&&!l.attr&&(n.animation=(0,p.Zk)(n.animation).map(function(t){var e={style:{}};for(var n in t)n in u.Z||n in p.$e?e[n]=t[n]:e.style[n]=t[n];return Object.keys(e.style).length||delete e.style,t.duration&&(t.duration=Math.round(t.duration)),t.delay&&(t.delay=Math.round(t.delay)),t.appearTo&&(t.appearTo=Math.round(t.appearTo)),t.repeatDelay&&(t.repeatDelay=Math.round(t.repeatDelay)),e})),l.animate=new M(n),l.animate.id="TweenOne_".concat(C),C++,l.animate.startTime=l.initTime,l.animate.onChangeChild=l.onChange,l.animate.onChangeTimeline=l.onChangeTimeline,l.animate.root=l,l.animate.parent=l.timeline,l.animate.init();case 11:case"end":return t.stop()}},t)})),function(t){return a.apply(this,arguments)}),this.renderToDom=function(){for(var t=0;t3&&void 0!==arguments[3]?arguments[3]:"",a=arguments.length>4?arguments[4]:void 0;return"+="===r||"-="===r?t+e*n+(a||0):(e-t)*n+t+(a||0)},g=function(t){return t&&document.defaultView?document.defaultView.getComputedStyle(t):{}},b={margin:1,padding:1,borderWidth:1,borderRadius:1};function w(t){var e,n,r,a=t.target,o=t.computedStyle,s=t.style,l=t.value,u=t.startUnit,c=t.endUnit,f=t.fixed,p=t.isOriginWidth,d=t.useCurrentTarget;if(i)return l;var h=/(?:Left|Right|Width|X)/i.test(s)||p;h="padding"===s||"marign"===s||h;var m=-1!==s.indexOf("border")||-1!==s.indexOf("translate")||"transformOrigin"===s||d?a:a.parentNode||document.body;switch(m=f?document.body:m,u){case"%":e=parseFloat(l)/100*(h?m.clientWidth:m.clientHeight);break;case"vw":e=parseFloat(l)*document.body.clientWidth/100;break;case"vh":e=parseFloat(l)*document.body.clientHeight/100;break;case"em":o?e=parseFloat(l)*parseFloat(o.fontSize):(r="em",e=parseFloat(l));break;case"rem":o?(n=window.getComputedStyle(document.getElementsByTagName("html")[0]),e=parseFloat(l)*parseFloat(n.fontSize)):(r="rem",e=parseFloat(l));break;default:e=parseFloat(l)}switch(c){case"%":e=e?100*e/(h?m.clientWidth:m.clientHeight):0;break;case"vw":e=parseFloat(l)/document.body.clientWidth*100;break;case"vh":e=parseFloat(l)/document.body.clientHeight*100;break;case"em":o?e=parseFloat(l)/parseFloat(o.fontSize):(r="em",e=parseFloat(l));break;case"rem":o?(n=n||window.getComputedStyle(document.getElementsByTagName("html")[0]),e=parseFloat(l)/parseFloat(n.fontSize)):(r="rem",e=parseFloat(l))}return r&&console.warn("Warning: Element is not 'DOM, can not use '".concat(r,"', automatically convert to animation units.")),e}function T(t){if("string"==typeof t)return t;var e=t.perspective,n=t.rotate,r=t.rotateX,a=t.rotateY,o=t.scaleX,i=t.scaleY,s=t.scaleZ,l=t.skewX,u=t.skewY,c="string"==typeof t.translateX?t.translateX:"".concat(t.translateX,"px"),f="string"==typeof t.translateY?t.translateY:"".concat(t.translateY,"px"),p="string"==typeof t.translateZ?t.translateZ:"".concat(t.translateZ,"px"),d=l||u?"skew(".concat(l,"deg,").concat(u,"deg)"):"",h=n?"rotate(".concat(n,"deg)"):"",m=1!==o||1!==i||1!==s?"scale3d(".concat(o,",").concat(i,",").concat(s,")"):"",v=r?"rotateX(".concat(r,"deg)"):"",y=a?"rotateY(".concat(a,"deg)"):"",g=t.translateZ?"translate3d(".concat(c,",").concat(f,",").concat(p,")"):(t.translateX||t.translateY)&&"translate(".concat(c,",").concat(f,")")||(m||h||v||y||d?"":"translate(0px, 0px)");return"".concat(e?"perspective(".concat(e,"px)"):""," ").concat(g," ").concat(m," ").concat(h," ").concat(v," ").concat(y," ").concat(d).trim()}var S={brightness:1,saturate:1,contrast:1,grayScale:0,hueRotate:"0deg",sepia:0,invert:0}},11375:function(t,e,n){var r=n(32781);(function(){var e,n,a,o;"undefined"!=typeof performance&&null!==performance&&performance.now?t.exports=function(){return performance.now()}:null!=r&&r.hrtime?(t.exports=function(){return(e()-o)/1e6},n=r.hrtime,o=(e=function(){var t;return 1e9*(t=n())[0]+t[1]})()-1e9*r.uptime()):Date.now?(t.exports=function(){return Date.now()-a},a=Date.now()):(t.exports=function(){return new Date().getTime()-a},a=new Date().getTime())}).call(this)},19616:function(t,e,n){for(var r=n(11375),a="undefined"==typeof window?n.g:window,o=["moz","webkit"],i="AnimationFrame",s=a["request"+i],l=a["cancel"+i]||a["cancelRequest"+i],u=0;!s&&u2||Array.isArray(F[0]))&&(i=i.map(function(t){return 100*t}),i="M0,100C".concat(i[0],",").concat(100-i[1],",").concat(i[2],",").concat(100-i[3],",100,0")),{startAnim:o,animate:a,ease:i,duration:s}},td=function(t,e){var n=e.targets;n.className=n.className.replace(R[1],""),-1===n.className.indexOf(R[0])&&(n.className="".concat(n.className," ").concat(R[0]).trim()),Y.current.indexOf(t)>=0&&Y.current.splice(Y.current.indexOf(t),1),H.current[t]=!0},th=function(t,e){if(!(W.current.indexOf(t)>=0)){var n=e.targets;n.className=n.className.replace(R[0],"").trim(),delete K.current[t],U({key:t,type:"enter",target:n})}},tm=function(t,e){var n=e.targets;n.className=n.className.replace(R[0],""),-1===n.className.indexOf(R[1])&&(n.className="".concat(n.className," ").concat(R[1]).trim())},tv=function(e,n){if(p(t.children).findIndex(function(t){return t&&t.key===e}),!(p(t.children).findIndex(function(t){return t&&t.key===e})>=0)){delete H.current[e],delete K.current[e],tt.current=tt.current.filter(function(t){return t.key!==e}),W.current.indexOf(e)>=0&&W.current.splice(W.current.indexOf(e),1),W.current.some(function(t){return ts[t]})||(ta(p(t.children)),tl((0,a.Z)({},H.current)),q.current.forEach(function(t){delete $.current[t]}));var r=n.targets;r.className=r.className.replace(R[1],"").trim(),U({key:e,type:"leave",target:r})}},ty=function(t){ts[t]=!0,u.Z.clear(G.current[t]),delete G.current[t],tl((0,a.Z)({},ts))},tg=function(t,e){var n=h(S,t,e)[0],r=h(x,t,e)[0];G.current[t]=u.Z.timeout(function(){ty(t)},n*e+r)},tb=function(t){u.Z.clear(G.current[t]),delete G.current[t]},tw=function(t,e,n,r){var o=tp(t,e,r),i=function(e){("enter"===r?td:tm)(t,e)},s=function(e){("enter"===r?th:tv)(t,e)};if(Array.isArray(o.animate)){var l=o.animate.length-1;return o.animate.map(function(t,e){return(0,a.Z)((0,a.Z)({},t),{},{startAt:o.startAnim?o.startAnim[e]:void 0,duration:o.duration/l,delay:e||"leave"!==r?0:n,onStart:e?void 0:i,onComplete:e===l?s:void 0})})}return(0,a.Z)((0,a.Z)({},o.animate),{},{startAt:o.startAnim||void 0,ease:o.ease,duration:o.duration,onStart:i,onComplete:s,delay:n})};return(0,s.useEffect)(function(){return function(){Object.keys(K.current).forEach(function(t){var e=K.current[t];e&&e.kill()})}},[]),(0,s.useEffect)(function(){var e,n,r,o,i=p(t.children).filter(function(t){return t}),s=tt.current.filter(function(t){return t}),l=(n=[],r={},o=[],s.forEach(function(t){t&&(d(i,t.key)?(o.length&&(r[t.key]=o,o=[]),e=t.key):t.key&&o.push(t))}),e||(n=n.concat(o)),i.forEach(function(t){t&&(r.hasOwnProperty(t.key)&&(n=n.concat(r[t.key])),n.push(t),t.key===e&&(n=n.concat(o)))}),n),c=[],f=[];if(V||J.current)s.forEach(function(t){if(t){var e=t.key;!d(i,e)&&e&&(f.push(e),u.Z.clear(G.current[e]),delete G.current[e])}}),i.forEach(function(t){if(t){var e=t.key;(!d(s,e)&&e||(!$.current[e]||"leave"===$.current[e]||Y.current.indexOf(e)>=0)&&-1===f.indexOf(e))&&c.push(e)}});else{var h={};l.forEach(function(t){t&&t.key&&(h[t.key]=!0)}),tt.current=l,H.current=(0,a.Z)({},h),tl(h)}Y.current=c,z.current=[].concat(c),W.current=f,q.current=[].concat(f),ta(l)},[t.children]),(0,s.useLayoutEffect)(function(){if(tt.current=tr||[],V||J.current){var t=(0,r.Z)(Y.current),e=(0,r.Z)(W.current);t.forEach(tg),e.forEach(tb)}tr&&(J.current=!0)},[tr]),(0,s.useLayoutEffect)(function(){tr&&tr.forEach(function(t){var e,n=t.key,r=Q.current[n];if(r){var o=W.current.indexOf(n),i=h(S,n,o),s=h(x,n,o);if(o>=0){if("leave"===$.current[n])return;var l=P?W.current.length-o-1:o;e=tw(n,o,i[1]*l+s[1],"leave"),$.current[n]="leave"}else{if("enter"===$.current[n]||-1===Y.current.indexOf(n))return;o=z.current.indexOf(n);var u=i[0]*o+s[0];e=tw(n,o,"leave"===$.current[n]?u:0,"enter"),$.current[n]="enter"}if(K.current[n]&&K.current[n].kill(),N){var f=(0,a.Z)((0,a.Z)({},Array.isArray(e)?e[0].startAt:e.startAt),{},{type:"set"});(0,c.ZP)(r,{animation:f})}K.current[n]=(0,c.ZP)(r,{animation:e})}})},[ts,tr]),(0,s.useMemo)(function(){if(f)return(0,s.createElement)(g,(0,a.Z)((0,a.Z)((0,a.Z)({},B),w),{},{ref:e}));var t=p(tr).map(function(t){return t&&t.key?ts[t.key]&&(0,s.cloneElement)(t,{ref:function(e){Q.current[t.key]=e instanceof Element?e:(0,l.findDOMNode)(e),e||delete Q.current[t.key]},key:t.key}):t}),n=(0,a.Z)((0,a.Z)((0,a.Z)({},B),w),{},{ref:e});return(0,s.createElement)(g,n,t)},[ts,tr])})},32609:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if("undefined"!=typeof XDomainRequest)return e(null),null;var n=new XMLHttpRequest;return n.onreadystatechange=function(){n.readyState===XMLHttpRequest.DONE&&200===n.status&&e(JSON.parse(n.responseText))},n.open("GET",t,!0),n.send(),n},t.exports=e.default},1160:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Object.assign||function(t){for(var e=1;e=0)&&Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}(e,["className","type","size"]);delete l.namespace,delete l.repo;var u=this.state.count,f=s.classNames((n in(t={"github-btn":!0,"github-btn-large":"large"===i})?Object.defineProperty(t,n,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[n]=n,t));return a.default.createElement("span",r({},l,{className:f}),a.default.createElement("a",{className:"gh-btn",href:this.getRepoUrl(),target:"_blank"},a.default.createElement("span",{className:"gh-ico","aria-hidden":"true"}),a.default.createElement("span",{className:"gh-text"},c[o])),a.default.createElement("a",{className:"gh-count",target:"_blank",href:this.getCountUrl(),style:this.getCountStyle()},u))},e}(a.default.Component);p.displayName="GitHubButton",p.propTypes={className:o.default.string,type:o.default.oneOf(["stargazers","watchers","forks"]).isRequired,namespace:o.default.string.isRequired,repo:o.default.string.isRequired,size:o.default.oneOf(["large"])},e.default=p,t.exports=e.default},40639:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.classNames=function(t){return Object.keys(t).filter(function(e){return t[e]}).join(" ")}},89971:function(t,e){"use strict";e.Dm=function(t){return t.replace(/[A-Z]/,function(t){return"-"+t.toLocaleLowerCase()})},e.FH=f,e.wz=function(t){if("undefined"==typeof document)return null;var e=["WebKitCSS","MozCSS","DOM","MsCSS","MSCSS","OCSS","CSS"].filter(function(t){return t+"Matrix" in window});return e.length?new window[e[0]+"Matrix"](t):(console.warn("Browsers do not support matrix."),"")},e.Yf=function(t){if("undefined"==typeof document)return null;if("filter"!==t&&t in document.body.style)return t;var e=t.charAt(0).toUpperCase()+t.substr(1),n=["O","Moz","ms","Ms","Webkit"].filter(function(t){return""+t+e in document.body.style});return n[0]?""+n[0]+e:null},e.Lo=function(t){var e=t;return"z"===(e="y"===(e="x"===e?"translateX":e)?"translateY":e)?"translateZ":e},e.lu=p,e.hy=function(t){if(!t)return[0,0,0,0,0,0,0];var e=t.replace(/,\s+/gi,",").split(/\s+/).filter(function(t){return t}),n=e.indexOf("inset");n>=0&&e.splice(n,1);var r=e.find(function(t){return i[t]||t.match(/#([0-9a-fA-F]{6}|[0-9a-fA-F]{3})|(rgb|hsl)+(?:a)?\((.*)\)/i)})||"black",a=e.indexOf(r);e.splice(a,1);var o=p(r);return o[3]="number"==typeof o[3]?o[3]:1,e.concat(o,n>=0?["inset"]:[])},e.Lq=function(t){return(4===t.length?"rgba":"rgb")+"("+t.map(function(t,e){return e<3?Math.round(t):t}).join(",")+")"},e.Tk=d,e.dt=function(t){var e=d(t);return c.filter.indexOf(e)>=0?"filter":e},e.GX=function(t){if("none"===t||!t||""===t)return null;var e=t.replace(" ","").split(")").filter(function(t){return t}),n={};return e.forEach(function(t){var e=t.split("(");n[e[0]]=e[1]}),n},e.Ck=function(t){var e,n,r,a=t&&"none"!==t&&""!==t?t:"matrix(1, 0, 0, 1, 0, 0)";if(!a.match("matrix"))return(r={}).translateX=0,r.translateY=0,r.translateZ=0,r.rotate=0,r.rotateX=0,r.rotateY=0,r.scaleX=1,r.scaleY=1,r.scaleZ=1,r.skewX=0,r.skewY=0,r.perspective=0,(t.trim().match(/(\w+)\([^\)]+\)/ig)||[]).forEach(function(t){var e=t.split("("),n=e[0].trim(),a=e[1].replace(")","").trim();a.match(/%|em|rem/ig)&&console.warn("value("+a+") must be absolute, not relative, has been converted to absolute."),a=a.replace(/px|deg|\)/ig,""),c.transformGroup[n]&&"rotate"!==n?(a=a.split(",").map(function(t){return parseFloat(t)}),"scale3d"===n||"translate3d"===n?["X","Y","Z"].forEach(function(t,e){var o=n.substring(0,n.length-2);r[""+o+t]=a[e]||r[""+o+t]}):"rotate3d"===n?(r.rotateX=a[0]&&a[3]||r.rotateX,r.rotateY=a[1]&&a[3]||r.rotateY,r.rotate=a[2]&&a[3]||r.rotate):["X","Y"].forEach(function(t,e){r[""+n+t]=a[e]||r[""+n+t]})):"rotateZ"===n?r.rotate=parseFloat(a)||r.rotate:r[n]=parseFloat(a)||r[n]}),r;var o=(e=a.match(/(?:\-|\b)[\d\-\.e]+\b/gi),n={},6===e.length?(n.m11=parseFloat(e[0]),n.m12=parseFloat(e[1]),n.m13=0,n.m14=0,n.m21=parseFloat(e[2]),n.m22=parseFloat(e[3]),n.m23=0,n.m24=0,n.m31=0,n.m32=0,n.m33=1,n.m34=0,n.m41=parseFloat(e[4]),n.m42=parseFloat(e[5]),n.m43=0,n.m44=0):e.forEach(function(t,e){n["m"+(Math.floor(e/4)+1)+(e%4+1)]=parseFloat(t)}),n),i=o.m11,s=o.m12,u=o.m13,p=o.m14,d=o.m21,h=o.m22,m=o.m23,v=o.m24,y=o.m31,g=o.m32,b=o.m33,w=o.m34,T=o.m43,S=void 0,k=void 0,E=void 0,O={},x=Math.atan2(m,b),A=Math.tan(d),_=Math.tan(s),M=void 0,C=void 0;return O.rotateX=f(x*l)||0,x&&(S=d*(M=Math.cos(-x))+y*(C=Math.sin(-x)),k=h*M+g*C,E=m*M+b*C,y=-(d*C)+y*M,g=-(h*C)+g*M,b=-(m*C)+b*M,w=-(v*C)+w*M,d=S,h=k,m=E),x=Math.atan2(-u,b),O.rotateY=f(x*l)||0,x&&(S=i*(M=Math.cos(-x))-y*(C=Math.sin(-x)),k=s*M-g*C,E=u*M-b*C,g=s*C+g*M,b=u*C+b*M,w=p*C+w*M,i=S,s=k,u=E),x=Math.atan2(s,i),O.rotate=f(x*l)||0,x&&(S=i*(M=Math.cos(x))+s*(C=Math.sin(x)),k=d*M+h*C,E=y*M+g*C,s=s*M-i*C,h=h*M-d*C,g=g*M-y*C,i=S,d=k,y=E),O.rotateX&&Math.abs(O.rotateX)+Math.abs(O.rotate)>359.9&&(O.rotateX=O.rotate=0,O.rotateY=180-O.rotateY||0),O.scaleX=f(Math.sqrt(i*i+s*s+u*u)),O.scaleY=f(Math.sqrt(h*h+m*m)),O.scaleZ=f(Math.sqrt(y*y+g*g+b*b)),O.skewX=A===-_?0:A,O.skewY=_===-A?0:_,O.perspective=w?1/(w<0?-w:w):0,O.translateX=o.m41,O.translateY=o.m42,O.translateZ=T,O},e.YJ=function(t,e){var r=void 0;return n[t]||"number"!=typeof e?"content"!==t||a.test(e)||(r="'"+e.replace(/'/g,"\\'")+"'"):r=" "+e+"px",r||e};var n={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!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},r=["Webkit","ms","Moz","O"];Object.keys(n).forEach(function(t){r.forEach(function(e){n[e+t.charAt(0).toUpperCase()+t.substring(1)]=n[t]})});var a=/^(normal|none|(\b(url\([^)]*\)|chapter_counter|attr\([^)]*\)|(no-)?(open|close)-quote|inherit)((\b\s*)|$|\s+))+)$/,o="undefined"!=typeof document&&!!(navigator&&(navigator.userAgent.indexOf("MSIE 8.0")>0||navigator.userAgent.indexOf("MSIE 9.0")>0)),i={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},s=function(t,e,n){var r=t>1?t-1:t,a=3*(r=t<0?t+1:r)<2?e+(n-e)*(2/3-r)*6:e,o=r<.5?n:a;return 255*(6*r<1?e+(n-e)*r*6:o)+.5|0},l=180/Math.PI,u={_lists:{transformsBase:["translate","translateX","translateY","scale","scaleX","scaleY","skewX","skewY","rotateZ","rotate"],transforms3D:["translate3d","translateZ","scaleZ","rotateX","rotateY","perspective"]},transformGroup:{translate:1,translate3d:1,scale:1,scale3d:1,rotate:1,rotate3d:1,skew:1},filter:["grayScale","sepia","hueRotate","invert","brightness","contrast","blur"],filterConvert:{grayScale:"grayscale",hueRotate:"hue-rotate"}};u._lists.transformsBase=o?u._lists.transformsBase:u._lists.transformsBase.concat(u._lists.transforms3D);var c=e._T=u;function f(t,e){var n=e?Math.pow(10,e):1e5,r=0|t,a=t-r,o=t;if(a){var i=(a*n+(t<0?-.5:.5)|0)/n,s=0|i;o=(t<0&&!(r+s)?"-":"")+(r+s)+"."+(i.toString().split(".")[1]||"")}return parseFloat(o)}function p(t){var e=void 0,n=void 0,r=void 0,a=void 0,o=void 0,l=void 0,u=void 0,c=t,f=/(?:\d|\-\d|\.\d|\-\.\d)+/g;return c?"number"==typeof c?e=[c>>16,c>>8&255,255&c]:(","===c.charAt(c.length-1)&&(c=c.substr(0,c.length-1)),i[c]?e=i[c]:"#"===c.charAt(0)?(4===c.length&&(c="#"+(n=c.charAt(1))+n+(r=c.charAt(2))+r+(a=c.charAt(3))+a),e=[(c=parseInt(c.substr(1),16))>>16,c>>8&255,255&c]):"hsl"===c.substr(0,3)?(o=Number((e=c.match(f))[0])%360/360,l=Number(e[1])/100,r=(u=Number(e[2])/100)<=.5?u*(l+1):u+l-u*l,n=2*u-r,e.length>3&&(e[3]=Number(e[3])),e[0]=s(o+1/3,n,r),e[1]=s(o,n,r),e[2]=s(o-1/3,n,r)):e=c.match(f)||i.transparent,e[0]=Number(e[0]),e[1]=Number(e[1]),e[2]=Number(e[2]),e.length>3&&(e[3]=Number(e[3]))):e=i.black,e}function d(t){return c._lists.transformsBase.indexOf(t)>=0?"transform":t}},9159:function(t,e){"use strict";e.Rs=p,e.Yf=function(t){if("undefined"==typeof document)return null;if("filter"!==t&&t in document.body.style)return t;var e=t.charAt(0).toUpperCase()+t.substr(1),n=["O","Moz","ms","Ms","Webkit"].filter(function(t){return""+t+e in document.body.style});return n[0]?""+n[0]+e:null},e.Lo=function(t){var e=t;return"z"===(e="y"===(e="x"===e?"translateX":e)?"translateY":e)?"translateZ":e},e.lu=m,e.hy=function(t,e){var n=e&&p(e);if(!t)return"boxShadow"===n?[0,0,0,0,0,0,0,0]:[0,0,0,0,0,0,0];var r=t.replace(/,\s+/gi,",").split(/\s+/).filter(function(t){return t}),a=r.indexOf("inset");a>=0&&r.splice(a,1);var o=r.find(function(t){return i[t]||t.match(/#([0-9a-fA-F]{6}|[0-9a-fA-F]{3})|(rgb|hsl)+(?:a)?\((.*)\)/i)})||"black",s=r.indexOf(o);r.splice(s,1);var l=m(o);return l[3]="number"==typeof l[3]?l[3]:1,"boxShadow"===n&&r.length<4&&r.push(0),r.concat(l,a>=0?["inset"]:[])},e.Lq=function(t){return(4===t.length?"rgba":"rgb")+"("+t.map(function(t,e){return e<3?Math.round(t):t}).join(",")+")"},e.dt=function(t){var e,n=(e=t,f._lists.transformsBase.indexOf(e)>=0?"transform":e);return f.filter.indexOf(n)>=0?"filter":n},e.GX=function(t){if("none"===t||!t||""===t)return null;var e=t.replace(/\s+/g,"").split(")").filter(function(t){return t}),n={};return e.forEach(function(t){var e=t.split("(");n[e[0]]=e[1]}),n},e.Ck=function(t){var e,n,r,a=t&&"none"!==t&&""!==t?t:"matrix(1, 0, 0, 1, 0, 0)";if(!a.match("matrix"))return(r={}).translateX=0,r.translateY=0,r.translateZ=0,r.rotate=0,r.rotateX=0,r.rotateY=0,r.scaleX=1,r.scaleY=1,r.scaleZ=1,r.skewX=0,r.skewY=0,r.perspective=0,(t.trim().match(/(\w+)\([^\)]+\)/ig)||[]).forEach(function(t){var e=t.split("("),n=e[0].trim(),a=e[1].replace(")","").trim();a.match(/%|em|rem/ig)&&console.warn("value("+a+") must be absolute, not relative, has been converted to absolute."),a=a.replace(/px|deg|\)/ig,""),f.transformGroup[n]&&"rotate"!==n?(a=a.split(",").map(function(t){return parseFloat(t)}),"scale3d"===n||"translate3d"===n?["X","Y","Z"].forEach(function(t,e){var o=n.substring(0,n.length-2);r[""+o+t]=a[e]||r[""+o+t]}):"rotate3d"===n?(r.rotateX=a[0]&&a[3]||r.rotateX,r.rotateY=a[1]&&a[3]||r.rotateY,r.rotate=a[2]&&a[3]||r.rotate):["X","Y"].forEach(function(t,e){r[""+n+t]=a[e]||r[""+n+t]})):"rotateZ"===n?r.rotate=parseFloat(a)||r.rotate:r[n]=parseFloat(a)||r[n]}),r;var o=(e=a.match(/(?:\-|\b)[\d\-\.e]+\b/gi),n={},6===e.length?(n.m11=parseFloat(e[0]),n.m12=parseFloat(e[1]),n.m13=0,n.m14=0,n.m21=parseFloat(e[2]),n.m22=parseFloat(e[3]),n.m23=0,n.m24=0,n.m31=0,n.m32=0,n.m33=1,n.m34=0,n.m41=parseFloat(e[4]),n.m42=parseFloat(e[5]),n.m43=0,n.m44=0):e.forEach(function(t,e){n["m"+(Math.floor(e/4)+1)+(e%4+1)]=parseFloat(t)}),n),i=o.m11,l=o.m12,u=o.m13,c=o.m14,p=o.m21,h=o.m22,m=o.m23,v=o.m24,y=o.m31,g=o.m32,b=o.m33,w=o.m34,T=o.m43,S=void 0,k=void 0,E=void 0,O={},x=Math.atan2(m,b),A=Math.tan(p),_=Math.tan(l),M=void 0,C=void 0;return O.rotateX=d(x*s)||0,x&&(S=p*(M=Math.cos(-x))+y*(C=Math.sin(-x)),k=h*M+g*C,E=m*M+b*C,y=-(p*C)+y*M,g=-(h*C)+g*M,b=-(m*C)+b*M,w=-(v*C)+w*M,p=S,h=k,m=E),x=Math.atan2(-u,b),O.rotateY=d(x*s)||0,x&&(S=i*(M=Math.cos(-x))-y*(C=Math.sin(-x)),k=l*M-g*C,E=u*M-b*C,g=l*C+g*M,b=u*C+b*M,w=c*C+w*M,i=S,l=k,u=E),x=Math.atan2(l,i),O.rotate=d(x*s)||0,x&&(S=i*(M=Math.cos(x))+l*(C=Math.sin(x)),k=p*M+h*C,E=y*M+g*C,l=l*M-i*C,h=h*M-p*C,g=g*M-y*C,i=S,p=k,y=E),O.rotateX&&Math.abs(O.rotateX)+Math.abs(O.rotate)>359.9&&(O.rotateX=O.rotate=0,O.rotateY=180-O.rotateY||0),O.scaleX=d(Math.sqrt(i*i+l*l+u*u)),O.scaleY=d(Math.sqrt(h*h+m*m)),O.scaleZ=d(Math.sqrt(y*y+g*g+b*b)),O.skewX=A===-_?0:A,O.skewY=_===-A?0:_,O.perspective=w?1/(w<0?-w:w):0,O.translateX=o.m41,O.translateY=o.m42,O.translateZ=T,O},e.YJ=function(t,e){var r=void 0;return n[t]||"number"!=typeof e?"content"!==t||a.test(e)||(r="'"+e.replace(/'/g,"\\'")+"'"):r=" "+e+"px",r||e};var n={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!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},r=["Webkit","ms","Moz","O"];Object.keys(n).forEach(function(t){r.forEach(function(e){n[e+t.charAt(0).toUpperCase()+t.substring(1)]=n[t]})});var a=/^(normal|none|(\b(url\([^)]*\)|chapter_counter|attr\([^)]*\)|(no-)?(open|close)-quote|inherit)((\b\s*)|$|\s+))+)$/,o="undefined"!=typeof document&&!!(navigator&&(navigator.userAgent.indexOf("MSIE 8.0")>0||navigator.userAgent.indexOf("MSIE 9.0")>0)),i={aqua:[0,255,255,1],lime:[0,255,0,1],silver:[192,192,192,1],black:[0,0,0,1],maroon:[128,0,0,1],teal:[0,128,128,1],blue:[0,0,255,1],navy:[0,0,128,1],white:[255,255,255,1],fuchsia:[255,0,255,1],olive:[128,128,0,1],yellow:[255,255,0,1],orange:[255,165,0,1],gray:[128,128,128,1],purple:[128,0,128,1],green:[0,128,0,1],red:[255,0,0,1],pink:[255,192,203,1],cyan:[0,255,255,1],transparent:[255,255,255,0]},s=180/Math.PI,l={_lists:{transformsBase:["translate","translateX","translateY","scale","scaleX","scaleY","skewX","skewY","rotateZ","rotate"],transforms3D:["translate3d","translateZ","scaleZ","rotateX","rotateY","perspective"]},transformGroup:{translate:1,translate3d:1,scale:1,scale3d:1,rotate:1,rotate3d:1,skew:1},filter:["grayScale","sepia","hueRotate","invert","brightness","contrast","blur"],filterConvert:{grayScale:"grayscale",hueRotate:"hue-rotate"}};l._lists.transformsBase=o?l._lists.transformsBase:l._lists.transformsBase.concat(l._lists.transforms3D);var u=/#([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{3})/;e.rV=/#([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{3})|((rgb|hsl)[a]?)+\((?:\d|\.\d)+(?:(deg|\%)?),[\s+]?(?:\d|\.\d)+(?:(deg|\%)?),[\s+]?(?:\d|\.\d)+(?:(deg|%)?)(,[\s+]?(?:\d|\.\d)+(?:(deg|\%)?))?\)/;var c=/(?:\d|\.\d)+(%?)/g,f=e._T=l;function p(t){return t.replace(/-(.?)/g,function(t){return t.replace("-","").toLocaleUpperCase()})}function d(t,e){var n=e?Math.pow(10,e):1e5,r=0|t,a=t-r,o=t;if(a){var i=(a*n+(t<0?-.5:.5)|0)/n,s=0|i;o=(t<0&&!(r+s)?"-":"")+(r+s)+"."+(i.toString().split(".")[1]||"")}return parseFloat(o)}var h=function(t,e,n){return(n<0&&(n+=6),n>=6&&(n-=6),n<1)?(e-t)*n+t:n<3?e:n<4?(e-t)*(4-n)+t:t};function m(t){var e=i.transparent,n=t,r=void 0,a=void 0,o=void 0;if(n){if(i[n])e=i[n];else if("number"==typeof n)e=[n>>16,n>>8&255,255&n];else if(","===n.charAt(n.length-1)&&(n=n.substr(0,n.length-1)),n.match(u))3===(n=n.substr(1)).length&&(n=""+(r=n.charAt(0))+r+(a=n.charAt(1))+a+(o=n.charAt(2))+o+"ff"),6===n.length&&(n+="ff"),e=[(n=parseInt(n,16))>>24&255,n>>16&255,n>>8&255,parseFloat(((255&n)/255).toFixed(2))];else if(n.match(/^hsl/)){var s=(e=n.match(c))[3];s="string"==typeof s&&s.match("%")?parseFloat(s)/100:parseFloat(""+(s||"1"));var l=parseFloat(e[0])/60,f=parseFloat(e[1])/100,p=parseFloat(e[2])/100,d=p<=.5?p*(f+1):p+f-p*f,m=2*p-d;e=[r=Math.round(255*h(m,d,l+2)),a=Math.round(255*h(m,d,l)),o=Math.round(255*h(m,d,l-2)),s]}else 3===(e=(e=n.match(c)||i.transparent).map(function(t){return parseFloat(t)})).length&&e.push(1)}else e=i.transparent;return e}},96839:function(t){"use strict";var e={linear:function(t,e,n,r){return(n-e)*t/r+e},easeInQuad:function(t,e,n,r){return(n-e)*(t/=r)*t+e},easeOutQuad:function(t,e,n,r){return-(n-e)*(t/=r)*(t-2)+e},easeInOutQuad:function(t,e,n,r){var a=n-e;return(t/=r/2)<1?a/2*t*t+e:-a/2*(--t*(t-2)-1)+e},easeInCubic:function(t,e,n,r){return(n-e)*(t/=r)*t*t+e},easeOutCubic:function(t,e,n,r){return(n-e)*((t=t/r-1)*t*t+1)+e},easeInOutCubic:function(t,e,n,r){var a=n-e;return(t/=r/2)<1?a/2*t*t*t+e:a/2*((t-=2)*t*t+2)+e},easeInQuart:function(t,e,n,r){return(n-e)*(t/=r)*t*t*t+e},easeOutQuart:function(t,e,n,r){return-(n-e)*((t=t/r-1)*t*t*t-1)+e},easeInOutQuart:function(t,e,n,r){var a=n-e;return(t/=r/2)<1?a/2*t*t*t*t+e:-a/2*((t-=2)*t*t*t-2)+e},easeInQuint:function(t,e,n,r){return(n-e)*(t/=r)*t*t*t*t+e},easeOutQuint:function(t,e,n,r){return(n-e)*((t=t/r-1)*t*t*t*t+1)+e},easeInOutQuint:function(t,e,n,r){var a=n-e;return(t/=r/2)<1?a/2*t*t*t*t*t+e:a/2*((t-=2)*t*t*t*t+2)+e},easeInSine:function(t,e,n,r){var a=n-e;return-a*Math.cos(t/r*(Math.PI/2))+a+e},easeOutSine:function(t,e,n,r){return(n-e)*Math.sin(t/r*(Math.PI/2))+e},easeInOutSine:function(t,e,n,r){return-(n-e)/2*(Math.cos(Math.PI*t/r)-1)+e},easeInExpo:function(t,e,n,r){return 0==t?e:(n-e)*Math.pow(2,10*(t/r-1))+e},easeOutExpo:function(t,e,n,r){var a=n-e;return t==r?e+a:a*(-Math.pow(2,-10*t/r)+1)+e},easeInOutExpo:function(t,e,n,r){var a=n-e;return 0===t?e:t===r?e+a:(t/=r/2)<1?a/2*Math.pow(2,10*(t-1))+e:a/2*(-Math.pow(2,-10*--t)+2)+e},easeInCirc:function(t,e,n,r){return-(n-e)*(Math.sqrt(1-(t/=r)*t)-1)+e},easeOutCirc:function(t,e,n,r){return(n-e)*Math.sqrt(1-(t=t/r-1)*t)+e},easeInOutCirc:function(t,e,n,r){var a=n-e;return(t/=r/2)<1?-a/2*(Math.sqrt(1-t*t)-1)+e:a/2*(Math.sqrt(1-(t-=2)*t)+1)+e},easeInElastic:function(t,e,n,r){var a,o,i,s=n-e;return(i=1.70158,o=0,a=s,0===t)?e:1==(t/=r)?e+s:(o||(o=.3*r),a=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var l=i.call(o,"catchLoc"),u=i.call(o,"finallyLoc");if(l&&u){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),M(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var a=r.arg;M(n)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:D(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},n}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports},27566:function(t){function e(n){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},4860:function(t,e,n){var r=n(13448)();t.exports=r;try{regeneratorRuntime=r}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}}]); \ No newline at end of file diff --git a/_next/static/chunks/567-f79a5439ce425142.js b/_next/static/chunks/567-f79a5439ce425142.js deleted file mode 100644 index 6111c50..0000000 --- a/_next/static/chunks/567-f79a5439ce425142.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[567],{35554:function(t,e,n){var r,o="__lodash_hash_undefined__",a=1/0,i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,c=/^\w*$/,u=/^\./,l=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,s=/\\(\\)?/g,p=/^\[object .+?Constructor\]$/,f="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,h="object"==typeof self&&self&&self.Object===Object&&self,d=f||h||Function("return this")(),g=Array.prototype,_=Function.prototype,y=Object.prototype,b=d["__core-js_shared__"],v=(r=/[^.]+$/.exec(b&&b.keys&&b.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",w=_.toString,j=y.hasOwnProperty,m=y.toString,S=RegExp("^"+w.call(j).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),x=d.Symbol,O=g.splice,k=N(d,"Map"),C=N(Object,"create"),T=x?x.prototype:void 0,M=T?T.toString:void 0;function P(t){var e=-1,n=t?t.length:0;for(this.clear();++e-1},$.prototype.set=function(t,e){var n=this.__data__,r=I(n,t);return r<0?n.push([t,e]):n[r][1]=e,this},E.prototype.clear=function(){this.__data__={hash:new P,map:new(k||$),string:new P}},E.prototype.delete=function(t){return L(this,t).delete(t)},E.prototype.get=function(t){return L(this,t).get(t)},E.prototype.has=function(t){return L(this,t).has(t)},E.prototype.set=function(t,e){return L(this,t).set(t,e),this};var J=R(function(t){t=null==(e=t)?"":function(t){if("string"==typeof t)return t;if(F(t))return M?M.call(t):"";var e=t+"";return"0"==e&&1/t==-a?"-0":e}(e);var e,n=[];return u.test(t)&&n.push(""),t.replace(l,function(t,e,r,o){n.push(r?o.replace(s,"$1"):e||t)}),n});function R(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw TypeError("Expected a function");var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=t.apply(this,r);return n.cache=a.set(o,i),i};return n.cache=new(R.Cache||E),n}R.Cache=E;var D=Array.isArray;function A(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function F(t){return"symbol"==typeof t||!!t&&"object"==typeof t&&"[object Symbol]"==m.call(t)}t.exports=function(t,e,n){var r=null==t?void 0:function(t,e){var n;e=!function(t,e){if(D(t))return!1;var n=typeof t;return!!("number"==n||"symbol"==n||"boolean"==n||null==t||F(t))||c.test(t)||!i.test(t)||null!=e&&t in Object(e)}(e,t)?D(n=e)?n:J(n):[e];for(var r=0,o=e.length;null!=t&&r{if(_(e)){let n=t.replace("/","");return[n,e.title||g(n)]}return[t,e||g(t)]}))}function b({pageNextRoute:t,pageOpts:e,nextraLayout:n,themeConfig:o,MDXContent:c,hot:u,pageOptsChecksum:l,dynamicMetaModules:s=[]}){var d;"undefined"==typeof window&&(globalThis.__nextra_resolvePageMap=async()=>{if(r)return r;let t=JSON.parse(JSON.stringify(g.pageMap));return await Promise.all(s.map(async([e,{metaObjectKeyPath:n,metaParentKeyPath:r}])=>{let o=await e,i=await o.default(),c=a()(t,n);c.data=i,function t(e,n,r=!0){if(r){t(e,{kind:"Meta",data:n.data,locale:n.locale},!1),n.data=y(n.data);return}for(let[r,a]of Object.entries(n.data)){if(!_(a)){var o;if("*"===r)continue;e.children.push({kind:"MdxPage",...n.locale&&{locale:n.locale},name:r,route:(o=e.route,h(f.join(o,r.replace(/^index$/,""))))});continue}let i=r.replace("/",""),c={kind:"Folder",name:i,route:`${e.route}/${i}`,children:[{kind:"Meta",...n.locale&&{locale:n.locale},data:y(a.items)}]};e.children.push(c),t(c,{kind:"Meta",data:a.items,locale:n.locale},!1)}}(a()(t,r),c)})),r=t});let g=globalThis[d=i.eZ]||(globalThis[d]=Object.create(null));return e.pageMap?(g.pageMap=e.pageMap,g.Layout=n):(e={...e,pageMap:g.pageMap,flexsearch:g.flexsearch},o=g.themeConfig),e={frontMatter:{},...e},g.route=e.route,g.context||(g.context=Object.create(null)),g.context[t]={Content:c,pageOpts:e,themeConfig:o},p}},94473:function(t){"use strict";t.exports=t=>{let e=/^\\\\\?\\/.test(t),n=/[^\u0000-\u0080]+/.test(t);return e||n?t:t.replace(/\\/g,"/")}},29378:function(t,e,n){let r=n(83587),o=n(72168),a="[^\\s'’\\(\\)!?;:\"-]",i=RegExp(`(?:(?:(\\s?(?:^|[.\\(\\)!?;:"-])\\s*)(${a}))|(${a}))(${a}*[’']*${a}*)`,"g"),c=t=>t.map(t=>[RegExp(`\\b${t}\\b`,"gi"),t]);t.exports=(t,e={})=>(t=t.toLowerCase().replace(i,(t,e="",n,o,a,i,c)=>{let u=t.length+i>=c.length,l=function(t){let e=t[0];return/\s/.test(e)?t.slice(1):/[\(\)]/.test(e)?null:t}(t);return l?!n&&r.has(o+a)&&!u?l:e+(o||n).toUpperCase()+a:t}),c([...o,...e.special||[]]).forEach(([e,n])=>{t=t.replace(e,n)}),t)},83587:function(t){t.exports=new Set(["for","and","nor","but","or","yet","so","a","an","the","aboard","about","above","across","after","against","along","amid","among","anti","around","as","at","before","behind","below","beneath","beside","besides","between","beyond","but","by","concerning","considering","despite","down","during","except","excepting","excluding","following","for","from","in","inside","into","like","minus","near","of","off","on","onto","opposite","over","past","per","plus","regarding","round","save","since","than","through","to","toward","towards","under","underneath","unlike","until","up","upon","versus","via","with","within","without"])},72168:function(t){t.exports=["ZEIT","ZEIT Inc.","Vercel","Vercel Inc.","CLI","API","HTTP","HTTPS","JSX","DNS","URL","now.sh","now.json","vercel.app","vercel.json","CI","CD","CDN","package.json","package.lock","yarn.lock","GitHub","GitLab","CSS","Sass","JS","JavaScript","TypeScript","HTML","WordPress","Next.js","Node.js","Webpack","Docker","Bash","Kubernetes","SWR","TinaCMS","UI","UX","TS","TSX","iPhone","iPad","watchOS","iOS","iPadOS","macOS","PHP","composer.json","composer.lock","CMS","SQL","C","C#","GraphQL","GraphiQL","JWT","JWTs"]},76067:function(t,e,n){n(11527)}}]); \ No newline at end of file diff --git a/_next/static/chunks/636-7799e2ac6281b3b8.js b/_next/static/chunks/636-7799e2ac6281b3b8.js new file mode 100644 index 0000000..90eee37 --- /dev/null +++ b/_next/static/chunks/636-7799e2ac6281b3b8.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[636],{83996:function(t,e,n){n.d(e,{Z:function(){return c}});var o=n(97605),r=n(50959),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M380 704h264c4.4 0 8-3.6 8-8v-84c0-4.4-3.6-8-8-8h-40c-4.4 0-8 3.6-8 8v36H428v-36c0-4.4-3.6-8-8-8h-40c-4.4 0-8 3.6-8 8v84c0 4.4 3.6 8 8 8zm340-123a40 40 0 1080 0 40 40 0 10-80 0zm239-167.6L935.3 372a8 8 0 00-10.9-2.9l-50.7 29.6-78.3-216.2a63.9 63.9 0 00-60.9-44.4H301.2c-34.7 0-65.5 22.4-76.2 55.5l-74.6 205.2-50.8-29.6a8 8 0 00-10.9 2.9L65 413.4c-2.2 3.8-.9 8.6 2.9 10.8l60.4 35.2-14.5 40c-1.2 3.2-1.8 6.6-1.8 10v348.2c0 15.7 11.8 28.4 26.3 28.4h67.6c12.3 0 23-9.3 25.6-22.3l7.7-37.7h545.6l7.7 37.7c2.7 13 13.3 22.3 25.6 22.3h67.6c14.5 0 26.3-12.7 26.3-28.4V509.4c0-3.4-.6-6.8-1.8-10l-14.5-40 60.3-35.2a8 8 0 003-10.8zM840 517v237H184V517l15.6-43h624.8l15.6 43zM292.7 218.1l.5-1.3.4-1.3c1.1-3.3 4.1-5.5 7.6-5.5h427.6l75.4 208H220l72.7-199.9zM224 581a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"car",theme:"outlined"},a=n(10362),c=r.forwardRef(function(t,e){return r.createElement(a.Z,(0,o.Z)({},t,{ref:e,icon:i}))})},2748:function(t,e,n){n.d(e,{Z:function(){return c}});var o=n(97605),r=n(50959),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 736c0-111.6-65.4-208-160-252.9V317.3c0-15.1-5.3-29.7-15.1-41.2L536.5 95.4C530.1 87.8 521 84 512 84s-18.1 3.8-24.5 11.4L335.1 276.1a63.97 63.97 0 00-15.1 41.2v165.8C225.4 528 160 624.4 160 736h156.5c-2.3 7.2-3.5 15-3.5 23.8 0 22.1 7.6 43.7 21.4 60.8a97.2 97.2 0 0043.1 30.6c23.1 54 75.6 88.8 134.5 88.8 29.1 0 57.3-8.6 81.4-24.8 23.6-15.8 41.9-37.9 53-64a97 97 0 0043.1-30.5 97.52 97.52 0 0021.4-60.8c0-8.4-1.1-16.4-3.1-23.8H864zM762.3 621.4c9.4 14.6 17 30.3 22.5 46.6H700V558.7a211.6 211.6 0 0162.3 62.7zM388 483.1V318.8l124-147 124 147V668H388V483.1zM239.2 668c5.5-16.3 13.1-32 22.5-46.6 16.3-25.2 37.5-46.5 62.3-62.7V668h-84.8zm388.9 116.2c-5.2 3-11.2 4.2-17.1 3.4l-19.5-2.4-2.8 19.4c-5.4 37.9-38.4 66.5-76.7 66.5-38.3 0-71.3-28.6-76.7-66.5l-2.8-19.5-19.5 2.5a27.7 27.7 0 01-17.1-3.5c-8.7-5-14.1-14.3-14.1-24.4 0-10.6 5.9-19.4 14.6-23.8h231.3c8.8 4.5 14.6 13.3 14.6 23.8-.1 10.2-5.5 19.6-14.2 24.5zM464 400a48 48 0 1096 0 48 48 0 10-96 0z"}}]},name:"rocket",theme:"outlined"},a=n(10362),c=r.forwardRef(function(t,e){return r.createElement(a.Z,(0,o.Z)({},t,{ref:e,icon:i}))})},51050:function(t,e,n){n.d(e,{Z:function(){return c}});var o=n(97605),r=n(50959),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M931.4 498.9L94.9 79.5c-3.4-1.7-7.3-2.1-11-1.2a15.99 15.99 0 00-11.7 19.3l86.2 352.2c1.3 5.3 5.2 9.6 10.4 11.3l147.7 50.7-147.6 50.7c-5.2 1.8-9.1 6-10.3 11.3L72.2 926.5c-.9 3.7-.5 7.6 1.2 10.9 3.9 7.9 13.5 11.1 21.5 7.2l836.5-417c3.1-1.5 5.6-4.1 7.2-7.1 3.9-8 .7-17.6-7.2-21.6zM170.8 826.3l50.3-205.6 295.2-101.3c2.3-.8 4.2-2.6 5-5 1.4-4.2-.8-8.7-5-10.2L221.1 403 171 198.2l628 314.9-628.2 313.2z"}}]},name:"send",theme:"outlined"},a=n(10362),c=r.forwardRef(function(t,e){return r.createElement(a.Z,(0,o.Z)({},t,{ref:e,icon:i}))})},58209:function(t,e,n){n.d(e,{Z:function(){return c}});var o=n(97605),r=n(50959),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M288 421a48 48 0 1096 0 48 48 0 10-96 0zm352 0a48 48 0 1096 0 48 48 0 10-96 0zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm263 711c-34.2 34.2-74 61-118.3 79.8C611 874.2 562.3 884 512 884c-50.3 0-99-9.8-144.8-29.2A370.4 370.4 0 01248.9 775c-34.2-34.2-61-74-79.8-118.3C149.8 611 140 562.3 140 512s9.8-99 29.2-144.8A370.4 370.4 0 01249 248.9c34.2-34.2 74-61 118.3-79.8C413 149.8 461.7 140 512 140c50.3 0 99 9.8 144.8 29.2A370.4 370.4 0 01775.1 249c34.2 34.2 61 74 79.8 118.3C874.2 413 884 461.7 884 512s-9.8 99-29.2 144.8A368.89 368.89 0 01775 775zM664 533h-48.1c-4.2 0-7.8 3.2-8.1 7.4C604 589.9 562.5 629 512 629s-92.1-39.1-95.8-88.6c-.3-4.2-3.9-7.4-8.1-7.4H360a8 8 0 00-8 8.4c4.4 84.3 74.5 151.6 160 151.6s155.6-67.3 160-151.6a8 8 0 00-8-8.4z"}}]},name:"smile",theme:"outlined"},a=n(10362),c=r.forwardRef(function(t,e){return r.createElement(a.Z,(0,o.Z)({},t,{ref:e,icon:i}))})},812:function(t,e,n){n.d(e,{Z:function(){return ew}});var o,r=n(50959),i=n.t(r,2),a=n(82187),c=n.n(a);function s(t){var e=t.children,n=t.prefixCls,o=t.id,i=t.overlayInnerStyle,a=t.className,s=t.style;return r.createElement("div",{className:c()("".concat(n,"-content"),a),style:s},r.createElement("div",{className:"".concat(n,"-inner"),id:o,role:"tooltip",style:i},"function"==typeof e?e():e))}var l=n(97605),u=n(12309),f=n(10582),p=n(76729),d=n(10422),h=n(18021);n(77151);var m=n(57539),v=r.createContext(null),g=n(1874),b=n(5074),y=[],w=n(89130);function E(t){var e=t.match(/^(.*)px$/),n=Number(null==e?void 0:e[1]);return Number.isNaN(n)?function(t){if("undefined"==typeof document)return 0;if(void 0===o){var e=document.createElement("div");e.style.width="100%",e.style.height="200px";var n=document.createElement("div"),r=n.style;r.position="absolute",r.top="0",r.left="0",r.pointerEvents="none",r.visibility="hidden",r.width="200px",r.height="150px",r.overflow="hidden",n.appendChild(e),document.body.appendChild(n);var i=e.offsetWidth;n.style.overflow="scroll";var a=e.offsetWidth;i===a&&(a=n.clientWidth),document.body.removeChild(n),o=i-a}return o}():n}var x="rc-util-locker-".concat(Date.now()),_=0,O=!1,k=function(t){return!1!==t&&((0,h.Z)()&&t?"string"==typeof t?document.querySelector(t):"function"==typeof t?t():t:null)},C=r.forwardRef(function(t,e){var n,o,i,a,c=t.open,s=t.autoLock,l=t.getContainer,u=(t.debug,t.autoDestroy),f=void 0===u||u,C=t.children,Z=r.useState(c),M=(0,p.Z)(Z,2),R=M[0],P=M[1],z=R||c;r.useEffect(function(){(f||c)&&P(c)},[c,f]);var S=r.useState(function(){return k(l)}),L=(0,p.Z)(S,2),A=L[0],j=L[1];r.useEffect(function(){var t=k(l);j(null!=t?t:null)});var N=function(t,e){var n=r.useState(function(){return(0,h.Z)()?document.createElement("div"):null}),o=(0,p.Z)(n,1)[0],i=r.useRef(!1),a=r.useContext(v),c=r.useState(y),s=(0,p.Z)(c,2),l=s[0],u=s[1],f=a||(i.current?void 0:function(t){u(function(e){return[t].concat((0,g.Z)(e))})});function d(){o.parentElement||document.body.appendChild(o),i.current=!0}function m(){var t;null===(t=o.parentElement)||void 0===t||t.removeChild(o),i.current=!1}return(0,b.Z)(function(){return t?a?a(d):d():m(),m},[t]),(0,b.Z)(function(){l.length&&(l.forEach(function(t){return t()}),u(y))},[l]),[o,f]}(z&&!A,0),T=(0,p.Z)(N,2),D=T[0],B=T[1],H=null!=A?A:D;n=!!(s&&c&&(0,h.Z)()&&(H===D||H===document.body)),o=r.useState(function(){return _+=1,"".concat(x,"_").concat(_)}),i=(0,p.Z)(o,1)[0],(0,b.Z)(function(){if(n){var t=function(t){if("undefined"==typeof document||!t||!(t instanceof Element))return{width:0,height:0};var e=getComputedStyle(t,"::-webkit-scrollbar"),n=e.width,o=e.height;return{width:E(n),height:E(o)}}(document.body).width,e=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;(0,w.hq)("\nhtml body {\n overflow-y: hidden;\n ".concat(e?"width: calc(100% - ".concat(t,"px);"):"","\n}"),i)}else(0,w.jL)(i);return function(){(0,w.jL)(i)}},[n,i]);var I=null;C&&(0,m.Yr)(C)&&e&&(I=C.ref);var V=(0,m.x1)(I,e);if(!z||!(0,h.Z)()||void 0===A)return null;var W=!1===H||("boolean"==typeof a&&(O=a),O),Y=C;return e&&(Y=r.cloneElement(C,{ref:V})),r.createElement(v.Provider,{value:B},W?Y:(0,d.createPortal)(Y,H))}),Z=n(44112),M=n(26407),R=n(61026),P=r.createContext(null),z=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var n=-1;return t.some(function(t,o){return t[0]===e&&(n=o,!0)}),n}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var n=t(this.__entries__,e),o=this.__entries__[n];return o&&o[1]},e.prototype.set=function(e,n){var o=t(this.__entries__,e);~o?this.__entries__[o][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,o=t(n,e);~o&&n.splice(o,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var n=0,o=this.__entries__;n0},t.prototype.connect_=function(){S&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),N?(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)},t.prototype.disconnect_=function(){S&&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)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,n=void 0===e?"":e;j.some(function(t){return!!~n.indexOf(t)})&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),D=function(t,e){for(var n=0,o=Object.keys(e);n0},t}(),K="undefined"!=typeof WeakMap?new WeakMap:new z,G=function t(e){if(!(this instanceof t))throw TypeError("Cannot call a class as a function.");if(!arguments.length)throw TypeError("1 argument required, but only 0 present.");var n=new F(e,T.getInstance(),this);K.set(this,n)};["observe","unobserve","disconnect"].forEach(function(t){G.prototype[t]=function(){var e;return(e=K.get(this))[t].apply(e,arguments)}});var $=void 0!==L.ResizeObserver?L.ResizeObserver:G,U=new Map,J=new $(function(t){t.forEach(function(t){var e,n=t.target;null===(e=U.get(n))||void 0===e||e.forEach(function(t){return t(n)})})}),Q=n(9130),tt=n(82349),te=n(53264),tn=n(18295),to=function(t){(0,te.Z)(n,t);var e=(0,tn.Z)(n);function n(){return(0,Q.Z)(this,n),e.apply(this,arguments)}return(0,tt.Z)(n,[{key:"render",value:function(){return this.props.children}}]),n}(r.Component),tr=r.forwardRef(function(t,e){var n=t.children,o=t.disabled,i=r.useRef(null),a=r.useRef(null),c=r.useContext(P),s="function"==typeof n,l=s?n(i):n,f=r.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),p=!s&&r.isValidElement(l)&&(0,m.Yr)(l),d=p?l.ref:null,h=(0,m.x1)(d,i),v=function(){var t;return(0,R.Z)(i.current)||(i.current&&"object"===(0,M.Z)(i.current)?(0,R.Z)(null===(t=i.current)||void 0===t?void 0:t.nativeElement):null)||(0,R.Z)(a.current)};r.useImperativeHandle(e,function(){return v()});var g=r.useRef(t);g.current=t;var b=r.useCallback(function(t){var e=g.current,n=e.onResize,o=e.data,r=t.getBoundingClientRect(),i=r.width,a=r.height,s=t.offsetWidth,l=t.offsetHeight,p=Math.floor(i),d=Math.floor(a);if(f.current.width!==p||f.current.height!==d||f.current.offsetWidth!==s||f.current.offsetHeight!==l){var h={width:p,height:d,offsetWidth:s,offsetHeight:l};f.current=h;var m=(0,u.Z)((0,u.Z)({},h),{},{offsetWidth:s===Math.round(i)?i:s,offsetHeight:l===Math.round(a)?a:l});null==c||c(m,t,o),n&&Promise.resolve().then(function(){n(m,t)})}},[]);return r.useEffect(function(){var t=v();return t&&!o&&(U.has(t)||(U.set(t,new Set),J.observe(t)),U.get(t).add(b)),function(){U.has(t)&&(U.get(t).delete(b),U.get(t).size||(J.unobserve(t),U.delete(t)))}},[i.current,o]),r.createElement(to,{ref:a},p?r.cloneElement(l,{ref:h}):l)}),ti=r.forwardRef(function(t,e){var n=t.children;return("function"==typeof n?[n]:(0,Z.Z)(n)).map(function(n,o){var i=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(o);return r.createElement(tr,(0,l.Z)({},t,{key:i,ref:0===o?e:void 0}),n)})});function ta(t){var e;return null==t||null===(e=t.getRootNode)||void 0===e?void 0:e.call(t)}function tc(t){return ta(t) instanceof ShadowRoot?ta(t):null}ti.Collection=function(t){var e=t.children,n=t.onBatchResize,o=r.useRef(0),i=r.useRef([]),a=r.useContext(P),c=r.useCallback(function(t,e,r){o.current+=1;var c=o.current;i.current.push({size:t,element:e,data:r}),Promise.resolve().then(function(){c===o.current&&(null==n||n(i.current),i.current=[])}),null==a||a(t,e,r)},[n,a]);return r.createElement(P.Provider,{value:c},e)};var ts=n(86066),tl=0,tu=(0,u.Z)({},i).useId,tf=tu?function(t){var e=tu();return t||e}:function(t){var e=r.useState("ssr-id"),n=(0,p.Z)(e,2),o=n[0],i=n[1];return(r.useEffect(function(){var t=tl;tl+=1,i("rc_unique_".concat(t))},[]),t)?t:o},tp=function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var t=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(t)||/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==t?void 0:t.substr(0,4))},td=n(10091);function th(t){var e=t.prefixCls,n=t.align,o=t.arrow,i=t.arrowPos,a=o||{},s=a.className,l=a.content,u=i.x,f=i.y,p=r.useRef();if(!n||!n.points)return null;var d={position:"absolute"};if(!1!==n.autoArrow){var h=n.points[0],m=n.points[1],v=h[0],g=h[1],b=m[0],y=m[1];v!==b&&["t","b"].includes(v)?"t"===v?d.top=0:d.bottom=0:d.top=void 0===f?0:f,g!==y&&["l","r"].includes(g)?"l"===g?d.left=0:d.right=0:d.left=void 0===u?0:u}return r.createElement("div",{ref:p,className:c()("".concat(e,"-arrow"),s),style:d},l)}function tm(t){var e=t.prefixCls,n=t.open,o=t.zIndex,i=t.mask,a=t.motion;return i?r.createElement(td.ZP,(0,l.Z)({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(t){var n=t.className;return r.createElement("div",{style:{zIndex:o},className:c()("".concat(e,"-mask"),n)})}):null}var tv=r.memo(function(t){return t.children},function(t,e){return e.cache}),tg=r.forwardRef(function(t,e){var n=t.popup,o=t.className,i=t.prefixCls,a=t.style,s=t.target,f=t.onVisibleChanged,d=t.open,h=t.keepDom,v=t.fresh,g=t.onClick,y=t.mask,w=t.arrow,E=t.arrowPos,x=t.align,_=t.motion,O=t.maskMotion,k=t.forceRender,C=t.getPopupContainer,Z=t.autoDestroy,M=t.portal,R=t.zIndex,P=t.onMouseEnter,z=t.onMouseLeave,S=t.onPointerEnter,L=t.ready,A=t.offsetX,j=t.offsetY,N=t.offsetR,T=t.offsetB,D=t.onAlign,B=t.onPrepare,H=t.stretch,I=t.targetWidth,V=t.targetHeight,W="function"==typeof n?n():n,Y=d||h,X=(null==C?void 0:C.length)>0,q=r.useState(!C||!X),F=(0,p.Z)(q,2),K=F[0],G=F[1];if((0,b.Z)(function(){!K&&X&&s&&G(!0)},[K,X,s]),!K)return null;var $="auto",U={left:"-1000vw",top:"-1000vh",right:$,bottom:$};if(L||!d){var J,Q=x.points,tt=x.dynamicInset||(null===(J=x._experimental)||void 0===J?void 0:J.dynamicInset),te=tt&&"r"===Q[0][1],tn=tt&&"b"===Q[0][0];te?(U.right=N,U.left=$):(U.left=A,U.right=$),tn?(U.bottom=T,U.top=$):(U.top=j,U.bottom=$)}var to={};return H&&(H.includes("height")&&V?to.height=V:H.includes("minHeight")&&V&&(to.minHeight=V),H.includes("width")&&I?to.width=I:H.includes("minWidth")&&I&&(to.minWidth=I)),d||(to.pointerEvents="none"),r.createElement(M,{open:k||Y,getContainer:C&&function(){return C(s)},autoDestroy:Z},r.createElement(tm,{prefixCls:i,open:d,zIndex:R,mask:y,motion:O}),r.createElement(ti,{onResize:D,disabled:!d},function(t){return r.createElement(td.ZP,(0,l.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:k,leavedClassName:"".concat(i,"-hidden")},_,{onAppearPrepare:B,onEnterPrepare:B,visible:d,onVisibleChanged:function(t){var e;null==_||null===(e=_.onVisibleChanged)||void 0===e||e.call(_,t),f(t)}}),function(n,s){var l=n.className,f=n.style,p=c()(i,l,o);return r.createElement("div",{ref:(0,m.sQ)(t,e,s),className:p,style:(0,u.Z)((0,u.Z)((0,u.Z)((0,u.Z)({"--arrow-x":"".concat(E.x||0,"px"),"--arrow-y":"".concat(E.y||0,"px")},U),to),f),{},{boxSizing:"border-box",zIndex:R},a),onMouseEnter:P,onMouseLeave:z,onPointerEnter:S,onClick:g},w&&r.createElement(th,{prefixCls:i,arrow:w,arrowPos:E,align:x}),r.createElement(tv,{cache:!d&&!v},W))})}))}),tb=r.forwardRef(function(t,e){var n=t.children,o=t.getTriggerDOMNode,i=(0,m.Yr)(n),a=r.useCallback(function(t){(0,m.mH)(e,o?o(t):t)},[o]),c=(0,m.x1)(a,n.ref);return i?r.cloneElement(n,{ref:c}):n}),ty=r.createContext(null);function tw(t){return t?Array.isArray(t)?t:[t]:[]}var tE=n(84989);function tx(t,e,n,o){return e||(n?{motionName:"".concat(t,"-").concat(n)}:o?{motionName:o}:null)}function t_(t){return t.ownerDocument.defaultView}function tO(t){for(var e=[],n=null==t?void 0:t.parentElement,o=["hidden","scroll","clip","auto"];n;){var r=t_(n).getComputedStyle(n);[r.overflowX,r.overflowY,r.overflow].some(function(t){return o.includes(t)})&&e.push(n),n=n.parentElement}return e}function tk(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(t)?e:t}function tC(t){return tk(parseFloat(t),0)}function tZ(t,e){var n=(0,u.Z)({},t);return(e||[]).forEach(function(t){if(!(t instanceof HTMLBodyElement||t instanceof HTMLHtmlElement)){var e=t_(t).getComputedStyle(t),o=e.overflow,r=e.overflowClipMargin,i=e.borderTopWidth,a=e.borderBottomWidth,c=e.borderLeftWidth,s=e.borderRightWidth,l=t.getBoundingClientRect(),u=t.offsetHeight,f=t.clientHeight,p=t.offsetWidth,d=t.clientWidth,h=tC(i),m=tC(a),v=tC(c),g=tC(s),b=tk(Math.round(l.width/p*1e3)/1e3),y=tk(Math.round(l.height/u*1e3)/1e3),w=h*y,E=v*b,x=0,_=0;if("clip"===o){var O=tC(r);x=O*b,_=O*y}var k=l.x+E-x,C=l.y+w-_,Z=k+l.width+2*x-E-g*b-(p-d-v-g)*b,M=C+l.height+2*_-w-m*y-(u-f-h-m)*y;n.left=Math.max(n.left,k),n.top=Math.max(n.top,C),n.right=Math.min(n.right,Z),n.bottom=Math.min(n.bottom,M)}}),n}function tM(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n="".concat(e),o=n.match(/^(.*)\%$/);return o?parseFloat(o[1])/100*t:parseFloat(n)}function tR(t,e){var n=(0,p.Z)(e||[],2),o=n[0],r=n[1];return[tM(t.width,o),tM(t.height,r)]}function tP(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[t[0],t[1]]}function tz(t,e){var n,o=e[0],r=e[1];return n="t"===o?t.y:"b"===o?t.y+t.height:t.y+t.height/2,{x:"l"===r?t.x:"r"===r?t.x+t.width:t.x+t.width/2,y:n}}function tS(t,e){var n={t:"b",b:"t",l:"r",r:"l"};return t.map(function(t,o){return o===e?n[t]||"c":t}).join("")}var tL=n(32126),tA=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"],tj=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:C;return r.forwardRef(function(e,n){var o,i,a,s,l,d,h,m,v,y,w,E,x,_,O,k,C,Z=e.prefixCls,M=void 0===Z?"rc-trigger-popup":Z,P=e.children,z=e.action,S=e.showAction,L=e.hideAction,A=e.popupVisible,j=e.defaultPopupVisible,N=e.onPopupVisibleChange,T=e.afterPopupVisibleChange,D=e.mouseEnterDelay,B=e.mouseLeaveDelay,H=void 0===B?.1:B,I=e.focusDelay,V=e.blurDelay,W=e.mask,Y=e.maskClosable,X=e.getPopupContainer,q=e.forceRender,F=e.autoDestroy,K=e.destroyPopupOnHide,G=e.popup,$=e.popupClassName,U=e.popupStyle,J=e.popupPlacement,Q=e.builtinPlacements,tt=void 0===Q?{}:Q,te=e.popupAlign,tn=e.zIndex,to=e.stretch,tr=e.getPopupClassNameFromAlign,ta=e.fresh,tl=e.alignPoint,tu=e.onPopupClick,td=e.onPopupAlign,th=e.arrow,tm=e.popupMotion,tv=e.maskMotion,tC=e.popupTransitionName,tM=e.popupAnimation,tj=e.maskTransitionName,tN=e.maskAnimation,tT=e.className,tD=e.getTriggerDOMNode,tB=(0,f.Z)(e,tA),tH=r.useState(!1),tI=(0,p.Z)(tH,2),tV=tI[0],tW=tI[1];(0,b.Z)(function(){tW(tp())},[]);var tY=r.useRef({}),tX=r.useContext(ty),tq=r.useMemo(function(){return{registerSubPopup:function(t,e){tY.current[t]=e,null==tX||tX.registerSubPopup(t,e)}}},[tX]),tF=tf(),tK=r.useState(null),tG=(0,p.Z)(tK,2),t$=tG[0],tU=tG[1],tJ=(0,ts.Z)(function(t){(0,R.S)(t)&&t$!==t&&tU(t),null==tX||tX.registerSubPopup(tF,t)}),tQ=r.useState(null),t0=(0,p.Z)(tQ,2),t1=t0[0],t2=t0[1],t4=r.useRef(null),t8=(0,ts.Z)(function(t){(0,R.S)(t)&&t1!==t&&(t2(t),t4.current=t)}),t5=r.Children.only(P),t6=(null==t5?void 0:t5.props)||{},t3={},t7=(0,ts.Z)(function(t){var e,n;return(null==t1?void 0:t1.contains(t))||(null===(e=tc(t1))||void 0===e?void 0:e.host)===t||t===t1||(null==t$?void 0:t$.contains(t))||(null===(n=tc(t$))||void 0===n?void 0:n.host)===t||t===t$||Object.values(tY.current).some(function(e){return(null==e?void 0:e.contains(t))||t===e})}),t9=tx(M,tm,tM,tC),et=tx(M,tv,tN,tj),ee=r.useState(j||!1),en=(0,p.Z)(ee,2),eo=en[0],er=en[1],ei=null!=A?A:eo,ea=(0,ts.Z)(function(t){void 0===A&&er(t)});(0,b.Z)(function(){er(A||!1)},[A]);var ec=r.useRef(ei);ec.current=ei;var es=r.useRef([]);es.current=[];var el=(0,ts.Z)(function(t){var e;ea(t),(null!==(e=es.current[es.current.length-1])&&void 0!==e?e:ei)!==t&&(es.current.push(t),null==N||N(t))}),eu=r.useRef(),ef=function(){clearTimeout(eu.current)},ep=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;ef(),0===e?el(t):eu.current=setTimeout(function(){el(t)},1e3*e)};r.useEffect(function(){return ef},[]);var ed=r.useState(!1),eh=(0,p.Z)(ed,2),em=eh[0],ev=eh[1];(0,b.Z)(function(t){(!t||ei)&&ev(!0)},[ei]);var eg=r.useState(null),eb=(0,p.Z)(eg,2),ey=eb[0],ew=eb[1],eE=r.useState([0,0]),ex=(0,p.Z)(eE,2),e_=ex[0],eO=ex[1],ek=function(t){eO([t.clientX,t.clientY])},eC=(o=tl?e_:t1,i=r.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:tt[J]||{}}),s=(a=(0,p.Z)(i,2))[0],l=a[1],d=r.useRef(0),h=r.useMemo(function(){return t$?tO(t$):[]},[t$]),m=r.useRef({}),ei||(m.current={}),v=(0,ts.Z)(function(){if(t$&&o&&ei){var t,e,n,r,i,a,c,s=t$.ownerDocument,f=t_(t$).getComputedStyle(t$),d=f.width,v=f.height,g=f.position,b=t$.style.left,y=t$.style.top,w=t$.style.right,E=t$.style.bottom,x=t$.style.overflow,_=(0,u.Z)((0,u.Z)({},tt[J]),te),O=s.createElement("div");if(null===(t=t$.parentElement)||void 0===t||t.appendChild(O),O.style.left="".concat(t$.offsetLeft,"px"),O.style.top="".concat(t$.offsetTop,"px"),O.style.position=g,O.style.height="".concat(t$.offsetHeight,"px"),O.style.width="".concat(t$.offsetWidth,"px"),t$.style.left="0",t$.style.top="0",t$.style.right="auto",t$.style.bottom="auto",t$.style.overflow="hidden",Array.isArray(o))n={x:o[0],y:o[1],width:0,height:0};else{var k=o.getBoundingClientRect();n={x:k.x,y:k.y,width:k.width,height:k.height}}var C=t$.getBoundingClientRect(),Z=s.documentElement,M=Z.clientWidth,P=Z.clientHeight,z=Z.scrollWidth,S=Z.scrollHeight,L=Z.scrollTop,A=Z.scrollLeft,j=C.height,N=C.width,T=n.height,D=n.width,B=_.htmlRegion,H="visible",I="visibleFirst";"scroll"!==B&&B!==I&&(B=H);var V=B===I,W=tZ({left:-A,top:-L,right:z-A,bottom:S-L},h),Y=tZ({left:0,top:0,right:M,bottom:P},h),X=B===H?Y:W,q=V?Y:X;t$.style.left="auto",t$.style.top="auto",t$.style.right="0",t$.style.bottom="0";var F=t$.getBoundingClientRect();t$.style.left=b,t$.style.top=y,t$.style.right=w,t$.style.bottom=E,t$.style.overflow=x,null===(e=t$.parentElement)||void 0===e||e.removeChild(O);var K=tk(Math.round(N/parseFloat(d)*1e3)/1e3),G=tk(Math.round(j/parseFloat(v)*1e3)/1e3);if(!(0===K||0===G||(0,R.S)(o)&&!(0,tE.Z)(o))){var $=_.offset,U=_.targetOffset,Q=tR(C,$),tn=(0,p.Z)(Q,2),to=tn[0],tr=tn[1],ti=tR(n,U),ta=(0,p.Z)(ti,2),tc=ta[0],ts=ta[1];n.x-=tc,n.y-=ts;var tl=_.points||[],tu=(0,p.Z)(tl,2),tf=tu[0],tp=tP(tu[1]),th=tP(tf),tm=tz(n,tp),tv=tz(C,th),tg=(0,u.Z)({},_),tb=tm.x-tv.x+to,ty=tm.y-tv.y+tr,tw=ee(tb,ty),tx=ee(tb,ty,Y),tO=tz(n,["t","l"]),tC=tz(C,["t","l"]),tM=tz(n,["b","r"]),tL=tz(C,["b","r"]),tA=_.overflow||{},tj=tA.adjustX,tN=tA.adjustY,tT=tA.shiftX,tD=tA.shiftY,tB=function(t){return"boolean"==typeof t?t:t>=0};en();var tH=tB(tN),tI=th[0]===tp[0];if(tH&&"t"===th[0]&&(i>q.bottom||m.current.bt)){var tV=ty;tI?tV-=j-T:tV=tO.y-tL.y-tr;var tW=ee(tb,tV),tY=ee(tb,tV,Y);tW>tw||tW===tw&&(!V||tY>=tx)?(m.current.bt=!0,ty=tV,tr=-tr,tg.points=[tS(th,0),tS(tp,0)]):m.current.bt=!1}if(tH&&"b"===th[0]&&(rtw||tq===tw&&(!V||tF>=tx)?(m.current.tb=!0,ty=tX,tr=-tr,tg.points=[tS(th,0),tS(tp,0)]):m.current.tb=!1}var tK=tB(tj),tG=th[1]===tp[1];if(tK&&"l"===th[1]&&(c>q.right||m.current.rl)){var tU=tb;tG?tU-=N-D:tU=tO.x-tL.x-to;var tJ=ee(tU,ty),tQ=ee(tU,ty,Y);tJ>tw||tJ===tw&&(!V||tQ>=tx)?(m.current.rl=!0,tb=tU,to=-to,tg.points=[tS(th,1),tS(tp,1)]):m.current.rl=!1}if(tK&&"r"===th[1]&&(atw||t1===tw&&(!V||t2>=tx)?(m.current.lr=!0,tb=t0,to=-to,tg.points=[tS(th,1),tS(tp,1)]):m.current.lr=!1}en();var t4=!0===tT?0:tT;"number"==typeof t4&&(aY.right&&(tb-=c-Y.right-to,n.x>Y.right-t4&&(tb+=n.x-Y.right+t4)));var t8=!0===tD?0:tD;"number"==typeof t8&&(rY.bottom&&(ty-=i-Y.bottom-tr,n.y>Y.bottom-t8&&(ty+=n.y-Y.bottom+t8)));var t5=C.x+tb,t6=C.y+ty,t3=n.x,t7=n.y;null==td||td(t$,tg);var t9=F.right-C.x-(tb+C.width),et=F.bottom-C.y-(ty+C.height);l({ready:!0,offsetX:tb/K,offsetY:ty/G,offsetR:t9/K,offsetB:et/G,arrowX:((Math.max(t5,t3)+Math.min(t5+N,t3+D))/2-t5)/K,arrowY:((Math.max(t6,t7)+Math.min(t6+j,t7+T))/2-t6)/G,scaleX:K,scaleY:G,align:tg})}function ee(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:X,o=C.x+t,r=C.y+e,i=Math.max(o,n.left),a=Math.max(r,n.top);return Math.max(0,(Math.min(o+N,n.right)-i)*(Math.min(r+j,n.bottom)-a))}function en(){i=(r=C.y+ty)+j,c=(a=C.x+tb)+N}}}),y=function(){l(function(t){return(0,u.Z)((0,u.Z)({},t),{},{ready:!1})})},(0,b.Z)(y,[J]),(0,b.Z)(function(){ei||y()},[ei]),[s.ready,s.offsetX,s.offsetY,s.offsetR,s.offsetB,s.arrowX,s.arrowY,s.scaleX,s.scaleY,s.align,function(){d.current+=1;var t=d.current;Promise.resolve().then(function(){d.current===t&&v()})}]),eZ=(0,p.Z)(eC,11),eM=eZ[0],eR=eZ[1],eP=eZ[2],ez=eZ[3],eS=eZ[4],eL=eZ[5],eA=eZ[6],ej=eZ[7],eN=eZ[8],eT=eZ[9],eD=eZ[10],eB=(w=void 0===z?"hover":z,r.useMemo(function(){var t=tw(null!=S?S:w),e=tw(null!=L?L:w),n=new Set(t),o=new Set(e);return tV&&(n.has("hover")&&(n.delete("hover"),n.add("click")),o.has("hover")&&(o.delete("hover"),o.add("click"))),[n,o]},[tV,w,S,L])),eH=(0,p.Z)(eB,2),eI=eH[0],eV=eH[1],eW=eI.has("click"),eY=eV.has("click")||eV.has("contextMenu"),eX=(0,ts.Z)(function(){em||eD()});E=function(){ec.current&&tl&&eY&&ep(!1)},(0,b.Z)(function(){if(ei&&t1&&t$){var t=tO(t1),e=tO(t$),n=t_(t$),o=new Set([n].concat((0,g.Z)(t),(0,g.Z)(e)));function r(){eX(),E()}return o.forEach(function(t){t.addEventListener("scroll",r,{passive:!0})}),n.addEventListener("resize",r,{passive:!0}),eX(),function(){o.forEach(function(t){t.removeEventListener("scroll",r),n.removeEventListener("resize",r)})}}},[ei,t1,t$]),(0,b.Z)(function(){eX()},[e_,J]),(0,b.Z)(function(){ei&&!(null!=tt&&tt[J])&&eX()},[JSON.stringify(te)]);var eq=r.useMemo(function(){var t=function(t,e,n,o){for(var r=n.points,i=Object.keys(t),a=0;a0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?t[0]===e[0]:t[0]===e[0]&&t[1]===e[1]}(null===(c=t[s])||void 0===c?void 0:c.points,r,o))return"".concat(e,"-placement-").concat(s)}return""}(tt,M,eT,tl);return c()(t,null==tr?void 0:tr(eT))},[eT,tr,tt,M,tl]);r.useImperativeHandle(n,function(){return{nativeElement:t4.current,forceAlign:eX}});var eF=r.useState(0),eK=(0,p.Z)(eF,2),eG=eK[0],e$=eK[1],eU=r.useState(0),eJ=(0,p.Z)(eU,2),eQ=eJ[0],e0=eJ[1],e1=function(){if(to&&t1){var t=t1.getBoundingClientRect();e$(t.width),e0(t.height)}};function e2(t,e,n,o){t3[t]=function(r){var i;null==o||o(r),ep(e,n);for(var a=arguments.length,c=Array(a>1?a-1:0),s=1;s1?n-1:0),r=1;r1?n-1:0),r=1;rvoid 0!==n?n:"".concat(t,"-").concat(e);var tK=n(80548);let tG=(t,e,n)=>{let{sizePopupArrow:o,arrowPolygon:r,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:c,calc:s}=t;return{pointerEvents:"none",width:o,height:o,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:o,height:s(o).div(2).equal(),background:e,clipPath:{_multi_value_:!0,value:[r,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:"0 0 ".concat((0,tK.bf)(c)," 0")},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}};function t$(t){let{contentRadius:e,limitVerticalRadius:n}=t,o=e>12?e+2:12;return{arrowOffsetHorizontal:o,arrowOffsetVertical:n?8:o}}let tU={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},tJ={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},tQ=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);var t0=n(63529);function t1(){}let t2=()=>{let t=()=>{};return t.deprecated=t1,t};var t4=n(56131),t8=n(31952),t5=n(56432);let t6=t=>({animationDuration:t,animationFillMode:"both"}),t3=t=>({animationDuration:t,animationFillMode:"both"}),t7=function(t,e,n,o){let r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i=r?"&":"";return{["\n ".concat(i).concat(t,"-enter,\n ").concat(i).concat(t,"-appear\n ")]:Object.assign(Object.assign({},t6(o)),{animationPlayState:"paused"}),["".concat(i).concat(t,"-leave")]:Object.assign(Object.assign({},t3(o)),{animationPlayState:"paused"}),["\n ".concat(i).concat(t,"-enter").concat(t,"-enter-active,\n ").concat(i).concat(t,"-appear").concat(t,"-appear-active\n ")]:{animationName:e,animationPlayState:"running"},["".concat(i).concat(t,"-leave").concat(t,"-leave-active")]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},t9=new tK.E4("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),et=new tK.E4("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),ee=new tK.E4("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),en=new tK.E4("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),eo=new tK.E4("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),er=new tK.E4("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),ei=new tK.E4("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),ea=new tK.E4("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),ec=new tK.E4("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),es={zoom:{inKeyframes:t9,outKeyframes:et},"zoom-big":{inKeyframes:ee,outKeyframes:en},"zoom-big-fast":{inKeyframes:ee,outKeyframes:en},"zoom-left":{inKeyframes:ei,outKeyframes:ea},"zoom-right":{inKeyframes:ec,outKeyframes:new tK.E4("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}})},"zoom-up":{inKeyframes:eo,outKeyframes:er},"zoom-down":{inKeyframes:new tK.E4("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),outKeyframes:new tK.E4("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}})}},el=(t,e)=>{let{antCls:n}=t,o="".concat(n,"-").concat(e),{inKeyframes:r,outKeyframes:i}=es[e];return[t7(o,r,i,"zoom-big-fast"===e?t.motionDurationFast:t.motionDurationMid),{["\n ".concat(o,"-enter,\n ").concat(o,"-appear\n ")]:{transform:"scale(0)",opacity:0,animationTimingFunction:t.motionEaseOutCirc,"&-prepare":{transform:"none"}},["".concat(o,"-leave")]:{animationTimingFunction:t.motionEaseInOutCirc}}]},eu=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];var ef=n(26845),ep=n(2291);let ed=t=>{var e;let{componentCls:n,tooltipMaxWidth:o,tooltipColor:r,tooltipBg:i,tooltipBorderRadius:a,zIndexPopup:c,controlHeight:s,boxShadowSecondary:l,paddingSM:u,paddingXS:f}=t;return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,t5.Wf)(t)),{position:"absolute",zIndex:c,display:"block",width:"max-content",maxWidth:o,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":i,["".concat(n,"-inner")]:{minWidth:s,minHeight:s,padding:"".concat((0,tK.bf)(t.calc(u).div(2).equal())," ").concat((0,tK.bf)(f)),color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:a,boxShadow:l,boxSizing:"border-box"},"&-placement-left,&-placement-leftTop,&-placement-leftBottom,&-placement-right,&-placement-rightTop,&-placement-rightBottom":{["".concat(n,"-inner")]:{borderRadius:t.min(a,8)}},["".concat(n,"-content")]:{position:"relative"}}),(e=(t,e)=>{let{darkColor:o}=e;return{["&".concat(n,"-").concat(t)]:{["".concat(n,"-inner")]:{backgroundColor:o},["".concat(n,"-arrow")]:{"--antd-arrow-background-color":o}}}},eu.reduce((n,o)=>{let r=t["".concat(o,"1")],i=t["".concat(o,"3")],a=t["".concat(o,"6")],c=t["".concat(o,"7")];return Object.assign(Object.assign({},n),e(o,{lightColor:r,lightBorderColor:i,darkColor:a,textColor:c}))},{}))),{"&-rtl":{direction:"rtl"}})},function(t,e,n){var o,r,i,a,c,s,l,u;let{componentCls:f,boxShadowPopoverArrow:p,arrowOffsetVertical:d,arrowOffsetHorizontal:h}=t,{arrowDistance:m=0,arrowPlacement:v={left:!0,right:!0,top:!0,bottom:!0}}={};return{[f]:Object.assign(Object.assign(Object.assign(Object.assign({["".concat(f,"-arrow")]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},tG(t,e,p)),{"&:before":{background:e}})]},(o=!!v.top,r={[["&-placement-top > ".concat(f,"-arrow"),"&-placement-topLeft > ".concat(f,"-arrow"),"&-placement-topRight > ".concat(f,"-arrow")].join(",")]:{bottom:m,transform:"translateY(100%) rotate(180deg)"},["&-placement-top > ".concat(f,"-arrow")]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},["&-placement-topLeft > ".concat(f,"-arrow")]:{left:{_skip_check_:!0,value:h}},["&-placement-topRight > ".concat(f,"-arrow")]:{right:{_skip_check_:!0,value:h}}},o?r:{})),(i=!!v.bottom,a={[["&-placement-bottom > ".concat(f,"-arrow"),"&-placement-bottomLeft > ".concat(f,"-arrow"),"&-placement-bottomRight > ".concat(f,"-arrow")].join(",")]:{top:m,transform:"translateY(-100%)"},["&-placement-bottom > ".concat(f,"-arrow")]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},["&-placement-bottomLeft > ".concat(f,"-arrow")]:{left:{_skip_check_:!0,value:h}},["&-placement-bottomRight > ".concat(f,"-arrow")]:{right:{_skip_check_:!0,value:h}}},i?a:{})),(c=!!v.left,s={[["&-placement-left > ".concat(f,"-arrow"),"&-placement-leftTop > ".concat(f,"-arrow"),"&-placement-leftBottom > ".concat(f,"-arrow")].join(",")]:{right:{_skip_check_:!0,value:m},transform:"translateX(100%) rotate(90deg)"},["&-placement-left > ".concat(f,"-arrow")]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},["&-placement-leftTop > ".concat(f,"-arrow")]:{top:d},["&-placement-leftBottom > ".concat(f,"-arrow")]:{bottom:d}},c?s:{})),(l=!!v.right,u={[["&-placement-right > ".concat(f,"-arrow"),"&-placement-rightTop > ".concat(f,"-arrow"),"&-placement-rightBottom > ".concat(f,"-arrow")].join(",")]:{left:{_skip_check_:!0,value:m},transform:"translateX(-100%) rotate(-90deg)"},["&-placement-right > ".concat(f,"-arrow")]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},["&-placement-rightTop > ".concat(f,"-arrow")]:{top:d},["&-placement-rightBottom > ".concat(f,"-arrow")]:{bottom:d}},l?u:{}))}}(t,"var(--antd-arrow-background-color)"),{["".concat(n,"-pure")]:{position:"relative",maxWidth:"none",margin:t.sizePopupArrow}}]},eh=t=>Object.assign(Object.assign({zIndexPopup:t.zIndexPopupBase+70},t$({contentRadius:t.borderRadius,limitVerticalRadius:!0})),function(t){let{sizePopupArrow:e,borderRadiusXS:n,borderRadiusOuter:o}=t,r=e/2,i=1*o/Math.sqrt(2),a=r-o*(1-1/Math.sqrt(2)),c=r-1/Math.sqrt(2)*n,s=o*(Math.sqrt(2)-1)+1/Math.sqrt(2)*n,l=2*r-c,u=2*r-i,f=2*r-0,p=r*Math.sqrt(2)+o*(Math.sqrt(2)-2),d=o*(Math.sqrt(2)-1),h="polygon(".concat(d,"px 100%, 50% ").concat(d,"px, ").concat(2*r-d,"px 100%, ").concat(d,"px 100%)");return{arrowShadowWidth:p,arrowPath:"path('M ".concat(0," ").concat(r," A ").concat(o," ").concat(o," 0 0 0 ").concat(i," ").concat(a," L ").concat(c," ").concat(s," A ").concat(n," ").concat(n," 0 0 1 ").concat(l," ").concat(s," L ").concat(u," ").concat(a," A ").concat(o," ").concat(o," 0 0 0 ").concat(f," ").concat(r," Z')"),arrowPolygon:h}}((0,ef.TS)(t,{borderRadiusOuter:Math.min(t.borderRadiusOuter,4)})));function em(t){let e=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return(0,ep.I$)("Tooltip",t=>{let{borderRadius:e,colorTextLightSolid:n,colorBgSpotlight:o}=t;return[ed((0,ef.TS)(t,{tooltipMaxWidth:250,tooltipColor:n,tooltipBorderRadius:e,tooltipBg:o})),el(t,"zoom-big-fast")]},eh,{resetStyle:!1,injectStyle:e})(t)}let ev=eu.map(t=>"".concat(t,"-inverse"));function eg(t,e){let n=function(t){let e=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return e?[].concat((0,g.Z)(ev),(0,g.Z)(eu)).includes(t):eu.includes(t)}(e),o=c()({["".concat(t,"-").concat(e)]:e&&n}),r={},i={};return e&&!n&&(r.background=e,i["--antd-arrow-background-color"]=e),{className:o,overlayStyle:r,arrowStyle:i}}var eb=function(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&0>e.indexOf(o)&&(n[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,o=Object.getOwnPropertySymbols(t);re.indexOf(o[r])&&Object.prototype.propertyIsEnumerable.call(t,o[r])&&(n[o[r]]=t[o[r]]);return n};let ey=r.forwardRef((t,e)=>{var n,o;let{prefixCls:i,openClassName:a,getTooltipContainer:s,overlayClassName:l,color:u,overlayInnerStyle:f,children:p,afterOpenChange:d,afterVisibleChange:h,destroyTooltipOnHide:m,arrow:v=!0,title:g,overlay:b,builtinPlacements:y,arrowPointAtCenter:w=!1,autoAdjustOverflow:E=!0}=t,x=!!v,[,_]=(0,tW.ZP)(),{getPopupContainer:O,getPrefixCls:k,direction:C}=r.useContext(t4.E_),Z=t2("Tooltip"),M=r.useRef(null),R=()=>{var t;null===(t=M.current)||void 0===t||t.forceAlign()};r.useImperativeHandle(e,()=>({forceAlign:R,forcePopupAlign:()=>{Z.deprecated(!1,"forcePopupAlign","forceAlign"),R()}}));let[P,z]=(0,tV.Z)(!1,{value:null!==(n=t.open)&&void 0!==n?n:t.visible,defaultValue:null!==(o=t.defaultOpen)&&void 0!==o?o:t.defaultVisible}),S=!g&&!b&&0!==g,L=r.useMemo(()=>{var t,e;let n=w;return"object"==typeof v&&(n=null!==(e=null!==(t=v.pointAtCenter)&&void 0!==t?t:v.arrowPointAtCenter)&&void 0!==e?e:w),y||function(t){let{arrowWidth:e,autoAdjustOverflow:n,arrowPointAtCenter:o,offset:r,borderRadius:i,visibleFirst:a}=t,c=e/2,s={};return Object.keys(tU).forEach(t=>{let l=Object.assign(Object.assign({},o&&tJ[t]||tU[t]),{offset:[0,0],dynamicInset:!0});switch(s[t]=l,tQ.has(t)&&(l.autoArrow=!1),t){case"top":case"topLeft":case"topRight":l.offset[1]=-c-r;break;case"bottom":case"bottomLeft":case"bottomRight":l.offset[1]=c+r;break;case"left":case"leftTop":case"leftBottom":l.offset[0]=-c-r;break;case"right":case"rightTop":case"rightBottom":l.offset[0]=c+r}let u=t$({contentRadius:i,limitVerticalRadius:!0});if(o)switch(t){case"topLeft":case"bottomLeft":l.offset[0]=-u.arrowOffsetHorizontal-c;break;case"topRight":case"bottomRight":l.offset[0]=u.arrowOffsetHorizontal+c;break;case"leftTop":case"rightTop":l.offset[1]=-u.arrowOffsetHorizontal-c;break;case"leftBottom":case"rightBottom":l.offset[1]=u.arrowOffsetHorizontal+c}l.overflow=function(t,e,n,o){if(!1===o)return{adjustX:!1,adjustY:!1};let r={};switch(t){case"top":case"bottom":r.shiftX=2*e.arrowOffsetHorizontal+n,r.shiftY=!0,r.adjustY=!0;break;case"left":case"right":r.shiftY=2*e.arrowOffsetVertical+n,r.shiftX=!0,r.adjustX=!0}let i=Object.assign(Object.assign({},r),o&&"object"==typeof o?o:{});return i.shiftX||(i.adjustX=!0),i.shiftY||(i.adjustY=!0),i}(t,u,e,n),a&&(l.htmlRegion="visibleFirst")}),s}({arrowPointAtCenter:n,autoAdjustOverflow:E,arrowWidth:x?_.sizePopupArrow:0,borderRadius:_.borderRadius,offset:_.marginXXS,visibleFirst:!0})},[w,v,y,_]),A=r.useMemo(()=>0===g?g:b||g||"",[b,g]),j=r.createElement(t8.BR,null,"function"==typeof A?A():A),{getPopupContainer:N,placement:T="top",mouseEnterDelay:D=.1,mouseLeaveDelay:B=.1,overlayStyle:H,rootClassName:I}=t,V=eb(t,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),W=k("tooltip",i),Y=k(),X=t["data-popover-inject"],q=P;"open"in t||"visible"in t||!S||(q=!1);let F=(0,t0.l$)(p)&&!(0,t0.M2)(p)?p:r.createElement("span",null,p),K=F.props,G=K.className&&"string"!=typeof K.className?K.className:c()(K.className,a||"".concat(W,"-open")),[$,U,J]=em(W,!X),Q=eg(W,u),tt=Q.arrowStyle,te=Object.assign(Object.assign({},f),Q.overlayStyle),tn=c()(l,{["".concat(W,"-rtl")]:"rtl"===C},Q.className,I,U,J),[to,tr]=function(t,e){let[,n]=(0,tW.ZP)(),o=r.useContext(tY);if(void 0!==e)return[e,e];let i=null!=o?o:0;return t in tX?(i+=(o?0:n.zIndexPopupBase)+tX[t],i=Math.min(i,n.zIndexPopupBase+1e3)):i+=tq[t],[void 0===o?e:i,i]}("Tooltip",V.zIndex),ti=r.createElement(tI,Object.assign({},V,{zIndex:to,showArrow:x,placement:T,mouseEnterDelay:D,mouseLeaveDelay:B,prefixCls:W,overlayClassName:tn,overlayStyle:Object.assign(Object.assign({},tt),H),getTooltipContainer:N||s||O,ref:M,builtinPlacements:L,overlay:j,visible:q,onVisibleChange:e=>{var n,o;z(!S&&e),S||(null===(n=t.onOpenChange)||void 0===n||n.call(t,e),null===(o=t.onVisibleChange)||void 0===o||o.call(t,e))},afterVisibleChange:null!=d?d:h,overlayInnerStyle:te,arrowContent:r.createElement("span",{className:"".concat(W,"-arrow-content")}),motion:{motionName:tF(Y,"zoom-big-fast",t.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!m}),q?(0,t0.Tm)(F,{className:G}):F);return $(r.createElement(tY.Provider,{value:tr},ti))});ey._InternalPanelDoNotUseOrYouWillBeFired=t=>{let{prefixCls:e,className:n,placement:o="top",title:i,color:a,overlayInnerStyle:l}=t,{getPrefixCls:u}=r.useContext(t4.E_),f=u("tooltip",e),[p,d,h]=em(f),m=eg(f,a),v=m.arrowStyle,g=Object.assign(Object.assign({},l),m.overlayStyle),b=c()(d,h,f,"".concat(f,"-pure"),"".concat(f,"-placement-").concat(o),n,m.className);return p(r.createElement("div",{className:b,style:v},r.createElement("div",{className:"".concat(f,"-arrow")}),r.createElement(s,Object.assign({},t,{className:d,prefixCls:f,overlayInnerStyle:g}),i)))};var ew=ey}}]); \ No newline at end of file diff --git a/_next/static/chunks/795-b544068780b87a9b.js b/_next/static/chunks/795-b544068780b87a9b.js deleted file mode 100644 index 86a9849..0000000 --- a/_next/static/chunks/795-b544068780b87a9b.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[795],{70587:function(t,e,n){n.d(e,{Z:function(){return c}});var o=n(97605),r=n(50959),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M380 704h264c4.4 0 8-3.6 8-8v-84c0-4.4-3.6-8-8-8h-40c-4.4 0-8 3.6-8 8v36H428v-36c0-4.4-3.6-8-8-8h-40c-4.4 0-8 3.6-8 8v84c0 4.4 3.6 8 8 8zm340-123a40 40 0 1080 0 40 40 0 10-80 0zm239-167.6L935.3 372a8 8 0 00-10.9-2.9l-50.7 29.6-78.3-216.2a63.9 63.9 0 00-60.9-44.4H301.2c-34.7 0-65.5 22.4-76.2 55.5l-74.6 205.2-50.8-29.6a8 8 0 00-10.9 2.9L65 413.4c-2.2 3.8-.9 8.6 2.9 10.8l60.4 35.2-14.5 40c-1.2 3.2-1.8 6.6-1.8 10v348.2c0 15.7 11.8 28.4 26.3 28.4h67.6c12.3 0 23-9.3 25.6-22.3l7.7-37.7h545.6l7.7 37.7c2.7 13 13.3 22.3 25.6 22.3h67.6c14.5 0 26.3-12.7 26.3-28.4V509.4c0-3.4-.6-6.8-1.8-10l-14.5-40 60.3-35.2a8 8 0 003-10.8zM840 517v237H184V517l15.6-43h624.8l15.6 43zM292.7 218.1l.5-1.3.4-1.3c1.1-3.3 4.1-5.5 7.6-5.5h427.6l75.4 208H220l72.7-199.9zM224 581a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"car",theme:"outlined"},a=n(76062),c=r.forwardRef(function(t,e){return r.createElement(a.Z,(0,o.Z)({},t,{ref:e,icon:i}))})},19873:function(t,e,n){n.d(e,{Z:function(){return c}});var o=n(97605),r=n(50959),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 736c0-111.6-65.4-208-160-252.9V317.3c0-15.1-5.3-29.7-15.1-41.2L536.5 95.4C530.1 87.8 521 84 512 84s-18.1 3.8-24.5 11.4L335.1 276.1a63.97 63.97 0 00-15.1 41.2v165.8C225.4 528 160 624.4 160 736h156.5c-2.3 7.2-3.5 15-3.5 23.8 0 22.1 7.6 43.7 21.4 60.8a97.2 97.2 0 0043.1 30.6c23.1 54 75.6 88.8 134.5 88.8 29.1 0 57.3-8.6 81.4-24.8 23.6-15.8 41.9-37.9 53-64a97 97 0 0043.1-30.5 97.52 97.52 0 0021.4-60.8c0-8.4-1.1-16.4-3.1-23.8H864zM762.3 621.4c9.4 14.6 17 30.3 22.5 46.6H700V558.7a211.6 211.6 0 0162.3 62.7zM388 483.1V318.8l124-147 124 147V668H388V483.1zM239.2 668c5.5-16.3 13.1-32 22.5-46.6 16.3-25.2 37.5-46.5 62.3-62.7V668h-84.8zm388.9 116.2c-5.2 3-11.2 4.2-17.1 3.4l-19.5-2.4-2.8 19.4c-5.4 37.9-38.4 66.5-76.7 66.5-38.3 0-71.3-28.6-76.7-66.5l-2.8-19.5-19.5 2.5a27.7 27.7 0 01-17.1-3.5c-8.7-5-14.1-14.3-14.1-24.4 0-10.6 5.9-19.4 14.6-23.8h231.3c8.8 4.5 14.6 13.3 14.6 23.8-.1 10.2-5.5 19.6-14.2 24.5zM464 400a48 48 0 1096 0 48 48 0 10-96 0z"}}]},name:"rocket",theme:"outlined"},a=n(76062),c=r.forwardRef(function(t,e){return r.createElement(a.Z,(0,o.Z)({},t,{ref:e,icon:i}))})},581:function(t,e,n){n.d(e,{Z:function(){return c}});var o=n(97605),r=n(50959),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M931.4 498.9L94.9 79.5c-3.4-1.7-7.3-2.1-11-1.2a15.99 15.99 0 00-11.7 19.3l86.2 352.2c1.3 5.3 5.2 9.6 10.4 11.3l147.7 50.7-147.6 50.7c-5.2 1.8-9.1 6-10.3 11.3L72.2 926.5c-.9 3.7-.5 7.6 1.2 10.9 3.9 7.9 13.5 11.1 21.5 7.2l836.5-417c3.1-1.5 5.6-4.1 7.2-7.1 3.9-8 .7-17.6-7.2-21.6zM170.8 826.3l50.3-205.6 295.2-101.3c2.3-.8 4.2-2.6 5-5 1.4-4.2-.8-8.7-5-10.2L221.1 403 171 198.2l628 314.9-628.2 313.2z"}}]},name:"send",theme:"outlined"},a=n(76062),c=r.forwardRef(function(t,e){return r.createElement(a.Z,(0,o.Z)({},t,{ref:e,icon:i}))})},67832:function(t,e,n){n.d(e,{Z:function(){return c}});var o=n(97605),r=n(50959),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M288 421a48 48 0 1096 0 48 48 0 10-96 0zm352 0a48 48 0 1096 0 48 48 0 10-96 0zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm263 711c-34.2 34.2-74 61-118.3 79.8C611 874.2 562.3 884 512 884c-50.3 0-99-9.8-144.8-29.2A370.4 370.4 0 01248.9 775c-34.2-34.2-61-74-79.8-118.3C149.8 611 140 562.3 140 512s9.8-99 29.2-144.8A370.4 370.4 0 01249 248.9c34.2-34.2 74-61 118.3-79.8C413 149.8 461.7 140 512 140c50.3 0 99 9.8 144.8 29.2A370.4 370.4 0 01775.1 249c34.2 34.2 61 74 79.8 118.3C874.2 413 884 461.7 884 512s-9.8 99-29.2 144.8A368.89 368.89 0 01775 775zM664 533h-48.1c-4.2 0-7.8 3.2-8.1 7.4C604 589.9 562.5 629 512 629s-92.1-39.1-95.8-88.6c-.3-4.2-3.9-7.4-8.1-7.4H360a8 8 0 00-8 8.4c4.4 84.3 74.5 151.6 160 151.6s155.6-67.3 160-151.6a8 8 0 00-8-8.4z"}}]},name:"smile",theme:"outlined"},a=n(76062),c=r.forwardRef(function(t,e){return r.createElement(a.Z,(0,o.Z)({},t,{ref:e,icon:i}))})},31654:function(t,e,n){n.d(e,{Z:function(){return ew}});var o,r=n(50959),i=n.t(r,2),a=n(82187),c=n.n(a);function s(t){var e=t.children,n=t.prefixCls,o=t.id,i=t.overlayInnerStyle,a=t.className,s=t.style;return r.createElement("div",{className:c()("".concat(n,"-content"),a),style:s},r.createElement("div",{className:"".concat(n,"-inner"),id:o,role:"tooltip",style:i},"function"==typeof e?e():e))}var l=n(97605),u=n(12309),f=n(10582),p=n(76729),d=n(10422),h=n(18021);n(77151);var m=n(57539),v=r.createContext(null),g=n(1874),b=n(5074),y=[],w=n(89130);function E(t){var e=t.match(/^(.*)px$/),n=Number(null==e?void 0:e[1]);return Number.isNaN(n)?function(t){if("undefined"==typeof document)return 0;if(void 0===o){var e=document.createElement("div");e.style.width="100%",e.style.height="200px";var n=document.createElement("div"),r=n.style;r.position="absolute",r.top="0",r.left="0",r.pointerEvents="none",r.visibility="hidden",r.width="200px",r.height="150px",r.overflow="hidden",n.appendChild(e),document.body.appendChild(n);var i=e.offsetWidth;n.style.overflow="scroll";var a=e.offsetWidth;i===a&&(a=n.clientWidth),document.body.removeChild(n),o=i-a}return o}():n}var x="rc-util-locker-".concat(Date.now()),_=0,O=!1,k=function(t){return!1!==t&&((0,h.Z)()&&t?"string"==typeof t?document.querySelector(t):"function"==typeof t?t():t:null)},C=r.forwardRef(function(t,e){var n,o,i,a,c=t.open,s=t.autoLock,l=t.getContainer,u=(t.debug,t.autoDestroy),f=void 0===u||u,C=t.children,Z=r.useState(c),M=(0,p.Z)(Z,2),R=M[0],P=M[1],z=R||c;r.useEffect(function(){(f||c)&&P(c)},[c,f]);var S=r.useState(function(){return k(l)}),L=(0,p.Z)(S,2),A=L[0],j=L[1];r.useEffect(function(){var t=k(l);j(null!=t?t:null)});var N=function(t,e){var n=r.useState(function(){return(0,h.Z)()?document.createElement("div"):null}),o=(0,p.Z)(n,1)[0],i=r.useRef(!1),a=r.useContext(v),c=r.useState(y),s=(0,p.Z)(c,2),l=s[0],u=s[1],f=a||(i.current?void 0:function(t){u(function(e){return[t].concat((0,g.Z)(e))})});function d(){o.parentElement||document.body.appendChild(o),i.current=!0}function m(){var t;null===(t=o.parentElement)||void 0===t||t.removeChild(o),i.current=!1}return(0,b.Z)(function(){return t?a?a(d):d():m(),m},[t]),(0,b.Z)(function(){l.length&&(l.forEach(function(t){return t()}),u(y))},[l]),[o,f]}(z&&!A,0),T=(0,p.Z)(N,2),D=T[0],B=T[1],H=null!=A?A:D;n=!!(s&&c&&(0,h.Z)()&&(H===D||H===document.body)),o=r.useState(function(){return _+=1,"".concat(x,"_").concat(_)}),i=(0,p.Z)(o,1)[0],(0,b.Z)(function(){if(n){var t=function(t){if("undefined"==typeof document||!t||!(t instanceof Element))return{width:0,height:0};var e=getComputedStyle(t,"::-webkit-scrollbar"),n=e.width,o=e.height;return{width:E(n),height:E(o)}}(document.body).width,e=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;(0,w.hq)("\nhtml body {\n overflow-y: hidden;\n ".concat(e?"width: calc(100% - ".concat(t,"px);"):"","\n}"),i)}else(0,w.jL)(i);return function(){(0,w.jL)(i)}},[n,i]);var I=null;C&&(0,m.Yr)(C)&&e&&(I=C.ref);var V=(0,m.x1)(I,e);if(!z||!(0,h.Z)()||void 0===A)return null;var W=!1===H||("boolean"==typeof a&&(O=a),O),Y=C;return e&&(Y=r.cloneElement(C,{ref:V})),r.createElement(v.Provider,{value:B},W?Y:(0,d.createPortal)(Y,H))}),Z=n(44112),M=n(26407),R=n(61026),P=r.createContext(null),z=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var n=-1;return t.some(function(t,o){return t[0]===e&&(n=o,!0)}),n}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var n=t(this.__entries__,e),o=this.__entries__[n];return o&&o[1]},e.prototype.set=function(e,n){var o=t(this.__entries__,e);~o?this.__entries__[o][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,o=t(n,e);~o&&n.splice(o,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var n=0,o=this.__entries__;n0},t.prototype.connect_=function(){S&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),N?(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)},t.prototype.disconnect_=function(){S&&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)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,n=void 0===e?"":e;j.some(function(t){return!!~n.indexOf(t)})&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),D=function(t,e){for(var n=0,o=Object.keys(e);n0},t}(),K="undefined"!=typeof WeakMap?new WeakMap:new z,G=function t(e){if(!(this instanceof t))throw TypeError("Cannot call a class as a function.");if(!arguments.length)throw TypeError("1 argument required, but only 0 present.");var n=new F(e,T.getInstance(),this);K.set(this,n)};["observe","unobserve","disconnect"].forEach(function(t){G.prototype[t]=function(){var e;return(e=K.get(this))[t].apply(e,arguments)}});var $=void 0!==L.ResizeObserver?L.ResizeObserver:G,U=new Map,J=new $(function(t){t.forEach(function(t){var e,n=t.target;null===(e=U.get(n))||void 0===e||e.forEach(function(t){return t(n)})})}),Q=n(9130),tt=n(82349),te=n(53264),tn=n(18295),to=function(t){(0,te.Z)(n,t);var e=(0,tn.Z)(n);function n(){return(0,Q.Z)(this,n),e.apply(this,arguments)}return(0,tt.Z)(n,[{key:"render",value:function(){return this.props.children}}]),n}(r.Component),tr=r.forwardRef(function(t,e){var n=t.children,o=t.disabled,i=r.useRef(null),a=r.useRef(null),c=r.useContext(P),s="function"==typeof n,l=s?n(i):n,f=r.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),p=!s&&r.isValidElement(l)&&(0,m.Yr)(l),d=p?l.ref:null,h=(0,m.x1)(d,i),v=function(){var t;return(0,R.Z)(i.current)||(i.current&&"object"===(0,M.Z)(i.current)?(0,R.Z)(null===(t=i.current)||void 0===t?void 0:t.nativeElement):null)||(0,R.Z)(a.current)};r.useImperativeHandle(e,function(){return v()});var g=r.useRef(t);g.current=t;var b=r.useCallback(function(t){var e=g.current,n=e.onResize,o=e.data,r=t.getBoundingClientRect(),i=r.width,a=r.height,s=t.offsetWidth,l=t.offsetHeight,p=Math.floor(i),d=Math.floor(a);if(f.current.width!==p||f.current.height!==d||f.current.offsetWidth!==s||f.current.offsetHeight!==l){var h={width:p,height:d,offsetWidth:s,offsetHeight:l};f.current=h;var m=(0,u.Z)((0,u.Z)({},h),{},{offsetWidth:s===Math.round(i)?i:s,offsetHeight:l===Math.round(a)?a:l});null==c||c(m,t,o),n&&Promise.resolve().then(function(){n(m,t)})}},[]);return r.useEffect(function(){var t=v();return t&&!o&&(U.has(t)||(U.set(t,new Set),J.observe(t)),U.get(t).add(b)),function(){U.has(t)&&(U.get(t).delete(b),U.get(t).size||(J.unobserve(t),U.delete(t)))}},[i.current,o]),r.createElement(to,{ref:a},p?r.cloneElement(l,{ref:h}):l)}),ti=r.forwardRef(function(t,e){var n=t.children;return("function"==typeof n?[n]:(0,Z.Z)(n)).map(function(n,o){var i=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(o);return r.createElement(tr,(0,l.Z)({},t,{key:i,ref:0===o?e:void 0}),n)})});function ta(t){var e;return null==t||null===(e=t.getRootNode)||void 0===e?void 0:e.call(t)}function tc(t){return ta(t) instanceof ShadowRoot?ta(t):null}ti.Collection=function(t){var e=t.children,n=t.onBatchResize,o=r.useRef(0),i=r.useRef([]),a=r.useContext(P),c=r.useCallback(function(t,e,r){o.current+=1;var c=o.current;i.current.push({size:t,element:e,data:r}),Promise.resolve().then(function(){c===o.current&&(null==n||n(i.current),i.current=[])}),null==a||a(t,e,r)},[n,a]);return r.createElement(P.Provider,{value:c},e)};var ts=n(86066),tl=0,tu=(0,u.Z)({},i).useId,tf=tu?function(t){var e=tu();return t||e}:function(t){var e=r.useState("ssr-id"),n=(0,p.Z)(e,2),o=n[0],i=n[1];return(r.useEffect(function(){var t=tl;tl+=1,i("rc_unique_".concat(t))},[]),t)?t:o},tp=function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var t=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(t)||/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==t?void 0:t.substr(0,4))},td=n(10091);function th(t){var e=t.prefixCls,n=t.align,o=t.arrow,i=t.arrowPos,a=o||{},s=a.className,l=a.content,u=i.x,f=i.y,p=r.useRef();if(!n||!n.points)return null;var d={position:"absolute"};if(!1!==n.autoArrow){var h=n.points[0],m=n.points[1],v=h[0],g=h[1],b=m[0],y=m[1];v!==b&&["t","b"].includes(v)?"t"===v?d.top=0:d.bottom=0:d.top=void 0===f?0:f,g!==y&&["l","r"].includes(g)?"l"===g?d.left=0:d.right=0:d.left=void 0===u?0:u}return r.createElement("div",{ref:p,className:c()("".concat(e,"-arrow"),s),style:d},l)}function tm(t){var e=t.prefixCls,n=t.open,o=t.zIndex,i=t.mask,a=t.motion;return i?r.createElement(td.ZP,(0,l.Z)({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(t){var n=t.className;return r.createElement("div",{style:{zIndex:o},className:c()("".concat(e,"-mask"),n)})}):null}var tv=r.memo(function(t){return t.children},function(t,e){return e.cache}),tg=r.forwardRef(function(t,e){var n=t.popup,o=t.className,i=t.prefixCls,a=t.style,s=t.target,f=t.onVisibleChanged,d=t.open,h=t.keepDom,v=t.fresh,g=t.onClick,y=t.mask,w=t.arrow,E=t.arrowPos,x=t.align,_=t.motion,O=t.maskMotion,k=t.forceRender,C=t.getPopupContainer,Z=t.autoDestroy,M=t.portal,R=t.zIndex,P=t.onMouseEnter,z=t.onMouseLeave,S=t.onPointerEnter,L=t.ready,A=t.offsetX,j=t.offsetY,N=t.offsetR,T=t.offsetB,D=t.onAlign,B=t.onPrepare,H=t.stretch,I=t.targetWidth,V=t.targetHeight,W="function"==typeof n?n():n,Y=d||h,X=(null==C?void 0:C.length)>0,q=r.useState(!C||!X),F=(0,p.Z)(q,2),K=F[0],G=F[1];if((0,b.Z)(function(){!K&&X&&s&&G(!0)},[K,X,s]),!K)return null;var $="auto",U={left:"-1000vw",top:"-1000vh",right:$,bottom:$};if(L||!d){var J,Q=x.points,tt=x.dynamicInset||(null===(J=x._experimental)||void 0===J?void 0:J.dynamicInset),te=tt&&"r"===Q[0][1],tn=tt&&"b"===Q[0][0];te?(U.right=N,U.left=$):(U.left=A,U.right=$),tn?(U.bottom=T,U.top=$):(U.top=j,U.bottom=$)}var to={};return H&&(H.includes("height")&&V?to.height=V:H.includes("minHeight")&&V&&(to.minHeight=V),H.includes("width")&&I?to.width=I:H.includes("minWidth")&&I&&(to.minWidth=I)),d||(to.pointerEvents="none"),r.createElement(M,{open:k||Y,getContainer:C&&function(){return C(s)},autoDestroy:Z},r.createElement(tm,{prefixCls:i,open:d,zIndex:R,mask:y,motion:O}),r.createElement(ti,{onResize:D,disabled:!d},function(t){return r.createElement(td.ZP,(0,l.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:k,leavedClassName:"".concat(i,"-hidden")},_,{onAppearPrepare:B,onEnterPrepare:B,visible:d,onVisibleChanged:function(t){var e;null==_||null===(e=_.onVisibleChanged)||void 0===e||e.call(_,t),f(t)}}),function(n,s){var l=n.className,f=n.style,p=c()(i,l,o);return r.createElement("div",{ref:(0,m.sQ)(t,e,s),className:p,style:(0,u.Z)((0,u.Z)((0,u.Z)((0,u.Z)({"--arrow-x":"".concat(E.x||0,"px"),"--arrow-y":"".concat(E.y||0,"px")},U),to),f),{},{boxSizing:"border-box",zIndex:R},a),onMouseEnter:P,onMouseLeave:z,onPointerEnter:S,onClick:g},w&&r.createElement(th,{prefixCls:i,arrow:w,arrowPos:E,align:x}),r.createElement(tv,{cache:!d&&!v},W))})}))}),tb=r.forwardRef(function(t,e){var n=t.children,o=t.getTriggerDOMNode,i=(0,m.Yr)(n),a=r.useCallback(function(t){(0,m.mH)(e,o?o(t):t)},[o]),c=(0,m.x1)(a,n.ref);return i?r.cloneElement(n,{ref:c}):n}),ty=r.createContext(null);function tw(t){return t?Array.isArray(t)?t:[t]:[]}var tE=n(84989);function tx(t,e,n,o){return e||(n?{motionName:"".concat(t,"-").concat(n)}:o?{motionName:o}:null)}function t_(t){return t.ownerDocument.defaultView}function tO(t){for(var e=[],n=null==t?void 0:t.parentElement,o=["hidden","scroll","clip","auto"];n;){var r=t_(n).getComputedStyle(n);[r.overflowX,r.overflowY,r.overflow].some(function(t){return o.includes(t)})&&e.push(n),n=n.parentElement}return e}function tk(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(t)?e:t}function tC(t){return tk(parseFloat(t),0)}function tZ(t,e){var n=(0,u.Z)({},t);return(e||[]).forEach(function(t){if(!(t instanceof HTMLBodyElement||t instanceof HTMLHtmlElement)){var e=t_(t).getComputedStyle(t),o=e.overflow,r=e.overflowClipMargin,i=e.borderTopWidth,a=e.borderBottomWidth,c=e.borderLeftWidth,s=e.borderRightWidth,l=t.getBoundingClientRect(),u=t.offsetHeight,f=t.clientHeight,p=t.offsetWidth,d=t.clientWidth,h=tC(i),m=tC(a),v=tC(c),g=tC(s),b=tk(Math.round(l.width/p*1e3)/1e3),y=tk(Math.round(l.height/u*1e3)/1e3),w=h*y,E=v*b,x=0,_=0;if("clip"===o){var O=tC(r);x=O*b,_=O*y}var k=l.x+E-x,C=l.y+w-_,Z=k+l.width+2*x-E-g*b-(p-d-v-g)*b,M=C+l.height+2*_-w-m*y-(u-f-h-m)*y;n.left=Math.max(n.left,k),n.top=Math.max(n.top,C),n.right=Math.min(n.right,Z),n.bottom=Math.min(n.bottom,M)}}),n}function tM(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n="".concat(e),o=n.match(/^(.*)\%$/);return o?parseFloat(o[1])/100*t:parseFloat(n)}function tR(t,e){var n=(0,p.Z)(e||[],2),o=n[0],r=n[1];return[tM(t.width,o),tM(t.height,r)]}function tP(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[t[0],t[1]]}function tz(t,e){var n,o=e[0],r=e[1];return n="t"===o?t.y:"b"===o?t.y+t.height:t.y+t.height/2,{x:"l"===r?t.x:"r"===r?t.x+t.width:t.x+t.width/2,y:n}}function tS(t,e){var n={t:"b",b:"t",l:"r",r:"l"};return t.map(function(t,o){return o===e?n[t]||"c":t}).join("")}var tL=n(32126),tA=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"],tj=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:C;return r.forwardRef(function(e,n){var o,i,a,s,l,d,h,m,v,y,w,E,x,_,O,k,C,Z=e.prefixCls,M=void 0===Z?"rc-trigger-popup":Z,P=e.children,z=e.action,S=e.showAction,L=e.hideAction,A=e.popupVisible,j=e.defaultPopupVisible,N=e.onPopupVisibleChange,T=e.afterPopupVisibleChange,D=e.mouseEnterDelay,B=e.mouseLeaveDelay,H=void 0===B?.1:B,I=e.focusDelay,V=e.blurDelay,W=e.mask,Y=e.maskClosable,X=e.getPopupContainer,q=e.forceRender,F=e.autoDestroy,K=e.destroyPopupOnHide,G=e.popup,$=e.popupClassName,U=e.popupStyle,J=e.popupPlacement,Q=e.builtinPlacements,tt=void 0===Q?{}:Q,te=e.popupAlign,tn=e.zIndex,to=e.stretch,tr=e.getPopupClassNameFromAlign,ta=e.fresh,tl=e.alignPoint,tu=e.onPopupClick,td=e.onPopupAlign,th=e.arrow,tm=e.popupMotion,tv=e.maskMotion,tC=e.popupTransitionName,tM=e.popupAnimation,tj=e.maskTransitionName,tN=e.maskAnimation,tT=e.className,tD=e.getTriggerDOMNode,tB=(0,f.Z)(e,tA),tH=r.useState(!1),tI=(0,p.Z)(tH,2),tV=tI[0],tW=tI[1];(0,b.Z)(function(){tW(tp())},[]);var tY=r.useRef({}),tX=r.useContext(ty),tq=r.useMemo(function(){return{registerSubPopup:function(t,e){tY.current[t]=e,null==tX||tX.registerSubPopup(t,e)}}},[tX]),tF=tf(),tK=r.useState(null),tG=(0,p.Z)(tK,2),t$=tG[0],tU=tG[1],tJ=(0,ts.Z)(function(t){(0,R.S)(t)&&t$!==t&&tU(t),null==tX||tX.registerSubPopup(tF,t)}),tQ=r.useState(null),t0=(0,p.Z)(tQ,2),t1=t0[0],t2=t0[1],t4=r.useRef(null),t8=(0,ts.Z)(function(t){(0,R.S)(t)&&t1!==t&&(t2(t),t4.current=t)}),t5=r.Children.only(P),t6=(null==t5?void 0:t5.props)||{},t3={},t7=(0,ts.Z)(function(t){var e,n;return(null==t1?void 0:t1.contains(t))||(null===(e=tc(t1))||void 0===e?void 0:e.host)===t||t===t1||(null==t$?void 0:t$.contains(t))||(null===(n=tc(t$))||void 0===n?void 0:n.host)===t||t===t$||Object.values(tY.current).some(function(e){return(null==e?void 0:e.contains(t))||t===e})}),t9=tx(M,tm,tM,tC),et=tx(M,tv,tN,tj),ee=r.useState(j||!1),en=(0,p.Z)(ee,2),eo=en[0],er=en[1],ei=null!=A?A:eo,ea=(0,ts.Z)(function(t){void 0===A&&er(t)});(0,b.Z)(function(){er(A||!1)},[A]);var ec=r.useRef(ei);ec.current=ei;var es=r.useRef([]);es.current=[];var el=(0,ts.Z)(function(t){var e;ea(t),(null!==(e=es.current[es.current.length-1])&&void 0!==e?e:ei)!==t&&(es.current.push(t),null==N||N(t))}),eu=r.useRef(),ef=function(){clearTimeout(eu.current)},ep=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;ef(),0===e?el(t):eu.current=setTimeout(function(){el(t)},1e3*e)};r.useEffect(function(){return ef},[]);var ed=r.useState(!1),eh=(0,p.Z)(ed,2),em=eh[0],ev=eh[1];(0,b.Z)(function(t){(!t||ei)&&ev(!0)},[ei]);var eg=r.useState(null),eb=(0,p.Z)(eg,2),ey=eb[0],ew=eb[1],eE=r.useState([0,0]),ex=(0,p.Z)(eE,2),e_=ex[0],eO=ex[1],ek=function(t){eO([t.clientX,t.clientY])},eC=(o=tl?e_:t1,i=r.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:tt[J]||{}}),s=(a=(0,p.Z)(i,2))[0],l=a[1],d=r.useRef(0),h=r.useMemo(function(){return t$?tO(t$):[]},[t$]),m=r.useRef({}),ei||(m.current={}),v=(0,ts.Z)(function(){if(t$&&o&&ei){var t,e,n,r,i,a,c,s=t$.ownerDocument,f=t_(t$).getComputedStyle(t$),d=f.width,v=f.height,g=f.position,b=t$.style.left,y=t$.style.top,w=t$.style.right,E=t$.style.bottom,x=t$.style.overflow,_=(0,u.Z)((0,u.Z)({},tt[J]),te),O=s.createElement("div");if(null===(t=t$.parentElement)||void 0===t||t.appendChild(O),O.style.left="".concat(t$.offsetLeft,"px"),O.style.top="".concat(t$.offsetTop,"px"),O.style.position=g,O.style.height="".concat(t$.offsetHeight,"px"),O.style.width="".concat(t$.offsetWidth,"px"),t$.style.left="0",t$.style.top="0",t$.style.right="auto",t$.style.bottom="auto",t$.style.overflow="hidden",Array.isArray(o))n={x:o[0],y:o[1],width:0,height:0};else{var k=o.getBoundingClientRect();n={x:k.x,y:k.y,width:k.width,height:k.height}}var C=t$.getBoundingClientRect(),Z=s.documentElement,M=Z.clientWidth,P=Z.clientHeight,z=Z.scrollWidth,S=Z.scrollHeight,L=Z.scrollTop,A=Z.scrollLeft,j=C.height,N=C.width,T=n.height,D=n.width,B=_.htmlRegion,H="visible",I="visibleFirst";"scroll"!==B&&B!==I&&(B=H);var V=B===I,W=tZ({left:-A,top:-L,right:z-A,bottom:S-L},h),Y=tZ({left:0,top:0,right:M,bottom:P},h),X=B===H?Y:W,q=V?Y:X;t$.style.left="auto",t$.style.top="auto",t$.style.right="0",t$.style.bottom="0";var F=t$.getBoundingClientRect();t$.style.left=b,t$.style.top=y,t$.style.right=w,t$.style.bottom=E,t$.style.overflow=x,null===(e=t$.parentElement)||void 0===e||e.removeChild(O);var K=tk(Math.round(N/parseFloat(d)*1e3)/1e3),G=tk(Math.round(j/parseFloat(v)*1e3)/1e3);if(!(0===K||0===G||(0,R.S)(o)&&!(0,tE.Z)(o))){var $=_.offset,U=_.targetOffset,Q=tR(C,$),tn=(0,p.Z)(Q,2),to=tn[0],tr=tn[1],ti=tR(n,U),ta=(0,p.Z)(ti,2),tc=ta[0],ts=ta[1];n.x-=tc,n.y-=ts;var tl=_.points||[],tu=(0,p.Z)(tl,2),tf=tu[0],tp=tP(tu[1]),th=tP(tf),tm=tz(n,tp),tv=tz(C,th),tg=(0,u.Z)({},_),tb=tm.x-tv.x+to,ty=tm.y-tv.y+tr,tw=ee(tb,ty),tx=ee(tb,ty,Y),tO=tz(n,["t","l"]),tC=tz(C,["t","l"]),tM=tz(n,["b","r"]),tL=tz(C,["b","r"]),tA=_.overflow||{},tj=tA.adjustX,tN=tA.adjustY,tT=tA.shiftX,tD=tA.shiftY,tB=function(t){return"boolean"==typeof t?t:t>=0};en();var tH=tB(tN),tI=th[0]===tp[0];if(tH&&"t"===th[0]&&(i>q.bottom||m.current.bt)){var tV=ty;tI?tV-=j-T:tV=tO.y-tL.y-tr;var tW=ee(tb,tV),tY=ee(tb,tV,Y);tW>tw||tW===tw&&(!V||tY>=tx)?(m.current.bt=!0,ty=tV,tr=-tr,tg.points=[tS(th,0),tS(tp,0)]):m.current.bt=!1}if(tH&&"b"===th[0]&&(rtw||tq===tw&&(!V||tF>=tx)?(m.current.tb=!0,ty=tX,tr=-tr,tg.points=[tS(th,0),tS(tp,0)]):m.current.tb=!1}var tK=tB(tj),tG=th[1]===tp[1];if(tK&&"l"===th[1]&&(c>q.right||m.current.rl)){var tU=tb;tG?tU-=N-D:tU=tO.x-tL.x-to;var tJ=ee(tU,ty),tQ=ee(tU,ty,Y);tJ>tw||tJ===tw&&(!V||tQ>=tx)?(m.current.rl=!0,tb=tU,to=-to,tg.points=[tS(th,1),tS(tp,1)]):m.current.rl=!1}if(tK&&"r"===th[1]&&(atw||t1===tw&&(!V||t2>=tx)?(m.current.lr=!0,tb=t0,to=-to,tg.points=[tS(th,1),tS(tp,1)]):m.current.lr=!1}en();var t4=!0===tT?0:tT;"number"==typeof t4&&(aY.right&&(tb-=c-Y.right-to,n.x>Y.right-t4&&(tb+=n.x-Y.right+t4)));var t8=!0===tD?0:tD;"number"==typeof t8&&(rY.bottom&&(ty-=i-Y.bottom-tr,n.y>Y.bottom-t8&&(ty+=n.y-Y.bottom+t8)));var t5=C.x+tb,t6=C.y+ty,t3=n.x,t7=n.y;null==td||td(t$,tg);var t9=F.right-C.x-(tb+C.width),et=F.bottom-C.y-(ty+C.height);l({ready:!0,offsetX:tb/K,offsetY:ty/G,offsetR:t9/K,offsetB:et/G,arrowX:((Math.max(t5,t3)+Math.min(t5+N,t3+D))/2-t5)/K,arrowY:((Math.max(t6,t7)+Math.min(t6+j,t7+T))/2-t6)/G,scaleX:K,scaleY:G,align:tg})}function ee(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:X,o=C.x+t,r=C.y+e,i=Math.max(o,n.left),a=Math.max(r,n.top);return Math.max(0,(Math.min(o+N,n.right)-i)*(Math.min(r+j,n.bottom)-a))}function en(){i=(r=C.y+ty)+j,c=(a=C.x+tb)+N}}}),y=function(){l(function(t){return(0,u.Z)((0,u.Z)({},t),{},{ready:!1})})},(0,b.Z)(y,[J]),(0,b.Z)(function(){ei||y()},[ei]),[s.ready,s.offsetX,s.offsetY,s.offsetR,s.offsetB,s.arrowX,s.arrowY,s.scaleX,s.scaleY,s.align,function(){d.current+=1;var t=d.current;Promise.resolve().then(function(){d.current===t&&v()})}]),eZ=(0,p.Z)(eC,11),eM=eZ[0],eR=eZ[1],eP=eZ[2],ez=eZ[3],eS=eZ[4],eL=eZ[5],eA=eZ[6],ej=eZ[7],eN=eZ[8],eT=eZ[9],eD=eZ[10],eB=(w=void 0===z?"hover":z,r.useMemo(function(){var t=tw(null!=S?S:w),e=tw(null!=L?L:w),n=new Set(t),o=new Set(e);return tV&&(n.has("hover")&&(n.delete("hover"),n.add("click")),o.has("hover")&&(o.delete("hover"),o.add("click"))),[n,o]},[tV,w,S,L])),eH=(0,p.Z)(eB,2),eI=eH[0],eV=eH[1],eW=eI.has("click"),eY=eV.has("click")||eV.has("contextMenu"),eX=(0,ts.Z)(function(){em||eD()});E=function(){ec.current&&tl&&eY&&ep(!1)},(0,b.Z)(function(){if(ei&&t1&&t$){var t=tO(t1),e=tO(t$),n=t_(t$),o=new Set([n].concat((0,g.Z)(t),(0,g.Z)(e)));function r(){eX(),E()}return o.forEach(function(t){t.addEventListener("scroll",r,{passive:!0})}),n.addEventListener("resize",r,{passive:!0}),eX(),function(){o.forEach(function(t){t.removeEventListener("scroll",r),n.removeEventListener("resize",r)})}}},[ei,t1,t$]),(0,b.Z)(function(){eX()},[e_,J]),(0,b.Z)(function(){ei&&!(null!=tt&&tt[J])&&eX()},[JSON.stringify(te)]);var eq=r.useMemo(function(){var t=function(t,e,n,o){for(var r=n.points,i=Object.keys(t),a=0;a0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?t[0]===e[0]:t[0]===e[0]&&t[1]===e[1]}(null===(c=t[s])||void 0===c?void 0:c.points,r,o))return"".concat(e,"-placement-").concat(s)}return""}(tt,M,eT,tl);return c()(t,null==tr?void 0:tr(eT))},[eT,tr,tt,M,tl]);r.useImperativeHandle(n,function(){return{nativeElement:t4.current,forceAlign:eX}});var eF=r.useState(0),eK=(0,p.Z)(eF,2),eG=eK[0],e$=eK[1],eU=r.useState(0),eJ=(0,p.Z)(eU,2),eQ=eJ[0],e0=eJ[1],e1=function(){if(to&&t1){var t=t1.getBoundingClientRect();e$(t.width),e0(t.height)}};function e2(t,e,n,o){t3[t]=function(r){var i;null==o||o(r),ep(e,n);for(var a=arguments.length,c=Array(a>1?a-1:0),s=1;s1?n-1:0),r=1;r1?n-1:0),r=1;rvoid 0!==n?n:"".concat(t,"-").concat(e);var tK=n(80548);let tG=(t,e,n)=>{let{sizePopupArrow:o,arrowPolygon:r,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:c,calc:s}=t;return{pointerEvents:"none",width:o,height:o,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:o,height:s(o).div(2).equal(),background:e,clipPath:{_multi_value_:!0,value:[r,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:"0 0 ".concat((0,tK.bf)(c)," 0")},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}};function t$(t){let{contentRadius:e,limitVerticalRadius:n}=t,o=e>12?e+2:12;return{arrowOffsetHorizontal:o,arrowOffsetVertical:n?8:o}}let tU={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},tJ={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},tQ=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);var t0=n(28964);function t1(){}let t2=()=>{let t=()=>{};return t.deprecated=t1,t};var t4=n(78740),t8=n(89688),t5=n(94647);let t6=t=>({animationDuration:t,animationFillMode:"both"}),t3=t=>({animationDuration:t,animationFillMode:"both"}),t7=function(t,e,n,o){let r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i=r?"&":"";return{["\n ".concat(i).concat(t,"-enter,\n ").concat(i).concat(t,"-appear\n ")]:Object.assign(Object.assign({},t6(o)),{animationPlayState:"paused"}),["".concat(i).concat(t,"-leave")]:Object.assign(Object.assign({},t3(o)),{animationPlayState:"paused"}),["\n ".concat(i).concat(t,"-enter").concat(t,"-enter-active,\n ").concat(i).concat(t,"-appear").concat(t,"-appear-active\n ")]:{animationName:e,animationPlayState:"running"},["".concat(i).concat(t,"-leave").concat(t,"-leave-active")]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},t9=new tK.E4("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),et=new tK.E4("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),ee=new tK.E4("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),en=new tK.E4("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),eo=new tK.E4("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),er=new tK.E4("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),ei=new tK.E4("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),ea=new tK.E4("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),ec=new tK.E4("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),es={zoom:{inKeyframes:t9,outKeyframes:et},"zoom-big":{inKeyframes:ee,outKeyframes:en},"zoom-big-fast":{inKeyframes:ee,outKeyframes:en},"zoom-left":{inKeyframes:ei,outKeyframes:ea},"zoom-right":{inKeyframes:ec,outKeyframes:new tK.E4("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}})},"zoom-up":{inKeyframes:eo,outKeyframes:er},"zoom-down":{inKeyframes:new tK.E4("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),outKeyframes:new tK.E4("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}})}},el=(t,e)=>{let{antCls:n}=t,o="".concat(n,"-").concat(e),{inKeyframes:r,outKeyframes:i}=es[e];return[t7(o,r,i,"zoom-big-fast"===e?t.motionDurationFast:t.motionDurationMid),{["\n ".concat(o,"-enter,\n ").concat(o,"-appear\n ")]:{transform:"scale(0)",opacity:0,animationTimingFunction:t.motionEaseOutCirc,"&-prepare":{transform:"none"}},["".concat(o,"-leave")]:{animationTimingFunction:t.motionEaseInOutCirc}}]},eu=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];var ef=n(3751),ep=n(40170);let ed=t=>{var e;let{componentCls:n,tooltipMaxWidth:o,tooltipColor:r,tooltipBg:i,tooltipBorderRadius:a,zIndexPopup:c,controlHeight:s,boxShadowSecondary:l,paddingSM:u,paddingXS:f}=t;return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,t5.Wf)(t)),{position:"absolute",zIndex:c,display:"block",width:"max-content",maxWidth:o,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":i,["".concat(n,"-inner")]:{minWidth:s,minHeight:s,padding:"".concat((0,tK.bf)(t.calc(u).div(2).equal())," ").concat((0,tK.bf)(f)),color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:a,boxShadow:l,boxSizing:"border-box"},"&-placement-left,&-placement-leftTop,&-placement-leftBottom,&-placement-right,&-placement-rightTop,&-placement-rightBottom":{["".concat(n,"-inner")]:{borderRadius:t.min(a,8)}},["".concat(n,"-content")]:{position:"relative"}}),(e=(t,e)=>{let{darkColor:o}=e;return{["&".concat(n,"-").concat(t)]:{["".concat(n,"-inner")]:{backgroundColor:o},["".concat(n,"-arrow")]:{"--antd-arrow-background-color":o}}}},eu.reduce((n,o)=>{let r=t["".concat(o,"1")],i=t["".concat(o,"3")],a=t["".concat(o,"6")],c=t["".concat(o,"7")];return Object.assign(Object.assign({},n),e(o,{lightColor:r,lightBorderColor:i,darkColor:a,textColor:c}))},{}))),{"&-rtl":{direction:"rtl"}})},function(t,e,n){var o,r,i,a,c,s,l,u;let{componentCls:f,boxShadowPopoverArrow:p,arrowOffsetVertical:d,arrowOffsetHorizontal:h}=t,{arrowDistance:m=0,arrowPlacement:v={left:!0,right:!0,top:!0,bottom:!0}}={};return{[f]:Object.assign(Object.assign(Object.assign(Object.assign({["".concat(f,"-arrow")]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},tG(t,e,p)),{"&:before":{background:e}})]},(o=!!v.top,r={[["&-placement-top > ".concat(f,"-arrow"),"&-placement-topLeft > ".concat(f,"-arrow"),"&-placement-topRight > ".concat(f,"-arrow")].join(",")]:{bottom:m,transform:"translateY(100%) rotate(180deg)"},["&-placement-top > ".concat(f,"-arrow")]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},["&-placement-topLeft > ".concat(f,"-arrow")]:{left:{_skip_check_:!0,value:h}},["&-placement-topRight > ".concat(f,"-arrow")]:{right:{_skip_check_:!0,value:h}}},o?r:{})),(i=!!v.bottom,a={[["&-placement-bottom > ".concat(f,"-arrow"),"&-placement-bottomLeft > ".concat(f,"-arrow"),"&-placement-bottomRight > ".concat(f,"-arrow")].join(",")]:{top:m,transform:"translateY(-100%)"},["&-placement-bottom > ".concat(f,"-arrow")]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},["&-placement-bottomLeft > ".concat(f,"-arrow")]:{left:{_skip_check_:!0,value:h}},["&-placement-bottomRight > ".concat(f,"-arrow")]:{right:{_skip_check_:!0,value:h}}},i?a:{})),(c=!!v.left,s={[["&-placement-left > ".concat(f,"-arrow"),"&-placement-leftTop > ".concat(f,"-arrow"),"&-placement-leftBottom > ".concat(f,"-arrow")].join(",")]:{right:{_skip_check_:!0,value:m},transform:"translateX(100%) rotate(90deg)"},["&-placement-left > ".concat(f,"-arrow")]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},["&-placement-leftTop > ".concat(f,"-arrow")]:{top:d},["&-placement-leftBottom > ".concat(f,"-arrow")]:{bottom:d}},c?s:{})),(l=!!v.right,u={[["&-placement-right > ".concat(f,"-arrow"),"&-placement-rightTop > ".concat(f,"-arrow"),"&-placement-rightBottom > ".concat(f,"-arrow")].join(",")]:{left:{_skip_check_:!0,value:m},transform:"translateX(-100%) rotate(-90deg)"},["&-placement-right > ".concat(f,"-arrow")]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},["&-placement-rightTop > ".concat(f,"-arrow")]:{top:d},["&-placement-rightBottom > ".concat(f,"-arrow")]:{bottom:d}},l?u:{}))}}(t,"var(--antd-arrow-background-color)"),{["".concat(n,"-pure")]:{position:"relative",maxWidth:"none",margin:t.sizePopupArrow}}]},eh=t=>Object.assign(Object.assign({zIndexPopup:t.zIndexPopupBase+70},t$({contentRadius:t.borderRadius,limitVerticalRadius:!0})),function(t){let{sizePopupArrow:e,borderRadiusXS:n,borderRadiusOuter:o}=t,r=e/2,i=1*o/Math.sqrt(2),a=r-o*(1-1/Math.sqrt(2)),c=r-1/Math.sqrt(2)*n,s=o*(Math.sqrt(2)-1)+1/Math.sqrt(2)*n,l=2*r-c,u=2*r-i,f=2*r-0,p=r*Math.sqrt(2)+o*(Math.sqrt(2)-2),d=o*(Math.sqrt(2)-1),h="polygon(".concat(d,"px 100%, 50% ").concat(d,"px, ").concat(2*r-d,"px 100%, ").concat(d,"px 100%)");return{arrowShadowWidth:p,arrowPath:"path('M ".concat(0," ").concat(r," A ").concat(o," ").concat(o," 0 0 0 ").concat(i," ").concat(a," L ").concat(c," ").concat(s," A ").concat(n," ").concat(n," 0 0 1 ").concat(l," ").concat(s," L ").concat(u," ").concat(a," A ").concat(o," ").concat(o," 0 0 0 ").concat(f," ").concat(r," Z')"),arrowPolygon:h}}((0,ef.TS)(t,{borderRadiusOuter:Math.min(t.borderRadiusOuter,4)})));function em(t){let e=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return(0,ep.I$)("Tooltip",t=>{let{borderRadius:e,colorTextLightSolid:n,colorBgSpotlight:o}=t;return[ed((0,ef.TS)(t,{tooltipMaxWidth:250,tooltipColor:n,tooltipBorderRadius:e,tooltipBg:o})),el(t,"zoom-big-fast")]},eh,{resetStyle:!1,injectStyle:e})(t)}let ev=eu.map(t=>"".concat(t,"-inverse"));function eg(t,e){let n=function(t){let e=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return e?[].concat((0,g.Z)(ev),(0,g.Z)(eu)).includes(t):eu.includes(t)}(e),o=c()({["".concat(t,"-").concat(e)]:e&&n}),r={},i={};return e&&!n&&(r.background=e,i["--antd-arrow-background-color"]=e),{className:o,overlayStyle:r,arrowStyle:i}}var eb=function(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&0>e.indexOf(o)&&(n[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,o=Object.getOwnPropertySymbols(t);re.indexOf(o[r])&&Object.prototype.propertyIsEnumerable.call(t,o[r])&&(n[o[r]]=t[o[r]]);return n};let ey=r.forwardRef((t,e)=>{var n,o;let{prefixCls:i,openClassName:a,getTooltipContainer:s,overlayClassName:l,color:u,overlayInnerStyle:f,children:p,afterOpenChange:d,afterVisibleChange:h,destroyTooltipOnHide:m,arrow:v=!0,title:g,overlay:b,builtinPlacements:y,arrowPointAtCenter:w=!1,autoAdjustOverflow:E=!0}=t,x=!!v,[,_]=(0,tW.ZP)(),{getPopupContainer:O,getPrefixCls:k,direction:C}=r.useContext(t4.E_),Z=t2("Tooltip"),M=r.useRef(null),R=()=>{var t;null===(t=M.current)||void 0===t||t.forceAlign()};r.useImperativeHandle(e,()=>({forceAlign:R,forcePopupAlign:()=>{Z.deprecated(!1,"forcePopupAlign","forceAlign"),R()}}));let[P,z]=(0,tV.Z)(!1,{value:null!==(n=t.open)&&void 0!==n?n:t.visible,defaultValue:null!==(o=t.defaultOpen)&&void 0!==o?o:t.defaultVisible}),S=!g&&!b&&0!==g,L=r.useMemo(()=>{var t,e;let n=w;return"object"==typeof v&&(n=null!==(e=null!==(t=v.pointAtCenter)&&void 0!==t?t:v.arrowPointAtCenter)&&void 0!==e?e:w),y||function(t){let{arrowWidth:e,autoAdjustOverflow:n,arrowPointAtCenter:o,offset:r,borderRadius:i,visibleFirst:a}=t,c=e/2,s={};return Object.keys(tU).forEach(t=>{let l=Object.assign(Object.assign({},o&&tJ[t]||tU[t]),{offset:[0,0],dynamicInset:!0});switch(s[t]=l,tQ.has(t)&&(l.autoArrow=!1),t){case"top":case"topLeft":case"topRight":l.offset[1]=-c-r;break;case"bottom":case"bottomLeft":case"bottomRight":l.offset[1]=c+r;break;case"left":case"leftTop":case"leftBottom":l.offset[0]=-c-r;break;case"right":case"rightTop":case"rightBottom":l.offset[0]=c+r}let u=t$({contentRadius:i,limitVerticalRadius:!0});if(o)switch(t){case"topLeft":case"bottomLeft":l.offset[0]=-u.arrowOffsetHorizontal-c;break;case"topRight":case"bottomRight":l.offset[0]=u.arrowOffsetHorizontal+c;break;case"leftTop":case"rightTop":l.offset[1]=-u.arrowOffsetHorizontal-c;break;case"leftBottom":case"rightBottom":l.offset[1]=u.arrowOffsetHorizontal+c}l.overflow=function(t,e,n,o){if(!1===o)return{adjustX:!1,adjustY:!1};let r={};switch(t){case"top":case"bottom":r.shiftX=2*e.arrowOffsetHorizontal+n,r.shiftY=!0,r.adjustY=!0;break;case"left":case"right":r.shiftY=2*e.arrowOffsetVertical+n,r.shiftX=!0,r.adjustX=!0}let i=Object.assign(Object.assign({},r),o&&"object"==typeof o?o:{});return i.shiftX||(i.adjustX=!0),i.shiftY||(i.adjustY=!0),i}(t,u,e,n),a&&(l.htmlRegion="visibleFirst")}),s}({arrowPointAtCenter:n,autoAdjustOverflow:E,arrowWidth:x?_.sizePopupArrow:0,borderRadius:_.borderRadius,offset:_.marginXXS,visibleFirst:!0})},[w,v,y,_]),A=r.useMemo(()=>0===g?g:b||g||"",[b,g]),j=r.createElement(t8.BR,null,"function"==typeof A?A():A),{getPopupContainer:N,placement:T="top",mouseEnterDelay:D=.1,mouseLeaveDelay:B=.1,overlayStyle:H,rootClassName:I}=t,V=eb(t,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),W=k("tooltip",i),Y=k(),X=t["data-popover-inject"],q=P;"open"in t||"visible"in t||!S||(q=!1);let F=(0,t0.l$)(p)&&!(0,t0.M2)(p)?p:r.createElement("span",null,p),K=F.props,G=K.className&&"string"!=typeof K.className?K.className:c()(K.className,a||"".concat(W,"-open")),[$,U,J]=em(W,!X),Q=eg(W,u),tt=Q.arrowStyle,te=Object.assign(Object.assign({},f),Q.overlayStyle),tn=c()(l,{["".concat(W,"-rtl")]:"rtl"===C},Q.className,I,U,J),[to,tr]=function(t,e){let[,n]=(0,tW.ZP)(),o=r.useContext(tY);if(void 0!==e)return[e,e];let i=null!=o?o:0;return t in tX?(i+=(o?0:n.zIndexPopupBase)+tX[t],i=Math.min(i,n.zIndexPopupBase+1e3)):i+=tq[t],[void 0===o?e:i,i]}("Tooltip",V.zIndex),ti=r.createElement(tI,Object.assign({},V,{zIndex:to,showArrow:x,placement:T,mouseEnterDelay:D,mouseLeaveDelay:B,prefixCls:W,overlayClassName:tn,overlayStyle:Object.assign(Object.assign({},tt),H),getTooltipContainer:N||s||O,ref:M,builtinPlacements:L,overlay:j,visible:q,onVisibleChange:e=>{var n,o;z(!S&&e),S||(null===(n=t.onOpenChange)||void 0===n||n.call(t,e),null===(o=t.onVisibleChange)||void 0===o||o.call(t,e))},afterVisibleChange:null!=d?d:h,overlayInnerStyle:te,arrowContent:r.createElement("span",{className:"".concat(W,"-arrow-content")}),motion:{motionName:tF(Y,"zoom-big-fast",t.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!m}),q?(0,t0.Tm)(F,{className:G}):F);return $(r.createElement(tY.Provider,{value:tr},ti))});ey._InternalPanelDoNotUseOrYouWillBeFired=t=>{let{prefixCls:e,className:n,placement:o="top",title:i,color:a,overlayInnerStyle:l}=t,{getPrefixCls:u}=r.useContext(t4.E_),f=u("tooltip",e),[p,d,h]=em(f),m=eg(f,a),v=m.arrowStyle,g=Object.assign(Object.assign({},l),m.overlayStyle),b=c()(d,h,f,"".concat(f,"-pure"),"".concat(f,"-placement-").concat(o),n,m.className);return p(r.createElement("div",{className:b,style:v},r.createElement("div",{className:"".concat(f,"-arrow")}),r.createElement(s,Object.assign({},t,{className:d,prefixCls:f,overlayInnerStyle:g}),i)))};var ew=ey}}]); \ No newline at end of file diff --git a/_next/static/chunks/871-25028a527fe0ca11.js b/_next/static/chunks/871-25028a527fe0ca11.js new file mode 100644 index 0000000..97bd078 --- /dev/null +++ b/_next/static/chunks/871-25028a527fe0ca11.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[871],{82972:function(t,e,n){t.exports={default:n(15680),__esModule:!0}},92452:function(t,e,n){t.exports={default:n(41969),__esModule:!0}},17866:function(t,e,n){t.exports={default:n(57446),__esModule:!0}},1437:function(t,e,n){t.exports={default:n(74752),__esModule:!0}},3432:function(t,e,n){t.exports={default:n(52005),__esModule:!0}},30631:function(t,e,n){t.exports={default:n(12544),__esModule:!0}},82864:function(t,e){"use strict";e.__esModule=!0,e.default=function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}},97559:function(t,e,n){"use strict";e.__esModule=!0;var r,a=(r=n(17866))&&r.__esModule?r:{default:r};e.default=function(){function t(t,e){for(var n=0;n=0)&&Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}},73006:function(t,e,n){"use strict";e.__esModule=!0;var r,a=(r=n(27239))&&r.__esModule?r:{default:r};e.default=function(t,e){if(!t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&((void 0===e?"undefined":(0,a.default)(e))==="object"||"function"==typeof e)?e:t}},27239:function(t,e,n){"use strict";e.__esModule=!0;var r=i(n(30631)),a=i(n(3432)),o="function"==typeof a.default&&"symbol"==typeof r.default?function(t){return typeof t}:function(t){return t&&"function"==typeof a.default&&t.constructor===a.default&&t!==a.default.prototype?"symbol":typeof t};function i(t){return t&&t.__esModule?t:{default:t}}e.default="function"==typeof a.default&&"symbol"===o(r.default)?function(t){return void 0===t?"undefined":o(t)}:function(t){return t&&"function"==typeof a.default&&t.constructor===a.default&&t!==a.default.prototype?"symbol":void 0===t?"undefined":o(t)}},15680:function(t,e,n){n(38476),t.exports=n(37213).Object.assign},41969:function(t,e,n){n(23012);var r=n(37213).Object;t.exports=function(t,e){return r.create(t,e)}},57446:function(t,e,n){n(94730);var r=n(37213).Object;t.exports=function(t,e,n){return r.defineProperty(t,e,n)}},74752:function(t,e,n){n(49760),t.exports=n(37213).Object.setPrototypeOf},52005:function(t,e,n){n(22503),n(71810),n(51015),n(60107),t.exports=n(37213).Symbol},12544:function(t,e,n){n(97109),n(16917),t.exports=n(62911).f("iterator")},10527:function(t){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},74631:function(t){t.exports=function(){}},96202:function(t,e,n){var r=n(69480);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},57936:function(t,e,n){var r=n(34202),a=n(61826),o=n(48856);t.exports=function(t){return function(e,n,i){var s,l=r(e),u=a(l.length),c=o(i,u);if(t&&n!=n){for(;u>c;)if((s=l[c++])!=s)return!0}else for(;u>c;c++)if((t||c in l)&&l[c]===n)return t||c||0;return!t&&-1}}},60866:function(t){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},37213:function(t){var e=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=e)},38893:function(t,e,n){var r=n(10527);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,a){return t.call(e,n,r,a)}}return function(){return t.apply(e,arguments)}}},8296:function(t){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},70377:function(t,e,n){t.exports=!n(73069)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},32873:function(t,e,n){var r=n(69480),a=n(34506).document,o=r(a)&&r(a.createElement);t.exports=function(t){return o?a.createElement(t):{}}},52848:function(t){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},4352:function(t,e,n){var r=n(95692),a=n(6050),o=n(46824);t.exports=function(t){var e=r(t),n=a.f;if(n)for(var i,s=n(t),l=o.f,u=0;s.length>u;)l.call(t,i=s[u++])&&e.push(i);return e}},75076:function(t,e,n){var r=n(34506),a=n(37213),o=n(38893),i=n(2366),s=n(40255),l="prototype",u=function(t,e,n){var c,f,p,d=t&u.F,h=t&u.G,m=t&u.S,v=t&u.P,y=t&u.B,g=t&u.W,b=h?a:a[e]||(a[e]={}),w=b[l],T=h?r:m?r[e]:(r[e]||{})[l];for(c in h&&(n=e),n)!((f=!d&&T&&void 0!==T[c])&&s(b,c))&&(p=f?T[c]:n[c],b[c]=h&&"function"!=typeof T[c]?n[c]:y&&f?o(p,r):g&&T[c]==p?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e[l]=t[l],e}(p):v&&"function"==typeof p?o(Function.call,p):p,v&&((b.virtual||(b.virtual={}))[c]=p,t&u.R&&w&&!w[c]&&i(w,c,p)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},73069:function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},34506:function(t){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},40255:function(t){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},2366:function(t,e,n){var r=n(46093),a=n(4452);t.exports=n(70377)?function(t,e,n){return r.f(t,e,a(1,n))}:function(t,e,n){return t[e]=n,t}},65609:function(t,e,n){var r=n(34506).document;t.exports=r&&r.documentElement},83278:function(t,e,n){t.exports=!n(70377)&&!n(73069)(function(){return 7!=Object.defineProperty(n(32873)("div"),"a",{get:function(){return 7}}).a})},28365:function(t,e,n){var r=n(60866);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},68926:function(t,e,n){var r=n(60866);t.exports=Array.isArray||function(t){return"Array"==r(t)}},69480:function(t){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},51592:function(t,e,n){"use strict";var r=n(77310),a=n(4452),o=n(5723),i={};n(2366)(i,n(81395)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(i,{next:a(1,n)}),o(t,e+" Iterator")}},58903:function(t,e,n){"use strict";var r=n(44574),a=n(75076),o=n(53682),i=n(2366),s=n(45086),l=n(51592),u=n(5723),c=n(42915),f=n(81395)("iterator"),p=!([].keys&&"next"in[].keys()),d="values",h=function(){return this};t.exports=function(t,e,n,m,v,y,g){l(n,e,m);var b,w,T,S=function(t){return!p&&t in x?x[t]:function(){return new n(this,t)}},k=e+" Iterator",E=v==d,O=!1,x=t.prototype,A=x[f]||x["@@iterator"]||v&&x[v],_=A||S(v),M=v?E?S("entries"):_:void 0,C="Array"==e&&x.entries||A;if(C&&(T=c(C.call(new t)))!==Object.prototype&&T.next&&(u(T,k,!0),r||"function"==typeof T[f]||i(T,f,h)),E&&A&&A.name!==d&&(O=!0,_=function(){return A.call(this)}),(!r||g)&&(p||O||!x[f])&&i(x,f,_),s[e]=_,s[k]=h,v){if(b={values:E?_:S(d),keys:y?_:S("keys"),entries:M},g)for(w in b)w in x||o(x,w,b[w]);else a(a.P+a.F*(p||O),e,b)}return b}},65336:function(t){t.exports=function(t,e){return{value:e,done:!!t}}},45086:function(t){t.exports={}},44574:function(t){t.exports=!0},42727:function(t,e,n){var r=n(67441)("meta"),a=n(69480),o=n(40255),i=n(46093).f,s=0,l=Object.isExtensible||function(){return!0},u=!n(73069)(function(){return l(Object.preventExtensions({}))}),c=function(t){i(t,r,{value:{i:"O"+ ++s,w:{}}})},f=t.exports={KEY:r,NEED:!1,fastKey:function(t,e){if(!a(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,r)){if(!l(t))return"F";if(!e)return"E";c(t)}return t[r].i},getWeak:function(t,e){if(!o(t,r)){if(!l(t))return!0;if(!e)return!1;c(t)}return t[r].w},onFreeze:function(t){return u&&f.NEED&&l(t)&&!o(t,r)&&c(t),t}}},79769:function(t,e,n){"use strict";var r=n(70377),a=n(95692),o=n(6050),i=n(46824),s=n(28689),l=n(28365),u=Object.assign;t.exports=!u||n(73069)(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=u({},t)[n]||Object.keys(u({},e)).join("")!=r})?function(t,e){for(var n=s(t),u=arguments.length,c=1,f=o.f,p=i.f;u>c;)for(var d,h=l(arguments[c++]),m=f?a(h).concat(f(h)):a(h),v=m.length,y=0;v>y;)d=m[y++],(!r||p.call(h,d))&&(n[d]=h[d]);return n}:u},77310:function(t,e,n){var r=n(96202),a=n(46582),o=n(52848),i=n(7186)("IE_PROTO"),s=function(){},l="prototype",u=function(){var t,e=n(32873)("iframe"),r=o.length;for(e.style.display="none",n(65609).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(""),t.close(),u=t.F;r--;)delete u[l][o[r]];return u()};t.exports=Object.create||function(t,e){var n;return null!==t?(s[l]=r(t),n=new s,s[l]=null,n[i]=t):n=u(),void 0===e?n:a(n,e)}},46093:function(t,e,n){var r=n(96202),a=n(83278),o=n(43908),i=Object.defineProperty;e.f=n(70377)?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),a)try{return i(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},46582:function(t,e,n){var r=n(46093),a=n(96202),o=n(95692);t.exports=n(70377)?Object.defineProperties:function(t,e){a(t);for(var n,i=o(e),s=i.length,l=0;s>l;)r.f(t,n=i[l++],e[n]);return t}},11801:function(t,e,n){var r=n(46824),a=n(4452),o=n(34202),i=n(43908),s=n(40255),l=n(83278),u=Object.getOwnPropertyDescriptor;e.f=n(70377)?u:function(t,e){if(t=o(t),e=i(e,!0),l)try{return u(t,e)}catch(t){}if(s(t,e))return a(!r.f.call(t,e),t[e])}},45866:function(t,e,n){var r=n(34202),a=n(69752).f,o={}.toString,i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return a(t)}catch(t){return i.slice()}};t.exports.f=function(t){return i&&"[object Window]"==o.call(t)?s(t):a(r(t))}},69752:function(t,e,n){var r=n(2651),a=n(52848).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,a)}},6050:function(t,e){e.f=Object.getOwnPropertySymbols},42915:function(t,e,n){var r=n(40255),a=n(28689),o=n(7186)("IE_PROTO"),i=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return r(t=a(t),o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?i:null}},2651:function(t,e,n){var r=n(40255),a=n(34202),o=n(57936)(!1),i=n(7186)("IE_PROTO");t.exports=function(t,e){var n,s=a(t),l=0,u=[];for(n in s)n!=i&&r(s,n)&&u.push(n);for(;e.length>l;)r(s,n=e[l++])&&(~o(u,n)||u.push(n));return u}},95692:function(t,e,n){var r=n(2651),a=n(52848);t.exports=Object.keys||function(t){return r(t,a)}},46824:function(t,e){e.f=({}).propertyIsEnumerable},4452:function(t){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},53682:function(t,e,n){t.exports=n(2366)},80130:function(t,e,n){var r=n(69480),a=n(96202),o=function(t,e){if(a(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{(r=n(38893)(Function.call,n(11801).f(Object.prototype,"__proto__").set,2))(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return o(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:o}},5723:function(t,e,n){var r=n(46093).f,a=n(40255),o=n(81395)("toStringTag");t.exports=function(t,e,n){t&&!a(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},7186:function(t,e,n){var r=n(92479)("keys"),a=n(67441);t.exports=function(t){return r[t]||(r[t]=a(t))}},92479:function(t,e,n){var r=n(37213),a=n(34506),o="__core-js_shared__",i=a[o]||(a[o]={});(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(44574)?"pure":"global",copyright:"\xa9 2020 Denis Pushkarev (zloirock.ru)"})},94004:function(t,e,n){var r=n(25999),a=n(8296);t.exports=function(t){return function(e,n){var o,i,s=String(a(e)),l=r(n),u=s.length;return l<0||l>=u?t?"":void 0:(o=s.charCodeAt(l))<55296||o>56319||l+1===u||(i=s.charCodeAt(l+1))<56320||i>57343?t?s.charAt(l):o:t?s.slice(l,l+2):(o-55296<<10)+(i-56320)+65536}}},48856:function(t,e,n){var r=n(25999),a=Math.max,o=Math.min;t.exports=function(t,e){return(t=r(t))<0?a(t+e,0):o(t,e)}},25999:function(t){var e=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:e)(t)}},34202:function(t,e,n){var r=n(28365),a=n(8296);t.exports=function(t){return r(a(t))}},61826:function(t,e,n){var r=n(25999),a=Math.min;t.exports=function(t){return t>0?a(r(t),9007199254740991):0}},28689:function(t,e,n){var r=n(8296);t.exports=function(t){return Object(r(t))}},43908:function(t,e,n){var r=n(69480);t.exports=function(t,e){var n,a;if(!r(t))return t;if(e&&"function"==typeof(n=t.toString)&&!r(a=n.call(t))||"function"==typeof(n=t.valueOf)&&!r(a=n.call(t))||!e&&"function"==typeof(n=t.toString)&&!r(a=n.call(t)))return a;throw TypeError("Can't convert object to primitive value")}},67441:function(t){var e=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+n).toString(36))}},19642:function(t,e,n){var r=n(34506),a=n(37213),o=n(44574),i=n(62911),s=n(46093).f;t.exports=function(t){var e=a.Symbol||(a.Symbol=o?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:i.f(t)})}},62911:function(t,e,n){e.f=n(81395)},81395:function(t,e,n){var r=n(92479)("wks"),a=n(67441),o=n(34506).Symbol,i="function"==typeof o;(t.exports=function(t){return r[t]||(r[t]=i&&o[t]||(i?o:a)("Symbol."+t))}).store=r},67771:function(t,e,n){"use strict";var r=n(74631),a=n(65336),o=n(45086),i=n(34202);t.exports=n(58903)(Array,"Array",function(t,e){this._t=i(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,a(1)):"keys"==e?a(0,n):"values"==e?a(0,t[n]):a(0,[n,t[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},38476:function(t,e,n){var r=n(75076);r(r.S+r.F,"Object",{assign:n(79769)})},23012:function(t,e,n){var r=n(75076);r(r.S,"Object",{create:n(77310)})},94730:function(t,e,n){var r=n(75076);r(r.S+!n(70377)*r.F,"Object",{defineProperty:n(46093).f})},49760:function(t,e,n){var r=n(75076);r(r.S,"Object",{setPrototypeOf:n(80130).set})},71810:function(){},97109:function(t,e,n){"use strict";var r=n(94004)(!0);n(58903)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},22503:function(t,e,n){"use strict";var r=n(34506),a=n(40255),o=n(70377),i=n(75076),s=n(53682),l=n(42727).KEY,u=n(73069),c=n(92479),f=n(5723),p=n(67441),d=n(81395),h=n(62911),m=n(19642),v=n(4352),y=n(68926),g=n(96202),b=n(69480),w=n(28689),T=n(34202),S=n(43908),k=n(4452),E=n(77310),O=n(45866),x=n(11801),A=n(6050),_=n(46093),M=n(95692),C=x.f,D=_.f,F=O.f,j=r.Symbol,P=r.JSON,Z=P&&P.stringify,N="prototype",L=d("_hidden"),R=d("toPrimitive"),I={}.propertyIsEnumerable,U=c("symbol-registry"),X=c("symbols"),V=c("op-symbols"),B=Object[N],H="function"==typeof j&&!!A.f,Y=r.QObject,z=!Y||!Y[N]||!Y[N].findChild,W=o&&u(function(){return 7!=E(D({},"a",{get:function(){return D(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=C(B,e);r&&delete B[e],D(t,e,n),r&&t!==B&&D(B,e,r)}:D,q=function(t){var e=X[t]=E(j[N]);return e._k=t,e},G=H&&"symbol"==typeof j.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof j},Q=function(t,e,n){return(t===B&&Q(V,e,n),g(t),e=S(e,!0),g(n),a(X,e))?(n.enumerable?(a(t,L)&&t[L][e]&&(t[L][e]=!1),n=E(n,{enumerable:k(0,!1)})):(a(t,L)||D(t,L,k(1,{})),t[L][e]=!0),W(t,e,n)):D(t,e,n)},$=function(t,e){g(t);for(var n,r=v(e=T(e)),a=0,o=r.length;o>a;)Q(t,n=r[a++],e[n]);return t},K=function(t){var e=I.call(this,t=S(t,!0));return(!(this===B&&a(X,t))||!!a(V,t))&&(!(e||!a(this,t)||!a(X,t)||a(this,L)&&this[L][t])||e)},J=function(t,e){if(t=T(t),e=S(e,!0),!(t===B&&a(X,e))||a(V,e)){var n=C(t,e);return n&&a(X,e)&&!(a(t,L)&&t[L][e])&&(n.enumerable=!0),n}},tt=function(t){for(var e,n=F(T(t)),r=[],o=0;n.length>o;)a(X,e=n[o++])||e==L||e==l||r.push(e);return r},te=function(t){for(var e,n=t===B,r=F(n?V:T(t)),o=[],i=0;r.length>i;)a(X,e=r[i++])&&(!n||a(B,e))&&o.push(X[e]);return o};H||(s((j=function(){if(this instanceof j)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(n){this===B&&e.call(V,n),a(this,L)&&a(this[L],t)&&(this[L][t]=!1),W(this,t,k(1,n))};return o&&z&&W(B,t,{configurable:!0,set:e}),q(t)})[N],"toString",function(){return this._k}),x.f=J,_.f=Q,n(69752).f=O.f=tt,n(46824).f=K,A.f=te,o&&!n(44574)&&s(B,"propertyIsEnumerable",K,!0),h.f=function(t){return q(d(t))}),i(i.G+i.W+!H*i.F,{Symbol:j});for(var tn="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),tr=0;tn.length>tr;)d(tn[tr++]);for(var ta=M(d.store),to=0;ta.length>to;)m(ta[to++]);i(i.S+!H*i.F,"Symbol",{for:function(t){return a(U,t+="")?U[t]:U[t]=j(t)},keyFor:function(t){if(!G(t))throw TypeError(t+" is not a symbol!");for(var e in U)if(U[e]===t)return e},useSetter:function(){z=!0},useSimple:function(){z=!1}}),i(i.S+!H*i.F,"Object",{create:function(t,e){return void 0===e?E(t):$(E(t),e)},defineProperty:Q,defineProperties:$,getOwnPropertyDescriptor:J,getOwnPropertyNames:tt,getOwnPropertySymbols:te});var ti=u(function(){A.f(1)});i(i.S+i.F*ti,"Object",{getOwnPropertySymbols:function(t){return A.f(w(t))}}),P&&i(i.S+i.F*(!H||u(function(){var t=j();return"[null]"!=Z([t])||"{}"!=Z({a:t})||"{}"!=Z(Object(t))})),"JSON",{stringify:function(t){for(var e,n,r=[t],a=1;arguments.length>a;)r.push(arguments[a++]);if(n=e=r[1],!(!b(e)&&void 0===t||G(t)))return y(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!G(e))return e}),r[1]=e,Z.apply(P,r)}}),j[N][R]||n(2366)(j[N],R,j[N].valueOf),f(j,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},51015:function(t,e,n){n(19642)("asyncIterator")},60107:function(t,e,n){n(19642)("observable")},16917:function(t,e,n){n(67771);for(var r=n(34506),a=n(2366),o=n(45086),i=n(81395)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),l=0;l-1;)(f=u[p]).n===s&&f.c===e?u.splice(p,1):0===c&&(c=p+1);var d=n||this._eventTarget;u.splice(c,0,{c:e,n:s,t:i}),!this._listFun[l]&&(this._listFun[l]=this._listFun[l]||this.dispatchEvent.bind(this,{type:i,target:n}),d.addEventListener?d.addEventListener(i,this._listFun[l],r):d.attachEvent&&d.attachEvent("on"+i,this._listFun[l]))},removeEventListener:function(t,e,n,r){var o=t.split("."),i=o[0],s=o[1],l=""+i+(n?"_"+n.getAttribute(a):""),u=this._listeners[l],c=void 0,f=r;if(s||(f=!0),u){c=u.length;for(var p=n||this._eventTarget;--c>-1;)if(u[c].c===e&&(f||u[c].n===s)){if(u.splice(c,1),!u.length){var d=this._listFun[l];delete this._listeners[l],delete this._listFun[l],p.removeEventListener?p.removeEventListener(i,d):p.detachEvent&&p.detachEvent("on"+i,d)}if(!f)return}}},dispatchEvent:function(t,e){var n=t.type,r=t.target,o=""+n+(r?"_"+r.getAttribute(a):""),i=this._listeners[o],s=void 0,l=void 0,u=void 0;if(i){for(s=i.length,l=this._eventTarget;--s>-1;)if(u=i[s]){var c=e||{type:n,target:l};u.c.call(l,c)}}},removeAllType:function(t,e){var n=this,o=t.split("."),i=o[0],s=o[1],l=""+i+(e?"_"+e.getAttribute(a):""),u=this._listeners[l];this.recoverLists=this.recoverLists.concat((0,r.Zk)(u).filter(function(t){return t.n&&t.n.match(s)})),this.recoverLists.forEach(function(t){n.removeEventListener(t.t+"."+t.n,t.c,e)})},reAllType:function(t,e){var n=this,r=t.split("."),a=r[0],o=r[1];this.recoverLists=this.recoverLists.map(function(t){return t.t===a&&t.n.match(o)?(n.addEventListener(t.t+"."+t.n,t.c,e),null):t}).filter(function(t){return t})}},e.Z=new o("undefined"!=typeof document&&window)},72220:function(t,e,n){"use strict";n.d(e,{Z:function(){return y}});var r=n(61707),a=n(61200),o=n(82864),i=n(73006),s=n(97559),l=n(71212),u=n(50959),c=n(40507),f=n.n(c),p=n(65274),d=n(10422),h=n(20769),m=function(t){function e(t){(0,o.default)(this,e);var n=(0,i.default)(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.getParam=function(t){n.clientHeight=n.target?n.target.clientHeight:(0,h.uK)();var e=n.target?n.target.scrollTop:(0,h.Xh)(),r=n.dom.getBoundingClientRect(),a=n.target?n.target.getBoundingClientRect().top:0,o=r.top+e-a;n.elementShowHeight=e-o+n.clientHeight;var i=(0,h.o1)(n.props.playScale),s=/([\+\-]?[0-9#\.]+)(px|vh|%)?/.exec(String(i[0]));s[2]?"px"===s[2]?n.playHeight=parseFloat(s[1]):n.playHeight=n.clientHeight*parseFloat(s[1])/100:n.playHeight=n.clientHeight*parseFloat(i[0]);var l=r.height,u=/([\+\-]?[0-9#\.]+)(px|vh|%)?/.exec(String(i[1]));u[2]?"px"===u[2]?n.leavePlayHeight=parseFloat(u[1]):n.leavePlayHeight=l*parseFloat(u[1])/100:n.leavePlayHeight=l*parseFloat(i[1]);var c=n.props.replay?n.elementShowHeight>=n.playHeight&&n.elementShowHeight<=n.clientHeight+n.leavePlayHeight:n.elementShowHeight>=n.playHeight,f=c?"enter":"leave",p=n.enter!==c||"boolean"!=typeof n.enter?f:null;p&&n.props.onChange({mode:p,id:n.props.id}),n.props.onScroll({domEvent:t,scrollTop:e,showHeight:n.elementShowHeight,offsetTop:o,id:n.props.id}),n.enter=c},n.addScrollEvent=function(){p.Z.addEventListener(n.eventType,n.scrollEventListener,n.target),(0,h.Xh)()||n.scrollEventListener()},n.scrollEventListener=function(t){n.getParam(t)},n.state={$self:n},n}return(0,l.default)(e,t),(0,s.default)(e,null,[{key:"getDerivedStateFromProps",value:function(t,e){var n=e.prevProps,r=e.$self;return n&&t!==n&&r.scrollEventListener(),{prevProps:t}}}]),(0,s.default)(e,[{key:"componentDidMount",value:function(){if(!h.Q6){this.dom=d.findDOMNode(this);var t=Date.now();this.target=this.props.targetId&&document.getElementById(this.props.targetId);var e=p.Z._listeners.scroll?p.Z._listeners.scroll.length:0;this.eventType="scroll.scrollEvent"+t+e,this.addScrollEvent()}}},{key:"componentWillUnmount",value:function(){p.Z.removeEventListener(this.eventType,this.scrollEventListener,this.target)}},{key:"render",value:function(){var t=this.props,e=t.component,n=(t.playScale,t.location,t.targetId,t.onScroll,t.onChange,t.replay,t.componentProps),o=(0,a.default)(t,["component","playScale","location","targetId","onScroll","onChange","replay","componentProps"]);return u.createElement(e,(0,r.default)({},o,n))}}]),e}(u.Component);m.propTypes={component:f().any,playScale:f().any,id:f().string,onChange:f().func,onScroll:f().func,location:f().string,targetId:f().string,replay:f().bool,componentProps:f().object},m.defaultProps={component:"div",onChange:h.ZT,onScroll:h.ZT,playScale:.5,replay:!1,componentProps:{}},m.isScrollElement=!0;var v=function(t){function e(t){(0,o.default)(this,e);var n=(0,i.default)(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.scrollEventListener=function(t){n.getParam(t);var e=n.state.show,r=n.props,a=r.always,o=r.replay,i=n.elementShowHeight>n.clientHeight+n.leavePlayHeight;if(n.enter||!o&&i)e||n.setState({show:!0}),!a&&n.eventType&&p.Z.removeEventListener(n.eventType,n.scrollEventListener,n.target);else if(a){var s=n.elementShowHeightObject.keys(e).length?t:e,a=Object.keys(t).length>Object.keys(e).length?e:t;Object.keys(r).forEach(function(t){n&&(t in a||(n=!1),"object"==typeof r[t]&&"object"==typeof a[t]?n=E(r[t],a[t]):"function"==typeof r[t]&&"function"==typeof a[t]?r[t].toString().replace(/\s+/g,"")!==a[t].toString().replace(/\s+/g,"")&&(n=!1):r[t]!==a[t]&&(n=!1))})};if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;t.forEach(function(t,n){r(t,e[n])})}else r(t,e);return n}function O(t,e){var n=null;return t&&t.forEach(function(t){!n&&t&&t.key===e&&(n=t)}),n}function x(t,e,n){return"function"==typeof t?t({key:e,index:n}):t}function A(t){return t&&t.children}function _(t,e,n,r,a,o,i,s){if(b)return r;var l=/(?:Left|Right|Width|X)/i.test(n)||s;l="padding"===n||"marign"===n||l;var u=-1!==n.indexOf("border")||-1!==n.indexOf("translate")||"transformOrigin"===n?t:t.parentNode||document.body;u=i?document.body:u;var c=void 0,f=void 0;switch(a){case"%":c=parseFloat(r)/100*(l?u.clientWidth:u.clientHeight);break;case"vw":c=parseFloat(r)*document.body.clientWidth/100;break;case"vh":c=parseFloat(r)*document.body.clientHeight/100;break;case"em":c=parseFloat(r)*parseFloat(e.fontSize);break;case"rem":f=window.getComputedStyle(document.getElementsByTagName("html")[0]),c=parseFloat(r)*parseFloat(f.fontSize);break;default:c=parseFloat(r)}switch(o){case"%":c=c?100*c/(l?u.clientWidth:u.clientHeight):0;break;case"vw":c=parseFloat(r)/document.body.clientWidth*100;break;case"vh":c=parseFloat(r)/document.body.clientHeight*100;break;case"em":c=parseFloat(r)/parseFloat(e.fontSize);break;case"rem":f=f||window.getComputedStyle(document.getElementsByTagName("html")[0]),c=parseFloat(r)/parseFloat(f.fontSize)}return c}function M(t){if("string"==typeof t)return t;var e=t.perspective,n=t.rotate,r=t.rotateX,a=t.rotateY,o=t.scaleX,i=t.scaleY,s=t.scaleZ,l=t.skewX,u=t.skewY,c="string"==typeof t.translateX?t.translateX:t.translateX+"px",f="string"==typeof t.translateY?t.translateY:t.translateY+"px",p="string"==typeof t.translateZ?t.translateZ:t.translateZ+"px",d=l||u?"skew("+l+"deg,"+u+"deg)":"",h=n?"rotate("+n+"deg)":"",m=1!==o||1!==i||1!==s?"scale3d("+o+","+i+","+s+")":"",v=r?"rotateX("+r+"deg)":"",y=a?"rotateY("+a+"deg)":"";return((e?"perspective("+e+"px)":"")+" "+(t.translateZ?"translate3d("+c+","+f+","+p+")":(t.translateX||t.translateY)&&"translate("+c+","+f+")"||(m||h||v||y||d?"":"translate(0px, 0px)"))+" "+m+" "+h+" "+v+" "+y+" "+d).trim()}var C=n(89971);h().path=function(t,e){var n=e||{};if(b)return"linear";for(var r=function(t){if("string"==typeof t){if(t.charAt(0).match(/m/i)){var e=document.createElementNS("http://www.w3.org/2000/svg","path");return e.setAttributeNS(null,"d",t),e}return document.querySelector(t)}if(t.style)return t;throw Error("Error while parsing the path")}(t),a=r.getTotalLength(),o=n.rect||100,i=n.lengthPixel||200,s=[],l=0;l=u})[0]||r.getPointAtLength(l*a)).y/o}};var D=h(),F=function(){};F.prototype.push=function(t){this[t.prototype.name]=t};var j=new F,P=function(t,e,n){this.target=t,this.vars=e,this.type=n,this.propsData={},this.setDefaultData()};P.prototype={name:"style"};var Z=P.prototype;function N(){}function L(t,e){var n=t.duration||0===t.duration?t.duration:450;return{duration:"set"===t.type?0:n,delay:t.delay||0,ease:"function"==typeof t.ease?t.ease:D[t.ease||"easeInOutQuad"],onUpdate:t.onUpdate||N,onComplete:t.onComplete||N,onStart:t.onStart||N,onRepeat:t.onRepeat||N,repeat:t.repeat||0,repeatDelay:t.repeatDelay||0,yoyo:t.yoyo||!1,type:"from"===t.type?"from":"to",initTime:e,appearTo:"number"==typeof t.appearTo?t.appearTo:null,perTime:0,currentRepeat:0}}Z.getTweenData=function(t,e){var n={data:{},dataType:{},dataUnit:{},dataCount:{},dataSplitStr:{}},r=e;if(T[t]&&((r=(r=r.toString().split(" ")).map(function(t){return"number"==typeof e?t+"px":t}))[1]=r[1]||r[0],r[2]=r[2]||r[0],r[3]=r[3]||r[1]||r[0],r=r.join(" ")),t.match(/colo|fill|storker/i)?(n.data[t]=(0,C.lu)(r),n.dataType[t]="color"):"strokeDasharray"===t?(n.data[t]=r.split(","),n.dataType[t]="strokeDasharray"):t.match(/shadow/i)?(n.data[t]=(0,C.hy)(r),n.dataType[t]="shadow"):"string"==typeof r&&r.split(/[\s|,]/).length>1?(n.data[t]=r.split(/[\s|,]/),n.dataSplitStr[t]=r.replace(/[^\s|,]/g,"").replace(/\s+/g," "),n.dataType[t]="string"):(n.data[t]=r,n.dataType[t]="other"),Array.isArray(n.data[t]))n.dataUnit[t]=n.data[t].map(function(t){return t.toString().replace(/[^a-z|%]/g,"")}),n.dataCount[t]=n.data[t].map(function(t){return t.toString().replace(/[^+|=|-]/g,"")}),n.data[t]=n.data[t].map(function(t){return parseFloat(t)||0===parseFloat(t)?parseFloat(t):t});else{n.dataUnit[t]=n.data[t].toString().replace(/[^a-z|%]/g,""),n.dataCount[t]=n.data[t].toString().replace(/[^+|=|-]/g,"");var a=parseFloat(n.data[t].toString().replace(/[a-z|%|=]/g,""));n.data[t]=a||0===a?a:n.data[t]}return n},Z.setDefaultData=function(){var t=this;this.propsData.data={},this.propsData.dataType={},this.propsData.dataUnit={},this.propsData.dataCount={},this.propsData.dataSplitStr={},Object.keys(this.vars).forEach(function(e){if(e in j){t.propsData.data[e]=new j[e](t.target,t.vars[e]);return}var n=(0,C.Lo)(e),r=t.getTweenData(n,t.vars[e]);t.propsData.data[n]=r.data[n],t.propsData.dataType[n]=r.dataType[n],t.propsData.dataUnit[n]=r.dataUnit[n],t.propsData.dataCount[n]=r.dataCount[n],r.dataSplitStr[n]&&(t.propsData.dataSplitStr[n]=r.dataSplitStr[n])})},Z.convertToMarksArray=function(t,e,n,r,a){var o=r.toString().replace(/[^a-z|%]/g,""),i=e[a];return o===i?parseFloat(r):parseFloat(r)||0===parseFloat(r)?_(this.target,t,n,r,o,i,null,"transformOrigin"===n&&!a):r},Z.getAnimStart=function(t,e,n){var r=this,o={},i=e.style||{},s=void 0;return Object.keys(this.propsData.data).forEach(function(e){var l=(0,C.dt)(e),u=i[l]||t[l],c="fixed"===t.position;u&&"none"!==u&&"auto"!==u||(u="");var f=void 0,p=void 0;if(e in j)"bezier"===e&&(r.transform=(0,C.Yf)("transform"),u=t[n?"transformSVG":r.transform],s=s||(i.transform?(0,a.default)({},i.transform):o.transform||(0,C.Ck)(u)),o.transform=s),r.propsData.data[e].getAnimStart(t,n);else if("transform"===l){r.transform=(0,C.Yf)("transform"),u=t[n?"transformSVG":r.transform],f=r.propsData.dataUnit[e],s=s||(i.transform?(0,a.default)({},i.transform):o.transform||(0,C.Ck)(u));var d=/%|vw|vh|em|rem/i;f&&f.match(d)&&(s[e]=s[e]&&s[e].toString().match(d)?parseFloat(s[e]):_(r.target,t,e,s[e],null,f)),o.transform=s}else"filter"===l?(i[l]?u=i[l]:(r.filterName=(0,C.Yf)("filter")||"filter",u=t[r.filterName],r.filterObject=(0,a.default)({},r.filterObject,(0,C.GX)(u)),u=r.filterObject[e]||0),p=u.toString().replace(/[^a-z|%]/g,""),(f=r.propsData.dataUnit[e])!==p&&(u=_(r.target,t,l,parseFloat(u),p,f,c)),o[e]=parseFloat(u)):e.match(/color|fill/i)||"stroke"===e?(u=u||"stroke"!==e?u:"rgba(255, 255, 255, 0)",o[l]=(0,C.lu)(u)):e.match(/shadow/i)?(u=(0,C.hy)(u),f=r.propsData.dataUnit[e],u=u.map(r.convertToMarksArray.bind(r,t,f,e)),o[l]=u):Array.isArray(r.propsData.data[e])?(u=u.split(/[\s|,]/).filter(function(t){return t||0===t}),f=r.propsData.dataUnit[e],u=u.map(r.convertToMarksArray.bind(r,t,f,e)),o[l]=u):((f=r.propsData.dataUnit[l])!==(p=u.toString().replace(/[^a-z|%]/g,""))&&(u=_(r.target,t,l,parseFloat(u),p,f,c)),o[l]=parseFloat(u||0))}),this.start=o,o},Z.setArrayRatio=function(t,e,n,r,a){"color"===a&&4===e.length&&3===n.length&&(n[3]=1);var o=e.indexOf("inset")>=0,i=n.indexOf("inset")>=0;if(o&&!i||i&&!o)throw console.error('Error: "box-shadow" inset have to exist');var s=i?9:8;e.length===s&&n.length===s-1?(n.splice(3,0,0),r.splice(3,0,"")):n.length===s&&e.length===s-1&&e.splice(3,0,0);var l=n.map(function(n,o){var i="color"!==a||3!==o||e[o]?0:1,s="number"==typeof e[o]?e[o]:i;return"string"==typeof n?n:(n-s)*t+s+(r[o]||0)});if("color"===a)return(0,C.Lq)(l);if("shadow"===a){var u=l.length===s?4:3,c=l.slice(0,u).map(function(t){return"number"==typeof t?t+"px":t}),f=l.slice(u,i?l.length-1:l.length),p=(0,C.Lq)(f);return(c.join(" ")+" "+p+" "+(i?"inset":"")).trim()}return l},Z.setRatio=function(t,e,n){var r=this;e.style=e.style||{},this.start.transform&&(e.style.transform=e.style.transform||(0,a.default)({},this.start.transform));var o=this.target.style;Object.keys(this.propsData.data).forEach(function(a){var i="transform"===(0,C.Tk)(a),s=i?r.start.transform[a]:r.start[a],l=r.propsData.data[a],u=r.propsData.dataUnit[a],c=r.propsData.dataCount[a];if(a in j){r.propsData.data[a].setRatio(t,e,n),"bezier"===a?o[r.transform]=M(e.style.transform):Object.keys(e.style).forEach(function(t){o[t]=e.style[t]});return}if(i){if(u&&u.match(/%|vw|vh|em|rem/i))s=parseFloat(r.start.transform[a]),"="===c.charAt(1)?e.style.transform[a]=s+l*t+u:e.style.transform[a]=(l-s)*t+s+u;else if("scale"===a){var f=r.start.transform.scaleX,p=r.start.transform.scaleY;"="===c.charAt(1)?(e.style.transform.scaleX=f+l*t,e.style.transform.scaleY=p+l*t):(e.style.transform.scaleX=(l-f)*t+f,e.style.transform.scaleY=(l-p)*t+p)}else"="===c.charAt(1)?e.style.transform[a]=s+l*t:e.style.transform[a]=(l-s)*t+s;o[r.transform]=M(e.style.transform),n&&(n.transformSVG=(0,C.wz)(o[r.transform]).toString());return}if(Array.isArray(l)){var d=r.propsData.dataType[a];e.style[a]=r.setArrayRatio(t,s,l,u,d),"string"===d&&(e.style[a]=e.style[a].join(r.propsData.dataSplitStr[a]))}else{var h=(0,C.YJ)(a,0);if(h="number"==typeof h?"":h.replace(/[^a-z|%]/g,""),u=u||(C._T.filter.indexOf(a)>=0?"":h),"string"==typeof l)e.style[a]=l;else if("="===c.charAt(1))e.style[a]=s+l*t+u;else{var m=(l-s)*t+s;e.style[a]=u?""+m+u:m}}if(C._T.filter.indexOf(a)>=0){if(!r.filterObject)return;r.filterObject[a]=e.style[a];var v="";Object.keys(r.filterObject).forEach(function(t){v+=" "+t+"("+r.filterObject[t]+")"}),o[r.filterName]=v.trim();return}o[a]=e.style[a]})},j.push(P);var R=function(t,e,n){var r=k(e);this.target=t,this.attr=n||"style",this.accuracy=1e-5,this.totalTime=0,this.progressTime=0,this.defaultData=[],this.start={},this.startDefaultData={},this.tween={},this.data=r,this.perFrame=Math.round(1e3/60),this.register=!1,this.isSvg=this.target.ownerSVGElement;var a=this.setAttrIsStyle();this.setDefaultData(a)},I=R.prototype;I.setAttrIsStyle=function(){var t=this,e=[],n=L({},0);return this.data.forEach(function(r,o){var i=(0,a.default)({},r);"style"===t.attr?(e[o]={},Object.keys(i).forEach(function(t){t in n&&(e[o][t]=i[t],delete i[t])}),e[o].style=i,t.startDefaultData.style=t.target.getAttribute("style")||""):"attr"===t.attr&&(Object.keys(i).forEach(function(e){if("style"===e&&Array.isArray(r[e]))throw Error("Style should be the object.");if("bezier"===e)i.style=(0,a.default)({},i.style,{bezier:i[e]}),delete i[e],t.startDefaultData.style=t.target.getAttribute("style")||"";else{if(e in n)return;t.startDefaultData[e]=t.getValue(e)}}),e[o]=i)}),e},I.setDefaultData=function(t){var e=this,n=0,r=!1,a=t.map(function(t){var a="number"==typeof t.appearTo;a||(n+=t.delay||0);var o=(t.appearTo||0)+(t.delay||0),i=L(t,a?o:n);i.vars={},Object.keys(t).forEach(function(n){if(!(n in i)){var r=t[n];if(n in j)i.vars[n]=new j[n](e.target,r,i.type);else if(("d"===n||"points"===n)&&"SVGMorph"in j)i.vars[n]=new j.SVGMorph(e.target,r,n);else if(n.match(/color/i)||"stroke"===n||"fill"===n)i.vars[n]={type:"color",vars:(0,C.lu)(r)};else if("number"==typeof r||r.split(/[,|\s]/g).length<=1){var a=parseFloat(r),o=r.toString().replace(/[^a-z|%]/g,""),s=r.toString().replace(/[^+|=|-]/g,"");i.vars[n]={unit:o,vars:a,count:s}}}}),i.yoyo&&!i.repeat&&console.warn("Warning: yoyo must be used together with repeat;"),-1===i.repeat&&(r=!0);var s=-1===i.repeat?0:i.repeat;if(a){var l=t.appearTo+(t.delay||0)+i.duration*(s+1)+i.repeatDelay*s;n=l>=n?l:n}else i.delay<-i.duration?n-=i.delay:n+=i.duration*(s+1)+i.repeatDelay*s;return i.mode="",i});this.totalTime=r?Number.MAX_VALUE:n,this.defaultData=a},I.getComputedStyle=function(){var t=document.defaultView?document.defaultView.getComputedStyle(this.target):{};if(this.isSvg){var e=t[(0,C.Yf)("transform")]||"none";if("none"===e){var n=this.target.getAttribute("style");n&&n.indexOf("transform:")>=0?e=n.split(";").filter(function(t){return t.indexOf("transform:")>=0}).map(function(t){return(0,C.wz)(t.split(":")[1].trim()).toString()})[0]:this.target.getAttribute("transform")&&console.warn("Do not add transform on the label, otherwise it will be invalid.")}t.transformSVG=e}return t},I.getAnimStartData=function(t){var e=this,n={};return Object.keys(t).forEach(function(r){if(r in j||"attr"===e.attr&&("d"===r||"points"===r)){e.computedStyle=e.computedStyle||(e.target.getAttribute?e.getComputedStyle():(0,a.default)({},e.target)),n[r]=t[r].getAnimStart(e.computedStyle,e.tween,e.isSvg);return}if("attr"===e.attr){var o=e.getValue(r),i=r.match(/opacity/ig)?1:0,s="null"!==o&&o?o:i;if(r.match(/color/i)||"stroke"===r||"fill"===r)s=s||"stroke"!==r?s:"rgba(255, 255, 255, 0)",s=(0,C.lu)(s),n[r]=s;else if(parseFloat(s)||0===parseFloat(s)||0===s){var l=s.toString().replace(/[^a-z|%]/g,"");n[r]=l!==t[r].unit?_(e.target,r,parseFloat(s),l,t[r].unit):parseFloat(s)}return}n[r]=e.target[r]||0}),n},I.setAnimData=function(t){var e=this;Object.keys(t).forEach(function(n){n in j||"attr"===e.attr&&("d"===n||"points"===n)||(e.target[n]=t[n])})},I.setRatio=function(t,e,n){var r=this;Object.keys(e.vars).forEach(function(a){if(a in j||"attr"===r.attr&&("d"===a||"points"===a)){e.vars[a].setRatio(t,r.tween,r.isSvg&&r.computedStyle);return}var o=e.vars[a],i=r.start[n][a],s=void 0;"attr"===r.attr&&(o.type?"color"===o.type&&(3===o.vars.length&&4===i.length&&(o.vars[3]=1),s=o.vars.map(function(e,n){var r=i[n]||0;return(e-r)*t+r}),r.setValue(a,(0,C.Lq)(s))):(s="="===o.unit.charAt(1)?i+o.vars*t+o.unit:(o.vars-i)*t+i+o.unit,r.setValue(a,o.unit?s:parseFloat(s))))}),this.setAnimData(this.tween)},I.getValue=function(t){return this.target.getAttribute?this.target.getAttribute(t):this.target[t]},I.setValue=function(t,e){this.target.setAttribute?this.target.setAttribute(t,e):this.target[t]=e},I.render=function(){var t=this,e=this.reverse;this.defaultData.forEach(function(n,r){var o=n.initTime,i=(0,C.FH)(n.duration),s=Math.ceil((t.progressTime-o)/(i+n.repeatDelay))-1||0;if(s=s<0?0:s,n.repeat){if(n.repeat=0)||t.start[r]||(t.start[r]=t.getAnimStartData(n.vars),ci&&(f=n.ease(1,l,u,1),t.setRatio(f,n,r)),t.register&&(!r||o)||(t.register=!0,0!==c||!n.duration||!n.delay))){var p={index:r,target:t.target},d=(0,a.default)({moment:t.progressTime},p),h=t.perFrame-t.accuracy,m=n.delay&&e?-h:0;if((c>=m&&!(c>i&&"onComplete"===n.mode)||c=t.perFrame?0:c)>=i-t.accuracy&&!e||e&&c<=0)&&s>=n.repeat){if("onComplete"===n.mode)return;if(f=n.ease(e?0:1,l,u,1),t.setRatio(f,n,r,n.currentRepeat!==s),(!n.reset||n.reset&&c>=i)&&!v)i=i+h)return;n.mode="onComplete"}else if(i>h){var y=c<0?0:c;y=y>i?i:y,f=n.ease(y,l,u,i),t.setRatio(f,n,r),v||(n.repeat&&s>0&&n.currentRepeat!==s?(n.mode="onRepeat",n.currentRepeat=s,n.onRepeat((0,a.default)({},p,{repeatNum:s}))):(n.perTime<=0||e&&n.perTime>=t.reverseStartTime-o)&&"onStart"!==n.mode?(n.mode="onStart",n.onStart(p)):(n.mode="onUpdate",n.onUpdate((0,a.default)({ratio:f},p))))}v||(d.mode=n.mode,t.onChange(d)),n.perTime=c,n.reset&&delete n.reset}}})},I.frame=function(t){var e=this;this.progressTime=t,this.defaultData.forEach(function(t){var n=e.progressTime-t.duration-t.initTime;n0&&(e.progressTime=t.duration+t.initTime)}),this.render()},I.init=I.frame,I.resetAnimData=function(){this.tween={},this.start={}};var U=function(t,e,n){var r=L({},0),a=function(t){return t.split(";").filter(function(t){return t}).map(function(t){return t.split(":").map(function(t){return t.trim()})})},o=a(e),i=a(t);return n.forEach(function(t){Object.keys(t).forEach(function(t){if(!(t in r)){var e=(0,C.Dm)((0,C.Tk)((0,C.Lo)("bezier"===t?"transform":t)));i=i.filter(function(t){return(!w[t[0]]||!w[e])&&t[0]!==e})}})}),o.forEach(function(t){i=i.filter(function(e){return e[0]!==t[0]})}),o.concat(i).map(function(t){return t.join(":")}).join(";")};I.resetDefaultStyle=function(){var t=this;this.tween={},this.defaultData=this.defaultData.map(function(t){return t.reset=!0,delete t.mode,t});var e=L({},0);Object.keys(this.startDefaultData).forEach(function(n){if(!(n in e)){if("style"===n){var r=U(t.target.style.cssText,t.startDefaultData.style,t.data);t.setValue(n,r)}else t.setValue(n,t.startDefaultData[n]);t.computedStyle=null}})},I.reStart=function(t,e,n){var r=this;this.start={},this.tween={},Object.keys(t||{}).forEach(function(a){(n||!e||t[a]!==e[a])&&(r.target.style[a]=(0,C.YJ)(a,t[a]))}),this.setAttrIsStyle(),this.computedStyle=null},I.onChange=N;var X=n(19616),V=n.n(X),B=Date.now||function(){return new Date().getTime()},H={interval:1,timeout:1,TweenOneTicker:2},Y=function(t){return Object.keys(t).map(function(e){return{key:e,func:t[e]}}).sort(function(t,e){var n=t.key.split("_")[0];return H[e.key.split("_")[0]]-H[n]})},z=function(){};z.prototype={tickFnArray:[],tickKeyObject:{},id:-1,tweenId:0,frame:0,perFrame:Math.round(1e3/60),elapsed:0,lastUpdate:B(),startTime:B(),nextTime:0,time:0};var W=z.prototype;W.add=function(t){var e="TweenOneTicker_"+this.tweenId;return this.tweenId++,this.wake(e,t),e},W.wake=function(t,e){this.tickKeyObject[t]=e,this.tickFnArray=Y(this.tickKeyObject),-1===this.id&&(this.id=V()(this.tick))},W.clear=function(t){delete this.tickKeyObject[t],this.tickFnArray=Y(this.tickKeyObject)},W.sleep=function(){V().cancel(this.id),this.id=-1,this.frame=0};var q=new z;W.tick=function(t){q.elapsed=B()-q.lastUpdate,q.elapsed>300&&(q.startTime+=q.elapsed-q.perFrame),q.lastUpdate+=q.elapsed,q.time=q.lastUpdate-q.startTime;var e=q.time-q.nextTime;if((e>0||!q.frame)&&(q.frame++,q.nextTime+=e),q.tickFnArray.forEach(function(e){return e.func(t)}),!q.tickFnArray.length){q.sleep();return}q.id=V()(q.tick)};var G=0;W.timeout=function(t,e){var n=this;if("function"!=typeof t)return console.warn("not function");var r="timeout_"+Date.now()+"-"+G,a=this.time;return this.wake(r,function(){n.time-a>=(e||0)&&(n.clear(r),t())}),G++,r};var Q=0;W.interval=function(t,e){var n=this;if("function"!=typeof t)return console.warn("not function"),null;var r="interval_"+Date.now()+"-"+Q,a=this.time;return this.wake(r,function(){n.time-a>=(e||0)&&(a=n.time,t())}),Q++,r};var $=Math.round(1e3/60),K=p().oneOfType([p().object,p().array]),J=function(t){function e(t){(0,o.default)(this,e);var n=(0,i.default)(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return tt.call(n),n.rafID=-1,n.paused=t.paused,n.reverse=t.reverse,n.updateAnim=!1,n.repeatNum=0,n.currentRef=null,n.forced={},n.setForcedJudg(t),n.state={$self:n},n}return(0,l.default)(e,t),(0,s.default)(e,null,[{key:"getDerivedStateFromProps",value:function(t,e){var n=e.prevProps,r=e.$self,a={prevProps:t};if(n&&t!==n){if(!r.tween&&!r.dom)return r.updateAnim=!0,a;var o=t.animation;E(n.animation,o)||(t.resetStyle&&r.tween&&r.tween.resetDefaultStyle(),r.updateAnim=!0);var i=t.moment;"number"==typeof i&&i!==n.moment&&(r.tween&&!r.updateAnim?(r.startMoment=i,r.startTime=q.time,t.paused&&r.raf(),r.tween.progressTime>=r.tween.totalTime&&r.play()):r.updateAnim=!0),r.paused===t.paused&&r.reverse===t.reverse||(r.paused=t.paused,r.reverse=t.reverse,r.paused?r.cancelRequestAnimationFrame():r.reverse&&t.reverseDelay?(r.cancelRequestAnimationFrame(),q.timeout(r.restart,t.reverseDelay)):(r.tween&&(r.tween.resetAnimData(),r.tween.resetDefaultStyle()),r.updateAnim||r.restart())),!E(n.style,t.style)&&r.tween&&(r.tween.reStart(t.style,n.style,r.tween.progressTime=0?n:Number.MAX_VALUE;var o=q.time-t.startTime+t.startMoment;t.reverse&&(o=(t.startMoment||0)-(q.time-t.startTime));var i=Math.floor((o=(o=o>r?r:o)<=0?0:o)/t.tween.totalTime)||0;i=i>n?n:i;var s=o-t.tween.totalTime*i;s=s<$&&!t.reverse&&r>=$?0:s,n&&o&&o-t.tween.totalTime*i<$&&t.tween.frame(t.tween.totalTime*i),(o=r&&!t.reverse||!o&&t.reverse?n.timelineMode="onTimelineComplete":i!==t.timelineRepeatNum?n.timelineMode="onTimelineRepeat":n.timelineMode="onTimelineUpdate":n.timelineMode="onTimelineStart",t.timelineRepeatNum=i,t.props.onChange(n)},t.moment=o,t.repeatNum=i,t.tween.frame(s)},this.raf=function(){var e=t.tween;if(t.frame(),e!==t.tween)return null;var n=t.props.repeat,r=-1===n?Number.MAX_VALUE:t.tween.totalTime*(n+1);return t.moment>=r&&!t.reverse||t.paused||t.reverse&&0===t.moment?t.cancelRequestAnimationFrame():null},this.cancelRequestAnimationFrame=function(){q.clear(t.rafID),t.rafID=-1}};J.isTweenOne=!0;var te=g(J),tn=function(t){function e(t){(0,o.default)(this,e);var n=(0,i.default)(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));tr.call(n),n.keysToEnter=[],n.keysToLeave=[],n.saveTweenTag={},n.onEnterBool=!1,n.animQueue=[],n.isTween={};var r=S(A(n.props));return n.currentChildren=S(A(n.props)),n.state={children:r,$self:n},n}return(0,l.default)(e,t),(0,s.default)(e,null,[{key:"getDerivedStateFromProps",value:function(t,e){var n=e.prevProps,r=e.$self,a={prevProps:t};if(n&&t!==n){var o=S(t.children);if(Object.keys(r.isTween).length&&!t.exclusive)return r.animQueue.push(o),a;var i=S(r.currentChildren);a.children=r.changeChildren(o,i)}return a}}]),(0,s.default)(e,[{key:"componentDidMount",value:function(){this.onEnterBool=!0}},{key:"changeChildren",value:function(t,e){var n,r,a,o,i=this,s=(n=[],r={},a=[],o=void 0,e.forEach(function(e){e&&(O(t,e.key)?(a.length&&(r[e.key]=a,a=[]),o=e.key):e.key&&a.push(e))}),o||(n=n.concat(a)),t.forEach(function(t){t&&(r.hasOwnProperty(t.key)&&(n=n.concat(r[t.key])),n.push(t),t.key===o&&(n=n.concat(a)))}),n);return this.keysToEnter=[],this.keysToLeave=[],t.forEach(function(t){if(t){var n=t.key,r=O(e,n);i.saveTweenTag[n]&&(i.saveTweenTag[n]=u.cloneElement(i.saveTweenTag[n],{},t)),!r&&n&&i.keysToEnter.push(n)}}),e.forEach(function(e){if(e){var n=e.key;!O(t,n)&&n&&(i.keysToLeave.push(n),delete i.saveTweenTag[n])}}),s}},{key:"render",value:function(){var t=this.state.children;this.currentChildren=t;var e=this.getChildrenToRender(t),n=this.props,o=n.component,i=n.componentProps,s=(n.appear,n.enter,n.leave,n.animatingClassName,n.onEnd,n.exclusive,n.resetStyle,(0,r.default)(n,["component","componentProps","appear","enter","leave","animatingClassName","onEnd","exclusive","resetStyle"]));return o?(0,u.createElement)(o,(0,a.default)({},s,i),e):e[0]||null}}]),e}(u.Component),tr=function(){var t=this;this.onChange=function(e,n,r,a){var o=k(e).length,i=a.target,s="object"==typeof i.className&&"baseVal"in i.className,l="enter"===r||"appear"===r;if("onStart"===a.mode)s?i.className.baseVal=t.setClassName(i.className.baseVal,l):i.className=t.setClassName(i.className,l);else if(a.index===o-1&&"onComplete"===a.mode){if(delete t.isTween[n],s?i.className.baseVal=i.className.baseVal.replace(t.props.animatingClassName[l?0:1],"").trim():i.className=i.className.replace(t.props.animatingClassName[l?0:1],"").trim(),"enter"===r)t.keysToEnter.splice(t.keysToEnter.indexOf(n),1),t.keysToEnter.length||t.reAnimQueue();else if("leave"===r&&(t.keysToLeave.splice(t.keysToLeave.indexOf(n),1),t.currentChildren=t.currentChildren.filter(function(t){return n!==t.key}),!t.keysToLeave.length)){var u=t.currentChildren.map(function(t){return t.key});Object.keys(t.saveTweenTag).forEach(function(e){-1===u.indexOf(e)&&delete t.saveTweenTag[e]}),t.setState({children:t.currentChildren},t.reAnimQueue)}t.props.onEnd({key:n,type:r})}},this.setClassName=function(e,n){var r=e.replace(t.props.animatingClassName[n?1:0],"").trim();return -1===r.indexOf(t.props.animatingClassName[n?0:1])&&(r=(r+" "+t.props.animatingClassName[n?0:1]).trim()),r},this.getTweenChild=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.key;return t.saveTweenTag[r]=u.createElement(te,(0,a.default)({},n,{key:r,component:null}),e),t.saveTweenTag[r]},this.getCoverAnimation=function(e,n,r){var a=void 0;a="leave"===r?t.props.leave:t.props.enter,"appear"===r&&(a=x(t.props.appear,e.key,n)&&t.props.enter||null);var o=x(a,e.key,n),i=t.onChange.bind(t,o,e.key,r),s={key:e.key,animation:o,onChange:i,resetStyle:t.props.resetStyle};return(t.keysToEnter.concat(t.keysToLeave).indexOf(e.key)>=0||!t.onEnterBool&&a)&&!t.saveTweenTag[e.key]&&(t.isTween[e.key]=r),t.getTweenChild(e,s)},this.getChildrenToRender=function(e){return e.map(function(e,n){if(!e||!e.key)return e;var r=e.key;return t.keysToLeave.indexOf(r)>=0?t.getCoverAnimation(e,n,"leave"):(t.keysToEnter.indexOf(r)>=0||t.isTween[r]&&-1===t.keysToLeave.indexOf(r))&&!("enter"===t.isTween[r]&&t.saveTweenTag[r])?t.getCoverAnimation(e,n,"enter"):t.onEnterBool?t.saveTweenTag[r]:t.getCoverAnimation(e,n,"appear")})},this.reAnimQueue=function(){if(!Object.keys(t.isTween).length&&t.animQueue.length){var e=t.changeChildren(t.animQueue[t.animQueue.length-1],t.state.children);t.setState({children:e}),t.animQueue=[]}}};tn.propTypes={component:p().any,componentProps:p().object,children:p().any,style:p().object,appear:p().bool,enter:p().any,leave:p().any,animatingClassName:p().array,onEnd:p().func,resetStyle:p().bool,exclusive:p().bool},tn.defaultProps={component:"div",componentProps:{},appear:!0,animatingClassName:["tween-one-entering","tween-one-leaving"],enter:{x:50,opacity:0,type:"from"},leave:{x:-50,opacity:0},onEnd:function(){},resetStyle:!0,exclusive:!1},tn.isTweenOneGroup=!0;var ta=g(tn);te.TweenOneGroup=ta,te.easing=D,te.plugins=j,te.ticker=q,te.Tween=R;var to=n(65274),ti=n(20769),ts=0,tl=function(t){function e(t){(0,o.default)(this,e);var n=(0,i.default)(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.setDefaultData=function(t){(0,ti.Zk)(t).forEach(function(t,e){var r,o=(Array.isArray(r=t.playScale)?2===r.length?r:[r[0]||0,r[1]||1]:r?[r,1]:[0,1]).map(function(t){return t*n.clientHeight}),i=(0,a.default)({},t);delete i.playScale;var s=(0,a.default)({},t);delete s.playScale,s.delay=o[0],i.delay=o[0],s.duration=o[1]-o[0],i.duration=o[1]-o[0],s.onStart=null,s.onUpdate=null,s.onComplete=null,s.onRepeat=null,i.onStart=i.onStart||ti.ZT,i.onComplete=i.onComplete||ti.ZT,i.onUpdate=i.onUpdate||ti.ZT,i.onStartBack=i.onStartBack||ti.ZT,i.onCompleteBack=i.onCompleteBack||ti.ZT,n.defaultTweenData[e]=s,n.defaultData[e]=i})},n.resizeEventListener=function(){n.defaultData[n.defaultData.length-1]&&n.defaultData[n.defaultData.length-1].onCompleteBool&&!n.props.always||(n.scrollTop=(0,ti.Xh)(),n.target=n.props.targetId&&document.getElementById(n.props.targetId),n.clientHeight=n.target?n.target.clientHeight:(0,ti.uK)(),n.setDefaultData(n.props.animation||{}),n.timeline&&n.timeline.resetDefaultStyle(),n.timeline=new R(n.dom,n.defaultTweenData),n.timeline.init(),n.scrollEventListener())},n.scrollEventListener=function(){var t=n.target?n.target.scrollTop:(0,ti.Xh)();n.clientHeight=n.target?n.target.clientHeight:(0,ti.uK)();var e=n.props.location?document.getElementById(n.props.location):n.dom;if(!e)throw Error('"location" is null');var r=n.target?n.target.getBoundingClientRect().top:0,a=e.getBoundingClientRect().top+t-r,o=t-a+n.clientHeight,i=n.scrollTop-a+n.clientHeight;n.defaultData.forEach(function(t,e){var r=n.defaultData.map(function(t,n){return n=t.delay+r?t.onStartBool||(t.onStartBool=!0,a=!0,t.onStart()):t.onStartBool=!1,o<=t.delay+t.duration+r?!t.onStartBackBool&&t.onCompleteBool&&(t.onStartBackBool=!0,a=!0,t.onStartBack()):t.onStartBackBool=!1,o>=t.delay+t.duration+r?t.onCompleteBool||(t.onCompleteBool=!0,a=!0,t.onComplete()):t.onCompleteBool=!1,o>=t.delay+r&&o<=t.delay+t.duration+r&&!a&&t.onUpdate(o/(t.delay+t.duration+r))}),q.clear(n.tickerId),n.tickerId="scrollParallax"+Date.now()+"-"+ts,++ts>=Number.MAX_VALUE&&(ts=0);var s=q.frame;q.wake(n.tickerId,function(){var t=(q.frame-s)*q.perFrame,e=h().easeOutQuad(t,.08,1,300);n.timeline.frame(i+e*(o-i)),t>=300&&q.clear(n.tickerId)}),n.scrollTop=t,n.defaultData[n.defaultData.length-1].onCompleteBool&&n.eventType&&!n.props.always&&to.Z.removeEventListener(n.eventType,n.scrollEventListener,n.target)},n.scrollTop=0,n.defaultTweenData=[],n.defaultData=[],n.state={$self:n},n}return(0,l.default)(e,t),(0,s.default)(e,null,[{key:"getDerivedStateFromProps",value:function(t,e){var n=e.prevProps,r=e.$self;return n&&t!==n&&!(0,ti.Xv)(n.animation,t.animation)&&(r.setDefaultData(t.animation||{}),r.timeline.resetAnimData(),r.timeline.setDefaultData(r.defaultTweenData)),{prevProps:t}}}]),(0,s.default)(e,[{key:"componentDidMount",value:function(){this.dom=c.findDOMNode(this);var t=Date.now(),e=to.Z._listeners.scroll?to.Z._listeners.scroll.length:0;this.eventType="scroll.scrollEvent"+t+e,this.eventResize="resize.resizeEvent"+t+e,this.resizeEventListener(),to.Z.addEventListener(this.eventResize,this.resizeEventListener,this.target),this.timeline.frame(0),this.scrollEventListener(),to.Z.addEventListener(this.eventType,this.scrollEventListener,this.target)}},{key:"componentWillUnmount",value:function(){to.Z.removeEventListener(this.eventType,this.scrollEventListener,this.target),to.Z.removeEventListener(this.eventResize,this.resizeEventListener,this.target)}},{key:"render",value:function(){var t=this.props,e=(t.animation,t.always,t.component,t.location,t.targetId,t.componentProps),n=(0,r.default)(t,["animation","always","component","location","targetId","componentProps"]),o=(0,a.default)({},n.style);return Object.keys(o).forEach(function(t){if(t.indexOf("filter")>=0||t.indexOf("Filter")>=0)for(var e=["Webkit","Moz","Ms","ms"],n=0;n-1;)(f=u[p]).n===s&&f.c===e?u.splice(p,1):0===c&&(c=p+1);var d=n||this._eventTarget;u.splice(c,0,{c:e,n:s,t:i}),!this._listFun[l]&&(this._listFun[l]=this._listFun[l]||this.dispatchEvent.bind(this,{type:i,target:n}),d.addEventListener?d.addEventListener(i,this._listFun[l],r):d.attachEvent&&d.attachEvent("on"+i,this._listFun[l]))},removeEventListener:function(t,e,n,r){var o=t.split("."),i=o[0],s=o[1],l=""+i+(n?"_"+n.getAttribute(a):""),u=this._listeners[l],c=void 0,f=r;if(s||(f=!0),u){c=u.length;for(var p=n||this._eventTarget;--c>-1;)if(u[c].c===e&&(f||u[c].n===s)){if(u.splice(c,1),!u.length){var d=this._listFun[l];delete this._listeners[l],delete this._listFun[l],p.removeEventListener?p.removeEventListener(i,d):p.detachEvent&&p.detachEvent("on"+i,d)}if(!f)return}}},dispatchEvent:function(t,e){var n=t.type,r=t.target,o=""+n+(r?"_"+r.getAttribute(a):""),i=this._listeners[o],s=void 0,l=void 0,u=void 0;if(i){for(s=i.length,l=this._eventTarget;--s>-1;)if(u=i[s]){var c=e||{type:n,target:l};u.c.call(l,c)}}},removeAllType:function(t,e){var n=this,o=t.split("."),i=o[0],s=o[1],l=""+i+(e?"_"+e.getAttribute(a):""),u=this._listeners[l];this.recoverLists=this.recoverLists.concat((0,r.dataToArray)(u).filter(function(t){return t.n&&t.n.match(s)})),this.recoverLists.forEach(function(t){n.removeEventListener(t.t+"."+t.n,t.c,e)})},reAllType:function(t,e){var n=this,r=t.split("."),a=r[0],o=r[1];this.recoverLists=this.recoverLists.map(function(t){return t.t===a&&t.n.match(o)?(n.addEventListener(t.t+"."+t.n,t.c,e),null):t}).filter(function(t){return t})}},e.default=new o("undefined"!=typeof document&&window),t.exports=e.default},70053:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=h(n(61707)),a=h(n(61200)),o=h(n(82864)),i=h(n(73006)),s=h(n(97559)),l=h(n(71212)),u=h(n(50959)),c=h(n(10422)),f=h(n(40507)),p=h(n(57324)),d=n(78623);function h(t){return t&&t.__esModule?t:{default:t}}var m=function(t){function e(t){(0,o.default)(this,e);var n=(0,i.default)(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.getParam=function(t){n.clientHeight=n.target?n.target.clientHeight:(0,d.windowHeight)();var e=n.target?n.target.scrollTop:(0,d.currentScrollTop)(),r=n.dom.getBoundingClientRect(),a=n.target?n.target.getBoundingClientRect().top:0,o=r.top+e-a;n.elementShowHeight=e-o+n.clientHeight;var i=(0,d.transformArguments)(n.props.playScale),s=/([\+\-]?[0-9#\.]+)(px|vh|%)?/.exec(String(i[0]));s[2]?"px"===s[2]?n.playHeight=parseFloat(s[1]):n.playHeight=n.clientHeight*parseFloat(s[1])/100:n.playHeight=n.clientHeight*parseFloat(i[0]);var l=r.height,u=/([\+\-]?[0-9#\.]+)(px|vh|%)?/.exec(String(i[1]));u[2]?"px"===u[2]?n.leavePlayHeight=parseFloat(u[1]):n.leavePlayHeight=l*parseFloat(u[1])/100:n.leavePlayHeight=l*parseFloat(i[1]);var c=n.props.replay?n.elementShowHeight>=n.playHeight&&n.elementShowHeight<=n.clientHeight+n.leavePlayHeight:n.elementShowHeight>=n.playHeight,f=c?"enter":"leave",p=n.enter!==c||"boolean"!=typeof n.enter?f:null;p&&n.props.onChange({mode:p,id:n.props.id}),n.props.onScroll({domEvent:t,scrollTop:e,showHeight:n.elementShowHeight,offsetTop:o,id:n.props.id}),n.enter=c},n.addScrollEvent=function(){p.default.addEventListener(n.eventType,n.scrollEventListener,n.target),(0,d.currentScrollTop)()||n.scrollEventListener()},n.scrollEventListener=function(t){n.getParam(t)},n.state={$self:n},n}return(0,l.default)(e,t),(0,s.default)(e,null,[{key:"getDerivedStateFromProps",value:function(t,e){var n=e.prevProps,r=e.$self;return n&&t!==n&&r.scrollEventListener(),{prevProps:t}}}]),(0,s.default)(e,[{key:"componentDidMount",value:function(){if(!d.windowIsUndefined){this.dom=c.default.findDOMNode(this);var t=Date.now();this.target=this.props.targetId&&document.getElementById(this.props.targetId);var e=p.default._listeners.scroll?p.default._listeners.scroll.length:0;this.eventType="scroll.scrollEvent"+t+e,this.addScrollEvent()}}},{key:"componentWillUnmount",value:function(){p.default.removeEventListener(this.eventType,this.scrollEventListener,this.target)}},{key:"render",value:function(){var t=this.props,e=t.component,n=(t.playScale,t.location,t.targetId,t.onScroll,t.onChange,t.replay,t.componentProps),o=(0,a.default)(t,["component","playScale","location","targetId","onScroll","onChange","replay","componentProps"]);return u.default.createElement(e,(0,r.default)({},o,n))}}]),e}(u.default.Component);m.propTypes={component:f.default.any,playScale:f.default.any,id:f.default.string,onChange:f.default.func,onScroll:f.default.func,location:f.default.string,targetId:f.default.string,replay:f.default.bool,componentProps:f.default.object},m.defaultProps={component:"div",onChange:d.noop,onScroll:d.noop,playScale:.5,replay:!1,componentProps:{}},m.isScrollElement=!0,e.default=m,t.exports=e.default},76100:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=m(n(61707)),a=m(n(61200)),o=m(n(82864)),i=m(n(73006)),s=m(n(97559)),l=m(n(71212)),u=n(50959),c=m(u),f=m(n(40507)),p=m(n(57324)),d=m(n(70053)),h=n(78623);function m(t){return t&&t.__esModule?t:{default:t}}var v=function(t){function e(t){(0,o.default)(this,e);var n=(0,i.default)(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.scrollEventListener=function(t){n.getParam(t);var e=n.state.show,r=n.props,a=r.always,o=r.replay,i=n.elementShowHeight>n.clientHeight+n.leavePlayHeight;if(n.enter||!o&&i)e||n.setState({show:!0}),!a&&n.eventType&&p.default.removeEventListener(n.eventType,n.scrollEventListener,n.target);else if(a){var s=n.elementShowHeightObject.keys(n).length?e:n,o=Object.keys(e).length>Object.keys(n).length?n:e;Object.keys(a).forEach(function(e){r&&(e in o||(r=!1),"object"===(0,c.Z)(a[e])&&"object"===(0,c.Z)(o[e])?r=t(a[e],o[e]):"function"==typeof a[e]&&"function"==typeof o[e]?a[e].toString().replace(/\s+/g,"")!==o[e].toString().replace(/\s+/g,"")&&(r=!1):a[e]!==o[e]&&(r=!1))})};return Array.isArray(e)&&Array.isArray(n)?e.forEach(function(t,e){a(t,n[e])}):a(e,n),r}(m,Z.current)){var t,e=((t=P.current)||0===t?Array.isArray(t)?t:[t]:[]).map(function(t){return t instanceof Element||!(t instanceof i.Component)?t:(0,s.findDOMNode)(t)}).filter(function(t,e){return t instanceof Element?t:(console.warn("Warning: TweenOne tag[".concat(e,"] is not dom.")),!1)});if(N.current&&A&&N.current.kill(),O&&N.current){var n=d?j:(0,a.Z)((0,a.Z)({},j),C.props.style),r=Object.keys(n).map(function(t){return"".concat((0,u.Rs)(t),":").concat((0,u.YJ)(t,n[t]))}).join(";");e.forEach(function(t){t.setAttribute("style",r),delete t._tweenOneVars})}N.current=m&&(0,l.ZP)(e,{animation:m,attr:v,yoyo:T,moment:S,repeat:b,reverse:g,paused:y,repeatDelay:w,onChange:k,onChangeTimeline:E}),Z.current=m}},[m]),(0,i.useEffect)(function(){return function(){N.current&&N.current.kill&&N.current.kill()}},[]);var R=function(t){P.current=t,e&&"current"in e?e.current=t:"function"==typeof e&&e(t)};if(!d&&C&&"string"!=typeof C&&"boolean"!=typeof C&&"number"!=typeof C){var I=C.props||{},U=I.style,X=I.className,V=void 0===X?"":X,B=(0,a.Z)((0,a.Z)({},U),j),H=D?"".concat(D," ").concat(V).trim():V;return i.cloneElement(C,{style:B,ref:R,className:(0,r.Z)(new Set(H.split(/\s+/))).join(" ").trim()||void 0})}return d?(0,i.createElement)(d,(0,a.Z)((0,a.Z)({ref:R},_),h)):(console.warn("Warning: component is null, children must be ReactElement."),C)});d.isTweenOne=!0,d.displayName="TweenOne";var h=d},90750:function(t,e,n){"use strict";n.d(e,{Z:function(){return m}});var r=n(26407),a=n(12309),o=n(76729),i=n(10582),s=n(50959);function l(t){var e=[];return s.Children.forEach(t,function(t){e.push(t)}),e}function u(t,e){var n=null;return t&&t.forEach(function(t){!n&&t&&t.key===e&&(n=t)}),n}function c(t,e,n){return"function"==typeof t?t({key:e,index:n}):t}var f=n(33643),p=n(23175),d=["component","componentProps","leave","enter","appear","resetStyle","animatingClassName","onEnd","exclusive"],h=s.forwardRef(function(t,e){var n=t.component,h=void 0===n?"div":n,m=t.componentProps,v=void 0===m?{}:m,y=t.leave,g=void 0===y?{x:-50,opacity:0}:y,b=t.enter,w=void 0===b?{x:50,opacity:0,type:"from"}:b,T=t.appear,S=void 0===T||T,k=t.resetStyle,E=void 0===k||k,O=t.animatingClassName,x=void 0===O?["tween-one-entering","tween-one-leaving"]:O,A=t.onEnd,_=void 0===A?function(){}:A,M=t.exclusive,C=void 0!==M&&M,D=(0,i.Z)(t,d),F=(0,s.useRef)([]),j=(0,s.useRef)([]),P=(0,s.useRef)({}),Z=(0,s.useRef)(!1),N=(0,s.useRef)([]),L=(0,s.useRef)({}),R=l(t&&t.children),I=(0,s.useRef)(R),U=(0,s.useState)(R),X=(0,o.Z)(U,2),V=X[0],B=X[1],H=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.key;return P.current[n]=s.createElement(p.Z,(0,a.Z)((0,a.Z)({},e),{},{key:n,component:null}),t),P.current[n]},Y=function(t,e){var n=t.replace(x[e?1:0],"").trim();return -1===n.indexOf(x[e?0:1])&&(n="".concat(n," ").concat(x[e?0:1]).trim()),n},z=function(t,e){var n,r,a,o,i=(n=[],r={},a=[],o=null,e.forEach(function(e){e&&(e.key&&u(t,e.key)?(a.length&&(r[e.key]=a,a=[]),o=e.key):e.key&&a.push(e))}),o||(n=n.concat(a)),t.forEach(function(t){t&&(t.key&&r.hasOwnProperty(t.key)&&(n=n.concat(r[t.key])),n.push(t),t.key===o&&(n=n.concat(a)))}),n);return F.current=[],j.current=[],t.forEach(function(t){if(t){var n=t.key,r=u(e,n);n&&P.current[n]&&(P.current[n]=s.cloneElement(P.current[n],{},t)),!r&&n&&F.current.push(n)}}),e.forEach(function(e){if(e){var n=e.key;!u(t,n)&&n&&(j.current.push(n),delete P.current[n])}}),i},W=function(){!Object.keys(L.current).length&&N.current.length&&(B(z(N.current[N.current.length-1],I.current)),N.current=[])},q=function(t,e,n){var a=n.targets,o="object"===(0,r.Z)(a.className)&&"baseVal"in a.className,i="enter"===e||"appear"===e;if(t&&"onTimelineComplete"===n.mode){if(delete L.current[t],o?a.className.baseVal=a.className.baseVal.replace(x[i?0:1],"").trim():a.className=a.className.replace(x[i?0:1],"").trim(),i)F.current.splice(F.current.indexOf(t),1),F.current.length||W();else if("leave"===e&&(j.current.splice(j.current.indexOf(t),1),I.current=I.current.filter(function(e){return t!==e.key}),!j.current.length)){var s=I.current.map(function(t){return t.key});Object.keys(P.current).forEach(function(t){-1===s.indexOf(t)&&delete P.current[t]}),B(I.current)}_({key:t,type:e,target:n.targets})}},G=function(t,e,n){var r="leave"===n?g:w;"appear"===n&&(r=c(S,t.key,e)&&w||null);var a=c(r,t.key,e),o="appear"!==n||S?Y(t.props.className||"","enter"===n||"appear"===n)||void 0:t.props.className,i={key:t.key,animation:a,onChangeTimeline:function(e){q(t.key,n,e)},resetStyle:E,className:o};return(t.key&&F.current.concat(j.current).indexOf(t.key)>=0||!Z.current&&r)&&t.key&&!P.current[t.key]&&(L.current[t.key]=n),H(t,i)};(0,f.L)(function(){if(Z.current){var e=l(t.children).filter(function(t){return t}),n=l(I.current);Object.keys(L.current).length&&!C?N.current.push(e):B(z(e,n))}},[t.children]),(0,f.L)(function(){W()}),(0,s.useEffect)(function(){Z.current=!0},[]),I.current=V;var Q=V.map(function(t,e){if(!t||!t.key)return t;var n=t.key;return j.current.indexOf(n)>=0?G(t,j.current.indexOf(n),"leave"):(F.current.indexOf(n)>=0||L.current[n]&&-1===j.current.indexOf(n))&&!("enter"===L.current[n]&&P.current[n])?G(t,F.current.indexOf(n),"enter"):Z.current?P.current[n]:G(t,e,"appear")});return f.Q?h?(0,s.createElement)(h,(0,a.Z)((0,a.Z)((0,a.Z)({},D),v),{},{ref:e}),t.children):s.createElement(s.Fragment,null,t.children):h?(0,s.createElement)(h,(0,a.Z)((0,a.Z)((0,a.Z)({},D),v),{},{ref:e}),Q):Q[0]?(0,s.cloneElement)(Q[0],{ref:e}):null});h.displayName="TweenOneGroup",h.isTweenOneGroup=!0;var m=h},15193:function(t,e,n){"use strict";var r=n(15425),a=n(9905),o=n(15115),i=n(23175);i.Z.plugins=r.Z,i.Z.ticker=a.Z,i.Z.easing=o.Z,e.ZP=i.Z},33643:function(t,e,n){"use strict";n.d(e,{L:function(){return o},Q:function(){return a}});var r=n(50959),a=!window.document||!window.document.createElement,o=a?r.useEffect:r.useLayoutEffect},15115:function(t,e,n){"use strict";var r=n(96839),a=n.n(r),o=n(75050);a().path=function(t,e){var n=e||{};if(o.Q6)return"linear";for(var r=(0,o.cP)(t),i=r.getTotalLength(),s=n.rect||100,l=n.lengthPixel||200,u=[],c=0;c=c})[0]||r.getPointAtLength(l*i)).y/s}},e.Z=a()},9905:function(t,e,n){"use strict";var r=n(9130),a=n(82349),o=n(19616),i=n.n(o),s=n(75050),l=new(function(){function t(){var e=this;(0,r.Z)(this,t),this.lagThreshold=150,this.adjustedLag=33,this.emptyTime=0,this.elapsed=0,this.frameFPS=1e3/240,this.startTime=0,this.prevTime=0,this.useTimeout=!1,this.lastUpdate=this.startTime,this.nextTime=this.frameFPS,this.req=void 0,this.id=-1,this.tweenId=0,this.tickFn=[],this.state="sleep",this.time=0,this.frame=0,this.removeReq=function(t){return e.useTimeout?clearTimeout(t):(0,o.cancel)(t)},this.tick=function(){var t=e.tickFn;e.startTime||(e.startTime=(0,s.hK)()-e.frameFPS,e.lastUpdate=e.startTime),e.elapsed=(0,s.hK)()-e.lastUpdate,e.elapsed>e.lagThreshold&&(e.startTime+=e.elapsed-e.adjustedLag),e.lastUpdate+=e.elapsed,e.time=e.lastUpdate-e.startTime;var n=e.time-e.nextTime;if(n>0){e.frame++,e.nextTime+=n+(n>=e.frameFPS?4:e.frameFPS-n);for(var r=e.time-e.prevTime,a=0;a=e.emptyTime)){e.emptyTime=0,e.sleep();return}e.req&&(e.id=e.req(e.tick))},this.wake=function(){e.id&&e.sleep(),e.req=e.useTimeout?function(t){return setTimeout(t,e.frameFPS)}:i(),e.tick(),e.state="wake"},this.sleep=function(){e.removeReq(e.id),e.id=-1,e.req=void 0,e.state="sleep"},this.add=function(t){var n="TweenOneTicker_".concat(e.tweenId);return e.tweenId+=1,-1===e.tickFn.findIndex(function(t){return t.key===n})&&e.tickFn.push({key:n,fn:t}),e.emptyTime=0,e.req||e.wake(),n},this.clear=function(t){e.tickFn=e.tickFn.filter(function(e){return e.key!==t&&e.fn!==t})},this.timeout=function(t,n){if("function"!=typeof t)return console.warn("not function");var r=e.time,a=e.add(function(){e.time-r>=(n||0)&&(e.clear(a),t())});return a},this.interval=function(t,n){if("function"!=typeof t)return console.warn("not function"),null;var r=e.time;return e.add(function(){e.time-r>=(n||0)&&(r=e.time,t())})}}return(0,a.Z)(t,[{key:"fps",value:function(t,e){this.frameFPS=1e3/(t||240),this.nextTime=this.time+this.frameFPS,this.useTimeout=void 0===e?this.useTimeout:e,this.useTimeout&&(this.req=function(e){return setTimeout(e,t)})}}]),t}());e.Z=l},91772:function(t,e,n){"use strict";n.d(e,{ZP:function(){return P}});var r=n(26407),a=n(4860),o=n.n(a),i=n(1017),s=n(9130),l=n(82349),u=n(15425),c=n(12309),f=n(9159),p=n(75050),d=(0,l.Z)(function t(e){var n=this;(0,s.Z)(this,t),this.props=void 0,this.computedStyle=void 0,this.root=void 0,this.index=void 0,this.targetIndex=void 0,this.tweenVars={},this.transformName=void 0,this.filterName=void 0,this.target=void 0,this.start={},this.startAt={},this.propsData={data:{},type:{},unit:{},count:{},splitStr:{},isTransform:{}},this.setDefaultData=function(){var t=n.props;for(var e in t){var r=t[e],a=r.split&&r.split(/\s+|,/).length>1||e.match(/color|fill|stroke/i)||e.match(/shadow/i);if(("background"===e||"backgroundImage"===e)&&r.match(/[a-z|-]+\(([\s\S]*?)\)/gi)){n.propsData.data[e]={value:r,plugin:u.Z.GradientsPlugin};continue}if(a){n.propsData.data[e]={value:r,plugin:u.Z.ArrayPlugin};continue}var o=(0,f.Lo)(e),i=n.getTweenData(o,t[e]);n.propsData.data[o]=i.data[o],n.propsData.type[o]=i.type[o],n.propsData.unit[o]=i.unit[o],n.propsData.count[o]=i.count[o],n.propsData.isTransform[o]="transform"===(0,f.dt)(o),i.splitStr[o]&&(n.propsData.splitStr[o]=i.splitStr[o])}},this.getTweenData=function(t,e){var n={data:{},isTransform:{},type:{},unit:{},count:{},splitStr:{}};n.data[t]=e;var r="string"==typeof n.data[t];n.unit[t]=r?n.data[t].replace(/[^a-z|%]/g,""):"",n.count[t]=r?n.data[t].replace(/[^+|=|-]/g,""):"";var a=r?parseFloat(n.data[t].replace(/[a-z|%|=]/g,"")):n.data[t];return n.data[t]=a||0===a?a:n.data[t],n},this.setStartAtValue=function(t,e){return"object"===(0,r.Z)(e)?(0,p.kp)(t,e):t},this.getAnimStart=function(){var t=n.target,e=n.root,a=n.targetIndex,o=n.propsData,i=n.startAt,s=n.start,l=n.tweenVars,u={};for(var d in i)u[(0,f.Lo)(d)]=i[d];for(var h in n.computedStyle=n.computedStyle||(0,p.Dx)(t),l.style=l.style||{},o.data){var m=o.data[h];if(m.plugin){var v=new m.plugin(m.value,h);v.target=t,v.root=e,v.parent=parent,v.index=n.index,v.targetIndex=a,v.tweenVars=l,v.startAt=n.startAt,v.computedStyle=n.computedStyle,m.plugin=v,s[h]=v.getAnimStart();continue}var y=(0,f.dt)(h),g="transform"===y?n.transformName:y;g="filter"===y?n.filterName:g;var b=l.style[g],w=null!=b?b:n.computedStyle[y],T=null!==(x=u[h])&&void 0!==x?x:w,S=o.unit[h],k="";if("transform"===y){var E,O,x,A,_,M=(E=E||(T===b?(0,c.Z)({},b):(0,f.Ck)(n.computedStyle[n.transformName])))[h];u&&h in u&&(M=n.setStartAtValue(null!==(A=null!==(_=u[h].vars)&&void 0!==_?_:null==b?void 0:b[h])&&void 0!==A?A:M,u[h]),k=u[h].unit,"scale"===h?(E.scaleX=M,E.scaleY=M):E[h]=M),k!==S&&(M=(0,p.o7)({target:t,computedStyle:n.computedStyle,style:y,value:M,startUnit:k,endUnit:S}),"scale"===h?(E.scaleX=M,E.scaleY=M):E[h]=M),s[n.transformName]=E}else if("filter"===y){var C,D,F=f._T.filterConvert[h]||h;(O=O||(T===b?(0,c.Z)({},b):(0,f.GX)(w)||{}))[F]=O[F]||p.eL[F];var j=O[F];u&&h in u&&(j=n.setStartAtValue(null!==(C=u[h].vars)&&void 0!==C?C:j,u[h]),k=u[h].unit,O[F]=j),S!==k&&(O[F]=(0,p.o7)({target:t,computedStyle:n.computedStyle,style:y,value:j,startUnit:k,endUnit:S,fixed:(null===(D=n.computedStyle)||void 0===D?void 0:D.position)==="fixed"})),s[n.filterName]=O}else{(T=null!==(P=u[h])&&void 0!==P?P:w)&&"none"!==T&&"auto"!==T||(T=""),S=o.unit[y],k="object"===(0,r.Z)(T)?T.unit:"".concat(T).replace(/[^a-z|%]/g,""),T=n.setStartAtValue(w,u[h]),S!==k&&(T=(0,p.o7)({target:t,computedStyle:n.computedStyle,style:y,value:parseFloat(T),startUnit:k,endUnit:S,fixed:(null===(Z=n.computedStyle)||void 0===Z?void 0:Z.position)==="fixed"}));var P,Z,N=parseFloat(T);s[y]=isNaN(N)?(0,p.AG)(y):N}}return s},this.render=function(t){var e=n.propsData,r=n.start,a=n.tweenVars.style||{};r[n.transformName]&&!a[n.transformName]&&(a[n.transformName]=(0,c.Z)({},r[n.transformName])),r[n.filterName]&&!a[n.filterName]&&(a[n.filterName]=(0,c.Z)({},r[n.filterName]));var o=a[n.transformName],i=a[n.filterName],s=e.data,l=e.unit,u=e.count,d=e.isTransform;for(var h in s){var m=s[h];if(m.plugin){a[h]=m.plugin.render(t);continue}var v=d[h],y=v?r[n.transformName][h]:r[h],g=l[h],b=u[h];if(v){if("scale"===h){var w=r[n.transformName].scaleX,T=r[n.transformName].scaleY;"="===b.charAt(1)?(o.scaleX=w+m*t,o.scaleY=T+m*t):(o.scaleX=(m-w)*t+w,o.scaleY=(m-T)*t+T)}else o[h]=(0,p.NA)(parseFloat(y),m,t,b,g);o.text=(0,p.q$)(a[n.transformName])}else if(f._T.filter.indexOf(h)>=0){var S=f._T.filterConvert[h]||h;for(var k in y=parseFloat(r[n.filterName][S])||0,i[S]=(0,p.NA)(y,m,t,b,g),i.text="",i)"text"!==k&&(i.text="".concat(i.text," ").concat(k,"(").concat(i[k],")").trim())}else{var E=(0,f.YJ)(h,0);E="number"==typeof E?0:E.replace(/[^a-z|%]/g,""),g=g||E,"string"==typeof m?a[h]=m:a[h]=(0,p.NA)(y,m,t,b,g)}}return a},this.props=e,this.transformName=(0,f.Yf)("transform"),this.filterName=(0,f.Yf)("filter")||"filter",this.setDefaultData()});d.key="style",d.className="style";var h=n(1874),m=n(23248),v=n(53264),y=n(18295),g=(0,l.Z)(function t(e,n){(0,s.Z)(this,t),this.value=void 0,this.key=void 0,this.root=void 0,this.index=void 0,this.style={},this.start={},this.startAt={},this.target=void 0,this.value=e,this.key=n});g.className=void 0,g.key=void 0;var b=function(t){(0,v.Z)(n,t);var e=(0,y.Z)(n);function n(t,r){(0,s.Z)(this,n),(a=e.call(this,t,r)).value=void 0,a.key=void 0,a.start=[],a.tweenVars={},a.vars={},a.computedStyle=void 0,a.propsData={data:[],unit:[],count:[]},a.setDefaultData=function(t,e){var n,r=(0,m.Z)(a),o=r.propsData,i=r.value,s=(0,h.Z)(i);"color"===t&&(s[3]=null!==(n=s[3])&&void 0!==n?n:1),o.type=t,o.data=s.map(function(t){return parseFloat(t)||0===parseFloat(t)?parseFloat(t):t}),o.unit=s.map(function(t){return t.toString().replace(/[^a-z|%]/g,"")}),o.count=s.map(function(t){return t.toString().replace(/[^+|=|-]/g,"")}),e&&(o.splitStr=e)},a.convertToMarksArray=function(t,e,n,r){var o=(n||"").toString().replace(/[^a-z|%]/g,""),i="number"==typeof r?t[r]:void 0;return o===i?parseFloat(n):parseFloat(n)||0===parseFloat(n)?(0,p.o7)({target:a.target,computedStyle:a.computedStyle,style:e,value:n,startUnit:o,endUnit:i,isOriginWidth:"transformOrigin"===e&&!r}):n},a.getAnimStart=function(){var t,e,n,r,o,i,s,l,u,c=(0,m.Z)(a),d=c.startAt,h=c.target,v=c.key,y=c.propsData,g=c.computedStyle,b=c.tweenVars,w=null!==(t=null!==(e=null!==(n=null==d?void 0:d[v])&&void 0!==n?n:g?null===(r=b.style)||void 0===r?void 0:r[v]:b[v])&&void 0!==e?e:(g||h)[v])&&void 0!==t?t:"",T=y.data.indexOf("inset");-1===T||w.match("inset")||"shadow"!==y.type||(o=w,w=""),w&&"none"!==w&&"auto"!==w||(w=""),w="shadow"===y.type?(0,f.hy)(w,v):w,w="color"===y.type?(0,f.lu)(w):w,w="string"===y.type?w.split(/[\s|,]/):w,p.Fi[v]&&(w[1]=null!==(i=w[1])&&void 0!==i?i:w[0],w[2]=null!==(s=w[2])&&void 0!==s?s:w[0],w[3]=null!==(l=null!==(u=w[3])&&void 0!==u?u:w[1])&&void 0!==l?l:w[0]);var S=y.unit,k=w.map(function(t,e){return"NaN"===parseFloat(t).toString()?t:a.convertToMarksArray(S,v,t,e)});return a.start=k.concat(T>=0?"inset":[]),a.start.oldShadow=o,a.start},a.render=function(t){var e=(0,m.Z)(a),n=e.start,r=e.propsData,o=r.type,i=r.splitStr,s=r.data,l=r.count,u=r.unit,c=s.map(function(e,r){return"string"==typeof e?e:(0,p.NA)(n[r],e,t,l[r],u[r])});switch(o){case"string":c=c.join(i);break;case"color":c=(0,f.Lq)(c);break;case"shadow":var d=c.indexOf("inset")>=0,h=d?c.filter(function(t){return"inset"!==t}):c,v=h.slice(0,h.length-4).map(function(t){return"number"==typeof t?"".concat(t,"px"):t}),y=(0,f.Lq)(h.slice(h.length-4,h.length));c="".concat(n.oldShadow?"".concat(n.oldShadow,","):"").concat(v.join(" ")," ").concat(y," ").concat(d?"inset":"").trim()}return c},a.value=t,a.key=r;var a,o="",i="";return"string"==typeof t&&(r.match(p.gU)?(a.value=(0,f.hy)(t,r),o="shadow"):r.match(/color|fill|stroke/i)||t.match(p.rV)?(a.value=(0,f.lu)(t),o="color"):(i=t.replace(/[^\s|,]/g,"").replace(/\s+/g," "),a.value=t.split(/[\s|,]/),o="string")),a.setDefaultData(o,i),a}return(0,l.Z)(n)}(g);b.className="ArrayPlugin";var w={linear:{"to top":"0deg","to top right":"45deg","to right top":"45deg","to right":"90deg","to right bottom":"135deg","to bottom right":"135deg","to bottom":"180deg","to bottom left":"225deg","to left bottom":"225deg","to left":"270deg","to left top":"315deg","to top left":"315deg"},radial:{center:"50% 50%",top:"50% 0%","top right":"100% 0%","right top":"100% 0%",right:"100% 50%","right bottom":"100% 100%","bottom right":"100% 100%",bottom:"50% 100%","bottom left":"0% 100%","left bottom":"0% 100%",left:"0% 50%","left top":"0% 0%","top left":"0% 0%"}},T=["closest-side","closest-corner","farthest-side","farthest-corner"],S=function(t,e,n){console.warn("Warning: The gradient ".concat(t,"(").concat(e," => ").concat(n,") is different, which has been automatically converted to animation gradient ").concat(t,"(").concat(n,")."))},k=function(t){return"url"===t||t.indexOf("image")>=0||"paint"===t||"cross-fade"===t||"element"===t},E=function(t){(0,v.Z)(n,t);var e=(0,y.Z)(n);function n(t){var r;return(0,s.Z)(this,n),(r=e.call(this,t,"backgroundImage")).value=void 0,r.tweenVars={},r.vars=[],r.computedStyle=void 0,r.defaultStartVars=[],r.getPosition=function(t){return t.map(function(t){return{data:parseFloat(t),unit:t.replace(/[^a-z|%]/g,"")}})},r.getAngle=function(t,e){var n,a,o,i;switch(t.replace(/-|gradient|repeating]/g,"")){case"linear":o=r.getPosition((w.linear[e]||e||w.linear["to bottom"]).split(" "));break;case"radial":var s=e.split(" ");n=s.find(function(t){return T.indexOf(t)>=0})||T[3],a=s.find(function(t){return"circle"===t||"ellipse"===t})||"ellipse";var l=RegExp("".concat(n,"|").concat(a,"|at"),"g"),u=e.replace(l,"").trim();i=r.getPosition((w.radial[u]||u||w.radial.center).split(" "));break;case"conic":var c=e.split("at").map(function(t){return t.trim()}),f=(c[0]||"").split(" ");a=f[0]||"from",o=r.getPosition([f[1]||"0deg"]),i=r.getPosition((w.radial[c[1]]||c[1]||w.radial.center).split(" "))}return{extent:n,shape:a,angle:o,position:i}},r.valueToIValue=function(t){return t?t.replace(/\),\s+?(url|radial|conic|linear|repeating|image|element|cross|paint)/,")#,#$1").split("#,#").map(function(t){var e=t.replace(/([a-z|-]+)\((.*)\)/,"$1").trim();if("url"===e)return{type:e,values:t};var n=t.replace(/([a-z|-]+)\((.*)\)/,"$2").replace(/#([0-9a-f]{6}|[0-9a-f]{3})|(rgb[a]?|hsl)+\(\d+\,[\s+]?\d+[\%]?\,[\s+]?\d+[\%]?(\,\d+)?\)/gi,function(t){return t.replace(/\s+/g,"")}).replace(/\,([a-z|#|\s+])/g,"#,#$1").split("#,#").map(function(t){return t.trim()}),a=n[0].match(p.rV)?"":n[0];a&&n.splice(0,1);var o=r.getAngle(e,a);return{type:e,angle:o,values:n.map(function(t){var e,n=t.trim().split(/\s+/),r=(n[0].match(p.rV),n[0]);return r&&(n.splice(0,1),e=(0,f.lu)(r)),{color:e,positions:n.map(function(t){return{data:parseFloat(t),unit:t.toString().replace(/[^a-z|%]/g,"")}})}})}}):[]},r.getAnimStart=function(){var t,e=(0,m.Z)(r),n=e.startAt,a=e.key,o=e.computedStyle,i=e.target,s=e.vars,l=e.tweenVars,u=(0,c.Z)({},n),f=null!==(t=l[a])&&void 0!==t?t:(o||i)[a];f&&"none"!==f&&"auto"!==f||(f=""),u[a]=u[a]||f,u[a]=u[a]?r.valueToIValue(u[a]):r.defaultStartVars;var p=(Math.max(s.length,u[a].length)===u[a].length?u[a]:s).map(function(t,e){var n,o,i,l,f=u[a][e]||r.defaultStartVars[e],p=s[e]||f;if(f&&f.type===p.type||(f.type!==p.type&&S("type",f.type,p.type),f=r.defaultStartVars[e]),k(p.type)||"string"==typeof p.values||"string"==typeof f.values)return(0,c.Z)({},p);(null===(n=p.angle)||void 0===n?void 0:n.extent)!==(null===(o=f.angle)||void 0===o?void 0:o.extent)&&S("extent keyword",null===(i=f.angle)||void 0===i?void 0:i.extent,null===(l=p.angle)||void 0===l?void 0:l.extent);var d=Math.max(f.values.length,p.values.length)===f.values.length?f.values:p.values;return f.values=d.map(function(t,e){var n=f.values[e],r=p.values[e]||n;return(0,c.Z)((0,c.Z)({},n),{},{positions:(r||n).positions.map(function(t,a){var o=n?n.positions[a]||n.positions[n.positions.length-1]:r.positions[r.positions.length-1],i=t||o;return!o&&n&&f.values.length&&(o={data:100/(f.values.length-1)*e,unit:"%"}),i.unit!==o.unit&&S("units",o.unit,i.unit),{data:o.data,unit:i.unit}})})}),f});return r.start=p,r.start},r.render=function(t){var e="";return(Math.max(r.vars.length,r.start.length)===r.vars.length?r.vars:r.start).forEach(function(n,a){var o=r.start[a],i=r.vars[a]||o;if(k(i.type)||"string"==typeof i.values||!i.angle){e+="".concat(e?",":""," ").concat(i.values).trim();return}var s=(Math.max(o.values.length,i.values.length)===o.values.length?o.values:i.values).map(function(e,n){var r=o.values[n],a=i.values[n];a||(a=r);var s=r.color,l=r.positions;!s&&a.color&&(s=(0,h.Z)(a.color)),l||(l=a.positions.map(function(t){return(0,c.Z)({},t)}));var u=a.color?a.color.map(function(e,n){return(0,p.NA)(s[n],e,t)}):a.color,d=a.positions.map(function(e,n){return"".concat((0,p.NA)(l[n].data,e.data,t)).concat(e.unit)}).join(" ");return"".concat(u?(0,f.Lq)(u):u||""," ").concat(d).trim()}),l=i.angle,u=l.angle&&l.angle.map(function(e,n){return"".concat((0,p.NA)(o.angle.angle[n].data,e.data,t)).concat(e.unit)}).join(" "),d=l.position&&l.position.map(function(e,n){return"".concat((0,p.NA)(o.angle.position[n].data,e.data,t)).concat(e.unit)}).join(" "),m="".concat(l.extent||""," ").concat(l.shape||""," ").concat(u||""," ").concat(d?"at ".concat(d):"").trim();e+="".concat(e?",":""," ").concat(i.type,"(").concat(m?"".concat(m,","):"").concat(s.join(","),")").trim()}),e},r.value=t,r.vars=r.valueToIValue(t),r.defaultStartVars=r.vars.map(function(t){return k(t.type)||"string"==typeof t.values?(0,c.Z)({},t):(0,c.Z)((0,c.Z)({},t),{},{values:t.values.map(function(t){var e;return t.color&&"string"!=typeof t.color?(e=(0,h.Z)(t.color))[3]=0:e=t.color,{color:e,positions:(0,h.Z)(t.positions)}})})}),r}return(0,l.Z)(n)}(g);E.className="GradientsPlugin";var O=n(9905),x=function(){function t(){var e=this;(0,s.Z)(this,t),this.children=[],this.autoSleep=200,this.tickerKey=void 0,this.startTime=void 0,this.addChild=function(t){-1===e.children.indexOf(t)?(e.children.push(t),e.updateTickerState()):e.start()},this.removeChild=function(t){e.children=e.children.filter(function(e){return e!==t}),e.updateTickerState()},this.kill=function(t){e.children=e.children.filter(function(e){var n=e.root.targets.map(function(e,n){if(-1===t.indexOf(e))return e;delete e._tweenOneVars});e.root.targets=n;var r=!!n.filter(function(t){return t}).length;return r||e.kill(),r}),e.updateTickerState()},this.killAll=function(t){t&&(e.children.forEach(function(t){null==t||t.root.targets.forEach(function(t){t&&delete t._tweenOneVars})}),e.children=[]),O.Z.clear(e.tickerKey),e.tickerKey=void 0},this.getTotalTime=function(){for(var t=0,n=0;n0)})?e.start():e.killAll(!e.children.length)},this.start=function(){e.tickerKey||(e.tickerKey=O.Z.add(e.render))},this.render=function(t){for(var n=t.time,r=t.elapsed,a=void 0===r?0:r,o=e.children,i=o.length,s=0;su&&n1)&&!(t in u.Z);return t in u.Z||r?n?e:{value:e,plugins:[],array:r}:{vars:parseFloat(e.toString().replace(/=/g,"")),unit:e.toString().replace(/[^a-z|%]/g,""),count:"="===e.toString().charAt(1)?e.toString().replace(/[^\+\=|\-\=]/gi,""):""}},this.setEase=function(t){if("function"==typeof t){n.easing=t;return}if(t.match(/,/g)){n.easing=A.Z.path(t);return}n.easing=A.Z[t]},this.getTotalTime=function(){var t=n.props,e=t.duration,r=t.delay,a=t.repeat,o=void 0===a?0:a,i=t.repeatDelay;return -1===o?Number.MAX_VALUE:(void 0===r?0:r)+(void 0===e?450:e)*(o+1)+(void 0===i?0:i)*o},this.getEaseToRatio=function(t,e){var r=n.props.ease,a=void 0===r?"":r;return 0!==t&&1!==t||"function"==typeof a||a.match(/,/g)?n.easing(e?1-t:t,e?1:0,e?0:1,1):t},this.setRatioToVars=function(t){for(var e=n.vars,r=n.root,a=0;ar?r:e},this.render=function(t){var e=t.moment,r=t.fps,a=void 0===r?0:r,o=t.silence,i=t.render,s=n.parent,l=n.root,u=n.props,c=(0,p.Bn)(l.targets),f=s.onChange,d=u.repeat,h=void 0===d?0:d,m=u.type,v=u.duration,y=void 0===v?450:v,g=u.delay,b=void 0===g?0:g,w=u.repeatDelay,T=void 0===w?0:w,S=u.yoyo,k=e-b,E=Math.floor(k/(y+T))||0;k-=(y+T)*(E=(E=E>(h=-1===h?Number.MAX_VALUE:h)?h:E)<0?0:E);var O=!!(S&&E%2),x="from"===(void 0===m?"to":m),A=(!O||!x)&&(O||x);k=A?y-k:k;var _=x?0:b,M=A?1:0;if(!n.register&&e>=_&&(n.onRegisterAnimate(),(A&&k<=0||!A&&k>=y&&y)&&(n.prevMoment=e,M=A?0:1),n.setRatioToVars(M),f({index:n.index,vars:l.vars})),n.register&&e>b-a&&e=n.totalTime&&"onComplete"!==n.mode&&void 0!==n.prevMoment||void 0===n.prevMoment&&e>=n.totalTime&&y?(M=A?0:1,n.mode="onComplete",n.props.onComplete&&n.props.onComplete({mode:n.mode,index:n.index,moment:k,ratio:M,targets:c,vars:(0,p.Bn)(l.vars)})):void 0===n.prevMoment||e<=0&&e>-a&&"onStart"!==n.mode&&n.prevMoment>e?(n.mode="onStart",n.props.onStart&&n.props.onStart({mode:n.mode,index:n.index,moment:k,ratio:M,targets:c,vars:(0,p.Bn)(l.vars)})):(M=k&&y?k/y:0,n.mode="onUpdate",n.props.onUpdate&&n.props.onUpdate({mode:n.mode,index:n.index,moment:k,ratio:M,targets:c,vars:(0,p.Bn)(l.vars)})),h&&E!==n.repeatNum&&e&&"onUpdate"===n.mode&&(n.mode="onRepeat",n.props.onRepeat&&n.props.onRepeat({mode:n.mode,index:n.index,moment:k,ratio:M,targets:c,vars:(0,p.Bn)(n.root.vars)})),n.setRatioToVars(n.getEaseToRatio(M,x)),h&&(n.repeatNum=E);var C={mode:n.mode,moment:k,repeat:E,ratio:M,targets:l.targets,vars:l.vars,index:n.index};o&&(C.silence=o),i&&(C.render=i),f(C),n.prevMoment=e}},this.item=e,this.startAt=(0,c.Z)({},e.startAt),Object.keys(this.startAt).forEach(function(t){n.startAt[t]=n.changeValueToVars(t,n.startAt[t],!0)});var a={};for(var o in e){var i=e[o];o in p.$e?a[o]=i:this.vars[o]=this.changeValueToVars(o,i)}this.props=(0,c.Z)((0,c.Z)({},p.$e),a),this.setEase(this.props.ease)}return(0,l.Z)(t,[{key:"totalTime",get:function(){return this.getTotalTime()}}]),t}(),M=(0,l.Z)(function t(e){var n=this;(0,s.Z)(this,t),this.props=void 0,this.id=void 0,this.children=[],this.totalTime=0,this.totalTimeRegion=0,this.childTotalTime=0,this.childRegionTotalTime=0,this.prevMoment=void 0,this.progressTime=0,this.progressMoment=-1,this.startMoment=0,this.startTime=0,this.repeatNum=0,this.mode="onTimelineStart",this.pausedState=void 0,this.reverseState=void 0,this.root=void 0,this.parent=void 0,this.regionStartTime=0,this.regionEndTime=void 0,this.onChangeChild=void 0,this.onChangeTimeline=void 0,this.init=function(){for(var t=n.props,e=t.reverse,r=t.animation,a=t.moment,o=(0,p.Zk)(r),i=0;in.childTotalTime&&(n.childTotalTime=r,n.childRegionTotalTime=r)}else n.childTotalTime+=e.totalTime,n.childRegionTotalTime+=e.totalTime}n.regionStartTime&&(n.childRegionTotalTime-=n.regionStartTime),n.regionEndTime&&(n.childRegionTotalTime=n.regionEndTime-n.regionStartTime);var a=n.props,o=a.repeat,i=void 0===o?0:o,s=a.repeatDelay,l=void 0===s?0:s,u=a.delay;n.totalTime=-1===i?Number.MAX_VALUE:u+n.childTotalTime*(i+1)+l*i,n.totalTimeRegion=-1===i?Number.MAX_VALUE:u+n.childRegionTotalTime*(i+1)+l*i},this.setStartTimeOrMoment=function(t){n.startTime=O.Z.time,n.startMoment=t||n.progressMoment},this.reRenderCall=function(){n.render({time:n.startTime,elapsed:O.Z.elapsed||O.Z.frameFPS})},this.play=function(t){var e,r;t?null===(r=n.parent)||void 0===r||r.updateTickerState():null===(e=n.parent)||void 0===e||e.addChild(n)},this.paused=function(){var t=!(arguments.length>0)||void 0===arguments[0]||arguments[0];n.pausedState=t,n.setStartTimeOrMoment(),n.play(t)},this.reverse=function(t){n.reverseState=t,n.setStartTimeOrMoment(),n.play(n.pausedState)},this.goto=function(t,e){var r=t-n.regionStartTime;n.startTime=O.Z.time,n.startMoment=r>n.totalTime?n.totalTime:r,n.progressMoment=n.startMoment,n.progressTime=r,n.play(n.pausedState),n.reRenderCall(),!!e!==n.pausedState&&n.paused(e)},this.kill=function(t){if("number"==typeof t)n.paused(),delete n.children[t],n.setTotalTime(),n.paused(!1);else{var e;n.children=[],null===(e=n.parent)||void 0===e||e.removeChild(n)}},this.onChange=function(t){t.timelineMoment=n.progressMoment,n.onChangeChild(t)},this.render=function(t){var e=t.time,r=t.elapsed||O.Z.frameFPS||0,a=n.totalTime,o=n.totalTimeRegion,i=n.childTotalTime,s=n.childRegionTotalTime,l=n.children,u=n.props,c=n.startTime,f=n.reverseState,p=n.pausedState,d=n.startMoment,h=n.onChangeTimeline,m=n.parent,v=n.root,y=n.prevMoment,g=n.regionStartTime,b=u.repeatDelay,w=void 0===b?0:b,T=u.yoyo,S=u.delay,k=u.repeat,E=void 0===k?0:k;E=-1===E?Number.MAX_VALUE:E;var x=e-c-S,A=f?d-x:x+d;if(!(A<-r)){var _=A<0?0:A;_=_>a?a:_,_=do?d:_;var M=E?Math.floor(_/(s+w)):0,C=_-(s+w)*(M=E&&M>E?E:M),D=!!(T&&M%2);C=g+(C=D?s-C:C);var F=f?!D:D;if(n.mode="onTimelineUpdate","number"!=typeof y&&(n.mode="onTimelineStart"),_>=o-S&&"number"==typeof y&&(n.mode="onTimelineComplete"),M!==n.repeatNum&&(n.mode="onTimelineRepeat",_>i*M&&_=0;F?j++:j--){var P=l[j];F||(P.prevMoment=void 0),P.render({moment:F?P.totalTime:0,fps:r})}h({moment:_,totalTime:a,repeat:M,mode:n.mode,targets:v.targets}),n.mode="onTimelineUpdate"}E&&(n.repeatNum=M),n.progressMoment=_,n.prevMoment=_,n.progressTime=x;for(var Z=0;Z=N.appearTo-r&&CL+r&&!D&&N.totalTime||void 0===N.mode&&!N.totalTime)&&(N.render({moment:N.totalTime,fps:r}),N.prevMoment=void 0),CL&&"onComplete"===N.mode&&!D)return;I=C>L?L:C,N.render({moment:I-N.appearTo,fps:r}),L||(N.render({moment:N.totalTime,fps:r,render:!0}),N.prevMoment=void 0)}}h({moment:_,totalTime:a,repeat:M,mode:n.mode,targets:v.targets}),(p||o&&A+S>=o&&!f||f&&A+S<=0||!l.length)&&(null==m||m.removeChild(n))}},this.props=e;var r=this.props,a=r.paused,o=r.reverse;this.reverseState=o,this.pausedState=a,this.regionStartTime=e.regionStartTime||0,this.regionEndTime=e.regionEndTime});u.Z.push(b),u.Z.push(E),u.Z.push(d);var C=0,D=new x,F=function(){function t(e,n){var a,l=this;(0,s.Z)(this,t),this.targets=void 0,this.props=void 0,this.timeline=void 0,this.animate=void 0,this.$reverse=!1,this.vars=[],this.initTime=void 0,this.attr=void 0,this.init=(a=(0,i.Z)(o().mark(function t(e){var n;return o().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:n=(0,p.Sx)(e),l.targets[0].tagName&&!l.attr&&(n.animation=(0,p.Zk)(n.animation).map(function(t){var e={style:{}};for(var n in t)n in u.Z||n in p.$e?e[n]=t[n]:e.style[n]=t[n];return Object.keys(e.style).length||delete e.style,t.duration&&(t.duration=Math.round(t.duration)),t.delay&&(t.delay=Math.round(t.delay)),t.appearTo&&(t.appearTo=Math.round(t.appearTo)),t.repeatDelay&&(t.repeatDelay=Math.round(t.repeatDelay)),e})),l.animate=new M(n),l.animate.id="TweenOne_".concat(C),C++,l.animate.startTime=l.initTime,l.animate.onChangeChild=l.onChange,l.animate.onChangeTimeline=l.onChangeTimeline,l.animate.root=l,l.animate.parent=l.timeline,l.animate.init();case 11:case"end":return t.stop()}},t)})),function(t){return a.apply(this,arguments)}),this.renderToDom=function(){for(var t=0;t3&&void 0!==arguments[3]?arguments[3]:"",a=arguments.length>4?arguments[4]:void 0;return"+="===r||"-="===r?t+e*n+(a||0):(e-t)*n+t+(a||0)},g=function(t){return t&&document.defaultView?document.defaultView.getComputedStyle(t):{}},b={margin:1,padding:1,borderWidth:1,borderRadius:1};function w(t){var e,n,r,a=t.target,o=t.computedStyle,s=t.style,l=t.value,u=t.startUnit,c=t.endUnit,f=t.fixed,p=t.isOriginWidth,d=t.useCurrentTarget;if(i)return l;var h=/(?:Left|Right|Width|X)/i.test(s)||p;h="padding"===s||"marign"===s||h;var m=-1!==s.indexOf("border")||-1!==s.indexOf("translate")||"transformOrigin"===s||d?a:a.parentNode||document.body;switch(m=f?document.body:m,u){case"%":e=parseFloat(l)/100*(h?m.clientWidth:m.clientHeight);break;case"vw":e=parseFloat(l)*document.body.clientWidth/100;break;case"vh":e=parseFloat(l)*document.body.clientHeight/100;break;case"em":o?e=parseFloat(l)*parseFloat(o.fontSize):(r="em",e=parseFloat(l));break;case"rem":o?(n=window.getComputedStyle(document.getElementsByTagName("html")[0]),e=parseFloat(l)*parseFloat(n.fontSize)):(r="rem",e=parseFloat(l));break;default:e=parseFloat(l)}switch(c){case"%":e=e?100*e/(h?m.clientWidth:m.clientHeight):0;break;case"vw":e=parseFloat(l)/document.body.clientWidth*100;break;case"vh":e=parseFloat(l)/document.body.clientHeight*100;break;case"em":o?e=parseFloat(l)/parseFloat(o.fontSize):(r="em",e=parseFloat(l));break;case"rem":o?(n=n||window.getComputedStyle(document.getElementsByTagName("html")[0]),e=parseFloat(l)/parseFloat(n.fontSize)):(r="rem",e=parseFloat(l))}return r&&console.warn("Warning: Element is not 'DOM, can not use '".concat(r,"', automatically convert to animation units.")),e}function T(t){if("string"==typeof t)return t;var e=t.perspective,n=t.rotate,r=t.rotateX,a=t.rotateY,o=t.scaleX,i=t.scaleY,s=t.scaleZ,l=t.skewX,u=t.skewY,c="string"==typeof t.translateX?t.translateX:"".concat(t.translateX,"px"),f="string"==typeof t.translateY?t.translateY:"".concat(t.translateY,"px"),p="string"==typeof t.translateZ?t.translateZ:"".concat(t.translateZ,"px"),d=l||u?"skew(".concat(l,"deg,").concat(u,"deg)"):"",h=n?"rotate(".concat(n,"deg)"):"",m=1!==o||1!==i||1!==s?"scale3d(".concat(o,",").concat(i,",").concat(s,")"):"",v=r?"rotateX(".concat(r,"deg)"):"",y=a?"rotateY(".concat(a,"deg)"):"",g=t.translateZ?"translate3d(".concat(c,",").concat(f,",").concat(p,")"):(t.translateX||t.translateY)&&"translate(".concat(c,",").concat(f,")")||(m||h||v||y||d?"":"translate(0px, 0px)");return"".concat(e?"perspective(".concat(e,"px)"):""," ").concat(g," ").concat(m," ").concat(h," ").concat(v," ").concat(y," ").concat(d).trim()}var S={brightness:1,saturate:1,contrast:1,grayScale:0,hueRotate:"0deg",sepia:0,invert:0}},11375:function(t,e,n){var r=n(86214);(function(){var e,n,a,o;"undefined"!=typeof performance&&null!==performance&&performance.now?t.exports=function(){return performance.now()}:null!=r&&r.hrtime?(t.exports=function(){return(e()-o)/1e6},n=r.hrtime,o=(e=function(){var t;return 1e9*(t=n())[0]+t[1]})()-1e9*r.uptime()):Date.now?(t.exports=function(){return Date.now()-a},a=Date.now()):(t.exports=function(){return new Date().getTime()-a},a=new Date().getTime())}).call(this)},19616:function(t,e,n){for(var r=n(11375),a="undefined"==typeof window?n.g:window,o=["moz","webkit"],i="AnimationFrame",s=a["request"+i],l=a["cancel"+i]||a["cancelRequest"+i],u=0;!s&&u2||Array.isArray(F[0]))&&(i=i.map(function(t){return 100*t}),i="M0,100C".concat(i[0],",").concat(100-i[1],",").concat(i[2],",").concat(100-i[3],",100,0")),{startAnim:o,animate:a,ease:i,duration:s}},td=function(t,e){var n=e.targets;n.className=n.className.replace(R[1],""),-1===n.className.indexOf(R[0])&&(n.className="".concat(n.className," ").concat(R[0]).trim()),Y.current.indexOf(t)>=0&&Y.current.splice(Y.current.indexOf(t),1),H.current[t]=!0},th=function(t,e){if(!(W.current.indexOf(t)>=0)){var n=e.targets;n.className=n.className.replace(R[0],"").trim(),delete K.current[t],U({key:t,type:"enter",target:n})}},tm=function(t,e){var n=e.targets;n.className=n.className.replace(R[0],""),-1===n.className.indexOf(R[1])&&(n.className="".concat(n.className," ").concat(R[1]).trim())},tv=function(e,n){if(p(t.children).findIndex(function(t){return t&&t.key===e}),!(p(t.children).findIndex(function(t){return t&&t.key===e})>=0)){delete H.current[e],delete K.current[e],tt.current=tt.current.filter(function(t){return t.key!==e}),W.current.indexOf(e)>=0&&W.current.splice(W.current.indexOf(e),1),W.current.some(function(t){return ts[t]})||(ta(p(t.children)),tl((0,a.Z)({},H.current)),q.current.forEach(function(t){delete $.current[t]}));var r=n.targets;r.className=r.className.replace(R[1],"").trim(),U({key:e,type:"leave",target:r})}},ty=function(t){ts[t]=!0,u.Z.clear(G.current[t]),delete G.current[t],tl((0,a.Z)({},ts))},tg=function(t,e){var n=h(S,t,e)[0],r=h(x,t,e)[0];G.current[t]=u.Z.timeout(function(){ty(t)},n*e+r)},tb=function(t){u.Z.clear(G.current[t]),delete G.current[t]},tw=function(t,e,n,r){var o=tp(t,e,r),i=function(e){("enter"===r?td:tm)(t,e)},s=function(e){("enter"===r?th:tv)(t,e)};if(Array.isArray(o.animate)){var l=o.animate.length-1;return o.animate.map(function(t,e){return(0,a.Z)((0,a.Z)({},t),{},{startAt:o.startAnim?o.startAnim[e]:void 0,duration:o.duration/l,delay:e||"leave"!==r?0:n,onStart:e?void 0:i,onComplete:e===l?s:void 0})})}return(0,a.Z)((0,a.Z)({},o.animate),{},{startAt:o.startAnim||void 0,ease:o.ease,duration:o.duration,onStart:i,onComplete:s,delay:n})};return(0,s.useEffect)(function(){return function(){Object.keys(K.current).forEach(function(t){var e=K.current[t];e&&e.kill()})}},[]),(0,s.useEffect)(function(){var e,n,r,o,i=p(t.children).filter(function(t){return t}),s=tt.current.filter(function(t){return t}),l=(n=[],r={},o=[],s.forEach(function(t){t&&(d(i,t.key)?(o.length&&(r[t.key]=o,o=[]),e=t.key):t.key&&o.push(t))}),e||(n=n.concat(o)),i.forEach(function(t){t&&(r.hasOwnProperty(t.key)&&(n=n.concat(r[t.key])),n.push(t),t.key===e&&(n=n.concat(o)))}),n),c=[],f=[];if(V||J.current)s.forEach(function(t){if(t){var e=t.key;!d(i,e)&&e&&(f.push(e),u.Z.clear(G.current[e]),delete G.current[e])}}),i.forEach(function(t){if(t){var e=t.key;(!d(s,e)&&e||(!$.current[e]||"leave"===$.current[e]||Y.current.indexOf(e)>=0)&&-1===f.indexOf(e))&&c.push(e)}});else{var h={};l.forEach(function(t){t&&t.key&&(h[t.key]=!0)}),tt.current=l,H.current=(0,a.Z)({},h),tl(h)}Y.current=c,z.current=[].concat(c),W.current=f,q.current=[].concat(f),ta(l)},[t.children]),(0,s.useLayoutEffect)(function(){if(tt.current=tr||[],V||J.current){var t=(0,r.Z)(Y.current),e=(0,r.Z)(W.current);t.forEach(tg),e.forEach(tb)}tr&&(J.current=!0)},[tr]),(0,s.useLayoutEffect)(function(){tr&&tr.forEach(function(t){var e,n=t.key,r=Q.current[n];if(r){var o=W.current.indexOf(n),i=h(S,n,o),s=h(x,n,o);if(o>=0){if("leave"===$.current[n])return;var l=P?W.current.length-o-1:o;e=tw(n,o,i[1]*l+s[1],"leave"),$.current[n]="leave"}else{if("enter"===$.current[n]||-1===Y.current.indexOf(n))return;o=z.current.indexOf(n);var u=i[0]*o+s[0];e=tw(n,o,"leave"===$.current[n]?u:0,"enter"),$.current[n]="enter"}if(K.current[n]&&K.current[n].kill(),N){var f=(0,a.Z)((0,a.Z)({},Array.isArray(e)?e[0].startAt:e.startAt),{},{type:"set"});(0,c.ZP)(r,{animation:f})}K.current[n]=(0,c.ZP)(r,{animation:e})}})},[ts,tr]),(0,s.useMemo)(function(){if(f)return(0,s.createElement)(g,(0,a.Z)((0,a.Z)((0,a.Z)({},B),w),{},{ref:e}));var t=p(tr).map(function(t){return t&&t.key?ts[t.key]&&(0,s.cloneElement)(t,{ref:function(e){Q.current[t.key]=e instanceof Element?e:(0,l.findDOMNode)(e),e||delete Q.current[t.key]},key:t.key}):t}),n=(0,a.Z)((0,a.Z)((0,a.Z)({},B),w),{},{ref:e});return(0,s.createElement)(g,n,t)},[ts,tr])})},32609:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if("undefined"!=typeof XDomainRequest)return e(null),null;var n=new XMLHttpRequest;return n.onreadystatechange=function(){n.readyState===XMLHttpRequest.DONE&&200===n.status&&e(JSON.parse(n.responseText))},n.open("GET",t,!0),n.send(),n},t.exports=e.default},1160:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Object.assign||function(t){for(var e=1;e=0)&&Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}(e,["className","type","size"]);delete l.namespace,delete l.repo;var u=this.state.count,f=s.classNames((n in(t={"github-btn":!0,"github-btn-large":"large"===i})?Object.defineProperty(t,n,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[n]=n,t));return a.default.createElement("span",r({},l,{className:f}),a.default.createElement("a",{className:"gh-btn",href:this.getRepoUrl(),target:"_blank"},a.default.createElement("span",{className:"gh-ico","aria-hidden":"true"}),a.default.createElement("span",{className:"gh-text"},c[o])),a.default.createElement("a",{className:"gh-count",target:"_blank",href:this.getCountUrl(),style:this.getCountStyle()},u))},e}(a.default.Component);p.displayName="GitHubButton",p.propTypes={className:o.default.string,type:o.default.oneOf(["stargazers","watchers","forks"]).isRequired,namespace:o.default.string.isRequired,repo:o.default.string.isRequired,size:o.default.oneOf(["large"])},e.default=p,t.exports=e.default},40639:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.classNames=function(t){return Object.keys(t).filter(function(e){return t[e]}).join(" ")}},89971:function(t,e){"use strict";e.Dm=function(t){return t.replace(/[A-Z]/,function(t){return"-"+t.toLocaleLowerCase()})},e.FH=f,e.wz=function(t){if("undefined"==typeof document)return null;var e=["WebKitCSS","MozCSS","DOM","MsCSS","MSCSS","OCSS","CSS"].filter(function(t){return t+"Matrix" in window});return e.length?new window[e[0]+"Matrix"](t):(console.warn("Browsers do not support matrix."),"")},e.Yf=function(t){if("undefined"==typeof document)return null;if("filter"!==t&&t in document.body.style)return t;var e=t.charAt(0).toUpperCase()+t.substr(1),n=["O","Moz","ms","Ms","Webkit"].filter(function(t){return""+t+e in document.body.style});return n[0]?""+n[0]+e:null},e.Lo=function(t){var e=t;return"z"===(e="y"===(e="x"===e?"translateX":e)?"translateY":e)?"translateZ":e},e.lu=p,e.hy=function(t){if(!t)return[0,0,0,0,0,0,0];var e=t.replace(/,\s+/gi,",").split(/\s+/).filter(function(t){return t}),n=e.indexOf("inset");n>=0&&e.splice(n,1);var r=e.find(function(t){return i[t]||t.match(/#([0-9a-fA-F]{6}|[0-9a-fA-F]{3})|(rgb|hsl)+(?:a)?\((.*)\)/i)})||"black",a=e.indexOf(r);e.splice(a,1);var o=p(r);return o[3]="number"==typeof o[3]?o[3]:1,e.concat(o,n>=0?["inset"]:[])},e.Lq=function(t){return(4===t.length?"rgba":"rgb")+"("+t.map(function(t,e){return e<3?Math.round(t):t}).join(",")+")"},e.Tk=d,e.dt=function(t){var e=d(t);return c.filter.indexOf(e)>=0?"filter":e},e.GX=function(t){if("none"===t||!t||""===t)return null;var e=t.replace(" ","").split(")").filter(function(t){return t}),n={};return e.forEach(function(t){var e=t.split("(");n[e[0]]=e[1]}),n},e.Ck=function(t){var e,n,r,a=t&&"none"!==t&&""!==t?t:"matrix(1, 0, 0, 1, 0, 0)";if(!a.match("matrix"))return(r={}).translateX=0,r.translateY=0,r.translateZ=0,r.rotate=0,r.rotateX=0,r.rotateY=0,r.scaleX=1,r.scaleY=1,r.scaleZ=1,r.skewX=0,r.skewY=0,r.perspective=0,(t.trim().match(/(\w+)\([^\)]+\)/ig)||[]).forEach(function(t){var e=t.split("("),n=e[0].trim(),a=e[1].replace(")","").trim();a.match(/%|em|rem/ig)&&console.warn("value("+a+") must be absolute, not relative, has been converted to absolute."),a=a.replace(/px|deg|\)/ig,""),c.transformGroup[n]&&"rotate"!==n?(a=a.split(",").map(function(t){return parseFloat(t)}),"scale3d"===n||"translate3d"===n?["X","Y","Z"].forEach(function(t,e){var o=n.substring(0,n.length-2);r[""+o+t]=a[e]||r[""+o+t]}):"rotate3d"===n?(r.rotateX=a[0]&&a[3]||r.rotateX,r.rotateY=a[1]&&a[3]||r.rotateY,r.rotate=a[2]&&a[3]||r.rotate):["X","Y"].forEach(function(t,e){r[""+n+t]=a[e]||r[""+n+t]})):"rotateZ"===n?r.rotate=parseFloat(a)||r.rotate:r[n]=parseFloat(a)||r[n]}),r;var o=(e=a.match(/(?:\-|\b)[\d\-\.e]+\b/gi),n={},6===e.length?(n.m11=parseFloat(e[0]),n.m12=parseFloat(e[1]),n.m13=0,n.m14=0,n.m21=parseFloat(e[2]),n.m22=parseFloat(e[3]),n.m23=0,n.m24=0,n.m31=0,n.m32=0,n.m33=1,n.m34=0,n.m41=parseFloat(e[4]),n.m42=parseFloat(e[5]),n.m43=0,n.m44=0):e.forEach(function(t,e){n["m"+(Math.floor(e/4)+1)+(e%4+1)]=parseFloat(t)}),n),i=o.m11,s=o.m12,u=o.m13,p=o.m14,d=o.m21,h=o.m22,m=o.m23,v=o.m24,y=o.m31,g=o.m32,b=o.m33,w=o.m34,T=o.m43,S=void 0,k=void 0,E=void 0,O={},x=Math.atan2(m,b),A=Math.tan(d),_=Math.tan(s),M=void 0,C=void 0;return O.rotateX=f(x*l)||0,x&&(S=d*(M=Math.cos(-x))+y*(C=Math.sin(-x)),k=h*M+g*C,E=m*M+b*C,y=-(d*C)+y*M,g=-(h*C)+g*M,b=-(m*C)+b*M,w=-(v*C)+w*M,d=S,h=k,m=E),x=Math.atan2(-u,b),O.rotateY=f(x*l)||0,x&&(S=i*(M=Math.cos(-x))-y*(C=Math.sin(-x)),k=s*M-g*C,E=u*M-b*C,g=s*C+g*M,b=u*C+b*M,w=p*C+w*M,i=S,s=k,u=E),x=Math.atan2(s,i),O.rotate=f(x*l)||0,x&&(S=i*(M=Math.cos(x))+s*(C=Math.sin(x)),k=d*M+h*C,E=y*M+g*C,s=s*M-i*C,h=h*M-d*C,g=g*M-y*C,i=S,d=k,y=E),O.rotateX&&Math.abs(O.rotateX)+Math.abs(O.rotate)>359.9&&(O.rotateX=O.rotate=0,O.rotateY=180-O.rotateY||0),O.scaleX=f(Math.sqrt(i*i+s*s+u*u)),O.scaleY=f(Math.sqrt(h*h+m*m)),O.scaleZ=f(Math.sqrt(y*y+g*g+b*b)),O.skewX=A===-_?0:A,O.skewY=_===-A?0:_,O.perspective=w?1/(w<0?-w:w):0,O.translateX=o.m41,O.translateY=o.m42,O.translateZ=T,O},e.YJ=function(t,e){var r=void 0;return n[t]||"number"!=typeof e?"content"!==t||a.test(e)||(r="'"+e.replace(/'/g,"\\'")+"'"):r=" "+e+"px",r||e};var n={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!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},r=["Webkit","ms","Moz","O"];Object.keys(n).forEach(function(t){r.forEach(function(e){n[e+t.charAt(0).toUpperCase()+t.substring(1)]=n[t]})});var a=/^(normal|none|(\b(url\([^)]*\)|chapter_counter|attr\([^)]*\)|(no-)?(open|close)-quote|inherit)((\b\s*)|$|\s+))+)$/,o="undefined"!=typeof document&&!!(navigator&&(navigator.userAgent.indexOf("MSIE 8.0")>0||navigator.userAgent.indexOf("MSIE 9.0")>0)),i={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},s=function(t,e,n){var r=t>1?t-1:t,a=3*(r=t<0?t+1:r)<2?e+(n-e)*(2/3-r)*6:e,o=r<.5?n:a;return 255*(6*r<1?e+(n-e)*r*6:o)+.5|0},l=180/Math.PI,u={_lists:{transformsBase:["translate","translateX","translateY","scale","scaleX","scaleY","skewX","skewY","rotateZ","rotate"],transforms3D:["translate3d","translateZ","scaleZ","rotateX","rotateY","perspective"]},transformGroup:{translate:1,translate3d:1,scale:1,scale3d:1,rotate:1,rotate3d:1,skew:1},filter:["grayScale","sepia","hueRotate","invert","brightness","contrast","blur"],filterConvert:{grayScale:"grayscale",hueRotate:"hue-rotate"}};u._lists.transformsBase=o?u._lists.transformsBase:u._lists.transformsBase.concat(u._lists.transforms3D);var c=e._T=u;function f(t,e){var n=e?Math.pow(10,e):1e5,r=0|t,a=t-r,o=t;if(a){var i=(a*n+(t<0?-.5:.5)|0)/n,s=0|i;o=(t<0&&!(r+s)?"-":"")+(r+s)+"."+(i.toString().split(".")[1]||"")}return parseFloat(o)}function p(t){var e=void 0,n=void 0,r=void 0,a=void 0,o=void 0,l=void 0,u=void 0,c=t,f=/(?:\d|\-\d|\.\d|\-\.\d)+/g;return c?"number"==typeof c?e=[c>>16,c>>8&255,255&c]:(","===c.charAt(c.length-1)&&(c=c.substr(0,c.length-1)),i[c]?e=i[c]:"#"===c.charAt(0)?(4===c.length&&(c="#"+(n=c.charAt(1))+n+(r=c.charAt(2))+r+(a=c.charAt(3))+a),e=[(c=parseInt(c.substr(1),16))>>16,c>>8&255,255&c]):"hsl"===c.substr(0,3)?(o=Number((e=c.match(f))[0])%360/360,l=Number(e[1])/100,r=(u=Number(e[2])/100)<=.5?u*(l+1):u+l-u*l,n=2*u-r,e.length>3&&(e[3]=Number(e[3])),e[0]=s(o+1/3,n,r),e[1]=s(o,n,r),e[2]=s(o-1/3,n,r)):e=c.match(f)||i.transparent,e[0]=Number(e[0]),e[1]=Number(e[1]),e[2]=Number(e[2]),e.length>3&&(e[3]=Number(e[3]))):e=i.black,e}function d(t){return c._lists.transformsBase.indexOf(t)>=0?"transform":t}},9159:function(t,e){"use strict";e.Rs=p,e.Yf=function(t){if("undefined"==typeof document)return null;if("filter"!==t&&t in document.body.style)return t;var e=t.charAt(0).toUpperCase()+t.substr(1),n=["O","Moz","ms","Ms","Webkit"].filter(function(t){return""+t+e in document.body.style});return n[0]?""+n[0]+e:null},e.Lo=function(t){var e=t;return"z"===(e="y"===(e="x"===e?"translateX":e)?"translateY":e)?"translateZ":e},e.lu=m,e.hy=function(t,e){var n=e&&p(e);if(!t)return"boxShadow"===n?[0,0,0,0,0,0,0,0]:[0,0,0,0,0,0,0];var r=t.replace(/,\s+/gi,",").split(/\s+/).filter(function(t){return t}),a=r.indexOf("inset");a>=0&&r.splice(a,1);var o=r.find(function(t){return i[t]||t.match(/#([0-9a-fA-F]{6}|[0-9a-fA-F]{3})|(rgb|hsl)+(?:a)?\((.*)\)/i)})||"black",s=r.indexOf(o);r.splice(s,1);var l=m(o);return l[3]="number"==typeof l[3]?l[3]:1,"boxShadow"===n&&r.length<4&&r.push(0),r.concat(l,a>=0?["inset"]:[])},e.Lq=function(t){return(4===t.length?"rgba":"rgb")+"("+t.map(function(t,e){return e<3?Math.round(t):t}).join(",")+")"},e.dt=function(t){var e,n=(e=t,f._lists.transformsBase.indexOf(e)>=0?"transform":e);return f.filter.indexOf(n)>=0?"filter":n},e.GX=function(t){if("none"===t||!t||""===t)return null;var e=t.replace(/\s+/g,"").split(")").filter(function(t){return t}),n={};return e.forEach(function(t){var e=t.split("(");n[e[0]]=e[1]}),n},e.Ck=function(t){var e,n,r,a=t&&"none"!==t&&""!==t?t:"matrix(1, 0, 0, 1, 0, 0)";if(!a.match("matrix"))return(r={}).translateX=0,r.translateY=0,r.translateZ=0,r.rotate=0,r.rotateX=0,r.rotateY=0,r.scaleX=1,r.scaleY=1,r.scaleZ=1,r.skewX=0,r.skewY=0,r.perspective=0,(t.trim().match(/(\w+)\([^\)]+\)/ig)||[]).forEach(function(t){var e=t.split("("),n=e[0].trim(),a=e[1].replace(")","").trim();a.match(/%|em|rem/ig)&&console.warn("value("+a+") must be absolute, not relative, has been converted to absolute."),a=a.replace(/px|deg|\)/ig,""),f.transformGroup[n]&&"rotate"!==n?(a=a.split(",").map(function(t){return parseFloat(t)}),"scale3d"===n||"translate3d"===n?["X","Y","Z"].forEach(function(t,e){var o=n.substring(0,n.length-2);r[""+o+t]=a[e]||r[""+o+t]}):"rotate3d"===n?(r.rotateX=a[0]&&a[3]||r.rotateX,r.rotateY=a[1]&&a[3]||r.rotateY,r.rotate=a[2]&&a[3]||r.rotate):["X","Y"].forEach(function(t,e){r[""+n+t]=a[e]||r[""+n+t]})):"rotateZ"===n?r.rotate=parseFloat(a)||r.rotate:r[n]=parseFloat(a)||r[n]}),r;var o=(e=a.match(/(?:\-|\b)[\d\-\.e]+\b/gi),n={},6===e.length?(n.m11=parseFloat(e[0]),n.m12=parseFloat(e[1]),n.m13=0,n.m14=0,n.m21=parseFloat(e[2]),n.m22=parseFloat(e[3]),n.m23=0,n.m24=0,n.m31=0,n.m32=0,n.m33=1,n.m34=0,n.m41=parseFloat(e[4]),n.m42=parseFloat(e[5]),n.m43=0,n.m44=0):e.forEach(function(t,e){n["m"+(Math.floor(e/4)+1)+(e%4+1)]=parseFloat(t)}),n),i=o.m11,l=o.m12,u=o.m13,c=o.m14,p=o.m21,h=o.m22,m=o.m23,v=o.m24,y=o.m31,g=o.m32,b=o.m33,w=o.m34,T=o.m43,S=void 0,k=void 0,E=void 0,O={},x=Math.atan2(m,b),A=Math.tan(p),_=Math.tan(l),M=void 0,C=void 0;return O.rotateX=d(x*s)||0,x&&(S=p*(M=Math.cos(-x))+y*(C=Math.sin(-x)),k=h*M+g*C,E=m*M+b*C,y=-(p*C)+y*M,g=-(h*C)+g*M,b=-(m*C)+b*M,w=-(v*C)+w*M,p=S,h=k,m=E),x=Math.atan2(-u,b),O.rotateY=d(x*s)||0,x&&(S=i*(M=Math.cos(-x))-y*(C=Math.sin(-x)),k=l*M-g*C,E=u*M-b*C,g=l*C+g*M,b=u*C+b*M,w=c*C+w*M,i=S,l=k,u=E),x=Math.atan2(l,i),O.rotate=d(x*s)||0,x&&(S=i*(M=Math.cos(x))+l*(C=Math.sin(x)),k=p*M+h*C,E=y*M+g*C,l=l*M-i*C,h=h*M-p*C,g=g*M-y*C,i=S,p=k,y=E),O.rotateX&&Math.abs(O.rotateX)+Math.abs(O.rotate)>359.9&&(O.rotateX=O.rotate=0,O.rotateY=180-O.rotateY||0),O.scaleX=d(Math.sqrt(i*i+l*l+u*u)),O.scaleY=d(Math.sqrt(h*h+m*m)),O.scaleZ=d(Math.sqrt(y*y+g*g+b*b)),O.skewX=A===-_?0:A,O.skewY=_===-A?0:_,O.perspective=w?1/(w<0?-w:w):0,O.translateX=o.m41,O.translateY=o.m42,O.translateZ=T,O},e.YJ=function(t,e){var r=void 0;return n[t]||"number"!=typeof e?"content"!==t||a.test(e)||(r="'"+e.replace(/'/g,"\\'")+"'"):r=" "+e+"px",r||e};var n={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!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},r=["Webkit","ms","Moz","O"];Object.keys(n).forEach(function(t){r.forEach(function(e){n[e+t.charAt(0).toUpperCase()+t.substring(1)]=n[t]})});var a=/^(normal|none|(\b(url\([^)]*\)|chapter_counter|attr\([^)]*\)|(no-)?(open|close)-quote|inherit)((\b\s*)|$|\s+))+)$/,o="undefined"!=typeof document&&!!(navigator&&(navigator.userAgent.indexOf("MSIE 8.0")>0||navigator.userAgent.indexOf("MSIE 9.0")>0)),i={aqua:[0,255,255,1],lime:[0,255,0,1],silver:[192,192,192,1],black:[0,0,0,1],maroon:[128,0,0,1],teal:[0,128,128,1],blue:[0,0,255,1],navy:[0,0,128,1],white:[255,255,255,1],fuchsia:[255,0,255,1],olive:[128,128,0,1],yellow:[255,255,0,1],orange:[255,165,0,1],gray:[128,128,128,1],purple:[128,0,128,1],green:[0,128,0,1],red:[255,0,0,1],pink:[255,192,203,1],cyan:[0,255,255,1],transparent:[255,255,255,0]},s=180/Math.PI,l={_lists:{transformsBase:["translate","translateX","translateY","scale","scaleX","scaleY","skewX","skewY","rotateZ","rotate"],transforms3D:["translate3d","translateZ","scaleZ","rotateX","rotateY","perspective"]},transformGroup:{translate:1,translate3d:1,scale:1,scale3d:1,rotate:1,rotate3d:1,skew:1},filter:["grayScale","sepia","hueRotate","invert","brightness","contrast","blur"],filterConvert:{grayScale:"grayscale",hueRotate:"hue-rotate"}};l._lists.transformsBase=o?l._lists.transformsBase:l._lists.transformsBase.concat(l._lists.transforms3D);var u=/#([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{3})/;e.rV=/#([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{3})|((rgb|hsl)[a]?)+\((?:\d|\.\d)+(?:(deg|\%)?),[\s+]?(?:\d|\.\d)+(?:(deg|\%)?),[\s+]?(?:\d|\.\d)+(?:(deg|%)?)(,[\s+]?(?:\d|\.\d)+(?:(deg|\%)?))?\)/;var c=/(?:\d|\.\d)+(%?)/g,f=e._T=l;function p(t){return t.replace(/-(.?)/g,function(t){return t.replace("-","").toLocaleUpperCase()})}function d(t,e){var n=e?Math.pow(10,e):1e5,r=0|t,a=t-r,o=t;if(a){var i=(a*n+(t<0?-.5:.5)|0)/n,s=0|i;o=(t<0&&!(r+s)?"-":"")+(r+s)+"."+(i.toString().split(".")[1]||"")}return parseFloat(o)}var h=function(t,e,n){return(n<0&&(n+=6),n>=6&&(n-=6),n<1)?(e-t)*n+t:n<3?e:n<4?(e-t)*(4-n)+t:t};function m(t){var e=i.transparent,n=t,r=void 0,a=void 0,o=void 0;if(n){if(i[n])e=i[n];else if("number"==typeof n)e=[n>>16,n>>8&255,255&n];else if(","===n.charAt(n.length-1)&&(n=n.substr(0,n.length-1)),n.match(u))3===(n=n.substr(1)).length&&(n=""+(r=n.charAt(0))+r+(a=n.charAt(1))+a+(o=n.charAt(2))+o+"ff"),6===n.length&&(n+="ff"),e=[(n=parseInt(n,16))>>24&255,n>>16&255,n>>8&255,parseFloat(((255&n)/255).toFixed(2))];else if(n.match(/^hsl/)){var s=(e=n.match(c))[3];s="string"==typeof s&&s.match("%")?parseFloat(s)/100:parseFloat(""+(s||"1"));var l=parseFloat(e[0])/60,f=parseFloat(e[1])/100,p=parseFloat(e[2])/100,d=p<=.5?p*(f+1):p+f-p*f,m=2*p-d;e=[r=Math.round(255*h(m,d,l+2)),a=Math.round(255*h(m,d,l)),o=Math.round(255*h(m,d,l-2)),s]}else 3===(e=(e=n.match(c)||i.transparent).map(function(t){return parseFloat(t)})).length&&e.push(1)}else e=i.transparent;return e}},96839:function(t){"use strict";var e={linear:function(t,e,n,r){return(n-e)*t/r+e},easeInQuad:function(t,e,n,r){return(n-e)*(t/=r)*t+e},easeOutQuad:function(t,e,n,r){return-(n-e)*(t/=r)*(t-2)+e},easeInOutQuad:function(t,e,n,r){var a=n-e;return(t/=r/2)<1?a/2*t*t+e:-a/2*(--t*(t-2)-1)+e},easeInCubic:function(t,e,n,r){return(n-e)*(t/=r)*t*t+e},easeOutCubic:function(t,e,n,r){return(n-e)*((t=t/r-1)*t*t+1)+e},easeInOutCubic:function(t,e,n,r){var a=n-e;return(t/=r/2)<1?a/2*t*t*t+e:a/2*((t-=2)*t*t+2)+e},easeInQuart:function(t,e,n,r){return(n-e)*(t/=r)*t*t*t+e},easeOutQuart:function(t,e,n,r){return-(n-e)*((t=t/r-1)*t*t*t-1)+e},easeInOutQuart:function(t,e,n,r){var a=n-e;return(t/=r/2)<1?a/2*t*t*t*t+e:-a/2*((t-=2)*t*t*t-2)+e},easeInQuint:function(t,e,n,r){return(n-e)*(t/=r)*t*t*t*t+e},easeOutQuint:function(t,e,n,r){return(n-e)*((t=t/r-1)*t*t*t*t+1)+e},easeInOutQuint:function(t,e,n,r){var a=n-e;return(t/=r/2)<1?a/2*t*t*t*t*t+e:a/2*((t-=2)*t*t*t*t+2)+e},easeInSine:function(t,e,n,r){var a=n-e;return-a*Math.cos(t/r*(Math.PI/2))+a+e},easeOutSine:function(t,e,n,r){return(n-e)*Math.sin(t/r*(Math.PI/2))+e},easeInOutSine:function(t,e,n,r){return-(n-e)/2*(Math.cos(Math.PI*t/r)-1)+e},easeInExpo:function(t,e,n,r){return 0==t?e:(n-e)*Math.pow(2,10*(t/r-1))+e},easeOutExpo:function(t,e,n,r){var a=n-e;return t==r?e+a:a*(-Math.pow(2,-10*t/r)+1)+e},easeInOutExpo:function(t,e,n,r){var a=n-e;return 0===t?e:t===r?e+a:(t/=r/2)<1?a/2*Math.pow(2,10*(t-1))+e:a/2*(-Math.pow(2,-10*--t)+2)+e},easeInCirc:function(t,e,n,r){return-(n-e)*(Math.sqrt(1-(t/=r)*t)-1)+e},easeOutCirc:function(t,e,n,r){return(n-e)*Math.sqrt(1-(t=t/r-1)*t)+e},easeInOutCirc:function(t,e,n,r){var a=n-e;return(t/=r/2)<1?-a/2*(Math.sqrt(1-t*t)-1)+e:a/2*(Math.sqrt(1-(t-=2)*t)+1)+e},easeInElastic:function(t,e,n,r){var a,o,i,s=n-e;return(i=1.70158,o=0,a=s,0===t)?e:1==(t/=r)?e+s:(o||(o=.3*r),a=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var l=i.call(o,"catchLoc"),u=i.call(o,"finallyLoc");if(l&&u){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),M(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var a=r.arg;M(n)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:D(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},n}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports},27566:function(t){function e(n){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},4860:function(t,e,n){var r=n(13448)();t.exports=r;try{regeneratorRuntime=r}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}}]); \ No newline at end of file diff --git a/_next/static/chunks/909-c26be64942002469.js b/_next/static/chunks/909-c26be64942002469.js new file mode 100644 index 0000000..f212f3a --- /dev/null +++ b/_next/static/chunks/909-c26be64942002469.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[909],{35554:function(t,e,n){var r,o="__lodash_hash_undefined__",a=1/0,i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,c=/^\w*$/,u=/^\./,l=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,s=/\\(\\)?/g,p=/^\[object .+?Constructor\]$/,f="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,h="object"==typeof self&&self&&self.Object===Object&&self,d=f||h||Function("return this")(),g=Array.prototype,_=Function.prototype,y=Object.prototype,b=d["__core-js_shared__"],v=(r=/[^.]+$/.exec(b&&b.keys&&b.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",w=_.toString,j=y.hasOwnProperty,m=y.toString,S=RegExp("^"+w.call(j).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),x=d.Symbol,O=g.splice,k=N(d,"Map"),C=N(Object,"create"),T=x?x.prototype:void 0,M=T?T.toString:void 0;function P(t){var e=-1,n=t?t.length:0;for(this.clear();++e-1},$.prototype.set=function(t,e){var n=this.__data__,r=I(n,t);return r<0?n.push([t,e]):n[r][1]=e,this},E.prototype.clear=function(){this.__data__={hash:new P,map:new(k||$),string:new P}},E.prototype.delete=function(t){return L(this,t).delete(t)},E.prototype.get=function(t){return L(this,t).get(t)},E.prototype.has=function(t){return L(this,t).has(t)},E.prototype.set=function(t,e){return L(this,t).set(t,e),this};var J=R(function(t){t=null==(e=t)?"":function(t){if("string"==typeof t)return t;if(F(t))return M?M.call(t):"";var e=t+"";return"0"==e&&1/t==-a?"-0":e}(e);var e,n=[];return u.test(t)&&n.push(""),t.replace(l,function(t,e,r,o){n.push(r?o.replace(s,"$1"):e||t)}),n});function R(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw TypeError("Expected a function");var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=t.apply(this,r);return n.cache=a.set(o,i),i};return n.cache=new(R.Cache||E),n}R.Cache=E;var D=Array.isArray;function A(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function F(t){return"symbol"==typeof t||!!t&&"object"==typeof t&&"[object Symbol]"==m.call(t)}t.exports=function(t,e,n){var r=null==t?void 0:function(t,e){var n;e=!function(t,e){if(D(t))return!1;var n=typeof t;return!!("number"==n||"symbol"==n||"boolean"==n||null==t||F(t))||c.test(t)||!i.test(t)||null!=e&&t in Object(e)}(e,t)?D(n=e)?n:J(n):[e];for(var r=0,o=e.length;null!=t&&r{if(_(e)){let n=t.replace("/","");return[n,e.title||g(n)]}return[t,e||g(t)]}))}function b({pageNextRoute:t,pageOpts:e,nextraLayout:n,themeConfig:o,MDXContent:c,hot:u,pageOptsChecksum:l,dynamicMetaModules:s=[]}){var d;"undefined"==typeof window&&(globalThis.__nextra_resolvePageMap=async()=>{if(r)return r;let t=JSON.parse(JSON.stringify(g.pageMap));return await Promise.all(s.map(async([e,{metaObjectKeyPath:n,metaParentKeyPath:r}])=>{let o=await e,i=await o.default(),c=a()(t,n);c.data=i,function t(e,n,r=!0){if(r){t(e,{kind:"Meta",data:n.data,locale:n.locale},!1),n.data=y(n.data);return}for(let[r,a]of Object.entries(n.data)){if(!_(a)){var o;if("*"===r)continue;e.children.push({kind:"MdxPage",...n.locale&&{locale:n.locale},name:r,route:(o=e.route,h(f.join(o,r.replace(/^index$/,""))))});continue}let i=r.replace("/",""),c={kind:"Folder",name:i,route:`${e.route}/${i}`,children:[{kind:"Meta",...n.locale&&{locale:n.locale},data:y(a.items)}]};e.children.push(c),t(c,{kind:"Meta",data:a.items,locale:n.locale},!1)}}(a()(t,r),c)})),r=t});let g=globalThis[d=i.eZ]||(globalThis[d]=Object.create(null));return e.pageMap?(g.pageMap=e.pageMap,g.Layout=n):(e={...e,pageMap:g.pageMap,flexsearch:g.flexsearch},o=g.themeConfig),e={frontMatter:{},...e},g.route=e.route,g.context||(g.context=Object.create(null)),g.context[t]={Content:c,pageOpts:e,themeConfig:o},p}},94473:function(t){"use strict";t.exports=t=>{let e=/^\\\\\?\\/.test(t),n=/[^\u0000-\u0080]+/.test(t);return e||n?t:t.replace(/\\/g,"/")}},29378:function(t,e,n){let r=n(83587),o=n(72168),a="[^\\s'’\\(\\)!?;:\"-]",i=RegExp(`(?:(?:(\\s?(?:^|[.\\(\\)!?;:"-])\\s*)(${a}))|(${a}))(${a}*[’']*${a}*)`,"g"),c=t=>t.map(t=>[RegExp(`\\b${t}\\b`,"gi"),t]);t.exports=(t,e={})=>(t=t.toLowerCase().replace(i,(t,e="",n,o,a,i,c)=>{let u=t.length+i>=c.length,l=function(t){let e=t[0];return/\s/.test(e)?t.slice(1):/[\(\)]/.test(e)?null:t}(t);return l?!n&&r.has(o+a)&&!u?l:e+(o||n).toUpperCase()+a:t}),c([...o,...e.special||[]]).forEach(([e,n])=>{t=t.replace(e,n)}),t)},83587:function(t){t.exports=new Set(["for","and","nor","but","or","yet","so","a","an","the","aboard","about","above","across","after","against","along","amid","among","anti","around","as","at","before","behind","below","beneath","beside","besides","between","beyond","but","by","concerning","considering","despite","down","during","except","excepting","excluding","following","for","from","in","inside","into","like","minus","near","of","off","on","onto","opposite","over","past","per","plus","regarding","round","save","since","than","through","to","toward","towards","under","underneath","unlike","until","up","upon","versus","via","with","within","without"])},72168:function(t){t.exports=["ZEIT","ZEIT Inc.","Vercel","Vercel Inc.","CLI","API","HTTP","HTTPS","JSX","DNS","URL","now.sh","now.json","vercel.app","vercel.json","CI","CD","CDN","package.json","package.lock","yarn.lock","GitHub","GitLab","CSS","Sass","JS","JavaScript","TypeScript","HTML","WordPress","Next.js","Node.js","Webpack","Docker","Bash","Kubernetes","SWR","TinaCMS","UI","UX","TS","TSX","iPhone","iPad","watchOS","iOS","iPadOS","macOS","PHP","composer.json","composer.lock","CMS","SQL","C","C#","GraphQL","GraphiQL","JWT","JWTs"]},76067:function(t,e,n){n(11527)}}]); \ No newline at end of file diff --git a/_next/static/chunks/main-3c8f1cb1ec57596d.js b/_next/static/chunks/main-3c8f1cb1ec57596d.js deleted file mode 100644 index 6d742f7..0000000 --- a/_next/static/chunks/main-3c8f1cb1ec57596d.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[179],{36627:function(e,t){"use strict";function r(){return""}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDeploymentIdQueryOrEmptyString",{enumerable:!0,get:function(){return r}})},17430:function(){"trimStart"in String.prototype||(String.prototype.trimStart=String.prototype.trimLeft),"trimEnd"in String.prototype||(String.prototype.trimEnd=String.prototype.trimRight),"description"in Symbol.prototype||Object.defineProperty(Symbol.prototype,"description",{configurable:!0,get:function(){var e=/\((.*)\)/.exec(this.toString());return e?e[1]:void 0}}),Array.prototype.flat||(Array.prototype.flat=function(e,t){return t=this.concat.apply([],this),e>1&&t.some(Array.isArray)?t.flat(e-1):t},Array.prototype.flatMap=function(e,t){return this.map(e,t).flat()}),Promise.prototype.finally||(Promise.prototype.finally=function(e){if("function"!=typeof e)return this.then(e,e);var t=this.constructor||Promise;return this.then(function(r){return t.resolve(e()).then(function(){return r})},function(r){return t.resolve(e()).then(function(){throw r})})}),Object.fromEntries||(Object.fromEntries=function(e){return Array.from(e).reduce(function(e,t){return e[t[0]]=t[1],e},{})}),Array.prototype.at||(Array.prototype.at=function(e){var t=Math.trunc(e)||0;if(t<0&&(t+=this.length),!(t<0||t>=this.length))return this[t]})},29971:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return a}});let n=r(5454),o=r(44743);function a(e,t){return(0,o.normalizePathTrailingSlash)((0,n.addPathPrefix)(e,""))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9561:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return n}}),r(44743);let n=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n25){window.location.reload();return}clearTimeout(o),o=setTimeout(t,i>5?5e3:1e3)}r&&r.close();let{hostname:u,port:l}=location,s=function(e){let t=location.protocol;try{t=new URL(e).protocol}catch(e){}return"http:"===t?"ws":"wss"}(e.assetPrefix||""),c=e.assetPrefix.replace(/^\/+/,""),f=s+"://"+u+":"+l+(c?"/"+c:"");c.startsWith("http")&&(f=s+"://"+c.split("://",2)[1]),(r=new window.WebSocket(""+f+e.path)).onopen=function(){i=0,window.console.log("[HMR] connected")},r.onerror=a,r.onclose=a,r.onmessage=function(e){let t=JSON.parse(e.data);for(let e of n)e(t)}}()}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},63667:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return o}});let n=r(86768);function o(e){return(0,n.pathHasPrefix)(e,"")}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5739:function(e,t){"use strict";let r;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{DOMAttributeNames:function(){return n},isEqualNode:function(){return a},default:function(){return i}});let n={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"};function o(e){let{type:t,props:r}=e,o=document.createElement(t);for(let e in r){if(!r.hasOwnProperty(e)||"children"===e||"dangerouslySetInnerHTML"===e||void 0===r[e])continue;let a=n[e]||e.toLowerCase();"script"===t&&("async"===a||"defer"===a||"noModule"===a)?o[a]=!!r[e]:o.setAttribute(a,r[e])}let{children:a,dangerouslySetInnerHTML:i}=r;return i?o.innerHTML=i.__html||"":a&&(o.textContent="string"==typeof a?a:Array.isArray(a)?a.join(""):""),o}function a(e,t){if(e instanceof HTMLElement&&t instanceof HTMLElement){let r=t.getAttribute("nonce");if(r&&!e.getAttribute("nonce")){let n=t.cloneNode(!0);return n.setAttribute("nonce",""),n.nonce=r,r===e.nonce&&e.isEqualNode(n)}}return e.isEqualNode(t)}function i(){return{mountedInstances:new Set,updateHead:e=>{let t={};e.forEach(e=>{if("link"===e.type&&e.props["data-optimized-fonts"]){if(document.querySelector('style[data-href="'+e.props["data-href"]+'"]'))return;e.props.href=e.props["data-href"],e.props["data-href"]=void 0}let r=t[e.type]||[];r.push(e),t[e.type]=r});let n=t.title?t.title[0]:null,o="";if(n){let{children:e}=n.props;o="string"==typeof e?e:Array.isArray(e)?e.join(""):""}o!==document.title&&(document.title=o),["meta","base","link","style","script"].forEach(e=>{r(e,t[e]||[])})}}}r=(e,t)=>{let r=document.getElementsByTagName("head")[0],n=r.querySelector("meta[name=next-head-count]"),i=Number(n.content),u=[];for(let t=0,r=n.previousElementSibling;t{for(let t=0,r=u.length;t{var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),s.forEach(e=>r.insertBefore(e,n)),n.content=(i-u.length+s.length).toString()},("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},95023:function(e,t,r){"use strict";let n,o,a,i,u,l,s,c,f,d,p,h;Object.defineProperty(t,"__esModule",{value:!0});let m=r(35815);Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{version:function(){return G},router:function(){return n},emitter:function(){return z},initialize:function(){return $},hydrate:function(){return ef}});let _=r(81351),g=r(11527);r(17430);let y=_._(r(50959)),b=_._(r(44478)),v=r(80541),P=_._(r(26685)),E=r(75530),S=r(23957),j=r(69843),w=r(92941),O=r(83415),R=r(46954),T=r(39206),M=_._(r(5739)),x=_._(r(60453)),I=_._(r(92481)),C=r(71865),A=r(79256),L=r(71689),N=r(25364),D=r(59194),k=r(63667),F=r(64731),B=r(4936),U=r(30243),H=_._(r(55314)),W=_._(r(89955)),q=_._(r(12522)),G="14.1.0",z=(0,P.default)(),V=e=>[].slice.call(e),X=!1;class Y extends y.default.Component{componentDidCatch(e,t){this.props.fn(e,t)}componentDidMount(){this.scrollToHash(),n.isSsr&&(o.isFallback||o.nextExport&&((0,j.isDynamicRoute)(n.pathname)||location.search||X)||o.props&&o.props.__N_SSG&&(location.search||X))&&n.replace(n.pathname+"?"+String((0,w.assign)((0,w.urlQueryToSearchParams)(n.query),new URLSearchParams(location.search))),a,{_h:1,shallow:!o.isFallback&&!X}).catch(e=>{if(!e.cancelled)throw e})}componentDidUpdate(){this.scrollToHash()}scrollToHash(){let{hash:e}=location;if(!(e=e&&e.substring(1)))return;let t=document.getElementById(e);t&&setTimeout(()=>t.scrollIntoView(),0)}render(){return this.props.children}}async function $(e){void 0===e&&(e={}),W.default.onSpanEnd(q.default),o=JSON.parse(document.getElementById("__NEXT_DATA__").textContent),window.__NEXT_DATA__=o,h=o.defaultLocale;let t=o.assetPrefix||"";if(self.__next_set_public_path__(""+t+"/_next/"),(0,O.setConfig)({serverRuntimeConfig:{},publicRuntimeConfig:o.runtimeConfig||{}}),a=(0,R.getURL)(),(0,k.hasBasePath)(a)&&(a=(0,D.removeBasePath)(a)),o.scriptLoader){let{initScriptLoader:e}=r(50314);e(o.scriptLoader)}i=new x.default(o.buildId,t);let s=e=>{let[t,r]=e;return i.routeLoader.onEntrypoint(t,r)};return window.__NEXT_P&&window.__NEXT_P.map(e=>setTimeout(()=>s(e),0)),window.__NEXT_P=[],window.__NEXT_P.push=s,(l=(0,M.default)()).getIsSsr=()=>n.isSsr,u=document.getElementById("__next"),{assetPrefix:t}}function K(e,t){return(0,g.jsx)(e,{...t})}function J(e){var t;let{children:r}=e,o=y.default.useMemo(()=>(0,B.adaptForAppRouterInstance)(n),[]);return(0,g.jsx)(Y,{fn:e=>Z({App:f,err:e}).catch(e=>console.error("Error rendering page: ",e)),children:(0,g.jsx)(F.AppRouterContext.Provider,{value:o,children:(0,g.jsx)(U.SearchParamsContext.Provider,{value:(0,B.adaptForSearchParams)(n),children:(0,g.jsx)(B.PathnameContextProviderAdapter,{router:n,isAutoExport:null!=(t=self.__NEXT_DATA__.autoExport)&&t,children:(0,g.jsx)(U.PathParamsContext.Provider,{value:(0,B.adaptForPathParams)(n),children:(0,g.jsx)(E.RouterContext.Provider,{value:(0,A.makePublicRouterInstance)(n),children:(0,g.jsx)(v.HeadManagerContext.Provider,{value:l,children:(0,g.jsx)(N.ImageConfigContext.Provider,{value:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!0,unoptimized:!0},children:r})})})})})})})})}let Q=e=>t=>{let r={...t,Component:p,err:o.err,router:n};return(0,g.jsx)(J,{children:K(e,r)})};function Z(e){let{App:t,err:u}=e;return console.error(u),console.error("A client-side exception has occurred, see here for more info: https://nextjs.org/docs/messages/client-side-exception-occurred"),i.loadPage("/_error").then(n=>{let{page:o,styleSheets:a}=n;return(null==s?void 0:s.Component)===o?Promise.resolve().then(()=>m._(r(31850))).then(n=>Promise.resolve().then(()=>m._(r(73958))).then(r=>(t=r.default,e.App=t,n))).then(e=>({ErrorComponent:e.default,styleSheets:[]})):{ErrorComponent:o,styleSheets:a}}).then(r=>{var i;let{ErrorComponent:l,styleSheets:s}=r,c=Q(t),f={Component:l,AppTree:c,router:n,ctx:{err:u,pathname:o.page,query:o.query,asPath:a,AppTree:c}};return Promise.resolve((null==(i=e.props)?void 0:i.err)?e.props:(0,R.loadGetInitialProps)(t,f)).then(t=>es({...e,err:u,Component:l,styleSheets:s,props:t}))})}function ee(e){let{callback:t}=e;return y.default.useLayoutEffect(()=>t(),[t]),null}let et={navigationStart:"navigationStart",beforeRender:"beforeRender",afterRender:"afterRender",afterHydrate:"afterHydrate",routeChange:"routeChange"},er={hydration:"Next.js-hydration",beforeHydration:"Next.js-before-hydration",routeChangeToRender:"Next.js-route-change-to-render",render:"Next.js-render"},en=null,eo=!0;function ea(){[et.beforeRender,et.afterHydrate,et.afterRender,et.routeChange].forEach(e=>performance.clearMarks(e))}function ei(){R.ST&&(performance.mark(et.afterHydrate),performance.getEntriesByName(et.beforeRender,"mark").length&&(performance.measure(er.beforeHydration,et.navigationStart,et.beforeRender),performance.measure(er.hydration,et.beforeRender,et.afterHydrate)),d&&performance.getEntriesByName(er.hydration).forEach(d),ea())}function eu(){if(!R.ST)return;performance.mark(et.afterRender);let e=performance.getEntriesByName(et.routeChange,"mark");e.length&&(performance.getEntriesByName(et.beforeRender,"mark").length&&(performance.measure(er.routeChangeToRender,e[0].name,et.beforeRender),performance.measure(er.render,et.beforeRender,et.afterRender),d&&(performance.getEntriesByName(er.render).forEach(d),performance.getEntriesByName(er.routeChangeToRender).forEach(d))),ea(),[er.routeChangeToRender,er.render].forEach(e=>performance.clearMeasures(e)))}function el(e){let{callbacks:t,children:r}=e;return y.default.useLayoutEffect(()=>t.forEach(e=>e()),[t]),y.default.useEffect(()=>{(0,I.default)(d)},[]),r}function es(e){let t,{App:r,Component:o,props:a,err:i}=e,l="initial"in e?void 0:e.styleSheets;o=o||s.Component;let f={...a=a||s.props,Component:o,err:i,router:n};s=f;let d=!1,p=new Promise((e,r)=>{c&&c(),t=()=>{c=null,e()},c=()=>{d=!0,c=null;let e=Error("Cancel rendering route");e.cancelled=!0,r(e)}});function h(){t()}!function(){if(!l)return;let e=V(document.querySelectorAll("style[data-n-href]")),t=new Set(e.map(e=>e.getAttribute("data-n-href"))),r=document.querySelector("noscript[data-n-css]"),n=null==r?void 0:r.getAttribute("data-n-css");l.forEach(e=>{let{href:r,text:o}=e;if(!t.has(r)){let e=document.createElement("style");e.setAttribute("data-n-href",r),e.setAttribute("media","x"),n&&e.setAttribute("nonce",n),document.head.appendChild(e),e.appendChild(document.createTextNode(o))}})}();let m=(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(ee,{callback:function(){if(l&&!d){let e=new Set(l.map(e=>e.href)),t=V(document.querySelectorAll("style[data-n-href]")),r=t.map(e=>e.getAttribute("data-n-href"));for(let n=0;n{let{href:t}=e,r=document.querySelector('style[data-n-href="'+t+'"]');r&&(n.parentNode.insertBefore(r,n.nextSibling),n=r)}),V(document.querySelectorAll("link[data-n-p]")).forEach(e=>{e.parentNode.removeChild(e)})}if(e.scroll){let{x:t,y:r}=e.scroll;(0,S.handleSmoothScroll)(()=>{window.scrollTo(t,r)})}}}),(0,g.jsxs)(J,{children:[K(r,f),(0,g.jsx)(T.Portal,{type:"next-route-announcer",children:(0,g.jsx)(C.RouteAnnouncer,{})})]})]});return!function(e,t){R.ST&&performance.mark(et.beforeRender);let r=t(eo?ei:eu);en?(0,y.default.startTransition)(()=>{en.render(r)}):(en=b.default.hydrateRoot(e,r,{onRecoverableError:H.default}),eo=!1)}(u,e=>(0,g.jsx)(el,{callbacks:[e,h],children:m})),p}async function ec(e){if(e.err){await Z(e);return}try{await es(e)}catch(r){let t=(0,L.getProperError)(r);if(t.cancelled)throw t;await Z({...e,err:t})}}async function ef(e){let t=o.err;try{let e=await i.routeLoader.whenEntrypoint("/_app");if("error"in e)throw e.error;let{component:t,exports:r}=e;f=t,r&&r.reportWebVitals&&(d=e=>{let t,{id:n,name:o,startTime:a,value:i,duration:u,entryType:l,entries:s,attribution:c}=e,f=Date.now()+"-"+(Math.floor(Math.random()*(9e12-1))+1e12);s&&s.length&&(t=s[0].startTime);let d={id:n||f,name:o,startTime:a||t,value:null==i?u:i,label:"mark"===l||"measure"===l?"custom":"web-vital"};c&&(d.attribution=c),r.reportWebVitals(d)});let n=await i.routeLoader.whenEntrypoint(o.page);if("error"in n)throw n.error;p=n.component}catch(e){t=(0,L.getProperError)(e)}window.__NEXT_PRELOADREADY&&await window.__NEXT_PRELOADREADY(o.dynamicIds),n=(0,A.createRouter)(o.page,o.query,a,{initialProps:o.props,pageLoader:i,App:f,Component:p,wrapApp:Q,err:t,isFallback:!!o.isFallback,subscription:(e,t,r)=>ec(Object.assign({},e,{App:t,scroll:r})),locale:o.locale,locales:o.locales,defaultLocale:h,domainLocales:o.domainLocales,isPreview:o.isPreview}),X=await n._initialMatchesMiddlewarePromise;let r={App:f,initial:!0,Component:p,props:o.props,err:t};(null==e?void 0:e.beforeRender)&&await e.beforeRender(),ec(r)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},29371:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(17054);let n=r(95023);window.next={version:n.version,get router(){return n.router},emitter:n.emitter},(0,n.initialize)({}).then(()=>(0,n.hydrate)()).catch(console.error),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},44743:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return a}});let n=r(53811),o=r(86376),a=e=>{if(!e.startsWith("/"))return e;let{pathname:t,query:r,hash:a}=(0,o.parsePath)(e);return""+(0,n.removeTrailingSlash)(t)+r+a};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},55314:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let n=r(40632);function o(e){let t="function"==typeof reportError?reportError:e=>{window.console.error(e)};(0,n.isBailoutToCSRError)(e)||t(e)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},60453:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return d}});let n=r(81351),o=r(29971),a=r(45554),i=n._(r(75961)),u=r(9561),l=r(69843),s=r(72432),c=r(53811),f=r(25226);r(30129);class d{getPageList(){return(0,f.getClientBuildManifest)().then(e=>e.sortedPages)}getMiddleware(){return window.__MIDDLEWARE_MATCHERS=[],window.__MIDDLEWARE_MATCHERS}getDataHref(e){let{asPath:t,href:r,locale:n}=e,{pathname:f,query:d,search:p}=(0,s.parseRelativeUrl)(r),{pathname:h}=(0,s.parseRelativeUrl)(t),m=(0,c.removeTrailingSlash)(f);if("/"!==m[0])throw Error('Route name should start with a "/", got "'+m+'"');return(e=>{let t=(0,i.default)((0,c.removeTrailingSlash)((0,u.addLocale)(e,n)),".json");return(0,o.addBasePath)("/_next/data/"+this.buildId+t+p,!0)})(e.skipInterpolation?h:(0,l.isDynamicRoute)(m)?(0,a.interpolateAs)(f,h,d).result:m)}_isSsg(e){return this.promisedSsgManifest.then(t=>t.has(e))}loadPage(e){return this.routeLoader.loadRoute(e).then(e=>{if("component"in e)return{page:e.component,mod:e.exports,styleSheets:e.styles.map(e=>({href:e.href,text:e.content}))};throw e.error})}prefetch(e){return this.routeLoader.prefetch(e)}constructor(e,t){this.routeLoader=(0,f.createRouteLoader)(t),this.buildId=e,this.assetPrefix=t,this.promisedSsgManifest=new Promise(e=>{window.__SSG_MANIFEST?e(window.__SSG_MANIFEST):window.__SSG_MANIFEST_CB=()=>{e(window.__SSG_MANIFEST)}})}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},92481:function(e,t,r){"use strict";let n;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return u}});let o=["CLS","FCP","FID","INP","LCP","TTFB"];location.href;let a=!1;function i(e){n&&n(e)}let u=e=>{if(n=e,!a)for(let e of(a=!0,o))try{let t;t||(t=r(47924)),t["on"+e](i)}catch(t){console.warn("Failed to track "+e+" web-vital",t)}};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},39206:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Portal",{enumerable:!0,get:function(){return a}});let n=r(50959),o=r(10422),a=e=>{let{children:t,type:r}=e,[a,i]=(0,n.useState)(null);return(0,n.useEffect)(()=>{let e=document.createElement(r);return document.body.appendChild(e),i(e),()=>{document.body.removeChild(e)}},[r]),a?(0,o.createPortal)(t,a):null};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},59194:function(e,t,r){"use strict";function n(e){return e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeBasePath",{enumerable:!0,get:function(){return n}}),r(63667),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},88754:function(e,t,r){"use strict";function n(e,t){return e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeLocale",{enumerable:!0,get:function(){return n}}),r(86376),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},46619:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{requestIdleCallback:function(){return r},cancelIdleCallback:function(){return n}});let r="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},n="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},46680:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return f}});let n=r(92941),o=r(87239),a=r(5288),i=r(46954),u=r(44743),l=r(18015),s=r(87849),c=r(45554);function f(e,t,r){let f;let d="string"==typeof t?t:(0,o.formatWithValidation)(t),p=d.match(/^[a-zA-Z]{1,}:\/\//),h=p?d.slice(p[0].length):d;if((h.split("?",1)[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+d+"' passed to next/router in page: '"+e.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");let t=(0,i.normalizeRepeatedSlashes)(h);d=(p?p[0]:"")+t}if(!(0,l.isLocalURL)(d))return r?[d]:d;try{f=new URL(d.startsWith("#")?e.asPath:e.pathname,"http://n")}catch(e){f=new URL("/","http://n")}try{let e=new URL(d,f);e.pathname=(0,u.normalizePathTrailingSlash)(e.pathname);let t="";if((0,s.isDynamicRoute)(e.pathname)&&e.searchParams&&r){let r=(0,n.searchParamsToUrlQuery)(e.searchParams),{result:i,params:u}=(0,c.interpolateAs)(e.pathname,e.pathname,r);i&&(t=(0,o.formatWithValidation)({pathname:i,hash:e.hash,query:(0,a.omit)(r,u)}))}let i=e.origin===f.origin?e.href.slice(e.origin.length):e.href;return r?[i,t||i]:i}catch(e){return r?[d]:d}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},71865:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{RouteAnnouncer:function(){return l},default:function(){return s}});let n=r(81351),o=r(11527),a=n._(r(50959)),i=r(79256),u={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",top:0,width:"1px",whiteSpace:"nowrap",wordWrap:"normal"},l=()=>{let{asPath:e}=(0,i.useRouter)(),[t,r]=a.default.useState(""),n=a.default.useRef(e);return a.default.useEffect(()=>{if(n.current!==e){if(n.current=e,document.title)r(document.title);else{var t;let n=document.querySelector("h1");r((null!=(t=null==n?void 0:n.innerText)?t:null==n?void 0:n.textContent)||e)}}},[e]),(0,o.jsx)("p",{"aria-live":"assertive",id:"__next-route-announcer__",role:"alert",style:u,children:t})},s=l;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},25226:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{markAssetError:function(){return l},isAssetError:function(){return s},getClientBuildManifest:function(){return p},createRouteLoader:function(){return m}}),r(81351),r(75961);let n=r(1212),o=r(46619),a=r(36627);function i(e,t,r){let n,o=t.get(e);if(o)return"future"in o?o.future:Promise.resolve(o);let a=new Promise(e=>{n=e});return t.set(e,o={resolve:n,future:a}),r?r().then(e=>(n(e),e)).catch(r=>{throw t.delete(e),r}):a}let u=Symbol("ASSET_LOAD_ERROR");function l(e){return Object.defineProperty(e,u,{})}function s(e){return e&&u in e}let c=function(e){try{return e=document.createElement("link"),!!window.MSInputMethodContext&&!!document.documentMode||e.relList.supports("prefetch")}catch(e){return!1}}(),f=()=>(0,a.getDeploymentIdQueryOrEmptyString)();function d(e,t,r){return new Promise((n,a)=>{let i=!1;e.then(e=>{i=!0,n(e)}).catch(a),(0,o.requestIdleCallback)(()=>setTimeout(()=>{i||a(r)},t))})}function p(){return self.__BUILD_MANIFEST?Promise.resolve(self.__BUILD_MANIFEST):d(new Promise(e=>{let t=self.__BUILD_MANIFEST_CB;self.__BUILD_MANIFEST_CB=()=>{e(self.__BUILD_MANIFEST),t&&t()}}),3800,l(Error("Failed to load client build manifest")))}function h(e,t){return p().then(r=>{if(!(t in r))throw l(Error("Failed to lookup route: "+t));let o=r[t].map(t=>e+"/_next/"+encodeURI(t));return{scripts:o.filter(e=>e.endsWith(".js")).map(e=>(0,n.__unsafeCreateTrustedScriptURL)(e)+f()),css:o.filter(e=>e.endsWith(".css")).map(e=>e+f())}})}function m(e){let t=new Map,r=new Map,n=new Map,a=new Map;function u(e){{var t;let n=r.get(e.toString());return n||(document.querySelector('script[src^="'+e+'"]')?Promise.resolve():(r.set(e.toString(),n=new Promise((r,n)=>{(t=document.createElement("script")).onload=r,t.onerror=()=>n(l(Error("Failed to load script: "+e))),t.crossOrigin=void 0,t.src=e,document.body.appendChild(t)})),n))}}function s(e){let t=n.get(e);return t||n.set(e,t=fetch(e).then(t=>{if(!t.ok)throw Error("Failed to load stylesheet: "+e);return t.text().then(t=>({href:e,content:t}))}).catch(e=>{throw l(e)})),t}return{whenEntrypoint:e=>i(e,t),onEntrypoint(e,r){(r?Promise.resolve().then(()=>r()).then(e=>({component:e&&e.default||e,exports:e}),e=>({error:e})):Promise.resolve(void 0)).then(r=>{let n=t.get(e);n&&"resolve"in n?r&&(t.set(e,r),n.resolve(r)):(r?t.set(e,r):t.delete(e),a.delete(e))})},loadRoute(r,n){return i(r,a,()=>{let o;return d(h(e,r).then(e=>{let{scripts:n,css:o}=e;return Promise.all([t.has(r)?[]:Promise.all(n.map(u)),Promise.all(o.map(s))])}).then(e=>this.whenEntrypoint(r).then(t=>({entrypoint:t,styles:e[1]}))),3800,l(Error("Route did not complete loading: "+r))).then(e=>{let{entrypoint:t,styles:r}=e,n=Object.assign({styles:r},t);return"error"in t?t:n}).catch(e=>{if(n)throw e;return{error:e}}).finally(()=>null==o?void 0:o())})},prefetch(t){let r;return(r=navigator.connection)&&(r.saveData||/2g/.test(r.effectiveType))?Promise.resolve():h(e,t).then(e=>Promise.all(c?e.scripts.map(e=>{var t,r,n;return t=e.toString(),r="script",new Promise((e,o)=>{if(document.querySelector('\n link[rel="prefetch"][href^="'+t+'"],\n link[rel="preload"][href^="'+t+'"],\n script[src^="'+t+'"]'))return e();n=document.createElement("link"),r&&(n.as=r),n.rel="prefetch",n.crossOrigin=void 0,n.onload=e,n.onerror=()=>o(l(Error("Failed to prefetch: "+t))),n.href=t,document.head.appendChild(n)})}):[])).then(()=>{(0,o.requestIdleCallback)(()=>this.loadRoute(t,!0).catch(()=>{}))}).catch(()=>{})}}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},79256:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{Router:function(){return a.default},default:function(){return p},withRouter:function(){return l.default},useRouter:function(){return h},createRouter:function(){return m},makePublicRouterInstance:function(){return _}});let n=r(81351),o=n._(r(50959)),a=n._(r(36836)),i=r(75530),u=n._(r(71689)),l=n._(r(52035)),s={router:null,readyCallbacks:[],ready(e){if(this.router)return e();this.readyCallbacks.push(e)}},c=["pathname","route","query","asPath","components","isFallback","basePath","locale","locales","defaultLocale","isReady","isPreview","isLocaleDomain","domainLocales"],f=["push","replace","reload","back","prefetch","beforePopState"];function d(){if(!s.router)throw Error('No router instance found.\nYou should only use "next/router" on the client side of your app.\n');return s.router}Object.defineProperty(s,"events",{get:()=>a.default.events}),c.forEach(e=>{Object.defineProperty(s,e,{get:()=>d()[e]})}),f.forEach(e=>{s[e]=function(){for(var t=arguments.length,r=Array(t),n=0;n{s.ready(()=>{a.default.events.on(e,function(){for(var t=arguments.length,r=Array(t),n=0;ne()),s.readyCallbacks=[],s.router}function _(e){let t={};for(let r of c){if("object"==typeof e[r]){t[r]=Object.assign(Array.isArray(e[r])?[]:{},e[r]);continue}t[r]=e[r]}return t.events=a.default.events,f.forEach(r=>{t[r]=function(){for(var t=arguments.length,n=Array(t),o=0;o{if(i.default.preinit){e.forEach(e=>{i.default.preinit(e,{as:"style"})});return}{let t=document.head;e.forEach(e=>{let r=document.createElement("link");r.type="text/css",r.rel="stylesheet",r.href=e,t.appendChild(r)})}},m=e=>{let{src:t,id:r,onLoad:n=()=>{},onReady:o=null,dangerouslySetInnerHTML:a,children:i="",strategy:u="afterInteractive",onError:l,stylesheets:c}=e,m=r||t;if(m&&d.has(m))return;if(f.has(t)){d.add(m),f.get(t).then(n,l);return}let _=()=>{o&&o(),d.add(m)},g=document.createElement("script"),y=new Promise((e,t)=>{g.addEventListener("load",function(t){e(),n&&n.call(this,t),_()}),g.addEventListener("error",function(e){t(e)})}).catch(function(e){l&&l(e)});for(let[r,n]of(a?(g.innerHTML=a.__html||"",_()):i?(g.textContent="string"==typeof i?i:Array.isArray(i)?i.join(""):"",_()):t&&(g.src=t,f.set(t,y)),Object.entries(e))){if(void 0===n||p.includes(r))continue;let e=s.DOMAttributeNames[r]||r.toLowerCase();g.setAttribute(e,n)}"worker"===u&&g.setAttribute("type","text/partytown"),g.setAttribute("data-nscript",u),c&&h(c),document.body.appendChild(g)};function _(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,c.requestIdleCallback)(()=>m(e))}):m(e)}function g(e){e.forEach(_),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");d.add(t)})}function y(e){let{id:t,src:r="",onLoad:n=()=>{},onReady:o=null,strategy:s="afterInteractive",onError:f,stylesheets:p,...h}=e,{updateScripts:_,scripts:g,getIsSsr:y,appDir:b,nonce:v}=(0,u.useContext)(l.HeadManagerContext),P=(0,u.useRef)(!1);(0,u.useEffect)(()=>{let e=t||r;P.current||(o&&e&&d.has(e)&&o(),P.current=!0)},[o,t,r]);let E=(0,u.useRef)(!1);if((0,u.useEffect)(()=>{!E.current&&("afterInteractive"===s?m(e):"lazyOnload"===s&&("complete"===document.readyState?(0,c.requestIdleCallback)(()=>m(e)):window.addEventListener("load",()=>{(0,c.requestIdleCallback)(()=>m(e))})),E.current=!0)},[e,s]),("beforeInteractive"===s||"worker"===s)&&(_?(g[s]=(g[s]||[]).concat([{id:t,src:r,onLoad:n,onReady:o,onError:f,...h}]),_(g)):y&&y()?d.add(t||r):y&&!y()&&m(e)),b){if(p&&p.forEach(e=>{i.default.preinit(e,{as:"style"})}),"beforeInteractive"===s)return r?(i.default.preload(r,h.integrity?{as:"script",integrity:h.integrity}:{as:"script"}),(0,a.jsx)("script",{nonce:v,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([r,{...h,id:t}])+")"}})):(h.dangerouslySetInnerHTML&&(h.children=h.dangerouslySetInnerHTML.__html,delete h.dangerouslySetInnerHTML),(0,a.jsx)("script",{nonce:v,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{...h,id:t}])+")"}}));"afterInteractive"===s&&r&&i.default.preload(r,h.integrity?{as:"script",integrity:h.integrity}:{as:"script"})}return null}Object.defineProperty(y,"__nextScript",{value:!0});let b=y;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},12522:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let n=r(93456);function o(e){if("ended"!==e.state.state)throw Error("Expected span to be ended");(0,n.sendMessage)(JSON.stringify({event:"span-end",startTime:e.startTime,endTime:e.state.endTime,spanName:e.name,attributes:e.attributes}))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},89955:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});let n=r(81351)._(r(26685));class o{end(e){if("ended"===this.state.state)throw Error("Span has already ended");this.state={state:"ended",endTime:null!=e?e:Date.now()},this.onSpanEnd(this)}constructor(e,t,r){var n,o;this.name=e,this.attributes=null!=(n=t.attributes)?n:{},this.startTime=null!=(o=t.startTime)?o:Date.now(),this.onSpanEnd=r,this.state={state:"inprogress"}}}class a{startSpan(e,t){return new o(e,t,this.handleSpanEnd)}onSpanEnd(e){return this._emitter.on("spanend",e),()=>{this._emitter.off("spanend",e)}}constructor(){this._emitter=(0,n.default)(),this.handleSpanEnd=e=>{this._emitter.emit("spanend",e)}}}let i=new a;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1212:function(e,t){"use strict";let r;function n(e){var t;return(null==(t=function(){if(void 0===r){var e;r=(null==(e=window.trustedTypes)?void 0:e.createPolicy("nextjs",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e}))||null}return r}())?void 0:t.createScriptURL(e))||e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"__unsafeCreateTrustedScriptURL",{enumerable:!0,get:function(){return n}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},17054:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(36627),self.__next_set_public_path__=e=>{r.p=e},("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},52035:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}}),r(81351);let n=r(11527);r(50959);let o=r(79256);function a(e){function t(t){return(0,n.jsx)(e,{router:(0,o.useRouter)(),...t})}return t.getInitialProps=e.getInitialProps,t.origGetInitialProps=e.origGetInitialProps,t}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},73958:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let n=r(81351),o=r(11527),a=n._(r(50959)),i=r(46954);async function u(e){let{Component:t,ctx:r}=e;return{pageProps:await (0,i.loadGetInitialProps)(t,r)}}class l extends a.default.Component{render(){let{Component:e,pageProps:t}=this.props;return(0,o.jsx)(e,{...t})}}l.origGetInitialProps=u,l.getInitialProps=u,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},31850:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return c}});let n=r(81351),o=r(11527),a=n._(r(50959)),i=n._(r(58044)),u={400:"Bad Request",404:"This page could not be found",405:"Method Not Allowed",500:"Internal Server Error"};function l(e){let{res:t,err:r}=e;return{statusCode:t&&t.statusCode?t.statusCode:r?r.statusCode:404}}let s={error:{fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},desc:{lineHeight:"48px"},h1:{display:"inline-block",margin:"0 20px 0 0",paddingRight:23,fontSize:24,fontWeight:500,verticalAlign:"top"},h2:{fontSize:14,fontWeight:400,lineHeight:"28px"},wrap:{display:"inline-block"}};class c extends a.default.Component{render(){let{statusCode:e,withDarkMode:t=!0}=this.props,r=this.props.title||u[e]||"An unexpected error has occurred";return(0,o.jsxs)("div",{style:s.error,children:[(0,o.jsx)(i.default,{children:(0,o.jsx)("title",{children:e?e+": "+r:"Application error: a client-side exception has occurred"})}),(0,o.jsxs)("div",{style:s.desc,children:[(0,o.jsx)("style",{dangerouslySetInnerHTML:{__html:"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}"+(t?"@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}":"")}}),e?(0,o.jsx)("h1",{className:"next-error-h1",style:s.h1,children:e}):null,(0,o.jsx)("div",{style:s.wrap,children:(0,o.jsxs)("h2",{style:s.h2,children:[this.props.title||e?r:(0,o.jsx)(o.Fragment,{children:"Application error: a client-side exception has occurred (see the browser console for more information)"}),"."]})})]})]})}}c.displayName="ErrorPage",c.getInitialProps=l,c.origGetInitialProps=l,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1421:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AmpStateContext",{enumerable:!0,get:function(){return n}});let n=r(81351)._(r(50959)).default.createContext({})},68509:function(e,t){"use strict";function r(e){let{ampFirst:t=!1,hybrid:r=!1,hasQuery:n=!1}=void 0===e?{}:e;return t||r&&n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isInAmpMode",{enumerable:!0,get:function(){return r}})},64731:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{AppRouterContext:function(){return o},LayoutRouterContext:function(){return a},GlobalLayoutRouterContext:function(){return i},TemplateContext:function(){return u},MissingSlotContext:function(){return l}});let n=r(81351)._(r(50959)),o=n.default.createContext(null),a=n.default.createContext(null),i=n.default.createContext(null),u=n.default.createContext(null),l=n.default.createContext(new Set)},80249:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BloomFilter",{enumerable:!0,get:function(){return r}});class r{static from(e,t){void 0===t&&(t=1e-4);let n=new r(e.length,t);for(let t of e)n.add(t);return n}export(){return{numItems:this.numItems,errorRate:this.errorRate,numBits:this.numBits,numHashes:this.numHashes,bitArray:this.bitArray}}import(e){this.numItems=e.numItems,this.errorRate=e.errorRate,this.numBits=e.numBits,this.numHashes=e.numHashes,this.bitArray=e.bitArray}add(e){this.getHashValues(e).forEach(e=>{this.bitArray[e]=1})}contains(e){return this.getHashValues(e).every(e=>this.bitArray[e])}getHashValues(e){let t=[];for(let r=1;r<=this.numHashes;r++){let n=function(e){let t=0;for(let r=0;r>>13,t=Math.imul(t,1540483477);return t>>>0}(""+e+r)%this.numBits;t.push(n)}return t}constructor(e,t=1e-4){this.numItems=e,this.errorRate=t,this.numBits=Math.ceil(-(e*Math.log(t))/(Math.log(2)*Math.log(2))),this.numHashes=Math.ceil(this.numBits/e*Math.log(2)),this.bitArray=Array(this.numBits).fill(0)}}},30129:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{MODERN_BROWSERSLIST_TARGET:function(){return n.default},COMPILER_NAMES:function(){return o},INTERNAL_HEADERS:function(){return a},COMPILER_INDEXES:function(){return i},PHASE_EXPORT:function(){return u},PHASE_PRODUCTION_BUILD:function(){return l},PHASE_PRODUCTION_SERVER:function(){return s},PHASE_DEVELOPMENT_SERVER:function(){return c},PHASE_TEST:function(){return f},PHASE_INFO:function(){return d},PAGES_MANIFEST:function(){return p},APP_PATHS_MANIFEST:function(){return h},APP_PATH_ROUTES_MANIFEST:function(){return m},BUILD_MANIFEST:function(){return _},APP_BUILD_MANIFEST:function(){return g},FUNCTIONS_CONFIG_MANIFEST:function(){return y},SUBRESOURCE_INTEGRITY_MANIFEST:function(){return b},NEXT_FONT_MANIFEST:function(){return v},EXPORT_MARKER:function(){return P},EXPORT_DETAIL:function(){return E},PRERENDER_MANIFEST:function(){return S},ROUTES_MANIFEST:function(){return j},IMAGES_MANIFEST:function(){return w},SERVER_FILES_MANIFEST:function(){return O},DEV_CLIENT_PAGES_MANIFEST:function(){return R},MIDDLEWARE_MANIFEST:function(){return T},DEV_MIDDLEWARE_MANIFEST:function(){return M},REACT_LOADABLE_MANIFEST:function(){return x},FONT_MANIFEST:function(){return I},SERVER_DIRECTORY:function(){return C},CONFIG_FILES:function(){return A},BUILD_ID_FILE:function(){return L},BLOCKED_PAGES:function(){return N},CLIENT_PUBLIC_FILES_PATH:function(){return D},CLIENT_STATIC_FILES_PATH:function(){return k},STRING_LITERAL_DROP_BUNDLE:function(){return F},NEXT_BUILTIN_DOCUMENT:function(){return B},BARREL_OPTIMIZATION_PREFIX:function(){return U},CLIENT_REFERENCE_MANIFEST:function(){return H},SERVER_REFERENCE_MANIFEST:function(){return W},MIDDLEWARE_BUILD_MANIFEST:function(){return q},MIDDLEWARE_REACT_LOADABLE_MANIFEST:function(){return G},CLIENT_STATIC_FILES_RUNTIME_MAIN:function(){return z},CLIENT_STATIC_FILES_RUNTIME_MAIN_APP:function(){return V},APP_CLIENT_INTERNALS:function(){return X},CLIENT_STATIC_FILES_RUNTIME_REACT_REFRESH:function(){return Y},CLIENT_STATIC_FILES_RUNTIME_AMP:function(){return $},CLIENT_STATIC_FILES_RUNTIME_WEBPACK:function(){return K},CLIENT_STATIC_FILES_RUNTIME_POLYFILLS:function(){return J},CLIENT_STATIC_FILES_RUNTIME_POLYFILLS_SYMBOL:function(){return Q},EDGE_RUNTIME_WEBPACK:function(){return Z},STATIC_PROPS_ID:function(){return ee},SERVER_PROPS_ID:function(){return et},GOOGLE_FONT_PROVIDER:function(){return er},OPTIMIZED_FONT_PROVIDERS:function(){return en},DEFAULT_SERIF_FONT:function(){return eo},DEFAULT_SANS_SERIF_FONT:function(){return ea},STATIC_STATUS_PAGES:function(){return ei},TRACE_OUTPUT_VERSION:function(){return eu},TURBO_TRACE_DEFAULT_MEMORY_LIMIT:function(){return el},RSC_MODULE_TYPES:function(){return es},EDGE_UNSUPPORTED_NODE_APIS:function(){return ec},SYSTEM_ENTRYPOINTS:function(){return ef}});let n=r(81351)._(r(70014)),o={client:"client",server:"server",edgeServer:"edge-server"},a=["x-invoke-error","x-invoke-output","x-invoke-path","x-invoke-query","x-invoke-status","x-middleware-invoke"],i={[o.client]:0,[o.server]:1,[o.edgeServer]:2},u="phase-export",l="phase-production-build",s="phase-production-server",c="phase-development-server",f="phase-test",d="phase-info",p="pages-manifest.json",h="app-paths-manifest.json",m="app-path-routes-manifest.json",_="build-manifest.json",g="app-build-manifest.json",y="functions-config-manifest.json",b="subresource-integrity-manifest",v="next-font-manifest",P="export-marker.json",E="export-detail.json",S="prerender-manifest.json",j="routes-manifest.json",w="images-manifest.json",O="required-server-files.json",R="_devPagesManifest.json",T="middleware-manifest.json",M="_devMiddlewareManifest.json",x="react-loadable-manifest.json",I="font-manifest.json",C="server",A=["next.config.js","next.config.mjs"],L="BUILD_ID",N=["/_document","/_app","/_error"],D="public",k="static",F="__NEXT_DROP_CLIENT_FILE__",B="__NEXT_BUILTIN_DOCUMENT__",U="__barrel_optimize__",H="client-reference-manifest",W="server-reference-manifest",q="middleware-build-manifest",G="middleware-react-loadable-manifest",z="main",V=""+z+"-app",X="app-pages-internals",Y="react-refresh",$="amp",K="webpack",J="polyfills",Q=Symbol(J),Z="edge-runtime-webpack",ee="__N_SSG",et="__N_SSP",er="https://fonts.googleapis.com/",en=[{url:er,preconnect:"https://fonts.gstatic.com"},{url:"https://use.typekit.net",preconnect:"https://use.typekit.net"}],eo={name:"Times New Roman",xAvgCharWidth:821,azAvgWidth:854.3953488372093,unitsPerEm:2048},ea={name:"Arial",xAvgCharWidth:904,azAvgWidth:934.5116279069767,unitsPerEm:2048},ei=["/500"],eu=1,el=6e3,es={client:"client",server:"server"},ec=["clearImmediate","setImmediate","BroadcastChannel","ByteLengthQueuingStrategy","CompressionStream","CountQueuingStrategy","DecompressionStream","DomException","MessageChannel","MessageEvent","MessagePort","ReadableByteStreamController","ReadableStreamBYOBRequest","ReadableStreamDefaultController","TransformStreamDefaultController","WritableStreamDefaultController"],ef=new Set([z,Y,$,V]);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},52511:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"escapeStringRegexp",{enumerable:!0,get:function(){return o}});let r=/[|\\{}()[\]^$+*?.-]/,n=/[|\\{}()[\]^$+*?.-]/g;function o(e){return r.test(e)?e.replace(n,"\\$&"):e}},80541:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HeadManagerContext",{enumerable:!0,get:function(){return n}});let n=r(81351)._(r(50959)).default.createContext({})},58044:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{defaultHead:function(){return f},default:function(){return m}});let n=r(81351),o=r(35815),a=r(11527),i=o._(r(50959)),u=n._(r(89305)),l=r(1421),s=r(80541),c=r(68509);function f(e){void 0===e&&(e=!1);let t=[(0,a.jsx)("meta",{charSet:"utf-8"})];return e||t.push((0,a.jsx)("meta",{name:"viewport",content:"width=device-width"})),t}function d(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===i.default.Fragment?e.concat(i.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}r(62509);let p=["name","httpEquiv","charSet","itemProp"];function h(e,t){let{inAmpMode:r}=t;return e.reduce(d,[]).reverse().concat(f(r).reverse()).filter(function(){let e=new Set,t=new Set,r=new Set,n={};return o=>{let a=!0,i=!1;if(o.key&&"number"!=typeof o.key&&o.key.indexOf("$")>0){i=!0;let t=o.key.slice(o.key.indexOf("$")+1);e.has(t)?a=!1:e.add(t)}switch(o.type){case"title":case"base":t.has(o.type)?a=!1:t.add(o.type);break;case"meta":for(let e=0,t=p.length;e{let n=e.key||t;if(!r&&"link"===e.type&&e.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some(t=>e.props.href.startsWith(t))){let t={...e.props||{}};return t["data-href"]=t.href,t.href=void 0,t["data-optimized-fonts"]=!0,i.default.cloneElement(e,t)}return i.default.cloneElement(e,{key:n})})}let m=function(e){let{children:t}=e,r=(0,i.useContext)(l.AmpStateContext),n=(0,i.useContext)(s.HeadManagerContext);return(0,a.jsx)(u.default,{reduceComponentsToState:h,headManager:n,inAmpMode:(0,c.isInAmpMode)(r),children:t})};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},30243:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{SearchParamsContext:function(){return o},PathnameContext:function(){return a},PathParamsContext:function(){return i}});let n=r(50959),o=(0,n.createContext)(null),a=(0,n.createContext)(null),i=(0,n.createContext)(null)},64889:function(e,t){"use strict";function r(e,t){let r;let n=e.split("/");return(t||[]).some(t=>!!n[1]&&n[1].toLowerCase()===t.toLowerCase()&&(r=t,n.splice(1,1),e=n.join("/")||"/",!0)),{pathname:e,detectedLocale:r}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return r}})},25364:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ImageConfigContext",{enumerable:!0,get:function(){return a}});let n=r(81351)._(r(50959)),o=r(54297),a=n.default.createContext(o.imageConfigDefault)},54297:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{VALID_LOADERS:function(){return r},imageConfigDefault:function(){return n}});let r=["default","imgix","cloudinary","akamai","custom"],n={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:["image/webp"],dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"inline",remotePatterns:[],unoptimized:!1}},41817:function(e,t){"use strict";function r(e){return Object.prototype.toString.call(e)}function n(e){if("[object Object]"!==r(e))return!1;let t=Object.getPrototypeOf(e);return null===t||t.hasOwnProperty("isPrototypeOf")}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getObjectClassLabel:function(){return r},isPlainObject:function(){return n}})},40632:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{BailoutToCSRError:function(){return n},isBailoutToCSRError:function(){return o}});let r="BAILOUT_TO_CLIENT_SIDE_RENDERING";class n extends Error{constructor(e){super("Bail out to client-side rendering: "+e),this.reason=e,this.digest=r}}function o(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===r}},26685:function(e,t){"use strict";function r(){let e=Object.create(null);return{on(t,r){(e[t]||(e[t]=[])).push(r)},off(t,r){e[t]&&e[t].splice(e[t].indexOf(r)>>>0,1)},emit(t){for(var r=arguments.length,n=Array(r>1?r-1:0),o=1;o{e(...n)})}}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}})},70014:function(e){"use strict";e.exports=["chrome 64","edge 79","firefox 67","opera 51","safari 12"]},26457:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"denormalizePagePath",{enumerable:!0,get:function(){return a}});let n=r(87849),o=r(61633);function a(e){let t=(0,o.normalizePathSep)(e);return t.startsWith("/index/")&&!(0,n.isDynamicRoute)(t)?t.slice(6):"/index"!==t?t:"/"}},23380:function(e,t){"use strict";function r(e){return e.startsWith("/")?e:"/"+e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ensureLeadingSlash",{enumerable:!0,get:function(){return r}})},61633:function(e,t){"use strict";function r(e){return e.replace(/\\/g,"/")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathSep",{enumerable:!0,get:function(){return r}})},75530:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return n}});let n=r(81351)._(r(50959)).default.createContext(null)},4936:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{adaptForAppRouterInstance:function(){return c},adaptForSearchParams:function(){return f},adaptForPathParams:function(){return d},PathnameContextProviderAdapter:function(){return p}});let n=r(35815),o=r(11527),a=n._(r(50959)),i=r(30243),u=r(87849),l=r(43254),s=r(1792);function c(e){return{back(){e.back()},forward(){e.forward()},refresh(){e.reload()},push(t,r){let{scroll:n}=void 0===r?{}:r;e.push(t,void 0,{scroll:n})},replace(t,r){let{scroll:n}=void 0===r?{}:r;e.replace(t,void 0,{scroll:n})},prefetch(t){e.prefetch(t)}}}function f(e){return e.isReady&&e.query?(0,l.asPathToSearchParams)(e.asPath):new URLSearchParams}function d(e){if(!e.isReady||!e.query)return null;let t={};for(let r of Object.keys((0,s.getRouteRegex)(e.pathname).groups))t[r]=e.query[r];return t}function p(e){let{children:t,router:r,...n}=e,l=(0,a.useRef)(n.isAutoExport),s=(0,a.useMemo)(()=>{let e;let t=l.current;if(t&&(l.current=!1),(0,u.isDynamicRoute)(r.pathname)&&(r.isFallback||t&&!r.isReady))return null;try{e=new URL(r.asPath,"http://f")}catch(e){return"/"}return e.pathname},[r.asPath,r.isFallback,r.isReady,r.pathname]);return(0,o.jsx)(i.PathnameContext.Provider,{value:s,children:t})}},36836:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return V},matchesMiddleware:function(){return N},createKey:function(){return q}});let n=r(81351),o=r(35815),a=r(53811),i=r(25226),u=r(50314),l=o._(r(71689)),s=r(26457),c=r(64889),f=n._(r(26685)),d=r(46954),p=r(69843),h=r(72432);r(74629);let m=r(91240),_=r(1792),g=r(87239);r(30693);let y=r(86376),b=r(9561),v=r(88754),P=r(59194),E=r(29971),S=r(63667),j=r(46680),w=r(70361),O=r(82023),R=r(67461),T=r(86900),M=r(18015),x=r(96065),I=r(5288),C=r(45554),A=r(23957);function L(){return Object.assign(Error("Route Cancelled"),{cancelled:!0})}async function N(e){let t=await Promise.resolve(e.router.pageLoader.getMiddleware());if(!t)return!1;let{pathname:r}=(0,y.parsePath)(e.asPath),n=(0,S.hasBasePath)(r)?(0,P.removeBasePath)(r):r,o=(0,E.addBasePath)((0,b.addLocale)(n,e.locale));return t.some(e=>new RegExp(e.regexp).test(o))}function D(e){let t=(0,d.getLocationOrigin)();return e.startsWith(t)?e.substring(t.length):e}function k(e,t,r){let[n,o]=(0,j.resolveHref)(e,t,!0),a=(0,d.getLocationOrigin)(),i=n.startsWith(a),u=o&&o.startsWith(a);n=D(n),o=o?D(o):o;let l=i?n:(0,E.addBasePath)(n),s=r?D((0,j.resolveHref)(e,r)):o||n;return{url:l,as:u?s:(0,E.addBasePath)(s)}}function F(e,t){let r=(0,a.removeTrailingSlash)((0,s.denormalizePagePath)(e));return"/404"===r||"/_error"===r?e:(t.includes(r)||t.some(t=>{if((0,p.isDynamicRoute)(t)&&(0,_.getRouteRegex)(t).re.test(r))return e=t,!0}),(0,a.removeTrailingSlash)(e))}async function B(e){if(!await N(e)||!e.fetchData)return null;try{let t=await e.fetchData(),r=await function(e,t,r){let n={basePath:r.router.basePath,i18n:{locales:r.router.locales},trailingSlash:!1},o=t.headers.get("x-nextjs-rewrite"),u=o||t.headers.get("x-nextjs-matched-path"),l=t.headers.get("x-matched-path");if(!l||u||l.includes("__next_data_catchall")||l.includes("/_error")||l.includes("/404")||(u=l),u){if(u.startsWith("/")){let t=(0,h.parseRelativeUrl)(u),l=(0,O.getNextPathnameInfo)(t.pathname,{nextConfig:n,parseData:!0}),s=(0,a.removeTrailingSlash)(l.pathname);return Promise.all([r.router.pageLoader.getPageList(),(0,i.getClientBuildManifest)()]).then(a=>{let[i,{__rewrites:u}]=a,f=(0,b.addLocale)(l.pathname,l.locale);if((0,p.isDynamicRoute)(f)||!o&&i.includes((0,c.normalizeLocalePath)((0,P.removeBasePath)(f),r.router.locales).pathname)){let r=(0,O.getNextPathnameInfo)((0,h.parseRelativeUrl)(e).pathname,{nextConfig:n,parseData:!0});f=(0,E.addBasePath)(r.pathname),t.pathname=f}if(!i.includes(s)){let e=F(s,i);e!==s&&(s=e)}let d=i.includes(s)?s:F((0,c.normalizeLocalePath)((0,P.removeBasePath)(t.pathname),r.router.locales).pathname,i);if((0,p.isDynamicRoute)(d)){let e=(0,m.getRouteMatcher)((0,_.getRouteRegex)(d))(f);Object.assign(t.query,e||{})}return{type:"rewrite",parsedAs:t,resolvedHref:d}})}let t=(0,y.parsePath)(e);return Promise.resolve({type:"redirect-external",destination:""+(0,R.formatNextPathnameInfo)({...(0,O.getNextPathnameInfo)(t.pathname,{nextConfig:n,parseData:!0}),defaultLocale:r.router.defaultLocale,buildId:""})+t.query+t.hash})}let s=t.headers.get("x-nextjs-redirect");if(s){if(s.startsWith("/")){let e=(0,y.parsePath)(s),t=(0,R.formatNextPathnameInfo)({...(0,O.getNextPathnameInfo)(e.pathname,{nextConfig:n,parseData:!0}),defaultLocale:r.router.defaultLocale,buildId:""});return Promise.resolve({type:"redirect-internal",newAs:""+t+e.query+e.hash,newUrl:""+t+e.query+e.hash})}return Promise.resolve({type:"redirect-external",destination:s})}return Promise.resolve({type:"next"})}(t.dataHref,t.response,e);return{dataHref:t.dataHref,json:t.json,response:t.response,text:t.text,cacheKey:t.cacheKey,effect:r}}catch(e){return null}}let U=Symbol("SSG_DATA_NOT_FOUND");function H(e){try{return JSON.parse(e)}catch(e){return null}}function W(e){var t;let{dataHref:r,inflightCache:n,isPrefetch:o,hasMiddleware:a,isServerRender:u,parseJSON:l,persistCache:s,isBackground:c,unstable_skipClientCache:f}=e,{href:d}=new URL(r,window.location.href),p=e=>(function e(t,r,n){return fetch(t,{credentials:"same-origin",method:n.method||"GET",headers:Object.assign({},n.headers,{"x-nextjs-data":"1"})}).then(o=>!o.ok&&r>1&&o.status>=500?e(t,r-1,n):o)})(r,u?3:1,{headers:Object.assign({},o?{purpose:"prefetch"}:{},o&&a?{"x-middleware-prefetch":"1"}:{}),method:null!=(t=null==e?void 0:e.method)?t:"GET"}).then(t=>t.ok&&(null==e?void 0:e.method)==="HEAD"?{dataHref:r,response:t,text:"",json:{},cacheKey:d}:t.text().then(e=>{if(!t.ok){if(a&&[301,302,307,308].includes(t.status))return{dataHref:r,response:t,text:e,json:{},cacheKey:d};if(404===t.status){var n;if(null==(n=H(e))?void 0:n.notFound)return{dataHref:r,json:{notFound:U},response:t,text:e,cacheKey:d}}let o=Error("Failed to load static props");throw u||(0,i.markAssetError)(o),o}return{dataHref:r,json:l?H(e):null,response:t,text:e,cacheKey:d}})).then(e=>(s&&"no-cache"!==e.response.headers.get("x-middleware-cache")||delete n[d],e)).catch(e=>{throw f||delete n[d],("Failed to fetch"===e.message||"NetworkError when attempting to fetch resource."===e.message||"Load failed"===e.message)&&(0,i.markAssetError)(e),e});return f&&s?p({}).then(e=>(n[d]=Promise.resolve(e),e)):void 0!==n[d]?n[d]:n[d]=p(c?{method:"HEAD"}:{})}function q(){return Math.random().toString(36).slice(2,10)}function G(e){let{url:t,router:r}=e;if(t===(0,E.addBasePath)((0,b.addLocale)(r.asPath,r.locale)))throw Error("Invariant: attempted to hard navigate to the same URL "+t+" "+location.href);window.location.href=t}let z=e=>{let{route:t,router:r}=e,n=!1,o=r.clc=()=>{n=!0};return()=>{if(n){let e=Error('Abort fetching component for route: "'+t+'"');throw e.cancelled=!0,e}o===r.clc&&(r.clc=null)}};class V{reload(){window.location.reload()}back(){window.history.back()}forward(){window.history.forward()}push(e,t,r){return void 0===r&&(r={}),{url:e,as:t}=k(this,e,t),this.change("pushState",e,t,r)}replace(e,t,r){return void 0===r&&(r={}),{url:e,as:t}=k(this,e,t),this.change("replaceState",e,t,r)}async _bfl(e,t,r,n){{let l=!1,s=!1;for(let c of[e,t])if(c){let t=(0,a.removeTrailingSlash)(new URL(c,"http://n").pathname),f=(0,E.addBasePath)((0,b.addLocale)(t,r||this.locale));if(t!==(0,a.removeTrailingSlash)(new URL(this.asPath,"http://n").pathname)){var o,i,u;for(let e of(l=l||!!(null==(o=this._bfl_s)?void 0:o.contains(t))||!!(null==(i=this._bfl_s)?void 0:i.contains(f)),[t,f])){let t=e.split("/");for(let e=0;!s&&e{})}}}}return!1}async change(e,t,r,n,o){var s,c,f,j,w,O,R,x,A;let D,B;if(!(0,M.isLocalURL)(t))return G({url:t,router:this}),!1;let H=1===n._h;H||n.shallow||await this._bfl(r,void 0,n.locale);let W=H||n._shouldResolveHref||(0,y.parsePath)(t).pathname===(0,y.parsePath)(r).pathname,q={...this.state},z=!0!==this.isReady;this.isReady=!0;let X=this.isSsr;if(H||(this.isSsr=!1),H&&this.clc)return!1;let Y=q.locale;d.ST&&performance.mark("routeChange");let{shallow:$=!1,scroll:K=!0}=n,J={shallow:$};this._inFlightRoute&&this.clc&&(X||V.events.emit("routeChangeError",L(),this._inFlightRoute,J),this.clc(),this.clc=null),r=(0,E.addBasePath)((0,b.addLocale)((0,S.hasBasePath)(r)?(0,P.removeBasePath)(r):r,n.locale,this.defaultLocale));let Q=(0,v.removeLocale)((0,S.hasBasePath)(r)?(0,P.removeBasePath)(r):r,q.locale);this._inFlightRoute=r;let Z=Y!==q.locale;if(!H&&this.onlyAHashChange(Q)&&!Z){q.asPath=Q,V.events.emit("hashChangeStart",r,J),this.changeState(e,t,r,{...n,scroll:!1}),K&&this.scrollToHash(Q);try{await this.set(q,this.components[q.route],null)}catch(e){throw(0,l.default)(e)&&e.cancelled&&V.events.emit("routeChangeError",e,Q,J),e}return V.events.emit("hashChangeComplete",r,J),!0}let ee=(0,h.parseRelativeUrl)(t),{pathname:et,query:er}=ee;try{[D,{__rewrites:B}]=await Promise.all([this.pageLoader.getPageList(),(0,i.getClientBuildManifest)(),this.pageLoader.getMiddleware()])}catch(e){return G({url:r,router:this}),!1}this.urlIsNew(Q)||Z||(e="replaceState");let en=r;et=et?(0,a.removeTrailingSlash)((0,P.removeBasePath)(et)):et;let eo=(0,a.removeTrailingSlash)(et),ea=r.startsWith("/")&&(0,h.parseRelativeUrl)(r).pathname;if(null==(s=this.components[et])?void 0:s.__appRouter)return G({url:r,router:this}),new Promise(()=>{});let ei=!!(ea&&eo!==ea&&(!(0,p.isDynamicRoute)(eo)||!(0,m.getRouteMatcher)((0,_.getRouteRegex)(eo))(ea))),eu=!n.shallow&&await N({asPath:r,locale:q.locale,router:this});if(H&&eu&&(W=!1),W&&"/_error"!==et&&(n._shouldResolveHref=!0,ee.pathname=F(et,D),ee.pathname===et||(et=ee.pathname,ee.pathname=(0,E.addBasePath)(et),eu||(t=(0,g.formatWithValidation)(ee)))),!(0,M.isLocalURL)(r))return G({url:r,router:this}),!1;en=(0,v.removeLocale)((0,P.removeBasePath)(en),q.locale),eo=(0,a.removeTrailingSlash)(et);let el=!1;if((0,p.isDynamicRoute)(eo)){let e=(0,h.parseRelativeUrl)(en),n=e.pathname,o=(0,_.getRouteRegex)(eo);el=(0,m.getRouteMatcher)(o)(n);let a=eo===n,i=a?(0,C.interpolateAs)(eo,n,er):{};if(el&&(!a||i.result))a?r=(0,g.formatWithValidation)(Object.assign({},e,{pathname:i.result,query:(0,I.omit)(er,i.params)})):Object.assign(er,el);else{let e=Object.keys(o.groups).filter(e=>!er[e]&&!o.groups[e].optional);if(e.length>0&&!eu)throw Error((a?"The provided `href` ("+t+") value is missing query values ("+e.join(", ")+") to be interpolated properly. ":"The provided `as` value ("+n+") is incompatible with the `href` value ("+eo+"). ")+"Read more: https://nextjs.org/docs/messages/"+(a?"href-interpolation-failed":"incompatible-href-as"))}}H||V.events.emit("routeChangeStart",r,J);let es="/404"===this.pathname||"/_error"===this.pathname;try{let a=await this.getRouteInfo({route:eo,pathname:et,query:er,as:r,resolvedAs:en,routeProps:J,locale:q.locale,isPreview:q.isPreview,hasMiddleware:eu,unstable_skipClientCache:n.unstable_skipClientCache,isQueryUpdating:H&&!this.isFallback,isMiddlewareRewrite:ei});if(H||n.shallow||await this._bfl(r,"resolvedAs"in a?a.resolvedAs:void 0,q.locale),"route"in a&&eu){eo=et=a.route||eo,J.shallow||(er=Object.assign({},a.query||{},er));let e=(0,S.hasBasePath)(ee.pathname)?(0,P.removeBasePath)(ee.pathname):ee.pathname;if(el&&et!==e&&Object.keys(el).forEach(e=>{el&&er[e]===el[e]&&delete er[e]}),(0,p.isDynamicRoute)(et)){let e=!J.shallow&&a.resolvedAs?a.resolvedAs:(0,E.addBasePath)((0,b.addLocale)(new URL(r,location.href).pathname,q.locale),!0);(0,S.hasBasePath)(e)&&(e=(0,P.removeBasePath)(e));let t=(0,_.getRouteRegex)(et),n=(0,m.getRouteMatcher)(t)(new URL(e,location.href).pathname);n&&Object.assign(er,n)}}if("type"in a){if("redirect-internal"===a.type)return this.change(e,a.newUrl,a.newAs,n);return G({url:a.destination,router:this}),new Promise(()=>{})}let i=a.Component;if(i&&i.unstable_scriptLoader&&[].concat(i.unstable_scriptLoader()).forEach(e=>{(0,u.handleClientScriptLoad)(e.props)}),(a.__N_SSG||a.__N_SSP)&&a.props){if(a.props.pageProps&&a.props.pageProps.__N_REDIRECT){n.locale=!1;let t=a.props.pageProps.__N_REDIRECT;if(t.startsWith("/")&&!1!==a.props.pageProps.__N_REDIRECT_BASE_PATH){let r=(0,h.parseRelativeUrl)(t);r.pathname=F(r.pathname,D);let{url:o,as:a}=k(this,t,t);return this.change(e,o,a,n)}return G({url:t,router:this}),new Promise(()=>{})}if(q.isPreview=!!a.props.__N_PREVIEW,a.props.notFound===U){let e;try{await this.fetchComponent("/404"),e="/404"}catch(t){e="/_error"}if(a=await this.getRouteInfo({route:e,pathname:e,query:er,as:r,resolvedAs:en,routeProps:{shallow:!1},locale:q.locale,isPreview:q.isPreview,isNotFound:!0}),"type"in a)throw Error("Unexpected middleware effect on /404")}}H&&"/_error"===this.pathname&&(null==(f=self.__NEXT_DATA__.props)?void 0:null==(c=f.pageProps)?void 0:c.statusCode)===500&&(null==(j=a.props)?void 0:j.pageProps)&&(a.props.pageProps.statusCode=500);let s=n.shallow&&q.route===(null!=(w=a.route)?w:eo),d=null!=(O=n.scroll)?O:!H&&!s,g=null!=o?o:d?{x:0,y:0}:null,y={...q,route:eo,pathname:et,query:er,asPath:Q,isFallback:!1};if(H&&es){if(a=await this.getRouteInfo({route:this.pathname,pathname:this.pathname,query:er,as:r,resolvedAs:en,routeProps:{shallow:!1},locale:q.locale,isPreview:q.isPreview,isQueryUpdating:H&&!this.isFallback}),"type"in a)throw Error("Unexpected middleware effect on "+this.pathname);"/_error"===this.pathname&&(null==(x=self.__NEXT_DATA__.props)?void 0:null==(R=x.pageProps)?void 0:R.statusCode)===500&&(null==(A=a.props)?void 0:A.pageProps)&&(a.props.pageProps.statusCode=500);try{await this.set(y,a,g)}catch(e){throw(0,l.default)(e)&&e.cancelled&&V.events.emit("routeChangeError",e,Q,J),e}return!0}if(V.events.emit("beforeHistoryChange",r,J),this.changeState(e,t,r,n),!(H&&!g&&!z&&!Z&&(0,T.compareRouterStates)(y,this.state))){try{await this.set(y,a,g)}catch(e){if(e.cancelled)a.error=a.error||e;else throw e}if(a.error)throw H||V.events.emit("routeChangeError",a.error,Q,J),a.error;H||V.events.emit("routeChangeComplete",r,J),d&&/#.+$/.test(r)&&this.scrollToHash(r)}return!0}catch(e){if((0,l.default)(e)&&e.cancelled)return!1;throw e}}changeState(e,t,r,n){void 0===n&&(n={}),("pushState"!==e||(0,d.getURL)()!==r)&&(this._shallow=n.shallow,window.history[e]({url:t,as:r,options:n,__N:!0,key:this._key="pushState"!==e?this._key:q()},"",r))}async handleRouteInfoError(e,t,r,n,o,a){if(console.error(e),e.cancelled)throw e;if((0,i.isAssetError)(e)||a)throw V.events.emit("routeChangeError",e,n,o),G({url:n,router:this}),L();try{let n;let{page:o,styleSheets:a}=await this.fetchComponent("/_error"),i={props:n,Component:o,styleSheets:a,err:e,error:e};if(!i.props)try{i.props=await this.getInitialProps(o,{err:e,pathname:t,query:r})}catch(e){console.error("Error in error page `getInitialProps`: ",e),i.props={}}return i}catch(e){return this.handleRouteInfoError((0,l.default)(e)?e:Error(e+""),t,r,n,o,!0)}}async getRouteInfo(e){let{route:t,pathname:r,query:n,as:o,resolvedAs:i,routeProps:u,locale:s,hasMiddleware:f,isPreview:d,unstable_skipClientCache:p,isQueryUpdating:h,isMiddlewareRewrite:m,isNotFound:_}=e,y=t;try{var b,v,E,S;let e=z({route:y,router:this}),t=this.components[y];if(u.shallow&&t&&this.route===y)return t;f&&(t=void 0);let l=!t||"initial"in t?void 0:t,j={dataHref:this.pageLoader.getDataHref({href:(0,g.formatWithValidation)({pathname:r,query:n}),skipInterpolation:!0,asPath:_?"/404":i,locale:s}),hasMiddleware:!0,isServerRender:this.isSsr,parseJSON:!0,inflightCache:h?this.sbc:this.sdc,persistCache:!d,isPrefetch:!1,unstable_skipClientCache:p,isBackground:h},O=h&&!m?null:await B({fetchData:()=>W(j),asPath:_?"/404":i,locale:s,router:this}).catch(e=>{if(h)return null;throw e});if(O&&("/_error"===r||"/404"===r)&&(O.effect=void 0),h&&(O?O.json=self.__NEXT_DATA__.props:O={json:self.__NEXT_DATA__.props}),e(),(null==O?void 0:null==(b=O.effect)?void 0:b.type)==="redirect-internal"||(null==O?void 0:null==(v=O.effect)?void 0:v.type)==="redirect-external")return O.effect;if((null==O?void 0:null==(E=O.effect)?void 0:E.type)==="rewrite"){let e=(0,a.removeTrailingSlash)(O.effect.resolvedHref),o=await this.pageLoader.getPageList();if((!h||o.includes(e))&&(y=e,r=O.effect.resolvedHref,n={...n,...O.effect.parsedAs.query},i=(0,P.removeBasePath)((0,c.normalizeLocalePath)(O.effect.parsedAs.pathname,this.locales).pathname),t=this.components[y],u.shallow&&t&&this.route===y&&!f))return{...t,route:y}}if((0,w.isAPIRoute)(y))return G({url:o,router:this}),new Promise(()=>{});let R=l||await this.fetchComponent(y).then(e=>({Component:e.page,styleSheets:e.styleSheets,__N_SSG:e.mod.__N_SSG,__N_SSP:e.mod.__N_SSP})),T=null==O?void 0:null==(S=O.response)?void 0:S.headers.get("x-middleware-skip"),M=R.__N_SSG||R.__N_SSP;T&&(null==O?void 0:O.dataHref)&&delete this.sdc[O.dataHref];let{props:x,cacheKey:I}=await this._getData(async()=>{if(M){if((null==O?void 0:O.json)&&!T)return{cacheKey:O.cacheKey,props:O.json};let e=(null==O?void 0:O.dataHref)?O.dataHref:this.pageLoader.getDataHref({href:(0,g.formatWithValidation)({pathname:r,query:n}),asPath:i,locale:s}),t=await W({dataHref:e,isServerRender:this.isSsr,parseJSON:!0,inflightCache:T?{}:this.sdc,persistCache:!d,isPrefetch:!1,unstable_skipClientCache:p});return{cacheKey:t.cacheKey,props:t.json||{}}}return{headers:{},props:await this.getInitialProps(R.Component,{pathname:r,query:n,asPath:o,locale:s,locales:this.locales,defaultLocale:this.defaultLocale})}});return R.__N_SSP&&j.dataHref&&I&&delete this.sdc[I],this.isPreview||!R.__N_SSG||h||W(Object.assign({},j,{isBackground:!0,persistCache:!1,inflightCache:this.sbc})).catch(()=>{}),x.pageProps=Object.assign({},x.pageProps),R.props=x,R.route=y,R.query=n,R.resolvedAs=i,this.components[y]=R,R}catch(e){return this.handleRouteInfoError((0,l.getProperError)(e),r,n,o,u)}}set(e,t,r){return this.state=e,this.sub(t,this.components["/_app"].Component,r)}beforePopState(e){this._bps=e}onlyAHashChange(e){if(!this.asPath)return!1;let[t,r]=this.asPath.split("#",2),[n,o]=e.split("#",2);return!!o&&t===n&&r===o||t===n&&r!==o}scrollToHash(e){let[,t=""]=e.split("#",2);(0,A.handleSmoothScroll)(()=>{if(""===t||"top"===t){window.scrollTo(0,0);return}let e=decodeURIComponent(t),r=document.getElementById(e);if(r){r.scrollIntoView();return}let n=document.getElementsByName(e)[0];n&&n.scrollIntoView()},{onlyHashChange:this.onlyAHashChange(e)})}urlIsNew(e){return this.asPath!==e}async prefetch(e,t,r){if(void 0===t&&(t=e),void 0===r&&(r={}),(0,x.isBot)(window.navigator.userAgent))return;let n=(0,h.parseRelativeUrl)(e),o=n.pathname,{pathname:i,query:u}=n,l=i,s=await this.pageLoader.getPageList(),c=t,f=void 0!==r.locale?r.locale||void 0:this.locale,d=await N({asPath:t,locale:f,router:this});n.pathname=F(n.pathname,s),(0,p.isDynamicRoute)(n.pathname)&&(i=n.pathname,n.pathname=i,Object.assign(u,(0,m.getRouteMatcher)((0,_.getRouteRegex)(n.pathname))((0,y.parsePath)(t).pathname)||{}),d||(e=(0,g.formatWithValidation)(n)));let b=await B({fetchData:()=>W({dataHref:this.pageLoader.getDataHref({href:(0,g.formatWithValidation)({pathname:l,query:u}),skipInterpolation:!0,asPath:c,locale:f}),hasMiddleware:!0,isServerRender:this.isSsr,parseJSON:!0,inflightCache:this.sdc,persistCache:!this.isPreview,isPrefetch:!0}),asPath:t,locale:f,router:this});if((null==b?void 0:b.effect.type)==="rewrite"&&(n.pathname=b.effect.resolvedHref,i=b.effect.resolvedHref,u={...u,...b.effect.parsedAs.query},c=b.effect.parsedAs.pathname,e=(0,g.formatWithValidation)(n)),(null==b?void 0:b.effect.type)==="redirect-external")return;let v=(0,a.removeTrailingSlash)(i);await this._bfl(t,c,r.locale,!0)&&(this.components[o]={__appRouter:!0}),await Promise.all([this.pageLoader._isSsg(v).then(t=>!!t&&W({dataHref:(null==b?void 0:b.json)?null==b?void 0:b.dataHref:this.pageLoader.getDataHref({href:e,asPath:c,locale:f}),isServerRender:!1,parseJSON:!0,inflightCache:this.sdc,persistCache:!this.isPreview,isPrefetch:!0,unstable_skipClientCache:r.unstable_skipClientCache||r.priority&&!0}).then(()=>!1).catch(()=>!1)),this.pageLoader[r.priority?"loadPage":"prefetch"](v)])}async fetchComponent(e){let t=z({route:e,router:this});try{let r=await this.pageLoader.loadPage(e);return t(),r}catch(e){throw t(),e}}_getData(e){let t=!1,r=()=>{t=!0};return this.clc=r,e().then(e=>{if(r===this.clc&&(this.clc=null),t){let e=Error("Loading initial props cancelled");throw e.cancelled=!0,e}return e})}_getFlightData(e){return W({dataHref:e,isServerRender:!0,parseJSON:!1,inflightCache:this.sdc,persistCache:!1,isPrefetch:!1}).then(e=>{let{text:t}=e;return{data:t}})}getInitialProps(e,t){let{Component:r}=this.components["/_app"],n=this._wrapApp(r);return t.AppTree=n,(0,d.loadGetInitialProps)(r,{AppTree:n,Component:e,router:this,ctx:t})}get route(){return this.state.route}get pathname(){return this.state.pathname}get query(){return this.state.query}get asPath(){return this.state.asPath}get locale(){return this.state.locale}get isFallback(){return this.state.isFallback}get isPreview(){return this.state.isPreview}constructor(e,t,n,{initialProps:o,pageLoader:i,App:u,wrapApp:l,Component:s,err:c,subscription:f,isFallback:m,locale:_,locales:y,defaultLocale:b,domainLocales:v,isPreview:P}){this.sdc={},this.sbc={},this.isFirstPopStateEvent=!0,this._key=q(),this.onPopState=e=>{let t;let{isFirstPopStateEvent:r}=this;this.isFirstPopStateEvent=!1;let n=e.state;if(!n){let{pathname:e,query:t}=this;this.changeState("replaceState",(0,g.formatWithValidation)({pathname:(0,E.addBasePath)(e),query:t}),(0,d.getURL)());return}if(n.__NA){window.location.reload();return}if(!n.__N||r&&this.locale===n.options.locale&&n.as===this.asPath)return;let{url:o,as:a,options:i,key:u}=n;this._key=u;let{pathname:l}=(0,h.parseRelativeUrl)(o);(!this.isSsr||a!==(0,E.addBasePath)(this.asPath)||l!==(0,E.addBasePath)(this.pathname))&&(!this._bps||this._bps(n))&&this.change("replaceState",o,a,Object.assign({},i,{shallow:i.shallow&&this._shallow,locale:i.locale||this.defaultLocale,_h:0}),t)};let S=(0,a.removeTrailingSlash)(e);this.components={},"/_error"!==e&&(this.components[S]={Component:s,initial:!0,props:o,err:c,__N_SSG:o&&o.__N_SSG,__N_SSP:o&&o.__N_SSP}),this.components["/_app"]={Component:u,styleSheets:[]};{let{BloomFilter:e}=r(80249),t={numItems:0,errorRate:1e-4,numBits:0,numHashes:null,bitArray:[]},n={numItems:0,errorRate:1e-4,numBits:0,numHashes:null,bitArray:[]};(null==t?void 0:t.numHashes)&&(this._bfl_s=new e(t.numItems,t.errorRate),this._bfl_s.import(t)),(null==n?void 0:n.numHashes)&&(this._bfl_d=new e(n.numItems,n.errorRate),this._bfl_d.import(n))}this.events=V.events,this.pageLoader=i;let j=(0,p.isDynamicRoute)(e)&&self.__NEXT_DATA__.autoExport;if(this.basePath="",this.sub=f,this.clc=null,this._wrapApp=l,this.isSsr=!0,this.isLocaleDomain=!1,this.isReady=!!(self.__NEXT_DATA__.gssp||self.__NEXT_DATA__.gip||self.__NEXT_DATA__.isExperimentalCompile||self.__NEXT_DATA__.appGip&&!self.__NEXT_DATA__.gsp||!j&&!self.location.search),this.state={route:S,pathname:e,query:t,asPath:j?e:n,isPreview:!!P,locale:void 0,isFallback:m},this._initialMatchesMiddlewarePromise=Promise.resolve(!1),!n.startsWith("//")){let r={locale:_},o=(0,d.getURL)();this._initialMatchesMiddlewarePromise=N({router:this,locale:_,asPath:o}).then(a=>(r._shouldResolveHref=n!==e,this.changeState("replaceState",a?o:(0,g.formatWithValidation)({pathname:(0,E.addBasePath)(e),query:t}),o,r),a))}window.addEventListener("popstate",this.onPopState)}}V.events=(0,f.default)()},10996:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return a}});let n=r(5454),o=r(86768);function a(e,t,r,a){if(!t||t===r)return e;let i=e.toLowerCase();return!a&&((0,o.pathHasPrefix)(i,"/api")||(0,o.pathHasPrefix)(i,"/"+t.toLowerCase()))?e:(0,n.addPathPrefix)(e,"/"+t)}},5454:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathPrefix",{enumerable:!0,get:function(){return o}});let n=r(86376);function o(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:o,hash:a}=(0,n.parsePath)(e);return""+t+r+o+a}},89798:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathSuffix",{enumerable:!0,get:function(){return o}});let n=r(86376);function o(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:o,hash:a}=(0,n.parsePath)(e);return""+r+t+o+a}},85946:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{normalizeAppPath:function(){return a},normalizeRscURL:function(){return i}});let n=r(23380),o=r(12599);function a(e){return(0,n.ensureLeadingSlash)(e.split("/").reduce((e,t,r,n)=>!t||(0,o.isGroupSegment)(t)||"@"===t[0]||("page"===t||"route"===t)&&r===n.length-1?e:e+"/"+t,""))}function i(e){return e.replace(/\.rsc($|\?)/,"$1")}},43254:function(e,t){"use strict";function r(e){return new URL(e,"http://n").searchParams}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"asPathToSearchParams",{enumerable:!0,get:function(){return r}})},86900:function(e,t){"use strict";function r(e,t){let r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;for(let n=r.length;n--;){let o=r[n];if("query"===o){let r=Object.keys(e.query);if(r.length!==Object.keys(t.query).length)return!1;for(let n=r.length;n--;){let o=r[n];if(!t.query.hasOwnProperty(o)||e.query[o]!==t.query[o])return!1}}else if(!t.hasOwnProperty(o)||e[o]!==t[o])return!1}return!0}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"compareRouterStates",{enumerable:!0,get:function(){return r}})},67461:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"formatNextPathnameInfo",{enumerable:!0,get:function(){return u}});let n=r(53811),o=r(5454),a=r(89798),i=r(10996);function u(e){let t=(0,i.addLocale)(e.pathname,e.locale,e.buildId?void 0:e.defaultLocale,e.ignorePrefix);return(e.buildId||!e.trailingSlash)&&(t=(0,n.removeTrailingSlash)(t)),e.buildId&&(t=(0,a.addPathSuffix)((0,o.addPathPrefix)(t,"/_next/data/"+e.buildId),"/"===e.pathname?"index.json":".json")),t=(0,o.addPathPrefix)(t,e.basePath),!e.buildId&&e.trailingSlash?t.endsWith("/")?t:(0,a.addPathSuffix)(t,"/"):(0,n.removeTrailingSlash)(t)}},87239:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{formatUrl:function(){return a},urlObjectKeys:function(){return i},formatWithValidation:function(){return u}});let n=r(35815)._(r(92941)),o=/https?|ftp|gopher|file/;function a(e){let{auth:t,hostname:r}=e,a=e.protocol||"",i=e.pathname||"",u=e.hash||"",l=e.query||"",s=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?s=t+e.host:r&&(s=t+(~r.indexOf(":")?"["+r+"]":r),e.port&&(s+=":"+e.port)),l&&"object"==typeof l&&(l=String(n.urlQueryToSearchParams(l)));let c=e.search||l&&"?"+l||"";return a&&!a.endsWith(":")&&(a+=":"),e.slashes||(!a||o.test(a))&&!1!==s?(s="//"+(s||""),i&&"/"!==i[0]&&(i="/"+i)):s||(s=""),u&&"#"!==u[0]&&(u="#"+u),c&&"?"!==c[0]&&(c="?"+c),""+a+s+(i=i.replace(/[?#]/g,encodeURIComponent))+(c=c.replace("#","%23"))+u}let i=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function u(e){return a(e)}},75961:function(e,t){"use strict";function r(e,t){return void 0===t&&(t=""),("/"===e?"/index":/^\/index(\/|$)/.test(e)?"/index"+e:e)+t}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}})},82023:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getNextPathnameInfo",{enumerable:!0,get:function(){return i}});let n=r(64889),o=r(10892),a=r(86768);function i(e,t){var r,i;let{basePath:u,i18n:l,trailingSlash:s}=null!=(r=t.nextConfig)?r:{},c={pathname:e,trailingSlash:"/"!==e?e.endsWith("/"):s};u&&(0,a.pathHasPrefix)(c.pathname,u)&&(c.pathname=(0,o.removePathPrefix)(c.pathname,u),c.basePath=u);let f=c.pathname;if(c.pathname.startsWith("/_next/data/")&&c.pathname.endsWith(".json")){let e=c.pathname.replace(/^\/_next\/data\//,"").replace(/\.json$/,"").split("/"),r=e[0];c.buildId=r,f="index"!==e[1]?"/"+e.slice(1).join("/"):"/",!0===t.parseData&&(c.pathname=f)}if(l){let e=t.i18nProvider?t.i18nProvider.analyze(c.pathname):(0,n.normalizeLocalePath)(c.pathname,l.locales);c.locale=e.detectedLocale,c.pathname=null!=(i=e.pathname)?i:c.pathname,!e.detectedLocale&&c.buildId&&(e=t.i18nProvider?t.i18nProvider.analyze(f):(0,n.normalizeLocalePath)(f,l.locales)).detectedLocale&&(c.locale=e.detectedLocale)}return c}},23957:function(e,t){"use strict";function r(e,t){if(void 0===t&&(t={}),t.onlyHashChange){e();return}let r=document.documentElement,n=r.style.scrollBehavior;r.style.scrollBehavior="auto",t.dontForceLayout||r.getClientRects(),e(),r.style.scrollBehavior=n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"handleSmoothScroll",{enumerable:!0,get:function(){return r}})},87849:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getSortedRoutes:function(){return n.getSortedRoutes},isDynamicRoute:function(){return o.isDynamicRoute}});let n=r(99728),o=r(69843)},45554:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"interpolateAs",{enumerable:!0,get:function(){return a}});let n=r(91240),o=r(1792);function a(e,t,r){let a="",i=(0,o.getRouteRegex)(e),u=i.groups,l=(t!==e?(0,n.getRouteMatcher)(i)(t):"")||r;a=e;let s=Object.keys(u);return s.every(e=>{let t=l[e]||"",{repeat:r,optional:n}=u[e],o="["+(r?"...":"")+e+"]";return n&&(o=(t?"":"/")+"["+o+"]"),r&&!Array.isArray(t)&&(t=[t]),(n||e in l)&&(a=a.replace(o,r?t.map(e=>encodeURIComponent(e)).join("/"):encodeURIComponent(t))||"/")})||(a=""),{params:s,result:a}}},96065:function(e,t){"use strict";function r(e){return/Googlebot|Mediapartners-Google|AdsBot-Google|googleweblight|Storebot-Google|Google-PageRenderer|Bingbot|BingPreview|Slurp|DuckDuckBot|baiduspider|yandex|sogou|LinkedInBot|bitlybot|tumblr|vkShare|quora link preview|facebookexternalhit|facebookcatalog|Twitterbot|applebot|redditbot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|ia_archiver/i.test(e)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isBot",{enumerable:!0,get:function(){return r}})},69843:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isDynamicRoute",{enumerable:!0,get:function(){return a}});let n=r(20081),o=/\/\[[^/]+?\](?=\/|$)/;function a(e){return(0,n.isInterceptionRouteAppPath)(e)&&(e=(0,n.extractInterceptionRouteInformation)(e).interceptedRoute),o.test(e)}},18015:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return a}});let n=r(46954),o=r(63667);function a(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,o.hasBasePath)(r.pathname)}catch(e){return!1}}},5288:function(e,t){"use strict";function r(e,t){let r={};return Object.keys(e).forEach(n=>{t.includes(n)||(r[n]=e[n])}),r}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"omit",{enumerable:!0,get:function(){return r}})},86376:function(e,t){"use strict";function r(e){let t=e.indexOf("#"),r=e.indexOf("?"),n=r>-1&&(t<0||r-1?{pathname:e.substring(0,n?r:t),query:n?e.substring(r,t>-1?t:void 0):"",hash:t>-1?e.slice(t):""}:{pathname:e,query:"",hash:""}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parsePath",{enumerable:!0,get:function(){return r}})},72432:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parseRelativeUrl",{enumerable:!0,get:function(){return a}});let n=r(46954),o=r(92941);function a(e,t){let r=new URL((0,n.getLocationOrigin)()),a=t?new URL(t,r):e.startsWith(".")?new URL(window.location.href):r,{pathname:i,searchParams:u,search:l,hash:s,href:c,origin:f}=new URL(e,a);if(f!==r.origin)throw Error("invariant: invalid relative URL, router received "+e);return{pathname:i,query:(0,o.searchParamsToUrlQuery)(u),search:l,hash:s,href:c.slice(r.origin.length)}}},86768:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"pathHasPrefix",{enumerable:!0,get:function(){return o}});let n=r(86376);function o(e,t){if("string"!=typeof e)return!1;let{pathname:r}=(0,n.parsePath)(e);return r===t||r.startsWith(t+"/")}},92941:function(e,t){"use strict";function r(e){let t={};return e.forEach((e,r)=>{void 0===t[r]?t[r]=e:Array.isArray(t[r])?t[r].push(e):t[r]=[t[r],e]}),t}function n(e){return"string"!=typeof e&&("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function o(e){let t=new URLSearchParams;return Object.entries(e).forEach(e=>{let[r,o]=e;Array.isArray(o)?o.forEach(e=>t.append(r,n(e))):t.set(r,n(o))}),t}function a(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n{Array.from(t.keys()).forEach(t=>e.delete(t)),t.forEach((t,r)=>e.append(r,t))}),e}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{searchParamsToUrlQuery:function(){return r},urlQueryToSearchParams:function(){return o},assign:function(){return a}})},10892:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removePathPrefix",{enumerable:!0,get:function(){return o}});let n=r(86768);function o(e,t){if(!(0,n.pathHasPrefix)(e,t))return e;let r=e.slice(t.length);return r.startsWith("/")?r:"/"+r}},53811:function(e,t){"use strict";function r(e){return e.replace(/\/$/,"")||"/"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeTrailingSlash",{enumerable:!0,get:function(){return r}})},91240:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getRouteMatcher",{enumerable:!0,get:function(){return o}});let n=r(46954);function o(e){let{re:t,groups:r}=e;return e=>{let o=t.exec(e);if(!o)return!1;let a=e=>{try{return decodeURIComponent(e)}catch(e){throw new n.DecodeError("failed to decode param")}},i={};return Object.keys(r).forEach(e=>{let t=r[e],n=o[t.pos];void 0!==n&&(i[e]=~n.indexOf("/")?n.split("/").map(e=>a(e)):t.repeat?[a(n)]:a(n))}),i}}},1792:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getRouteRegex:function(){return l},getNamedRouteRegex:function(){return f},getNamedMiddlewareRegex:function(){return d}});let n=r(20081),o=r(52511),a=r(53811);function i(e){let t=e.startsWith("[")&&e.endsWith("]");t&&(e=e.slice(1,-1));let r=e.startsWith("...");return r&&(e=e.slice(3)),{key:e,repeat:r,optional:t}}function u(e){let t=(0,a.removeTrailingSlash)(e).slice(1).split("/"),r={},u=1;return{parameterizedRoute:t.map(e=>{let t=n.INTERCEPTION_ROUTE_MARKERS.find(t=>e.startsWith(t)),a=e.match(/\[((?:\[.*\])|.+)\]/);if(t&&a){let{key:e,optional:n,repeat:l}=i(a[1]);return r[e]={pos:u++,repeat:l,optional:n},"/"+(0,o.escapeStringRegexp)(t)+"([^/]+?)"}if(!a)return"/"+(0,o.escapeStringRegexp)(e);{let{key:e,repeat:t,optional:n}=i(a[1]);return r[e]={pos:u++,repeat:t,optional:n},t?n?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}}).join(""),groups:r}}function l(e){let{parameterizedRoute:t,groups:r}=u(e);return{re:RegExp("^"+t+"(?:/)?$"),groups:r}}function s(e){let{interceptionMarker:t,getSafeRouteKey:r,segment:n,routeKeys:a,keyPrefix:u}=e,{key:l,optional:s,repeat:c}=i(n),f=l.replace(/\W/g,"");u&&(f=""+u+f);let d=!1;(0===f.length||f.length>30)&&(d=!0),isNaN(parseInt(f.slice(0,1)))||(d=!0),d&&(f=r()),u?a[f]=""+u+l:a[f]=l;let p=t?(0,o.escapeStringRegexp)(t):"";return c?s?"(?:/"+p+"(?<"+f+">.+?))?":"/"+p+"(?<"+f+">.+?)":"/"+p+"(?<"+f+">[^/]+?)"}function c(e,t){let r;let i=(0,a.removeTrailingSlash)(e).slice(1).split("/"),u=(r=0,()=>{let e="",t=++r;for(;t>0;)e+=String.fromCharCode(97+(t-1)%26),t=Math.floor((t-1)/26);return e}),l={};return{namedParameterizedRoute:i.map(e=>{let r=n.INTERCEPTION_ROUTE_MARKERS.some(t=>e.startsWith(t)),a=e.match(/\[((?:\[.*\])|.+)\]/);if(r&&a){let[r]=e.split(a[0]);return s({getSafeRouteKey:u,interceptionMarker:r,segment:a[1],routeKeys:l,keyPrefix:t?"nxtI":void 0})}return a?s({getSafeRouteKey:u,segment:a[1],routeKeys:l,keyPrefix:t?"nxtP":void 0}):"/"+(0,o.escapeStringRegexp)(e)}).join(""),routeKeys:l}}function f(e,t){let r=c(e,t);return{...l(e),namedRegex:"^"+r.namedParameterizedRoute+"(?:/)?$",routeKeys:r.routeKeys}}function d(e,t){let{parameterizedRoute:r}=u(e),{catchAll:n=!0}=t;if("/"===r)return{namedRegex:"^/"+(n?".*":"")+"$"};let{namedParameterizedRoute:o}=c(e,!1);return{namedRegex:"^"+o+(n?"(?:(/.*)?)":"")+"$"}}},99728:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSortedRoutes",{enumerable:!0,get:function(){return n}});class r{insert(e){this._insert(e.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(e){void 0===e&&(e="/");let t=[...this.children.keys()].sort();null!==this.slugName&&t.splice(t.indexOf("[]"),1),null!==this.restSlugName&&t.splice(t.indexOf("[...]"),1),null!==this.optionalRestSlugName&&t.splice(t.indexOf("[[...]]"),1);let r=t.map(t=>this.children.get(t)._smoosh(""+e+t+"/")).reduce((e,t)=>[...e,...t],[]);if(null!==this.slugName&&r.push(...this.children.get("[]")._smoosh(e+"["+this.slugName+"]/")),!this.placeholder){let t="/"===e?"/":e.slice(0,-1);if(null!=this.optionalRestSlugName)throw Error('You cannot define a route with the same specificity as a optional catch-all route ("'+t+'" and "'+t+"[[..."+this.optionalRestSlugName+']]").');r.unshift(t)}return null!==this.restSlugName&&r.push(...this.children.get("[...]")._smoosh(e+"[..."+this.restSlugName+"]/")),null!==this.optionalRestSlugName&&r.push(...this.children.get("[[...]]")._smoosh(e+"[[..."+this.optionalRestSlugName+"]]/")),r}_insert(e,t,n){if(0===e.length){this.placeholder=!1;return}if(n)throw Error("Catch-all must be the last part of the URL.");let o=e[0];if(o.startsWith("[")&&o.endsWith("]")){let r=o.slice(1,-1),i=!1;if(r.startsWith("[")&&r.endsWith("]")&&(r=r.slice(1,-1),i=!0),r.startsWith("...")&&(r=r.substring(3),n=!0),r.startsWith("[")||r.endsWith("]"))throw Error("Segment names may not start or end with extra brackets ('"+r+"').");if(r.startsWith("."))throw Error("Segment names may not start with erroneous periods ('"+r+"').");function a(e,r){if(null!==e&&e!==r)throw Error("You cannot use different slug names for the same dynamic path ('"+e+"' !== '"+r+"').");t.forEach(e=>{if(e===r)throw Error('You cannot have the same slug name "'+r+'" repeat within a single dynamic path');if(e.replace(/\W/g,"")===o.replace(/\W/g,""))throw Error('You cannot have the slug names "'+e+'" and "'+r+'" differ only by non-word symbols within a single dynamic path')}),t.push(r)}if(n){if(i){if(null!=this.restSlugName)throw Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+e[0]+'" ).');a(this.optionalRestSlugName,r),this.optionalRestSlugName=r,o="[[...]]"}else{if(null!=this.optionalRestSlugName)throw Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+e[0]+'").');a(this.restSlugName,r),this.restSlugName=r,o="[...]"}}else{if(i)throw Error('Optional route parameters are not yet supported ("'+e[0]+'").');a(this.slugName,r),this.slugName=r,o="[]"}}this.children.has(o)||this.children.set(o,new r),this.children.get(o)._insert(e.slice(1),t,n)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function n(e){let t=new r;return e.forEach(e=>t.insert(e)),t.smoosh()}},83415:function(e,t){"use strict";let r;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return n},setConfig:function(){return o}});let n=()=>r;function o(e){r=e}},12599:function(e,t){"use strict";function r(e){return"("===e[0]&&e.endsWith(")")}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{isGroupSegment:function(){return r},PAGE_SEGMENT_KEY:function(){return n},DEFAULT_SEGMENT_KEY:function(){return o}});let n="__PAGE__",o="__DEFAULT__"},89305:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});let n=r(50959),o=n.useLayoutEffect,a=n.useEffect;function i(e){let{headManager:t,reduceComponentsToState:r}=e;function i(){if(t&&t.mountedInstances){let o=n.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(r(o,e))}}return o(()=>{var r;return null==t||null==(r=t.mountedInstances)||r.add(e.children),()=>{var r;null==t||null==(r=t.mountedInstances)||r.delete(e.children)}}),o(()=>(t&&(t._pendingUpdate=i),()=>{t&&(t._pendingUpdate=i)})),a(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},46954:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{WEB_VITALS:function(){return r},execOnce:function(){return n},isAbsoluteUrl:function(){return a},getLocationOrigin:function(){return i},getURL:function(){return u},getDisplayName:function(){return l},isResSent:function(){return s},normalizeRepeatedSlashes:function(){return c},loadGetInitialProps:function(){return f},SP:function(){return d},ST:function(){return p},DecodeError:function(){return h},NormalizeError:function(){return m},PageNotFoundError:function(){return _},MissingStaticPage:function(){return g},MiddlewareNotFoundError:function(){return y},stringifyError:function(){return b}});let r=["CLS","FCP","FID","INP","LCP","TTFB"];function n(e){let t,r=!1;return function(){for(var n=arguments.length,o=Array(n),a=0;ao.test(e);function i(){let{protocol:e,hostname:t,port:r}=window.location;return e+"//"+t+(r?":"+r:"")}function u(){let{href:e}=window.location,t=i();return e.substring(t.length)}function l(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function s(e){return e.finished||e.headersSent}function c(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?"+t.slice(1).join("?"):"")}async function f(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await f(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&s(r))return n;if(!n)throw Error('"'+l(e)+'.getInitialProps()" should resolve to an object. But found "'+n+'" instead.');return n}let d="undefined"!=typeof performance,p=d&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class h extends Error{}class m extends Error{}class _ extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+e}}class g extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: "+e+" "+t}}class y extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function b(e){return JSON.stringify({message:e.message,stack:e.stack})}},62509:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"warnOnce",{enumerable:!0,get:function(){return r}});let r=e=>{}},47924:function(e){var t,r,n,o,a,i,u,l,s,c,f,d,p,h,m,_,g,y,b,v,P,E,S,j,w,O,R,T,M,x,I,C,A,L,N,D,k,F,B,U,H,W,q,G,z,V;(t={}).d=function(e,r){for(var n in r)t.o(r,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},void 0!==t&&(t.ab="//"),r={},t.r(r),t.d(r,{getCLS:function(){return S},getFCP:function(){return v},getFID:function(){return x},getINP:function(){return W},getLCP:function(){return G},getTTFB:function(){return V},onCLS:function(){return S},onFCP:function(){return v},onFID:function(){return x},onINP:function(){return W},onLCP:function(){return G},onTTFB:function(){return V}}),l=-1,s=function(e){addEventListener("pageshow",function(t){t.persisted&&(l=t.timeStamp,e(t))},!0)},c=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},f=function(){var e=c();return e&&e.activationStart||0},d=function(e,t){var r=c(),n="navigate";return l>=0?n="back-forward-cache":r&&(n=document.prerendering||f()>0?"prerender":r.type.replace(/_/g,"-")),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:n}},p=function(e,t,r){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var n=new PerformanceObserver(function(e){t(e.getEntries())});return n.observe(Object.assign({type:e,buffered:!0},r||{})),n}}catch(e){}},h=function(e,t){var r=function r(n){"pagehide"!==n.type&&"hidden"!==document.visibilityState||(e(n),t&&(removeEventListener("visibilitychange",r,!0),removeEventListener("pagehide",r,!0)))};addEventListener("visibilitychange",r,!0),addEventListener("pagehide",r,!0)},m=function(e,t,r,n){var o,a;return function(i){var u;t.value>=0&&(i||n)&&((a=t.value-(o||0))||void 0===o)&&(o=t.value,t.delta=a,t.rating=(u=t.value)>r[1]?"poor":u>r[0]?"needs-improvement":"good",e(t))}},_=-1,g=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},y=function(){h(function(e){_=e.timeStamp},!0)},b=function(){return _<0&&(_=g(),y(),s(function(){setTimeout(function(){_=g(),y()},0)})),{get firstHiddenTime(){return _}}},v=function(e,t){t=t||{};var r,n=[1800,3e3],o=b(),a=d("FCP"),i=function(e){e.forEach(function(e){"first-contentful-paint"===e.name&&(l&&l.disconnect(),e.startTime-1&&e(t)},a=d("CLS",0),i=0,u=[],l=function(e){e.forEach(function(e){if(!e.hadRecentInput){var t=u[0],r=u[u.length-1];i&&e.startTime-r.startTime<1e3&&e.startTime-t.startTime<5e3?(i+=e.value,u.push(e)):(i=e.value,u=[e]),i>a.value&&(a.value=i,a.entries=u,n())}})},c=p("layout-shift",l);c&&(n=m(o,a,r,t.reportAllChanges),h(function(){l(c.takeRecords()),n(!0)}),s(function(){i=0,E=-1,n=m(o,a=d("CLS",0),r,t.reportAllChanges)}))},j={passive:!0,capture:!0},w=new Date,O=function(e,t){n||(n=t,o=e,a=new Date,M(removeEventListener),R())},R=function(){if(o>=0&&o1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?(t=function(){O(o,e),n()},r=function(){n()},n=function(){removeEventListener("pointerup",t,j),removeEventListener("pointercancel",r,j)},addEventListener("pointerup",t,j),addEventListener("pointercancel",r,j)):O(o,e)}},M=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach(function(t){return e(t,T,j)})},x=function(e,t){t=t||{};var r,a=[100,300],u=b(),l=d("FID"),c=function(e){e.startTimet.latency){if(r)r.entries.push(e),r.latency=Math.max(r.latency,e.duration);else{var n={id:e.interactionId,latency:e.duration,entries:[e]};U[n.id]=n,B.push(n)}B.sort(function(e,t){return t.latency-e.latency}),B.splice(10).forEach(function(e){delete U[e.id]})}},W=function(e,t){t=t||{};var r=[200,500];D();var n,o=d("INP"),a=function(e){e.forEach(function(e){e.interactionId&&H(e),"first-input"!==e.entryType||B.some(function(t){return t.entries.some(function(t){return e.duration===t.duration&&e.startTime===t.startTime})})||H(e)});var t,r=(t=Math.min(B.length-1,Math.floor(F()/50)),B[t]);r&&r.latency!==o.value&&(o.value=r.latency,o.entries=r.entries,n())},i=p("event",a,{durationThreshold:t.durationThreshold||40});n=m(e,o,r,t.reportAllChanges),i&&(i.observe({type:"first-input",buffered:!0}),h(function(){a(i.takeRecords()),o.value<0&&F()>0&&(o.value=0,o.entries=[]),n(!0)}),s(function(){B=[],k=N(),n=m(e,o=d("INP"),r,t.reportAllChanges)}))},q={},G=function(e,t){t=t||{};var r,n=[2500,4e3],o=b(),a=d("LCP"),i=function(e){var t=e[e.length-1];if(t){var n=t.startTime-f();nperformance.now())return;n.entries=[a],o(!0),s(function(){(o=m(e,n=d("TTFB",0),r,t.reportAllChanges))(!0)})}})},e.exports=r},70361:function(e,t){"use strict";function r(e){return"/api"===e||!!(null==e?void 0:e.startsWith("/api/"))}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isAPIRoute",{enumerable:!0,get:function(){return r}})},71689:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return o},getProperError:function(){return a}});let n=r(41817);function o(e){return"object"==typeof e&&null!==e&&"name"in e&&"message"in e}function a(e){return o(e)?e:Error((0,n.isPlainObject)(e)?JSON.stringify(e):e+"")}},20081:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{INTERCEPTION_ROUTE_MARKERS:function(){return o},isInterceptionRouteAppPath:function(){return a},extractInterceptionRouteInformation:function(){return i}});let n=r(85946),o=["(..)(..)","(.)","(..)","(...)"];function a(e){return void 0!==e.split("/").find(e=>o.find(t=>e.startsWith(t)))}function i(e){let t,r,a;for(let n of e.split("/"))if(r=o.find(e=>n.startsWith(e))){[t,a]=e.split(r,2);break}if(!t||!r||!a)throw Error(`Invalid interception route: ${e}. Must be in the format //(..|...|..)(..)/`);switch(t=(0,n.normalizeAppPath)(t),r){case"(.)":a="/"===t?`/${a}`:t+"/"+a;break;case"(..)":if("/"===t)throw Error(`Invalid interception route: ${e}. Cannot use (..) marker at the root level, use (.) instead.`);a=t.split("/").slice(0,-1).concat(a).join("/");break;case"(...)":a="/"+a;break;case"(..)(..)":let i=t.split("/");if(i.length<=2)throw Error(`Invalid interception route: ${e}. Cannot use (..)(..) marker at the root level or one level up.`);a=i.slice(0,-2).concat(a).join("/");break;default:throw Error("Invariant: unexpected marker")}return{interceptingRoute:t,interceptedRoute:a}}},74629:function(){},81351:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}r.r(t),r.d(t,{_:function(){return n},_interop_require_default:function(){return n}})},35815:function(e,t,r){"use strict";function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}function o(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}return o.default=e,r&&r.set(e,o),o}r.r(t),r.d(t,{_:function(){return o},_interop_require_wildcard:function(){return o}})}},function(e){e.O(0,[774],function(){return e(e.s=29371)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/main-dc368ffb0e441643.js b/_next/static/chunks/main-dc368ffb0e441643.js new file mode 100644 index 0000000..ae367fe --- /dev/null +++ b/_next/static/chunks/main-dc368ffb0e441643.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[179],{97520:function(e,t){"use strict";function r(){return""}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDeploymentIdQueryOrEmptyString",{enumerable:!0,get:function(){return r}})},10412:function(){"trimStart"in String.prototype||(String.prototype.trimStart=String.prototype.trimLeft),"trimEnd"in String.prototype||(String.prototype.trimEnd=String.prototype.trimRight),"description"in Symbol.prototype||Object.defineProperty(Symbol.prototype,"description",{configurable:!0,get:function(){var e=/\((.*)\)/.exec(this.toString());return e?e[1]:void 0}}),Array.prototype.flat||(Array.prototype.flat=function(e,t){return t=this.concat.apply([],this),e>1&&t.some(Array.isArray)?t.flat(e-1):t},Array.prototype.flatMap=function(e,t){return this.map(e,t).flat()}),Promise.prototype.finally||(Promise.prototype.finally=function(e){if("function"!=typeof e)return this.then(e,e);var t=this.constructor||Promise;return this.then(function(r){return t.resolve(e()).then(function(){return r})},function(r){return t.resolve(e()).then(function(){throw r})})}),Object.fromEntries||(Object.fromEntries=function(e){return Array.from(e).reduce(function(e,t){return e[t[0]]=t[1],e},{})}),Array.prototype.at||(Array.prototype.at=function(e){var t=Math.trunc(e)||0;if(t<0&&(t+=this.length),!(t<0||t>=this.length))return this[t]})},16013:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return a}});let n=r(49721),o=r(18244);function a(e,t){return(0,o.normalizePathTrailingSlash)((0,n.addPathPrefix)(e,""))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},18428:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return n}}),r(18244);let n=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n25){window.location.reload();return}clearTimeout(o),o=setTimeout(t,i>5?5e3:1e3)}r&&r.close();let{hostname:u,port:l}=location,s=function(e){let t=location.protocol;try{t=new URL(e).protocol}catch(e){}return"http:"===t?"ws":"wss"}(e.assetPrefix||""),c=e.assetPrefix.replace(/^\/+/,""),f=s+"://"+u+":"+l+(c?"/"+c:"");c.startsWith("http")&&(f=s+"://"+c.split("://",2)[1]),(r=new window.WebSocket(""+f+e.path)).onopen=function(){i=0,window.console.log("[HMR] connected")},r.onerror=a,r.onclose=a,r.onmessage=function(e){let t=JSON.parse(e.data);for(let e of n)e(t)}}()}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},77549:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return o}});let n=r(97982);function o(e){return(0,n.pathHasPrefix)(e,"")}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},77788:function(e,t){"use strict";let r;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{DOMAttributeNames:function(){return n},isEqualNode:function(){return a},default:function(){return i}});let n={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"};function o(e){let{type:t,props:r}=e,o=document.createElement(t);for(let e in r){if(!r.hasOwnProperty(e)||"children"===e||"dangerouslySetInnerHTML"===e||void 0===r[e])continue;let a=n[e]||e.toLowerCase();"script"===t&&("async"===a||"defer"===a||"noModule"===a)?o[a]=!!r[e]:o.setAttribute(a,r[e])}let{children:a,dangerouslySetInnerHTML:i}=r;return i?o.innerHTML=i.__html||"":a&&(o.textContent="string"==typeof a?a:Array.isArray(a)?a.join(""):""),o}function a(e,t){if(e instanceof HTMLElement&&t instanceof HTMLElement){let r=t.getAttribute("nonce");if(r&&!e.getAttribute("nonce")){let n=t.cloneNode(!0);return n.setAttribute("nonce",""),n.nonce=r,r===e.nonce&&e.isEqualNode(n)}}return e.isEqualNode(t)}function i(){return{mountedInstances:new Set,updateHead:e=>{let t={};e.forEach(e=>{if("link"===e.type&&e.props["data-optimized-fonts"]){if(document.querySelector('style[data-href="'+e.props["data-href"]+'"]'))return;e.props.href=e.props["data-href"],e.props["data-href"]=void 0}let r=t[e.type]||[];r.push(e),t[e.type]=r});let n=t.title?t.title[0]:null,o="";if(n){let{children:e}=n.props;o="string"==typeof e?e:Array.isArray(e)?e.join(""):""}o!==document.title&&(document.title=o),["meta","base","link","style","script"].forEach(e=>{r(e,t[e]||[])})}}}r=(e,t)=>{let r=document.getElementsByTagName("head")[0],n=r.querySelector("meta[name=next-head-count]"),i=Number(n.content),u=[];for(let t=0,r=n.previousElementSibling;t{for(let t=0,r=u.length;t{var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),s.forEach(e=>r.insertBefore(e,n)),n.content=(i-u.length+s.length).toString()},("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},12905:function(e,t,r){"use strict";let n,o,a,i,u,l,s,c,f,d,p,h;Object.defineProperty(t,"__esModule",{value:!0});let m=r(35815);Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{version:function(){return G},router:function(){return n},emitter:function(){return z},initialize:function(){return $},hydrate:function(){return ef}});let _=r(81351),g=r(11527);r(10412);let y=_._(r(50959)),b=_._(r(44478)),v=r(51872),P=_._(r(9265)),E=r(96449),S=r(60636),j=r(9904),w=r(54875),O=r(86297),R=r(88596),T=r(70604),M=_._(r(77788)),x=_._(r(15070)),I=_._(r(43674)),C=r(86286),A=r(84767),L=r(3053),N=r(87216),D=r(35687),k=r(77549),F=r(40416),B=r(45159),U=r(90791),H=_._(r(71987)),W=_._(r(95719)),q=_._(r(36366)),G="14.1.1",z=(0,P.default)(),V=e=>[].slice.call(e),X=!1;class Y extends y.default.Component{componentDidCatch(e,t){this.props.fn(e,t)}componentDidMount(){this.scrollToHash(),n.isSsr&&(o.isFallback||o.nextExport&&((0,j.isDynamicRoute)(n.pathname)||location.search||X)||o.props&&o.props.__N_SSG&&(location.search||X))&&n.replace(n.pathname+"?"+String((0,w.assign)((0,w.urlQueryToSearchParams)(n.query),new URLSearchParams(location.search))),a,{_h:1,shallow:!o.isFallback&&!X}).catch(e=>{if(!e.cancelled)throw e})}componentDidUpdate(){this.scrollToHash()}scrollToHash(){let{hash:e}=location;if(!(e=e&&e.substring(1)))return;let t=document.getElementById(e);t&&setTimeout(()=>t.scrollIntoView(),0)}render(){return this.props.children}}async function $(e){void 0===e&&(e={}),W.default.onSpanEnd(q.default),o=JSON.parse(document.getElementById("__NEXT_DATA__").textContent),window.__NEXT_DATA__=o,h=o.defaultLocale;let t=o.assetPrefix||"";if(self.__next_set_public_path__(""+t+"/_next/"),(0,O.setConfig)({serverRuntimeConfig:{},publicRuntimeConfig:o.runtimeConfig||{}}),a=(0,R.getURL)(),(0,k.hasBasePath)(a)&&(a=(0,D.removeBasePath)(a)),o.scriptLoader){let{initScriptLoader:e}=r(3529);e(o.scriptLoader)}i=new x.default(o.buildId,t);let s=e=>{let[t,r]=e;return i.routeLoader.onEntrypoint(t,r)};return window.__NEXT_P&&window.__NEXT_P.map(e=>setTimeout(()=>s(e),0)),window.__NEXT_P=[],window.__NEXT_P.push=s,(l=(0,M.default)()).getIsSsr=()=>n.isSsr,u=document.getElementById("__next"),{assetPrefix:t}}function K(e,t){return(0,g.jsx)(e,{...t})}function J(e){var t;let{children:r}=e,o=y.default.useMemo(()=>(0,B.adaptForAppRouterInstance)(n),[]);return(0,g.jsx)(Y,{fn:e=>Z({App:f,err:e}).catch(e=>console.error("Error rendering page: ",e)),children:(0,g.jsx)(F.AppRouterContext.Provider,{value:o,children:(0,g.jsx)(U.SearchParamsContext.Provider,{value:(0,B.adaptForSearchParams)(n),children:(0,g.jsx)(B.PathnameContextProviderAdapter,{router:n,isAutoExport:null!=(t=self.__NEXT_DATA__.autoExport)&&t,children:(0,g.jsx)(U.PathParamsContext.Provider,{value:(0,B.adaptForPathParams)(n),children:(0,g.jsx)(E.RouterContext.Provider,{value:(0,A.makePublicRouterInstance)(n),children:(0,g.jsx)(v.HeadManagerContext.Provider,{value:l,children:(0,g.jsx)(N.ImageConfigContext.Provider,{value:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!0,unoptimized:!0},children:r})})})})})})})})}let Q=e=>t=>{let r={...t,Component:p,err:o.err,router:n};return(0,g.jsx)(J,{children:K(e,r)})};function Z(e){let{App:t,err:u}=e;return console.error(u),console.error("A client-side exception has occurred, see here for more info: https://nextjs.org/docs/messages/client-side-exception-occurred"),i.loadPage("/_error").then(n=>{let{page:o,styleSheets:a}=n;return(null==s?void 0:s.Component)===o?Promise.resolve().then(()=>m._(r(54908))).then(n=>Promise.resolve().then(()=>m._(r(59051))).then(r=>(t=r.default,e.App=t,n))).then(e=>({ErrorComponent:e.default,styleSheets:[]})):{ErrorComponent:o,styleSheets:a}}).then(r=>{var i;let{ErrorComponent:l,styleSheets:s}=r,c=Q(t),f={Component:l,AppTree:c,router:n,ctx:{err:u,pathname:o.page,query:o.query,asPath:a,AppTree:c}};return Promise.resolve((null==(i=e.props)?void 0:i.err)?e.props:(0,R.loadGetInitialProps)(t,f)).then(t=>es({...e,err:u,Component:l,styleSheets:s,props:t}))})}function ee(e){let{callback:t}=e;return y.default.useLayoutEffect(()=>t(),[t]),null}let et={navigationStart:"navigationStart",beforeRender:"beforeRender",afterRender:"afterRender",afterHydrate:"afterHydrate",routeChange:"routeChange"},er={hydration:"Next.js-hydration",beforeHydration:"Next.js-before-hydration",routeChangeToRender:"Next.js-route-change-to-render",render:"Next.js-render"},en=null,eo=!0;function ea(){[et.beforeRender,et.afterHydrate,et.afterRender,et.routeChange].forEach(e=>performance.clearMarks(e))}function ei(){R.ST&&(performance.mark(et.afterHydrate),performance.getEntriesByName(et.beforeRender,"mark").length&&(performance.measure(er.beforeHydration,et.navigationStart,et.beforeRender),performance.measure(er.hydration,et.beforeRender,et.afterHydrate)),d&&performance.getEntriesByName(er.hydration).forEach(d),ea())}function eu(){if(!R.ST)return;performance.mark(et.afterRender);let e=performance.getEntriesByName(et.routeChange,"mark");e.length&&(performance.getEntriesByName(et.beforeRender,"mark").length&&(performance.measure(er.routeChangeToRender,e[0].name,et.beforeRender),performance.measure(er.render,et.beforeRender,et.afterRender),d&&(performance.getEntriesByName(er.render).forEach(d),performance.getEntriesByName(er.routeChangeToRender).forEach(d))),ea(),[er.routeChangeToRender,er.render].forEach(e=>performance.clearMeasures(e)))}function el(e){let{callbacks:t,children:r}=e;return y.default.useLayoutEffect(()=>t.forEach(e=>e()),[t]),y.default.useEffect(()=>{(0,I.default)(d)},[]),r}function es(e){let t,{App:r,Component:o,props:a,err:i}=e,l="initial"in e?void 0:e.styleSheets;o=o||s.Component;let f={...a=a||s.props,Component:o,err:i,router:n};s=f;let d=!1,p=new Promise((e,r)=>{c&&c(),t=()=>{c=null,e()},c=()=>{d=!0,c=null;let e=Error("Cancel rendering route");e.cancelled=!0,r(e)}});function h(){t()}!function(){if(!l)return;let e=V(document.querySelectorAll("style[data-n-href]")),t=new Set(e.map(e=>e.getAttribute("data-n-href"))),r=document.querySelector("noscript[data-n-css]"),n=null==r?void 0:r.getAttribute("data-n-css");l.forEach(e=>{let{href:r,text:o}=e;if(!t.has(r)){let e=document.createElement("style");e.setAttribute("data-n-href",r),e.setAttribute("media","x"),n&&e.setAttribute("nonce",n),document.head.appendChild(e),e.appendChild(document.createTextNode(o))}})}();let m=(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(ee,{callback:function(){if(l&&!d){let e=new Set(l.map(e=>e.href)),t=V(document.querySelectorAll("style[data-n-href]")),r=t.map(e=>e.getAttribute("data-n-href"));for(let n=0;n{let{href:t}=e,r=document.querySelector('style[data-n-href="'+t+'"]');r&&(n.parentNode.insertBefore(r,n.nextSibling),n=r)}),V(document.querySelectorAll("link[data-n-p]")).forEach(e=>{e.parentNode.removeChild(e)})}if(e.scroll){let{x:t,y:r}=e.scroll;(0,S.handleSmoothScroll)(()=>{window.scrollTo(t,r)})}}}),(0,g.jsxs)(J,{children:[K(r,f),(0,g.jsx)(T.Portal,{type:"next-route-announcer",children:(0,g.jsx)(C.RouteAnnouncer,{})})]})]});return!function(e,t){R.ST&&performance.mark(et.beforeRender);let r=t(eo?ei:eu);en?(0,y.default.startTransition)(()=>{en.render(r)}):(en=b.default.hydrateRoot(e,r,{onRecoverableError:H.default}),eo=!1)}(u,e=>(0,g.jsx)(el,{callbacks:[e,h],children:m})),p}async function ec(e){if(e.err){await Z(e);return}try{await es(e)}catch(r){let t=(0,L.getProperError)(r);if(t.cancelled)throw t;await Z({...e,err:t})}}async function ef(e){let t=o.err;try{let e=await i.routeLoader.whenEntrypoint("/_app");if("error"in e)throw e.error;let{component:t,exports:r}=e;f=t,r&&r.reportWebVitals&&(d=e=>{let t,{id:n,name:o,startTime:a,value:i,duration:u,entryType:l,entries:s,attribution:c}=e,f=Date.now()+"-"+(Math.floor(Math.random()*(9e12-1))+1e12);s&&s.length&&(t=s[0].startTime);let d={id:n||f,name:o,startTime:a||t,value:null==i?u:i,label:"mark"===l||"measure"===l?"custom":"web-vital"};c&&(d.attribution=c),r.reportWebVitals(d)});let n=await i.routeLoader.whenEntrypoint(o.page);if("error"in n)throw n.error;p=n.component}catch(e){t=(0,L.getProperError)(e)}window.__NEXT_PRELOADREADY&&await window.__NEXT_PRELOADREADY(o.dynamicIds),n=(0,A.createRouter)(o.page,o.query,a,{initialProps:o.props,pageLoader:i,App:f,Component:p,wrapApp:Q,err:t,isFallback:!!o.isFallback,subscription:(e,t,r)=>ec(Object.assign({},e,{App:t,scroll:r})),locale:o.locale,locales:o.locales,defaultLocale:h,domainLocales:o.domainLocales,isPreview:o.isPreview}),X=await n._initialMatchesMiddlewarePromise;let r={App:f,initial:!0,Component:p,props:o.props,err:t};(null==e?void 0:e.beforeRender)&&await e.beforeRender(),ec(r)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},26966:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(9237);let n=r(12905);window.next={version:n.version,get router(){return n.router},emitter:n.emitter},(0,n.initialize)({}).then(()=>(0,n.hydrate)()).catch(console.error),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},18244:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return a}});let n=r(62873),o=r(34167),a=e=>{if(!e.startsWith("/"))return e;let{pathname:t,query:r,hash:a}=(0,o.parsePath)(e);return""+(0,n.removeTrailingSlash)(t)+r+a};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},71987:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let n=r(98046);function o(e){let t="function"==typeof reportError?reportError:e=>{window.console.error(e)};(0,n.isBailoutToCSRError)(e)||t(e)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},15070:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return d}});let n=r(81351),o=r(16013),a=r(72588),i=n._(r(44930)),u=r(18428),l=r(9904),s=r(26095),c=r(62873),f=r(65254);r(24033);class d{getPageList(){return(0,f.getClientBuildManifest)().then(e=>e.sortedPages)}getMiddleware(){return window.__MIDDLEWARE_MATCHERS=[],window.__MIDDLEWARE_MATCHERS}getDataHref(e){let{asPath:t,href:r,locale:n}=e,{pathname:f,query:d,search:p}=(0,s.parseRelativeUrl)(r),{pathname:h}=(0,s.parseRelativeUrl)(t),m=(0,c.removeTrailingSlash)(f);if("/"!==m[0])throw Error('Route name should start with a "/", got "'+m+'"');return(e=>{let t=(0,i.default)((0,c.removeTrailingSlash)((0,u.addLocale)(e,n)),".json");return(0,o.addBasePath)("/_next/data/"+this.buildId+t+p,!0)})(e.skipInterpolation?h:(0,l.isDynamicRoute)(m)?(0,a.interpolateAs)(f,h,d).result:m)}_isSsg(e){return this.promisedSsgManifest.then(t=>t.has(e))}loadPage(e){return this.routeLoader.loadRoute(e).then(e=>{if("component"in e)return{page:e.component,mod:e.exports,styleSheets:e.styles.map(e=>({href:e.href,text:e.content}))};throw e.error})}prefetch(e){return this.routeLoader.prefetch(e)}constructor(e,t){this.routeLoader=(0,f.createRouteLoader)(t),this.buildId=e,this.assetPrefix=t,this.promisedSsgManifest=new Promise(e=>{window.__SSG_MANIFEST?e(window.__SSG_MANIFEST):window.__SSG_MANIFEST_CB=()=>{e(window.__SSG_MANIFEST)}})}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},43674:function(e,t,r){"use strict";let n;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return u}});let o=["CLS","FCP","FID","INP","LCP","TTFB"];location.href;let a=!1;function i(e){n&&n(e)}let u=e=>{if(n=e,!a)for(let e of(a=!0,o))try{let t;t||(t=r(26409)),t["on"+e](i)}catch(t){console.warn("Failed to track "+e+" web-vital",t)}};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},70604:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Portal",{enumerable:!0,get:function(){return a}});let n=r(50959),o=r(10422),a=e=>{let{children:t,type:r}=e,[a,i]=(0,n.useState)(null);return(0,n.useEffect)(()=>{let e=document.createElement(r);return document.body.appendChild(e),i(e),()=>{document.body.removeChild(e)}},[r]),a?(0,o.createPortal)(t,a):null};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},35687:function(e,t,r){"use strict";function n(e){return e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeBasePath",{enumerable:!0,get:function(){return n}}),r(77549),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},86:function(e,t,r){"use strict";function n(e,t){return e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeLocale",{enumerable:!0,get:function(){return n}}),r(34167),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},78776:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{requestIdleCallback:function(){return r},cancelIdleCallback:function(){return n}});let r="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},n="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},15600:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return f}});let n=r(54875),o=r(85688),a=r(84629),i=r(88596),u=r(18244),l=r(87497),s=r(45696),c=r(72588);function f(e,t,r){let f;let d="string"==typeof t?t:(0,o.formatWithValidation)(t),p=d.match(/^[a-zA-Z]{1,}:\/\//),h=p?d.slice(p[0].length):d;if((h.split("?",1)[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+d+"' passed to next/router in page: '"+e.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");let t=(0,i.normalizeRepeatedSlashes)(h);d=(p?p[0]:"")+t}if(!(0,l.isLocalURL)(d))return r?[d]:d;try{f=new URL(d.startsWith("#")?e.asPath:e.pathname,"http://n")}catch(e){f=new URL("/","http://n")}try{let e=new URL(d,f);e.pathname=(0,u.normalizePathTrailingSlash)(e.pathname);let t="";if((0,s.isDynamicRoute)(e.pathname)&&e.searchParams&&r){let r=(0,n.searchParamsToUrlQuery)(e.searchParams),{result:i,params:u}=(0,c.interpolateAs)(e.pathname,e.pathname,r);i&&(t=(0,o.formatWithValidation)({pathname:i,hash:e.hash,query:(0,a.omit)(r,u)}))}let i=e.origin===f.origin?e.href.slice(e.origin.length):e.href;return r?[i,t||i]:i}catch(e){return r?[d]:d}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},86286:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{RouteAnnouncer:function(){return l},default:function(){return s}});let n=r(81351),o=r(11527),a=n._(r(50959)),i=r(84767),u={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",top:0,width:"1px",whiteSpace:"nowrap",wordWrap:"normal"},l=()=>{let{asPath:e}=(0,i.useRouter)(),[t,r]=a.default.useState(""),n=a.default.useRef(e);return a.default.useEffect(()=>{if(n.current!==e){if(n.current=e,document.title)r(document.title);else{var t;let n=document.querySelector("h1");r((null!=(t=null==n?void 0:n.innerText)?t:null==n?void 0:n.textContent)||e)}}},[e]),(0,o.jsx)("p",{"aria-live":"assertive",id:"__next-route-announcer__",role:"alert",style:u,children:t})},s=l;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},65254:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{markAssetError:function(){return l},isAssetError:function(){return s},getClientBuildManifest:function(){return p},createRouteLoader:function(){return m}}),r(81351),r(44930);let n=r(97116),o=r(78776),a=r(97520);function i(e,t,r){let n,o=t.get(e);if(o)return"future"in o?o.future:Promise.resolve(o);let a=new Promise(e=>{n=e});return t.set(e,o={resolve:n,future:a}),r?r().then(e=>(n(e),e)).catch(r=>{throw t.delete(e),r}):a}let u=Symbol("ASSET_LOAD_ERROR");function l(e){return Object.defineProperty(e,u,{})}function s(e){return e&&u in e}let c=function(e){try{return e=document.createElement("link"),!!window.MSInputMethodContext&&!!document.documentMode||e.relList.supports("prefetch")}catch(e){return!1}}(),f=()=>(0,a.getDeploymentIdQueryOrEmptyString)();function d(e,t,r){return new Promise((n,a)=>{let i=!1;e.then(e=>{i=!0,n(e)}).catch(a),(0,o.requestIdleCallback)(()=>setTimeout(()=>{i||a(r)},t))})}function p(){return self.__BUILD_MANIFEST?Promise.resolve(self.__BUILD_MANIFEST):d(new Promise(e=>{let t=self.__BUILD_MANIFEST_CB;self.__BUILD_MANIFEST_CB=()=>{e(self.__BUILD_MANIFEST),t&&t()}}),3800,l(Error("Failed to load client build manifest")))}function h(e,t){return p().then(r=>{if(!(t in r))throw l(Error("Failed to lookup route: "+t));let o=r[t].map(t=>e+"/_next/"+encodeURI(t));return{scripts:o.filter(e=>e.endsWith(".js")).map(e=>(0,n.__unsafeCreateTrustedScriptURL)(e)+f()),css:o.filter(e=>e.endsWith(".css")).map(e=>e+f())}})}function m(e){let t=new Map,r=new Map,n=new Map,a=new Map;function u(e){{var t;let n=r.get(e.toString());return n||(document.querySelector('script[src^="'+e+'"]')?Promise.resolve():(r.set(e.toString(),n=new Promise((r,n)=>{(t=document.createElement("script")).onload=r,t.onerror=()=>n(l(Error("Failed to load script: "+e))),t.crossOrigin=void 0,t.src=e,document.body.appendChild(t)})),n))}}function s(e){let t=n.get(e);return t||n.set(e,t=fetch(e).then(t=>{if(!t.ok)throw Error("Failed to load stylesheet: "+e);return t.text().then(t=>({href:e,content:t}))}).catch(e=>{throw l(e)})),t}return{whenEntrypoint:e=>i(e,t),onEntrypoint(e,r){(r?Promise.resolve().then(()=>r()).then(e=>({component:e&&e.default||e,exports:e}),e=>({error:e})):Promise.resolve(void 0)).then(r=>{let n=t.get(e);n&&"resolve"in n?r&&(t.set(e,r),n.resolve(r)):(r?t.set(e,r):t.delete(e),a.delete(e))})},loadRoute(r,n){return i(r,a,()=>{let o;return d(h(e,r).then(e=>{let{scripts:n,css:o}=e;return Promise.all([t.has(r)?[]:Promise.all(n.map(u)),Promise.all(o.map(s))])}).then(e=>this.whenEntrypoint(r).then(t=>({entrypoint:t,styles:e[1]}))),3800,l(Error("Route did not complete loading: "+r))).then(e=>{let{entrypoint:t,styles:r}=e,n=Object.assign({styles:r},t);return"error"in t?t:n}).catch(e=>{if(n)throw e;return{error:e}}).finally(()=>null==o?void 0:o())})},prefetch(t){let r;return(r=navigator.connection)&&(r.saveData||/2g/.test(r.effectiveType))?Promise.resolve():h(e,t).then(e=>Promise.all(c?e.scripts.map(e=>{var t,r,n;return t=e.toString(),r="script",new Promise((e,o)=>{if(document.querySelector('\n link[rel="prefetch"][href^="'+t+'"],\n link[rel="preload"][href^="'+t+'"],\n script[src^="'+t+'"]'))return e();n=document.createElement("link"),r&&(n.as=r),n.rel="prefetch",n.crossOrigin=void 0,n.onload=e,n.onerror=()=>o(l(Error("Failed to prefetch: "+t))),n.href=t,document.head.appendChild(n)})}):[])).then(()=>{(0,o.requestIdleCallback)(()=>this.loadRoute(t,!0).catch(()=>{}))}).catch(()=>{})}}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},84767:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{Router:function(){return a.default},default:function(){return p},withRouter:function(){return l.default},useRouter:function(){return h},createRouter:function(){return m},makePublicRouterInstance:function(){return _}});let n=r(81351),o=n._(r(50959)),a=n._(r(43914)),i=r(96449),u=n._(r(3053)),l=n._(r(89913)),s={router:null,readyCallbacks:[],ready(e){if(this.router)return e();this.readyCallbacks.push(e)}},c=["pathname","route","query","asPath","components","isFallback","basePath","locale","locales","defaultLocale","isReady","isPreview","isLocaleDomain","domainLocales"],f=["push","replace","reload","back","prefetch","beforePopState"];function d(){if(!s.router)throw Error('No router instance found.\nYou should only use "next/router" on the client side of your app.\n');return s.router}Object.defineProperty(s,"events",{get:()=>a.default.events}),c.forEach(e=>{Object.defineProperty(s,e,{get:()=>d()[e]})}),f.forEach(e=>{s[e]=function(){for(var t=arguments.length,r=Array(t),n=0;n{s.ready(()=>{a.default.events.on(e,function(){for(var t=arguments.length,r=Array(t),n=0;ne()),s.readyCallbacks=[],s.router}function _(e){let t={};for(let r of c){if("object"==typeof e[r]){t[r]=Object.assign(Array.isArray(e[r])?[]:{},e[r]);continue}t[r]=e[r]}return t.events=a.default.events,f.forEach(r=>{t[r]=function(){for(var t=arguments.length,n=Array(t),o=0;o{if(i.default.preinit){e.forEach(e=>{i.default.preinit(e,{as:"style"})});return}{let t=document.head;e.forEach(e=>{let r=document.createElement("link");r.type="text/css",r.rel="stylesheet",r.href=e,t.appendChild(r)})}},m=e=>{let{src:t,id:r,onLoad:n=()=>{},onReady:o=null,dangerouslySetInnerHTML:a,children:i="",strategy:u="afterInteractive",onError:l,stylesheets:c}=e,m=r||t;if(m&&d.has(m))return;if(f.has(t)){d.add(m),f.get(t).then(n,l);return}let _=()=>{o&&o(),d.add(m)},g=document.createElement("script"),y=new Promise((e,t)=>{g.addEventListener("load",function(t){e(),n&&n.call(this,t),_()}),g.addEventListener("error",function(e){t(e)})}).catch(function(e){l&&l(e)});for(let[r,n]of(a?(g.innerHTML=a.__html||"",_()):i?(g.textContent="string"==typeof i?i:Array.isArray(i)?i.join(""):"",_()):t&&(g.src=t,f.set(t,y)),Object.entries(e))){if(void 0===n||p.includes(r))continue;let e=s.DOMAttributeNames[r]||r.toLowerCase();g.setAttribute(e,n)}"worker"===u&&g.setAttribute("type","text/partytown"),g.setAttribute("data-nscript",u),c&&h(c),document.body.appendChild(g)};function _(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,c.requestIdleCallback)(()=>m(e))}):m(e)}function g(e){e.forEach(_),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");d.add(t)})}function y(e){let{id:t,src:r="",onLoad:n=()=>{},onReady:o=null,strategy:s="afterInteractive",onError:f,stylesheets:p,...h}=e,{updateScripts:_,scripts:g,getIsSsr:y,appDir:b,nonce:v}=(0,u.useContext)(l.HeadManagerContext),P=(0,u.useRef)(!1);(0,u.useEffect)(()=>{let e=t||r;P.current||(o&&e&&d.has(e)&&o(),P.current=!0)},[o,t,r]);let E=(0,u.useRef)(!1);if((0,u.useEffect)(()=>{!E.current&&("afterInteractive"===s?m(e):"lazyOnload"===s&&("complete"===document.readyState?(0,c.requestIdleCallback)(()=>m(e)):window.addEventListener("load",()=>{(0,c.requestIdleCallback)(()=>m(e))})),E.current=!0)},[e,s]),("beforeInteractive"===s||"worker"===s)&&(_?(g[s]=(g[s]||[]).concat([{id:t,src:r,onLoad:n,onReady:o,onError:f,...h}]),_(g)):y&&y()?d.add(t||r):y&&!y()&&m(e)),b){if(p&&p.forEach(e=>{i.default.preinit(e,{as:"style"})}),"beforeInteractive"===s)return r?(i.default.preload(r,h.integrity?{as:"script",integrity:h.integrity}:{as:"script"}),(0,a.jsx)("script",{nonce:v,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([r,{...h,id:t}])+")"}})):(h.dangerouslySetInnerHTML&&(h.children=h.dangerouslySetInnerHTML.__html,delete h.dangerouslySetInnerHTML),(0,a.jsx)("script",{nonce:v,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{...h,id:t}])+")"}}));"afterInteractive"===s&&r&&i.default.preload(r,h.integrity?{as:"script",integrity:h.integrity}:{as:"script"})}return null}Object.defineProperty(y,"__nextScript",{value:!0});let b=y;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},36366:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let n=r(56229);function o(e){if("ended"!==e.state.state)throw Error("Expected span to be ended");(0,n.sendMessage)(JSON.stringify({event:"span-end",startTime:e.startTime,endTime:e.state.endTime,spanName:e.name,attributes:e.attributes}))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},95719:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});let n=r(81351)._(r(9265));class o{end(e){if("ended"===this.state.state)throw Error("Span has already ended");this.state={state:"ended",endTime:null!=e?e:Date.now()},this.onSpanEnd(this)}constructor(e,t,r){var n,o;this.name=e,this.attributes=null!=(n=t.attributes)?n:{},this.startTime=null!=(o=t.startTime)?o:Date.now(),this.onSpanEnd=r,this.state={state:"inprogress"}}}class a{startSpan(e,t){return new o(e,t,this.handleSpanEnd)}onSpanEnd(e){return this._emitter.on("spanend",e),()=>{this._emitter.off("spanend",e)}}constructor(){this._emitter=(0,n.default)(),this.handleSpanEnd=e=>{this._emitter.emit("spanend",e)}}}let i=new a;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},97116:function(e,t){"use strict";let r;function n(e){var t;return(null==(t=function(){if(void 0===r){var e;r=(null==(e=window.trustedTypes)?void 0:e.createPolicy("nextjs",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e}))||null}return r}())?void 0:t.createScriptURL(e))||e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"__unsafeCreateTrustedScriptURL",{enumerable:!0,get:function(){return n}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9237:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(97520),self.__next_set_public_path__=e=>{r.p=e},("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},89913:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}}),r(81351);let n=r(11527);r(50959);let o=r(84767);function a(e){function t(t){return(0,n.jsx)(e,{router:(0,o.useRouter)(),...t})}return t.getInitialProps=e.getInitialProps,t.origGetInitialProps=e.origGetInitialProps,t}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},59051:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let n=r(81351),o=r(11527),a=n._(r(50959)),i=r(88596);async function u(e){let{Component:t,ctx:r}=e;return{pageProps:await (0,i.loadGetInitialProps)(t,r)}}class l extends a.default.Component{render(){let{Component:e,pageProps:t}=this.props;return(0,o.jsx)(e,{...t})}}l.origGetInitialProps=u,l.getInitialProps=u,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},54908:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return c}});let n=r(81351),o=r(11527),a=n._(r(50959)),i=n._(r(12736)),u={400:"Bad Request",404:"This page could not be found",405:"Method Not Allowed",500:"Internal Server Error"};function l(e){let{res:t,err:r}=e;return{statusCode:t&&t.statusCode?t.statusCode:r?r.statusCode:404}}let s={error:{fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},desc:{lineHeight:"48px"},h1:{display:"inline-block",margin:"0 20px 0 0",paddingRight:23,fontSize:24,fontWeight:500,verticalAlign:"top"},h2:{fontSize:14,fontWeight:400,lineHeight:"28px"},wrap:{display:"inline-block"}};class c extends a.default.Component{render(){let{statusCode:e,withDarkMode:t=!0}=this.props,r=this.props.title||u[e]||"An unexpected error has occurred";return(0,o.jsxs)("div",{style:s.error,children:[(0,o.jsx)(i.default,{children:(0,o.jsx)("title",{children:e?e+": "+r:"Application error: a client-side exception has occurred"})}),(0,o.jsxs)("div",{style:s.desc,children:[(0,o.jsx)("style",{dangerouslySetInnerHTML:{__html:"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}"+(t?"@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}":"")}}),e?(0,o.jsx)("h1",{className:"next-error-h1",style:s.h1,children:e}):null,(0,o.jsx)("div",{style:s.wrap,children:(0,o.jsxs)("h2",{style:s.h2,children:[this.props.title||e?r:(0,o.jsx)(o.Fragment,{children:"Application error: a client-side exception has occurred (see the browser console for more information)"}),"."]})})]})]})}}c.displayName="ErrorPage",c.getInitialProps=l,c.origGetInitialProps=l,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},160:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AmpStateContext",{enumerable:!0,get:function(){return n}});let n=r(81351)._(r(50959)).default.createContext({})},66230:function(e,t){"use strict";function r(e){let{ampFirst:t=!1,hybrid:r=!1,hasQuery:n=!1}=void 0===e?{}:e;return t||r&&n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isInAmpMode",{enumerable:!0,get:function(){return r}})},40416:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{AppRouterContext:function(){return o},LayoutRouterContext:function(){return a},GlobalLayoutRouterContext:function(){return i},TemplateContext:function(){return u},MissingSlotContext:function(){return l}});let n=r(81351)._(r(50959)),o=n.default.createContext(null),a=n.default.createContext(null),i=n.default.createContext(null),u=n.default.createContext(null),l=n.default.createContext(new Set)},88487:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BloomFilter",{enumerable:!0,get:function(){return r}});class r{static from(e,t){void 0===t&&(t=1e-4);let n=new r(e.length,t);for(let t of e)n.add(t);return n}export(){return{numItems:this.numItems,errorRate:this.errorRate,numBits:this.numBits,numHashes:this.numHashes,bitArray:this.bitArray}}import(e){this.numItems=e.numItems,this.errorRate=e.errorRate,this.numBits=e.numBits,this.numHashes=e.numHashes,this.bitArray=e.bitArray}add(e){this.getHashValues(e).forEach(e=>{this.bitArray[e]=1})}contains(e){return this.getHashValues(e).every(e=>this.bitArray[e])}getHashValues(e){let t=[];for(let r=1;r<=this.numHashes;r++){let n=function(e){let t=0;for(let r=0;r>>13,t=Math.imul(t,1540483477);return t>>>0}(""+e+r)%this.numBits;t.push(n)}return t}constructor(e,t=1e-4){this.numItems=e,this.errorRate=t,this.numBits=Math.ceil(-(e*Math.log(t))/(Math.log(2)*Math.log(2))),this.numHashes=Math.ceil(this.numBits/e*Math.log(2)),this.bitArray=Array(this.numBits).fill(0)}}},24033:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{MODERN_BROWSERSLIST_TARGET:function(){return n.default},COMPILER_NAMES:function(){return o},INTERNAL_HEADERS:function(){return a},COMPILER_INDEXES:function(){return i},PHASE_EXPORT:function(){return u},PHASE_PRODUCTION_BUILD:function(){return l},PHASE_PRODUCTION_SERVER:function(){return s},PHASE_DEVELOPMENT_SERVER:function(){return c},PHASE_TEST:function(){return f},PHASE_INFO:function(){return d},PAGES_MANIFEST:function(){return p},APP_PATHS_MANIFEST:function(){return h},APP_PATH_ROUTES_MANIFEST:function(){return m},BUILD_MANIFEST:function(){return _},APP_BUILD_MANIFEST:function(){return g},FUNCTIONS_CONFIG_MANIFEST:function(){return y},SUBRESOURCE_INTEGRITY_MANIFEST:function(){return b},NEXT_FONT_MANIFEST:function(){return v},EXPORT_MARKER:function(){return P},EXPORT_DETAIL:function(){return E},PRERENDER_MANIFEST:function(){return S},ROUTES_MANIFEST:function(){return j},IMAGES_MANIFEST:function(){return w},SERVER_FILES_MANIFEST:function(){return O},DEV_CLIENT_PAGES_MANIFEST:function(){return R},MIDDLEWARE_MANIFEST:function(){return T},DEV_MIDDLEWARE_MANIFEST:function(){return M},REACT_LOADABLE_MANIFEST:function(){return x},FONT_MANIFEST:function(){return I},SERVER_DIRECTORY:function(){return C},CONFIG_FILES:function(){return A},BUILD_ID_FILE:function(){return L},BLOCKED_PAGES:function(){return N},CLIENT_PUBLIC_FILES_PATH:function(){return D},CLIENT_STATIC_FILES_PATH:function(){return k},STRING_LITERAL_DROP_BUNDLE:function(){return F},NEXT_BUILTIN_DOCUMENT:function(){return B},BARREL_OPTIMIZATION_PREFIX:function(){return U},CLIENT_REFERENCE_MANIFEST:function(){return H},SERVER_REFERENCE_MANIFEST:function(){return W},MIDDLEWARE_BUILD_MANIFEST:function(){return q},MIDDLEWARE_REACT_LOADABLE_MANIFEST:function(){return G},CLIENT_STATIC_FILES_RUNTIME_MAIN:function(){return z},CLIENT_STATIC_FILES_RUNTIME_MAIN_APP:function(){return V},APP_CLIENT_INTERNALS:function(){return X},CLIENT_STATIC_FILES_RUNTIME_REACT_REFRESH:function(){return Y},CLIENT_STATIC_FILES_RUNTIME_AMP:function(){return $},CLIENT_STATIC_FILES_RUNTIME_WEBPACK:function(){return K},CLIENT_STATIC_FILES_RUNTIME_POLYFILLS:function(){return J},CLIENT_STATIC_FILES_RUNTIME_POLYFILLS_SYMBOL:function(){return Q},EDGE_RUNTIME_WEBPACK:function(){return Z},STATIC_PROPS_ID:function(){return ee},SERVER_PROPS_ID:function(){return et},GOOGLE_FONT_PROVIDER:function(){return er},OPTIMIZED_FONT_PROVIDERS:function(){return en},DEFAULT_SERIF_FONT:function(){return eo},DEFAULT_SANS_SERIF_FONT:function(){return ea},STATIC_STATUS_PAGES:function(){return ei},TRACE_OUTPUT_VERSION:function(){return eu},TURBO_TRACE_DEFAULT_MEMORY_LIMIT:function(){return el},RSC_MODULE_TYPES:function(){return es},EDGE_UNSUPPORTED_NODE_APIS:function(){return ec},SYSTEM_ENTRYPOINTS:function(){return ef}});let n=r(81351)._(r(55780)),o={client:"client",server:"server",edgeServer:"edge-server"},a=["x-invoke-error","x-invoke-output","x-invoke-path","x-invoke-query","x-invoke-status","x-middleware-invoke"],i={[o.client]:0,[o.server]:1,[o.edgeServer]:2},u="phase-export",l="phase-production-build",s="phase-production-server",c="phase-development-server",f="phase-test",d="phase-info",p="pages-manifest.json",h="app-paths-manifest.json",m="app-path-routes-manifest.json",_="build-manifest.json",g="app-build-manifest.json",y="functions-config-manifest.json",b="subresource-integrity-manifest",v="next-font-manifest",P="export-marker.json",E="export-detail.json",S="prerender-manifest.json",j="routes-manifest.json",w="images-manifest.json",O="required-server-files.json",R="_devPagesManifest.json",T="middleware-manifest.json",M="_devMiddlewareManifest.json",x="react-loadable-manifest.json",I="font-manifest.json",C="server",A=["next.config.js","next.config.mjs"],L="BUILD_ID",N=["/_document","/_app","/_error"],D="public",k="static",F="__NEXT_DROP_CLIENT_FILE__",B="__NEXT_BUILTIN_DOCUMENT__",U="__barrel_optimize__",H="client-reference-manifest",W="server-reference-manifest",q="middleware-build-manifest",G="middleware-react-loadable-manifest",z="main",V=""+z+"-app",X="app-pages-internals",Y="react-refresh",$="amp",K="webpack",J="polyfills",Q=Symbol(J),Z="edge-runtime-webpack",ee="__N_SSG",et="__N_SSP",er="https://fonts.googleapis.com/",en=[{url:er,preconnect:"https://fonts.gstatic.com"},{url:"https://use.typekit.net",preconnect:"https://use.typekit.net"}],eo={name:"Times New Roman",xAvgCharWidth:821,azAvgWidth:854.3953488372093,unitsPerEm:2048},ea={name:"Arial",xAvgCharWidth:904,azAvgWidth:934.5116279069767,unitsPerEm:2048},ei=["/500"],eu=1,el=6e3,es={client:"client",server:"server"},ec=["clearImmediate","setImmediate","BroadcastChannel","ByteLengthQueuingStrategy","CompressionStream","CountQueuingStrategy","DecompressionStream","DomException","MessageChannel","MessageEvent","MessagePort","ReadableByteStreamController","ReadableStreamBYOBRequest","ReadableStreamDefaultController","TransformStreamDefaultController","WritableStreamDefaultController"],ef=new Set([z,Y,$,V]);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},79306:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"escapeStringRegexp",{enumerable:!0,get:function(){return o}});let r=/[|\\{}()[\]^$+*?.-]/,n=/[|\\{}()[\]^$+*?.-]/g;function o(e){return r.test(e)?e.replace(n,"\\$&"):e}},51872:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HeadManagerContext",{enumerable:!0,get:function(){return n}});let n=r(81351)._(r(50959)).default.createContext({})},12736:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{defaultHead:function(){return f},default:function(){return m}});let n=r(81351),o=r(35815),a=r(11527),i=o._(r(50959)),u=n._(r(7332)),l=r(160),s=r(51872),c=r(66230);function f(e){void 0===e&&(e=!1);let t=[(0,a.jsx)("meta",{charSet:"utf-8"})];return e||t.push((0,a.jsx)("meta",{name:"viewport",content:"width=device-width"})),t}function d(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===i.default.Fragment?e.concat(i.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}r(96496);let p=["name","httpEquiv","charSet","itemProp"];function h(e,t){let{inAmpMode:r}=t;return e.reduce(d,[]).reverse().concat(f(r).reverse()).filter(function(){let e=new Set,t=new Set,r=new Set,n={};return o=>{let a=!0,i=!1;if(o.key&&"number"!=typeof o.key&&o.key.indexOf("$")>0){i=!0;let t=o.key.slice(o.key.indexOf("$")+1);e.has(t)?a=!1:e.add(t)}switch(o.type){case"title":case"base":t.has(o.type)?a=!1:t.add(o.type);break;case"meta":for(let e=0,t=p.length;e{let n=e.key||t;if(!r&&"link"===e.type&&e.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some(t=>e.props.href.startsWith(t))){let t={...e.props||{}};return t["data-href"]=t.href,t.href=void 0,t["data-optimized-fonts"]=!0,i.default.cloneElement(e,t)}return i.default.cloneElement(e,{key:n})})}let m=function(e){let{children:t}=e,r=(0,i.useContext)(l.AmpStateContext),n=(0,i.useContext)(s.HeadManagerContext);return(0,a.jsx)(u.default,{reduceComponentsToState:h,headManager:n,inAmpMode:(0,c.isInAmpMode)(r),children:t})};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},90791:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{SearchParamsContext:function(){return o},PathnameContext:function(){return a},PathParamsContext:function(){return i}});let n=r(50959),o=(0,n.createContext)(null),a=(0,n.createContext)(null),i=(0,n.createContext)(null)},61219:function(e,t){"use strict";function r(e,t){let r;let n=e.split("/");return(t||[]).some(t=>!!n[1]&&n[1].toLowerCase()===t.toLowerCase()&&(r=t,n.splice(1,1),e=n.join("/")||"/",!0)),{pathname:e,detectedLocale:r}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return r}})},87216:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ImageConfigContext",{enumerable:!0,get:function(){return a}});let n=r(81351)._(r(50959)),o=r(2464),a=n.default.createContext(o.imageConfigDefault)},2464:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{VALID_LOADERS:function(){return r},imageConfigDefault:function(){return n}});let r=["default","imgix","cloudinary","akamai","custom"],n={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:["image/webp"],dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"inline",remotePatterns:[],unoptimized:!1}},99658:function(e,t){"use strict";function r(e){return Object.prototype.toString.call(e)}function n(e){if("[object Object]"!==r(e))return!1;let t=Object.getPrototypeOf(e);return null===t||t.hasOwnProperty("isPrototypeOf")}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getObjectClassLabel:function(){return r},isPlainObject:function(){return n}})},98046:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{BailoutToCSRError:function(){return n},isBailoutToCSRError:function(){return o}});let r="BAILOUT_TO_CLIENT_SIDE_RENDERING";class n extends Error{constructor(e){super("Bail out to client-side rendering: "+e),this.reason=e,this.digest=r}}function o(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===r}},9265:function(e,t){"use strict";function r(){let e=Object.create(null);return{on(t,r){(e[t]||(e[t]=[])).push(r)},off(t,r){e[t]&&e[t].splice(e[t].indexOf(r)>>>0,1)},emit(t){for(var r=arguments.length,n=Array(r>1?r-1:0),o=1;o{e(...n)})}}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}})},55780:function(e){"use strict";e.exports=["chrome 64","edge 79","firefox 67","opera 51","safari 12"]},15169:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"denormalizePagePath",{enumerable:!0,get:function(){return a}});let n=r(45696),o=r(2450);function a(e){let t=(0,o.normalizePathSep)(e);return t.startsWith("/index/")&&!(0,n.isDynamicRoute)(t)?t.slice(6):"/index"!==t?t:"/"}},60006:function(e,t){"use strict";function r(e){return e.startsWith("/")?e:"/"+e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ensureLeadingSlash",{enumerable:!0,get:function(){return r}})},2450:function(e,t){"use strict";function r(e){return e.replace(/\\/g,"/")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathSep",{enumerable:!0,get:function(){return r}})},96449:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return n}});let n=r(81351)._(r(50959)).default.createContext(null)},45159:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{adaptForAppRouterInstance:function(){return c},adaptForSearchParams:function(){return f},adaptForPathParams:function(){return d},PathnameContextProviderAdapter:function(){return p}});let n=r(35815),o=r(11527),a=n._(r(50959)),i=r(90791),u=r(45696),l=r(51127),s=r(3176);function c(e){return{back(){e.back()},forward(){e.forward()},refresh(){e.reload()},push(t,r){let{scroll:n}=void 0===r?{}:r;e.push(t,void 0,{scroll:n})},replace(t,r){let{scroll:n}=void 0===r?{}:r;e.replace(t,void 0,{scroll:n})},prefetch(t){e.prefetch(t)}}}function f(e){return e.isReady&&e.query?(0,l.asPathToSearchParams)(e.asPath):new URLSearchParams}function d(e){if(!e.isReady||!e.query)return null;let t={};for(let r of Object.keys((0,s.getRouteRegex)(e.pathname).groups))t[r]=e.query[r];return t}function p(e){let{children:t,router:r,...n}=e,l=(0,a.useRef)(n.isAutoExport),s=(0,a.useMemo)(()=>{let e;let t=l.current;if(t&&(l.current=!1),(0,u.isDynamicRoute)(r.pathname)&&(r.isFallback||t&&!r.isReady))return null;try{e=new URL(r.asPath,"http://f")}catch(e){return"/"}return e.pathname},[r.asPath,r.isFallback,r.isReady,r.pathname]);return(0,o.jsx)(i.PathnameContext.Provider,{value:s,children:t})}},43914:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return V},matchesMiddleware:function(){return N},createKey:function(){return q}});let n=r(81351),o=r(35815),a=r(62873),i=r(65254),u=r(3529),l=o._(r(3053)),s=r(15169),c=r(61219),f=n._(r(9265)),d=r(88596),p=r(9904),h=r(26095);r(55223);let m=r(3249),_=r(3176),g=r(85688);r(17510);let y=r(34167),b=r(18428),v=r(86),P=r(35687),E=r(16013),S=r(77549),j=r(15600),w=r(57799),O=r(83347),R=r(64588),T=r(13329),M=r(87497),x=r(13250),I=r(84629),C=r(72588),A=r(60636);function L(){return Object.assign(Error("Route Cancelled"),{cancelled:!0})}async function N(e){let t=await Promise.resolve(e.router.pageLoader.getMiddleware());if(!t)return!1;let{pathname:r}=(0,y.parsePath)(e.asPath),n=(0,S.hasBasePath)(r)?(0,P.removeBasePath)(r):r,o=(0,E.addBasePath)((0,b.addLocale)(n,e.locale));return t.some(e=>new RegExp(e.regexp).test(o))}function D(e){let t=(0,d.getLocationOrigin)();return e.startsWith(t)?e.substring(t.length):e}function k(e,t,r){let[n,o]=(0,j.resolveHref)(e,t,!0),a=(0,d.getLocationOrigin)(),i=n.startsWith(a),u=o&&o.startsWith(a);n=D(n),o=o?D(o):o;let l=i?n:(0,E.addBasePath)(n),s=r?D((0,j.resolveHref)(e,r)):o||n;return{url:l,as:u?s:(0,E.addBasePath)(s)}}function F(e,t){let r=(0,a.removeTrailingSlash)((0,s.denormalizePagePath)(e));return"/404"===r||"/_error"===r?e:(t.includes(r)||t.some(t=>{if((0,p.isDynamicRoute)(t)&&(0,_.getRouteRegex)(t).re.test(r))return e=t,!0}),(0,a.removeTrailingSlash)(e))}async function B(e){if(!await N(e)||!e.fetchData)return null;try{let t=await e.fetchData(),r=await function(e,t,r){let n={basePath:r.router.basePath,i18n:{locales:r.router.locales},trailingSlash:!1},o=t.headers.get("x-nextjs-rewrite"),u=o||t.headers.get("x-nextjs-matched-path"),l=t.headers.get("x-matched-path");if(!l||u||l.includes("__next_data_catchall")||l.includes("/_error")||l.includes("/404")||(u=l),u){if(u.startsWith("/")){let t=(0,h.parseRelativeUrl)(u),l=(0,O.getNextPathnameInfo)(t.pathname,{nextConfig:n,parseData:!0}),s=(0,a.removeTrailingSlash)(l.pathname);return Promise.all([r.router.pageLoader.getPageList(),(0,i.getClientBuildManifest)()]).then(a=>{let[i,{__rewrites:u}]=a,f=(0,b.addLocale)(l.pathname,l.locale);if((0,p.isDynamicRoute)(f)||!o&&i.includes((0,c.normalizeLocalePath)((0,P.removeBasePath)(f),r.router.locales).pathname)){let r=(0,O.getNextPathnameInfo)((0,h.parseRelativeUrl)(e).pathname,{nextConfig:n,parseData:!0});f=(0,E.addBasePath)(r.pathname),t.pathname=f}if(!i.includes(s)){let e=F(s,i);e!==s&&(s=e)}let d=i.includes(s)?s:F((0,c.normalizeLocalePath)((0,P.removeBasePath)(t.pathname),r.router.locales).pathname,i);if((0,p.isDynamicRoute)(d)){let e=(0,m.getRouteMatcher)((0,_.getRouteRegex)(d))(f);Object.assign(t.query,e||{})}return{type:"rewrite",parsedAs:t,resolvedHref:d}})}let t=(0,y.parsePath)(e);return Promise.resolve({type:"redirect-external",destination:""+(0,R.formatNextPathnameInfo)({...(0,O.getNextPathnameInfo)(t.pathname,{nextConfig:n,parseData:!0}),defaultLocale:r.router.defaultLocale,buildId:""})+t.query+t.hash})}let s=t.headers.get("x-nextjs-redirect");if(s){if(s.startsWith("/")){let e=(0,y.parsePath)(s),t=(0,R.formatNextPathnameInfo)({...(0,O.getNextPathnameInfo)(e.pathname,{nextConfig:n,parseData:!0}),defaultLocale:r.router.defaultLocale,buildId:""});return Promise.resolve({type:"redirect-internal",newAs:""+t+e.query+e.hash,newUrl:""+t+e.query+e.hash})}return Promise.resolve({type:"redirect-external",destination:s})}return Promise.resolve({type:"next"})}(t.dataHref,t.response,e);return{dataHref:t.dataHref,json:t.json,response:t.response,text:t.text,cacheKey:t.cacheKey,effect:r}}catch(e){return null}}let U=Symbol("SSG_DATA_NOT_FOUND");function H(e){try{return JSON.parse(e)}catch(e){return null}}function W(e){var t;let{dataHref:r,inflightCache:n,isPrefetch:o,hasMiddleware:a,isServerRender:u,parseJSON:l,persistCache:s,isBackground:c,unstable_skipClientCache:f}=e,{href:d}=new URL(r,window.location.href),p=e=>(function e(t,r,n){return fetch(t,{credentials:"same-origin",method:n.method||"GET",headers:Object.assign({},n.headers,{"x-nextjs-data":"1"})}).then(o=>!o.ok&&r>1&&o.status>=500?e(t,r-1,n):o)})(r,u?3:1,{headers:Object.assign({},o?{purpose:"prefetch"}:{},o&&a?{"x-middleware-prefetch":"1"}:{}),method:null!=(t=null==e?void 0:e.method)?t:"GET"}).then(t=>t.ok&&(null==e?void 0:e.method)==="HEAD"?{dataHref:r,response:t,text:"",json:{},cacheKey:d}:t.text().then(e=>{if(!t.ok){if(a&&[301,302,307,308].includes(t.status))return{dataHref:r,response:t,text:e,json:{},cacheKey:d};if(404===t.status){var n;if(null==(n=H(e))?void 0:n.notFound)return{dataHref:r,json:{notFound:U},response:t,text:e,cacheKey:d}}let o=Error("Failed to load static props");throw u||(0,i.markAssetError)(o),o}return{dataHref:r,json:l?H(e):null,response:t,text:e,cacheKey:d}})).then(e=>(s&&"no-cache"!==e.response.headers.get("x-middleware-cache")||delete n[d],e)).catch(e=>{throw f||delete n[d],("Failed to fetch"===e.message||"NetworkError when attempting to fetch resource."===e.message||"Load failed"===e.message)&&(0,i.markAssetError)(e),e});return f&&s?p({}).then(e=>(n[d]=Promise.resolve(e),e)):void 0!==n[d]?n[d]:n[d]=p(c?{method:"HEAD"}:{})}function q(){return Math.random().toString(36).slice(2,10)}function G(e){let{url:t,router:r}=e;if(t===(0,E.addBasePath)((0,b.addLocale)(r.asPath,r.locale)))throw Error("Invariant: attempted to hard navigate to the same URL "+t+" "+location.href);window.location.href=t}let z=e=>{let{route:t,router:r}=e,n=!1,o=r.clc=()=>{n=!0};return()=>{if(n){let e=Error('Abort fetching component for route: "'+t+'"');throw e.cancelled=!0,e}o===r.clc&&(r.clc=null)}};class V{reload(){window.location.reload()}back(){window.history.back()}forward(){window.history.forward()}push(e,t,r){return void 0===r&&(r={}),{url:e,as:t}=k(this,e,t),this.change("pushState",e,t,r)}replace(e,t,r){return void 0===r&&(r={}),{url:e,as:t}=k(this,e,t),this.change("replaceState",e,t,r)}async _bfl(e,t,r,n){{let l=!1,s=!1;for(let c of[e,t])if(c){let t=(0,a.removeTrailingSlash)(new URL(c,"http://n").pathname),f=(0,E.addBasePath)((0,b.addLocale)(t,r||this.locale));if(t!==(0,a.removeTrailingSlash)(new URL(this.asPath,"http://n").pathname)){var o,i,u;for(let e of(l=l||!!(null==(o=this._bfl_s)?void 0:o.contains(t))||!!(null==(i=this._bfl_s)?void 0:i.contains(f)),[t,f])){let t=e.split("/");for(let e=0;!s&&e{})}}}}return!1}async change(e,t,r,n,o){var s,c,f,j,w,O,R,x,A;let D,B;if(!(0,M.isLocalURL)(t))return G({url:t,router:this}),!1;let H=1===n._h;H||n.shallow||await this._bfl(r,void 0,n.locale);let W=H||n._shouldResolveHref||(0,y.parsePath)(t).pathname===(0,y.parsePath)(r).pathname,q={...this.state},z=!0!==this.isReady;this.isReady=!0;let X=this.isSsr;if(H||(this.isSsr=!1),H&&this.clc)return!1;let Y=q.locale;d.ST&&performance.mark("routeChange");let{shallow:$=!1,scroll:K=!0}=n,J={shallow:$};this._inFlightRoute&&this.clc&&(X||V.events.emit("routeChangeError",L(),this._inFlightRoute,J),this.clc(),this.clc=null),r=(0,E.addBasePath)((0,b.addLocale)((0,S.hasBasePath)(r)?(0,P.removeBasePath)(r):r,n.locale,this.defaultLocale));let Q=(0,v.removeLocale)((0,S.hasBasePath)(r)?(0,P.removeBasePath)(r):r,q.locale);this._inFlightRoute=r;let Z=Y!==q.locale;if(!H&&this.onlyAHashChange(Q)&&!Z){q.asPath=Q,V.events.emit("hashChangeStart",r,J),this.changeState(e,t,r,{...n,scroll:!1}),K&&this.scrollToHash(Q);try{await this.set(q,this.components[q.route],null)}catch(e){throw(0,l.default)(e)&&e.cancelled&&V.events.emit("routeChangeError",e,Q,J),e}return V.events.emit("hashChangeComplete",r,J),!0}let ee=(0,h.parseRelativeUrl)(t),{pathname:et,query:er}=ee;try{[D,{__rewrites:B}]=await Promise.all([this.pageLoader.getPageList(),(0,i.getClientBuildManifest)(),this.pageLoader.getMiddleware()])}catch(e){return G({url:r,router:this}),!1}this.urlIsNew(Q)||Z||(e="replaceState");let en=r;et=et?(0,a.removeTrailingSlash)((0,P.removeBasePath)(et)):et;let eo=(0,a.removeTrailingSlash)(et),ea=r.startsWith("/")&&(0,h.parseRelativeUrl)(r).pathname;if(null==(s=this.components[et])?void 0:s.__appRouter)return G({url:r,router:this}),new Promise(()=>{});let ei=!!(ea&&eo!==ea&&(!(0,p.isDynamicRoute)(eo)||!(0,m.getRouteMatcher)((0,_.getRouteRegex)(eo))(ea))),eu=!n.shallow&&await N({asPath:r,locale:q.locale,router:this});if(H&&eu&&(W=!1),W&&"/_error"!==et&&(n._shouldResolveHref=!0,ee.pathname=F(et,D),ee.pathname===et||(et=ee.pathname,ee.pathname=(0,E.addBasePath)(et),eu||(t=(0,g.formatWithValidation)(ee)))),!(0,M.isLocalURL)(r))return G({url:r,router:this}),!1;en=(0,v.removeLocale)((0,P.removeBasePath)(en),q.locale),eo=(0,a.removeTrailingSlash)(et);let el=!1;if((0,p.isDynamicRoute)(eo)){let e=(0,h.parseRelativeUrl)(en),n=e.pathname,o=(0,_.getRouteRegex)(eo);el=(0,m.getRouteMatcher)(o)(n);let a=eo===n,i=a?(0,C.interpolateAs)(eo,n,er):{};if(el&&(!a||i.result))a?r=(0,g.formatWithValidation)(Object.assign({},e,{pathname:i.result,query:(0,I.omit)(er,i.params)})):Object.assign(er,el);else{let e=Object.keys(o.groups).filter(e=>!er[e]&&!o.groups[e].optional);if(e.length>0&&!eu)throw Error((a?"The provided `href` ("+t+") value is missing query values ("+e.join(", ")+") to be interpolated properly. ":"The provided `as` value ("+n+") is incompatible with the `href` value ("+eo+"). ")+"Read more: https://nextjs.org/docs/messages/"+(a?"href-interpolation-failed":"incompatible-href-as"))}}H||V.events.emit("routeChangeStart",r,J);let es="/404"===this.pathname||"/_error"===this.pathname;try{let a=await this.getRouteInfo({route:eo,pathname:et,query:er,as:r,resolvedAs:en,routeProps:J,locale:q.locale,isPreview:q.isPreview,hasMiddleware:eu,unstable_skipClientCache:n.unstable_skipClientCache,isQueryUpdating:H&&!this.isFallback,isMiddlewareRewrite:ei});if(H||n.shallow||await this._bfl(r,"resolvedAs"in a?a.resolvedAs:void 0,q.locale),"route"in a&&eu){eo=et=a.route||eo,J.shallow||(er=Object.assign({},a.query||{},er));let e=(0,S.hasBasePath)(ee.pathname)?(0,P.removeBasePath)(ee.pathname):ee.pathname;if(el&&et!==e&&Object.keys(el).forEach(e=>{el&&er[e]===el[e]&&delete er[e]}),(0,p.isDynamicRoute)(et)){let e=!J.shallow&&a.resolvedAs?a.resolvedAs:(0,E.addBasePath)((0,b.addLocale)(new URL(r,location.href).pathname,q.locale),!0);(0,S.hasBasePath)(e)&&(e=(0,P.removeBasePath)(e));let t=(0,_.getRouteRegex)(et),n=(0,m.getRouteMatcher)(t)(new URL(e,location.href).pathname);n&&Object.assign(er,n)}}if("type"in a){if("redirect-internal"===a.type)return this.change(e,a.newUrl,a.newAs,n);return G({url:a.destination,router:this}),new Promise(()=>{})}let i=a.Component;if(i&&i.unstable_scriptLoader&&[].concat(i.unstable_scriptLoader()).forEach(e=>{(0,u.handleClientScriptLoad)(e.props)}),(a.__N_SSG||a.__N_SSP)&&a.props){if(a.props.pageProps&&a.props.pageProps.__N_REDIRECT){n.locale=!1;let t=a.props.pageProps.__N_REDIRECT;if(t.startsWith("/")&&!1!==a.props.pageProps.__N_REDIRECT_BASE_PATH){let r=(0,h.parseRelativeUrl)(t);r.pathname=F(r.pathname,D);let{url:o,as:a}=k(this,t,t);return this.change(e,o,a,n)}return G({url:t,router:this}),new Promise(()=>{})}if(q.isPreview=!!a.props.__N_PREVIEW,a.props.notFound===U){let e;try{await this.fetchComponent("/404"),e="/404"}catch(t){e="/_error"}if(a=await this.getRouteInfo({route:e,pathname:e,query:er,as:r,resolvedAs:en,routeProps:{shallow:!1},locale:q.locale,isPreview:q.isPreview,isNotFound:!0}),"type"in a)throw Error("Unexpected middleware effect on /404")}}H&&"/_error"===this.pathname&&(null==(f=self.__NEXT_DATA__.props)?void 0:null==(c=f.pageProps)?void 0:c.statusCode)===500&&(null==(j=a.props)?void 0:j.pageProps)&&(a.props.pageProps.statusCode=500);let s=n.shallow&&q.route===(null!=(w=a.route)?w:eo),d=null!=(O=n.scroll)?O:!H&&!s,g=null!=o?o:d?{x:0,y:0}:null,y={...q,route:eo,pathname:et,query:er,asPath:Q,isFallback:!1};if(H&&es){if(a=await this.getRouteInfo({route:this.pathname,pathname:this.pathname,query:er,as:r,resolvedAs:en,routeProps:{shallow:!1},locale:q.locale,isPreview:q.isPreview,isQueryUpdating:H&&!this.isFallback}),"type"in a)throw Error("Unexpected middleware effect on "+this.pathname);"/_error"===this.pathname&&(null==(x=self.__NEXT_DATA__.props)?void 0:null==(R=x.pageProps)?void 0:R.statusCode)===500&&(null==(A=a.props)?void 0:A.pageProps)&&(a.props.pageProps.statusCode=500);try{await this.set(y,a,g)}catch(e){throw(0,l.default)(e)&&e.cancelled&&V.events.emit("routeChangeError",e,Q,J),e}return!0}if(V.events.emit("beforeHistoryChange",r,J),this.changeState(e,t,r,n),!(H&&!g&&!z&&!Z&&(0,T.compareRouterStates)(y,this.state))){try{await this.set(y,a,g)}catch(e){if(e.cancelled)a.error=a.error||e;else throw e}if(a.error)throw H||V.events.emit("routeChangeError",a.error,Q,J),a.error;H||V.events.emit("routeChangeComplete",r,J),d&&/#.+$/.test(r)&&this.scrollToHash(r)}return!0}catch(e){if((0,l.default)(e)&&e.cancelled)return!1;throw e}}changeState(e,t,r,n){void 0===n&&(n={}),("pushState"!==e||(0,d.getURL)()!==r)&&(this._shallow=n.shallow,window.history[e]({url:t,as:r,options:n,__N:!0,key:this._key="pushState"!==e?this._key:q()},"",r))}async handleRouteInfoError(e,t,r,n,o,a){if(console.error(e),e.cancelled)throw e;if((0,i.isAssetError)(e)||a)throw V.events.emit("routeChangeError",e,n,o),G({url:n,router:this}),L();try{let n;let{page:o,styleSheets:a}=await this.fetchComponent("/_error"),i={props:n,Component:o,styleSheets:a,err:e,error:e};if(!i.props)try{i.props=await this.getInitialProps(o,{err:e,pathname:t,query:r})}catch(e){console.error("Error in error page `getInitialProps`: ",e),i.props={}}return i}catch(e){return this.handleRouteInfoError((0,l.default)(e)?e:Error(e+""),t,r,n,o,!0)}}async getRouteInfo(e){let{route:t,pathname:r,query:n,as:o,resolvedAs:i,routeProps:u,locale:s,hasMiddleware:f,isPreview:d,unstable_skipClientCache:p,isQueryUpdating:h,isMiddlewareRewrite:m,isNotFound:_}=e,y=t;try{var b,v,E,S;let e=z({route:y,router:this}),t=this.components[y];if(u.shallow&&t&&this.route===y)return t;f&&(t=void 0);let l=!t||"initial"in t?void 0:t,j={dataHref:this.pageLoader.getDataHref({href:(0,g.formatWithValidation)({pathname:r,query:n}),skipInterpolation:!0,asPath:_?"/404":i,locale:s}),hasMiddleware:!0,isServerRender:this.isSsr,parseJSON:!0,inflightCache:h?this.sbc:this.sdc,persistCache:!d,isPrefetch:!1,unstable_skipClientCache:p,isBackground:h},O=h&&!m?null:await B({fetchData:()=>W(j),asPath:_?"/404":i,locale:s,router:this}).catch(e=>{if(h)return null;throw e});if(O&&("/_error"===r||"/404"===r)&&(O.effect=void 0),h&&(O?O.json=self.__NEXT_DATA__.props:O={json:self.__NEXT_DATA__.props}),e(),(null==O?void 0:null==(b=O.effect)?void 0:b.type)==="redirect-internal"||(null==O?void 0:null==(v=O.effect)?void 0:v.type)==="redirect-external")return O.effect;if((null==O?void 0:null==(E=O.effect)?void 0:E.type)==="rewrite"){let e=(0,a.removeTrailingSlash)(O.effect.resolvedHref),o=await this.pageLoader.getPageList();if((!h||o.includes(e))&&(y=e,r=O.effect.resolvedHref,n={...n,...O.effect.parsedAs.query},i=(0,P.removeBasePath)((0,c.normalizeLocalePath)(O.effect.parsedAs.pathname,this.locales).pathname),t=this.components[y],u.shallow&&t&&this.route===y&&!f))return{...t,route:y}}if((0,w.isAPIRoute)(y))return G({url:o,router:this}),new Promise(()=>{});let R=l||await this.fetchComponent(y).then(e=>({Component:e.page,styleSheets:e.styleSheets,__N_SSG:e.mod.__N_SSG,__N_SSP:e.mod.__N_SSP})),T=null==O?void 0:null==(S=O.response)?void 0:S.headers.get("x-middleware-skip"),M=R.__N_SSG||R.__N_SSP;T&&(null==O?void 0:O.dataHref)&&delete this.sdc[O.dataHref];let{props:x,cacheKey:I}=await this._getData(async()=>{if(M){if((null==O?void 0:O.json)&&!T)return{cacheKey:O.cacheKey,props:O.json};let e=(null==O?void 0:O.dataHref)?O.dataHref:this.pageLoader.getDataHref({href:(0,g.formatWithValidation)({pathname:r,query:n}),asPath:i,locale:s}),t=await W({dataHref:e,isServerRender:this.isSsr,parseJSON:!0,inflightCache:T?{}:this.sdc,persistCache:!d,isPrefetch:!1,unstable_skipClientCache:p});return{cacheKey:t.cacheKey,props:t.json||{}}}return{headers:{},props:await this.getInitialProps(R.Component,{pathname:r,query:n,asPath:o,locale:s,locales:this.locales,defaultLocale:this.defaultLocale})}});return R.__N_SSP&&j.dataHref&&I&&delete this.sdc[I],this.isPreview||!R.__N_SSG||h||W(Object.assign({},j,{isBackground:!0,persistCache:!1,inflightCache:this.sbc})).catch(()=>{}),x.pageProps=Object.assign({},x.pageProps),R.props=x,R.route=y,R.query=n,R.resolvedAs=i,this.components[y]=R,R}catch(e){return this.handleRouteInfoError((0,l.getProperError)(e),r,n,o,u)}}set(e,t,r){return this.state=e,this.sub(t,this.components["/_app"].Component,r)}beforePopState(e){this._bps=e}onlyAHashChange(e){if(!this.asPath)return!1;let[t,r]=this.asPath.split("#",2),[n,o]=e.split("#",2);return!!o&&t===n&&r===o||t===n&&r!==o}scrollToHash(e){let[,t=""]=e.split("#",2);(0,A.handleSmoothScroll)(()=>{if(""===t||"top"===t){window.scrollTo(0,0);return}let e=decodeURIComponent(t),r=document.getElementById(e);if(r){r.scrollIntoView();return}let n=document.getElementsByName(e)[0];n&&n.scrollIntoView()},{onlyHashChange:this.onlyAHashChange(e)})}urlIsNew(e){return this.asPath!==e}async prefetch(e,t,r){if(void 0===t&&(t=e),void 0===r&&(r={}),(0,x.isBot)(window.navigator.userAgent))return;let n=(0,h.parseRelativeUrl)(e),o=n.pathname,{pathname:i,query:u}=n,l=i,s=await this.pageLoader.getPageList(),c=t,f=void 0!==r.locale?r.locale||void 0:this.locale,d=await N({asPath:t,locale:f,router:this});n.pathname=F(n.pathname,s),(0,p.isDynamicRoute)(n.pathname)&&(i=n.pathname,n.pathname=i,Object.assign(u,(0,m.getRouteMatcher)((0,_.getRouteRegex)(n.pathname))((0,y.parsePath)(t).pathname)||{}),d||(e=(0,g.formatWithValidation)(n)));let b=await B({fetchData:()=>W({dataHref:this.pageLoader.getDataHref({href:(0,g.formatWithValidation)({pathname:l,query:u}),skipInterpolation:!0,asPath:c,locale:f}),hasMiddleware:!0,isServerRender:this.isSsr,parseJSON:!0,inflightCache:this.sdc,persistCache:!this.isPreview,isPrefetch:!0}),asPath:t,locale:f,router:this});if((null==b?void 0:b.effect.type)==="rewrite"&&(n.pathname=b.effect.resolvedHref,i=b.effect.resolvedHref,u={...u,...b.effect.parsedAs.query},c=b.effect.parsedAs.pathname,e=(0,g.formatWithValidation)(n)),(null==b?void 0:b.effect.type)==="redirect-external")return;let v=(0,a.removeTrailingSlash)(i);await this._bfl(t,c,r.locale,!0)&&(this.components[o]={__appRouter:!0}),await Promise.all([this.pageLoader._isSsg(v).then(t=>!!t&&W({dataHref:(null==b?void 0:b.json)?null==b?void 0:b.dataHref:this.pageLoader.getDataHref({href:e,asPath:c,locale:f}),isServerRender:!1,parseJSON:!0,inflightCache:this.sdc,persistCache:!this.isPreview,isPrefetch:!0,unstable_skipClientCache:r.unstable_skipClientCache||r.priority&&!0}).then(()=>!1).catch(()=>!1)),this.pageLoader[r.priority?"loadPage":"prefetch"](v)])}async fetchComponent(e){let t=z({route:e,router:this});try{let r=await this.pageLoader.loadPage(e);return t(),r}catch(e){throw t(),e}}_getData(e){let t=!1,r=()=>{t=!0};return this.clc=r,e().then(e=>{if(r===this.clc&&(this.clc=null),t){let e=Error("Loading initial props cancelled");throw e.cancelled=!0,e}return e})}_getFlightData(e){return W({dataHref:e,isServerRender:!0,parseJSON:!1,inflightCache:this.sdc,persistCache:!1,isPrefetch:!1}).then(e=>{let{text:t}=e;return{data:t}})}getInitialProps(e,t){let{Component:r}=this.components["/_app"],n=this._wrapApp(r);return t.AppTree=n,(0,d.loadGetInitialProps)(r,{AppTree:n,Component:e,router:this,ctx:t})}get route(){return this.state.route}get pathname(){return this.state.pathname}get query(){return this.state.query}get asPath(){return this.state.asPath}get locale(){return this.state.locale}get isFallback(){return this.state.isFallback}get isPreview(){return this.state.isPreview}constructor(e,t,n,{initialProps:o,pageLoader:i,App:u,wrapApp:l,Component:s,err:c,subscription:f,isFallback:m,locale:_,locales:y,defaultLocale:b,domainLocales:v,isPreview:P}){this.sdc={},this.sbc={},this.isFirstPopStateEvent=!0,this._key=q(),this.onPopState=e=>{let t;let{isFirstPopStateEvent:r}=this;this.isFirstPopStateEvent=!1;let n=e.state;if(!n){let{pathname:e,query:t}=this;this.changeState("replaceState",(0,g.formatWithValidation)({pathname:(0,E.addBasePath)(e),query:t}),(0,d.getURL)());return}if(n.__NA){window.location.reload();return}if(!n.__N||r&&this.locale===n.options.locale&&n.as===this.asPath)return;let{url:o,as:a,options:i,key:u}=n;this._key=u;let{pathname:l}=(0,h.parseRelativeUrl)(o);(!this.isSsr||a!==(0,E.addBasePath)(this.asPath)||l!==(0,E.addBasePath)(this.pathname))&&(!this._bps||this._bps(n))&&this.change("replaceState",o,a,Object.assign({},i,{shallow:i.shallow&&this._shallow,locale:i.locale||this.defaultLocale,_h:0}),t)};let S=(0,a.removeTrailingSlash)(e);this.components={},"/_error"!==e&&(this.components[S]={Component:s,initial:!0,props:o,err:c,__N_SSG:o&&o.__N_SSG,__N_SSP:o&&o.__N_SSP}),this.components["/_app"]={Component:u,styleSheets:[]};{let{BloomFilter:e}=r(88487),t={numItems:0,errorRate:1e-4,numBits:0,numHashes:null,bitArray:[]},n={numItems:0,errorRate:1e-4,numBits:0,numHashes:null,bitArray:[]};(null==t?void 0:t.numHashes)&&(this._bfl_s=new e(t.numItems,t.errorRate),this._bfl_s.import(t)),(null==n?void 0:n.numHashes)&&(this._bfl_d=new e(n.numItems,n.errorRate),this._bfl_d.import(n))}this.events=V.events,this.pageLoader=i;let j=(0,p.isDynamicRoute)(e)&&self.__NEXT_DATA__.autoExport;if(this.basePath="",this.sub=f,this.clc=null,this._wrapApp=l,this.isSsr=!0,this.isLocaleDomain=!1,this.isReady=!!(self.__NEXT_DATA__.gssp||self.__NEXT_DATA__.gip||self.__NEXT_DATA__.isExperimentalCompile||self.__NEXT_DATA__.appGip&&!self.__NEXT_DATA__.gsp||!j&&!self.location.search),this.state={route:S,pathname:e,query:t,asPath:j?e:n,isPreview:!!P,locale:void 0,isFallback:m},this._initialMatchesMiddlewarePromise=Promise.resolve(!1),!n.startsWith("//")){let r={locale:_},o=(0,d.getURL)();this._initialMatchesMiddlewarePromise=N({router:this,locale:_,asPath:o}).then(a=>(r._shouldResolveHref=n!==e,this.changeState("replaceState",a?o:(0,g.formatWithValidation)({pathname:(0,E.addBasePath)(e),query:t}),o,r),a))}window.addEventListener("popstate",this.onPopState)}}V.events=(0,f.default)()},59325:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return a}});let n=r(49721),o=r(97982);function a(e,t,r,a){if(!t||t===r)return e;let i=e.toLowerCase();return!a&&((0,o.pathHasPrefix)(i,"/api")||(0,o.pathHasPrefix)(i,"/"+t.toLowerCase()))?e:(0,n.addPathPrefix)(e,"/"+t)}},49721:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathPrefix",{enumerable:!0,get:function(){return o}});let n=r(34167);function o(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:o,hash:a}=(0,n.parsePath)(e);return""+t+r+o+a}},21699:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathSuffix",{enumerable:!0,get:function(){return o}});let n=r(34167);function o(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:o,hash:a}=(0,n.parsePath)(e);return""+r+t+o+a}},46934:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{normalizeAppPath:function(){return a},normalizeRscURL:function(){return i}});let n=r(60006),o=r(28159);function a(e){return(0,n.ensureLeadingSlash)(e.split("/").reduce((e,t,r,n)=>!t||(0,o.isGroupSegment)(t)||"@"===t[0]||("page"===t||"route"===t)&&r===n.length-1?e:e+"/"+t,""))}function i(e){return e.replace(/\.rsc($|\?)/,"$1")}},51127:function(e,t){"use strict";function r(e){return new URL(e,"http://n").searchParams}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"asPathToSearchParams",{enumerable:!0,get:function(){return r}})},13329:function(e,t){"use strict";function r(e,t){let r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;for(let n=r.length;n--;){let o=r[n];if("query"===o){let r=Object.keys(e.query);if(r.length!==Object.keys(t.query).length)return!1;for(let n=r.length;n--;){let o=r[n];if(!t.query.hasOwnProperty(o)||e.query[o]!==t.query[o])return!1}}else if(!t.hasOwnProperty(o)||e[o]!==t[o])return!1}return!0}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"compareRouterStates",{enumerable:!0,get:function(){return r}})},64588:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"formatNextPathnameInfo",{enumerable:!0,get:function(){return u}});let n=r(62873),o=r(49721),a=r(21699),i=r(59325);function u(e){let t=(0,i.addLocale)(e.pathname,e.locale,e.buildId?void 0:e.defaultLocale,e.ignorePrefix);return(e.buildId||!e.trailingSlash)&&(t=(0,n.removeTrailingSlash)(t)),e.buildId&&(t=(0,a.addPathSuffix)((0,o.addPathPrefix)(t,"/_next/data/"+e.buildId),"/"===e.pathname?"index.json":".json")),t=(0,o.addPathPrefix)(t,e.basePath),!e.buildId&&e.trailingSlash?t.endsWith("/")?t:(0,a.addPathSuffix)(t,"/"):(0,n.removeTrailingSlash)(t)}},85688:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{formatUrl:function(){return a},urlObjectKeys:function(){return i},formatWithValidation:function(){return u}});let n=r(35815)._(r(54875)),o=/https?|ftp|gopher|file/;function a(e){let{auth:t,hostname:r}=e,a=e.protocol||"",i=e.pathname||"",u=e.hash||"",l=e.query||"",s=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?s=t+e.host:r&&(s=t+(~r.indexOf(":")?"["+r+"]":r),e.port&&(s+=":"+e.port)),l&&"object"==typeof l&&(l=String(n.urlQueryToSearchParams(l)));let c=e.search||l&&"?"+l||"";return a&&!a.endsWith(":")&&(a+=":"),e.slashes||(!a||o.test(a))&&!1!==s?(s="//"+(s||""),i&&"/"!==i[0]&&(i="/"+i)):s||(s=""),u&&"#"!==u[0]&&(u="#"+u),c&&"?"!==c[0]&&(c="?"+c),""+a+s+(i=i.replace(/[?#]/g,encodeURIComponent))+(c=c.replace("#","%23"))+u}let i=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function u(e){return a(e)}},44930:function(e,t){"use strict";function r(e,t){return void 0===t&&(t=""),("/"===e?"/index":/^\/index(\/|$)/.test(e)?"/index"+e:e)+t}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}})},83347:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getNextPathnameInfo",{enumerable:!0,get:function(){return i}});let n=r(61219),o=r(8925),a=r(97982);function i(e,t){var r,i;let{basePath:u,i18n:l,trailingSlash:s}=null!=(r=t.nextConfig)?r:{},c={pathname:e,trailingSlash:"/"!==e?e.endsWith("/"):s};u&&(0,a.pathHasPrefix)(c.pathname,u)&&(c.pathname=(0,o.removePathPrefix)(c.pathname,u),c.basePath=u);let f=c.pathname;if(c.pathname.startsWith("/_next/data/")&&c.pathname.endsWith(".json")){let e=c.pathname.replace(/^\/_next\/data\//,"").replace(/\.json$/,"").split("/"),r=e[0];c.buildId=r,f="index"!==e[1]?"/"+e.slice(1).join("/"):"/",!0===t.parseData&&(c.pathname=f)}if(l){let e=t.i18nProvider?t.i18nProvider.analyze(c.pathname):(0,n.normalizeLocalePath)(c.pathname,l.locales);c.locale=e.detectedLocale,c.pathname=null!=(i=e.pathname)?i:c.pathname,!e.detectedLocale&&c.buildId&&(e=t.i18nProvider?t.i18nProvider.analyze(f):(0,n.normalizeLocalePath)(f,l.locales)).detectedLocale&&(c.locale=e.detectedLocale)}return c}},60636:function(e,t){"use strict";function r(e,t){if(void 0===t&&(t={}),t.onlyHashChange){e();return}let r=document.documentElement,n=r.style.scrollBehavior;r.style.scrollBehavior="auto",t.dontForceLayout||r.getClientRects(),e(),r.style.scrollBehavior=n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"handleSmoothScroll",{enumerable:!0,get:function(){return r}})},45696:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getSortedRoutes:function(){return n.getSortedRoutes},isDynamicRoute:function(){return o.isDynamicRoute}});let n=r(18356),o=r(9904)},72588:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"interpolateAs",{enumerable:!0,get:function(){return a}});let n=r(3249),o=r(3176);function a(e,t,r){let a="",i=(0,o.getRouteRegex)(e),u=i.groups,l=(t!==e?(0,n.getRouteMatcher)(i)(t):"")||r;a=e;let s=Object.keys(u);return s.every(e=>{let t=l[e]||"",{repeat:r,optional:n}=u[e],o="["+(r?"...":"")+e+"]";return n&&(o=(t?"":"/")+"["+o+"]"),r&&!Array.isArray(t)&&(t=[t]),(n||e in l)&&(a=a.replace(o,r?t.map(e=>encodeURIComponent(e)).join("/"):encodeURIComponent(t))||"/")})||(a=""),{params:s,result:a}}},13250:function(e,t){"use strict";function r(e){return/Googlebot|Mediapartners-Google|AdsBot-Google|googleweblight|Storebot-Google|Google-PageRenderer|Bingbot|BingPreview|Slurp|DuckDuckBot|baiduspider|yandex|sogou|LinkedInBot|bitlybot|tumblr|vkShare|quora link preview|facebookexternalhit|facebookcatalog|Twitterbot|applebot|redditbot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|ia_archiver/i.test(e)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isBot",{enumerable:!0,get:function(){return r}})},9904:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isDynamicRoute",{enumerable:!0,get:function(){return a}});let n=r(71805),o=/\/\[[^/]+?\](?=\/|$)/;function a(e){return(0,n.isInterceptionRouteAppPath)(e)&&(e=(0,n.extractInterceptionRouteInformation)(e).interceptedRoute),o.test(e)}},87497:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return a}});let n=r(88596),o=r(77549);function a(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,o.hasBasePath)(r.pathname)}catch(e){return!1}}},84629:function(e,t){"use strict";function r(e,t){let r={};return Object.keys(e).forEach(n=>{t.includes(n)||(r[n]=e[n])}),r}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"omit",{enumerable:!0,get:function(){return r}})},34167:function(e,t){"use strict";function r(e){let t=e.indexOf("#"),r=e.indexOf("?"),n=r>-1&&(t<0||r-1?{pathname:e.substring(0,n?r:t),query:n?e.substring(r,t>-1?t:void 0):"",hash:t>-1?e.slice(t):""}:{pathname:e,query:"",hash:""}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parsePath",{enumerable:!0,get:function(){return r}})},26095:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parseRelativeUrl",{enumerable:!0,get:function(){return a}});let n=r(88596),o=r(54875);function a(e,t){let r=new URL((0,n.getLocationOrigin)()),a=t?new URL(t,r):e.startsWith(".")?new URL(window.location.href):r,{pathname:i,searchParams:u,search:l,hash:s,href:c,origin:f}=new URL(e,a);if(f!==r.origin)throw Error("invariant: invalid relative URL, router received "+e);return{pathname:i,query:(0,o.searchParamsToUrlQuery)(u),search:l,hash:s,href:c.slice(r.origin.length)}}},97982:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"pathHasPrefix",{enumerable:!0,get:function(){return o}});let n=r(34167);function o(e,t){if("string"!=typeof e)return!1;let{pathname:r}=(0,n.parsePath)(e);return r===t||r.startsWith(t+"/")}},54875:function(e,t){"use strict";function r(e){let t={};return e.forEach((e,r)=>{void 0===t[r]?t[r]=e:Array.isArray(t[r])?t[r].push(e):t[r]=[t[r],e]}),t}function n(e){return"string"!=typeof e&&("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function o(e){let t=new URLSearchParams;return Object.entries(e).forEach(e=>{let[r,o]=e;Array.isArray(o)?o.forEach(e=>t.append(r,n(e))):t.set(r,n(o))}),t}function a(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n{Array.from(t.keys()).forEach(t=>e.delete(t)),t.forEach((t,r)=>e.append(r,t))}),e}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{searchParamsToUrlQuery:function(){return r},urlQueryToSearchParams:function(){return o},assign:function(){return a}})},8925:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removePathPrefix",{enumerable:!0,get:function(){return o}});let n=r(97982);function o(e,t){if(!(0,n.pathHasPrefix)(e,t))return e;let r=e.slice(t.length);return r.startsWith("/")?r:"/"+r}},62873:function(e,t){"use strict";function r(e){return e.replace(/\/$/,"")||"/"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeTrailingSlash",{enumerable:!0,get:function(){return r}})},3249:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getRouteMatcher",{enumerable:!0,get:function(){return o}});let n=r(88596);function o(e){let{re:t,groups:r}=e;return e=>{let o=t.exec(e);if(!o)return!1;let a=e=>{try{return decodeURIComponent(e)}catch(e){throw new n.DecodeError("failed to decode param")}},i={};return Object.keys(r).forEach(e=>{let t=r[e],n=o[t.pos];void 0!==n&&(i[e]=~n.indexOf("/")?n.split("/").map(e=>a(e)):t.repeat?[a(n)]:a(n))}),i}}},3176:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getRouteRegex:function(){return l},getNamedRouteRegex:function(){return f},getNamedMiddlewareRegex:function(){return d}});let n=r(71805),o=r(79306),a=r(62873);function i(e){let t=e.startsWith("[")&&e.endsWith("]");t&&(e=e.slice(1,-1));let r=e.startsWith("...");return r&&(e=e.slice(3)),{key:e,repeat:r,optional:t}}function u(e){let t=(0,a.removeTrailingSlash)(e).slice(1).split("/"),r={},u=1;return{parameterizedRoute:t.map(e=>{let t=n.INTERCEPTION_ROUTE_MARKERS.find(t=>e.startsWith(t)),a=e.match(/\[((?:\[.*\])|.+)\]/);if(t&&a){let{key:e,optional:n,repeat:l}=i(a[1]);return r[e]={pos:u++,repeat:l,optional:n},"/"+(0,o.escapeStringRegexp)(t)+"([^/]+?)"}if(!a)return"/"+(0,o.escapeStringRegexp)(e);{let{key:e,repeat:t,optional:n}=i(a[1]);return r[e]={pos:u++,repeat:t,optional:n},t?n?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}}).join(""),groups:r}}function l(e){let{parameterizedRoute:t,groups:r}=u(e);return{re:RegExp("^"+t+"(?:/)?$"),groups:r}}function s(e){let{interceptionMarker:t,getSafeRouteKey:r,segment:n,routeKeys:a,keyPrefix:u}=e,{key:l,optional:s,repeat:c}=i(n),f=l.replace(/\W/g,"");u&&(f=""+u+f);let d=!1;(0===f.length||f.length>30)&&(d=!0),isNaN(parseInt(f.slice(0,1)))||(d=!0),d&&(f=r()),u?a[f]=""+u+l:a[f]=l;let p=t?(0,o.escapeStringRegexp)(t):"";return c?s?"(?:/"+p+"(?<"+f+">.+?))?":"/"+p+"(?<"+f+">.+?)":"/"+p+"(?<"+f+">[^/]+?)"}function c(e,t){let r;let i=(0,a.removeTrailingSlash)(e).slice(1).split("/"),u=(r=0,()=>{let e="",t=++r;for(;t>0;)e+=String.fromCharCode(97+(t-1)%26),t=Math.floor((t-1)/26);return e}),l={};return{namedParameterizedRoute:i.map(e=>{let r=n.INTERCEPTION_ROUTE_MARKERS.some(t=>e.startsWith(t)),a=e.match(/\[((?:\[.*\])|.+)\]/);if(r&&a){let[r]=e.split(a[0]);return s({getSafeRouteKey:u,interceptionMarker:r,segment:a[1],routeKeys:l,keyPrefix:t?"nxtI":void 0})}return a?s({getSafeRouteKey:u,segment:a[1],routeKeys:l,keyPrefix:t?"nxtP":void 0}):"/"+(0,o.escapeStringRegexp)(e)}).join(""),routeKeys:l}}function f(e,t){let r=c(e,t);return{...l(e),namedRegex:"^"+r.namedParameterizedRoute+"(?:/)?$",routeKeys:r.routeKeys}}function d(e,t){let{parameterizedRoute:r}=u(e),{catchAll:n=!0}=t;if("/"===r)return{namedRegex:"^/"+(n?".*":"")+"$"};let{namedParameterizedRoute:o}=c(e,!1);return{namedRegex:"^"+o+(n?"(?:(/.*)?)":"")+"$"}}},18356:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSortedRoutes",{enumerable:!0,get:function(){return n}});class r{insert(e){this._insert(e.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(e){void 0===e&&(e="/");let t=[...this.children.keys()].sort();null!==this.slugName&&t.splice(t.indexOf("[]"),1),null!==this.restSlugName&&t.splice(t.indexOf("[...]"),1),null!==this.optionalRestSlugName&&t.splice(t.indexOf("[[...]]"),1);let r=t.map(t=>this.children.get(t)._smoosh(""+e+t+"/")).reduce((e,t)=>[...e,...t],[]);if(null!==this.slugName&&r.push(...this.children.get("[]")._smoosh(e+"["+this.slugName+"]/")),!this.placeholder){let t="/"===e?"/":e.slice(0,-1);if(null!=this.optionalRestSlugName)throw Error('You cannot define a route with the same specificity as a optional catch-all route ("'+t+'" and "'+t+"[[..."+this.optionalRestSlugName+']]").');r.unshift(t)}return null!==this.restSlugName&&r.push(...this.children.get("[...]")._smoosh(e+"[..."+this.restSlugName+"]/")),null!==this.optionalRestSlugName&&r.push(...this.children.get("[[...]]")._smoosh(e+"[[..."+this.optionalRestSlugName+"]]/")),r}_insert(e,t,n){if(0===e.length){this.placeholder=!1;return}if(n)throw Error("Catch-all must be the last part of the URL.");let o=e[0];if(o.startsWith("[")&&o.endsWith("]")){let r=o.slice(1,-1),i=!1;if(r.startsWith("[")&&r.endsWith("]")&&(r=r.slice(1,-1),i=!0),r.startsWith("...")&&(r=r.substring(3),n=!0),r.startsWith("[")||r.endsWith("]"))throw Error("Segment names may not start or end with extra brackets ('"+r+"').");if(r.startsWith("."))throw Error("Segment names may not start with erroneous periods ('"+r+"').");function a(e,r){if(null!==e&&e!==r)throw Error("You cannot use different slug names for the same dynamic path ('"+e+"' !== '"+r+"').");t.forEach(e=>{if(e===r)throw Error('You cannot have the same slug name "'+r+'" repeat within a single dynamic path');if(e.replace(/\W/g,"")===o.replace(/\W/g,""))throw Error('You cannot have the slug names "'+e+'" and "'+r+'" differ only by non-word symbols within a single dynamic path')}),t.push(r)}if(n){if(i){if(null!=this.restSlugName)throw Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+e[0]+'" ).');a(this.optionalRestSlugName,r),this.optionalRestSlugName=r,o="[[...]]"}else{if(null!=this.optionalRestSlugName)throw Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+e[0]+'").');a(this.restSlugName,r),this.restSlugName=r,o="[...]"}}else{if(i)throw Error('Optional route parameters are not yet supported ("'+e[0]+'").');a(this.slugName,r),this.slugName=r,o="[]"}}this.children.has(o)||this.children.set(o,new r),this.children.get(o)._insert(e.slice(1),t,n)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function n(e){let t=new r;return e.forEach(e=>t.insert(e)),t.smoosh()}},86297:function(e,t){"use strict";let r;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return n},setConfig:function(){return o}});let n=()=>r;function o(e){r=e}},28159:function(e,t){"use strict";function r(e){return"("===e[0]&&e.endsWith(")")}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{isGroupSegment:function(){return r},PAGE_SEGMENT_KEY:function(){return n},DEFAULT_SEGMENT_KEY:function(){return o}});let n="__PAGE__",o="__DEFAULT__"},7332:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});let n=r(50959),o=n.useLayoutEffect,a=n.useEffect;function i(e){let{headManager:t,reduceComponentsToState:r}=e;function i(){if(t&&t.mountedInstances){let o=n.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(r(o,e))}}return o(()=>{var r;return null==t||null==(r=t.mountedInstances)||r.add(e.children),()=>{var r;null==t||null==(r=t.mountedInstances)||r.delete(e.children)}}),o(()=>(t&&(t._pendingUpdate=i),()=>{t&&(t._pendingUpdate=i)})),a(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},88596:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{WEB_VITALS:function(){return r},execOnce:function(){return n},isAbsoluteUrl:function(){return a},getLocationOrigin:function(){return i},getURL:function(){return u},getDisplayName:function(){return l},isResSent:function(){return s},normalizeRepeatedSlashes:function(){return c},loadGetInitialProps:function(){return f},SP:function(){return d},ST:function(){return p},DecodeError:function(){return h},NormalizeError:function(){return m},PageNotFoundError:function(){return _},MissingStaticPage:function(){return g},MiddlewareNotFoundError:function(){return y},stringifyError:function(){return b}});let r=["CLS","FCP","FID","INP","LCP","TTFB"];function n(e){let t,r=!1;return function(){for(var n=arguments.length,o=Array(n),a=0;ao.test(e);function i(){let{protocol:e,hostname:t,port:r}=window.location;return e+"//"+t+(r?":"+r:"")}function u(){let{href:e}=window.location,t=i();return e.substring(t.length)}function l(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function s(e){return e.finished||e.headersSent}function c(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?"+t.slice(1).join("?"):"")}async function f(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await f(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&s(r))return n;if(!n)throw Error('"'+l(e)+'.getInitialProps()" should resolve to an object. But found "'+n+'" instead.');return n}let d="undefined"!=typeof performance,p=d&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class h extends Error{}class m extends Error{}class _ extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+e}}class g extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: "+e+" "+t}}class y extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function b(e){return JSON.stringify({message:e.message,stack:e.stack})}},96496:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"warnOnce",{enumerable:!0,get:function(){return r}});let r=e=>{}},26409:function(e){var t,r,n,o,a,i,u,l,s,c,f,d,p,h,m,_,g,y,b,v,P,E,S,j,w,O,R,T,M,x,I,C,A,L,N,D,k,F,B,U,H,W,q,G,z,V;(t={}).d=function(e,r){for(var n in r)t.o(r,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},void 0!==t&&(t.ab="//"),r={},t.r(r),t.d(r,{getCLS:function(){return S},getFCP:function(){return v},getFID:function(){return x},getINP:function(){return W},getLCP:function(){return G},getTTFB:function(){return V},onCLS:function(){return S},onFCP:function(){return v},onFID:function(){return x},onINP:function(){return W},onLCP:function(){return G},onTTFB:function(){return V}}),l=-1,s=function(e){addEventListener("pageshow",function(t){t.persisted&&(l=t.timeStamp,e(t))},!0)},c=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},f=function(){var e=c();return e&&e.activationStart||0},d=function(e,t){var r=c(),n="navigate";return l>=0?n="back-forward-cache":r&&(n=document.prerendering||f()>0?"prerender":r.type.replace(/_/g,"-")),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:n}},p=function(e,t,r){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var n=new PerformanceObserver(function(e){t(e.getEntries())});return n.observe(Object.assign({type:e,buffered:!0},r||{})),n}}catch(e){}},h=function(e,t){var r=function r(n){"pagehide"!==n.type&&"hidden"!==document.visibilityState||(e(n),t&&(removeEventListener("visibilitychange",r,!0),removeEventListener("pagehide",r,!0)))};addEventListener("visibilitychange",r,!0),addEventListener("pagehide",r,!0)},m=function(e,t,r,n){var o,a;return function(i){var u;t.value>=0&&(i||n)&&((a=t.value-(o||0))||void 0===o)&&(o=t.value,t.delta=a,t.rating=(u=t.value)>r[1]?"poor":u>r[0]?"needs-improvement":"good",e(t))}},_=-1,g=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},y=function(){h(function(e){_=e.timeStamp},!0)},b=function(){return _<0&&(_=g(),y(),s(function(){setTimeout(function(){_=g(),y()},0)})),{get firstHiddenTime(){return _}}},v=function(e,t){t=t||{};var r,n=[1800,3e3],o=b(),a=d("FCP"),i=function(e){e.forEach(function(e){"first-contentful-paint"===e.name&&(l&&l.disconnect(),e.startTime-1&&e(t)},a=d("CLS",0),i=0,u=[],l=function(e){e.forEach(function(e){if(!e.hadRecentInput){var t=u[0],r=u[u.length-1];i&&e.startTime-r.startTime<1e3&&e.startTime-t.startTime<5e3?(i+=e.value,u.push(e)):(i=e.value,u=[e]),i>a.value&&(a.value=i,a.entries=u,n())}})},c=p("layout-shift",l);c&&(n=m(o,a,r,t.reportAllChanges),h(function(){l(c.takeRecords()),n(!0)}),s(function(){i=0,E=-1,n=m(o,a=d("CLS",0),r,t.reportAllChanges)}))},j={passive:!0,capture:!0},w=new Date,O=function(e,t){n||(n=t,o=e,a=new Date,M(removeEventListener),R())},R=function(){if(o>=0&&o1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?(t=function(){O(o,e),n()},r=function(){n()},n=function(){removeEventListener("pointerup",t,j),removeEventListener("pointercancel",r,j)},addEventListener("pointerup",t,j),addEventListener("pointercancel",r,j)):O(o,e)}},M=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach(function(t){return e(t,T,j)})},x=function(e,t){t=t||{};var r,a=[100,300],u=b(),l=d("FID"),c=function(e){e.startTimet.latency){if(r)r.entries.push(e),r.latency=Math.max(r.latency,e.duration);else{var n={id:e.interactionId,latency:e.duration,entries:[e]};U[n.id]=n,B.push(n)}B.sort(function(e,t){return t.latency-e.latency}),B.splice(10).forEach(function(e){delete U[e.id]})}},W=function(e,t){t=t||{};var r=[200,500];D();var n,o=d("INP"),a=function(e){e.forEach(function(e){e.interactionId&&H(e),"first-input"!==e.entryType||B.some(function(t){return t.entries.some(function(t){return e.duration===t.duration&&e.startTime===t.startTime})})||H(e)});var t,r=(t=Math.min(B.length-1,Math.floor(F()/50)),B[t]);r&&r.latency!==o.value&&(o.value=r.latency,o.entries=r.entries,n())},i=p("event",a,{durationThreshold:t.durationThreshold||40});n=m(e,o,r,t.reportAllChanges),i&&(i.observe({type:"first-input",buffered:!0}),h(function(){a(i.takeRecords()),o.value<0&&F()>0&&(o.value=0,o.entries=[]),n(!0)}),s(function(){B=[],k=N(),n=m(e,o=d("INP"),r,t.reportAllChanges)}))},q={},G=function(e,t){t=t||{};var r,n=[2500,4e3],o=b(),a=d("LCP"),i=function(e){var t=e[e.length-1];if(t){var n=t.startTime-f();nperformance.now())return;n.entries=[a],o(!0),s(function(){(o=m(e,n=d("TTFB",0),r,t.reportAllChanges))(!0)})}})},e.exports=r},57799:function(e,t){"use strict";function r(e){return"/api"===e||!!(null==e?void 0:e.startsWith("/api/"))}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isAPIRoute",{enumerable:!0,get:function(){return r}})},3053:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return o},getProperError:function(){return a}});let n=r(99658);function o(e){return"object"==typeof e&&null!==e&&"name"in e&&"message"in e}function a(e){return o(e)?e:Error((0,n.isPlainObject)(e)?JSON.stringify(e):e+"")}},71805:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{INTERCEPTION_ROUTE_MARKERS:function(){return o},isInterceptionRouteAppPath:function(){return a},extractInterceptionRouteInformation:function(){return i}});let n=r(46934),o=["(..)(..)","(.)","(..)","(...)"];function a(e){return void 0!==e.split("/").find(e=>o.find(t=>e.startsWith(t)))}function i(e){let t,r,a;for(let n of e.split("/"))if(r=o.find(e=>n.startsWith(e))){[t,a]=e.split(r,2);break}if(!t||!r||!a)throw Error(`Invalid interception route: ${e}. Must be in the format //(..|...|..)(..)/`);switch(t=(0,n.normalizeAppPath)(t),r){case"(.)":a="/"===t?`/${a}`:t+"/"+a;break;case"(..)":if("/"===t)throw Error(`Invalid interception route: ${e}. Cannot use (..) marker at the root level, use (.) instead.`);a=t.split("/").slice(0,-1).concat(a).join("/");break;case"(...)":a="/"+a;break;case"(..)(..)":let i=t.split("/");if(i.length<=2)throw Error(`Invalid interception route: ${e}. Cannot use (..)(..) marker at the root level or one level up.`);a=i.slice(0,-2).concat(a).join("/");break;default:throw Error("Invariant: unexpected marker")}return{interceptingRoute:t,interceptedRoute:a}}},55223:function(){},81351:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}r.r(t),r.d(t,{_:function(){return n},_interop_require_default:function(){return n}})},35815:function(e,t,r){"use strict";function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}function o(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}return o.default=e,r&&r.set(e,o),o}r.r(t),r.d(t,{_:function(){return o},_interop_require_wildcard:function(){return o}})}},function(e){e.O(0,[774],function(){return e(e.s=26966)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/_app-55b09cade33a8579.js b/_next/static/chunks/pages/_app-55b09cade33a8579.js new file mode 100644 index 0000000..f412156 --- /dev/null +++ b/_next/static/chunks/pages/_app-55b09cade33a8579.js @@ -0,0 +1,42 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{80548:function(e,t,n){"use strict";n.d(t,{E4:function(){return eF},jG:function(){return R},ks:function(){return U},bf:function(){return $},CI:function(){return ez},fp:function(){return ep},xy:function(){return eL}});var r,o,i=n(25201),a=n(76729),s=n(1874),l=n(12309),c=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))*1540483477+((t>>>16)*59797<<16),t^=t>>>24,n=(65535&t)*1540483477+((t>>>16)*59797<<16)^(65535&n)*1540483477+((n>>>16)*59797<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n^=255&e.charCodeAt(r),n=(65535&n)*1540483477+((n>>>16)*59797<<16)}return n^=n>>>13,(((n=(65535&n)*1540483477+((n>>>16)*59797<<16))^n>>>15)>>>0).toString(36)},u=n(89130),d=n(50959),f=n.t(d,2);n(9075);var h=n(77151),p=n(9130),m=n(82349),g="%";function x(e){return e.join(g)}var v=function(){function e(t){(0,p.Z)(this,e),(0,i.Z)(this,"instanceId",void 0),(0,i.Z)(this,"cache",new Map),this.instanceId=t}return(0,m.Z)(e,[{key:"get",value:function(e){return this.opGet(x(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(x(e),t)}},{key:"opUpdate",value:function(e,t){var n=t(this.cache.get(e));null===n?this.cache.delete(e):this.cache.set(e,n)}}]),e}(),y="data-token-hash",b="data-css-hash",w="__cssinjs_instance__";function k(){var e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(b,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(t){t[w]=t[w]||e,t[w]===e&&document.head.insertBefore(t,n)});var r={};Array.from(document.querySelectorAll("style[".concat(b,"]"))).forEach(function(t){var n,o=t.getAttribute(b);r[o]?t[w]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):r[o]=!0})}return new v(e)}var _=d.createContext({hashPriority:"low",cache:k(),defaultCache:!0}),j=n(26407),E=n(18021);function O(e,t){if(e.length!==t.length)return!1;for(var n=0;n1&&void 0!==arguments[1]&&arguments[1],o={map:this.cache};return e.forEach(function(e){if(o){var t;o=null===(t=o)||void 0===t||null===(t=t.map)||void 0===t?void 0:t.get(e)}else o=void 0}),null!==(t=o)&&void 0!==t&&t.value&&r&&(o.value[1]=this.cacheCallTimes++),null===(n=o)||void 0===n?void 0:n.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,n){var r=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(e,t){var n=(0,a.Z)(e,2)[1];return r.internalGet(t)[1]0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),C+=1}return(0,m.Z)(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce(function(t,n){return n(e,t)},void 0)}}]),e}(),A=new S;function R(e){var t=Array.isArray(e)?e:[e];return A.has(t)||A.set(t,new T(t)),A.get(t)}var N=new WeakMap,I={};function M(e,t){for(var n=N,r=0;r3&&void 0!==arguments[3]?arguments[3]:{},a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(a)return e;var s=(0,l.Z)((0,l.Z)({},o),{},(r={},(0,i.Z)(r,y,t),(0,i.Z)(r,b,n),r)),c=Object.keys(s).map(function(e){var t=s[e];return t?"".concat(e,'="').concat(t,'"'):null}).filter(function(e){return e}).join(" ");return"")}var U=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},V=function(e,t,n){return Object.keys(e).length?".".concat(t).concat(null!=n&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(e).map(function(e){var t=(0,a.Z)(e,2),n=t[0],r=t[1];return"".concat(n,":").concat(r,";")}).join(""),"}"):""},q=function(e,t,n){var r={},o={};return Object.entries(e).forEach(function(e){var t=(0,a.Z)(e,2),i=t[0],s=t[1];if(null!=n&&null!==(l=n.preserve)&&void 0!==l&&l[i])o[i]=s;else if(("string"==typeof s||"number"==typeof s)&&!(null!=n&&null!==(c=n.ignore)&&void 0!==c&&c[i])){var l,c,u,d=U(i,null==n?void 0:n.prefix);r[d]="number"!=typeof s||null!=n&&null!==(u=n.unitless)&&void 0!==u&&u[i]?String(s):"".concat(s,"px"),o[i]="var(".concat(d,")")}}),[o,V(r,t,{scope:null==n?void 0:n.scope})]},X=n(5074),K=(0,l.Z)({},f).useInsertionEffect,Q=function(e,t,n){d.useMemo(e,n),(0,X.Z)(function(){return t(!0)},n)},Y=K?function(e,t,n){return K(function(){return e(),t()},n)}:Q,J=(0,l.Z)({},f).useInsertionEffect,ee=function(e){var t=[],n=!1;function r(e){n||t.push(e)}return d.useEffect(function(){return n=!1,function(){n=!0,t.length&&t.forEach(function(e){return e()})}},e),r},et=function(){return function(e){e()}},en=void 0!==J?ee:et,er=function(){return!1};function eo(e,t,n,r,o){var i=d.useContext(_).cache,l=x([e].concat((0,s.Z)(t))),c=en([l]);er();var u=function(e){i.opUpdate(l,function(t){var r=t||[void 0,void 0],o=(0,a.Z)(r,2),i=o[0],s=[void 0===i?0:i,o[1]||n()];return e?e(s):s})};d.useMemo(function(){u()},[l]);var f=i.opGet(l)[1];return Y(function(){null==o||o(f)},function(e){return u(function(t){var n=(0,a.Z)(t,2),r=n[0],i=n[1];return e&&0===r&&(null==o||o(f)),[r+1,i]}),function(){i.opUpdate(l,function(t){var n=t||[],o=(0,a.Z)(n,2),s=o[0],u=void 0===s?0:s,d=o[1];return 0==u-1?(c(function(){(e||!i.opGet(l))&&(null==r||r(d,!1))}),null):[u-1,d]})}},[l]),f}var ei={},ea="css",es=new Map;function el(e){es.set(e,(es.get(e)||0)+1)}function ec(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(y,'="').concat(e,'"]')).forEach(function(e){if(e[w]===t){var n;null===(n=e.parentNode)||void 0===n||n.removeChild(e)}})}var eu=0;function ed(e,t){es.set(e,(es.get(e)||0)-1);var n=Array.from(es.keys()),r=n.filter(function(e){return 0>=(es.get(e)||0)});n.length-r.length>eu&&r.forEach(function(e){ec(e,t),es.delete(e)})}var ef=function(e,t,n,r){var o=n.getDerivativeToken(e),i=(0,l.Z)((0,l.Z)({},o),t);return r&&(i=r(i)),i},eh="token";function ep(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(0,d.useContext)(_),o=r.cache.instanceId,i=r.container,f=n.salt,h=void 0===f?"":f,p=n.override,m=void 0===p?ei:p,g=n.formatToken,x=n.getComputedToken,v=n.cssVar,k=M(function(){return Object.assign.apply(Object,[{}].concat((0,s.Z)(t)))},t),j=Z(k),E=Z(m),O=v?Z(v):"";return eo(eh,[h,e.id,j,E,O],function(){var t,n=x?x(k,m,e):ef(k,m,e,g),r=(0,l.Z)({},n),o="";if(v){var i=q(n,v.key,{prefix:v.prefix,ignore:v.ignore,unitless:v.unitless,preserve:v.preserve}),s=(0,a.Z)(i,2);n=s[0],o=s[1]}var u=P(n,h);n._tokenKey=u,r._tokenKey=P(r,h);var d=null!==(t=null==v?void 0:v.key)&&void 0!==t?t:u;n._themeKey=d,el(d);var f="".concat(ea,"-").concat(c(u));return n._hashId=f,[n,f,r,o,(null==v?void 0:v.key)||""]},function(e){ed(e[0]._themeKey,o)},function(e){var t=(0,a.Z)(e,4),n=t[0],r=t[3];if(v&&r){var s=(0,u.hq)(r,c("css-variables-".concat(n._themeKey)),{mark:b,prepend:"queue",attachTo:i,priority:-999});s[w]=o,s.setAttribute(y,n._themeKey)}})}var em=function(e,t,n){var r=(0,a.Z)(e,5),o=r[2],i=r[3],s=r[4],l=(n||{}).plain;if(!i)return null;var c=o._tokenKey,u=-999,d=G(i,s,c,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)},l);return[u,c,d]},eg=n(97605),ex={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},ev=n(48871),ey=n(75542),eb="data-ant-cssinjs-cache-path",ew="_FILE_STYLE__",ek=!0;function e_(){if(!r&&(r={},(0,E.Z)())){var e,t=document.createElement("div");t.className=eb,t.style.position="fixed",t.style.visibility="hidden",t.style.top="-9999px",document.body.appendChild(t);var n=getComputedStyle(t).content||"";(n=n.replace(/^"/,"").replace(/"$/,"")).split(";").forEach(function(e){var t=e.split(":"),n=(0,a.Z)(t,2),o=n[0],i=n[1];r[o]=i});var o=document.querySelector("style[".concat(eb,"]"));o&&(ek=!1,null===(e=o.parentNode)||void 0===e||e.removeChild(o)),document.body.removeChild(t)}}function ej(e){return e_(),!!r[e]}function eE(e){var t=r[e],n=null;if(t&&(0,E.Z)()){if(ek)n=ew;else{var o=document.querySelector("style[".concat(b,'="').concat(r[e],'"]'));o?n=o.innerHTML:delete r[e]}}return[n,t]}var eO="_skip_check_",eS="_multi_value_";function eC(e){return(0,ev.q)((0,ey.MY)(e),ev.P).replace(/\{%%%\:[^;];}/g,";")}function eT(e){return"object"===(0,j.Z)(e)&&e&&(eO in e||eS in e)}function eA(e,t,n){if(!t)return e;var r=".".concat(t),o="low"===n?":where(".concat(r,")"):r;return e.split(",").map(function(e){var t,n=e.trim().split(/\s+/),r=n[0]||"",i=(null===(t=r.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[r="".concat(i).concat(o).concat(r.slice(i.length))].concat((0,s.Z)(n.slice(1))).join(" ")}).join(",")}var eR=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,i=r.injectHash,c=r.parentSelectors,u=n.hashId,d=n.layer,f=(n.path,n.hashPriority),h=n.transformers,p=void 0===h?[]:h;n.linters;var m="",g={};function x(t){var r=t.getName(u);if(!g[r]){var o=e(t.style,n,{root:!1,parentSelectors:c}),i=(0,a.Z)(o,1)[0];g[r]="@keyframes ".concat(t.getName(u)).concat(i)}}function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.forEach(function(e){Array.isArray(e)?v(e,t):e&&t.push(e)}),t}if(v(Array.isArray(t)?t:[t]).forEach(function(t){var r="string"!=typeof t||o?t:{};if("string"==typeof r)m+="".concat(r,"\n");else if(r._keyframe)x(r);else{var d=p.reduce(function(e,t){var n;return(null==t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e},r);Object.keys(d).forEach(function(t){var r=d[t];if("object"!==(0,j.Z)(r)||!r||"animationName"===t&&r._keyframe||eT(r)){function h(e,t){var n=e.replace(/[A-Z]/g,function(e){return"-".concat(e.toLowerCase())}),r=t;ex[e]||"number"!=typeof r||0===r||(r="".concat(r,"px")),"animationName"===e&&null!=t&&t._keyframe&&(x(t),r=t.getName(u)),m+="".concat(n,":").concat(r,";")}var p,v=null!==(p=null==r?void 0:r.value)&&void 0!==p?p:r;"object"===(0,j.Z)(r)&&null!=r&&r[eS]&&Array.isArray(v)?v.forEach(function(e){h(t,e)}):h(t,v)}else{var y=!1,b=t.trim(),w=!1;(o||i)&&u?b.startsWith("@")?y=!0:b=eA(t,u,f):o&&!u&&("&"===b||""===b)&&(b="",w=!0);var k=e(r,n,{root:w,injectHash:y,parentSelectors:[].concat((0,s.Z)(c),[b])}),_=(0,a.Z)(k,2),E=_[0],O=_[1];g=(0,l.Z)((0,l.Z)({},g),O),m+="".concat(b).concat(E)}})}}),o){if(d&&B()){var y=d.split(","),b=y[y.length-1].trim();m="@layer ".concat(b," {").concat(m,"}"),y.length>1&&(m="@layer ".concat(d,"{%%%:%}").concat(m))}}else m="{".concat(m,"}");return[m,g]};function eN(e,t){return c("".concat(e.join("%")).concat(t))}function eI(){return null}var eM="style";function eL(e,t){var n=e.token,r=e.path,o=e.hashId,l=e.layer,c=e.nonce,f=e.clientOnly,h=e.order,p=void 0===h?0:h,m=d.useContext(_),g=m.autoClear,x=(m.mock,m.defaultCache),v=m.hashPriority,k=m.container,j=m.ssrInline,E=m.transformers,O=m.linters,S=m.cache,C=n._tokenKey,T=[C].concat((0,s.Z)(r)),A=W,R=eo(eM,T,function(){var e=T.join("|");if(ej(e)){var n=eE(e),i=(0,a.Z)(n,2),s=i[0],c=i[1];if(s)return[s,C,c,{},f,p]}var u=eR(t(),{hashId:o,hashPriority:v,layer:l,path:r.join("-"),transformers:E,linters:O}),d=(0,a.Z)(u,2),h=d[0],m=d[1],g=eC(h),x=eN(T,g);return[g,C,x,m,f,p]},function(e,t){var n=(0,a.Z)(e,3)[2];(t||g)&&W&&(0,u.jL)(n,{mark:b})},function(e){var t=(0,a.Z)(e,4),n=t[0],r=(t[1],t[2]),o=t[3];if(A&&n!==ew){var i={mark:b,prepend:"queue",attachTo:k,priority:p},s="function"==typeof c?c():c;s&&(i.csp={nonce:s});var l=(0,u.hq)(n,r,i);l[w]=S.instanceId,l.setAttribute(y,C),Object.keys(o).forEach(function(e){(0,u.hq)(eC(o[e]),"_effect-".concat(e),i)})}}),N=(0,a.Z)(R,3),I=N[0],M=N[1],L=N[2];return function(e){var t,n;return t=j&&!A&&x?d.createElement("style",(0,eg.Z)({},(n={},(0,i.Z)(n,y,M),(0,i.Z)(n,b,L),n),{dangerouslySetInnerHTML:{__html:I}})):d.createElement(eI,null),d.createElement(d.Fragment,null,t,e)}}var eZ=function(e,t,n){var r=(0,a.Z)(e,6),o=r[0],i=r[1],s=r[2],l=r[3],c=r[4],u=r[5],d=(n||{}).plain;if(c)return null;var f=o,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return f=G(o,i,s,h,d),l&&Object.keys(l).forEach(function(e){if(!t[e]){t[e]=!0;var n=eC(l[e]);f+=G(n,i,"_effect-".concat(e),h,d)}}),[u,s,f]},eP="cssVar",eD=function(e,t,n){var r=(0,a.Z)(e,4),o=r[1],i=r[2],s=r[3],l=(n||{}).plain;if(!o)return null;var c=-999,u=G(o,s,i,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(c)},l);return[c,i,u]},ez=function(e,t){var n=e.key,r=e.prefix,o=e.unitless,i=e.ignore,l=e.token,c=e.scope,f=void 0===c?"":c,h=(0,d.useContext)(_),p=h.cache.instanceId,m=h.container,g=l._tokenKey,x=[].concat((0,s.Z)(e.path),[n,f,g]);return eo(eP,x,function(){var e=q(t(),n,{prefix:r,unitless:o,ignore:i,scope:f}),s=(0,a.Z)(e,2),l=s[0],c=s[1],u=eN(x,c);return[l,c,u,n]},function(e){var t=(0,a.Z)(e,3)[2];W&&(0,u.jL)(t,{mark:b})},function(e){var t=(0,a.Z)(e,3),r=t[1],o=t[2];if(r){var i=(0,u.hq)(r,o,{mark:b,prepend:"queue",attachTo:m,priority:-999});i[w]=p,i.setAttribute(y,n)}})};o={},(0,i.Z)(o,eM,eZ),(0,i.Z)(o,eh,em),(0,i.Z)(o,eP,eD);var eF=function(){function e(t,n){(0,p.Z)(this,e),(0,i.Z)(this,"name",void 0),(0,i.Z)(this,"style",void 0),(0,i.Z)(this,"_keyframe",!0),this.name=t,this.style=n}return(0,m.Z)(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}();function eH(e){return e.notSplit=!0,e}eH(["borderTop","borderBottom"]),eH(["borderTop"]),eH(["borderBottom"]),eH(["borderLeft","borderRight"]),eH(["borderLeft"]),eH(["borderRight"])},96299:function(e,t,n){"use strict";n.d(t,{T6:function(){return h},VD:function(){return p},WE:function(){return c},Yt:function(){return m},lC:function(){return i},py:function(){return l},rW:function(){return o},s:function(){return d},ve:function(){return s},vq:function(){return u}});var r=n(23881);function o(e,t,n){return{r:255*(0,r.sh)(e,255),g:255*(0,r.sh)(t,255),b:255*(0,r.sh)(n,255)}}function i(e,t,n){var o=Math.max(e=(0,r.sh)(e,255),t=(0,r.sh)(t,255),n=(0,r.sh)(n,255)),i=Math.min(e,t,n),a=0,s=0,l=(o+i)/2;if(o===i)s=0,a=0;else{var c=o-i;switch(s=l>.5?c/(2-o-i):c/(o+i),o){case e:a=(t-n)/c+(t1&&(n-=1),n<1/6)?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function s(e,t,n){if(e=(0,r.sh)(e,360),t=(0,r.sh)(t,100),n=(0,r.sh)(n,100),0===t)i=n,s=n,o=n;else{var o,i,s,l=n<.5?n*(1+t):n+t-n*t,c=2*n-l;o=a(c,l,e+1/3),i=a(c,l,e),s=a(c,l,e-1/3)}return{r:255*o,g:255*i,b:255*s}}function l(e,t,n){var o=Math.max(e=(0,r.sh)(e,255),t=(0,r.sh)(t,255),n=(0,r.sh)(n,255)),i=Math.min(e,t,n),a=0,s=o,l=o-i,c=0===o?0:l/o;if(o===i)a=0;else{switch(o){case e:a=(t-n)/l+(t>16,g:(65280&e)>>8,b:255&e}}},76367:function(e,t,n){"use strict";n.d(t,{R:function(){return r}});var r={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}},28556:function(e,t,n){"use strict";n.d(t,{uA:function(){return a}});var r=n(96299),o=n(76367),i=n(23881);function a(e){var t={r:0,g:0,b:0},n=1,o=null,a=null,s=null,l=!1,c=!1;return"string"==typeof e&&(e=h(e)),"object"==typeof e&&(p(e.r)&&p(e.g)&&p(e.b)?(t=(0,r.rW)(e.r,e.g,e.b),l=!0,c="%"===String(e.r).substr(-1)?"prgb":"rgb"):p(e.h)&&p(e.s)&&p(e.v)?(o=(0,i.JX)(e.s),a=(0,i.JX)(e.v),t=(0,r.WE)(e.h,o,a),l=!0,c="hsv"):p(e.h)&&p(e.s)&&p(e.l)&&(o=(0,i.JX)(e.s),s=(0,i.JX)(e.l),t=(0,r.ve)(e.h,o,s),l=!0,c="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=(0,i.Yq)(n),{ok:l,format:e.format||c,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var s="[-\\+]?\\d+%?",l="[-\\+]?\\d*\\.\\d+%?",c="(?:".concat(l,")|(?:").concat(s,")"),u="[\\s|\\(]+(".concat(c,")[,|\\s]+(").concat(c,")[,|\\s]+(").concat(c,")\\s*\\)?"),d="[\\s|\\(]+(".concat(c,")[,|\\s]+(").concat(c,")[,|\\s]+(").concat(c,")[,|\\s]+(").concat(c,")\\s*\\)?"),f={CSS_UNIT:new RegExp(c),rgb:RegExp("rgb"+u),rgba:RegExp("rgba"+d),hsl:RegExp("hsl"+u),hsla:RegExp("hsla"+d),hsv:RegExp("hsv"+u),hsva:RegExp("hsva"+d),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function h(e){if(0===(e=e.trim().toLowerCase()).length)return!1;var t=!1;if(o.R[e])e=o.R[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=f.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=f.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=f.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=f.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=f.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=f.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=f.hex8.exec(e))?{r:(0,r.VD)(n[1]),g:(0,r.VD)(n[2]),b:(0,r.VD)(n[3]),a:(0,r.T6)(n[4]),format:t?"name":"hex8"}:(n=f.hex6.exec(e))?{r:(0,r.VD)(n[1]),g:(0,r.VD)(n[2]),b:(0,r.VD)(n[3]),format:t?"name":"hex"}:(n=f.hex4.exec(e))?{r:(0,r.VD)(n[1]+n[1]),g:(0,r.VD)(n[2]+n[2]),b:(0,r.VD)(n[3]+n[3]),a:(0,r.T6)(n[4]+n[4]),format:t?"name":"hex8"}:!!(n=f.hex3.exec(e))&&{r:(0,r.VD)(n[1]+n[1]),g:(0,r.VD)(n[2]+n[2]),b:(0,r.VD)(n[3]+n[3]),format:t?"name":"hex"}}function p(e){return!!f.CSS_UNIT.exec(String(e))}},23881:function(e,t,n){"use strict";function r(e,t){i(e)&&(e="100%");var n=a(e);return(e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),1e-6>Math.abs(e-t))?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function o(e){return Math.min(1,Math.max(0,e))}function i(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)}function a(e){return"string"==typeof e&&-1!==e.indexOf("%")}function s(e){return(isNaN(e=parseFloat(e))||e<0||e>1)&&(e=1),e}function l(e){return e<=1?"".concat(100*Number(e),"%"):e}function c(e){return 1===e.length?"0"+e:String(e)}n.d(t,{FZ:function(){return c},JX:function(){return l},V2:function(){return o},Yq:function(){return s},sh:function(){return r}})},84875:function(e,t){var n;/*! + Copyright (c) 2018 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t=r))));t++);if(n)return i?ta(l,r,0):void(t[t.length]=l)}return!n&&l}function ta(e,t,n){return e=1===e.length?e[0]:[].concat.apply([],e),n||e.length>t?e.slice(n,n+t):e}function ua(e,t,n,r){return e=n?(e=e[(r=r&&t>n)?t:n])&&e[r?n:t]:e[t]}function N(e,t,n,r,o){let i=0;if(e.constructor===Array){if(o)-1!==(t=e.indexOf(t))?1=this.B&&(d||!u[p])){var i=L(f,r,h),a="";switch(this.G){case"full":if(2i;s--)if(s-i>=this.B){var l=L(f,r,h,o,i);M(this,u,a=p.substring(i,s),l,e,n)}break}case"reverse":if(1=this.B&&M(this,u,a,L(f,r,h,o,s),e,n);a=""}case"forward":if(1=this.B&&M(this,u,a,i,e,n);break}default:if(this.C&&(i=Math.min(i/this.C(t,p,h)|0,f-1)),M(this,u,p,i,e,n),d&&1=this.B&&!o[p]){o[p]=1;let t=this.l&&p>i;M(this,c,t?i:p,L(a+(r/2>a?0:1),r,h,s-1,l-1),e,n,t?p:i)}}}}}this.m||(this.register[e]=1)}}return this},t.search=function(e,t,n){let r,o,i;n||(!t&&C(e)?e=(n=e).query:C(t)&&(n=t));let a=[],s,l,c=0;if(n){e=n.query||e,t=n.limit,c=n.offset||0;var u=n.context;l=n.suggest}if(e&&1<(s=(e=this.encode(""+e)).length)){n=v();var d=[];for(let t=0,r=0,o;t=this.B&&!n[o]){if(!this.s&&!l&&!this.map[o])return a;d[r++]=o,n[o]=1}s=(e=d).length}if(!s)return a;for(t||(t=100),u=this.depth&&1t||n)&&(o=o.slice(n,n+t)),r&&(o=za.call(this,o)),{tag:e,result:o}}function za(e){let t=Array(e.length);for(let n=0,r;n2?n.slice(1-n.length).join("."):t.source=t.resource,t.git_suffix=/\.git$/.test(t.pathname),t.name=decodeURIComponent((t.pathname||t.href).replace(/(^\/)|(\/$)/g,"").replace(/\.git$/,"")),t.owner=decodeURIComponent(t.user),t.source){case"git.cloudforge.com":t.owner=t.user,t.organization=n[0],t.source="cloudforge.com";break;case"visualstudio.com":if("vs-ssh.visualstudio.com"===t.resource){4===(i=t.name.split("/")).length&&(t.organization=i[1],t.owner=i[2],t.name=i[3],t.full_name=i[2]+"/"+i[3]);break}2===(i=t.name.split("/")).length?(t.owner=i[1],t.name=i[1],t.full_name="_git/"+t.name):3===i.length?(t.name=i[2],"DefaultCollection"===i[0]?(t.owner=i[2],t.organization=i[0],t.full_name=t.organization+"/_git/"+t.name):(t.owner=i[0],t.full_name=t.owner+"/_git/"+t.name)):4===i.length&&(t.organization=i[0],t.owner=i[1],t.name=i[3],t.full_name=t.organization+"/"+t.owner+"/_git/"+t.name);break;case"dev.azure.com":case"azure.com":if("ssh.dev.azure.com"===t.resource){4===(i=t.name.split("/")).length&&(t.organization=i[1],t.owner=i[2],t.name=i[3]);break}5===(i=t.name.split("/")).length?(t.organization=i[0],t.owner=i[1],t.name=i[4],t.full_name="_git/"+t.name):3===i.length?(t.name=i[2],"DefaultCollection"===i[0]?(t.owner=i[2],t.organization=i[0],t.full_name=t.organization+"/_git/"+t.name):(t.owner=i[0],t.full_name=t.owner+"/_git/"+t.name)):4===i.length&&(t.organization=i[0],t.owner=i[1],t.name=i[3],t.full_name=t.organization+"/"+t.owner+"/_git/"+t.name),t.query&&t.query.path&&(t.filepath=t.query.path.replace(/^\/+/g,"")),t.query&&t.query.version&&(t.ref=t.query.version.replace(/^GB/,""));break;default:var a=(i=t.name.split("/")).length-1;if(i.length>=2){var s=i.indexOf("-",2),l=i.indexOf("blob",2),c=i.indexOf("tree",2),u=i.indexOf("commit",2),d=i.indexOf("src",2),f=i.indexOf("raw",2),h=i.indexOf("edit",2);a=s>0?s-1:l>0?l-1:c>0?c-1:u>0?u-1:d>0?d-1:f>0?f-1:h>0?h-1:a,t.owner=i.slice(0,a).join("/"),t.name=i[a],u&&(t.commit=i[a+2])}t.ref="",t.filepathtype="",t.filepath="";var p=i.length>a&&"-"===i[a+1]?a+1:a;i.length>p+2&&["raw","src","blob","tree","edit"].indexOf(i[p+1])>=0&&(t.filepathtype=i[p+1],t.ref=i[p+2],i.length>p+3&&(t.filepath=i.slice(p+3).join("/"))),t.organization=t.owner}!t.full_name&&(t.full_name=t.owner,t.name&&(t.full_name&&(t.full_name+="/"),t.full_name+=t.name)),t.owner.startsWith("scm/")&&(t.source="bitbucket-server",t.owner=t.owner.replace("scm/",""),t.organization=t.owner,t.full_name=t.owner+"/"+t.name);var m=/(projects|users)\/(.*?)\/repos\/(.*?)((\/.*$)|$)/.exec(t.pathname);return null!=m&&(t.source="bitbucket-server","users"===m[1]?t.owner="~"+m[2]:t.owner=m[2],t.organization=t.owner,t.name=m[3],(i=m[4].split("/")).length>1&&(["raw","browse"].indexOf(i[1])>=0?(t.filepathtype=i[1],i.length>2&&(t.filepath=i.slice(2).join("/"))):"commits"===i[1]&&i.length>2&&(t.commit=i[2])),t.full_name=t.owner+"/"+t.name,t.query.at?t.ref=t.query.at:t.ref=""),t}/*! + * buildToken + * Builds OAuth token prefix (helper function) + * + * @name buildToken + * @function + * @param {GitUrl} obj The parsed Git url object. + * @return {String} token prefix + */function i(e){return"bitbucket.org"===e.source?"x-token-auth:"+e.token+"@":e.token+"@"}function a(e){return"bitbucket-server"===e.source?"scm/"+e.full_name:""+e.full_name}o.stringify=function(e,t){t=t||(e.protocols&&e.protocols.length?e.protocols.join("+"):e.protocol);var n=e.port?":"+e.port:"",r=e.user||"git",o=e.git_suffix?".git":"";switch(t){case"ssh":if(n)return"ssh://"+r+"@"+e.resource+n+"/"+e.full_name+o;return r+"@"+e.resource+":"+e.full_name+o;case"git+ssh":case"ssh+git":case"ftp":case"ftps":return t+"://"+r+"@"+e.resource+n+"/"+e.full_name+o;case"http":case"https":return t+"://"+(e.token?i(e):e.user&&(e.protocols.includes("http")||e.protocols.includes("https"))?e.user+"@":"")+e.resource+n+"/"+a(e)+o;default:return e.href}},e.exports=o},15983:function(){!function(){"use strict";if("object"==typeof window){if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype){"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});return}var e=function(e){for(var t=e,n=o(t);n;)n=o(t=n.ownerDocument);return t}(window.document),t=[],n=null,r=null;a.prototype.THROTTLE_TIMEOUT=100,a.prototype.POLL_INTERVAL=null,a.prototype.USE_MUTATION_OBSERVER=!0,a._setupCrossOriginUpdater=function(){return n||(n=function(e,n){r=e&&n?m(e,n):h(),t.forEach(function(e){e._checkForIntersections()})}),n},a._resetCrossOriginUpdater=function(){n=null,r=null},a.prototype.observe=function(e){if(!this._observationTargets.some(function(t){return t.element==e})){if(!(e&&1==e.nodeType))throw Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:e,entry:null}),this._monitorIntersections(e.ownerDocument),this._checkForIntersections()}},a.prototype.unobserve=function(e){this._observationTargets=this._observationTargets.filter(function(t){return t.element!=e}),this._unmonitorIntersections(e.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},a.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},a.prototype.takeRecords=function(){var e=this._queuedEntries.slice();return this._queuedEntries=[],e},a.prototype._initThresholds=function(e){var t=e||[0];return Array.isArray(t)||(t=[t]),t.sort().filter(function(e,t,n){if("number"!=typeof e||isNaN(e)||e<0||e>1)throw Error("threshold must be a number between 0 and 1 inclusively");return e!==n[t-1]})},a.prototype._parseRootMargin=function(e){var t=(e||"0px").split(/\s+/).map(function(e){var t=/^(-?\d*\.?\d+)(px|%)$/.exec(e);if(!t)throw Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(t[1]),unit:t[2]}});return t[1]=t[1]||t[0],t[2]=t[2]||t[0],t[3]=t[3]||t[1],t},a.prototype._monitorIntersections=function(t){var n=t.defaultView;if(n&&-1==this._monitoringDocuments.indexOf(t)){var r=this._checkForIntersections,i=null,a=null;if(this.POLL_INTERVAL?i=n.setInterval(r,this.POLL_INTERVAL):(c(n,"resize",r,!0),c(t,"scroll",r,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in n&&(a=new n.MutationObserver(r)).observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(t),this._monitoringUnsubscribes.push(function(){var e=t.defaultView;e&&(i&&e.clearInterval(i),u(e,"resize",r,!0)),u(t,"scroll",r,!0),a&&a.disconnect()}),t!=(this.root&&(this.root.ownerDocument||this.root)||e)){var s=o(t);s&&this._monitorIntersections(s.ownerDocument)}}},a.prototype._unmonitorIntersections=function(t){var n=this._monitoringDocuments.indexOf(t);if(-1!=n){var r=this.root&&(this.root.ownerDocument||this.root)||e;if(!this._observationTargets.some(function(e){var n=e.element.ownerDocument;if(n==t)return!0;for(;n&&n!=r;){var i=o(n);if((n=i&&i.ownerDocument)==t)return!0}return!1})){var i=this._monitoringUnsubscribes[n];if(this._monitoringDocuments.splice(n,1),this._monitoringUnsubscribes.splice(n,1),i(),t!=r){var a=o(t);a&&this._unmonitorIntersections(a.ownerDocument)}}}},a.prototype._unmonitorAllIntersections=function(){var e=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var t=0;tt.indexOf(this)&&t.push(this)},a.prototype._unregisterInstance=function(){var e=t.indexOf(this);-1!=e&&t.splice(e,1)},window.IntersectionObserver=a,window.IntersectionObserverEntry=i}function o(e){try{return e.defaultView&&e.defaultView.frameElement||null}catch(e){return null}}function i(e){this.time=e.time,this.target=e.target,this.rootBounds=p(e.rootBounds),this.boundingClientRect=p(e.boundingClientRect),this.intersectionRect=p(e.intersectionRect||h()),this.isIntersecting=!!e.intersectionRect;var t=this.boundingClientRect,n=t.width*t.height,r=this.intersectionRect,o=r.width*r.height;n?this.intersectionRatio=Number((o/n).toFixed(4)):this.intersectionRatio=this.isIntersecting?1:0}function a(e,t){var n=t||{};if("function"!=typeof e)throw Error("callback must be a function");if(n.root&&1!=n.root.nodeType&&9!=n.root.nodeType)throw Error("root must be a Document or Element");this._checkForIntersections=l(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=e,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(n.rootMargin),this.thresholds=this._initThresholds(n.threshold),this.root=n.root||null,this.rootMargin=this._rootMarginValues.map(function(e){return e.value+e.unit}).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function s(){return window.performance&&performance.now&&performance.now()}function l(e,t){var n=null;return function(){n||(n=setTimeout(function(){e(),n=null},t))}}function c(e,t,n,r){"function"==typeof e.addEventListener?e.addEventListener(t,n,r||!1):"function"==typeof e.attachEvent&&e.attachEvent("on"+t,n)}function u(e,t,n,r){"function"==typeof e.removeEventListener?e.removeEventListener(t,n,r||!1):"function"==typeof e.detachEvent&&e.detachEvent("on"+t,n)}function d(e,t){var n=Math.max(e.top,t.top),r=Math.min(e.bottom,t.bottom),o=Math.max(e.left,t.left),i=Math.min(e.right,t.right),a=i-o,s=r-n;return a>=0&&s>=0&&{top:n,bottom:r,left:o,right:i,width:a,height:s}||null}function f(e){var t;try{t=e.getBoundingClientRect()}catch(e){}return t?(t.width&&t.height||(t={top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.right-t.left,height:t.bottom-t.top}),t):h()}function h(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function p(e){return!e||"x"in e?e:{top:e.top,y:e.top,bottom:e.bottom,left:e.left,x:e.left,right:e.right,width:e.width,height:e.height}}function m(e,t){var n=t.top-e.top,r=t.left-e.left;return{top:n,left:r,height:t.height,width:t.width,bottom:n+t.height,right:r+t.width}}function g(e,t){for(var n=t;n;){if(n==e)return!0;n=x(n)}return!1}function x(t){var n=t.parentNode;return 9==t.nodeType&&t!=e?o(t):(n&&n.assignedSlot&&(n=n.assignedSlot.parentNode),n&&11==n.nodeType&&n.host)?n.host:n}function v(e){return e&&9===e.nodeType}}()},53670:function(e){"use strict";var t=function(e,t,n,r,o,i,a,s){if(!e){var l;if(void 0===t)l=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,i,a,s],u=0;(l=Error(t.replace(/%s/g,function(){return c[u++]}))).name="Invariant Violation"}throw l.framesToPop=1,l}};e.exports=t},92895:function(e,t,n){"use strict";var r=n(6097);function o(e){if(Array.isArray(e))return -1!==e.indexOf("ssh")||-1!==e.indexOf("rsync");if("string"!=typeof e)return!1;var t=r(e);if(e=e.substring(e.indexOf("://")+3),o(t))return!0;var n=RegExp(".([a-zA-Z\\d]+):(\\d+)/");return!e.match(n)&&e.indexOf("@"){t(!0)},[]),e}var O=n(2428),S="https://nextra.vercel.app",C=()=>{let{locale:e=O.ZW,asPath:t,route:n}=(0,k.useRouter)();return(0,_.useMemo)(()=>{let r=O.hV.has(n)?n:t,{pathname:o}=new URL(r,S);return(e?o.replace(RegExp(`\\.${e}(\\/|$)`),"$1"):o).replace(/\.html$/,"").replace(/\/index(\/|$)/,"$1").replace(/\/$/,"")||"/"},[t,e,n])},T=n(59087),A=n(29688);!function(e){function t(e){}function n(e){throw Error()}function r(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)}e.assertEqual=e=>e,e.assertIs=t,e.assertNever=n,e.arrayToEnum=e=>{let t={};for(let n of e)t[n]=n;return t},e.getValidEnumValues=t=>{let n=e.objectKeys(t).filter(e=>"number"!=typeof t[t[e]]),r={};for(let e of n)r[e]=t[e];return e.objectValues(r)},e.objectValues=t=>e.objectKeys(t).map(function(e){return t[e]}),e.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},e.find=(e,t)=>{for(let n of e)if(t(n))return n},e.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e,e.joinValues=r,e.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t}(p||(p={})),function(e){e.mergeShapes=(e,t)=>({...e,...t})}(m||(m={}));let R=p.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),N=e=>{switch(typeof e){case"undefined":return R.undefined;case"string":return R.string;case"number":return isNaN(e)?R.nan:R.number;case"boolean":return R.boolean;case"function":return R.function;case"bigint":return R.bigint;case"symbol":return R.symbol;case"object":if(Array.isArray(e))return R.array;if(null===e)return R.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return R.promise;if("undefined"!=typeof Map&&e instanceof Map)return R.map;if("undefined"!=typeof Set&&e instanceof Set)return R.set;if("undefined"!=typeof Date&&e instanceof Date)return R.date;return R.object;default:return R.unknown}},I=p.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),M=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class L extends Error{constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){let t=e||function(e){return e.message},n={_errors:[]},r=e=>{for(let o of e.issues)if("invalid_union"===o.code)o.unionErrors.map(r);else if("invalid_return_type"===o.code)r(o.returnTypeError);else if("invalid_arguments"===o.code)r(o.argumentsError);else if(0===o.path.length)n._errors.push(t(o));else{let e=n,r=0;for(;re.message){let t={},n=[];for(let r of this.issues)r.path.length>0?(t[r.path[0]]=t[r.path[0]]||[],t[r.path[0]].push(e(r))):n.push(e(r));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}}L.create=e=>new L(e);let Z=(e,t)=>{let n;switch(e.code){case I.invalid_type:n=e.received===R.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case I.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,p.jsonStringifyReplacer)}`;break;case I.unrecognized_keys:n=`Unrecognized key(s) in object: ${p.joinValues(e.keys,", ")}`;break;case I.invalid_union:n="Invalid input";break;case I.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${p.joinValues(e.options)}`;break;case I.invalid_enum_value:n=`Invalid enum value. Expected ${p.joinValues(e.options)}, received '${e.received}'`;break;case I.invalid_arguments:n="Invalid function arguments";break;case I.invalid_return_type:n="Invalid function return type";break;case I.invalid_date:n="Invalid date";break;case I.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:p.assertNever(e.validation):n="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case I.too_small:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case I.too_big:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case I.custom:n="Invalid input";break;case I.invalid_intersection_types:n="Intersection results could not be merged";break;case I.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case I.not_finite:n="Number must be finite";break;default:n=t.defaultError,p.assertNever(e)}return{message:n}},P=Z;function D(e){P=e}function z(){return P}let F=e=>{let{data:t,path:n,errorMaps:r,issueData:o}=e,i=[...n,...o.path||[]],a={...o,path:i},s="";for(let e of r.filter(e=>!!e).slice().reverse())s=e(a,{data:t,defaultError:s}).message;return{...o,path:i,message:o.message||s}},H=[];function B(e,t){let n=F({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,z(),Z].filter(e=>!!e)});e.common.issues.push(n)}class W{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let n=[];for(let r of t){if("aborted"===r.status)return $;"dirty"===r.status&&e.dirty(),n.push(r.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,t){let n=[];for(let e of t)n.push({key:await e.key,value:await e.value});return W.mergeObjectSync(e,n)}static mergeObjectSync(e,t){let n={};for(let r of t){let{key:t,value:o}=r;if("aborted"===t.status||"aborted"===o.status)return $;"dirty"===t.status&&e.dirty(),"dirty"===o.status&&e.dirty(),"__proto__"!==t.value&&(void 0!==o.value||r.alwaysSet)&&(n[t.value]=o.value)}return{status:e.value,value:n}}}let $=Object.freeze({status:"aborted"}),G=e=>({status:"dirty",value:e}),U=e=>({status:"valid",value:e}),V=e=>"aborted"===e.status,q=e=>"dirty"===e.status,X=e=>"valid"===e.status,K=e=>"undefined"!=typeof Promise&&e instanceof Promise;!function(e){e.errToObj=e=>"string"==typeof e?{message:e}:e||{},e.toString=e=>"string"==typeof e?e:null==e?void 0:e.message}(g||(g={}));class Q{constructor(e,t,n,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=r}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}let Y=(e,t)=>{if(X(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let t=new L(e.common.issues);return this._error=t,this._error}}};function J(e){if(!e)return{};let{errorMap:t,invalid_type_error:n,required_error:r,description:o}=e;if(t&&(n||r))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:o}:{errorMap:(e,t)=>"invalid_type"!==e.code?{message:t.defaultError}:void 0===t.data?{message:null!=r?r:t.defaultError}:{message:null!=n?n:t.defaultError},description:o}}class ee{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return N(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:N(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new W,ctx:{common:e.parent.common,data:e.data,parsedType:N(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(K(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){return Promise.resolve(this._parse(e))}parse(e,t){let n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){var n;let r={common:{issues:[],async:null!==(n=null==t?void 0:t.async)&&void 0!==n&&n,contextualErrorMap:null==t?void 0:t.errorMap},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:N(e)},o=this._parseSync({data:e,path:r.path,parent:r});return Y(r,o)}async parseAsync(e,t){let n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){let n={common:{issues:[],contextualErrorMap:null==t?void 0:t.errorMap,async:!0},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:N(e)},r=this._parse({data:e,path:n.path,parent:n});return Y(n,await (K(r)?r:Promise.resolve(r)))}refine(e,t){let n=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement((t,r)=>{let o=e(t),i=()=>r.addIssue({code:I.custom,...n(t)});return"undefined"!=typeof Promise&&o instanceof Promise?o.then(e=>!!e||(i(),!1)):!!o||(i(),!1)})}refinement(e,t){return this._refinement((n,r)=>!!e(n)||(r.addIssue("function"==typeof t?t(n,r):t),!1))}_refinement(e){return new eW({schema:this,typeName:x.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return e$.create(this,this._def)}nullable(){return eG.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return ej.create(this,this._def)}promise(){return eB.create(this,this._def)}or(e){return eS.create([this,e],this._def)}and(e){return eR.create(this,e,this._def)}transform(e){return new eW({...J(this._def),schema:this,typeName:x.ZodEffects,effect:{type:"transform",transform:e}})}default(e){let t="function"==typeof e?e:()=>e;return new eU({...J(this._def),innerType:this,defaultValue:t,typeName:x.ZodDefault})}brand(){return new eK({typeName:x.ZodBranded,type:this,...J(this._def)})}catch(e){let t="function"==typeof e?e:()=>e;return new eV({...J(this._def),innerType:this,catchValue:t,typeName:x.ZodCatch})}describe(e){return new this.constructor({...this._def,description:e})}pipe(e){return eQ.create(this,e)}readonly(){return eY.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let et=/^c[^\s-]{8,}$/i,en=/^[a-z][a-z0-9]*$/,er=/^[0-9A-HJKMNP-TV-Z]{26}$/,eo=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,ei=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,ea="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",es=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,el=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,ec=e=>e.precision?e.offset?RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}Z$`):0===e.precision?e.offset?RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):e.offset?RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");function eu(e,t){return!!(("v4"===t||!t)&&es.test(e)||("v6"===t||!t)&&el.test(e))}class ed extends ee{_parse(e){let t;if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==R.string){let t=this._getOrReturnCtx(e);return B(t,{code:I.invalid_type,expected:R.string,received:t.parsedType}),$}let n=new W;for(let o of this._def.checks)if("min"===o.kind)e.data.lengtho.value&&(B(t=this._getOrReturnCtx(e,t),{code:I.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),n.dirty());else if("length"===o.kind){let r=e.data.length>o.value,i=e.data.lengthe.test(t),{validation:t,code:I.invalid_string,...g.errToObj(n)})}_addCheck(e){return new ed({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...g.errToObj(e)})}url(e){return this._addCheck({kind:"url",...g.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...g.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...g.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...g.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...g.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...g.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...g.errToObj(e)})}datetime(e){var t;return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,offset:null!==(t=null==e?void 0:e.offset)&&void 0!==t&&t,...g.errToObj(null==e?void 0:e.message)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...g.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:null==t?void 0:t.position,...g.errToObj(null==t?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...g.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...g.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...g.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...g.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...g.errToObj(t)})}nonempty(e){return this.min(1,g.errToObj(e))}trim(){return new ed({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new ed({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new ed({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get minLength(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.valuer?n:r;return parseInt(e.toFixed(o).replace(".",""))%parseInt(t.toFixed(o).replace(".",""))/Math.pow(10,o)}ed.create=e=>{var t;return new ed({checks:[],typeName:x.ZodString,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...J(e)})};class eh extends ee{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){let t;if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==R.number){let t=this._getOrReturnCtx(e);return B(t,{code:I.invalid_type,expected:R.number,received:t.parsedType}),$}let n=new W;for(let r of this._def.checks)"int"===r.kind?p.isInteger(e.data)||(B(t=this._getOrReturnCtx(e,t),{code:I.invalid_type,expected:"integer",received:"float",message:r.message}),n.dirty()):"min"===r.kind?(r.inclusive?e.datar.value:e.data>=r.value)&&(B(t=this._getOrReturnCtx(e,t),{code:I.too_big,maximum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty()):"multipleOf"===r.kind?0!==ef(e.data,r.value)&&(B(t=this._getOrReturnCtx(e,t),{code:I.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):"finite"===r.kind?Number.isFinite(e.data)||(B(t=this._getOrReturnCtx(e,t),{code:I.not_finite,message:r.message}),n.dirty()):p.assertNever(r);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,g.toString(t))}gt(e,t){return this.setLimit("min",e,!1,g.toString(t))}lte(e,t){return this.setLimit("max",e,!0,g.toString(t))}lt(e,t){return this.setLimit("max",e,!1,g.toString(t))}setLimit(e,t,n,r){return new eh({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:g.toString(r)}]})}_addCheck(e){return new eh({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:g.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:g.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:g.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:g.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:g.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:g.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:g.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:g.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:g.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value"int"===e.kind||"multipleOf"===e.kind&&p.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let n of this._def.checks){if("finite"===n.kind||"int"===n.kind||"multipleOf"===n.kind)return!0;"min"===n.kind?(null===t||n.value>t)&&(t=n.value):"max"===n.kind&&(null===e||n.valuenew eh({checks:[],typeName:x.ZodNumber,coerce:(null==e?void 0:e.coerce)||!1,...J(e)});class ep extends ee{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){let t;if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==R.bigint){let t=this._getOrReturnCtx(e);return B(t,{code:I.invalid_type,expected:R.bigint,received:t.parsedType}),$}let n=new W;for(let r of this._def.checks)"min"===r.kind?(r.inclusive?e.datar.value:e.data>=r.value)&&(B(t=this._getOrReturnCtx(e,t),{code:I.too_big,type:"bigint",maximum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty()):"multipleOf"===r.kind?e.data%r.value!==BigInt(0)&&(B(t=this._getOrReturnCtx(e,t),{code:I.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):p.assertNever(r);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,g.toString(t))}gt(e,t){return this.setLimit("min",e,!1,g.toString(t))}lte(e,t){return this.setLimit("max",e,!0,g.toString(t))}lt(e,t){return this.setLimit("max",e,!1,g.toString(t))}setLimit(e,t,n,r){return new ep({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:g.toString(r)}]})}_addCheck(e){return new ep({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:g.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:g.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:g.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:g.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:g.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value{var t;return new ep({checks:[],typeName:x.ZodBigInt,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...J(e)})};class em extends ee{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==R.boolean){let t=this._getOrReturnCtx(e);return B(t,{code:I.invalid_type,expected:R.boolean,received:t.parsedType}),$}return U(e.data)}}em.create=e=>new em({typeName:x.ZodBoolean,coerce:(null==e?void 0:e.coerce)||!1,...J(e)});class eg extends ee{_parse(e){let t;if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==R.date){let t=this._getOrReturnCtx(e);return B(t,{code:I.invalid_type,expected:R.date,received:t.parsedType}),$}if(isNaN(e.data.getTime()))return B(this._getOrReturnCtx(e),{code:I.invalid_date}),$;let n=new W;for(let r of this._def.checks)"min"===r.kind?e.data.getTime()r.value&&(B(t=this._getOrReturnCtx(e,t),{code:I.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:"date"}),n.dirty()):p.assertNever(r);return{status:n.value,value:new Date(e.data.getTime())}}_addCheck(e){return new eg({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:g.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:g.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.valuenew eg({checks:[],coerce:(null==e?void 0:e.coerce)||!1,typeName:x.ZodDate,...J(e)});class ex extends ee{_parse(e){if(this._getType(e)!==R.symbol){let t=this._getOrReturnCtx(e);return B(t,{code:I.invalid_type,expected:R.symbol,received:t.parsedType}),$}return U(e.data)}}ex.create=e=>new ex({typeName:x.ZodSymbol,...J(e)});class ev extends ee{_parse(e){if(this._getType(e)!==R.undefined){let t=this._getOrReturnCtx(e);return B(t,{code:I.invalid_type,expected:R.undefined,received:t.parsedType}),$}return U(e.data)}}ev.create=e=>new ev({typeName:x.ZodUndefined,...J(e)});class ey extends ee{_parse(e){if(this._getType(e)!==R.null){let t=this._getOrReturnCtx(e);return B(t,{code:I.invalid_type,expected:R.null,received:t.parsedType}),$}return U(e.data)}}ey.create=e=>new ey({typeName:x.ZodNull,...J(e)});class eb extends ee{constructor(){super(...arguments),this._any=!0}_parse(e){return U(e.data)}}eb.create=e=>new eb({typeName:x.ZodAny,...J(e)});class ew extends ee{constructor(){super(...arguments),this._unknown=!0}_parse(e){return U(e.data)}}ew.create=e=>new ew({typeName:x.ZodUnknown,...J(e)});class ek extends ee{_parse(e){let t=this._getOrReturnCtx(e);return B(t,{code:I.invalid_type,expected:R.never,received:t.parsedType}),$}}ek.create=e=>new ek({typeName:x.ZodNever,...J(e)});class e_ extends ee{_parse(e){if(this._getType(e)!==R.undefined){let t=this._getOrReturnCtx(e);return B(t,{code:I.invalid_type,expected:R.void,received:t.parsedType}),$}return U(e.data)}}e_.create=e=>new e_({typeName:x.ZodVoid,...J(e)});class ej extends ee{_parse(e){let{ctx:t,status:n}=this._processInputParams(e),r=this._def;if(t.parsedType!==R.array)return B(t,{code:I.invalid_type,expected:R.array,received:t.parsedType}),$;if(null!==r.exactLength){let e=t.data.length>r.exactLength.value,o=t.data.lengthr.maxLength.value&&(B(t,{code:I.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map((e,n)=>r.type._parseAsync(new Q(t,e,t.path,n)))).then(e=>W.mergeArray(n,e));let o=[...t.data].map((e,n)=>r.type._parseSync(new Q(t,e,t.path,n)));return W.mergeArray(n,o)}get element(){return this._def.type}min(e,t){return new ej({...this._def,minLength:{value:e,message:g.toString(t)}})}max(e,t){return new ej({...this._def,maxLength:{value:e,message:g.toString(t)}})}length(e,t){return new ej({...this._def,exactLength:{value:e,message:g.toString(t)}})}nonempty(e){return this.min(1,e)}}function eE(e){if(e instanceof eO){let t={};for(let n in e.shape){let r=e.shape[n];t[n]=e$.create(eE(r))}return new eO({...e._def,shape:()=>t})}return e instanceof ej?new ej({...e._def,type:eE(e.element)}):e instanceof e$?e$.create(eE(e.unwrap())):e instanceof eG?eG.create(eE(e.unwrap())):e instanceof eN?eN.create(e.items.map(e=>eE(e))):e}ej.create=(e,t)=>new ej({type:e,minLength:null,maxLength:null,exactLength:null,typeName:x.ZodArray,...J(t)});class eO extends ee{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let e=this._def.shape(),t=p.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==R.object){let t=this._getOrReturnCtx(e);return B(t,{code:I.invalid_type,expected:R.object,received:t.parsedType}),$}let{status:t,ctx:n}=this._processInputParams(e),{shape:r,keys:o}=this._getCached(),i=[];if(!(this._def.catchall instanceof ek&&"strip"===this._def.unknownKeys))for(let e in n.data)o.includes(e)||i.push(e);let a=[];for(let e of o){let t=r[e],o=n.data[e];a.push({key:{status:"valid",value:e},value:t._parse(new Q(n,o,n.path,e)),alwaysSet:e in n.data})}if(this._def.catchall instanceof ek){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of i)a.push({key:{status:"valid",value:e},value:{status:"valid",value:n.data[e]}});else if("strict"===e)i.length>0&&(B(n,{code:I.unrecognized_keys,keys:i}),t.dirty());else if("strip"===e);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let e=this._def.catchall;for(let t of i){let r=n.data[t];a.push({key:{status:"valid",value:t},value:e._parse(new Q(n,r,n.path,t)),alwaysSet:t in n.data})}}return n.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of a){let n=await t.key;e.push({key:n,value:await t.value,alwaysSet:t.alwaysSet})}return e}).then(e=>W.mergeObjectSync(t,e)):W.mergeObjectSync(t,a)}get shape(){return this._def.shape()}strict(e){return g.errToObj,new eO({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,n)=>{var r,o,i,a;let s=null!==(i=null===(o=(r=this._def).errorMap)||void 0===o?void 0:o.call(r,t,n).message)&&void 0!==i?i:n.defaultError;return"unrecognized_keys"===t.code?{message:null!==(a=g.errToObj(e).message)&&void 0!==a?a:s}:{message:s}}}:{}})}strip(){return new eO({...this._def,unknownKeys:"strip"})}passthrough(){return new eO({...this._def,unknownKeys:"passthrough"})}extend(e){return new eO({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new eO({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:x.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new eO({...this._def,catchall:e})}pick(e){let t={};return p.objectKeys(e).forEach(n=>{e[n]&&this.shape[n]&&(t[n]=this.shape[n])}),new eO({...this._def,shape:()=>t})}omit(e){let t={};return p.objectKeys(this.shape).forEach(n=>{e[n]||(t[n]=this.shape[n])}),new eO({...this._def,shape:()=>t})}deepPartial(){return eE(this)}partial(e){let t={};return p.objectKeys(this.shape).forEach(n=>{let r=this.shape[n];e&&!e[n]?t[n]=r:t[n]=r.optional()}),new eO({...this._def,shape:()=>t})}required(e){let t={};return p.objectKeys(this.shape).forEach(n=>{if(e&&!e[n])t[n]=this.shape[n];else{let e=this.shape[n];for(;e instanceof e$;)e=e._def.innerType;t[n]=e}}),new eO({...this._def,shape:()=>t})}keyof(){return ez(p.objectKeys(this.shape))}}eO.create=(e,t)=>new eO({shape:()=>e,unknownKeys:"strip",catchall:ek.create(),typeName:x.ZodObject,...J(t)}),eO.strictCreate=(e,t)=>new eO({shape:()=>e,unknownKeys:"strict",catchall:ek.create(),typeName:x.ZodObject,...J(t)}),eO.lazycreate=(e,t)=>new eO({shape:e,unknownKeys:"strip",catchall:ek.create(),typeName:x.ZodObject,...J(t)});class eS extends ee{_parse(e){let{ctx:t}=this._processInputParams(e),n=this._def.options;function r(e){for(let t of e)if("valid"===t.result.status)return t.result;for(let n of e)if("dirty"===n.result.status)return t.common.issues.push(...n.ctx.common.issues),n.result;let n=e.map(e=>new L(e.ctx.common.issues));return B(t,{code:I.invalid_union,unionErrors:n}),$}if(t.common.async)return Promise.all(n.map(async e=>{let n={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}})).then(r);{let e;let r=[];for(let o of n){let n={...t,common:{...t.common,issues:[]},parent:null},i=o._parseSync({data:t.data,path:t.path,parent:n});if("valid"===i.status)return i;"dirty"!==i.status||e||(e={result:i,ctx:n}),n.common.issues.length&&r.push(n.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let o=r.map(e=>new L(e));return B(t,{code:I.invalid_union,unionErrors:o}),$}}get options(){return this._def.options}}eS.create=(e,t)=>new eS({options:e,typeName:x.ZodUnion,...J(t)});let eC=e=>{if(e instanceof eP)return eC(e.schema);if(e instanceof eW)return eC(e.innerType());if(e instanceof eD)return[e.value];if(e instanceof eF)return e.options;if(e instanceof eH)return Object.keys(e.enum);if(e instanceof eU)return eC(e._def.innerType);if(e instanceof ev)return[void 0];else if(e instanceof ey)return[null];else return null};class eT extends ee{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==R.object)return B(t,{code:I.invalid_type,expected:R.object,received:t.parsedType}),$;let n=this.discriminator,r=t.data[n],o=this.optionsMap.get(r);return o?t.common.async?o._parseAsync({data:t.data,path:t.path,parent:t}):o._parseSync({data:t.data,path:t.path,parent:t}):(B(t,{code:I.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),$)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,n){let r=new Map;for(let n of t){let t=eC(n.shape[e]);if(!t)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let o of t){if(r.has(o))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(o)}`);r.set(o,n)}}return new eT({typeName:x.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:r,...J(n)})}}function eA(e,t){let n=N(e),r=N(t);if(e===t)return{valid:!0,data:e};if(n===R.object&&r===R.object){let n=p.objectKeys(t),r=p.objectKeys(e).filter(e=>-1!==n.indexOf(e)),o={...e,...t};for(let n of r){let r=eA(e[n],t[n]);if(!r.valid)return{valid:!1};o[n]=r.data}return{valid:!0,data:o}}if(n===R.array&&r===R.array){if(e.length!==t.length)return{valid:!1};let n=[];for(let r=0;r{if(V(e)||V(r))return $;let o=eA(e.value,r.value);return o.valid?((q(e)||q(r))&&t.dirty(),{status:t.value,value:o.data}):(B(n,{code:I.invalid_intersection_types}),$)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([e,t])=>r(e,t)):r(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}eR.create=(e,t,n)=>new eR({left:e,right:t,typeName:x.ZodIntersection,...J(n)});class eN extends ee{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==R.array)return B(n,{code:I.invalid_type,expected:R.array,received:n.parsedType}),$;if(n.data.lengththis._def.items.length&&(B(n,{code:I.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let r=[...n.data].map((e,t)=>{let r=this._def.items[t]||this._def.rest;return r?r._parse(new Q(n,e,n.path,t)):null}).filter(e=>!!e);return n.common.async?Promise.all(r).then(e=>W.mergeArray(t,e)):W.mergeArray(t,r)}get items(){return this._def.items}rest(e){return new eN({...this._def,rest:e})}}eN.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new eN({items:e,typeName:x.ZodTuple,rest:null,...J(t)})};class eI extends ee{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==R.object)return B(n,{code:I.invalid_type,expected:R.object,received:n.parsedType}),$;let r=[],o=this._def.keyType,i=this._def.valueType;for(let e in n.data)r.push({key:o._parse(new Q(n,e,n.path,e)),value:i._parse(new Q(n,n.data[e],n.path,e))});return n.common.async?W.mergeObjectAsync(t,r):W.mergeObjectSync(t,r)}get element(){return this._def.valueType}static create(e,t,n){return new eI(t instanceof ee?{keyType:e,valueType:t,typeName:x.ZodRecord,...J(n)}:{keyType:ed.create(),valueType:e,typeName:x.ZodRecord,...J(t)})}}class eM extends ee{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==R.map)return B(n,{code:I.invalid_type,expected:R.map,received:n.parsedType}),$;let r=this._def.keyType,o=this._def.valueType,i=[...n.data.entries()].map(([e,t],i)=>({key:r._parse(new Q(n,e,n.path,[i,"key"])),value:o._parse(new Q(n,t,n.path,[i,"value"]))}));if(n.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let n of i){let r=await n.key,o=await n.value;if("aborted"===r.status||"aborted"===o.status)return $;("dirty"===r.status||"dirty"===o.status)&&t.dirty(),e.set(r.value,o.value)}return{status:t.value,value:e}})}{let e=new Map;for(let n of i){let r=n.key,o=n.value;if("aborted"===r.status||"aborted"===o.status)return $;("dirty"===r.status||"dirty"===o.status)&&t.dirty(),e.set(r.value,o.value)}return{status:t.value,value:e}}}}eM.create=(e,t,n)=>new eM({valueType:t,keyType:e,typeName:x.ZodMap,...J(n)});class eL extends ee{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==R.set)return B(n,{code:I.invalid_type,expected:R.set,received:n.parsedType}),$;let r=this._def;null!==r.minSize&&n.data.sizer.maxSize.value&&(B(n,{code:I.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),t.dirty());let o=this._def.valueType;function i(e){let n=new Set;for(let r of e){if("aborted"===r.status)return $;"dirty"===r.status&&t.dirty(),n.add(r.value)}return{status:t.value,value:n}}let a=[...n.data.values()].map((e,t)=>o._parse(new Q(n,e,n.path,t)));return n.common.async?Promise.all(a).then(e=>i(e)):i(a)}min(e,t){return new eL({...this._def,minSize:{value:e,message:g.toString(t)}})}max(e,t){return new eL({...this._def,maxSize:{value:e,message:g.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}eL.create=(e,t)=>new eL({valueType:e,minSize:null,maxSize:null,typeName:x.ZodSet,...J(t)});class eZ extends ee{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==R.function)return B(t,{code:I.invalid_type,expected:R.function,received:t.parsedType}),$;function n(e,n){return F({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,z(),Z].filter(e=>!!e),issueData:{code:I.invalid_arguments,argumentsError:n}})}function r(e,n){return F({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,z(),Z].filter(e=>!!e),issueData:{code:I.invalid_return_type,returnTypeError:n}})}let o={errorMap:t.common.contextualErrorMap},i=t.data;if(this._def.returns instanceof eB){let e=this;return U(async function(...t){let a=new L([]),s=await e._def.args.parseAsync(t,o).catch(e=>{throw a.addIssue(n(t,e)),a}),l=await Reflect.apply(i,this,s);return await e._def.returns._def.type.parseAsync(l,o).catch(e=>{throw a.addIssue(r(l,e)),a})})}{let e=this;return U(function(...t){let a=e._def.args.safeParse(t,o);if(!a.success)throw new L([n(t,a.error)]);let s=Reflect.apply(i,this,a.data),l=e._def.returns.safeParse(s,o);if(!l.success)throw new L([r(s,l.error)]);return l.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new eZ({...this._def,args:eN.create(e).rest(ew.create())})}returns(e){return new eZ({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,n){return new eZ({args:e||eN.create([]).rest(ew.create()),returns:t||ew.create(),typeName:x.ZodFunction,...J(n)})}}class eP extends ee{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}eP.create=(e,t)=>new eP({getter:e,typeName:x.ZodLazy,...J(t)});class eD extends ee{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return B(t,{received:t.data,code:I.invalid_literal,expected:this._def.value}),$}return{status:"valid",value:e.data}}get value(){return this._def.value}}function ez(e,t){return new eF({values:e,typeName:x.ZodEnum,...J(t)})}eD.create=(e,t)=>new eD({value:e,typeName:x.ZodLiteral,...J(t)});class eF extends ee{_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),n=this._def.values;return B(t,{expected:p.joinValues(n),received:t.parsedType,code:I.invalid_type}),$}if(-1===this._def.values.indexOf(e.data)){let t=this._getOrReturnCtx(e),n=this._def.values;return B(t,{received:t.data,code:I.invalid_enum_value,options:n}),$}return U(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e){return eF.create(e)}exclude(e){return eF.create(this.options.filter(t=>!e.includes(t)))}}eF.create=ez;class eH extends ee{_parse(e){let t=p.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==R.string&&n.parsedType!==R.number){let e=p.objectValues(t);return B(n,{expected:p.joinValues(e),received:n.parsedType,code:I.invalid_type}),$}if(-1===t.indexOf(e.data)){let e=p.objectValues(t);return B(n,{received:n.data,code:I.invalid_enum_value,options:e}),$}return U(e.data)}get enum(){return this._def.values}}eH.create=(e,t)=>new eH({values:e,typeName:x.ZodNativeEnum,...J(t)});class eB extends ee{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);return t.parsedType!==R.promise&&!1===t.common.async?(B(t,{code:I.invalid_type,expected:R.promise,received:t.parsedType}),$):U((t.parsedType===R.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}eB.create=(e,t)=>new eB({type:e,typeName:x.ZodPromise,...J(t)});class eW extends ee{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===x.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:n}=this._processInputParams(e),r=this._def.effect||null,o={addIssue:e=>{B(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(o.addIssue=o.addIssue.bind(o),"preprocess"===r.type){let e=r.transform(n.data,o);return n.common.issues.length?{status:"dirty",value:n.data}:n.common.async?Promise.resolve(e).then(e=>this._def.schema._parseAsync({data:e,path:n.path,parent:n})):this._def.schema._parseSync({data:e,path:n.path,parent:n})}if("refinement"===r.type){let e=e=>{let t=r.refinement(e,o);if(n.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1!==n.common.async)return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(n=>"aborted"===n.status?$:("dirty"===n.status&&t.dirty(),e(n.value).then(()=>({status:t.value,value:n.value}))));{let r=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===r.status?$:("dirty"===r.status&&t.dirty(),e(r.value),{status:t.value,value:r.value})}}if("transform"===r.type){if(!1!==n.common.async)return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(e=>X(e)?Promise.resolve(r.transform(e.value,o)).then(e=>({status:t.value,value:e})):e);{let e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!X(e))return e;let i=r.transform(e.value,o);if(i instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:i}}}p.assertNever(r)}}eW.create=(e,t,n)=>new eW({schema:e,typeName:x.ZodEffects,effect:t,...J(n)}),eW.createWithPreprocess=(e,t,n)=>new eW({schema:t,effect:{type:"preprocess",transform:e},typeName:x.ZodEffects,...J(n)});class e$ extends ee{_parse(e){return this._getType(e)===R.undefined?U(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}e$.create=(e,t)=>new e$({innerType:e,typeName:x.ZodOptional,...J(t)});class eG extends ee{_parse(e){return this._getType(e)===R.null?U(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}eG.create=(e,t)=>new eG({innerType:e,typeName:x.ZodNullable,...J(t)});class eU extends ee{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return t.parsedType===R.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}eU.create=(e,t)=>new eU({innerType:e,typeName:x.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...J(t)});class eV extends ee{_parse(e){let{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},r=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return K(r)?r.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new L(n.common.issues)},input:n.data})})):{status:"valid",value:"valid"===r.status?r.value:this._def.catchValue({get error(){return new L(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}eV.create=(e,t)=>new eV({innerType:e,typeName:x.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...J(t)});class eq extends ee{_parse(e){if(this._getType(e)!==R.nan){let t=this._getOrReturnCtx(e);return B(t,{code:I.invalid_type,expected:R.nan,received:t.parsedType}),$}return{status:"valid",value:e.data}}}eq.create=e=>new eq({typeName:x.ZodNaN,...J(e)});let eX=Symbol("zod_brand");class eK extends ee{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}}class eQ extends ee{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?$:"dirty"===e.status?(t.dirty(),G(e.value)):this._def.out._parseAsync({data:e.value,path:n.path,parent:n})})();{let e=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?$:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:n.path,parent:n})}}static create(e,t){return new eQ({in:e,out:t,typeName:x.ZodPipeline})}}class eY extends ee{_parse(e){let t=this._def.innerType._parse(e);return X(t)&&(t.value=Object.freeze(t.value)),t}}eY.create=(e,t)=>new eY({innerType:e,typeName:x.ZodReadonly,...J(t)});let eJ=(e,t={},n)=>e?eb.create().superRefine((r,o)=>{var i,a;if(!e(r)){let e="function"==typeof t?t(r):"string"==typeof t?{message:t}:t,s=null===(a=null!==(i=e.fatal)&&void 0!==i?i:n)||void 0===a||a,l="string"==typeof e?{message:e}:e;o.addIssue({code:"custom",...l,fatal:s})}}):eb.create(),e0={object:eO.lazycreate};!function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"}(x||(x={}));let e1=(e,t={message:`Input not instance of ${e.name}`})=>eJ(t=>t instanceof e,t),e2=ed.create,e5=eh.create,e4=eq.create,e6=ep.create,e3=em.create,e9=eg.create,e8=ex.create,e7=ev.create,te=ey.create,tt=eb.create,tn=ew.create,tr=ek.create,to=e_.create,ti=ej.create,ta=eO.create,ts=eO.strictCreate,tl=eS.create,tc=eT.create,tu=eR.create,td=eN.create,tf=eI.create,th=eM.create,tp=eL.create,tm=eZ.create,tg=eP.create,tx=eD.create,tv=eF.create,ty=eH.create,tb=eB.create,tw=eW.create,tk=e$.create,t_=eG.create,tj=eW.createWithPreprocess,tE=eQ.create,tO=()=>e5().optional(),tS=()=>e3().optional(),tC={string:e=>ed.create({...e,coerce:!0}),number:e=>eh.create({...e,coerce:!0}),boolean:e=>em.create({...e,coerce:!0}),bigint:e=>ep.create({...e,coerce:!0}),date:e=>eg.create({...e,coerce:!0})},tT=$;var tA=Object.freeze({__proto__:null,defaultErrorMap:Z,setErrorMap:D,getErrorMap:z,makeIssue:F,EMPTY_PATH:H,addIssueToContext:B,ParseStatus:W,INVALID:$,DIRTY:G,OK:U,isAborted:V,isDirty:q,isValid:X,isAsync:K,get util(){return p},get objectUtil(){return m},ZodParsedType:R,getParsedType:N,ZodType:ee,ZodString:ed,ZodNumber:eh,ZodBigInt:ep,ZodBoolean:em,ZodDate:eg,ZodSymbol:ex,ZodUndefined:ev,ZodNull:ey,ZodAny:eb,ZodUnknown:ew,ZodNever:ek,ZodVoid:e_,ZodArray:ej,ZodObject:eO,ZodUnion:eS,ZodDiscriminatedUnion:eT,ZodIntersection:eR,ZodTuple:eN,ZodRecord:eI,ZodMap:eM,ZodSet:eL,ZodFunction:eZ,ZodLazy:eP,ZodLiteral:eD,ZodEnum:eF,ZodNativeEnum:eH,ZodPromise:eB,ZodEffects:eW,ZodTransformer:eW,ZodOptional:e$,ZodNullable:eG,ZodDefault:eU,ZodCatch:eV,ZodNaN:eq,BRAND:eX,ZodBranded:eK,ZodPipeline:eQ,ZodReadonly:eY,custom:eJ,Schema:ee,ZodSchema:ee,late:e0,get ZodFirstPartyTypeKind(){return x},coerce:tC,any:tt,array:ti,bigint:e6,boolean:e3,date:e9,discriminatedUnion:tc,effect:tw,enum:tv,function:tm,instanceof:e1,intersection:tu,lazy:tg,literal:tx,map:th,nan:e4,nativeEnum:ty,never:tr,null:te,nullable:t_,number:e5,object:ta,oboolean:tS,onumber:tO,optional:tk,ostring:()=>e2().optional(),pipeline:tE,preprocess:tj,promise:tb,record:tf,set:tp,strictObject:ts,string:e2,symbol:e8,transformer:tw,tuple:td,undefined:e7,union:tl,unknown:tn,void:to,NEVER:tT,ZodIssueCode:I,quotelessJson:M,ZodError:L}),tR=n(30175),tN=n.n(tR),tI={i8:"14.1.1"};n(15983);let tM=["light","dark"],tL="(prefers-color-scheme: dark)",tZ="undefined"==typeof window,tP=(0,_.createContext)(void 0),tD={setTheme:e=>{},themes:[]},tz=()=>{var e;return null!==(e=(0,_.useContext)(tP))&&void 0!==e?e:tD},tF=e=>(0,_.useContext)(tP)?_.createElement(_.Fragment,null,e.children):_.createElement(tB,e),tH=["light","dark"],tB=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:n=!0,enableColorScheme:r=!0,storageKey:o="theme",themes:i=tH,defaultTheme:a=n?"system":"light",attribute:s="data-theme",value:l,children:c,nonce:u})=>{let[d,f]=(0,_.useState)(()=>t$(o,a)),[h,p]=(0,_.useState)(()=>t$(o)),m=l?Object.values(l):i,g=(0,_.useCallback)(e=>{let o=e;if(!o)return;"system"===e&&n&&(o=tU());let i=l?l[o]:o,c=t?tG():null,u=document.documentElement;if("class"===s?(u.classList.remove(...m),i&&u.classList.add(i)):i?u.setAttribute(s,i):u.removeAttribute(s),r){let e=tM.includes(a)?a:null,t=tM.includes(o)?o:e;u.style.colorScheme=t}null==c||c()},[]),x=(0,_.useCallback)(e=>{f(e);try{localStorage.setItem(o,e)}catch(e){}},[e]),v=(0,_.useCallback)(t=>{p(tU(t)),"system"===d&&n&&!e&&g("system")},[d,e]);(0,_.useEffect)(()=>{let e=window.matchMedia(tL);return e.addListener(v),v(e),()=>e.removeListener(v)},[v]),(0,_.useEffect)(()=>{let e=e=>{e.key===o&&x(e.newValue||a)};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[x]),(0,_.useEffect)(()=>{g(null!=e?e:d)},[e,d]);let y=(0,_.useMemo)(()=>({theme:d,setTheme:x,forcedTheme:e,resolvedTheme:"system"===d?h:d,themes:n?[...i,"system"]:i,systemTheme:n?h:void 0}),[d,x,e,h,n,i]);return _.createElement(tP.Provider,{value:y},_.createElement(tW,{forcedTheme:e,disableTransitionOnChange:t,enableSystem:n,enableColorScheme:r,storageKey:o,themes:i,defaultTheme:a,attribute:s,value:l,children:c,attrs:m,nonce:u}),c)},tW=(0,_.memo)(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:o,defaultTheme:i,value:a,attrs:s,nonce:l})=>{let c="system"===i,u="class"===n?`var d=document.documentElement,c=d.classList;c.remove(${s.map(e=>`'${e}'`).join(",")});`:`var d=document.documentElement,n='${n}',s='setAttribute';`,d=o?tM.includes(i)&&i?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${i}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",f=(e,t=!1,r=!0)=>{let i=a?a[e]:e,s=t?e+"|| ''":`'${i}'`,l="";return o&&r&&!t&&tM.includes(e)&&(l+=`d.style.colorScheme = '${e}';`),"class"===n?l+=t||i?`c.add(${s})`:"null":i&&(l+=`d[s](n,${s})`),l},h=e?`!function(){${u}${f(e)}}()`:r?`!function(){try{${u}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${c})){var t='${tL}',m=window.matchMedia(t);if(m.media!==t||m.matches){${f("dark")}}else{${f("light")}}}else if(e){${a?`var x=${JSON.stringify(a)};`:""}${f(a?"x[e]":"e",!0)}}${c?"":"else{"+f(i,!1,!1)+"}"}${d}}catch(e){}}()`:`!function(){try{${u}var e=localStorage.getItem('${t}');if(e){${a?`var x=${JSON.stringify(a)};`:""}${f(a?"x[e]":"e",!0)}}else{${f(i,!1,!1)};}${d}}catch(t){}}();`;return _.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:h}})},()=>!0),t$=(e,t)=>{let n;if(!tZ){try{n=localStorage.getItem(e)||void 0}catch(e){}return n||t}},tG=()=>{let e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(e)},1)}},tU=e=>(e||(e=window.matchMedia(tL)),e.matches?"dark":"light");var tV={breadcrumb:!0,collapsed:!1,footer:!0,layout:"default",navbar:!0,pagination:!0,sidebar:!0,timestamp:!0,toc:!0,typesetting:"default"},tq=tA.strictObject({breadcrumb:tA.boolean(),collapsed:tA.boolean(),footer:tA.boolean(),layout:tA.enum(["default","full","raw"]),navbar:tA.boolean(),pagination:tA.boolean(),sidebar:tA.boolean(),timestamp:tA.boolean(),toc:tA.boolean(),typesetting:tA.enum(["default","article"])}),tX=tA.enum(["normal","hidden","children"]),tK=tA.string(),tQ=tA.strictObject({href:tA.string(),newWindow:tA.boolean(),title:tK}),tY=tA.strictObject({display:tX.optional(),items:tA.record(tQ.partial({href:!0,newWindow:!0})),title:tK,type:tA.literal("menu")}),tJ=tA.strictObject({title:tK.optional(),type:tA.literal("separator")}),t0=tQ.extend({display:tX,theme:tq,title:tK,type:tA.enum(["page","doc"])}).deepPartial();function t1(e={},t){"string"==typeof e&&(e={title:e});let n=Object.assign({},t.theme,e.theme);return Object.assign({},t,e,{theme:n})}function t2(e){for(let t of e){if(t.route)return t.route;if(t.children){let e=t2(t.children);if(e)return e}}}function t5({list:e,locale:t,defaultLocale:n,route:r,docsRoot:o="",underCurrentDocsRoot:i=!1,pageThemeContext:a=tV}){let s,l;for(let n of e)if("Meta"===n.kind){if(n.locale===t){s=n.data;break}s||(s=n.data)}let c=s||{},u=Object.keys(c);for(let e of u)"string"==typeof c[e]&&(c[e]={title:c[e]});let d=[],f=[],h=[],p=[],m=[],g=0,x=a,v=[],y=-1,b=c["*"]||{};delete b.title,delete b.href;let w=e.filter(e=>"Meta"!==e.kind&&!e.name.startsWith("_")&&(!("locale"in e)||!e.locale||[t,n].includes(e.locale))).sort((e,t)=>{let n=u.indexOf(e.name),r=u.indexOf(t.name);return -1===n&&-1===r?e.name{let t;let n=[],r=u.indexOf(e.name);if(-1!==r){for(let e=y+1;e({...s,type:k,...S&&{title:S},...y&&{display:y},...E&&{children:[]}}),T=C(),A=C(),R=C();if(A.isUnderCurrentDocsTree=j,"separator"===k&&(T.isUnderCurrentDocsTree=j),s.route===r)switch(v=[T],l=k,x={...x,..._},k){case"page":case"menu":g=m.length;break;case"doc":g=p.length}if(!("hidden"===y&&"Folder"!==T.kind||O.hV.has(s.route))){if(E){if(void 0!==E.activeIndex&&void 0!==E.activeType){switch(x=E.activeThemeContext,l=E.activeType,v=[T,...E.activePath],l){case"page":case"menu":g=m.length+E.activeIndex;break;case"doc":g=p.length+E.activeIndex}s.withIndexPage&&"doc"===k&&g++}switch(k){case"page":case"menu":R.children.push(...E.directories),h.push(...E.docsDirectories),E.flatDirectories.length?(R.firstChildRoute=t2(E.flatDirectories),m.push(R)):R.withIndexPage&&m.push(R);break;case"doc":Array.isArray(A.children)&&A.children.push(...E.docsDirectories),T.withIndexPage&&"children"!==y&&p.push(A)}f.push(...E.flatDirectories),p.push(...E.flatDocsDirectories),Array.isArray(T.children)&&T.children.push(...E.directories)}else switch(f.push(T),k){case"page":case"menu":m.push(R);break;case"doc":p.push(A)}switch("doc"===k&&"children"===y?A.children&&(d.push(...A.children),h.push(...A.children)):d.push(T),k){case"page":case"menu":h.push(R);break;case"doc":"children"!==y&&h.push(A);break;case"separator":h.push(T)}}}return{activeType:l,activeIndex:g,activeThemeContext:x,activePath:v,directories:d,flatDirectories:f,docsDirectories:h,flatDocsDirectories:p,topLevelNavbarItems:m}}tA.string().or(tY).or(tJ).or(t0);var t4=n(10227),t6=n.n(t4);function t3(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function t9(e){var t=t3(e).Element;return e instanceof t||e instanceof Element}function t8(e){var t=t3(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function t7(e){if("undefined"==typeof ShadowRoot)return!1;var t=t3(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var ne=Math.max,nt=Math.min,nn=Math.round;function nr(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function no(){return!/^((?!chrome|android).)*safari/i.test(nr())}function ni(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&t8(e)&&(o=e.offsetWidth>0&&nn(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&nn(r.height)/e.offsetHeight||1);var a=(t9(e)?t3(e):window).visualViewport,s=!no()&&n,l=(r.left+(s&&a?a.offsetLeft:0))/o,c=(r.top+(s&&a?a.offsetTop:0))/i,u=r.width/o,d=r.height/i;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l,x:l,y:c}}function na(e){var t=t3(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function ns(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function nl(e){return e!==t3(e)&&t8(e)?ns(e):na(e)}function nc(e){return e?(e.nodeName||"").toLowerCase():null}function nu(e){return((t9(e)?e.ownerDocument:e.document)||window.document).documentElement}function nd(e){return ni(nu(e)).left+na(e).scrollLeft}function nf(e){return t3(e).getComputedStyle(e)}function nh(e){var t=nf(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function np(e){var t=e.getBoundingClientRect(),n=nn(t.width)/e.offsetWidth||1,r=nn(t.height)/e.offsetHeight||1;return 1!==n||1!==r}function nm(e,t,n){void 0===n&&(n=!1);var r=t8(t),o=t8(t)&&np(t),i=nu(t),a=ni(e,o,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&(("body"!==nc(t)||nh(i))&&(s=nl(t)),t8(t)?(l=ni(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=nd(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function ng(e){var t=ni(e),n=e.offsetWidth,r=e.offsetHeight;return 1>=Math.abs(t.width-n)&&(n=t.width),1>=Math.abs(t.height-r)&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function nx(e){return"html"===nc(e)?e:e.assignedSlot||e.parentNode||(t7(e)?e.host:null)||nu(e)}function nv(e){return["html","body","#document"].indexOf(nc(e))>=0?e.ownerDocument.body:t8(e)&&nh(e)?e:nv(nx(e))}function ny(e,t){void 0===t&&(t=[]);var n,r=nv(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=t3(r),a=o?[i].concat(i.visualViewport||[],nh(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(ny(nx(a)))}function nb(e){return["table","td","th"].indexOf(nc(e))>=0}function nw(e){return t8(e)&&"fixed"!==nf(e).position?e.offsetParent:null}function nk(e){var t=/firefox/i.test(nr());if(/Trident/i.test(nr())&&t8(e)&&"fixed"===nf(e).position)return null;var n=nx(e);for(t7(n)&&(n=n.host);t8(n)&&0>["html","body"].indexOf(nc(n));){var r=nf(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}function n_(e){for(var t=t3(e),n=nw(e);n&&nb(n)&&"static"===nf(n).position;)n=nw(n);return n&&("html"===nc(n)||"body"===nc(n)&&"static"===nf(n).position)?t:n||nk(e)||t}var nj="top",nE="bottom",nO="right",nS="left",nC="auto",nT=[nj,nE,nO,nS],nA="start",nR="end",nN="clippingParents",nI="viewport",nM="popper",nL="reference",nZ=nT.reduce(function(e,t){return e.concat([t+"-"+nA,t+"-"+nR])},[]),nP=[].concat(nT,[nC]).reduce(function(e,t){return e.concat([t,t+"-"+nA,t+"-"+nR])},[]),nD=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function nz(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}}),r.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||o(e)}),r}function nF(e){var t=nz(e);return nD.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}function nH(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function nB(e){var t=e.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{});return Object.keys(t).map(function(e){return t[e]})}var nW={placement:"bottom",modifiers:[],strategy:"absolute"};function n$(){for(var e=arguments.length,t=Array(e),n=0;n=0?"x":"y"}function nX(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?nU(o):null,a=o?nV(o):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(i){case nj:t={x:s,y:n.y-r.height};break;case nE:t={x:s,y:n.y+n.height};break;case nO:t={x:n.x+n.width,y:l};break;case nS:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=i?nq(i):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case nA:t[c]=t[c]-(n[u]/2-r[u]/2);break;case nR:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}var nK={top:"auto",right:"auto",bottom:"auto",left:"auto"};function nQ(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:nn(n*o)/o||0,y:nn(r*o)/o||0}}function nY(e){var t,n,r=e.popper,o=e.popperRect,i=e.placement,a=e.variation,s=e.offsets,l=e.position,c=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,f=e.isFixed,h=s.x,p=void 0===h?0:h,m=s.y,g=void 0===m?0:m,x="function"==typeof d?d({x:p,y:g}):{x:p,y:g};p=x.x,g=x.y;var v=s.hasOwnProperty("x"),y=s.hasOwnProperty("y"),b=nS,w=nj,k=window;if(u){var _=n_(r),j="clientHeight",E="clientWidth";_===t3(r)&&"static"!==nf(_=nu(r)).position&&"absolute"===l&&(j="scrollHeight",E="scrollWidth"),(i===nj||(i===nS||i===nO)&&a===nR)&&(w=nE,g-=(f&&_===k&&k.visualViewport?k.visualViewport.height:_[j])-o.height,g*=c?1:-1),(i===nS||(i===nj||i===nE)&&a===nR)&&(b=nO,p-=(f&&_===k&&k.visualViewport?k.visualViewport.width:_[E])-o.width,p*=c?1:-1)}var O=Object.assign({position:l},u&&nK),S=!0===d?nQ({x:p,y:g},t3(r)):{x:p,y:g};return(p=S.x,g=S.y,c)?Object.assign({},O,((n={})[w]=y?"0":"",n[b]=v?"0":"",n.transform=1>=(k.devicePixelRatio||1)?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",n)):Object.assign({},O,((t={})[w]=y?g+"px":"",t[b]=v?p+"px":"",t.transform="",t))}function nJ(e,t,n){var r=nU(e),o=[nS,nj].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[nS,nO].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}var n0={left:"right",right:"left",bottom:"top",top:"bottom"};function n1(e){return e.replace(/left|right|bottom|top/g,function(e){return n0[e]})}var n2={start:"end",end:"start"};function n5(e){return e.replace(/start|end/g,function(e){return n2[e]})}function n4(e,t){var n=t3(e),r=nu(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var c=no();(c||!c&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+nd(e),y:l}}function n6(e){var t,n=nu(e),r=na(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=ne(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=ne(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+nd(e),l=-r.scrollTop;return"rtl"===nf(o||n).direction&&(s+=ne(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}function n3(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&t7(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function n9(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function n8(e,t){var n=ni(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function n7(e,t,n){return t===nI?n9(n4(e,n)):t9(t)?n8(t,n):n9(n6(nu(e)))}function re(e){var t=ny(nx(e)),n=["absolute","fixed"].indexOf(nf(e).position)>=0&&t8(e)?n_(e):e;return t9(n)?t.filter(function(e){return t9(e)&&n3(e,n)&&"body"!==nc(e)}):[]}function rt(e,t,n,r){var o=[].concat("clippingParents"===t?re(e):[].concat(t),[n]),i=o[0],a=o.reduce(function(t,n){var o=n7(e,n,r);return t.top=ne(o.top,t.top),t.right=nt(o.right,t.right),t.bottom=nt(o.bottom,t.bottom),t.left=ne(o.left,t.left),t},n7(e,i,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function rn(){return{top:0,right:0,bottom:0,left:0}}function rr(e){return Object.assign({},rn(),e)}function ro(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}function ri(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.strategy,a=void 0===i?e.strategy:i,s=n.boundary,l=void 0===s?nN:s,c=n.rootBoundary,u=void 0===c?nI:c,d=n.elementContext,f=void 0===d?nM:d,h=n.altBoundary,p=void 0!==h&&h,m=n.padding,g=void 0===m?0:m,x=rr("number"!=typeof g?g:ro(g,nT)),v=f===nM?nL:nM,y=e.rects.popper,b=e.elements[p?v:f],w=rt(t9(b)?b:b.contextElement||nu(e.elements.popper),l,u,a),k=ni(e.elements.reference),_=nX({reference:k,element:y,strategy:"absolute",placement:o}),j=n9(Object.assign({},y,_)),E=f===nM?j:k,O={top:w.top-E.top+x.top,bottom:E.bottom-w.bottom+x.bottom,left:w.left-E.left+x.left,right:E.right-w.right+x.right},S=e.modifiersData.offset;if(f===nM&&S){var C=S[o];Object.keys(O).forEach(function(e){var t=[nO,nE].indexOf(e)>=0?1:-1,n=[nj,nE].indexOf(e)>=0?"y":"x";O[e]+=C[n]*t})}return O}function ra(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?nP:l,u=nV(r),d=u?s?nZ:nZ.filter(function(e){return nV(e)===u}):nT,f=d.filter(function(e){return c.indexOf(e)>=0});0===f.length&&(f=d);var h=f.reduce(function(t,n){return t[n]=ri(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[nU(n)],t},{});return Object.keys(h).sort(function(e,t){return h[e]-h[t]})}function rs(e){if(nU(e)===nC)return[];var t=n1(e);return[n5(e),t,n5(t)]}function rl(e){return"x"===e?"y":"x"}function rc(e,t,n){return ne(e,nt(t,n))}function ru(e,t,n){var r=rc(e,t,n);return r>n?n:r}var rd=function(e,t){return rr("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:ro(e,nT))};function rf(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function rh(e){return[nj,nO,nE,nS].some(function(t){return e[t]>=0})}var rp=function(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?nW:o;return function(e,t,n){void 0===n&&(n=i);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},nW,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],s=!1,l={state:o,setOptions:function(n){var a="function"==typeof n?n(o.options):n;u(),o.options=Object.assign({},i,o.options,a),o.scrollParents={reference:t9(e)?ny(e):e.contextElement?ny(e.contextElement):[],popper:ny(t)};var s=nF(nB([].concat(r,o.options.modifiers)));return o.orderedModifiers=s.filter(function(e){return e.enabled}),c(),l.update()},forceUpdate:function(){if(!s){var e=o.elements,t=e.reference,n=e.popper;if(n$(t,n)){o.rects={reference:nm(t,n_(n),"fixed"===o.options.strategy),popper:ng(n)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach(function(e){return o.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0;r=0,A=T?"width":"height",R=ri(t,{placement:O,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),N=T?C?nO:nS:C?nE:nj;b[A]>w[A]&&(N=n1(N));var I=n1(N),M=[];if(i&&M.push(R[S]<=0),s&&M.push(R[N]<=0,R[I]<=0),M.every(function(e){return e})){j=O,_=!1;break}k.set(O,M)}if(_)for(var L=p?3:1,Z=function(e){var t=y.find(function(t){var n=k.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return j=t,"break"},P=L;P>0&&"break"!==Z(P);P--);t.placement!==j&&(t.modifiersData[r]._skip=!0,t.placement=j,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0!==a&&a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,h=void 0===f||f,p=n.tetherOffset,m=void 0===p?0:p,g=ri(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),x=nU(t.placement),v=nV(t.placement),y=!v,b=nq(x),w=rl(b),k=t.modifiersData.popperOffsets,_=t.rects.reference,j=t.rects.popper,E="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,O="number"==typeof E?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),S=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,C={x:0,y:0};if(k){if(i){var T,A="y"===b?nj:nS,R="y"===b?nE:nO,N="y"===b?"height":"width",I=k[b],M=I+g[A],L=I-g[R],Z=h?-j[N]/2:0,P=v===nA?_[N]:j[N],D=v===nA?-j[N]:-_[N],z=t.elements.arrow,F=h&&z?ng(z):{width:0,height:0},H=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:rn(),B=H[A],W=H[R],$=rc(0,_[N],F[N]),G=y?_[N]/2-Z-$-B-O.mainAxis:P-$-B-O.mainAxis,U=y?-_[N]/2+Z+$+W+O.mainAxis:D+$+W+O.mainAxis,V=t.elements.arrow&&n_(t.elements.arrow),q=V?"y"===b?V.clientTop||0:V.clientLeft||0:0,X=null!=(T=null==S?void 0:S[b])?T:0,K=I+G-X-q,Q=I+U-X,Y=rc(h?nt(M,K):M,I,h?ne(L,Q):L);k[b]=Y,C[b]=Y-I}if(s){var J,ee="x"===b?nj:nS,et="x"===b?nE:nO,en=k[w],er="y"===w?"height":"width",eo=en+g[ee],ei=en-g[et],ea=-1!==[nj,nS].indexOf(x),es=null!=(J=null==S?void 0:S[w])?J:0,el=ea?eo:en-_[er]-j[er]-es+O.altAxis,ec=ea?en+_[er]+j[er]-es-O.altAxis:ei,eu=h&&ea?ru(el,en,ec):rc(h?el:eo,en,h?ec:ei);k[w]=eu,C[w]=eu-en}t.modifiersData[r]=C}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=nU(n.placement),l=nq(s),c=[nS,nO].indexOf(s)>=0?"height":"width";if(i&&a){var u=rd(o.padding,n),d=ng(i),f="y"===l?nj:nS,h="y"===l?nE:nO,p=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],m=a[l]-n.rects.reference[l],g=n_(i),x=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,v=p/2-m/2,y=u[f],b=x-d[c]-u[h],w=x/2-d[c]/2+v,k=rc(y,w,b),_=l;n.modifiersData[r]=((t={})[_]=k,t.centerOffset=k-w,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&n3(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=ri(t,{elementContext:"reference"}),s=ri(t,{altBoundary:!0}),l=rf(a,r),c=rf(s,o,i),u=rh(l),d=rh(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]}),rm=n(89752),rg=n.n(rm);function rx(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var rv=n(70222);let ry=(0,_.createContext)(null);ry.displayName="OpenClosedContext";var rb=((o=rb||{})[o.Open=1]="Open",o[o.Closed=2]="Closed",o[o.Closing=4]="Closing",o[o.Opening=8]="Opening",o);function rw(){return(0,_.useContext)(ry)}function rk({value:e,children:t}){return _.createElement(ry.Provider,{value:e},t)}var r_=n(23011),rj=n(85782),rE=n(66260),rO=n(19691),rS=n(70674),rC=n(29850);function rT(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}var rA=n(95012);function rR(e,...t){e&&t.length>0&&e.classList.add(...t)}function rN(e,...t){e&&t.length>0&&e.classList.remove(...t)}function rI(e,t){let n=(0,rA.k)();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:o}=getComputedStyle(e),[i,a]=[r,o].map(e=>{let[t=0]=e.split(",").filter(Boolean).map(e=>e.includes("ms")?parseFloat(e):1e3*parseFloat(e)).sort((e,t)=>t-e);return t}),s=i+a;if(0!==s){n.group(n=>{n.setTimeout(()=>{t(),n.dispose()},s),n.addEventListener(e,"transitionrun",e=>{e.target===e.currentTarget&&n.dispose()})});let r=n.addEventListener(e,"transitionend",e=>{e.target===e.currentTarget&&(t(),r())})}else t();return n.add(()=>t()),n.dispose}function rM(e,t,n,r){let o=n?"enter":"leave",i=(0,rA.k)(),a=void 0!==r?rT(r):()=>{};"enter"===o&&(e.removeAttribute("hidden"),e.style.display="");let s=(0,r_.E)(o,{enter:()=>t.enter,leave:()=>t.leave}),l=(0,r_.E)(o,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),c=(0,r_.E)(o,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return rN(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),rR(e,...t.base,...s,...c),i.nextFrame(()=>{rN(e,...t.base,...s,...c),rR(e,...t.base,...s,...l),rI(e,()=>(rN(e,...t.base,...s),rR(e,...t.base,...t.entered),a()))}),i.dispose}function rL(){let[e]=(0,_.useState)(rA.k);return(0,_.useEffect)(()=>()=>e.dispose(),[e]),e}function rZ({immediate:e,container:t,direction:n,classes:r,onStart:o,onStop:i}){let a=(0,rj.t)(),s=rL(),l=(0,rO.E)(n);(0,rE.e)(()=>{e&&(l.current="enter")},[e]),(0,rE.e)(()=>{let e=(0,rA.k)();s.add(e.dispose);let n=t.current;if(n&&"idle"!==l.current&&a.current)return e.dispose(),o.current(l.current),e.add(rM(n,r.current,"enter"===l.current,()=>{e.dispose(),i.current(l.current)})),e.dispose},[n])}var rP=n(26510),rD=n(43659);function rz(e=0){let[t,n]=(0,_.useState)(e),r=(0,rj.t)(),o=(0,_.useCallback)(e=>{r.current&&n(t=>t|e)},[t,r]),i=(0,_.useCallback)(e=>!!(t&e),[t]);return{flags:t,addFlag:o,hasFlag:i,removeFlag:(0,_.useCallback)(e=>{r.current&&n(t=>t&~e)},[n,r]),toggleFlag:(0,_.useCallback)(e=>{r.current&&n(t=>t^e)},[n])}}function rF(e=""){return e.split(" ").filter(e=>e.trim().length>1)}let rH=(0,_.createContext)(null);rH.displayName="TransitionContext";var rB=((i=rB||{}).Visible="visible",i.Hidden="hidden",i);function rW(){let e=(0,_.useContext)(rH);if(null===e)throw Error("A is used but it is missing a parent or .");return e}function r$(){let e=(0,_.useContext)(rG);if(null===e)throw Error("A is used but it is missing a parent or .");return e}let rG=(0,_.createContext)(null);function rU(e){return"children"in e?rU(e.children):e.current.filter(({el:e})=>null!==e.current).filter(({state:e})=>"visible"===e).length>0}function rV(e,t){let n=(0,rO.E)(e),r=(0,_.useRef)([]),o=(0,rj.t)(),i=rL(),a=(0,rP.z)((e,t=rv.l4.Hidden)=>{let a=r.current.findIndex(({el:t})=>t===e);-1!==a&&((0,r_.E)(t,{[rv.l4.Unmount](){r.current.splice(a,1)},[rv.l4.Hidden](){r.current[a].state="hidden"}}),i.microTask(()=>{var e;!rU(r)&&o.current&&(null==(e=n.current)||e.call(n))}))}),s=(0,rP.z)(e=>{let t=r.current.find(({el:t})=>t===e);return t?"visible"!==t.state&&(t.state="visible"):r.current.push({el:e,state:"visible"}),()=>a(e,rv.l4.Unmount)}),l=(0,_.useRef)([]),c=(0,_.useRef)(Promise.resolve()),u=(0,_.useRef)({enter:[],leave:[],idle:[]}),d=(0,rP.z)((e,n,r)=>{l.current.splice(0),t&&(t.chains.current[n]=t.chains.current[n].filter(([t])=>t!==e)),null==t||t.chains.current[n].push([e,new Promise(e=>{l.current.push(e)})]),null==t||t.chains.current[n].push([e,new Promise(e=>{Promise.all(u.current[n].map(([e,t])=>t)).then(()=>e())})]),"enter"===n?c.current=c.current.then(()=>null==t?void 0:t.wait.current).then(()=>r(n)):r(n)}),f=(0,rP.z)((e,t,n)=>{Promise.all(u.current[t].splice(0).map(([e,t])=>t)).then(()=>{var e;null==(e=l.current.shift())||e()}).then(()=>n(t))});return(0,_.useMemo)(()=>({children:r,register:s,unregister:a,onStart:d,onStop:f,wait:c,chains:u}),[s,a,r,d,f,u,c])}function rq(){}rG.displayName="NestingContext";let rX=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function rK(e){var t;let n={};for(let r of rX)n[r]=null!=(t=e[r])?t:rq;return n}function rQ(e){let t=(0,_.useRef)(rK(e));return(0,_.useEffect)(()=>{t.current=rK(e)},[e]),t}let rY="div",rJ=rv.AN.RenderStrategy;function r0(e,t){var n,r;let{beforeEnter:o,afterEnter:i,beforeLeave:a,afterLeave:s,enter:l,enterFrom:c,enterTo:u,entered:d,leave:f,leaveFrom:h,leaveTo:p,...m}=e,g=(0,_.useRef)(null),x=(0,rC.T)(g,t),v=null==(n=m.unmount)||n?rv.l4.Unmount:rv.l4.Hidden,{show:y,appear:b,initial:w}=rW(),[k,j]=(0,_.useState)(y?"visible":"hidden"),E=r$(),{register:O,unregister:S}=E;(0,_.useEffect)(()=>O(g),[O,g]),(0,_.useEffect)(()=>{if(v===rv.l4.Hidden&&g.current){if(y&&"visible"!==k){j("visible");return}return(0,r_.E)(k,{hidden:()=>S(g),visible:()=>O(g)})}},[k,g,O,S,y,v]);let C=(0,rO.E)({base:rF(m.className),enter:rF(l),enterFrom:rF(c),enterTo:rF(u),entered:rF(d),leave:rF(f),leaveFrom:rF(h),leaveTo:rF(p)}),T=rQ({beforeEnter:o,afterEnter:i,beforeLeave:a,afterLeave:s}),A=(0,rS.H)();(0,_.useEffect)(()=>{if(A&&"visible"===k&&null===g.current)throw Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[g,k,A]);let R=w&&!b,N=b&&y&&w,I=!A||R?"idle":y?"enter":"leave",M=rz(0),L=(0,rP.z)(e=>(0,r_.E)(e,{enter:()=>{M.addFlag(rb.Opening),T.current.beforeEnter()},leave:()=>{M.addFlag(rb.Closing),T.current.beforeLeave()},idle:()=>{}})),Z=(0,rP.z)(e=>(0,r_.E)(e,{enter:()=>{M.removeFlag(rb.Opening),T.current.afterEnter()},leave:()=>{M.removeFlag(rb.Closing),T.current.afterLeave()},idle:()=>{}})),P=rV(()=>{j("hidden"),S(g)},E);rZ({immediate:N,container:g,classes:C,direction:I,onStart:(0,rO.E)(e=>{P.onStart(g,e,L)}),onStop:(0,rO.E)(e=>{P.onStop(g,e,Z),"leave"!==e||rU(P)||(j("hidden"),S(g))})});let D=m,z={ref:x};return N?D={...D,className:(0,rD.A)(m.className,...C.current.enter,...C.current.enterFrom)}:(D.className=(0,rD.A)(m.className,null==(r=g.current)?void 0:r.className),""===D.className&&delete D.className),_.createElement(rG.Provider,{value:P},_.createElement(rk,{value:(0,r_.E)(k,{visible:rb.Open,hidden:rb.Closed})|M.flags},(0,rv.sY)({ourProps:z,theirProps:D,defaultTag:rY,features:rJ,visible:"visible"===k,name:"Transition.Child"})))}function r1(e,t){let{show:n,appear:r=!1,unmount:o=!0,...i}=e,a=(0,_.useRef)(null),s=(0,rC.T)(a,t);(0,rS.H)();let l=rw();if(void 0===n&&null!==l&&(n=(l&rb.Open)===rb.Open),![!0,!1].includes(n))throw Error("A is used but it is missing a `show={true | false}` prop.");let[c,u]=(0,_.useState)(n?"visible":"hidden"),d=rV(()=>{u("hidden")}),[f,h]=(0,_.useState)(!0),p=(0,_.useRef)([n]);(0,rE.e)(()=>{!1!==f&&p.current[p.current.length-1]!==n&&(p.current.push(n),h(!1))},[p,n]);let m=(0,_.useMemo)(()=>({show:n,appear:r,initial:f}),[n,r,f]);(0,_.useEffect)(()=>{if(n)u("visible");else if(rU(d)){let e=a.current;if(!e)return;let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&u("hidden")}else u("hidden")},[n,d]);let g={unmount:o},x=(0,rP.z)(()=>{var t;f&&h(!1),null==(t=e.beforeEnter)||t.call(e)}),v=(0,rP.z)(()=>{var t;f&&h(!1),null==(t=e.beforeLeave)||t.call(e)});return _.createElement(rG.Provider,{value:d},_.createElement(rH.Provider,{value:m},(0,rv.sY)({ourProps:{...g,as:_.Fragment,children:_.createElement(r4,{ref:s,...g,...i,beforeEnter:x,beforeLeave:v})},theirProps:{},defaultTag:_.Fragment,features:rJ,visible:"visible"===c,name:"Transition"})))}function r2(e,t){let n=null!==(0,_.useContext)(rH),r=null!==rw();return _.createElement(_.Fragment,null,!n&&r?_.createElement(r5,{ref:t,...e}):_.createElement(r4,{ref:t,...e}))}let r5=(0,rv.yV)(r1),r4=(0,rv.yV)(r0),r6=Object.assign(r5,{Child:(0,rv.yV)(r2),Root:r5});var r3=n(16013),r9=n(49038);function r8(e,t){let[n,r]=(0,_.useState)(e),o=(0,rO.E)(e);return(0,rE.e)(()=>r(o.current),[o,r,...t]),n}var r7=n(8246);function oe(e){throw Error("Unexpected object: "+e)}var ot=((a=ot||{})[a.First=0]="First",a[a.Previous=1]="Previous",a[a.Next=2]="Next",a[a.Last=3]="Last",a[a.Specific=4]="Specific",a[a.Nothing=5]="Nothing",a);function on(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),o=null!=r?r:-1,i=(()=>{switch(e.focus){case 0:return n.findIndex(e=>!t.resolveDisabled(e));case 1:{let e=n.slice().reverse().findIndex((e,n,r)=>(-1===o||!(r.length-n-1>=o))&&!t.resolveDisabled(e));return -1===e?e:n.length-1-e}case 2:return n.findIndex((e,n)=>!(n<=o)&&!t.resolveDisabled(e));case 3:{let e=n.slice().reverse().findIndex(e=>!t.resolveDisabled(e));return -1===e?e:n.length-1-e}case 4:return n.findIndex(n=>t.resolveId(n)===e.id);case 5:return null;default:oe(e)}})();return -1===i?r:i}function or(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=(null==t?void 0:t.getAttribute("disabled"))==="";return!(r&&oo(n))&&r}function oo(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}var oi=n(47496),oa=n(58002);function os(e,t,n){let r=(0,rO.E)(t);(0,_.useEffect)(()=>{function t(e){r.current(e)}return document.addEventListener(e,t,n),()=>document.removeEventListener(e,t,n)},[e,n])}function ol(e,t,n){let r=(0,rO.E)(t);(0,_.useEffect)(()=>{function t(e){r.current(e)}return window.addEventListener(e,t,n),()=>window.removeEventListener(e,t,n)},[e,n])}function oc(e,t,n=!0){let r=(0,_.useRef)(!1);function o(n,o){if(!r.current||n.defaultPrevented)return;let i=o(n);if(null!==i&&i.getRootNode().contains(i)&&i.isConnected){for(let t of function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e)){if(null===t)continue;let e=t instanceof HTMLElement?t:t.current;if(null!=e&&e.contains(i)||n.composed&&n.composedPath().includes(e))return}return(0,oi.sP)(i,oi.tJ.Loose)||-1===i.tabIndex||n.preventDefault(),t(n,i)}}(0,_.useEffect)(()=>{requestAnimationFrame(()=>{r.current=n})},[n]);let i=(0,_.useRef)(null);os("pointerdown",e=>{var t,n;r.current&&(i.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)},!0),os("mousedown",e=>{var t,n;r.current&&(i.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)},!0),os("click",e=>{i.current&&(o(e,()=>i.current),i.current=null)},!0),os("touchend",e=>o(e,()=>e.target instanceof HTMLElement?e.target:null),!0),ol("blur",e=>o(e,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}var ou=n(91941);function od(e={},t=null,n=[]){for(let[r,o]of Object.entries(e))oh(n,of(t,r),o);return n}function of(e,t){return e?e+"["+t+"]":t}function oh(e,t,n){if(Array.isArray(n))for(let[r,o]of n.entries())oh(e,of(t,r.toString()),o);else n instanceof Date?e.push([t,n.toISOString()]):"boolean"==typeof n?e.push([t,n?"1":"0"]):"string"==typeof n?e.push([t,n]):"number"==typeof n?e.push([t,`${n}`]):null==n?e.push([t,""]):od(n,t,e)}var op=n(19195);function om(e,t,n){let[r,o]=(0,_.useState)(n),i=void 0!==e,a=(0,_.useRef)(i),s=(0,_.useRef)(!1),l=(0,_.useRef)(!1);return!i||a.current||s.current?i||!a.current||l.current||(l.current=!0,a.current=i,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")):(s.current=!0,a.current=i,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")),[i?e:r,(0,rP.z)(e=>(i||o(e),null==t?void 0:t(e)))]}function og(e){return[e.screenX,e.screenY]}function ox(){let e=(0,_.useRef)([-1,-1]);return{wasMoved(t){let n=og(t);return(e.current[0]!==n[0]||e.current[1]!==n[1])&&(e.current=n,!0)},update(t){e.current=og(t)}}}let ov=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function oy(e){var t,n;let r=null!=(t=e.innerText)?t:"",o=e.cloneNode(!0);if(!(o instanceof HTMLElement))return r;let i=!1;for(let e of o.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))e.remove(),i=!0;let a=i?null!=(n=o.innerText)?n:"":r;return ov.test(a)&&(a=a.replace(ov,"")),a}function ob(e){let t=e.getAttribute("aria-label");if("string"==typeof t)return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let e=n.split(" ").map(e=>{let t=document.getElementById(e);if(t){let e=t.getAttribute("aria-label");return"string"==typeof e?e.trim():oy(t).trim()}return null}).filter(Boolean);if(e.length>0)return e.join(", ")}return oy(e).trim()}function ow(e){let t=(0,_.useRef)(""),n=(0,_.useRef)("");return(0,rP.z)(()=>{let r=e.current;if(!r)return"";let o=r.innerText;if(t.current===o)return n.current;let i=ob(r).trim().toLowerCase();return t.current=o,n.current=i,i})}var ok=((s=ok||{})[s.Open=0]="Open",s[s.Closed=1]="Closed",s),o_=((l=o_||{})[l.Single=0]="Single",l[l.Multi=1]="Multi",l),oj=((c=oj||{})[c.Pointer=0]="Pointer",c[c.Other=1]="Other",c),oE=((u=oE||{})[u.OpenListbox=0]="OpenListbox",u[u.CloseListbox=1]="CloseListbox",u[u.GoToOption=2]="GoToOption",u[u.Search=3]="Search",u[u.ClearSearch=4]="ClearSearch",u[u.RegisterOption=5]="RegisterOption",u[u.UnregisterOption=6]="UnregisterOption",u[u.RegisterLabel=7]="RegisterLabel",u);function oO(e,t=e=>e){let n=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,r=(0,oi.z2)(t(e.options.slice()),e=>e.dataRef.current.domRef.current),o=n?r.indexOf(n):null;return -1===o&&(o=null),{options:r,activeOptionIndex:o}}let oS={1:e=>e.dataRef.current.disabled||1===e.listboxState?e:{...e,activeOptionIndex:null,listboxState:1},0(e){if(e.dataRef.current.disabled||0===e.listboxState)return e;let t=e.activeOptionIndex,{isSelected:n}=e.dataRef.current,r=e.options.findIndex(e=>n(e.dataRef.current.value));return -1!==r&&(t=r),{...e,listboxState:0,activeOptionIndex:t}},2(e,t){var n;if(e.dataRef.current.disabled||1===e.listboxState)return e;let r=oO(e),o=on(t,{resolveItems:()=>r.options,resolveActiveIndex:()=>r.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...e,...r,searchQuery:"",activeOptionIndex:o,activationTrigger:null!=(n=t.trigger)?n:1}},3:(e,t)=>{if(e.dataRef.current.disabled||1===e.listboxState)return e;let n=""!==e.searchQuery?0:1,r=e.searchQuery+t.value.toLowerCase(),o=(null!==e.activeOptionIndex?e.options.slice(e.activeOptionIndex+n).concat(e.options.slice(0,e.activeOptionIndex+n)):e.options).find(e=>{var t;return!e.dataRef.current.disabled&&(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(r))}),i=o?e.options.indexOf(o):-1;return -1===i||i===e.activeOptionIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeOptionIndex:i,activationTrigger:1}},4:e=>e.dataRef.current.disabled||1===e.listboxState||""===e.searchQuery?e:{...e,searchQuery:""},5:(e,t)=>{let n={id:t.id,dataRef:t.dataRef},r=oO(e,e=>[...e,n]);return null===e.activeOptionIndex&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(r.activeOptionIndex=r.options.indexOf(n)),{...e,...r}},6:(e,t)=>{let n=oO(e,e=>{let n=e.findIndex(e=>e.id===t.id);return -1!==n&&e.splice(n,1),e});return{...e,...n,activationTrigger:1}},7:(e,t)=>({...e,labelId:t.id})},oC=(0,_.createContext)(null);function oT(e){let t=(0,_.useContext)(oC);if(null===t){let t=Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,oT),t}return t}oC.displayName="ListboxActionsContext";let oA=(0,_.createContext)(null);function oR(e){let t=(0,_.useContext)(oA);if(null===t){let t=Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,oR),t}return t}function oN(e,t){return(0,r_.E)(t.type,oS,e,t)}oA.displayName="ListboxDataContext";let oI=_.Fragment;function oM(e,t){let{value:n,defaultValue:r,form:o,name:i,onChange:a,by:s=(e,t)=>e===t,disabled:l=!1,horizontal:c=!1,multiple:u=!1,...d}=e,f=c?"horizontal":"vertical",h=(0,rC.T)(t),[p=u?[]:void 0,m]=om(n,a,r),[g,x]=(0,_.useReducer)(oN,{dataRef:(0,_.createRef)(),listboxState:1,options:[],searchQuery:"",labelId:null,activeOptionIndex:null,activationTrigger:1}),v=(0,_.useRef)({static:!1,hold:!1}),y=(0,_.useRef)(null),b=(0,_.useRef)(null),w=(0,_.useRef)(null),k=(0,rP.z)("string"==typeof s?(e,t)=>{let n=s;return(null==e?void 0:e[n])===(null==t?void 0:t[n])}:s),j=(0,_.useCallback)(e=>(0,r_.E)(E.mode,{1:()=>p.some(t=>k(t,e)),0:()=>k(p,e)}),[p]),E=(0,_.useMemo)(()=>({...g,value:p,disabled:l,mode:u?1:0,orientation:f,compare:k,isSelected:j,optionsPropsRef:v,labelRef:y,buttonRef:b,optionsRef:w}),[p,l,u,g]);(0,rE.e)(()=>{g.dataRef.current=E},[E]),oc([E.buttonRef,E.optionsRef],(e,t)=>{var n;x({type:1}),(0,oi.sP)(t,oi.tJ.Loose)||(e.preventDefault(),null==(n=E.buttonRef.current)||n.focus())},0===E.listboxState);let O=(0,_.useMemo)(()=>({open:0===E.listboxState,disabled:l,value:p}),[E,l,p]),S=(0,rP.z)(e=>{let t=E.options.find(t=>t.id===e);t&&M(t.dataRef.current.value)}),C=(0,rP.z)(()=>{if(null!==E.activeOptionIndex){let{dataRef:e,id:t}=E.options[E.activeOptionIndex];M(e.current.value),x({type:2,focus:ot.Specific,id:t})}}),T=(0,rP.z)(()=>x({type:0})),A=(0,rP.z)(()=>x({type:1})),R=(0,rP.z)((e,t,n)=>e===ot.Specific?x({type:2,focus:ot.Specific,id:t,trigger:n}):x({type:2,focus:e,trigger:n})),N=(0,rP.z)((e,t)=>(x({type:5,id:e,dataRef:t}),()=>x({type:6,id:e}))),I=(0,rP.z)(e=>(x({type:7,id:e}),()=>x({type:7,id:null}))),M=(0,rP.z)(e=>(0,r_.E)(E.mode,{0:()=>null==m?void 0:m(e),1(){let t=E.value.slice(),n=t.findIndex(t=>k(t,e));return -1===n?t.push(e):t.splice(n,1),null==m?void 0:m(t)}})),L=(0,rP.z)(e=>x({type:3,value:e})),Z=(0,rP.z)(()=>x({type:4})),P=(0,_.useMemo)(()=>({onChange:M,registerOption:N,registerLabel:I,goToOption:R,closeListbox:A,openListbox:T,selectActiveOption:C,selectOption:S,search:L,clearSearch:Z}),[]),D={ref:h},z=(0,_.useRef)(null),F=rL();return(0,_.useEffect)(()=>{z.current&&void 0!==r&&F.addEventListener(z.current,"reset",()=>{null==m||m(r)})},[z,m]),_.createElement(oC.Provider,{value:P},_.createElement(oA.Provider,{value:E},_.createElement(rk,{value:(0,r_.E)(E.listboxState,{0:rb.Open,1:rb.Closed})},null!=i&&null!=p&&od({[i]:p}).map(([e,t],n)=>_.createElement(ou._,{features:ou.A.Hidden,ref:0===n?e=>{var t;z.current=null!=(t=null==e?void 0:e.closest("form"))?t:null}:void 0,...(0,rv.oA)({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:o,name:e,value:t})})),(0,rv.sY)({ourProps:D,theirProps:d,slot:O,defaultTag:oI,name:"Listbox"}))))}let oL="button";function oZ(e,t){var n;let r=(0,r9.M)(),{id:o=`headlessui-listbox-button-${r}`,...i}=e,a=oR("Listbox.Button"),s=oT("Listbox.Button"),l=(0,rC.T)(a.buttonRef,t),c=rL(),u=(0,rP.z)(e=>{switch(e.key){case r7.R.Space:case r7.R.Enter:case r7.R.ArrowDown:e.preventDefault(),s.openListbox(),c.nextFrame(()=>{a.value||s.goToOption(ot.First)});break;case r7.R.ArrowUp:e.preventDefault(),s.openListbox(),c.nextFrame(()=>{a.value||s.goToOption(ot.Last)})}}),d=(0,rP.z)(e=>{e.key===r7.R.Space&&e.preventDefault()}),f=(0,rP.z)(e=>{if(or(e.currentTarget))return e.preventDefault();0===a.listboxState?(s.closeListbox(),c.nextFrame(()=>{var e;return null==(e=a.buttonRef.current)?void 0:e.focus({preventScroll:!0})})):(e.preventDefault(),s.openListbox())}),h=r8(()=>{if(a.labelId)return[a.labelId,o].join(" ")},[a.labelId,o]),p=(0,_.useMemo)(()=>({open:0===a.listboxState,disabled:a.disabled,value:a.value}),[a]),m={ref:l,id:o,type:(0,oa.f)(e,a.buttonRef),"aria-haspopup":"listbox","aria-controls":null==(n=a.optionsRef.current)?void 0:n.id,"aria-expanded":0===a.listboxState,"aria-labelledby":h,disabled:a.disabled,onKeyDown:u,onKeyUp:d,onClick:f};return(0,rv.sY)({ourProps:m,theirProps:i,slot:p,defaultTag:oL,name:"Listbox.Button"})}let oP="label";function oD(e,t){let n=(0,r9.M)(),{id:r=`headlessui-listbox-label-${n}`,...o}=e,i=oR("Listbox.Label"),a=oT("Listbox.Label"),s=(0,rC.T)(i.labelRef,t);(0,rE.e)(()=>a.registerLabel(r),[r]);let l=(0,rP.z)(()=>{var e;return null==(e=i.buttonRef.current)?void 0:e.focus({preventScroll:!0})}),c=(0,_.useMemo)(()=>({open:0===i.listboxState,disabled:i.disabled}),[i]);return(0,rv.sY)({ourProps:{ref:s,id:r,onClick:l},theirProps:o,slot:c,defaultTag:oP,name:"Listbox.Label"})}let oz="ul",oF=rv.AN.RenderStrategy|rv.AN.Static;function oH(e,t){var n;let r=(0,r9.M)(),{id:o=`headlessui-listbox-options-${r}`,...i}=e,a=oR("Listbox.Options"),s=oT("Listbox.Options"),l=(0,rC.T)(a.optionsRef,t),c=rL(),u=rL(),d=rw(),f=null!==d?(d&rb.Open)===rb.Open:0===a.listboxState;(0,_.useEffect)(()=>{var e;let t=a.optionsRef.current;t&&0===a.listboxState&&t!==(null==(e=(0,op.r)(t))?void 0:e.activeElement)&&t.focus({preventScroll:!0})},[a.listboxState,a.optionsRef]);let h=(0,rP.z)(e=>{switch(u.dispose(),e.key){case r7.R.Space:if(""!==a.searchQuery)return e.preventDefault(),e.stopPropagation(),s.search(e.key);case r7.R.Enter:if(e.preventDefault(),e.stopPropagation(),null!==a.activeOptionIndex){let{dataRef:e}=a.options[a.activeOptionIndex];s.onChange(e.current.value)}0===a.mode&&(s.closeListbox(),(0,rA.k)().nextFrame(()=>{var e;return null==(e=a.buttonRef.current)?void 0:e.focus({preventScroll:!0})}));break;case(0,r_.E)(a.orientation,{vertical:r7.R.ArrowDown,horizontal:r7.R.ArrowRight}):return e.preventDefault(),e.stopPropagation(),s.goToOption(ot.Next);case(0,r_.E)(a.orientation,{vertical:r7.R.ArrowUp,horizontal:r7.R.ArrowLeft}):return e.preventDefault(),e.stopPropagation(),s.goToOption(ot.Previous);case r7.R.Home:case r7.R.PageUp:return e.preventDefault(),e.stopPropagation(),s.goToOption(ot.First);case r7.R.End:case r7.R.PageDown:return e.preventDefault(),e.stopPropagation(),s.goToOption(ot.Last);case r7.R.Escape:return e.preventDefault(),e.stopPropagation(),s.closeListbox(),c.nextFrame(()=>{var e;return null==(e=a.buttonRef.current)?void 0:e.focus({preventScroll:!0})});case r7.R.Tab:e.preventDefault(),e.stopPropagation();break;default:1===e.key.length&&(s.search(e.key),u.setTimeout(()=>s.clearSearch(),350))}}),p=r8(()=>{var e,t,n;return null!=(n=null==(e=a.labelRef.current)?void 0:e.id)?n:null==(t=a.buttonRef.current)?void 0:t.id},[a.labelRef.current,a.buttonRef.current]),m=(0,_.useMemo)(()=>({open:0===a.listboxState}),[a]),g={"aria-activedescendant":null===a.activeOptionIndex||null==(n=a.options[a.activeOptionIndex])?void 0:n.id,"aria-multiselectable":1===a.mode||void 0,"aria-labelledby":p,"aria-orientation":a.orientation,id:o,onKeyDown:h,role:"listbox",tabIndex:0,ref:l};return(0,rv.sY)({ourProps:g,theirProps:i,slot:m,defaultTag:oz,features:oF,visible:f,name:"Listbox.Options"})}let oB="li";function oW(e,t){let n=(0,r9.M)(),{id:r=`headlessui-listbox-option-${n}`,disabled:o=!1,value:i,...a}=e,s=oR("Listbox.Option"),l=oT("Listbox.Option"),c=null!==s.activeOptionIndex&&s.options[s.activeOptionIndex].id===r,u=s.isSelected(i),d=(0,_.useRef)(null),f=ow(d),h=(0,rO.E)({disabled:o,value:i,domRef:d,get textValue(){return f()}}),p=(0,rC.T)(t,d);(0,rE.e)(()=>{if(0!==s.listboxState||!c||0===s.activationTrigger)return;let e=(0,rA.k)();return e.requestAnimationFrame(()=>{var e,t;null==(t=null==(e=d.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})}),e.dispose},[d,c,s.listboxState,s.activationTrigger,s.activeOptionIndex]),(0,rE.e)(()=>l.registerOption(r,h),[h,r]);let m=(0,rP.z)(e=>{if(o)return e.preventDefault();l.onChange(i),0===s.mode&&(l.closeListbox(),(0,rA.k)().nextFrame(()=>{var e;return null==(e=s.buttonRef.current)?void 0:e.focus({preventScroll:!0})}))}),g=(0,rP.z)(()=>{if(o)return l.goToOption(ot.Nothing);l.goToOption(ot.Specific,r)}),x=ox(),v=(0,rP.z)(e=>x.update(e)),y=(0,rP.z)(e=>{x.wasMoved(e)&&(o||c||l.goToOption(ot.Specific,r,0))}),b=(0,rP.z)(e=>{x.wasMoved(e)&&(o||c&&l.goToOption(ot.Nothing))}),w=(0,_.useMemo)(()=>({active:c,selected:u,disabled:o}),[c,u,o]);return(0,rv.sY)({ourProps:{id:r,ref:p,role:"option",tabIndex:!0===o?void 0:-1,"aria-disabled":!0===o||void 0,"aria-selected":u,disabled:void 0,onClick:m,onFocus:g,onPointerEnter:v,onMouseEnter:v,onPointerMove:y,onMouseMove:y,onPointerLeave:b,onMouseLeave:b},theirProps:a,slot:w,defaultTag:oB,name:"Listbox.Option"})}let o$=Object.assign((0,rv.yV)(oM),{Button:(0,rv.yV)(oZ),Label:(0,rv.yV)(oD),Options:(0,rv.yV)(oH),Option:(0,rv.yV)(oW)});var oG=n(10422),oU=n(60178),oV=n.n(oU);function oq(){return(oq=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}var oK=["keyOverride"],oQ=["crossOrigin"],oY={templateTitle:"",noindex:!1,nofollow:!1,norobots:!1,defaultOpenGraphImageWidth:0,defaultOpenGraphImageHeight:0,defaultOpenGraphVideoWidth:0,defaultOpenGraphVideoHeight:0},oJ=function(e,t,n){void 0===t&&(t=[]);var r=void 0===n?{}:n,o=r.defaultWidth,i=r.defaultHeight;return t.reduce(function(t,n,r){return t.push(_.createElement("meta",{key:"og:"+e+":0"+r,property:"og:"+e,content:n.url})),n.alt&&t.push(_.createElement("meta",{key:"og:"+e+":alt0"+r,property:"og:"+e+":alt",content:n.alt})),n.secureUrl&&t.push(_.createElement("meta",{key:"og:"+e+":secure_url0"+r,property:"og:"+e+":secure_url",content:n.secureUrl.toString()})),n.type&&t.push(_.createElement("meta",{key:"og:"+e+":type0"+r,property:"og:"+e+":type",content:n.type.toString()})),n.width?t.push(_.createElement("meta",{key:"og:"+e+":width0"+r,property:"og:"+e+":width",content:n.width.toString()})):o&&t.push(_.createElement("meta",{key:"og:"+e+":width0"+r,property:"og:"+e+":width",content:o.toString()})),n.height?t.push(_.createElement("meta",{key:"og:"+e+":height"+r,property:"og:"+e+":height",content:n.height.toString()})):i&&t.push(_.createElement("meta",{key:"og:"+e+":height"+r,property:"og:"+e+":height",content:i.toString()})),t},[])},o0=function(e){var t,n,r,o,i,a=[];e.titleTemplate&&(oY.templateTitle=e.titleTemplate);var s="";e.title?(s=e.title,oY.templateTitle&&(s=oY.templateTitle.replace(/%s/g,function(){return s}))):e.defaultTitle&&(s=e.defaultTitle),s&&a.push(_.createElement("title",{key:"title"},s));var l=void 0===e.noindex?oY.noindex||e.dangerouslySetAllPagesToNoIndex:e.noindex,c=void 0===e.nofollow?oY.nofollow||e.dangerouslySetAllPagesToNoFollow:e.nofollow,u=e.norobots||oY.norobots,d="";if(e.robotsProps){var f=e.robotsProps,h=f.nosnippet,p=f.maxSnippet,m=f.maxImagePreview,g=f.maxVideoPreview,x=f.noarchive,v=f.noimageindex,y=f.notranslate,b=f.unavailableAfter;d=(h?",nosnippet":"")+(p?",max-snippet:"+p:"")+(m?",max-image-preview:"+m:"")+(x?",noarchive":"")+(b?",unavailable_after:"+b:"")+(v?",noimageindex":"")+(g?",max-video-preview:"+g:"")+(y?",notranslate":"")}if(e.norobots&&(oY.norobots=!0),l||c?(e.dangerouslySetAllPagesToNoIndex&&(oY.noindex=!0),e.dangerouslySetAllPagesToNoFollow&&(oY.nofollow=!0),a.push(_.createElement("meta",{key:"robots",name:"robots",content:(l?"noindex":"index")+","+(c?"nofollow":"follow")+d}))):(!u||d)&&a.push(_.createElement("meta",{key:"robots",name:"robots",content:"index,follow"+d})),e.description&&a.push(_.createElement("meta",{key:"description",name:"description",content:e.description})),e.themeColor&&a.push(_.createElement("meta",{key:"theme-color",name:"theme-color",content:e.themeColor})),e.mobileAlternate&&a.push(_.createElement("link",{rel:"alternate",key:"mobileAlternate",media:e.mobileAlternate.media,href:e.mobileAlternate.href})),e.languageAlternates&&e.languageAlternates.length>0&&e.languageAlternates.forEach(function(e){a.push(_.createElement("link",{rel:"alternate",key:"languageAlternate-"+e.hrefLang,hrefLang:e.hrefLang,href:e.href}))}),e.twitter&&(e.twitter.cardType&&a.push(_.createElement("meta",{key:"twitter:card",name:"twitter:card",content:e.twitter.cardType})),e.twitter.site&&a.push(_.createElement("meta",{key:"twitter:site",name:"twitter:site",content:e.twitter.site})),e.twitter.handle&&a.push(_.createElement("meta",{key:"twitter:creator",name:"twitter:creator",content:e.twitter.handle}))),e.facebook&&e.facebook.appId&&a.push(_.createElement("meta",{key:"fb:app_id",property:"fb:app_id",content:e.facebook.appId})),(null!=(t=e.openGraph)&&t.title||s)&&a.push(_.createElement("meta",{key:"og:title",property:"og:title",content:(null==(o=e.openGraph)?void 0:o.title)||s})),(null!=(n=e.openGraph)&&n.description||e.description)&&a.push(_.createElement("meta",{key:"og:description",property:"og:description",content:(null==(i=e.openGraph)?void 0:i.description)||e.description})),e.openGraph){if((e.openGraph.url||e.canonical)&&a.push(_.createElement("meta",{key:"og:url",property:"og:url",content:e.openGraph.url||e.canonical})),e.openGraph.type){var w=e.openGraph.type.toLowerCase();a.push(_.createElement("meta",{key:"og:type",property:"og:type",content:w})),"profile"===w&&e.openGraph.profile?(e.openGraph.profile.firstName&&a.push(_.createElement("meta",{key:"profile:first_name",property:"profile:first_name",content:e.openGraph.profile.firstName})),e.openGraph.profile.lastName&&a.push(_.createElement("meta",{key:"profile:last_name",property:"profile:last_name",content:e.openGraph.profile.lastName})),e.openGraph.profile.username&&a.push(_.createElement("meta",{key:"profile:username",property:"profile:username",content:e.openGraph.profile.username})),e.openGraph.profile.gender&&a.push(_.createElement("meta",{key:"profile:gender",property:"profile:gender",content:e.openGraph.profile.gender}))):"book"===w&&e.openGraph.book?(e.openGraph.book.authors&&e.openGraph.book.authors.length&&e.openGraph.book.authors.forEach(function(e,t){a.push(_.createElement("meta",{key:"book:author:0"+t,property:"book:author",content:e}))}),e.openGraph.book.isbn&&a.push(_.createElement("meta",{key:"book:isbn",property:"book:isbn",content:e.openGraph.book.isbn})),e.openGraph.book.releaseDate&&a.push(_.createElement("meta",{key:"book:release_date",property:"book:release_date",content:e.openGraph.book.releaseDate})),e.openGraph.book.tags&&e.openGraph.book.tags.length&&e.openGraph.book.tags.forEach(function(e,t){a.push(_.createElement("meta",{key:"book:tag:0"+t,property:"book:tag",content:e}))})):"article"===w&&e.openGraph.article?(e.openGraph.article.publishedTime&&a.push(_.createElement("meta",{key:"article:published_time",property:"article:published_time",content:e.openGraph.article.publishedTime})),e.openGraph.article.modifiedTime&&a.push(_.createElement("meta",{key:"article:modified_time",property:"article:modified_time",content:e.openGraph.article.modifiedTime})),e.openGraph.article.expirationTime&&a.push(_.createElement("meta",{key:"article:expiration_time",property:"article:expiration_time",content:e.openGraph.article.expirationTime})),e.openGraph.article.authors&&e.openGraph.article.authors.length&&e.openGraph.article.authors.forEach(function(e,t){a.push(_.createElement("meta",{key:"article:author:0"+t,property:"article:author",content:e}))}),e.openGraph.article.section&&a.push(_.createElement("meta",{key:"article:section",property:"article:section",content:e.openGraph.article.section})),e.openGraph.article.tags&&e.openGraph.article.tags.length&&e.openGraph.article.tags.forEach(function(e,t){a.push(_.createElement("meta",{key:"article:tag:0"+t,property:"article:tag",content:e}))})):("video.movie"===w||"video.episode"===w||"video.tv_show"===w||"video.other"===w)&&e.openGraph.video&&(e.openGraph.video.actors&&e.openGraph.video.actors.length&&e.openGraph.video.actors.forEach(function(e,t){e.profile&&a.push(_.createElement("meta",{key:"video:actor:0"+t,property:"video:actor",content:e.profile})),e.role&&a.push(_.createElement("meta",{key:"video:actor:role:0"+t,property:"video:actor:role",content:e.role}))}),e.openGraph.video.directors&&e.openGraph.video.directors.length&&e.openGraph.video.directors.forEach(function(e,t){a.push(_.createElement("meta",{key:"video:director:0"+t,property:"video:director",content:e}))}),e.openGraph.video.writers&&e.openGraph.video.writers.length&&e.openGraph.video.writers.forEach(function(e,t){a.push(_.createElement("meta",{key:"video:writer:0"+t,property:"video:writer",content:e}))}),e.openGraph.video.duration&&a.push(_.createElement("meta",{key:"video:duration",property:"video:duration",content:e.openGraph.video.duration.toString()})),e.openGraph.video.releaseDate&&a.push(_.createElement("meta",{key:"video:release_date",property:"video:release_date",content:e.openGraph.video.releaseDate})),e.openGraph.video.tags&&e.openGraph.video.tags.length&&e.openGraph.video.tags.forEach(function(e,t){a.push(_.createElement("meta",{key:"video:tag:0"+t,property:"video:tag",content:e}))}),e.openGraph.video.series&&a.push(_.createElement("meta",{key:"video:series",property:"video:series",content:e.openGraph.video.series})))}e.defaultOpenGraphImageWidth&&(oY.defaultOpenGraphImageWidth=e.defaultOpenGraphImageWidth),e.defaultOpenGraphImageHeight&&(oY.defaultOpenGraphImageHeight=e.defaultOpenGraphImageHeight),e.openGraph.images&&e.openGraph.images.length&&a.push.apply(a,oJ("image",e.openGraph.images,{defaultWidth:oY.defaultOpenGraphImageWidth,defaultHeight:oY.defaultOpenGraphImageHeight})),e.defaultOpenGraphVideoWidth&&(oY.defaultOpenGraphVideoWidth=e.defaultOpenGraphVideoWidth),e.defaultOpenGraphVideoHeight&&(oY.defaultOpenGraphVideoHeight=e.defaultOpenGraphVideoHeight),e.openGraph.videos&&e.openGraph.videos.length&&a.push.apply(a,oJ("video",e.openGraph.videos,{defaultWidth:oY.defaultOpenGraphVideoWidth,defaultHeight:oY.defaultOpenGraphVideoHeight})),e.openGraph.audio&&a.push.apply(a,oJ("audio",e.openGraph.audio)),e.openGraph.locale&&a.push(_.createElement("meta",{key:"og:locale",property:"og:locale",content:e.openGraph.locale})),(e.openGraph.siteName||e.openGraph.site_name)&&a.push(_.createElement("meta",{key:"og:site_name",property:"og:site_name",content:e.openGraph.siteName||e.openGraph.site_name}))}return e.canonical&&a.push(_.createElement("link",{rel:"canonical",href:e.canonical,key:"canonical"})),e.additionalMetaTags&&e.additionalMetaTags.length>0&&e.additionalMetaTags.forEach(function(e){var t,n,r=e.keyOverride,o=oX(e,oK);a.push(_.createElement("meta",oq({key:"meta:"+(null!=(t=null!=(n=null!=r?r:o.name)?n:o.property)?t:o.httpEquiv)},o)))}),null!=(r=e.additionalLinkTags)&&r.length&&e.additionalLinkTags.forEach(function(e){var t,n=e.crossOrigin,r=oX(e,oQ),o="anonymous"===n||"use-credentials"===n||""===n?n:void 0;a.push(_.createElement("link",oq({key:"link"+(null!=(t=r.keyOverride)?t:r.href)+r.rel},r,{crossOrigin:o})))}),a},o1=function(e){return _.createElement(oV(),null,o0(e))},o2=function(e){var t=e.title,n=e.themeColor,r=e.noindex,o=e.nofollow,i=e.robotsProps,a=e.description,s=e.canonical,l=e.openGraph,c=e.facebook,u=e.twitter,d=e.additionalMetaTags,f=e.titleTemplate,h=e.defaultTitle,p=e.mobileAlternate,m=e.languageAlternates,g=e.additionalLinkTags;return _.createElement(_.Fragment,null,_.createElement(o1,{title:t,themeColor:n,noindex:r,nofollow:o,robotsProps:i,description:a,canonical:s,facebook:c,openGraph:l,additionalMetaTags:d,twitter:u,titleTemplate:f,defaultTitle:h,mobileAlternate:p,languageAlternates:m,additionalLinkTags:g}))};function o5({container:e,accept:t,walk:n,enabled:r=!0}){let o=(0,_.useRef)(t),i=(0,_.useRef)(n);(0,_.useEffect)(()=>{o.current=t,i.current=n},[t,n]),(0,rE.e)(()=>{if(!e||!r)return;let t=(0,op.r)(e);if(!t)return;let n=o.current,a=i.current,s=Object.assign(e=>n(e),{acceptNode:n}),l=t.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,s,!1);for(;l.nextNode();)a(l.currentNode)},[e,r,o,i])}function o4(...e){return(0,_.useMemo)(()=>(0,op.r)(...e),[...e])}RegExp("["+Object.keys(Object.freeze({"&":"&","<":"<",">":">",'"':""","'":"'"})).join("")+"]","g");var o6=((d=o6||{})[d.Open=0]="Open",d[d.Closed=1]="Closed",d),o3=((f=o3||{})[f.Pointer=0]="Pointer",f[f.Other=1]="Other",f),o9=((h=o9||{})[h.OpenMenu=0]="OpenMenu",h[h.CloseMenu=1]="CloseMenu",h[h.GoToItem=2]="GoToItem",h[h.Search=3]="Search",h[h.ClearSearch=4]="ClearSearch",h[h.RegisterItem=5]="RegisterItem",h[h.UnregisterItem=6]="UnregisterItem",h);function o8(e,t=e=>e){let n=null!==e.activeItemIndex?e.items[e.activeItemIndex]:null,r=(0,oi.z2)(t(e.items.slice()),e=>e.dataRef.current.domRef.current),o=n?r.indexOf(n):null;return -1===o&&(o=null),{items:r,activeItemIndex:o}}let o7={1:e=>1===e.menuState?e:{...e,activeItemIndex:null,menuState:1},0:e=>0===e.menuState?e:{...e,__demoMode:!1,menuState:0},2:(e,t)=>{var n;let r=o8(e),o=on(t,{resolveItems:()=>r.items,resolveActiveIndex:()=>r.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...e,...r,searchQuery:"",activeItemIndex:o,activationTrigger:null!=(n=t.trigger)?n:1}},3:(e,t)=>{let n=""!==e.searchQuery?0:1,r=e.searchQuery+t.value.toLowerCase(),o=(null!==e.activeItemIndex?e.items.slice(e.activeItemIndex+n).concat(e.items.slice(0,e.activeItemIndex+n)):e.items).find(e=>{var t;return(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(r))&&!e.dataRef.current.disabled}),i=o?e.items.indexOf(o):-1;return -1===i||i===e.activeItemIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeItemIndex:i,activationTrigger:1}},4:e=>""===e.searchQuery?e:{...e,searchQuery:"",searchActiveItemIndex:null},5:(e,t)=>{let n=o8(e,e=>[...e,{id:t.id,dataRef:t.dataRef}]);return{...e,...n}},6:(e,t)=>{let n=o8(e,e=>{let n=e.findIndex(e=>e.id===t.id);return -1!==n&&e.splice(n,1),e});return{...e,...n,activationTrigger:1}}},ie=(0,_.createContext)(null);function it(e){let t=(0,_.useContext)(ie);if(null===t){let t=Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,it),t}return t}function ir(e,t){return(0,r_.E)(t.type,o7,e,t)}ie.displayName="MenuContext";let io=_.Fragment;function ii(e,t){let{__demoMode:n=!1,...r}=e,o=(0,_.useReducer)(ir,{__demoMode:n,menuState:n?0:1,buttonRef:(0,_.createRef)(),itemsRef:(0,_.createRef)(),items:[],searchQuery:"",activeItemIndex:null,activationTrigger:1}),[{menuState:i,itemsRef:a,buttonRef:s},l]=o,c=(0,rC.T)(t);oc([s,a],(e,t)=>{var n;l({type:1}),(0,oi.sP)(t,oi.tJ.Loose)||(e.preventDefault(),null==(n=s.current)||n.focus())},0===i);let u=(0,rP.z)(()=>{l({type:1})}),d=(0,_.useMemo)(()=>({open:0===i,close:u}),[i,u]),f={ref:c};return _.createElement(ie.Provider,{value:o},_.createElement(rk,{value:(0,r_.E)(i,{0:rb.Open,1:rb.Closed})},(0,rv.sY)({ourProps:f,theirProps:r,slot:d,defaultTag:io,name:"Menu"})))}let ia="button";function is(e,t){var n;let r=(0,r9.M)(),{id:o=`headlessui-menu-button-${r}`,...i}=e,[a,s]=it("Menu.Button"),l=(0,rC.T)(a.buttonRef,t),c=rL(),u=(0,rP.z)(e=>{switch(e.key){case r7.R.Space:case r7.R.Enter:case r7.R.ArrowDown:e.preventDefault(),e.stopPropagation(),s({type:0}),c.nextFrame(()=>s({type:2,focus:ot.First}));break;case r7.R.ArrowUp:e.preventDefault(),e.stopPropagation(),s({type:0}),c.nextFrame(()=>s({type:2,focus:ot.Last}))}}),d=(0,rP.z)(e=>{e.key===r7.R.Space&&e.preventDefault()}),f=(0,rP.z)(t=>{if(or(t.currentTarget))return t.preventDefault();e.disabled||(0===a.menuState?(s({type:1}),c.nextFrame(()=>{var e;return null==(e=a.buttonRef.current)?void 0:e.focus({preventScroll:!0})})):(t.preventDefault(),s({type:0})))}),h=(0,_.useMemo)(()=>({open:0===a.menuState}),[a]),p={ref:l,id:o,type:(0,oa.f)(e,a.buttonRef),"aria-haspopup":"menu","aria-controls":null==(n=a.itemsRef.current)?void 0:n.id,"aria-expanded":0===a.menuState,onKeyDown:u,onKeyUp:d,onClick:f};return(0,rv.sY)({ourProps:p,theirProps:i,slot:h,defaultTag:ia,name:"Menu.Button"})}let il="div",ic=rv.AN.RenderStrategy|rv.AN.Static;function iu(e,t){var n,r;let o=(0,r9.M)(),{id:i=`headlessui-menu-items-${o}`,...a}=e,[s,l]=it("Menu.Items"),c=(0,rC.T)(s.itemsRef,t),u=o4(s.itemsRef),d=rL(),f=rw(),h=null!==f?(f&rb.Open)===rb.Open:0===s.menuState;(0,_.useEffect)(()=>{let e=s.itemsRef.current;e&&0===s.menuState&&e!==(null==u?void 0:u.activeElement)&&e.focus({preventScroll:!0})},[s.menuState,s.itemsRef,u]),o5({container:s.itemsRef.current,enabled:0===s.menuState,accept:e=>"menuitem"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let p=(0,rP.z)(e=>{var t,n;switch(d.dispose(),e.key){case r7.R.Space:if(""!==s.searchQuery)return e.preventDefault(),e.stopPropagation(),l({type:3,value:e.key});case r7.R.Enter:if(e.preventDefault(),e.stopPropagation(),l({type:1}),null!==s.activeItemIndex){let{dataRef:e}=s.items[s.activeItemIndex];null==(n=null==(t=e.current)?void 0:t.domRef.current)||n.click()}(0,oi.wI)(s.buttonRef.current);break;case r7.R.ArrowDown:return e.preventDefault(),e.stopPropagation(),l({type:2,focus:ot.Next});case r7.R.ArrowUp:return e.preventDefault(),e.stopPropagation(),l({type:2,focus:ot.Previous});case r7.R.Home:case r7.R.PageUp:return e.preventDefault(),e.stopPropagation(),l({type:2,focus:ot.First});case r7.R.End:case r7.R.PageDown:return e.preventDefault(),e.stopPropagation(),l({type:2,focus:ot.Last});case r7.R.Escape:e.preventDefault(),e.stopPropagation(),l({type:1}),(0,rA.k)().nextFrame(()=>{var e;return null==(e=s.buttonRef.current)?void 0:e.focus({preventScroll:!0})});break;case r7.R.Tab:e.preventDefault(),e.stopPropagation(),l({type:1}),(0,rA.k)().nextFrame(()=>{(0,oi.EO)(s.buttonRef.current,e.shiftKey?oi.TO.Previous:oi.TO.Next)});break;default:1===e.key.length&&(l({type:3,value:e.key}),d.setTimeout(()=>l({type:4}),350))}}),m=(0,rP.z)(e=>{e.key===r7.R.Space&&e.preventDefault()}),g=(0,_.useMemo)(()=>({open:0===s.menuState}),[s]),x={"aria-activedescendant":null===s.activeItemIndex||null==(n=s.items[s.activeItemIndex])?void 0:n.id,"aria-labelledby":null==(r=s.buttonRef.current)?void 0:r.id,id:i,onKeyDown:p,onKeyUp:m,role:"menu",tabIndex:0,ref:c};return(0,rv.sY)({ourProps:x,theirProps:a,slot:g,defaultTag:il,features:ic,visible:h,name:"Menu.Items"})}let id=_.Fragment;function ih(e,t){let n=(0,r9.M)(),{id:r=`headlessui-menu-item-${n}`,disabled:o=!1,...i}=e,[a,s]=it("Menu.Item"),l=null!==a.activeItemIndex&&a.items[a.activeItemIndex].id===r,c=(0,_.useRef)(null),u=(0,rC.T)(t,c);(0,rE.e)(()=>{if(a.__demoMode||0!==a.menuState||!l||0===a.activationTrigger)return;let e=(0,rA.k)();return e.requestAnimationFrame(()=>{var e,t;null==(t=null==(e=c.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})}),e.dispose},[a.__demoMode,c,l,a.menuState,a.activationTrigger,a.activeItemIndex]);let d=ow(c),f=(0,_.useRef)({disabled:o,domRef:c,get textValue(){return d()}});(0,rE.e)(()=>{f.current.disabled=o},[f,o]),(0,rE.e)(()=>(s({type:5,id:r,dataRef:f}),()=>s({type:6,id:r})),[f,r]);let h=(0,rP.z)(()=>{s({type:1})}),p=(0,rP.z)(e=>{if(o)return e.preventDefault();s({type:1}),(0,oi.wI)(a.buttonRef.current)}),m=(0,rP.z)(()=>{if(o)return s({type:2,focus:ot.Nothing});s({type:2,focus:ot.Specific,id:r})}),g=ox(),x=(0,rP.z)(e=>g.update(e)),v=(0,rP.z)(e=>{g.wasMoved(e)&&(o||l||s({type:2,focus:ot.Specific,id:r,trigger:0}))}),y=(0,rP.z)(e=>{g.wasMoved(e)&&(o||l&&s({type:2,focus:ot.Nothing}))}),b=(0,_.useMemo)(()=>({active:l,disabled:o,close:h}),[l,o,h]);return(0,rv.sY)({ourProps:{id:r,ref:u,role:"menuitem",tabIndex:!0===o?void 0:-1,"aria-disabled":!0===o||void 0,disabled:void 0,onClick:p,onFocus:m,onPointerEnter:x,onMouseEnter:x,onPointerMove:v,onMouseMove:v,onPointerLeave:y,onMouseLeave:y},theirProps:i,slot:b,defaultTag:id,name:"Menu.Item"})}let ip=Object.assign((0,rv.yV)(ii),{Button:(0,rv.yV)(is),Items:(0,rv.yV)(iu),Item:(0,rv.yV)(ih)}),im=e=>"object"==typeof e&&null!=e&&1===e.nodeType,ig=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,ix=(e,t)=>{if(e.clientHeight{let t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeightit||i>e&&a=t&&s>=n?i-e-r:a>t&&sn?a-t+o:0,iy=e=>{let t=e.parentElement;return null==t?e.getRootNode().host||null:t},ib=(e,t)=>{var n,r,o,i;if("undefined"==typeof document)return[];let{scrollMode:a,block:s,inline:l,boundary:c,skipOverflowHiddenElements:u}=t,d="function"==typeof c?c:e=>e!==c;if(!im(e))throw TypeError("Invalid target");let f=document.scrollingElement||document.documentElement,h=[],p=e;for(;im(p)&&d(p);){if((p=iy(p))===f){h.push(p);break}null!=p&&p===document.body&&ix(p)&&!ix(document.documentElement)||null!=p&&ix(p,u)&&h.push(p)}let m=null!=(r=null==(n=window.visualViewport)?void 0:n.width)?r:innerWidth,g=null!=(i=null==(o=window.visualViewport)?void 0:o.height)?i:innerHeight,{scrollX:x,scrollY:v}=window,{height:y,width:b,top:w,right:k,bottom:_,left:j}=e.getBoundingClientRect(),{top:E,right:O,bottom:S,left:C}=(e=>{let t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e),T="start"===s||"nearest"===s?w-E:"end"===s?_+S:w+y/2-E+S,A="center"===l?j+b/2-C+O:"end"===l?k+O:j-C,R=[];for(let e=0;e=0&&j>=0&&_<=g&&k<=m&&w>=o&&_<=c&&j>=u&&k<=i)break;let d=getComputedStyle(t),p=parseInt(d.borderLeftWidth,10),E=parseInt(d.borderTopWidth,10),O=parseInt(d.borderRightWidth,10),S=parseInt(d.borderBottomWidth,10),C=0,N=0,I="offsetWidth"in t?t.offsetWidth-t.clientWidth-p-O:0,M="offsetHeight"in t?t.offsetHeight-t.clientHeight-E-S:0,L="offsetWidth"in t?0===t.offsetWidth?0:r/t.offsetWidth:0,Z="offsetHeight"in t?0===t.offsetHeight?0:n/t.offsetHeight:0;if(f===t)C="start"===s?T:"end"===s?T-g:"nearest"===s?iv(v,v+g,g,E,S,v+T,v+T+y,y):T-g/2,N="start"===l?A:"center"===l?A-m/2:"end"===l?A-m:iv(x,x+m,m,p,O,x+A,x+A+b,b),C=Math.max(0,C+v),N=Math.max(0,N+x);else{C="start"===s?T-o-E:"end"===s?T-c+S+M:"nearest"===s?iv(o,c,n,E,S+M,T,T+y,y):T-(o+n/2)+M/2,N="start"===l?A-u-p:"center"===l?A-(u+r/2)+I/2:"end"===l?A-i+O+I:iv(u,i,r,p,O+I,A,A+b,b);let{scrollLeft:e,scrollTop:a}=t;C=0===Z?0:Math.max(0,Math.min(a+C/Z,t.scrollHeight-n/Z+M)),N=0===L?0:Math.max(0,Math.min(e+N/L,t.scrollWidth-r/L+I)),T+=a-C,A+=e-N}R.push({el:t,top:C,left:N})}return R},iw=e=>{var t;return!1===e?{block:"end",inline:"nearest"}:(t=e)===Object(t)&&0!==Object.keys(t).length?e:{block:"start",inline:"nearest"}};function ik(e,t){var n;if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;let r=(e=>{let t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);if("object"==typeof(n=t)&&"function"==typeof n.behavior)return t.behavior(ib(e,t));let o="boolean"==typeof t||null==t?void 0:t.behavior;for(let{el:n,top:i,left:a}of ib(e,iw(t))){let e=i-r.top+r.bottom,t=a-r.left+r.right;n.scroll({top:e,left:t,behavior:o})}}var i_=n(97605),ij=n(96593),iE=n.n(ij),iO={CASE_SENSITIVE_EQUAL:7,EQUAL:6,STARTS_WITH:5,WORD_STARTS_WITH:4,CONTAINS:3,ACRONYM:2,MATCHES:1,NO_MATCH:0};iC.rankings=iO;var iS=function(e,t){return String(e.rankedValue).localeCompare(String(t.rankedValue))};function iC(e,t,n){void 0===n&&(n={});var r=n,o=r.keys,i=r.threshold,a=void 0===i?iO.MATCHES:i,s=r.baseSort,l=void 0===s?iS:s,c=r.sorter;return(void 0===c?function(e){return e.sort(function(e,t){return iI(e,t,l)})}:c)(e.reduce(u,[])).map(function(e){return e.item});function u(e,r,i){var s=iT(r,o,t,n),l=s.rank,c=s.keyThreshold;return l>=(void 0===c?a:c)&&e.push((0,i_.Z)({},s,{item:r,index:i})),e}}function iT(e,t,n,r){if(!t){var o=e;return{rankedValue:o,rank:iA(o,n,r),keyIndex:-1,keyThreshold:r.threshold}}return iP(e,t).reduce(function(e,t,o){var i=e.rank,a=e.rankedValue,s=e.keyIndex,l=e.keyThreshold,c=t.itemValue,u=t.attributes,d=iA(c,n,r),f=a,h=u.minRanking,p=u.maxRanking,m=u.threshold;return d=iO.MATCHES?d=h:d>p&&(d=p),d>i&&(i=d,s=o,l=m,f=c),{rankedValue:f,rank:i,keyIndex:s,keyThreshold:l}},{rankedValue:e,rank:iO.NO_MATCH,keyIndex:-1,keyThreshold:r.threshold})}function iA(e,t,n){return(e=iM(e,n),(t=iM(t,n)).length>e.length)?iO.NO_MATCH:e===t?iO.CASE_SENSITIVE_EQUAL:(e=e.toLowerCase())===(t=t.toLowerCase())?iO.EQUAL:e.startsWith(t)?iO.STARTS_WITH:e.includes(" "+t)?iO.WORD_STARTS_WITH:e.includes(t)?iO.CONTAINS:1===t.length?iO.NO_MATCH:iR(e).includes(t)?iO.ACRONYM:iN(e,t)}function iR(e){var t="";return e.split(" ").forEach(function(e){e.split("-").forEach(function(e){t+=e.substr(0,1)})}),t}function iN(e,t){var n=0,r=0;function o(e,t,r){for(var o=r,i=t.length;o-1))return iO.NO_MATCH;return i(r-a)}function iI(e,t,n){var r=-1,o=1,i=e.rank,a=e.keyIndex,s=t.rank,l=t.keyIndex;return i!==s?i>s?r:o:a===l?n(e,t):at in e?iH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,iq=(e,t)=>{for(var n in t||(t={}))iG.call(t,n)&&iV(e,n,t[n]);if(i$)for(var n of i$(t))iU.call(t,n)&&iV(e,n,t[n]);return e},iX=(e,t)=>iB(e,iW(t)),iK=(e,t)=>{var n={};for(var r in e)iG.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&i$)for(var r of i$(e))0>t.indexOf(r)&&iU.call(e,r)&&(n[r]=e[r]);return n},iQ=(e,t,n)=>new Promise((r,o)=>{var i=e=>{try{s(n.next(e))}catch(e){o(e)}},a=e=>{try{s(n.throw(e))}catch(e){o(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(i,a);s((n=n.apply(e,t)).next())}),iY=(0,_.createContext)({}),iJ=(0,_.createContext)(e=>e),i0=(0,_.createContext)(null),i1=new WeakMap,i2=(0,_.createContext)(i1),i5=()=>(0,_.useContext)(iY),i4=()=>(0,_.useContext)(iJ),i6=()=>(0,_.useContext)(i0),i3=()=>(0,_.useContext)(i2),i9=({children:e})=>{let[t,n]=(0,_.useState)({}),r=(0,_.useRef)(null);return a4&&!r.current&&(r.current=new IntersectionObserver(e=>{n(t=>{let n=iq({},t);for(let t of e)if((null==t?void 0:t.rootBounds)&&i1.has(t.target)){let[e,r]=i1.get(t.target),o=t.boundingClientRect.y+t.boundingClientRect.height<=t.rootBounds.y+t.rootBounds.height,i=t.intersectionRatio>0;n[e]={index:r,aboveHalfViewport:o,insideHalfViewport:i}}let r="",o=1/0,i=-1;for(let e in n)n[e].isActive=!1,n[e].insideHalfViewport&&n[e].indexi&&(i=n[e].index,r=e);return n[r]&&(n[r].isActive=!0),n})},{rootMargin:"0px 0px -50%",threshold:[0,1]})),(0,w.jsx)(iY.Provider,{value:t,children:(0,w.jsx)(iJ.Provider,{value:n,children:(0,w.jsx)(i2.Provider,{value:i1,children:(0,w.jsx)(i0.Provider,{value:r.current,children:e})})})})},i8=(0,_.createContext)({menu:!1,setMenu:()=>!1}),i7=()=>(0,_.useContext)(i8),ae=i8.Provider,at=(0,_.createContext)(iq({title:"",frontMatter:{}},sn));function an(){return(0,_.useContext)(at)}var ar=({children:e,value:{themeConfig:t,pageOpts:n}})=>{let[r,o]=(0,_.useState)(!1);v||(v=iq(iq({},sn),Object.fromEntries(Object.entries(t).map(([e,t])=>[e,t&&"object"==typeof t&&sr.includes(e)?iq(iq({},sn[e]),t):t]))));let i=iX(iq(iX(iq({},v),{flexsearch:n.flexsearch}),"boolean"==typeof n.newNextLinkBehavior&&{newNextLinkBehavior:n.newNextLinkBehavior}),{title:n.title,frontMatter:n.frontMatter}),{nextThemes:a}=i;return(0,w.jsx)(tF,{attribute:"class",disableTransitionOnChange:!0,defaultTheme:a.defaultTheme,storageKey:a.storageKey,forcedTheme:a.forcedTheme,children:(0,w.jsx)(at.Provider,{value:i,children:(0,w.jsx)(ae,{value:{menu:r,setMenu:o},children:e})})})},ao=(0,_.createContext)(e=>e),ai=()=>(0,_.useContext)(ao),aa=ao.Provider,as=Number(tI.i8.split(".")[0]),al=(0,_.forwardRef)(function(e,t){var n=e,{href:r="",children:o,newWindow:i}=n,a=iK(n,["href","children","newWindow"]);let s=an();return i?(0,w.jsxs)("a",iX(iq({ref:t,href:r,target:"_blank",rel:"noreferrer"},a),{children:[o,(0,w.jsx)("span",{className:"nx-sr-only nx-select-none",children:" (opens in a new tab)"})]})):r?as>12||s.newNextLinkBehavior?(0,w.jsx)(tN(),iX(iq({ref:t,href:r},a),{children:o})):(0,w.jsx)(tN(),{href:r,passHref:!0,children:(0,w.jsx)("a",iX(iq({ref:t},a),{children:o}))}):(0,w.jsx)("a",iX(iq({ref:t},a),{children:o}))});al.displayName="Anchor";var ac=({repository:e="",title:t,labels:n})=>{let r=t6()(e);if(!r)throw Error("Invalid `docsRepositoryBase` URL!");return r.resource.includes("gitlab")?`${r.protocol}://${r.resource}/${r.owner}/${r.name}/-/issues/new?issue[title]=${encodeURIComponent(t)}${n?`&issue[description]=/label${encodeURIComponent(` ~${n} +`)}`:""}`:r.resource.includes("github")?`${r.protocol}://${r.resource}/${r.owner}/${r.name}/issues/new?title=${encodeURIComponent(t)}&labels=${n||""}`:"#"};function au(e,t){return e?"function"!=typeof e?e:(0,w.jsx)(e,iq({},t)):null}function ad(e,t={}){return("function"==typeof e?e(t):e)||""}function af(e){let t=(0,_.useRef)(null),n=(0,_.useRef)(null),r=(0,_.useRef)(),o=(0,_.useCallback)(()=>{var o;t.current&&n.current&&(null==(o=r.current)||o.call(r),r.current=rp(t.current,n.current,e).destroy)},[t,n,r,e]);return(0,_.useMemo)(()=>[e=>{t.current=e,o()},e=>{n.current=e,o()}],[t,n,o])}function ah(e=""){let t=an(),n=t6()(t.docsRepositoryBase||"");if(!n)throw Error("Invalid `docsRepositoryBase` URL!");return`${n.href}/${e}`}function ap(){let{banner:e}=an();if(!e.text)return null;let t=`try{if(localStorage.getItem(${JSON.stringify(e.key)})==='0'){document.body.classList.add('nextra-banner-hidden')}}catch(e){}`;return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("script",{dangerouslySetInnerHTML:{__html:t}}),(0,w.jsxs)("div",{className:(0,j.Z)("nextra-banner-container nx-sticky nx-top-0 nx-z-20 nx-flex nx-items-center md:nx-relative","nx-h-[var(--nextra-banner-height)] [body.nextra-banner-hidden_&]:nx-hidden","nx-text-slate-50 dark:nx-text-white nx-bg-neutral-900 dark:nx-bg-[linear-gradient(1deg,#383838,#212121)]","nx-px-2 ltr:nx-pl-10 rtl:nx-pr-10 print:nx-hidden"),children:[(0,w.jsx)("div",{className:"nx-w-full nx-truncate nx-px-4 nx-text-center nx-font-medium nx-text-sm",children:au(e.text)}),e.dismissible&&(0,w.jsx)("button",{type:"button","aria-label":"Dismiss banner",className:"nx-w-8 nx-h-8 nx-opacity-80 hover:nx-opacity-100",onClick:()=>{try{localStorage.setItem(e.key,"0")}catch(e){}document.body.classList.add("nextra-banner-hidden")},children:(0,w.jsx)(A.b0,{className:"nx-mx-auto nx-h-4 nx-w-4"})})]})]})}function am({activePath:e}){return(0,w.jsx)("div",{className:"nextra-breadcrumb nx-mt-1.5 nx-flex nx-items-center nx-gap-1 nx-overflow-hidden nx-text-sm nx-text-gray-500 dark:nx-text-gray-400 contrast-more:nx-text-current",children:e.map((t,n)=>{let r=!t.children||t.withIndexPage,o=n===e.length-1;return(0,w.jsxs)(_.Fragment,{children:[n>0&&(0,w.jsx)(A.LZ,{className:"nx-w-3.5 nx-shrink-0"}),(0,w.jsx)("div",{className:(0,j.Z)("nx-whitespace-nowrap nx-transition-colors",o?"nx-font-medium nx-text-gray-700 contrast-more:nx-font-bold contrast-more:nx-text-current dark:nx-text-gray-100 contrast-more:dark:nx-text-current":["nx-min-w-[24px] nx-overflow-hidden nx-text-ellipsis",r&&"hover:nx-text-gray-900 dark:hover:nx-text-gray-100"]),title:t.title,children:r&&!o?(0,w.jsx)(al,{href:t.route,children:t.title}):t.title})]},t.route+t.name)})})}function ag({children:e,className:t,isOpen:n,horizontal:r=!1}){let o=(0,_.useRef)(null),i=(0,_.useRef)(null),a=(0,_.useRef)(0),s=(0,_.useRef)(n),l=(0,_.useRef)(!0);return(0,_.useEffect)(()=>{let e=o.current,t=i.current,s=a.current;s&&clearTimeout(s),!l.current&&e&&t&&(e.classList.toggle("nx-duration-500",!n),e.classList.toggle("nx-duration-300",n),r?(t.style.width=`${t.clientWidth}px`,e.style.width=`${t.clientWidth}px`):e.style.height=`${t.clientHeight}px`,n?a.current=window.setTimeout(()=>{e.style.removeProperty("height")},300):setTimeout(()=>{r?e.style.width="0px":e.style.height="0px"},0))},[r,n]),(0,_.useEffect)(()=>{l.current=!1},[]),(0,w.jsx)("div",{ref:o,className:"nx-transform-gpu nx-overflow-hidden nx-transition-all nx-ease-in-out motion-reduce:nx-transition-none",style:s.current||r?void 0:{height:0},children:(0,w.jsx)("div",{ref:i,className:(0,j.Z)("nx-transition-opacity nx-duration-500 nx-ease-in-out motion-reduce:nx-transition-none",n?"nx-opacity-100":"nx-opacity-0",t),children:e})})}var ax=(0,_.memo)(function({value:e,match:t}){let n;if(!e)return null;let r=e.split(""),o=RegExp(rx(t.trim()).replaceAll(" ","|"),"ig"),i=0,a=[];for(;(n=o.exec(e))&&0!==o.lastIndex;){let e=r.splice(0,n.index-i).join(""),t=r.splice(0,o.lastIndex-n.index).join("");a.push(e,(0,w.jsx)("span",{className:"nx-text-primary-600",children:t},n.index)),i=o.lastIndex}return(0,w.jsxs)(w.Fragment,{children:[a,r.join("")]})}),av=(0,_.forwardRef)((e,t)=>{var n=e,{className:r,suffix:o}=n,i=iK(n,["className","suffix"]);return(0,w.jsxs)("div",{className:"nx-relative nx-flex nx-items-center nx-text-gray-900 contrast-more:nx-text-gray-800 dark:nx-text-gray-300 contrast-more:dark:nx-text-gray-300",children:[(0,w.jsx)("input",iq({ref:t,spellCheck:!1,className:(0,j.Z)(r,"nx-block nx-w-full nx-appearance-none nx-rounded-lg nx-px-3 nx-py-2 nx-transition-colors","nx-text-base nx-leading-tight md:nx-text-sm","nx-bg-black/[.05] dark:nx-bg-gray-50/10","focus:nx-bg-white dark:focus:nx-bg-dark","placeholder:nx-text-gray-500 dark:placeholder:nx-text-gray-400","contrast-more:nx-border contrast-more:nx-border-current")},i)),o]})});av.displayName="Input";var ay=["input","select","button","textarea"];function ab({className:e,overlayClassName:t,value:n,onChange:r,onActive:o,loading:i,error:a,results:s}){let[l,c]=(0,_.useState)(!1),u=an(),[d,f]=(0,_.useState)(0),h=(0,k.useRouter)(),{setMenu:p}=i7(),m=(0,_.useRef)(null),g=(0,_.useRef)(null),[x,v]=(0,_.useState)(!1),[y,b]=(0,_.useState)(!0);(0,_.useEffect)(()=>{f(0)},[n]),(0,_.useEffect)(()=>{let e=e=>{let t=document.activeElement,n=null==t?void 0:t.tagName.toLowerCase();!m.current||!n||ay.includes(n)||null!=t&&t.isContentEditable||("/"===e.key||"k"===e.key&&(e.metaKey||e.ctrlKey)?(e.preventDefault(),m.current.focus({preventScroll:!0})):"Escape"===e.key&&(c(!1),m.current.blur()))};return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}},[]);let O=(0,_.useCallback)(()=>{var e;null==(e=m.current)||e.blur(),r(""),c(!1),p(!1)},[r,p]),S=(0,_.useCallback)(e=>{let{index:t}=e.currentTarget.dataset;f(Number(t))},[]),C=(0,_.useCallback)(function(e){var t,n,r;switch(e.key){case"ArrowDown":if(d+1 a`);n&&(e.preventDefault(),S({currentTarget:n}),n.focus())}break;case"ArrowUp":if(d-1>=0){let t=null==(n=g.current)?void 0:n.querySelector(`li:nth-of-type(${d}) > a`);t&&(e.preventDefault(),S({currentTarget:t}),t.focus())}break;case"Enter":{let e=s[d];e&&y&&(h.push(e.route),O());break}case"Escape":c(!1),null==(r=m.current)||r.blur()}},[d,s,h,O,S,y]),T=E(),R=l&&!!n,N=(0,w.jsx)(r6,{show:T&&(!l||!!n),as:_.Fragment,enter:"nx-transition-opacity",enterFrom:"nx-opacity-0",enterTo:"nx-opacity-100",leave:"nx-transition-opacity",leaveFrom:"nx-opacity-100",leaveTo:"nx-opacity-0",children:(0,w.jsx)("kbd",{className:(0,j.Z)("nx-absolute nx-my-1.5 nx-select-none ltr:nx-right-1.5 rtl:nx-left-1.5","nx-h-5 nx-rounded nx-bg-white nx-px-1.5 nx-font-mono nx-text-[10px] nx-font-medium nx-text-gray-500","nx-border dark:nx-border-gray-100/20 dark:nx-bg-dark/50","contrast-more:nx-border-current contrast-more:nx-text-current contrast-more:dark:nx-border-current","nx-items-center nx-gap-1 nx-transition-opacity",n?"nx-z-20 nx-flex nx-cursor-pointer hover:nx-opacity-70":"nx-pointer-events-none nx-hidden sm:nx-flex"),title:n?"Clear":void 0,onClick:()=>{r("")},children:n&&x?"ESC":T&&(navigator.userAgent.includes("Macintosh")?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("span",{className:"nx-text-xs",children:"⌘"}),"K"]}):"CTRL K")})}),I=(0,_.useCallback)(e=>{b("compositionend"===e.type)},[]);return(0,w.jsxs)("div",{className:(0,j.Z)("nextra-search nx-relative md:nx-w-64",e),children:[R&&(0,w.jsx)("div",{className:"nx-fixed nx-inset-0 nx-z-10",onClick:()=>c(!1)}),(0,w.jsx)(av,{ref:m,value:n,onChange:e=>{let{value:t}=e.target;r(t),c(!!t)},onFocus:()=>{null==o||o(!0),v(!0)},onBlur:()=>{v(!1)},onCompositionStart:I,onCompositionEnd:I,type:"search",placeholder:ad(u.search.placeholder),onKeyDown:C,suffix:N}),(0,w.jsx)(r6,{show:R,as:r6.Child,leave:"nx-transition-opacity nx-duration-100",leaveFrom:"nx-opacity-100",leaveTo:"nx-opacity-0",children:(0,w.jsx)("ul",{className:(0,j.Z)("nextra-scrollbar","nx-border nx-border-gray-200 nx-bg-white nx-text-gray-100 dark:nx-border-neutral-800 dark:nx-bg-neutral-900","nx-absolute nx-top-full nx-z-20 nx-mt-2 nx-overflow-auto nx-overscroll-contain nx-rounded-xl nx-py-2.5 nx-shadow-xl","nx-max-h-[min(calc(50vh-11rem-env(safe-area-inset-bottom)),400px)]","md:nx-max-h-[min(calc(100vh-5rem-env(safe-area-inset-bottom)),400px)]","nx-inset-x-0 ltr:md:nx-left-auto rtl:md:nx-right-auto","contrast-more:nx-border contrast-more:nx-border-gray-900 contrast-more:dark:nx-border-gray-50",t),ref:g,style:{transition:"max-height .2s ease"},children:a?(0,w.jsxs)("span",{className:"nx-flex nx-select-none nx-justify-center nx-gap-2 nx-p-8 nx-text-center nx-text-sm nx-text-red-500",children:[(0,w.jsx)(A.AV,{className:"nx-h-5 nx-w-5"}),ad(u.search.error)]}):i?(0,w.jsxs)("span",{className:"nx-flex nx-select-none nx-justify-center nx-gap-2 nx-p-8 nx-text-center nx-text-sm nx-text-gray-400",children:[(0,w.jsx)(A.L4,{className:"nx-h-5 nx-w-5 nx-animate-spin"}),au(u.search.loading)]}):s.length>0?s.map(({route:e,prefix:t,children:n,id:r},o)=>(0,w.jsxs)(_.Fragment,{children:[t,(0,w.jsx)("li",{className:(0,j.Z)("nx-mx-2.5 nx-break-words nx-rounded-md","contrast-more:nx-border",o===d?"nx-bg-primary-500/10 nx-text-primary-600 contrast-more:nx-border-primary-500":"nx-text-gray-800 contrast-more:nx-border-transparent dark:nx-text-gray-300"),children:(0,w.jsx)(al,{className:"nx-block nx-scroll-m-12 nx-px-2.5 nx-py-2",href:e,"data-index":o,onFocus:S,onMouseMove:S,onClick:O,onKeyDown:C,children:n})})]},r)):au(u.search.emptyResult)})})]})}var aw={},ak=new Map,a_=(e,t)=>{let n=e+"@"+t;if(ak.has(n))return ak.get(n);let r=aj(e,t);return ak.set(n,r),r},aj=(e,t)=>iQ(void 0,null,function*(){let n=yield fetch(`${e}/_next/static/chunks/nextra-data-${t}.json`),r=yield n.json(),o=new(rg()).Document({cache:100,tokenize:"full",document:{id:"id",index:"content",store:["title"]},context:{resolution:9,depth:2,bidirectional:!0}}),i=new(rg()).Document({cache:100,tokenize:"full",document:{id:"id",index:"content",tag:"pageId",store:["title","content","url","display"]},context:{resolution:9,depth:2,bidirectional:!0}}),a=0;for(let[e,t]of Object.entries(r)){let n="";for(let[r,o]of(++a,Object.entries(t.data))){let[s,l]=r.split("#"),c=e+(s?"#"+s:""),u=l||t.title,d=o.split("\n");i.add(iq({id:c,url:c,title:u,pageId:`page_${a}`,content:u},d[0]&&{display:d[0]}));for(let e=0;e{var n,r;if(!e)return;let[o,i]=aw[t],a=(null==(n=o.search(e,5,{enrich:!0,suggest:!0})[0])?void 0:n.result)||[],s=[],c={};for(let t=0;te._page_rk===t._page_rk?e._section_rk-t._section_rk:c[e._page_rk]!==c[t._page_rk]?c[t._page_rk]-c[e._page_rk]:e._page_rk-t._page_rk).map(e=>({id:`${e._page_rk}_${e._section_rk}`,route:e.route,prefix:e.prefix,children:e.children})))},f=(0,_.useCallback)(e=>iQ(this,null,function*(){if(e&&!aw[t]){o(!0);try{yield a_(n,t)}catch(e){a(!0)}o(!1)}}),[t,n]),h=e=>iQ(this,null,function*(){if(u(e),!r){if(!aw[t]){o(!0);try{yield a_(n,t)}catch(e){a(!0)}o(!1)}d(e)}});return(0,w.jsx)(ab,{loading:r,error:i,value:c,onChange:h,onActive:f,className:e,overlayClassName:"nx-w-screen nx-min-h-[100px] nx-max-w-[min(calc(100vw-2rem),calc(100%+20rem))]",results:s})}function aO({options:e,selected:t,onChange:n,title:r,className:o}){let[i,a]=af({strategy:"fixed",placement:"top-start",modifiers:[{name:"offset",options:{offset:[0,10]}},{name:"sameWidth",enabled:!0,fn({state:e}){e.styles.popper.minWidth=`${e.rects.reference.width}px`},phase:"beforeWrite",requires:["computeStyles"]}]});return(0,w.jsx)(o$,{value:t,onChange:n,children:({open:n})=>(0,w.jsxs)(o$.Button,{ref:i,title:r,className:(0,j.Z)("nx-h-7 nx-rounded-md nx-px-2 nx-text-left nx-text-xs nx-font-medium nx-text-gray-600 nx-transition-colors dark:nx-text-gray-400",n?"nx-bg-gray-200 nx-text-gray-900 dark:nx-bg-primary-100/10 dark:nx-text-gray-50":"hover:nx-bg-gray-100 hover:nx-text-gray-900 dark:hover:nx-bg-primary-100/5 dark:hover:nx-text-gray-50",o),children:[t.name,(0,w.jsx)(aS,{children:(0,w.jsx)(r6,{ref:a,show:n,as:o$.Options,className:"nx-z-20 nx-max-h-64 nx-overflow-auto nx-rounded-md nx-ring-1 nx-ring-black/5 nx-bg-white nx-py-1 nx-text-sm nx-shadow-lg dark:nx-ring-white/20 dark:nx-bg-neutral-800",leave:"nx-transition-opacity",leaveFrom:"nx-opacity-100",leaveTo:"nx-opacity-0",children:e.map(e=>(0,w.jsxs)(o$.Option,{value:e,className:({active:e})=>(0,j.Z)(e?"nx-bg-primary-50 nx-text-primary-600 dark:nx-bg-primary-500/10":"nx-text-gray-800 dark:nx-text-gray-100","nx-relative nx-cursor-pointer nx-whitespace-nowrap nx-py-1.5","nx-transition-colors ltr:nx-pl-3 ltr:nx-pr-9 rtl:nx-pr-3 rtl:nx-pl-9"),children:[e.name,e.key===t.key&&(0,w.jsx)("span",{className:"nx-absolute nx-inset-y-0 nx-flex nx-items-center ltr:nx-right-3 rtl:nx-left-3",children:(0,w.jsx)(A.nQ,{})})]},e.key))})})]})})}function aS(e){return E()?(0,oG.createPortal)(e.children,document.body):null}function aC({lite:e,className:t}){let n=an(),{locale:r,asPath:o}=(0,k.useRouter)(),i=n.i18n;if(!i.length)return null;let a=i.find(e=>r===e.locale);return(0,w.jsx)(aO,{title:"Change language",className:t,onChange:e=>{let t=new Date(Date.now()+31536e6);document.cookie=`NEXT_LOCALE=${e.key}; expires=${t.toUTCString()}; path=/`,location.href=(0,r3.addBasePath)(o)},selected:{key:(null==a?void 0:a.locale)||"",name:(0,w.jsxs)("span",{className:"nx-flex nx-items-center nx-gap-2",children:[(0,w.jsx)(A.n9,{}),(0,w.jsx)("span",{className:e?"nx-hidden":"",children:null==a?void 0:a.text})]})},options:i.map(e=>({key:e.locale,name:e.text}))})}function aT({menu:e}){let t=an();return(0,w.jsxs)("footer",{className:"nx-bg-gray-100 nx-pb-[env(safe-area-inset-bottom)] dark:nx-bg-neutral-900 print:nx-bg-transparent",children:[(0,w.jsxs)("div",{className:(0,j.Z)("nx-mx-auto nx-flex nx-max-w-[90rem] nx-gap-2 nx-py-2 nx-px-4",e&&(t.i18n.length>0||t.darkMode)?"nx-flex":"nx-hidden"),children:[(0,w.jsx)(aC,{}),t.darkMode&&au(t.themeSwitch.component)]}),(0,w.jsx)("hr",{className:"dark:nx-border-neutral-800"}),(0,w.jsx)("div",{className:(0,j.Z)("nx-mx-auto nx-flex nx-max-w-[90rem] nx-justify-center nx-py-12 nx-text-gray-600 dark:nx-text-gray-400 md:nx-justify-start","nx-pl-[max(env(safe-area-inset-left),1.5rem)] nx-pr-[max(env(safe-area-inset-right),1.5rem)]"),children:au(t.footer.text)})]})}function aA(){var e;let t=an(),{resolvedTheme:n}=tz(),r=E(),o="function"==typeof t.head?t.head({}):t.head,{primaryHue:i,primarySaturation:a}=t,{dark:s,light:l}="number"==typeof i?{dark:i,light:i}:i,{dark:c,light:u}="number"==typeof a?{dark:a,light:a}:a,d=t.frontMatter;return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(o2,iq({title:t.title,description:d.description,canonical:d.canonical,openGraph:d.openGraph},null==(e=t.useNextSeoProps)?void 0:e.call(t))),(0,w.jsxs)(oV(),{children:[t.faviconGlyph?(0,w.jsx)("link",{rel:"icon",href:`data:image/svg+xml;utf8,${t.faviconGlyph}`}):null,r?(0,w.jsx)("meta",{name:"theme-color",content:"dark"===n?"#111":"#fff"}):(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("meta",{name:"theme-color",content:"#fff",media:"(prefers-color-scheme: light)"}),(0,w.jsx)("meta",{name:"theme-color",content:"#111",media:"(prefers-color-scheme: dark)"})]}),(0,w.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0, viewport-fit=cover"}),(0,w.jsx)("style",{children:` + :root { + --nextra-primary-hue: ${l}deg; + --nextra-primary-saturation: ${u}%; + --nextra-navbar-height: 4rem; + --nextra-menu-height: 3.75rem; + --nextra-banner-height: 2.5rem; + } + + .dark { + --nextra-primary-hue: ${s}deg; + --nextra-primary-saturation: ${c}%; + } + `}),o]})]})}var aR={link:(0,j.Z)("nx-flex nx-max-w-[50%] nx-items-center nx-gap-1 nx-py-4 nx-text-base nx-font-medium nx-text-gray-600 nx-transition-colors [word-break:break-word] hover:nx-text-primary-600 dark:nx-text-gray-300 md:nx-text-lg"),icon:(0,j.Z)("nx-inline nx-h-5 nx-shrink-0")},aN=({flatDirectories:e,currentIndex:t})=>{let n=an().navigation,r="boolean"==typeof n?{prev:n,next:n}:n,o=r.prev&&e[t-1],i=r.next&&e[t+1];return(o&&!o.isUnderCurrentDocsTree&&(o=!1),i&&!i.isUnderCurrentDocsTree&&(i=!1),o||i)?(0,w.jsxs)("div",{className:(0,j.Z)("nx-mb-8 nx-flex nx-items-center nx-border-t nx-pt-8 dark:nx-border-neutral-800","contrast-more:nx-border-neutral-400 dark:contrast-more:nx-border-neutral-400","print:nx-hidden"),children:[o&&(0,w.jsxs)(al,{href:o.route,title:o.title,className:(0,j.Z)(aR.link,"ltr:nx-pr-4 rtl:nx-pl-4"),children:[(0,w.jsx)(A.LZ,{className:(0,j.Z)(aR.icon,"ltr:nx-rotate-180")}),o.title]}),i&&(0,w.jsxs)(al,{href:i.route,title:i.title,className:(0,j.Z)(aR.link,"ltr:nx-ml-auto ltr:nx-pl-4 ltr:nx-text-right rtl:nx-mr-auto rtl:nx-pr-4 rtl:nx-text-left"),children:[i.title,(0,w.jsx)(A.LZ,{className:(0,j.Z)(aR.icon,"rtl:nx-rotate-180")})]})]}):null},aI={link:(0,j.Z)("nx-text-sm contrast-more:nx-text-gray-700 contrast-more:dark:nx-text-gray-100"),active:(0,j.Z)("nx-font-medium nx-subpixel-antialiased"),inactive:(0,j.Z)("nx-text-gray-600 hover:nx-text-gray-800 dark:nx-text-gray-400 dark:hover:nx-text-gray-200")};function aM({className:e,menu:t,children:n}){let{items:r}=t,o=Object.fromEntries((t.children||[]).map(e=>[e.name,e]));return(0,w.jsx)("div",{className:"nx-relative nx-inline-block",children:(0,w.jsxs)(ip,{children:[(0,w.jsx)(ip.Button,{className:(0,j.Z)(e,"-nx-ml-2 nx-hidden nx-items-center nx-whitespace-nowrap nx-rounded nx-p-2 md:nx-inline-flex",aI.inactive),children:n}),(0,w.jsx)(r6,{leave:"nx-transition-opacity",leaveFrom:"nx-opacity-100",leaveTo:"nx-opacity-0",children:(0,w.jsx)(ip.Items,{className:"nx-absolute nx-right-0 nx-z-20 nx-mt-1 nx-max-h-64 nx-min-w-full nx-overflow-auto nx-rounded-md nx-ring-1 nx-ring-black/5 nx-bg-white nx-py-1 nx-text-sm nx-shadow-lg dark:nx-ring-white/20 dark:nx-bg-neutral-800",children:Object.entries(r||{}).map(([e,n])=>{var r;return(0,w.jsx)(ip.Item,{children:(0,w.jsx)(al,{href:n.href||(null==(r=o[e])?void 0:r.route)||t.route+"/"+e,className:(0,j.Z)("nx-relative nx-hidden nx-w-full nx-select-none nx-whitespace-nowrap nx-text-gray-600 hover:nx-text-gray-900 dark:nx-text-gray-400 dark:hover:nx-text-gray-100 md:nx-inline-block","nx-py-1.5 nx-transition-colors ltr:nx-pl-3 ltr:nx-pr-9 rtl:nx-pr-3 rtl:nx-pl-9"),newWindow:n.newWindow,children:n.title||e})},e)})})})]})})}function aL({flatDirectories:e,items:t}){let n=an(),r=C(),{menu:o,setMenu:i}=i7();return(0,w.jsxs)("div",{className:"nextra-nav-container nx-sticky nx-top-0 nx-z-20 nx-w-full nx-bg-transparent print:nx-hidden",children:[(0,w.jsx)("div",{className:(0,j.Z)("nextra-nav-container-blur","nx-pointer-events-none nx-absolute nx-z-[-1] nx-h-full nx-w-full nx-bg-white dark:nx-bg-dark","nx-shadow-[0_2px_4px_rgba(0,0,0,.02),0_1px_0_rgba(0,0,0,.06)] dark:nx-shadow-[0_-1px_0_rgba(255,255,255,.1)_inset]","contrast-more:nx-shadow-[0_0_0_1px_#000] contrast-more:dark:nx-shadow-[0_0_0_1px_#fff]")}),(0,w.jsxs)("nav",{className:"nx-mx-auto nx-flex nx-h-[var(--nextra-navbar-height)] nx-max-w-[90rem] nx-items-center nx-justify-end nx-gap-2 nx-pl-[max(env(safe-area-inset-left),1.5rem)] nx-pr-[max(env(safe-area-inset-right),1.5rem)]",children:[n.logoLink?(0,w.jsx)(al,{href:"string"==typeof n.logoLink?n.logoLink:"/",className:"nx-flex nx-items-center hover:nx-opacity-75 ltr:nx-mr-auto rtl:nx-ml-auto",children:au(n.logo)}):(0,w.jsx)("div",{className:"nx-flex nx-items-center ltr:nx-mr-auto rtl:nx-ml-auto",children:au(n.logo)}),t.map(e=>{if("hidden"===e.display)return null;if("menu"===e.type){let t=e;return(0,w.jsxs)(aM,{className:(0,j.Z)(aI.link,"nx-flex nx-gap-1",aI.inactive),menu:t,children:[t.title,(0,w.jsx)(A.LZ,{className:"nx-h-[18px] nx-min-w-[18px] nx-rounded-sm nx-p-0.5",pathClassName:"nx-origin-center nx-transition-transform nx-rotate-90"})]},t.title)}let t=e,n=t.href||t.route||"#";t.children&&(n=(t.withIndexPage?t.route:t.firstChildRoute)||n);let o=t.route===r||r.startsWith(t.route+"/");return(0,w.jsxs)(al,{href:n,className:(0,j.Z)(aI.link,"nx-relative -nx-ml-2 nx-hidden nx-whitespace-nowrap nx-p-2 md:nx-inline-block",!o||t.newWindow?aI.inactive:aI.active),newWindow:t.newWindow,"aria-current":!t.newWindow&&o,children:[(0,w.jsx)("span",{className:"nx-absolute nx-inset-x-0 nx-text-center",children:t.title}),(0,w.jsx)("span",{className:"nx-invisible nx-font-medium",children:t.title})]},n)}),au(n.search.component,{directories:e,className:"nx-hidden md:nx-inline-block mx-min-w-[200px]"}),n.project.link?(0,w.jsx)(al,{className:"nx-p-2 nx-text-current",href:n.project.link,newWindow:!0,children:au(n.project.icon)}):null,n.chat.link?(0,w.jsx)(al,{className:"nx-p-2 nx-text-current",href:n.chat.link,newWindow:!0,children:au(n.chat.icon)}):null,au(n.navbar.extraContent),(0,w.jsx)("button",{type:"button","aria-label":"Menu",className:"nextra-hamburger -nx-mr-2 nx-rounded nx-p-2 active:nx-bg-gray-400/20 md:nx-hidden",onClick:()=>i(!o),children:(0,w.jsx)(A.Oq,{className:(0,j.Z)({open:o})})})]})]})}var aZ=Object.create(null),aP=(0,_.createContext)(null),aD=(0,_.createContext)(null),az=(0,_.createContext)(0),aF=(0,_.memo)(function(e){let t=(0,_.useContext)(az);return(0,w.jsx)(az.Provider,{value:t+1,children:(0,w.jsx)(aB,iq({},e))})}),aH={link:(0,j.Z)("nx-flex nx-rounded nx-px-2 nx-py-1.5 nx-text-sm nx-transition-colors [word-break:break-word]","nx-cursor-pointer [-webkit-tap-highlight-color:transparent] [-webkit-touch-callout:none] contrast-more:nx-border"),inactive:(0,j.Z)("nx-text-gray-500 hover:nx-bg-gray-100 hover:nx-text-gray-900","dark:nx-text-neutral-400 dark:hover:nx-bg-primary-100/5 dark:hover:nx-text-gray-50","contrast-more:nx-text-gray-900 contrast-more:dark:nx-text-gray-50","contrast-more:nx-border-transparent contrast-more:hover:nx-border-gray-900 contrast-more:dark:hover:nx-border-gray-50"),active:(0,j.Z)("nx-bg-primary-100 nx-font-semibold nx-text-primary-800 dark:nx-bg-primary-400/10 dark:nx-text-primary-600","contrast-more:nx-border-primary-500 contrast-more:dark:nx-border-primary-500"),list:(0,j.Z)("nx-flex nx-flex-col nx-gap-1"),border:(0,j.Z)("nx-relative before:nx-absolute before:nx-inset-y-1",'before:nx-w-px before:nx-bg-gray-200 before:nx-content-[""] dark:before:nx-bg-neutral-800',"ltr:nx-pl-3 ltr:before:nx-left-0 rtl:nx-pr-3 rtl:before:nx-right-0")};function aB({item:e,anchors:t}){let[n]=C().split("#"),r=[n,n+"/"].includes(e.route+"/"),o=r||n.startsWith(e.route+"/"),i=(0,_.useContext)(aP),a=!!(null==i?void 0:i.startsWith(e.route+"/")),s=(0,_.useContext)(az),{setMenu:l}=i7(),c=an(),{theme:u}=e,d=void 0===aZ[e.route]?r||o||a||(u&&"collapsed"in u?!u.collapsed:s{let t=()=>{(o||a)&&(aZ[e.route]=!0)},n=()=>{o&&a?aZ[e.route]=!0:delete aZ[e.route]};c.sidebar.autoCollapse?n():t()},[o,a,e.route,c.sidebar.autoCollapse]),"menu"===e.type){let t=e,n=Object.fromEntries((t.children||[]).map(e=>[e.name,e]));e.children=Object.entries(t.items||{}).map(([e,r])=>{let o=n[e]||iX(iq({name:e},"locale"in t&&{locale:t.locale}),{route:t.route+"/"+e});return iq(iq({},o),r)})}let h="withIndexPage"in e&&e.withIndexPage,p=h?al:"button";return(0,w.jsxs)("li",{className:(0,j.Z)({open:d,active:r}),children:[(0,w.jsxs)(p,{href:h?e.route:void 0,className:(0,j.Z)("nx-items-center nx-justify-between nx-gap-2",!h&&"nx-text-left nx-w-full",aH.link,r?aH.active:aH.inactive),onClick:t=>{let n=["svg","path"].includes(t.target.tagName.toLowerCase());if(n&&t.preventDefault(),h){r||n?aZ[e.route]=!d:(aZ[e.route]=!0,l(!1)),f({});return}r||(aZ[e.route]=!d,f({}))},children:[au(c.sidebar.titleComponent,{title:e.title,type:e.type,route:e.route}),(0,w.jsx)(A.LZ,{className:"nx-h-[18px] nx-min-w-[18px] nx-rounded-sm nx-p-0.5 hover:nx-bg-gray-800/5 dark:hover:nx-bg-gray-100/5",pathClassName:(0,j.Z)("nx-origin-center nx-transition-transform rtl:-nx-rotate-180",d&&"ltr:nx-rotate-90 rtl:nx-rotate-[-270deg]")})]}),(0,w.jsx)(ag,{className:"ltr:nx-pr-0 rtl:nx-pl-0 nx-pt-1",isOpen:d,children:Array.isArray(e.children)?(0,w.jsx)(aG,{className:(0,j.Z)(aH.border,"ltr:nx-ml-3 rtl:nx-mr-3"),directories:e.children,base:e.route,anchors:t}):null})]})}function aW({title:e}){let t=an();return(0,w.jsx)("li",{className:(0,j.Z)("[word-break:break-word]",e?"nx-mt-5 nx-mb-2 nx-px-2 nx-py-1.5 nx-text-sm nx-font-semibold nx-text-gray-900 first:nx-mt-0 dark:nx-text-gray-100":"nx-my-4"),children:e?au(t.sidebar.titleComponent,{title:e,type:"separator",route:""}):(0,w.jsx)("hr",{className:"nx-mx-2 nx-border-t nx-border-gray-200 dark:nx-border-primary-100/10"})})}function a$({item:e,anchors:t}){let n=C(),r=(0,_.useContext)(aD),o=e.route&&[n,n+"/"].includes(e.route+"/"),i=i5(),{setMenu:a}=i7(),s=an();return"separator"===e.type?(0,w.jsx)(aW,{title:e.title}):(0,w.jsxs)("li",{className:(0,j.Z)(aH.list,{active:o}),children:[(0,w.jsx)(al,{href:e.href||e.route,newWindow:e.newWindow,className:(0,j.Z)(aH.link,o?aH.active:aH.inactive),onClick:()=>{a(!1)},onFocus:()=>{null==r||r(e.route)},onBlur:()=>{null==r||r(null)},children:au(s.sidebar.titleComponent,{title:e.title,type:e.type,route:e.route})}),o&&t.length>0&&(0,w.jsx)("ul",{className:(0,j.Z)(aH.list,aH.border,"ltr:nx-ml-3 rtl:nx-mr-3"),children:t.map(({id:e,value:t})=>{var n;return(0,w.jsx)("li",{children:(0,w.jsx)("a",{href:`#${e}`,className:(0,j.Z)(aH.link,'nx-flex nx-gap-2 before:nx-opacity-25 before:nx-content-["#"]',(null==(n=i[e])?void 0:n.isActive)?aH.active:aH.inactive),onClick:()=>{a(!1)},children:t})},e)})})]})}function aG({directories:e,anchors:t,className:n,onlyCurrentDocs:r}){return(0,w.jsx)("ul",{className:(0,j.Z)(aH.list,n),children:e.map(e=>!r||e.isUnderCurrentDocsTree?"menu"===e.type||e.children&&(e.children.length||!e.withIndexPage)?(0,w.jsx)(aF,{item:e,anchors:t},e.name):(0,w.jsx)(a$,{item:e,anchors:t},e.name):null)})}function aU({docsDirectories:e,flatDirectories:t,fullDirectories:n,asPopover:r=!1,headings:o,includePlaceholder:i}){let a=an(),{menu:s,setMenu:l}=i7(),c=(0,k.useRouter)(),[u,d]=(0,_.useState)(null),[f,h]=(0,_.useState)(!0),[p,m]=(0,_.useState)(!1),g=(0,_.useMemo)(()=>o.filter(e=>2===e.depth),[o]),x=(0,_.useRef)(null),v=(0,_.useRef)(null),y=E();(0,_.useEffect)(()=>{s?document.body.classList.add("nx-overflow-hidden","md:nx-overflow-auto"):document.body.classList.remove("nx-overflow-hidden","md:nx-overflow-auto")},[s]),(0,_.useEffect)(()=>{var e;let t=null==(e=x.current)?void 0:e.querySelector("li.active");if(t&&(window.innerWidth>767||s)){let e=()=>{ik(t,{block:"center",inline:"center",scrollMode:"always",boundary:v.current})};s?setTimeout(e,300):e()}},[s]),(0,_.useEffect)(()=>{l(!1)},[c.asPath,l]);let b=a.i18n.length>0,O=a.darkMode||b||a.sidebar.toggleButton;return(0,w.jsxs)(w.Fragment,{children:[i&&r?(0,w.jsx)("div",{className:"max-xl:nx-hidden nx-h-0 nx-w-64 nx-shrink-0"}):null,(0,w.jsx)("div",{className:(0,j.Z)("motion-reduce:nx-transition-none [transition:background-color_1.5s_ease]",s?"nx-fixed nx-inset-0 nx-z-10 nx-bg-black/80 dark:nx-bg-black/60":"nx-bg-transparent"),onClick:()=>l(!1)}),(0,w.jsxs)("aside",{className:(0,j.Z)("nextra-sidebar-container nx-flex nx-flex-col","md:nx-top-16 md:nx-shrink-0 motion-reduce:nx-transform-none","nx-transform-gpu nx-transition-all nx-ease-in-out","print:nx-hidden",f?"md:nx-w-64":"md:nx-w-20",r?"md:nx-hidden":"md:nx-sticky md:nx-self-start",s?"max-md:[transform:translate3d(0,0,0)]":"max-md:[transform:translate3d(0,-100%,0)]"),ref:v,children:[(0,w.jsx)("div",{className:"nx-px-4 nx-pt-4 md:nx-hidden",children:au(a.search.component,{directories:t})}),(0,w.jsx)(aP.Provider,{value:u,children:(0,w.jsx)(aD.Provider,{value:e=>{d(e)},children:(0,w.jsxs)("div",{className:(0,j.Z)("nx-overflow-y-auto nx-overflow-x-hidden","nx-p-4 nx-grow md:nx-h-[calc(100vh-var(--nextra-navbar-height)-var(--nextra-menu-height))]",f?"nextra-scrollbar":"no-scrollbar"),ref:x,children:[(!r||!f)&&(0,w.jsx)(ag,{isOpen:f,horizontal:!0,children:(0,w.jsx)(aG,{className:"nextra-menu-desktop max-md:nx-hidden",directories:e,anchors:a.toc.float?[]:g,onlyCurrentDocs:!0})}),y&&window.innerWidth<768&&(0,w.jsx)(aG,{className:"nextra-menu-mobile md:nx-hidden",directories:n,anchors:g})]})})}),O&&(0,w.jsxs)("div",{className:(0,j.Z)("nx-sticky nx-bottom-0","nx-bg-white dark:nx-bg-dark","nx-mx-4 nx-py-4 nx-shadow-[0_-12px_16px_#fff]","nx-flex nx-items-center nx-gap-2","dark:nx-border-neutral-800 dark:nx-shadow-[0_-12px_16px_#111]","contrast-more:nx-border-neutral-400 contrast-more:nx-shadow-none contrast-more:dark:nx-shadow-none",f?(0,j.Z)(b&&"nx-justify-end","nx-border-t"):"nx-py-4 nx-flex-wrap nx-justify-center"),"data-toggle-animation":p?f?"show":"hide":"off",children:[(0,w.jsx)(aC,{lite:!f,className:(0,j.Z)(f?"nx-grow":"max-md:nx-grow")}),a.darkMode&&(0,w.jsx)("div",{className:f&&!b?"nx-grow nx-flex nx-flex-col":"",children:au(a.themeSwitch.component,{lite:!f||b})}),a.sidebar.toggleButton&&(0,w.jsx)("button",{title:f?"Hide sidebar":"Show sidebar",className:"max-md:nx-hidden nx-h-7 nx-rounded-md nx-transition-colors nx-text-gray-600 dark:nx-text-gray-400 nx-px-2 hover:nx-bg-gray-100 hover:nx-text-gray-900 dark:hover:nx-bg-primary-100/5 dark:hover:nx-text-gray-50",onClick:()=>{h(!f),m(!0)},children:(0,w.jsx)(A.Qq,{isOpen:f})})]})]})]})}var aV="reach-skip-nav",aq="Skip to content";(0,_.forwardRef)(function(e,t){var n=e,{className:r,id:o,label:i=aq,styled:a}=n,s=iK(n,["className","id","label","styled"]);let l=void 0===r?a?(0,j.Z)("nx-sr-only","focus:nx-not-sr-only focus:nx-fixed focus:nx-z-50 focus:nx-m-3 focus:nx-ml-4 focus:nx-h-[calc(var(--nextra-navbar-height)-1.5rem)] focus:nx-rounded-lg focus:nx-border focus:nx-px-3 focus:nx-py-2 focus:nx-align-middle focus:nx-text-sm focus:nx-font-bold","focus:nx-text-gray-900 focus:dark:nx-text-gray-100","focus:nx-bg-white focus:dark:nx-bg-neutral-900","focus:nx-border-neutral-400 focus:dark:nx-border-neutral-800"):"":r;return(0,w.jsx)("a",iX(iq({},s),{ref:t,href:`#${o||aV}`,className:l,"data-reach-skip-link":"",children:i}))}).displayName="SkipNavLink";var aX=(0,_.forwardRef)(function(e,t){var n=e,{id:r}=n,o=iK(n,["id"]);return(0,w.jsx)("div",iX(iq({},o),{ref:t,id:r||aV}))});aX.displayName="SkipNavContent";var aK=tA.strictObject({light:tA.string(),dark:tA.string(),system:tA.string()});function aQ({lite:e,className:t}){let{setTheme:n,resolvedTheme:r,theme:o=""}=tz(),i=E(),a=an().themeSwitch,s=i&&"dark"===r?A.kL:A.NW,l="function"==typeof a.useOptions?a.useOptions():a.useOptions;return(0,w.jsx)(aO,{className:t,title:"Change theme",options:[{key:"light",name:l.light},{key:"dark",name:l.dark},{key:"system",name:l.system}],onChange:e=>{n(e.key)},selected:{key:o,name:(0,w.jsxs)("div",{className:"nx-flex nx-items-center nx-gap-2 nx-capitalize",children:[(0,w.jsx)(s,{}),(0,w.jsx)("span",{className:e?"md:nx-hidden":"",children:i?l[o]:l.light})]})}})}function aY(){window.scrollTo({top:0,behavior:"smooth"})}function aJ({className:e}){let t=(0,_.useRef)(null);return(0,_.useEffect)(()=>{function e(){var e;let{scrollTop:n}=document.documentElement;null==(e=t.current)||e.classList.toggle("nx-opacity-0",n<300)}return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}},[]),(0,w.jsxs)("button",{ref:t,"aria-hidden":"true",onClick:aY,className:(0,j.Z)("nx-flex nx-items-center nx-gap-1.5 nx-transition nx-opacity-0",e),children:["Scroll to top",(0,w.jsx)(A.LZ,{className:"-nx-rotate-90 nx-w-3.5 nx-h-3.5 nx-border nx-rounded-full nx-border-current"})]})}var a0=(0,j.Z)("nx-text-xs nx-font-medium nx-text-gray-500 hover:nx-text-gray-900 dark:nx-text-gray-400 dark:hover:nx-text-gray-100","contrast-more:nx-text-gray-800 contrast-more:dark:nx-text-gray-50");function a1({headings:e,filePath:t}){var n;let r=i5(),o=an(),i=(0,_.useRef)(null),a=(0,_.useMemo)(()=>e.filter(e=>e.depth>1),[e]),s=a.length>0,l=!!(o.feedback.content||o.editLink.component||o.toc.extraContent),c=null==(n=Object.entries(r).find(([,{isActive:e}])=>e))?void 0:n[0];return(0,_.useEffect)(()=>{var e;if(!c)return;let t=null==(e=i.current)?void 0:e.querySelector(`li > a[href="#${c}"]`);t&&ik(t,{behavior:"smooth",block:"center",inline:"center",scrollMode:"always",boundary:i.current})},[c]),(0,w.jsxs)("div",{ref:i,className:(0,j.Z)("nextra-scrollbar nx-sticky nx-top-16 nx-overflow-y-auto nx-pr-4 nx-pt-6 nx-text-sm [hyphens:auto]","nx-max-h-[calc(100vh-var(--nextra-navbar-height)-env(safe-area-inset-bottom))] ltr:-nx-mr-4 rtl:-nx-ml-4"),children:[s&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("p",{className:"nx-mb-4 nx-font-semibold nx-tracking-tight",children:au(o.toc.title)}),(0,w.jsx)("ul",{children:a.map(({id:e,value:t,depth:n})=>{var i,a,s,l;return(0,w.jsx)("li",{className:"nx-my-2 nx-scroll-my-6 nx-scroll-py-6",children:(0,w.jsx)("a",{href:`#${e}`,className:(0,j.Z)({2:"nx-font-semibold",3:"ltr:nx-pl-4 rtl:nx-pr-4",4:"ltr:nx-pl-8 rtl:nx-pr-8",5:"ltr:nx-pl-12 rtl:nx-pr-12",6:"ltr:nx-pl-16 rtl:nx-pr-16"}[n],"nx-inline-block",(null==(i=r[e])?void 0:i.isActive)?"nx-text-primary-600 nx-subpixel-antialiased contrast-more:!nx-text-primary-600":"nx-text-gray-500 hover:nx-text-gray-900 dark:nx-text-gray-400 dark:hover:nx-text-gray-300","contrast-more:nx-text-gray-900 contrast-more:nx-underline contrast-more:dark:nx-text-gray-50 nx-w-full nx-break-words"),children:null!=(l=null==(s=(a=o.toc).headingComponent)?void 0:s.call(a,{id:e,children:t}))?l:t})},e)})})]}),l&&(0,w.jsxs)("div",{className:(0,j.Z)(s&&"nx-mt-8 nx-border-t nx-bg-white nx-pt-8 nx-shadow-[0_-12px_16px_white] dark:nx-bg-dark dark:nx-shadow-[0_-12px_16px_#111]","nx-sticky nx-bottom-0 nx-flex nx-flex-col nx-items-start nx-gap-2 nx-pb-8 dark:nx-border-neutral-800","contrast-more:nx-border-t contrast-more:nx-border-neutral-400 contrast-more:nx-shadow-none contrast-more:dark:nx-border-neutral-400"),children:[o.feedback.content?(0,w.jsx)(al,{className:a0,href:o.feedback.useLink(),newWindow:!0,children:au(o.feedback.content)}):null,au(o.editLink.component,{filePath:t,className:a0,children:au(o.editLink.text)}),au(o.toc.extraContent),o.toc.backToTop&&(0,w.jsx)(aJ,{className:a0})]})]})}function a2({className:e,directories:t}){let[n,r]=(0,_.useState)(""),o=(0,_.useMemo)(()=>n?iC(t,n,{keys:["title"]}).map(({route:e,title:t})=>({id:e+t,route:e,children:(0,w.jsx)(ax,{value:t,match:n})})):[],[n,t]);return(0,w.jsx)(ab,{value:n,onChange:r,className:e,overlayClassName:"nx-w-full",results:o})}var a5="en-US",a4="undefined"!=typeof window;function a6(e){return null==e||"string"==typeof e||a3(e)||(0,_.isValidElement)(e)}function a3(e){return"function"==typeof e}var a9=tA.array(tA.strictObject({direction:tA.enum(["ltr","rtl"]).optional(),locale:tA.string(),text:tA.string()})),a8=[a6,{message:"Must be React.ReactNode or React.FC"}],a7=[a3,{message:"Must be React.FC"}];tA.strictObject({banner:tA.strictObject({dismissible:tA.boolean(),key:tA.string(),text:tA.custom(...a8).optional()}),chat:tA.strictObject({icon:tA.custom(...a8),link:tA.string().startsWith("https://").optional()}),components:tA.record(tA.custom(...a7)).optional(),darkMode:tA.boolean(),direction:tA.enum(["ltr","rtl"]),docsRepositoryBase:tA.string().startsWith("https://"),editLink:tA.strictObject({component:tA.custom(...a7).or(tA.null()),text:tA.custom(...a8)}),faviconGlyph:tA.string().optional(),feedback:tA.strictObject({content:tA.custom(...a8),labels:tA.string(),useLink:tA.function().returns(tA.string())}),footer:tA.strictObject({component:tA.custom(...a8),text:tA.custom(...a8)}),gitTimestamp:tA.custom(...a8),head:tA.custom(...a8),i18n:a9,logo:tA.custom(...a8),logoLink:tA.boolean().or(tA.string()),main:tA.custom(...a7).optional(),navbar:tA.strictObject({component:tA.custom(...a8),extraContent:tA.custom(...a8).optional()}),navigation:tA.boolean().or(tA.strictObject({next:tA.boolean(),prev:tA.boolean()})),nextThemes:tA.strictObject({defaultTheme:tA.string(),forcedTheme:tA.string().optional(),storageKey:tA.string()}),notFound:tA.strictObject({content:tA.custom(...a8),labels:tA.string()}),primaryHue:tA.number().or(tA.strictObject({dark:tA.number(),light:tA.number()})),primarySaturation:tA.number().or(tA.strictObject({dark:tA.number(),light:tA.number()})),project:tA.strictObject({icon:tA.custom(...a8),link:tA.string().startsWith("https://").optional()}),search:tA.strictObject({component:tA.custom(...a8),emptyResult:tA.custom(...a8),error:tA.string().or(tA.function().returns(tA.string())),loading:tA.custom(...a8),placeholder:tA.string().or(tA.function().returns(tA.string()))}),serverSideError:tA.strictObject({content:tA.custom(...a8),labels:tA.string()}),sidebar:tA.strictObject({autoCollapse:tA.boolean().optional(),defaultMenuCollapseLevel:tA.number().min(1).int(),titleComponent:tA.custom(...a8),toggleButton:tA.boolean()}),themeSwitch:tA.strictObject({component:tA.custom(...a8),useOptions:aK.or(tA.function().returns(aK))}),toc:tA.strictObject({backToTop:tA.boolean(),component:tA.custom(...a8),extraContent:tA.custom(...a8),float:tA.boolean(),headingComponent:tA.custom(...a7).optional(),title:tA.custom(...a8)}),useNextSeoProps:tA.custom(a3)}).deepPartial().extend({i18n:a9.optional()});var se={"en-US":"Loading",fr:"Сhargement",ru:"Загрузка","zh-CN":"正在加载"},st={"en-US":"Search documentation",fr:"Rechercher documents",ru:"Поиск документации","zh-CN":"搜索文档"},sn={banner:{dismissible:!0,key:"nextra-banner"},chat:{icon:(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(A.D7,{}),(0,w.jsx)("span",{className:"nx-sr-only",children:"Discord"})]})},darkMode:!0,direction:"ltr",docsRepositoryBase:"https://github.com/shuding/nextra",editLink:{component:function({className:e,filePath:t,children:n}){let r=ah(t);return r?(0,w.jsx)(al,{className:e,href:r,children:n}):null},text:"Edit this page"},feedback:{content:"Question? Give us feedback →",labels:"feedback",useLink(){let e=an();return ac({labels:e.feedback.labels,repository:e.docsRepositoryBase,title:`Feedback for \u201C${e.title}\u201D`})}},footer:{component:aT,text:`MIT ${new Date().getFullYear()} \xa9 Nextra.`},gitTimestamp:function({timestamp:e}){let{locale:t=a5}=(0,k.useRouter)();return(0,w.jsxs)(w.Fragment,{children:["Last updated on"," ",(0,w.jsx)("time",{dateTime:e.toISOString(),children:e.toLocaleDateString(t,{day:"numeric",month:"long",year:"numeric"})})]})},head:(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("meta",{name:"msapplication-TileColor",content:"#fff"}),(0,w.jsx)("meta",{httpEquiv:"Content-Language",content:"en"}),(0,w.jsx)("meta",{name:"description",content:"Nextra: the next docs builder"}),(0,w.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,w.jsx)("meta",{name:"twitter:site",content:"@shuding_"}),(0,w.jsx)("meta",{property:"og:title",content:"Nextra: the next docs builder"}),(0,w.jsx)("meta",{property:"og:description",content:"Nextra: the next docs builder"}),(0,w.jsx)("meta",{name:"apple-mobile-web-app-title",content:"Nextra"})]}),i18n:[],logo:(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("span",{className:"nx-font-extrabold",children:"Nextra"}),(0,w.jsx)("span",{className:"nx-ml-2 nx-hidden nx-font-normal nx-text-gray-600 md:nx-inline",children:"The Next Docs Builder"})]}),logoLink:!0,navbar:{component:aL},navigation:!0,nextThemes:{defaultTheme:"system",storageKey:"theme"},notFound:{content:"Submit an issue about broken link →",labels:"bug"},primaryHue:{dark:204,light:212},primarySaturation:{dark:100,light:100},project:{icon:(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(A.fy,{}),(0,w.jsx)("span",{className:"nx-sr-only",children:"GitHub"})]})},search:{component:function({className:e,directories:t}){return an().flexsearch?(0,w.jsx)(aE,{className:e}):(0,w.jsx)(a2,{className:e,directories:t})},emptyResult:(0,w.jsx)("span",{className:"nx-block nx-select-none nx-p-8 nx-text-center nx-text-sm nx-text-gray-400",children:"No results found."}),error:"Failed to load search index.",loading:function(){let{locale:e,defaultLocale:t=a5}=(0,k.useRouter)(),n=e&&se[e]||se[t];return(0,w.jsxs)(w.Fragment,{children:[n,"…"]})},placeholder:function(){let{locale:e,defaultLocale:t=a5}=(0,k.useRouter)(),n=e&&st[e]||st[t];return`${n}\u2026`}},serverSideError:{content:"Submit an issue about error in url →",labels:"bug"},sidebar:{defaultMenuCollapseLevel:2,titleComponent:({title:e})=>(0,w.jsx)(w.Fragment,{children:e}),toggleButton:!1},themeSwitch:{component:aQ,useOptions(){let{locale:e}=(0,k.useRouter)();return"zh-CN"===e?{dark:"深色主题",light:"浅色主题",system:"系统默认"}:{dark:"Dark",light:"Light",system:"System"}}},toc:{backToTop:!1,component:a1,float:!0,title:"On This Page"},useNextSeoProps:()=>({titleTemplate:"%s – Nextra"})},sr=Object.entries(sn).map(([e,t])=>{if(t&&"object"==typeof t&&!Array.isArray(t)&&!(0,_.isValidElement)(t))return e}).filter(Boolean);if(a4){let e;let t=()=>{document.body.classList.add("resizing"),clearTimeout(e),e=setTimeout(()=>{document.body.classList.remove("resizing")},200)};window.addEventListener("resize",t)}function so(e){var t=e,{tag:n,context:r,children:o,id:i,className:a}=t,s=iK(t,["tag","context","children","id","className"]);let l=i4(),c=i3(),u=i6(),d=(0,_.useRef)(null);return(0,_.useEffect)(()=>{if(!i)return;let e=d.current;if(e)return c.set(e,[i,r.index+=1]),null==u||u.observe(e),()=>{null==u||u.disconnect(),c.delete(e),l(e=>{let t=iq({},e);return delete t[i],t})}},[i,r,c,u,l]),(0,w.jsxs)(n,iX(iq({className:"sr-only"===a?"nx-sr-only":(0,j.Z)("nx-font-semibold nx-tracking-tight nx-text-slate-900 dark:nx-text-slate-100",{h2:"nx-mt-10 nx-border-b nx-pb-1 nx-text-3xl nx-border-neutral-200/70 contrast-more:nx-border-neutral-400 dark:nx-border-primary-100/10 contrast-more:dark:nx-border-neutral-400",h3:"nx-mt-8 nx-text-2xl",h4:"nx-mt-8 nx-text-xl",h5:"nx-mt-8 nx-text-lg",h6:"nx-mt-8 nx-text-base"}[n])},s),{children:[o,i&&(0,w.jsx)("a",{href:`#${i}`,id:i,className:"subheading-anchor","aria-label":"Permalink for this section",ref:d})]}))}var si=e=>{let t=null,n=[];return _.Children.forEach(e,(e,r)=>{var o;if(e&&e.type===ss){t||(t=e);return}let i=e;if(!t&&e&&"object"==typeof e&&e.type!==sa&&"props"in e&&e.props){let n=si(e.props.children);t=n[0],i=(0,_.cloneElement)(e,iX(iq({},e.props),{children:(null==(o=n[1])?void 0:o.length)?n[1]:void 0,key:r}))}n.push(i)}),[t,n]},sa=e=>{var t=e,{children:n,open:r}=t,o=iK(t,["children","open"]);let[i,a]=(0,_.useState)(!!r),[s,l]=si(n),[c,u]=(0,_.useState)(i);return(0,_.useEffect)(()=>{if(i)u(!0);else{let e=setTimeout(()=>u(i),500);return()=>clearTimeout(e)}},[i]),(0,w.jsxs)("details",iX(iq(iX(iq({className:"nx-my-4 nx-rounded nx-border nx-border-gray-200 nx-bg-white nx-p-2 nx-shadow-sm first:nx-mt-0 dark:nx-border-neutral-800 dark:nx-bg-neutral-900"},o),{open:c}),i&&{"data-expanded":!0}),{children:[(0,w.jsx)(aa,{value:a,children:s}),(0,w.jsx)(ag,{isOpen:i,children:l})]}))},ss=e=>{let t=ai();return(0,w.jsx)("summary",iX(iq({className:(0,j.Z)("nx-flex nx-items-center nx-cursor-pointer nx-list-none nx-p-1 nx-transition-colors hover:nx-bg-gray-100 dark:hover:nx-bg-neutral-800","before:nx-mr-1 before:nx-inline-block before:nx-transition-transform before:nx-content-[''] dark:before:nx-invert before:nx-shrink-0","rtl:before:nx-rotate-180 [[data-expanded]>&]:before:nx-rotate-90")},e),{onClick:e=>{e.preventDefault(),t(e=>!e)}}))},sl=/https?:\/\//,sc=e=>{var t=e,{href:n="",className:r}=t,o=iK(t,["href","className"]);return(0,w.jsx)(al,iq({href:n,newWindow:sl.test(n),className:(0,j.Z)("nx-text-primary-600 nx-underline nx-decoration-from-font [text-underline-position:from-font]",r)},o))},su=e=>{var t=e,{href:n=""}=t,r=iK(t,["href"]);return(0,w.jsx)(al,iq({href:n,newWindow:sl.test(n)},r))},sd=({isRawLayout:e,components:t})=>{if(e)return{a:su};let n={index:0};return iq({h1:e=>(0,w.jsx)("h1",iq({className:"nx-mt-2 nx-text-4xl nx-font-bold nx-tracking-tight nx-text-slate-900 dark:nx-text-slate-100"},e)),h2:e=>(0,w.jsx)(so,iq({tag:"h2",context:n},e)),h3:e=>(0,w.jsx)(so,iq({tag:"h3",context:n},e)),h4:e=>(0,w.jsx)(so,iq({tag:"h4",context:n},e)),h5:e=>(0,w.jsx)(so,iq({tag:"h5",context:n},e)),h6:e=>(0,w.jsx)(so,iq({tag:"h6",context:n},e)),ul:e=>(0,w.jsx)("ul",iq({className:"nx-mt-6 nx-list-disc first:nx-mt-0 ltr:nx-ml-6 rtl:nx-mr-6"},e)),ol:e=>(0,w.jsx)("ol",iq({className:"nx-mt-6 nx-list-decimal first:nx-mt-0 ltr:nx-ml-6 rtl:nx-mr-6"},e)),li:e=>(0,w.jsx)("li",iq({className:"nx-my-2"},e)),blockquote:e=>(0,w.jsx)("blockquote",iq({className:(0,j.Z)("nx-mt-6 nx-border-gray-300 nx-italic nx-text-gray-700 dark:nx-border-gray-700 dark:nx-text-gray-400","first:nx-mt-0 ltr:nx-border-l-2 ltr:nx-pl-6 rtl:nx-border-r-2 rtl:nx-pr-6")},e)),hr:e=>(0,w.jsx)("hr",iq({className:"nx-my-8 nx-border-neutral-200/70 contrast-more:nx-border-neutral-400 dark:nx-border-primary-100/10 contrast-more:dark:nx-border-neutral-400"},e)),a:sc,table:e=>(0,w.jsx)(iF.iA,iq({className:"nextra-scrollbar nx-mt-6 nx-p-0 first:nx-mt-0"},e)),p:e=>(0,w.jsx)("p",iq({className:"nx-mt-6 nx-leading-7 first:nx-mt-0"},e)),tr:iF.Tr,th:iF.Th,td:iF.Td,details:sa,summary:ss,pre:iF.SU,code:iF.EK},t)},sf={toc:(0,j.Z)("nextra-toc nx-order-last nx-hidden nx-w-64 nx-shrink-0 xl:nx-block print:nx-hidden"),main:(0,j.Z)("nx-w-full nx-break-words")},sh=({themeContext:e,breadcrumb:t,timestamp:n,navigation:r,children:o})=>{var i;let a=an(),s=E();if("raw"===e.layout)return(0,w.jsx)("div",{className:sf.main,children:o});let l=e.timestamp&&a.gitTimestamp&&n?new Date(n):null,c=s&&l?(0,w.jsx)("div",{className:"nx-mt-12 nx-mb-8 nx-block nx-text-xs nx-text-gray-500 ltr:nx-text-right rtl:nx-text-left dark:nx-text-gray-400",children:au(a.gitTimestamp,{timestamp:l})}):(0,w.jsx)("div",{className:"nx-mt-16"}),u=(0,w.jsxs)(w.Fragment,{children:[o,c,r]}),d=(null==(i=a.main)?void 0:i.call(a,{children:u}))||u;return"full"===e.layout?(0,w.jsx)("article",{className:(0,j.Z)(sf.main,"nextra-content nx-min-h-[calc(100vh-var(--nextra-navbar-height))] nx-pl-[max(env(safe-area-inset-left),1.5rem)] nx-pr-[max(env(safe-area-inset-right),1.5rem)]"),children:d}):(0,w.jsx)("article",{className:(0,j.Z)(sf.main,"nextra-content nx-flex nx-min-h-[calc(100vh-var(--nextra-navbar-height))] nx-min-w-0 nx-justify-center nx-pb-8 nx-pr-[calc(env(safe-area-inset-right)-1.5rem)]","article"===e.typesetting&&"nextra-body-typesetting-article"),children:(0,w.jsxs)("main",{className:"nx-w-full nx-min-w-0 nx-max-w-6xl nx-px-6 nx-pt-4 md:nx-px-12",children:[t,d]})})},sp=({filePath:e,pageMap:t,frontMatter:n,headings:r,timestamp:o,children:i})=>{let a=an(),{locale:s=a5,defaultLocale:l}=(0,k.useRouter)(),c=C(),{activeType:u,activeIndex:d,activeThemeContext:f,activePath:h,topLevelNavbarItems:p,docsDirectories:m,flatDirectories:g,flatDocsDirectories:x,directories:v}=(0,_.useMemo)(()=>t5({list:t,locale:s,defaultLocale:l,route:c}),[t,s,l,c]),y=iq(iq({},f),n),b=!y.sidebar||"raw"===y.layout||"page"===u,E="page"!==u&&y.toc&&"default"===y.layout?(0,w.jsx)("nav",{className:(0,j.Z)(sf.toc,"nx-px-4"),"aria-label":"table of contents",children:au(a.toc.component,{headings:a.toc.float?r:[],filePath:e})}):"full"!==y.layout&&"raw"!==y.layout&&(0,w.jsx)("nav",{className:sf.toc,"aria-label":"table of contents"}),O=a.i18n.find(e=>e.locale===s),S=(O?"rtl"===O.direction:"rtl"===a.direction)?"rtl":"ltr";return(0,w.jsxs)("div",{dir:S,children:[(0,w.jsx)("script",{dangerouslySetInnerHTML:{__html:`document.documentElement.setAttribute('dir','${S}')`}}),(0,w.jsx)(aA,{}),(0,w.jsx)(ap,{}),y.navbar&&au(a.navbar.component,{flatDirectories:g,items:p}),(0,w.jsx)("div",{className:(0,j.Z)("nx-mx-auto nx-flex","raw"!==y.layout&&"nx-max-w-[90rem]"),children:(0,w.jsxs)(i9,{children:[(0,w.jsx)(aU,{docsDirectories:m,flatDirectories:g,fullDirectories:v,headings:r,asPopover:b,includePlaceholder:"default"===y.layout}),E,(0,w.jsx)(aX,{}),(0,w.jsx)(sh,{themeContext:y,breadcrumb:"page"!==u&&y.breadcrumb?(0,w.jsx)(am,{activePath:h}):null,timestamp:o,navigation:"page"!==u&&y.pagination?(0,w.jsx)(aN,{flatDirectories:x,currentIndex:d}):null,children:(0,w.jsx)(T.Z,{components:sd({isRawLayout:"raw"===y.layout,components:a.components}),children:i})})]})}),y.footer&&au(a.footer.component,{menu:b})]})};function sm(e){var t=e,{children:n}=t,r=iK(t,["children"]);return(0,w.jsx)(ar,{value:r,children:(0,w.jsx)(sp,iX(iq({},r.pageOpts),{children:n}))})}var sg=n(85751),sx=n.n(sg),sv=n(10349),sy=n(82187),sb=n.n(sy),sw=n(61129);let sk=["xxl","xl","lg","md","sm","xs"],s_=e=>({xs:"(max-width: ".concat(e.screenXSMax,"px)"),sm:"(min-width: ".concat(e.screenSM,"px)"),md:"(min-width: ".concat(e.screenMD,"px)"),lg:"(min-width: ".concat(e.screenLG,"px)"),xl:"(min-width: ".concat(e.screenXL,"px)"),xxl:"(min-width: ".concat(e.screenXXL,"px)")}),sj=e=>{let t=e,n=[].concat(sk).reverse();return n.forEach((e,r)=>{let o=e.toUpperCase(),i="screen".concat(o,"Min"),a="screen".concat(o);if(!(t[i]<=t[a]))throw Error("".concat(i,"<=").concat(a," fails : !(").concat(t[i],"<=").concat(t[a],")"));if(r{let e=new Map,n=-1,r={};return{matchHandlers:{},dispatch:t=>(r=t,e.forEach(e=>e(r)),e.size>=1),subscribe(t){return e.size||this.register(),n+=1,e.set(n,t),t(r),n},unsubscribe(t){e.delete(t),e.size||this.unregister()},unregister(){Object.keys(t).forEach(e=>{let n=t[e],r=this.matchHandlers[n];null==r||r.mql.removeListener(null==r?void 0:r.listener)}),e.clear()},register(){Object.keys(t).forEach(e=>{let n=t[e],o=t=>{let{matches:n}=t;this.dispatch(Object.assign(Object.assign({},r),{[e]:n}))},i=window.matchMedia(n);i.addListener(o),this.matchHandlers[n]={mql:i,listener:o},o(i)})},responsiveMap:t}},[e])}var sO=n(56131),sS=(0,_.createContext)({}),sC=n(80548),sT=n(2291),sA=n(26845);let sR=e=>{let{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},sN=e=>{let{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},sI=(e,t)=>{let{prefixCls:n,componentCls:r,gridColumns:o}=e,i={};for(let e=o;e>=0;e--)0===e?(i["".concat(r).concat(t,"-").concat(e)]={display:"none"},i["".concat(r,"-push-").concat(e)]={insetInlineStart:"auto"},i["".concat(r,"-pull-").concat(e)]={insetInlineEnd:"auto"},i["".concat(r).concat(t,"-push-").concat(e)]={insetInlineStart:"auto"},i["".concat(r).concat(t,"-pull-").concat(e)]={insetInlineEnd:"auto"},i["".concat(r).concat(t,"-offset-").concat(e)]={marginInlineStart:0},i["".concat(r).concat(t,"-order-").concat(e)]={order:0}):(i["".concat(r).concat(t,"-").concat(e)]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:"0 0 ".concat(e/o*100,"%"),maxWidth:"".concat(e/o*100,"%")}],i["".concat(r).concat(t,"-push-").concat(e)]={insetInlineStart:"".concat(e/o*100,"%")},i["".concat(r).concat(t,"-pull-").concat(e)]={insetInlineEnd:"".concat(e/o*100,"%")},i["".concat(r).concat(t,"-offset-").concat(e)]={marginInlineStart:"".concat(e/o*100,"%")},i["".concat(r).concat(t,"-order-").concat(e)]={order:e});return i["".concat(r).concat(t,"-flex")]={flex:"var(--".concat(n).concat(t,"-flex)")},i},sM=(e,t)=>sI(e,t),sL=(e,t,n)=>({["@media (min-width: ".concat((0,sC.bf)(t),")")]:Object.assign({},sM(e,n))}),sZ=()=>({}),sP=()=>({}),sD=(0,sT.I$)("Grid",sR,sZ),sz=(0,sT.I$)("Grid",e=>{let t=(0,sA.TS)(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[sN(t),sM(t,""),sM(t,"-xs"),Object.keys(n).map(e=>sL(t,n[e],e)).reduce((e,t)=>Object.assign(Object.assign({},e),t),{})]},sP);var sF=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function sH(e,t){let[n,r]=_.useState("string"==typeof e?e:""),o=()=>{if("string"==typeof e&&r(e),"object"==typeof e)for(let n=0;n{o()},[JSON.stringify(e),t]),n}var sB=_.forwardRef((e,t)=>{let{prefixCls:n,justify:r,align:o,className:i,style:a,children:s,gutter:l=0,wrap:c}=e,u=sF(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:d,direction:f}=_.useContext(sO.E_),[h,p]=_.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[m,g]=_.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),x=sH(o,m),v=sH(r,m),y=_.useRef(l),b=sE();_.useEffect(()=>{let e=b.subscribe(e=>{g(e);let t=y.current||0;(!Array.isArray(t)&&"object"==typeof t||Array.isArray(t)&&("object"==typeof t[0]||"object"==typeof t[1]))&&p(e)});return()=>b.unsubscribe(e)},[]);let w=()=>{let e=[void 0,void 0];return(Array.isArray(l)?l:[l,void 0]).forEach((t,n)=>{if("object"==typeof t)for(let r=0;r0?-(S[0]/2):void 0;A&&(T.marginLeft=A,T.marginRight=A);let[R,N]=S;T.rowGap=N;let I=_.useMemo(()=>({gutter:[R,N],wrap:c}),[R,N,c]);return j(_.createElement(sS.Provider,{value:I},_.createElement("div",Object.assign({},u,{className:C,style:Object.assign(Object.assign({},T),a),ref:t}),s)))}),sW=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function s$(e){return"number"==typeof e?"".concat(e," ").concat(e," auto"):/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?"0 0 ".concat(e):e}let sG=["xs","sm","md","lg","xl","xxl"];var sU=_.forwardRef((e,t)=>{let{getPrefixCls:n,direction:r}=_.useContext(sO.E_),{gutter:o,wrap:i}=_.useContext(sS),{prefixCls:a,span:s,order:l,offset:c,push:u,pull:d,className:f,children:h,flex:p,style:m}=e,g=sW(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),x=n("col",a),[v,y,b]=sz(x),w={},k={};sG.forEach(t=>{let n={},o=e[t];"number"==typeof o?n.span=o:"object"==typeof o&&(n=o||{}),delete g[t],k=Object.assign(Object.assign({},k),{["".concat(x,"-").concat(t,"-").concat(n.span)]:void 0!==n.span,["".concat(x,"-").concat(t,"-order-").concat(n.order)]:n.order||0===n.order,["".concat(x,"-").concat(t,"-offset-").concat(n.offset)]:n.offset||0===n.offset,["".concat(x,"-").concat(t,"-push-").concat(n.push)]:n.push||0===n.push,["".concat(x,"-").concat(t,"-pull-").concat(n.pull)]:n.pull||0===n.pull,["".concat(x,"-rtl")]:"rtl"===r}),n.flex&&(k["".concat(x,"-").concat(t,"-flex")]=!0,w["--".concat(x,"-").concat(t,"-flex")]=s$(n.flex))});let j=sb()(x,{["".concat(x,"-").concat(s)]:void 0!==s,["".concat(x,"-order-").concat(l)]:l,["".concat(x,"-offset-").concat(c)]:c,["".concat(x,"-push-").concat(u)]:u,["".concat(x,"-pull-").concat(d)]:d},f,k,y,b),E={};if(o&&o[0]>0){let e=o[0]/2;E.paddingLeft=e,E.paddingRight=e}return p&&(E.flex=s$(p),!1!==i||E.minWidth||(E.minWidth=0)),v(_.createElement("div",Object.assign({},g,{style:Object.assign(Object.assign(Object.assign({},E),m),w),className:j,ref:t}),h))}),sV=function(){return(0,w.jsxs)("footer",{id:"footer",children:[(0,w.jsx)("div",{className:"footer-wrap",children:(0,w.jsxs)(sB,{children:[(0,w.jsx)(sU,{md:6,sm:24,xs:24,children:(0,w.jsxs)("div",{className:"footer-center",children:[(0,w.jsx)("h2",{children:"联系我们"}),(0,w.jsx)("div",{children:(0,w.jsx)("a",{href:"mailto:hi@charmlot.com",children:"邮箱 hi@charmlot.com"})}),(0,w.jsx)("div",{children:(0,w.jsx)("span",{style:{color:"rgba(255,255,255,.9)"},children:"QQ群 729013783"})})]})}),(0,w.jsx)(sU,{md:6,sm:24,xs:24,children:(0,w.jsxs)("div",{className:"footer-center",children:[(0,w.jsx)("h2",{children:"用户协议"}),(0,w.jsx)("div",{children:(0,w.jsx)("a",{target:"_blank",href:"/agreement/",children:"用户协议"})}),(0,w.jsx)("div",{children:(0,w.jsx)("a",{target:"_blank",href:"/agreement/#privacy",children:"隐私政策"})})]})}),(0,w.jsx)(sU,{md:6,sm:24,xs:24,children:(0,w.jsxs)("div",{className:"footer-center",children:[(0,w.jsx)("h2",{children:"帮助"}),(0,w.jsx)("div",{children:(0,w.jsx)("a",{href:"/docs/faq",children:"常见问题"})}),(0,w.jsx)("div",{children:(0,w.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://github.com/reactnativecn/react-native-pushy/issues",children:"issue讨论区"})})]})}),(0,w.jsx)(sU,{md:6,sm:24,xs:24,children:(0,w.jsxs)("div",{className:"footer-center",children:[(0,w.jsx)("h2",{children:"链接"}),(0,w.jsx)("div",{children:(0,w.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://reactnative.cn/",children:"React Native中文网"})}),(0,w.jsx)("div",{children:(0,w.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://zh-hans.reactjs.org/",children:"ReactJS"})})]})})]})}),(0,w.jsxs)("section",{className:"bottom-bar",children:[(0,w.jsxs)("p",{children:["React Native中文网 \xa9 ",new Date().getFullYear()," ","武汉青罗网络科技有限公司"]}),(0,w.jsxs)("p",{children:[(0,w.jsx)("a",{href:"http://beian.miit.gov.cn/",children:"鄂ICP备20002031号-3"}),(0,w.jsx)("img",{style:{display:"inline"},src:"https://img.alicdn.com/tfs/TB1..50QpXXXXX7XpXXXXXXXXXX-40-40.png",alt:"鄂公网安备 42011202001821号"}),(0,w.jsx)("a",{href:"http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=42011202001821",children:"鄂公网安备 42011202001821号"})]})]})]})},sq=n(73653),sX={useNextSeoProps(){let{asPath:e}=(0,k.useRouter)();return"/"!==e?{titleTemplate:"%s – Pushy 极速热更新"}:{titleTemplate:"Pushy 极速热更新"}},head:()=>{let{title:e}=an(),t="https://pushy.reactnative.cn";return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("meta",{property:"og:url",content:t}),(0,w.jsx)("meta",{property:"og:title",content:e||"Pushy 极速热更新"}),(0,w.jsx)("meta",{property:"og:description",content:"Pushy 极速热更新"}),(0,w.jsx)("meta",{property:"og:keywords",content:"热更新,hotupdate,免审核,快速上架"})]})},logo:(0,w.jsx)(sx(),{height:48,src:sv.Z,alt:"Pushy 极速热更新"}),docsRepositoryBase:"https://github.com/reactnativecn/react-native-pushy",project:{link:"https://github.com/reactnativecn/react-native-pushy"},footer:{component:sV},darkMode:!1,nextThemes:{defaultTheme:"light"},navbar:{extraContent:(0,w.jsx)("div",{className:"header-meta",children:(0,w.jsxs)("div",{className:"right-header",children:[(0,w.jsx)(sq.ZP,{shape:"round",href:"https://pushy-admin.reactnative.cn/#/user",target:"_blank",children:"登录"}),(0,w.jsx)(sq.ZP,{shape:"round",href:"https://pushy-admin.reactnative.cn/#/register",target:"_blank",type:"primary",children:"注册"})]})})},toc:{title:"目录"},feedback:{content:null},editLink:{component:null},search:{placeholder:"搜索文档...",emptyResult:"暂无匹配的结果"},gitTimestamp:null};n(90090),n(1591),n(72063);var sK=n(16635);function sQ(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,sK.Z)(e,t)}var sY=n(23248),sJ=n(25201),s0=n(40507),s1=n.n(s0),s2=n(53670),s5=n.n(s2),s4=n(55518),s6=n.n(s4),s3=function(){function e(e,t,n){var r=this;this.nativeMediaQueryList=e.matchMedia(t),this.active=!0,this.cancellableListener=function(){r.matches=r.nativeMediaQueryList.matches,r.active&&n.apply(void 0,arguments)},this.nativeMediaQueryList.addListener(this.cancellableListener),this.matches=this.nativeMediaQueryList.matches}return e.prototype.cancel=function(){this.active=!1,this.nativeMediaQueryList.removeListener(this.cancellableListener)},e}(),s9=s1().oneOfType([s1().string,s1().object,s1().arrayOf(s1().object.isRequired)]),s8=function(e){function t(t){var n,r;return(n=e.call(this,t)||this,(0,sJ.Z)((0,sY.Z)((0,sY.Z)(n)),"queries",[]),(0,sJ.Z)((0,sY.Z)((0,sY.Z)(n)),"getMatches",function(){return le(n.queries.reduce(function(e,t){var n,r=t.name,o=t.mqListener;return(0,i_.Z)({},e,((n={})[r]=o.matches,n))},{}))}),(0,sJ.Z)((0,sY.Z)((0,sY.Z)(n)),"updateMatches",function(){var e=n.getMatches();n.setState(function(){return{matches:e}},n.onChange)}),!(!t.query&&!t.queries)||t.query&&t.queries||s5()(!1),void 0!==t.defaultMatches&&t.query&&"boolean"!=typeof t.defaultMatches&&s5()(!1),void 0!==t.defaultMatches&&t.queries&&"object"!=typeof t.defaultMatches&&s5()(!1),"object"!=typeof window)?(r=void 0!==t.defaultMatches?t.defaultMatches:!!t.query||Object.keys(n.props.queries).reduce(function(e,t){var n;return(0,i_.Z)({},e,((n={})[t]=!0,n))},{}),n.state={matches:r},(0,sY.Z)(n)):(n.initialize(),n.state={matches:void 0!==n.props.defaultMatches?n.props.defaultMatches:n.getMatches()},n.onChange(),n)}sQ(t,e);var n=t.prototype;return n.initialize=function(){var e=this,t=this.props.targetWindow||window;"function"!=typeof t.matchMedia&&s5()(!1);var n=this.props.queries||s7(this.props.query);this.queries=Object.keys(n).map(function(r){var o=n[r];return{name:r,mqListener:new s3(t,"string"!=typeof o?s6()(o):o,e.updateMatches)}})},n.componentDidMount=function(){this.initialize(),void 0!==this.props.defaultMatches&&this.updateMatches()},n.onChange=function(){var e=this.props.onChange;e&&e(this.state.matches)},n.componentWillUnmount=function(){this.queries.forEach(function(e){return e.mqListener.cancel()})},n.render=function(){var e=this.props,t=e.children,n=e.render,r=this.state.matches,o="object"==typeof r?Object.keys(r).some(function(e){return r[e]}):r;return n?o?n(r):null:t?"function"==typeof t?t(r):(!Array.isArray(t)||t.length)&&o?_.Children.only(t)&&"string"==typeof _.Children.only(t).type?_.Children.only(t):_.cloneElement(_.Children.only(t),{matches:r}):null:null},t}(_.Component);function s7(e){return{__DEFAULT__:e}}function le(e){var t=Object.keys(e);return 1===t.length&&"__DEFAULT__"===t[0]?e.__DEFAULT__:e}(0,sJ.Z)(s8,"propTypes",{defaultMatches:s1().oneOfType([s1().bool,s1().objectOf(s1().bool)]),query:s9,queries:s1().objectOf(s9),render:s1().func,children:s1().oneOfType([s1().node,s1().func]),targetWindow:s1().object,onChange:s1().func});var lt=s8;function ln(e){let{children:t,...n}=e;return(0,w.jsx)("div",{className:"page-wrapper",children:_.cloneElement(t,{...t.props,isMobile:n.isMobile})})}var lr=e=>(0,w.jsx)(lt,{query:"(max-width: 996px)",children:t=>{let n=!1;return(0,w.jsx)(ln,{...e,isMobile:t&&!n})}});let lo=function(e){let{Component:t,pageProps:n}=e;return(0,w.jsx)(lr,{children:(0,w.jsx)(t,{...n})})},li=[];function la(e){return(0,w.jsx)(w.Fragment,{})}var ls=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,w.jsx)(lo,{...e,children:(0,w.jsx)(la,{...e})})};let ll=(y=globalThis)[b=Symbol.for("__nextra_internal__")]||(y[b]=Object.create(null));ll.Layout=sm,ll.pageMap=[{kind:"Meta",data:{index:{title:"首页",theme:{layout:"raw",breadcrumb:!1,sidebar:!1},type:"page"},docs:{title:"文档",type:"page"},pricing:{title:"价格",theme:{layout:"raw",breadcrumb:!1,sidebar:!1},type:"page"},常见问题:{type:"page",href:"/docs/faq",route:"#"}}},{kind:"Folder",name:"docs",route:"/docs",children:[{kind:"Meta",data:{"getting-started":"安装配置",integration:"代码集成",publish:"发布流程","---1":{type:"separator",title:""},api:"API参考",cli:"命令行工具",bestpractice:"场景实践","---2":{type:"separator",title:""},faq:"常见问题",changelog:"更新日志"}},{kind:"MdxPage",name:"api",route:"/docs/api",frontMatter:{order:11,title:"API参考",type:"开发指南"}},{kind:"MdxPage",name:"bestpractice",route:"/docs/bestpractice",frontMatter:{order:13,title:"场景实践",type:"开发指南"}},{kind:"MdxPage",name:"changelog",route:"/docs/changelog",frontMatter:{order:22,title:"更新日志",type:"其他"}},{kind:"MdxPage",name:"cli",route:"/docs/cli",frontMatter:{order:12,title:"命令行工具",type:"开发指南"}},{kind:"MdxPage",name:"faq",route:"/docs/faq",frontMatter:{order:23,title:"常见问题",type:"其他"}},{kind:"MdxPage",name:"getting-started",route:"/docs/getting-started",frontMatter:{order:0,title:"安装配置",type:"快速入门"}},{kind:"MdxPage",name:"integration",route:"/docs/integration",frontMatter:{order:1,title:"代码集成",type:"快速入门"}},{kind:"MdxPage",name:"publish",route:"/docs/publish",frontMatter:{order:2,title:"发布热更新",type:"快速入门"}}]},{kind:"MdxPage",name:"index",route:"/"},{kind:"MdxPage",name:"pricing",route:"/pricing",frontMatter:{title:"价格"}}],ll.flexsearch={codeblocks:!0},ll.themeConfig=sX},10362:function(e,t,n){"use strict";n.d(t,{Z:function(){return eO}});var r=n(97605),o=n(76729),i=n(25201),a=n(10582),s=n(50959),l=n(84875),c=n.n(l),u=n(96299),d=n(28556),f=2,h=.16,p=.05,m=.05,g=.15,x=5,v=4,y=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function b(e){var t=e.r,n=e.g,r=e.b,o=(0,u.py)(t,n,r);return{h:360*o.h,s:o.s,v:o.v}}function w(e){var t=e.r,n=e.g,r=e.b;return"#".concat((0,u.vq)(t,n,r,!1))}function k(e,t,n){var r=n/100;return{r:(t.r-e.r)*r+e.r,g:(t.g-e.g)*r+e.g,b:(t.b-e.b)*r+e.b}}function _(e,t,n){var r;return(r=Math.round(e.h)>=60&&240>=Math.round(e.h)?n?Math.round(e.h)-f*t:Math.round(e.h)+f*t:n?Math.round(e.h)+f*t:Math.round(e.h)-f*t)<0?r+=360:r>=360&&(r-=360),r}function j(e,t,n){var r;return 0===e.h&&0===e.s?e.s:((r=n?e.s-h*t:t===v?e.s+h:e.s+p*t)>1&&(r=1),n&&t===x&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)))}function E(e,t,n){var r;return(r=n?e.v+m*t:e.v-g*t)>1&&(r=1),Number(r.toFixed(2))}function O(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=(0,d.uA)(e),o=x;o>0;o-=1){var i=b(r),a=w((0,d.uA)({h:_(i,o,!0),s:j(i,o,!0),v:E(i,o,!0)}));n.push(a)}n.push(w(r));for(var s=1;s<=v;s+=1){var l=b(r),c=w((0,d.uA)({h:_(l,s),s:j(l,s),v:E(l,s)}));n.push(c)}return"dark"===t.theme?y.map(function(e){var r=e.index,o=e.opacity;return w(k((0,d.uA)(t.backgroundColor||"#141414"),(0,d.uA)(n[r]),100*o))}):n}var S={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},C={},T={};Object.keys(S).forEach(function(e){C[e]=O(S[e]),C[e].primary=C[e][5],T[e]=O(S[e],{theme:"dark",backgroundColor:"#141414"}),T[e].primary=T[e][5]}),C.red,C.volcano,C.gold,C.orange,C.yellow,C.lime,C.green,C.cyan;var A=C.blue;C.geekblue,C.purple,C.magenta,C.grey,C.grey;var R=(0,s.createContext)({}),N=n(12309),I=n(26407);function M(){return!!("undefined"!=typeof window&&window.document&&window.document.createElement)}function L(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var Z="data-rc-order",P="data-rc-priority",D="rc-util-key",z=new Map;function F(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):D}function H(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function B(e){return"queue"===e?"prependQueue":e?"prepend":"append"}function W(e){return Array.from((z.get(e)||e).children).filter(function(e){return"STYLE"===e.tagName})}function $(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!M())return null;var n=t.csp,r=t.prepend,o=t.priority,i=void 0===o?0:o,a=B(r),s="prependQueue"===a,l=document.createElement("style");l.setAttribute(Z,a),s&&i&&l.setAttribute(P,"".concat(i)),null!=n&&n.nonce&&(l.nonce=null==n?void 0:n.nonce),l.innerHTML=e;var c=H(t),u=c.firstChild;if(r){if(s){var d=W(c).filter(function(e){return!!["prepend","prependQueue"].includes(e.getAttribute(Z))&&i>=Number(e.getAttribute(P)||0)});if(d.length)return c.insertBefore(l,d[d.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function G(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return W(H(t)).find(function(n){return n.getAttribute(F(t))===e})}function U(e,t){var n=z.get(e);if(!n||!L(document,n)){var r=$("",t),o=r.parentNode;z.set(e,o),e.removeChild(r)}}function V(e,t){var n,r,o,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};U(H(i),i);var a=G(t,i);if(a)return null!==(n=i.csp)&&void 0!==n&&n.nonce&&a.nonce!==(null===(r=i.csp)||void 0===r?void 0:r.nonce)&&(a.nonce=null===(o=i.csp)||void 0===o?void 0:o.nonce),a.innerHTML!==e&&(a.innerHTML=e),a;var s=$(e,i);return s.setAttribute(F(i),t),s}function q(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function X(e){return q(e) instanceof ShadowRoot}function K(e){return X(e)?q(e):null}var Q={},Y=[],J=function(e){Y.push(e)};function ee(e,t){}function et(e,t){}function en(){Q={}}function er(e,t,n){t||Q[n]||(e(!1,n),Q[n]=!0)}function eo(e,t){er(ee,e,t)}function ei(e,t){er(et,e,t)}eo.preMessage=J,eo.resetWarned=en,eo.noteOnce=ei;var ea=eo;function es(e){return e.replace(/-(.)/g,function(e,t){return t.toUpperCase()})}function el(e,t){ea(e,"[@ant-design/icons] ".concat(t))}function ec(e){return"object"===(0,I.Z)(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===(0,I.Z)(e.icon)||"function"==typeof e.icon)}function eu(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];return"class"===n?(t.className=r,delete t.class):(delete t[n],t[es(n)]=r),t},{})}function ed(e,t,n){return n?s.createElement(e.tag,(0,N.Z)((0,N.Z)({key:t},eu(e.attrs)),n),(e.children||[]).map(function(n,r){return ed(n,"".concat(t,"-").concat(e.tag,"-").concat(r))})):s.createElement(e.tag,(0,N.Z)({key:t},eu(e.attrs)),(e.children||[]).map(function(n,r){return ed(n,"".concat(t,"-").concat(e.tag,"-").concat(r))}))}function ef(e){return O(e)[0]}function eh(e){return e?Array.isArray(e)?e:[e]:[]}var ep="\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",em=function(e){var t=(0,s.useContext)(R),n=t.csp,r=t.prefixCls,o=ep;r&&(o=o.replace(/anticon/g,r)),(0,s.useEffect)(function(){var t=K(e.current);V(o,"@ant-design-icons",{prepend:!0,csp:n,attachTo:t})},[])},eg=["icon","className","onClick","style","primaryColor","secondaryColor"],ex={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function ev(e){var t=e.primaryColor,n=e.secondaryColor;ex.primaryColor=t,ex.secondaryColor=n||ef(t),ex.calculated=!!n}function ey(){return(0,N.Z)({},ex)}var eb=function(e){var t=e.icon,n=e.className,r=e.onClick,o=e.style,i=e.primaryColor,l=e.secondaryColor,c=(0,a.Z)(e,eg),u=s.useRef(),d=ex;if(i&&(d={primaryColor:i,secondaryColor:l||ef(i)}),em(u),el(ec(t),"icon should be icon definiton, but got ".concat(t)),!ec(t))return null;var f=t;return f&&"function"==typeof f.icon&&(f=(0,N.Z)((0,N.Z)({},f),{},{icon:f.icon(d.primaryColor,d.secondaryColor)})),ed(f.icon,"svg-".concat(f.name),(0,N.Z)((0,N.Z)({className:n,onClick:r,style:o,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},c),{},{ref:u}))};eb.displayName="IconReact",eb.getTwoToneColors=ey,eb.setTwoToneColors=ev;var ew=eb;function ek(e){var t=eh(e),n=(0,o.Z)(t,2),r=n[0],i=n[1];return ew.setTwoToneColors({primaryColor:r,secondaryColor:i})}function e_(){var e=ew.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var ej=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];ek(A.primary);var eE=s.forwardRef(function(e,t){var n=e.className,l=e.icon,u=e.spin,d=e.rotate,f=e.tabIndex,h=e.onClick,p=e.twoToneColor,m=(0,a.Z)(e,ej),g=s.useContext(R),x=g.prefixCls,v=void 0===x?"anticon":x,y=g.rootClassName,b=c()(y,v,(0,i.Z)((0,i.Z)({},"".concat(v,"-").concat(l.name),!!l.name),"".concat(v,"-spin"),!!u||"loading"===l.name),n),w=f;void 0===w&&h&&(w=-1);var k=d?{msTransform:"rotate(".concat(d,"deg)"),transform:"rotate(".concat(d,"deg)")}:void 0,_=eh(p),j=(0,o.Z)(_,2),E=j[0],O=j[1];return s.createElement("span",(0,r.Z)({role:"img","aria-label":l.name},m,{ref:t,tabIndex:w,onClick:h,className:b}),s.createElement(ew,{icon:l,primaryColor:E,secondaryColor:O,style:k}))});eE.displayName="AntdIcon",eE.getTwoToneColor=e_,eE.setTwoToneColor=ek;var eO=eE},63529:function(e,t,n){"use strict";n.d(t,{M2:function(){return a},Tm:function(){return l},l$:function(){return i}});var r,o=n(50959);let{isValidElement:i}=r||(r=n.t(o,2));function a(e){return e&&i(e)&&e.type===o.Fragment}function s(e,t,n){return i(e)?o.cloneElement(e,"function"==typeof n?n(e.props||{}):n):t}function l(e,t){return s(e,e,t)}},73653:function(e,t,n){"use strict";n.d(t,{ZP:function(){return e4}});var r,o=n(50959),i=n(82187),a=n.n(i),s=n(12309);function l(e,t){var n=(0,s.Z)({},e);return Array.isArray(t)&&t.forEach(function(e){delete n[e]}),n}var c=n(57539),u=n(84989),d=n(56131),f=n(63529),h=n(2291);let p=e=>{let{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:"var(--wave-color, ".concat(n,")"),boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:["box-shadow 0.4s ".concat(e.motionEaseOutCirc),"opacity 2s ".concat(e.motionEaseOutCirc)].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:["box-shadow 0.3s ".concat(e.motionEaseInOut),"opacity 0.35s ".concat(e.motionEaseInOut)].join(",")}}}}};var m=(0,h.ZP)("Wave",e=>[p(e)]),g=n(8938),x=n(32126),v=n(10091),y=n(26407);function b(){b=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=Object.create((t&&t.prototype instanceof x?t:x).prototype);return o(i,"_invoke",{value:C(e,n,new N(r||[]))}),i}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",h="suspendedYield",p="executing",m="completed",g={};function x(){}function v(){}function w(){}var k={};c(k,a,function(){return this});var _=Object.getPrototypeOf,j=_&&_(_(I([])));j&&j!==n&&r.call(j,a)&&(k=j);var E=w.prototype=x.prototype=Object.create(k);function O(e){["next","throw","return"].forEach(function(t){c(e,t,function(e){return this._invoke(t,e)})})}function S(e,t){var n;function i(n,o,a,s){var l=d(e[n],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==(0,y.Z)(u)&&r.call(u,"__await")?t.resolve(u.__await).then(function(e){i("next",e,a,s)},function(e){i("throw",e,a,s)}):t.resolve(u).then(function(e){c.value=e,a(c)},function(e){return i("throw",e,a,s)})}s(l.arg)}o(this,"_invoke",{value:function(e,r){function o(){return new t(function(t,n){i(e,r,t,n)})}return n=n?n.then(o,o):o()}})}function C(t,n,r){var o=f;return function(i,a){if(o===p)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var l=T(s,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=p;var c=d(t,n,r);if("normal"===c.type){if(o=r.done?m:h,c.arg===g)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=m,r.method="throw",r.arg=c.arg)}}}function T(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=TypeError("The iterator does not provide a '"+r+"' method")),g;var i=d(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):a:(n.method="throw",n.arg=TypeError("iterator result is not an object"),n.delegate=null,g)}function A(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 R(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function I(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"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),R(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;R(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:I(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}var w=n(1017),k=n(10422),_=n.t(k,2),j=(0,s.Z)({},_),E=j.version,O=j.render,S=j.unmountComponentAtNode;try{Number((E||"").split(".")[0])>=18&&(r=j.createRoot)}catch(e){}function C(e){var t=j.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===(0,y.Z)(t)&&(t.usingClientEntryPoint=e)}var T="__rc_react_root__";function A(e,t){C(!0);var n=t[T]||r(t);C(!1),n.render(e),t[T]=n}function R(e,t){O(e,t)}function N(e,t){if(r){A(e,t);return}R(e,t)}function I(e){return M.apply(this,arguments)}function M(){return(M=(0,w.Z)(b().mark(function e(t){return b().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then(function(){var e;null===(e=t[T])||void 0===e||e.unmount(),delete t[T]}));case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)}function L(e){S(e)}function Z(e){return P.apply(this,arguments)}function P(){return(P=(0,w.Z)(b().mark(function e(t){return b().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(void 0!==r)){e.next=2;break}return e.abrupt("return",I(t));case 2:L(t);case 3:case"end":return e.stop()}},e)}))).apply(this,arguments)}function D(e){let t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return!t||!t[1]||!t[2]||!t[3]||!(t[1]===t[2]&&t[2]===t[3])}function z(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&D(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e}function F(e){let{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return z(t)?t:z(n)?n:z(r)?r:null}let H="ant-wave-target";function B(e){return Number.isNaN(e)?0:e}let W=e=>{let{className:t,target:n,component:r}=e,i=o.useRef(null),[s,l]=o.useState(null),[c,u]=o.useState([]),[d,f]=o.useState(0),[h,p]=o.useState(0),[m,g]=o.useState(0),[y,b]=o.useState(0),[w,k]=o.useState(!1),_={left:d,top:h,width:m,height:y,borderRadius:c.map(e=>"".concat(e,"px")).join(" ")};function j(){let e=getComputedStyle(n);l(F(n));let t="static"===e.position,{borderLeftWidth:r,borderTopWidth:o}=e;f(t?n.offsetLeft:B(-parseFloat(r))),p(t?n.offsetTop:B(-parseFloat(o))),g(n.offsetWidth),b(n.offsetHeight);let{borderTopLeftRadius:i,borderTopRightRadius:a,borderBottomLeftRadius:s,borderBottomRightRadius:c}=e;u([i,a,c,s].map(e=>B(parseFloat(e))))}if(s&&(_["--wave-color"]=s),o.useEffect(()=>{if(n){let e;let t=(0,x.Z)(()=>{j(),k(!0)});return"undefined"!=typeof ResizeObserver&&(e=new ResizeObserver(j)).observe(n),()=>{x.Z.cancel(t),null==e||e.disconnect()}}},[]),!w)return null;let E=("Checkbox"===r||"Radio"===r)&&(null==n?void 0:n.classList.contains(H));return o.createElement(v.ZP,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var n;if(t.deadline||"opacity"===t.propertyName){let e=null===(n=i.current)||void 0===n?void 0:n.parentElement;Z(e).then(()=>{null==e||e.remove()})}return!1}},e=>{let{className:n}=e;return o.createElement("div",{ref:i,className:a()(t,{"wave-quick":E},n),style:_})})};var $=(e,t)=>{var n;let{component:r}=t;if("Checkbox"===r&&!(null===(n=e.querySelector("input"))||void 0===n?void 0:n.checked))return;let i=document.createElement("div");i.style.position="absolute",i.style.left="0px",i.style.top="0px",null==e||e.insertBefore(i,null==e?void 0:e.firstChild),N(o.createElement(W,Object.assign({},t,{target:e})),i)},G=n(61129);function U(e,t,n){let{wave:r}=o.useContext(d.E_),[,i,a]=(0,G.ZP)(),s=(0,g.zX)(o=>{let s=e.current;if((null==r?void 0:r.disabled)||!s)return;let l=s.querySelector(".".concat(H))||s,{showEffect:c}=r||{};(c||$)(l,{className:t,token:i,component:n,event:o,hashId:a})}),l=o.useRef();return e=>{x.Z.cancel(l.current),l.current=(0,x.Z)(()=>{s(e)})}}var V=e=>{let{children:t,disabled:n,component:r}=e,{getPrefixCls:i}=(0,o.useContext)(d.E_),s=(0,o.useRef)(null),l=i("wave"),[,h]=m(l),p=U(s,a()(l,h),r);if(o.useEffect(()=>{let e=s.current;if(!e||1!==e.nodeType||n)return;let t=t=>{!(0,u.Z)(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||p(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}},[n]),!o.isValidElement(t))return null!=t?t:null;let g=(0,c.Yr)(t)?(0,c.sQ)(t.ref,s):s;return(0,f.Tm)(t,{ref:g})},q=o.createContext(!1),X=o.createContext(void 0),K=e=>{let t=o.useContext(X);return o.useMemo(()=>e?"string"==typeof e?null!=e?e:t:e instanceof Function?e(t):t:t,[e,t])},Q=n(31952),Y=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let J=o.createContext(void 0);var ee=e=>{let{getPrefixCls:t,direction:n}=o.useContext(d.E_),{prefixCls:r,size:i,className:s}=e,l=Y(e,["prefixCls","size","className"]),c=t("btn-group",r),[,,u]=(0,G.ZP)(),f="";switch(i){case"large":f="lg";break;case"small":f="sm"}let h=a()(c,{["".concat(c,"-").concat(f)]:f,["".concat(c,"-rtl")]:"rtl"===n},s,u);return o.createElement(J.Provider,{value:i},o.createElement("div",Object.assign({},l,{className:h})))};let et=/^[\u4e00-\u9fa5]{2}$/,en=et.test.bind(et);function er(e){return"string"==typeof e}function eo(e){return"text"===e||"link"===e}function ei(e,t){if(null==e)return;let n=t?" ":"";return"string"!=typeof e&&"number"!=typeof e&&er(e.type)&&en(e.props.children)?(0,f.Tm)(e,{children:e.props.children.split("").join(n)}):er(e)?en(e)?o.createElement("span",null,e.split("").join(n)):o.createElement("span",null,e):(0,f.M2)(e)?o.createElement("span",null,e):e}function ea(e,t){let n=!1,r=[];return o.Children.forEach(e,e=>{let t=typeof e,o="string"===t||"number"===t;if(n&&o){let t=r.length-1,n=r[t];r[t]="".concat(n).concat(e)}else r.push(e);n=o}),o.Children.map(r,e=>ei(e,t))}var es=(0,o.forwardRef)((e,t)=>{let{className:n,style:r,children:i,prefixCls:s}=e,l=a()("".concat(s,"-icon"),n);return o.createElement("span",{ref:t,className:l,style:r},i)}),el=n(97605),ec={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},eu=n(10362),ed=function(e,t){return o.createElement(eu.Z,(0,el.Z)({},e,{ref:t,icon:ec}))},ef=o.forwardRef(ed);let eh=(0,o.forwardRef)((e,t)=>{let{prefixCls:n,className:r,style:i,iconClassName:s}=e,l=a()("".concat(n,"-loading-icon"),r);return o.createElement(es,{prefixCls:n,className:l,style:i,ref:t},o.createElement(ef,{className:s}))}),ep=()=>({width:0,opacity:0,transform:"scale(0)"}),em=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"});var eg=e=>{let{prefixCls:t,loading:n,existIcon:r,className:i,style:a}=e,s=!!n;return r?o.createElement(eh,{prefixCls:t,className:i,style:a}):o.createElement(v.ZP,{visible:s,motionName:"".concat(t,"-loading-icon-motion"),motionLeave:s,removeOnLeave:!0,onAppearStart:ep,onAppearActive:em,onEnterStart:ep,onEnterActive:em,onLeaveStart:em,onLeaveActive:ep},(e,n)=>{let{className:r,style:s}=e;return o.createElement(eh,{prefixCls:t,className:i,style:Object.assign(Object.assign({},a),s),ref:n,iconClassName:r})})},ex=n(80548),ev=n(56432),ey=n(26845);let eb=(e,t)=>({["> span, > ".concat(e)]:{"&:not(:last-child)":{["&, & > ".concat(e)]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{["&, & > ".concat(e)]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}});var ew=e=>{let{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:i}=e;return{["".concat(t,"-group")]:[{position:"relative",display:"inline-flex",["> span, > ".concat(t)]:{"&:not(:last-child)":{["&, & > ".concat(t)]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),["&, & > ".concat(t)]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover,\n &:focus,\n &:active":{zIndex:2},"&[disabled]":{zIndex:0}},["".concat(t,"-icon-only")]:{fontSize:n}},eb("".concat(t,"-primary"),o),eb("".concat(t,"-danger"),i)]}},ek=n(62930);let e_=e=>{let{paddingInline:t,onlyIconSize:n,paddingBlock:r}=e;return(0,ey.TS)(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:r,buttonIconOnlyFontSize:n})},ej=e=>{var t,n,r,o,i,a;let s=null!==(t=e.contentFontSize)&&void 0!==t?t:e.fontSize,l=null!==(n=e.contentFontSizeSM)&&void 0!==n?n:e.fontSize,c=null!==(r=e.contentFontSizeLG)&&void 0!==r?r:e.fontSizeLG,u=null!==(o=e.contentLineHeight)&&void 0!==o?o:(0,ek.D)(s),d=null!==(i=e.contentLineHeightSM)&&void 0!==i?i:(0,ek.D)(l),f=null!==(a=e.contentLineHeightLG)&&void 0!==a?a:(0,ek.D)(c);return{fontWeight:400,defaultShadow:"0 ".concat(e.controlOutlineWidth,"px 0 ").concat(e.controlTmpOutline),primaryShadow:"0 ".concat(e.controlOutlineWidth,"px 0 ").concat(e.controlOutline),dangerShadow:"0 ".concat(e.controlOutlineWidth,"px 0 ").concat(e.colorErrorOutline),primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:e.colorBgTextHover,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,contentFontSize:s,contentFontSizeSM:l,contentFontSizeLG:c,contentLineHeight:u,contentLineHeightSM:d,contentLineHeightLG:f,paddingBlock:Math.max((e.controlHeight-s*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-l*d)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*f)/2-e.lineWidth,0)}},eE=e=>{let{componentCls:t,iconCls:n,fontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:"".concat((0,ex.bf)(e.lineWidth)," ").concat(e.lineType," transparent"),cursor:"pointer",transition:"all ".concat(e.motionDurationMid," ").concat(e.motionEaseInOut),userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},["".concat(t,"-icon")]:{lineHeight:0},["> ".concat(n," + span, > span + ").concat(n)]:{marginInlineStart:e.marginXS},["&:not(".concat(t,"-icon-only) > ").concat(t,"-icon")]:{["&".concat(t,"-loading-icon, &:not(:last-child)")]:{marginInlineEnd:e.marginXS}},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},(0,ev.Qy)(e)),["&".concat(t,"-two-chinese-chars::first-letter")]:{letterSpacing:"0.34em"},["&".concat(t,"-two-chinese-chars > *:not(").concat(n,")")]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},["&-icon-only".concat(t,"-compact-item")]:{flex:"none"}}}},eO=(e,t,n)=>({["&:not(:disabled):not(".concat(e,"-disabled)")]:{"&:hover":t,"&:active":n}}),eS=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),eC=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),eT=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),eA=(e,t,n,r,o,i,a,s)=>({["&".concat(e,"-background-ghost")]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},eO(e,Object.assign({background:t},a),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),eR=e=>({["&:disabled, &".concat(e.componentCls,"-disabled")]:Object.assign({},eT(e))}),eN=e=>Object.assign({},eR(e)),eI=e=>({["&:disabled, &".concat(e.componentCls,"-disabled")]:{cursor:"not-allowed",color:e.colorTextDisabled}}),eM=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},eN(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),eO(e.componentCls,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),eA(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),{["&".concat(e.componentCls,"-dangerous")]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},eO(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),eA(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),eR(e))}),eL=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},eN(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),eO(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),eA(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{["&".concat(e.componentCls,"-dangerous")]:Object.assign(Object.assign(Object.assign({background:e.colorError,boxShadow:e.dangerShadow,color:e.dangerColor},eO(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),eA(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),eR(e))}),eZ=e=>Object.assign(Object.assign({},eM(e)),{borderStyle:"dashed"}),eP=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},eO(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),eI(e)),{["&".concat(e.componentCls,"-dangerous")]:Object.assign(Object.assign({color:e.colorError},eO(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),eI(e))}),eD=e=>Object.assign(Object.assign(Object.assign({},eO(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),eI(e)),{["&".concat(e.componentCls,"-dangerous")]:Object.assign(Object.assign({color:e.colorError},eI(e)),eO(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBg}))}),ez=e=>{let{componentCls:t}=e;return{["".concat(t,"-default")]:eM(e),["".concat(t,"-primary")]:eL(e),["".concat(t,"-dashed")]:eZ(e),["".concat(t,"-link")]:eP(e),["".concat(t,"-text")]:eD(e),["".concat(t,"-ghost")]:eA(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},eF=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",{componentCls:n,controlHeight:r,fontSize:o,lineHeight:i,borderRadius:a,buttonPaddingHorizontal:s,iconCls:l,buttonPaddingVertical:c}=e,u="".concat(n,"-icon-only");return[{["".concat(t)]:{fontSize:o,lineHeight:i,height:r,padding:"".concat((0,ex.bf)(c)," ").concat((0,ex.bf)(s)),borderRadius:a,["&".concat(u)]:{width:r,paddingInlineStart:0,paddingInlineEnd:0,["&".concat(n,"-round")]:{width:"auto"},[l]:{fontSize:e.buttonIconOnlyFontSize}},["&".concat(n,"-loading")]:{opacity:e.opacityLoading,cursor:"default"},["".concat(n,"-loading-icon")]:{transition:"width ".concat(e.motionDurationSlow," ").concat(e.motionEaseInOut,", opacity ").concat(e.motionDurationSlow," ").concat(e.motionEaseInOut)}}},{["".concat(n).concat(n,"-circle").concat(t)]:eS(e)},{["".concat(n).concat(n,"-round").concat(t)]:eC(e)}]},eH=e=>eF((0,ey.TS)(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight}),e.componentCls),eB=e=>eF((0,ey.TS)(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,lineHeight:e.contentLineHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:e.paddingBlockSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM}),"".concat(e.componentCls,"-sm")),eW=e=>eF((0,ey.TS)(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG}),"".concat(e.componentCls,"-lg")),e$=e=>{let{componentCls:t}=e;return{[t]:{["&".concat(t,"-block")]:{width:"100%"}}}};var eG=(0,h.I$)("Button",e=>{let t=e_(e);return[eE(t),eH(t),eB(t),eW(t),e$(t),ez(t),ew(t)]},ej,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function eU(e,t,n){let{focusElCls:r,focus:o,borderElCls:i}=n,a=i?"> *":"",s=["hover",o?"focus":null,"active"].filter(Boolean).map(e=>"&:".concat(e," ").concat(a)).join(",");return{["&-item:not(".concat(t,"-last-item)")]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},r?{["&".concat(r)]:{zIndex:2}}:{}),{["&[disabled] ".concat(a)]:{zIndex:0}})}}function eV(e,t,n){let{borderElCls:r}=n,o=r?"> ".concat(r):"";return{["&-item:not(".concat(t,"-first-item):not(").concat(t,"-last-item) ").concat(o)]:{borderRadius:0},["&-item:not(".concat(t,"-last-item)").concat(t,"-first-item")]:{["& ".concat(o,", &").concat(e,"-sm ").concat(o,", &").concat(e,"-lg ").concat(o)]:{borderStartEndRadius:0,borderEndEndRadius:0}},["&-item:not(".concat(t,"-first-item)").concat(t,"-last-item")]:{["& ".concat(o,", &").concat(e,"-sm ").concat(o,", &").concat(e,"-lg ").concat(o)]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function eq(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{focus:!0},{componentCls:n}=e,r="".concat(n,"-compact");return{[r]:Object.assign(Object.assign({},eU(e,r,t)),eV(n,r,t))}}function eX(e,t){return{["&-item:not(".concat(t,"-last-item)")]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function eK(e,t){return{["&-item:not(".concat(t,"-first-item):not(").concat(t,"-last-item)")]:{borderRadius:0},["&-item".concat(t,"-first-item:not(").concat(t,"-last-item)")]:{["&, &".concat(e,"-sm, &").concat(e,"-lg")]:{borderEndEndRadius:0,borderEndStartRadius:0}},["&-item".concat(t,"-last-item:not(").concat(t,"-first-item)")]:{["&, &".concat(e,"-sm, &").concat(e,"-lg")]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function eQ(e){let t="".concat(e.componentCls,"-compact-vertical");return{[t]:Object.assign(Object.assign({},eX(e,t)),eK(e.componentCls,t))}}let eY=e=>{let{componentCls:t,calc:n}=e;return{[t]:{["&-compact-item".concat(t,"-primary")]:{["&:not([disabled]) + ".concat(t,"-compact-item").concat(t,"-primary:not([disabled])")]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:e.lineWidth,height:"calc(100% + ".concat((0,ex.bf)(e.lineWidth)," * 2)"),backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{["&".concat(t,"-primary")]:{["&:not([disabled]) + ".concat(t,"-compact-vertical-item").concat(t,"-primary:not([disabled])")]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:"calc(100% + ".concat((0,ex.bf)(e.lineWidth)," * 2)"),height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}};var eJ=(0,h.bk)(["Button","compact"],e=>{let t=e_(e);return[eq(t),eQ(t),eY(t)]},ej),e0=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function e1(e){if("object"==typeof e&&e){let t=null==e?void 0:e.delay;return{loading:(t=Number.isNaN(t)||"number"!=typeof t?0:t)<=0,delay:t}}return{loading:!!e,delay:0}}let e2=(e,t)=>{var n,r;let{loading:i=!1,prefixCls:s,type:u="default",danger:f,shape:h="default",size:p,styles:m,disabled:g,className:x,rootClassName:v,children:y,icon:b,ghost:w=!1,block:k=!1,htmlType:_="button",classNames:j,style:E={}}=e,O=e0(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),{getPrefixCls:S,autoInsertSpaceInButton:C,direction:T,button:A}=(0,o.useContext)(d.E_),R=S("btn",s),[N,I,M]=eG(R),L=(0,o.useContext)(q),Z=null!=g?g:L,P=(0,o.useContext)(J),D=(0,o.useMemo)(()=>e1(i),[i]),[z,F]=(0,o.useState)(D.loading),[H,B]=(0,o.useState)(!1),W=(0,o.createRef)(),$=(0,c.sQ)(t,W),G=1===o.Children.count(y)&&!b&&!eo(u);(0,o.useEffect)(()=>{let e=null;return D.delay>0?e=setTimeout(()=>{e=null,F(!0)},D.delay):F(D.loading),function(){e&&(clearTimeout(e),e=null)}},[D]),(0,o.useEffect)(()=>{if(!$||!$.current||!1===C)return;let e=$.current.textContent;G&&en(e)?H||B(!0):H&&B(!1)},[$]);let U=t=>{let{onClick:n}=e;if(z||Z){t.preventDefault();return}null==n||n(t)},X=!1!==C,{compactSize:Y,compactItemClassnames:ee}=(0,Q.ri)(R,T),et={large:"lg",small:"sm",middle:void 0},er=K(e=>{var t,n;return null!==(n=null!==(t=null!=p?p:Y)&&void 0!==t?t:P)&&void 0!==n?n:e}),ei=er&&et[er]||"",el=z?"loading":b,ec=l(O,["navigate"]),eu=a()(R,I,M,{["".concat(R,"-").concat(h)]:"default"!==h&&h,["".concat(R,"-").concat(u)]:u,["".concat(R,"-").concat(ei)]:ei,["".concat(R,"-icon-only")]:!y&&0!==y&&!!el,["".concat(R,"-background-ghost")]:w&&!eo(u),["".concat(R,"-loading")]:z,["".concat(R,"-two-chinese-chars")]:H&&X&&!z,["".concat(R,"-block")]:k,["".concat(R,"-dangerous")]:!!f,["".concat(R,"-rtl")]:"rtl"===T},ee,x,v,null==A?void 0:A.className),ed=Object.assign(Object.assign({},null==A?void 0:A.style),E),ef=a()(null==j?void 0:j.icon,null===(n=null==A?void 0:A.classNames)||void 0===n?void 0:n.icon),eh=Object.assign(Object.assign({},(null==m?void 0:m.icon)||{}),(null===(r=null==A?void 0:A.styles)||void 0===r?void 0:r.icon)||{}),ep=b&&!z?o.createElement(es,{prefixCls:R,className:ef,style:eh},b):o.createElement(eg,{existIcon:!!b,prefixCls:R,loading:!!z}),em=y||0===y?ea(y,G&&X):null;if(void 0!==ec.href)return N(o.createElement("a",Object.assign({},ec,{className:a()(eu,{["".concat(R,"-disabled")]:Z}),href:Z?void 0:ec.href,style:ed,onClick:U,ref:$,tabIndex:Z?-1:0}),ep,em));let ex=o.createElement("button",Object.assign({},O,{type:_,className:eu,style:ed,onClick:U,disabled:Z,ref:$}),ep,em,!!ee&&o.createElement(eJ,{key:"compact",prefixCls:R}));return eo(u)||(ex=o.createElement(V,{component:"Button",disabled:!!z},ex)),N(ex)},e5=(0,o.forwardRef)(e2);e5.Group=ee,e5.__ANT_BUTTON=!0;var e4=e5},56131:function(e,t,n){"use strict";n.d(t,{E_:function(){return a}});var r=n(50959);let o="anticon",i=(e,t)=>t||(e?"ant-".concat(e):"ant"),a=r.createContext({getPrefixCls:i,iconPrefixCls:o}),{Consumer:s}=a},31952:function(e,t,n){"use strict";n.d(t,{BR:function(){return l},ri:function(){return s}});var r=n(82187),o=n.n(r);n(44112);var i=n(50959);let a=i.createContext(null),s=(e,t)=>{let n=i.useContext(a),r=i.useMemo(()=>{if(!n)return"";let{compactDirection:r,isFirstItem:i,isLastItem:a}=n,s="vertical"===r?"-vertical-":"-";return o()("".concat(e,"-compact").concat(s,"item"),{["".concat(e,"-compact").concat(s,"first-item")]:i,["".concat(e,"-compact").concat(s,"last-item")]:a,["".concat(e,"-compact").concat(s,"item-rtl")]:"rtl"===t})},[e,t,n]);return{compactSize:null==n?void 0:n.compactSize,compactDirection:null==n?void 0:n.compactDirection,compactItemClassnames:r}},l=e=>{let{children:t}=e;return i.createElement(a.Provider,{value:null},t)}},56432:function(e,t,n){"use strict";n.d(t,{Lx:function(){return a},Qy:function(){return c},Ro:function(){return i},Wf:function(){return o},du:function(){return s}});var r=n(80548);let o=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},i=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),a=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:"color ".concat(e.motionDurationSlow),"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active,\n &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),s=(e,t,n)=>{let{fontFamily:r,fontSize:o}=e,i='[class^="'.concat(t,'"], [class*=" ').concat(t,'"]');return{[n?".".concat(n):i]:{fontFamily:r,fontSize:o,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[i]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},l=e=>({outline:"".concat((0,r.bf)(e.lineWidthFocus)," solid ").concat(e.colorPrimaryBorder),outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),c=e=>({"&:focus-visible":Object.assign({},l(e))})},62930:function(e,t,n){"use strict";function r(e){return(e+8)/e}function o(e){let t=Array(10).fill(null).map((t,n)=>{let r=e*Math.pow(2.71828,(n-1)/5);return 2*Math.floor((n>1?Math.floor(r):Math.ceil(r))/2)});return t[1]=e,t.map(e=>({size:e,lineHeight:r(e)}))}n.d(t,{D:function(){return r},Z:function(){return o}})},61129:function(e,t,n){"use strict";n.d(t,{ZP:function(){return et},ID:function(){return Y},NJ:function(){return Q}});var r=n(50959),o=n(80548),i="5.14.2",a=n(96299),s=n(28556),l=2,c=.16,u=.05,d=.05,f=.15,h=5,p=4,m=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function g(e){var t=e.r,n=e.g,r=e.b,o=(0,a.py)(t,n,r);return{h:360*o.h,s:o.s,v:o.v}}function x(e){var t=e.r,n=e.g,r=e.b;return"#".concat((0,a.vq)(t,n,r,!1))}function v(e,t,n){var r=n/100;return{r:(t.r-e.r)*r+e.r,g:(t.g-e.g)*r+e.g,b:(t.b-e.b)*r+e.b}}function y(e,t,n){var r;return(r=Math.round(e.h)>=60&&240>=Math.round(e.h)?n?Math.round(e.h)-l*t:Math.round(e.h)+l*t:n?Math.round(e.h)+l*t:Math.round(e.h)-l*t)<0?r+=360:r>=360&&(r-=360),r}function b(e,t,n){var r;return 0===e.h&&0===e.s?e.s:((r=n?e.s-c*t:t===p?e.s+c:e.s+u*t)>1&&(r=1),n&&t===h&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)))}function w(e,t,n){var r;return(r=n?e.v+d*t:e.v-f*t)>1&&(r=1),Number(r.toFixed(2))}function k(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=(0,s.uA)(e),o=h;o>0;o-=1){var i=g(r),a=x((0,s.uA)({h:y(i,o,!0),s:b(i,o,!0),v:w(i,o,!0)}));n.push(a)}n.push(x(r));for(var l=1;l<=p;l+=1){var c=g(r),u=x((0,s.uA)({h:y(c,l),s:b(c,l),v:w(c,l)}));n.push(u)}return"dark"===t.theme?m.map(function(e){var r=e.index,o=e.opacity;return x(v((0,s.uA)(t.backgroundColor||"#141414"),(0,s.uA)(n[r]),100*o))}):n}var _={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},j={},E={};Object.keys(_).forEach(function(e){j[e]=k(_[e]),j[e].primary=j[e][5],E[e]=k(_[e],{theme:"dark",backgroundColor:"#141414"}),E[e].primary=E[e][5]}),j.red,j.volcano,j.gold,j.orange,j.yellow,j.lime,j.green,j.cyan,j.blue,j.geekblue,j.purple,j.magenta,j.grey,j.grey;var O=e=>{let{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}};function S(e){let{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}let C={blue:"#1677ff",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#eb2f96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"};var T=Object.assign(Object.assign({},C),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'Noto Color Emoji'",fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0}),A=n(76367),R=n(23881),N=function(){function e(t,n){if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"==typeof t&&(t=(0,a.Yt)(t)),this.originalInput=t;var r,o=(0,s.uA)(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(r=n.format)&&void 0!==r?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return 128>this.getBrightness()},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e,t,n,r=this.toRgb(),o=r.r/255,i=r.g/255,a=r.b/255;return .2126*(e=o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4))+.7152*(t=i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4))+.0722*(n=a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=(0,R.Yq)(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=(0,a.py)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=(0,a.py)(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=(0,a.lC)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=(0,a.lC)(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),(0,a.vq)(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),(0,a.s)(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*(0,R.sh)(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*(0,R.sh)(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+(0,a.vq)(this.r,this.g,this.b,!1),t=0,n=Object.entries(A.R);t=0;return!t&&r&&(e.startsWith("hex")||"name"===e)?"name"===e&&0===this.a?this.toName():this.toRgbString():("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),("hex"===e||"hex6"===e)&&(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=(0,R.V2)(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-(t/100*255)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-(t/100*255)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-(t/100*255)))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=(0,R.V2)(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=(0,R.V2)(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=(0,R.V2)(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100;return new e({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,i=n.v,a=[],s=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+s)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],i=360/t,a=1;a{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}};function L(e){let{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:"".concat((n+t).toFixed(1),"s"),motionDurationMid:"".concat((n+2*t).toFixed(1),"s"),motionDurationSlow:"".concat((n+3*t).toFixed(1),"s"),lineWidthBold:o+1},M(r))}let Z=(e,t)=>new N(e).setAlpha(t).toRgbString(),P=(e,t)=>new N(e).darken(t).toHexString(),D=e=>{let t=k(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},z=(e,t)=>{let n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Z(r,.88),colorTextSecondary:Z(r,.65),colorTextTertiary:Z(r,.45),colorTextQuaternary:Z(r,.25),colorFill:Z(r,.15),colorFillSecondary:Z(r,.06),colorFillTertiary:Z(r,.04),colorFillQuaternary:Z(r,.02),colorBgLayout:P(n,4),colorBgContainer:P(n,0),colorBgElevated:P(n,0),colorBgSpotlight:Z(r,.85),colorBgBlur:"transparent",colorBorder:P(n,15),colorBorderSecondary:P(n,6)}};var F=n(62930),H=e=>{let t=(0,F.Z)(e),n=t.map(e=>e.size),r=t.map(e=>e.lineHeight),o=n[1],i=n[0],a=n[2],s=r[1],l=r[0],c=r[2];return{fontSizeSM:i,fontSize:o,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(s*o),fontHeightLG:Math.round(c*a),fontHeightSM:Math.round(l*i),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function B(e){let t=Object.keys(C).map(t=>{let n=k(e[t]);return Array(10).fill(1).reduce((e,r,o)=>(e["".concat(t,"-").concat(o+1)]=n[o],e["".concat(t).concat(o+1)]=n[o],e),{})}).reduce((e,t)=>e=Object.assign(Object.assign({},e),t),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),I(e,{generateColorPalettes:D,generateNeutralColorPalettes:z})),H(e.fontSize)),S(e)),O(e)),L(e))}let W=(0,o.jG)(B),$={token:T,override:{override:T},hashed:!0},G=r.createContext($);function U(e){return e>=0&&e<=255}var V=function(e,t){let{r:n,g:r,b:o,a:i}=new N(e).toRgb();if(i<1)return e;let{r:a,g:s,b:l}=new N(t).toRgb();for(let e=.01;e<=1;e+=.01){let t=Math.round((n-a*(1-e))/e),i=Math.round((r-s*(1-e))/e),c=Math.round((o-l*(1-e))/e);if(U(t)&&U(i)&&U(c))return new N({r:t,g:i,b:c,a:Math.round(100*e)/100}).toRgbString()}return new N({r:n,g:r,b:o,a:1}).toRgbString()},q=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function X(e){let{override:t}=e,n=q(e,["override"]),r=Object.assign({},t);Object.keys(T).forEach(e=>{delete r[e]});let o=Object.assign(Object.assign({},n),r),i=480,a=576,s=768,l=992,c=1200,u=1600;if(!1===o.motion){let e="0s";o.motionDurationFast=e,o.motionDurationMid=e,o.motionDurationSlow=e}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:V(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:V(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:V(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:4*o.lineWidth,lineWidth:o.lineWidth,controlOutlineWidth:2*o.lineWidth,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:V(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowSecondary:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTertiary:"\n 0 1px 2px 0 rgba(0, 0, 0, 0.03),\n 0 1px 6px -1px rgba(0, 0, 0, 0.02),\n 0 2px 4px 0 rgba(0, 0, 0, 0.02)\n ",screenXS:i,screenXSMin:i,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:l-1,screenLG:l,screenLGMin:l,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:u-1,screenXXL:u,screenXXLMin:u,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:"\n 0 1px 2px -2px ".concat(new N("rgba(0, 0, 0, 0.16)").toRgbString(),",\n 0 3px 6px 0 ").concat(new N("rgba(0, 0, 0, 0.12)").toRgbString(),",\n 0 5px 12px 4px ").concat(new N("rgba(0, 0, 0, 0.09)").toRgbString(),"\n "),boxShadowDrawerRight:"\n -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerLeft:"\n 6px 0 16px 0 rgba(0, 0, 0, 0.08),\n 3px 0 6px -4px rgba(0, 0, 0, 0.12),\n 9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerUp:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerDown:"\n 0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var K=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let Q={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0},Y={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},J={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},ee=(e,t,n)=>{let r=n.getDerivativeToken(e),{override:o}=t,i=K(t,["override"]),a=Object.assign(Object.assign({},r),{override:o});return a=X(a),i&&Object.entries(i).forEach(e=>{let[t,n]=e,{theme:r}=n,o=K(n,["theme"]),i=o;r&&(i=ee(Object.assign(Object.assign({},a),o),{override:o},r)),a[t]=i}),a};function et(){let{token:e,hashed:t,theme:n,override:a,cssVar:s}=r.useContext(G),l="".concat(i,"-").concat(t||""),c=n||W,[u,d,f]=(0,o.fp)(c,[T,e],{salt:l,override:a,getComputedToken:ee,formatToken:X,cssVar:s&&{prefix:s.prefix,key:s.key,unitless:Q,ignore:Y,preserve:J}});return[c,f,t?d:"",u,s]}},2291:function(e,t,n){"use strict";n.d(t,{ZP:function(){return C},I$:function(){return R},bk:function(){return T}});var r=n(50959),o=n(80548);n(8938);var i=n(56131),a=n(56432),s=n(61129),l=n(9130),c=n(82349),u=n(47442),d=n(78540),f=n(51289),h=n(53264),p=(0,c.Z)(function e(){(0,l.Z)(this,e)});function m(e,t,n){return t=(0,f.Z)(t),(0,u.Z)(e,(0,d.Z)()?Reflect.construct(t,n||[],(0,f.Z)(e).constructor):t.apply(e,n))}let g=function(e){function t(e){var n;return(0,l.Z)(this,t),(n=m(this,t)).result=0,e instanceof t?n.result=e.result:"number"==typeof e&&(n.result=e),n}return(0,h.Z)(t,e),(0,c.Z)(t,[{key:"add",value:function(e){return e instanceof t?this.result+=e.result:"number"==typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof t?this.result-=e.result:"number"==typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof t?this.result*=e.result:"number"==typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof t?this.result/=e.result:"number"==typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}]),t}(p);function x(e,t,n){return t=(0,f.Z)(t),(0,u.Z)(e,(0,d.Z)()?Reflect.construct(t,n||[],(0,f.Z)(e).constructor):t.apply(e,n))}let v="CALC_UNIT";function y(e){return"number"==typeof e?"".concat(e).concat(v):e}let b=function(e){function t(e){var n;return(0,l.Z)(this,t),(n=x(this,t)).result="",e instanceof t?n.result="(".concat(e.result,")"):"number"==typeof e?n.result=y(e):"string"==typeof e&&(n.result=e),n}return(0,h.Z)(t,e),(0,c.Z)(t,[{key:"add",value:function(e){return e instanceof t?this.result="".concat(this.result," + ").concat(e.getResult()):("number"==typeof e||"string"==typeof e)&&(this.result="".concat(this.result," + ").concat(y(e))),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof t?this.result="".concat(this.result," - ").concat(e.getResult()):("number"==typeof e||"string"==typeof e)&&(this.result="".concat(this.result," - ").concat(y(e))),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof t?this.result="".concat(this.result," * ").concat(e.getResult(!0)):("number"==typeof e||"string"==typeof e)&&(this.result="".concat(this.result," * ").concat(e)),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof t?this.result="".concat(this.result," / ").concat(e.getResult(!0)):("number"==typeof e||"string"==typeof e)&&(this.result="".concat(this.result," / ").concat(e)),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(e){let{unit:t=!0}=e||{},n=RegExp("".concat(v),"g");return(this.result=this.result.replace(n,t?"px":""),void 0!==this.lowPriority)?"calc(".concat(this.result,")"):this.result}}]),t}(p);var w=e=>{let t="css"===e?b:g;return e=>new t(e)};function k(e){return"js"===e?{max:Math.max,min:Math.min}:{max:function(){for(var e=arguments.length,t=Array(e),n=0;n(0,o.bf)(e)).join(","),")")},min:function(){for(var e=arguments.length,t=Array(e),n=0;n(0,o.bf)(e)).join(","),")")}}}var _=n(26845),j=(e,t)=>{let[n,r]=(0,s.ZP)();return(0,o.xy)({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>null==t?void 0:t.nonce},()=>[{[".".concat(e)]:Object.assign(Object.assign({},(0,a.Ro)()),{[".".concat(e," .").concat(e,"-icon")]:{display:"block"}})}])};let E=(e,t,n)=>{var r;return"function"==typeof n?n((0,_.TS)(t,null!==(r=t[e])&&void 0!==r?r:{})):null!=n?n:{}},O=(e,t,n,r)=>{let o=Object.assign({},t[e]);if(null==r?void 0:r.deprecatedTokens){let{deprecatedTokens:e}=r;e.forEach(e=>{var t;let[n,r]=e;((null==o?void 0:o[n])||(null==o?void 0:o[r]))&&(null!==(t=o[r])&&void 0!==t||(o[r]=null==o?void 0:o[n]))})}let i=Object.assign(Object.assign({},n),o);return Object.keys(i).forEach(e=>{i[e]===t[e]&&delete i[e]}),i},S=(e,t)=>"".concat([t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"));function C(e,t,n){let l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},c=Array.isArray(e)?e:[e,e],[u]=c,d=c.join("-");return function(e){let c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,[f,h,p,m,g]=(0,s.ZP)(),{getPrefixCls:x,iconPrefixCls:v,csp:y}=(0,r.useContext)(i.E_),b=x(),C=g?"css":"js",T=w(C),{max:A,min:R}=k(C),N={theme:f,token:m,hashId:p,nonce:()=>null==y?void 0:y.nonce,clientOnly:l.clientOnly,order:l.order||-999};return(0,o.xy)(Object.assign(Object.assign({},N),{clientOnly:!1,path:["Shared",b]}),()=>[{"&":(0,a.Lx)(m)}]),j(v,y),[(0,o.xy)(Object.assign(Object.assign({},N),{path:[d,e,v]}),()=>{if(!1===l.injectStyle)return[];let{token:r,flush:i}=(0,_.ZP)(m),s=E(u,h,n),d=".".concat(e),f=O(u,h,s,{deprecatedTokens:l.deprecatedTokens});g&&Object.keys(s).forEach(e=>{s[e]="var(".concat((0,o.ks)(e,S(u,g.prefix)),")")});let x=(0,_.TS)(r,{componentCls:d,prefixCls:e,iconCls:".".concat(v),antCls:".".concat(b),calc:T,max:A,min:R},g?s:f),y=t(x,{hashId:p,prefixCls:e,rootPrefixCls:b,iconPrefixCls:v});return i(u,f),[!1===l.resetStyle?null:(0,a.du)(x,e,c),y]}),p]}}let T=(e,t,n,r)=>{let o=C(e,t,n,Object.assign({resetStyle:!1,order:-998},r));return e=>{let{prefixCls:t,rootCls:n=t}=e;return o(t,n),null}},A=(e,t,n)=>{function i(t){return"".concat(e).concat(t.slice(0,1).toUpperCase()).concat(t.slice(1))}let{unitless:a={},injectStyle:l=!0}=null!=n?n:{},c={[i("zIndexPopup")]:!0};Object.keys(a).forEach(e=>{c[i(e)]=a[e]});let u=r=>{let{rootCls:a,cssVar:l}=r,[,u]=(0,s.ZP)();return(0,o.CI)({path:[e],prefix:l.prefix,key:null==l?void 0:l.key,unitless:Object.assign(Object.assign({},s.NJ),c),ignore:s.ID,token:u,scope:a},()=>{let r=E(e,u,t),o=O(e,u,r,{deprecatedTokens:null==n?void 0:n.deprecatedTokens});return Object.keys(r).forEach(e=>{o[i(e)]=o[e],delete o[e]}),o}),null};return t=>{let[,,,,n]=(0,s.ZP)();return[o=>l&&n?r.createElement(r.Fragment,null,r.createElement(u,{rootCls:t,cssVar:n,component:e}),o):o,null==n?void 0:n.key]}},R=(e,t,n,r)=>{let o=C(e,t,n,r),i=A(Array.isArray(e)?e[0]:e,n,r);return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,[,n]=o(e,t),[r,a]=i(t);return[r,n,a]}}},26845:function(e,t,n){"use strict";n.d(t,{TS:function(){return i}});let r="undefined"!=typeof CSSINJS_STATISTIC,o=!0;function i(){for(var e=arguments.length,t=Array(e),n=0;n{Object.keys(e).forEach(t=>{Object.defineProperty(i,t,{configurable:!0,enumerable:!0,get:()=>e[t]})})}),o=!0,i}let a={};function s(){}let l=e=>{let t;let n=e,i=s;return r&&"undefined"!=typeof Proxy&&(t=new Set,n=new Proxy(e,{get:(e,n)=>(o&&t.add(n),e[n])}),i=(e,n)=>{var r;a[e]={global:Array.from(t),component:Object.assign(Object.assign({},null===(r=a[e])||void 0===r?void 0:r.component),n)}}),{token:n,keys:t,flush:i}};t.ZP=l},65370:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{PrefetchKind:function(){return n},ACTION_REFRESH:function(){return r},ACTION_NAVIGATE:function(){return o},ACTION_RESTORE:function(){return i},ACTION_SERVER_PATCH:function(){return a},ACTION_PREFETCH:function(){return s},ACTION_FAST_REFRESH:function(){return l},ACTION_SERVER_ACTION:function(){return c},isThenable:function(){return u}});let r="refresh",o="navigate",i="restore",a="server-patch",s="prefetch",l="fast-refresh",c="server-action";function u(e){return e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}!function(e){e.AUTO="auto",e.FULL="full",e.TEMPORARY="temporary"}(n||(n={})),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},78454:function(e,t,n){"use strict";function r(e,t,n,r){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return r}}),n(18244),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},73137:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return y}});let r=n(81351),o=n(35815),i=n(11527),a=o._(n(50959)),s=r._(n(10422)),l=r._(n(12736)),c=n(69074),u=n(2464),d=n(87216);n(96496);let f=n(96449),h=r._(n(45802)),p={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!0,unoptimized:!0};function m(e,t,n,r,o,i){let a=null==e?void 0:e.src;e&&e["data-loaded-src"]!==a&&(e["data-loaded-src"]=a,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&o(!0),null==n?void 0:n.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let r=!1,o=!1;n.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>r,isPropagationStopped:()=>o,persist:()=>{},preventDefault:()=>{r=!0,t.preventDefault()},stopPropagation:()=>{o=!0,t.stopPropagation()}})}(null==r?void 0:r.current)&&r.current(e)}}))}function g(e){let[t,n]=a.version.split(".",2),r=parseInt(t,10),o=parseInt(n,10);return r>18||18===r&&o>=3?{fetchPriority:e}:{fetchpriority:e}}let x=(0,a.forwardRef)((e,t)=>{let{src:n,srcSet:r,sizes:o,height:s,width:l,decoding:c,className:u,style:d,fetchPriority:f,placeholder:h,loading:p,unoptimized:x,fill:v,onLoadRef:y,onLoadingCompleteRef:b,setBlurComplete:w,setShowAltText:k,onLoad:_,onError:j,...E}=e;return(0,i.jsx)("img",{...E,...g(f),loading:p,width:l,height:s,decoding:c,"data-nimg":v?"fill":"1",className:u,style:d,sizes:o,srcSet:r,src:n,ref:(0,a.useCallback)(e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(j&&(e.src=e.src),e.complete&&m(e,h,y,b,w,x))},[n,h,y,b,w,j,x,t]),onLoad:e=>{m(e.currentTarget,h,y,b,w,x)},onError:e=>{k(!0),"empty"!==h&&w(!0),j&&j(e)}})});function v(e){let{isAppRouter:t,imgAttributes:n}=e,r={as:"image",imageSrcSet:n.srcSet,imageSizes:n.sizes,crossOrigin:n.crossOrigin,referrerPolicy:n.referrerPolicy,...g(n.fetchPriority)};return t&&s.default.preload?(s.default.preload(n.src,r),null):(0,i.jsx)(l.default,{children:(0,i.jsx)("link",{rel:"preload",href:n.srcSet?void 0:n.src,...r},"__nimg-"+n.src+n.srcSet+n.sizes)})}let y=(0,a.forwardRef)((e,t)=>{let n=!(0,a.useContext)(f.RouterContext),r=(0,a.useContext)(d.ImageConfigContext),o=(0,a.useMemo)(()=>{let e=p||r||u.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),n=e.deviceSizes.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:n}},[r]),{onLoad:s,onLoadingComplete:l}=e,m=(0,a.useRef)(s);(0,a.useEffect)(()=>{m.current=s},[s]);let g=(0,a.useRef)(l);(0,a.useEffect)(()=>{g.current=l},[l]);let[y,b]=(0,a.useState)(!1),[w,k]=(0,a.useState)(!1),{props:_,meta:j}=(0,c.getImgProps)(e,{defaultLoader:h.default,imgConf:o,blurComplete:y,showAltText:w});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(x,{..._,unoptimized:j.unoptimized,placeholder:j.placeholder,fill:j.fill,onLoadRef:m,onLoadingCompleteRef:g,setBlurComplete:b,setShowAltText:k,ref:t}),j.priority?(0,i.jsx)(v,{isAppRouter:n,imgAttributes:_}):null]})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},50371:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return k}});let r=n(81351),o=n(11527),i=r._(n(50959)),a=n(15600),s=n(87497),l=n(85688),c=n(88596),u=n(18428),d=n(96449),f=n(40416),h=n(66855),p=n(78454),m=n(16013),g=n(65370),x=new Set;function v(e,t,n,r,o,i){if(i||(0,s.isLocalURL)(t)){if(!r.bypassPrefetchedCheck){let o=t+"%"+n+"%"+(void 0!==r.locale?r.locale:"locale"in e?e.locale:void 0);if(x.has(o))return;x.add(o)}Promise.resolve(i?e.prefetch(t,o):e.prefetch(t,n,r)).catch(e=>{})}}function y(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}function b(e,t,n,r,o,a,l,c,u){let{nodeName:d}=e.currentTarget;if("A"===d.toUpperCase()&&(y(e)||!u&&!(0,s.isLocalURL)(n)))return;e.preventDefault();let f=()=>{let e=null==l||l;"beforePopState"in t?t[o?"replace":"push"](n,r,{shallow:a,locale:c,scroll:e}):t[o?"replace":"push"](r||n,{scroll:e})};u?i.default.startTransition(f):f()}function w(e){return"string"==typeof e?e:(0,l.formatUrl)(e)}let k=i.default.forwardRef(function(e,t){let n,r;let{href:s,as:l,children:x,prefetch:y=null,passHref:k,replace:_,shallow:j,scroll:E,locale:O,onClick:S,onMouseEnter:C,onTouchStart:T,legacyBehavior:A=!1,...R}=e;n=x,A&&("string"==typeof n||"number"==typeof n)&&(n=(0,o.jsx)("a",{children:n}));let N=i.default.useContext(d.RouterContext),I=i.default.useContext(f.AppRouterContext),M=null!=N?N:I,L=!N,Z=!1!==y,P=null===y?g.PrefetchKind.AUTO:g.PrefetchKind.FULL,{href:D,as:z}=i.default.useMemo(()=>{if(!N){let e=w(s);return{href:e,as:l?w(l):e}}let[e,t]=(0,a.resolveHref)(N,s,!0);return{href:e,as:l?(0,a.resolveHref)(N,l):t||e}},[N,s,l]),F=i.default.useRef(D),H=i.default.useRef(z);A&&(r=i.default.Children.only(n));let B=A?r&&"object"==typeof r&&r.ref:t,[W,$,G]=(0,h.useIntersection)({rootMargin:"200px"}),U=i.default.useCallback(e=>{(H.current!==z||F.current!==D)&&(G(),H.current=z,F.current=D),W(e),B&&("function"==typeof B?B(e):"object"==typeof B&&(B.current=e))},[z,B,D,G,W]);i.default.useEffect(()=>{M&&$&&Z&&v(M,D,z,{locale:O},{kind:P},L)},[z,D,$,O,Z,null==N?void 0:N.locale,M,L,P]);let V={ref:U,onClick(e){A||"function"!=typeof S||S(e),A&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),M&&!e.defaultPrevented&&b(e,M,D,z,_,j,E,O,L)},onMouseEnter(e){A||"function"!=typeof C||C(e),A&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),M&&(Z||!L)&&v(M,D,z,{locale:O,priority:!0,bypassPrefetchedCheck:!0},{kind:P},L)},onTouchStart(e){A||"function"!=typeof T||T(e),A&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),M&&(Z||!L)&&v(M,D,z,{locale:O,priority:!0,bypassPrefetchedCheck:!0},{kind:P},L)}};if((0,c.isAbsoluteUrl)(z))V.href=z;else if(!A||k||"a"===r.type&&!("href"in r.props)){let e=void 0!==O?O:null==N?void 0:N.locale,t=(null==N?void 0:N.isLocaleDomain)&&(0,p.getDomainLocale)(z,e,null==N?void 0:N.locales,null==N?void 0:N.domainLocales);V.href=t||(0,m.addBasePath)((0,u.addLocale)(z,e,null==N?void 0:N.defaultLocale))}return A?i.default.cloneElement(r,V):(0,o.jsx)("a",{...R,...V,children:n})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},66855:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return u}});let r=n(50959),o=n(78776),i="function"==typeof IntersectionObserver,a=new Map,s=[];function l(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},r=s.find(e=>e.root===n.root&&e.margin===n.margin);if(r&&(t=a.get(r)))return t;let o=new Map;return t={id:n,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=o.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e),elements:o},s.push(n),a.set(n,t),t}function c(e,t,n){let{id:r,observer:o,elements:i}=l(n);return i.set(e,t),o.observe(e),function(){if(i.delete(e),o.unobserve(e),0===i.size){o.disconnect(),a.delete(r);let e=s.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&s.splice(e,1)}}}function u(e){let{rootRef:t,rootMargin:n,disabled:a}=e,s=a||!i,[l,u]=(0,r.useState)(!1),d=(0,r.useRef)(null),f=(0,r.useCallback)(e=>{d.current=e},[]);return(0,r.useEffect)(()=>{if(i){if(s||l)return;let e=d.current;if(e&&e.tagName)return c(e,e=>e&&u(e),{root:null==t?void 0:t.current,rootMargin:n})}else if(!l){let e=(0,o.requestIdleCallback)(()=>u(!0));return()=>(0,o.cancelIdleCallback)(e)}},[s,n,t,l,d.current]),[f,l,(0,r.useCallback)(()=>{u(!1)},[])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},69074:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return d}}),n(96496);let r=n(61009),o=n(2464);function i(e){return void 0!==e.default}function a(e){return void 0!==e.src}function s(e){return"object"==typeof e&&(i(e)||a(e))}function l(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function c(e,t,n){let{deviceSizes:r,allSizes:o}=e;if(n){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let r;r=e.exec(n);r)t.push(parseInt(r[2]));if(t.length){let e=.01*Math.min(...t);return{widths:o.filter(t=>t>=r[0]*e),kind:"w"}}return{widths:o,kind:"w"}}return"number"!=typeof t?{widths:r,kind:"w"}:{widths:[...new Set([t,2*t].map(e=>o.find(t=>t>=e)||o[o.length-1]))],kind:"x"}}function u(e){let{config:t,src:n,unoptimized:r,width:o,quality:i,sizes:a,loader:s}=e;if(r)return{src:n,srcSet:void 0,sizes:void 0};let{widths:l,kind:u}=c(t,o,a),d=l.length-1;return{sizes:a||"w"!==u?a:"100vw",srcSet:l.map((e,r)=>s({config:t,src:n,quality:i,width:e})+" "+("w"===u?e:r+1)+u).join(", "),src:s({config:t,src:n,quality:i,width:l[d]})}}function d(e,t){let n,a,c,{src:d,sizes:f,unoptimized:h=!1,priority:p=!1,loading:m,className:g,quality:x,width:v,height:y,fill:b=!1,style:w,onLoad:k,onLoadingComplete:_,placeholder:j="empty",blurDataURL:E,fetchPriority:O,layout:S,objectFit:C,objectPosition:T,lazyBoundary:A,lazyRoot:R,...N}=e,{imgConf:I,showAltText:M,blurComplete:L,defaultLoader:Z}=t,P=I||o.imageConfigDefault;if("allSizes"in P)n=P;else{let e=[...P.deviceSizes,...P.imageSizes].sort((e,t)=>e-t),t=P.deviceSizes.sort((e,t)=>e-t);n={...P,allSizes:e,deviceSizes:t}}let D=N.loader||Z;delete N.loader,delete N.srcSet;let z="__next_img_default"in D;if(z){if("custom"===n.loader)throw Error('Image with src "'+d+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let e=D;D=t=>{let{config:n,...r}=t;return e(r)}}if(S){"fill"===S&&(b=!0);let e={responsive:"100vw",fill:"100vw"},t={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[S];t&&(w={...w,...t});let n=e[S];n&&!f&&(f=n)}let F="",H=l(v),B=l(y);if(s(d)){let e=i(d)?d.default:d;if(!e.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e));if(!e.height||!e.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e));if(a=e.blurWidth,c=e.blurHeight,E=E||e.blurDataURL,F=e.src,!b){if(H||B){if(H&&!B){let t=H/e.width;B=Math.round(e.height*t)}else if(!H&&B){let t=B/e.height;H=Math.round(e.width*t)}}else H=e.width,B=e.height}}let W=!p&&("lazy"===m||void 0===m);(!(d="string"==typeof d?d:F)||d.startsWith("data:")||d.startsWith("blob:"))&&(h=!0,W=!1),n.unoptimized&&(h=!0),z&&d.endsWith(".svg")&&!n.dangerouslyAllowSVG&&(h=!0),p&&(O="high");let $=l(x),G=Object.assign(b?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:C,objectPosition:T}:{},M?{}:{color:"transparent"},w),U=L||"empty"===j?null:"blur"===j?'url("data:image/svg+xml;charset=utf-8,'+(0,r.getImageBlurSvg)({widthInt:H,heightInt:B,blurWidth:a,blurHeight:c,blurDataURL:E||"",objectFit:G.objectFit})+'")':'url("'+j+'")',V=U?{backgroundSize:G.objectFit||"cover",backgroundPosition:G.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:U}:{},q=u({config:n,src:d,unoptimized:h,width:H,quality:$,sizes:f,loader:D});return{props:{...N,loading:W?"lazy":m,fetchPriority:O,width:H,height:B,decoding:"async",className:g,style:{...G,...V},sizes:q.sizes,srcSet:q.srcSet,src:q.src},meta:{unoptimized:h,priority:p,placeholder:j,fill:b}}}},61009:function(e,t){"use strict";function n(e){let{widthInt:t,heightInt:n,blurWidth:r,blurHeight:o,blurDataURL:i,objectFit:a}=e,s=r?40*r:t,l=o?40*o:n,c=s&&l?"viewBox='0 0 "+s+" "+l+"'":"",u=c?"none":"contain"===a?"xMidYMid":"cover"===a?"xMidYMid slice":"none";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+c+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+u+"' style='filter: url(%23b);' href='"+i+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return n}})},10568:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getImageProps:function(){return s},default:function(){return l}});let r=n(81351),o=n(69074),i=n(73137),a=r._(n(45802)),s=e=>{let{props:t}=(0,o.getImgProps)(e,{defaultLoader:a.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!0,unoptimized:!0}});for(let[e,n]of Object.entries(t))void 0===n&&delete t[e];return{props:t}},l=i.Image},45802:function(e,t){"use strict";function n(e){let{config:t,src:n,width:r,quality:o}=e;return t.path+"?url="+encodeURIComponent(n)+"&w="+r+"&q="+(o||75)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}}),n.__next_img_default=!0;let r=n},90090:function(){},72063:function(){},1591:function(){},22313:function(e){var t="/";!function(){"use strict";var n={114:function(e){function t(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}function n(e,t){for(var n,r="",o=0,i=-1,a=0,s=0;s<=e.length;++s){if(s2){var l=r.lastIndexOf("/");if(l!==r.length-1){-1===l?(r="",o=0):o=(r=r.slice(0,l)).length-1-r.lastIndexOf("/"),i=s,a=0;continue}}else if(2===r.length||1===r.length){r="",o=0,i=s,a=0;continue}}t&&(r.length>0?r+="/..":r="..",o=2)}else r.length>0?r+="/"+e.slice(i+1,s):r=e.slice(i+1,s),o=s-i-1;i=s,a=0}else 46===n&&-1!==a?++a:a=-1}return r}function r(e,t){var n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+e+r:r}var o={resolve:function(){for(var e,r,o="",i=!1,a=arguments.length-1;a>=-1&&!i;a--)a>=0?r=arguments[a]:(void 0===e&&(e=""),r=e),t(r),0!==r.length&&(o=r+"/"+o,i=47===r.charCodeAt(0));return(o=n(o,!i),i)?o.length>0?"/"+o:"/":o.length>0?o:"."},normalize:function(e){if(t(e),0===e.length)return".";var r=47===e.charCodeAt(0),o=47===e.charCodeAt(e.length-1);return(0!==(e=n(e,!r)).length||r||(e="."),e.length>0&&o&&(e+="/"),r)?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0==arguments.length)return".";for(var e,n=0;n0&&(void 0===e?e=r:e+="/"+r)}return void 0===e?".":o.normalize(e)},relative:function(e,n){if(t(e),t(n),e===n||(e=o.resolve(e))===(n=o.resolve(n)))return"";for(var r=1;rc){if(47===n.charCodeAt(s+d))return n.slice(s+d+1);if(0===d)return n.slice(s+d)}else a>c&&(47===e.charCodeAt(r+d)?u=d:0===d&&(u=0));break}var f=e.charCodeAt(r+d);if(f!==n.charCodeAt(s+d))break;47===f&&(u=d)}var h="";for(d=r+u+1;d<=i;++d)(d===i||47===e.charCodeAt(d))&&(0===h.length?h+="..":h+="/..");return h.length>0?h+n.slice(s+u):(s+=u,47===n.charCodeAt(s)&&++s,n.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var n=e.charCodeAt(0),r=47===n,o=-1,i=!0,a=e.length-1;a>=1;--a)if(47===(n=e.charCodeAt(a))){if(!i){o=a;break}}else i=!1;return -1===o?r?"/":".":r&&1===o?"//":e.slice(0,o)},basename:function(e,n){if(void 0!==n&&"string"!=typeof n)throw TypeError('"ext" argument must be a string');t(e);var r,o=0,i=-1,a=!0;if(void 0!==n&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var s=n.length-1,l=-1;for(r=e.length-1;r>=0;--r){var c=e.charCodeAt(r);if(47===c){if(!a){o=r+1;break}}else -1===l&&(a=!1,l=r+1),s>=0&&(c===n.charCodeAt(s)?-1==--s&&(i=r):(s=-1,i=l))}return o===i?i=l:-1===i&&(i=e.length),e.slice(o,i)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!a){o=r+1;break}}else -1===i&&(a=!1,i=r+1);return -1===i?"":e.slice(o,i)},extname:function(e){t(e);for(var n=-1,r=0,o=-1,i=!0,a=0,s=e.length-1;s>=0;--s){var l=e.charCodeAt(s);if(47===l){if(!i){r=s+1;break}continue}-1===o&&(i=!1,o=s+1),46===l?-1===n?n=s:1!==a&&(a=1):-1!==n&&(a=-1)}return -1===n||-1===o||0===a||1===a&&n===o-1&&n===r+1?"":e.slice(n,o)},format:function(e){if(null===e||"object"!=typeof e)throw TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return r("/",e)},parse:function(e){t(e);var n,r={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return r;var o=e.charCodeAt(0),i=47===o;i?(r.root="/",n=1):n=0;for(var a=-1,s=0,l=-1,c=!0,u=e.length-1,d=0;u>=n;--u){if(47===(o=e.charCodeAt(u))){if(!c){s=u+1;break}continue}-1===l&&(c=!1,l=u+1),46===o?-1===a?a=u:1!==d&&(d=1):-1!==a&&(d=-1)}return -1===a||-1===l||0===d||1===d&&a===l-1&&a===s+1?-1!==l&&(0===s&&i?r.base=r.name=e.slice(1,l):r.base=r.name=e.slice(s,l)):(0===s&&i?(r.name=e.slice(1,a),r.base=e.slice(1,l)):(r.name=e.slice(s,a),r.base=e.slice(s,l)),r.ext=e.slice(a,l)),s>0?r.dir=e.slice(0,s-1):i&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};o.posix=o,e.exports=o}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={exports:{}},a=!0;try{n[e](i,i.exports,o),a=!1}finally{a&&delete r[e]}return i.exports}o.ab=t+"/";var i=o(114);e.exports=i}()},17784:function(e){var t="/";!function(){var n={229:function(e){var t,n,r,o=e.exports={};function i(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}function l(e){if(n===clearTimeout)return clearTimeout(e);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var c=[],u=!1,d=-1;function f(){u&&r&&(u=!1,r.length?c=r.concat(c):d=-1,c.length&&h())}function h(){if(!u){var e=s(f);u=!0;for(var t=c.length;t;){for(r=c,c=[];++d1)for(var n=1;n(0,s.jsx)("button",{className:(0,a.Z)("nextra-button nx-transition-all active:nx-opacity-50","nx-bg-primary-700/5 nx-border nx-border-black/5 nx-text-gray-600 hover:nx-text-gray-900 nx-rounded-md nx-p-1.5","dark:nx-bg-primary-300/10 dark:nx-border-white/10 dark:nx-text-gray-400 dark:hover:nx-text-gray-50",t),...n,children:e}),c=n(29688),u={default:"\uD83D\uDCA1",error:"\uD83D\uDEAB",info:(0,s.jsx)(c.AV,{className:"nx-mt-1"}),warning:"⚠️"},d={default:(0,a.Z)("nx-border-orange-100 nx-bg-orange-50 nx-text-orange-800 dark:nx-border-orange-400/30 dark:nx-bg-orange-400/20 dark:nx-text-orange-300"),error:(0,a.Z)("nx-border-red-200 nx-bg-red-100 nx-text-red-900 dark:nx-border-red-200/30 dark:nx-bg-red-900/30 dark:nx-text-red-200"),info:(0,a.Z)("nx-border-blue-200 nx-bg-blue-100 nx-text-blue-900 dark:nx-border-blue-200/30 dark:nx-bg-blue-900/30 dark:nx-text-blue-200"),warning:(0,a.Z)("nx-border-yellow-100 nx-bg-yellow-50 nx-text-yellow-900 dark:nx-border-yellow-200/30 dark:nx-bg-yellow-700/30 dark:nx-text-yellow-200")};function f({children:e,type:t="default",emoji:n=u[t]}){return(0,s.jsxs)("div",{className:(0,a.Z)("nextra-callout nx-overflow-x-auto nx-mt-6 nx-flex nx-rounded-lg nx-border nx-py-2 ltr:nx-pr-4 rtl:nx-pl-4","contrast-more:nx-border-current contrast-more:dark:nx-border-current",d[t]),children:[(0,s.jsx)("div",{className:"nx-select-none nx-text-xl ltr:nx-pl-3 ltr:nx-pr-2 rtl:nx-pr-3 rtl:nx-pl-2",style:{fontFamily:'"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"'},children:n}),(0,s.jsx)("div",{className:"nx-w-full nx-min-w-0 nx-leading-7",children:e})]})}var h=n(50959),p=({getValue:e,...t})=>{let[n,r]=(0,h.useState)(!1);(0,h.useEffect)(()=>{if(!n)return;let e=setTimeout(()=>{r(!1)},2e3);return()=>{clearTimeout(e)}},[n]);let o=(0,h.useCallback)(async()=>{r(!0),navigator?.clipboard||console.error("Access to clipboard rejected!");try{await navigator.clipboard.writeText(e())}catch{console.error("Failed to copy!")}},[e]),i=n?c.nQ:c.TI;return(0,s.jsx)(l,{onClick:o,title:"Copy code",tabIndex:0,...t,children:(0,s.jsx)(i,{className:"nextra-copy-icon nx-pointer-events-none nx-h-4 nx-w-4"})})},m=({children:e,className:t,...n})=>{let r="data-line-numbers"in n;return(0,s.jsx)("code",{className:(0,a.Z)("nx-border-black nx-border-opacity-[0.04] nx-bg-opacity-[0.03] nx-bg-black nx-break-words nx-rounded-md nx-border nx-py-0.5 nx-px-[.25em] nx-text-[.9em]","dark:nx-border-white/10 dark:nx-bg-white/10",r&&"[counter-reset:line]",t),dir:"ltr",...n,children:e})},g=({children:e,className:t,hasCopyCode:n,filename:r,...o})=>{let i=(0,h.useRef)(null),u=(0,h.useCallback)(()=>{let e=document.documentElement.dataset;"nextraWordWrap"in e?delete e.nextraWordWrap:e.nextraWordWrap=""},[]);return(0,s.jsxs)("div",{className:"nextra-code-block nx-relative nx-mt-6 first:nx-mt-0",children:[r&&(0,s.jsx)("div",{className:"nx-absolute nx-top-0 nx-z-[1] nx-w-full nx-truncate nx-rounded-t-xl nx-bg-primary-700/5 nx-py-2 nx-px-4 nx-text-xs nx-text-gray-700 dark:nx-bg-primary-300/10 dark:nx-text-gray-200",children:r}),(0,s.jsx)("pre",{className:(0,a.Z)("nx-bg-primary-700/5 nx-mb-4 nx-overflow-x-auto nx-rounded-xl nx-subpixel-antialiased dark:nx-bg-primary-300/10 nx-text-[.9em]","contrast-more:nx-border contrast-more:nx-border-primary-900/20 contrast-more:nx-contrast-150 contrast-more:dark:nx-border-primary-100/40",r?"nx-pt-12 nx-pb-4":"nx-py-4",t),ref:i,...o,children:e}),(0,s.jsxs)("div",{className:(0,a.Z)("nx-opacity-0 nx-transition [div:hover>&]:nx-opacity-100 focus-within:nx-opacity-100","nx-flex nx-gap-1 nx-absolute nx-m-[11px] nx-right-0",r?"nx-top-8":"nx-top-0"),children:[(0,s.jsx)(l,{onClick:u,className:"md:nx-hidden",title:"Toggle word wrap",children:(0,s.jsx)(c.NK,{className:"nx-pointer-events-none nx-h-4 nx-w-4"})}),n&&(0,s.jsx)(p,{getValue:()=>i.current?.querySelector("code")?.textContent||""})]})]})};function x({children:e,className:t,...n}){return(0,s.jsx)("div",{className:(0,a.Z)("nextra-steps nx-ml-4 nx-mb-12 nx-border-l nx-border-gray-200 nx-pl-6","dark:nx-border-neutral-800 [counter-reset:step]",t),...n,children:e})}var v=n(70222),y=n(49038),b=n(23011),w=n(8246),k=n(47496),_=n(66260),j=n(29850),E=n(58002),O=n(19691),S=n(85782),C=n(91941);function T({onFocus:e}){let[t,n]=(0,h.useState)(!0),r=(0,S.t)();return t?h.createElement(C._,{as:"button",type:"button",features:C.A.Focusable,onFocus:t=>{t.preventDefault();let o,i=50;function a(){if(i--<=0){o&&cancelAnimationFrame(o);return}if(e()){if(cancelAnimationFrame(o),!r.current)return;n(!1);return}o=requestAnimationFrame(a)}o=requestAnimationFrame(a)}}):null}var A=n(26510),R=n(41287),N=n(19195);let I=h.createContext(null);function M(){return{groups:new Map,get(e,t){var n;let r=this.groups.get(e);r||(r=new Map,this.groups.set(e,r));let o=null!=(n=r.get(t))?n:0;function i(){let e=r.get(t);e>1?r.set(t,e-1):r.delete(t)}return r.set(t,o+1),[Array.from(r.keys()).indexOf(t),i]}}}function L({children:e}){let t=h.useRef(M());return h.createElement(I.Provider,{value:t},e)}function Z(e){let t=h.useContext(I);if(!t)throw Error("You must wrap your component in a ");let n=P(),[r,o]=t.current.get(e,n);return h.useEffect(()=>o,[]),r}function P(){var e,t,n;let r=null!=(n=null==(t=null==(e=h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)?void 0:e.ReactCurrentOwner)?void 0:t.current)?n:null;if(!r)return Symbol();let o=[],i=r;for(;i;)o.push(i.index),i=i.return;return"$."+o.join(".")}var D=((r=D||{})[r.Forwards=0]="Forwards",r[r.Backwards=1]="Backwards",r),z=((o=z||{})[o.Less=-1]="Less",o[o.Equal=0]="Equal",o[o.Greater=1]="Greater",o),F=((i=F||{})[i.SetSelectedIndex=0]="SetSelectedIndex",i[i.RegisterTab=1]="RegisterTab",i[i.UnregisterTab=2]="UnregisterTab",i[i.RegisterPanel=3]="RegisterPanel",i[i.UnregisterPanel=4]="UnregisterPanel",i);let H={0(e,t){var n;let r=(0,k.z2)(e.tabs,e=>e.current),o=(0,k.z2)(e.panels,e=>e.current),i=r.filter(e=>{var t;return!(null!=(t=e.current)&&t.hasAttribute("disabled"))}),a={...e,tabs:r,panels:o};if(t.index<0||t.index>r.length-1){let n=(0,b.E)(Math.sign(t.index-e.selectedIndex),{[-1]:()=>1,0:()=>(0,b.E)(Math.sign(t.index),{[-1]:()=>0,0:()=>0,1:()=>1}),1:()=>0});if(0===i.length)return a;let o=(0,b.E)(n,{0:()=>r.indexOf(i[0]),1:()=>r.indexOf(i[i.length-1])});return{...a,selectedIndex:-1===o?e.selectedIndex:o}}let s=r.slice(0,t.index),l=[...r.slice(t.index),...s].find(e=>i.includes(e));if(!l)return a;let c=null!=(n=r.indexOf(l))?n:e.selectedIndex;return -1===c&&(c=e.selectedIndex),{...a,selectedIndex:c}},1(e,t){var n;if(e.tabs.includes(t.tab))return e;let r=e.tabs[e.selectedIndex],o=(0,k.z2)([...e.tabs,t.tab],e=>e.current),i=null!=(n=o.indexOf(r))?n:e.selectedIndex;return -1===i&&(i=e.selectedIndex),{...e,tabs:o,selectedIndex:i}},2:(e,t)=>({...e,tabs:e.tabs.filter(e=>e!==t.tab)}),3:(e,t)=>e.panels.includes(t.panel)?e:{...e,panels:(0,k.z2)([...e.panels,t.panel],e=>e.current)},4:(e,t)=>({...e,panels:e.panels.filter(e=>e!==t.panel)})},B=(0,h.createContext)(null);function W(e){let t=(0,h.useContext)(B);if(null===t){let t=Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,W),t}return t}B.displayName="TabsDataContext";let $=(0,h.createContext)(null);function G(e){let t=(0,h.useContext)($);if(null===t){let t=Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,G),t}return t}function U(e,t){return(0,b.E)(t.type,H,e,t)}$.displayName="TabsActionsContext";let V=h.Fragment;function q(e,t){let{defaultIndex:n=0,vertical:r=!1,manual:o=!1,onChange:i,selectedIndex:a=null,...s}=e,l=r?"vertical":"horizontal",c=o?"manual":"auto",u=null!==a,d=(0,j.T)(t),[f,p]=(0,h.useReducer)(U,{selectedIndex:null!=a?a:n,tabs:[],panels:[]}),m=(0,h.useMemo)(()=>({selectedIndex:f.selectedIndex}),[f.selectedIndex]),g=(0,O.E)(i||(()=>{})),x=(0,O.E)(f.tabs),y=(0,h.useMemo)(()=>({orientation:l,activation:c,...f}),[l,c,f]),b=(0,A.z)(e=>(p({type:1,tab:e}),()=>p({type:2,tab:e}))),w=(0,A.z)(e=>(p({type:3,panel:e}),()=>p({type:4,panel:e}))),E=(0,A.z)(e=>{S.current!==e&&g.current(e),u||p({type:0,index:e})}),S=(0,O.E)(u?e.selectedIndex:f.selectedIndex),C=(0,h.useMemo)(()=>({registerTab:b,registerPanel:w,change:E}),[]);(0,_.e)(()=>{p({type:0,index:null!=a?a:n})},[a]),(0,_.e)(()=>{if(void 0===S.current||f.tabs.length<=0)return;let e=(0,k.z2)(f.tabs,e=>e.current);e.some((e,t)=>f.tabs[t]!==e)&&E(e.indexOf(f.tabs[S.current]))});let R={ref:d};return h.createElement(L,null,h.createElement($.Provider,{value:C},h.createElement(B.Provider,{value:y},y.tabs.length<=0&&h.createElement(T,{onFocus:()=>{var e,t;for(let n of x.current)if((null==(e=n.current)?void 0:e.tabIndex)===0)return null==(t=n.current)||t.focus(),!0;return!1}}),(0,v.sY)({ourProps:R,theirProps:s,slot:m,defaultTag:V,name:"Tabs"}))))}let X="div";function K(e,t){let{orientation:n,selectedIndex:r}=W("Tab.List"),o=(0,j.T)(t);return(0,v.sY)({ourProps:{ref:o,role:"tablist","aria-orientation":n},theirProps:e,slot:{selectedIndex:r},defaultTag:X,name:"Tabs.List"})}let Q="button";function Y(e,t){var n,r;let o=(0,y.M)(),{id:i=`headlessui-tabs-tab-${o}`,...a}=e,{orientation:s,activation:l,selectedIndex:c,tabs:u,panels:d}=W("Tab"),f=G("Tab"),p=W("Tab"),m=(0,h.useRef)(null),g=(0,j.T)(m,t);(0,_.e)(()=>f.registerTab(m),[f,m]);let x=Z("tabs"),O=u.indexOf(m);-1===O&&(O=x);let S=O===c,C=(0,A.z)(e=>{var t;let n=e();if(n===k.fE.Success&&"auto"===l){let e=null==(t=(0,N.r)(m))?void 0:t.activeElement,n=p.tabs.findIndex(t=>t.current===e);-1!==n&&f.change(n)}return n}),T=(0,A.z)(e=>{let t=u.map(e=>e.current).filter(Boolean);if(e.key===w.R.Space||e.key===w.R.Enter){e.preventDefault(),e.stopPropagation(),f.change(O);return}switch(e.key){case w.R.Home:case w.R.PageUp:return e.preventDefault(),e.stopPropagation(),C(()=>(0,k.jA)(t,k.TO.First));case w.R.End:case w.R.PageDown:return e.preventDefault(),e.stopPropagation(),C(()=>(0,k.jA)(t,k.TO.Last))}if(C(()=>(0,b.E)(s,{vertical:()=>e.key===w.R.ArrowUp?(0,k.jA)(t,k.TO.Previous|k.TO.WrapAround):e.key===w.R.ArrowDown?(0,k.jA)(t,k.TO.Next|k.TO.WrapAround):k.fE.Error,horizontal:()=>e.key===w.R.ArrowLeft?(0,k.jA)(t,k.TO.Previous|k.TO.WrapAround):e.key===w.R.ArrowRight?(0,k.jA)(t,k.TO.Next|k.TO.WrapAround):k.fE.Error}))===k.fE.Success)return e.preventDefault()}),I=(0,h.useRef)(!1),M=(0,A.z)(()=>{var e;I.current||(I.current=!0,null==(e=m.current)||e.focus({preventScroll:!0}),f.change(O),(0,R.Y)(()=>{I.current=!1}))}),L=(0,A.z)(e=>{e.preventDefault()}),P=(0,h.useMemo)(()=>({selected:S}),[S]),D={ref:g,onKeyDown:T,onMouseDown:L,onClick:M,id:i,role:"tab",type:(0,E.f)(e,m),"aria-controls":null==(r=null==(n=d[O])?void 0:n.current)?void 0:r.id,"aria-selected":S,tabIndex:S?0:-1};return(0,v.sY)({ourProps:D,theirProps:a,slot:P,defaultTag:Q,name:"Tabs.Tab"})}let J="div";function ee(e,t){let{selectedIndex:n}=W("Tab.Panels"),r=(0,j.T)(t),o=(0,h.useMemo)(()=>({selectedIndex:n}),[n]);return(0,v.sY)({ourProps:{ref:r},theirProps:e,slot:o,defaultTag:J,name:"Tabs.Panels"})}let et="div",en=v.AN.RenderStrategy|v.AN.Static;function er(e,t){var n,r,o,i;let a=(0,y.M)(),{id:s=`headlessui-tabs-panel-${a}`,tabIndex:l=0,...c}=e,{selectedIndex:u,tabs:d,panels:f}=W("Tab.Panel"),p=G("Tab.Panel"),m=(0,h.useRef)(null),g=(0,j.T)(m,t);(0,_.e)(()=>p.registerPanel(m),[p,m]);let x=Z("panels"),b=f.indexOf(m);-1===b&&(b=x);let w=b===u,k=(0,h.useMemo)(()=>({selected:w}),[w]),E={ref:g,id:s,role:"tabpanel","aria-labelledby":null==(r=null==(n=d[b])?void 0:n.current)?void 0:r.id,tabIndex:w?l:-1};return w||null!=(o=c.unmount)&&!o||null!=(i=c.static)&&i?(0,v.sY)({ourProps:E,theirProps:c,slot:k,defaultTag:et,features:en,visible:w,name:"Tabs.Panel"}):h.createElement(C._,{as:"span",...E})}let eo=Object.assign((0,v.yV)(Y),{Group:(0,v.yV)(q),List:(0,v.yV)(K),Panels:(0,v.yV)(ee),Panel:(0,v.yV)(er)});function ei(e){return!!e&&"object"==typeof e&&"label"in e}var ea=Object.assign(function({items:e,selectedIndex:t,defaultIndex:n=0,onChange:r,children:o,storageKey:i}){let[l,c]=(0,h.useState)(n);(0,h.useEffect)(()=>{void 0!==t&&c(t)},[t]),(0,h.useEffect)(()=>{if(!i)return;function e(e){e.key===i&&c(Number(e.newValue))}let t=Number(localStorage.getItem(i));return c(Number.isNaN(t)?0:t),window.addEventListener("storage",e),()=>{window.removeEventListener("storage",e)}},[]);let u=(0,h.useCallback)(e=>{if(i){let t=String(e);localStorage.setItem(i,t),window.dispatchEvent(new StorageEvent("storage",{key:i,newValue:t}));return}c(e),r?.(e)},[]);return(0,s.jsxs)(eo.Group,{selectedIndex:l,defaultIndex:n,onChange:u,children:[(0,s.jsx)("div",{className:"nextra-scrollbar nx-overflow-x-auto nx-overflow-y-hidden nx-overscroll-x-contain",children:(0,s.jsx)(eo.List,{className:"nx-mt-4 nx-flex nx-w-max nx-min-w-full nx-border-b nx-border-gray-200 nx-pb-px dark:nx-border-neutral-800",children:e.map((e,t)=>{let n=ei(e)&&e.disabled;return(0,s.jsx)(eo,{disabled:n,className:({selected:e})=>(0,a.Z)("nx-mr-2 nx-rounded-t nx-p-2 nx-font-medium nx-leading-5 nx-transition-colors","-nx-mb-0.5 nx-select-none nx-border-b-2",e?"nx-border-primary-500 nx-text-primary-600":"nx-border-transparent nx-text-gray-600 hover:nx-border-gray-200 hover:nx-text-black dark:nx-text-gray-200 dark:hover:nx-border-neutral-800 dark:hover:nx-text-white",n&&"nx-pointer-events-none nx-text-gray-400 dark:nx-text-neutral-600"),children:ei(e)?e.label:e},t)})})}),(0,s.jsx)(eo.Panels,{children:o})]})},{displayName:"Tabs",Tab:function({children:e,...t}){return(0,s.jsx)(eo.Panel,{...t,className:"nx-rounded nx-pt-6",children:e})}}),es=({className:e="",...t})=>(0,s.jsx)("td",{className:(0,a.Z)("nx-m-0 nx-border nx-border-gray-300 nx-px-4 nx-py-2 dark:nx-border-gray-600",e),...t}),el=({className:e="",...t})=>(0,s.jsx)("table",{className:(0,a.Z)("nx-block nx-overflow-x-scroll",e),...t}),ec=({className:e="",...t})=>(0,s.jsx)("th",{className:(0,a.Z)("nx-m-0 nx-border nx-border-gray-300 nx-px-4 nx-py-2 nx-font-semibold dark:nx-border-gray-600",e),...t}),eu=({className:e="",...t})=>(0,s.jsx)("tr",{className:(0,a.Z)("nx-m-0 nx-border-t nx-border-gray-300 nx-p-0 dark:nx-border-gray-600","even:nx-bg-gray-100 even:dark:nx-bg-gray-600/20",e),...t}),ed=n(30175),ef=n.n(ed),eh={cards:(0,a.Z)("nextra-cards nx-mt-4 nx-gap-4 nx-grid","nx-not-prose"),card:(0,a.Z)("nextra-card nx-group nx-flex nx-flex-col nx-justify-start nx-overflow-hidden nx-rounded-lg nx-border nx-border-gray-200","nx-text-current nx-no-underline dark:nx-shadow-none","hover:nx-shadow-gray-100 dark:hover:nx-shadow-none nx-shadow-gray-100","active:nx-shadow-sm active:nx-shadow-gray-200","nx-transition-all nx-duration-200 hover:nx-border-gray-300"),title:(0,a.Z)("nx-flex nx-font-semibold nx-items-start nx-gap-2 nx-p-4 nx-text-gray-700 hover:nx-text-gray-900")},ep=(0,s.jsx)("span",{className:"nx-transition-transform nx-duration-75 group-hover:nx-translate-x-[2px]",children:"→"});Object.assign(function({children:e,num:t=3,className:n,style:r,...o}){return(0,s.jsx)("div",{className:(0,a.Z)(eh.cards,n),...o,style:{...r,"--rows":t},children:e})},{displayName:"Cards",Card:function({children:e,title:t,icon:n,image:r,arrow:o,href:i,...l}){let c=o?ep:null;return r?(0,s.jsxs)(ef(),{href:i,className:(0,a.Z)(eh.card,"nx-bg-gray-100 nx-shadow dark:nx-border-neutral-700 dark:nx-bg-neutral-800 dark:nx-text-gray-50 hover:nx-shadow-lg dark:hover:nx-border-neutral-500 dark:hover:nx-bg-neutral-700"),...l,children:[e,(0,s.jsxs)("span",{className:(0,a.Z)(eh.title,"dark:nx-text-gray-300 dark:hover:nx-text-gray-100"),children:[n,(0,s.jsxs)("span",{className:"nx-flex nx-gap-1",children:[t,c]})]})]}):(0,s.jsx)(ef(),{href:i,className:(0,a.Z)(eh.card,"nx-bg-transparent nx-shadow-sm dark:nx-border-neutral-800 hover:nx-bg-slate-50 hover:nx-shadow-md dark:hover:nx-border-neutral-700 dark:hover:nx-bg-neutral-900"),...l,children:(0,s.jsxs)("span",{className:(0,a.Z)(eh.title,"dark:nx-text-neutral-200 dark:hover:nx-text-neutral-50 nx-flex nx-items-center"),children:[n,t,c]})})}});var em=(0,h.createContext)(0);function eg(){return(0,h.useContext)(em)}function ex({children:e}){return(0,s.jsx)("div",{className:(0,a.Z)("nextra-filetree nx-mt-6 nx-select-none nx-text-sm nx-text-gray-800 dark:nx-text-gray-300","nx-not-prose"),children:(0,s.jsx)("div",{className:"nx-inline-block nx-rounded-lg nx-border nx-px-4 nx-py-2 dark:nx-border-neutral-800",children:e})})}function ev(){let e=eg();return(0,s.jsx)(s.Fragment,{children:Array.from({length:e},(e,t)=>(0,s.jsx)("span",{className:"nx-w-5"},t))})}var ey=(0,h.memo)(({label:e,name:t,open:n,children:r,defaultOpen:o=!1,onToggle:i})=>{let a=eg(),[l,c]=(0,h.useState)(o),u=(0,h.useCallback)(()=>{i?.(!l),c(!l)},[l,i]),d=void 0===n?l:n;return(0,s.jsxs)("li",{className:"nx-flex nx-list-none nx-flex-col",children:[(0,s.jsxs)("button",{onClick:u,title:t,className:"nx-inline-flex nx-cursor-pointer nx-items-center nx-py-1 hover:nx-opacity-60",children:[(0,s.jsx)(ev,{}),(0,s.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:d?"M5 19a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h4l2 2h4a2 2 0 0 1 2 2v1M5 19h14a2 2 0 0 0 2-2v-5a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2Z":"M3 7v10a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-6l-2-2H5a2 2 0 0 0-2 2Z"})}),(0,s.jsx)("span",{className:"nx-ml-1",children:e??t})]}),d&&(0,s.jsx)("ul",{children:(0,s.jsx)(em.Provider,{value:a+1,children:r})})]})});ey.displayName="Folder";var eb=(0,h.memo)(({label:e,name:t,active:n})=>(0,s.jsx)("li",{className:(0,a.Z)("nx-flex nx-list-none",n&&"nx-text-primary-600 contrast-more:nx-underline"),children:(0,s.jsxs)("span",{className:"nx-inline-flex nx-cursor-default nx-items-center nx-py-1",children:[(0,s.jsx)(ev,{}),(0,s.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5.586a1 1 0 0 1 .707.293l5.414 5.414a1 1 0 0 1 .293.707V19a2 2 0 0 1-2 2Z"})}),(0,s.jsx)("span",{className:"nx-ml-1",children:e??t})]})}));eb.displayName="File",Object.assign(ex,{Folder:ey,File:eb})},29688:function(e,t,n){"use strict";n.d(t,{LZ:function(){return o},nQ:function(){return i},TI:function(){return a},D7:function(){return s},Qq:function(){return l},fy:function(){return c},n9:function(){return u},AV:function(){return d},Oq:function(){return f},kL:function(){return h},L4:function(){return p},NW:function(){return m},NK:function(){return g},b0:function(){return x}});var r=n(11527);function o({pathClassName:e,...t}){return(0,r.jsx)("svg",{fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",...t,children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 5l7 7-7 7",className:e})})}function i(e){return(0,r.jsx)("svg",{viewBox:"0 0 20 20",width:"1em",height:"1em",fill:"currentColor",...e,children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})})}function a(e){return(0,r.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",...e,children:[(0,r.jsx)("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M5 15H4C2.89543 15 2 14.1046 2 13V4C2 2.89543 2.89543 2 4 2H13C14.1046 2 15 2.89543 15 4V5",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function s(e){return(0,r.jsxs)("svg",{width:"24",height:"24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 5 30.67 23.25",...e,children:[(0,r.jsx)("title",{children:"Discord"}),(0,r.jsx)("path",{d:"M26.0015 6.9529C24.0021 6.03845 21.8787 5.37198 19.6623 5C19.3833 5.48048 19.0733 6.13144 18.8563 6.64292C16.4989 6.30193 14.1585 6.30193 11.8336 6.64292C11.6166 6.13144 11.2911 5.48048 11.0276 5C8.79575 5.37198 6.67235 6.03845 4.6869 6.9529C0.672601 12.8736 -0.41235 18.6548 0.130124 24.3585C2.79599 26.2959 5.36889 27.4739 7.89682 28.2489C8.51679 27.4119 9.07477 26.5129 9.55525 25.5675C8.64079 25.2265 7.77283 24.808 6.93587 24.312C7.15286 24.1571 7.36986 23.9866 7.57135 23.8161C12.6241 26.1255 18.0969 26.1255 23.0876 23.8161C23.3046 23.9866 23.5061 24.1571 23.7231 24.312C22.8861 24.808 22.0182 25.2265 21.1037 25.5675C21.5842 26.5129 22.1422 27.4119 22.7621 28.2489C25.2885 27.4739 27.8769 26.2959 30.5288 24.3585C31.1952 17.7559 29.4733 12.0212 26.0015 6.9529ZM10.2527 20.8402C8.73376 20.8402 7.49382 19.4608 7.49382 17.7714C7.49382 16.082 8.70276 14.7025 10.2527 14.7025C11.7871 14.7025 13.0425 16.082 13.0115 17.7714C13.0115 19.4608 11.7871 20.8402 10.2527 20.8402ZM20.4373 20.8402C18.9183 20.8402 17.6768 19.4608 17.6768 17.7714C17.6768 16.082 18.8873 14.7025 20.4373 14.7025C21.9717 14.7025 23.2271 16.082 23.1961 17.7714C23.1961 19.4608 21.9872 20.8402 20.4373 20.8402Z"})]})}function l({isOpen:e,...t}){return(0,r.jsxs)("svg",{height:"12",width:"12",viewBox:"0 0 16 16",fill:"currentColor",...t,children:[(0,r.jsx)("path",{fillRule:"evenodd",d:"M4.177 7.823l2.396-2.396A.25.25 0 017 5.604v4.792a.25.25 0 01-.427.177L4.177 8.177a.25.25 0 010-.354z",className:e?"":"nx-origin-[35%] nx-rotate-180"}),(0,r.jsx)("path",{fillRule:"evenodd",d:"M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v12.5A1.75 1.75 0 0114.25 16H1.75A1.75 1.75 0 010 14.25V1.75zm1.75-.25a.25.25 0 00-.25.25v12.5c0 .138.112.25.25.25H9.5v-13H1.75zm12.5 13H11v-13h3.25a.25.25 0 01.25.25v12.5a.25.25 0 01-.25.25z"})]})}function c(e){return(0,r.jsxs)("svg",{width:"24",height:"24",fill:"currentColor",viewBox:"3 3 18 18",...e,children:[(0,r.jsx)("title",{children:"GitHub"}),(0,r.jsx)("path",{d:"M12 3C7.0275 3 3 7.12937 3 12.2276C3 16.3109 5.57625 19.7597 9.15374 20.9824C9.60374 21.0631 9.77249 20.7863 9.77249 20.5441C9.77249 20.3249 9.76125 19.5982 9.76125 18.8254C7.5 19.2522 6.915 18.2602 6.735 17.7412C6.63375 17.4759 6.19499 16.6569 5.8125 16.4378C5.4975 16.2647 5.0475 15.838 5.80124 15.8264C6.51 15.8149 7.01625 16.4954 7.18499 16.7723C7.99499 18.1679 9.28875 17.7758 9.80625 17.5335C9.885 16.9337 10.1212 16.53 10.38 16.2993C8.3775 16.0687 6.285 15.2728 6.285 11.7432C6.285 10.7397 6.63375 9.9092 7.20749 9.26326C7.1175 9.03257 6.8025 8.08674 7.2975 6.81794C7.2975 6.81794 8.05125 6.57571 9.77249 7.76377C10.4925 7.55615 11.2575 7.45234 12.0225 7.45234C12.7875 7.45234 13.5525 7.55615 14.2725 7.76377C15.9937 6.56418 16.7475 6.81794 16.7475 6.81794C17.2424 8.08674 16.9275 9.03257 16.8375 9.26326C17.4113 9.9092 17.76 10.7281 17.76 11.7432C17.76 15.2843 15.6563 16.0687 13.6537 16.2993C13.98 16.5877 14.2613 17.1414 14.2613 18.0065C14.2613 19.2407 14.25 20.2326 14.25 20.5441C14.25 20.7863 14.4188 21.0746 14.8688 20.9824C16.6554 20.364 18.2079 19.1866 19.3078 17.6162C20.4077 16.0457 20.9995 14.1611 21 12.2276C21 7.12937 16.9725 3 12 3Z"})]})}function u(e){return(0,r.jsx)("svg",{viewBox:"2 2 16 16",width:"12",height:"12",fill:"currentColor",...e,children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M4.083 9h1.946c.089-1.546.383-2.97.837-4.118A6.004 6.004 0 004.083 9zM10 2a8 8 0 100 16 8 8 0 000-16zm0 2c-.076 0-.232.032-.465.262-.238.234-.497.623-.737 1.182-.389.907-.673 2.142-.766 3.556h3.936c-.093-1.414-.377-2.649-.766-3.556-.24-.56-.5-.948-.737-1.182C10.232 4.032 10.076 4 10 4zm3.971 5c-.089-1.546-.383-2.97-.837-4.118A6.004 6.004 0 0115.917 9h-1.946zm-2.003 2H8.032c.093 1.414.377 2.649.766 3.556.24.56.5.948.737 1.182.233.23.389.262.465.262.076 0 .232-.032.465-.262.238-.234.498-.623.737-1.182.389-.907.673-2.142.766-3.556zm1.166 4.118c.454-1.147.748-2.572.837-4.118h1.946a6.004 6.004 0 01-2.783 4.118zm-6.268 0C6.412 13.97 6.118 12.546 6.03 11H4.083a6.004 6.004 0 002.783 4.118z",clipRule:"evenodd"})})}function d(e){return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",width:"20",height:"20",...e,children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z"})})}function f(e){return(0,r.jsxs)("svg",{fill:"none",width:"24",height:"24",viewBox:"0 0 24 24",stroke:"currentColor",...e,children:[(0,r.jsx)("g",{children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 6h16"})}),(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 12h16"}),(0,r.jsx)("g",{children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 18h16"})})]})}function h(e){return(0,r.jsx)("svg",{fill:"none",viewBox:"2 2 20 20",width:"12",height:"12",stroke:"currentColor",...e,children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",fill:"currentColor",d:"M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z"})})}function p(e){return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",width:"24",height:"24",...e,children:[(0,r.jsx)("circle",{className:"nx-opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,r.jsx)("path",{className:"nx-opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})}function m(e){return(0,r.jsx)("svg",{fill:"none",viewBox:"3 3 18 18",width:"12",height:"12",stroke:"currentColor",...e,children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",fill:"currentColor",d:"M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z"})})}function g(e){return(0,r.jsx)("svg",{viewBox:"0 0 24 24",width:"24",height:"24",...e,children:(0,r.jsx)("path",{fill:"currentColor",d:"M4 19h6v-2H4v2zM20 5H4v2h16V5zm-3 6H4v2h13.25c1.1 0 2 .9 2 2s-.9 2-2 2H15v-2l-3 3l3 3v-2h2c2.21 0 4-1.79 4-4s-1.79-4-4-4z"})})}function x(e){return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"currentColor",...e,children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})})}},59087:function(e,t,n){"use strict";n.d(t,{Z:function(){return s},a:function(){return d}});var r=n(50959);let o=r.createContext({});function i(e){let t=r.useContext(o);return r.useMemo(()=>"function"==typeof e?e(t):{...t,...e},[t,e])}let a={};function s({components:e,children:t,disableParentContext:n}){let s;return s=n?"function"==typeof e?e({}):e||a:i(e),r.createElement(o.Provider,{value:s},t)}var l=n(85751),c=n.n(l),u={img:e=>(0,r.createElement)("object"==typeof e.src?c():"img",e)},d=e=>i({...u,...e})},85182:function(e,t,n){"use strict";var r=n(6097);function o(e){var t={protocols:[],protocol:null,port:null,resource:"",host:"",user:"",password:"",pathname:"",hash:"",search:"",href:e,query:{},parse_failed:!1};try{var n=new URL(e);t.protocols=r(n),t.protocol=t.protocols[0],t.port=n.port,t.resource=n.hostname,t.host=n.host,t.user=n.username||"",t.password=n.password||"",t.pathname=n.pathname,t.hash=n.hash.slice(1),t.search=n.search.slice(1),t.href=n.href,t.query=Object.fromEntries(n.searchParams)}catch(n){t.protocols=["file"],t.protocol=t.protocols[0],t.port="",t.resource="",t.user="",t.pathname="",t.hash="",t.search="",t.href=e,t.query={},t.parse_failed=!0}return t}e.exports=o},78593:function(e,t,n){"use strict";var r=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(n(85182));let o="text/plain",i="us-ascii",a=(e,t)=>t.some(t=>t instanceof RegExp?t.test(e):t===e),s=(e,{stripHash:t})=>{let n=/^data:(?[^,]*?),(?[^#]*?)(?:#(?.*))?$/.exec(e);if(!n)throw Error(`Invalid URL: ${e}`);let{type:r,data:a,hash:s}=n.groups,l=r.split(";");s=t?"":s;let c=!1;"base64"===l[l.length-1]&&(l.pop(),c=!0);let u=(l.shift()||"").toLowerCase(),d=[...l.map(e=>{let[t,n=""]=e.split("=").map(e=>e.trim());return"charset"===t&&(n=n.toLowerCase())===i?"":`${t}${n?`=${n}`:""}`}).filter(Boolean)];return c&&d.push("base64"),(d.length>0||u&&u!==o)&&d.unshift(u),`data:${d.join(";")},${c?a.trim():a}${s?`#${s}`:""}`};function l(e,t){if(t={defaultProtocol:"http:",normalizeProtocol:!0,forceHttp:!1,forceHttps:!1,stripAuthentication:!0,stripHash:!1,stripTextFragment:!0,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeSingleSlash:!0,removeDirectoryIndex:!1,sortQueryParameters:!0,...t},e=e.trim(),/^data:/i.test(e))return s(e,t);if(/^view-source:/i.test(e))throw Error("`view-source:` is not supported as it is a non-standard protocol");let n=e.startsWith("//");!n&&/^\.*\//.test(e)||(e=e.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,t.defaultProtocol));let r=new URL(e);if(t.forceHttp&&t.forceHttps)throw Error("The `forceHttp` and `forceHttps` options cannot be used together");if(t.forceHttp&&"https:"===r.protocol&&(r.protocol="http:"),t.forceHttps&&"http:"===r.protocol&&(r.protocol="https:"),t.stripAuthentication&&(r.username="",r.password=""),t.stripHash?r.hash="":t.stripTextFragment&&(r.hash=r.hash.replace(/#?:~:text.*?$/i,"")),r.pathname){let e=/\b[a-z][a-z\d+\-.]{1,50}:\/\//g,t=0,n="";for(;;){let o=e.exec(r.pathname);if(!o)break;let i=o[0],a=o.index;n+=r.pathname.slice(t,a).replace(/\/{2,}/g,"/")+i,t=a+i.length}n+=r.pathname.slice(t,r.pathname.length).replace(/\/{2,}/g,"/"),r.pathname=n}if(r.pathname)try{r.pathname=decodeURI(r.pathname)}catch{}if(!0===t.removeDirectoryIndex&&(t.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(t.removeDirectoryIndex)&&t.removeDirectoryIndex.length>0){let e=r.pathname.split("/");a(e[e.length-1],t.removeDirectoryIndex)&&(e=e.slice(0,-1),r.pathname=e.slice(1).join("/")+"/")}if(r.hostname&&(r.hostname=r.hostname.replace(/\.$/,""),t.stripWWW&&/^www\.(?!www\.)[a-z\-\d]{1,63}\.[a-z.\-\d]{2,63}$/.test(r.hostname)&&(r.hostname=r.hostname.replace(/^www\./,""))),Array.isArray(t.removeQueryParameters))for(let e of[...r.searchParams.keys()])a(e,t.removeQueryParameters)&&r.searchParams.delete(e);if(!0===t.removeQueryParameters&&(r.search=""),t.sortQueryParameters){r.searchParams.sort();try{r.search=decodeURIComponent(r.search)}catch{}}t.removeTrailingSlash&&(r.pathname=r.pathname.replace(/\/$/,""));let o=e;return e=r.toString(),t.removeSingleSlash||"/"!==r.pathname||o.endsWith("/")||""!==r.hash||(e=e.replace(/\/$/,"")),(t.removeTrailingSlash||"/"===r.pathname)&&""===r.hash&&t.removeSingleSlash&&(e=e.replace(/\/$/,"")),n&&!t.normalizeProtocol&&(e=e.replace(/^http:\/\//,"//")),t.stripProtocol&&(e=e.replace(/^(?:https?:)?\/\//,"")),e}let c=(e,t=!1)=>{let n=/^(?:([a-z_][a-z0-9_-]{0,31})@|https?:\/\/)([\w\.\-@]+)[\/:]([\~,\.\w,\-,\_,\/]+?(?:\.git|\/)?)$/,o=t=>{let n=Error(t);throw n.subject_url=e,n};"string"==typeof e&&e.trim()||o("Invalid url."),e.length>c.MAX_INPUT_LENGTH&&o("Input exceeds maximum length. If needed, change the value of parseUrl.MAX_INPUT_LENGTH."),t&&("object"!=typeof t&&(t={stripHash:!1}),e=l(e,t));let i=r.default(e);if(i.parse_failed){let e=i.href.match(n);e?(i.protocols=["ssh"],i.protocol="ssh",i.resource=e[2],i.host=e[2],i.user=e[1],i.pathname=`/${e[3]}`,i.parse_failed=!1):o("URL parsing failed.")}return i};c.MAX_INPUT_LENGTH=2048,e.exports=c},74049:function(e,t,n){"use strict";var r=n(36257);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=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 s.name="Invariant Violation",s}}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:i,resetWarningCache:o};return n.PropTypes=n,n}},40507:function(e,t,n){e.exports=n(74049)()},36257:function(e){"use strict";var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";e.exports=t},6097:function(e){"use strict";e.exports=function(e,t){!0===t&&(t=0);var n="";if("string"==typeof e)try{n=new URL(e).protocol}catch(e){}else e&&e.constructor===URL&&(n=e.protocol);var r=n.split(/\:|\+/).filter(Boolean);return"number"==typeof t?r[t]:r}},10091:function(e,t,n){"use strict";n.d(t,{ZP:function(){return ef}});var r=n(25201),o=n(12309),i=n(76729),a=n(26407),s=n(82187),l=n.n(s),c=n(61026),u=n(57539),d=n(50959),f=d.createContext({}),h=n(9130),p=n(82349),m=n(53264),g=n(18295),x=function(e){(0,m.Z)(n,e);var t=(0,g.Z)(n);function n(){return(0,h.Z)(this,n),t.apply(this,arguments)}return(0,p.Z)(n,[{key:"render",value:function(){return this.props.children}}]),n}(d.Component),v=n(54561),y="none",b="appear",w="enter",k="leave",_="none",j="prepare",E="start",O="active",S="end",C="prepared",T=n(18021);function A(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}var R=function(e,t){var n={animationend:A("Animation","AnimationEnd"),transitionend:A("Transition","TransitionEnd")};return!e||("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}((0,T.Z)(),"undefined"!=typeof window?window:{}),N={};(0,T.Z)()&&(N=document.createElement("div").style);var I={};function M(e){if(I[e])return I[e];var t=R[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o1&&void 0!==arguments[1]?arguments[1]:2;t();var i=(0,W.Z)(function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)});e.current=i}return d.useEffect(function(){return function(){t()}},[]),[n,t]},G=[j,E,O,S],U=[j,C],V=!1,q=!0;function X(e){return e===O||e===S}var K=function(e,t,n){var r=(0,v.Z)(_),o=(0,i.Z)(r,2),a=o[0],s=o[1],l=$(),c=(0,i.Z)(l,2),u=c[0],f=c[1];function h(){s(j,!0)}var p=t?U:G;return B(function(){if(a!==_&&a!==S){var e=p.indexOf(a),t=p[e+1],r=n(a);r===V?s(t,!0):t&&u(function(e){function n(){e.isCanceled()||s(t,!0)}!0===r?n():Promise.resolve(r).then(n)})}},[e,a]),d.useEffect(function(){return function(){f()}},[]),[h,a]};function Q(e,t,n,a){var s=a.motionEnter,l=void 0===s||s,c=a.motionAppear,u=void 0===c||c,f=a.motionLeave,h=void 0===f||f,p=a.motionDeadline,m=a.motionLeaveImmediately,g=a.onAppearPrepare,x=a.onEnterPrepare,_=a.onLeavePrepare,S=a.onAppearStart,T=a.onEnterStart,A=a.onLeaveStart,R=a.onAppearActive,N=a.onEnterActive,I=a.onLeaveActive,M=a.onAppearEnd,L=a.onEnterEnd,Z=a.onLeaveEnd,P=a.onVisibleChanged,D=(0,v.Z)(),z=(0,i.Z)(D,2),F=z[0],W=z[1],$=(0,v.Z)(y),G=(0,i.Z)($,2),U=G[0],Q=G[1],Y=(0,v.Z)(null),J=(0,i.Z)(Y,2),ee=J[0],et=J[1],en=(0,d.useRef)(!1),er=(0,d.useRef)(null);function eo(){return n()}var ei=(0,d.useRef)(!1);function ea(){Q(y,!0),et(null,!0)}function es(e){var t,n=eo();if(!e||e.deadline||e.target===n){var r=ei.current;U===b&&r?t=null==M?void 0:M(n,e):U===w&&r?t=null==L?void 0:L(n,e):U===k&&r&&(t=null==Z?void 0:Z(n,e)),U!==y&&r&&!1!==t&&ea()}}var el=H(es),ec=(0,i.Z)(el,1)[0],eu=function(e){var t,n,o;switch(e){case b:return t={},(0,r.Z)(t,j,g),(0,r.Z)(t,E,S),(0,r.Z)(t,O,R),t;case w:return n={},(0,r.Z)(n,j,x),(0,r.Z)(n,E,T),(0,r.Z)(n,O,N),n;case k:return o={},(0,r.Z)(o,j,_),(0,r.Z)(o,E,A),(0,r.Z)(o,O,I),o;default:return{}}},ed=d.useMemo(function(){return eu(U)},[U]),ef=K(U,!e,function(e){if(e===j){var t,n=ed[j];return n?n(eo()):V}return em in ed&&et((null===(t=ed[em])||void 0===t?void 0:t.call(ed,eo(),null))||null),em===O&&(ec(eo()),p>0&&(clearTimeout(er.current),er.current=setTimeout(function(){es({deadline:!0})},p))),em===C&&ea(),q}),eh=(0,i.Z)(ef,2),ep=eh[0],em=eh[1],eg=X(em);ei.current=eg,B(function(){W(t);var n,r=en.current;en.current=!0,!r&&t&&u&&(n=b),r&&t&&l&&(n=w),(r&&!t&&h||!r&&m&&!t&&h)&&(n=k);var o=eu(n);n&&(e||o[j])?(Q(n),ep()):Q(y)},[t]),(0,d.useEffect)(function(){(U!==b||u)&&(U!==w||l)&&(U!==k||h)||Q(y)},[u,l,h]),(0,d.useEffect)(function(){return function(){en.current=!1,clearTimeout(er.current)}},[]);var ex=d.useRef(!1);(0,d.useEffect)(function(){F&&(ex.current=!0),void 0!==F&&U===y&&((ex.current||F)&&(null==P||P(F)),ex.current=!0)},[F,U]);var ev=ee;return ed[j]&&em===E&&(ev=(0,o.Z)({transition:"none"},ev)),[U,em,ev,null!=F?F:t]}var Y=function(e){var t=e;function n(e,n){return!!(e.motionName&&t&&!1!==n)}"object"===(0,a.Z)(e)&&(t=e.transitionSupport);var s=d.forwardRef(function(e,t){var a=e.visible,s=void 0===a||a,h=e.removeOnLeave,p=void 0===h||h,m=e.forceRender,g=e.children,v=e.motionName,b=e.leavedClassName,w=e.eventProps,k=n(e,d.useContext(f).motion),_=(0,d.useRef)(),O=(0,d.useRef)(),S=Q(k,s,function(){try{return _.current instanceof HTMLElement?_.current:(0,c.Z)(O.current)}catch(e){return null}},e),C=(0,i.Z)(S,4),T=C[0],A=C[1],R=C[2],N=C[3],I=d.useRef(N);N&&(I.current=!0);var M=d.useCallback(function(e){_.current=e,(0,u.mH)(t,e)},[t]),L=(0,o.Z)((0,o.Z)({},w),{},{visible:s});if(g){if(T===y)Z=N?g((0,o.Z)({},L),M):!p&&I.current&&b?g((0,o.Z)((0,o.Z)({},L),{},{className:b}),M):!m&&(p||b)?null:g((0,o.Z)((0,o.Z)({},L),{},{style:{display:"none"}}),M);else{A===j?D="prepare":X(A)?D="active":A===E&&(D="start");var Z,P,D,z=F(v,"".concat(T,"-").concat(D));Z=g((0,o.Z)((0,o.Z)({},L),{},{className:l()(F(v,T),(P={},(0,r.Z)(P,z,z&&D),(0,r.Z)(P,v,"string"==typeof v),P)),style:R}),M)}}else Z=null;return d.isValidElement(Z)&&(0,u.Yr)(Z)&&!Z.ref&&(Z=d.cloneElement(Z,{ref:M})),d.createElement(x,{ref:O},Z)});return s.displayName="CSSMotion",s}(P),J=n(97605),ee=n(10582),et=n(23248),en="add",er="keep",eo="remove",ei="removed";function ea(e){var t;return t=e&&"object"===(0,a.Z)(e)&&"key"in e?e:{key:e},(0,o.Z)((0,o.Z)({},t),{},{key:String(t.key)})}function es(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map(ea)}function el(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,i=t.length,a=es(e),s=es(t);a.forEach(function(e){for(var t=!1,a=r;a1}).forEach(function(e){(n=n.filter(function(t){var n=t.key,r=t.status;return n!==e||r!==eo})).forEach(function(t){t.key===e&&(t.status=er)})}),n}var ec=["component","children","onVisibleChanged","onAllRemoved"],eu=["status"],ed=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Y,n=function(e){(0,m.Z)(i,e);var n=(0,g.Z)(i);function i(){var e;(0,h.Z)(this,i);for(var t=arguments.length,a=Array(t),s=0;s1&&void 0!==arguments[1]?arguments[1]:{},n=[];return r.Children.forEach(e,function(e){(null!=e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(i(e)):(0,o.isFragment)(e)&&e.props?n=n.concat(i(e.props.children,t)):n.push(e))}),n}},18021:function(e,t,n){"use strict";function r(){return!!("undefined"!=typeof window&&window.document&&window.document.createElement)}n.d(t,{Z:function(){return r}})},89130:function(e,t,n){"use strict";n.d(t,{jL:function(){return g},hq:function(){return v}});var r=n(12309),o=n(18021);function i(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var a="data-rc-order",s="data-rc-priority",l="rc-util-key",c=new Map;function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):l}function d(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function f(e){return"queue"===e?"prependQueue":e?"prepend":"append"}function h(e){return Array.from((c.get(e)||e).children).filter(function(e){return"STYLE"===e.tagName})}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(0,o.Z)())return null;var n=t.csp,r=t.prepend,i=t.priority,l=void 0===i?0:i,c=f(r),u="prependQueue"===c,p=document.createElement("style");p.setAttribute(a,c),u&&l&&p.setAttribute(s,"".concat(l)),null!=n&&n.nonce&&(p.nonce=null==n?void 0:n.nonce),p.innerHTML=e;var m=d(t),g=m.firstChild;if(r){if(u){var x=(t.styles||h(m)).filter(function(e){return!!["prepend","prependQueue"].includes(e.getAttribute(a))&&l>=Number(e.getAttribute(s)||0)});if(x.length)return m.insertBefore(p,x[x.length-1].nextSibling),p}m.insertBefore(p,g)}else m.appendChild(p);return p}function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=d(t);return(t.styles||h(n)).find(function(n){return n.getAttribute(u(t))===e})}function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=m(e,t);n&&d(t).removeChild(n)}function x(e,t){var n=c.get(e);if(!n||!i(document,n)){var r=p("",t),o=r.parentNode;c.set(e,o),e.removeChild(r)}}function v(e,t){var n,o,i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=d(a),l=h(s),c=(0,r.Z)((0,r.Z)({},a),{},{styles:l});x(s,c);var f=m(t,c);if(f)return null!==(n=c.csp)&&void 0!==n&&n.nonce&&f.nonce!==(null===(o=c.csp)||void 0===o?void 0:o.nonce)&&(f.nonce=null===(i=c.csp)||void 0===i?void 0:i.nonce),f.innerHTML!==e&&(f.innerHTML=e),f;var g=p(e,c);return g.setAttribute(u(c),t),g}},61026:function(e,t,n){"use strict";n.d(t,{S:function(){return i},Z:function(){return a}});var r=n(50959),o=n(10422);function i(e){return e instanceof HTMLElement||e instanceof SVGElement}function a(e){return i(e)?e:e instanceof r.Component?o.findDOMNode(e):null}},84989:function(e,t){"use strict";t.Z=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1}},86066:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(50959);function o(e){var t=r.useRef();return t.current=e,r.useCallback(function(){for(var e,n=arguments.length,r=Array(n),o=0;o1&&void 0!==arguments[1]?arguments[1]:1,r=o+=1;function s(t){if(0===t)a(r),e();else{var o=n(function(){s(t-1)});i.set(r,o)}}return s(t),r};s.cancel=function(e){var t=i.get(e);return a(e),r(t)},t.Z=s},57539:function(e,t,n){"use strict";n.d(t,{Yr:function(){return c},mH:function(){return a},sQ:function(){return s},x1:function(){return l}});var r=n(26407);n(50959);var o=n(61357),i=n(9075);function a(e,t){"function"==typeof e?e(t):"object"===(0,r.Z)(e)&&e&&"current"in e&&(e.current=t)}function s(){for(var e=arguments.length,t=Array(e),n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n=0||(o[n]=e[n]);return o}function o(e,t){if(null==e)return{};var n,o,i=r(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}n.d(t,{Z:function(){return o}})},47442:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(26407),o=n(23248);function i(e,t){if(t&&("object"===(0,r.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return(0,o.Z)(e)}},16635: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})(e,t)}n.d(t,{Z:function(){return r}})},76729: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,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}n.d(t,{Z:function(){return s}});var i=n(79250);function a(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(e,t){return r(e)||o(e,t)||(0,i.Z)(e,t)||a()}},1874:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(4989);function o(e){if(Array.isArray(e))return(0,r.Z)(e)}function i(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}var a=n(79250);function s(){throw 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)||i(e)||(0,a.Z)(e)||s()}},76755:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(26407);function o(e,t){if("object"!==(0,r.Z)(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==(0,r.Z)(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function i(e){var t=o(e,"string");return"symbol"===(0,r.Z)(t)?t:String(t)}},26407: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})(e)}n.d(t,{Z:function(){return r}})},79250:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(4989);function o(e,t){if(e){if("string"==typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return(0,r.Z)(e,t)}}},8246:function(e,t,n){"use strict";n.d(t,{R:function(){return o}});var r,o=((r=o||{}).Space=" ",r.Enter="Enter",r.Escape="Escape",r.Backspace="Backspace",r.Delete="Delete",r.ArrowLeft="ArrowLeft",r.ArrowUp="ArrowUp",r.ArrowRight="ArrowRight",r.ArrowDown="ArrowDown",r.Home="Home",r.End="End",r.PageUp="PageUp",r.PageDown="PageDown",r.Tab="Tab",r)},26510:function(e,t,n){"use strict";n.d(t,{z:function(){return i}});var r=n(50959),o=n(19691);let i=function(e){let t=(0,o.E)(e);return r.useCallback((...e)=>t.current(...e),[t])}},49038:function(e,t,n){"use strict";n.d(t,{M:function(){return l}});var r,o=n(50959),i=n(66260),a=n(70674),s=n(86030);let l=null!=(r=o.useId)?r:function(){let e=(0,a.H)(),[t,n]=o.useState(e?()=>s.O.nextId():null);return(0,i.e)(()=>{null===t&&n(s.O.nextId())},[t]),null!=t?""+t:void 0}},85782:function(e,t,n){"use strict";n.d(t,{t:function(){return i}});var r=n(50959),o=n(66260);function i(){let e=(0,r.useRef)(!1);return(0,o.e)(()=>(e.current=!0,()=>{e.current=!1}),[]),e}},66260:function(e,t,n){"use strict";n.d(t,{e:function(){return i}});var r=n(50959),o=n(86030);let i=(e,t)=>{o.O.isServer?(0,r.useEffect)(e,t):(0,r.useLayoutEffect)(e,t)}},19691:function(e,t,n){"use strict";n.d(t,{E:function(){return i}});var r=n(50959),o=n(66260);function i(e){let t=(0,r.useRef)(e);return(0,o.e)(()=>{t.current=e},[e]),t}},58002:function(e,t,n){"use strict";n.d(t,{f:function(){return a}});var r=n(50959),o=n(66260);function i(e){var t;if(e.type)return e.type;let n=null!=(t=e.as)?t:"button";if("string"==typeof n&&"button"===n.toLowerCase())return"button"}function a(e,t){let[n,a]=(0,r.useState)(()=>i(e));return(0,o.e)(()=>{a(i(e))},[e.type,e.as]),(0,o.e)(()=>{n||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&a("button")},[n,t]),n}},70674:function(e,t,n){"use strict";n.d(t,{H:function(){return s}});var r,o=n(50959),i=n(86030);function a(){let e="undefined"==typeof document;return(0,(r||(r=n.t(o,2))).useSyncExternalStore)(()=>()=>{},()=>!1,()=>!e)}function s(){let e=a(),[t,n]=o.useState(i.O.isHandoffComplete);return t&&!1===i.O.isHandoffComplete&&n(!1),o.useEffect(()=>{!0!==t&&n(!0)},[t]),o.useEffect(()=>i.O.handoff(),[]),!e&&t}},29850:function(e,t,n){"use strict";n.d(t,{T:function(){return a}});var r=n(50959),o=n(26510);let i=Symbol();function a(...e){let t=(0,r.useRef)(e);(0,r.useEffect)(()=>{t.current=e},[e]);let n=(0,o.z)(e=>{for(let n of t.current)null!=n&&("function"==typeof n?n(e):n.current=e)});return e.every(e=>null==e||(null==e?void 0:e[i]))?void 0:n}},91941:function(e,t,n){"use strict";n.d(t,{A:function(){return a},_:function(){return l}});var r,o=n(70222);let i="div";var a=((r=a||{})[r.None=1]="None",r[r.Focusable=2]="Focusable",r[r.Hidden=4]="Hidden",r);function s(e,t){let{features:n=1,...r}=e,a={ref:t,"aria-hidden":(2&n)==2||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(4&n)==4&&(2&n)!=2&&{display:"none"}}};return(0,o.sY)({ourProps:a,theirProps:r,slot:{},defaultTag:i,name:"Hidden"})}let l=(0,o.yV)(s)},43659:function(e,t,n){"use strict";function r(...e){return Array.from(new Set(e.flatMap(e=>"string"==typeof e?e.split(" "):[]))).filter(Boolean).join(" ")}n.d(t,{A:function(){return r}})},95012:function(e,t,n){"use strict";n.d(t,{k:function(){return o}});var r=n(41287);function o(){let e=[],t={addEventListener:(e,n,r,o)=>(e.addEventListener(n,r,o),t.add(()=>e.removeEventListener(n,r,o))),requestAnimationFrame(...e){let n=requestAnimationFrame(...e);return t.add(()=>cancelAnimationFrame(n))},nextFrame:(...e)=>t.requestAnimationFrame(()=>t.requestAnimationFrame(...e)),setTimeout(...e){let n=setTimeout(...e);return t.add(()=>clearTimeout(n))},microTask(...e){let n={current:!0};return(0,r.Y)(()=>{n.current&&e[0]()}),t.add(()=>{n.current=!1})},style(e,t,n){let r=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),this.add(()=>{Object.assign(e.style,{[t]:r})})},group(e){let t=o();return e(t),this.add(()=>t.dispose())},add:t=>(e.push(t),()=>{let n=e.indexOf(t);if(n>=0)for(let t of e.splice(n,1))t()}),dispose(){for(let t of e.splice(0))t()}};return t}},86030:function(e,t,n){"use strict";n.d(t,{O:function(){return s}});var r=Object.defineProperty,o=(e,t,n)=>t in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,i=(e,t,n)=>(o(e,"symbol"!=typeof t?t+"":t,n),n);class a{constructor(){i(this,"current",this.detect()),i(this,"handoffState","pending"),i(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}}let s=new a},47496:function(e,t,n){"use strict";n.d(t,{EO:function(){return j},TO:function(){return f},fE:function(){return h},jA:function(){return E},sP:function(){return x},tJ:function(){return g},wI:function(){return v},z2:function(){return _}});var r,o,i,a,s,l=n(95012),c=n(23011),u=n(19195);let d=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var f=((r=f||{})[r.First=1]="First",r[r.Previous=2]="Previous",r[r.Next=4]="Next",r[r.Last=8]="Last",r[r.WrapAround=16]="WrapAround",r[r.NoScroll=32]="NoScroll",r),h=((o=h||{})[o.Error=0]="Error",o[o.Overflow=1]="Overflow",o[o.Success=2]="Success",o[o.Underflow=3]="Underflow",o),p=((i=p||{})[i.Previous=-1]="Previous",i[i.Next=1]="Next",i);function m(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(d)).sort((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}var g=((a=g||{})[a.Strict=0]="Strict",a[a.Loose=1]="Loose",a);function x(e,t=0){var n;return e!==(null==(n=(0,u.r)(e))?void 0:n.body)&&(0,c.E)(t,{0:()=>e.matches(d),1(){let t=e;for(;null!==t;){if(t.matches(d))return!0;t=t.parentElement}return!1}})}function v(e){let t=(0,u.r)(e);(0,l.k)().nextFrame(()=>{t&&!x(t.activeElement,0)&&b(e)})}var y=((s=y||{})[s.Keyboard=0]="Keyboard",s[s.Mouse=1]="Mouse",s);function b(e){null==e||e.focus({preventScroll:!0})}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));let w="textarea,input";function k(e){var t,n;return null!=(n=null==(t=null==e?void 0:e.matches)?void 0:t.call(e,w))&&n}function _(e,t=e=>e){return e.slice().sort((e,n)=>{let r=t(e),o=t(n);if(null===r||null===o)return 0;let i=r.compareDocumentPosition(o);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function j(e,t){return E(m(),t,{relativeTo:e})}function E(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:o=[]}={}){let i=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,a=Array.isArray(e)?n?_(e):e:m(e);o.length>0&&a.length>1&&(a=a.filter(e=>!o.includes(e))),r=null!=r?r:i.activeElement;let s=(()=>{if(5&t)return 1;if(10&t)return -1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),l=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,a.indexOf(r))-1;if(4&t)return Math.max(0,a.indexOf(r))+1;if(8&t)return a.length-1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=32&t?{preventScroll:!0}:{},u=0,d=a.length,f;do{if(u>=d||u+d<=0)return 0;let e=l+u;if(16&t)e=(e+d)%d;else{if(e<0)return 3;if(e>=d)return 1}null==(f=a[e])||f.focus(c),u+=s}while(f!==i.activeElement);return 6&t&&k(f)&&f.select(),2}},23011:function(e,t,n){"use strict";function r(e,t,...n){if(e in t){let r=t[e];return"function"==typeof r?r(...n):r}let o=Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(e=>`"${e}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(o,r),o}n.d(t,{E:function(){return r}})},41287:function(e,t,n){"use strict";function r(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch(e=>setTimeout(()=>{throw e}))}n.d(t,{Y:function(){return r}})},19195:function(e,t,n){"use strict";n.d(t,{r:function(){return o}});var r=n(86030);function o(e){return r.O.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}},70222:function(e,t,n){"use strict";n.d(t,{AN:function(){return l},l4:function(){return c},oA:function(){return m},sY:function(){return u},yV:function(){return p}});var r,o,i=n(50959),a=n(43659),s=n(23011),l=((r=l||{})[r.None=0]="None",r[r.RenderStrategy=1]="RenderStrategy",r[r.Static=2]="Static",r),c=((o=c||{})[o.Unmount=0]="Unmount",o[o.Hidden=1]="Hidden",o);function u({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:a}){let l=h(t,e);if(i)return d(l,n,r,a);let c=null!=o?o:0;if(2&c){let{static:e=!1,...t}=l;if(e)return d(t,n,r,a)}if(1&c){let{unmount:e=!0,...t}=l;return(0,s.E)(e?0:1,{0:()=>null,1:()=>d({...t,hidden:!0,style:{display:"none"}},n,r,a)})}return d(l,n,r,a)}function d(e,t={},n,r){let{as:o=n,children:s,refName:l="ref",...c}=g(e,["unmount","static"]),u=void 0!==e.ref?{[l]:e.ref}:{},d="function"==typeof s?s(t):s;"className"in c&&c.className&&"function"==typeof c.className&&(c.className=c.className(t));let p={};if(t){let e=!1,n=[];for(let[r,o]of Object.entries(t))"boolean"==typeof o&&(e=!0),!0===o&&n.push(r);e&&(p["data-headlessui-state"]=n.join(" "))}if(o===i.Fragment&&Object.keys(m(c)).length>0){if(!(0,i.isValidElement)(d)||Array.isArray(d)&&d.length>1)throw Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(c).map(e=>` - ${e}`).join(` +`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(e=>` - ${e}`).join(` +`)].join(` +`));let e=d.props,t="function"==typeof(null==e?void 0:e.className)?(...t)=>(0,a.A)(null==e?void 0:e.className(...t),c.className):(0,a.A)(null==e?void 0:e.className,c.className),n=t?{className:t}:{};return(0,i.cloneElement)(d,Object.assign({},h(d.props,m(g(c,["ref"]))),p,u,f(d.ref,u.ref),n))}return(0,i.createElement)(o,Object.assign({},g(c,["ref"]),o!==i.Fragment&&u,o!==i.Fragment&&p),d)}function f(...e){return{ref:e.every(e=>null==e)?void 0:t=>{for(let n of e)null!=n&&("function"==typeof n?n(t):n.current=t)}}}function h(...e){var t;if(0===e.length)return{};if(1===e.length)return e[0];let n={},r={};for(let o of e)for(let e in o)e.startsWith("on")&&"function"==typeof o[e]?(null!=(t=r[e])||(r[e]=[]),r[e].push(o[e])):n[e]=o[e];if(n.disabled||n["aria-disabled"])return Object.assign(n,Object.fromEntries(Object.keys(r).map(e=>[e,void 0])));for(let e in r)Object.assign(n,{[e](t,...n){for(let o of r[e]){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;o(t,...n)}}});return n}function p(e){var t;return Object.assign((0,i.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function m(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function g(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}},5341:function(e,t,n){"use strict";function r(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e){if(Array.isArray(e))for(t=0;t0?(0,o.uO)(u,--l):0,a--,10===c&&(a=1,i--),c}function p(){return c=l2||v(c)>3?"":" "}function _(e,t){for(;--t&&p()&&!(c<48)&&!(c>102)&&(!(c>57)||!(c<65))&&(!(c>70)||!(c<97)););return x(e,g()+(t<6&&32==m()&&32==p()))}function j(e){for(;p();)switch(c){case e:return l;case 34:case 39:34!==e&&39!==e&&j(c);break;case 40:41===e&&j(e);break;case 92:p()}return l}function E(e,t){for(;p();)if(e+c===57)break;else if(e+c===84&&47===m())break;return"/*"+x(t,l-1)+"*"+(0,o.Dp)(47===e?e:p())}function O(e){for(;!v(m());)p();return x(e,l)}function S(e){return b(C("",null,null,null,[""],e=y(e),0,[0],e))}function C(e,t,n,r,i,a,s,l,c){for(var u=0,d=0,f=s,x=0,v=0,y=0,b=1,j=1,S=1,N=0,I="",M=i,L=a,Z=r,P=I;j;)switch(y=N,N=p()){case 40:if(108!=y&&58==(0,o.uO)(P,f-1)){-1!=(0,o.Cw)(P+=(0,o.gx)(w(N),"&","&\f"),"&\f")&&(S=-1);break}case 34:case 39:case 91:P+=w(N);break;case 9:case 10:case 13:case 32:P+=k(y);break;case 92:P+=_(g()-1,7);continue;case 47:switch(m()){case 42:case 47:(0,o.R3)(A(E(p(),g()),t,n,c),c);break;default:P+="/"}break;case 123*b:l[u++]=(0,o.to)(P)*S;case 125*b:case 59:case 0:switch(N){case 0:case 125:j=0;case 59+d:-1==S&&(P=(0,o.gx)(P,/\f/g,"")),v>0&&(0,o.to)(P)-f&&(0,o.R3)(v>32?R(P+";",r,n,f-1,c):R((0,o.gx)(P," ","")+";",r,n,f-2,c),c);break;case 59:P+=";";default:if((0,o.R3)(Z=T(P,t,n,u,d,i,l,I,M=[],L=[],f,a),a),123===N){if(0===d)C(P,t,Z,Z,M,a,f,l,L);else switch(99===x&&110===(0,o.uO)(P,3)?100:x){case 100:case 108:case 109:case 115:C(e,Z,Z,r&&(0,o.R3)(T(e,Z,Z,0,0,i,l,I,i,M=[],f,L),L),i,L,f,l,r?M:L);break;default:C(P,Z,Z,Z,[""],L,0,l,L)}}}u=d=v=0,b=S=1,I=P="",f=s;break;case 58:f=1+(0,o.to)(P),v=y;default:if(b<1){if(123==N)--b;else if(125==N&&0==b++&&125==h())continue}switch(P+=(0,o.Dp)(N),N*b){case 38:S=d>0?1:(P+="\f",-1);break;case 44:l[u++]=((0,o.to)(P)-1)*S,S=1;break;case 64:45===m()&&(P+=w(p())),x=m(),d=f=(0,o.to)(I=P+=O(g())),N++;break;case 45:45===y&&2==(0,o.to)(P)&&(b=0)}}return a}function T(e,t,n,i,a,s,l,c,u,f,h,p){for(var m=a-1,g=0===a?s:[""],x=(0,o.Ei)(g),v=0,y=0,b=0;v0?g[w]+" "+k:(0,o.gx)(k,/&\f/g,g[w])))&&(u[b++]=_);return d(e,t,n,0===a?r.Fr:c,u,f,h,p)}function A(e,t,n,i){return d(e,t,n,r.Ab,(0,o.Dp)(f()),(0,o.tb)(e,2,-2),0,i)}function R(e,t,n,i,a){return d(e,t,n,r.h5,(0,o.tb)(e,0,i),(0,o.tb)(e,i+1,-1),i,a)}},48871:function(e,t,n){"use strict";n.d(t,{P:function(){return a},q:function(){return i}});var r=n(32402),o=n(41960);function i(e,t){for(var n="",r=0;r=4;++r,o-=4)t=(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))*1540483477+((t>>>16)*59797<<16),t^=t>>>24,n=(65535&t)*1540483477+((t>>>16)*59797<<16)^(65535&n)*1540483477+((n>>>16)*59797<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n^=255&e.charCodeAt(r),n=(65535&n)*1540483477+((n>>>16)*59797<<16)}return n^=n>>>13,(((n=(65535&n)*1540483477+((n>>>16)*59797<<16))^n>>>15)>>>0).toString(36)},u=n(89130),d=n(50959),f=n.t(d,2);n(9075);var h=n(77151),p=n(9130),m=n(82349),g="%";function x(e){return e.join(g)}var v=function(){function e(t){(0,p.Z)(this,e),(0,i.Z)(this,"instanceId",void 0),(0,i.Z)(this,"cache",new Map),this.instanceId=t}return(0,m.Z)(e,[{key:"get",value:function(e){return this.opGet(x(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(x(e),t)}},{key:"opUpdate",value:function(e,t){var n=t(this.cache.get(e));null===n?this.cache.delete(e):this.cache.set(e,n)}}]),e}(),y="data-token-hash",b="data-css-hash",w="__cssinjs_instance__";function k(){var e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(b,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(t){t[w]=t[w]||e,t[w]===e&&document.head.insertBefore(t,n)});var r={};Array.from(document.querySelectorAll("style[".concat(b,"]"))).forEach(function(t){var n,o=t.getAttribute(b);r[o]?t[w]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):r[o]=!0})}return new v(e)}var _=d.createContext({hashPriority:"low",cache:k(),defaultCache:!0}),j=n(26407),E=n(18021);function O(e,t){if(e.length!==t.length)return!1;for(var n=0;n1&&void 0!==arguments[1]&&arguments[1],o={map:this.cache};return e.forEach(function(e){if(o){var t;o=null===(t=o)||void 0===t||null===(t=t.map)||void 0===t?void 0:t.get(e)}else o=void 0}),null!==(t=o)&&void 0!==t&&t.value&&r&&(o.value[1]=this.cacheCallTimes++),null===(n=o)||void 0===n?void 0:n.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,n){var r=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(e,t){var n=(0,a.Z)(e,2)[1];return r.internalGet(t)[1]0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),C+=1}return(0,m.Z)(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce(function(t,n){return n(e,t)},void 0)}}]),e}(),A=new S;function R(e){var t=Array.isArray(e)?e:[e];return A.has(t)||A.set(t,new T(t)),A.get(t)}var N=new WeakMap,I={};function M(e,t){for(var n=N,r=0;r3&&void 0!==arguments[3]?arguments[3]:{},a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(a)return e;var s=(0,l.Z)((0,l.Z)({},o),{},(r={},(0,i.Z)(r,y,t),(0,i.Z)(r,b,n),r)),c=Object.keys(s).map(function(e){var t=s[e];return t?"".concat(e,'="').concat(t,'"'):null}).filter(function(e){return e}).join(" ");return"")}var U=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},V=function(e,t,n){return Object.keys(e).length?".".concat(t).concat(null!=n&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(e).map(function(e){var t=(0,a.Z)(e,2),n=t[0],r=t[1];return"".concat(n,":").concat(r,";")}).join(""),"}"):""},q=function(e,t,n){var r={},o={};return Object.entries(e).forEach(function(e){var t=(0,a.Z)(e,2),i=t[0],s=t[1];if(null!=n&&null!==(l=n.preserve)&&void 0!==l&&l[i])o[i]=s;else if(("string"==typeof s||"number"==typeof s)&&!(null!=n&&null!==(c=n.ignore)&&void 0!==c&&c[i])){var l,c,u,d=U(i,null==n?void 0:n.prefix);r[d]="number"!=typeof s||null!=n&&null!==(u=n.unitless)&&void 0!==u&&u[i]?String(s):"".concat(s,"px"),o[i]="var(".concat(d,")")}}),[o,V(r,t,{scope:null==n?void 0:n.scope})]},X=n(5074),K=(0,l.Z)({},f).useInsertionEffect,Q=function(e,t,n){d.useMemo(e,n),(0,X.Z)(function(){return t(!0)},n)},Y=K?function(e,t,n){return K(function(){return e(),t()},n)}:Q,J=(0,l.Z)({},f).useInsertionEffect,ee=function(e){var t=[],n=!1;function r(e){n||t.push(e)}return d.useEffect(function(){return n=!1,function(){n=!0,t.length&&t.forEach(function(e){return e()})}},e),r},et=function(){return function(e){e()}},en=void 0!==J?ee:et,er=function(){return!1};function eo(e,t,n,r,o){var i=d.useContext(_).cache,l=x([e].concat((0,s.Z)(t))),c=en([l]);er();var u=function(e){i.opUpdate(l,function(t){var r=t||[void 0,void 0],o=(0,a.Z)(r,2),i=o[0],s=[void 0===i?0:i,o[1]||n()];return e?e(s):s})};d.useMemo(function(){u()},[l]);var f=i.opGet(l)[1];return Y(function(){null==o||o(f)},function(e){return u(function(t){var n=(0,a.Z)(t,2),r=n[0],i=n[1];return e&&0===r&&(null==o||o(f)),[r+1,i]}),function(){i.opUpdate(l,function(t){var n=t||[],o=(0,a.Z)(n,2),s=o[0],u=void 0===s?0:s,d=o[1];return 0==u-1?(c(function(){(e||!i.opGet(l))&&(null==r||r(d,!1))}),null):[u-1,d]})}},[l]),f}var ei={},ea="css",es=new Map;function el(e){es.set(e,(es.get(e)||0)+1)}function ec(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(y,'="').concat(e,'"]')).forEach(function(e){if(e[w]===t){var n;null===(n=e.parentNode)||void 0===n||n.removeChild(e)}})}var eu=0;function ed(e,t){es.set(e,(es.get(e)||0)-1);var n=Array.from(es.keys()),r=n.filter(function(e){return 0>=(es.get(e)||0)});n.length-r.length>eu&&r.forEach(function(e){ec(e,t),es.delete(e)})}var ef=function(e,t,n,r){var o=n.getDerivativeToken(e),i=(0,l.Z)((0,l.Z)({},o),t);return r&&(i=r(i)),i},eh="token";function ep(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(0,d.useContext)(_),o=r.cache.instanceId,i=r.container,f=n.salt,h=void 0===f?"":f,p=n.override,m=void 0===p?ei:p,g=n.formatToken,x=n.getComputedToken,v=n.cssVar,k=M(function(){return Object.assign.apply(Object,[{}].concat((0,s.Z)(t)))},t),j=Z(k),E=Z(m),O=v?Z(v):"";return eo(eh,[h,e.id,j,E,O],function(){var t,n=x?x(k,m,e):ef(k,m,e,g),r=(0,l.Z)({},n),o="";if(v){var i=q(n,v.key,{prefix:v.prefix,ignore:v.ignore,unitless:v.unitless,preserve:v.preserve}),s=(0,a.Z)(i,2);n=s[0],o=s[1]}var u=P(n,h);n._tokenKey=u,r._tokenKey=P(r,h);var d=null!==(t=null==v?void 0:v.key)&&void 0!==t?t:u;n._themeKey=d,el(d);var f="".concat(ea,"-").concat(c(u));return n._hashId=f,[n,f,r,o,(null==v?void 0:v.key)||""]},function(e){ed(e[0]._themeKey,o)},function(e){var t=(0,a.Z)(e,4),n=t[0],r=t[3];if(v&&r){var s=(0,u.hq)(r,c("css-variables-".concat(n._themeKey)),{mark:b,prepend:"queue",attachTo:i,priority:-999});s[w]=o,s.setAttribute(y,n._themeKey)}})}var em=function(e,t,n){var r=(0,a.Z)(e,5),o=r[2],i=r[3],s=r[4],l=(n||{}).plain;if(!i)return null;var c=o._tokenKey,u=-999,d=G(i,s,c,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)},l);return[u,c,d]},eg=n(97605),ex={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},ev=n(48871),ey=n(75542),eb="data-ant-cssinjs-cache-path",ew="_FILE_STYLE__",ek=!0;function e_(){if(!r&&(r={},(0,E.Z)())){var e,t=document.createElement("div");t.className=eb,t.style.position="fixed",t.style.visibility="hidden",t.style.top="-9999px",document.body.appendChild(t);var n=getComputedStyle(t).content||"";(n=n.replace(/^"/,"").replace(/"$/,"")).split(";").forEach(function(e){var t=e.split(":"),n=(0,a.Z)(t,2),o=n[0],i=n[1];r[o]=i});var o=document.querySelector("style[".concat(eb,"]"));o&&(ek=!1,null===(e=o.parentNode)||void 0===e||e.removeChild(o)),document.body.removeChild(t)}}function ej(e){return e_(),!!r[e]}function eE(e){var t=r[e],n=null;if(t&&(0,E.Z)()){if(ek)n=ew;else{var o=document.querySelector("style[".concat(b,'="').concat(r[e],'"]'));o?n=o.innerHTML:delete r[e]}}return[n,t]}var eO="_skip_check_",eS="_multi_value_";function eC(e){return(0,ev.q)((0,ey.MY)(e),ev.P).replace(/\{%%%\:[^;];}/g,";")}function eT(e){return"object"===(0,j.Z)(e)&&e&&(eO in e||eS in e)}function eA(e,t,n){if(!t)return e;var r=".".concat(t),o="low"===n?":where(".concat(r,")"):r;return e.split(",").map(function(e){var t,n=e.trim().split(/\s+/),r=n[0]||"",i=(null===(t=r.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[r="".concat(i).concat(o).concat(r.slice(i.length))].concat((0,s.Z)(n.slice(1))).join(" ")}).join(",")}var eR=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,i=r.injectHash,c=r.parentSelectors,u=n.hashId,d=n.layer,f=(n.path,n.hashPriority),h=n.transformers,p=void 0===h?[]:h;n.linters;var m="",g={};function x(t){var r=t.getName(u);if(!g[r]){var o=e(t.style,n,{root:!1,parentSelectors:c}),i=(0,a.Z)(o,1)[0];g[r]="@keyframes ".concat(t.getName(u)).concat(i)}}function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.forEach(function(e){Array.isArray(e)?v(e,t):e&&t.push(e)}),t}if(v(Array.isArray(t)?t:[t]).forEach(function(t){var r="string"!=typeof t||o?t:{};if("string"==typeof r)m+="".concat(r,"\n");else if(r._keyframe)x(r);else{var d=p.reduce(function(e,t){var n;return(null==t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e},r);Object.keys(d).forEach(function(t){var r=d[t];if("object"!==(0,j.Z)(r)||!r||"animationName"===t&&r._keyframe||eT(r)){function h(e,t){var n=e.replace(/[A-Z]/g,function(e){return"-".concat(e.toLowerCase())}),r=t;ex[e]||"number"!=typeof r||0===r||(r="".concat(r,"px")),"animationName"===e&&null!=t&&t._keyframe&&(x(t),r=t.getName(u)),m+="".concat(n,":").concat(r,";")}var p,v=null!==(p=null==r?void 0:r.value)&&void 0!==p?p:r;"object"===(0,j.Z)(r)&&null!=r&&r[eS]&&Array.isArray(v)?v.forEach(function(e){h(t,e)}):h(t,v)}else{var y=!1,b=t.trim(),w=!1;(o||i)&&u?b.startsWith("@")?y=!0:b=eA(t,u,f):o&&!u&&("&"===b||""===b)&&(b="",w=!0);var k=e(r,n,{root:w,injectHash:y,parentSelectors:[].concat((0,s.Z)(c),[b])}),_=(0,a.Z)(k,2),E=_[0],O=_[1];g=(0,l.Z)((0,l.Z)({},g),O),m+="".concat(b).concat(E)}})}}),o){if(d&&B()){var y=d.split(","),b=y[y.length-1].trim();m="@layer ".concat(b," {").concat(m,"}"),y.length>1&&(m="@layer ".concat(d,"{%%%:%}").concat(m))}}else m="{".concat(m,"}");return[m,g]};function eN(e,t){return c("".concat(e.join("%")).concat(t))}function eI(){return null}var eM="style";function eL(e,t){var n=e.token,r=e.path,o=e.hashId,l=e.layer,c=e.nonce,f=e.clientOnly,h=e.order,p=void 0===h?0:h,m=d.useContext(_),g=m.autoClear,x=(m.mock,m.defaultCache),v=m.hashPriority,k=m.container,j=m.ssrInline,E=m.transformers,O=m.linters,S=m.cache,C=n._tokenKey,T=[C].concat((0,s.Z)(r)),A=W,R=eo(eM,T,function(){var e=T.join("|");if(ej(e)){var n=eE(e),i=(0,a.Z)(n,2),s=i[0],c=i[1];if(s)return[s,C,c,{},f,p]}var u=eR(t(),{hashId:o,hashPriority:v,layer:l,path:r.join("-"),transformers:E,linters:O}),d=(0,a.Z)(u,2),h=d[0],m=d[1],g=eC(h),x=eN(T,g);return[g,C,x,m,f,p]},function(e,t){var n=(0,a.Z)(e,3)[2];(t||g)&&W&&(0,u.jL)(n,{mark:b})},function(e){var t=(0,a.Z)(e,4),n=t[0],r=(t[1],t[2]),o=t[3];if(A&&n!==ew){var i={mark:b,prepend:"queue",attachTo:k,priority:p},s="function"==typeof c?c():c;s&&(i.csp={nonce:s});var l=(0,u.hq)(n,r,i);l[w]=S.instanceId,l.setAttribute(y,C),Object.keys(o).forEach(function(e){(0,u.hq)(eC(o[e]),"_effect-".concat(e),i)})}}),N=(0,a.Z)(R,3),I=N[0],M=N[1],L=N[2];return function(e){var t,n;return t=j&&!A&&x?d.createElement("style",(0,eg.Z)({},(n={},(0,i.Z)(n,y,M),(0,i.Z)(n,b,L),n),{dangerouslySetInnerHTML:{__html:I}})):d.createElement(eI,null),d.createElement(d.Fragment,null,t,e)}}var eZ=function(e,t,n){var r=(0,a.Z)(e,6),o=r[0],i=r[1],s=r[2],l=r[3],c=r[4],u=r[5],d=(n||{}).plain;if(c)return null;var f=o,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return f=G(o,i,s,h,d),l&&Object.keys(l).forEach(function(e){if(!t[e]){t[e]=!0;var n=eC(l[e]);f+=G(n,i,"_effect-".concat(e),h,d)}}),[u,s,f]},eP="cssVar",eD=function(e,t,n){var r=(0,a.Z)(e,4),o=r[1],i=r[2],s=r[3],l=(n||{}).plain;if(!o)return null;var c=-999,u=G(o,s,i,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(c)},l);return[c,i,u]},ez=function(e,t){var n=e.key,r=e.prefix,o=e.unitless,i=e.ignore,l=e.token,c=e.scope,f=void 0===c?"":c,h=(0,d.useContext)(_),p=h.cache.instanceId,m=h.container,g=l._tokenKey,x=[].concat((0,s.Z)(e.path),[n,f,g]);return eo(eP,x,function(){var e=q(t(),n,{prefix:r,unitless:o,ignore:i,scope:f}),s=(0,a.Z)(e,2),l=s[0],c=s[1],u=eN(x,c);return[l,c,u,n]},function(e){var t=(0,a.Z)(e,3)[2];W&&(0,u.jL)(t,{mark:b})},function(e){var t=(0,a.Z)(e,3),r=t[1],o=t[2];if(r){var i=(0,u.hq)(r,o,{mark:b,prepend:"queue",attachTo:m,priority:-999});i[w]=p,i.setAttribute(y,n)}})};o={},(0,i.Z)(o,eM,eZ),(0,i.Z)(o,eh,em),(0,i.Z)(o,eP,eD);var eF=function(){function e(t,n){(0,p.Z)(this,e),(0,i.Z)(this,"name",void 0),(0,i.Z)(this,"style",void 0),(0,i.Z)(this,"_keyframe",!0),this.name=t,this.style=n}return(0,m.Z)(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}();function eH(e){return e.notSplit=!0,e}eH(["borderTop","borderBottom"]),eH(["borderTop"]),eH(["borderBottom"]),eH(["borderLeft","borderRight"]),eH(["borderLeft"]),eH(["borderRight"])},96299:function(e,t,n){"use strict";n.d(t,{T6:function(){return h},VD:function(){return p},WE:function(){return c},Yt:function(){return m},lC:function(){return i},py:function(){return l},rW:function(){return o},s:function(){return d},ve:function(){return s},vq:function(){return u}});var r=n(23881);function o(e,t,n){return{r:255*(0,r.sh)(e,255),g:255*(0,r.sh)(t,255),b:255*(0,r.sh)(n,255)}}function i(e,t,n){var o=Math.max(e=(0,r.sh)(e,255),t=(0,r.sh)(t,255),n=(0,r.sh)(n,255)),i=Math.min(e,t,n),a=0,s=0,l=(o+i)/2;if(o===i)s=0,a=0;else{var c=o-i;switch(s=l>.5?c/(2-o-i):c/(o+i),o){case e:a=(t-n)/c+(t1&&(n-=1),n<1/6)?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function s(e,t,n){if(e=(0,r.sh)(e,360),t=(0,r.sh)(t,100),n=(0,r.sh)(n,100),0===t)i=n,s=n,o=n;else{var o,i,s,l=n<.5?n*(1+t):n+t-n*t,c=2*n-l;o=a(c,l,e+1/3),i=a(c,l,e),s=a(c,l,e-1/3)}return{r:255*o,g:255*i,b:255*s}}function l(e,t,n){var o=Math.max(e=(0,r.sh)(e,255),t=(0,r.sh)(t,255),n=(0,r.sh)(n,255)),i=Math.min(e,t,n),a=0,s=o,l=o-i,c=0===o?0:l/o;if(o===i)a=0;else{switch(o){case e:a=(t-n)/l+(t>16,g:(65280&e)>>8,b:255&e}}},76367:function(e,t,n){"use strict";n.d(t,{R:function(){return r}});var r={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}},28556:function(e,t,n){"use strict";n.d(t,{uA:function(){return a}});var r=n(96299),o=n(76367),i=n(23881);function a(e){var t={r:0,g:0,b:0},n=1,o=null,a=null,s=null,l=!1,c=!1;return"string"==typeof e&&(e=h(e)),"object"==typeof e&&(p(e.r)&&p(e.g)&&p(e.b)?(t=(0,r.rW)(e.r,e.g,e.b),l=!0,c="%"===String(e.r).substr(-1)?"prgb":"rgb"):p(e.h)&&p(e.s)&&p(e.v)?(o=(0,i.JX)(e.s),a=(0,i.JX)(e.v),t=(0,r.WE)(e.h,o,a),l=!0,c="hsv"):p(e.h)&&p(e.s)&&p(e.l)&&(o=(0,i.JX)(e.s),s=(0,i.JX)(e.l),t=(0,r.ve)(e.h,o,s),l=!0,c="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=(0,i.Yq)(n),{ok:l,format:e.format||c,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var s="[-\\+]?\\d+%?",l="[-\\+]?\\d*\\.\\d+%?",c="(?:".concat(l,")|(?:").concat(s,")"),u="[\\s|\\(]+(".concat(c,")[,|\\s]+(").concat(c,")[,|\\s]+(").concat(c,")\\s*\\)?"),d="[\\s|\\(]+(".concat(c,")[,|\\s]+(").concat(c,")[,|\\s]+(").concat(c,")[,|\\s]+(").concat(c,")\\s*\\)?"),f={CSS_UNIT:new RegExp(c),rgb:RegExp("rgb"+u),rgba:RegExp("rgba"+d),hsl:RegExp("hsl"+u),hsla:RegExp("hsla"+d),hsv:RegExp("hsv"+u),hsva:RegExp("hsva"+d),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function h(e){if(0===(e=e.trim().toLowerCase()).length)return!1;var t=!1;if(o.R[e])e=o.R[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=f.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=f.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=f.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=f.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=f.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=f.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=f.hex8.exec(e))?{r:(0,r.VD)(n[1]),g:(0,r.VD)(n[2]),b:(0,r.VD)(n[3]),a:(0,r.T6)(n[4]),format:t?"name":"hex8"}:(n=f.hex6.exec(e))?{r:(0,r.VD)(n[1]),g:(0,r.VD)(n[2]),b:(0,r.VD)(n[3]),format:t?"name":"hex"}:(n=f.hex4.exec(e))?{r:(0,r.VD)(n[1]+n[1]),g:(0,r.VD)(n[2]+n[2]),b:(0,r.VD)(n[3]+n[3]),a:(0,r.T6)(n[4]+n[4]),format:t?"name":"hex8"}:!!(n=f.hex3.exec(e))&&{r:(0,r.VD)(n[1]+n[1]),g:(0,r.VD)(n[2]+n[2]),b:(0,r.VD)(n[3]+n[3]),format:t?"name":"hex"}}function p(e){return!!f.CSS_UNIT.exec(String(e))}},23881:function(e,t,n){"use strict";function r(e,t){i(e)&&(e="100%");var n=a(e);return(e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),1e-6>Math.abs(e-t))?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function o(e){return Math.min(1,Math.max(0,e))}function i(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)}function a(e){return"string"==typeof e&&-1!==e.indexOf("%")}function s(e){return(isNaN(e=parseFloat(e))||e<0||e>1)&&(e=1),e}function l(e){return e<=1?"".concat(100*Number(e),"%"):e}function c(e){return 1===e.length?"0"+e:String(e)}n.d(t,{FZ:function(){return c},JX:function(){return l},V2:function(){return o},Yq:function(){return s},sh:function(){return r}})},84875:function(e,t){var n;/*! - Copyright (c) 2018 Jed Watson. - Licensed under the MIT License (MIT), see - http://jedwatson.github.io/classnames -*/!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t=r))));t++);if(n)return i?ta(l,r,0):void(t[t.length]=l)}return!n&&l}function ta(e,t,n){return e=1===e.length?e[0]:[].concat.apply([],e),n||e.length>t?e.slice(n,n+t):e}function ua(e,t,n,r){return e=n?(e=e[(r=r&&t>n)?t:n])&&e[r?n:t]:e[t]}function N(e,t,n,r,o){let i=0;if(e.constructor===Array){if(o)-1!==(t=e.indexOf(t))?1=this.B&&(d||!u[p])){var i=L(f,r,h),a="";switch(this.G){case"full":if(2i;s--)if(s-i>=this.B){var l=L(f,r,h,o,i);M(this,u,a=p.substring(i,s),l,e,n)}break}case"reverse":if(1=this.B&&M(this,u,a,L(f,r,h,o,s),e,n);a=""}case"forward":if(1=this.B&&M(this,u,a,i,e,n);break}default:if(this.C&&(i=Math.min(i/this.C(t,p,h)|0,f-1)),M(this,u,p,i,e,n),d&&1=this.B&&!o[p]){o[p]=1;let t=this.l&&p>i;M(this,c,t?i:p,L(a+(r/2>a?0:1),r,h,s-1,l-1),e,n,t?p:i)}}}}}this.m||(this.register[e]=1)}}return this},t.search=function(e,t,n){let r,o,i;n||(!t&&C(e)?e=(n=e).query:C(t)&&(n=t));let a=[],s,l,c=0;if(n){e=n.query||e,t=n.limit,c=n.offset||0;var u=n.context;l=n.suggest}if(e&&1<(s=(e=this.encode(""+e)).length)){n=v();var d=[];for(let t=0,r=0,o;t=this.B&&!n[o]){if(!this.s&&!l&&!this.map[o])return a;d[r++]=o,n[o]=1}s=(e=d).length}if(!s)return a;for(t||(t=100),u=this.depth&&1t||n)&&(o=o.slice(n,n+t)),r&&(o=za.call(this,o)),{tag:e,result:o}}function za(e){let t=Array(e.length);for(let n=0,r;n2?n.slice(1-n.length).join("."):t.source=t.resource,t.git_suffix=/\.git$/.test(t.pathname),t.name=decodeURIComponent((t.pathname||t.href).replace(/(^\/)|(\/$)/g,"").replace(/\.git$/,"")),t.owner=decodeURIComponent(t.user),t.source){case"git.cloudforge.com":t.owner=t.user,t.organization=n[0],t.source="cloudforge.com";break;case"visualstudio.com":if("vs-ssh.visualstudio.com"===t.resource){4===(i=t.name.split("/")).length&&(t.organization=i[1],t.owner=i[2],t.name=i[3],t.full_name=i[2]+"/"+i[3]);break}2===(i=t.name.split("/")).length?(t.owner=i[1],t.name=i[1],t.full_name="_git/"+t.name):3===i.length?(t.name=i[2],"DefaultCollection"===i[0]?(t.owner=i[2],t.organization=i[0],t.full_name=t.organization+"/_git/"+t.name):(t.owner=i[0],t.full_name=t.owner+"/_git/"+t.name)):4===i.length&&(t.organization=i[0],t.owner=i[1],t.name=i[3],t.full_name=t.organization+"/"+t.owner+"/_git/"+t.name);break;case"dev.azure.com":case"azure.com":if("ssh.dev.azure.com"===t.resource){4===(i=t.name.split("/")).length&&(t.organization=i[1],t.owner=i[2],t.name=i[3]);break}5===(i=t.name.split("/")).length?(t.organization=i[0],t.owner=i[1],t.name=i[4],t.full_name="_git/"+t.name):3===i.length?(t.name=i[2],"DefaultCollection"===i[0]?(t.owner=i[2],t.organization=i[0],t.full_name=t.organization+"/_git/"+t.name):(t.owner=i[0],t.full_name=t.owner+"/_git/"+t.name)):4===i.length&&(t.organization=i[0],t.owner=i[1],t.name=i[3],t.full_name=t.organization+"/"+t.owner+"/_git/"+t.name),t.query&&t.query.path&&(t.filepath=t.query.path.replace(/^\/+/g,"")),t.query&&t.query.version&&(t.ref=t.query.version.replace(/^GB/,""));break;default:var a=(i=t.name.split("/")).length-1;if(i.length>=2){var s=i.indexOf("-",2),l=i.indexOf("blob",2),c=i.indexOf("tree",2),u=i.indexOf("commit",2),d=i.indexOf("src",2),f=i.indexOf("raw",2),h=i.indexOf("edit",2);a=s>0?s-1:l>0?l-1:c>0?c-1:u>0?u-1:d>0?d-1:f>0?f-1:h>0?h-1:a,t.owner=i.slice(0,a).join("/"),t.name=i[a],u&&(t.commit=i[a+2])}t.ref="",t.filepathtype="",t.filepath="";var p=i.length>a&&"-"===i[a+1]?a+1:a;i.length>p+2&&["raw","src","blob","tree","edit"].indexOf(i[p+1])>=0&&(t.filepathtype=i[p+1],t.ref=i[p+2],i.length>p+3&&(t.filepath=i.slice(p+3).join("/"))),t.organization=t.owner}!t.full_name&&(t.full_name=t.owner,t.name&&(t.full_name&&(t.full_name+="/"),t.full_name+=t.name)),t.owner.startsWith("scm/")&&(t.source="bitbucket-server",t.owner=t.owner.replace("scm/",""),t.organization=t.owner,t.full_name=t.owner+"/"+t.name);var m=/(projects|users)\/(.*?)\/repos\/(.*?)((\/.*$)|$)/.exec(t.pathname);return null!=m&&(t.source="bitbucket-server","users"===m[1]?t.owner="~"+m[2]:t.owner=m[2],t.organization=t.owner,t.name=m[3],(i=m[4].split("/")).length>1&&(["raw","browse"].indexOf(i[1])>=0?(t.filepathtype=i[1],i.length>2&&(t.filepath=i.slice(2).join("/"))):"commits"===i[1]&&i.length>2&&(t.commit=i[2])),t.full_name=t.owner+"/"+t.name,t.query.at?t.ref=t.query.at:t.ref=""),t}/*! - * buildToken - * Builds OAuth token prefix (helper function) - * - * @name buildToken - * @function - * @param {GitUrl} obj The parsed Git url object. - * @return {String} token prefix - */function i(e){return"bitbucket.org"===e.source?"x-token-auth:"+e.token+"@":e.token+"@"}function a(e){return"bitbucket-server"===e.source?"scm/"+e.full_name:""+e.full_name}o.stringify=function(e,t){t=t||(e.protocols&&e.protocols.length?e.protocols.join("+"):e.protocol);var n=e.port?":"+e.port:"",r=e.user||"git",o=e.git_suffix?".git":"";switch(t){case"ssh":if(n)return"ssh://"+r+"@"+e.resource+n+"/"+e.full_name+o;return r+"@"+e.resource+":"+e.full_name+o;case"git+ssh":case"ssh+git":case"ftp":case"ftps":return t+"://"+r+"@"+e.resource+n+"/"+e.full_name+o;case"http":case"https":return t+"://"+(e.token?i(e):e.user&&(e.protocols.includes("http")||e.protocols.includes("https"))?e.user+"@":"")+e.resource+n+"/"+a(e)+o;default:return e.href}},e.exports=o},15983:function(){!function(){"use strict";if("object"==typeof window){if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype){"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});return}var e=function(e){for(var t=e,n=o(t);n;)n=o(t=n.ownerDocument);return t}(window.document),t=[],n=null,r=null;a.prototype.THROTTLE_TIMEOUT=100,a.prototype.POLL_INTERVAL=null,a.prototype.USE_MUTATION_OBSERVER=!0,a._setupCrossOriginUpdater=function(){return n||(n=function(e,n){r=e&&n?m(e,n):h(),t.forEach(function(e){e._checkForIntersections()})}),n},a._resetCrossOriginUpdater=function(){n=null,r=null},a.prototype.observe=function(e){if(!this._observationTargets.some(function(t){return t.element==e})){if(!(e&&1==e.nodeType))throw Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:e,entry:null}),this._monitorIntersections(e.ownerDocument),this._checkForIntersections()}},a.prototype.unobserve=function(e){this._observationTargets=this._observationTargets.filter(function(t){return t.element!=e}),this._unmonitorIntersections(e.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},a.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},a.prototype.takeRecords=function(){var e=this._queuedEntries.slice();return this._queuedEntries=[],e},a.prototype._initThresholds=function(e){var t=e||[0];return Array.isArray(t)||(t=[t]),t.sort().filter(function(e,t,n){if("number"!=typeof e||isNaN(e)||e<0||e>1)throw Error("threshold must be a number between 0 and 1 inclusively");return e!==n[t-1]})},a.prototype._parseRootMargin=function(e){var t=(e||"0px").split(/\s+/).map(function(e){var t=/^(-?\d*\.?\d+)(px|%)$/.exec(e);if(!t)throw Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(t[1]),unit:t[2]}});return t[1]=t[1]||t[0],t[2]=t[2]||t[0],t[3]=t[3]||t[1],t},a.prototype._monitorIntersections=function(t){var n=t.defaultView;if(n&&-1==this._monitoringDocuments.indexOf(t)){var r=this._checkForIntersections,i=null,a=null;if(this.POLL_INTERVAL?i=n.setInterval(r,this.POLL_INTERVAL):(c(n,"resize",r,!0),c(t,"scroll",r,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in n&&(a=new n.MutationObserver(r)).observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(t),this._monitoringUnsubscribes.push(function(){var e=t.defaultView;e&&(i&&e.clearInterval(i),u(e,"resize",r,!0)),u(t,"scroll",r,!0),a&&a.disconnect()}),t!=(this.root&&(this.root.ownerDocument||this.root)||e)){var s=o(t);s&&this._monitorIntersections(s.ownerDocument)}}},a.prototype._unmonitorIntersections=function(t){var n=this._monitoringDocuments.indexOf(t);if(-1!=n){var r=this.root&&(this.root.ownerDocument||this.root)||e;if(!this._observationTargets.some(function(e){var n=e.element.ownerDocument;if(n==t)return!0;for(;n&&n!=r;){var i=o(n);if((n=i&&i.ownerDocument)==t)return!0}return!1})){var i=this._monitoringUnsubscribes[n];if(this._monitoringDocuments.splice(n,1),this._monitoringUnsubscribes.splice(n,1),i(),t!=r){var a=o(t);a&&this._unmonitorIntersections(a.ownerDocument)}}}},a.prototype._unmonitorAllIntersections=function(){var e=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var t=0;tt.indexOf(this)&&t.push(this)},a.prototype._unregisterInstance=function(){var e=t.indexOf(this);-1!=e&&t.splice(e,1)},window.IntersectionObserver=a,window.IntersectionObserverEntry=i}function o(e){try{return e.defaultView&&e.defaultView.frameElement||null}catch(e){return null}}function i(e){this.time=e.time,this.target=e.target,this.rootBounds=p(e.rootBounds),this.boundingClientRect=p(e.boundingClientRect),this.intersectionRect=p(e.intersectionRect||h()),this.isIntersecting=!!e.intersectionRect;var t=this.boundingClientRect,n=t.width*t.height,r=this.intersectionRect,o=r.width*r.height;n?this.intersectionRatio=Number((o/n).toFixed(4)):this.intersectionRatio=this.isIntersecting?1:0}function a(e,t){var n=t||{};if("function"!=typeof e)throw Error("callback must be a function");if(n.root&&1!=n.root.nodeType&&9!=n.root.nodeType)throw Error("root must be a Document or Element");this._checkForIntersections=l(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=e,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(n.rootMargin),this.thresholds=this._initThresholds(n.threshold),this.root=n.root||null,this.rootMargin=this._rootMarginValues.map(function(e){return e.value+e.unit}).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function s(){return window.performance&&performance.now&&performance.now()}function l(e,t){var n=null;return function(){n||(n=setTimeout(function(){e(),n=null},t))}}function c(e,t,n,r){"function"==typeof e.addEventListener?e.addEventListener(t,n,r||!1):"function"==typeof e.attachEvent&&e.attachEvent("on"+t,n)}function u(e,t,n,r){"function"==typeof e.removeEventListener?e.removeEventListener(t,n,r||!1):"function"==typeof e.detachEvent&&e.detachEvent("on"+t,n)}function d(e,t){var n=Math.max(e.top,t.top),r=Math.min(e.bottom,t.bottom),o=Math.max(e.left,t.left),i=Math.min(e.right,t.right),a=i-o,s=r-n;return a>=0&&s>=0&&{top:n,bottom:r,left:o,right:i,width:a,height:s}||null}function f(e){var t;try{t=e.getBoundingClientRect()}catch(e){}return t?(t.width&&t.height||(t={top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.right-t.left,height:t.bottom-t.top}),t):h()}function h(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function p(e){return!e||"x"in e?e:{top:e.top,y:e.top,bottom:e.bottom,left:e.left,x:e.left,right:e.right,width:e.width,height:e.height}}function m(e,t){var n=t.top-e.top,r=t.left-e.left;return{top:n,left:r,height:t.height,width:t.width,bottom:n+t.height,right:r+t.width}}function g(e,t){for(var n=t;n;){if(n==e)return!0;n=x(n)}return!1}function x(t){var n=t.parentNode;return 9==t.nodeType&&t!=e?o(t):(n&&n.assignedSlot&&(n=n.assignedSlot.parentNode),n&&11==n.nodeType&&n.host)?n.host:n}function v(e){return e&&9===e.nodeType}}()},53670:function(e){"use strict";var t=function(e,t,n,r,o,i,a,s){if(!e){var l;if(void 0===t)l=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,i,a,s],u=0;(l=Error(t.replace(/%s/g,function(){return c[u++]}))).name="Invariant Violation"}throw l.framesToPop=1,l}};e.exports=t},92895:function(e,t,n){"use strict";var r=n(6097);function o(e){if(Array.isArray(e))return -1!==e.indexOf("ssh")||-1!==e.indexOf("rsync");if("string"!=typeof e)return!1;var t=r(e);if(e=e.substring(e.indexOf("://")+3),o(t))return!0;var n=RegExp(".([a-zA-Z\\d]+):(\\d+)/");return!e.match(n)&&e.indexOf("@"){t(!0)},[]),e}var O=n(13855),S="https://nextra.vercel.app",C=()=>{let{locale:e=O.ZW,asPath:t,route:n}=(0,k.useRouter)();return(0,_.useMemo)(()=>{let r=O.hV.has(n)?n:t,{pathname:o}=new URL(r,S);return(e?o.replace(RegExp(`\\.${e}(\\/|$)`),"$1"):o).replace(/\.html$/,"").replace(/\/index(\/|$)/,"$1").replace(/\/$/,"")||"/"},[t,e,n])},T=n(87088),A=n(74128);!function(e){function t(e){}function n(e){throw Error()}function r(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)}e.assertEqual=e=>e,e.assertIs=t,e.assertNever=n,e.arrayToEnum=e=>{let t={};for(let n of e)t[n]=n;return t},e.getValidEnumValues=t=>{let n=e.objectKeys(t).filter(e=>"number"!=typeof t[t[e]]),r={};for(let e of n)r[e]=t[e];return e.objectValues(r)},e.objectValues=t=>e.objectKeys(t).map(function(e){return t[e]}),e.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},e.find=(e,t)=>{for(let n of e)if(t(n))return n},e.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e,e.joinValues=r,e.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t}(p||(p={})),function(e){e.mergeShapes=(e,t)=>({...e,...t})}(m||(m={}));let R=p.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),N=e=>{switch(typeof e){case"undefined":return R.undefined;case"string":return R.string;case"number":return isNaN(e)?R.nan:R.number;case"boolean":return R.boolean;case"function":return R.function;case"bigint":return R.bigint;case"symbol":return R.symbol;case"object":if(Array.isArray(e))return R.array;if(null===e)return R.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return R.promise;if("undefined"!=typeof Map&&e instanceof Map)return R.map;if("undefined"!=typeof Set&&e instanceof Set)return R.set;if("undefined"!=typeof Date&&e instanceof Date)return R.date;return R.object;default:return R.unknown}},I=p.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),M=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class L extends Error{constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){let t=e||function(e){return e.message},n={_errors:[]},r=e=>{for(let o of e.issues)if("invalid_union"===o.code)o.unionErrors.map(r);else if("invalid_return_type"===o.code)r(o.returnTypeError);else if("invalid_arguments"===o.code)r(o.argumentsError);else if(0===o.path.length)n._errors.push(t(o));else{let e=n,r=0;for(;re.message){let t={},n=[];for(let r of this.issues)r.path.length>0?(t[r.path[0]]=t[r.path[0]]||[],t[r.path[0]].push(e(r))):n.push(e(r));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}}L.create=e=>new L(e);let Z=(e,t)=>{let n;switch(e.code){case I.invalid_type:n=e.received===R.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case I.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,p.jsonStringifyReplacer)}`;break;case I.unrecognized_keys:n=`Unrecognized key(s) in object: ${p.joinValues(e.keys,", ")}`;break;case I.invalid_union:n="Invalid input";break;case I.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${p.joinValues(e.options)}`;break;case I.invalid_enum_value:n=`Invalid enum value. Expected ${p.joinValues(e.options)}, received '${e.received}'`;break;case I.invalid_arguments:n="Invalid function arguments";break;case I.invalid_return_type:n="Invalid function return type";break;case I.invalid_date:n="Invalid date";break;case I.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:p.assertNever(e.validation):n="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case I.too_small:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case I.too_big:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case I.custom:n="Invalid input";break;case I.invalid_intersection_types:n="Intersection results could not be merged";break;case I.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case I.not_finite:n="Number must be finite";break;default:n=t.defaultError,p.assertNever(e)}return{message:n}},P=Z;function D(e){P=e}function z(){return P}let F=e=>{let{data:t,path:n,errorMaps:r,issueData:o}=e,i=[...n,...o.path||[]],a={...o,path:i},s="";for(let e of r.filter(e=>!!e).slice().reverse())s=e(a,{data:t,defaultError:s}).message;return{...o,path:i,message:o.message||s}},H=[];function B(e,t){let n=F({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,z(),Z].filter(e=>!!e)});e.common.issues.push(n)}class W{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let n=[];for(let r of t){if("aborted"===r.status)return $;"dirty"===r.status&&e.dirty(),n.push(r.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,t){let n=[];for(let e of t)n.push({key:await e.key,value:await e.value});return W.mergeObjectSync(e,n)}static mergeObjectSync(e,t){let n={};for(let r of t){let{key:t,value:o}=r;if("aborted"===t.status||"aborted"===o.status)return $;"dirty"===t.status&&e.dirty(),"dirty"===o.status&&e.dirty(),"__proto__"!==t.value&&(void 0!==o.value||r.alwaysSet)&&(n[t.value]=o.value)}return{status:e.value,value:n}}}let $=Object.freeze({status:"aborted"}),G=e=>({status:"dirty",value:e}),U=e=>({status:"valid",value:e}),V=e=>"aborted"===e.status,q=e=>"dirty"===e.status,X=e=>"valid"===e.status,K=e=>"undefined"!=typeof Promise&&e instanceof Promise;!function(e){e.errToObj=e=>"string"==typeof e?{message:e}:e||{},e.toString=e=>"string"==typeof e?e:null==e?void 0:e.message}(g||(g={}));class Q{constructor(e,t,n,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=r}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}let Y=(e,t)=>{if(X(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let t=new L(e.common.issues);return this._error=t,this._error}}};function J(e){if(!e)return{};let{errorMap:t,invalid_type_error:n,required_error:r,description:o}=e;if(t&&(n||r))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:o}:{errorMap:(e,t)=>"invalid_type"!==e.code?{message:t.defaultError}:void 0===t.data?{message:null!=r?r:t.defaultError}:{message:null!=n?n:t.defaultError},description:o}}class ee{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return N(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:N(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new W,ctx:{common:e.parent.common,data:e.data,parsedType:N(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(K(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){return Promise.resolve(this._parse(e))}parse(e,t){let n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){var n;let r={common:{issues:[],async:null!==(n=null==t?void 0:t.async)&&void 0!==n&&n,contextualErrorMap:null==t?void 0:t.errorMap},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:N(e)},o=this._parseSync({data:e,path:r.path,parent:r});return Y(r,o)}async parseAsync(e,t){let n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){let n={common:{issues:[],contextualErrorMap:null==t?void 0:t.errorMap,async:!0},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:N(e)},r=this._parse({data:e,path:n.path,parent:n});return Y(n,await (K(r)?r:Promise.resolve(r)))}refine(e,t){let n=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement((t,r)=>{let o=e(t),i=()=>r.addIssue({code:I.custom,...n(t)});return"undefined"!=typeof Promise&&o instanceof Promise?o.then(e=>!!e||(i(),!1)):!!o||(i(),!1)})}refinement(e,t){return this._refinement((n,r)=>!!e(n)||(r.addIssue("function"==typeof t?t(n,r):t),!1))}_refinement(e){return new eW({schema:this,typeName:x.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return e$.create(this,this._def)}nullable(){return eG.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return ej.create(this,this._def)}promise(){return eB.create(this,this._def)}or(e){return eS.create([this,e],this._def)}and(e){return eR.create(this,e,this._def)}transform(e){return new eW({...J(this._def),schema:this,typeName:x.ZodEffects,effect:{type:"transform",transform:e}})}default(e){let t="function"==typeof e?e:()=>e;return new eU({...J(this._def),innerType:this,defaultValue:t,typeName:x.ZodDefault})}brand(){return new eK({typeName:x.ZodBranded,type:this,...J(this._def)})}catch(e){let t="function"==typeof e?e:()=>e;return new eV({...J(this._def),innerType:this,catchValue:t,typeName:x.ZodCatch})}describe(e){return new this.constructor({...this._def,description:e})}pipe(e){return eQ.create(this,e)}readonly(){return eY.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let et=/^c[^\s-]{8,}$/i,en=/^[a-z][a-z0-9]*$/,er=/^[0-9A-HJKMNP-TV-Z]{26}$/,eo=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,ei=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,ea="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",es=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,el=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,ec=e=>e.precision?e.offset?RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}Z$`):0===e.precision?e.offset?RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):e.offset?RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");function eu(e,t){return!!(("v4"===t||!t)&&es.test(e)||("v6"===t||!t)&&el.test(e))}class ed extends ee{_parse(e){let t;if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==R.string){let t=this._getOrReturnCtx(e);return B(t,{code:I.invalid_type,expected:R.string,received:t.parsedType}),$}let n=new W;for(let o of this._def.checks)if("min"===o.kind)e.data.lengtho.value&&(B(t=this._getOrReturnCtx(e,t),{code:I.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),n.dirty());else if("length"===o.kind){let r=e.data.length>o.value,i=e.data.lengthe.test(t),{validation:t,code:I.invalid_string,...g.errToObj(n)})}_addCheck(e){return new ed({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...g.errToObj(e)})}url(e){return this._addCheck({kind:"url",...g.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...g.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...g.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...g.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...g.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...g.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...g.errToObj(e)})}datetime(e){var t;return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,offset:null!==(t=null==e?void 0:e.offset)&&void 0!==t&&t,...g.errToObj(null==e?void 0:e.message)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...g.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:null==t?void 0:t.position,...g.errToObj(null==t?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...g.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...g.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...g.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...g.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...g.errToObj(t)})}nonempty(e){return this.min(1,g.errToObj(e))}trim(){return new ed({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new ed({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new ed({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get minLength(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.valuer?n:r;return parseInt(e.toFixed(o).replace(".",""))%parseInt(t.toFixed(o).replace(".",""))/Math.pow(10,o)}ed.create=e=>{var t;return new ed({checks:[],typeName:x.ZodString,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...J(e)})};class eh extends ee{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){let t;if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==R.number){let t=this._getOrReturnCtx(e);return B(t,{code:I.invalid_type,expected:R.number,received:t.parsedType}),$}let n=new W;for(let r of this._def.checks)"int"===r.kind?p.isInteger(e.data)||(B(t=this._getOrReturnCtx(e,t),{code:I.invalid_type,expected:"integer",received:"float",message:r.message}),n.dirty()):"min"===r.kind?(r.inclusive?e.datar.value:e.data>=r.value)&&(B(t=this._getOrReturnCtx(e,t),{code:I.too_big,maximum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty()):"multipleOf"===r.kind?0!==ef(e.data,r.value)&&(B(t=this._getOrReturnCtx(e,t),{code:I.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):"finite"===r.kind?Number.isFinite(e.data)||(B(t=this._getOrReturnCtx(e,t),{code:I.not_finite,message:r.message}),n.dirty()):p.assertNever(r);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,g.toString(t))}gt(e,t){return this.setLimit("min",e,!1,g.toString(t))}lte(e,t){return this.setLimit("max",e,!0,g.toString(t))}lt(e,t){return this.setLimit("max",e,!1,g.toString(t))}setLimit(e,t,n,r){return new eh({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:g.toString(r)}]})}_addCheck(e){return new eh({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:g.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:g.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:g.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:g.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:g.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:g.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:g.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:g.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:g.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value"int"===e.kind||"multipleOf"===e.kind&&p.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let n of this._def.checks){if("finite"===n.kind||"int"===n.kind||"multipleOf"===n.kind)return!0;"min"===n.kind?(null===t||n.value>t)&&(t=n.value):"max"===n.kind&&(null===e||n.valuenew eh({checks:[],typeName:x.ZodNumber,coerce:(null==e?void 0:e.coerce)||!1,...J(e)});class ep extends ee{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){let t;if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==R.bigint){let t=this._getOrReturnCtx(e);return B(t,{code:I.invalid_type,expected:R.bigint,received:t.parsedType}),$}let n=new W;for(let r of this._def.checks)"min"===r.kind?(r.inclusive?e.datar.value:e.data>=r.value)&&(B(t=this._getOrReturnCtx(e,t),{code:I.too_big,type:"bigint",maximum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty()):"multipleOf"===r.kind?e.data%r.value!==BigInt(0)&&(B(t=this._getOrReturnCtx(e,t),{code:I.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):p.assertNever(r);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,g.toString(t))}gt(e,t){return this.setLimit("min",e,!1,g.toString(t))}lte(e,t){return this.setLimit("max",e,!0,g.toString(t))}lt(e,t){return this.setLimit("max",e,!1,g.toString(t))}setLimit(e,t,n,r){return new ep({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:g.toString(r)}]})}_addCheck(e){return new ep({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:g.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:g.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:g.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:g.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:g.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value{var t;return new ep({checks:[],typeName:x.ZodBigInt,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...J(e)})};class em extends ee{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==R.boolean){let t=this._getOrReturnCtx(e);return B(t,{code:I.invalid_type,expected:R.boolean,received:t.parsedType}),$}return U(e.data)}}em.create=e=>new em({typeName:x.ZodBoolean,coerce:(null==e?void 0:e.coerce)||!1,...J(e)});class eg extends ee{_parse(e){let t;if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==R.date){let t=this._getOrReturnCtx(e);return B(t,{code:I.invalid_type,expected:R.date,received:t.parsedType}),$}if(isNaN(e.data.getTime()))return B(this._getOrReturnCtx(e),{code:I.invalid_date}),$;let n=new W;for(let r of this._def.checks)"min"===r.kind?e.data.getTime()r.value&&(B(t=this._getOrReturnCtx(e,t),{code:I.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:"date"}),n.dirty()):p.assertNever(r);return{status:n.value,value:new Date(e.data.getTime())}}_addCheck(e){return new eg({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:g.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:g.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.valuenew eg({checks:[],coerce:(null==e?void 0:e.coerce)||!1,typeName:x.ZodDate,...J(e)});class ex extends ee{_parse(e){if(this._getType(e)!==R.symbol){let t=this._getOrReturnCtx(e);return B(t,{code:I.invalid_type,expected:R.symbol,received:t.parsedType}),$}return U(e.data)}}ex.create=e=>new ex({typeName:x.ZodSymbol,...J(e)});class ev extends ee{_parse(e){if(this._getType(e)!==R.undefined){let t=this._getOrReturnCtx(e);return B(t,{code:I.invalid_type,expected:R.undefined,received:t.parsedType}),$}return U(e.data)}}ev.create=e=>new ev({typeName:x.ZodUndefined,...J(e)});class ey extends ee{_parse(e){if(this._getType(e)!==R.null){let t=this._getOrReturnCtx(e);return B(t,{code:I.invalid_type,expected:R.null,received:t.parsedType}),$}return U(e.data)}}ey.create=e=>new ey({typeName:x.ZodNull,...J(e)});class eb extends ee{constructor(){super(...arguments),this._any=!0}_parse(e){return U(e.data)}}eb.create=e=>new eb({typeName:x.ZodAny,...J(e)});class ew extends ee{constructor(){super(...arguments),this._unknown=!0}_parse(e){return U(e.data)}}ew.create=e=>new ew({typeName:x.ZodUnknown,...J(e)});class ek extends ee{_parse(e){let t=this._getOrReturnCtx(e);return B(t,{code:I.invalid_type,expected:R.never,received:t.parsedType}),$}}ek.create=e=>new ek({typeName:x.ZodNever,...J(e)});class e_ extends ee{_parse(e){if(this._getType(e)!==R.undefined){let t=this._getOrReturnCtx(e);return B(t,{code:I.invalid_type,expected:R.void,received:t.parsedType}),$}return U(e.data)}}e_.create=e=>new e_({typeName:x.ZodVoid,...J(e)});class ej extends ee{_parse(e){let{ctx:t,status:n}=this._processInputParams(e),r=this._def;if(t.parsedType!==R.array)return B(t,{code:I.invalid_type,expected:R.array,received:t.parsedType}),$;if(null!==r.exactLength){let e=t.data.length>r.exactLength.value,o=t.data.lengthr.maxLength.value&&(B(t,{code:I.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map((e,n)=>r.type._parseAsync(new Q(t,e,t.path,n)))).then(e=>W.mergeArray(n,e));let o=[...t.data].map((e,n)=>r.type._parseSync(new Q(t,e,t.path,n)));return W.mergeArray(n,o)}get element(){return this._def.type}min(e,t){return new ej({...this._def,minLength:{value:e,message:g.toString(t)}})}max(e,t){return new ej({...this._def,maxLength:{value:e,message:g.toString(t)}})}length(e,t){return new ej({...this._def,exactLength:{value:e,message:g.toString(t)}})}nonempty(e){return this.min(1,e)}}function eE(e){if(e instanceof eO){let t={};for(let n in e.shape){let r=e.shape[n];t[n]=e$.create(eE(r))}return new eO({...e._def,shape:()=>t})}return e instanceof ej?new ej({...e._def,type:eE(e.element)}):e instanceof e$?e$.create(eE(e.unwrap())):e instanceof eG?eG.create(eE(e.unwrap())):e instanceof eN?eN.create(e.items.map(e=>eE(e))):e}ej.create=(e,t)=>new ej({type:e,minLength:null,maxLength:null,exactLength:null,typeName:x.ZodArray,...J(t)});class eO extends ee{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let e=this._def.shape(),t=p.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==R.object){let t=this._getOrReturnCtx(e);return B(t,{code:I.invalid_type,expected:R.object,received:t.parsedType}),$}let{status:t,ctx:n}=this._processInputParams(e),{shape:r,keys:o}=this._getCached(),i=[];if(!(this._def.catchall instanceof ek&&"strip"===this._def.unknownKeys))for(let e in n.data)o.includes(e)||i.push(e);let a=[];for(let e of o){let t=r[e],o=n.data[e];a.push({key:{status:"valid",value:e},value:t._parse(new Q(n,o,n.path,e)),alwaysSet:e in n.data})}if(this._def.catchall instanceof ek){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of i)a.push({key:{status:"valid",value:e},value:{status:"valid",value:n.data[e]}});else if("strict"===e)i.length>0&&(B(n,{code:I.unrecognized_keys,keys:i}),t.dirty());else if("strip"===e);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let e=this._def.catchall;for(let t of i){let r=n.data[t];a.push({key:{status:"valid",value:t},value:e._parse(new Q(n,r,n.path,t)),alwaysSet:t in n.data})}}return n.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of a){let n=await t.key;e.push({key:n,value:await t.value,alwaysSet:t.alwaysSet})}return e}).then(e=>W.mergeObjectSync(t,e)):W.mergeObjectSync(t,a)}get shape(){return this._def.shape()}strict(e){return g.errToObj,new eO({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,n)=>{var r,o,i,a;let s=null!==(i=null===(o=(r=this._def).errorMap)||void 0===o?void 0:o.call(r,t,n).message)&&void 0!==i?i:n.defaultError;return"unrecognized_keys"===t.code?{message:null!==(a=g.errToObj(e).message)&&void 0!==a?a:s}:{message:s}}}:{}})}strip(){return new eO({...this._def,unknownKeys:"strip"})}passthrough(){return new eO({...this._def,unknownKeys:"passthrough"})}extend(e){return new eO({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new eO({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:x.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new eO({...this._def,catchall:e})}pick(e){let t={};return p.objectKeys(e).forEach(n=>{e[n]&&this.shape[n]&&(t[n]=this.shape[n])}),new eO({...this._def,shape:()=>t})}omit(e){let t={};return p.objectKeys(this.shape).forEach(n=>{e[n]||(t[n]=this.shape[n])}),new eO({...this._def,shape:()=>t})}deepPartial(){return eE(this)}partial(e){let t={};return p.objectKeys(this.shape).forEach(n=>{let r=this.shape[n];e&&!e[n]?t[n]=r:t[n]=r.optional()}),new eO({...this._def,shape:()=>t})}required(e){let t={};return p.objectKeys(this.shape).forEach(n=>{if(e&&!e[n])t[n]=this.shape[n];else{let e=this.shape[n];for(;e instanceof e$;)e=e._def.innerType;t[n]=e}}),new eO({...this._def,shape:()=>t})}keyof(){return ez(p.objectKeys(this.shape))}}eO.create=(e,t)=>new eO({shape:()=>e,unknownKeys:"strip",catchall:ek.create(),typeName:x.ZodObject,...J(t)}),eO.strictCreate=(e,t)=>new eO({shape:()=>e,unknownKeys:"strict",catchall:ek.create(),typeName:x.ZodObject,...J(t)}),eO.lazycreate=(e,t)=>new eO({shape:e,unknownKeys:"strip",catchall:ek.create(),typeName:x.ZodObject,...J(t)});class eS extends ee{_parse(e){let{ctx:t}=this._processInputParams(e),n=this._def.options;function r(e){for(let t of e)if("valid"===t.result.status)return t.result;for(let n of e)if("dirty"===n.result.status)return t.common.issues.push(...n.ctx.common.issues),n.result;let n=e.map(e=>new L(e.ctx.common.issues));return B(t,{code:I.invalid_union,unionErrors:n}),$}if(t.common.async)return Promise.all(n.map(async e=>{let n={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}})).then(r);{let e;let r=[];for(let o of n){let n={...t,common:{...t.common,issues:[]},parent:null},i=o._parseSync({data:t.data,path:t.path,parent:n});if("valid"===i.status)return i;"dirty"!==i.status||e||(e={result:i,ctx:n}),n.common.issues.length&&r.push(n.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let o=r.map(e=>new L(e));return B(t,{code:I.invalid_union,unionErrors:o}),$}}get options(){return this._def.options}}eS.create=(e,t)=>new eS({options:e,typeName:x.ZodUnion,...J(t)});let eC=e=>{if(e instanceof eP)return eC(e.schema);if(e instanceof eW)return eC(e.innerType());if(e instanceof eD)return[e.value];if(e instanceof eF)return e.options;if(e instanceof eH)return Object.keys(e.enum);if(e instanceof eU)return eC(e._def.innerType);if(e instanceof ev)return[void 0];else if(e instanceof ey)return[null];else return null};class eT extends ee{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==R.object)return B(t,{code:I.invalid_type,expected:R.object,received:t.parsedType}),$;let n=this.discriminator,r=t.data[n],o=this.optionsMap.get(r);return o?t.common.async?o._parseAsync({data:t.data,path:t.path,parent:t}):o._parseSync({data:t.data,path:t.path,parent:t}):(B(t,{code:I.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),$)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,n){let r=new Map;for(let n of t){let t=eC(n.shape[e]);if(!t)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let o of t){if(r.has(o))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(o)}`);r.set(o,n)}}return new eT({typeName:x.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:r,...J(n)})}}function eA(e,t){let n=N(e),r=N(t);if(e===t)return{valid:!0,data:e};if(n===R.object&&r===R.object){let n=p.objectKeys(t),r=p.objectKeys(e).filter(e=>-1!==n.indexOf(e)),o={...e,...t};for(let n of r){let r=eA(e[n],t[n]);if(!r.valid)return{valid:!1};o[n]=r.data}return{valid:!0,data:o}}if(n===R.array&&r===R.array){if(e.length!==t.length)return{valid:!1};let n=[];for(let r=0;r{if(V(e)||V(r))return $;let o=eA(e.value,r.value);return o.valid?((q(e)||q(r))&&t.dirty(),{status:t.value,value:o.data}):(B(n,{code:I.invalid_intersection_types}),$)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([e,t])=>r(e,t)):r(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}eR.create=(e,t,n)=>new eR({left:e,right:t,typeName:x.ZodIntersection,...J(n)});class eN extends ee{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==R.array)return B(n,{code:I.invalid_type,expected:R.array,received:n.parsedType}),$;if(n.data.lengththis._def.items.length&&(B(n,{code:I.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let r=[...n.data].map((e,t)=>{let r=this._def.items[t]||this._def.rest;return r?r._parse(new Q(n,e,n.path,t)):null}).filter(e=>!!e);return n.common.async?Promise.all(r).then(e=>W.mergeArray(t,e)):W.mergeArray(t,r)}get items(){return this._def.items}rest(e){return new eN({...this._def,rest:e})}}eN.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new eN({items:e,typeName:x.ZodTuple,rest:null,...J(t)})};class eI extends ee{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==R.object)return B(n,{code:I.invalid_type,expected:R.object,received:n.parsedType}),$;let r=[],o=this._def.keyType,i=this._def.valueType;for(let e in n.data)r.push({key:o._parse(new Q(n,e,n.path,e)),value:i._parse(new Q(n,n.data[e],n.path,e))});return n.common.async?W.mergeObjectAsync(t,r):W.mergeObjectSync(t,r)}get element(){return this._def.valueType}static create(e,t,n){return new eI(t instanceof ee?{keyType:e,valueType:t,typeName:x.ZodRecord,...J(n)}:{keyType:ed.create(),valueType:e,typeName:x.ZodRecord,...J(t)})}}class eM extends ee{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==R.map)return B(n,{code:I.invalid_type,expected:R.map,received:n.parsedType}),$;let r=this._def.keyType,o=this._def.valueType,i=[...n.data.entries()].map(([e,t],i)=>({key:r._parse(new Q(n,e,n.path,[i,"key"])),value:o._parse(new Q(n,t,n.path,[i,"value"]))}));if(n.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let n of i){let r=await n.key,o=await n.value;if("aborted"===r.status||"aborted"===o.status)return $;("dirty"===r.status||"dirty"===o.status)&&t.dirty(),e.set(r.value,o.value)}return{status:t.value,value:e}})}{let e=new Map;for(let n of i){let r=n.key,o=n.value;if("aborted"===r.status||"aborted"===o.status)return $;("dirty"===r.status||"dirty"===o.status)&&t.dirty(),e.set(r.value,o.value)}return{status:t.value,value:e}}}}eM.create=(e,t,n)=>new eM({valueType:t,keyType:e,typeName:x.ZodMap,...J(n)});class eL extends ee{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==R.set)return B(n,{code:I.invalid_type,expected:R.set,received:n.parsedType}),$;let r=this._def;null!==r.minSize&&n.data.sizer.maxSize.value&&(B(n,{code:I.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),t.dirty());let o=this._def.valueType;function i(e){let n=new Set;for(let r of e){if("aborted"===r.status)return $;"dirty"===r.status&&t.dirty(),n.add(r.value)}return{status:t.value,value:n}}let a=[...n.data.values()].map((e,t)=>o._parse(new Q(n,e,n.path,t)));return n.common.async?Promise.all(a).then(e=>i(e)):i(a)}min(e,t){return new eL({...this._def,minSize:{value:e,message:g.toString(t)}})}max(e,t){return new eL({...this._def,maxSize:{value:e,message:g.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}eL.create=(e,t)=>new eL({valueType:e,minSize:null,maxSize:null,typeName:x.ZodSet,...J(t)});class eZ extends ee{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==R.function)return B(t,{code:I.invalid_type,expected:R.function,received:t.parsedType}),$;function n(e,n){return F({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,z(),Z].filter(e=>!!e),issueData:{code:I.invalid_arguments,argumentsError:n}})}function r(e,n){return F({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,z(),Z].filter(e=>!!e),issueData:{code:I.invalid_return_type,returnTypeError:n}})}let o={errorMap:t.common.contextualErrorMap},i=t.data;if(this._def.returns instanceof eB){let e=this;return U(async function(...t){let a=new L([]),s=await e._def.args.parseAsync(t,o).catch(e=>{throw a.addIssue(n(t,e)),a}),l=await Reflect.apply(i,this,s);return await e._def.returns._def.type.parseAsync(l,o).catch(e=>{throw a.addIssue(r(l,e)),a})})}{let e=this;return U(function(...t){let a=e._def.args.safeParse(t,o);if(!a.success)throw new L([n(t,a.error)]);let s=Reflect.apply(i,this,a.data),l=e._def.returns.safeParse(s,o);if(!l.success)throw new L([r(s,l.error)]);return l.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new eZ({...this._def,args:eN.create(e).rest(ew.create())})}returns(e){return new eZ({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,n){return new eZ({args:e||eN.create([]).rest(ew.create()),returns:t||ew.create(),typeName:x.ZodFunction,...J(n)})}}class eP extends ee{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}eP.create=(e,t)=>new eP({getter:e,typeName:x.ZodLazy,...J(t)});class eD extends ee{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return B(t,{received:t.data,code:I.invalid_literal,expected:this._def.value}),$}return{status:"valid",value:e.data}}get value(){return this._def.value}}function ez(e,t){return new eF({values:e,typeName:x.ZodEnum,...J(t)})}eD.create=(e,t)=>new eD({value:e,typeName:x.ZodLiteral,...J(t)});class eF extends ee{_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),n=this._def.values;return B(t,{expected:p.joinValues(n),received:t.parsedType,code:I.invalid_type}),$}if(-1===this._def.values.indexOf(e.data)){let t=this._getOrReturnCtx(e),n=this._def.values;return B(t,{received:t.data,code:I.invalid_enum_value,options:n}),$}return U(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e){return eF.create(e)}exclude(e){return eF.create(this.options.filter(t=>!e.includes(t)))}}eF.create=ez;class eH extends ee{_parse(e){let t=p.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==R.string&&n.parsedType!==R.number){let e=p.objectValues(t);return B(n,{expected:p.joinValues(e),received:n.parsedType,code:I.invalid_type}),$}if(-1===t.indexOf(e.data)){let e=p.objectValues(t);return B(n,{received:n.data,code:I.invalid_enum_value,options:e}),$}return U(e.data)}get enum(){return this._def.values}}eH.create=(e,t)=>new eH({values:e,typeName:x.ZodNativeEnum,...J(t)});class eB extends ee{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);return t.parsedType!==R.promise&&!1===t.common.async?(B(t,{code:I.invalid_type,expected:R.promise,received:t.parsedType}),$):U((t.parsedType===R.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}eB.create=(e,t)=>new eB({type:e,typeName:x.ZodPromise,...J(t)});class eW extends ee{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===x.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:n}=this._processInputParams(e),r=this._def.effect||null,o={addIssue:e=>{B(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(o.addIssue=o.addIssue.bind(o),"preprocess"===r.type){let e=r.transform(n.data,o);return n.common.issues.length?{status:"dirty",value:n.data}:n.common.async?Promise.resolve(e).then(e=>this._def.schema._parseAsync({data:e,path:n.path,parent:n})):this._def.schema._parseSync({data:e,path:n.path,parent:n})}if("refinement"===r.type){let e=e=>{let t=r.refinement(e,o);if(n.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1!==n.common.async)return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(n=>"aborted"===n.status?$:("dirty"===n.status&&t.dirty(),e(n.value).then(()=>({status:t.value,value:n.value}))));{let r=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===r.status?$:("dirty"===r.status&&t.dirty(),e(r.value),{status:t.value,value:r.value})}}if("transform"===r.type){if(!1!==n.common.async)return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(e=>X(e)?Promise.resolve(r.transform(e.value,o)).then(e=>({status:t.value,value:e})):e);{let e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!X(e))return e;let i=r.transform(e.value,o);if(i instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:i}}}p.assertNever(r)}}eW.create=(e,t,n)=>new eW({schema:e,typeName:x.ZodEffects,effect:t,...J(n)}),eW.createWithPreprocess=(e,t,n)=>new eW({schema:t,effect:{type:"preprocess",transform:e},typeName:x.ZodEffects,...J(n)});class e$ extends ee{_parse(e){return this._getType(e)===R.undefined?U(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}e$.create=(e,t)=>new e$({innerType:e,typeName:x.ZodOptional,...J(t)});class eG extends ee{_parse(e){return this._getType(e)===R.null?U(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}eG.create=(e,t)=>new eG({innerType:e,typeName:x.ZodNullable,...J(t)});class eU extends ee{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return t.parsedType===R.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}eU.create=(e,t)=>new eU({innerType:e,typeName:x.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...J(t)});class eV extends ee{_parse(e){let{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},r=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return K(r)?r.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new L(n.common.issues)},input:n.data})})):{status:"valid",value:"valid"===r.status?r.value:this._def.catchValue({get error(){return new L(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}eV.create=(e,t)=>new eV({innerType:e,typeName:x.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...J(t)});class eq extends ee{_parse(e){if(this._getType(e)!==R.nan){let t=this._getOrReturnCtx(e);return B(t,{code:I.invalid_type,expected:R.nan,received:t.parsedType}),$}return{status:"valid",value:e.data}}}eq.create=e=>new eq({typeName:x.ZodNaN,...J(e)});let eX=Symbol("zod_brand");class eK extends ee{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}}class eQ extends ee{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?$:"dirty"===e.status?(t.dirty(),G(e.value)):this._def.out._parseAsync({data:e.value,path:n.path,parent:n})})();{let e=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?$:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:n.path,parent:n})}}static create(e,t){return new eQ({in:e,out:t,typeName:x.ZodPipeline})}}class eY extends ee{_parse(e){let t=this._def.innerType._parse(e);return X(t)&&(t.value=Object.freeze(t.value)),t}}eY.create=(e,t)=>new eY({innerType:e,typeName:x.ZodReadonly,...J(t)});let eJ=(e,t={},n)=>e?eb.create().superRefine((r,o)=>{var i,a;if(!e(r)){let e="function"==typeof t?t(r):"string"==typeof t?{message:t}:t,s=null===(a=null!==(i=e.fatal)&&void 0!==i?i:n)||void 0===a||a,l="string"==typeof e?{message:e}:e;o.addIssue({code:"custom",...l,fatal:s})}}):eb.create(),e0={object:eO.lazycreate};!function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"}(x||(x={}));let e1=(e,t={message:`Input not instance of ${e.name}`})=>eJ(t=>t instanceof e,t),e2=ed.create,e5=eh.create,e4=eq.create,e6=ep.create,e3=em.create,e9=eg.create,e8=ex.create,e7=ev.create,te=ey.create,tt=eb.create,tn=ew.create,tr=ek.create,to=e_.create,ti=ej.create,ta=eO.create,ts=eO.strictCreate,tl=eS.create,tc=eT.create,tu=eR.create,td=eN.create,tf=eI.create,th=eM.create,tp=eL.create,tm=eZ.create,tg=eP.create,tx=eD.create,tv=eF.create,ty=eH.create,tb=eB.create,tw=eW.create,tk=e$.create,t_=eG.create,tj=eW.createWithPreprocess,tE=eQ.create,tO=()=>e5().optional(),tS=()=>e3().optional(),tC={string:e=>ed.create({...e,coerce:!0}),number:e=>eh.create({...e,coerce:!0}),boolean:e=>em.create({...e,coerce:!0}),bigint:e=>ep.create({...e,coerce:!0}),date:e=>eg.create({...e,coerce:!0})},tT=$;var tA=Object.freeze({__proto__:null,defaultErrorMap:Z,setErrorMap:D,getErrorMap:z,makeIssue:F,EMPTY_PATH:H,addIssueToContext:B,ParseStatus:W,INVALID:$,DIRTY:G,OK:U,isAborted:V,isDirty:q,isValid:X,isAsync:K,get util(){return p},get objectUtil(){return m},ZodParsedType:R,getParsedType:N,ZodType:ee,ZodString:ed,ZodNumber:eh,ZodBigInt:ep,ZodBoolean:em,ZodDate:eg,ZodSymbol:ex,ZodUndefined:ev,ZodNull:ey,ZodAny:eb,ZodUnknown:ew,ZodNever:ek,ZodVoid:e_,ZodArray:ej,ZodObject:eO,ZodUnion:eS,ZodDiscriminatedUnion:eT,ZodIntersection:eR,ZodTuple:eN,ZodRecord:eI,ZodMap:eM,ZodSet:eL,ZodFunction:eZ,ZodLazy:eP,ZodLiteral:eD,ZodEnum:eF,ZodNativeEnum:eH,ZodPromise:eB,ZodEffects:eW,ZodTransformer:eW,ZodOptional:e$,ZodNullable:eG,ZodDefault:eU,ZodCatch:eV,ZodNaN:eq,BRAND:eX,ZodBranded:eK,ZodPipeline:eQ,ZodReadonly:eY,custom:eJ,Schema:ee,ZodSchema:ee,late:e0,get ZodFirstPartyTypeKind(){return x},coerce:tC,any:tt,array:ti,bigint:e6,boolean:e3,date:e9,discriminatedUnion:tc,effect:tw,enum:tv,function:tm,instanceof:e1,intersection:tu,lazy:tg,literal:tx,map:th,nan:e4,nativeEnum:ty,never:tr,null:te,nullable:t_,number:e5,object:ta,oboolean:tS,onumber:tO,optional:tk,ostring:()=>e2().optional(),pipeline:tE,preprocess:tj,promise:tb,record:tf,set:tp,strictObject:ts,string:e2,symbol:e8,transformer:tw,tuple:td,undefined:e7,union:tl,unknown:tn,void:to,NEVER:tT,ZodIssueCode:I,quotelessJson:M,ZodError:L}),tR=n(31992),tN=n.n(tR),tI={i8:"14.1.0"};n(15983);let tM=["light","dark"],tL="(prefers-color-scheme: dark)",tZ="undefined"==typeof window,tP=(0,_.createContext)(void 0),tD={setTheme:e=>{},themes:[]},tz=()=>{var e;return null!==(e=(0,_.useContext)(tP))&&void 0!==e?e:tD},tF=e=>(0,_.useContext)(tP)?_.createElement(_.Fragment,null,e.children):_.createElement(tB,e),tH=["light","dark"],tB=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:n=!0,enableColorScheme:r=!0,storageKey:o="theme",themes:i=tH,defaultTheme:a=n?"system":"light",attribute:s="data-theme",value:l,children:c,nonce:u})=>{let[d,f]=(0,_.useState)(()=>t$(o,a)),[h,p]=(0,_.useState)(()=>t$(o)),m=l?Object.values(l):i,g=(0,_.useCallback)(e=>{let o=e;if(!o)return;"system"===e&&n&&(o=tU());let i=l?l[o]:o,c=t?tG():null,u=document.documentElement;if("class"===s?(u.classList.remove(...m),i&&u.classList.add(i)):i?u.setAttribute(s,i):u.removeAttribute(s),r){let e=tM.includes(a)?a:null,t=tM.includes(o)?o:e;u.style.colorScheme=t}null==c||c()},[]),x=(0,_.useCallback)(e=>{f(e);try{localStorage.setItem(o,e)}catch(e){}},[e]),v=(0,_.useCallback)(t=>{p(tU(t)),"system"===d&&n&&!e&&g("system")},[d,e]);(0,_.useEffect)(()=>{let e=window.matchMedia(tL);return e.addListener(v),v(e),()=>e.removeListener(v)},[v]),(0,_.useEffect)(()=>{let e=e=>{e.key===o&&x(e.newValue||a)};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[x]),(0,_.useEffect)(()=>{g(null!=e?e:d)},[e,d]);let y=(0,_.useMemo)(()=>({theme:d,setTheme:x,forcedTheme:e,resolvedTheme:"system"===d?h:d,themes:n?[...i,"system"]:i,systemTheme:n?h:void 0}),[d,x,e,h,n,i]);return _.createElement(tP.Provider,{value:y},_.createElement(tW,{forcedTheme:e,disableTransitionOnChange:t,enableSystem:n,enableColorScheme:r,storageKey:o,themes:i,defaultTheme:a,attribute:s,value:l,children:c,attrs:m,nonce:u}),c)},tW=(0,_.memo)(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:o,defaultTheme:i,value:a,attrs:s,nonce:l})=>{let c="system"===i,u="class"===n?`var d=document.documentElement,c=d.classList;c.remove(${s.map(e=>`'${e}'`).join(",")});`:`var d=document.documentElement,n='${n}',s='setAttribute';`,d=o?tM.includes(i)&&i?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${i}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",f=(e,t=!1,r=!0)=>{let i=a?a[e]:e,s=t?e+"|| ''":`'${i}'`,l="";return o&&r&&!t&&tM.includes(e)&&(l+=`d.style.colorScheme = '${e}';`),"class"===n?l+=t||i?`c.add(${s})`:"null":i&&(l+=`d[s](n,${s})`),l},h=e?`!function(){${u}${f(e)}}()`:r?`!function(){try{${u}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${c})){var t='${tL}',m=window.matchMedia(t);if(m.media!==t||m.matches){${f("dark")}}else{${f("light")}}}else if(e){${a?`var x=${JSON.stringify(a)};`:""}${f(a?"x[e]":"e",!0)}}${c?"":"else{"+f(i,!1,!1)+"}"}${d}}catch(e){}}()`:`!function(){try{${u}var e=localStorage.getItem('${t}');if(e){${a?`var x=${JSON.stringify(a)};`:""}${f(a?"x[e]":"e",!0)}}else{${f(i,!1,!1)};}${d}}catch(t){}}();`;return _.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:h}})},()=>!0),t$=(e,t)=>{let n;if(!tZ){try{n=localStorage.getItem(e)||void 0}catch(e){}return n||t}},tG=()=>{let e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(e)},1)}},tU=e=>(e||(e=window.matchMedia(tL)),e.matches?"dark":"light");var tV={breadcrumb:!0,collapsed:!1,footer:!0,layout:"default",navbar:!0,pagination:!0,sidebar:!0,timestamp:!0,toc:!0,typesetting:"default"},tq=tA.strictObject({breadcrumb:tA.boolean(),collapsed:tA.boolean(),footer:tA.boolean(),layout:tA.enum(["default","full","raw"]),navbar:tA.boolean(),pagination:tA.boolean(),sidebar:tA.boolean(),timestamp:tA.boolean(),toc:tA.boolean(),typesetting:tA.enum(["default","article"])}),tX=tA.enum(["normal","hidden","children"]),tK=tA.string(),tQ=tA.strictObject({href:tA.string(),newWindow:tA.boolean(),title:tK}),tY=tA.strictObject({display:tX.optional(),items:tA.record(tQ.partial({href:!0,newWindow:!0})),title:tK,type:tA.literal("menu")}),tJ=tA.strictObject({title:tK.optional(),type:tA.literal("separator")}),t0=tQ.extend({display:tX,theme:tq,title:tK,type:tA.enum(["page","doc"])}).deepPartial();function t1(e={},t){"string"==typeof e&&(e={title:e});let n=Object.assign({},t.theme,e.theme);return Object.assign({},t,e,{theme:n})}function t2(e){for(let t of e){if(t.route)return t.route;if(t.children){let e=t2(t.children);if(e)return e}}}function t5({list:e,locale:t,defaultLocale:n,route:r,docsRoot:o="",underCurrentDocsRoot:i=!1,pageThemeContext:a=tV}){let s,l;for(let n of e)if("Meta"===n.kind){if(n.locale===t){s=n.data;break}s||(s=n.data)}let c=s||{},u=Object.keys(c);for(let e of u)"string"==typeof c[e]&&(c[e]={title:c[e]});let d=[],f=[],h=[],p=[],m=[],g=0,x=a,v=[],y=-1,b=c["*"]||{};delete b.title,delete b.href;let w=e.filter(e=>"Meta"!==e.kind&&!e.name.startsWith("_")&&(!("locale"in e)||!e.locale||[t,n].includes(e.locale))).sort((e,t)=>{let n=u.indexOf(e.name),r=u.indexOf(t.name);return -1===n&&-1===r?e.name{let t;let n=[],r=u.indexOf(e.name);if(-1!==r){for(let e=y+1;e({...s,type:k,...S&&{title:S},...y&&{display:y},...E&&{children:[]}}),T=C(),A=C(),R=C();if(A.isUnderCurrentDocsTree=j,"separator"===k&&(T.isUnderCurrentDocsTree=j),s.route===r)switch(v=[T],l=k,x={...x,..._},k){case"page":case"menu":g=m.length;break;case"doc":g=p.length}if(!("hidden"===y&&"Folder"!==T.kind||O.hV.has(s.route))){if(E){if(void 0!==E.activeIndex&&void 0!==E.activeType){switch(x=E.activeThemeContext,l=E.activeType,v=[T,...E.activePath],l){case"page":case"menu":g=m.length+E.activeIndex;break;case"doc":g=p.length+E.activeIndex}s.withIndexPage&&"doc"===k&&g++}switch(k){case"page":case"menu":R.children.push(...E.directories),h.push(...E.docsDirectories),E.flatDirectories.length?(R.firstChildRoute=t2(E.flatDirectories),m.push(R)):R.withIndexPage&&m.push(R);break;case"doc":Array.isArray(A.children)&&A.children.push(...E.docsDirectories),T.withIndexPage&&"children"!==y&&p.push(A)}f.push(...E.flatDirectories),p.push(...E.flatDocsDirectories),Array.isArray(T.children)&&T.children.push(...E.directories)}else switch(f.push(T),k){case"page":case"menu":m.push(R);break;case"doc":p.push(A)}switch("doc"===k&&"children"===y?A.children&&(d.push(...A.children),h.push(...A.children)):d.push(T),k){case"page":case"menu":h.push(R);break;case"doc":"children"!==y&&h.push(A);break;case"separator":h.push(T)}}}return{activeType:l,activeIndex:g,activeThemeContext:x,activePath:v,directories:d,flatDirectories:f,docsDirectories:h,flatDocsDirectories:p,topLevelNavbarItems:m}}tA.string().or(tY).or(tJ).or(t0);var t4=n(10227),t6=n.n(t4);function t3(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function t9(e){var t=t3(e).Element;return e instanceof t||e instanceof Element}function t8(e){var t=t3(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function t7(e){if("undefined"==typeof ShadowRoot)return!1;var t=t3(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var ne=Math.max,nt=Math.min,nn=Math.round;function nr(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function no(){return!/^((?!chrome|android).)*safari/i.test(nr())}function ni(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&t8(e)&&(o=e.offsetWidth>0&&nn(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&nn(r.height)/e.offsetHeight||1);var a=(t9(e)?t3(e):window).visualViewport,s=!no()&&n,l=(r.left+(s&&a?a.offsetLeft:0))/o,c=(r.top+(s&&a?a.offsetTop:0))/i,u=r.width/o,d=r.height/i;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l,x:l,y:c}}function na(e){var t=t3(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function ns(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function nl(e){return e!==t3(e)&&t8(e)?ns(e):na(e)}function nc(e){return e?(e.nodeName||"").toLowerCase():null}function nu(e){return((t9(e)?e.ownerDocument:e.document)||window.document).documentElement}function nd(e){return ni(nu(e)).left+na(e).scrollLeft}function nf(e){return t3(e).getComputedStyle(e)}function nh(e){var t=nf(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function np(e){var t=e.getBoundingClientRect(),n=nn(t.width)/e.offsetWidth||1,r=nn(t.height)/e.offsetHeight||1;return 1!==n||1!==r}function nm(e,t,n){void 0===n&&(n=!1);var r=t8(t),o=t8(t)&&np(t),i=nu(t),a=ni(e,o,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&(("body"!==nc(t)||nh(i))&&(s=nl(t)),t8(t)?(l=ni(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=nd(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function ng(e){var t=ni(e),n=e.offsetWidth,r=e.offsetHeight;return 1>=Math.abs(t.width-n)&&(n=t.width),1>=Math.abs(t.height-r)&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function nx(e){return"html"===nc(e)?e:e.assignedSlot||e.parentNode||(t7(e)?e.host:null)||nu(e)}function nv(e){return["html","body","#document"].indexOf(nc(e))>=0?e.ownerDocument.body:t8(e)&&nh(e)?e:nv(nx(e))}function ny(e,t){void 0===t&&(t=[]);var n,r=nv(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=t3(r),a=o?[i].concat(i.visualViewport||[],nh(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(ny(nx(a)))}function nb(e){return["table","td","th"].indexOf(nc(e))>=0}function nw(e){return t8(e)&&"fixed"!==nf(e).position?e.offsetParent:null}function nk(e){var t=/firefox/i.test(nr());if(/Trident/i.test(nr())&&t8(e)&&"fixed"===nf(e).position)return null;var n=nx(e);for(t7(n)&&(n=n.host);t8(n)&&0>["html","body"].indexOf(nc(n));){var r=nf(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}function n_(e){for(var t=t3(e),n=nw(e);n&&nb(n)&&"static"===nf(n).position;)n=nw(n);return n&&("html"===nc(n)||"body"===nc(n)&&"static"===nf(n).position)?t:n||nk(e)||t}var nj="top",nE="bottom",nO="right",nS="left",nC="auto",nT=[nj,nE,nO,nS],nA="start",nR="end",nN="clippingParents",nI="viewport",nM="popper",nL="reference",nZ=nT.reduce(function(e,t){return e.concat([t+"-"+nA,t+"-"+nR])},[]),nP=[].concat(nT,[nC]).reduce(function(e,t){return e.concat([t,t+"-"+nA,t+"-"+nR])},[]),nD=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function nz(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}}),r.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||o(e)}),r}function nF(e){var t=nz(e);return nD.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}function nH(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function nB(e){var t=e.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{});return Object.keys(t).map(function(e){return t[e]})}var nW={placement:"bottom",modifiers:[],strategy:"absolute"};function n$(){for(var e=arguments.length,t=Array(e),n=0;n=0?"x":"y"}function nX(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?nU(o):null,a=o?nV(o):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(i){case nj:t={x:s,y:n.y-r.height};break;case nE:t={x:s,y:n.y+n.height};break;case nO:t={x:n.x+n.width,y:l};break;case nS:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=i?nq(i):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case nA:t[c]=t[c]-(n[u]/2-r[u]/2);break;case nR:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}var nK={top:"auto",right:"auto",bottom:"auto",left:"auto"};function nQ(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:nn(n*o)/o||0,y:nn(r*o)/o||0}}function nY(e){var t,n,r=e.popper,o=e.popperRect,i=e.placement,a=e.variation,s=e.offsets,l=e.position,c=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,f=e.isFixed,h=s.x,p=void 0===h?0:h,m=s.y,g=void 0===m?0:m,x="function"==typeof d?d({x:p,y:g}):{x:p,y:g};p=x.x,g=x.y;var v=s.hasOwnProperty("x"),y=s.hasOwnProperty("y"),b=nS,w=nj,k=window;if(u){var _=n_(r),j="clientHeight",E="clientWidth";_===t3(r)&&"static"!==nf(_=nu(r)).position&&"absolute"===l&&(j="scrollHeight",E="scrollWidth"),(i===nj||(i===nS||i===nO)&&a===nR)&&(w=nE,g-=(f&&_===k&&k.visualViewport?k.visualViewport.height:_[j])-o.height,g*=c?1:-1),(i===nS||(i===nj||i===nE)&&a===nR)&&(b=nO,p-=(f&&_===k&&k.visualViewport?k.visualViewport.width:_[E])-o.width,p*=c?1:-1)}var O=Object.assign({position:l},u&&nK),S=!0===d?nQ({x:p,y:g},t3(r)):{x:p,y:g};return(p=S.x,g=S.y,c)?Object.assign({},O,((n={})[w]=y?"0":"",n[b]=v?"0":"",n.transform=1>=(k.devicePixelRatio||1)?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",n)):Object.assign({},O,((t={})[w]=y?g+"px":"",t[b]=v?p+"px":"",t.transform="",t))}function nJ(e,t,n){var r=nU(e),o=[nS,nj].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[nS,nO].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}var n0={left:"right",right:"left",bottom:"top",top:"bottom"};function n1(e){return e.replace(/left|right|bottom|top/g,function(e){return n0[e]})}var n2={start:"end",end:"start"};function n5(e){return e.replace(/start|end/g,function(e){return n2[e]})}function n4(e,t){var n=t3(e),r=nu(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var c=no();(c||!c&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+nd(e),y:l}}function n6(e){var t,n=nu(e),r=na(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=ne(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=ne(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+nd(e),l=-r.scrollTop;return"rtl"===nf(o||n).direction&&(s+=ne(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}function n3(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&t7(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function n9(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function n8(e,t){var n=ni(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function n7(e,t,n){return t===nI?n9(n4(e,n)):t9(t)?n8(t,n):n9(n6(nu(e)))}function re(e){var t=ny(nx(e)),n=["absolute","fixed"].indexOf(nf(e).position)>=0&&t8(e)?n_(e):e;return t9(n)?t.filter(function(e){return t9(e)&&n3(e,n)&&"body"!==nc(e)}):[]}function rt(e,t,n,r){var o=[].concat("clippingParents"===t?re(e):[].concat(t),[n]),i=o[0],a=o.reduce(function(t,n){var o=n7(e,n,r);return t.top=ne(o.top,t.top),t.right=nt(o.right,t.right),t.bottom=nt(o.bottom,t.bottom),t.left=ne(o.left,t.left),t},n7(e,i,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function rn(){return{top:0,right:0,bottom:0,left:0}}function rr(e){return Object.assign({},rn(),e)}function ro(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}function ri(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.strategy,a=void 0===i?e.strategy:i,s=n.boundary,l=void 0===s?nN:s,c=n.rootBoundary,u=void 0===c?nI:c,d=n.elementContext,f=void 0===d?nM:d,h=n.altBoundary,p=void 0!==h&&h,m=n.padding,g=void 0===m?0:m,x=rr("number"!=typeof g?g:ro(g,nT)),v=f===nM?nL:nM,y=e.rects.popper,b=e.elements[p?v:f],w=rt(t9(b)?b:b.contextElement||nu(e.elements.popper),l,u,a),k=ni(e.elements.reference),_=nX({reference:k,element:y,strategy:"absolute",placement:o}),j=n9(Object.assign({},y,_)),E=f===nM?j:k,O={top:w.top-E.top+x.top,bottom:E.bottom-w.bottom+x.bottom,left:w.left-E.left+x.left,right:E.right-w.right+x.right},S=e.modifiersData.offset;if(f===nM&&S){var C=S[o];Object.keys(O).forEach(function(e){var t=[nO,nE].indexOf(e)>=0?1:-1,n=[nj,nE].indexOf(e)>=0?"y":"x";O[e]+=C[n]*t})}return O}function ra(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?nP:l,u=nV(r),d=u?s?nZ:nZ.filter(function(e){return nV(e)===u}):nT,f=d.filter(function(e){return c.indexOf(e)>=0});0===f.length&&(f=d);var h=f.reduce(function(t,n){return t[n]=ri(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[nU(n)],t},{});return Object.keys(h).sort(function(e,t){return h[e]-h[t]})}function rs(e){if(nU(e)===nC)return[];var t=n1(e);return[n5(e),t,n5(t)]}function rl(e){return"x"===e?"y":"x"}function rc(e,t,n){return ne(e,nt(t,n))}function ru(e,t,n){var r=rc(e,t,n);return r>n?n:r}var rd=function(e,t){return rr("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:ro(e,nT))};function rf(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function rh(e){return[nj,nO,nE,nS].some(function(t){return e[t]>=0})}var rp=function(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?nW:o;return function(e,t,n){void 0===n&&(n=i);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},nW,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],s=!1,l={state:o,setOptions:function(n){var a="function"==typeof n?n(o.options):n;u(),o.options=Object.assign({},i,o.options,a),o.scrollParents={reference:t9(e)?ny(e):e.contextElement?ny(e.contextElement):[],popper:ny(t)};var s=nF(nB([].concat(r,o.options.modifiers)));return o.orderedModifiers=s.filter(function(e){return e.enabled}),c(),l.update()},forceUpdate:function(){if(!s){var e=o.elements,t=e.reference,n=e.popper;if(n$(t,n)){o.rects={reference:nm(t,n_(n),"fixed"===o.options.strategy),popper:ng(n)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach(function(e){return o.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0;r=0,A=T?"width":"height",R=ri(t,{placement:O,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),N=T?C?nO:nS:C?nE:nj;b[A]>w[A]&&(N=n1(N));var I=n1(N),M=[];if(i&&M.push(R[S]<=0),s&&M.push(R[N]<=0,R[I]<=0),M.every(function(e){return e})){j=O,_=!1;break}k.set(O,M)}if(_)for(var L=p?3:1,Z=function(e){var t=y.find(function(t){var n=k.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return j=t,"break"},P=L;P>0&&"break"!==Z(P);P--);t.placement!==j&&(t.modifiersData[r]._skip=!0,t.placement=j,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0!==a&&a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,h=void 0===f||f,p=n.tetherOffset,m=void 0===p?0:p,g=ri(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),x=nU(t.placement),v=nV(t.placement),y=!v,b=nq(x),w=rl(b),k=t.modifiersData.popperOffsets,_=t.rects.reference,j=t.rects.popper,E="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,O="number"==typeof E?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),S=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,C={x:0,y:0};if(k){if(i){var T,A="y"===b?nj:nS,R="y"===b?nE:nO,N="y"===b?"height":"width",I=k[b],M=I+g[A],L=I-g[R],Z=h?-j[N]/2:0,P=v===nA?_[N]:j[N],D=v===nA?-j[N]:-_[N],z=t.elements.arrow,F=h&&z?ng(z):{width:0,height:0},H=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:rn(),B=H[A],W=H[R],$=rc(0,_[N],F[N]),G=y?_[N]/2-Z-$-B-O.mainAxis:P-$-B-O.mainAxis,U=y?-_[N]/2+Z+$+W+O.mainAxis:D+$+W+O.mainAxis,V=t.elements.arrow&&n_(t.elements.arrow),q=V?"y"===b?V.clientTop||0:V.clientLeft||0:0,X=null!=(T=null==S?void 0:S[b])?T:0,K=I+G-X-q,Q=I+U-X,Y=rc(h?nt(M,K):M,I,h?ne(L,Q):L);k[b]=Y,C[b]=Y-I}if(s){var J,ee="x"===b?nj:nS,et="x"===b?nE:nO,en=k[w],er="y"===w?"height":"width",eo=en+g[ee],ei=en-g[et],ea=-1!==[nj,nS].indexOf(x),es=null!=(J=null==S?void 0:S[w])?J:0,el=ea?eo:en-_[er]-j[er]-es+O.altAxis,ec=ea?en+_[er]+j[er]-es-O.altAxis:ei,eu=h&&ea?ru(el,en,ec):rc(h?el:eo,en,h?ec:ei);k[w]=eu,C[w]=eu-en}t.modifiersData[r]=C}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=nU(n.placement),l=nq(s),c=[nS,nO].indexOf(s)>=0?"height":"width";if(i&&a){var u=rd(o.padding,n),d=ng(i),f="y"===l?nj:nS,h="y"===l?nE:nO,p=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],m=a[l]-n.rects.reference[l],g=n_(i),x=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,v=p/2-m/2,y=u[f],b=x-d[c]-u[h],w=x/2-d[c]/2+v,k=rc(y,w,b),_=l;n.modifiersData[r]=((t={})[_]=k,t.centerOffset=k-w,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&n3(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=ri(t,{elementContext:"reference"}),s=ri(t,{altBoundary:!0}),l=rf(a,r),c=rf(s,o,i),u=rh(l),d=rh(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]}),rm=n(89752),rg=n.n(rm);function rx(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var rv=n(70222);let ry=(0,_.createContext)(null);ry.displayName="OpenClosedContext";var rb=((o=rb||{})[o.Open=1]="Open",o[o.Closed=2]="Closed",o[o.Closing=4]="Closing",o[o.Opening=8]="Opening",o);function rw(){return(0,_.useContext)(ry)}function rk({value:e,children:t}){return _.createElement(ry.Provider,{value:e},t)}var r_=n(23011),rj=n(85782),rE=n(66260),rO=n(19691),rS=n(70674),rC=n(29850);function rT(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}var rA=n(95012);function rR(e,...t){e&&t.length>0&&e.classList.add(...t)}function rN(e,...t){e&&t.length>0&&e.classList.remove(...t)}function rI(e,t){let n=(0,rA.k)();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:o}=getComputedStyle(e),[i,a]=[r,o].map(e=>{let[t=0]=e.split(",").filter(Boolean).map(e=>e.includes("ms")?parseFloat(e):1e3*parseFloat(e)).sort((e,t)=>t-e);return t}),s=i+a;if(0!==s){n.group(n=>{n.setTimeout(()=>{t(),n.dispose()},s),n.addEventListener(e,"transitionrun",e=>{e.target===e.currentTarget&&n.dispose()})});let r=n.addEventListener(e,"transitionend",e=>{e.target===e.currentTarget&&(t(),r())})}else t();return n.add(()=>t()),n.dispose}function rM(e,t,n,r){let o=n?"enter":"leave",i=(0,rA.k)(),a=void 0!==r?rT(r):()=>{};"enter"===o&&(e.removeAttribute("hidden"),e.style.display="");let s=(0,r_.E)(o,{enter:()=>t.enter,leave:()=>t.leave}),l=(0,r_.E)(o,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),c=(0,r_.E)(o,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return rN(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),rR(e,...t.base,...s,...c),i.nextFrame(()=>{rN(e,...t.base,...s,...c),rR(e,...t.base,...s,...l),rI(e,()=>(rN(e,...t.base,...s),rR(e,...t.base,...t.entered),a()))}),i.dispose}function rL(){let[e]=(0,_.useState)(rA.k);return(0,_.useEffect)(()=>()=>e.dispose(),[e]),e}function rZ({immediate:e,container:t,direction:n,classes:r,onStart:o,onStop:i}){let a=(0,rj.t)(),s=rL(),l=(0,rO.E)(n);(0,rE.e)(()=>{e&&(l.current="enter")},[e]),(0,rE.e)(()=>{let e=(0,rA.k)();s.add(e.dispose);let n=t.current;if(n&&"idle"!==l.current&&a.current)return e.dispose(),o.current(l.current),e.add(rM(n,r.current,"enter"===l.current,()=>{e.dispose(),i.current(l.current)})),e.dispose},[n])}var rP=n(26510),rD=n(43659);function rz(e=0){let[t,n]=(0,_.useState)(e),r=(0,rj.t)(),o=(0,_.useCallback)(e=>{r.current&&n(t=>t|e)},[t,r]),i=(0,_.useCallback)(e=>!!(t&e),[t]);return{flags:t,addFlag:o,hasFlag:i,removeFlag:(0,_.useCallback)(e=>{r.current&&n(t=>t&~e)},[n,r]),toggleFlag:(0,_.useCallback)(e=>{r.current&&n(t=>t^e)},[n])}}function rF(e=""){return e.split(" ").filter(e=>e.trim().length>1)}let rH=(0,_.createContext)(null);rH.displayName="TransitionContext";var rB=((i=rB||{}).Visible="visible",i.Hidden="hidden",i);function rW(){let e=(0,_.useContext)(rH);if(null===e)throw Error("A is used but it is missing a parent or .");return e}function r$(){let e=(0,_.useContext)(rG);if(null===e)throw Error("A is used but it is missing a parent or .");return e}let rG=(0,_.createContext)(null);function rU(e){return"children"in e?rU(e.children):e.current.filter(({el:e})=>null!==e.current).filter(({state:e})=>"visible"===e).length>0}function rV(e,t){let n=(0,rO.E)(e),r=(0,_.useRef)([]),o=(0,rj.t)(),i=rL(),a=(0,rP.z)((e,t=rv.l4.Hidden)=>{let a=r.current.findIndex(({el:t})=>t===e);-1!==a&&((0,r_.E)(t,{[rv.l4.Unmount](){r.current.splice(a,1)},[rv.l4.Hidden](){r.current[a].state="hidden"}}),i.microTask(()=>{var e;!rU(r)&&o.current&&(null==(e=n.current)||e.call(n))}))}),s=(0,rP.z)(e=>{let t=r.current.find(({el:t})=>t===e);return t?"visible"!==t.state&&(t.state="visible"):r.current.push({el:e,state:"visible"}),()=>a(e,rv.l4.Unmount)}),l=(0,_.useRef)([]),c=(0,_.useRef)(Promise.resolve()),u=(0,_.useRef)({enter:[],leave:[],idle:[]}),d=(0,rP.z)((e,n,r)=>{l.current.splice(0),t&&(t.chains.current[n]=t.chains.current[n].filter(([t])=>t!==e)),null==t||t.chains.current[n].push([e,new Promise(e=>{l.current.push(e)})]),null==t||t.chains.current[n].push([e,new Promise(e=>{Promise.all(u.current[n].map(([e,t])=>t)).then(()=>e())})]),"enter"===n?c.current=c.current.then(()=>null==t?void 0:t.wait.current).then(()=>r(n)):r(n)}),f=(0,rP.z)((e,t,n)=>{Promise.all(u.current[t].splice(0).map(([e,t])=>t)).then(()=>{var e;null==(e=l.current.shift())||e()}).then(()=>n(t))});return(0,_.useMemo)(()=>({children:r,register:s,unregister:a,onStart:d,onStop:f,wait:c,chains:u}),[s,a,r,d,f,u,c])}function rq(){}rG.displayName="NestingContext";let rX=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function rK(e){var t;let n={};for(let r of rX)n[r]=null!=(t=e[r])?t:rq;return n}function rQ(e){let t=(0,_.useRef)(rK(e));return(0,_.useEffect)(()=>{t.current=rK(e)},[e]),t}let rY="div",rJ=rv.AN.RenderStrategy;function r0(e,t){var n,r;let{beforeEnter:o,afterEnter:i,beforeLeave:a,afterLeave:s,enter:l,enterFrom:c,enterTo:u,entered:d,leave:f,leaveFrom:h,leaveTo:p,...m}=e,g=(0,_.useRef)(null),x=(0,rC.T)(g,t),v=null==(n=m.unmount)||n?rv.l4.Unmount:rv.l4.Hidden,{show:y,appear:b,initial:w}=rW(),[k,j]=(0,_.useState)(y?"visible":"hidden"),E=r$(),{register:O,unregister:S}=E;(0,_.useEffect)(()=>O(g),[O,g]),(0,_.useEffect)(()=>{if(v===rv.l4.Hidden&&g.current){if(y&&"visible"!==k){j("visible");return}return(0,r_.E)(k,{hidden:()=>S(g),visible:()=>O(g)})}},[k,g,O,S,y,v]);let C=(0,rO.E)({base:rF(m.className),enter:rF(l),enterFrom:rF(c),enterTo:rF(u),entered:rF(d),leave:rF(f),leaveFrom:rF(h),leaveTo:rF(p)}),T=rQ({beforeEnter:o,afterEnter:i,beforeLeave:a,afterLeave:s}),A=(0,rS.H)();(0,_.useEffect)(()=>{if(A&&"visible"===k&&null===g.current)throw Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[g,k,A]);let R=w&&!b,N=b&&y&&w,I=!A||R?"idle":y?"enter":"leave",M=rz(0),L=(0,rP.z)(e=>(0,r_.E)(e,{enter:()=>{M.addFlag(rb.Opening),T.current.beforeEnter()},leave:()=>{M.addFlag(rb.Closing),T.current.beforeLeave()},idle:()=>{}})),Z=(0,rP.z)(e=>(0,r_.E)(e,{enter:()=>{M.removeFlag(rb.Opening),T.current.afterEnter()},leave:()=>{M.removeFlag(rb.Closing),T.current.afterLeave()},idle:()=>{}})),P=rV(()=>{j("hidden"),S(g)},E);rZ({immediate:N,container:g,classes:C,direction:I,onStart:(0,rO.E)(e=>{P.onStart(g,e,L)}),onStop:(0,rO.E)(e=>{P.onStop(g,e,Z),"leave"!==e||rU(P)||(j("hidden"),S(g))})});let D=m,z={ref:x};return N?D={...D,className:(0,rD.A)(m.className,...C.current.enter,...C.current.enterFrom)}:(D.className=(0,rD.A)(m.className,null==(r=g.current)?void 0:r.className),""===D.className&&delete D.className),_.createElement(rG.Provider,{value:P},_.createElement(rk,{value:(0,r_.E)(k,{visible:rb.Open,hidden:rb.Closed})|M.flags},(0,rv.sY)({ourProps:z,theirProps:D,defaultTag:rY,features:rJ,visible:"visible"===k,name:"Transition.Child"})))}function r1(e,t){let{show:n,appear:r=!1,unmount:o=!0,...i}=e,a=(0,_.useRef)(null),s=(0,rC.T)(a,t);(0,rS.H)();let l=rw();if(void 0===n&&null!==l&&(n=(l&rb.Open)===rb.Open),![!0,!1].includes(n))throw Error("A is used but it is missing a `show={true | false}` prop.");let[c,u]=(0,_.useState)(n?"visible":"hidden"),d=rV(()=>{u("hidden")}),[f,h]=(0,_.useState)(!0),p=(0,_.useRef)([n]);(0,rE.e)(()=>{!1!==f&&p.current[p.current.length-1]!==n&&(p.current.push(n),h(!1))},[p,n]);let m=(0,_.useMemo)(()=>({show:n,appear:r,initial:f}),[n,r,f]);(0,_.useEffect)(()=>{if(n)u("visible");else if(rU(d)){let e=a.current;if(!e)return;let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&u("hidden")}else u("hidden")},[n,d]);let g={unmount:o},x=(0,rP.z)(()=>{var t;f&&h(!1),null==(t=e.beforeEnter)||t.call(e)}),v=(0,rP.z)(()=>{var t;f&&h(!1),null==(t=e.beforeLeave)||t.call(e)});return _.createElement(rG.Provider,{value:d},_.createElement(rH.Provider,{value:m},(0,rv.sY)({ourProps:{...g,as:_.Fragment,children:_.createElement(r4,{ref:s,...g,...i,beforeEnter:x,beforeLeave:v})},theirProps:{},defaultTag:_.Fragment,features:rJ,visible:"visible"===c,name:"Transition"})))}function r2(e,t){let n=null!==(0,_.useContext)(rH),r=null!==rw();return _.createElement(_.Fragment,null,!n&&r?_.createElement(r5,{ref:t,...e}):_.createElement(r4,{ref:t,...e}))}let r5=(0,rv.yV)(r1),r4=(0,rv.yV)(r0),r6=Object.assign(r5,{Child:(0,rv.yV)(r2),Root:r5});var r3=n(29971),r9=n(49038);function r8(e,t){let[n,r]=(0,_.useState)(e),o=(0,rO.E)(e);return(0,rE.e)(()=>r(o.current),[o,r,...t]),n}var r7=n(8246);function oe(e){throw Error("Unexpected object: "+e)}var ot=((a=ot||{})[a.First=0]="First",a[a.Previous=1]="Previous",a[a.Next=2]="Next",a[a.Last=3]="Last",a[a.Specific=4]="Specific",a[a.Nothing=5]="Nothing",a);function on(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),o=null!=r?r:-1,i=(()=>{switch(e.focus){case 0:return n.findIndex(e=>!t.resolveDisabled(e));case 1:{let e=n.slice().reverse().findIndex((e,n,r)=>(-1===o||!(r.length-n-1>=o))&&!t.resolveDisabled(e));return -1===e?e:n.length-1-e}case 2:return n.findIndex((e,n)=>!(n<=o)&&!t.resolveDisabled(e));case 3:{let e=n.slice().reverse().findIndex(e=>!t.resolveDisabled(e));return -1===e?e:n.length-1-e}case 4:return n.findIndex(n=>t.resolveId(n)===e.id);case 5:return null;default:oe(e)}})();return -1===i?r:i}function or(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=(null==t?void 0:t.getAttribute("disabled"))==="";return!(r&&oo(n))&&r}function oo(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}var oi=n(47496),oa=n(58002);function os(e,t,n){let r=(0,rO.E)(t);(0,_.useEffect)(()=>{function t(e){r.current(e)}return document.addEventListener(e,t,n),()=>document.removeEventListener(e,t,n)},[e,n])}function ol(e,t,n){let r=(0,rO.E)(t);(0,_.useEffect)(()=>{function t(e){r.current(e)}return window.addEventListener(e,t,n),()=>window.removeEventListener(e,t,n)},[e,n])}function oc(e,t,n=!0){let r=(0,_.useRef)(!1);function o(n,o){if(!r.current||n.defaultPrevented)return;let i=o(n);if(null!==i&&i.getRootNode().contains(i)&&i.isConnected){for(let t of function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e)){if(null===t)continue;let e=t instanceof HTMLElement?t:t.current;if(null!=e&&e.contains(i)||n.composed&&n.composedPath().includes(e))return}return(0,oi.sP)(i,oi.tJ.Loose)||-1===i.tabIndex||n.preventDefault(),t(n,i)}}(0,_.useEffect)(()=>{requestAnimationFrame(()=>{r.current=n})},[n]);let i=(0,_.useRef)(null);os("pointerdown",e=>{var t,n;r.current&&(i.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)},!0),os("mousedown",e=>{var t,n;r.current&&(i.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)},!0),os("click",e=>{i.current&&(o(e,()=>i.current),i.current=null)},!0),os("touchend",e=>o(e,()=>e.target instanceof HTMLElement?e.target:null),!0),ol("blur",e=>o(e,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}var ou=n(91941);function od(e={},t=null,n=[]){for(let[r,o]of Object.entries(e))oh(n,of(t,r),o);return n}function of(e,t){return e?e+"["+t+"]":t}function oh(e,t,n){if(Array.isArray(n))for(let[r,o]of n.entries())oh(e,of(t,r.toString()),o);else n instanceof Date?e.push([t,n.toISOString()]):"boolean"==typeof n?e.push([t,n?"1":"0"]):"string"==typeof n?e.push([t,n]):"number"==typeof n?e.push([t,`${n}`]):null==n?e.push([t,""]):od(n,t,e)}var op=n(19195);function om(e,t,n){let[r,o]=(0,_.useState)(n),i=void 0!==e,a=(0,_.useRef)(i),s=(0,_.useRef)(!1),l=(0,_.useRef)(!1);return!i||a.current||s.current?i||!a.current||l.current||(l.current=!0,a.current=i,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")):(s.current=!0,a.current=i,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")),[i?e:r,(0,rP.z)(e=>(i||o(e),null==t?void 0:t(e)))]}function og(e){return[e.screenX,e.screenY]}function ox(){let e=(0,_.useRef)([-1,-1]);return{wasMoved(t){let n=og(t);return(e.current[0]!==n[0]||e.current[1]!==n[1])&&(e.current=n,!0)},update(t){e.current=og(t)}}}let ov=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function oy(e){var t,n;let r=null!=(t=e.innerText)?t:"",o=e.cloneNode(!0);if(!(o instanceof HTMLElement))return r;let i=!1;for(let e of o.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))e.remove(),i=!0;let a=i?null!=(n=o.innerText)?n:"":r;return ov.test(a)&&(a=a.replace(ov,"")),a}function ob(e){let t=e.getAttribute("aria-label");if("string"==typeof t)return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let e=n.split(" ").map(e=>{let t=document.getElementById(e);if(t){let e=t.getAttribute("aria-label");return"string"==typeof e?e.trim():oy(t).trim()}return null}).filter(Boolean);if(e.length>0)return e.join(", ")}return oy(e).trim()}function ow(e){let t=(0,_.useRef)(""),n=(0,_.useRef)("");return(0,rP.z)(()=>{let r=e.current;if(!r)return"";let o=r.innerText;if(t.current===o)return n.current;let i=ob(r).trim().toLowerCase();return t.current=o,n.current=i,i})}var ok=((s=ok||{})[s.Open=0]="Open",s[s.Closed=1]="Closed",s),o_=((l=o_||{})[l.Single=0]="Single",l[l.Multi=1]="Multi",l),oj=((c=oj||{})[c.Pointer=0]="Pointer",c[c.Other=1]="Other",c),oE=((u=oE||{})[u.OpenListbox=0]="OpenListbox",u[u.CloseListbox=1]="CloseListbox",u[u.GoToOption=2]="GoToOption",u[u.Search=3]="Search",u[u.ClearSearch=4]="ClearSearch",u[u.RegisterOption=5]="RegisterOption",u[u.UnregisterOption=6]="UnregisterOption",u[u.RegisterLabel=7]="RegisterLabel",u);function oO(e,t=e=>e){let n=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,r=(0,oi.z2)(t(e.options.slice()),e=>e.dataRef.current.domRef.current),o=n?r.indexOf(n):null;return -1===o&&(o=null),{options:r,activeOptionIndex:o}}let oS={1:e=>e.dataRef.current.disabled||1===e.listboxState?e:{...e,activeOptionIndex:null,listboxState:1},0(e){if(e.dataRef.current.disabled||0===e.listboxState)return e;let t=e.activeOptionIndex,{isSelected:n}=e.dataRef.current,r=e.options.findIndex(e=>n(e.dataRef.current.value));return -1!==r&&(t=r),{...e,listboxState:0,activeOptionIndex:t}},2(e,t){var n;if(e.dataRef.current.disabled||1===e.listboxState)return e;let r=oO(e),o=on(t,{resolveItems:()=>r.options,resolveActiveIndex:()=>r.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...e,...r,searchQuery:"",activeOptionIndex:o,activationTrigger:null!=(n=t.trigger)?n:1}},3:(e,t)=>{if(e.dataRef.current.disabled||1===e.listboxState)return e;let n=""!==e.searchQuery?0:1,r=e.searchQuery+t.value.toLowerCase(),o=(null!==e.activeOptionIndex?e.options.slice(e.activeOptionIndex+n).concat(e.options.slice(0,e.activeOptionIndex+n)):e.options).find(e=>{var t;return!e.dataRef.current.disabled&&(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(r))}),i=o?e.options.indexOf(o):-1;return -1===i||i===e.activeOptionIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeOptionIndex:i,activationTrigger:1}},4:e=>e.dataRef.current.disabled||1===e.listboxState||""===e.searchQuery?e:{...e,searchQuery:""},5:(e,t)=>{let n={id:t.id,dataRef:t.dataRef},r=oO(e,e=>[...e,n]);return null===e.activeOptionIndex&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(r.activeOptionIndex=r.options.indexOf(n)),{...e,...r}},6:(e,t)=>{let n=oO(e,e=>{let n=e.findIndex(e=>e.id===t.id);return -1!==n&&e.splice(n,1),e});return{...e,...n,activationTrigger:1}},7:(e,t)=>({...e,labelId:t.id})},oC=(0,_.createContext)(null);function oT(e){let t=(0,_.useContext)(oC);if(null===t){let t=Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,oT),t}return t}oC.displayName="ListboxActionsContext";let oA=(0,_.createContext)(null);function oR(e){let t=(0,_.useContext)(oA);if(null===t){let t=Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,oR),t}return t}function oN(e,t){return(0,r_.E)(t.type,oS,e,t)}oA.displayName="ListboxDataContext";let oI=_.Fragment;function oM(e,t){let{value:n,defaultValue:r,form:o,name:i,onChange:a,by:s=(e,t)=>e===t,disabled:l=!1,horizontal:c=!1,multiple:u=!1,...d}=e,f=c?"horizontal":"vertical",h=(0,rC.T)(t),[p=u?[]:void 0,m]=om(n,a,r),[g,x]=(0,_.useReducer)(oN,{dataRef:(0,_.createRef)(),listboxState:1,options:[],searchQuery:"",labelId:null,activeOptionIndex:null,activationTrigger:1}),v=(0,_.useRef)({static:!1,hold:!1}),y=(0,_.useRef)(null),b=(0,_.useRef)(null),w=(0,_.useRef)(null),k=(0,rP.z)("string"==typeof s?(e,t)=>{let n=s;return(null==e?void 0:e[n])===(null==t?void 0:t[n])}:s),j=(0,_.useCallback)(e=>(0,r_.E)(E.mode,{1:()=>p.some(t=>k(t,e)),0:()=>k(p,e)}),[p]),E=(0,_.useMemo)(()=>({...g,value:p,disabled:l,mode:u?1:0,orientation:f,compare:k,isSelected:j,optionsPropsRef:v,labelRef:y,buttonRef:b,optionsRef:w}),[p,l,u,g]);(0,rE.e)(()=>{g.dataRef.current=E},[E]),oc([E.buttonRef,E.optionsRef],(e,t)=>{var n;x({type:1}),(0,oi.sP)(t,oi.tJ.Loose)||(e.preventDefault(),null==(n=E.buttonRef.current)||n.focus())},0===E.listboxState);let O=(0,_.useMemo)(()=>({open:0===E.listboxState,disabled:l,value:p}),[E,l,p]),S=(0,rP.z)(e=>{let t=E.options.find(t=>t.id===e);t&&M(t.dataRef.current.value)}),C=(0,rP.z)(()=>{if(null!==E.activeOptionIndex){let{dataRef:e,id:t}=E.options[E.activeOptionIndex];M(e.current.value),x({type:2,focus:ot.Specific,id:t})}}),T=(0,rP.z)(()=>x({type:0})),A=(0,rP.z)(()=>x({type:1})),R=(0,rP.z)((e,t,n)=>e===ot.Specific?x({type:2,focus:ot.Specific,id:t,trigger:n}):x({type:2,focus:e,trigger:n})),N=(0,rP.z)((e,t)=>(x({type:5,id:e,dataRef:t}),()=>x({type:6,id:e}))),I=(0,rP.z)(e=>(x({type:7,id:e}),()=>x({type:7,id:null}))),M=(0,rP.z)(e=>(0,r_.E)(E.mode,{0:()=>null==m?void 0:m(e),1(){let t=E.value.slice(),n=t.findIndex(t=>k(t,e));return -1===n?t.push(e):t.splice(n,1),null==m?void 0:m(t)}})),L=(0,rP.z)(e=>x({type:3,value:e})),Z=(0,rP.z)(()=>x({type:4})),P=(0,_.useMemo)(()=>({onChange:M,registerOption:N,registerLabel:I,goToOption:R,closeListbox:A,openListbox:T,selectActiveOption:C,selectOption:S,search:L,clearSearch:Z}),[]),D={ref:h},z=(0,_.useRef)(null),F=rL();return(0,_.useEffect)(()=>{z.current&&void 0!==r&&F.addEventListener(z.current,"reset",()=>{null==m||m(r)})},[z,m]),_.createElement(oC.Provider,{value:P},_.createElement(oA.Provider,{value:E},_.createElement(rk,{value:(0,r_.E)(E.listboxState,{0:rb.Open,1:rb.Closed})},null!=i&&null!=p&&od({[i]:p}).map(([e,t],n)=>_.createElement(ou._,{features:ou.A.Hidden,ref:0===n?e=>{var t;z.current=null!=(t=null==e?void 0:e.closest("form"))?t:null}:void 0,...(0,rv.oA)({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:o,name:e,value:t})})),(0,rv.sY)({ourProps:D,theirProps:d,slot:O,defaultTag:oI,name:"Listbox"}))))}let oL="button";function oZ(e,t){var n;let r=(0,r9.M)(),{id:o=`headlessui-listbox-button-${r}`,...i}=e,a=oR("Listbox.Button"),s=oT("Listbox.Button"),l=(0,rC.T)(a.buttonRef,t),c=rL(),u=(0,rP.z)(e=>{switch(e.key){case r7.R.Space:case r7.R.Enter:case r7.R.ArrowDown:e.preventDefault(),s.openListbox(),c.nextFrame(()=>{a.value||s.goToOption(ot.First)});break;case r7.R.ArrowUp:e.preventDefault(),s.openListbox(),c.nextFrame(()=>{a.value||s.goToOption(ot.Last)})}}),d=(0,rP.z)(e=>{e.key===r7.R.Space&&e.preventDefault()}),f=(0,rP.z)(e=>{if(or(e.currentTarget))return e.preventDefault();0===a.listboxState?(s.closeListbox(),c.nextFrame(()=>{var e;return null==(e=a.buttonRef.current)?void 0:e.focus({preventScroll:!0})})):(e.preventDefault(),s.openListbox())}),h=r8(()=>{if(a.labelId)return[a.labelId,o].join(" ")},[a.labelId,o]),p=(0,_.useMemo)(()=>({open:0===a.listboxState,disabled:a.disabled,value:a.value}),[a]),m={ref:l,id:o,type:(0,oa.f)(e,a.buttonRef),"aria-haspopup":"listbox","aria-controls":null==(n=a.optionsRef.current)?void 0:n.id,"aria-expanded":0===a.listboxState,"aria-labelledby":h,disabled:a.disabled,onKeyDown:u,onKeyUp:d,onClick:f};return(0,rv.sY)({ourProps:m,theirProps:i,slot:p,defaultTag:oL,name:"Listbox.Button"})}let oP="label";function oD(e,t){let n=(0,r9.M)(),{id:r=`headlessui-listbox-label-${n}`,...o}=e,i=oR("Listbox.Label"),a=oT("Listbox.Label"),s=(0,rC.T)(i.labelRef,t);(0,rE.e)(()=>a.registerLabel(r),[r]);let l=(0,rP.z)(()=>{var e;return null==(e=i.buttonRef.current)?void 0:e.focus({preventScroll:!0})}),c=(0,_.useMemo)(()=>({open:0===i.listboxState,disabled:i.disabled}),[i]);return(0,rv.sY)({ourProps:{ref:s,id:r,onClick:l},theirProps:o,slot:c,defaultTag:oP,name:"Listbox.Label"})}let oz="ul",oF=rv.AN.RenderStrategy|rv.AN.Static;function oH(e,t){var n;let r=(0,r9.M)(),{id:o=`headlessui-listbox-options-${r}`,...i}=e,a=oR("Listbox.Options"),s=oT("Listbox.Options"),l=(0,rC.T)(a.optionsRef,t),c=rL(),u=rL(),d=rw(),f=null!==d?(d&rb.Open)===rb.Open:0===a.listboxState;(0,_.useEffect)(()=>{var e;let t=a.optionsRef.current;t&&0===a.listboxState&&t!==(null==(e=(0,op.r)(t))?void 0:e.activeElement)&&t.focus({preventScroll:!0})},[a.listboxState,a.optionsRef]);let h=(0,rP.z)(e=>{switch(u.dispose(),e.key){case r7.R.Space:if(""!==a.searchQuery)return e.preventDefault(),e.stopPropagation(),s.search(e.key);case r7.R.Enter:if(e.preventDefault(),e.stopPropagation(),null!==a.activeOptionIndex){let{dataRef:e}=a.options[a.activeOptionIndex];s.onChange(e.current.value)}0===a.mode&&(s.closeListbox(),(0,rA.k)().nextFrame(()=>{var e;return null==(e=a.buttonRef.current)?void 0:e.focus({preventScroll:!0})}));break;case(0,r_.E)(a.orientation,{vertical:r7.R.ArrowDown,horizontal:r7.R.ArrowRight}):return e.preventDefault(),e.stopPropagation(),s.goToOption(ot.Next);case(0,r_.E)(a.orientation,{vertical:r7.R.ArrowUp,horizontal:r7.R.ArrowLeft}):return e.preventDefault(),e.stopPropagation(),s.goToOption(ot.Previous);case r7.R.Home:case r7.R.PageUp:return e.preventDefault(),e.stopPropagation(),s.goToOption(ot.First);case r7.R.End:case r7.R.PageDown:return e.preventDefault(),e.stopPropagation(),s.goToOption(ot.Last);case r7.R.Escape:return e.preventDefault(),e.stopPropagation(),s.closeListbox(),c.nextFrame(()=>{var e;return null==(e=a.buttonRef.current)?void 0:e.focus({preventScroll:!0})});case r7.R.Tab:e.preventDefault(),e.stopPropagation();break;default:1===e.key.length&&(s.search(e.key),u.setTimeout(()=>s.clearSearch(),350))}}),p=r8(()=>{var e,t,n;return null!=(n=null==(e=a.labelRef.current)?void 0:e.id)?n:null==(t=a.buttonRef.current)?void 0:t.id},[a.labelRef.current,a.buttonRef.current]),m=(0,_.useMemo)(()=>({open:0===a.listboxState}),[a]),g={"aria-activedescendant":null===a.activeOptionIndex||null==(n=a.options[a.activeOptionIndex])?void 0:n.id,"aria-multiselectable":1===a.mode||void 0,"aria-labelledby":p,"aria-orientation":a.orientation,id:o,onKeyDown:h,role:"listbox",tabIndex:0,ref:l};return(0,rv.sY)({ourProps:g,theirProps:i,slot:m,defaultTag:oz,features:oF,visible:f,name:"Listbox.Options"})}let oB="li";function oW(e,t){let n=(0,r9.M)(),{id:r=`headlessui-listbox-option-${n}`,disabled:o=!1,value:i,...a}=e,s=oR("Listbox.Option"),l=oT("Listbox.Option"),c=null!==s.activeOptionIndex&&s.options[s.activeOptionIndex].id===r,u=s.isSelected(i),d=(0,_.useRef)(null),f=ow(d),h=(0,rO.E)({disabled:o,value:i,domRef:d,get textValue(){return f()}}),p=(0,rC.T)(t,d);(0,rE.e)(()=>{if(0!==s.listboxState||!c||0===s.activationTrigger)return;let e=(0,rA.k)();return e.requestAnimationFrame(()=>{var e,t;null==(t=null==(e=d.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})}),e.dispose},[d,c,s.listboxState,s.activationTrigger,s.activeOptionIndex]),(0,rE.e)(()=>l.registerOption(r,h),[h,r]);let m=(0,rP.z)(e=>{if(o)return e.preventDefault();l.onChange(i),0===s.mode&&(l.closeListbox(),(0,rA.k)().nextFrame(()=>{var e;return null==(e=s.buttonRef.current)?void 0:e.focus({preventScroll:!0})}))}),g=(0,rP.z)(()=>{if(o)return l.goToOption(ot.Nothing);l.goToOption(ot.Specific,r)}),x=ox(),v=(0,rP.z)(e=>x.update(e)),y=(0,rP.z)(e=>{x.wasMoved(e)&&(o||c||l.goToOption(ot.Specific,r,0))}),b=(0,rP.z)(e=>{x.wasMoved(e)&&(o||c&&l.goToOption(ot.Nothing))}),w=(0,_.useMemo)(()=>({active:c,selected:u,disabled:o}),[c,u,o]);return(0,rv.sY)({ourProps:{id:r,ref:p,role:"option",tabIndex:!0===o?void 0:-1,"aria-disabled":!0===o||void 0,"aria-selected":u,disabled:void 0,onClick:m,onFocus:g,onPointerEnter:v,onMouseEnter:v,onPointerMove:y,onMouseMove:y,onPointerLeave:b,onMouseLeave:b},theirProps:a,slot:w,defaultTag:oB,name:"Listbox.Option"})}let o$=Object.assign((0,rv.yV)(oM),{Button:(0,rv.yV)(oZ),Label:(0,rv.yV)(oD),Options:(0,rv.yV)(oH),Option:(0,rv.yV)(oW)});var oG=n(10422),oU=n(35440),oV=n.n(oU);function oq(){return(oq=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}var oK=["keyOverride"],oQ=["crossOrigin"],oY={templateTitle:"",noindex:!1,nofollow:!1,norobots:!1,defaultOpenGraphImageWidth:0,defaultOpenGraphImageHeight:0,defaultOpenGraphVideoWidth:0,defaultOpenGraphVideoHeight:0},oJ=function(e,t,n){void 0===t&&(t=[]);var r=void 0===n?{}:n,o=r.defaultWidth,i=r.defaultHeight;return t.reduce(function(t,n,r){return t.push(_.createElement("meta",{key:"og:"+e+":0"+r,property:"og:"+e,content:n.url})),n.alt&&t.push(_.createElement("meta",{key:"og:"+e+":alt0"+r,property:"og:"+e+":alt",content:n.alt})),n.secureUrl&&t.push(_.createElement("meta",{key:"og:"+e+":secure_url0"+r,property:"og:"+e+":secure_url",content:n.secureUrl.toString()})),n.type&&t.push(_.createElement("meta",{key:"og:"+e+":type0"+r,property:"og:"+e+":type",content:n.type.toString()})),n.width?t.push(_.createElement("meta",{key:"og:"+e+":width0"+r,property:"og:"+e+":width",content:n.width.toString()})):o&&t.push(_.createElement("meta",{key:"og:"+e+":width0"+r,property:"og:"+e+":width",content:o.toString()})),n.height?t.push(_.createElement("meta",{key:"og:"+e+":height"+r,property:"og:"+e+":height",content:n.height.toString()})):i&&t.push(_.createElement("meta",{key:"og:"+e+":height"+r,property:"og:"+e+":height",content:i.toString()})),t},[])},o0=function(e){var t,n,r,o,i,a=[];e.titleTemplate&&(oY.templateTitle=e.titleTemplate);var s="";e.title?(s=e.title,oY.templateTitle&&(s=oY.templateTitle.replace(/%s/g,function(){return s}))):e.defaultTitle&&(s=e.defaultTitle),s&&a.push(_.createElement("title",{key:"title"},s));var l=void 0===e.noindex?oY.noindex||e.dangerouslySetAllPagesToNoIndex:e.noindex,c=void 0===e.nofollow?oY.nofollow||e.dangerouslySetAllPagesToNoFollow:e.nofollow,u=e.norobots||oY.norobots,d="";if(e.robotsProps){var f=e.robotsProps,h=f.nosnippet,p=f.maxSnippet,m=f.maxImagePreview,g=f.maxVideoPreview,x=f.noarchive,v=f.noimageindex,y=f.notranslate,b=f.unavailableAfter;d=(h?",nosnippet":"")+(p?",max-snippet:"+p:"")+(m?",max-image-preview:"+m:"")+(x?",noarchive":"")+(b?",unavailable_after:"+b:"")+(v?",noimageindex":"")+(g?",max-video-preview:"+g:"")+(y?",notranslate":"")}if(e.norobots&&(oY.norobots=!0),l||c?(e.dangerouslySetAllPagesToNoIndex&&(oY.noindex=!0),e.dangerouslySetAllPagesToNoFollow&&(oY.nofollow=!0),a.push(_.createElement("meta",{key:"robots",name:"robots",content:(l?"noindex":"index")+","+(c?"nofollow":"follow")+d}))):(!u||d)&&a.push(_.createElement("meta",{key:"robots",name:"robots",content:"index,follow"+d})),e.description&&a.push(_.createElement("meta",{key:"description",name:"description",content:e.description})),e.themeColor&&a.push(_.createElement("meta",{key:"theme-color",name:"theme-color",content:e.themeColor})),e.mobileAlternate&&a.push(_.createElement("link",{rel:"alternate",key:"mobileAlternate",media:e.mobileAlternate.media,href:e.mobileAlternate.href})),e.languageAlternates&&e.languageAlternates.length>0&&e.languageAlternates.forEach(function(e){a.push(_.createElement("link",{rel:"alternate",key:"languageAlternate-"+e.hrefLang,hrefLang:e.hrefLang,href:e.href}))}),e.twitter&&(e.twitter.cardType&&a.push(_.createElement("meta",{key:"twitter:card",name:"twitter:card",content:e.twitter.cardType})),e.twitter.site&&a.push(_.createElement("meta",{key:"twitter:site",name:"twitter:site",content:e.twitter.site})),e.twitter.handle&&a.push(_.createElement("meta",{key:"twitter:creator",name:"twitter:creator",content:e.twitter.handle}))),e.facebook&&e.facebook.appId&&a.push(_.createElement("meta",{key:"fb:app_id",property:"fb:app_id",content:e.facebook.appId})),(null!=(t=e.openGraph)&&t.title||s)&&a.push(_.createElement("meta",{key:"og:title",property:"og:title",content:(null==(o=e.openGraph)?void 0:o.title)||s})),(null!=(n=e.openGraph)&&n.description||e.description)&&a.push(_.createElement("meta",{key:"og:description",property:"og:description",content:(null==(i=e.openGraph)?void 0:i.description)||e.description})),e.openGraph){if((e.openGraph.url||e.canonical)&&a.push(_.createElement("meta",{key:"og:url",property:"og:url",content:e.openGraph.url||e.canonical})),e.openGraph.type){var w=e.openGraph.type.toLowerCase();a.push(_.createElement("meta",{key:"og:type",property:"og:type",content:w})),"profile"===w&&e.openGraph.profile?(e.openGraph.profile.firstName&&a.push(_.createElement("meta",{key:"profile:first_name",property:"profile:first_name",content:e.openGraph.profile.firstName})),e.openGraph.profile.lastName&&a.push(_.createElement("meta",{key:"profile:last_name",property:"profile:last_name",content:e.openGraph.profile.lastName})),e.openGraph.profile.username&&a.push(_.createElement("meta",{key:"profile:username",property:"profile:username",content:e.openGraph.profile.username})),e.openGraph.profile.gender&&a.push(_.createElement("meta",{key:"profile:gender",property:"profile:gender",content:e.openGraph.profile.gender}))):"book"===w&&e.openGraph.book?(e.openGraph.book.authors&&e.openGraph.book.authors.length&&e.openGraph.book.authors.forEach(function(e,t){a.push(_.createElement("meta",{key:"book:author:0"+t,property:"book:author",content:e}))}),e.openGraph.book.isbn&&a.push(_.createElement("meta",{key:"book:isbn",property:"book:isbn",content:e.openGraph.book.isbn})),e.openGraph.book.releaseDate&&a.push(_.createElement("meta",{key:"book:release_date",property:"book:release_date",content:e.openGraph.book.releaseDate})),e.openGraph.book.tags&&e.openGraph.book.tags.length&&e.openGraph.book.tags.forEach(function(e,t){a.push(_.createElement("meta",{key:"book:tag:0"+t,property:"book:tag",content:e}))})):"article"===w&&e.openGraph.article?(e.openGraph.article.publishedTime&&a.push(_.createElement("meta",{key:"article:published_time",property:"article:published_time",content:e.openGraph.article.publishedTime})),e.openGraph.article.modifiedTime&&a.push(_.createElement("meta",{key:"article:modified_time",property:"article:modified_time",content:e.openGraph.article.modifiedTime})),e.openGraph.article.expirationTime&&a.push(_.createElement("meta",{key:"article:expiration_time",property:"article:expiration_time",content:e.openGraph.article.expirationTime})),e.openGraph.article.authors&&e.openGraph.article.authors.length&&e.openGraph.article.authors.forEach(function(e,t){a.push(_.createElement("meta",{key:"article:author:0"+t,property:"article:author",content:e}))}),e.openGraph.article.section&&a.push(_.createElement("meta",{key:"article:section",property:"article:section",content:e.openGraph.article.section})),e.openGraph.article.tags&&e.openGraph.article.tags.length&&e.openGraph.article.tags.forEach(function(e,t){a.push(_.createElement("meta",{key:"article:tag:0"+t,property:"article:tag",content:e}))})):("video.movie"===w||"video.episode"===w||"video.tv_show"===w||"video.other"===w)&&e.openGraph.video&&(e.openGraph.video.actors&&e.openGraph.video.actors.length&&e.openGraph.video.actors.forEach(function(e,t){e.profile&&a.push(_.createElement("meta",{key:"video:actor:0"+t,property:"video:actor",content:e.profile})),e.role&&a.push(_.createElement("meta",{key:"video:actor:role:0"+t,property:"video:actor:role",content:e.role}))}),e.openGraph.video.directors&&e.openGraph.video.directors.length&&e.openGraph.video.directors.forEach(function(e,t){a.push(_.createElement("meta",{key:"video:director:0"+t,property:"video:director",content:e}))}),e.openGraph.video.writers&&e.openGraph.video.writers.length&&e.openGraph.video.writers.forEach(function(e,t){a.push(_.createElement("meta",{key:"video:writer:0"+t,property:"video:writer",content:e}))}),e.openGraph.video.duration&&a.push(_.createElement("meta",{key:"video:duration",property:"video:duration",content:e.openGraph.video.duration.toString()})),e.openGraph.video.releaseDate&&a.push(_.createElement("meta",{key:"video:release_date",property:"video:release_date",content:e.openGraph.video.releaseDate})),e.openGraph.video.tags&&e.openGraph.video.tags.length&&e.openGraph.video.tags.forEach(function(e,t){a.push(_.createElement("meta",{key:"video:tag:0"+t,property:"video:tag",content:e}))}),e.openGraph.video.series&&a.push(_.createElement("meta",{key:"video:series",property:"video:series",content:e.openGraph.video.series})))}e.defaultOpenGraphImageWidth&&(oY.defaultOpenGraphImageWidth=e.defaultOpenGraphImageWidth),e.defaultOpenGraphImageHeight&&(oY.defaultOpenGraphImageHeight=e.defaultOpenGraphImageHeight),e.openGraph.images&&e.openGraph.images.length&&a.push.apply(a,oJ("image",e.openGraph.images,{defaultWidth:oY.defaultOpenGraphImageWidth,defaultHeight:oY.defaultOpenGraphImageHeight})),e.defaultOpenGraphVideoWidth&&(oY.defaultOpenGraphVideoWidth=e.defaultOpenGraphVideoWidth),e.defaultOpenGraphVideoHeight&&(oY.defaultOpenGraphVideoHeight=e.defaultOpenGraphVideoHeight),e.openGraph.videos&&e.openGraph.videos.length&&a.push.apply(a,oJ("video",e.openGraph.videos,{defaultWidth:oY.defaultOpenGraphVideoWidth,defaultHeight:oY.defaultOpenGraphVideoHeight})),e.openGraph.audio&&a.push.apply(a,oJ("audio",e.openGraph.audio)),e.openGraph.locale&&a.push(_.createElement("meta",{key:"og:locale",property:"og:locale",content:e.openGraph.locale})),(e.openGraph.siteName||e.openGraph.site_name)&&a.push(_.createElement("meta",{key:"og:site_name",property:"og:site_name",content:e.openGraph.siteName||e.openGraph.site_name}))}return e.canonical&&a.push(_.createElement("link",{rel:"canonical",href:e.canonical,key:"canonical"})),e.additionalMetaTags&&e.additionalMetaTags.length>0&&e.additionalMetaTags.forEach(function(e){var t,n,r=e.keyOverride,o=oX(e,oK);a.push(_.createElement("meta",oq({key:"meta:"+(null!=(t=null!=(n=null!=r?r:o.name)?n:o.property)?t:o.httpEquiv)},o)))}),null!=(r=e.additionalLinkTags)&&r.length&&e.additionalLinkTags.forEach(function(e){var t,n=e.crossOrigin,r=oX(e,oQ),o="anonymous"===n||"use-credentials"===n||""===n?n:void 0;a.push(_.createElement("link",oq({key:"link"+(null!=(t=r.keyOverride)?t:r.href)+r.rel},r,{crossOrigin:o})))}),a},o1=function(e){return _.createElement(oV(),null,o0(e))},o2=function(e){var t=e.title,n=e.themeColor,r=e.noindex,o=e.nofollow,i=e.robotsProps,a=e.description,s=e.canonical,l=e.openGraph,c=e.facebook,u=e.twitter,d=e.additionalMetaTags,f=e.titleTemplate,h=e.defaultTitle,p=e.mobileAlternate,m=e.languageAlternates,g=e.additionalLinkTags;return _.createElement(_.Fragment,null,_.createElement(o1,{title:t,themeColor:n,noindex:r,nofollow:o,robotsProps:i,description:a,canonical:s,facebook:c,openGraph:l,additionalMetaTags:d,twitter:u,titleTemplate:f,defaultTitle:h,mobileAlternate:p,languageAlternates:m,additionalLinkTags:g}))};function o5({container:e,accept:t,walk:n,enabled:r=!0}){let o=(0,_.useRef)(t),i=(0,_.useRef)(n);(0,_.useEffect)(()=>{o.current=t,i.current=n},[t,n]),(0,rE.e)(()=>{if(!e||!r)return;let t=(0,op.r)(e);if(!t)return;let n=o.current,a=i.current,s=Object.assign(e=>n(e),{acceptNode:n}),l=t.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,s,!1);for(;l.nextNode();)a(l.currentNode)},[e,r,o,i])}function o4(...e){return(0,_.useMemo)(()=>(0,op.r)(...e),[...e])}RegExp("["+Object.keys(Object.freeze({"&":"&","<":"<",">":">",'"':""","'":"'"})).join("")+"]","g");var o6=((d=o6||{})[d.Open=0]="Open",d[d.Closed=1]="Closed",d),o3=((f=o3||{})[f.Pointer=0]="Pointer",f[f.Other=1]="Other",f),o9=((h=o9||{})[h.OpenMenu=0]="OpenMenu",h[h.CloseMenu=1]="CloseMenu",h[h.GoToItem=2]="GoToItem",h[h.Search=3]="Search",h[h.ClearSearch=4]="ClearSearch",h[h.RegisterItem=5]="RegisterItem",h[h.UnregisterItem=6]="UnregisterItem",h);function o8(e,t=e=>e){let n=null!==e.activeItemIndex?e.items[e.activeItemIndex]:null,r=(0,oi.z2)(t(e.items.slice()),e=>e.dataRef.current.domRef.current),o=n?r.indexOf(n):null;return -1===o&&(o=null),{items:r,activeItemIndex:o}}let o7={1:e=>1===e.menuState?e:{...e,activeItemIndex:null,menuState:1},0:e=>0===e.menuState?e:{...e,__demoMode:!1,menuState:0},2:(e,t)=>{var n;let r=o8(e),o=on(t,{resolveItems:()=>r.items,resolveActiveIndex:()=>r.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...e,...r,searchQuery:"",activeItemIndex:o,activationTrigger:null!=(n=t.trigger)?n:1}},3:(e,t)=>{let n=""!==e.searchQuery?0:1,r=e.searchQuery+t.value.toLowerCase(),o=(null!==e.activeItemIndex?e.items.slice(e.activeItemIndex+n).concat(e.items.slice(0,e.activeItemIndex+n)):e.items).find(e=>{var t;return(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(r))&&!e.dataRef.current.disabled}),i=o?e.items.indexOf(o):-1;return -1===i||i===e.activeItemIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeItemIndex:i,activationTrigger:1}},4:e=>""===e.searchQuery?e:{...e,searchQuery:"",searchActiveItemIndex:null},5:(e,t)=>{let n=o8(e,e=>[...e,{id:t.id,dataRef:t.dataRef}]);return{...e,...n}},6:(e,t)=>{let n=o8(e,e=>{let n=e.findIndex(e=>e.id===t.id);return -1!==n&&e.splice(n,1),e});return{...e,...n,activationTrigger:1}}},ie=(0,_.createContext)(null);function it(e){let t=(0,_.useContext)(ie);if(null===t){let t=Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,it),t}return t}function ir(e,t){return(0,r_.E)(t.type,o7,e,t)}ie.displayName="MenuContext";let io=_.Fragment;function ii(e,t){let{__demoMode:n=!1,...r}=e,o=(0,_.useReducer)(ir,{__demoMode:n,menuState:n?0:1,buttonRef:(0,_.createRef)(),itemsRef:(0,_.createRef)(),items:[],searchQuery:"",activeItemIndex:null,activationTrigger:1}),[{menuState:i,itemsRef:a,buttonRef:s},l]=o,c=(0,rC.T)(t);oc([s,a],(e,t)=>{var n;l({type:1}),(0,oi.sP)(t,oi.tJ.Loose)||(e.preventDefault(),null==(n=s.current)||n.focus())},0===i);let u=(0,rP.z)(()=>{l({type:1})}),d=(0,_.useMemo)(()=>({open:0===i,close:u}),[i,u]),f={ref:c};return _.createElement(ie.Provider,{value:o},_.createElement(rk,{value:(0,r_.E)(i,{0:rb.Open,1:rb.Closed})},(0,rv.sY)({ourProps:f,theirProps:r,slot:d,defaultTag:io,name:"Menu"})))}let ia="button";function is(e,t){var n;let r=(0,r9.M)(),{id:o=`headlessui-menu-button-${r}`,...i}=e,[a,s]=it("Menu.Button"),l=(0,rC.T)(a.buttonRef,t),c=rL(),u=(0,rP.z)(e=>{switch(e.key){case r7.R.Space:case r7.R.Enter:case r7.R.ArrowDown:e.preventDefault(),e.stopPropagation(),s({type:0}),c.nextFrame(()=>s({type:2,focus:ot.First}));break;case r7.R.ArrowUp:e.preventDefault(),e.stopPropagation(),s({type:0}),c.nextFrame(()=>s({type:2,focus:ot.Last}))}}),d=(0,rP.z)(e=>{e.key===r7.R.Space&&e.preventDefault()}),f=(0,rP.z)(t=>{if(or(t.currentTarget))return t.preventDefault();e.disabled||(0===a.menuState?(s({type:1}),c.nextFrame(()=>{var e;return null==(e=a.buttonRef.current)?void 0:e.focus({preventScroll:!0})})):(t.preventDefault(),s({type:0})))}),h=(0,_.useMemo)(()=>({open:0===a.menuState}),[a]),p={ref:l,id:o,type:(0,oa.f)(e,a.buttonRef),"aria-haspopup":"menu","aria-controls":null==(n=a.itemsRef.current)?void 0:n.id,"aria-expanded":0===a.menuState,onKeyDown:u,onKeyUp:d,onClick:f};return(0,rv.sY)({ourProps:p,theirProps:i,slot:h,defaultTag:ia,name:"Menu.Button"})}let il="div",ic=rv.AN.RenderStrategy|rv.AN.Static;function iu(e,t){var n,r;let o=(0,r9.M)(),{id:i=`headlessui-menu-items-${o}`,...a}=e,[s,l]=it("Menu.Items"),c=(0,rC.T)(s.itemsRef,t),u=o4(s.itemsRef),d=rL(),f=rw(),h=null!==f?(f&rb.Open)===rb.Open:0===s.menuState;(0,_.useEffect)(()=>{let e=s.itemsRef.current;e&&0===s.menuState&&e!==(null==u?void 0:u.activeElement)&&e.focus({preventScroll:!0})},[s.menuState,s.itemsRef,u]),o5({container:s.itemsRef.current,enabled:0===s.menuState,accept:e=>"menuitem"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let p=(0,rP.z)(e=>{var t,n;switch(d.dispose(),e.key){case r7.R.Space:if(""!==s.searchQuery)return e.preventDefault(),e.stopPropagation(),l({type:3,value:e.key});case r7.R.Enter:if(e.preventDefault(),e.stopPropagation(),l({type:1}),null!==s.activeItemIndex){let{dataRef:e}=s.items[s.activeItemIndex];null==(n=null==(t=e.current)?void 0:t.domRef.current)||n.click()}(0,oi.wI)(s.buttonRef.current);break;case r7.R.ArrowDown:return e.preventDefault(),e.stopPropagation(),l({type:2,focus:ot.Next});case r7.R.ArrowUp:return e.preventDefault(),e.stopPropagation(),l({type:2,focus:ot.Previous});case r7.R.Home:case r7.R.PageUp:return e.preventDefault(),e.stopPropagation(),l({type:2,focus:ot.First});case r7.R.End:case r7.R.PageDown:return e.preventDefault(),e.stopPropagation(),l({type:2,focus:ot.Last});case r7.R.Escape:e.preventDefault(),e.stopPropagation(),l({type:1}),(0,rA.k)().nextFrame(()=>{var e;return null==(e=s.buttonRef.current)?void 0:e.focus({preventScroll:!0})});break;case r7.R.Tab:e.preventDefault(),e.stopPropagation(),l({type:1}),(0,rA.k)().nextFrame(()=>{(0,oi.EO)(s.buttonRef.current,e.shiftKey?oi.TO.Previous:oi.TO.Next)});break;default:1===e.key.length&&(l({type:3,value:e.key}),d.setTimeout(()=>l({type:4}),350))}}),m=(0,rP.z)(e=>{e.key===r7.R.Space&&e.preventDefault()}),g=(0,_.useMemo)(()=>({open:0===s.menuState}),[s]),x={"aria-activedescendant":null===s.activeItemIndex||null==(n=s.items[s.activeItemIndex])?void 0:n.id,"aria-labelledby":null==(r=s.buttonRef.current)?void 0:r.id,id:i,onKeyDown:p,onKeyUp:m,role:"menu",tabIndex:0,ref:c};return(0,rv.sY)({ourProps:x,theirProps:a,slot:g,defaultTag:il,features:ic,visible:h,name:"Menu.Items"})}let id=_.Fragment;function ih(e,t){let n=(0,r9.M)(),{id:r=`headlessui-menu-item-${n}`,disabled:o=!1,...i}=e,[a,s]=it("Menu.Item"),l=null!==a.activeItemIndex&&a.items[a.activeItemIndex].id===r,c=(0,_.useRef)(null),u=(0,rC.T)(t,c);(0,rE.e)(()=>{if(a.__demoMode||0!==a.menuState||!l||0===a.activationTrigger)return;let e=(0,rA.k)();return e.requestAnimationFrame(()=>{var e,t;null==(t=null==(e=c.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})}),e.dispose},[a.__demoMode,c,l,a.menuState,a.activationTrigger,a.activeItemIndex]);let d=ow(c),f=(0,_.useRef)({disabled:o,domRef:c,get textValue(){return d()}});(0,rE.e)(()=>{f.current.disabled=o},[f,o]),(0,rE.e)(()=>(s({type:5,id:r,dataRef:f}),()=>s({type:6,id:r})),[f,r]);let h=(0,rP.z)(()=>{s({type:1})}),p=(0,rP.z)(e=>{if(o)return e.preventDefault();s({type:1}),(0,oi.wI)(a.buttonRef.current)}),m=(0,rP.z)(()=>{if(o)return s({type:2,focus:ot.Nothing});s({type:2,focus:ot.Specific,id:r})}),g=ox(),x=(0,rP.z)(e=>g.update(e)),v=(0,rP.z)(e=>{g.wasMoved(e)&&(o||l||s({type:2,focus:ot.Specific,id:r,trigger:0}))}),y=(0,rP.z)(e=>{g.wasMoved(e)&&(o||l&&s({type:2,focus:ot.Nothing}))}),b=(0,_.useMemo)(()=>({active:l,disabled:o,close:h}),[l,o,h]);return(0,rv.sY)({ourProps:{id:r,ref:u,role:"menuitem",tabIndex:!0===o?void 0:-1,"aria-disabled":!0===o||void 0,disabled:void 0,onClick:p,onFocus:m,onPointerEnter:x,onMouseEnter:x,onPointerMove:v,onMouseMove:v,onPointerLeave:y,onMouseLeave:y},theirProps:i,slot:b,defaultTag:id,name:"Menu.Item"})}let ip=Object.assign((0,rv.yV)(ii),{Button:(0,rv.yV)(is),Items:(0,rv.yV)(iu),Item:(0,rv.yV)(ih)}),im=e=>"object"==typeof e&&null!=e&&1===e.nodeType,ig=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,ix=(e,t)=>{if(e.clientHeight{let t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeightit||i>e&&a=t&&s>=n?i-e-r:a>t&&sn?a-t+o:0,iy=e=>{let t=e.parentElement;return null==t?e.getRootNode().host||null:t},ib=(e,t)=>{var n,r,o,i;if("undefined"==typeof document)return[];let{scrollMode:a,block:s,inline:l,boundary:c,skipOverflowHiddenElements:u}=t,d="function"==typeof c?c:e=>e!==c;if(!im(e))throw TypeError("Invalid target");let f=document.scrollingElement||document.documentElement,h=[],p=e;for(;im(p)&&d(p);){if((p=iy(p))===f){h.push(p);break}null!=p&&p===document.body&&ix(p)&&!ix(document.documentElement)||null!=p&&ix(p,u)&&h.push(p)}let m=null!=(r=null==(n=window.visualViewport)?void 0:n.width)?r:innerWidth,g=null!=(i=null==(o=window.visualViewport)?void 0:o.height)?i:innerHeight,{scrollX:x,scrollY:v}=window,{height:y,width:b,top:w,right:k,bottom:_,left:j}=e.getBoundingClientRect(),{top:E,right:O,bottom:S,left:C}=(e=>{let t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e),T="start"===s||"nearest"===s?w-E:"end"===s?_+S:w+y/2-E+S,A="center"===l?j+b/2-C+O:"end"===l?k+O:j-C,R=[];for(let e=0;e=0&&j>=0&&_<=g&&k<=m&&w>=o&&_<=c&&j>=u&&k<=i)break;let d=getComputedStyle(t),p=parseInt(d.borderLeftWidth,10),E=parseInt(d.borderTopWidth,10),O=parseInt(d.borderRightWidth,10),S=parseInt(d.borderBottomWidth,10),C=0,N=0,I="offsetWidth"in t?t.offsetWidth-t.clientWidth-p-O:0,M="offsetHeight"in t?t.offsetHeight-t.clientHeight-E-S:0,L="offsetWidth"in t?0===t.offsetWidth?0:r/t.offsetWidth:0,Z="offsetHeight"in t?0===t.offsetHeight?0:n/t.offsetHeight:0;if(f===t)C="start"===s?T:"end"===s?T-g:"nearest"===s?iv(v,v+g,g,E,S,v+T,v+T+y,y):T-g/2,N="start"===l?A:"center"===l?A-m/2:"end"===l?A-m:iv(x,x+m,m,p,O,x+A,x+A+b,b),C=Math.max(0,C+v),N=Math.max(0,N+x);else{C="start"===s?T-o-E:"end"===s?T-c+S+M:"nearest"===s?iv(o,c,n,E,S+M,T,T+y,y):T-(o+n/2)+M/2,N="start"===l?A-u-p:"center"===l?A-(u+r/2)+I/2:"end"===l?A-i+O+I:iv(u,i,r,p,O+I,A,A+b,b);let{scrollLeft:e,scrollTop:a}=t;C=0===Z?0:Math.max(0,Math.min(a+C/Z,t.scrollHeight-n/Z+M)),N=0===L?0:Math.max(0,Math.min(e+N/L,t.scrollWidth-r/L+I)),T+=a-C,A+=e-N}R.push({el:t,top:C,left:N})}return R},iw=e=>{var t;return!1===e?{block:"end",inline:"nearest"}:(t=e)===Object(t)&&0!==Object.keys(t).length?e:{block:"start",inline:"nearest"}};function ik(e,t){var n;if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;let r=(e=>{let t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);if("object"==typeof(n=t)&&"function"==typeof n.behavior)return t.behavior(ib(e,t));let o="boolean"==typeof t||null==t?void 0:t.behavior;for(let{el:n,top:i,left:a}of ib(e,iw(t))){let e=i-r.top+r.bottom,t=a-r.left+r.right;n.scroll({top:e,left:t,behavior:o})}}var i_=n(97605),ij=n(96593),iE=n.n(ij),iO={CASE_SENSITIVE_EQUAL:7,EQUAL:6,STARTS_WITH:5,WORD_STARTS_WITH:4,CONTAINS:3,ACRONYM:2,MATCHES:1,NO_MATCH:0};iC.rankings=iO;var iS=function(e,t){return String(e.rankedValue).localeCompare(String(t.rankedValue))};function iC(e,t,n){void 0===n&&(n={});var r=n,o=r.keys,i=r.threshold,a=void 0===i?iO.MATCHES:i,s=r.baseSort,l=void 0===s?iS:s,c=r.sorter;return(void 0===c?function(e){return e.sort(function(e,t){return iI(e,t,l)})}:c)(e.reduce(u,[])).map(function(e){return e.item});function u(e,r,i){var s=iT(r,o,t,n),l=s.rank,c=s.keyThreshold;return l>=(void 0===c?a:c)&&e.push((0,i_.Z)({},s,{item:r,index:i})),e}}function iT(e,t,n,r){if(!t){var o=e;return{rankedValue:o,rank:iA(o,n,r),keyIndex:-1,keyThreshold:r.threshold}}return iP(e,t).reduce(function(e,t,o){var i=e.rank,a=e.rankedValue,s=e.keyIndex,l=e.keyThreshold,c=t.itemValue,u=t.attributes,d=iA(c,n,r),f=a,h=u.minRanking,p=u.maxRanking,m=u.threshold;return d=iO.MATCHES?d=h:d>p&&(d=p),d>i&&(i=d,s=o,l=m,f=c),{rankedValue:f,rank:i,keyIndex:s,keyThreshold:l}},{rankedValue:e,rank:iO.NO_MATCH,keyIndex:-1,keyThreshold:r.threshold})}function iA(e,t,n){return(e=iM(e,n),(t=iM(t,n)).length>e.length)?iO.NO_MATCH:e===t?iO.CASE_SENSITIVE_EQUAL:(e=e.toLowerCase())===(t=t.toLowerCase())?iO.EQUAL:e.startsWith(t)?iO.STARTS_WITH:e.includes(" "+t)?iO.WORD_STARTS_WITH:e.includes(t)?iO.CONTAINS:1===t.length?iO.NO_MATCH:iR(e).includes(t)?iO.ACRONYM:iN(e,t)}function iR(e){var t="";return e.split(" ").forEach(function(e){e.split("-").forEach(function(e){t+=e.substr(0,1)})}),t}function iN(e,t){var n=0,r=0;function o(e,t,r){for(var o=r,i=t.length;o-1))return iO.NO_MATCH;return i(r-a)}function iI(e,t,n){var r=-1,o=1,i=e.rank,a=e.keyIndex,s=t.rank,l=t.keyIndex;return i!==s?i>s?r:o:a===l?n(e,t):at in e?iH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,iq=(e,t)=>{for(var n in t||(t={}))iG.call(t,n)&&iV(e,n,t[n]);if(i$)for(var n of i$(t))iU.call(t,n)&&iV(e,n,t[n]);return e},iX=(e,t)=>iB(e,iW(t)),iK=(e,t)=>{var n={};for(var r in e)iG.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&i$)for(var r of i$(e))0>t.indexOf(r)&&iU.call(e,r)&&(n[r]=e[r]);return n},iQ=(e,t,n)=>new Promise((r,o)=>{var i=e=>{try{s(n.next(e))}catch(e){o(e)}},a=e=>{try{s(n.throw(e))}catch(e){o(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(i,a);s((n=n.apply(e,t)).next())}),iY=(0,_.createContext)({}),iJ=(0,_.createContext)(e=>e),i0=(0,_.createContext)(null),i1=new WeakMap,i2=(0,_.createContext)(i1),i5=()=>(0,_.useContext)(iY),i4=()=>(0,_.useContext)(iJ),i6=()=>(0,_.useContext)(i0),i3=()=>(0,_.useContext)(i2),i9=({children:e})=>{let[t,n]=(0,_.useState)({}),r=(0,_.useRef)(null);return a4&&!r.current&&(r.current=new IntersectionObserver(e=>{n(t=>{let n=iq({},t);for(let t of e)if((null==t?void 0:t.rootBounds)&&i1.has(t.target)){let[e,r]=i1.get(t.target),o=t.boundingClientRect.y+t.boundingClientRect.height<=t.rootBounds.y+t.rootBounds.height,i=t.intersectionRatio>0;n[e]={index:r,aboveHalfViewport:o,insideHalfViewport:i}}let r="",o=1/0,i=-1;for(let e in n)n[e].isActive=!1,n[e].insideHalfViewport&&n[e].indexi&&(i=n[e].index,r=e);return n[r]&&(n[r].isActive=!0),n})},{rootMargin:"0px 0px -50%",threshold:[0,1]})),(0,w.jsx)(iY.Provider,{value:t,children:(0,w.jsx)(iJ.Provider,{value:n,children:(0,w.jsx)(i2.Provider,{value:i1,children:(0,w.jsx)(i0.Provider,{value:r.current,children:e})})})})},i8=(0,_.createContext)({menu:!1,setMenu:()=>!1}),i7=()=>(0,_.useContext)(i8),ae=i8.Provider,at=(0,_.createContext)(iq({title:"",frontMatter:{}},sn));function an(){return(0,_.useContext)(at)}var ar=({children:e,value:{themeConfig:t,pageOpts:n}})=>{let[r,o]=(0,_.useState)(!1);v||(v=iq(iq({},sn),Object.fromEntries(Object.entries(t).map(([e,t])=>[e,t&&"object"==typeof t&&sr.includes(e)?iq(iq({},sn[e]),t):t]))));let i=iX(iq(iX(iq({},v),{flexsearch:n.flexsearch}),"boolean"==typeof n.newNextLinkBehavior&&{newNextLinkBehavior:n.newNextLinkBehavior}),{title:n.title,frontMatter:n.frontMatter}),{nextThemes:a}=i;return(0,w.jsx)(tF,{attribute:"class",disableTransitionOnChange:!0,defaultTheme:a.defaultTheme,storageKey:a.storageKey,forcedTheme:a.forcedTheme,children:(0,w.jsx)(at.Provider,{value:i,children:(0,w.jsx)(ae,{value:{menu:r,setMenu:o},children:e})})})},ao=(0,_.createContext)(e=>e),ai=()=>(0,_.useContext)(ao),aa=ao.Provider,as=Number(tI.i8.split(".")[0]),al=(0,_.forwardRef)(function(e,t){var n=e,{href:r="",children:o,newWindow:i}=n,a=iK(n,["href","children","newWindow"]);let s=an();return i?(0,w.jsxs)("a",iX(iq({ref:t,href:r,target:"_blank",rel:"noreferrer"},a),{children:[o,(0,w.jsx)("span",{className:"nx-sr-only nx-select-none",children:" (opens in a new tab)"})]})):r?as>12||s.newNextLinkBehavior?(0,w.jsx)(tN(),iX(iq({ref:t,href:r},a),{children:o})):(0,w.jsx)(tN(),{href:r,passHref:!0,children:(0,w.jsx)("a",iX(iq({ref:t},a),{children:o}))}):(0,w.jsx)("a",iX(iq({ref:t},a),{children:o}))});al.displayName="Anchor";var ac=({repository:e="",title:t,labels:n})=>{let r=t6()(e);if(!r)throw Error("Invalid `docsRepositoryBase` URL!");return r.resource.includes("gitlab")?`${r.protocol}://${r.resource}/${r.owner}/${r.name}/-/issues/new?issue[title]=${encodeURIComponent(t)}${n?`&issue[description]=/label${encodeURIComponent(` ~${n} -`)}`:""}`:r.resource.includes("github")?`${r.protocol}://${r.resource}/${r.owner}/${r.name}/issues/new?title=${encodeURIComponent(t)}&labels=${n||""}`:"#"};function au(e,t){return e?"function"!=typeof e?e:(0,w.jsx)(e,iq({},t)):null}function ad(e,t={}){return("function"==typeof e?e(t):e)||""}function af(e){let t=(0,_.useRef)(null),n=(0,_.useRef)(null),r=(0,_.useRef)(),o=(0,_.useCallback)(()=>{var o;t.current&&n.current&&(null==(o=r.current)||o.call(r),r.current=rp(t.current,n.current,e).destroy)},[t,n,r,e]);return(0,_.useMemo)(()=>[e=>{t.current=e,o()},e=>{n.current=e,o()}],[t,n,o])}function ah(e=""){let t=an(),n=t6()(t.docsRepositoryBase||"");if(!n)throw Error("Invalid `docsRepositoryBase` URL!");return`${n.href}/${e}`}function ap(){let{banner:e}=an();if(!e.text)return null;let t=`try{if(localStorage.getItem(${JSON.stringify(e.key)})==='0'){document.body.classList.add('nextra-banner-hidden')}}catch(e){}`;return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("script",{dangerouslySetInnerHTML:{__html:t}}),(0,w.jsxs)("div",{className:(0,j.Z)("nextra-banner-container nx-sticky nx-top-0 nx-z-20 nx-flex nx-items-center md:nx-relative","nx-h-[var(--nextra-banner-height)] [body.nextra-banner-hidden_&]:nx-hidden","nx-text-slate-50 dark:nx-text-white nx-bg-neutral-900 dark:nx-bg-[linear-gradient(1deg,#383838,#212121)]","nx-px-2 ltr:nx-pl-10 rtl:nx-pr-10 print:nx-hidden"),children:[(0,w.jsx)("div",{className:"nx-w-full nx-truncate nx-px-4 nx-text-center nx-font-medium nx-text-sm",children:au(e.text)}),e.dismissible&&(0,w.jsx)("button",{type:"button","aria-label":"Dismiss banner",className:"nx-w-8 nx-h-8 nx-opacity-80 hover:nx-opacity-100",onClick:()=>{try{localStorage.setItem(e.key,"0")}catch(e){}document.body.classList.add("nextra-banner-hidden")},children:(0,w.jsx)(A.b0,{className:"nx-mx-auto nx-h-4 nx-w-4"})})]})]})}function am({activePath:e}){return(0,w.jsx)("div",{className:"nextra-breadcrumb nx-mt-1.5 nx-flex nx-items-center nx-gap-1 nx-overflow-hidden nx-text-sm nx-text-gray-500 dark:nx-text-gray-400 contrast-more:nx-text-current",children:e.map((t,n)=>{let r=!t.children||t.withIndexPage,o=n===e.length-1;return(0,w.jsxs)(_.Fragment,{children:[n>0&&(0,w.jsx)(A.LZ,{className:"nx-w-3.5 nx-shrink-0"}),(0,w.jsx)("div",{className:(0,j.Z)("nx-whitespace-nowrap nx-transition-colors",o?"nx-font-medium nx-text-gray-700 contrast-more:nx-font-bold contrast-more:nx-text-current dark:nx-text-gray-100 contrast-more:dark:nx-text-current":["nx-min-w-[24px] nx-overflow-hidden nx-text-ellipsis",r&&"hover:nx-text-gray-900 dark:hover:nx-text-gray-100"]),title:t.title,children:r&&!o?(0,w.jsx)(al,{href:t.route,children:t.title}):t.title})]},t.route+t.name)})})}function ag({children:e,className:t,isOpen:n,horizontal:r=!1}){let o=(0,_.useRef)(null),i=(0,_.useRef)(null),a=(0,_.useRef)(0),s=(0,_.useRef)(n),l=(0,_.useRef)(!0);return(0,_.useEffect)(()=>{let e=o.current,t=i.current,s=a.current;s&&clearTimeout(s),!l.current&&e&&t&&(e.classList.toggle("nx-duration-500",!n),e.classList.toggle("nx-duration-300",n),r?(t.style.width=`${t.clientWidth}px`,e.style.width=`${t.clientWidth}px`):e.style.height=`${t.clientHeight}px`,n?a.current=window.setTimeout(()=>{e.style.removeProperty("height")},300):setTimeout(()=>{r?e.style.width="0px":e.style.height="0px"},0))},[r,n]),(0,_.useEffect)(()=>{l.current=!1},[]),(0,w.jsx)("div",{ref:o,className:"nx-transform-gpu nx-overflow-hidden nx-transition-all nx-ease-in-out motion-reduce:nx-transition-none",style:s.current||r?void 0:{height:0},children:(0,w.jsx)("div",{ref:i,className:(0,j.Z)("nx-transition-opacity nx-duration-500 nx-ease-in-out motion-reduce:nx-transition-none",n?"nx-opacity-100":"nx-opacity-0",t),children:e})})}var ax=(0,_.memo)(function({value:e,match:t}){let n;if(!e)return null;let r=e.split(""),o=RegExp(rx(t.trim()).replaceAll(" ","|"),"ig"),i=0,a=[];for(;(n=o.exec(e))&&0!==o.lastIndex;){let e=r.splice(0,n.index-i).join(""),t=r.splice(0,o.lastIndex-n.index).join("");a.push(e,(0,w.jsx)("span",{className:"nx-text-primary-600",children:t},n.index)),i=o.lastIndex}return(0,w.jsxs)(w.Fragment,{children:[a,r.join("")]})}),av=(0,_.forwardRef)((e,t)=>{var n=e,{className:r,suffix:o}=n,i=iK(n,["className","suffix"]);return(0,w.jsxs)("div",{className:"nx-relative nx-flex nx-items-center nx-text-gray-900 contrast-more:nx-text-gray-800 dark:nx-text-gray-300 contrast-more:dark:nx-text-gray-300",children:[(0,w.jsx)("input",iq({ref:t,spellCheck:!1,className:(0,j.Z)(r,"nx-block nx-w-full nx-appearance-none nx-rounded-lg nx-px-3 nx-py-2 nx-transition-colors","nx-text-base nx-leading-tight md:nx-text-sm","nx-bg-black/[.05] dark:nx-bg-gray-50/10","focus:nx-bg-white dark:focus:nx-bg-dark","placeholder:nx-text-gray-500 dark:placeholder:nx-text-gray-400","contrast-more:nx-border contrast-more:nx-border-current")},i)),o]})});av.displayName="Input";var ay=["input","select","button","textarea"];function ab({className:e,overlayClassName:t,value:n,onChange:r,onActive:o,loading:i,error:a,results:s}){let[l,c]=(0,_.useState)(!1),u=an(),[d,f]=(0,_.useState)(0),h=(0,k.useRouter)(),{setMenu:p}=i7(),m=(0,_.useRef)(null),g=(0,_.useRef)(null),[x,v]=(0,_.useState)(!1),[y,b]=(0,_.useState)(!0);(0,_.useEffect)(()=>{f(0)},[n]),(0,_.useEffect)(()=>{let e=e=>{let t=document.activeElement,n=null==t?void 0:t.tagName.toLowerCase();!m.current||!n||ay.includes(n)||null!=t&&t.isContentEditable||("/"===e.key||"k"===e.key&&(e.metaKey||e.ctrlKey)?(e.preventDefault(),m.current.focus({preventScroll:!0})):"Escape"===e.key&&(c(!1),m.current.blur()))};return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}},[]);let O=(0,_.useCallback)(()=>{var e;null==(e=m.current)||e.blur(),r(""),c(!1),p(!1)},[r,p]),S=(0,_.useCallback)(e=>{let{index:t}=e.currentTarget.dataset;f(Number(t))},[]),C=(0,_.useCallback)(function(e){var t,n,r;switch(e.key){case"ArrowDown":if(d+1 a`);n&&(e.preventDefault(),S({currentTarget:n}),n.focus())}break;case"ArrowUp":if(d-1>=0){let t=null==(n=g.current)?void 0:n.querySelector(`li:nth-of-type(${d}) > a`);t&&(e.preventDefault(),S({currentTarget:t}),t.focus())}break;case"Enter":{let e=s[d];e&&y&&(h.push(e.route),O());break}case"Escape":c(!1),null==(r=m.current)||r.blur()}},[d,s,h,O,S,y]),T=E(),R=l&&!!n,N=(0,w.jsx)(r6,{show:T&&(!l||!!n),as:_.Fragment,enter:"nx-transition-opacity",enterFrom:"nx-opacity-0",enterTo:"nx-opacity-100",leave:"nx-transition-opacity",leaveFrom:"nx-opacity-100",leaveTo:"nx-opacity-0",children:(0,w.jsx)("kbd",{className:(0,j.Z)("nx-absolute nx-my-1.5 nx-select-none ltr:nx-right-1.5 rtl:nx-left-1.5","nx-h-5 nx-rounded nx-bg-white nx-px-1.5 nx-font-mono nx-text-[10px] nx-font-medium nx-text-gray-500","nx-border dark:nx-border-gray-100/20 dark:nx-bg-dark/50","contrast-more:nx-border-current contrast-more:nx-text-current contrast-more:dark:nx-border-current","nx-items-center nx-gap-1 nx-transition-opacity",n?"nx-z-20 nx-flex nx-cursor-pointer hover:nx-opacity-70":"nx-pointer-events-none nx-hidden sm:nx-flex"),title:n?"Clear":void 0,onClick:()=>{r("")},children:n&&x?"ESC":T&&(navigator.userAgent.includes("Macintosh")?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("span",{className:"nx-text-xs",children:"⌘"}),"K"]}):"CTRL K")})}),I=(0,_.useCallback)(e=>{b("compositionend"===e.type)},[]);return(0,w.jsxs)("div",{className:(0,j.Z)("nextra-search nx-relative md:nx-w-64",e),children:[R&&(0,w.jsx)("div",{className:"nx-fixed nx-inset-0 nx-z-10",onClick:()=>c(!1)}),(0,w.jsx)(av,{ref:m,value:n,onChange:e=>{let{value:t}=e.target;r(t),c(!!t)},onFocus:()=>{null==o||o(!0),v(!0)},onBlur:()=>{v(!1)},onCompositionStart:I,onCompositionEnd:I,type:"search",placeholder:ad(u.search.placeholder),onKeyDown:C,suffix:N}),(0,w.jsx)(r6,{show:R,as:r6.Child,leave:"nx-transition-opacity nx-duration-100",leaveFrom:"nx-opacity-100",leaveTo:"nx-opacity-0",children:(0,w.jsx)("ul",{className:(0,j.Z)("nextra-scrollbar","nx-border nx-border-gray-200 nx-bg-white nx-text-gray-100 dark:nx-border-neutral-800 dark:nx-bg-neutral-900","nx-absolute nx-top-full nx-z-20 nx-mt-2 nx-overflow-auto nx-overscroll-contain nx-rounded-xl nx-py-2.5 nx-shadow-xl","nx-max-h-[min(calc(50vh-11rem-env(safe-area-inset-bottom)),400px)]","md:nx-max-h-[min(calc(100vh-5rem-env(safe-area-inset-bottom)),400px)]","nx-inset-x-0 ltr:md:nx-left-auto rtl:md:nx-right-auto","contrast-more:nx-border contrast-more:nx-border-gray-900 contrast-more:dark:nx-border-gray-50",t),ref:g,style:{transition:"max-height .2s ease"},children:a?(0,w.jsxs)("span",{className:"nx-flex nx-select-none nx-justify-center nx-gap-2 nx-p-8 nx-text-center nx-text-sm nx-text-red-500",children:[(0,w.jsx)(A.AV,{className:"nx-h-5 nx-w-5"}),ad(u.search.error)]}):i?(0,w.jsxs)("span",{className:"nx-flex nx-select-none nx-justify-center nx-gap-2 nx-p-8 nx-text-center nx-text-sm nx-text-gray-400",children:[(0,w.jsx)(A.L4,{className:"nx-h-5 nx-w-5 nx-animate-spin"}),au(u.search.loading)]}):s.length>0?s.map(({route:e,prefix:t,children:n,id:r},o)=>(0,w.jsxs)(_.Fragment,{children:[t,(0,w.jsx)("li",{className:(0,j.Z)("nx-mx-2.5 nx-break-words nx-rounded-md","contrast-more:nx-border",o===d?"nx-bg-primary-500/10 nx-text-primary-600 contrast-more:nx-border-primary-500":"nx-text-gray-800 contrast-more:nx-border-transparent dark:nx-text-gray-300"),children:(0,w.jsx)(al,{className:"nx-block nx-scroll-m-12 nx-px-2.5 nx-py-2",href:e,"data-index":o,onFocus:S,onMouseMove:S,onClick:O,onKeyDown:C,children:n})})]},r)):au(u.search.emptyResult)})})]})}var aw={},ak=new Map,a_=(e,t)=>{let n=e+"@"+t;if(ak.has(n))return ak.get(n);let r=aj(e,t);return ak.set(n,r),r},aj=(e,t)=>iQ(void 0,null,function*(){let n=yield fetch(`${e}/_next/static/chunks/nextra-data-${t}.json`),r=yield n.json(),o=new(rg()).Document({cache:100,tokenize:"full",document:{id:"id",index:"content",store:["title"]},context:{resolution:9,depth:2,bidirectional:!0}}),i=new(rg()).Document({cache:100,tokenize:"full",document:{id:"id",index:"content",tag:"pageId",store:["title","content","url","display"]},context:{resolution:9,depth:2,bidirectional:!0}}),a=0;for(let[e,t]of Object.entries(r)){let n="";for(let[r,o]of(++a,Object.entries(t.data))){let[s,l]=r.split("#"),c=e+(s?"#"+s:""),u=l||t.title,d=o.split("\n");i.add(iq({id:c,url:c,title:u,pageId:`page_${a}`,content:u},d[0]&&{display:d[0]}));for(let e=0;e{var n,r;if(!e)return;let[o,i]=aw[t],a=(null==(n=o.search(e,5,{enrich:!0,suggest:!0})[0])?void 0:n.result)||[],s=[],c={};for(let t=0;te._page_rk===t._page_rk?e._section_rk-t._section_rk:c[e._page_rk]!==c[t._page_rk]?c[t._page_rk]-c[e._page_rk]:e._page_rk-t._page_rk).map(e=>({id:`${e._page_rk}_${e._section_rk}`,route:e.route,prefix:e.prefix,children:e.children})))},f=(0,_.useCallback)(e=>iQ(this,null,function*(){if(e&&!aw[t]){o(!0);try{yield a_(n,t)}catch(e){a(!0)}o(!1)}}),[t,n]),h=e=>iQ(this,null,function*(){if(u(e),!r){if(!aw[t]){o(!0);try{yield a_(n,t)}catch(e){a(!0)}o(!1)}d(e)}});return(0,w.jsx)(ab,{loading:r,error:i,value:c,onChange:h,onActive:f,className:e,overlayClassName:"nx-w-screen nx-min-h-[100px] nx-max-w-[min(calc(100vw-2rem),calc(100%+20rem))]",results:s})}function aO({options:e,selected:t,onChange:n,title:r,className:o}){let[i,a]=af({strategy:"fixed",placement:"top-start",modifiers:[{name:"offset",options:{offset:[0,10]}},{name:"sameWidth",enabled:!0,fn({state:e}){e.styles.popper.minWidth=`${e.rects.reference.width}px`},phase:"beforeWrite",requires:["computeStyles"]}]});return(0,w.jsx)(o$,{value:t,onChange:n,children:({open:n})=>(0,w.jsxs)(o$.Button,{ref:i,title:r,className:(0,j.Z)("nx-h-7 nx-rounded-md nx-px-2 nx-text-left nx-text-xs nx-font-medium nx-text-gray-600 nx-transition-colors dark:nx-text-gray-400",n?"nx-bg-gray-200 nx-text-gray-900 dark:nx-bg-primary-100/10 dark:nx-text-gray-50":"hover:nx-bg-gray-100 hover:nx-text-gray-900 dark:hover:nx-bg-primary-100/5 dark:hover:nx-text-gray-50",o),children:[t.name,(0,w.jsx)(aS,{children:(0,w.jsx)(r6,{ref:a,show:n,as:o$.Options,className:"nx-z-20 nx-max-h-64 nx-overflow-auto nx-rounded-md nx-ring-1 nx-ring-black/5 nx-bg-white nx-py-1 nx-text-sm nx-shadow-lg dark:nx-ring-white/20 dark:nx-bg-neutral-800",leave:"nx-transition-opacity",leaveFrom:"nx-opacity-100",leaveTo:"nx-opacity-0",children:e.map(e=>(0,w.jsxs)(o$.Option,{value:e,className:({active:e})=>(0,j.Z)(e?"nx-bg-primary-50 nx-text-primary-600 dark:nx-bg-primary-500/10":"nx-text-gray-800 dark:nx-text-gray-100","nx-relative nx-cursor-pointer nx-whitespace-nowrap nx-py-1.5","nx-transition-colors ltr:nx-pl-3 ltr:nx-pr-9 rtl:nx-pr-3 rtl:nx-pl-9"),children:[e.name,e.key===t.key&&(0,w.jsx)("span",{className:"nx-absolute nx-inset-y-0 nx-flex nx-items-center ltr:nx-right-3 rtl:nx-left-3",children:(0,w.jsx)(A.nQ,{})})]},e.key))})})]})})}function aS(e){return E()?(0,oG.createPortal)(e.children,document.body):null}function aC({lite:e,className:t}){let n=an(),{locale:r,asPath:o}=(0,k.useRouter)(),i=n.i18n;if(!i.length)return null;let a=i.find(e=>r===e.locale);return(0,w.jsx)(aO,{title:"Change language",className:t,onChange:e=>{let t=new Date(Date.now()+31536e6);document.cookie=`NEXT_LOCALE=${e.key}; expires=${t.toUTCString()}; path=/`,location.href=(0,r3.addBasePath)(o)},selected:{key:(null==a?void 0:a.locale)||"",name:(0,w.jsxs)("span",{className:"nx-flex nx-items-center nx-gap-2",children:[(0,w.jsx)(A.n9,{}),(0,w.jsx)("span",{className:e?"nx-hidden":"",children:null==a?void 0:a.text})]})},options:i.map(e=>({key:e.locale,name:e.text}))})}function aT({menu:e}){let t=an();return(0,w.jsxs)("footer",{className:"nx-bg-gray-100 nx-pb-[env(safe-area-inset-bottom)] dark:nx-bg-neutral-900 print:nx-bg-transparent",children:[(0,w.jsxs)("div",{className:(0,j.Z)("nx-mx-auto nx-flex nx-max-w-[90rem] nx-gap-2 nx-py-2 nx-px-4",e&&(t.i18n.length>0||t.darkMode)?"nx-flex":"nx-hidden"),children:[(0,w.jsx)(aC,{}),t.darkMode&&au(t.themeSwitch.component)]}),(0,w.jsx)("hr",{className:"dark:nx-border-neutral-800"}),(0,w.jsx)("div",{className:(0,j.Z)("nx-mx-auto nx-flex nx-max-w-[90rem] nx-justify-center nx-py-12 nx-text-gray-600 dark:nx-text-gray-400 md:nx-justify-start","nx-pl-[max(env(safe-area-inset-left),1.5rem)] nx-pr-[max(env(safe-area-inset-right),1.5rem)]"),children:au(t.footer.text)})]})}function aA(){var e;let t=an(),{resolvedTheme:n}=tz(),r=E(),o="function"==typeof t.head?t.head({}):t.head,{primaryHue:i,primarySaturation:a}=t,{dark:s,light:l}="number"==typeof i?{dark:i,light:i}:i,{dark:c,light:u}="number"==typeof a?{dark:a,light:a}:a,d=t.frontMatter;return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(o2,iq({title:t.title,description:d.description,canonical:d.canonical,openGraph:d.openGraph},null==(e=t.useNextSeoProps)?void 0:e.call(t))),(0,w.jsxs)(oV(),{children:[t.faviconGlyph?(0,w.jsx)("link",{rel:"icon",href:`data:image/svg+xml;utf8,${t.faviconGlyph}`}):null,r?(0,w.jsx)("meta",{name:"theme-color",content:"dark"===n?"#111":"#fff"}):(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("meta",{name:"theme-color",content:"#fff",media:"(prefers-color-scheme: light)"}),(0,w.jsx)("meta",{name:"theme-color",content:"#111",media:"(prefers-color-scheme: dark)"})]}),(0,w.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0, viewport-fit=cover"}),(0,w.jsx)("style",{children:` - :root { - --nextra-primary-hue: ${l}deg; - --nextra-primary-saturation: ${u}%; - --nextra-navbar-height: 4rem; - --nextra-menu-height: 3.75rem; - --nextra-banner-height: 2.5rem; - } - - .dark { - --nextra-primary-hue: ${s}deg; - --nextra-primary-saturation: ${c}%; - } - `}),o]})]})}var aR={link:(0,j.Z)("nx-flex nx-max-w-[50%] nx-items-center nx-gap-1 nx-py-4 nx-text-base nx-font-medium nx-text-gray-600 nx-transition-colors [word-break:break-word] hover:nx-text-primary-600 dark:nx-text-gray-300 md:nx-text-lg"),icon:(0,j.Z)("nx-inline nx-h-5 nx-shrink-0")},aN=({flatDirectories:e,currentIndex:t})=>{let n=an().navigation,r="boolean"==typeof n?{prev:n,next:n}:n,o=r.prev&&e[t-1],i=r.next&&e[t+1];return(o&&!o.isUnderCurrentDocsTree&&(o=!1),i&&!i.isUnderCurrentDocsTree&&(i=!1),o||i)?(0,w.jsxs)("div",{className:(0,j.Z)("nx-mb-8 nx-flex nx-items-center nx-border-t nx-pt-8 dark:nx-border-neutral-800","contrast-more:nx-border-neutral-400 dark:contrast-more:nx-border-neutral-400","print:nx-hidden"),children:[o&&(0,w.jsxs)(al,{href:o.route,title:o.title,className:(0,j.Z)(aR.link,"ltr:nx-pr-4 rtl:nx-pl-4"),children:[(0,w.jsx)(A.LZ,{className:(0,j.Z)(aR.icon,"ltr:nx-rotate-180")}),o.title]}),i&&(0,w.jsxs)(al,{href:i.route,title:i.title,className:(0,j.Z)(aR.link,"ltr:nx-ml-auto ltr:nx-pl-4 ltr:nx-text-right rtl:nx-mr-auto rtl:nx-pr-4 rtl:nx-text-left"),children:[i.title,(0,w.jsx)(A.LZ,{className:(0,j.Z)(aR.icon,"rtl:nx-rotate-180")})]})]}):null},aI={link:(0,j.Z)("nx-text-sm contrast-more:nx-text-gray-700 contrast-more:dark:nx-text-gray-100"),active:(0,j.Z)("nx-font-medium nx-subpixel-antialiased"),inactive:(0,j.Z)("nx-text-gray-600 hover:nx-text-gray-800 dark:nx-text-gray-400 dark:hover:nx-text-gray-200")};function aM({className:e,menu:t,children:n}){let{items:r}=t,o=Object.fromEntries((t.children||[]).map(e=>[e.name,e]));return(0,w.jsx)("div",{className:"nx-relative nx-inline-block",children:(0,w.jsxs)(ip,{children:[(0,w.jsx)(ip.Button,{className:(0,j.Z)(e,"-nx-ml-2 nx-hidden nx-items-center nx-whitespace-nowrap nx-rounded nx-p-2 md:nx-inline-flex",aI.inactive),children:n}),(0,w.jsx)(r6,{leave:"nx-transition-opacity",leaveFrom:"nx-opacity-100",leaveTo:"nx-opacity-0",children:(0,w.jsx)(ip.Items,{className:"nx-absolute nx-right-0 nx-z-20 nx-mt-1 nx-max-h-64 nx-min-w-full nx-overflow-auto nx-rounded-md nx-ring-1 nx-ring-black/5 nx-bg-white nx-py-1 nx-text-sm nx-shadow-lg dark:nx-ring-white/20 dark:nx-bg-neutral-800",children:Object.entries(r||{}).map(([e,n])=>{var r;return(0,w.jsx)(ip.Item,{children:(0,w.jsx)(al,{href:n.href||(null==(r=o[e])?void 0:r.route)||t.route+"/"+e,className:(0,j.Z)("nx-relative nx-hidden nx-w-full nx-select-none nx-whitespace-nowrap nx-text-gray-600 hover:nx-text-gray-900 dark:nx-text-gray-400 dark:hover:nx-text-gray-100 md:nx-inline-block","nx-py-1.5 nx-transition-colors ltr:nx-pl-3 ltr:nx-pr-9 rtl:nx-pr-3 rtl:nx-pl-9"),newWindow:n.newWindow,children:n.title||e})},e)})})})]})})}function aL({flatDirectories:e,items:t}){let n=an(),r=C(),{menu:o,setMenu:i}=i7();return(0,w.jsxs)("div",{className:"nextra-nav-container nx-sticky nx-top-0 nx-z-20 nx-w-full nx-bg-transparent print:nx-hidden",children:[(0,w.jsx)("div",{className:(0,j.Z)("nextra-nav-container-blur","nx-pointer-events-none nx-absolute nx-z-[-1] nx-h-full nx-w-full nx-bg-white dark:nx-bg-dark","nx-shadow-[0_2px_4px_rgba(0,0,0,.02),0_1px_0_rgba(0,0,0,.06)] dark:nx-shadow-[0_-1px_0_rgba(255,255,255,.1)_inset]","contrast-more:nx-shadow-[0_0_0_1px_#000] contrast-more:dark:nx-shadow-[0_0_0_1px_#fff]")}),(0,w.jsxs)("nav",{className:"nx-mx-auto nx-flex nx-h-[var(--nextra-navbar-height)] nx-max-w-[90rem] nx-items-center nx-justify-end nx-gap-2 nx-pl-[max(env(safe-area-inset-left),1.5rem)] nx-pr-[max(env(safe-area-inset-right),1.5rem)]",children:[n.logoLink?(0,w.jsx)(al,{href:"string"==typeof n.logoLink?n.logoLink:"/",className:"nx-flex nx-items-center hover:nx-opacity-75 ltr:nx-mr-auto rtl:nx-ml-auto",children:au(n.logo)}):(0,w.jsx)("div",{className:"nx-flex nx-items-center ltr:nx-mr-auto rtl:nx-ml-auto",children:au(n.logo)}),t.map(e=>{if("hidden"===e.display)return null;if("menu"===e.type){let t=e;return(0,w.jsxs)(aM,{className:(0,j.Z)(aI.link,"nx-flex nx-gap-1",aI.inactive),menu:t,children:[t.title,(0,w.jsx)(A.LZ,{className:"nx-h-[18px] nx-min-w-[18px] nx-rounded-sm nx-p-0.5",pathClassName:"nx-origin-center nx-transition-transform nx-rotate-90"})]},t.title)}let t=e,n=t.href||t.route||"#";t.children&&(n=(t.withIndexPage?t.route:t.firstChildRoute)||n);let o=t.route===r||r.startsWith(t.route+"/");return(0,w.jsxs)(al,{href:n,className:(0,j.Z)(aI.link,"nx-relative -nx-ml-2 nx-hidden nx-whitespace-nowrap nx-p-2 md:nx-inline-block",!o||t.newWindow?aI.inactive:aI.active),newWindow:t.newWindow,"aria-current":!t.newWindow&&o,children:[(0,w.jsx)("span",{className:"nx-absolute nx-inset-x-0 nx-text-center",children:t.title}),(0,w.jsx)("span",{className:"nx-invisible nx-font-medium",children:t.title})]},n)}),au(n.search.component,{directories:e,className:"nx-hidden md:nx-inline-block mx-min-w-[200px]"}),n.project.link?(0,w.jsx)(al,{className:"nx-p-2 nx-text-current",href:n.project.link,newWindow:!0,children:au(n.project.icon)}):null,n.chat.link?(0,w.jsx)(al,{className:"nx-p-2 nx-text-current",href:n.chat.link,newWindow:!0,children:au(n.chat.icon)}):null,au(n.navbar.extraContent),(0,w.jsx)("button",{type:"button","aria-label":"Menu",className:"nextra-hamburger -nx-mr-2 nx-rounded nx-p-2 active:nx-bg-gray-400/20 md:nx-hidden",onClick:()=>i(!o),children:(0,w.jsx)(A.Oq,{className:(0,j.Z)({open:o})})})]})]})}var aZ=Object.create(null),aP=(0,_.createContext)(null),aD=(0,_.createContext)(null),az=(0,_.createContext)(0),aF=(0,_.memo)(function(e){let t=(0,_.useContext)(az);return(0,w.jsx)(az.Provider,{value:t+1,children:(0,w.jsx)(aB,iq({},e))})}),aH={link:(0,j.Z)("nx-flex nx-rounded nx-px-2 nx-py-1.5 nx-text-sm nx-transition-colors [word-break:break-word]","nx-cursor-pointer [-webkit-tap-highlight-color:transparent] [-webkit-touch-callout:none] contrast-more:nx-border"),inactive:(0,j.Z)("nx-text-gray-500 hover:nx-bg-gray-100 hover:nx-text-gray-900","dark:nx-text-neutral-400 dark:hover:nx-bg-primary-100/5 dark:hover:nx-text-gray-50","contrast-more:nx-text-gray-900 contrast-more:dark:nx-text-gray-50","contrast-more:nx-border-transparent contrast-more:hover:nx-border-gray-900 contrast-more:dark:hover:nx-border-gray-50"),active:(0,j.Z)("nx-bg-primary-100 nx-font-semibold nx-text-primary-800 dark:nx-bg-primary-400/10 dark:nx-text-primary-600","contrast-more:nx-border-primary-500 contrast-more:dark:nx-border-primary-500"),list:(0,j.Z)("nx-flex nx-flex-col nx-gap-1"),border:(0,j.Z)("nx-relative before:nx-absolute before:nx-inset-y-1",'before:nx-w-px before:nx-bg-gray-200 before:nx-content-[""] dark:before:nx-bg-neutral-800',"ltr:nx-pl-3 ltr:before:nx-left-0 rtl:nx-pr-3 rtl:before:nx-right-0")};function aB({item:e,anchors:t}){let[n]=C().split("#"),r=[n,n+"/"].includes(e.route+"/"),o=r||n.startsWith(e.route+"/"),i=(0,_.useContext)(aP),a=!!(null==i?void 0:i.startsWith(e.route+"/")),s=(0,_.useContext)(az),{setMenu:l}=i7(),c=an(),{theme:u}=e,d=void 0===aZ[e.route]?r||o||a||(u&&"collapsed"in u?!u.collapsed:s{let t=()=>{(o||a)&&(aZ[e.route]=!0)},n=()=>{o&&a?aZ[e.route]=!0:delete aZ[e.route]};c.sidebar.autoCollapse?n():t()},[o,a,e.route,c.sidebar.autoCollapse]),"menu"===e.type){let t=e,n=Object.fromEntries((t.children||[]).map(e=>[e.name,e]));e.children=Object.entries(t.items||{}).map(([e,r])=>{let o=n[e]||iX(iq({name:e},"locale"in t&&{locale:t.locale}),{route:t.route+"/"+e});return iq(iq({},o),r)})}let h="withIndexPage"in e&&e.withIndexPage,p=h?al:"button";return(0,w.jsxs)("li",{className:(0,j.Z)({open:d,active:r}),children:[(0,w.jsxs)(p,{href:h?e.route:void 0,className:(0,j.Z)("nx-items-center nx-justify-between nx-gap-2",!h&&"nx-text-left nx-w-full",aH.link,r?aH.active:aH.inactive),onClick:t=>{let n=["svg","path"].includes(t.target.tagName.toLowerCase());if(n&&t.preventDefault(),h){r||n?aZ[e.route]=!d:(aZ[e.route]=!0,l(!1)),f({});return}r||(aZ[e.route]=!d,f({}))},children:[au(c.sidebar.titleComponent,{title:e.title,type:e.type,route:e.route}),(0,w.jsx)(A.LZ,{className:"nx-h-[18px] nx-min-w-[18px] nx-rounded-sm nx-p-0.5 hover:nx-bg-gray-800/5 dark:hover:nx-bg-gray-100/5",pathClassName:(0,j.Z)("nx-origin-center nx-transition-transform rtl:-nx-rotate-180",d&&"ltr:nx-rotate-90 rtl:nx-rotate-[-270deg]")})]}),(0,w.jsx)(ag,{className:"ltr:nx-pr-0 rtl:nx-pl-0 nx-pt-1",isOpen:d,children:Array.isArray(e.children)?(0,w.jsx)(aG,{className:(0,j.Z)(aH.border,"ltr:nx-ml-3 rtl:nx-mr-3"),directories:e.children,base:e.route,anchors:t}):null})]})}function aW({title:e}){let t=an();return(0,w.jsx)("li",{className:(0,j.Z)("[word-break:break-word]",e?"nx-mt-5 nx-mb-2 nx-px-2 nx-py-1.5 nx-text-sm nx-font-semibold nx-text-gray-900 first:nx-mt-0 dark:nx-text-gray-100":"nx-my-4"),children:e?au(t.sidebar.titleComponent,{title:e,type:"separator",route:""}):(0,w.jsx)("hr",{className:"nx-mx-2 nx-border-t nx-border-gray-200 dark:nx-border-primary-100/10"})})}function a$({item:e,anchors:t}){let n=C(),r=(0,_.useContext)(aD),o=e.route&&[n,n+"/"].includes(e.route+"/"),i=i5(),{setMenu:a}=i7(),s=an();return"separator"===e.type?(0,w.jsx)(aW,{title:e.title}):(0,w.jsxs)("li",{className:(0,j.Z)(aH.list,{active:o}),children:[(0,w.jsx)(al,{href:e.href||e.route,newWindow:e.newWindow,className:(0,j.Z)(aH.link,o?aH.active:aH.inactive),onClick:()=>{a(!1)},onFocus:()=>{null==r||r(e.route)},onBlur:()=>{null==r||r(null)},children:au(s.sidebar.titleComponent,{title:e.title,type:e.type,route:e.route})}),o&&t.length>0&&(0,w.jsx)("ul",{className:(0,j.Z)(aH.list,aH.border,"ltr:nx-ml-3 rtl:nx-mr-3"),children:t.map(({id:e,value:t})=>{var n;return(0,w.jsx)("li",{children:(0,w.jsx)("a",{href:`#${e}`,className:(0,j.Z)(aH.link,'nx-flex nx-gap-2 before:nx-opacity-25 before:nx-content-["#"]',(null==(n=i[e])?void 0:n.isActive)?aH.active:aH.inactive),onClick:()=>{a(!1)},children:t})},e)})})]})}function aG({directories:e,anchors:t,className:n,onlyCurrentDocs:r}){return(0,w.jsx)("ul",{className:(0,j.Z)(aH.list,n),children:e.map(e=>!r||e.isUnderCurrentDocsTree?"menu"===e.type||e.children&&(e.children.length||!e.withIndexPage)?(0,w.jsx)(aF,{item:e,anchors:t},e.name):(0,w.jsx)(a$,{item:e,anchors:t},e.name):null)})}function aU({docsDirectories:e,flatDirectories:t,fullDirectories:n,asPopover:r=!1,headings:o,includePlaceholder:i}){let a=an(),{menu:s,setMenu:l}=i7(),c=(0,k.useRouter)(),[u,d]=(0,_.useState)(null),[f,h]=(0,_.useState)(!0),[p,m]=(0,_.useState)(!1),g=(0,_.useMemo)(()=>o.filter(e=>2===e.depth),[o]),x=(0,_.useRef)(null),v=(0,_.useRef)(null),y=E();(0,_.useEffect)(()=>{s?document.body.classList.add("nx-overflow-hidden","md:nx-overflow-auto"):document.body.classList.remove("nx-overflow-hidden","md:nx-overflow-auto")},[s]),(0,_.useEffect)(()=>{var e;let t=null==(e=x.current)?void 0:e.querySelector("li.active");if(t&&(window.innerWidth>767||s)){let e=()=>{ik(t,{block:"center",inline:"center",scrollMode:"always",boundary:v.current})};s?setTimeout(e,300):e()}},[s]),(0,_.useEffect)(()=>{l(!1)},[c.asPath,l]);let b=a.i18n.length>0,O=a.darkMode||b||a.sidebar.toggleButton;return(0,w.jsxs)(w.Fragment,{children:[i&&r?(0,w.jsx)("div",{className:"max-xl:nx-hidden nx-h-0 nx-w-64 nx-shrink-0"}):null,(0,w.jsx)("div",{className:(0,j.Z)("motion-reduce:nx-transition-none [transition:background-color_1.5s_ease]",s?"nx-fixed nx-inset-0 nx-z-10 nx-bg-black/80 dark:nx-bg-black/60":"nx-bg-transparent"),onClick:()=>l(!1)}),(0,w.jsxs)("aside",{className:(0,j.Z)("nextra-sidebar-container nx-flex nx-flex-col","md:nx-top-16 md:nx-shrink-0 motion-reduce:nx-transform-none","nx-transform-gpu nx-transition-all nx-ease-in-out","print:nx-hidden",f?"md:nx-w-64":"md:nx-w-20",r?"md:nx-hidden":"md:nx-sticky md:nx-self-start",s?"max-md:[transform:translate3d(0,0,0)]":"max-md:[transform:translate3d(0,-100%,0)]"),ref:v,children:[(0,w.jsx)("div",{className:"nx-px-4 nx-pt-4 md:nx-hidden",children:au(a.search.component,{directories:t})}),(0,w.jsx)(aP.Provider,{value:u,children:(0,w.jsx)(aD.Provider,{value:e=>{d(e)},children:(0,w.jsxs)("div",{className:(0,j.Z)("nx-overflow-y-auto nx-overflow-x-hidden","nx-p-4 nx-grow md:nx-h-[calc(100vh-var(--nextra-navbar-height)-var(--nextra-menu-height))]",f?"nextra-scrollbar":"no-scrollbar"),ref:x,children:[(!r||!f)&&(0,w.jsx)(ag,{isOpen:f,horizontal:!0,children:(0,w.jsx)(aG,{className:"nextra-menu-desktop max-md:nx-hidden",directories:e,anchors:a.toc.float?[]:g,onlyCurrentDocs:!0})}),y&&window.innerWidth<768&&(0,w.jsx)(aG,{className:"nextra-menu-mobile md:nx-hidden",directories:n,anchors:g})]})})}),O&&(0,w.jsxs)("div",{className:(0,j.Z)("nx-sticky nx-bottom-0","nx-bg-white dark:nx-bg-dark","nx-mx-4 nx-py-4 nx-shadow-[0_-12px_16px_#fff]","nx-flex nx-items-center nx-gap-2","dark:nx-border-neutral-800 dark:nx-shadow-[0_-12px_16px_#111]","contrast-more:nx-border-neutral-400 contrast-more:nx-shadow-none contrast-more:dark:nx-shadow-none",f?(0,j.Z)(b&&"nx-justify-end","nx-border-t"):"nx-py-4 nx-flex-wrap nx-justify-center"),"data-toggle-animation":p?f?"show":"hide":"off",children:[(0,w.jsx)(aC,{lite:!f,className:(0,j.Z)(f?"nx-grow":"max-md:nx-grow")}),a.darkMode&&(0,w.jsx)("div",{className:f&&!b?"nx-grow nx-flex nx-flex-col":"",children:au(a.themeSwitch.component,{lite:!f||b})}),a.sidebar.toggleButton&&(0,w.jsx)("button",{title:f?"Hide sidebar":"Show sidebar",className:"max-md:nx-hidden nx-h-7 nx-rounded-md nx-transition-colors nx-text-gray-600 dark:nx-text-gray-400 nx-px-2 hover:nx-bg-gray-100 hover:nx-text-gray-900 dark:hover:nx-bg-primary-100/5 dark:hover:nx-text-gray-50",onClick:()=>{h(!f),m(!0)},children:(0,w.jsx)(A.Qq,{isOpen:f})})]})]})]})}var aV="reach-skip-nav",aq="Skip to content";(0,_.forwardRef)(function(e,t){var n=e,{className:r,id:o,label:i=aq,styled:a}=n,s=iK(n,["className","id","label","styled"]);let l=void 0===r?a?(0,j.Z)("nx-sr-only","focus:nx-not-sr-only focus:nx-fixed focus:nx-z-50 focus:nx-m-3 focus:nx-ml-4 focus:nx-h-[calc(var(--nextra-navbar-height)-1.5rem)] focus:nx-rounded-lg focus:nx-border focus:nx-px-3 focus:nx-py-2 focus:nx-align-middle focus:nx-text-sm focus:nx-font-bold","focus:nx-text-gray-900 focus:dark:nx-text-gray-100","focus:nx-bg-white focus:dark:nx-bg-neutral-900","focus:nx-border-neutral-400 focus:dark:nx-border-neutral-800"):"":r;return(0,w.jsx)("a",iX(iq({},s),{ref:t,href:`#${o||aV}`,className:l,"data-reach-skip-link":"",children:i}))}).displayName="SkipNavLink";var aX=(0,_.forwardRef)(function(e,t){var n=e,{id:r}=n,o=iK(n,["id"]);return(0,w.jsx)("div",iX(iq({},o),{ref:t,id:r||aV}))});aX.displayName="SkipNavContent";var aK=tA.strictObject({light:tA.string(),dark:tA.string(),system:tA.string()});function aQ({lite:e,className:t}){let{setTheme:n,resolvedTheme:r,theme:o=""}=tz(),i=E(),a=an().themeSwitch,s=i&&"dark"===r?A.kL:A.NW,l="function"==typeof a.useOptions?a.useOptions():a.useOptions;return(0,w.jsx)(aO,{className:t,title:"Change theme",options:[{key:"light",name:l.light},{key:"dark",name:l.dark},{key:"system",name:l.system}],onChange:e=>{n(e.key)},selected:{key:o,name:(0,w.jsxs)("div",{className:"nx-flex nx-items-center nx-gap-2 nx-capitalize",children:[(0,w.jsx)(s,{}),(0,w.jsx)("span",{className:e?"md:nx-hidden":"",children:i?l[o]:l.light})]})}})}function aY(){window.scrollTo({top:0,behavior:"smooth"})}function aJ({className:e}){let t=(0,_.useRef)(null);return(0,_.useEffect)(()=>{function e(){var e;let{scrollTop:n}=document.documentElement;null==(e=t.current)||e.classList.toggle("nx-opacity-0",n<300)}return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}},[]),(0,w.jsxs)("button",{ref:t,"aria-hidden":"true",onClick:aY,className:(0,j.Z)("nx-flex nx-items-center nx-gap-1.5 nx-transition nx-opacity-0",e),children:["Scroll to top",(0,w.jsx)(A.LZ,{className:"-nx-rotate-90 nx-w-3.5 nx-h-3.5 nx-border nx-rounded-full nx-border-current"})]})}var a0=(0,j.Z)("nx-text-xs nx-font-medium nx-text-gray-500 hover:nx-text-gray-900 dark:nx-text-gray-400 dark:hover:nx-text-gray-100","contrast-more:nx-text-gray-800 contrast-more:dark:nx-text-gray-50");function a1({headings:e,filePath:t}){var n;let r=i5(),o=an(),i=(0,_.useRef)(null),a=(0,_.useMemo)(()=>e.filter(e=>e.depth>1),[e]),s=a.length>0,l=!!(o.feedback.content||o.editLink.component||o.toc.extraContent),c=null==(n=Object.entries(r).find(([,{isActive:e}])=>e))?void 0:n[0];return(0,_.useEffect)(()=>{var e;if(!c)return;let t=null==(e=i.current)?void 0:e.querySelector(`li > a[href="#${c}"]`);t&&ik(t,{behavior:"smooth",block:"center",inline:"center",scrollMode:"always",boundary:i.current})},[c]),(0,w.jsxs)("div",{ref:i,className:(0,j.Z)("nextra-scrollbar nx-sticky nx-top-16 nx-overflow-y-auto nx-pr-4 nx-pt-6 nx-text-sm [hyphens:auto]","nx-max-h-[calc(100vh-var(--nextra-navbar-height)-env(safe-area-inset-bottom))] ltr:-nx-mr-4 rtl:-nx-ml-4"),children:[s&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("p",{className:"nx-mb-4 nx-font-semibold nx-tracking-tight",children:au(o.toc.title)}),(0,w.jsx)("ul",{children:a.map(({id:e,value:t,depth:n})=>{var i,a,s,l;return(0,w.jsx)("li",{className:"nx-my-2 nx-scroll-my-6 nx-scroll-py-6",children:(0,w.jsx)("a",{href:`#${e}`,className:(0,j.Z)({2:"nx-font-semibold",3:"ltr:nx-pl-4 rtl:nx-pr-4",4:"ltr:nx-pl-8 rtl:nx-pr-8",5:"ltr:nx-pl-12 rtl:nx-pr-12",6:"ltr:nx-pl-16 rtl:nx-pr-16"}[n],"nx-inline-block",(null==(i=r[e])?void 0:i.isActive)?"nx-text-primary-600 nx-subpixel-antialiased contrast-more:!nx-text-primary-600":"nx-text-gray-500 hover:nx-text-gray-900 dark:nx-text-gray-400 dark:hover:nx-text-gray-300","contrast-more:nx-text-gray-900 contrast-more:nx-underline contrast-more:dark:nx-text-gray-50 nx-w-full nx-break-words"),children:null!=(l=null==(s=(a=o.toc).headingComponent)?void 0:s.call(a,{id:e,children:t}))?l:t})},e)})})]}),l&&(0,w.jsxs)("div",{className:(0,j.Z)(s&&"nx-mt-8 nx-border-t nx-bg-white nx-pt-8 nx-shadow-[0_-12px_16px_white] dark:nx-bg-dark dark:nx-shadow-[0_-12px_16px_#111]","nx-sticky nx-bottom-0 nx-flex nx-flex-col nx-items-start nx-gap-2 nx-pb-8 dark:nx-border-neutral-800","contrast-more:nx-border-t contrast-more:nx-border-neutral-400 contrast-more:nx-shadow-none contrast-more:dark:nx-border-neutral-400"),children:[o.feedback.content?(0,w.jsx)(al,{className:a0,href:o.feedback.useLink(),newWindow:!0,children:au(o.feedback.content)}):null,au(o.editLink.component,{filePath:t,className:a0,children:au(o.editLink.text)}),au(o.toc.extraContent),o.toc.backToTop&&(0,w.jsx)(aJ,{className:a0})]})]})}function a2({className:e,directories:t}){let[n,r]=(0,_.useState)(""),o=(0,_.useMemo)(()=>n?iC(t,n,{keys:["title"]}).map(({route:e,title:t})=>({id:e+t,route:e,children:(0,w.jsx)(ax,{value:t,match:n})})):[],[n,t]);return(0,w.jsx)(ab,{value:n,onChange:r,className:e,overlayClassName:"nx-w-full",results:o})}var a5="en-US",a4="undefined"!=typeof window;function a6(e){return null==e||"string"==typeof e||a3(e)||(0,_.isValidElement)(e)}function a3(e){return"function"==typeof e}var a9=tA.array(tA.strictObject({direction:tA.enum(["ltr","rtl"]).optional(),locale:tA.string(),text:tA.string()})),a8=[a6,{message:"Must be React.ReactNode or React.FC"}],a7=[a3,{message:"Must be React.FC"}];tA.strictObject({banner:tA.strictObject({dismissible:tA.boolean(),key:tA.string(),text:tA.custom(...a8).optional()}),chat:tA.strictObject({icon:tA.custom(...a8),link:tA.string().startsWith("https://").optional()}),components:tA.record(tA.custom(...a7)).optional(),darkMode:tA.boolean(),direction:tA.enum(["ltr","rtl"]),docsRepositoryBase:tA.string().startsWith("https://"),editLink:tA.strictObject({component:tA.custom(...a7).or(tA.null()),text:tA.custom(...a8)}),faviconGlyph:tA.string().optional(),feedback:tA.strictObject({content:tA.custom(...a8),labels:tA.string(),useLink:tA.function().returns(tA.string())}),footer:tA.strictObject({component:tA.custom(...a8),text:tA.custom(...a8)}),gitTimestamp:tA.custom(...a8),head:tA.custom(...a8),i18n:a9,logo:tA.custom(...a8),logoLink:tA.boolean().or(tA.string()),main:tA.custom(...a7).optional(),navbar:tA.strictObject({component:tA.custom(...a8),extraContent:tA.custom(...a8).optional()}),navigation:tA.boolean().or(tA.strictObject({next:tA.boolean(),prev:tA.boolean()})),nextThemes:tA.strictObject({defaultTheme:tA.string(),forcedTheme:tA.string().optional(),storageKey:tA.string()}),notFound:tA.strictObject({content:tA.custom(...a8),labels:tA.string()}),primaryHue:tA.number().or(tA.strictObject({dark:tA.number(),light:tA.number()})),primarySaturation:tA.number().or(tA.strictObject({dark:tA.number(),light:tA.number()})),project:tA.strictObject({icon:tA.custom(...a8),link:tA.string().startsWith("https://").optional()}),search:tA.strictObject({component:tA.custom(...a8),emptyResult:tA.custom(...a8),error:tA.string().or(tA.function().returns(tA.string())),loading:tA.custom(...a8),placeholder:tA.string().or(tA.function().returns(tA.string()))}),serverSideError:tA.strictObject({content:tA.custom(...a8),labels:tA.string()}),sidebar:tA.strictObject({autoCollapse:tA.boolean().optional(),defaultMenuCollapseLevel:tA.number().min(1).int(),titleComponent:tA.custom(...a8),toggleButton:tA.boolean()}),themeSwitch:tA.strictObject({component:tA.custom(...a8),useOptions:aK.or(tA.function().returns(aK))}),toc:tA.strictObject({backToTop:tA.boolean(),component:tA.custom(...a8),extraContent:tA.custom(...a8),float:tA.boolean(),headingComponent:tA.custom(...a7).optional(),title:tA.custom(...a8)}),useNextSeoProps:tA.custom(a3)}).deepPartial().extend({i18n:a9.optional()});var se={"en-US":"Loading",fr:"Сhargement",ru:"Загрузка","zh-CN":"正在加载"},st={"en-US":"Search documentation",fr:"Rechercher documents",ru:"Поиск документации","zh-CN":"搜索文档"},sn={banner:{dismissible:!0,key:"nextra-banner"},chat:{icon:(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(A.D7,{}),(0,w.jsx)("span",{className:"nx-sr-only",children:"Discord"})]})},darkMode:!0,direction:"ltr",docsRepositoryBase:"https://github.com/shuding/nextra",editLink:{component:function({className:e,filePath:t,children:n}){let r=ah(t);return r?(0,w.jsx)(al,{className:e,href:r,children:n}):null},text:"Edit this page"},feedback:{content:"Question? Give us feedback →",labels:"feedback",useLink(){let e=an();return ac({labels:e.feedback.labels,repository:e.docsRepositoryBase,title:`Feedback for \u201C${e.title}\u201D`})}},footer:{component:aT,text:`MIT ${new Date().getFullYear()} \xa9 Nextra.`},gitTimestamp:function({timestamp:e}){let{locale:t=a5}=(0,k.useRouter)();return(0,w.jsxs)(w.Fragment,{children:["Last updated on"," ",(0,w.jsx)("time",{dateTime:e.toISOString(),children:e.toLocaleDateString(t,{day:"numeric",month:"long",year:"numeric"})})]})},head:(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("meta",{name:"msapplication-TileColor",content:"#fff"}),(0,w.jsx)("meta",{httpEquiv:"Content-Language",content:"en"}),(0,w.jsx)("meta",{name:"description",content:"Nextra: the next docs builder"}),(0,w.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,w.jsx)("meta",{name:"twitter:site",content:"@shuding_"}),(0,w.jsx)("meta",{property:"og:title",content:"Nextra: the next docs builder"}),(0,w.jsx)("meta",{property:"og:description",content:"Nextra: the next docs builder"}),(0,w.jsx)("meta",{name:"apple-mobile-web-app-title",content:"Nextra"})]}),i18n:[],logo:(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("span",{className:"nx-font-extrabold",children:"Nextra"}),(0,w.jsx)("span",{className:"nx-ml-2 nx-hidden nx-font-normal nx-text-gray-600 md:nx-inline",children:"The Next Docs Builder"})]}),logoLink:!0,navbar:{component:aL},navigation:!0,nextThemes:{defaultTheme:"system",storageKey:"theme"},notFound:{content:"Submit an issue about broken link →",labels:"bug"},primaryHue:{dark:204,light:212},primarySaturation:{dark:100,light:100},project:{icon:(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(A.fy,{}),(0,w.jsx)("span",{className:"nx-sr-only",children:"GitHub"})]})},search:{component:function({className:e,directories:t}){return an().flexsearch?(0,w.jsx)(aE,{className:e}):(0,w.jsx)(a2,{className:e,directories:t})},emptyResult:(0,w.jsx)("span",{className:"nx-block nx-select-none nx-p-8 nx-text-center nx-text-sm nx-text-gray-400",children:"No results found."}),error:"Failed to load search index.",loading:function(){let{locale:e,defaultLocale:t=a5}=(0,k.useRouter)(),n=e&&se[e]||se[t];return(0,w.jsxs)(w.Fragment,{children:[n,"…"]})},placeholder:function(){let{locale:e,defaultLocale:t=a5}=(0,k.useRouter)(),n=e&&st[e]||st[t];return`${n}\u2026`}},serverSideError:{content:"Submit an issue about error in url →",labels:"bug"},sidebar:{defaultMenuCollapseLevel:2,titleComponent:({title:e})=>(0,w.jsx)(w.Fragment,{children:e}),toggleButton:!1},themeSwitch:{component:aQ,useOptions(){let{locale:e}=(0,k.useRouter)();return"zh-CN"===e?{dark:"深色主题",light:"浅色主题",system:"系统默认"}:{dark:"Dark",light:"Light",system:"System"}}},toc:{backToTop:!1,component:a1,float:!0,title:"On This Page"},useNextSeoProps:()=>({titleTemplate:"%s – Nextra"})},sr=Object.entries(sn).map(([e,t])=>{if(t&&"object"==typeof t&&!Array.isArray(t)&&!(0,_.isValidElement)(t))return e}).filter(Boolean);if(a4){let e;let t=()=>{document.body.classList.add("resizing"),clearTimeout(e),e=setTimeout(()=>{document.body.classList.remove("resizing")},200)};window.addEventListener("resize",t)}function so(e){var t=e,{tag:n,context:r,children:o,id:i,className:a}=t,s=iK(t,["tag","context","children","id","className"]);let l=i4(),c=i3(),u=i6(),d=(0,_.useRef)(null);return(0,_.useEffect)(()=>{if(!i)return;let e=d.current;if(e)return c.set(e,[i,r.index+=1]),null==u||u.observe(e),()=>{null==u||u.disconnect(),c.delete(e),l(e=>{let t=iq({},e);return delete t[i],t})}},[i,r,c,u,l]),(0,w.jsxs)(n,iX(iq({className:"sr-only"===a?"nx-sr-only":(0,j.Z)("nx-font-semibold nx-tracking-tight nx-text-slate-900 dark:nx-text-slate-100",{h2:"nx-mt-10 nx-border-b nx-pb-1 nx-text-3xl nx-border-neutral-200/70 contrast-more:nx-border-neutral-400 dark:nx-border-primary-100/10 contrast-more:dark:nx-border-neutral-400",h3:"nx-mt-8 nx-text-2xl",h4:"nx-mt-8 nx-text-xl",h5:"nx-mt-8 nx-text-lg",h6:"nx-mt-8 nx-text-base"}[n])},s),{children:[o,i&&(0,w.jsx)("a",{href:`#${i}`,id:i,className:"subheading-anchor","aria-label":"Permalink for this section",ref:d})]}))}var si=e=>{let t=null,n=[];return _.Children.forEach(e,(e,r)=>{var o;if(e&&e.type===ss){t||(t=e);return}let i=e;if(!t&&e&&"object"==typeof e&&e.type!==sa&&"props"in e&&e.props){let n=si(e.props.children);t=n[0],i=(0,_.cloneElement)(e,iX(iq({},e.props),{children:(null==(o=n[1])?void 0:o.length)?n[1]:void 0,key:r}))}n.push(i)}),[t,n]},sa=e=>{var t=e,{children:n,open:r}=t,o=iK(t,["children","open"]);let[i,a]=(0,_.useState)(!!r),[s,l]=si(n),[c,u]=(0,_.useState)(i);return(0,_.useEffect)(()=>{if(i)u(!0);else{let e=setTimeout(()=>u(i),500);return()=>clearTimeout(e)}},[i]),(0,w.jsxs)("details",iX(iq(iX(iq({className:"nx-my-4 nx-rounded nx-border nx-border-gray-200 nx-bg-white nx-p-2 nx-shadow-sm first:nx-mt-0 dark:nx-border-neutral-800 dark:nx-bg-neutral-900"},o),{open:c}),i&&{"data-expanded":!0}),{children:[(0,w.jsx)(aa,{value:a,children:s}),(0,w.jsx)(ag,{isOpen:i,children:l})]}))},ss=e=>{let t=ai();return(0,w.jsx)("summary",iX(iq({className:(0,j.Z)("nx-flex nx-items-center nx-cursor-pointer nx-list-none nx-p-1 nx-transition-colors hover:nx-bg-gray-100 dark:hover:nx-bg-neutral-800","before:nx-mr-1 before:nx-inline-block before:nx-transition-transform before:nx-content-[''] dark:before:nx-invert before:nx-shrink-0","rtl:before:nx-rotate-180 [[data-expanded]>&]:before:nx-rotate-90")},e),{onClick:e=>{e.preventDefault(),t(e=>!e)}}))},sl=/https?:\/\//,sc=e=>{var t=e,{href:n="",className:r}=t,o=iK(t,["href","className"]);return(0,w.jsx)(al,iq({href:n,newWindow:sl.test(n),className:(0,j.Z)("nx-text-primary-600 nx-underline nx-decoration-from-font [text-underline-position:from-font]",r)},o))},su=e=>{var t=e,{href:n=""}=t,r=iK(t,["href"]);return(0,w.jsx)(al,iq({href:n,newWindow:sl.test(n)},r))},sd=({isRawLayout:e,components:t})=>{if(e)return{a:su};let n={index:0};return iq({h1:e=>(0,w.jsx)("h1",iq({className:"nx-mt-2 nx-text-4xl nx-font-bold nx-tracking-tight nx-text-slate-900 dark:nx-text-slate-100"},e)),h2:e=>(0,w.jsx)(so,iq({tag:"h2",context:n},e)),h3:e=>(0,w.jsx)(so,iq({tag:"h3",context:n},e)),h4:e=>(0,w.jsx)(so,iq({tag:"h4",context:n},e)),h5:e=>(0,w.jsx)(so,iq({tag:"h5",context:n},e)),h6:e=>(0,w.jsx)(so,iq({tag:"h6",context:n},e)),ul:e=>(0,w.jsx)("ul",iq({className:"nx-mt-6 nx-list-disc first:nx-mt-0 ltr:nx-ml-6 rtl:nx-mr-6"},e)),ol:e=>(0,w.jsx)("ol",iq({className:"nx-mt-6 nx-list-decimal first:nx-mt-0 ltr:nx-ml-6 rtl:nx-mr-6"},e)),li:e=>(0,w.jsx)("li",iq({className:"nx-my-2"},e)),blockquote:e=>(0,w.jsx)("blockquote",iq({className:(0,j.Z)("nx-mt-6 nx-border-gray-300 nx-italic nx-text-gray-700 dark:nx-border-gray-700 dark:nx-text-gray-400","first:nx-mt-0 ltr:nx-border-l-2 ltr:nx-pl-6 rtl:nx-border-r-2 rtl:nx-pr-6")},e)),hr:e=>(0,w.jsx)("hr",iq({className:"nx-my-8 nx-border-neutral-200/70 contrast-more:nx-border-neutral-400 dark:nx-border-primary-100/10 contrast-more:dark:nx-border-neutral-400"},e)),a:sc,table:e=>(0,w.jsx)(iF.iA,iq({className:"nextra-scrollbar nx-mt-6 nx-p-0 first:nx-mt-0"},e)),p:e=>(0,w.jsx)("p",iq({className:"nx-mt-6 nx-leading-7 first:nx-mt-0"},e)),tr:iF.Tr,th:iF.Th,td:iF.Td,details:sa,summary:ss,pre:iF.SU,code:iF.EK},t)},sf={toc:(0,j.Z)("nextra-toc nx-order-last nx-hidden nx-w-64 nx-shrink-0 xl:nx-block print:nx-hidden"),main:(0,j.Z)("nx-w-full nx-break-words")},sh=({themeContext:e,breadcrumb:t,timestamp:n,navigation:r,children:o})=>{var i;let a=an(),s=E();if("raw"===e.layout)return(0,w.jsx)("div",{className:sf.main,children:o});let l=e.timestamp&&a.gitTimestamp&&n?new Date(n):null,c=s&&l?(0,w.jsx)("div",{className:"nx-mt-12 nx-mb-8 nx-block nx-text-xs nx-text-gray-500 ltr:nx-text-right rtl:nx-text-left dark:nx-text-gray-400",children:au(a.gitTimestamp,{timestamp:l})}):(0,w.jsx)("div",{className:"nx-mt-16"}),u=(0,w.jsxs)(w.Fragment,{children:[o,c,r]}),d=(null==(i=a.main)?void 0:i.call(a,{children:u}))||u;return"full"===e.layout?(0,w.jsx)("article",{className:(0,j.Z)(sf.main,"nextra-content nx-min-h-[calc(100vh-var(--nextra-navbar-height))] nx-pl-[max(env(safe-area-inset-left),1.5rem)] nx-pr-[max(env(safe-area-inset-right),1.5rem)]"),children:d}):(0,w.jsx)("article",{className:(0,j.Z)(sf.main,"nextra-content nx-flex nx-min-h-[calc(100vh-var(--nextra-navbar-height))] nx-min-w-0 nx-justify-center nx-pb-8 nx-pr-[calc(env(safe-area-inset-right)-1.5rem)]","article"===e.typesetting&&"nextra-body-typesetting-article"),children:(0,w.jsxs)("main",{className:"nx-w-full nx-min-w-0 nx-max-w-6xl nx-px-6 nx-pt-4 md:nx-px-12",children:[t,d]})})},sp=({filePath:e,pageMap:t,frontMatter:n,headings:r,timestamp:o,children:i})=>{let a=an(),{locale:s=a5,defaultLocale:l}=(0,k.useRouter)(),c=C(),{activeType:u,activeIndex:d,activeThemeContext:f,activePath:h,topLevelNavbarItems:p,docsDirectories:m,flatDirectories:g,flatDocsDirectories:x,directories:v}=(0,_.useMemo)(()=>t5({list:t,locale:s,defaultLocale:l,route:c}),[t,s,l,c]),y=iq(iq({},f),n),b=!y.sidebar||"raw"===y.layout||"page"===u,E="page"!==u&&y.toc&&"default"===y.layout?(0,w.jsx)("nav",{className:(0,j.Z)(sf.toc,"nx-px-4"),"aria-label":"table of contents",children:au(a.toc.component,{headings:a.toc.float?r:[],filePath:e})}):"full"!==y.layout&&"raw"!==y.layout&&(0,w.jsx)("nav",{className:sf.toc,"aria-label":"table of contents"}),O=a.i18n.find(e=>e.locale===s),S=(O?"rtl"===O.direction:"rtl"===a.direction)?"rtl":"ltr";return(0,w.jsxs)("div",{dir:S,children:[(0,w.jsx)("script",{dangerouslySetInnerHTML:{__html:`document.documentElement.setAttribute('dir','${S}')`}}),(0,w.jsx)(aA,{}),(0,w.jsx)(ap,{}),y.navbar&&au(a.navbar.component,{flatDirectories:g,items:p}),(0,w.jsx)("div",{className:(0,j.Z)("nx-mx-auto nx-flex","raw"!==y.layout&&"nx-max-w-[90rem]"),children:(0,w.jsxs)(i9,{children:[(0,w.jsx)(aU,{docsDirectories:m,flatDirectories:g,fullDirectories:v,headings:r,asPopover:b,includePlaceholder:"default"===y.layout}),E,(0,w.jsx)(aX,{}),(0,w.jsx)(sh,{themeContext:y,breadcrumb:"page"!==u&&y.breadcrumb?(0,w.jsx)(am,{activePath:h}):null,timestamp:o,navigation:"page"!==u&&y.pagination?(0,w.jsx)(aN,{flatDirectories:x,currentIndex:d}):null,children:(0,w.jsx)(T.Z,{components:sd({isRawLayout:"raw"===y.layout,components:a.components}),children:i})})]})}),y.footer&&au(a.footer.component,{menu:b})]})};function sm(e){var t=e,{children:n}=t,r=iK(t,["children"]);return(0,w.jsx)(ar,{value:r,children:(0,w.jsx)(sp,iX(iq({},r.pageOpts),{children:n}))})}var sg=n(1538),sx=n.n(sg),sv=n(92751),sy=n(82187),sb=n.n(sy),sw=n(10106);let sk=["xxl","xl","lg","md","sm","xs"],s_=e=>({xs:"(max-width: ".concat(e.screenXSMax,"px)"),sm:"(min-width: ".concat(e.screenSM,"px)"),md:"(min-width: ".concat(e.screenMD,"px)"),lg:"(min-width: ".concat(e.screenLG,"px)"),xl:"(min-width: ".concat(e.screenXL,"px)"),xxl:"(min-width: ".concat(e.screenXXL,"px)")}),sj=e=>{let t=e,n=[].concat(sk).reverse();return n.forEach((e,r)=>{let o=e.toUpperCase(),i="screen".concat(o,"Min"),a="screen".concat(o);if(!(t[i]<=t[a]))throw Error("".concat(i,"<=").concat(a," fails : !(").concat(t[i],"<=").concat(t[a],")"));if(r{let e=new Map,n=-1,r={};return{matchHandlers:{},dispatch:t=>(r=t,e.forEach(e=>e(r)),e.size>=1),subscribe(t){return e.size||this.register(),n+=1,e.set(n,t),t(r),n},unsubscribe(t){e.delete(t),e.size||this.unregister()},unregister(){Object.keys(t).forEach(e=>{let n=t[e],r=this.matchHandlers[n];null==r||r.mql.removeListener(null==r?void 0:r.listener)}),e.clear()},register(){Object.keys(t).forEach(e=>{let n=t[e],o=t=>{let{matches:n}=t;this.dispatch(Object.assign(Object.assign({},r),{[e]:n}))},i=window.matchMedia(n);i.addListener(o),this.matchHandlers[n]={mql:i,listener:o},o(i)})},responsiveMap:t}},[e])}var sO=n(78740),sS=(0,_.createContext)({}),sC=n(80548),sT=n(40170),sA=n(3751);let sR=e=>{let{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},sN=e=>{let{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},sI=(e,t)=>{let{prefixCls:n,componentCls:r,gridColumns:o}=e,i={};for(let e=o;e>=0;e--)0===e?(i["".concat(r).concat(t,"-").concat(e)]={display:"none"},i["".concat(r,"-push-").concat(e)]={insetInlineStart:"auto"},i["".concat(r,"-pull-").concat(e)]={insetInlineEnd:"auto"},i["".concat(r).concat(t,"-push-").concat(e)]={insetInlineStart:"auto"},i["".concat(r).concat(t,"-pull-").concat(e)]={insetInlineEnd:"auto"},i["".concat(r).concat(t,"-offset-").concat(e)]={marginInlineStart:0},i["".concat(r).concat(t,"-order-").concat(e)]={order:0}):(i["".concat(r).concat(t,"-").concat(e)]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:"0 0 ".concat(e/o*100,"%"),maxWidth:"".concat(e/o*100,"%")}],i["".concat(r).concat(t,"-push-").concat(e)]={insetInlineStart:"".concat(e/o*100,"%")},i["".concat(r).concat(t,"-pull-").concat(e)]={insetInlineEnd:"".concat(e/o*100,"%")},i["".concat(r).concat(t,"-offset-").concat(e)]={marginInlineStart:"".concat(e/o*100,"%")},i["".concat(r).concat(t,"-order-").concat(e)]={order:e});return i["".concat(r).concat(t,"-flex")]={flex:"var(--".concat(n).concat(t,"-flex)")},i},sM=(e,t)=>sI(e,t),sL=(e,t,n)=>({["@media (min-width: ".concat((0,sC.bf)(t),")")]:Object.assign({},sM(e,n))}),sZ=()=>({}),sP=()=>({}),sD=(0,sT.I$)("Grid",sR,sZ),sz=(0,sT.I$)("Grid",e=>{let t=(0,sA.TS)(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[sN(t),sM(t,""),sM(t,"-xs"),Object.keys(n).map(e=>sL(t,n[e],e)).reduce((e,t)=>Object.assign(Object.assign({},e),t),{})]},sP);var sF=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function sH(e,t){let[n,r]=_.useState("string"==typeof e?e:""),o=()=>{if("string"==typeof e&&r(e),"object"==typeof e)for(let n=0;n{o()},[JSON.stringify(e),t]),n}var sB=_.forwardRef((e,t)=>{let{prefixCls:n,justify:r,align:o,className:i,style:a,children:s,gutter:l=0,wrap:c}=e,u=sF(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:d,direction:f}=_.useContext(sO.E_),[h,p]=_.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[m,g]=_.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),x=sH(o,m),v=sH(r,m),y=_.useRef(l),b=sE();_.useEffect(()=>{let e=b.subscribe(e=>{g(e);let t=y.current||0;(!Array.isArray(t)&&"object"==typeof t||Array.isArray(t)&&("object"==typeof t[0]||"object"==typeof t[1]))&&p(e)});return()=>b.unsubscribe(e)},[]);let w=()=>{let e=[void 0,void 0];return(Array.isArray(l)?l:[l,void 0]).forEach((t,n)=>{if("object"==typeof t)for(let r=0;r0?-(S[0]/2):void 0;A&&(T.marginLeft=A,T.marginRight=A);let[R,N]=S;T.rowGap=N;let I=_.useMemo(()=>({gutter:[R,N],wrap:c}),[R,N,c]);return j(_.createElement(sS.Provider,{value:I},_.createElement("div",Object.assign({},u,{className:C,style:Object.assign(Object.assign({},T),a),ref:t}),s)))}),sW=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function s$(e){return"number"==typeof e?"".concat(e," ").concat(e," auto"):/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?"0 0 ".concat(e):e}let sG=["xs","sm","md","lg","xl","xxl"];var sU=_.forwardRef((e,t)=>{let{getPrefixCls:n,direction:r}=_.useContext(sO.E_),{gutter:o,wrap:i}=_.useContext(sS),{prefixCls:a,span:s,order:l,offset:c,push:u,pull:d,className:f,children:h,flex:p,style:m}=e,g=sW(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),x=n("col",a),[v,y,b]=sz(x),w={},k={};sG.forEach(t=>{let n={},o=e[t];"number"==typeof o?n.span=o:"object"==typeof o&&(n=o||{}),delete g[t],k=Object.assign(Object.assign({},k),{["".concat(x,"-").concat(t,"-").concat(n.span)]:void 0!==n.span,["".concat(x,"-").concat(t,"-order-").concat(n.order)]:n.order||0===n.order,["".concat(x,"-").concat(t,"-offset-").concat(n.offset)]:n.offset||0===n.offset,["".concat(x,"-").concat(t,"-push-").concat(n.push)]:n.push||0===n.push,["".concat(x,"-").concat(t,"-pull-").concat(n.pull)]:n.pull||0===n.pull,["".concat(x,"-rtl")]:"rtl"===r}),n.flex&&(k["".concat(x,"-").concat(t,"-flex")]=!0,w["--".concat(x,"-").concat(t,"-flex")]=s$(n.flex))});let j=sb()(x,{["".concat(x,"-").concat(s)]:void 0!==s,["".concat(x,"-order-").concat(l)]:l,["".concat(x,"-offset-").concat(c)]:c,["".concat(x,"-push-").concat(u)]:u,["".concat(x,"-pull-").concat(d)]:d},f,k,y,b),E={};if(o&&o[0]>0){let e=o[0]/2;E.paddingLeft=e,E.paddingRight=e}return p&&(E.flex=s$(p),!1!==i||E.minWidth||(E.minWidth=0)),v(_.createElement("div",Object.assign({},g,{style:Object.assign(Object.assign(Object.assign({},E),m),w),className:j,ref:t}),h))}),sV=function(){return(0,w.jsxs)("footer",{id:"footer",children:[(0,w.jsx)("div",{className:"footer-wrap",children:(0,w.jsxs)(sB,{children:[(0,w.jsx)(sU,{md:6,sm:24,xs:24,children:(0,w.jsxs)("div",{className:"footer-center",children:[(0,w.jsx)("h2",{children:"联系我们"}),(0,w.jsx)("div",{children:(0,w.jsx)("a",{href:"mailto:hi@charmlot.com",children:"邮箱 hi@charmlot.com"})}),(0,w.jsx)("div",{children:(0,w.jsx)("span",{style:{color:"rgba(255,255,255,.9)"},children:"QQ群 729013783"})})]})}),(0,w.jsx)(sU,{md:6,sm:24,xs:24,children:(0,w.jsxs)("div",{className:"footer-center",children:[(0,w.jsx)("h2",{children:"用户协议"}),(0,w.jsx)("div",{children:(0,w.jsx)("a",{target:"_blank",href:"/agreement/",children:"用户协议"})}),(0,w.jsx)("div",{children:(0,w.jsx)("a",{target:"_blank",href:"/agreement/#privacy",children:"隐私政策"})})]})}),(0,w.jsx)(sU,{md:6,sm:24,xs:24,children:(0,w.jsxs)("div",{className:"footer-center",children:[(0,w.jsx)("h2",{children:"帮助"}),(0,w.jsx)("div",{children:(0,w.jsx)("a",{href:"/docs/faq",children:"常见问题"})}),(0,w.jsx)("div",{children:(0,w.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://github.com/reactnativecn/react-native-pushy/issues",children:"issue讨论区"})})]})}),(0,w.jsx)(sU,{md:6,sm:24,xs:24,children:(0,w.jsxs)("div",{className:"footer-center",children:[(0,w.jsx)("h2",{children:"链接"}),(0,w.jsx)("div",{children:(0,w.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://reactnative.cn/",children:"React Native中文网"})}),(0,w.jsx)("div",{children:(0,w.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://zh-hans.reactjs.org/",children:"ReactJS"})})]})})]})}),(0,w.jsxs)("section",{className:"bottom-bar",children:[(0,w.jsxs)("p",{children:["React Native中文网 \xa9 ",new Date().getFullYear()," ","武汉青罗网络科技有限公司"]}),(0,w.jsxs)("p",{children:[(0,w.jsx)("a",{href:"http://beian.miit.gov.cn/",children:"鄂ICP备20002031号-3"}),(0,w.jsx)("img",{style:{display:"inline"},src:"https://img.alicdn.com/tfs/TB1..50QpXXXXX7XpXXXXXXXXXX-40-40.png",alt:"鄂公网安备 42011202001821号"}),(0,w.jsx)("a",{href:"http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=42011202001821",children:"鄂公网安备 42011202001821号"})]})]})]})},sq=n(36851),sX={useNextSeoProps(){let{asPath:e}=(0,k.useRouter)();return"/"!==e?{titleTemplate:"%s – Pushy 极速热更新"}:{titleTemplate:"Pushy 极速热更新"}},head:()=>{let{title:e}=an(),t="https://pushy.reactnative.cn";return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("meta",{property:"og:url",content:t}),(0,w.jsx)("meta",{property:"og:title",content:e||"Pushy 极速热更新"}),(0,w.jsx)("meta",{property:"og:description",content:"Pushy 极速热更新"}),(0,w.jsx)("meta",{property:"og:keywords",content:"热更新,hotupdate,免审核,快速上架"})]})},logo:(0,w.jsx)(sx(),{height:48,src:sv.Z,alt:"Pushy 极速热更新"}),docsRepositoryBase:"https://github.com/reactnativecn/react-native-pushy",project:{link:"https://github.com/reactnativecn/react-native-pushy"},footer:{component:sV},darkMode:!1,nextThemes:{defaultTheme:"light"},navbar:{extraContent:(0,w.jsx)("div",{className:"header-meta",children:(0,w.jsxs)("div",{className:"right-header",children:[(0,w.jsx)(sq.ZP,{shape:"round",href:"https://pushy-admin.reactnative.cn/#/user",target:"_blank",children:"登录"}),(0,w.jsx)(sq.ZP,{shape:"round",href:"https://pushy-admin.reactnative.cn/#/register",target:"_blank",type:"primary",children:"注册"})]})})},toc:{title:"目录"},feedback:{content:null},editLink:{component:null},search:{placeholder:"搜索文档...",emptyResult:"暂无匹配的结果"},gitTimestamp:null};n(83396),n(11714),n(56609);var sK=n(16635);function sQ(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,sK.Z)(e,t)}var sY=n(23248),sJ=n(25201),s0=n(40507),s1=n.n(s0),s2=n(53670),s5=n.n(s2),s4=n(55518),s6=n.n(s4),s3=function(){function e(e,t,n){var r=this;this.nativeMediaQueryList=e.matchMedia(t),this.active=!0,this.cancellableListener=function(){r.matches=r.nativeMediaQueryList.matches,r.active&&n.apply(void 0,arguments)},this.nativeMediaQueryList.addListener(this.cancellableListener),this.matches=this.nativeMediaQueryList.matches}return e.prototype.cancel=function(){this.active=!1,this.nativeMediaQueryList.removeListener(this.cancellableListener)},e}(),s9=s1().oneOfType([s1().string,s1().object,s1().arrayOf(s1().object.isRequired)]),s8=function(e){function t(t){var n,r;return(n=e.call(this,t)||this,(0,sJ.Z)((0,sY.Z)((0,sY.Z)(n)),"queries",[]),(0,sJ.Z)((0,sY.Z)((0,sY.Z)(n)),"getMatches",function(){return le(n.queries.reduce(function(e,t){var n,r=t.name,o=t.mqListener;return(0,i_.Z)({},e,((n={})[r]=o.matches,n))},{}))}),(0,sJ.Z)((0,sY.Z)((0,sY.Z)(n)),"updateMatches",function(){var e=n.getMatches();n.setState(function(){return{matches:e}},n.onChange)}),!(!t.query&&!t.queries)||t.query&&t.queries||s5()(!1),void 0!==t.defaultMatches&&t.query&&"boolean"!=typeof t.defaultMatches&&s5()(!1),void 0!==t.defaultMatches&&t.queries&&"object"!=typeof t.defaultMatches&&s5()(!1),"object"!=typeof window)?(r=void 0!==t.defaultMatches?t.defaultMatches:!!t.query||Object.keys(n.props.queries).reduce(function(e,t){var n;return(0,i_.Z)({},e,((n={})[t]=!0,n))},{}),n.state={matches:r},(0,sY.Z)(n)):(n.initialize(),n.state={matches:void 0!==n.props.defaultMatches?n.props.defaultMatches:n.getMatches()},n.onChange(),n)}sQ(t,e);var n=t.prototype;return n.initialize=function(){var e=this,t=this.props.targetWindow||window;"function"!=typeof t.matchMedia&&s5()(!1);var n=this.props.queries||s7(this.props.query);this.queries=Object.keys(n).map(function(r){var o=n[r];return{name:r,mqListener:new s3(t,"string"!=typeof o?s6()(o):o,e.updateMatches)}})},n.componentDidMount=function(){this.initialize(),void 0!==this.props.defaultMatches&&this.updateMatches()},n.onChange=function(){var e=this.props.onChange;e&&e(this.state.matches)},n.componentWillUnmount=function(){this.queries.forEach(function(e){return e.mqListener.cancel()})},n.render=function(){var e=this.props,t=e.children,n=e.render,r=this.state.matches,o="object"==typeof r?Object.keys(r).some(function(e){return r[e]}):r;return n?o?n(r):null:t?"function"==typeof t?t(r):(!Array.isArray(t)||t.length)&&o?_.Children.only(t)&&"string"==typeof _.Children.only(t).type?_.Children.only(t):_.cloneElement(_.Children.only(t),{matches:r}):null:null},t}(_.Component);function s7(e){return{__DEFAULT__:e}}function le(e){var t=Object.keys(e);return 1===t.length&&"__DEFAULT__"===t[0]?e.__DEFAULT__:e}(0,sJ.Z)(s8,"propTypes",{defaultMatches:s1().oneOfType([s1().bool,s1().objectOf(s1().bool)]),query:s9,queries:s1().objectOf(s9),render:s1().func,children:s1().oneOfType([s1().node,s1().func]),targetWindow:s1().object,onChange:s1().func});var lt=s8;function ln(e){let{children:t,...n}=e;return(0,w.jsx)("div",{className:"page-wrapper",children:_.cloneElement(t,{...t.props,isMobile:n.isMobile})})}var lr=e=>(0,w.jsx)(lt,{query:"(max-width: 996px)",children:t=>{let n=!1;return(0,w.jsx)(ln,{...e,isMobile:t&&!n})}});let lo=function(e){let{Component:t,pageProps:n}=e;return(0,w.jsx)(lr,{children:(0,w.jsx)(t,{...n})})},li=[];function la(e){return(0,w.jsx)(w.Fragment,{})}var ls=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,w.jsx)(lo,{...e,children:(0,w.jsx)(la,{...e})})};let ll=(y=globalThis)[b=Symbol.for("__nextra_internal__")]||(y[b]=Object.create(null));ll.Layout=sm,ll.pageMap=[{kind:"Meta",data:{index:{title:"首页",theme:{layout:"raw",breadcrumb:!1,sidebar:!1},type:"page"},docs:{title:"文档",type:"page"},pricing:{title:"价格",theme:{layout:"raw",breadcrumb:!1,sidebar:!1},type:"page"},常见问题:{type:"page",href:"/docs/faq",route:"#"}}},{kind:"Folder",name:"docs",route:"/docs",children:[{kind:"Meta",data:{"getting-started":"安装配置",integration:"代码集成",publish:"发布流程","---1":{type:"separator",title:""},api:"API参考",cli:"命令行工具",bestpractice:"场景实践","---2":{type:"separator",title:""},faq:"常见问题",changelog:"更新日志"}},{kind:"MdxPage",name:"api",route:"/docs/api",frontMatter:{order:11,title:"API参考",type:"开发指南"}},{kind:"MdxPage",name:"bestpractice",route:"/docs/bestpractice",frontMatter:{order:13,title:"场景实践",type:"开发指南"}},{kind:"MdxPage",name:"changelog",route:"/docs/changelog",frontMatter:{order:22,title:"更新日志",type:"其他"}},{kind:"MdxPage",name:"cli",route:"/docs/cli",frontMatter:{order:12,title:"命令行工具",type:"开发指南"}},{kind:"MdxPage",name:"faq",route:"/docs/faq",frontMatter:{order:23,title:"常见问题",type:"其他"}},{kind:"MdxPage",name:"getting-started",route:"/docs/getting-started",frontMatter:{order:0,title:"安装配置",type:"快速入门"}},{kind:"MdxPage",name:"integration",route:"/docs/integration",frontMatter:{order:1,title:"代码集成",type:"快速入门"}},{kind:"MdxPage",name:"publish",route:"/docs/publish",frontMatter:{order:2,title:"发布热更新",type:"快速入门"}}]},{kind:"MdxPage",name:"index",route:"/"},{kind:"MdxPage",name:"pricing",route:"/pricing",frontMatter:{title:"价格"}}],ll.flexsearch={codeblocks:!0},ll.themeConfig=sX},76062:function(e,t,n){"use strict";n.d(t,{Z:function(){return eO}});var r=n(97605),o=n(76729),i=n(25201),a=n(10582),s=n(50959),l=n(84875),c=n.n(l),u=n(96299),d=n(28556),f=2,h=.16,p=.05,m=.05,g=.15,x=5,v=4,y=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function b(e){var t=e.r,n=e.g,r=e.b,o=(0,u.py)(t,n,r);return{h:360*o.h,s:o.s,v:o.v}}function w(e){var t=e.r,n=e.g,r=e.b;return"#".concat((0,u.vq)(t,n,r,!1))}function k(e,t,n){var r=n/100;return{r:(t.r-e.r)*r+e.r,g:(t.g-e.g)*r+e.g,b:(t.b-e.b)*r+e.b}}function _(e,t,n){var r;return(r=Math.round(e.h)>=60&&240>=Math.round(e.h)?n?Math.round(e.h)-f*t:Math.round(e.h)+f*t:n?Math.round(e.h)+f*t:Math.round(e.h)-f*t)<0?r+=360:r>=360&&(r-=360),r}function j(e,t,n){var r;return 0===e.h&&0===e.s?e.s:((r=n?e.s-h*t:t===v?e.s+h:e.s+p*t)>1&&(r=1),n&&t===x&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)))}function E(e,t,n){var r;return(r=n?e.v+m*t:e.v-g*t)>1&&(r=1),Number(r.toFixed(2))}function O(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=(0,d.uA)(e),o=x;o>0;o-=1){var i=b(r),a=w((0,d.uA)({h:_(i,o,!0),s:j(i,o,!0),v:E(i,o,!0)}));n.push(a)}n.push(w(r));for(var s=1;s<=v;s+=1){var l=b(r),c=w((0,d.uA)({h:_(l,s),s:j(l,s),v:E(l,s)}));n.push(c)}return"dark"===t.theme?y.map(function(e){var r=e.index,o=e.opacity;return w(k((0,d.uA)(t.backgroundColor||"#141414"),(0,d.uA)(n[r]),100*o))}):n}var S={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},C={},T={};Object.keys(S).forEach(function(e){C[e]=O(S[e]),C[e].primary=C[e][5],T[e]=O(S[e],{theme:"dark",backgroundColor:"#141414"}),T[e].primary=T[e][5]}),C.red,C.volcano,C.gold,C.orange,C.yellow,C.lime,C.green,C.cyan;var A=C.blue;C.geekblue,C.purple,C.magenta,C.grey,C.grey;var R=(0,s.createContext)({}),N=n(12309),I=n(26407);function M(){return!!("undefined"!=typeof window&&window.document&&window.document.createElement)}function L(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var Z="data-rc-order",P="data-rc-priority",D="rc-util-key",z=new Map;function F(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):D}function H(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function B(e){return"queue"===e?"prependQueue":e?"prepend":"append"}function W(e){return Array.from((z.get(e)||e).children).filter(function(e){return"STYLE"===e.tagName})}function $(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!M())return null;var n=t.csp,r=t.prepend,o=t.priority,i=void 0===o?0:o,a=B(r),s="prependQueue"===a,l=document.createElement("style");l.setAttribute(Z,a),s&&i&&l.setAttribute(P,"".concat(i)),null!=n&&n.nonce&&(l.nonce=null==n?void 0:n.nonce),l.innerHTML=e;var c=H(t),u=c.firstChild;if(r){if(s){var d=W(c).filter(function(e){return!!["prepend","prependQueue"].includes(e.getAttribute(Z))&&i>=Number(e.getAttribute(P)||0)});if(d.length)return c.insertBefore(l,d[d.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function G(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return W(H(t)).find(function(n){return n.getAttribute(F(t))===e})}function U(e,t){var n=z.get(e);if(!n||!L(document,n)){var r=$("",t),o=r.parentNode;z.set(e,o),e.removeChild(r)}}function V(e,t){var n,r,o,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};U(H(i),i);var a=G(t,i);if(a)return null!==(n=i.csp)&&void 0!==n&&n.nonce&&a.nonce!==(null===(r=i.csp)||void 0===r?void 0:r.nonce)&&(a.nonce=null===(o=i.csp)||void 0===o?void 0:o.nonce),a.innerHTML!==e&&(a.innerHTML=e),a;var s=$(e,i);return s.setAttribute(F(i),t),s}function q(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function X(e){return q(e) instanceof ShadowRoot}function K(e){return X(e)?q(e):null}var Q={},Y=[],J=function(e){Y.push(e)};function ee(e,t){}function et(e,t){}function en(){Q={}}function er(e,t,n){t||Q[n]||(e(!1,n),Q[n]=!0)}function eo(e,t){er(ee,e,t)}function ei(e,t){er(et,e,t)}eo.preMessage=J,eo.resetWarned=en,eo.noteOnce=ei;var ea=eo;function es(e){return e.replace(/-(.)/g,function(e,t){return t.toUpperCase()})}function el(e,t){ea(e,"[@ant-design/icons] ".concat(t))}function ec(e){return"object"===(0,I.Z)(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===(0,I.Z)(e.icon)||"function"==typeof e.icon)}function eu(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];return"class"===n?(t.className=r,delete t.class):(delete t[n],t[es(n)]=r),t},{})}function ed(e,t,n){return n?s.createElement(e.tag,(0,N.Z)((0,N.Z)({key:t},eu(e.attrs)),n),(e.children||[]).map(function(n,r){return ed(n,"".concat(t,"-").concat(e.tag,"-").concat(r))})):s.createElement(e.tag,(0,N.Z)({key:t},eu(e.attrs)),(e.children||[]).map(function(n,r){return ed(n,"".concat(t,"-").concat(e.tag,"-").concat(r))}))}function ef(e){return O(e)[0]}function eh(e){return e?Array.isArray(e)?e:[e]:[]}var ep="\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",em=function(e){var t=(0,s.useContext)(R),n=t.csp,r=t.prefixCls,o=ep;r&&(o=o.replace(/anticon/g,r)),(0,s.useEffect)(function(){var t=K(e.current);V(o,"@ant-design-icons",{prepend:!0,csp:n,attachTo:t})},[])},eg=["icon","className","onClick","style","primaryColor","secondaryColor"],ex={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function ev(e){var t=e.primaryColor,n=e.secondaryColor;ex.primaryColor=t,ex.secondaryColor=n||ef(t),ex.calculated=!!n}function ey(){return(0,N.Z)({},ex)}var eb=function(e){var t=e.icon,n=e.className,r=e.onClick,o=e.style,i=e.primaryColor,l=e.secondaryColor,c=(0,a.Z)(e,eg),u=s.useRef(),d=ex;if(i&&(d={primaryColor:i,secondaryColor:l||ef(i)}),em(u),el(ec(t),"icon should be icon definiton, but got ".concat(t)),!ec(t))return null;var f=t;return f&&"function"==typeof f.icon&&(f=(0,N.Z)((0,N.Z)({},f),{},{icon:f.icon(d.primaryColor,d.secondaryColor)})),ed(f.icon,"svg-".concat(f.name),(0,N.Z)((0,N.Z)({className:n,onClick:r,style:o,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},c),{},{ref:u}))};eb.displayName="IconReact",eb.getTwoToneColors=ey,eb.setTwoToneColors=ev;var ew=eb;function ek(e){var t=eh(e),n=(0,o.Z)(t,2),r=n[0],i=n[1];return ew.setTwoToneColors({primaryColor:r,secondaryColor:i})}function e_(){var e=ew.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var ej=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];ek(A.primary);var eE=s.forwardRef(function(e,t){var n=e.className,l=e.icon,u=e.spin,d=e.rotate,f=e.tabIndex,h=e.onClick,p=e.twoToneColor,m=(0,a.Z)(e,ej),g=s.useContext(R),x=g.prefixCls,v=void 0===x?"anticon":x,y=g.rootClassName,b=c()(y,v,(0,i.Z)((0,i.Z)({},"".concat(v,"-").concat(l.name),!!l.name),"".concat(v,"-spin"),!!u||"loading"===l.name),n),w=f;void 0===w&&h&&(w=-1);var k=d?{msTransform:"rotate(".concat(d,"deg)"),transform:"rotate(".concat(d,"deg)")}:void 0,_=eh(p),j=(0,o.Z)(_,2),E=j[0],O=j[1];return s.createElement("span",(0,r.Z)({role:"img","aria-label":l.name},m,{ref:t,tabIndex:w,onClick:h,className:b}),s.createElement(ew,{icon:l,primaryColor:E,secondaryColor:O,style:k}))});eE.displayName="AntdIcon",eE.getTwoToneColor=e_,eE.setTwoToneColor=ek;var eO=eE},28964:function(e,t,n){"use strict";n.d(t,{M2:function(){return a},Tm:function(){return l},l$:function(){return i}});var r,o=n(50959);let{isValidElement:i}=r||(r=n.t(o,2));function a(e){return e&&i(e)&&e.type===o.Fragment}function s(e,t,n){return i(e)?o.cloneElement(e,"function"==typeof n?n(e.props||{}):n):t}function l(e,t){return s(e,e,t)}},36851:function(e,t,n){"use strict";n.d(t,{ZP:function(){return e4}});var r,o=n(50959),i=n(82187),a=n.n(i),s=n(12309);function l(e,t){var n=(0,s.Z)({},e);return Array.isArray(t)&&t.forEach(function(e){delete n[e]}),n}var c=n(57539),u=n(84989),d=n(78740),f=n(28964),h=n(40170);let p=e=>{let{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:"var(--wave-color, ".concat(n,")"),boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:["box-shadow 0.4s ".concat(e.motionEaseOutCirc),"opacity 2s ".concat(e.motionEaseOutCirc)].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:["box-shadow 0.3s ".concat(e.motionEaseInOut),"opacity 0.35s ".concat(e.motionEaseInOut)].join(",")}}}}};var m=(0,h.ZP)("Wave",e=>[p(e)]),g=n(8938),x=n(32126),v=n(10091),y=n(26407);function b(){b=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=Object.create((t&&t.prototype instanceof x?t:x).prototype);return o(i,"_invoke",{value:C(e,n,new N(r||[]))}),i}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",h="suspendedYield",p="executing",m="completed",g={};function x(){}function v(){}function w(){}var k={};c(k,a,function(){return this});var _=Object.getPrototypeOf,j=_&&_(_(I([])));j&&j!==n&&r.call(j,a)&&(k=j);var E=w.prototype=x.prototype=Object.create(k);function O(e){["next","throw","return"].forEach(function(t){c(e,t,function(e){return this._invoke(t,e)})})}function S(e,t){var n;function i(n,o,a,s){var l=d(e[n],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==(0,y.Z)(u)&&r.call(u,"__await")?t.resolve(u.__await).then(function(e){i("next",e,a,s)},function(e){i("throw",e,a,s)}):t.resolve(u).then(function(e){c.value=e,a(c)},function(e){return i("throw",e,a,s)})}s(l.arg)}o(this,"_invoke",{value:function(e,r){function o(){return new t(function(t,n){i(e,r,t,n)})}return n=n?n.then(o,o):o()}})}function C(t,n,r){var o=f;return function(i,a){if(o===p)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var l=T(s,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=p;var c=d(t,n,r);if("normal"===c.type){if(o=r.done?m:h,c.arg===g)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=m,r.method="throw",r.arg=c.arg)}}}function T(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=TypeError("The iterator does not provide a '"+r+"' method")),g;var i=d(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):a:(n.method="throw",n.arg=TypeError("iterator result is not an object"),n.delegate=null,g)}function A(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 R(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function I(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"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),R(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;R(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:I(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}var w=n(1017),k=n(10422),_=n.t(k,2),j=(0,s.Z)({},_),E=j.version,O=j.render,S=j.unmountComponentAtNode;try{Number((E||"").split(".")[0])>=18&&(r=j.createRoot)}catch(e){}function C(e){var t=j.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===(0,y.Z)(t)&&(t.usingClientEntryPoint=e)}var T="__rc_react_root__";function A(e,t){C(!0);var n=t[T]||r(t);C(!1),n.render(e),t[T]=n}function R(e,t){O(e,t)}function N(e,t){if(r){A(e,t);return}R(e,t)}function I(e){return M.apply(this,arguments)}function M(){return(M=(0,w.Z)(b().mark(function e(t){return b().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then(function(){var e;null===(e=t[T])||void 0===e||e.unmount(),delete t[T]}));case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)}function L(e){S(e)}function Z(e){return P.apply(this,arguments)}function P(){return(P=(0,w.Z)(b().mark(function e(t){return b().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(void 0!==r)){e.next=2;break}return e.abrupt("return",I(t));case 2:L(t);case 3:case"end":return e.stop()}},e)}))).apply(this,arguments)}function D(e){let t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return!t||!t[1]||!t[2]||!t[3]||!(t[1]===t[2]&&t[2]===t[3])}function z(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&D(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e}function F(e){let{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return z(t)?t:z(n)?n:z(r)?r:null}let H="ant-wave-target";function B(e){return Number.isNaN(e)?0:e}let W=e=>{let{className:t,target:n,component:r}=e,i=o.useRef(null),[s,l]=o.useState(null),[c,u]=o.useState([]),[d,f]=o.useState(0),[h,p]=o.useState(0),[m,g]=o.useState(0),[y,b]=o.useState(0),[w,k]=o.useState(!1),_={left:d,top:h,width:m,height:y,borderRadius:c.map(e=>"".concat(e,"px")).join(" ")};function j(){let e=getComputedStyle(n);l(F(n));let t="static"===e.position,{borderLeftWidth:r,borderTopWidth:o}=e;f(t?n.offsetLeft:B(-parseFloat(r))),p(t?n.offsetTop:B(-parseFloat(o))),g(n.offsetWidth),b(n.offsetHeight);let{borderTopLeftRadius:i,borderTopRightRadius:a,borderBottomLeftRadius:s,borderBottomRightRadius:c}=e;u([i,a,c,s].map(e=>B(parseFloat(e))))}if(s&&(_["--wave-color"]=s),o.useEffect(()=>{if(n){let e;let t=(0,x.Z)(()=>{j(),k(!0)});return"undefined"!=typeof ResizeObserver&&(e=new ResizeObserver(j)).observe(n),()=>{x.Z.cancel(t),null==e||e.disconnect()}}},[]),!w)return null;let E=("Checkbox"===r||"Radio"===r)&&(null==n?void 0:n.classList.contains(H));return o.createElement(v.ZP,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var n;if(t.deadline||"opacity"===t.propertyName){let e=null===(n=i.current)||void 0===n?void 0:n.parentElement;Z(e).then(()=>{null==e||e.remove()})}return!1}},e=>{let{className:n}=e;return o.createElement("div",{ref:i,className:a()(t,{"wave-quick":E},n),style:_})})};var $=(e,t)=>{var n;let{component:r}=t;if("Checkbox"===r&&!(null===(n=e.querySelector("input"))||void 0===n?void 0:n.checked))return;let i=document.createElement("div");i.style.position="absolute",i.style.left="0px",i.style.top="0px",null==e||e.insertBefore(i,null==e?void 0:e.firstChild),N(o.createElement(W,Object.assign({},t,{target:e})),i)},G=n(10106);function U(e,t,n){let{wave:r}=o.useContext(d.E_),[,i,a]=(0,G.ZP)(),s=(0,g.zX)(o=>{let s=e.current;if((null==r?void 0:r.disabled)||!s)return;let l=s.querySelector(".".concat(H))||s,{showEffect:c}=r||{};(c||$)(l,{className:t,token:i,component:n,event:o,hashId:a})}),l=o.useRef();return e=>{x.Z.cancel(l.current),l.current=(0,x.Z)(()=>{s(e)})}}var V=e=>{let{children:t,disabled:n,component:r}=e,{getPrefixCls:i}=(0,o.useContext)(d.E_),s=(0,o.useRef)(null),l=i("wave"),[,h]=m(l),p=U(s,a()(l,h),r);if(o.useEffect(()=>{let e=s.current;if(!e||1!==e.nodeType||n)return;let t=t=>{!(0,u.Z)(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||p(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}},[n]),!o.isValidElement(t))return null!=t?t:null;let g=(0,c.Yr)(t)?(0,c.sQ)(t.ref,s):s;return(0,f.Tm)(t,{ref:g})},q=o.createContext(!1),X=o.createContext(void 0),K=e=>{let t=o.useContext(X);return o.useMemo(()=>e?"string"==typeof e?null!=e?e:t:e instanceof Function?e(t):t:t,[e,t])},Q=n(89688),Y=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let J=o.createContext(void 0);var ee=e=>{let{getPrefixCls:t,direction:n}=o.useContext(d.E_),{prefixCls:r,size:i,className:s}=e,l=Y(e,["prefixCls","size","className"]),c=t("btn-group",r),[,,u]=(0,G.ZP)(),f="";switch(i){case"large":f="lg";break;case"small":f="sm"}let h=a()(c,{["".concat(c,"-").concat(f)]:f,["".concat(c,"-rtl")]:"rtl"===n},s,u);return o.createElement(J.Provider,{value:i},o.createElement("div",Object.assign({},l,{className:h})))};let et=/^[\u4e00-\u9fa5]{2}$/,en=et.test.bind(et);function er(e){return"string"==typeof e}function eo(e){return"text"===e||"link"===e}function ei(e,t){if(null==e)return;let n=t?" ":"";return"string"!=typeof e&&"number"!=typeof e&&er(e.type)&&en(e.props.children)?(0,f.Tm)(e,{children:e.props.children.split("").join(n)}):er(e)?en(e)?o.createElement("span",null,e.split("").join(n)):o.createElement("span",null,e):(0,f.M2)(e)?o.createElement("span",null,e):e}function ea(e,t){let n=!1,r=[];return o.Children.forEach(e,e=>{let t=typeof e,o="string"===t||"number"===t;if(n&&o){let t=r.length-1,n=r[t];r[t]="".concat(n).concat(e)}else r.push(e);n=o}),o.Children.map(r,e=>ei(e,t))}var es=(0,o.forwardRef)((e,t)=>{let{className:n,style:r,children:i,prefixCls:s}=e,l=a()("".concat(s,"-icon"),n);return o.createElement("span",{ref:t,className:l,style:r},i)}),el=n(97605),ec={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},eu=n(76062),ed=function(e,t){return o.createElement(eu.Z,(0,el.Z)({},e,{ref:t,icon:ec}))},ef=o.forwardRef(ed);let eh=(0,o.forwardRef)((e,t)=>{let{prefixCls:n,className:r,style:i,iconClassName:s}=e,l=a()("".concat(n,"-loading-icon"),r);return o.createElement(es,{prefixCls:n,className:l,style:i,ref:t},o.createElement(ef,{className:s}))}),ep=()=>({width:0,opacity:0,transform:"scale(0)"}),em=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"});var eg=e=>{let{prefixCls:t,loading:n,existIcon:r,className:i,style:a}=e,s=!!n;return r?o.createElement(eh,{prefixCls:t,className:i,style:a}):o.createElement(v.ZP,{visible:s,motionName:"".concat(t,"-loading-icon-motion"),motionLeave:s,removeOnLeave:!0,onAppearStart:ep,onAppearActive:em,onEnterStart:ep,onEnterActive:em,onLeaveStart:em,onLeaveActive:ep},(e,n)=>{let{className:r,style:s}=e;return o.createElement(eh,{prefixCls:t,className:i,style:Object.assign(Object.assign({},a),s),ref:n,iconClassName:r})})},ex=n(80548),ev=n(94647),ey=n(3751);let eb=(e,t)=>({["> span, > ".concat(e)]:{"&:not(:last-child)":{["&, & > ".concat(e)]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{["&, & > ".concat(e)]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}});var ew=e=>{let{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:i}=e;return{["".concat(t,"-group")]:[{position:"relative",display:"inline-flex",["> span, > ".concat(t)]:{"&:not(:last-child)":{["&, & > ".concat(t)]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),["&, & > ".concat(t)]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover,\n &:focus,\n &:active":{zIndex:2},"&[disabled]":{zIndex:0}},["".concat(t,"-icon-only")]:{fontSize:n}},eb("".concat(t,"-primary"),o),eb("".concat(t,"-danger"),i)]}},ek=n(52724);let e_=e=>{let{paddingInline:t,onlyIconSize:n,paddingBlock:r}=e;return(0,ey.TS)(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:r,buttonIconOnlyFontSize:n})},ej=e=>{var t,n,r,o,i,a;let s=null!==(t=e.contentFontSize)&&void 0!==t?t:e.fontSize,l=null!==(n=e.contentFontSizeSM)&&void 0!==n?n:e.fontSize,c=null!==(r=e.contentFontSizeLG)&&void 0!==r?r:e.fontSizeLG,u=null!==(o=e.contentLineHeight)&&void 0!==o?o:(0,ek.D)(s),d=null!==(i=e.contentLineHeightSM)&&void 0!==i?i:(0,ek.D)(l),f=null!==(a=e.contentLineHeightLG)&&void 0!==a?a:(0,ek.D)(c);return{fontWeight:400,defaultShadow:"0 ".concat(e.controlOutlineWidth,"px 0 ").concat(e.controlTmpOutline),primaryShadow:"0 ".concat(e.controlOutlineWidth,"px 0 ").concat(e.controlOutline),dangerShadow:"0 ".concat(e.controlOutlineWidth,"px 0 ").concat(e.colorErrorOutline),primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:e.colorBgTextHover,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,contentFontSize:s,contentFontSizeSM:l,contentFontSizeLG:c,contentLineHeight:u,contentLineHeightSM:d,contentLineHeightLG:f,paddingBlock:Math.max((e.controlHeight-s*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-l*d)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*f)/2-e.lineWidth,0)}},eE=e=>{let{componentCls:t,iconCls:n,fontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:"".concat((0,ex.bf)(e.lineWidth)," ").concat(e.lineType," transparent"),cursor:"pointer",transition:"all ".concat(e.motionDurationMid," ").concat(e.motionEaseInOut),userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},["".concat(t,"-icon")]:{lineHeight:0},["> ".concat(n," + span, > span + ").concat(n)]:{marginInlineStart:e.marginXS},["&:not(".concat(t,"-icon-only) > ").concat(t,"-icon")]:{["&".concat(t,"-loading-icon, &:not(:last-child)")]:{marginInlineEnd:e.marginXS}},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},(0,ev.Qy)(e)),["&".concat(t,"-two-chinese-chars::first-letter")]:{letterSpacing:"0.34em"},["&".concat(t,"-two-chinese-chars > *:not(").concat(n,")")]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},["&-icon-only".concat(t,"-compact-item")]:{flex:"none"}}}},eO=(e,t,n)=>({["&:not(:disabled):not(".concat(e,"-disabled)")]:{"&:hover":t,"&:active":n}}),eS=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),eC=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),eT=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),eA=(e,t,n,r,o,i,a,s)=>({["&".concat(e,"-background-ghost")]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},eO(e,Object.assign({background:t},a),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),eR=e=>({["&:disabled, &".concat(e.componentCls,"-disabled")]:Object.assign({},eT(e))}),eN=e=>Object.assign({},eR(e)),eI=e=>({["&:disabled, &".concat(e.componentCls,"-disabled")]:{cursor:"not-allowed",color:e.colorTextDisabled}}),eM=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},eN(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),eO(e.componentCls,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),eA(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),{["&".concat(e.componentCls,"-dangerous")]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},eO(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),eA(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),eR(e))}),eL=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},eN(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),eO(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),eA(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{["&".concat(e.componentCls,"-dangerous")]:Object.assign(Object.assign(Object.assign({background:e.colorError,boxShadow:e.dangerShadow,color:e.dangerColor},eO(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),eA(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),eR(e))}),eZ=e=>Object.assign(Object.assign({},eM(e)),{borderStyle:"dashed"}),eP=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},eO(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),eI(e)),{["&".concat(e.componentCls,"-dangerous")]:Object.assign(Object.assign({color:e.colorError},eO(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),eI(e))}),eD=e=>Object.assign(Object.assign(Object.assign({},eO(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),eI(e)),{["&".concat(e.componentCls,"-dangerous")]:Object.assign(Object.assign({color:e.colorError},eI(e)),eO(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBg}))}),ez=e=>{let{componentCls:t}=e;return{["".concat(t,"-default")]:eM(e),["".concat(t,"-primary")]:eL(e),["".concat(t,"-dashed")]:eZ(e),["".concat(t,"-link")]:eP(e),["".concat(t,"-text")]:eD(e),["".concat(t,"-ghost")]:eA(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},eF=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",{componentCls:n,controlHeight:r,fontSize:o,lineHeight:i,borderRadius:a,buttonPaddingHorizontal:s,iconCls:l,buttonPaddingVertical:c}=e,u="".concat(n,"-icon-only");return[{["".concat(t)]:{fontSize:o,lineHeight:i,height:r,padding:"".concat((0,ex.bf)(c)," ").concat((0,ex.bf)(s)),borderRadius:a,["&".concat(u)]:{width:r,paddingInlineStart:0,paddingInlineEnd:0,["&".concat(n,"-round")]:{width:"auto"},[l]:{fontSize:e.buttonIconOnlyFontSize}},["&".concat(n,"-loading")]:{opacity:e.opacityLoading,cursor:"default"},["".concat(n,"-loading-icon")]:{transition:"width ".concat(e.motionDurationSlow," ").concat(e.motionEaseInOut,", opacity ").concat(e.motionDurationSlow," ").concat(e.motionEaseInOut)}}},{["".concat(n).concat(n,"-circle").concat(t)]:eS(e)},{["".concat(n).concat(n,"-round").concat(t)]:eC(e)}]},eH=e=>eF((0,ey.TS)(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight}),e.componentCls),eB=e=>eF((0,ey.TS)(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,lineHeight:e.contentLineHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:e.paddingBlockSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM}),"".concat(e.componentCls,"-sm")),eW=e=>eF((0,ey.TS)(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG}),"".concat(e.componentCls,"-lg")),e$=e=>{let{componentCls:t}=e;return{[t]:{["&".concat(t,"-block")]:{width:"100%"}}}};var eG=(0,h.I$)("Button",e=>{let t=e_(e);return[eE(t),eH(t),eB(t),eW(t),e$(t),ez(t),ew(t)]},ej,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function eU(e,t,n){let{focusElCls:r,focus:o,borderElCls:i}=n,a=i?"> *":"",s=["hover",o?"focus":null,"active"].filter(Boolean).map(e=>"&:".concat(e," ").concat(a)).join(",");return{["&-item:not(".concat(t,"-last-item)")]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},r?{["&".concat(r)]:{zIndex:2}}:{}),{["&[disabled] ".concat(a)]:{zIndex:0}})}}function eV(e,t,n){let{borderElCls:r}=n,o=r?"> ".concat(r):"";return{["&-item:not(".concat(t,"-first-item):not(").concat(t,"-last-item) ").concat(o)]:{borderRadius:0},["&-item:not(".concat(t,"-last-item)").concat(t,"-first-item")]:{["& ".concat(o,", &").concat(e,"-sm ").concat(o,", &").concat(e,"-lg ").concat(o)]:{borderStartEndRadius:0,borderEndEndRadius:0}},["&-item:not(".concat(t,"-first-item)").concat(t,"-last-item")]:{["& ".concat(o,", &").concat(e,"-sm ").concat(o,", &").concat(e,"-lg ").concat(o)]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function eq(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{focus:!0},{componentCls:n}=e,r="".concat(n,"-compact");return{[r]:Object.assign(Object.assign({},eU(e,r,t)),eV(n,r,t))}}function eX(e,t){return{["&-item:not(".concat(t,"-last-item)")]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function eK(e,t){return{["&-item:not(".concat(t,"-first-item):not(").concat(t,"-last-item)")]:{borderRadius:0},["&-item".concat(t,"-first-item:not(").concat(t,"-last-item)")]:{["&, &".concat(e,"-sm, &").concat(e,"-lg")]:{borderEndEndRadius:0,borderEndStartRadius:0}},["&-item".concat(t,"-last-item:not(").concat(t,"-first-item)")]:{["&, &".concat(e,"-sm, &").concat(e,"-lg")]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function eQ(e){let t="".concat(e.componentCls,"-compact-vertical");return{[t]:Object.assign(Object.assign({},eX(e,t)),eK(e.componentCls,t))}}let eY=e=>{let{componentCls:t,calc:n}=e;return{[t]:{["&-compact-item".concat(t,"-primary")]:{["&:not([disabled]) + ".concat(t,"-compact-item").concat(t,"-primary:not([disabled])")]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:e.lineWidth,height:"calc(100% + ".concat((0,ex.bf)(e.lineWidth)," * 2)"),backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{["&".concat(t,"-primary")]:{["&:not([disabled]) + ".concat(t,"-compact-vertical-item").concat(t,"-primary:not([disabled])")]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:"calc(100% + ".concat((0,ex.bf)(e.lineWidth)," * 2)"),height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}};var eJ=(0,h.bk)(["Button","compact"],e=>{let t=e_(e);return[eq(t),eQ(t),eY(t)]},ej),e0=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function e1(e){if("object"==typeof e&&e){let t=null==e?void 0:e.delay;return{loading:(t=Number.isNaN(t)||"number"!=typeof t?0:t)<=0,delay:t}}return{loading:!!e,delay:0}}let e2=(e,t)=>{var n,r;let{loading:i=!1,prefixCls:s,type:u="default",danger:f,shape:h="default",size:p,styles:m,disabled:g,className:x,rootClassName:v,children:y,icon:b,ghost:w=!1,block:k=!1,htmlType:_="button",classNames:j,style:E={}}=e,O=e0(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),{getPrefixCls:S,autoInsertSpaceInButton:C,direction:T,button:A}=(0,o.useContext)(d.E_),R=S("btn",s),[N,I,M]=eG(R),L=(0,o.useContext)(q),Z=null!=g?g:L,P=(0,o.useContext)(J),D=(0,o.useMemo)(()=>e1(i),[i]),[z,F]=(0,o.useState)(D.loading),[H,B]=(0,o.useState)(!1),W=(0,o.createRef)(),$=(0,c.sQ)(t,W),G=1===o.Children.count(y)&&!b&&!eo(u);(0,o.useEffect)(()=>{let e=null;return D.delay>0?e=setTimeout(()=>{e=null,F(!0)},D.delay):F(D.loading),function(){e&&(clearTimeout(e),e=null)}},[D]),(0,o.useEffect)(()=>{if(!$||!$.current||!1===C)return;let e=$.current.textContent;G&&en(e)?H||B(!0):H&&B(!1)},[$]);let U=t=>{let{onClick:n}=e;if(z||Z){t.preventDefault();return}null==n||n(t)},X=!1!==C,{compactSize:Y,compactItemClassnames:ee}=(0,Q.ri)(R,T),et={large:"lg",small:"sm",middle:void 0},er=K(e=>{var t,n;return null!==(n=null!==(t=null!=p?p:Y)&&void 0!==t?t:P)&&void 0!==n?n:e}),ei=er&&et[er]||"",el=z?"loading":b,ec=l(O,["navigate"]),eu=a()(R,I,M,{["".concat(R,"-").concat(h)]:"default"!==h&&h,["".concat(R,"-").concat(u)]:u,["".concat(R,"-").concat(ei)]:ei,["".concat(R,"-icon-only")]:!y&&0!==y&&!!el,["".concat(R,"-background-ghost")]:w&&!eo(u),["".concat(R,"-loading")]:z,["".concat(R,"-two-chinese-chars")]:H&&X&&!z,["".concat(R,"-block")]:k,["".concat(R,"-dangerous")]:!!f,["".concat(R,"-rtl")]:"rtl"===T},ee,x,v,null==A?void 0:A.className),ed=Object.assign(Object.assign({},null==A?void 0:A.style),E),ef=a()(null==j?void 0:j.icon,null===(n=null==A?void 0:A.classNames)||void 0===n?void 0:n.icon),eh=Object.assign(Object.assign({},(null==m?void 0:m.icon)||{}),(null===(r=null==A?void 0:A.styles)||void 0===r?void 0:r.icon)||{}),ep=b&&!z?o.createElement(es,{prefixCls:R,className:ef,style:eh},b):o.createElement(eg,{existIcon:!!b,prefixCls:R,loading:!!z}),em=y||0===y?ea(y,G&&X):null;if(void 0!==ec.href)return N(o.createElement("a",Object.assign({},ec,{className:a()(eu,{["".concat(R,"-disabled")]:Z}),href:Z?void 0:ec.href,style:ed,onClick:U,ref:$,tabIndex:Z?-1:0}),ep,em));let ex=o.createElement("button",Object.assign({},O,{type:_,className:eu,style:ed,onClick:U,disabled:Z,ref:$}),ep,em,!!ee&&o.createElement(eJ,{key:"compact",prefixCls:R}));return eo(u)||(ex=o.createElement(V,{component:"Button",disabled:!!z},ex)),N(ex)},e5=(0,o.forwardRef)(e2);e5.Group=ee,e5.__ANT_BUTTON=!0;var e4=e5},78740:function(e,t,n){"use strict";n.d(t,{E_:function(){return a}});var r=n(50959);let o="anticon",i=(e,t)=>t||(e?"ant-".concat(e):"ant"),a=r.createContext({getPrefixCls:i,iconPrefixCls:o}),{Consumer:s}=a},89688:function(e,t,n){"use strict";n.d(t,{BR:function(){return l},ri:function(){return s}});var r=n(82187),o=n.n(r);n(44112);var i=n(50959);let a=i.createContext(null),s=(e,t)=>{let n=i.useContext(a),r=i.useMemo(()=>{if(!n)return"";let{compactDirection:r,isFirstItem:i,isLastItem:a}=n,s="vertical"===r?"-vertical-":"-";return o()("".concat(e,"-compact").concat(s,"item"),{["".concat(e,"-compact").concat(s,"first-item")]:i,["".concat(e,"-compact").concat(s,"last-item")]:a,["".concat(e,"-compact").concat(s,"item-rtl")]:"rtl"===t})},[e,t,n]);return{compactSize:null==n?void 0:n.compactSize,compactDirection:null==n?void 0:n.compactDirection,compactItemClassnames:r}},l=e=>{let{children:t}=e;return i.createElement(a.Provider,{value:null},t)}},94647:function(e,t,n){"use strict";n.d(t,{Lx:function(){return a},Qy:function(){return c},Ro:function(){return i},Wf:function(){return o},du:function(){return s}});var r=n(80548);let o=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},i=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),a=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:"color ".concat(e.motionDurationSlow),"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active,\n &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),s=(e,t,n)=>{let{fontFamily:r,fontSize:o}=e,i='[class^="'.concat(t,'"], [class*=" ').concat(t,'"]');return{[n?".".concat(n):i]:{fontFamily:r,fontSize:o,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[i]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},l=e=>({outline:"".concat((0,r.bf)(e.lineWidthFocus)," solid ").concat(e.colorPrimaryBorder),outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),c=e=>({"&:focus-visible":Object.assign({},l(e))})},52724:function(e,t,n){"use strict";function r(e){return(e+8)/e}function o(e){let t=Array(10).fill(null).map((t,n)=>{let r=e*Math.pow(2.71828,(n-1)/5);return 2*Math.floor((n>1?Math.floor(r):Math.ceil(r))/2)});return t[1]=e,t.map(e=>({size:e,lineHeight:r(e)}))}n.d(t,{D:function(){return r},Z:function(){return o}})},10106:function(e,t,n){"use strict";n.d(t,{ZP:function(){return et},ID:function(){return Y},NJ:function(){return Q}});var r=n(50959),o=n(80548),i="5.14.2",a=n(96299),s=n(28556),l=2,c=.16,u=.05,d=.05,f=.15,h=5,p=4,m=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function g(e){var t=e.r,n=e.g,r=e.b,o=(0,a.py)(t,n,r);return{h:360*o.h,s:o.s,v:o.v}}function x(e){var t=e.r,n=e.g,r=e.b;return"#".concat((0,a.vq)(t,n,r,!1))}function v(e,t,n){var r=n/100;return{r:(t.r-e.r)*r+e.r,g:(t.g-e.g)*r+e.g,b:(t.b-e.b)*r+e.b}}function y(e,t,n){var r;return(r=Math.round(e.h)>=60&&240>=Math.round(e.h)?n?Math.round(e.h)-l*t:Math.round(e.h)+l*t:n?Math.round(e.h)+l*t:Math.round(e.h)-l*t)<0?r+=360:r>=360&&(r-=360),r}function b(e,t,n){var r;return 0===e.h&&0===e.s?e.s:((r=n?e.s-c*t:t===p?e.s+c:e.s+u*t)>1&&(r=1),n&&t===h&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)))}function w(e,t,n){var r;return(r=n?e.v+d*t:e.v-f*t)>1&&(r=1),Number(r.toFixed(2))}function k(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=(0,s.uA)(e),o=h;o>0;o-=1){var i=g(r),a=x((0,s.uA)({h:y(i,o,!0),s:b(i,o,!0),v:w(i,o,!0)}));n.push(a)}n.push(x(r));for(var l=1;l<=p;l+=1){var c=g(r),u=x((0,s.uA)({h:y(c,l),s:b(c,l),v:w(c,l)}));n.push(u)}return"dark"===t.theme?m.map(function(e){var r=e.index,o=e.opacity;return x(v((0,s.uA)(t.backgroundColor||"#141414"),(0,s.uA)(n[r]),100*o))}):n}var _={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},j={},E={};Object.keys(_).forEach(function(e){j[e]=k(_[e]),j[e].primary=j[e][5],E[e]=k(_[e],{theme:"dark",backgroundColor:"#141414"}),E[e].primary=E[e][5]}),j.red,j.volcano,j.gold,j.orange,j.yellow,j.lime,j.green,j.cyan,j.blue,j.geekblue,j.purple,j.magenta,j.grey,j.grey;var O=e=>{let{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}};function S(e){let{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}let C={blue:"#1677ff",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#eb2f96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"};var T=Object.assign(Object.assign({},C),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'Noto Color Emoji'",fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0}),A=n(76367),R=n(23881),N=function(){function e(t,n){if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"==typeof t&&(t=(0,a.Yt)(t)),this.originalInput=t;var r,o=(0,s.uA)(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(r=n.format)&&void 0!==r?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return 128>this.getBrightness()},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e,t,n,r=this.toRgb(),o=r.r/255,i=r.g/255,a=r.b/255;return .2126*(e=o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4))+.7152*(t=i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4))+.0722*(n=a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=(0,R.Yq)(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=(0,a.py)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=(0,a.py)(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=(0,a.lC)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=(0,a.lC)(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),(0,a.vq)(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),(0,a.s)(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*(0,R.sh)(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*(0,R.sh)(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+(0,a.vq)(this.r,this.g,this.b,!1),t=0,n=Object.entries(A.R);t=0;return!t&&r&&(e.startsWith("hex")||"name"===e)?"name"===e&&0===this.a?this.toName():this.toRgbString():("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),("hex"===e||"hex6"===e)&&(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=(0,R.V2)(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-(t/100*255)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-(t/100*255)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-(t/100*255)))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=(0,R.V2)(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=(0,R.V2)(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=(0,R.V2)(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100;return new e({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,i=n.v,a=[],s=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+s)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],i=360/t,a=1;a{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}};function L(e){let{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:"".concat((n+t).toFixed(1),"s"),motionDurationMid:"".concat((n+2*t).toFixed(1),"s"),motionDurationSlow:"".concat((n+3*t).toFixed(1),"s"),lineWidthBold:o+1},M(r))}let Z=(e,t)=>new N(e).setAlpha(t).toRgbString(),P=(e,t)=>new N(e).darken(t).toHexString(),D=e=>{let t=k(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},z=(e,t)=>{let n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Z(r,.88),colorTextSecondary:Z(r,.65),colorTextTertiary:Z(r,.45),colorTextQuaternary:Z(r,.25),colorFill:Z(r,.15),colorFillSecondary:Z(r,.06),colorFillTertiary:Z(r,.04),colorFillQuaternary:Z(r,.02),colorBgLayout:P(n,4),colorBgContainer:P(n,0),colorBgElevated:P(n,0),colorBgSpotlight:Z(r,.85),colorBgBlur:"transparent",colorBorder:P(n,15),colorBorderSecondary:P(n,6)}};var F=n(52724),H=e=>{let t=(0,F.Z)(e),n=t.map(e=>e.size),r=t.map(e=>e.lineHeight),o=n[1],i=n[0],a=n[2],s=r[1],l=r[0],c=r[2];return{fontSizeSM:i,fontSize:o,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(s*o),fontHeightLG:Math.round(c*a),fontHeightSM:Math.round(l*i),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function B(e){let t=Object.keys(C).map(t=>{let n=k(e[t]);return Array(10).fill(1).reduce((e,r,o)=>(e["".concat(t,"-").concat(o+1)]=n[o],e["".concat(t).concat(o+1)]=n[o],e),{})}).reduce((e,t)=>e=Object.assign(Object.assign({},e),t),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),I(e,{generateColorPalettes:D,generateNeutralColorPalettes:z})),H(e.fontSize)),S(e)),O(e)),L(e))}let W=(0,o.jG)(B),$={token:T,override:{override:T},hashed:!0},G=r.createContext($);function U(e){return e>=0&&e<=255}var V=function(e,t){let{r:n,g:r,b:o,a:i}=new N(e).toRgb();if(i<1)return e;let{r:a,g:s,b:l}=new N(t).toRgb();for(let e=.01;e<=1;e+=.01){let t=Math.round((n-a*(1-e))/e),i=Math.round((r-s*(1-e))/e),c=Math.round((o-l*(1-e))/e);if(U(t)&&U(i)&&U(c))return new N({r:t,g:i,b:c,a:Math.round(100*e)/100}).toRgbString()}return new N({r:n,g:r,b:o,a:1}).toRgbString()},q=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function X(e){let{override:t}=e,n=q(e,["override"]),r=Object.assign({},t);Object.keys(T).forEach(e=>{delete r[e]});let o=Object.assign(Object.assign({},n),r),i=480,a=576,s=768,l=992,c=1200,u=1600;if(!1===o.motion){let e="0s";o.motionDurationFast=e,o.motionDurationMid=e,o.motionDurationSlow=e}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:V(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:V(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:V(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:4*o.lineWidth,lineWidth:o.lineWidth,controlOutlineWidth:2*o.lineWidth,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:V(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowSecondary:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTertiary:"\n 0 1px 2px 0 rgba(0, 0, 0, 0.03),\n 0 1px 6px -1px rgba(0, 0, 0, 0.02),\n 0 2px 4px 0 rgba(0, 0, 0, 0.02)\n ",screenXS:i,screenXSMin:i,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:l-1,screenLG:l,screenLGMin:l,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:u-1,screenXXL:u,screenXXLMin:u,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:"\n 0 1px 2px -2px ".concat(new N("rgba(0, 0, 0, 0.16)").toRgbString(),",\n 0 3px 6px 0 ").concat(new N("rgba(0, 0, 0, 0.12)").toRgbString(),",\n 0 5px 12px 4px ").concat(new N("rgba(0, 0, 0, 0.09)").toRgbString(),"\n "),boxShadowDrawerRight:"\n -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerLeft:"\n 6px 0 16px 0 rgba(0, 0, 0, 0.08),\n 3px 0 6px -4px rgba(0, 0, 0, 0.12),\n 9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerUp:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerDown:"\n 0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var K=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let Q={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0},Y={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},J={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},ee=(e,t,n)=>{let r=n.getDerivativeToken(e),{override:o}=t,i=K(t,["override"]),a=Object.assign(Object.assign({},r),{override:o});return a=X(a),i&&Object.entries(i).forEach(e=>{let[t,n]=e,{theme:r}=n,o=K(n,["theme"]),i=o;r&&(i=ee(Object.assign(Object.assign({},a),o),{override:o},r)),a[t]=i}),a};function et(){let{token:e,hashed:t,theme:n,override:a,cssVar:s}=r.useContext(G),l="".concat(i,"-").concat(t||""),c=n||W,[u,d,f]=(0,o.fp)(c,[T,e],{salt:l,override:a,getComputedToken:ee,formatToken:X,cssVar:s&&{prefix:s.prefix,key:s.key,unitless:Q,ignore:Y,preserve:J}});return[c,f,t?d:"",u,s]}},40170:function(e,t,n){"use strict";n.d(t,{ZP:function(){return C},I$:function(){return R},bk:function(){return T}});var r=n(50959),o=n(80548);n(8938);var i=n(78740),a=n(94647),s=n(10106),l=n(9130),c=n(82349),u=n(47442),d=n(78540),f=n(51289),h=n(53264),p=(0,c.Z)(function e(){(0,l.Z)(this,e)});function m(e,t,n){return t=(0,f.Z)(t),(0,u.Z)(e,(0,d.Z)()?Reflect.construct(t,n||[],(0,f.Z)(e).constructor):t.apply(e,n))}let g=function(e){function t(e){var n;return(0,l.Z)(this,t),(n=m(this,t)).result=0,e instanceof t?n.result=e.result:"number"==typeof e&&(n.result=e),n}return(0,h.Z)(t,e),(0,c.Z)(t,[{key:"add",value:function(e){return e instanceof t?this.result+=e.result:"number"==typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof t?this.result-=e.result:"number"==typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof t?this.result*=e.result:"number"==typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof t?this.result/=e.result:"number"==typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}]),t}(p);function x(e,t,n){return t=(0,f.Z)(t),(0,u.Z)(e,(0,d.Z)()?Reflect.construct(t,n||[],(0,f.Z)(e).constructor):t.apply(e,n))}let v="CALC_UNIT";function y(e){return"number"==typeof e?"".concat(e).concat(v):e}let b=function(e){function t(e){var n;return(0,l.Z)(this,t),(n=x(this,t)).result="",e instanceof t?n.result="(".concat(e.result,")"):"number"==typeof e?n.result=y(e):"string"==typeof e&&(n.result=e),n}return(0,h.Z)(t,e),(0,c.Z)(t,[{key:"add",value:function(e){return e instanceof t?this.result="".concat(this.result," + ").concat(e.getResult()):("number"==typeof e||"string"==typeof e)&&(this.result="".concat(this.result," + ").concat(y(e))),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof t?this.result="".concat(this.result," - ").concat(e.getResult()):("number"==typeof e||"string"==typeof e)&&(this.result="".concat(this.result," - ").concat(y(e))),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof t?this.result="".concat(this.result," * ").concat(e.getResult(!0)):("number"==typeof e||"string"==typeof e)&&(this.result="".concat(this.result," * ").concat(e)),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof t?this.result="".concat(this.result," / ").concat(e.getResult(!0)):("number"==typeof e||"string"==typeof e)&&(this.result="".concat(this.result," / ").concat(e)),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(e){let{unit:t=!0}=e||{},n=RegExp("".concat(v),"g");return(this.result=this.result.replace(n,t?"px":""),void 0!==this.lowPriority)?"calc(".concat(this.result,")"):this.result}}]),t}(p);var w=e=>{let t="css"===e?b:g;return e=>new t(e)};function k(e){return"js"===e?{max:Math.max,min:Math.min}:{max:function(){for(var e=arguments.length,t=Array(e),n=0;n(0,o.bf)(e)).join(","),")")},min:function(){for(var e=arguments.length,t=Array(e),n=0;n(0,o.bf)(e)).join(","),")")}}}var _=n(3751),j=(e,t)=>{let[n,r]=(0,s.ZP)();return(0,o.xy)({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>null==t?void 0:t.nonce},()=>[{[".".concat(e)]:Object.assign(Object.assign({},(0,a.Ro)()),{[".".concat(e," .").concat(e,"-icon")]:{display:"block"}})}])};let E=(e,t,n)=>{var r;return"function"==typeof n?n((0,_.TS)(t,null!==(r=t[e])&&void 0!==r?r:{})):null!=n?n:{}},O=(e,t,n,r)=>{let o=Object.assign({},t[e]);if(null==r?void 0:r.deprecatedTokens){let{deprecatedTokens:e}=r;e.forEach(e=>{var t;let[n,r]=e;((null==o?void 0:o[n])||(null==o?void 0:o[r]))&&(null!==(t=o[r])&&void 0!==t||(o[r]=null==o?void 0:o[n]))})}let i=Object.assign(Object.assign({},n),o);return Object.keys(i).forEach(e=>{i[e]===t[e]&&delete i[e]}),i},S=(e,t)=>"".concat([t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"));function C(e,t,n){let l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},c=Array.isArray(e)?e:[e,e],[u]=c,d=c.join("-");return function(e){let c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,[f,h,p,m,g]=(0,s.ZP)(),{getPrefixCls:x,iconPrefixCls:v,csp:y}=(0,r.useContext)(i.E_),b=x(),C=g?"css":"js",T=w(C),{max:A,min:R}=k(C),N={theme:f,token:m,hashId:p,nonce:()=>null==y?void 0:y.nonce,clientOnly:l.clientOnly,order:l.order||-999};return(0,o.xy)(Object.assign(Object.assign({},N),{clientOnly:!1,path:["Shared",b]}),()=>[{"&":(0,a.Lx)(m)}]),j(v,y),[(0,o.xy)(Object.assign(Object.assign({},N),{path:[d,e,v]}),()=>{if(!1===l.injectStyle)return[];let{token:r,flush:i}=(0,_.ZP)(m),s=E(u,h,n),d=".".concat(e),f=O(u,h,s,{deprecatedTokens:l.deprecatedTokens});g&&Object.keys(s).forEach(e=>{s[e]="var(".concat((0,o.ks)(e,S(u,g.prefix)),")")});let x=(0,_.TS)(r,{componentCls:d,prefixCls:e,iconCls:".".concat(v),antCls:".".concat(b),calc:T,max:A,min:R},g?s:f),y=t(x,{hashId:p,prefixCls:e,rootPrefixCls:b,iconPrefixCls:v});return i(u,f),[!1===l.resetStyle?null:(0,a.du)(x,e,c),y]}),p]}}let T=(e,t,n,r)=>{let o=C(e,t,n,Object.assign({resetStyle:!1,order:-998},r));return e=>{let{prefixCls:t,rootCls:n=t}=e;return o(t,n),null}},A=(e,t,n)=>{function i(t){return"".concat(e).concat(t.slice(0,1).toUpperCase()).concat(t.slice(1))}let{unitless:a={},injectStyle:l=!0}=null!=n?n:{},c={[i("zIndexPopup")]:!0};Object.keys(a).forEach(e=>{c[i(e)]=a[e]});let u=r=>{let{rootCls:a,cssVar:l}=r,[,u]=(0,s.ZP)();return(0,o.CI)({path:[e],prefix:l.prefix,key:null==l?void 0:l.key,unitless:Object.assign(Object.assign({},s.NJ),c),ignore:s.ID,token:u,scope:a},()=>{let r=E(e,u,t),o=O(e,u,r,{deprecatedTokens:null==n?void 0:n.deprecatedTokens});return Object.keys(r).forEach(e=>{o[i(e)]=o[e],delete o[e]}),o}),null};return t=>{let[,,,,n]=(0,s.ZP)();return[o=>l&&n?r.createElement(r.Fragment,null,r.createElement(u,{rootCls:t,cssVar:n,component:e}),o):o,null==n?void 0:n.key]}},R=(e,t,n,r)=>{let o=C(e,t,n,r),i=A(Array.isArray(e)?e[0]:e,n,r);return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,[,n]=o(e,t),[r,a]=i(t);return[r,n,a]}}},3751:function(e,t,n){"use strict";n.d(t,{TS:function(){return i}});let r="undefined"!=typeof CSSINJS_STATISTIC,o=!0;function i(){for(var e=arguments.length,t=Array(e),n=0;n{Object.keys(e).forEach(t=>{Object.defineProperty(i,t,{configurable:!0,enumerable:!0,get:()=>e[t]})})}),o=!0,i}let a={};function s(){}let l=e=>{let t;let n=e,i=s;return r&&"undefined"!=typeof Proxy&&(t=new Set,n=new Proxy(e,{get:(e,n)=>(o&&t.add(n),e[n])}),i=(e,n)=>{var r;a[e]={global:Array.from(t),component:Object.assign(Object.assign({},null===(r=a[e])||void 0===r?void 0:r.component),n)}}),{token:n,keys:t,flush:i}};t.ZP=l},53679:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{PrefetchKind:function(){return n},ACTION_REFRESH:function(){return r},ACTION_NAVIGATE:function(){return o},ACTION_RESTORE:function(){return i},ACTION_SERVER_PATCH:function(){return a},ACTION_PREFETCH:function(){return s},ACTION_FAST_REFRESH:function(){return l},ACTION_SERVER_ACTION:function(){return c},isThenable:function(){return u}});let r="refresh",o="navigate",i="restore",a="server-patch",s="prefetch",l="fast-refresh",c="server-action";function u(e){return e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}!function(e){e.AUTO="auto",e.FULL="full",e.TEMPORARY="temporary"}(n||(n={})),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3434:function(e,t,n){"use strict";function r(e,t,n,r){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return r}}),n(44743),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},48558:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return y}});let r=n(81351),o=n(35815),i=n(11527),a=o._(n(50959)),s=r._(n(10422)),l=r._(n(58044)),c=n(26e3),u=n(54297),d=n(25364);n(62509);let f=n(75530),h=r._(n(19487)),p={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!0,unoptimized:!0};function m(e,t,n,r,o,i){let a=null==e?void 0:e.src;e&&e["data-loaded-src"]!==a&&(e["data-loaded-src"]=a,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&o(!0),null==n?void 0:n.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let r=!1,o=!1;n.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>r,isPropagationStopped:()=>o,persist:()=>{},preventDefault:()=>{r=!0,t.preventDefault()},stopPropagation:()=>{o=!0,t.stopPropagation()}})}(null==r?void 0:r.current)&&r.current(e)}}))}function g(e){let[t,n]=a.version.split(".",2),r=parseInt(t,10),o=parseInt(n,10);return r>18||18===r&&o>=3?{fetchPriority:e}:{fetchpriority:e}}let x=(0,a.forwardRef)((e,t)=>{let{src:n,srcSet:r,sizes:o,height:s,width:l,decoding:c,className:u,style:d,fetchPriority:f,placeholder:h,loading:p,unoptimized:x,fill:v,onLoadRef:y,onLoadingCompleteRef:b,setBlurComplete:w,setShowAltText:k,onLoad:_,onError:j,...E}=e;return(0,i.jsx)("img",{...E,...g(f),loading:p,width:l,height:s,decoding:c,"data-nimg":v?"fill":"1",className:u,style:d,sizes:o,srcSet:r,src:n,ref:(0,a.useCallback)(e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(j&&(e.src=e.src),e.complete&&m(e,h,y,b,w,x))},[n,h,y,b,w,j,x,t]),onLoad:e=>{m(e.currentTarget,h,y,b,w,x)},onError:e=>{k(!0),"empty"!==h&&w(!0),j&&j(e)}})});function v(e){let{isAppRouter:t,imgAttributes:n}=e,r={as:"image",imageSrcSet:n.srcSet,imageSizes:n.sizes,crossOrigin:n.crossOrigin,referrerPolicy:n.referrerPolicy,...g(n.fetchPriority)};return t&&s.default.preload?(s.default.preload(n.src,r),null):(0,i.jsx)(l.default,{children:(0,i.jsx)("link",{rel:"preload",href:n.srcSet?void 0:n.src,...r},"__nimg-"+n.src+n.srcSet+n.sizes)})}let y=(0,a.forwardRef)((e,t)=>{let n=!(0,a.useContext)(f.RouterContext),r=(0,a.useContext)(d.ImageConfigContext),o=(0,a.useMemo)(()=>{let e=p||r||u.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),n=e.deviceSizes.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:n}},[r]),{onLoad:s,onLoadingComplete:l}=e,m=(0,a.useRef)(s);(0,a.useEffect)(()=>{m.current=s},[s]);let g=(0,a.useRef)(l);(0,a.useEffect)(()=>{g.current=l},[l]);let[y,b]=(0,a.useState)(!1),[w,k]=(0,a.useState)(!1),{props:_,meta:j}=(0,c.getImgProps)(e,{defaultLoader:h.default,imgConf:o,blurComplete:y,showAltText:w});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(x,{..._,unoptimized:j.unoptimized,placeholder:j.placeholder,fill:j.fill,onLoadRef:m,onLoadingCompleteRef:g,setBlurComplete:b,setShowAltText:k,ref:t}),j.priority?(0,i.jsx)(v,{isAppRouter:n,imgAttributes:_}):null]})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},59686:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return k}});let r=n(81351),o=n(11527),i=r._(n(50959)),a=n(46680),s=n(18015),l=n(87239),c=n(46954),u=n(9561),d=n(75530),f=n(64731),h=n(99533),p=n(3434),m=n(29971),g=n(53679),x=new Set;function v(e,t,n,r,o,i){if(i||(0,s.isLocalURL)(t)){if(!r.bypassPrefetchedCheck){let o=t+"%"+n+"%"+(void 0!==r.locale?r.locale:"locale"in e?e.locale:void 0);if(x.has(o))return;x.add(o)}Promise.resolve(i?e.prefetch(t,o):e.prefetch(t,n,r)).catch(e=>{})}}function y(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}function b(e,t,n,r,o,a,l,c,u){let{nodeName:d}=e.currentTarget;if("A"===d.toUpperCase()&&(y(e)||!u&&!(0,s.isLocalURL)(n)))return;e.preventDefault();let f=()=>{let e=null==l||l;"beforePopState"in t?t[o?"replace":"push"](n,r,{shallow:a,locale:c,scroll:e}):t[o?"replace":"push"](r||n,{scroll:e})};u?i.default.startTransition(f):f()}function w(e){return"string"==typeof e?e:(0,l.formatUrl)(e)}let k=i.default.forwardRef(function(e,t){let n,r;let{href:s,as:l,children:x,prefetch:y=null,passHref:k,replace:_,shallow:j,scroll:E,locale:O,onClick:S,onMouseEnter:C,onTouchStart:T,legacyBehavior:A=!1,...R}=e;n=x,A&&("string"==typeof n||"number"==typeof n)&&(n=(0,o.jsx)("a",{children:n}));let N=i.default.useContext(d.RouterContext),I=i.default.useContext(f.AppRouterContext),M=null!=N?N:I,L=!N,Z=!1!==y,P=null===y?g.PrefetchKind.AUTO:g.PrefetchKind.FULL,{href:D,as:z}=i.default.useMemo(()=>{if(!N){let e=w(s);return{href:e,as:l?w(l):e}}let[e,t]=(0,a.resolveHref)(N,s,!0);return{href:e,as:l?(0,a.resolveHref)(N,l):t||e}},[N,s,l]),F=i.default.useRef(D),H=i.default.useRef(z);A&&(r=i.default.Children.only(n));let B=A?r&&"object"==typeof r&&r.ref:t,[W,$,G]=(0,h.useIntersection)({rootMargin:"200px"}),U=i.default.useCallback(e=>{(H.current!==z||F.current!==D)&&(G(),H.current=z,F.current=D),W(e),B&&("function"==typeof B?B(e):"object"==typeof B&&(B.current=e))},[z,B,D,G,W]);i.default.useEffect(()=>{M&&$&&Z&&v(M,D,z,{locale:O},{kind:P},L)},[z,D,$,O,Z,null==N?void 0:N.locale,M,L,P]);let V={ref:U,onClick(e){A||"function"!=typeof S||S(e),A&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),M&&!e.defaultPrevented&&b(e,M,D,z,_,j,E,O,L)},onMouseEnter(e){A||"function"!=typeof C||C(e),A&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),M&&(Z||!L)&&v(M,D,z,{locale:O,priority:!0,bypassPrefetchedCheck:!0},{kind:P},L)},onTouchStart(e){A||"function"!=typeof T||T(e),A&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),M&&(Z||!L)&&v(M,D,z,{locale:O,priority:!0,bypassPrefetchedCheck:!0},{kind:P},L)}};if((0,c.isAbsoluteUrl)(z))V.href=z;else if(!A||k||"a"===r.type&&!("href"in r.props)){let e=void 0!==O?O:null==N?void 0:N.locale,t=(null==N?void 0:N.isLocaleDomain)&&(0,p.getDomainLocale)(z,e,null==N?void 0:N.locales,null==N?void 0:N.domainLocales);V.href=t||(0,m.addBasePath)((0,u.addLocale)(z,e,null==N?void 0:N.defaultLocale))}return A?i.default.cloneElement(r,V):(0,o.jsx)("a",{...R,...V,children:n})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},99533:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return u}});let r=n(50959),o=n(46619),i="function"==typeof IntersectionObserver,a=new Map,s=[];function l(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},r=s.find(e=>e.root===n.root&&e.margin===n.margin);if(r&&(t=a.get(r)))return t;let o=new Map;return t={id:n,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=o.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e),elements:o},s.push(n),a.set(n,t),t}function c(e,t,n){let{id:r,observer:o,elements:i}=l(n);return i.set(e,t),o.observe(e),function(){if(i.delete(e),o.unobserve(e),0===i.size){o.disconnect(),a.delete(r);let e=s.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&s.splice(e,1)}}}function u(e){let{rootRef:t,rootMargin:n,disabled:a}=e,s=a||!i,[l,u]=(0,r.useState)(!1),d=(0,r.useRef)(null),f=(0,r.useCallback)(e=>{d.current=e},[]);return(0,r.useEffect)(()=>{if(i){if(s||l)return;let e=d.current;if(e&&e.tagName)return c(e,e=>e&&u(e),{root:null==t?void 0:t.current,rootMargin:n})}else if(!l){let e=(0,o.requestIdleCallback)(()=>u(!0));return()=>(0,o.cancelIdleCallback)(e)}},[s,n,t,l,d.current]),[f,l,(0,r.useCallback)(()=>{u(!1)},[])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},26e3:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return d}}),n(62509);let r=n(42544),o=n(54297);function i(e){return void 0!==e.default}function a(e){return void 0!==e.src}function s(e){return"object"==typeof e&&(i(e)||a(e))}function l(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function c(e,t,n){let{deviceSizes:r,allSizes:o}=e;if(n){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let r;r=e.exec(n);r)t.push(parseInt(r[2]));if(t.length){let e=.01*Math.min(...t);return{widths:o.filter(t=>t>=r[0]*e),kind:"w"}}return{widths:o,kind:"w"}}return"number"!=typeof t?{widths:r,kind:"w"}:{widths:[...new Set([t,2*t].map(e=>o.find(t=>t>=e)||o[o.length-1]))],kind:"x"}}function u(e){let{config:t,src:n,unoptimized:r,width:o,quality:i,sizes:a,loader:s}=e;if(r)return{src:n,srcSet:void 0,sizes:void 0};let{widths:l,kind:u}=c(t,o,a),d=l.length-1;return{sizes:a||"w"!==u?a:"100vw",srcSet:l.map((e,r)=>s({config:t,src:n,quality:i,width:e})+" "+("w"===u?e:r+1)+u).join(", "),src:s({config:t,src:n,quality:i,width:l[d]})}}function d(e,t){let n,a,c,{src:d,sizes:f,unoptimized:h=!1,priority:p=!1,loading:m,className:g,quality:x,width:v,height:y,fill:b=!1,style:w,onLoad:k,onLoadingComplete:_,placeholder:j="empty",blurDataURL:E,fetchPriority:O,layout:S,objectFit:C,objectPosition:T,lazyBoundary:A,lazyRoot:R,...N}=e,{imgConf:I,showAltText:M,blurComplete:L,defaultLoader:Z}=t,P=I||o.imageConfigDefault;if("allSizes"in P)n=P;else{let e=[...P.deviceSizes,...P.imageSizes].sort((e,t)=>e-t),t=P.deviceSizes.sort((e,t)=>e-t);n={...P,allSizes:e,deviceSizes:t}}let D=N.loader||Z;delete N.loader,delete N.srcSet;let z="__next_img_default"in D;if(z){if("custom"===n.loader)throw Error('Image with src "'+d+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let e=D;D=t=>{let{config:n,...r}=t;return e(r)}}if(S){"fill"===S&&(b=!0);let e={responsive:"100vw",fill:"100vw"},t={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[S];t&&(w={...w,...t});let n=e[S];n&&!f&&(f=n)}let F="",H=l(v),B=l(y);if(s(d)){let e=i(d)?d.default:d;if(!e.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e));if(!e.height||!e.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e));if(a=e.blurWidth,c=e.blurHeight,E=E||e.blurDataURL,F=e.src,!b){if(H||B){if(H&&!B){let t=H/e.width;B=Math.round(e.height*t)}else if(!H&&B){let t=B/e.height;H=Math.round(e.width*t)}}else H=e.width,B=e.height}}let W=!p&&("lazy"===m||void 0===m);(!(d="string"==typeof d?d:F)||d.startsWith("data:")||d.startsWith("blob:"))&&(h=!0,W=!1),n.unoptimized&&(h=!0),z&&d.endsWith(".svg")&&!n.dangerouslyAllowSVG&&(h=!0),p&&(O="high");let $=l(x),G=Object.assign(b?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:C,objectPosition:T}:{},M?{}:{color:"transparent"},w),U=L||"empty"===j?null:"blur"===j?'url("data:image/svg+xml;charset=utf-8,'+(0,r.getImageBlurSvg)({widthInt:H,heightInt:B,blurWidth:a,blurHeight:c,blurDataURL:E||"",objectFit:G.objectFit})+'")':'url("'+j+'")',V=U?{backgroundSize:G.objectFit||"cover",backgroundPosition:G.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:U}:{},q=u({config:n,src:d,unoptimized:h,width:H,quality:$,sizes:f,loader:D});return{props:{...N,loading:W?"lazy":m,fetchPriority:O,width:H,height:B,decoding:"async",className:g,style:{...G,...V},sizes:q.sizes,srcSet:q.srcSet,src:q.src},meta:{unoptimized:h,priority:p,placeholder:j,fill:b}}}},42544:function(e,t){"use strict";function n(e){let{widthInt:t,heightInt:n,blurWidth:r,blurHeight:o,blurDataURL:i,objectFit:a}=e,s=r?40*r:t,l=o?40*o:n,c=s&&l?"viewBox='0 0 "+s+" "+l+"'":"",u=c?"none":"contain"===a?"xMidYMid":"cover"===a?"xMidYMid slice":"none";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+c+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+u+"' style='filter: url(%23b);' href='"+i+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return n}})},34473:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getImageProps:function(){return s},default:function(){return l}});let r=n(81351),o=n(26e3),i=n(48558),a=r._(n(19487)),s=e=>{let{props:t}=(0,o.getImgProps)(e,{defaultLoader:a.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!0,unoptimized:!0}});for(let[e,n]of Object.entries(t))void 0===n&&delete t[e];return{props:t}},l=i.Image},19487:function(e,t){"use strict";function n(e){let{config:t,src:n,width:r,quality:o}=e;return t.path+"?url="+encodeURIComponent(n)+"&w="+r+"&q="+(o||75)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}}),n.__next_img_default=!0;let r=n},83396:function(){},56609:function(){},11714:function(){},46095:function(e){var t="/";!function(){"use strict";var n={114:function(e){function t(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}function n(e,t){for(var n,r="",o=0,i=-1,a=0,s=0;s<=e.length;++s){if(s2){var l=r.lastIndexOf("/");if(l!==r.length-1){-1===l?(r="",o=0):o=(r=r.slice(0,l)).length-1-r.lastIndexOf("/"),i=s,a=0;continue}}else if(2===r.length||1===r.length){r="",o=0,i=s,a=0;continue}}t&&(r.length>0?r+="/..":r="..",o=2)}else r.length>0?r+="/"+e.slice(i+1,s):r=e.slice(i+1,s),o=s-i-1;i=s,a=0}else 46===n&&-1!==a?++a:a=-1}return r}function r(e,t){var n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+e+r:r}var o={resolve:function(){for(var e,r,o="",i=!1,a=arguments.length-1;a>=-1&&!i;a--)a>=0?r=arguments[a]:(void 0===e&&(e=""),r=e),t(r),0!==r.length&&(o=r+"/"+o,i=47===r.charCodeAt(0));return(o=n(o,!i),i)?o.length>0?"/"+o:"/":o.length>0?o:"."},normalize:function(e){if(t(e),0===e.length)return".";var r=47===e.charCodeAt(0),o=47===e.charCodeAt(e.length-1);return(0!==(e=n(e,!r)).length||r||(e="."),e.length>0&&o&&(e+="/"),r)?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0==arguments.length)return".";for(var e,n=0;n0&&(void 0===e?e=r:e+="/"+r)}return void 0===e?".":o.normalize(e)},relative:function(e,n){if(t(e),t(n),e===n||(e=o.resolve(e))===(n=o.resolve(n)))return"";for(var r=1;rc){if(47===n.charCodeAt(s+d))return n.slice(s+d+1);if(0===d)return n.slice(s+d)}else a>c&&(47===e.charCodeAt(r+d)?u=d:0===d&&(u=0));break}var f=e.charCodeAt(r+d);if(f!==n.charCodeAt(s+d))break;47===f&&(u=d)}var h="";for(d=r+u+1;d<=i;++d)(d===i||47===e.charCodeAt(d))&&(0===h.length?h+="..":h+="/..");return h.length>0?h+n.slice(s+u):(s+=u,47===n.charCodeAt(s)&&++s,n.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var n=e.charCodeAt(0),r=47===n,o=-1,i=!0,a=e.length-1;a>=1;--a)if(47===(n=e.charCodeAt(a))){if(!i){o=a;break}}else i=!1;return -1===o?r?"/":".":r&&1===o?"//":e.slice(0,o)},basename:function(e,n){if(void 0!==n&&"string"!=typeof n)throw TypeError('"ext" argument must be a string');t(e);var r,o=0,i=-1,a=!0;if(void 0!==n&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var s=n.length-1,l=-1;for(r=e.length-1;r>=0;--r){var c=e.charCodeAt(r);if(47===c){if(!a){o=r+1;break}}else -1===l&&(a=!1,l=r+1),s>=0&&(c===n.charCodeAt(s)?-1==--s&&(i=r):(s=-1,i=l))}return o===i?i=l:-1===i&&(i=e.length),e.slice(o,i)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!a){o=r+1;break}}else -1===i&&(a=!1,i=r+1);return -1===i?"":e.slice(o,i)},extname:function(e){t(e);for(var n=-1,r=0,o=-1,i=!0,a=0,s=e.length-1;s>=0;--s){var l=e.charCodeAt(s);if(47===l){if(!i){r=s+1;break}continue}-1===o&&(i=!1,o=s+1),46===l?-1===n?n=s:1!==a&&(a=1):-1!==n&&(a=-1)}return -1===n||-1===o||0===a||1===a&&n===o-1&&n===r+1?"":e.slice(n,o)},format:function(e){if(null===e||"object"!=typeof e)throw TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return r("/",e)},parse:function(e){t(e);var n,r={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return r;var o=e.charCodeAt(0),i=47===o;i?(r.root="/",n=1):n=0;for(var a=-1,s=0,l=-1,c=!0,u=e.length-1,d=0;u>=n;--u){if(47===(o=e.charCodeAt(u))){if(!c){s=u+1;break}continue}-1===l&&(c=!1,l=u+1),46===o?-1===a?a=u:1!==d&&(d=1):-1!==a&&(d=-1)}return -1===a||-1===l||0===d||1===d&&a===l-1&&a===s+1?-1!==l&&(0===s&&i?r.base=r.name=e.slice(1,l):r.base=r.name=e.slice(s,l)):(0===s&&i?(r.name=e.slice(1,a),r.base=e.slice(1,l)):(r.name=e.slice(s,a),r.base=e.slice(s,l)),r.ext=e.slice(a,l)),s>0?r.dir=e.slice(0,s-1):i&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};o.posix=o,e.exports=o}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={exports:{}},a=!0;try{n[e](i,i.exports,o),a=!1}finally{a&&delete r[e]}return i.exports}o.ab=t+"/";var i=o(114);e.exports=i}()},93982:function(e){var t="/";!function(){var n={229:function(e){var t,n,r,o=e.exports={};function i(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}function l(e){if(n===clearTimeout)return clearTimeout(e);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var c=[],u=!1,d=-1;function f(){u&&r&&(u=!1,r.length?c=r.concat(c):d=-1,c.length&&h())}function h(){if(!u){var e=s(f);u=!0;for(var t=c.length;t;){for(r=c,c=[];++d1)for(var n=1;n(0,s.jsx)("button",{className:(0,a.Z)("nextra-button nx-transition-all active:nx-opacity-50","nx-bg-primary-700/5 nx-border nx-border-black/5 nx-text-gray-600 hover:nx-text-gray-900 nx-rounded-md nx-p-1.5","dark:nx-bg-primary-300/10 dark:nx-border-white/10 dark:nx-text-gray-400 dark:hover:nx-text-gray-50",t),...n,children:e}),c=n(74128),u={default:"\uD83D\uDCA1",error:"\uD83D\uDEAB",info:(0,s.jsx)(c.AV,{className:"nx-mt-1"}),warning:"⚠️"},d={default:(0,a.Z)("nx-border-orange-100 nx-bg-orange-50 nx-text-orange-800 dark:nx-border-orange-400/30 dark:nx-bg-orange-400/20 dark:nx-text-orange-300"),error:(0,a.Z)("nx-border-red-200 nx-bg-red-100 nx-text-red-900 dark:nx-border-red-200/30 dark:nx-bg-red-900/30 dark:nx-text-red-200"),info:(0,a.Z)("nx-border-blue-200 nx-bg-blue-100 nx-text-blue-900 dark:nx-border-blue-200/30 dark:nx-bg-blue-900/30 dark:nx-text-blue-200"),warning:(0,a.Z)("nx-border-yellow-100 nx-bg-yellow-50 nx-text-yellow-900 dark:nx-border-yellow-200/30 dark:nx-bg-yellow-700/30 dark:nx-text-yellow-200")};function f({children:e,type:t="default",emoji:n=u[t]}){return(0,s.jsxs)("div",{className:(0,a.Z)("nextra-callout nx-overflow-x-auto nx-mt-6 nx-flex nx-rounded-lg nx-border nx-py-2 ltr:nx-pr-4 rtl:nx-pl-4","contrast-more:nx-border-current contrast-more:dark:nx-border-current",d[t]),children:[(0,s.jsx)("div",{className:"nx-select-none nx-text-xl ltr:nx-pl-3 ltr:nx-pr-2 rtl:nx-pr-3 rtl:nx-pl-2",style:{fontFamily:'"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"'},children:n}),(0,s.jsx)("div",{className:"nx-w-full nx-min-w-0 nx-leading-7",children:e})]})}var h=n(50959),p=({getValue:e,...t})=>{let[n,r]=(0,h.useState)(!1);(0,h.useEffect)(()=>{if(!n)return;let e=setTimeout(()=>{r(!1)},2e3);return()=>{clearTimeout(e)}},[n]);let o=(0,h.useCallback)(async()=>{r(!0),navigator?.clipboard||console.error("Access to clipboard rejected!");try{await navigator.clipboard.writeText(e())}catch{console.error("Failed to copy!")}},[e]),i=n?c.nQ:c.TI;return(0,s.jsx)(l,{onClick:o,title:"Copy code",tabIndex:0,...t,children:(0,s.jsx)(i,{className:"nextra-copy-icon nx-pointer-events-none nx-h-4 nx-w-4"})})},m=({children:e,className:t,...n})=>{let r="data-line-numbers"in n;return(0,s.jsx)("code",{className:(0,a.Z)("nx-border-black nx-border-opacity-[0.04] nx-bg-opacity-[0.03] nx-bg-black nx-break-words nx-rounded-md nx-border nx-py-0.5 nx-px-[.25em] nx-text-[.9em]","dark:nx-border-white/10 dark:nx-bg-white/10",r&&"[counter-reset:line]",t),dir:"ltr",...n,children:e})},g=({children:e,className:t,hasCopyCode:n,filename:r,...o})=>{let i=(0,h.useRef)(null),u=(0,h.useCallback)(()=>{let e=document.documentElement.dataset;"nextraWordWrap"in e?delete e.nextraWordWrap:e.nextraWordWrap=""},[]);return(0,s.jsxs)("div",{className:"nextra-code-block nx-relative nx-mt-6 first:nx-mt-0",children:[r&&(0,s.jsx)("div",{className:"nx-absolute nx-top-0 nx-z-[1] nx-w-full nx-truncate nx-rounded-t-xl nx-bg-primary-700/5 nx-py-2 nx-px-4 nx-text-xs nx-text-gray-700 dark:nx-bg-primary-300/10 dark:nx-text-gray-200",children:r}),(0,s.jsx)("pre",{className:(0,a.Z)("nx-bg-primary-700/5 nx-mb-4 nx-overflow-x-auto nx-rounded-xl nx-subpixel-antialiased dark:nx-bg-primary-300/10 nx-text-[.9em]","contrast-more:nx-border contrast-more:nx-border-primary-900/20 contrast-more:nx-contrast-150 contrast-more:dark:nx-border-primary-100/40",r?"nx-pt-12 nx-pb-4":"nx-py-4",t),ref:i,...o,children:e}),(0,s.jsxs)("div",{className:(0,a.Z)("nx-opacity-0 nx-transition [div:hover>&]:nx-opacity-100 focus-within:nx-opacity-100","nx-flex nx-gap-1 nx-absolute nx-m-[11px] nx-right-0",r?"nx-top-8":"nx-top-0"),children:[(0,s.jsx)(l,{onClick:u,className:"md:nx-hidden",title:"Toggle word wrap",children:(0,s.jsx)(c.NK,{className:"nx-pointer-events-none nx-h-4 nx-w-4"})}),n&&(0,s.jsx)(p,{getValue:()=>i.current?.querySelector("code")?.textContent||""})]})]})};function x({children:e,className:t,...n}){return(0,s.jsx)("div",{className:(0,a.Z)("nextra-steps nx-ml-4 nx-mb-12 nx-border-l nx-border-gray-200 nx-pl-6","dark:nx-border-neutral-800 [counter-reset:step]",t),...n,children:e})}var v=n(70222),y=n(49038),b=n(23011),w=n(8246),k=n(47496),_=n(66260),j=n(29850),E=n(58002),O=n(19691),S=n(85782),C=n(91941);function T({onFocus:e}){let[t,n]=(0,h.useState)(!0),r=(0,S.t)();return t?h.createElement(C._,{as:"button",type:"button",features:C.A.Focusable,onFocus:t=>{t.preventDefault();let o,i=50;function a(){if(i--<=0){o&&cancelAnimationFrame(o);return}if(e()){if(cancelAnimationFrame(o),!r.current)return;n(!1);return}o=requestAnimationFrame(a)}o=requestAnimationFrame(a)}}):null}var A=n(26510),R=n(41287),N=n(19195);let I=h.createContext(null);function M(){return{groups:new Map,get(e,t){var n;let r=this.groups.get(e);r||(r=new Map,this.groups.set(e,r));let o=null!=(n=r.get(t))?n:0;function i(){let e=r.get(t);e>1?r.set(t,e-1):r.delete(t)}return r.set(t,o+1),[Array.from(r.keys()).indexOf(t),i]}}}function L({children:e}){let t=h.useRef(M());return h.createElement(I.Provider,{value:t},e)}function Z(e){let t=h.useContext(I);if(!t)throw Error("You must wrap your component in a ");let n=P(),[r,o]=t.current.get(e,n);return h.useEffect(()=>o,[]),r}function P(){var e,t,n;let r=null!=(n=null==(t=null==(e=h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)?void 0:e.ReactCurrentOwner)?void 0:t.current)?n:null;if(!r)return Symbol();let o=[],i=r;for(;i;)o.push(i.index),i=i.return;return"$."+o.join(".")}var D=((r=D||{})[r.Forwards=0]="Forwards",r[r.Backwards=1]="Backwards",r),z=((o=z||{})[o.Less=-1]="Less",o[o.Equal=0]="Equal",o[o.Greater=1]="Greater",o),F=((i=F||{})[i.SetSelectedIndex=0]="SetSelectedIndex",i[i.RegisterTab=1]="RegisterTab",i[i.UnregisterTab=2]="UnregisterTab",i[i.RegisterPanel=3]="RegisterPanel",i[i.UnregisterPanel=4]="UnregisterPanel",i);let H={0(e,t){var n;let r=(0,k.z2)(e.tabs,e=>e.current),o=(0,k.z2)(e.panels,e=>e.current),i=r.filter(e=>{var t;return!(null!=(t=e.current)&&t.hasAttribute("disabled"))}),a={...e,tabs:r,panels:o};if(t.index<0||t.index>r.length-1){let n=(0,b.E)(Math.sign(t.index-e.selectedIndex),{[-1]:()=>1,0:()=>(0,b.E)(Math.sign(t.index),{[-1]:()=>0,0:()=>0,1:()=>1}),1:()=>0});if(0===i.length)return a;let o=(0,b.E)(n,{0:()=>r.indexOf(i[0]),1:()=>r.indexOf(i[i.length-1])});return{...a,selectedIndex:-1===o?e.selectedIndex:o}}let s=r.slice(0,t.index),l=[...r.slice(t.index),...s].find(e=>i.includes(e));if(!l)return a;let c=null!=(n=r.indexOf(l))?n:e.selectedIndex;return -1===c&&(c=e.selectedIndex),{...a,selectedIndex:c}},1(e,t){var n;if(e.tabs.includes(t.tab))return e;let r=e.tabs[e.selectedIndex],o=(0,k.z2)([...e.tabs,t.tab],e=>e.current),i=null!=(n=o.indexOf(r))?n:e.selectedIndex;return -1===i&&(i=e.selectedIndex),{...e,tabs:o,selectedIndex:i}},2:(e,t)=>({...e,tabs:e.tabs.filter(e=>e!==t.tab)}),3:(e,t)=>e.panels.includes(t.panel)?e:{...e,panels:(0,k.z2)([...e.panels,t.panel],e=>e.current)},4:(e,t)=>({...e,panels:e.panels.filter(e=>e!==t.panel)})},B=(0,h.createContext)(null);function W(e){let t=(0,h.useContext)(B);if(null===t){let t=Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,W),t}return t}B.displayName="TabsDataContext";let $=(0,h.createContext)(null);function G(e){let t=(0,h.useContext)($);if(null===t){let t=Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,G),t}return t}function U(e,t){return(0,b.E)(t.type,H,e,t)}$.displayName="TabsActionsContext";let V=h.Fragment;function q(e,t){let{defaultIndex:n=0,vertical:r=!1,manual:o=!1,onChange:i,selectedIndex:a=null,...s}=e,l=r?"vertical":"horizontal",c=o?"manual":"auto",u=null!==a,d=(0,j.T)(t),[f,p]=(0,h.useReducer)(U,{selectedIndex:null!=a?a:n,tabs:[],panels:[]}),m=(0,h.useMemo)(()=>({selectedIndex:f.selectedIndex}),[f.selectedIndex]),g=(0,O.E)(i||(()=>{})),x=(0,O.E)(f.tabs),y=(0,h.useMemo)(()=>({orientation:l,activation:c,...f}),[l,c,f]),b=(0,A.z)(e=>(p({type:1,tab:e}),()=>p({type:2,tab:e}))),w=(0,A.z)(e=>(p({type:3,panel:e}),()=>p({type:4,panel:e}))),E=(0,A.z)(e=>{S.current!==e&&g.current(e),u||p({type:0,index:e})}),S=(0,O.E)(u?e.selectedIndex:f.selectedIndex),C=(0,h.useMemo)(()=>({registerTab:b,registerPanel:w,change:E}),[]);(0,_.e)(()=>{p({type:0,index:null!=a?a:n})},[a]),(0,_.e)(()=>{if(void 0===S.current||f.tabs.length<=0)return;let e=(0,k.z2)(f.tabs,e=>e.current);e.some((e,t)=>f.tabs[t]!==e)&&E(e.indexOf(f.tabs[S.current]))});let R={ref:d};return h.createElement(L,null,h.createElement($.Provider,{value:C},h.createElement(B.Provider,{value:y},y.tabs.length<=0&&h.createElement(T,{onFocus:()=>{var e,t;for(let n of x.current)if((null==(e=n.current)?void 0:e.tabIndex)===0)return null==(t=n.current)||t.focus(),!0;return!1}}),(0,v.sY)({ourProps:R,theirProps:s,slot:m,defaultTag:V,name:"Tabs"}))))}let X="div";function K(e,t){let{orientation:n,selectedIndex:r}=W("Tab.List"),o=(0,j.T)(t);return(0,v.sY)({ourProps:{ref:o,role:"tablist","aria-orientation":n},theirProps:e,slot:{selectedIndex:r},defaultTag:X,name:"Tabs.List"})}let Q="button";function Y(e,t){var n,r;let o=(0,y.M)(),{id:i=`headlessui-tabs-tab-${o}`,...a}=e,{orientation:s,activation:l,selectedIndex:c,tabs:u,panels:d}=W("Tab"),f=G("Tab"),p=W("Tab"),m=(0,h.useRef)(null),g=(0,j.T)(m,t);(0,_.e)(()=>f.registerTab(m),[f,m]);let x=Z("tabs"),O=u.indexOf(m);-1===O&&(O=x);let S=O===c,C=(0,A.z)(e=>{var t;let n=e();if(n===k.fE.Success&&"auto"===l){let e=null==(t=(0,N.r)(m))?void 0:t.activeElement,n=p.tabs.findIndex(t=>t.current===e);-1!==n&&f.change(n)}return n}),T=(0,A.z)(e=>{let t=u.map(e=>e.current).filter(Boolean);if(e.key===w.R.Space||e.key===w.R.Enter){e.preventDefault(),e.stopPropagation(),f.change(O);return}switch(e.key){case w.R.Home:case w.R.PageUp:return e.preventDefault(),e.stopPropagation(),C(()=>(0,k.jA)(t,k.TO.First));case w.R.End:case w.R.PageDown:return e.preventDefault(),e.stopPropagation(),C(()=>(0,k.jA)(t,k.TO.Last))}if(C(()=>(0,b.E)(s,{vertical:()=>e.key===w.R.ArrowUp?(0,k.jA)(t,k.TO.Previous|k.TO.WrapAround):e.key===w.R.ArrowDown?(0,k.jA)(t,k.TO.Next|k.TO.WrapAround):k.fE.Error,horizontal:()=>e.key===w.R.ArrowLeft?(0,k.jA)(t,k.TO.Previous|k.TO.WrapAround):e.key===w.R.ArrowRight?(0,k.jA)(t,k.TO.Next|k.TO.WrapAround):k.fE.Error}))===k.fE.Success)return e.preventDefault()}),I=(0,h.useRef)(!1),M=(0,A.z)(()=>{var e;I.current||(I.current=!0,null==(e=m.current)||e.focus({preventScroll:!0}),f.change(O),(0,R.Y)(()=>{I.current=!1}))}),L=(0,A.z)(e=>{e.preventDefault()}),P=(0,h.useMemo)(()=>({selected:S}),[S]),D={ref:g,onKeyDown:T,onMouseDown:L,onClick:M,id:i,role:"tab",type:(0,E.f)(e,m),"aria-controls":null==(r=null==(n=d[O])?void 0:n.current)?void 0:r.id,"aria-selected":S,tabIndex:S?0:-1};return(0,v.sY)({ourProps:D,theirProps:a,slot:P,defaultTag:Q,name:"Tabs.Tab"})}let J="div";function ee(e,t){let{selectedIndex:n}=W("Tab.Panels"),r=(0,j.T)(t),o=(0,h.useMemo)(()=>({selectedIndex:n}),[n]);return(0,v.sY)({ourProps:{ref:r},theirProps:e,slot:o,defaultTag:J,name:"Tabs.Panels"})}let et="div",en=v.AN.RenderStrategy|v.AN.Static;function er(e,t){var n,r,o,i;let a=(0,y.M)(),{id:s=`headlessui-tabs-panel-${a}`,tabIndex:l=0,...c}=e,{selectedIndex:u,tabs:d,panels:f}=W("Tab.Panel"),p=G("Tab.Panel"),m=(0,h.useRef)(null),g=(0,j.T)(m,t);(0,_.e)(()=>p.registerPanel(m),[p,m]);let x=Z("panels"),b=f.indexOf(m);-1===b&&(b=x);let w=b===u,k=(0,h.useMemo)(()=>({selected:w}),[w]),E={ref:g,id:s,role:"tabpanel","aria-labelledby":null==(r=null==(n=d[b])?void 0:n.current)?void 0:r.id,tabIndex:w?l:-1};return w||null!=(o=c.unmount)&&!o||null!=(i=c.static)&&i?(0,v.sY)({ourProps:E,theirProps:c,slot:k,defaultTag:et,features:en,visible:w,name:"Tabs.Panel"}):h.createElement(C._,{as:"span",...E})}let eo=Object.assign((0,v.yV)(Y),{Group:(0,v.yV)(q),List:(0,v.yV)(K),Panels:(0,v.yV)(ee),Panel:(0,v.yV)(er)});function ei(e){return!!e&&"object"==typeof e&&"label"in e}var ea=Object.assign(function({items:e,selectedIndex:t,defaultIndex:n=0,onChange:r,children:o,storageKey:i}){let[l,c]=(0,h.useState)(n);(0,h.useEffect)(()=>{void 0!==t&&c(t)},[t]),(0,h.useEffect)(()=>{if(!i)return;function e(e){e.key===i&&c(Number(e.newValue))}let t=Number(localStorage.getItem(i));return c(Number.isNaN(t)?0:t),window.addEventListener("storage",e),()=>{window.removeEventListener("storage",e)}},[]);let u=(0,h.useCallback)(e=>{if(i){let t=String(e);localStorage.setItem(i,t),window.dispatchEvent(new StorageEvent("storage",{key:i,newValue:t}));return}c(e),r?.(e)},[]);return(0,s.jsxs)(eo.Group,{selectedIndex:l,defaultIndex:n,onChange:u,children:[(0,s.jsx)("div",{className:"nextra-scrollbar nx-overflow-x-auto nx-overflow-y-hidden nx-overscroll-x-contain",children:(0,s.jsx)(eo.List,{className:"nx-mt-4 nx-flex nx-w-max nx-min-w-full nx-border-b nx-border-gray-200 nx-pb-px dark:nx-border-neutral-800",children:e.map((e,t)=>{let n=ei(e)&&e.disabled;return(0,s.jsx)(eo,{disabled:n,className:({selected:e})=>(0,a.Z)("nx-mr-2 nx-rounded-t nx-p-2 nx-font-medium nx-leading-5 nx-transition-colors","-nx-mb-0.5 nx-select-none nx-border-b-2",e?"nx-border-primary-500 nx-text-primary-600":"nx-border-transparent nx-text-gray-600 hover:nx-border-gray-200 hover:nx-text-black dark:nx-text-gray-200 dark:hover:nx-border-neutral-800 dark:hover:nx-text-white",n&&"nx-pointer-events-none nx-text-gray-400 dark:nx-text-neutral-600"),children:ei(e)?e.label:e},t)})})}),(0,s.jsx)(eo.Panels,{children:o})]})},{displayName:"Tabs",Tab:function({children:e,...t}){return(0,s.jsx)(eo.Panel,{...t,className:"nx-rounded nx-pt-6",children:e})}}),es=({className:e="",...t})=>(0,s.jsx)("td",{className:(0,a.Z)("nx-m-0 nx-border nx-border-gray-300 nx-px-4 nx-py-2 dark:nx-border-gray-600",e),...t}),el=({className:e="",...t})=>(0,s.jsx)("table",{className:(0,a.Z)("nx-block nx-overflow-x-scroll",e),...t}),ec=({className:e="",...t})=>(0,s.jsx)("th",{className:(0,a.Z)("nx-m-0 nx-border nx-border-gray-300 nx-px-4 nx-py-2 nx-font-semibold dark:nx-border-gray-600",e),...t}),eu=({className:e="",...t})=>(0,s.jsx)("tr",{className:(0,a.Z)("nx-m-0 nx-border-t nx-border-gray-300 nx-p-0 dark:nx-border-gray-600","even:nx-bg-gray-100 even:dark:nx-bg-gray-600/20",e),...t}),ed=n(31992),ef=n.n(ed),eh={cards:(0,a.Z)("nextra-cards nx-mt-4 nx-gap-4 nx-grid","nx-not-prose"),card:(0,a.Z)("nextra-card nx-group nx-flex nx-flex-col nx-justify-start nx-overflow-hidden nx-rounded-lg nx-border nx-border-gray-200","nx-text-current nx-no-underline dark:nx-shadow-none","hover:nx-shadow-gray-100 dark:hover:nx-shadow-none nx-shadow-gray-100","active:nx-shadow-sm active:nx-shadow-gray-200","nx-transition-all nx-duration-200 hover:nx-border-gray-300"),title:(0,a.Z)("nx-flex nx-font-semibold nx-items-start nx-gap-2 nx-p-4 nx-text-gray-700 hover:nx-text-gray-900")},ep=(0,s.jsx)("span",{className:"nx-transition-transform nx-duration-75 group-hover:nx-translate-x-[2px]",children:"→"});Object.assign(function({children:e,num:t=3,className:n,style:r,...o}){return(0,s.jsx)("div",{className:(0,a.Z)(eh.cards,n),...o,style:{...r,"--rows":t},children:e})},{displayName:"Cards",Card:function({children:e,title:t,icon:n,image:r,arrow:o,href:i,...l}){let c=o?ep:null;return r?(0,s.jsxs)(ef(),{href:i,className:(0,a.Z)(eh.card,"nx-bg-gray-100 nx-shadow dark:nx-border-neutral-700 dark:nx-bg-neutral-800 dark:nx-text-gray-50 hover:nx-shadow-lg dark:hover:nx-border-neutral-500 dark:hover:nx-bg-neutral-700"),...l,children:[e,(0,s.jsxs)("span",{className:(0,a.Z)(eh.title,"dark:nx-text-gray-300 dark:hover:nx-text-gray-100"),children:[n,(0,s.jsxs)("span",{className:"nx-flex nx-gap-1",children:[t,c]})]})]}):(0,s.jsx)(ef(),{href:i,className:(0,a.Z)(eh.card,"nx-bg-transparent nx-shadow-sm dark:nx-border-neutral-800 hover:nx-bg-slate-50 hover:nx-shadow-md dark:hover:nx-border-neutral-700 dark:hover:nx-bg-neutral-900"),...l,children:(0,s.jsxs)("span",{className:(0,a.Z)(eh.title,"dark:nx-text-neutral-200 dark:hover:nx-text-neutral-50 nx-flex nx-items-center"),children:[n,t,c]})})}});var em=(0,h.createContext)(0);function eg(){return(0,h.useContext)(em)}function ex({children:e}){return(0,s.jsx)("div",{className:(0,a.Z)("nextra-filetree nx-mt-6 nx-select-none nx-text-sm nx-text-gray-800 dark:nx-text-gray-300","nx-not-prose"),children:(0,s.jsx)("div",{className:"nx-inline-block nx-rounded-lg nx-border nx-px-4 nx-py-2 dark:nx-border-neutral-800",children:e})})}function ev(){let e=eg();return(0,s.jsx)(s.Fragment,{children:Array.from({length:e},(e,t)=>(0,s.jsx)("span",{className:"nx-w-5"},t))})}var ey=(0,h.memo)(({label:e,name:t,open:n,children:r,defaultOpen:o=!1,onToggle:i})=>{let a=eg(),[l,c]=(0,h.useState)(o),u=(0,h.useCallback)(()=>{i?.(!l),c(!l)},[l,i]),d=void 0===n?l:n;return(0,s.jsxs)("li",{className:"nx-flex nx-list-none nx-flex-col",children:[(0,s.jsxs)("button",{onClick:u,title:t,className:"nx-inline-flex nx-cursor-pointer nx-items-center nx-py-1 hover:nx-opacity-60",children:[(0,s.jsx)(ev,{}),(0,s.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:d?"M5 19a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h4l2 2h4a2 2 0 0 1 2 2v1M5 19h14a2 2 0 0 0 2-2v-5a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2Z":"M3 7v10a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-6l-2-2H5a2 2 0 0 0-2 2Z"})}),(0,s.jsx)("span",{className:"nx-ml-1",children:e??t})]}),d&&(0,s.jsx)("ul",{children:(0,s.jsx)(em.Provider,{value:a+1,children:r})})]})});ey.displayName="Folder";var eb=(0,h.memo)(({label:e,name:t,active:n})=>(0,s.jsx)("li",{className:(0,a.Z)("nx-flex nx-list-none",n&&"nx-text-primary-600 contrast-more:nx-underline"),children:(0,s.jsxs)("span",{className:"nx-inline-flex nx-cursor-default nx-items-center nx-py-1",children:[(0,s.jsx)(ev,{}),(0,s.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5.586a1 1 0 0 1 .707.293l5.414 5.414a1 1 0 0 1 .293.707V19a2 2 0 0 1-2 2Z"})}),(0,s.jsx)("span",{className:"nx-ml-1",children:e??t})]})}));eb.displayName="File",Object.assign(ex,{Folder:ey,File:eb})},74128:function(e,t,n){"use strict";n.d(t,{LZ:function(){return o},nQ:function(){return i},TI:function(){return a},D7:function(){return s},Qq:function(){return l},fy:function(){return c},n9:function(){return u},AV:function(){return d},Oq:function(){return f},kL:function(){return h},L4:function(){return p},NW:function(){return m},NK:function(){return g},b0:function(){return x}});var r=n(11527);function o({pathClassName:e,...t}){return(0,r.jsx)("svg",{fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",...t,children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 5l7 7-7 7",className:e})})}function i(e){return(0,r.jsx)("svg",{viewBox:"0 0 20 20",width:"1em",height:"1em",fill:"currentColor",...e,children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})})}function a(e){return(0,r.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",...e,children:[(0,r.jsx)("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M5 15H4C2.89543 15 2 14.1046 2 13V4C2 2.89543 2.89543 2 4 2H13C14.1046 2 15 2.89543 15 4V5",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function s(e){return(0,r.jsxs)("svg",{width:"24",height:"24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 5 30.67 23.25",...e,children:[(0,r.jsx)("title",{children:"Discord"}),(0,r.jsx)("path",{d:"M26.0015 6.9529C24.0021 6.03845 21.8787 5.37198 19.6623 5C19.3833 5.48048 19.0733 6.13144 18.8563 6.64292C16.4989 6.30193 14.1585 6.30193 11.8336 6.64292C11.6166 6.13144 11.2911 5.48048 11.0276 5C8.79575 5.37198 6.67235 6.03845 4.6869 6.9529C0.672601 12.8736 -0.41235 18.6548 0.130124 24.3585C2.79599 26.2959 5.36889 27.4739 7.89682 28.2489C8.51679 27.4119 9.07477 26.5129 9.55525 25.5675C8.64079 25.2265 7.77283 24.808 6.93587 24.312C7.15286 24.1571 7.36986 23.9866 7.57135 23.8161C12.6241 26.1255 18.0969 26.1255 23.0876 23.8161C23.3046 23.9866 23.5061 24.1571 23.7231 24.312C22.8861 24.808 22.0182 25.2265 21.1037 25.5675C21.5842 26.5129 22.1422 27.4119 22.7621 28.2489C25.2885 27.4739 27.8769 26.2959 30.5288 24.3585C31.1952 17.7559 29.4733 12.0212 26.0015 6.9529ZM10.2527 20.8402C8.73376 20.8402 7.49382 19.4608 7.49382 17.7714C7.49382 16.082 8.70276 14.7025 10.2527 14.7025C11.7871 14.7025 13.0425 16.082 13.0115 17.7714C13.0115 19.4608 11.7871 20.8402 10.2527 20.8402ZM20.4373 20.8402C18.9183 20.8402 17.6768 19.4608 17.6768 17.7714C17.6768 16.082 18.8873 14.7025 20.4373 14.7025C21.9717 14.7025 23.2271 16.082 23.1961 17.7714C23.1961 19.4608 21.9872 20.8402 20.4373 20.8402Z"})]})}function l({isOpen:e,...t}){return(0,r.jsxs)("svg",{height:"12",width:"12",viewBox:"0 0 16 16",fill:"currentColor",...t,children:[(0,r.jsx)("path",{fillRule:"evenodd",d:"M4.177 7.823l2.396-2.396A.25.25 0 017 5.604v4.792a.25.25 0 01-.427.177L4.177 8.177a.25.25 0 010-.354z",className:e?"":"nx-origin-[35%] nx-rotate-180"}),(0,r.jsx)("path",{fillRule:"evenodd",d:"M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v12.5A1.75 1.75 0 0114.25 16H1.75A1.75 1.75 0 010 14.25V1.75zm1.75-.25a.25.25 0 00-.25.25v12.5c0 .138.112.25.25.25H9.5v-13H1.75zm12.5 13H11v-13h3.25a.25.25 0 01.25.25v12.5a.25.25 0 01-.25.25z"})]})}function c(e){return(0,r.jsxs)("svg",{width:"24",height:"24",fill:"currentColor",viewBox:"3 3 18 18",...e,children:[(0,r.jsx)("title",{children:"GitHub"}),(0,r.jsx)("path",{d:"M12 3C7.0275 3 3 7.12937 3 12.2276C3 16.3109 5.57625 19.7597 9.15374 20.9824C9.60374 21.0631 9.77249 20.7863 9.77249 20.5441C9.77249 20.3249 9.76125 19.5982 9.76125 18.8254C7.5 19.2522 6.915 18.2602 6.735 17.7412C6.63375 17.4759 6.19499 16.6569 5.8125 16.4378C5.4975 16.2647 5.0475 15.838 5.80124 15.8264C6.51 15.8149 7.01625 16.4954 7.18499 16.7723C7.99499 18.1679 9.28875 17.7758 9.80625 17.5335C9.885 16.9337 10.1212 16.53 10.38 16.2993C8.3775 16.0687 6.285 15.2728 6.285 11.7432C6.285 10.7397 6.63375 9.9092 7.20749 9.26326C7.1175 9.03257 6.8025 8.08674 7.2975 6.81794C7.2975 6.81794 8.05125 6.57571 9.77249 7.76377C10.4925 7.55615 11.2575 7.45234 12.0225 7.45234C12.7875 7.45234 13.5525 7.55615 14.2725 7.76377C15.9937 6.56418 16.7475 6.81794 16.7475 6.81794C17.2424 8.08674 16.9275 9.03257 16.8375 9.26326C17.4113 9.9092 17.76 10.7281 17.76 11.7432C17.76 15.2843 15.6563 16.0687 13.6537 16.2993C13.98 16.5877 14.2613 17.1414 14.2613 18.0065C14.2613 19.2407 14.25 20.2326 14.25 20.5441C14.25 20.7863 14.4188 21.0746 14.8688 20.9824C16.6554 20.364 18.2079 19.1866 19.3078 17.6162C20.4077 16.0457 20.9995 14.1611 21 12.2276C21 7.12937 16.9725 3 12 3Z"})]})}function u(e){return(0,r.jsx)("svg",{viewBox:"2 2 16 16",width:"12",height:"12",fill:"currentColor",...e,children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M4.083 9h1.946c.089-1.546.383-2.97.837-4.118A6.004 6.004 0 004.083 9zM10 2a8 8 0 100 16 8 8 0 000-16zm0 2c-.076 0-.232.032-.465.262-.238.234-.497.623-.737 1.182-.389.907-.673 2.142-.766 3.556h3.936c-.093-1.414-.377-2.649-.766-3.556-.24-.56-.5-.948-.737-1.182C10.232 4.032 10.076 4 10 4zm3.971 5c-.089-1.546-.383-2.97-.837-4.118A6.004 6.004 0 0115.917 9h-1.946zm-2.003 2H8.032c.093 1.414.377 2.649.766 3.556.24.56.5.948.737 1.182.233.23.389.262.465.262.076 0 .232-.032.465-.262.238-.234.498-.623.737-1.182.389-.907.673-2.142.766-3.556zm1.166 4.118c.454-1.147.748-2.572.837-4.118h1.946a6.004 6.004 0 01-2.783 4.118zm-6.268 0C6.412 13.97 6.118 12.546 6.03 11H4.083a6.004 6.004 0 002.783 4.118z",clipRule:"evenodd"})})}function d(e){return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",width:"20",height:"20",...e,children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z"})})}function f(e){return(0,r.jsxs)("svg",{fill:"none",width:"24",height:"24",viewBox:"0 0 24 24",stroke:"currentColor",...e,children:[(0,r.jsx)("g",{children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 6h16"})}),(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 12h16"}),(0,r.jsx)("g",{children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 18h16"})})]})}function h(e){return(0,r.jsx)("svg",{fill:"none",viewBox:"2 2 20 20",width:"12",height:"12",stroke:"currentColor",...e,children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",fill:"currentColor",d:"M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z"})})}function p(e){return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",width:"24",height:"24",...e,children:[(0,r.jsx)("circle",{className:"nx-opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,r.jsx)("path",{className:"nx-opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})}function m(e){return(0,r.jsx)("svg",{fill:"none",viewBox:"3 3 18 18",width:"12",height:"12",stroke:"currentColor",...e,children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",fill:"currentColor",d:"M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z"})})}function g(e){return(0,r.jsx)("svg",{viewBox:"0 0 24 24",width:"24",height:"24",...e,children:(0,r.jsx)("path",{fill:"currentColor",d:"M4 19h6v-2H4v2zM20 5H4v2h16V5zm-3 6H4v2h13.25c1.1 0 2 .9 2 2s-.9 2-2 2H15v-2l-3 3l3 3v-2h2c2.21 0 4-1.79 4-4s-1.79-4-4-4z"})})}function x(e){return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"currentColor",...e,children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})})}},87088:function(e,t,n){"use strict";n.d(t,{Z:function(){return s},a:function(){return d}});var r=n(50959);let o=r.createContext({});function i(e){let t=r.useContext(o);return r.useMemo(()=>"function"==typeof e?e(t):{...t,...e},[t,e])}let a={};function s({components:e,children:t,disableParentContext:n}){let s;return s=n?"function"==typeof e?e({}):e||a:i(e),r.createElement(o.Provider,{value:s},t)}var l=n(1538),c=n.n(l),u={img:e=>(0,r.createElement)("object"==typeof e.src?c():"img",e)},d=e=>i({...u,...e})},85182:function(e,t,n){"use strict";var r=n(6097);function o(e){var t={protocols:[],protocol:null,port:null,resource:"",host:"",user:"",password:"",pathname:"",hash:"",search:"",href:e,query:{},parse_failed:!1};try{var n=new URL(e);t.protocols=r(n),t.protocol=t.protocols[0],t.port=n.port,t.resource=n.hostname,t.host=n.host,t.user=n.username||"",t.password=n.password||"",t.pathname=n.pathname,t.hash=n.hash.slice(1),t.search=n.search.slice(1),t.href=n.href,t.query=Object.fromEntries(n.searchParams)}catch(n){t.protocols=["file"],t.protocol=t.protocols[0],t.port="",t.resource="",t.user="",t.pathname="",t.hash="",t.search="",t.href=e,t.query={},t.parse_failed=!0}return t}e.exports=o},78593:function(e,t,n){"use strict";var r=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(n(85182));let o="text/plain",i="us-ascii",a=(e,t)=>t.some(t=>t instanceof RegExp?t.test(e):t===e),s=(e,{stripHash:t})=>{let n=/^data:(?[^,]*?),(?[^#]*?)(?:#(?.*))?$/.exec(e);if(!n)throw Error(`Invalid URL: ${e}`);let{type:r,data:a,hash:s}=n.groups,l=r.split(";");s=t?"":s;let c=!1;"base64"===l[l.length-1]&&(l.pop(),c=!0);let u=(l.shift()||"").toLowerCase(),d=[...l.map(e=>{let[t,n=""]=e.split("=").map(e=>e.trim());return"charset"===t&&(n=n.toLowerCase())===i?"":`${t}${n?`=${n}`:""}`}).filter(Boolean)];return c&&d.push("base64"),(d.length>0||u&&u!==o)&&d.unshift(u),`data:${d.join(";")},${c?a.trim():a}${s?`#${s}`:""}`};function l(e,t){if(t={defaultProtocol:"http:",normalizeProtocol:!0,forceHttp:!1,forceHttps:!1,stripAuthentication:!0,stripHash:!1,stripTextFragment:!0,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeSingleSlash:!0,removeDirectoryIndex:!1,sortQueryParameters:!0,...t},e=e.trim(),/^data:/i.test(e))return s(e,t);if(/^view-source:/i.test(e))throw Error("`view-source:` is not supported as it is a non-standard protocol");let n=e.startsWith("//");!n&&/^\.*\//.test(e)||(e=e.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,t.defaultProtocol));let r=new URL(e);if(t.forceHttp&&t.forceHttps)throw Error("The `forceHttp` and `forceHttps` options cannot be used together");if(t.forceHttp&&"https:"===r.protocol&&(r.protocol="http:"),t.forceHttps&&"http:"===r.protocol&&(r.protocol="https:"),t.stripAuthentication&&(r.username="",r.password=""),t.stripHash?r.hash="":t.stripTextFragment&&(r.hash=r.hash.replace(/#?:~:text.*?$/i,"")),r.pathname){let e=/\b[a-z][a-z\d+\-.]{1,50}:\/\//g,t=0,n="";for(;;){let o=e.exec(r.pathname);if(!o)break;let i=o[0],a=o.index;n+=r.pathname.slice(t,a).replace(/\/{2,}/g,"/")+i,t=a+i.length}n+=r.pathname.slice(t,r.pathname.length).replace(/\/{2,}/g,"/"),r.pathname=n}if(r.pathname)try{r.pathname=decodeURI(r.pathname)}catch{}if(!0===t.removeDirectoryIndex&&(t.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(t.removeDirectoryIndex)&&t.removeDirectoryIndex.length>0){let e=r.pathname.split("/");a(e[e.length-1],t.removeDirectoryIndex)&&(e=e.slice(0,-1),r.pathname=e.slice(1).join("/")+"/")}if(r.hostname&&(r.hostname=r.hostname.replace(/\.$/,""),t.stripWWW&&/^www\.(?!www\.)[a-z\-\d]{1,63}\.[a-z.\-\d]{2,63}$/.test(r.hostname)&&(r.hostname=r.hostname.replace(/^www\./,""))),Array.isArray(t.removeQueryParameters))for(let e of[...r.searchParams.keys()])a(e,t.removeQueryParameters)&&r.searchParams.delete(e);if(!0===t.removeQueryParameters&&(r.search=""),t.sortQueryParameters){r.searchParams.sort();try{r.search=decodeURIComponent(r.search)}catch{}}t.removeTrailingSlash&&(r.pathname=r.pathname.replace(/\/$/,""));let o=e;return e=r.toString(),t.removeSingleSlash||"/"!==r.pathname||o.endsWith("/")||""!==r.hash||(e=e.replace(/\/$/,"")),(t.removeTrailingSlash||"/"===r.pathname)&&""===r.hash&&t.removeSingleSlash&&(e=e.replace(/\/$/,"")),n&&!t.normalizeProtocol&&(e=e.replace(/^http:\/\//,"//")),t.stripProtocol&&(e=e.replace(/^(?:https?:)?\/\//,"")),e}let c=(e,t=!1)=>{let n=/^(?:([a-z_][a-z0-9_-]{0,31})@|https?:\/\/)([\w\.\-@]+)[\/:]([\~,\.\w,\-,\_,\/]+?(?:\.git|\/)?)$/,o=t=>{let n=Error(t);throw n.subject_url=e,n};"string"==typeof e&&e.trim()||o("Invalid url."),e.length>c.MAX_INPUT_LENGTH&&o("Input exceeds maximum length. If needed, change the value of parseUrl.MAX_INPUT_LENGTH."),t&&("object"!=typeof t&&(t={stripHash:!1}),e=l(e,t));let i=r.default(e);if(i.parse_failed){let e=i.href.match(n);e?(i.protocols=["ssh"],i.protocol="ssh",i.resource=e[2],i.host=e[2],i.user=e[1],i.pathname=`/${e[3]}`,i.parse_failed=!1):o("URL parsing failed.")}return i};c.MAX_INPUT_LENGTH=2048,e.exports=c},74049:function(e,t,n){"use strict";var r=n(36257);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=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 s.name="Invariant Violation",s}}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:i,resetWarningCache:o};return n.PropTypes=n,n}},40507:function(e,t,n){e.exports=n(74049)()},36257:function(e){"use strict";var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";e.exports=t},6097:function(e){"use strict";e.exports=function(e,t){!0===t&&(t=0);var n="";if("string"==typeof e)try{n=new URL(e).protocol}catch(e){}else e&&e.constructor===URL&&(n=e.protocol);var r=n.split(/\:|\+/).filter(Boolean);return"number"==typeof t?r[t]:r}},10091:function(e,t,n){"use strict";n.d(t,{ZP:function(){return ef}});var r=n(25201),o=n(12309),i=n(76729),a=n(26407),s=n(82187),l=n.n(s),c=n(61026),u=n(57539),d=n(50959),f=d.createContext({}),h=n(9130),p=n(82349),m=n(53264),g=n(18295),x=function(e){(0,m.Z)(n,e);var t=(0,g.Z)(n);function n(){return(0,h.Z)(this,n),t.apply(this,arguments)}return(0,p.Z)(n,[{key:"render",value:function(){return this.props.children}}]),n}(d.Component),v=n(54561),y="none",b="appear",w="enter",k="leave",_="none",j="prepare",E="start",O="active",S="end",C="prepared",T=n(18021);function A(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}var R=function(e,t){var n={animationend:A("Animation","AnimationEnd"),transitionend:A("Transition","TransitionEnd")};return!e||("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}((0,T.Z)(),"undefined"!=typeof window?window:{}),N={};(0,T.Z)()&&(N=document.createElement("div").style);var I={};function M(e){if(I[e])return I[e];var t=R[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o1&&void 0!==arguments[1]?arguments[1]:2;t();var i=(0,W.Z)(function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)});e.current=i}return d.useEffect(function(){return function(){t()}},[]),[n,t]},G=[j,E,O,S],U=[j,C],V=!1,q=!0;function X(e){return e===O||e===S}var K=function(e,t,n){var r=(0,v.Z)(_),o=(0,i.Z)(r,2),a=o[0],s=o[1],l=$(),c=(0,i.Z)(l,2),u=c[0],f=c[1];function h(){s(j,!0)}var p=t?U:G;return B(function(){if(a!==_&&a!==S){var e=p.indexOf(a),t=p[e+1],r=n(a);r===V?s(t,!0):t&&u(function(e){function n(){e.isCanceled()||s(t,!0)}!0===r?n():Promise.resolve(r).then(n)})}},[e,a]),d.useEffect(function(){return function(){f()}},[]),[h,a]};function Q(e,t,n,a){var s=a.motionEnter,l=void 0===s||s,c=a.motionAppear,u=void 0===c||c,f=a.motionLeave,h=void 0===f||f,p=a.motionDeadline,m=a.motionLeaveImmediately,g=a.onAppearPrepare,x=a.onEnterPrepare,_=a.onLeavePrepare,S=a.onAppearStart,T=a.onEnterStart,A=a.onLeaveStart,R=a.onAppearActive,N=a.onEnterActive,I=a.onLeaveActive,M=a.onAppearEnd,L=a.onEnterEnd,Z=a.onLeaveEnd,P=a.onVisibleChanged,D=(0,v.Z)(),z=(0,i.Z)(D,2),F=z[0],W=z[1],$=(0,v.Z)(y),G=(0,i.Z)($,2),U=G[0],Q=G[1],Y=(0,v.Z)(null),J=(0,i.Z)(Y,2),ee=J[0],et=J[1],en=(0,d.useRef)(!1),er=(0,d.useRef)(null);function eo(){return n()}var ei=(0,d.useRef)(!1);function ea(){Q(y,!0),et(null,!0)}function es(e){var t,n=eo();if(!e||e.deadline||e.target===n){var r=ei.current;U===b&&r?t=null==M?void 0:M(n,e):U===w&&r?t=null==L?void 0:L(n,e):U===k&&r&&(t=null==Z?void 0:Z(n,e)),U!==y&&r&&!1!==t&&ea()}}var el=H(es),ec=(0,i.Z)(el,1)[0],eu=function(e){var t,n,o;switch(e){case b:return t={},(0,r.Z)(t,j,g),(0,r.Z)(t,E,S),(0,r.Z)(t,O,R),t;case w:return n={},(0,r.Z)(n,j,x),(0,r.Z)(n,E,T),(0,r.Z)(n,O,N),n;case k:return o={},(0,r.Z)(o,j,_),(0,r.Z)(o,E,A),(0,r.Z)(o,O,I),o;default:return{}}},ed=d.useMemo(function(){return eu(U)},[U]),ef=K(U,!e,function(e){if(e===j){var t,n=ed[j];return n?n(eo()):V}return em in ed&&et((null===(t=ed[em])||void 0===t?void 0:t.call(ed,eo(),null))||null),em===O&&(ec(eo()),p>0&&(clearTimeout(er.current),er.current=setTimeout(function(){es({deadline:!0})},p))),em===C&&ea(),q}),eh=(0,i.Z)(ef,2),ep=eh[0],em=eh[1],eg=X(em);ei.current=eg,B(function(){W(t);var n,r=en.current;en.current=!0,!r&&t&&u&&(n=b),r&&t&&l&&(n=w),(r&&!t&&h||!r&&m&&!t&&h)&&(n=k);var o=eu(n);n&&(e||o[j])?(Q(n),ep()):Q(y)},[t]),(0,d.useEffect)(function(){(U!==b||u)&&(U!==w||l)&&(U!==k||h)||Q(y)},[u,l,h]),(0,d.useEffect)(function(){return function(){en.current=!1,clearTimeout(er.current)}},[]);var ex=d.useRef(!1);(0,d.useEffect)(function(){F&&(ex.current=!0),void 0!==F&&U===y&&((ex.current||F)&&(null==P||P(F)),ex.current=!0)},[F,U]);var ev=ee;return ed[j]&&em===E&&(ev=(0,o.Z)({transition:"none"},ev)),[U,em,ev,null!=F?F:t]}var Y=function(e){var t=e;function n(e,n){return!!(e.motionName&&t&&!1!==n)}"object"===(0,a.Z)(e)&&(t=e.transitionSupport);var s=d.forwardRef(function(e,t){var a=e.visible,s=void 0===a||a,h=e.removeOnLeave,p=void 0===h||h,m=e.forceRender,g=e.children,v=e.motionName,b=e.leavedClassName,w=e.eventProps,k=n(e,d.useContext(f).motion),_=(0,d.useRef)(),O=(0,d.useRef)(),S=Q(k,s,function(){try{return _.current instanceof HTMLElement?_.current:(0,c.Z)(O.current)}catch(e){return null}},e),C=(0,i.Z)(S,4),T=C[0],A=C[1],R=C[2],N=C[3],I=d.useRef(N);N&&(I.current=!0);var M=d.useCallback(function(e){_.current=e,(0,u.mH)(t,e)},[t]),L=(0,o.Z)((0,o.Z)({},w),{},{visible:s});if(g){if(T===y)Z=N?g((0,o.Z)({},L),M):!p&&I.current&&b?g((0,o.Z)((0,o.Z)({},L),{},{className:b}),M):!m&&(p||b)?null:g((0,o.Z)((0,o.Z)({},L),{},{style:{display:"none"}}),M);else{A===j?D="prepare":X(A)?D="active":A===E&&(D="start");var Z,P,D,z=F(v,"".concat(T,"-").concat(D));Z=g((0,o.Z)((0,o.Z)({},L),{},{className:l()(F(v,T),(P={},(0,r.Z)(P,z,z&&D),(0,r.Z)(P,v,"string"==typeof v),P)),style:R}),M)}}else Z=null;return d.isValidElement(Z)&&(0,u.Yr)(Z)&&!Z.ref&&(Z=d.cloneElement(Z,{ref:M})),d.createElement(x,{ref:O},Z)});return s.displayName="CSSMotion",s}(P),J=n(97605),ee=n(10582),et=n(23248),en="add",er="keep",eo="remove",ei="removed";function ea(e){var t;return t=e&&"object"===(0,a.Z)(e)&&"key"in e?e:{key:e},(0,o.Z)((0,o.Z)({},t),{},{key:String(t.key)})}function es(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map(ea)}function el(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,i=t.length,a=es(e),s=es(t);a.forEach(function(e){for(var t=!1,a=r;a1}).forEach(function(e){(n=n.filter(function(t){var n=t.key,r=t.status;return n!==e||r!==eo})).forEach(function(t){t.key===e&&(t.status=er)})}),n}var ec=["component","children","onVisibleChanged","onAllRemoved"],eu=["status"],ed=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Y,n=function(e){(0,m.Z)(i,e);var n=(0,g.Z)(i);function i(){var e;(0,h.Z)(this,i);for(var t=arguments.length,a=Array(t),s=0;s1&&void 0!==arguments[1]?arguments[1]:{},n=[];return r.Children.forEach(e,function(e){(null!=e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(i(e)):(0,o.isFragment)(e)&&e.props?n=n.concat(i(e.props.children,t)):n.push(e))}),n}},18021:function(e,t,n){"use strict";function r(){return!!("undefined"!=typeof window&&window.document&&window.document.createElement)}n.d(t,{Z:function(){return r}})},89130:function(e,t,n){"use strict";n.d(t,{jL:function(){return g},hq:function(){return v}});var r=n(12309),o=n(18021);function i(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var a="data-rc-order",s="data-rc-priority",l="rc-util-key",c=new Map;function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):l}function d(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function f(e){return"queue"===e?"prependQueue":e?"prepend":"append"}function h(e){return Array.from((c.get(e)||e).children).filter(function(e){return"STYLE"===e.tagName})}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(0,o.Z)())return null;var n=t.csp,r=t.prepend,i=t.priority,l=void 0===i?0:i,c=f(r),u="prependQueue"===c,p=document.createElement("style");p.setAttribute(a,c),u&&l&&p.setAttribute(s,"".concat(l)),null!=n&&n.nonce&&(p.nonce=null==n?void 0:n.nonce),p.innerHTML=e;var m=d(t),g=m.firstChild;if(r){if(u){var x=(t.styles||h(m)).filter(function(e){return!!["prepend","prependQueue"].includes(e.getAttribute(a))&&l>=Number(e.getAttribute(s)||0)});if(x.length)return m.insertBefore(p,x[x.length-1].nextSibling),p}m.insertBefore(p,g)}else m.appendChild(p);return p}function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=d(t);return(t.styles||h(n)).find(function(n){return n.getAttribute(u(t))===e})}function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=m(e,t);n&&d(t).removeChild(n)}function x(e,t){var n=c.get(e);if(!n||!i(document,n)){var r=p("",t),o=r.parentNode;c.set(e,o),e.removeChild(r)}}function v(e,t){var n,o,i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=d(a),l=h(s),c=(0,r.Z)((0,r.Z)({},a),{},{styles:l});x(s,c);var f=m(t,c);if(f)return null!==(n=c.csp)&&void 0!==n&&n.nonce&&f.nonce!==(null===(o=c.csp)||void 0===o?void 0:o.nonce)&&(f.nonce=null===(i=c.csp)||void 0===i?void 0:i.nonce),f.innerHTML!==e&&(f.innerHTML=e),f;var g=p(e,c);return g.setAttribute(u(c),t),g}},61026:function(e,t,n){"use strict";n.d(t,{S:function(){return i},Z:function(){return a}});var r=n(50959),o=n(10422);function i(e){return e instanceof HTMLElement||e instanceof SVGElement}function a(e){return i(e)?e:e instanceof r.Component?o.findDOMNode(e):null}},84989:function(e,t){"use strict";t.Z=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1}},86066:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(50959);function o(e){var t=r.useRef();return t.current=e,r.useCallback(function(){for(var e,n=arguments.length,r=Array(n),o=0;o1&&void 0!==arguments[1]?arguments[1]:1,r=o+=1;function s(t){if(0===t)a(r),e();else{var o=n(function(){s(t-1)});i.set(r,o)}}return s(t),r};s.cancel=function(e){var t=i.get(e);return a(e),r(t)},t.Z=s},57539:function(e,t,n){"use strict";n.d(t,{Yr:function(){return c},mH:function(){return a},sQ:function(){return s},x1:function(){return l}});var r=n(26407);n(50959);var o=n(61357),i=n(9075);function a(e,t){"function"==typeof e?e(t):"object"===(0,r.Z)(e)&&e&&"current"in e&&(e.current=t)}function s(){for(var e=arguments.length,t=Array(e),n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n=0||(o[n]=e[n]);return o}function o(e,t){if(null==e)return{};var n,o,i=r(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}n.d(t,{Z:function(){return o}})},47442:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(26407),o=n(23248);function i(e,t){if(t&&("object"===(0,r.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return(0,o.Z)(e)}},16635: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})(e,t)}n.d(t,{Z:function(){return r}})},76729: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,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}n.d(t,{Z:function(){return s}});var i=n(79250);function a(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(e,t){return r(e)||o(e,t)||(0,i.Z)(e,t)||a()}},1874:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(4989);function o(e){if(Array.isArray(e))return(0,r.Z)(e)}function i(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}var a=n(79250);function s(){throw 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)||i(e)||(0,a.Z)(e)||s()}},76755:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(26407);function o(e,t){if("object"!==(0,r.Z)(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==(0,r.Z)(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function i(e){var t=o(e,"string");return"symbol"===(0,r.Z)(t)?t:String(t)}},26407: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})(e)}n.d(t,{Z:function(){return r}})},79250:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(4989);function o(e,t){if(e){if("string"==typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return(0,r.Z)(e,t)}}},8246:function(e,t,n){"use strict";n.d(t,{R:function(){return o}});var r,o=((r=o||{}).Space=" ",r.Enter="Enter",r.Escape="Escape",r.Backspace="Backspace",r.Delete="Delete",r.ArrowLeft="ArrowLeft",r.ArrowUp="ArrowUp",r.ArrowRight="ArrowRight",r.ArrowDown="ArrowDown",r.Home="Home",r.End="End",r.PageUp="PageUp",r.PageDown="PageDown",r.Tab="Tab",r)},26510:function(e,t,n){"use strict";n.d(t,{z:function(){return i}});var r=n(50959),o=n(19691);let i=function(e){let t=(0,o.E)(e);return r.useCallback((...e)=>t.current(...e),[t])}},49038:function(e,t,n){"use strict";n.d(t,{M:function(){return l}});var r,o=n(50959),i=n(66260),a=n(70674),s=n(86030);let l=null!=(r=o.useId)?r:function(){let e=(0,a.H)(),[t,n]=o.useState(e?()=>s.O.nextId():null);return(0,i.e)(()=>{null===t&&n(s.O.nextId())},[t]),null!=t?""+t:void 0}},85782:function(e,t,n){"use strict";n.d(t,{t:function(){return i}});var r=n(50959),o=n(66260);function i(){let e=(0,r.useRef)(!1);return(0,o.e)(()=>(e.current=!0,()=>{e.current=!1}),[]),e}},66260:function(e,t,n){"use strict";n.d(t,{e:function(){return i}});var r=n(50959),o=n(86030);let i=(e,t)=>{o.O.isServer?(0,r.useEffect)(e,t):(0,r.useLayoutEffect)(e,t)}},19691:function(e,t,n){"use strict";n.d(t,{E:function(){return i}});var r=n(50959),o=n(66260);function i(e){let t=(0,r.useRef)(e);return(0,o.e)(()=>{t.current=e},[e]),t}},58002:function(e,t,n){"use strict";n.d(t,{f:function(){return a}});var r=n(50959),o=n(66260);function i(e){var t;if(e.type)return e.type;let n=null!=(t=e.as)?t:"button";if("string"==typeof n&&"button"===n.toLowerCase())return"button"}function a(e,t){let[n,a]=(0,r.useState)(()=>i(e));return(0,o.e)(()=>{a(i(e))},[e.type,e.as]),(0,o.e)(()=>{n||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&a("button")},[n,t]),n}},70674:function(e,t,n){"use strict";n.d(t,{H:function(){return s}});var r,o=n(50959),i=n(86030);function a(){let e="undefined"==typeof document;return(0,(r||(r=n.t(o,2))).useSyncExternalStore)(()=>()=>{},()=>!1,()=>!e)}function s(){let e=a(),[t,n]=o.useState(i.O.isHandoffComplete);return t&&!1===i.O.isHandoffComplete&&n(!1),o.useEffect(()=>{!0!==t&&n(!0)},[t]),o.useEffect(()=>i.O.handoff(),[]),!e&&t}},29850:function(e,t,n){"use strict";n.d(t,{T:function(){return a}});var r=n(50959),o=n(26510);let i=Symbol();function a(...e){let t=(0,r.useRef)(e);(0,r.useEffect)(()=>{t.current=e},[e]);let n=(0,o.z)(e=>{for(let n of t.current)null!=n&&("function"==typeof n?n(e):n.current=e)});return e.every(e=>null==e||(null==e?void 0:e[i]))?void 0:n}},91941:function(e,t,n){"use strict";n.d(t,{A:function(){return a},_:function(){return l}});var r,o=n(70222);let i="div";var a=((r=a||{})[r.None=1]="None",r[r.Focusable=2]="Focusable",r[r.Hidden=4]="Hidden",r);function s(e,t){let{features:n=1,...r}=e,a={ref:t,"aria-hidden":(2&n)==2||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(4&n)==4&&(2&n)!=2&&{display:"none"}}};return(0,o.sY)({ourProps:a,theirProps:r,slot:{},defaultTag:i,name:"Hidden"})}let l=(0,o.yV)(s)},43659:function(e,t,n){"use strict";function r(...e){return Array.from(new Set(e.flatMap(e=>"string"==typeof e?e.split(" "):[]))).filter(Boolean).join(" ")}n.d(t,{A:function(){return r}})},95012:function(e,t,n){"use strict";n.d(t,{k:function(){return o}});var r=n(41287);function o(){let e=[],t={addEventListener:(e,n,r,o)=>(e.addEventListener(n,r,o),t.add(()=>e.removeEventListener(n,r,o))),requestAnimationFrame(...e){let n=requestAnimationFrame(...e);return t.add(()=>cancelAnimationFrame(n))},nextFrame:(...e)=>t.requestAnimationFrame(()=>t.requestAnimationFrame(...e)),setTimeout(...e){let n=setTimeout(...e);return t.add(()=>clearTimeout(n))},microTask(...e){let n={current:!0};return(0,r.Y)(()=>{n.current&&e[0]()}),t.add(()=>{n.current=!1})},style(e,t,n){let r=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),this.add(()=>{Object.assign(e.style,{[t]:r})})},group(e){let t=o();return e(t),this.add(()=>t.dispose())},add:t=>(e.push(t),()=>{let n=e.indexOf(t);if(n>=0)for(let t of e.splice(n,1))t()}),dispose(){for(let t of e.splice(0))t()}};return t}},86030:function(e,t,n){"use strict";n.d(t,{O:function(){return s}});var r=Object.defineProperty,o=(e,t,n)=>t in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,i=(e,t,n)=>(o(e,"symbol"!=typeof t?t+"":t,n),n);class a{constructor(){i(this,"current",this.detect()),i(this,"handoffState","pending"),i(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}}let s=new a},47496:function(e,t,n){"use strict";n.d(t,{EO:function(){return j},TO:function(){return f},fE:function(){return h},jA:function(){return E},sP:function(){return x},tJ:function(){return g},wI:function(){return v},z2:function(){return _}});var r,o,i,a,s,l=n(95012),c=n(23011),u=n(19195);let d=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var f=((r=f||{})[r.First=1]="First",r[r.Previous=2]="Previous",r[r.Next=4]="Next",r[r.Last=8]="Last",r[r.WrapAround=16]="WrapAround",r[r.NoScroll=32]="NoScroll",r),h=((o=h||{})[o.Error=0]="Error",o[o.Overflow=1]="Overflow",o[o.Success=2]="Success",o[o.Underflow=3]="Underflow",o),p=((i=p||{})[i.Previous=-1]="Previous",i[i.Next=1]="Next",i);function m(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(d)).sort((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}var g=((a=g||{})[a.Strict=0]="Strict",a[a.Loose=1]="Loose",a);function x(e,t=0){var n;return e!==(null==(n=(0,u.r)(e))?void 0:n.body)&&(0,c.E)(t,{0:()=>e.matches(d),1(){let t=e;for(;null!==t;){if(t.matches(d))return!0;t=t.parentElement}return!1}})}function v(e){let t=(0,u.r)(e);(0,l.k)().nextFrame(()=>{t&&!x(t.activeElement,0)&&b(e)})}var y=((s=y||{})[s.Keyboard=0]="Keyboard",s[s.Mouse=1]="Mouse",s);function b(e){null==e||e.focus({preventScroll:!0})}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));let w="textarea,input";function k(e){var t,n;return null!=(n=null==(t=null==e?void 0:e.matches)?void 0:t.call(e,w))&&n}function _(e,t=e=>e){return e.slice().sort((e,n)=>{let r=t(e),o=t(n);if(null===r||null===o)return 0;let i=r.compareDocumentPosition(o);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function j(e,t){return E(m(),t,{relativeTo:e})}function E(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:o=[]}={}){let i=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,a=Array.isArray(e)?n?_(e):e:m(e);o.length>0&&a.length>1&&(a=a.filter(e=>!o.includes(e))),r=null!=r?r:i.activeElement;let s=(()=>{if(5&t)return 1;if(10&t)return -1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),l=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,a.indexOf(r))-1;if(4&t)return Math.max(0,a.indexOf(r))+1;if(8&t)return a.length-1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=32&t?{preventScroll:!0}:{},u=0,d=a.length,f;do{if(u>=d||u+d<=0)return 0;let e=l+u;if(16&t)e=(e+d)%d;else{if(e<0)return 3;if(e>=d)return 1}null==(f=a[e])||f.focus(c),u+=s}while(f!==i.activeElement);return 6&t&&k(f)&&f.select(),2}},23011:function(e,t,n){"use strict";function r(e,t,...n){if(e in t){let r=t[e];return"function"==typeof r?r(...n):r}let o=Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(e=>`"${e}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(o,r),o}n.d(t,{E:function(){return r}})},41287:function(e,t,n){"use strict";function r(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch(e=>setTimeout(()=>{throw e}))}n.d(t,{Y:function(){return r}})},19195:function(e,t,n){"use strict";n.d(t,{r:function(){return o}});var r=n(86030);function o(e){return r.O.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}},70222:function(e,t,n){"use strict";n.d(t,{AN:function(){return l},l4:function(){return c},oA:function(){return m},sY:function(){return u},yV:function(){return p}});var r,o,i=n(50959),a=n(43659),s=n(23011),l=((r=l||{})[r.None=0]="None",r[r.RenderStrategy=1]="RenderStrategy",r[r.Static=2]="Static",r),c=((o=c||{})[o.Unmount=0]="Unmount",o[o.Hidden=1]="Hidden",o);function u({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:a}){let l=h(t,e);if(i)return d(l,n,r,a);let c=null!=o?o:0;if(2&c){let{static:e=!1,...t}=l;if(e)return d(t,n,r,a)}if(1&c){let{unmount:e=!0,...t}=l;return(0,s.E)(e?0:1,{0:()=>null,1:()=>d({...t,hidden:!0,style:{display:"none"}},n,r,a)})}return d(l,n,r,a)}function d(e,t={},n,r){let{as:o=n,children:s,refName:l="ref",...c}=g(e,["unmount","static"]),u=void 0!==e.ref?{[l]:e.ref}:{},d="function"==typeof s?s(t):s;"className"in c&&c.className&&"function"==typeof c.className&&(c.className=c.className(t));let p={};if(t){let e=!1,n=[];for(let[r,o]of Object.entries(t))"boolean"==typeof o&&(e=!0),!0===o&&n.push(r);e&&(p["data-headlessui-state"]=n.join(" "))}if(o===i.Fragment&&Object.keys(m(c)).length>0){if(!(0,i.isValidElement)(d)||Array.isArray(d)&&d.length>1)throw Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(c).map(e=>` - ${e}`).join(` -`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(e=>` - ${e}`).join(` -`)].join(` -`));let e=d.props,t="function"==typeof(null==e?void 0:e.className)?(...t)=>(0,a.A)(null==e?void 0:e.className(...t),c.className):(0,a.A)(null==e?void 0:e.className,c.className),n=t?{className:t}:{};return(0,i.cloneElement)(d,Object.assign({},h(d.props,m(g(c,["ref"]))),p,u,f(d.ref,u.ref),n))}return(0,i.createElement)(o,Object.assign({},g(c,["ref"]),o!==i.Fragment&&u,o!==i.Fragment&&p),d)}function f(...e){return{ref:e.every(e=>null==e)?void 0:t=>{for(let n of e)null!=n&&("function"==typeof n?n(t):n.current=t)}}}function h(...e){var t;if(0===e.length)return{};if(1===e.length)return e[0];let n={},r={};for(let o of e)for(let e in o)e.startsWith("on")&&"function"==typeof o[e]?(null!=(t=r[e])||(r[e]=[]),r[e].push(o[e])):n[e]=o[e];if(n.disabled||n["aria-disabled"])return Object.assign(n,Object.fromEntries(Object.keys(r).map(e=>[e,void 0])));for(let e in r)Object.assign(n,{[e](t,...n){for(let o of r[e]){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;o(t,...n)}}});return n}function p(e){var t;return Object.assign((0,i.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function m(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function g(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}},5341:function(e,t,n){"use strict";function r(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e){if(Array.isArray(e))for(t=0;t0?(0,o.uO)(u,--l):0,a--,10===c&&(a=1,i--),c}function p(){return c=l2||v(c)>3?"":" "}function _(e,t){for(;--t&&p()&&!(c<48)&&!(c>102)&&(!(c>57)||!(c<65))&&(!(c>70)||!(c<97)););return x(e,g()+(t<6&&32==m()&&32==p()))}function j(e){for(;p();)switch(c){case e:return l;case 34:case 39:34!==e&&39!==e&&j(c);break;case 40:41===e&&j(e);break;case 92:p()}return l}function E(e,t){for(;p();)if(e+c===57)break;else if(e+c===84&&47===m())break;return"/*"+x(t,l-1)+"*"+(0,o.Dp)(47===e?e:p())}function O(e){for(;!v(m());)p();return x(e,l)}function S(e){return b(C("",null,null,null,[""],e=y(e),0,[0],e))}function C(e,t,n,r,i,a,s,l,c){for(var u=0,d=0,f=s,x=0,v=0,y=0,b=1,j=1,S=1,N=0,I="",M=i,L=a,Z=r,P=I;j;)switch(y=N,N=p()){case 40:if(108!=y&&58==(0,o.uO)(P,f-1)){-1!=(0,o.Cw)(P+=(0,o.gx)(w(N),"&","&\f"),"&\f")&&(S=-1);break}case 34:case 39:case 91:P+=w(N);break;case 9:case 10:case 13:case 32:P+=k(y);break;case 92:P+=_(g()-1,7);continue;case 47:switch(m()){case 42:case 47:(0,o.R3)(A(E(p(),g()),t,n,c),c);break;default:P+="/"}break;case 123*b:l[u++]=(0,o.to)(P)*S;case 125*b:case 59:case 0:switch(N){case 0:case 125:j=0;case 59+d:-1==S&&(P=(0,o.gx)(P,/\f/g,"")),v>0&&(0,o.to)(P)-f&&(0,o.R3)(v>32?R(P+";",r,n,f-1,c):R((0,o.gx)(P," ","")+";",r,n,f-2,c),c);break;case 59:P+=";";default:if((0,o.R3)(Z=T(P,t,n,u,d,i,l,I,M=[],L=[],f,a),a),123===N){if(0===d)C(P,t,Z,Z,M,a,f,l,L);else switch(99===x&&110===(0,o.uO)(P,3)?100:x){case 100:case 108:case 109:case 115:C(e,Z,Z,r&&(0,o.R3)(T(e,Z,Z,0,0,i,l,I,i,M=[],f,L),L),i,L,f,l,r?M:L);break;default:C(P,Z,Z,Z,[""],L,0,l,L)}}}u=d=v=0,b=S=1,I=P="",f=s;break;case 58:f=1+(0,o.to)(P),v=y;default:if(b<1){if(123==N)--b;else if(125==N&&0==b++&&125==h())continue}switch(P+=(0,o.Dp)(N),N*b){case 38:S=d>0?1:(P+="\f",-1);break;case 44:l[u++]=((0,o.to)(P)-1)*S,S=1;break;case 64:45===m()&&(P+=w(p())),x=m(),d=f=(0,o.to)(I=P+=O(g())),N++;break;case 45:45===y&&2==(0,o.to)(P)&&(b=0)}}return a}function T(e,t,n,i,a,s,l,c,u,f,h,p){for(var m=a-1,g=0===a?s:[""],x=(0,o.Ei)(g),v=0,y=0,b=0;v0?g[w]+" "+k:(0,o.gx)(k,/&\f/g,g[w])))&&(u[b++]=_);return d(e,t,n,0===a?r.Fr:c,u,f,h,p)}function A(e,t,n,i){return d(e,t,n,r.Ab,(0,o.Dp)(f()),(0,o.tb)(e,2,-2),0,i)}function R(e,t,n,i,a){return d(e,t,n,r.h5,(0,o.tb)(e,0,i),(0,o.tb)(e,i+1,-1),i,a)}},48871:function(e,t,n){"use strict";n.d(t,{P:function(){return a},q:function(){return i}});var r=n(32402),o=n(41960);function i(e,t){for(var n="",r=0;r"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"void"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 是否使用系统默认的alert页面提示热更, 默认为true"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" useAlert"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"?:"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"boolean"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 触发自动检查更新的策略"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" strategy"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"?:"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"|"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"onAppStart"'}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 仅在app启动时"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"|"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"onAppResume"'}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 仅在app从后台切换到前台时"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"|"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"both"'}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"; "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 默认值,同时包含前两个场景"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"|"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" null; "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 不自动检查更新,必须手动调用checkUpdate方法,此选项需v10.4.2或更高版本"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 是否在热更重启后自动标记为成功,默认为true"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" autoMarkSuccess"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"?:"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"boolean"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 是否在若干ms后自动清除最后的报错,默认为不清除"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" dismissErrorAfter"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"?:"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"number"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 是否在开发环境中检查热更,默认为false。如需在开发环境中调试热更,请打开此选项。"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 但即便打开此选项,也仅能检查、下载热更,并不能实际应用热更。实际应用热更必须在release包中进行。"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 此选项需v10.4.2或更高版本"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" debug"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"?:"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"boolean"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})}),"\n",(0,l.jsx)(e.span,{className:"line",children:" "}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 日志事件类型"})}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"type"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"EventType"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 更新失败,重启后发生回滚"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"|"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"rollback"'})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 检查更新时报错"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"|"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"errorChecking"'})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 正在发起检查"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"|"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"checking"'})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 正在下载更新"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"|"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"downloading"'})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 更新失败"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"|"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"errorUpdate"'})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 更新成功"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"|"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"markSuccess"'})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 下载apk"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"|"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"downloadingApk"'})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 下载apk前申请存储权限被用户拒绝"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"|"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"rejectStoragePermission"'})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 下载apk前申请存储权限发生错误"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"|"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"errorStoragePermission"'})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 下载apk时发生错误"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"|"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"errowDownloadAndInstallApk"'}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,l.jsx)(e.span,{className:"line",children:" "}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 日志事件数据"})}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"interface"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"EventData"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 当前已完成的热更hash值,如尚未热更则为空字符串"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" currentVersion"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"string"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 客户端版本信息"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" cInfo"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" pushy"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"string"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"; "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 当前pushy版本"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" rn"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"string"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"; "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 当前rn版本"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" os"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"string"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"; "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 当前操作系统及版本"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" uuid"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"string"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"; "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 用户标识符"})]}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" };"})}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 客户端原生版本号"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" packageVersion"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"string"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 编译时间戳"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" buildTime"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"number"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 报错相关的信息"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" message"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"?:"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"string"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 发生回滚的版本hash值"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" rolledBackVersion"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"?:"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"string"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 更新失败的新版本hash值"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" newVersion"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"?:"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"string"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 其他一些数据"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" [key"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"string"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"]"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"any"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})})]})}),"\n",(0,l.jsx)(e.h4,{id:"usepushy",children:"usePushy()"}),"\n",(0,l.jsx)(e.p,{children:"热更相关的工具函数。"}),"\n",(0,l.jsx)(e.pre,{"data-language":"js","data-theme":"default",children:(0,l.jsxs)(e.code,{"data-language":"js","data-theme":"default",children:[(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"checkUpdate"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"switchVersion"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"switchVersionLater"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"markSuccess"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"dismissError"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"downloadUpdate"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"downloadAndInstallApk"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"getCurrentVersionInfo"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"currentHash"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"packageVersion"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"client"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"progress"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"updateInfo"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"lastError"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"} "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"usePushy"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"();"})]})]})}),"\n",(0,l.jsx)(e.p,{children:"其类型定义和功能如下:"}),"\n",(0,l.jsx)(e.pre,{"data-language":"ts","data-theme":"default",children:(0,l.jsxs)(e.code,{"data-language":"ts","data-theme":"default",children:[(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"interface"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"PushyContext"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 检查更新"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"checkUpdate"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" () "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"=>"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"Promise"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"<"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"void"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">;"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 下载热更完成后调用,立即重启切换新版本"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"switchVersion"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" () "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"=>"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"void"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 下载热更完成后调用,用户手动重启app后切换新版本(静默更新)"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"switchVersionLater"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" () "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"=>"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"void"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 热更完成重启后,手动标记热更完成"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"markSuccess"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" () "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"=>"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"void"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 清除最后的报错状态"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"dismissError"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" () "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"=>"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"void"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 下载热更"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"downloadUpdate"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" () "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"=>"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"Promise"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"<"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"void"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">;"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 下载并安装apk"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"downloadAndInstallApk"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" (url"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"string"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:") "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"=>"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"Promise"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"<"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"void"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">;"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 获取当前已热更版本的信息"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"getCurrentVersionInfo"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" () "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"=>"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"Promise"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"<{"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" name"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"?:"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"string"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" description"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"?:"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"string"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" metaInfo"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"?:"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"string"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }>;"})}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 当前的版本hash"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" currentHash"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"string"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 当前的原生版本号"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" packageVersion"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"string"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 当前的pushy热更服务示例"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" client"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"?:"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"Pushy"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 下载开始后的进度数据"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" progress"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"?:"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" hash"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"string"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 已下载的字节数"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" received"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"number"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 待下载的总字节数"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" total"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"number"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" };"})}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 热更相关信息"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" updateInfo"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"?:"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 已是最新版本,无需热更"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" upToDate"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"?:"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"true"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 当前原生版本已过期,需要下载新的原生版本"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" expired"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"?:"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"true"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 在pushy网页管理端设置的原生版本下载地址"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" downloadUrl"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"?:"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"string"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 是否存在新的热更"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" update"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"?:"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"true"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 新热更的版本名称"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" name"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"?:"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"string"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 新热更的hash值"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" hash"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"?:"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"string"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 新热更的更新说明"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" description"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"?:"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"string"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 新热更携带的额外元数据"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" metaInfo"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"?:"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"string"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 差量热更包的下载地址"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" diffUrl"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"?:"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"string"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 备用热更包的下载地址(不同的差量策略)"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" pdiffUrl"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"?:"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"string"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 完成热更包的下载地址"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" updateUrl"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"?:"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"string"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 当前热更是否已暂停"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" paused"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"?:"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"|"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"app"'}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 当前应用所有原生版本暂停"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"|"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"package"'}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"; "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 仅当前原生版本暂停"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 其他信息"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" message"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"?:"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"string"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" };"})}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 检查、下载、应用热更等过程中的最新一次报错"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" lastError"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"?:"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"Error"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})})]})}),"\n",(0,l.jsx)(e.hr,{}),"\n",(0,l.jsx)(e.h4,{id:"async-function-checkupdate",children:"async function checkUpdate()"}),"\n",(0,l.jsxs)(e.p,{children:["触发更新检查,更新",(0,l.jsx)(e.code,{children:"usePushy"}),"中的",(0,l.jsx)(e.code,{children:"updateInfo"}),",返回值有三种情形:"]}),"\n",(0,l.jsxs)(e.ol,{children:["\n",(0,l.jsxs)(e.li,{children:[(0,l.jsx)(e.code,{children:"{expired: true}"}),":该应用原生包已过期(三种情况:1. 主动设置为过期状态,2. 主动删除,3. 从未上传),需要引导用户下载或跳转到应用市场(需要在网页管理端设置中填写",(0,l.jsx)(e.code,{children:"downloadUrl"}),")。"]}),"\n"]}),"\n",(0,l.jsx)(e.pre,{"data-language":"js","data-theme":"default",children:(0,l.jsxs)(e.code,{"data-language":"js","data-theme":"default",children:[(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{"})}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" expired"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"true"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" downloadUrl"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'http://appstore/downloadUrl'"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})})]})}),"\n",(0,l.jsxs)(e.ol,{start:"2",children:["\n",(0,l.jsxs)(e.li,{children:["\n",(0,l.jsxs)(e.p,{children:[(0,l.jsx)(e.code,{children:"{upToDate: true}"}),":当前已经更新到最新,无需进行更新。"]}),"\n"]}),"\n",(0,l.jsxs)(e.li,{children:["\n",(0,l.jsxs)(e.p,{children:[(0,l.jsx)(e.code,{children:"{update: true}"}),":当前有新版本可以更新。",(0,l.jsx)(e.code,{children:"name"}),"、",(0,l.jsx)(e.code,{children:"description"}),"字段可以用于展示给用户版本号,更新内容等信息,而",(0,l.jsx)(e.code,{children:"metaInfo"}),"字段则可以根据你的需求自定义一些标记(如是否静默更新、是否强制更新等等,自己根据标记的属性做一些条件流程控制),具体用法可参考",(0,l.jsx)(e.a,{href:"bestpractice#%E5%85%83%E4%BF%A1%E6%81%AFmeta-info%E7%9A%84%E4%BD%BF%E7%94%A8",children:"场景实践"}),"。另外还有几个字段,包含了热更新文件的下载地址,"]}),"\n"]}),"\n"]}),"\n",(0,l.jsx)(e.pre,{"data-language":"js","data-theme":"default",children:(0,l.jsxs)(e.code,{"data-language":"js","data-theme":"default",children:[(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{"})}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" update"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"true"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" name"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'1.0.3-rc'"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" hash"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'hash'"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" description"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'添加聊天功能\\n修复商城页面BUG'"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" metaInfo"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'{\"silent\":true}'"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" pdiffUrl"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'http://update-packages.reactnative.cn/hash'"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" diffUrl"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'http://update-packages.reactnative.cn/hash'"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})})]})}),"\n",(0,l.jsx)(e.hr,{}),"\n",(0,l.jsx)(e.h4,{id:"async-function-downloadupdate",children:"async function downloadUpdate()"}),"\n",(0,l.jsxs)(e.p,{children:["下载热更包。仅当",(0,l.jsx)(e.code,{children:"update:true"}),"时实际进行下载。会更新",(0,l.jsx)(e.code,{children:"progress"}),"数据。"]}),"\n",(0,l.jsx)(e.hr,{}),"\n",(0,l.jsx)(e.h4,{id:"async-function-downloadandinstallapkurl",children:"async function downloadAndInstallApk(url)"}),"\n",(0,l.jsxs)(e.p,{children:["下载更新的 apk 包并直接安装。",(0,l.jsx)(e.code,{children:"url"}),"必须为可直接下载到 apk 文件的地址。"]}),"\n",(0,l.jsxs)(e.p,{children:["注意要使用这个功能还需要在",(0,l.jsx)(e.code,{children:"AndroidManifest.xml"}),"中手动添加安装权限,如果需要考虑 Android 7.0 以下的客户,则还需要添加外部存储权限。"]}),"\n",(0,l.jsx)(e.pre,{"data-language":"xml","data-theme":"default",children:(0,l.jsxs)(e.code,{"data-language":"xml","data-theme":"default",children:[(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"<"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"uses-permission"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"android"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"name"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"="}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"android.permission.REQUEST_INSTALL_PACKAGES"'}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" />"})]}),"\n",(0,l.jsx)(e.span,{className:"line",children:" "}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:""})}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"<"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"uses-permission"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"android"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"name"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"="}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"android.permission.WRITE_EXTERNAL_STORAGE"'}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" />"})]})]})}),"\n",(0,l.jsx)(e.p,{children:"注意某些应用市场可能会因为上述权限拒绝应用上架。去掉上述两个权限并不影响热更新功能。"}),"\n",(0,l.jsx)(e.hr,{}),"\n",(0,l.jsx)(e.h4,{id:"function-marksuccess",children:"function markSuccess()"}),"\n",(0,l.jsxs)(e.p,{children:["手动调用此函数作为更新成功的标记(否则下次启动会默认失败自动回滚)。默认情况下不需调用此函数,除非设置",(0,l.jsx)(e.code,{children:"autoMarkSuccess"}),"为",(0,l.jsx)(e.code,{children:"false"}),"。"]}),"\n",(0,l.jsx)(e.hr,{}),"\n",(0,l.jsx)(e.h4,{id:"async-function-getcurrentversioninfo",children:"async function getCurrentVersionInfo()"}),"\n",(0,l.jsx)(e.p,{children:"获取当前已热更版本的信息(如尚未热更过则返回空对象)。"}),"\n",(0,l.jsx)(e.p,{children:"返回值示例:"}),"\n",(0,l.jsx)(e.pre,{"data-language":"js","data-theme":"default",children:(0,l.jsxs)(e.code,{"data-language":"js","data-theme":"default",children:[(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{"})}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" name"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'1.0.3-rc'"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" description"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'添加聊天功能\\n修复商城页面BUG'"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" metaInfo"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'{\"silent\":true}'"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})})]})}),"\n",(0,l.jsx)(e.hr,{}),"\n",(0,l.jsx)(e.h4,{id:"function-switchversion",children:"function switchVersion()"}),"\n",(0,l.jsx)(e.p,{children:"立即重启应用,并加载已经下载完毕的版本。"}),"\n",(0,l.jsx)(e.hr,{}),"\n",(0,l.jsx)(e.h4,{id:"function-switchversionlater",children:"function switchVersionLater()"}),"\n",(0,l.jsx)(e.p,{children:"在下一次启动应用的时候加载已经下载完毕的版本。"}),"\n",(0,l.jsx)(e.hr,{}),"\n",(0,l.jsx)(e.h3,{id:"android-方法",children:"Android 方法"}),"\n",(0,l.jsx)(e.h4,{id:"updatecontextsetcustominstancemanagerreactinstancemanager-instancemanager",children:"UpdateContext.setCustomInstanceManager(ReactInstanceManager instanceManager)"}),"\n",(0,l.jsxs)(e.p,{children:["如果是集成/混编 Android 方案,则可以使用此方法传入你自行创建的 ReactInstanceManager。自",(0,l.jsx)(e.code,{children:"v5.5.8"}),"版本起可用。"]}),"\n",(0,l.jsx)(e.p,{children:"示例:"}),"\n",(0,l.jsx)(e.pre,{"data-language":"java","data-theme":"default",children:(0,l.jsxs)(e.code,{"data-language":"java","data-theme":"default",children:[(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"import"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"cn"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:"."}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"reactnative"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:"."}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"modules"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:"."}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"update"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:"."}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"UpdateContext"})]}),"\n",(0,l.jsx)(e.span,{className:"line",children:" "}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"mReactInstanceManager = ReactInstanceManager"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:"."}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"builder()"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// ...各种setter,但注意不要调用setBundleAssetName"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:"."}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"setJSBundleFile(UpdateContext"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:"."}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'getBundleUrl(mContext, "assets:'}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:'//index.android.bundle"))'})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:"."}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"build()"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"UpdateContext"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:"."}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"setCustomInstanceManager"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"(mReactInstanceManager);"})]})]})})]})}e.default=(0,r.j)({MDXContent:function(){let s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:e}=Object.assign({},(0,o.a)(),s.components);return e?(0,l.jsx)(e,{...s,children:(0,l.jsx)(c,{...s})}):c(s)},pageOpts:{filePath:"pages/docs/api.md",route:"/docs/api",frontMatter:{order:11,title:"API参考",type:"开发指南"},title:"API参考",headings:i},pageNextRoute:"/docs/api"})}},function(s){s.O(0,[567,888,774,179],function(){return s(s.s=16237)}),_N_E=s.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[259],{38158:function(s,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/docs/api",function(){return n(35575)}])},35575:function(s,e,n){"use strict";n.r(e),n.d(e,{__toc:function(){return i}});var l=n(11527),r=n(86909),o=n(59087);let i=[{depth:3,value:"JavaScript 方法",id:"javascript-方法"},{depth:4,value:"new Pushy(options: PushyOptions)",id:"new-pushyoptions-pushyoptions"},{depth:4,value:"usePushy()",id:"usepushy"},{depth:4,value:"async function checkUpdate()",id:"async-function-checkupdate"},{depth:4,value:"async function downloadUpdate()",id:"async-function-downloadupdate"},{depth:4,value:"async function downloadAndInstallApk(url)",id:"async-function-downloadandinstallapkurl"},{depth:4,value:"function markSuccess()",id:"function-marksuccess"},{depth:4,value:"async function getCurrentVersionInfo()",id:"async-function-getcurrentversioninfo"},{depth:4,value:"function switchVersion()",id:"function-switchversion"},{depth:4,value:"function switchVersionLater()",id:"function-switchversionlater"},{depth:3,value:"Android 方法",id:"android-方法"},{depth:4,value:"UpdateContext.setCustomInstanceManager(ReactInstanceManager instanceManager)",id:"updatecontextsetcustominstancemanagerreactinstancemanager-instancemanager"}];function c(s){let e=Object.assign({h3:"h3",h4:"h4",p:"p",pre:"pre",code:"code",span:"span",hr:"hr",ol:"ol",li:"li",a:"a"},(0,o.a)(),s.components);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(e.h3,{id:"javascript-方法",children:"JavaScript 方法"}),"\n",(0,l.jsx)(e.h4,{id:"new-pushyoptions-pushyoptions",children:"new Pushy(options: PushyOptions)"}),"\n",(0,l.jsx)(e.p,{children:"创建 Pushy 热更新服务实例,其构造参数如下:"}),"\n",(0,l.jsx)(e.pre,{"data-language":"ts","data-theme":"default",children:(0,l.jsxs)(e.code,{"data-language":"ts","data-theme":"default",children:[(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"interface"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"PushyOptions"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 必填,通过pushy createApp或selectApp命令,或在网页管理端获取"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" appKey"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"string"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,l.jsx)(e.span,{className:"line",children:" "}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 如已购买私有部署服务,可在此自定义私有服务器地址"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" server"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"?:"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 主节点"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" main"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"string"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 备用节点群"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" backups"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"?:"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"string"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"[];"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 远程查询节点接口"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" queryUrl"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"?:"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"string"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" };"})}),"\n",(0,l.jsx)(e.span,{className:"line",children:" "}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 自定义日志输出,也可用于上报统计数据"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" logger"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"?:"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ({ type"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" data }"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" { type"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"EventType"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"; data"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"EventData"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }) "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"=>"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"void"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 是否使用系统默认的alert页面提示热更, 默认为true"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" useAlert"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"?:"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"boolean"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 触发自动检查更新的策略"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" strategy"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"?:"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"|"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"onAppStart"'}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 仅在app启动时"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"|"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"onAppResume"'}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 仅在app从后台切换到前台时"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"|"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"both"'}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"; "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 默认值,同时包含前两个场景"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"|"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" null; "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 不自动检查更新,必须手动调用checkUpdate方法,此选项需v10.4.2或更高版本"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 是否在热更重启后自动标记为成功,默认为true"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" autoMarkSuccess"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"?:"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"boolean"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 是否在若干ms后自动清除最后的报错,默认为不清除"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" dismissErrorAfter"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"?:"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"number"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 是否在开发环境中检查热更,默认为false。如需在开发环境中调试热更,请打开此选项。"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 但即便打开此选项,也仅能检查、下载热更,并不能实际应用热更。实际应用热更必须在release包中进行。"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 此选项需v10.4.2或更高版本"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" debug"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"?:"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"boolean"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})}),"\n",(0,l.jsx)(e.span,{className:"line",children:" "}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 日志事件类型"})}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"type"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"EventType"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 更新失败,重启后发生回滚"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"|"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"rollback"'})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 检查更新时报错"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"|"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"errorChecking"'})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 正在发起检查"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"|"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"checking"'})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 正在下载更新"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"|"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"downloading"'})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 更新失败"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"|"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"errorUpdate"'})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 更新成功"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"|"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"markSuccess"'})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 下载apk"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"|"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"downloadingApk"'})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 下载apk前申请存储权限被用户拒绝"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"|"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"rejectStoragePermission"'})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 下载apk前申请存储权限发生错误"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"|"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"errorStoragePermission"'})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 下载apk时发生错误"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"|"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"errowDownloadAndInstallApk"'}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,l.jsx)(e.span,{className:"line",children:" "}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 日志事件数据"})}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"interface"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"EventData"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 当前已完成的热更hash值,如尚未热更则为空字符串"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" currentVersion"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"string"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 客户端版本信息"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" cInfo"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" pushy"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"string"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"; "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 当前pushy版本"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" rn"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"string"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"; "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 当前rn版本"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" os"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"string"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"; "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 当前操作系统及版本"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" uuid"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"string"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"; "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 用户标识符"})]}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" };"})}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 客户端原生版本号"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" packageVersion"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"string"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 编译时间戳"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" buildTime"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"number"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 报错相关的信息"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" message"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"?:"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"string"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 发生回滚的版本hash值"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" rolledBackVersion"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"?:"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"string"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 更新失败的新版本hash值"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" newVersion"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"?:"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"string"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 其他一些数据"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" [key"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"string"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"]"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"any"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})})]})}),"\n",(0,l.jsx)(e.h4,{id:"usepushy",children:"usePushy()"}),"\n",(0,l.jsx)(e.p,{children:"热更相关的工具函数。"}),"\n",(0,l.jsx)(e.pre,{"data-language":"js","data-theme":"default",children:(0,l.jsxs)(e.code,{"data-language":"js","data-theme":"default",children:[(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"checkUpdate"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"switchVersion"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"switchVersionLater"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"markSuccess"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"dismissError"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"downloadUpdate"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"downloadAndInstallApk"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"getCurrentVersionInfo"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"currentHash"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"packageVersion"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"client"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"progress"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"updateInfo"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"lastError"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"} "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"usePushy"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"();"})]})]})}),"\n",(0,l.jsx)(e.p,{children:"其类型定义和功能如下:"}),"\n",(0,l.jsx)(e.pre,{"data-language":"ts","data-theme":"default",children:(0,l.jsxs)(e.code,{"data-language":"ts","data-theme":"default",children:[(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"interface"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"PushyContext"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 检查更新"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"checkUpdate"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" () "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"=>"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"Promise"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"<"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"void"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">;"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 下载热更完成后调用,立即重启切换新版本"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"switchVersion"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" () "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"=>"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"void"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 下载热更完成后调用,用户手动重启app后切换新版本(静默更新)"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"switchVersionLater"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" () "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"=>"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"void"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 热更完成重启后,手动标记热更完成"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"markSuccess"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" () "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"=>"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"void"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 清除最后的报错状态"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"dismissError"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" () "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"=>"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"void"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 下载热更"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"downloadUpdate"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" () "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"=>"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"Promise"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"<"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"void"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">;"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 下载并安装apk"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"downloadAndInstallApk"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" (url"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"string"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:") "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"=>"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"Promise"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"<"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"void"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">;"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 获取当前已热更版本的信息"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"getCurrentVersionInfo"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" () "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"=>"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"Promise"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"<{"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" name"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"?:"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"string"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" description"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"?:"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"string"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" metaInfo"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"?:"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"string"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }>;"})}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 当前的版本hash"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" currentHash"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"string"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 当前的原生版本号"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" packageVersion"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"string"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 当前的pushy热更服务示例"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" client"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"?:"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"Pushy"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 下载开始后的进度数据"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" progress"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"?:"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" hash"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"string"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 已下载的字节数"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" received"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"number"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 待下载的总字节数"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" total"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"number"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" };"})}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 热更相关信息"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" updateInfo"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"?:"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 已是最新版本,无需热更"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" upToDate"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"?:"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"true"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 当前原生版本已过期,需要下载新的原生版本"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" expired"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"?:"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"true"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 在pushy网页管理端设置的原生版本下载地址"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" downloadUrl"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"?:"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"string"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 是否存在新的热更"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" update"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"?:"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"true"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 新热更的版本名称"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" name"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"?:"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"string"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 新热更的hash值"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" hash"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"?:"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"string"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 新热更的更新说明"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" description"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"?:"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"string"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 新热更携带的额外元数据"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" metaInfo"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"?:"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"string"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 差量热更包的下载地址"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" diffUrl"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"?:"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"string"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 备用热更包的下载地址(不同的差量策略)"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" pdiffUrl"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"?:"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"string"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 完成热更包的下载地址"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" updateUrl"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"?:"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"string"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 当前热更是否已暂停"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" paused"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"?:"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"|"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"app"'}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 当前应用所有原生版本暂停"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"|"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"package"'}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"; "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 仅当前原生版本暂停"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 其他信息"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" message"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"?:"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"string"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" };"})}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 检查、下载、应用热更等过程中的最新一次报错"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" lastError"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"?:"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"Error"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})})]})}),"\n",(0,l.jsx)(e.hr,{}),"\n",(0,l.jsx)(e.h4,{id:"async-function-checkupdate",children:"async function checkUpdate()"}),"\n",(0,l.jsxs)(e.p,{children:["触发更新检查,更新",(0,l.jsx)(e.code,{children:"usePushy"}),"中的",(0,l.jsx)(e.code,{children:"updateInfo"}),",返回值有三种情形:"]}),"\n",(0,l.jsxs)(e.ol,{children:["\n",(0,l.jsxs)(e.li,{children:[(0,l.jsx)(e.code,{children:"{expired: true}"}),":该应用原生包已过期(三种情况:1. 主动设置为过期状态,2. 主动删除,3. 从未上传),需要引导用户下载或跳转到应用市场(需要在网页管理端设置中填写",(0,l.jsx)(e.code,{children:"downloadUrl"}),")。"]}),"\n"]}),"\n",(0,l.jsx)(e.pre,{"data-language":"js","data-theme":"default",children:(0,l.jsxs)(e.code,{"data-language":"js","data-theme":"default",children:[(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{"})}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" expired"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"true"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" downloadUrl"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'http://appstore/downloadUrl'"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})})]})}),"\n",(0,l.jsxs)(e.ol,{start:"2",children:["\n",(0,l.jsxs)(e.li,{children:["\n",(0,l.jsxs)(e.p,{children:[(0,l.jsx)(e.code,{children:"{upToDate: true}"}),":当前已经更新到最新,无需进行更新。"]}),"\n"]}),"\n",(0,l.jsxs)(e.li,{children:["\n",(0,l.jsxs)(e.p,{children:[(0,l.jsx)(e.code,{children:"{update: true}"}),":当前有新版本可以更新。",(0,l.jsx)(e.code,{children:"name"}),"、",(0,l.jsx)(e.code,{children:"description"}),"字段可以用于展示给用户版本号,更新内容等信息,而",(0,l.jsx)(e.code,{children:"metaInfo"}),"字段则可以根据你的需求自定义一些标记(如是否静默更新、是否强制更新等等,自己根据标记的属性做一些条件流程控制),具体用法可参考",(0,l.jsx)(e.a,{href:"bestpractice#%E5%85%83%E4%BF%A1%E6%81%AFmeta-info%E7%9A%84%E4%BD%BF%E7%94%A8",children:"场景实践"}),"。另外还有几个字段,包含了热更新文件的下载地址,"]}),"\n"]}),"\n"]}),"\n",(0,l.jsx)(e.pre,{"data-language":"js","data-theme":"default",children:(0,l.jsxs)(e.code,{"data-language":"js","data-theme":"default",children:[(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{"})}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" update"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"true"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" name"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'1.0.3-rc'"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" hash"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'hash'"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" description"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'添加聊天功能\\n修复商城页面BUG'"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" metaInfo"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'{\"silent\":true}'"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" pdiffUrl"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'http://update-packages.reactnative.cn/hash'"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" diffUrl"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'http://update-packages.reactnative.cn/hash'"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})})]})}),"\n",(0,l.jsx)(e.hr,{}),"\n",(0,l.jsx)(e.h4,{id:"async-function-downloadupdate",children:"async function downloadUpdate()"}),"\n",(0,l.jsxs)(e.p,{children:["下载热更包。仅当",(0,l.jsx)(e.code,{children:"update:true"}),"时实际进行下载。会更新",(0,l.jsx)(e.code,{children:"progress"}),"数据。"]}),"\n",(0,l.jsx)(e.hr,{}),"\n",(0,l.jsx)(e.h4,{id:"async-function-downloadandinstallapkurl",children:"async function downloadAndInstallApk(url)"}),"\n",(0,l.jsxs)(e.p,{children:["下载更新的 apk 包并直接安装。",(0,l.jsx)(e.code,{children:"url"}),"必须为可直接下载到 apk 文件的地址。"]}),"\n",(0,l.jsxs)(e.p,{children:["注意要使用这个功能还需要在",(0,l.jsx)(e.code,{children:"AndroidManifest.xml"}),"中手动添加安装权限,如果需要考虑 Android 7.0 以下的客户,则还需要添加外部存储权限。"]}),"\n",(0,l.jsx)(e.pre,{"data-language":"xml","data-theme":"default",children:(0,l.jsxs)(e.code,{"data-language":"xml","data-theme":"default",children:[(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"<"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"uses-permission"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"android"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"name"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"="}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"android.permission.REQUEST_INSTALL_PACKAGES"'}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" />"})]}),"\n",(0,l.jsx)(e.span,{className:"line",children:" "}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:""})}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"<"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"uses-permission"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"android"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"name"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"="}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"android.permission.WRITE_EXTERNAL_STORAGE"'}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" />"})]})]})}),"\n",(0,l.jsx)(e.p,{children:"注意某些应用市场可能会因为上述权限拒绝应用上架。去掉上述两个权限并不影响热更新功能。"}),"\n",(0,l.jsx)(e.hr,{}),"\n",(0,l.jsx)(e.h4,{id:"function-marksuccess",children:"function markSuccess()"}),"\n",(0,l.jsxs)(e.p,{children:["手动调用此函数作为更新成功的标记(否则下次启动会默认失败自动回滚)。默认情况下不需调用此函数,除非设置",(0,l.jsx)(e.code,{children:"autoMarkSuccess"}),"为",(0,l.jsx)(e.code,{children:"false"}),"。"]}),"\n",(0,l.jsx)(e.hr,{}),"\n",(0,l.jsx)(e.h4,{id:"async-function-getcurrentversioninfo",children:"async function getCurrentVersionInfo()"}),"\n",(0,l.jsx)(e.p,{children:"获取当前已热更版本的信息(如尚未热更过则返回空对象)。"}),"\n",(0,l.jsx)(e.p,{children:"返回值示例:"}),"\n",(0,l.jsx)(e.pre,{"data-language":"js","data-theme":"default",children:(0,l.jsxs)(e.code,{"data-language":"js","data-theme":"default",children:[(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{"})}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" name"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'1.0.3-rc'"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" description"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'添加聊天功能\\n修复商城页面BUG'"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" metaInfo"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'{\"silent\":true}'"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})})]})}),"\n",(0,l.jsx)(e.hr,{}),"\n",(0,l.jsx)(e.h4,{id:"function-switchversion",children:"function switchVersion()"}),"\n",(0,l.jsx)(e.p,{children:"立即重启应用,并加载已经下载完毕的版本。"}),"\n",(0,l.jsx)(e.hr,{}),"\n",(0,l.jsx)(e.h4,{id:"function-switchversionlater",children:"function switchVersionLater()"}),"\n",(0,l.jsx)(e.p,{children:"在下一次启动应用的时候加载已经下载完毕的版本。"}),"\n",(0,l.jsx)(e.hr,{}),"\n",(0,l.jsx)(e.h3,{id:"android-方法",children:"Android 方法"}),"\n",(0,l.jsx)(e.h4,{id:"updatecontextsetcustominstancemanagerreactinstancemanager-instancemanager",children:"UpdateContext.setCustomInstanceManager(ReactInstanceManager instanceManager)"}),"\n",(0,l.jsxs)(e.p,{children:["如果是集成/混编 Android 方案,则可以使用此方法传入你自行创建的 ReactInstanceManager。自",(0,l.jsx)(e.code,{children:"v5.5.8"}),"版本起可用。"]}),"\n",(0,l.jsx)(e.p,{children:"示例:"}),"\n",(0,l.jsx)(e.pre,{"data-language":"java","data-theme":"default",children:(0,l.jsxs)(e.code,{"data-language":"java","data-theme":"default",children:[(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"import"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"cn"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:"."}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"reactnative"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:"."}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"modules"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:"."}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"update"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:"."}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"UpdateContext"})]}),"\n",(0,l.jsx)(e.span,{className:"line",children:" "}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"mReactInstanceManager = ReactInstanceManager"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:"."}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"builder()"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// ...各种setter,但注意不要调用setBundleAssetName"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:"."}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"setJSBundleFile(UpdateContext"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:"."}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:'getBundleUrl(mContext, "assets:'}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:'//index.android.bundle"))'})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:"."}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"build()"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"UpdateContext"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:"."}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"setCustomInstanceManager"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"(mReactInstanceManager);"})]})]})})]})}e.default=(0,r.j)({MDXContent:function(){let s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:e}=Object.assign({},(0,o.a)(),s.components);return e?(0,l.jsx)(e,{...s,children:(0,l.jsx)(c,{...s})}):c(s)},pageOpts:{filePath:"pages/docs/api.md",route:"/docs/api",frontMatter:{order:11,title:"API参考",type:"开发指南"},title:"API参考",headings:i},pageNextRoute:"/docs/api"})}},function(s){s.O(0,[909,888,774,179],function(){return s(s.s=38158)}),_N_E=s.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/docs/bestpractice-cbecc9344854c4e5.js b/_next/static/chunks/pages/docs/bestpractice-37cb82ea8216a9bf.js similarity index 97% rename from _next/static/chunks/pages/docs/bestpractice-cbecc9344854c4e5.js rename to _next/static/chunks/pages/docs/bestpractice-37cb82ea8216a9bf.js index e824ae1..97d88a9 100644 --- a/_next/static/chunks/pages/docs/bestpractice-cbecc9344854c4e5.js +++ b/_next/static/chunks/pages/docs/bestpractice-37cb82ea8216a9bf.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[904],{55486:function(e,s,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/docs/bestpractice",function(){return n(76936)}])},76936:function(e,s,n){"use strict";n.r(s),n.d(s,{__toc:function(){return o},default:function(){return h}});var l=n(11527),r=n(38567),i=n(87088),a={src:"/_next/static/media/exportipa.91920cd4.png",height:518,width:952,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAYAAACzzX7wAAAAZElEQVR4nDWM0QmAMAxELw20CDqAKLj/RA6gOIJNC2mMFe/rePc40manSF0IajFGyveNWgrGaUJgBpnZISJrCKEx8yeIIKWEOAxduHLOMzwv9A5VBRHBH7uwO9jMrPqLc+rjnwerazS2i5etmgAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:4},c={src:"/_next/static/media/aab.802620a4.png",height:784,width:1093,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAGCAIAAABxZ0isAAAAYElEQVR42iWMSQ7DMAwD9f+/tkUdy9pIJ1EyBwJcQDEzAMecn+9vqtqNVySkC3Kt5W54qAJIeX3vPAv7haT8h0b21TIvsOOzkTHDk67KzF11K8y2u0Q4CR0jzc6nYAQjLgg+jErxGaFWAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:6};let o=[{depth:4,value:"优化原生和热更包体积",id:"优化原生和热更包体积"},{depth:5,value:"iOS 原生包优化(ipa)",id:"ios-原生包优化ipa"},{depth:5,value:"Android 原生包优化(apk)",id:"android-原生包优化apk"},{depth:5,value:"热更新包优化(ppk)",id:"热更新包优化ppk"},{depth:4,value:"有很多渠道包需要热更,如何操作比较方便?",id:"有很多渠道包需要热更如何操作比较方便"},{depth:4,value:"如何支持 aab 格式的原生包?",id:"如何支持-aab-格式的原生包"},{depth:4,value:"CI 的集成",id:"ci-的集成"},{depth:4,value:"测试、发布与回滚",id:"测试发布与回滚"},{depth:4,value:"元信息(Meta Info)的使用",id:"元信息meta-info的使用"}];function t(e){let s=Object.assign({h4:"h4",h5:"h5",p:"p",img:"img",ul:"ul",li:"li",a:"a",code:"code",pre:"pre",span:"span",ol:"ol",strong:"strong",blockquote:"blockquote"},(0,i.a)(),e.components);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(s.h4,{id:"优化原生和热更包体积",children:"优化原生和热更包体积"}),"\n",(0,l.jsx)(s.h5,{id:"ios-原生包优化ipa",children:"iOS 原生包优化(ipa)"}),"\n",(0,l.jsx)(s.p,{children:"对于同一份 archive(其版本号、编译时间和内置 bundle 已固定,不会受导出方式所影响),可以用不同选项多次导出 ipa,选择其中最小的上传到 pushy 服务器作为热更基准包。"}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.img,{alt:"bitcode",placeholder:"blur",src:a})}),"\n",(0,l.jsx)(s.h5,{id:"android-原生包优化apk",children:"Android 原生包优化(apk)"}),"\n",(0,l.jsx)(s.p,{children:"apk 的优化主要考虑两个方向:"}),"\n",(0,l.jsxs)(s.ul,{children:["\n",(0,l.jsxs)(s.li,{children:[(0,l.jsx)(s.a,{href:"https://reactnative.cn/docs/signed-apk-android#%E5%90%AF%E7%94%A8proguard%E6%9D%A5%E5%87%8F%E5%B0%91apk%E7%9A%84%E5%A4%A7%E5%B0%8F%EF%BC%88%E5%8F%AF%E9%80%89%EF%BC%89",children:"启用 proguard 压缩混淆源码"}),"。但这一步可能导致一些使用反射的代码运行时报错,启用后需要充分测试每个页面和功能,以及需要阅读一些第三方关于 proguard 的特别设置说明。"]}),"\n",(0,l.jsxs)(s.li,{children:[(0,l.jsx)(s.a,{href:"https://reactnative.cn/docs/signed-apk-android#%E9%92%88%E5%AF%B9%E4%B8%8D%E5%90%8C%E7%9A%84-cpu-%E6%9E%B6%E6%9E%84%E7%94%9F%E6%88%90-apk-%E4%BB%A5%E5%87%8F%E5%B0%8F-apk-%E6%96%87%E4%BB%B6%E7%9A%84%E5%A4%A7%E5%B0%8F",children:"分开编译不同的 cpu 架构"}),"。找到",(0,l.jsx)(s.code,{children:"android/app/build.gradle"}),"中的 cpu 架构部分,如下所示启用",(0,l.jsx)(s.code,{children:"enable"}),"选项:"]}),"\n"]}),"\n",(0,l.jsx)(s.pre,{"data-language":"diff","data-theme":"default",children:(0,l.jsxs)(s.code,{"data-language":"diff","data-theme":"default",children:[(0,l.jsx)(s.span,{className:"line",children:(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"splits {"})}),"\n",(0,l.jsx)(s.span,{className:"line",children:(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" abi {"})}),"\n",(0,l.jsx)(s.span,{className:"line",children:(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" reset()"})}),"\n",(0,l.jsx)(s.span,{className:"line",children:(0,l.jsx)(s.span,{style:{color:"#EF6270"},children:"- enable enableSeparateBuildPerCPUArchitecture"})}),"\n",(0,l.jsx)(s.span,{className:"line",children:(0,l.jsx)(s.span,{style:{color:"#4BB74A"},children:"+ enable true // 启用单独的 cpu 架构编译"})}),"\n",(0,l.jsx)(s.span,{className:"line",children:(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" universalApk false // If true, also generate a universal APK"})}),"\n",(0,l.jsx)(s.span,{className:"line",children:(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,l.jsx)(s.span,{className:"line",children:(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"}"})})]})}),"\n",(0,l.jsxs)(s.p,{children:["如此一来会在编译目录中输出多个 apk 文件,分发和上传到热更新服务时只需要使用",(0,l.jsx)(s.code,{children:"app-arm64-v8a-release.apk"}),"文件,可以大幅减小 apk 的大小。"]}),"\n",(0,l.jsx)(s.h5,{id:"热更新包优化ppk",children:"热更新包优化(ppk)"}),"\n",(0,l.jsx)(s.p,{children:"热更新包的主要内容是 js 包和其所引用的静态资源(主要是图片)。"}),"\n",(0,l.jsxs)(s.ul,{children:["\n",(0,l.jsxs)(s.li,{children:["js 包成分分析。可以借助一些第三方工具(如",(0,l.jsx)(s.a,{href:"https://github.com/IjzerenHein/react-native-bundle-visualizer",children:"react-native-bundle-visualizer"}),")来分析 js 文件中哪些占比较大,是否可以用其他库替换等(如 dayjs 替换 moment,lodash-es 替换 lodash)。"]}),"\n",(0,l.jsxs)(s.li,{children:["图片优化。\n",(0,l.jsxs)(s.ul,{children:["\n",(0,l.jsx)(s.li,{children:"在保证体验的情况下,使用一些工具对图片进行裁剪压缩。"}),"\n",(0,l.jsx)(s.li,{children:"如不需要图片的透明像素,可以考虑将 png 格式转为 jpg 格式。"}),"\n",(0,l.jsxs)(s.li,{children:["还可以进一步考虑压缩比更高的图片格式,例如 webp 格式(需要第三方原生插件例如",(0,l.jsx)(s.a,{href:"https://github.com/Aleksefo/react-native-webp-format#readme",children:"react-native-webp-format"}),"),heif 格式(iOS 11 和 Android 10 以上原生支持)等。这里有个图片格式对比可供参考 ",(0,l.jsx)(s.a,{href:"https://compare.rokka.io/_compare/#heif=40&jpeg=80&webp=80&av1=40&width=800",children:"https://compare.rokka.io/_compare/#heif=40&jpeg=80&webp=80&av1=40&width=800"}),"。"]}),"\n"]}),"\n"]}),"\n"]}),"\n",(0,l.jsx)(s.h4,{id:"有很多渠道包需要热更如何操作比较方便",children:"有很多渠道包需要热更,如何操作比较方便?"}),"\n",(0,l.jsxs)(s.ol,{children:["\n",(0,l.jsxs)(s.li,{children:["如果渠道包的",(0,l.jsx)(s.code,{children:"js代码和初始资源"}),"有差别(无论多么细微的差别都会生成不同的 jsbundle),那么只能单独生成 apk,分别上传和绑定。可以考虑写一些脚本自动调用 cli 来执行批量操作。"]}),"\n",(0,l.jsxs)(s.li,{children:["如果渠道包的",(0,l.jsx)(s.code,{children:"js代码和初始资源"}),"完全一致,可以考虑使用",(0,l.jsx)(s.a,{href:"https://developer.android.com/studio/build/build-variants?hl=zh-cn",children:"Flavor 构建"}),",或其他一些动态生成渠道包的方案(比如",(0,l.jsx)(s.a,{href:"https://github.com/Tencent/VasDolly",children:"腾讯的 VasDolly"}),",",(0,l.jsx)(s.a,{href:"https://github.com/Meituan-Dianping/walle",children:"美团的 walle"}),"等),这样所有的渠道包基于同一个基础 apk 生成(因而会有相同的编译时间戳和 jsbundle)。这样可以只用上传一个基础 apk,对此 apk 的热更操作可以对所有渠道包生效。"]}),"\n",(0,l.jsxs)(s.li,{children:["如果您是",(0,l.jsx)(s.code,{children:"高级版"}),"或",(0,l.jsx)(s.code,{children:"专业版"}),"客户,也可以考虑在管理后台的应用设置中启用",(0,l.jsx)(s.code,{children:"忽略编译时间戳"}),"。此选项仅对比版本号,不校验时间戳,可提供更宽容的热更策略,但可能消耗更多流量。"]}),"\n"]}),"\n",(0,l.jsx)(s.h4,{id:"如何支持-aab-格式的原生包",children:"如何支持 aab 格式的原生包?"}),"\n",(0,l.jsx)(s.p,{children:"如果您需要使用 aab 格式的 android 原生包,那么可以在上传到 Google play 之后,在其控制台中下载转换后的 apk 格式(见下图),然后将这个 apk 包上传到热更新的后台,即可正常支持热更新。"}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.img,{alt:"aab",placeholder:"blur",src:c})}),"\n",(0,l.jsx)(s.h4,{id:"ci-的集成",children:"CI 的集成"}),"\n",(0,l.jsx)(s.p,{children:"在开发环境中,每次 bundle 都会生成一个不同名字的 ppk 文件,这不利于持续集成(CI)系统的引入。"}),"\n",(0,l.jsxs)(s.p,{children:["要解决这个问题,你可以使用",(0,l.jsx)(s.code,{children:"--output"}),"参数来指定输出 ppk 文件的名字和路径,便于进行自动发布。"]}),"\n",(0,l.jsx)(s.h4,{id:"测试发布与回滚",children:"测试、发布与回滚"}),"\n",(0,l.jsxs)(s.p,{children:["我们强烈建议您先发布一个",(0,l.jsx)(s.strong,{children:"测试包"}),",再发布一个除了版本号以外均完全相同的",(0,l.jsx)(s.strong,{children:"正式包"}),"。"]}),"\n",(0,l.jsxs)(s.p,{children:["例如,假设我们有一个正式包,版本为",(0,l.jsx)(s.code,{children:"1.6.0"}),",那么可以修改版本号重新打包一个",(0,l.jsx)(s.code,{children:"1001.6.0"}),",以一个明显不太正常的版本号来标识它是一个测试版本,同时后几位相同,可以表明它和某个正式版本存在关联(内容/依赖一致)。"]}),"\n",(0,l.jsxs)(s.p,{children:["在每次往发布包发起热更新之前,先对",(0,l.jsx)(s.strong,{children:"测试包"}),(0,l.jsx)(s.code,{children:"1001.6.0"}),"进行更新操作,基本测试通过之后,再在网页后台上将热更包重新绑定到",(0,l.jsx)(s.strong,{children:"正式包"}),(0,l.jsx)(s.code,{children:"1.6.0"}),"上。如果在测试包中发现了重大问题,你就可以先进行修复,更新测试确认通过后再部署到正式线上环境。这样,可以最大程度的避免发生线上事故。"]}),"\n",(0,l.jsx)(s.p,{children:"万一确实发生线上事故需要回滚的话,首先利用版本控制系统回滚代码到正常的状态,然后重新生成热更包并推送即可。"}),"\n",(0,l.jsx)(s.h4,{id:"元信息meta-info的使用",children:"元信息(Meta Info)的使用"}),"\n",(0,l.jsxs)(s.p,{children:["在发布热更新版本时,或者在网页端,你可以编辑版本的元信息。这是一段在检查更新时可以获得的字符串,你可以在其中按你所想的格式(一般建议用",(0,l.jsx)(s.a,{href:"https://developer.mozilla.org/zh-CN/docs/Learn/JavaScript/Objects/JSON",children:"JSON 格式"}),")保存一些信息。"]}),"\n",(0,l.jsxs)(s.p,{children:["比如我们可以在元信息中约定字段标志",(0,l.jsx)(s.code,{children:"silent"}),",表示需要静默更新。当我们上传热更包填写 metainfo 时,以",(0,l.jsx)(s.a,{href:"https://developer.mozilla.org/zh-CN/docs/Learn/JavaScript/Objects/JSON",children:"JSON 格式"}),"输入:"]}),"\n",(0,l.jsx)(s.pre,{"data-language":"json","data-theme":"default",children:(0,l.jsx)(s.code,{"data-language":"json","data-theme":"default",children:(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"{ "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:'"silent"'}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"true"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" }"})]})})}),"\n",(0,l.jsxs)(s.blockquote,{children:["\n",(0,l.jsx)(s.p,{children:"请注意,我们并不对输入做任何格式校验和约束,请自行校验输入是否正确。"}),"\n"]}),"\n",(0,l.jsxs)(s.p,{children:["此时在客户端检查更新时,能获取到我们刚刚输入的元信息,但它并不具备任何功能,只是一个字符串而已。所以我们其实需要",(0,l.jsx)(s.strong,{children:"预先"}),"在更新流程中加入对应的处理逻辑:"]}),"\n",(0,l.jsx)(s.pre,{"data-language":"js","data-theme":"default",children:(0,l.jsxs)(s.code,{"data-language":"js","data-theme":"default",children:[(0,l.jsx)(s.span,{className:"line",children:(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"// 调用 checkUpdate 获取 updateInfo"})}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"if"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"updateInfo"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:".expired) {"})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"// ... 原生包版本过期,下载或跳转下载页面"})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"} "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"else"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"if"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"updateInfo"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:".upToDate) {"})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"// ... 没有更新,弹提示或忽略"})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"} "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"else"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"// 有更新,一般来说我们在这里给用户弹窗提示,让用户选择是否更新"})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"// 那么静默更新的本质其实就是不弹窗,直接执行,所以可以在这里加入额外的判断流程"})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"// ..."})]}),"\n",(0,l.jsx)(s.span,{className:"line",children:(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"}"})})]})}),"\n",(0,l.jsx)(s.p,{children:"我们在原有的更新流程中加入元信息的读取和判断:"}),"\n",(0,l.jsx)(s.pre,{"data-language":"js","data-theme":"default",children:(0,l.jsxs)(s.code,{"data-language":"js","data-theme":"default",children:[(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"let"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" metaInfo "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" {};"})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"try"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"// 注意 JSON 输入有可能有错误,需要用 try 语句来避免应用被带崩"})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" metaInfo "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"JSON"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:".parse"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"updateInfo"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:".metaInfo);"})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"} "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"catch"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" (e) {"})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"// 异常处理,忽略或上报?"})]}),"\n",(0,l.jsx)(s.span,{className:"line",children:(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"}"})}),"\n",(0,l.jsx)(s.span,{className:"line",children:" "}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"if"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"metaInfo"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:".silent) {"})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"// 如果热更包携带有 silent 字段,不询问用户,直接执行更新"})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"switchVersion"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"();"})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"} "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"else"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"// 否则还是走之前的询问流程"})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"// Alert.alert('提示', '检查到新的版本......."})]}),"\n",(0,l.jsx)(s.span,{className:"line",children:(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"}"})})]})}),"\n",(0,l.jsx)(s.p,{children:"又比如,可能某个版本包含一些重要的公告内容,所以还可以在上面插入一个公告字段等等。如何使用元信息,完全取决于您的想象力!"})]})}var h=(0,r.j)({MDXContent:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:s}=Object.assign({},(0,i.a)(),e.components);return s?(0,l.jsx)(s,{...e,children:(0,l.jsx)(t,{...e})}):t(e)},pageOpts:{filePath:"pages/docs/bestpractice.md",route:"/docs/bestpractice",frontMatter:{order:13,title:"场景实践",type:"开发指南"},title:"场景实践",headings:o},pageNextRoute:"/docs/bestpractice"})}},function(e){e.O(0,[567,888,774,179],function(){return e(e.s=55486)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[904],{69333:function(e,s,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/docs/bestpractice",function(){return n(59948)}])},59948:function(e,s,n){"use strict";n.r(s),n.d(s,{__toc:function(){return o},default:function(){return h}});var l=n(11527),r=n(86909),i=n(59087),a={src:"/_next/static/media/exportipa.91920cd4.png",height:518,width:952,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAYAAACzzX7wAAAAZElEQVR4nDWM0QmAMAxELw20CDqAKLj/RA6gOIJNC2mMFe/rePc40manSF0IajFGyveNWgrGaUJgBpnZISJrCKEx8yeIIKWEOAxduHLOMzwv9A5VBRHBH7uwO9jMrPqLc+rjnwerazS2i5etmgAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:4},c={src:"/_next/static/media/aab.802620a4.png",height:784,width:1093,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAGCAIAAABxZ0isAAAAYElEQVR42iWMSQ7DMAwD9f+/tkUdy9pIJ1EyBwJcQDEzAMecn+9vqtqNVySkC3Kt5W54qAJIeX3vPAv7haT8h0b21TIvsOOzkTHDk67KzF11K8y2u0Q4CR0jzc6nYAQjLgg+jErxGaFWAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:6};let o=[{depth:4,value:"优化原生和热更包体积",id:"优化原生和热更包体积"},{depth:5,value:"iOS 原生包优化(ipa)",id:"ios-原生包优化ipa"},{depth:5,value:"Android 原生包优化(apk)",id:"android-原生包优化apk"},{depth:5,value:"热更新包优化(ppk)",id:"热更新包优化ppk"},{depth:4,value:"有很多渠道包需要热更,如何操作比较方便?",id:"有很多渠道包需要热更如何操作比较方便"},{depth:4,value:"如何支持 aab 格式的原生包?",id:"如何支持-aab-格式的原生包"},{depth:4,value:"CI 的集成",id:"ci-的集成"},{depth:4,value:"测试、发布与回滚",id:"测试发布与回滚"},{depth:4,value:"元信息(Meta Info)的使用",id:"元信息meta-info的使用"}];function t(e){let s=Object.assign({h4:"h4",h5:"h5",p:"p",img:"img",ul:"ul",li:"li",a:"a",code:"code",pre:"pre",span:"span",ol:"ol",strong:"strong",blockquote:"blockquote"},(0,i.a)(),e.components);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(s.h4,{id:"优化原生和热更包体积",children:"优化原生和热更包体积"}),"\n",(0,l.jsx)(s.h5,{id:"ios-原生包优化ipa",children:"iOS 原生包优化(ipa)"}),"\n",(0,l.jsx)(s.p,{children:"对于同一份 archive(其版本号、编译时间和内置 bundle 已固定,不会受导出方式所影响),可以用不同选项多次导出 ipa,选择其中最小的上传到 pushy 服务器作为热更基准包。"}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.img,{alt:"bitcode",placeholder:"blur",src:a})}),"\n",(0,l.jsx)(s.h5,{id:"android-原生包优化apk",children:"Android 原生包优化(apk)"}),"\n",(0,l.jsx)(s.p,{children:"apk 的优化主要考虑两个方向:"}),"\n",(0,l.jsxs)(s.ul,{children:["\n",(0,l.jsxs)(s.li,{children:[(0,l.jsx)(s.a,{href:"https://reactnative.cn/docs/signed-apk-android#%E5%90%AF%E7%94%A8proguard%E6%9D%A5%E5%87%8F%E5%B0%91apk%E7%9A%84%E5%A4%A7%E5%B0%8F%EF%BC%88%E5%8F%AF%E9%80%89%EF%BC%89",children:"启用 proguard 压缩混淆源码"}),"。但这一步可能导致一些使用反射的代码运行时报错,启用后需要充分测试每个页面和功能,以及需要阅读一些第三方关于 proguard 的特别设置说明。"]}),"\n",(0,l.jsxs)(s.li,{children:[(0,l.jsx)(s.a,{href:"https://reactnative.cn/docs/signed-apk-android#%E9%92%88%E5%AF%B9%E4%B8%8D%E5%90%8C%E7%9A%84-cpu-%E6%9E%B6%E6%9E%84%E7%94%9F%E6%88%90-apk-%E4%BB%A5%E5%87%8F%E5%B0%8F-apk-%E6%96%87%E4%BB%B6%E7%9A%84%E5%A4%A7%E5%B0%8F",children:"分开编译不同的 cpu 架构"}),"。找到",(0,l.jsx)(s.code,{children:"android/app/build.gradle"}),"中的 cpu 架构部分,如下所示启用",(0,l.jsx)(s.code,{children:"enable"}),"选项:"]}),"\n"]}),"\n",(0,l.jsx)(s.pre,{"data-language":"diff","data-theme":"default",children:(0,l.jsxs)(s.code,{"data-language":"diff","data-theme":"default",children:[(0,l.jsx)(s.span,{className:"line",children:(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"splits {"})}),"\n",(0,l.jsx)(s.span,{className:"line",children:(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" abi {"})}),"\n",(0,l.jsx)(s.span,{className:"line",children:(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" reset()"})}),"\n",(0,l.jsx)(s.span,{className:"line",children:(0,l.jsx)(s.span,{style:{color:"#EF6270"},children:"- enable enableSeparateBuildPerCPUArchitecture"})}),"\n",(0,l.jsx)(s.span,{className:"line",children:(0,l.jsx)(s.span,{style:{color:"#4BB74A"},children:"+ enable true // 启用单独的 cpu 架构编译"})}),"\n",(0,l.jsx)(s.span,{className:"line",children:(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" universalApk false // If true, also generate a universal APK"})}),"\n",(0,l.jsx)(s.span,{className:"line",children:(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,l.jsx)(s.span,{className:"line",children:(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"}"})})]})}),"\n",(0,l.jsxs)(s.p,{children:["如此一来会在编译目录中输出多个 apk 文件,分发和上传到热更新服务时只需要使用",(0,l.jsx)(s.code,{children:"app-arm64-v8a-release.apk"}),"文件,可以大幅减小 apk 的大小。"]}),"\n",(0,l.jsx)(s.h5,{id:"热更新包优化ppk",children:"热更新包优化(ppk)"}),"\n",(0,l.jsx)(s.p,{children:"热更新包的主要内容是 js 包和其所引用的静态资源(主要是图片)。"}),"\n",(0,l.jsxs)(s.ul,{children:["\n",(0,l.jsxs)(s.li,{children:["js 包成分分析。可以借助一些第三方工具(如",(0,l.jsx)(s.a,{href:"https://github.com/IjzerenHein/react-native-bundle-visualizer",children:"react-native-bundle-visualizer"}),")来分析 js 文件中哪些占比较大,是否可以用其他库替换等(如 dayjs 替换 moment,lodash-es 替换 lodash)。"]}),"\n",(0,l.jsxs)(s.li,{children:["图片优化。\n",(0,l.jsxs)(s.ul,{children:["\n",(0,l.jsx)(s.li,{children:"在保证体验的情况下,使用一些工具对图片进行裁剪压缩。"}),"\n",(0,l.jsx)(s.li,{children:"如不需要图片的透明像素,可以考虑将 png 格式转为 jpg 格式。"}),"\n",(0,l.jsxs)(s.li,{children:["还可以进一步考虑压缩比更高的图片格式,例如 webp 格式(需要第三方原生插件例如",(0,l.jsx)(s.a,{href:"https://github.com/Aleksefo/react-native-webp-format#readme",children:"react-native-webp-format"}),"),heif 格式(iOS 11 和 Android 10 以上原生支持)等。这里有个图片格式对比可供参考 ",(0,l.jsx)(s.a,{href:"https://compare.rokka.io/_compare/#heif=40&jpeg=80&webp=80&av1=40&width=800",children:"https://compare.rokka.io/_compare/#heif=40&jpeg=80&webp=80&av1=40&width=800"}),"。"]}),"\n"]}),"\n"]}),"\n"]}),"\n",(0,l.jsx)(s.h4,{id:"有很多渠道包需要热更如何操作比较方便",children:"有很多渠道包需要热更,如何操作比较方便?"}),"\n",(0,l.jsxs)(s.ol,{children:["\n",(0,l.jsxs)(s.li,{children:["如果渠道包的",(0,l.jsx)(s.code,{children:"js代码和初始资源"}),"有差别(无论多么细微的差别都会生成不同的 jsbundle),那么只能单独生成 apk,分别上传和绑定。可以考虑写一些脚本自动调用 cli 来执行批量操作。"]}),"\n",(0,l.jsxs)(s.li,{children:["如果渠道包的",(0,l.jsx)(s.code,{children:"js代码和初始资源"}),"完全一致,可以考虑使用",(0,l.jsx)(s.a,{href:"https://developer.android.com/studio/build/build-variants?hl=zh-cn",children:"Flavor 构建"}),",或其他一些动态生成渠道包的方案(比如",(0,l.jsx)(s.a,{href:"https://github.com/Tencent/VasDolly",children:"腾讯的 VasDolly"}),",",(0,l.jsx)(s.a,{href:"https://github.com/Meituan-Dianping/walle",children:"美团的 walle"}),"等),这样所有的渠道包基于同一个基础 apk 生成(因而会有相同的编译时间戳和 jsbundle)。这样可以只用上传一个基础 apk,对此 apk 的热更操作可以对所有渠道包生效。"]}),"\n",(0,l.jsxs)(s.li,{children:["如果您是",(0,l.jsx)(s.code,{children:"高级版"}),"或",(0,l.jsx)(s.code,{children:"专业版"}),"客户,也可以考虑在管理后台的应用设置中启用",(0,l.jsx)(s.code,{children:"忽略编译时间戳"}),"。此选项仅对比版本号,不校验时间戳,可提供更宽容的热更策略,但可能消耗更多流量。"]}),"\n"]}),"\n",(0,l.jsx)(s.h4,{id:"如何支持-aab-格式的原生包",children:"如何支持 aab 格式的原生包?"}),"\n",(0,l.jsx)(s.p,{children:"如果您需要使用 aab 格式的 android 原生包,那么可以在上传到 Google play 之后,在其控制台中下载转换后的 apk 格式(见下图),然后将这个 apk 包上传到热更新的后台,即可正常支持热更新。"}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.img,{alt:"aab",placeholder:"blur",src:c})}),"\n",(0,l.jsx)(s.h4,{id:"ci-的集成",children:"CI 的集成"}),"\n",(0,l.jsx)(s.p,{children:"在开发环境中,每次 bundle 都会生成一个不同名字的 ppk 文件,这不利于持续集成(CI)系统的引入。"}),"\n",(0,l.jsxs)(s.p,{children:["要解决这个问题,你可以使用",(0,l.jsx)(s.code,{children:"--output"}),"参数来指定输出 ppk 文件的名字和路径,便于进行自动发布。"]}),"\n",(0,l.jsx)(s.h4,{id:"测试发布与回滚",children:"测试、发布与回滚"}),"\n",(0,l.jsxs)(s.p,{children:["我们强烈建议您先发布一个",(0,l.jsx)(s.strong,{children:"测试包"}),",再发布一个除了版本号以外均完全相同的",(0,l.jsx)(s.strong,{children:"正式包"}),"。"]}),"\n",(0,l.jsxs)(s.p,{children:["例如,假设我们有一个正式包,版本为",(0,l.jsx)(s.code,{children:"1.6.0"}),",那么可以修改版本号重新打包一个",(0,l.jsx)(s.code,{children:"1001.6.0"}),",以一个明显不太正常的版本号来标识它是一个测试版本,同时后几位相同,可以表明它和某个正式版本存在关联(内容/依赖一致)。"]}),"\n",(0,l.jsxs)(s.p,{children:["在每次往发布包发起热更新之前,先对",(0,l.jsx)(s.strong,{children:"测试包"}),(0,l.jsx)(s.code,{children:"1001.6.0"}),"进行更新操作,基本测试通过之后,再在网页后台上将热更包重新绑定到",(0,l.jsx)(s.strong,{children:"正式包"}),(0,l.jsx)(s.code,{children:"1.6.0"}),"上。如果在测试包中发现了重大问题,你就可以先进行修复,更新测试确认通过后再部署到正式线上环境。这样,可以最大程度的避免发生线上事故。"]}),"\n",(0,l.jsx)(s.p,{children:"万一确实发生线上事故需要回滚的话,首先利用版本控制系统回滚代码到正常的状态,然后重新生成热更包并推送即可。"}),"\n",(0,l.jsx)(s.h4,{id:"元信息meta-info的使用",children:"元信息(Meta Info)的使用"}),"\n",(0,l.jsxs)(s.p,{children:["在发布热更新版本时,或者在网页端,你可以编辑版本的元信息。这是一段在检查更新时可以获得的字符串,你可以在其中按你所想的格式(一般建议用",(0,l.jsx)(s.a,{href:"https://developer.mozilla.org/zh-CN/docs/Learn/JavaScript/Objects/JSON",children:"JSON 格式"}),")保存一些信息。"]}),"\n",(0,l.jsxs)(s.p,{children:["比如我们可以在元信息中约定字段标志",(0,l.jsx)(s.code,{children:"silent"}),",表示需要静默更新。当我们上传热更包填写 metainfo 时,以",(0,l.jsx)(s.a,{href:"https://developer.mozilla.org/zh-CN/docs/Learn/JavaScript/Objects/JSON",children:"JSON 格式"}),"输入:"]}),"\n",(0,l.jsx)(s.pre,{"data-language":"json","data-theme":"default",children:(0,l.jsx)(s.code,{"data-language":"json","data-theme":"default",children:(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"{ "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:'"silent"'}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"true"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" }"})]})})}),"\n",(0,l.jsxs)(s.blockquote,{children:["\n",(0,l.jsx)(s.p,{children:"请注意,我们并不对输入做任何格式校验和约束,请自行校验输入是否正确。"}),"\n"]}),"\n",(0,l.jsxs)(s.p,{children:["此时在客户端检查更新时,能获取到我们刚刚输入的元信息,但它并不具备任何功能,只是一个字符串而已。所以我们其实需要",(0,l.jsx)(s.strong,{children:"预先"}),"在更新流程中加入对应的处理逻辑:"]}),"\n",(0,l.jsx)(s.pre,{"data-language":"js","data-theme":"default",children:(0,l.jsxs)(s.code,{"data-language":"js","data-theme":"default",children:[(0,l.jsx)(s.span,{className:"line",children:(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"// 调用 checkUpdate 获取 updateInfo"})}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"if"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"updateInfo"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:".expired) {"})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"// ... 原生包版本过期,下载或跳转下载页面"})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"} "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"else"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"if"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"updateInfo"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:".upToDate) {"})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"// ... 没有更新,弹提示或忽略"})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"} "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"else"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"// 有更新,一般来说我们在这里给用户弹窗提示,让用户选择是否更新"})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"// 那么静默更新的本质其实就是不弹窗,直接执行,所以可以在这里加入额外的判断流程"})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"// ..."})]}),"\n",(0,l.jsx)(s.span,{className:"line",children:(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"}"})})]})}),"\n",(0,l.jsx)(s.p,{children:"我们在原有的更新流程中加入元信息的读取和判断:"}),"\n",(0,l.jsx)(s.pre,{"data-language":"js","data-theme":"default",children:(0,l.jsxs)(s.code,{"data-language":"js","data-theme":"default",children:[(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"let"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" metaInfo "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" {};"})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"try"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"// 注意 JSON 输入有可能有错误,需要用 try 语句来避免应用被带崩"})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" metaInfo "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"JSON"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:".parse"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"updateInfo"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:".metaInfo);"})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"} "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"catch"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" (e) {"})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"// 异常处理,忽略或上报?"})]}),"\n",(0,l.jsx)(s.span,{className:"line",children:(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"}"})}),"\n",(0,l.jsx)(s.span,{className:"line",children:" "}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"if"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"metaInfo"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:".silent) {"})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"// 如果热更包携带有 silent 字段,不询问用户,直接执行更新"})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"switchVersion"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"();"})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"} "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"else"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"// 否则还是走之前的询问流程"})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:"// Alert.alert('提示', '检查到新的版本......."})]}),"\n",(0,l.jsx)(s.span,{className:"line",children:(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"}"})})]})}),"\n",(0,l.jsx)(s.p,{children:"又比如,可能某个版本包含一些重要的公告内容,所以还可以在上面插入一个公告字段等等。如何使用元信息,完全取决于您的想象力!"})]})}var h=(0,r.j)({MDXContent:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:s}=Object.assign({},(0,i.a)(),e.components);return s?(0,l.jsx)(s,{...e,children:(0,l.jsx)(t,{...e})}):t(e)},pageOpts:{filePath:"pages/docs/bestpractice.md",route:"/docs/bestpractice",frontMatter:{order:13,title:"场景实践",type:"开发指南"},title:"场景实践",headings:o},pageNextRoute:"/docs/bestpractice"})}},function(e){e.O(0,[909,888,774,179],function(){return e(e.s=69333)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/docs/changelog-d86404f06d64ab0e.js b/_next/static/chunks/pages/docs/changelog-9b9767cc5dc714b8.js similarity index 96% rename from _next/static/chunks/pages/docs/changelog-d86404f06d64ab0e.js rename to _next/static/chunks/pages/docs/changelog-9b9767cc5dc714b8.js index 366165d..a38b2cb 100644 --- a/_next/static/chunks/pages/docs/changelog-d86404f06d64ab0e.js +++ b/_next/static/chunks/pages/docs/changelog-9b9767cc5dc714b8.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[873],{57410:function(n,i,d){(window.__NEXT_P=window.__NEXT_P||[]).push(["/docs/changelog",function(){return d(62406)}])},62406:function(n,i,d){"use strict";d.r(i),d.d(i,{__toc:function(){return s}});var e=d(11527),l=d(38567),h=d(87088);let s=[{depth:3,value:"10.5.4(2024-04-23)",id:"10542024-04-23"},{depth:3,value:"10.4.2(2024-04-22)",id:"10422024-04-22"},{depth:3,value:"10.1.0(2024-02-24)",id:"10102024-02-24"},{depth:3,value:"9.0.0(2023-09-02)",id:"9002023-09-02"},{depth:3,value:"8.0.1(2022-07-05)",id:"8012022-07-05"},{depth:3,value:"7.4.1(2022-05-04)",id:"7412022-05-04"},{depth:3,value:"7.3.4(2021-11-04)",id:"7342021-11-04"},{depth:3,value:"6.4.0(2021-10-06)",id:"6402021-10-06"},{depth:3,value:"6.3.0(2021-10-04)",id:"6302021-10-04"},{depth:3,value:"6.2.0(2021-08-13)",id:"6202021-08-13"},{depth:3,value:"6.1.0(2021-07-29)",id:"6102021-07-29"},{depth:3,value:"6.0.2(2021-05-18)",id:"6022021-05-18"},{depth:3,value:"6.0.0(2021-05-04)",id:"6002021-05-04"},{depth:3,value:"5.10.0(2020-12-18)",id:"51002020-12-18"},{depth:3,value:"5.9.0(2020-09-27)",id:"5902020-09-27"},{depth:3,value:"5.8.3(2020-09-24)",id:"5832020-09-24"},{depth:3,value:"5.7.0(2020-08-13)",id:"5702020-08-13"},{depth:3,value:"5.6.0(2020-05-26)",id:"5602020-05-26"},{depth:3,value:"5.5.9 (2020-04-14)",id:"559-2020-04-14"},{depth:3,value:"5.5.8 (2020-04-02)",id:"558-2020-04-02"},{depth:3,value:"5.5.6 (2020-02-11)",id:"556-2020-02-11"},{depth:3,value:"5.5.5 (2020-01-18)",id:"555-2020-01-18"},{depth:3,value:"5.5.4 (2020-01-13)",id:"554-2020-01-13"},{depth:3,value:"5.5.3 (2019-12-18)",id:"553-2019-12-18"},{depth:3,value:"5.5.2 (2019-12-06)",id:"552-2019-12-06"},{depth:3,value:"5.5.0 (2019-11-24)",id:"550-2019-11-24"},{depth:3,value:"5.4.0 (2019-11-16)",id:"540-2019-11-16"},{depth:3,value:"5.3.2 (2019-10-25)",id:"532-2019-10-25"},{depth:3,value:"5.3.0 (2019-09-19)",id:"530-2019-09-19"},{depth:3,value:"5.2.9 (2019-09-18)",id:"529-2019-09-18"},{depth:3,value:"5.2.8",id:"528"},{depth:3,value:"5.2.7",id:"527"},{depth:3,value:"5.2.4",id:"524"},{depth:3,value:"5.2.2",id:"522"},{depth:3,value:"5.2.1",id:"521"},{depth:3,value:"5.2.0",id:"520"},{depth:3,value:"5.1.9",id:"519"},{depth:3,value:"5.1.8",id:"518"},{depth:3,value:"5.1.6",id:"516"}];function r(n){let i=Object.assign({h3:"h3",ul:"ul",li:"li",code:"code",br:"br"},(0,h.a)(),n.components);return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i.h3,{id:"10542024-04-23",children:"10.5.4(2024-04-23)"}),"\n",(0,e.jsxs)(i.ul,{children:["\n",(0,e.jsx)(i.li,{children:"修复 web 端的兼容问题"}),"\n"]}),"\n",(0,e.jsx)(i.h3,{id:"10422024-04-22",children:"10.4.2(2024-04-22)"}),"\n",(0,e.jsxs)(i.ul,{children:["\n",(0,e.jsx)(i.li,{children:"加入 debug 参数,允许在开发环境中调试热更"}),"\n",(0,e.jsx)(i.li,{children:"热更策略中加入 null 选项,即禁止自动检查,完全手动控制"}),"\n"]}),"\n",(0,e.jsx)(i.h3,{id:"10102024-02-24",children:"10.1.0(2024-02-24)"}),"\n",(0,e.jsxs)(i.ul,{children:["\n",(0,e.jsx)(i.li,{children:"全新设计的 api 接口,全面 hook 化,更易集成和自定义"}),"\n",(0,e.jsx)(i.li,{children:"全面同时支持新老架构和 hermes"}),"\n"]}),"\n",(0,e.jsx)(i.h3,{id:"9002023-09-02",children:"9.0.0(2023-09-02)"}),"\n",(0,e.jsxs)(i.ul,{children:["\n",(0,e.jsx)(i.li,{children:"初步支持新架构"}),"\n",(0,e.jsx)(i.li,{children:"添加事件回调以方便统计"}),"\n"]}),"\n",(0,e.jsx)(i.h3,{id:"8012022-07-05",children:"8.0.1(2022-07-05)"}),"\n",(0,e.jsxs)(i.ul,{children:["\n",(0,e.jsx)(i.li,{children:"没有 update.json 文件的情况下不会再报错"}),"\n"]}),"\n",(0,e.jsx)(i.h3,{id:"7412022-05-04",children:"7.4.1(2022-05-04)"}),"\n",(0,e.jsxs)(i.ul,{children:["\n",(0,e.jsx)(i.li,{children:"修复极少数热更失败的情况"}),"\n"]}),"\n",(0,e.jsx)(i.h3,{id:"7342021-11-04",children:"7.3.4(2021-11-04)"}),"\n",(0,e.jsxs)(i.ul,{children:["\n",(0,e.jsx)(i.li,{children:"新增快速集成方法。"}),"\n",(0,e.jsxs)(i.li,{children:["默认使用 AndroidX 支持库(使用",(0,e.jsx)(i.code,{children:"npx jetify -r"}),"命令转换可以支持老的 support 库)"]}),"\n"]}),"\n",(0,e.jsx)(i.h3,{id:"6402021-10-06",children:"6.4.0(2021-10-06)"}),"\n",(0,e.jsxs)(i.ul,{children:["\n",(0,e.jsxs)(i.li,{children:["新增查看本地版本信息的方法(",(0,e.jsx)(i.code,{children:"getCurrentVersionInfo()"}),")"]}),"\n"]}),"\n",(0,e.jsx)(i.h3,{id:"6302021-10-04",children:"6.3.0(2021-10-04)"}),"\n",(0,e.jsxs)(i.ul,{children:["\n",(0,e.jsx)(i.li,{children:"库文件体积优化"}),"\n"]}),"\n",(0,e.jsx)(i.h3,{id:"6202021-08-13",children:"6.2.0(2021-08-13)"}),"\n",(0,e.jsxs)(i.ul,{children:["\n",(0,e.jsx)(i.li,{children:"修复 android 7 及以下版本可能解压失败的问题"}),"\n"]}),"\n",(0,e.jsx)(i.h3,{id:"6102021-07-29",children:"6.1.0(2021-07-29)"}),"\n",(0,e.jsxs)(i.ul,{children:["\n",(0,e.jsx)(i.li,{children:"修复频繁调用下载更新导致的图片丢失问题"}),"\n"]}),"\n",(0,e.jsx)(i.h3,{id:"6022021-05-18",children:"6.0.2(2021-05-18)"}),"\n",(0,e.jsxs)(i.ul,{children:["\n",(0,e.jsx)(i.li,{children:"修复 android 7 及以下版本安装 apk 报错的问题"}),"\n"]}),"\n",(0,e.jsx)(i.h3,{id:"6002021-05-04",children:"6.0.0(2021-05-04)"}),"\n",(0,e.jsxs)(i.ul,{children:["\n",(0,e.jsx)(i.li,{children:"换用 hdiff 算法,更新所需流量更少,速度更快"}),"\n",(0,e.jsx)(i.li,{children:"修复一些少见的崩溃问题"}),"\n"]}),"\n",(0,e.jsx)(i.h3,{id:"51002020-12-18",children:"5.10.0(2020-12-18)"}),"\n",(0,e.jsxs)(i.ul,{children:["\n",(0,e.jsx)(i.li,{children:"提升 iOS 更新的稳定性"}),"\n"]}),"\n",(0,e.jsx)(i.h3,{id:"5902020-09-27",children:"5.9.0(2020-09-27)"}),"\n",(0,e.jsxs)(i.ul,{children:["\n",(0,e.jsx)(i.li,{children:"可在应用内直接下载安装新版本 apk"}),"\n"]}),"\n",(0,e.jsx)(i.h3,{id:"5832020-09-24",children:"5.8.3(2020-09-24)"}),"\n",(0,e.jsxs)(i.ul,{children:["\n",(0,e.jsx)(i.li,{children:"加入下载进度回调"}),"\n"]}),"\n",(0,e.jsx)(i.h3,{id:"5702020-08-13",children:"5.7.0(2020-08-13)"}),"\n",(0,e.jsxs)(i.ul,{children:["\n",(0,e.jsx)(i.li,{children:"初始化时检查 Android 的 bundle url 是否正确配置"}),"\n"]}),"\n",(0,e.jsx)(i.h3,{id:"5602020-05-26",children:"5.6.0(2020-05-26)"}),"\n",(0,e.jsxs)(i.ul,{children:["\n",(0,e.jsx)(i.li,{children:"修复 iOS 更新偶尔报找不到 app.json 的问题"}),"\n"]}),"\n",(0,e.jsx)(i.h3,{id:"559-2020-04-14",children:"5.5.9 (2020-04-14)"}),"\n",(0,e.jsxs)(i.ul,{children:["\n",(0,e.jsx)(i.li,{children:"修复编译时找不到 generateiOSBuildTime.sh 的问题"}),"\n"]}),"\n",(0,e.jsx)(i.h3,{id:"558-2020-04-02",children:"5.5.8 (2020-04-02)"}),"\n",(0,e.jsxs)(i.ul,{children:["\n",(0,e.jsx)(i.li,{children:"提供 setCustomInstanceManager 方法,方便自己集成 RN 的用户调用"}),"\n"]}),"\n",(0,e.jsx)(i.h3,{id:"556-2020-02-11",children:"5.5.6 (2020-02-11)"}),"\n",(0,e.jsxs)(i.ul,{children:["\n",(0,e.jsx)(i.li,{children:"bundle 时清除缓存"}),"\n",(0,e.jsx)(i.li,{children:"修复更新包过大时可能出现的崩溃"}),"\n",(0,e.jsx)(i.li,{children:"publish 时检查文件格式"}),"\n"]}),"\n",(0,e.jsx)(i.h3,{id:"555-2020-01-18",children:"5.5.5 (2020-01-18)"}),"\n",(0,e.jsxs)(i.ul,{children:["\n",(0,e.jsx)(i.li,{children:"提升服务健壮性"}),"\n"]}),"\n",(0,e.jsx)(i.h3,{id:"554-2020-01-13",children:"5.5.4 (2020-01-13)"}),"\n",(0,e.jsxs)(i.ul,{children:["\n",(0,e.jsx)(i.li,{children:"防止某些情况下安卓找不到 bundle 文件引起的崩溃"}),"\n"]}),"\n",(0,e.jsx)(i.h3,{id:"553-2019-12-18",children:"5.5.3 (2019-12-18)"}),"\n",(0,e.jsxs)(i.ul,{children:["\n",(0,e.jsx)(i.li,{children:"忽略 hermes 的输出避免 buffer 溢出"}),"\n"]}),"\n",(0,e.jsx)(i.h3,{id:"552-2019-12-06",children:"5.5.2 (2019-12-06)"}),"\n",(0,e.jsxs)(i.ul,{children:["\n",(0,e.jsx)(i.li,{children:"修复使用 use_frameworks 时无法读取时间戳的问题"}),"\n"]}),"\n",(0,e.jsx)(i.h3,{id:"550-2019-11-24",children:"5.5.0 (2019-11-24)"}),"\n",(0,e.jsxs)(i.ul,{children:["\n",(0,e.jsx)(i.li,{children:"打包时加入时间戳"}),"\n"]}),"\n",(0,e.jsx)(i.h3,{id:"540-2019-11-16",children:"5.4.0 (2019-11-16)"}),"\n",(0,e.jsxs)(i.ul,{children:["\n",(0,e.jsx)(i.li,{children:"修改类名方法名"}),"\n"]}),"\n",(0,e.jsx)(i.h3,{id:"532-2019-10-25",children:"5.3.2 (2019-10-25)"}),"\n",(0,e.jsxs)(i.ul,{children:["\n",(0,e.jsx)(i.li,{children:"可以禁用 ios 端以避免审核被拒"}),"\n"]}),"\n",(0,e.jsx)(i.h3,{id:"530-2019-09-19",children:"5.3.0 (2019-09-19)"}),"\n",(0,e.jsxs)(i.ul,{children:["\n",(0,e.jsx)(i.li,{children:"替换 apk reader 以避免某些环境读取 apk 版本号报错的问题"}),"\n"]}),"\n",(0,e.jsx)(i.h3,{id:"529-2019-09-18",children:"5.2.9 (2019-09-18)"}),"\n",(0,e.jsxs)(i.ul,{children:["\n",(0,e.jsx)(i.li,{children:"添加 proguard 混淆规则以解决开启混淆后闪退的问题"}),"\n"]}),"\n",(0,e.jsx)(i.h3,{id:"528",children:"5.2.8"}),"\n",(0,e.jsxs)(i.ul,{children:["\n",(0,e.jsx)(i.li,{children:"解决某些情形下 Android 调用 switchVersion 不能重启的问题"}),"\n"]}),"\n",(0,e.jsx)(i.h3,{id:"527",children:"5.2.7"}),"\n",(0,e.jsxs)(i.ul,{children:["\n",(0,e.jsx)(i.li,{children:"改进 windows 端打更新包的兼容性(部分 windows 机器上会产生空 ppk 文件)"}),"\n"]}),"\n",(0,e.jsx)(i.h3,{id:"524",children:"5.2.4"}),"\n",(0,e.jsxs)(i.ul,{children:["\n",(0,e.jsx)(i.li,{children:"支持 RN 0.61 的 hermes(路径变化)"}),"\n",(0,e.jsx)(i.li,{children:"iOS 端使用第三方的 SSZipArchive 以减少重名冲突"}),"\n"]}),"\n",(0,e.jsx)(i.h3,{id:"522",children:"5.2.2"}),"\n",(0,e.jsxs)(i.ul,{children:["\n",(0,e.jsx)(i.li,{children:"修复一处导致 iOS 回滚的问题"}),"\n"]}),"\n",(0,e.jsx)(i.h3,{id:"521",children:"5.2.1"}),"\n",(0,e.jsxs)(i.ul,{children:["\n",(0,e.jsx)(i.li,{children:"检测如果开启了 hermes,则自动编译为 hermes 字节码格式"}),"\n"]}),"\n",(0,e.jsx)(i.h3,{id:"520",children:"5.2.0"}),"\n",(0,e.jsxs)(i.ul,{children:["\n",(0,e.jsx)(i.li,{children:"添加 typescript 声明"}),"\n",(0,e.jsx)(i.li,{children:"支持 cocoapods"}),"\n"]}),"\n",(0,e.jsx)(i.h3,{id:"519",children:"5.1.9"}),"\n",(0,e.jsxs)(i.ul,{children:["\n",(0,e.jsx)(i.li,{children:"重写 bundle 命令以提升版本兼容性"}),"\n",(0,e.jsx)(i.li,{children:"改进命令行的输出样式"}),"\n"]}),"\n",(0,e.jsx)(i.h3,{id:"518",children:"5.1.8"}),"\n",(0,e.jsxs)(i.ul,{children:["\n",(0,e.jsx)(i.li,{children:"服务器迁移到 https"}),"\n",(0,e.jsx)(i.li,{children:"android 支持 64 位"}),"\n"]}),"\n",(0,e.jsx)(i.h3,{id:"516",children:"5.1.6"}),"\n",(0,e.jsxs)(i.ul,{children:["\n",(0,e.jsxs)(i.li,{children:["解决 Android 热更新后部分图片丢失问题:",(0,e.jsx)(i.br,{}),"\n同一个项目中放置了多个完全相同的文件,在 5.1.0 至 5.1.5 之间的版本中,更新后有时会出现其中的部分无法显示。此问题在 5.1.6 版本修复。修复此问题涉及原生部分,需要重新打包。"]}),"\n"]})]})}i.default=(0,l.j)({MDXContent:function(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:i}=Object.assign({},(0,h.a)(),n.components);return i?(0,e.jsx)(i,{...n,children:(0,e.jsx)(r,{...n})}):r(n)},pageOpts:{filePath:"pages/docs/changelog.md",route:"/docs/changelog",frontMatter:{order:22,title:"更新日志",type:"其他"},title:"更新日志",headings:s},pageNextRoute:"/docs/changelog"})}},function(n){n.O(0,[567,888,774,179],function(){return n(n.s=57410)}),_N_E=n.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[873],{72815:function(n,i,d){(window.__NEXT_P=window.__NEXT_P||[]).push(["/docs/changelog",function(){return d(37405)}])},37405:function(n,i,d){"use strict";d.r(i),d.d(i,{__toc:function(){return s}});var e=d(11527),l=d(86909),h=d(59087);let s=[{depth:3,value:"10.5.4(2024-04-23)",id:"10542024-04-23"},{depth:3,value:"10.4.2(2024-04-22)",id:"10422024-04-22"},{depth:3,value:"10.1.0(2024-02-24)",id:"10102024-02-24"},{depth:3,value:"9.0.0(2023-09-02)",id:"9002023-09-02"},{depth:3,value:"8.0.1(2022-07-05)",id:"8012022-07-05"},{depth:3,value:"7.4.1(2022-05-04)",id:"7412022-05-04"},{depth:3,value:"7.3.4(2021-11-04)",id:"7342021-11-04"},{depth:3,value:"6.4.0(2021-10-06)",id:"6402021-10-06"},{depth:3,value:"6.3.0(2021-10-04)",id:"6302021-10-04"},{depth:3,value:"6.2.0(2021-08-13)",id:"6202021-08-13"},{depth:3,value:"6.1.0(2021-07-29)",id:"6102021-07-29"},{depth:3,value:"6.0.2(2021-05-18)",id:"6022021-05-18"},{depth:3,value:"6.0.0(2021-05-04)",id:"6002021-05-04"},{depth:3,value:"5.10.0(2020-12-18)",id:"51002020-12-18"},{depth:3,value:"5.9.0(2020-09-27)",id:"5902020-09-27"},{depth:3,value:"5.8.3(2020-09-24)",id:"5832020-09-24"},{depth:3,value:"5.7.0(2020-08-13)",id:"5702020-08-13"},{depth:3,value:"5.6.0(2020-05-26)",id:"5602020-05-26"},{depth:3,value:"5.5.9 (2020-04-14)",id:"559-2020-04-14"},{depth:3,value:"5.5.8 (2020-04-02)",id:"558-2020-04-02"},{depth:3,value:"5.5.6 (2020-02-11)",id:"556-2020-02-11"},{depth:3,value:"5.5.5 (2020-01-18)",id:"555-2020-01-18"},{depth:3,value:"5.5.4 (2020-01-13)",id:"554-2020-01-13"},{depth:3,value:"5.5.3 (2019-12-18)",id:"553-2019-12-18"},{depth:3,value:"5.5.2 (2019-12-06)",id:"552-2019-12-06"},{depth:3,value:"5.5.0 (2019-11-24)",id:"550-2019-11-24"},{depth:3,value:"5.4.0 (2019-11-16)",id:"540-2019-11-16"},{depth:3,value:"5.3.2 (2019-10-25)",id:"532-2019-10-25"},{depth:3,value:"5.3.0 (2019-09-19)",id:"530-2019-09-19"},{depth:3,value:"5.2.9 (2019-09-18)",id:"529-2019-09-18"},{depth:3,value:"5.2.8",id:"528"},{depth:3,value:"5.2.7",id:"527"},{depth:3,value:"5.2.4",id:"524"},{depth:3,value:"5.2.2",id:"522"},{depth:3,value:"5.2.1",id:"521"},{depth:3,value:"5.2.0",id:"520"},{depth:3,value:"5.1.9",id:"519"},{depth:3,value:"5.1.8",id:"518"},{depth:3,value:"5.1.6",id:"516"}];function r(n){let i=Object.assign({h3:"h3",ul:"ul",li:"li",code:"code",br:"br"},(0,h.a)(),n.components);return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i.h3,{id:"10542024-04-23",children:"10.5.4(2024-04-23)"}),"\n",(0,e.jsxs)(i.ul,{children:["\n",(0,e.jsx)(i.li,{children:"修复 web 端的兼容问题"}),"\n"]}),"\n",(0,e.jsx)(i.h3,{id:"10422024-04-22",children:"10.4.2(2024-04-22)"}),"\n",(0,e.jsxs)(i.ul,{children:["\n",(0,e.jsx)(i.li,{children:"加入 debug 参数,允许在开发环境中调试热更"}),"\n",(0,e.jsx)(i.li,{children:"热更策略中加入 null 选项,即禁止自动检查,完全手动控制"}),"\n"]}),"\n",(0,e.jsx)(i.h3,{id:"10102024-02-24",children:"10.1.0(2024-02-24)"}),"\n",(0,e.jsxs)(i.ul,{children:["\n",(0,e.jsx)(i.li,{children:"全新设计的 api 接口,全面 hook 化,更易集成和自定义"}),"\n",(0,e.jsx)(i.li,{children:"全面同时支持新老架构和 hermes"}),"\n"]}),"\n",(0,e.jsx)(i.h3,{id:"9002023-09-02",children:"9.0.0(2023-09-02)"}),"\n",(0,e.jsxs)(i.ul,{children:["\n",(0,e.jsx)(i.li,{children:"初步支持新架构"}),"\n",(0,e.jsx)(i.li,{children:"添加事件回调以方便统计"}),"\n"]}),"\n",(0,e.jsx)(i.h3,{id:"8012022-07-05",children:"8.0.1(2022-07-05)"}),"\n",(0,e.jsxs)(i.ul,{children:["\n",(0,e.jsx)(i.li,{children:"没有 update.json 文件的情况下不会再报错"}),"\n"]}),"\n",(0,e.jsx)(i.h3,{id:"7412022-05-04",children:"7.4.1(2022-05-04)"}),"\n",(0,e.jsxs)(i.ul,{children:["\n",(0,e.jsx)(i.li,{children:"修复极少数热更失败的情况"}),"\n"]}),"\n",(0,e.jsx)(i.h3,{id:"7342021-11-04",children:"7.3.4(2021-11-04)"}),"\n",(0,e.jsxs)(i.ul,{children:["\n",(0,e.jsx)(i.li,{children:"新增快速集成方法。"}),"\n",(0,e.jsxs)(i.li,{children:["默认使用 AndroidX 支持库(使用",(0,e.jsx)(i.code,{children:"npx jetify -r"}),"命令转换可以支持老的 support 库)"]}),"\n"]}),"\n",(0,e.jsx)(i.h3,{id:"6402021-10-06",children:"6.4.0(2021-10-06)"}),"\n",(0,e.jsxs)(i.ul,{children:["\n",(0,e.jsxs)(i.li,{children:["新增查看本地版本信息的方法(",(0,e.jsx)(i.code,{children:"getCurrentVersionInfo()"}),")"]}),"\n"]}),"\n",(0,e.jsx)(i.h3,{id:"6302021-10-04",children:"6.3.0(2021-10-04)"}),"\n",(0,e.jsxs)(i.ul,{children:["\n",(0,e.jsx)(i.li,{children:"库文件体积优化"}),"\n"]}),"\n",(0,e.jsx)(i.h3,{id:"6202021-08-13",children:"6.2.0(2021-08-13)"}),"\n",(0,e.jsxs)(i.ul,{children:["\n",(0,e.jsx)(i.li,{children:"修复 android 7 及以下版本可能解压失败的问题"}),"\n"]}),"\n",(0,e.jsx)(i.h3,{id:"6102021-07-29",children:"6.1.0(2021-07-29)"}),"\n",(0,e.jsxs)(i.ul,{children:["\n",(0,e.jsx)(i.li,{children:"修复频繁调用下载更新导致的图片丢失问题"}),"\n"]}),"\n",(0,e.jsx)(i.h3,{id:"6022021-05-18",children:"6.0.2(2021-05-18)"}),"\n",(0,e.jsxs)(i.ul,{children:["\n",(0,e.jsx)(i.li,{children:"修复 android 7 及以下版本安装 apk 报错的问题"}),"\n"]}),"\n",(0,e.jsx)(i.h3,{id:"6002021-05-04",children:"6.0.0(2021-05-04)"}),"\n",(0,e.jsxs)(i.ul,{children:["\n",(0,e.jsx)(i.li,{children:"换用 hdiff 算法,更新所需流量更少,速度更快"}),"\n",(0,e.jsx)(i.li,{children:"修复一些少见的崩溃问题"}),"\n"]}),"\n",(0,e.jsx)(i.h3,{id:"51002020-12-18",children:"5.10.0(2020-12-18)"}),"\n",(0,e.jsxs)(i.ul,{children:["\n",(0,e.jsx)(i.li,{children:"提升 iOS 更新的稳定性"}),"\n"]}),"\n",(0,e.jsx)(i.h3,{id:"5902020-09-27",children:"5.9.0(2020-09-27)"}),"\n",(0,e.jsxs)(i.ul,{children:["\n",(0,e.jsx)(i.li,{children:"可在应用内直接下载安装新版本 apk"}),"\n"]}),"\n",(0,e.jsx)(i.h3,{id:"5832020-09-24",children:"5.8.3(2020-09-24)"}),"\n",(0,e.jsxs)(i.ul,{children:["\n",(0,e.jsx)(i.li,{children:"加入下载进度回调"}),"\n"]}),"\n",(0,e.jsx)(i.h3,{id:"5702020-08-13",children:"5.7.0(2020-08-13)"}),"\n",(0,e.jsxs)(i.ul,{children:["\n",(0,e.jsx)(i.li,{children:"初始化时检查 Android 的 bundle url 是否正确配置"}),"\n"]}),"\n",(0,e.jsx)(i.h3,{id:"5602020-05-26",children:"5.6.0(2020-05-26)"}),"\n",(0,e.jsxs)(i.ul,{children:["\n",(0,e.jsx)(i.li,{children:"修复 iOS 更新偶尔报找不到 app.json 的问题"}),"\n"]}),"\n",(0,e.jsx)(i.h3,{id:"559-2020-04-14",children:"5.5.9 (2020-04-14)"}),"\n",(0,e.jsxs)(i.ul,{children:["\n",(0,e.jsx)(i.li,{children:"修复编译时找不到 generateiOSBuildTime.sh 的问题"}),"\n"]}),"\n",(0,e.jsx)(i.h3,{id:"558-2020-04-02",children:"5.5.8 (2020-04-02)"}),"\n",(0,e.jsxs)(i.ul,{children:["\n",(0,e.jsx)(i.li,{children:"提供 setCustomInstanceManager 方法,方便自己集成 RN 的用户调用"}),"\n"]}),"\n",(0,e.jsx)(i.h3,{id:"556-2020-02-11",children:"5.5.6 (2020-02-11)"}),"\n",(0,e.jsxs)(i.ul,{children:["\n",(0,e.jsx)(i.li,{children:"bundle 时清除缓存"}),"\n",(0,e.jsx)(i.li,{children:"修复更新包过大时可能出现的崩溃"}),"\n",(0,e.jsx)(i.li,{children:"publish 时检查文件格式"}),"\n"]}),"\n",(0,e.jsx)(i.h3,{id:"555-2020-01-18",children:"5.5.5 (2020-01-18)"}),"\n",(0,e.jsxs)(i.ul,{children:["\n",(0,e.jsx)(i.li,{children:"提升服务健壮性"}),"\n"]}),"\n",(0,e.jsx)(i.h3,{id:"554-2020-01-13",children:"5.5.4 (2020-01-13)"}),"\n",(0,e.jsxs)(i.ul,{children:["\n",(0,e.jsx)(i.li,{children:"防止某些情况下安卓找不到 bundle 文件引起的崩溃"}),"\n"]}),"\n",(0,e.jsx)(i.h3,{id:"553-2019-12-18",children:"5.5.3 (2019-12-18)"}),"\n",(0,e.jsxs)(i.ul,{children:["\n",(0,e.jsx)(i.li,{children:"忽略 hermes 的输出避免 buffer 溢出"}),"\n"]}),"\n",(0,e.jsx)(i.h3,{id:"552-2019-12-06",children:"5.5.2 (2019-12-06)"}),"\n",(0,e.jsxs)(i.ul,{children:["\n",(0,e.jsx)(i.li,{children:"修复使用 use_frameworks 时无法读取时间戳的问题"}),"\n"]}),"\n",(0,e.jsx)(i.h3,{id:"550-2019-11-24",children:"5.5.0 (2019-11-24)"}),"\n",(0,e.jsxs)(i.ul,{children:["\n",(0,e.jsx)(i.li,{children:"打包时加入时间戳"}),"\n"]}),"\n",(0,e.jsx)(i.h3,{id:"540-2019-11-16",children:"5.4.0 (2019-11-16)"}),"\n",(0,e.jsxs)(i.ul,{children:["\n",(0,e.jsx)(i.li,{children:"修改类名方法名"}),"\n"]}),"\n",(0,e.jsx)(i.h3,{id:"532-2019-10-25",children:"5.3.2 (2019-10-25)"}),"\n",(0,e.jsxs)(i.ul,{children:["\n",(0,e.jsx)(i.li,{children:"可以禁用 ios 端以避免审核被拒"}),"\n"]}),"\n",(0,e.jsx)(i.h3,{id:"530-2019-09-19",children:"5.3.0 (2019-09-19)"}),"\n",(0,e.jsxs)(i.ul,{children:["\n",(0,e.jsx)(i.li,{children:"替换 apk reader 以避免某些环境读取 apk 版本号报错的问题"}),"\n"]}),"\n",(0,e.jsx)(i.h3,{id:"529-2019-09-18",children:"5.2.9 (2019-09-18)"}),"\n",(0,e.jsxs)(i.ul,{children:["\n",(0,e.jsx)(i.li,{children:"添加 proguard 混淆规则以解决开启混淆后闪退的问题"}),"\n"]}),"\n",(0,e.jsx)(i.h3,{id:"528",children:"5.2.8"}),"\n",(0,e.jsxs)(i.ul,{children:["\n",(0,e.jsx)(i.li,{children:"解决某些情形下 Android 调用 switchVersion 不能重启的问题"}),"\n"]}),"\n",(0,e.jsx)(i.h3,{id:"527",children:"5.2.7"}),"\n",(0,e.jsxs)(i.ul,{children:["\n",(0,e.jsx)(i.li,{children:"改进 windows 端打更新包的兼容性(部分 windows 机器上会产生空 ppk 文件)"}),"\n"]}),"\n",(0,e.jsx)(i.h3,{id:"524",children:"5.2.4"}),"\n",(0,e.jsxs)(i.ul,{children:["\n",(0,e.jsx)(i.li,{children:"支持 RN 0.61 的 hermes(路径变化)"}),"\n",(0,e.jsx)(i.li,{children:"iOS 端使用第三方的 SSZipArchive 以减少重名冲突"}),"\n"]}),"\n",(0,e.jsx)(i.h3,{id:"522",children:"5.2.2"}),"\n",(0,e.jsxs)(i.ul,{children:["\n",(0,e.jsx)(i.li,{children:"修复一处导致 iOS 回滚的问题"}),"\n"]}),"\n",(0,e.jsx)(i.h3,{id:"521",children:"5.2.1"}),"\n",(0,e.jsxs)(i.ul,{children:["\n",(0,e.jsx)(i.li,{children:"检测如果开启了 hermes,则自动编译为 hermes 字节码格式"}),"\n"]}),"\n",(0,e.jsx)(i.h3,{id:"520",children:"5.2.0"}),"\n",(0,e.jsxs)(i.ul,{children:["\n",(0,e.jsx)(i.li,{children:"添加 typescript 声明"}),"\n",(0,e.jsx)(i.li,{children:"支持 cocoapods"}),"\n"]}),"\n",(0,e.jsx)(i.h3,{id:"519",children:"5.1.9"}),"\n",(0,e.jsxs)(i.ul,{children:["\n",(0,e.jsx)(i.li,{children:"重写 bundle 命令以提升版本兼容性"}),"\n",(0,e.jsx)(i.li,{children:"改进命令行的输出样式"}),"\n"]}),"\n",(0,e.jsx)(i.h3,{id:"518",children:"5.1.8"}),"\n",(0,e.jsxs)(i.ul,{children:["\n",(0,e.jsx)(i.li,{children:"服务器迁移到 https"}),"\n",(0,e.jsx)(i.li,{children:"android 支持 64 位"}),"\n"]}),"\n",(0,e.jsx)(i.h3,{id:"516",children:"5.1.6"}),"\n",(0,e.jsxs)(i.ul,{children:["\n",(0,e.jsxs)(i.li,{children:["解决 Android 热更新后部分图片丢失问题:",(0,e.jsx)(i.br,{}),"\n同一个项目中放置了多个完全相同的文件,在 5.1.0 至 5.1.5 之间的版本中,更新后有时会出现其中的部分无法显示。此问题在 5.1.6 版本修复。修复此问题涉及原生部分,需要重新打包。"]}),"\n"]})]})}i.default=(0,l.j)({MDXContent:function(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:i}=Object.assign({},(0,h.a)(),n.components);return i?(0,e.jsx)(i,{...n,children:(0,e.jsx)(r,{...n})}):r(n)},pageOpts:{filePath:"pages/docs/changelog.md",route:"/docs/changelog",frontMatter:{order:22,title:"更新日志",type:"其他"},title:"更新日志",headings:s},pageNextRoute:"/docs/changelog"})}},function(n){n.O(0,[909,888,774,179],function(){return n(n.s=72815)}),_N_E=n.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/docs/cli-12e4c433877ddf6f.js b/_next/static/chunks/pages/docs/cli-e272539f86b63c94.js similarity index 96% rename from _next/static/chunks/pages/docs/cli-12e4c433877ddf6f.js rename to _next/static/chunks/pages/docs/cli-e272539f86b63c94.js index 2bd99d7..ee9c025 100644 --- a/_next/static/chunks/pages/docs/cli-12e4c433877ddf6f.js +++ b/_next/static/chunks/pages/docs/cli-e272539f86b63c94.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[314],{46074:function(p,e,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/docs/cli",function(){return i(17377)}])},17377:function(p,e,i){"use strict";i.r(e),i.d(e,{__toc:function(){return d}});var n=i(11527),s=i(38567),l=i(87088);let d=[{depth:3,value:"安装",id:"安装"},{depth:3,value:"命令",id:"命令"},{depth:4,value:"pushy bundle",id:"pushy-bundle"},{depth:4,value:"pushy parseIpa [ipaFile]",id:"pushy-parseipa-ipafile"},{depth:4,value:"pushy parseApk [apkFile]",id:"pushy-parseapk-apkfile"},{depth:4,value:"pushy diff [origin][next]",id:"pushy-diff-originnext"},{depth:4,value:"pushy diffFromApk [apkFile][next]",id:"pushy-difffromapk-apkfilenext"},{depth:4,value:"pushy diffFromIpa [ipaFile][next]",id:"pushy-difffromipa-ipafilenext"},{depth:4,value:"pushy login [email][pwd]",id:"pushy-login-emailpwd"},{depth:4,value:"pushy logout",id:"pushy-logout"},{depth:4,value:"pushy me",id:"pushy-me"},{depth:4,value:"pushy createApp",id:"pushy-createapp"},{depth:4,value:"pushy deleteApp [appId]",id:"pushy-deleteapp-appid"},{depth:4,value:"pushy apps",id:"pushy-apps"},{depth:4,value:"pushy selectApp [appId]",id:"pushy-selectapp-appid"},{depth:4,value:"pushy uploadIpa [ipaFile]",id:"pushy-uploadipa-ipafile"},{depth:4,value:"pushy uploadApk [apkFile]",id:"pushy-uploadapk-apkfile"},{depth:4,value:"pushy packages",id:"pushy-packages"},{depth:4,value:"pushy publish [ppkFile]",id:"pushy-publish-ppkfile"},{depth:4,value:"pushy versions",id:"pushy-versions"},{depth:4,value:"pushy update",id:"pushy-update"}];function h(p){let e=Object.assign({h3:"h3",pre:"pre",code:"code",span:"span",h4:"h4",p:"p",ul:"ul",li:"li",hr:"hr",a:"a"},(0,l.a)(),p.components);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(e.h3,{id:"安装",children:"安装"}),"\n",(0,n.jsx)(e.pre,{"data-language":"text","data-theme":"default",children:(0,n.jsx)(e.code,{"data-language":"text","data-theme":"default",children:(0,n.jsx)(e.span,{className:"line",children:(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"$ npm install -g react-native-update-cli"})})})}),"\n",(0,n.jsx)(e.h3,{id:"命令",children:"命令"}),"\n",(0,n.jsx)(e.h4,{id:"pushy-bundle",children:"pushy bundle"}),"\n",(0,n.jsx)(e.p,{children:"生成资源包"}),"\n",(0,n.jsxs)(e.ul,{children:["\n",(0,n.jsx)(e.li,{children:"platform: ios|android 对应的平台"}),"\n",(0,n.jsx)(e.li,{children:"entryFile: 入口脚本文件"}),"\n",(0,n.jsx)(e.li,{children:"intermediaDir: 临时文件输出目录"}),"\n",(0,n.jsx)(e.li,{children:"output: 最终 ppk 文件输出路径"}),"\n",(0,n.jsx)(e.li,{children:"dev: 是否打包开发版本"}),"\n",(0,n.jsx)(e.li,{children:"sourcemap: 是否生成 sourcemap(需 cli 版本 1.11.0+)"}),"\n"]}),"\n",(0,n.jsx)(e.hr,{}),"\n",(0,n.jsx)(e.h4,{id:"pushy-parseipa-ipafile",children:"pushy parseIpa [ipaFile]"}),"\n",(0,n.jsx)(e.p,{children:"解析 ipa 文件并输出一些相关信息,如版本号,编译时间戳等。"}),"\n",(0,n.jsx)(e.hr,{}),"\n",(0,n.jsx)(e.h4,{id:"pushy-parseapk-apkfile",children:"pushy parseApk [apkFile]"}),"\n",(0,n.jsx)(e.p,{children:"解析 apk 文件并输出一些相关信息,如版本号,编译时间戳等。"}),"\n",(0,n.jsx)(e.hr,{}),"\n",(0,n.jsx)(e.h4,{id:"pushy-diff-originnext",children:"pushy diff [origin][next]"}),"\n",(0,n.jsx)(e.p,{children:"提供两个 ppk 文件,生成从 origin 到 next 版本的差异更新包。"}),"\n",(0,n.jsxs)(e.ul,{children:["\n",(0,n.jsx)(e.li,{children:"output: diff 文件输出路径"}),"\n"]}),"\n",(0,n.jsx)(e.hr,{}),"\n",(0,n.jsx)(e.h4,{id:"pushy-difffromapk-apkfilenext",children:"pushy diffFromApk [apkFile][next]"}),"\n",(0,n.jsx)(e.p,{children:"提供一个 apk 文件和一个 ppk 文件,生成从 apk 文件到 next 版本的差异更新包。"}),"\n",(0,n.jsx)(e.p,{children:"如果使用热更新开放平台,你不需要自己执行此命令。"}),"\n",(0,n.jsxs)(e.ul,{children:["\n",(0,n.jsx)(e.li,{children:"output: diff 文件输出路径"}),"\n"]}),"\n",(0,n.jsx)(e.hr,{}),"\n",(0,n.jsx)(e.h4,{id:"pushy-difffromipa-ipafilenext",children:"pushy diffFromIpa [ipaFile][next]"}),"\n",(0,n.jsx)(e.p,{children:"提供一个 ipa 文件和一个 ppk 文件,生成从 ipa 文件到 next 版本的差异更新包。"}),"\n",(0,n.jsx)(e.p,{children:"如果使用热更新开放平台,你不需要自己执行此命令。"}),"\n",(0,n.jsxs)(e.ul,{children:["\n",(0,n.jsx)(e.li,{children:"output: diff 文件输出路径"}),"\n"]}),"\n",(0,n.jsx)(e.hr,{}),"\n",(0,n.jsx)(e.h4,{id:"pushy-login-emailpwd",children:"pushy login [email][pwd]"}),"\n",(0,n.jsx)(e.p,{children:"登录热更新开放平台。你需要先登录才能使用下面的命令。"}),"\n",(0,n.jsx)(e.hr,{}),"\n",(0,n.jsx)(e.h4,{id:"pushy-logout",children:"pushy logout"}),"\n",(0,n.jsx)(e.p,{children:"登出并清除本地的登录信息"}),"\n",(0,n.jsx)(e.hr,{}),"\n",(0,n.jsx)(e.h4,{id:"pushy-me",children:"pushy me"}),"\n",(0,n.jsx)(e.p,{children:"查看自己是否已经登录,以及昵称等信息。"}),"\n",(0,n.jsx)(e.hr,{}),"\n",(0,n.jsx)(e.h4,{id:"pushy-createapp",children:"pushy createApp"}),"\n",(0,n.jsx)(e.p,{children:"创建应用并立刻绑定到当前工程。这项操作也可以在网页管理端进行。"}),"\n",(0,n.jsxs)(e.ul,{children:["\n",(0,n.jsx)(e.li,{children:"platform: ios|android 对应的平台"}),"\n",(0,n.jsx)(e.li,{children:"name: 应用名称"}),"\n",(0,n.jsx)(e.li,{children:"downloadUrl: 应用安装包的下载地址"}),"\n"]}),"\n",(0,n.jsx)(e.hr,{}),"\n",(0,n.jsx)(e.h4,{id:"pushy-deleteapp-appid",children:"pushy deleteApp [appId]"}),"\n",(0,n.jsx)(e.p,{children:"删除已有应用。所有已创建的应用包、热更新版本都会被同时删除。这项操作也可以在网页管理端进行。"}),"\n",(0,n.jsxs)(e.ul,{children:["\n",(0,n.jsx)(e.li,{children:"platform: ios|android 对应的平台"}),"\n"]}),"\n",(0,n.jsx)(e.hr,{}),"\n",(0,n.jsx)(e.h4,{id:"pushy-apps",children:"pushy apps"}),"\n",(0,n.jsx)(e.p,{children:"查看当前已创建的全部应用。这项操作也可以在网页管理端进行。"}),"\n",(0,n.jsxs)(e.ul,{children:["\n",(0,n.jsx)(e.li,{children:"platform: ios|android 对应的平台"}),"\n"]}),"\n",(0,n.jsx)(e.hr,{}),"\n",(0,n.jsx)(e.h4,{id:"pushy-selectapp-appid",children:"pushy selectApp [appId]"}),"\n",(0,n.jsx)(e.p,{children:"绑定应用到当前工程。"}),"\n",(0,n.jsxs)(e.ul,{children:["\n",(0,n.jsx)(e.li,{children:"platform: ios|android 对应的平台"}),"\n"]}),"\n",(0,n.jsx)(e.hr,{}),"\n",(0,n.jsx)(e.h4,{id:"pushy-uploadipa-ipafile",children:"pushy uploadIpa [ipaFile]"}),"\n",(0,n.jsx)(e.p,{children:"上传 ipa 文件到开放平台。"}),"\n",(0,n.jsx)(e.hr,{}),"\n",(0,n.jsx)(e.h4,{id:"pushy-uploadapk-apkfile",children:"pushy uploadApk [apkFile]"}),"\n",(0,n.jsx)(e.p,{children:"上传 apk 文件到开放平台。"}),"\n",(0,n.jsx)(e.hr,{}),"\n",(0,n.jsx)(e.h4,{id:"pushy-packages",children:"pushy packages"}),"\n",(0,n.jsx)(e.p,{children:"查看已经上传的原生包。这项操作也可以在网页管理端进行。"}),"\n",(0,n.jsxs)(e.ul,{children:["\n",(0,n.jsx)(e.li,{children:"platform: ios|android 对应的平台"}),"\n"]}),"\n",(0,n.jsx)(e.hr,{}),"\n",(0,n.jsx)(e.h4,{id:"pushy-publish-ppkfile",children:"pushy publish [ppkFile]"}),"\n",(0,n.jsx)(e.p,{children:"发布新的热更新版本(ppk 文件)。"}),"\n",(0,n.jsxs)(e.ul,{children:["\n",(0,n.jsx)(e.li,{children:"platform: ios|android 对应的平台"}),"\n",(0,n.jsx)(e.li,{children:"name: 当前热更新版本的名字(版本号)"}),"\n",(0,n.jsx)(e.li,{children:"description: 当前热更新版本的描述信息,可以对用户进行展示"}),"\n",(0,n.jsxs)(e.li,{children:["metaInfo: 当前热更新版本的元信息,可以用来保存一些额外信息,具体用法可参考",(0,n.jsx)(e.a,{href:"bestpractice#%E5%85%83%E4%BF%A1%E6%81%AFmeta-info%E7%9A%84%E4%BD%BF%E7%94%A8",children:"场景实践"}),"。"]}),"\n"]}),"\n",(0,n.jsx)(e.hr,{}),"\n",(0,n.jsx)(e.h4,{id:"pushy-versions",children:"pushy versions"}),"\n",(0,n.jsx)(e.p,{children:"分页列举可用的版本。这项操作也可以在网页管理端进行。"}),"\n",(0,n.jsxs)(e.ul,{children:["\n",(0,n.jsx)(e.li,{children:"platform: ios|android 对应的平台"}),"\n"]}),"\n",(0,n.jsx)(e.hr,{}),"\n",(0,n.jsx)(e.h4,{id:"pushy-update",children:"pushy update"}),"\n",(0,n.jsx)(e.p,{children:"为一个原生包版本绑定一个热更新版本。这项操作也可以在网页管理端进行。"}),"\n",(0,n.jsxs)(e.ul,{children:["\n",(0,n.jsx)(e.li,{children:"platform: ios|android 对应的平台"}),"\n",(0,n.jsx)(e.li,{children:"versionId: 要绑定的热更新版本 ID"}),"\n",(0,n.jsx)(e.li,{children:"packageId: 要绑定的原生包 ID (与版本名二选一)"}),"\n",(0,n.jsx)(e.li,{children:"packageVersion: 要绑定的原生包版本名(与 ID 二选一,需 cli 版本 1.7.2 或以上)"}),"\n"]})]})}e.default=(0,s.j)({MDXContent:function(){let p=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:e}=Object.assign({},(0,l.a)(),p.components);return e?(0,n.jsx)(e,{...p,children:(0,n.jsx)(h,{...p})}):h(p)},pageOpts:{filePath:"pages/docs/cli.md",route:"/docs/cli",frontMatter:{order:12,title:"命令行工具",type:"开发指南"},title:"命令行工具",headings:d},pageNextRoute:"/docs/cli"})}},function(p){p.O(0,[567,888,774,179],function(){return p(p.s=46074)}),_N_E=p.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[314],{61172:function(p,e,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/docs/cli",function(){return i(18949)}])},18949:function(p,e,i){"use strict";i.r(e),i.d(e,{__toc:function(){return d}});var n=i(11527),s=i(86909),l=i(59087);let d=[{depth:3,value:"安装",id:"安装"},{depth:3,value:"命令",id:"命令"},{depth:4,value:"pushy bundle",id:"pushy-bundle"},{depth:4,value:"pushy parseIpa [ipaFile]",id:"pushy-parseipa-ipafile"},{depth:4,value:"pushy parseApk [apkFile]",id:"pushy-parseapk-apkfile"},{depth:4,value:"pushy diff [origin][next]",id:"pushy-diff-originnext"},{depth:4,value:"pushy diffFromApk [apkFile][next]",id:"pushy-difffromapk-apkfilenext"},{depth:4,value:"pushy diffFromIpa [ipaFile][next]",id:"pushy-difffromipa-ipafilenext"},{depth:4,value:"pushy login [email][pwd]",id:"pushy-login-emailpwd"},{depth:4,value:"pushy logout",id:"pushy-logout"},{depth:4,value:"pushy me",id:"pushy-me"},{depth:4,value:"pushy createApp",id:"pushy-createapp"},{depth:4,value:"pushy deleteApp [appId]",id:"pushy-deleteapp-appid"},{depth:4,value:"pushy apps",id:"pushy-apps"},{depth:4,value:"pushy selectApp [appId]",id:"pushy-selectapp-appid"},{depth:4,value:"pushy uploadIpa [ipaFile]",id:"pushy-uploadipa-ipafile"},{depth:4,value:"pushy uploadApk [apkFile]",id:"pushy-uploadapk-apkfile"},{depth:4,value:"pushy packages",id:"pushy-packages"},{depth:4,value:"pushy publish [ppkFile]",id:"pushy-publish-ppkfile"},{depth:4,value:"pushy versions",id:"pushy-versions"},{depth:4,value:"pushy update",id:"pushy-update"}];function h(p){let e=Object.assign({h3:"h3",pre:"pre",code:"code",span:"span",h4:"h4",p:"p",ul:"ul",li:"li",hr:"hr",a:"a"},(0,l.a)(),p.components);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(e.h3,{id:"安装",children:"安装"}),"\n",(0,n.jsx)(e.pre,{"data-language":"text","data-theme":"default",children:(0,n.jsx)(e.code,{"data-language":"text","data-theme":"default",children:(0,n.jsx)(e.span,{className:"line",children:(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"$ npm install -g react-native-update-cli"})})})}),"\n",(0,n.jsx)(e.h3,{id:"命令",children:"命令"}),"\n",(0,n.jsx)(e.h4,{id:"pushy-bundle",children:"pushy bundle"}),"\n",(0,n.jsx)(e.p,{children:"生成资源包"}),"\n",(0,n.jsxs)(e.ul,{children:["\n",(0,n.jsx)(e.li,{children:"platform: ios|android 对应的平台"}),"\n",(0,n.jsx)(e.li,{children:"entryFile: 入口脚本文件"}),"\n",(0,n.jsx)(e.li,{children:"intermediaDir: 临时文件输出目录"}),"\n",(0,n.jsx)(e.li,{children:"output: 最终 ppk 文件输出路径"}),"\n",(0,n.jsx)(e.li,{children:"dev: 是否打包开发版本"}),"\n",(0,n.jsx)(e.li,{children:"sourcemap: 是否生成 sourcemap(需 cli 版本 1.11.0+)"}),"\n"]}),"\n",(0,n.jsx)(e.hr,{}),"\n",(0,n.jsx)(e.h4,{id:"pushy-parseipa-ipafile",children:"pushy parseIpa [ipaFile]"}),"\n",(0,n.jsx)(e.p,{children:"解析 ipa 文件并输出一些相关信息,如版本号,编译时间戳等。"}),"\n",(0,n.jsx)(e.hr,{}),"\n",(0,n.jsx)(e.h4,{id:"pushy-parseapk-apkfile",children:"pushy parseApk [apkFile]"}),"\n",(0,n.jsx)(e.p,{children:"解析 apk 文件并输出一些相关信息,如版本号,编译时间戳等。"}),"\n",(0,n.jsx)(e.hr,{}),"\n",(0,n.jsx)(e.h4,{id:"pushy-diff-originnext",children:"pushy diff [origin][next]"}),"\n",(0,n.jsx)(e.p,{children:"提供两个 ppk 文件,生成从 origin 到 next 版本的差异更新包。"}),"\n",(0,n.jsxs)(e.ul,{children:["\n",(0,n.jsx)(e.li,{children:"output: diff 文件输出路径"}),"\n"]}),"\n",(0,n.jsx)(e.hr,{}),"\n",(0,n.jsx)(e.h4,{id:"pushy-difffromapk-apkfilenext",children:"pushy diffFromApk [apkFile][next]"}),"\n",(0,n.jsx)(e.p,{children:"提供一个 apk 文件和一个 ppk 文件,生成从 apk 文件到 next 版本的差异更新包。"}),"\n",(0,n.jsx)(e.p,{children:"如果使用热更新开放平台,你不需要自己执行此命令。"}),"\n",(0,n.jsxs)(e.ul,{children:["\n",(0,n.jsx)(e.li,{children:"output: diff 文件输出路径"}),"\n"]}),"\n",(0,n.jsx)(e.hr,{}),"\n",(0,n.jsx)(e.h4,{id:"pushy-difffromipa-ipafilenext",children:"pushy diffFromIpa [ipaFile][next]"}),"\n",(0,n.jsx)(e.p,{children:"提供一个 ipa 文件和一个 ppk 文件,生成从 ipa 文件到 next 版本的差异更新包。"}),"\n",(0,n.jsx)(e.p,{children:"如果使用热更新开放平台,你不需要自己执行此命令。"}),"\n",(0,n.jsxs)(e.ul,{children:["\n",(0,n.jsx)(e.li,{children:"output: diff 文件输出路径"}),"\n"]}),"\n",(0,n.jsx)(e.hr,{}),"\n",(0,n.jsx)(e.h4,{id:"pushy-login-emailpwd",children:"pushy login [email][pwd]"}),"\n",(0,n.jsx)(e.p,{children:"登录热更新开放平台。你需要先登录才能使用下面的命令。"}),"\n",(0,n.jsx)(e.hr,{}),"\n",(0,n.jsx)(e.h4,{id:"pushy-logout",children:"pushy logout"}),"\n",(0,n.jsx)(e.p,{children:"登出并清除本地的登录信息"}),"\n",(0,n.jsx)(e.hr,{}),"\n",(0,n.jsx)(e.h4,{id:"pushy-me",children:"pushy me"}),"\n",(0,n.jsx)(e.p,{children:"查看自己是否已经登录,以及昵称等信息。"}),"\n",(0,n.jsx)(e.hr,{}),"\n",(0,n.jsx)(e.h4,{id:"pushy-createapp",children:"pushy createApp"}),"\n",(0,n.jsx)(e.p,{children:"创建应用并立刻绑定到当前工程。这项操作也可以在网页管理端进行。"}),"\n",(0,n.jsxs)(e.ul,{children:["\n",(0,n.jsx)(e.li,{children:"platform: ios|android 对应的平台"}),"\n",(0,n.jsx)(e.li,{children:"name: 应用名称"}),"\n",(0,n.jsx)(e.li,{children:"downloadUrl: 应用安装包的下载地址"}),"\n"]}),"\n",(0,n.jsx)(e.hr,{}),"\n",(0,n.jsx)(e.h4,{id:"pushy-deleteapp-appid",children:"pushy deleteApp [appId]"}),"\n",(0,n.jsx)(e.p,{children:"删除已有应用。所有已创建的应用包、热更新版本都会被同时删除。这项操作也可以在网页管理端进行。"}),"\n",(0,n.jsxs)(e.ul,{children:["\n",(0,n.jsx)(e.li,{children:"platform: ios|android 对应的平台"}),"\n"]}),"\n",(0,n.jsx)(e.hr,{}),"\n",(0,n.jsx)(e.h4,{id:"pushy-apps",children:"pushy apps"}),"\n",(0,n.jsx)(e.p,{children:"查看当前已创建的全部应用。这项操作也可以在网页管理端进行。"}),"\n",(0,n.jsxs)(e.ul,{children:["\n",(0,n.jsx)(e.li,{children:"platform: ios|android 对应的平台"}),"\n"]}),"\n",(0,n.jsx)(e.hr,{}),"\n",(0,n.jsx)(e.h4,{id:"pushy-selectapp-appid",children:"pushy selectApp [appId]"}),"\n",(0,n.jsx)(e.p,{children:"绑定应用到当前工程。"}),"\n",(0,n.jsxs)(e.ul,{children:["\n",(0,n.jsx)(e.li,{children:"platform: ios|android 对应的平台"}),"\n"]}),"\n",(0,n.jsx)(e.hr,{}),"\n",(0,n.jsx)(e.h4,{id:"pushy-uploadipa-ipafile",children:"pushy uploadIpa [ipaFile]"}),"\n",(0,n.jsx)(e.p,{children:"上传 ipa 文件到开放平台。"}),"\n",(0,n.jsx)(e.hr,{}),"\n",(0,n.jsx)(e.h4,{id:"pushy-uploadapk-apkfile",children:"pushy uploadApk [apkFile]"}),"\n",(0,n.jsx)(e.p,{children:"上传 apk 文件到开放平台。"}),"\n",(0,n.jsx)(e.hr,{}),"\n",(0,n.jsx)(e.h4,{id:"pushy-packages",children:"pushy packages"}),"\n",(0,n.jsx)(e.p,{children:"查看已经上传的原生包。这项操作也可以在网页管理端进行。"}),"\n",(0,n.jsxs)(e.ul,{children:["\n",(0,n.jsx)(e.li,{children:"platform: ios|android 对应的平台"}),"\n"]}),"\n",(0,n.jsx)(e.hr,{}),"\n",(0,n.jsx)(e.h4,{id:"pushy-publish-ppkfile",children:"pushy publish [ppkFile]"}),"\n",(0,n.jsx)(e.p,{children:"发布新的热更新版本(ppk 文件)。"}),"\n",(0,n.jsxs)(e.ul,{children:["\n",(0,n.jsx)(e.li,{children:"platform: ios|android 对应的平台"}),"\n",(0,n.jsx)(e.li,{children:"name: 当前热更新版本的名字(版本号)"}),"\n",(0,n.jsx)(e.li,{children:"description: 当前热更新版本的描述信息,可以对用户进行展示"}),"\n",(0,n.jsxs)(e.li,{children:["metaInfo: 当前热更新版本的元信息,可以用来保存一些额外信息,具体用法可参考",(0,n.jsx)(e.a,{href:"bestpractice#%E5%85%83%E4%BF%A1%E6%81%AFmeta-info%E7%9A%84%E4%BD%BF%E7%94%A8",children:"场景实践"}),"。"]}),"\n"]}),"\n",(0,n.jsx)(e.hr,{}),"\n",(0,n.jsx)(e.h4,{id:"pushy-versions",children:"pushy versions"}),"\n",(0,n.jsx)(e.p,{children:"分页列举可用的版本。这项操作也可以在网页管理端进行。"}),"\n",(0,n.jsxs)(e.ul,{children:["\n",(0,n.jsx)(e.li,{children:"platform: ios|android 对应的平台"}),"\n"]}),"\n",(0,n.jsx)(e.hr,{}),"\n",(0,n.jsx)(e.h4,{id:"pushy-update",children:"pushy update"}),"\n",(0,n.jsx)(e.p,{children:"为一个原生包版本绑定一个热更新版本。这项操作也可以在网页管理端进行。"}),"\n",(0,n.jsxs)(e.ul,{children:["\n",(0,n.jsx)(e.li,{children:"platform: ios|android 对应的平台"}),"\n",(0,n.jsx)(e.li,{children:"versionId: 要绑定的热更新版本 ID"}),"\n",(0,n.jsx)(e.li,{children:"packageId: 要绑定的原生包 ID (与版本名二选一)"}),"\n",(0,n.jsx)(e.li,{children:"packageVersion: 要绑定的原生包版本名(与 ID 二选一,需 cli 版本 1.7.2 或以上)"}),"\n"]})]})}e.default=(0,s.j)({MDXContent:function(){let p=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:e}=Object.assign({},(0,l.a)(),p.components);return e?(0,n.jsx)(e,{...p,children:(0,n.jsx)(h,{...p})}):h(p)},pageOpts:{filePath:"pages/docs/cli.md",route:"/docs/cli",frontMatter:{order:12,title:"命令行工具",type:"开发指南"},title:"命令行工具",headings:d},pageNextRoute:"/docs/cli"})}},function(p){p.O(0,[909,888,774,179],function(){return p(p.s=61172)}),_N_E=p.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/docs/faq-804b098ff10181dc.js b/_next/static/chunks/pages/docs/faq-c5b8282930d7e95c.js similarity index 98% rename from _next/static/chunks/pages/docs/faq-804b098ff10181dc.js rename to _next/static/chunks/pages/docs/faq-c5b8282930d7e95c.js index d1f7b8f..c761756 100644 --- a/_next/static/chunks/pages/docs/faq-804b098ff10181dc.js +++ b/_next/static/chunks/pages/docs/faq-c5b8282930d7e95c.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[755],{13477:function(e,n,d){(window.__NEXT_P=window.__NEXT_P||[]).push(["/docs/faq",function(){return d(84042)}])},84042:function(e,n,d){"use strict";d.r(n),d.d(n,{__toc:function(){return r}});var h=d(11527),i=d(38567),s=d(87088),c=d(42416);let r=[{depth:3,value:"业务问题",id:"业务问题"},{depth:4,value:"热更新究竟能否上架?",id:"热更新究竟能否上架"},{depth:4,value:"是否可以在海外使用?",id:"是否可以在海外使用"},{depth:4,value:"哪些修改可以热更新?哪些不能?",id:"哪些修改可以热更新哪些不能"},{depth:4,value:"我是否可以搭建自己的热更新服务?",id:"我是否可以搭建自己的热更新服务"},{depth:4,value:"热更新成功完成,但是重启后又回滚了是怎么回事?",id:"热更新成功完成但是重启后又回滚了是怎么回事"},{depth:4,value:"热更新报错:“热更新已暂停,原因:编译时间戳与服务器记录不一致。”",id:"热更新报错热更新已暂停原因编译时间戳与服务器记录不一致"},{depth:3,value:"付费问题",id:"付费问题"},{depth:4,value:"我应该选择哪个业务版本呢?",id:"我应该选择哪个业务版本呢"},{depth:4,value:"我可以试用付费版本先评估一下效果吗?",id:"我可以试用付费版本先评估一下效果吗"},{depth:4,value:"配额具体如何计算?",id:"配额具体如何计算"},{depth:4,value:"达到配额后还可以正常使用吗?",id:"达到配额后还可以正常使用吗"},{depth:4,value:"我可以单独升级某项配额吗?",id:"我可以单独升级某项配额吗"},{depth:4,value:"付费业务到期后不续费,现有应用还能否正常使用?",id:"付费业务到期后不续费现有应用还能否正常使用"},{depth:4,value:"如何获取付费的专人技术支持?",id:"如何获取付费的专人技术支持"},{depth:4,value:"如何开具发票?",id:"如何开具发票"},{depth:4,value:"可以使用银行转账付款吗?",id:"可以使用银行转账付款吗"},{depth:4,value:"可以按月付款吗?",id:"可以按月付款吗"}];function l(e){let n=Object.assign({p:"p",a:"a",h3:"h3",h4:"h4",hr:"hr",ul:"ul",li:"li",code:"code",ol:"ol",blockquote:"blockquote",br:"br",table:"table",thead:"thead",tr:"tr",th:"th",tbody:"tbody",td:"td"},(0,s.a)(),e.components);return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)(n.p,{children:["如果本页面没能回答您的疑问,您可以去",(0,h.jsx)(n.a,{href:"https://github.com/reactnativecn/react-native-pushy/issues",children:"issues 区"}),"或 QQ 群 729013783 提问,或给我们发",(0,h.jsx)(n.a,{href:"mailto:hi@charmlot.com",children:"邮件"}),"。"]}),"\n",(0,h.jsx)(n.h3,{id:"业务问题",children:"业务问题"}),"\n",(0,h.jsx)(n.h4,{id:"热更新究竟能否上架",children:"热更新究竟能否上架?"}),"\n",(0,h.jsx)(n.p,{children:"您可能听说过各种说法,但大量实践表明,热更新目前能够顺利上架 AppStore 和其他各种应用市场。唯一需要注意的是,在审核期间请不要发布热更新,不要让审核人员看到各种更新相关的提示和弹窗,即可顺利通过。"}),"\n",(0,h.jsx)(n.hr,{}),"\n",(0,h.jsx)(n.h4,{id:"是否可以在海外使用",children:"是否可以在海外使用?"}),"\n",(0,h.jsx)(n.p,{children:"可以的,国内外都有高速 CDN 节点。"}),"\n",(0,h.jsx)(n.hr,{}),"\n",(0,h.jsx)(n.h4,{id:"哪些修改可以热更新哪些不能",children:"哪些修改可以热更新?哪些不能?"}),"\n",(0,h.jsx)(n.p,{children:"我们把对应用的修改分为两类:"}),"\n",(0,h.jsxs)(n.ul,{children:["\n",(0,h.jsxs)(n.li,{children:["\n",(0,h.jsxs)(n.p,{children:["不可热更新 —— 原生修改,即所有需要",(0,h.jsx)(n.code,{children:"编译"}),"后才能生效的修改:"]}),"\n",(0,h.jsxs)(n.ul,{children:["\n",(0,h.jsx)(n.li,{children:"任何在 iOS 或者 Android 目录中的修改、增删。"}),"\n",(0,h.jsx)(n.li,{children:"任何含有原生代码的第三方组件的更新、修改。"}),"\n"]}),"\n"]}),"\n",(0,h.jsxs)(n.li,{children:["\n",(0,h.jsxs)(n.p,{children:["可以热更新 —— 非原生修改,即所有",(0,h.jsx)(n.code,{children:"无需编译"}),",刷新即可生效的修改:"]}),"\n",(0,h.jsxs)(n.ul,{children:["\n",(0,h.jsx)(n.li,{children:"js 代码修改,包括第三方纯 js 组件的更新、修改。"}),"\n",(0,h.jsx)(n.li,{children:"可以在 js 代码中 require/import 的资源文件,例如图片。"}),"\n"]}),"\n"]}),"\n"]}),"\n",(0,h.jsxs)(n.p,{children:["需要注意的是,即便资源文件可以热更新,但这些热更新后的资源文件会以",(0,h.jsx)(n.code,{children:"file://"}),"协议的形式提供访问,某些读取资源文件的第三方可能并不支持",(0,h.jsx)(n.code,{children:"file://"}),"协议。"]}),"\n",(0,h.jsx)(n.hr,{}),"\n",(0,h.jsx)(n.h4,{id:"我是否可以搭建自己的热更新服务",children:"我是否可以搭建自己的热更新服务?"}),"\n",(0,h.jsxs)(n.p,{children:["你可以单独使用本组件的原生部分(不包括 js 模块)和命令行工具中的",(0,h.jsx)(n.code,{children:"bundle"}),"、",(0,h.jsx)(n.code,{children:"diff"}),"、",(0,h.jsx)(n.code,{children:"diffFromIpa"}),"、",(0,h.jsx)(n.code,{children:"diffFromApk"}),"四个功能。"]}),"\n",(0,h.jsx)(n.p,{children:"这些功能都不会使用我们的热更新服务,也无需注册或登录账号。但你可能要编写自己的 js 模块来与不同的热更新服务器通讯。"}),"\n",(0,h.jsxs)(n.p,{children:["如果您有兴趣搭建私有云服务,可以",(0,h.jsx)(n.a,{href:"mailto:hi@charmlot.com",children:"邮件联系我们"}),"。"]}),"\n",(0,h.jsx)(n.hr,{}),"\n",(0,h.jsx)(n.h4,{id:"热更新成功完成但是重启后又回滚了是怎么回事",children:"热更新成功完成,但是重启后又回滚了是怎么回事?"}),"\n",(0,h.jsx)(n.p,{children:"可以正常更新,但是重启后回滚,一般有两种可能的情况:"}),"\n",(0,h.jsxs)(n.ul,{children:["\n",(0,h.jsxs)(n.li,{children:["没有正确",(0,h.jsx)(n.a,{href:"/docs/getting-started#%E9%85%8D%E7%BD%AE-bundle-url",children:"配置 bundleUrl"})]}),"\n",(0,h.jsxs)(n.li,{children:["(仅有 v10 以下版本存在此可能性,v10 及更高版本不存在此情况)没有正确",(0,h.jsx)(n.a,{href:"https://v9--pushy-site.netlify.app/docs/integration#%E9%A6%96%E6%AC%A1%E5%90%AF%E5%8A%A8%E5%9B%9E%E6%BB%9A",children:"调用 markSuccess"})]}),"\n"]}),"\n",(0,h.jsxs)(n.p,{children:["如果你确定上述两个步骤都正确无误,请在",(0,h.jsx)(n.a,{href:"https://github.com/reactnativecn/react-native-pushy/issues",children:"issues 区"}),"给我们留言反馈。"]}),"\n",(0,h.jsx)(n.hr,{}),"\n",(0,h.jsx)(n.h4,{id:"热更新报错热更新已暂停原因编译时间戳与服务器记录不一致",children:"热更新报错:“热更新已暂停,原因:编译时间戳与服务器记录不一致。”"}),"\n",(0,h.jsxs)(n.p,{children:["当您每次编译产生一个原生包时,其中都会记录一个编译时间戳",(0,h.jsx)(n.code,{children:"buildTime"}),"(可以使用",(0,h.jsx)(n.code,{children:"pushy parseIpa a.ipa"}),"或是",(0,h.jsx)(n.code,{children:"pushy parseApk a.apk"}),"命令来查看)。如果您需要把这个包发给客户并希望使用热更新功能,那么就需要使用 upload 命令来上传到我们的服务器,而服务器端会记录这个包的版本号和编译时间戳以便后续比对记录。"]}),"\n",(0,h.jsxs)(n.p,{children:["举例来说,假如我已经上传了一个 1.0 版本原生包(",(0,h.jsx)(n.code,{children:"1A包"}),"),但后来由于种种原因我又重新打包了(",(0,h.jsx)(n.code,{children:"1B包"}),")但没有上传,这两个包有相同的版本号,但会有不同的编译时间戳。此时有几种可能的情况:"]}),"\n",(0,h.jsxs)(n.ol,{children:["\n",(0,h.jsxs)(n.li,{children:["我忘记上传过",(0,h.jsx)(n.code,{children:"1A包"}),",",(0,h.jsx)(n.code,{children:"1B包"}),"没有实质更改且还没有客户安装。此时应当放弃",(0,h.jsx)(n.code,{children:"1B包"}),",只让客户下载安装",(0,h.jsx)(n.code,{children:"1A包"}),"。"]}),"\n",(0,h.jsxs)(n.li,{children:["我忘记上传过",(0,h.jsx)(n.code,{children:"1A包"}),",又生成了",(0,h.jsx)(n.code,{children:"1B包"}),"且已有客户安装。此时",(0,h.jsx)(n.code,{children:"1A包"}),"客户可以获取热更新,",(0,h.jsx)(n.code,{children:"1B包"}),"客户无法获取热更新。要使两批客户都能获取热更新,要么想办法通知",(0,h.jsx)(n.code,{children:"1B包"}),"客户装回",(0,h.jsx)(n.code,{children:"1A包"}),",要么重新发布一个",(0,h.jsx)(n.code,{children:"高于1.0"}),"版本的原生包且上传到 pushy 服务器,并删除",(0,h.jsx)(n.code,{children:"1.0"}),"版本的记录,此时",(0,h.jsx)(n.code,{children:"1A包"}),"和",(0,h.jsx)(n.code,{children:"1B包"}),"的客户都会收到版本过期需要下载新版本的通知。"]}),"\n",(0,h.jsxs)(n.li,{children:["我知道上传过",(0,h.jsx)(n.code,{children:"1A包"}),",但我有原生方面的修改需要打了一个新的",(0,h.jsx)(n.code,{children:"1B包"}),"。此时若将",(0,h.jsx)(n.code,{children:"1B包"}),"上传到 pushy 服务器会提示版本验证错误,因为已经存在有相同的",(0,h.jsx)(n.code,{children:"1.0"}),"版本。所以需要首先更改原生版本号再次打包,并",(0,h.jsx)(n.code,{children:"首先"}),"将此新版本上传到服务器,",(0,h.jsx)(n.code,{children:"然后"}),"分发给客户。这样",(0,h.jsx)(n.code,{children:"1.0版本"}),"和",(0,h.jsx)(n.code,{children:"新版本"}),"可以并存且都可以获得热更新。"]}),"\n"]}),"\n",(0,h.jsx)(n.p,{children:"请谨记,任何时候生成原生包,请 1)先修改原生版本号,2)并上传到 pushy 服务器,才可以正常获得热更新。"}),"\n",(0,h.jsx)(c.UW,{type:"info",children:(0,h.jsxs)(n.p,{children:["如果您是",(0,h.jsx)(n.code,{children:"高级版"}),"或",(0,h.jsx)(n.code,{children:"专业版"}),"客户,也可以考虑在管理后台的应用设置中启用",(0,h.jsx)(n.code,{children:"忽略编译时间戳"}),"。此选项仅对比版本号,不校验时间戳,可提供更宽容的热更策略,但可能消耗更多流量,适合需要管理多个分发渠道的客户。"]})}),"\n",(0,h.jsx)(n.hr,{}),"\n",(0,h.jsx)(n.h3,{id:"付费问题",children:"付费问题"}),"\n",(0,h.jsx)(n.h4,{id:"我应该选择哪个业务版本呢",children:"我应该选择哪个业务版本呢?"}),"\n",(0,h.jsxs)(n.p,{children:["其实完全无需考虑,先从最高配额的专业版开始体验(新用户注册验证通过后,将自动获得 7 天",(0,h.jsx)(n.code,{children:"专业版"}),"试用),各个版本的使用流程完全一致!当试用时间到期后,若当前版本的配额不能满足需求,可随时补差价升级到更高配额的版本。升级自动按天数计算差价,绝无额外费用。"]}),"\n",(0,h.jsxs)(n.p,{children:["目前仅有一项额外的付费专用功能,即",(0,h.jsx)(n.code,{children:"忽略编译时间戳"}),"设置(在管理后台的应用设置中),此选项仅对比版本号,不校验时间戳,可提供更宽容的热更策略,但可能消耗更多流量,适合需要管理多个分发渠道的客户。此功能目前仅支持",(0,h.jsx)(n.code,{children:"高级版"}),"和",(0,h.jsx)(n.code,{children:"专业版"}),"。"]}),"\n",(0,h.jsx)(n.hr,{}),"\n",(0,h.jsx)(n.h4,{id:"我可以试用付费版本先评估一下效果吗",children:"我可以试用付费版本先评估一下效果吗?"}),"\n",(0,h.jsxs)(n.p,{children:["新用户注册验证通过后,将自动获得 7 天",(0,h.jsx)(n.code,{children:"专业版"}),"试用。如您需要更长的评估时间,可将注册用户名、邮箱、公司(或个人)名称发送至 ",(0,h.jsx)(n.a,{href:"mailto:hi@charmlot.com",children:"hi@charmlot.com"})," ,标题注明“pushy 评估试用延长”,我们会为您酌情延长评估时间。"]}),"\n",(0,h.jsx)(n.hr,{}),"\n",(0,h.jsx)(n.h4,{id:"配额具体如何计算",children:"配额具体如何计算?"}),"\n",(0,h.jsx)(n.p,{children:"配额主要分为 3 种:"}),"\n",(0,h.jsxs)(n.ol,{children:["\n",(0,h.jsx)(n.li,{children:"可创建的应用数量,注意 iOS 和 Android 版本记做不同的应用。"}),"\n",(0,h.jsxs)(n.li,{children:["原生包数量及大小。原生包指通过",(0,h.jsx)(n.code,{children:"pushy uploadIpa/uploadApk"}),"命令上传到 Pushy 服务器上作为热更新起始版本的完整 apk/ipa 安装包。"]}),"\n",(0,h.jsxs)(n.li,{children:["热更包数量及大小。热更包指通过",(0,h.jsx)(n.code,{children:"pushy bundle"}),"所命令生成的 ppk 文件。注意这不是用户实际下载的更新文件,用户下载的是通过比对生成的增量 diff 文件(比 ppk 文件要小得多)。"]}),"\n"]}),"\n",(0,h.jsxs)(n.blockquote,{children:["\n",(0,h.jsxs)(n.p,{children:["这里有一些对",(0,h.jsx)(n.a,{href:"bestpractice#%E4%BC%98%E5%8C%96%E5%8E%9F%E7%94%9F%E5%92%8C%E7%83%AD%E6%9B%B4%E5%8C%85%E4%BD%93%E7%A7%AF",children:"包大小的优化建议"}),"可供参考。"]}),"\n"]}),"\n",(0,h.jsxs)(n.p,{children:["以上 2、3 条为针对每个应用单独计算。具体配额和费用由于运营成本可能会有调整,请以",(0,h.jsx)(n.a,{href:"/pricing",children:"价格表"}),"页面为准。已购买的用户在续费前不受调整影响。"]}),"\n",(0,h.jsx)(n.hr,{}),"\n",(0,h.jsx)(n.h4,{id:"达到配额后还可以正常使用吗",children:"达到配额后还可以正常使用吗?"}),"\n",(0,h.jsxs)(n.p,{children:["当应用、原生包、热更包数量达到配额限制后,您将无法执行相应的新增操作。但用户端仍可正常检查更新,下载已发布的更新。您可选择升级到更高配额,或是通过删除已不再使用的应用、原生包、热更包来使数量降低到配额以内,以便继续执行新增操作。",(0,h.jsx)(n.br,{}),"\n","若原生包、热更包大小超过限额,则会导致上传失败。您可以选择升级到更高配额,或是想办法进行",(0,h.jsx)(n.a,{href:"bestpractice#%E4%BC%98%E5%8C%96%E5%8E%9F%E7%94%9F%E5%92%8C%E7%83%AD%E6%9B%B4%E5%8C%85%E4%BD%93%E7%A7%AF",children:"精简优化"}),"。"]}),"\n",(0,h.jsx)(n.hr,{}),"\n",(0,h.jsx)(n.h4,{id:"我可以单独升级某项配额吗",children:"我可以单独升级某项配额吗?"}),"\n",(0,h.jsxs)(n.p,{children:["我们暂时无法为某个单项配额提供升级选项,请选择更高版本的配额。如果专业版本配额仍然不能满足需求,请通过邮件 ",(0,h.jsx)(n.a,{href:"mailto:hi@charmlot.com",children:"hi@charmlot.com"})," 与我们联系,我们将根据您的个性化需求为您定制方案。"]}),"\n",(0,h.jsx)(n.hr,{}),"\n",(0,h.jsx)(n.h4,{id:"付费业务到期后不续费现有应用还能否正常使用",children:"付费业务到期后不续费,现有应用还能否正常使用?"}),"\n",(0,h.jsx)(n.p,{children:"到期后按免费版额度执行。如您现有应用已超出配额,则必须通过删除操作降低到配额以内,方可执行新的操作(如创建应用,上传热更等),但不影响用户获取之前已发布的热更。"}),"\n",(0,h.jsx)(n.hr,{}),"\n",(0,h.jsx)(n.h4,{id:"如何获取付费的专人技术支持",children:"如何获取付费的专人技术支持?"}),"\n",(0,h.jsxs)(n.p,{children:["请将您的用户名和订单截图发送至 ",(0,h.jsx)(n.a,{href:"mailto:hi@charmlot.com",children:"hi@charmlot.com"})," ,同时提供您希望的技术联系方式(QQ、微信等),核实后会有技术专员添加您为好友。"]}),"\n",(0,h.jsx)(n.hr,{}),"\n",(0,h.jsx)(n.h4,{id:"如何开具发票",children:"如何开具发票?"}),"\n",(0,h.jsxs)(n.p,{children:["请将具体开票需求发送至 ",(0,h.jsx)(n.a,{href:"mailto:hi@charmlot.com",children:"hi@charmlot.com"})," ,并附上注册邮箱和订单截图。我们默认会回复普通电子发票到",(0,h.jsx)(n.code,{children:"注册邮箱"}),",类目为软件服务。如需指定接受邮箱或手机,请在",(0,h.jsx)(n.code,{children:"邮件正文"}),"中注明。如需要邮寄纸质发票请注明邮寄地址,邮费为到付。\n如邮件发送后三个工作日内未收到回复,请联系 QQ 客服 34731408。"]}),"\n",(0,h.jsx)(n.hr,{}),"\n",(0,h.jsx)(n.h4,{id:"可以使用银行转账付款吗",children:"可以使用银行转账付款吗?"}),"\n",(0,h.jsxs)(n.p,{children:["可以的。请对照",(0,h.jsx)(n.a,{href:"/pricing",children:"价格表"}),",将对应版本的款项转账至:"]}),"\n",(0,h.jsxs)(n.table,{children:[(0,h.jsx)(n.thead,{children:(0,h.jsxs)(n.tr,{children:[(0,h.jsx)(n.th,{children:"公司名称"}),(0,h.jsx)(n.th,{children:"武汉青罗网络科技有限公司"})]})}),(0,h.jsxs)(n.tbody,{children:[(0,h.jsxs)(n.tr,{children:[(0,h.jsx)(n.td,{children:"开户行名称"}),(0,h.jsx)(n.td,{children:"浙江网商银行"})]}),(0,h.jsxs)(n.tr,{children:[(0,h.jsx)(n.td,{children:"开户地区"}),(0,h.jsx)(n.td,{children:"浙江省杭州市"})]}),(0,h.jsxs)(n.tr,{children:[(0,h.jsx)(n.td,{children:"支行名称"}),(0,h.jsx)(n.td,{children:"浙江网商银行股份有限公司"})]}),(0,h.jsxs)(n.tr,{children:[(0,h.jsx)(n.td,{children:"账号"}),(0,h.jsx)(n.td,{children:"8888888048825564"})]})]})]}),"\n",(0,h.jsxs)(n.p,{children:["转账完成后请截图发送至 ",(0,h.jsx)(n.a,{href:"mailto:hi@charmlot.com",children:"hi@charmlot.com"})," ,并写明注册邮箱,我们将在一个工作日内开通对应服务。"]}),"\n",(0,h.jsx)(n.hr,{}),"\n",(0,h.jsx)(n.h4,{id:"可以按月付款吗",children:"可以按月付款吗?"}),"\n",(0,h.jsx)(n.p,{children:"需要月付的客户请联系 QQ 客服 34731408,月付价格为年付价格 / 8。如标准版当前价格为 800 元每年,则月付价格为 100 元每月。\n月付客户需累计支付满 500 元后才能开具发票。"}),"\n",(0,h.jsx)(n.hr,{})]})}n.default=(0,i.j)({MDXContent:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:n}=Object.assign({},(0,s.a)(),e.components);return n?(0,h.jsx)(n,{...e,children:(0,h.jsx)(l,{...e})}):l(e)},pageOpts:{filePath:"pages/docs/faq.mdx",route:"/docs/faq",frontMatter:{order:23,title:"常见问题",type:"其他"},title:"常见问题",headings:r},pageNextRoute:"/docs/faq"})}},function(e){e.O(0,[567,888,774,179],function(){return e(e.s=13477)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[755],{38819:function(e,n,d){(window.__NEXT_P=window.__NEXT_P||[]).push(["/docs/faq",function(){return d(78574)}])},78574:function(e,n,d){"use strict";d.r(n),d.d(n,{__toc:function(){return r}});var h=d(11527),i=d(86909),s=d(59087),c=d(34234);let r=[{depth:3,value:"业务问题",id:"业务问题"},{depth:4,value:"热更新究竟能否上架?",id:"热更新究竟能否上架"},{depth:4,value:"是否可以在海外使用?",id:"是否可以在海外使用"},{depth:4,value:"哪些修改可以热更新?哪些不能?",id:"哪些修改可以热更新哪些不能"},{depth:4,value:"我是否可以搭建自己的热更新服务?",id:"我是否可以搭建自己的热更新服务"},{depth:4,value:"热更新成功完成,但是重启后又回滚了是怎么回事?",id:"热更新成功完成但是重启后又回滚了是怎么回事"},{depth:4,value:"热更新报错:“热更新已暂停,原因:编译时间戳与服务器记录不一致。”",id:"热更新报错热更新已暂停原因编译时间戳与服务器记录不一致"},{depth:3,value:"付费问题",id:"付费问题"},{depth:4,value:"我应该选择哪个业务版本呢?",id:"我应该选择哪个业务版本呢"},{depth:4,value:"我可以试用付费版本先评估一下效果吗?",id:"我可以试用付费版本先评估一下效果吗"},{depth:4,value:"配额具体如何计算?",id:"配额具体如何计算"},{depth:4,value:"达到配额后还可以正常使用吗?",id:"达到配额后还可以正常使用吗"},{depth:4,value:"我可以单独升级某项配额吗?",id:"我可以单独升级某项配额吗"},{depth:4,value:"付费业务到期后不续费,现有应用还能否正常使用?",id:"付费业务到期后不续费现有应用还能否正常使用"},{depth:4,value:"如何获取付费的专人技术支持?",id:"如何获取付费的专人技术支持"},{depth:4,value:"如何开具发票?",id:"如何开具发票"},{depth:4,value:"可以使用银行转账付款吗?",id:"可以使用银行转账付款吗"},{depth:4,value:"可以按月付款吗?",id:"可以按月付款吗"}];function l(e){let n=Object.assign({p:"p",a:"a",h3:"h3",h4:"h4",hr:"hr",ul:"ul",li:"li",code:"code",ol:"ol",blockquote:"blockquote",br:"br",table:"table",thead:"thead",tr:"tr",th:"th",tbody:"tbody",td:"td"},(0,s.a)(),e.components);return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)(n.p,{children:["如果本页面没能回答您的疑问,您可以去",(0,h.jsx)(n.a,{href:"https://github.com/reactnativecn/react-native-pushy/issues",children:"issues 区"}),"或 QQ 群 729013783 提问,或给我们发",(0,h.jsx)(n.a,{href:"mailto:hi@charmlot.com",children:"邮件"}),"。"]}),"\n",(0,h.jsx)(n.h3,{id:"业务问题",children:"业务问题"}),"\n",(0,h.jsx)(n.h4,{id:"热更新究竟能否上架",children:"热更新究竟能否上架?"}),"\n",(0,h.jsx)(n.p,{children:"您可能听说过各种说法,但大量实践表明,热更新目前能够顺利上架 AppStore 和其他各种应用市场。唯一需要注意的是,在审核期间请不要发布热更新,不要让审核人员看到各种更新相关的提示和弹窗,即可顺利通过。"}),"\n",(0,h.jsx)(n.hr,{}),"\n",(0,h.jsx)(n.h4,{id:"是否可以在海外使用",children:"是否可以在海外使用?"}),"\n",(0,h.jsx)(n.p,{children:"可以的,国内外都有高速 CDN 节点。"}),"\n",(0,h.jsx)(n.hr,{}),"\n",(0,h.jsx)(n.h4,{id:"哪些修改可以热更新哪些不能",children:"哪些修改可以热更新?哪些不能?"}),"\n",(0,h.jsx)(n.p,{children:"我们把对应用的修改分为两类:"}),"\n",(0,h.jsxs)(n.ul,{children:["\n",(0,h.jsxs)(n.li,{children:["\n",(0,h.jsxs)(n.p,{children:["不可热更新 —— 原生修改,即所有需要",(0,h.jsx)(n.code,{children:"编译"}),"后才能生效的修改:"]}),"\n",(0,h.jsxs)(n.ul,{children:["\n",(0,h.jsx)(n.li,{children:"任何在 iOS 或者 Android 目录中的修改、增删。"}),"\n",(0,h.jsx)(n.li,{children:"任何含有原生代码的第三方组件的更新、修改。"}),"\n"]}),"\n"]}),"\n",(0,h.jsxs)(n.li,{children:["\n",(0,h.jsxs)(n.p,{children:["可以热更新 —— 非原生修改,即所有",(0,h.jsx)(n.code,{children:"无需编译"}),",刷新即可生效的修改:"]}),"\n",(0,h.jsxs)(n.ul,{children:["\n",(0,h.jsx)(n.li,{children:"js 代码修改,包括第三方纯 js 组件的更新、修改。"}),"\n",(0,h.jsx)(n.li,{children:"可以在 js 代码中 require/import 的资源文件,例如图片。"}),"\n"]}),"\n"]}),"\n"]}),"\n",(0,h.jsxs)(n.p,{children:["需要注意的是,即便资源文件可以热更新,但这些热更新后的资源文件会以",(0,h.jsx)(n.code,{children:"file://"}),"协议的形式提供访问,某些读取资源文件的第三方可能并不支持",(0,h.jsx)(n.code,{children:"file://"}),"协议。"]}),"\n",(0,h.jsx)(n.hr,{}),"\n",(0,h.jsx)(n.h4,{id:"我是否可以搭建自己的热更新服务",children:"我是否可以搭建自己的热更新服务?"}),"\n",(0,h.jsxs)(n.p,{children:["你可以单独使用本组件的原生部分(不包括 js 模块)和命令行工具中的",(0,h.jsx)(n.code,{children:"bundle"}),"、",(0,h.jsx)(n.code,{children:"diff"}),"、",(0,h.jsx)(n.code,{children:"diffFromIpa"}),"、",(0,h.jsx)(n.code,{children:"diffFromApk"}),"四个功能。"]}),"\n",(0,h.jsx)(n.p,{children:"这些功能都不会使用我们的热更新服务,也无需注册或登录账号。但你可能要编写自己的 js 模块来与不同的热更新服务器通讯。"}),"\n",(0,h.jsxs)(n.p,{children:["如果您有兴趣搭建私有云服务,可以",(0,h.jsx)(n.a,{href:"mailto:hi@charmlot.com",children:"邮件联系我们"}),"。"]}),"\n",(0,h.jsx)(n.hr,{}),"\n",(0,h.jsx)(n.h4,{id:"热更新成功完成但是重启后又回滚了是怎么回事",children:"热更新成功完成,但是重启后又回滚了是怎么回事?"}),"\n",(0,h.jsx)(n.p,{children:"可以正常更新,但是重启后回滚,一般有两种可能的情况:"}),"\n",(0,h.jsxs)(n.ul,{children:["\n",(0,h.jsxs)(n.li,{children:["没有正确",(0,h.jsx)(n.a,{href:"/docs/getting-started#%E9%85%8D%E7%BD%AE-bundle-url",children:"配置 bundleUrl"})]}),"\n",(0,h.jsxs)(n.li,{children:["(仅有 v10 以下版本存在此可能性,v10 及更高版本不存在此情况)没有正确",(0,h.jsx)(n.a,{href:"https://v9--pushy-site.netlify.app/docs/integration#%E9%A6%96%E6%AC%A1%E5%90%AF%E5%8A%A8%E5%9B%9E%E6%BB%9A",children:"调用 markSuccess"})]}),"\n"]}),"\n",(0,h.jsxs)(n.p,{children:["如果你确定上述两个步骤都正确无误,请在",(0,h.jsx)(n.a,{href:"https://github.com/reactnativecn/react-native-pushy/issues",children:"issues 区"}),"给我们留言反馈。"]}),"\n",(0,h.jsx)(n.hr,{}),"\n",(0,h.jsx)(n.h4,{id:"热更新报错热更新已暂停原因编译时间戳与服务器记录不一致",children:"热更新报错:“热更新已暂停,原因:编译时间戳与服务器记录不一致。”"}),"\n",(0,h.jsxs)(n.p,{children:["当您每次编译产生一个原生包时,其中都会记录一个编译时间戳",(0,h.jsx)(n.code,{children:"buildTime"}),"(可以使用",(0,h.jsx)(n.code,{children:"pushy parseIpa a.ipa"}),"或是",(0,h.jsx)(n.code,{children:"pushy parseApk a.apk"}),"命令来查看)。如果您需要把这个包发给客户并希望使用热更新功能,那么就需要使用 upload 命令来上传到我们的服务器,而服务器端会记录这个包的版本号和编译时间戳以便后续比对记录。"]}),"\n",(0,h.jsxs)(n.p,{children:["举例来说,假如我已经上传了一个 1.0 版本原生包(",(0,h.jsx)(n.code,{children:"1A包"}),"),但后来由于种种原因我又重新打包了(",(0,h.jsx)(n.code,{children:"1B包"}),")但没有上传,这两个包有相同的版本号,但会有不同的编译时间戳。此时有几种可能的情况:"]}),"\n",(0,h.jsxs)(n.ol,{children:["\n",(0,h.jsxs)(n.li,{children:["我忘记上传过",(0,h.jsx)(n.code,{children:"1A包"}),",",(0,h.jsx)(n.code,{children:"1B包"}),"没有实质更改且还没有客户安装。此时应当放弃",(0,h.jsx)(n.code,{children:"1B包"}),",只让客户下载安装",(0,h.jsx)(n.code,{children:"1A包"}),"。"]}),"\n",(0,h.jsxs)(n.li,{children:["我忘记上传过",(0,h.jsx)(n.code,{children:"1A包"}),",又生成了",(0,h.jsx)(n.code,{children:"1B包"}),"且已有客户安装。此时",(0,h.jsx)(n.code,{children:"1A包"}),"客户可以获取热更新,",(0,h.jsx)(n.code,{children:"1B包"}),"客户无法获取热更新。要使两批客户都能获取热更新,要么想办法通知",(0,h.jsx)(n.code,{children:"1B包"}),"客户装回",(0,h.jsx)(n.code,{children:"1A包"}),",要么重新发布一个",(0,h.jsx)(n.code,{children:"高于1.0"}),"版本的原生包且上传到 pushy 服务器,并删除",(0,h.jsx)(n.code,{children:"1.0"}),"版本的记录,此时",(0,h.jsx)(n.code,{children:"1A包"}),"和",(0,h.jsx)(n.code,{children:"1B包"}),"的客户都会收到版本过期需要下载新版本的通知。"]}),"\n",(0,h.jsxs)(n.li,{children:["我知道上传过",(0,h.jsx)(n.code,{children:"1A包"}),",但我有原生方面的修改需要打了一个新的",(0,h.jsx)(n.code,{children:"1B包"}),"。此时若将",(0,h.jsx)(n.code,{children:"1B包"}),"上传到 pushy 服务器会提示版本验证错误,因为已经存在有相同的",(0,h.jsx)(n.code,{children:"1.0"}),"版本。所以需要首先更改原生版本号再次打包,并",(0,h.jsx)(n.code,{children:"首先"}),"将此新版本上传到服务器,",(0,h.jsx)(n.code,{children:"然后"}),"分发给客户。这样",(0,h.jsx)(n.code,{children:"1.0版本"}),"和",(0,h.jsx)(n.code,{children:"新版本"}),"可以并存且都可以获得热更新。"]}),"\n"]}),"\n",(0,h.jsx)(n.p,{children:"请谨记,任何时候生成原生包,请 1)先修改原生版本号,2)并上传到 pushy 服务器,才可以正常获得热更新。"}),"\n",(0,h.jsx)(c.UW,{type:"info",children:(0,h.jsxs)(n.p,{children:["如果您是",(0,h.jsx)(n.code,{children:"高级版"}),"或",(0,h.jsx)(n.code,{children:"专业版"}),"客户,也可以考虑在管理后台的应用设置中启用",(0,h.jsx)(n.code,{children:"忽略编译时间戳"}),"。此选项仅对比版本号,不校验时间戳,可提供更宽容的热更策略,但可能消耗更多流量,适合需要管理多个分发渠道的客户。"]})}),"\n",(0,h.jsx)(n.hr,{}),"\n",(0,h.jsx)(n.h3,{id:"付费问题",children:"付费问题"}),"\n",(0,h.jsx)(n.h4,{id:"我应该选择哪个业务版本呢",children:"我应该选择哪个业务版本呢?"}),"\n",(0,h.jsxs)(n.p,{children:["其实完全无需考虑,先从最高配额的专业版开始体验(新用户注册验证通过后,将自动获得 7 天",(0,h.jsx)(n.code,{children:"专业版"}),"试用),各个版本的使用流程完全一致!当试用时间到期后,若当前版本的配额不能满足需求,可随时补差价升级到更高配额的版本。升级自动按天数计算差价,绝无额外费用。"]}),"\n",(0,h.jsxs)(n.p,{children:["目前仅有一项额外的付费专用功能,即",(0,h.jsx)(n.code,{children:"忽略编译时间戳"}),"设置(在管理后台的应用设置中),此选项仅对比版本号,不校验时间戳,可提供更宽容的热更策略,但可能消耗更多流量,适合需要管理多个分发渠道的客户。此功能目前仅支持",(0,h.jsx)(n.code,{children:"高级版"}),"和",(0,h.jsx)(n.code,{children:"专业版"}),"。"]}),"\n",(0,h.jsx)(n.hr,{}),"\n",(0,h.jsx)(n.h4,{id:"我可以试用付费版本先评估一下效果吗",children:"我可以试用付费版本先评估一下效果吗?"}),"\n",(0,h.jsxs)(n.p,{children:["新用户注册验证通过后,将自动获得 7 天",(0,h.jsx)(n.code,{children:"专业版"}),"试用。如您需要更长的评估时间,可将注册用户名、邮箱、公司(或个人)名称发送至 ",(0,h.jsx)(n.a,{href:"mailto:hi@charmlot.com",children:"hi@charmlot.com"})," ,标题注明“pushy 评估试用延长”,我们会为您酌情延长评估时间。"]}),"\n",(0,h.jsx)(n.hr,{}),"\n",(0,h.jsx)(n.h4,{id:"配额具体如何计算",children:"配额具体如何计算?"}),"\n",(0,h.jsx)(n.p,{children:"配额主要分为 3 种:"}),"\n",(0,h.jsxs)(n.ol,{children:["\n",(0,h.jsx)(n.li,{children:"可创建的应用数量,注意 iOS 和 Android 版本记做不同的应用。"}),"\n",(0,h.jsxs)(n.li,{children:["原生包数量及大小。原生包指通过",(0,h.jsx)(n.code,{children:"pushy uploadIpa/uploadApk"}),"命令上传到 Pushy 服务器上作为热更新起始版本的完整 apk/ipa 安装包。"]}),"\n",(0,h.jsxs)(n.li,{children:["热更包数量及大小。热更包指通过",(0,h.jsx)(n.code,{children:"pushy bundle"}),"所命令生成的 ppk 文件。注意这不是用户实际下载的更新文件,用户下载的是通过比对生成的增量 diff 文件(比 ppk 文件要小得多)。"]}),"\n"]}),"\n",(0,h.jsxs)(n.blockquote,{children:["\n",(0,h.jsxs)(n.p,{children:["这里有一些对",(0,h.jsx)(n.a,{href:"bestpractice#%E4%BC%98%E5%8C%96%E5%8E%9F%E7%94%9F%E5%92%8C%E7%83%AD%E6%9B%B4%E5%8C%85%E4%BD%93%E7%A7%AF",children:"包大小的优化建议"}),"可供参考。"]}),"\n"]}),"\n",(0,h.jsxs)(n.p,{children:["以上 2、3 条为针对每个应用单独计算。具体配额和费用由于运营成本可能会有调整,请以",(0,h.jsx)(n.a,{href:"/pricing",children:"价格表"}),"页面为准。已购买的用户在续费前不受调整影响。"]}),"\n",(0,h.jsx)(n.hr,{}),"\n",(0,h.jsx)(n.h4,{id:"达到配额后还可以正常使用吗",children:"达到配额后还可以正常使用吗?"}),"\n",(0,h.jsxs)(n.p,{children:["当应用、原生包、热更包数量达到配额限制后,您将无法执行相应的新增操作。但用户端仍可正常检查更新,下载已发布的更新。您可选择升级到更高配额,或是通过删除已不再使用的应用、原生包、热更包来使数量降低到配额以内,以便继续执行新增操作。",(0,h.jsx)(n.br,{}),"\n","若原生包、热更包大小超过限额,则会导致上传失败。您可以选择升级到更高配额,或是想办法进行",(0,h.jsx)(n.a,{href:"bestpractice#%E4%BC%98%E5%8C%96%E5%8E%9F%E7%94%9F%E5%92%8C%E7%83%AD%E6%9B%B4%E5%8C%85%E4%BD%93%E7%A7%AF",children:"精简优化"}),"。"]}),"\n",(0,h.jsx)(n.hr,{}),"\n",(0,h.jsx)(n.h4,{id:"我可以单独升级某项配额吗",children:"我可以单独升级某项配额吗?"}),"\n",(0,h.jsxs)(n.p,{children:["我们暂时无法为某个单项配额提供升级选项,请选择更高版本的配额。如果专业版本配额仍然不能满足需求,请通过邮件 ",(0,h.jsx)(n.a,{href:"mailto:hi@charmlot.com",children:"hi@charmlot.com"})," 与我们联系,我们将根据您的个性化需求为您定制方案。"]}),"\n",(0,h.jsx)(n.hr,{}),"\n",(0,h.jsx)(n.h4,{id:"付费业务到期后不续费现有应用还能否正常使用",children:"付费业务到期后不续费,现有应用还能否正常使用?"}),"\n",(0,h.jsx)(n.p,{children:"到期后按免费版额度执行。如您现有应用已超出配额,则必须通过删除操作降低到配额以内,方可执行新的操作(如创建应用,上传热更等),但不影响用户获取之前已发布的热更。"}),"\n",(0,h.jsx)(n.hr,{}),"\n",(0,h.jsx)(n.h4,{id:"如何获取付费的专人技术支持",children:"如何获取付费的专人技术支持?"}),"\n",(0,h.jsxs)(n.p,{children:["请将您的用户名和订单截图发送至 ",(0,h.jsx)(n.a,{href:"mailto:hi@charmlot.com",children:"hi@charmlot.com"})," ,同时提供您希望的技术联系方式(QQ、微信等),核实后会有技术专员添加您为好友。"]}),"\n",(0,h.jsx)(n.hr,{}),"\n",(0,h.jsx)(n.h4,{id:"如何开具发票",children:"如何开具发票?"}),"\n",(0,h.jsxs)(n.p,{children:["请将具体开票需求发送至 ",(0,h.jsx)(n.a,{href:"mailto:hi@charmlot.com",children:"hi@charmlot.com"})," ,并附上注册邮箱和订单截图。我们默认会回复普通电子发票到",(0,h.jsx)(n.code,{children:"注册邮箱"}),",类目为软件服务。如需指定接受邮箱或手机,请在",(0,h.jsx)(n.code,{children:"邮件正文"}),"中注明。如需要邮寄纸质发票请注明邮寄地址,邮费为到付。\n如邮件发送后三个工作日内未收到回复,请联系 QQ 客服 34731408。"]}),"\n",(0,h.jsx)(n.hr,{}),"\n",(0,h.jsx)(n.h4,{id:"可以使用银行转账付款吗",children:"可以使用银行转账付款吗?"}),"\n",(0,h.jsxs)(n.p,{children:["可以的。请对照",(0,h.jsx)(n.a,{href:"/pricing",children:"价格表"}),",将对应版本的款项转账至:"]}),"\n",(0,h.jsxs)(n.table,{children:[(0,h.jsx)(n.thead,{children:(0,h.jsxs)(n.tr,{children:[(0,h.jsx)(n.th,{children:"公司名称"}),(0,h.jsx)(n.th,{children:"武汉青罗网络科技有限公司"})]})}),(0,h.jsxs)(n.tbody,{children:[(0,h.jsxs)(n.tr,{children:[(0,h.jsx)(n.td,{children:"开户行名称"}),(0,h.jsx)(n.td,{children:"浙江网商银行"})]}),(0,h.jsxs)(n.tr,{children:[(0,h.jsx)(n.td,{children:"开户地区"}),(0,h.jsx)(n.td,{children:"浙江省杭州市"})]}),(0,h.jsxs)(n.tr,{children:[(0,h.jsx)(n.td,{children:"支行名称"}),(0,h.jsx)(n.td,{children:"浙江网商银行股份有限公司"})]}),(0,h.jsxs)(n.tr,{children:[(0,h.jsx)(n.td,{children:"账号"}),(0,h.jsx)(n.td,{children:"8888888048825564"})]})]})]}),"\n",(0,h.jsxs)(n.p,{children:["转账完成后请截图发送至 ",(0,h.jsx)(n.a,{href:"mailto:hi@charmlot.com",children:"hi@charmlot.com"})," ,并写明注册邮箱,我们将在一个工作日内开通对应服务。"]}),"\n",(0,h.jsx)(n.hr,{}),"\n",(0,h.jsx)(n.h4,{id:"可以按月付款吗",children:"可以按月付款吗?"}),"\n",(0,h.jsx)(n.p,{children:"需要月付的客户请联系 QQ 客服 34731408,月付价格为年付价格 / 8。如标准版当前价格为 800 元每年,则月付价格为 100 元每月。\n月付客户需累计支付满 500 元后才能开具发票。"}),"\n",(0,h.jsx)(n.hr,{})]})}n.default=(0,i.j)({MDXContent:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:n}=Object.assign({},(0,s.a)(),e.components);return n?(0,h.jsx)(n,{...e,children:(0,h.jsx)(l,{...e})}):l(e)},pageOpts:{filePath:"pages/docs/faq.mdx",route:"/docs/faq",frontMatter:{order:23,title:"常见问题",type:"其他"},title:"常见问题",headings:r},pageNextRoute:"/docs/faq"})}},function(e){e.O(0,[909,888,774,179],function(){return e(e.s=38819)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/docs/getting-started-7572edc9b91f5ade.js b/_next/static/chunks/pages/docs/getting-started-7572edc9b91f5ade.js deleted file mode 100644 index bc5cd2d..0000000 --- a/_next/static/chunks/pages/docs/getting-started-7572edc9b91f5ade.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[153],{30876:function(s,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/docs/getting-started",function(){return n(20797)}])},20797:function(s,e,n){"use strict";n.r(e),n.d(e,{__toc:function(){return a}});var l=n(11527),i=n(38567),r=n(87088),o=n(42416);let a=[{depth:3,value:"安装",id:"安装"},{depth:3,value:"手动 link",id:"手动-link"},{depth:4,value:"iOS",id:"ios"},{depth:4,value:"Android",id:"android"},{depth:3,value:"配置 Bundle URL",id:"配置-bundle-url"},{depth:4,value:"iOS",id:"ios-1"},{depth:4,value:"Android",id:"android-1"},{depth:3,value:"禁用 android 的 crunch 优化",id:"禁用-android-的-crunch-优化"},{depth:3,value:"登录与创建应用",id:"登录与创建应用"}];function c(s){let e=Object.assign({p:"p",a:"a",code:"code",h3:"h3",pre:"pre",span:"span",h4:"h4",details:"details",summary:"summary",ol:"ol",li:"li",ul:"ul"},(0,r.a)(),s.components);return o.mQ||t("Tabs",!1),o.mQ.Tab||t("Tabs.Tab",!0),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(o.UW,{type:"info",children:(0,l.jsxs)(e.p,{children:["请注意,当前版本的api经过了完全重构,与之前的版本(v10.0以下)不兼容。如果你需要查看之前版本的文档,请点击",(0,l.jsx)(e.a,{href:"https://v9--pushy-site.netlify.app/",children:"这里"})]})}),"\n",(0,l.jsxs)(e.p,{children:["首先你应该有一个基于 React Native 开发的应用,我们把具有 package.json 的目录叫做你的",(0,l.jsx)(e.code,{children:"应用根目录"}),"。\n如果你还没有初始化应用,请参阅",(0,l.jsx)(e.a,{href:"https://reactnative.cn/docs/getting-started",children:"开始使用 React Native"}),"。"]}),"\n",(0,l.jsxs)(e.p,{children:["我们假设你已经拥有了开发 React Native 应用的一切环境,包括",(0,l.jsx)(e.code,{children:"Node.js"}),"、",(0,l.jsx)(e.code,{children:"Xcode"}),"、",(0,l.jsx)(e.code,{children:"Android SDK"}),"等等。"]}),"\n",(0,l.jsxs)(o.Rg,{children:[(0,l.jsx)(e.h3,{id:"安装",children:"安装"}),(0,l.jsx)(e.p,{children:"在你的项目根目录下运行以下命令:"}),(0,l.jsx)(e.pre,{"data-language":"bash","data-theme":"default",children:(0,l.jsxs)(e.code,{"data-language":"bash","data-theme":"default",children:[(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"# 先全局安装命令行工具,每台电脑只用装一次"})}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"npm"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"i"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"-g"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"react-native-update-cli"})]}),"\n",(0,l.jsx)(e.span,{className:"line",children:" "}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"# 然后在项目目录中安装热更新模块"})}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"npm"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"i"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"react-native-update"})]}),"\n",(0,l.jsx)(e.span,{className:"line",children:" "}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"# 然后进入ios目录安装iOS模块"})}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"cd"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"ios"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:"&&"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"pod"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"install"})]}),"\n",(0,l.jsx)(e.span,{className:"line",children:" "})]})}),(0,l.jsx)(o.UW,{type:"info",children:(0,l.jsxs)(e.p,{children:["如果下载极慢或者显示网络失败,请设置使用淘宝镜像 ",(0,l.jsx)(e.code,{children:"npx nrm use taobao"})]})}),(0,l.jsx)(o.UW,{type:"warning",children:(0,l.jsxs)(e.p,{children:["注意请不要混用",(0,l.jsx)(e.code,{children:"npm/yarn/pnpm"}),"等包管理器及对应的",(0,l.jsx)(e.code,{children:"lock"}),"文件,团队成员请坚持使用同一包管理器,且仅保留统一格式的",(0,l.jsx)(e.code,{children:"lock"}),"文件"]})}),(0,l.jsx)(o.UW,{type:"info",children:(0,l.jsx)(e.p,{children:"请记得,任意在 ios 和 android 目录下的修改,一定要重新编译(使用 npx\nreact-native run-ios 或 run-android 命令编译,或在 Xcode/Android Studio\n中重新编译)才能生效。"})}),(0,l.jsx)(e.h3,{id:"手动-link",children:"手动 link"}),(0,l.jsx)(e.p,{children:"如果 RN 版本 >= 0.60 则不需要此手动 link 步骤。"}),(0,l.jsx)(o.UW,{type:"warning",children:(0,l.jsx)(e.p,{children:"注意:如果是混编 RN\n项目,或monorepo,或任何其他自定义的情况,由于自定义的配置可能不完整或不适应RN的目录结构,导致自动\nlink 的功能可能不能正常工作。此时即便 RN 版本 >= 0.60,你可能也需要执行手动\nlink 操作。"})}),(0,l.jsx)(e.h4,{id:"ios",children:"iOS"}),(0,l.jsxs)(e.details,{children:[(0,l.jsx)(e.summary,{children:"RN < 0.60且使用CocoaPods(推荐)"}),(0,l.jsxs)(e.ol,{children:["\n",(0,l.jsx)(e.li,{children:"在 ios/Podfile 中添加"}),"\n"]}),(0,l.jsx)(e.pre,{"data-language":"text","data-theme":"default",children:(0,l.jsx)(e.code,{"data-language":"text","data-theme":"default",children:(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"pod 'react-native-update', path: '../node_modules/react-native-update'"})})})}),(0,l.jsxs)(e.ol,{start:"2",children:["\n",(0,l.jsxs)(e.li,{children:["在项目的 ios 目录下运行",(0,l.jsx)(e.code,{children:"pod install"})]}),"\n",(0,l.jsx)(e.li,{children:"重新编译"}),"\n"]})]}),(0,l.jsxs)(e.details,{children:[(0,l.jsx)(e.summary,{children:"RN < 0.60且不使用CocoaPods"}),(0,l.jsxs)(e.ol,{children:["\n",(0,l.jsxs)(e.li,{children:["在 XCode 中的 Project Navigator 里,右键点击",(0,l.jsx)(e.code,{children:"Libraries"})," ➜ ",(0,l.jsx)(e.code,{children:"Add Files to [你的工程名]"})]}),"\n",(0,l.jsxs)(e.li,{children:["进入",(0,l.jsx)(e.code,{children:"node_modules"})," ➜ ",(0,l.jsx)(e.code,{children:"react-native-update"})," ➜ ",(0,l.jsx)(e.code,{children:"ios 并选中"}),"RCTPushy.xcodeproj`"]}),"\n",(0,l.jsxs)(e.li,{children:["在 XCode 中的 project navigator 里,选中你的工程,在 ",(0,l.jsx)(e.code,{children:"Build Phases"})," ➜ ",(0,l.jsx)(e.code,{children:"Link Binary With Libraries"})," 中添加 ",(0,l.jsx)(e.code,{children:"libRCTPushy.a"}),"、",(0,l.jsx)(e.code,{children:"libz.tbd"}),"、",(0,l.jsx)(e.code,{children:"libbz2.1.0.tbd"})]}),"\n",(0,l.jsxs)(e.li,{children:["继续在",(0,l.jsx)(e.code,{children:"Build Settings"}),"里搜索",(0,l.jsx)(e.code,{children:"Header Search Path"}),",添加",(0,l.jsx)(e.code,{children:"$(SRCROOT)/../node_modules/react-native-update/ios"}),",勾选",(0,l.jsx)(e.code,{children:"recursive"}),"。"]}),"\n",(0,l.jsxs)(e.li,{children:["在",(0,l.jsx)(e.code,{children:"Build Phases"}),"添加一个",(0,l.jsx)(e.code,{children:"New Run Script Phase"}),"运行脚本,内容如下"]}),"\n"]}),(0,l.jsx)(e.pre,{"data-language":"text","data-theme":"default",children:(0,l.jsxs)(e.code,{"data-language":"text","data-theme":"default",children:[(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"#!/bin/bash"})}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"set -x"})}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:'DEST="../node_modules/react-native-update/ios/"'})}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:'date +%s > "$DEST/pushy_build_time.txt"'})})]})}),(0,l.jsxs)(e.ol,{start:"7",children:["\n",(0,l.jsxs)(e.li,{children:["尝试编译一下,顺利的话就会在",(0,l.jsx)(e.code,{children:"../node_modules/react-native-update/ios/"}),"文件夹下面生成一个",(0,l.jsx)(e.code,{children:"pushy_build_time.txt"}),"文件。然后在",(0,l.jsx)(e.code,{children:"Copy Bundle Resources"}),"里把生成的",(0,l.jsx)(e.code,{children:"pushy_build_time.txt"}),"文件添加进去。"]}),"\n"]})]}),(0,l.jsx)(e.h4,{id:"android",children:"Android"}),(0,l.jsxs)(e.details,{children:[(0,l.jsx)(e.summary,{children:"RN < 0.60 或其他不能自动 link 的情况"}),(0,l.jsxs)(e.ol,{children:["\n",(0,l.jsxs)(e.li,{children:["\n",(0,l.jsxs)(e.p,{children:["在",(0,l.jsx)(e.code,{children:"android/settings.gradle"}),"中添加如下代码:"]}),"\n",(0,l.jsx)(e.pre,{"data-language":"text","data-theme":"default",children:(0,l.jsxs)(e.code,{"data-language":"text","data-theme":"default",children:[(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"include ':react-native-update'"})}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"project(':react-native-update').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-update/android')"})})]})}),"\n"]}),"\n",(0,l.jsxs)(e.li,{children:["\n",(0,l.jsxs)(e.p,{children:["在",(0,l.jsx)(e.code,{children:"android/app/build.gradle"}),"的 dependencies 部分增加如下代码:"]}),"\n",(0,l.jsx)(e.pre,{"data-language":"text","data-theme":"default",children:(0,l.jsx)(e.code,{"data-language":"text","data-theme":"default",children:(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"implementation project(':react-native-update')"})})})}),"\n"]}),"\n",(0,l.jsxs)(e.li,{children:["\n",(0,l.jsxs)(e.p,{children:["打开",(0,l.jsx)(e.code,{children:"android/app/src/main/java/[...]/MainApplication.java"}),","]}),"\n"]}),"\n"]}),(0,l.jsxs)(e.ul,{children:["\n",(0,l.jsxs)(e.li,{children:["在文件开头增加 ",(0,l.jsx)(e.code,{children:"import cn.reactnative.modules.update.UpdatePackage;"})]}),"\n",(0,l.jsxs)(e.li,{children:["在",(0,l.jsx)(e.code,{children:"getPackages()"})," 方法中增加 ",(0,l.jsx)(e.code,{children:"new UpdatePackage()"}),"(注意上一行可能要增加一个逗号)"]}),"\n"]})]}),(0,l.jsx)(e.h3,{id:"配置-bundle-url",children:"配置 Bundle URL"}),(0,l.jsx)(e.p,{children:"注意此步骤无论任何版本,目前都需要手动配置。"}),(0,l.jsx)(e.h4,{id:"ios-1",children:"iOS"}),(0,l.jsx)(e.p,{children:"在你的 AppDelegate.mm 或 AppDelegate.m 文件(不同 RN 版本可能后缀名不同)中增加如下代码:"}),(0,l.jsx)(e.pre,{"data-language":"c","data-theme":"default",children:(0,l.jsxs)(e.code,{"data-language":"c","data-theme":"default",children:[(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// ... 其它代码"})}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"#import"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"AppDelegate.h"'})]}),"\n",(0,l.jsx)(e.span,{className:"line",children:" "}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"#import"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"RCTPushy.h"'}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// <-- import头文件,注意要放到if条件外面"})]}),"\n",(0,l.jsx)(e.span,{className:"line",children:" "}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 可能项目里有一些条件编译语句,例如有些版本RN自带的flipper"})}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// #if DEBUG"})}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:'// 注意**不要**在这里面引入"RCTPushy.h"'})}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// #import "})}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// ..."})}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// #endif"})}),"\n",(0,l.jsx)(e.span,{className:"line",children:" "}),"\n",(0,l.jsx)(e.span,{className:"line",children:" "}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 修改sourceURLForBridge方法"})}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"-"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" (NSURL "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"*"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:")sourceURLForBridge:(RCTBridge "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"*"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:")bridge"})]}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{"})}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"#if"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"DEBUG"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 原先DEBUG这里的写法不作修改(所以DEBUG模式下不可热更新)"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"return"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"index"'}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"];"})]}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"#else"})}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"return"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" [RCTPushy bundleURL];"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:" // <-- 把这里非DEBUG的情况替换为热更新bundle"})]}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"#endif"})}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})}),"\n",(0,l.jsx)(e.span,{className:"line",children:" "})]})}),(0,l.jsx)(e.h4,{id:"android-1",children:"Android"}),(0,l.jsxs)(e.p,{children:["在 MainApplication 中增加如下代码(如果是混编原生的项目或其他原因没有使用 ReactApplication,请",(0,l.jsx)(e.a,{href:"api#updatecontextsetcustominstancemanagerreactinstancemanager-instancemanager",children:"使用此 api 集成"}),"):"]}),(0,l.jsxs)(o.mQ,{items:["Kotlin","Java"],children:[(0,l.jsx)(o.mQ.Tab,{children:(0,l.jsx)(e.pre,{"data-language":"kotlin","data-theme":"default",children:(0,l.jsxs)(e.code,{"data-language":"kotlin","data-theme":"default",children:[(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// ... 其它代码"})}),"\n",(0,l.jsx)(e.span,{className:"line",children:" "}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// ↓↓↓请注意不要少了这句import"})}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"import"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" cn.reactnative.modules.update.UpdateContext;"})]}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// ↑↑↑"})}),"\n",(0,l.jsx)(e.span,{className:"line",children:" "}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"class"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"MainApplication"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" : "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"Application"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"(), "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"ReactApplication"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,l.jsx)(e.span,{className:"line",children:" "}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"override"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"val"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" reactNativeHost: "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"ReactNativeHost"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" object : "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"DefaultReactNativeHost"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"this"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:") {"})]}),"\n",(0,l.jsx)(e.span,{className:"line",children:" "}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// ↓↓↓将下面这一段添加到 DefaultReactNativeHost 内部!"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"override"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"fun"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"getJSBundleFile"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"(): "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"String"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"? {"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"return"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" UpdateContext."}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"getBundleUrl"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"this@MainApplication"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:")"})]}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// ↑↑↑"})]}),"\n",(0,l.jsx)(e.span,{className:"line",children:" "}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// ...其他代码"})]}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})})]})})}),(0,l.jsx)(o.mQ.Tab,{children:(0,l.jsx)(e.pre,{"data-language":"java","data-theme":"default",children:(0,l.jsxs)(e.code,{"data-language":"java","data-theme":"default",children:[(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// ... 其它代码"})}),"\n",(0,l.jsx)(e.span,{className:"line",children:" "}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// ↓↓↓请注意不要少了这句import"})}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"import"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"cn"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:"."}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"reactnative"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:"."}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"modules"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:"."}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"update"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:"."}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"UpdateContext"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// ↑↑↑"})}),"\n",(0,l.jsx)(e.span,{className:"line",children:" "}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"public"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"class"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"MainApplication"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"extends"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"Application"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"implements"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"ReactApplication"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,l.jsx)(e.span,{className:"line",children:" "}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"private"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"final"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"ReactNativeHost"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" mReactNativeHost "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 老版本 RN 这里可能是 new ReactNativeHost(this)"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"new"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"DefaultReactNativeHost("}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"this"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:")"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,l.jsx)(e.span,{className:"line",children:" "}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// ↓↓↓将下面这一段添加到 DefaultReactNativeHost 内部!"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" @"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"Override"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"protected"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"String"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"getJSBundleFile"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"() {"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"return"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"UpdateContext"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:"."}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"getBundleUrl"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"MainApplication"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:"."}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"this"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:");"})]}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// ↑↑↑"})]}),"\n",(0,l.jsx)(e.span,{className:"line",children:" "}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// ...其他代码"})]}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})})]})})})]}),(0,l.jsx)(o.UW,{type:"info",children:(0,l.jsx)(e.p,{children:"请记得,任意在 ios 和 android 目录下的修改,一定要重新编译(npx react-native\nrun-ios 或 run-android 命令编译,或在 Xcode/Android Studio\n中重新编译)才能生效。"})}),(0,l.jsx)(e.h3,{id:"禁用-android-的-crunch-优化",children:"禁用 android 的 crunch 优化"}),(0,l.jsxs)(e.p,{children:["android 会在生成 apk 时自动对 png 图片进行压缩,此操作既耗时又影响增量补丁的生成。为了保证补丁能正常生成,您需要在",(0,l.jsx)(e.code,{children:"android/app/build.gradle"}),"中关闭此操作:"]}),(0,l.jsx)(e.pre,{"data-language":"gradle","data-theme":"default",children:(0,l.jsxs)(e.code,{"data-language":"gradle","data-theme":"default",children:[(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"..."})}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"android {"})}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ..."})}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" signingConfigs { ... }"})}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" buildTypes {"})}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" release {"})}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ..."})}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" // 添加下面这行以禁用crunch"})}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" crunchPngs false"})}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"..."})})]})}),(0,l.jsx)(e.h3,{id:"登录与创建应用",children:"登录与创建应用"}),(0,l.jsxs)(e.p,{children:["首先请在 ",(0,l.jsx)(e.a,{href:"https://update.reactnative.cn",children:"https://update.reactnative.cn"})," 注册帐号,然后在你的项目根目录下运行以下命令:"]}),(0,l.jsx)(e.pre,{"data-language":"bash","data-theme":"default",children:(0,l.jsxs)(e.code,{"data-language":"bash","data-theme":"default",children:[(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"$"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"pushy"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"login"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"email:"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"<"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"输入你的注册邮"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"箱"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:">"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"password:"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"<"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"输入你的密"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"码"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:">"})]})]})}),(0,l.jsxs)(e.p,{children:["这会在项目文件夹下创建一个",(0,l.jsx)(e.code,{children:".update"}),"文件,注意不要把这个文件上传到 Git 等 CVS 系统上。你可以在",(0,l.jsx)(e.code,{children:".gitignore"}),"末尾增加一行",(0,l.jsx)(e.code,{children:".update"}),"来忽略这个文件。"]}),(0,l.jsx)(e.p,{children:"登录之后可以创建应用。注意 iOS 平台和安卓平台需要分别创建:"}),(0,l.jsx)(e.pre,{"data-language":"bash","data-theme":"default",children:(0,l.jsxs)(e.code,{"data-language":"bash","data-theme":"default",children:[(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"$"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"pushy"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"createApp"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"--platform"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"ios"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"App"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"Name:"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"<"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"输入应用名"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"字"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:">"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"$"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"pushy"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"createApp"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"--platform"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"android"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"App"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"Name:"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"<"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"输入应用名"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"字"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:">"})]})]})}),(0,l.jsx)(o.UW,{type:"info",children:"两次输入的名字可以相同,这没有关系。"}),(0,l.jsx)(e.p,{children:"如果你已经在网页端或者其它地方创建过应用,也可以直接选择应用:"}),(0,l.jsx)(e.pre,{"data-language":"bash","data-theme":"default",children:(0,l.jsxs)(e.code,{"data-language":"bash","data-theme":"default",children:[(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"$"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"pushy"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"selectApp"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"--platform"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"ios"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"1"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:") 鱼多多("}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"ios"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:")"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"2"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:") 招财旺("}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"ios"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:")"})]}),"\n",(0,l.jsx)(e.span,{className:"line",children:" "}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"Total"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"2"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"ios"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"apps"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"Enter"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"appId:"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"<"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"输入应用前面的编"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"号"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:">"})]})]})}),(0,l.jsxs)(e.p,{children:["选择或者创建过应用后,你将可以在文件夹下看到",(0,l.jsx)(e.code,{children:"update.json"}),"文件,其内容类似如下形式:"]}),(0,l.jsx)(e.pre,{"data-language":"bash","data-theme":"default",children:(0,l.jsxs)(e.code,{"data-language":"bash","data-theme":"default",children:[(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{"})}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:'"ios"'}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"{"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:'"appId"'}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"1"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:","})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:'"appKey"'}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"<一串随机字符串>"'})]}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" },"})}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:'"android"'}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"{"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:'"appId"'}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"2"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:","})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:'"appKey"'}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"<一串随机字符串>"'})]}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})})]})}),(0,l.jsxs)(e.p,{children:["你可以安全的把",(0,l.jsx)(e.code,{children:"update.json"}),"上传到 Git 等 CVS 系统上,与你的团队共享这个文件,它不包含任何敏感信息。当然,他们在使用任何功能之前,都必须首先输入",(0,l.jsx)(e.code,{children:"pushy login"}),"进行登录。"]}),(0,l.jsxs)(e.p,{children:["至此应用的创建/选择就已经成功了。下一步,你需要给代码添加相应的功能,请参阅",(0,l.jsx)(e.a,{href:"integration",children:"代码集成"}),"。"]})]})]})}function t(s,e){throw Error("Expected "+(e?"component":"object")+" `"+s+"` to be defined: you likely forgot to import, pass, or provide it.")}e.default=(0,i.j)({MDXContent:function(){let s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:e}=Object.assign({},(0,r.a)(),s.components);return e?(0,l.jsx)(e,{...s,children:(0,l.jsx)(c,{...s})}):c(s)},pageOpts:{filePath:"pages/docs/getting-started.mdx",route:"/docs/getting-started",frontMatter:{order:0,title:"安装配置",type:"快速入门"},title:"安装配置",headings:a},pageNextRoute:"/docs/getting-started"})}},function(s){s.O(0,[567,888,774,179],function(){return s(s.s=30876)}),_N_E=s.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/docs/getting-started-a6d63edf07f358f0.js b/_next/static/chunks/pages/docs/getting-started-a6d63edf07f358f0.js new file mode 100644 index 0000000..9c24507 --- /dev/null +++ b/_next/static/chunks/pages/docs/getting-started-a6d63edf07f358f0.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[153],{552:function(s,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/docs/getting-started",function(){return n(66533)}])},66533:function(s,e,n){"use strict";n.r(e),n.d(e,{__toc:function(){return a}});var l=n(11527),i=n(86909),r=n(59087),o=n(34234);let a=[{depth:3,value:"安装",id:"安装"},{depth:3,value:"手动 link",id:"手动-link"},{depth:4,value:"iOS",id:"ios"},{depth:4,value:"Android",id:"android"},{depth:3,value:"配置 Bundle URL",id:"配置-bundle-url"},{depth:4,value:"iOS",id:"ios-1"},{depth:4,value:"Android",id:"android-1"},{depth:3,value:"禁用 android 的 crunch 优化",id:"禁用-android-的-crunch-优化"},{depth:3,value:"登录与创建应用",id:"登录与创建应用"}];function c(s){let e=Object.assign({p:"p",a:"a",code:"code",h3:"h3",pre:"pre",span:"span",h4:"h4",details:"details",summary:"summary",ol:"ol",li:"li",ul:"ul"},(0,r.a)(),s.components);return o.mQ||t("Tabs",!1),o.mQ.Tab||t("Tabs.Tab",!0),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(o.UW,{type:"info",children:(0,l.jsxs)(e.p,{children:["请注意,当前版本的api经过了完全重构,与之前的版本(v10.0以下)不兼容。如果你需要查看之前版本的文档,请点击",(0,l.jsx)(e.a,{href:"https://v9--pushy-site.netlify.app/",children:"这里"})]})}),"\n",(0,l.jsxs)(e.p,{children:["首先你应该有一个基于 React Native 开发的应用,我们把具有 package.json 的目录叫做你的",(0,l.jsx)(e.code,{children:"应用根目录"}),"。\n如果你还没有初始化应用,请参阅",(0,l.jsx)(e.a,{href:"https://reactnative.cn/docs/getting-started",children:"开始使用 React Native"}),"。"]}),"\n",(0,l.jsxs)(e.p,{children:["我们假设你已经拥有了开发 React Native 应用的一切环境,包括",(0,l.jsx)(e.code,{children:"Node.js"}),"、",(0,l.jsx)(e.code,{children:"Xcode"}),"、",(0,l.jsx)(e.code,{children:"Android SDK"}),"等等。"]}),"\n",(0,l.jsxs)(o.Rg,{children:[(0,l.jsx)(e.h3,{id:"安装",children:"安装"}),(0,l.jsx)(e.p,{children:"在你的项目根目录下运行以下命令:"}),(0,l.jsx)(e.pre,{"data-language":"bash","data-theme":"default",children:(0,l.jsxs)(e.code,{"data-language":"bash","data-theme":"default",children:[(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"# 先全局安装命令行工具,每台电脑只用装一次"})}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"npm"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"i"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"-g"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"react-native-update-cli"})]}),"\n",(0,l.jsx)(e.span,{className:"line",children:" "}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"# 然后在项目目录中安装热更新模块"})}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"npm"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"i"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"react-native-update"})]}),"\n",(0,l.jsx)(e.span,{className:"line",children:" "}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"# 然后进入ios目录安装iOS模块"})}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"cd"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"ios"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:"&&"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"pod"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"install"})]}),"\n",(0,l.jsx)(e.span,{className:"line",children:" "})]})}),(0,l.jsx)(o.UW,{type:"info",children:(0,l.jsxs)(e.p,{children:["如果下载极慢或者显示网络失败,请设置使用淘宝镜像 ",(0,l.jsx)(e.code,{children:"npx nrm use taobao"})]})}),(0,l.jsx)(o.UW,{type:"warning",children:(0,l.jsxs)(e.p,{children:["注意请不要混用",(0,l.jsx)(e.code,{children:"npm/yarn/pnpm"}),"等包管理器及对应的",(0,l.jsx)(e.code,{children:"lock"}),"文件,团队成员请坚持使用同一包管理器,且仅保留统一格式的",(0,l.jsx)(e.code,{children:"lock"}),"文件"]})}),(0,l.jsx)(o.UW,{type:"info",children:(0,l.jsx)(e.p,{children:"请记得,任意在 ios 和 android 目录下的修改,一定要重新编译(使用 npx\nreact-native run-ios 或 run-android 命令编译,或在 Xcode/Android Studio\n中重新编译)才能生效。"})}),(0,l.jsx)(e.h3,{id:"手动-link",children:"手动 link"}),(0,l.jsx)(e.p,{children:"如果 RN 版本 >= 0.60 则不需要此手动 link 步骤。"}),(0,l.jsx)(o.UW,{type:"warning",children:(0,l.jsx)(e.p,{children:"注意:如果是混编 RN\n项目,或monorepo,或任何其他自定义的情况,由于自定义的配置可能不完整或不适应RN的目录结构,导致自动\nlink 的功能可能不能正常工作。此时即便 RN 版本 >= 0.60,你可能也需要执行手动\nlink 操作。"})}),(0,l.jsx)(e.h4,{id:"ios",children:"iOS"}),(0,l.jsxs)(e.details,{children:[(0,l.jsx)(e.summary,{children:"RN < 0.60且使用CocoaPods(推荐)"}),(0,l.jsxs)(e.ol,{children:["\n",(0,l.jsx)(e.li,{children:"在 ios/Podfile 中添加"}),"\n"]}),(0,l.jsx)(e.pre,{"data-language":"text","data-theme":"default",children:(0,l.jsx)(e.code,{"data-language":"text","data-theme":"default",children:(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"pod 'react-native-update', path: '../node_modules/react-native-update'"})})})}),(0,l.jsxs)(e.ol,{start:"2",children:["\n",(0,l.jsxs)(e.li,{children:["在项目的 ios 目录下运行",(0,l.jsx)(e.code,{children:"pod install"})]}),"\n",(0,l.jsx)(e.li,{children:"重新编译"}),"\n"]})]}),(0,l.jsxs)(e.details,{children:[(0,l.jsx)(e.summary,{children:"RN < 0.60且不使用CocoaPods"}),(0,l.jsxs)(e.ol,{children:["\n",(0,l.jsxs)(e.li,{children:["在 XCode 中的 Project Navigator 里,右键点击",(0,l.jsx)(e.code,{children:"Libraries"})," ➜ ",(0,l.jsx)(e.code,{children:"Add Files to [你的工程名]"})]}),"\n",(0,l.jsxs)(e.li,{children:["进入",(0,l.jsx)(e.code,{children:"node_modules"})," ➜ ",(0,l.jsx)(e.code,{children:"react-native-update"})," ➜ ",(0,l.jsx)(e.code,{children:"ios 并选中"}),"RCTPushy.xcodeproj`"]}),"\n",(0,l.jsxs)(e.li,{children:["在 XCode 中的 project navigator 里,选中你的工程,在 ",(0,l.jsx)(e.code,{children:"Build Phases"})," ➜ ",(0,l.jsx)(e.code,{children:"Link Binary With Libraries"})," 中添加 ",(0,l.jsx)(e.code,{children:"libRCTPushy.a"}),"、",(0,l.jsx)(e.code,{children:"libz.tbd"}),"、",(0,l.jsx)(e.code,{children:"libbz2.1.0.tbd"})]}),"\n",(0,l.jsxs)(e.li,{children:["继续在",(0,l.jsx)(e.code,{children:"Build Settings"}),"里搜索",(0,l.jsx)(e.code,{children:"Header Search Path"}),",添加",(0,l.jsx)(e.code,{children:"$(SRCROOT)/../node_modules/react-native-update/ios"}),",勾选",(0,l.jsx)(e.code,{children:"recursive"}),"。"]}),"\n",(0,l.jsxs)(e.li,{children:["在",(0,l.jsx)(e.code,{children:"Build Phases"}),"添加一个",(0,l.jsx)(e.code,{children:"New Run Script Phase"}),"运行脚本,内容如下"]}),"\n"]}),(0,l.jsx)(e.pre,{"data-language":"text","data-theme":"default",children:(0,l.jsxs)(e.code,{"data-language":"text","data-theme":"default",children:[(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"#!/bin/bash"})}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"set -x"})}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:'DEST="../node_modules/react-native-update/ios/"'})}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:'date +%s > "$DEST/pushy_build_time.txt"'})})]})}),(0,l.jsxs)(e.ol,{start:"7",children:["\n",(0,l.jsxs)(e.li,{children:["尝试编译一下,顺利的话就会在",(0,l.jsx)(e.code,{children:"../node_modules/react-native-update/ios/"}),"文件夹下面生成一个",(0,l.jsx)(e.code,{children:"pushy_build_time.txt"}),"文件。然后在",(0,l.jsx)(e.code,{children:"Copy Bundle Resources"}),"里把生成的",(0,l.jsx)(e.code,{children:"pushy_build_time.txt"}),"文件添加进去。"]}),"\n"]})]}),(0,l.jsx)(e.h4,{id:"android",children:"Android"}),(0,l.jsxs)(e.details,{children:[(0,l.jsx)(e.summary,{children:"RN < 0.60 或其他不能自动 link 的情况"}),(0,l.jsxs)(e.ol,{children:["\n",(0,l.jsxs)(e.li,{children:["\n",(0,l.jsxs)(e.p,{children:["在",(0,l.jsx)(e.code,{children:"android/settings.gradle"}),"中添加如下代码:"]}),"\n",(0,l.jsx)(e.pre,{"data-language":"text","data-theme":"default",children:(0,l.jsxs)(e.code,{"data-language":"text","data-theme":"default",children:[(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"include ':react-native-update'"})}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"project(':react-native-update').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-update/android')"})})]})}),"\n"]}),"\n",(0,l.jsxs)(e.li,{children:["\n",(0,l.jsxs)(e.p,{children:["在",(0,l.jsx)(e.code,{children:"android/app/build.gradle"}),"的 dependencies 部分增加如下代码:"]}),"\n",(0,l.jsx)(e.pre,{"data-language":"text","data-theme":"default",children:(0,l.jsx)(e.code,{"data-language":"text","data-theme":"default",children:(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"implementation project(':react-native-update')"})})})}),"\n"]}),"\n",(0,l.jsxs)(e.li,{children:["\n",(0,l.jsxs)(e.p,{children:["打开",(0,l.jsx)(e.code,{children:"android/app/src/main/java/[...]/MainApplication.java"}),","]}),"\n"]}),"\n"]}),(0,l.jsxs)(e.ul,{children:["\n",(0,l.jsxs)(e.li,{children:["在文件开头增加 ",(0,l.jsx)(e.code,{children:"import cn.reactnative.modules.update.UpdatePackage;"})]}),"\n",(0,l.jsxs)(e.li,{children:["在",(0,l.jsx)(e.code,{children:"getPackages()"})," 方法中增加 ",(0,l.jsx)(e.code,{children:"new UpdatePackage()"}),"(注意上一行可能要增加一个逗号)"]}),"\n"]})]}),(0,l.jsx)(e.h3,{id:"配置-bundle-url",children:"配置 Bundle URL"}),(0,l.jsx)(e.p,{children:"注意此步骤无论任何版本,目前都需要手动配置。"}),(0,l.jsx)(e.h4,{id:"ios-1",children:"iOS"}),(0,l.jsx)(e.p,{children:"在你的 AppDelegate.mm 或 AppDelegate.m 文件(不同 RN 版本可能后缀名不同)中增加如下代码:"}),(0,l.jsx)(e.pre,{"data-language":"c","data-theme":"default",children:(0,l.jsxs)(e.code,{"data-language":"c","data-theme":"default",children:[(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// ... 其它代码"})}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"#import"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"AppDelegate.h"'})]}),"\n",(0,l.jsx)(e.span,{className:"line",children:" "}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"#import"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"RCTPushy.h"'}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// <-- import头文件,注意要放到if条件外面"})]}),"\n",(0,l.jsx)(e.span,{className:"line",children:" "}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 可能项目里有一些条件编译语句,例如有些版本RN自带的flipper"})}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// #if DEBUG"})}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:'// 注意**不要**在这里面引入"RCTPushy.h"'})}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// #import "})}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// ..."})}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// #endif"})}),"\n",(0,l.jsx)(e.span,{className:"line",children:" "}),"\n",(0,l.jsx)(e.span,{className:"line",children:" "}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 修改sourceURLForBridge方法"})}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"-"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" (NSURL "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"*"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:")sourceURLForBridge:(RCTBridge "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"*"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:")bridge"})]}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{"})}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"#if"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"DEBUG"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 原先DEBUG这里的写法不作修改(所以DEBUG模式下不可热更新)"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"return"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"index"'}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"];"})]}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"#else"})}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"return"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" [RCTPushy bundleURL];"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:" // <-- 把这里非DEBUG的情况替换为热更新bundle"})]}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"#endif"})}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})}),"\n",(0,l.jsx)(e.span,{className:"line",children:" "})]})}),(0,l.jsx)(e.h4,{id:"android-1",children:"Android"}),(0,l.jsxs)(e.p,{children:["在 MainApplication 中增加如下代码(如果是混编原生的项目或其他原因没有使用 ReactApplication,请",(0,l.jsx)(e.a,{href:"api#updatecontextsetcustominstancemanagerreactinstancemanager-instancemanager",children:"使用此 api 集成"}),"):"]}),(0,l.jsxs)(o.mQ,{items:["Kotlin","Java"],children:[(0,l.jsx)(o.mQ.Tab,{children:(0,l.jsx)(e.pre,{"data-language":"kotlin","data-theme":"default",children:(0,l.jsxs)(e.code,{"data-language":"kotlin","data-theme":"default",children:[(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// ... 其它代码"})}),"\n",(0,l.jsx)(e.span,{className:"line",children:" "}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// ↓↓↓请注意不要少了这句import"})}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"import"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" cn.reactnative.modules.update.UpdateContext;"})]}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// ↑↑↑"})}),"\n",(0,l.jsx)(e.span,{className:"line",children:" "}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"class"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"MainApplication"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" : "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"Application"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"(), "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"ReactApplication"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,l.jsx)(e.span,{className:"line",children:" "}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"override"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"val"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" reactNativeHost: "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"ReactNativeHost"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" object : "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"DefaultReactNativeHost"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"this"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:") {"})]}),"\n",(0,l.jsx)(e.span,{className:"line",children:" "}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// ↓↓↓将下面这一段添加到 DefaultReactNativeHost 内部!"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"override"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"fun"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"getJSBundleFile"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"(): "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"String"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"? {"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"return"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" UpdateContext."}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"getBundleUrl"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"this@MainApplication"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:")"})]}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// ↑↑↑"})]}),"\n",(0,l.jsx)(e.span,{className:"line",children:" "}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// ...其他代码"})]}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})})]})})}),(0,l.jsx)(o.mQ.Tab,{children:(0,l.jsx)(e.pre,{"data-language":"java","data-theme":"default",children:(0,l.jsxs)(e.code,{"data-language":"java","data-theme":"default",children:[(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// ... 其它代码"})}),"\n",(0,l.jsx)(e.span,{className:"line",children:" "}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// ↓↓↓请注意不要少了这句import"})}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"import"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"cn"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:"."}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"reactnative"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:"."}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"modules"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:"."}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"update"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:"."}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"UpdateContext"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// ↑↑↑"})}),"\n",(0,l.jsx)(e.span,{className:"line",children:" "}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"public"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"class"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"MainApplication"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"extends"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"Application"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"implements"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"ReactApplication"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,l.jsx)(e.span,{className:"line",children:" "}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"private"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"final"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"ReactNativeHost"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" mReactNativeHost "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 老版本 RN 这里可能是 new ReactNativeHost(this)"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"new"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"DefaultReactNativeHost("}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"this"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:")"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,l.jsx)(e.span,{className:"line",children:" "}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// ↓↓↓将下面这一段添加到 DefaultReactNativeHost 内部!"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" @"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"Override"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"protected"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"String"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"getJSBundleFile"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"() {"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"return"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"UpdateContext"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:"."}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"getBundleUrl"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"MainApplication"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:"."}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"this"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:");"})]}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// ↑↑↑"})]}),"\n",(0,l.jsx)(e.span,{className:"line",children:" "}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// ...其他代码"})]}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})})]})})})]}),(0,l.jsx)(o.UW,{type:"info",children:(0,l.jsx)(e.p,{children:"请记得,任意在 ios 和 android 目录下的修改,一定要重新编译(npx react-native\nrun-ios 或 run-android 命令编译,或在 Xcode/Android Studio\n中重新编译)才能生效。"})}),(0,l.jsx)(e.h3,{id:"禁用-android-的-crunch-优化",children:"禁用 android 的 crunch 优化"}),(0,l.jsxs)(e.p,{children:["android 会在生成 apk 时自动对 png 图片进行压缩,此操作既耗时又影响增量补丁的生成。为了保证补丁能正常生成,您需要在",(0,l.jsx)(e.code,{children:"android/app/build.gradle"}),"中关闭此操作:"]}),(0,l.jsx)(e.pre,{"data-language":"gradle","data-theme":"default",children:(0,l.jsxs)(e.code,{"data-language":"gradle","data-theme":"default",children:[(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"..."})}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"android {"})}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ..."})}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" signingConfigs { ... }"})}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" buildTypes {"})}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" release {"})}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ..."})}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" // 添加下面这行以禁用crunch"})}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" crunchPngs false"})}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"..."})})]})}),(0,l.jsx)(e.h3,{id:"登录与创建应用",children:"登录与创建应用"}),(0,l.jsxs)(e.p,{children:["首先请在 ",(0,l.jsx)(e.a,{href:"https://update.reactnative.cn",children:"https://update.reactnative.cn"})," 注册帐号,然后在你的项目根目录下运行以下命令:"]}),(0,l.jsx)(e.pre,{"data-language":"bash","data-theme":"default",children:(0,l.jsxs)(e.code,{"data-language":"bash","data-theme":"default",children:[(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"$"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"pushy"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"login"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"email:"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"<"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"输入你的注册邮"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"箱"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:">"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"password:"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"<"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"输入你的密"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"码"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:">"})]})]})}),(0,l.jsxs)(e.p,{children:["这会在项目文件夹下创建一个",(0,l.jsx)(e.code,{children:".update"}),"文件,注意不要把这个文件上传到 Git 等 CVS 系统上。你可以在",(0,l.jsx)(e.code,{children:".gitignore"}),"末尾增加一行",(0,l.jsx)(e.code,{children:".update"}),"来忽略这个文件。"]}),(0,l.jsx)(e.p,{children:"登录之后可以创建应用。注意 iOS 平台和安卓平台需要分别创建:"}),(0,l.jsx)(e.pre,{"data-language":"bash","data-theme":"default",children:(0,l.jsxs)(e.code,{"data-language":"bash","data-theme":"default",children:[(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"$"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"pushy"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"createApp"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"--platform"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"ios"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"App"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"Name:"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"<"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"输入应用名"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"字"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:">"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"$"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"pushy"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"createApp"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"--platform"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"android"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"App"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"Name:"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"<"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"输入应用名"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"字"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:">"})]})]})}),(0,l.jsx)(o.UW,{type:"info",children:"两次输入的名字可以相同,这没有关系。"}),(0,l.jsx)(e.p,{children:"如果你已经在网页端或者其它地方创建过应用,也可以直接选择应用:"}),(0,l.jsx)(e.pre,{"data-language":"bash","data-theme":"default",children:(0,l.jsxs)(e.code,{"data-language":"bash","data-theme":"default",children:[(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"$"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"pushy"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"selectApp"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"--platform"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"ios"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"1"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:") 鱼多多("}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"ios"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:")"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"2"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:") 招财旺("}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"ios"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:")"})]}),"\n",(0,l.jsx)(e.span,{className:"line",children:" "}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"Total"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"2"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"ios"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"apps"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"Enter"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"appId:"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"<"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"输入应用前面的编"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"号"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:">"})]})]})}),(0,l.jsxs)(e.p,{children:["选择或者创建过应用后,你将可以在文件夹下看到",(0,l.jsx)(e.code,{children:"update.json"}),"文件,其内容类似如下形式:"]}),(0,l.jsx)(e.pre,{"data-language":"bash","data-theme":"default",children:(0,l.jsxs)(e.code,{"data-language":"bash","data-theme":"default",children:[(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{"})}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:'"ios"'}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"{"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:'"appId"'}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"1"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:","})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:'"appKey"'}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"<一串随机字符串>"'})]}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" },"})}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:'"android"'}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"{"})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:'"appId"'}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"2"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:","})]}),"\n",(0,l.jsxs)(e.span,{className:"line",children:[(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:'"appKey"'}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:":"}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"<一串随机字符串>"'})]}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"})}),"\n",(0,l.jsx)(e.span,{className:"line",children:(0,l.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})})]})}),(0,l.jsxs)(e.p,{children:["你可以安全的把",(0,l.jsx)(e.code,{children:"update.json"}),"上传到 Git 等 CVS 系统上,与你的团队共享这个文件,它不包含任何敏感信息。当然,他们在使用任何功能之前,都必须首先输入",(0,l.jsx)(e.code,{children:"pushy login"}),"进行登录。"]}),(0,l.jsxs)(e.p,{children:["至此应用的创建/选择就已经成功了。下一步,你需要给代码添加相应的功能,请参阅",(0,l.jsx)(e.a,{href:"integration",children:"代码集成"}),"。"]})]})]})}function t(s,e){throw Error("Expected "+(e?"component":"object")+" `"+s+"` to be defined: you likely forgot to import, pass, or provide it.")}e.default=(0,i.j)({MDXContent:function(){let s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:e}=Object.assign({},(0,r.a)(),s.components);return e?(0,l.jsx)(e,{...s,children:(0,l.jsx)(c,{...s})}):c(s)},pageOpts:{filePath:"pages/docs/getting-started.mdx",route:"/docs/getting-started",frontMatter:{order:0,title:"安装配置",type:"快速入门"},title:"安装配置",headings:a},pageNextRoute:"/docs/getting-started"})}},function(s){s.O(0,[909,888,774,179],function(){return s(s.s=552)}),_N_E=s.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/docs/integration-87e562744379a1d7.js b/_next/static/chunks/pages/docs/integration-39498b5ef5c1f4e1.js similarity index 99% rename from _next/static/chunks/pages/docs/integration-87e562744379a1d7.js rename to _next/static/chunks/pages/docs/integration-39498b5ef5c1f4e1.js index 4b30fe1..7bc6d87 100644 --- a/_next/static/chunks/pages/docs/integration-87e562744379a1d7.js +++ b/_next/static/chunks/pages/docs/integration-39498b5ef5c1f4e1.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[736],{59773:function(s,e,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/docs/integration",function(){return l(93051)}])},93051:function(s,e,l){"use strict";l.r(e),l.d(e,{__toc:function(){return c}});var n=l(11527),r=l(38567),o=l(87088),i=l(42416);let c=[{depth:3,value:"获取 appKey",id:"获取-appkey"},{depth:3,value:"初始化服务",id:"初始化服务"},{depth:3,value:"自定义更新界面",id:"自定义更新界面"},{depth:3,value:"统计数据",id:"统计数据"}];function t(s){let e=Object.assign({p:"p",a:"a",h3:"h3",code:"code",pre:"pre",span:"span",ol:"ol",li:"li"},(0,o.a)(),s.components);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.UW,{type:"info",children:(0,n.jsxs)(e.p,{children:["请注意,当前版本的api经过了完全重构,与之前的版本(v10.0以下)不兼容。如果你需要查看之前版本的文档,请点击",(0,n.jsx)(e.a,{href:"https://v9--pushy-site.netlify.app/",children:"这里"})]})}),"\n",(0,n.jsx)(e.p,{children:"安装配置完成后,确定应用编译顺利通过,下面我们来进行代码集成。"}),"\n",(0,n.jsx)(e.h3,{id:"获取-appkey",children:"获取 appKey"}),"\n",(0,n.jsxs)(e.p,{children:["检查更新时必须提供你的",(0,n.jsx)(e.code,{children:"appKey"}),",这个值保存在",(0,n.jsx)(e.code,{children:"update.json"}),"中(使用",(0,n.jsx)(e.code,{children:"pushy createApp"}),"或",(0,n.jsx)(e.code,{children:"pushy selectApp"}),"命令后会自动生成),并且根据平台不同而不同。你可以用如下的代码获取",(0,n.jsx)(e.code,{children:"appKey"}),":"]}),"\n",(0,n.jsx)(e.pre,{"data-language":"javascript","data-theme":"default",children:(0,n.jsxs)(e.code,{"data-language":"javascript","data-theme":"default",children:[(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"import"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" { Platform } "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"from"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"react-native"'}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,n.jsx)(e.span,{className:"line",children:" "}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"import"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" _updateConfig "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"from"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"./update.json"'}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" { "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"appKey"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" } "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" _updateConfig["}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"Platform"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"."}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"OS"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"];"})]})]})}),"\n",(0,n.jsx)(e.p,{children:"如果你不使用 pushy 命令行,也可以从网页端查看到两个应用 appKey,并根据平台的不同来选择。"}),"\n",(0,n.jsx)(e.h3,{id:"初始化服务",children:"初始化服务"}),"\n",(0,n.jsx)(e.pre,{"data-language":"js","data-theme":"default",children:(0,n.jsxs)(e.code,{"data-language":"js","data-theme":"default",children:[(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"import"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" { PushyProvider"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" Pushy } "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"from"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"react-native-update"'}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,n.jsx)(e.span,{className:"line",children:" "}),"\n",(0,n.jsx)(e.span,{className:"line",children:(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 唯一必填参数是appKey,其他选项请参阅 api 文档"})}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"pushyClient"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"new"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"Pushy"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"({"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" appKey"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 注意,默认情况下,在开发环境中不会检查更新"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 如需在开发环境中调试更新,请设置debug为true"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 但即便打开此选项,也仅能检查、下载热更,并不能实际应用热更。实际应用热更必须在release包中进行。"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// debug: true"})]}),"\n",(0,n.jsx)(e.span,{className:"line",children:(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"});"})}),"\n",(0,n.jsx)(e.span,{className:"line",children:" "}),"\n",(0,n.jsx)(e.span,{className:"line",children:(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 在根组件外加上PushyProvider后导出"})}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"export"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"default"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"Root"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"() {"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"return"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ("})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" <"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"PushyProvider"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"client"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{pushyClient}>"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"/* ↓ 整个应用的根组件放到PushyProvider中 */"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" <"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"App"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" />"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "})]}),"\n",(0,n.jsx)(e.span,{className:"line",children:(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" );"})}),"\n",(0,n.jsx)(e.span,{className:"line",children:(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})})]})}),"\n",(0,n.jsx)(e.p,{children:"如没有特别的自定义需求,那么到此热更新已经可以开始正常运作。默认配置下,在 App 启动,以及从后台切换到前台时会触发更新检查,弹出提示的内容也固定。如需自定义触发时机,以及修改界面提示等,请参考下面的自定义更新界面。"}),"\n",(0,n.jsx)(e.h3,{id:"自定义更新界面",children:"自定义更新界面"}),"\n",(0,n.jsx)(e.p,{children:"默认配置下,pushy 会以系统 alert 的形式来弹出更新提示,如需自定义更新界面,首先请关闭默认的 alert 弹窗,并打开 debug 选项以便调试:"}),"\n",(0,n.jsx)(e.pre,{"data-language":"diff","data-theme":"default",children:(0,n.jsxs)(e.code,{"data-language":"diff","data-theme":"default",children:[(0,n.jsx)(e.span,{className:"line",children:(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"const pushyClient = new Pushy({"})}),"\n",(0,n.jsx)(e.span,{className:"line",children:(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" appKey,"})}),"\n",(0,n.jsx)(e.span,{className:"line",children:(0,n.jsx)(e.span,{style:{color:"#4BB74A"},children:"+ useAlert: false,"})}),"\n",(0,n.jsx)(e.span,{className:"line",children:(0,n.jsx)(e.span,{style:{color:"#4BB74A"},children:"+ debug: true,"})}),"\n",(0,n.jsx)(e.span,{className:"line",children:(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"});"})})]})}),"\n",(0,n.jsxs)(e.p,{children:["所有更新相关的数据可以通过一个单一的",(0,n.jsx)(e.a,{href:"/docs/api#usepushy",children:(0,n.jsx)(e.code,{children:"usePushy()"})}),"hook 函数来获取,然后可以根据其提供的数据来自行渲染自定义的界面,如下面的例子:"]}),"\n",(0,n.jsx)(e.pre,{"data-language":"js","data-theme":"default",children:(0,n.jsxs)(e.code,{"data-language":"js","data-theme":"default",children:[(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"import"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" { Icon"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" PaperProvider"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" Snackbar"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" Banner } "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"from"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"react-native-paper"'}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"App"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"() {"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"client"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"checkUpdate"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"downloadUpdate"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"switchVersionLater"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"switchVersion"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"updateInfo"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"packageVersion"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"currentHash"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" progress: { "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"received"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"total"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" } "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {}"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" } "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"usePushy"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"();"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ["}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"showUpdateBanner"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"setShowUpdateBanner"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"] "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"useState"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"false"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:");"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ["}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"showUpdateSnackbar"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"setShowUpdateSnackbar"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"] "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"useState"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"false"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:");"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"snackbarVisible"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" showUpdateSnackbar "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"&&"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"updateInfo"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"?.update "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"&&"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"!"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"useDefaultAlert;"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"return"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ("})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" <"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"View"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"style"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"styles"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:".container}>"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" <"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"Text"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">"})]}),"\n",(0,n.jsx)(e.span,{className:"line",children:(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" 更新下载进度:{received} / {total}"})}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" <"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"Pressable"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"onPress"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{checkUpdate}>"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" <"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"Text"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">点击这里检查更新"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {snackbarVisible "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"&&"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ("})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" <"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"Snackbar"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"visible"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"true"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"onDismiss"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{() "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"=>"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"setShowUpdateSnackbar"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"false"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:");"})]}),"\n",(0,n.jsx)(e.span,{className:"line",children:(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }}"})}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"action"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{{"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" label"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"更新"'}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"onPress"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"async"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" () "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"=>"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"setShowUpdateSnackbar"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"false"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:");"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"await"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"downloadUpdate"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"();"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"setShowUpdateBanner"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"true"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:");"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,n.jsx)(e.span,{className:"line",children:(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }}"})}),"\n",(0,n.jsx)(e.span,{className:"line",children:(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" >"})}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" <"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"Text"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">有新版本({"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"updateInfo"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:".name})可用,是否更新?"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "})]}),"\n",(0,n.jsx)(e.span,{className:"line",children:(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" )}"})}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" <"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"Banner"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"style"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{{ width"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"100%"'}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" position"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"absolute"'}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" top"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"0"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }}"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"visible"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{showUpdateBanner}"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"actions"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{["})]}),"\n",(0,n.jsx)(e.span,{className:"line",children:(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" label"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"立即重启"'}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" onPress"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" switchVersion"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,n.jsx)(e.span,{className:"line",children:(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" label"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"下次再说"'}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"onPress"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" () "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"=>"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"switchVersionLater"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"();"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"setShowUpdateBanner"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"false"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:");"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,n.jsx)(e.span,{className:"line",children:(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ]}"})}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"icon"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{({ size }) "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"=>"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ("})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" <"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"Icon"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"name"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"checkcircleo"'}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"size"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{size} "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"color"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"#00f"'}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" />"})]}),"\n",(0,n.jsx)(e.span,{className:"line",children:(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" )}"})}),"\n",(0,n.jsx)(e.span,{className:"line",children:(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" >"})}),"\n",(0,n.jsx)(e.span,{className:"line",children:(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" 更新已完成,是否立即重启?"})}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "})]}),"\n",(0,n.jsx)(e.span,{className:"line",children:(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" );"})}),"\n",(0,n.jsx)(e.span,{className:"line",children:(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})})]})}),"\n",(0,n.jsxs)(e.p,{children:["其中",(0,n.jsx)(e.code,{children:"checkUpdate"}),"方法可以用来手动触发更新检查。检查后会更新返回的",(0,n.jsx)(e.a,{href:"api#async-function-checkupdateappkey",children:(0,n.jsx)(e.code,{children:"updateInfo"})}),",有三种情况:"]}),"\n",(0,n.jsxs)(e.ol,{children:["\n",(0,n.jsxs)(e.li,{children:["\n",(0,n.jsxs)(e.p,{children:[(0,n.jsx)(e.code,{children:"{expired: true}"}),":该应用原生包已过期(三种情况:1. 主动设置为过期状态,2. 主动删除,3. 从未上传),开发者应该在 pushy 的管理后台添加一个更新下载链接,并自行提示用户下载。"]}),"\n"]}),"\n",(0,n.jsxs)(e.li,{children:["\n",(0,n.jsxs)(e.p,{children:[(0,n.jsx)(e.code,{children:"{upToDate: true}"}),":当前已经更新到最新,无需进行更新。"]}),"\n"]}),"\n",(0,n.jsxs)(e.li,{children:["\n",(0,n.jsxs)(e.p,{children:[(0,n.jsx)(e.code,{children:"{update: true}"}),":当前有新版本可以更新。info 的",(0,n.jsx)(e.code,{children:"name"}),"、",(0,n.jsx)(e.code,{children:"description"}),"字段可以用于提示用户,而",(0,n.jsx)(e.code,{children:"metaInfo"}),"字段则可以根据你的需求自定义其它属性(如是否静默更新、是否强制更新等等),具体用法可参考",(0,n.jsx)(e.a,{href:"bestpractice#%E5%85%83%E4%BF%A1%E6%81%AFmeta-info%E7%9A%84%E4%BD%BF%E7%94%A8",children:"场景实践"}),"。另外还有几个字段,包含了补丁包的下载地址等。 pushy 会首先尝试耗费流量更少的更新方式。"]}),"\n"]}),"\n"]}),"\n",(0,n.jsxs)(e.p,{children:["当返回的",(0,n.jsx)(e.code,{children:"updateInfo"}),"中",(0,n.jsx)(e.code,{children:"update"}),"字段为 true 时,即可调用",(0,n.jsx)(e.code,{children:"downloadUpdate"}),"方法来下载更新,此时可以获取到下载的进度数据",(0,n.jsx)(e.code,{children:"progress"}),"。下载完成后可以调用",(0,n.jsx)(e.code,{children:"switchVersion"}),"来立即重启更新,也可以使用",(0,n.jsx)(e.code,{children:"switchVersionLater"}),"来标记下次启动时更新。"]}),"\n",(0,n.jsx)(e.h3,{id:"统计数据",children:"统计数据"}),"\n",(0,n.jsx)(e.p,{children:"初始化 Pushy 客户端时可以传入自定义的 logger 函数,其中可以自己记录日志或上报统计数据,比如下面的例子使用 Google Analytics 来上报事件:"}),"\n",(0,n.jsx)(e.pre,{"data-language":"ts","data-theme":"default",children:(0,n.jsxs)(e.code,{"data-language":"ts","data-theme":"default",children:[(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"import"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" { getAnalytics"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" logEvent } "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"from"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"firebase/analytics"'}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"analytics"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"getAnalytics"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"();"})]}),"\n",(0,n.jsx)(e.span,{className:"line",children:" "}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"pushyClient"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"new"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"Pushy"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"({"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" appKey"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"logger"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ({ type"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" data }) "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"=>"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"logEvent"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"(analytics"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"pushy_"'}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"+"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" type"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" data);"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,n.jsx)(e.span,{className:"line",children:(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"});"})})]})}),"\n",(0,n.jsxs)(e.p,{children:["以上提及的所有 api 的说明文档可在",(0,n.jsx)(e.a,{href:"api",children:"这里"}),"查看。"]}),"\n",(0,n.jsxs)(e.p,{children:["现在,你的应用已经可以通过 pushy 服务检查版本并进行更新了。下一步,你可以开始尝试发布应用包和版本,请参阅",(0,n.jsx)(e.a,{href:"publish",children:"发布热更新"}),"。"]})]})}e.default=(0,r.j)({MDXContent:function(){let s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:e}=Object.assign({},(0,o.a)(),s.components);return e?(0,n.jsx)(e,{...s,children:(0,n.jsx)(t,{...s})}):t(s)},pageOpts:{filePath:"pages/docs/integration.mdx",route:"/docs/integration",frontMatter:{order:1,title:"代码集成",type:"快速入门"},title:"代码集成",headings:c},pageNextRoute:"/docs/integration"})}},function(s){s.O(0,[567,888,774,179],function(){return s(s.s=59773)}),_N_E=s.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[736],{46896:function(s,e,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/docs/integration",function(){return l(44128)}])},44128:function(s,e,l){"use strict";l.r(e),l.d(e,{__toc:function(){return c}});var n=l(11527),r=l(86909),o=l(59087),i=l(34234);let c=[{depth:3,value:"获取 appKey",id:"获取-appkey"},{depth:3,value:"初始化服务",id:"初始化服务"},{depth:3,value:"自定义更新界面",id:"自定义更新界面"},{depth:3,value:"统计数据",id:"统计数据"}];function t(s){let e=Object.assign({p:"p",a:"a",h3:"h3",code:"code",pre:"pre",span:"span",ol:"ol",li:"li"},(0,o.a)(),s.components);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.UW,{type:"info",children:(0,n.jsxs)(e.p,{children:["请注意,当前版本的api经过了完全重构,与之前的版本(v10.0以下)不兼容。如果你需要查看之前版本的文档,请点击",(0,n.jsx)(e.a,{href:"https://v9--pushy-site.netlify.app/",children:"这里"})]})}),"\n",(0,n.jsx)(e.p,{children:"安装配置完成后,确定应用编译顺利通过,下面我们来进行代码集成。"}),"\n",(0,n.jsx)(e.h3,{id:"获取-appkey",children:"获取 appKey"}),"\n",(0,n.jsxs)(e.p,{children:["检查更新时必须提供你的",(0,n.jsx)(e.code,{children:"appKey"}),",这个值保存在",(0,n.jsx)(e.code,{children:"update.json"}),"中(使用",(0,n.jsx)(e.code,{children:"pushy createApp"}),"或",(0,n.jsx)(e.code,{children:"pushy selectApp"}),"命令后会自动生成),并且根据平台不同而不同。你可以用如下的代码获取",(0,n.jsx)(e.code,{children:"appKey"}),":"]}),"\n",(0,n.jsx)(e.pre,{"data-language":"javascript","data-theme":"default",children:(0,n.jsxs)(e.code,{"data-language":"javascript","data-theme":"default",children:[(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"import"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" { Platform } "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"from"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"react-native"'}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,n.jsx)(e.span,{className:"line",children:" "}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"import"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" _updateConfig "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"from"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"./update.json"'}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" { "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"appKey"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" } "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" _updateConfig["}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"Platform"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"."}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"OS"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"];"})]})]})}),"\n",(0,n.jsx)(e.p,{children:"如果你不使用 pushy 命令行,也可以从网页端查看到两个应用 appKey,并根据平台的不同来选择。"}),"\n",(0,n.jsx)(e.h3,{id:"初始化服务",children:"初始化服务"}),"\n",(0,n.jsx)(e.pre,{"data-language":"js","data-theme":"default",children:(0,n.jsxs)(e.code,{"data-language":"js","data-theme":"default",children:[(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"import"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" { PushyProvider"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" Pushy } "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"from"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"react-native-update"'}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,n.jsx)(e.span,{className:"line",children:" "}),"\n",(0,n.jsx)(e.span,{className:"line",children:(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 唯一必填参数是appKey,其他选项请参阅 api 文档"})}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"pushyClient"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"new"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"Pushy"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"({"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" appKey"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 注意,默认情况下,在开发环境中不会检查更新"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 如需在开发环境中调试更新,请设置debug为true"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 但即便打开此选项,也仅能检查、下载热更,并不能实际应用热更。实际应用热更必须在release包中进行。"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// debug: true"})]}),"\n",(0,n.jsx)(e.span,{className:"line",children:(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"});"})}),"\n",(0,n.jsx)(e.span,{className:"line",children:" "}),"\n",(0,n.jsx)(e.span,{className:"line",children:(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"// 在根组件外加上PushyProvider后导出"})}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"export"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"default"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"Root"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"() {"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"return"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ("})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" <"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"PushyProvider"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"client"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{pushyClient}>"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"/* ↓ 整个应用的根组件放到PushyProvider中 */"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" <"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"App"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" />"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "})]}),"\n",(0,n.jsx)(e.span,{className:"line",children:(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" );"})}),"\n",(0,n.jsx)(e.span,{className:"line",children:(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})})]})}),"\n",(0,n.jsx)(e.p,{children:"如没有特别的自定义需求,那么到此热更新已经可以开始正常运作。默认配置下,在 App 启动,以及从后台切换到前台时会触发更新检查,弹出提示的内容也固定。如需自定义触发时机,以及修改界面提示等,请参考下面的自定义更新界面。"}),"\n",(0,n.jsx)(e.h3,{id:"自定义更新界面",children:"自定义更新界面"}),"\n",(0,n.jsx)(e.p,{children:"默认配置下,pushy 会以系统 alert 的形式来弹出更新提示,如需自定义更新界面,首先请关闭默认的 alert 弹窗,并打开 debug 选项以便调试:"}),"\n",(0,n.jsx)(e.pre,{"data-language":"diff","data-theme":"default",children:(0,n.jsxs)(e.code,{"data-language":"diff","data-theme":"default",children:[(0,n.jsx)(e.span,{className:"line",children:(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"const pushyClient = new Pushy({"})}),"\n",(0,n.jsx)(e.span,{className:"line",children:(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" appKey,"})}),"\n",(0,n.jsx)(e.span,{className:"line",children:(0,n.jsx)(e.span,{style:{color:"#4BB74A"},children:"+ useAlert: false,"})}),"\n",(0,n.jsx)(e.span,{className:"line",children:(0,n.jsx)(e.span,{style:{color:"#4BB74A"},children:"+ debug: true,"})}),"\n",(0,n.jsx)(e.span,{className:"line",children:(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"});"})})]})}),"\n",(0,n.jsxs)(e.p,{children:["所有更新相关的数据可以通过一个单一的",(0,n.jsx)(e.a,{href:"/docs/api#usepushy",children:(0,n.jsx)(e.code,{children:"usePushy()"})}),"hook 函数来获取,然后可以根据其提供的数据来自行渲染自定义的界面,如下面的例子:"]}),"\n",(0,n.jsx)(e.pre,{"data-language":"js","data-theme":"default",children:(0,n.jsxs)(e.code,{"data-language":"js","data-theme":"default",children:[(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"import"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" { Icon"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" PaperProvider"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" Snackbar"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" Banner } "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"from"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"react-native-paper"'}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"App"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"() {"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"client"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"checkUpdate"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"downloadUpdate"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"switchVersionLater"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"switchVersion"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"updateInfo"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"packageVersion"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"currentHash"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" progress: { "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"received"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"total"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" } "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {}"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" } "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"usePushy"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"();"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ["}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"showUpdateBanner"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"setShowUpdateBanner"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"] "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"useState"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"false"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:");"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ["}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"showUpdateSnackbar"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"setShowUpdateSnackbar"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"] "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"useState"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"false"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:");"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"snackbarVisible"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" showUpdateSnackbar "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"&&"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"updateInfo"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"?.update "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"&&"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"!"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"useDefaultAlert;"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"return"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ("})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" <"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"View"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"style"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"styles"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:".container}>"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" <"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"Text"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">"})]}),"\n",(0,n.jsx)(e.span,{className:"line",children:(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" 更新下载进度:{received} / {total}"})}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" <"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"Pressable"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"onPress"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{checkUpdate}>"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" <"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"Text"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">点击这里检查更新"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {snackbarVisible "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"&&"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ("})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" <"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"Snackbar"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"visible"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"true"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"onDismiss"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{() "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"=>"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"setShowUpdateSnackbar"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"false"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:");"})]}),"\n",(0,n.jsx)(e.span,{className:"line",children:(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }}"})}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"action"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{{"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" label"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"更新"'}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"onPress"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"async"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" () "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"=>"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"setShowUpdateSnackbar"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"false"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:");"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"await"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"downloadUpdate"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"();"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"setShowUpdateBanner"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"true"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:");"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,n.jsx)(e.span,{className:"line",children:(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }}"})}),"\n",(0,n.jsx)(e.span,{className:"line",children:(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" >"})}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" <"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"Text"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">有新版本({"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"updateInfo"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:".name})可用,是否更新?"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "})]}),"\n",(0,n.jsx)(e.span,{className:"line",children:(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" )}"})}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" <"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"Banner"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"style"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{{ width"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"100%"'}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" position"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"absolute"'}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" top"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"0"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }}"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"visible"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{showUpdateBanner}"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"actions"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{["})]}),"\n",(0,n.jsx)(e.span,{className:"line",children:(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" label"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"立即重启"'}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" onPress"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" switchVersion"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,n.jsx)(e.span,{className:"line",children:(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" label"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"下次再说"'}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"onPress"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" () "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"=>"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"switchVersionLater"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"();"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"setShowUpdateBanner"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"false"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:");"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,n.jsx)(e.span,{className:"line",children:(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ]}"})}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"icon"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{({ size }) "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"=>"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ("})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" <"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"Icon"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"name"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"checkcircleo"'}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"size"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{size} "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"color"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"#00f"'}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" />"})]}),"\n",(0,n.jsx)(e.span,{className:"line",children:(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" )}"})}),"\n",(0,n.jsx)(e.span,{className:"line",children:(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" >"})}),"\n",(0,n.jsx)(e.span,{className:"line",children:(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" 更新已完成,是否立即重启?"})}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "})]}),"\n",(0,n.jsx)(e.span,{className:"line",children:(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" );"})}),"\n",(0,n.jsx)(e.span,{className:"line",children:(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})})]})}),"\n",(0,n.jsxs)(e.p,{children:["其中",(0,n.jsx)(e.code,{children:"checkUpdate"}),"方法可以用来手动触发更新检查。检查后会更新返回的",(0,n.jsx)(e.a,{href:"api#async-function-checkupdateappkey",children:(0,n.jsx)(e.code,{children:"updateInfo"})}),",有三种情况:"]}),"\n",(0,n.jsxs)(e.ol,{children:["\n",(0,n.jsxs)(e.li,{children:["\n",(0,n.jsxs)(e.p,{children:[(0,n.jsx)(e.code,{children:"{expired: true}"}),":该应用原生包已过期(三种情况:1. 主动设置为过期状态,2. 主动删除,3. 从未上传),开发者应该在 pushy 的管理后台添加一个更新下载链接,并自行提示用户下载。"]}),"\n"]}),"\n",(0,n.jsxs)(e.li,{children:["\n",(0,n.jsxs)(e.p,{children:[(0,n.jsx)(e.code,{children:"{upToDate: true}"}),":当前已经更新到最新,无需进行更新。"]}),"\n"]}),"\n",(0,n.jsxs)(e.li,{children:["\n",(0,n.jsxs)(e.p,{children:[(0,n.jsx)(e.code,{children:"{update: true}"}),":当前有新版本可以更新。info 的",(0,n.jsx)(e.code,{children:"name"}),"、",(0,n.jsx)(e.code,{children:"description"}),"字段可以用于提示用户,而",(0,n.jsx)(e.code,{children:"metaInfo"}),"字段则可以根据你的需求自定义其它属性(如是否静默更新、是否强制更新等等),具体用法可参考",(0,n.jsx)(e.a,{href:"bestpractice#%E5%85%83%E4%BF%A1%E6%81%AFmeta-info%E7%9A%84%E4%BD%BF%E7%94%A8",children:"场景实践"}),"。另外还有几个字段,包含了补丁包的下载地址等。 pushy 会首先尝试耗费流量更少的更新方式。"]}),"\n"]}),"\n"]}),"\n",(0,n.jsxs)(e.p,{children:["当返回的",(0,n.jsx)(e.code,{children:"updateInfo"}),"中",(0,n.jsx)(e.code,{children:"update"}),"字段为 true 时,即可调用",(0,n.jsx)(e.code,{children:"downloadUpdate"}),"方法来下载更新,此时可以获取到下载的进度数据",(0,n.jsx)(e.code,{children:"progress"}),"。下载完成后可以调用",(0,n.jsx)(e.code,{children:"switchVersion"}),"来立即重启更新,也可以使用",(0,n.jsx)(e.code,{children:"switchVersionLater"}),"来标记下次启动时更新。"]}),"\n",(0,n.jsx)(e.h3,{id:"统计数据",children:"统计数据"}),"\n",(0,n.jsx)(e.p,{children:"初始化 Pushy 客户端时可以传入自定义的 logger 函数,其中可以自己记录日志或上报统计数据,比如下面的例子使用 Google Analytics 来上报事件:"}),"\n",(0,n.jsx)(e.pre,{"data-language":"ts","data-theme":"default",children:(0,n.jsxs)(e.code,{"data-language":"ts","data-theme":"default",children:[(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"import"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" { getAnalytics"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" logEvent } "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"from"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"firebase/analytics"'}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"analytics"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"getAnalytics"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"();"})]}),"\n",(0,n.jsx)(e.span,{className:"line",children:" "}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"pushyClient"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"new"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"Pushy"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"({"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" appKey"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"logger"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ({ type"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" data }) "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"=>"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"logEvent"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"(analytics"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"pushy_"'}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"+"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" type"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" data);"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" }"}),(0,n.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,n.jsx)(e.span,{className:"line",children:(0,n.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"});"})})]})}),"\n",(0,n.jsxs)(e.p,{children:["以上提及的所有 api 的说明文档可在",(0,n.jsx)(e.a,{href:"api",children:"这里"}),"查看。"]}),"\n",(0,n.jsxs)(e.p,{children:["现在,你的应用已经可以通过 pushy 服务检查版本并进行更新了。下一步,你可以开始尝试发布应用包和版本,请参阅",(0,n.jsx)(e.a,{href:"publish",children:"发布热更新"}),"。"]})]})}e.default=(0,r.j)({MDXContent:function(){let s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:e}=Object.assign({},(0,o.a)(),s.components);return e?(0,n.jsx)(e,{...s,children:(0,n.jsx)(t,{...s})}):t(s)},pageOpts:{filePath:"pages/docs/integration.mdx",route:"/docs/integration",frontMatter:{order:1,title:"代码集成",type:"快速入门"},title:"代码集成",headings:c},pageNextRoute:"/docs/integration"})}},function(s){s.O(0,[909,888,774,179],function(){return s(s.s=46896)}),_N_E=s.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/docs/publish-1604d2fd1bd512a9.js b/_next/static/chunks/pages/docs/publish-1604d2fd1bd512a9.js deleted file mode 100644 index ef9afd0..0000000 --- a/_next/static/chunks/pages/docs/publish-1604d2fd1bd512a9.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[850],{46840:function(s,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/docs/publish",function(){return n(76492)}])},76492:function(s,e,n){"use strict";n.r(e),n.d(e,{__toc:function(){return o}});var i=n(11527),r=n(38567),l=n(87088),a=n(45122);let o=[{depth:2,value:"发布原生基准版本",id:"发布原生基准版本"},{depth:3,value:"iOS",id:"ios"},{depth:3,value:"Android",id:"android"},{depth:2,value:"发布热更新版本",id:"发布热更新版本"},{depth:2,value:"测试、发布与回滚",id:"测试发布与回滚"}];function c(s){let e=Object.assign({p:"p",ol:"ol",li:"li",code:"code",a:"a",h2:"h2",h3:"h3",pre:"pre",span:"span",strong:"strong",blockquote:"blockquote"},(0,l.a)(),s.components);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(e.p,{children:"现在你的应用已经具备了检测更新的功能,下面我们来尝试发布并更新它。流程可参考下图:"}),"\n",(0,i.jsx)(a.G,{chart:'flowchart TD\n codebase["\uD83D\uDDA5️  项目代码库"]\n subgraph 发布原生基准版本\n tagNativeVersion["\uD83C\uDFF7️  (在 git 上)标记原生版本号"]\n newNativeVersion["\uD83D\uDDC2️  新的原生基准版本"]\n nativePackage["\uD83D\uDCE6  原生完整包(apk或ipa文件)"]\n tagNativeVersion--"\uD83D\uDD28  编译"-->nativePackage\n nativePackage--"⬆️  使用
pushy uploadApk/uploadIpa
命令上传"-->newNativeVersion\n end\n subgraph 发布热更新版本\n tagBundleVersion["\uD83C\uDFF7️  (在 git 上)标记热更新版本号"]\n bundlePackage["\uD83C\uDF81  js代码与资源包(ppk文件)"]\n tagBundleVersion--"\uD83D\uDD28  使用
pushy bundle
命令生成并上传"-->bundlePackage\n someNativeVersions["\uD83D\uDDC2️  一个或多个原生基准版本"]\n bundlePackage--"\uD83D\uDD87️  绑定"-->someNativeVersions\n end\n user["\uD83D\uDC68‍\uD83D\uDC69‍\uD83D\uDC67‍\uD83D\uDC66  安装有对应原生基准版本的用户"]\n codebase--"✏️  改动js代码,
或添加、更新js组件,
或添加、更新js代码中引用的图片等资源"-->发布热更新版本\n codebase--"\uD83D\uDD8A️  改动原生代码、设置,
或添加、更新原生组件,
或添加、更新原生代码中引用的图片等资源"-->发布原生基准版本\n 发布热更新版本--"\uD83D\uDCF2  推送增量热更新(diff文件)"-->user'}),"\n",(0,i.jsx)(e.p,{children:"流程总结如下:"}),"\n",(0,i.jsxs)(e.ol,{children:["\n",(0,i.jsxs)(e.li,{children:["我们需要先打包一个原生 release 版本,在打包前请确保已集成了",(0,i.jsx)(e.code,{children:"react-native-update"}),"并在调试过程中运行正常,安卓端",(0,i.jsxs)(e.a,{href:"/docs/getting-started#%E7%A6%81%E7%94%A8-android-%E7%9A%84-crunch-%E4%BC%98%E5%8C%96",children:["关闭了",(0,i.jsx)(e.code,{children:"crunchPngs"}),"设置"]}),",打包说明可参考",(0,i.jsx)(e.a,{href:"https://reactnative.cn/docs/publishing-to-app-store",children:"iOS 打包"}),"和",(0,i.jsx)(e.a,{href:"https://reactnative.cn/docs/signed-apk-android",children:"android 打包"}),"。打包完成后请使用",(0,i.jsx)(e.code,{children:"pushy uploadIpa"}),"或者",(0,i.jsx)(e.code,{children:"pushy uploadApk"}),"命令来把这个安装包上传到 pushy 服务器端,以作为之后热更差量对比的基准。同时请保留好这个安装包,上架和分发给用户所使用的安装包",(0,i.jsx)(e.code,{children:"需要和服务器端完全一致"}),"。建议使用 git tag 功能来标记原生版本号(例如",(0,i.jsx)(e.code,{children:"v1.0.0"}),")。"]}),"\n",(0,i.jsxs)(e.li,{children:["然后在基准版本之上迭代业务逻辑(增删 js 代码,增删图片等静态资源),使用",(0,i.jsx)(e.code,{children:"pushy bundle"}),"命令来生成和发布热更新版本,而不需要重新打包。建议使用 git tag 功能来标记热更版本号(例如",(0,i.jsx)(e.code,{children:"v1.0.1"}),")。"]}),"\n",(0,i.jsx)(e.li,{children:"如果迭代过程中有原生方面的修改,则需要发布并上传新的原生基准版本(重复步骤 1,但需要设置不同的原生版本号)。可以只保留一个原生基准版本,也可以多版本同时维护。"}),"\n"]}),"\n",(0,i.jsx)(e.h2,{id:"发布原生基准版本",children:"发布原生基准版本"}),"\n",(0,i.jsx)(e.h3,{id:"ios",children:"iOS"}),"\n",(0,i.jsxs)(e.p,{children:["首先参考",(0,i.jsx)(e.a,{href:"https://reactnative.cn/docs/running-on-device",children:"文档-在设备上运行"}),",确定你正在使用离线包。然后点击菜单。"]}),"\n",(0,i.jsxs)(e.p,{children:["按照正常的发布流程打包",(0,i.jsx)(e.code,{children:".ipa"}),"文件:"]}),"\n",(0,i.jsxs)(e.ol,{children:["\n",(0,i.jsx)(e.li,{children:"Xcode 中运行设备选真机或 Generic iOS Device"}),"\n",(0,i.jsx)(e.li,{children:"菜单中选择 Product - Archive"}),"\n",(0,i.jsxs)(e.li,{children:["Archive 完成后选择",(0,i.jsx)(e.code,{children:"Export"}),"生成.ipa 文件"]}),"\n",(0,i.jsx)(e.li,{children:"然后运行如下命令上传到 pushy 服务器以供后续版本比对之用"}),"\n"]}),"\n",(0,i.jsx)(e.pre,{"data-language":"bash","data-theme":"default",children:(0,i.jsx)(e.code,{"data-language":"bash","data-theme":"default",children:(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"$"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"pushy"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"uploadIpa"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"<"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"ipa后缀文"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"件"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:">"})]})})}),"\n",(0,i.jsxs)(e.p,{children:["此 ipa 的",(0,i.jsx)(e.code,{children:"CFBundleShortVersionString"}),"字段(位于",(0,i.jsx)(e.code,{children:"ios/项目名/Info.plist"}),"中)会被记录为原生版本号",(0,i.jsx)(e.code,{children:"packageVersion"}),"。"]}),"\n",(0,i.jsxs)(e.p,{children:["随后你可以选择往 AppStore 上传这个版本(可以重新 export 并调整相关选项,但请不要重新 archive),也可以先通过",(0,i.jsx)(e.a,{href:"https://developer.apple.com/cn/testflight/",children:"Test flight"}),"或",(0,i.jsx)(e.a,{href:"https://www.pgyer.com/doc/view/build_ipa",children:"蒲公英"}),"等渠道进行真机安装测试。请注意:暂不支持通过 Xcode 直接进行热更新测试。"]}),"\n",(0,i.jsxs)(e.p,{children:["如果后续需要再次 archive 打包(例如修改原生代码或配置。如果只是修改 js 代码则不需要重新打包。),请先",(0,i.jsx)(e.strong,{children:"更改版本号"}),",并在打包完成后再次",(0,i.jsx)(e.code,{children:"uploadIpa"}),"到服务器端记录,否则后续生成的相同版本的原生包会由于",(0,i.jsxs)(e.a,{href:"faq#%E7%83%AD%E6%9B%B4%E6%96%B0%E6%8A%A5%E9%94%99%EF%BC%9A%E7%83%AD%E6%9B%B4%E6%96%B0%E5%B7%B2%E6%9A%82%E5%81%9C%EF%BC%8C%E5%8E%9F%E5%9B%A0%EF%BC%9Abuildtime-mismatch%E3%80%82",children:["编译时间戳不一致而",(0,i.jsx)(e.code,{children:"无法获取热更新"})]}),"。"]}),"\n",(0,i.jsxs)(e.blockquote,{children:["\n",(0,i.jsx)(e.p,{children:"注意:如果你在上传之前就运行了新的原生版本,由于服务器端没有记录,会暂停其更新数小时。可删除原先安装的 app 再重新安装以清空暂停设置。在上传之后安装的客户端不会受此影响。"}),"\n"]}),"\n",(0,i.jsx)(e.h3,{id:"android",children:"Android"}),"\n",(0,i.jsxs)(e.p,{children:["首先参考",(0,i.jsx)(e.a,{href:"https://reactnative.cn/docs/signed-apk-android",children:"文档-打包 APK"}),"设置签名,然后在 android 文件夹下运行",(0,i.jsx)(e.code,{children:"./gradlew assembleRelease"}),"或",(0,i.jsx)(e.code,{children:"./gradlew aR"}),",你就可以在",(0,i.jsx)(e.code,{children:"android/app/build/outputs/apk/release/app-release.apk"}),"中找到你的应用包。"]}),"\n",(0,i.jsxs)(e.blockquote,{children:["\n",(0,i.jsxs)(e.p,{children:["如果你需要使用 aab 格式(android app bundle,google 市场专用)的包,请参考这里的",(0,i.jsx)(e.a,{href:"bestpractice#%E5%A6%82%E4%BD%95%E6%94%AF%E6%8C%81-aab-%E6%A0%BC%E5%BC%8F%E7%9A%84%E5%8E%9F%E7%94%9F%E5%8C%85",children:"做法"}),"将其转换为 apk 格式后再操作。"]}),"\n"]}),"\n",(0,i.jsx)(e.p,{children:"然后运行如下命令"}),"\n",(0,i.jsx)(e.pre,{"data-language":"bash","data-theme":"default",children:(0,i.jsx)(e.code,{"data-language":"bash","data-theme":"default",children:(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"$"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"pushy"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"uploadApk"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"android/app/build/outputs/apk/release/app-release.apk"})]})})}),"\n",(0,i.jsxs)(e.p,{children:["即可上传 apk 以供后续版本比对之用。此 apk 的",(0,i.jsx)(e.code,{children:"versionName"}),"字段(位于",(0,i.jsx)(e.code,{children:"android/app/build.gralde"}),"中)会被记录为原生版本号",(0,i.jsx)(e.code,{children:"packageVersion"}),"。"]}),"\n",(0,i.jsx)(e.p,{children:"随后你可以选择往应用市场发布这个版本,也可以先往设备上直接安装这个 apk 文件以进行测试。"}),"\n",(0,i.jsxs)(e.p,{children:["如果后续需要再次打包(例如修改原生代码或配置。如果只是修改 js 代码则不需要重新打包。),请先",(0,i.jsx)(e.strong,{children:"更改版本号"}),",并再次",(0,i.jsx)(e.code,{children:"uploadApk"}),"到服务器端记录,否则后续生成的相同版本的原生包会由于",(0,i.jsxs)(e.a,{href:"faq#%E7%83%AD%E6%9B%B4%E6%96%B0%E6%8A%A5%E9%94%99%EF%BC%9A%E7%83%AD%E6%9B%B4%E6%96%B0%E5%B7%B2%E6%9A%82%E5%81%9C%EF%BC%8C%E5%8E%9F%E5%9B%A0%EF%BC%9Abuildtime-mismatch%E3%80%82",children:["编译时间戳不一致而",(0,i.jsx)(e.code,{children:"无法获取热更新"})]}),"。"]}),"\n",(0,i.jsxs)(e.blockquote,{children:["\n",(0,i.jsx)(e.p,{children:"注意:如果你在上传之前就运行了新的原生版本,由于服务器端没有记录,会暂停其更新数小时。可删除原先安装的 app 再重新安装以清空暂停设置。在上传之后安装的客户端不会受此影响。"}),"\n"]}),"\n",(0,i.jsx)(e.h2,{id:"发布热更新版本",children:"发布热更新版本"}),"\n",(0,i.jsxs)(e.p,{children:["你可以尝试修改一行代码(譬如将版本一修改为版本二),然后使用",(0,i.jsx)(e.code,{children:"pushy bundle --platform "}),"命令来生成新的热更新版本。"]}),"\n",(0,i.jsx)(e.pre,{"data-language":"bash","data-theme":"default",children:(0,i.jsxs)(e.code,{"data-language":"bash","data-theme":"default",children:[(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"$"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"pushy"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"bundle"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"--platform"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"android"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"Bundling"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"with"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"React"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"Native"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"version:"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"0.22"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:".2"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"<"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"各种进度输出"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:">"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"Bundled"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"saved"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"to:"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"build/output/android.1459850548545.ppk"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"Would"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"you"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"like"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"to"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"publish"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"it?"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"Y/N"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:")"})]})]})}),"\n",(0,i.jsxs)(e.p,{children:["如果想要立即上传,此时输入 Y。当然,你也可以在将来使用",(0,i.jsx)(e.code,{children:"pushy publish --platform android build/output/android.1459850548545.ppk"}),"来上传刚才打包好的热更新包。"]}),"\n",(0,i.jsx)(e.pre,{"data-language":"text","data-theme":"default",children:(0,i.jsxs)(e.code,{"data-language":"text","data-theme":"default",children:[(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" Uploading [========================================================] 100% 0.0s"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"Enter version name: <输入热更新版本名字,如1.0.0-rc>"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"Enter description: <输入热更新版本描述>"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:'Enter meta info: {"ok":1}'})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"Ok."})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"Would you like to bind packages to this version?(Y/N)"})})]})}),"\n",(0,i.jsx)(e.p,{children:"此时版本已经提交到 pushy 服务,但用户暂时看不到此更新,你需要先将特定的原生包版本绑定到此热更新版本上。"}),"\n",(0,i.jsxs)(e.p,{children:["此时输入 Y 立即绑定,你也可以在将来使用",(0,i.jsx)(e.code,{children:"pushy update --platform "}),"来对已上传的热更包和原生包进行绑定。除此以外,你还可以在网页端操作,简单的将对应的原生包版本拖到需要的热更新版本下即可。"]}),"\n",(0,i.jsx)(e.pre,{"data-language":"text","data-theme":"default",children:(0,i.jsxs)(e.code,{"data-language":"text","data-theme":"default",children:[(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"┌────────────┬──────────────────────────────────────┐"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"│ Package Id │ Version │"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"├────────────┼──────────────────────────────────────┤"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"│ 46272 │ 2.0(normal) │"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"├────────────┼──────────────────────────────────────┤"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"│ 45577 │ 1.0(normal) │"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"└────────────┴──────────────────────────────────────┘"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"共 2 个包"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"输入原生包 id: 46272"})})]})}),"\n",(0,i.jsx)(e.p,{children:"版本绑定完毕后,服务器会在几秒内生成差量补丁,客户端就可以获取到更新了。"}),"\n",(0,i.jsxs)(e.p,{children:["后续要继续发布新的热更新,只需反复执行",(0,i.jsx)(e.code,{children:"pushy bundle"}),"命令即可,不需要重新打包。"]}),"\n",(0,i.jsx)(e.p,{children:"恭喜你,至此为止,你已经完成了植入代码热更新的全部工作。"}),"\n",(0,i.jsx)(e.h2,{id:"测试发布与回滚",children:"测试、发布与回滚"}),"\n",(0,i.jsxs)(e.p,{children:["我们强烈建议您先发布一个",(0,i.jsx)(e.strong,{children:"测试包"}),",再发布一个除了版本号以外均完全相同的",(0,i.jsx)(e.strong,{children:"正式包"}),"。"]}),"\n",(0,i.jsxs)(e.p,{children:["例如,假设我们有一个正式包,版本为",(0,i.jsx)(e.code,{children:"1.6.0"}),",那么可以修改版本号重新打包一个",(0,i.jsx)(e.code,{children:"1001.6.0"}),",以一个明显不太正常的版本号来标识它是一个测试版本,同时后几位相同,可以表明它和某个正式版本存在关联(内容/依赖一致)。"]}),"\n",(0,i.jsxs)(e.p,{children:["在每次往发布包发起热更新之前,先对",(0,i.jsx)(e.strong,{children:"测试包"}),(0,i.jsx)(e.code,{children:"1001.6.0"}),"进行更新操作,基本测试通过之后,再在网页后台上将热更包重新绑定到",(0,i.jsx)(e.strong,{children:"正式包"}),(0,i.jsx)(e.code,{children:"1.6.0"}),"上。如果在测试包中发现了重大问题,你就可以先进行修复,更新测试确认通过后再部署到正式线上环境。这样,可以最大程度的避免发生线上事故。"]}),"\n",(0,i.jsx)(e.p,{children:"万一确实发生线上事故需要回滚的话,首先利用版本控制系统回滚代码到正常的状态,然后重新生成热更包并推送即可。"})]})}e.default=(0,r.j)({MDXContent:function(){let s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:e}=Object.assign({},(0,l.a)(),s.components);return e?(0,i.jsx)(e,{...s,children:(0,i.jsx)(c,{...s})}):c(s)},pageOpts:{filePath:"pages/docs/publish.md",route:"/docs/publish",frontMatter:{order:2,title:"发布热更新",type:"快速入门"},title:"发布热更新",headings:o},pageNextRoute:"/docs/publish"})}},function(s){s.O(0,[386,567,807,888,774,179],function(){return s(s.s=46840)}),_N_E=s.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/docs/publish-a0916ab42930add8.js b/_next/static/chunks/pages/docs/publish-a0916ab42930add8.js new file mode 100644 index 0000000..1d52021 --- /dev/null +++ b/_next/static/chunks/pages/docs/publish-a0916ab42930add8.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[850],{9560:function(s,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/docs/publish",function(){return n(57592)}])},57592:function(s,e,n){"use strict";n.r(e),n.d(e,{__toc:function(){return o}});var i=n(11527),r=n(86909),l=n(59087),a=n(45122);let o=[{depth:2,value:"发布原生基准版本",id:"发布原生基准版本"},{depth:3,value:"iOS",id:"ios"},{depth:3,value:"Android",id:"android"},{depth:2,value:"发布热更新版本",id:"发布热更新版本"},{depth:2,value:"测试、发布与回滚",id:"测试发布与回滚"}];function c(s){let e=Object.assign({p:"p",ol:"ol",li:"li",code:"code",a:"a",h2:"h2",h3:"h3",pre:"pre",span:"span",strong:"strong",blockquote:"blockquote"},(0,l.a)(),s.components);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(e.p,{children:"现在你的应用已经具备了检测更新的功能,下面我们来尝试发布并更新它。流程可参考下图:"}),"\n",(0,i.jsx)(a.G,{chart:'flowchart TD\n codebase["\uD83D\uDDA5️  项目代码库"]\n subgraph 发布原生基准版本\n tagNativeVersion["\uD83C\uDFF7️  (在 git 上)标记原生版本号"]\n newNativeVersion["\uD83D\uDDC2️  新的原生基准版本"]\n nativePackage["\uD83D\uDCE6  原生完整包(apk或ipa文件)"]\n tagNativeVersion--"\uD83D\uDD28  编译"-->nativePackage\n nativePackage--"⬆️  使用
pushy uploadApk/uploadIpa
命令上传"-->newNativeVersion\n end\n subgraph 发布热更新版本\n tagBundleVersion["\uD83C\uDFF7️  (在 git 上)标记热更新版本号"]\n bundlePackage["\uD83C\uDF81  js代码与资源包(ppk文件)"]\n tagBundleVersion--"\uD83D\uDD28  使用
pushy bundle
命令生成并上传"-->bundlePackage\n someNativeVersions["\uD83D\uDDC2️  一个或多个原生基准版本"]\n bundlePackage--"\uD83D\uDD87️  绑定"-->someNativeVersions\n end\n user["\uD83D\uDC68‍\uD83D\uDC69‍\uD83D\uDC67‍\uD83D\uDC66  安装有对应原生基准版本的用户"]\n codebase--"✏️  改动js代码,
或添加、更新js组件,
或添加、更新js代码中引用的图片等资源"-->发布热更新版本\n codebase--"\uD83D\uDD8A️  改动原生代码、设置,
或添加、更新原生组件,
或添加、更新原生代码中引用的图片等资源"-->发布原生基准版本\n 发布热更新版本--"\uD83D\uDCF2  推送增量热更新(diff文件)"-->user'}),"\n",(0,i.jsx)(e.p,{children:"流程总结如下:"}),"\n",(0,i.jsxs)(e.ol,{children:["\n",(0,i.jsxs)(e.li,{children:["我们需要先打包一个原生 release 版本,在打包前请确保已集成了",(0,i.jsx)(e.code,{children:"react-native-update"}),"并在调试过程中运行正常,安卓端",(0,i.jsxs)(e.a,{href:"/docs/getting-started#%E7%A6%81%E7%94%A8-android-%E7%9A%84-crunch-%E4%BC%98%E5%8C%96",children:["关闭了",(0,i.jsx)(e.code,{children:"crunchPngs"}),"设置"]}),",打包说明可参考",(0,i.jsx)(e.a,{href:"https://reactnative.cn/docs/publishing-to-app-store",children:"iOS 打包"}),"和",(0,i.jsx)(e.a,{href:"https://reactnative.cn/docs/signed-apk-android",children:"android 打包"}),"。打包完成后请使用",(0,i.jsx)(e.code,{children:"pushy uploadIpa"}),"或者",(0,i.jsx)(e.code,{children:"pushy uploadApk"}),"命令来把这个安装包上传到 pushy 服务器端,以作为之后热更差量对比的基准。同时请保留好这个安装包,上架和分发给用户所使用的安装包",(0,i.jsx)(e.code,{children:"需要和服务器端完全一致"}),"。建议使用 git tag 功能来标记原生版本号(例如",(0,i.jsx)(e.code,{children:"v1.0.0"}),")。"]}),"\n",(0,i.jsxs)(e.li,{children:["然后在基准版本之上迭代业务逻辑(增删 js 代码,增删图片等静态资源),使用",(0,i.jsx)(e.code,{children:"pushy bundle"}),"命令来生成和发布热更新版本,而不需要重新打包。建议使用 git tag 功能来标记热更版本号(例如",(0,i.jsx)(e.code,{children:"v1.0.1"}),")。"]}),"\n",(0,i.jsx)(e.li,{children:"如果迭代过程中有原生方面的修改,则需要发布并上传新的原生基准版本(重复步骤 1,但需要设置不同的原生版本号)。可以只保留一个原生基准版本,也可以多版本同时维护。"}),"\n"]}),"\n",(0,i.jsx)(e.h2,{id:"发布原生基准版本",children:"发布原生基准版本"}),"\n",(0,i.jsx)(e.h3,{id:"ios",children:"iOS"}),"\n",(0,i.jsxs)(e.p,{children:["首先参考",(0,i.jsx)(e.a,{href:"https://reactnative.cn/docs/running-on-device",children:"文档-在设备上运行"}),",确定你正在使用离线包。然后点击菜单。"]}),"\n",(0,i.jsxs)(e.p,{children:["按照正常的发布流程打包",(0,i.jsx)(e.code,{children:".ipa"}),"文件:"]}),"\n",(0,i.jsxs)(e.ol,{children:["\n",(0,i.jsx)(e.li,{children:"Xcode 中运行设备选真机或 Generic iOS Device"}),"\n",(0,i.jsx)(e.li,{children:"菜单中选择 Product - Archive"}),"\n",(0,i.jsxs)(e.li,{children:["Archive 完成后选择",(0,i.jsx)(e.code,{children:"Export"}),"生成.ipa 文件"]}),"\n",(0,i.jsx)(e.li,{children:"然后运行如下命令上传到 pushy 服务器以供后续版本比对之用"}),"\n"]}),"\n",(0,i.jsx)(e.pre,{"data-language":"bash","data-theme":"default",children:(0,i.jsx)(e.code,{"data-language":"bash","data-theme":"default",children:(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"$"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"pushy"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"uploadIpa"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"<"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"ipa后缀文"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"件"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:">"})]})})}),"\n",(0,i.jsxs)(e.p,{children:["此 ipa 的",(0,i.jsx)(e.code,{children:"CFBundleShortVersionString"}),"字段(位于",(0,i.jsx)(e.code,{children:"ios/项目名/Info.plist"}),"中)会被记录为原生版本号",(0,i.jsx)(e.code,{children:"packageVersion"}),"。"]}),"\n",(0,i.jsxs)(e.p,{children:["随后你可以选择往 AppStore 上传这个版本(可以重新 export 并调整相关选项,但请不要重新 archive),也可以先通过",(0,i.jsx)(e.a,{href:"https://developer.apple.com/cn/testflight/",children:"Test flight"}),"或",(0,i.jsx)(e.a,{href:"https://www.pgyer.com/doc/view/build_ipa",children:"蒲公英"}),"等渠道进行真机安装测试。请注意:暂不支持通过 Xcode 直接进行热更新测试。"]}),"\n",(0,i.jsxs)(e.p,{children:["如果后续需要再次 archive 打包(例如修改原生代码或配置。如果只是修改 js 代码则不需要重新打包。),请先",(0,i.jsx)(e.strong,{children:"更改版本号"}),",并在打包完成后再次",(0,i.jsx)(e.code,{children:"uploadIpa"}),"到服务器端记录,否则后续生成的相同版本的原生包会由于",(0,i.jsxs)(e.a,{href:"faq#%E7%83%AD%E6%9B%B4%E6%96%B0%E6%8A%A5%E9%94%99%EF%BC%9A%E7%83%AD%E6%9B%B4%E6%96%B0%E5%B7%B2%E6%9A%82%E5%81%9C%EF%BC%8C%E5%8E%9F%E5%9B%A0%EF%BC%9Abuildtime-mismatch%E3%80%82",children:["编译时间戳不一致而",(0,i.jsx)(e.code,{children:"无法获取热更新"})]}),"。"]}),"\n",(0,i.jsxs)(e.blockquote,{children:["\n",(0,i.jsx)(e.p,{children:"注意:如果你在上传之前就运行了新的原生版本,由于服务器端没有记录,会暂停其更新数小时。可删除原先安装的 app 再重新安装以清空暂停设置。在上传之后安装的客户端不会受此影响。"}),"\n"]}),"\n",(0,i.jsx)(e.h3,{id:"android",children:"Android"}),"\n",(0,i.jsxs)(e.p,{children:["首先参考",(0,i.jsx)(e.a,{href:"https://reactnative.cn/docs/signed-apk-android",children:"文档-打包 APK"}),"设置签名,然后在 android 文件夹下运行",(0,i.jsx)(e.code,{children:"./gradlew assembleRelease"}),"或",(0,i.jsx)(e.code,{children:"./gradlew aR"}),",你就可以在",(0,i.jsx)(e.code,{children:"android/app/build/outputs/apk/release/app-release.apk"}),"中找到你的应用包。"]}),"\n",(0,i.jsxs)(e.blockquote,{children:["\n",(0,i.jsxs)(e.p,{children:["如果你需要使用 aab 格式(android app bundle,google 市场专用)的包,请参考这里的",(0,i.jsx)(e.a,{href:"bestpractice#%E5%A6%82%E4%BD%95%E6%94%AF%E6%8C%81-aab-%E6%A0%BC%E5%BC%8F%E7%9A%84%E5%8E%9F%E7%94%9F%E5%8C%85",children:"做法"}),"将其转换为 apk 格式后再操作。"]}),"\n"]}),"\n",(0,i.jsx)(e.p,{children:"然后运行如下命令"}),"\n",(0,i.jsx)(e.pre,{"data-language":"bash","data-theme":"default",children:(0,i.jsx)(e.code,{"data-language":"bash","data-theme":"default",children:(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"$"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"pushy"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"uploadApk"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"android/app/build/outputs/apk/release/app-release.apk"})]})})}),"\n",(0,i.jsxs)(e.p,{children:["即可上传 apk 以供后续版本比对之用。此 apk 的",(0,i.jsx)(e.code,{children:"versionName"}),"字段(位于",(0,i.jsx)(e.code,{children:"android/app/build.gralde"}),"中)会被记录为原生版本号",(0,i.jsx)(e.code,{children:"packageVersion"}),"。"]}),"\n",(0,i.jsx)(e.p,{children:"随后你可以选择往应用市场发布这个版本,也可以先往设备上直接安装这个 apk 文件以进行测试。"}),"\n",(0,i.jsxs)(e.p,{children:["如果后续需要再次打包(例如修改原生代码或配置。如果只是修改 js 代码则不需要重新打包。),请先",(0,i.jsx)(e.strong,{children:"更改版本号"}),",并再次",(0,i.jsx)(e.code,{children:"uploadApk"}),"到服务器端记录,否则后续生成的相同版本的原生包会由于",(0,i.jsxs)(e.a,{href:"faq#%E7%83%AD%E6%9B%B4%E6%96%B0%E6%8A%A5%E9%94%99%EF%BC%9A%E7%83%AD%E6%9B%B4%E6%96%B0%E5%B7%B2%E6%9A%82%E5%81%9C%EF%BC%8C%E5%8E%9F%E5%9B%A0%EF%BC%9Abuildtime-mismatch%E3%80%82",children:["编译时间戳不一致而",(0,i.jsx)(e.code,{children:"无法获取热更新"})]}),"。"]}),"\n",(0,i.jsxs)(e.blockquote,{children:["\n",(0,i.jsx)(e.p,{children:"注意:如果你在上传之前就运行了新的原生版本,由于服务器端没有记录,会暂停其更新数小时。可删除原先安装的 app 再重新安装以清空暂停设置。在上传之后安装的客户端不会受此影响。"}),"\n"]}),"\n",(0,i.jsx)(e.h2,{id:"发布热更新版本",children:"发布热更新版本"}),"\n",(0,i.jsxs)(e.p,{children:["你可以尝试修改一行代码(譬如将版本一修改为版本二),然后使用",(0,i.jsx)(e.code,{children:"pushy bundle --platform "}),"命令来生成新的热更新版本。"]}),"\n",(0,i.jsx)(e.pre,{"data-language":"bash","data-theme":"default",children:(0,i.jsxs)(e.code,{"data-language":"bash","data-theme":"default",children:[(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"$"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"pushy"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"bundle"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"--platform"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"android"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"Bundling"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"with"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"React"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"Native"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"version:"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"0.22"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:".2"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"<"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"各种进度输出"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:">"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"Bundled"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"saved"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"to:"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"build/output/android.1459850548545.ppk"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"Would"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"you"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"like"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"to"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"publish"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string)"},children:"it?"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"Y/N"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:")"})]})]})}),"\n",(0,i.jsxs)(e.p,{children:["如果想要立即上传,此时输入 Y。当然,你也可以在将来使用",(0,i.jsx)(e.code,{children:"pushy publish --platform android build/output/android.1459850548545.ppk"}),"来上传刚才打包好的热更新包。"]}),"\n",(0,i.jsx)(e.pre,{"data-language":"text","data-theme":"default",children:(0,i.jsxs)(e.code,{"data-language":"text","data-theme":"default",children:[(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" Uploading [========================================================] 100% 0.0s"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"Enter version name: <输入热更新版本名字,如1.0.0-rc>"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"Enter description: <输入热更新版本描述>"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:'Enter meta info: {"ok":1}'})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"Ok."})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"Would you like to bind packages to this version?(Y/N)"})})]})}),"\n",(0,i.jsx)(e.p,{children:"此时版本已经提交到 pushy 服务,但用户暂时看不到此更新,你需要先将特定的原生包版本绑定到此热更新版本上。"}),"\n",(0,i.jsxs)(e.p,{children:["此时输入 Y 立即绑定,你也可以在将来使用",(0,i.jsx)(e.code,{children:"pushy update --platform "}),"来对已上传的热更包和原生包进行绑定。除此以外,你还可以在网页端操作,简单的将对应的原生包版本拖到需要的热更新版本下即可。"]}),"\n",(0,i.jsx)(e.pre,{"data-language":"text","data-theme":"default",children:(0,i.jsxs)(e.code,{"data-language":"text","data-theme":"default",children:[(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"┌────────────┬──────────────────────────────────────┐"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"│ Package Id │ Version │"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"├────────────┼──────────────────────────────────────┤"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"│ 46272 │ 2.0(normal) │"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"├────────────┼──────────────────────────────────────┤"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"│ 45577 │ 1.0(normal) │"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"└────────────┴──────────────────────────────────────┘"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"共 2 个包"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"输入原生包 id: 46272"})})]})}),"\n",(0,i.jsx)(e.p,{children:"版本绑定完毕后,服务器会在几秒内生成差量补丁,客户端就可以获取到更新了。"}),"\n",(0,i.jsxs)(e.p,{children:["后续要继续发布新的热更新,只需反复执行",(0,i.jsx)(e.code,{children:"pushy bundle"}),"命令即可,不需要重新打包。"]}),"\n",(0,i.jsx)(e.p,{children:"恭喜你,至此为止,你已经完成了植入代码热更新的全部工作。"}),"\n",(0,i.jsx)(e.h2,{id:"测试发布与回滚",children:"测试、发布与回滚"}),"\n",(0,i.jsxs)(e.p,{children:["我们强烈建议您先发布一个",(0,i.jsx)(e.strong,{children:"测试包"}),",再发布一个除了版本号以外均完全相同的",(0,i.jsx)(e.strong,{children:"正式包"}),"。"]}),"\n",(0,i.jsxs)(e.p,{children:["例如,假设我们有一个正式包,版本为",(0,i.jsx)(e.code,{children:"1.6.0"}),",那么可以修改版本号重新打包一个",(0,i.jsx)(e.code,{children:"1001.6.0"}),",以一个明显不太正常的版本号来标识它是一个测试版本,同时后几位相同,可以表明它和某个正式版本存在关联(内容/依赖一致)。"]}),"\n",(0,i.jsxs)(e.p,{children:["在每次往发布包发起热更新之前,先对",(0,i.jsx)(e.strong,{children:"测试包"}),(0,i.jsx)(e.code,{children:"1001.6.0"}),"进行更新操作,基本测试通过之后,再在网页后台上将热更包重新绑定到",(0,i.jsx)(e.strong,{children:"正式包"}),(0,i.jsx)(e.code,{children:"1.6.0"}),"上。如果在测试包中发现了重大问题,你就可以先进行修复,更新测试确认通过后再部署到正式线上环境。这样,可以最大程度的避免发生线上事故。"]}),"\n",(0,i.jsx)(e.p,{children:"万一确实发生线上事故需要回滚的话,首先利用版本控制系统回滚代码到正常的状态,然后重新生成热更包并推送即可。"})]})}e.default=(0,r.j)({MDXContent:function(){let s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:e}=Object.assign({},(0,l.a)(),s.components);return e?(0,i.jsx)(e,{...s,children:(0,i.jsx)(c,{...s})}):c(s)},pageOpts:{filePath:"pages/docs/publish.md",route:"/docs/publish",frontMatter:{order:2,title:"发布热更新",type:"快速入门"},title:"发布热更新",headings:o},pageNextRoute:"/docs/publish"})}},function(s){s.O(0,[386,909,807,888,774,179],function(){return s(s.s=9560)}),_N_E=s.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/index-509bd1e50d9b254d.js b/_next/static/chunks/pages/index-509bd1e50d9b254d.js deleted file mode 100644 index 5ec1a91..0000000 --- a/_next/static/chunks/pages/index-509bd1e50d9b254d.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{5526:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return i(77201)}])},77201:function(e,t,i){"use strict";i.r(t),i.d(t,{__toc:function(){return T},default:function(){return F}});var s=i(11527),r=i(38567),a=i(1160),n=i.n(a),c=i(36851),h=i(31992),l=i.n(h),d=i(92751),o={src:"/_next/static/media/home_hero.d1138b55.svg",height:1200,width:1600,blurWidth:0,blurHeight:0},x=i(1538),p=i.n(x),u=function(e){let{isMobile:t}=e;return(0,s.jsxs)("div",{className:"banner-wrapper",children:[(0,s.jsxs)("div",{className:"banner-title-wrapper",children:[(0,s.jsx)(p(),{src:d.Z,style:{margin:"0 0 25px 20px"},alt:"Pushy"}),(0,s.jsx)("p",{children:"极速热更新框架 for React Native"}),(0,s.jsx)("hr",{}),(0,s.jsxs)("p",{style:{marginTop:30,fontSize:16},children:["高速节点勤分发 \xa0\xa0\xa0山河浩广若比邻",(0,s.jsx)("br",{}),"增量算法尽优化 \xa0\xa0\xa0字节四两拨千斤"]}),(0,s.jsxs)("div",{className:"button-wrapper",children:[(0,s.jsx)(l(),{href:"/docs/getting-started",children:(0,s.jsx)(c.ZP,{size:"large",className:"mr-4",type:"primary",ghost:!0,children:"立即免费体验"})}),(0,s.jsx)(n(),{type:"stargazers",namespace:"reactnativecn",repo:"react-native-pushy"},"github-button")]})]}),!t&&(0,s.jsx)("div",{className:"banner-image-wrapper",children:(0,s.jsx)(p(),{height:420,src:o,alt:""})})]})},g=i(50959),m=i(3822),j=i(84099),v=i(26744),f=i(89950),b=i(62940);let y=[{title:"增量更新",content:["基于 bsdiff/hdiff 算法创建","kb 级别超小更新包"],src:{src:"/_next/static/media/smartphone-3.764ef8a6.svg",height:512,width:512,blurWidth:0,blurHeight:0}},{title:"快捷发布",content:["命令行工具 & 网页双端管理","支持CI部署"],src:{src:"/_next/static/media/internet-1.b43e369d.svg",height:512,width:512,blurWidth:0,blurHeight:0}},{title:"极速下载",content:["基于阿里云高速CDN分发","全国范围秒速更新"],src:{src:"/_next/static/media/wifi.5fb5072f.svg",height:512,width:512,blurWidth:0,blurHeight:0}},{title:"稳定可靠",content:["自带崩溃回滚机制","安全可靠"],src:{src:"/_next/static/media/circuit.49da033b.svg",height:512,width:512,blurWidth:0,blurHeight:0}},{title:"灵活扩展",content:["开放定制元信息","提供灵活自由的更新策略"],src:{src:"/_next/static/media/strategy.bf162499.svg",height:512,width:512,blurWidth:0,blurHeight:0}},{title:"技术支持",content:["遇到技术问题?","工作时间段内小时级别响应"],src:{src:"/_next/static/media/chat.7d446ceb.svg",height:512,width:512,blurWidth:0,blurHeight:0}}],w=[{x:-30,y:-10},{x:20,y:-20},{x:-65,y:15},{x:-45,y:80},{x:35,y:5},{x:50,y:50,opacity:.2}];class N extends g.Component{render(){let{hoverNum:e}=this.state,{isMobile:t}=this.props,i=[[],[],[]];return y.forEach((r,a)=>{let n=e===a,c=["point-0 left","point-0 right","point-ring","point-1","point-2","point-3"].map(e=>(0,s.jsx)(f.ZP,{component:"i",className:e,style:{background:r.color,borderColor:r.color}},e)),h=(0,s.jsx)("li",{children:(0,s.jsxs)("div",{className:"page1-box",onMouseEnter:()=>{this.onMouseOver(a)},onMouseLeave:this.onMouseOut,children:[(0,s.jsx)(b.Z,{className:"page1-point-wrapper",enter:this.getEnter,leave:{x:0,y:30,opacity:0,duration:300,ease:"easeInBack"},resetStyle:!1,exclusive:!0,children:(t||n)&&c}),(0,s.jsx)("div",{className:"page1-image",style:{boxShadow:"".concat(n?"0 12px 24px":"0 6px 12px"," ").concat(r.shadowColor)},children:(0,s.jsx)(p(),{src:r.src,alt:"img",style:4===a?{marginLeft:-15}:{}})}),(0,s.jsx)("h3",{children:r.title}),r.content.map((e,t)=>(0,s.jsx)("p",{children:e},t))]})},a.toString());i[Math.floor(a/3)].push(h)}),i=i.map((e,t)=>(0,s.jsx)(v.Z,{className:"page1-box-wrapper",type:"bottom",leaveReverse:!0,delay:[100*t,(i.length-1-t)*100],component:"ul",children:e},t.toString())),(0,s.jsx)("div",{className:"home-page page1",children:(0,s.jsxs)("div",{className:"home-page-wrapper",id:"page1-wrapper",children:[!t&&(0,s.jsx)(j.Z,{className:"page1-bg",animation:{translateY:200,ease:"linear",playScale:[0,1.65]},location:"page1-wrapper",children:"Feature"}),(0,s.jsxs)("h2",{children:["为什么选择 ",(0,s.jsx)("span",{children:"Pushy"})]}),(0,s.jsx)("div",{className:"title-line-wrapper page1-line",children:(0,s.jsx)("div",{className:"title-line"})}),(0,s.jsx)(m.Z,{children:i}),(0,s.jsxs)("div",{style:{float:"right",opacity:.4,marginRight:"6%"},children:["Icons made by"," ",(0,s.jsx)("a",{href:"https://www.flaticon.com/authors/swifticons",title:"Swifticons",children:"Swifticons"})," ","from"," ",(0,s.jsx)("a",{href:"https://www.flaticon.com/",title:"Flaticon",children:"www.flaticon.com"})]})]})})}constructor(...e){super(...e),this.state={hoverNum:null},this.onMouseOver=e=>{this.setState({hoverNum:e})},this.onMouseOut=()=>{this.setState({hoverNum:null})},this.getEnter=e=>{let t=e.index,i=10*Math.random()+5;return[{delay:Math.round(50*t*Math.random()),opacity:.4,...w[e.index],ease:"easeOutBack",duration:300},{y:2*Math.random()-1>0?"+=".concat(i):"-=".concat(i),duration:1e3*Math.random()+2e3,yoyo:!0,repeat:-1}]}}}var _=i(884),H=i.n(_),W=function(){return(0,s.jsx)("div",{className:"home-page page2",children:(0,s.jsxs)("div",{className:"home-page-wrapper",children:[(0,s.jsx)("div",{className:"title-line-wrapper page2-line",children:(0,s.jsx)("div",{className:"title-line"})}),(0,s.jsxs)("h2",{children:["Let’s ",(0,s.jsx)("span",{children:"Pushy"})]}),(0,s.jsx)(H(),{children:(0,s.jsxs)(v.Z,{type:"bottom",leaveReverse:!0,className:"page2-content",children:[(0,s.jsxs)("div",{className:"home-code",children:[(0,s.jsx)("div",{children:"# 安装"}),(0,s.jsx)("div",{children:"$ npm i -g react-native-update-cli"}),(0,s.jsx)("div",{children:"$ npm i react-native-update && cd ios && pod install"}),(0,s.jsx)("br",{}),(0,s.jsx)("div",{children:"# 上传原生基础包"}),(0,s.jsx)("div",{children:"$ pushy uploadIpa yourApp.ipa"}),(0,s.jsx)("div",{children:"$ pushy uploadApk yourApp.apk"}),(0,s.jsx)("br",{}),(0,s.jsx)("div",{children:"# 生成并上传热更包"}),(0,s.jsx)("div",{children:"$ pushy bundle --platform android"}),(0,s.jsx)("div",{children:"$ pushy bundle --platform ios"})]},"code1"),(0,s.jsx)(c.ZP,{style:{marginTop:40,padding:"4px 56px"},type:"primary",href:"/docs/getting-started",children:"查看文档"})]},"queue")})]})})},M={src:"/_next/static/media/wyyx.888677b3.svg",height:29,width:98,blurWidth:0,blurHeight:0},k={src:"/_next/static/media/lyl.f8b29a84.svg",height:28,width:76,blurWidth:0,blurHeight:0},P={src:"/_next/static/media/hzsfdx.5234e6fb.svg",height:39,width:133,blurWidth:0,blurHeight:0},S={src:"/_next/static/media/jljr.6e1e625b.svg",height:35,width:90,blurWidth:0,blurHeight:0},E={src:"/_next/static/media/pabdc.94ba2393.svg",height:28,width:112,blurWidth:0,blurHeight:0},Z={src:"/_next/static/media/yckj.4f5dce8d.svg",height:25,width:75,blurWidth:0,blurHeight:0},C={src:"/_next/static/media/najj.57af17e1.svg",height:45,width:97,blurWidth:0,blurHeight:0},O={src:"/_next/static/media/rjwl.e0d2f33e.svg",height:17,width:101,blurWidth:0,blurHeight:0},$={src:"/_next/static/media/htxx.c1058a24.svg",height:25,width:126,blurWidth:0,blurHeight:0},I={src:"/_next/static/media/tjgj.f0e74f29.svg",height:25,width:84,blurWidth:0,blurHeight:0},R=function(e){let{isMobile:t}=e;return(0,s.jsxs)("div",{className:"max-w-[1250px] mx-auto home-page !mb-32",children:[(0,s.jsxs)("h2",{children:["他们选择了 ",(0,s.jsx)("span",{children:"Pushy"})]}),(0,s.jsx)("div",{className:"title-line-wrapper page1-line !mb-10",children:(0,s.jsx)("div",{className:"title-line"})}),(0,s.jsxs)("div",{className:"grid grid-cols-2 xl:grid-cols-5 gap-y-5",children:[(0,s.jsx)("div",{className:"h-20 flex justify-center items-center",children:(0,s.jsx)(p(),{src:M,alt:"网易游戏",height:60})}),(0,s.jsx)("div",{className:"h-20 flex justify-center items-center",children:(0,s.jsx)(p(),{src:k,alt:"蓝月亮",height:50})}),(0,s.jsx)("div",{className:"h-20 flex justify-center items-center",children:(0,s.jsx)(p(),{src:P,alt:"华中师范大学",height:75})}),(0,s.jsx)("div",{className:"h-20 flex justify-center items-center",children:(0,s.jsx)(p(),{src:S,alt:"娇兰佳人",height:70})}),(0,s.jsx)("div",{className:"h-20 flex justify-center items-center",children:(0,s.jsx)(p(),{src:E,alt:"平安不动产",height:60})}),(0,s.jsx)("div",{className:"h-20 flex justify-center items-center",children:(0,s.jsx)(p(),{src:Z,alt:"友车科技",height:55})}),(0,s.jsx)("div",{className:"h-20 flex justify-center items-center",children:(0,s.jsx)(p(),{src:C,alt:"诺安基金",height:70})}),(0,s.jsx)("div",{className:"h-20 flex justify-center items-center",children:(0,s.jsx)(p(),{src:O,alt:"锐捷网络",height:35})}),(0,s.jsx)("div",{className:"h-20 flex justify-center items-center",children:(0,s.jsx)(p(),{src:$,alt:"航天信息",height:42})}),(0,s.jsx)("div",{className:"h-20 flex justify-center items-center",children:(0,s.jsx)(p(),{src:I,alt:"天津公交",height:48})})]})]})};let z=function(e){return(0,s.jsxs)("div",{className:"home-wrapper",children:[(0,s.jsx)(u,{...e}),(0,s.jsx)(R,{...e}),(0,s.jsx)(N,{...e}),(0,s.jsx)(W,{...e})]})},T=[];function A(e){return(0,s.jsx)(s.Fragment,{})}var F=(0,r.j)({MDXContent:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,s.jsx)(z,{...e,children:(0,s.jsx)(A,{...e})})},pageOpts:{filePath:"pages/index.mdx",route:"/",title:"Index",headings:T},pageNextRoute:"/"})}},function(e){e.O(0,[567,204,888,774,179],function(){return e(e.s=5526)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/index-b3a0f7934da798ac.js b/_next/static/chunks/pages/index-b3a0f7934da798ac.js new file mode 100644 index 0000000..d4c1784 --- /dev/null +++ b/_next/static/chunks/pages/index-b3a0f7934da798ac.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{99428:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return i(47302)}])},47302:function(e,t,i){"use strict";i.r(t),i.d(t,{__toc:function(){return T},default:function(){return F}});var s=i(11527),r=i(86909),a=i(1160),n=i.n(a),c=i(73653),h=i(30175),l=i.n(h),d=i(10349),o={src:"/_next/static/media/home_hero.d1138b55.svg",height:1200,width:1600,blurWidth:0,blurHeight:0},x=i(85751),p=i.n(x),u=function(e){let{isMobile:t}=e;return(0,s.jsxs)("div",{className:"banner-wrapper",children:[(0,s.jsxs)("div",{className:"banner-title-wrapper",children:[(0,s.jsx)(p(),{src:d.Z,style:{margin:"0 0 25px 20px"},alt:"Pushy"}),(0,s.jsx)("p",{children:"极速热更新框架 for React Native"}),(0,s.jsx)("hr",{}),(0,s.jsxs)("p",{style:{marginTop:30,fontSize:16},children:["高速节点勤分发 \xa0\xa0\xa0山河浩广若比邻",(0,s.jsx)("br",{}),"增量算法尽优化 \xa0\xa0\xa0字节四两拨千斤"]}),(0,s.jsxs)("div",{className:"button-wrapper",children:[(0,s.jsx)(l(),{href:"/docs/getting-started",children:(0,s.jsx)(c.ZP,{size:"large",className:"mr-4",type:"primary",ghost:!0,children:"立即免费体验"})}),(0,s.jsx)(n(),{type:"stargazers",namespace:"reactnativecn",repo:"react-native-pushy"},"github-button")]})]}),!t&&(0,s.jsx)("div",{className:"banner-image-wrapper",children:(0,s.jsx)(p(),{height:420,src:o,alt:""})})]})},g=i(50959),m=i(72220),j=i(22451),v=i(26744),f=i(15193),b=i(90750);let y=[{title:"增量更新",content:["基于 bsdiff/hdiff 算法创建","kb 级别超小更新包"],src:{src:"/_next/static/media/smartphone-3.764ef8a6.svg",height:512,width:512,blurWidth:0,blurHeight:0}},{title:"快捷发布",content:["命令行工具 & 网页双端管理","支持CI部署"],src:{src:"/_next/static/media/internet-1.b43e369d.svg",height:512,width:512,blurWidth:0,blurHeight:0}},{title:"极速下载",content:["基于阿里云高速CDN分发","全国范围秒速更新"],src:{src:"/_next/static/media/wifi.5fb5072f.svg",height:512,width:512,blurWidth:0,blurHeight:0}},{title:"稳定可靠",content:["自带崩溃回滚机制","安全可靠"],src:{src:"/_next/static/media/circuit.49da033b.svg",height:512,width:512,blurWidth:0,blurHeight:0}},{title:"灵活扩展",content:["开放定制元信息","提供灵活自由的更新策略"],src:{src:"/_next/static/media/strategy.bf162499.svg",height:512,width:512,blurWidth:0,blurHeight:0}},{title:"技术支持",content:["遇到技术问题?","工作时间段内小时级别响应"],src:{src:"/_next/static/media/chat.7d446ceb.svg",height:512,width:512,blurWidth:0,blurHeight:0}}],w=[{x:-30,y:-10},{x:20,y:-20},{x:-65,y:15},{x:-45,y:80},{x:35,y:5},{x:50,y:50,opacity:.2}];class N extends g.Component{render(){let{hoverNum:e}=this.state,{isMobile:t}=this.props,i=[[],[],[]];return y.forEach((r,a)=>{let n=e===a,c=["point-0 left","point-0 right","point-ring","point-1","point-2","point-3"].map(e=>(0,s.jsx)(f.ZP,{component:"i",className:e,style:{background:r.color,borderColor:r.color}},e)),h=(0,s.jsx)("li",{children:(0,s.jsxs)("div",{className:"page1-box",onMouseEnter:()=>{this.onMouseOver(a)},onMouseLeave:this.onMouseOut,children:[(0,s.jsx)(b.Z,{className:"page1-point-wrapper",enter:this.getEnter,leave:{x:0,y:30,opacity:0,duration:300,ease:"easeInBack"},resetStyle:!1,exclusive:!0,children:(t||n)&&c}),(0,s.jsx)("div",{className:"page1-image",style:{boxShadow:"".concat(n?"0 12px 24px":"0 6px 12px"," ").concat(r.shadowColor)},children:(0,s.jsx)(p(),{src:r.src,alt:"img",style:4===a?{marginLeft:-15}:{}})}),(0,s.jsx)("h3",{children:r.title}),r.content.map((e,t)=>(0,s.jsx)("p",{children:e},t))]})},a.toString());i[Math.floor(a/3)].push(h)}),i=i.map((e,t)=>(0,s.jsx)(v.Z,{className:"page1-box-wrapper",type:"bottom",leaveReverse:!0,delay:[100*t,(i.length-1-t)*100],component:"ul",children:e},t.toString())),(0,s.jsx)("div",{className:"home-page page1",children:(0,s.jsxs)("div",{className:"home-page-wrapper",id:"page1-wrapper",children:[!t&&(0,s.jsx)(j.Z,{className:"page1-bg",animation:{translateY:200,ease:"linear",playScale:[0,1.65]},location:"page1-wrapper",children:"Feature"}),(0,s.jsxs)("h2",{children:["为什么选择 ",(0,s.jsx)("span",{children:"Pushy"})]}),(0,s.jsx)("div",{className:"title-line-wrapper page1-line",children:(0,s.jsx)("div",{className:"title-line"})}),(0,s.jsx)(m.Z,{children:i}),(0,s.jsxs)("div",{style:{float:"right",opacity:.4,marginRight:"6%"},children:["Icons made by"," ",(0,s.jsx)("a",{href:"https://www.flaticon.com/authors/swifticons",title:"Swifticons",children:"Swifticons"})," ","from"," ",(0,s.jsx)("a",{href:"https://www.flaticon.com/",title:"Flaticon",children:"www.flaticon.com"})]})]})})}constructor(...e){super(...e),this.state={hoverNum:null},this.onMouseOver=e=>{this.setState({hoverNum:e})},this.onMouseOut=()=>{this.setState({hoverNum:null})},this.getEnter=e=>{let t=e.index,i=10*Math.random()+5;return[{delay:Math.round(50*t*Math.random()),opacity:.4,...w[e.index],ease:"easeOutBack",duration:300},{y:2*Math.random()-1>0?"+=".concat(i):"-=".concat(i),duration:1e3*Math.random()+2e3,yoyo:!0,repeat:-1}]}}}var _=i(76100),H=i.n(_),W=function(){return(0,s.jsx)("div",{className:"home-page page2",children:(0,s.jsxs)("div",{className:"home-page-wrapper",children:[(0,s.jsx)("div",{className:"title-line-wrapper page2-line",children:(0,s.jsx)("div",{className:"title-line"})}),(0,s.jsxs)("h2",{children:["Let’s ",(0,s.jsx)("span",{children:"Pushy"})]}),(0,s.jsx)(H(),{children:(0,s.jsxs)(v.Z,{type:"bottom",leaveReverse:!0,className:"page2-content",children:[(0,s.jsxs)("div",{className:"home-code",children:[(0,s.jsx)("div",{children:"# 安装"}),(0,s.jsx)("div",{children:"$ npm i -g react-native-update-cli"}),(0,s.jsx)("div",{children:"$ npm i react-native-update && cd ios && pod install"}),(0,s.jsx)("br",{}),(0,s.jsx)("div",{children:"# 上传原生基础包"}),(0,s.jsx)("div",{children:"$ pushy uploadIpa yourApp.ipa"}),(0,s.jsx)("div",{children:"$ pushy uploadApk yourApp.apk"}),(0,s.jsx)("br",{}),(0,s.jsx)("div",{children:"# 生成并上传热更包"}),(0,s.jsx)("div",{children:"$ pushy bundle --platform android"}),(0,s.jsx)("div",{children:"$ pushy bundle --platform ios"})]},"code1"),(0,s.jsx)(c.ZP,{style:{marginTop:40,padding:"4px 56px"},type:"primary",href:"/docs/getting-started",children:"查看文档"})]},"queue")})]})})},M={src:"/_next/static/media/wyyx.888677b3.svg",height:29,width:98,blurWidth:0,blurHeight:0},k={src:"/_next/static/media/lyl.f8b29a84.svg",height:28,width:76,blurWidth:0,blurHeight:0},P={src:"/_next/static/media/hzsfdx.5234e6fb.svg",height:39,width:133,blurWidth:0,blurHeight:0},S={src:"/_next/static/media/jljr.6e1e625b.svg",height:35,width:90,blurWidth:0,blurHeight:0},E={src:"/_next/static/media/pabdc.94ba2393.svg",height:28,width:112,blurWidth:0,blurHeight:0},Z={src:"/_next/static/media/yckj.4f5dce8d.svg",height:25,width:75,blurWidth:0,blurHeight:0},C={src:"/_next/static/media/najj.57af17e1.svg",height:45,width:97,blurWidth:0,blurHeight:0},O={src:"/_next/static/media/rjwl.e0d2f33e.svg",height:17,width:101,blurWidth:0,blurHeight:0},$={src:"/_next/static/media/htxx.c1058a24.svg",height:25,width:126,blurWidth:0,blurHeight:0},I={src:"/_next/static/media/tjgj.f0e74f29.svg",height:25,width:84,blurWidth:0,blurHeight:0},R=function(e){let{isMobile:t}=e;return(0,s.jsxs)("div",{className:"max-w-[1250px] mx-auto home-page !mb-32",children:[(0,s.jsxs)("h2",{children:["他们选择了 ",(0,s.jsx)("span",{children:"Pushy"})]}),(0,s.jsx)("div",{className:"title-line-wrapper page1-line !mb-10",children:(0,s.jsx)("div",{className:"title-line"})}),(0,s.jsxs)("div",{className:"grid grid-cols-2 xl:grid-cols-5 gap-y-5",children:[(0,s.jsx)("div",{className:"h-20 flex justify-center items-center",children:(0,s.jsx)(p(),{src:M,alt:"网易游戏",height:60})}),(0,s.jsx)("div",{className:"h-20 flex justify-center items-center",children:(0,s.jsx)(p(),{src:k,alt:"蓝月亮",height:50})}),(0,s.jsx)("div",{className:"h-20 flex justify-center items-center",children:(0,s.jsx)(p(),{src:P,alt:"华中师范大学",height:75})}),(0,s.jsx)("div",{className:"h-20 flex justify-center items-center",children:(0,s.jsx)(p(),{src:S,alt:"娇兰佳人",height:70})}),(0,s.jsx)("div",{className:"h-20 flex justify-center items-center",children:(0,s.jsx)(p(),{src:E,alt:"平安不动产",height:60})}),(0,s.jsx)("div",{className:"h-20 flex justify-center items-center",children:(0,s.jsx)(p(),{src:Z,alt:"友车科技",height:55})}),(0,s.jsx)("div",{className:"h-20 flex justify-center items-center",children:(0,s.jsx)(p(),{src:C,alt:"诺安基金",height:70})}),(0,s.jsx)("div",{className:"h-20 flex justify-center items-center",children:(0,s.jsx)(p(),{src:O,alt:"锐捷网络",height:35})}),(0,s.jsx)("div",{className:"h-20 flex justify-center items-center",children:(0,s.jsx)(p(),{src:$,alt:"航天信息",height:42})}),(0,s.jsx)("div",{className:"h-20 flex justify-center items-center",children:(0,s.jsx)(p(),{src:I,alt:"天津公交",height:48})})]})]})};let z=function(e){return(0,s.jsxs)("div",{className:"home-wrapper",children:[(0,s.jsx)(u,{...e}),(0,s.jsx)(R,{...e}),(0,s.jsx)(N,{...e}),(0,s.jsx)(W,{...e})]})},T=[];function A(e){return(0,s.jsx)(s.Fragment,{})}var F=(0,r.j)({MDXContent:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,s.jsx)(z,{...e,children:(0,s.jsx)(A,{...e})})},pageOpts:{filePath:"pages/index.mdx",route:"/",title:"Index",headings:T},pageNextRoute:"/"})}},function(e){e.O(0,[909,871,888,774,179],function(){return e(e.s=99428)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/pricing-877557ee472599ef.js b/_next/static/chunks/pages/pricing-877557ee472599ef.js deleted file mode 100644 index ed40924..0000000 --- a/_next/static/chunks/pages/pricing-877557ee472599ef.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[939],{81751:function(i,s,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pricing",function(){return n(48705)}])},48705:function(i,s,n){"use strict";n.r(s),n.d(s,{__toc:function(){return j},default:function(){return N}});var e=n(11527),c=n(38567),a=n(31654),r=n(36851),l=n(67832),p=n(70587),_=n(581),t=n(19873);let m=()=>(0,e.jsx)(a.Z,{title:"iOS 和 Android 版本记做不同的应用。您可删除已不再使用的应用来有效利用配额。",children:(0,e.jsx)("a",{children:"应用"})}),d=()=>(0,e.jsx)(a.Z,{title:"原生包指完整的 apk 或 ipa 格式的安装包。您可删除已不再使用的原生包来有效利用配额。",children:(0,e.jsx)("a",{children:"原生包"})}),h=()=>(0,e.jsx)(a.Z,{title:'热更包指"pushy bundle"命令生成的 ppk 文件(其中包含jsbundle、图片等业务逻辑文件)。\n注意这不是用户实际下载的文件,用户实际下载的是经过服务器运算后生成的极小差量补丁包。您可删除已不再使用的热更包来有效利用配额。',children:(0,e.jsx)("a",{children:"热更包"})}),x=function(){return(0,e.jsx)("div",{className:"home-wrapper",children:(0,e.jsxs)("section",{className:"pricing-section",children:[(0,e.jsxs)("p",{style:{marginBottom:25,textAlign:"center"},children:["新注册用户将自动获得",(0,e.jsx)(a.Z,{title:"您可将注册用户名、公司(或个人)名称发送至,申请延长评估时间",children:(0,e.jsx)("a",{children:"7 天"})}),"的",(0,e.jsx)("strong",{children:"专业版"}),"免费试用评估。到期后转为免费版。如需按月购买,请联系QQ客服 34731408."]}),(0,e.jsxs)("div",{className:"pricing pricing--rabten",children:[(0,e.jsxs)("div",{className:"pricing__item",children:[(0,e.jsx)(l.Z,{className:"icon"}),(0,e.jsx)("h3",{className:"pricing__title",children:"免费版"}),(0,e.jsx)("p",{className:"pricing__sentence",children:"适用于小型应用,轻度更新需求"}),(0,e.jsxs)("div",{className:"pricing__price",children:[(0,e.jsxs)("span",{className:"pricing__anim pricing__anim--1",children:[(0,e.jsx)("span",{className:"pricing__currency",children:"¥"}),"0"]}),(0,e.jsx)("span",{className:"pricing__anim pricing__anim--2",children:(0,e.jsx)("span",{className:"pricing__period",children:" / 年"})}),(0,e.jsx)("hr",{}),(0,e.jsx)("span",{className:"pricing__anim pricing__anim--1"}),(0,e.jsx)("span",{className:"pricing__anim pricing__anim--2"})]}),(0,e.jsxs)("ul",{className:"pricing__feature-list",children:[(0,e.jsxs)("li",{className:"pricing__feature",children:["可创建3个",(0,e.jsx)(m,{}),",每个限*:"]}),(0,e.jsxs)("li",{className:"pricing__feature",children:["30个",(0,e.jsx)(d,{}),",每个最大30M"]}),(0,e.jsxs)("li",{className:"pricing__feature",children:["30个",(0,e.jsx)(h,{}),",每个最大3M"]})]}),(0,e.jsx)(r.ZP,{shape:"round",style:{marginTop:"auto",padding:"4px 16px"},href:"docs/getting-started",children:"开始使用"})]}),(0,e.jsxs)("div",{className:"pricing__item",children:[(0,e.jsx)(p.Z,{className:"icon"}),(0,e.jsx)("h3",{className:"pricing__title",children:"标准版"}),(0,e.jsx)("p",{className:"pricing__sentence",children:"适用于一般应用,中度更新需求"}),(0,e.jsxs)("div",{className:"pricing__price",children:[(0,e.jsxs)("span",{className:"pricing__anim pricing__anim--1",children:[(0,e.jsx)("span",{className:"pricing__currency",children:"¥"}),"800"]}),(0,e.jsx)("span",{className:"pricing__anim pricing__anim--2",children:(0,e.jsx)("span",{className:"pricing__period",children:"/ 年"})}),(0,e.jsx)("hr",{}),(0,e.jsxs)("span",{className:"pricing__anim pricing__anim--1",children:[(0,e.jsx)("span",{className:"pricing__currency",children:"¥"}),"100"]}),(0,e.jsx)("span",{className:"pricing__anim pricing__anim--2",children:(0,e.jsx)("span",{className:"pricing__period",children:"/ 月"})})]}),(0,e.jsxs)("ul",{className:"pricing__feature-list",children:[(0,e.jsxs)("li",{className:"pricing__feature",children:["可创建5个",(0,e.jsx)(m,{})," ,每个限*:"]}),(0,e.jsxs)("li",{className:"pricing__feature",children:["50个",(0,e.jsx)(d,{}),",每个最大150M"]}),(0,e.jsxs)("li",{className:"pricing__feature",children:["50个",(0,e.jsx)(h,{}),",每个最大15M"]}),(0,e.jsx)("li",{className:"pricing__feature",children:"提供专人技术支持"})]}),(0,e.jsx)(r.ZP,{style:{marginTop:"auto"},shape:"round",type:"primary",target:"_blank",href:"https://pushy-admin.reactnative.cn/#/user",children:"立即升级"})]}),(0,e.jsxs)("div",{className:"pricing__item",children:[(0,e.jsx)(_.Z,{className:"icon"}),(0,e.jsx)("h3",{className:"pricing__title",children:"高级版"}),(0,e.jsx)("p",{className:"pricing__sentence",children:"适用于一般应用,中度更新需求"}),(0,e.jsxs)("div",{className:"pricing__price",children:[(0,e.jsxs)("span",{className:"pricing__anim pricing__anim--1",children:[(0,e.jsx)("span",{className:"pricing__currency",children:"¥"}),"2400"]}),(0,e.jsx)("span",{className:"pricing__anim pricing__anim--2",children:(0,e.jsx)("span",{className:"pricing__period",children:"/ 年"})})," ",(0,e.jsx)("hr",{}),(0,e.jsxs)("span",{className:"pricing__anim pricing__anim--1",children:[(0,e.jsx)("span",{className:"pricing__currency",children:"¥"}),"300"]}),(0,e.jsx)("span",{className:"pricing__anim pricing__anim--2",children:(0,e.jsx)("span",{className:"pricing__period",children:"/ 月"})})]}),(0,e.jsxs)("ul",{className:"pricing__feature-list",children:[(0,e.jsxs)("li",{className:"pricing__feature",children:["可创建10个",(0,e.jsx)(m,{}),",每个限*:"]}),(0,e.jsxs)("li",{className:"pricing__feature",children:["60个",(0,e.jsx)(d,{}),",每个最大500M"]}),(0,e.jsxs)("li",{className:"pricing__feature",children:["60个",(0,e.jsx)(h,{}),",每个最大50M"]}),(0,e.jsx)("li",{className:"pricing__feature",children:"提供专人技术支持"})]}),(0,e.jsx)(r.ZP,{style:{marginTop:"auto"},shape:"round",type:"primary",target:"_blank",href:"https://pushy-admin.reactnative.cn/#/user",children:"立即升级"})]}),(0,e.jsxs)("div",{className:"pricing__item",children:[(0,e.jsx)(t.Z,{className:"icon"}),(0,e.jsx)("h3",{className:"pricing__title",children:"专业版"}),(0,e.jsx)("p",{className:"pricing__sentence",children:"适用于商业应用,高速迭代需求"}),(0,e.jsxs)("div",{className:"pricing__price",children:[(0,e.jsxs)("span",{className:"pricing__anim pricing__anim--1",children:[(0,e.jsx)("span",{className:"pricing__currency",children:"¥"}),"7200"]}),(0,e.jsx)("span",{className:"pricing__anim pricing__anim--2",children:(0,e.jsx)("span",{className:"pricing__period",children:"/ 年"})})," ",(0,e.jsx)("hr",{}),(0,e.jsxs)("span",{className:"pricing__anim pricing__anim--1",children:[(0,e.jsx)("span",{className:"pricing__currency",children:"¥"}),"900"]}),(0,e.jsx)("span",{className:"pricing__anim pricing__anim--2",children:(0,e.jsx)("span",{className:"pricing__period",children:"/ 月"})})]}),(0,e.jsxs)("ul",{className:"pricing__feature-list",children:[(0,e.jsxs)("li",{className:"pricing__feature",children:["可创建20个",(0,e.jsx)(m,{}),",每个限*:"]}),(0,e.jsxs)("li",{className:"pricing__feature",children:["100个",(0,e.jsx)(d,{}),",每个最大2000M"]}),(0,e.jsxs)("li",{className:"pricing__feature",children:["100个",(0,e.jsx)(h,{}),",每个最大200M"]}),(0,e.jsx)("li",{className:"pricing__feature",children:"提供专人技术支持"})]}),(0,e.jsx)(r.ZP,{style:{marginTop:"auto"},shape:"round",type:"primary",target:"_blank",href:"https://pushy-admin.reactnative.cn/#/user",children:"立即升级"})]})]}),(0,e.jsxs)("div",{style:{color:"#8b909d",textAlign:"center",fontSize:"16px",marginTop:10},children:[(0,e.jsxs)("p",{className:"mb-4",children:["如您需要更高配额,我们也提供定制版本或是私有服务器部署,您可将具体需求发送至"," ",(0,e.jsx)("a",{href:"mailto:hi@charmlot.com",children:"hi@charmlot.com"})," ","我们将第一时间回复。"]}),(0,e.jsxs)("p",{className:"mb-4",children:["*注:iOS 和 Android 版本记做不同的应用。",(0,e.jsx)("br",{}),"原生包指完整的apk/ipa安装包。热更包指pushy bundle命令生成的ppk文件(不是用户实际下载的增量更新文件)。",(0,e.jsx)("br",{}),"您可删除已不再使用的应用、原生包、热更包来有效利用配额。"]}),(0,e.jsxs)("p",{children:["对于付费业务还有其他疑问?请参考",(0,e.jsx)("a",{className:"text-[#1890ff] font-bold",href:"docs/faq#%E4%BB%98%E8%B4%B9%E9%97%AE%E9%A2%98",children:"常见问题"})]})]})]})})},j=[];function g(i){return(0,e.jsx)(e.Fragment,{})}var N=(0,c.j)({MDXContent:function(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,e.jsx)(x,{...i,children:(0,e.jsx)(g,{...i})})},pageOpts:{filePath:"pages/pricing.mdx",route:"/pricing",frontMatter:{title:"价格"},title:"价格",headings:j},pageNextRoute:"/pricing"})}},function(i){i.O(0,[567,795,888,774,179],function(){return i(i.s=81751)}),_N_E=i.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/pricing-cfbe34dd67dd0871.js b/_next/static/chunks/pages/pricing-cfbe34dd67dd0871.js new file mode 100644 index 0000000..a6c1995 --- /dev/null +++ b/_next/static/chunks/pages/pricing-cfbe34dd67dd0871.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[939],{49567:function(i,s,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pricing",function(){return n(18247)}])},18247:function(i,s,n){"use strict";n.r(s),n.d(s,{__toc:function(){return j},default:function(){return N}});var e=n(11527),c=n(86909),a=n(812),r=n(73653),l=n(58209),p=n(83996),_=n(51050),t=n(2748);let m=()=>(0,e.jsx)(a.Z,{title:"iOS 和 Android 版本记做不同的应用。您可删除已不再使用的应用来有效利用配额。",children:(0,e.jsx)("a",{children:"应用"})}),d=()=>(0,e.jsx)(a.Z,{title:"原生包指完整的 apk 或 ipa 格式的安装包。您可删除已不再使用的原生包来有效利用配额。",children:(0,e.jsx)("a",{children:"原生包"})}),h=()=>(0,e.jsx)(a.Z,{title:'热更包指"pushy bundle"命令生成的 ppk 文件(其中包含jsbundle、图片等业务逻辑文件)。\n注意这不是用户实际下载的文件,用户实际下载的是经过服务器运算后生成的极小差量补丁包。您可删除已不再使用的热更包来有效利用配额。',children:(0,e.jsx)("a",{children:"热更包"})}),x=function(){return(0,e.jsx)("div",{className:"home-wrapper",children:(0,e.jsxs)("section",{className:"pricing-section",children:[(0,e.jsxs)("p",{style:{marginBottom:25,textAlign:"center"},children:["新注册用户将自动获得",(0,e.jsx)(a.Z,{title:"您可将注册用户名、公司(或个人)名称发送至,申请延长评估时间",children:(0,e.jsx)("a",{children:"7 天"})}),"的",(0,e.jsx)("strong",{children:"专业版"}),"免费试用评估。到期后转为免费版。如需按月购买,请联系QQ客服 34731408."]}),(0,e.jsxs)("div",{className:"pricing pricing--rabten",children:[(0,e.jsxs)("div",{className:"pricing__item",children:[(0,e.jsx)(l.Z,{className:"icon"}),(0,e.jsx)("h3",{className:"pricing__title",children:"免费版"}),(0,e.jsx)("p",{className:"pricing__sentence",children:"适用于小型应用,轻度更新需求"}),(0,e.jsxs)("div",{className:"pricing__price",children:[(0,e.jsxs)("span",{className:"pricing__anim pricing__anim--1",children:[(0,e.jsx)("span",{className:"pricing__currency",children:"¥"}),"0"]}),(0,e.jsx)("span",{className:"pricing__anim pricing__anim--2",children:(0,e.jsx)("span",{className:"pricing__period",children:" / 年"})}),(0,e.jsx)("hr",{}),(0,e.jsx)("span",{className:"pricing__anim pricing__anim--1"}),(0,e.jsx)("span",{className:"pricing__anim pricing__anim--2"})]}),(0,e.jsxs)("ul",{className:"pricing__feature-list",children:[(0,e.jsxs)("li",{className:"pricing__feature",children:["可创建3个",(0,e.jsx)(m,{}),",每个限*:"]}),(0,e.jsxs)("li",{className:"pricing__feature",children:["30个",(0,e.jsx)(d,{}),",每个最大30M"]}),(0,e.jsxs)("li",{className:"pricing__feature",children:["30个",(0,e.jsx)(h,{}),",每个最大3M"]})]}),(0,e.jsx)(r.ZP,{shape:"round",style:{marginTop:"auto",padding:"4px 16px"},href:"docs/getting-started",children:"开始使用"})]}),(0,e.jsxs)("div",{className:"pricing__item",children:[(0,e.jsx)(p.Z,{className:"icon"}),(0,e.jsx)("h3",{className:"pricing__title",children:"标准版"}),(0,e.jsx)("p",{className:"pricing__sentence",children:"适用于一般应用,中度更新需求"}),(0,e.jsxs)("div",{className:"pricing__price",children:[(0,e.jsxs)("span",{className:"pricing__anim pricing__anim--1",children:[(0,e.jsx)("span",{className:"pricing__currency",children:"¥"}),"800"]}),(0,e.jsx)("span",{className:"pricing__anim pricing__anim--2",children:(0,e.jsx)("span",{className:"pricing__period",children:"/ 年"})}),(0,e.jsx)("hr",{}),(0,e.jsxs)("span",{className:"pricing__anim pricing__anim--1",children:[(0,e.jsx)("span",{className:"pricing__currency",children:"¥"}),"100"]}),(0,e.jsx)("span",{className:"pricing__anim pricing__anim--2",children:(0,e.jsx)("span",{className:"pricing__period",children:"/ 月"})})]}),(0,e.jsxs)("ul",{className:"pricing__feature-list",children:[(0,e.jsxs)("li",{className:"pricing__feature",children:["可创建5个",(0,e.jsx)(m,{})," ,每个限*:"]}),(0,e.jsxs)("li",{className:"pricing__feature",children:["50个",(0,e.jsx)(d,{}),",每个最大150M"]}),(0,e.jsxs)("li",{className:"pricing__feature",children:["50个",(0,e.jsx)(h,{}),",每个最大15M"]}),(0,e.jsx)("li",{className:"pricing__feature",children:"提供专人技术支持"})]}),(0,e.jsx)(r.ZP,{style:{marginTop:"auto"},shape:"round",type:"primary",target:"_blank",href:"https://pushy-admin.reactnative.cn/#/user",children:"立即升级"})]}),(0,e.jsxs)("div",{className:"pricing__item",children:[(0,e.jsx)(_.Z,{className:"icon"}),(0,e.jsx)("h3",{className:"pricing__title",children:"高级版"}),(0,e.jsx)("p",{className:"pricing__sentence",children:"适用于一般应用,中度更新需求"}),(0,e.jsxs)("div",{className:"pricing__price",children:[(0,e.jsxs)("span",{className:"pricing__anim pricing__anim--1",children:[(0,e.jsx)("span",{className:"pricing__currency",children:"¥"}),"2400"]}),(0,e.jsx)("span",{className:"pricing__anim pricing__anim--2",children:(0,e.jsx)("span",{className:"pricing__period",children:"/ 年"})})," ",(0,e.jsx)("hr",{}),(0,e.jsxs)("span",{className:"pricing__anim pricing__anim--1",children:[(0,e.jsx)("span",{className:"pricing__currency",children:"¥"}),"300"]}),(0,e.jsx)("span",{className:"pricing__anim pricing__anim--2",children:(0,e.jsx)("span",{className:"pricing__period",children:"/ 月"})})]}),(0,e.jsxs)("ul",{className:"pricing__feature-list",children:[(0,e.jsxs)("li",{className:"pricing__feature",children:["可创建10个",(0,e.jsx)(m,{}),",每个限*:"]}),(0,e.jsxs)("li",{className:"pricing__feature",children:["60个",(0,e.jsx)(d,{}),",每个最大500M"]}),(0,e.jsxs)("li",{className:"pricing__feature",children:["60个",(0,e.jsx)(h,{}),",每个最大50M"]}),(0,e.jsx)("li",{className:"pricing__feature",children:"提供专人技术支持"})]}),(0,e.jsx)(r.ZP,{style:{marginTop:"auto"},shape:"round",type:"primary",target:"_blank",href:"https://pushy-admin.reactnative.cn/#/user",children:"立即升级"})]}),(0,e.jsxs)("div",{className:"pricing__item",children:[(0,e.jsx)(t.Z,{className:"icon"}),(0,e.jsx)("h3",{className:"pricing__title",children:"专业版"}),(0,e.jsx)("p",{className:"pricing__sentence",children:"适用于商业应用,高速迭代需求"}),(0,e.jsxs)("div",{className:"pricing__price",children:[(0,e.jsxs)("span",{className:"pricing__anim pricing__anim--1",children:[(0,e.jsx)("span",{className:"pricing__currency",children:"¥"}),"7200"]}),(0,e.jsx)("span",{className:"pricing__anim pricing__anim--2",children:(0,e.jsx)("span",{className:"pricing__period",children:"/ 年"})})," ",(0,e.jsx)("hr",{}),(0,e.jsxs)("span",{className:"pricing__anim pricing__anim--1",children:[(0,e.jsx)("span",{className:"pricing__currency",children:"¥"}),"900"]}),(0,e.jsx)("span",{className:"pricing__anim pricing__anim--2",children:(0,e.jsx)("span",{className:"pricing__period",children:"/ 月"})})]}),(0,e.jsxs)("ul",{className:"pricing__feature-list",children:[(0,e.jsxs)("li",{className:"pricing__feature",children:["可创建20个",(0,e.jsx)(m,{}),",每个限*:"]}),(0,e.jsxs)("li",{className:"pricing__feature",children:["100个",(0,e.jsx)(d,{}),",每个最大2000M"]}),(0,e.jsxs)("li",{className:"pricing__feature",children:["100个",(0,e.jsx)(h,{}),",每个最大200M"]}),(0,e.jsx)("li",{className:"pricing__feature",children:"提供专人技术支持"})]}),(0,e.jsx)(r.ZP,{style:{marginTop:"auto"},shape:"round",type:"primary",target:"_blank",href:"https://pushy-admin.reactnative.cn/#/user",children:"立即升级"})]})]}),(0,e.jsxs)("div",{style:{color:"#8b909d",textAlign:"center",fontSize:"16px",marginTop:10},children:[(0,e.jsxs)("p",{className:"mb-4",children:["如您需要更高配额,我们也提供定制版本或是私有服务器部署,您可将具体需求发送至"," ",(0,e.jsx)("a",{href:"mailto:hi@charmlot.com",children:"hi@charmlot.com"})," ","我们将第一时间回复。"]}),(0,e.jsxs)("p",{className:"mb-4",children:["*注:iOS 和 Android 版本记做不同的应用。",(0,e.jsx)("br",{}),"原生包指完整的apk/ipa安装包。热更包指pushy bundle命令生成的ppk文件(不是用户实际下载的增量更新文件)。",(0,e.jsx)("br",{}),"您可删除已不再使用的应用、原生包、热更包来有效利用配额。"]}),(0,e.jsxs)("p",{children:["对于付费业务还有其他疑问?请参考",(0,e.jsx)("a",{className:"text-[#1890ff] font-bold",href:"docs/faq#%E4%BB%98%E8%B4%B9%E9%97%AE%E9%A2%98",children:"常见问题"})]})]})]})})},j=[];function g(i){return(0,e.jsx)(e.Fragment,{})}var N=(0,c.j)({MDXContent:function(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,e.jsx)(x,{...i,children:(0,e.jsx)(g,{...i})})},pageOpts:{filePath:"pages/pricing.mdx",route:"/pricing",frontMatter:{title:"价格"},title:"价格",headings:j},pageNextRoute:"/pricing"})}},function(i){i.O(0,[909,636,888,774,179],function(){return i(i.s=49567)}),_N_E=i.O()}]); \ No newline at end of file diff --git a/_next/static/rZ_bcXcrjCgx1hbGxzJee/_buildManifest.js b/_next/static/rZ_bcXcrjCgx1hbGxzJee/_buildManifest.js deleted file mode 100644 index 1a7353d..0000000 --- a/_next/static/rZ_bcXcrjCgx1hbGxzJee/_buildManifest.js +++ /dev/null @@ -1 +0,0 @@ -self.__BUILD_MANIFEST=function(s){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},"/":[s,"static/chunks/204-efd22c4551fb5267.js","static/chunks/pages/index-509bd1e50d9b254d.js"],"/_error":["static/chunks/pages/_error-597a4d22bfd9f834.js"],"/docs/api":[s,"static/chunks/pages/docs/api-6c5ac8f95252c12d.js"],"/docs/bestpractice":[s,"static/chunks/pages/docs/bestpractice-cbecc9344854c4e5.js"],"/docs/changelog":[s,"static/chunks/pages/docs/changelog-d86404f06d64ab0e.js"],"/docs/cli":[s,"static/chunks/pages/docs/cli-12e4c433877ddf6f.js"],"/docs/faq":[s,"static/chunks/pages/docs/faq-804b098ff10181dc.js"],"/docs/getting-started":[s,"static/chunks/pages/docs/getting-started-7572edc9b91f5ade.js"],"/docs/integration":[s,"static/chunks/pages/docs/integration-87e562744379a1d7.js"],"/docs/publish":["static/chunks/42a66924-0d7bd80c91c5e651.js",s,"static/chunks/807-49d8b251beaa03c4.js","static/chunks/pages/docs/publish-1604d2fd1bd512a9.js"],"/pricing":[s,"static/chunks/795-b544068780b87a9b.js","static/chunks/pages/pricing-877557ee472599ef.js"],sortedPages:["/","/_app","/_error","/docs/api","/docs/bestpractice","/docs/changelog","/docs/cli","/docs/faq","/docs/getting-started","/docs/integration","/docs/publish","/pricing"]}}("static/chunks/567-f79a5439ce425142.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/_next/static/v_eGmPfPvkbbrVRIoMa_T/_buildManifest.js b/_next/static/v_eGmPfPvkbbrVRIoMa_T/_buildManifest.js new file mode 100644 index 0000000..6f76c9d --- /dev/null +++ b/_next/static/v_eGmPfPvkbbrVRIoMa_T/_buildManifest.js @@ -0,0 +1 @@ +self.__BUILD_MANIFEST=function(s){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},"/":[s,"static/chunks/871-25028a527fe0ca11.js","static/chunks/pages/index-b3a0f7934da798ac.js"],"/_error":["static/chunks/pages/_error-27c88aced5dc7b47.js"],"/docs/api":[s,"static/chunks/pages/docs/api-0e1b78a9f4a50510.js"],"/docs/bestpractice":[s,"static/chunks/pages/docs/bestpractice-37cb82ea8216a9bf.js"],"/docs/changelog":[s,"static/chunks/pages/docs/changelog-9b9767cc5dc714b8.js"],"/docs/cli":[s,"static/chunks/pages/docs/cli-e272539f86b63c94.js"],"/docs/faq":[s,"static/chunks/pages/docs/faq-c5b8282930d7e95c.js"],"/docs/getting-started":[s,"static/chunks/pages/docs/getting-started-a6d63edf07f358f0.js"],"/docs/integration":[s,"static/chunks/pages/docs/integration-39498b5ef5c1f4e1.js"],"/docs/publish":["static/chunks/42a66924-0d7bd80c91c5e651.js",s,"static/chunks/807-49d8b251beaa03c4.js","static/chunks/pages/docs/publish-a0916ab42930add8.js"],"/pricing":[s,"static/chunks/636-7799e2ac6281b3b8.js","static/chunks/pages/pricing-cfbe34dd67dd0871.js"],sortedPages:["/","/_app","/_error","/docs/api","/docs/bestpractice","/docs/changelog","/docs/cli","/docs/faq","/docs/getting-started","/docs/integration","/docs/publish","/pricing"]}}("static/chunks/909-c26be64942002469.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/_next/static/rZ_bcXcrjCgx1hbGxzJee/_ssgManifest.js b/_next/static/v_eGmPfPvkbbrVRIoMa_T/_ssgManifest.js similarity index 100% rename from _next/static/rZ_bcXcrjCgx1hbGxzJee/_ssgManifest.js rename to _next/static/v_eGmPfPvkbbrVRIoMa_T/_ssgManifest.js diff --git a/docs/api.html b/docs/api.html index c6da06d..0d8ace8 100644 --- a/docs/api.html +++ b/docs/api.html @@ -11,7 +11,7 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
文档
API参考

JavaScript 方法

+
文档
API参考

JavaScript 方法

new Pushy(options: PushyOptions)

创建 Pushy 热更新服务实例,其构造参数如下:

interface PushyOptions {
@@ -251,4 +251,4 @@ 

// ...各种setter,但注意不要调用setBundleAssetName .setJSBundleFile(UpdateContext.getBundleUrl(mContext, "assets://index.android.bundle")) .build(); -UpdateContext.setCustomInstanceManager(mReactInstanceManager);

\ No newline at end of file +UpdateContext.setCustomInstanceManager(mReactInstanceManager);
\ No newline at end of file diff --git a/docs/bestpractice.html b/docs/bestpractice.html index 53b5a60..af3d694 100644 --- a/docs/bestpractice.html +++ b/docs/bestpractice.html @@ -11,7 +11,7 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
文档
场景实践

优化原生和热更包体积

+
文档
场景实践

优化原生和热更包体积

iOS 原生包优化(ipa)

对于同一份 archive(其版本号、编译时间和内置 bundle 已固定,不会受导出方式所影响),可以用不同选项多次导出 ipa,选择其中最小的上传到 pushy 服务器作为热更基准包。

bitcode

@@ -93,4 +93,4 @@

// 否则还是走之前的询问流程 // Alert.alert('提示', '检查到新的版本....... }

-

又比如,可能某个版本包含一些重要的公告内容,所以还可以在上面插入一个公告字段等等。如何使用元信息,完全取决于您的想象力!

\ No newline at end of file +

又比如,可能某个版本包含一些重要的公告内容,所以还可以在上面插入一个公告字段等等。如何使用元信息,完全取决于您的想象力!

\ No newline at end of file diff --git a/docs/changelog.html b/docs/changelog.html index 4df9a03..11382db 100644 --- a/docs/changelog.html +++ b/docs/changelog.html @@ -11,7 +11,7 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
文档
更新日志

10.5.4(2024-04-23)

+
\ No newline at end of file +
\ No newline at end of file diff --git a/docs/cli.html b/docs/cli.html index 7b4e118..37c033b 100644 --- a/docs/cli.html +++ b/docs/cli.html @@ -11,7 +11,7 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
文档
命令行工具

安装

+
\ No newline at end of file +
\ No newline at end of file diff --git a/docs/faq.html b/docs/faq.html index 8310d7d..ec93367 100644 --- a/docs/faq.html +++ b/docs/faq.html @@ -11,7 +11,7 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
文档
常见问题

如果本页面没能回答您的疑问,您可以去issues 区 (opens in a new tab)或 QQ 群 729013783 提问,或给我们发邮件

+
文档
常见问题

如果本页面没能回答您的疑问,您可以去issues 区 (opens in a new tab)或 QQ 群 729013783 提问,或给我们发邮件

业务问题

热更新究竟能否上架?

您可能听说过各种说法,但大量实践表明,热更新目前能够顺利上架 AppStore 和其他各种应用市场。唯一需要注意的是,在审核期间请不要发布热更新,不要让审核人员看到各种更新相关的提示和弹窗,即可顺利通过。

@@ -108,4 +108,4 @@

可以按月付款吗?

需要月付的客户请联系 QQ 客服 34731408,月付价格为年付价格 / 8。如标准版当前价格为 800 元每年,则月付价格为 100 元每月。 月付客户需累计支付满 500 元后才能开具发票。

-
\ No newline at end of file +
\ No newline at end of file diff --git a/docs/getting-started.html b/docs/getting-started.html index 1ea2744..2e657a4 100644 --- a/docs/getting-started.html +++ b/docs/getting-started.html @@ -11,7 +11,7 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
文档
安装配置

请注意,当前版本的api经过了完全重构,与之前的版本(v10.0以下)不兼容。如果你需要查看之前版本的文档,请点击这里 (opens in a new tab)

+
文档
安装配置

请注意,当前版本的api经过了完全重构,与之前的版本(v10.0以下)不兼容。如果你需要查看之前版本的文档,请点击这里 (opens in a new tab)

首先你应该有一个基于 React Native 开发的应用,我们把具有 package.json 的目录叫做你的应用根目录。 如果你还没有初始化应用,请参阅开始使用 React Native (opens in a new tab)

我们假设你已经拥有了开发 React Native 应用的一切环境,包括Node.jsXcodeAndroid SDK等等。

@@ -135,4 +135,4 @@ "appId": 2, "appKey": "<一串随机字符串>" } -}

你可以安全的把update.json上传到 Git 等 CVS 系统上,与你的团队共享这个文件,它不包含任何敏感信息。当然,他们在使用任何功能之前,都必须首先输入pushy login进行登录。

至此应用的创建/选择就已经成功了。下一步,你需要给代码添加相应的功能,请参阅代码集成

\ No newline at end of file +}

你可以安全的把update.json上传到 Git 等 CVS 系统上,与你的团队共享这个文件,它不包含任何敏感信息。当然,他们在使用任何功能之前,都必须首先输入pushy login进行登录。

至此应用的创建/选择就已经成功了。下一步,你需要给代码添加相应的功能,请参阅代码集成

\ No newline at end of file diff --git a/docs/integration.html b/docs/integration.html index 581f06d..0bedac1 100644 --- a/docs/integration.html +++ b/docs/integration.html @@ -11,7 +11,7 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
文档
代码集成

请注意,当前版本的api经过了完全重构,与之前的版本(v10.0以下)不兼容。如果你需要查看之前版本的文档,请点击这里 (opens in a new tab)

+
文档
代码集成

请注意,当前版本的api经过了完全重构,与之前的版本(v10.0以下)不兼容。如果你需要查看之前版本的文档,请点击这里 (opens in a new tab)

安装配置完成后,确定应用编译顺利通过,下面我们来进行代码集成。

获取 appKey

检查更新时必须提供你的appKey,这个值保存在update.json中(使用pushy createApppushy selectApp命令后会自动生成),并且根据平台不同而不同。你可以用如下的代码获取appKey

@@ -143,4 +143,4 @@

}, });

以上提及的所有 api 的说明文档可在这里查看。

-

现在,你的应用已经可以通过 pushy 服务检查版本并进行更新了。下一步,你可以开始尝试发布应用包和版本,请参阅发布热更新

\ No newline at end of file +

现在,你的应用已经可以通过 pushy 服务检查版本并进行更新了。下一步,你可以开始尝试发布应用包和版本,请参阅发布热更新

\ No newline at end of file diff --git a/docs/publish.html b/docs/publish.html index a3c90ff..caf691b 100644 --- a/docs/publish.html +++ b/docs/publish.html @@ -11,7 +11,7 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -
文档
发布流程

现在你的应用已经具备了检测更新的功能,下面我们来尝试发布并更新它。流程可参考下图:

+
文档
发布流程

现在你的应用已经具备了检测更新的功能,下面我们来尝试发布并更新它。流程可参考下图:

流程总结如下:

    @@ -81,4 +81,4 @@

    我们强烈建议您先发布一个测试包,再发布一个除了版本号以外均完全相同的正式包

    例如,假设我们有一个正式包,版本为1.6.0,那么可以修改版本号重新打包一个1001.6.0,以一个明显不太正常的版本号来标识它是一个测试版本,同时后几位相同,可以表明它和某个正式版本存在关联(内容/依赖一致)。

    在每次往发布包发起热更新之前,先对测试包1001.6.0进行更新操作,基本测试通过之后,再在网页后台上将热更包重新绑定到正式包1.6.0上。如果在测试包中发现了重大问题,你就可以先进行修复,更新测试确认通过后再部署到正式线上环境。这样,可以最大程度的避免发生线上事故。

    -

    万一确实发生线上事故需要回滚的话,首先利用版本控制系统回滚代码到正常的状态,然后重新生成热更包并推送即可。

\ No newline at end of file +

万一确实发生线上事故需要回滚的话,首先利用版本控制系统回滚代码到正常的状态,然后重新生成热更包并推送即可。

\ No newline at end of file diff --git a/index.html b/index.html index 40dd238..744cefe 100644 --- a/index.html +++ b/index.html @@ -11,4 +11,4 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -

他们选择了 Pushy

网易游戏
蓝月亮
华中师范大学
娇兰佳人
平安不动产
友车科技
诺安基金
锐捷网络
航天信息
天津公交
Feature

为什么选择 Pushy

  • img

    增量更新

    基于 bsdiff/hdiff 算法创建

    kb 级别超小更新包

  • img

    快捷发布

    命令行工具 & 网页双端管理

    支持CI部署

  • img

    极速下载

    基于阿里云高速CDN分发

    全国范围秒速更新

  • img

    稳定可靠

    自带崩溃回滚机制

    安全可靠

  • img

    灵活扩展

    开放定制元信息

    提供灵活自由的更新策略

  • img

    技术支持

    遇到技术问题?

    工作时间段内小时级别响应

    Icons made by Swifticons from www.flaticon.com

    Let’s Pushy

    # 安装
    $ npm i -g react-native-update-cli
    $ npm i react-native-update && cd ios && pod install

    # 上传原生基础包
    $ pushy uploadIpa yourApp.ipa
    $ pushy uploadApk yourApp.apk

    # 生成并上传热更包
    $ pushy bundle --platform android
    $ pushy bundle --platform ios
    查看文档
    \ No newline at end of file +

    他们选择了 Pushy

    网易游戏
    蓝月亮
    华中师范大学
    娇兰佳人
    平安不动产
    友车科技
    诺安基金
    锐捷网络
    航天信息
    天津公交
    Feature

    为什么选择 Pushy

    • img

      增量更新

      基于 bsdiff/hdiff 算法创建

      kb 级别超小更新包

    • img

      快捷发布

      命令行工具 & 网页双端管理

      支持CI部署

    • img

      极速下载

      基于阿里云高速CDN分发

      全国范围秒速更新

    • img

      稳定可靠

      自带崩溃回滚机制

      安全可靠

    • img

      灵活扩展

      开放定制元信息

      提供灵活自由的更新策略

    • img

      技术支持

      遇到技术问题?

      工作时间段内小时级别响应

      Icons made by Swifticons from www.flaticon.com

      Let’s Pushy

      # 安装
      $ npm i -g react-native-update-cli
      $ npm i react-native-update && cd ios && pod install

      # 上传原生基础包
      $ pushy uploadIpa yourApp.ipa
      $ pushy uploadApk yourApp.apk

      # 生成并上传热更包
      $ pushy bundle --platform android
      $ pushy bundle --platform ios
      查看文档
      \ No newline at end of file diff --git a/pricing.html b/pricing.html index ab3eb9e..631ca0c 100644 --- a/pricing.html +++ b/pricing.html @@ -11,4 +11,4 @@ --nextra-primary-hue: 204deg; --nextra-primary-saturation: 100%; } -

      新注册用户将自动获得7 天专业版免费试用评估。到期后转为免费版。如需按月购买,请联系QQ客服 34731408.

      免费版

      适用于小型应用,轻度更新需求

      0 / 年
      开始使用

      标准版

      适用于一般应用,中度更新需求

      800/ 年
      100/ 月
      • 可创建5个应用 ,每个限*:
      • 50个原生包,每个最大150M
      • 50个热更包,每个最大15M
      • 提供专人技术支持
      立即升级

      高级版

      适用于一般应用,中度更新需求

      2400/ 年
      300/ 月
      • 可创建10个应用,每个限*:
      • 60个原生包,每个最大500M
      • 60个热更包,每个最大50M
      • 提供专人技术支持
      立即升级

      专业版

      适用于商业应用,高速迭代需求

      7200/ 年
      900/ 月
      • 可创建20个应用,每个限*:
      • 100个原生包,每个最大2000M
      • 100个热更包,每个最大200M
      • 提供专人技术支持
      立即升级

      如您需要更高配额,我们也提供定制版本或是私有服务器部署,您可将具体需求发送至 hi@charmlot.com 我们将第一时间回复。

      *注:iOS 和 Android 版本记做不同的应用。
      原生包指完整的apk/ipa安装包。热更包指pushy bundle命令生成的ppk文件(不是用户实际下载的增量更新文件)。
      您可删除已不再使用的应用、原生包、热更包来有效利用配额。

      对于付费业务还有其他疑问?请参考常见问题

      \ No newline at end of file +

      新注册用户将自动获得7 天专业版免费试用评估。到期后转为免费版。如需按月购买,请联系QQ客服 34731408.

      免费版

      适用于小型应用,轻度更新需求

      0 / 年
      开始使用

      标准版

      适用于一般应用,中度更新需求

      800/ 年
      100/ 月
      • 可创建5个应用 ,每个限*:
      • 50个原生包,每个最大150M
      • 50个热更包,每个最大15M
      • 提供专人技术支持
      立即升级

      高级版

      适用于一般应用,中度更新需求

      2400/ 年
      300/ 月
      • 可创建10个应用,每个限*:
      • 60个原生包,每个最大500M
      • 60个热更包,每个最大50M
      • 提供专人技术支持
      立即升级

      专业版

      适用于商业应用,高速迭代需求

      7200/ 年
      900/ 月
      • 可创建20个应用,每个限*:
      • 100个原生包,每个最大2000M
      • 100个热更包,每个最大200M
      • 提供专人技术支持
      立即升级

      如您需要更高配额,我们也提供定制版本或是私有服务器部署,您可将具体需求发送至 hi@charmlot.com 我们将第一时间回复。

      *注:iOS 和 Android 版本记做不同的应用。
      原生包指完整的apk/ipa安装包。热更包指pushy bundle命令生成的ppk文件(不是用户实际下载的增量更新文件)。
      您可删除已不再使用的应用、原生包、热更包来有效利用配额。

      对于付费业务还有其他疑问?请参考常见问题

      \ No newline at end of file