@tryghost/sodo-search 1.8.83 → 1.8.85
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/package.json +2 -2
- package/umd/main.css +2 -1
- package/umd/sodo-search.min.js +10 -10
package/umd/sodo-search.min.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
(function(ln){typeof define=="function"&&define.amd?define(ln):ln()})((function(){"use strict";var ln=typeof document<"u"?document.currentScript:null;function yl(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var ni={exports:{}},an={};var ri,vl;function si(){if(vl)return ri;vl=1;var r=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function o(c){if(c==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(c)}function l(){try{if(!Object.assign)return!1;var c=new String("abc");if(c[5]="de",Object.getOwnPropertyNames(c)[0]==="5")return!1;for(var f={},p=0;p<10;p++)f["_"+String.fromCharCode(p)]=p;var d=Object.getOwnPropertyNames(f).map(function(v){return f[v]});if(d.join("")!=="0123456789")return!1;var m={};return"abcdefghijklmnopqrst".split("").forEach(function(v){m[v]=v}),Object.keys(Object.assign({},m)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return ri=l()?Object.assign:function(c,f){for(var p,d=o(c),m,v=1;v<arguments.length;v++){p=Object(arguments[v]);for(var x in p)s.call(p,x)&&(d[x]=p[x]);if(r){m=r(p);for(var w=0;w<m.length;w++)i.call(p,m[w])&&(d[m[w]]=p[m[w]])}}return d},ri}var ii={exports:{}},ve={};var wl;function Jc(){if(wl)return ve;wl=1;var r=si(),s=60103,i=60106;ve.Fragment=60107,ve.StrictMode=60108,ve.Profiler=60114;var o=60109,l=60110,c=60112;ve.Suspense=60113;var f=60115,p=60116;if(typeof Symbol=="function"&&Symbol.for){var d=Symbol.for;s=d("react.element"),i=d("react.portal"),ve.Fragment=d("react.fragment"),ve.StrictMode=d("react.strict_mode"),ve.Profiler=d("react.profiler"),o=d("react.provider"),l=d("react.context"),c=d("react.forward_ref"),ve.Suspense=d("react.suspense"),f=d("react.memo"),p=d("react.lazy")}var m=typeof Symbol=="function"&&Symbol.iterator;function v(T){return T===null||typeof T!="object"?null:(T=m&&T[m]||T["@@iterator"],typeof T=="function"?T:null)}function x(T){for(var O="https://reactjs.org/docs/error-decoder.html?invariant="+T,te=1;te<arguments.length;te++)O+="&args[]="+encodeURIComponent(arguments[te]);return"Minified React error #"+T+"; visit "+O+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C={};function N(T,O,te){this.props=T,this.context=O,this.refs=C,this.updater=te||w}N.prototype.isReactComponent={},N.prototype.setState=function(T,O){if(typeof T!="object"&&typeof T!="function"&&T!=null)throw Error(x(85));this.updater.enqueueSetState(this,T,O,"setState")},N.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function E(){}E.prototype=N.prototype;function _(T,O,te){this.props=T,this.context=O,this.refs=C,this.updater=te||w}var D=_.prototype=new E;D.constructor=_,r(D,N.prototype),D.isPureReactComponent=!0;var z={current:null},G=Object.prototype.hasOwnProperty,K={key:!0,ref:!0,__self:!0,__source:!0};function Z(T,O,te){var he,L={},b=null,U=null;if(O!=null)for(he in O.ref!==void 0&&(U=O.ref),O.key!==void 0&&(b=""+O.key),O)G.call(O,he)&&!K.hasOwnProperty(he)&&(L[he]=O[he]);var M=arguments.length-2;if(M===1)L.children=te;else if(1<M){for(var Q=Array(M),Se=0;Se<M;Se++)Q[Se]=arguments[Se+2];L.children=Q}if(T&&T.defaultProps)for(he in M=T.defaultProps,M)L[he]===void 0&&(L[he]=M[he]);return{$$typeof:s,type:T,key:b,ref:U,props:L,_owner:z.current}}function H(T,O){return{$$typeof:s,type:T.type,key:O,ref:T.ref,props:T.props,_owner:T._owner}}function B(T){return typeof T=="object"&&T!==null&&T.$$typeof===s}function V(T){var O={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(te){return O[te]})}var q=/\/+/g;function fe(T,O){return typeof T=="object"&&T!==null&&T.key!=null?V(""+T.key):O.toString(36)}function se(T,O,te,he,L){var b=typeof T;(b==="undefined"||b==="boolean")&&(T=null);var U=!1;if(T===null)U=!0;else switch(b){case"string":case"number":U=!0;break;case"object":switch(T.$$typeof){case s:case i:U=!0}}if(U)return U=T,L=L(U),T=he===""?"."+fe(U,0):he,Array.isArray(L)?(te="",T!=null&&(te=T.replace(q,"$&/")+"/"),se(L,O,te,"",function(Se){return Se})):L!=null&&(B(L)&&(L=H(L,te+(!L.key||U&&U.key===L.key?"":(""+L.key).replace(q,"$&/")+"/")+T)),O.push(L)),1;if(U=0,he=he===""?".":he+":",Array.isArray(T))for(var M=0;M<T.length;M++){b=T[M];var Q=he+fe(b,M);U+=se(b,O,te,Q,L)}else if(Q=v(T),typeof Q=="function")for(T=Q.call(T),M=0;!(b=T.next()).done;)b=b.value,Q=he+fe(b,M++),U+=se(b,O,te,Q,L);else if(b==="object")throw O=""+T,Error(x(31,O==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":O));return U}function ge(T,O,te){if(T==null)return T;var he=[],L=0;return se(T,he,"","",function(b){return O.call(te,b,L++)}),he}function pe(T){if(T._status===-1){var O=T._result;O=O(),T._status=0,T._result=O,O.then(function(te){T._status===0&&(te=te.default,T._status=1,T._result=te)},function(te){T._status===0&&(T._status=2,T._result=te)})}if(T._status===1)return T._result;throw T._result}var we={current:null};function ne(){var T=we.current;if(T===null)throw Error(x(321));return T}var xe={ReactCurrentDispatcher:we,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:z,IsSomeRendererActing:{current:!1},assign:r};return ve.Children={map:ge,forEach:function(T,O,te){ge(T,function(){O.apply(this,arguments)},te)},count:function(T){var O=0;return ge(T,function(){O++}),O},toArray:function(T){return ge(T,function(O){return O})||[]},only:function(T){if(!B(T))throw Error(x(143));return T}},ve.Component=N,ve.PureComponent=_,ve.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=xe,ve.cloneElement=function(T,O,te){if(T==null)throw Error(x(267,T));var he=r({},T.props),L=T.key,b=T.ref,U=T._owner;if(O!=null){if(O.ref!==void 0&&(b=O.ref,U=z.current),O.key!==void 0&&(L=""+O.key),T.type&&T.type.defaultProps)var M=T.type.defaultProps;for(Q in O)G.call(O,Q)&&!K.hasOwnProperty(Q)&&(he[Q]=O[Q]===void 0&&M!==void 0?M[Q]:O[Q])}var Q=arguments.length-2;if(Q===1)he.children=te;else if(1<Q){M=Array(Q);for(var Se=0;Se<Q;Se++)M[Se]=arguments[Se+2];he.children=M}return{$$typeof:s,type:T.type,key:L,ref:b,props:he,_owner:U}},ve.createContext=function(T,O){return O===void 0&&(O=null),T={$$typeof:l,_calculateChangedBits:O,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null},T.Provider={$$typeof:o,_context:T},T.Consumer=T},ve.createElement=Z,ve.createFactory=function(T){var O=Z.bind(null,T);return O.type=T,O},ve.createRef=function(){return{current:null}},ve.forwardRef=function(T){return{$$typeof:c,render:T}},ve.isValidElement=B,ve.lazy=function(T){return{$$typeof:p,_payload:{_status:-1,_result:T},_init:pe}},ve.memo=function(T,O){return{$$typeof:f,type:T,compare:O===void 0?null:O}},ve.useCallback=function(T,O){return ne().useCallback(T,O)},ve.useContext=function(T,O){return ne().useContext(T,O)},ve.useDebugValue=function(){},ve.useEffect=function(T,O){return ne().useEffect(T,O)},ve.useImperativeHandle=function(T,O,te){return ne().useImperativeHandle(T,O,te)},ve.useLayoutEffect=function(T,O){return ne().useLayoutEffect(T,O)},ve.useMemo=function(T,O){return ne().useMemo(T,O)},ve.useReducer=function(T,O,te){return ne().useReducer(T,O,te)},ve.useRef=function(T){return ne().useRef(T)},ve.useState=function(T){return ne().useState(T)},ve.version="17.0.2",ve}var xl;function oi(){return xl||(xl=1,ii.exports=Jc()),ii.exports}var Sl;function Xc(){if(Sl)return an;Sl=1,si();var r=oi(),s=60103;if(an.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var i=Symbol.for;s=i("react.element"),an.Fragment=i("react.fragment")}var o=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l=Object.prototype.hasOwnProperty,c={key:!0,ref:!0,__self:!0,__source:!0};function f(p,d,m){var v,x={},w=null,C=null;m!==void 0&&(w=""+m),d.key!==void 0&&(w=""+d.key),d.ref!==void 0&&(C=d.ref);for(v in d)l.call(d,v)&&!c.hasOwnProperty(v)&&(x[v]=d[v]);if(p&&p.defaultProps)for(v in d=p.defaultProps,d)x[v]===void 0&&(x[v]=d[v]);return{$$typeof:s,type:p,key:w,ref:C,props:x,_owner:o.current}}return an.jsx=f,an.jsxs=f,an}var kl;function Zc(){return kl||(kl=1,ni.exports=Xc()),ni.exports}var F=Zc(),ye=oi();const St=yl(ye);var li={exports:{}},Ke={},ai={exports:{}},ui={};var Cl;function Gc(){return Cl||(Cl=1,(function(r){var s,i,o,l;if(typeof performance=="object"&&typeof performance.now=="function"){var c=performance;r.unstable_now=function(){return c.now()}}else{var f=Date,p=f.now();r.unstable_now=function(){return f.now()-p}}if(typeof window>"u"||typeof MessageChannel!="function"){var d=null,m=null,v=function(){if(d!==null)try{var L=r.unstable_now();d(!0,L),d=null}catch(b){throw setTimeout(v,0),b}};s=function(L){d!==null?setTimeout(s,0,L):(d=L,setTimeout(v,0))},i=function(L,b){m=setTimeout(L,b)},o=function(){clearTimeout(m)},r.unstable_shouldYield=function(){return!1},l=r.unstable_forceFrameRate=function(){}}else{var x=window.setTimeout,w=window.clearTimeout;if(typeof console<"u"){var C=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 C!="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 N=!1,E=null,_=-1,D=5,z=0;r.unstable_shouldYield=function(){return r.unstable_now()>=z},l=function(){},r.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):D=0<L?Math.floor(1e3/L):5};var G=new MessageChannel,K=G.port2;G.port1.onmessage=function(){if(E!==null){var L=r.unstable_now();z=L+D;try{E(!0,L)?K.postMessage(null):(N=!1,E=null)}catch(b){throw K.postMessage(null),b}}else N=!1},s=function(L){E=L,N||(N=!0,K.postMessage(null))},i=function(L,b){_=x(function(){L(r.unstable_now())},b)},o=function(){w(_),_=-1}}function Z(L,b){var U=L.length;L.push(b);e:for(;;){var M=U-1>>>1,Q=L[M];if(Q!==void 0&&0<V(Q,b))L[M]=b,L[U]=Q,U=M;else break e}}function H(L){return L=L[0],L===void 0?null:L}function B(L){var b=L[0];if(b!==void 0){var U=L.pop();if(U!==b){L[0]=U;e:for(var M=0,Q=L.length;M<Q;){var Se=2*(M+1)-1,We=L[Se],gt=Se+1,rt=L[gt];if(We!==void 0&&0>V(We,U))rt!==void 0&&0>V(rt,We)?(L[M]=rt,L[gt]=U,M=gt):(L[M]=We,L[Se]=U,M=Se);else if(rt!==void 0&&0>V(rt,U))L[M]=rt,L[gt]=U,M=gt;else break e}}return b}return null}function V(L,b){var U=L.sortIndex-b.sortIndex;return U!==0?U:L.id-b.id}var q=[],fe=[],se=1,ge=null,pe=3,we=!1,ne=!1,xe=!1;function T(L){for(var b=H(fe);b!==null;){if(b.callback===null)B(fe);else if(b.startTime<=L)B(fe),b.sortIndex=b.expirationTime,Z(q,b);else break;b=H(fe)}}function O(L){if(xe=!1,T(L),!ne)if(H(q)!==null)ne=!0,s(te);else{var b=H(fe);b!==null&&i(O,b.startTime-L)}}function te(L,b){ne=!1,xe&&(xe=!1,o()),we=!0;var U=pe;try{for(T(b),ge=H(q);ge!==null&&(!(ge.expirationTime>b)||L&&!r.unstable_shouldYield());){var M=ge.callback;if(typeof M=="function"){ge.callback=null,pe=ge.priorityLevel;var Q=M(ge.expirationTime<=b);b=r.unstable_now(),typeof Q=="function"?ge.callback=Q:ge===H(q)&&B(q),T(b)}else B(q);ge=H(q)}if(ge!==null)var Se=!0;else{var We=H(fe);We!==null&&i(O,We.startTime-b),Se=!1}return Se}finally{ge=null,pe=U,we=!1}}var he=l;r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(L){L.callback=null},r.unstable_continueExecution=function(){ne||we||(ne=!0,s(te))},r.unstable_getCurrentPriorityLevel=function(){return pe},r.unstable_getFirstCallbackNode=function(){return H(q)},r.unstable_next=function(L){switch(pe){case 1:case 2:case 3:var b=3;break;default:b=pe}var U=pe;pe=b;try{return L()}finally{pe=U}},r.unstable_pauseExecution=function(){},r.unstable_requestPaint=he,r.unstable_runWithPriority=function(L,b){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var U=pe;pe=L;try{return b()}finally{pe=U}},r.unstable_scheduleCallback=function(L,b,U){var M=r.unstable_now();switch(typeof U=="object"&&U!==null?(U=U.delay,U=typeof U=="number"&&0<U?M+U:M):U=M,L){case 1:var Q=-1;break;case 2:Q=250;break;case 5:Q=1073741823;break;case 4:Q=1e4;break;default:Q=5e3}return Q=U+Q,L={id:se++,callback:b,priorityLevel:L,startTime:U,expirationTime:Q,sortIndex:-1},U>M?(L.sortIndex=U,Z(fe,L),H(q)===null&&L===H(fe)&&(xe?o():xe=!0,i(O,U-M))):(L.sortIndex=Q,Z(q,L),ne||we||(ne=!0,s(te))),L},r.unstable_wrapCallback=function(L){var b=pe;return function(){var U=pe;pe=b;try{return L.apply(this,arguments)}finally{pe=U}}}})(ui)),ui}var $l;function qc(){return $l||($l=1,ai.exports=Gc()),ai.exports}var _l;function ef(){if(_l)return Ke;_l=1;var r=oi(),s=si(),i=qc();function o(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(!r)throw Error(o(227));var l=new Set,c={};function f(e,t){p(e,t),p(e+"Capture",t)}function p(e,t){for(c[e]=t,e=0;e<t.length;e++)l.add(t[e])}var d=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),m=/^[: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]*$/,v=Object.prototype.hasOwnProperty,x={},w={};function C(e){return v.call(w,e)?!0:v.call(x,e)?!1:m.test(e)?w[e]=!0:(x[e]=!0,!1)}function N(e,t,n,a){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return a?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function E(e,t,n,a){if(t===null||typeof t>"u"||N(e,t,n,a))return!0;if(a)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 _(e,t,n,a,u,h,g){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=a,this.attributeNamespace=u,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=h,this.removeEmptyString=g}var D={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){D[e]=new _(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];D[t]=new _(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){D[e]=new _(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){D[e]=new _(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){D[e]=new _(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){D[e]=new _(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){D[e]=new _(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){D[e]=new _(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){D[e]=new _(e,5,!1,e.toLowerCase(),null,!1,!1)});var z=/[\-:]([a-z])/g;function G(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(z,G);D[t]=new _(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(z,G);D[t]=new _(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(z,G);D[t]=new _(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){D[e]=new _(e,1,!1,e.toLowerCase(),null,!1,!1)}),D.xlinkHref=new _("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){D[e]=new _(e,1,!1,e.toLowerCase(),null,!0,!0)});function K(e,t,n,a){var u=D.hasOwnProperty(t)?D[t]:null,h=u!==null?u.type===0:a?!1:!(!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N");h||(E(t,n,u,a)&&(n=null),a||u===null?C(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):u.mustUseProperty?e[u.propertyName]=n===null?u.type===3?!1:"":n:(t=u.attributeName,a=u.attributeNamespace,n===null?e.removeAttribute(t):(u=u.type,n=u===3||u===4&&n===!0?"":""+n,a?e.setAttributeNS(a,t,n):e.setAttribute(t,n))))}var Z=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,H=60103,B=60106,V=60107,q=60108,fe=60114,se=60109,ge=60110,pe=60112,we=60113,ne=60120,xe=60115,T=60116,O=60121,te=60128,he=60129,L=60130,b=60131;if(typeof Symbol=="function"&&Symbol.for){var U=Symbol.for;H=U("react.element"),B=U("react.portal"),V=U("react.fragment"),q=U("react.strict_mode"),fe=U("react.profiler"),se=U("react.provider"),ge=U("react.context"),pe=U("react.forward_ref"),we=U("react.suspense"),ne=U("react.suspense_list"),xe=U("react.memo"),T=U("react.lazy"),O=U("react.block"),U("react.scope"),te=U("react.opaque.id"),he=U("react.debug_trace_mode"),L=U("react.offscreen"),b=U("react.legacy_hidden")}var M=typeof Symbol=="function"&&Symbol.iterator;function Q(e){return e===null||typeof e!="object"?null:(e=M&&e[M]||e["@@iterator"],typeof e=="function"?e:null)}var Se;function We(e){if(Se===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Se=t&&t[1]||""}return`
|
|
2
|
-
`+
|
|
3
|
-
`),
|
|
4
|
-
`),
|
|
5
|
-
`+u[g].replace(" at new "," at ");while(1<=g&&0<=y);break}}}finally{gt=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?We(e):""}function Hd(e){switch(e.tag){case 5:return We(e.type);case 16:return We("Lazy");case 13:return We("Suspense");case 19:return We("SuspenseList");case 0:case 2:case 15:return e=rt(e.type,!1),e;case 11:return e=rt(e.type.render,!1),e;case 22:return e=rt(e.type._render,!1),e;case 1:return e=rt(e.type,!0),e;default:return""}}function vn(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 V:return"Fragment";case B:return"Portal";case fe:return"Profiler";case q:return"StrictMode";case we:return"Suspense";case ne:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ge:return(e.displayName||"Context")+".Consumer";case se:return(e._context.displayName||"Context")+".Provider";case pe:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case xe:return vn(e.type);case O:return vn(e._render);case T:t=e._payload,e=e._init;try{return vn(e(t))}catch{}}return null}function _t(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function ga(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Kd(e){var t=ga(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),a=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var u=n.get,h=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return u.call(this)},set:function(g){a=""+g,h.call(this,g)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return a},setValue:function(g){a=""+g},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function rs(e){e._valueTracker||(e._valueTracker=Kd(e))}function ma(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=ga(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}function ss(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 Ni(e,t){var n=t.checked;return s({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function ya(e,t){var n=t.defaultValue==null?"":t.defaultValue,a=t.checked!=null?t.checked:t.defaultChecked;n=_t(t.value!=null?t.value:n),e._wrapperState={initialChecked:a,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function va(e,t){t=t.checked,t!=null&&K(e,"checked",t,!1)}function Ai(e,t){va(e,t);var n=_t(t.value),a=t.type;if(n!=null)a==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(a==="submit"||a==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ji(e,t.type,n):t.hasOwnProperty("defaultValue")&&ji(e,t.type,_t(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function wa(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var a=t.type;if(!(a!=="submit"&&a!=="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 ji(e,t,n){(t!=="number"||ss(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function Wd(e){var t="";return r.Children.forEach(e,function(n){n!=null&&(t+=n)}),t}function Li(e,t){return e=s({children:void 0},t),(t=Wd(t.children))&&(e.children=t),e}function wn(e,t,n,a){if(e=e.options,t){t={};for(var u=0;u<n.length;u++)t["$"+n[u]]=!0;for(n=0;n<e.length;n++)u=t.hasOwnProperty("$"+e[n].value),e[n].selected!==u&&(e[n].selected=u),u&&a&&(e[n].defaultSelected=!0)}else{for(n=""+_t(n),t=null,u=0;u<e.length;u++){if(e[u].value===n){e[u].selected=!0,a&&(e[u].defaultSelected=!0);return}t!==null||e[u].disabled||(t=e[u])}t!==null&&(t.selected=!0)}}function Oi(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(o(91));return s({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function xa(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(o(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(o(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:_t(n)}}function Sa(e,t){var n=_t(t.value),a=_t(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),a!=null&&(e.defaultValue=""+a)}function ka(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}var Ri={html:"http://www.w3.org/1999/xhtml",svg:"http://www.w3.org/2000/svg"};function Ca(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 Ii(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Ca(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var is,$a=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,a,u){MSApp.execUnsafeLocalFunction(function(){return e(t,n,a,u)})}:e})(function(e,t){if(e.namespaceURI!==Ri.svg||"innerHTML"in e)e.innerHTML=t;else{for(is=is||document.createElement("div"),is.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=is.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Gn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var qn={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},Qd=["Webkit","ms","Moz","O"];Object.keys(qn).forEach(function(e){Qd.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),qn[t]=qn[e]})});function _a(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||qn.hasOwnProperty(e)&&qn[e]?(""+t).trim():t+"px"}function Pa(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var a=n.indexOf("--")===0,u=_a(n,t[n],a);n==="float"&&(n="cssFloat"),a?e.setProperty(n,u):e[n]=u}}var Yd=s({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 zi(e,t){if(t){if(Yd[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(o(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(o(60));if(!(typeof t.dangerouslySetInnerHTML=="object"&&"__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(t.style!=null&&typeof t.style!="object")throw Error(o(62))}}function Mi(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 Di(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Fi=null,xn=null,Sn=null;function Ea(e){if(e=vr(e)){if(typeof Fi!="function")throw Error(o(280));var t=e.stateNode;t&&(t=Cs(t),Fi(e.stateNode,e.type,t))}}function Ta(e){xn?Sn?Sn.push(e):Sn=[e]:xn=e}function Na(){if(xn){var e=xn,t=Sn;if(Sn=xn=null,Ea(e),t)for(e=0;e<t.length;e++)Ea(t[e])}}function Ui(e,t){return e(t)}function Aa(e,t,n,a,u){return e(t,n,a,u)}function bi(){}var ja=Ui,Jt=!1,Bi=!1;function Vi(){(xn!==null||Sn!==null)&&(bi(),Na())}function Jd(e,t,n){if(Bi)return e(t,n);Bi=!0;try{return ja(e,t,n)}finally{Bi=!1,Vi()}}function er(e,t){var n=e.stateNode;if(n===null)return null;var a=Cs(n);if(a===null)return null;n=a[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":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(o(231,t,typeof n));return n}var Hi=!1;if(d)try{var tr={};Object.defineProperty(tr,"passive",{get:function(){Hi=!0}}),window.addEventListener("test",tr,tr),window.removeEventListener("test",tr,tr)}catch{Hi=!1}function Xd(e,t,n,a,u,h,g,y,S){var A=Array.prototype.slice.call(arguments,3);try{t.apply(n,A)}catch(W){this.onError(W)}}var nr=!1,os=null,ls=!1,Ki=null,Zd={onError:function(e){nr=!0,os=e}};function Gd(e,t,n,a,u,h,g,y,S){nr=!1,os=null,Xd.apply(Zd,arguments)}function qd(e,t,n,a,u,h,g,y,S){if(Gd.apply(this,arguments),nr){if(nr){var A=os;nr=!1,os=null}else throw Error(o(198));ls||(ls=!0,Ki=A)}}function Xt(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&1026)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function La(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 Oa(e){if(Xt(e)!==e)throw Error(o(188))}function ep(e){var t=e.alternate;if(!t){if(t=Xt(e),t===null)throw Error(o(188));return t!==e?null:e}for(var n=e,a=t;;){var u=n.return;if(u===null)break;var h=u.alternate;if(h===null){if(a=u.return,a!==null){n=a;continue}break}if(u.child===h.child){for(h=u.child;h;){if(h===n)return Oa(u),e;if(h===a)return Oa(u),t;h=h.sibling}throw Error(o(188))}if(n.return!==a.return)n=u,a=h;else{for(var g=!1,y=u.child;y;){if(y===n){g=!0,n=u,a=h;break}if(y===a){g=!0,a=u,n=h;break}y=y.sibling}if(!g){for(y=h.child;y;){if(y===n){g=!0,n=h,a=u;break}if(y===a){g=!0,a=h,n=u;break}y=y.sibling}if(!g)throw Error(o(189))}}if(n.alternate!==a)throw Error(o(190))}if(n.tag!==3)throw Error(o(188));return n.stateNode.current===n?e:t}function Ra(e){if(e=ep(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 Ia(e,t){for(var n=e.alternate;t!==null;){if(t===e||t===n)return!0;t=t.return}return!1}var za,Wi,Ma,Da,Qi=!1,at=[],Pt=null,Et=null,Tt=null,rr=new Map,sr=new Map,ir=[],Fa="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 Yi(e,t,n,a,u){return{blockedOn:e,domEventName:t,eventSystemFlags:n|16,nativeEvent:u,targetContainers:[a]}}function Ua(e,t){switch(e){case"focusin":case"focusout":Pt=null;break;case"dragenter":case"dragleave":Et=null;break;case"mouseover":case"mouseout":Tt=null;break;case"pointerover":case"pointerout":rr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":sr.delete(t.pointerId)}}function or(e,t,n,a,u,h){return e===null||e.nativeEvent!==h?(e=Yi(t,n,a,u,h),t!==null&&(t=vr(t),t!==null&&Wi(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),e)}function tp(e,t,n,a,u){switch(t){case"focusin":return Pt=or(Pt,e,t,n,a,u),!0;case"dragenter":return Et=or(Et,e,t,n,a,u),!0;case"mouseover":return Tt=or(Tt,e,t,n,a,u),!0;case"pointerover":var h=u.pointerId;return rr.set(h,or(rr.get(h)||null,e,t,n,a,u)),!0;case"gotpointercapture":return h=u.pointerId,sr.set(h,or(sr.get(h)||null,e,t,n,a,u)),!0}return!1}function np(e){var t=Zt(e.target);if(t!==null){var n=Xt(t);if(n!==null){if(t=n.tag,t===13){if(t=La(n),t!==null){e.blockedOn=t,Da(e.lanePriority,function(){i.unstable_runWithPriority(e.priority,function(){Ma(n)})});return}}else if(t===3&&n.stateNode.hydrate){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function as(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=eo(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n!==null)return t=vr(n),t!==null&&Wi(t),e.blockedOn=n,!1;t.shift()}return!0}function ba(e,t,n){as(e)&&n.delete(t)}function rp(){for(Qi=!1;0<at.length;){var e=at[0];if(e.blockedOn!==null){e=vr(e.blockedOn),e!==null&&za(e);break}for(var t=e.targetContainers;0<t.length;){var n=eo(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n!==null){e.blockedOn=n;break}t.shift()}e.blockedOn===null&&at.shift()}Pt!==null&&as(Pt)&&(Pt=null),Et!==null&&as(Et)&&(Et=null),Tt!==null&&as(Tt)&&(Tt=null),rr.forEach(ba),sr.forEach(ba)}function lr(e,t){e.blockedOn===t&&(e.blockedOn=null,Qi||(Qi=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,rp)))}function Ba(e){function t(u){return lr(u,e)}if(0<at.length){lr(at[0],e);for(var n=1;n<at.length;n++){var a=at[n];a.blockedOn===e&&(a.blockedOn=null)}}for(Pt!==null&&lr(Pt,e),Et!==null&&lr(Et,e),Tt!==null&&lr(Tt,e),rr.forEach(t),sr.forEach(t),n=0;n<ir.length;n++)a=ir[n],a.blockedOn===e&&(a.blockedOn=null);for(;0<ir.length&&(n=ir[0],n.blockedOn===null);)np(n),n.blockedOn===null&&ir.shift()}function us(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var kn={animationend:us("Animation","AnimationEnd"),animationiteration:us("Animation","AnimationIteration"),animationstart:us("Animation","AnimationStart"),transitionend:us("Transition","TransitionEnd")},Ji={},Va={};d&&(Va=document.createElement("div").style,"AnimationEvent"in window||(delete kn.animationend.animation,delete kn.animationiteration.animation,delete kn.animationstart.animation),"TransitionEvent"in window||delete kn.transitionend.transition);function cs(e){if(Ji[e])return Ji[e];if(!kn[e])return e;var t=kn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Va)return Ji[e]=t[n];return e}var Ha=cs("animationend"),Ka=cs("animationiteration"),Wa=cs("animationstart"),Qa=cs("transitionend"),Ya=new Map,Xi=new Map,sp=["abort","abort",Ha,"animationEnd",Ka,"animationIteration",Wa,"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",Qa,"transitionEnd","waiting","waiting"];function Zi(e,t){for(var n=0;n<e.length;n+=2){var a=e[n],u=e[n+1];u="on"+(u[0].toUpperCase()+u.slice(1)),Xi.set(a,t),Ya.set(a,u),f(u,[a])}}var ip=i.unstable_now;ip();var ke=8;function Cn(e){if((1&e)!==0)return ke=15,1;if((2&e)!==0)return ke=14,2;if((4&e)!==0)return ke=13,4;var t=24&e;return t!==0?(ke=12,t):(e&32)!==0?(ke=11,32):(t=192&e,t!==0?(ke=10,t):(e&256)!==0?(ke=9,256):(t=3584&e,t!==0?(ke=8,t):(e&4096)!==0?(ke=7,4096):(t=4186112&e,t!==0?(ke=6,t):(t=62914560&e,t!==0?(ke=5,t):e&67108864?(ke=4,67108864):(e&134217728)!==0?(ke=3,134217728):(t=805306368&e,t!==0?(ke=2,t):(1073741824&e)!==0?(ke=1,1073741824):(ke=8,e))))))}function op(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 lp(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(o(358,e))}}function ar(e,t){var n=e.pendingLanes;if(n===0)return ke=0;var a=0,u=0,h=e.expiredLanes,g=e.suspendedLanes,y=e.pingedLanes;if(h!==0)a=h,u=ke=15;else if(h=n&134217727,h!==0){var S=h&~g;S!==0?(a=Cn(S),u=ke):(y&=h,y!==0&&(a=Cn(y),u=ke))}else h=n&~g,h!==0?(a=Cn(h),u=ke):y!==0&&(a=Cn(y),u=ke);if(a===0)return 0;if(a=31-Nt(a),a=n&((0>a?0:1<<a)<<1)-1,t!==0&&t!==a&&(t&g)===0){if(Cn(t),u<=ke)return t;ke=u}if(t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=a;0<t;)n=31-Nt(t),u=1<<n,a|=e[n],t&=~u;return a}function Ja(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function fs(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return e=$n(24&~t),e===0?fs(10,t):e;case 10:return e=$n(192&~t),e===0?fs(8,t):e;case 8:return e=$n(3584&~t),e===0&&(e=$n(4186112&~t),e===0&&(e=512)),e;case 2:return t=$n(805306368&~t),t===0&&(t=268435456),t}throw Error(o(358,e))}function $n(e){return e&-e}function Gi(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function hs(e,t,n){e.pendingLanes|=t;var a=t-1;e.suspendedLanes&=a,e.pingedLanes&=a,e=e.eventTimes,t=31-Nt(t),e[t]=n}var Nt=Math.clz32?Math.clz32:cp,ap=Math.log,up=Math.LN2;function cp(e){return e===0?32:31-(ap(e)/up|0)|0}var fp=i.unstable_UserBlockingPriority,hp=i.unstable_runWithPriority,ds=!0;function dp(e,t,n,a){Jt||bi();var u=qi,h=Jt;Jt=!0;try{Aa(u,e,t,n,a)}finally{(Jt=h)||Vi()}}function pp(e,t,n,a){hp(fp,qi.bind(null,e,t,n,a))}function qi(e,t,n,a){if(ds){var u;if((u=(t&4)===0)&&0<at.length&&-1<Fa.indexOf(e))e=Yi(null,e,t,n,a),at.push(e);else{var h=eo(e,t,n,a);if(h===null)u&&Ua(e,a);else{if(u){if(-1<Fa.indexOf(e)){e=Yi(h,e,t,n,a),at.push(e);return}if(tp(h,e,t,n,a))return;Ua(e,a)}$u(e,t,a,null,n)}}}}function eo(e,t,n,a){var u=Di(a);if(u=Zt(u),u!==null){var h=Xt(u);if(h===null)u=null;else{var g=h.tag;if(g===13){if(u=La(h),u!==null)return u;u=null}else if(g===3){if(h.stateNode.hydrate)return h.tag===3?h.stateNode.containerInfo:null;u=null}else h!==u&&(u=null)}}return $u(e,t,a,u,n),null}var At=null,to=null,ps=null;function Xa(){if(ps)return ps;var e,t=to,n=t.length,a,u="value"in At?At.value:At.textContent,h=u.length;for(e=0;e<n&&t[e]===u[e];e++);var g=n-e;for(a=1;a<=g&&t[n-a]===u[h-a];a++);return ps=u.slice(e,1<a?1-a:void 0)}function gs(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 ms(){return!0}function Za(){return!1}function Qe(e){function t(n,a,u,h,g){this._reactName=n,this._targetInst=u,this.type=a,this.nativeEvent=h,this.target=g,this.currentTarget=null;for(var y in e)e.hasOwnProperty(y)&&(n=e[y],this[y]=n?n(h):h[y]);return this.isDefaultPrevented=(h.defaultPrevented!=null?h.defaultPrevented:h.returnValue===!1)?ms:Za,this.isPropagationStopped=Za,this}return s(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=ms)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ms)},persist:function(){},isPersistent:ms}),t}var _n={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},no=Qe(_n),ur=s({},_n,{view:0,detail:0}),gp=Qe(ur),ro,so,cr,ys=s({},ur,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:oo,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!==cr&&(cr&&e.type==="mousemove"?(ro=e.screenX-cr.screenX,so=e.screenY-cr.screenY):so=ro=0,cr=e),ro)},movementY:function(e){return"movementY"in e?e.movementY:so}}),Ga=Qe(ys),mp=s({},ys,{dataTransfer:0}),yp=Qe(mp),vp=s({},ur,{relatedTarget:0}),io=Qe(vp),wp=s({},_n,{animationName:0,elapsedTime:0,pseudoElement:0}),xp=Qe(wp),Sp=s({},_n,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),kp=Qe(Sp),Cp=s({},_n,{data:0}),qa=Qe(Cp),$p={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_p={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"},Pp={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ep(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Pp[e])?!!t[e]:!1}function oo(){return Ep}var Tp=s({},ur,{key:function(e){if(e.key){var t=$p[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=gs(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?_p[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:oo,charCode:function(e){return e.type==="keypress"?gs(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?gs(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Np=Qe(Tp),Ap=s({},ys,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),eu=Qe(Ap),jp=s({},ur,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:oo}),Lp=Qe(jp),Op=s({},_n,{propertyName:0,elapsedTime:0,pseudoElement:0}),Rp=Qe(Op),Ip=s({},ys,{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}),zp=Qe(Ip),Mp=[9,13,27,32],lo=d&&"CompositionEvent"in window,fr=null;d&&"documentMode"in document&&(fr=document.documentMode);var Dp=d&&"TextEvent"in window&&!fr,tu=d&&(!lo||fr&&8<fr&&11>=fr),nu=" ",ru=!1;function su(e,t){switch(e){case"keyup":return Mp.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function iu(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Pn=!1;function Fp(e,t){switch(e){case"compositionend":return iu(t);case"keypress":return t.which!==32?null:(ru=!0,nu);case"textInput":return e=t.data,e===nu&&ru?null:e;default:return null}}function Up(e,t){if(Pn)return e==="compositionend"||!lo&&su(e,t)?(e=Xa(),ps=to=At=null,Pn=!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 tu&&t.locale!=="ko"?null:t.data;default:return null}}var bp={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 ou(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!bp[e.type]:t==="textarea"}function lu(e,t,n,a){Ta(a),t=ws(t,"onChange"),0<t.length&&(n=new no("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var hr=null,dr=null;function Bp(e){wu(e,0)}function vs(e){var t=jn(e);if(ma(t))return e}function Vp(e,t){if(e==="change")return t}var au=!1;if(d){var ao;if(d){var uo="oninput"in document;if(!uo){var uu=document.createElement("div");uu.setAttribute("oninput","return;"),uo=typeof uu.oninput=="function"}ao=uo}else ao=!1;au=ao&&(!document.documentMode||9<document.documentMode)}function cu(){hr&&(hr.detachEvent("onpropertychange",fu),dr=hr=null)}function fu(e){if(e.propertyName==="value"&&vs(dr)){var t=[];if(lu(t,dr,e,Di(e)),e=Bp,Jt)e(t);else{Jt=!0;try{Ui(e,t)}finally{Jt=!1,Vi()}}}}function Hp(e,t,n){e==="focusin"?(cu(),hr=t,dr=n,hr.attachEvent("onpropertychange",fu)):e==="focusout"&&cu()}function Kp(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return vs(dr)}function Wp(e,t){if(e==="click")return vs(t)}function Qp(e,t){if(e==="input"||e==="change")return vs(t)}function Yp(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Je=typeof Object.is=="function"?Object.is:Yp,Jp=Object.prototype.hasOwnProperty;function pr(e,t){if(Je(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++)if(!Jp.call(t,n[a])||!Je(e[n[a]],t[n[a]]))return!1;return!0}function hu(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function du(e,t){var n=hu(e);e=0;for(var a;n;){if(n.nodeType===3){if(a=e+n.textContent.length,e<=t&&a>=t)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=hu(n)}}function pu(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?pu(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function gu(){for(var e=window,t=ss();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ss(e.document)}return t}function co(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 Xp=d&&"documentMode"in document&&11>=document.documentMode,En=null,fo=null,gr=null,ho=!1;function mu(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ho||En==null||En!==ss(a)||(a=En,"selectionStart"in a&&co(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),gr&&pr(gr,a)||(gr=a,a=ws(fo,"onSelect"),0<a.length&&(t=new no("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=En)))}Zi("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),Zi("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),Zi(sp,2);for(var yu="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),po=0;po<yu.length;po++)Xi.set(yu[po],0);p("onMouseEnter",["mouseout","mouseover"]),p("onMouseLeave",["mouseout","mouseover"]),p("onPointerEnter",["pointerout","pointerover"]),p("onPointerLeave",["pointerout","pointerover"]),f("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),f("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),f("onBeforeInput",["compositionend","keypress","textInput","paste"]),f("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),f("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),f("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var mr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Zp=new Set("cancel close invalid load scroll toggle".split(" ").concat(mr));function vu(e,t,n){var a=e.type||"unknown-event";e.currentTarget=n,qd(a,t,void 0,e),e.currentTarget=null}function wu(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var a=e[n],u=a.event;a=a.listeners;e:{var h=void 0;if(t)for(var g=a.length-1;0<=g;g--){var y=a[g],S=y.instance,A=y.currentTarget;if(y=y.listener,S!==h&&u.isPropagationStopped())break e;vu(u,y,A),h=S}else for(g=0;g<a.length;g++){if(y=a[g],S=y.instance,A=y.currentTarget,y=y.listener,S!==h&&u.isPropagationStopped())break e;vu(u,y,A),h=S}}}if(ls)throw e=Ki,ls=!1,Ki=null,e}function $e(e,t){var n=Au(t),a=e+"__bubble";n.has(a)||(Cu(t,e,2,!1),n.add(a))}var xu="_reactListening"+Math.random().toString(36).slice(2);function Su(e){e[xu]||(e[xu]=!0,l.forEach(function(t){Zp.has(t)||ku(t,!1,e,null),ku(t,!0,e,null)}))}function ku(e,t,n,a){var u=4<arguments.length&&arguments[4]!==void 0?arguments[4]:0,h=n;e==="selectionchange"&&n.nodeType!==9&&(h=n.ownerDocument);var g=Au(h),y=e+"__"+(t?"capture":"bubble");g.has(y)||(t&&(u|=4),Cu(h,e,u,t),g.add(y))}function Cu(e,t,n,a){var u=Xi.get(t);switch(u===void 0?2:u){case 0:u=dp;break;case 1:u=pp;break;default:u=qi}n=u.bind(null,t,n,e),u=void 0,!Hi||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(u=!0),a?u!==void 0?e.addEventListener(t,n,{capture:!0,passive:u}):e.addEventListener(t,n,!0):u!==void 0?e.addEventListener(t,n,{passive:u}):e.addEventListener(t,n,!1)}function $u(e,t,n,a,u){var h=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var g=a.tag;if(g===3||g===4){var y=a.stateNode.containerInfo;if(y===u||y.nodeType===8&&y.parentNode===u)break;if(g===4)for(g=a.return;g!==null;){var S=g.tag;if((S===3||S===4)&&(S=g.stateNode.containerInfo,S===u||S.nodeType===8&&S.parentNode===u))return;g=g.return}for(;y!==null;){if(g=Zt(y),g===null)return;if(S=g.tag,S===5||S===6){a=h=g;continue e}y=y.parentNode}}a=a.return}Jd(function(){var A=h,W=Di(n),ae=[];e:{var I=Ya.get(e);if(I!==void 0){var ee=no,oe=e;switch(e){case"keypress":if(gs(n)===0)break e;case"keydown":case"keyup":ee=Np;break;case"focusin":oe="focus",ee=io;break;case"focusout":oe="blur",ee=io;break;case"beforeblur":case"afterblur":ee=io;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":ee=Ga;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ee=yp;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ee=Lp;break;case Ha:case Ka:case Wa:ee=xp;break;case Qa:ee=Rp;break;case"scroll":ee=gp;break;case"wheel":ee=zp;break;case"copy":case"cut":case"paste":ee=kp;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ee=eu}var re=(t&4)!==0,P=!re&&e==="scroll",k=re?I!==null?I+"Capture":null:I;re=[];for(var $=A,j;$!==null;){j=$;var R=j.stateNode;if(j.tag===5&&R!==null&&(j=R,k!==null&&(R=er($,k),R!=null&&re.push(yr($,R,j)))),P)break;$=$.return}0<re.length&&(I=new ee(I,oe,null,n,W),ae.push({event:I,listeners:re}))}}if((t&7)===0){e:{if(I=e==="mouseover"||e==="pointerover",ee=e==="mouseout"||e==="pointerout",I&&(t&16)===0&&(oe=n.relatedTarget||n.fromElement)&&(Zt(oe)||oe[An]))break e;if((ee||I)&&(I=W.window===W?W:(I=W.ownerDocument)?I.defaultView||I.parentWindow:window,ee?(oe=n.relatedTarget||n.toElement,ee=A,oe=oe?Zt(oe):null,oe!==null&&(P=Xt(oe),oe!==P||oe.tag!==5&&oe.tag!==6)&&(oe=null)):(ee=null,oe=A),ee!==oe)){if(re=Ga,R="onMouseLeave",k="onMouseEnter",$="mouse",(e==="pointerout"||e==="pointerover")&&(re=eu,R="onPointerLeave",k="onPointerEnter",$="pointer"),P=ee==null?I:jn(ee),j=oe==null?I:jn(oe),I=new re(R,$+"leave",ee,n,W),I.target=P,I.relatedTarget=j,R=null,Zt(W)===A&&(re=new re(k,$+"enter",oe,n,W),re.target=j,re.relatedTarget=P,R=re),P=R,ee&&oe)t:{for(re=ee,k=oe,$=0,j=re;j;j=Tn(j))$++;for(j=0,R=k;R;R=Tn(R))j++;for(;0<$-j;)re=Tn(re),$--;for(;0<j-$;)k=Tn(k),j--;for(;$--;){if(re===k||k!==null&&re===k.alternate)break t;re=Tn(re),k=Tn(k)}re=null}else re=null;ee!==null&&_u(ae,I,ee,re,!1),oe!==null&&P!==null&&_u(ae,P,oe,re,!0)}}e:{if(I=A?jn(A):window,ee=I.nodeName&&I.nodeName.toLowerCase(),ee==="select"||ee==="input"&&I.type==="file")var ue=Vp;else if(ou(I))if(au)ue=Qp;else{ue=Kp;var X=Hp}else(ee=I.nodeName)&&ee.toLowerCase()==="input"&&(I.type==="checkbox"||I.type==="radio")&&(ue=Wp);if(ue&&(ue=ue(e,A))){lu(ae,ue,n,W);break e}X&&X(e,I,A),e==="focusout"&&(X=I._wrapperState)&&X.controlled&&I.type==="number"&&ji(I,"number",I.value)}switch(X=A?jn(A):window,e){case"focusin":(ou(X)||X.contentEditable==="true")&&(En=X,fo=A,gr=null);break;case"focusout":gr=fo=En=null;break;case"mousedown":ho=!0;break;case"contextmenu":case"mouseup":case"dragend":ho=!1,mu(ae,n,W);break;case"selectionchange":if(Xp)break;case"keydown":case"keyup":mu(ae,n,W)}var ce;if(lo)e:{switch(e){case"compositionstart":var me="onCompositionStart";break e;case"compositionend":me="onCompositionEnd";break e;case"compositionupdate":me="onCompositionUpdate";break e}me=void 0}else Pn?su(e,n)&&(me="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(me="onCompositionStart");me&&(tu&&n.locale!=="ko"&&(Pn||me!=="onCompositionStart"?me==="onCompositionEnd"&&Pn&&(ce=Xa()):(At=W,to="value"in At?At.value:At.textContent,Pn=!0)),X=ws(A,me),0<X.length&&(me=new qa(me,e,null,n,W),ae.push({event:me,listeners:X}),ce?me.data=ce:(ce=iu(n),ce!==null&&(me.data=ce)))),(ce=Dp?Fp(e,n):Up(e,n))&&(A=ws(A,"onBeforeInput"),0<A.length&&(W=new qa("onBeforeInput","beforeinput",null,n,W),ae.push({event:W,listeners:A}),W.data=ce))}wu(ae,t)})}function yr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ws(e,t){for(var n=t+"Capture",a=[];e!==null;){var u=e,h=u.stateNode;u.tag===5&&h!==null&&(u=h,h=er(e,n),h!=null&&a.unshift(yr(e,h,u)),h=er(e,t),h!=null&&a.push(yr(e,h,u))),e=e.return}return a}function Tn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function _u(e,t,n,a,u){for(var h=t._reactName,g=[];n!==null&&n!==a;){var y=n,S=y.alternate,A=y.stateNode;if(S!==null&&S===a)break;y.tag===5&&A!==null&&(y=A,u?(S=er(n,h),S!=null&&g.unshift(yr(n,S,y))):u||(S=er(n,h),S!=null&&g.push(yr(n,S,y)))),n=n.return}g.length!==0&&e.push({event:t,listeners:g})}function xs(){}var go=null,mo=null;function Pu(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function yo(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 Eu=typeof setTimeout=="function"?setTimeout:void 0,Gp=typeof clearTimeout=="function"?clearTimeout:void 0;function vo(e){e.nodeType===1?e.textContent="":e.nodeType===9&&(e=e.body,e!=null&&(e.textContent=""))}function Nn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break}return e}function Tu(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 wo=0;function qp(e){return{$$typeof:te,toString:e,valueOf:e}}var Ss=Math.random().toString(36).slice(2),jt="__reactFiber$"+Ss,ks="__reactProps$"+Ss,An="__reactContainer$"+Ss,Nu="__reactEvents$"+Ss;function Zt(e){var t=e[jt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[An]||n[jt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Tu(e);e!==null;){if(n=e[jt])return n;e=Tu(e)}return t}e=n,n=e.parentNode}return null}function vr(e){return e=e[jt]||e[An],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function jn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(o(33))}function Cs(e){return e[ks]||null}function Au(e){var t=e[Nu];return t===void 0&&(t=e[Nu]=new Set),t}var xo=[],Ln=-1;function Lt(e){return{current:e}}function _e(e){0>Ln||(e.current=xo[Ln],xo[Ln]=null,Ln--)}function Pe(e,t){Ln++,xo[Ln]=e.current,e.current=t}var Ot={},ze=Lt(Ot),be=Lt(!1),Gt=Ot;function On(e,t){var n=e.type.contextTypes;if(!n)return Ot;var a=e.stateNode;if(a&&a.__reactInternalMemoizedUnmaskedChildContext===t)return a.__reactInternalMemoizedMaskedChildContext;var u={},h;for(h in n)u[h]=t[h];return a&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=u),u}function Be(e){return e=e.childContextTypes,e!=null}function $s(){_e(be),_e(ze)}function ju(e,t,n){if(ze.current!==Ot)throw Error(o(168));Pe(ze,t),Pe(be,n)}function Lu(e,t,n){var a=e.stateNode;if(e=t.childContextTypes,typeof a.getChildContext!="function")return n;a=a.getChildContext();for(var u in a)if(!(u in e))throw Error(o(108,vn(t)||"Unknown",u));return s({},n,a)}function _s(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ot,Gt=ze.current,Pe(ze,e),Pe(be,be.current),!0}function Ou(e,t,n){var a=e.stateNode;if(!a)throw Error(o(169));n?(e=Lu(e,t,Gt),a.__reactInternalMemoizedMergedChildContext=e,_e(be),_e(ze),Pe(ze,e)):_e(be),Pe(be,n)}var So=null,qt=null,eg=i.unstable_runWithPriority,ko=i.unstable_scheduleCallback,Co=i.unstable_cancelCallback,tg=i.unstable_shouldYield,Ru=i.unstable_requestPaint,$o=i.unstable_now,ng=i.unstable_getCurrentPriorityLevel,Ps=i.unstable_ImmediatePriority,Iu=i.unstable_UserBlockingPriority,zu=i.unstable_NormalPriority,Mu=i.unstable_LowPriority,Du=i.unstable_IdlePriority,_o={},rg=Ru!==void 0?Ru:function(){},mt=null,Es=null,Po=!1,Fu=$o(),Me=1e4>Fu?$o:function(){return $o()-Fu};function Rn(){switch(ng()){case Ps:return 99;case Iu:return 98;case zu:return 97;case Mu:return 96;case Du:return 95;default:throw Error(o(332))}}function Uu(e){switch(e){case 99:return Ps;case 98:return Iu;case 97:return zu;case 96:return Mu;case 95:return Du;default:throw Error(o(332))}}function en(e,t){return e=Uu(e),eg(e,t)}function wr(e,t,n){return e=Uu(e),ko(e,t,n)}function ut(){if(Es!==null){var e=Es;Es=null,Co(e)}bu()}function bu(){if(!Po&&mt!==null){Po=!0;var e=0;try{var t=mt;en(99,function(){for(;e<t.length;e++){var n=t[e];do n=n(!0);while(n!==null)}}),mt=null}catch(n){throw mt!==null&&(mt=mt.slice(e+1)),ko(Ps,ut),n}finally{Po=!1}}}var sg=Z.ReactCurrentBatchConfig;function st(e,t){if(e&&e.defaultProps){t=s({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var Ts=Lt(null),Ns=null,In=null,As=null;function Eo(){As=In=Ns=null}function To(e){var t=Ts.current;_e(Ts),e.type._context._currentValue=t}function Bu(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 zn(e,t){Ns=e,As=In=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(it=!0),e.firstContext=null)}function Xe(e,t){if(As!==e&&t!==!1&&t!==0)if((typeof t!="number"||t===1073741823)&&(As=e,t=1073741823),t={context:e,observedBits:t,next:null},In===null){if(Ns===null)throw Error(o(308));In=t,Ns.dependencies={lanes:0,firstContext:t,responders:null}}else In=In.next=t;return e._currentValue}var Rt=!1;function No(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function Vu(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 It(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function zt(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 Hu(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var u=null,h=null;if(n=n.firstBaseUpdate,n!==null){do{var g={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};h===null?u=h=g:h=h.next=g,n=n.next}while(n!==null);h===null?u=h=t:h=h.next=t}else u=h=t;n={baseState:a.baseState,firstBaseUpdate:u,lastBaseUpdate:h,shared:a.shared,effects:a.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function xr(e,t,n,a){var u=e.updateQueue;Rt=!1;var h=u.firstBaseUpdate,g=u.lastBaseUpdate,y=u.shared.pending;if(y!==null){u.shared.pending=null;var S=y,A=S.next;S.next=null,g===null?h=A:g.next=A,g=S;var W=e.alternate;if(W!==null){W=W.updateQueue;var ae=W.lastBaseUpdate;ae!==g&&(ae===null?W.firstBaseUpdate=A:ae.next=A,W.lastBaseUpdate=S)}}if(h!==null){ae=u.baseState,g=0,W=A=S=null;do{y=h.lane;var I=h.eventTime;if((a&y)===y){W!==null&&(W=W.next={eventTime:I,lane:0,tag:h.tag,payload:h.payload,callback:h.callback,next:null});e:{var ee=e,oe=h;switch(y=t,I=n,oe.tag){case 1:if(ee=oe.payload,typeof ee=="function"){ae=ee.call(I,ae,y);break e}ae=ee;break e;case 3:ee.flags=ee.flags&-4097|64;case 0:if(ee=oe.payload,y=typeof ee=="function"?ee.call(I,ae,y):ee,y==null)break e;ae=s({},ae,y);break e;case 2:Rt=!0}}h.callback!==null&&(e.flags|=32,y=u.effects,y===null?u.effects=[h]:y.push(h))}else I={eventTime:I,lane:y,tag:h.tag,payload:h.payload,callback:h.callback,next:null},W===null?(A=W=I,S=ae):W=W.next=I,g|=y;if(h=h.next,h===null){if(y=u.shared.pending,y===null)break;h=y.next,y.next=null,u.lastBaseUpdate=y,u.shared.pending=null}}while(!0);W===null&&(S=ae),u.baseState=S,u.firstBaseUpdate=A,u.lastBaseUpdate=W,Lr|=g,e.lanes=g,e.memoizedState=ae}}function Ku(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var a=e[t],u=a.callback;if(u!==null){if(a.callback=null,a=n,typeof u!="function")throw Error(o(191,u));u.call(a)}}}var Wu=new r.Component().refs;function js(e,t,n,a){t=e.memoizedState,n=n(a,t),n=n==null?t:s({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ls={isMounted:function(e){return(e=e._reactInternals)?Xt(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var a=Ye(),u=Ft(e),h=It(a,u);h.payload=t,n!=null&&(h.callback=n),zt(e,h),Ut(e,u,a)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=Ye(),u=Ft(e),h=It(a,u);h.tag=1,h.payload=t,n!=null&&(h.callback=n),zt(e,h),Ut(e,u,a)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ye(),a=Ft(e),u=It(n,a);u.tag=2,t!=null&&(u.callback=t),zt(e,u),Ut(e,a,n)}};function Qu(e,t,n,a,u,h,g){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,h,g):t.prototype&&t.prototype.isPureReactComponent?!pr(n,a)||!pr(u,h):!0}function Yu(e,t,n){var a=!1,u=Ot,h=t.contextType;return typeof h=="object"&&h!==null?h=Xe(h):(u=Be(t)?Gt:ze.current,a=t.contextTypes,h=(a=a!=null)?On(e,u):Ot),t=new t(n,h),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Ls,e.stateNode=t,t._reactInternals=e,a&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=u,e.__reactInternalMemoizedMaskedChildContext=h),t}function Ju(e,t,n,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&Ls.enqueueReplaceState(t,t.state,null)}function Ao(e,t,n,a){var u=e.stateNode;u.props=n,u.state=e.memoizedState,u.refs=Wu,No(e);var h=t.contextType;typeof h=="object"&&h!==null?u.context=Xe(h):(h=Be(t)?Gt:ze.current,u.context=On(e,h)),xr(e,n,u,a),u.state=e.memoizedState,h=t.getDerivedStateFromProps,typeof h=="function"&&(js(e,t,h,n),u.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(t=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),t!==u.state&&Ls.enqueueReplaceState(u,u.state,null),xr(e,n,u,a),u.state=e.memoizedState),typeof u.componentDidMount=="function"&&(e.flags|=4)}var Os=Array.isArray;function Sr(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(o(309));var a=n.stateNode}if(!a)throw Error(o(147,e));var u=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===u?t.ref:(t=function(h){var g=a.refs;g===Wu&&(g=a.refs={}),h===null?delete g[u]:g[u]=h},t._stringRef=u,t)}if(typeof e!="string")throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function Rs(e,t){if(e.type!=="textarea")throw Error(o(31,Object.prototype.toString.call(t)==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function Xu(e){function t(P,k){if(e){var $=P.lastEffect;$!==null?($.nextEffect=k,P.lastEffect=k):P.firstEffect=P.lastEffect=k,k.nextEffect=null,k.flags=8}}function n(P,k){if(!e)return null;for(;k!==null;)t(P,k),k=k.sibling;return null}function a(P,k){for(P=new Map;k!==null;)k.key!==null?P.set(k.key,k):P.set(k.index,k),k=k.sibling;return P}function u(P,k){return P=Vt(P,k),P.index=0,P.sibling=null,P}function h(P,k,$){return P.index=$,e?($=P.alternate,$!==null?($=$.index,$<k?(P.flags=2,k):$):(P.flags=2,k)):k}function g(P){return e&&P.alternate===null&&(P.flags=2),P}function y(P,k,$,j){return k===null||k.tag!==6?(k=hl($,P.mode,j),k.return=P,k):(k=u(k,$),k.return=P,k)}function S(P,k,$,j){return k!==null&&k.elementType===$.type?(j=u(k,$.props),j.ref=Sr(P,k,$),j.return=P,j):(j=Gs($.type,$.key,$.props,null,P.mode,j),j.ref=Sr(P,k,$),j.return=P,j)}function A(P,k,$,j){return k===null||k.tag!==4||k.stateNode.containerInfo!==$.containerInfo||k.stateNode.implementation!==$.implementation?(k=dl($,P.mode,j),k.return=P,k):(k=u(k,$.children||[]),k.return=P,k)}function W(P,k,$,j,R){return k===null||k.tag!==7?(k=Hn($,P.mode,j,R),k.return=P,k):(k=u(k,$),k.return=P,k)}function ae(P,k,$){if(typeof k=="string"||typeof k=="number")return k=hl(""+k,P.mode,$),k.return=P,k;if(typeof k=="object"&&k!==null){switch(k.$$typeof){case H:return $=Gs(k.type,k.key,k.props,null,P.mode,$),$.ref=Sr(P,null,k),$.return=P,$;case B:return k=dl(k,P.mode,$),k.return=P,k}if(Os(k)||Q(k))return k=Hn(k,P.mode,$,null),k.return=P,k;Rs(P,k)}return null}function I(P,k,$,j){var R=k!==null?k.key:null;if(typeof $=="string"||typeof $=="number")return R!==null?null:y(P,k,""+$,j);if(typeof $=="object"&&$!==null){switch($.$$typeof){case H:return $.key===R?$.type===V?W(P,k,$.props.children,j,R):S(P,k,$,j):null;case B:return $.key===R?A(P,k,$,j):null}if(Os($)||Q($))return R!==null?null:W(P,k,$,j,null);Rs(P,$)}return null}function ee(P,k,$,j,R){if(typeof j=="string"||typeof j=="number")return P=P.get($)||null,y(k,P,""+j,R);if(typeof j=="object"&&j!==null){switch(j.$$typeof){case H:return P=P.get(j.key===null?$:j.key)||null,j.type===V?W(k,P,j.props.children,R,j.key):S(k,P,j,R);case B:return P=P.get(j.key===null?$:j.key)||null,A(k,P,j,R)}if(Os(j)||Q(j))return P=P.get($)||null,W(k,P,j,R,null);Rs(k,j)}return null}function oe(P,k,$,j){for(var R=null,ue=null,X=k,ce=k=0,me=null;X!==null&&ce<$.length;ce++){X.index>ce?(me=X,X=null):me=X.sibling;var de=I(P,X,$[ce],j);if(de===null){X===null&&(X=me);break}e&&X&&de.alternate===null&&t(P,X),k=h(de,k,ce),ue===null?R=de:ue.sibling=de,ue=de,X=me}if(ce===$.length)return n(P,X),R;if(X===null){for(;ce<$.length;ce++)X=ae(P,$[ce],j),X!==null&&(k=h(X,k,ce),ue===null?R=X:ue.sibling=X,ue=X);return R}for(X=a(P,X);ce<$.length;ce++)me=ee(X,P,ce,$[ce],j),me!==null&&(e&&me.alternate!==null&&X.delete(me.key===null?ce:me.key),k=h(me,k,ce),ue===null?R=me:ue.sibling=me,ue=me);return e&&X.forEach(function(Ht){return t(P,Ht)}),R}function re(P,k,$,j){var R=Q($);if(typeof R!="function")throw Error(o(150));if($=R.call($),$==null)throw Error(o(151));for(var ue=R=null,X=k,ce=k=0,me=null,de=$.next();X!==null&&!de.done;ce++,de=$.next()){X.index>ce?(me=X,X=null):me=X.sibling;var Ht=I(P,X,de.value,j);if(Ht===null){X===null&&(X=me);break}e&&X&&Ht.alternate===null&&t(P,X),k=h(Ht,k,ce),ue===null?R=Ht:ue.sibling=Ht,ue=Ht,X=me}if(de.done)return n(P,X),R;if(X===null){for(;!de.done;ce++,de=$.next())de=ae(P,de.value,j),de!==null&&(k=h(de,k,ce),ue===null?R=de:ue.sibling=de,ue=de);return R}for(X=a(P,X);!de.done;ce++,de=$.next())de=ee(X,P,ce,de.value,j),de!==null&&(e&&de.alternate!==null&&X.delete(de.key===null?ce:de.key),k=h(de,k,ce),ue===null?R=de:ue.sibling=de,ue=de);return e&&X.forEach(function(Ig){return t(P,Ig)}),R}return function(P,k,$,j){var R=typeof $=="object"&&$!==null&&$.type===V&&$.key===null;R&&($=$.props.children);var ue=typeof $=="object"&&$!==null;if(ue)switch($.$$typeof){case H:e:{for(ue=$.key,R=k;R!==null;){if(R.key===ue){switch(R.tag){case 7:if($.type===V){n(P,R.sibling),k=u(R,$.props.children),k.return=P,P=k;break e}break;default:if(R.elementType===$.type){n(P,R.sibling),k=u(R,$.props),k.ref=Sr(P,R,$),k.return=P,P=k;break e}}n(P,R);break}else t(P,R);R=R.sibling}$.type===V?(k=Hn($.props.children,P.mode,j,$.key),k.return=P,P=k):(j=Gs($.type,$.key,$.props,null,P.mode,j),j.ref=Sr(P,k,$),j.return=P,P=j)}return g(P);case B:e:{for(R=$.key;k!==null;){if(k.key===R)if(k.tag===4&&k.stateNode.containerInfo===$.containerInfo&&k.stateNode.implementation===$.implementation){n(P,k.sibling),k=u(k,$.children||[]),k.return=P,P=k;break e}else{n(P,k);break}else t(P,k);k=k.sibling}k=dl($,P.mode,j),k.return=P,P=k}return g(P)}if(typeof $=="string"||typeof $=="number")return $=""+$,k!==null&&k.tag===6?(n(P,k.sibling),k=u(k,$),k.return=P,P=k):(n(P,k),k=hl($,P.mode,j),k.return=P,P=k),g(P);if(Os($))return oe(P,k,$,j);if(Q($))return re(P,k,$,j);if(ue&&Rs(P,$),typeof $>"u"&&!R)switch(P.tag){case 1:case 22:case 0:case 11:case 15:throw Error(o(152,vn(P.type)||"Component"))}return n(P,k)}}var Is=Xu(!0),Zu=Xu(!1),kr={},ct=Lt(kr),Cr=Lt(kr),$r=Lt(kr);function tn(e){if(e===kr)throw Error(o(174));return e}function jo(e,t){switch(Pe($r,t),Pe(Cr,e),Pe(ct,kr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ii(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ii(t,e)}_e(ct),Pe(ct,t)}function Mn(){_e(ct),_e(Cr),_e($r)}function Gu(e){tn($r.current);var t=tn(ct.current),n=Ii(t,e.type);t!==n&&(Pe(Cr,e),Pe(ct,n))}function Lo(e){Cr.current===e&&(_e(ct),_e(Cr))}var Ee=Lt(0);function zs(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)!==0)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 yt=null,Mt=null,ft=!1;function qu(e,t){var n=qe(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 ec(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 Oo(e){if(ft){var t=Mt;if(t){var n=t;if(!ec(e,t)){if(t=Nn(n.nextSibling),!t||!ec(e,t)){e.flags=e.flags&-1025|2,ft=!1,yt=e;return}qu(yt,n)}yt=e,Mt=Nn(t.firstChild)}else e.flags=e.flags&-1025|2,ft=!1,yt=e}}function tc(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;yt=e}function Ms(e){if(e!==yt)return!1;if(!ft)return tc(e),ft=!0,!1;var t=e.type;if(e.tag!==5||t!=="head"&&t!=="body"&&!yo(t,e.memoizedProps))for(t=Mt;t;)qu(e,t),t=Nn(t.nextSibling);if(tc(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Mt=Nn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Mt=null}}else Mt=yt?Nn(e.stateNode.nextSibling):null;return!0}function Ro(){Mt=yt=null,ft=!1}var Dn=[];function Io(){for(var e=0;e<Dn.length;e++)Dn[e]._workInProgressVersionPrimary=null;Dn.length=0}var _r=Z.ReactCurrentDispatcher,Ze=Z.ReactCurrentBatchConfig,Pr=0,Ne=null,De=null,Le=null,Ds=!1,Er=!1;function Ve(){throw Error(o(321))}function zo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Je(e[n],t[n]))return!1;return!0}function Mo(e,t,n,a,u,h){if(Pr=h,Ne=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,_r.current=e===null||e.memoizedState===null?og:lg,e=n(a,u),Er){h=0;do{if(Er=!1,!(25>h))throw Error(o(301));h+=1,Le=De=null,t.updateQueue=null,_r.current=ag,e=n(a,u)}while(Er)}if(_r.current=Bs,t=De!==null&&De.next!==null,Pr=0,Le=De=Ne=null,Ds=!1,t)throw Error(o(300));return e}function nn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Le===null?Ne.memoizedState=Le=e:Le=Le.next=e,Le}function rn(){if(De===null){var e=Ne.alternate;e=e!==null?e.memoizedState:null}else e=De.next;var t=Le===null?Ne.memoizedState:Le.next;if(t!==null)Le=t,De=e;else{if(e===null)throw Error(o(310));De=e,e={memoizedState:De.memoizedState,baseState:De.baseState,baseQueue:De.baseQueue,queue:De.queue,next:null},Le===null?Ne.memoizedState=Le=e:Le=Le.next=e}return Le}function ht(e,t){return typeof t=="function"?t(e):t}function Tr(e){var t=rn(),n=t.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=e;var a=De,u=a.baseQueue,h=n.pending;if(h!==null){if(u!==null){var g=u.next;u.next=h.next,h.next=g}a.baseQueue=u=h,n.pending=null}if(u!==null){u=u.next,a=a.baseState;var y=g=h=null,S=u;do{var A=S.lane;if((Pr&A)===A)y!==null&&(y=y.next={lane:0,action:S.action,eagerReducer:S.eagerReducer,eagerState:S.eagerState,next:null}),a=S.eagerReducer===e?S.eagerState:e(a,S.action);else{var W={lane:A,action:S.action,eagerReducer:S.eagerReducer,eagerState:S.eagerState,next:null};y===null?(g=y=W,h=a):y=y.next=W,Ne.lanes|=A,Lr|=A}S=S.next}while(S!==null&&S!==u);y===null?h=a:y.next=g,Je(a,t.memoizedState)||(it=!0),t.memoizedState=a,t.baseState=h,t.baseQueue=y,n.lastRenderedState=a}return[t.memoizedState,n.dispatch]}function Nr(e){var t=rn(),n=t.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=e;var a=n.dispatch,u=n.pending,h=t.memoizedState;if(u!==null){n.pending=null;var g=u=u.next;do h=e(h,g.action),g=g.next;while(g!==u);Je(h,t.memoizedState)||(it=!0),t.memoizedState=h,t.baseQueue===null&&(t.baseState=h),n.lastRenderedState=h}return[h,a]}function nc(e,t,n){var a=t._getVersion;a=a(t._source);var u=t._workInProgressVersionPrimary;if(u!==null?e=u===a:(e=e.mutableReadLanes,(e=(Pr&e)===e)&&(t._workInProgressVersionPrimary=a,Dn.push(t))),e)return n(t._source);throw Dn.push(t),Error(o(350))}function rc(e,t,n,a){var u=Ue;if(u===null)throw Error(o(349));var h=t._getVersion,g=h(t._source),y=_r.current,S=y.useState(function(){return nc(u,t,n)}),A=S[1],W=S[0];S=Le;var ae=e.memoizedState,I=ae.refs,ee=I.getSnapshot,oe=ae.source;ae=ae.subscribe;var re=Ne;return e.memoizedState={refs:I,source:t,subscribe:a},y.useEffect(function(){I.getSnapshot=n,I.setSnapshot=A;var P=h(t._source);if(!Je(g,P)){P=n(t._source),Je(W,P)||(A(P),P=Ft(re),u.mutableReadLanes|=P&u.pendingLanes),P=u.mutableReadLanes,u.entangledLanes|=P;for(var k=u.entanglements,$=P;0<$;){var j=31-Nt($),R=1<<j;k[j]|=P,$&=~R}}},[n,t,a]),y.useEffect(function(){return a(t._source,function(){var P=I.getSnapshot,k=I.setSnapshot;try{k(P(t._source));var $=Ft(re);u.mutableReadLanes|=$&u.pendingLanes}catch(j){k(function(){throw j})}})},[t,a]),Je(ee,n)&&Je(oe,t)&&Je(ae,a)||(e={pending:null,dispatch:null,lastRenderedReducer:ht,lastRenderedState:W},e.dispatch=A=bo.bind(null,Ne,e),S.queue=e,S.baseQueue=null,W=nc(u,t,n),S.memoizedState=S.baseState=W),W}function sc(e,t,n){var a=rn();return rc(a,e,t,n)}function Ar(e){var t=nn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e=t.queue={pending:null,dispatch:null,lastRenderedReducer:ht,lastRenderedState:e},e=e.dispatch=bo.bind(null,Ne,e),[t.memoizedState,e]}function Fs(e,t,n,a){return e={tag:e,create:t,destroy:n,deps:a,next:null},t=Ne.updateQueue,t===null?(t={lastEffect:null},Ne.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(a=n.next,n.next=e,e.next=a,t.lastEffect=e)),e}function ic(e){var t=nn();return e={current:e},t.memoizedState=e}function Us(){return rn().memoizedState}function Do(e,t,n,a){var u=nn();Ne.flags|=e,u.memoizedState=Fs(1|t,n,void 0,a===void 0?null:a)}function Fo(e,t,n,a){var u=rn();a=a===void 0?null:a;var h=void 0;if(De!==null){var g=De.memoizedState;if(h=g.destroy,a!==null&&zo(a,g.deps)){Fs(t,n,h,a);return}}Ne.flags|=e,u.memoizedState=Fs(1|t,n,h,a)}function oc(e,t){return Do(516,4,e,t)}function bs(e,t){return Fo(516,4,e,t)}function lc(e,t){return Fo(4,2,e,t)}function ac(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 uc(e,t,n){return n=n!=null?n.concat([e]):null,Fo(4,2,ac.bind(null,t,e),n)}function Uo(){}function cc(e,t){var n=rn();t=t===void 0?null:t;var a=n.memoizedState;return a!==null&&t!==null&&zo(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function fc(e,t){var n=rn();t=t===void 0?null:t;var a=n.memoizedState;return a!==null&&t!==null&&zo(t,a[1])?a[0]:(e=e(),n.memoizedState=[e,t],e)}function ig(e,t){var n=Rn();en(98>n?98:n,function(){e(!0)}),en(97<n?97:n,function(){var a=Ze.transition;Ze.transition=1;try{e(!1),t()}finally{Ze.transition=a}})}function bo(e,t,n){var a=Ye(),u=Ft(e),h={lane:u,action:n,eagerReducer:null,eagerState:null,next:null},g=t.pending;if(g===null?h.next=h:(h.next=g.next,g.next=h),t.pending=h,g=e.alternate,e===Ne||g!==null&&g===Ne)Er=Ds=!0;else{if(e.lanes===0&&(g===null||g.lanes===0)&&(g=t.lastRenderedReducer,g!==null))try{var y=t.lastRenderedState,S=g(y,n);if(h.eagerReducer=g,h.eagerState=S,Je(S,y))return}catch{}Ut(e,u,a)}}var Bs={readContext:Xe,useCallback:Ve,useContext:Ve,useEffect:Ve,useImperativeHandle:Ve,useLayoutEffect:Ve,useMemo:Ve,useReducer:Ve,useRef:Ve,useState:Ve,useDebugValue:Ve,useDeferredValue:Ve,useTransition:Ve,useMutableSource:Ve,useOpaqueIdentifier:Ve,unstable_isNewReconciler:!1},og={readContext:Xe,useCallback:function(e,t){return nn().memoizedState=[e,t===void 0?null:t],e},useContext:Xe,useEffect:oc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Do(4,2,ac.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Do(4,2,e,t)},useMemo:function(e,t){var n=nn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var a=nn();return t=n!==void 0?n(t):t,a.memoizedState=a.baseState=t,e=a.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},e=e.dispatch=bo.bind(null,Ne,e),[a.memoizedState,e]},useRef:ic,useState:Ar,useDebugValue:Uo,useDeferredValue:function(e){var t=Ar(e),n=t[0],a=t[1];return oc(function(){var u=Ze.transition;Ze.transition=1;try{a(e)}finally{Ze.transition=u}},[e]),n},useTransition:function(){var e=Ar(!1),t=e[0];return e=ig.bind(null,e[1]),ic(e),[e,t]},useMutableSource:function(e,t,n){var a=nn();return a.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},rc(a,e,t,n)},useOpaqueIdentifier:function(){if(ft){var e=!1,t=qp(function(){throw e||(e=!0,n("r:"+(wo++).toString(36))),Error(o(355))}),n=Ar(t)[1];return(Ne.mode&2)===0&&(Ne.flags|=516,Fs(5,function(){n("r:"+(wo++).toString(36))},void 0,null)),t}return t="r:"+(wo++).toString(36),Ar(t),t},unstable_isNewReconciler:!1},lg={readContext:Xe,useCallback:cc,useContext:Xe,useEffect:bs,useImperativeHandle:uc,useLayoutEffect:lc,useMemo:fc,useReducer:Tr,useRef:Us,useState:function(){return Tr(ht)},useDebugValue:Uo,useDeferredValue:function(e){var t=Tr(ht),n=t[0],a=t[1];return bs(function(){var u=Ze.transition;Ze.transition=1;try{a(e)}finally{Ze.transition=u}},[e]),n},useTransition:function(){var e=Tr(ht)[0];return[Us().current,e]},useMutableSource:sc,useOpaqueIdentifier:function(){return Tr(ht)[0]},unstable_isNewReconciler:!1},ag={readContext:Xe,useCallback:cc,useContext:Xe,useEffect:bs,useImperativeHandle:uc,useLayoutEffect:lc,useMemo:fc,useReducer:Nr,useRef:Us,useState:function(){return Nr(ht)},useDebugValue:Uo,useDeferredValue:function(e){var t=Nr(ht),n=t[0],a=t[1];return bs(function(){var u=Ze.transition;Ze.transition=1;try{a(e)}finally{Ze.transition=u}},[e]),n},useTransition:function(){var e=Nr(ht)[0];return[Us().current,e]},useMutableSource:sc,useOpaqueIdentifier:function(){return Nr(ht)[0]},unstable_isNewReconciler:!1},ug=Z.ReactCurrentOwner,it=!1;function He(e,t,n,a){t.child=e===null?Zu(t,null,n,a):Is(t,e.child,n,a)}function hc(e,t,n,a,u){n=n.render;var h=t.ref;return zn(t,u),a=Mo(e,t,n,a,h,u),e!==null&&!it?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~u,vt(e,t,u)):(t.flags|=1,He(e,t,a,u),t.child)}function dc(e,t,n,a,u,h){if(e===null){var g=n.type;return typeof g=="function"&&!cl(g)&&g.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=g,pc(e,t,g,a,u,h)):(e=Gs(n.type,null,a,t,t.mode,h),e.ref=t.ref,e.return=t,t.child=e)}return g=e.child,(u&h)===0&&(u=g.memoizedProps,n=n.compare,n=n!==null?n:pr,n(u,a)&&e.ref===t.ref)?vt(e,t,h):(t.flags|=1,e=Vt(g,a),e.ref=t.ref,e.return=t,t.child=e)}function pc(e,t,n,a,u,h){if(e!==null&&pr(e.memoizedProps,a)&&e.ref===t.ref)if(it=!1,(h&u)!==0)(e.flags&16384)!==0&&(it=!0);else return t.lanes=e.lanes,vt(e,t,h);return Vo(e,t,n,a,h)}function Bo(e,t,n){var a=t.pendingProps,u=a.children,h=e!==null?e.memoizedState:null;if(a.mode==="hidden"||a.mode==="unstable-defer-without-hiding")if((t.mode&4)===0)t.memoizedState={baseLanes:0},Zs(t,n);else if((n&1073741824)!==0)t.memoizedState={baseLanes:0},Zs(t,h!==null?h.baseLanes:n);else return e=h!==null?h.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},Zs(t,e),null;else h!==null?(a=h.baseLanes|n,t.memoizedState=null):a=n,Zs(t,a);return He(e,t,u,n),t.child}function gc(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=128)}function Vo(e,t,n,a,u){var h=Be(n)?Gt:ze.current;return h=On(t,h),zn(t,u),n=Mo(e,t,n,a,h,u),e!==null&&!it?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~u,vt(e,t,u)):(t.flags|=1,He(e,t,n,u),t.child)}function mc(e,t,n,a,u){if(Be(n)){var h=!0;_s(t)}else h=!1;if(zn(t,u),t.stateNode===null)e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),Yu(t,n,a),Ao(t,n,a,u),a=!0;else if(e===null){var g=t.stateNode,y=t.memoizedProps;g.props=y;var S=g.context,A=n.contextType;typeof A=="object"&&A!==null?A=Xe(A):(A=Be(n)?Gt:ze.current,A=On(t,A));var W=n.getDerivedStateFromProps,ae=typeof W=="function"||typeof g.getSnapshotBeforeUpdate=="function";ae||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(y!==a||S!==A)&&Ju(t,g,a,A),Rt=!1;var I=t.memoizedState;g.state=I,xr(t,a,g,u),S=t.memoizedState,y!==a||I!==S||be.current||Rt?(typeof W=="function"&&(js(t,n,W,a),S=t.memoizedState),(y=Rt||Qu(t,n,y,a,I,S,A))?(ae||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount()),typeof g.componentDidMount=="function"&&(t.flags|=4)):(typeof g.componentDidMount=="function"&&(t.flags|=4),t.memoizedProps=a,t.memoizedState=S),g.props=a,g.state=S,g.context=A,a=y):(typeof g.componentDidMount=="function"&&(t.flags|=4),a=!1)}else{g=t.stateNode,Vu(e,t),y=t.memoizedProps,A=t.type===t.elementType?y:st(t.type,y),g.props=A,ae=t.pendingProps,I=g.context,S=n.contextType,typeof S=="object"&&S!==null?S=Xe(S):(S=Be(n)?Gt:ze.current,S=On(t,S));var ee=n.getDerivedStateFromProps;(W=typeof ee=="function"||typeof g.getSnapshotBeforeUpdate=="function")||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(y!==ae||I!==S)&&Ju(t,g,a,S),Rt=!1,I=t.memoizedState,g.state=I,xr(t,a,g,u);var oe=t.memoizedState;y!==ae||I!==oe||be.current||Rt?(typeof ee=="function"&&(js(t,n,ee,a),oe=t.memoizedState),(A=Rt||Qu(t,n,A,a,I,oe,S))?(W||typeof g.UNSAFE_componentWillUpdate!="function"&&typeof g.componentWillUpdate!="function"||(typeof g.componentWillUpdate=="function"&&g.componentWillUpdate(a,oe,S),typeof g.UNSAFE_componentWillUpdate=="function"&&g.UNSAFE_componentWillUpdate(a,oe,S)),typeof g.componentDidUpdate=="function"&&(t.flags|=4),typeof g.getSnapshotBeforeUpdate=="function"&&(t.flags|=256)):(typeof g.componentDidUpdate!="function"||y===e.memoizedProps&&I===e.memoizedState||(t.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&I===e.memoizedState||(t.flags|=256),t.memoizedProps=a,t.memoizedState=oe),g.props=a,g.state=oe,g.context=S,a=A):(typeof g.componentDidUpdate!="function"||y===e.memoizedProps&&I===e.memoizedState||(t.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&I===e.memoizedState||(t.flags|=256),a=!1)}return Ho(e,t,n,a,h,u)}function Ho(e,t,n,a,u,h){gc(e,t);var g=(t.flags&64)!==0;if(!a&&!g)return u&&Ou(t,n,!1),vt(e,t,h);a=t.stateNode,ug.current=t;var y=g&&typeof n.getDerivedStateFromError!="function"?null:a.render();return t.flags|=1,e!==null&&g?(t.child=Is(t,e.child,null,h),t.child=Is(t,null,y,h)):He(e,t,y,h),t.memoizedState=a.state,u&&Ou(t,n,!0),t.child}function yc(e){var t=e.stateNode;t.pendingContext?ju(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ju(e,t.context,!1),jo(e,t.containerInfo)}var Vs={dehydrated:null,retryLane:0};function vc(e,t,n){var a=t.pendingProps,u=Ee.current,h=!1,g;return(g=(t.flags&64)!==0)||(g=e!==null&&e.memoizedState===null?!1:(u&2)!==0),g?(h=!0,t.flags&=-65):e!==null&&e.memoizedState===null||a.fallback===void 0||a.unstable_avoidThisFallback===!0||(u|=1),Pe(Ee,u&1),e===null?(a.fallback!==void 0&&Oo(t),e=a.children,u=a.fallback,h?(e=wc(t,e,u,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Vs,e):typeof a.unstable_expectedLoadTime=="number"?(e=wc(t,e,u,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Vs,t.lanes=33554432,e):(n=fl({mode:"visible",children:e},t.mode,n,null),n.return=t,t.child=n)):e.memoizedState!==null?h?(a=Sc(e,t,a.children,a.fallback,n),h=t.child,u=e.child.memoizedState,h.memoizedState=u===null?{baseLanes:n}:{baseLanes:u.baseLanes|n},h.childLanes=e.childLanes&~n,t.memoizedState=Vs,a):(n=xc(e,t,a.children,n),t.memoizedState=null,n):h?(a=Sc(e,t,a.children,a.fallback,n),h=t.child,u=e.child.memoizedState,h.memoizedState=u===null?{baseLanes:n}:{baseLanes:u.baseLanes|n},h.childLanes=e.childLanes&~n,t.memoizedState=Vs,a):(n=xc(e,t,a.children,n),t.memoizedState=null,n)}function wc(e,t,n,a){var u=e.mode,h=e.child;return t={mode:"hidden",children:t},(u&2)===0&&h!==null?(h.childLanes=0,h.pendingProps=t):h=fl(t,u,0,null),n=Hn(n,u,a,null),h.return=e,n.return=e,h.sibling=n,e.child=h,n}function xc(e,t,n,a){var u=e.child;return e=u.sibling,n=Vt(u,{mode:"visible",children:n}),(t.mode&2)===0&&(n.lanes=a),n.return=t,n.sibling=null,e!==null&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function Sc(e,t,n,a,u){var h=t.mode,g=e.child;e=g.sibling;var y={mode:"hidden",children:n};return(h&2)===0&&t.child!==g?(n=t.child,n.childLanes=0,n.pendingProps=y,g=n.lastEffect,g!==null?(t.firstEffect=n.firstEffect,t.lastEffect=g,g.nextEffect=null):t.firstEffect=t.lastEffect=null):n=Vt(g,y),e!==null?a=Vt(e,a):(a=Hn(a,h,u,null),a.flags|=2),a.return=t,n.return=t,n.sibling=a,t.child=n,a}function kc(e,t){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),Bu(e.return,t)}function Ko(e,t,n,a,u,h){var g=e.memoizedState;g===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:u,lastEffect:h}:(g.isBackwards=t,g.rendering=null,g.renderingStartTime=0,g.last=a,g.tail=n,g.tailMode=u,g.lastEffect=h)}function Cc(e,t,n){var a=t.pendingProps,u=a.revealOrder,h=a.tail;if(He(e,t,a.children,n),a=Ee.current,(a&2)!==0)a=a&1|2,t.flags|=64;else{if(e!==null&&(e.flags&64)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&kc(e,n);else if(e.tag===19)kc(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}a&=1}if(Pe(Ee,a),(t.mode&2)===0)t.memoizedState=null;else switch(u){case"forwards":for(n=t.child,u=null;n!==null;)e=n.alternate,e!==null&&zs(e)===null&&(u=n),n=n.sibling;n=u,n===null?(u=t.child,t.child=null):(u=n.sibling,n.sibling=null),Ko(t,!1,u,n,h,t.lastEffect);break;case"backwards":for(n=null,u=t.child,t.child=null;u!==null;){if(e=u.alternate,e!==null&&zs(e)===null){t.child=u;break}e=u.sibling,u.sibling=n,n=u,u=e}Ko(t,!0,n,null,h,t.lastEffect);break;case"together":Ko(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function vt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Lr|=t.lanes,(n&t.childLanes)!==0){if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,n=Vt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Vt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}return null}var $c,Wo,_c,Pc;$c=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}},Wo=function(){},_c=function(e,t,n,a){var u=e.memoizedProps;if(u!==a){e=t.stateNode,tn(ct.current);var h=null;switch(n){case"input":u=Ni(e,u),a=Ni(e,a),h=[];break;case"option":u=Li(e,u),a=Li(e,a),h=[];break;case"select":u=s({},u,{value:void 0}),a=s({},a,{value:void 0}),h=[];break;case"textarea":u=Oi(e,u),a=Oi(e,a),h=[];break;default:typeof u.onClick!="function"&&typeof a.onClick=="function"&&(e.onclick=xs)}zi(n,a);var g;n=null;for(A in u)if(!a.hasOwnProperty(A)&&u.hasOwnProperty(A)&&u[A]!=null)if(A==="style"){var y=u[A];for(g in y)y.hasOwnProperty(g)&&(n||(n={}),n[g]="")}else A!=="dangerouslySetInnerHTML"&&A!=="children"&&A!=="suppressContentEditableWarning"&&A!=="suppressHydrationWarning"&&A!=="autoFocus"&&(c.hasOwnProperty(A)?h||(h=[]):(h=h||[]).push(A,null));for(A in a){var S=a[A];if(y=u?.[A],a.hasOwnProperty(A)&&S!==y&&(S!=null||y!=null))if(A==="style")if(y){for(g in y)!y.hasOwnProperty(g)||S&&S.hasOwnProperty(g)||(n||(n={}),n[g]="");for(g in S)S.hasOwnProperty(g)&&y[g]!==S[g]&&(n||(n={}),n[g]=S[g])}else n||(h||(h=[]),h.push(A,n)),n=S;else A==="dangerouslySetInnerHTML"?(S=S?S.__html:void 0,y=y?y.__html:void 0,S!=null&&y!==S&&(h=h||[]).push(A,S)):A==="children"?typeof S!="string"&&typeof S!="number"||(h=h||[]).push(A,""+S):A!=="suppressContentEditableWarning"&&A!=="suppressHydrationWarning"&&(c.hasOwnProperty(A)?(S!=null&&A==="onScroll"&&$e("scroll",e),h||y===S||(h=[])):typeof S=="object"&&S!==null&&S.$$typeof===te?S.toString():(h=h||[]).push(A,S))}n&&(h=h||[]).push("style",n);var A=h;(t.updateQueue=A)&&(t.flags|=4)}},Pc=function(e,t,n,a){n!==a&&(t.flags|=4)};function jr(e,t){if(!ft)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 a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function cg(e,t,n){var a=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 Be(t.type)&&$s(),null;case 3:return Mn(),_e(be),_e(ze),Io(),a=t.stateNode,a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Ms(t)?t.flags|=4:a.hydrate||(t.flags|=256)),Wo(t),null;case 5:Lo(t);var u=tn($r.current);if(n=t.type,e!==null&&t.stateNode!=null)_c(e,t,n,a,u),e.ref!==t.ref&&(t.flags|=128);else{if(!a){if(t.stateNode===null)throw Error(o(166));return null}if(e=tn(ct.current),Ms(t)){a=t.stateNode,n=t.type;var h=t.memoizedProps;switch(a[jt]=t,a[ks]=h,n){case"dialog":$e("cancel",a),$e("close",a);break;case"iframe":case"object":case"embed":$e("load",a);break;case"video":case"audio":for(e=0;e<mr.length;e++)$e(mr[e],a);break;case"source":$e("error",a);break;case"img":case"image":case"link":$e("error",a),$e("load",a);break;case"details":$e("toggle",a);break;case"input":ya(a,h),$e("invalid",a);break;case"select":a._wrapperState={wasMultiple:!!h.multiple},$e("invalid",a);break;case"textarea":xa(a,h),$e("invalid",a)}zi(n,h),e=null;for(var g in h)h.hasOwnProperty(g)&&(u=h[g],g==="children"?typeof u=="string"?a.textContent!==u&&(e=["children",u]):typeof u=="number"&&a.textContent!==""+u&&(e=["children",""+u]):c.hasOwnProperty(g)&&u!=null&&g==="onScroll"&&$e("scroll",a));switch(n){case"input":rs(a),wa(a,h,!0);break;case"textarea":rs(a),ka(a);break;case"select":case"option":break;default:typeof h.onClick=="function"&&(a.onclick=xs)}a=e,t.updateQueue=a,a!==null&&(t.flags|=4)}else{switch(g=u.nodeType===9?u:u.ownerDocument,e===Ri.html&&(e=Ca(n)),e===Ri.html?n==="script"?(e=g.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof a.is=="string"?e=g.createElement(n,{is:a.is}):(e=g.createElement(n),n==="select"&&(g=e,a.multiple?g.multiple=!0:a.size&&(g.size=a.size))):e=g.createElementNS(e,n),e[jt]=t,e[ks]=a,$c(e,t,!1,!1),t.stateNode=e,g=Mi(n,a),n){case"dialog":$e("cancel",e),$e("close",e),u=a;break;case"iframe":case"object":case"embed":$e("load",e),u=a;break;case"video":case"audio":for(u=0;u<mr.length;u++)$e(mr[u],e);u=a;break;case"source":$e("error",e),u=a;break;case"img":case"image":case"link":$e("error",e),$e("load",e),u=a;break;case"details":$e("toggle",e),u=a;break;case"input":ya(e,a),u=Ni(e,a),$e("invalid",e);break;case"option":u=Li(e,a);break;case"select":e._wrapperState={wasMultiple:!!a.multiple},u=s({},a,{value:void 0}),$e("invalid",e);break;case"textarea":xa(e,a),u=Oi(e,a),$e("invalid",e);break;default:u=a}zi(n,u);var y=u;for(h in y)if(y.hasOwnProperty(h)){var S=y[h];h==="style"?Pa(e,S):h==="dangerouslySetInnerHTML"?(S=S?S.__html:void 0,S!=null&&$a(e,S)):h==="children"?typeof S=="string"?(n!=="textarea"||S!=="")&&Gn(e,S):typeof S=="number"&&Gn(e,""+S):h!=="suppressContentEditableWarning"&&h!=="suppressHydrationWarning"&&h!=="autoFocus"&&(c.hasOwnProperty(h)?S!=null&&h==="onScroll"&&$e("scroll",e):S!=null&&K(e,h,S,g))}switch(n){case"input":rs(e),wa(e,a,!1);break;case"textarea":rs(e),ka(e);break;case"option":a.value!=null&&e.setAttribute("value",""+_t(a.value));break;case"select":e.multiple=!!a.multiple,h=a.value,h!=null?wn(e,!!a.multiple,h,!1):a.defaultValue!=null&&wn(e,!!a.multiple,a.defaultValue,!0);break;default:typeof u.onClick=="function"&&(e.onclick=xs)}Pu(n,a)&&(t.flags|=4)}t.ref!==null&&(t.flags|=128)}return null;case 6:if(e&&t.stateNode!=null)Pc(e,t,e.memoizedProps,a);else{if(typeof a!="string"&&t.stateNode===null)throw Error(o(166));n=tn($r.current),tn(ct.current),Ms(t)?(a=t.stateNode,n=t.memoizedProps,a[jt]=t,a.nodeValue!==n&&(t.flags|=4)):(a=(n.nodeType===9?n:n.ownerDocument).createTextNode(a),a[jt]=t,t.stateNode=a)}return null;case 13:return _e(Ee),a=t.memoizedState,(t.flags&64)!==0?(t.lanes=n,t):(a=a!==null,n=!1,e===null?t.memoizedProps.fallback!==void 0&&Ms(t):n=e.memoizedState!==null,a&&!n&&(t.mode&2)!==0&&(e===null&&t.memoizedProps.unstable_avoidThisFallback!==!0||(Ee.current&1)!==0?Oe===0&&(Oe=3):((Oe===0||Oe===3)&&(Oe=4),Ue===null||(Lr&134217727)===0&&(Un&134217727)===0||Bn(Ue,Fe))),(a||n)&&(t.flags|=4),null);case 4:return Mn(),Wo(t),e===null&&Su(t.stateNode.containerInfo),null;case 10:return To(t),null;case 17:return Be(t.type)&&$s(),null;case 19:if(_e(Ee),a=t.memoizedState,a===null)return null;if(h=(t.flags&64)!==0,g=a.rendering,g===null)if(h)jr(a,!1);else{if(Oe!==0||e!==null&&(e.flags&64)!==0)for(e=t.child;e!==null;){if(g=zs(e),g!==null){for(t.flags|=64,jr(a,!1),h=g.updateQueue,h!==null&&(t.updateQueue=h,t.flags|=4),a.lastEffect===null&&(t.firstEffect=null),t.lastEffect=a.lastEffect,a=n,n=t.child;n!==null;)h=n,e=a,h.flags&=2,h.nextEffect=null,h.firstEffect=null,h.lastEffect=null,g=h.alternate,g===null?(h.childLanes=0,h.lanes=e,h.child=null,h.memoizedProps=null,h.memoizedState=null,h.updateQueue=null,h.dependencies=null,h.stateNode=null):(h.childLanes=g.childLanes,h.lanes=g.lanes,h.child=g.child,h.memoizedProps=g.memoizedProps,h.memoizedState=g.memoizedState,h.updateQueue=g.updateQueue,h.type=g.type,e=g.dependencies,h.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Pe(Ee,Ee.current&1|2),t.child}e=e.sibling}a.tail!==null&&Me()>rl&&(t.flags|=64,h=!0,jr(a,!1),t.lanes=33554432)}else{if(!h)if(e=zs(g),e!==null){if(t.flags|=64,h=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),jr(a,!0),a.tail===null&&a.tailMode==="hidden"&&!g.alternate&&!ft)return t=t.lastEffect=a.lastEffect,t!==null&&(t.nextEffect=null),null}else 2*Me()-a.renderingStartTime>rl&&n!==1073741824&&(t.flags|=64,h=!0,jr(a,!1),t.lanes=33554432);a.isBackwards?(g.sibling=t.child,t.child=g):(n=a.last,n!==null?n.sibling=g:t.child=g,a.last=g)}return a.tail!==null?(n=a.tail,a.rendering=n,a.tail=n.sibling,a.lastEffect=t.lastEffect,a.renderingStartTime=Me(),n.sibling=null,t=Ee.current,Pe(Ee,h?t&1|2:t&1),n):null;case 23:case 24:return ul(),e!==null&&e.memoizedState!==null!=(t.memoizedState!==null)&&a.mode!=="unstable-defer-without-hiding"&&(t.flags|=4),null}throw Error(o(156,t.tag))}function fg(e){switch(e.tag){case 1:Be(e.type)&&$s();var t=e.flags;return t&4096?(e.flags=t&-4097|64,e):null;case 3:if(Mn(),_e(be),_e(ze),Io(),t=e.flags,(t&64)!==0)throw Error(o(285));return e.flags=t&-4097|64,e;case 5:return Lo(e),null;case 13:return _e(Ee),t=e.flags,t&4096?(e.flags=t&-4097|64,e):null;case 19:return _e(Ee),null;case 4:return Mn(),null;case 10:return To(e),null;case 23:case 24:return ul(),null;default:return null}}function Qo(e,t){try{var n="",a=t;do n+=Hd(a),a=a.return;while(a);var u=n}catch(h){u=`
|
|
6
|
-
Error generating stack: `+
|
|
7
|
-
`+h.stack}return{value:e,source:t,stack:u}}function Yo(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var hg=typeof WeakMap=="function"?WeakMap:Map;function Ec(e,t,n){n=It(-1,n),n.tag=3,n.payload={element:null};var a=t.value;return n.callback=function(){Ws||(Ws=!0,sl=a),Yo(e,t)},n}function Tc(e,t,n){n=It(-1,n),n.tag=3;var a=e.type.getDerivedStateFromError;if(typeof a=="function"){var u=t.value;n.payload=function(){return Yo(e,t),a(u)}}var h=e.stateNode;return h!==null&&typeof h.componentDidCatch=="function"&&(n.callback=function(){typeof a!="function"&&(dt===null?dt=new Set([this]):dt.add(this),Yo(e,t));var g=t.stack;this.componentDidCatch(t.value,{componentStack:g!==null?g:""})}),n}var dg=typeof WeakSet=="function"?WeakSet:Set;function Nc(e){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(n){Bt(e,n)}else t.current=null}function pg(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,a=e.memoizedState;e=t.stateNode,t=e.getSnapshotBeforeUpdate(t.elementType===t.type?n:st(t.type,n),a),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:t.flags&256&&vo(t.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(o(163))}function gg(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 a=e.create;e.destroy=a()}e=e.next}while(e!==t)}if(t=n.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{var u=e;a=u.next,u=u.tag,(u&4)!==0&&(u&1)!==0&&(Hc(n,e),Cg(n,e)),e=a}while(e!==t)}return;case 1:e=n.stateNode,n.flags&4&&(t===null?e.componentDidMount():(a=n.elementType===n.type?t.memoizedProps:st(n.type,t.memoizedProps),e.componentDidUpdate(a,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),t=n.updateQueue,t!==null&&Ku(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}Ku(n,t,e)}return;case 5:e=n.stateNode,t===null&&n.flags&4&&Pu(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&&Ba(n))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(o(163))}function Ac(e,t){for(var n=e;;){if(n.tag===5){var a=n.stateNode;if(t)a=a.style,typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none";else{a=n.stateNode;var u=n.memoizedProps.style;u=u!=null&&u.hasOwnProperty("display")?u.display:null,a.style.display=_a("display",u)}}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 jc(e,t){if(qt&&typeof qt.onCommitFiberUnmount=="function")try{qt.onCommitFiberUnmount(So,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 a=n,u=a.destroy;if(a=a.tag,u!==void 0)if((a&4)!==0)Hc(t,n);else{a=t;try{u()}catch(h){Bt(a,h)}}n=n.next}while(n!==e)}break;case 1:if(Nc(t),e=t.stateNode,typeof e.componentWillUnmount=="function")try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(h){Bt(t,h)}break;case 5:Nc(t);break;case 4:Ic(e,t)}}function Lc(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 Oc(e){return e.tag===5||e.tag===3||e.tag===4}function Rc(e){e:{for(var t=e.return;t!==null;){if(Oc(t))break e;t=t.return}throw Error(o(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var a=!1;break;case 3:t=t.containerInfo,a=!0;break;case 4:t=t.containerInfo,a=!0;break;default:throw Error(o(161))}n.flags&16&&(Gn(t,""),n.flags&=-17);e:t:for(n=e;;){for(;n.sibling===null;){if(n.return===null||Oc(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}}a?Jo(e,n,t):Xo(e,n,t)}function Jo(e,t,n){var a=e.tag,u=a===5||a===6;if(u)e=u?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=xs));else if(a!==4&&(e=e.child,e!==null))for(Jo(e,t,n),e=e.sibling;e!==null;)Jo(e,t,n),e=e.sibling}function Xo(e,t,n){var a=e.tag,u=a===5||a===6;if(u)e=u?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(a!==4&&(e=e.child,e!==null))for(Xo(e,t,n),e=e.sibling;e!==null;)Xo(e,t,n),e=e.sibling}function Ic(e,t){for(var n=t,a=!1,u,h;;){if(!a){a=n.return;e:for(;;){if(a===null)throw Error(o(160));switch(u=a.stateNode,a.tag){case 5:h=!1;break e;case 3:u=u.containerInfo,h=!0;break e;case 4:u=u.containerInfo,h=!0;break e}a=a.return}a=!0}if(n.tag===5||n.tag===6){e:for(var g=e,y=n,S=y;;)if(jc(g,S),S.child!==null&&S.tag!==4)S.child.return=S,S=S.child;else{if(S===y)break e;for(;S.sibling===null;){if(S.return===null||S.return===y)break e;S=S.return}S.sibling.return=S.return,S=S.sibling}h?(g=u,y=n.stateNode,g.nodeType===8?g.parentNode.removeChild(y):g.removeChild(y)):u.removeChild(n.stateNode)}else if(n.tag===4){if(n.child!==null){u=n.stateNode.containerInfo,h=!0,n.child.return=n,n=n.child;continue}}else if(jc(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&&(a=!1)}n.sibling.return=n.return,n=n.sibling}}function Zo(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 a=n=n.next;do(a.tag&3)===3&&(e=a.destroy,a.destroy=void 0,e!==void 0&&e()),a=a.next;while(a!==n)}return;case 1:return;case 5:if(n=t.stateNode,n!=null){a=t.memoizedProps;var u=e!==null?e.memoizedProps:a;e=t.type;var h=t.updateQueue;if(t.updateQueue=null,h!==null){for(n[ks]=a,e==="input"&&a.type==="radio"&&a.name!=null&&va(n,a),Mi(e,u),t=Mi(e,a),u=0;u<h.length;u+=2){var g=h[u],y=h[u+1];g==="style"?Pa(n,y):g==="dangerouslySetInnerHTML"?$a(n,y):g==="children"?Gn(n,y):K(n,g,y,t)}switch(e){case"input":Ai(n,a);break;case"textarea":Sa(n,a);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!a.multiple,h=a.value,h!=null?wn(n,!!a.multiple,h,!1):e!==!!a.multiple&&(a.defaultValue!=null?wn(n,!!a.multiple,a.defaultValue,!0):wn(n,!!a.multiple,a.multiple?[]:"",!1))}}}return;case 6:if(t.stateNode===null)throw Error(o(162));t.stateNode.nodeValue=t.memoizedProps;return;case 3:n=t.stateNode,n.hydrate&&(n.hydrate=!1,Ba(n.containerInfo));return;case 12:return;case 13:t.memoizedState!==null&&(nl=Me(),Ac(t.child,!0)),zc(t);return;case 19:zc(t);return;case 17:return;case 23:case 24:Ac(t,t.memoizedState!==null);return}throw Error(o(163))}function zc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new dg),t.forEach(function(a){var u=Pg.bind(null,e,a);n.has(a)||(n.add(a),a.then(u,u))})}}function mg(e,t){return e!==null&&(e=e.memoizedState,e===null||e.dehydrated!==null)?(t=t.memoizedState,t!==null&&t.dehydrated===null):!1}var yg=Math.ceil,Hs=Z.ReactCurrentDispatcher,Go=Z.ReactCurrentOwner,ie=0,Ue=null,Ae=null,Fe=0,sn=0,qo=Lt(0),Oe=0,Ks=null,Fn=0,Lr=0,Un=0,el=0,tl=null,nl=0,rl=1/0;function bn(){rl=Me()+500}var Y=null,Ws=!1,sl=null,dt=null,Dt=!1,Or=null,Rr=90,il=[],ol=[],wt=null,Ir=0,ll=null,Qs=-1,xt=0,Ys=0,zr=null,Js=!1;function Ye(){return(ie&48)!==0?Me():Qs!==-1?Qs:Qs=Me()}function Ft(e){if(e=e.mode,(e&2)===0)return 1;if((e&4)===0)return Rn()===99?1:2;if(xt===0&&(xt=Fn),sg.transition!==0){Ys!==0&&(Ys=tl!==null?tl.pendingLanes:0),e=xt;var t=4186112&~Ys;return t&=-t,t===0&&(e=4186112&~e,t=e&-e,t===0&&(t=8192)),t}return e=Rn(),(ie&4)!==0&&e===98?e=fs(12,xt):(e=op(e),e=fs(e,xt)),e}function Ut(e,t,n){if(50<Ir)throw Ir=0,ll=null,Error(o(185));if(e=Xs(e,t),e===null)return null;hs(e,t,n),e===Ue&&(Un|=t,Oe===4&&Bn(e,Fe));var a=Rn();t===1?(ie&8)!==0&&(ie&48)===0?al(e):(Ge(e,n),ie===0&&(bn(),ut())):((ie&4)===0||a!==98&&a!==99||(wt===null?wt=new Set([e]):wt.add(e)),Ge(e,n)),tl=e}function Xs(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 Ge(e,t){for(var n=e.callbackNode,a=e.suspendedLanes,u=e.pingedLanes,h=e.expirationTimes,g=e.pendingLanes;0<g;){var y=31-Nt(g),S=1<<y,A=h[y];if(A===-1){if((S&a)===0||(S&u)!==0){A=t,Cn(S);var W=ke;h[y]=10<=W?A+250:6<=W?A+5e3:-1}}else A<=t&&(e.expiredLanes|=S);g&=~S}if(a=ar(e,e===Ue?Fe:0),t=ke,a===0)n!==null&&(n!==_o&&Co(n),e.callbackNode=null,e.callbackPriority=0);else{if(n!==null){if(e.callbackPriority===t)return;n!==_o&&Co(n)}t===15?(n=al.bind(null,e),mt===null?(mt=[n],Es=ko(Ps,bu)):mt.push(n),n=_o):t===14?n=wr(99,al.bind(null,e)):(n=lp(t),n=wr(n,Mc.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function Mc(e){if(Qs=-1,Ys=xt=0,(ie&48)!==0)throw Error(o(327));var t=e.callbackNode;if(bt()&&e.callbackNode!==t)return null;var n=ar(e,e===Ue?Fe:0);if(n===0)return null;var a=n,u=ie;ie|=16;var h=bc();(Ue!==e||Fe!==a)&&(bn(),Vn(e,a));do try{xg();break}catch(y){Uc(e,y)}while(!0);if(Eo(),Hs.current=h,ie=u,Ae!==null?a=0:(Ue=null,Fe=0,a=Oe),(Fn&Un)!==0)Vn(e,0);else if(a!==0){if(a===2&&(ie|=64,e.hydrate&&(e.hydrate=!1,vo(e.containerInfo)),n=Ja(e),n!==0&&(a=Mr(e,n))),a===1)throw t=Ks,Vn(e,0),Bn(e,n),Ge(e,Me()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,a){case 0:case 1:throw Error(o(345));case 2:on(e);break;case 3:if(Bn(e,n),(n&62914560)===n&&(a=nl+500-Me(),10<a)){if(ar(e,0)!==0)break;if(u=e.suspendedLanes,(u&n)!==n){Ye(),e.pingedLanes|=e.suspendedLanes&u;break}e.timeoutHandle=Eu(on.bind(null,e),a);break}on(e);break;case 4:if(Bn(e,n),(n&4186112)===n)break;for(a=e.eventTimes,u=-1;0<n;){var g=31-Nt(n);h=1<<g,g=a[g],g>u&&(u=g),n&=~h}if(n=u,n=Me()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*yg(n/1960))-n,10<n){e.timeoutHandle=Eu(on.bind(null,e),n);break}on(e);break;case 5:on(e);break;default:throw Error(o(329))}}return Ge(e,Me()),e.callbackNode===t?Mc.bind(null,e):null}function Bn(e,t){for(t&=~el,t&=~Un,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Nt(t),a=1<<n;e[n]=-1,t&=~a}}function al(e){if((ie&48)!==0)throw Error(o(327));if(bt(),e===Ue&&(e.expiredLanes&Fe)!==0){var t=Fe,n=Mr(e,t);(Fn&Un)!==0&&(t=ar(e,t),n=Mr(e,t))}else t=ar(e,0),n=Mr(e,t);if(e.tag!==0&&n===2&&(ie|=64,e.hydrate&&(e.hydrate=!1,vo(e.containerInfo)),t=Ja(e),t!==0&&(n=Mr(e,t))),n===1)throw n=Ks,Vn(e,0),Bn(e,t),Ge(e,Me()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,on(e),Ge(e,Me()),null}function vg(){if(wt!==null){var e=wt;wt=null,e.forEach(function(t){t.expiredLanes|=24&t.pendingLanes,Ge(t,Me())})}ut()}function Dc(e,t){var n=ie;ie|=1;try{return e(t)}finally{ie=n,ie===0&&(bn(),ut())}}function Fc(e,t){var n=ie;ie&=-2,ie|=8;try{return e(t)}finally{ie=n,ie===0&&(bn(),ut())}}function Zs(e,t){Pe(qo,sn),sn|=t,Fn|=t}function ul(){sn=qo.current,_e(qo)}function Vn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Gp(n)),Ae!==null)for(n=Ae.return;n!==null;){var a=n;switch(a.tag){case 1:a=a.type.childContextTypes,a!=null&&$s();break;case 3:Mn(),_e(be),_e(ze),Io();break;case 5:Lo(a);break;case 4:Mn();break;case 13:_e(Ee);break;case 19:_e(Ee);break;case 10:To(a);break;case 23:case 24:ul()}n=n.return}Ue=e,Ae=Vt(e.current,null),Fe=sn=Fn=t,Oe=0,Ks=null,el=Un=Lr=0}function Uc(e,t){do{var n=Ae;try{if(Eo(),_r.current=Bs,Ds){for(var a=Ne.memoizedState;a!==null;){var u=a.queue;u!==null&&(u.pending=null),a=a.next}Ds=!1}if(Pr=0,Le=De=Ne=null,Er=!1,Go.current=null,n===null||n.return===null){Oe=1,Ks=t,Ae=null;break}e:{var h=e,g=n.return,y=n,S=t;if(t=Fe,y.flags|=2048,y.firstEffect=y.lastEffect=null,S!==null&&typeof S=="object"&&typeof S.then=="function"){var A=S;if((y.mode&2)===0){var W=y.alternate;W?(y.updateQueue=W.updateQueue,y.memoizedState=W.memoizedState,y.lanes=W.lanes):(y.updateQueue=null,y.memoizedState=null)}var ae=(Ee.current&1)!==0,I=g;do{var ee;if(ee=I.tag===13){var oe=I.memoizedState;if(oe!==null)ee=oe.dehydrated!==null;else{var re=I.memoizedProps;ee=re.fallback===void 0?!1:re.unstable_avoidThisFallback!==!0?!0:!ae}}if(ee){var P=I.updateQueue;if(P===null){var k=new Set;k.add(A),I.updateQueue=k}else P.add(A);if((I.mode&2)===0){if(I.flags|=64,y.flags|=16384,y.flags&=-2981,y.tag===1)if(y.alternate===null)y.tag=17;else{var $=It(-1,1);$.tag=2,zt(y,$)}y.lanes|=1;break e}S=void 0,y=t;var j=h.pingCache;if(j===null?(j=h.pingCache=new hg,S=new Set,j.set(A,S)):(S=j.get(A),S===void 0&&(S=new Set,j.set(A,S))),!S.has(y)){S.add(y);var R=_g.bind(null,h,A,y);A.then(R,R)}I.flags|=4096,I.lanes=t;break e}I=I.return}while(I!==null);S=Error((vn(y.type)||"A React component")+` suspended while rendering, but no fallback UI was specified.
|
|
1
|
+
(function(e){typeof define==`function`&&define.amd?define([],e):e()})(function(){var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n&&t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,a)=>(a=n==null?{}:e(i(n)),c(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n)),u=o(((e,t)=>{var n=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(e){if(e==null)throw TypeError(`Object.assign cannot be called with null or undefined`);return Object(e)}function o(){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;if(Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(``)!==`0123456789`)return!1;var r={};return`abcdefghijklmnopqrst`.split(``).forEach(function(e){r[e]=e}),Object.keys(Object.assign({},r)).join(``)===`abcdefghijklmnopqrst`}catch{return!1}}t.exports=o()?Object.assign:function(e,t){for(var o,s=a(e),c,l=1;l<arguments.length;l++){for(var u in o=Object(arguments[l]),o)r.call(o,u)&&(s[u]=o[u]);if(n){c=n(o);for(var d=0;d<c.length;d++)i.call(o,c[d])&&(s[c[d]]=o[c[d]])}}return s}})),d=o((e=>{var t=u(),n=60103,r=60106;e.Fragment=60107,e.StrictMode=60108,e.Profiler=60114;var i=60109,a=60110,o=60112;e.Suspense=60113;var s=60115,c=60116;if(typeof Symbol==`function`&&Symbol.for){var l=Symbol.for;n=l(`react.element`),r=l(`react.portal`),e.Fragment=l(`react.fragment`),e.StrictMode=l(`react.strict_mode`),e.Profiler=l(`react.profiler`),i=l(`react.provider`),a=l(`react.context`),o=l(`react.forward_ref`),e.Suspense=l(`react.suspense`),s=l(`react.memo`),c=l(`react.lazy`)}var d=typeof Symbol==`function`&&Symbol.iterator;function f(e){return typeof e!=`object`||!e?null:(e=d&&e[d]||e[`@@iterator`],typeof e==`function`?e:null)}function p(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 m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h={};function g(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||m}g.prototype.isReactComponent={},g.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(p(85));this.updater.enqueueSetState(this,e,t,`setState`)},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function _(){}_.prototype=g.prototype;function v(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||m}var y=v.prototype=new _;y.constructor=v,t(y,g.prototype),y.isPureReactComponent=!0;var b={current:null},x=Object.prototype.hasOwnProperty,S={key:!0,ref:!0,__self:!0,__source:!0};function C(e,t,r){var i,a={},o=null,s=null;if(t!=null)for(i in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=``+t.key),t)x.call(t,i)&&!S.hasOwnProperty(i)&&(a[i]=t[i]);var c=arguments.length-2;if(c===1)a.children=r;else if(1<c){for(var l=Array(c),u=0;u<c;u++)l[u]=arguments[u+2];a.children=l}if(e&&e.defaultProps)for(i in c=e.defaultProps,c)a[i]===void 0&&(a[i]=c[i]);return{$$typeof:n,type:e,key:o,ref:s,props:a,_owner:b.current}}function w(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function T(e){return typeof e==`object`&&!!e&&e.$$typeof===n}function E(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var D=/\/+/g;function O(e,t){return typeof e==`object`&&e&&e.key!=null?E(``+e.key):t.toString(36)}function k(e,t,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case n:case r:c=!0}}if(c)return c=e,o=o(c),e=a===``?`.`+O(c,0):a,Array.isArray(o)?(i=``,e!=null&&(i=e.replace(D,`$&/`)+`/`),k(o,t,i,``,function(e){return e})):o!=null&&(T(o)&&(o=w(o,i+(!o.key||c&&c.key===o.key?``:(``+o.key).replace(D,`$&/`)+`/`)+e)),t.push(o)),1;if(c=0,a=a===``?`.`:a+`:`,Array.isArray(e))for(var l=0;l<e.length;l++){s=e[l];var u=a+O(s,l);c+=k(s,t,i,u,o)}else if(u=f(e),typeof u==`function`)for(e=u.call(e),l=0;!(s=e.next()).done;)s=s.value,u=a+O(s,l++),c+=k(s,t,i,u,o);else if(s===`object`)throw t=``+e,Error(p(31,t===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:t));return c}function A(e,t,n){if(e==null)return e;var r=[],i=0;return k(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function j(e){if(e._status===-1){var t=e._result;t=t(),e._status=0,e._result=t,t.then(function(t){e._status===0&&(t=t.default,e._status=1,e._result=t)},function(t){e._status===0&&(e._status=2,e._result=t)})}if(e._status===1)return e._result;throw e._result}var M={current:null};function N(){var e=M.current;if(e===null)throw Error(p(321));return e}var P={ReactCurrentDispatcher:M,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:b,IsSomeRendererActing:{current:!1},assign:t};e.Children={map:A,forEach:function(e,t,n){A(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return A(e,function(){t++}),t},toArray:function(e){return A(e,function(e){return e})||[]},only:function(e){if(!T(e))throw Error(p(143));return e}},e.Component=g,e.PureComponent=v,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=P,e.cloneElement=function(e,r,i){if(e==null)throw Error(p(267,e));var a=t({},e.props),o=e.key,s=e.ref,c=e._owner;if(r!=null){if(r.ref!==void 0&&(s=r.ref,c=b.current),r.key!==void 0&&(o=``+r.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in r)x.call(r,u)&&!S.hasOwnProperty(u)&&(a[u]=r[u]===void 0&&l!==void 0?l[u]:r[u])}var u=arguments.length-2;if(u===1)a.children=i;else if(1<u){l=Array(u);for(var d=0;d<u;d++)l[d]=arguments[d+2];a.children=l}return{$$typeof:n,type:e.type,key:o,ref:s,props:a,_owner:c}},e.createContext=function(e,t){return t===void 0&&(t=null),e={$$typeof:a,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider={$$typeof:i,_context:e},e.Consumer=e},e.createElement=C,e.createFactory=function(e){var t=C.bind(null,e);return t.type=e,t},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:o,render:e}},e.isValidElement=T,e.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:j}},e.memo=function(e,t){return{$$typeof:s,type:e,compare:t===void 0?null:t}},e.useCallback=function(e,t){return N().useCallback(e,t)},e.useContext=function(e,t){return N().useContext(e,t)},e.useDebugValue=function(){},e.useEffect=function(e,t){return N().useEffect(e,t)},e.useImperativeHandle=function(e,t,n){return N().useImperativeHandle(e,t,n)},e.useLayoutEffect=function(e,t){return N().useLayoutEffect(e,t)},e.useMemo=function(e,t){return N().useMemo(e,t)},e.useReducer=function(e,t,n){return N().useReducer(e,t,n)},e.useRef=function(e){return N().useRef(e)},e.useState=function(e){return N().useState(e)},e.version=`17.0.2`})),f=o(((e,t)=>{t.exports=d()})),p=o((e=>{var t,n,r,i;if(typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}if(typeof window>`u`||typeof MessageChannel!=`function`){var c=null,l=null,u=function(){if(c!==null)try{var t=e.unstable_now();c(!0,t),c=null}catch(e){throw setTimeout(u,0),e}};t=function(e){c===null?(c=e,setTimeout(u,0)):setTimeout(t,0,e)},n=function(e,t){l=setTimeout(e,t)},r=function(){clearTimeout(l)},e.unstable_shouldYield=function(){return!1},i=e.unstable_forceFrameRate=function(){}}else{var d=window.setTimeout,f=window.clearTimeout;if(typeof console<`u`){var p=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 p!=`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,h=null,g=-1,_=5,v=0;e.unstable_shouldYield=function(){return e.unstable_now()>=v},i=function(){},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):_=0<e?Math.floor(1e3/e):5};var y=new MessageChannel,b=y.port2;y.port1.onmessage=function(){if(h!==null){var t=e.unstable_now();v=t+_;try{h(!0,t)?b.postMessage(null):(m=!1,h=null)}catch(e){throw b.postMessage(null),e}}else m=!1},t=function(e){h=e,m||(m=!0,b.postMessage(null))},n=function(t,n){g=d(function(){t(e.unstable_now())},n)},r=function(){f(g),g=-1}}function x(e,t){var n=e.length;e.push(t);a:for(;;){var r=n-1>>>1,i=e[r];if(i!==void 0&&0<w(i,t))e[r]=t,e[n]=i,n=r;else break a}}function S(e){return e=e[0],e===void 0?null:e}function C(e){var t=e[0];if(t!==void 0){var n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,i=e.length;r<i;){var a=2*(r+1)-1,o=e[a],s=a+1,c=e[s];if(o!==void 0&&0>w(o,n))c!==void 0&&0>w(c,o)?(e[r]=c,e[s]=n,r=s):(e[r]=o,e[a]=n,r=a);else if(c!==void 0&&0>w(c,n))e[r]=c,e[s]=n,r=s;else break a}}return t}return null}function w(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}var T=[],E=[],D=1,O=null,k=3,A=!1,j=!1,M=!1;function N(e){for(var t=S(E);t!==null;){if(t.callback===null)C(E);else if(t.startTime<=e)C(E),t.sortIndex=t.expirationTime,x(T,t);else break;t=S(E)}}function P(e){if(M=!1,N(e),!j)if(S(T)!==null)j=!0,t(ee);else{var r=S(E);r!==null&&n(P,r.startTime-e)}}function ee(t,i){j=!1,M&&(M=!1,r()),A=!0;var a=k;try{for(N(i),O=S(T);O!==null&&(!(O.expirationTime>i)||t&&!e.unstable_shouldYield());){var o=O.callback;if(typeof o==`function`){O.callback=null,k=O.priorityLevel;var s=o(O.expirationTime<=i);i=e.unstable_now(),typeof s==`function`?O.callback=s:O===S(T)&&C(T),N(i)}else C(T);O=S(T)}if(O!==null)var c=!0;else{var l=S(E);l!==null&&n(P,l.startTime-i),c=!1}return c}finally{O=null,k=a,A=!1}}var te=i;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(e){e.callback=null},e.unstable_continueExecution=function(){j||A||(j=!0,t(ee))},e.unstable_getCurrentPriorityLevel=function(){return k},e.unstable_getFirstCallbackNode=function(){return S(T)},e.unstable_next=function(e){switch(k){case 1:case 2:case 3:var t=3;break;default:t=k}var n=k;k=t;try{return e()}finally{k=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=te,e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=k;k=e;try{return t()}finally{k=n}},e.unstable_scheduleCallback=function(i,a,o){var s=e.unstable_now();switch(typeof o==`object`&&o?(o=o.delay,o=typeof o==`number`&&0<o?s+o:s):o=s,i){case 1:var c=-1;break;case 2:c=250;break;case 5:c=1073741823;break;case 4:c=1e4;break;default:c=5e3}return c=o+c,i={id:D++,callback:a,priorityLevel:i,startTime:o,expirationTime:c,sortIndex:-1},o>s?(i.sortIndex=o,x(E,i),S(T)===null&&i===S(E)&&(M?r():M=!0,n(P,o-s))):(i.sortIndex=c,x(T,i),j||A||(j=!0,t(ee))),i},e.unstable_wrapCallback=function(e){var t=k;return function(){var n=k;k=t;try{return e.apply(this,arguments)}finally{k=n}}}})),m=o(((e,t)=>{t.exports=p()})),h=o((e=>{var t=f(),n=u(),r=m();function i(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(!t)throw Error(i(227));var a=new Set,o={};function s(e,t){c(e,t),c(e+`Capture`,t)}function c(e,t){for(o[e]=t,e=0;e<t.length;e++)a.add(t[e])}var l=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),d=/^[: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]*$/,p=Object.prototype.hasOwnProperty,h={},g={};function _(e){return p.call(g,e)?!0:p.call(h,e)?!1:d.test(e)?g[e]=!0:(h[e]=!0,!1)}function v(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?(e=e.toLowerCase().slice(0,5),e!==`data-`&&e!==`aria-`):!n.acceptsBooleans;default:return!1}}function y(e,t,n,r){if(t==null||v(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function b(e,t,n,r,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var x={};`children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style`.split(` `).forEach(function(e){x[e]=new b(e,0,!1,e,null,!1,!1)}),[[`acceptCharset`,`accept-charset`],[`className`,`class`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`]].forEach(function(e){var t=e[0];x[t]=new b(t,1,!1,e[1],null,!1,!1)}),[`contentEditable`,`draggable`,`spellCheck`,`value`].forEach(function(e){x[e]=new b(e,2,!1,e.toLowerCase(),null,!1,!1)}),[`autoReverse`,`externalResourcesRequired`,`focusable`,`preserveAlpha`].forEach(function(e){x[e]=new b(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){x[e]=new b(e,3,!1,e.toLowerCase(),null,!1,!1)}),[`checked`,`multiple`,`muted`,`selected`].forEach(function(e){x[e]=new b(e,3,!0,e,null,!1,!1)}),[`capture`,`download`].forEach(function(e){x[e]=new b(e,4,!1,e,null,!1,!1)}),[`cols`,`rows`,`size`,`span`].forEach(function(e){x[e]=new b(e,6,!1,e,null,!1,!1)}),[`rowSpan`,`start`].forEach(function(e){x[e]=new b(e,5,!1,e.toLowerCase(),null,!1,!1)});var S=/[\-:]([a-z])/g;function C(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(S,C);x[t]=new b(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(S,C);x[t]=new b(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(S,C);x[t]=new b(t,1,!1,e,`http://www.w3.org/XML/1998/namespace`,!1,!1)}),[`tabIndex`,`crossOrigin`].forEach(function(e){x[e]=new b(e,1,!1,e.toLowerCase(),null,!1,!1)}),x.xlinkHref=new b(`xlinkHref`,1,!1,`xlink:href`,`http://www.w3.org/1999/xlink`,!0,!1),[`src`,`href`,`action`,`formAction`].forEach(function(e){x[e]=new b(e,1,!1,e.toLowerCase(),null,!0,!0)});function w(e,t,n,r){var i=x.hasOwnProperty(t)?x[t]:null;(i===null?!r&&!(!(2<t.length)||t[0]!==`o`&&t[0]!==`O`||t[1]!==`n`&&t[1]!==`N`):i.type===0)||(y(t,n,i,r)&&(n=null),r||i===null?_(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,``+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:``:n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&!0===n?``:``+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var T=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,E=60103,D=60106,O=60107,k=60108,A=60114,j=60109,M=60110,N=60112,P=60113,ee=60120,te=60115,ne=60116,re=60121,ie=60128,ae=60129,oe=60130,se=60131;if(typeof Symbol==`function`&&Symbol.for){var F=Symbol.for;E=F(`react.element`),D=F(`react.portal`),O=F(`react.fragment`),k=F(`react.strict_mode`),A=F(`react.profiler`),j=F(`react.provider`),M=F(`react.context`),N=F(`react.forward_ref`),P=F(`react.suspense`),ee=F(`react.suspense_list`),te=F(`react.memo`),ne=F(`react.lazy`),re=F(`react.block`),F(`react.scope`),ie=F(`react.opaque.id`),ae=F(`react.debug_trace_mode`),oe=F(`react.offscreen`),se=F(`react.legacy_hidden`)}var ce=typeof Symbol==`function`&&Symbol.iterator;function le(e){return typeof e!=`object`||!e?null:(e=ce&&e[ce]||e[`@@iterator`],typeof e==`function`?e:null)}var ue;function de(e){if(ue===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);ue=t&&t[1]||``}return`
|
|
2
|
+
`+ue+e}var fe=!1;function pe(e,t){if(!e||fe)return``;fe=!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(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(e){if(e&&r&&typeof e.stack==`string`){for(var i=e.stack.split(`
|
|
3
|
+
`),a=r.stack.split(`
|
|
4
|
+
`),o=i.length-1,s=a.length-1;1<=o&&0<=s&&i[o]!==a[s];)s--;for(;1<=o&&0<=s;o--,s--)if(i[o]!==a[s]){if(o!==1||s!==1)do if(o--,s--,0>s||i[o]!==a[s])return`
|
|
5
|
+
`+i[o].replace(` at new `,` at `);while(1<=o&&0<=s);break}}}finally{fe=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:``)?de(e):``}function me(e){switch(e.tag){case 5:return de(e.type);case 16:return de(`Lazy`);case 13:return de(`Suspense`);case 19:return de(`SuspenseList`);case 0:case 2:case 15:return e=pe(e.type,!1),e;case 11:return e=pe(e.type.render,!1),e;case 22:return e=pe(e.type._render,!1),e;case 1:return e=pe(e.type,!0),e;default:return``}}function he(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 O:return`Fragment`;case D:return`Portal`;case A:return`Profiler`;case k:return`StrictMode`;case P:return`Suspense`;case ee:return`SuspenseList`}if(typeof e==`object`)switch(e.$$typeof){case M:return(e.displayName||`Context`)+`.Consumer`;case j:return(e._context.displayName||`Context`)+`.Provider`;case N:var t=e.render;return t=t.displayName||t.name||``,e.displayName||(t===``?`ForwardRef`:`ForwardRef(`+t+`)`);case te:return he(e.type);case re:return he(e._render);case ne:t=e._payload,e=e._init;try{return he(e(t))}catch{}}return null}function I(e){switch(typeof e){case`boolean`:case`number`:case`object`:case`string`:case`undefined`:return e;default:return``}}function L(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function ge(e){var t=L(e)?`checked`:`value`,n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=``+e[t];if(!e.hasOwnProperty(t)&&n!==void 0&&typeof n.get==`function`&&typeof n.set==`function`){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function R(e){e._valueTracker||=ge(e)}function _e(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=L(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function ve(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}function ye(e,t){var r=t.checked;return n({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function be(e,t){var n=t.defaultValue==null?``:t.defaultValue,r=t.checked==null?t.defaultChecked:t.checked;n=I(t.value==null?n:t.value),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type===`checkbox`||t.type===`radio`?t.checked!=null:t.value!=null}}function xe(e,t){t=t.checked,t!=null&&w(e,`checked`,t,!1)}function Se(e,t){xe(e,t);var n=I(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`)?we(e,t.type,n):t.hasOwnProperty(`defaultValue`)&&we(e,t.type,I(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ce(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 we(e,t,n){(t!==`number`||ve(e.ownerDocument)!==e)&&(n==null?e.defaultValue=``+e._wrapperState.initialValue:e.defaultValue!==``+n&&(e.defaultValue=``+n))}function Te(e){var n=``;return t.Children.forEach(e,function(e){e!=null&&(n+=e)}),n}function Ee(e,t){return e=n({children:void 0},t),(t=Te(t.children))&&(e.children=t),e}function De(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+I(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Oe(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(i(91));return n({},t,{value:void 0,defaultValue:void 0,children:``+e._wrapperState.initialValue})}function ke(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(i(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(i(93));n=n[0]}t=n}t??=``,n=t}e._wrapperState={initialValue:I(n)}}function Ae(e,t){var n=I(t.value),r=I(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 je(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==``&&t!==null&&(e.value=t)}var Me={html:`http://www.w3.org/1999/xhtml`,mathml:`http://www.w3.org/1998/Math/MathML`,svg:`http://www.w3.org/2000/svg`};function Ne(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 Pe(e,t){return e==null||e===`http://www.w3.org/1999/xhtml`?Ne(t):e===`http://www.w3.org/2000/svg`&&t===`foreignObject`?`http://www.w3.org/1999/xhtml`:e}var Fe,Ie=function(e){return typeof MSApp<`u`&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!==Me.svg||`innerHTML`in e)e.innerHTML=t;else{for(Fe||=document.createElement(`div`),Fe.innerHTML=`<svg>`+t.valueOf().toString()+`</svg>`,t=Fe.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Le(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var z={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},Re=[`Webkit`,`ms`,`Moz`,`O`];Object.keys(z).forEach(function(e){Re.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),z[t]=z[e]})});function ze(e,t,n){return t==null||typeof t==`boolean`||t===``?``:n||typeof t!=`number`||t===0||z.hasOwnProperty(e)&&z[e]?(``+t).trim():t+`px`}function Be(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=n.indexOf(`--`)===0,i=ze(n,t[n],r);n===`float`&&(n=`cssFloat`),r?e.setProperty(n,i):e[n]=i}}var Ve=n({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 He(e,t){if(t){if(Ve[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(i(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(i(60));if(!(typeof t.dangerouslySetInnerHTML==`object`&&`__html`in t.dangerouslySetInnerHTML))throw Error(i(61))}if(t.style!=null&&typeof t.style!=`object`)throw Error(i(62))}}function Ue(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 We(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ge=null,Ke=null,qe=null;function Je(e){if(e=Ti(e)){if(typeof Ge!=`function`)throw Error(i(280));var t=e.stateNode;t&&(t=Di(t),Ge(e.stateNode,e.type,t))}}function Ye(e){Ke?qe?qe.push(e):qe=[e]:Ke=e}function Xe(){if(Ke){var e=Ke,t=qe;if(qe=Ke=null,Je(e),t)for(e=0;e<t.length;e++)Je(t[e])}}function Ze(e,t){return e(t)}function Qe(e,t,n,r,i){return e(t,n,r,i)}function $e(){}var et=Ze,tt=!1,nt=!1;function rt(){(Ke!==null||qe!==null)&&($e(),Xe())}function it(e,t,n){if(nt)return e(t,n);nt=!0;try{return et(e,t,n)}finally{nt=!1,rt()}}function at(e,t){var n=e.stateNode;if(n===null)return null;var r=Di(n);if(r===null)return null;n=r[t];a: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 a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var ot=!1;if(l)try{var st={};Object.defineProperty(st,`passive`,{get:function(){ot=!0}}),window.addEventListener(`test`,st,st),window.removeEventListener(`test`,st,st)}catch{ot=!1}function ct(e,t,n,r,i,a,o,s,c){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(e){this.onError(e)}}var lt=!1,B=null,ut=!1,dt=null,ft={onError:function(e){lt=!0,B=e}};function pt(e,t,n,r,i,a,o,s,c){lt=!1,B=null,ct.apply(ft,arguments)}function mt(e,t,n,r,a,o,s,c,l){if(pt.apply(this,arguments),lt){if(lt){var u=B;lt=!1,B=null}else throw Error(i(198));ut||(ut=!0,dt=u)}}function ht(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 gt(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 _t(e){if(ht(e)!==e)throw Error(i(188))}function vt(e){var t=e.alternate;if(!t){if(t=ht(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var o=a.alternate;if(o===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===n)return _t(a),e;if(o===r)return _t(a),t;o=o.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=o;else{for(var s=!1,c=a.child;c;){if(c===n){s=!0,n=a,r=o;break}if(c===r){s=!0,r=a,n=o;break}c=c.sibling}if(!s){for(c=o.child;c;){if(c===n){s=!0,n=o,r=a;break}if(c===r){s=!0,r=o,n=a;break}c=c.sibling}if(!s)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function yt(e){if(e=vt(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 bt(e,t){for(var n=e.alternate;t!==null;){if(t===e||t===n)return!0;t=t.return}return!1}var xt,St,Ct,wt,Tt=!1,Et=[],Dt=null,Ot=null,kt=null,At=new Map,jt=new Map,Mt=[],Nt=`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 Pt(e,t,n,r,i){return{blockedOn:e,domEventName:t,eventSystemFlags:n|16,nativeEvent:i,targetContainers:[r]}}function Ft(e,t){switch(e){case`focusin`:case`focusout`:Dt=null;break;case`dragenter`:case`dragleave`:Ot=null;break;case`mouseover`:case`mouseout`:kt=null;break;case`pointerover`:case`pointerout`:At.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:jt.delete(t.pointerId)}}function It(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e=Pt(t,n,r,i,a),t!==null&&(t=Ti(t),t!==null&&St(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Lt(e,t,n,r,i){switch(t){case`focusin`:return Dt=It(Dt,e,t,n,r,i),!0;case`dragenter`:return Ot=It(Ot,e,t,n,r,i),!0;case`mouseover`:return kt=It(kt,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return At.set(a,It(At.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,jt.set(a,It(jt.get(a)||null,e,t,n,r,i)),!0}return!1}function Rt(e){var t=wi(e.target);if(t!==null){var n=ht(t);if(n!==null){if(t=n.tag,t===13){if(t=gt(n),t!==null){e.blockedOn=t,wt(e.lanePriority,function(){r.unstable_runWithPriority(e.priority,function(){Ct(n)})});return}}else if(t===3&&n.stateNode.hydrate){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function zt(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Cn(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n!==null)return t=Ti(n),t!==null&&St(t),e.blockedOn=n,!1;t.shift()}return!0}function Bt(e,t,n){zt(e)&&n.delete(t)}function Vt(){for(Tt=!1;0<Et.length;){var e=Et[0];if(e.blockedOn!==null){e=Ti(e.blockedOn),e!==null&&xt(e);break}for(var t=e.targetContainers;0<t.length;){var n=Cn(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n!==null){e.blockedOn=n;break}t.shift()}e.blockedOn===null&&Et.shift()}Dt!==null&&zt(Dt)&&(Dt=null),Ot!==null&&zt(Ot)&&(Ot=null),kt!==null&&zt(kt)&&(kt=null),At.forEach(Bt),jt.forEach(Bt)}function Ht(e,t){e.blockedOn===t&&(e.blockedOn=null,Tt||(Tt=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,Vt)))}function Ut(e){function t(t){return Ht(t,e)}if(0<Et.length){Ht(Et[0],e);for(var n=1;n<Et.length;n++){var r=Et[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Dt!==null&&Ht(Dt,e),Ot!==null&&Ht(Ot,e),kt!==null&&Ht(kt,e),At.forEach(t),jt.forEach(t),n=0;n<Mt.length;n++)r=Mt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Mt.length&&(n=Mt[0],n.blockedOn===null);)Rt(n),n.blockedOn===null&&Mt.shift()}function Wt(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Gt={animationend:Wt(`Animation`,`AnimationEnd`),animationiteration:Wt(`Animation`,`AnimationIteration`),animationstart:Wt(`Animation`,`AnimationStart`),transitionend:Wt(`Transition`,`TransitionEnd`)},Kt={},qt={};l&&(qt=document.createElement(`div`).style,`AnimationEvent`in window||(delete Gt.animationend.animation,delete Gt.animationiteration.animation,delete Gt.animationstart.animation),`TransitionEvent`in window||delete Gt.transitionend.transition);function Jt(e){if(Kt[e])return Kt[e];if(!Gt[e])return e;var t=Gt[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in qt)return Kt[e]=t[n];return e}var Yt=Jt(`animationend`),Xt=Jt(`animationiteration`),Zt=Jt(`animationstart`),Qt=Jt(`transitionend`),V=new Map,$t=new Map,en=[`abort`,`abort`,Yt,`animationEnd`,Xt,`animationIteration`,Zt,`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`,Qt,`transitionEnd`,`waiting`,`waiting`];function tn(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],i=e[n+1];i=`on`+(i[0].toUpperCase()+i.slice(1)),$t.set(r,t),V.set(r,i),s(i,[r])}}var nn=r.unstable_now;nn();var H=8;function rn(e){if(1&e)return H=15,1;if(2&e)return H=14,2;if(4&e)return H=13,4;var t=24&e;return t===0?e&32?(H=11,32):(t=192&e,t===0?e&256?(H=9,256):(t=3584&e,t===0?e&4096?(H=7,4096):(t=4186112&e,t===0?(t=62914560&e,t===0?e&67108864?(H=4,67108864):e&134217728?(H=3,134217728):(t=805306368&e,t===0?1073741824&e?(H=1,1073741824):(H=8,e):(H=2,t)):(H=5,t)):(H=6,t)):(H=8,t)):(H=10,t)):(H=12,t)}function an(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 on(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(i(358,e))}}function sn(e,t){var n=e.pendingLanes;if(n===0)return H=0;var r=0,i=0,a=e.expiredLanes,o=e.suspendedLanes,s=e.pingedLanes;if(a!==0)r=a,i=H=15;else if(a=n&134217727,a!==0){var c=a&~o;c===0?(s&=a,s!==0&&(r=rn(s),i=H)):(r=rn(c),i=H)}else a=n&~o,a===0?s!==0&&(r=rn(s),i=H):(r=rn(a),i=H);if(r===0)return 0;if(r=31-pn(r),r=n&((0>r?0:1<<r)<<1)-1,t!==0&&t!==r&&(t&o)===0){if(rn(t),i<=H)return t;H=i}if(t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-pn(t),i=1<<n,r|=e[n],t&=~i;return r}function cn(e){return e=e.pendingLanes&-1073741825,e===0?e&1073741824?1073741824:0:e}function ln(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return e=un(24&~t),e===0?ln(10,t):e;case 10:return e=un(192&~t),e===0?ln(8,t):e;case 8:return e=un(3584&~t),e===0&&(e=un(4186112&~t),e===0&&(e=512)),e;case 2:return t=un(805306368&~t),t===0&&(t=268435456),t}throw Error(i(358,e))}function un(e){return e&-e}function dn(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function fn(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,e=e.eventTimes,t=31-pn(t),e[t]=n}var pn=Math.clz32?Math.clz32:gn,mn=Math.log,hn=Math.LN2;function gn(e){return e===0?32:31-(mn(e)/hn|0)|0}var _n=r.unstable_UserBlockingPriority,vn=r.unstable_runWithPriority,yn=!0;function bn(e,t,n,r){tt||$e();var i=Sn,a=tt;tt=!0;try{Qe(i,e,t,n,r)}finally{(tt=a)||rt()}}function xn(e,t,n,r){vn(_n,Sn.bind(null,e,t,n,r))}function Sn(e,t,n,r){if(yn){var i;if((i=(t&4)==0)&&0<Et.length&&-1<Nt.indexOf(e))e=Pt(null,e,t,n,r),Et.push(e);else{var a=Cn(e,t,n,r);if(a===null)i&&Ft(e,r);else{if(i){if(-1<Nt.indexOf(e)){e=Pt(a,e,t,n,r),Et.push(e);return}if(Lt(a,e,t,n,r))return;Ft(e,r)}ni(e,t,r,null,n)}}}}function Cn(e,t,n,r){var i=We(r);if(i=wi(i),i!==null){var a=ht(i);if(a===null)i=null;else{var o=a.tag;if(o===13){if(i=gt(a),i!==null)return i;i=null}else if(o===3){if(a.stateNode.hydrate)return a.tag===3?a.stateNode.containerInfo:null;i=null}else a!==i&&(i=null)}}return ni(e,t,r,i,n),null}var wn=null,Tn=null,En=null;function Dn(){if(En)return En;var e,t=Tn,n=t.length,r,i=`value`in wn?wn.value:wn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return En=i.slice(e,1<r?1-r:void 0)}function On(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 kn(){return!0}function An(){return!1}function jn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?kn:An,this.isPropagationStopped=An,this}return n(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=kn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=kn)},persist:function(){},isPersistent:kn}),t}var Mn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Nn=jn(Mn),Pn=n({},Mn,{view:0,detail:0}),Fn=jn(Pn),In,Ln,Rn,zn=n({},Pn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Yn,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!==Rn&&(Rn&&e.type===`mousemove`?(In=e.screenX-Rn.screenX,Ln=e.screenY-Rn.screenY):Ln=In=0,Rn=e),In)},movementY:function(e){return`movementY`in e?e.movementY:Ln}}),Bn=jn(zn),Vn=jn(n({},zn,{dataTransfer:0})),Hn=jn(n({},Pn,{relatedTarget:0})),Un=jn(n({},Mn,{animationName:0,elapsedTime:0,pseudoElement:0})),Wn=jn(n({},Mn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Gn=jn(n({},Mn,{data:0})),Kn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},qn={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`},Jn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function U(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Jn[e])?!!t[e]:!1}function Yn(){return U}var Xn=jn(n({},Pn,{key:function(e){if(e.key){var t=Kn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=On(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?qn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Yn,charCode:function(e){return e.type===`keypress`?On(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?On(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Zn=jn(n({},zn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Qn=jn(n({},Pn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Yn})),$n=jn(n({},Mn,{propertyName:0,elapsedTime:0,pseudoElement:0})),er=jn(n({},zn,{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})),tr=[9,13,27,32],nr=l&&`CompositionEvent`in window,rr=null;l&&`documentMode`in document&&(rr=document.documentMode);var ir=l&&`TextEvent`in window&&!rr,ar=l&&(!nr||rr&&8<rr&&11>=rr),or=` `,sr=!1;function cr(e,t){switch(e){case`keyup`:return tr.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function lr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var ur=!1;function dr(e,t){switch(e){case`compositionend`:return lr(t);case`keypress`:return t.which===32?(sr=!0,or):null;case`textInput`:return e=t.data,e===or&&sr?null:e;default:return null}}function fr(e,t){if(ur)return e===`compositionend`||!nr&&cr(e,t)?(e=Dn(),En=Tn=wn=null,ur=!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 ar&&t.locale!==`ko`?null:t.data;default:return null}}var pr={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 mr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!pr[e.type]:t===`textarea`}function hr(e,t,n,r){Ye(r),t=ii(t,`onChange`),0<t.length&&(n=new Nn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var gr=null,_r=null;function vr(e){Zr(e,0)}function yr(e){if(_e(Ei(e)))return e}function br(e,t){if(e===`change`)return t}var xr=!1;if(l){var Sr;if(l){var Cr=`oninput`in document;if(!Cr){var wr=document.createElement(`div`);wr.setAttribute(`oninput`,`return;`),Cr=typeof wr.oninput==`function`}Sr=Cr}else Sr=!1;xr=Sr&&(!document.documentMode||9<document.documentMode)}function Tr(){gr&&(gr.detachEvent(`onpropertychange`,Er),_r=gr=null)}function Er(e){if(e.propertyName===`value`&&yr(_r)){var t=[];if(hr(t,_r,e,We(e)),e=vr,tt)e(t);else{tt=!0;try{Ze(e,t)}finally{tt=!1,rt()}}}}function Dr(e,t,n){e===`focusin`?(Tr(),gr=t,_r=n,gr.attachEvent(`onpropertychange`,Er)):e===`focusout`&&Tr()}function Or(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return yr(_r)}function kr(e,t){if(e===`click`)return yr(t)}function Ar(e,t){if(e===`input`||e===`change`)return yr(t)}function jr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Mr=typeof Object.is==`function`?Object.is:jr,Nr=Object.prototype.hasOwnProperty;function Pr(e,t){if(Mr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)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(!Nr.call(t,n[r])||!Mr(e[n[r]],t[n[r]]))return!1;return!0}function Fr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ir(e,t){var n=Fr(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}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Fr(n)}}function Lr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Lr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Rr(){for(var e=window,t=ve();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=ve(e.document)}return t}function zr(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 Br=l&&`documentMode`in document&&11>=document.documentMode,Vr=null,Hr=null,Ur=null,Wr=!1;function Gr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Wr||Vr==null||Vr!==ve(r)||(r=Vr,`selectionStart`in r&&zr(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}),Ur&&Pr(Ur,r)||(Ur=r,r=ii(Hr,`onSelect`),0<r.length&&(t=new Nn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Vr)))}tn(`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),tn(`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),tn(en,2);for(var Kr=`change selectionchange textInput compositionstart compositionend compositionupdate`.split(` `),qr=0;qr<Kr.length;qr++)$t.set(Kr[qr],0);c(`onMouseEnter`,[`mouseout`,`mouseover`]),c(`onMouseLeave`,[`mouseout`,`mouseover`]),c(`onPointerEnter`,[`pointerout`,`pointerover`]),c(`onPointerLeave`,[`pointerout`,`pointerover`]),s(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),s(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),s(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),s(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),s(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),s(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var Jr=`abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting`.split(` `),Yr=new Set(`cancel close invalid load scroll toggle`.split(` `).concat(Jr));function Xr(e,t,n){var r=e.type||`unknown-event`;e.currentTarget=n,mt(r,t,void 0,e),e.currentTarget=null}function Zr(e,t){t=(t&4)!=0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;Xr(i,s,l),a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;Xr(i,s,l),a=c}}}if(ut)throw e=dt,ut=!1,dt=null,e}function W(e,t){var n=Oi(t),r=e+`__bubble`;n.has(r)||(ti(t,e,2,!1),n.add(r))}var Qr=`_reactListening`+Math.random().toString(36).slice(2);function $r(e){e[Qr]||(e[Qr]=!0,a.forEach(function(t){Yr.has(t)||ei(t,!1,e,null),ei(t,!0,e,null)}))}function ei(e,t,n,r){var i=4<arguments.length&&arguments[4]!==void 0?arguments[4]:0,a=n;if(e===`selectionchange`&&n.nodeType!==9&&(a=n.ownerDocument),r!==null&&!t&&Yr.has(e)){if(e!==`scroll`)return;i|=2,a=r}var o=Oi(a),s=e+`__`+(t?`capture`:`bubble`);o.has(s)||(t&&(i|=4),ti(a,e,i,t),o.add(s))}function ti(e,t,n,r){var i=$t.get(t);switch(i===void 0?2:i){case 0:i=bn;break;case 1:i=xn;break;default:i=Sn}n=i.bind(null,t,n,e),i=void 0,!ot||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function ni(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var s=r.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var c=o.tag;if((c===3||c===4)&&(c=o.stateNode.containerInfo,c===i||c.nodeType===8&&c.parentNode===i))return;o=o.return}for(;s!==null;){if(o=wi(s),o===null)return;if(c=o.tag,c===5||c===6){r=a=o;continue a}s=s.parentNode}}r=r.return}it(function(){var r=a,i=We(n),o=[];a:{var s=V.get(e);if(s!==void 0){var c=Nn,l=e;switch(e){case`keypress`:if(On(n)===0)break a;case`keydown`:case`keyup`:c=Xn;break;case`focusin`:l=`focus`,c=Hn;break;case`focusout`:l=`blur`,c=Hn;break;case`beforeblur`:case`afterblur`:c=Hn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:c=Bn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:c=Vn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:c=Qn;break;case Yt:case Xt:case Zt:c=Un;break;case Qt:c=$n;break;case`scroll`:c=Fn;break;case`wheel`:c=er;break;case`copy`:case`cut`:case`paste`:c=Wn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:c=Zn}var u=(t&4)!=0,d=!u&&e===`scroll`,f=u?s===null?null:s+`Capture`:s;u=[];for(var p=r,m;p!==null;){m=p;var h=m.stateNode;if(m.tag===5&&h!==null&&(m=h,f!==null&&(h=at(p,f),h!=null&&u.push(ri(p,h,m)))),d)break;p=p.return}0<u.length&&(s=new c(s,l,null,n,i),o.push({event:s,listeners:u}))}}if(!(t&7)){a:{if(s=e===`mouseover`||e===`pointerover`,c=e===`mouseout`||e===`pointerout`,s&&!(t&16)&&(l=n.relatedTarget||n.fromElement)&&(wi(l)||l[Si]))break a;if((c||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,c?(l=n.relatedTarget||n.toElement,c=r,l=l?wi(l):null,l!==null&&(d=ht(l),l!==d||l.tag!==5&&l.tag!==6)&&(l=null)):(c=null,l=r),c!==l)){if(u=Bn,h=`onMouseLeave`,f=`onMouseEnter`,p=`mouse`,(e===`pointerout`||e===`pointerover`)&&(u=Zn,h=`onPointerLeave`,f=`onPointerEnter`,p=`pointer`),d=c==null?s:Ei(c),m=l==null?s:Ei(l),s=new u(h,p+`leave`,c,n,i),s.target=d,s.relatedTarget=m,h=null,wi(i)===r&&(u=new u(f,p+`enter`,l,n,i),u.target=m,u.relatedTarget=d,h=u),d=h,c&&l)b:{for(u=c,f=l,p=0,m=u;m;m=ai(m))p++;for(m=0,h=f;h;h=ai(h))m++;for(;0<p-m;)u=ai(u),p--;for(;0<m-p;)f=ai(f),m--;for(;p--;){if(u===f||f!==null&&u===f.alternate)break b;u=ai(u),f=ai(f)}u=null}else u=null;c!==null&&oi(o,s,c,u,!1),l!==null&&d!==null&&oi(o,d,l,u,!0)}}a:{if(s=r?Ei(r):window,c=s.nodeName&&s.nodeName.toLowerCase(),c===`select`||c===`input`&&s.type===`file`)var g=br;else if(mr(s))if(xr)g=Ar;else{g=Or;var _=Dr}else (c=s.nodeName)&&c.toLowerCase()===`input`&&(s.type===`checkbox`||s.type===`radio`)&&(g=kr);if(g&&=g(e,r)){hr(o,g,n,i);break a}_&&_(e,s,r),e===`focusout`&&(_=s._wrapperState)&&_.controlled&&s.type===`number`&&we(s,`number`,s.value)}switch(_=r?Ei(r):window,e){case`focusin`:(mr(_)||_.contentEditable===`true`)&&(Vr=_,Hr=r,Ur=null);break;case`focusout`:Ur=Hr=Vr=null;break;case`mousedown`:Wr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Wr=!1,Gr(o,n,i);break;case`selectionchange`:if(Br)break;case`keydown`:case`keyup`:Gr(o,n,i)}var v;if(nr)b:{switch(e){case`compositionstart`:var y=`onCompositionStart`;break b;case`compositionend`:y=`onCompositionEnd`;break b;case`compositionupdate`:y=`onCompositionUpdate`;break b}y=void 0}else ur?cr(e,n)&&(y=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(y=`onCompositionStart`);y&&(ar&&n.locale!==`ko`&&(ur||y!==`onCompositionStart`?y===`onCompositionEnd`&&ur&&(v=Dn()):(wn=i,Tn=`value`in wn?wn.value:wn.textContent,ur=!0)),_=ii(r,y),0<_.length&&(y=new Gn(y,e,null,n,i),o.push({event:y,listeners:_}),v?y.data=v:(v=lr(n),v!==null&&(y.data=v)))),(v=ir?dr(e,n):fr(e,n))&&(r=ii(r,`onBeforeInput`),0<r.length&&(i=new Gn(`onBeforeInput`,`beforeinput`,null,n,i),o.push({event:i,listeners:r}),i.data=v))}Zr(o,t)})}function ri(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ii(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;i.tag===5&&a!==null&&(i=a,a=at(e,n),a!=null&&r.unshift(ri(e,a,i)),a=at(e,t),a!=null&&r.push(ri(e,a,i))),e=e.return}return r}function ai(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function oi(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(c!==null&&c===r)break;s.tag===5&&l!==null&&(s=l,i?(c=at(n,a),c!=null&&o.unshift(ri(n,c,s))):i||(c=at(n,a),c!=null&&o.push(ri(n,c,s)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}function si(){}var ci=null,li=null;function ui(e,t){switch(e){case`button`:case`input`:case`select`:case`textarea`:return!!t.autoFocus}return!1}function di(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 fi=typeof setTimeout==`function`?setTimeout:void 0,pi=typeof clearTimeout==`function`?clearTimeout:void 0;function mi(e){e.nodeType===1?e.textContent=``:e.nodeType===9&&(e=e.body,e!=null&&(e.textContent=``))}function hi(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break}return e}function gi(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 _i=0;function vi(e){return{$$typeof:ie,toString:e,valueOf:e}}var yi=Math.random().toString(36).slice(2),bi=`__reactFiber$`+yi,xi=`__reactProps$`+yi,Si=`__reactContainer$`+yi,Ci=`__reactEvents$`+yi;function wi(e){var t=e[bi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Si]||n[bi]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=gi(e);e!==null;){if(n=e[bi])return n;e=gi(e)}return t}e=n,n=e.parentNode}return null}function Ti(e){return e=e[bi]||e[Si],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Ei(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(i(33))}function Di(e){return e[xi]||null}function Oi(e){var t=e[Ci];return t===void 0&&(t=e[Ci]=new Set),t}var ki=[],Ai=-1;function ji(e){return{current:e}}function G(e){0>Ai||(e.current=ki[Ai],ki[Ai]=null,Ai--)}function K(e,t){Ai++,ki[Ai]=e.current,e.current=t}var Mi={},Ni=ji(Mi),Pi=ji(!1),Fi=Mi;function Ii(e,t){var n=e.type.contextTypes;if(!n)return Mi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Li(e){return e=e.childContextTypes,e!=null}function Ri(){G(Pi),G(Ni)}function zi(e,t,n){if(Ni.current!==Mi)throw Error(i(168));K(Ni,t),K(Pi,n)}function Bi(e,t,r){var a=e.stateNode;if(e=t.childContextTypes,typeof a.getChildContext!=`function`)return r;for(var o in a=a.getChildContext(),a)if(!(o in e))throw Error(i(108,he(t)||`Unknown`,o));return n({},r,a)}function Vi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Mi,Fi=Ni.current,K(Ni,e),K(Pi,Pi.current),!0}function Hi(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=Bi(e,t,Fi),r.__reactInternalMemoizedMergedChildContext=e,G(Pi),G(Ni),K(Ni,e)):G(Pi),K(Pi,n)}var Ui=null,Wi=null,Gi=r.unstable_runWithPriority,Ki=r.unstable_scheduleCallback,qi=r.unstable_cancelCallback,Ji=r.unstable_shouldYield,Yi=r.unstable_requestPaint,Xi=r.unstable_now,Zi=r.unstable_getCurrentPriorityLevel,Qi=r.unstable_ImmediatePriority,$i=r.unstable_UserBlockingPriority,ea=r.unstable_NormalPriority,ta=r.unstable_LowPriority,na=r.unstable_IdlePriority,ra={},ia=Yi===void 0?function(){}:Yi,aa=null,oa=null,sa=!1,ca=Xi(),la=1e4>ca?Xi:function(){return Xi()-ca};function ua(){switch(Zi()){case Qi:return 99;case $i:return 98;case ea:return 97;case ta:return 96;case na:return 95;default:throw Error(i(332))}}function da(e){switch(e){case 99:return Qi;case 98:return $i;case 97:return ea;case 96:return ta;case 95:return na;default:throw Error(i(332))}}function fa(e,t){return e=da(e),Gi(e,t)}function pa(e,t,n){return e=da(e),Ki(e,t,n)}function ma(){if(oa!==null){var e=oa;oa=null,qi(e)}ha()}function ha(){if(!sa&&aa!==null){sa=!0;var e=0;try{var t=aa;fa(99,function(){for(;e<t.length;e++){var n=t[e];do n=n(!0);while(n!==null)}}),aa=null}catch(t){throw aa!==null&&(aa=aa.slice(e+1)),Ki(Qi,ma),t}finally{sa=!1}}}var ga=T.ReactCurrentBatchConfig;function _a(e,t){if(e&&e.defaultProps){for(var r in t=n({},t),e=e.defaultProps,e)t[r]===void 0&&(t[r]=e[r]);return t}return t}var va=ji(null),ya=null,ba=null,xa=null;function Sa(){xa=ba=ya=null}function Ca(e){var t=va.current;G(va),e.type._context._currentValue=t}function wa(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 Ta(e,t){ya=e,xa=ba=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(es=!0),e.firstContext=null)}function Ea(e,t){if(xa!==e&&!1!==t&&t!==0)if((typeof t!=`number`||t===1073741823)&&(xa=e,t=1073741823),t={context:e,observedBits:t,next:null},ba===null){if(ya===null)throw Error(i(308));ba=t,ya.dependencies={lanes:0,firstContext:t,responders:null}}else ba=ba.next=t;return e._currentValue}var Da=!1;function Oa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function ka(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 Aa(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ja(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 Ma(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,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 Na(e,t,r,i){var a=e.updateQueue;Da=!1;var o=a.firstBaseUpdate,s=a.lastBaseUpdate,c=a.shared.pending;if(c!==null){a.shared.pending=null;var l=c,u=l.next;l.next=null,s===null?o=u:s.next=u,s=l;var d=e.alternate;if(d!==null){d=d.updateQueue;var f=d.lastBaseUpdate;f!==s&&(f===null?d.firstBaseUpdate=u:f.next=u,d.lastBaseUpdate=l)}}if(o!==null){f=a.baseState,s=0,d=u=l=null;do{c=o.lane;var p=o.eventTime;if((i&c)===c){d!==null&&(d=d.next={eventTime:p,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});a:{var m=e,h=o;switch(c=t,p=r,h.tag){case 1:if(m=h.payload,typeof m==`function`){f=m.call(p,f,c);break a}f=m;break a;case 3:m.flags=m.flags&-4097|64;case 0:if(m=h.payload,c=typeof m==`function`?m.call(p,f,c):m,c==null)break a;f=n({},f,c);break a;case 2:Da=!0}}o.callback!==null&&(e.flags|=32,c=a.effects,c===null?a.effects=[o]:c.push(o))}else p={eventTime:p,lane:c,tag:o.tag,payload:o.payload,callback:o.callback,next:null},d===null?(u=d=p,l=f):d=d.next=p,s|=c;if(o=o.next,o===null){if(c=a.shared.pending,c===null)break;o=c.next,c.next=null,a.lastBaseUpdate=c,a.shared.pending=null}}while(1);d===null&&(l=f),a.baseState=l,a.firstBaseUpdate=u,a.lastBaseUpdate=d,tc|=s,e.lanes=s,e.memoizedState=f}}function Pa(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],a=r.callback;if(a!==null){if(r.callback=null,r=n,typeof a!=`function`)throw Error(i(191,a));a.call(r)}}}var Fa=new t.Component().refs;function Ia(e,t,r,i){t=e.memoizedState,r=r(i,t),r=r==null?t:n({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var La={isMounted:function(e){return(e=e._reactInternals)?ht(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=wc(),i=Tc(e),a=Aa(r,i);a.payload=t,n!=null&&(a.callback=n),ja(e,a),Ec(e,i,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=wc(),i=Tc(e),a=Aa(r,i);a.tag=1,a.payload=t,n!=null&&(a.callback=n),ja(e,a),Ec(e,i,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=wc(),r=Tc(e),i=Aa(n,r);i.tag=2,t!=null&&(i.callback=t),ja(e,i),Ec(e,r,n)}};function Ra(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Pr(n,r)||!Pr(i,a):!0}function za(e,t,n){var r=!1,i=Mi,a=t.contextType;return typeof a==`object`&&a?a=Ea(a):(i=Li(t)?Fi:Ni.current,r=t.contextTypes,a=(r=r!=null)?Ii(e,i):Mi),t=new t(n,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=La,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function Ba(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&&La.enqueueReplaceState(t,t.state,null)}function Va(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=Fa,Oa(e);var a=t.contextType;typeof a==`object`&&a?i.context=Ea(a):(a=Li(t)?Fi:Ni.current,i.context=Ii(e,a)),Na(e,n,i,r),i.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a==`function`&&(Ia(e,t,a,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps==`function`||typeof i.getSnapshotBeforeUpdate==`function`||typeof i.UNSAFE_componentWillMount!=`function`&&typeof i.componentWillMount!=`function`||(t=i.state,typeof i.componentWillMount==`function`&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount==`function`&&i.UNSAFE_componentWillMount(),t!==i.state&&La.enqueueReplaceState(i,i.state,null),Na(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount==`function`&&(e.flags|=4)}var Ha=Array.isArray;function Ua(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(i(309));var r=n.stateNode}if(!r)throw Error(i(147,e));var a=``+e;return t!==null&&t.ref!==null&&typeof t.ref==`function`&&t.ref._stringRef===a?t.ref:(t=function(e){var t=r.refs;t===Fa&&(t=r.refs={}),e===null?delete t[a]:t[a]=e},t._stringRef=a,t)}if(typeof e!=`string`)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function Wa(e,t){if(e.type!==`textarea`)throw Error(i(31,Object.prototype.toString.call(t)===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:t))}function Ga(e){function t(t,n){if(e){var r=t.lastEffect;r===null?t.firstEffect=t.lastEffect=n:(r.nextEffect=n,t.lastEffect=n),n.nextEffect=null,n.flags=8}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;t!==null;)t.key===null?e.set(t.index,t):e.set(t.key,t),t=t.sibling;return e}function a(e,t){return e=sl(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags=2,n):(r=r.index,r<n?(t.flags=2,n):r)):n}function s(t){return e&&t.alternate===null&&(t.flags=2),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=dl(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){return t!==null&&t.elementType===n.type?(r=a(t,n.props),r.ref=Ua(e,t,n),r.return=e,r):(r=cl(n.type,n.key,n.props,null,e.mode,r),r.ref=Ua(e,t,n),r.return=e,r)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=fl(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=ll(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`||typeof t==`number`)return t=dl(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case E:return n=cl(t.type,t.key,t.props,null,e.mode,n),n.ref=Ua(e,null,t),n.return=e,n;case D:return t=fl(t,e.mode,n),t.return=e,t}if(Ha(t)||le(t))return t=ll(t,e.mode,n,null),t.return=e,t;Wa(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`||typeof n==`number`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case E:return n.key===i?n.type===O?d(e,t,n.props.children,r,i):l(e,t,n,r):null;case D:return n.key===i?u(e,t,n,r):null}if(Ha(n)||le(n))return i===null?d(e,t,n,r,null):null;Wa(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`||typeof r==`number`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case E:return e=e.get(r.key===null?n:r.key)||null,r.type===O?d(t,e,r.props.children,i,r.key):l(t,e,r,i);case D:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i)}if(Ha(r)||le(r))return e=e.get(n)||null,d(t,e,r,i,null);Wa(t,r)}return null}function h(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return l}for(d=r(i,d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),l}function g(a,s,c,l){var u=le(c);if(typeof u!=`function`)throw Error(i(150));if(c=u.call(c),c==null)throw Error(i(151));for(var d=u=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return u}for(h=r(a,h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),u}return function(e,r,o,c){var l=typeof o==`object`&&!!o&&o.type===O&&o.key===null;l&&(o=o.props.children);var u=typeof o==`object`&&!!o;if(u)switch(o.$$typeof){case E:a:{for(u=o.key,l=r;l!==null;){if(l.key===u){switch(l.tag){case 7:if(o.type===O){n(e,l.sibling),r=a(l,o.props.children),r.return=e,e=r;break a}break;default:if(l.elementType===o.type){n(e,l.sibling),r=a(l,o.props),r.ref=Ua(e,l,o),r.return=e,e=r;break a}}n(e,l);break}else t(e,l);l=l.sibling}o.type===O?(r=ll(o.props.children,e.mode,c,o.key),r.return=e,e=r):(c=cl(o.type,o.key,o.props,null,e.mode,c),c.ref=Ua(e,r,o),c.return=e,e=c)}return s(e);case D:a:{for(l=o.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),r=a(r,o.children||[]),r.return=e,e=r;break a}else{n(e,r);break}else t(e,r);r=r.sibling}r=fl(o,e.mode,c),r.return=e,e=r}return s(e)}if(typeof o==`string`||typeof o==`number`)return o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),r=a(r,o),r.return=e,e=r):(n(e,r),r=dl(o,e.mode,c),r.return=e,e=r),s(e);if(Ha(o))return h(e,r,o,c);if(le(o))return g(e,r,o,c);if(u&&Wa(e,o),o===void 0&&!l)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(i(152,he(e.type)||`Component`))}return n(e,r)}}var Ka=Ga(!0),qa=Ga(!1),Ja={},Ya=ji(Ja),Xa=ji(Ja),Za=ji(Ja);function Qa(e){if(e===Ja)throw Error(i(174));return e}function $a(e,t){switch(K(Za,t),K(Xa,e),K(Ya,Ja),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Pe(null,``);break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Pe(t,e)}G(Ya),K(Ya,t)}function eo(){G(Ya),G(Xa),G(Za)}function to(e){Qa(Za.current);var t=Qa(Ya.current),n=Pe(t,e.type);t!==n&&(K(Xa,e),K(Ya,n))}function no(e){Xa.current===e&&(G(Ya),G(Xa))}var q=ji(0);function ro(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 io=null,ao=null,oo=!1;function so(e,t){var n=il(5,null,null,0);n.elementType=`DELETED`,n.type=`DELETED`,n.stateNode=t,n.return=e,n.flags=8,e.lastEffect===null?e.firstEffect=e.lastEffect=n:(e.lastEffect.nextEffect=n,e.lastEffect=n)}function co(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?!1:(e.stateNode=t,!0);case 6:return t=e.pendingProps===``||t.nodeType!==3?null:t,t===null?!1:(e.stateNode=t,!0);case 13:return!1;default:return!1}}function lo(e){if(oo){var t=ao;if(t){var n=t;if(!co(e,t)){if(t=hi(n.nextSibling),!t||!co(e,t)){e.flags=e.flags&-1025|2,oo=!1,io=e;return}so(io,n)}io=e,ao=hi(t.firstChild)}else e.flags=e.flags&-1025|2,oo=!1,io=e}}function uo(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;io=e}function fo(e){if(e!==io)return!1;if(!oo)return uo(e),oo=!0,!1;var t=e.type;if(e.tag!==5||t!==`head`&&t!==`body`&&!di(t,e.memoizedProps))for(t=ao;t;)so(e,t),t=hi(t.nextSibling);if(uo(e),e.tag===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));a:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`){if(t===0){ao=hi(e.nextSibling);break a}t--}else n!==`$`&&n!==`$!`&&n!==`$?`||t++}e=e.nextSibling}ao=null}}else ao=io?hi(e.stateNode.nextSibling):null;return!0}function po(){ao=io=null,oo=!1}var mo=[];function ho(){for(var e=0;e<mo.length;e++)mo[e]._workInProgressVersionPrimary=null;mo.length=0}var go=T.ReactCurrentDispatcher,_o=T.ReactCurrentBatchConfig,vo=0,J=null,yo=null,Y=null,bo=!1,xo=!1;function So(){throw Error(i(321))}function Co(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Mr(e[n],t[n]))return!1;return!0}function wo(e,t,n,r,a,o){if(vo=o,J=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,go.current=e===null||e.memoizedState===null?Xo:Zo,e=n(r,a),xo){o=0;do{if(xo=!1,!(25>o))throw Error(i(301));o+=1,Y=yo=null,t.updateQueue=null,go.current=Qo,e=n(r,a)}while(xo)}if(go.current=Yo,t=yo!==null&&yo.next!==null,vo=0,Y=yo=J=null,bo=!1,t)throw Error(i(300));return e}function To(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Y===null?J.memoizedState=Y=e:Y=Y.next=e,Y}function Eo(){if(yo===null){var e=J.alternate;e=e===null?null:e.memoizedState}else e=yo.next;var t=Y===null?J.memoizedState:Y.next;if(t!==null)Y=t,yo=e;else{if(e===null)throw Error(i(310));yo=e,e={memoizedState:yo.memoizedState,baseState:yo.baseState,baseQueue:yo.baseQueue,queue:yo.queue,next:null},Y===null?J.memoizedState=Y=e:Y=Y.next=e}return Y}function Do(e,t){return typeof t==`function`?t(e):t}function Oo(e){var t=Eo(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=yo,a=r.baseQueue,o=n.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}r.baseQueue=a=o,n.pending=null}if(a!==null){a=a.next,r=r.baseState;var c=s=o=null,l=a;do{var u=l.lane;if((vo&u)===u)c!==null&&(c=c.next={lane:0,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null}),r=l.eagerReducer===e?l.eagerState:e(r,l.action);else{var d={lane:u,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null};c===null?(s=c=d,o=r):c=c.next=d,J.lanes|=u,tc|=u}l=l.next}while(l!==null&&l!==a);c===null?o=r:c.next=s,Mr(r,t.memoizedState)||(es=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=c,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function ko(e){var t=Eo(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);Mr(o,t.memoizedState)||(es=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Ao(e,t,n){var r=t._getVersion;r=r(t._source);var a=t._workInProgressVersionPrimary;if(a===null?(e=e.mutableReadLanes,(e=(vo&e)===e)&&(t._workInProgressVersionPrimary=r,mo.push(t))):e=a===r,e)return n(t._source);throw mo.push(t),Error(i(350))}function jo(e,t,n,r){var a=Ys;if(a===null)throw Error(i(349));var o=t._getVersion,s=o(t._source),c=go.current,l=c.useState(function(){return Ao(a,t,n)}),u=l[1],d=l[0];l=Y;var f=e.memoizedState,p=f.refs,m=p.getSnapshot,h=f.source;f=f.subscribe;var g=J;return e.memoizedState={refs:p,source:t,subscribe:r},c.useEffect(function(){p.getSnapshot=n,p.setSnapshot=u;var e=o(t._source);if(!Mr(s,e)){e=n(t._source),Mr(d,e)||(u(e),e=Tc(g),a.mutableReadLanes|=e&a.pendingLanes),e=a.mutableReadLanes,a.entangledLanes|=e;for(var r=a.entanglements,i=e;0<i;){var c=31-pn(i),l=1<<c;r[c]|=e,i&=~l}}},[n,t,r]),c.useEffect(function(){return r(t._source,function(){var e=p.getSnapshot,n=p.setSnapshot;try{n(e(t._source));var r=Tc(g);a.mutableReadLanes|=r&a.pendingLanes}catch(e){n(function(){throw e})}})},[t,r]),Mr(m,n)&&Mr(h,t)&&Mr(f,r)||(e={pending:null,dispatch:null,lastRenderedReducer:Do,lastRenderedState:d},e.dispatch=u=Jo.bind(null,J,e),l.queue=e,l.baseQueue=null,d=Ao(a,t,n),l.memoizedState=l.baseState=d),d}function Mo(e,t,n){return jo(Eo(),e,t,n)}function No(e){var t=To();return typeof e==`function`&&(e=e()),t.memoizedState=t.baseState=e,e=t.queue={pending:null,dispatch:null,lastRenderedReducer:Do,lastRenderedState:e},e=e.dispatch=Jo.bind(null,J,e),[t.memoizedState,e]}function Po(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=J.updateQueue,t===null?(t={lastEffect:null},J.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 Fo(e){var t=To();return e={current:e},t.memoizedState=e}function Io(){return Eo().memoizedState}function Lo(e,t,n,r){var i=To();J.flags|=e,i.memoizedState=Po(1|t,n,void 0,r===void 0?null:r)}function Ro(e,t,n,r){var i=Eo();r=r===void 0?null:r;var a=void 0;if(yo!==null){var o=yo.memoizedState;if(a=o.destroy,r!==null&&Co(r,o.deps)){Po(t,n,a,r);return}}J.flags|=e,i.memoizedState=Po(1|t,n,a,r)}function zo(e,t){return Lo(516,4,e,t)}function Bo(e,t){return Ro(516,4,e,t)}function Vo(e,t){return Ro(4,2,e,t)}function Ho(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 Uo(e,t,n){return n=n==null?null:n.concat([e]),Ro(4,2,Ho.bind(null,t,e),n)}function Wo(){}function Go(e,t){var n=Eo();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Co(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ko(e,t){var n=Eo();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Co(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function qo(e,t){var n=ua();fa(98>n?98:n,function(){e(!0)}),fa(97<n?97:n,function(){var n=_o.transition;_o.transition=1;try{e(!1),t()}finally{_o.transition=n}})}function Jo(e,t,n){var r=wc(),i=Tc(e),a={lane:i,action:n,eagerReducer:null,eagerState:null,next:null},o=t.pending;if(o===null?a.next=a:(a.next=o.next,o.next=a),t.pending=a,o=e.alternate,e===J||o!==null&&o===J)xo=bo=!0;else{if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,c=o(s,n);if(a.eagerReducer=o,a.eagerState=c,Mr(c,s))return}catch{}Ec(e,i,r)}}var Yo={readContext:Ea,useCallback:So,useContext:So,useEffect:So,useImperativeHandle:So,useLayoutEffect:So,useMemo:So,useReducer:So,useRef:So,useState:So,useDebugValue:So,useDeferredValue:So,useTransition:So,useMutableSource:So,useOpaqueIdentifier:So,unstable_isNewReconciler:!1},Xo={readContext:Ea,useCallback:function(e,t){return To().memoizedState=[e,t===void 0?null:t],e},useContext:Ea,useEffect:zo,useImperativeHandle:function(e,t,n){return n=n==null?null:n.concat([e]),Lo(4,2,Ho.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Lo(4,2,e,t)},useMemo:function(e,t){var n=To();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=To();return t=n===void 0?t:n(t),r.memoizedState=r.baseState=t,e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},e=e.dispatch=Jo.bind(null,J,e),[r.memoizedState,e]},useRef:Fo,useState:No,useDebugValue:Wo,useDeferredValue:function(e){var t=No(e),n=t[0],r=t[1];return zo(function(){var t=_o.transition;_o.transition=1;try{r(e)}finally{_o.transition=t}},[e]),n},useTransition:function(){var e=No(!1),t=e[0];return e=qo.bind(null,e[1]),Fo(e),[e,t]},useMutableSource:function(e,t,n){var r=To();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},jo(r,e,t,n)},useOpaqueIdentifier:function(){if(oo){var e=!1,t=vi(function(){throw e||(e=!0,n(`r:`+(_i++).toString(36))),Error(i(355))}),n=No(t)[1];return!(J.mode&2)&&(J.flags|=516,Po(5,function(){n(`r:`+(_i++).toString(36))},void 0,null)),t}return t=`r:`+(_i++).toString(36),No(t),t},unstable_isNewReconciler:!1},Zo={readContext:Ea,useCallback:Go,useContext:Ea,useEffect:Bo,useImperativeHandle:Uo,useLayoutEffect:Vo,useMemo:Ko,useReducer:Oo,useRef:Io,useState:function(){return Oo(Do)},useDebugValue:Wo,useDeferredValue:function(e){var t=Oo(Do),n=t[0],r=t[1];return Bo(function(){var t=_o.transition;_o.transition=1;try{r(e)}finally{_o.transition=t}},[e]),n},useTransition:function(){var e=Oo(Do)[0];return[Io().current,e]},useMutableSource:Mo,useOpaqueIdentifier:function(){return Oo(Do)[0]},unstable_isNewReconciler:!1},Qo={readContext:Ea,useCallback:Go,useContext:Ea,useEffect:Bo,useImperativeHandle:Uo,useLayoutEffect:Vo,useMemo:Ko,useReducer:ko,useRef:Io,useState:function(){return ko(Do)},useDebugValue:Wo,useDeferredValue:function(e){var t=ko(Do),n=t[0],r=t[1];return Bo(function(){var t=_o.transition;_o.transition=1;try{r(e)}finally{_o.transition=t}},[e]),n},useTransition:function(){var e=ko(Do)[0];return[Io().current,e]},useMutableSource:Mo,useOpaqueIdentifier:function(){return ko(Do)[0]},unstable_isNewReconciler:!1},$o=T.ReactCurrentOwner,es=!1;function ts(e,t,n,r){t.child=e===null?qa(t,null,n,r):Ka(t,e.child,n,r)}function ns(e,t,n,r,i){n=n.render;var a=t.ref;return Ta(t,i),r=wo(e,t,n,r,a,i),e!==null&&!es?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,ys(e,t,i)):(t.flags|=1,ts(e,t,r,i),t.child)}function rs(e,t,n,r,i,a){if(e===null){var o=n.type;return typeof o==`function`&&!al(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,is(e,t,o,r,i,a)):(e=cl(n.type,null,r,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}return o=e.child,(i&a)===0&&(i=o.memoizedProps,n=n.compare,n=n===null?Pr:n,n(i,r)&&e.ref===t.ref)?ys(e,t,a):(t.flags|=1,e=sl(o,r),e.ref=t.ref,e.return=t,t.child=e)}function is(e,t,n,r,i,a){if(e!==null&&Pr(e.memoizedProps,r)&&e.ref===t.ref)if(es=!1,(a&i)!==0)e.flags&16384&&(es=!0);else return t.lanes=e.lanes,ys(e,t,a);return ss(e,t,n,r,a)}function as(e,t,n){var r=t.pendingProps,i=r.children,a=e===null?null:e.memoizedState;if(r.mode===`hidden`||r.mode===`unstable-defer-without-hiding`)if(!(t.mode&4))t.memoizedState={baseLanes:0},Fc(t,n);else if(n&1073741824)t.memoizedState={baseLanes:0},Fc(t,a===null?n:a.baseLanes);else return e=a===null?n:a.baseLanes|n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},Fc(t,e),null;else a===null?r=n:(r=a.baseLanes|n,t.memoizedState=null),Fc(t,r);return ts(e,t,i,n),t.child}function os(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=128)}function ss(e,t,n,r,i){var a=Li(n)?Fi:Ni.current;return a=Ii(t,a),Ta(t,i),n=wo(e,t,n,r,a,i),e!==null&&!es?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,ys(e,t,i)):(t.flags|=1,ts(e,t,n,i),t.child)}function cs(e,t,n,r,i){if(Li(n)){var a=!0;Vi(t)}else a=!1;if(Ta(t,i),t.stateNode===null)e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),za(t,n,r),Va(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,s=t.memoizedProps;o.props=s;var c=o.context,l=n.contextType;typeof l==`object`&&l?l=Ea(l):(l=Li(n)?Fi:Ni.current,l=Ii(t,l));var u=n.getDerivedStateFromProps,d=typeof u==`function`||typeof o.getSnapshotBeforeUpdate==`function`;d||typeof o.UNSAFE_componentWillReceiveProps!=`function`&&typeof o.componentWillReceiveProps!=`function`||(s!==r||c!==l)&&Ba(t,o,r,l),Da=!1;var f=t.memoizedState;o.state=f,Na(t,r,o,i),c=t.memoizedState,s!==r||f!==c||Pi.current||Da?(typeof u==`function`&&(Ia(t,n,u,r),c=t.memoizedState),(s=Da||Ra(t,n,s,r,f,c,l))?(d||typeof o.UNSAFE_componentWillMount!=`function`&&typeof o.componentWillMount!=`function`||(typeof o.componentWillMount==`function`&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount==`function`&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount==`function`&&(t.flags|=4)):(typeof o.componentDidMount==`function`&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=c),o.props=r,o.state=c,o.context=l,r=s):(typeof o.componentDidMount==`function`&&(t.flags|=4),r=!1)}else{o=t.stateNode,ka(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:_a(t.type,s),o.props=l,d=t.pendingProps,f=o.context,c=n.contextType,typeof c==`object`&&c?c=Ea(c):(c=Li(n)?Fi:Ni.current,c=Ii(t,c));var p=n.getDerivedStateFromProps;(u=typeof p==`function`||typeof o.getSnapshotBeforeUpdate==`function`)||typeof o.UNSAFE_componentWillReceiveProps!=`function`&&typeof o.componentWillReceiveProps!=`function`||(s!==d||f!==c)&&Ba(t,o,r,c),Da=!1,f=t.memoizedState,o.state=f,Na(t,r,o,i);var m=t.memoizedState;s!==d||f!==m||Pi.current||Da?(typeof p==`function`&&(Ia(t,n,p,r),m=t.memoizedState),(l=Da||Ra(t,n,l,r,f,m,c))?(u||typeof o.UNSAFE_componentWillUpdate!=`function`&&typeof o.componentWillUpdate!=`function`||(typeof o.componentWillUpdate==`function`&&o.componentWillUpdate(r,m,c),typeof o.UNSAFE_componentWillUpdate==`function`&&o.UNSAFE_componentWillUpdate(r,m,c)),typeof o.componentDidUpdate==`function`&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate==`function`&&(t.flags|=256)):(typeof o.componentDidUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=m),o.props=r,o.state=m,o.context=c,r=l):(typeof o.componentDidUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=256),r=!1)}return ls(e,t,n,r,a,i)}function ls(e,t,n,r,i,a){os(e,t);var o=(t.flags&64)!=0;if(!r&&!o)return i&&Hi(t,n,!1),ys(e,t,a);r=t.stateNode,$o.current=t;var s=o&&typeof n.getDerivedStateFromError!=`function`?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Ka(t,e.child,null,a),t.child=Ka(t,null,s,a)):ts(e,t,s,a),t.memoizedState=r.state,i&&Hi(t,n,!0),t.child}function us(e){var t=e.stateNode;t.pendingContext?zi(e,t.pendingContext,t.pendingContext!==t.context):t.context&&zi(e,t.context,!1),$a(e,t.containerInfo)}var ds={dehydrated:null,retryLane:0};function fs(e,t,n){var r=t.pendingProps,i=q.current,a=!1,o;return(o=(t.flags&64)!=0)||(o=e!==null&&e.memoizedState===null?!1:(i&2)!=0),o?(a=!0,t.flags&=-65):e!==null&&e.memoizedState===null||r.fallback===void 0||!0===r.unstable_avoidThisFallback||(i|=1),K(q,i&1),e===null?(r.fallback!==void 0&&lo(t),e=r.children,i=r.fallback,a?(e=ps(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=ds,e):typeof r.unstable_expectedLoadTime==`number`?(e=ps(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=ds,t.lanes=33554432,e):(n=ul({mode:`visible`,children:e},t.mode,n,null),n.return=t,t.child=n)):(e.memoizedState,a?(r=hs(e,t,r.children,r.fallback,n),a=t.child,i=e.child.memoizedState,a.memoizedState=i===null?{baseLanes:n}:{baseLanes:i.baseLanes|n},a.childLanes=e.childLanes&~n,t.memoizedState=ds,r):(n=ms(e,t,r.children,n),t.memoizedState=null,n))}function ps(e,t,n,r){var i=e.mode,a=e.child;return t={mode:`hidden`,children:t},!(i&2)&&a!==null?(a.childLanes=0,a.pendingProps=t):a=ul(t,i,0,null),n=ll(n,i,r,null),a.return=e,n.return=e,a.sibling=n,e.child=a,n}function ms(e,t,n,r){var i=e.child;return e=i.sibling,n=sl(i,{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 hs(e,t,n,r,i){var a=t.mode,o=e.child;e=o.sibling;var s={mode:`hidden`,children:n};return!(a&2)&&t.child!==o?(n=t.child,n.childLanes=0,n.pendingProps=s,o=n.lastEffect,o===null?t.firstEffect=t.lastEffect=null:(t.firstEffect=n.firstEffect,t.lastEffect=o,o.nextEffect=null)):n=sl(o,s),e===null?(r=ll(r,a,i,null),r.flags|=2):r=sl(e,r),r.return=t,n.return=t,n.sibling=r,t.child=n,r}function gs(e,t){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),wa(e.return,t)}function _s(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,lastEffect:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.lastEffect=a)}function vs(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(ts(e,t,r.children,n),r=q.current,r&2)r=r&1|2,t.flags|=64;else{if(e!==null&&e.flags&64)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&gs(e,n);else if(e.tag===19)gs(e,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(K(q,r),!(t.mode&2))t.memoizedState=null;else switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&ro(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),_s(t,!1,i,n,a,t.lastEffect);break;case`backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&ro(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}_s(t,!0,n,null,a,t.lastEffect);break;case`together`:_s(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function ys(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),tc|=t.lanes,(n&t.childLanes)!==0){if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=sl(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=sl(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}return null}var bs=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}},xs=function(e,t,r,i){var a=e.memoizedProps;if(a!==i){e=t.stateNode,Qa(Ya.current);var s=null;switch(r){case`input`:a=ye(e,a),i=ye(e,i),s=[];break;case`option`:a=Ee(e,a),i=Ee(e,i),s=[];break;case`select`:a=n({},a,{value:void 0}),i=n({},i,{value:void 0}),s=[];break;case`textarea`:a=Oe(e,a),i=Oe(e,i),s=[];break;default:typeof a.onClick!=`function`&&typeof i.onClick==`function`&&(e.onclick=si)}He(r,i);var c;for(d in r=null,a)if(!i.hasOwnProperty(d)&&a.hasOwnProperty(d)&&a[d]!=null)if(d===`style`){var l=a[d];for(c in l)l.hasOwnProperty(c)&&(r||={},r[c]=``)}else d!==`dangerouslySetInnerHTML`&&d!==`children`&&d!==`suppressContentEditableWarning`&&d!==`suppressHydrationWarning`&&d!==`autoFocus`&&(o.hasOwnProperty(d)?s||=[]:(s||=[]).push(d,null));for(d in i){var u=i[d];if(l=a?.[d],i.hasOwnProperty(d)&&u!==l&&(u!=null||l!=null))if(d===`style`)if(l){for(c in l)!l.hasOwnProperty(c)||u&&u.hasOwnProperty(c)||(r||={},r[c]=``);for(c in u)u.hasOwnProperty(c)&&l[c]!==u[c]&&(r||={},r[c]=u[c])}else r||(s||=[],s.push(d,r)),r=u;else d===`dangerouslySetInnerHTML`?(u=u?u.__html:void 0,l=l?l.__html:void 0,u!=null&&l!==u&&(s||=[]).push(d,u)):d===`children`?typeof u!=`string`&&typeof u!=`number`||(s||=[]).push(d,``+u):d!==`suppressContentEditableWarning`&&d!==`suppressHydrationWarning`&&(o.hasOwnProperty(d)?(u!=null&&d===`onScroll`&&W(`scroll`,e),s||l===u||(s=[])):typeof u==`object`&&u&&u.$$typeof===ie?u.toString():(s||=[]).push(d,u))}r&&(s||=[]).push(`style`,r);var d=s;(t.updateQueue=d)&&(t.flags|=4)}},Ss=function(e,t,n,r){n!==r&&(t.flags|=4)};function Cs(e,t){if(!oo)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 ws(e,t,r){var a=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 Li(t.type)&&Ri(),null;case 3:return eo(),G(Pi),G(Ni),ho(),a=t.stateNode,a.pendingContext&&=(a.context=a.pendingContext,null),(e===null||e.child===null)&&(fo(t)?t.flags|=4:a.hydrate||(t.flags|=256)),null;case 5:no(t);var s=Qa(Za.current);if(r=t.type,e!==null&&t.stateNode!=null)xs(e,t,r,a,s),e.ref!==t.ref&&(t.flags|=128);else{if(!a){if(t.stateNode===null)throw Error(i(166));return null}if(e=Qa(Ya.current),fo(t)){a=t.stateNode,r=t.type;var c=t.memoizedProps;switch(a[bi]=t,a[xi]=c,r){case`dialog`:W(`cancel`,a),W(`close`,a);break;case`iframe`:case`object`:case`embed`:W(`load`,a);break;case`video`:case`audio`:for(e=0;e<Jr.length;e++)W(Jr[e],a);break;case`source`:W(`error`,a);break;case`img`:case`image`:case`link`:W(`error`,a),W(`load`,a);break;case`details`:W(`toggle`,a);break;case`input`:be(a,c),W(`invalid`,a);break;case`select`:a._wrapperState={wasMultiple:!!c.multiple},W(`invalid`,a);break;case`textarea`:ke(a,c),W(`invalid`,a)}for(var l in He(r,c),e=null,c)c.hasOwnProperty(l)&&(s=c[l],l===`children`?typeof s==`string`?a.textContent!==s&&(e=[`children`,s]):typeof s==`number`&&a.textContent!==``+s&&(e=[`children`,``+s]):o.hasOwnProperty(l)&&s!=null&&l===`onScroll`&&W(`scroll`,a));switch(r){case`input`:R(a),Ce(a,c,!0);break;case`textarea`:R(a),je(a);break;case`select`:case`option`:break;default:typeof c.onClick==`function`&&(a.onclick=si)}a=e,t.updateQueue=a,a!==null&&(t.flags|=4)}else{switch(l=s.nodeType===9?s:s.ownerDocument,e===Me.html&&(e=Ne(r)),e===Me.html?r===`script`?(e=l.createElement(`div`),e.innerHTML=`<script><\/script>`,e=e.removeChild(e.firstChild)):typeof a.is==`string`?e=l.createElement(r,{is:a.is}):(e=l.createElement(r),r===`select`&&(l=e,a.multiple?l.multiple=!0:a.size&&(l.size=a.size))):e=l.createElementNS(e,r),e[bi]=t,e[xi]=a,bs(e,t,!1,!1),t.stateNode=e,l=Ue(r,a),r){case`dialog`:W(`cancel`,e),W(`close`,e),s=a;break;case`iframe`:case`object`:case`embed`:W(`load`,e),s=a;break;case`video`:case`audio`:for(s=0;s<Jr.length;s++)W(Jr[s],e);s=a;break;case`source`:W(`error`,e),s=a;break;case`img`:case`image`:case`link`:W(`error`,e),W(`load`,e),s=a;break;case`details`:W(`toggle`,e),s=a;break;case`input`:be(e,a),s=ye(e,a),W(`invalid`,e);break;case`option`:s=Ee(e,a);break;case`select`:e._wrapperState={wasMultiple:!!a.multiple},s=n({},a,{value:void 0}),W(`invalid`,e);break;case`textarea`:ke(e,a),s=Oe(e,a),W(`invalid`,e);break;default:s=a}He(r,s);var u=s;for(c in u)if(u.hasOwnProperty(c)){var d=u[c];c===`style`?Be(e,d):c===`dangerouslySetInnerHTML`?(d=d?d.__html:void 0,d!=null&&Ie(e,d)):c===`children`?typeof d==`string`?(r!==`textarea`||d!==``)&&Le(e,d):typeof d==`number`&&Le(e,``+d):c!==`suppressContentEditableWarning`&&c!==`suppressHydrationWarning`&&c!==`autoFocus`&&(o.hasOwnProperty(c)?d!=null&&c===`onScroll`&&W(`scroll`,e):d!=null&&w(e,c,d,l))}switch(r){case`input`:R(e),Ce(e,a,!1);break;case`textarea`:R(e),je(e);break;case`option`:a.value!=null&&e.setAttribute(`value`,``+I(a.value));break;case`select`:e.multiple=!!a.multiple,c=a.value,c==null?a.defaultValue!=null&&De(e,!!a.multiple,a.defaultValue,!0):De(e,!!a.multiple,c,!1);break;default:typeof s.onClick==`function`&&(e.onclick=si)}ui(r,a)&&(t.flags|=4)}t.ref!==null&&(t.flags|=128)}return null;case 6:if(e&&t.stateNode!=null)Ss(e,t,e.memoizedProps,a);else{if(typeof a!=`string`&&t.stateNode===null)throw Error(i(166));r=Qa(Za.current),Qa(Ya.current),fo(t)?(a=t.stateNode,r=t.memoizedProps,a[bi]=t,a.nodeValue!==r&&(t.flags|=4)):(a=(r.nodeType===9?r:r.ownerDocument).createTextNode(a),a[bi]=t,t.stateNode=a)}return null;case 13:return G(q),a=t.memoizedState,t.flags&64?(t.lanes=r,t):(a=a!==null,r=!1,e===null?t.memoizedProps.fallback!==void 0&&fo(t):r=e.memoizedState!==null,a&&!r&&t.mode&2&&(e===null&&!0!==t.memoizedProps.unstable_avoidThisFallback||q.current&1?Q===0&&(Q=3):((Q===0||Q===3)&&(Q=4),Ys===null||!(tc&134217727)&&!(nc&134217727)||Ac(Ys,Xs))),(a||r)&&(t.flags|=4),null);case 4:return eo(),e===null&&$r(t.stateNode.containerInfo),null;case 10:return Ca(t),null;case 17:return Li(t.type)&&Ri(),null;case 19:if(G(q),a=t.memoizedState,a===null)return null;if(c=(t.flags&64)!=0,l=a.rendering,l===null)if(c)Cs(a,!1);else{if(Q!==0||e!==null&&e.flags&64)for(e=t.child;e!==null;){if(l=ro(e),l!==null){for(t.flags|=64,Cs(a,!1),c=l.updateQueue,c!==null&&(t.updateQueue=c,t.flags|=4),a.lastEffect===null&&(t.firstEffect=null),t.lastEffect=a.lastEffect,a=r,r=t.child;r!==null;)c=r,e=a,c.flags&=2,c.nextEffect=null,c.firstEffect=null,c.lastEffect=null,l=c.alternate,l===null?(c.childLanes=0,c.lanes=e,c.child=null,c.memoizedProps=null,c.memoizedState=null,c.updateQueue=null,c.dependencies=null,c.stateNode=null):(c.childLanes=l.childLanes,c.lanes=l.lanes,c.child=l.child,c.memoizedProps=l.memoizedProps,c.memoizedState=l.memoizedState,c.updateQueue=l.updateQueue,c.type=l.type,e=l.dependencies,c.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return K(q,q.current&1|2),t.child}e=e.sibling}a.tail!==null&&la()>oc&&(t.flags|=64,c=!0,Cs(a,!1),t.lanes=33554432)}else{if(!c)if(e=ro(l),e!==null){if(t.flags|=64,c=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Cs(a,!0),a.tail===null&&a.tailMode===`hidden`&&!l.alternate&&!oo)return t=t.lastEffect=a.lastEffect,t!==null&&(t.nextEffect=null),null}else 2*la()-a.renderingStartTime>oc&&r!==1073741824&&(t.flags|=64,c=!0,Cs(a,!1),t.lanes=33554432);a.isBackwards?(l.sibling=t.child,t.child=l):(r=a.last,r===null?t.child=l:r.sibling=l,a.last=l)}return a.tail===null?null:(r=a.tail,a.rendering=r,a.tail=r.sibling,a.lastEffect=t.lastEffect,a.renderingStartTime=la(),r.sibling=null,t=q.current,K(q,c?t&1|2:t&1),r);case 23:case 24:return Ic(),e!==null&&e.memoizedState!==null!=(t.memoizedState!==null)&&a.mode!==`unstable-defer-without-hiding`&&(t.flags|=4),null}throw Error(i(156,t.tag))}function Ts(e){switch(e.tag){case 1:Li(e.type)&&Ri();var t=e.flags;return t&4096?(e.flags=t&-4097|64,e):null;case 3:if(eo(),G(Pi),G(Ni),ho(),t=e.flags,t&64)throw Error(i(285));return e.flags=t&-4097|64,e;case 5:return no(e),null;case 13:return G(q),t=e.flags,t&4096?(e.flags=t&-4097|64,e):null;case 19:return G(q),null;case 4:return eo(),null;case 10:return Ca(e),null;case 23:case 24:return Ic(),null;default:return null}}function Es(e,t){try{var n=``,r=t;do n+=me(r),r=r.return;while(r);var i=n}catch(e){i=`
|
|
6
|
+
Error generating stack: `+e.message+`
|
|
7
|
+
`+e.stack}return{value:e,source:t,stack:i}}function Ds(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var Os=typeof WeakMap==`function`?WeakMap:Map;function ks(e,t,n){n=Aa(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){cc||(cc=!0,lc=r),Ds(e,t)},n}function As(e,t,n){n=Aa(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r==`function`){var i=t.value;n.payload=function(){return Ds(e,t),r(i)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch==`function`&&(n.callback=function(){typeof r!=`function`&&(uc===null?uc=new Set([this]):uc.add(this),Ds(e,t));var n=t.stack;this.componentDidCatch(t.value,{componentStack:n===null?``:n})}),n}var js=typeof WeakSet==`function`?WeakSet:Set;function Ms(e){var t=e.ref;if(t!==null)if(typeof t==`function`)try{t(null)}catch(t){$c(e,t)}else t.current=null}function Ns(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:_a(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:t.flags&256&&mi(t.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(i(163))}function Ps(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(t=n.updateQueue,t=t===null?null:t.lastEffect,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?null:t.lastEffect,t!==null){e=t=t.next;do{var a=e;r=a.next,a=a.tag,a&4&&a&1&&(Xc(n,e),Yc(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:_a(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),t=n.updateQueue,t!==null&&Pa(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}Pa(n,t,e)}return;case 5:e=n.stateNode,t===null&&n.flags&4&&ui(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&&Ut(n))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(i(163))}function Fs(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 i=n.memoizedProps.style;i=i!=null&&i.hasOwnProperty(`display`)?i.display:null,r.style.display=ze(`display`,i)}}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 Is(e,t){if(Wi&&typeof Wi.onCommitFiberUnmount==`function`)try{Wi.onCommitFiberUnmount(Ui,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,i=r.destroy;if(r=r.tag,i!==void 0)if(r&4)Xc(t,n);else{r=t;try{i()}catch(e){$c(r,e)}}n=n.next}while(n!==e)}break;case 1:if(Ms(t),e=t.stateNode,typeof e.componentWillUnmount==`function`)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){$c(t,e)}break;case 5:Ms(t);break;case 4:Hs(e,t)}}function Ls(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 Rs(e){return e.tag===5||e.tag===3||e.tag===4}function zs(e){a:{for(var t=e.return;t!==null;){if(Rs(t))break a;t=t.return}throw Error(i(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(i(161))}n.flags&16&&(Le(t,``),n.flags&=-17);a:b:for(n=e;;){for(;n.sibling===null;){if(n.return===null||Rs(n.return)){n=null;break a}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 b;n.child.return=n,n=n.child}if(!(n.flags&2)){n=n.stateNode;break a}}r?Bs(e,n,t):Vs(e,n,t)}function Bs(e,t,n){var r=e.tag,i=r===5||r===6;if(i)e=i?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=si));else if(r!==4&&(e=e.child,e!==null))for(Bs(e,t,n),e=e.sibling;e!==null;)Bs(e,t,n),e=e.sibling}function Vs(e,t,n){var r=e.tag,i=r===5||r===6;if(i)e=i?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Vs(e,t,n),e=e.sibling;e!==null;)Vs(e,t,n),e=e.sibling}function Hs(e,t){for(var n=t,r=!1,a,o;;){if(!r){r=n.return;a:for(;;){if(r===null)throw Error(i(160));switch(a=r.stateNode,r.tag){case 5:o=!1;break a;case 3:a=a.containerInfo,o=!0;break a;case 4:a=a.containerInfo,o=!0;break a}r=r.return}r=!0}if(n.tag===5||n.tag===6){a:for(var s=e,c=n,l=c;;)if(Is(s,l),l.child!==null&&l.tag!==4)l.child.return=l,l=l.child;else{if(l===c)break a;for(;l.sibling===null;){if(l.return===null||l.return===c)break a;l=l.return}l.sibling.return=l.return,l=l.sibling}o?(s=a,c=n.stateNode,s.nodeType===8?s.parentNode.removeChild(c):s.removeChild(c)):a.removeChild(n.stateNode)}else if(n.tag===4){if(n.child!==null){a=n.stateNode.containerInfo,o=!0,n.child.return=n,n=n.child;continue}}else if(Is(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 Us(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(n=n===null?null:n.lastEffect,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 a=e===null?r:e.memoizedProps;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,o!==null){for(n[xi]=r,e===`input`&&r.type===`radio`&&r.name!=null&&xe(n,r),Ue(e,a),t=Ue(e,r),a=0;a<o.length;a+=2){var s=o[a],c=o[a+1];s===`style`?Be(n,c):s===`dangerouslySetInnerHTML`?Ie(n,c):s===`children`?Le(n,c):w(n,s,c,t)}switch(e){case`input`:Se(n,r);break;case`textarea`:Ae(n,r);break;case`select`:e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,o=r.value,o==null?e!==!!r.multiple&&(r.defaultValue==null?De(n,!!r.multiple,r.multiple?[]:``,!1):De(n,!!r.multiple,r.defaultValue,!0)):De(n,!!r.multiple,o,!1)}}}return;case 6:if(t.stateNode===null)throw Error(i(162));t.stateNode.nodeValue=t.memoizedProps;return;case 3:n=t.stateNode,n.hydrate&&(n.hydrate=!1,Ut(n.containerInfo));return;case 12:return;case 13:t.memoizedState!==null&&(ac=la(),Fs(t.child,!0)),Ws(t);return;case 19:Ws(t);return;case 17:return;case 23:case 24:Fs(t,t.memoizedState!==null);return}throw Error(i(163))}function Ws(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new js),t.forEach(function(t){var r=tl.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function Gs(e,t){return e!==null&&(e=e.memoizedState,e===null||e.dehydrated!==null)?(t=t.memoizedState,t!==null&&t.dehydrated===null):!1}var Ks=Math.ceil,qs=T.ReactCurrentDispatcher,Js=T.ReactCurrentOwner,X=0,Ys=null,Z=null,Xs=0,Zs=0,Qs=ji(0),Q=0,$s=null,ec=0,tc=0,nc=0,rc=0,ic=null,ac=0,oc=1/0;function sc(){oc=la()+500}var $=null,cc=!1,lc=null,uc=null,dc=!1,fc=null,pc=90,mc=[],hc=[],gc=null,_c=0,vc=null,yc=-1,bc=0,xc=0,Sc=null,Cc=!1;function wc(){return X&48?la():yc===-1?yc=la():yc}function Tc(e){if(e=e.mode,!(e&2))return 1;if(!(e&4))return ua()===99?1:2;if(bc===0&&(bc=ec),ga.transition!==0){xc!==0&&(xc=ic===null?0:ic.pendingLanes),e=bc;var t=4186112&~xc;return t&=-t,t===0&&(e=4186112&~e,t=e&-e,t===0&&(t=8192)),t}return e=ua(),X&4&&e===98?e=ln(12,bc):(e=an(e),e=ln(e,bc)),e}function Ec(e,t,n){if(50<_c)throw _c=0,vc=null,Error(i(185));if(e=Dc(e,t),e===null)return null;fn(e,t,n),e===Ys&&(nc|=t,Q===4&&Ac(e,Xs));var r=ua();t===1?X&8&&!(X&48)?jc(e):(Oc(e,n),X===0&&(sc(),ma())):(!(X&4)||r!==98&&r!==99||(gc===null?gc=new Set([e]):gc.add(e)),Oc(e,n)),ic=e}function Dc(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 Oc(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,i=e.pingedLanes,a=e.expirationTimes,o=e.pendingLanes;0<o;){var s=31-pn(o),c=1<<s,l=a[s];if(l===-1){if((c&r)===0||(c&i)!==0){l=t,rn(c);var u=H;a[s]=10<=u?l+250:6<=u?l+5e3:-1}}else l<=t&&(e.expiredLanes|=c);o&=~c}if(r=sn(e,e===Ys?Xs:0),t=H,r===0)n!==null&&(n!==ra&&qi(n),e.callbackNode=null,e.callbackPriority=0);else{if(n!==null){if(e.callbackPriority===t)return;n!==ra&&qi(n)}t===15?(n=jc.bind(null,e),aa===null?(aa=[n],oa=Ki(Qi,ha)):aa.push(n),n=ra):t===14?n=pa(99,jc.bind(null,e)):(n=on(t),n=pa(n,kc.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function kc(e){if(yc=-1,xc=bc=0,X&48)throw Error(i(327));var t=e.callbackNode;if(Jc()&&e.callbackNode!==t)return null;var n=sn(e,e===Ys?Xs:0);if(n===0)return null;var r=n,a=X;X|=16;var o=zc();(Ys!==e||Xs!==r)&&(sc(),Lc(e,r));do try{Hc();break}catch(t){Rc(e,t)}while(1);if(Sa(),qs.current=o,X=a,Z===null?(Ys=null,Xs=0,r=Q):r=0,(ec&nc)!==0)Lc(e,0);else if(r!==0){if(r===2&&(X|=64,e.hydrate&&(e.hydrate=!1,mi(e.containerInfo)),n=cn(e),n!==0&&(r=Bc(e,n))),r===1)throw t=$s,Lc(e,0),Ac(e,n),Oc(e,la()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(i(345));case 2:Gc(e);break;case 3:if(Ac(e,n),(n&62914560)===n&&(r=ac+500-la(),10<r)){if(sn(e,0)!==0)break;if(a=e.suspendedLanes,(a&n)!==n){wc(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=fi(Gc.bind(null,e),r);break}Gc(e);break;case 4:if(Ac(e,n),(n&4186112)===n)break;for(r=e.eventTimes,a=-1;0<n;){var s=31-pn(n);o=1<<s,s=r[s],s>a&&(a=s),n&=~o}if(n=a,n=la()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Ks(n/1960))-n,10<n){e.timeoutHandle=fi(Gc.bind(null,e),n);break}Gc(e);break;case 5:Gc(e);break;default:throw Error(i(329))}}return Oc(e,la()),e.callbackNode===t?kc.bind(null,e):null}function Ac(e,t){for(t&=~rc,t&=~nc,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-pn(t),r=1<<n;e[n]=-1,t&=~r}}function jc(e){if(X&48)throw Error(i(327));if(Jc(),e===Ys&&(e.expiredLanes&Xs)!==0){var t=Xs,n=Bc(e,t);(ec&nc)!==0&&(t=sn(e,t),n=Bc(e,t))}else t=sn(e,0),n=Bc(e,t);if(e.tag!==0&&n===2&&(X|=64,e.hydrate&&(e.hydrate=!1,mi(e.containerInfo)),t=cn(e),t!==0&&(n=Bc(e,t))),n===1)throw n=$s,Lc(e,0),Ac(e,t),Oc(e,la()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Gc(e),Oc(e,la()),null}function Mc(){if(gc!==null){var e=gc;gc=null,e.forEach(function(e){e.expiredLanes|=24&e.pendingLanes,Oc(e,la())})}ma()}function Nc(e,t){var n=X;X|=1;try{return e(t)}finally{X=n,X===0&&(sc(),ma())}}function Pc(e,t){var n=X;X&=-2,X|=8;try{return e(t)}finally{X=n,X===0&&(sc(),ma())}}function Fc(e,t){K(Qs,Zs),Zs|=t,ec|=t}function Ic(){Zs=Qs.current,G(Qs)}function Lc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,pi(n)),Z!==null)for(n=Z.return;n!==null;){var r=n;switch(r.tag){case 1:r=r.type.childContextTypes,r!=null&&Ri();break;case 3:eo(),G(Pi),G(Ni),ho();break;case 5:no(r);break;case 4:eo();break;case 13:G(q);break;case 19:G(q);break;case 10:Ca(r);break;case 23:case 24:Ic()}n=n.return}Ys=e,Z=sl(e.current,null),Xs=Zs=ec=t,Q=0,$s=null,rc=nc=tc=0}function Rc(e,t){do{var n=Z;try{if(Sa(),go.current=Yo,bo){for(var r=J.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}bo=!1}if(vo=0,Y=yo=J=null,xo=!1,Js.current=null,n===null||n.return===null){Q=1,$s=t,Z=null;break}a:{var a=e,o=n.return,s=n,c=t;if(t=Xs,s.flags|=2048,s.firstEffect=s.lastEffect=null,typeof c==`object`&&c&&typeof c.then==`function`){var l=c;if(!(s.mode&2)){var u=s.alternate;u?(s.updateQueue=u.updateQueue,s.memoizedState=u.memoizedState,s.lanes=u.lanes):(s.updateQueue=null,s.memoizedState=null)}var d=(q.current&1)!=0,f=o;do{var p;if(p=f.tag===13){var m=f.memoizedState;if(m!==null)p=m.dehydrated!==null;else{var h=f.memoizedProps;p=h.fallback===void 0?!1:!0===h.unstable_avoidThisFallback?!d:!0}}if(p){var g=f.updateQueue;if(g===null){var _=new Set;_.add(l),f.updateQueue=_}else g.add(l);if(!(f.mode&2)){if(f.flags|=64,s.flags|=16384,s.flags&=-2981,s.tag===1)if(s.alternate===null)s.tag=17;else{var v=Aa(-1,1);v.tag=2,ja(s,v)}s.lanes|=1;break a}c=void 0,s=t;var y=a.pingCache;if(y===null?(y=a.pingCache=new Os,c=new Set,y.set(l,c)):(c=y.get(l),c===void 0&&(c=new Set,y.set(l,c))),!c.has(s)){c.add(s);var b=el.bind(null,a,l,s);l.then(b,b)}f.flags|=4096,f.lanes=t;break a}f=f.return}while(f!==null);c=Error((he(s.type)||`A React component`)+` suspended while rendering, but no fallback UI was specified.
|
|
8
8
|
|
|
9
|
-
Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`)}Oe!==5&&(Oe=2),S=Qo(S,y),I=g;do{switch(I.tag){case 3:h=S,I.flags|=4096,t&=-t,I.lanes|=t;var ue=Ec(I,h,t);Hu(I,ue);break e;case 1:h=S;var X=I.type,ce=I.stateNode;if((I.flags&64)===0&&(typeof X.getDerivedStateFromError=="function"||ce!==null&&typeof ce.componentDidCatch=="function"&&(dt===null||!dt.has(ce)))){I.flags|=4096,t&=-t,I.lanes|=t;var me=Tc(I,h,t);Hu(I,me);break e}}I=I.return}while(I!==null)}Vc(n)}catch(de){t=de,Ae===n&&n!==null&&(Ae=n=n.return);continue}break}while(!0)}function bc(){var e=Hs.current;return Hs.current=Bs,e===null?Bs:e}function Mr(e,t){var n=ie;ie|=16;var a=bc();Ue===e&&Fe===t||Vn(e,t);do try{wg();break}catch(u){Uc(e,u)}while(!0);if(Eo(),ie=n,Hs.current=a,Ae!==null)throw Error(o(261));return Ue=null,Fe=0,Oe}function wg(){for(;Ae!==null;)Bc(Ae)}function xg(){for(;Ae!==null&&!tg();)Bc(Ae)}function Bc(e){var t=Wc(e.alternate,e,sn);e.memoizedProps=e.pendingProps,t===null?Vc(e):Ae=t,Go.current=null}function Vc(e){var t=e;do{var n=t.alternate;if(e=t.return,(t.flags&2048)===0){if(n=cg(n,t,sn),n!==null){Ae=n;return}if(n=t,n.tag!==24&&n.tag!==23||n.memoizedState===null||(sn&1073741824)!==0||(n.mode&4)===0){for(var a=0,u=n.child;u!==null;)a|=u.lanes|u.childLanes,u=u.sibling;n.childLanes=a}e!==null&&(e.flags&2048)===0&&(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))}else{if(n=fg(t),n!==null){n.flags&=2047,Ae=n;return}e!==null&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(t=t.sibling,t!==null){Ae=t;return}Ae=t=e}while(t!==null);Oe===0&&(Oe=5)}function on(e){var t=Rn();return en(99,Sg.bind(null,e,t)),null}function Sg(e,t){do bt();while(Or!==null);if((ie&48)!==0)throw Error(o(327));var n=e.finishedWork;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(o(177));e.callbackNode=null;var a=n.lanes|n.childLanes,u=a,h=e.pendingLanes&~u;e.pendingLanes=u,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=u,e.mutableReadLanes&=u,e.entangledLanes&=u,u=e.entanglements;for(var g=e.eventTimes,y=e.expirationTimes;0<h;){var S=31-Nt(h),A=1<<S;u[S]=0,g[S]=-1,y[S]=-1,h&=~A}if(wt!==null&&(a&24)===0&&wt.has(e)&&wt.delete(e),e===Ue&&(Ae=Ue=null,Fe=0),1<n.flags?n.lastEffect!==null?(n.lastEffect.nextEffect=n,a=n.firstEffect):a=n:a=n.firstEffect,a!==null){if(u=ie,ie|=32,Go.current=null,go=ds,g=gu(),co(g)){if("selectionStart"in g)y={start:g.selectionStart,end:g.selectionEnd};else e:if(y=(y=g.ownerDocument)&&y.defaultView||window,(A=y.getSelection&&y.getSelection())&&A.rangeCount!==0){y=A.anchorNode,h=A.anchorOffset,S=A.focusNode,A=A.focusOffset;try{y.nodeType,S.nodeType}catch{y=null;break e}var W=0,ae=-1,I=-1,ee=0,oe=0,re=g,P=null;t:for(;;){for(var k;re!==y||h!==0&&re.nodeType!==3||(ae=W+h),re!==S||A!==0&&re.nodeType!==3||(I=W+A),re.nodeType===3&&(W+=re.nodeValue.length),(k=re.firstChild)!==null;)P=re,re=k;for(;;){if(re===g)break t;if(P===y&&++ee===h&&(ae=W),P===S&&++oe===A&&(I=W),(k=re.nextSibling)!==null)break;re=P,P=re.parentNode}re=k}y=ae===-1||I===-1?null:{start:ae,end:I}}else y=null;y=y||{start:0,end:0}}else y=null;mo={focusedElem:g,selectionRange:y},ds=!1,zr=null,Js=!1,Y=a;do try{kg()}catch(de){if(Y===null)throw Error(o(330));Bt(Y,de),Y=Y.nextEffect}while(Y!==null);zr=null,Y=a;do try{for(g=e;Y!==null;){var $=Y.flags;if($&16&&Gn(Y.stateNode,""),$&128){var j=Y.alternate;if(j!==null){var R=j.ref;R!==null&&(typeof R=="function"?R(null):R.current=null)}}switch($&1038){case 2:Rc(Y),Y.flags&=-3;break;case 6:Rc(Y),Y.flags&=-3,Zo(Y.alternate,Y);break;case 1024:Y.flags&=-1025;break;case 1028:Y.flags&=-1025,Zo(Y.alternate,Y);break;case 4:Zo(Y.alternate,Y);break;case 8:y=Y,Ic(g,y);var ue=y.alternate;Lc(y),ue!==null&&Lc(ue)}Y=Y.nextEffect}}catch(de){if(Y===null)throw Error(o(330));Bt(Y,de),Y=Y.nextEffect}while(Y!==null);if(R=mo,j=gu(),$=R.focusedElem,g=R.selectionRange,j!==$&&$&&$.ownerDocument&&pu($.ownerDocument.documentElement,$)){for(g!==null&&co($)&&(j=g.start,R=g.end,R===void 0&&(R=j),"selectionStart"in $?($.selectionStart=j,$.selectionEnd=Math.min(R,$.value.length)):(R=(j=$.ownerDocument||document)&&j.defaultView||window,R.getSelection&&(R=R.getSelection(),y=$.textContent.length,ue=Math.min(g.start,y),g=g.end===void 0?ue:Math.min(g.end,y),!R.extend&&ue>g&&(y=g,g=ue,ue=y),y=du($,ue),h=du($,g),y&&h&&(R.rangeCount!==1||R.anchorNode!==y.node||R.anchorOffset!==y.offset||R.focusNode!==h.node||R.focusOffset!==h.offset)&&(j=j.createRange(),j.setStart(y.node,y.offset),R.removeAllRanges(),ue>g?(R.addRange(j),R.extend(h.node,h.offset)):(j.setEnd(h.node,h.offset),R.addRange(j)))))),j=[],R=$;R=R.parentNode;)R.nodeType===1&&j.push({element:R,left:R.scrollLeft,top:R.scrollTop});for(typeof $.focus=="function"&&$.focus(),$=0;$<j.length;$++)R=j[$],R.element.scrollLeft=R.left,R.element.scrollTop=R.top}ds=!!go,mo=go=null,e.current=n,Y=a;do try{for($=e;Y!==null;){var X=Y.flags;if(X&36&&gg($,Y.alternate,Y),X&128){j=void 0;var ce=Y.ref;if(ce!==null){var me=Y.stateNode;Y.tag,j=me,typeof ce=="function"?ce(j):ce.current=j}}Y=Y.nextEffect}}catch(de){if(Y===null)throw Error(o(330));Bt(Y,de),Y=Y.nextEffect}while(Y!==null);Y=null,rg(),ie=u}else e.current=n;if(Dt)Dt=!1,Or=e,Rr=t;else for(Y=a;Y!==null;)t=Y.nextEffect,Y.nextEffect=null,Y.flags&8&&(X=Y,X.sibling=null,X.stateNode=null),Y=t;if(a=e.pendingLanes,a===0&&(dt=null),a===1?e===ll?Ir++:(Ir=0,ll=e):Ir=0,n=n.stateNode,qt&&typeof qt.onCommitFiberRoot=="function")try{qt.onCommitFiberRoot(So,n,void 0,(n.current.flags&64)===64)}catch{}if(Ge(e,Me()),Ws)throw Ws=!1,e=sl,sl=null,e;return(ie&8)!==0||ut(),null}function kg(){for(;Y!==null;){var e=Y.alternate;Js||zr===null||((Y.flags&8)!==0?Ia(Y,zr)&&(Js=!0):Y.tag===13&&mg(e,Y)&&Ia(Y,zr)&&(Js=!0));var t=Y.flags;(t&256)!==0&&pg(e,Y),(t&512)===0||Dt||(Dt=!0,wr(97,function(){return bt(),null})),Y=Y.nextEffect}}function bt(){if(Rr!==90){var e=97<Rr?97:Rr;return Rr=90,en(e,$g)}return!1}function Cg(e,t){il.push(t,e),Dt||(Dt=!0,wr(97,function(){return bt(),null}))}function Hc(e,t){ol.push(t,e),Dt||(Dt=!0,wr(97,function(){return bt(),null}))}function $g(){if(Or===null)return!1;var e=Or;if(Or=null,(ie&48)!==0)throw Error(o(331));var t=ie;ie|=32;var n=ol;ol=[];for(var a=0;a<n.length;a+=2){var u=n[a],h=n[a+1],g=u.destroy;if(u.destroy=void 0,typeof g=="function")try{g()}catch(S){if(h===null)throw Error(o(330));Bt(h,S)}}for(n=il,il=[],a=0;a<n.length;a+=2){u=n[a],h=n[a+1];try{var y=u.create;u.destroy=y()}catch(S){if(h===null)throw Error(o(330));Bt(h,S)}}for(y=e.current.firstEffect;y!==null;)e=y.nextEffect,y.nextEffect=null,y.flags&8&&(y.sibling=null,y.stateNode=null),y=e;return ie=t,ut(),!0}function Kc(e,t,n){t=Qo(n,t),t=Ec(e,t,1),zt(e,t),t=Ye(),e=Xs(e,1),e!==null&&(hs(e,1,t),Ge(e,t))}function Bt(e,t){if(e.tag===3)Kc(e,e,t);else for(var n=e.return;n!==null;){if(n.tag===3){Kc(n,e,t);break}else if(n.tag===1){var a=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(dt===null||!dt.has(a))){e=Qo(t,e);var u=Tc(n,e,1);if(zt(n,u),u=Ye(),n=Xs(n,1),n!==null)hs(n,1,u),Ge(n,u);else if(typeof a.componentDidCatch=="function"&&(dt===null||!dt.has(a)))try{a.componentDidCatch(t,e)}catch{}break}}n=n.return}}function _g(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),t=Ye(),e.pingedLanes|=e.suspendedLanes&n,Ue===e&&(Fe&n)===n&&(Oe===4||Oe===3&&(Fe&62914560)===Fe&&500>Me()-nl?Vn(e,0):el|=n),Ge(e,t)}function Pg(e,t){var n=e.stateNode;n!==null&&n.delete(t),t=0,t===0&&(t=e.mode,(t&2)===0?t=1:(t&4)===0?t=Rn()===99?1:2:(xt===0&&(xt=Fn),t=$n(62914560&~xt),t===0&&(t=4194304))),n=Ye(),e=Xs(e,t),e!==null&&(hs(e,t,n),Ge(e,n))}var Wc;Wc=function(e,t,n){var a=t.lanes;if(e!==null)if(e.memoizedProps!==t.pendingProps||be.current)it=!0;else if((n&a)!==0)it=(e.flags&16384)!==0;else{switch(it=!1,t.tag){case 3:yc(t),Ro();break;case 5:Gu(t);break;case 1:Be(t.type)&&_s(t);break;case 4:jo(t,t.stateNode.containerInfo);break;case 10:a=t.memoizedProps.value;var u=t.type._context;Pe(Ts,u._currentValue),u._currentValue=a;break;case 13:if(t.memoizedState!==null)return(n&t.child.childLanes)!==0?vc(e,t,n):(Pe(Ee,Ee.current&1),t=vt(e,t,n),t!==null?t.sibling:null);Pe(Ee,Ee.current&1);break;case 19:if(a=(n&t.childLanes)!==0,(e.flags&64)!==0){if(a)return Cc(e,t,n);t.flags|=64}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),Pe(Ee,Ee.current),a)break;return null;case 23:case 24:return t.lanes=0,Bo(e,t,n)}return vt(e,t,n)}else it=!1;switch(t.lanes=0,t.tag){case 2:if(a=t.type,e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,u=On(t,ze.current),zn(t,n),u=Mo(null,t,a,e,u,n),t.flags|=1,typeof u=="object"&&u!==null&&typeof u.render=="function"&&u.$$typeof===void 0){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,Be(a)){var h=!0;_s(t)}else h=!1;t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,No(t);var g=a.getDerivedStateFromProps;typeof g=="function"&&js(t,a,g,e),u.updater=Ls,t.stateNode=u,u._reactInternals=t,Ao(t,a,e,n),t=Ho(null,t,a,!0,h,n)}else t.tag=0,He(null,t,u,n),t=t.child;return t;case 16:u=t.elementType;e:{switch(e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,h=u._init,u=h(u._payload),t.type=u,h=t.tag=Tg(u),e=st(u,e),h){case 0:t=Vo(null,t,u,e,n);break e;case 1:t=mc(null,t,u,e,n);break e;case 11:t=hc(null,t,u,e,n);break e;case 14:t=dc(null,t,u,st(u.type,e),a,n);break e}throw Error(o(306,u,""))}return t;case 0:return a=t.type,u=t.pendingProps,u=t.elementType===a?u:st(a,u),Vo(e,t,a,u,n);case 1:return a=t.type,u=t.pendingProps,u=t.elementType===a?u:st(a,u),mc(e,t,a,u,n);case 3:if(yc(t),a=t.updateQueue,e===null||a===null)throw Error(o(282));if(a=t.pendingProps,u=t.memoizedState,u=u!==null?u.element:null,Vu(e,t),xr(t,a,null,n),a=t.memoizedState.element,a===u)Ro(),t=vt(e,t,n);else{if(u=t.stateNode,(h=u.hydrate)&&(Mt=Nn(t.stateNode.containerInfo.firstChild),yt=t,h=ft=!0),h){if(e=u.mutableSourceEagerHydrationData,e!=null)for(u=0;u<e.length;u+=2)h=e[u],h._workInProgressVersionPrimary=e[u+1],Dn.push(h);for(n=Zu(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|1024,n=n.sibling}else He(e,t,a,n),Ro();t=t.child}return t;case 5:return Gu(t),e===null&&Oo(t),a=t.type,u=t.pendingProps,h=e!==null?e.memoizedProps:null,g=u.children,yo(a,u)?g=null:h!==null&&yo(a,h)&&(t.flags|=16),gc(e,t),He(e,t,g,n),t.child;case 6:return e===null&&Oo(t),null;case 13:return vc(e,t,n);case 4:return jo(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Is(t,null,a,n):He(e,t,a,n),t.child;case 11:return a=t.type,u=t.pendingProps,u=t.elementType===a?u:st(a,u),hc(e,t,a,u,n);case 7:return He(e,t,t.pendingProps,n),t.child;case 8:return He(e,t,t.pendingProps.children,n),t.child;case 12:return He(e,t,t.pendingProps.children,n),t.child;case 10:e:{a=t.type._context,u=t.pendingProps,g=t.memoizedProps,h=u.value;var y=t.type._context;if(Pe(Ts,y._currentValue),y._currentValue=h,g!==null)if(y=g.value,h=Je(y,h)?0:(typeof a._calculateChangedBits=="function"?a._calculateChangedBits(y,h):1073741823)|0,h===0){if(g.children===u.children&&!be.current){t=vt(e,t,n);break e}}else for(y=t.child,y!==null&&(y.return=t);y!==null;){var S=y.dependencies;if(S!==null){g=y.child;for(var A=S.firstContext;A!==null;){if(A.context===a&&(A.observedBits&h)!==0){y.tag===1&&(A=It(-1,n&-n),A.tag=2,zt(y,A)),y.lanes|=n,A=y.alternate,A!==null&&(A.lanes|=n),Bu(y.return,n),S.lanes|=n;break}A=A.next}}else g=y.tag===10&&y.type===t.type?null:y.child;if(g!==null)g.return=y;else for(g=y;g!==null;){if(g===t){g=null;break}if(y=g.sibling,y!==null){y.return=g.return,g=y;break}g=g.return}y=g}He(e,t,u.children,n),t=t.child}return t;case 9:return u=t.type,h=t.pendingProps,a=h.children,zn(t,n),u=Xe(u,h.unstable_observedBits),a=a(u),t.flags|=1,He(e,t,a,n),t.child;case 14:return u=t.type,h=st(u,t.pendingProps),h=st(u.type,h),dc(e,t,u,h,a,n);case 15:return pc(e,t,t.type,t.pendingProps,a,n);case 17:return a=t.type,u=t.pendingProps,u=t.elementType===a?u:st(a,u),e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,Be(a)?(e=!0,_s(t)):e=!1,zn(t,n),Yu(t,a,u),Ao(t,a,u,n),Ho(null,t,a,!0,e,n);case 19:return Cc(e,t,n);case 23:return Bo(e,t,n);case 24:return Bo(e,t,n)}throw Error(o(156,t.tag))};function Eg(e,t,n,a){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=a,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function qe(e,t,n,a){return new Eg(e,t,n,a)}function cl(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Tg(e){if(typeof e=="function")return cl(e)?1:0;if(e!=null){if(e=e.$$typeof,e===pe)return 11;if(e===xe)return 14}return 2}function Vt(e,t){var n=e.alternate;return n===null?(n=qe(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 Gs(e,t,n,a,u,h){var g=2;if(a=e,typeof e=="function")cl(e)&&(g=1);else if(typeof e=="string")g=5;else e:switch(e){case V:return Hn(n.children,u,h,t);case he:g=8,u|=16;break;case q:g=8,u|=1;break;case fe:return e=qe(12,n,t,u|8),e.elementType=fe,e.type=fe,e.lanes=h,e;case we:return e=qe(13,n,t,u),e.type=we,e.elementType=we,e.lanes=h,e;case ne:return e=qe(19,n,t,u),e.elementType=ne,e.lanes=h,e;case L:return fl(n,u,h,t);case b:return e=qe(24,n,t,u),e.elementType=b,e.lanes=h,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case se:g=10;break e;case ge:g=9;break e;case pe:g=11;break e;case xe:g=14;break e;case T:g=16,a=null;break e;case O:g=22;break e}throw Error(o(130,e==null?e:typeof e,""))}return t=qe(g,n,t,u),t.elementType=e,t.type=a,t.lanes=h,t}function Hn(e,t,n,a){return e=qe(7,e,a,t),e.lanes=n,e}function fl(e,t,n,a){return e=qe(23,e,a,t),e.elementType=L,e.lanes=n,e}function hl(e,t,n){return e=qe(6,e,null,t),e.lanes=n,e}function dl(e,t,n){return t=qe(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ng(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=Gi(0),this.expirationTimes=Gi(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Gi(0),this.mutableSourceEagerHydrationData=null}function Ag(e,t,n){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:B,key:a==null?null:""+a,children:e,containerInfo:t,implementation:n}}function qs(e,t,n,a){var u=t.current,h=Ye(),g=Ft(u);e:if(n){n=n._reactInternals;t:{if(Xt(n)!==n||n.tag!==1)throw Error(o(170));var y=n;do{switch(y.tag){case 3:y=y.stateNode.context;break t;case 1:if(Be(y.type)){y=y.stateNode.__reactInternalMemoizedMergedChildContext;break t}}y=y.return}while(y!==null);throw Error(o(171))}if(n.tag===1){var S=n.type;if(Be(S)){n=Lu(n,S,y);break e}}n=y}else n=Ot;return t.context===null?t.context=n:t.pendingContext=n,t=It(h,g),t.payload={element:e},a=a===void 0?null:a,a!==null&&(t.callback=a),zt(u,t),Ut(u,g,h),g}function pl(e){return e=e.current,e.child?(e.child.tag===5,e.child.stateNode):null}function Qc(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function gl(e,t){Qc(e,t),(e=e.alternate)&&Qc(e,t)}function jg(){return null}function ml(e,t,n){var a=n!=null&&n.hydrationOptions!=null&&n.hydrationOptions.mutableSources||null;if(n=new Ng(e,t,n!=null&&n.hydrate===!0),t=qe(3,null,null,t===2?7:t===1?3:0),n.current=t,t.stateNode=n,No(t),e[An]=n.current,Su(e.nodeType===8?e.parentNode:e),a)for(e=0;e<a.length;e++){t=a[e];var u=t._getVersion;u=u(t._source),n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[t,u]:n.mutableSourceEagerHydrationData.push(t,u)}this._internalRoot=n}ml.prototype.render=function(e){qs(e,this._internalRoot,null,null)},ml.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;qs(null,e,null,function(){t[An]=null})};function Dr(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Lg(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 ml(e,0,t?{hydrate:!0}:void 0)}function ei(e,t,n,a,u){var h=n._reactRootContainer;if(h){var g=h._internalRoot;if(typeof u=="function"){var y=u;u=function(){var A=pl(g);y.call(A)}}qs(t,g,e,u)}else{if(h=n._reactRootContainer=Lg(n,a),g=h._internalRoot,typeof u=="function"){var S=u;u=function(){var A=pl(g);S.call(A)}}Fc(function(){qs(t,g,e,u)})}return pl(g)}za=function(e){if(e.tag===13){var t=Ye();Ut(e,4,t),gl(e,4)}},Wi=function(e){if(e.tag===13){var t=Ye();Ut(e,67108864,t),gl(e,67108864)}},Ma=function(e){if(e.tag===13){var t=Ye(),n=Ft(e);Ut(e,n,t),gl(e,n)}},Da=function(e,t){return t()},Fi=function(e,t,n){switch(t){case"input":if(Ai(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 a=n[t];if(a!==e&&a.form===e.form){var u=Cs(a);if(!u)throw Error(o(90));ma(a),Ai(a,u)}}}break;case"textarea":Sa(e,n);break;case"select":t=n.value,t!=null&&wn(e,!!n.multiple,t,!1)}},Ui=Dc,Aa=function(e,t,n,a,u){var h=ie;ie|=4;try{return en(98,e.bind(null,t,n,a,u))}finally{ie=h,ie===0&&(bn(),ut())}},bi=function(){(ie&49)===0&&(vg(),bt())},ja=function(e,t){var n=ie;ie|=2;try{return e(t)}finally{ie=n,ie===0&&(bn(),ut())}};function Yc(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Dr(t))throw Error(o(200));return Ag(e,t,null,n)}var Og={Events:[vr,jn,Cs,Ta,Na,bt,{current:!1}]},Fr={findFiberByHostInstance:Zt,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},Rg={bundleType:Fr.bundleType,version:Fr.version,rendererPackageName:Fr.rendererPackageName,rendererConfig:Fr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Z.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Ra(e),e===null?null:e.stateNode},findFiberByHostInstance:Fr.findFiberByHostInstance||jg,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ti=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ti.isDisabled&&ti.supportsFiber)try{So=ti.inject(Rg),qt=ti}catch{}}return Ke.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Og,Ke.createPortal=Yc,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(o(188)):Error(o(268,Object.keys(e)));return e=Ra(t),e=e===null?null:e.stateNode,e},Ke.flushSync=function(e,t){var n=ie;if((n&48)!==0)return e(t);ie|=1;try{if(e)return en(99,e.bind(null,t))}finally{ie=n,ut()}},Ke.hydrate=function(e,t,n){if(!Dr(t))throw Error(o(200));return ei(null,e,t,!0,n)},Ke.render=function(e,t,n){if(!Dr(t))throw Error(o(200));return ei(null,e,t,!1,n)},Ke.unmountComponentAtNode=function(e){if(!Dr(e))throw Error(o(40));return e._reactRootContainer?(Fc(function(){ei(null,null,e,!1,function(){e._reactRootContainer=null,e[An]=null})}),!0):!1},Ke.unstable_batchedUpdates=Dc,Ke.unstable_createPortal=function(e,t){return Yc(e,t,2<arguments.length&&arguments[2]!==void 0?arguments[2]:null)},Ke.unstable_renderSubtreeIntoContainer=function(e,t,n,a){if(!Dr(n))throw Error(o(200));if(e==null||e._reactInternals===void 0)throw Error(o(38));return ei(e,t,n,!1,a)},Ke.version="17.0.2",Ke}var Pl;function tf(){if(Pl)return li.exports;Pl=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(s){console.error(s)}}return r(),li.exports=ef(),li.exports}var ci=tf();const nf=yl(ci),Re=St.createContext({posts:[],authors:[],tags:[],action:"",lastPage:"",page:"",pageData:{},dispatch:(r,s)=>{},searchIndex:null,indexComplete:!1,searchValue:"",t:()=>{},dir:"ltr"}),rf=r=>ye.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:16,width:16,viewBox:"0 0 16 16",...r},ye.createElement("title",null,"circle anim"),ye.createElement("g",{fill:"#40413F",className:"nc-icon-wrapper"},ye.createElement("g",{className:"nc-loop-circle-16-icon-f"},ye.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"}),ye.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"})),ye.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)}}"))),sf=r=>ye.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",height:16,width:16,...r},ye.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"}));class of extends ye.Component{componentDidMount(){this.node.addEventListener("load",this.handleLoad)}handleLoad=()=>{this.setupFrameBaseStyle()};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:s,head:i,title:o="",style:l={},...c}=this.props;return F.jsxs("iframe",{srcDoc:"<!DOCTYPE html>",...c,ref:f=>this.node=f,title:o,style:l,frameBorder:"0",children:[this.iframeHead&&ci.createPortal(i,this.iframeHead),this.iframeRoot&&ci.createPortal(s,this.iframeRoot)]})}}const lf=r=>ye.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",height:16,width:16,...r},ye.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"})),El=10,af=10,uf=()=>({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 cf extends St.Component{static contextType=Re;componentDidMount(){this.sendContainerHeightChangeEvent()}sendContainerHeightChangeEvent(){}componentDidUpdate(){this.sendContainerHeightChangeEvent()}handlePopupClose(s){s.preventDefault(),s.target===s.currentTarget&&this.context.dispatch("update",{showPopup:!1})}render(){return F.jsx(Tf,{})}}function ff(){const{searchValue:r,dispatch:s,inputRef:i,t:o}=ye.useContext(Re),l=ye.useRef(null);ye.useEffect(()=>{setTimeout(()=>{i?.current?.focus()},150);let f=d=>{d.key==="Escape"&&s("update",{showPopup:!1})};const p=l?.current;return p?.ownerDocument.removeEventListener("keyup",f),p?.ownerDocument.addEventListener("keyup",f),()=>{p?.ownerDocument.removeEventListener("keyup",f)}},[s,i]);let c="z-10 relative flex items-center py-5 px-4 sm:px-7 bg-white rounded-t-lg shadow";return r||(c="z-10 relative flex items-center py-5 px-4 sm:px-7 bg-white rounded-lg"),F.jsxs("div",{className:c,ref:l,children:[F.jsx("div",{className:"flex items-center justify-center w-4 h-4 me-3",children:F.jsx(hf,{})}),F.jsx("input",{ref:i,value:r||"",onChange:f=>{s("update",{searchValue:f.target.value})},onKeyDown:f=>{(f.key==="ArrowUp"||f.key==="ArrowDown")&&f.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:o("Search posts, tags and authors")}),F.jsx(df,{}),F.jsx(pf,{})]})}function hf(){const{searchValue:r="",dispatch:s}=ye.useContext(Re);return r?F.jsx("button",{alt:"Clear",className:"-mb-[1px]",onClick:()=>{s("update",{searchValue:""})},children:F.jsx(sf,{className:"text-neutral-900 hover:text-neutral-500 h-[1.1rem] w-[1.1rem]"})}):F.jsx(lf,{className:"text-neutral-900",alt:"Search"})}function df(){const{indexComplete:r,searchValue:s}=ye.useContext(Re);return!r&&s?F.jsx(rf,{className:"shrink-0"}):null}function pf(){const{dispatch:r,t:s}=ye.useContext(Re);return F.jsx("button",{className:"ms-3 text-sm text-neutral-500 sm:hidden",alt:"Cancel",onClick:()=>{r("update",{showPopup:!1})},children:s("Cancel")})}function gf({tag:r,selectedResult:s,setSelectedResult:i}){const{name:o,url:l,id:c}=r;let f="flex items-center py-3 -mx-4 sm:-mx-7 px-4 sm:px-7 cursor-pointer";return c===s&&(f+=" bg-neutral-100"),F.jsxs("div",{className:f,onClick:()=>{l&&(window.location.href=l)},onMouseEnter:()=>{i(c)},children:[F.jsx("p",{className:"me-2 text-sm font-bold text-neutral-400",children:"#"}),F.jsx("h2",{className:"text-[1.65rem] font-medium leading-tight text-neutral-900 truncate",children:o})]})}function mf({tags:r,selectedResult:s,setSelectedResult:i}){const{t:o}=ye.useContext(Re);if(!r?.length)return null;const l=r.map(c=>F.jsx(gf,{tag:c,selectedResult:s,setSelectedResult:i},c.name));return F.jsxs("div",{className:"border-t border-gray-200 py-3 px-4 sm:px-7",children:[F.jsx("h1",{className:"uppercase text-xs text-neutral-400 font-semibold mb-1 tracking-wide",children:o("Tags")}),l]})}function yf({post:r,selectedResult:s,setSelectedResult:i}){const{searchValue:o}=ye.useContext(Re),{title:l,excerpt:c,url:f,id:p}=r;let d="py-3 -mx-4 sm:-mx-7 px-4 sm:px-7 cursor-pointer";return p===s&&(d+=" bg-neutral-100"),F.jsxs("div",{className:d,onClick:()=>{f&&(window.location.href=f)},onMouseEnter:()=>{i(p)},children:[F.jsx("h2",{className:"text-[1.65rem] font-medium leading-tight text-neutral-800",children:F.jsx(Nl,{text:l,highlight:o,isExcerpt:!1})}),F.jsx("p",{className:"text-neutral-400 leading-normal text-sm mt-0 mb-0 truncate",children:F.jsx(Nl,{text:c,highlight:o,isExcerpt:!0})})]})}function vf({text:r,highlight:s}){let i="";s?.split(" ").forEach((f,p)=>{const d=String(f).replace(/\W/g,"\\&");p>0?i+="|^"+d+"|\\s"+d:i="^"+d+"|\\s"+d});const o=new RegExp(`${i}`,"ig");let l=r?.matchAll(o);const c=[];for(const f of l)c.push({startIdx:f?.index,endIdx:(f?.index||0)+(f?.[0].length||0)});return c}function Tl({text:r,highlight:s}){const i=vf({text:r,highlight:s}),o=[];let l=0;return i.forEach(c=>{l===c.startIdx?(o.push({text:r?.slice(c.startIdx,c.endIdx),type:"highlight"}),l=c.endIdx):(o.push({text:r?.slice(l,c.startIdx),type:"normal"}),o.push({text:r?.slice(c.startIdx,c.endIdx),type:"highlight"}),l=c.endIdx)}),l<r?.length&&o.push({text:r?.slice(l,r.length),type:"normal"}),{parts:o,highlightIndexes:i}}function Nl({text:r="",highlight:s="",isExcerpt:i}){r=r||"",s=s||"";let{parts:o,highlightIndexes:l}=Tl({text:r,highlight:s});if(i&&l?.[0]){const f=l?.[0]?.startIdx;if(f>50){r="..."+r?.slice(f-20);const{parts:p}=Tl({text:r,highlight:s});o=p}}const c=o.map((f,p)=>f?.type==="highlight"?F.jsx(St.Fragment,{children:F.jsx(wf,{word:f.text,isExcerpt:i})},p):F.jsx(St.Fragment,{children:f.text},p));return F.jsx(F.Fragment,{children:c})}function wf({word:r,isExcerpt:s}){return s?F.jsx(F.Fragment,{children:F.jsx("span",{className:"font-bold",children:r})}):F.jsx(F.Fragment,{children:F.jsx("span",{className:"font-bold text-neutral-900",children:r})})}function xf({posts:r,maxPosts:s,setMaxPosts:i}){const{t:o}=ye.useContext(Re);return!r?.length||s>=r?.length?null:F.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 l=s+af;i(l)},children:o("Show more results")})}function Sf({posts:r,selectedResult:s,setSelectedResult:i}){const{t:o}=ye.useContext(Re),[l,c]=ye.useState(El),[f,p]=ye.useState([]);if(ye.useEffect(()=>{c(El)},[r]),ye.useEffect(()=>{p(r?.slice(0,l+1))},[l,r]),!r?.length)return null;function d(){return f.map(m=>F.jsx(yf,{post:m,selectedResult:s,setSelectedResult:i},m.title))}return F.jsxs("div",{className:"border-t border-neutral-200 py-3 px-4 sm:px-7",children:[F.jsx("h1",{className:"uppercase text-xs text-neutral-400 font-semibold mb-1 tracking-wide",children:o("Posts")}),F.jsx(d,{}),F.jsx(xf,{setMaxPosts:c,maxPosts:l,posts:r})]})}function kf({author:r,selectedResult:s,setSelectedResult:i}){const{name:o,profile_image:l,url:c,id:f}=r;let p="py-[1rem] -mx-4 sm:-mx-7 px-4 sm:px-7 cursor-pointer flex items-center";return f===s&&(p+=" bg-neutral-100"),F.jsxs("div",{className:p,onClick:()=>{c&&(window.location.href=c)},onMouseEnter:()=>{i(f)},children:[F.jsx(Cf,{name:o,avatar:l}),F.jsx("h2",{className:"text-[1.65rem] font-medium leading-tight text-neutral-900 truncate",children:o})]})}function Cf({name:r,avatar:s}){const i=s?.length,o=r.charAt(0);return i?F.jsx("img",{className:"rounded-full bg-neutral-300 w-7 h-7 me-2 object-cover",src:s,alt:r}):F.jsx("div",{className:"rounded-full bg-neutral-200 w-7 h-7 me-2 flex items-center justify-center font-bold",children:F.jsx("span",{className:"text-neutral-400",children:o})})}function $f({authors:r,selectedResult:s,setSelectedResult:i}){const{t:o}=ye.useContext(Re);if(!r?.length)return null;const l=r.map(c=>F.jsx(kf,{author:c,selectedResult:s,setSelectedResult:i},c.name));return F.jsxs("div",{className:"border-t border-neutral-200 py-3 px-4 sm:px-7",children:[F.jsx("h1",{className:"uppercase text-xs text-neutral-400 font-semibold mb-1 tracking-wide",children:o("Authors")}),l]})}function _f(){const{searchValue:r="",searchIndex:s,indexComplete:i}=ye.useContext(Re);let o=null,l=[],c=[],f=[];return i&&r&&(o=s?.search(r),c=o?.posts||[],f=o?.authors||[],l=o?.tags||[]),f=f.filter(d=>{const m=/\/404\/$/;return!(d?.url&&m.test(d?.url))}),l=l.filter(d=>{const m=/\/404\/$/;return!(d?.url&&m.test(d?.url))}),c?.length||f?.length||l?.length?F.jsx(Pf,{posts:c,authors:f,tags:l}):r?F.jsx(Ef,{}):null}function Pf({posts:r,authors:s,tags:i}){const{searchValue:o}=ye.useContext(Re),l=ye.useMemo(()=>[...s,...i,...r],[s,i,r]),c=l?.[0]?.id||null,[f,p]=ye.useState(c),d=ye.useRef(null);return ye.useEffect(()=>{p(l?.[0]?.id||null)},[l]),ye.useEffect(()=>{let m=w=>{if(w.isComposing||w.keyCode===229)return;const C=l.findIndex(_=>_.id===f);let N=l[C+1],E=l[C-1];if(w.key==="ArrowUp"&&E?p(E?.id):w.key==="ArrowDown"&&N&&p(N?.id),w.key==="Enter"){const _=l.find(D=>D.id===f);window.location.href=_?.url}};const x=d?.current?.ownerDocument;return x?.removeEventListener("keydown",m),x?.addEventListener("keydown",m),()=>{x?.removeEventListener("keydown",m)}},[l,f]),o?F.jsxs("div",{className:"overflow-y-auto max-h-[calc(100vh-172px)] sm:max-h-[70vh] -mt-[1px]",ref:d,children:[F.jsx($f,{authors:s,selectedResult:f,setSelectedResult:p}),F.jsx(mf,{tags:i,selectedResult:f,setSelectedResult:p}),F.jsx(Sf,{posts:r,selectedResult:f,setSelectedResult:p})]}):null}function Ef(){const{t:r}=ye.useContext(Re);return F.jsx("div",{className:"py-4 px-7",children:F.jsx("p",{className:"text-[1.65rem] text-neutral-400 leading-normal",children:r("No matches found")})})}function Tf(){const{dispatch:r}=ye.useContext(Re);return F.jsx(F.Fragment,{children:F.jsx("div",{className:"h-screen w-screen pt-20 antialiased z-50 relative ghost-display",onClick:s=>{s.preventDefault(),s.target===s.currentTarget&&r("update",{showPopup:!1})},children:F.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:[F.jsx(ff,{}),F.jsx(_f,{})]})})})}class Nf extends St.Component{static contextType=Re;constructor(s){super(s),this.state={height:null}}onHeightChange(s){this.setState({height:s})}handlePopupClose(s){s.preventDefault(),s.target===s.currentTarget&&this.context.dispatch("update",{showPopup:!1})}renderFrameStyles(){const s=`
|
|
9
|
+
Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`)}Q!==5&&(Q=2),c=Es(c,s),f=o;do{switch(f.tag){case 3:a=c,f.flags|=4096,t&=-t,f.lanes|=t;var x=ks(f,a,t);Ma(f,x);break a;case 1:a=c;var S=f.type,C=f.stateNode;if(!(f.flags&64)&&(typeof S.getDerivedStateFromError==`function`||C!==null&&typeof C.componentDidCatch==`function`&&(uc===null||!uc.has(C)))){f.flags|=4096,t&=-t,f.lanes|=t;var w=As(f,a,t);Ma(f,w);break a}}f=f.return}while(f!==null)}Wc(n)}catch(e){t=e,Z===n&&n!==null&&(Z=n=n.return);continue}break}while(1)}function zc(){var e=qs.current;return qs.current=Yo,e===null?Yo:e}function Bc(e,t){var n=X;X|=16;var r=zc();Ys===e&&Xs===t||Lc(e,t);do try{Vc();break}catch(t){Rc(e,t)}while(1);if(Sa(),X=n,qs.current=r,Z!==null)throw Error(i(261));return Ys=null,Xs=0,Q}function Vc(){for(;Z!==null;)Uc(Z)}function Hc(){for(;Z!==null&&!Ji();)Uc(Z)}function Uc(e){var t=nl(e.alternate,e,Zs);e.memoizedProps=e.pendingProps,t===null?Wc(e):Z=t,Js.current=null}function Wc(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&2048){if(n=Ts(t),n!==null){n.flags&=2047,Z=n;return}e!==null&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}else{if(n=ws(n,t,Zs),n!==null){Z=n;return}if(n=t,n.tag!==24&&n.tag!==23||n.memoizedState===null||Zs&1073741824||!(n.mode&4)){for(var r=0,i=n.child;i!==null;)r|=i.lanes|i.childLanes,i=i.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.firstEffect=t:e.lastEffect.nextEffect=t,e.lastEffect=t))}if(t=t.sibling,t!==null){Z=t;return}Z=t=e}while(t!==null);Q===0&&(Q=5)}function Gc(e){var t=ua();return fa(99,Kc.bind(null,e,t)),null}function Kc(e,t){do Jc();while(fc!==null);if(X&48)throw Error(i(327));var n=e.finishedWork;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null;var r=n.lanes|n.childLanes,a=r,o=e.pendingLanes&~a;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=a,e.mutableReadLanes&=a,e.entangledLanes&=a,a=e.entanglements;for(var s=e.eventTimes,c=e.expirationTimes;0<o;){var l=31-pn(o),u=1<<l;a[l]=0,s[l]=-1,c[l]=-1,o&=~u}if(gc!==null&&!(r&24)&&gc.has(e)&&gc.delete(e),e===Ys&&(Z=Ys=null,Xs=0),1<n.flags?n.lastEffect===null?r=n:(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n.firstEffect,r!==null){if(a=X,X|=32,Js.current=null,ci=yn,s=Rr(),zr(s)){if(`selectionStart`in s)c={start:s.selectionStart,end:s.selectionEnd};else a:if(c=(c=s.ownerDocument)&&c.defaultView||window,(u=c.getSelection&&c.getSelection())&&u.rangeCount!==0){c=u.anchorNode,o=u.anchorOffset,l=u.focusNode,u=u.focusOffset;try{c.nodeType,l.nodeType}catch{c=null;break a}var d=0,f=-1,p=-1,m=0,h=0,g=s,_=null;b:for(;;){for(var v;g!==c||o!==0&&g.nodeType!==3||(f=d+o),g!==l||u!==0&&g.nodeType!==3||(p=d+u),g.nodeType===3&&(d+=g.nodeValue.length),(v=g.firstChild)!==null;)_=g,g=v;for(;;){if(g===s)break b;if(_===c&&++m===o&&(f=d),_===l&&++h===u&&(p=d),(v=g.nextSibling)!==null)break;g=_,_=g.parentNode}g=v}c=f===-1||p===-1?null:{start:f,end:p}}else c=null;c||={start:0,end:0}}else c=null;li={focusedElem:s,selectionRange:c},yn=!1,Sc=null,Cc=!1,$=r;do try{qc()}catch(e){if($===null)throw Error(i(330));$c($,e),$=$.nextEffect}while($!==null);Sc=null,$=r;do try{for(s=e;$!==null;){var y=$.flags;if(y&16&&Le($.stateNode,``),y&128){var b=$.alternate;if(b!==null){var x=b.ref;x!==null&&(typeof x==`function`?x(null):x.current=null)}}switch(y&1038){case 2:zs($),$.flags&=-3;break;case 6:zs($),$.flags&=-3,Us($.alternate,$);break;case 1024:$.flags&=-1025;break;case 1028:$.flags&=-1025,Us($.alternate,$);break;case 4:Us($.alternate,$);break;case 8:c=$,Hs(s,c);var S=c.alternate;Ls(c),S!==null&&Ls(S)}$=$.nextEffect}}catch(e){if($===null)throw Error(i(330));$c($,e),$=$.nextEffect}while($!==null);if(x=li,b=Rr(),y=x.focusedElem,s=x.selectionRange,b!==y&&y&&y.ownerDocument&&Lr(y.ownerDocument.documentElement,y)){for(s!==null&&zr(y)&&(b=s.start,x=s.end,x===void 0&&(x=b),(`selectionStart`in y)?(y.selectionStart=b,y.selectionEnd=Math.min(x,y.value.length)):(x=(b=y.ownerDocument||document)&&b.defaultView||window,x.getSelection&&(x=x.getSelection(),c=y.textContent.length,S=Math.min(s.start,c),s=s.end===void 0?S:Math.min(s.end,c),!x.extend&&S>s&&(c=s,s=S,S=c),c=Ir(y,S),o=Ir(y,s),c&&o&&(x.rangeCount!==1||x.anchorNode!==c.node||x.anchorOffset!==c.offset||x.focusNode!==o.node||x.focusOffset!==o.offset)&&(b=b.createRange(),b.setStart(c.node,c.offset),x.removeAllRanges(),S>s?(x.addRange(b),x.extend(o.node,o.offset)):(b.setEnd(o.node,o.offset),x.addRange(b)))))),b=[],x=y;x=x.parentNode;)x.nodeType===1&&b.push({element:x,left:x.scrollLeft,top:x.scrollTop});for(typeof y.focus==`function`&&y.focus(),y=0;y<b.length;y++)x=b[y],x.element.scrollLeft=x.left,x.element.scrollTop=x.top}yn=!!ci,li=ci=null,e.current=n,$=r;do try{for(y=e;$!==null;){var C=$.flags;if(C&36&&Ps(y,$.alternate,$),C&128){b=void 0;var w=$.ref;if(w!==null){var T=$.stateNode;switch($.tag){case 5:b=T;break;default:b=T}typeof w==`function`?w(b):w.current=b}}$=$.nextEffect}}catch(e){if($===null)throw Error(i(330));$c($,e),$=$.nextEffect}while($!==null);$=null,ia(),X=a}else e.current=n;if(dc)dc=!1,fc=e,pc=t;else for($=r;$!==null;)t=$.nextEffect,$.nextEffect=null,$.flags&8&&(C=$,C.sibling=null,C.stateNode=null),$=t;if(r=e.pendingLanes,r===0&&(uc=null),r===1?e===vc?_c++:(_c=0,vc=e):_c=0,n=n.stateNode,Wi&&typeof Wi.onCommitFiberRoot==`function`)try{Wi.onCommitFiberRoot(Ui,n,void 0,(n.current.flags&64)==64)}catch{}if(Oc(e,la()),cc)throw cc=!1,e=lc,lc=null,e;return X&8||ma(),null}function qc(){for(;$!==null;){var e=$.alternate;Cc||Sc===null||($.flags&8?bt($,Sc)&&(Cc=!0):$.tag===13&&Gs(e,$)&&bt($,Sc)&&(Cc=!0));var t=$.flags;t&256&&Ns(e,$),!(t&512)||dc||(dc=!0,pa(97,function(){return Jc(),null})),$=$.nextEffect}}function Jc(){if(pc!==90){var e=97<pc?97:pc;return pc=90,fa(e,Zc)}return!1}function Yc(e,t){mc.push(t,e),dc||(dc=!0,pa(97,function(){return Jc(),null}))}function Xc(e,t){hc.push(t,e),dc||(dc=!0,pa(97,function(){return Jc(),null}))}function Zc(){if(fc===null)return!1;var e=fc;if(fc=null,X&48)throw Error(i(331));var t=X;X|=32;var n=hc;hc=[];for(var r=0;r<n.length;r+=2){var a=n[r],o=n[r+1],s=a.destroy;if(a.destroy=void 0,typeof s==`function`)try{s()}catch(e){if(o===null)throw Error(i(330));$c(o,e)}}for(n=mc,mc=[],r=0;r<n.length;r+=2){a=n[r],o=n[r+1];try{var c=a.create;a.destroy=c()}catch(e){if(o===null)throw Error(i(330));$c(o,e)}}for(c=e.current.firstEffect;c!==null;)e=c.nextEffect,c.nextEffect=null,c.flags&8&&(c.sibling=null,c.stateNode=null),c=e;return X=t,ma(),!0}function Qc(e,t,n){t=Es(n,t),t=ks(e,t,1),ja(e,t),t=wc(),e=Dc(e,1),e!==null&&(fn(e,1,t),Oc(e,t))}function $c(e,t){if(e.tag===3)Qc(e,e,t);else for(var n=e.return;n!==null;){if(n.tag===3){Qc(n,e,t);break}else if(n.tag===1){var r=n.stateNode;if(typeof n.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(uc===null||!uc.has(r))){e=Es(t,e);var i=As(n,e,1);if(ja(n,i),i=wc(),n=Dc(n,1),n!==null)fn(n,1,i),Oc(n,i);else if(typeof r.componentDidCatch==`function`&&(uc===null||!uc.has(r)))try{r.componentDidCatch(t,e)}catch{}break}}n=n.return}}function el(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=wc(),e.pingedLanes|=e.suspendedLanes&n,Ys===e&&(Xs&n)===n&&(Q===4||Q===3&&(Xs&62914560)===Xs&&500>la()-ac?Lc(e,0):rc|=n),Oc(e,t)}function tl(e,t){var n=e.stateNode;n!==null&&n.delete(t),t=0,t===0&&(t=e.mode,t&2?t&4?(bc===0&&(bc=ec),t=un(62914560&~bc),t===0&&(t=4194304)):t=ua()===99?1:2:t=1),n=wc(),e=Dc(e,t),e!==null&&(fn(e,t,n),Oc(e,n))}var nl=function(e,t,n){var r=t.lanes;if(e!==null)if(e.memoizedProps!==t.pendingProps||Pi.current)es=!0;else if((n&r)!==0)es=!!(e.flags&16384);else{switch(es=!1,t.tag){case 3:us(t),po();break;case 5:to(t);break;case 1:Li(t.type)&&Vi(t);break;case 4:$a(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var a=t.type._context;K(va,a._currentValue),a._currentValue=r;break;case 13:if(t.memoizedState!==null)return(n&t.child.childLanes)===0?(K(q,q.current&1),t=ys(e,t,n),t===null?null:t.sibling):fs(e,t,n);K(q,q.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&64){if(r)return vs(e,t,n);t.flags|=64}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),K(q,q.current),r)break;return null;case 23:case 24:return t.lanes=0,as(e,t,n)}return ys(e,t,n)}else es=!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,a=Ii(t,Ni.current),Ta(t,n),a=wo(null,t,r,e,a,n),t.flags|=1,typeof a==`object`&&a&&typeof a.render==`function`&&a.$$typeof===void 0){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,Li(r)){var o=!0;Vi(t)}else o=!1;t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,Oa(t);var s=r.getDerivedStateFromProps;typeof s==`function`&&Ia(t,r,s,e),a.updater=La,t.stateNode=a,a._reactInternals=t,Va(t,r,e,n),t=ls(null,t,r,!0,o,n)}else t.tag=0,ts(null,t,a,n),t=t.child;return t;case 16:a=t.elementType;a:{switch(e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=a._init,a=o(a._payload),t.type=a,o=t.tag=ol(a),e=_a(a,e),o){case 0:t=ss(null,t,a,e,n);break a;case 1:t=cs(null,t,a,e,n);break a;case 11:t=ns(null,t,a,e,n);break a;case 14:t=rs(null,t,a,_a(a.type,e),r,n);break a}throw Error(i(306,a,``))}return t;case 0:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:_a(r,a),ss(e,t,r,a,n);case 1:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:_a(r,a),cs(e,t,r,a,n);case 3:if(us(t),r=t.updateQueue,e===null||r===null)throw Error(i(282));if(r=t.pendingProps,a=t.memoizedState,a=a===null?null:a.element,ka(e,t),Na(t,r,null,n),r=t.memoizedState.element,r===a)po(),t=ys(e,t,n);else{if(a=t.stateNode,(o=a.hydrate)&&(ao=hi(t.stateNode.containerInfo.firstChild),io=t,o=oo=!0),o){if(e=a.mutableSourceEagerHydrationData,e!=null)for(a=0;a<e.length;a+=2)o=e[a],o._workInProgressVersionPrimary=e[a+1],mo.push(o);for(n=qa(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|1024,n=n.sibling}else ts(e,t,r,n),po();t=t.child}return t;case 5:return to(t),e===null&&lo(t),r=t.type,a=t.pendingProps,o=e===null?null:e.memoizedProps,s=a.children,di(r,a)?s=null:o!==null&&di(r,o)&&(t.flags|=16),os(e,t),ts(e,t,s,n),t.child;case 6:return e===null&&lo(t),null;case 13:return fs(e,t,n);case 4:return $a(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ka(t,null,r,n):ts(e,t,r,n),t.child;case 11:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:_a(r,a),ns(e,t,r,a,n);case 7:return ts(e,t,t.pendingProps,n),t.child;case 8:return ts(e,t,t.pendingProps.children,n),t.child;case 12:return ts(e,t,t.pendingProps.children,n),t.child;case 10:a:{r=t.type._context,a=t.pendingProps,s=t.memoizedProps,o=a.value;var c=t.type._context;if(K(va,c._currentValue),c._currentValue=o,s!==null)if(c=s.value,o=Mr(c,o)?0:(typeof r._calculateChangedBits==`function`?r._calculateChangedBits(c,o):1073741823)|0,o===0){if(s.children===a.children&&!Pi.current){t=ys(e,t,n);break a}}else for(c=t.child,c!==null&&(c.return=t);c!==null;){var l=c.dependencies;if(l!==null){s=c.child;for(var u=l.firstContext;u!==null;){if(u.context===r&&(u.observedBits&o)!==0){c.tag===1&&(u=Aa(-1,n&-n),u.tag=2,ja(c,u)),c.lanes|=n,u=c.alternate,u!==null&&(u.lanes|=n),wa(c.return,n),l.lanes|=n;break}u=u.next}}else s=c.tag===10&&c.type===t.type?null:c.child;if(s!==null)s.return=c;else for(s=c;s!==null;){if(s===t){s=null;break}if(c=s.sibling,c!==null){c.return=s.return,s=c;break}s=s.return}c=s}ts(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,o=t.pendingProps,r=o.children,Ta(t,n),a=Ea(a,o.unstable_observedBits),r=r(a),t.flags|=1,ts(e,t,r,n),t.child;case 14:return a=t.type,o=_a(a,t.pendingProps),o=_a(a.type,o),rs(e,t,a,o,r,n);case 15:return is(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:_a(r,a),e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,Li(r)?(e=!0,Vi(t)):e=!1,Ta(t,n),za(t,r,a),Va(t,r,a,n),ls(null,t,r,!0,e,n);case 19:return vs(e,t,n);case 23:return as(e,t,n);case 24:return as(e,t,n)}throw Error(i(156,t.tag))};function rl(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 il(e,t,n,r){return new rl(e,t,n,r)}function al(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ol(e){if(typeof e==`function`)return al(e)?1:0;if(e!=null){if(e=e.$$typeof,e===N)return 11;if(e===te)return 14}return 2}function sl(e,t){var n=e.alternate;return n===null?(n=il(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 cl(e,t,n,r,a,o){var s=2;if(r=e,typeof e==`function`)al(e)&&(s=1);else if(typeof e==`string`)s=5;else a:switch(e){case O:return ll(n.children,a,o,t);case ae:s=8,a|=16;break;case k:s=8,a|=1;break;case A:return e=il(12,n,t,a|8),e.elementType=A,e.type=A,e.lanes=o,e;case P:return e=il(13,n,t,a),e.type=P,e.elementType=P,e.lanes=o,e;case ee:return e=il(19,n,t,a),e.elementType=ee,e.lanes=o,e;case oe:return ul(n,a,o,t);case se:return e=il(24,n,t,a),e.elementType=se,e.lanes=o,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case j:s=10;break a;case M:s=9;break a;case N:s=11;break a;case te:s=14;break a;case ne:s=16,r=null;break a;case re:s=22;break a}throw Error(i(130,e==null?e:typeof e,``))}return t=il(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function ll(e,t,n,r){return e=il(7,e,r,t),e.lanes=n,e}function ul(e,t,n,r){return e=il(23,e,r,t),e.elementType=oe,e.lanes=n,e}function dl(e,t,n){return e=il(6,e,null,t),e.lanes=n,e}function fl(e,t,n){return t=il(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function pl(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=dn(0),this.expirationTimes=dn(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=dn(0),this.mutableSourceEagerHydrationData=null}function ml(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:D,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}function hl(e,t,n,r){var a=t.current,o=wc(),s=Tc(a);a:if(n){n=n._reactInternals;b:{if(ht(n)!==n||n.tag!==1)throw Error(i(170));var c=n;do{switch(c.tag){case 3:c=c.stateNode.context;break b;case 1:if(Li(c.type)){c=c.stateNode.__reactInternalMemoizedMergedChildContext;break b}}c=c.return}while(c!==null);throw Error(i(171))}if(n.tag===1){var l=n.type;if(Li(l)){n=Bi(n,l,c);break a}}n=c}else n=Mi;return t.context===null?t.context=n:t.pendingContext=n,t=Aa(o,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),ja(a,t),Ec(a,s,o),s}function gl(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 _l(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function vl(e,t){_l(e,t),(e=e.alternate)&&_l(e,t)}function yl(){return null}function bl(e,t,n){var r=n!=null&&n.hydrationOptions!=null&&n.hydrationOptions.mutableSources||null;if(n=new pl(e,t,n!=null&&!0===n.hydrate),t=il(3,null,null,t===2?7:t===1?3:0),n.current=t,t.stateNode=n,Oa(t),e[Si]=n.current,$r(e.nodeType===8?e.parentNode:e),r)for(e=0;e<r.length;e++){t=r[e];var i=t._getVersion;i=i(t._source),n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[t,i]:n.mutableSourceEagerHydrationData.push(t,i)}this._internalRoot=n}bl.prototype.render=function(e){hl(e,this._internalRoot,null,null)},bl.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;hl(null,e,null,function(){t[Si]=null})};function xl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==` react-mount-point-unstable `))}function Sl(e,t){if(t||=(t=e?e.nodeType===9?e.documentElement:e.firstChild:null,!(!t||t.nodeType!==1||!t.hasAttribute(`data-reactroot`))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new bl(e,0,t?{hydrate:!0}:void 0)}function Cl(e,t,n,r,i){var a=n._reactRootContainer;if(a){var o=a._internalRoot;if(typeof i==`function`){var s=i;i=function(){var e=gl(o);s.call(e)}}hl(t,o,e,i)}else{if(a=n._reactRootContainer=Sl(n,r),o=a._internalRoot,typeof i==`function`){var c=i;i=function(){var e=gl(o);c.call(e)}}Pc(function(){hl(t,o,e,i)})}return gl(o)}xt=function(e){e.tag===13&&(Ec(e,4,wc()),vl(e,4))},St=function(e){e.tag===13&&(Ec(e,67108864,wc()),vl(e,67108864))},Ct=function(e){if(e.tag===13){var t=wc(),n=Tc(e);Ec(e,n,t),vl(e,n)}},wt=function(e,t){return t()},Ge=function(e,t,n){switch(t){case`input`:if(Se(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 a=Di(r);if(!a)throw Error(i(90));_e(r),Se(r,a)}}}break;case`textarea`:Ae(e,n);break;case`select`:t=n.value,t!=null&&De(e,!!n.multiple,t,!1)}},Ze=Nc,Qe=function(e,t,n,r,i){var a=X;X|=4;try{return fa(98,e.bind(null,t,n,r,i))}finally{X=a,X===0&&(sc(),ma())}},$e=function(){!(X&49)&&(Mc(),Jc())},et=function(e,t){var n=X;X|=2;try{return e(t)}finally{X=n,X===0&&(sc(),ma())}};function wl(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!xl(t))throw Error(i(200));return ml(e,t,null,n)}var Tl={findFiberByHostInstance:wi,bundleType:0,version:`17.0.2`,rendererPackageName:`react-dom`},El={bundleType:Tl.bundleType,version:Tl.version,rendererPackageName:Tl.rendererPackageName,rendererConfig:Tl.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:T.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=yt(e),e===null?null:e.stateNode},findFiberByHostInstance:Tl.findFiberByHostInstance||yl,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Dl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Dl.isDisabled&&Dl.supportsFiber)try{Ui=Dl.inject(El),Wi=Dl}catch{}}e.createPortal=wl,e.render=function(e,t,n){if(!xl(t))throw Error(i(200));return Cl(null,e,t,!1,n)}})),g=o(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=h()})),_=g(),v=l(f(),1),y=v.createContext({posts:[],authors:[],tags:[],action:``,lastPage:``,page:``,pageData:{},dispatch:(e,t)=>{},searchIndex:null,indexComplete:!1,searchValue:``,t:()=>{},dir:`ltr`}),b=o((e=>{u();var t=f(),n=60103;if(e.Fragment=60107,typeof Symbol==`function`&&Symbol.for){var r=Symbol.for;n=r(`react.element`),e.Fragment=r(`react.fragment`)}var i=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a=Object.prototype.hasOwnProperty,o={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,r){var s,c={},l=null,u=null;for(s in r!==void 0&&(l=``+r),t.key!==void 0&&(l=``+t.key),t.ref!==void 0&&(u=t.ref),t)a.call(t,s)&&!o.hasOwnProperty(s)&&(c[s]=t[s]);if(e&&e.defaultProps)for(s in t=e.defaultProps,t)c[s]===void 0&&(c[s]=t[s]);return{$$typeof:n,type:e,key:l,ref:u,props:c,_owner:i.current}}e.jsx=s,e.jsxs=s})),x=l(o(((e,t)=>{t.exports=b()}))()),S=e=>(0,x.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,height:16,width:16,viewBox:`0 0 16 16`,...e,children:[(0,x.jsx)(`title`,{children:`circle anim`}),(0,x.jsxs)(`g`,{fill:`#40413F`,className:`nc-icon-wrapper`,children:[(0,x.jsxs)(`g`,{className:`nc-loop-circle-16-icon-f`,children:[(0,x.jsx)(`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`}),(0,x.jsx)(`path`,{d:`M8 0v2a6.006 6.006 0 0 1 6 6h2a8.009 8.009 0 0 0-8-8z`,"data-color":`color-2`})]}),(0,x.jsx)(`style`,{children:`.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)}}`})]})]}),C=e=>(0,x.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,height:16,width:16,...e,children:(0,x.jsx)(`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`})}),w=class extends v.Component{componentDidMount(){this.node.addEventListener(`load`,this.handleLoad)}handleLoad=()=>{this.setupFrameBaseStyle()};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(){let{children:e,head:t,title:n=``,style:r={},...i}=this.props;return(0,x.jsxs)(`iframe`,{srcDoc:`<!DOCTYPE html>`,...i,ref:e=>this.node=e,title:n,style:r,frameBorder:`0`,children:[this.iframeHead&&(0,_.createPortal)(t,this.iframeHead),this.iframeRoot&&(0,_.createPortal)(e,this.iframeRoot)]})}},T=e=>(0,x.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,height:16,width:16,...e,children:(0,x.jsx)(`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`})}),E=10,D=10,O=()=>({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`}}}),k=class extends v.Component{static contextType=y;componentDidMount(){this.sendContainerHeightChangeEvent()}sendContainerHeightChangeEvent(){}componentDidUpdate(){this.sendContainerHeightChangeEvent()}handlePopupClose(e){e.preventDefault(),e.target===e.currentTarget&&this.context.dispatch(`update`,{showPopup:!1})}render(){return(0,x.jsx)(pe,{})}};function A(){let{searchValue:e,dispatch:t,inputRef:n,t:r}=(0,v.useContext)(y),i=(0,v.useRef)(null);(0,v.useEffect)(()=>{setTimeout(()=>{n?.current?.focus()},150);let e=e=>{e.key===`Escape`&&t(`update`,{showPopup:!1})},r=i?.current;return r?.ownerDocument.removeEventListener(`keyup`,e),r?.ownerDocument.addEventListener(`keyup`,e),()=>{r?.ownerDocument.removeEventListener(`keyup`,e)}},[t,n]);let a=`z-10 relative flex items-center py-5 px-4 sm:px-7 bg-white rounded-t-lg shadow`;return e||(a=`z-10 relative flex items-center py-5 px-4 sm:px-7 bg-white rounded-lg`),(0,x.jsxs)(`div`,{className:a,ref:i,children:[(0,x.jsx)(`div`,{className:`flex items-center justify-center w-4 h-4 me-3`,children:(0,x.jsx)(j,{})}),(0,x.jsx)(`input`,{ref:n,value:e||``,onChange:e=>{t(`update`,{searchValue:e.target.value})},onKeyDown:e=>{(e.key===`ArrowUp`||e.key===`ArrowDown`)&&e.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`)}),(0,x.jsx)(M,{}),(0,x.jsx)(N,{})]})}function j(){let{searchValue:e=``,dispatch:t}=(0,v.useContext)(y);return e?(0,x.jsx)(`button`,{alt:`Clear`,className:`-mb-[1px]`,onClick:()=>{t(`update`,{searchValue:``})},children:(0,x.jsx)(C,{className:`text-neutral-900 hover:text-neutral-500 h-[1.1rem] w-[1.1rem]`})}):(0,x.jsx)(T,{className:`text-neutral-900`,alt:`Search`})}function M(){let{indexComplete:e,searchValue:t}=(0,v.useContext)(y);return!e&&t?(0,x.jsx)(S,{className:`shrink-0`}):null}function N(){let{dispatch:e,t}=(0,v.useContext)(y);return(0,x.jsx)(`button`,{className:`ms-3 text-sm text-neutral-500 sm:hidden`,alt:`Cancel`,onClick:()=>{e(`update`,{showPopup:!1})},children:t(`Cancel`)})}function P({tag:e,selectedResult:t,setSelectedResult:n}){let{name:r,url:i,id:a}=e,o=`flex items-center py-3 -mx-4 sm:-mx-7 px-4 sm:px-7 cursor-pointer`;return a===t&&(o+=` bg-neutral-100`),(0,x.jsxs)(`div`,{className:o,onClick:()=>{i&&(window.location.href=i)},onMouseEnter:()=>{n(a)},children:[(0,x.jsx)(`p`,{className:`me-2 text-sm font-bold text-neutral-400`,children:`#`}),(0,x.jsx)(`h2`,{className:`text-[1.65rem] font-medium leading-tight text-neutral-900 truncate`,children:r})]})}function ee({tags:e,selectedResult:t,setSelectedResult:n}){let{t:r}=(0,v.useContext)(y);if(!e?.length)return null;let i=e.map(e=>(0,x.jsx)(P,{tag:e,selectedResult:t,setSelectedResult:n},e.name));return(0,x.jsxs)(`div`,{className:`border-t border-gray-200 py-3 px-4 sm:px-7`,children:[(0,x.jsx)(`h1`,{className:`uppercase text-xs text-neutral-400 font-semibold mb-1 tracking-wide`,children:r(`Tags`)}),i]})}function te({post:e,selectedResult:t,setSelectedResult:n}){let{searchValue:r}=(0,v.useContext)(y),{title:i,excerpt:a,url:o,id:s}=e,c=`py-3 -mx-4 sm:-mx-7 px-4 sm:px-7 cursor-pointer`;return s===t&&(c+=` bg-neutral-100`),(0,x.jsxs)(`div`,{className:c,onClick:()=>{o&&(window.location.href=o)},onMouseEnter:()=>{n(s)},children:[(0,x.jsx)(`h2`,{className:`text-[1.65rem] font-medium leading-tight text-neutral-800`,children:(0,x.jsx)(ie,{text:i,highlight:r,isExcerpt:!1})}),(0,x.jsx)(`p`,{className:`text-neutral-400 leading-normal text-sm mt-0 mb-0 truncate`,children:(0,x.jsx)(ie,{text:a,highlight:r,isExcerpt:!0})})]})}function ne({text:e,highlight:t}){let n=``;t?.split(` `).forEach((e,t)=>{let r=String(e).replace(/\W/g,`\\&`);t>0?n+=`|^`+r+`|\\s`+r:n=`^`+r+`|\\s`+r});let r=RegExp(`${n}`,`ig`),i=e?.matchAll(r),a=[];for(let e of i)a.push({startIdx:e?.index,endIdx:(e?.index||0)+(e?.[0].length||0)});return a}function re({text:e,highlight:t}){let n=ne({text:e,highlight:t}),r=[],i=0;return n.forEach(t=>{i===t.startIdx?(r.push({text:e?.slice(t.startIdx,t.endIdx),type:`highlight`}),i=t.endIdx):(r.push({text:e?.slice(i,t.startIdx),type:`normal`}),r.push({text:e?.slice(t.startIdx,t.endIdx),type:`highlight`}),i=t.endIdx)}),i<e?.length&&r.push({text:e?.slice(i,e.length),type:`normal`}),{parts:r,highlightIndexes:n}}function ie({text:e=``,highlight:t=``,isExcerpt:n}){e||=``,t||=``;let{parts:r,highlightIndexes:i}=re({text:e,highlight:t});if(n&&i?.[0]){let n=i?.[0]?.startIdx;if(n>50){e=`...`+e?.slice(n-20);let{parts:i}=re({text:e,highlight:t});r=i}}return(0,x.jsx)(x.Fragment,{children:r.map((e,t)=>e?.type===`highlight`?(0,x.jsx)(v.default.Fragment,{children:(0,x.jsx)(ae,{word:e.text,isExcerpt:n})},t):(0,x.jsx)(v.default.Fragment,{children:e.text},t))})}function ae({word:e,isExcerpt:t}){return t?(0,x.jsx)(x.Fragment,{children:(0,x.jsx)(`span`,{className:`font-bold`,children:e})}):(0,x.jsx)(x.Fragment,{children:(0,x.jsx)(`span`,{className:`font-bold text-neutral-900`,children:e})})}function oe({posts:e,maxPosts:t,setMaxPosts:n}){let{t:r}=(0,v.useContext)(y);return!e?.length||t>=e?.length?null:(0,x.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:()=>{n(t+D)},children:r(`Show more results`)})}function se({posts:e,selectedResult:t,setSelectedResult:n}){let{t:r}=(0,v.useContext)(y),[i,a]=(0,v.useState)(E),[o,s]=(0,v.useState)([]);if((0,v.useEffect)(()=>{a(E)},[e]),(0,v.useEffect)(()=>{s(e?.slice(0,i+1))},[i,e]),!e?.length)return null;function c(){return o.map(e=>(0,x.jsx)(te,{post:e,selectedResult:t,setSelectedResult:n},e.title))}return(0,x.jsxs)(`div`,{className:`border-t border-neutral-200 py-3 px-4 sm:px-7`,children:[(0,x.jsx)(`h1`,{className:`uppercase text-xs text-neutral-400 font-semibold mb-1 tracking-wide`,children:r(`Posts`)}),(0,x.jsx)(c,{}),(0,x.jsx)(oe,{setMaxPosts:a,maxPosts:i,posts:e})]})}function F({author:e,selectedResult:t,setSelectedResult:n}){let{name:r,profile_image:i,url:a,id:o}=e,s=`py-[1rem] -mx-4 sm:-mx-7 px-4 sm:px-7 cursor-pointer flex items-center`;return o===t&&(s+=` bg-neutral-100`),(0,x.jsxs)(`div`,{className:s,onClick:()=>{a&&(window.location.href=a)},onMouseEnter:()=>{n(o)},children:[(0,x.jsx)(ce,{name:r,avatar:i}),(0,x.jsx)(`h2`,{className:`text-[1.65rem] font-medium leading-tight text-neutral-900 truncate`,children:r})]})}function ce({name:e,avatar:t}){let n=t?.length,r=e.charAt(0);return n?(0,x.jsx)(`img`,{className:`rounded-full bg-neutral-300 w-7 h-7 me-2 object-cover`,src:t,alt:e}):(0,x.jsx)(`div`,{className:`rounded-full bg-neutral-200 w-7 h-7 me-2 flex items-center justify-center font-bold`,children:(0,x.jsx)(`span`,{className:`text-neutral-400`,children:r})})}function le({authors:e,selectedResult:t,setSelectedResult:n}){let{t:r}=(0,v.useContext)(y);if(!e?.length)return null;let i=e.map(e=>(0,x.jsx)(F,{author:e,selectedResult:t,setSelectedResult:n},e.name));return(0,x.jsxs)(`div`,{className:`border-t border-neutral-200 py-3 px-4 sm:px-7`,children:[(0,x.jsx)(`h1`,{className:`uppercase text-xs text-neutral-400 font-semibold mb-1 tracking-wide`,children:r(`Authors`)}),i]})}function ue(){let{searchValue:e=``,searchIndex:t,indexComplete:n}=(0,v.useContext)(y),r=null,i=[],a=[],o=[];return n&&e&&(r=t?.search(e),a=r?.posts||[],o=r?.authors||[],i=r?.tags||[]),o=o.filter(e=>!(e?.url&&/\/404\/$/.test(e?.url))),i=i.filter(e=>!(e?.url&&/\/404\/$/.test(e?.url))),a?.length||o?.length||i?.length?(0,x.jsx)(de,{posts:a,authors:o,tags:i}):e?(0,x.jsx)(fe,{}):null}function de({posts:e,authors:t,tags:n}){let{searchValue:r}=(0,v.useContext)(y),i=(0,v.useMemo)(()=>[...t,...n,...e],[t,n,e]),[a,o]=(0,v.useState)(i?.[0]?.id||null),s=(0,v.useRef)(null);return(0,v.useEffect)(()=>{o(i?.[0]?.id||null)},[i]),(0,v.useEffect)(()=>{let e=e=>{if(e.isComposing||e.keyCode===229)return;let t=i.findIndex(e=>e.id===a),n=i[t+1],r=i[t-1];if(e.key===`ArrowUp`&&r?o(r?.id):e.key===`ArrowDown`&&n&&o(n?.id),e.key===`Enter`){let e=i.find(e=>e.id===a);window.location.href=e?.url}},t=s?.current?.ownerDocument;return t?.removeEventListener(`keydown`,e),t?.addEventListener(`keydown`,e),()=>{t?.removeEventListener(`keydown`,e)}},[i,a]),r?(0,x.jsxs)(`div`,{className:`overflow-y-auto max-h-[calc(100vh-172px)] sm:max-h-[70vh] -mt-[1px]`,ref:s,children:[(0,x.jsx)(le,{authors:t,selectedResult:a,setSelectedResult:o}),(0,x.jsx)(ee,{tags:n,selectedResult:a,setSelectedResult:o}),(0,x.jsx)(se,{posts:e,selectedResult:a,setSelectedResult:o})]}):null}function fe(){let{t:e}=(0,v.useContext)(y);return(0,x.jsx)(`div`,{className:`py-4 px-7`,children:(0,x.jsx)(`p`,{className:`text-[1.65rem] text-neutral-400 leading-normal`,children:e(`No matches found`)})})}function pe(){let{dispatch:e}=(0,v.useContext)(y);return(0,x.jsx)(x.Fragment,{children:(0,x.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:(0,x.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:[(0,x.jsx)(A,{}),(0,x.jsx)(ue,{})]})})})}var me=class extends v.Component{static contextType=y;constructor(e){super(e),this.state={height:null}}onHeightChange(e){this.setState({height:e})}handlePopupClose(e){e.preventDefault(),e.target===e.currentTarget&&this.context.dispatch(`update`,{showPopup:!1})}renderFrameStyles(){let e=`
|
|
10
10
|
:root {
|
|
11
|
-
--brandcolor: ${this.context.brandColor
|
|
11
|
+
--brandcolor: ${this.context.brandColor||``}
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
.ghost-display {
|
|
15
15
|
display: none;
|
|
16
16
|
}
|
|
17
|
-
`,i=this.context.stylesUrl;return i?F.jsxs(F.Fragment,{children:[F.jsx("link",{rel:"stylesheet",href:i}),F.jsx("style",{dangerouslySetInnerHTML:{__html:s}}),F.jsx("meta",{name:"viewport",content:"width=device-width, initial-scale=1, maximum-scale=1"})]}):F.jsxs(F.Fragment,{children:[F.jsx("style",{dangerouslySetInnerHTML:{__html:s}}),F.jsx("meta",{name:"viewport",content:"width=device-width, initial-scale=1, maximum-scale=1"})]})}renderFrameContainer(){const s=uf(),i={...s.frame.common};return F.jsx("div",{style:s.modalContainer,className:"gh-root-frame",children:F.jsxs(of,{style:i,title:"portal-popup",head:this.renderFrameStyles(),searchdir:this.context.dir,children:[F.jsx("div",{onClick:o=>this.handlePopupClose(o),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)]"}),F.jsx(cf,{})]})})}render(){const{showPopup:s}=this.context;return s?this.renderFrameContainer():null}}var J;function je(r,s,i){const o=typeof i,l=typeof r;if(o!=="undefined"){if(l!=="undefined"){if(i){if(l==="function"&&o===l)return function(p){return r(i(p))};if(s=r.constructor,s===i.constructor){if(s===Array)return i.concat(r);if(s===Map){var c=new Map(i);for(var f of r)c.set(f[0],f[1]);return c}if(s===Set){f=new Set(i);for(c of r.values())f.add(c);return f}}}return r}return i}return l==="undefined"?s:r}function un(r,s){return typeof r>"u"?s:r}function Te(){return Object.create(null)}function et(r){return typeof r=="string"}function Kn(r){return typeof r=="object"}function Wn(r,s){if(et(s))r=r[s];else for(let i=0;r&&i<s.length;i++)r=r[s[i]];return r}const Af=/[^\p{L}\p{N}]+/u,jf=/(\d{3})/g,Lf=/(\D)(\d{3})/g,Of=/(\d{3})(\D)/g,Al=/[\u0300-\u036f]/g;function cn(r={}){if(!this||this.constructor!==cn)return new cn(...arguments);if(arguments.length)for(r=0;r<arguments.length;r++)this.assign(arguments[r]);else this.assign(r)}J=cn.prototype,J.assign=function(r){this.normalize=je(r.normalize,!0,this.normalize);let s=r.include,i=s||r.exclude||r.split,o;if(i||i===""){if(typeof i=="object"&&i.constructor!==RegExp){let l="";o=!s,s||(l+="\\p{Z}"),i.letter&&(l+="\\p{L}"),i.number&&(l+="\\p{N}",o=!!s),i.symbol&&(l+="\\p{S}"),i.punctuation&&(l+="\\p{P}"),i.control&&(l+="\\p{C}"),(i=i.char)&&(l+=typeof i=="object"?i.join(""):i);try{this.split=new RegExp("["+(s?"^":"")+l+"]+","u")}catch{this.split=/\s+/}}else this.split=i,o=i===!1||"a1a".split(i).length<2;this.numeric=je(r.numeric,o)}else{try{this.split=je(this.split,Af)}catch{this.split=/\s+/}this.numeric=je(r.numeric,je(this.numeric,!0))}if(this.prepare=je(r.prepare,null,this.prepare),this.finalize=je(r.finalize,null,this.finalize),i=r.filter,this.filter=typeof i=="function"?i:je(i&&new Set(i),null,this.filter),this.dedupe=je(r.dedupe,!0,this.dedupe),this.matcher=je((i=r.matcher)&&new Map(i),null,this.matcher),this.mapper=je((i=r.mapper)&&new Map(i),null,this.mapper),this.stemmer=je((i=r.stemmer)&&new Map(i),null,this.stemmer),this.replacer=je(r.replacer,null,this.replacer),this.minlength=je(r.minlength,1,this.minlength),this.maxlength=je(r.maxlength,1024,this.maxlength),this.rtl=je(r.rtl,!1,this.rtl),(this.cache=i=je(r.cache,!0,this.cache))&&(this.F=null,this.L=typeof i=="number"?i:2e5,this.B=new Map,this.D=new Map,this.I=this.H=128),this.h="",this.J=null,this.A="",this.K=null,this.matcher)for(const l of this.matcher.keys())this.h+=(this.h?"|":"")+l;if(this.stemmer)for(const l of this.stemmer.keys())this.A+=(this.A?"|":"")+l;return this},J.addStemmer=function(r,s){return this.stemmer||(this.stemmer=new Map),this.stemmer.set(r,s),this.A+=(this.A?"|":"")+r,this.K=null,this.cache&&Kt(this),this},J.addFilter=function(r){return typeof r=="function"?this.filter=r:(this.filter||(this.filter=new Set),this.filter.add(r)),this.cache&&Kt(this),this},J.addMapper=function(r,s){return typeof r=="object"?this.addReplacer(r,s):r.length>1?this.addMatcher(r,s):(this.mapper||(this.mapper=new Map),this.mapper.set(r,s),this.cache&&Kt(this),this)},J.addMatcher=function(r,s){return typeof r=="object"?this.addReplacer(r,s):r.length<2&&(this.dedupe||this.mapper)?this.addMapper(r,s):(this.matcher||(this.matcher=new Map),this.matcher.set(r,s),this.h+=(this.h?"|":"")+r,this.J=null,this.cache&&Kt(this),this)},J.addReplacer=function(r,s){return typeof r=="string"?this.addMatcher(r,s):(this.replacer||(this.replacer=[]),this.replacer.push(r,s),this.cache&&Kt(this),this)},J.encode=function(r,s){if(this.cache&&r.length<=this.H)if(this.F){if(this.B.has(r))return this.B.get(r)}else this.F=setTimeout(Kt,50,this);this.normalize&&(typeof this.normalize=="function"?r=this.normalize(r):r=Al?r.normalize("NFKD").replace(Al,"").toLowerCase():r.toLowerCase()),this.prepare&&(r=this.prepare(r)),this.numeric&&r.length>3&&(r=r.replace(Lf,"$1 $2").replace(Of,"$1 $2").replace(jf,"$1 "));const i=!(this.dedupe||this.mapper||this.filter||this.matcher||this.stemmer||this.replacer);let o=[],l=Te(),c,f,p=this.split||this.split===""?r.split(this.split):[r];for(let m=0,v,x;m<p.length;m++)if((v=x=p[m])&&!(v.length<this.minlength||v.length>this.maxlength)){if(s){if(l[v])continue;l[v]=1}else{if(c===v)continue;c=v}if(i)o.push(v);else if(!this.filter||(typeof this.filter=="function"?this.filter(v):!this.filter.has(v))){if(this.cache&&v.length<=this.I)if(this.F){var d=this.D.get(v);if(d||d===""){d&&o.push(d);continue}}else this.F=setTimeout(Kt,50,this);if(this.stemmer){this.K||(this.K=new RegExp("(?!^)("+this.A+")$"));let w;for(;w!==v&&v.length>2;)w=v,v=v.replace(this.K,C=>this.stemmer.get(C))}if(v&&(this.mapper||this.dedupe&&v.length>1)){d="";for(let w=0,C="",N,E;w<v.length;w++)N=v.charAt(w),N===C&&this.dedupe||((E=this.mapper&&this.mapper.get(N))||E===""?E===C&&this.dedupe||!(C=E)||(d+=E):d+=C=N);v=d}if(this.matcher&&v.length>1&&(this.J||(this.J=new RegExp("("+this.h+")","g")),v=v.replace(this.J,w=>this.matcher.get(w))),v&&this.replacer)for(d=0;v&&d<this.replacer.length;d+=2)v=v.replace(this.replacer[d],this.replacer[d+1]);if(this.cache&&x.length<=this.I&&(this.D.set(x,v),this.D.size>this.L&&(this.D.clear(),this.I=this.I/1.1|0)),v){if(v!==x)if(s){if(l[v])continue;l[v]=1}else{if(f===v)continue;f=v}o.push(v)}}}return this.finalize&&(o=this.finalize(o)||o),this.cache&&r.length<=this.H&&(this.B.set(r,o),this.B.size>this.L&&(this.B.clear(),this.H=this.H/1.1|0)),o};function Kt(r){r.F=null,r.B.clear(),r.D.clear()}function fi(r,s,i){i||(s||typeof r!="object"?typeof s=="object"&&(i=s,s=0):i=r),i&&(r=i.query||r,s=i.limit||s);let o=""+(s||0);i&&(o+=(i.offset||0)+!!i.context+!!i.suggest+(i.resolve!==!1)+(i.resolution||this.resolution)+(i.boost||0)),r=(""+r).toLowerCase(),this.cache||(this.cache=new Wt);let l=this.cache.get(r+o);if(!l){const c=i&&i.cache;c&&(i.cache=!1),l=this.search(r,s,i),c&&(i.cache=c),this.cache.set(r+o,l)}return l}function Wt(r){this.limit=r&&r!==!0?r:1e3,this.cache=new Map,this.h=""}Wt.prototype.set=function(r,s){this.cache.set(this.h=r,s),this.cache.size>this.limit&&this.cache.delete(this.cache.keys().next().value)},Wt.prototype.get=function(r){const s=this.cache.get(r);return s&&this.h!==r&&(this.cache.delete(r),this.cache.set(this.h=r,s)),s},Wt.prototype.remove=function(r){for(const s of this.cache){const i=s[0];s[1].includes(r)&&this.cache.delete(i)}},Wt.prototype.clear=function(){this.cache.clear(),this.h=""};const jl={normalize:!1,numeric:!1,dedupe:!1},Ur={},hi=new Map([["b","p"],["v","f"],["w","f"],["z","s"],["x","s"],["d","t"],["n","m"],["c","k"],["g","k"],["j","k"],["q","k"],["i","e"],["y","e"],["u","o"]]),Ll=new Map([["ae","a"],["oe","o"],["sh","s"],["kh","k"],["th","t"],["ph","f"],["pf","f"]]),Ol=[/([^aeo])h(.)/g,"$1$2",/([aeo])h([^aeo]|$)/g,"$1$2",/(.)\1+/g,"$1"],Rl={a:"",e:"",i:"",o:"",u:"",y:"",b:1,f:1,p:1,v:1,c:2,g:2,j:2,k:2,q:2,s:2,x:2,z:2,ß:2,d:3,t:3,l:4,m:5,n:5,r:6};var di={Exact:jl,Default:Ur,Normalize:Ur,LatinBalance:{mapper:hi},LatinAdvanced:{mapper:hi,matcher:Ll,replacer:Ol},LatinExtra:{mapper:hi,replacer:Ol.concat([/(?!^)[aeo]/g,""]),matcher:Ll},LatinSoundex:{dedupe:!1,include:{letter:!0},finalize:function(r){for(let i=0;i<r.length;i++){var s=r[i];let o=s.charAt(0),l=Rl[o];for(let c=1,f;c<s.length&&(f=s.charAt(c),f==="h"||f==="w"||!(f=Rl[f])||f===l||(o+=f,l=f,o.length!==4));c++);r[i]=o}}},CJK:{split:""},LatinExact:jl,LatinDefault:Ur,LatinSimple:Ur};function Il(r,s,i,o){let l=[];for(let c=0,f;c<r.index.length;c++)if(f=r.index[c],s>=f.length)s-=f.length;else{s=f[o?"splice":"slice"](s,i);const p=s.length;if(p&&(l=l.length?l.concat(s):s,i-=p,o&&(r.length-=p),!i))break;s=0}return l}function fn(r){if(!this||this.constructor!==fn)return new fn(r);this.index=r?[r]:[],this.length=r?r.length:0;const s=this;return new Proxy([],{get(i,o){if(o==="length")return s.length;if(o==="push")return function(l){s.index[s.index.length-1].push(l),s.length++};if(o==="pop")return function(){if(s.length)return s.length--,s.index[s.index.length-1].pop()};if(o==="indexOf")return function(l){let c=0;for(let f=0,p,d;f<s.index.length;f++){if(p=s.index[f],d=p.indexOf(l),d>=0)return c+d;c+=p.length}return-1};if(o==="includes")return function(l){for(let c=0;c<s.index.length;c++)if(s.index[c].includes(l))return!0;return!1};if(o==="slice")return function(l,c){return Il(s,l||0,c||s.length,!1)};if(o==="splice")return function(l,c){return Il(s,l||0,c||s.length,!0)};if(o==="constructor")return Array;if(typeof o!="symbol")return(i=s.index[o/2**31|0])&&i[o]},set(i,o,l){return i=o/2**31|0,(s.index[i]||(s.index[i]=[]))[o]=l,s.length++,!0}})}fn.prototype.clear=function(){this.index.length=0},fn.prototype.push=function(){};function tt(r=8){if(!this||this.constructor!==tt)return new tt(r);this.index=Te(),this.h=[],this.size=0,r>32?(this.B=Ml,this.A=BigInt(r)):(this.B=zl,this.A=r)}tt.prototype.get=function(r){const s=this.index[this.B(r)];return s&&s.get(r)},tt.prototype.set=function(r,s){var i=this.B(r);let o=this.index[i];o?(i=o.size,o.set(r,s),(i-=o.size)&&this.size++):(this.index[i]=o=new Map([[r,s]]),this.h.push(o),this.size++)};function nt(r=8){if(!this||this.constructor!==nt)return new nt(r);this.index=Te(),this.h=[],this.size=0,r>32?(this.B=Ml,this.A=BigInt(r)):(this.B=zl,this.A=r)}nt.prototype.add=function(r){var s=this.B(r);let i=this.index[s];i?(s=i.size,i.add(r),(s-=i.size)&&this.size++):(this.index[s]=i=new Set([r]),this.h.push(i),this.size++)},J=tt.prototype,J.has=nt.prototype.has=function(r){const s=this.index[this.B(r)];return s&&s.has(r)},J.delete=nt.prototype.delete=function(r){const s=this.index[this.B(r)];s&&s.delete(r)&&this.size--},J.clear=nt.prototype.clear=function(){this.index=Te(),this.h=[],this.size=0},J.values=nt.prototype.values=function*(){for(let r=0;r<this.h.length;r++)for(let s of this.h[r].values())yield s},J.keys=nt.prototype.keys=function*(){for(let r=0;r<this.h.length;r++)for(let s of this.h[r].keys())yield s},J.entries=nt.prototype.entries=function*(){for(let r=0;r<this.h.length;r++)for(let s of this.h[r].entries())yield s};function zl(r){let s=2**this.A-1;if(typeof r=="number")return r&s;let i=0,o=this.A+1;for(let l=0;l<r.length;l++)i=(i*o^r.charCodeAt(l))&s;return this.A===32?i+2**31:i}function Ml(r){let s=BigInt(2)**this.A-BigInt(1);var i=typeof r;if(i==="bigint")return r&s;if(i==="number")return BigInt(r)&s;i=BigInt(0);let o=this.A+BigInt(1);for(let l=0;l<r.length;l++)i=(i*o^BigInt(r.charCodeAt(l)))&s;return i}let hn,Qn;async function Rf(r){r=r.data;var s=r.task;const i=r.id;let o=r.args;if(s==="init")Qn=r.options||{},(s=r.factory)?(Function("return "+s)()(self),hn=new self.FlexSearch.Index(Qn),delete self.FlexSearch):hn=new ot(Qn),postMessage({id:i});else{let l;s==="export"&&(o[1]?(o[0]=Qn.export,o[2]=0,o[3]=1):o=null),s==="import"?o[0]&&(r=await Qn.import.call(hn,o[0]),hn.import(o[0],r)):((l=o&&hn[s].apply(hn,o))&&l.then&&(l=await l),l&&l.await&&(l=await l.await),s==="search"&&l.result&&(l=l.result)),postMessage(s==="search"?{id:i,msg:l}:{id:i})}}function pi(r){dn.call(r,"add"),dn.call(r,"append"),dn.call(r,"search"),dn.call(r,"update"),dn.call(r,"remove"),dn.call(r,"searchCache")}let gi,Dl,br;function If(){gi=br=0}function dn(r){this[r+"Async"]=function(){const s=arguments;var i=s[s.length-1];let o;if(typeof i=="function"&&(o=i,delete s[s.length-1]),gi?br||(br=Date.now()-Dl>=this.priority*this.priority*3):(gi=setTimeout(If,0),Dl=Date.now()),br){const c=this;return new Promise(f=>{setTimeout(function(){f(c[r+"Async"].apply(c,s))},0)})}const l=this[r].apply(this,s);return i=l.then?l:new Promise(c=>c(l)),o&&i.then(o),i}}let kt=0;function pn(r={},s){function i(p){function d(m){m=m.data||m;const v=m.id,x=v&&c.h[v];x&&(x(m.msg),delete c.h[v])}if(this.worker=p,this.h=Te(),this.worker)return l?this.worker.on("message",d):this.worker.onmessage=d,r.config?new Promise(function(m){kt>1e9&&(kt=0),c.h[++kt]=function(){m(c)},c.worker.postMessage({id:kt,task:"init",factory:o,options:r})}):(this.priority=r.priority||4,this.encoder=s||null,this.worker.postMessage({task:"init",factory:o,options:r}),this)}if(!this||this.constructor!==pn)return new pn(r);let o=typeof self<"u"?self._factory:typeof window<"u"?window._factory:null;o&&(o=o.toString());const l=typeof window>"u",c=this,f=zf(o,l,r.worker);return f.then?f.then(function(p){return i.call(c,p)}):i.call(this,f)}Ct("add"),Ct("append"),Ct("search"),Ct("update"),Ct("remove"),Ct("clear"),Ct("export"),Ct("import"),pn.prototype.searchCache=fi,pi(pn.prototype);function Ct(r){pn.prototype[r]=function(){const s=this,i=[].slice.call(arguments);var o=i[i.length-1];let l;return typeof o=="function"&&(l=o,i.pop()),o=new Promise(function(c){r==="export"&&typeof i[0]=="function"&&(i[0]=null),kt>1e9&&(kt=0),s.h[++kt]=c,s.worker.postMessage({task:r,id:kt,args:i})}),l?(o.then(l),this):o}}function zf(r,s,i){return s?typeof module<"u"?new(require("worker_threads")).Worker(__dirname+"/worker/node.js"):Promise.resolve().then(()=>Vd).then(function(o){return new o.Worker("undefined/node/node.mjs")}):r?new window.Worker(URL.createObjectURL(new Blob(["onmessage="+Rf.toString()],{type:"text/javascript"}))):new window.Worker(typeof i=="string"?i:(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:ln&&ln.tagName.toUpperCase()==="SCRIPT"&&ln.src||new URL("sodo-search.min.js",document.baseURI).href).replace("/worker.js","/worker/worker.js").replace("flexsearch.bundle.module.min.js","module/worker/worker.js").replace("flexsearch.bundle.module.min.mjs","module/worker/worker.js"),{type:"module"})}Qt.prototype.add=function(r,s,i){if(Kn(r)&&(s=r,r=Wn(s,this.key)),s&&(r||r===0)){if(!i&&this.reg.has(r))return this.update(r,s);for(let p=0,d;p<this.field.length;p++){d=this.B[p];var o=this.index.get(this.field[p]);if(typeof d=="function"){var l=d(s);l&&o.add(r,l,i,!0)}else l=d.G,(!l||l(s))&&(d.constructor===String?d=[""+d]:et(d)&&(d=[d]),yi(s,d,this.D,0,o,r,d[0],i))}if(this.tag)for(o=0;o<this.A.length;o++){var c=this.A[o];l=this.tag.get(this.F[o]);let p=Te();if(typeof c=="function"){if(c=c(s),!c)continue}else{var f=c.G;if(f&&!f(s))continue;c.constructor===String&&(c=""+c),c=Wn(s,c)}if(l&&c){et(c)&&(c=[c]);for(let d=0,m,v;d<c.length;d++)if(m=c[d],!p[m]&&(p[m]=1,(f=l.get(m))?v=f:l.set(m,v=[]),!i||!v.includes(r))){if(v.length===2**31-1){if(f=new fn(v),this.fastupdate)for(let x of this.reg.values())x.includes(v)&&(x[x.indexOf(v)]=f);l.set(m,v=f)}v.push(r),this.fastupdate&&((f=this.reg.get(r))?f.push(v):this.reg.set(r,[v]))}}}if(this.store&&(!i||!this.store.has(r))){let p;if(this.h){p=Te();for(let d=0,m;d<this.h.length;d++){if(m=this.h[d],(i=m.G)&&!i(s))continue;let v;if(typeof m=="function"){if(v=m(s),!v)continue;m=[m.O]}else if(et(m)||m.constructor===String){p[m]=s[m];continue}mi(s,p,m,0,m[0],v)}}this.store.set(r,p||s)}this.worker&&(this.fastupdate||this.reg.add(r))}return this};function mi(r,s,i,o,l,c){if(r=r[l],o===i.length-1)s[l]=c||r;else if(r)if(r.constructor===Array)for(s=s[l]=Array(r.length),l=0;l<r.length;l++)mi(r,s,i,o,l);else s=s[l]||(s[l]=Te()),l=i[++o],mi(r,s,i,o,l)}function yi(r,s,i,o,l,c,f,p){if(r=r[f])if(o===s.length-1){if(r.constructor===Array){if(i[o]){for(s=0;s<r.length;s++)l.add(c,r[s],!0,!0);return}r=r.join(" ")}l.add(c,r,p,!0)}else if(r.constructor===Array)for(f=0;f<r.length;f++)yi(r,s,i,o,l,c,f,p);else f=s[++o],yi(r,s,i,o,l,c,f,p)}function vi(r,s,i,o){if(!r.length)return r;if(r.length===1)return r=r[0],r=i||r.length>s?r.slice(i,i+s):r,o?gn.call(this,r):r;let l=[];for(let c=0,f,p;c<r.length;c++)if((f=r[c])&&(p=f.length)){if(i){if(i>=p){i-=p;continue}f=f.slice(i,i+s),p=f.length,i=0}if(p>s&&(f=f.slice(0,s),p=s),!l.length&&p>=s)return o?gn.call(this,f):f;if(l.push(f),s-=p,!s)break}return l=l.length>1?[].concat.apply([],l):l[0],o?gn.call(this,l):l}function Br(r,s,i,o){var l=o[0];if(l[0]&&l[0].query)return r[s].apply(r,l);if(!(s!=="and"&&s!=="not"||r.result.length||r.await||l.suggest))return o.length>1&&(l=o[o.length-1]),(o=l.resolve)?r.await||r.result:r;let c=[],f=0,p=0,d,m,v,x,w;for(s=0;s<o.length;s++)if(l=o[s]){var C=void 0;if(l.constructor===Ce)C=l.await||l.result;else if(l.then||l.constructor===Array)C=l;else{f=l.limit||0,p=l.offset||0,v=l.suggest,m=l.resolve,d=((x=l.highlight||r.highlight)||l.enrich)&&m,C=l.queue;let N=l.async||C,E=l.index,_=l.query;if(E?r.index||(r.index=E):E=r.index,_||l.tag){const D=l.field||l.pluck;if(D&&(!_||r.query&&!x||(r.query=_,r.field=D,r.highlight=x),E=E.index.get(D)),C&&(w||r.await)){w=1;let z;const G=r.C.length,K=new Promise(function(Z){z=Z});(function(Z,H){K.h=function(){H.index=null,H.resolve=!1;let B=N?Z.searchAsync(H):Z.search(H);return B.then?B.then(function(V){return r.C[G]=V=V.result||V,z(V),V}):(B=B.result||B,z(B),B)}})(E,Object.assign({},l)),r.C.push(K),c[s]=K;continue}else l.resolve=!1,l.index=null,C=N?E.searchAsync(l):E.search(l),l.resolve=m,l.index=E}else if(l.and)C=Vr(l,"and",E);else if(l.or)C=Vr(l,"or",E);else if(l.not)C=Vr(l,"not",E);else if(l.xor)C=Vr(l,"xor",E);else continue}C.await?(w=1,C=C.await):C.then?(w=1,C=C.then(function(N){return N.result||N})):C=C.result||C,c[s]=C}if(w&&!r.await&&(r.await=new Promise(function(N){r.return=N})),w){const N=Promise.all(c).then(function(E){for(let _=0;_<r.C.length;_++)if(r.C[_]===N){r.C[_]=function(){return i.call(r,E,f,p,d,m,v,x)};break}wi(r)});r.C.push(N)}else if(r.await)r.C.push(function(){return i.call(r,c,f,p,d,m,v,x)});else return i.call(r,c,f,p,d,m,v,x);return m?r.await||r.result:r}function Vr(r,s,i){r=r[s];const o=r[0]||r;return o.index||(o.index=i),i=new Ce(o),r.length>1&&(i=i[s].apply(i,r.slice(1))),i}Ce.prototype.or=function(){return Br(this,"or",Mf,arguments)};function Mf(r,s,i,o,l,c,f){return r.length&&(this.result.length&&r.push(this.result),r.length<2?this.result=r[0]:(this.result=Fl(r,s,i,!1,this.h),i=0)),l&&(this.await=null),l?this.resolve(s,i,o,f):this}Ce.prototype.and=function(){return Br(this,"and",Df,arguments)};function Df(r,s,i,o,l,c,f){if(!c&&!this.result.length)return l?this.result:this;let p;if(r.length)if(this.result.length&&r.unshift(this.result),r.length<2)this.result=r[0];else{let d=0;for(let m=0,v,x;m<r.length;m++)if((v=r[m])&&(x=v.length))d<x&&(d=x);else if(!c){d=0;break}d?(this.result=Kr(r,d,s,i,c,this.h,l),p=!0):this.result=[]}else c||(this.result=r);return l&&(this.await=null),l?this.resolve(s,i,o,f,p):this}Ce.prototype.xor=function(){return Br(this,"xor",Ff,arguments)};function Ff(r,s,i,o,l,c,f){if(r.length)if(this.result.length&&r.unshift(this.result),r.length<2)this.result=r[0];else{e:{c=i;var p=this.h;const d=[],m=Te();let v=0;for(let x=0,w;x<r.length;x++)if(w=r[x]){v<w.length&&(v=w.length);for(let C=0,N;C<w.length;C++)if(N=w[C])for(let E=0,_;E<N.length;E++)_=N[E],m[_]=m[_]?2:1}for(let x=0,w,C=0;x<v;x++)for(let N=0,E;N<r.length;N++)if((E=r[N])&&(w=E[x])){for(let _=0,D;_<w.length;_++)if(D=w[_],m[D]===1)if(c)c--;else if(l){if(d.push(D),d.length===s){r=d;break e}}else{const z=x+(N?p:0);if(d[z]||(d[z]=[]),d[z].push(D),++C===s){r=d;break e}}}r=d}this.result=r,p=!0}else c||(this.result=r);return l&&(this.await=null),l?this.resolve(s,i,o,f,p):this}Ce.prototype.not=function(){return Br(this,"not",Uf,arguments)};function Uf(r,s,i,o,l,c,f){if(!c&&!this.result.length)return l?this.result:this;if(r.length&&this.result.length){e:{c=i;var p=[];r=new Set(r.flat().flat());for(let d=0,m,v=0;d<this.result.length;d++)if(m=this.result[d]){for(let x=0,w;x<m.length;x++)if(w=m[x],!r.has(w)){if(c)c--;else if(l){if(p.push(w),p.length===s){r=p;break e}}else if(p[d]||(p[d]=[]),p[d].push(w),++v===s){r=p;break e}}}r=p}this.result=r,p=!0}return l&&(this.await=null),l?this.resolve(s,i,o,f,p):this}function Hr(r,s,i,o,l){let c,f,p;typeof l=="string"?(c=l,l=""):c=l.template,f=c.indexOf("$1"),p=c.substring(f+2),f=c.substring(0,f);let d=l&&l.boundary,m=!l||l.clip!==!1,v=l&&l.merge&&p&&f&&new RegExp(p+" "+f,"g");l=l&&l.ellipsis;var x=0;if(typeof l=="object"){var w=l.template;x=w.length-2,l=l.pattern}typeof l!="string"&&(l=l===!1?"":"..."),x&&(l=w.replace("$1",l)),w=l.length-x;let C,N;typeof d=="object"&&(C=d.before,C===0&&(C=-1),N=d.after,N===0&&(N=-1),d=d.total||9e5),x=new Map;for(let T=0,O,te,he;T<s.length;T++){let L;if(o)L=s,he=o;else{var E=s[T];if(he=E.field,!he)continue;L=E.result}te=i.get(he),O=te.encoder,E=x.get(O),typeof E!="string"&&(E=O.encode(r),x.set(O,E));for(let b=0;b<L.length;b++){var _=L[b].doc;if(!_||(_=Wn(_,he),!_))continue;var D=_.trim().split(/\s+/);if(!D.length)continue;_="";var z=[];let U=[];for(var G=-1,K=-1,Z=0,H=0;H<D.length;H++){var B=D[H],V=O.encode(B);V=V.length>1?V.join(" "):V[0];let M;if(V&&B){for(var q=B.length,fe=(O.split?B.replace(O.split,""):B).length-V.length,se="",ge=0,pe=0;pe<E.length;pe++){var we=E[pe];if(we){var ne=we.length;ne+=fe<0?0:fe,ge&&ne<=ge||(we=V.indexOf(we),we>-1&&(se=(we?B.substring(0,we):"")+f+B.substring(we,we+ne)+p+(we+ne<q?B.substring(we+ne):""),ge=ne,M=!0))}}se&&(d&&(G<0&&(G=_.length+(_?1:0)),K=_.length+(_?1:0)+se.length,Z+=q,U.push(z.length),z.push({match:se})),_+=(_?" ":"")+se)}if(!M)B=D[H],_+=(_?" ":"")+B,d&&z.push({text:B});else if(d&&Z>=d)break}if(Z=U.length*(c.length-2),C||N||d&&_.length-Z>d)if(Z=d+Z-w*2,H=K-G,C>0&&(H+=C),N>0&&(H+=N),H<=Z)D=C?G-(C>0?C:0):G-((Z-H)/2|0),z=N?K+(N>0?N:0):D+Z,m||(D>0&&_.charAt(D)!==" "&&_.charAt(D-1)!==" "&&(D=_.indexOf(" ",D),D<0&&(D=0)),z<_.length&&_.charAt(z-1)!==" "&&_.charAt(z)!==" "&&(z=_.lastIndexOf(" ",z),z<K?z=K:++z)),_=(D?l:"")+_.substring(D,z)+(z<_.length?l:"");else{for(K=[],G={},Z={},H={},B={},V={},se=fe=q=0,pe=ge=1;;){var xe=void 0;for(let M=0,Q;M<U.length;M++){if(Q=U[M],se)if(fe!==se){if(H[M+1])continue;if(Q+=se,G[Q]){q-=w,Z[M+1]=1,H[M+1]=1;continue}if(Q>=z.length-1){if(Q>=z.length){H[M+1]=1,Q>=D.length&&(Z[M+1]=1);continue}q-=w}if(_=z[Q].text,ne=N&&V[M])if(ne>0){if(_.length>ne)if(H[M+1]=1,m)_=_.substring(0,ne);else continue;(ne-=_.length)||(ne=-1),V[M]=ne}else{H[M+1]=1;continue}if(q+_.length+1<=d)_=" "+_,K[M]+=_;else if(m)xe=d-q-1,xe>0&&(_=" "+_.substring(0,xe),K[M]+=_),H[M+1]=1;else{H[M+1]=1;continue}}else{if(H[M])continue;if(Q-=fe,G[Q]){q-=w,H[M]=1,Z[M]=1;continue}if(Q<=0){if(Q<0){H[M]=1,Z[M]=1;continue}q-=w}if(_=z[Q].text,ne=C&&B[M])if(ne>0){if(_.length>ne)if(H[M]=1,m)_=_.substring(_.length-ne);else continue;(ne-=_.length)||(ne=-1),B[M]=ne}else{H[M]=1;continue}if(q+_.length+1<=d)_+=" ",K[M]=_+K[M];else if(m)xe=_.length+1-(d-q),xe>=0&&xe<_.length&&(_=_.substring(xe)+" ",K[M]=_+K[M]),H[M]=1;else{H[M]=1;continue}}else{_=z[Q].match,C&&(B[M]=C),N&&(V[M]=N),M&&q++;let Se;if(Q?!M&&w&&(q+=w):(Z[M]=1,H[M]=1),Q>=D.length-1||Q<z.length-1&&z[Q+1].match?Se=1:w&&(q+=w),q-=c.length-2,!M||q+_.length<=d)K[M]=_;else{xe=ge=pe=Z[M]=0;break}Se&&(Z[M+1]=1,H[M+1]=1)}q+=_.length,xe=G[Q]=1}if(xe)fe===se?se++:fe++;else{if(fe===se?ge=0:pe=0,!ge&&!pe)break;ge?(fe++,se=fe):se++}}_="";for(let M=0,Q;M<K.length;M++)Q=(Z[M]?M?" ":"":(M&&!l?" ":"")+l)+K[M],_+=Q;l&&!Z[K.length]&&(_+=l)}v&&(_=_.replace(v," ")),L[b].highlight=_}if(o)break}return s}function Ce(r,s){if(!this||this.constructor!==Ce)return new Ce(r,s);let i=0,o,l,c,f,p,d;if(r&&r.index){const m=r;if(s=m.index,i=m.boost||0,l=m.query){c=m.field||m.pluck,f=m.highlight;const v=m.resolve;r=m.async||m.queue,m.resolve=!1,m.index=null,r=r?s.searchAsync(m):s.search(m),m.resolve=v,m.index=s,r=r.result||r}else r=[]}if(r&&r.then){const m=this;r=r.then(function(v){m.C[0]=m.result=v.result||v,wi(m)}),o=[r],r=[],p=new Promise(function(v){d=v})}this.index=s||null,this.result=r||[],this.h=i,this.C=o||[],this.await=p||null,this.return=d||null,this.highlight=f||null,this.query=l||"",this.field=c||""}J=Ce.prototype,J.limit=function(r){if(this.await){const s=this;this.C.push(function(){return s.limit(r).result})}else if(this.result.length){const s=[];for(let i=0,o;i<this.result.length;i++)if(o=this.result[i])if(o.length<=r){if(s[i]=o,r-=o.length,!r)break}else{s[i]=o.slice(0,r);break}this.result=s}return this},J.offset=function(r){if(this.await){const s=this;this.C.push(function(){return s.offset(r).result})}else if(this.result.length){const s=[];for(let i=0,o;i<this.result.length;i++)(o=this.result[i])&&(o.length<=r?r-=o.length:(s[i]=o.slice(r),r=0));this.result=s}return this},J.boost=function(r){if(this.await){const s=this;this.C.push(function(){return s.boost(r).result})}else this.h+=r;return this};function wi(r,s){let i=r.result;var o=r.await;r.await=null;for(let l=0,c;l<r.C.length;l++)if(c=r.C[l]){if(typeof c=="function")i=c(),r.C[l]=i=i.result||i,l--;else if(c.h)i=c.h(),r.C[l]=i=i.result||i,l--;else if(c.then)return r.await=o}return o=r.return,r.C=[],r.return=null,s||o(i),i}J.resolve=function(r,s,i,o,l){let c=this.await?wi(this,!0):this.result;if(c.then){const f=this;return c.then(function(){return f.resolve(r,s,i,o,l)})}return c.length&&(typeof r=="object"?(o=r.highlight||this.highlight,i=!!o||r.enrich,s=r.offset,r=r.limit):(o=o||this.highlight,i=!!o||i),c=l?i?gn.call(this.index,c):c:vi.call(this.index,c,r||100,s,i)),this.finalize(c,o)},J.finalize=function(r,s){if(r.then){const o=this;return r.then(function(l){return o.finalize(l,s)})}s&&r.length&&this.query&&(r=Hr(this.query,r,this.index.index,this.field,s));const i=this.return;return this.highlight=this.index=this.result=this.C=this.await=this.return=null,this.query=this.field="",i&&i(r),r};function Kr(r,s,i,o,l,c,f){const p=r.length;let d=[],m,v;m=Te();for(let x=0,w,C,N,E;x<s;x++)for(let _=0;_<p;_++)if(N=r[_],x<N.length&&(w=N[x]))for(let D=0;D<w.length;D++){if(C=w[D],(v=m[C])?m[C]++:(v=0,m[C]=1),E=d[v]||(d[v]=[]),!f){let z=x+(_||!l?0:c||0);E=E[z]||(E[z]=[])}if(E.push(C),f&&i&&v===p-1&&E.length-o===i)return o?E.slice(o):E}if(r=d.length)if(l)d=d.length>1?Fl(d,i,o,f,c):(d=d[0])&&i&&d.length>i||o?d.slice(o,i+o):d;else{if(r<p)return[];if(d=d[r-1],i||o)if(f)(d.length>i||o)&&(d=d.slice(o,i+o));else{l=[];for(let x=0,w;x<d.length;x++)if(w=d[x]){if(o&&w.length>o)o-=w.length;else if((i&&w.length>i||o)&&(w=w.slice(o,i+o),i-=w.length,o&&(o-=w.length)),l.push(w),!i)break}d=l}}return d}function Fl(r,s,i,o,l){const c=[],f=Te();let p;var d=r.length;let m;if(o){for(l=d-1;l>=0;l--)if(m=(o=r[l])&&o.length){for(d=0;d<m;d++)if(p=o[d],!f[p]){if(f[p]=1,i)i--;else if(c.push(p),c.length===s)return c}}}else for(let v=d-1,x,w=0;v>=0;v--){x=r[v];for(let C=0;C<x.length;C++)if(m=(o=x[C])&&o.length){for(let N=0;N<m;N++)if(p=o[N],!f[p])if(f[p]=1,i)i--;else{let E=(C+(v<d-1&&l||0))/(v+1)|0;if((c[E]||(c[E]=[])).push(p),++w===s)return c}}}return c}function bf(r,s,i,o,l){const c=Te(),f=[];for(let p=0,d;p<s.length;p++){d=s[p];for(let m=0;m<d.length;m++)c[d[m]]=1}if(l){for(let p=0,d;p<r.length;p++)if(d=r[p],c[d]){if(o)o--;else if(f.push(d),c[d]=0,i&&--i===0)break}}else for(let p=0,d,m;p<r.result.length;p++)for(d=r.result[p],s=0;s<d.length;s++)m=d[s],c[m]&&((f[p]||(f[p]=[])).push(m),c[m]=0);return f}Qt.prototype.search=function(r,s,i,o){i||(!s&&Kn(r)?(i=r,r=""):Kn(s)&&(i=s,s=0));let l=[];var c=[];let f,p,d,m,v,x,w=0,C=!0,N;if(i){i.constructor===Array&&(i={index:i}),r=i.query||r,f=i.pluck,p=i.merge,m=i.boost,x=f||i.field||(x=i.index)&&(x.index?null:x);var E=this.tag&&i.tag;d=i.suggest,C=i.resolve!==!1,v=i.cache,N=C&&this.store&&i.highlight;var _=!!N||C&&this.store&&i.enrich;s=i.limit||s;var D=i.offset||0;if(s||(s=C?100:0),E&&(!this.db||!o)){E.constructor!==Array&&(E=[E]);var z=[];for(let B=0,V;B<E.length;B++)if(V=E[B],V.field&&V.tag){var G=V.tag;if(G.constructor===Array)for(var K=0;K<G.length;K++)z.push(V.field,G[K]);else z.push(V.field,G)}else{G=Object.keys(V);for(let q=0,fe,se;q<G.length;q++)if(fe=G[q],se=V[fe],se.constructor===Array)for(K=0;K<se.length;K++)z.push(fe,se[K]);else z.push(fe,se)}if(E=z,!r){if(c=[],z.length)for(E=0;E<z.length;E+=2){if(this.db){if(o=this.index.get(z[E]),!o)continue;c.push(o=o.db.tag(z[E+1],s,D,_))}else o=Bf.call(this,z[E],z[E+1],s,D,_);l.push(C?{field:z[E],tag:z[E+1],result:o}:[o])}if(c.length){const B=this;return Promise.all(c).then(function(V){for(let q=0;q<V.length;q++)C?l[q].result=V[q]:l[q]=V[q];return C?l:new Ce(l.length>1?Kr(l,1,0,0,d,m):l[0],B)})}return C?l:new Ce(l.length>1?Kr(l,1,0,0,d,m):l[0],this)}}C||f||!(x=x||this.field)||(et(x)?f=x:(x.constructor===Array&&x.length===1&&(x=x[0]),f=x.field||x.index)),x&&x.constructor!==Array&&(x=[x])}x||(x=this.field);let Z;z=(this.worker||this.db)&&!o&&[];for(let B=0,V,q,fe;B<x.length;B++){if(q=x[B],this.db&&this.tag&&!this.B[B])continue;let se;if(et(q)||(se=q,q=se.field,r=se.query||r,s=un(se.limit,s),D=un(se.offset,D),d=un(se.suggest,d),N=C&&this.store&&un(se.highlight,N),_=!!N||C&&this.store&&un(se.enrich,_),v=un(se.cache,v)),o)V=o[B];else{G=se||i||{},K=G.enrich;var H=this.index.get(q);if(E&&(this.db&&(G.tag=E,G.field=x,Z=H.db.support_tag_search),!Z&&K&&(G.enrich=!1),Z||(G.limit=0,G.offset=0)),V=v?H.searchCache(r,E&&!Z?0:s,G):H.search(r,E&&!Z?0:s,G),E&&!Z&&(G.limit=s,G.offset=D),K&&(G.enrich=K),z){z[B]=V;continue}}if(fe=(V=V.result||V)&&V.length,E&&fe){if(G=[],K=0,this.db&&o){if(!Z)for(H=x.length;H<o.length;H++){let ge=o[H];if(ge&&ge.length)K++,G.push(ge);else if(!d)return C?l:new Ce(l,this)}}else for(let ge=0,pe,we;ge<E.length;ge+=2){if(pe=this.tag.get(E[ge]),!pe){if(d)continue;return C?l:new Ce(l,this)}if(we=(pe=pe&&pe.get(E[ge+1]))&&pe.length)K++,G.push(pe);else if(!d)return C?l:new Ce(l,this)}if(K){if(V=bf(V,G,s,D,C),fe=V.length,!fe&&!d)return C?V:new Ce(V,this);K--}}if(fe)c[w]=q,l.push(V),w++;else if(x.length===1)return C?l:new Ce(l,this)}if(z){if(this.db&&E&&E.length&&!Z)for(_=0;_<E.length;_+=2){if(c=this.index.get(E[_]),!c){if(d)continue;return C?l:new Ce(l,this)}z.push(c.db.tag(E[_+1],s,D,!1))}const B=this;return Promise.all(z).then(function(V){return i&&(i.resolve=C),V.length&&(V=B.search(r,s,i,V)),V})}if(!w)return C?l:new Ce(l,this);if(f&&(!_||!this.store))return l=l[0],C?l:new Ce(l,this);for(z=[],D=0;D<c.length;D++){if(E=l[D],_&&E.length&&typeof E[0].doc>"u"&&(this.db?z.push(E=this.index.get(this.field[0]).db.enrich(E)):E=gn.call(this,E)),f)return C?N?Hr(r,E,this.index,f,N):E:new Ce(E,this);l[D]={field:c[D],result:E}}if(_&&this.db&&z.length){const B=this;return Promise.all(z).then(function(V){for(let q=0;q<V.length;q++)l[q].result=V[q];return N&&(l=Hr(r,l,B.index,f,N)),p?Ul(l):l})}return N&&(l=Hr(r,l,this.index,f,N)),p?Ul(l):l};function Ul(r){const s=[],i=Te(),o=Te();for(let l=0,c,f,p,d,m,v,x;l<r.length;l++){c=r[l],f=c.field,p=c.result;for(let w=0;w<p.length;w++)m=p[w],typeof m!="object"?m={id:d=m}:d=m.id,(v=i[d])?v.push(f):(m.field=i[d]=[f],s.push(m)),(x=m.highlight)&&(v=o[d],v||(o[d]=v={},m.highlight=v),v[f]=x)}return s}function Bf(r,s,i,o,l){return r=this.tag.get(r),r?(r=r.get(s),r?(s=r.length-o,s>0&&((i&&s>i||o)&&(r=r.slice(o,o+i)),l&&(r=gn.call(this,r))),r):[]):[]}function gn(r){if(!this||!this.store)return r;if(this.db)return this.index.get(this.field[0]).db.enrich(r);const s=Array(r.length);for(let i=0,o;i<r.length;i++)o=r[i],s[i]={id:o,doc:this.store.get(o)};return s}function Qt(r){if(!this||this.constructor!==Qt)return new Qt(r);const s=r.document||r.doc||r;let i,o;if(this.B=[],this.field=[],this.D=[],this.key=(i=s.key||s.id)&&Wr(i,this.D)||"id",(o=r.keystore||0)&&(this.keystore=o),this.fastupdate=!!r.fastupdate,this.reg=!this.fastupdate||r.worker||r.db?o?new nt(o):new Set:o?new tt(o):new Map,this.h=(i=s.store||null)&&i&&i!==!0&&[],this.store=i?o?new tt(o):new Map:null,this.cache=(i=r.cache||null)&&new Wt(i),r.cache=!1,this.worker=r.worker||!1,this.priority=r.priority||4,this.index=Vf.call(this,r,s),this.tag=null,(i=s.tag)&&(typeof i=="string"&&(i=[i]),i.length)){this.tag=new Map,this.A=[],this.F=[];for(let l=0,c,f;l<i.length;l++){if(c=i[l],f=c.field||c,!f)throw Error("The tag field from the document descriptor is undefined.");c.custom?this.A[l]=c.custom:(this.A[l]=Wr(f,this.D),c.filter&&(typeof this.A[l]=="string"&&(this.A[l]=new String(this.A[l])),this.A[l].G=c.filter)),this.F[l]=f,this.tag.set(f,new Map)}}if(this.worker){this.fastupdate=!1,r=[];for(const l of this.index.values())l.then&&r.push(l);if(r.length){const l=this;return Promise.all(r).then(function(c){let f=0;for(const p of l.index.entries()){const d=p[0];let m=p[1];m.then&&(m=c[f],l.index.set(d,m),f++)}return l})}}else r.db&&(this.fastupdate=!1,this.mount(r.db))}J=Qt.prototype,J.mount=function(r){let s=this.field;if(this.tag)for(let c=0,f;c<this.F.length;c++){f=this.F[c];var i=void 0;this.index.set(f,i=new ot({},this.reg)),s===this.field&&(s=s.slice(0)),s.push(f),i.tag=this.tag.get(f)}i=[];const o={db:r.db,type:r.type,fastupdate:r.fastupdate};for(let c=0,f,p;c<s.length;c++){o.field=p=s[c],f=this.index.get(p);const d=new r.constructor(r.id,o);d.id=r.id,i[c]=d.mount(f),f.document=!0,c?f.bypass=!0:f.store=this.store}const l=this;return this.db=Promise.all(i).then(function(){l.db=!0})},J.commit=async function(){const r=[];for(const s of this.index.values())r.push(s.commit());await Promise.all(r),this.reg.clear()},J.destroy=function(){const r=[];for(const s of this.index.values())r.push(s.destroy());return Promise.all(r)};function Vf(r,s){const i=new Map;let o=s.index||s.field||s;et(o)&&(o=[o]);for(let c=0,f,p;c<o.length;c++){if(f=o[c],et(f)||(p=f,f=f.field),p=Kn(p)?Object.assign({},r,p):r,this.worker){var l=void 0;l=(l=p.encoder)&&l.encode?l:new cn(typeof l=="string"?di[l]:l||{}),l=new pn(p,l),i.set(f,l)}this.worker||i.set(f,new ot(p,this.reg)),p.custom?this.B[c]=p.custom:(this.B[c]=Wr(f,this.D),p.filter&&(typeof this.B[c]=="string"&&(this.B[c]=new String(this.B[c])),this.B[c].G=p.filter)),this.field[c]=f}if(this.h){r=s.store,et(r)&&(r=[r]);for(let c=0,f,p;c<r.length;c++)f=r[c],p=f.field||f,f.custom?(this.h[c]=f.custom,f.custom.O=p):(this.h[c]=Wr(p,this.D),f.filter&&(typeof this.h[c]=="string"&&(this.h[c]=new String(this.h[c])),this.h[c].G=f.filter))}return i}function Wr(r,s){const i=r.split(":");let o=0;for(let l=0;l<i.length;l++)r=i[l],r[r.length-1]==="]"&&(r=r.substring(0,r.length-2))&&(s[o]=!0),r&&(i[o++]=r);return o<i.length&&(i.length=o),o>1?i:i[0]}J.append=function(r,s){return this.add(r,s,!0)},J.update=function(r,s){return this.remove(r).add(r,s)},J.remove=function(r){Kn(r)&&(r=Wn(r,this.key));for(var s of this.index.values())s.remove(r,!0);if(this.reg.has(r)){if(this.tag&&!this.fastupdate)for(let i of this.tag.values())for(let o of i){s=o[0];const l=o[1],c=l.indexOf(r);c>-1&&(l.length>1?l.splice(c,1):i.delete(s))}this.store&&this.store.delete(r),this.reg.delete(r)}return this.cache&&this.cache.remove(r),this},J.clear=function(){const r=[];for(const s of this.index.values()){const i=s.clear();i.then&&r.push(i)}if(this.tag)for(const s of this.tag.values())s.clear();return this.store&&this.store.clear(),this.cache&&this.cache.clear(),r.length?Promise.all(r):this},J.contain=function(r){return this.db?this.index.get(this.field[0]).db.has(r):this.reg.has(r)},J.cleanup=function(){for(const r of this.index.values())r.cleanup();return this},J.get=function(r){return this.db?this.index.get(this.field[0]).db.enrich(r).then(function(s){return s[0]&&s[0].doc||null}):this.store.get(r)||null},J.set=function(r,s){return typeof r=="object"&&(s=r,r=Wn(s,this.key)),this.store.set(r,s),this},J.searchCache=fi,J.export=Hf,J.import=Kf,pi(Qt.prototype);function xi(r,s=0){let i=[],o=[];s&&(s=25e4/s*5e3|0);for(const l of r.entries())o.push(l),o.length===s&&(i.push(o),o=[]);return o.length&&i.push(o),i}function Si(r,s){s||(s=new Map);for(let i=0,o;i<r.length;i++)o=r[i],s.set(o[0],o[1]);return s}function bl(r,s=0){let i=[],o=[];s&&(s=25e4/s*1e3|0);for(const l of r.entries())o.push([l[0],xi(l[1])[0]||[]]),o.length===s&&(i.push(o),o=[]);return o.length&&i.push(o),i}function Bl(r,s){s||(s=new Map);for(let i=0,o,l;i<r.length;i++)o=r[i],l=s.get(o[0]),s.set(o[0],Si(o[1],l));return s}function Vl(r){let s=[],i=[];for(const o of r.keys())i.push(o),i.length===25e4&&(s.push(i),i=[]);return i.length&&s.push(i),s}function Hl(r,s){s||(s=new Set);for(let i=0;i<r.length;i++)s.add(r[i]);return s}function Qr(r,s,i,o,l,c,f=0){const p=o&&o.constructor===Array;var d=p?o.shift():o;if(!d)return this.export(r,s,l,c+1);if((d=r((s?s+".":"")+(f+1)+"."+i,JSON.stringify(d)))&&d.then){const m=this;return d.then(function(){return Qr.call(m,r,s,i,p?o:null,l,c,f+1)})}return Qr.call(this,r,s,i,p?o:null,l,c,f+1)}function Hf(r,s,i=0,o=0){if(i<this.field.length){const f=this.field[i];if((s=this.index.get(f).export(r,f,i,o=1))&&s.then){const p=this;return s.then(function(){return p.export(r,f,i+1)})}return this.export(r,f,i+1)}let l,c;switch(o){case 0:l="reg",c=Vl(this.reg),s=null;break;case 1:l="tag",c=this.tag&&bl(this.tag,this.reg.size),s=null;break;case 2:l="doc",c=this.store&&xi(this.store),s=null;break;default:return}return Qr.call(this,r,s,l,c||null,i,o)}function Kf(r,s){var i=r.split(".");i[i.length-1]==="json"&&i.pop();const o=i.length>2?i[0]:"";if(i=i.length>2?i[2]:i[1],this.worker&&o)return this.index.get(o).import(r);if(s){if(typeof s=="string"&&(s=JSON.parse(s)),o)return this.index.get(o).import(i,s);switch(i){case"reg":this.fastupdate=!1,this.reg=Hl(s,this.reg);for(let l=0,c;l<this.field.length;l++)c=this.index.get(this.field[l]),c.fastupdate=!1,c.reg=this.reg;if(this.worker){s=[];for(const l of this.index.values())s.push(l.import(r));return Promise.all(s)}break;case"tag":this.tag=Bl(s,this.tag);break;case"doc":this.store=Si(s,this.store)}}}function Kl(r,s){let i="";for(const o of r.entries()){r=o[0];const l=o[1];let c="";for(let f=0,p;f<l.length;f++){p=l[f]||[""];let d="";for(let m=0;m<p.length;m++)d+=(d?",":"")+(s==="string"?'"'+p[m]+'"':p[m]);d="["+d+"]",c+=(c?",":"")+d}c='["'+r+'",['+c+"]]",i+=(i?",":"")+c}return i}ot.prototype.remove=function(r,s){const i=this.reg.size&&(this.fastupdate?this.reg.get(r):this.reg.has(r));if(i){if(this.fastupdate){for(let o=0,l,c;o<i.length;o++)if((l=i[o])&&(c=l.length))if(l[c-1]===r)l.pop();else{const f=l.indexOf(r);f>=0&&l.splice(f,1)}}else Yn(this.map,r),this.depth&&Yn(this.ctx,r);s||this.reg.delete(r)}return this.db&&(this.commit_task.push({del:r}),this.M&&Jl(this)),this.cache&&this.cache.remove(r),this};function Yn(r,s){let i=0;var o=typeof s>"u";if(r.constructor===Array){for(let l=0,c,f,p;l<r.length;l++)if((c=r[l])&&c.length){if(o)return 1;if(f=c.indexOf(s),f>=0){if(c.length>1)return c.splice(f,1),1;if(delete r[l],i)return 1;p=1}else{if(p)return 1;i++}}}else for(let l of r.entries())o=l[0],Yn(l[1],s)?i++:r.delete(o);return i}const Wf={memory:{resolution:1},performance:{resolution:3,fastupdate:!0,context:{depth:1,resolution:1}},match:{tokenize:"forward"},score:{resolution:9,context:{depth:2,resolution:3}}};ot.prototype.add=function(r,s,i,o){if(s&&(r||r===0)){if(!o&&!i&&this.reg.has(r))return this.update(r,s);o=this.depth,s=this.encoder.encode(s,!o);const m=s.length;if(m){const v=Te(),x=Te(),w=this.resolution;for(let C=0;C<m;C++){let N=s[this.rtl?m-1-C:C];var l=N.length;if(l&&(o||!x[N])){var c=this.score?this.score(s,N,C,null,0):Yr(w,m,C),f="";switch(this.tokenize){case"tolerant":if(pt(this,x,N,c,r,i),l>2){for(let E=1,_,D,z,G;E<l-1;E++)_=N.charAt(E),D=N.charAt(E+1),z=N.substring(0,E)+D,G=N.substring(E+2),f=z+_+G,pt(this,x,f,c,r,i),f=z+G,pt(this,x,f,c,r,i);pt(this,x,N.substring(0,N.length-1),c,r,i)}break;case"full":if(l>2){for(let E=0,_;E<l;E++)for(c=l;c>E;c--){f=N.substring(E,c),_=this.rtl?l-1-E:E;var p=this.score?this.score(s,N,C,f,_):Yr(w,m,C,l,_);pt(this,x,f,p,r,i)}break}case"bidirectional":case"reverse":if(l>1){for(p=l-1;p>0;p--){f=N[this.rtl?l-1-p:p]+f;var d=this.score?this.score(s,N,C,f,p):Yr(w,m,C,l,p);pt(this,x,f,d,r,i)}f=""}case"forward":if(l>1){for(p=0;p<l;p++)f+=N[this.rtl?l-1-p:p],pt(this,x,f,c,r,i);break}default:if(pt(this,x,N,c,r,i),o&&m>1&&C<m-1)for(l=this.N,f=N,c=Math.min(o+1,this.rtl?C+1:m-C),p=1;p<c;p++){N=s[this.rtl?m-1-C-p:C+p],d=this.bidirectional&&N>f;const E=this.score?this.score(s,f,C,N,p-1):Yr(l+(m/2>l?0:1),m,C,c-1,p-1);pt(this,v,d?f:N,E,r,i,d?N:f)}}}}this.fastupdate||this.reg.add(r)}}return this.db&&(this.commit_task.push(i?{ins:r}:{del:r}),this.M&&Jl(this)),this};function pt(r,s,i,o,l,c,f){let p,d;if(!(p=s[i])||f&&!p[f]){if(f?(s=p||(s[i]=Te()),s[f]=1,d=r.ctx,(p=d.get(f))?d=p:d.set(f,d=r.keystore?new tt(r.keystore):new Map)):(d=r.map,s[i]=1),(p=d.get(i))?d=p:d.set(i,d=p=[]),c){for(let m=0,v;m<p.length;m++)if((v=p[m])&&v.includes(l)){if(m<=o)return;v.splice(v.indexOf(l),1),r.fastupdate&&(s=r.reg.get(l))&&s.splice(s.indexOf(v),1);break}}if(d=d[o]||(d[o]=[]),d.push(l),d.length===2**31-1){if(s=new fn(d),r.fastupdate)for(let m of r.reg.values())m.includes(d)&&(m[m.indexOf(d)]=s);p[o]=d=s}r.fastupdate&&((o=r.reg.get(l))?o.push(d):r.reg.set(l,[d]))}}function Yr(r,s,i,o,l){return i&&r>1?s+(o||0)<=r?i+(l||0):(r-1)/(s+(o||0))*(i+(l||0))+1|0:0}ot.prototype.search=function(r,s,i){if(i||(s||typeof r!="object"?typeof s=="object"&&(i=s,s=0):(i=r,r="")),i&&i.cache)return i.cache=!1,r=this.searchCache(r,s,i),i.cache=!0,r;let o=[],l,c,f,p=0,d,m,v,x,w;i&&(r=i.query||r,s=i.limit||s,p=i.offset||0,c=i.context,f=i.suggest,w=(d=i.resolve)&&i.enrich,v=i.boost,x=i.resolution,m=this.db&&i.tag),typeof d>"u"&&(d=this.resolve),c=this.depth&&c!==!1;let C=this.encoder.encode(r,!c);if(l=C.length,s=s||(d?100:0),l===1)return Ql.call(this,C[0],"",s,p,d,w,m);if(l===2&&c&&!f)return Ql.call(this,C[1],C[0],s,p,d,w,m);let N=Te(),E=0,_;if(c&&(_=C[0],E=1),x||x===0||(x=_?this.N:this.resolution),this.db){if(this.db.search&&(i=this.db.search(this,C,s,p,f,d,w,m),i!==!1))return i;const D=this;return(async function(){for(let z,G;E<l;E++){if((G=C[E])&&!N[G]){if(N[G]=1,z=await ki(D,G,_,0,0,!1,!1),z=Yl(z,o,f,x)){o=z;break}_&&(f&&z&&o.length||(_=G))}f&&_&&E===l-1&&!o.length&&(x=D.resolution,_="",E=-1,N=Te())}return Wl(o,x,s,p,f,v,d)})()}for(let D,z;E<l;E++){if((z=C[E])&&!N[z]){if(N[z]=1,D=ki(this,z,_,0,0,!1,!1),D=Yl(D,o,f,x)){o=D;break}_&&(f&&D&&o.length||(_=z))}f&&_&&E===l-1&&!o.length&&(x=this.resolution,_="",E=-1,N=Te())}return Wl(o,x,s,p,f,v,d)};function Wl(r,s,i,o,l,c,f){let p=r.length,d=r;if(p>1)d=Kr(r,s,i,o,l,c,f);else if(p===1)return f?vi.call(null,r[0],i,o):new Ce(r[0],this);return f?d:new Ce(d,this)}function Ql(r,s,i,o,l,c,f){return r=ki(this,r,s,i,o,l,c,f),this.db?r.then(function(p){return l?p||[]:new Ce(p,this)}):r&&r.length?l?vi.call(this,r,i,o):new Ce(r,this):l?[]:new Ce([],this)}function Yl(r,s,i,o){let l=[];if(r&&r.length){if(r.length<=o){s.push(r);return}for(let c=0,f;c<o;c++)(f=r[c])&&(l[c]=f);if(l.length){s.push(l);return}}if(!i)return l}function ki(r,s,i,o,l,c,f,p){let d;return i&&(d=r.bidirectional&&s>i)&&(d=i,i=s,s=d),r.db?r.db.get(s,i,o,l,c,f,p):(r=i?(r=r.ctx.get(i))&&r.get(s):r.map.get(s),r)}function ot(r,s){if(!this||this.constructor!==ot)return new ot(r);if(r){var i=et(r)?r:r.preset;i&&(r=Object.assign({},Wf[i],r))}else r={};i=r.context;const o=i===!0?{depth:1}:i||{},l=et(r.encoder)?di[r.encoder]:r.encode||r.encoder||{};this.encoder=l.encode?l:typeof l=="object"?new cn(l):{encode:l},this.resolution=r.resolution||9,this.tokenize=i=(i=r.tokenize)&&i!=="default"&&i!=="exact"&&i||"strict",this.depth=i==="strict"&&o.depth||0,this.bidirectional=o.bidirectional!==!1,this.fastupdate=!!r.fastupdate,this.score=r.score||null,(i=r.keystore||0)&&(this.keystore=i),this.map=i?new tt(i):new Map,this.ctx=i?new tt(i):new Map,this.reg=s||(this.fastupdate?i?new tt(i):new Map:i?new nt(i):new Set),this.N=o.resolution||3,this.rtl=l.rtl||r.rtl||!1,this.cache=(i=r.cache||null)&&new Wt(i),this.resolve=r.resolve!==!1,(i=r.db)&&(this.db=this.mount(i)),this.M=r.commit!==!1,this.commit_task=[],this.commit_timer=null,this.priority=r.priority||4}J=ot.prototype,J.mount=function(r){return this.commit_timer&&(clearTimeout(this.commit_timer),this.commit_timer=null),r.mount(this)},J.commit=function(){return this.commit_timer&&(clearTimeout(this.commit_timer),this.commit_timer=null),this.db.commit(this)},J.destroy=function(){return this.commit_timer&&(clearTimeout(this.commit_timer),this.commit_timer=null),this.db.destroy()};function Jl(r){r.commit_timer||(r.commit_timer=setTimeout(function(){r.commit_timer=null,r.db.commit(r)},1))}J.clear=function(){return this.map.clear(),this.ctx.clear(),this.reg.clear(),this.cache&&this.cache.clear(),this.db?(this.commit_timer&&clearTimeout(this.commit_timer),this.commit_timer=null,this.commit_task=[],this.db.clear()):this},J.append=function(r,s){return this.add(r,s,!0)},J.contain=function(r){return this.db?this.db.has(r):this.reg.has(r)},J.update=function(r,s){const i=this,o=this.remove(r);return o&&o.then?o.then(()=>i.add(r,s)):this.add(r,s)},J.cleanup=function(){return this.fastupdate?(Yn(this.map),this.depth&&Yn(this.ctx),this):this},J.searchCache=fi,J.export=function(r,s,i=0,o=0){let l,c;switch(o){case 0:l="reg",c=Vl(this.reg);break;case 1:l="cfg",c=null;break;case 2:l="map",c=xi(this.map,this.reg.size);break;case 3:l="ctx",c=bl(this.ctx,this.reg.size);break;default:return}return Qr.call(this,r,s,l,c,i,o)},J.import=function(r,s){if(s)switch(typeof s=="string"&&(s=JSON.parse(s)),r=r.split("."),r[r.length-1]==="json"&&r.pop(),r.length===3&&r.shift(),r=r.length>1?r[1]:r[0],r){case"reg":this.fastupdate=!1,this.reg=Hl(s,this.reg);break;case"map":this.map=Si(s,this.map);break;case"ctx":this.ctx=Bl(s,this.ctx)}},J.serialize=function(r=!0){let s="",i="",o="";if(this.reg.size){let c;for(var l of this.reg.keys())c||(c=typeof l),s+=(s?",":"")+(c==="string"?'"'+l+'"':l);s="index.reg=new Set(["+s+"]);",i=Kl(this.map,c),i="index.map=new Map(["+i+"]);";for(const f of this.ctx.entries()){l=f[0];let p=Kl(f[1],c);p="new Map(["+p+"])",p='["'+l+'",'+p+"]",o+=(o?",":"")+p}o="index.ctx=new Map(["+o+"]);"}return r?"function inject(index){"+s+i+o+"}":s+i+o},pi(ot.prototype);const Xl=typeof window<"u"&&(window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB),Jr=["map","ctx","tag","reg","cfg"],Yt=Te();function Ci(r,s={}){if(!this||this.constructor!==Ci)return new Ci(r,s);typeof r=="object"&&(s=r,r=r.name),r||console.info("Default storage space was used, because a name was not passed."),this.id="flexsearch"+(r?":"+r.toLowerCase().replace(/[^a-z0-9_\-]/g,""):""),this.field=s.field?s.field.toLowerCase().replace(/[^a-z0-9_\-]/g,""):"",this.type=s.type,this.fastupdate=this.support_tag_search=!1,this.db=null,this.h={}}J=Ci.prototype,J.mount=function(r){return r.index?r.mount(this):(r.db=this,this.open())},J.open=function(){if(this.db)return this.db;let r=this;navigator.storage&&navigator.storage.persist&&navigator.storage.persist(),Yt[r.id]||(Yt[r.id]=[]),Yt[r.id].push(r.field);const s=Xl.open(r.id,1);return s.onupgradeneeded=function(){const i=r.db=this.result;for(let o=0,l;o<Jr.length;o++){l=Jr[o];for(let c=0,f;c<Yt[r.id].length;c++)f=Yt[r.id][c],i.objectStoreNames.contains(l+(l!=="reg"&&f?":"+f:""))||i.createObjectStore(l+(l!=="reg"&&f?":"+f:""))}},r.db=$t(s,function(i){r.db=i,r.db.onversionchange=function(){r.close()}})},J.close=function(){this.db&&this.db.close(),this.db=null},J.destroy=function(){const r=Xl.deleteDatabase(this.id);return $t(r)},J.clear=function(){const r=[];for(let i=0,o;i<Jr.length;i++){o=Jr[i];for(let l=0,c;l<Yt[this.id].length;l++)c=Yt[this.id][l],r.push(o+(o!=="reg"&&c?":"+c:""))}const s=this.db.transaction(r,"readwrite");for(let i=0;i<r.length;i++)s.objectStore(r[i]).clear();return $t(s)},J.get=function(r,s,i=0,o=0,l=!0,c=!1){r=this.db.transaction((s?"ctx":"map")+(this.field?":"+this.field:""),"readonly").objectStore((s?"ctx":"map")+(this.field?":"+this.field:"")).get(s?s+":"+r:r);const f=this;return $t(r).then(function(p){let d=[];if(!p||!p.length)return d;if(l){if(!i&&!o&&p.length===1)return p[0];for(let m=0,v;m<p.length;m++)if((v=p[m])&&v.length){if(o>=v.length){o-=v.length;continue}const x=i?o+Math.min(v.length-o,i):v.length;for(let w=o;w<x;w++)d.push(v[w]);if(o=0,d.length===i)break}return c?f.enrich(d):d}return p})},J.tag=function(r,s=0,i=0,o=!1){r=this.db.transaction("tag"+(this.field?":"+this.field:""),"readonly").objectStore("tag"+(this.field?":"+this.field:"")).get(r);const l=this;return $t(r).then(function(c){return!c||!c.length||i>=c.length?[]:!s&&!i?c:(c=c.slice(i,i+s),o?l.enrich(c):c)})},J.enrich=function(r){typeof r!="object"&&(r=[r]);const s=this.db.transaction("reg","readonly").objectStore("reg"),i=[];for(let o=0;o<r.length;o++)i[o]=$t(s.get(r[o]));return Promise.all(i).then(function(o){for(let l=0;l<o.length;l++)o[l]={id:r[l],doc:o[l]?JSON.parse(o[l]):null};return o})},J.has=function(r){return r=this.db.transaction("reg","readonly").objectStore("reg").getKey(r),$t(r).then(function(s){return!!s})},J.search=null,J.info=function(){},J.transaction=function(r,s,i){r+=r!=="reg"&&this.field?":"+this.field:"";let o=this.h[r+":"+s];if(o)return i.call(this,o);let l=this.db.transaction(r,s);this.h[r+":"+s]=o=l.objectStore(r);const c=i.call(this,o);return this.h[r+":"+s]=null,$t(l).finally(function(){return c})},J.commit=async function(r){let s=r.commit_task,i=[];r.commit_task=[];for(let o=0,l;o<s.length;o++)l=s[o],l.del&&i.push(l.del);i.length&&await this.remove(i),r.reg.size&&(await this.transaction("map","readwrite",function(o){for(const l of r.map){const c=l[0],f=l[1];f.length&&(o.get(c).onsuccess=function(){let p=this.result;var d;if(p&&p.length){const m=Math.max(p.length,f.length);for(let v=0,x,w;v<m;v++)if((w=f[v])&&w.length){if((x=p[v])&&x.length)for(d=0;d<w.length;d++)x.push(w[d]);else p[v]=w;d=1}}else p=f,d=1;d&&o.put(p,c)})}}),await this.transaction("ctx","readwrite",function(o){for(const l of r.ctx){const c=l[0],f=l[1];for(const p of f){const d=p[0],m=p[1];m.length&&(o.get(c+":"+d).onsuccess=function(){let v=this.result;var x;if(v&&v.length){const w=Math.max(v.length,m.length);for(let C=0,N,E;C<w;C++)if((E=m[C])&&E.length){if((N=v[C])&&N.length)for(x=0;x<E.length;x++)N.push(E[x]);else v[C]=E;x=1}}else v=m,x=1;x&&o.put(v,c+":"+d)})}}}),r.store?await this.transaction("reg","readwrite",function(o){for(const l of r.store){const c=l[0],f=l[1];o.put(typeof f=="object"?JSON.stringify(f):1,c)}}):r.bypass||await this.transaction("reg","readwrite",function(o){for(const l of r.reg.keys())o.put(1,l)}),r.tag&&await this.transaction("tag","readwrite",function(o){for(const l of r.tag){const c=l[0],f=l[1];f.length&&(o.get(c).onsuccess=function(){let p=this.result;p=p&&p.length?p.concat(f):f,o.put(p,c)})}}),r.map.clear(),r.ctx.clear(),r.tag&&r.tag.clear(),r.store&&r.store.clear(),r.document||r.reg.clear())};function $i(r,s,i){const o=r.value;let l,c=0;for(let f=0,p;f<o.length;f++){if(p=i?o:o[f]){for(let d=0,m,v;d<s.length;d++)if(v=s[d],m=p.indexOf(v),m>=0)if(l=1,p.length>1)p.splice(m,1);else{o[f]=[];break}c+=p.length}if(i)break}c?l&&r.update(o):r.delete(),r.continue()}J.remove=function(r){return typeof r!="object"&&(r=[r]),Promise.all([this.transaction("map","readwrite",function(s){s.openCursor().onsuccess=function(){const i=this.result;i&&$i(i,r)}}),this.transaction("ctx","readwrite",function(s){s.openCursor().onsuccess=function(){const i=this.result;i&&$i(i,r)}}),this.transaction("tag","readwrite",function(s){s.openCursor().onsuccess=function(){const i=this.result;i&&$i(i,r,!0)}}),this.transaction("reg","readwrite",function(s){for(let i=0;i<r.length;i++)s.delete(r[i])})])};function $t(r,s){return new Promise((i,o)=>{r.onsuccess=r.oncomplete=function(){s&&s(this.result),s=null,i(this.result)},r.onerror=r.onblocked=o,r=null})}const Xr={Encoder:cn,Document:Qt},Qf=di,Yf={finalize:r=>{let s=[];for(const i of r)s.push(...Xf(i));return s}};function Jf(r){return r>=19968&&r<=40959||r>=12352&&r<=12543||r>=44032&&r<=55203||r>=13312&&r<=19903||r>=131072&&r<=173791||r>=173824&&r<=191471||r>=196608&&r<=205743||r>=191472&&r<=192095||r>=63744&&r<=64255||r>=194560&&r<=195103}function Xf(r){const s=[];let i="";for(const o of r){const l=o.codePointAt(0);Jf(l)?(i&&(s.push(i),i=""),s.push(o)):i+=o}return i&&s.push(i),s}const _i=new Xr.Encoder(Qf.Default,Yf);class Zf{constructor({adminUrl:s,apiKey:i,dir:o}){const l=o==="rtl",c=o==="rtl"?"reverse":"forward";this.apiUrl=s,this.apiKey=i,this.postsIndex=new Xr.Document({tokenize:c,rtl:l,document:{id:"id",index:["title","excerpt"],store:!0},encoder:_i}),this.authorsIndex=new Xr.Document({tokenize:c,rtl:l,document:{id:"id",index:["name"],store:!0},encoder:_i}),this.tagsIndex=new Xr.Document({tokenize:c,rtl:l,document:{id:"id",index:["name"],store:!0},encoder:_i}),this.init=this.init.bind(this),this.search=this.search.bind(this)}async#t(){const s=await this.#n();s.length>0&&this.#r(s)}async#n(){try{const s=`${this.apiUrl}/ghost/api/content/search-index/posts/?key=${this.apiKey}`;return(await(await fetch(s)).json()).posts}catch(s){return console.error("Error fetching posts:",s),[]}}#r(s){s.forEach(i=>{this.postsIndex.add(i)})}async#s(){const s=await this.#i();s.length>0&&this.#o(s)}async#i(){try{const s=`${this.apiUrl}/ghost/api/content/search-index/authors/?key=${this.apiKey}`;return(await(await fetch(s)).json()).authors}catch(s){return console.error("Error fetching authors:",s),[]}}#o(s){s.forEach(i=>{this.authorsIndex.add(i)})}async#l(){const s=await this.#a();s.length>0&&this.#u(s)}async#a(){try{const s=`${this.apiUrl}/ghost/api/content/search-index/tags/?key=${this.apiKey}`;return(await(await fetch(s)).json()).tags}catch(s){return console.error("Error fetching tags:",s),[]}}#u(s){s.forEach(i=>{this.tagsIndex.add(i)})}async init(){await this.#t(),await this.#s(),await this.#l()}#e(s){const i=[],o={};return s.forEach(l=>{l.result.forEach(c=>{o[c.id]||(i.push(c.doc),o[c.id]=!0)})}),i}search(s){const i=this.postsIndex.search(s,{enrich:!0}),o=this.authorsIndex.search(s,{enrich:!0}),l=this.tagsIndex.search(s,{enrich:!0});return{posts:this.#e(i),authors:this.#e(o),tags:this.#e(l)}}}const Gf={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},qf={Authors:"الكتّاب",Cancel:"إلغاء","No matches found":"لا يوجد نتائج مطابقة",Posts:"منشورات","Search posts, tags and authors":"قم بالبحث عن المنشورات، الوسوم و الكتّاب","Show more results":"اظهر المزيد من النتائج",Tags:"الوسوم"},eh={Authors:"Автори",Cancel:"Отказ","No matches found":"Няма съвпадения",Posts:"Публикации","Search posts, tags and authors":"Търсене в публикации, етикети и автори","Show more results":"Покажи още резултати",Tags:"Етикети"},th={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},nh={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},rh={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"},sh={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"},ih={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"},oh={Authors:"Autoren",Cancel:"Abbrechen","No matches found":"Keine Treffer gefunden",Posts:"Beiträge","Search posts, tags and authors":"Nach Posts, Tags und Autoren suchen","Show more results":"Mehr Ergebnisse anzeigen",Tags:"Tags"},lh={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"},ah={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},uh={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},ch={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},fh={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"},hh={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"},dh={Authors:"Autoreak",Cancel:"Utzi","No matches found":"Ez da bat datorren ezer topatu",Posts:"Artikuluak","Search posts, tags and authors":"Bilatu artikuluak, etiketak eta autoreak","Show more results":"Erakutsi emaitza gehiago",Tags:"Etiketak"},ph={Authors:"نویسندگان",Cancel:"لغو","No matches found":"موردی یافت نشد",Posts:"نوشتهها","Search posts, tags and authors":"جستوجوی نوشتهها، برچسبها و نویسندگان","Show more results":"نمایش نتایج بیشتر",Tags:"برچسبها"},gh={Authors:"Kirjoittajat",Cancel:"Peruuta","No matches found":"Ei hakutuloksia",Posts:"Kirjoitukset","Search posts, tags and authors":"Etsi kirjoituksia, tunnisteita ja kirjoittajia","Show more results":"Näytä enemmän tuloksia",Tags:"Tunnisteet"},mh={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"},yh={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"},vh={Authors:"מחברים",Cancel:"ביטול","No matches found":"לא נמצאו התאמות",Posts:"פוסטים","Search posts, tags and authors":"חיפוש פוסטים, תגיות ומחברים","Show more results":"הצגת תוצאות נוספות",Tags:"תגיות"},wh={Authors:"लेखक",Cancel:"रद्द करें","No matches found":"कोई मैच नहीं मिला",Posts:"पोस्ट","Search posts, tags and authors":"पोस्ट, टैग और लेखक की तलाश करें","Show more results":"और परिणाम दिखाएं",Tags:"टैग"},xh={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Sh={Authors:"Szerzők",Cancel:"Mégse","No matches found":"Nincs találat",Posts:"Bejegyzések","Search posts, tags and authors":"Keresés a bejegyzések, a címkék és a szerzők között","Show more results":"További találatok megjelenítése",Tags:"Címkék"},kh={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"},Ch={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},$h={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"},_h={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Ph={Authors:"작성자",Cancel:"취소","No matches found":"일치하는 결과가 없어요",Posts:"게시물","Search posts, tags and authors":"게시물, 태그, 작성자 검색","Show more results":"더 많은 결과 보기",Tags:"태그"},Eh={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Th={Authors:"Autoriai",Cancel:"Atšaukti","No matches found":"Atitikmenų nerasta",Posts:"Įrašai","Search posts, tags and authors":"Ieškoti įrašų, žymų ir autorių","Show more results":"Rodyti daugiau rezultatų",Tags:"Žymos"},Nh={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"},Ah={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},jh={Authors:"Нийтлэгчид",Cancel:"Цуцлах","No matches found":"Тохирох хайлтын үр дүн олдсонгүй",Posts:"Нийтлэлүүд","Search posts, tags and authors":"Нийтлэл, ангилал, нийтлэгчдээр хайх","Show more results":"Илүү олон үр дүн харуулах",Tags:"Ангилалууд"},Lh={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Oh={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"},Rh={Authors:"लेखकहरू",Cancel:"रद्द गर्नुहोस्","No matches found":"कुनै परिणाम भेटिएन",Posts:"पोस्टहरू","Search posts, tags and authors":"पोस्टहरू, ट्यागहरू र लेखकहरू खोज्नुहोस्","Show more results":"थप परिणामहरू देखाउनुहोस्",Tags:"ट्यागहरू"},Ih={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"},zh={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Mh={Authors:"ਲੇਖਕ",Cancel:"ਰੱਦ ਕਰੋ","No matches found":"ਕੋਈ ਮੇਲ ਨਹੀਂ ਮਿਲਿਆ",Posts:"ਪੋਸਟਾਂ","Search posts, tags and authors":"ਪੋਸਟਾਂ, ਟੈਗ ਅਤੇ ਲੇਖਕ ਖੋਜੋ","Show more results":"ਹੋਰ ਨਤੀਜੇ ਦਿਖਾਓ",Tags:"ਟੈਗ"},Dh={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"},Fh={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"},Uh={Authors:"Autores",Cancel:"Cancelar","No matches found":"Nenhum resultado encontrado",Posts:"Publicações","Search posts, tags and authors":"Procurar publicações, marcadores e autores","Show more results":"Mostrar mais resultados",Tags:"Marcadores"},bh={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"},Bh={Authors:"Авторы",Cancel:"Отмена","No matches found":"Совпадений не найдено",Posts:"Записи","Search posts, tags and authors":"Поиск по записям, тегам и авторам","Show more results":"Показать больше результатов",Tags:"Теги"},Vh={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Hh={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"},Kh={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"},Wh={Authors:"Autorët",Cancel:"Anulo","No matches found":"Nuk u gjet asnjë rezultat",Posts:"Postimet","Search posts, tags and authors":"Kërko postime, etiketa dhe autorë","Show more results":"Shfaq më shumë rezultate",Tags:"Etiketat"},Qh={Authors:"Аутори",Cancel:"Откажите","No matches found":"Нема резултата",Posts:"Објаве","Search posts, tags and authors":"Претражите објаве, tag-ове и ауторе","Show more results":"Прикажите више резултата",Tags:"Tag-ови"},Yh={Authors:"Autori",Cancel:"Otkažite","No matches found":"Nema rezultata",Posts:"Objave","Search posts, tags and authors":"Pretražite objave, tag-ove i autore","Show more results":"Prikažite više rezultata",Tags:"Tag-ovi"},Jh={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"},Xh={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Zh={Authors:"ஆசிரியர்கள்",Cancel:"ரத்து செய்","No matches found":"பொருத்தங்கள் எதுவும் இல்லை",Posts:"பதிவுகள்","Search posts, tags and authors":"பதிவுகள், குறிச்சொற்கள் மற்றும் ஆசிரியர்களைத் தேடுங்கள்","Show more results":"மேலும் முடிவுகளைக் காட்டு",Tags:"குறிச்சொற்கள்"},Gh={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},qh={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"},ed={Authors:"Автори",Cancel:"Скасувати","No matches found":"Збігів не знайдено",Posts:"Публікації","Search posts, tags and authors":"Шукайте публікацій, теги та авторів","Show more results":"Показати більше результатів",Tags:"Теги"},td={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},nd={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},rd={Authors:"Tác giả",Cancel:"Hủy","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, thẻ và tác giả","Show more results":"Xem thêm kết quả",Tags:"Thẻ"},sd={Authors:"作者",Cancel:"取消","No matches found":"無相符結果",Posts:"文章","Search posts, tags and authors":"搜尋文章、標籤與作者","Show more results":"更多結果",Tags:"標籤"},id={Authors:"作者",Cancel:"取消","No matches found":"未找到匹配项",Posts:"文章","Search posts, tags and authors":"搜索文章、标签和作者","Show more results":"显示更多结果",Tags:"标签"},le=r=>typeof r=="string",Jn=()=>{let r,s;const i=new Promise((o,l)=>{r=o,s=l});return i.resolve=r,i.reject=s,i},Zl=r=>r==null?"":""+r,od=(r,s,i)=>{r.forEach(o=>{s[o]&&(i[o]=s[o])})},ld=/###/g,Gl=r=>r&&r.indexOf("###")>-1?r.replace(ld,"."):r,ql=r=>!r||le(r),Xn=(r,s,i)=>{const o=le(s)?s.split("."):s;let l=0;for(;l<o.length-1;){if(ql(r))return{};const c=Gl(o[l]);!r[c]&&i&&(r[c]=new i),Object.prototype.hasOwnProperty.call(r,c)?r=r[c]:r={},++l}return ql(r)?{}:{obj:r,k:Gl(o[l])}},ea=(r,s,i)=>{const{obj:o,k:l}=Xn(r,s,Object);if(o!==void 0||s.length===1){o[l]=i;return}let c=s[s.length-1],f=s.slice(0,s.length-1),p=Xn(r,f,Object);for(;p.obj===void 0&&f.length;)c=`${f[f.length-1]}.${c}`,f=f.slice(0,f.length-1),p=Xn(r,f,Object),p&&p.obj&&typeof p.obj[`${p.k}.${c}`]<"u"&&(p.obj=void 0);p.obj[`${p.k}.${c}`]=i},ad=(r,s,i,o)=>{const{obj:l,k:c}=Xn(r,s,Object);l[c]=l[c]||[],l[c].push(i)},Zr=(r,s)=>{const{obj:i,k:o}=Xn(r,s);if(i)return i[o]},ud=(r,s,i)=>{const o=Zr(r,i);return o!==void 0?o:Zr(s,i)},ta=(r,s,i)=>{for(const o in s)o!=="__proto__"&&o!=="constructor"&&(o in r?le(r[o])||r[o]instanceof String||le(s[o])||s[o]instanceof String?i&&(r[o]=s[o]):ta(r[o],s[o],i):r[o]=s[o]);return r},mn=r=>r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var cd={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const fd=r=>le(r)?r.replace(/[&<>"'\/]/g,s=>cd[s]):r;class hd{constructor(s){this.capacity=s,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(s){const i=this.regExpMap.get(s);if(i!==void 0)return i;const o=new RegExp(s);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(s,o),this.regExpQueue.push(s),o}}const dd=[" ",",","?","!",";"],pd=new hd(20),gd=(r,s,i)=>{s=s||"",i=i||"";const o=dd.filter(f=>s.indexOf(f)<0&&i.indexOf(f)<0);if(o.length===0)return!0;const l=pd.getRegExp(`(${o.map(f=>f==="?"?"\\?":f).join("|")})`);let c=!l.test(r);if(!c){const f=r.indexOf(i);f>0&&!l.test(r.substring(0,f))&&(c=!0)}return c},Pi=function(r,s){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!r)return;if(r[s])return r[s];const o=s.split(i);let l=r;for(let c=0;c<o.length;){if(!l||typeof l!="object")return;let f,p="";for(let d=c;d<o.length;++d)if(d!==c&&(p+=i),p+=o[d],f=l[p],f!==void 0){if(["string","number","boolean"].indexOf(typeof f)>-1&&d<o.length-1)continue;c+=d-c+1;break}l=f}return l},Gr=r=>r&&r.replace("_","-"),md={type:"logger",log(r){this.output("log",r)},warn(r){this.output("warn",r)},error(r){this.output("error",r)},output(r,s){console&&console[r]&&console[r].apply(console,s)}};class qr{constructor(s){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(s,i)}init(s){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=i.prefix||"i18next:",this.logger=s||md,this.options=i,this.debug=i.debug}log(){for(var s=arguments.length,i=new Array(s),o=0;o<s;o++)i[o]=arguments[o];return this.forward(i,"log","",!0)}warn(){for(var s=arguments.length,i=new Array(s),o=0;o<s;o++)i[o]=arguments[o];return this.forward(i,"warn","",!0)}error(){for(var s=arguments.length,i=new Array(s),o=0;o<s;o++)i[o]=arguments[o];return this.forward(i,"error","")}deprecate(){for(var s=arguments.length,i=new Array(s),o=0;o<s;o++)i[o]=arguments[o];return this.forward(i,"warn","WARNING DEPRECATED: ",!0)}forward(s,i,o,l){return l&&!this.debug?null:(le(s[0])&&(s[0]=`${o}${this.prefix} ${s[0]}`),this.logger[i](s))}create(s){return new qr(this.logger,{prefix:`${this.prefix}:${s}:`,...this.options})}clone(s){return s=s||this.options,s.prefix=s.prefix||this.prefix,new qr(this.logger,s)}}var lt=new qr;class es{constructor(){this.observers={}}on(s,i){return s.split(" ").forEach(o=>{this.observers[o]||(this.observers[o]=new Map);const l=this.observers[o].get(i)||0;this.observers[o].set(i,l+1)}),this}off(s,i){if(this.observers[s]){if(!i){delete this.observers[s];return}this.observers[s].delete(i)}}emit(s){for(var i=arguments.length,o=new Array(i>1?i-1:0),l=1;l<i;l++)o[l-1]=arguments[l];this.observers[s]&&Array.from(this.observers[s].entries()).forEach(f=>{let[p,d]=f;for(let m=0;m<d;m++)p(...o)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(f=>{let[p,d]=f;for(let m=0;m<d;m++)p.apply(p,[s,...o])})}}class na extends es{constructor(s){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=s||{},this.options=i,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(s){this.options.ns.indexOf(s)<0&&this.options.ns.push(s)}removeNamespaces(s){const i=this.options.ns.indexOf(s);i>-1&&this.options.ns.splice(i,1)}getResource(s,i,o){let l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const c=l.keySeparator!==void 0?l.keySeparator:this.options.keySeparator,f=l.ignoreJSONStructure!==void 0?l.ignoreJSONStructure:this.options.ignoreJSONStructure;let p;s.indexOf(".")>-1?p=s.split("."):(p=[s,i],o&&(Array.isArray(o)?p.push(...o):le(o)&&c?p.push(...o.split(c)):p.push(o)));const d=Zr(this.data,p);return!d&&!i&&!o&&s.indexOf(".")>-1&&(s=p[0],i=p[1],o=p.slice(2).join(".")),d||!f||!le(o)?d:Pi(this.data&&this.data[s]&&this.data[s][i],o,c)}addResource(s,i,o,l){let c=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const f=c.keySeparator!==void 0?c.keySeparator:this.options.keySeparator;let p=[s,i];o&&(p=p.concat(f?o.split(f):o)),s.indexOf(".")>-1&&(p=s.split("."),l=i,i=p[1]),this.addNamespaces(i),ea(this.data,p,l),c.silent||this.emit("added",s,i,o,l)}addResources(s,i,o){let l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const c in o)(le(o[c])||Array.isArray(o[c]))&&this.addResource(s,i,c,o[c],{silent:!0});l.silent||this.emit("added",s,i,o)}addResourceBundle(s,i,o,l,c){let f=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},p=[s,i];s.indexOf(".")>-1&&(p=s.split("."),l=o,o=i,i=p[1]),this.addNamespaces(i);let d=Zr(this.data,p)||{};f.skipCopy||(o=JSON.parse(JSON.stringify(o))),l?ta(d,o,c):d={...d,...o},ea(this.data,p,d),f.silent||this.emit("added",s,i,o)}removeResourceBundle(s,i){this.hasResourceBundle(s,i)&&delete this.data[s][i],this.removeNamespaces(i),this.emit("removed",s,i)}hasResourceBundle(s,i){return this.getResource(s,i)!==void 0}getResourceBundle(s,i){return i||(i=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(s,i)}:this.getResource(s,i)}getDataByLanguage(s){return this.data[s]}hasLanguageSomeTranslations(s){const i=this.getDataByLanguage(s);return!!(i&&Object.keys(i)||[]).find(l=>i[l]&&Object.keys(i[l]).length>0)}toJSON(){return this.data}}var ra={processors:{},addPostProcessor(r){this.processors[r.name]=r},handle(r,s,i,o,l){return r.forEach(c=>{this.processors[c]&&(s=this.processors[c].process(s,i,o,l))}),s}};const sa={};class ts extends es{constructor(s){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),od(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],s,this),this.options=i,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=lt.create("translator")}changeLanguage(s){s&&(this.language=s)}exists(s){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(s==null)return!1;const o=this.resolve(s,i);return o&&o.res!==void 0}extractFromKey(s,i){let o=i.nsSeparator!==void 0?i.nsSeparator:this.options.nsSeparator;o===void 0&&(o=":");const l=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let c=i.ns||this.options.defaultNS||[];const f=o&&s.indexOf(o)>-1,p=!this.options.userDefinedKeySeparator&&!i.keySeparator&&!this.options.userDefinedNsSeparator&&!i.nsSeparator&&!gd(s,o,l);if(f&&!p){const d=s.match(this.interpolator.nestingRegexp);if(d&&d.length>0)return{key:s,namespaces:le(c)?[c]:c};const m=s.split(o);(o!==l||o===l&&this.options.ns.indexOf(m[0])>-1)&&(c=m.shift()),s=m.join(l)}return{key:s,namespaces:le(c)?[c]:c}}translate(s,i,o){if(typeof i!="object"&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof i=="object"&&(i={...i}),i||(i={}),s==null)return"";Array.isArray(s)||(s=[String(s)]);const l=i.returnDetails!==void 0?i.returnDetails:this.options.returnDetails,c=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,{key:f,namespaces:p}=this.extractFromKey(s[s.length-1],i),d=p[p.length-1],m=i.lng||this.language,v=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(m&&m.toLowerCase()==="cimode"){if(v){const K=i.nsSeparator||this.options.nsSeparator;return l?{res:`${d}${K}${f}`,usedKey:f,exactUsedKey:f,usedLng:m,usedNS:d,usedParams:this.getUsedParamsDetails(i)}:`${d}${K}${f}`}return l?{res:f,usedKey:f,exactUsedKey:f,usedLng:m,usedNS:d,usedParams:this.getUsedParamsDetails(i)}:f}const x=this.resolve(s,i);let w=x&&x.res;const C=x&&x.usedKey||f,N=x&&x.exactUsedKey||f,E=Object.prototype.toString.apply(w),_=["[object Number]","[object Function]","[object RegExp]"],D=i.joinArrays!==void 0?i.joinArrays:this.options.joinArrays,z=!this.i18nFormat||this.i18nFormat.handleAsObject,G=!le(w)&&typeof w!="boolean"&&typeof w!="number";if(z&&w&&G&&_.indexOf(E)<0&&!(le(D)&&Array.isArray(w))){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const K=this.options.returnedObjectHandler?this.options.returnedObjectHandler(C,w,{...i,ns:p}):`key '${f} (${this.language})' returned an object instead of string.`;return l?(x.res=K,x.usedParams=this.getUsedParamsDetails(i),x):K}if(c){const K=Array.isArray(w),Z=K?[]:{},H=K?N:C;for(const B in w)if(Object.prototype.hasOwnProperty.call(w,B)){const V=`${H}${c}${B}`;Z[B]=this.translate(V,{...i,joinArrays:!1,ns:p}),Z[B]===V&&(Z[B]=w[B])}w=Z}}else if(z&&le(D)&&Array.isArray(w))w=w.join(D),w&&(w=this.extendTranslation(w,s,i,o));else{let K=!1,Z=!1;const H=i.count!==void 0&&!le(i.count),B=ts.hasDefaultValue(i),V=H?this.pluralResolver.getSuffix(m,i.count,i):"",q=i.ordinal&&H?this.pluralResolver.getSuffix(m,i.count,{ordinal:!1}):"",fe=H&&!i.ordinal&&i.count===0&&this.pluralResolver.shouldUseIntlApi(),se=fe&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${V}`]||i[`defaultValue${q}`]||i.defaultValue;!this.isValidLookup(w)&&B&&(K=!0,w=se),this.isValidLookup(w)||(Z=!0,w=f);const pe=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&Z?void 0:w,we=B&&se!==w&&this.options.updateMissing;if(Z||K||we){if(this.logger.log(we?"updateKey":"missingKey",m,d,f,we?se:w),c){const O=this.resolve(f,{...i,keySeparator:!1});O&&O.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 ne=[];const xe=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo==="fallback"&&xe&&xe[0])for(let O=0;O<xe.length;O++)ne.push(xe[O]);else this.options.saveMissingTo==="all"?ne=this.languageUtils.toResolveHierarchy(i.lng||this.language):ne.push(i.lng||this.language);const T=(O,te,he)=>{const L=B&&he!==w?he:pe;this.options.missingKeyHandler?this.options.missingKeyHandler(O,d,te,L,we,i):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(O,d,te,L,we,i),this.emit("missingKey",O,d,te,w)};this.options.saveMissing&&(this.options.saveMissingPlurals&&H?ne.forEach(O=>{const te=this.pluralResolver.getSuffixes(O,i);fe&&i[`defaultValue${this.options.pluralSeparator}zero`]&&te.indexOf(`${this.options.pluralSeparator}zero`)<0&&te.push(`${this.options.pluralSeparator}zero`),te.forEach(he=>{T([O],f+he,i[`defaultValue${he}`]||se)})}):T(ne,f,se))}w=this.extendTranslation(w,s,i,x,o),Z&&w===f&&this.options.appendNamespaceToMissingKey&&(w=`${d}:${f}`),(Z||K)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?w=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${d}:${f}`:f,K?w:void 0):w=this.options.parseMissingKeyHandler(w))}return l?(x.res=w,x.usedParams=this.getUsedParamsDetails(i),x):w}extendTranslation(s,i,o,l,c){var f=this;if(this.i18nFormat&&this.i18nFormat.parse)s=this.i18nFormat.parse(s,{...this.options.interpolation.defaultVariables,...o},o.lng||this.language||l.usedLng,l.usedNS,l.usedKey,{resolved:l});else if(!o.skipInterpolation){o.interpolation&&this.interpolator.init({...o,interpolation:{...this.options.interpolation,...o.interpolation}});const m=le(s)&&(o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let v;if(m){const w=s.match(this.interpolator.nestingRegexp);v=w&&w.length}let x=o.replace&&!le(o.replace)?o.replace:o;if(this.options.interpolation.defaultVariables&&(x={...this.options.interpolation.defaultVariables,...x}),s=this.interpolator.interpolate(s,x,o.lng||this.language||l.usedLng,o),m){const w=s.match(this.interpolator.nestingRegexp),C=w&&w.length;v<C&&(o.nest=!1)}!o.lng&&this.options.compatibilityAPI!=="v1"&&l&&l.res&&(o.lng=this.language||l.usedLng),o.nest!==!1&&(s=this.interpolator.nest(s,function(){for(var w=arguments.length,C=new Array(w),N=0;N<w;N++)C[N]=arguments[N];return c&&c[0]===C[0]&&!o.context?(f.logger.warn(`It seems you are nesting recursively key: ${C[0]} in key: ${i[0]}`),null):f.translate(...C,i)},o)),o.interpolation&&this.interpolator.reset()}const p=o.postProcess||this.options.postProcess,d=le(p)?[p]:p;return s!=null&&d&&d.length&&o.applyPostProcessor!==!1&&(s=ra.handle(d,s,i,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...l,usedParams:this.getUsedParamsDetails(o)},...o}:o,this)),s}resolve(s){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o,l,c,f,p;return le(s)&&(s=[s]),s.forEach(d=>{if(this.isValidLookup(o))return;const m=this.extractFromKey(d,i),v=m.key;l=v;let x=m.namespaces;this.options.fallbackNS&&(x=x.concat(this.options.fallbackNS));const w=i.count!==void 0&&!le(i.count),C=w&&!i.ordinal&&i.count===0&&this.pluralResolver.shouldUseIntlApi(),N=i.context!==void 0&&(le(i.context)||typeof i.context=="number")&&i.context!=="",E=i.lngs?i.lngs:this.languageUtils.toResolveHierarchy(i.lng||this.language,i.fallbackLng);x.forEach(_=>{this.isValidLookup(o)||(p=_,!sa[`${E[0]}-${_}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(p)&&(sa[`${E[0]}-${_}`]=!0,this.logger.warn(`key "${l}" for languages "${E.join(", ")}" won't get resolved as namespace "${p}" 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!!!")),E.forEach(D=>{if(this.isValidLookup(o))return;f=D;const z=[v];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(z,v,D,_,i);else{let K;w&&(K=this.pluralResolver.getSuffix(D,i.count,i));const Z=`${this.options.pluralSeparator}zero`,H=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(w&&(z.push(v+K),i.ordinal&&K.indexOf(H)===0&&z.push(v+K.replace(H,this.options.pluralSeparator)),C&&z.push(v+Z)),N){const B=`${v}${this.options.contextSeparator}${i.context}`;z.push(B),w&&(z.push(B+K),i.ordinal&&K.indexOf(H)===0&&z.push(B+K.replace(H,this.options.pluralSeparator)),C&&z.push(B+Z))}}let G;for(;G=z.pop();)this.isValidLookup(o)||(c=G,o=this.getResource(D,_,G,i))}))})}),{res:o,usedKey:l,exactUsedKey:c,usedLng:f,usedNS:p}}isValidLookup(s){return s!==void 0&&!(!this.options.returnNull&&s===null)&&!(!this.options.returnEmptyString&&s==="")}getResource(s,i,o){let l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(s,i,o,l):this.resourceStore.getResource(s,i,o,l)}getUsedParamsDetails(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const i=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],o=s.replace&&!le(s.replace);let l=o?s.replace:s;if(o&&typeof s.count<"u"&&(l.count=s.count),this.options.interpolation.defaultVariables&&(l={...this.options.interpolation.defaultVariables,...l}),!o){l={...l};for(const c of i)delete l[c]}return l}static hasDefaultValue(s){const i="defaultValue";for(const o in s)if(Object.prototype.hasOwnProperty.call(s,o)&&i===o.substring(0,i.length)&&s[o]!==void 0)return!0;return!1}}const Ei=r=>r.charAt(0).toUpperCase()+r.slice(1);class ia{constructor(s){this.options=s,this.supportedLngs=this.options.supportedLngs||!1,this.logger=lt.create("languageUtils")}getScriptPartFromCode(s){if(s=Gr(s),!s||s.indexOf("-")<0)return null;const i=s.split("-");return i.length===2||(i.pop(),i[i.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(i.join("-"))}getLanguagePartFromCode(s){if(s=Gr(s),!s||s.indexOf("-")<0)return s;const i=s.split("-");return this.formatLanguageCode(i[0])}formatLanguageCode(s){if(le(s)&&s.indexOf("-")>-1){if(typeof Intl<"u"&&typeof Intl.getCanonicalLocales<"u")try{let l=Intl.getCanonicalLocales(s)[0];if(l&&this.options.lowerCaseLng&&(l=l.toLowerCase()),l)return l}catch{}const i=["hans","hant","latn","cyrl","cans","mong","arab"];let o=s.split("-");return this.options.lowerCaseLng?o=o.map(l=>l.toLowerCase()):o.length===2?(o[0]=o[0].toLowerCase(),o[1]=o[1].toUpperCase(),i.indexOf(o[1].toLowerCase())>-1&&(o[1]=Ei(o[1].toLowerCase()))):o.length===3&&(o[0]=o[0].toLowerCase(),o[1].length===2&&(o[1]=o[1].toUpperCase()),o[0]!=="sgn"&&o[2].length===2&&(o[2]=o[2].toUpperCase()),i.indexOf(o[1].toLowerCase())>-1&&(o[1]=Ei(o[1].toLowerCase())),i.indexOf(o[2].toLowerCase())>-1&&(o[2]=Ei(o[2].toLowerCase()))),o.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?s.toLowerCase():s}isSupportedCode(s){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(s=this.getLanguagePartFromCode(s)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(s)>-1}getBestMatchFromCodes(s){if(!s)return null;let i;return s.forEach(o=>{if(i)return;const l=this.formatLanguageCode(o);(!this.options.supportedLngs||this.isSupportedCode(l))&&(i=l)}),!i&&this.options.supportedLngs&&s.forEach(o=>{if(i)return;const l=this.getLanguagePartFromCode(o);if(this.isSupportedCode(l))return i=l;i=this.options.supportedLngs.find(c=>{if(c===l)return c;if(!(c.indexOf("-")<0&&l.indexOf("-")<0)&&(c.indexOf("-")>0&&l.indexOf("-")<0&&c.substring(0,c.indexOf("-"))===l||c.indexOf(l)===0&&l.length>1))return c})}),i||(i=this.getFallbackCodes(this.options.fallbackLng)[0]),i}getFallbackCodes(s,i){if(!s)return[];if(typeof s=="function"&&(s=s(i)),le(s)&&(s=[s]),Array.isArray(s))return s;if(!i)return s.default||[];let o=s[i];return o||(o=s[this.getScriptPartFromCode(i)]),o||(o=s[this.formatLanguageCode(i)]),o||(o=s[this.getLanguagePartFromCode(i)]),o||(o=s.default),o||[]}toResolveHierarchy(s,i){const o=this.getFallbackCodes(i||this.options.fallbackLng||[],s),l=[],c=f=>{f&&(this.isSupportedCode(f)?l.push(f):this.logger.warn(`rejecting language code not found in supportedLngs: ${f}`))};return le(s)&&(s.indexOf("-")>-1||s.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&c(this.formatLanguageCode(s)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&c(this.getScriptPartFromCode(s)),this.options.load!=="currentOnly"&&c(this.getLanguagePartFromCode(s))):le(s)&&c(this.formatLanguageCode(s)),o.forEach(f=>{l.indexOf(f)<0&&c(this.formatLanguageCode(f))}),l}}let yd=[{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}],vd={1:r=>+(r>1),2:r=>+(r!=1),3:r=>0,4:r=>r%10==1&&r%100!=11?0:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?1:2,5:r=>r==0?0:r==1?1:r==2?2:r%100>=3&&r%100<=10?3:r%100>=11?4:5,6:r=>r==1?0:r>=2&&r<=4?1:2,7:r=>r==1?0:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?1:2,8:r=>r==1?0:r==2?1:r!=8&&r!=11?2:3,9:r=>+(r>=2),10:r=>r==1?0:r==2?1:r<7?2:r<11?3:4,11:r=>r==1||r==11?0:r==2||r==12?1:r>2&&r<20?2:3,12:r=>+(r%10!=1||r%100==11),13:r=>+(r!==0),14:r=>r==1?0:r==2?1:r==3?2:3,15:r=>r%10==1&&r%100!=11?0:r%10>=2&&(r%100<10||r%100>=20)?1:2,16:r=>r%10==1&&r%100!=11?0:r!==0?1:2,17:r=>r==1||r%10==1&&r%100!=11?0:1,18:r=>r==0?0:r==1?1:2,19:r=>r==1?0:r==0||r%100>1&&r%100<11?1:r%100>10&&r%100<20?2:3,20:r=>r==1?0:r==0||r%100>0&&r%100<20?1:2,21:r=>r%100==1?1:r%100==2?2:r%100==3||r%100==4?3:0,22:r=>r==1?0:r==2?1:(r<0||r>10)&&r%10==0?2:3};const wd=["v1","v2","v3"],xd=["v4"],oa={zero:0,one:1,two:2,few:3,many:4,other:5},Sd=()=>{const r={};return yd.forEach(s=>{s.lngs.forEach(i=>{r[i]={numbers:s.nr,plurals:vd[s.fc]}})}),r};class kd{constructor(s){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=s,this.options=i,this.logger=lt.create("pluralResolver"),(!this.options.compatibilityJSON||xd.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=Sd(),this.pluralRulesCache={}}addRule(s,i){this.rules[s]=i}clearCache(){this.pluralRulesCache={}}getRule(s){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi()){const o=Gr(s==="dev"?"en":s),l=i.ordinal?"ordinal":"cardinal",c=JSON.stringify({cleanedCode:o,type:l});if(c in this.pluralRulesCache)return this.pluralRulesCache[c];let f;try{f=new Intl.PluralRules(o,{type:l})}catch{if(!s.match(/-|_/))return;const d=this.languageUtils.getLanguagePartFromCode(s);f=this.getRule(d,i)}return this.pluralRulesCache[c]=f,f}return this.rules[s]||this.rules[this.languageUtils.getLanguagePartFromCode(s)]}needsPlural(s){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const o=this.getRule(s,i);return this.shouldUseIntlApi()?o&&o.resolvedOptions().pluralCategories.length>1:o&&o.numbers.length>1}getPluralFormsOfKey(s,i){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(s,o).map(l=>`${i}${l}`)}getSuffixes(s){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const o=this.getRule(s,i);return o?this.shouldUseIntlApi()?o.resolvedOptions().pluralCategories.sort((l,c)=>oa[l]-oa[c]).map(l=>`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${l}`):o.numbers.map(l=>this.getSuffix(s,l,i)):[]}getSuffix(s,i){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const l=this.getRule(s,o);return l?this.shouldUseIntlApi()?`${this.options.prepend}${o.ordinal?`ordinal${this.options.prepend}`:""}${l.select(i)}`:this.getSuffixRetroCompatible(l,i):(this.logger.warn(`no plural rule found for: ${s}`),"")}getSuffixRetroCompatible(s,i){const o=s.noAbs?s.plurals(i):s.plurals(Math.abs(i));let l=s.numbers[o];this.options.simplifyPluralSuffix&&s.numbers.length===2&&s.numbers[0]===1&&(l===2?l="plural":l===1&&(l=""));const c=()=>this.options.prepend&&l.toString()?this.options.prepend+l.toString():l.toString();return this.options.compatibilityJSON==="v1"?l===1?"":typeof l=="number"?`_plural_${l.toString()}`:c():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&s.numbers.length===2&&s.numbers[0]===1?c():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}shouldUseIntlApi(){return!wd.includes(this.options.compatibilityJSON)}}const la=function(r,s,i){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,c=ud(r,s,i);return!c&&l&&le(i)&&(c=Pi(r,i,o),c===void 0&&(c=Pi(s,i,o))),c},Ti=r=>r.replace(/\$/g,"$$$$");class Cd{constructor(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=lt.create("interpolator"),this.options=s,this.format=s.interpolation&&s.interpolation.format||(i=>i),this.init(s)}init(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};s.interpolation||(s.interpolation={escapeValue:!0});const{escape:i,escapeValue:o,useRawValueToEscape:l,prefix:c,prefixEscaped:f,suffix:p,suffixEscaped:d,formatSeparator:m,unescapeSuffix:v,unescapePrefix:x,nestingPrefix:w,nestingPrefixEscaped:C,nestingSuffix:N,nestingSuffixEscaped:E,nestingOptionsSeparator:_,maxReplaces:D,alwaysFormat:z}=s.interpolation;this.escape=i!==void 0?i:fd,this.escapeValue=o!==void 0?o:!0,this.useRawValueToEscape=l!==void 0?l:!1,this.prefix=c?mn(c):f||"{{",this.suffix=p?mn(p):d||"}}",this.formatSeparator=m||",",this.unescapePrefix=v?"":x||"-",this.unescapeSuffix=this.unescapePrefix?"":v||"",this.nestingPrefix=w?mn(w):C||mn("$t("),this.nestingSuffix=N?mn(N):E||mn(")"),this.nestingOptionsSeparator=_||",",this.maxReplaces=D||1e3,this.alwaysFormat=z!==void 0?z:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const s=(i,o)=>i&&i.source===o?(i.lastIndex=0,i):new RegExp(o,"g");this.regexp=s(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=s(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=s(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(s,i,o,l){let c,f,p;const d=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},m=C=>{if(C.indexOf(this.formatSeparator)<0){const D=la(i,d,C,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(D,void 0,o,{...l,...i,interpolationkey:C}):D}const N=C.split(this.formatSeparator),E=N.shift().trim(),_=N.join(this.formatSeparator).trim();return this.format(la(i,d,E,this.options.keySeparator,this.options.ignoreJSONStructure),_,o,{...l,...i,interpolationkey:E})};this.resetRegExp();const v=l&&l.missingInterpolationHandler||this.options.missingInterpolationHandler,x=l&&l.interpolation&&l.interpolation.skipOnVariables!==void 0?l.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:C=>Ti(C)},{regex:this.regexp,safeValue:C=>this.escapeValue?Ti(this.escape(C)):Ti(C)}].forEach(C=>{for(p=0;c=C.regex.exec(s);){const N=c[1].trim();if(f=m(N),f===void 0)if(typeof v=="function"){const _=v(s,c,l);f=le(_)?_:""}else if(l&&Object.prototype.hasOwnProperty.call(l,N))f="";else if(x){f=c[0];continue}else this.logger.warn(`missed to pass in variable ${N} for interpolating ${s}`),f="";else!le(f)&&!this.useRawValueToEscape&&(f=Zl(f));const E=C.safeValue(f);if(s=s.replace(c[0],E),x?(C.regex.lastIndex+=f.length,C.regex.lastIndex-=c[0].length):C.regex.lastIndex=0,p++,p>=this.maxReplaces)break}}),s}nest(s,i){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},l,c,f;const p=(d,m)=>{const v=this.nestingOptionsSeparator;if(d.indexOf(v)<0)return d;const x=d.split(new RegExp(`${v}[ ]*{`));let w=`{${x[1]}`;d=x[0],w=this.interpolate(w,f);const C=w.match(/'/g),N=w.match(/"/g);(C&&C.length%2===0&&!N||N.length%2!==0)&&(w=w.replace(/'/g,'"'));try{f=JSON.parse(w),m&&(f={...m,...f})}catch(E){return this.logger.warn(`failed parsing options string in nesting for key ${d}`,E),`${d}${v}${w}`}return f.defaultValue&&f.defaultValue.indexOf(this.prefix)>-1&&delete f.defaultValue,d};for(;l=this.nestingRegexp.exec(s);){let d=[];f={...o},f=f.replace&&!le(f.replace)?f.replace:f,f.applyPostProcessor=!1,delete f.defaultValue;let m=!1;if(l[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(l[1])){const v=l[1].split(this.formatSeparator).map(x=>x.trim());l[1]=v.shift(),d=v,m=!0}if(c=i(p.call(this,l[1].trim(),f),f),c&&l[0]===s&&!le(c))return c;le(c)||(c=Zl(c)),c||(this.logger.warn(`missed to resolve ${l[1]} for nesting ${s}`),c=""),m&&(c=d.reduce((v,x)=>this.format(v,x,o.lng,{...o,interpolationkey:l[1].trim()}),c.trim())),s=s.replace(l[0],c),this.regexp.lastIndex=0}return s}}const $d=r=>{let s=r.toLowerCase().trim();const i={};if(r.indexOf("(")>-1){const o=r.split("(");s=o[0].toLowerCase().trim();const l=o[1].substring(0,o[1].length-1);s==="currency"&&l.indexOf(":")<0?i.currency||(i.currency=l.trim()):s==="relativetime"&&l.indexOf(":")<0?i.range||(i.range=l.trim()):l.split(";").forEach(f=>{if(f){const[p,...d]=f.split(":"),m=d.join(":").trim().replace(/^'+|'+$/g,""),v=p.trim();i[v]||(i[v]=m),m==="false"&&(i[v]=!1),m==="true"&&(i[v]=!0),isNaN(m)||(i[v]=parseInt(m,10))}})}return{formatName:s,formatOptions:i}},yn=r=>{const s={};return(i,o,l)=>{let c=l;l&&l.interpolationkey&&l.formatParams&&l.formatParams[l.interpolationkey]&&l[l.interpolationkey]&&(c={...c,[l.interpolationkey]:void 0});const f=o+JSON.stringify(c);let p=s[f];return p||(p=r(Gr(o),l),s[f]=p),p(i)}};class _d{constructor(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=lt.create("formatter"),this.options=s,this.formats={number:yn((i,o)=>{const l=new Intl.NumberFormat(i,{...o});return c=>l.format(c)}),currency:yn((i,o)=>{const l=new Intl.NumberFormat(i,{...o,style:"currency"});return c=>l.format(c)}),datetime:yn((i,o)=>{const l=new Intl.DateTimeFormat(i,{...o});return c=>l.format(c)}),relativetime:yn((i,o)=>{const l=new Intl.RelativeTimeFormat(i,{...o});return c=>l.format(c,o.range||"day")}),list:yn((i,o)=>{const l=new Intl.ListFormat(i,{...o});return c=>l.format(c)})},this.init(s)}init(s){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=i.interpolation.formatSeparator||","}add(s,i){this.formats[s.toLowerCase().trim()]=i}addCached(s,i){this.formats[s.toLowerCase().trim()]=yn(i)}format(s,i,o){let l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const c=i.split(this.formatSeparator);if(c.length>1&&c[0].indexOf("(")>1&&c[0].indexOf(")")<0&&c.find(p=>p.indexOf(")")>-1)){const p=c.findIndex(d=>d.indexOf(")")>-1);c[0]=[c[0],...c.splice(1,p)].join(this.formatSeparator)}return c.reduce((p,d)=>{const{formatName:m,formatOptions:v}=$d(d);if(this.formats[m]){let x=p;try{const w=l&&l.formatParams&&l.formatParams[l.interpolationkey]||{},C=w.locale||w.lng||l.locale||l.lng||o;x=this.formats[m](p,C,{...v,...l,...w})}catch(w){this.logger.warn(w)}return x}else this.logger.warn(`there was no format function for ${m}`);return p},s)}}const Pd=(r,s)=>{r.pending[s]!==void 0&&(delete r.pending[s],r.pendingCount--)};class Ed extends es{constructor(s,i,o){let l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=s,this.store=i,this.services=o,this.languageUtils=o.languageUtils,this.options=l,this.logger=lt.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=l.maxParallelReads||10,this.readingCalls=0,this.maxRetries=l.maxRetries>=0?l.maxRetries:5,this.retryTimeout=l.retryTimeout>=1?l.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(o,l.backend,l)}queueLoad(s,i,o,l){const c={},f={},p={},d={};return s.forEach(m=>{let v=!0;i.forEach(x=>{const w=`${m}|${x}`;!o.reload&&this.store.hasResourceBundle(m,x)?this.state[w]=2:this.state[w]<0||(this.state[w]===1?f[w]===void 0&&(f[w]=!0):(this.state[w]=1,v=!1,f[w]===void 0&&(f[w]=!0),c[w]===void 0&&(c[w]=!0),d[x]===void 0&&(d[x]=!0)))}),v||(p[m]=!0)}),(Object.keys(c).length||Object.keys(f).length)&&this.queue.push({pending:f,pendingCount:Object.keys(f).length,loaded:{},errors:[],callback:l}),{toLoad:Object.keys(c),pending:Object.keys(f),toLoadLanguages:Object.keys(p),toLoadNamespaces:Object.keys(d)}}loaded(s,i,o){const l=s.split("|"),c=l[0],f=l[1];i&&this.emit("failedLoading",c,f,i),!i&&o&&this.store.addResourceBundle(c,f,o,void 0,void 0,{skipCopy:!0}),this.state[s]=i?-1:2,i&&o&&(this.state[s]=0);const p={};this.queue.forEach(d=>{ad(d.loaded,[c],f),Pd(d,s),i&&d.errors.push(i),d.pendingCount===0&&!d.done&&(Object.keys(d.loaded).forEach(m=>{p[m]||(p[m]={});const v=d.loaded[m];v.length&&v.forEach(x=>{p[m][x]===void 0&&(p[m][x]=!0)})}),d.done=!0,d.errors.length?d.callback(d.errors):d.callback())}),this.emit("loaded",p),this.queue=this.queue.filter(d=>!d.done)}read(s,i,o){let l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,c=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,f=arguments.length>5?arguments[5]:void 0;if(!s.length)return f(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:s,ns:i,fcName:o,tried:l,wait:c,callback:f});return}this.readingCalls++;const p=(m,v)=>{if(this.readingCalls--,this.waitingReads.length>0){const x=this.waitingReads.shift();this.read(x.lng,x.ns,x.fcName,x.tried,x.wait,x.callback)}if(m&&v&&l<this.maxRetries){setTimeout(()=>{this.read.call(this,s,i,o,l+1,c*2,f)},c);return}f(m,v)},d=this.backend[o].bind(this.backend);if(d.length===2){try{const m=d(s,i);m&&typeof m.then=="function"?m.then(v=>p(null,v)).catch(p):p(null,m)}catch(m){p(m)}return}return d(s,i,p)}prepareLoading(s,i){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},l=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."),l&&l();le(s)&&(s=this.languageUtils.toResolveHierarchy(s)),le(i)&&(i=[i]);const c=this.queueLoad(s,i,o,l);if(!c.toLoad.length)return c.pending.length||l(),null;c.toLoad.forEach(f=>{this.loadOne(f)})}load(s,i,o){this.prepareLoading(s,i,{},o)}reload(s,i,o){this.prepareLoading(s,i,{reload:!0},o)}loadOne(s){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const o=s.split("|"),l=o[0],c=o[1];this.read(l,c,"read",void 0,void 0,(f,p)=>{f&&this.logger.warn(`${i}loading namespace ${c} for language ${l} failed`,f),!f&&p&&this.logger.log(`${i}loaded namespace ${c} for language ${l}`,p),this.loaded(s,f,p)})}saveMissing(s,i,o,l,c){let f=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},p=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(i)){this.logger.warn(`did not save key "${o}" as the namespace "${i}" 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(!(o==null||o==="")){if(this.backend&&this.backend.create){const d={...f,isUpdate:c},m=this.backend.create.bind(this.backend);if(m.length<6)try{let v;m.length===5?v=m(s,i,o,l,d):v=m(s,i,o,l),v&&typeof v.then=="function"?v.then(x=>p(null,x)).catch(p):p(null,v)}catch(v){p(v)}else m(s,i,o,l,p,d)}!s||!s[0]||this.store.addResource(s[0],i,o,l)}}}const aa=()=>({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:r=>{let s={};if(typeof r[1]=="object"&&(s=r[1]),le(r[1])&&(s.defaultValue=r[1]),le(r[2])&&(s.tDescription=r[2]),typeof r[2]=="object"||typeof r[3]=="object"){const i=r[3]||r[2];Object.keys(i).forEach(o=>{s[o]=i[o]})}return s},interpolation:{escapeValue:!0,format:r=>r,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),ua=r=>(le(r.ns)&&(r.ns=[r.ns]),le(r.fallbackLng)&&(r.fallbackLng=[r.fallbackLng]),le(r.fallbackNS)&&(r.fallbackNS=[r.fallbackNS]),r.supportedLngs&&r.supportedLngs.indexOf("cimode")<0&&(r.supportedLngs=r.supportedLngs.concat(["cimode"])),r),ns=()=>{},Td=r=>{Object.getOwnPropertyNames(Object.getPrototypeOf(r)).forEach(i=>{typeof r[i]=="function"&&(r[i]=r[i].bind(r))})};class Zn extends es{constructor(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if(super(),this.options=ua(s),this.services={},this.logger=lt,this.modules={external:[]},Td(this),i&&!this.isInitialized&&!s.isClone){if(!this.options.initImmediate)return this.init(s,i),this;setTimeout(()=>{this.init(s,i)},0)}}init(){var s=this;let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof i=="function"&&(o=i,i={}),!i.defaultNS&&i.defaultNS!==!1&&i.ns&&(le(i.ns)?i.defaultNS=i.ns:i.ns.indexOf("translation")<0&&(i.defaultNS=i.ns[0]));const l=aa();this.options={...l,...this.options,...ua(i)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...l.interpolation,...this.options.interpolation}),i.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=i.keySeparator),i.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=i.nsSeparator);const c=v=>v?typeof v=="function"?new v:v:null;if(!this.options.isClone){this.modules.logger?lt.init(c(this.modules.logger),this.options):lt.init(null,this.options);let v;this.modules.formatter?v=this.modules.formatter:typeof Intl<"u"&&(v=_d);const x=new ia(this.options);this.store=new na(this.options.resources,this.options);const w=this.services;w.logger=lt,w.resourceStore=this.store,w.languageUtils=x,w.pluralResolver=new kd(x,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),v&&(!this.options.interpolation.format||this.options.interpolation.format===l.interpolation.format)&&(w.formatter=c(v),w.formatter.init(w,this.options),this.options.interpolation.format=w.formatter.format.bind(w.formatter)),w.interpolator=new Cd(this.options),w.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},w.backendConnector=new Ed(c(this.modules.backend),w.resourceStore,w,this.options),w.backendConnector.on("*",function(C){for(var N=arguments.length,E=new Array(N>1?N-1:0),_=1;_<N;_++)E[_-1]=arguments[_];s.emit(C,...E)}),this.modules.languageDetector&&(w.languageDetector=c(this.modules.languageDetector),w.languageDetector.init&&w.languageDetector.init(w,this.options.detection,this.options)),this.modules.i18nFormat&&(w.i18nFormat=c(this.modules.i18nFormat),w.i18nFormat.init&&w.i18nFormat.init(this)),this.translator=new ts(this.services,this.options),this.translator.on("*",function(C){for(var N=arguments.length,E=new Array(N>1?N-1:0),_=1;_<N;_++)E[_-1]=arguments[_];s.emit(C,...E)}),this.modules.external.forEach(C=>{C.init&&C.init(this)})}if(this.format=this.options.interpolation.format,o||(o=ns),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const v=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);v.length>0&&v[0]!=="dev"&&(this.options.lng=v[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(v=>{this[v]=function(){return s.store[v](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(v=>{this[v]=function(){return s.store[v](...arguments),s}});const d=Jn(),m=()=>{const v=(x,w)=>{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),d.resolve(w),o(x,w)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return v(null,this.t.bind(this));this.changeLanguage(this.options.lng,v)};return this.options.resources||!this.options.initImmediate?m():setTimeout(m,0),d}loadResources(s){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ns;const l=le(s)?s:this.language;if(typeof s=="function"&&(o=s),!this.options.resources||this.options.partialBundledLanguages){if(l&&l.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return o();const c=[],f=p=>{if(!p||p==="cimode")return;this.services.languageUtils.toResolveHierarchy(p).forEach(m=>{m!=="cimode"&&c.indexOf(m)<0&&c.push(m)})};l?f(l):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(d=>f(d)),this.options.preload&&this.options.preload.forEach(p=>f(p)),this.services.backendConnector.load(c,this.options.ns,p=>{!p&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),o(p)})}else o(null)}reloadResources(s,i,o){const l=Jn();return typeof s=="function"&&(o=s,s=void 0),typeof i=="function"&&(o=i,i=void 0),s||(s=this.languages),i||(i=this.options.ns),o||(o=ns),this.services.backendConnector.reload(s,i,c=>{l.resolve(),o(c)}),l}use(s){if(!s)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!s.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return s.type==="backend"&&(this.modules.backend=s),(s.type==="logger"||s.log&&s.warn&&s.error)&&(this.modules.logger=s),s.type==="languageDetector"&&(this.modules.languageDetector=s),s.type==="i18nFormat"&&(this.modules.i18nFormat=s),s.type==="postProcessor"&&ra.addPostProcessor(s),s.type==="formatter"&&(this.modules.formatter=s),s.type==="3rdParty"&&this.modules.external.push(s),this}setResolvedLanguage(s){if(!(!s||!this.languages)&&!(["cimode","dev"].indexOf(s)>-1))for(let i=0;i<this.languages.length;i++){const o=this.languages[i];if(!(["cimode","dev"].indexOf(o)>-1)&&this.store.hasLanguageSomeTranslations(o)){this.resolvedLanguage=o;break}}}changeLanguage(s,i){var o=this;this.isLanguageChangingTo=s;const l=Jn();this.emit("languageChanging",s);const c=d=>{this.language=d,this.languages=this.services.languageUtils.toResolveHierarchy(d),this.resolvedLanguage=void 0,this.setResolvedLanguage(d)},f=(d,m)=>{m?(c(m),this.translator.changeLanguage(m),this.isLanguageChangingTo=void 0,this.emit("languageChanged",m),this.logger.log("languageChanged",m)):this.isLanguageChangingTo=void 0,l.resolve(function(){return o.t(...arguments)}),i&&i(d,function(){return o.t(...arguments)})},p=d=>{!s&&!d&&this.services.languageDetector&&(d=[]);const m=le(d)?d:this.services.languageUtils.getBestMatchFromCodes(d);m&&(this.language||c(m),this.translator.language||this.translator.changeLanguage(m),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(m)),this.loadResources(m,v=>{f(v,m)})};return!s&&this.services.languageDetector&&!this.services.languageDetector.async?p(this.services.languageDetector.detect()):!s&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(p):this.services.languageDetector.detect(p):p(s),l}getFixedT(s,i,o){var l=this;const c=function(f,p){let d;if(typeof p!="object"){for(var m=arguments.length,v=new Array(m>2?m-2:0),x=2;x<m;x++)v[x-2]=arguments[x];d=l.options.overloadTranslationOptionHandler([f,p].concat(v))}else d={...p};d.lng=d.lng||c.lng,d.lngs=d.lngs||c.lngs,d.ns=d.ns||c.ns,d.keyPrefix!==""&&(d.keyPrefix=d.keyPrefix||o||c.keyPrefix);const w=l.options.keySeparator||".";let C;return d.keyPrefix&&Array.isArray(f)?C=f.map(N=>`${d.keyPrefix}${w}${N}`):C=d.keyPrefix?`${d.keyPrefix}${w}${f}`:f,l.t(C,d)};return le(s)?c.lng=s:c.lngs=s,c.ns=i,c.keyPrefix=o,c}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(s){this.options.defaultNS=s}hasLoadedNamespace(s){let i=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 o=i.lng||this.resolvedLanguage||this.languages[0],l=this.options?this.options.fallbackLng:!1,c=this.languages[this.languages.length-1];if(o.toLowerCase()==="cimode")return!0;const f=(p,d)=>{const m=this.services.backendConnector.state[`${p}|${d}`];return m===-1||m===0||m===2};if(i.precheck){const p=i.precheck(this,f);if(p!==void 0)return p}return!!(this.hasResourceBundle(o,s)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||f(o,s)&&(!l||f(c,s)))}loadNamespaces(s,i){const o=Jn();return this.options.ns?(le(s)&&(s=[s]),s.forEach(l=>{this.options.ns.indexOf(l)<0&&this.options.ns.push(l)}),this.loadResources(l=>{o.resolve(),i&&i(l)}),o):(i&&i(),Promise.resolve())}loadLanguages(s,i){const o=Jn();le(s)&&(s=[s]);const l=this.options.preload||[],c=s.filter(f=>l.indexOf(f)<0&&this.services.languageUtils.isSupportedCode(f));return c.length?(this.options.preload=l.concat(c),this.loadResources(f=>{o.resolve(),i&&i(f)}),o):(i&&i(),Promise.resolve())}dir(s){if(s||(s=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!s)return"rtl";const i=["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"],o=this.services&&this.services.languageUtils||new ia(aa());return i.indexOf(o.getLanguagePartFromCode(s))>-1||s.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;return new Zn(s,i)}cloneInstance(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ns;const o=s.forkResourceStore;o&&delete s.forkResourceStore;const l={...this.options,...s,isClone:!0},c=new Zn(l);return(s.debug!==void 0||s.prefix!==void 0)&&(c.logger=c.logger.clone(s)),["store","services","language"].forEach(p=>{c[p]=this[p]}),c.services={...this.services},c.services.utils={hasLoadedNamespace:c.hasLoadedNamespace.bind(c)},o&&(c.store=new na(this.store.data,l),c.services.resourceStore=c.store),c.translator=new ts(c.services,l),c.translator.on("*",function(p){for(var d=arguments.length,m=new Array(d>1?d-1:0),v=1;v<d;v++)m[v-1]=arguments[v];c.emit(p,...m)}),c.init(l,i),c.translator.options=l,c.translator.backendConnector.services.utils={hasLoadedNamespace:c.hasLoadedNamespace.bind(c)},c}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Ie=Zn.createInstance();Ie.createInstance=Zn.createInstance,Ie.createInstance,Ie.dir,Ie.init,Ie.loadResources,Ie.reloadResources,Ie.use,Ie.changeLanguage,Ie.getFixedT,Ie.t,Ie.exists,Ie.setDefaultNamespace,Ie.hasLoadedNamespace,Ie.loadNamespaces,Ie.loadLanguages;const ca=[{code:"af",label:"Afrikaans"},{code:"ar",label:"Arabic"},{code:"bg",label:"Bulgarian"},{code:"bn",label:"Bengali"},{code:"bs",label:"Bosnian"},{code:"ca",label:"Catalan"},{code:"cs",label:"Czech"},{code:"da",label:"Danish"},{code:"de",label:"German"},{code:"de-CH",label:"Swiss German"},{code:"el",label:"Greek"},{code:"en",label:"English"},{code:"eo",label:"Esperanto"},{code:"es",label:"Spanish"},{code:"et",label:"Estonian"},{code:"eu",label:"Basque"},{code:"fa",label:"Persian/Farsi"},{code:"fi",label:"Finnish"},{code:"fr",label:"French"},{code:"gd",label:"Gaelic (Scottish)"},{code:"he",label:"Hebrew"},{code:"hi",label:"Hindi"},{code:"hr",label:"Croatian"},{code:"hu",label:"Hungarian"},{code:"id",label:"Indonesian"},{code:"is",label:"Icelandic"},{code:"it",label:"Italian"},{code:"ja",label:"Japanese"},{code:"ko",label:"Korean"},{code:"kz",label:"Kazakh"},{code:"lt",label:"Lithuanian"},{code:"lv",label:"Latvian"},{code:"mk",label:"Macedonian"},{code:"mn",label:"Mongolian"},{code:"ms",label:"Malay"},{code:"nb",label:"Norwegian Bokmål"},{code:"ne",label:"Nepali"},{code:"nl",label:"Dutch"},{code:"nn",label:"Norwegian Nynorsk"},{code:"pa",label:"Punjabi"},{code:"pl",label:"Polish"},{code:"pt",label:"Portuguese"},{code:"pt-BR",label:"Portuguese (Brazil)"},{code:"ro",label:"Romanian"},{code:"ru",label:"Russian"},{code:"si",label:"Sinhala"},{code:"sk",label:"Slovak"},{code:"sl",label:"Slovenian"},{code:"sq",label:"Albanian"},{code:"sr",label:"Serbian"},{code:"sr-Cyrl",label:"Serbian (Cyrillic)"},{code:"sv",label:"Swedish"},{code:"sw",label:"Swahili"},{code:"ta",label:"Tamil"},{code:"th",label:"Thai"},{code:"tr",label:"Turkish"},{code:"uk",label:"Ukrainian"},{code:"ur",label:"Urdu"},{code:"uz",label:"Uzbek"},{code:"vi",label:"Vietnamese"},{code:"zh",label:"Chinese"},{code:"zh-Hant",label:"Traditional Chinese"}],fa=ca.map(r=>r.code);function ha(r){return{...r,...r.default&&typeof r.default=="object"?r.default:{}}}function Nd(r){return function(i,o){return i.reduce((l,c)=>{let f=r(c,o);return f===void 0&&(f=r("en",o)),l[c]={[o]:ha(f||{})},l},{})}}function Ad({generateThemeResources:r,generateResources:s}){return(i="en",o="portal",l={})=>{const c=Ie.createInstance(),f={prefix:"{",suffix:"}"};(o==="theme"||o==="portal")&&(f.escapeValue=!1);let p;return o!=="theme"?p=s(fa,o):p=r(i,l),c.init({lng:i,nsSeparator:!1,keySeparator:!1,returnEmptyString:!1,fallbackLng:{no:["nb","en"],default:["en"]},ns:o,defaultNS:o,interpolation:f,resources:p}),c}}const jd=Object.freeze(Object.defineProperty({__proto__:null,LOCALE_DATA:ca,SUPPORTED_LOCALES:fa,createGenerateResources:Nd,createI18n:Ad,mergeDefaultExport:ha},Symbol.toStringTag,{value:"Module"})),{createI18n:Ld,createGenerateResources:Od,LOCALE_DATA:Rd,SUPPORTED_LOCALES:Id}=jd;function zd(r,s){const i={};for(const[o,l]of Object.entries(r))i[o.match(/\/locales\/([^/]+)\//)[1]]=l;return Md(i,s)}function Md(r,s){const i=Od(c=>r[c]);function o(c){return{[c]:{theme:{}}}}const l=Ld({generateResources:i,generateThemeResources:o});return l.LOCALE_DATA=Rd,l.SUPPORTED_LOCALES=Id,l.generateResources=i,l.namespace=s,l.default=l,l}const da=zd(Object.assign({"../../locales/af/search.json":Gf,"../../locales/ar/search.json":qf,"../../locales/bg/search.json":eh,"../../locales/bn/search.json":th,"../../locales/bs/search.json":nh,"../../locales/ca/search.json":rh,"../../locales/cs/search.json":sh,"../../locales/da/search.json":ih,"../../locales/de-CH/search.json":oh,"../../locales/de/search.json":lh,"../../locales/el/search.json":ah,"../../locales/en/search.json":uh,"../../locales/eo/search.json":ch,"../../locales/es/search.json":fh,"../../locales/et/search.json":hh,"../../locales/eu/search.json":dh,"../../locales/fa/search.json":ph,"../../locales/fi/search.json":gh,"../../locales/fr/search.json":mh,"../../locales/gd/search.json":yh,"../../locales/he/search.json":vh,"../../locales/hi/search.json":wh,"../../locales/hr/search.json":xh,"../../locales/hu/search.json":Sh,"../../locales/id/search.json":kh,"../../locales/is/search.json":Ch,"../../locales/it/search.json":$h,"../../locales/ja/search.json":_h,"../../locales/ko/search.json":Ph,"../../locales/kz/search.json":Eh,"../../locales/lt/search.json":Th,"../../locales/lv/search.json":Nh,"../../locales/mk/search.json":Ah,"../../locales/mn/search.json":jh,"../../locales/ms/search.json":Lh,"../../locales/nb/search.json":Oh,"../../locales/ne/search.json":Rh,"../../locales/nl/search.json":Ih,"../../locales/nn/search.json":zh,"../../locales/pa/search.json":Mh,"../../locales/pl/search.json":Dh,"../../locales/pt-BR/search.json":Fh,"../../locales/pt/search.json":Uh,"../../locales/ro/search.json":bh,"../../locales/ru/search.json":Bh,"../../locales/si/search.json":Vh,"../../locales/sk/search.json":Hh,"../../locales/sl/search.json":Kh,"../../locales/sq/search.json":Wh,"../../locales/sr-Cyrl/search.json":Qh,"../../locales/sr/search.json":Yh,"../../locales/sv/search.json":Jh,"../../locales/sw/search.json":Xh,"../../locales/ta/search.json":Zh,"../../locales/th/search.json":Gh,"../../locales/tr/search.json":qh,"../../locales/uk/search.json":ed,"../../locales/ur/search.json":td,"../../locales/uz/search.json":nd,"../../locales/vi/search.json":rd,"../../locales/zh-Hant/search.json":sd,"../../locales/zh/search.json":id}),"search"),{LOCALE_DATA:p1,SUPPORTED_LOCALES:g1,generateResources:m1}=da;class Dd extends St.Component{constructor(s){super(s);const i=this.props.locale||"en",o=da(i,"search"),l=o.dir()||"ltr",c=new Zf({adminUrl:s.adminUrl,apiKey:s.apiKey,dir:l});this.state={searchIndex:c,showPopup:!1,indexStarted:!1,indexComplete:!1,t:o.t,dir:l,scrollbarWidth:0},this.inputRef=St.createRef()}componentDidMount(){const s=this.getScrollbarWidth();this.setState({scrollbarWidth:s}),this.initSetup()}componentDidUpdate(s,i){if(i.showPopup!==this.state.showPopup)try{this.state.showPopup?(this.bodyScroll=window.document?.body?.style?.overflow,this.bodyMargin=window.getComputedStyle(document.body).getPropertyValue("margin-right"),window.document.body.style.overflow="hidden",this.state.scrollbarWidth&&document.body.scrollHeight>window.innerHeight&&(window.document.body.style.marginRight=`calc(${this.bodyMargin} + ${this.state.scrollbarWidth}px)`)):(window.document.body.style.overflow=this.bodyScroll||"",!this.bodyMargin||this.bodyMargin==="0px"?window.document.body.style.marginRight="":window.document.body.style.marginRight=this.bodyMargin)}catch{}this.state.showPopup!==i?.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)}getScrollbarWidth(){const s=document.createElement("div");s.style.visibility="hidden",s.style.overflow="scroll",document.body.appendChild(s);const i=s.offsetWidth-s.clientWidth;return document.body.removeChild(s),i}setupCustomTriggerButton(){this.clickHandler=s=>{s.preventDefault(),this.setState({showPopup:!0});const i=document.createElement("input");i.style.opacity="0",i.style.position="fixed",i.style.top="0",document.body.appendChild(i),i.focus(),setTimeout(()=>{this.inputRef.current.focus(),document.body.removeChild(i)},150)},this.customTriggerButtons=this.getCustomTriggerButtons(),this.customTriggerButtons.forEach(s=>{s.removeEventListener("click",this.clickHandler),s.addEventListener("click",this.clickHandler)})}getCustomTriggerButtons(){return document.querySelectorAll("[data-ghost-search]")||[]}handleSearchUrl(){const[s]=window.location.hash.substr(1).split("?");(s==="/search"||s==="/search/")&&(this.setState({showPopup:!0}),window.history.replaceState("",document.title,window.location.pathname))}addKeyboardShortcuts(){this.getCustomTriggerButtons()?.length&&(this.handleKeyDown=i=>{if(i.key==="k"&&i.metaKey)return this.setState({showPopup:!0}),i.preventDefault(),i.stopPropagation(),!1},document.addEventListener("keydown",this.handleKeyDown))}render(){return F.jsx(Re.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:(s,i)=>{s==="update"&&this.setState({...this.state,...i})},t:this.state.t,dir:this.state.dir},children:F.jsx(Nf,{})})}}const pa="sodo-search-root";function Fd(){const r=document.createElement("div");r.id=pa,document.body.appendChild(r)}function Ud(){const r=document.querySelector("script[data-sodo-search]");if(r){const s=r.dataset.sodoSearch,i=r.dataset.key,o=r.dataset.styles,l=r.dataset.locale||"en";return{adminUrl:s,apiKey:i,stylesUrl:o,locale:l}}return{}}function bd(){Fd()}function Bd(){const{adminUrl:r,apiKey:s,stylesUrl:i,locale:o}=Ud(),l=(r||window.location.origin)?.replace(/\/+$/,"");bd(),nf.render(F.jsx(St.StrictMode,{children:F.jsx(Dd,{adminUrl:l,apiKey:s,stylesUrl:i,locale:o})}),document.getElementById(pa))}Bd();const Vd=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}))}));
|
|
17
|
+
`,t=this.context.stylesUrl;return t?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(`link`,{rel:`stylesheet`,href:t}),(0,x.jsx)(`style`,{dangerouslySetInnerHTML:{__html:e}}),(0,x.jsx)(`meta`,{name:`viewport`,content:`width=device-width, initial-scale=1, maximum-scale=1`})]}):(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(`style`,{dangerouslySetInnerHTML:{__html:e}}),(0,x.jsx)(`meta`,{name:`viewport`,content:`width=device-width, initial-scale=1, maximum-scale=1`})]})}renderFrameContainer(){let e=O(),t={...e.frame.common};return(0,x.jsx)(`div`,{style:e.modalContainer,className:`gh-root-frame`,children:(0,x.jsxs)(w,{style:t,title:`portal-popup`,head:this.renderFrameStyles(),searchdir:this.context.dir,children:[(0,x.jsx)(`div`,{onClick:e=>this.handlePopupClose(e),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)]`}),(0,x.jsx)(k,{})]})})}render(){let{showPopup:e}=this.context;return e?this.renderFrameContainer():null}},he=o(((e,t)=>{t.exports={}})),I;function L(e,t,n){let r=typeof n,i=typeof e;if(r!==`undefined`){if(i!==`undefined`){if(n){if(i===`function`&&r===i)return function(t){return e(n(t))};if(t=e.constructor,t===n.constructor){if(t===Array)return n.concat(e);if(t===Map){var a=new Map(n);for(var o of e)a.set(o[0],o[1]);return a}if(t===Set){o=new Set(n);for(a of e.values())o.add(a);return o}}}return e}return n}return i===`undefined`?t:e}function ge(e,t){return e===void 0?t:e}function R(){return Object.create(null)}function _e(e){return typeof e==`string`}function ve(e){return typeof e==`object`}function ye(e,t){if(_e(t))e=e[t];else for(let n=0;e&&n<t.length;n++)e=e[t[n]];return e}var be=/[^\p{L}\p{N}]+/u,xe=/(\d{3})/g,Se=/(\D)(\d{3})/g,Ce=/(\d{3})(\D)/g,we=/[\u0300-\u036f]/g;function Te(e={}){if(!this||this.constructor!==Te)return new Te(...arguments);if(arguments.length)for(e=0;e<arguments.length;e++)this.assign(arguments[e]);else this.assign(e)}I=Te.prototype,I.assign=function(e){this.normalize=L(e.normalize,!0,this.normalize);let t=e.include,n=t||e.exclude||e.split,r;if(n||n===``){if(typeof n==`object`&&n.constructor!==RegExp){let e=``;r=!t,t||(e+=`\\p{Z}`),n.letter&&(e+=`\\p{L}`),n.number&&(e+=`\\p{N}`,r=!!t),n.symbol&&(e+=`\\p{S}`),n.punctuation&&(e+=`\\p{P}`),n.control&&(e+=`\\p{C}`),(n=n.char)&&(e+=typeof n==`object`?n.join(``):n);try{this.split=RegExp(`[`+(t?`^`:``)+e+`]+`,`u`)}catch{this.split=/\s+/}}else this.split=n,r=n===!1||`a1a`.split(n).length<2;this.numeric=L(e.numeric,r)}else{try{this.split=L(this.split,be)}catch{this.split=/\s+/}this.numeric=L(e.numeric,L(this.numeric,!0))}if(this.prepare=L(e.prepare,null,this.prepare),this.finalize=L(e.finalize,null,this.finalize),n=e.filter,this.filter=typeof n==`function`?n:L(n&&new Set(n),null,this.filter),this.dedupe=L(e.dedupe,!0,this.dedupe),this.matcher=L((n=e.matcher)&&new Map(n),null,this.matcher),this.mapper=L((n=e.mapper)&&new Map(n),null,this.mapper),this.stemmer=L((n=e.stemmer)&&new Map(n),null,this.stemmer),this.replacer=L(e.replacer,null,this.replacer),this.minlength=L(e.minlength,1,this.minlength),this.maxlength=L(e.maxlength,1024,this.maxlength),this.rtl=L(e.rtl,!1,this.rtl),(this.cache=n=L(e.cache,!0,this.cache))&&(this.F=null,this.L=typeof n==`number`?n:2e5,this.B=new Map,this.D=new Map,this.I=this.H=128),this.h=``,this.J=null,this.A=``,this.K=null,this.matcher)for(let e of this.matcher.keys())this.h+=(this.h?`|`:``)+e;if(this.stemmer)for(let e of this.stemmer.keys())this.A+=(this.A?`|`:``)+e;return this},I.addStemmer=function(e,t){return this.stemmer||=new Map,this.stemmer.set(e,t),this.A+=(this.A?`|`:``)+e,this.K=null,this.cache&&Ee(this),this},I.addFilter=function(e){return typeof e==`function`?this.filter=e:(this.filter||=new Set,this.filter.add(e)),this.cache&&Ee(this),this},I.addMapper=function(e,t){return typeof e==`object`?this.addReplacer(e,t):e.length>1?this.addMatcher(e,t):(this.mapper||=new Map,this.mapper.set(e,t),this.cache&&Ee(this),this)},I.addMatcher=function(e,t){return typeof e==`object`?this.addReplacer(e,t):e.length<2&&(this.dedupe||this.mapper)?this.addMapper(e,t):(this.matcher||=new Map,this.matcher.set(e,t),this.h+=(this.h?`|`:``)+e,this.J=null,this.cache&&Ee(this),this)},I.addReplacer=function(e,t){return typeof e==`string`?this.addMatcher(e,t):(this.replacer||=[],this.replacer.push(e,t),this.cache&&Ee(this),this)},I.encode=function(e,t){if(this.cache&&e.length<=this.H)if(this.F){if(this.B.has(e))return this.B.get(e)}else this.F=setTimeout(Ee,50,this);this.normalize&&(e=typeof this.normalize==`function`?this.normalize(e):we?e.normalize(`NFKD`).replace(we,``).toLowerCase():e.toLowerCase()),this.prepare&&(e=this.prepare(e)),this.numeric&&e.length>3&&(e=e.replace(Se,`$1 $2`).replace(Ce,`$1 $2`).replace(xe,`$1 `));let n=!(this.dedupe||this.mapper||this.filter||this.matcher||this.stemmer||this.replacer),r=[],i=R(),a,o,s=this.split||this.split===``?e.split(this.split):[e];for(let e=0,l,u;e<s.length;e++)if((l=u=s[e])&&!(l.length<this.minlength||l.length>this.maxlength)){if(t){if(i[l])continue;i[l]=1}else{if(a===l)continue;a=l}if(n)r.push(l);else if(!this.filter||(typeof this.filter==`function`?this.filter(l):!this.filter.has(l))){if(this.cache&&l.length<=this.I)if(this.F){var c=this.D.get(l);if(c||c===``){c&&r.push(c);continue}}else this.F=setTimeout(Ee,50,this);if(this.stemmer){this.K||=RegExp(`(?!^)(`+this.A+`)$`);let e;for(;e!==l&&l.length>2;)e=l,l=l.replace(this.K,e=>this.stemmer.get(e))}if(l&&(this.mapper||this.dedupe&&l.length>1)){c=``;for(let e=0,t=``,n,r;e<l.length;e++)n=l.charAt(e),n===t&&this.dedupe||((r=this.mapper&&this.mapper.get(n))||r===``?r===t&&this.dedupe||!(t=r)||(c+=r):c+=t=n);l=c}if(this.matcher&&l.length>1&&(this.J||=RegExp(`(`+this.h+`)`,`g`),l=l.replace(this.J,e=>this.matcher.get(e))),l&&this.replacer)for(c=0;l&&c<this.replacer.length;c+=2)l=l.replace(this.replacer[c],this.replacer[c+1]);if(this.cache&&u.length<=this.I&&(this.D.set(u,l),this.D.size>this.L&&(this.D.clear(),this.I=this.I/1.1|0)),l){if(l!==u)if(t){if(i[l])continue;i[l]=1}else{if(o===l)continue;o=l}r.push(l)}}}return this.finalize&&(r=this.finalize(r)||r),this.cache&&e.length<=this.H&&(this.B.set(e,r),this.B.size>this.L&&(this.B.clear(),this.H=this.H/1.1|0)),r};function Ee(e){e.F=null,e.B.clear(),e.D.clear()}function De(e,t,n){n||(t||typeof e!=`object`?typeof t==`object`&&(n=t,t=0):n=e),n&&(e=n.query||e,t=n.limit||t);let r=``+(t||0);n&&(r+=(n.offset||0)+!!n.context+!!n.suggest+(n.resolve!==!1)+(n.resolution||this.resolution)+(n.boost||0)),e=(``+e).toLowerCase(),this.cache||=new Oe;let i=this.cache.get(e+r);if(!i){let a=n&&n.cache;a&&(n.cache=!1),i=this.search(e,t,n),a&&(n.cache=a),this.cache.set(e+r,i)}return i}function Oe(e){this.limit=e&&e!==!0?e:1e3,this.cache=new Map,this.h=``}Oe.prototype.set=function(e,t){this.cache.set(this.h=e,t),this.cache.size>this.limit&&this.cache.delete(this.cache.keys().next().value)},Oe.prototype.get=function(e){let t=this.cache.get(e);return t&&this.h!==e&&(this.cache.delete(e),this.cache.set(this.h=e,t)),t},Oe.prototype.remove=function(e){for(let t of this.cache){let n=t[0];t[1].includes(e)&&this.cache.delete(n)}},Oe.prototype.clear=function(){this.cache.clear(),this.h=``};var ke={normalize:!1,numeric:!1,dedupe:!1},Ae={},je=new Map([[`b`,`p`],[`v`,`f`],[`w`,`f`],[`z`,`s`],[`x`,`s`],[`d`,`t`],[`n`,`m`],[`c`,`k`],[`g`,`k`],[`j`,`k`],[`q`,`k`],[`i`,`e`],[`y`,`e`],[`u`,`o`]]),Me=new Map([[`ae`,`a`],[`oe`,`o`],[`sh`,`s`],[`kh`,`k`],[`th`,`t`],[`ph`,`f`],[`pf`,`f`]]),Ne=[/([^aeo])h(.)/g,`$1$2`,/([aeo])h([^aeo]|$)/g,`$1$2`,/(.)\1+/g,`$1`],Pe={a:``,e:``,i:``,o:``,u:``,y:``,b:1,f:1,p:1,v:1,c:2,g:2,j:2,k:2,q:2,s:2,x:2,z:2,ß:2,d:3,t:3,l:4,m:5,n:5,r:6},Fe={Exact:ke,Default:Ae,Normalize:Ae,LatinBalance:{mapper:je},LatinAdvanced:{mapper:je,matcher:Me,replacer:Ne},LatinExtra:{mapper:je,replacer:Ne.concat([/(?!^)[aeo]/g,``]),matcher:Me},LatinSoundex:{dedupe:!1,include:{letter:!0},finalize:function(e){for(let n=0;n<e.length;n++){var t=e[n];let r=t.charAt(0),i=Pe[r];for(let e=1,n;e<t.length&&(n=t.charAt(e),n===`h`||n===`w`||!(n=Pe[n])||n===i||(r+=n,i=n,r.length!==4));e++);e[n]=r}}},CJK:{split:``},LatinExact:ke,LatinDefault:Ae,LatinSimple:Ae};function Ie(e,t,n,r){let i=[];for(let a=0,o;a<e.index.length;a++)if(o=e.index[a],t>=o.length)t-=o.length;else{t=o[r?`splice`:`slice`](t,n);let a=t.length;if(a&&(i=i.length?i.concat(t):t,n-=a,r&&(e.length-=a),!n))break;t=0}return i}function Le(e){if(!this||this.constructor!==Le)return new Le(e);this.index=e?[e]:[],this.length=e?e.length:0;let t=this;return new Proxy([],{get(e,n){if(n===`length`)return t.length;if(n===`push`)return function(e){t.index[t.index.length-1].push(e),t.length++};if(n===`pop`)return function(){if(t.length)return t.length--,t.index[t.index.length-1].pop()};if(n===`indexOf`)return function(e){let n=0;for(let r=0,i,a;r<t.index.length;r++){if(i=t.index[r],a=i.indexOf(e),a>=0)return n+a;n+=i.length}return-1};if(n===`includes`)return function(e){for(let n=0;n<t.index.length;n++)if(t.index[n].includes(e))return!0;return!1};if(n===`slice`)return function(e,n){return Ie(t,e||0,n||t.length,!1)};if(n===`splice`)return function(e,n){return Ie(t,e||0,n||t.length,!0)};if(n===`constructor`)return Array;if(typeof n!=`symbol`)return(e=t.index[n/2**31|0])&&e[n]},set(e,n,r){return e=n/2**31|0,(t.index[e]||(t.index[e]=[]))[n]=r,t.length++,!0}})}Le.prototype.clear=function(){this.index.length=0},Le.prototype.push=function(){};function z(e=8){if(!this||this.constructor!==z)return new z(e);this.index=R(),this.h=[],this.size=0,e>32?(this.B=Be,this.A=BigInt(e)):(this.B=ze,this.A=e)}z.prototype.get=function(e){let t=this.index[this.B(e)];return t&&t.get(e)},z.prototype.set=function(e,t){var n=this.B(e);let r=this.index[n];r?(n=r.size,r.set(e,t),(n-=r.size)&&this.size++):(this.index[n]=r=new Map([[e,t]]),this.h.push(r),this.size++)};function Re(e=8){if(!this||this.constructor!==Re)return new Re(e);this.index=R(),this.h=[],this.size=0,e>32?(this.B=Be,this.A=BigInt(e)):(this.B=ze,this.A=e)}Re.prototype.add=function(e){var t=this.B(e);let n=this.index[t];n?(t=n.size,n.add(e),(t-=n.size)&&this.size++):(this.index[t]=n=new Set([e]),this.h.push(n),this.size++)},I=z.prototype,I.has=Re.prototype.has=function(e){let t=this.index[this.B(e)];return t&&t.has(e)},I.delete=Re.prototype.delete=function(e){let t=this.index[this.B(e)];t&&t.delete(e)&&this.size--},I.clear=Re.prototype.clear=function(){this.index=R(),this.h=[],this.size=0},I.values=Re.prototype.values=function*(){for(let e=0;e<this.h.length;e++)for(let t of this.h[e].values())yield t},I.keys=Re.prototype.keys=function*(){for(let e=0;e<this.h.length;e++)for(let t of this.h[e].keys())yield t},I.entries=Re.prototype.entries=function*(){for(let e=0;e<this.h.length;e++)for(let t of this.h[e].entries())yield t};function ze(e){let t=2**this.A-1;if(typeof e==`number`)return e&t;let n=0,r=this.A+1;for(let i=0;i<e.length;i++)n=(n*r^e.charCodeAt(i))&t;return this.A===32?n+2**31:n}function Be(e){let t=BigInt(2)**this.A-BigInt(1);var n=typeof e;if(n===`bigint`)return e&t;if(n===`number`)return BigInt(e)&t;n=BigInt(0);let r=this.A+BigInt(1);for(let i=0;i<e.length;i++)n=(n*r^BigInt(e.charCodeAt(i)))&t;return n}var Ve,He;async function Ue(e){e=e.data;var t=e.task;let n=e.id,r=e.args;switch(t){case`init`:He=e.options||{},(t=e.factory)?(Function(`return `+t)()(self),Ve=new self.FlexSearch.Index(He),delete self.FlexSearch):Ve=new Rt(He),postMessage({id:n});break;default:let i;t===`export`&&(r[1]?(r[0]=He.export,r[2]=0,r[3]=1):r=null),t===`import`?r[0]&&(e=await He.import.call(Ve,r[0]),Ve.import(r[0],e)):((i=r&&Ve[t].apply(Ve,r))&&i.then&&(i=await i),i&&i.await&&(i=await i.await),t===`search`&&i.result&&(i=i.result)),postMessage(t===`search`?{id:n,msg:i}:{id:n})}}function We(e){Ye.call(e,`add`),Ye.call(e,`append`),Ye.call(e,`search`),Ye.call(e,`update`),Ye.call(e,`remove`),Ye.call(e,`searchCache`)}var Ge,Ke,qe;function Je(){Ge=qe=0}function Ye(e){this[e+`Async`]=function(){let t=arguments;var n=t[t.length-1];let r;if(typeof n==`function`&&(r=n,delete t[t.length-1]),Ge?qe||=Date.now()-Ke>=this.priority*this.priority*3:(Ge=setTimeout(Je,0),Ke=Date.now()),qe){let n=this;return new Promise(r=>{setTimeout(function(){r(n[e+`Async`].apply(n,t))},0)})}let i=this[e].apply(this,t);return n=i.then?i:new Promise(e=>e(i)),r&&n.then(r),n}}var Xe=0;function Ze(e={},t){function n(n){function o(e){e=e.data||e;let t=e.id,n=t&&a.h[t];n&&(n(e.msg),delete a.h[t])}if(this.worker=n,this.h=R(),this.worker)return i?this.worker.on(`message`,o):this.worker.onmessage=o,e.config?new Promise(function(t){Xe>1e9&&(Xe=0),a.h[++Xe]=function(){t(a)},a.worker.postMessage({id:Xe,task:`init`,factory:r,options:e})}):(this.priority=e.priority||4,this.encoder=t||null,this.worker.postMessage({task:`init`,factory:r,options:e}),this)}if(!this||this.constructor!==Ze)return new Ze(e);let r=typeof self<`u`?self._factory:typeof window<`u`?window._factory:null;r&&=r.toString();let i=typeof window>`u`,a=this,o=$e(r,i,e.worker);return o.then?o.then(function(e){return n.call(a,e)}):n.call(this,o)}Qe(`add`),Qe(`append`),Qe(`search`),Qe(`update`),Qe(`remove`),Qe(`clear`),Qe(`export`),Qe(`import`),Ze.prototype.searchCache=De,We(Ze.prototype);function Qe(e){Ze.prototype[e]=function(){let t=this,n=[].slice.call(arguments);var r=n[n.length-1];let i;return typeof r==`function`&&(i=r,n.pop()),r=new Promise(function(r){e===`export`&&typeof n[0]==`function`&&(n[0]=null),Xe>1e9&&(Xe=0),t.h[++Xe]=r,t.worker.postMessage({task:e,id:Xe,args:n})}),i?(r.then(i),this):r}}function $e(e,t,n){return t?typeof module<`u`?new(he()).Worker(__dirname+`/worker/node.js`):Promise.resolve().then(()=>l(he(),1)).then(function(e){return new e.Worker({}.dirname+`/node/node.mjs`)}):e?new window.Worker(URL.createObjectURL(new Blob([`onmessage=`+Ue.toString()],{type:`text/javascript`}))):new window.Worker(typeof n==`string`?n:{}.url.replace(`/worker.js`,`/worker/worker.js`).replace(`flexsearch.bundle.module.min.js`,`module/worker/worker.js`).replace(`flexsearch.bundle.module.min.mjs`,`module/worker/worker.js`),{type:`module`})}_t.prototype.add=function(e,t,n){if(ve(e)&&(t=e,e=ye(t,this.key)),t&&(e||e===0)){if(!n&&this.reg.has(e))return this.update(e,t);for(let a=0,o;a<this.field.length;a++){o=this.B[a];var r=this.index.get(this.field[a]);if(typeof o==`function`){var i=o(t);i&&r.add(e,i,n,!0)}else i=o.G,(!i||i(t))&&(o.constructor===String?o=[``+o]:_e(o)&&(o=[o]),tt(t,o,this.D,0,r,e,o[0],n))}if(this.tag)for(r=0;r<this.A.length;r++){var a=this.A[r];i=this.tag.get(this.F[r]);let s=R();if(typeof a==`function`){if(a=a(t),!a)continue}else{var o=a.G;if(o&&!o(t))continue;a.constructor===String&&(a=``+a),a=ye(t,a)}if(i&&a){_e(a)&&(a=[a]);for(let t=0,r,c;t<a.length;t++)if(r=a[t],!s[r]&&(s[r]=1,(o=i.get(r))?c=o:i.set(r,c=[]),!n||!c.includes(e))){if(c.length===2**31-1){if(o=new Le(c),this.fastupdate)for(let e of this.reg.values())e.includes(c)&&(e[e.indexOf(c)]=o);i.set(r,c=o)}c.push(e),this.fastupdate&&((o=this.reg.get(e))?o.push(c):this.reg.set(e,[c]))}}}if(this.store&&(!n||!this.store.has(e))){let r;if(this.h){r=R();for(let e=0,i;e<this.h.length;e++){if(i=this.h[e],(n=i.G)&&!n(t))continue;let a;if(typeof i==`function`){if(a=i(t),!a)continue;i=[i.O]}else if(_e(i)||i.constructor===String){r[i]=t[i];continue}et(t,r,i,0,i[0],a)}}this.store.set(e,r||t)}this.worker&&(this.fastupdate||this.reg.add(e))}return this};function et(e,t,n,r,i,a){if(e=e[i],r===n.length-1)t[i]=a||e;else if(e)if(e.constructor===Array)for(t=t[i]=Array(e.length),i=0;i<e.length;i++)et(e,t,n,r,i);else t=t[i]||(t[i]=R()),i=n[++r],et(e,t,n,r,i)}function tt(e,t,n,r,i,a,o,s){if(e=e[o])if(r===t.length-1){if(e.constructor===Array){if(n[r]){for(t=0;t<e.length;t++)i.add(a,e[t],!0,!0);return}e=e.join(` `)}i.add(a,e,s,!0)}else if(e.constructor===Array)for(o=0;o<e.length;o++)tt(e,t,n,r,i,a,o,s);else o=t[++r],tt(e,t,n,r,i,a,o,s)}function nt(e,t,n,r){if(!e.length)return e;if(e.length===1)return e=e[0],e=n||e.length>t?e.slice(n,n+t):e,r?gt.call(this,e):e;let i=[];for(let a=0,o,s;a<e.length;a++)if((o=e[a])&&(s=o.length)){if(n){if(n>=s){n-=s;continue}o=o.slice(n,n+t),s=o.length,n=0}if(s>t&&(o=o.slice(0,t),s=t),!i.length&&s>=t)return r?gt.call(this,o):o;if(i.push(o),t-=s,!t)break}return i=i.length>1?[].concat.apply([],i):i[0],r?gt.call(this,i):i}function rt(e,t,n,r){var i=r[0];if(i[0]&&i[0].query)return e[t].apply(e,i);if(!(t!==`and`&&t!==`not`||e.result.length||e.await||i.suggest))return r.length>1&&(i=r[r.length-1]),(r=i.resolve)?e.await||e.result:e;let a=[],o=0,s=0,c,l,u,d,f;for(t=0;t<r.length;t++)if(i=r[t]){var p=void 0;if(i.constructor===B)p=i.await||i.result;else if(i.then||i.constructor===Array)p=i;else{o=i.limit||0,s=i.offset||0,u=i.suggest,l=i.resolve,c=((d=i.highlight||e.highlight)||i.enrich)&&l,p=i.queue;let n=i.async||p,r=i.index,m=i.query;if(r?e.index||=r:r=e.index,m||i.tag){let o=i.field||i.pluck;if(o&&(!m||e.query&&!d||(e.query=m,e.field=o,e.highlight=d),r=r.index.get(o)),p&&(f||e.await)){f=1;let o,s=e.C.length,c=new Promise(function(e){o=e});(function(t,r){c.h=function(){r.index=null,r.resolve=!1;let i=n?t.searchAsync(r):t.search(r);return i.then?i.then(function(t){return e.C[s]=t=t.result||t,o(t),t}):(i=i.result||i,o(i),i)}})(r,Object.assign({},i)),e.C.push(c),a[t]=c;continue}else i.resolve=!1,i.index=null,p=n?r.searchAsync(i):r.search(i),i.resolve=l,i.index=r}else if(i.and)p=it(i,`and`,r);else if(i.or)p=it(i,`or`,r);else if(i.not)p=it(i,`not`,r);else if(i.xor)p=it(i,`xor`,r);else continue}p.await?(f=1,p=p.await):p.then?(f=1,p=p.then(function(e){return e.result||e})):p=p.result||p,a[t]=p}if(f&&!e.await&&(e.await=new Promise(function(t){e.return=t})),f){let t=Promise.all(a).then(function(r){for(let i=0;i<e.C.length;i++)if(e.C[i]===t){e.C[i]=function(){return n.call(e,r,o,s,c,l,u,d)};break}ut(e)});e.C.push(t)}else if(e.await)e.C.push(function(){return n.call(e,a,o,s,c,l,u,d)});else return n.call(e,a,o,s,c,l,u,d);return l?e.await||e.result:e}function it(e,t,n){e=e[t];let r=e[0]||e;return r.index||=n,n=new B(r),e.length>1&&(n=n[t].apply(n,e.slice(1))),n}B.prototype.or=function(){return rt(this,`or`,at,arguments)};function at(e,t,n,r,i,a,o){return e.length&&(this.result.length&&e.push(this.result),e.length<2?this.result=e[0]:(this.result=ft(e,t,n,!1,this.h),n=0)),i&&(this.await=null),i?this.resolve(t,n,r,o):this}B.prototype.and=function(){return rt(this,`and`,ot,arguments)};function ot(e,t,n,r,i,a,o){if(!a&&!this.result.length)return i?this.result:this;let s;if(e.length)if(this.result.length&&e.unshift(this.result),e.length<2)this.result=e[0];else{let r=0;for(let t=0,n,i;t<e.length;t++)if((n=e[t])&&(i=n.length))r<i&&(r=i);else if(!a){r=0;break}r?(this.result=dt(e,r,t,n,a,this.h,i),s=!0):this.result=[]}else a||(this.result=e);return i&&(this.await=null),i?this.resolve(t,n,r,o,s):this}B.prototype.xor=function(){return rt(this,`xor`,st,arguments)};function st(e,t,n,r,i,a,o){if(e.length)if(this.result.length&&e.unshift(this.result),e.length<2)this.result=e[0];else{a:{a=n;var s=this.h;let r=[],o=R(),c=0;for(let t=0,n;t<e.length;t++)if(n=e[t]){c<n.length&&(c=n.length);for(let e=0,t;e<n.length;e++)if(t=n[e])for(let e=0,n;e<t.length;e++)n=t[e],o[n]=o[n]?2:1}for(let n=0,l,u=0;n<c;n++)for(let c=0,d;c<e.length;c++)if((d=e[c])&&(l=d[n])){for(let d=0,f;d<l.length;d++)if(f=l[d],o[f]===1)if(a)a--;else if(i){if(r.push(f),r.length===t){e=r;break a}}else{let i=n+(c?s:0);if(r[i]||(r[i]=[]),r[i].push(f),++u===t){e=r;break a}}}e=r}this.result=e,s=!0}else a||(this.result=e);return i&&(this.await=null),i?this.resolve(t,n,r,o,s):this}B.prototype.not=function(){return rt(this,`not`,ct,arguments)};function ct(e,t,n,r,i,a,o){if(!a&&!this.result.length)return i?this.result:this;if(e.length&&this.result.length){a:{a=n;var s=[];e=new Set(e.flat().flat());for(let n=0,r,o=0;n<this.result.length;n++)if(r=this.result[n]){for(let c=0,l;c<r.length;c++)if(l=r[c],!e.has(l)){if(a)a--;else if(i){if(s.push(l),s.length===t){e=s;break a}}else if(s[n]||(s[n]=[]),s[n].push(l),++o===t){e=s;break a}}}e=s}this.result=e,s=!0}return i&&(this.await=null),i?this.resolve(t,n,r,o,s):this}function lt(e,t,n,r,i){let a,o,s;typeof i==`string`?(a=i,i=``):a=i.template,o=a.indexOf(`$1`),s=a.substring(o+2),o=a.substring(0,o);let c=i&&i.boundary,l=!i||i.clip!==!1,u=i&&i.merge&&s&&o&&RegExp(s+` `+o,`g`);i&&=i.ellipsis;var d=0;if(typeof i==`object`){var f=i.template;d=f.length-2,i=i.pattern}typeof i!=`string`&&(i=i===!1?``:`...`),d&&(i=f.replace(`$1`,i)),f=i.length-d;let p,m;typeof c==`object`&&(p=c.before,p===0&&(p=-1),m=c.after,m===0&&(m=-1),c=c.total||9e5),d=new Map;for(let N=0,P,ee,te;N<t.length;N++){let ne;if(r)ne=t,te=r;else{var h=t[N];if(te=h.field,!te)continue;ne=h.result}ee=n.get(te),P=ee.encoder,h=d.get(P),typeof h!=`string`&&(h=P.encode(e),d.set(P,h));for(let e=0;e<ne.length;e++){var g=ne[e].doc;if(!g||(g=ye(g,te),!g))continue;var _=g.trim().split(/\s+/);if(!_.length)continue;g=``;var v=[];let t=[];for(var y=-1,b=-1,x=0,S=0;S<_.length;S++){var C=_[S],w=P.encode(C);w=w.length>1?w.join(` `):w[0];let e;if(w&&C){for(var T=C.length,E=(P.split?C.replace(P.split,``):C).length-w.length,D=``,O=0,k=0;k<h.length;k++){var A=h[k];if(A){var j=A.length;j+=E<0?0:E,O&&j<=O||(A=w.indexOf(A),A>-1&&(D=(A?C.substring(0,A):``)+o+C.substring(A,A+j)+s+(A+j<T?C.substring(A+j):``),O=j,e=!0))}}D&&(c&&(y<0&&(y=g.length+(g?1:0)),b=g.length+(g?1:0)+D.length,x+=T,t.push(v.length),v.push({match:D})),g+=(g?` `:``)+D)}if(!e)C=_[S],g+=(g?` `:``)+C,c&&v.push({text:C});else if(c&&x>=c)break}if(x=t.length*(a.length-2),p||m||c&&g.length-x>c)if(x=c+x-f*2,S=b-y,p>0&&(S+=p),m>0&&(S+=m),S<=x)_=p?y-(p>0?p:0):y-((x-S)/2|0),v=m?b+(m>0?m:0):_+x,l||(_>0&&g.charAt(_)!==` `&&g.charAt(_-1)!==` `&&(_=g.indexOf(` `,_),_<0&&(_=0)),v<g.length&&g.charAt(v-1)!==` `&&g.charAt(v)!==` `&&(v=g.lastIndexOf(` `,v),v<b?v=b:++v)),g=(_?i:``)+g.substring(_,v)+(v<g.length?i:``);else{for(b=[],y={},x={},S={},C={},w={},D=E=T=0,k=O=1;;){var M=void 0;for(let e=0,n;e<t.length;e++){if(n=t[e],D)if(E!==D){if(S[e+1])continue;if(n+=D,y[n]){T-=f,x[e+1]=1,S[e+1]=1;continue}if(n>=v.length-1){if(n>=v.length){S[e+1]=1,n>=_.length&&(x[e+1]=1);continue}T-=f}if(g=v[n].text,j=m&&w[e])if(j>0){if(g.length>j)if(S[e+1]=1,l)g=g.substring(0,j);else continue;(j-=g.length)||(j=-1),w[e]=j}else{S[e+1]=1;continue}if(T+g.length+1<=c)g=` `+g,b[e]+=g;else if(l)M=c-T-1,M>0&&(g=` `+g.substring(0,M),b[e]+=g),S[e+1]=1;else{S[e+1]=1;continue}}else{if(S[e])continue;if(n-=E,y[n]){T-=f,S[e]=1,x[e]=1;continue}if(n<=0){if(n<0){S[e]=1,x[e]=1;continue}T-=f}if(g=v[n].text,j=p&&C[e])if(j>0){if(g.length>j)if(S[e]=1,l)g=g.substring(g.length-j);else continue;(j-=g.length)||(j=-1),C[e]=j}else{S[e]=1;continue}if(T+g.length+1<=c)g+=` `,b[e]=g+b[e];else if(l)M=g.length+1-(c-T),M>=0&&M<g.length&&(g=g.substring(M)+` `,b[e]=g+b[e]),S[e]=1;else{S[e]=1;continue}}else{g=v[n].match,p&&(C[e]=p),m&&(w[e]=m),e&&T++;let t;if(n?!e&&f&&(T+=f):(x[e]=1,S[e]=1),n>=_.length-1||n<v.length-1&&v[n+1].match?t=1:f&&(T+=f),T-=a.length-2,!e||T+g.length<=c)b[e]=g;else{M=O=k=x[e]=0;break}t&&(x[e+1]=1,S[e+1]=1)}T+=g.length,M=y[n]=1}if(M)E===D?D++:E++;else{if(E===D?O=0:k=0,!O&&!k)break;O?(E++,D=E):D++}}g=``;for(let e=0,t;e<b.length;e++)t=(x[e]?e?` `:``:(e&&!i?` `:``)+i)+b[e],g+=t;i&&!x[b.length]&&(g+=i)}u&&(g=g.replace(u,` `)),ne[e].highlight=g}if(r)break}return t}function B(e,t){if(!this||this.constructor!==B)return new B(e,t);let n=0,r,i,a,o,s,c;if(e&&e.index){let r=e;if(t=r.index,n=r.boost||0,i=r.query){a=r.field||r.pluck,o=r.highlight;let n=r.resolve;e=r.async||r.queue,r.resolve=!1,r.index=null,e=e?t.searchAsync(r):t.search(r),r.resolve=n,r.index=t,e=e.result||e}else e=[]}if(e&&e.then){let t=this;e=e.then(function(e){t.C[0]=t.result=e.result||e,ut(t)}),r=[e],e=[],s=new Promise(function(e){c=e})}this.index=t||null,this.result=e||[],this.h=n,this.C=r||[],this.await=s||null,this.return=c||null,this.highlight=o||null,this.query=i||``,this.field=a||``}I=B.prototype,I.limit=function(e){if(this.await){let t=this;this.C.push(function(){return t.limit(e).result})}else if(this.result.length){let t=[];for(let n=0,r;n<this.result.length;n++)if(r=this.result[n])if(r.length<=e){if(t[n]=r,e-=r.length,!e)break}else{t[n]=r.slice(0,e);break}this.result=t}return this},I.offset=function(e){if(this.await){let t=this;this.C.push(function(){return t.offset(e).result})}else if(this.result.length){let t=[];for(let n=0,r;n<this.result.length;n++)(r=this.result[n])&&(r.length<=e?e-=r.length:(t[n]=r.slice(e),e=0));this.result=t}return this},I.boost=function(e){if(this.await){let t=this;this.C.push(function(){return t.boost(e).result})}else this.h+=e;return this};function ut(e,t){let n=e.result;var r=e.await;e.await=null;for(let t=0,i;t<e.C.length;t++)if(i=e.C[t]){if(typeof i==`function`)n=i(),e.C[t]=n=n.result||n,t--;else if(i.h)n=i.h(),e.C[t]=n=n.result||n,t--;else if(i.then)return e.await=r}return r=e.return,e.C=[],e.return=null,t||r(n),n}I.resolve=function(e,t,n,r,i){let a=this.await?ut(this,!0):this.result;if(a.then){let o=this;return a.then(function(){return o.resolve(e,t,n,r,i)})}return a.length&&(typeof e==`object`?(r=e.highlight||this.highlight,n=!!r||e.enrich,t=e.offset,e=e.limit):(r||=this.highlight,n=!!r||n),a=i?n?gt.call(this.index,a):a:nt.call(this.index,a,e||100,t,n)),this.finalize(a,r)},I.finalize=function(e,t){if(e.then){let n=this;return e.then(function(e){return n.finalize(e,t)})}t&&e.length&&this.query&&(e=lt(this.query,e,this.index.index,this.field,t));let n=this.return;return this.highlight=this.index=this.result=this.C=this.await=this.return=null,this.query=this.field=``,n&&n(e),e};function dt(e,t,n,r,i,a,o){let s=e.length,c=[],l,u;l=R();for(let d=0,f,p,m,h;d<t;d++)for(let t=0;t<s;t++)if(m=e[t],d<m.length&&(f=m[d]))for(let e=0;e<f.length;e++){if(p=f[e],(u=l[p])?l[p]++:(u=0,l[p]=1),h=c[u]||(c[u]=[]),!o){let e=d+(t||!i?0:a||0);h=h[e]||(h[e]=[])}if(h.push(p),o&&n&&u===s-1&&h.length-r===n)return r?h.slice(r):h}if(e=c.length)if(i)c=c.length>1?ft(c,n,r,o,a):(c=c[0])&&n&&c.length>n||r?c.slice(r,n+r):c;else{if(e<s)return[];if(c=c[e-1],n||r)if(o)(c.length>n||r)&&(c=c.slice(r,n+r));else{i=[];for(let e=0,t;e<c.length;e++)if(t=c[e]){if(r&&t.length>r)r-=t.length;else if((n&&t.length>n||r)&&(t=t.slice(r,n+r),n-=t.length,r&&(r-=t.length)),i.push(t),!n)break}c=i}}return c}function ft(e,t,n,r,i){let a=[],o=R(),s;var c=e.length;let l;if(r){for(i=c-1;i>=0;i--)if(l=(r=e[i])&&r.length){for(c=0;c<l;c++)if(s=r[c],!o[s]){if(o[s]=1,n)n--;else if(a.push(s),a.length===t)return a}}}else for(let u=c-1,d,f=0;u>=0;u--){d=e[u];for(let e=0;e<d.length;e++)if(l=(r=d[e])&&r.length){for(let d=0;d<l;d++)if(s=r[d],!o[s])if(o[s]=1,n)n--;else{let n=(e+(u<c-1&&i||0))/(u+1)|0;if((a[n]||(a[n]=[])).push(s),++f===t)return a}}}return a}function pt(e,t,n,r,i){let a=R(),o=[];for(let e=0,n;e<t.length;e++){n=t[e];for(let e=0;e<n.length;e++)a[n[e]]=1}if(i){for(let t=0,i;t<e.length;t++)if(i=e[t],a[i]){if(r)r--;else if(o.push(i),a[i]=0,n&&--n===0)break}}else for(let n=0,r,i;n<e.result.length;n++)for(r=e.result[n],t=0;t<r.length;t++)i=r[t],a[i]&&((o[n]||(o[n]=[])).push(i),a[i]=0);return o}_t.prototype.search=function(e,t,n,r){n||(!t&&ve(e)?(n=e,e=``):ve(t)&&(n=t,t=0));let i=[];var a=[];let o,s,c,l,u,d,f=0,p=!0,m;if(n){n.constructor===Array&&(n={index:n}),e=n.query||e,o=n.pluck,s=n.merge,l=n.boost,d=o||n.field||(d=n.index)&&(d.index?null:d);var h=this.tag&&n.tag;c=n.suggest,p=n.resolve!==!1,u=n.cache,m=p&&this.store&&n.highlight;var g=!!m||p&&this.store&&n.enrich;t=n.limit||t;var _=n.offset||0;if(t||=p?100:0,h&&(!this.db||!r)){h.constructor!==Array&&(h=[h]);var v=[];for(let e=0,t;e<h.length;e++)if(t=h[e],t.field&&t.tag){var y=t.tag;if(y.constructor===Array)for(var b=0;b<y.length;b++)v.push(t.field,y[b]);else v.push(t.field,y)}else{y=Object.keys(t);for(let e=0,n,r;e<y.length;e++)if(n=y[e],r=t[n],r.constructor===Array)for(b=0;b<r.length;b++)v.push(n,r[b]);else v.push(n,r)}if(h=v,!e){if(a=[],v.length)for(h=0;h<v.length;h+=2){if(this.db){if(r=this.index.get(v[h]),!r)continue;a.push(r=r.db.tag(v[h+1],t,_,g))}else r=ht.call(this,v[h],v[h+1],t,_,g);i.push(p?{field:v[h],tag:v[h+1],result:r}:[r])}if(a.length){let e=this;return Promise.all(a).then(function(t){for(let e=0;e<t.length;e++)p?i[e].result=t[e]:i[e]=t[e];return p?i:new B(i.length>1?dt(i,1,0,0,c,l):i[0],e)})}return p?i:new B(i.length>1?dt(i,1,0,0,c,l):i[0],this)}}p||o||!(d||=this.field)||(_e(d)?o=d:(d.constructor===Array&&d.length===1&&(d=d[0]),o=d.field||d.index)),d&&d.constructor!==Array&&(d=[d])}d||=this.field;let x;v=(this.worker||this.db)&&!r&&[];for(let o=0,s,l,C;o<d.length;o++){if(l=d[o],this.db&&this.tag&&!this.B[o])continue;let w;if(_e(l)||(w=l,l=w.field,e=w.query||e,t=ge(w.limit,t),_=ge(w.offset,_),c=ge(w.suggest,c),m=p&&this.store&&ge(w.highlight,m),g=!!m||p&&this.store&&ge(w.enrich,g),u=ge(w.cache,u)),r)s=r[o];else{y=w||n||{},b=y.enrich;var S=this.index.get(l);if(h&&(this.db&&(y.tag=h,y.field=d,x=S.db.support_tag_search),!x&&b&&(y.enrich=!1),x||(y.limit=0,y.offset=0)),s=u?S.searchCache(e,h&&!x?0:t,y):S.search(e,h&&!x?0:t,y),h&&!x&&(y.limit=t,y.offset=_),b&&(y.enrich=b),v){v[o]=s;continue}}if(C=(s=s.result||s)&&s.length,h&&C){if(y=[],b=0,this.db&&r){if(!x)for(S=d.length;S<r.length;S++){let e=r[S];if(e&&e.length)b++,y.push(e);else if(!c)return p?i:new B(i,this)}}else for(let e=0,t,n;e<h.length;e+=2){if(t=this.tag.get(h[e]),!t){if(c)continue;return p?i:new B(i,this)}if((t&&=t.get(h[e+1]))&&t.length)b++,y.push(t);else if(!c)return p?i:new B(i,this)}if(b){if(s=pt(s,y,t,_,p),C=s.length,!C&&!c)return p?s:new B(s,this);b--}}if(C)a[f]=l,i.push(s),f++;else if(d.length===1)return p?i:new B(i,this)}if(v){if(this.db&&h&&h.length&&!x)for(g=0;g<h.length;g+=2){if(a=this.index.get(h[g]),!a){if(c)continue;return p?i:new B(i,this)}v.push(a.db.tag(h[g+1],t,_,!1))}let r=this;return Promise.all(v).then(function(i){return n&&(n.resolve=p),i.length&&(i=r.search(e,t,n,i)),i})}if(!f)return p?i:new B(i,this);if(o&&(!g||!this.store))return i=i[0],p?i:new B(i,this);for(v=[],_=0;_<a.length;_++){if(h=i[_],g&&h.length&&h[0].doc===void 0&&(this.db?v.push(h=this.index.get(this.field[0]).db.enrich(h)):h=gt.call(this,h)),o)return p?m?lt(e,h,this.index,o,m):h:new B(h,this);i[_]={field:a[_],result:h}}if(g&&this.db&&v.length){let t=this;return Promise.all(v).then(function(n){for(let e=0;e<n.length;e++)i[e].result=n[e];return m&&(i=lt(e,i,t.index,o,m)),s?mt(i):i})}return m&&(i=lt(e,i,this.index,o,m)),s?mt(i):i};function mt(e){let t=[],n=R(),r=R();for(let i=0,a,o,s,c,l,u,d;i<e.length;i++){a=e[i],o=a.field,s=a.result;for(let e=0;e<s.length;e++)l=s[e],typeof l==`object`?c=l.id:l={id:c=l},(u=n[c])?u.push(o):(l.field=n[c]=[o],t.push(l)),(d=l.highlight)&&(u=r[c],u||(r[c]=u={},l.highlight=u),u[o]=d)}return t}function ht(e,t,n,r,i){return e=this.tag.get(e),!e||(e=e.get(t),!e)?[]:(t=e.length-r,t>0&&((n&&t>n||r)&&(e=e.slice(r,r+n)),i&&(e=gt.call(this,e))),e)}function gt(e){if(!this||!this.store)return e;if(this.db)return this.index.get(this.field[0]).db.enrich(e);let t=Array(e.length);for(let n=0,r;n<e.length;n++)r=e[n],t[n]={id:r,doc:this.store.get(r)};return t}function _t(e){if(!this||this.constructor!==_t)return new _t(e);let t=e.document||e.doc||e,n,r;if(this.B=[],this.field=[],this.D=[],this.key=(n=t.key||t.id)&&yt(n,this.D)||`id`,(r=e.keystore||0)&&(this.keystore=r),this.fastupdate=!!e.fastupdate,this.reg=!this.fastupdate||e.worker||e.db?r?new Re(r):new Set:r?new z(r):new Map,this.h=(n=t.store||null)&&n&&n!==!0&&[],this.store=n?r?new z(r):new Map:null,this.cache=(n=e.cache||null)&&new Oe(n),e.cache=!1,this.worker=e.worker||!1,this.priority=e.priority||4,this.index=vt.call(this,e,t),this.tag=null,(n=t.tag)&&(typeof n==`string`&&(n=[n]),n.length)){this.tag=new Map,this.A=[],this.F=[];for(let e=0,t,r;e<n.length;e++){if(t=n[e],r=t.field||t,!r)throw Error(`The tag field from the document descriptor is undefined.`);t.custom?this.A[e]=t.custom:(this.A[e]=yt(r,this.D),t.filter&&(typeof this.A[e]==`string`&&(this.A[e]=new String(this.A[e])),this.A[e].G=t.filter)),this.F[e]=r,this.tag.set(r,new Map)}}if(this.worker){this.fastupdate=!1,e=[];for(let t of this.index.values())t.then&&e.push(t);if(e.length){let t=this;return Promise.all(e).then(function(e){let n=0;for(let r of t.index.entries()){let i=r[0],a=r[1];a.then&&(a=e[n],t.index.set(i,a),n++)}return t})}}else e.db&&(this.fastupdate=!1,this.mount(e.db))}I=_t.prototype,I.mount=function(e){let t=this.field;if(this.tag)for(let e=0,r;e<this.F.length;e++){r=this.F[e];var n=void 0;this.index.set(r,n=new Rt({},this.reg)),t===this.field&&(t=t.slice(0)),t.push(r),n.tag=this.tag.get(r)}n=[];let r={db:e.db,type:e.type,fastupdate:e.fastupdate};for(let i=0,a,o;i<t.length;i++){r.field=o=t[i],a=this.index.get(o);let s=new e.constructor(e.id,r);s.id=e.id,n[i]=s.mount(a),a.document=!0,i?a.bypass=!0:a.store=this.store}let i=this;return this.db=Promise.all(n).then(function(){i.db=!0})},I.commit=async function(){let e=[];for(let t of this.index.values())e.push(t.commit());await Promise.all(e),this.reg.clear()},I.destroy=function(){let e=[];for(let t of this.index.values())e.push(t.destroy());return Promise.all(e)};function vt(e,t){let n=new Map,r=t.index||t.field||t;_e(r)&&(r=[r]);for(let t=0,a,o;t<r.length;t++){if(a=r[t],_e(a)||(o=a,a=a.field),o=ve(o)?Object.assign({},e,o):e,this.worker){var i=void 0;i=(i=o.encoder)&&i.encode?i:new Te(typeof i==`string`?Fe[i]:i||{}),i=new Ze(o,i),n.set(a,i)}this.worker||n.set(a,new Rt(o,this.reg)),o.custom?this.B[t]=o.custom:(this.B[t]=yt(a,this.D),o.filter&&(typeof this.B[t]==`string`&&(this.B[t]=new String(this.B[t])),this.B[t].G=o.filter)),this.field[t]=a}if(this.h){e=t.store,_e(e)&&(e=[e]);for(let t=0,n,r;t<e.length;t++)n=e[t],r=n.field||n,n.custom?(this.h[t]=n.custom,n.custom.O=r):(this.h[t]=yt(r,this.D),n.filter&&(typeof this.h[t]==`string`&&(this.h[t]=new String(this.h[t])),this.h[t].G=n.filter))}return n}function yt(e,t){let n=e.split(`:`),r=0;for(let i=0;i<n.length;i++)e=n[i],e[e.length-1]===`]`&&(e=e.substring(0,e.length-2))&&(t[r]=!0),e&&(n[r++]=e);return r<n.length&&(n.length=r),r>1?n:n[0]}I.append=function(e,t){return this.add(e,t,!0)},I.update=function(e,t){return this.remove(e).add(e,t)},I.remove=function(e){ve(e)&&(e=ye(e,this.key));for(var t of this.index.values())t.remove(e,!0);if(this.reg.has(e)){if(this.tag&&!this.fastupdate)for(let n of this.tag.values())for(let r of n){t=r[0];let i=r[1],a=i.indexOf(e);a>-1&&(i.length>1?i.splice(a,1):n.delete(t))}this.store&&this.store.delete(e),this.reg.delete(e)}return this.cache&&this.cache.remove(e),this},I.clear=function(){let e=[];for(let t of this.index.values()){let n=t.clear();n.then&&e.push(n)}if(this.tag)for(let e of this.tag.values())e.clear();return this.store&&this.store.clear(),this.cache&&this.cache.clear(),e.length?Promise.all(e):this},I.contain=function(e){return this.db?this.index.get(this.field[0]).db.has(e):this.reg.has(e)},I.cleanup=function(){for(let e of this.index.values())e.cleanup();return this},I.get=function(e){return this.db?this.index.get(this.field[0]).db.enrich(e).then(function(e){return e[0]&&e[0].doc||null}):this.store.get(e)||null},I.set=function(e,t){return typeof e==`object`&&(t=e,e=ye(t,this.key)),this.store.set(e,t),this},I.searchCache=De,I.export=Dt,I.import=Ot,We(_t.prototype);function bt(e,t=0){let n=[],r=[];t&&=25e4/t*5e3|0;for(let i of e.entries())r.push(i),r.length===t&&(n.push(r),r=[]);return r.length&&n.push(r),n}function xt(e,t){t||=new Map;for(let n=0,r;n<e.length;n++)r=e[n],t.set(r[0],r[1]);return t}function St(e,t=0){let n=[],r=[];t&&=25e4/t*1e3|0;for(let i of e.entries())r.push([i[0],bt(i[1])[0]||[]]),r.length===t&&(n.push(r),r=[]);return r.length&&n.push(r),n}function Ct(e,t){t||=new Map;for(let n=0,r,i;n<e.length;n++)r=e[n],i=t.get(r[0]),t.set(r[0],xt(r[1],i));return t}function wt(e){let t=[],n=[];for(let r of e.keys())n.push(r),n.length===25e4&&(t.push(n),n=[]);return n.length&&t.push(n),t}function Tt(e,t){t||=new Set;for(let n=0;n<e.length;n++)t.add(e[n]);return t}function Et(e,t,n,r,i,a,o=0){let s=r&&r.constructor===Array;var c=s?r.shift():r;if(!c)return this.export(e,t,i,a+1);if((c=e((t?t+`.`:``)+(o+1)+`.`+n,JSON.stringify(c)))&&c.then){let l=this;return c.then(function(){return Et.call(l,e,t,n,s?r:null,i,a,o+1)})}return Et.call(this,e,t,n,s?r:null,i,a,o+1)}function Dt(e,t,n=0,r=0){if(n<this.field.length){let i=this.field[n];if((t=this.index.get(i).export(e,i,n,r=1))&&t.then){let r=this;return t.then(function(){return r.export(e,i,n+1)})}return this.export(e,i,n+1)}let i,a;switch(r){case 0:i=`reg`,a=wt(this.reg),t=null;break;case 1:i=`tag`,a=this.tag&&St(this.tag,this.reg.size),t=null;break;case 2:i=`doc`,a=this.store&&bt(this.store),t=null;break;default:return}return Et.call(this,e,t,i,a||null,n,r)}function Ot(e,t){var n=e.split(`.`);n[n.length-1]===`json`&&n.pop();let r=n.length>2?n[0]:``;if(n=n.length>2?n[2]:n[1],this.worker&&r)return this.index.get(r).import(e);if(t){if(typeof t==`string`&&(t=JSON.parse(t)),r)return this.index.get(r).import(n,t);switch(n){case`reg`:this.fastupdate=!1,this.reg=Tt(t,this.reg);for(let e=0,t;e<this.field.length;e++)t=this.index.get(this.field[e]),t.fastupdate=!1,t.reg=this.reg;if(this.worker){t=[];for(let n of this.index.values())t.push(n.import(e));return Promise.all(t)}break;case`tag`:this.tag=Ct(t,this.tag);break;case`doc`:this.store=xt(t,this.store)}}}function kt(e,t){let n=``;for(let r of e.entries()){e=r[0];let i=r[1],a=``;for(let e=0,n;e<i.length;e++){n=i[e]||[``];let r=``;for(let e=0;e<n.length;e++)r+=(r?`,`:``)+(t===`string`?`"`+n[e]+`"`:n[e]);r=`[`+r+`]`,a+=(a?`,`:``)+r}a=`["`+e+`",[`+a+`]]`,n+=(n?`,`:``)+a}return n}Rt.prototype.remove=function(e,t){let n=this.reg.size&&(this.fastupdate?this.reg.get(e):this.reg.has(e));if(n){if(this.fastupdate){for(let t=0,r,i;t<n.length;t++)if((r=n[t])&&(i=r.length))if(r[i-1]===e)r.pop();else{let t=r.indexOf(e);t>=0&&r.splice(t,1)}}else At(this.map,e),this.depth&&At(this.ctx,e);t||this.reg.delete(e)}return this.db&&(this.commit_task.push({del:e}),this.M&&zt(this)),this.cache&&this.cache.remove(e),this};function At(e,t){let n=0;var r=t===void 0;if(e.constructor===Array){for(let i=0,a,o,s;i<e.length;i++)if((a=e[i])&&a.length){if(r)return 1;if(o=a.indexOf(t),o>=0){if(a.length>1)return a.splice(o,1),1;if(delete e[i],n)return 1;s=1}else{if(s)return 1;n++}}}else for(let i of e.entries())r=i[0],At(i[1],t)?n++:e.delete(r);return n}var jt={memory:{resolution:1},performance:{resolution:3,fastupdate:!0,context:{depth:1,resolution:1}},match:{tokenize:`forward`},score:{resolution:9,context:{depth:2,resolution:3}}};Rt.prototype.add=function(e,t,n,r){if(t&&(e||e===0)){if(!r&&!n&&this.reg.has(e))return this.update(e,t);r=this.depth,t=this.encoder.encode(t,!r);let l=t.length;if(l){let u=R(),d=R(),f=this.resolution;for(let p=0;p<l;p++){let m=t[this.rtl?l-1-p:p];var i=m.length;if(i&&(r||!d[m])){var a=this.score?this.score(t,m,p,null,0):Nt(f,l,p),o=``;switch(this.tokenize){case`tolerant`:if(Mt(this,d,m,a,e,n),i>2){for(let t=1,r,s,c,l;t<i-1;t++)r=m.charAt(t),s=m.charAt(t+1),c=m.substring(0,t)+s,l=m.substring(t+2),o=c+r+l,Mt(this,d,o,a,e,n),o=c+l,Mt(this,d,o,a,e,n);Mt(this,d,m.substring(0,m.length-1),a,e,n)}break;case`full`:if(i>2){for(let r=0,c;r<i;r++)for(a=i;a>r;a--){o=m.substring(r,a),c=this.rtl?i-1-r:r;var s=this.score?this.score(t,m,p,o,c):Nt(f,l,p,i,c);Mt(this,d,o,s,e,n)}break}case`bidirectional`:case`reverse`:if(i>1){for(s=i-1;s>0;s--){o=m[this.rtl?i-1-s:s]+o;var c=this.score?this.score(t,m,p,o,s):Nt(f,l,p,i,s);Mt(this,d,o,c,e,n)}o=``}case`forward`:if(i>1){for(s=0;s<i;s++)o+=m[this.rtl?i-1-s:s],Mt(this,d,o,a,e,n);break}default:if(Mt(this,d,m,a,e,n),r&&l>1&&p<l-1)for(i=this.N,o=m,a=Math.min(r+1,this.rtl?p+1:l-p),s=1;s<a;s++){m=t[this.rtl?l-1-p-s:p+s],c=this.bidirectional&&m>o;let r=this.score?this.score(t,o,p,m,s-1):Nt(i+(l/2>i?0:1),l,p,a-1,s-1);Mt(this,u,c?o:m,r,e,n,c?m:o)}}}}this.fastupdate||this.reg.add(e)}}return this.db&&(this.commit_task.push(n?{ins:e}:{del:e}),this.M&&zt(this)),this};function Mt(e,t,n,r,i,a,o){let s,c;if(!(s=t[n])||o&&!s[o]){if(o?(t=s||(t[n]=R()),t[o]=1,c=e.ctx,(s=c.get(o))?c=s:c.set(o,c=e.keystore?new z(e.keystore):new Map)):(c=e.map,t[n]=1),(s=c.get(n))?c=s:c.set(n,c=s=[]),a){for(let n=0,a;n<s.length;n++)if((a=s[n])&&a.includes(i)){if(n<=r)return;a.splice(a.indexOf(i),1),e.fastupdate&&(t=e.reg.get(i))&&t.splice(t.indexOf(a),1);break}}if(c=c[r]||(c[r]=[]),c.push(i),c.length===2**31-1){if(t=new Le(c),e.fastupdate)for(let n of e.reg.values())n.includes(c)&&(n[n.indexOf(c)]=t);s[r]=c=t}e.fastupdate&&((r=e.reg.get(i))?r.push(c):e.reg.set(i,[c]))}}function Nt(e,t,n,r,i){return n&&e>1?t+(r||0)<=e?n+(i||0):(e-1)/(t+(r||0))*(n+(i||0))+1|0:0}Rt.prototype.search=function(e,t,n){if(n||(t||typeof e!=`object`?typeof t==`object`&&(n=t,t=0):(n=e,e=``)),n&&n.cache)return n.cache=!1,e=this.searchCache(e,t,n),n.cache=!0,e;let r=[],i,a,o,s=0,c,l,u,d,f;n&&(e=n.query||e,t=n.limit||t,s=n.offset||0,a=n.context,o=n.suggest,f=(c=n.resolve)&&n.enrich,u=n.boost,d=n.resolution,l=this.db&&n.tag),c===void 0&&(c=this.resolve),a=this.depth&&a!==!1;let p=this.encoder.encode(e,!a);if(i=p.length,t||=c?100:0,i===1)return Ft.call(this,p[0],``,t,s,c,f,l);if(i===2&&a&&!o)return Ft.call(this,p[1],p[0],t,s,c,f,l);let m=R(),h=0,g;if(a&&(g=p[0],h=1),d||d===0||(d=g?this.N:this.resolution),this.db){if(this.db.search&&(n=this.db.search(this,p,t,s,o,c,f,l),n!==!1))return n;let e=this;return async function(){for(let t,n;h<i;h++){if((n=p[h])&&!m[n]){if(m[n]=1,t=await Lt(e,n,g,0,0,!1,!1),t=It(t,r,o,d)){r=t;break}g&&(o&&t&&r.length||(g=n))}o&&g&&h===i-1&&!r.length&&(d=e.resolution,g=``,h=-1,m=R())}return Pt(r,d,t,s,o,u,c)}()}for(let e,t;h<i;h++){if((t=p[h])&&!m[t]){if(m[t]=1,e=Lt(this,t,g,0,0,!1,!1),e=It(e,r,o,d)){r=e;break}g&&(o&&e&&r.length||(g=t))}o&&g&&h===i-1&&!r.length&&(d=this.resolution,g=``,h=-1,m=R())}return Pt(r,d,t,s,o,u,c)};function Pt(e,t,n,r,i,a,o){let s=e.length,c=e;if(s>1)c=dt(e,t,n,r,i,a,o);else if(s===1)return o?nt.call(null,e[0],n,r):new B(e[0],this);return o?c:new B(c,this)}function Ft(e,t,n,r,i,a,o){return e=Lt(this,e,t,n,r,i,a,o),this.db?e.then(function(e){return i?e||[]:new B(e,this)}):e&&e.length?i?nt.call(this,e,n,r):new B(e,this):i?[]:new B([],this)}function It(e,t,n,r){let i=[];if(e&&e.length){if(e.length<=r){t.push(e);return}for(let t=0,n;t<r;t++)(n=e[t])&&(i[t]=n);if(i.length){t.push(i);return}}if(!n)return i}function Lt(e,t,n,r,i,a,o,s){let c;return n&&(c=e.bidirectional&&t>n)&&(c=n,n=t,t=c),e.db?e.db.get(t,n,r,i,a,o,s):(e=n?(e=e.ctx.get(n))&&e.get(t):e.map.get(t),e)}function Rt(e,t){if(!this||this.constructor!==Rt)return new Rt(e);if(e){var n=_e(e)?e:e.preset;n&&(e=Object.assign({},jt[n],e))}else e={};n=e.context;let r=n===!0?{depth:1}:n||{},i=_e(e.encoder)?Fe[e.encoder]:e.encode||e.encoder||{};this.encoder=i.encode?i:typeof i==`object`?new Te(i):{encode:i},this.resolution=e.resolution||9,this.tokenize=n=(n=e.tokenize)&&n!==`default`&&n!==`exact`&&n||`strict`,this.depth=n===`strict`&&r.depth||0,this.bidirectional=r.bidirectional!==!1,this.fastupdate=!!e.fastupdate,this.score=e.score||null,(n=e.keystore||0)&&(this.keystore=n),this.map=n?new z(n):new Map,this.ctx=n?new z(n):new Map,this.reg=t||(this.fastupdate?n?new z(n):new Map:n?new Re(n):new Set),this.N=r.resolution||3,this.rtl=i.rtl||e.rtl||!1,this.cache=(n=e.cache||null)&&new Oe(n),this.resolve=e.resolve!==!1,(n=e.db)&&(this.db=this.mount(n)),this.M=e.commit!==!1,this.commit_task=[],this.commit_timer=null,this.priority=e.priority||4}I=Rt.prototype,I.mount=function(e){return this.commit_timer&&=(clearTimeout(this.commit_timer),null),e.mount(this)},I.commit=function(){return this.commit_timer&&=(clearTimeout(this.commit_timer),null),this.db.commit(this)},I.destroy=function(){return this.commit_timer&&=(clearTimeout(this.commit_timer),null),this.db.destroy()};function zt(e){e.commit_timer||=setTimeout(function(){e.commit_timer=null,e.db.commit(e)},1)}I.clear=function(){return this.map.clear(),this.ctx.clear(),this.reg.clear(),this.cache&&this.cache.clear(),this.db?(this.commit_timer&&clearTimeout(this.commit_timer),this.commit_timer=null,this.commit_task=[],this.db.clear()):this},I.append=function(e,t){return this.add(e,t,!0)},I.contain=function(e){return this.db?this.db.has(e):this.reg.has(e)},I.update=function(e,t){let n=this,r=this.remove(e);return r&&r.then?r.then(()=>n.add(e,t)):this.add(e,t)},I.cleanup=function(){return this.fastupdate?(At(this.map),this.depth&&At(this.ctx),this):this},I.searchCache=De,I.export=function(e,t,n=0,r=0){let i,a;switch(r){case 0:i=`reg`,a=wt(this.reg);break;case 1:i=`cfg`,a=null;break;case 2:i=`map`,a=bt(this.map,this.reg.size);break;case 3:i=`ctx`,a=St(this.ctx,this.reg.size);break;default:return}return Et.call(this,e,t,i,a,n,r)},I.import=function(e,t){if(t)switch(typeof t==`string`&&(t=JSON.parse(t)),e=e.split(`.`),e[e.length-1]===`json`&&e.pop(),e.length===3&&e.shift(),e=e.length>1?e[1]:e[0],e){case`reg`:this.fastupdate=!1,this.reg=Tt(t,this.reg);break;case`map`:this.map=xt(t,this.map);break;case`ctx`:this.ctx=Ct(t,this.ctx)}},I.serialize=function(e=!0){let t=``,n=``,r=``;if(this.reg.size){let e;for(var i of this.reg.keys())e||=typeof i,t+=(t?`,`:``)+(e===`string`?`"`+i+`"`:i);t=`index.reg=new Set([`+t+`]);`,n=kt(this.map,e),n=`index.map=new Map([`+n+`]);`;for(let t of this.ctx.entries()){i=t[0];let n=kt(t[1],e);n=`new Map([`+n+`])`,n=`["`+i+`",`+n+`]`,r+=(r?`,`:``)+n}r=`index.ctx=new Map([`+r+`]);`}return e?`function inject(index){`+t+n+r+`}`:t+n+r},We(Rt.prototype);var Bt=typeof window<`u`&&(window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB),Vt=[`map`,`ctx`,`tag`,`reg`,`cfg`],Ht=R();function Ut(e,t={}){if(!this||this.constructor!==Ut)return new Ut(e,t);typeof e==`object`&&(t=e,e=e.name),e||console.info(`Default storage space was used, because a name was not passed.`),this.id=`flexsearch`+(e?`:`+e.toLowerCase().replace(/[^a-z0-9_\-]/g,``):``),this.field=t.field?t.field.toLowerCase().replace(/[^a-z0-9_\-]/g,``):``,this.type=t.type,this.fastupdate=this.support_tag_search=!1,this.db=null,this.h={}}I=Ut.prototype,I.mount=function(e){return e.index?e.mount(this):(e.db=this,this.open())},I.open=function(){if(this.db)return this.db;let e=this;navigator.storage&&navigator.storage.persist&&navigator.storage.persist(),Ht[e.id]||(Ht[e.id]=[]),Ht[e.id].push(e.field);let t=Bt.open(e.id,1);return t.onupgradeneeded=function(){let t=e.db=this.result;for(let n=0,r;n<Vt.length;n++){r=Vt[n];for(let n=0,i;n<Ht[e.id].length;n++)i=Ht[e.id][n],t.objectStoreNames.contains(r+(r===`reg`?``:i?`:`+i:``))||t.createObjectStore(r+(r===`reg`?``:i?`:`+i:``))}},e.db=Gt(t,function(t){e.db=t,e.db.onversionchange=function(){e.close()}})},I.close=function(){this.db&&this.db.close(),this.db=null},I.destroy=function(){return Gt(Bt.deleteDatabase(this.id))},I.clear=function(){let e=[];for(let t=0,n;t<Vt.length;t++){n=Vt[t];for(let t=0,r;t<Ht[this.id].length;t++)r=Ht[this.id][t],e.push(n+(n===`reg`?``:r?`:`+r:``))}let t=this.db.transaction(e,`readwrite`);for(let n=0;n<e.length;n++)t.objectStore(e[n]).clear();return Gt(t)},I.get=function(e,t,n=0,r=0,i=!0,a=!1){e=this.db.transaction((t?`ctx`:`map`)+(this.field?`:`+this.field:``),`readonly`).objectStore((t?`ctx`:`map`)+(this.field?`:`+this.field:``)).get(t?t+`:`+e:e);let o=this;return Gt(e).then(function(e){let t=[];if(!e||!e.length)return t;if(i){if(!n&&!r&&e.length===1)return e[0];for(let i=0,a;i<e.length;i++)if((a=e[i])&&a.length){if(r>=a.length){r-=a.length;continue}let e=n?r+Math.min(a.length-r,n):a.length;for(let n=r;n<e;n++)t.push(a[n]);if(r=0,t.length===n)break}return a?o.enrich(t):t}return e})},I.tag=function(e,t=0,n=0,r=!1){e=this.db.transaction(`tag`+(this.field?`:`+this.field:``),`readonly`).objectStore(`tag`+(this.field?`:`+this.field:``)).get(e);let i=this;return Gt(e).then(function(e){return!e||!e.length||n>=e.length?[]:!t&&!n?e:(e=e.slice(n,n+t),r?i.enrich(e):e)})},I.enrich=function(e){typeof e!=`object`&&(e=[e]);let t=this.db.transaction(`reg`,`readonly`).objectStore(`reg`),n=[];for(let r=0;r<e.length;r++)n[r]=Gt(t.get(e[r]));return Promise.all(n).then(function(t){for(let n=0;n<t.length;n++)t[n]={id:e[n],doc:t[n]?JSON.parse(t[n]):null};return t})},I.has=function(e){return e=this.db.transaction(`reg`,`readonly`).objectStore(`reg`).getKey(e),Gt(e).then(function(e){return!!e})},I.search=null,I.info=function(){},I.transaction=function(e,t,n){e+=e===`reg`?``:this.field?`:`+this.field:``;let r=this.h[e+`:`+t];if(r)return n.call(this,r);let i=this.db.transaction(e,t);this.h[e+`:`+t]=r=i.objectStore(e);let a=n.call(this,r);return this.h[e+`:`+t]=null,Gt(i).finally(function(){return a})},I.commit=async function(e){let t=e.commit_task,n=[];e.commit_task=[];for(let e=0,r;e<t.length;e++)r=t[e],r.del&&n.push(r.del);n.length&&await this.remove(n),e.reg.size&&(await this.transaction(`map`,`readwrite`,function(t){for(let n of e.map){let e=n[0],r=n[1];r.length&&(t.get(e).onsuccess=function(){let n=this.result;var i;if(n&&n.length){let e=Math.max(n.length,r.length);for(let t=0,a,o;t<e;t++)if((o=r[t])&&o.length){if((a=n[t])&&a.length)for(i=0;i<o.length;i++)a.push(o[i]);else n[t]=o;i=1}}else n=r,i=1;i&&t.put(n,e)})}}),await this.transaction(`ctx`,`readwrite`,function(t){for(let n of e.ctx){let e=n[0],r=n[1];for(let n of r){let r=n[0],i=n[1];i.length&&(t.get(e+`:`+r).onsuccess=function(){let n=this.result;var a;if(n&&n.length){let e=Math.max(n.length,i.length);for(let t=0,r,o;t<e;t++)if((o=i[t])&&o.length){if((r=n[t])&&r.length)for(a=0;a<o.length;a++)r.push(o[a]);else n[t]=o;a=1}}else n=i,a=1;a&&t.put(n,e+`:`+r)})}}}),e.store?await this.transaction(`reg`,`readwrite`,function(t){for(let n of e.store){let e=n[0],r=n[1];t.put(typeof r==`object`?JSON.stringify(r):1,e)}}):e.bypass||await this.transaction(`reg`,`readwrite`,function(t){for(let n of e.reg.keys())t.put(1,n)}),e.tag&&await this.transaction(`tag`,`readwrite`,function(t){for(let n of e.tag){let e=n[0],r=n[1];r.length&&(t.get(e).onsuccess=function(){let n=this.result;n=n&&n.length?n.concat(r):r,t.put(n,e)})}}),e.map.clear(),e.ctx.clear(),e.tag&&e.tag.clear(),e.store&&e.store.clear(),e.document||e.reg.clear())};function Wt(e,t,n){let r=e.value,i,a=0;for(let e=0,o;e<r.length;e++){if(o=n?r:r[e]){for(let n=0,a,s;n<t.length;n++)if(s=t[n],a=o.indexOf(s),a>=0)if(i=1,o.length>1)o.splice(a,1);else{r[e]=[];break}a+=o.length}if(n)break}a?i&&e.update(r):e.delete(),e.continue()}I.remove=function(e){return typeof e!=`object`&&(e=[e]),Promise.all([this.transaction(`map`,`readwrite`,function(t){t.openCursor().onsuccess=function(){let t=this.result;t&&Wt(t,e)}}),this.transaction(`ctx`,`readwrite`,function(t){t.openCursor().onsuccess=function(){let t=this.result;t&&Wt(t,e)}}),this.transaction(`tag`,`readwrite`,function(t){t.openCursor().onsuccess=function(){let t=this.result;t&&Wt(t,e,!0)}}),this.transaction(`reg`,`readwrite`,function(t){for(let n=0;n<e.length;n++)t.delete(e[n])})])};function Gt(e,t){return new Promise((n,r)=>{e.onsuccess=e.oncomplete=function(){t&&t(this.result),t=null,n(this.result)},e.onerror=e.onblocked=r,e=null})}var Kt={Index:Rt,Charset:Fe,Encoder:Te,Document:_t,Worker:Ze,Resolver:B,IndexedDB:Ut,Language:{}};let qt=Fe;var Jt={finalize:e=>{let t=[];for(let n of e)t.push(...Xt(n));return t}};function Yt(e){return e>=19968&&e<=40959||e>=12352&&e<=12543||e>=44032&&e<=55203||e>=13312&&e<=19903||e>=131072&&e<=173791||e>=173824&&e<=191471||e>=196608&&e<=205743||e>=191472&&e<=192095||e>=63744&&e<=64255||e>=194560&&e<=195103}function Xt(e){let t=[],n=``;for(let r of e)Yt(r.codePointAt(0))?(n&&=(t.push(n),``),t.push(r)):n+=r;return n&&t.push(n),t}var Zt=new Kt.Encoder(qt.Default,Jt),Qt=class{constructor({adminUrl:e,apiKey:t,dir:n}){let r=n===`rtl`,i=n===`rtl`?`reverse`:`forward`;this.apiUrl=e,this.apiKey=t,this.postsIndex=new Kt.Document({tokenize:i,rtl:r,document:{id:`id`,index:[`title`,`excerpt`],store:!0},encoder:Zt}),this.authorsIndex=new Kt.Document({tokenize:i,rtl:r,document:{id:`id`,index:[`name`],store:!0},encoder:Zt}),this.tagsIndex=new Kt.Document({tokenize:i,rtl:r,document:{id:`id`,index:[`name`],store:!0},encoder:Zt}),this.init=this.init.bind(this),this.search=this.search.bind(this)}async#e(){let e=await this.#t();e.length>0&&this.#n(e)}async#t(){try{let e=`${this.apiUrl}/ghost/api/content/search-index/posts/?key=${this.apiKey}`;return(await(await fetch(e)).json()).posts}catch(e){return console.error(`Error fetching posts:`,e),[]}}#n(e){e.forEach(e=>{this.postsIndex.add(e)})}async#r(){let e=await this.#i();e.length>0&&this.#a(e)}async#i(){try{let e=`${this.apiUrl}/ghost/api/content/search-index/authors/?key=${this.apiKey}`;return(await(await fetch(e)).json()).authors}catch(e){return console.error(`Error fetching authors:`,e),[]}}#a(e){e.forEach(e=>{this.authorsIndex.add(e)})}async#o(){let e=await this.#s();e.length>0&&this.#c(e)}async#s(){try{let e=`${this.apiUrl}/ghost/api/content/search-index/tags/?key=${this.apiKey}`;return(await(await fetch(e)).json()).tags}catch(e){return console.error(`Error fetching tags:`,e),[]}}#c(e){e.forEach(e=>{this.tagsIndex.add(e)})}async init(){await this.#e(),await this.#r(),await this.#o()}#l(e){let t=[],n={};return e.forEach(e=>{e.result.forEach(e=>{n[e.id]||(t.push(e.doc),n[e.id]=!0)})}),t}search(e){let t=this.postsIndex.search(e,{enrich:!0}),n=this.authorsIndex.search(e,{enrich:!0}),r=this.tagsIndex.search(e,{enrich:!0});return{posts:this.#l(t),authors:this.#l(n),tags:this.#l(r)}}},V=e=>typeof e==`string`,$t=()=>{let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},en=e=>e==null?``:``+e,tn=(e,t,n)=>{e.forEach(e=>{t[e]&&(n[e]=t[e])})},nn=/###/g,H=e=>e&&e.indexOf(`###`)>-1?e.replace(nn,`.`):e,rn=e=>!e||V(e),an=(e,t,n)=>{let r=V(t)?t.split(`.`):t,i=0;for(;i<r.length-1;){if(rn(e))return{};let t=H(r[i]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++i}return rn(e)?{}:{obj:e,k:H(r[i])}},on=(e,t,n)=>{let{obj:r,k:i}=an(e,t,Object);if(r!==void 0||t.length===1){r[i]=n;return}let a=t[t.length-1],o=t.slice(0,t.length-1),s=an(e,o,Object);for(;s.obj===void 0&&o.length;)a=`${o[o.length-1]}.${a}`,o=o.slice(0,o.length-1),s=an(e,o,Object),s&&s.obj&&s.obj[`${s.k}.${a}`]!==void 0&&(s.obj=void 0);s.obj[`${s.k}.${a}`]=n},sn=(e,t,n,r)=>{let{obj:i,k:a}=an(e,t,Object);i[a]=i[a]||[],i[a].push(n)},cn=(e,t)=>{let{obj:n,k:r}=an(e,t);if(n)return n[r]},ln=(e,t,n)=>{let r=cn(e,n);return r===void 0?cn(t,n):r},un=(e,t,n)=>{for(let r in t)r!==`__proto__`&&r!==`constructor`&&(r in e?V(e[r])||e[r]instanceof String||V(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):un(e[r],t[r],n):e[r]=t[r]);return e},dn=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,`\\$&`),fn={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`,"/":`/`},pn=e=>V(e)?e.replace(/[&<>"'\/]/g,e=>fn[e]):e,mn=class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(t!==void 0)return t;let n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}},hn=[` `,`,`,`?`,`!`,`;`],gn=new mn(20),_n=(e,t,n)=>{t||=``,n||=``;let r=hn.filter(e=>t.indexOf(e)<0&&n.indexOf(e)<0);if(r.length===0)return!0;let i=gn.getRegExp(`(${r.map(e=>e===`?`?`\\?`:e).join(`|`)})`),a=!i.test(e);if(!a){let t=e.indexOf(n);t>0&&!i.test(e.substring(0,t))&&(a=!0)}return a},vn=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:`.`;if(!e)return;if(e[t])return e[t];let r=t.split(n),i=e;for(let e=0;e<r.length;){if(!i||typeof i!=`object`)return;let t,a=``;for(let o=e;o<r.length;++o)if(o!==e&&(a+=n),a+=r[o],t=i[a],t!==void 0){if([`string`,`number`,`boolean`].indexOf(typeof t)>-1&&o<r.length-1)continue;e+=o-e+1;break}i=t}return i},yn=e=>e&&e.replace(`_`,`-`),bn={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)}},xn=new class e{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=t.prefix||`i18next:`,this.logger=e||bn,this.options=t,this.debug=t.debug}log(){var e=[...arguments];return this.forward(e,`log`,``,!0)}warn(){var e=[...arguments];return this.forward(e,`warn`,``,!0)}error(){var e=[...arguments];return this.forward(e,`error`,``)}deprecate(){var e=[...arguments];return this.forward(e,`warn`,`WARNING DEPRECATED: `,!0)}forward(e,t,n,r){return r&&!this.debug?null:(V(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(t){return new e(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t||=this.options,t.prefix=t.prefix||this.prefix,new e(this.logger,t)}},Sn=class{constructor(){this.observers={}}on(e,t){return e.split(` `).forEach(e=>{this.observers[e]||(this.observers[e]=new Map);let n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}emit(e){var t=[...arguments].slice(1);this.observers[e]&&Array.from(this.observers[e].entries()).forEach(e=>{let[n,r]=e;for(let e=0;e<r;e++)n(...t)}),this.observers[`*`]&&Array.from(this.observers[`*`].entries()).forEach(n=>{let[r,i]=n;for(let n=0;n<i;n++)r.apply(r,[e,...t])})}},Cn=class extends Sn{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:[`translation`],defaultNS:`translation`};super(),this.data=e||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=r.keySeparator===void 0?this.options.keySeparator:r.keySeparator,a=r.ignoreJSONStructure===void 0?this.options.ignoreJSONStructure:r.ignoreJSONStructure,o;e.indexOf(`.`)>-1?o=e.split(`.`):(o=[e,t],n&&(Array.isArray(n)?o.push(...n):V(n)&&i?o.push(...n.split(i)):o.push(n)));let s=cn(this.data,o);return!s&&!t&&!n&&e.indexOf(`.`)>-1&&(e=o[0],t=o[1],n=o.slice(2).join(`.`)),s||!a||!V(n)?s:vn(this.data&&this.data[e]&&this.data[e][t],n,i)}addResource(e,t,n,r){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},a=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,o=[e,t];n&&(o=o.concat(a?n.split(a):n)),e.indexOf(`.`)>-1&&(o=e.split(`.`),r=t,t=o[1]),this.addNamespaces(t),on(this.data,o,r),i.silent||this.emit(`added`,e,t,n,r)}addResources(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(let r in n)(V(n[r])||Array.isArray(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});r.silent||this.emit(`added`,e,t,n)}addResourceBundle(e,t,n,r,i){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},o=[e,t];e.indexOf(`.`)>-1&&(o=e.split(`.`),r=n,n=t,t=o[1]),this.addNamespaces(t);let s=cn(this.data,o)||{};a.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?un(s,n,i):s={...s,...n},on(this.data,o,s),a.silent||this.emit(`added`,e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit(`removed`,e,t)}hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}getResourceBundle(e,t){return t||=this.options.defaultNS,this.options.compatibilityAPI===`v1`?{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}},wn={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(e=>{this.processors[e]&&(t=this.processors[e].process(t,n,r,i))}),t}},Tn={},En=class e extends Sn{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),tn([`resourceStore`,`languageUtils`,`pluralResolver`,`interpolator`,`backendConnector`,`i18nFormat`,`utils`],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.logger=xn.create(`translator`)}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(e==null)return!1;let n=this.resolve(e,t);return n&&n.res!==void 0}extractFromKey(e,t){let n=t.nsSeparator===void 0?this.options.nsSeparator:t.nsSeparator;n===void 0&&(n=`:`);let r=t.keySeparator===void 0?this.options.keySeparator:t.keySeparator,i=t.ns||this.options.defaultNS||[],a=n&&e.indexOf(n)>-1,o=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!_n(e,n,r);if(a&&!o){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:V(i)?[i]:i};let a=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(a[0])>-1)&&(i=a.shift()),e=a.join(r)}return{key:e,namespaces:V(i)?[i]:i}}translate(t,n,r){if(typeof n!=`object`&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n==`object`&&(n={...n}),n||={},t==null)return``;Array.isArray(t)||(t=[String(t)]);let i=n.returnDetails===void 0?this.options.returnDetails:n.returnDetails,a=n.keySeparator===void 0?this.options.keySeparator:n.keySeparator,{key:o,namespaces:s}=this.extractFromKey(t[t.length-1],n),c=s[s.length-1],l=n.lng||this.language,u=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&l.toLowerCase()===`cimode`){if(u){let e=n.nsSeparator||this.options.nsSeparator;return i?{res:`${c}${e}${o}`,usedKey:o,exactUsedKey:o,usedLng:l,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:`${c}${e}${o}`}return i?{res:o,usedKey:o,exactUsedKey:o,usedLng:l,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:o}let d=this.resolve(t,n),f=d&&d.res,p=d&&d.usedKey||o,m=d&&d.exactUsedKey||o,h=Object.prototype.toString.apply(f),g=[`[object Number]`,`[object Function]`,`[object RegExp]`],_=n.joinArrays===void 0?this.options.joinArrays:n.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject,y=!V(f)&&typeof f!=`boolean`&&typeof f!=`number`;if(v&&f&&y&&g.indexOf(h)<0&&!(V(_)&&Array.isArray(f))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn(`accessing an object - but returnObjects options is not enabled!`);let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(p,f,{...n,ns:s}):`key '${o} (${this.language})' returned an object instead of string.`;return i?(d.res=e,d.usedParams=this.getUsedParamsDetails(n),d):e}if(a){let e=Array.isArray(f),t=e?[]:{},r=e?m:p;for(let e in f)if(Object.prototype.hasOwnProperty.call(f,e)){let i=`${r}${a}${e}`;t[e]=this.translate(i,{...n,joinArrays:!1,ns:s}),t[e]===i&&(t[e]=f[e])}f=t}}else if(v&&V(_)&&Array.isArray(f))f=f.join(_),f&&=this.extendTranslation(f,t,n,r);else{let i=!1,s=!1,u=n.count!==void 0&&!V(n.count),p=e.hasDefaultValue(n),m=u?this.pluralResolver.getSuffix(l,n.count,n):``,h=n.ordinal&&u?this.pluralResolver.getSuffix(l,n.count,{ordinal:!1}):``,g=u&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),_=g&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${m}`]||n[`defaultValue${h}`]||n.defaultValue;!this.isValidLookup(f)&&p&&(i=!0,f=_),this.isValidLookup(f)||(s=!0,f=o);let v=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&s?void 0:f,y=p&&_!==f&&this.options.updateMissing;if(s||i||y){if(this.logger.log(y?`updateKey`:`missingKey`,l,c,o,y?_:f),a){let e=this.resolve(o,{...n,keySeparator:!1});e&&e.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 e=[],t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo===`fallback`&&t&&t[0])for(let n=0;n<t.length;n++)e.push(t[n]);else this.options.saveMissingTo===`all`?e=this.languageUtils.toResolveHierarchy(n.lng||this.language):e.push(n.lng||this.language);let r=(e,t,r)=>{let i=p&&r!==f?r:v;this.options.missingKeyHandler?this.options.missingKeyHandler(e,c,t,i,y,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,c,t,i,y,n),this.emit(`missingKey`,e,c,t,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&u?e.forEach(e=>{let t=this.pluralResolver.getSuffixes(e,n);g&&n[`defaultValue${this.options.pluralSeparator}zero`]&&t.indexOf(`${this.options.pluralSeparator}zero`)<0&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{r([e],o+t,n[`defaultValue${t}`]||_)})}):r(e,o,_))}f=this.extendTranslation(f,t,n,d,r),s&&f===o&&this.options.appendNamespaceToMissingKey&&(f=`${c}:${o}`),(s||i)&&this.options.parseMissingKeyHandler&&(f=this.options.compatibilityAPI===`v1`?this.options.parseMissingKeyHandler(f):this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}:${o}`:o,i?f:void 0))}return i?(d.res=f,d.usedParams=this.getUsedParamsDetails(n),d):f}extendTranslation(e,t,n,r,i){var a=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});let o=V(e)&&(n&&n.interpolation&&n.interpolation.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),s;if(o){let t=e.match(this.interpolator.nestingRegexp);s=t&&t.length}let c=n.replace&&!V(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(c={...this.options.interpolation.defaultVariables,...c}),e=this.interpolator.interpolate(e,c,n.lng||this.language||r.usedLng,n),o){let t=e.match(this.interpolator.nestingRegexp),r=t&&t.length;s<r&&(n.nest=!1)}!n.lng&&this.options.compatibilityAPI!==`v1`&&r&&r.res&&(n.lng=this.language||r.usedLng),n.nest!==!1&&(e=this.interpolator.nest(e,function(){var e=[...arguments];return i&&i[0]===e[0]&&!n.context?(a.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null):a.translate(...e,t)},n)),n.interpolation&&this.interpolator.reset()}let o=n.postProcess||this.options.postProcess,s=V(o)?[o]:o;return e!=null&&s&&s.length&&n.applyPostProcessor!==!1&&(e=wn.handle(s,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n,r,i,a,o;return V(e)&&(e=[e]),e.forEach(e=>{if(this.isValidLookup(n))return;let s=this.extractFromKey(e,t),c=s.key;r=c;let l=s.namespaces;this.options.fallbackNS&&(l=l.concat(this.options.fallbackNS));let u=t.count!==void 0&&!V(t.count),d=u&&!t.ordinal&&t.count===0&&this.pluralResolver.shouldUseIntlApi(),f=t.context!==void 0&&(V(t.context)||typeof t.context==`number`)&&t.context!==``,p=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);l.forEach(e=>{this.isValidLookup(n)||(o=e,!Tn[`${p[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(o)&&(Tn[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${p.join(`, `)}" won't get resolved as namespace "${o}" 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!!!`)),p.forEach(r=>{if(this.isValidLookup(n))return;a=r;let o=[c];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(o,c,r,e,t);else{let e;u&&(e=this.pluralResolver.getSuffix(r,t.count,t));let n=`${this.options.pluralSeparator}zero`,i=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(o.push(c+e),t.ordinal&&e.indexOf(i)===0&&o.push(c+e.replace(i,this.options.pluralSeparator)),d&&o.push(c+n)),f){let r=`${c}${this.options.contextSeparator}${t.context}`;o.push(r),u&&(o.push(r+e),t.ordinal&&e.indexOf(i)===0&&o.push(r+e.replace(i,this.options.pluralSeparator)),d&&o.push(r+n))}}let s;for(;s=o.pop();)this.isValidLookup(n)||(i=s,n=this.getResource(r,e,s,t))}))})}),{res:n,usedKey:r,exactUsedKey:i,usedLng:a,usedNS:o}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e===``)}getResource(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=[`defaultValue`,`ordinal`,`context`,`replace`,`lng`,`lngs`,`fallbackLng`,`ns`,`keySeparator`,`nsSeparator`,`returnObjects`,`returnDetails`,`joinArrays`,`postProcess`,`interpolation`],n=e.replace&&!V(e.replace),r=n?e.replace:e;if(n&&e.count!==void 0&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(let e of t)delete r[e]}return r}static hasDefaultValue(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t.substring(0,12)===`defaultValue`&&e[t]!==void 0)return!0;return!1}},Dn=e=>e.charAt(0).toUpperCase()+e.slice(1),On=class{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=xn.create(`languageUtils`)}getScriptPartFromCode(e){if(e=yn(e),!e||e.indexOf(`-`)<0)return null;let t=e.split(`-`);return t.length===2||(t.pop(),t[t.length-1].toLowerCase()===`x`)?null:this.formatLanguageCode(t.join(`-`))}getLanguagePartFromCode(e){if(e=yn(e),!e||e.indexOf(`-`)<0)return e;let t=e.split(`-`);return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(V(e)&&e.indexOf(`-`)>-1){if(typeof Intl<`u`&&Intl.getCanonicalLocales!==void 0)try{let t=Intl.getCanonicalLocales(e)[0];if(t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t)return t}catch{}let t=[`hans`,`hant`,`latn`,`cyrl`,`cans`,`mong`,`arab`],n=e.split(`-`);return this.options.lowerCaseLng?n=n.map(e=>e.toLowerCase()):n.length===2?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=Dn(n[1].toLowerCase()))):n.length===3&&(n[0]=n[0].toLowerCase(),n[1].length===2&&(n[1]=n[1].toUpperCase()),n[0]!==`sgn`&&n[2].length===2&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=Dn(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=Dn(n[2].toLowerCase()))),n.join(`-`)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load===`languageOnly`||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;let n=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let n=this.getLanguagePartFromCode(e);if(this.isSupportedCode(n))return t=n;t=this.options.supportedLngs.find(e=>{if(e===n||!(e.indexOf(`-`)<0&&n.indexOf(`-`)<0)&&(e.indexOf(`-`)>0&&n.indexOf(`-`)<0&&e.substring(0,e.indexOf(`-`))===n||e.indexOf(n)===0&&n.length>1))return e})}),t||=this.getFallbackCodes(this.options.fallbackLng)[0],t}getFallbackCodes(e,t){if(!e)return[];if(typeof e==`function`&&(e=e(t)),V(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||=e[this.getScriptPartFromCode(t)],n||=e[this.formatLanguageCode(t)],n||=e[this.getLanguagePartFromCode(t)],n||=e.default,n||[]}toResolveHierarchy(e,t){let n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),r=[],i=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return V(e)&&(e.indexOf(`-`)>-1||e.indexOf(`_`)>-1)?(this.options.load!==`languageOnly`&&i(this.formatLanguageCode(e)),this.options.load!==`languageOnly`&&this.options.load!==`currentOnly`&&i(this.getScriptPartFromCode(e)),this.options.load!==`currentOnly`&&i(this.getLanguagePartFromCode(e))):V(e)&&i(this.formatLanguageCode(e)),n.forEach(e=>{r.indexOf(e)<0&&i(this.formatLanguageCode(e))}),r}},kn=[{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`.split(`.`),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}],An={1:e=>Number(e>1),2:e=>Number(e!=1),3:e=>0,4:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),5:e=>Number(e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5),6:e=>Number(e==1?0:e>=2&&e<=4?1:2),7:e=>Number(e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),8:e=>Number(e==1?0:e==2?1:e!=8&&e!=11?2:3),9:e=>Number(e>=2),10:e=>Number(e==1?0:e==2?1:e<7?2:e<11?3:4),11:e=>Number(e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3),12:e=>Number(e%10!=1||e%100==11),13:e=>Number(e!==0),14:e=>Number(e==1?0:e==2?1:e==3?2:3),15:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2),16:e=>Number(e%10==1&&e%100!=11?0:e===0?2:1),17:e=>Number(e==1||e%10==1&&e%100!=11?0:1),18:e=>Number(e==0?0:e==1?1:2),19:e=>Number(e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3),20:e=>Number(e==1?0:e==0||e%100>0&&e%100<20?1:2),21:e=>Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0),22:e=>Number(e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3)},jn=[`v1`,`v2`,`v3`],Mn=[`v4`],Nn={zero:0,one:1,two:2,few:3,many:4,other:5},Pn=()=>{let e={};return kn.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:An[t.fc]}})}),e},Fn=class{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=xn.create(`pluralResolver`),(!this.options.compatibilityJSON||Mn.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=Pn(),this.pluralRulesCache={}}addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi()){let n=yn(e===`dev`?`en`:e),r=t.ordinal?`ordinal`:`cardinal`,i=JSON.stringify({cleanedCode:n,type:r});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let a;try{a=new Intl.PluralRules(n,{type:r})}catch{if(!e.match(/-|_/))return;let n=this.languageUtils.getLanguagePartFromCode(e);a=this.getRule(n,t)}return this.pluralRulesCache[i]=a,a}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=this.getRule(e,t);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort((e,t)=>Nn[e]-Nn[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:``}${e}`):n.numbers.map(n=>this.getSuffix(e,n,t)):[]}getSuffix(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=this.getRule(e,n);return r?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:``}${r.select(t)}`:this.getSuffixRetroCompatible(r,t):(this.logger.warn(`no plural rule found for: ${e}`),``)}getSuffixRetroCompatible(e,t){let n=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),r=e.numbers[n];this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1&&(r===2?r=`plural`:r===1&&(r=``));let i=()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString();return this.options.compatibilityJSON===`v1`?r===1?``:typeof r==`number`?`_plural_${r.toString()}`:i():this.options.compatibilityJSON===`v2`||this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1?i():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!jn.includes(this.options.compatibilityJSON)}},In=function(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:`.`,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=ln(e,t,n);return!a&&i&&V(n)&&(a=vn(e,n,r),a===void 0&&(a=vn(t,n,r))),a},Ln=e=>e.replace(/\$/g,`$$$$`),Rn=class{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=xn.create(`interpolator`),this.options=e,this.format=e.interpolation&&e.interpolation.format||(e=>e),this.init(e)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||={escapeValue:!0};let{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:i,prefixEscaped:a,suffix:o,suffixEscaped:s,formatSeparator:c,unescapeSuffix:l,unescapePrefix:u,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:p,nestingSuffixEscaped:m,nestingOptionsSeparator:h,maxReplaces:g,alwaysFormat:_}=e.interpolation;this.escape=t===void 0?pn:t,this.escapeValue=n===void 0?!0:n,this.useRawValueToEscape=r===void 0?!1:r,this.prefix=i?dn(i):a||`{{`,this.suffix=o?dn(o):s||`}}`,this.formatSeparator=c||`,`,this.unescapePrefix=l?``:u||`-`,this.unescapeSuffix=this.unescapePrefix?``:l||``,this.nestingPrefix=d?dn(d):f||dn(`$t(`),this.nestingSuffix=p?dn(p):m||dn(`)`),this.nestingOptionsSeparator=h||`,`,this.maxReplaces=g||1e3,this.alwaysFormat=_===void 0?!1:_,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e&&e.source===t?(e.lastIndex=0,e):new RegExp(t,`g`);this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,t,n,r){let i,a,o,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=e=>{if(e.indexOf(this.formatSeparator)<0){let i=In(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,n,{...r,...t,interpolationkey:e}):i}let i=e.split(this.formatSeparator),a=i.shift().trim(),o=i.join(this.formatSeparator).trim();return this.format(In(t,s,a,this.options.keySeparator,this.options.ignoreJSONStructure),o,n,{...r,...t,interpolationkey:a})};this.resetRegExp();let l=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,u=r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>Ln(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?Ln(this.escape(e)):Ln(e)}].forEach(t=>{for(o=0;i=t.regex.exec(e);){let n=i[1].trim();if(a=c(n),a===void 0)if(typeof l==`function`){let t=l(e,i,r);a=V(t)?t:``}else if(r&&Object.prototype.hasOwnProperty.call(r,n))a=``;else if(u){a=i[0];continue}else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),a=``;else !V(a)&&!this.useRawValueToEscape&&(a=en(a));let s=t.safeValue(a);if(e=e.replace(i[0],s),u?(t.regex.lastIndex+=a.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),e}nest(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r,i,a,o=(e,t)=>{let n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;let r=e.split(RegExp(`${n}[ ]*{`)),i=`{${r[1]}`;e=r[0],i=this.interpolate(i,a);let o=i.match(/'/g),s=i.match(/"/g);(o&&o.length%2==0&&!s||s.length%2!=0)&&(i=i.replace(/'/g,`"`));try{a=JSON.parse(i),t&&(a={...t,...a})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${i}`}return a.defaultValue&&a.defaultValue.indexOf(this.prefix)>-1&&delete a.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let s=[];a={...n},a=a.replace&&!V(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let c=!1;if(r[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(r[1])){let e=r[1].split(this.formatSeparator).map(e=>e.trim());r[1]=e.shift(),s=e,c=!0}if(i=t(o.call(this,r[1].trim(),a),a),i&&r[0]===e&&!V(i))return i;V(i)||(i=en(i)),i||=(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),``),c&&(i=s.reduce((e,t)=>this.format(e,t,n.lng,{...n,interpolationkey:r[1].trim()}),i.trim())),e=e.replace(r[0],i),this.regexp.lastIndex=0}return e}},zn=e=>{let t=e.toLowerCase().trim(),n={};if(e.indexOf(`(`)>-1){let r=e.split(`(`);t=r[0].toLowerCase().trim();let i=r[1].substring(0,r[1].length-1);t===`currency`&&i.indexOf(`:`)<0?n.currency||=i.trim():t===`relativetime`&&i.indexOf(`:`)<0?n.range||=i.trim():i.split(`;`).forEach(e=>{if(e){let[t,...r]=e.split(`:`),i=r.join(`:`).trim().replace(/^'+|'+$/g,``),a=t.trim();n[a]||(n[a]=i),i===`false`&&(n[a]=!1),i===`true`&&(n[a]=!0),isNaN(i)||(n[a]=parseInt(i,10))}})}return{formatName:t,formatOptions:n}},Bn=e=>{let t={};return(n,r,i)=>{let a=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(a={...a,[i.interpolationkey]:void 0});let o=r+JSON.stringify(a),s=t[o];return s||(s=e(yn(r),i),t[o]=s),s(n)}},Vn=class{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=xn.create(`formatter`),this.options=e,this.formats={number:Bn((e,t)=>{let n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:Bn((e,t)=>{let n=new Intl.NumberFormat(e,{...t,style:`currency`});return e=>n.format(e)}),datetime:Bn((e,t)=>{let n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:Bn((e,t)=>{let n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||`day`)}),list:Bn((e,t)=>{let n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})},this.init(e)}init(e){this.formatSeparator=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation.formatSeparator||`,`}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=Bn(t)}format(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=t.split(this.formatSeparator);if(i.length>1&&i[0].indexOf(`(`)>1&&i[0].indexOf(`)`)<0&&i.find(e=>e.indexOf(`)`)>-1)){let e=i.findIndex(e=>e.indexOf(`)`)>-1);i[0]=[i[0],...i.splice(1,e)].join(this.formatSeparator)}return i.reduce((e,t)=>{let{formatName:i,formatOptions:a}=zn(t);if(this.formats[i]){let t=e;try{let o=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},s=o.locale||o.lng||r.locale||r.lng||n;t=this.formats[i](e,s,{...a,...r,...o})}catch(e){this.logger.warn(e)}return t}else this.logger.warn(`there was no format function for ${i}`);return e},e)}},Hn=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},Un=class extends Sn{constructor(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=xn.create(`backendConnector`),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,r.backend,r)}queueLoad(e,t,n,r){let i={},a={},o={},s={};return e.forEach(e=>{let r=!0;t.forEach(t=>{let o=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[o]=2:this.state[o]<0||(this.state[o]===1?a[o]===void 0&&(a[o]=!0):(this.state[o]=1,r=!1,a[o]===void 0&&(a[o]=!0),i[o]===void 0&&(i[o]=!0),s[t]===void 0&&(s[t]=!0)))}),r||(o[e]=!0)}),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){let r=e.split(`|`),i=r[0],a=r[1];t&&this.emit(`failedLoading`,i,a,t),!t&&n&&this.store.addResourceBundle(i,a,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);let o={};this.queue.forEach(n=>{sn(n.loaded,[i],a),Hn(n,e),t&&n.errors.push(t),n.pendingCount===0&&!n.done&&(Object.keys(n.loaded).forEach(e=>{o[e]||(o[e]={});let t=n.loaded[e];t.length&&t.forEach(t=>{o[e][t]===void 0&&(o[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit(`loaded`,o),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:i,callback:a});return}this.readingCalls++;let o=(o,s)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}if(o&&s&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,e,t,n,r+1,i*2,a)},i);return}a(o,s)},s=this.backend[n].bind(this.backend);if(s.length===2){try{let n=s(e,t);n&&typeof n.then==`function`?n.then(e=>o(null,e)).catch(o):o(null,n)}catch(e){o(e)}return}return s(e,t,o)}prepareLoading(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=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.`),r&&r();V(e)&&(e=this.languageUtils.toResolveHierarchy(e)),V(t)&&(t=[t]);let i=this.queueLoad(e,t,n,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:``,n=e.split(`|`),r=n[0],i=n[1];this.read(r,i,`read`,void 0,void 0,(n,a)=>{n&&this.logger.warn(`${t}loading namespace ${i} for language ${r} failed`,n),!n&&a&&this.logger.log(`${t}loaded namespace ${i} for language ${r}`,a),this.loaded(e,n,a)})}saveMissing(e,t,n,r,i){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${n}" as the namespace "${t}" 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(!(n==null||n===``)){if(this.backend&&this.backend.create){let s={...a,isUpdate:i},c=this.backend.create.bind(this.backend);if(c.length<6)try{let i;i=c.length===5?c(e,t,n,r,s):c(e,t,n,r),i&&typeof i.then==`function`?i.then(e=>o(null,e)).catch(o):o(null,i)}catch(e){o(e)}else c(e,t,n,r,o,s)}!e||!e[0]||this.store.addResource(e[0],t,n,r)}}},Wn=()=>({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]),V(e[1])&&(t.defaultValue=e[1]),V(e[2])&&(t.tDescription=e[2]),typeof e[2]==`object`||typeof e[3]==`object`){let n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:`{{`,suffix:`}}`,formatSeparator:`,`,unescapePrefix:`-`,nestingPrefix:`$t(`,nestingSuffix:`)`,nestingOptionsSeparator:`,`,maxReplaces:1e3,skipOnVariables:!0}}),Gn=e=>(V(e.ns)&&(e.ns=[e.ns]),V(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),V(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf(`cimode`)<0&&(e.supportedLngs=e.supportedLngs.concat([`cimode`])),e),Kn=()=>{},qn=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{typeof e[t]==`function`&&(e[t]=e[t].bind(e))})},Jn=class e extends Sn{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Gn(e),this.services={},this.logger=xn,this.modules={external:[]},qn(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(){var e=this;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof t==`function`&&(n=t,t={}),!t.defaultNS&&t.defaultNS!==!1&&t.ns&&(V(t.ns)?t.defaultNS=t.ns:t.ns.indexOf(`translation`)<0&&(t.defaultNS=t.ns[0]));let r=Wn();this.options={...r,...this.options,...Gn(t)},this.options.compatibilityAPI!==`v1`&&(this.options.interpolation={...r.interpolation,...this.options.interpolation}),t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator);let i=e=>e?typeof e==`function`?new e:e:null;if(!this.options.isClone){this.modules.logger?xn.init(i(this.modules.logger),this.options):xn.init(null,this.options);let t;this.modules.formatter?t=this.modules.formatter:typeof Intl<`u`&&(t=Vn);let n=new On(this.options);this.store=new Cn(this.options.resources,this.options);let a=this.services;a.logger=xn,a.resourceStore=this.store,a.languageUtils=n,a.pluralResolver=new Fn(n,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),t&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(a.formatter=i(t),a.formatter.init(a,this.options),this.options.interpolation.format=a.formatter.format.bind(a.formatter)),a.interpolator=new Rn(this.options),a.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},a.backendConnector=new Un(i(this.modules.backend),a.resourceStore,a,this.options),a.backendConnector.on(`*`,function(t){var n=[...arguments].slice(1);e.emit(t,...n)}),this.modules.languageDetector&&(a.languageDetector=i(this.modules.languageDetector),a.languageDetector.init&&a.languageDetector.init(a,this.options.detection,this.options)),this.modules.i18nFormat&&(a.i18nFormat=i(this.modules.i18nFormat),a.i18nFormat.init&&a.i18nFormat.init(this)),this.translator=new En(this.services,this.options),this.translator.on(`*`,function(t){var n=[...arguments].slice(1);e.emit(t,...n)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,n||=Kn,this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&e[0]!==`dev`&&(this.options.lng=e[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(t=>{this[t]=function(){return e.store[t](...arguments)}}),[`addResource`,`addResources`,`addResourceBundle`,`removeResourceBundle`].forEach(t=>{this[t]=function(){return e.store[t](...arguments),e}});let a=$t(),o=()=>{let e=(e,t)=>{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(t),n(e,t)};if(this.languages&&this.options.compatibilityAPI!==`v1`&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initImmediate?o():setTimeout(o,0),a}loadResources(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Kn,n=V(e)?e:this.language;if(typeof e==`function`&&(t=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&n.toLowerCase()===`cimode`&&(!this.options.preload||this.options.preload.length===0))return t();let e=[],r=t=>{t&&t!==`cimode`&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{t!==`cimode`&&e.indexOf(t)<0&&e.push(t)})};n?r(n):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>r(e)),this.options.preload&&this.options.preload.forEach(e=>r(e)),this.services.backendConnector.load(e,this.options.ns,e=>{!e&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),t(e)})}else t(null)}reloadResources(e,t,n){let r=$t();return typeof e==`function`&&(n=e,e=void 0),typeof t==`function`&&(n=t,t=void 0),e||=this.languages,t||=this.options.ns,n||=Kn,this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw Error(`You are passing an undefined module! Please check the object you are passing to i18next.use()`);if(!e.type)throw Error(`You are passing a wrong module! Please check the object you are passing to i18next.use()`);return e.type===`backend`&&(this.modules.backend=e),(e.type===`logger`||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type===`languageDetector`&&(this.modules.languageDetector=e),e.type===`i18nFormat`&&(this.modules.i18nFormat=e),e.type===`postProcessor`&&wn.addPostProcessor(e),e.type===`formatter`&&(this.modules.formatter=e),e.type===`3rdParty`&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!([`cimode`,`dev`].indexOf(e)>-1))for(let e=0;e<this.languages.length;e++){let t=this.languages[e];if(!([`cimode`,`dev`].indexOf(t)>-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}}changeLanguage(e,t){var n=this;this.isLanguageChangingTo=e;let r=$t();this.emit(`languageChanging`,e);let i=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},a=(e,a)=>{a?(i(a),this.translator.changeLanguage(a),this.isLanguageChangingTo=void 0,this.emit(`languageChanged`,a),this.logger.log(`languageChanged`,a)):this.isLanguageChangingTo=void 0,r.resolve(function(){return n.t(...arguments)}),t&&t(e,function(){return n.t(...arguments)})},o=t=>{!e&&!t&&this.services.languageDetector&&(t=[]);let n=V(t)?t:this.services.languageUtils.getBestMatchFromCodes(t);n&&(this.language||i(n),this.translator.language||this.translator.changeLanguage(n),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(n)),this.loadResources(n,e=>{a(e,n)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?o(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(o):this.services.languageDetector.detect(o):o(e),r}getFixedT(e,t,n){var r=this;let i=function(e,t){let a;if(typeof t!=`object`){var o=[...arguments].slice(2);a=r.options.overloadTranslationOptionHandler([e,t].concat(o))}else a={...t};a.lng=a.lng||i.lng,a.lngs=a.lngs||i.lngs,a.ns=a.ns||i.ns,a.keyPrefix!==``&&(a.keyPrefix=a.keyPrefix||n||i.keyPrefix);let s=r.options.keySeparator||`.`,c;return c=a.keyPrefix&&Array.isArray(e)?e.map(e=>`${a.keyPrefix}${s}${e}`):a.keyPrefix?`${a.keyPrefix}${s}${e}`:e,r.t(c,a)};return V(e)?i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=n,i}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=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;let n=t.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(n.toLowerCase()===`cimode`)return!0;let a=(e,t)=>{let n=this.services.backendConnector.state[`${e}|${t}`];return n===-1||n===0||n===2};if(t.precheck){let e=t.precheck(this,a);if(e!==void 0)return e}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(n,e)&&(!r||a(i,e)))}loadNamespaces(e,t){let n=$t();return this.options.ns?(V(e)&&(e=[e]),e.forEach(e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){let n=$t();V(e)&&(e=[e]);let r=this.options.preload||[],i=e.filter(e=>r.indexOf(e)<0&&this.services.languageUtils.isSupportedCode(e));return i.length?(this.options.preload=r.concat(i),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language),!e)return`rtl`;let t=`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`.split(`.`),n=this.services&&this.services.languageUtils||new On(Wn());return t.indexOf(n.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf(`-arab`)>1?`rtl`:`ltr`}static createInstance(){return new e(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Kn,r=t.forkResourceStore;r&&delete t.forkResourceStore;let i={...this.options,...t,isClone:!0},a=new e(i);return(t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),[`store`,`services`,`language`].forEach(e=>{a[e]=this[e]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},r&&(a.store=new Cn(this.store.data,i),a.services.resourceStore=a.store),a.translator=new En(a.services,i),a.translator.on(`*`,function(e){var t=[...arguments].slice(1);a.emit(e,...t)}),a.init(i,n),a.translator.options=i,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}},U=Jn.createInstance();U.createInstance=Jn.createInstance,U.createInstance,U.dir,U.init,U.loadResources,U.reloadResources,U.use,U.changeLanguage,U.getFixedT,U.t,U.exists,U.setDefaultNamespace,U.hasLoadedNamespace,U.loadNamespaces,U.loadLanguages;var Yn=[{code:`af`,label:`Afrikaans`},{code:`ar`,label:`Arabic`},{code:`bg`,label:`Bulgarian`},{code:`bn`,label:`Bengali`},{code:`bs`,label:`Bosnian`},{code:`ca`,label:`Catalan`},{code:`cs`,label:`Czech`},{code:`da`,label:`Danish`},{code:`de`,label:`German`},{code:`de-CH`,label:`Swiss German`},{code:`el`,label:`Greek`},{code:`en`,label:`English`},{code:`eo`,label:`Esperanto`},{code:`es`,label:`Spanish`},{code:`et`,label:`Estonian`},{code:`eu`,label:`Basque`},{code:`fa`,label:`Persian/Farsi`},{code:`fi`,label:`Finnish`},{code:`fr`,label:`French`},{code:`gd`,label:`Gaelic (Scottish)`},{code:`he`,label:`Hebrew`},{code:`hi`,label:`Hindi`},{code:`hr`,label:`Croatian`},{code:`hu`,label:`Hungarian`},{code:`id`,label:`Indonesian`},{code:`is`,label:`Icelandic`},{code:`it`,label:`Italian`},{code:`ja`,label:`Japanese`},{code:`ko`,label:`Korean`},{code:`kz`,label:`Kazakh`},{code:`lt`,label:`Lithuanian`},{code:`lv`,label:`Latvian`},{code:`mk`,label:`Macedonian`},{code:`mn`,label:`Mongolian`},{code:`ms`,label:`Malay`},{code:`nb`,label:`Norwegian Bokmål`},{code:`ne`,label:`Nepali`},{code:`nl`,label:`Dutch`},{code:`nn`,label:`Norwegian Nynorsk`},{code:`pa`,label:`Punjabi`},{code:`pl`,label:`Polish`},{code:`pt`,label:`Portuguese`},{code:`pt-BR`,label:`Portuguese (Brazil)`},{code:`ro`,label:`Romanian`},{code:`ru`,label:`Russian`},{code:`si`,label:`Sinhala`},{code:`sk`,label:`Slovak`},{code:`sl`,label:`Slovenian`},{code:`sq`,label:`Albanian`},{code:`sr`,label:`Serbian`},{code:`sr-Cyrl`,label:`Serbian (Cyrillic)`},{code:`sv`,label:`Swedish`},{code:`sw`,label:`Swahili`},{code:`ta`,label:`Tamil`},{code:`th`,label:`Thai`},{code:`tr`,label:`Turkish`},{code:`uk`,label:`Ukrainian`},{code:`ur`,label:`Urdu`},{code:`uz`,label:`Uzbek`},{code:`vi`,label:`Vietnamese`},{code:`zh`,label:`Chinese`},{code:`zh-Hant`,label:`Traditional Chinese`}],Xn=s({LOCALE_DATA:()=>Yn,SUPPORTED_LOCALES:()=>Zn,createGenerateResources:()=>$n,createI18n:()=>er,mergeDefaultExport:()=>Qn},1),Zn=Yn.map(e=>e.code);function Qn(e){return{...e,...e.default&&typeof e.default==`object`?e.default:{}}}function $n(e){return function(t,n){return t.reduce((t,r)=>{let i=e(r,n);return i===void 0&&(i=e(`en`,n)),t[r]={[n]:Qn(i||{})},t},{})}}function er({generateThemeResources:e,generateResources:t}){return(n=`en`,r=`portal`,i={})=>{let a=U.createInstance(),o={prefix:`{`,suffix:`}`};(r===`theme`||r===`portal`)&&(o.escapeValue=!1);let s;return s=r===`theme`?e(n,i):t(Zn,r),a.init({lng:n,nsSeparator:!1,keySeparator:!1,returnEmptyString:!1,fallbackLng:{no:[`nb`,`en`],default:[`en`]},ns:r,defaultNS:r,interpolation:o,resources:s}),a}}var{createI18n:tr,createGenerateResources:nr,LOCALE_DATA:rr,SUPPORTED_LOCALES:ir}=Xn;function ar(e,t){let n={};for(let[t,r]of Object.entries(e))n[t.match(/\/locales\/([^/]+)\//)[1]]=r;return or(n,t)}function or(e,t){let n=nr(t=>e[t]);function r(e){return{[e]:{theme:{}}}}let i=tr({generateResources:n,generateThemeResources:r});return i.LOCALE_DATA=rr,i.SUPPORTED_LOCALES=ir,i.generateResources=n,i.namespace=t,i.default=i,i}var sr={Authors:``,Cancel:``,"No matches found":``,Posts:``,"Search posts, tags and authors":``,"Show more results":``,Tags:``},cr={Authors:`الكتّاب`,Cancel:`إلغاء`,"No matches found":`لا يوجد نتائج مطابقة`,Posts:`منشورات`,"Search posts, tags and authors":`قم بالبحث عن المنشورات، الوسوم و الكتّاب`,"Show more results":`اظهر المزيد من النتائج`,Tags:`الوسوم`},lr={Authors:`Автори`,Cancel:`Отказ`,"No matches found":`Няма съвпадения`,Posts:`Публикации`,"Search posts, tags and authors":`Търсене в публикации, етикети и автори`,"Show more results":`Покажи още резултати`,Tags:`Етикети`},ur={Authors:``,Cancel:``,"No matches found":``,Posts:``,"Search posts, tags and authors":``,"Show more results":``,Tags:``},dr={Authors:``,Cancel:``,"No matches found":``,Posts:``,"Search posts, tags and authors":``,"Show more results":``,Tags:``},fr={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`},pr={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`},mr={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`},hr={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`},gr={Authors:`Autoren`,Cancel:`Abbrechen`,"No matches found":`Keine Treffer gefunden`,Posts:`Beiträge`,"Search posts, tags and authors":`Nach Posts, Tags und Autoren suchen`,"Show more results":`Mehr Ergebnisse anzeigen`,Tags:`Tags`},_r={Authors:``,Cancel:``,"No matches found":``,Posts:``,"Search posts, tags and authors":``,"Show more results":``,Tags:``},vr={Authors:``,Cancel:``,"No matches found":``,Posts:``,"Search posts, tags and authors":``,"Show more results":``,Tags:``},yr={Authors:``,Cancel:``,"No matches found":``,Posts:``,"Search posts, tags and authors":``,"Show more results":``,Tags:``},br={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`},xr={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`},Sr={Authors:`Autoreak`,Cancel:`Utzi`,"No matches found":`Ez da bat datorren ezer topatu`,Posts:`Artikuluak`,"Search posts, tags and authors":`Bilatu artikuluak, etiketak eta autoreak`,"Show more results":`Erakutsi emaitza gehiago`,Tags:`Etiketak`},Cr={Authors:`نویسندگان`,Cancel:`لغو`,"No matches found":`موردی یافت نشد`,Posts:`نوشتهها`,"Search posts, tags and authors":`جستوجوی نوشتهها، برچسبها و نویسندگان`,"Show more results":`نمایش نتایج بیشتر`,Tags:`برچسبها`},wr={Authors:`Kirjoittajat`,Cancel:`Peruuta`,"No matches found":`Ei hakutuloksia`,Posts:`Kirjoitukset`,"Search posts, tags and authors":`Etsi kirjoituksia, tunnisteita ja kirjoittajia`,"Show more results":`Näytä enemmän tuloksia`,Tags:`Tunnisteet`},Tr={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`},Er={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`},Dr={Authors:`מחברים`,Cancel:`ביטול`,"No matches found":`לא נמצאו התאמות`,Posts:`פוסטים`,"Search posts, tags and authors":`חיפוש פוסטים, תגיות ומחברים`,"Show more results":`הצגת תוצאות נוספות`,Tags:`תגיות`},Or={Authors:`लेखक`,Cancel:`रद्द करें`,"No matches found":`कोई मैच नहीं मिला`,Posts:`पोस्ट`,"Search posts, tags and authors":`पोस्ट, टैग और लेखक की तलाश करें`,"Show more results":`और परिणाम दिखाएं`,Tags:`टैग`},kr={Authors:``,Cancel:``,"No matches found":``,Posts:``,"Search posts, tags and authors":``,"Show more results":``,Tags:``},Ar={Authors:`Szerzők`,Cancel:`Mégse`,"No matches found":`Nincs találat`,Posts:`Bejegyzések`,"Search posts, tags and authors":`Keresés a bejegyzések, a címkék és a szerzők között`,"Show more results":`További találatok megjelenítése`,Tags:`Címkék`},jr={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`},Mr={Authors:``,Cancel:``,"No matches found":``,Posts:``,"Search posts, tags and authors":``,"Show more results":``,Tags:``},Nr={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`},Pr={Authors:``,Cancel:``,"No matches found":``,Posts:``,"Search posts, tags and authors":``,"Show more results":``,Tags:``},Fr={Authors:`작성자`,Cancel:`취소`,"No matches found":`일치하는 결과가 없어요`,Posts:`게시물`,"Search posts, tags and authors":`게시물, 태그, 작성자 검색`,"Show more results":`더 많은 결과 보기`,Tags:`태그`},Ir={Authors:``,Cancel:``,"No matches found":``,Posts:``,"Search posts, tags and authors":``,"Show more results":``,Tags:``},Lr={Authors:`Autoriai`,Cancel:`Atšaukti`,"No matches found":`Atitikmenų nerasta`,Posts:`Įrašai`,"Search posts, tags and authors":`Ieškoti įrašų, žymų ir autorių`,"Show more results":`Rodyti daugiau rezultatų`,Tags:`Žymos`},Rr={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`},zr={Authors:``,Cancel:``,"No matches found":``,Posts:``,"Search posts, tags and authors":``,"Show more results":``,Tags:``},Br={Authors:`Нийтлэгчид`,Cancel:`Цуцлах`,"No matches found":`Тохирох хайлтын үр дүн олдсонгүй`,Posts:`Нийтлэлүүд`,"Search posts, tags and authors":`Нийтлэл, ангилал, нийтлэгчдээр хайх`,"Show more results":`Илүү олон үр дүн харуулах`,Tags:`Ангилалууд`},Vr={Authors:``,Cancel:``,"No matches found":``,Posts:``,"Search posts, tags and authors":``,"Show more results":``,Tags:``},Hr={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`},Ur={Authors:`लेखकहरू`,Cancel:`रद्द गर्नुहोस्`,"No matches found":`कुनै परिणाम भेटिएन`,Posts:`पोस्टहरू`,"Search posts, tags and authors":`पोस्टहरू, ट्यागहरू र लेखकहरू खोज्नुहोस्`,"Show more results":`थप परिणामहरू देखाउनुहोस्`,Tags:`ट्यागहरू`},Wr={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`},Gr={Authors:``,Cancel:``,"No matches found":``,Posts:``,"Search posts, tags and authors":``,"Show more results":``,Tags:``},Kr={Authors:`ਲੇਖਕ`,Cancel:`ਰੱਦ ਕਰੋ`,"No matches found":`ਕੋਈ ਮੇਲ ਨਹੀਂ ਮਿਲਿਆ`,Posts:`ਪੋਸਟਾਂ`,"Search posts, tags and authors":`ਪੋਸਟਾਂ, ਟੈਗ ਅਤੇ ਲੇਖਕ ਖੋਜੋ`,"Show more results":`ਹੋਰ ਨਤੀਜੇ ਦਿਖਾਓ`,Tags:`ਟੈਗ`},qr={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`},Jr={Authors:`Autores`,Cancel:`Cancelar`,"No matches found":`Nenhum resultado encontrado`,Posts:`Publicações`,"Search posts, tags and authors":`Procurar publicações, marcadores e autores`,"Show more results":`Mostrar mais resultados`,Tags:`Marcadores`},Yr={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`},Xr={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`},Zr={Authors:`Авторы`,Cancel:`Отмена`,"No matches found":`Совпадений не найдено`,Posts:`Записи`,"Search posts, tags and authors":`Поиск по записям, тегам и авторам`,"Show more results":`Показать больше результатов`,Tags:`Теги`},W={Authors:``,Cancel:``,"No matches found":``,Posts:``,"Search posts, tags and authors":``,"Show more results":``,Tags:``},Qr={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`},$r={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`},ei={Authors:`Autorët`,Cancel:`Anulo`,"No matches found":`Nuk u gjet asnjë rezultat`,Posts:`Postimet`,"Search posts, tags and authors":`Kërko postime, etiketa dhe autorë`,"Show more results":`Shfaq më shumë rezultate`,Tags:`Etiketat`},ti={Authors:`Autori`,Cancel:`Otkažite`,"No matches found":`Nema rezultata`,Posts:`Objave`,"Search posts, tags and authors":`Pretražite objave, tag-ove i autore`,"Show more results":`Prikažite više rezultata`,Tags:`Tag-ovi`},ni={Authors:`Аутори`,Cancel:`Откажите`,"No matches found":`Нема резултата`,Posts:`Објаве`,"Search posts, tags and authors":`Претражите објаве, tag-ове и ауторе`,"Show more results":`Прикажите више резултата`,Tags:`Tag-ови`},ri={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`},ii={Authors:``,Cancel:``,"No matches found":``,Posts:``,"Search posts, tags and authors":``,"Show more results":``,Tags:``},ai={Authors:`ஆசிரியர்கள்`,Cancel:`ரத்து செய்`,"No matches found":`பொருத்தங்கள் எதுவும் இல்லை`,Posts:`பதிவுகள்`,"Search posts, tags and authors":`பதிவுகள், குறிச்சொற்கள் மற்றும் ஆசிரியர்களைத் தேடுங்கள்`,"Show more results":`மேலும் முடிவுகளைக் காட்டு`,Tags:`குறிச்சொற்கள்`},oi={Authors:``,Cancel:``,"No matches found":``,Posts:``,"Search posts, tags and authors":``,"Show more results":``,Tags:``},si={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`},ci={Authors:`Автори`,Cancel:`Скасувати`,"No matches found":`Збігів не знайдено`,Posts:`Публікації`,"Search posts, tags and authors":`Шукайте публікацій, теги та авторів`,"Show more results":`Показати більше результатів`,Tags:`Теги`},li={Authors:``,Cancel:``,"No matches found":``,Posts:``,"Search posts, tags and authors":``,"Show more results":``,Tags:``},ui={Authors:``,Cancel:``,"No matches found":``,Posts:``,"Search posts, tags and authors":``,"Show more results":``,Tags:``},di={Authors:`Tác giả`,Cancel:`Hủy`,"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, thẻ và tác giả`,"Show more results":`Xem thêm kết quả`,Tags:`Thẻ`},fi={Authors:`作者`,Cancel:`取消`,"No matches found":`未找到匹配项`,Posts:`文章`,"Search posts, tags and authors":`搜索文章、标签和作者`,"Show more results":`显示更多结果`,Tags:`标签`},pi={Authors:`作者`,Cancel:`取消`,"No matches found":`無相符結果`,Posts:`文章`,"Search posts, tags and authors":`搜尋文章、標籤與作者`,"Show more results":`更多結果`,Tags:`標籤`},mi=ar({"../../locales/af/search.json":sr,"../../locales/ar/search.json":cr,"../../locales/bg/search.json":lr,"../../locales/bn/search.json":ur,"../../locales/bs/search.json":dr,"../../locales/ca/search.json":fr,"../../locales/cs/search.json":pr,"../../locales/da/search.json":mr,"../../locales/de/search.json":hr,"../../locales/de-CH/search.json":gr,"../../locales/el/search.json":_r,"../../locales/en/search.json":vr,"../../locales/eo/search.json":yr,"../../locales/es/search.json":br,"../../locales/et/search.json":xr,"../../locales/eu/search.json":Sr,"../../locales/fa/search.json":Cr,"../../locales/fi/search.json":wr,"../../locales/fr/search.json":Tr,"../../locales/gd/search.json":Er,"../../locales/he/search.json":Dr,"../../locales/hi/search.json":Or,"../../locales/hr/search.json":kr,"../../locales/hu/search.json":Ar,"../../locales/id/search.json":jr,"../../locales/is/search.json":Mr,"../../locales/it/search.json":Nr,"../../locales/ja/search.json":Pr,"../../locales/ko/search.json":Fr,"../../locales/kz/search.json":Ir,"../../locales/lt/search.json":Lr,"../../locales/lv/search.json":Rr,"../../locales/mk/search.json":zr,"../../locales/mn/search.json":Br,"../../locales/ms/search.json":Vr,"../../locales/nb/search.json":Hr,"../../locales/ne/search.json":Ur,"../../locales/nl/search.json":Wr,"../../locales/nn/search.json":Gr,"../../locales/pa/search.json":Kr,"../../locales/pl/search.json":qr,"../../locales/pt/search.json":Jr,"../../locales/pt-BR/search.json":Yr,"../../locales/ro/search.json":Xr,"../../locales/ru/search.json":Zr,"../../locales/si/search.json":W,"../../locales/sk/search.json":Qr,"../../locales/sl/search.json":$r,"../../locales/sq/search.json":ei,"../../locales/sr/search.json":ti,"../../locales/sr-Cyrl/search.json":ni,"../../locales/sv/search.json":ri,"../../locales/sw/search.json":ii,"../../locales/ta/search.json":ai,"../../locales/th/search.json":oi,"../../locales/tr/search.json":si,"../../locales/uk/search.json":ci,"../../locales/ur/search.json":li,"../../locales/uz/search.json":ui,"../../locales/vi/search.json":di,"../../locales/zh/search.json":fi,"../../locales/zh-Hant/search.json":pi},`search`),hi=mi;let{LOCALE_DATA:gi,SUPPORTED_LOCALES:_i,generateResources:vi}=mi;var yi=class extends v.Component{constructor(e){super(e);let t=hi(this.props.locale||`en`,`search`),n=t.dir()||`ltr`;this.state={searchIndex:new Qt({adminUrl:e.adminUrl,apiKey:e.apiKey,dir:n}),showPopup:!1,indexStarted:!1,indexComplete:!1,t:t.t,dir:n,scrollbarWidth:0},this.inputRef=v.createRef()}componentDidMount(){let e=this.getScrollbarWidth();this.setState({scrollbarWidth:e}),this.initSetup()}componentDidUpdate(e,t){if(t.showPopup!==this.state.showPopup)try{this.state.showPopup?(this.bodyScroll=window.document?.body?.style?.overflow,this.bodyMargin=window.getComputedStyle(document.body).getPropertyValue(`margin-right`),window.document.body.style.overflow=`hidden`,this.state.scrollbarWidth&&document.body.scrollHeight>window.innerHeight&&(window.document.body.style.marginRight=`calc(${this.bodyMargin} + ${this.state.scrollbarWidth}px)`)):(window.document.body.style.overflow=this.bodyScroll||``,!this.bodyMargin||this.bodyMargin===`0px`?window.document.body.style.marginRight=``:window.document.body.style.marginRight=this.bodyMargin)}catch{}this.state.showPopup!==t?.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)}getScrollbarWidth(){let e=document.createElement(`div`);e.style.visibility=`hidden`,e.style.overflow=`scroll`,document.body.appendChild(e);let t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}setupCustomTriggerButton(){this.clickHandler=e=>{e.preventDefault(),this.setState({showPopup:!0});let t=document.createElement(`input`);t.style.opacity=`0`,t.style.position=`fixed`,t.style.top=`0`,document.body.appendChild(t),t.focus(),setTimeout(()=>{this.inputRef.current.focus(),document.body.removeChild(t)},150)},this.customTriggerButtons=this.getCustomTriggerButtons(),this.customTriggerButtons.forEach(e=>{e.removeEventListener(`click`,this.clickHandler),e.addEventListener(`click`,this.clickHandler)})}getCustomTriggerButtons(){return document.querySelectorAll(`[data-ghost-search]`)||[]}handleSearchUrl(){let[e]=window.location.hash.substr(1).split(`?`);(e===`/search`||e===`/search/`)&&(this.setState({showPopup:!0}),window.history.replaceState(``,document.title,window.location.pathname))}addKeyboardShortcuts(){this.getCustomTriggerButtons()?.length&&(this.handleKeyDown=e=>{if(e.key===`k`&&e.metaKey)return this.setState({showPopup:!0}),e.preventDefault(),e.stopPropagation(),!1},document.addEventListener(`keydown`,this.handleKeyDown))}render(){return(0,x.jsx)(y.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:(e,t)=>{e===`update`&&this.setState({...this.state,...t})},t:this.state.t,dir:this.state.dir},children:(0,x.jsx)(me,{})})}},bi=l(g(),1),xi=`sodo-search-root`;function Si(){let e=document.createElement(`div`);e.id=xi,document.body.appendChild(e)}function Ci(){let e=document.querySelector(`script[data-sodo-search]`);return e?{adminUrl:e.dataset.sodoSearch,apiKey:e.dataset.key,stylesUrl:e.dataset.styles,locale:e.dataset.locale||`en`}:{}}function wi(){Si()}function Ti(){let{adminUrl:e,apiKey:t,stylesUrl:n,locale:r}=Ci(),i=(e||window.location.origin)?.replace(/\/+$/,``);wi(),bi.render((0,x.jsx)(v.default.StrictMode,{children:(0,x.jsx)(yi,{adminUrl:i,apiKey:t,stylesUrl:n,locale:r})}),document.getElementById(xi))}Ti()});
|