@tryghost/sodo-search 1.5.1 → 1.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +1 -1
- package/package.json +1 -1
- package/umd/sodo-search.min.js +16 -16
- package/umd/sodo-search.min.js.map +1 -1
package/umd/sodo-search.min.js
CHANGED
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
var
|
|
2
|
-
`,document.head.appendChild(
|
|
1
|
+
var ly=Object.defineProperty;var ay=(Y,Q,me)=>Q in Y?ly(Y,Q,{enumerable:!0,configurable:!0,writable:!0,value:me}):Y[Q]=me;var So=(Y,Q,me)=>(ay(Y,typeof Q!="symbol"?Q+"":Q,me),me),uy=(Y,Q,me)=>{if(!Q.has(Y))throw TypeError("Cannot "+me)};var Ln=(Y,Q,me)=>{if(Q.has(Y))throw TypeError("Cannot add the same private member more than once");Q instanceof WeakSet?Q.add(Y):Q.set(Y,me)};var Je=(Y,Q,me)=>(uy(Y,Q,"access private method"),me);(function(Y){typeof define=="function"&&define.amd?define(Y):Y()})(function(){var yo,zd,vo,Md,wo,Ud,Nn,xo,An,Co;"use strict";var Y=document.createElement("style");Y.textContent=`.App{text-align:center}.App-logo{height:40vmin;pointer-events:none}@media (prefers-reduced-motion: no-preference){.App-logo{animation:App-logo-spin infinite 20s linear}}.App-header{background-color:#282c34;min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:calc(10px + 2vmin);color:#fff}.App-link{color:#61dafb}@keyframes App-logo-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}
|
|
2
|
+
`,document.head.appendChild(Y);function Q(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var me={exports:{}},Rn={};/*
|
|
3
3
|
object-assign
|
|
4
4
|
(c) Sindre Sorhus
|
|
5
5
|
@license MIT
|
|
6
|
-
*/var ea=Object.getOwnPropertySymbols,
|
|
6
|
+
*/var ea=Object.getOwnPropertySymbols,Bd=Object.prototype.hasOwnProperty,Vd=Object.prototype.propertyIsEnumerable;function Hd(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function Wd(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(o){return t[o]});if(r.join("")!=="0123456789")return!1;var s={};return"abcdefghijklmnopqrst".split("").forEach(function(o){s[o]=o}),Object.keys(Object.assign({},s)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var ta=Wd()?Object.assign:function(e,t){for(var n,r=Hd(e),s,o=1;o<arguments.length;o++){n=Object(arguments[o]);for(var i in n)Bd.call(n,i)&&(r[i]=n[i]);if(ea){s=ea(n);for(var l=0;l<s.length;l++)Vd.call(n,s[l])&&(r[s[l]]=n[s[l]])}}return r},na={exports:{}},I={};/** @license React v17.0.2
|
|
7
7
|
* react.production.min.js
|
|
8
8
|
*
|
|
9
9
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
10
10
|
*
|
|
11
11
|
* This source code is licensed under the MIT license found in the
|
|
12
12
|
* LICENSE file in the root directory of this source tree.
|
|
13
|
-
*/var
|
|
13
|
+
*/var $o=ta,bt=60103,ra=60106;I.Fragment=60107,I.StrictMode=60108,I.Profiler=60114;var sa=60109,oa=60110,ia=60112;I.Suspense=60113;var la=60115,aa=60116;if(typeof Symbol=="function"&&Symbol.for){var Re=Symbol.for;bt=Re("react.element"),ra=Re("react.portal"),I.Fragment=Re("react.fragment"),I.StrictMode=Re("react.strict_mode"),I.Profiler=Re("react.profiler"),sa=Re("react.provider"),oa=Re("react.context"),ia=Re("react.forward_ref"),I.Suspense=Re("react.suspense"),la=Re("react.memo"),aa=Re("react.lazy")}var ua=typeof Symbol=="function"&&Symbol.iterator;function Kd(e){return e===null||typeof e!="object"?null:(e=ua&&e[ua]||e["@@iterator"],typeof e=="function"?e:null)}function _n(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var ca={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},fa={};function qt(e,t,n){this.props=e,this.context=t,this.refs=fa,this.updater=n||ca}qt.prototype.isReactComponent={},qt.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error(_n(85));this.updater.enqueueSetState(this,e,t,"setState")},qt.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function da(){}da.prototype=qt.prototype;function Eo(e,t,n){this.props=e,this.context=t,this.refs=fa,this.updater=n||ca}var ko=Eo.prototype=new da;ko.constructor=Eo,$o(ko,qt.prototype),ko.isPureReactComponent=!0;var Po={current:null},ha=Object.prototype.hasOwnProperty,pa={key:!0,ref:!0,__self:!0,__source:!0};function ga(e,t,n){var r,s={},o=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(o=""+t.key),t)ha.call(t,r)&&!pa.hasOwnProperty(r)&&(s[r]=t[r]);var l=arguments.length-2;if(l===1)s.children=n;else if(1<l){for(var a=Array(l),u=0;u<l;u++)a[u]=arguments[u+2];s.children=a}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)s[r]===void 0&&(s[r]=l[r]);return{$$typeof:bt,type:e,key:o,ref:i,props:s,_owner:Po.current}}function bd(e,t){return{$$typeof:bt,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function To(e){return typeof e=="object"&&e!==null&&e.$$typeof===bt}function qd(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var ma=/\/+/g;function No(e,t){return typeof e=="object"&&e!==null&&e.key!=null?qd(""+e.key):t.toString(36)}function Br(e,t,n,r,s){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(o){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case bt:case ra:i=!0}}if(i)return i=e,s=s(i),e=r===""?"."+No(i,0):r,Array.isArray(s)?(n="",e!=null&&(n=e.replace(ma,"$&/")+"/"),Br(s,t,n,"",function(u){return u})):s!=null&&(To(s)&&(s=bd(s,n+(!s.key||i&&i.key===s.key?"":(""+s.key).replace(ma,"$&/")+"/")+e)),t.push(s)),1;if(i=0,r=r===""?".":r+":",Array.isArray(e))for(var l=0;l<e.length;l++){o=e[l];var a=r+No(o,l);i+=Br(o,t,n,a,s)}else if(a=Kd(e),typeof a=="function")for(e=a.call(e),l=0;!(o=e.next()).done;)o=o.value,a=r+No(o,l++),i+=Br(o,t,n,a,s);else if(o==="object")throw t=""+e,Error(_n(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t));return i}function Vr(e,t,n){if(e==null)return e;var r=[],s=0;return Br(e,r,"","",function(o){return t.call(n,o,s++)}),r}function Jd(e){if(e._status===-1){var t=e._result;t=t(),e._status=0,e._result=t,t.then(function(n){e._status===0&&(n=n.default,e._status=1,e._result=n)},function(n){e._status===0&&(e._status=2,e._result=n)})}if(e._status===1)return e._result;throw e._result}var ya={current:null};function Qe(){var e=ya.current;if(e===null)throw Error(_n(321));return e}var Qd={ReactCurrentDispatcher:ya,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:Po,IsSomeRendererActing:{current:!1},assign:$o};I.Children={map:Vr,forEach:function(e,t,n){Vr(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Vr(e,function(){t++}),t},toArray:function(e){return Vr(e,function(t){return t})||[]},only:function(e){if(!To(e))throw Error(_n(143));return e}},I.Component=qt,I.PureComponent=Eo,I.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Qd,I.cloneElement=function(e,t,n){if(e==null)throw Error(_n(267,e));var r=$o({},e.props),s=e.key,o=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,i=Po.current),t.key!==void 0&&(s=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(a in t)ha.call(t,a)&&!pa.hasOwnProperty(a)&&(r[a]=t[a]===void 0&&l!==void 0?l[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){l=Array(a);for(var u=0;u<a;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:bt,type:e.type,key:s,ref:o,props:r,_owner:i}},I.createContext=function(e,t){return t===void 0&&(t=null),e={$$typeof:oa,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider={$$typeof:sa,_context:e},e.Consumer=e},I.createElement=ga,I.createFactory=function(e){var t=ga.bind(null,e);return t.type=e,t},I.createRef=function(){return{current:null}},I.forwardRef=function(e){return{$$typeof:ia,render:e}},I.isValidElement=To,I.lazy=function(e){return{$$typeof:aa,_payload:{_status:-1,_result:e},_init:Jd}},I.memo=function(e,t){return{$$typeof:la,type:e,compare:t===void 0?null:t}},I.useCallback=function(e,t){return Qe().useCallback(e,t)},I.useContext=function(e,t){return Qe().useContext(e,t)},I.useDebugValue=function(){},I.useEffect=function(e,t){return Qe().useEffect(e,t)},I.useImperativeHandle=function(e,t,n){return Qe().useImperativeHandle(e,t,n)},I.useLayoutEffect=function(e,t){return Qe().useLayoutEffect(e,t)},I.useMemo=function(e,t){return Qe().useMemo(e,t)},I.useReducer=function(e,t,n){return Qe().useReducer(e,t,n)},I.useRef=function(e){return Qe().useRef(e)},I.useState=function(e){return Qe().useState(e)},I.version="17.0.2",na.exports=I;var _=na.exports;const st=Q(_);/** @license React v17.0.2
|
|
14
14
|
* react-jsx-runtime.production.min.js
|
|
15
15
|
*
|
|
16
16
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
17
17
|
*
|
|
18
18
|
* This source code is licensed under the MIT license found in the
|
|
19
19
|
* LICENSE file in the root directory of this source tree.
|
|
20
|
-
*/var
|
|
20
|
+
*/var Gd=_,va=60103;if(Rn.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var wa=Symbol.for;va=wa("react.element"),Rn.Fragment=wa("react.fragment")}var Xd=Gd.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Yd=Object.prototype.hasOwnProperty,Zd={key:!0,ref:!0,__self:!0,__source:!0};function Sa(e,t,n){var r,s={},o=null,i=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)Yd.call(t,r)&&!Zd.hasOwnProperty(r)&&(s[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)s[r]===void 0&&(s[r]=t[r]);return{$$typeof:va,type:e,key:o,ref:i,props:s,_owner:Xd.current}}Rn.jsx=Sa,Rn.jsxs=Sa,me.exports=Rn;var E=me.exports,xa={exports:{}},ke={},Ca={exports:{}},$a={};/** @license React v0.20.2
|
|
21
21
|
* scheduler.production.min.js
|
|
22
22
|
*
|
|
23
23
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
24
24
|
*
|
|
25
25
|
* This source code is licensed under the MIT license found in the
|
|
26
26
|
* LICENSE file in the root directory of this source tree.
|
|
27
|
-
*/(function(e){var t,n,r,s;if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,l=i.now();e.unstable_now=function(){return i.now()-l}}if(typeof window>"u"||typeof MessageChannel!="function"){var a=null,u=null,f=function(){if(a!==null)try{var k=e.unstable_now();a(!0,k),a=null}catch(L){throw setTimeout(f,0),L}};t=function(k){a!==null?setTimeout(t,0,k):(a=k,setTimeout(f,0))},n=function(k,L){u=setTimeout(k,L)},r=function(){clearTimeout(u)},e.unstable_shouldYield=function(){return!1},s=e.unstable_forceFrameRate=function(){}}else{var p=window.setTimeout,c=window.clearTimeout;if(typeof console<"u"){var v=window.cancelAnimationFrame;typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof v!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var m=!1,y=null,h=-1,d=5,g=0;e.unstable_shouldYield=function(){return e.unstable_now()>=g},s=function(){},e.unstable_forceFrameRate=function(k){0>k||125<k?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):d=0<k?Math.floor(1e3/k):5};var w=new MessageChannel,S=w.port2;w.port1.onmessage=function(){if(y!==null){var k=e.unstable_now();g=k+d;try{y(!0,k)?S.postMessage(null):(m=!1,y=null)}catch(L){throw S.postMessage(null),L}}else m=!1},t=function(k){y=k,m||(m=!0,S.postMessage(null))},n=function(k,L){h=p(function(){k(e.unstable_now())},L)},r=function(){c(h),h=-1}}function T(k,L){var F=k.length;k.push(L);e:for(;;){var J=F-1>>>1,le=k[J];if(le!==void 0&&0<j(le,L))k[J]=L,k[F]=le,F=J;else break e}}function C(k){return k=k[0],k===void 0?null:k}function P(k){var L=k[0];if(L!==void 0){var F=k.pop();if(F!==L){k[0]=F;e:for(var J=0,le=k.length;J<le;){var Wt=2*(J+1)-1,Kt=k[Wt],Ur=Wt+1,On=k[Ur];if(Kt!==void 0&&0>j(Kt,F))On!==void 0&&0>j(On,Kt)?(k[J]=On,k[Ur]=F,J=Ur):(k[J]=Kt,k[Wt]=F,J=Wt);else if(On!==void 0&&0>j(On,F))k[J]=On,k[Ur]=F,J=Ur;else break e}}return L}return null}function j(k,L){var F=k.sortIndex-L.sortIndex;return F!==0?F:k.id-L.id}var A=[],
|
|
27
|
+
*/(function(e){var t,n,r,s;if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,l=i.now();e.unstable_now=function(){return i.now()-l}}if(typeof window>"u"||typeof MessageChannel!="function"){var a=null,u=null,f=function(){if(a!==null)try{var k=e.unstable_now();a(!0,k),a=null}catch(L){throw setTimeout(f,0),L}};t=function(k){a!==null?setTimeout(t,0,k):(a=k,setTimeout(f,0))},n=function(k,L){u=setTimeout(k,L)},r=function(){clearTimeout(u)},e.unstable_shouldYield=function(){return!1},s=e.unstable_forceFrameRate=function(){}}else{var p=window.setTimeout,c=window.clearTimeout;if(typeof console<"u"){var v=window.cancelAnimationFrame;typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof v!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var m=!1,y=null,h=-1,d=5,g=0;e.unstable_shouldYield=function(){return e.unstable_now()>=g},s=function(){},e.unstable_forceFrameRate=function(k){0>k||125<k?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):d=0<k?Math.floor(1e3/k):5};var w=new MessageChannel,S=w.port2;w.port1.onmessage=function(){if(y!==null){var k=e.unstable_now();g=k+d;try{y(!0,k)?S.postMessage(null):(m=!1,y=null)}catch(L){throw S.postMessage(null),L}}else m=!1},t=function(k){y=k,m||(m=!0,S.postMessage(null))},n=function(k,L){h=p(function(){k(e.unstable_now())},L)},r=function(){c(h),h=-1}}function T(k,L){var F=k.length;k.push(L);e:for(;;){var J=F-1>>>1,le=k[J];if(le!==void 0&&0<j(le,L))k[J]=L,k[F]=le,F=J;else break e}}function C(k){return k=k[0],k===void 0?null:k}function P(k){var L=k[0];if(L!==void 0){var F=k.pop();if(F!==L){k[0]=F;e:for(var J=0,le=k.length;J<le;){var Wt=2*(J+1)-1,Kt=k[Wt],Ur=Wt+1,On=k[Ur];if(Kt!==void 0&&0>j(Kt,F))On!==void 0&&0>j(On,Kt)?(k[J]=On,k[Ur]=F,J=Ur):(k[J]=Kt,k[Wt]=F,J=Wt);else if(On!==void 0&&0>j(On,F))k[J]=On,k[Ur]=F,J=Ur;else break e}}return L}return null}function j(k,L){var F=k.sortIndex-L.sortIndex;return F!==0?F:k.id-L.id}var A=[],X=[],rt=1,$e=null,ne=3,be=!1,Ee=!1,qe=!1;function jn(k){for(var L=C(X);L!==null;){if(L.callback===null)P(X);else if(L.startTime<=k)P(X),L.sortIndex=L.expirationTime,T(A,L);else break;L=C(X)}}function ie(k){if(qe=!1,jn(k),!Ee)if(C(A)!==null)Ee=!0,t(De);else{var L=C(X);L!==null&&n(ie,L.startTime-k)}}function De(k,L){Ee=!1,qe&&(qe=!1,r()),be=!0;var F=ne;try{for(jn(L),$e=C(A);$e!==null&&(!($e.expirationTime>L)||k&&!e.unstable_shouldYield());){var J=$e.callback;if(typeof J=="function"){$e.callback=null,ne=$e.priorityLevel;var le=J($e.expirationTime<=L);L=e.unstable_now(),typeof le=="function"?$e.callback=le:$e===C(A)&&P(A),jn(L)}else P(A);$e=C(A)}if($e!==null)var Wt=!0;else{var Kt=C(X);Kt!==null&&n(ie,Kt.startTime-L),Wt=!1}return Wt}finally{$e=null,ne=F,be=!1}}var Ht=s;e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(k){k.callback=null},e.unstable_continueExecution=function(){Ee||be||(Ee=!0,t(De))},e.unstable_getCurrentPriorityLevel=function(){return ne},e.unstable_getFirstCallbackNode=function(){return C(A)},e.unstable_next=function(k){switch(ne){case 1:case 2:case 3:var L=3;break;default:L=ne}var F=ne;ne=L;try{return k()}finally{ne=F}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=Ht,e.unstable_runWithPriority=function(k,L){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var F=ne;ne=k;try{return L()}finally{ne=F}},e.unstable_scheduleCallback=function(k,L,F){var J=e.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?J+F:J):F=J,k){case 1:var le=-1;break;case 2:le=250;break;case 5:le=1073741823;break;case 4:le=1e4;break;default:le=5e3}return le=F+le,k={id:rt++,callback:L,priorityLevel:k,startTime:F,expirationTime:le,sortIndex:-1},F>J?(k.sortIndex=F,T(X,k),C(A)===null&&k===C(X)&&(qe?r():qe=!0,n(ie,F-J))):(k.sortIndex=le,T(A,k),Ee||be||(Ee=!0,t(De))),k},e.unstable_wrapCallback=function(k){var L=ne;return function(){var F=ne;ne=L;try{return k.apply(this,arguments)}finally{ne=F}}}})($a),Ca.exports=$a;var eh=Ca.exports;/** @license React v17.0.2
|
|
28
28
|
* react-dom.production.min.js
|
|
29
29
|
*
|
|
30
30
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
31
31
|
*
|
|
32
32
|
* This source code is licensed under the MIT license found in the
|
|
33
33
|
* LICENSE file in the root directory of this source tree.
|
|
34
|
-
*/var Hr=_,B=ta,ee=
|
|
35
|
-
`+
|
|
34
|
+
*/var Hr=_,B=ta,ee=eh;function $(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!Hr)throw Error($(227));var Ea=new Set,Fn={};function Tt(e,t){Jt(e,t),Jt(e+"Capture",t)}function Jt(e,t){for(Fn[e]=t,e=0;e<t.length;e++)Ea.add(t[e])}var Ge=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),th=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,ka=Object.prototype.hasOwnProperty,Pa={},Ta={};function nh(e){return ka.call(Ta,e)?!0:ka.call(Pa,e)?!1:th.test(e)?Ta[e]=!0:(Pa[e]=!0,!1)}function rh(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function sh(e,t,n,r){if(t===null||typeof t>"u"||rh(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function pe(e,t,n,r,s,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var re={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){re[e]=new pe(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];re[t]=new pe(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){re[e]=new pe(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){re[e]=new pe(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){re[e]=new pe(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){re[e]=new pe(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){re[e]=new pe(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){re[e]=new pe(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){re[e]=new pe(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ao=/[\-:]([a-z])/g;function jo(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Ao,jo);re[t]=new pe(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Ao,jo);re[t]=new pe(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Ao,jo);re[t]=new pe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){re[e]=new pe(e,1,!1,e.toLowerCase(),null,!1,!1)}),re.xlinkHref=new pe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){re[e]=new pe(e,1,!1,e.toLowerCase(),null,!0,!0)});function Oo(e,t,n,r){var s=re.hasOwnProperty(t)?re[t]:null,o=s!==null?s.type===0:r?!1:!(!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N");o||(sh(t,n,s,r)&&(n=null),r||s===null?nh(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):s.mustUseProperty?e[s.propertyName]=n===null?s.type===3?!1:"":n:(t=s.attributeName,r=s.attributeNamespace,n===null?e.removeAttribute(t):(s=s.type,n=s===3||s===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Nt=Hr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Dn=60103,At=60106,ot=60107,Lo=60108,In=60114,Ro=60109,_o=60110,Wr=60112,zn=60113,Kr=60120,br=60115,Fo=60116,Do=60121,Io=60128,Na=60129,zo=60130,Mo=60131;if(typeof Symbol=="function"&&Symbol.for){var te=Symbol.for;Dn=te("react.element"),At=te("react.portal"),ot=te("react.fragment"),Lo=te("react.strict_mode"),In=te("react.profiler"),Ro=te("react.provider"),_o=te("react.context"),Wr=te("react.forward_ref"),zn=te("react.suspense"),Kr=te("react.suspense_list"),br=te("react.memo"),Fo=te("react.lazy"),Do=te("react.block"),te("react.scope"),Io=te("react.opaque.id"),Na=te("react.debug_trace_mode"),zo=te("react.offscreen"),Mo=te("react.legacy_hidden")}var Aa=typeof Symbol=="function"&&Symbol.iterator;function Mn(e){return e===null||typeof e!="object"?null:(e=Aa&&e[Aa]||e["@@iterator"],typeof e=="function"?e:null)}var Uo;function Un(e){if(Uo===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Uo=t&&t[1]||""}return`
|
|
35
|
+
`+Uo+e}var Bo=!1;function qr(e,t){if(!e||Bo)return"";Bo=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(a){var r=a}Reflect.construct(e,[],t)}else{try{t.call()}catch(a){r=a}e.call(t.prototype)}else{try{throw Error()}catch(a){r=a}e()}}catch(a){if(a&&r&&typeof a.stack=="string"){for(var s=a.stack.split(`
|
|
36
36
|
`),o=r.stack.split(`
|
|
37
37
|
`),i=s.length-1,l=o.length-1;1<=i&&0<=l&&s[i]!==o[l];)l--;for(;1<=i&&0<=l;i--,l--)if(s[i]!==o[l]){if(i!==1||l!==1)do if(i--,l--,0>l||s[i]!==o[l])return`
|
|
38
|
-
`+s[i].replace(" at new "," at ");while(1<=i&&0<=l);break}}}finally{Uo=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Un(e):""}function rh(e){switch(e.tag){case 5:return Un(e.type);case 16:return Un("Lazy");case 13:return Un("Suspense");case 19:return Un("SuspenseList");case 0:case 2:case 15:return e=qr(e.type,!1),e;case 11:return e=qr(e.type.render,!1),e;case 22:return e=qr(e.type._render,!1),e;case 1:return e=qr(e.type,!0),e;default:return""}}function Qt(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ot:return"Fragment";case At:return"Portal";case In:return"Profiler";case Oo:return"StrictMode";case zn:return"Suspense";case Kr:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ro:return(e.displayName||"Context")+".Consumer";case Lo:return(e._context.displayName||"Context")+".Provider";case Wr:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case br:return Qt(e.type);case Fo:return Qt(e._render);case _o:t=e._payload,e=e._init;try{return Qt(e(t))}catch{}}return null}function it(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function ja(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function sh(e){var t=ja(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Jr(e){e._valueTracker||(e._valueTracker=sh(e))}function Oa(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ja(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Qr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Bo(e,t){var n=t.checked;return B({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function La(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=it(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Ra(e,t){t=t.checked,t!=null&&jo(e,"checked",t,!1)}function Vo(e,t){Ra(e,t);var n=it(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Ho(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ho(e,t.type,it(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function _a(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Ho(e,t,n){(t!=="number"||Qr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function oh(e){var t="";return Hr.Children.forEach(e,function(n){n!=null&&(t+=n)}),t}function Wo(e,t){return e=B({children:void 0},t),(t=oh(t.children))&&(e.children=t),e}function Gt(e,t,n,r){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&r&&(e[n].defaultSelected=!0)}else{for(n=""+it(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,r&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function Ko(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error($(91));return B({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Fa(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error($(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error($(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:it(n)}}function Da(e,t){var n=it(t.value),r=it(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Ia(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}var bo={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function za(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function qo(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?za(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Gr,Ma=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,s){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,s)})}:e}(function(e,t){if(e.namespaceURI!==bo.svg||"innerHTML"in e)e.innerHTML=t;else{for(Gr=Gr||document.createElement("div"),Gr.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Gr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Bn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Vn={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ih=["Webkit","ms","Moz","O"];Object.keys(Vn).forEach(function(e){ih.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Vn[t]=Vn[e]})});function Ua(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Vn.hasOwnProperty(e)&&Vn[e]?(""+t).trim():t+"px"}function Ba(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=Ua(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}var lh=B({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Jo(e,t){if(t){if(lh[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error($(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error($(60));if(!(typeof t.dangerouslySetInnerHTML=="object"&&"__html"in t.dangerouslySetInnerHTML))throw Error($(61))}if(t.style!=null&&typeof t.style!="object")throw Error($(62))}}function Qo(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Go(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Yo=null,Yt=null,Xt=null;function Va(e){if(e=lr(e)){if(typeof Yo!="function")throw Error($(280));var t=e.stateNode;t&&(t=ps(t),Yo(e.stateNode,e.type,t))}}function Ha(e){Yt?Xt?Xt.push(e):Xt=[e]:Yt=e}function Wa(){if(Yt){var e=Yt,t=Xt;if(Xt=Yt=null,Va(e),t)for(e=0;e<t.length;e++)Va(t[e])}}function Xo(e,t){return e(t)}function Ka(e,t,n,r,s){return e(t,n,r,s)}function Zo(){}var ba=Xo,jt=!1,ei=!1;function ti(){(Yt!==null||Xt!==null)&&(Zo(),Wa())}function ah(e,t,n){if(ei)return e(t,n);ei=!0;try{return ba(e,t,n)}finally{ei=!1,ti()}}function Hn(e,t){var n=e.stateNode;if(n===null)return null;var r=ps(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error($(231,t,typeof n));return n}var ni=!1;if(Ge)try{var Wn={};Object.defineProperty(Wn,"passive",{get:function(){ni=!0}}),window.addEventListener("test",Wn,Wn),window.removeEventListener("test",Wn,Wn)}catch{ni=!1}function uh(e,t,n,r,s,o,i,l,a){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(f){this.onError(f)}}var Kn=!1,Yr=null,Xr=!1,ri=null,ch={onError:function(e){Kn=!0,Yr=e}};function fh(e,t,n,r,s,o,i,l,a){Kn=!1,Yr=null,uh.apply(ch,arguments)}function dh(e,t,n,r,s,o,i,l,a){if(fh.apply(this,arguments),Kn){if(Kn){var u=Yr;Kn=!1,Yr=null}else throw Error($(198));Xr||(Xr=!0,ri=u)}}function Ot(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&1026&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function qa(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Ja(e){if(Ot(e)!==e)throw Error($(188))}function hh(e){var t=e.alternate;if(!t){if(t=Ot(e),t===null)throw Error($(188));return t!==e?null:e}for(var n=e,r=t;;){var s=n.return;if(s===null)break;var o=s.alternate;if(o===null){if(r=s.return,r!==null){n=r;continue}break}if(s.child===o.child){for(o=s.child;o;){if(o===n)return Ja(s),e;if(o===r)return Ja(s),t;o=o.sibling}throw Error($(188))}if(n.return!==r.return)n=s,r=o;else{for(var i=!1,l=s.child;l;){if(l===n){i=!0,n=s,r=o;break}if(l===r){i=!0,r=s,n=o;break}l=l.sibling}if(!i){for(l=o.child;l;){if(l===n){i=!0,n=o,r=s;break}if(l===r){i=!0,r=o,n=s;break}l=l.sibling}if(!i)throw Error($(189))}}if(n.alternate!==r)throw Error($(190))}if(n.tag!==3)throw Error($(188));return n.stateNode.current===n?e:t}function Qa(e){if(e=hh(e),!e)return null;for(var t=e;;){if(t.tag===5||t.tag===6)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function Ga(e,t){for(var n=e.alternate;t!==null;){if(t===e||t===n)return!0;t=t.return}return!1}var Ya,si,Xa,Za,oi=!1,Ie=[],lt=null,at=null,ut=null,bn=new Map,qn=new Map,Jn=[],eu="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function ii(e,t,n,r,s){return{blockedOn:e,domEventName:t,eventSystemFlags:n|16,nativeEvent:s,targetContainers:[r]}}function tu(e,t){switch(e){case"focusin":case"focusout":lt=null;break;case"dragenter":case"dragleave":at=null;break;case"mouseover":case"mouseout":ut=null;break;case"pointerover":case"pointerout":bn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":qn.delete(t.pointerId)}}function Qn(e,t,n,r,s,o){return e===null||e.nativeEvent!==o?(e=ii(t,n,r,s,o),t!==null&&(t=lr(t),t!==null&&si(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function ph(e,t,n,r,s){switch(t){case"focusin":return lt=Qn(lt,e,t,n,r,s),!0;case"dragenter":return at=Qn(at,e,t,n,r,s),!0;case"mouseover":return ut=Qn(ut,e,t,n,r,s),!0;case"pointerover":var o=s.pointerId;return bn.set(o,Qn(bn.get(o)||null,e,t,n,r,s)),!0;case"gotpointercapture":return o=s.pointerId,qn.set(o,Qn(qn.get(o)||null,e,t,n,r,s)),!0}return!1}function gh(e){var t=Lt(e.target);if(t!==null){var n=Ot(t);if(n!==null){if(t=n.tag,t===13){if(t=qa(n),t!==null){e.blockedOn=t,Za(e.lanePriority,function(){ee.unstable_runWithPriority(e.priority,function(){Xa(n)})});return}}else if(t===3&&n.stateNode.hydrate){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Zr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=di(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n!==null)return t=lr(n),t!==null&&si(t),e.blockedOn=n,!1;t.shift()}return!0}function nu(e,t,n){Zr(e)&&n.delete(t)}function mh(){for(oi=!1;0<Ie.length;){var e=Ie[0];if(e.blockedOn!==null){e=lr(e.blockedOn),e!==null&&Ya(e);break}for(var t=e.targetContainers;0<t.length;){var n=di(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n!==null){e.blockedOn=n;break}t.shift()}e.blockedOn===null&&Ie.shift()}lt!==null&&Zr(lt)&&(lt=null),at!==null&&Zr(at)&&(at=null),ut!==null&&Zr(ut)&&(ut=null),bn.forEach(nu),qn.forEach(nu)}function Gn(e,t){e.blockedOn===t&&(e.blockedOn=null,oi||(oi=!0,ee.unstable_scheduleCallback(ee.unstable_NormalPriority,mh)))}function ru(e){function t(s){return Gn(s,e)}if(0<Ie.length){Gn(Ie[0],e);for(var n=1;n<Ie.length;n++){var r=Ie[n];r.blockedOn===e&&(r.blockedOn=null)}}for(lt!==null&&Gn(lt,e),at!==null&&Gn(at,e),ut!==null&&Gn(ut,e),bn.forEach(t),qn.forEach(t),n=0;n<Jn.length;n++)r=Jn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Jn.length&&(n=Jn[0],n.blockedOn===null);)gh(n),n.blockedOn===null&&Jn.shift()}function es(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Zt={animationend:es("Animation","AnimationEnd"),animationiteration:es("Animation","AnimationIteration"),animationstart:es("Animation","AnimationStart"),transitionend:es("Transition","TransitionEnd")},li={},su={};Ge&&(su=document.createElement("div").style,"AnimationEvent"in window||(delete Zt.animationend.animation,delete Zt.animationiteration.animation,delete Zt.animationstart.animation),"TransitionEvent"in window||delete Zt.transitionend.transition);function ts(e){if(li[e])return li[e];if(!Zt[e])return e;var t=Zt[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in su)return li[e]=t[n];return e}var ou=ts("animationend"),iu=ts("animationiteration"),lu=ts("animationstart"),au=ts("transitionend"),uu=new Map,ai=new Map,yh=["abort","abort",ou,"animationEnd",iu,"animationIteration",lu,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",au,"transitionEnd","waiting","waiting"];function ui(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],s=e[n+1];s="on"+(s[0].toUpperCase()+s.slice(1)),ai.set(r,t),uu.set(r,s),Tt(s,[r])}}var vh=ee.unstable_now;vh();var z=8;function en(e){if(1&e)return z=15,1;if(2&e)return z=14,2;if(4&e)return z=13,4;var t=24&e;return t!==0?(z=12,t):e&32?(z=11,32):(t=192&e,t!==0?(z=10,t):e&256?(z=9,256):(t=3584&e,t!==0?(z=8,t):e&4096?(z=7,4096):(t=4186112&e,t!==0?(z=6,t):(t=62914560&e,t!==0?(z=5,t):e&67108864?(z=4,67108864):e&134217728?(z=3,134217728):(t=805306368&e,t!==0?(z=2,t):1073741824&e?(z=1,1073741824):(z=8,e))))))}function wh(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}function Sh(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error($(358,e))}}function Yn(e,t){var n=e.pendingLanes;if(n===0)return z=0;var r=0,s=0,o=e.expiredLanes,i=e.suspendedLanes,l=e.pingedLanes;if(o!==0)r=o,s=z=15;else if(o=n&134217727,o!==0){var a=o&~i;a!==0?(r=en(a),s=z):(l&=o,l!==0&&(r=en(l),s=z))}else o=n&~i,o!==0?(r=en(o),s=z):l!==0&&(r=en(l),s=z);if(r===0)return 0;if(r=31-ct(r),r=n&((0>r?0:1<<r)<<1)-1,t!==0&&t!==r&&!(t&i)){if(en(t),s<=z)return t;z=s}if(t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-ct(t),s=1<<n,r|=e[n],t&=~s;return r}function cu(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function ns(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return e=tn(24&~t),e===0?ns(10,t):e;case 10:return e=tn(192&~t),e===0?ns(8,t):e;case 8:return e=tn(3584&~t),e===0&&(e=tn(4186112&~t),e===0&&(e=512)),e;case 2:return t=tn(805306368&~t),t===0&&(t=268435456),t}throw Error($(358,e))}function tn(e){return e&-e}function ci(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function rs(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,e=e.eventTimes,t=31-ct(t),e[t]=n}var ct=Math.clz32?Math.clz32:$h,xh=Math.log,Ch=Math.LN2;function $h(e){return e===0?32:31-(xh(e)/Ch|0)|0}var Eh=ee.unstable_UserBlockingPriority,kh=ee.unstable_runWithPriority,ss=!0;function Ph(e,t,n,r){jt||Zo();var s=fi,o=jt;jt=!0;try{Ka(s,e,t,n,r)}finally{(jt=o)||ti()}}function Th(e,t,n,r){kh(Eh,fi.bind(null,e,t,n,r))}function fi(e,t,n,r){if(ss){var s;if((s=(t&4)===0)&&0<Ie.length&&-1<eu.indexOf(e))e=ii(null,e,t,n,r),Ie.push(e);else{var o=di(e,t,n,r);if(o===null)s&&tu(e,r);else{if(s){if(-1<eu.indexOf(e)){e=ii(o,e,t,n,r),Ie.push(e);return}if(ph(o,e,t,n,r))return;tu(e,r)}Uu(e,t,r,null,n)}}}}function di(e,t,n,r){var s=Go(r);if(s=Lt(s),s!==null){var o=Ot(s);if(o===null)s=null;else{var i=o.tag;if(i===13){if(s=qa(o),s!==null)return s;s=null}else if(i===3){if(o.stateNode.hydrate)return o.tag===3?o.stateNode.containerInfo:null;s=null}else o!==s&&(s=null)}}return Uu(e,t,r,s,n),null}var ft=null,hi=null,os=null;function fu(){if(os)return os;var e,t=hi,n=t.length,r,s="value"in ft?ft.value:ft.textContent,o=s.length;for(e=0;e<n&&t[e]===s[e];e++);var i=n-e;for(r=1;r<=i&&t[n-r]===s[o-r];r++);return os=s.slice(e,1<r?1-r:void 0)}function is(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function ls(){return!0}function du(){return!1}function xe(e){function t(n,r,s,o,i){this._reactName=n,this._targetInst=s,this.type=r,this.nativeEvent=o,this.target=i,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(o):o[l]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?ls:du,this.isPropagationStopped=du,this}return B(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=ls)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ls)},persist:function(){},isPersistent:ls}),t}var nn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},pi=xe(nn),Xn=B({},nn,{view:0,detail:0}),Nh=xe(Xn),gi,mi,Zn,as=B({},Xn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:vi,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Zn&&(Zn&&e.type==="mousemove"?(gi=e.screenX-Zn.screenX,mi=e.screenY-Zn.screenY):mi=gi=0,Zn=e),gi)},movementY:function(e){return"movementY"in e?e.movementY:mi}}),hu=xe(as),Ah=B({},as,{dataTransfer:0}),jh=xe(Ah),Oh=B({},Xn,{relatedTarget:0}),yi=xe(Oh),Lh=B({},nn,{animationName:0,elapsedTime:0,pseudoElement:0}),Rh=xe(Lh),_h=B({},nn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Fh=xe(_h),Dh=B({},nn,{data:0}),pu=xe(Dh),Ih={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},zh={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Mh={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Uh(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Mh[e])?!!t[e]:!1}function vi(){return Uh}var Bh=B({},Xn,{key:function(e){if(e.key){var t=Ih[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=is(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?zh[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:vi,charCode:function(e){return e.type==="keypress"?is(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?is(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Vh=xe(Bh),Hh=B({},as,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),gu=xe(Hh),Wh=B({},Xn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:vi}),Kh=xe(Wh),bh=B({},nn,{propertyName:0,elapsedTime:0,pseudoElement:0}),qh=xe(bh),Jh=B({},as,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Qh=xe(Jh),Gh=[9,13,27,32],wi=Ge&&"CompositionEvent"in window,er=null;Ge&&"documentMode"in document&&(er=document.documentMode);var Yh=Ge&&"TextEvent"in window&&!er,mu=Ge&&(!wi||er&&8<er&&11>=er),yu=String.fromCharCode(32),vu=!1;function wu(e,t){switch(e){case"keyup":return Gh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Su(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var rn=!1;function Xh(e,t){switch(e){case"compositionend":return Su(t);case"keypress":return t.which!==32?null:(vu=!0,yu);case"textInput":return e=t.data,e===yu&&vu?null:e;default:return null}}function Zh(e,t){if(rn)return e==="compositionend"||!wi&&wu(e,t)?(e=fu(),os=hi=ft=null,rn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return mu&&t.locale!=="ko"?null:t.data;default:return null}}var ep={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function xu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!ep[e.type]:t==="textarea"}function Cu(e,t,n,r){Ha(r),t=cs(t,"onChange"),0<t.length&&(n=new pi("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var tr=null,nr=null;function tp(e){Fu(e,0)}function us(e){var t=un(e);if(Oa(t))return e}function np(e,t){if(e==="change")return t}var $u=!1;if(Ge){var Si;if(Ge){var xi="oninput"in document;if(!xi){var Eu=document.createElement("div");Eu.setAttribute("oninput","return;"),xi=typeof Eu.oninput=="function"}Si=xi}else Si=!1;$u=Si&&(!document.documentMode||9<document.documentMode)}function ku(){tr&&(tr.detachEvent("onpropertychange",Pu),nr=tr=null)}function Pu(e){if(e.propertyName==="value"&&us(nr)){var t=[];if(Cu(t,nr,e,Go(e)),e=tp,jt)e(t);else{jt=!0;try{Xo(e,t)}finally{jt=!1,ti()}}}}function rp(e,t,n){e==="focusin"?(ku(),tr=t,nr=n,tr.attachEvent("onpropertychange",Pu)):e==="focusout"&&ku()}function sp(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return us(nr)}function op(e,t){if(e==="click")return us(t)}function ip(e,t){if(e==="input"||e==="change")return us(t)}function lp(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Pe=typeof Object.is=="function"?Object.is:lp,ap=Object.prototype.hasOwnProperty;function rr(e,t){if(Pe(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!ap.call(t,n[r])||!Pe(e[n[r]],t[n[r]]))return!1;return!0}function Tu(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Nu(e,t){var n=Tu(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Tu(n)}}function Au(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Au(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ju(){for(var e=window,t=Qr();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Qr(e.document)}return t}function Ci(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var up=Ge&&"documentMode"in document&&11>=document.documentMode,sn=null,$i=null,sr=null,Ei=!1;function Ou(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ei||sn==null||sn!==Qr(r)||(r=sn,"selectionStart"in r&&Ci(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),sr&&rr(sr,r)||(sr=r,r=cs($i,"onSelect"),0<r.length&&(t=new pi("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=sn)))}ui("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),ui("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),ui(yh,2);for(var Lu="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),ki=0;ki<Lu.length;ki++)ai.set(Lu[ki],0);Jt("onMouseEnter",["mouseout","mouseover"]),Jt("onMouseLeave",["mouseout","mouseover"]),Jt("onPointerEnter",["pointerout","pointerover"]),Jt("onPointerLeave",["pointerout","pointerover"]),Tt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Tt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Tt("onBeforeInput",["compositionend","keypress","textInput","paste"]),Tt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Tt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Tt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var or="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Ru=new Set("cancel close invalid load scroll toggle".split(" ").concat(or));function _u(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,dh(r,t,void 0,e),e.currentTarget=null}function Fu(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],s=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var i=r.length-1;0<=i;i--){var l=r[i],a=l.instance,u=l.currentTarget;if(l=l.listener,a!==o&&s.isPropagationStopped())break e;_u(s,l,u),o=a}else for(i=0;i<r.length;i++){if(l=r[i],a=l.instance,u=l.currentTarget,l=l.listener,a!==o&&s.isPropagationStopped())break e;_u(s,l,u),o=a}}}if(Xr)throw e=ri,Xr=!1,ri=null,e}function M(e,t){var n=bu(t),r=e+"__bubble";n.has(r)||(Mu(t,e,2,!1),n.add(r))}var Du="_reactListening"+Math.random().toString(36).slice(2);function Iu(e){e[Du]||(e[Du]=!0,Ea.forEach(function(t){Ru.has(t)||zu(t,!1,e,null),zu(t,!0,e,null)}))}function zu(e,t,n,r){var s=4<arguments.length&&arguments[4]!==void 0?arguments[4]:0,o=n;if(e==="selectionchange"&&n.nodeType!==9&&(o=n.ownerDocument),r!==null&&!t&&Ru.has(e)){if(e!=="scroll")return;s|=2,o=r}var i=bu(o),l=e+"__"+(t?"capture":"bubble");i.has(l)||(t&&(s|=4),Mu(o,e,s,t),i.add(l))}function Mu(e,t,n,r){var s=ai.get(t);switch(s===void 0?2:s){case 0:s=Ph;break;case 1:s=Th;break;default:s=fi}n=s.bind(null,t,n,e),s=void 0,!ni||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),r?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}function Uu(e,t,n,r,s){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var i=r.tag;if(i===3||i===4){var l=r.stateNode.containerInfo;if(l===s||l.nodeType===8&&l.parentNode===s)break;if(i===4)for(i=r.return;i!==null;){var a=i.tag;if((a===3||a===4)&&(a=i.stateNode.containerInfo,a===s||a.nodeType===8&&a.parentNode===s))return;i=i.return}for(;l!==null;){if(i=Lt(l),i===null)return;if(a=i.tag,a===5||a===6){r=o=i;continue e}l=l.parentNode}}r=r.return}ah(function(){var u=o,f=Go(n),p=[];e:{var c=uu.get(e);if(c!==void 0){var v=pi,m=e;switch(e){case"keypress":if(is(n)===0)break e;case"keydown":case"keyup":v=Vh;break;case"focusin":m="focus",v=yi;break;case"focusout":m="blur",v=yi;break;case"beforeblur":case"afterblur":v=yi;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":v=hu;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":v=jh;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":v=Kh;break;case ou:case iu:case lu:v=Rh;break;case au:v=qh;break;case"scroll":v=Nh;break;case"wheel":v=Qh;break;case"copy":case"cut":case"paste":v=Fh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":v=gu}var y=(t&4)!==0,h=!y&&e==="scroll",d=y?c!==null?c+"Capture":null:c;y=[];for(var g=u,w;g!==null;){w=g;var S=w.stateNode;if(w.tag===5&&S!==null&&(w=S,d!==null&&(S=Hn(g,d),S!=null&&y.push(ir(g,S,w)))),h)break;g=g.return}0<y.length&&(c=new v(c,m,null,n,f),p.push({event:c,listeners:y}))}}if(!(t&7)){e:{if(c=e==="mouseover"||e==="pointerover",v=e==="mouseout"||e==="pointerout",c&&!(t&16)&&(m=n.relatedTarget||n.fromElement)&&(Lt(m)||m[an]))break e;if((v||c)&&(c=f.window===f?f:(c=f.ownerDocument)?c.defaultView||c.parentWindow:window,v?(m=n.relatedTarget||n.toElement,v=u,m=m?Lt(m):null,m!==null&&(h=Ot(m),m!==h||m.tag!==5&&m.tag!==6)&&(m=null)):(v=null,m=u),v!==m)){if(y=hu,S="onMouseLeave",d="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(y=gu,S="onPointerLeave",d="onPointerEnter",g="pointer"),h=v==null?c:un(v),w=m==null?c:un(m),c=new y(S,g+"leave",v,n,f),c.target=h,c.relatedTarget=w,S=null,Lt(f)===u&&(y=new y(d,g+"enter",m,n,f),y.target=w,y.relatedTarget=h,S=y),h=S,v&&m)t:{for(y=v,d=m,g=0,w=y;w;w=on(w))g++;for(w=0,S=d;S;S=on(S))w++;for(;0<g-w;)y=on(y),g--;for(;0<w-g;)d=on(d),w--;for(;g--;){if(y===d||d!==null&&y===d.alternate)break t;y=on(y),d=on(d)}y=null}else y=null;v!==null&&Bu(p,c,v,y,!1),m!==null&&h!==null&&Bu(p,h,m,y,!0)}}e:{if(c=u?un(u):window,v=c.nodeName&&c.nodeName.toLowerCase(),v==="select"||v==="input"&&c.type==="file")var T=np;else if(xu(c))if($u)T=ip;else{T=sp;var C=rp}else(v=c.nodeName)&&v.toLowerCase()==="input"&&(c.type==="checkbox"||c.type==="radio")&&(T=op);if(T&&(T=T(e,u))){Cu(p,T,n,f);break e}C&&C(e,c,u),e==="focusout"&&(C=c._wrapperState)&&C.controlled&&c.type==="number"&&Ho(c,"number",c.value)}switch(C=u?un(u):window,e){case"focusin":(xu(C)||C.contentEditable==="true")&&(sn=C,$i=u,sr=null);break;case"focusout":sr=$i=sn=null;break;case"mousedown":Ei=!0;break;case"contextmenu":case"mouseup":case"dragend":Ei=!1,Ou(p,n,f);break;case"selectionchange":if(up)break;case"keydown":case"keyup":Ou(p,n,f)}var P;if(wi)e:{switch(e){case"compositionstart":var j="onCompositionStart";break e;case"compositionend":j="onCompositionEnd";break e;case"compositionupdate":j="onCompositionUpdate";break e}j=void 0}else rn?wu(e,n)&&(j="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(j="onCompositionStart");j&&(mu&&n.locale!=="ko"&&(rn||j!=="onCompositionStart"?j==="onCompositionEnd"&&rn&&(P=fu()):(ft=f,hi="value"in ft?ft.value:ft.textContent,rn=!0)),C=cs(u,j),0<C.length&&(j=new pu(j,e,null,n,f),p.push({event:j,listeners:C}),P?j.data=P:(P=Su(n),P!==null&&(j.data=P)))),(P=Yh?Xh(e,n):Zh(e,n))&&(u=cs(u,"onBeforeInput"),0<u.length&&(f=new pu("onBeforeInput","beforeinput",null,n,f),p.push({event:f,listeners:u}),f.data=P))}Fu(p,t)})}function ir(e,t,n){return{instance:e,listener:t,currentTarget:n}}function cs(e,t){for(var n=t+"Capture",r=[];e!==null;){var s=e,o=s.stateNode;s.tag===5&&o!==null&&(s=o,o=Hn(e,n),o!=null&&r.unshift(ir(e,o,s)),o=Hn(e,t),o!=null&&r.push(ir(e,o,s))),e=e.return}return r}function on(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Bu(e,t,n,r,s){for(var o=t._reactName,i=[];n!==null&&n!==r;){var l=n,a=l.alternate,u=l.stateNode;if(a!==null&&a===r)break;l.tag===5&&u!==null&&(l=u,s?(a=Hn(n,o),a!=null&&i.unshift(ir(n,a,l))):s||(a=Hn(n,o),a!=null&&i.push(ir(n,a,l)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}function fs(){}var Pi=null,Ti=null;function Vu(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Ni(e,t){return e==="textarea"||e==="option"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Hu=typeof setTimeout=="function"?setTimeout:void 0,cp=typeof clearTimeout=="function"?clearTimeout:void 0;function Ai(e){e.nodeType===1?e.textContent="":e.nodeType===9&&(e=e.body,e!=null&&(e.textContent=""))}function ln(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break}return e}function Wu(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var ji=0;function fp(e){return{$$typeof:Do,toString:e,valueOf:e}}var ds=Math.random().toString(36).slice(2),dt="__reactFiber$"+ds,hs="__reactProps$"+ds,an="__reactContainer$"+ds,Ku="__reactEvents$"+ds;function Lt(e){var t=e[dt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[an]||n[dt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Wu(e);e!==null;){if(n=e[dt])return n;e=Wu(e)}return t}e=n,n=e.parentNode}return null}function lr(e){return e=e[dt]||e[an],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function un(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error($(33))}function ps(e){return e[hs]||null}function bu(e){var t=e[Ku];return t===void 0&&(t=e[Ku]=new Set),t}var Oi=[],cn=-1;function ht(e){return{current:e}}function U(e){0>cn||(e.current=Oi[cn],Oi[cn]=null,cn--)}function H(e,t){cn++,Oi[cn]=e.current,e.current=t}var pt={},ae=ht(pt),ye=ht(!1),Rt=pt;function fn(e,t){var n=e.type.contextTypes;if(!n)return pt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var s={},o;for(o in n)s[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function ve(e){return e=e.childContextTypes,e!=null}function gs(){U(ye),U(ae)}function qu(e,t,n){if(ae.current!==pt)throw Error($(168));H(ae,t),H(ye,n)}function Ju(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var s in r)if(!(s in e))throw Error($(108,Qt(t)||"Unknown",s));return B({},n,r)}function ms(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||pt,Rt=ae.current,H(ae,e),H(ye,ye.current),!0}function Qu(e,t,n){var r=e.stateNode;if(!r)throw Error($(169));n?(e=Ju(e,t,Rt),r.__reactInternalMemoizedMergedChildContext=e,U(ye),U(ae),H(ae,e)):U(ye),H(ye,n)}var Li=null,_t=null,dp=ee.unstable_runWithPriority,Ri=ee.unstable_scheduleCallback,_i=ee.unstable_cancelCallback,hp=ee.unstable_shouldYield,Gu=ee.unstable_requestPaint,Fi=ee.unstable_now,pp=ee.unstable_getCurrentPriorityLevel,ys=ee.unstable_ImmediatePriority,Yu=ee.unstable_UserBlockingPriority,Xu=ee.unstable_NormalPriority,Zu=ee.unstable_LowPriority,ec=ee.unstable_IdlePriority,Di={},gp=Gu!==void 0?Gu:function(){},Ye=null,vs=null,Ii=!1,tc=Fi(),ue=1e4>tc?Fi:function(){return Fi()-tc};function dn(){switch(pp()){case ys:return 99;case Yu:return 98;case Xu:return 97;case Zu:return 96;case ec:return 95;default:throw Error($(332))}}function nc(e){switch(e){case 99:return ys;case 98:return Yu;case 97:return Xu;case 96:return Zu;case 95:return ec;default:throw Error($(332))}}function Ft(e,t){return e=nc(e),dp(e,t)}function ar(e,t,n){return e=nc(e),Ri(e,t,n)}function ze(){if(vs!==null){var e=vs;vs=null,_i(e)}rc()}function rc(){if(!Ii&&Ye!==null){Ii=!0;var e=0;try{var t=Ye;Ft(99,function(){for(;e<t.length;e++){var n=t[e];do n=n(!0);while(n!==null)}}),Ye=null}catch(n){throw Ye!==null&&(Ye=Ye.slice(e+1)),Ri(ys,ze),n}finally{Ii=!1}}}var mp=Nt.ReactCurrentBatchConfig;function _e(e,t){if(e&&e.defaultProps){t=B({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var ws=ht(null),Ss=null,hn=null,xs=null;function zi(){xs=hn=Ss=null}function Mi(e){var t=ws.current;U(ws),e.type._context._currentValue=t}function sc(e,t){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)===t){if(n===null||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,n!==null&&(n.childLanes|=t);e=e.return}}function pn(e,t){Ss=e,xs=hn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Fe=!0),e.firstContext=null)}function Te(e,t){if(xs!==e&&t!==!1&&t!==0)if((typeof t!="number"||t===1073741823)&&(xs=e,t=1073741823),t={context:e,observedBits:t,next:null},hn===null){if(Ss===null)throw Error($(308));hn=t,Ss.dependencies={lanes:0,firstContext:t,responders:null}}else hn=hn.next=t;return e._currentValue}var gt=!1;function Ui(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function oc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function mt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function yt(e,t){if(e=e.updateQueue,e!==null){e=e.shared;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function ic(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var s=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?s=o=i:o=o.next=i,n=n.next}while(n!==null);o===null?s=o=t:o=o.next=t}else s=o=t;n={baseState:r.baseState,firstBaseUpdate:s,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ur(e,t,n,r){var s=e.updateQueue;gt=!1;var o=s.firstBaseUpdate,i=s.lastBaseUpdate,l=s.shared.pending;if(l!==null){s.shared.pending=null;var a=l,u=a.next;a.next=null,i===null?o=u:i.next=u,i=a;var f=e.alternate;if(f!==null){f=f.updateQueue;var p=f.lastBaseUpdate;p!==i&&(p===null?f.firstBaseUpdate=u:p.next=u,f.lastBaseUpdate=a)}}if(o!==null){p=s.baseState,i=0,f=u=a=null;do{l=o.lane;var c=o.eventTime;if((r&l)===l){f!==null&&(f=f.next={eventTime:c,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var v=e,m=o;switch(l=t,c=n,m.tag){case 1:if(v=m.payload,typeof v=="function"){p=v.call(c,p,l);break e}p=v;break e;case 3:v.flags=v.flags&-4097|64;case 0:if(v=m.payload,l=typeof v=="function"?v.call(c,p,l):v,l==null)break e;p=B({},p,l);break e;case 2:gt=!0}}o.callback!==null&&(e.flags|=32,l=s.effects,l===null?s.effects=[o]:l.push(o))}else c={eventTime:c,lane:l,tag:o.tag,payload:o.payload,callback:o.callback,next:null},f===null?(u=f=c,a=p):f=f.next=c,i|=l;if(o=o.next,o===null){if(l=s.shared.pending,l===null)break;o=l.next,l.next=null,s.lastBaseUpdate=l,s.shared.pending=null}}while(1);f===null&&(a=p),s.baseState=a,s.firstBaseUpdate=u,s.lastBaseUpdate=f,xr|=i,e.lanes=i,e.memoizedState=p}}function lc(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],s=r.callback;if(s!==null){if(r.callback=null,r=n,typeof s!="function")throw Error($(191,s));s.call(r)}}}var ac=new Hr.Component().refs;function Cs(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:B({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var $s={isMounted:function(e){return(e=e._reactInternals)?Ot(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ce(),s=St(e),o=mt(r,s);o.payload=t,n!=null&&(o.callback=n),yt(e,o),xt(e,s,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ce(),s=St(e),o=mt(r,s);o.tag=1,o.payload=t,n!=null&&(o.callback=n),yt(e,o),xt(e,s,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ce(),r=St(e),s=mt(n,r);s.tag=2,t!=null&&(s.callback=t),yt(e,s),xt(e,r,n)}};function uc(e,t,n,r,s,o,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,i):t.prototype&&t.prototype.isPureReactComponent?!rr(n,r)||!rr(s,o):!0}function cc(e,t,n){var r=!1,s=pt,o=t.contextType;return typeof o=="object"&&o!==null?o=Te(o):(s=ve(t)?Rt:ae.current,r=t.contextTypes,o=(r=r!=null)?fn(e,s):pt),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=$s,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=o),t}function fc(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&$s.enqueueReplaceState(t,t.state,null)}function Bi(e,t,n,r){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs=ac,Ui(e);var o=t.contextType;typeof o=="object"&&o!==null?s.context=Te(o):(o=ve(t)?Rt:ae.current,s.context=fn(e,o)),ur(e,n,s,r),s.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(Cs(e,t,o,n),s.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(t=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),t!==s.state&&$s.enqueueReplaceState(s,s.state,null),ur(e,n,s,r),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4)}var Es=Array.isArray;function cr(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error($(309));var r=n.stateNode}if(!r)throw Error($(147,e));var s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(o){var i=r.refs;i===ac&&(i=r.refs={}),o===null?delete i[s]:i[s]=o},t._stringRef=s,t)}if(typeof e!="string")throw Error($(284));if(!n._owner)throw Error($(290,e))}return e}function ks(e,t){if(e.type!=="textarea")throw Error($(31,Object.prototype.toString.call(t)==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function dc(e){function t(h,d){if(e){var g=h.lastEffect;g!==null?(g.nextEffect=d,h.lastEffect=d):h.firstEffect=h.lastEffect=d,d.nextEffect=null,d.flags=8}}function n(h,d){if(!e)return null;for(;d!==null;)t(h,d),d=d.sibling;return null}function r(h,d){for(h=new Map;d!==null;)d.key!==null?h.set(d.key,d):h.set(d.index,d),d=d.sibling;return h}function s(h,d){return h=Et(h,d),h.index=0,h.sibling=null,h}function o(h,d,g){return h.index=g,e?(g=h.alternate,g!==null?(g=g.index,g<d?(h.flags=2,d):g):(h.flags=2,d)):d}function i(h){return e&&h.alternate===null&&(h.flags=2),h}function l(h,d,g,w){return d===null||d.tag!==6?(d=$l(g,h.mode,w),d.return=h,d):(d=s(d,g),d.return=h,d)}function a(h,d,g,w){return d!==null&&d.elementType===g.type?(w=s(d,g.props),w.ref=cr(h,d,g),w.return=h,w):(w=Hs(g.type,g.key,g.props,null,h.mode,w),w.ref=cr(h,d,g),w.return=h,w)}function u(h,d,g,w){return d===null||d.tag!==4||d.stateNode.containerInfo!==g.containerInfo||d.stateNode.implementation!==g.implementation?(d=El(g,h.mode,w),d.return=h,d):(d=s(d,g.children||[]),d.return=h,d)}function f(h,d,g,w,S){return d===null||d.tag!==7?(d=Cn(g,h.mode,w,S),d.return=h,d):(d=s(d,g),d.return=h,d)}function p(h,d,g){if(typeof d=="string"||typeof d=="number")return d=$l(""+d,h.mode,g),d.return=h,d;if(typeof d=="object"&&d!==null){switch(d.$$typeof){case Dn:return g=Hs(d.type,d.key,d.props,null,h.mode,g),g.ref=cr(h,null,d),g.return=h,g;case At:return d=El(d,h.mode,g),d.return=h,d}if(Es(d)||Mn(d))return d=Cn(d,h.mode,g,null),d.return=h,d;ks(h,d)}return null}function c(h,d,g,w){var S=d!==null?d.key:null;if(typeof g=="string"||typeof g=="number")return S!==null?null:l(h,d,""+g,w);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Dn:return g.key===S?g.type===ot?f(h,d,g.props.children,w,S):a(h,d,g,w):null;case At:return g.key===S?u(h,d,g,w):null}if(Es(g)||Mn(g))return S!==null?null:f(h,d,g,w,null);ks(h,g)}return null}function v(h,d,g,w,S){if(typeof w=="string"||typeof w=="number")return h=h.get(g)||null,l(d,h,""+w,S);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Dn:return h=h.get(w.key===null?g:w.key)||null,w.type===ot?f(d,h,w.props.children,S,w.key):a(d,h,w,S);case At:return h=h.get(w.key===null?g:w.key)||null,u(d,h,w,S)}if(Es(w)||Mn(w))return h=h.get(g)||null,f(d,h,w,S,null);ks(d,w)}return null}function m(h,d,g,w){for(var S=null,T=null,C=d,P=d=0,j=null;C!==null&&P<g.length;P++){C.index>P?(j=C,C=null):j=C.sibling;var A=c(h,C,g[P],w);if(A===null){C===null&&(C=j);break}e&&C&&A.alternate===null&&t(h,C),d=o(A,d,P),T===null?S=A:T.sibling=A,T=A,C=j}if(P===g.length)return n(h,C),S;if(C===null){for(;P<g.length;P++)C=p(h,g[P],w),C!==null&&(d=o(C,d,P),T===null?S=C:T.sibling=C,T=C);return S}for(C=r(h,C);P<g.length;P++)j=v(C,h,P,g[P],w),j!==null&&(e&&j.alternate!==null&&C.delete(j.key===null?P:j.key),d=o(j,d,P),T===null?S=j:T.sibling=j,T=j);return e&&C.forEach(function(Y){return t(h,Y)}),S}function y(h,d,g,w){var S=Mn(g);if(typeof S!="function")throw Error($(150));if(g=S.call(g),g==null)throw Error($(151));for(var T=S=null,C=d,P=d=0,j=null,A=g.next();C!==null&&!A.done;P++,A=g.next()){C.index>P?(j=C,C=null):j=C.sibling;var Y=c(h,C,A.value,w);if(Y===null){C===null&&(C=j);break}e&&C&&Y.alternate===null&&t(h,C),d=o(Y,d,P),T===null?S=Y:T.sibling=Y,T=Y,C=j}if(A.done)return n(h,C),S;if(C===null){for(;!A.done;P++,A=g.next())A=p(h,A.value,w),A!==null&&(d=o(A,d,P),T===null?S=A:T.sibling=A,T=A);return S}for(C=r(h,C);!A.done;P++,A=g.next())A=v(C,h,P,A.value,w),A!==null&&(e&&A.alternate!==null&&C.delete(A.key===null?P:A.key),d=o(A,d,P),T===null?S=A:T.sibling=A,T=A);return e&&C.forEach(function(rt){return t(h,rt)}),S}return function(h,d,g,w){var S=typeof g=="object"&&g!==null&&g.type===ot&&g.key===null;S&&(g=g.props.children);var T=typeof g=="object"&&g!==null;if(T)switch(g.$$typeof){case Dn:e:{for(T=g.key,S=d;S!==null;){if(S.key===T){switch(S.tag){case 7:if(g.type===ot){n(h,S.sibling),d=s(S,g.props.children),d.return=h,h=d;break e}break;default:if(S.elementType===g.type){n(h,S.sibling),d=s(S,g.props),d.ref=cr(h,S,g),d.return=h,h=d;break e}}n(h,S);break}else t(h,S);S=S.sibling}g.type===ot?(d=Cn(g.props.children,h.mode,w,g.key),d.return=h,h=d):(w=Hs(g.type,g.key,g.props,null,h.mode,w),w.ref=cr(h,d,g),w.return=h,h=w)}return i(h);case At:e:{for(S=g.key;d!==null;){if(d.key===S)if(d.tag===4&&d.stateNode.containerInfo===g.containerInfo&&d.stateNode.implementation===g.implementation){n(h,d.sibling),d=s(d,g.children||[]),d.return=h,h=d;break e}else{n(h,d);break}else t(h,d);d=d.sibling}d=El(g,h.mode,w),d.return=h,h=d}return i(h)}if(typeof g=="string"||typeof g=="number")return g=""+g,d!==null&&d.tag===6?(n(h,d.sibling),d=s(d,g),d.return=h,h=d):(n(h,d),d=$l(g,h.mode,w),d.return=h,h=d),i(h);if(Es(g))return m(h,d,g,w);if(Mn(g))return y(h,d,g,w);if(T&&ks(h,g),typeof g>"u"&&!S)switch(h.tag){case 1:case 22:case 0:case 11:case 15:throw Error($(152,Qt(h.type)||"Component"))}return n(h,d)}}var Ps=dc(!0),hc=dc(!1),fr={},Me=ht(fr),dr=ht(fr),hr=ht(fr);function Dt(e){if(e===fr)throw Error($(174));return e}function Vi(e,t){switch(H(hr,t),H(dr,e),H(Me,fr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:qo(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=qo(t,e)}U(Me),H(Me,t)}function gn(){U(Me),U(dr),U(hr)}function pc(e){Dt(hr.current);var t=Dt(Me.current),n=qo(t,e.type);t!==n&&(H(dr,e),H(Me,n))}function Hi(e){dr.current===e&&(U(Me),U(dr))}var W=ht(0);function Ts(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&64)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Xe=null,vt=null,Ue=!1;function gc(e,t){var n=je(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,e.lastEffect!==null?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function mc(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,!0):!1;case 13:return!1;default:return!1}}function Wi(e){if(Ue){var t=vt;if(t){var n=t;if(!mc(e,t)){if(t=ln(n.nextSibling),!t||!mc(e,t)){e.flags=e.flags&-1025|2,Ue=!1,Xe=e;return}gc(Xe,n)}Xe=e,vt=ln(t.firstChild)}else e.flags=e.flags&-1025|2,Ue=!1,Xe=e}}function yc(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Xe=e}function Ns(e){if(e!==Xe)return!1;if(!Ue)return yc(e),Ue=!0,!1;var t=e.type;if(e.tag!==5||t!=="head"&&t!=="body"&&!Ni(t,e.memoizedProps))for(t=vt;t;)gc(e,t),t=ln(t.nextSibling);if(yc(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error($(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){vt=ln(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}vt=null}}else vt=Xe?ln(e.stateNode.nextSibling):null;return!0}function Ki(){vt=Xe=null,Ue=!1}var mn=[];function bi(){for(var e=0;e<mn.length;e++)mn[e]._workInProgressVersionPrimary=null;mn.length=0}var pr=Nt.ReactCurrentDispatcher,Ne=Nt.ReactCurrentBatchConfig,gr=0,b=null,ce=null,se=null,As=!1,mr=!1;function we(){throw Error($(321))}function qi(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Pe(e[n],t[n]))return!1;return!0}function Ji(e,t,n,r,s,o){if(gr=o,b=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,pr.current=e===null||e.memoizedState===null?vp:wp,e=n(r,s),mr){o=0;do{if(mr=!1,!(25>o))throw Error($(301));o+=1,se=ce=null,t.updateQueue=null,pr.current=Sp,e=n(r,s)}while(mr)}if(pr.current=Rs,t=ce!==null&&ce.next!==null,gr=0,se=ce=b=null,As=!1,t)throw Error($(300));return e}function It(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return se===null?b.memoizedState=se=e:se=se.next=e,se}function zt(){if(ce===null){var e=b.alternate;e=e!==null?e.memoizedState:null}else e=ce.next;var t=se===null?b.memoizedState:se.next;if(t!==null)se=t,ce=e;else{if(e===null)throw Error($(310));ce=e,e={memoizedState:ce.memoizedState,baseState:ce.baseState,baseQueue:ce.baseQueue,queue:ce.queue,next:null},se===null?b.memoizedState=se=e:se=se.next=e}return se}function Be(e,t){return typeof t=="function"?t(e):t}function yr(e){var t=zt(),n=t.queue;if(n===null)throw Error($(311));n.lastRenderedReducer=e;var r=ce,s=r.baseQueue,o=n.pending;if(o!==null){if(s!==null){var i=s.next;s.next=o.next,o.next=i}r.baseQueue=s=o,n.pending=null}if(s!==null){s=s.next,r=r.baseState;var l=i=o=null,a=s;do{var u=a.lane;if((gr&u)===u)l!==null&&(l=l.next={lane:0,action:a.action,eagerReducer:a.eagerReducer,eagerState:a.eagerState,next:null}),r=a.eagerReducer===e?a.eagerState:e(r,a.action);else{var f={lane:u,action:a.action,eagerReducer:a.eagerReducer,eagerState:a.eagerState,next:null};l===null?(i=l=f,o=r):l=l.next=f,b.lanes|=u,xr|=u}a=a.next}while(a!==null&&a!==s);l===null?o=r:l.next=i,Pe(r,t.memoizedState)||(Fe=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function vr(e){var t=zt(),n=t.queue;if(n===null)throw Error($(311));n.lastRenderedReducer=e;var r=n.dispatch,s=n.pending,o=t.memoizedState;if(s!==null){n.pending=null;var i=s=s.next;do o=e(o,i.action),i=i.next;while(i!==s);Pe(o,t.memoizedState)||(Fe=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function vc(e,t,n){var r=t._getVersion;r=r(t._source);var s=t._workInProgressVersionPrimary;if(s!==null?e=s===r:(e=e.mutableReadLanes,(e=(gr&e)===e)&&(t._workInProgressVersionPrimary=r,mn.push(t))),e)return n(t._source);throw mn.push(t),Error($(350))}function wc(e,t,n,r){var s=ge;if(s===null)throw Error($(349));var o=t._getVersion,i=o(t._source),l=pr.current,a=l.useState(function(){return vc(s,t,n)}),u=a[1],f=a[0];a=se;var p=e.memoizedState,c=p.refs,v=c.getSnapshot,m=p.source;p=p.subscribe;var y=b;return e.memoizedState={refs:c,source:t,subscribe:r},l.useEffect(function(){c.getSnapshot=n,c.setSnapshot=u;var h=o(t._source);if(!Pe(i,h)){h=n(t._source),Pe(f,h)||(u(h),h=St(y),s.mutableReadLanes|=h&s.pendingLanes),h=s.mutableReadLanes,s.entangledLanes|=h;for(var d=s.entanglements,g=h;0<g;){var w=31-ct(g),S=1<<w;d[w]|=h,g&=~S}}},[n,t,r]),l.useEffect(function(){return r(t._source,function(){var h=c.getSnapshot,d=c.setSnapshot;try{d(h(t._source));var g=St(y);s.mutableReadLanes|=g&s.pendingLanes}catch(w){d(function(){throw w})}})},[t,r]),Pe(v,n)&&Pe(m,t)&&Pe(p,r)||(e={pending:null,dispatch:null,lastRenderedReducer:Be,lastRenderedState:f},e.dispatch=u=Xi.bind(null,b,e),a.queue=e,a.baseQueue=null,f=vc(s,t,n),a.memoizedState=a.baseState=f),f}function Sc(e,t,n){var r=zt();return wc(r,e,t,n)}function wr(e){var t=It();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e=t.queue={pending:null,dispatch:null,lastRenderedReducer:Be,lastRenderedState:e},e=e.dispatch=Xi.bind(null,b,e),[t.memoizedState,e]}function js(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=b.updateQueue,t===null?(t={lastEffect:null},b.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function xc(e){var t=It();return e={current:e},t.memoizedState=e}function Os(){return zt().memoizedState}function Qi(e,t,n,r){var s=It();b.flags|=e,s.memoizedState=js(1|t,n,void 0,r===void 0?null:r)}function Gi(e,t,n,r){var s=zt();r=r===void 0?null:r;var o=void 0;if(ce!==null){var i=ce.memoizedState;if(o=i.destroy,r!==null&&qi(r,i.deps)){js(t,n,o,r);return}}b.flags|=e,s.memoizedState=js(1|t,n,o,r)}function Cc(e,t){return Qi(516,4,e,t)}function Ls(e,t){return Gi(516,4,e,t)}function $c(e,t){return Gi(4,2,e,t)}function Ec(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function kc(e,t,n){return n=n!=null?n.concat([e]):null,Gi(4,2,Ec.bind(null,t,e),n)}function Yi(){}function Pc(e,t){var n=zt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&qi(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Tc(e,t){var n=zt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&qi(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function yp(e,t){var n=dn();Ft(98>n?98:n,function(){e(!0)}),Ft(97<n?97:n,function(){var r=Ne.transition;Ne.transition=1;try{e(!1),t()}finally{Ne.transition=r}})}function Xi(e,t,n){var r=Ce(),s=St(e),o={lane:s,action:n,eagerReducer:null,eagerState:null,next:null},i=t.pending;if(i===null?o.next=o:(o.next=i.next,i.next=o),t.pending=o,i=e.alternate,e===b||i!==null&&i===b)mr=As=!0;else{if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,a=i(l,n);if(o.eagerReducer=i,o.eagerState=a,Pe(a,l))return}catch{}finally{}xt(e,s,r)}}var Rs={readContext:Te,useCallback:we,useContext:we,useEffect:we,useImperativeHandle:we,useLayoutEffect:we,useMemo:we,useReducer:we,useRef:we,useState:we,useDebugValue:we,useDeferredValue:we,useTransition:we,useMutableSource:we,useOpaqueIdentifier:we,unstable_isNewReconciler:!1},vp={readContext:Te,useCallback:function(e,t){return It().memoizedState=[e,t===void 0?null:t],e},useContext:Te,useEffect:Cc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Qi(4,2,Ec.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Qi(4,2,e,t)},useMemo:function(e,t){var n=It();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=It();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},e=e.dispatch=Xi.bind(null,b,e),[r.memoizedState,e]},useRef:xc,useState:wr,useDebugValue:Yi,useDeferredValue:function(e){var t=wr(e),n=t[0],r=t[1];return Cc(function(){var s=Ne.transition;Ne.transition=1;try{r(e)}finally{Ne.transition=s}},[e]),n},useTransition:function(){var e=wr(!1),t=e[0];return e=yp.bind(null,e[1]),xc(e),[e,t]},useMutableSource:function(e,t,n){var r=It();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},wc(r,e,t,n)},useOpaqueIdentifier:function(){if(Ue){var e=!1,t=fp(function(){throw e||(e=!0,n("r:"+(ji++).toString(36))),Error($(355))}),n=wr(t)[1];return!(b.mode&2)&&(b.flags|=516,js(5,function(){n("r:"+(ji++).toString(36))},void 0,null)),t}return t="r:"+(ji++).toString(36),wr(t),t},unstable_isNewReconciler:!1},wp={readContext:Te,useCallback:Pc,useContext:Te,useEffect:Ls,useImperativeHandle:kc,useLayoutEffect:$c,useMemo:Tc,useReducer:yr,useRef:Os,useState:function(){return yr(Be)},useDebugValue:Yi,useDeferredValue:function(e){var t=yr(Be),n=t[0],r=t[1];return Ls(function(){var s=Ne.transition;Ne.transition=1;try{r(e)}finally{Ne.transition=s}},[e]),n},useTransition:function(){var e=yr(Be)[0];return[Os().current,e]},useMutableSource:Sc,useOpaqueIdentifier:function(){return yr(Be)[0]},unstable_isNewReconciler:!1},Sp={readContext:Te,useCallback:Pc,useContext:Te,useEffect:Ls,useImperativeHandle:kc,useLayoutEffect:$c,useMemo:Tc,useReducer:vr,useRef:Os,useState:function(){return vr(Be)},useDebugValue:Yi,useDeferredValue:function(e){var t=vr(Be),n=t[0],r=t[1];return Ls(function(){var s=Ne.transition;Ne.transition=1;try{r(e)}finally{Ne.transition=s}},[e]),n},useTransition:function(){var e=vr(Be)[0];return[Os().current,e]},useMutableSource:Sc,useOpaqueIdentifier:function(){return vr(Be)[0]},unstable_isNewReconciler:!1},xp=Nt.ReactCurrentOwner,Fe=!1;function Se(e,t,n,r){t.child=e===null?hc(t,null,n,r):Ps(t,e.child,n,r)}function Nc(e,t,n,r,s){n=n.render;var o=t.ref;return pn(t,s),r=Ji(e,t,n,r,o,s),e!==null&&!Fe?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~s,Ze(e,t,s)):(t.flags|=1,Se(e,t,r,s),t.child)}function Ac(e,t,n,r,s,o){if(e===null){var i=n.type;return typeof i=="function"&&!xl(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,jc(e,t,i,r,s,o)):(e=Hs(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}return i=e.child,!(s&o)&&(s=i.memoizedProps,n=n.compare,n=n!==null?n:rr,n(s,r)&&e.ref===t.ref)?Ze(e,t,o):(t.flags|=1,e=Et(i,r),e.ref=t.ref,e.return=t,t.child=e)}function jc(e,t,n,r,s,o){if(e!==null&&rr(e.memoizedProps,r)&&e.ref===t.ref)if(Fe=!1,(o&s)!==0)e.flags&16384&&(Fe=!0);else return t.lanes=e.lanes,Ze(e,t,o);return el(e,t,n,r,o)}function Zi(e,t,n){var r=t.pendingProps,s=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden"||r.mode==="unstable-defer-without-hiding")if(!(t.mode&4))t.memoizedState={baseLanes:0},Vs(t,n);else if(n&1073741824)t.memoizedState={baseLanes:0},Vs(t,o!==null?o.baseLanes:n);else return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},Vs(t,e),null;else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Vs(t,r);return Se(e,t,s,n),t.child}function Oc(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=128)}function el(e,t,n,r,s){var o=ve(n)?Rt:ae.current;return o=fn(t,o),pn(t,s),n=Ji(e,t,n,r,o,s),e!==null&&!Fe?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~s,Ze(e,t,s)):(t.flags|=1,Se(e,t,n,s),t.child)}function Lc(e,t,n,r,s){if(ve(n)){var o=!0;ms(t)}else o=!1;if(pn(t,s),t.stateNode===null)e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),cc(t,n,r),Bi(t,n,r,s),r=!0;else if(e===null){var i=t.stateNode,l=t.memoizedProps;i.props=l;var a=i.context,u=n.contextType;typeof u=="object"&&u!==null?u=Te(u):(u=ve(n)?Rt:ae.current,u=fn(t,u));var f=n.getDerivedStateFromProps,p=typeof f=="function"||typeof i.getSnapshotBeforeUpdate=="function";p||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(l!==r||a!==u)&&fc(t,i,r,u),gt=!1;var c=t.memoizedState;i.state=c,ur(t,r,i,s),a=t.memoizedState,l!==r||c!==a||ye.current||gt?(typeof f=="function"&&(Cs(t,n,f,r),a=t.memoizedState),(l=gt||uc(t,n,l,r,c,a,u))?(p||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4)):(typeof i.componentDidMount=="function"&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=a),i.props=r,i.state=a,i.context=u,r=l):(typeof i.componentDidMount=="function"&&(t.flags|=4),r=!1)}else{i=t.stateNode,oc(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:_e(t.type,l),i.props=u,p=t.pendingProps,c=i.context,a=n.contextType,typeof a=="object"&&a!==null?a=Te(a):(a=ve(n)?Rt:ae.current,a=fn(t,a));var v=n.getDerivedStateFromProps;(f=typeof v=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(l!==p||c!==a)&&fc(t,i,r,a),gt=!1,c=t.memoizedState,i.state=c,ur(t,r,i,s);var m=t.memoizedState;l!==p||c!==m||ye.current||gt?(typeof v=="function"&&(Cs(t,n,v,r),m=t.memoizedState),(u=gt||uc(t,n,u,r,c,m,a))?(f||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,m,a),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,m,a)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=256)):(typeof i.componentDidUpdate!="function"||l===e.memoizedProps&&c===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&c===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=m),i.props=r,i.state=m,i.context=a,r=u):(typeof i.componentDidUpdate!="function"||l===e.memoizedProps&&c===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&c===e.memoizedState||(t.flags|=256),r=!1)}return tl(e,t,n,r,o,s)}function tl(e,t,n,r,s,o){Oc(e,t);var i=(t.flags&64)!==0;if(!r&&!i)return s&&Qu(t,n,!1),Ze(e,t,o);r=t.stateNode,xp.current=t;var l=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=Ps(t,e.child,null,o),t.child=Ps(t,null,l,o)):Se(e,t,l,o),t.memoizedState=r.state,s&&Qu(t,n,!0),t.child}function Rc(e){var t=e.stateNode;t.pendingContext?qu(e,t.pendingContext,t.pendingContext!==t.context):t.context&&qu(e,t.context,!1),Vi(e,t.containerInfo)}var _s={dehydrated:null,retryLane:0};function _c(e,t,n){var r=t.pendingProps,s=W.current,o=!1,i;return(i=(t.flags&64)!==0)||(i=e!==null&&e.memoizedState===null?!1:(s&2)!==0),i?(o=!0,t.flags&=-65):e!==null&&e.memoizedState===null||r.fallback===void 0||r.unstable_avoidThisFallback===!0||(s|=1),H(W,s&1),e===null?(r.fallback!==void 0&&Wi(t),e=r.children,s=r.fallback,o?(e=Fc(t,e,s,n),t.child.memoizedState={baseLanes:n},t.memoizedState=_s,e):typeof r.unstable_expectedLoadTime=="number"?(e=Fc(t,e,s,n),t.child.memoizedState={baseLanes:n},t.memoizedState=_s,t.lanes=33554432,e):(n=Cl({mode:"visible",children:e},t.mode,n,null),n.return=t,t.child=n)):e.memoizedState!==null?o?(r=Ic(e,t,r.children,r.fallback,n),o=t.child,s=e.child.memoizedState,o.memoizedState=s===null?{baseLanes:n}:{baseLanes:s.baseLanes|n},o.childLanes=e.childLanes&~n,t.memoizedState=_s,r):(n=Dc(e,t,r.children,n),t.memoizedState=null,n):o?(r=Ic(e,t,r.children,r.fallback,n),o=t.child,s=e.child.memoizedState,o.memoizedState=s===null?{baseLanes:n}:{baseLanes:s.baseLanes|n},o.childLanes=e.childLanes&~n,t.memoizedState=_s,r):(n=Dc(e,t,r.children,n),t.memoizedState=null,n)}function Fc(e,t,n,r){var s=e.mode,o=e.child;return t={mode:"hidden",children:t},!(s&2)&&o!==null?(o.childLanes=0,o.pendingProps=t):o=Cl(t,s,0,null),n=Cn(n,s,r,null),o.return=e,n.return=e,o.sibling=n,e.child=o,n}function Dc(e,t,n,r){var s=e.child;return e=s.sibling,n=Et(s,{mode:"visible",children:n}),!(t.mode&2)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function Ic(e,t,n,r,s){var o=t.mode,i=e.child;e=i.sibling;var l={mode:"hidden",children:n};return!(o&2)&&t.child!==i?(n=t.child,n.childLanes=0,n.pendingProps=l,i=n.lastEffect,i!==null?(t.firstEffect=n.firstEffect,t.lastEffect=i,i.nextEffect=null):t.firstEffect=t.lastEffect=null):n=Et(i,l),e!==null?r=Et(e,r):(r=Cn(r,o,s,null),r.flags|=2),r.return=t,n.return=t,n.sibling=r,t.child=n,r}function zc(e,t){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),sc(e.return,t)}function nl(e,t,n,r,s,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:s,lastEffect:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=s,i.lastEffect=o)}function Mc(e,t,n){var r=t.pendingProps,s=r.revealOrder,o=r.tail;if(Se(e,t,r.children,n),r=W.current,r&2)r=r&1|2,t.flags|=64;else{if(e!==null&&e.flags&64)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&zc(e,n);else if(e.tag===19)zc(e,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(H(W,r),!(t.mode&2))t.memoizedState=null;else switch(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&Ts(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),nl(t,!1,s,n,o,t.lastEffect);break;case"backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&Ts(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}nl(t,!0,n,null,o,t.lastEffect);break;case"together":nl(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function Ze(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),xr|=t.lanes,n&t.childLanes){if(e!==null&&t.child!==e.child)throw Error($(153));if(t.child!==null){for(e=t.child,n=Et(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Et(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}return null}var Uc,rl,Bc,Vc;Uc=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},rl=function(){},Bc=function(e,t,n,r){var s=e.memoizedProps;if(s!==r){e=t.stateNode,Dt(Me.current);var o=null;switch(n){case"input":s=Bo(e,s),r=Bo(e,r),o=[];break;case"option":s=Wo(e,s),r=Wo(e,r),o=[];break;case"select":s=B({},s,{value:void 0}),r=B({},r,{value:void 0}),o=[];break;case"textarea":s=Ko(e,s),r=Ko(e,r),o=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=fs)}Jo(n,r);var i;n=null;for(u in s)if(!r.hasOwnProperty(u)&&s.hasOwnProperty(u)&&s[u]!=null)if(u==="style"){var l=s[u];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Fn.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in r){var a=r[u];if(l=s!=null?s[u]:void 0,r.hasOwnProperty(u)&&a!==l&&(a!=null||l!=null))if(u==="style")if(l){for(i in l)!l.hasOwnProperty(i)||a&&a.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in a)a.hasOwnProperty(i)&&l[i]!==a[i]&&(n||(n={}),n[i]=a[i])}else n||(o||(o=[]),o.push(u,n)),n=a;else u==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,l=l?l.__html:void 0,a!=null&&l!==a&&(o=o||[]).push(u,a)):u==="children"?typeof a!="string"&&typeof a!="number"||(o=o||[]).push(u,""+a):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Fn.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&M("scroll",e),o||l===a||(o=[])):typeof a=="object"&&a!==null&&a.$$typeof===Do?a.toString():(o=o||[]).push(u,a))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}},Vc=function(e,t,n,r){n!==r&&(t.flags|=4)};function Sr(e,t){if(!Ue)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Cp(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return ve(t.type)&&gs(),null;case 3:return gn(),U(ye),U(ae),bi(),r=t.stateNode,r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ns(t)?t.flags|=4:r.hydrate||(t.flags|=256)),rl(t),null;case 5:Hi(t);var s=Dt(hr.current);if(n=t.type,e!==null&&t.stateNode!=null)Bc(e,t,n,r,s),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(t.stateNode===null)throw Error($(166));return null}if(e=Dt(Me.current),Ns(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[dt]=t,r[hs]=o,n){case"dialog":M("cancel",r),M("close",r);break;case"iframe":case"object":case"embed":M("load",r);break;case"video":case"audio":for(e=0;e<or.length;e++)M(or[e],r);break;case"source":M("error",r);break;case"img":case"image":case"link":M("error",r),M("load",r);break;case"details":M("toggle",r);break;case"input":La(r,o),M("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},M("invalid",r);break;case"textarea":Fa(r,o),M("invalid",r)}Jo(n,o),e=null;for(var i in o)o.hasOwnProperty(i)&&(s=o[i],i==="children"?typeof s=="string"?r.textContent!==s&&(e=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(e=["children",""+s]):Fn.hasOwnProperty(i)&&s!=null&&i==="onScroll"&&M("scroll",r));switch(n){case"input":Jr(r),_a(r,o,!0);break;case"textarea":Jr(r),Ia(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=fs)}r=e,t.updateQueue=r,r!==null&&(t.flags|=4)}else{switch(i=s.nodeType===9?s:s.ownerDocument,e===bo.html&&(e=za(n)),e===bo.html?n==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[dt]=t,e[hs]=r,Uc(e,t,!1,!1),t.stateNode=e,i=Qo(n,r),n){case"dialog":M("cancel",e),M("close",e),s=r;break;case"iframe":case"object":case"embed":M("load",e),s=r;break;case"video":case"audio":for(s=0;s<or.length;s++)M(or[s],e);s=r;break;case"source":M("error",e),s=r;break;case"img":case"image":case"link":M("error",e),M("load",e),s=r;break;case"details":M("toggle",e),s=r;break;case"input":La(e,r),s=Bo(e,r),M("invalid",e);break;case"option":s=Wo(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=B({},r,{value:void 0}),M("invalid",e);break;case"textarea":Fa(e,r),s=Ko(e,r),M("invalid",e);break;default:s=r}Jo(n,s);var l=s;for(o in l)if(l.hasOwnProperty(o)){var a=l[o];o==="style"?Ba(e,a):o==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&Ma(e,a)):o==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&Bn(e,a):typeof a=="number"&&Bn(e,""+a):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Fn.hasOwnProperty(o)?a!=null&&o==="onScroll"&&M("scroll",e):a!=null&&jo(e,o,a,i))}switch(n){case"input":Jr(e),_a(e,r,!1);break;case"textarea":Jr(e),Ia(e);break;case"option":r.value!=null&&e.setAttribute("value",""+it(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Gt(e,!!r.multiple,o,!1):r.defaultValue!=null&&Gt(e,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=fs)}Vu(n,r)&&(t.flags|=4)}t.ref!==null&&(t.flags|=128)}return null;case 6:if(e&&t.stateNode!=null)Vc(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error($(166));n=Dt(hr.current),Dt(Me.current),Ns(t)?(r=t.stateNode,n=t.memoizedProps,r[dt]=t,r.nodeValue!==n&&(t.flags|=4)):(r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[dt]=t,t.stateNode=r)}return null;case 13:return U(W),r=t.memoizedState,t.flags&64?(t.lanes=n,t):(r=r!==null,n=!1,e===null?t.memoizedProps.fallback!==void 0&&Ns(t):n=e.memoizedState!==null,r&&!n&&t.mode&2&&(e===null&&t.memoizedProps.unstable_avoidThisFallback!==!0||W.current&1?oe===0&&(oe=3):((oe===0||oe===3)&&(oe=4),ge===null||!(xr&134217727)&&!(vn&134217727)||Sn(ge,fe))),(r||n)&&(t.flags|=4),null);case 4:return gn(),rl(t),e===null&&Iu(t.stateNode.containerInfo),null;case 10:return Mi(t),null;case 17:return ve(t.type)&&gs(),null;case 19:if(U(W),r=t.memoizedState,r===null)return null;if(o=(t.flags&64)!==0,i=r.rendering,i===null)if(o)Sr(r,!1);else{if(oe!==0||e!==null&&e.flags&64)for(e=t.child;e!==null;){if(i=Ts(e),i!==null){for(t.flags|=64,Sr(r,!1),o=i.updateQueue,o!==null&&(t.updateQueue=o,t.flags|=4),r.lastEffect===null&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=2,o.nextEffect=null,o.firstEffect=null,o.lastEffect=null,i=o.alternate,i===null?(o.childLanes=0,o.lanes=e,o.child=null,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=i.childLanes,o.lanes=i.lanes,o.child=i.child,o.memoizedProps=i.memoizedProps,o.memoizedState=i.memoizedState,o.updateQueue=i.updateQueue,o.type=i.type,e=i.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return H(W,W.current&1|2),t.child}e=e.sibling}r.tail!==null&&ue()>pl&&(t.flags|=64,o=!0,Sr(r,!1),t.lanes=33554432)}else{if(!o)if(e=Ts(i),e!==null){if(t.flags|=64,o=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Sr(r,!0),r.tail===null&&r.tailMode==="hidden"&&!i.alternate&&!Ue)return t=t.lastEffect=r.lastEffect,t!==null&&(t.nextEffect=null),null}else 2*ue()-r.renderingStartTime>pl&&n!==1073741824&&(t.flags|=64,o=!0,Sr(r,!1),t.lanes=33554432);r.isBackwards?(i.sibling=t.child,t.child=i):(n=r.last,n!==null?n.sibling=i:t.child=i,r.last=i)}return r.tail!==null?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=ue(),n.sibling=null,t=W.current,H(W,o?t&1|2:t&1),n):null;case 23:case 24:return Sl(),e!==null&&e.memoizedState!==null!=(t.memoizedState!==null)&&r.mode!=="unstable-defer-without-hiding"&&(t.flags|=4),null}throw Error($(156,t.tag))}function $p(e){switch(e.tag){case 1:ve(e.type)&&gs();var t=e.flags;return t&4096?(e.flags=t&-4097|64,e):null;case 3:if(gn(),U(ye),U(ae),bi(),t=e.flags,t&64)throw Error($(285));return e.flags=t&-4097|64,e;case 5:return Hi(e),null;case 13:return U(W),t=e.flags,t&4096?(e.flags=t&-4097|64,e):null;case 19:return U(W),null;case 4:return gn(),null;case 10:return Mi(e),null;case 23:case 24:return Sl(),null;default:return null}}function sl(e,t){try{var n="",r=t;do n+=rh(r),r=r.return;while(r);var s=n}catch(o){s=`
|
|
38
|
+
`+s[i].replace(" at new "," at ");while(1<=i&&0<=l);break}}}finally{Bo=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Un(e):""}function oh(e){switch(e.tag){case 5:return Un(e.type);case 16:return Un("Lazy");case 13:return Un("Suspense");case 19:return Un("SuspenseList");case 0:case 2:case 15:return e=qr(e.type,!1),e;case 11:return e=qr(e.type.render,!1),e;case 22:return e=qr(e.type._render,!1),e;case 1:return e=qr(e.type,!0),e;default:return""}}function Qt(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ot:return"Fragment";case At:return"Portal";case In:return"Profiler";case Lo:return"StrictMode";case zn:return"Suspense";case Kr:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _o:return(e.displayName||"Context")+".Consumer";case Ro:return(e._context.displayName||"Context")+".Provider";case Wr:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case br:return Qt(e.type);case Do:return Qt(e._render);case Fo:t=e._payload,e=e._init;try{return Qt(e(t))}catch{}}return null}function it(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function ja(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ih(e){var t=ja(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Jr(e){e._valueTracker||(e._valueTracker=ih(e))}function Oa(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ja(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Qr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Vo(e,t){var n=t.checked;return B({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function La(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=it(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Ra(e,t){t=t.checked,t!=null&&Oo(e,"checked",t,!1)}function Ho(e,t){Ra(e,t);var n=it(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Wo(e,t.type,n):t.hasOwnProperty("defaultValue")&&Wo(e,t.type,it(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function _a(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Wo(e,t,n){(t!=="number"||Qr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function lh(e){var t="";return Hr.Children.forEach(e,function(n){n!=null&&(t+=n)}),t}function Ko(e,t){return e=B({children:void 0},t),(t=lh(t.children))&&(e.children=t),e}function Gt(e,t,n,r){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&r&&(e[n].defaultSelected=!0)}else{for(n=""+it(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,r&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function bo(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error($(91));return B({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Fa(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error($(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error($(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:it(n)}}function Da(e,t){var n=it(t.value),r=it(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Ia(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}var qo={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function za(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Jo(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?za(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Gr,Ma=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,s){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,s)})}:e}(function(e,t){if(e.namespaceURI!==qo.svg||"innerHTML"in e)e.innerHTML=t;else{for(Gr=Gr||document.createElement("div"),Gr.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Gr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Bn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Vn={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ah=["Webkit","ms","Moz","O"];Object.keys(Vn).forEach(function(e){ah.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Vn[t]=Vn[e]})});function Ua(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Vn.hasOwnProperty(e)&&Vn[e]?(""+t).trim():t+"px"}function Ba(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=Ua(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}var uh=B({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Qo(e,t){if(t){if(uh[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error($(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error($(60));if(!(typeof t.dangerouslySetInnerHTML=="object"&&"__html"in t.dangerouslySetInnerHTML))throw Error($(61))}if(t.style!=null&&typeof t.style!="object")throw Error($(62))}}function Go(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Xo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Yo=null,Xt=null,Yt=null;function Va(e){if(e=lr(e)){if(typeof Yo!="function")throw Error($(280));var t=e.stateNode;t&&(t=ps(t),Yo(e.stateNode,e.type,t))}}function Ha(e){Xt?Yt?Yt.push(e):Yt=[e]:Xt=e}function Wa(){if(Xt){var e=Xt,t=Yt;if(Yt=Xt=null,Va(e),t)for(e=0;e<t.length;e++)Va(t[e])}}function Zo(e,t){return e(t)}function Ka(e,t,n,r,s){return e(t,n,r,s)}function ei(){}var ba=Zo,jt=!1,ti=!1;function ni(){(Xt!==null||Yt!==null)&&(ei(),Wa())}function ch(e,t,n){if(ti)return e(t,n);ti=!0;try{return ba(e,t,n)}finally{ti=!1,ni()}}function Hn(e,t){var n=e.stateNode;if(n===null)return null;var r=ps(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error($(231,t,typeof n));return n}var ri=!1;if(Ge)try{var Wn={};Object.defineProperty(Wn,"passive",{get:function(){ri=!0}}),window.addEventListener("test",Wn,Wn),window.removeEventListener("test",Wn,Wn)}catch{ri=!1}function fh(e,t,n,r,s,o,i,l,a){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(f){this.onError(f)}}var Kn=!1,Xr=null,Yr=!1,si=null,dh={onError:function(e){Kn=!0,Xr=e}};function hh(e,t,n,r,s,o,i,l,a){Kn=!1,Xr=null,fh.apply(dh,arguments)}function ph(e,t,n,r,s,o,i,l,a){if(hh.apply(this,arguments),Kn){if(Kn){var u=Xr;Kn=!1,Xr=null}else throw Error($(198));Yr||(Yr=!0,si=u)}}function Ot(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&1026&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function qa(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Ja(e){if(Ot(e)!==e)throw Error($(188))}function gh(e){var t=e.alternate;if(!t){if(t=Ot(e),t===null)throw Error($(188));return t!==e?null:e}for(var n=e,r=t;;){var s=n.return;if(s===null)break;var o=s.alternate;if(o===null){if(r=s.return,r!==null){n=r;continue}break}if(s.child===o.child){for(o=s.child;o;){if(o===n)return Ja(s),e;if(o===r)return Ja(s),t;o=o.sibling}throw Error($(188))}if(n.return!==r.return)n=s,r=o;else{for(var i=!1,l=s.child;l;){if(l===n){i=!0,n=s,r=o;break}if(l===r){i=!0,r=s,n=o;break}l=l.sibling}if(!i){for(l=o.child;l;){if(l===n){i=!0,n=o,r=s;break}if(l===r){i=!0,r=o,n=s;break}l=l.sibling}if(!i)throw Error($(189))}}if(n.alternate!==r)throw Error($(190))}if(n.tag!==3)throw Error($(188));return n.stateNode.current===n?e:t}function Qa(e){if(e=gh(e),!e)return null;for(var t=e;;){if(t.tag===5||t.tag===6)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function Ga(e,t){for(var n=e.alternate;t!==null;){if(t===e||t===n)return!0;t=t.return}return!1}var Xa,oi,Ya,Za,ii=!1,Ie=[],lt=null,at=null,ut=null,bn=new Map,qn=new Map,Jn=[],eu="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function li(e,t,n,r,s){return{blockedOn:e,domEventName:t,eventSystemFlags:n|16,nativeEvent:s,targetContainers:[r]}}function tu(e,t){switch(e){case"focusin":case"focusout":lt=null;break;case"dragenter":case"dragleave":at=null;break;case"mouseover":case"mouseout":ut=null;break;case"pointerover":case"pointerout":bn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":qn.delete(t.pointerId)}}function Qn(e,t,n,r,s,o){return e===null||e.nativeEvent!==o?(e=li(t,n,r,s,o),t!==null&&(t=lr(t),t!==null&&oi(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function mh(e,t,n,r,s){switch(t){case"focusin":return lt=Qn(lt,e,t,n,r,s),!0;case"dragenter":return at=Qn(at,e,t,n,r,s),!0;case"mouseover":return ut=Qn(ut,e,t,n,r,s),!0;case"pointerover":var o=s.pointerId;return bn.set(o,Qn(bn.get(o)||null,e,t,n,r,s)),!0;case"gotpointercapture":return o=s.pointerId,qn.set(o,Qn(qn.get(o)||null,e,t,n,r,s)),!0}return!1}function yh(e){var t=Lt(e.target);if(t!==null){var n=Ot(t);if(n!==null){if(t=n.tag,t===13){if(t=qa(n),t!==null){e.blockedOn=t,Za(e.lanePriority,function(){ee.unstable_runWithPriority(e.priority,function(){Ya(n)})});return}}else if(t===3&&n.stateNode.hydrate){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Zr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=hi(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n!==null)return t=lr(n),t!==null&&oi(t),e.blockedOn=n,!1;t.shift()}return!0}function nu(e,t,n){Zr(e)&&n.delete(t)}function vh(){for(ii=!1;0<Ie.length;){var e=Ie[0];if(e.blockedOn!==null){e=lr(e.blockedOn),e!==null&&Xa(e);break}for(var t=e.targetContainers;0<t.length;){var n=hi(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n!==null){e.blockedOn=n;break}t.shift()}e.blockedOn===null&&Ie.shift()}lt!==null&&Zr(lt)&&(lt=null),at!==null&&Zr(at)&&(at=null),ut!==null&&Zr(ut)&&(ut=null),bn.forEach(nu),qn.forEach(nu)}function Gn(e,t){e.blockedOn===t&&(e.blockedOn=null,ii||(ii=!0,ee.unstable_scheduleCallback(ee.unstable_NormalPriority,vh)))}function ru(e){function t(s){return Gn(s,e)}if(0<Ie.length){Gn(Ie[0],e);for(var n=1;n<Ie.length;n++){var r=Ie[n];r.blockedOn===e&&(r.blockedOn=null)}}for(lt!==null&&Gn(lt,e),at!==null&&Gn(at,e),ut!==null&&Gn(ut,e),bn.forEach(t),qn.forEach(t),n=0;n<Jn.length;n++)r=Jn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Jn.length&&(n=Jn[0],n.blockedOn===null);)yh(n),n.blockedOn===null&&Jn.shift()}function es(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Zt={animationend:es("Animation","AnimationEnd"),animationiteration:es("Animation","AnimationIteration"),animationstart:es("Animation","AnimationStart"),transitionend:es("Transition","TransitionEnd")},ai={},su={};Ge&&(su=document.createElement("div").style,"AnimationEvent"in window||(delete Zt.animationend.animation,delete Zt.animationiteration.animation,delete Zt.animationstart.animation),"TransitionEvent"in window||delete Zt.transitionend.transition);function ts(e){if(ai[e])return ai[e];if(!Zt[e])return e;var t=Zt[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in su)return ai[e]=t[n];return e}var ou=ts("animationend"),iu=ts("animationiteration"),lu=ts("animationstart"),au=ts("transitionend"),uu=new Map,ui=new Map,wh=["abort","abort",ou,"animationEnd",iu,"animationIteration",lu,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",au,"transitionEnd","waiting","waiting"];function ci(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],s=e[n+1];s="on"+(s[0].toUpperCase()+s.slice(1)),ui.set(r,t),uu.set(r,s),Tt(s,[r])}}var Sh=ee.unstable_now;Sh();var z=8;function en(e){if(1&e)return z=15,1;if(2&e)return z=14,2;if(4&e)return z=13,4;var t=24&e;return t!==0?(z=12,t):e&32?(z=11,32):(t=192&e,t!==0?(z=10,t):e&256?(z=9,256):(t=3584&e,t!==0?(z=8,t):e&4096?(z=7,4096):(t=4186112&e,t!==0?(z=6,t):(t=62914560&e,t!==0?(z=5,t):e&67108864?(z=4,67108864):e&134217728?(z=3,134217728):(t=805306368&e,t!==0?(z=2,t):1073741824&e?(z=1,1073741824):(z=8,e))))))}function xh(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}function Ch(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error($(358,e))}}function Xn(e,t){var n=e.pendingLanes;if(n===0)return z=0;var r=0,s=0,o=e.expiredLanes,i=e.suspendedLanes,l=e.pingedLanes;if(o!==0)r=o,s=z=15;else if(o=n&134217727,o!==0){var a=o&~i;a!==0?(r=en(a),s=z):(l&=o,l!==0&&(r=en(l),s=z))}else o=n&~i,o!==0?(r=en(o),s=z):l!==0&&(r=en(l),s=z);if(r===0)return 0;if(r=31-ct(r),r=n&((0>r?0:1<<r)<<1)-1,t!==0&&t!==r&&!(t&i)){if(en(t),s<=z)return t;z=s}if(t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-ct(t),s=1<<n,r|=e[n],t&=~s;return r}function cu(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function ns(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return e=tn(24&~t),e===0?ns(10,t):e;case 10:return e=tn(192&~t),e===0?ns(8,t):e;case 8:return e=tn(3584&~t),e===0&&(e=tn(4186112&~t),e===0&&(e=512)),e;case 2:return t=tn(805306368&~t),t===0&&(t=268435456),t}throw Error($(358,e))}function tn(e){return e&-e}function fi(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function rs(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,e=e.eventTimes,t=31-ct(t),e[t]=n}var ct=Math.clz32?Math.clz32:kh,$h=Math.log,Eh=Math.LN2;function kh(e){return e===0?32:31-($h(e)/Eh|0)|0}var Ph=ee.unstable_UserBlockingPriority,Th=ee.unstable_runWithPriority,ss=!0;function Nh(e,t,n,r){jt||ei();var s=di,o=jt;jt=!0;try{Ka(s,e,t,n,r)}finally{(jt=o)||ni()}}function Ah(e,t,n,r){Th(Ph,di.bind(null,e,t,n,r))}function di(e,t,n,r){if(ss){var s;if((s=(t&4)===0)&&0<Ie.length&&-1<eu.indexOf(e))e=li(null,e,t,n,r),Ie.push(e);else{var o=hi(e,t,n,r);if(o===null)s&&tu(e,r);else{if(s){if(-1<eu.indexOf(e)){e=li(o,e,t,n,r),Ie.push(e);return}if(mh(o,e,t,n,r))return;tu(e,r)}Uu(e,t,r,null,n)}}}}function hi(e,t,n,r){var s=Xo(r);if(s=Lt(s),s!==null){var o=Ot(s);if(o===null)s=null;else{var i=o.tag;if(i===13){if(s=qa(o),s!==null)return s;s=null}else if(i===3){if(o.stateNode.hydrate)return o.tag===3?o.stateNode.containerInfo:null;s=null}else o!==s&&(s=null)}}return Uu(e,t,r,s,n),null}var ft=null,pi=null,os=null;function fu(){if(os)return os;var e,t=pi,n=t.length,r,s="value"in ft?ft.value:ft.textContent,o=s.length;for(e=0;e<n&&t[e]===s[e];e++);var i=n-e;for(r=1;r<=i&&t[n-r]===s[o-r];r++);return os=s.slice(e,1<r?1-r:void 0)}function is(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function ls(){return!0}function du(){return!1}function xe(e){function t(n,r,s,o,i){this._reactName=n,this._targetInst=s,this.type=r,this.nativeEvent=o,this.target=i,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(o):o[l]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?ls:du,this.isPropagationStopped=du,this}return B(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=ls)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ls)},persist:function(){},isPersistent:ls}),t}var nn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},gi=xe(nn),Yn=B({},nn,{view:0,detail:0}),jh=xe(Yn),mi,yi,Zn,as=B({},Yn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:wi,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Zn&&(Zn&&e.type==="mousemove"?(mi=e.screenX-Zn.screenX,yi=e.screenY-Zn.screenY):yi=mi=0,Zn=e),mi)},movementY:function(e){return"movementY"in e?e.movementY:yi}}),hu=xe(as),Oh=B({},as,{dataTransfer:0}),Lh=xe(Oh),Rh=B({},Yn,{relatedTarget:0}),vi=xe(Rh),_h=B({},nn,{animationName:0,elapsedTime:0,pseudoElement:0}),Fh=xe(_h),Dh=B({},nn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Ih=xe(Dh),zh=B({},nn,{data:0}),pu=xe(zh),Mh={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Uh={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Bh={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Vh(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Bh[e])?!!t[e]:!1}function wi(){return Vh}var Hh=B({},Yn,{key:function(e){if(e.key){var t=Mh[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=is(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Uh[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:wi,charCode:function(e){return e.type==="keypress"?is(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?is(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Wh=xe(Hh),Kh=B({},as,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),gu=xe(Kh),bh=B({},Yn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:wi}),qh=xe(bh),Jh=B({},nn,{propertyName:0,elapsedTime:0,pseudoElement:0}),Qh=xe(Jh),Gh=B({},as,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Xh=xe(Gh),Yh=[9,13,27,32],Si=Ge&&"CompositionEvent"in window,er=null;Ge&&"documentMode"in document&&(er=document.documentMode);var Zh=Ge&&"TextEvent"in window&&!er,mu=Ge&&(!Si||er&&8<er&&11>=er),yu=String.fromCharCode(32),vu=!1;function wu(e,t){switch(e){case"keyup":return Yh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Su(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var rn=!1;function ep(e,t){switch(e){case"compositionend":return Su(t);case"keypress":return t.which!==32?null:(vu=!0,yu);case"textInput":return e=t.data,e===yu&&vu?null:e;default:return null}}function tp(e,t){if(rn)return e==="compositionend"||!Si&&wu(e,t)?(e=fu(),os=pi=ft=null,rn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return mu&&t.locale!=="ko"?null:t.data;default:return null}}var np={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function xu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!np[e.type]:t==="textarea"}function Cu(e,t,n,r){Ha(r),t=cs(t,"onChange"),0<t.length&&(n=new gi("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var tr=null,nr=null;function rp(e){Fu(e,0)}function us(e){var t=un(e);if(Oa(t))return e}function sp(e,t){if(e==="change")return t}var $u=!1;if(Ge){var xi;if(Ge){var Ci="oninput"in document;if(!Ci){var Eu=document.createElement("div");Eu.setAttribute("oninput","return;"),Ci=typeof Eu.oninput=="function"}xi=Ci}else xi=!1;$u=xi&&(!document.documentMode||9<document.documentMode)}function ku(){tr&&(tr.detachEvent("onpropertychange",Pu),nr=tr=null)}function Pu(e){if(e.propertyName==="value"&&us(nr)){var t=[];if(Cu(t,nr,e,Xo(e)),e=rp,jt)e(t);else{jt=!0;try{Zo(e,t)}finally{jt=!1,ni()}}}}function op(e,t,n){e==="focusin"?(ku(),tr=t,nr=n,tr.attachEvent("onpropertychange",Pu)):e==="focusout"&&ku()}function ip(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return us(nr)}function lp(e,t){if(e==="click")return us(t)}function ap(e,t){if(e==="input"||e==="change")return us(t)}function up(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Pe=typeof Object.is=="function"?Object.is:up,cp=Object.prototype.hasOwnProperty;function rr(e,t){if(Pe(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!cp.call(t,n[r])||!Pe(e[n[r]],t[n[r]]))return!1;return!0}function Tu(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Nu(e,t){var n=Tu(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Tu(n)}}function Au(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Au(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ju(){for(var e=window,t=Qr();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Qr(e.document)}return t}function $i(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var fp=Ge&&"documentMode"in document&&11>=document.documentMode,sn=null,Ei=null,sr=null,ki=!1;function Ou(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ki||sn==null||sn!==Qr(r)||(r=sn,"selectionStart"in r&&$i(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),sr&&rr(sr,r)||(sr=r,r=cs(Ei,"onSelect"),0<r.length&&(t=new gi("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=sn)))}ci("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),ci("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),ci(wh,2);for(var Lu="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Pi=0;Pi<Lu.length;Pi++)ui.set(Lu[Pi],0);Jt("onMouseEnter",["mouseout","mouseover"]),Jt("onMouseLeave",["mouseout","mouseover"]),Jt("onPointerEnter",["pointerout","pointerover"]),Jt("onPointerLeave",["pointerout","pointerover"]),Tt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Tt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Tt("onBeforeInput",["compositionend","keypress","textInput","paste"]),Tt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Tt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Tt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var or="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Ru=new Set("cancel close invalid load scroll toggle".split(" ").concat(or));function _u(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,ph(r,t,void 0,e),e.currentTarget=null}function Fu(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],s=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var i=r.length-1;0<=i;i--){var l=r[i],a=l.instance,u=l.currentTarget;if(l=l.listener,a!==o&&s.isPropagationStopped())break e;_u(s,l,u),o=a}else for(i=0;i<r.length;i++){if(l=r[i],a=l.instance,u=l.currentTarget,l=l.listener,a!==o&&s.isPropagationStopped())break e;_u(s,l,u),o=a}}}if(Yr)throw e=si,Yr=!1,si=null,e}function M(e,t){var n=bu(t),r=e+"__bubble";n.has(r)||(Mu(t,e,2,!1),n.add(r))}var Du="_reactListening"+Math.random().toString(36).slice(2);function Iu(e){e[Du]||(e[Du]=!0,Ea.forEach(function(t){Ru.has(t)||zu(t,!1,e,null),zu(t,!0,e,null)}))}function zu(e,t,n,r){var s=4<arguments.length&&arguments[4]!==void 0?arguments[4]:0,o=n;if(e==="selectionchange"&&n.nodeType!==9&&(o=n.ownerDocument),r!==null&&!t&&Ru.has(e)){if(e!=="scroll")return;s|=2,o=r}var i=bu(o),l=e+"__"+(t?"capture":"bubble");i.has(l)||(t&&(s|=4),Mu(o,e,s,t),i.add(l))}function Mu(e,t,n,r){var s=ui.get(t);switch(s===void 0?2:s){case 0:s=Nh;break;case 1:s=Ah;break;default:s=di}n=s.bind(null,t,n,e),s=void 0,!ri||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),r?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}function Uu(e,t,n,r,s){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var i=r.tag;if(i===3||i===4){var l=r.stateNode.containerInfo;if(l===s||l.nodeType===8&&l.parentNode===s)break;if(i===4)for(i=r.return;i!==null;){var a=i.tag;if((a===3||a===4)&&(a=i.stateNode.containerInfo,a===s||a.nodeType===8&&a.parentNode===s))return;i=i.return}for(;l!==null;){if(i=Lt(l),i===null)return;if(a=i.tag,a===5||a===6){r=o=i;continue e}l=l.parentNode}}r=r.return}ch(function(){var u=o,f=Xo(n),p=[];e:{var c=uu.get(e);if(c!==void 0){var v=gi,m=e;switch(e){case"keypress":if(is(n)===0)break e;case"keydown":case"keyup":v=Wh;break;case"focusin":m="focus",v=vi;break;case"focusout":m="blur",v=vi;break;case"beforeblur":case"afterblur":v=vi;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":v=hu;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":v=Lh;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":v=qh;break;case ou:case iu:case lu:v=Fh;break;case au:v=Qh;break;case"scroll":v=jh;break;case"wheel":v=Xh;break;case"copy":case"cut":case"paste":v=Ih;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":v=gu}var y=(t&4)!==0,h=!y&&e==="scroll",d=y?c!==null?c+"Capture":null:c;y=[];for(var g=u,w;g!==null;){w=g;var S=w.stateNode;if(w.tag===5&&S!==null&&(w=S,d!==null&&(S=Hn(g,d),S!=null&&y.push(ir(g,S,w)))),h)break;g=g.return}0<y.length&&(c=new v(c,m,null,n,f),p.push({event:c,listeners:y}))}}if(!(t&7)){e:{if(c=e==="mouseover"||e==="pointerover",v=e==="mouseout"||e==="pointerout",c&&!(t&16)&&(m=n.relatedTarget||n.fromElement)&&(Lt(m)||m[an]))break e;if((v||c)&&(c=f.window===f?f:(c=f.ownerDocument)?c.defaultView||c.parentWindow:window,v?(m=n.relatedTarget||n.toElement,v=u,m=m?Lt(m):null,m!==null&&(h=Ot(m),m!==h||m.tag!==5&&m.tag!==6)&&(m=null)):(v=null,m=u),v!==m)){if(y=hu,S="onMouseLeave",d="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(y=gu,S="onPointerLeave",d="onPointerEnter",g="pointer"),h=v==null?c:un(v),w=m==null?c:un(m),c=new y(S,g+"leave",v,n,f),c.target=h,c.relatedTarget=w,S=null,Lt(f)===u&&(y=new y(d,g+"enter",m,n,f),y.target=w,y.relatedTarget=h,S=y),h=S,v&&m)t:{for(y=v,d=m,g=0,w=y;w;w=on(w))g++;for(w=0,S=d;S;S=on(S))w++;for(;0<g-w;)y=on(y),g--;for(;0<w-g;)d=on(d),w--;for(;g--;){if(y===d||d!==null&&y===d.alternate)break t;y=on(y),d=on(d)}y=null}else y=null;v!==null&&Bu(p,c,v,y,!1),m!==null&&h!==null&&Bu(p,h,m,y,!0)}}e:{if(c=u?un(u):window,v=c.nodeName&&c.nodeName.toLowerCase(),v==="select"||v==="input"&&c.type==="file")var T=sp;else if(xu(c))if($u)T=ap;else{T=ip;var C=op}else(v=c.nodeName)&&v.toLowerCase()==="input"&&(c.type==="checkbox"||c.type==="radio")&&(T=lp);if(T&&(T=T(e,u))){Cu(p,T,n,f);break e}C&&C(e,c,u),e==="focusout"&&(C=c._wrapperState)&&C.controlled&&c.type==="number"&&Wo(c,"number",c.value)}switch(C=u?un(u):window,e){case"focusin":(xu(C)||C.contentEditable==="true")&&(sn=C,Ei=u,sr=null);break;case"focusout":sr=Ei=sn=null;break;case"mousedown":ki=!0;break;case"contextmenu":case"mouseup":case"dragend":ki=!1,Ou(p,n,f);break;case"selectionchange":if(fp)break;case"keydown":case"keyup":Ou(p,n,f)}var P;if(Si)e:{switch(e){case"compositionstart":var j="onCompositionStart";break e;case"compositionend":j="onCompositionEnd";break e;case"compositionupdate":j="onCompositionUpdate";break e}j=void 0}else rn?wu(e,n)&&(j="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(j="onCompositionStart");j&&(mu&&n.locale!=="ko"&&(rn||j!=="onCompositionStart"?j==="onCompositionEnd"&&rn&&(P=fu()):(ft=f,pi="value"in ft?ft.value:ft.textContent,rn=!0)),C=cs(u,j),0<C.length&&(j=new pu(j,e,null,n,f),p.push({event:j,listeners:C}),P?j.data=P:(P=Su(n),P!==null&&(j.data=P)))),(P=Zh?ep(e,n):tp(e,n))&&(u=cs(u,"onBeforeInput"),0<u.length&&(f=new pu("onBeforeInput","beforeinput",null,n,f),p.push({event:f,listeners:u}),f.data=P))}Fu(p,t)})}function ir(e,t,n){return{instance:e,listener:t,currentTarget:n}}function cs(e,t){for(var n=t+"Capture",r=[];e!==null;){var s=e,o=s.stateNode;s.tag===5&&o!==null&&(s=o,o=Hn(e,n),o!=null&&r.unshift(ir(e,o,s)),o=Hn(e,t),o!=null&&r.push(ir(e,o,s))),e=e.return}return r}function on(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Bu(e,t,n,r,s){for(var o=t._reactName,i=[];n!==null&&n!==r;){var l=n,a=l.alternate,u=l.stateNode;if(a!==null&&a===r)break;l.tag===5&&u!==null&&(l=u,s?(a=Hn(n,o),a!=null&&i.unshift(ir(n,a,l))):s||(a=Hn(n,o),a!=null&&i.push(ir(n,a,l)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}function fs(){}var Ti=null,Ni=null;function Vu(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Ai(e,t){return e==="textarea"||e==="option"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Hu=typeof setTimeout=="function"?setTimeout:void 0,dp=typeof clearTimeout=="function"?clearTimeout:void 0;function ji(e){e.nodeType===1?e.textContent="":e.nodeType===9&&(e=e.body,e!=null&&(e.textContent=""))}function ln(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break}return e}function Wu(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Oi=0;function hp(e){return{$$typeof:Io,toString:e,valueOf:e}}var ds=Math.random().toString(36).slice(2),dt="__reactFiber$"+ds,hs="__reactProps$"+ds,an="__reactContainer$"+ds,Ku="__reactEvents$"+ds;function Lt(e){var t=e[dt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[an]||n[dt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Wu(e);e!==null;){if(n=e[dt])return n;e=Wu(e)}return t}e=n,n=e.parentNode}return null}function lr(e){return e=e[dt]||e[an],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function un(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error($(33))}function ps(e){return e[hs]||null}function bu(e){var t=e[Ku];return t===void 0&&(t=e[Ku]=new Set),t}var Li=[],cn=-1;function ht(e){return{current:e}}function U(e){0>cn||(e.current=Li[cn],Li[cn]=null,cn--)}function H(e,t){cn++,Li[cn]=e.current,e.current=t}var pt={},ae=ht(pt),ye=ht(!1),Rt=pt;function fn(e,t){var n=e.type.contextTypes;if(!n)return pt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var s={},o;for(o in n)s[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function ve(e){return e=e.childContextTypes,e!=null}function gs(){U(ye),U(ae)}function qu(e,t,n){if(ae.current!==pt)throw Error($(168));H(ae,t),H(ye,n)}function Ju(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var s in r)if(!(s in e))throw Error($(108,Qt(t)||"Unknown",s));return B({},n,r)}function ms(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||pt,Rt=ae.current,H(ae,e),H(ye,ye.current),!0}function Qu(e,t,n){var r=e.stateNode;if(!r)throw Error($(169));n?(e=Ju(e,t,Rt),r.__reactInternalMemoizedMergedChildContext=e,U(ye),U(ae),H(ae,e)):U(ye),H(ye,n)}var Ri=null,_t=null,pp=ee.unstable_runWithPriority,_i=ee.unstable_scheduleCallback,Fi=ee.unstable_cancelCallback,gp=ee.unstable_shouldYield,Gu=ee.unstable_requestPaint,Di=ee.unstable_now,mp=ee.unstable_getCurrentPriorityLevel,ys=ee.unstable_ImmediatePriority,Xu=ee.unstable_UserBlockingPriority,Yu=ee.unstable_NormalPriority,Zu=ee.unstable_LowPriority,ec=ee.unstable_IdlePriority,Ii={},yp=Gu!==void 0?Gu:function(){},Xe=null,vs=null,zi=!1,tc=Di(),ue=1e4>tc?Di:function(){return Di()-tc};function dn(){switch(mp()){case ys:return 99;case Xu:return 98;case Yu:return 97;case Zu:return 96;case ec:return 95;default:throw Error($(332))}}function nc(e){switch(e){case 99:return ys;case 98:return Xu;case 97:return Yu;case 96:return Zu;case 95:return ec;default:throw Error($(332))}}function Ft(e,t){return e=nc(e),pp(e,t)}function ar(e,t,n){return e=nc(e),_i(e,t,n)}function ze(){if(vs!==null){var e=vs;vs=null,Fi(e)}rc()}function rc(){if(!zi&&Xe!==null){zi=!0;var e=0;try{var t=Xe;Ft(99,function(){for(;e<t.length;e++){var n=t[e];do n=n(!0);while(n!==null)}}),Xe=null}catch(n){throw Xe!==null&&(Xe=Xe.slice(e+1)),_i(ys,ze),n}finally{zi=!1}}}var vp=Nt.ReactCurrentBatchConfig;function _e(e,t){if(e&&e.defaultProps){t=B({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var ws=ht(null),Ss=null,hn=null,xs=null;function Mi(){xs=hn=Ss=null}function Ui(e){var t=ws.current;U(ws),e.type._context._currentValue=t}function sc(e,t){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)===t){if(n===null||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,n!==null&&(n.childLanes|=t);e=e.return}}function pn(e,t){Ss=e,xs=hn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Fe=!0),e.firstContext=null)}function Te(e,t){if(xs!==e&&t!==!1&&t!==0)if((typeof t!="number"||t===1073741823)&&(xs=e,t=1073741823),t={context:e,observedBits:t,next:null},hn===null){if(Ss===null)throw Error($(308));hn=t,Ss.dependencies={lanes:0,firstContext:t,responders:null}}else hn=hn.next=t;return e._currentValue}var gt=!1;function Bi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function oc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function mt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function yt(e,t){if(e=e.updateQueue,e!==null){e=e.shared;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function ic(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var s=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?s=o=i:o=o.next=i,n=n.next}while(n!==null);o===null?s=o=t:o=o.next=t}else s=o=t;n={baseState:r.baseState,firstBaseUpdate:s,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ur(e,t,n,r){var s=e.updateQueue;gt=!1;var o=s.firstBaseUpdate,i=s.lastBaseUpdate,l=s.shared.pending;if(l!==null){s.shared.pending=null;var a=l,u=a.next;a.next=null,i===null?o=u:i.next=u,i=a;var f=e.alternate;if(f!==null){f=f.updateQueue;var p=f.lastBaseUpdate;p!==i&&(p===null?f.firstBaseUpdate=u:p.next=u,f.lastBaseUpdate=a)}}if(o!==null){p=s.baseState,i=0,f=u=a=null;do{l=o.lane;var c=o.eventTime;if((r&l)===l){f!==null&&(f=f.next={eventTime:c,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var v=e,m=o;switch(l=t,c=n,m.tag){case 1:if(v=m.payload,typeof v=="function"){p=v.call(c,p,l);break e}p=v;break e;case 3:v.flags=v.flags&-4097|64;case 0:if(v=m.payload,l=typeof v=="function"?v.call(c,p,l):v,l==null)break e;p=B({},p,l);break e;case 2:gt=!0}}o.callback!==null&&(e.flags|=32,l=s.effects,l===null?s.effects=[o]:l.push(o))}else c={eventTime:c,lane:l,tag:o.tag,payload:o.payload,callback:o.callback,next:null},f===null?(u=f=c,a=p):f=f.next=c,i|=l;if(o=o.next,o===null){if(l=s.shared.pending,l===null)break;o=l.next,l.next=null,s.lastBaseUpdate=l,s.shared.pending=null}}while(1);f===null&&(a=p),s.baseState=a,s.firstBaseUpdate=u,s.lastBaseUpdate=f,xr|=i,e.lanes=i,e.memoizedState=p}}function lc(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],s=r.callback;if(s!==null){if(r.callback=null,r=n,typeof s!="function")throw Error($(191,s));s.call(r)}}}var ac=new Hr.Component().refs;function Cs(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:B({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var $s={isMounted:function(e){return(e=e._reactInternals)?Ot(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ce(),s=St(e),o=mt(r,s);o.payload=t,n!=null&&(o.callback=n),yt(e,o),xt(e,s,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ce(),s=St(e),o=mt(r,s);o.tag=1,o.payload=t,n!=null&&(o.callback=n),yt(e,o),xt(e,s,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ce(),r=St(e),s=mt(n,r);s.tag=2,t!=null&&(s.callback=t),yt(e,s),xt(e,r,n)}};function uc(e,t,n,r,s,o,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,i):t.prototype&&t.prototype.isPureReactComponent?!rr(n,r)||!rr(s,o):!0}function cc(e,t,n){var r=!1,s=pt,o=t.contextType;return typeof o=="object"&&o!==null?o=Te(o):(s=ve(t)?Rt:ae.current,r=t.contextTypes,o=(r=r!=null)?fn(e,s):pt),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=$s,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=o),t}function fc(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&$s.enqueueReplaceState(t,t.state,null)}function Vi(e,t,n,r){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs=ac,Bi(e);var o=t.contextType;typeof o=="object"&&o!==null?s.context=Te(o):(o=ve(t)?Rt:ae.current,s.context=fn(e,o)),ur(e,n,s,r),s.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(Cs(e,t,o,n),s.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(t=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),t!==s.state&&$s.enqueueReplaceState(s,s.state,null),ur(e,n,s,r),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4)}var Es=Array.isArray;function cr(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error($(309));var r=n.stateNode}if(!r)throw Error($(147,e));var s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(o){var i=r.refs;i===ac&&(i=r.refs={}),o===null?delete i[s]:i[s]=o},t._stringRef=s,t)}if(typeof e!="string")throw Error($(284));if(!n._owner)throw Error($(290,e))}return e}function ks(e,t){if(e.type!=="textarea")throw Error($(31,Object.prototype.toString.call(t)==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function dc(e){function t(h,d){if(e){var g=h.lastEffect;g!==null?(g.nextEffect=d,h.lastEffect=d):h.firstEffect=h.lastEffect=d,d.nextEffect=null,d.flags=8}}function n(h,d){if(!e)return null;for(;d!==null;)t(h,d),d=d.sibling;return null}function r(h,d){for(h=new Map;d!==null;)d.key!==null?h.set(d.key,d):h.set(d.index,d),d=d.sibling;return h}function s(h,d){return h=Et(h,d),h.index=0,h.sibling=null,h}function o(h,d,g){return h.index=g,e?(g=h.alternate,g!==null?(g=g.index,g<d?(h.flags=2,d):g):(h.flags=2,d)):d}function i(h){return e&&h.alternate===null&&(h.flags=2),h}function l(h,d,g,w){return d===null||d.tag!==6?(d=El(g,h.mode,w),d.return=h,d):(d=s(d,g),d.return=h,d)}function a(h,d,g,w){return d!==null&&d.elementType===g.type?(w=s(d,g.props),w.ref=cr(h,d,g),w.return=h,w):(w=Hs(g.type,g.key,g.props,null,h.mode,w),w.ref=cr(h,d,g),w.return=h,w)}function u(h,d,g,w){return d===null||d.tag!==4||d.stateNode.containerInfo!==g.containerInfo||d.stateNode.implementation!==g.implementation?(d=kl(g,h.mode,w),d.return=h,d):(d=s(d,g.children||[]),d.return=h,d)}function f(h,d,g,w,S){return d===null||d.tag!==7?(d=Cn(g,h.mode,w,S),d.return=h,d):(d=s(d,g),d.return=h,d)}function p(h,d,g){if(typeof d=="string"||typeof d=="number")return d=El(""+d,h.mode,g),d.return=h,d;if(typeof d=="object"&&d!==null){switch(d.$$typeof){case Dn:return g=Hs(d.type,d.key,d.props,null,h.mode,g),g.ref=cr(h,null,d),g.return=h,g;case At:return d=kl(d,h.mode,g),d.return=h,d}if(Es(d)||Mn(d))return d=Cn(d,h.mode,g,null),d.return=h,d;ks(h,d)}return null}function c(h,d,g,w){var S=d!==null?d.key:null;if(typeof g=="string"||typeof g=="number")return S!==null?null:l(h,d,""+g,w);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Dn:return g.key===S?g.type===ot?f(h,d,g.props.children,w,S):a(h,d,g,w):null;case At:return g.key===S?u(h,d,g,w):null}if(Es(g)||Mn(g))return S!==null?null:f(h,d,g,w,null);ks(h,g)}return null}function v(h,d,g,w,S){if(typeof w=="string"||typeof w=="number")return h=h.get(g)||null,l(d,h,""+w,S);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Dn:return h=h.get(w.key===null?g:w.key)||null,w.type===ot?f(d,h,w.props.children,S,w.key):a(d,h,w,S);case At:return h=h.get(w.key===null?g:w.key)||null,u(d,h,w,S)}if(Es(w)||Mn(w))return h=h.get(g)||null,f(d,h,w,S,null);ks(d,w)}return null}function m(h,d,g,w){for(var S=null,T=null,C=d,P=d=0,j=null;C!==null&&P<g.length;P++){C.index>P?(j=C,C=null):j=C.sibling;var A=c(h,C,g[P],w);if(A===null){C===null&&(C=j);break}e&&C&&A.alternate===null&&t(h,C),d=o(A,d,P),T===null?S=A:T.sibling=A,T=A,C=j}if(P===g.length)return n(h,C),S;if(C===null){for(;P<g.length;P++)C=p(h,g[P],w),C!==null&&(d=o(C,d,P),T===null?S=C:T.sibling=C,T=C);return S}for(C=r(h,C);P<g.length;P++)j=v(C,h,P,g[P],w),j!==null&&(e&&j.alternate!==null&&C.delete(j.key===null?P:j.key),d=o(j,d,P),T===null?S=j:T.sibling=j,T=j);return e&&C.forEach(function(X){return t(h,X)}),S}function y(h,d,g,w){var S=Mn(g);if(typeof S!="function")throw Error($(150));if(g=S.call(g),g==null)throw Error($(151));for(var T=S=null,C=d,P=d=0,j=null,A=g.next();C!==null&&!A.done;P++,A=g.next()){C.index>P?(j=C,C=null):j=C.sibling;var X=c(h,C,A.value,w);if(X===null){C===null&&(C=j);break}e&&C&&X.alternate===null&&t(h,C),d=o(X,d,P),T===null?S=X:T.sibling=X,T=X,C=j}if(A.done)return n(h,C),S;if(C===null){for(;!A.done;P++,A=g.next())A=p(h,A.value,w),A!==null&&(d=o(A,d,P),T===null?S=A:T.sibling=A,T=A);return S}for(C=r(h,C);!A.done;P++,A=g.next())A=v(C,h,P,A.value,w),A!==null&&(e&&A.alternate!==null&&C.delete(A.key===null?P:A.key),d=o(A,d,P),T===null?S=A:T.sibling=A,T=A);return e&&C.forEach(function(rt){return t(h,rt)}),S}return function(h,d,g,w){var S=typeof g=="object"&&g!==null&&g.type===ot&&g.key===null;S&&(g=g.props.children);var T=typeof g=="object"&&g!==null;if(T)switch(g.$$typeof){case Dn:e:{for(T=g.key,S=d;S!==null;){if(S.key===T){switch(S.tag){case 7:if(g.type===ot){n(h,S.sibling),d=s(S,g.props.children),d.return=h,h=d;break e}break;default:if(S.elementType===g.type){n(h,S.sibling),d=s(S,g.props),d.ref=cr(h,S,g),d.return=h,h=d;break e}}n(h,S);break}else t(h,S);S=S.sibling}g.type===ot?(d=Cn(g.props.children,h.mode,w,g.key),d.return=h,h=d):(w=Hs(g.type,g.key,g.props,null,h.mode,w),w.ref=cr(h,d,g),w.return=h,h=w)}return i(h);case At:e:{for(S=g.key;d!==null;){if(d.key===S)if(d.tag===4&&d.stateNode.containerInfo===g.containerInfo&&d.stateNode.implementation===g.implementation){n(h,d.sibling),d=s(d,g.children||[]),d.return=h,h=d;break e}else{n(h,d);break}else t(h,d);d=d.sibling}d=kl(g,h.mode,w),d.return=h,h=d}return i(h)}if(typeof g=="string"||typeof g=="number")return g=""+g,d!==null&&d.tag===6?(n(h,d.sibling),d=s(d,g),d.return=h,h=d):(n(h,d),d=El(g,h.mode,w),d.return=h,h=d),i(h);if(Es(g))return m(h,d,g,w);if(Mn(g))return y(h,d,g,w);if(T&&ks(h,g),typeof g>"u"&&!S)switch(h.tag){case 1:case 22:case 0:case 11:case 15:throw Error($(152,Qt(h.type)||"Component"))}return n(h,d)}}var Ps=dc(!0),hc=dc(!1),fr={},Me=ht(fr),dr=ht(fr),hr=ht(fr);function Dt(e){if(e===fr)throw Error($(174));return e}function Hi(e,t){switch(H(hr,t),H(dr,e),H(Me,fr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Jo(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Jo(t,e)}U(Me),H(Me,t)}function gn(){U(Me),U(dr),U(hr)}function pc(e){Dt(hr.current);var t=Dt(Me.current),n=Jo(t,e.type);t!==n&&(H(dr,e),H(Me,n))}function Wi(e){dr.current===e&&(U(Me),U(dr))}var W=ht(0);function Ts(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&64)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ye=null,vt=null,Ue=!1;function gc(e,t){var n=je(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,e.lastEffect!==null?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function mc(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,!0):!1;case 13:return!1;default:return!1}}function Ki(e){if(Ue){var t=vt;if(t){var n=t;if(!mc(e,t)){if(t=ln(n.nextSibling),!t||!mc(e,t)){e.flags=e.flags&-1025|2,Ue=!1,Ye=e;return}gc(Ye,n)}Ye=e,vt=ln(t.firstChild)}else e.flags=e.flags&-1025|2,Ue=!1,Ye=e}}function yc(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ye=e}function Ns(e){if(e!==Ye)return!1;if(!Ue)return yc(e),Ue=!0,!1;var t=e.type;if(e.tag!==5||t!=="head"&&t!=="body"&&!Ai(t,e.memoizedProps))for(t=vt;t;)gc(e,t),t=ln(t.nextSibling);if(yc(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error($(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){vt=ln(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}vt=null}}else vt=Ye?ln(e.stateNode.nextSibling):null;return!0}function bi(){vt=Ye=null,Ue=!1}var mn=[];function qi(){for(var e=0;e<mn.length;e++)mn[e]._workInProgressVersionPrimary=null;mn.length=0}var pr=Nt.ReactCurrentDispatcher,Ne=Nt.ReactCurrentBatchConfig,gr=0,b=null,ce=null,se=null,As=!1,mr=!1;function we(){throw Error($(321))}function Ji(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Pe(e[n],t[n]))return!1;return!0}function Qi(e,t,n,r,s,o){if(gr=o,b=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,pr.current=e===null||e.memoizedState===null?Sp:xp,e=n(r,s),mr){o=0;do{if(mr=!1,!(25>o))throw Error($(301));o+=1,se=ce=null,t.updateQueue=null,pr.current=Cp,e=n(r,s)}while(mr)}if(pr.current=Rs,t=ce!==null&&ce.next!==null,gr=0,se=ce=b=null,As=!1,t)throw Error($(300));return e}function It(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return se===null?b.memoizedState=se=e:se=se.next=e,se}function zt(){if(ce===null){var e=b.alternate;e=e!==null?e.memoizedState:null}else e=ce.next;var t=se===null?b.memoizedState:se.next;if(t!==null)se=t,ce=e;else{if(e===null)throw Error($(310));ce=e,e={memoizedState:ce.memoizedState,baseState:ce.baseState,baseQueue:ce.baseQueue,queue:ce.queue,next:null},se===null?b.memoizedState=se=e:se=se.next=e}return se}function Be(e,t){return typeof t=="function"?t(e):t}function yr(e){var t=zt(),n=t.queue;if(n===null)throw Error($(311));n.lastRenderedReducer=e;var r=ce,s=r.baseQueue,o=n.pending;if(o!==null){if(s!==null){var i=s.next;s.next=o.next,o.next=i}r.baseQueue=s=o,n.pending=null}if(s!==null){s=s.next,r=r.baseState;var l=i=o=null,a=s;do{var u=a.lane;if((gr&u)===u)l!==null&&(l=l.next={lane:0,action:a.action,eagerReducer:a.eagerReducer,eagerState:a.eagerState,next:null}),r=a.eagerReducer===e?a.eagerState:e(r,a.action);else{var f={lane:u,action:a.action,eagerReducer:a.eagerReducer,eagerState:a.eagerState,next:null};l===null?(i=l=f,o=r):l=l.next=f,b.lanes|=u,xr|=u}a=a.next}while(a!==null&&a!==s);l===null?o=r:l.next=i,Pe(r,t.memoizedState)||(Fe=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function vr(e){var t=zt(),n=t.queue;if(n===null)throw Error($(311));n.lastRenderedReducer=e;var r=n.dispatch,s=n.pending,o=t.memoizedState;if(s!==null){n.pending=null;var i=s=s.next;do o=e(o,i.action),i=i.next;while(i!==s);Pe(o,t.memoizedState)||(Fe=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function vc(e,t,n){var r=t._getVersion;r=r(t._source);var s=t._workInProgressVersionPrimary;if(s!==null?e=s===r:(e=e.mutableReadLanes,(e=(gr&e)===e)&&(t._workInProgressVersionPrimary=r,mn.push(t))),e)return n(t._source);throw mn.push(t),Error($(350))}function wc(e,t,n,r){var s=ge;if(s===null)throw Error($(349));var o=t._getVersion,i=o(t._source),l=pr.current,a=l.useState(function(){return vc(s,t,n)}),u=a[1],f=a[0];a=se;var p=e.memoizedState,c=p.refs,v=c.getSnapshot,m=p.source;p=p.subscribe;var y=b;return e.memoizedState={refs:c,source:t,subscribe:r},l.useEffect(function(){c.getSnapshot=n,c.setSnapshot=u;var h=o(t._source);if(!Pe(i,h)){h=n(t._source),Pe(f,h)||(u(h),h=St(y),s.mutableReadLanes|=h&s.pendingLanes),h=s.mutableReadLanes,s.entangledLanes|=h;for(var d=s.entanglements,g=h;0<g;){var w=31-ct(g),S=1<<w;d[w]|=h,g&=~S}}},[n,t,r]),l.useEffect(function(){return r(t._source,function(){var h=c.getSnapshot,d=c.setSnapshot;try{d(h(t._source));var g=St(y);s.mutableReadLanes|=g&s.pendingLanes}catch(w){d(function(){throw w})}})},[t,r]),Pe(v,n)&&Pe(m,t)&&Pe(p,r)||(e={pending:null,dispatch:null,lastRenderedReducer:Be,lastRenderedState:f},e.dispatch=u=Zi.bind(null,b,e),a.queue=e,a.baseQueue=null,f=vc(s,t,n),a.memoizedState=a.baseState=f),f}function Sc(e,t,n){var r=zt();return wc(r,e,t,n)}function wr(e){var t=It();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e=t.queue={pending:null,dispatch:null,lastRenderedReducer:Be,lastRenderedState:e},e=e.dispatch=Zi.bind(null,b,e),[t.memoizedState,e]}function js(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=b.updateQueue,t===null?(t={lastEffect:null},b.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function xc(e){var t=It();return e={current:e},t.memoizedState=e}function Os(){return zt().memoizedState}function Gi(e,t,n,r){var s=It();b.flags|=e,s.memoizedState=js(1|t,n,void 0,r===void 0?null:r)}function Xi(e,t,n,r){var s=zt();r=r===void 0?null:r;var o=void 0;if(ce!==null){var i=ce.memoizedState;if(o=i.destroy,r!==null&&Ji(r,i.deps)){js(t,n,o,r);return}}b.flags|=e,s.memoizedState=js(1|t,n,o,r)}function Cc(e,t){return Gi(516,4,e,t)}function Ls(e,t){return Xi(516,4,e,t)}function $c(e,t){return Xi(4,2,e,t)}function Ec(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function kc(e,t,n){return n=n!=null?n.concat([e]):null,Xi(4,2,Ec.bind(null,t,e),n)}function Yi(){}function Pc(e,t){var n=zt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ji(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Tc(e,t){var n=zt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ji(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function wp(e,t){var n=dn();Ft(98>n?98:n,function(){e(!0)}),Ft(97<n?97:n,function(){var r=Ne.transition;Ne.transition=1;try{e(!1),t()}finally{Ne.transition=r}})}function Zi(e,t,n){var r=Ce(),s=St(e),o={lane:s,action:n,eagerReducer:null,eagerState:null,next:null},i=t.pending;if(i===null?o.next=o:(o.next=i.next,i.next=o),t.pending=o,i=e.alternate,e===b||i!==null&&i===b)mr=As=!0;else{if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,a=i(l,n);if(o.eagerReducer=i,o.eagerState=a,Pe(a,l))return}catch{}finally{}xt(e,s,r)}}var Rs={readContext:Te,useCallback:we,useContext:we,useEffect:we,useImperativeHandle:we,useLayoutEffect:we,useMemo:we,useReducer:we,useRef:we,useState:we,useDebugValue:we,useDeferredValue:we,useTransition:we,useMutableSource:we,useOpaqueIdentifier:we,unstable_isNewReconciler:!1},Sp={readContext:Te,useCallback:function(e,t){return It().memoizedState=[e,t===void 0?null:t],e},useContext:Te,useEffect:Cc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Gi(4,2,Ec.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Gi(4,2,e,t)},useMemo:function(e,t){var n=It();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=It();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},e=e.dispatch=Zi.bind(null,b,e),[r.memoizedState,e]},useRef:xc,useState:wr,useDebugValue:Yi,useDeferredValue:function(e){var t=wr(e),n=t[0],r=t[1];return Cc(function(){var s=Ne.transition;Ne.transition=1;try{r(e)}finally{Ne.transition=s}},[e]),n},useTransition:function(){var e=wr(!1),t=e[0];return e=wp.bind(null,e[1]),xc(e),[e,t]},useMutableSource:function(e,t,n){var r=It();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},wc(r,e,t,n)},useOpaqueIdentifier:function(){if(Ue){var e=!1,t=hp(function(){throw e||(e=!0,n("r:"+(Oi++).toString(36))),Error($(355))}),n=wr(t)[1];return!(b.mode&2)&&(b.flags|=516,js(5,function(){n("r:"+(Oi++).toString(36))},void 0,null)),t}return t="r:"+(Oi++).toString(36),wr(t),t},unstable_isNewReconciler:!1},xp={readContext:Te,useCallback:Pc,useContext:Te,useEffect:Ls,useImperativeHandle:kc,useLayoutEffect:$c,useMemo:Tc,useReducer:yr,useRef:Os,useState:function(){return yr(Be)},useDebugValue:Yi,useDeferredValue:function(e){var t=yr(Be),n=t[0],r=t[1];return Ls(function(){var s=Ne.transition;Ne.transition=1;try{r(e)}finally{Ne.transition=s}},[e]),n},useTransition:function(){var e=yr(Be)[0];return[Os().current,e]},useMutableSource:Sc,useOpaqueIdentifier:function(){return yr(Be)[0]},unstable_isNewReconciler:!1},Cp={readContext:Te,useCallback:Pc,useContext:Te,useEffect:Ls,useImperativeHandle:kc,useLayoutEffect:$c,useMemo:Tc,useReducer:vr,useRef:Os,useState:function(){return vr(Be)},useDebugValue:Yi,useDeferredValue:function(e){var t=vr(Be),n=t[0],r=t[1];return Ls(function(){var s=Ne.transition;Ne.transition=1;try{r(e)}finally{Ne.transition=s}},[e]),n},useTransition:function(){var e=vr(Be)[0];return[Os().current,e]},useMutableSource:Sc,useOpaqueIdentifier:function(){return vr(Be)[0]},unstable_isNewReconciler:!1},$p=Nt.ReactCurrentOwner,Fe=!1;function Se(e,t,n,r){t.child=e===null?hc(t,null,n,r):Ps(t,e.child,n,r)}function Nc(e,t,n,r,s){n=n.render;var o=t.ref;return pn(t,s),r=Qi(e,t,n,r,o,s),e!==null&&!Fe?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~s,Ze(e,t,s)):(t.flags|=1,Se(e,t,r,s),t.child)}function Ac(e,t,n,r,s,o){if(e===null){var i=n.type;return typeof i=="function"&&!Cl(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,jc(e,t,i,r,s,o)):(e=Hs(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}return i=e.child,!(s&o)&&(s=i.memoizedProps,n=n.compare,n=n!==null?n:rr,n(s,r)&&e.ref===t.ref)?Ze(e,t,o):(t.flags|=1,e=Et(i,r),e.ref=t.ref,e.return=t,t.child=e)}function jc(e,t,n,r,s,o){if(e!==null&&rr(e.memoizedProps,r)&&e.ref===t.ref)if(Fe=!1,(o&s)!==0)e.flags&16384&&(Fe=!0);else return t.lanes=e.lanes,Ze(e,t,o);return tl(e,t,n,r,o)}function el(e,t,n){var r=t.pendingProps,s=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden"||r.mode==="unstable-defer-without-hiding")if(!(t.mode&4))t.memoizedState={baseLanes:0},Vs(t,n);else if(n&1073741824)t.memoizedState={baseLanes:0},Vs(t,o!==null?o.baseLanes:n);else return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},Vs(t,e),null;else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Vs(t,r);return Se(e,t,s,n),t.child}function Oc(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=128)}function tl(e,t,n,r,s){var o=ve(n)?Rt:ae.current;return o=fn(t,o),pn(t,s),n=Qi(e,t,n,r,o,s),e!==null&&!Fe?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~s,Ze(e,t,s)):(t.flags|=1,Se(e,t,n,s),t.child)}function Lc(e,t,n,r,s){if(ve(n)){var o=!0;ms(t)}else o=!1;if(pn(t,s),t.stateNode===null)e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),cc(t,n,r),Vi(t,n,r,s),r=!0;else if(e===null){var i=t.stateNode,l=t.memoizedProps;i.props=l;var a=i.context,u=n.contextType;typeof u=="object"&&u!==null?u=Te(u):(u=ve(n)?Rt:ae.current,u=fn(t,u));var f=n.getDerivedStateFromProps,p=typeof f=="function"||typeof i.getSnapshotBeforeUpdate=="function";p||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(l!==r||a!==u)&&fc(t,i,r,u),gt=!1;var c=t.memoizedState;i.state=c,ur(t,r,i,s),a=t.memoizedState,l!==r||c!==a||ye.current||gt?(typeof f=="function"&&(Cs(t,n,f,r),a=t.memoizedState),(l=gt||uc(t,n,l,r,c,a,u))?(p||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4)):(typeof i.componentDidMount=="function"&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=a),i.props=r,i.state=a,i.context=u,r=l):(typeof i.componentDidMount=="function"&&(t.flags|=4),r=!1)}else{i=t.stateNode,oc(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:_e(t.type,l),i.props=u,p=t.pendingProps,c=i.context,a=n.contextType,typeof a=="object"&&a!==null?a=Te(a):(a=ve(n)?Rt:ae.current,a=fn(t,a));var v=n.getDerivedStateFromProps;(f=typeof v=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(l!==p||c!==a)&&fc(t,i,r,a),gt=!1,c=t.memoizedState,i.state=c,ur(t,r,i,s);var m=t.memoizedState;l!==p||c!==m||ye.current||gt?(typeof v=="function"&&(Cs(t,n,v,r),m=t.memoizedState),(u=gt||uc(t,n,u,r,c,m,a))?(f||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,m,a),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,m,a)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=256)):(typeof i.componentDidUpdate!="function"||l===e.memoizedProps&&c===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&c===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=m),i.props=r,i.state=m,i.context=a,r=u):(typeof i.componentDidUpdate!="function"||l===e.memoizedProps&&c===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&c===e.memoizedState||(t.flags|=256),r=!1)}return nl(e,t,n,r,o,s)}function nl(e,t,n,r,s,o){Oc(e,t);var i=(t.flags&64)!==0;if(!r&&!i)return s&&Qu(t,n,!1),Ze(e,t,o);r=t.stateNode,$p.current=t;var l=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=Ps(t,e.child,null,o),t.child=Ps(t,null,l,o)):Se(e,t,l,o),t.memoizedState=r.state,s&&Qu(t,n,!0),t.child}function Rc(e){var t=e.stateNode;t.pendingContext?qu(e,t.pendingContext,t.pendingContext!==t.context):t.context&&qu(e,t.context,!1),Hi(e,t.containerInfo)}var _s={dehydrated:null,retryLane:0};function _c(e,t,n){var r=t.pendingProps,s=W.current,o=!1,i;return(i=(t.flags&64)!==0)||(i=e!==null&&e.memoizedState===null?!1:(s&2)!==0),i?(o=!0,t.flags&=-65):e!==null&&e.memoizedState===null||r.fallback===void 0||r.unstable_avoidThisFallback===!0||(s|=1),H(W,s&1),e===null?(r.fallback!==void 0&&Ki(t),e=r.children,s=r.fallback,o?(e=Fc(t,e,s,n),t.child.memoizedState={baseLanes:n},t.memoizedState=_s,e):typeof r.unstable_expectedLoadTime=="number"?(e=Fc(t,e,s,n),t.child.memoizedState={baseLanes:n},t.memoizedState=_s,t.lanes=33554432,e):(n=$l({mode:"visible",children:e},t.mode,n,null),n.return=t,t.child=n)):e.memoizedState!==null?o?(r=Ic(e,t,r.children,r.fallback,n),o=t.child,s=e.child.memoizedState,o.memoizedState=s===null?{baseLanes:n}:{baseLanes:s.baseLanes|n},o.childLanes=e.childLanes&~n,t.memoizedState=_s,r):(n=Dc(e,t,r.children,n),t.memoizedState=null,n):o?(r=Ic(e,t,r.children,r.fallback,n),o=t.child,s=e.child.memoizedState,o.memoizedState=s===null?{baseLanes:n}:{baseLanes:s.baseLanes|n},o.childLanes=e.childLanes&~n,t.memoizedState=_s,r):(n=Dc(e,t,r.children,n),t.memoizedState=null,n)}function Fc(e,t,n,r){var s=e.mode,o=e.child;return t={mode:"hidden",children:t},!(s&2)&&o!==null?(o.childLanes=0,o.pendingProps=t):o=$l(t,s,0,null),n=Cn(n,s,r,null),o.return=e,n.return=e,o.sibling=n,e.child=o,n}function Dc(e,t,n,r){var s=e.child;return e=s.sibling,n=Et(s,{mode:"visible",children:n}),!(t.mode&2)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function Ic(e,t,n,r,s){var o=t.mode,i=e.child;e=i.sibling;var l={mode:"hidden",children:n};return!(o&2)&&t.child!==i?(n=t.child,n.childLanes=0,n.pendingProps=l,i=n.lastEffect,i!==null?(t.firstEffect=n.firstEffect,t.lastEffect=i,i.nextEffect=null):t.firstEffect=t.lastEffect=null):n=Et(i,l),e!==null?r=Et(e,r):(r=Cn(r,o,s,null),r.flags|=2),r.return=t,n.return=t,n.sibling=r,t.child=n,r}function zc(e,t){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),sc(e.return,t)}function rl(e,t,n,r,s,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:s,lastEffect:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=s,i.lastEffect=o)}function Mc(e,t,n){var r=t.pendingProps,s=r.revealOrder,o=r.tail;if(Se(e,t,r.children,n),r=W.current,r&2)r=r&1|2,t.flags|=64;else{if(e!==null&&e.flags&64)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&zc(e,n);else if(e.tag===19)zc(e,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(H(W,r),!(t.mode&2))t.memoizedState=null;else switch(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&Ts(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),rl(t,!1,s,n,o,t.lastEffect);break;case"backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&Ts(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}rl(t,!0,n,null,o,t.lastEffect);break;case"together":rl(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function Ze(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),xr|=t.lanes,n&t.childLanes){if(e!==null&&t.child!==e.child)throw Error($(153));if(t.child!==null){for(e=t.child,n=Et(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Et(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}return null}var Uc,sl,Bc,Vc;Uc=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},sl=function(){},Bc=function(e,t,n,r){var s=e.memoizedProps;if(s!==r){e=t.stateNode,Dt(Me.current);var o=null;switch(n){case"input":s=Vo(e,s),r=Vo(e,r),o=[];break;case"option":s=Ko(e,s),r=Ko(e,r),o=[];break;case"select":s=B({},s,{value:void 0}),r=B({},r,{value:void 0}),o=[];break;case"textarea":s=bo(e,s),r=bo(e,r),o=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=fs)}Qo(n,r);var i;n=null;for(u in s)if(!r.hasOwnProperty(u)&&s.hasOwnProperty(u)&&s[u]!=null)if(u==="style"){var l=s[u];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Fn.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in r){var a=r[u];if(l=s!=null?s[u]:void 0,r.hasOwnProperty(u)&&a!==l&&(a!=null||l!=null))if(u==="style")if(l){for(i in l)!l.hasOwnProperty(i)||a&&a.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in a)a.hasOwnProperty(i)&&l[i]!==a[i]&&(n||(n={}),n[i]=a[i])}else n||(o||(o=[]),o.push(u,n)),n=a;else u==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,l=l?l.__html:void 0,a!=null&&l!==a&&(o=o||[]).push(u,a)):u==="children"?typeof a!="string"&&typeof a!="number"||(o=o||[]).push(u,""+a):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Fn.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&M("scroll",e),o||l===a||(o=[])):typeof a=="object"&&a!==null&&a.$$typeof===Io?a.toString():(o=o||[]).push(u,a))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}},Vc=function(e,t,n,r){n!==r&&(t.flags|=4)};function Sr(e,t){if(!Ue)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ep(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return ve(t.type)&&gs(),null;case 3:return gn(),U(ye),U(ae),qi(),r=t.stateNode,r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ns(t)?t.flags|=4:r.hydrate||(t.flags|=256)),sl(t),null;case 5:Wi(t);var s=Dt(hr.current);if(n=t.type,e!==null&&t.stateNode!=null)Bc(e,t,n,r,s),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(t.stateNode===null)throw Error($(166));return null}if(e=Dt(Me.current),Ns(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[dt]=t,r[hs]=o,n){case"dialog":M("cancel",r),M("close",r);break;case"iframe":case"object":case"embed":M("load",r);break;case"video":case"audio":for(e=0;e<or.length;e++)M(or[e],r);break;case"source":M("error",r);break;case"img":case"image":case"link":M("error",r),M("load",r);break;case"details":M("toggle",r);break;case"input":La(r,o),M("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},M("invalid",r);break;case"textarea":Fa(r,o),M("invalid",r)}Qo(n,o),e=null;for(var i in o)o.hasOwnProperty(i)&&(s=o[i],i==="children"?typeof s=="string"?r.textContent!==s&&(e=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(e=["children",""+s]):Fn.hasOwnProperty(i)&&s!=null&&i==="onScroll"&&M("scroll",r));switch(n){case"input":Jr(r),_a(r,o,!0);break;case"textarea":Jr(r),Ia(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=fs)}r=e,t.updateQueue=r,r!==null&&(t.flags|=4)}else{switch(i=s.nodeType===9?s:s.ownerDocument,e===qo.html&&(e=za(n)),e===qo.html?n==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[dt]=t,e[hs]=r,Uc(e,t,!1,!1),t.stateNode=e,i=Go(n,r),n){case"dialog":M("cancel",e),M("close",e),s=r;break;case"iframe":case"object":case"embed":M("load",e),s=r;break;case"video":case"audio":for(s=0;s<or.length;s++)M(or[s],e);s=r;break;case"source":M("error",e),s=r;break;case"img":case"image":case"link":M("error",e),M("load",e),s=r;break;case"details":M("toggle",e),s=r;break;case"input":La(e,r),s=Vo(e,r),M("invalid",e);break;case"option":s=Ko(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=B({},r,{value:void 0}),M("invalid",e);break;case"textarea":Fa(e,r),s=bo(e,r),M("invalid",e);break;default:s=r}Qo(n,s);var l=s;for(o in l)if(l.hasOwnProperty(o)){var a=l[o];o==="style"?Ba(e,a):o==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&Ma(e,a)):o==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&Bn(e,a):typeof a=="number"&&Bn(e,""+a):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Fn.hasOwnProperty(o)?a!=null&&o==="onScroll"&&M("scroll",e):a!=null&&Oo(e,o,a,i))}switch(n){case"input":Jr(e),_a(e,r,!1);break;case"textarea":Jr(e),Ia(e);break;case"option":r.value!=null&&e.setAttribute("value",""+it(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Gt(e,!!r.multiple,o,!1):r.defaultValue!=null&&Gt(e,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=fs)}Vu(n,r)&&(t.flags|=4)}t.ref!==null&&(t.flags|=128)}return null;case 6:if(e&&t.stateNode!=null)Vc(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error($(166));n=Dt(hr.current),Dt(Me.current),Ns(t)?(r=t.stateNode,n=t.memoizedProps,r[dt]=t,r.nodeValue!==n&&(t.flags|=4)):(r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[dt]=t,t.stateNode=r)}return null;case 13:return U(W),r=t.memoizedState,t.flags&64?(t.lanes=n,t):(r=r!==null,n=!1,e===null?t.memoizedProps.fallback!==void 0&&Ns(t):n=e.memoizedState!==null,r&&!n&&t.mode&2&&(e===null&&t.memoizedProps.unstable_avoidThisFallback!==!0||W.current&1?oe===0&&(oe=3):((oe===0||oe===3)&&(oe=4),ge===null||!(xr&134217727)&&!(vn&134217727)||Sn(ge,fe))),(r||n)&&(t.flags|=4),null);case 4:return gn(),sl(t),e===null&&Iu(t.stateNode.containerInfo),null;case 10:return Ui(t),null;case 17:return ve(t.type)&&gs(),null;case 19:if(U(W),r=t.memoizedState,r===null)return null;if(o=(t.flags&64)!==0,i=r.rendering,i===null)if(o)Sr(r,!1);else{if(oe!==0||e!==null&&e.flags&64)for(e=t.child;e!==null;){if(i=Ts(e),i!==null){for(t.flags|=64,Sr(r,!1),o=i.updateQueue,o!==null&&(t.updateQueue=o,t.flags|=4),r.lastEffect===null&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=2,o.nextEffect=null,o.firstEffect=null,o.lastEffect=null,i=o.alternate,i===null?(o.childLanes=0,o.lanes=e,o.child=null,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=i.childLanes,o.lanes=i.lanes,o.child=i.child,o.memoizedProps=i.memoizedProps,o.memoizedState=i.memoizedState,o.updateQueue=i.updateQueue,o.type=i.type,e=i.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return H(W,W.current&1|2),t.child}e=e.sibling}r.tail!==null&&ue()>gl&&(t.flags|=64,o=!0,Sr(r,!1),t.lanes=33554432)}else{if(!o)if(e=Ts(i),e!==null){if(t.flags|=64,o=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Sr(r,!0),r.tail===null&&r.tailMode==="hidden"&&!i.alternate&&!Ue)return t=t.lastEffect=r.lastEffect,t!==null&&(t.nextEffect=null),null}else 2*ue()-r.renderingStartTime>gl&&n!==1073741824&&(t.flags|=64,o=!0,Sr(r,!1),t.lanes=33554432);r.isBackwards?(i.sibling=t.child,t.child=i):(n=r.last,n!==null?n.sibling=i:t.child=i,r.last=i)}return r.tail!==null?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=ue(),n.sibling=null,t=W.current,H(W,o?t&1|2:t&1),n):null;case 23:case 24:return xl(),e!==null&&e.memoizedState!==null!=(t.memoizedState!==null)&&r.mode!=="unstable-defer-without-hiding"&&(t.flags|=4),null}throw Error($(156,t.tag))}function kp(e){switch(e.tag){case 1:ve(e.type)&&gs();var t=e.flags;return t&4096?(e.flags=t&-4097|64,e):null;case 3:if(gn(),U(ye),U(ae),qi(),t=e.flags,t&64)throw Error($(285));return e.flags=t&-4097|64,e;case 5:return Wi(e),null;case 13:return U(W),t=e.flags,t&4096?(e.flags=t&-4097|64,e):null;case 19:return U(W),null;case 4:return gn(),null;case 10:return Ui(e),null;case 23:case 24:return xl(),null;default:return null}}function ol(e,t){try{var n="",r=t;do n+=oh(r),r=r.return;while(r);var s=n}catch(o){s=`
|
|
39
39
|
Error generating stack: `+o.message+`
|
|
40
|
-
`+o.stack}return{value:e,source:t,stack:s}}function ol(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Ep=typeof WeakMap=="function"?WeakMap:Map;function Hc(e,t,n){n=mt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Is||(Is=!0,gl=r),ol(e,t)},n}function Wc(e,t,n){n=mt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var s=t.value;n.payload=function(){return ol(e,t),r(s)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){typeof r!="function"&&(Ve===null?Ve=new Set([this]):Ve.add(this),ol(e,t));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}var kp=typeof WeakSet=="function"?WeakSet:Set;function Kc(e){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(n){$t(e,n)}else t.current=null}function Pp(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(t.flags&256&&e!==null){var n=e.memoizedProps,r=e.memoizedState;e=t.stateNode,t=e.getSnapshotBeforeUpdate(t.elementType===t.type?n:_e(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:t.flags&256&&Ai(t.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error($(163))}function Tp(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(t=n.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{if((e.tag&3)===3){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(t=n.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{var s=e;r=s.next,s=s.tag,s&4&&s&1&&(lf(n,e),Fp(n,e)),e=r}while(e!==t)}return;case 1:e=n.stateNode,n.flags&4&&(t===null?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:_e(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),t=n.updateQueue,t!==null&&lc(n,t,e);return;case 3:if(t=n.updateQueue,t!==null){if(e=null,n.child!==null)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}lc(n,t,e)}return;case 5:e=n.stateNode,t===null&&n.flags&4&&Vu(n.type,n.memoizedProps)&&e.focus();return;case 6:return;case 4:return;case 12:return;case 13:n.memoizedState===null&&(n=n.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&ru(n))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error($(163))}function bc(e,t){for(var n=e;;){if(n.tag===5){var r=n.stateNode;if(t)r=r.style,typeof r.setProperty=="function"?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var s=n.memoizedProps.style;s=s!=null&&s.hasOwnProperty("display")?s.display:null,r.style.display=Ua("display",s)}}else if(n.tag===6)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((n.tag!==23&&n.tag!==24||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function qc(e,t){if(_t&&typeof _t.onCommitFiberUnmount=="function")try{_t.onCommitFiberUnmount(Li,t)}catch{}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(e=t.updateQueue,e!==null&&(e=e.lastEffect,e!==null)){var n=e=e.next;do{var r=n,s=r.destroy;if(r=r.tag,s!==void 0)if(r&4)lf(t,n);else{r=t;try{s()}catch(o){$t(r,o)}}n=n.next}while(n!==e)}break;case 1:if(Kc(t),e=t.stateNode,typeof e.componentWillUnmount=="function")try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(o){$t(t,o)}break;case 5:Kc(t);break;case 4:Yc(e,t)}}function Jc(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function Qc(e){return e.tag===5||e.tag===3||e.tag===4}function Gc(e){e:{for(var t=e.return;t!==null;){if(Qc(t))break e;t=t.return}throw Error($(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:t=t.containerInfo,r=!0;break;case 4:t=t.containerInfo,r=!0;break;default:throw Error($(161))}n.flags&16&&(Bn(t,""),n.flags&=-17);e:t:for(n=e;;){for(;n.sibling===null;){if(n.return===null||Qc(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue t;n.child.return=n,n=n.child}if(!(n.flags&2)){n=n.stateNode;break e}}r?il(e,n,t):ll(e,n,t)}function il(e,t,n){var r=e.tag,s=r===5||r===6;if(s)e=s?e.stateNode:e.stateNode.instance,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=fs));else if(r!==4&&(e=e.child,e!==null))for(il(e,t,n),e=e.sibling;e!==null;)il(e,t,n),e=e.sibling}function ll(e,t,n){var r=e.tag,s=r===5||r===6;if(s)e=s?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(ll(e,t,n),e=e.sibling;e!==null;)ll(e,t,n),e=e.sibling}function Yc(e,t){for(var n=t,r=!1,s,o;;){if(!r){r=n.return;e:for(;;){if(r===null)throw Error($(160));switch(s=r.stateNode,r.tag){case 5:o=!1;break e;case 3:s=s.containerInfo,o=!0;break e;case 4:s=s.containerInfo,o=!0;break e}r=r.return}r=!0}if(n.tag===5||n.tag===6){e:for(var i=e,l=n,a=l;;)if(qc(i,a),a.child!==null&&a.tag!==4)a.child.return=a,a=a.child;else{if(a===l)break e;for(;a.sibling===null;){if(a.return===null||a.return===l)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}o?(i=s,l=n.stateNode,i.nodeType===8?i.parentNode.removeChild(l):i.removeChild(l)):s.removeChild(n.stateNode)}else if(n.tag===4){if(n.child!==null){s=n.stateNode.containerInfo,o=!0,n.child.return=n,n=n.child;continue}}else if(qc(e,n),n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return,n.tag===4&&(r=!1)}n.sibling.return=n.return,n=n.sibling}}function al(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var r=n=n.next;do(r.tag&3)===3&&(e=r.destroy,r.destroy=void 0,e!==void 0&&e()),r=r.next;while(r!==n)}return;case 1:return;case 5:if(n=t.stateNode,n!=null){r=t.memoizedProps;var s=e!==null?e.memoizedProps:r;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,o!==null){for(n[hs]=r,e==="input"&&r.type==="radio"&&r.name!=null&&Ra(n,r),Qo(e,s),t=Qo(e,r),s=0;s<o.length;s+=2){var i=o[s],l=o[s+1];i==="style"?Ba(n,l):i==="dangerouslySetInnerHTML"?Ma(n,l):i==="children"?Bn(n,l):jo(n,i,l,t)}switch(e){case"input":Vo(n,r);break;case"textarea":Da(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,o=r.value,o!=null?Gt(n,!!r.multiple,o,!1):e!==!!r.multiple&&(r.defaultValue!=null?Gt(n,!!r.multiple,r.defaultValue,!0):Gt(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(t.stateNode===null)throw Error($(162));t.stateNode.nodeValue=t.memoizedProps;return;case 3:n=t.stateNode,n.hydrate&&(n.hydrate=!1,ru(n.containerInfo));return;case 12:return;case 13:t.memoizedState!==null&&(hl=ue(),bc(t.child,!0)),Xc(t);return;case 19:Xc(t);return;case 17:return;case 23:case 24:bc(t,t.memoizedState!==null);return}throw Error($(163))}function Xc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new kp),t.forEach(function(r){var s=zp.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function Np(e,t){return e!==null&&(e=e.memoizedState,e===null||e.dehydrated!==null)?(t=t.memoizedState,t!==null&&t.dehydrated===null):!1}var Ap=Math.ceil,Fs=Nt.ReactCurrentDispatcher,ul=Nt.ReactCurrentOwner,O=0,ge=null,Z=null,fe=0,Mt=0,cl=ht(0),oe=0,Ds=null,yn=0,xr=0,vn=0,fl=0,dl=null,hl=0,pl=1/0;function wn(){pl=ue()+500}var N=null,Is=!1,gl=null,Ve=null,wt=!1,Cr=null,$r=90,ml=[],yl=[],et=null,Er=0,vl=null,zs=-1,tt=0,Ms=0,kr=null,Us=!1;function Ce(){return O&48?ue():zs!==-1?zs:zs=ue()}function St(e){if(e=e.mode,!(e&2))return 1;if(!(e&4))return dn()===99?1:2;if(tt===0&&(tt=yn),mp.transition!==0){Ms!==0&&(Ms=dl!==null?dl.pendingLanes:0),e=tt;var t=4186112&~Ms;return t&=-t,t===0&&(e=4186112&~e,t=e&-e,t===0&&(t=8192)),t}return e=dn(),O&4&&e===98?e=ns(12,tt):(e=wh(e),e=ns(e,tt)),e}function xt(e,t,n){if(50<Er)throw Er=0,vl=null,Error($(185));if(e=Bs(e,t),e===null)return null;rs(e,t,n),e===ge&&(vn|=t,oe===4&&Sn(e,fe));var r=dn();t===1?O&8&&!(O&48)?wl(e):(Ae(e,n),O===0&&(wn(),ze())):(!(O&4)||r!==98&&r!==99||(et===null?et=new Set([e]):et.add(e)),Ae(e,n)),dl=e}function Bs(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}function Ae(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,s=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var l=31-ct(i),a=1<<l,u=o[l];if(u===-1){if(!(a&r)||a&s){u=t,en(a);var f=z;o[l]=10<=f?u+250:6<=f?u+5e3:-1}}else u<=t&&(e.expiredLanes|=a);i&=~a}if(r=Yn(e,e===ge?fe:0),t=z,r===0)n!==null&&(n!==Di&&_i(n),e.callbackNode=null,e.callbackPriority=0);else{if(n!==null){if(e.callbackPriority===t)return;n!==Di&&_i(n)}t===15?(n=wl.bind(null,e),Ye===null?(Ye=[n],vs=Ri(ys,rc)):Ye.push(n),n=Di):t===14?n=ar(99,wl.bind(null,e)):(n=Sh(t),n=ar(n,Zc.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function Zc(e){if(zs=-1,Ms=tt=0,O&48)throw Error($(327));var t=e.callbackNode;if(Ct()&&e.callbackNode!==t)return null;var n=Yn(e,e===ge?fe:0);if(n===0)return null;var r=n,s=O;O|=16;var o=rf();(ge!==e||fe!==r)&&(wn(),xn(e,r));do try{Lp();break}catch(l){nf(e,l)}while(1);if(zi(),Fs.current=o,O=s,Z!==null?r=0:(ge=null,fe=0,r=oe),yn&vn)xn(e,0);else if(r!==0){if(r===2&&(O|=64,e.hydrate&&(e.hydrate=!1,Ai(e.containerInfo)),n=cu(e),n!==0&&(r=Pr(e,n))),r===1)throw t=Ds,xn(e,0),Sn(e,n),Ae(e,ue()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error($(345));case 2:Ut(e);break;case 3:if(Sn(e,n),(n&62914560)===n&&(r=hl+500-ue(),10<r)){if(Yn(e,0)!==0)break;if(s=e.suspendedLanes,(s&n)!==n){Ce(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=Hu(Ut.bind(null,e),r);break}Ut(e);break;case 4:if(Sn(e,n),(n&4186112)===n)break;for(r=e.eventTimes,s=-1;0<n;){var i=31-ct(n);o=1<<i,i=r[i],i>s&&(s=i),n&=~o}if(n=s,n=ue()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Ap(n/1960))-n,10<n){e.timeoutHandle=Hu(Ut.bind(null,e),n);break}Ut(e);break;case 5:Ut(e);break;default:throw Error($(329))}}return Ae(e,ue()),e.callbackNode===t?Zc.bind(null,e):null}function Sn(e,t){for(t&=~fl,t&=~vn,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-ct(t),r=1<<n;e[n]=-1,t&=~r}}function wl(e){if(O&48)throw Error($(327));if(Ct(),e===ge&&e.expiredLanes&fe){var t=fe,n=Pr(e,t);yn&vn&&(t=Yn(e,t),n=Pr(e,t))}else t=Yn(e,0),n=Pr(e,t);if(e.tag!==0&&n===2&&(O|=64,e.hydrate&&(e.hydrate=!1,Ai(e.containerInfo)),t=cu(e),t!==0&&(n=Pr(e,t))),n===1)throw n=Ds,xn(e,0),Sn(e,t),Ae(e,ue()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ut(e),Ae(e,ue()),null}function jp(){if(et!==null){var e=et;et=null,e.forEach(function(t){t.expiredLanes|=24&t.pendingLanes,Ae(t,ue())})}ze()}function ef(e,t){var n=O;O|=1;try{return e(t)}finally{O=n,O===0&&(wn(),ze())}}function tf(e,t){var n=O;O&=-2,O|=8;try{return e(t)}finally{O=n,O===0&&(wn(),ze())}}function Vs(e,t){H(cl,Mt),Mt|=t,yn|=t}function Sl(){Mt=cl.current,U(cl)}function xn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,cp(n)),Z!==null)for(n=Z.return;n!==null;){var r=n;switch(r.tag){case 1:r=r.type.childContextTypes,r!=null&&gs();break;case 3:gn(),U(ye),U(ae),bi();break;case 5:Hi(r);break;case 4:gn();break;case 13:U(W);break;case 19:U(W);break;case 10:Mi(r);break;case 23:case 24:Sl()}n=n.return}ge=e,Z=Et(e.current,null),fe=Mt=yn=t,oe=0,Ds=null,fl=vn=xr=0}function nf(e,t){do{var n=Z;try{if(zi(),pr.current=Rs,As){for(var r=b.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}As=!1}if(gr=0,se=ce=b=null,mr=!1,ul.current=null,n===null||n.return===null){oe=1,Ds=t,Z=null;break}e:{var o=e,i=n.return,l=n,a=t;if(t=fe,l.flags|=2048,l.firstEffect=l.lastEffect=null,a!==null&&typeof a=="object"&&typeof a.then=="function"){var u=a;if(!(l.mode&2)){var f=l.alternate;f?(l.updateQueue=f.updateQueue,l.memoizedState=f.memoizedState,l.lanes=f.lanes):(l.updateQueue=null,l.memoizedState=null)}var p=(W.current&1)!==0,c=i;do{var v;if(v=c.tag===13){var m=c.memoizedState;if(m!==null)v=m.dehydrated!==null;else{var y=c.memoizedProps;v=y.fallback===void 0?!1:y.unstable_avoidThisFallback!==!0?!0:!p}}if(v){var h=c.updateQueue;if(h===null){var d=new Set;d.add(u),c.updateQueue=d}else h.add(u);if(!(c.mode&2)){if(c.flags|=64,l.flags|=16384,l.flags&=-2981,l.tag===1)if(l.alternate===null)l.tag=17;else{var g=mt(-1,1);g.tag=2,yt(l,g)}l.lanes|=1;break e}a=void 0,l=t;var w=o.pingCache;if(w===null?(w=o.pingCache=new Ep,a=new Set,w.set(u,a)):(a=w.get(u),a===void 0&&(a=new Set,w.set(u,a))),!a.has(l)){a.add(l);var S=Ip.bind(null,o,u,l);u.then(S,S)}c.flags|=4096,c.lanes=t;break e}c=c.return}while(c!==null);a=Error((Qt(l.type)||"A React component")+` suspended while rendering, but no fallback UI was specified.
|
|
40
|
+
`+o.stack}return{value:e,source:t,stack:s}}function il(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Pp=typeof WeakMap=="function"?WeakMap:Map;function Hc(e,t,n){n=mt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Is||(Is=!0,ml=r),il(e,t)},n}function Wc(e,t,n){n=mt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var s=t.value;n.payload=function(){return il(e,t),r(s)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){typeof r!="function"&&(Ve===null?Ve=new Set([this]):Ve.add(this),il(e,t));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}var Tp=typeof WeakSet=="function"?WeakSet:Set;function Kc(e){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(n){$t(e,n)}else t.current=null}function Np(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(t.flags&256&&e!==null){var n=e.memoizedProps,r=e.memoizedState;e=t.stateNode,t=e.getSnapshotBeforeUpdate(t.elementType===t.type?n:_e(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:t.flags&256&&ji(t.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error($(163))}function Ap(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(t=n.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{if((e.tag&3)===3){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(t=n.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{var s=e;r=s.next,s=s.tag,s&4&&s&1&&(lf(n,e),Ip(n,e)),e=r}while(e!==t)}return;case 1:e=n.stateNode,n.flags&4&&(t===null?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:_e(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),t=n.updateQueue,t!==null&&lc(n,t,e);return;case 3:if(t=n.updateQueue,t!==null){if(e=null,n.child!==null)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}lc(n,t,e)}return;case 5:e=n.stateNode,t===null&&n.flags&4&&Vu(n.type,n.memoizedProps)&&e.focus();return;case 6:return;case 4:return;case 12:return;case 13:n.memoizedState===null&&(n=n.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&ru(n))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error($(163))}function bc(e,t){for(var n=e;;){if(n.tag===5){var r=n.stateNode;if(t)r=r.style,typeof r.setProperty=="function"?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var s=n.memoizedProps.style;s=s!=null&&s.hasOwnProperty("display")?s.display:null,r.style.display=Ua("display",s)}}else if(n.tag===6)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((n.tag!==23&&n.tag!==24||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function qc(e,t){if(_t&&typeof _t.onCommitFiberUnmount=="function")try{_t.onCommitFiberUnmount(Ri,t)}catch{}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(e=t.updateQueue,e!==null&&(e=e.lastEffect,e!==null)){var n=e=e.next;do{var r=n,s=r.destroy;if(r=r.tag,s!==void 0)if(r&4)lf(t,n);else{r=t;try{s()}catch(o){$t(r,o)}}n=n.next}while(n!==e)}break;case 1:if(Kc(t),e=t.stateNode,typeof e.componentWillUnmount=="function")try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(o){$t(t,o)}break;case 5:Kc(t);break;case 4:Xc(e,t)}}function Jc(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function Qc(e){return e.tag===5||e.tag===3||e.tag===4}function Gc(e){e:{for(var t=e.return;t!==null;){if(Qc(t))break e;t=t.return}throw Error($(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:t=t.containerInfo,r=!0;break;case 4:t=t.containerInfo,r=!0;break;default:throw Error($(161))}n.flags&16&&(Bn(t,""),n.flags&=-17);e:t:for(n=e;;){for(;n.sibling===null;){if(n.return===null||Qc(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue t;n.child.return=n,n=n.child}if(!(n.flags&2)){n=n.stateNode;break e}}r?ll(e,n,t):al(e,n,t)}function ll(e,t,n){var r=e.tag,s=r===5||r===6;if(s)e=s?e.stateNode:e.stateNode.instance,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=fs));else if(r!==4&&(e=e.child,e!==null))for(ll(e,t,n),e=e.sibling;e!==null;)ll(e,t,n),e=e.sibling}function al(e,t,n){var r=e.tag,s=r===5||r===6;if(s)e=s?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(al(e,t,n),e=e.sibling;e!==null;)al(e,t,n),e=e.sibling}function Xc(e,t){for(var n=t,r=!1,s,o;;){if(!r){r=n.return;e:for(;;){if(r===null)throw Error($(160));switch(s=r.stateNode,r.tag){case 5:o=!1;break e;case 3:s=s.containerInfo,o=!0;break e;case 4:s=s.containerInfo,o=!0;break e}r=r.return}r=!0}if(n.tag===5||n.tag===6){e:for(var i=e,l=n,a=l;;)if(qc(i,a),a.child!==null&&a.tag!==4)a.child.return=a,a=a.child;else{if(a===l)break e;for(;a.sibling===null;){if(a.return===null||a.return===l)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}o?(i=s,l=n.stateNode,i.nodeType===8?i.parentNode.removeChild(l):i.removeChild(l)):s.removeChild(n.stateNode)}else if(n.tag===4){if(n.child!==null){s=n.stateNode.containerInfo,o=!0,n.child.return=n,n=n.child;continue}}else if(qc(e,n),n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return,n.tag===4&&(r=!1)}n.sibling.return=n.return,n=n.sibling}}function ul(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var r=n=n.next;do(r.tag&3)===3&&(e=r.destroy,r.destroy=void 0,e!==void 0&&e()),r=r.next;while(r!==n)}return;case 1:return;case 5:if(n=t.stateNode,n!=null){r=t.memoizedProps;var s=e!==null?e.memoizedProps:r;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,o!==null){for(n[hs]=r,e==="input"&&r.type==="radio"&&r.name!=null&&Ra(n,r),Go(e,s),t=Go(e,r),s=0;s<o.length;s+=2){var i=o[s],l=o[s+1];i==="style"?Ba(n,l):i==="dangerouslySetInnerHTML"?Ma(n,l):i==="children"?Bn(n,l):Oo(n,i,l,t)}switch(e){case"input":Ho(n,r);break;case"textarea":Da(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,o=r.value,o!=null?Gt(n,!!r.multiple,o,!1):e!==!!r.multiple&&(r.defaultValue!=null?Gt(n,!!r.multiple,r.defaultValue,!0):Gt(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(t.stateNode===null)throw Error($(162));t.stateNode.nodeValue=t.memoizedProps;return;case 3:n=t.stateNode,n.hydrate&&(n.hydrate=!1,ru(n.containerInfo));return;case 12:return;case 13:t.memoizedState!==null&&(pl=ue(),bc(t.child,!0)),Yc(t);return;case 19:Yc(t);return;case 17:return;case 23:case 24:bc(t,t.memoizedState!==null);return}throw Error($(163))}function Yc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Tp),t.forEach(function(r){var s=Up.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function jp(e,t){return e!==null&&(e=e.memoizedState,e===null||e.dehydrated!==null)?(t=t.memoizedState,t!==null&&t.dehydrated===null):!1}var Op=Math.ceil,Fs=Nt.ReactCurrentDispatcher,cl=Nt.ReactCurrentOwner,O=0,ge=null,Z=null,fe=0,Mt=0,fl=ht(0),oe=0,Ds=null,yn=0,xr=0,vn=0,dl=0,hl=null,pl=0,gl=1/0;function wn(){gl=ue()+500}var N=null,Is=!1,ml=null,Ve=null,wt=!1,Cr=null,$r=90,yl=[],vl=[],et=null,Er=0,wl=null,zs=-1,tt=0,Ms=0,kr=null,Us=!1;function Ce(){return O&48?ue():zs!==-1?zs:zs=ue()}function St(e){if(e=e.mode,!(e&2))return 1;if(!(e&4))return dn()===99?1:2;if(tt===0&&(tt=yn),vp.transition!==0){Ms!==0&&(Ms=hl!==null?hl.pendingLanes:0),e=tt;var t=4186112&~Ms;return t&=-t,t===0&&(e=4186112&~e,t=e&-e,t===0&&(t=8192)),t}return e=dn(),O&4&&e===98?e=ns(12,tt):(e=xh(e),e=ns(e,tt)),e}function xt(e,t,n){if(50<Er)throw Er=0,wl=null,Error($(185));if(e=Bs(e,t),e===null)return null;rs(e,t,n),e===ge&&(vn|=t,oe===4&&Sn(e,fe));var r=dn();t===1?O&8&&!(O&48)?Sl(e):(Ae(e,n),O===0&&(wn(),ze())):(!(O&4)||r!==98&&r!==99||(et===null?et=new Set([e]):et.add(e)),Ae(e,n)),hl=e}function Bs(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}function Ae(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,s=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var l=31-ct(i),a=1<<l,u=o[l];if(u===-1){if(!(a&r)||a&s){u=t,en(a);var f=z;o[l]=10<=f?u+250:6<=f?u+5e3:-1}}else u<=t&&(e.expiredLanes|=a);i&=~a}if(r=Xn(e,e===ge?fe:0),t=z,r===0)n!==null&&(n!==Ii&&Fi(n),e.callbackNode=null,e.callbackPriority=0);else{if(n!==null){if(e.callbackPriority===t)return;n!==Ii&&Fi(n)}t===15?(n=Sl.bind(null,e),Xe===null?(Xe=[n],vs=_i(ys,rc)):Xe.push(n),n=Ii):t===14?n=ar(99,Sl.bind(null,e)):(n=Ch(t),n=ar(n,Zc.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function Zc(e){if(zs=-1,Ms=tt=0,O&48)throw Error($(327));var t=e.callbackNode;if(Ct()&&e.callbackNode!==t)return null;var n=Xn(e,e===ge?fe:0);if(n===0)return null;var r=n,s=O;O|=16;var o=rf();(ge!==e||fe!==r)&&(wn(),xn(e,r));do try{_p();break}catch(l){nf(e,l)}while(1);if(Mi(),Fs.current=o,O=s,Z!==null?r=0:(ge=null,fe=0,r=oe),yn&vn)xn(e,0);else if(r!==0){if(r===2&&(O|=64,e.hydrate&&(e.hydrate=!1,ji(e.containerInfo)),n=cu(e),n!==0&&(r=Pr(e,n))),r===1)throw t=Ds,xn(e,0),Sn(e,n),Ae(e,ue()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error($(345));case 2:Ut(e);break;case 3:if(Sn(e,n),(n&62914560)===n&&(r=pl+500-ue(),10<r)){if(Xn(e,0)!==0)break;if(s=e.suspendedLanes,(s&n)!==n){Ce(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=Hu(Ut.bind(null,e),r);break}Ut(e);break;case 4:if(Sn(e,n),(n&4186112)===n)break;for(r=e.eventTimes,s=-1;0<n;){var i=31-ct(n);o=1<<i,i=r[i],i>s&&(s=i),n&=~o}if(n=s,n=ue()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Op(n/1960))-n,10<n){e.timeoutHandle=Hu(Ut.bind(null,e),n);break}Ut(e);break;case 5:Ut(e);break;default:throw Error($(329))}}return Ae(e,ue()),e.callbackNode===t?Zc.bind(null,e):null}function Sn(e,t){for(t&=~dl,t&=~vn,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-ct(t),r=1<<n;e[n]=-1,t&=~r}}function Sl(e){if(O&48)throw Error($(327));if(Ct(),e===ge&&e.expiredLanes&fe){var t=fe,n=Pr(e,t);yn&vn&&(t=Xn(e,t),n=Pr(e,t))}else t=Xn(e,0),n=Pr(e,t);if(e.tag!==0&&n===2&&(O|=64,e.hydrate&&(e.hydrate=!1,ji(e.containerInfo)),t=cu(e),t!==0&&(n=Pr(e,t))),n===1)throw n=Ds,xn(e,0),Sn(e,t),Ae(e,ue()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ut(e),Ae(e,ue()),null}function Lp(){if(et!==null){var e=et;et=null,e.forEach(function(t){t.expiredLanes|=24&t.pendingLanes,Ae(t,ue())})}ze()}function ef(e,t){var n=O;O|=1;try{return e(t)}finally{O=n,O===0&&(wn(),ze())}}function tf(e,t){var n=O;O&=-2,O|=8;try{return e(t)}finally{O=n,O===0&&(wn(),ze())}}function Vs(e,t){H(fl,Mt),Mt|=t,yn|=t}function xl(){Mt=fl.current,U(fl)}function xn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,dp(n)),Z!==null)for(n=Z.return;n!==null;){var r=n;switch(r.tag){case 1:r=r.type.childContextTypes,r!=null&&gs();break;case 3:gn(),U(ye),U(ae),qi();break;case 5:Wi(r);break;case 4:gn();break;case 13:U(W);break;case 19:U(W);break;case 10:Ui(r);break;case 23:case 24:xl()}n=n.return}ge=e,Z=Et(e.current,null),fe=Mt=yn=t,oe=0,Ds=null,dl=vn=xr=0}function nf(e,t){do{var n=Z;try{if(Mi(),pr.current=Rs,As){for(var r=b.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}As=!1}if(gr=0,se=ce=b=null,mr=!1,cl.current=null,n===null||n.return===null){oe=1,Ds=t,Z=null;break}e:{var o=e,i=n.return,l=n,a=t;if(t=fe,l.flags|=2048,l.firstEffect=l.lastEffect=null,a!==null&&typeof a=="object"&&typeof a.then=="function"){var u=a;if(!(l.mode&2)){var f=l.alternate;f?(l.updateQueue=f.updateQueue,l.memoizedState=f.memoizedState,l.lanes=f.lanes):(l.updateQueue=null,l.memoizedState=null)}var p=(W.current&1)!==0,c=i;do{var v;if(v=c.tag===13){var m=c.memoizedState;if(m!==null)v=m.dehydrated!==null;else{var y=c.memoizedProps;v=y.fallback===void 0?!1:y.unstable_avoidThisFallback!==!0?!0:!p}}if(v){var h=c.updateQueue;if(h===null){var d=new Set;d.add(u),c.updateQueue=d}else h.add(u);if(!(c.mode&2)){if(c.flags|=64,l.flags|=16384,l.flags&=-2981,l.tag===1)if(l.alternate===null)l.tag=17;else{var g=mt(-1,1);g.tag=2,yt(l,g)}l.lanes|=1;break e}a=void 0,l=t;var w=o.pingCache;if(w===null?(w=o.pingCache=new Pp,a=new Set,w.set(u,a)):(a=w.get(u),a===void 0&&(a=new Set,w.set(u,a))),!a.has(l)){a.add(l);var S=Mp.bind(null,o,u,l);u.then(S,S)}c.flags|=4096,c.lanes=t;break e}c=c.return}while(c!==null);a=Error((Qt(l.type)||"A React component")+` suspended while rendering, but no fallback UI was specified.
|
|
41
41
|
|
|
42
|
-
Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`)}oe!==5&&(oe=2),a=sl(a,l),c=i;do{switch(c.tag){case 3:o=a,c.flags|=4096,t&=-t,c.lanes|=t;var T=Hc(c,o,t);ic(c,T);break e;case 1:o=a;var C=c.type,P=c.stateNode;if(!(c.flags&64)&&(typeof C.getDerivedStateFromError=="function"||P!==null&&typeof P.componentDidCatch=="function"&&(Ve===null||!Ve.has(P)))){c.flags|=4096,t&=-t,c.lanes|=t;var j=Wc(c,o,t);ic(c,j);break e}}c=c.return}while(c!==null)}of(n)}catch(A){t=A,Z===n&&n!==null&&(Z=n=n.return);continue}break}while(1)}function rf(){var e=Fs.current;return Fs.current=Rs,e===null?Rs:e}function Pr(e,t){var n=O;O|=16;var r=rf();ge===e&&fe===t||xn(e,t);do try{Op();break}catch(s){nf(e,s)}while(1);if(zi(),O=n,Fs.current=r,Z!==null)throw Error($(261));return ge=null,fe=0,oe}function Op(){for(;Z!==null;)sf(Z)}function Lp(){for(;Z!==null&&!hp();)sf(Z)}function sf(e){var t=uf(e.alternate,e,Mt);e.memoizedProps=e.pendingProps,t===null?of(e):Z=t,ul.current=null}function of(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&2048){if(n=$p(t),n!==null){n.flags&=2047,Z=n;return}e!==null&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}else{if(n=Cp(n,t,Mt),n!==null){Z=n;return}if(n=t,n.tag!==24&&n.tag!==23||n.memoizedState===null||Mt&1073741824||!(n.mode&4)){for(var r=0,s=n.child;s!==null;)r|=s.lanes|s.childLanes,s=s.sibling;n.childLanes=r}e!==null&&!(e.flags&2048)&&(e.firstEffect===null&&(e.firstEffect=t.firstEffect),t.lastEffect!==null&&(e.lastEffect!==null&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(e.lastEffect!==null?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}if(t=t.sibling,t!==null){Z=t;return}Z=t=e}while(t!==null);oe===0&&(oe=5)}function Ut(e){var t=dn();return Ft(99,Rp.bind(null,e,t)),null}function Rp(e,t){do Ct();while(Cr!==null);if(O&48)throw Error($(327));var n=e.finishedWork;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error($(177));e.callbackNode=null;var r=n.lanes|n.childLanes,s=r,o=e.pendingLanes&~s;e.pendingLanes=s,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=s,e.mutableReadLanes&=s,e.entangledLanes&=s,s=e.entanglements;for(var i=e.eventTimes,l=e.expirationTimes;0<o;){var a=31-ct(o),u=1<<a;s[a]=0,i[a]=-1,l[a]=-1,o&=~u}if(et!==null&&!(r&24)&&et.has(e)&&et.delete(e),e===ge&&(Z=ge=null,fe=0),1<n.flags?n.lastEffect!==null?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,r!==null){if(s=O,O|=32,ul.current=null,Pi=ss,i=ju(),Ci(i)){if("selectionStart"in i)l={start:i.selectionStart,end:i.selectionEnd};else e:if(l=(l=i.ownerDocument)&&l.defaultView||window,(u=l.getSelection&&l.getSelection())&&u.rangeCount!==0){l=u.anchorNode,o=u.anchorOffset,a=u.focusNode,u=u.focusOffset;try{l.nodeType,a.nodeType}catch{l=null;break e}var f=0,p=-1,c=-1,v=0,m=0,y=i,h=null;t:for(;;){for(var d;y!==l||o!==0&&y.nodeType!==3||(p=f+o),y!==a||u!==0&&y.nodeType!==3||(c=f+u),y.nodeType===3&&(f+=y.nodeValue.length),(d=y.firstChild)!==null;)h=y,y=d;for(;;){if(y===i)break t;if(h===l&&++v===o&&(p=f),h===a&&++m===u&&(c=f),(d=y.nextSibling)!==null)break;y=h,h=y.parentNode}y=d}l=p===-1||c===-1?null:{start:p,end:c}}else l=null;l=l||{start:0,end:0}}else l=null;Ti={focusedElem:i,selectionRange:l},ss=!1,kr=null,Us=!1,N=r;do try{_p()}catch(A){if(N===null)throw Error($(330));$t(N,A),N=N.nextEffect}while(N!==null);kr=null,N=r;do try{for(i=e;N!==null;){var g=N.flags;if(g&16&&Bn(N.stateNode,""),g&128){var w=N.alternate;if(w!==null){var S=w.ref;S!==null&&(typeof S=="function"?S(null):S.current=null)}}switch(g&1038){case 2:Gc(N),N.flags&=-3;break;case 6:Gc(N),N.flags&=-3,al(N.alternate,N);break;case 1024:N.flags&=-1025;break;case 1028:N.flags&=-1025,al(N.alternate,N);break;case 4:al(N.alternate,N);break;case 8:l=N,Yc(i,l);var T=l.alternate;Jc(l),T!==null&&Jc(T)}N=N.nextEffect}}catch(A){if(N===null)throw Error($(330));$t(N,A),N=N.nextEffect}while(N!==null);if(S=Ti,w=ju(),g=S.focusedElem,i=S.selectionRange,w!==g&&g&&g.ownerDocument&&Au(g.ownerDocument.documentElement,g)){for(i!==null&&Ci(g)&&(w=i.start,S=i.end,S===void 0&&(S=w),"selectionStart"in g?(g.selectionStart=w,g.selectionEnd=Math.min(S,g.value.length)):(S=(w=g.ownerDocument||document)&&w.defaultView||window,S.getSelection&&(S=S.getSelection(),l=g.textContent.length,T=Math.min(i.start,l),i=i.end===void 0?T:Math.min(i.end,l),!S.extend&&T>i&&(l=i,i=T,T=l),l=Nu(g,T),o=Nu(g,i),l&&o&&(S.rangeCount!==1||S.anchorNode!==l.node||S.anchorOffset!==l.offset||S.focusNode!==o.node||S.focusOffset!==o.offset)&&(w=w.createRange(),w.setStart(l.node,l.offset),S.removeAllRanges(),T>i?(S.addRange(w),S.extend(o.node,o.offset)):(w.setEnd(o.node,o.offset),S.addRange(w)))))),w=[],S=g;S=S.parentNode;)S.nodeType===1&&w.push({element:S,left:S.scrollLeft,top:S.scrollTop});for(typeof g.focus=="function"&&g.focus(),g=0;g<w.length;g++)S=w[g],S.element.scrollLeft=S.left,S.element.scrollTop=S.top}ss=!!Pi,Ti=Pi=null,e.current=n,N=r;do try{for(g=e;N!==null;){var C=N.flags;if(C&36&&Tp(g,N.alternate,N),C&128){w=void 0;var P=N.ref;if(P!==null){var j=N.stateNode;switch(N.tag){case 5:w=j;break;default:w=j}typeof P=="function"?P(w):P.current=w}}N=N.nextEffect}}catch(A){if(N===null)throw Error($(330));$t(N,A),N=N.nextEffect}while(N!==null);N=null,gp(),O=s}else e.current=n;if(wt)wt=!1,Cr=e,$r=t;else for(N=r;N!==null;)t=N.nextEffect,N.nextEffect=null,N.flags&8&&(C=N,C.sibling=null,C.stateNode=null),N=t;if(r=e.pendingLanes,r===0&&(Ve=null),r===1?e===vl?Er++:(Er=0,vl=e):Er=0,n=n.stateNode,_t&&typeof _t.onCommitFiberRoot=="function")try{_t.onCommitFiberRoot(Li,n,void 0,(n.current.flags&64)===64)}catch{}if(Ae(e,ue()),Is)throw Is=!1,e=gl,gl=null,e;return O&8||ze(),null}function _p(){for(;N!==null;){var e=N.alternate;Us||kr===null||(N.flags&8?Ga(N,kr)&&(Us=!0):N.tag===13&&Np(e,N)&&Ga(N,kr)&&(Us=!0));var t=N.flags;t&256&&Pp(e,N),!(t&512)||wt||(wt=!0,ar(97,function(){return Ct(),null})),N=N.nextEffect}}function Ct(){if($r!==90){var e=97<$r?97:$r;return $r=90,Ft(e,Dp)}return!1}function Fp(e,t){ml.push(t,e),wt||(wt=!0,ar(97,function(){return Ct(),null}))}function lf(e,t){yl.push(t,e),wt||(wt=!0,ar(97,function(){return Ct(),null}))}function Dp(){if(Cr===null)return!1;var e=Cr;if(Cr=null,O&48)throw Error($(331));var t=O;O|=32;var n=yl;yl=[];for(var r=0;r<n.length;r+=2){var s=n[r],o=n[r+1],i=s.destroy;if(s.destroy=void 0,typeof i=="function")try{i()}catch(a){if(o===null)throw Error($(330));$t(o,a)}}for(n=ml,ml=[],r=0;r<n.length;r+=2){s=n[r],o=n[r+1];try{var l=s.create;s.destroy=l()}catch(a){if(o===null)throw Error($(330));$t(o,a)}}for(l=e.current.firstEffect;l!==null;)e=l.nextEffect,l.nextEffect=null,l.flags&8&&(l.sibling=null,l.stateNode=null),l=e;return O=t,ze(),!0}function af(e,t,n){t=sl(n,t),t=Hc(e,t,1),yt(e,t),t=Ce(),e=Bs(e,1),e!==null&&(rs(e,1,t),Ae(e,t))}function $t(e,t){if(e.tag===3)af(e,e,t);else for(var n=e.return;n!==null;){if(n.tag===3){af(n,e,t);break}else if(n.tag===1){var r=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Ve===null||!Ve.has(r))){e=sl(t,e);var s=Wc(n,e,1);if(yt(n,s),s=Ce(),n=Bs(n,1),n!==null)rs(n,1,s),Ae(n,s);else if(typeof r.componentDidCatch=="function"&&(Ve===null||!Ve.has(r)))try{r.componentDidCatch(t,e)}catch{}break}}n=n.return}}function Ip(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Ce(),e.pingedLanes|=e.suspendedLanes&n,ge===e&&(fe&n)===n&&(oe===4||oe===3&&(fe&62914560)===fe&&500>ue()-hl?xn(e,0):fl|=n),Ae(e,t)}function zp(e,t){var n=e.stateNode;n!==null&&n.delete(t),t=0,t===0&&(t=e.mode,t&2?t&4?(tt===0&&(tt=yn),t=tn(62914560&~tt),t===0&&(t=4194304)):t=dn()===99?1:2:t=1),n=Ce(),e=Bs(e,t),e!==null&&(rs(e,t,n),Ae(e,n))}var uf;uf=function(e,t,n){var r=t.lanes;if(e!==null)if(e.memoizedProps!==t.pendingProps||ye.current)Fe=!0;else if(n&r)Fe=!!(e.flags&16384);else{switch(Fe=!1,t.tag){case 3:Rc(t),Ki();break;case 5:pc(t);break;case 1:ve(t.type)&&ms(t);break;case 4:Vi(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var s=t.type._context;H(ws,s._currentValue),s._currentValue=r;break;case 13:if(t.memoizedState!==null)return n&t.child.childLanes?_c(e,t,n):(H(W,W.current&1),t=Ze(e,t,n),t!==null?t.sibling:null);H(W,W.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&64){if(r)return Mc(e,t,n);t.flags|=64}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),H(W,W.current),r)break;return null;case 23:case 24:return t.lanes=0,Zi(e,t,n)}return Ze(e,t,n)}else Fe=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,s=fn(t,ae.current),pn(t,n),s=Ji(null,t,r,e,s,n),t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,ve(r)){var o=!0;ms(t)}else o=!1;t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,Ui(t);var i=r.getDerivedStateFromProps;typeof i=="function"&&Cs(t,r,i,e),s.updater=$s,t.stateNode=s,s._reactInternals=t,Bi(t,r,e,n),t=tl(null,t,r,!0,o,n)}else t.tag=0,Se(null,t,s,n),t=t.child;return t;case 16:s=t.elementType;e:{switch(e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=s._init,s=o(s._payload),t.type=s,o=t.tag=Up(s),e=_e(s,e),o){case 0:t=el(null,t,s,e,n);break e;case 1:t=Lc(null,t,s,e,n);break e;case 11:t=Nc(null,t,s,e,n);break e;case 14:t=Ac(null,t,s,_e(s.type,e),r,n);break e}throw Error($(306,s,""))}return t;case 0:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:_e(r,s),el(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:_e(r,s),Lc(e,t,r,s,n);case 3:if(Rc(t),r=t.updateQueue,e===null||r===null)throw Error($(282));if(r=t.pendingProps,s=t.memoizedState,s=s!==null?s.element:null,oc(e,t),ur(t,r,null,n),r=t.memoizedState.element,r===s)Ki(),t=Ze(e,t,n);else{if(s=t.stateNode,(o=s.hydrate)&&(vt=ln(t.stateNode.containerInfo.firstChild),Xe=t,o=Ue=!0),o){if(e=s.mutableSourceEagerHydrationData,e!=null)for(s=0;s<e.length;s+=2)o=e[s],o._workInProgressVersionPrimary=e[s+1],mn.push(o);for(n=hc(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|1024,n=n.sibling}else Se(e,t,r,n),Ki();t=t.child}return t;case 5:return pc(t),e===null&&Wi(t),r=t.type,s=t.pendingProps,o=e!==null?e.memoizedProps:null,i=s.children,Ni(r,s)?i=null:o!==null&&Ni(r,o)&&(t.flags|=16),Oc(e,t),Se(e,t,i,n),t.child;case 6:return e===null&&Wi(t),null;case 13:return _c(e,t,n);case 4:return Vi(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ps(t,null,r,n):Se(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:_e(r,s),Nc(e,t,r,s,n);case 7:return Se(e,t,t.pendingProps,n),t.child;case 8:return Se(e,t,t.pendingProps.children,n),t.child;case 12:return Se(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,s=t.pendingProps,i=t.memoizedProps,o=s.value;var l=t.type._context;if(H(ws,l._currentValue),l._currentValue=o,i!==null)if(l=i.value,o=Pe(l,o)?0:(typeof r._calculateChangedBits=="function"?r._calculateChangedBits(l,o):1073741823)|0,o===0){if(i.children===s.children&&!ye.current){t=Ze(e,t,n);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var a=l.dependencies;if(a!==null){i=l.child;for(var u=a.firstContext;u!==null;){if(u.context===r&&u.observedBits&o){l.tag===1&&(u=mt(-1,n&-n),u.tag=2,yt(l,u)),l.lanes|=n,u=l.alternate,u!==null&&(u.lanes|=n),sc(l.return,n),a.lanes|=n;break}u=u.next}}else i=l.tag===10&&l.type===t.type?null:l.child;if(i!==null)i.return=l;else for(i=l;i!==null;){if(i===t){i=null;break}if(l=i.sibling,l!==null){l.return=i.return,i=l;break}i=i.return}l=i}Se(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,o=t.pendingProps,r=o.children,pn(t,n),s=Te(s,o.unstable_observedBits),r=r(s),t.flags|=1,Se(e,t,r,n),t.child;case 14:return s=t.type,o=_e(s,t.pendingProps),o=_e(s.type,o),Ac(e,t,s,o,r,n);case 15:return jc(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:_e(r,s),e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,ve(r)?(e=!0,ms(t)):e=!1,pn(t,n),cc(t,r,s),Bi(t,r,s,n),tl(null,t,r,!0,e,n);case 19:return Mc(e,t,n);case 23:return Zi(e,t,n);case 24:return Zi(e,t,n)}throw Error($(156,t.tag))};function Mp(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function je(e,t,n,r){return new Mp(e,t,n,r)}function xl(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Up(e){if(typeof e=="function")return xl(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Wr)return 11;if(e===br)return 14}return 2}function Et(e,t){var n=e.alternate;return n===null?(n=je(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Hs(e,t,n,r,s,o){var i=2;if(r=e,typeof e=="function")xl(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case ot:return Cn(n.children,s,o,t);case Na:i=8,s|=16;break;case Oo:i=8,s|=1;break;case In:return e=je(12,n,t,s|8),e.elementType=In,e.type=In,e.lanes=o,e;case zn:return e=je(13,n,t,s),e.type=zn,e.elementType=zn,e.lanes=o,e;case Kr:return e=je(19,n,t,s),e.elementType=Kr,e.lanes=o,e;case Io:return Cl(n,s,o,t);case zo:return e=je(24,n,t,s),e.elementType=zo,e.lanes=o,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Lo:i=10;break e;case Ro:i=9;break e;case Wr:i=11;break e;case br:i=14;break e;case _o:i=16,r=null;break e;case Fo:i=22;break e}throw Error($(130,e==null?e:typeof e,""))}return t=je(i,n,t,s),t.elementType=e,t.type=r,t.lanes=o,t}function Cn(e,t,n,r){return e=je(7,e,r,t),e.lanes=n,e}function Cl(e,t,n,r){return e=je(23,e,r,t),e.elementType=Io,e.lanes=n,e}function $l(e,t,n){return e=je(6,e,null,t),e.lanes=n,e}function El(e,t,n){return t=je(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Bp(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=ci(0),this.expirationTimes=ci(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ci(0),this.mutableSourceEagerHydrationData=null}function Vp(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:At,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Ws(e,t,n,r){var s=t.current,o=Ce(),i=St(s);e:if(n){n=n._reactInternals;t:{if(Ot(n)!==n||n.tag!==1)throw Error($(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(ve(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(l!==null);throw Error($(171))}if(n.tag===1){var a=n.type;if(ve(a)){n=Ju(n,a,l);break e}}n=l}else n=pt;return t.context===null?t.context=n:t.pendingContext=n,t=mt(o,i),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),yt(s,t),xt(s,i,o),i}function kl(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function cf(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Pl(e,t){cf(e,t),(e=e.alternate)&&cf(e,t)}function Hp(){return null}function Tl(e,t,n){var r=n!=null&&n.hydrationOptions!=null&&n.hydrationOptions.mutableSources||null;if(n=new Bp(e,t,n!=null&&n.hydrate===!0),t=je(3,null,null,t===2?7:t===1?3:0),n.current=t,t.stateNode=n,Ui(t),e[an]=n.current,Iu(e.nodeType===8?e.parentNode:e),r)for(e=0;e<r.length;e++){t=r[e];var s=t._getVersion;s=s(t._source),n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[t,s]:n.mutableSourceEagerHydrationData.push(t,s)}this._internalRoot=n}Tl.prototype.render=function(e){Ws(e,this._internalRoot,null,null)},Tl.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Ws(null,e,null,function(){t[an]=null})};function Tr(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Wp(e,t){if(t||(t=e?e.nodeType===9?e.documentElement:e.firstChild:null,t=!(!t||t.nodeType!==1||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new Tl(e,0,t?{hydrate:!0}:void 0)}function Ks(e,t,n,r,s){var o=n._reactRootContainer;if(o){var i=o._internalRoot;if(typeof s=="function"){var l=s;s=function(){var u=kl(i);l.call(u)}}Ws(t,i,e,s)}else{if(o=n._reactRootContainer=Wp(n,r),i=o._internalRoot,typeof s=="function"){var a=s;s=function(){var u=kl(i);a.call(u)}}tf(function(){Ws(t,i,e,s)})}return kl(i)}Ya=function(e){if(e.tag===13){var t=Ce();xt(e,4,t),Pl(e,4)}},si=function(e){if(e.tag===13){var t=Ce();xt(e,67108864,t),Pl(e,67108864)}},Xa=function(e){if(e.tag===13){var t=Ce(),n=St(e);xt(e,n,t),Pl(e,n)}},Za=function(e,t){return t()},Yo=function(e,t,n){switch(t){case"input":if(Vo(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var s=ps(r);if(!s)throw Error($(90));Oa(r),Vo(r,s)}}}break;case"textarea":Da(e,n);break;case"select":t=n.value,t!=null&&Gt(e,!!n.multiple,t,!1)}},Xo=ef,Ka=function(e,t,n,r,s){var o=O;O|=4;try{return Ft(98,e.bind(null,t,n,r,s))}finally{O=o,O===0&&(wn(),ze())}},Zo=function(){!(O&49)&&(jp(),Ct())},ba=function(e,t){var n=O;O|=2;try{return e(t)}finally{O=n,O===0&&(wn(),ze())}};function ff(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Tr(t))throw Error($(200));return Vp(e,t,null,n)}var Kp={Events:[lr,un,ps,Ha,Wa,Ct,{current:!1}]},Nr={findFiberByHostInstance:Lt,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},bp={bundleType:Nr.bundleType,version:Nr.version,rendererPackageName:Nr.rendererPackageName,rendererConfig:Nr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Nt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Qa(e),e===null?null:e.stateNode},findFiberByHostInstance:Nr.findFiberByHostInstance||Hp,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var bs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!bs.isDisabled&&bs.supportsFiber)try{Li=bs.inject(bp),_t=bs}catch{}}ke.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Kp,ke.createPortal=ff,ke.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error($(188)):Error($(268,Object.keys(e)));return e=Qa(t),e=e===null?null:e.stateNode,e},ke.flushSync=function(e,t){var n=O;if(n&48)return e(t);O|=1;try{if(e)return Ft(99,e.bind(null,t))}finally{O=n,ze()}},ke.hydrate=function(e,t,n){if(!Tr(t))throw Error($(200));return Ks(null,e,t,!0,n)},ke.render=function(e,t,n){if(!Tr(t))throw Error($(200));return Ks(null,e,t,!1,n)},ke.unmountComponentAtNode=function(e){if(!Tr(e))throw Error($(40));return e._reactRootContainer?(tf(function(){Ks(null,null,e,!1,function(){e._reactRootContainer=null,e[an]=null})}),!0):!1},ke.unstable_batchedUpdates=ef,ke.unstable_createPortal=function(e,t){return ff(e,t,2<arguments.length&&arguments[2]!==void 0?arguments[2]:null)},ke.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Tr(n))throw Error($(200));if(e==null||e._reactInternals===void 0)throw Error($(38));return Ks(e,t,n,!1,r)},ke.version="17.0.2";function df(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(df)}catch(e){console.error(e)}}df(),xa.exports=ke;var Nl=xa.exports;const qp=Q(Nl),ay="",de=st.createContext({posts:[],authors:[],tags:[],action:"",lastPage:"",page:"",pageData:{},dispatch:(e,t)=>{},searchIndex:null,indexComplete:!1,searchValue:"",t:()=>{},dir:"ltr"});class Jp extends _.Component{constructor(){super(...arguments);wo(this,"handleLoad",()=>{this.setupFrameBaseStyle()})}componentDidMount(){this.node.addEventListener("load",this.handleLoad)}componentWillUnmout(){this.node.removeEventListener("load",this.handleLoad)}setupFrameBaseStyle(){this.node.contentDocument&&(this.iframeHtml=this.node.contentDocument.documentElement,this.iframeHtml.setAttribute("dir",this.props.searchdir),this.iframeHead=this.node.contentDocument.head,this.iframeRoot=this.node.contentDocument.body,this.forceUpdate())}render(){const{children:n,head:r,title:s="",style:o={},...i}=this.props;return E.jsxs("iframe",{srcDoc:"<!DOCTYPE html>",...i,ref:l=>this.node=l,title:s,style:o,frameBorder:"0",children:[this.iframeHead&&Nl.createPortal(r,this.iframeHead),this.iframeRoot&&Nl.createPortal(n,this.iframeRoot)]})}}const Qp=e=>_.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",height:16,width:16,...e},_.createElement("path",{d:"M23.38,21.62l-6.53-6.53a9.15,9.15,0,0,0,1.9-5.59,9.27,9.27,0,1,0-3.66,7.36l6.53,6.53a1.26,1.26,0,0,0,1.76,0A1.25,1.25,0,0,0,23.38,21.62ZM2.75,9.5A6.75,6.75,0,1,1,9.5,16.25,6.76,6.76,0,0,1,2.75,9.5Z",fill:"currentColor"})),Gp=e=>_.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",height:16,width:16,...e},_.createElement("path",{strokeLinecap:"round",strokeWidth:.4,fill:"currentColor",stroke:"#000000",strokeLinejoin:"round",d:"M.44,21.44a1.49,1.49,0,0,0,0,2.12,1.5,1.5,0,0,0,2.12,0l9.26-9.26a.25.25,0,0,1,.36,0l9.26,9.26a1.5,1.5,0,0,0,2.12,0,1.49,1.49,0,0,0,0-2.12L14.3,12.18a.25.25,0,0,1,0-.36l9.26-9.26A1.5,1.5,0,0,0,21.44.44L12.18,9.7a.25.25,0,0,1-.36,0L2.56.44A1.5,1.5,0,0,0,.44,2.56L9.7,11.82a.25.25,0,0,1,0,.36Z"})),Yp=e=>_.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:16,width:16,viewBox:"0 0 16 16",...e},_.createElement("title",null,"circle anim"),_.createElement("g",{fill:"#40413F",className:"nc-icon-wrapper"},_.createElement("g",{className:"nc-loop-circle-16-icon-f"},_.createElement("path",{d:"M8 16a8 8 0 1 1 8-8 8.009 8.009 0 0 1-8 8zM8 2a6 6 0 1 0 6 6 6.006 6.006 0 0 0-6-6z",fill:"#D4D4D4"}),_.createElement("path",{d:"M8 0v2a6.006 6.006 0 0 1 6 6h2a8.009 8.009 0 0 0-8-8z","data-color":"color-2"})),_.createElement("style",null,".nc-loop-circle-16-icon-f{--animation-duration:0.5s;transform-origin:8px 8px;animation:nc-loop-circle-anim var(--animation-duration) infinite linear}@keyframes nc-loop-circle-anim{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}"))),hf=10,Xp=10,Zp=()=>({modalContainer:{zIndex:"3999999",position:"fixed",left:"0",top:"0",width:"100%",height:"100%",overflow:"hidden"},frame:{common:{margin:"auto",position:"relative",padding:"0",outline:"0",width:"100%",opacity:"1",overflow:"hidden",height:"100%"}},page:{links:{width:"600px"}}});class pf extends st.Component{componentDidMount(){this.sendContainerHeightChangeEvent()}sendContainerHeightChangeEvent(){}componentDidUpdate(){this.sendContainerHeightChangeEvent()}handlePopupClose(t){t.preventDefault(),t.target===t.currentTarget&&this.context.dispatch("update",{showPopup:!1})}render(){return E.jsx(yg,{})}}wo(pf,"contextType",de);function eg(){const{searchValue:e,dispatch:t,inputRef:n,t:r}=_.useContext(de),s=_.useRef(null);_.useEffect(()=>{setTimeout(()=>{var a;(a=n==null?void 0:n.current)==null||a.focus()},150);let i=a=>{a.key==="Escape"&&t("update",{showPopup:!1})};const l=s==null?void 0:s.current;return l==null||l.ownerDocument.removeEventListener("keyup",i),l==null||l.ownerDocument.addEventListener("keyup",i),()=>{l==null||l.ownerDocument.removeEventListener("keyup",i)}},[t,n]);let o="z-10 relative flex items-center py-5 px-4 sm:px-7 bg-white rounded-t-lg shadow";return e||(o="z-10 relative flex items-center py-5 px-4 sm:px-7 bg-white rounded-lg"),E.jsxs("div",{className:o,ref:s,children:[E.jsx("div",{className:"flex items-center justify-center w-4 h-4 me-3",children:E.jsx(tg,{})}),E.jsx("input",{ref:n,value:e||"",onChange:i=>{t("update",{searchValue:i.target.value})},onKeyDown:i=>{(i.key==="ArrowUp"||i.key==="ArrowDown")&&i.preventDefault()},className:"grow -my-5 py-5 -ms-3 ps-3 text-[1.65rem] focus-visible:outline-none placeholder:text-gray-400 outline-none truncate",placeholder:r("Search posts, tags and authors")}),E.jsx(ng,{}),E.jsx(rg,{})]})}function tg(){const{searchValue:e="",dispatch:t}=_.useContext(de);return e?E.jsx("button",{alt:"Clear",className:"-mb-[1px]",onClick:()=>{t("update",{searchValue:""})},children:E.jsx(Gp,{className:"text-neutral-900 hover:text-neutral-500 h-[1.1rem] w-[1.1rem]"})}):E.jsx(Qp,{className:"text-neutral-900",alt:"Search"})}function ng(){const{indexComplete:e,searchValue:t}=_.useContext(de);return!e&&t?E.jsx(Yp,{className:"shrink-0"}):null}function rg(){const{dispatch:e,t}=_.useContext(de);return E.jsx("button",{className:"ms-3 text-sm text-neutral-500 sm:hidden",alt:"Cancel",onClick:()=>{e("update",{showPopup:!1})},children:t("Cancel")})}function sg({tag:e,selectedResult:t,setSelectedResult:n}){const{name:r,url:s,id:o}=e;let i="flex items-center py-3 -mx-4 sm:-mx-7 px-4 sm:px-7 cursor-pointer";return o===t&&(i+=" bg-neutral-100"),E.jsxs("div",{className:i,onClick:()=>{s&&(window.location.href=s)},onMouseEnter:()=>{n(o)},children:[E.jsx("p",{className:"me-2 text-sm font-bold text-neutral-400",children:"#"}),E.jsx("h2",{className:"text-[1.65rem] font-medium leading-tight text-neutral-900 truncate",children:r})]})}function og({tags:e,selectedResult:t,setSelectedResult:n}){const{t:r}=_.useContext(de);if(!(e!=null&&e.length))return null;const s=e.map(o=>E.jsx(sg,{tag:o,selectedResult:t,setSelectedResult:n},o.name));return E.jsxs("div",{className:"border-t border-gray-200 py-3 px-4 sm:px-7",children:[E.jsx("h1",{className:"uppercase text-xs text-neutral-400 font-semibold mb-1 tracking-wide",children:r("Tags")}),s]})}function ig({post:e,selectedResult:t,setSelectedResult:n}){const{searchValue:r}=_.useContext(de),{title:s,excerpt:o,url:i,id:l}=e;let a="py-3 -mx-4 sm:-mx-7 px-4 sm:px-7 cursor-pointer";return l===t&&(a+=" bg-neutral-100"),E.jsxs("div",{className:a,onClick:()=>{i&&(window.location.href=i)},onMouseEnter:()=>{n(l)},children:[E.jsx("h2",{className:"text-[1.65rem] font-medium leading-tight text-neutral-800",children:E.jsx(mf,{text:s,highlight:r,isExcerpt:!1})}),E.jsx("p",{className:"text-neutral-400 leading-normal text-sm mt-0 mb-0 truncate",children:E.jsx(mf,{text:o,highlight:r,isExcerpt:!0})})]})}function lg({text:e,highlight:t}){let n="";t==null||t.split(" ").forEach((i,l)=>{const a=String(i).replace(/\W/g,"\\&");l>0?n+="|^"+a+"|\\s"+a:n="^"+a+"|\\s"+a});const r=new RegExp(`${n}`,"ig");let s=e==null?void 0:e.matchAll(r);const o=[];for(const i of s)o.push({startIdx:i==null?void 0:i.index,endIdx:((i==null?void 0:i.index)||0)+((i==null?void 0:i[0].length)||0)});return o}function gf({text:e,highlight:t}){const n=lg({text:e,highlight:t}),r=[];let s=0;return n.forEach(o=>{s===o.startIdx?(r.push({text:e==null?void 0:e.slice(o.startIdx,o.endIdx),type:"highlight"}),s=o.endIdx):(r.push({text:e==null?void 0:e.slice(s,o.startIdx),type:"normal"}),r.push({text:e==null?void 0:e.slice(o.startIdx,o.endIdx),type:"highlight"}),s=o.endIdx)}),s<(e==null?void 0:e.length)&&r.push({text:e==null?void 0:e.slice(s,e.length),type:"normal"}),{parts:r,highlightIndexes:n}}function mf({text:e="",highlight:t="",isExcerpt:n}){var i;e=e||"",t=t||"";let{parts:r,highlightIndexes:s}=gf({text:e,highlight:t});if(n&&(s!=null&&s[0])){const l=(i=s==null?void 0:s[0])==null?void 0:i.startIdx;if(l>50){e="..."+(e==null?void 0:e.slice(l-20));const{parts:a}=gf({text:e,highlight:t});r=a}}const o=r.map((l,a)=>(l==null?void 0:l.type)==="highlight"?E.jsx(st.Fragment,{children:E.jsx(ag,{word:l.text,isExcerpt:n})},a):E.jsx(st.Fragment,{children:l.text},a));return E.jsx(E.Fragment,{children:o})}function ag({word:e,isExcerpt:t}){return t?E.jsx(E.Fragment,{children:E.jsx("span",{className:"font-bold",children:e})}):E.jsx(E.Fragment,{children:E.jsx("span",{className:"font-bold text-neutral-900",children:e})})}function ug({posts:e,maxPosts:t,setMaxPosts:n}){const{t:r}=_.useContext(de);return!(e!=null&&e.length)||t>=(e==null?void 0:e.length)?null:E.jsx("button",{className:"w-full my-3 p-[1rem] border border-neutral-200 hover:border-neutral-300 text-neutral-800 hover:text-black font-semibold rounded transition duration-150 ease hover:ease",onClick:()=>{const s=t+Xp;n(s)},children:r("Show more results")})}function cg({posts:e,selectedResult:t,setSelectedResult:n}){const{t:r}=_.useContext(de),[s,o]=_.useState(hf),[i,l]=_.useState([]);if(_.useEffect(()=>{o(hf)},[e]),_.useEffect(()=>{l(e==null?void 0:e.slice(0,s+1))},[s,e]),!(e!=null&&e.length))return null;function a(){return i.map(u=>E.jsx(ig,{post:u,selectedResult:t,setSelectedResult:n},u.title))}return E.jsxs("div",{className:"border-t border-neutral-200 py-3 px-4 sm:px-7",children:[E.jsx("h1",{className:"uppercase text-xs text-neutral-400 font-semibold mb-1 tracking-wide",children:r("Posts")}),E.jsx(a,{}),E.jsx(ug,{setMaxPosts:o,maxPosts:s,posts:e})]})}function fg({author:e,selectedResult:t,setSelectedResult:n}){const{name:r,profile_image:s,url:o,id:i}=e;let l="py-[1rem] -mx-4 sm:-mx-7 px-4 sm:px-7 cursor-pointer flex items-center";return i===t&&(l+=" bg-neutral-100"),E.jsxs("div",{className:l,onClick:()=>{o&&(window.location.href=o)},onMouseEnter:()=>{n(i)},children:[E.jsx(dg,{name:r,avatar:s}),E.jsx("h2",{className:"text-[1.65rem] font-medium leading-tight text-neutral-900 truncate",children:r})]})}function dg({name:e,avatar:t}){const n=t==null?void 0:t.length,r=e.charAt(0);return n?E.jsx("img",{className:"rounded-full bg-neutral-300 w-7 h-7 me-2 object-cover",src:t,alt:e}):E.jsx("div",{className:"rounded-full bg-neutral-200 w-7 h-7 me-2 flex items-center justify-center font-bold",children:E.jsx("span",{className:"text-neutral-400",children:r})})}function hg({authors:e,selectedResult:t,setSelectedResult:n}){const{t:r}=_.useContext(de);if(!(e!=null&&e.length))return null;const s=e.map(o=>E.jsx(fg,{author:o,selectedResult:t,setSelectedResult:n},o.name));return E.jsxs("div",{className:"border-t border-neutral-200 py-3 px-4 sm:px-7",children:[E.jsx("h1",{className:"uppercase text-xs text-neutral-400 font-semibold mb-1 tracking-wide",children:r("Authors")}),s]})}function pg(){const{searchValue:e="",searchIndex:t,indexComplete:n}=_.useContext(de);let r=null,s=[],o=[],i=[];return n&&e&&(r=t==null?void 0:t.search(e),o=(r==null?void 0:r.posts)||[],i=(r==null?void 0:r.authors)||[],s=(r==null?void 0:r.tags)||[]),i=i.filter(a=>{const u=/\/404\/$/;return!(a!=null&&a.url&&u.test(a==null?void 0:a.url))}),s=s.filter(a=>{const u=/\/404\/$/;return!(a!=null&&a.url&&u.test(a==null?void 0:a.url))}),(o==null?void 0:o.length)||(i==null?void 0:i.length)||(s==null?void 0:s.length)?E.jsx(gg,{posts:o,authors:i,tags:s}):e?E.jsx(mg,{}):null}function gg({posts:e,authors:t,tags:n}){var u;const{searchValue:r}=_.useContext(de),s=_.useMemo(()=>[...t,...n,...e],[t,n,e]),o=((u=s==null?void 0:s[0])==null?void 0:u.id)||null,[i,l]=_.useState(o),a=_.useRef(null);return _.useEffect(()=>{var f;l(((f=s==null?void 0:s[0])==null?void 0:f.id)||null)},[s]),_.useEffect(()=>{let f=c=>{const v=s.findIndex(h=>h.id===i);let m=s[v+1],y=s[v-1];if(c.key==="ArrowUp"&&y?l(y==null?void 0:y.id):c.key==="ArrowDown"&&m&&l(m==null?void 0:m.id),c.key==="Enter"){const h=s.find(d=>d.id===i);window.location.href=h==null?void 0:h.url}};const p=a==null?void 0:a.current;return p==null||p.ownerDocument.removeEventListener("keyup",f),p==null||p.ownerDocument.addEventListener("keyup",f),()=>{var c;(c=p==null?void 0:p.ownerDocument)==null||c.removeEventListener("keyup",f)}},[s,i]),r?E.jsxs("div",{className:"overflow-y-auto max-h-[calc(100vh-172px)] sm:max-h-[70vh] -mt-[1px]",ref:a,children:[E.jsx(hg,{authors:t,selectedResult:i,setSelectedResult:l}),E.jsx(og,{tags:n,selectedResult:i,setSelectedResult:l}),E.jsx(cg,{posts:e,selectedResult:i,setSelectedResult:l})]}):null}function mg(){const{t:e}=_.useContext(de);return E.jsx("div",{className:"py-4 px-7",children:E.jsx("p",{className:"text-[1.65rem] text-neutral-400 leading-normal",children:e("No matches found")})})}function yg(){const{dispatch:e}=_.useContext(de);return E.jsx(E.Fragment,{children:E.jsx("div",{className:"h-screen w-screen pt-20 antialiased z-50 relative ghost-display",onClick:t=>{t.preventDefault(),t.target===t.currentTarget&&e("update",{showPopup:!1})},children:E.jsxs("div",{className:"bg-white w-full max-w-[95vw] sm:max-w-lg rounded-lg shadow-xl m-auto relative translate-z-0 animate-popup",children:[E.jsx(eg,{}),E.jsx(pg,{})]})})})}class yf extends st.Component{constructor(t){super(t),this.state={height:null}}onHeightChange(t){this.setState({height:t})}handlePopupClose(t){t.preventDefault(),t.target===t.currentTarget&&this.context.dispatch("update",{showPopup:!1})}renderFrameStyles(){const t=`
|
|
42
|
+
Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`)}oe!==5&&(oe=2),a=ol(a,l),c=i;do{switch(c.tag){case 3:o=a,c.flags|=4096,t&=-t,c.lanes|=t;var T=Hc(c,o,t);ic(c,T);break e;case 1:o=a;var C=c.type,P=c.stateNode;if(!(c.flags&64)&&(typeof C.getDerivedStateFromError=="function"||P!==null&&typeof P.componentDidCatch=="function"&&(Ve===null||!Ve.has(P)))){c.flags|=4096,t&=-t,c.lanes|=t;var j=Wc(c,o,t);ic(c,j);break e}}c=c.return}while(c!==null)}of(n)}catch(A){t=A,Z===n&&n!==null&&(Z=n=n.return);continue}break}while(1)}function rf(){var e=Fs.current;return Fs.current=Rs,e===null?Rs:e}function Pr(e,t){var n=O;O|=16;var r=rf();ge===e&&fe===t||xn(e,t);do try{Rp();break}catch(s){nf(e,s)}while(1);if(Mi(),O=n,Fs.current=r,Z!==null)throw Error($(261));return ge=null,fe=0,oe}function Rp(){for(;Z!==null;)sf(Z)}function _p(){for(;Z!==null&&!gp();)sf(Z)}function sf(e){var t=uf(e.alternate,e,Mt);e.memoizedProps=e.pendingProps,t===null?of(e):Z=t,cl.current=null}function of(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&2048){if(n=kp(t),n!==null){n.flags&=2047,Z=n;return}e!==null&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}else{if(n=Ep(n,t,Mt),n!==null){Z=n;return}if(n=t,n.tag!==24&&n.tag!==23||n.memoizedState===null||Mt&1073741824||!(n.mode&4)){for(var r=0,s=n.child;s!==null;)r|=s.lanes|s.childLanes,s=s.sibling;n.childLanes=r}e!==null&&!(e.flags&2048)&&(e.firstEffect===null&&(e.firstEffect=t.firstEffect),t.lastEffect!==null&&(e.lastEffect!==null&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(e.lastEffect!==null?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}if(t=t.sibling,t!==null){Z=t;return}Z=t=e}while(t!==null);oe===0&&(oe=5)}function Ut(e){var t=dn();return Ft(99,Fp.bind(null,e,t)),null}function Fp(e,t){do Ct();while(Cr!==null);if(O&48)throw Error($(327));var n=e.finishedWork;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error($(177));e.callbackNode=null;var r=n.lanes|n.childLanes,s=r,o=e.pendingLanes&~s;e.pendingLanes=s,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=s,e.mutableReadLanes&=s,e.entangledLanes&=s,s=e.entanglements;for(var i=e.eventTimes,l=e.expirationTimes;0<o;){var a=31-ct(o),u=1<<a;s[a]=0,i[a]=-1,l[a]=-1,o&=~u}if(et!==null&&!(r&24)&&et.has(e)&&et.delete(e),e===ge&&(Z=ge=null,fe=0),1<n.flags?n.lastEffect!==null?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,r!==null){if(s=O,O|=32,cl.current=null,Ti=ss,i=ju(),$i(i)){if("selectionStart"in i)l={start:i.selectionStart,end:i.selectionEnd};else e:if(l=(l=i.ownerDocument)&&l.defaultView||window,(u=l.getSelection&&l.getSelection())&&u.rangeCount!==0){l=u.anchorNode,o=u.anchorOffset,a=u.focusNode,u=u.focusOffset;try{l.nodeType,a.nodeType}catch{l=null;break e}var f=0,p=-1,c=-1,v=0,m=0,y=i,h=null;t:for(;;){for(var d;y!==l||o!==0&&y.nodeType!==3||(p=f+o),y!==a||u!==0&&y.nodeType!==3||(c=f+u),y.nodeType===3&&(f+=y.nodeValue.length),(d=y.firstChild)!==null;)h=y,y=d;for(;;){if(y===i)break t;if(h===l&&++v===o&&(p=f),h===a&&++m===u&&(c=f),(d=y.nextSibling)!==null)break;y=h,h=y.parentNode}y=d}l=p===-1||c===-1?null:{start:p,end:c}}else l=null;l=l||{start:0,end:0}}else l=null;Ni={focusedElem:i,selectionRange:l},ss=!1,kr=null,Us=!1,N=r;do try{Dp()}catch(A){if(N===null)throw Error($(330));$t(N,A),N=N.nextEffect}while(N!==null);kr=null,N=r;do try{for(i=e;N!==null;){var g=N.flags;if(g&16&&Bn(N.stateNode,""),g&128){var w=N.alternate;if(w!==null){var S=w.ref;S!==null&&(typeof S=="function"?S(null):S.current=null)}}switch(g&1038){case 2:Gc(N),N.flags&=-3;break;case 6:Gc(N),N.flags&=-3,ul(N.alternate,N);break;case 1024:N.flags&=-1025;break;case 1028:N.flags&=-1025,ul(N.alternate,N);break;case 4:ul(N.alternate,N);break;case 8:l=N,Xc(i,l);var T=l.alternate;Jc(l),T!==null&&Jc(T)}N=N.nextEffect}}catch(A){if(N===null)throw Error($(330));$t(N,A),N=N.nextEffect}while(N!==null);if(S=Ni,w=ju(),g=S.focusedElem,i=S.selectionRange,w!==g&&g&&g.ownerDocument&&Au(g.ownerDocument.documentElement,g)){for(i!==null&&$i(g)&&(w=i.start,S=i.end,S===void 0&&(S=w),"selectionStart"in g?(g.selectionStart=w,g.selectionEnd=Math.min(S,g.value.length)):(S=(w=g.ownerDocument||document)&&w.defaultView||window,S.getSelection&&(S=S.getSelection(),l=g.textContent.length,T=Math.min(i.start,l),i=i.end===void 0?T:Math.min(i.end,l),!S.extend&&T>i&&(l=i,i=T,T=l),l=Nu(g,T),o=Nu(g,i),l&&o&&(S.rangeCount!==1||S.anchorNode!==l.node||S.anchorOffset!==l.offset||S.focusNode!==o.node||S.focusOffset!==o.offset)&&(w=w.createRange(),w.setStart(l.node,l.offset),S.removeAllRanges(),T>i?(S.addRange(w),S.extend(o.node,o.offset)):(w.setEnd(o.node,o.offset),S.addRange(w)))))),w=[],S=g;S=S.parentNode;)S.nodeType===1&&w.push({element:S,left:S.scrollLeft,top:S.scrollTop});for(typeof g.focus=="function"&&g.focus(),g=0;g<w.length;g++)S=w[g],S.element.scrollLeft=S.left,S.element.scrollTop=S.top}ss=!!Ti,Ni=Ti=null,e.current=n,N=r;do try{for(g=e;N!==null;){var C=N.flags;if(C&36&&Ap(g,N.alternate,N),C&128){w=void 0;var P=N.ref;if(P!==null){var j=N.stateNode;switch(N.tag){case 5:w=j;break;default:w=j}typeof P=="function"?P(w):P.current=w}}N=N.nextEffect}}catch(A){if(N===null)throw Error($(330));$t(N,A),N=N.nextEffect}while(N!==null);N=null,yp(),O=s}else e.current=n;if(wt)wt=!1,Cr=e,$r=t;else for(N=r;N!==null;)t=N.nextEffect,N.nextEffect=null,N.flags&8&&(C=N,C.sibling=null,C.stateNode=null),N=t;if(r=e.pendingLanes,r===0&&(Ve=null),r===1?e===wl?Er++:(Er=0,wl=e):Er=0,n=n.stateNode,_t&&typeof _t.onCommitFiberRoot=="function")try{_t.onCommitFiberRoot(Ri,n,void 0,(n.current.flags&64)===64)}catch{}if(Ae(e,ue()),Is)throw Is=!1,e=ml,ml=null,e;return O&8||ze(),null}function Dp(){for(;N!==null;){var e=N.alternate;Us||kr===null||(N.flags&8?Ga(N,kr)&&(Us=!0):N.tag===13&&jp(e,N)&&Ga(N,kr)&&(Us=!0));var t=N.flags;t&256&&Np(e,N),!(t&512)||wt||(wt=!0,ar(97,function(){return Ct(),null})),N=N.nextEffect}}function Ct(){if($r!==90){var e=97<$r?97:$r;return $r=90,Ft(e,zp)}return!1}function Ip(e,t){yl.push(t,e),wt||(wt=!0,ar(97,function(){return Ct(),null}))}function lf(e,t){vl.push(t,e),wt||(wt=!0,ar(97,function(){return Ct(),null}))}function zp(){if(Cr===null)return!1;var e=Cr;if(Cr=null,O&48)throw Error($(331));var t=O;O|=32;var n=vl;vl=[];for(var r=0;r<n.length;r+=2){var s=n[r],o=n[r+1],i=s.destroy;if(s.destroy=void 0,typeof i=="function")try{i()}catch(a){if(o===null)throw Error($(330));$t(o,a)}}for(n=yl,yl=[],r=0;r<n.length;r+=2){s=n[r],o=n[r+1];try{var l=s.create;s.destroy=l()}catch(a){if(o===null)throw Error($(330));$t(o,a)}}for(l=e.current.firstEffect;l!==null;)e=l.nextEffect,l.nextEffect=null,l.flags&8&&(l.sibling=null,l.stateNode=null),l=e;return O=t,ze(),!0}function af(e,t,n){t=ol(n,t),t=Hc(e,t,1),yt(e,t),t=Ce(),e=Bs(e,1),e!==null&&(rs(e,1,t),Ae(e,t))}function $t(e,t){if(e.tag===3)af(e,e,t);else for(var n=e.return;n!==null;){if(n.tag===3){af(n,e,t);break}else if(n.tag===1){var r=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Ve===null||!Ve.has(r))){e=ol(t,e);var s=Wc(n,e,1);if(yt(n,s),s=Ce(),n=Bs(n,1),n!==null)rs(n,1,s),Ae(n,s);else if(typeof r.componentDidCatch=="function"&&(Ve===null||!Ve.has(r)))try{r.componentDidCatch(t,e)}catch{}break}}n=n.return}}function Mp(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Ce(),e.pingedLanes|=e.suspendedLanes&n,ge===e&&(fe&n)===n&&(oe===4||oe===3&&(fe&62914560)===fe&&500>ue()-pl?xn(e,0):dl|=n),Ae(e,t)}function Up(e,t){var n=e.stateNode;n!==null&&n.delete(t),t=0,t===0&&(t=e.mode,t&2?t&4?(tt===0&&(tt=yn),t=tn(62914560&~tt),t===0&&(t=4194304)):t=dn()===99?1:2:t=1),n=Ce(),e=Bs(e,t),e!==null&&(rs(e,t,n),Ae(e,n))}var uf;uf=function(e,t,n){var r=t.lanes;if(e!==null)if(e.memoizedProps!==t.pendingProps||ye.current)Fe=!0;else if(n&r)Fe=!!(e.flags&16384);else{switch(Fe=!1,t.tag){case 3:Rc(t),bi();break;case 5:pc(t);break;case 1:ve(t.type)&&ms(t);break;case 4:Hi(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var s=t.type._context;H(ws,s._currentValue),s._currentValue=r;break;case 13:if(t.memoizedState!==null)return n&t.child.childLanes?_c(e,t,n):(H(W,W.current&1),t=Ze(e,t,n),t!==null?t.sibling:null);H(W,W.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&64){if(r)return Mc(e,t,n);t.flags|=64}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),H(W,W.current),r)break;return null;case 23:case 24:return t.lanes=0,el(e,t,n)}return Ze(e,t,n)}else Fe=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,s=fn(t,ae.current),pn(t,n),s=Qi(null,t,r,e,s,n),t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,ve(r)){var o=!0;ms(t)}else o=!1;t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,Bi(t);var i=r.getDerivedStateFromProps;typeof i=="function"&&Cs(t,r,i,e),s.updater=$s,t.stateNode=s,s._reactInternals=t,Vi(t,r,e,n),t=nl(null,t,r,!0,o,n)}else t.tag=0,Se(null,t,s,n),t=t.child;return t;case 16:s=t.elementType;e:{switch(e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=s._init,s=o(s._payload),t.type=s,o=t.tag=Vp(s),e=_e(s,e),o){case 0:t=tl(null,t,s,e,n);break e;case 1:t=Lc(null,t,s,e,n);break e;case 11:t=Nc(null,t,s,e,n);break e;case 14:t=Ac(null,t,s,_e(s.type,e),r,n);break e}throw Error($(306,s,""))}return t;case 0:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:_e(r,s),tl(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:_e(r,s),Lc(e,t,r,s,n);case 3:if(Rc(t),r=t.updateQueue,e===null||r===null)throw Error($(282));if(r=t.pendingProps,s=t.memoizedState,s=s!==null?s.element:null,oc(e,t),ur(t,r,null,n),r=t.memoizedState.element,r===s)bi(),t=Ze(e,t,n);else{if(s=t.stateNode,(o=s.hydrate)&&(vt=ln(t.stateNode.containerInfo.firstChild),Ye=t,o=Ue=!0),o){if(e=s.mutableSourceEagerHydrationData,e!=null)for(s=0;s<e.length;s+=2)o=e[s],o._workInProgressVersionPrimary=e[s+1],mn.push(o);for(n=hc(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|1024,n=n.sibling}else Se(e,t,r,n),bi();t=t.child}return t;case 5:return pc(t),e===null&&Ki(t),r=t.type,s=t.pendingProps,o=e!==null?e.memoizedProps:null,i=s.children,Ai(r,s)?i=null:o!==null&&Ai(r,o)&&(t.flags|=16),Oc(e,t),Se(e,t,i,n),t.child;case 6:return e===null&&Ki(t),null;case 13:return _c(e,t,n);case 4:return Hi(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ps(t,null,r,n):Se(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:_e(r,s),Nc(e,t,r,s,n);case 7:return Se(e,t,t.pendingProps,n),t.child;case 8:return Se(e,t,t.pendingProps.children,n),t.child;case 12:return Se(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,s=t.pendingProps,i=t.memoizedProps,o=s.value;var l=t.type._context;if(H(ws,l._currentValue),l._currentValue=o,i!==null)if(l=i.value,o=Pe(l,o)?0:(typeof r._calculateChangedBits=="function"?r._calculateChangedBits(l,o):1073741823)|0,o===0){if(i.children===s.children&&!ye.current){t=Ze(e,t,n);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var a=l.dependencies;if(a!==null){i=l.child;for(var u=a.firstContext;u!==null;){if(u.context===r&&u.observedBits&o){l.tag===1&&(u=mt(-1,n&-n),u.tag=2,yt(l,u)),l.lanes|=n,u=l.alternate,u!==null&&(u.lanes|=n),sc(l.return,n),a.lanes|=n;break}u=u.next}}else i=l.tag===10&&l.type===t.type?null:l.child;if(i!==null)i.return=l;else for(i=l;i!==null;){if(i===t){i=null;break}if(l=i.sibling,l!==null){l.return=i.return,i=l;break}i=i.return}l=i}Se(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,o=t.pendingProps,r=o.children,pn(t,n),s=Te(s,o.unstable_observedBits),r=r(s),t.flags|=1,Se(e,t,r,n),t.child;case 14:return s=t.type,o=_e(s,t.pendingProps),o=_e(s.type,o),Ac(e,t,s,o,r,n);case 15:return jc(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:_e(r,s),e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,ve(r)?(e=!0,ms(t)):e=!1,pn(t,n),cc(t,r,s),Vi(t,r,s,n),nl(null,t,r,!0,e,n);case 19:return Mc(e,t,n);case 23:return el(e,t,n);case 24:return el(e,t,n)}throw Error($(156,t.tag))};function Bp(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function je(e,t,n,r){return new Bp(e,t,n,r)}function Cl(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Vp(e){if(typeof e=="function")return Cl(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Wr)return 11;if(e===br)return 14}return 2}function Et(e,t){var n=e.alternate;return n===null?(n=je(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Hs(e,t,n,r,s,o){var i=2;if(r=e,typeof e=="function")Cl(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case ot:return Cn(n.children,s,o,t);case Na:i=8,s|=16;break;case Lo:i=8,s|=1;break;case In:return e=je(12,n,t,s|8),e.elementType=In,e.type=In,e.lanes=o,e;case zn:return e=je(13,n,t,s),e.type=zn,e.elementType=zn,e.lanes=o,e;case Kr:return e=je(19,n,t,s),e.elementType=Kr,e.lanes=o,e;case zo:return $l(n,s,o,t);case Mo:return e=je(24,n,t,s),e.elementType=Mo,e.lanes=o,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ro:i=10;break e;case _o:i=9;break e;case Wr:i=11;break e;case br:i=14;break e;case Fo:i=16,r=null;break e;case Do:i=22;break e}throw Error($(130,e==null?e:typeof e,""))}return t=je(i,n,t,s),t.elementType=e,t.type=r,t.lanes=o,t}function Cn(e,t,n,r){return e=je(7,e,r,t),e.lanes=n,e}function $l(e,t,n,r){return e=je(23,e,r,t),e.elementType=zo,e.lanes=n,e}function El(e,t,n){return e=je(6,e,null,t),e.lanes=n,e}function kl(e,t,n){return t=je(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Hp(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=fi(0),this.expirationTimes=fi(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=fi(0),this.mutableSourceEagerHydrationData=null}function Wp(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:At,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Ws(e,t,n,r){var s=t.current,o=Ce(),i=St(s);e:if(n){n=n._reactInternals;t:{if(Ot(n)!==n||n.tag!==1)throw Error($(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(ve(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(l!==null);throw Error($(171))}if(n.tag===1){var a=n.type;if(ve(a)){n=Ju(n,a,l);break e}}n=l}else n=pt;return t.context===null?t.context=n:t.pendingContext=n,t=mt(o,i),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),yt(s,t),xt(s,i,o),i}function Pl(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function cf(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Tl(e,t){cf(e,t),(e=e.alternate)&&cf(e,t)}function Kp(){return null}function Nl(e,t,n){var r=n!=null&&n.hydrationOptions!=null&&n.hydrationOptions.mutableSources||null;if(n=new Hp(e,t,n!=null&&n.hydrate===!0),t=je(3,null,null,t===2?7:t===1?3:0),n.current=t,t.stateNode=n,Bi(t),e[an]=n.current,Iu(e.nodeType===8?e.parentNode:e),r)for(e=0;e<r.length;e++){t=r[e];var s=t._getVersion;s=s(t._source),n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[t,s]:n.mutableSourceEagerHydrationData.push(t,s)}this._internalRoot=n}Nl.prototype.render=function(e){Ws(e,this._internalRoot,null,null)},Nl.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Ws(null,e,null,function(){t[an]=null})};function Tr(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function bp(e,t){if(t||(t=e?e.nodeType===9?e.documentElement:e.firstChild:null,t=!(!t||t.nodeType!==1||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new Nl(e,0,t?{hydrate:!0}:void 0)}function Ks(e,t,n,r,s){var o=n._reactRootContainer;if(o){var i=o._internalRoot;if(typeof s=="function"){var l=s;s=function(){var u=Pl(i);l.call(u)}}Ws(t,i,e,s)}else{if(o=n._reactRootContainer=bp(n,r),i=o._internalRoot,typeof s=="function"){var a=s;s=function(){var u=Pl(i);a.call(u)}}tf(function(){Ws(t,i,e,s)})}return Pl(i)}Xa=function(e){if(e.tag===13){var t=Ce();xt(e,4,t),Tl(e,4)}},oi=function(e){if(e.tag===13){var t=Ce();xt(e,67108864,t),Tl(e,67108864)}},Ya=function(e){if(e.tag===13){var t=Ce(),n=St(e);xt(e,n,t),Tl(e,n)}},Za=function(e,t){return t()},Yo=function(e,t,n){switch(t){case"input":if(Ho(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var s=ps(r);if(!s)throw Error($(90));Oa(r),Ho(r,s)}}}break;case"textarea":Da(e,n);break;case"select":t=n.value,t!=null&&Gt(e,!!n.multiple,t,!1)}},Zo=ef,Ka=function(e,t,n,r,s){var o=O;O|=4;try{return Ft(98,e.bind(null,t,n,r,s))}finally{O=o,O===0&&(wn(),ze())}},ei=function(){!(O&49)&&(Lp(),Ct())},ba=function(e,t){var n=O;O|=2;try{return e(t)}finally{O=n,O===0&&(wn(),ze())}};function ff(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Tr(t))throw Error($(200));return Wp(e,t,null,n)}var qp={Events:[lr,un,ps,Ha,Wa,Ct,{current:!1}]},Nr={findFiberByHostInstance:Lt,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},Jp={bundleType:Nr.bundleType,version:Nr.version,rendererPackageName:Nr.rendererPackageName,rendererConfig:Nr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Nt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Qa(e),e===null?null:e.stateNode},findFiberByHostInstance:Nr.findFiberByHostInstance||Kp,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var bs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!bs.isDisabled&&bs.supportsFiber)try{Ri=bs.inject(Jp),_t=bs}catch{}}ke.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=qp,ke.createPortal=ff,ke.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error($(188)):Error($(268,Object.keys(e)));return e=Qa(t),e=e===null?null:e.stateNode,e},ke.flushSync=function(e,t){var n=O;if(n&48)return e(t);O|=1;try{if(e)return Ft(99,e.bind(null,t))}finally{O=n,ze()}},ke.hydrate=function(e,t,n){if(!Tr(t))throw Error($(200));return Ks(null,e,t,!0,n)},ke.render=function(e,t,n){if(!Tr(t))throw Error($(200));return Ks(null,e,t,!1,n)},ke.unmountComponentAtNode=function(e){if(!Tr(e))throw Error($(40));return e._reactRootContainer?(tf(function(){Ks(null,null,e,!1,function(){e._reactRootContainer=null,e[an]=null})}),!0):!1},ke.unstable_batchedUpdates=ef,ke.unstable_createPortal=function(e,t){return ff(e,t,2<arguments.length&&arguments[2]!==void 0?arguments[2]:null)},ke.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Tr(n))throw Error($(200));if(e==null||e._reactInternals===void 0)throw Error($(38));return Ks(e,t,n,!1,r)},ke.version="17.0.2";function df(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(df)}catch(e){console.error(e)}}df(),xa.exports=ke;var Al=xa.exports;const Qp=Q(Al),cy="",de=st.createContext({posts:[],authors:[],tags:[],action:"",lastPage:"",page:"",pageData:{},dispatch:(e,t)=>{},searchIndex:null,indexComplete:!1,searchValue:"",t:()=>{},dir:"ltr"});class Gp extends _.Component{constructor(){super(...arguments);So(this,"handleLoad",()=>{this.setupFrameBaseStyle()})}componentDidMount(){this.node.addEventListener("load",this.handleLoad)}componentWillUnmout(){this.node.removeEventListener("load",this.handleLoad)}setupFrameBaseStyle(){this.node.contentDocument&&(this.iframeHtml=this.node.contentDocument.documentElement,this.iframeHtml.setAttribute("dir",this.props.searchdir),this.iframeHead=this.node.contentDocument.head,this.iframeRoot=this.node.contentDocument.body,this.forceUpdate())}render(){const{children:n,head:r,title:s="",style:o={},...i}=this.props;return E.jsxs("iframe",{srcDoc:"<!DOCTYPE html>",...i,ref:l=>this.node=l,title:s,style:o,frameBorder:"0",children:[this.iframeHead&&Al.createPortal(r,this.iframeHead),this.iframeRoot&&Al.createPortal(n,this.iframeRoot)]})}}const Xp=e=>_.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",height:16,width:16,...e},_.createElement("path",{d:"M23.38,21.62l-6.53-6.53a9.15,9.15,0,0,0,1.9-5.59,9.27,9.27,0,1,0-3.66,7.36l6.53,6.53a1.26,1.26,0,0,0,1.76,0A1.25,1.25,0,0,0,23.38,21.62ZM2.75,9.5A6.75,6.75,0,1,1,9.5,16.25,6.76,6.76,0,0,1,2.75,9.5Z",fill:"currentColor"})),Yp=e=>_.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",height:16,width:16,...e},_.createElement("path",{strokeLinecap:"round",strokeWidth:.4,fill:"currentColor",stroke:"#000000",strokeLinejoin:"round",d:"M.44,21.44a1.49,1.49,0,0,0,0,2.12,1.5,1.5,0,0,0,2.12,0l9.26-9.26a.25.25,0,0,1,.36,0l9.26,9.26a1.5,1.5,0,0,0,2.12,0,1.49,1.49,0,0,0,0-2.12L14.3,12.18a.25.25,0,0,1,0-.36l9.26-9.26A1.5,1.5,0,0,0,21.44.44L12.18,9.7a.25.25,0,0,1-.36,0L2.56.44A1.5,1.5,0,0,0,.44,2.56L9.7,11.82a.25.25,0,0,1,0,.36Z"})),Zp=e=>_.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:16,width:16,viewBox:"0 0 16 16",...e},_.createElement("title",null,"circle anim"),_.createElement("g",{fill:"#40413F",className:"nc-icon-wrapper"},_.createElement("g",{className:"nc-loop-circle-16-icon-f"},_.createElement("path",{d:"M8 16a8 8 0 1 1 8-8 8.009 8.009 0 0 1-8 8zM8 2a6 6 0 1 0 6 6 6.006 6.006 0 0 0-6-6z",fill:"#D4D4D4"}),_.createElement("path",{d:"M8 0v2a6.006 6.006 0 0 1 6 6h2a8.009 8.009 0 0 0-8-8z","data-color":"color-2"})),_.createElement("style",null,".nc-loop-circle-16-icon-f{--animation-duration:0.5s;transform-origin:8px 8px;animation:nc-loop-circle-anim var(--animation-duration) infinite linear}@keyframes nc-loop-circle-anim{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}"))),hf=10,eg=10,tg=()=>({modalContainer:{zIndex:"3999999",position:"fixed",left:"0",top:"0",width:"100%",height:"100%",overflow:"hidden"},frame:{common:{margin:"auto",position:"relative",padding:"0",outline:"0",width:"100%",opacity:"1",overflow:"hidden",height:"100%"}},page:{links:{width:"600px"}}});class pf extends st.Component{componentDidMount(){this.sendContainerHeightChangeEvent()}sendContainerHeightChangeEvent(){}componentDidUpdate(){this.sendContainerHeightChangeEvent()}handlePopupClose(t){t.preventDefault(),t.target===t.currentTarget&&this.context.dispatch("update",{showPopup:!1})}render(){return E.jsx(wg,{})}}So(pf,"contextType",de);function ng(){const{searchValue:e,dispatch:t,inputRef:n,t:r}=_.useContext(de),s=_.useRef(null);_.useEffect(()=>{setTimeout(()=>{var a;(a=n==null?void 0:n.current)==null||a.focus()},150);let i=a=>{a.key==="Escape"&&t("update",{showPopup:!1})};const l=s==null?void 0:s.current;return l==null||l.ownerDocument.removeEventListener("keyup",i),l==null||l.ownerDocument.addEventListener("keyup",i),()=>{l==null||l.ownerDocument.removeEventListener("keyup",i)}},[t,n]);let o="z-10 relative flex items-center py-5 px-4 sm:px-7 bg-white rounded-t-lg shadow";return e||(o="z-10 relative flex items-center py-5 px-4 sm:px-7 bg-white rounded-lg"),E.jsxs("div",{className:o,ref:s,children:[E.jsx("div",{className:"flex items-center justify-center w-4 h-4 me-3",children:E.jsx(rg,{})}),E.jsx("input",{ref:n,value:e||"",onChange:i=>{t("update",{searchValue:i.target.value})},onKeyDown:i=>{(i.key==="ArrowUp"||i.key==="ArrowDown")&&i.preventDefault()},className:"grow -my-5 py-5 -ms-3 ps-3 text-[1.65rem] focus-visible:outline-none placeholder:text-gray-400 outline-none truncate",placeholder:r("Search posts, tags and authors")}),E.jsx(sg,{}),E.jsx(og,{})]})}function rg(){const{searchValue:e="",dispatch:t}=_.useContext(de);return e?E.jsx("button",{alt:"Clear",className:"-mb-[1px]",onClick:()=>{t("update",{searchValue:""})},children:E.jsx(Yp,{className:"text-neutral-900 hover:text-neutral-500 h-[1.1rem] w-[1.1rem]"})}):E.jsx(Xp,{className:"text-neutral-900",alt:"Search"})}function sg(){const{indexComplete:e,searchValue:t}=_.useContext(de);return!e&&t?E.jsx(Zp,{className:"shrink-0"}):null}function og(){const{dispatch:e,t}=_.useContext(de);return E.jsx("button",{className:"ms-3 text-sm text-neutral-500 sm:hidden",alt:"Cancel",onClick:()=>{e("update",{showPopup:!1})},children:t("Cancel")})}function ig({tag:e,selectedResult:t,setSelectedResult:n}){const{name:r,url:s,id:o}=e;let i="flex items-center py-3 -mx-4 sm:-mx-7 px-4 sm:px-7 cursor-pointer";return o===t&&(i+=" bg-neutral-100"),E.jsxs("div",{className:i,onClick:()=>{s&&(window.location.href=s)},onMouseEnter:()=>{n(o)},children:[E.jsx("p",{className:"me-2 text-sm font-bold text-neutral-400",children:"#"}),E.jsx("h2",{className:"text-[1.65rem] font-medium leading-tight text-neutral-900 truncate",children:r})]})}function lg({tags:e,selectedResult:t,setSelectedResult:n}){const{t:r}=_.useContext(de);if(!(e!=null&&e.length))return null;const s=e.map(o=>E.jsx(ig,{tag:o,selectedResult:t,setSelectedResult:n},o.name));return E.jsxs("div",{className:"border-t border-gray-200 py-3 px-4 sm:px-7",children:[E.jsx("h1",{className:"uppercase text-xs text-neutral-400 font-semibold mb-1 tracking-wide",children:r("Tags")}),s]})}function ag({post:e,selectedResult:t,setSelectedResult:n}){const{searchValue:r}=_.useContext(de),{title:s,excerpt:o,url:i,id:l}=e;let a="py-3 -mx-4 sm:-mx-7 px-4 sm:px-7 cursor-pointer";return l===t&&(a+=" bg-neutral-100"),E.jsxs("div",{className:a,onClick:()=>{i&&(window.location.href=i)},onMouseEnter:()=>{n(l)},children:[E.jsx("h2",{className:"text-[1.65rem] font-medium leading-tight text-neutral-800",children:E.jsx(mf,{text:s,highlight:r,isExcerpt:!1})}),E.jsx("p",{className:"text-neutral-400 leading-normal text-sm mt-0 mb-0 truncate",children:E.jsx(mf,{text:o,highlight:r,isExcerpt:!0})})]})}function ug({text:e,highlight:t}){let n="";t==null||t.split(" ").forEach((i,l)=>{const a=String(i).replace(/\W/g,"\\&");l>0?n+="|^"+a+"|\\s"+a:n="^"+a+"|\\s"+a});const r=new RegExp(`${n}`,"ig");let s=e==null?void 0:e.matchAll(r);const o=[];for(const i of s)o.push({startIdx:i==null?void 0:i.index,endIdx:((i==null?void 0:i.index)||0)+((i==null?void 0:i[0].length)||0)});return o}function gf({text:e,highlight:t}){const n=ug({text:e,highlight:t}),r=[];let s=0;return n.forEach(o=>{s===o.startIdx?(r.push({text:e==null?void 0:e.slice(o.startIdx,o.endIdx),type:"highlight"}),s=o.endIdx):(r.push({text:e==null?void 0:e.slice(s,o.startIdx),type:"normal"}),r.push({text:e==null?void 0:e.slice(o.startIdx,o.endIdx),type:"highlight"}),s=o.endIdx)}),s<(e==null?void 0:e.length)&&r.push({text:e==null?void 0:e.slice(s,e.length),type:"normal"}),{parts:r,highlightIndexes:n}}function mf({text:e="",highlight:t="",isExcerpt:n}){var i;e=e||"",t=t||"";let{parts:r,highlightIndexes:s}=gf({text:e,highlight:t});if(n&&(s!=null&&s[0])){const l=(i=s==null?void 0:s[0])==null?void 0:i.startIdx;if(l>50){e="..."+(e==null?void 0:e.slice(l-20));const{parts:a}=gf({text:e,highlight:t});r=a}}const o=r.map((l,a)=>(l==null?void 0:l.type)==="highlight"?E.jsx(st.Fragment,{children:E.jsx(cg,{word:l.text,isExcerpt:n})},a):E.jsx(st.Fragment,{children:l.text},a));return E.jsx(E.Fragment,{children:o})}function cg({word:e,isExcerpt:t}){return t?E.jsx(E.Fragment,{children:E.jsx("span",{className:"font-bold",children:e})}):E.jsx(E.Fragment,{children:E.jsx("span",{className:"font-bold text-neutral-900",children:e})})}function fg({posts:e,maxPosts:t,setMaxPosts:n}){const{t:r}=_.useContext(de);return!(e!=null&&e.length)||t>=(e==null?void 0:e.length)?null:E.jsx("button",{className:"w-full my-3 p-[1rem] border border-neutral-200 hover:border-neutral-300 text-neutral-800 hover:text-black font-semibold rounded transition duration-150 ease hover:ease",onClick:()=>{const s=t+eg;n(s)},children:r("Show more results")})}function dg({posts:e,selectedResult:t,setSelectedResult:n}){const{t:r}=_.useContext(de),[s,o]=_.useState(hf),[i,l]=_.useState([]);if(_.useEffect(()=>{o(hf)},[e]),_.useEffect(()=>{l(e==null?void 0:e.slice(0,s+1))},[s,e]),!(e!=null&&e.length))return null;function a(){return i.map(u=>E.jsx(ag,{post:u,selectedResult:t,setSelectedResult:n},u.title))}return E.jsxs("div",{className:"border-t border-neutral-200 py-3 px-4 sm:px-7",children:[E.jsx("h1",{className:"uppercase text-xs text-neutral-400 font-semibold mb-1 tracking-wide",children:r("Posts")}),E.jsx(a,{}),E.jsx(fg,{setMaxPosts:o,maxPosts:s,posts:e})]})}function hg({author:e,selectedResult:t,setSelectedResult:n}){const{name:r,profile_image:s,url:o,id:i}=e;let l="py-[1rem] -mx-4 sm:-mx-7 px-4 sm:px-7 cursor-pointer flex items-center";return i===t&&(l+=" bg-neutral-100"),E.jsxs("div",{className:l,onClick:()=>{o&&(window.location.href=o)},onMouseEnter:()=>{n(i)},children:[E.jsx(pg,{name:r,avatar:s}),E.jsx("h2",{className:"text-[1.65rem] font-medium leading-tight text-neutral-900 truncate",children:r})]})}function pg({name:e,avatar:t}){const n=t==null?void 0:t.length,r=e.charAt(0);return n?E.jsx("img",{className:"rounded-full bg-neutral-300 w-7 h-7 me-2 object-cover",src:t,alt:e}):E.jsx("div",{className:"rounded-full bg-neutral-200 w-7 h-7 me-2 flex items-center justify-center font-bold",children:E.jsx("span",{className:"text-neutral-400",children:r})})}function gg({authors:e,selectedResult:t,setSelectedResult:n}){const{t:r}=_.useContext(de);if(!(e!=null&&e.length))return null;const s=e.map(o=>E.jsx(hg,{author:o,selectedResult:t,setSelectedResult:n},o.name));return E.jsxs("div",{className:"border-t border-neutral-200 py-3 px-4 sm:px-7",children:[E.jsx("h1",{className:"uppercase text-xs text-neutral-400 font-semibold mb-1 tracking-wide",children:r("Authors")}),s]})}function mg(){const{searchValue:e="",searchIndex:t,indexComplete:n}=_.useContext(de);let r=null,s=[],o=[],i=[];return n&&e&&(r=t==null?void 0:t.search(e),o=(r==null?void 0:r.posts)||[],i=(r==null?void 0:r.authors)||[],s=(r==null?void 0:r.tags)||[]),i=i.filter(a=>{const u=/\/404\/$/;return!(a!=null&&a.url&&u.test(a==null?void 0:a.url))}),s=s.filter(a=>{const u=/\/404\/$/;return!(a!=null&&a.url&&u.test(a==null?void 0:a.url))}),(o==null?void 0:o.length)||(i==null?void 0:i.length)||(s==null?void 0:s.length)?E.jsx(yg,{posts:o,authors:i,tags:s}):e?E.jsx(vg,{}):null}function yg({posts:e,authors:t,tags:n}){var u;const{searchValue:r}=_.useContext(de),s=_.useMemo(()=>[...t,...n,...e],[t,n,e]),o=((u=s==null?void 0:s[0])==null?void 0:u.id)||null,[i,l]=_.useState(o),a=_.useRef(null);return _.useEffect(()=>{var f;l(((f=s==null?void 0:s[0])==null?void 0:f.id)||null)},[s]),_.useEffect(()=>{let f=c=>{const v=s.findIndex(h=>h.id===i);let m=s[v+1],y=s[v-1];if(c.key==="ArrowUp"&&y?l(y==null?void 0:y.id):c.key==="ArrowDown"&&m&&l(m==null?void 0:m.id),c.key==="Enter"){const h=s.find(d=>d.id===i);window.location.href=h==null?void 0:h.url}};const p=a==null?void 0:a.current;return p==null||p.ownerDocument.removeEventListener("keyup",f),p==null||p.ownerDocument.addEventListener("keyup",f),()=>{var c;(c=p==null?void 0:p.ownerDocument)==null||c.removeEventListener("keyup",f)}},[s,i]),r?E.jsxs("div",{className:"overflow-y-auto max-h-[calc(100vh-172px)] sm:max-h-[70vh] -mt-[1px]",ref:a,children:[E.jsx(gg,{authors:t,selectedResult:i,setSelectedResult:l}),E.jsx(lg,{tags:n,selectedResult:i,setSelectedResult:l}),E.jsx(dg,{posts:e,selectedResult:i,setSelectedResult:l})]}):null}function vg(){const{t:e}=_.useContext(de);return E.jsx("div",{className:"py-4 px-7",children:E.jsx("p",{className:"text-[1.65rem] text-neutral-400 leading-normal",children:e("No matches found")})})}function wg(){const{dispatch:e}=_.useContext(de);return E.jsx(E.Fragment,{children:E.jsx("div",{className:"h-screen w-screen pt-20 antialiased z-50 relative ghost-display",onClick:t=>{t.preventDefault(),t.target===t.currentTarget&&e("update",{showPopup:!1})},children:E.jsxs("div",{className:"bg-white w-full max-w-[95vw] sm:max-w-lg rounded-lg shadow-xl m-auto relative translate-z-0 animate-popup",children:[E.jsx(ng,{}),E.jsx(mg,{})]})})})}class yf extends st.Component{constructor(t){super(t),this.state={height:null}}onHeightChange(t){this.setState({height:t})}handlePopupClose(t){t.preventDefault(),t.target===t.currentTarget&&this.context.dispatch("update",{showPopup:!1})}renderFrameStyles(){const t=`
|
|
43
43
|
:root {
|
|
44
44
|
--brandcolor: ${this.context.brandColor||""}
|
|
45
45
|
}
|
|
@@ -47,10 +47,10 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
|
|
|
47
47
|
.ghost-display {
|
|
48
48
|
display: none;
|
|
49
49
|
}
|
|
50
|
-
`,n=this.context.stylesUrl;return n?E.jsxs(E.Fragment,{children:[E.jsx("link",{rel:"stylesheet",href:n}),E.jsx("style",{dangerouslySetInnerHTML:{__html:t}}),E.jsx("meta",{name:"viewport",content:"width=device-width, initial-scale=1, maximum-scale=1"})]}):E.jsxs(E.Fragment,{children:[E.jsx("style",{dangerouslySetInnerHTML:{__html:t}}),E.jsx("meta",{name:"viewport",content:"width=device-width, initial-scale=1, maximum-scale=1"})]})}renderFrameContainer(){const t=Zp(),n={...t.frame.common};return E.jsx("div",{style:t.modalContainer,className:"gh-root-frame",children:E.jsxs(Jp,{style:n,title:"portal-popup",head:this.renderFrameStyles(),searchdir:this.context.dir,children:[E.jsx("div",{onClick:r=>this.handlePopupClose(r),className:"absolute top-0 bottom-0 left-0 right-0 block backdrop-blur-[2px] animate-fadein z-0 bg-gradient-to-br from-[rgba(0,0,0,0.2)] to-[rgba(0,0,0,0.1)]"}),E.jsx(pf,{})]})})}render(){const{showPopup:t}=this.context;return t?this.renderFrameContainer():null}}wo(yf,"contextType",de);var K;function qs(e){return typeof e<"u"?e:!0}function vf(e){const t=Array(e);for(let n=0;n<e;n++)t[n]=V();return t}function V(){return Object.create(null)}function vg(e,t){return t.length-e.length}function he(e){return typeof e=="string"}function kt(e){return typeof e=="object"}function Al(e){return typeof e=="function"}function wf(e,t){var n=wg;if(e&&(t&&(e=Js(e,t)),this.H&&(e=Js(e,this.H)),this.J&&1<e.length&&(e=Js(e,this.J)),n||n==="")){if(t=e.split(n),this.filter){e=this.filter,n=t.length;const r=[];for(let s=0,o=0;s<n;s++){const i=t[s];i&&!e[i]&&(r[o++]=i)}e=r}else e=t;return e}return e}const wg=/[\p{Z}\p{S}\p{P}\p{C}]+/u,Sg=/[\u0300-\u036f]/g;function Sf(e,t){const n=Object.keys(e),r=n.length,s=[];let o="",i=0;for(let l=0,a,u;l<r;l++)a=n[l],(u=e[a])?(s[i++]=q(t?"(?!\\b)"+a+"(\\b|_)":a),s[i++]=u):o+=(o?"|":"")+a;return o&&(s[i++]=q(t?"(?!\\b)("+o+")(\\b|_)":"("+o+")"),s[i]=""),s}function Js(e,t){for(let n=0,r=t.length;n<r&&(e=e.replace(t[n],t[n+1]),e);n+=2);return e}function q(e){return new RegExp(e,"g")}function xf(e){let t="",n="";for(let r=0,s=e.length,o;r<s;r++)(o=e[r])!==n&&(t+=n=o);return t}var xg={encode:Cf,F:!1,G:""};function Cf(e){return wf.call(this,(""+e).toLowerCase(),!1)}const $f={},Bt={};function Ef(e){Ar(e,"add"),Ar(e,"append"),Ar(e,"search"),Ar(e,"update"),Ar(e,"remove")}function Ar(e,t){e[t+"Async"]=function(){const n=this,r=arguments;var s=r[r.length-1];let o;return Al(s)&&(o=s,delete r[r.length-1]),s=new Promise(function(i){setTimeout(function(){n.async=!0;const l=n[t].apply(n,r);n.async=!1,i(l)})}),o?(s.then(o),this):s}}function kf(e,t,n,r){const s=e.length;let o=[],i,l,a=0;r&&(r=[]);for(let u=s-1;0<=u;u--){const f=e[u],p=f.length,c=V();let v=!i;for(let m=0;m<p;m++){const y=f[m],h=y.length;if(h)for(let d=0,g,w;d<h;d++)if(w=y[d],i){if(i[w]){if(!u){if(n)n--;else if(o[a++]=w,a===t)return o}(u||r)&&(c[w]=1),v=!0}if(r&&(g=(l[w]||0)+1,l[w]=g,g<s)){const S=r[g-2]||(r[g-2]=[]);S[S.length]=w}}else c[w]=1}if(r)i||(l=c);else if(!v)return[];i=c}if(r)for(let u=r.length-1,f,p;0<=u;u--){f=r[u],p=f.length;for(let c=0,v;c<p;c++)if(v=f[c],!i[v]){if(n)n--;else if(o[a++]=v,a===t)return o;i[v]=1}}return o}function Cg(e,t){const n=V(),r=V(),s=[];for(let o=0;o<e.length;o++)n[e[o]]=1;for(let o=0,i;o<t.length;o++){i=t[o];for(let l=0,a;l<i.length;l++)a=i[l],n[a]&&!r[a]&&(r[a]=1,s[s.length]=a)}return s}function Qs(e){this.l=e!==!0&&e,this.cache=V(),this.h=[]}function Pf(e,t,n){kt(e)&&(e=e.query);let r=this.cache.get(e);return r||(r=this.search(e,t,n),this.cache.set(e,r)),r}Qs.prototype.set=function(e,t){if(!this.cache[e]){var n=this.h.length;for(n===this.l?delete this.cache[this.h[n-1]]:n++,--n;0<n;n--)this.h[n]=this.h[n-1];this.h[0]=e}this.cache[e]=t},Qs.prototype.get=function(e){const t=this.cache[e];if(this.l&&t&&(e=this.h.indexOf(e))){const n=this.h[e-1];this.h[e-1]=this.h[e],this.h[e]=n}return t};const $g={memory:{charset:"latin:extra",D:3,B:4,m:!1},performance:{D:3,B:3,s:!1,context:{depth:2,D:1}},match:{charset:"latin:extra",G:"reverse"},score:{charset:"latin:advanced",D:20,B:3,context:{depth:3,D:9}},default:{}};function Tf(e,t,n,r,s,o,i,l){setTimeout(function(){const a=e(n?n+"."+r:r,JSON.stringify(i));a&&a.then?a.then(function(){t.export(e,t,n,s,o+1,l)}):t.export(e,t,n,s,o+1,l)})}function Vt(e,t){if(!(this instanceof Vt))return new Vt(e);var n;if(e){he(e)?e=$g[e]:(n=e.preset)&&(e=Object.assign({},n[n],e)),n=e.charset;var r=e.lang;he(n)&&(n.indexOf(":")===-1&&(n+=":default"),n=Bt[n]),he(r)&&(r=$f[r])}else e={};let s,o,i=e.context||{};if(this.encode=e.encode||n&&n.encode||Cf,this.register=t||V(),this.D=s=e.resolution||9,this.G=t=n&&n.G||e.tokenize||"strict",this.depth=t==="strict"&&i.depth,this.l=qs(i.bidirectional),this.s=o=qs(e.optimize),this.m=qs(e.fastupdate),this.B=e.minlength||1,this.C=e.boost,this.map=o?vf(s):V(),this.A=s=i.resolution||1,this.h=o?vf(s):V(),this.F=n&&n.F||e.rtl,this.H=(t=e.matcher||r&&r.H)&&Sf(t,!1),this.J=(t=e.stemmer||r&&r.J)&&Sf(t,!0),n=t=e.filter||r&&r.filter){n=t,r=V();for(let l=0,a=n.length;l<a;l++)r[n[l]]=1;n=r}this.filter=n,this.cache=(t=e.cache)&&new Qs(t)}K=Vt.prototype,K.append=function(e,t){return this.add(e,t,!0)},K.add=function(e,t,n,r){if(t&&(e||e===0)){if(!r&&!n&&this.register[e])return this.update(e,t);if(t=this.encode(t),r=t.length){const u=V(),f=V(),p=this.depth,c=this.D;for(let v=0;v<r;v++){let m=t[this.F?r-1-v:v];var s=m.length;if(m&&s>=this.B&&(p||!f[m])){var o=Gs(c,r,v),i="";switch(this.G){case"full":if(2<s){for(o=0;o<s;o++)for(var l=s;l>o;l--)if(l-o>=this.B){var a=Gs(c,r,v,s,o);i=m.substring(o,l),jr(this,f,i,a,e,n)}break}case"reverse":if(1<s){for(l=s-1;0<l;l--)i=m[l]+i,i.length>=this.B&&jr(this,f,i,Gs(c,r,v,s,l),e,n);i=""}case"forward":if(1<s){for(l=0;l<s;l++)i+=m[l],i.length>=this.B&&jr(this,f,i,o,e,n);break}default:if(this.C&&(o=Math.min(o/this.C(t,m,v)|0,c-1)),jr(this,f,m,o,e,n),p&&1<r&&v<r-1){for(s=V(),i=this.A,o=m,l=Math.min(p+1,r-v),s[o]=1,a=1;a<l;a++)if((m=t[this.F?r-1-v-a:v+a])&&m.length>=this.B&&!s[m]){s[m]=1;const y=this.l&&m>o;jr(this,u,y?o:m,Gs(i+(r/2>i?0:1),r,v,l-1,a-1),e,n,y?m:o)}}}}}this.m||(this.register[e]=1)}}return this};function Gs(e,t,n,r,s){return n&&1<e?t+(r||0)<=e?n+(s||0):(e-1)/(t+(r||0))*(n+(s||0))+1|0:0}function jr(e,t,n,r,s,o,i){let l=i?e.h:e.map;(!t[n]||i&&!t[n][i])&&(e.s&&(l=l[r]),i?(t=t[n]||(t[n]=V()),t[i]=1,l=l[i]||(l[i]=V())):t[n]=1,l=l[n]||(l[n]=[]),e.s||(l=l[r]||(l[r]=[])),o&&l.includes(s)||(l[l.length]=s,e.m&&(e=e.register[s]||(e.register[s]=[]),e[e.length]=l)))}K.search=function(e,t,n){n||(!t&&kt(e)?(n=e,e=n.query):kt(t)&&(n=t));let r=[],s,o,i=0;if(n){e=n.query||e,t=n.limit,i=n.offset||0;var l=n.context;o=n.suggest}if(e&&(e=this.encode(""+e),s=e.length,1<s)){n=V();var a=[];for(let f=0,p=0,c;f<s;f++)if((c=e[f])&&c.length>=this.B&&!n[c])if(this.s||o||this.map[c])a[p++]=c,n[c]=1;else return r;e=a,s=e.length}if(!s)return r;t||(t=100),l=this.depth&&1<s&&l!==!1,n=0;let u;l?(u=e[0],n=1):1<s&&e.sort(vg);for(let f,p;n<s;n++){if(p=e[n],l?(f=Nf(this,r,o,t,i,s===2,p,u),o&&f===!1&&r.length||(u=p)):f=Nf(this,r,o,t,i,s===1,p),f)return f;if(o&&n===s-1){if(a=r.length,!a){if(l){l=0,n=-1;continue}return r}if(a===1)return Af(r[0],t,i)}}return kf(r,t,i,o)};function Nf(e,t,n,r,s,o,i,l){let a=[],u=l?e.h:e.map;if(e.s||(u=jf(u,i,l,e.l)),u){let f=0;const p=Math.min(u.length,l?e.A:e.D);for(let c=0,v=0,m,y;c<p&&!((m=u[c])&&(e.s&&(m=jf(m,i,l,e.l)),s&&m&&o&&(y=m.length,y<=s?(s-=y,m=null):(m=m.slice(s),s=0)),m&&(a[f++]=m,o&&(v+=m.length,v>=r))));c++);if(f){if(o)return Af(a,r,0);t[t.length]=a;return}}return!n&&a}function Af(e,t,n){return e=e.length===1?e[0]:[].concat.apply([],e),n||e.length>t?e.slice(n,n+t):e}function jf(e,t,n,r){return n?(r=r&&t>n,e=(e=e[r?t:n])&&e[r?n:t]):e=e[t],e}K.contain=function(e){return!!this.register[e]},K.update=function(e,t){return this.remove(e).add(e,t)},K.remove=function(e,t){const n=this.register[e];if(n){if(this.m)for(let r=0,s;r<n.length;r++)s=n[r],s.splice(s.indexOf(e),1);else Ys(this.map,e,this.D,this.s),this.depth&&Ys(this.h,e,this.A,this.s);if(t||delete this.register[e],this.cache){t=this.cache;for(let r=0,s,o;r<t.h.length;r++)o=t.h[r],s=t.cache[o],s.includes(e)&&(t.h.splice(r--,1),delete t.cache[o])}}return this};function Ys(e,t,n,r,s){let o=0;if(e.constructor===Array)if(s)t=e.indexOf(t),t!==-1?1<e.length&&(e.splice(t,1),o++):o++;else{s=Math.min(e.length,n);for(let i=0,l;i<s;i++)(l=e[i])&&(o=Ys(l,t,n,r,s),r||o||delete e[i])}else for(let i in e)(o=Ys(e[i],t,n,r,s))||delete e[i];return o}K.searchCache=Pf,K.export=function(e,t,n,r,s,o){let i=!0;typeof o>"u"&&(i=new Promise(u=>{o=u}));let l,a;switch(s||(s=0)){case 0:if(l="reg",this.m){a=V();for(let u in this.register)a[u]=1}else a=this.register;break;case 1:l="cfg",a={doc:0,opt:this.s?1:0};break;case 2:l="map",a=this.map;break;case 3:l="ctx",a=this.h;break;default:typeof n>"u"&&o&&o();return}return Tf(e,t||this,n,l,r,s,a,o),i},K.import=function(e,t){if(t)switch(he(t)&&(t=JSON.parse(t)),e){case"cfg":this.s=!!t.opt;break;case"reg":this.m=!1,this.register=t;break;case"map":this.map=t;break;case"ctx":this.h=t}},Ef(Vt.prototype);function Eg(e){e=e.data;var t=self._index;const n=e.args;var r=e.task;switch(r){case"init":r=e.options||{},e=e.factory,t=r.encode,r.cache=!1,t&&t.indexOf("function")===0&&(r.encode=Function("return "+t)()),e?(Function("return "+e)()(self),self._index=new self.FlexSearch.Index(r),delete self.FlexSearch):self._index=new Vt(r);break;default:e=e.id,t=t[r].apply(t,n),postMessage(r==="search"?{id:e,msg:t}:{id:e})}}let Of=0;function $n(e){if(!(this instanceof $n))return new $n(e);var t;e?Al(t=e.encode)&&(e.encode=t.toString()):e={},(t=(self||window)._factory)&&(t=t.toString());const n=typeof window>"u"&&self.exports,r=this;this.o=kg(t,n,e.worker),this.h=V(),this.o&&(n?this.o.on("message",function(s){r.h[s.id](s.msg),delete r.h[s.id]}):this.o.onmessage=function(s){s=s.data,r.h[s.id](s.msg),delete r.h[s.id]},this.o.postMessage({task:"init",factory:t,options:e}))}Or("add"),Or("append"),Or("search"),Or("update"),Or("remove");function Or(e){$n.prototype[e]=$n.prototype[e+"Async"]=function(){const t=this,n=[].slice.call(arguments);var r=n[n.length-1];let s;return Al(r)&&(s=r,n.splice(n.length-1,1)),r=new Promise(function(o){setTimeout(function(){t.h[++Of]=o,t.o.postMessage({task:e,id:Of,args:n})})}),s?(r.then(s),this):r}}function kg(e,t,n){let r;try{r=t?new(require("worker_threads")).Worker(__dirname+"/node/node.js"):e?new Worker(URL.createObjectURL(new Blob(["onmessage="+Eg.toString()],{type:"text/javascript"}))):new Worker(he(n)?n:"worker/worker.js",{type:"module"})}catch{}return r}function Lr(e){if(!(this instanceof Lr))return new Lr(e);var t=e.document||e.doc||e,n;this.K=[],this.h=[],this.A=[],this.register=V(),this.key=(n=t.key||t.id)&&Xs(n,this.A)||"id",this.m=qs(e.fastupdate),this.C=(n=t.store)&&n!==!0&&[],this.store=n&&V(),this.I=(n=t.tag)&&Xs(n,this.A),this.l=n&&V(),this.cache=(n=e.cache)&&new Qs(n),e.cache=!1,this.o=e.worker,this.async=!1,n=V();let r=t.index||t.field||t;he(r)&&(r=[r]);for(let s=0,o,i;s<r.length;s++)o=r[s],he(o)||(i=o,o=o.field),i=kt(i)?Object.assign({},e,i):e,this.o&&(n[o]=new $n(i),n[o].o||(this.o=!1)),this.o||(n[o]=new Vt(i,this.register)),this.K[s]=Xs(o,this.A),this.h[s]=o;if(this.C)for(e=t.store,he(e)&&(e=[e]),t=0;t<e.length;t++)this.C[t]=Xs(e[t],this.A);this.index=n}function Xs(e,t){const n=e.split(":");let r=0;for(let s=0;s<n.length;s++)e=n[s],0<=e.indexOf("[]")&&(e=e.substring(0,e.length-2))&&(t[r]=!0),e&&(n[r++]=e);return r<n.length&&(n.length=r),1<r?n:n[0]}function jl(e,t){if(he(t))e=e[t];else for(let n=0;e&&n<t.length;n++)e=e[t[n]];return e}function Ol(e,t,n,r,s){if(e=e[s],r===n.length-1)t[s]=e;else if(e)if(e.constructor===Array)for(t=t[s]=Array(e.length),s=0;s<e.length;s++)Ol(e,t,n,r,s);else t=t[s]||(t[s]=V()),s=n[++r],Ol(e,t,n,r,s)}function Ll(e,t,n,r,s,o,i,l){if(e=e[i])if(r===t.length-1){if(e.constructor===Array){if(n[r]){for(t=0;t<e.length;t++)s.add(o,e[t],!0,!0);return}e=e.join(" ")}s.add(o,e,l,!0)}else if(e.constructor===Array)for(i=0;i<e.length;i++)Ll(e,t,n,r,s,o,i,l);else i=t[++r],Ll(e,t,n,r,s,o,i,l)}K=Lr.prototype,K.add=function(e,t,n){if(kt(e)&&(t=e,e=jl(t,this.key)),t&&(e||e===0)){if(!n&&this.register[e])return this.update(e,t);for(let r=0,s,o;r<this.h.length;r++)o=this.h[r],s=this.K[r],he(s)&&(s=[s]),Ll(t,s,this.A,0,this.index[o],e,s[0],n);if(this.I){let r=jl(t,this.I),s=V();he(r)&&(r=[r]);for(let o=0,i,l;o<r.length;o++)if(i=r[o],!s[i]&&(s[i]=1,l=this.l[i]||(this.l[i]=[]),!n||!l.includes(e))&&(l[l.length]=e,this.m)){const a=this.register[e]||(this.register[e]=[]);a[a.length]=l}}if(this.store&&(!n||!this.store[e])){let r;if(this.C){r=V();for(let s=0,o;s<this.C.length;s++)o=this.C[s],he(o)?r[o]=t[o]:Ol(t,r,o,0,o[0])}this.store[e]=r||t}}return this},K.append=function(e,t){return this.add(e,t,!0)},K.update=function(e,t){return this.remove(e).add(e,t)},K.remove=function(e){if(kt(e)&&(e=jl(e,this.key)),this.register[e]){for(var t=0;t<this.h.length&&(this.index[this.h[t]].remove(e,!this.o),!this.m);t++);if(this.I&&!this.m)for(let n in this.l){t=this.l[n];const r=t.indexOf(e);r!==-1&&(1<t.length?t.splice(r,1):delete this.l[n])}this.store&&delete this.store[e],delete this.register[e]}return this},K.search=function(e,t,n,r){n||(!t&&kt(e)?(n=e,e=""):kt(t)&&(n=t,t=0));let s=[],o=[],i,l,a,u,f,p,c=0;if(n)if(n.constructor===Array)a=n,n=null;else{if(e=n.query||e,a=(i=n.pluck)||n.index||n.field,u=n.tag,l=this.store&&n.enrich,f=n.bool==="and",t=n.limit||t||100,p=n.offset||0,u&&(he(u)&&(u=[u]),!e)){for(let m=0,y;m<u.length;m++)(y=Pg.call(this,u[m],t,p,l))&&(s[s.length]=y,c++);return c?s:[]}he(a)&&(a=[a])}a||(a=this.h),f=f&&(1<a.length||u&&1<u.length);const v=!r&&(this.o||this.async)&&[];for(let m=0,y,h,d;m<a.length;m++){let g;if(h=a[m],he(h)||(g=h,h=g.field,e=g.query||e,t=g.limit||t,l=g.enrich||l),v)v[m]=this.index[h].searchAsync(e,t,g||n);else{if(r?y=r[m]:y=this.index[h].search(e,t,g||n),d=y&&y.length,u&&d){const w=[];let S=0;f&&(w[0]=[y]);for(let T=0,C,P;T<u.length;T++)C=u[T],(d=(P=this.l[C])&&P.length)&&(S++,w[w.length]=f?[P]:P);S&&(y=f?kf(w,t||100,p||0):Cg(y,w),d=y.length)}if(d)o[c]=h,s[c++]=y;else if(f)return[]}}if(v){const m=this;return new Promise(function(y){Promise.all(v).then(function(h){y(m.search(e,t,n,h))})})}if(!c)return[];if(i&&(!l||!this.store))return s[0];for(let m=0,y;m<o.length;m++){if(y=s[m],y.length&&l&&(y=Lf.call(this,y)),i)return y;s[m]={field:o[m],result:y}}return s};function Pg(e,t,n,r){let s=this.l[e],o=s&&s.length-n;if(o&&0<o)return(o>t||n)&&(s=s.slice(n,n+t)),r&&(s=Lf.call(this,s)),{tag:e,result:s}}function Lf(e){const t=Array(e.length);for(let n=0,r;n<e.length;n++)r=e[n],t[n]={id:r,doc:this.store[r]};return t}K.contain=function(e){return!!this.register[e]},K.get=function(e){return this.store[e]},K.set=function(e,t){return this.store[e]=t,this},K.searchCache=Pf,K.export=function(e,t,n,r,s,o){let i;if(typeof o>"u"&&(i=new Promise(l=>{o=l})),s||(s=0),r||(r=0),r<this.h.length){const l=this.h[r],a=this.index[l];t=this,setTimeout(function(){a.export(e,t,s?l:"",r,s++,o)||(r++,s=1,t.export(e,t,l,r,s,o))})}else{let l,a;switch(s){case 1:l="tag",a=this.l,n=null;break;case 2:l="store",a=this.store,n=null;break;default:o();return}Tf(e,this,n,l,r,s,a,o)}return i},K.import=function(e,t){if(t)switch(he(t)&&(t=JSON.parse(t)),e){case"tag":this.l=t;break;case"reg":this.m=!1,this.register=t;for(let r=0,s;r<this.h.length;r++)s=this.index[this.h[r]],s.register=t,s.m=!1;break;case"store":this.store=t;break;default:e=e.split(".");const n=e[0];e=e[1],n&&e&&this.index[n].import(e,t)}},Ef(Lr.prototype);var Tg={encode:Rf,F:!1,G:""};const Ng=[q("[àáâãäå]"),"a",q("[èéêë]"),"e",q("[ìíîï]"),"i",q("[òóôõöő]"),"o",q("[ùúûüű]"),"u",q("[ýŷÿ]"),"y",q("ñ"),"n",q("[çc]"),"k",q("ß"),"s",q(" & ")," and "];function Rf(e){var t=e=""+e;return t.normalize&&(t=t.normalize("NFD").replace(Sg,"")),wf.call(this,t.toLowerCase(),!e.normalize&&Ng)}var Ag={encode:Ff,F:!1,G:"strict"};const jg=/[^a-z0-9]+/,_f={b:"p",v:"f",w:"f",z:"s",x:"s",ß:"s",d:"t",n:"m",c:"k",g:"k",j:"k",q:"k",i:"e",y:"e",u:"o"};function Ff(e){e=Rf.call(this,e).join(" ");const t=[];if(e){const n=e.split(jg),r=n.length;for(let s=0,o,i=0;s<r;s++)if((e=n[s])&&(!this.filter||!this.filter[e])){o=e[0];let l=_f[o]||o,a=l;for(let u=1;u<e.length;u++){o=e[u];const f=_f[o]||o;f&&f!==a&&(l+=f,a=f)}t[i++]=l}}return t}var Og={encode:Df,F:!1,G:""};const Lg=[q("ae"),"a",q("oe"),"o",q("sh"),"s",q("th"),"t",q("ph"),"f",q("pf"),"f",q("(?![aeo])h(?![aeo])"),"",q("(?!^[aeo])h(?!^[aeo])"),""];function Df(e,t){return e&&(e=Ff.call(this,e).join(" "),2<e.length&&(e=Js(e,Lg)),t||(1<e.length&&(e=xf(e)),e&&(e=e.split(" ")))),e||[]}var Rg={encode:Fg,F:!1,G:""};const _g=q("(?!\\b)[aeo]");function Fg(e){return e&&(e=Df.call(this,e,!0),1<e.length&&(e=e.replace(_g,"")),1<e.length&&(e=xf(e)),e&&(e=e.split(" "))),e||[]}Bt["latin:default"]=xg,Bt["latin:simple"]=Tg,Bt["latin:balance"]=Ag,Bt["latin:advanced"]=Og,Bt["latin:extra"]=Rg;const Rl={Index:Vt,Document:Lr,Worker:$n,registerCharset:function(e,t){Bt[e]=t},registerLanguage:function(e,t){$f[e]=t}};function If(e,t){return function(){return e.apply(t,arguments)}}const{toString:Dg}=Object.prototype,{getPrototypeOf:_l}=Object,Zs=(e=>t=>{const n=Dg.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),He=e=>(e=e.toLowerCase(),t=>Zs(t)===e),eo=e=>t=>typeof t===e,{isArray:En}=Array,Rr=eo("undefined");function Ig(e){return e!==null&&!Rr(e)&&e.constructor!==null&&!Rr(e.constructor)&&Oe(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const zf=He("ArrayBuffer");function zg(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&zf(e.buffer),t}const Mg=eo("string"),Oe=eo("function"),Mf=eo("number"),to=e=>e!==null&&typeof e=="object",Ug=e=>e===!0||e===!1,no=e=>{if(Zs(e)!=="object")return!1;const t=_l(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Bg=He("Date"),Vg=He("File"),Hg=He("Blob"),Wg=He("FileList"),Kg=e=>to(e)&&Oe(e.pipe),bg=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Oe(e.append)&&((t=Zs(e))==="formdata"||t==="object"&&Oe(e.toString)&&e.toString()==="[object FormData]"))},qg=He("URLSearchParams"),Jg=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function _r(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),En(e))for(r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let l;for(r=0;r<i;r++)l=o[r],t.call(null,e[l],l,e)}}function Uf(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,s;for(;r-- >0;)if(s=n[r],t===s.toLowerCase())return s;return null}const Bf=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),Vf=e=>!Rr(e)&&e!==Bf;function Fl(){const{caseless:e}=Vf(this)&&this||{},t={},n=(r,s)=>{const o=e&&Uf(t,s)||s;no(t[o])&&no(r)?t[o]=Fl(t[o],r):no(r)?t[o]=Fl({},r):En(r)?t[o]=r.slice():t[o]=r};for(let r=0,s=arguments.length;r<s;r++)arguments[r]&&_r(arguments[r],n);return t}const Qg=(e,t,n,{allOwnKeys:r}={})=>(_r(t,(s,o)=>{n&&Oe(s)?e[o]=If(s,n):e[o]=s},{allOwnKeys:r}),e),Gg=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Yg=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Xg=(e,t,n,r)=>{let s,o,i;const l={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!r||r(i,e,t))&&!l[i]&&(t[i]=e[i],l[i]=!0);e=n!==!1&&_l(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Zg=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},em=e=>{if(!e)return null;if(En(e))return e;let t=e.length;if(!Mf(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},tm=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&_l(Uint8Array)),nm=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=r.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},rm=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},sm=He("HTMLFormElement"),om=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),Hf=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),im=He("RegExp"),Wf=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};_r(n,(s,o)=>{let i;(i=t(s,o,e))!==!1&&(r[o]=i||s)}),Object.defineProperties(e,r)},lm=e=>{Wf(e,(t,n)=>{if(Oe(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Oe(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},am=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return En(e)?r(e):r(String(e).split(t)),n},um=()=>{},cm=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Dl="abcdefghijklmnopqrstuvwxyz",Kf="0123456789",bf={DIGIT:Kf,ALPHA:Dl,ALPHA_DIGIT:Dl+Dl.toUpperCase()+Kf},fm=(e=16,t=bf.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function dm(e){return!!(e&&Oe(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const hm=e=>{const t=new Array(10),n=(r,s)=>{if(to(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[s]=r;const o=En(r)?[]:{};return _r(r,(i,l)=>{const a=n(i,s+1);!Rr(a)&&(o[l]=a)}),t[s]=void 0,o}}return r};return n(e,0)},pm=He("AsyncFunction");var x={isArray:En,isArrayBuffer:zf,isBuffer:Ig,isFormData:bg,isArrayBufferView:zg,isString:Mg,isNumber:Mf,isBoolean:Ug,isObject:to,isPlainObject:no,isUndefined:Rr,isDate:Bg,isFile:Vg,isBlob:Hg,isRegExp:im,isFunction:Oe,isStream:Kg,isURLSearchParams:qg,isTypedArray:tm,isFileList:Wg,forEach:_r,merge:Fl,extend:Qg,trim:Jg,stripBOM:Gg,inherits:Yg,toFlatObject:Xg,kindOf:Zs,kindOfTest:He,endsWith:Zg,toArray:em,forEachEntry:nm,matchAll:rm,isHTMLForm:sm,hasOwnProperty:Hf,hasOwnProp:Hf,reduceDescriptors:Wf,freezeMethods:lm,toObjectSet:am,toCamelCase:om,noop:um,toFiniteNumber:cm,findKey:Uf,global:Bf,isContextDefined:Vf,ALPHABET:bf,generateString:fm,isSpecCompliantForm:dm,toJSONObject:hm,isAsyncFn:pm,isThenable:e=>e&&(to(e)||Oe(e))&&Oe(e.then)&&Oe(e.catch)};function D(e,t,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s)}x.inherits(D,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:x.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const qf=D.prototype,Jf={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Jf[e]={value:e}}),Object.defineProperties(D,Jf),Object.defineProperty(qf,"isAxiosError",{value:!0}),D.from=(e,t,n,r,s,o)=>{const i=Object.create(qf);return x.toFlatObject(e,i,function(a){return a!==Error.prototype},l=>l!=="isAxiosError"),D.call(i,e.message,t,n,r,s),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};var gm=null;function Il(e){return x.isPlainObject(e)||x.isArray(e)}function Qf(e){return x.endsWith(e,"[]")?e.slice(0,-2):e}function Gf(e,t,n){return e?e.concat(t).map(function(s,o){return s=Qf(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function mm(e){return x.isArray(e)&&!e.some(Il)}const ym=x.toFlatObject(x,{},null,function(t){return/^is[A-Z]/.test(t)});function ro(e,t,n){if(!x.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=x.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,h){return!x.isUndefined(h[y])});const r=n.metaTokens,s=n.visitor||f,o=n.dots,i=n.indexes,a=(n.Blob||typeof Blob<"u"&&Blob)&&x.isSpecCompliantForm(t);if(!x.isFunction(s))throw new TypeError("visitor must be a function");function u(m){if(m===null)return"";if(x.isDate(m))return m.toISOString();if(!a&&x.isBlob(m))throw new D("Blob is not supported. Use a Buffer instead.");return x.isArrayBuffer(m)||x.isTypedArray(m)?a&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function f(m,y,h){let d=m;if(m&&!h&&typeof m=="object"){if(x.endsWith(y,"{}"))y=r?y:y.slice(0,-2),m=JSON.stringify(m);else if(x.isArray(m)&&mm(m)||(x.isFileList(m)||x.endsWith(y,"[]"))&&(d=x.toArray(m)))return y=Qf(y),d.forEach(function(w,S){!(x.isUndefined(w)||w===null)&&t.append(i===!0?Gf([y],S,o):i===null?y:y+"[]",u(w))}),!1}return Il(m)?!0:(t.append(Gf(h,y,o),u(m)),!1)}const p=[],c=Object.assign(ym,{defaultVisitor:f,convertValue:u,isVisitable:Il});function v(m,y){if(!x.isUndefined(m)){if(p.indexOf(m)!==-1)throw Error("Circular reference detected in "+y.join("."));p.push(m),x.forEach(m,function(d,g){(!(x.isUndefined(d)||d===null)&&s.call(t,d,x.isString(g)?g.trim():g,y,c))===!0&&v(d,y?y.concat(g):[g])}),p.pop()}}if(!x.isObject(e))throw new TypeError("data must be an object");return v(e),t}function Yf(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function zl(e,t){this._pairs=[],e&&ro(e,this,t)}const Xf=zl.prototype;Xf.append=function(t,n){this._pairs.push([t,n])},Xf.toString=function(t){const n=t?function(r){return t.call(this,r,Yf)}:Yf;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function vm(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Zf(e,t,n){if(!t)return e;const r=n&&n.encode||vm,s=n&&n.serialize;let o;if(s?o=s(t,n):o=x.isURLSearchParams(t)?t.toString():new zl(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class wm{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){x.forEach(this.handlers,function(r){r!==null&&t(r)})}}var ed=wm,td={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Sm=typeof URLSearchParams<"u"?URLSearchParams:zl,xm=typeof FormData<"u"?FormData:null,Cm=typeof Blob<"u"?Blob:null,$m={isBrowser:!0,classes:{URLSearchParams:Sm,FormData:xm,Blob:Cm},protocols:["http","https","file","blob","url","data"]};const nd=typeof window<"u"&&typeof document<"u",Em=(e=>nd&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),km=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")();var Pm=Object.freeze({__proto__:null,hasBrowserEnv:nd,hasStandardBrowserWebWorkerEnv:km,hasStandardBrowserEnv:Em}),We={...Pm,...$m};function Tm(e,t){return ro(e,new We.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,o){return We.isNode&&x.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function Nm(e){return x.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Am(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r<s;r++)o=n[r],t[o]=e[o];return t}function rd(e){function t(n,r,s,o){let i=n[o++];if(i==="__proto__")return!0;const l=Number.isFinite(+i),a=o>=n.length;return i=!i&&x.isArray(s)?s.length:i,a?(x.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!l):((!s[i]||!x.isObject(s[i]))&&(s[i]=[]),t(n,r,s[i],o)&&x.isArray(s[i])&&(s[i]=Am(s[i])),!l)}if(x.isFormData(e)&&x.isFunction(e.entries)){const n={};return x.forEachEntry(e,(r,s)=>{t(Nm(r),s,n,0)}),n}return null}function jm(e,t,n){if(x.isString(e))try{return(t||JSON.parse)(e),x.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Ml={transitional:td,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=x.isObject(t);if(o&&x.isHTMLForm(t)&&(t=new FormData(t)),x.isFormData(t))return s?JSON.stringify(rd(t)):t;if(x.isArrayBuffer(t)||x.isBuffer(t)||x.isStream(t)||x.isFile(t)||x.isBlob(t))return t;if(x.isArrayBufferView(t))return t.buffer;if(x.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Tm(t,this.formSerializer).toString();if((l=x.isFileList(t))||r.indexOf("multipart/form-data")>-1){const a=this.env&&this.env.FormData;return ro(l?{"files[]":t}:t,a&&new a,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),jm(t)):t}],transformResponse:[function(t){const n=this.transitional||Ml.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(t&&x.isString(t)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(l){if(i)throw l.name==="SyntaxError"?D.from(l,D.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:We.classes.FormData,Blob:We.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};x.forEach(["delete","get","head","post","put","patch"],e=>{Ml.headers[e]={}});var Ul=Ml;const Om=x.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var Lm=e=>{const t={};let n,r,s;return e&&e.split(`
|
|
51
|
-
`).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim(),!(!n||t[n]&&
|
|
52
|
-
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[sd]=this[sd]={accessors:{}}).accessors,s=this.prototype;function o(i){const l=Fr(i);r[l]||(
|
|
50
|
+
`,n=this.context.stylesUrl;return n?E.jsxs(E.Fragment,{children:[E.jsx("link",{rel:"stylesheet",href:n}),E.jsx("style",{dangerouslySetInnerHTML:{__html:t}}),E.jsx("meta",{name:"viewport",content:"width=device-width, initial-scale=1, maximum-scale=1"})]}):E.jsxs(E.Fragment,{children:[E.jsx("style",{dangerouslySetInnerHTML:{__html:t}}),E.jsx("meta",{name:"viewport",content:"width=device-width, initial-scale=1, maximum-scale=1"})]})}renderFrameContainer(){const t=tg(),n={...t.frame.common};return E.jsx("div",{style:t.modalContainer,className:"gh-root-frame",children:E.jsxs(Gp,{style:n,title:"portal-popup",head:this.renderFrameStyles(),searchdir:this.context.dir,children:[E.jsx("div",{onClick:r=>this.handlePopupClose(r),className:"absolute top-0 bottom-0 left-0 right-0 block backdrop-blur-[2px] animate-fadein z-0 bg-gradient-to-br from-[rgba(0,0,0,0.2)] to-[rgba(0,0,0,0.1)]"}),E.jsx(pf,{})]})})}render(){const{showPopup:t}=this.context;return t?this.renderFrameContainer():null}}So(yf,"contextType",de);var K;function qs(e){return typeof e<"u"?e:!0}function vf(e){const t=Array(e);for(let n=0;n<e;n++)t[n]=V();return t}function V(){return Object.create(null)}function Sg(e,t){return t.length-e.length}function he(e){return typeof e=="string"}function kt(e){return typeof e=="object"}function jl(e){return typeof e=="function"}function wf(e,t){var n=xg;if(e&&(t&&(e=Js(e,t)),this.H&&(e=Js(e,this.H)),this.J&&1<e.length&&(e=Js(e,this.J)),n||n==="")){if(t=e.split(n),this.filter){e=this.filter,n=t.length;const r=[];for(let s=0,o=0;s<n;s++){const i=t[s];i&&!e[i]&&(r[o++]=i)}e=r}else e=t;return e}return e}const xg=/[\p{Z}\p{S}\p{P}\p{C}]+/u,Cg=/[\u0300-\u036f]/g;function Sf(e,t){const n=Object.keys(e),r=n.length,s=[];let o="",i=0;for(let l=0,a,u;l<r;l++)a=n[l],(u=e[a])?(s[i++]=q(t?"(?!\\b)"+a+"(\\b|_)":a),s[i++]=u):o+=(o?"|":"")+a;return o&&(s[i++]=q(t?"(?!\\b)("+o+")(\\b|_)":"("+o+")"),s[i]=""),s}function Js(e,t){for(let n=0,r=t.length;n<r&&(e=e.replace(t[n],t[n+1]),e);n+=2);return e}function q(e){return new RegExp(e,"g")}function xf(e){let t="",n="";for(let r=0,s=e.length,o;r<s;r++)(o=e[r])!==n&&(t+=n=o);return t}var $g={encode:Cf,F:!1,G:""};function Cf(e){return wf.call(this,(""+e).toLowerCase(),!1)}const $f={},Bt={};function Ef(e){Ar(e,"add"),Ar(e,"append"),Ar(e,"search"),Ar(e,"update"),Ar(e,"remove")}function Ar(e,t){e[t+"Async"]=function(){const n=this,r=arguments;var s=r[r.length-1];let o;return jl(s)&&(o=s,delete r[r.length-1]),s=new Promise(function(i){setTimeout(function(){n.async=!0;const l=n[t].apply(n,r);n.async=!1,i(l)})}),o?(s.then(o),this):s}}function kf(e,t,n,r){const s=e.length;let o=[],i,l,a=0;r&&(r=[]);for(let u=s-1;0<=u;u--){const f=e[u],p=f.length,c=V();let v=!i;for(let m=0;m<p;m++){const y=f[m],h=y.length;if(h)for(let d=0,g,w;d<h;d++)if(w=y[d],i){if(i[w]){if(!u){if(n)n--;else if(o[a++]=w,a===t)return o}(u||r)&&(c[w]=1),v=!0}if(r&&(g=(l[w]||0)+1,l[w]=g,g<s)){const S=r[g-2]||(r[g-2]=[]);S[S.length]=w}}else c[w]=1}if(r)i||(l=c);else if(!v)return[];i=c}if(r)for(let u=r.length-1,f,p;0<=u;u--){f=r[u],p=f.length;for(let c=0,v;c<p;c++)if(v=f[c],!i[v]){if(n)n--;else if(o[a++]=v,a===t)return o;i[v]=1}}return o}function Eg(e,t){const n=V(),r=V(),s=[];for(let o=0;o<e.length;o++)n[e[o]]=1;for(let o=0,i;o<t.length;o++){i=t[o];for(let l=0,a;l<i.length;l++)a=i[l],n[a]&&!r[a]&&(r[a]=1,s[s.length]=a)}return s}function Qs(e){this.l=e!==!0&&e,this.cache=V(),this.h=[]}function Pf(e,t,n){kt(e)&&(e=e.query);let r=this.cache.get(e);return r||(r=this.search(e,t,n),this.cache.set(e,r)),r}Qs.prototype.set=function(e,t){if(!this.cache[e]){var n=this.h.length;for(n===this.l?delete this.cache[this.h[n-1]]:n++,--n;0<n;n--)this.h[n]=this.h[n-1];this.h[0]=e}this.cache[e]=t},Qs.prototype.get=function(e){const t=this.cache[e];if(this.l&&t&&(e=this.h.indexOf(e))){const n=this.h[e-1];this.h[e-1]=this.h[e],this.h[e]=n}return t};const kg={memory:{charset:"latin:extra",D:3,B:4,m:!1},performance:{D:3,B:3,s:!1,context:{depth:2,D:1}},match:{charset:"latin:extra",G:"reverse"},score:{charset:"latin:advanced",D:20,B:3,context:{depth:3,D:9}},default:{}};function Tf(e,t,n,r,s,o,i,l){setTimeout(function(){const a=e(n?n+"."+r:r,JSON.stringify(i));a&&a.then?a.then(function(){t.export(e,t,n,s,o+1,l)}):t.export(e,t,n,s,o+1,l)})}function Vt(e,t){if(!(this instanceof Vt))return new Vt(e);var n;if(e){he(e)?e=kg[e]:(n=e.preset)&&(e=Object.assign({},n[n],e)),n=e.charset;var r=e.lang;he(n)&&(n.indexOf(":")===-1&&(n+=":default"),n=Bt[n]),he(r)&&(r=$f[r])}else e={};let s,o,i=e.context||{};if(this.encode=e.encode||n&&n.encode||Cf,this.register=t||V(),this.D=s=e.resolution||9,this.G=t=n&&n.G||e.tokenize||"strict",this.depth=t==="strict"&&i.depth,this.l=qs(i.bidirectional),this.s=o=qs(e.optimize),this.m=qs(e.fastupdate),this.B=e.minlength||1,this.C=e.boost,this.map=o?vf(s):V(),this.A=s=i.resolution||1,this.h=o?vf(s):V(),this.F=n&&n.F||e.rtl,this.H=(t=e.matcher||r&&r.H)&&Sf(t,!1),this.J=(t=e.stemmer||r&&r.J)&&Sf(t,!0),n=t=e.filter||r&&r.filter){n=t,r=V();for(let l=0,a=n.length;l<a;l++)r[n[l]]=1;n=r}this.filter=n,this.cache=(t=e.cache)&&new Qs(t)}K=Vt.prototype,K.append=function(e,t){return this.add(e,t,!0)},K.add=function(e,t,n,r){if(t&&(e||e===0)){if(!r&&!n&&this.register[e])return this.update(e,t);if(t=this.encode(t),r=t.length){const u=V(),f=V(),p=this.depth,c=this.D;for(let v=0;v<r;v++){let m=t[this.F?r-1-v:v];var s=m.length;if(m&&s>=this.B&&(p||!f[m])){var o=Gs(c,r,v),i="";switch(this.G){case"full":if(2<s){for(o=0;o<s;o++)for(var l=s;l>o;l--)if(l-o>=this.B){var a=Gs(c,r,v,s,o);i=m.substring(o,l),jr(this,f,i,a,e,n)}break}case"reverse":if(1<s){for(l=s-1;0<l;l--)i=m[l]+i,i.length>=this.B&&jr(this,f,i,Gs(c,r,v,s,l),e,n);i=""}case"forward":if(1<s){for(l=0;l<s;l++)i+=m[l],i.length>=this.B&&jr(this,f,i,o,e,n);break}default:if(this.C&&(o=Math.min(o/this.C(t,m,v)|0,c-1)),jr(this,f,m,o,e,n),p&&1<r&&v<r-1){for(s=V(),i=this.A,o=m,l=Math.min(p+1,r-v),s[o]=1,a=1;a<l;a++)if((m=t[this.F?r-1-v-a:v+a])&&m.length>=this.B&&!s[m]){s[m]=1;const y=this.l&&m>o;jr(this,u,y?o:m,Gs(i+(r/2>i?0:1),r,v,l-1,a-1),e,n,y?m:o)}}}}}this.m||(this.register[e]=1)}}return this};function Gs(e,t,n,r,s){return n&&1<e?t+(r||0)<=e?n+(s||0):(e-1)/(t+(r||0))*(n+(s||0))+1|0:0}function jr(e,t,n,r,s,o,i){let l=i?e.h:e.map;(!t[n]||i&&!t[n][i])&&(e.s&&(l=l[r]),i?(t=t[n]||(t[n]=V()),t[i]=1,l=l[i]||(l[i]=V())):t[n]=1,l=l[n]||(l[n]=[]),e.s||(l=l[r]||(l[r]=[])),o&&l.includes(s)||(l[l.length]=s,e.m&&(e=e.register[s]||(e.register[s]=[]),e[e.length]=l)))}K.search=function(e,t,n){n||(!t&&kt(e)?(n=e,e=n.query):kt(t)&&(n=t));let r=[],s,o,i=0;if(n){e=n.query||e,t=n.limit,i=n.offset||0;var l=n.context;o=n.suggest}if(e&&(e=this.encode(""+e),s=e.length,1<s)){n=V();var a=[];for(let f=0,p=0,c;f<s;f++)if((c=e[f])&&c.length>=this.B&&!n[c])if(this.s||o||this.map[c])a[p++]=c,n[c]=1;else return r;e=a,s=e.length}if(!s)return r;t||(t=100),l=this.depth&&1<s&&l!==!1,n=0;let u;l?(u=e[0],n=1):1<s&&e.sort(Sg);for(let f,p;n<s;n++){if(p=e[n],l?(f=Nf(this,r,o,t,i,s===2,p,u),o&&f===!1&&r.length||(u=p)):f=Nf(this,r,o,t,i,s===1,p),f)return f;if(o&&n===s-1){if(a=r.length,!a){if(l){l=0,n=-1;continue}return r}if(a===1)return Af(r[0],t,i)}}return kf(r,t,i,o)};function Nf(e,t,n,r,s,o,i,l){let a=[],u=l?e.h:e.map;if(e.s||(u=jf(u,i,l,e.l)),u){let f=0;const p=Math.min(u.length,l?e.A:e.D);for(let c=0,v=0,m,y;c<p&&!((m=u[c])&&(e.s&&(m=jf(m,i,l,e.l)),s&&m&&o&&(y=m.length,y<=s?(s-=y,m=null):(m=m.slice(s),s=0)),m&&(a[f++]=m,o&&(v+=m.length,v>=r))));c++);if(f){if(o)return Af(a,r,0);t[t.length]=a;return}}return!n&&a}function Af(e,t,n){return e=e.length===1?e[0]:[].concat.apply([],e),n||e.length>t?e.slice(n,n+t):e}function jf(e,t,n,r){return n?(r=r&&t>n,e=(e=e[r?t:n])&&e[r?n:t]):e=e[t],e}K.contain=function(e){return!!this.register[e]},K.update=function(e,t){return this.remove(e).add(e,t)},K.remove=function(e,t){const n=this.register[e];if(n){if(this.m)for(let r=0,s;r<n.length;r++)s=n[r],s.splice(s.indexOf(e),1);else Xs(this.map,e,this.D,this.s),this.depth&&Xs(this.h,e,this.A,this.s);if(t||delete this.register[e],this.cache){t=this.cache;for(let r=0,s,o;r<t.h.length;r++)o=t.h[r],s=t.cache[o],s.includes(e)&&(t.h.splice(r--,1),delete t.cache[o])}}return this};function Xs(e,t,n,r,s){let o=0;if(e.constructor===Array)if(s)t=e.indexOf(t),t!==-1?1<e.length&&(e.splice(t,1),o++):o++;else{s=Math.min(e.length,n);for(let i=0,l;i<s;i++)(l=e[i])&&(o=Xs(l,t,n,r,s),r||o||delete e[i])}else for(let i in e)(o=Xs(e[i],t,n,r,s))||delete e[i];return o}K.searchCache=Pf,K.export=function(e,t,n,r,s,o){let i=!0;typeof o>"u"&&(i=new Promise(u=>{o=u}));let l,a;switch(s||(s=0)){case 0:if(l="reg",this.m){a=V();for(let u in this.register)a[u]=1}else a=this.register;break;case 1:l="cfg",a={doc:0,opt:this.s?1:0};break;case 2:l="map",a=this.map;break;case 3:l="ctx",a=this.h;break;default:typeof n>"u"&&o&&o();return}return Tf(e,t||this,n,l,r,s,a,o),i},K.import=function(e,t){if(t)switch(he(t)&&(t=JSON.parse(t)),e){case"cfg":this.s=!!t.opt;break;case"reg":this.m=!1,this.register=t;break;case"map":this.map=t;break;case"ctx":this.h=t}},Ef(Vt.prototype);function Pg(e){e=e.data;var t=self._index;const n=e.args;var r=e.task;switch(r){case"init":r=e.options||{},e=e.factory,t=r.encode,r.cache=!1,t&&t.indexOf("function")===0&&(r.encode=Function("return "+t)()),e?(Function("return "+e)()(self),self._index=new self.FlexSearch.Index(r),delete self.FlexSearch):self._index=new Vt(r);break;default:e=e.id,t=t[r].apply(t,n),postMessage(r==="search"?{id:e,msg:t}:{id:e})}}let Of=0;function $n(e){if(!(this instanceof $n))return new $n(e);var t;e?jl(t=e.encode)&&(e.encode=t.toString()):e={},(t=(self||window)._factory)&&(t=t.toString());const n=typeof window>"u"&&self.exports,r=this;this.o=Tg(t,n,e.worker),this.h=V(),this.o&&(n?this.o.on("message",function(s){r.h[s.id](s.msg),delete r.h[s.id]}):this.o.onmessage=function(s){s=s.data,r.h[s.id](s.msg),delete r.h[s.id]},this.o.postMessage({task:"init",factory:t,options:e}))}Or("add"),Or("append"),Or("search"),Or("update"),Or("remove");function Or(e){$n.prototype[e]=$n.prototype[e+"Async"]=function(){const t=this,n=[].slice.call(arguments);var r=n[n.length-1];let s;return jl(r)&&(s=r,n.splice(n.length-1,1)),r=new Promise(function(o){setTimeout(function(){t.h[++Of]=o,t.o.postMessage({task:e,id:Of,args:n})})}),s?(r.then(s),this):r}}function Tg(e,t,n){let r;try{r=t?new(require("worker_threads")).Worker(__dirname+"/node/node.js"):e?new Worker(URL.createObjectURL(new Blob(["onmessage="+Pg.toString()],{type:"text/javascript"}))):new Worker(he(n)?n:"worker/worker.js",{type:"module"})}catch{}return r}function Lr(e){if(!(this instanceof Lr))return new Lr(e);var t=e.document||e.doc||e,n;this.K=[],this.h=[],this.A=[],this.register=V(),this.key=(n=t.key||t.id)&&Ys(n,this.A)||"id",this.m=qs(e.fastupdate),this.C=(n=t.store)&&n!==!0&&[],this.store=n&&V(),this.I=(n=t.tag)&&Ys(n,this.A),this.l=n&&V(),this.cache=(n=e.cache)&&new Qs(n),e.cache=!1,this.o=e.worker,this.async=!1,n=V();let r=t.index||t.field||t;he(r)&&(r=[r]);for(let s=0,o,i;s<r.length;s++)o=r[s],he(o)||(i=o,o=o.field),i=kt(i)?Object.assign({},e,i):e,this.o&&(n[o]=new $n(i),n[o].o||(this.o=!1)),this.o||(n[o]=new Vt(i,this.register)),this.K[s]=Ys(o,this.A),this.h[s]=o;if(this.C)for(e=t.store,he(e)&&(e=[e]),t=0;t<e.length;t++)this.C[t]=Ys(e[t],this.A);this.index=n}function Ys(e,t){const n=e.split(":");let r=0;for(let s=0;s<n.length;s++)e=n[s],0<=e.indexOf("[]")&&(e=e.substring(0,e.length-2))&&(t[r]=!0),e&&(n[r++]=e);return r<n.length&&(n.length=r),1<r?n:n[0]}function Ol(e,t){if(he(t))e=e[t];else for(let n=0;e&&n<t.length;n++)e=e[t[n]];return e}function Ll(e,t,n,r,s){if(e=e[s],r===n.length-1)t[s]=e;else if(e)if(e.constructor===Array)for(t=t[s]=Array(e.length),s=0;s<e.length;s++)Ll(e,t,n,r,s);else t=t[s]||(t[s]=V()),s=n[++r],Ll(e,t,n,r,s)}function Rl(e,t,n,r,s,o,i,l){if(e=e[i])if(r===t.length-1){if(e.constructor===Array){if(n[r]){for(t=0;t<e.length;t++)s.add(o,e[t],!0,!0);return}e=e.join(" ")}s.add(o,e,l,!0)}else if(e.constructor===Array)for(i=0;i<e.length;i++)Rl(e,t,n,r,s,o,i,l);else i=t[++r],Rl(e,t,n,r,s,o,i,l)}K=Lr.prototype,K.add=function(e,t,n){if(kt(e)&&(t=e,e=Ol(t,this.key)),t&&(e||e===0)){if(!n&&this.register[e])return this.update(e,t);for(let r=0,s,o;r<this.h.length;r++)o=this.h[r],s=this.K[r],he(s)&&(s=[s]),Rl(t,s,this.A,0,this.index[o],e,s[0],n);if(this.I){let r=Ol(t,this.I),s=V();he(r)&&(r=[r]);for(let o=0,i,l;o<r.length;o++)if(i=r[o],!s[i]&&(s[i]=1,l=this.l[i]||(this.l[i]=[]),!n||!l.includes(e))&&(l[l.length]=e,this.m)){const a=this.register[e]||(this.register[e]=[]);a[a.length]=l}}if(this.store&&(!n||!this.store[e])){let r;if(this.C){r=V();for(let s=0,o;s<this.C.length;s++)o=this.C[s],he(o)?r[o]=t[o]:Ll(t,r,o,0,o[0])}this.store[e]=r||t}}return this},K.append=function(e,t){return this.add(e,t,!0)},K.update=function(e,t){return this.remove(e).add(e,t)},K.remove=function(e){if(kt(e)&&(e=Ol(e,this.key)),this.register[e]){for(var t=0;t<this.h.length&&(this.index[this.h[t]].remove(e,!this.o),!this.m);t++);if(this.I&&!this.m)for(let n in this.l){t=this.l[n];const r=t.indexOf(e);r!==-1&&(1<t.length?t.splice(r,1):delete this.l[n])}this.store&&delete this.store[e],delete this.register[e]}return this},K.search=function(e,t,n,r){n||(!t&&kt(e)?(n=e,e=""):kt(t)&&(n=t,t=0));let s=[],o=[],i,l,a,u,f,p,c=0;if(n)if(n.constructor===Array)a=n,n=null;else{if(e=n.query||e,a=(i=n.pluck)||n.index||n.field,u=n.tag,l=this.store&&n.enrich,f=n.bool==="and",t=n.limit||t||100,p=n.offset||0,u&&(he(u)&&(u=[u]),!e)){for(let m=0,y;m<u.length;m++)(y=Ng.call(this,u[m],t,p,l))&&(s[s.length]=y,c++);return c?s:[]}he(a)&&(a=[a])}a||(a=this.h),f=f&&(1<a.length||u&&1<u.length);const v=!r&&(this.o||this.async)&&[];for(let m=0,y,h,d;m<a.length;m++){let g;if(h=a[m],he(h)||(g=h,h=g.field,e=g.query||e,t=g.limit||t,l=g.enrich||l),v)v[m]=this.index[h].searchAsync(e,t,g||n);else{if(r?y=r[m]:y=this.index[h].search(e,t,g||n),d=y&&y.length,u&&d){const w=[];let S=0;f&&(w[0]=[y]);for(let T=0,C,P;T<u.length;T++)C=u[T],(d=(P=this.l[C])&&P.length)&&(S++,w[w.length]=f?[P]:P);S&&(y=f?kf(w,t||100,p||0):Eg(y,w),d=y.length)}if(d)o[c]=h,s[c++]=y;else if(f)return[]}}if(v){const m=this;return new Promise(function(y){Promise.all(v).then(function(h){y(m.search(e,t,n,h))})})}if(!c)return[];if(i&&(!l||!this.store))return s[0];for(let m=0,y;m<o.length;m++){if(y=s[m],y.length&&l&&(y=Lf.call(this,y)),i)return y;s[m]={field:o[m],result:y}}return s};function Ng(e,t,n,r){let s=this.l[e],o=s&&s.length-n;if(o&&0<o)return(o>t||n)&&(s=s.slice(n,n+t)),r&&(s=Lf.call(this,s)),{tag:e,result:s}}function Lf(e){const t=Array(e.length);for(let n=0,r;n<e.length;n++)r=e[n],t[n]={id:r,doc:this.store[r]};return t}K.contain=function(e){return!!this.register[e]},K.get=function(e){return this.store[e]},K.set=function(e,t){return this.store[e]=t,this},K.searchCache=Pf,K.export=function(e,t,n,r,s,o){let i;if(typeof o>"u"&&(i=new Promise(l=>{o=l})),s||(s=0),r||(r=0),r<this.h.length){const l=this.h[r],a=this.index[l];t=this,setTimeout(function(){a.export(e,t,s?l:"",r,s++,o)||(r++,s=1,t.export(e,t,l,r,s,o))})}else{let l,a;switch(s){case 1:l="tag",a=this.l,n=null;break;case 2:l="store",a=this.store,n=null;break;default:o();return}Tf(e,this,n,l,r,s,a,o)}return i},K.import=function(e,t){if(t)switch(he(t)&&(t=JSON.parse(t)),e){case"tag":this.l=t;break;case"reg":this.m=!1,this.register=t;for(let r=0,s;r<this.h.length;r++)s=this.index[this.h[r]],s.register=t,s.m=!1;break;case"store":this.store=t;break;default:e=e.split(".");const n=e[0];e=e[1],n&&e&&this.index[n].import(e,t)}},Ef(Lr.prototype);var Ag={encode:Rf,F:!1,G:""};const jg=[q("[àáâãäå]"),"a",q("[èéêë]"),"e",q("[ìíîï]"),"i",q("[òóôõöő]"),"o",q("[ùúûüű]"),"u",q("[ýŷÿ]"),"y",q("ñ"),"n",q("[çc]"),"k",q("ß"),"s",q(" & ")," and "];function Rf(e){var t=e=""+e;return t.normalize&&(t=t.normalize("NFD").replace(Cg,"")),wf.call(this,t.toLowerCase(),!e.normalize&&jg)}var Og={encode:Ff,F:!1,G:"strict"};const Lg=/[^a-z0-9]+/,_f={b:"p",v:"f",w:"f",z:"s",x:"s",ß:"s",d:"t",n:"m",c:"k",g:"k",j:"k",q:"k",i:"e",y:"e",u:"o"};function Ff(e){e=Rf.call(this,e).join(" ");const t=[];if(e){const n=e.split(Lg),r=n.length;for(let s=0,o,i=0;s<r;s++)if((e=n[s])&&(!this.filter||!this.filter[e])){o=e[0];let l=_f[o]||o,a=l;for(let u=1;u<e.length;u++){o=e[u];const f=_f[o]||o;f&&f!==a&&(l+=f,a=f)}t[i++]=l}}return t}var Rg={encode:Df,F:!1,G:""};const _g=[q("ae"),"a",q("oe"),"o",q("sh"),"s",q("th"),"t",q("ph"),"f",q("pf"),"f",q("(?![aeo])h(?![aeo])"),"",q("(?!^[aeo])h(?!^[aeo])"),""];function Df(e,t){return e&&(e=Ff.call(this,e).join(" "),2<e.length&&(e=Js(e,_g)),t||(1<e.length&&(e=xf(e)),e&&(e=e.split(" ")))),e||[]}var Fg={encode:Ig,F:!1,G:""};const Dg=q("(?!\\b)[aeo]");function Ig(e){return e&&(e=Df.call(this,e,!0),1<e.length&&(e=e.replace(Dg,"")),1<e.length&&(e=xf(e)),e&&(e=e.split(" "))),e||[]}Bt["latin:default"]=$g,Bt["latin:simple"]=Ag,Bt["latin:balance"]=Og,Bt["latin:advanced"]=Rg,Bt["latin:extra"]=Fg;const _l={Index:Vt,Document:Lr,Worker:$n,registerCharset:function(e,t){Bt[e]=t},registerLanguage:function(e,t){$f[e]=t}};function If(e,t){return function(){return e.apply(t,arguments)}}const{toString:zg}=Object.prototype,{getPrototypeOf:Fl}=Object,Zs=(e=>t=>{const n=zg.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),He=e=>(e=e.toLowerCase(),t=>Zs(t)===e),eo=e=>t=>typeof t===e,{isArray:En}=Array,Rr=eo("undefined");function Mg(e){return e!==null&&!Rr(e)&&e.constructor!==null&&!Rr(e.constructor)&&Oe(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const zf=He("ArrayBuffer");function Ug(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&zf(e.buffer),t}const Bg=eo("string"),Oe=eo("function"),Mf=eo("number"),to=e=>e!==null&&typeof e=="object",Vg=e=>e===!0||e===!1,no=e=>{if(Zs(e)!=="object")return!1;const t=Fl(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Hg=He("Date"),Wg=He("File"),Kg=He("Blob"),bg=He("FileList"),qg=e=>to(e)&&Oe(e.pipe),Jg=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Oe(e.append)&&((t=Zs(e))==="formdata"||t==="object"&&Oe(e.toString)&&e.toString()==="[object FormData]"))},Qg=He("URLSearchParams"),Gg=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function _r(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),En(e))for(r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let l;for(r=0;r<i;r++)l=o[r],t.call(null,e[l],l,e)}}function Uf(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,s;for(;r-- >0;)if(s=n[r],t===s.toLowerCase())return s;return null}const Bf=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),Vf=e=>!Rr(e)&&e!==Bf;function Dl(){const{caseless:e}=Vf(this)&&this||{},t={},n=(r,s)=>{const o=e&&Uf(t,s)||s;no(t[o])&&no(r)?t[o]=Dl(t[o],r):no(r)?t[o]=Dl({},r):En(r)?t[o]=r.slice():t[o]=r};for(let r=0,s=arguments.length;r<s;r++)arguments[r]&&_r(arguments[r],n);return t}const Xg=(e,t,n,{allOwnKeys:r}={})=>(_r(t,(s,o)=>{n&&Oe(s)?e[o]=If(s,n):e[o]=s},{allOwnKeys:r}),e),Yg=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Zg=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},em=(e,t,n,r)=>{let s,o,i;const l={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!r||r(i,e,t))&&!l[i]&&(t[i]=e[i],l[i]=!0);e=n!==!1&&Fl(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},tm=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},nm=e=>{if(!e)return null;if(En(e))return e;let t=e.length;if(!Mf(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},rm=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Fl(Uint8Array)),sm=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=r.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},om=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},im=He("HTMLFormElement"),lm=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),Hf=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),am=He("RegExp"),Wf=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};_r(n,(s,o)=>{let i;(i=t(s,o,e))!==!1&&(r[o]=i||s)}),Object.defineProperties(e,r)},um=e=>{Wf(e,(t,n)=>{if(Oe(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Oe(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},cm=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return En(e)?r(e):r(String(e).split(t)),n},fm=()=>{},dm=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Il="abcdefghijklmnopqrstuvwxyz",Kf="0123456789",bf={DIGIT:Kf,ALPHA:Il,ALPHA_DIGIT:Il+Il.toUpperCase()+Kf},hm=(e=16,t=bf.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function pm(e){return!!(e&&Oe(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const gm=e=>{const t=new Array(10),n=(r,s)=>{if(to(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[s]=r;const o=En(r)?[]:{};return _r(r,(i,l)=>{const a=n(i,s+1);!Rr(a)&&(o[l]=a)}),t[s]=void 0,o}}return r};return n(e,0)},mm=He("AsyncFunction");var x={isArray:En,isArrayBuffer:zf,isBuffer:Mg,isFormData:Jg,isArrayBufferView:Ug,isString:Bg,isNumber:Mf,isBoolean:Vg,isObject:to,isPlainObject:no,isUndefined:Rr,isDate:Hg,isFile:Wg,isBlob:Kg,isRegExp:am,isFunction:Oe,isStream:qg,isURLSearchParams:Qg,isTypedArray:rm,isFileList:bg,forEach:_r,merge:Dl,extend:Xg,trim:Gg,stripBOM:Yg,inherits:Zg,toFlatObject:em,kindOf:Zs,kindOfTest:He,endsWith:tm,toArray:nm,forEachEntry:sm,matchAll:om,isHTMLForm:im,hasOwnProperty:Hf,hasOwnProp:Hf,reduceDescriptors:Wf,freezeMethods:um,toObjectSet:cm,toCamelCase:lm,noop:fm,toFiniteNumber:dm,findKey:Uf,global:Bf,isContextDefined:Vf,ALPHABET:bf,generateString:hm,isSpecCompliantForm:pm,toJSONObject:gm,isAsyncFn:mm,isThenable:e=>e&&(to(e)||Oe(e))&&Oe(e.then)&&Oe(e.catch)};function D(e,t,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s)}x.inherits(D,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:x.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const qf=D.prototype,Jf={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Jf[e]={value:e}}),Object.defineProperties(D,Jf),Object.defineProperty(qf,"isAxiosError",{value:!0}),D.from=(e,t,n,r,s,o)=>{const i=Object.create(qf);return x.toFlatObject(e,i,function(a){return a!==Error.prototype},l=>l!=="isAxiosError"),D.call(i,e.message,t,n,r,s),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};var ym=null;function zl(e){return x.isPlainObject(e)||x.isArray(e)}function Qf(e){return x.endsWith(e,"[]")?e.slice(0,-2):e}function Gf(e,t,n){return e?e.concat(t).map(function(s,o){return s=Qf(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function vm(e){return x.isArray(e)&&!e.some(zl)}const wm=x.toFlatObject(x,{},null,function(t){return/^is[A-Z]/.test(t)});function ro(e,t,n){if(!x.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=x.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,h){return!x.isUndefined(h[y])});const r=n.metaTokens,s=n.visitor||f,o=n.dots,i=n.indexes,a=(n.Blob||typeof Blob<"u"&&Blob)&&x.isSpecCompliantForm(t);if(!x.isFunction(s))throw new TypeError("visitor must be a function");function u(m){if(m===null)return"";if(x.isDate(m))return m.toISOString();if(!a&&x.isBlob(m))throw new D("Blob is not supported. Use a Buffer instead.");return x.isArrayBuffer(m)||x.isTypedArray(m)?a&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function f(m,y,h){let d=m;if(m&&!h&&typeof m=="object"){if(x.endsWith(y,"{}"))y=r?y:y.slice(0,-2),m=JSON.stringify(m);else if(x.isArray(m)&&vm(m)||(x.isFileList(m)||x.endsWith(y,"[]"))&&(d=x.toArray(m)))return y=Qf(y),d.forEach(function(w,S){!(x.isUndefined(w)||w===null)&&t.append(i===!0?Gf([y],S,o):i===null?y:y+"[]",u(w))}),!1}return zl(m)?!0:(t.append(Gf(h,y,o),u(m)),!1)}const p=[],c=Object.assign(wm,{defaultVisitor:f,convertValue:u,isVisitable:zl});function v(m,y){if(!x.isUndefined(m)){if(p.indexOf(m)!==-1)throw Error("Circular reference detected in "+y.join("."));p.push(m),x.forEach(m,function(d,g){(!(x.isUndefined(d)||d===null)&&s.call(t,d,x.isString(g)?g.trim():g,y,c))===!0&&v(d,y?y.concat(g):[g])}),p.pop()}}if(!x.isObject(e))throw new TypeError("data must be an object");return v(e),t}function Xf(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Ml(e,t){this._pairs=[],e&&ro(e,this,t)}const Yf=Ml.prototype;Yf.append=function(t,n){this._pairs.push([t,n])},Yf.toString=function(t){const n=t?function(r){return t.call(this,r,Xf)}:Xf;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function Sm(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Zf(e,t,n){if(!t)return e;const r=n&&n.encode||Sm,s=n&&n.serialize;let o;if(s?o=s(t,n):o=x.isURLSearchParams(t)?t.toString():new Ml(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class xm{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){x.forEach(this.handlers,function(r){r!==null&&t(r)})}}var ed=xm,td={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Cm=typeof URLSearchParams<"u"?URLSearchParams:Ml,$m=typeof FormData<"u"?FormData:null,Em=typeof Blob<"u"?Blob:null,km={isBrowser:!0,classes:{URLSearchParams:Cm,FormData:$m,Blob:Em},protocols:["http","https","file","blob","url","data"]};const nd=typeof window<"u"&&typeof document<"u",Pm=(e=>nd&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Tm=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")();var Nm=Object.freeze({__proto__:null,hasBrowserEnv:nd,hasStandardBrowserWebWorkerEnv:Tm,hasStandardBrowserEnv:Pm}),We={...Nm,...km};function Am(e,t){return ro(e,new We.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,o){return We.isNode&&x.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function jm(e){return x.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Om(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r<s;r++)o=n[r],t[o]=e[o];return t}function rd(e){function t(n,r,s,o){let i=n[o++];if(i==="__proto__")return!0;const l=Number.isFinite(+i),a=o>=n.length;return i=!i&&x.isArray(s)?s.length:i,a?(x.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!l):((!s[i]||!x.isObject(s[i]))&&(s[i]=[]),t(n,r,s[i],o)&&x.isArray(s[i])&&(s[i]=Om(s[i])),!l)}if(x.isFormData(e)&&x.isFunction(e.entries)){const n={};return x.forEachEntry(e,(r,s)=>{t(jm(r),s,n,0)}),n}return null}function Lm(e,t,n){if(x.isString(e))try{return(t||JSON.parse)(e),x.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Ul={transitional:td,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=x.isObject(t);if(o&&x.isHTMLForm(t)&&(t=new FormData(t)),x.isFormData(t))return s?JSON.stringify(rd(t)):t;if(x.isArrayBuffer(t)||x.isBuffer(t)||x.isStream(t)||x.isFile(t)||x.isBlob(t))return t;if(x.isArrayBufferView(t))return t.buffer;if(x.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Am(t,this.formSerializer).toString();if((l=x.isFileList(t))||r.indexOf("multipart/form-data")>-1){const a=this.env&&this.env.FormData;return ro(l?{"files[]":t}:t,a&&new a,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),Lm(t)):t}],transformResponse:[function(t){const n=this.transitional||Ul.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(t&&x.isString(t)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(l){if(i)throw l.name==="SyntaxError"?D.from(l,D.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:We.classes.FormData,Blob:We.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};x.forEach(["delete","get","head","post","put","patch"],e=>{Ul.headers[e]={}});var Bl=Ul;const Rm=x.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var _m=e=>{const t={};let n,r,s;return e&&e.split(`
|
|
51
|
+
`).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim(),!(!n||t[n]&&Rm[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t};const sd=Symbol("internals");function Fr(e){return e&&String(e).trim().toLowerCase()}function so(e){return e===!1||e==null?e:x.isArray(e)?e.map(so):String(e)}function Fm(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const Dm=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Vl(e,t,n,r,s){if(x.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!x.isString(t)){if(x.isString(r))return t.indexOf(r)!==-1;if(x.isRegExp(r))return r.test(t)}}function Im(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function zm(e,t){const n=x.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,o,i){return this[r].call(this,t,s,o,i)},configurable:!0})})}class oo{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function o(l,a,u){const f=Fr(a);if(!f)throw new Error("header name must be a non-empty string");const p=x.findKey(s,f);(!p||s[p]===void 0||u===!0||u===void 0&&s[p]!==!1)&&(s[p||a]=so(l))}const i=(l,a)=>x.forEach(l,(u,f)=>o(u,f,a));return x.isPlainObject(t)||t instanceof this.constructor?i(t,n):x.isString(t)&&(t=t.trim())&&!Dm(t)?i(_m(t),n):t!=null&&o(n,t,r),this}get(t,n){if(t=Fr(t),t){const r=x.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return Fm(s);if(x.isFunction(n))return n.call(this,s,r);if(x.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Fr(t),t){const r=x.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Vl(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function o(i){if(i=Fr(i),i){const l=x.findKey(r,i);l&&(!n||Vl(r,r[l],l,n))&&(delete r[l],s=!0)}}return x.isArray(t)?t.forEach(o):o(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const o=n[r];(!t||Vl(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const n=this,r={};return x.forEach(this,(s,o)=>{const i=x.findKey(r,o);if(i){n[i]=so(s),delete n[o];return}const l=t?Im(o):String(o).trim();l!==o&&delete n[o],n[l]=so(s),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return x.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&x.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|
52
|
+
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[sd]=this[sd]={accessors:{}}).accessors,s=this.prototype;function o(i){const l=Fr(i);r[l]||(zm(s,i),r[l]=!0)}return x.isArray(t)?t.forEach(o):o(t),this}}oo.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),x.reduceDescriptors(oo.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),x.freezeMethods(oo);var nt=oo;function Hl(e,t){const n=this||Bl,r=t||n,s=nt.from(r.headers);let o=r.data;return x.forEach(e,function(l){o=l.call(n,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function od(e){return!!(e&&e.__CANCEL__)}function Dr(e,t,n){D.call(this,e??"canceled",D.ERR_CANCELED,t,n),this.name="CanceledError"}x.inherits(Dr,D,{__CANCEL__:!0});function Mm(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new D("Request failed with status code "+n.status,[D.ERR_BAD_REQUEST,D.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}var Um=We.hasStandardBrowserEnv?{write(e,t,n,r,s,o){const i=[e+"="+encodeURIComponent(t)];x.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),x.isString(r)&&i.push("path="+r),x.isString(s)&&i.push("domain="+s),o===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Bm(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Vm(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function id(e,t){return e&&!Bm(t)?Vm(e,t):t}var Hm=We.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function s(o){let i=o;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=s(window.location.href),function(i){const l=x.isString(i)?s(i):i;return l.protocol===r.protocol&&l.host===r.host}}():function(){return function(){return!0}}();function Wm(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Km(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,o=0,i;return t=t!==void 0?t:1e3,function(a){const u=Date.now(),f=r[o];i||(i=u),n[s]=a,r[s]=u;let p=o,c=0;for(;p!==s;)c+=n[p++],p=p%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),u-i<t)return;const v=f&&u-f;return v?Math.round(c*1e3/v):void 0}}function ld(e,t){let n=0;const r=Km(50,250);return s=>{const o=s.loaded,i=s.lengthComputable?s.total:void 0,l=o-n,a=r(l),u=o<=i;n=o;const f={loaded:o,total:i,progress:i?o/i:void 0,bytes:l,rate:a||void 0,estimated:a&&i&&u?(i-o)/a:void 0,event:s};f[t?"download":"upload"]=!0,e(f)}}var bm=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){let s=e.data;const o=nt.from(e.headers).normalize();let{responseType:i,withXSRFToken:l}=e,a;function u(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}let f;if(x.isFormData(s)){if(We.hasStandardBrowserEnv||We.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if((f=o.getContentType())!==!1){const[y,...h]=f?f.split(";").map(d=>d.trim()).filter(Boolean):[];o.setContentType([y||"multipart/form-data",...h].join("; "))}}let p=new XMLHttpRequest;if(e.auth){const y=e.auth.username||"",h=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(y+":"+h))}const c=id(e.baseURL,e.url);p.open(e.method.toUpperCase(),Zf(c,e.params,e.paramsSerializer),!0),p.timeout=e.timeout;function v(){if(!p)return;const y=nt.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),d={data:!i||i==="text"||i==="json"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:y,config:e,request:p};Mm(function(w){n(w),u()},function(w){r(w),u()},d),p=null}if("onloadend"in p?p.onloadend=v:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.indexOf("file:")===0)||setTimeout(v)},p.onabort=function(){p&&(r(new D("Request aborted",D.ECONNABORTED,e,p)),p=null)},p.onerror=function(){r(new D("Network Error",D.ERR_NETWORK,e,p)),p=null},p.ontimeout=function(){let h=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const d=e.transitional||td;e.timeoutErrorMessage&&(h=e.timeoutErrorMessage),r(new D(h,d.clarifyTimeoutError?D.ETIMEDOUT:D.ECONNABORTED,e,p)),p=null},We.hasStandardBrowserEnv&&(l&&x.isFunction(l)&&(l=l(e)),l||l!==!1&&Hm(c))){const y=e.xsrfHeaderName&&e.xsrfCookieName&&Um.read(e.xsrfCookieName);y&&o.set(e.xsrfHeaderName,y)}s===void 0&&o.setContentType(null),"setRequestHeader"in p&&x.forEach(o.toJSON(),function(h,d){p.setRequestHeader(d,h)}),x.isUndefined(e.withCredentials)||(p.withCredentials=!!e.withCredentials),i&&i!=="json"&&(p.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&p.addEventListener("progress",ld(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&p.upload&&p.upload.addEventListener("progress",ld(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=y=>{p&&(r(!y||y.type?new Dr(null,e,p):y),p.abort(),p=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const m=Wm(c);if(m&&We.protocols.indexOf(m)===-1){r(new D("Unsupported protocol "+m+":",D.ERR_BAD_REQUEST,e));return}p.send(s||null)})};const Wl={http:ym,xhr:bm};x.forEach(Wl,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const ad=e=>`- ${e}`,qm=e=>x.isFunction(e)||e===null||e===!1;var ud={getAdapter:e=>{e=x.isArray(e)?e:[e];const{length:t}=e;let n,r;const s={};for(let o=0;o<t;o++){n=e[o];let i;if(r=n,!qm(n)&&(r=Wl[(i=String(n)).toLowerCase()],r===void 0))throw new D(`Unknown adapter '${i}'`);if(r)break;s[i||"#"+o]=r}if(!r){const o=Object.entries(s).map(([l,a])=>`adapter ${l} `+(a===!1?"is not supported by the environment":"is not available in the build"));let i=t?o.length>1?`since :
|
|
53
53
|
`+o.map(ad).join(`
|
|
54
|
-
`):" "+ad(o[0]):"as no adapter specified";throw new D("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:
|
|
55
|
-
`+o):r.stack=o}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=kn(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&bl.assertOptions(r,{silentJSONParsing:Pt.transitional(Pt.boolean),forcedJSONParsing:Pt.transitional(Pt.boolean),clarifyTimeoutError:Pt.transitional(Pt.boolean)},!1),s!=null&&(x.isFunction(s)?n.paramsSerializer={serialize:s}:bl.assertOptions(s,{encode:Pt.function,serialize:Pt.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&x.merge(o.common,o[n.method]);o&&x.forEach(["delete","get","head","post","put","patch","common"],m=>{delete o[m]}),n.headers=nt.concat(i,o);const l=[];let a=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(n)===!1||(a=a&&y.synchronous,l.unshift(y.fulfilled,y.rejected))});const u=[];this.interceptors.response.forEach(function(y){u.push(y.fulfilled,y.rejected)});let f,p=0,c;if(!a){const m=[cd.bind(this),void 0];for(m.unshift.apply(m,l),m.push.apply(m,u),c=m.length,f=Promise.resolve(n);p<c;)f=f.then(m[p++],m[p++]);return f}c=l.length;let v=n;for(p=0;p<c;){const m=l[p++],y=l[p++];try{v=m(v)}catch(h){y.call(this,h);break}}try{f=cd.call(this,v)}catch(m){return Promise.reject(m)}for(p=0,c=u.length;p<c;)f=f.then(u[p++],u[p++]);return f}getUri(t){t=kn(this.defaults,t);const n=id(t.baseURL,t.url);return Zf(n,t.params,t.paramsSerializer)}}x.forEach(["delete","get","head","options"],function(t){io.prototype[t]=function(n,r){return this.request(kn(r||{},{method:t,url:n,data:(r||{}).data}))}}),x.forEach(["post","put","patch"],function(t){function n(r){return function(o,i,l){return this.request(kn(l||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}io.prototype[t]=n(),io.prototype[t+"Form"]=n(!0)});var lo=io;class ql{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(s=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const i=new Promise(l=>{r.subscribe(l),o=l}).then(s);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,l){r.reason||(r.reason=new Dr(o,i,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new ql(function(s){t=s}),cancel:t}}}var qm=ql;function Jm(e){return function(n){return e.apply(null,n)}}function Qm(e){return x.isObject(e)&&e.isAxiosError===!0}const Jl={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Jl).forEach(([e,t])=>{Jl[t]=e});var Gm=Jl;function pd(e){const t=new lo(e),n=If(lo.prototype.request,t);return x.extend(n,lo.prototype,t,{allOwnKeys:!0}),x.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return pd(kn(e,s))},n}const G=pd(Ul);G.Axios=lo,G.CanceledError=Dr,G.CancelToken=qm,G.isCancel=od,G.VERSION=dd,G.toFormData=ro,G.AxiosError=D,G.Cancel=G.CanceledError,G.all=function(t){return Promise.all(t)},G.spread=Jm,G.isAxiosError=Qm,G.mergeConfig=kn,G.AxiosHeaders=nt,G.formToJSON=e=>rd(x.isHTMLForm(e)?new FormData(e):e),G.getAdapter=ud.getAdapter,G.HttpStatusCode=Gm,G.default=G;var Ym=G,Xm="@tryghost/content-api",Zm="1.11.21",e0="https://github.com/TryGhost/SDK/tree/main/packages/content-api",t0="Ghost Foundation",n0="MIT",r0="cjs/content-api.js",s0="umd/content-api.min.js",o0="es/content-api.js",i0="lib/content-api.js",l0=["LICENSE","README.md","cjs/","lib/","umd/","es/"],a0={dev:'echo "Implement me!"',pretest:"yarn build",test:"NODE_ENV=testing c8 --all --reporter text --reporter cobertura mocha './test/**/*.test.js'",build:"rollup -c",lint:"eslint . --ext .js --cache",prepare:"NODE_ENV=production yarn build",posttest:"yarn lint"},u0={access:"public"},c0={"@babel/core":"7.24.4","@babel/polyfill":"7.12.1","@babel/preset-env":"7.24.4","@rollup/plugin-json":"6.1.0",c8:"9.1.0","core-js":"3.37.0","eslint-plugin-ghost":"3.4.0",mocha:"10.4.0",rollup:"2.79.1","rollup-plugin-babel":"4.4.0","rollup-plugin-commonjs":"10.1.0","rollup-plugin-node-resolve":"5.2.0","rollup-plugin-polyfill-node":"0.12.0","rollup-plugin-replace":"2.2.0","rollup-plugin-terser":"7.0.2",should:"13.2.3",sinon:"17.0.1"},f0={axios:"^1.0.0"},d0="048ccde4bd78d2dcd60e778d03eb8dc3227cece5",h0={name:Xm,version:Zm,repository:e0,author:t0,license:n0,main:r0,"umd:main":"umd/content-api.min.js",unpkg:s0,module:o0,source:i0,files:l0,scripts:a0,publishConfig:u0,devDependencies:c0,dependencies:f0,gitHead:d0};const p0=!1,g0=h0.version,gd="v5.0",md=["v2","v3","v4","v5","canary"],Le="@tryghost/content-api",m0=e=>{let t;return e==="v5"||e===void 0||e.match(/^v5\.\d+/)?t="/content/":e.match(/^v\d+\.\d+/)?t=`/${/^(v\d+)\.\d+/.exec(e)[1]}/content/`:t=`/${e}/content/`,t},y0=e=>{let{url:t,method:n,params:r,headers:s}=e;return Ym[n](t,{params:r,paramsSerializer:o=>Object.keys(o).reduce((i,l)=>{const a=encodeURIComponent([].concat(o[l]).join(","));return i.concat(`${l}=${a}`)},[]).join("&"),headers:s})};function Ql(e){let{url:t,key:n,host:r,version:s,userAgent:o,ghostPath:i="ghost",makeRequest:l=y0}=e;if(r&&(console.warn(`${Le}: The 'host' parameter is deprecated, please use 'url' instead`),t||(t=r)),this instanceof Ql)return Ql({url:t,key:n,version:s,userAgent:o,ghostPath:i,makeRequest:l});if(s===void 0)throw new Error(`${Le} Config Missing: 'version' is required. E.g. ${md.join(",")}`);let a;if(typeof s=="boolean")s===!0&&(a=gd),s=void 0;else{if(s&&!md.includes(s)&&!s.match(/^v\d+\.\d+/))throw new Error(`${Le} Config Invalid: 'version' ${s} is not supported`);s==="canary"?(console.warn(`${Le}: The 'version' parameter has a deprecated format 'canary', please use 'v{major}.{minor}' format instead`),a=gd):s.match(/^v\d+$/)?(console.warn(`${Le}: The 'version' parameter has a deprecated format 'v{major}', please use 'v{major}.{minor}' format instead`),a=`${s}.0`):a=s}if(!t)throw new Error(`${Le} Config Missing: 'url' is required. E.g. 'https://site.com'`);if(!/https?:\/\//.test(t))throw new Error(`${Le} Config Invalid: 'url' ${t} requires a protocol. E.g. 'https://site.com'`);if(t.endsWith("/"))throw new Error(`${Le} Config Invalid: 'url' ${t} must not have a trailing slash. E.g. 'https://site.com'`);if(i.endsWith("/")||i.startsWith("/"))throw new Error(`${Le} Config Invalid: 'ghostPath' ${i} must not have a leading or trailing slash. E.g. 'ghost'`);if(n&&!/[0-9a-f]{26}/.test(n))throw new Error(`${Le} Config Invalid: 'key' ${n} must have 26 hex characters`);o===void 0&&(o=p0);const u=["posts","authors","tags","pages","settings","tiers","newsletters","offers"].reduce((p,c)=>{function v(){let y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},h=arguments.length>1?arguments[1]:void 0;return f(c,y,null,h)}function m(y){let h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d=arguments.length>2?arguments[2]:void 0;if(!y||!y.id&&!y.slug)return Promise.reject(new Error(`${Le} read requires an id or slug.`));const g=Object.assign({},y,h);return f(c,g,y.id||`slug/${y.slug}`,d)}return Object.assign(p,{[c]:{read:m,browse:v}})},{});return delete u.settings.read,delete u.tiers.read,delete u.newsletters.read,delete u.offers.browse,u;function f(p,c,v){let m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;if(!m&&!n)return Promise.reject(new Error(`${Le} Config Missing: 'key' is required.`));delete c.id;const y=m?{Authorization:`GhostMembers ${m}`}:{};o&&(typeof o=="boolean"?y["User-Agent"]=`GhostContentSDK/${g0}`:y["User-Agent"]=o),a&&(y["Accept-Version"]=a),c=Object.assign({key:n},c);const h=`${t}/${i}/api${m0(s)}${p}/${v?v+"/":""}`;return l({url:h,method:"get",params:c,headers:y}).then(d=>Array.isArray(d.data[p])?d.data[p].length===1&&!d.data.meta?d.data[p][0]:Object.assign(d.data[p],{meta:d.data.meta}):d.data[p]).catch(d=>{if(d.response&&d.response.data&&d.response.data.errors){const g=d.response.data.errors[0],w=new Error(g.message),S=Object.keys(g);throw w.name=g.type,S.forEach(T=>{w[T]=g[T]}),w.response=d.response,w.request=d.request,w.config=d.config,w}else throw d})}}class v0{constructor({adminUrl:t,apiKey:n,dir:r}){Ln(this,mo);Ln(this,yo);Ln(this,vo);Ln(this,Nn);Ln(this,An);this.api=new Ql({url:t,key:n,version:"v5.0"});const s=r==="rtl",o=r==="rtl"?"reverse":"forward";this.postsIndex=new Rl.Document({tokenize:o,rtl:s,document:{id:"id",index:["title","excerpt"],store:!0},...Je(this,An,xo).call(this)}),this.authorsIndex=new Rl.Document({tokenize:o,rtl:s,document:{id:"id",index:["name"],store:!0},...Je(this,An,xo).call(this)}),this.tagsIndex=new Rl.Document({tokenize:o,rtl:s,document:{id:"id",index:["name"],store:!0},...Je(this,An,xo).call(this)}),this.init=this.init.bind(this),this.search=this.search.bind(this)}async init(){let t=await this.api.posts.browse({limit:"10000",fields:"id,slug,title,excerpt,url,updated_at,visibility",order:"updated_at DESC"});(t||t.length>0)&&(t.length||(t=[t]),Je(this,mo,Dd).call(this,t));let n=await this.api.authors.browse({limit:"10000",fields:"id,slug,name,url,profile_image",order:"updated_at DESC"});(n||n.length>0)&&(n.length||(n=[n]),Je(this,yo,Id).call(this,n));let r=await this.api.tags.browse({limit:"10000",fields:"id,slug,name,url",order:"updated_at DESC",filter:"visibility:public"});(r||r.length>0)&&(r.length||(r=[r]),Je(this,vo,zd).call(this,r))}search(t){const n=this.postsIndex.search(t,{enrich:!0}),r=this.authorsIndex.search(t,{enrich:!0}),s=this.tagsIndex.search(t,{enrich:!0});return{posts:Je(this,Nn,So).call(this,n),authors:Je(this,Nn,So).call(this,r),tags:Je(this,Nn,So).call(this,s)}}}mo=new WeakSet,Dd=function(t){t.forEach(n=>{this.postsIndex.add(n)})},yo=new WeakSet,Id=function(t){t.forEach(n=>{this.authorsIndex.add(n)})},vo=new WeakSet,zd=function(t){t.forEach(n=>{this.tagsIndex.add(n)})},Nn=new WeakSet,So=function(t){const n=[],r={};return t.forEach(s=>{s.result.forEach(o=>{r[o.id]||(n.push(o.doc),r[o.id]=!0)})}),n},An=new WeakSet,xo=function(){const t=new RegExp("[一-鿿-ゟ゠-ヿ가-힣㐀-䶿𠀀-𪛟𪜀-𫝀-𫠠-𬺰-𰀀-𱍐-𲎯-豈-丽-]|[0-9A-Za-zа-яÀ-ſЀ-ӿ-ۿঀ-Ḁ-ỿ]+","mug");return{encode:n=>(""+n).toLowerCase().match(t)??[]}};const w0={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},S0={Authors:"الكتّاب",Cancel:"إلغاء","No matches found":"لا يوجد نتائج مطابقة",Posts:"منشورات","Search posts, tags and authors":"قم بالبحث عن المنشورات، الوسوم و الكتّاب","Show more results":"اظهر المزيد من النتائج",Tags:"الوسوم"},x0={Authors:"Автори",Cancel:"Отказ","No matches found":"Няма намерени резултати",Posts:"Публикации","Search posts, tags and authors":"Търсене в публикации, етикети и автори","Show more results":"Показване на още резултати",Tags:"Етикети"},C0={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},$0={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},E0={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},k0={Authors:"Autoři",Cancel:"Zrušit","No matches found":"Nenalezeno",Posts:"Články","Search posts, tags and authors":"Prohledat články, štítky a autory","Show more results":"Zobrazit více výsledků",Tags:"Štítky"},P0={Authors:"Forfattere",Cancel:"Annuller","No matches found":"Ingen resultater fundet",Posts:"Indlæg","Search posts, tags and authors":"Søg i indlæg, tags og forfattere","Show more results":"Vis flere resultater",Tags:"Tags"},T0={Authors:"Autor*innen",Cancel:"Abbrechen","No matches found":"Keine Treffer gefunden",Posts:"Posts","Search posts, tags and authors":"Posts, Tags und Autor*innen durchsuchen","Show more results":"Mehr Ergebnisse anzeigen",Tags:"Tags"},N0={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},A0={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},j0={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},O0={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},L0={Authors:"Autores",Cancel:"Cancelar","No matches found":"No se encontraron resultados",Posts:"Publicaciones","Search posts, tags and authors":"Buscar publicaciones, etiquetas y autores","Show more results":"Mostrar más resultados",Tags:"Etiquetas"},R0={Authors:"Autorid",Cancel:"Tühista","No matches found":"Vasteid ei leitud",Posts:"Postitused","Search posts, tags and authors":"Otsi postitusi, silte ja autoreid","Show more results":"Näita rohkem tulemusi",Tags:"Sildid"},_0={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},F0={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},D0={Authors:"Auteurs",Cancel:"Annuler","No matches found":"Aucun résultat trouvé",Posts:"Articles","Search posts, tags and authors":"Rechercher des articles, des catégories et des auteurs","Show more results":"Plus de résultats",Tags:"Catégories"},I0={Authors:"Ùghdaran",Cancel:"Sguir dheth","No matches found":"Cha deach dad a lorg a fhreagras ris na lorg thu",Posts:"Postaichean","Search posts, tags and authors":"Lorg sna postaichean, tagaichean agus ùghdaran","Show more results":"Seall barrachd thoraidhean",Tags:"Tagaichean"},z0={Authors:"מחברים",Cancel:"ביטול","No matches found":"לא נמצאו התאמות",Posts:"פוסטים","Search posts, tags and authors":"חיפוש פוסטים, תגיות ומחברים","Show more results":"הצגת תוצאות נוספות",Tags:"תגיות"},M0={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},U0={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},B0={Authors:"Szerzők",Cancel:"Mégse","No matches found":"Nincs találat",Posts:"Bejegyzések","Search posts, tags and authors":"Keresés bejegyzések, címkék és szerzők között","Show more results":"További találatok megjelenítése",Tags:"Címkék"},V0={Authors:"Penulis",Cancel:"Batalkan","No matches found":"Tidak ada hasil yang ditemukan",Posts:"Postingan","Search posts, tags and authors":"Cari postingan, tag, dan penulis","Show more results":"Tampilkan lebih banyak hasil",Tags:"Tag"},H0={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},W0={Authors:"Autori",Cancel:"Annulla","No matches found":"Nessun risultato trovato",Posts:"Articoli","Search posts, tags and authors":"Cerca articoli, tag e autori","Show more results":"Mostra più risultati",Tags:"Tag"},K0={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},b0={Authors:"작성자",Cancel:"취소","No matches found":"일치하는 결과가 없어요",Posts:"게시물","Search posts, tags and authors":"게시물, 태그, 작성자 검색","Show more results":"더 많은 결과 보기",Tags:"태그"},q0={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},J0={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Q0={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},G0={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Y0={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},X0={Authors:"लेखकहरू",Cancel:"रद्द गर्नुहोस्","No matches found":"कुनै परिणाम भेटिएन",Posts:"पोस्टहरू","Search posts, tags and authors":"पोस्टहरू, ट्यागहरू र लेखकहरू खोज्नुहोस्","Show more results":"थप परिणामहरू देखाउनुहोस्",Tags:"ट्यागहरू"},Z0={Authors:"Auteurs",Cancel:"Annuleren","No matches found":"Geen resultaten gevonden",Posts:"Berichten","Search posts, tags and authors":"Zoek berichten, tags en auteurs","Show more results":"Meer resultaten weergeven",Tags:"Tags"},e1={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},t1={Authors:"Forfattere",Cancel:"Avbryt","No matches found":"Ingen treff funnet",Posts:"Innlegg","Search posts, tags and authors":"Søk i innlegg, etiketter og forfattere","Show more results":"Vis flere resultater",Tags:"Etiketter"},n1={Authors:"Autorzy",Cancel:"Anuluj","No matches found":"Nie znaleziono dopasowań",Posts:"Posty","Search posts, tags and authors":"Szukaj postów, tagów lub autorów","Show more results":"Pokaż więcej wyników",Tags:"Tagi"},r1={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},s1={Authors:"Autores",Cancel:"Cancelar","No matches found":"Nenhum resultado encontrado",Posts:"Publicações","Search posts, tags and authors":"Buscar posts, tags e autores","Show more results":"Mostrar mais resultados",Tags:"Tags"},o1={Authors:"Autori",Cancel:"Anulează","No matches found":"Nu s-au găsit rezultate",Posts:"Postări","Search posts, tags and authors":"Caută postări, etichete și autori","Show more results":"Afișează mai multe rezultate",Tags:"Etichete"},i1={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},l1={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},a1={Authors:"Autori",Cancel:"Zrušiť","No matches found":"Nenašli sa žiadne výsledky",Posts:"Príspevky","Search posts, tags and authors":"Vyhľadajte príspevky, tagy a autorov","Show more results":"Zobraziť viac výsledkov",Tags:"Tagy"},u1={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},c1={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},f1={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},d1={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},h1={Authors:"Författare",Cancel:"Avbryt","No matches found":"Inga träffar hittade",Posts:"Inlägg","Search posts, tags and authors":"Sök inlägg, taggar och författare","Show more results":"Visa fler resultat",Tags:"Taggar"},p1={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},g1={Authors:"Yazarlar",Cancel:"İptal","No matches found":"Eşleşme bulunamadı",Posts:"Yazılar","Search posts, tags and authors":"Gönderileri, etiketleri ve yazarları ara","Show more results":"Daha fazla sonuç göster",Tags:"Etiketler"},m1={Authors:"Автори",Cancel:"Скасувати","No matches found":"Збігів не знайдено",Posts:"Публікації","Search posts, tags and authors":"Шукайте публікацій, теги та авторів","Show more results":"Показати більше результатів",Tags:"Теги"},y1={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},v1={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},w1={Authors:"Tác giả",Cancel:"Hủy bỏ","No matches found":"Không tìm thấy",Posts:"Bài viết","Search posts, tags and authors":"Tìm bài viết, chuyên mục & tác giả","Show more results":"Xem thêm kết quả",Tags:"Chuyên mục"},S1={Authors:"作者",Cancel:"取消","No matches found":"未找到匹配项",Posts:"文章","Search posts, tags and authors":"搜索文章、标签和作者","Show more results":"显示更多结果",Tags:"标签"},x1={Authors:"作者",Cancel:"取消","No matches found":"無相符結果",Posts:"文章","Search posts, tags and authors":"搜尋文章、標籤與作者","Show more results":"更多結果",Tags:"標籤"},C1={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},$1={Authors:"ஆசிரியர்கள்",Cancel:"ரத்து செய்","No matches found":"பொருத்தங்கள் எதுவும் இல்லை",Posts:"பதிவுகள்","Search posts, tags and authors":"பதிவுகள், குறிச்சொற்கள் மற்றும் ஆசிரியர்களைத் தேடுங்கள்","Show more results":"மேலும் முடிவுகளைக் காட்டு",Tags:"குறிச்சொற்கள்"};var yd;function vd(){return yd||(yd={"/ghost/i18n/locales/af/search.json":function(){return w0},"/ghost/i18n/locales/ar/search.json":function(){return S0},"/ghost/i18n/locales/bg/search.json":function(){return x0},"/ghost/i18n/locales/bn/search.json":function(){return C0},"/ghost/i18n/locales/bs/search.json":function(){return $0},"/ghost/i18n/locales/ca/search.json":function(){return E0},"/ghost/i18n/locales/cs/search.json":function(){return k0},"/ghost/i18n/locales/da/search.json":function(){return P0},"/ghost/i18n/locales/de/search.json":function(){return T0},"/ghost/i18n/locales/de-CH/search.json":function(){return N0},"/ghost/i18n/locales/el/search.json":function(){return A0},"/ghost/i18n/locales/en/search.json":function(){return j0},"/ghost/i18n/locales/eo/search.json":function(){return O0},"/ghost/i18n/locales/es/search.json":function(){return L0},"/ghost/i18n/locales/et/search.json":function(){return R0},"/ghost/i18n/locales/fa/search.json":function(){return _0},"/ghost/i18n/locales/fi/search.json":function(){return F0},"/ghost/i18n/locales/fr/search.json":function(){return D0},"/ghost/i18n/locales/gd/search.json":function(){return I0},"/ghost/i18n/locales/he/search.json":function(){return z0},"/ghost/i18n/locales/hi/search.json":function(){return M0},"/ghost/i18n/locales/hr/search.json":function(){return U0},"/ghost/i18n/locales/hu/search.json":function(){return B0},"/ghost/i18n/locales/id/search.json":function(){return V0},"/ghost/i18n/locales/is/search.json":function(){return H0},"/ghost/i18n/locales/it/search.json":function(){return W0},"/ghost/i18n/locales/ja/search.json":function(){return K0},"/ghost/i18n/locales/ko/search.json":function(){return b0},"/ghost/i18n/locales/kz/search.json":function(){return q0},"/ghost/i18n/locales/lt/search.json":function(){return J0},"/ghost/i18n/locales/mk/search.json":function(){return Q0},"/ghost/i18n/locales/mn/search.json":function(){return G0},"/ghost/i18n/locales/ms/search.json":function(){return Y0},"/ghost/i18n/locales/ne/search.json":function(){return X0},"/ghost/i18n/locales/nl/search.json":function(){return Z0},"/ghost/i18n/locales/nn/search.json":function(){return e1},"/ghost/i18n/locales/no/search.json":function(){return t1},"/ghost/i18n/locales/pl/search.json":function(){return n1},"/ghost/i18n/locales/pt/search.json":function(){return r1},"/ghost/i18n/locales/pt-BR/search.json":function(){return s1},"/ghost/i18n/locales/ro/search.json":function(){return o1},"/ghost/i18n/locales/ru/search.json":function(){return i1},"/ghost/i18n/locales/si/search.json":function(){return l1},"/ghost/i18n/locales/sk/search.json":function(){return a1},"/ghost/i18n/locales/sl/search.json":function(){return u1},"/ghost/i18n/locales/sq/search.json":function(){return c1},"/ghost/i18n/locales/sr/search.json":function(){return f1},"/ghost/i18n/locales/sr-Cyrl/search.json":function(){return d1},"/ghost/i18n/locales/sv/search.json":function(){return h1},"/ghost/i18n/locales/th/search.json":function(){return p1},"/ghost/i18n/locales/tr/search.json":function(){return g1},"/ghost/i18n/locales/uk/search.json":function(){return m1},"/ghost/i18n/locales/ur/search.json":function(){return y1},"/ghost/i18n/locales/uz/search.json":function(){return v1},"/ghost/i18n/locales/vi/search.json":function(){return w1},"/ghost/i18n/locales/zh/search.json":function(){return S1},"/ghost/i18n/locales/zh-Hant/search.json":function(){return x1},"/ghost/i18n/locales/sw/search.json":function(){return C1},"/ghost/i18n/locales/ta/search.json":function(){return $1}})}function E1(e){function t(n){var r=wd(n,e);if(r!==null)return vd()[r]();throw new Error('Could not dynamically require "'+n+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}return t.resolve=function(n){var r=wd(n,e);return r!==null?r:require.resolve(n)},t}function wd(e,t){var n=k1(e);e=ao(e);var r;e[0]==="/"&&(t="");for(var s=vd(),o=["",".js",".json"];n?r=ao(t+"/node_modules/"+e):r=ao(t+"/"+e),!r.endsWith("/..");){for(var i=0;i<o.length;i++){var l=r+o[i];if(s[l])return l}if(!n)break;var a=ao(t+"/..");if(a===t)break;t=a}return null}function k1(e){var t=e[0];if(t==="/"||t==="\\")return!1;var n=e[1],r=e[2];return!(t==="."&&(!n||n==="/"||n==="\\")||t==="."&&n==="."&&(!r||r==="/"||r==="\\")||n===":"&&(r==="/"||r==="\\"))}function ao(e){e=e.replace(/\\/g,"/");for(var t=e.split("/"),n=t[0]==="",r=1;r<t.length;r++)(t[r]==="."||t[r]==="")&&t.splice(r--,1);for(var r=1;r<t.length;r++)t[r]===".."&&r>0&&t[r-1]!==".."&&t[r-1]!=="."&&(t.splice(--r,2),r--);return e=t.join("/"),n&&e[0]!=="/"?e="/"+e:e.length===0&&(e="."),e}var Gl={exports:{}};const R=e=>typeof e=="string",Ir=()=>{let e,t;const n=new Promise((r,s)=>{e=r,t=s});return n.resolve=e,n.reject=t,n},Sd=e=>e==null?"":""+e,P1=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},T1=/###/g,xd=e=>e&&e.indexOf("###")>-1?e.replace(T1,"."):e,Cd=e=>!e||R(e),zr=(e,t,n)=>{const r=R(t)?t.split("."):t;let s=0;for(;s<r.length-1;){if(Cd(e))return{};const o=xd(r[s]);!e[o]&&n&&(e[o]=new n),Object.prototype.hasOwnProperty.call(e,o)?e=e[o]:e={},++s}return Cd(e)?{}:{obj:e,k:xd(r[s])}},$d=(e,t,n)=>{const{obj:r,k:s}=zr(e,t,Object);if(r!==void 0||t.length===1){r[s]=n;return}let o=t[t.length-1],i=t.slice(0,t.length-1),l=zr(e,i,Object);for(;l.obj===void 0&&i.length;)o=`${i[i.length-1]}.${o}`,i=i.slice(0,i.length-1),l=zr(e,i,Object),l&&l.obj&&typeof l.obj[`${l.k}.${o}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${o}`]=n},N1=(e,t,n,r)=>{const{obj:s,k:o}=zr(e,t,Object);s[o]=s[o]||[],s[o].push(n)},uo=(e,t)=>{const{obj:n,k:r}=zr(e,t);if(n)return n[r]},A1=(e,t,n)=>{const r=uo(e,n);return r!==void 0?r:uo(t,n)},Ed=(e,t,n)=>{for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?R(e[r])||e[r]instanceof String||R(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):Ed(e[r],t[r],n):e[r]=t[r]);return e},Pn=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var j1={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const O1=e=>R(e)?e.replace(/[&<>"'\/]/g,t=>j1[t]):e;class L1{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const R1=[" ",",","?","!",";"],_1=new L1(20),F1=(e,t,n)=>{t=t||"",n=n||"";const r=R1.filter(i=>t.indexOf(i)<0&&n.indexOf(i)<0);if(r.length===0)return!0;const s=_1.getRegExp(`(${r.map(i=>i==="?"?"\\?":i).join("|")})`);let o=!s.test(e);if(!o){const i=e.indexOf(n);i>0&&!s.test(e.substring(0,i))&&(o=!0)}return o},Yl=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let s=e;for(let o=0;o<r.length;){if(!s||typeof s!="object")return;let i,l="";for(let a=o;a<r.length;++a)if(a!==o&&(l+=n),l+=r[a],i=s[l],i!==void 0){if(["string","number","boolean"].indexOf(typeof i)>-1&&a<r.length-1)continue;o+=a-o+1;break}s=i}return s},co=e=>e&&e.replace("_","-"),D1={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class fo{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||D1,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,s){return s&&!this.debug?null:(R(t[0])&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new fo(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new fo(this.logger,t)}}var Ke=new fo;class ho{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const s=this.observers[r].get(n)||0;this.observers[r].set(n,s+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(i=>{let[l,a]=i;for(let u=0;u<a;u++)l(...r)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(i=>{let[l,a]=i;for(let u=0;u<a;u++)l.apply(l,[t,...r])})}}class kd extends ho{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,i=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure;let l;t.indexOf(".")>-1?l=t.split("."):(l=[t,n],r&&(Array.isArray(r)?l.push(...r):R(r)&&o?l.push(...r.split(o)):l.push(r)));const a=uo(this.data,l);return!a&&!n&&!r&&t.indexOf(".")>-1&&(t=l[0],n=l[1],r=l.slice(2).join(".")),a||!i||!R(r)?a:Yl(this.data&&this.data[t]&&this.data[t][n],r,o)}addResource(t,n,r,s){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const i=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator;let l=[t,n];r&&(l=l.concat(i?r.split(i):r)),t.indexOf(".")>-1&&(l=t.split("."),s=n,n=l[1]),this.addNamespaces(n),$d(this.data,l,s),o.silent||this.emit("added",t,n,r,s)}addResources(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const o in r)(R(r[o])||Array.isArray(r[o]))&&this.addResource(t,n,o,r[o],{silent:!0});s.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,s,o){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},l=[t,n];t.indexOf(".")>-1&&(l=t.split("."),s=r,r=n,n=l[1]),this.addNamespaces(n);let a=uo(this.data,l)||{};i.skipCopy||(r=JSON.parse(JSON.stringify(r))),s?Ed(a,r,o):a={...a,...r},$d(this.data,l,a),i.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(s=>n[s]&&Object.keys(n[s]).length>0)}toJSON(){return this.data}}var Pd={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,s){return e.forEach(o=>{this.processors[o]&&(t=this.processors[o].process(t,n,r,s))}),t}};const Td={};class po extends ho{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),P1(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Ke.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const r=this.resolve(t,n);return r&&r.res!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const s=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let o=n.ns||this.options.defaultNS||[];const i=r&&t.indexOf(r)>-1,l=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!F1(t,r,s);if(i&&!l){const a=t.match(this.interpolator.nestingRegexp);if(a&&a.length>0)return{key:t,namespaces:o};const u=t.split(r);(r!==s||r===s&&this.options.ns.indexOf(u[0])>-1)&&(o=u.shift()),t=u.join(s)}return R(o)&&(o=[o]),{key:t,namespaces:o}}translate(t,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const s=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:i,namespaces:l}=this.extractFromKey(t[t.length-1],n),a=l[l.length-1],u=n.lng||this.language,f=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&u.toLowerCase()==="cimode"){if(f){const S=n.nsSeparator||this.options.nsSeparator;return s?{res:`${a}${S}${i}`,usedKey:i,exactUsedKey:i,usedLng:u,usedNS:a,usedParams:this.getUsedParamsDetails(n)}:`${a}${S}${i}`}return s?{res:i,usedKey:i,exactUsedKey:i,usedLng:u,usedNS:a,usedParams:this.getUsedParamsDetails(n)}:i}const p=this.resolve(t,n);let c=p&&p.res;const v=p&&p.usedKey||i,m=p&&p.exactUsedKey||i,y=Object.prototype.toString.apply(c),h=["[object Number]","[object Function]","[object RegExp]"],d=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,g=!this.i18nFormat||this.i18nFormat.handleAsObject,w=!R(c)&&typeof c!="boolean"&&typeof c!="number";if(g&&c&&w&&h.indexOf(y)<0&&!(R(d)&&Array.isArray(c))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const S=this.options.returnedObjectHandler?this.options.returnedObjectHandler(v,c,{...n,ns:l}):`key '${i} (${this.language})' returned an object instead of string.`;return s?(p.res=S,p.usedParams=this.getUsedParamsDetails(n),p):S}if(o){const S=Array.isArray(c),T=S?[]:{},C=S?m:v;for(const P in c)if(Object.prototype.hasOwnProperty.call(c,P)){const j=`${C}${o}${P}`;T[P]=this.translate(j,{...n,joinArrays:!1,ns:l}),T[P]===j&&(T[P]=c[P])}c=T}}else if(g&&R(d)&&Array.isArray(c))c=c.join(d),c&&(c=this.extendTranslation(c,t,n,r));else{let S=!1,T=!1;const C=n.count!==void 0&&!R(n.count),P=po.hasDefaultValue(n),j=C?this.pluralResolver.getSuffix(u,n.count,n):"",A=n.ordinal&&C?this.pluralResolver.getSuffix(u,n.count,{ordinal:!1}):"",Y=C&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),rt=Y&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${j}`]||n[`defaultValue${A}`]||n.defaultValue;!this.isValidLookup(c)&&P&&(S=!0,c=rt),this.isValidLookup(c)||(T=!0,c=i);const ne=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&T?void 0:c,be=P&&rt!==c&&this.options.updateMissing;if(T||S||be){if(this.logger.log(be?"updateKey":"missingKey",u,a,i,be?rt:c),o){const ie=this.resolve(i,{...n,keySeparator:!1});ie&&ie.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let Ee=[];const qe=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&qe&&qe[0])for(let ie=0;ie<qe.length;ie++)Ee.push(qe[ie]);else this.options.saveMissingTo==="all"?Ee=this.languageUtils.toResolveHierarchy(n.lng||this.language):Ee.push(n.lng||this.language);const jn=(ie,De,Ht)=>{const k=P&&Ht!==c?Ht:ne;this.options.missingKeyHandler?this.options.missingKeyHandler(ie,a,De,k,be,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(ie,a,De,k,be,n),this.emit("missingKey",ie,a,De,c)};this.options.saveMissing&&(this.options.saveMissingPlurals&&C?Ee.forEach(ie=>{const De=this.pluralResolver.getSuffixes(ie,n);Y&&n[`defaultValue${this.options.pluralSeparator}zero`]&&De.indexOf(`${this.options.pluralSeparator}zero`)<0&&De.push(`${this.options.pluralSeparator}zero`),De.forEach(Ht=>{jn([ie],i+Ht,n[`defaultValue${Ht}`]||rt)})}):jn(Ee,i,rt))}c=this.extendTranslation(c,t,n,p,r),T&&c===i&&this.options.appendNamespaceToMissingKey&&(c=`${a}:${i}`),(T||S)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?c=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${a}:${i}`:i,S?c:void 0):c=this.options.parseMissingKeyHandler(c))}return s?(p.res=c,p.usedParams=this.getUsedParamsDetails(n),p):c}extendTranslation(t,n,r,s,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||s.usedLng,s.usedNS,s.usedKey,{resolved:s});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const u=R(t)&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let f;if(u){const c=t.match(this.interpolator.nestingRegexp);f=c&&c.length}let p=r.replace&&!R(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(p={...this.options.interpolation.defaultVariables,...p}),t=this.interpolator.interpolate(t,p,r.lng||this.language||s.usedLng,r),u){const c=t.match(this.interpolator.nestingRegexp),v=c&&c.length;f<v&&(r.nest=!1)}!r.lng&&this.options.compatibilityAPI!=="v1"&&s&&s.res&&(r.lng=this.language||s.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var c=arguments.length,v=new Array(c),m=0;m<c;m++)v[m]=arguments[m];return o&&o[0]===v[0]&&!r.context?(i.logger.warn(`It seems you are nesting recursively key: ${v[0]} in key: ${n[0]}`),null):i.translate(...v,n)},r)),r.interpolation&&this.interpolator.reset()}const l=r.postProcess||this.options.postProcess,a=R(l)?[l]:l;return t!=null&&a&&a.length&&r.applyPostProcessor!==!1&&(t=Pd.handle(a,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...s,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,s,o,i,l;return R(t)&&(t=[t]),t.forEach(a=>{if(this.isValidLookup(r))return;const u=this.extractFromKey(a,n),f=u.key;s=f;let p=u.namespaces;this.options.fallbackNS&&(p=p.concat(this.options.fallbackNS));const c=n.count!==void 0&&!R(n.count),v=c&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),m=n.context!==void 0&&(R(n.context)||typeof n.context=="number")&&n.context!=="",y=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);p.forEach(h=>{this.isValidLookup(r)||(l=h,!Td[`${y[0]}-${h}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(l)&&(Td[`${y[0]}-${h}`]=!0,this.logger.warn(`key "${s}" for languages "${y.join(", ")}" won't get resolved as namespace "${l}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),y.forEach(d=>{if(this.isValidLookup(r))return;i=d;const g=[f];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(g,f,d,h,n);else{let S;c&&(S=this.pluralResolver.getSuffix(d,n.count,n));const T=`${this.options.pluralSeparator}zero`,C=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(c&&(g.push(f+S),n.ordinal&&S.indexOf(C)===0&&g.push(f+S.replace(C,this.options.pluralSeparator)),v&&g.push(f+T)),m){const P=`${f}${this.options.contextSeparator}${n.context}`;g.push(P),c&&(g.push(P+S),n.ordinal&&S.indexOf(C)===0&&g.push(P+S.replace(C,this.options.pluralSeparator)),v&&g.push(P+T))}}let w;for(;w=g.pop();)this.isValidLookup(r)||(o=w,r=this.getResource(d,h,w,n))}))})}),{res:r,usedKey:s,exactUsedKey:o,usedLng:i,usedNS:l}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,s):this.resourceStore.getResource(t,n,r,s)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&!R(t.replace);let s=r?t.replace:t;if(r&&typeof t.count<"u"&&(s.count=t.count),this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),!r){s={...s};for(const o of n)delete s[o]}return s}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}const Xl=e=>e.charAt(0).toUpperCase()+e.slice(1);class Nd{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Ke.create("languageUtils")}getScriptPartFromCode(t){if(t=co(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=co(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(R(t)&&t.indexOf("-")>-1){if(typeof Intl<"u"&&typeof Intl.getCanonicalLocales<"u")try{let s=Intl.getCanonicalLocales(t)[0];if(s&&this.options.lowerCaseLng&&(s=s.toLowerCase()),s)return s}catch{}const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=t.split("-");return this.options.lowerCaseLng?r=r.map(s=>s.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=Xl(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=Xl(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=Xl(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const s=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(s))&&(n=s)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const s=this.getLanguagePartFromCode(r);if(this.isSupportedCode(s))return n=s;n=this.options.supportedLngs.find(o=>{if(o===s)return o;if(!(o.indexOf("-")<0&&s.indexOf("-")<0)&&(o.indexOf("-")>0&&s.indexOf("-")<0&&o.substring(0,o.indexOf("-"))===s||o.indexOf(s)===0&&s.length>1))return o})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),R(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],t),s=[],o=i=>{i&&(this.isSupportedCode(i)?s.push(i):this.logger.warn(`rejecting language code not found in supportedLngs: ${i}`))};return R(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&o(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&o(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&o(this.getLanguagePartFromCode(t))):R(t)&&o(this.formatLanguageCode(t)),r.forEach(i=>{s.indexOf(i)<0&&o(this.formatLanguageCode(i))}),s}}let I1=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],z1={1:e=>+(e>1),2:e=>+(e!=1),3:e=>0,4:e=>e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,5:e=>e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5,6:e=>e==1?0:e>=2&&e<=4?1:2,7:e=>e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,8:e=>e==1?0:e==2?1:e!=8&&e!=11?2:3,9:e=>+(e>=2),10:e=>e==1?0:e==2?1:e<7?2:e<11?3:4,11:e=>e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3,12:e=>+(e%10!=1||e%100==11),13:e=>+(e!==0),14:e=>e==1?0:e==2?1:e==3?2:3,15:e=>e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2,16:e=>e%10==1&&e%100!=11?0:e!==0?1:2,17:e=>e==1||e%10==1&&e%100!=11?0:1,18:e=>e==0?0:e==1?1:2,19:e=>e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3,20:e=>e==1?0:e==0||e%100>0&&e%100<20?1:2,21:e=>e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0,22:e=>e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3};const M1=["v1","v2","v3"],U1=["v4"],Ad={zero:0,one:1,two:2,few:3,many:4,other:5},B1=()=>{const e={};return I1.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:z1[t.fc]}})}),e};class V1{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=Ke.create("pluralResolver"),(!this.options.compatibilityJSON||U1.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=B1(),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{const r=co(t==="dev"?"en":t),s=n.ordinal?"ordinal":"cardinal",o=JSON.stringify({cleanedCode:r,type:s});if(o in this.pluralRulesCache)return this.pluralRulesCache[o];const i=new Intl.PluralRules(r,{type:s});return this.pluralRulesCache[o]=i,i}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(s=>`${n}${s}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((s,o)=>Ad[s]-Ad[o]).map(s=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${s}`):r.numbers.map(s=>this.getSuffix(t,s,n)):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const s=this.getRule(t,r);return s?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${s.select(n)}`:this.getSuffixRetroCompatible(s,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){const r=t.noAbs?t.plurals(n):t.plurals(Math.abs(n));let s=t.numbers[r];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(s===2?s="plural":s===1&&(s=""));const o=()=>this.options.prepend&&s.toString()?this.options.prepend+s.toString():s.toString();return this.options.compatibilityJSON==="v1"?s===1?"":typeof s=="number"?`_plural_${s.toString()}`:o():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?o():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!M1.includes(this.options.compatibilityJSON)}}const jd=function(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=A1(e,t,n);return!o&&s&&R(n)&&(o=Yl(e,n,r),o===void 0&&(o=Yl(t,n,r))),o},Zl=e=>e.replace(/\$/g,"$$$$");class H1{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Ke.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:s,prefix:o,prefixEscaped:i,suffix:l,suffixEscaped:a,formatSeparator:u,unescapeSuffix:f,unescapePrefix:p,nestingPrefix:c,nestingPrefixEscaped:v,nestingSuffix:m,nestingSuffixEscaped:y,nestingOptionsSeparator:h,maxReplaces:d,alwaysFormat:g}=t.interpolation;this.escape=n!==void 0?n:O1,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=s!==void 0?s:!1,this.prefix=o?Pn(o):i||"{{",this.suffix=l?Pn(l):a||"}}",this.formatSeparator=u||",",this.unescapePrefix=f?"":p||"-",this.unescapeSuffix=this.unescapePrefix?"":f||"",this.nestingPrefix=c?Pn(c):v||Pn("$t("),this.nestingSuffix=m?Pn(m):y||Pn(")"),this.nestingOptionsSeparator=h||",",this.maxReplaces=d||1e3,this.alwaysFormat=g!==void 0?g:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>n&&n.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,r,s){let o,i,l;const a=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=v=>{if(v.indexOf(this.formatSeparator)<0){const d=jd(n,a,v,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(d,void 0,r,{...s,...n,interpolationkey:v}):d}const m=v.split(this.formatSeparator),y=m.shift().trim(),h=m.join(this.formatSeparator).trim();return this.format(jd(n,a,y,this.options.keySeparator,this.options.ignoreJSONStructure),h,r,{...s,...n,interpolationkey:y})};this.resetRegExp();const f=s&&s.missingInterpolationHandler||this.options.missingInterpolationHandler,p=s&&s.interpolation&&s.interpolation.skipOnVariables!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:v=>Zl(v)},{regex:this.regexp,safeValue:v=>this.escapeValue?Zl(this.escape(v)):Zl(v)}].forEach(v=>{for(l=0;o=v.regex.exec(t);){const m=o[1].trim();if(i=u(m),i===void 0)if(typeof f=="function"){const h=f(t,o,s);i=R(h)?h:""}else if(s&&Object.prototype.hasOwnProperty.call(s,m))i="";else if(p){i=o[0];continue}else this.logger.warn(`missed to pass in variable ${m} for interpolating ${t}`),i="";else!R(i)&&!this.useRawValueToEscape&&(i=Sd(i));const y=v.safeValue(i);if(t=t.replace(o[0],y),p?(v.regex.lastIndex+=i.length,v.regex.lastIndex-=o[0].length):v.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),t}nest(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s,o,i;const l=(a,u)=>{const f=this.nestingOptionsSeparator;if(a.indexOf(f)<0)return a;const p=a.split(new RegExp(`${f}[ ]*{`));let c=`{${p[1]}`;a=p[0],c=this.interpolate(c,i);const v=c.match(/'/g),m=c.match(/"/g);(v&&v.length%2===0&&!m||m.length%2!==0)&&(c=c.replace(/'/g,'"'));try{i=JSON.parse(c),u&&(i={...u,...i})}catch(y){return this.logger.warn(`failed parsing options string in nesting for key ${a}`,y),`${a}${f}${c}`}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,a};for(;s=this.nestingRegexp.exec(t);){let a=[];i={...r},i=i.replace&&!R(i.replace)?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;let u=!1;if(s[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(s[1])){const f=s[1].split(this.formatSeparator).map(p=>p.trim());s[1]=f.shift(),a=f,u=!0}if(o=n(l.call(this,s[1].trim(),i),i),o&&s[0]===t&&!R(o))return o;R(o)||(o=Sd(o)),o||(this.logger.warn(`missed to resolve ${s[1]} for nesting ${t}`),o=""),u&&(o=a.reduce((f,p)=>this.format(f,p,r.lng,{...r,interpolationkey:s[1].trim()}),o.trim())),t=t.replace(s[0],o),this.regexp.lastIndex=0}return t}}const W1=e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const s=r[1].substring(0,r[1].length-1);t==="currency"&&s.indexOf(":")<0?n.currency||(n.currency=s.trim()):t==="relativetime"&&s.indexOf(":")<0?n.range||(n.range=s.trim()):s.split(";").forEach(i=>{if(i){const[l,...a]=i.split(":"),u=a.join(":").trim().replace(/^'+|'+$/g,""),f=l.trim();n[f]||(n[f]=u),u==="false"&&(n[f]=!1),u==="true"&&(n[f]=!0),isNaN(u)||(n[f]=parseInt(u,10))}})}return{formatName:t,formatOptions:n}},Tn=e=>{const t={};return(n,r,s)=>{let o=s;s&&s.interpolationkey&&s.formatParams&&s.formatParams[s.interpolationkey]&&s[s.interpolationkey]&&(o={...o,[s.interpolationkey]:void 0});const i=r+JSON.stringify(o);let l=t[i];return l||(l=e(co(r),s),t[i]=l),l(n)}};class K1{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Ke.create("formatter"),this.options=t,this.formats={number:Tn((n,r)=>s=>new Intl.NumberFormat(n,{...r}).format(s)),currency:Tn((n,r)=>s=>new Intl.NumberFormat(n,{...r,style:"currency"}).format(s)),datetime:Tn((n,r)=>s=>new Intl.DateTimeFormat(n,{...r}).format(s)),relativetime:Tn((n,r)=>s=>new Intl.RelativeTimeFormat(n,{...r}).format(s,r.range||"day")),list:Tn((n,r)=>s=>new Intl.ListFormat(n,{...r}).format(s))},this.init(t)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=n.interpolation.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=Tn(n)}format(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=n.split(this.formatSeparator);if(o.length>1&&o[0].indexOf("(")>1&&o[0].indexOf(")")<0&&o.find(l=>l.indexOf(")")>-1)){const l=o.findIndex(a=>a.indexOf(")")>-1);o[0]=[o[0],...o.splice(1,l)].join(this.formatSeparator)}return o.reduce((l,a)=>{const{formatName:u,formatOptions:f}=W1(a);if(this.formats[u]){let p=l;try{const c=s&&s.formatParams&&s.formatParams[s.interpolationkey]||{},v=c.locale||c.lng||s.locale||s.lng||r;p=this.formats[u](l,v,{...f,...s,...c})}catch(c){this.logger.warn(c)}return p}else this.logger.warn(`there was no format function for ${u}`);return l},t)}}const b1=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class q1 extends ho{constructor(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=s,this.logger=Ke.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=s.maxParallelReads||10,this.readingCalls=0,this.maxRetries=s.maxRetries>=0?s.maxRetries:5,this.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,s.backend,s)}queueLoad(t,n,r,s){const o={},i={},l={},a={};return t.forEach(u=>{let f=!0;n.forEach(p=>{const c=`${u}|${p}`;!r.reload&&this.store.hasResourceBundle(u,p)?this.state[c]=2:this.state[c]<0||(this.state[c]===1?i[c]===void 0&&(i[c]=!0):(this.state[c]=1,f=!1,i[c]===void 0&&(i[c]=!0),o[c]===void 0&&(o[c]=!0),a[p]===void 0&&(a[p]=!0)))}),f||(l[u]=!0)}),(Object.keys(o).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(o),pending:Object.keys(i),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(a)}}loaded(t,n,r){const s=t.split("|"),o=s[0],i=s[1];n&&this.emit("failedLoading",o,i,n),!n&&r&&this.store.addResourceBundle(o,i,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&r&&(this.state[t]=0);const l={};this.queue.forEach(a=>{N1(a.loaded,[o],i),b1(a,t),n&&a.errors.push(n),a.pendingCount===0&&!a.done&&(Object.keys(a.loaded).forEach(u=>{l[u]||(l[u]={});const f=a.loaded[u];f.length&&f.forEach(p=>{l[u][p]===void 0&&(l[u][p]=!0)})}),a.done=!0,a.errors.length?a.callback(a.errors):a.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(a=>!a.done)}read(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;if(!t.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:s,wait:o,callback:i});return}this.readingCalls++;const l=(u,f)=>{if(this.readingCalls--,this.waitingReads.length>0){const p=this.waitingReads.shift();this.read(p.lng,p.ns,p.fcName,p.tried,p.wait,p.callback)}if(u&&f&&s<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,s+1,o*2,i)},o);return}i(u,f)},a=this.backend[r].bind(this.backend);if(a.length===2){try{const u=a(t,n);u&&typeof u.then=="function"?u.then(f=>l(null,f)).catch(l):l(null,u)}catch(u){l(u)}return}return a(t,n,l)}prepareLoading(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),s&&s();R(t)&&(t=this.languageUtils.toResolveHierarchy(t)),R(n)&&(n=[n]);const o=this.queueLoad(t,n,r,s);if(!o.toLoad.length)return o.pending.length||s(),null;o.toLoad.forEach(i=>{this.loadOne(i)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),s=r[0],o=r[1];this.read(s,o,"read",void 0,void 0,(i,l)=>{i&&this.logger.warn(`${n}loading namespace ${o} for language ${s} failed`,i),!i&&l&&this.logger.log(`${n}loaded namespace ${o} for language ${s}`,l),this.loaded(t,i,l)})}saveMissing(t,n,r,s,o){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend&&this.backend.create){const a={...i,isUpdate:o},u=this.backend.create.bind(this.backend);if(u.length<6)try{let f;u.length===5?f=u(t,n,r,s,a):f=u(t,n,r,s),f&&typeof f.then=="function"?f.then(p=>l(null,p)).catch(l):l(null,f)}catch(f){l(f)}else u(t,n,r,s,l,a)}!t||!t[0]||this.store.addResource(t[0],n,r,s)}}}const Od=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),R(e[1])&&(t.defaultValue=e[1]),R(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(r=>{t[r]=n[r]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),Ld=e=>(R(e.ns)&&(e.ns=[e.ns]),R(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),R(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),go=()=>{},J1=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})};class Mr extends ho{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Ld(t),this.services={},this.logger=Ke,this.modules={external:[]},J1(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(r=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(R(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const s=Od();this.options={...s,...this.options,...Ld(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...s.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);const o=f=>f?typeof f=="function"?new f:f:null;if(!this.options.isClone){this.modules.logger?Ke.init(o(this.modules.logger),this.options):Ke.init(null,this.options);let f;this.modules.formatter?f=this.modules.formatter:typeof Intl<"u"&&(f=K1);const p=new Nd(this.options);this.store=new kd(this.options.resources,this.options);const c=this.services;c.logger=Ke,c.resourceStore=this.store,c.languageUtils=p,c.pluralResolver=new V1(p,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),f&&(!this.options.interpolation.format||this.options.interpolation.format===s.interpolation.format)&&(c.formatter=o(f),c.formatter.init(c,this.options),this.options.interpolation.format=c.formatter.format.bind(c.formatter)),c.interpolator=new H1(this.options),c.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},c.backendConnector=new q1(o(this.modules.backend),c.resourceStore,c,this.options),c.backendConnector.on("*",function(v){for(var m=arguments.length,y=new Array(m>1?m-1:0),h=1;h<m;h++)y[h-1]=arguments[h];t.emit(v,...y)}),this.modules.languageDetector&&(c.languageDetector=o(this.modules.languageDetector),c.languageDetector.init&&c.languageDetector.init(c,this.options.detection,this.options)),this.modules.i18nFormat&&(c.i18nFormat=o(this.modules.i18nFormat),c.i18nFormat.init&&c.i18nFormat.init(this)),this.translator=new po(this.services,this.options),this.translator.on("*",function(v){for(var m=arguments.length,y=new Array(m>1?m-1:0),h=1;h<m;h++)y[h-1]=arguments[h];t.emit(v,...y)}),this.modules.external.forEach(v=>{v.init&&v.init(this)})}if(this.format=this.options.interpolation.format,r||(r=go),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const f=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);f.length>0&&f[0]!=="dev"&&(this.options.lng=f[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(f=>{this[f]=function(){return t.store[f](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(f=>{this[f]=function(){return t.store[f](...arguments),t}});const a=Ir(),u=()=>{const f=(p,c)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),a.resolve(c),r(p,c)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return f(null,this.t.bind(this));this.changeLanguage(this.options.lng,f)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),a}loadResources(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:go;const s=R(t)?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(s&&s.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const o=[],i=l=>{if(!l||l==="cimode")return;this.services.languageUtils.toResolveHierarchy(l).forEach(u=>{u!=="cimode"&&o.indexOf(u)<0&&o.push(u)})};s?i(s):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(a=>i(a)),this.options.preload&&this.options.preload.forEach(l=>i(l)),this.services.backendConnector.load(o,this.options.ns,l=>{!l&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(l)})}else r(null)}reloadResources(t,n,r){const s=Ir();return typeof t=="function"&&(r=t,t=void 0),typeof n=="function"&&(r=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),r||(r=go),this.services.backendConnector.reload(t,n,o=>{s.resolve(),r(o)}),s}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&Pd.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,n){var r=this;this.isLanguageChangingTo=t;const s=Ir();this.emit("languageChanging",t);const o=a=>{this.language=a,this.languages=this.services.languageUtils.toResolveHierarchy(a),this.resolvedLanguage=void 0,this.setResolvedLanguage(a)},i=(a,u)=>{u?(o(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,s.resolve(function(){return r.t(...arguments)}),n&&n(a,function(){return r.t(...arguments)})},l=a=>{!t&&!a&&this.services.languageDetector&&(a=[]);const u=R(a)?a:this.services.languageUtils.getBestMatchFromCodes(a);u&&(this.language||o(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(u)),this.loadResources(u,f=>{i(f,u)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?l(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(t),s}getFixedT(t,n,r){var s=this;const o=function(i,l){let a;if(typeof l!="object"){for(var u=arguments.length,f=new Array(u>2?u-2:0),p=2;p<u;p++)f[p-2]=arguments[p];a=s.options.overloadTranslationOptionHandler([i,l].concat(f))}else a={...l};a.lng=a.lng||o.lng,a.lngs=a.lngs||o.lngs,a.ns=a.ns||o.ns,a.keyPrefix!==""&&(a.keyPrefix=a.keyPrefix||r||o.keyPrefix);const c=s.options.keySeparator||".";let v;return a.keyPrefix&&Array.isArray(i)?v=i.map(m=>`${a.keyPrefix}${c}${m}`):v=a.keyPrefix?`${a.keyPrefix}${c}${i}`:i,s.t(v,a)};return R(t)?o.lng=t:o.lngs=t,o.ns=n,o.keyPrefix=r,o}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],s=this.options?this.options.fallbackLng:!1,o=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const i=(l,a)=>{const u=this.services.backendConnector.state[`${l}|${a}`];return u===-1||u===0||u===2};if(n.precheck){const l=n.precheck(this,i);if(l!==void 0)return l}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||i(r,t)&&(!s||i(o,t)))}loadNamespaces(t,n){const r=Ir();return this.options.ns?(R(t)&&(t=[t]),t.forEach(s=>{this.options.ns.indexOf(s)<0&&this.options.ns.push(s)}),this.loadResources(s=>{r.resolve(),n&&n(s)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=Ir();R(t)&&(t=[t]);const s=this.options.preload||[],o=t.filter(i=>s.indexOf(i)<0&&this.services.languageUtils.isSupportedCode(i));return o.length?(this.options.preload=s.concat(o),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services&&this.services.languageUtils||new Nd(Od());return n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new Mr(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:go;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const s={...this.options,...t,isClone:!0},o=new Mr(s);return(t.debug!==void 0||t.prefix!==void 0)&&(o.logger=o.logger.clone(t)),["store","services","language"].forEach(l=>{o[l]=this[l]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},r&&(o.store=new kd(this.store.data,s),o.services.resourceStore=o.store),o.translator=new po(o.services,s),o.translator.on("*",function(l){for(var a=arguments.length,u=new Array(a>1?a-1:0),f=1;f<a;f++)u[f-1]=arguments[f];o.emit(l,...u)}),o.init(s,n),o.translator.options=s,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Rd=Mr.createInstance();Rd.createInstance=Mr.createInstance;var Q1=Rd;const G1=Q1,_d=["af","ar","bg","bn","bs","ca","cs","da","de","de-CH","el","en","eo","es","et","fa","fi","fr","gd","he","hi","hr","hu","id","is","it","ja","ko","kz","lt","mk","mn","ms","ne","nl","nn","no","pl","pt","pt-BR","ro","ru","si","sk","sl","sq","sr","sr-Cyrl","sv","th","tr","uk","ur","uz","vi","zh","zh-Hant","sw","ta"];Gl.exports=(e="en",t="portal")=>{const n=G1.createInstance();let r={};return t==="newsletter"&&(r={prefix:"{",suffix:"}"}),n.init({lng:e,nsSeparator:!1,keySeparator:!1,returnEmptyString:!1,fallbackLng:!1,ns:t,defaultNS:t,interpolation:r,resources:_d.reduce((s,o)=>{const i=E1("/ghost/i18n/lib")(`../locales/${o}/${t}.json`);return s[o]={[t]:{...i,...i.default&&typeof i.default=="object"?i.default:{}}},s},{})}),n},Gl.exports.SUPPORTED_LOCALES=_d;var Y1=Gl.exports,X1=Y1;const Z1=Q(X1);class ey extends st.Component{constructor(t){super(t);const n=this.props.locale||"en",r=Z1(n,"search"),s=r.dir()||"ltr",o=new v0({adminUrl:t.adminUrl,apiKey:t.apiKey,dir:s});this.state={searchIndex:o,showPopup:!1,indexStarted:!1,indexComplete:!1,t:r.t,dir:s},this.inputRef=st.createRef()}componentDidMount(){this.initSetup()}componentDidUpdate(t,n){var r,s,o;if(n.showPopup!==this.state.showPopup)try{this.state.showPopup?(this.bodyScroll=(o=(s=(r=window.document)==null?void 0:r.body)==null?void 0:s.style)==null?void 0:o.overflow,window.document.body.style.overflow="hidden"):window.document.body.style.overflow=this.bodyScroll||""}catch{}this.state.showPopup!==(n==null?void 0:n.showPopup)&&!this.state.showPopup&&this.setState({searchValue:""}),this.state.showPopup&&!this.state.indexStarted&&this.setupSearchIndex()}async setupSearchIndex(){this.setState({indexStarted:!0}),await this.state.searchIndex.init(),this.setState({indexComplete:!0})}componentWillUnmount(){window.removeEventListener("hashchange",this.hashHandler,!1),window.removeEventListener("keydown",this.handleKeyDown,!1)}initSetup(){this.handleSearchUrl(),this.addKeyboardShortcuts(),this.setupCustomTriggerButton(),this.hashHandler=()=>{this.handleSearchUrl()},window.addEventListener("hashchange",this.hashHandler,!1)}setupCustomTriggerButton(){this.clickHandler=t=>{t.preventDefault(),this.setState({showPopup:!0});const n=document.createElement("input");n.style.opacity="0",n.style.position="fixed",n.style.top="0",document.body.appendChild(n),n.focus(),setTimeout(()=>{this.inputRef.current.focus(),document.body.removeChild(n)},150)},this.customTriggerButtons=this.getCustomTriggerButtons(),this.customTriggerButtons.forEach(t=>{t.removeEventListener("click",this.clickHandler),t.addEventListener("click",this.clickHandler)})}getCustomTriggerButtons(){const t="[data-ghost-search]";return document.querySelectorAll(t)||[]}handleSearchUrl(){const[t]=window.location.hash.substr(1).split("?");(t==="/search"||t==="/search/")&&(this.setState({showPopup:!0}),window.history.replaceState("",document.title,window.location.pathname))}addKeyboardShortcuts(){const t=this.getCustomTriggerButtons();t!=null&&t.length&&(this.handleKeyDown=n=>{if(n.key==="k"&&n.metaKey)return this.setState({showPopup:!0}),n.preventDefault(),n.stopPropagation(),!1},document.addEventListener("keydown",this.handleKeyDown))}render(){return E.jsx(de.Provider,{value:{page:"search",showPopup:this.state.showPopup,adminUrl:this.props.adminUrl,stylesUrl:this.props.stylesUrl,searchIndex:this.state.searchIndex,indexComplete:this.state.indexComplete,searchValue:this.state.searchValue,inputRef:this.inputRef,onAction:()=>{},dispatch:(t,n)=>{t==="update"&&this.setState({...this.state,...n})},t:this.state.t,dir:this.state.dir},children:E.jsx(yf,{})})}}const Fd="sodo-search-root";function ty(){const e=document.createElement("div");e.id=Fd,document.body.appendChild(e)}function ny(){const e=document.querySelector("script[data-sodo-search]");if(e){const t=e.dataset.sodoSearch,n=e.dataset.key,r=e.dataset.styles,s=e.dataset.locale||"en";return{adminUrl:t,apiKey:n,stylesUrl:r,locale:s}}return{}}function ry(){ty()}function sy(){var o;const{adminUrl:e,apiKey:t,stylesUrl:n,locale:r}=ny(),s=(o=e||window.location.origin)==null?void 0:o.replace(/\/+$/,"");ry(),qp.render(E.jsx(st.StrictMode,{children:E.jsx(ey,{adminUrl:s,apiKey:t,stylesUrl:n,locale:r})}),document.getElementById(Fd))}sy()});
|
|
54
|
+
`):" "+ad(o[0]):"as no adapter specified";throw new D("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:Wl};function Kl(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Dr(null,e)}function cd(e){return Kl(e),e.headers=nt.from(e.headers),e.data=Hl.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ud.getAdapter(e.adapter||Bl.adapter)(e).then(function(r){return Kl(e),r.data=Hl.call(e,e.transformResponse,r),r.headers=nt.from(r.headers),r},function(r){return od(r)||(Kl(e),r&&r.response&&(r.response.data=Hl.call(e,e.transformResponse,r.response),r.response.headers=nt.from(r.response.headers))),Promise.reject(r)})}const fd=e=>e instanceof nt?{...e}:e;function kn(e,t){t=t||{};const n={};function r(u,f,p){return x.isPlainObject(u)&&x.isPlainObject(f)?x.merge.call({caseless:p},u,f):x.isPlainObject(f)?x.merge({},f):x.isArray(f)?f.slice():f}function s(u,f,p){if(x.isUndefined(f)){if(!x.isUndefined(u))return r(void 0,u,p)}else return r(u,f,p)}function o(u,f){if(!x.isUndefined(f))return r(void 0,f)}function i(u,f){if(x.isUndefined(f)){if(!x.isUndefined(u))return r(void 0,u)}else return r(void 0,f)}function l(u,f,p){if(p in t)return r(u,f);if(p in e)return r(void 0,u)}const a={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:l,headers:(u,f)=>s(fd(u),fd(f),!0)};return x.forEach(Object.keys(Object.assign({},e,t)),function(f){const p=a[f]||s,c=p(e[f],t[f],f);x.isUndefined(c)&&p!==l||(n[f]=c)}),n}const dd="1.6.8",bl={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{bl[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const hd={};bl.transitional=function(t,n,r){function s(o,i){return"[Axios v"+dd+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,l)=>{if(t===!1)throw new D(s(i," has been removed"+(n?" in "+n:"")),D.ERR_DEPRECATED);return n&&!hd[i]&&(hd[i]=!0,console.warn(s(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,l):!0}};function Jm(e,t,n){if(typeof e!="object")throw new D("options must be an object",D.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const o=r[s],i=t[o];if(i){const l=e[o],a=l===void 0||i(l,o,e);if(a!==!0)throw new D("option "+o+" must be "+a,D.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new D("Unknown option "+o,D.ERR_BAD_OPTION)}}var ql={assertOptions:Jm,validators:bl};const Pt=ql.validators;class io{constructor(t){this.defaults=t,this.interceptors={request:new ed,response:new ed}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s;Error.captureStackTrace?Error.captureStackTrace(s={}):s=new Error;const o=s.stack?s.stack.replace(/^.+\n/,""):"";r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
55
|
+
`+o):r.stack=o}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=kn(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&ql.assertOptions(r,{silentJSONParsing:Pt.transitional(Pt.boolean),forcedJSONParsing:Pt.transitional(Pt.boolean),clarifyTimeoutError:Pt.transitional(Pt.boolean)},!1),s!=null&&(x.isFunction(s)?n.paramsSerializer={serialize:s}:ql.assertOptions(s,{encode:Pt.function,serialize:Pt.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&x.merge(o.common,o[n.method]);o&&x.forEach(["delete","get","head","post","put","patch","common"],m=>{delete o[m]}),n.headers=nt.concat(i,o);const l=[];let a=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(n)===!1||(a=a&&y.synchronous,l.unshift(y.fulfilled,y.rejected))});const u=[];this.interceptors.response.forEach(function(y){u.push(y.fulfilled,y.rejected)});let f,p=0,c;if(!a){const m=[cd.bind(this),void 0];for(m.unshift.apply(m,l),m.push.apply(m,u),c=m.length,f=Promise.resolve(n);p<c;)f=f.then(m[p++],m[p++]);return f}c=l.length;let v=n;for(p=0;p<c;){const m=l[p++],y=l[p++];try{v=m(v)}catch(h){y.call(this,h);break}}try{f=cd.call(this,v)}catch(m){return Promise.reject(m)}for(p=0,c=u.length;p<c;)f=f.then(u[p++],u[p++]);return f}getUri(t){t=kn(this.defaults,t);const n=id(t.baseURL,t.url);return Zf(n,t.params,t.paramsSerializer)}}x.forEach(["delete","get","head","options"],function(t){io.prototype[t]=function(n,r){return this.request(kn(r||{},{method:t,url:n,data:(r||{}).data}))}}),x.forEach(["post","put","patch"],function(t){function n(r){return function(o,i,l){return this.request(kn(l||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}io.prototype[t]=n(),io.prototype[t+"Form"]=n(!0)});var lo=io;class Jl{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(s=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const i=new Promise(l=>{r.subscribe(l),o=l}).then(s);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,l){r.reason||(r.reason=new Dr(o,i,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Jl(function(s){t=s}),cancel:t}}}var Qm=Jl;function Gm(e){return function(n){return e.apply(null,n)}}function Xm(e){return x.isObject(e)&&e.isAxiosError===!0}const Ql={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ql).forEach(([e,t])=>{Ql[t]=e});var Ym=Ql;function pd(e){const t=new lo(e),n=If(lo.prototype.request,t);return x.extend(n,lo.prototype,t,{allOwnKeys:!0}),x.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return pd(kn(e,s))},n}const G=pd(Bl);G.Axios=lo,G.CanceledError=Dr,G.CancelToken=Qm,G.isCancel=od,G.VERSION=dd,G.toFormData=ro,G.AxiosError=D,G.Cancel=G.CanceledError,G.all=function(t){return Promise.all(t)},G.spread=Gm,G.isAxiosError=Xm,G.mergeConfig=kn,G.AxiosHeaders=nt,G.formToJSON=e=>rd(x.isHTMLForm(e)?new FormData(e):e),G.getAdapter=ud.getAdapter,G.HttpStatusCode=Ym,G.default=G;var Zm=G,e0="@tryghost/content-api",t0="1.11.21",n0="https://github.com/TryGhost/SDK/tree/main/packages/content-api",r0="Ghost Foundation",s0="MIT",o0="cjs/content-api.js",i0="umd/content-api.min.js",l0="es/content-api.js",a0="lib/content-api.js",u0=["LICENSE","README.md","cjs/","lib/","umd/","es/"],c0={dev:'echo "Implement me!"',pretest:"yarn build",test:"NODE_ENV=testing c8 --all --reporter text --reporter cobertura mocha './test/**/*.test.js'",build:"rollup -c",lint:"eslint . --ext .js --cache",prepare:"NODE_ENV=production yarn build",posttest:"yarn lint"},f0={access:"public"},d0={"@babel/core":"7.24.4","@babel/polyfill":"7.12.1","@babel/preset-env":"7.24.4","@rollup/plugin-json":"6.1.0",c8:"9.1.0","core-js":"3.37.0","eslint-plugin-ghost":"3.4.0",mocha:"10.4.0",rollup:"2.79.1","rollup-plugin-babel":"4.4.0","rollup-plugin-commonjs":"10.1.0","rollup-plugin-node-resolve":"5.2.0","rollup-plugin-polyfill-node":"0.12.0","rollup-plugin-replace":"2.2.0","rollup-plugin-terser":"7.0.2",should:"13.2.3",sinon:"17.0.1"},h0={axios:"^1.0.0"},p0="048ccde4bd78d2dcd60e778d03eb8dc3227cece5",g0={name:e0,version:t0,repository:n0,author:r0,license:s0,main:o0,"umd:main":"umd/content-api.min.js",unpkg:i0,module:l0,source:a0,files:u0,scripts:c0,publishConfig:f0,devDependencies:d0,dependencies:h0,gitHead:p0};const m0=!1,y0=g0.version,gd="v5.0",md=["v2","v3","v4","v5","canary"],Le="@tryghost/content-api",v0=e=>{let t;return e==="v5"||e===void 0||e.match(/^v5\.\d+/)?t="/content/":e.match(/^v\d+\.\d+/)?t=`/${/^(v\d+)\.\d+/.exec(e)[1]}/content/`:t=`/${e}/content/`,t},w0=e=>{let{url:t,method:n,params:r,headers:s}=e;return Zm[n](t,{params:r,paramsSerializer:o=>Object.keys(o).reduce((i,l)=>{const a=encodeURIComponent([].concat(o[l]).join(","));return i.concat(`${l}=${a}`)},[]).join("&"),headers:s})};function Gl(e){let{url:t,key:n,host:r,version:s,userAgent:o,ghostPath:i="ghost",makeRequest:l=w0}=e;if(r&&(console.warn(`${Le}: The 'host' parameter is deprecated, please use 'url' instead`),t||(t=r)),this instanceof Gl)return Gl({url:t,key:n,version:s,userAgent:o,ghostPath:i,makeRequest:l});if(s===void 0)throw new Error(`${Le} Config Missing: 'version' is required. E.g. ${md.join(",")}`);let a;if(typeof s=="boolean")s===!0&&(a=gd),s=void 0;else{if(s&&!md.includes(s)&&!s.match(/^v\d+\.\d+/))throw new Error(`${Le} Config Invalid: 'version' ${s} is not supported`);s==="canary"?(console.warn(`${Le}: The 'version' parameter has a deprecated format 'canary', please use 'v{major}.{minor}' format instead`),a=gd):s.match(/^v\d+$/)?(console.warn(`${Le}: The 'version' parameter has a deprecated format 'v{major}', please use 'v{major}.{minor}' format instead`),a=`${s}.0`):a=s}if(!t)throw new Error(`${Le} Config Missing: 'url' is required. E.g. 'https://site.com'`);if(!/https?:\/\//.test(t))throw new Error(`${Le} Config Invalid: 'url' ${t} requires a protocol. E.g. 'https://site.com'`);if(t.endsWith("/"))throw new Error(`${Le} Config Invalid: 'url' ${t} must not have a trailing slash. E.g. 'https://site.com'`);if(i.endsWith("/")||i.startsWith("/"))throw new Error(`${Le} Config Invalid: 'ghostPath' ${i} must not have a leading or trailing slash. E.g. 'ghost'`);if(n&&!/[0-9a-f]{26}/.test(n))throw new Error(`${Le} Config Invalid: 'key' ${n} must have 26 hex characters`);o===void 0&&(o=m0);const u=["posts","authors","tags","pages","settings","tiers","newsletters","offers"].reduce((p,c)=>{function v(){let y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},h=arguments.length>1?arguments[1]:void 0;return f(c,y,null,h)}function m(y){let h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d=arguments.length>2?arguments[2]:void 0;if(!y||!y.id&&!y.slug)return Promise.reject(new Error(`${Le} read requires an id or slug.`));const g=Object.assign({},y,h);return f(c,g,y.id||`slug/${y.slug}`,d)}return Object.assign(p,{[c]:{read:m,browse:v}})},{});return delete u.settings.read,delete u.tiers.read,delete u.newsletters.read,delete u.offers.browse,u;function f(p,c,v){let m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;if(!m&&!n)return Promise.reject(new Error(`${Le} Config Missing: 'key' is required.`));delete c.id;const y=m?{Authorization:`GhostMembers ${m}`}:{};o&&(typeof o=="boolean"?y["User-Agent"]=`GhostContentSDK/${y0}`:y["User-Agent"]=o),a&&(y["Accept-Version"]=a),c=Object.assign({key:n},c);const h=`${t}/${i}/api${v0(s)}${p}/${v?v+"/":""}`;return l({url:h,method:"get",params:c,headers:y}).then(d=>Array.isArray(d.data[p])?d.data[p].length===1&&!d.data.meta?d.data[p][0]:Object.assign(d.data[p],{meta:d.data.meta}):d.data[p]).catch(d=>{if(d.response&&d.response.data&&d.response.data.errors){const g=d.response.data.errors[0],w=new Error(g.message),S=Object.keys(g);throw w.name=g.type,S.forEach(T=>{w[T]=g[T]}),w.response=d.response,w.request=d.request,w.config=d.config,w}else throw d})}}class S0{constructor({adminUrl:t,apiKey:n,dir:r}){Ln(this,yo);Ln(this,vo);Ln(this,wo);Ln(this,Nn);Ln(this,An);this.api=new Gl({url:t,key:n,version:"v5.0"});const s=r==="rtl",o=r==="rtl"?"reverse":"forward";this.postsIndex=new _l.Document({tokenize:o,rtl:s,document:{id:"id",index:["title","excerpt"],store:!0},...Je(this,An,Co).call(this)}),this.authorsIndex=new _l.Document({tokenize:o,rtl:s,document:{id:"id",index:["name"],store:!0},...Je(this,An,Co).call(this)}),this.tagsIndex=new _l.Document({tokenize:o,rtl:s,document:{id:"id",index:["name"],store:!0},...Je(this,An,Co).call(this)}),this.init=this.init.bind(this),this.search=this.search.bind(this)}async init(){let t=await this.api.posts.browse({limit:"10000",fields:"id,slug,title,excerpt,url,updated_at,visibility",order:"updated_at DESC"});(t||t.length>0)&&(t.length||(t=[t]),Je(this,yo,zd).call(this,t));let n=await this.api.authors.browse({limit:"10000",fields:"id,slug,name,url,profile_image",order:"updated_at DESC"});(n||n.length>0)&&(n.length||(n=[n]),Je(this,vo,Md).call(this,n));let r=await this.api.tags.browse({limit:"10000",fields:"id,slug,name,url",order:"updated_at DESC",filter:"visibility:public"});(r||r.length>0)&&(r.length||(r=[r]),Je(this,wo,Ud).call(this,r))}search(t){const n=this.postsIndex.search(t,{enrich:!0}),r=this.authorsIndex.search(t,{enrich:!0}),s=this.tagsIndex.search(t,{enrich:!0});return{posts:Je(this,Nn,xo).call(this,n),authors:Je(this,Nn,xo).call(this,r),tags:Je(this,Nn,xo).call(this,s)}}}yo=new WeakSet,zd=function(t){t.forEach(n=>{this.postsIndex.add(n)})},vo=new WeakSet,Md=function(t){t.forEach(n=>{this.authorsIndex.add(n)})},wo=new WeakSet,Ud=function(t){t.forEach(n=>{this.tagsIndex.add(n)})},Nn=new WeakSet,xo=function(t){const n=[],r={};return t.forEach(s=>{s.result.forEach(o=>{r[o.id]||(n.push(o.doc),r[o.id]=!0)})}),n},An=new WeakSet,Co=function(){const t=new RegExp("[一-鿿-ゟ゠-ヿ가-힣㐀-䶿𠀀-𪛟𪜀-𫝀-𫠠-𬺰-𰀀-𱍐-𲎯-豈-丽-]|[0-9A-Za-zа-яÀ-ſЀ-ӿ-ۿঀ-Ḁ-ỿ]+","mug");return{encode:n=>(""+n).toLowerCase().match(t)??[]}};const x0={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},C0={Authors:"الكتّاب",Cancel:"إلغاء","No matches found":"لا يوجد نتائج مطابقة",Posts:"منشورات","Search posts, tags and authors":"قم بالبحث عن المنشورات، الوسوم و الكتّاب","Show more results":"اظهر المزيد من النتائج",Tags:"الوسوم"},$0={Authors:"Автори",Cancel:"Отказ","No matches found":"Няма намерени съвпадения",Posts:"Публикации","Search posts, tags and authors":"Търсене в публикации, етикети и автори","Show more results":"Покажи още резултати",Tags:"Етикети"},E0={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},k0={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},P0={Authors:"Autors",Cancel:"Cancel·la","No matches found":"No s'ha trobat cap resultat",Posts:"Articles","Search posts, tags and authors":"Cerca articles, etiquetes i autors","Show more results":"Mostra més resultats",Tags:"Etiquetes"},T0={Authors:"Autoři",Cancel:"Zrušit","No matches found":"Nenalezeno",Posts:"Články","Search posts, tags and authors":"Prohledat články, štítky a autory","Show more results":"Zobrazit více výsledků",Tags:"Štítky"},N0={Authors:"Forfattere",Cancel:"Annuller","No matches found":"Ingen resultater fundet",Posts:"Indlæg","Search posts, tags and authors":"Søg i indlæg, tags og forfattere","Show more results":"Vis flere resultater",Tags:"Tags"},A0={Authors:"Autor*innen",Cancel:"Abbrechen","No matches found":"Keine Treffer gefunden",Posts:"Posts","Search posts, tags and authors":"Posts, Tags und Autor*innen durchsuchen","Show more results":"Mehr Ergebnisse anzeigen",Tags:"Tags"},j0={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},O0={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},L0={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},R0={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},_0={Authors:"Autores",Cancel:"Cancelar","No matches found":"No se encontraron resultados",Posts:"Publicaciones","Search posts, tags and authors":"Buscar publicaciones, etiquetas y autores","Show more results":"Mostrar más resultados",Tags:"Etiquetas"},F0={Authors:"Autorid",Cancel:"Tühista","No matches found":"Vasteid ei leitud",Posts:"Postitused","Search posts, tags and authors":"Otsi postitusi, silte ja autoreid","Show more results":"Näita rohkem tulemusi",Tags:"Sildid"},D0={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},I0={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},z0={Authors:"Auteurs",Cancel:"Annuler","No matches found":"Aucun résultat trouvé",Posts:"Articles","Search posts, tags and authors":"Rechercher des articles, des catégories et des auteurs","Show more results":"Plus de résultats",Tags:"Catégories"},M0={Authors:"Ùghdaran",Cancel:"Sguir dheth","No matches found":"Cha deach dad a lorg a fhreagras ris na lorg thu",Posts:"Postaichean","Search posts, tags and authors":"Lorg sna postaichean, tagaichean agus ùghdaran","Show more results":"Seall barrachd thoraidhean",Tags:"Tagaichean"},U0={Authors:"מחברים",Cancel:"ביטול","No matches found":"לא נמצאו התאמות",Posts:"פוסטים","Search posts, tags and authors":"חיפוש פוסטים, תגיות ומחברים","Show more results":"הצגת תוצאות נוספות",Tags:"תגיות"},B0={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},V0={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},H0={Authors:"Szerzők",Cancel:"Mégse","No matches found":"Nincs találat",Posts:"Bejegyzések","Search posts, tags and authors":"Keresés bejegyzések, címkék és szerzők között","Show more results":"További találatok megjelenítése",Tags:"Címkék"},W0={Authors:"Penulis",Cancel:"Batalkan","No matches found":"Tidak ada hasil yang ditemukan",Posts:"Postingan","Search posts, tags and authors":"Cari postingan, tag, dan penulis","Show more results":"Tampilkan lebih banyak hasil",Tags:"Tag"},K0={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},b0={Authors:"Autori",Cancel:"Annulla","No matches found":"Nessun risultato trovato",Posts:"Articoli","Search posts, tags and authors":"Cerca articoli, tag e autori","Show more results":"Mostra più risultati",Tags:"Tag"},q0={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},J0={Authors:"작성자",Cancel:"취소","No matches found":"일치하는 결과가 없어요",Posts:"게시물","Search posts, tags and authors":"게시물, 태그, 작성자 검색","Show more results":"더 많은 결과 보기",Tags:"태그"},Q0={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},G0={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},X0={Authors:"Autori",Cancel:"Atcelt","No matches found":"Nav atrasta neviena atbilstība",Posts:"Ziņas","Search posts, tags and authors":"Meklēt ziņas, atzīmes un autorus","Show more results":"Rādīt vairāk rezultātu",Tags:"Tagi"},Y0={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Z0={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},e1={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},t1={Authors:"लेखकहरू",Cancel:"रद्द गर्नुहोस्","No matches found":"कुनै परिणाम भेटिएन",Posts:"पोस्टहरू","Search posts, tags and authors":"पोस्टहरू, ट्यागहरू र लेखकहरू खोज्नुहोस्","Show more results":"थप परिणामहरू देखाउनुहोस्",Tags:"ट्यागहरू"},n1={Authors:"Auteurs",Cancel:"Annuleren","No matches found":"Geen resultaten gevonden",Posts:"Berichten","Search posts, tags and authors":"Zoek berichten, tags en auteurs","Show more results":"Meer resultaten weergeven",Tags:"Tags"},r1={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},s1={Authors:"Forfattere",Cancel:"Avbryt","No matches found":"Ingen treff funnet",Posts:"Innlegg","Search posts, tags and authors":"Søk i innlegg, etiketter og forfattere","Show more results":"Vis flere resultater",Tags:"Etiketter"},o1={Authors:"Autorzy",Cancel:"Anuluj","No matches found":"Nie znaleziono dopasowań",Posts:"Posty","Search posts, tags and authors":"Szukaj postów, tagów lub autorów","Show more results":"Pokaż więcej wyników",Tags:"Tagi"},i1={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},l1={Authors:"Autores",Cancel:"Cancelar","No matches found":"Nenhum resultado encontrado",Posts:"Publicações","Search posts, tags and authors":"Buscar posts, tags e autores","Show more results":"Mostrar mais resultados",Tags:"Tags"},a1={Authors:"Autori",Cancel:"Anulează","No matches found":"Nu s-au găsit rezultate",Posts:"Postări","Search posts, tags and authors":"Caută postări, etichete și autori","Show more results":"Afișează mai multe rezultate",Tags:"Etichete"},u1={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},c1={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},f1={Authors:"Autori",Cancel:"Zrušiť","No matches found":"Nenašli sa žiadne výsledky",Posts:"Príspevky","Search posts, tags and authors":"Vyhľadajte príspevky, tagy a autorov","Show more results":"Zobraziť viac výsledkov",Tags:"Tagy"},d1={Authors:"Avtorji",Cancel:"Prekliči","No matches found":"Ni najdenih zadetkov",Posts:"Članki","Search posts, tags and authors":"Iščite članke, oznake in avtorje","Show more results":"Prikaži več rezultatov",Tags:"Oznake"},h1={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},p1={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},g1={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},m1={Authors:"Författare",Cancel:"Avbryt","No matches found":"Inga träffar hittade",Posts:"Inlägg","Search posts, tags and authors":"Sök inlägg, taggar och författare","Show more results":"Visa fler resultat",Tags:"Taggar"},y1={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},v1={Authors:"Yazarlar",Cancel:"İptal","No matches found":"Eşleşme bulunamadı",Posts:"Yazılar","Search posts, tags and authors":"Yazıları, etiketleri ve yazarları ara","Show more results":"Daha fazla sonuç göster",Tags:"Etiketler"},w1={Authors:"Автори",Cancel:"Скасувати","No matches found":"Збігів не знайдено",Posts:"Публікації","Search posts, tags and authors":"Шукайте публікацій, теги та авторів","Show more results":"Показати більше результатів",Tags:"Теги"},S1={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},x1={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},C1={Authors:"Tác giả",Cancel:"Hủy bỏ","No matches found":"Không tìm thấy",Posts:"Bài viết","Search posts, tags and authors":"Tìm bài viết, chuyên mục & tác giả","Show more results":"Xem thêm kết quả",Tags:"Chuyên mục"},$1={Authors:"作者",Cancel:"取消","No matches found":"未找到匹配项",Posts:"文章","Search posts, tags and authors":"搜索文章、标签和作者","Show more results":"显示更多结果",Tags:"标签"},E1={Authors:"作者",Cancel:"取消","No matches found":"無相符結果",Posts:"文章","Search posts, tags and authors":"搜尋文章、標籤與作者","Show more results":"更多結果",Tags:"標籤"},k1={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},P1={Authors:"ஆசிரியர்கள்",Cancel:"ரத்து செய்","No matches found":"பொருத்தங்கள் எதுவும் இல்லை",Posts:"பதிவுகள்","Search posts, tags and authors":"பதிவுகள், குறிச்சொற்கள் மற்றும் ஆசிரியர்களைத் தேடுங்கள்","Show more results":"மேலும் முடிவுகளைக் காட்டு",Tags:"குறிச்சொற்கள்"};var yd;function vd(){return yd||(yd={"/ghost/i18n/locales/af/search.json":function(){return x0},"/ghost/i18n/locales/ar/search.json":function(){return C0},"/ghost/i18n/locales/bg/search.json":function(){return $0},"/ghost/i18n/locales/bn/search.json":function(){return E0},"/ghost/i18n/locales/bs/search.json":function(){return k0},"/ghost/i18n/locales/ca/search.json":function(){return P0},"/ghost/i18n/locales/cs/search.json":function(){return T0},"/ghost/i18n/locales/da/search.json":function(){return N0},"/ghost/i18n/locales/de/search.json":function(){return A0},"/ghost/i18n/locales/de-CH/search.json":function(){return j0},"/ghost/i18n/locales/el/search.json":function(){return O0},"/ghost/i18n/locales/en/search.json":function(){return L0},"/ghost/i18n/locales/eo/search.json":function(){return R0},"/ghost/i18n/locales/es/search.json":function(){return _0},"/ghost/i18n/locales/et/search.json":function(){return F0},"/ghost/i18n/locales/fa/search.json":function(){return D0},"/ghost/i18n/locales/fi/search.json":function(){return I0},"/ghost/i18n/locales/fr/search.json":function(){return z0},"/ghost/i18n/locales/gd/search.json":function(){return M0},"/ghost/i18n/locales/he/search.json":function(){return U0},"/ghost/i18n/locales/hi/search.json":function(){return B0},"/ghost/i18n/locales/hr/search.json":function(){return V0},"/ghost/i18n/locales/hu/search.json":function(){return H0},"/ghost/i18n/locales/id/search.json":function(){return W0},"/ghost/i18n/locales/is/search.json":function(){return K0},"/ghost/i18n/locales/it/search.json":function(){return b0},"/ghost/i18n/locales/ja/search.json":function(){return q0},"/ghost/i18n/locales/ko/search.json":function(){return J0},"/ghost/i18n/locales/kz/search.json":function(){return Q0},"/ghost/i18n/locales/lt/search.json":function(){return G0},"/ghost/i18n/locales/lv/search.json":function(){return X0},"/ghost/i18n/locales/mk/search.json":function(){return Y0},"/ghost/i18n/locales/mn/search.json":function(){return Z0},"/ghost/i18n/locales/ms/search.json":function(){return e1},"/ghost/i18n/locales/ne/search.json":function(){return t1},"/ghost/i18n/locales/nl/search.json":function(){return n1},"/ghost/i18n/locales/nn/search.json":function(){return r1},"/ghost/i18n/locales/no/search.json":function(){return s1},"/ghost/i18n/locales/pl/search.json":function(){return o1},"/ghost/i18n/locales/pt/search.json":function(){return i1},"/ghost/i18n/locales/pt-BR/search.json":function(){return l1},"/ghost/i18n/locales/ro/search.json":function(){return a1},"/ghost/i18n/locales/ru/search.json":function(){return u1},"/ghost/i18n/locales/si/search.json":function(){return c1},"/ghost/i18n/locales/sk/search.json":function(){return f1},"/ghost/i18n/locales/sl/search.json":function(){return d1},"/ghost/i18n/locales/sq/search.json":function(){return h1},"/ghost/i18n/locales/sr/search.json":function(){return p1},"/ghost/i18n/locales/sr-Cyrl/search.json":function(){return g1},"/ghost/i18n/locales/sv/search.json":function(){return m1},"/ghost/i18n/locales/th/search.json":function(){return y1},"/ghost/i18n/locales/tr/search.json":function(){return v1},"/ghost/i18n/locales/uk/search.json":function(){return w1},"/ghost/i18n/locales/ur/search.json":function(){return S1},"/ghost/i18n/locales/uz/search.json":function(){return x1},"/ghost/i18n/locales/vi/search.json":function(){return C1},"/ghost/i18n/locales/zh/search.json":function(){return $1},"/ghost/i18n/locales/zh-Hant/search.json":function(){return E1},"/ghost/i18n/locales/sw/search.json":function(){return k1},"/ghost/i18n/locales/ta/search.json":function(){return P1}})}function wd(e){function t(n){var r=Sd(n,e);if(r!==null)return vd()[r]();throw new Error('Could not dynamically require "'+n+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}return t.resolve=function(n){var r=Sd(n,e);return r!==null?r:require.resolve(n)},t}function Sd(e,t){var n=T1(e);e=ao(e);var r;e[0]==="/"&&(t="");for(var s=vd(),o=["",".js",".json"];n?r=ao(t+"/node_modules/"+e):r=ao(t+"/"+e),!r.endsWith("/..");){for(var i=0;i<o.length;i++){var l=r+o[i];if(s[l])return l}if(!n)break;var a=ao(t+"/..");if(a===t)break;t=a}return null}function T1(e){var t=e[0];if(t==="/"||t==="\\")return!1;var n=e[1],r=e[2];return!(t==="."&&(!n||n==="/"||n==="\\")||t==="."&&n==="."&&(!r||r==="/"||r==="\\")||n===":"&&(r==="/"||r==="\\"))}function ao(e){e=e.replace(/\\/g,"/");for(var t=e.split("/"),n=t[0]==="",r=1;r<t.length;r++)(t[r]==="."||t[r]==="")&&t.splice(r--,1);for(var r=1;r<t.length;r++)t[r]===".."&&r>0&&t[r-1]!==".."&&t[r-1]!=="."&&(t.splice(--r,2),r--);return e=t.join("/"),n&&e[0]!=="/"?e="/"+e:e.length===0&&(e="."),e}var uo={exports:{}};const R=e=>typeof e=="string",Ir=()=>{let e,t;const n=new Promise((r,s)=>{e=r,t=s});return n.resolve=e,n.reject=t,n},xd=e=>e==null?"":""+e,N1=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},A1=/###/g,Cd=e=>e&&e.indexOf("###")>-1?e.replace(A1,"."):e,$d=e=>!e||R(e),zr=(e,t,n)=>{const r=R(t)?t.split("."):t;let s=0;for(;s<r.length-1;){if($d(e))return{};const o=Cd(r[s]);!e[o]&&n&&(e[o]=new n),Object.prototype.hasOwnProperty.call(e,o)?e=e[o]:e={},++s}return $d(e)?{}:{obj:e,k:Cd(r[s])}},Ed=(e,t,n)=>{const{obj:r,k:s}=zr(e,t,Object);if(r!==void 0||t.length===1){r[s]=n;return}let o=t[t.length-1],i=t.slice(0,t.length-1),l=zr(e,i,Object);for(;l.obj===void 0&&i.length;)o=`${i[i.length-1]}.${o}`,i=i.slice(0,i.length-1),l=zr(e,i,Object),l&&l.obj&&typeof l.obj[`${l.k}.${o}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${o}`]=n},j1=(e,t,n,r)=>{const{obj:s,k:o}=zr(e,t,Object);s[o]=s[o]||[],s[o].push(n)},co=(e,t)=>{const{obj:n,k:r}=zr(e,t);if(n)return n[r]},O1=(e,t,n)=>{const r=co(e,n);return r!==void 0?r:co(t,n)},kd=(e,t,n)=>{for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?R(e[r])||e[r]instanceof String||R(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):kd(e[r],t[r],n):e[r]=t[r]);return e},Pn=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var L1={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const R1=e=>R(e)?e.replace(/[&<>"'\/]/g,t=>L1[t]):e;class _1{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const F1=[" ",",","?","!",";"],D1=new _1(20),I1=(e,t,n)=>{t=t||"",n=n||"";const r=F1.filter(i=>t.indexOf(i)<0&&n.indexOf(i)<0);if(r.length===0)return!0;const s=D1.getRegExp(`(${r.map(i=>i==="?"?"\\?":i).join("|")})`);let o=!s.test(e);if(!o){const i=e.indexOf(n);i>0&&!s.test(e.substring(0,i))&&(o=!0)}return o},Xl=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let s=e;for(let o=0;o<r.length;){if(!s||typeof s!="object")return;let i,l="";for(let a=o;a<r.length;++a)if(a!==o&&(l+=n),l+=r[a],i=s[l],i!==void 0){if(["string","number","boolean"].indexOf(typeof i)>-1&&a<r.length-1)continue;o+=a-o+1;break}s=i}return s},fo=e=>e&&e.replace("_","-"),z1={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class ho{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||z1,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,s){return s&&!this.debug?null:(R(t[0])&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new ho(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new ho(this.logger,t)}}var Ke=new ho;class po{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const s=this.observers[r].get(n)||0;this.observers[r].set(n,s+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(i=>{let[l,a]=i;for(let u=0;u<a;u++)l(...r)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(i=>{let[l,a]=i;for(let u=0;u<a;u++)l.apply(l,[t,...r])})}}class Pd extends po{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,i=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure;let l;t.indexOf(".")>-1?l=t.split("."):(l=[t,n],r&&(Array.isArray(r)?l.push(...r):R(r)&&o?l.push(...r.split(o)):l.push(r)));const a=co(this.data,l);return!a&&!n&&!r&&t.indexOf(".")>-1&&(t=l[0],n=l[1],r=l.slice(2).join(".")),a||!i||!R(r)?a:Xl(this.data&&this.data[t]&&this.data[t][n],r,o)}addResource(t,n,r,s){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const i=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator;let l=[t,n];r&&(l=l.concat(i?r.split(i):r)),t.indexOf(".")>-1&&(l=t.split("."),s=n,n=l[1]),this.addNamespaces(n),Ed(this.data,l,s),o.silent||this.emit("added",t,n,r,s)}addResources(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const o in r)(R(r[o])||Array.isArray(r[o]))&&this.addResource(t,n,o,r[o],{silent:!0});s.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,s,o){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},l=[t,n];t.indexOf(".")>-1&&(l=t.split("."),s=r,r=n,n=l[1]),this.addNamespaces(n);let a=co(this.data,l)||{};i.skipCopy||(r=JSON.parse(JSON.stringify(r))),s?kd(a,r,o):a={...a,...r},Ed(this.data,l,a),i.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(s=>n[s]&&Object.keys(n[s]).length>0)}toJSON(){return this.data}}var Td={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,s){return e.forEach(o=>{this.processors[o]&&(t=this.processors[o].process(t,n,r,s))}),t}};const Nd={};class go extends po{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),N1(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Ke.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const r=this.resolve(t,n);return r&&r.res!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const s=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let o=n.ns||this.options.defaultNS||[];const i=r&&t.indexOf(r)>-1,l=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!I1(t,r,s);if(i&&!l){const a=t.match(this.interpolator.nestingRegexp);if(a&&a.length>0)return{key:t,namespaces:o};const u=t.split(r);(r!==s||r===s&&this.options.ns.indexOf(u[0])>-1)&&(o=u.shift()),t=u.join(s)}return R(o)&&(o=[o]),{key:t,namespaces:o}}translate(t,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const s=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:i,namespaces:l}=this.extractFromKey(t[t.length-1],n),a=l[l.length-1],u=n.lng||this.language,f=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&u.toLowerCase()==="cimode"){if(f){const S=n.nsSeparator||this.options.nsSeparator;return s?{res:`${a}${S}${i}`,usedKey:i,exactUsedKey:i,usedLng:u,usedNS:a,usedParams:this.getUsedParamsDetails(n)}:`${a}${S}${i}`}return s?{res:i,usedKey:i,exactUsedKey:i,usedLng:u,usedNS:a,usedParams:this.getUsedParamsDetails(n)}:i}const p=this.resolve(t,n);let c=p&&p.res;const v=p&&p.usedKey||i,m=p&&p.exactUsedKey||i,y=Object.prototype.toString.apply(c),h=["[object Number]","[object Function]","[object RegExp]"],d=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,g=!this.i18nFormat||this.i18nFormat.handleAsObject,w=!R(c)&&typeof c!="boolean"&&typeof c!="number";if(g&&c&&w&&h.indexOf(y)<0&&!(R(d)&&Array.isArray(c))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const S=this.options.returnedObjectHandler?this.options.returnedObjectHandler(v,c,{...n,ns:l}):`key '${i} (${this.language})' returned an object instead of string.`;return s?(p.res=S,p.usedParams=this.getUsedParamsDetails(n),p):S}if(o){const S=Array.isArray(c),T=S?[]:{},C=S?m:v;for(const P in c)if(Object.prototype.hasOwnProperty.call(c,P)){const j=`${C}${o}${P}`;T[P]=this.translate(j,{...n,joinArrays:!1,ns:l}),T[P]===j&&(T[P]=c[P])}c=T}}else if(g&&R(d)&&Array.isArray(c))c=c.join(d),c&&(c=this.extendTranslation(c,t,n,r));else{let S=!1,T=!1;const C=n.count!==void 0&&!R(n.count),P=go.hasDefaultValue(n),j=C?this.pluralResolver.getSuffix(u,n.count,n):"",A=n.ordinal&&C?this.pluralResolver.getSuffix(u,n.count,{ordinal:!1}):"",X=C&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),rt=X&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${j}`]||n[`defaultValue${A}`]||n.defaultValue;!this.isValidLookup(c)&&P&&(S=!0,c=rt),this.isValidLookup(c)||(T=!0,c=i);const ne=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&T?void 0:c,be=P&&rt!==c&&this.options.updateMissing;if(T||S||be){if(this.logger.log(be?"updateKey":"missingKey",u,a,i,be?rt:c),o){const ie=this.resolve(i,{...n,keySeparator:!1});ie&&ie.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let Ee=[];const qe=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&qe&&qe[0])for(let ie=0;ie<qe.length;ie++)Ee.push(qe[ie]);else this.options.saveMissingTo==="all"?Ee=this.languageUtils.toResolveHierarchy(n.lng||this.language):Ee.push(n.lng||this.language);const jn=(ie,De,Ht)=>{const k=P&&Ht!==c?Ht:ne;this.options.missingKeyHandler?this.options.missingKeyHandler(ie,a,De,k,be,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(ie,a,De,k,be,n),this.emit("missingKey",ie,a,De,c)};this.options.saveMissing&&(this.options.saveMissingPlurals&&C?Ee.forEach(ie=>{const De=this.pluralResolver.getSuffixes(ie,n);X&&n[`defaultValue${this.options.pluralSeparator}zero`]&&De.indexOf(`${this.options.pluralSeparator}zero`)<0&&De.push(`${this.options.pluralSeparator}zero`),De.forEach(Ht=>{jn([ie],i+Ht,n[`defaultValue${Ht}`]||rt)})}):jn(Ee,i,rt))}c=this.extendTranslation(c,t,n,p,r),T&&c===i&&this.options.appendNamespaceToMissingKey&&(c=`${a}:${i}`),(T||S)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?c=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${a}:${i}`:i,S?c:void 0):c=this.options.parseMissingKeyHandler(c))}return s?(p.res=c,p.usedParams=this.getUsedParamsDetails(n),p):c}extendTranslation(t,n,r,s,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||s.usedLng,s.usedNS,s.usedKey,{resolved:s});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const u=R(t)&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let f;if(u){const c=t.match(this.interpolator.nestingRegexp);f=c&&c.length}let p=r.replace&&!R(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(p={...this.options.interpolation.defaultVariables,...p}),t=this.interpolator.interpolate(t,p,r.lng||this.language||s.usedLng,r),u){const c=t.match(this.interpolator.nestingRegexp),v=c&&c.length;f<v&&(r.nest=!1)}!r.lng&&this.options.compatibilityAPI!=="v1"&&s&&s.res&&(r.lng=this.language||s.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var c=arguments.length,v=new Array(c),m=0;m<c;m++)v[m]=arguments[m];return o&&o[0]===v[0]&&!r.context?(i.logger.warn(`It seems you are nesting recursively key: ${v[0]} in key: ${n[0]}`),null):i.translate(...v,n)},r)),r.interpolation&&this.interpolator.reset()}const l=r.postProcess||this.options.postProcess,a=R(l)?[l]:l;return t!=null&&a&&a.length&&r.applyPostProcessor!==!1&&(t=Td.handle(a,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...s,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,s,o,i,l;return R(t)&&(t=[t]),t.forEach(a=>{if(this.isValidLookup(r))return;const u=this.extractFromKey(a,n),f=u.key;s=f;let p=u.namespaces;this.options.fallbackNS&&(p=p.concat(this.options.fallbackNS));const c=n.count!==void 0&&!R(n.count),v=c&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),m=n.context!==void 0&&(R(n.context)||typeof n.context=="number")&&n.context!=="",y=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);p.forEach(h=>{this.isValidLookup(r)||(l=h,!Nd[`${y[0]}-${h}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(l)&&(Nd[`${y[0]}-${h}`]=!0,this.logger.warn(`key "${s}" for languages "${y.join(", ")}" won't get resolved as namespace "${l}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),y.forEach(d=>{if(this.isValidLookup(r))return;i=d;const g=[f];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(g,f,d,h,n);else{let S;c&&(S=this.pluralResolver.getSuffix(d,n.count,n));const T=`${this.options.pluralSeparator}zero`,C=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(c&&(g.push(f+S),n.ordinal&&S.indexOf(C)===0&&g.push(f+S.replace(C,this.options.pluralSeparator)),v&&g.push(f+T)),m){const P=`${f}${this.options.contextSeparator}${n.context}`;g.push(P),c&&(g.push(P+S),n.ordinal&&S.indexOf(C)===0&&g.push(P+S.replace(C,this.options.pluralSeparator)),v&&g.push(P+T))}}let w;for(;w=g.pop();)this.isValidLookup(r)||(o=w,r=this.getResource(d,h,w,n))}))})}),{res:r,usedKey:s,exactUsedKey:o,usedLng:i,usedNS:l}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,s):this.resourceStore.getResource(t,n,r,s)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&!R(t.replace);let s=r?t.replace:t;if(r&&typeof t.count<"u"&&(s.count=t.count),this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),!r){s={...s};for(const o of n)delete s[o]}return s}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}const Yl=e=>e.charAt(0).toUpperCase()+e.slice(1);class Ad{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Ke.create("languageUtils")}getScriptPartFromCode(t){if(t=fo(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=fo(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(R(t)&&t.indexOf("-")>-1){if(typeof Intl<"u"&&typeof Intl.getCanonicalLocales<"u")try{let s=Intl.getCanonicalLocales(t)[0];if(s&&this.options.lowerCaseLng&&(s=s.toLowerCase()),s)return s}catch{}const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=t.split("-");return this.options.lowerCaseLng?r=r.map(s=>s.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=Yl(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=Yl(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=Yl(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const s=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(s))&&(n=s)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const s=this.getLanguagePartFromCode(r);if(this.isSupportedCode(s))return n=s;n=this.options.supportedLngs.find(o=>{if(o===s)return o;if(!(o.indexOf("-")<0&&s.indexOf("-")<0)&&(o.indexOf("-")>0&&s.indexOf("-")<0&&o.substring(0,o.indexOf("-"))===s||o.indexOf(s)===0&&s.length>1))return o})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),R(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],t),s=[],o=i=>{i&&(this.isSupportedCode(i)?s.push(i):this.logger.warn(`rejecting language code not found in supportedLngs: ${i}`))};return R(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&o(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&o(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&o(this.getLanguagePartFromCode(t))):R(t)&&o(this.formatLanguageCode(t)),r.forEach(i=>{s.indexOf(i)<0&&o(this.formatLanguageCode(i))}),s}}let M1=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],U1={1:e=>+(e>1),2:e=>+(e!=1),3:e=>0,4:e=>e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,5:e=>e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5,6:e=>e==1?0:e>=2&&e<=4?1:2,7:e=>e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,8:e=>e==1?0:e==2?1:e!=8&&e!=11?2:3,9:e=>+(e>=2),10:e=>e==1?0:e==2?1:e<7?2:e<11?3:4,11:e=>e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3,12:e=>+(e%10!=1||e%100==11),13:e=>+(e!==0),14:e=>e==1?0:e==2?1:e==3?2:3,15:e=>e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2,16:e=>e%10==1&&e%100!=11?0:e!==0?1:2,17:e=>e==1||e%10==1&&e%100!=11?0:1,18:e=>e==0?0:e==1?1:2,19:e=>e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3,20:e=>e==1?0:e==0||e%100>0&&e%100<20?1:2,21:e=>e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0,22:e=>e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3};const B1=["v1","v2","v3"],V1=["v4"],jd={zero:0,one:1,two:2,few:3,many:4,other:5},H1=()=>{const e={};return M1.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:U1[t.fc]}})}),e};class W1{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=Ke.create("pluralResolver"),(!this.options.compatibilityJSON||V1.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=H1(),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{const r=fo(t==="dev"?"en":t),s=n.ordinal?"ordinal":"cardinal",o=JSON.stringify({cleanedCode:r,type:s});if(o in this.pluralRulesCache)return this.pluralRulesCache[o];const i=new Intl.PluralRules(r,{type:s});return this.pluralRulesCache[o]=i,i}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(s=>`${n}${s}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((s,o)=>jd[s]-jd[o]).map(s=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${s}`):r.numbers.map(s=>this.getSuffix(t,s,n)):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const s=this.getRule(t,r);return s?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${s.select(n)}`:this.getSuffixRetroCompatible(s,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){const r=t.noAbs?t.plurals(n):t.plurals(Math.abs(n));let s=t.numbers[r];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(s===2?s="plural":s===1&&(s=""));const o=()=>this.options.prepend&&s.toString()?this.options.prepend+s.toString():s.toString();return this.options.compatibilityJSON==="v1"?s===1?"":typeof s=="number"?`_plural_${s.toString()}`:o():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?o():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!B1.includes(this.options.compatibilityJSON)}}const Od=function(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=O1(e,t,n);return!o&&s&&R(n)&&(o=Xl(e,n,r),o===void 0&&(o=Xl(t,n,r))),o},Zl=e=>e.replace(/\$/g,"$$$$");class K1{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Ke.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:s,prefix:o,prefixEscaped:i,suffix:l,suffixEscaped:a,formatSeparator:u,unescapeSuffix:f,unescapePrefix:p,nestingPrefix:c,nestingPrefixEscaped:v,nestingSuffix:m,nestingSuffixEscaped:y,nestingOptionsSeparator:h,maxReplaces:d,alwaysFormat:g}=t.interpolation;this.escape=n!==void 0?n:R1,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=s!==void 0?s:!1,this.prefix=o?Pn(o):i||"{{",this.suffix=l?Pn(l):a||"}}",this.formatSeparator=u||",",this.unescapePrefix=f?"":p||"-",this.unescapeSuffix=this.unescapePrefix?"":f||"",this.nestingPrefix=c?Pn(c):v||Pn("$t("),this.nestingSuffix=m?Pn(m):y||Pn(")"),this.nestingOptionsSeparator=h||",",this.maxReplaces=d||1e3,this.alwaysFormat=g!==void 0?g:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>n&&n.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,r,s){let o,i,l;const a=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=v=>{if(v.indexOf(this.formatSeparator)<0){const d=Od(n,a,v,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(d,void 0,r,{...s,...n,interpolationkey:v}):d}const m=v.split(this.formatSeparator),y=m.shift().trim(),h=m.join(this.formatSeparator).trim();return this.format(Od(n,a,y,this.options.keySeparator,this.options.ignoreJSONStructure),h,r,{...s,...n,interpolationkey:y})};this.resetRegExp();const f=s&&s.missingInterpolationHandler||this.options.missingInterpolationHandler,p=s&&s.interpolation&&s.interpolation.skipOnVariables!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:v=>Zl(v)},{regex:this.regexp,safeValue:v=>this.escapeValue?Zl(this.escape(v)):Zl(v)}].forEach(v=>{for(l=0;o=v.regex.exec(t);){const m=o[1].trim();if(i=u(m),i===void 0)if(typeof f=="function"){const h=f(t,o,s);i=R(h)?h:""}else if(s&&Object.prototype.hasOwnProperty.call(s,m))i="";else if(p){i=o[0];continue}else this.logger.warn(`missed to pass in variable ${m} for interpolating ${t}`),i="";else!R(i)&&!this.useRawValueToEscape&&(i=xd(i));const y=v.safeValue(i);if(t=t.replace(o[0],y),p?(v.regex.lastIndex+=i.length,v.regex.lastIndex-=o[0].length):v.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),t}nest(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s,o,i;const l=(a,u)=>{const f=this.nestingOptionsSeparator;if(a.indexOf(f)<0)return a;const p=a.split(new RegExp(`${f}[ ]*{`));let c=`{${p[1]}`;a=p[0],c=this.interpolate(c,i);const v=c.match(/'/g),m=c.match(/"/g);(v&&v.length%2===0&&!m||m.length%2!==0)&&(c=c.replace(/'/g,'"'));try{i=JSON.parse(c),u&&(i={...u,...i})}catch(y){return this.logger.warn(`failed parsing options string in nesting for key ${a}`,y),`${a}${f}${c}`}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,a};for(;s=this.nestingRegexp.exec(t);){let a=[];i={...r},i=i.replace&&!R(i.replace)?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;let u=!1;if(s[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(s[1])){const f=s[1].split(this.formatSeparator).map(p=>p.trim());s[1]=f.shift(),a=f,u=!0}if(o=n(l.call(this,s[1].trim(),i),i),o&&s[0]===t&&!R(o))return o;R(o)||(o=xd(o)),o||(this.logger.warn(`missed to resolve ${s[1]} for nesting ${t}`),o=""),u&&(o=a.reduce((f,p)=>this.format(f,p,r.lng,{...r,interpolationkey:s[1].trim()}),o.trim())),t=t.replace(s[0],o),this.regexp.lastIndex=0}return t}}const b1=e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const s=r[1].substring(0,r[1].length-1);t==="currency"&&s.indexOf(":")<0?n.currency||(n.currency=s.trim()):t==="relativetime"&&s.indexOf(":")<0?n.range||(n.range=s.trim()):s.split(";").forEach(i=>{if(i){const[l,...a]=i.split(":"),u=a.join(":").trim().replace(/^'+|'+$/g,""),f=l.trim();n[f]||(n[f]=u),u==="false"&&(n[f]=!1),u==="true"&&(n[f]=!0),isNaN(u)||(n[f]=parseInt(u,10))}})}return{formatName:t,formatOptions:n}},Tn=e=>{const t={};return(n,r,s)=>{let o=s;s&&s.interpolationkey&&s.formatParams&&s.formatParams[s.interpolationkey]&&s[s.interpolationkey]&&(o={...o,[s.interpolationkey]:void 0});const i=r+JSON.stringify(o);let l=t[i];return l||(l=e(fo(r),s),t[i]=l),l(n)}};class q1{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Ke.create("formatter"),this.options=t,this.formats={number:Tn((n,r)=>s=>new Intl.NumberFormat(n,{...r}).format(s)),currency:Tn((n,r)=>s=>new Intl.NumberFormat(n,{...r,style:"currency"}).format(s)),datetime:Tn((n,r)=>s=>new Intl.DateTimeFormat(n,{...r}).format(s)),relativetime:Tn((n,r)=>s=>new Intl.RelativeTimeFormat(n,{...r}).format(s,r.range||"day")),list:Tn((n,r)=>s=>new Intl.ListFormat(n,{...r}).format(s))},this.init(t)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=n.interpolation.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=Tn(n)}format(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=n.split(this.formatSeparator);if(o.length>1&&o[0].indexOf("(")>1&&o[0].indexOf(")")<0&&o.find(l=>l.indexOf(")")>-1)){const l=o.findIndex(a=>a.indexOf(")")>-1);o[0]=[o[0],...o.splice(1,l)].join(this.formatSeparator)}return o.reduce((l,a)=>{const{formatName:u,formatOptions:f}=b1(a);if(this.formats[u]){let p=l;try{const c=s&&s.formatParams&&s.formatParams[s.interpolationkey]||{},v=c.locale||c.lng||s.locale||s.lng||r;p=this.formats[u](l,v,{...f,...s,...c})}catch(c){this.logger.warn(c)}return p}else this.logger.warn(`there was no format function for ${u}`);return l},t)}}const J1=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class Q1 extends po{constructor(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=s,this.logger=Ke.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=s.maxParallelReads||10,this.readingCalls=0,this.maxRetries=s.maxRetries>=0?s.maxRetries:5,this.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,s.backend,s)}queueLoad(t,n,r,s){const o={},i={},l={},a={};return t.forEach(u=>{let f=!0;n.forEach(p=>{const c=`${u}|${p}`;!r.reload&&this.store.hasResourceBundle(u,p)?this.state[c]=2:this.state[c]<0||(this.state[c]===1?i[c]===void 0&&(i[c]=!0):(this.state[c]=1,f=!1,i[c]===void 0&&(i[c]=!0),o[c]===void 0&&(o[c]=!0),a[p]===void 0&&(a[p]=!0)))}),f||(l[u]=!0)}),(Object.keys(o).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(o),pending:Object.keys(i),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(a)}}loaded(t,n,r){const s=t.split("|"),o=s[0],i=s[1];n&&this.emit("failedLoading",o,i,n),!n&&r&&this.store.addResourceBundle(o,i,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&r&&(this.state[t]=0);const l={};this.queue.forEach(a=>{j1(a.loaded,[o],i),J1(a,t),n&&a.errors.push(n),a.pendingCount===0&&!a.done&&(Object.keys(a.loaded).forEach(u=>{l[u]||(l[u]={});const f=a.loaded[u];f.length&&f.forEach(p=>{l[u][p]===void 0&&(l[u][p]=!0)})}),a.done=!0,a.errors.length?a.callback(a.errors):a.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(a=>!a.done)}read(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;if(!t.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:s,wait:o,callback:i});return}this.readingCalls++;const l=(u,f)=>{if(this.readingCalls--,this.waitingReads.length>0){const p=this.waitingReads.shift();this.read(p.lng,p.ns,p.fcName,p.tried,p.wait,p.callback)}if(u&&f&&s<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,s+1,o*2,i)},o);return}i(u,f)},a=this.backend[r].bind(this.backend);if(a.length===2){try{const u=a(t,n);u&&typeof u.then=="function"?u.then(f=>l(null,f)).catch(l):l(null,u)}catch(u){l(u)}return}return a(t,n,l)}prepareLoading(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),s&&s();R(t)&&(t=this.languageUtils.toResolveHierarchy(t)),R(n)&&(n=[n]);const o=this.queueLoad(t,n,r,s);if(!o.toLoad.length)return o.pending.length||s(),null;o.toLoad.forEach(i=>{this.loadOne(i)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),s=r[0],o=r[1];this.read(s,o,"read",void 0,void 0,(i,l)=>{i&&this.logger.warn(`${n}loading namespace ${o} for language ${s} failed`,i),!i&&l&&this.logger.log(`${n}loaded namespace ${o} for language ${s}`,l),this.loaded(t,i,l)})}saveMissing(t,n,r,s,o){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend&&this.backend.create){const a={...i,isUpdate:o},u=this.backend.create.bind(this.backend);if(u.length<6)try{let f;u.length===5?f=u(t,n,r,s,a):f=u(t,n,r,s),f&&typeof f.then=="function"?f.then(p=>l(null,p)).catch(l):l(null,f)}catch(f){l(f)}else u(t,n,r,s,l,a)}!t||!t[0]||this.store.addResource(t[0],n,r,s)}}}const Ld=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),R(e[1])&&(t.defaultValue=e[1]),R(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(r=>{t[r]=n[r]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),Rd=e=>(R(e.ns)&&(e.ns=[e.ns]),R(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),R(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),mo=()=>{},G1=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})};class Mr extends po{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Rd(t),this.services={},this.logger=Ke,this.modules={external:[]},G1(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(r=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(R(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const s=Ld();this.options={...s,...this.options,...Rd(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...s.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);const o=f=>f?typeof f=="function"?new f:f:null;if(!this.options.isClone){this.modules.logger?Ke.init(o(this.modules.logger),this.options):Ke.init(null,this.options);let f;this.modules.formatter?f=this.modules.formatter:typeof Intl<"u"&&(f=q1);const p=new Ad(this.options);this.store=new Pd(this.options.resources,this.options);const c=this.services;c.logger=Ke,c.resourceStore=this.store,c.languageUtils=p,c.pluralResolver=new W1(p,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),f&&(!this.options.interpolation.format||this.options.interpolation.format===s.interpolation.format)&&(c.formatter=o(f),c.formatter.init(c,this.options),this.options.interpolation.format=c.formatter.format.bind(c.formatter)),c.interpolator=new K1(this.options),c.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},c.backendConnector=new Q1(o(this.modules.backend),c.resourceStore,c,this.options),c.backendConnector.on("*",function(v){for(var m=arguments.length,y=new Array(m>1?m-1:0),h=1;h<m;h++)y[h-1]=arguments[h];t.emit(v,...y)}),this.modules.languageDetector&&(c.languageDetector=o(this.modules.languageDetector),c.languageDetector.init&&c.languageDetector.init(c,this.options.detection,this.options)),this.modules.i18nFormat&&(c.i18nFormat=o(this.modules.i18nFormat),c.i18nFormat.init&&c.i18nFormat.init(this)),this.translator=new go(this.services,this.options),this.translator.on("*",function(v){for(var m=arguments.length,y=new Array(m>1?m-1:0),h=1;h<m;h++)y[h-1]=arguments[h];t.emit(v,...y)}),this.modules.external.forEach(v=>{v.init&&v.init(this)})}if(this.format=this.options.interpolation.format,r||(r=mo),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const f=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);f.length>0&&f[0]!=="dev"&&(this.options.lng=f[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(f=>{this[f]=function(){return t.store[f](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(f=>{this[f]=function(){return t.store[f](...arguments),t}});const a=Ir(),u=()=>{const f=(p,c)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),a.resolve(c),r(p,c)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return f(null,this.t.bind(this));this.changeLanguage(this.options.lng,f)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),a}loadResources(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:mo;const s=R(t)?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(s&&s.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const o=[],i=l=>{if(!l||l==="cimode")return;this.services.languageUtils.toResolveHierarchy(l).forEach(u=>{u!=="cimode"&&o.indexOf(u)<0&&o.push(u)})};s?i(s):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(a=>i(a)),this.options.preload&&this.options.preload.forEach(l=>i(l)),this.services.backendConnector.load(o,this.options.ns,l=>{!l&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(l)})}else r(null)}reloadResources(t,n,r){const s=Ir();return typeof t=="function"&&(r=t,t=void 0),typeof n=="function"&&(r=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),r||(r=mo),this.services.backendConnector.reload(t,n,o=>{s.resolve(),r(o)}),s}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&Td.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,n){var r=this;this.isLanguageChangingTo=t;const s=Ir();this.emit("languageChanging",t);const o=a=>{this.language=a,this.languages=this.services.languageUtils.toResolveHierarchy(a),this.resolvedLanguage=void 0,this.setResolvedLanguage(a)},i=(a,u)=>{u?(o(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,s.resolve(function(){return r.t(...arguments)}),n&&n(a,function(){return r.t(...arguments)})},l=a=>{!t&&!a&&this.services.languageDetector&&(a=[]);const u=R(a)?a:this.services.languageUtils.getBestMatchFromCodes(a);u&&(this.language||o(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(u)),this.loadResources(u,f=>{i(f,u)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?l(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(t),s}getFixedT(t,n,r){var s=this;const o=function(i,l){let a;if(typeof l!="object"){for(var u=arguments.length,f=new Array(u>2?u-2:0),p=2;p<u;p++)f[p-2]=arguments[p];a=s.options.overloadTranslationOptionHandler([i,l].concat(f))}else a={...l};a.lng=a.lng||o.lng,a.lngs=a.lngs||o.lngs,a.ns=a.ns||o.ns,a.keyPrefix!==""&&(a.keyPrefix=a.keyPrefix||r||o.keyPrefix);const c=s.options.keySeparator||".";let v;return a.keyPrefix&&Array.isArray(i)?v=i.map(m=>`${a.keyPrefix}${c}${m}`):v=a.keyPrefix?`${a.keyPrefix}${c}${i}`:i,s.t(v,a)};return R(t)?o.lng=t:o.lngs=t,o.ns=n,o.keyPrefix=r,o}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],s=this.options?this.options.fallbackLng:!1,o=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const i=(l,a)=>{const u=this.services.backendConnector.state[`${l}|${a}`];return u===-1||u===0||u===2};if(n.precheck){const l=n.precheck(this,i);if(l!==void 0)return l}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||i(r,t)&&(!s||i(o,t)))}loadNamespaces(t,n){const r=Ir();return this.options.ns?(R(t)&&(t=[t]),t.forEach(s=>{this.options.ns.indexOf(s)<0&&this.options.ns.push(s)}),this.loadResources(s=>{r.resolve(),n&&n(s)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=Ir();R(t)&&(t=[t]);const s=this.options.preload||[],o=t.filter(i=>s.indexOf(i)<0&&this.services.languageUtils.isSupportedCode(i));return o.length?(this.options.preload=s.concat(o),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services&&this.services.languageUtils||new Ad(Ld());return n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new Mr(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:mo;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const s={...this.options,...t,isClone:!0},o=new Mr(s);return(t.debug!==void 0||t.prefix!==void 0)&&(o.logger=o.logger.clone(t)),["store","services","language"].forEach(l=>{o[l]=this[l]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},r&&(o.store=new Pd(this.store.data,s),o.services.resourceStore=o.store),o.translator=new go(o.services,s),o.translator.on("*",function(l){for(var a=arguments.length,u=new Array(a>1?a-1:0),f=1;f<a;f++)u[f-1]=arguments[f];o.emit(l,...u)}),o.init(s,n),o.translator.options=s,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const _d=Mr.createInstance();_d.createInstance=Mr.createInstance;var X1=_d;const Y1=X1,Fd=["af","ar","bg","bn","bs","ca","cs","da","de","de-CH","el","en","eo","es","et","fa","fi","fr","gd","he","hi","hr","hu","id","is","it","ja","ko","kz","lt","lv","mk","mn","ms","ne","nl","nn","no","pl","pt","pt-BR","ro","ru","si","sk","sl","sq","sr","sr-Cyrl","sv","th","tr","uk","ur","uz","vi","zh","zh-Hant","sw","ta"];function Dd(e,t){return e.reduce((n,r)=>{let s;try{s=wd("/ghost/i18n/lib")(`../locales/${r}/${t}.json`)}catch{s=wd("/ghost/i18n/lib")(`../locales/en/${t}.json`)}return n[r]={[t]:{...s,...s.default&&typeof s.default=="object"?s.default:{}}},n},{})}uo.exports=(e="en",t="portal")=>{const n=Y1.createInstance();let r={};t==="newsletter"&&(r={prefix:"{",suffix:"}"});let s=Dd(Fd,t);return n.init({lng:e,nsSeparator:!1,keySeparator:!1,returnEmptyString:!1,fallbackLng:!1,ns:t,defaultNS:t,interpolation:r,resources:s}),n},uo.exports.SUPPORTED_LOCALES=Fd,uo.exports.generateResources=Dd;var Z1=uo.exports,ey=Z1;const ty=Q(ey);class ny extends st.Component{constructor(t){super(t);const n=this.props.locale||"en",r=ty(n,"search"),s=r.dir()||"ltr",o=new S0({adminUrl:t.adminUrl,apiKey:t.apiKey,dir:s});this.state={searchIndex:o,showPopup:!1,indexStarted:!1,indexComplete:!1,t:r.t,dir:s},this.inputRef=st.createRef()}componentDidMount(){this.initSetup()}componentDidUpdate(t,n){var r,s,o;if(n.showPopup!==this.state.showPopup)try{this.state.showPopup?(this.bodyScroll=(o=(s=(r=window.document)==null?void 0:r.body)==null?void 0:s.style)==null?void 0:o.overflow,window.document.body.style.overflow="hidden"):window.document.body.style.overflow=this.bodyScroll||""}catch{}this.state.showPopup!==(n==null?void 0:n.showPopup)&&!this.state.showPopup&&this.setState({searchValue:""}),this.state.showPopup&&!this.state.indexStarted&&this.setupSearchIndex()}async setupSearchIndex(){this.setState({indexStarted:!0}),await this.state.searchIndex.init(),this.setState({indexComplete:!0})}componentWillUnmount(){window.removeEventListener("hashchange",this.hashHandler,!1),window.removeEventListener("keydown",this.handleKeyDown,!1)}initSetup(){this.handleSearchUrl(),this.addKeyboardShortcuts(),this.setupCustomTriggerButton(),this.hashHandler=()=>{this.handleSearchUrl()},window.addEventListener("hashchange",this.hashHandler,!1)}setupCustomTriggerButton(){this.clickHandler=t=>{t.preventDefault(),this.setState({showPopup:!0});const n=document.createElement("input");n.style.opacity="0",n.style.position="fixed",n.style.top="0",document.body.appendChild(n),n.focus(),setTimeout(()=>{this.inputRef.current.focus(),document.body.removeChild(n)},150)},this.customTriggerButtons=this.getCustomTriggerButtons(),this.customTriggerButtons.forEach(t=>{t.removeEventListener("click",this.clickHandler),t.addEventListener("click",this.clickHandler)})}getCustomTriggerButtons(){const t="[data-ghost-search]";return document.querySelectorAll(t)||[]}handleSearchUrl(){const[t]=window.location.hash.substr(1).split("?");(t==="/search"||t==="/search/")&&(this.setState({showPopup:!0}),window.history.replaceState("",document.title,window.location.pathname))}addKeyboardShortcuts(){const t=this.getCustomTriggerButtons();t!=null&&t.length&&(this.handleKeyDown=n=>{if(n.key==="k"&&n.metaKey)return this.setState({showPopup:!0}),n.preventDefault(),n.stopPropagation(),!1},document.addEventListener("keydown",this.handleKeyDown))}render(){return E.jsx(de.Provider,{value:{page:"search",showPopup:this.state.showPopup,adminUrl:this.props.adminUrl,stylesUrl:this.props.stylesUrl,searchIndex:this.state.searchIndex,indexComplete:this.state.indexComplete,searchValue:this.state.searchValue,inputRef:this.inputRef,onAction:()=>{},dispatch:(t,n)=>{t==="update"&&this.setState({...this.state,...n})},t:this.state.t,dir:this.state.dir},children:E.jsx(yf,{})})}}const Id="sodo-search-root";function ry(){const e=document.createElement("div");e.id=Id,document.body.appendChild(e)}function sy(){const e=document.querySelector("script[data-sodo-search]");if(e){const t=e.dataset.sodoSearch,n=e.dataset.key,r=e.dataset.styles,s=e.dataset.locale||"en";return{adminUrl:t,apiKey:n,stylesUrl:r,locale:s}}return{}}function oy(){ry()}function iy(){var o;const{adminUrl:e,apiKey:t,stylesUrl:n,locale:r}=sy(),s=(o=e||window.location.origin)==null?void 0:o.replace(/\/+$/,"");oy(),Qp.render(E.jsx(st.StrictMode,{children:E.jsx(ny,{adminUrl:s,apiKey:t,stylesUrl:n,locale:r})}),document.getElementById(Id))}iy()});
|
|
56
56
|
//# sourceMappingURL=sodo-search.min.js.map
|