@growthub/cli 0.3.59 → 0.3.60
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/assets/worker-kits/growthub-zernio-social-v1/.env.example +5 -0
- package/assets/worker-kits/growthub-zernio-social-v1/QUICKSTART.md +36 -4
- package/assets/worker-kits/growthub-zernio-social-v1/bundles/growthub-zernio-social-v1.json +30 -1
- package/assets/worker-kits/growthub-zernio-social-v1/docs/growthub-agentic-social-platform-ui-shell.md +134 -0
- package/assets/worker-kits/growthub-zernio-social-v1/docs/local-adapters.md +2 -2
- package/assets/worker-kits/growthub-zernio-social-v1/growthub-meta/README.md +5 -8
- package/assets/worker-kits/growthub-zernio-social-v1/growthub-meta/kit-standard.md +1 -1
- package/assets/worker-kits/growthub-zernio-social-v1/kit.json +33 -1
- package/assets/worker-kits/growthub-zernio-social-v1/skills.md +1 -1
- package/assets/worker-kits/growthub-zernio-social-v1/studio/.env.example +3 -0
- package/assets/worker-kits/growthub-zernio-social-v1/studio/dist/assets/index-DTmBMuXr.js +78 -0
- package/assets/worker-kits/growthub-zernio-social-v1/studio/dist/assets/index-gHr-nTMF.css +1 -0
- package/assets/worker-kits/growthub-zernio-social-v1/studio/dist/index.html +14 -0
- package/assets/worker-kits/growthub-zernio-social-v1/studio/index.html +13 -0
- package/assets/worker-kits/growthub-zernio-social-v1/studio/package-lock.json +1677 -0
- package/assets/worker-kits/growthub-zernio-social-v1/studio/package.json +20 -0
- package/assets/worker-kits/growthub-zernio-social-v1/studio/serve.mjs +60 -0
- package/assets/worker-kits/growthub-zernio-social-v1/studio/src/App.jsx +130 -0
- package/assets/worker-kits/growthub-zernio-social-v1/studio/src/api.js +146 -0
- package/assets/worker-kits/growthub-zernio-social-v1/studio/src/app.css +558 -0
- package/assets/worker-kits/growthub-zernio-social-v1/studio/src/lib/rules.js +64 -0
- package/assets/worker-kits/growthub-zernio-social-v1/studio/src/lib/templates.js +207 -0
- package/assets/worker-kits/growthub-zernio-social-v1/studio/src/main.jsx +10 -0
- package/assets/worker-kits/growthub-zernio-social-v1/studio/src/views/Accounts.jsx +57 -0
- package/assets/worker-kits/growthub-zernio-social-v1/studio/src/views/Agent.jsx +167 -0
- package/assets/worker-kits/growthub-zernio-social-v1/studio/src/views/Analytics.jsx +164 -0
- package/assets/worker-kits/growthub-zernio-social-v1/studio/src/views/ApiKeys.jsx +143 -0
- package/assets/worker-kits/growthub-zernio-social-v1/studio/src/views/Automations.jsx +122 -0
- package/assets/worker-kits/growthub-zernio-social-v1/studio/src/views/CommentRules.jsx +592 -0
- package/assets/worker-kits/growthub-zernio-social-v1/studio/src/views/Compose.jsx +185 -0
- package/assets/worker-kits/growthub-zernio-social-v1/studio/src/views/Dashboard.jsx +87 -0
- package/assets/worker-kits/growthub-zernio-social-v1/studio/src/views/Inbox.jsx +144 -0
- package/assets/worker-kits/growthub-zernio-social-v1/studio/src/views/Queues.jsx +167 -0
- package/assets/worker-kits/growthub-zernio-social-v1/studio/src/views/Scheduled.jsx +85 -0
- package/assets/worker-kits/growthub-zernio-social-v1/studio/src/views/Sequences.jsx +160 -0
- package/assets/worker-kits/growthub-zernio-social-v1/studio/src/views/Templates.jsx +275 -0
- package/assets/worker-kits/growthub-zernio-social-v1/studio/vite.config.js +7 -0
- package/assets/worker-kits/growthub-zernio-social-v1/workers/zernio-social-operator/CLAUDE.md +3 -3
- package/dist/index.js +1183 -592
- package/package.json +1 -1
- package/assets/worker-kits/growthub-zernio-social-v1/docs/postiz-ui-shell-integration.md +0 -166
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const s of l)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(l){const s={};return l.integrity&&(s.integrity=l.integrity),l.referrerPolicy&&(s.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?s.credentials="include":l.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(l){if(l.ep)return;l.ep=!0;const s=n(l);fetch(l.href,s)}})();var Pa={exports:{}},kl={},Ta={exports:{}},M={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var yr=Symbol.for("react.element"),Zc=Symbol.for("react.portal"),Jc=Symbol.for("react.fragment"),ed=Symbol.for("react.strict_mode"),td=Symbol.for("react.profiler"),nd=Symbol.for("react.provider"),rd=Symbol.for("react.context"),ld=Symbol.for("react.forward_ref"),sd=Symbol.for("react.suspense"),id=Symbol.for("react.memo"),od=Symbol.for("react.lazy"),po=Symbol.iterator;function ad(e){return e===null||typeof e!="object"?null:(e=po&&e[po]||e["@@iterator"],typeof e=="function"?e:null)}var La={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},za=Object.assign,Ia={};function _n(e,t,n){this.props=e,this.context=t,this.refs=Ia,this.updater=n||La}_n.prototype.isReactComponent={};_n.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};_n.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Aa(){}Aa.prototype=_n.prototype;function ci(e,t,n){this.props=e,this.context=t,this.refs=Ia,this.updater=n||La}var di=ci.prototype=new Aa;di.constructor=ci;za(di,_n.prototype);di.isPureReactComponent=!0;var ho=Array.isArray,Da=Object.prototype.hasOwnProperty,fi={current:null},Oa={key:!0,ref:!0,__self:!0,__source:!0};function Ra(e,t,n){var r,l={},s=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(s=""+t.key),t)Da.call(t,r)&&!Oa.hasOwnProperty(r)&&(l[r]=t[r]);var a=arguments.length-2;if(a===1)l.children=n;else if(1<a){for(var u=Array(a),c=0;c<a;c++)u[c]=arguments[c+2];l.children=u}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)l[r]===void 0&&(l[r]=a[r]);return{$$typeof:yr,type:e,key:s,ref:o,props:l,_owner:fi.current}}function ud(e,t){return{$$typeof:yr,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function mi(e){return typeof e=="object"&&e!==null&&e.$$typeof===yr}function cd(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var yo=/\/+/g;function Ul(e,t){return typeof e=="object"&&e!==null&&e.key!=null?cd(""+e.key):t.toString(36)}function $r(e,t,n,r,l){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(s){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case yr:case Zc:o=!0}}if(o)return o=e,l=l(o),e=r===""?"."+Ul(o,0):r,ho(l)?(n="",e!=null&&(n=e.replace(yo,"$&/")+"/"),$r(l,t,n,"",function(c){return c})):l!=null&&(mi(l)&&(l=ud(l,n+(!l.key||o&&o.key===l.key?"":(""+l.key).replace(yo,"$&/")+"/")+e)),t.push(l)),1;if(o=0,r=r===""?".":r+":",ho(e))for(var a=0;a<e.length;a++){s=e[a];var u=r+Ul(s,a);o+=$r(s,t,n,u,l)}else if(u=ad(e),typeof u=="function")for(e=u.call(e),a=0;!(s=e.next()).done;)s=s.value,u=r+Ul(s,a++),o+=$r(s,t,n,u,l);else if(s==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function jr(e,t,n){if(e==null)return e;var r=[],l=0;return $r(e,r,"","",function(s){return t.call(n,s,l++)}),r}function dd(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var ge={current:null},Ur={transition:null},fd={ReactCurrentDispatcher:ge,ReactCurrentBatchConfig:Ur,ReactCurrentOwner:fi};function Ma(){throw Error("act(...) is not supported in production builds of React.")}M.Children={map:jr,forEach:function(e,t,n){jr(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return jr(e,function(){t++}),t},toArray:function(e){return jr(e,function(t){return t})||[]},only:function(e){if(!mi(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};M.Component=_n;M.Fragment=Jc;M.Profiler=td;M.PureComponent=ci;M.StrictMode=ed;M.Suspense=sd;M.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=fd;M.act=Ma;M.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=za({},e.props),l=e.key,s=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,o=fi.current),t.key!==void 0&&(l=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(u in t)Da.call(t,u)&&!Oa.hasOwnProperty(u)&&(r[u]=t[u]===void 0&&a!==void 0?a[u]:t[u])}var u=arguments.length-2;if(u===1)r.children=n;else if(1<u){a=Array(u);for(var c=0;c<u;c++)a[c]=arguments[c+2];r.children=a}return{$$typeof:yr,type:e.type,key:l,ref:s,props:r,_owner:o}};M.createContext=function(e){return e={$$typeof:rd,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:nd,_context:e},e.Consumer=e};M.createElement=Ra;M.createFactory=function(e){var t=Ra.bind(null,e);return t.type=e,t};M.createRef=function(){return{current:null}};M.forwardRef=function(e){return{$$typeof:ld,render:e}};M.isValidElement=mi;M.lazy=function(e){return{$$typeof:od,_payload:{_status:-1,_result:e},_init:dd}};M.memo=function(e,t){return{$$typeof:id,type:e,compare:t===void 0?null:t}};M.startTransition=function(e){var t=Ur.transition;Ur.transition={};try{e()}finally{Ur.transition=t}};M.unstable_act=Ma;M.useCallback=function(e,t){return ge.current.useCallback(e,t)};M.useContext=function(e){return ge.current.useContext(e)};M.useDebugValue=function(){};M.useDeferredValue=function(e){return ge.current.useDeferredValue(e)};M.useEffect=function(e,t){return ge.current.useEffect(e,t)};M.useId=function(){return ge.current.useId()};M.useImperativeHandle=function(e,t,n){return ge.current.useImperativeHandle(e,t,n)};M.useInsertionEffect=function(e,t){return ge.current.useInsertionEffect(e,t)};M.useLayoutEffect=function(e,t){return ge.current.useLayoutEffect(e,t)};M.useMemo=function(e,t){return ge.current.useMemo(e,t)};M.useReducer=function(e,t,n){return ge.current.useReducer(e,t,n)};M.useRef=function(e){return ge.current.useRef(e)};M.useState=function(e){return ge.current.useState(e)};M.useSyncExternalStore=function(e,t,n){return ge.current.useSyncExternalStore(e,t,n)};M.useTransition=function(){return ge.current.useTransition()};M.version="18.3.1";Ta.exports=M;var k=Ta.exports;/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.production.min.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var md=k,pd=Symbol.for("react.element"),hd=Symbol.for("react.fragment"),yd=Object.prototype.hasOwnProperty,gd=md.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,vd={key:!0,ref:!0,__self:!0,__source:!0};function Fa(e,t,n){var r,l={},s=null,o=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)yd.call(t,r)&&!vd.hasOwnProperty(r)&&(l[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)l[r]===void 0&&(l[r]=t[r]);return{$$typeof:pd,type:e,key:s,ref:o,props:l,_owner:gd.current}}kl.Fragment=hd;kl.jsx=Fa;kl.jsxs=Fa;Pa.exports=kl;var i=Pa.exports,Ba={exports:{}},Ie={},$a={exports:{}},Ua={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.min.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/(function(e){function t(L,D){var R=L.length;L.push(D);e:for(;0<R;){var G=R-1>>>1,V=L[G];if(0<l(V,D))L[G]=D,L[R]=V,R=G;else break e}}function n(L){return L.length===0?null:L[0]}function r(L){if(L.length===0)return null;var D=L[0],R=L.pop();if(R!==D){L[0]=R;e:for(var G=0,V=L.length,qt=V>>>1;G<qt;){var Ee=2*(G+1)-1,Ot=L[Ee],De=Ee+1,Zt=L[De];if(0>l(Ot,R))De<V&&0>l(Zt,Ot)?(L[G]=Zt,L[De]=R,G=De):(L[G]=Ot,L[Ee]=R,G=Ee);else if(De<V&&0>l(Zt,R))L[G]=Zt,L[De]=R,G=De;else break e}}return D}function l(L,D){var R=L.sortIndex-D.sortIndex;return R!==0?R:L.id-D.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var u=[],c=[],y=1,v=null,p=3,S=!1,j=!1,x=!1,E=typeof setTimeout=="function"?setTimeout:null,d=typeof clearTimeout=="function"?clearTimeout:null,f=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(L){for(var D=n(c);D!==null;){if(D.callback===null)r(c);else if(D.startTime<=L)r(c),D.sortIndex=D.expirationTime,t(u,D);else break;D=n(c)}}function g(L){if(x=!1,m(L),!j)if(n(u)!==null)j=!0,be(w);else{var D=n(c);D!==null&&Ce(g,D.startTime-L)}}function w(L,D){j=!1,x&&(x=!1,d(T),T=-1),S=!0;var R=p;try{for(m(D),v=n(u);v!==null&&(!(v.expirationTime>D)||L&&!O());){var G=v.callback;if(typeof G=="function"){v.callback=null,p=v.priorityLevel;var V=G(v.expirationTime<=D);D=e.unstable_now(),typeof V=="function"?v.callback=V:v===n(u)&&r(u),m(D)}else r(u);v=n(u)}if(v!==null)var qt=!0;else{var Ee=n(c);Ee!==null&&Ce(g,Ee.startTime-D),qt=!1}return qt}finally{v=null,p=R,S=!1}}var C=!1,N=null,T=-1,F=5,P=-1;function O(){return!(e.unstable_now()-P<F)}function B(){if(N!==null){var L=e.unstable_now();P=L;var D=!0;try{D=N(!0,L)}finally{D?A():(C=!1,N=null)}}else C=!1}var A;if(typeof f=="function")A=function(){f(B)};else if(typeof MessageChannel<"u"){var te=new MessageChannel,xe=te.port2;te.port1.onmessage=B,A=function(){xe.postMessage(null)}}else A=function(){E(B,0)};function be(L){N=L,C||(C=!0,A())}function Ce(L,D){T=E(function(){L(e.unstable_now())},D)}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(L){L.callback=null},e.unstable_continueExecution=function(){j||S||(j=!0,be(w))},e.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"):F=0<L?Math.floor(1e3/L):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(u)},e.unstable_next=function(L){switch(p){case 1:case 2:case 3:var D=3;break;default:D=p}var R=p;p=D;try{return L()}finally{p=R}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(L,D){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var R=p;p=L;try{return D()}finally{p=R}},e.unstable_scheduleCallback=function(L,D,R){var G=e.unstable_now();switch(typeof R=="object"&&R!==null?(R=R.delay,R=typeof R=="number"&&0<R?G+R:G):R=G,L){case 1:var V=-1;break;case 2:V=250;break;case 5:V=1073741823;break;case 4:V=1e4;break;default:V=5e3}return V=R+V,L={id:y++,callback:D,priorityLevel:L,startTime:R,expirationTime:V,sortIndex:-1},R>G?(L.sortIndex=R,t(c,L),n(u)===null&&L===n(c)&&(x?(d(T),T=-1):x=!0,Ce(g,R-G))):(L.sortIndex=V,t(u,L),j||S||(j=!0,be(w))),L},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(L){var D=p;return function(){var R=p;p=D;try{return L.apply(this,arguments)}finally{p=R}}}})(Ua);$a.exports=Ua;var xd=$a.exports;/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.min.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var wd=k,ze=xd;function _(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var ba=new Set,Jn={};function Yt(e,t){wn(e,t),wn(e+"Capture",t)}function wn(e,t){for(Jn[e]=t,e=0;e<t.length;e++)ba.add(t[e])}var at=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),vs=Object.prototype.hasOwnProperty,Sd=/^[: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]*$/,go={},vo={};function jd(e){return vs.call(vo,e)?!0:vs.call(go,e)?!1:Sd.test(e)?vo[e]=!0:(go[e]=!0,!1)}function kd(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Nd(e,t,n,r){if(t===null||typeof t>"u"||kd(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ve(e,t,n,r,l,s,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=o}var ue={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ue[e]=new ve(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ue[t]=new ve(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ue[e]=new ve(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ue[e]=new ve(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){ue[e]=new ve(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ue[e]=new ve(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ue[e]=new ve(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ue[e]=new ve(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ue[e]=new ve(e,5,!1,e.toLowerCase(),null,!1,!1)});var pi=/[\-:]([a-z])/g;function hi(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(pi,hi);ue[t]=new ve(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(pi,hi);ue[t]=new ve(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(pi,hi);ue[t]=new ve(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ue[e]=new ve(e,1,!1,e.toLowerCase(),null,!1,!1)});ue.xlinkHref=new ve("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ue[e]=new ve(e,1,!1,e.toLowerCase(),null,!0,!0)});function yi(e,t,n,r){var l=ue.hasOwnProperty(t)?ue[t]:null;(l!==null?l.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Nd(t,n,l,r)&&(n=null),r||l===null?jd(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):l.mustUseProperty?e[l.propertyName]=n===null?l.type===3?!1:"":n:(t=l.attributeName,r=l.attributeNamespace,n===null?e.removeAttribute(t):(l=l.type,n=l===3||l===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var ft=wd.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,kr=Symbol.for("react.element"),en=Symbol.for("react.portal"),tn=Symbol.for("react.fragment"),gi=Symbol.for("react.strict_mode"),xs=Symbol.for("react.profiler"),Wa=Symbol.for("react.provider"),Ha=Symbol.for("react.context"),vi=Symbol.for("react.forward_ref"),ws=Symbol.for("react.suspense"),Ss=Symbol.for("react.suspense_list"),xi=Symbol.for("react.memo"),ht=Symbol.for("react.lazy"),Qa=Symbol.for("react.offscreen"),xo=Symbol.iterator;function zn(e){return e===null||typeof e!="object"?null:(e=xo&&e[xo]||e["@@iterator"],typeof e=="function"?e:null)}var q=Object.assign,bl;function $n(e){if(bl===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);bl=t&&t[1]||""}return`
|
|
34
|
+
`+bl+e}var Wl=!1;function Hl(e,t){if(!e||Wl)return"";Wl=!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(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var l=c.stack.split(`
|
|
35
|
+
`),s=r.stack.split(`
|
|
36
|
+
`),o=l.length-1,a=s.length-1;1<=o&&0<=a&&l[o]!==s[a];)a--;for(;1<=o&&0<=a;o--,a--)if(l[o]!==s[a]){if(o!==1||a!==1)do if(o--,a--,0>a||l[o]!==s[a]){var u=`
|
|
37
|
+
`+l[o].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=o&&0<=a);break}}}finally{Wl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?$n(e):""}function Cd(e){switch(e.tag){case 5:return $n(e.type);case 16:return $n("Lazy");case 13:return $n("Suspense");case 19:return $n("SuspenseList");case 0:case 2:case 15:return e=Hl(e.type,!1),e;case 11:return e=Hl(e.type.render,!1),e;case 1:return e=Hl(e.type,!0),e;default:return""}}function js(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 tn:return"Fragment";case en:return"Portal";case xs:return"Profiler";case gi:return"StrictMode";case ws:return"Suspense";case Ss:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ha:return(e.displayName||"Context")+".Consumer";case Wa:return(e._context.displayName||"Context")+".Provider";case vi:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case xi:return t=e.displayName||null,t!==null?t:js(e.type)||"Memo";case ht:t=e._payload,e=e._init;try{return js(e(t))}catch{}}return null}function Ed(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return js(t);case 8:return t===gi?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Lt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Va(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function _d(e){var t=Va(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,s.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Nr(e){e._valueTracker||(e._valueTracker=_d(e))}function Ka(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Va(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Zr(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 ks(e,t){var n=t.checked;return q({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function wo(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Lt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Ga(e,t){t=t.checked,t!=null&&yi(e,"checked",t,!1)}function Ns(e,t){Ga(e,t);var n=Lt(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")?Cs(e,t.type,n):t.hasOwnProperty("defaultValue")&&Cs(e,t.type,Lt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function So(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 Cs(e,t,n){(t!=="number"||Zr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Un=Array.isArray;function pn(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Lt(n),t=null,l=0;l<e.length;l++){if(e[l].value===n){e[l].selected=!0,r&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function Es(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(_(91));return q({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function jo(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(_(92));if(Un(n)){if(1<n.length)throw Error(_(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Lt(n)}}function Ya(e,t){var n=Lt(t.value),r=Lt(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 ko(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Xa(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 _s(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Xa(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Cr,qa=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,l){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,l)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Cr=Cr||document.createElement("div"),Cr.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Cr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function er(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Hn={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Pd=["Webkit","ms","Moz","O"];Object.keys(Hn).forEach(function(e){Pd.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Hn[t]=Hn[e]})});function Za(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Hn.hasOwnProperty(e)&&Hn[e]?(""+t).trim():t+"px"}function Ja(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=Za(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var Td=q({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 Ps(e,t){if(t){if(Td[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(_(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(_(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(_(61))}if(t.style!=null&&typeof t.style!="object")throw Error(_(62))}}function Ts(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}}var Ls=null;function wi(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var zs=null,hn=null,yn=null;function No(e){if(e=xr(e)){if(typeof zs!="function")throw Error(_(280));var t=e.stateNode;t&&(t=Pl(t),zs(e.stateNode,e.type,t))}}function eu(e){hn?yn?yn.push(e):yn=[e]:hn=e}function tu(){if(hn){var e=hn,t=yn;if(yn=hn=null,No(e),t)for(e=0;e<t.length;e++)No(t[e])}}function nu(e,t){return e(t)}function ru(){}var Ql=!1;function lu(e,t,n){if(Ql)return e(t,n);Ql=!0;try{return nu(e,t,n)}finally{Ql=!1,(hn!==null||yn!==null)&&(ru(),tu())}}function tr(e,t){var n=e.stateNode;if(n===null)return null;var r=Pl(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(_(231,t,typeof n));return n}var Is=!1;if(at)try{var In={};Object.defineProperty(In,"passive",{get:function(){Is=!0}}),window.addEventListener("test",In,In),window.removeEventListener("test",In,In)}catch{Is=!1}function Ld(e,t,n,r,l,s,o,a,u){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(y){this.onError(y)}}var Qn=!1,Jr=null,el=!1,As=null,zd={onError:function(e){Qn=!0,Jr=e}};function Id(e,t,n,r,l,s,o,a,u){Qn=!1,Jr=null,Ld.apply(zd,arguments)}function Ad(e,t,n,r,l,s,o,a,u){if(Id.apply(this,arguments),Qn){if(Qn){var c=Jr;Qn=!1,Jr=null}else throw Error(_(198));el||(el=!0,As=c)}}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&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function su(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 Co(e){if(Xt(e)!==e)throw Error(_(188))}function Dd(e){var t=e.alternate;if(!t){if(t=Xt(e),t===null)throw Error(_(188));return t!==e?null:e}for(var n=e,r=t;;){var l=n.return;if(l===null)break;var s=l.alternate;if(s===null){if(r=l.return,r!==null){n=r;continue}break}if(l.child===s.child){for(s=l.child;s;){if(s===n)return Co(l),e;if(s===r)return Co(l),t;s=s.sibling}throw Error(_(188))}if(n.return!==r.return)n=l,r=s;else{for(var o=!1,a=l.child;a;){if(a===n){o=!0,n=l,r=s;break}if(a===r){o=!0,r=l,n=s;break}a=a.sibling}if(!o){for(a=s.child;a;){if(a===n){o=!0,n=s,r=l;break}if(a===r){o=!0,r=s,n=l;break}a=a.sibling}if(!o)throw Error(_(189))}}if(n.alternate!==r)throw Error(_(190))}if(n.tag!==3)throw Error(_(188));return n.stateNode.current===n?e:t}function iu(e){return e=Dd(e),e!==null?ou(e):null}function ou(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=ou(e);if(t!==null)return t;e=e.sibling}return null}var au=ze.unstable_scheduleCallback,Eo=ze.unstable_cancelCallback,Od=ze.unstable_shouldYield,Rd=ze.unstable_requestPaint,ee=ze.unstable_now,Md=ze.unstable_getCurrentPriorityLevel,Si=ze.unstable_ImmediatePriority,uu=ze.unstable_UserBlockingPriority,tl=ze.unstable_NormalPriority,Fd=ze.unstable_LowPriority,cu=ze.unstable_IdlePriority,Nl=null,Je=null;function Bd(e){if(Je&&typeof Je.onCommitFiberRoot=="function")try{Je.onCommitFiberRoot(Nl,e,void 0,(e.current.flags&128)===128)}catch{}}var Ke=Math.clz32?Math.clz32:bd,$d=Math.log,Ud=Math.LN2;function bd(e){return e>>>=0,e===0?32:31-($d(e)/Ud|0)|0}var Er=64,_r=4194304;function bn(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function nl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,s=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~l;a!==0?r=bn(a):(s&=o,s!==0&&(r=bn(s)))}else o=n&~l,o!==0?r=bn(o):s!==0&&(r=bn(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,s=t&-t,l>=s||l===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Ke(t),l=1<<n,r|=e[n],t&=~l;return r}function Wd(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Hd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,l=e.expirationTimes,s=e.pendingLanes;0<s;){var o=31-Ke(s),a=1<<o,u=l[o];u===-1?(!(a&n)||a&r)&&(l[o]=Wd(a,t)):u<=t&&(e.expiredLanes|=a),s&=~a}}function Ds(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function du(){var e=Er;return Er<<=1,!(Er&4194240)&&(Er=64),e}function Vl(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function gr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ke(t),e[t]=n}function Qd(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var l=31-Ke(n),s=1<<l;t[l]=0,r[l]=-1,e[l]=-1,n&=~s}}function ji(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ke(n),l=1<<r;l&t|e[r]&t&&(e[r]|=t),n&=~l}}var U=0;function fu(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var mu,ki,pu,hu,yu,Os=!1,Pr=[],St=null,jt=null,kt=null,nr=new Map,rr=new Map,gt=[],Vd="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 _o(e,t){switch(e){case"focusin":case"focusout":St=null;break;case"dragenter":case"dragleave":jt=null;break;case"mouseover":case"mouseout":kt=null;break;case"pointerover":case"pointerout":nr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":rr.delete(t.pointerId)}}function An(e,t,n,r,l,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[l]},t!==null&&(t=xr(t),t!==null&&ki(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function Kd(e,t,n,r,l){switch(t){case"focusin":return St=An(St,e,t,n,r,l),!0;case"dragenter":return jt=An(jt,e,t,n,r,l),!0;case"mouseover":return kt=An(kt,e,t,n,r,l),!0;case"pointerover":var s=l.pointerId;return nr.set(s,An(nr.get(s)||null,e,t,n,r,l)),!0;case"gotpointercapture":return s=l.pointerId,rr.set(s,An(rr.get(s)||null,e,t,n,r,l)),!0}return!1}function gu(e){var t=Bt(e.target);if(t!==null){var n=Xt(t);if(n!==null){if(t=n.tag,t===13){if(t=su(n),t!==null){e.blockedOn=t,yu(e.priority,function(){pu(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function br(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Rs(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Ls=r,n.target.dispatchEvent(r),Ls=null}else return t=xr(n),t!==null&&ki(t),e.blockedOn=n,!1;t.shift()}return!0}function Po(e,t,n){br(e)&&n.delete(t)}function Gd(){Os=!1,St!==null&&br(St)&&(St=null),jt!==null&&br(jt)&&(jt=null),kt!==null&&br(kt)&&(kt=null),nr.forEach(Po),rr.forEach(Po)}function Dn(e,t){e.blockedOn===t&&(e.blockedOn=null,Os||(Os=!0,ze.unstable_scheduleCallback(ze.unstable_NormalPriority,Gd)))}function lr(e){function t(l){return Dn(l,e)}if(0<Pr.length){Dn(Pr[0],e);for(var n=1;n<Pr.length;n++){var r=Pr[n];r.blockedOn===e&&(r.blockedOn=null)}}for(St!==null&&Dn(St,e),jt!==null&&Dn(jt,e),kt!==null&&Dn(kt,e),nr.forEach(t),rr.forEach(t),n=0;n<gt.length;n++)r=gt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<gt.length&&(n=gt[0],n.blockedOn===null);)gu(n),n.blockedOn===null&>.shift()}var gn=ft.ReactCurrentBatchConfig,rl=!0;function Yd(e,t,n,r){var l=U,s=gn.transition;gn.transition=null;try{U=1,Ni(e,t,n,r)}finally{U=l,gn.transition=s}}function Xd(e,t,n,r){var l=U,s=gn.transition;gn.transition=null;try{U=4,Ni(e,t,n,r)}finally{U=l,gn.transition=s}}function Ni(e,t,n,r){if(rl){var l=Rs(e,t,n,r);if(l===null)ns(e,t,r,ll,n),_o(e,r);else if(Kd(l,e,t,n,r))r.stopPropagation();else if(_o(e,r),t&4&&-1<Vd.indexOf(e)){for(;l!==null;){var s=xr(l);if(s!==null&&mu(s),s=Rs(e,t,n,r),s===null&&ns(e,t,r,ll,n),s===l)break;l=s}l!==null&&r.stopPropagation()}else ns(e,t,r,null,n)}}var ll=null;function Rs(e,t,n,r){if(ll=null,e=wi(r),e=Bt(e),e!==null)if(t=Xt(e),t===null)e=null;else if(n=t.tag,n===13){if(e=su(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return ll=e,null}function vu(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Md()){case Si:return 1;case uu:return 4;case tl:case Fd:return 16;case cu:return 536870912;default:return 16}default:return 16}}var xt=null,Ci=null,Wr=null;function xu(){if(Wr)return Wr;var e,t=Ci,n=t.length,r,l="value"in xt?xt.value:xt.textContent,s=l.length;for(e=0;e<n&&t[e]===l[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===l[s-r];r++);return Wr=l.slice(e,1<r?1-r:void 0)}function Hr(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 Tr(){return!0}function To(){return!1}function Ae(e){function t(n,r,l,s,o){this._reactName=n,this._targetInst=l,this.type=r,this.nativeEvent=s,this.target=o,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(s):s[a]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?Tr:To,this.isPropagationStopped=To,this}return q(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=Tr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Tr)},persist:function(){},isPersistent:Tr}),t}var Pn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ei=Ae(Pn),vr=q({},Pn,{view:0,detail:0}),qd=Ae(vr),Kl,Gl,On,Cl=q({},vr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:_i,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!==On&&(On&&e.type==="mousemove"?(Kl=e.screenX-On.screenX,Gl=e.screenY-On.screenY):Gl=Kl=0,On=e),Kl)},movementY:function(e){return"movementY"in e?e.movementY:Gl}}),Lo=Ae(Cl),Zd=q({},Cl,{dataTransfer:0}),Jd=Ae(Zd),ef=q({},vr,{relatedTarget:0}),Yl=Ae(ef),tf=q({},Pn,{animationName:0,elapsedTime:0,pseudoElement:0}),nf=Ae(tf),rf=q({},Pn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),lf=Ae(rf),sf=q({},Pn,{data:0}),zo=Ae(sf),of={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},af={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"},uf={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function cf(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=uf[e])?!!t[e]:!1}function _i(){return cf}var df=q({},vr,{key:function(e){if(e.key){var t=of[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Hr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?af[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:_i,charCode:function(e){return e.type==="keypress"?Hr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Hr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),ff=Ae(df),mf=q({},Cl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Io=Ae(mf),pf=q({},vr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:_i}),hf=Ae(pf),yf=q({},Pn,{propertyName:0,elapsedTime:0,pseudoElement:0}),gf=Ae(yf),vf=q({},Cl,{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}),xf=Ae(vf),wf=[9,13,27,32],Pi=at&&"CompositionEvent"in window,Vn=null;at&&"documentMode"in document&&(Vn=document.documentMode);var Sf=at&&"TextEvent"in window&&!Vn,wu=at&&(!Pi||Vn&&8<Vn&&11>=Vn),Ao=" ",Do=!1;function Su(e,t){switch(e){case"keyup":return wf.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ju(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var nn=!1;function jf(e,t){switch(e){case"compositionend":return ju(t);case"keypress":return t.which!==32?null:(Do=!0,Ao);case"textInput":return e=t.data,e===Ao&&Do?null:e;default:return null}}function kf(e,t){if(nn)return e==="compositionend"||!Pi&&Su(e,t)?(e=xu(),Wr=Ci=xt=null,nn=!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 wu&&t.locale!=="ko"?null:t.data;default:return null}}var Nf={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 Oo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Nf[e.type]:t==="textarea"}function ku(e,t,n,r){eu(r),t=sl(t,"onChange"),0<t.length&&(n=new Ei("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Kn=null,sr=null;function Cf(e){Du(e,0)}function El(e){var t=sn(e);if(Ka(t))return e}function Ef(e,t){if(e==="change")return t}var Nu=!1;if(at){var Xl;if(at){var ql="oninput"in document;if(!ql){var Ro=document.createElement("div");Ro.setAttribute("oninput","return;"),ql=typeof Ro.oninput=="function"}Xl=ql}else Xl=!1;Nu=Xl&&(!document.documentMode||9<document.documentMode)}function Mo(){Kn&&(Kn.detachEvent("onpropertychange",Cu),sr=Kn=null)}function Cu(e){if(e.propertyName==="value"&&El(sr)){var t=[];ku(t,sr,e,wi(e)),lu(Cf,t)}}function _f(e,t,n){e==="focusin"?(Mo(),Kn=t,sr=n,Kn.attachEvent("onpropertychange",Cu)):e==="focusout"&&Mo()}function Pf(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return El(sr)}function Tf(e,t){if(e==="click")return El(t)}function Lf(e,t){if(e==="input"||e==="change")return El(t)}function zf(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ye=typeof Object.is=="function"?Object.is:zf;function ir(e,t){if(Ye(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var l=n[r];if(!vs.call(t,l)||!Ye(e[l],t[l]))return!1}return!0}function Fo(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Bo(e,t){var n=Fo(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Fo(n)}}function Eu(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Eu(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function _u(){for(var e=window,t=Zr();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Zr(e.document)}return t}function Ti(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")}function If(e){var t=_u(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Eu(n.ownerDocument.documentElement,n)){if(r!==null&&Ti(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,s=Math.min(r.start,l);r=r.end===void 0?s:Math.min(r.end,l),!e.extend&&s>r&&(l=r,r=s,s=l),l=Bo(n,s);var o=Bo(n,r);l&&o&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Af=at&&"documentMode"in document&&11>=document.documentMode,rn=null,Ms=null,Gn=null,Fs=!1;function $o(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Fs||rn==null||rn!==Zr(r)||(r=rn,"selectionStart"in r&&Ti(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}),Gn&&ir(Gn,r)||(Gn=r,r=sl(Ms,"onSelect"),0<r.length&&(t=new Ei("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=rn)))}function Lr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ln={animationend:Lr("Animation","AnimationEnd"),animationiteration:Lr("Animation","AnimationIteration"),animationstart:Lr("Animation","AnimationStart"),transitionend:Lr("Transition","TransitionEnd")},Zl={},Pu={};at&&(Pu=document.createElement("div").style,"AnimationEvent"in window||(delete ln.animationend.animation,delete ln.animationiteration.animation,delete ln.animationstart.animation),"TransitionEvent"in window||delete ln.transitionend.transition);function _l(e){if(Zl[e])return Zl[e];if(!ln[e])return e;var t=ln[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Pu)return Zl[e]=t[n];return e}var Tu=_l("animationend"),Lu=_l("animationiteration"),zu=_l("animationstart"),Iu=_l("transitionend"),Au=new Map,Uo="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function It(e,t){Au.set(e,t),Yt(t,[e])}for(var Jl=0;Jl<Uo.length;Jl++){var es=Uo[Jl],Df=es.toLowerCase(),Of=es[0].toUpperCase()+es.slice(1);It(Df,"on"+Of)}It(Tu,"onAnimationEnd");It(Lu,"onAnimationIteration");It(zu,"onAnimationStart");It("dblclick","onDoubleClick");It("focusin","onFocus");It("focusout","onBlur");It(Iu,"onTransitionEnd");wn("onMouseEnter",["mouseout","mouseover"]);wn("onMouseLeave",["mouseout","mouseover"]);wn("onPointerEnter",["pointerout","pointerover"]);wn("onPointerLeave",["pointerout","pointerover"]);Yt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Yt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Yt("onBeforeInput",["compositionend","keypress","textInput","paste"]);Yt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Yt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Yt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Wn="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Rf=new Set("cancel close invalid load scroll toggle".split(" ").concat(Wn));function bo(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Ad(r,t,void 0,e),e.currentTarget=null}function Du(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],l=r.event;r=r.listeners;e:{var s=void 0;if(t)for(var o=r.length-1;0<=o;o--){var a=r[o],u=a.instance,c=a.currentTarget;if(a=a.listener,u!==s&&l.isPropagationStopped())break e;bo(l,a,c),s=u}else for(o=0;o<r.length;o++){if(a=r[o],u=a.instance,c=a.currentTarget,a=a.listener,u!==s&&l.isPropagationStopped())break e;bo(l,a,c),s=u}}}if(el)throw e=As,el=!1,As=null,e}function H(e,t){var n=t[Ws];n===void 0&&(n=t[Ws]=new Set);var r=e+"__bubble";n.has(r)||(Ou(t,e,2,!1),n.add(r))}function ts(e,t,n){var r=0;t&&(r|=4),Ou(n,e,r,t)}var zr="_reactListening"+Math.random().toString(36).slice(2);function or(e){if(!e[zr]){e[zr]=!0,ba.forEach(function(n){n!=="selectionchange"&&(Rf.has(n)||ts(n,!1,e),ts(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[zr]||(t[zr]=!0,ts("selectionchange",!1,t))}}function Ou(e,t,n,r){switch(vu(t)){case 1:var l=Yd;break;case 4:l=Xd;break;default:l=Ni}n=l.bind(null,t,n,e),l=void 0,!Is||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(l=!0),r?l!==void 0?e.addEventListener(t,n,{capture:!0,passive:l}):e.addEventListener(t,n,!0):l!==void 0?e.addEventListener(t,n,{passive:l}):e.addEventListener(t,n,!1)}function ns(e,t,n,r,l){var s=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var a=r.stateNode.containerInfo;if(a===l||a.nodeType===8&&a.parentNode===l)break;if(o===4)for(o=r.return;o!==null;){var u=o.tag;if((u===3||u===4)&&(u=o.stateNode.containerInfo,u===l||u.nodeType===8&&u.parentNode===l))return;o=o.return}for(;a!==null;){if(o=Bt(a),o===null)return;if(u=o.tag,u===5||u===6){r=s=o;continue e}a=a.parentNode}}r=r.return}lu(function(){var c=s,y=wi(n),v=[];e:{var p=Au.get(e);if(p!==void 0){var S=Ei,j=e;switch(e){case"keypress":if(Hr(n)===0)break e;case"keydown":case"keyup":S=ff;break;case"focusin":j="focus",S=Yl;break;case"focusout":j="blur",S=Yl;break;case"beforeblur":case"afterblur":S=Yl;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":S=Lo;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":S=Jd;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":S=hf;break;case Tu:case Lu:case zu:S=nf;break;case Iu:S=gf;break;case"scroll":S=qd;break;case"wheel":S=xf;break;case"copy":case"cut":case"paste":S=lf;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":S=Io}var x=(t&4)!==0,E=!x&&e==="scroll",d=x?p!==null?p+"Capture":null:p;x=[];for(var f=c,m;f!==null;){m=f;var g=m.stateNode;if(m.tag===5&&g!==null&&(m=g,d!==null&&(g=tr(f,d),g!=null&&x.push(ar(f,g,m)))),E)break;f=f.return}0<x.length&&(p=new S(p,j,null,n,y),v.push({event:p,listeners:x}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",S=e==="mouseout"||e==="pointerout",p&&n!==Ls&&(j=n.relatedTarget||n.fromElement)&&(Bt(j)||j[ut]))break e;if((S||p)&&(p=y.window===y?y:(p=y.ownerDocument)?p.defaultView||p.parentWindow:window,S?(j=n.relatedTarget||n.toElement,S=c,j=j?Bt(j):null,j!==null&&(E=Xt(j),j!==E||j.tag!==5&&j.tag!==6)&&(j=null)):(S=null,j=c),S!==j)){if(x=Lo,g="onMouseLeave",d="onMouseEnter",f="mouse",(e==="pointerout"||e==="pointerover")&&(x=Io,g="onPointerLeave",d="onPointerEnter",f="pointer"),E=S==null?p:sn(S),m=j==null?p:sn(j),p=new x(g,f+"leave",S,n,y),p.target=E,p.relatedTarget=m,g=null,Bt(y)===c&&(x=new x(d,f+"enter",j,n,y),x.target=m,x.relatedTarget=E,g=x),E=g,S&&j)t:{for(x=S,d=j,f=0,m=x;m;m=Jt(m))f++;for(m=0,g=d;g;g=Jt(g))m++;for(;0<f-m;)x=Jt(x),f--;for(;0<m-f;)d=Jt(d),m--;for(;f--;){if(x===d||d!==null&&x===d.alternate)break t;x=Jt(x),d=Jt(d)}x=null}else x=null;S!==null&&Wo(v,p,S,x,!1),j!==null&&E!==null&&Wo(v,E,j,x,!0)}}e:{if(p=c?sn(c):window,S=p.nodeName&&p.nodeName.toLowerCase(),S==="select"||S==="input"&&p.type==="file")var w=Ef;else if(Oo(p))if(Nu)w=Lf;else{w=Pf;var C=_f}else(S=p.nodeName)&&S.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(w=Tf);if(w&&(w=w(e,c))){ku(v,w,n,y);break e}C&&C(e,p,c),e==="focusout"&&(C=p._wrapperState)&&C.controlled&&p.type==="number"&&Cs(p,"number",p.value)}switch(C=c?sn(c):window,e){case"focusin":(Oo(C)||C.contentEditable==="true")&&(rn=C,Ms=c,Gn=null);break;case"focusout":Gn=Ms=rn=null;break;case"mousedown":Fs=!0;break;case"contextmenu":case"mouseup":case"dragend":Fs=!1,$o(v,n,y);break;case"selectionchange":if(Af)break;case"keydown":case"keyup":$o(v,n,y)}var N;if(Pi)e:{switch(e){case"compositionstart":var T="onCompositionStart";break e;case"compositionend":T="onCompositionEnd";break e;case"compositionupdate":T="onCompositionUpdate";break e}T=void 0}else nn?Su(e,n)&&(T="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(T="onCompositionStart");T&&(wu&&n.locale!=="ko"&&(nn||T!=="onCompositionStart"?T==="onCompositionEnd"&&nn&&(N=xu()):(xt=y,Ci="value"in xt?xt.value:xt.textContent,nn=!0)),C=sl(c,T),0<C.length&&(T=new zo(T,e,null,n,y),v.push({event:T,listeners:C}),N?T.data=N:(N=ju(n),N!==null&&(T.data=N)))),(N=Sf?jf(e,n):kf(e,n))&&(c=sl(c,"onBeforeInput"),0<c.length&&(y=new zo("onBeforeInput","beforeinput",null,n,y),v.push({event:y,listeners:c}),y.data=N))}Du(v,t)})}function ar(e,t,n){return{instance:e,listener:t,currentTarget:n}}function sl(e,t){for(var n=t+"Capture",r=[];e!==null;){var l=e,s=l.stateNode;l.tag===5&&s!==null&&(l=s,s=tr(e,n),s!=null&&r.unshift(ar(e,s,l)),s=tr(e,t),s!=null&&r.push(ar(e,s,l))),e=e.return}return r}function Jt(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Wo(e,t,n,r,l){for(var s=t._reactName,o=[];n!==null&&n!==r;){var a=n,u=a.alternate,c=a.stateNode;if(u!==null&&u===r)break;a.tag===5&&c!==null&&(a=c,l?(u=tr(n,s),u!=null&&o.unshift(ar(n,u,a))):l||(u=tr(n,s),u!=null&&o.push(ar(n,u,a)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Mf=/\r\n?/g,Ff=/\u0000|\uFFFD/g;function Ho(e){return(typeof e=="string"?e:""+e).replace(Mf,`
|
|
38
|
+
`).replace(Ff,"")}function Ir(e,t,n){if(t=Ho(t),Ho(e)!==t&&n)throw Error(_(425))}function il(){}var Bs=null,$s=null;function Us(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var bs=typeof setTimeout=="function"?setTimeout:void 0,Bf=typeof clearTimeout=="function"?clearTimeout:void 0,Qo=typeof Promise=="function"?Promise:void 0,$f=typeof queueMicrotask=="function"?queueMicrotask:typeof Qo<"u"?function(e){return Qo.resolve(null).then(e).catch(Uf)}:bs;function Uf(e){setTimeout(function(){throw e})}function rs(e,t){var n=t,r=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(r===0){e.removeChild(l),lr(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=l}while(n);lr(t)}function Nt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Vo(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 Tn=Math.random().toString(36).slice(2),Ze="__reactFiber$"+Tn,ur="__reactProps$"+Tn,ut="__reactContainer$"+Tn,Ws="__reactEvents$"+Tn,bf="__reactListeners$"+Tn,Wf="__reactHandles$"+Tn;function Bt(e){var t=e[Ze];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ut]||n[Ze]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Vo(e);e!==null;){if(n=e[Ze])return n;e=Vo(e)}return t}e=n,n=e.parentNode}return null}function xr(e){return e=e[Ze]||e[ut],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function sn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(_(33))}function Pl(e){return e[ur]||null}var Hs=[],on=-1;function At(e){return{current:e}}function Q(e){0>on||(e.current=Hs[on],Hs[on]=null,on--)}function W(e,t){on++,Hs[on]=e.current,e.current=t}var zt={},pe=At(zt),je=At(!1),Ht=zt;function Sn(e,t){var n=e.type.contextTypes;if(!n)return zt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},s;for(s in n)l[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function ke(e){return e=e.childContextTypes,e!=null}function ol(){Q(je),Q(pe)}function Ko(e,t,n){if(pe.current!==zt)throw Error(_(168));W(pe,t),W(je,n)}function Ru(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(_(108,Ed(e)||"Unknown",l));return q({},n,r)}function al(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||zt,Ht=pe.current,W(pe,e),W(je,je.current),!0}function Go(e,t,n){var r=e.stateNode;if(!r)throw Error(_(169));n?(e=Ru(e,t,Ht),r.__reactInternalMemoizedMergedChildContext=e,Q(je),Q(pe),W(pe,e)):Q(je),W(je,n)}var lt=null,Tl=!1,ls=!1;function Mu(e){lt===null?lt=[e]:lt.push(e)}function Hf(e){Tl=!0,Mu(e)}function Dt(){if(!ls&<!==null){ls=!0;var e=0,t=U;try{var n=lt;for(U=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}lt=null,Tl=!1}catch(l){throw lt!==null&&(lt=lt.slice(e+1)),au(Si,Dt),l}finally{U=t,ls=!1}}return null}var an=[],un=0,ul=null,cl=0,Oe=[],Re=0,Qt=null,st=1,it="";function Mt(e,t){an[un++]=cl,an[un++]=ul,ul=e,cl=t}function Fu(e,t,n){Oe[Re++]=st,Oe[Re++]=it,Oe[Re++]=Qt,Qt=e;var r=st;e=it;var l=32-Ke(r)-1;r&=~(1<<l),n+=1;var s=32-Ke(t)+l;if(30<s){var o=l-l%5;s=(r&(1<<o)-1).toString(32),r>>=o,l-=o,st=1<<32-Ke(t)+l|n<<l|r,it=s+e}else st=1<<s|n<<l|r,it=e}function Li(e){e.return!==null&&(Mt(e,1),Fu(e,1,0))}function zi(e){for(;e===ul;)ul=an[--un],an[un]=null,cl=an[--un],an[un]=null;for(;e===Qt;)Qt=Oe[--Re],Oe[Re]=null,it=Oe[--Re],Oe[Re]=null,st=Oe[--Re],Oe[Re]=null}var Le=null,Te=null,K=!1,Ve=null;function Bu(e,t){var n=Me(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Yo(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,Le=e,Te=Nt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Le=e,Te=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Qt!==null?{id:st,overflow:it}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Me(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Le=e,Te=null,!0):!1;default:return!1}}function Qs(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Vs(e){if(K){var t=Te;if(t){var n=t;if(!Yo(e,t)){if(Qs(e))throw Error(_(418));t=Nt(n.nextSibling);var r=Le;t&&Yo(e,t)?Bu(r,n):(e.flags=e.flags&-4097|2,K=!1,Le=e)}}else{if(Qs(e))throw Error(_(418));e.flags=e.flags&-4097|2,K=!1,Le=e}}}function Xo(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Le=e}function Ar(e){if(e!==Le)return!1;if(!K)return Xo(e),K=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Us(e.type,e.memoizedProps)),t&&(t=Te)){if(Qs(e))throw $u(),Error(_(418));for(;t;)Bu(e,t),t=Nt(t.nextSibling)}if(Xo(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(_(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Te=Nt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Te=null}}else Te=Le?Nt(e.stateNode.nextSibling):null;return!0}function $u(){for(var e=Te;e;)e=Nt(e.nextSibling)}function jn(){Te=Le=null,K=!1}function Ii(e){Ve===null?Ve=[e]:Ve.push(e)}var Qf=ft.ReactCurrentBatchConfig;function Rn(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(_(309));var r=n.stateNode}if(!r)throw Error(_(147,e));var l=r,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(o){var a=l.refs;o===null?delete a[s]:a[s]=o},t._stringRef=s,t)}if(typeof e!="string")throw Error(_(284));if(!n._owner)throw Error(_(290,e))}return e}function Dr(e,t){throw e=Object.prototype.toString.call(t),Error(_(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function qo(e){var t=e._init;return t(e._payload)}function Uu(e){function t(d,f){if(e){var m=d.deletions;m===null?(d.deletions=[f],d.flags|=16):m.push(f)}}function n(d,f){if(!e)return null;for(;f!==null;)t(d,f),f=f.sibling;return null}function r(d,f){for(d=new Map;f!==null;)f.key!==null?d.set(f.key,f):d.set(f.index,f),f=f.sibling;return d}function l(d,f){return d=Pt(d,f),d.index=0,d.sibling=null,d}function s(d,f,m){return d.index=m,e?(m=d.alternate,m!==null?(m=m.index,m<f?(d.flags|=2,f):m):(d.flags|=2,f)):(d.flags|=1048576,f)}function o(d){return e&&d.alternate===null&&(d.flags|=2),d}function a(d,f,m,g){return f===null||f.tag!==6?(f=ds(m,d.mode,g),f.return=d,f):(f=l(f,m),f.return=d,f)}function u(d,f,m,g){var w=m.type;return w===tn?y(d,f,m.props.children,g,m.key):f!==null&&(f.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===ht&&qo(w)===f.type)?(g=l(f,m.props),g.ref=Rn(d,f,m),g.return=d,g):(g=qr(m.type,m.key,m.props,null,d.mode,g),g.ref=Rn(d,f,m),g.return=d,g)}function c(d,f,m,g){return f===null||f.tag!==4||f.stateNode.containerInfo!==m.containerInfo||f.stateNode.implementation!==m.implementation?(f=fs(m,d.mode,g),f.return=d,f):(f=l(f,m.children||[]),f.return=d,f)}function y(d,f,m,g,w){return f===null||f.tag!==7?(f=Wt(m,d.mode,g,w),f.return=d,f):(f=l(f,m),f.return=d,f)}function v(d,f,m){if(typeof f=="string"&&f!==""||typeof f=="number")return f=ds(""+f,d.mode,m),f.return=d,f;if(typeof f=="object"&&f!==null){switch(f.$$typeof){case kr:return m=qr(f.type,f.key,f.props,null,d.mode,m),m.ref=Rn(d,null,f),m.return=d,m;case en:return f=fs(f,d.mode,m),f.return=d,f;case ht:var g=f._init;return v(d,g(f._payload),m)}if(Un(f)||zn(f))return f=Wt(f,d.mode,m,null),f.return=d,f;Dr(d,f)}return null}function p(d,f,m,g){var w=f!==null?f.key:null;if(typeof m=="string"&&m!==""||typeof m=="number")return w!==null?null:a(d,f,""+m,g);if(typeof m=="object"&&m!==null){switch(m.$$typeof){case kr:return m.key===w?u(d,f,m,g):null;case en:return m.key===w?c(d,f,m,g):null;case ht:return w=m._init,p(d,f,w(m._payload),g)}if(Un(m)||zn(m))return w!==null?null:y(d,f,m,g,null);Dr(d,m)}return null}function S(d,f,m,g,w){if(typeof g=="string"&&g!==""||typeof g=="number")return d=d.get(m)||null,a(f,d,""+g,w);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case kr:return d=d.get(g.key===null?m:g.key)||null,u(f,d,g,w);case en:return d=d.get(g.key===null?m:g.key)||null,c(f,d,g,w);case ht:var C=g._init;return S(d,f,m,C(g._payload),w)}if(Un(g)||zn(g))return d=d.get(m)||null,y(f,d,g,w,null);Dr(f,g)}return null}function j(d,f,m,g){for(var w=null,C=null,N=f,T=f=0,F=null;N!==null&&T<m.length;T++){N.index>T?(F=N,N=null):F=N.sibling;var P=p(d,N,m[T],g);if(P===null){N===null&&(N=F);break}e&&N&&P.alternate===null&&t(d,N),f=s(P,f,T),C===null?w=P:C.sibling=P,C=P,N=F}if(T===m.length)return n(d,N),K&&Mt(d,T),w;if(N===null){for(;T<m.length;T++)N=v(d,m[T],g),N!==null&&(f=s(N,f,T),C===null?w=N:C.sibling=N,C=N);return K&&Mt(d,T),w}for(N=r(d,N);T<m.length;T++)F=S(N,d,T,m[T],g),F!==null&&(e&&F.alternate!==null&&N.delete(F.key===null?T:F.key),f=s(F,f,T),C===null?w=F:C.sibling=F,C=F);return e&&N.forEach(function(O){return t(d,O)}),K&&Mt(d,T),w}function x(d,f,m,g){var w=zn(m);if(typeof w!="function")throw Error(_(150));if(m=w.call(m),m==null)throw Error(_(151));for(var C=w=null,N=f,T=f=0,F=null,P=m.next();N!==null&&!P.done;T++,P=m.next()){N.index>T?(F=N,N=null):F=N.sibling;var O=p(d,N,P.value,g);if(O===null){N===null&&(N=F);break}e&&N&&O.alternate===null&&t(d,N),f=s(O,f,T),C===null?w=O:C.sibling=O,C=O,N=F}if(P.done)return n(d,N),K&&Mt(d,T),w;if(N===null){for(;!P.done;T++,P=m.next())P=v(d,P.value,g),P!==null&&(f=s(P,f,T),C===null?w=P:C.sibling=P,C=P);return K&&Mt(d,T),w}for(N=r(d,N);!P.done;T++,P=m.next())P=S(N,d,T,P.value,g),P!==null&&(e&&P.alternate!==null&&N.delete(P.key===null?T:P.key),f=s(P,f,T),C===null?w=P:C.sibling=P,C=P);return e&&N.forEach(function(B){return t(d,B)}),K&&Mt(d,T),w}function E(d,f,m,g){if(typeof m=="object"&&m!==null&&m.type===tn&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case kr:e:{for(var w=m.key,C=f;C!==null;){if(C.key===w){if(w=m.type,w===tn){if(C.tag===7){n(d,C.sibling),f=l(C,m.props.children),f.return=d,d=f;break e}}else if(C.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===ht&&qo(w)===C.type){n(d,C.sibling),f=l(C,m.props),f.ref=Rn(d,C,m),f.return=d,d=f;break e}n(d,C);break}else t(d,C);C=C.sibling}m.type===tn?(f=Wt(m.props.children,d.mode,g,m.key),f.return=d,d=f):(g=qr(m.type,m.key,m.props,null,d.mode,g),g.ref=Rn(d,f,m),g.return=d,d=g)}return o(d);case en:e:{for(C=m.key;f!==null;){if(f.key===C)if(f.tag===4&&f.stateNode.containerInfo===m.containerInfo&&f.stateNode.implementation===m.implementation){n(d,f.sibling),f=l(f,m.children||[]),f.return=d,d=f;break e}else{n(d,f);break}else t(d,f);f=f.sibling}f=fs(m,d.mode,g),f.return=d,d=f}return o(d);case ht:return C=m._init,E(d,f,C(m._payload),g)}if(Un(m))return j(d,f,m,g);if(zn(m))return x(d,f,m,g);Dr(d,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,f!==null&&f.tag===6?(n(d,f.sibling),f=l(f,m),f.return=d,d=f):(n(d,f),f=ds(m,d.mode,g),f.return=d,d=f),o(d)):n(d,f)}return E}var kn=Uu(!0),bu=Uu(!1),dl=At(null),fl=null,cn=null,Ai=null;function Di(){Ai=cn=fl=null}function Oi(e){var t=dl.current;Q(dl),e._currentValue=t}function Ks(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function vn(e,t){fl=e,Ai=cn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Se=!0),e.firstContext=null)}function Be(e){var t=e._currentValue;if(Ai!==e)if(e={context:e,memoizedValue:t,next:null},cn===null){if(fl===null)throw Error(_(308));cn=e,fl.dependencies={lanes:0,firstContext:e}}else cn=cn.next=e;return t}var $t=null;function Ri(e){$t===null?$t=[e]:$t.push(e)}function Wu(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,Ri(t)):(n.next=l.next,l.next=n),t.interleaved=n,ct(e,r)}function ct(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}var yt=!1;function Mi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Hu(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 ot(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ct(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,$&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,ct(e,n)}return l=r.interleaved,l===null?(t.next=t,Ri(r)):(t.next=l.next,l.next=t),r.interleaved=t,ct(e,n)}function Qr(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ji(e,n)}}function Zo(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,s=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};s===null?l=s=o:s=s.next=o,n=n.next}while(n!==null);s===null?l=s=t:s=s.next=t}else l=s=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:s,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 ml(e,t,n,r){var l=e.updateQueue;yt=!1;var s=l.firstBaseUpdate,o=l.lastBaseUpdate,a=l.shared.pending;if(a!==null){l.shared.pending=null;var u=a,c=u.next;u.next=null,o===null?s=c:o.next=c,o=u;var y=e.alternate;y!==null&&(y=y.updateQueue,a=y.lastBaseUpdate,a!==o&&(a===null?y.firstBaseUpdate=c:a.next=c,y.lastBaseUpdate=u))}if(s!==null){var v=l.baseState;o=0,y=c=u=null,a=s;do{var p=a.lane,S=a.eventTime;if((r&p)===p){y!==null&&(y=y.next={eventTime:S,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var j=e,x=a;switch(p=t,S=n,x.tag){case 1:if(j=x.payload,typeof j=="function"){v=j.call(S,v,p);break e}v=j;break e;case 3:j.flags=j.flags&-65537|128;case 0:if(j=x.payload,p=typeof j=="function"?j.call(S,v,p):j,p==null)break e;v=q({},v,p);break e;case 2:yt=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,p=l.effects,p===null?l.effects=[a]:p.push(a))}else S={eventTime:S,lane:p,tag:a.tag,payload:a.payload,callback:a.callback,next:null},y===null?(c=y=S,u=v):y=y.next=S,o|=p;if(a=a.next,a===null){if(a=l.shared.pending,a===null)break;p=a,a=p.next,p.next=null,l.lastBaseUpdate=p,l.shared.pending=null}}while(!0);if(y===null&&(u=v),l.baseState=u,l.firstBaseUpdate=c,l.lastBaseUpdate=y,t=l.shared.interleaved,t!==null){l=t;do o|=l.lane,l=l.next;while(l!==t)}else s===null&&(l.shared.lanes=0);Kt|=o,e.lanes=o,e.memoizedState=v}}function Jo(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],l=r.callback;if(l!==null){if(r.callback=null,r=n,typeof l!="function")throw Error(_(191,l));l.call(r)}}}var wr={},et=At(wr),cr=At(wr),dr=At(wr);function Ut(e){if(e===wr)throw Error(_(174));return e}function Fi(e,t){switch(W(dr,t),W(cr,e),W(et,wr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:_s(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=_s(t,e)}Q(et),W(et,t)}function Nn(){Q(et),Q(cr),Q(dr)}function Qu(e){Ut(dr.current);var t=Ut(et.current),n=_s(t,e.type);t!==n&&(W(cr,e),W(et,n))}function Bi(e){cr.current===e&&(Q(et),Q(cr))}var Y=At(0);function pl(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&128)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 ss=[];function $i(){for(var e=0;e<ss.length;e++)ss[e]._workInProgressVersionPrimary=null;ss.length=0}var Vr=ft.ReactCurrentDispatcher,is=ft.ReactCurrentBatchConfig,Vt=0,X=null,re=null,se=null,hl=!1,Yn=!1,fr=0,Vf=0;function de(){throw Error(_(321))}function Ui(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ye(e[n],t[n]))return!1;return!0}function bi(e,t,n,r,l,s){if(Vt=s,X=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Vr.current=e===null||e.memoizedState===null?Xf:qf,e=n(r,l),Yn){s=0;do{if(Yn=!1,fr=0,25<=s)throw Error(_(301));s+=1,se=re=null,t.updateQueue=null,Vr.current=Zf,e=n(r,l)}while(Yn)}if(Vr.current=yl,t=re!==null&&re.next!==null,Vt=0,se=re=X=null,hl=!1,t)throw Error(_(300));return e}function Wi(){var e=fr!==0;return fr=0,e}function qe(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return se===null?X.memoizedState=se=e:se=se.next=e,se}function $e(){if(re===null){var e=X.alternate;e=e!==null?e.memoizedState:null}else e=re.next;var t=se===null?X.memoizedState:se.next;if(t!==null)se=t,re=e;else{if(e===null)throw Error(_(310));re=e,e={memoizedState:re.memoizedState,baseState:re.baseState,baseQueue:re.baseQueue,queue:re.queue,next:null},se===null?X.memoizedState=se=e:se=se.next=e}return se}function mr(e,t){return typeof t=="function"?t(e):t}function os(e){var t=$e(),n=t.queue;if(n===null)throw Error(_(311));n.lastRenderedReducer=e;var r=re,l=r.baseQueue,s=n.pending;if(s!==null){if(l!==null){var o=l.next;l.next=s.next,s.next=o}r.baseQueue=l=s,n.pending=null}if(l!==null){s=l.next,r=r.baseState;var a=o=null,u=null,c=s;do{var y=c.lane;if((Vt&y)===y)u!==null&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var v={lane:y,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};u===null?(a=u=v,o=r):u=u.next=v,X.lanes|=y,Kt|=y}c=c.next}while(c!==null&&c!==s);u===null?o=r:u.next=a,Ye(r,t.memoizedState)||(Se=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=u,n.lastRenderedState=r}if(e=n.interleaved,e!==null){l=e;do s=l.lane,X.lanes|=s,Kt|=s,l=l.next;while(l!==e)}else l===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function as(e){var t=$e(),n=t.queue;if(n===null)throw Error(_(311));n.lastRenderedReducer=e;var r=n.dispatch,l=n.pending,s=t.memoizedState;if(l!==null){n.pending=null;var o=l=l.next;do s=e(s,o.action),o=o.next;while(o!==l);Ye(s,t.memoizedState)||(Se=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function Vu(){}function Ku(e,t){var n=X,r=$e(),l=t(),s=!Ye(r.memoizedState,l);if(s&&(r.memoizedState=l,Se=!0),r=r.queue,Hi(Xu.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||se!==null&&se.memoizedState.tag&1){if(n.flags|=2048,pr(9,Yu.bind(null,n,r,l,t),void 0,null),ie===null)throw Error(_(349));Vt&30||Gu(n,t,l)}return l}function Gu(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=X.updateQueue,t===null?(t={lastEffect:null,stores:null},X.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Yu(e,t,n,r){t.value=n,t.getSnapshot=r,qu(t)&&Zu(e)}function Xu(e,t,n){return n(function(){qu(t)&&Zu(e)})}function qu(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ye(e,n)}catch{return!0}}function Zu(e){var t=ct(e,1);t!==null&&Ge(t,e,1,-1)}function ea(e){var t=qe();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:mr,lastRenderedState:e},t.queue=e,e=e.dispatch=Yf.bind(null,X,e),[t.memoizedState,e]}function pr(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=X.updateQueue,t===null?(t={lastEffect:null,stores:null},X.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 Ju(){return $e().memoizedState}function Kr(e,t,n,r){var l=qe();X.flags|=e,l.memoizedState=pr(1|t,n,void 0,r===void 0?null:r)}function Ll(e,t,n,r){var l=$e();r=r===void 0?null:r;var s=void 0;if(re!==null){var o=re.memoizedState;if(s=o.destroy,r!==null&&Ui(r,o.deps)){l.memoizedState=pr(t,n,s,r);return}}X.flags|=e,l.memoizedState=pr(1|t,n,s,r)}function ta(e,t){return Kr(8390656,8,e,t)}function Hi(e,t){return Ll(2048,8,e,t)}function ec(e,t){return Ll(4,2,e,t)}function tc(e,t){return Ll(4,4,e,t)}function nc(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 rc(e,t,n){return n=n!=null?n.concat([e]):null,Ll(4,4,nc.bind(null,t,e),n)}function Qi(){}function lc(e,t){var n=$e();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ui(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function sc(e,t){var n=$e();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ui(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function ic(e,t,n){return Vt&21?(Ye(n,t)||(n=du(),X.lanes|=n,Kt|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Se=!0),e.memoizedState=n)}function Kf(e,t){var n=U;U=n!==0&&4>n?n:4,e(!0);var r=is.transition;is.transition={};try{e(!1),t()}finally{U=n,is.transition=r}}function oc(){return $e().memoizedState}function Gf(e,t,n){var r=_t(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ac(e))uc(t,n);else if(n=Wu(e,t,n,r),n!==null){var l=ye();Ge(n,e,r,l),cc(n,t,r)}}function Yf(e,t,n){var r=_t(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ac(e))uc(t,l);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,a=s(o,n);if(l.hasEagerState=!0,l.eagerState=a,Ye(a,o)){var u=t.interleaved;u===null?(l.next=l,Ri(t)):(l.next=u.next,u.next=l),t.interleaved=l;return}}catch{}finally{}n=Wu(e,t,l,r),n!==null&&(l=ye(),Ge(n,e,r,l),cc(n,t,r))}}function ac(e){var t=e.alternate;return e===X||t!==null&&t===X}function uc(e,t){Yn=hl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function cc(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ji(e,n)}}var yl={readContext:Be,useCallback:de,useContext:de,useEffect:de,useImperativeHandle:de,useInsertionEffect:de,useLayoutEffect:de,useMemo:de,useReducer:de,useRef:de,useState:de,useDebugValue:de,useDeferredValue:de,useTransition:de,useMutableSource:de,useSyncExternalStore:de,useId:de,unstable_isNewReconciler:!1},Xf={readContext:Be,useCallback:function(e,t){return qe().memoizedState=[e,t===void 0?null:t],e},useContext:Be,useEffect:ta,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Kr(4194308,4,nc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Kr(4194308,4,e,t)},useInsertionEffect:function(e,t){return Kr(4,2,e,t)},useMemo:function(e,t){var n=qe();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=qe();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Gf.bind(null,X,e),[r.memoizedState,e]},useRef:function(e){var t=qe();return e={current:e},t.memoizedState=e},useState:ea,useDebugValue:Qi,useDeferredValue:function(e){return qe().memoizedState=e},useTransition:function(){var e=ea(!1),t=e[0];return e=Kf.bind(null,e[1]),qe().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=X,l=qe();if(K){if(n===void 0)throw Error(_(407));n=n()}else{if(n=t(),ie===null)throw Error(_(349));Vt&30||Gu(r,t,n)}l.memoizedState=n;var s={value:n,getSnapshot:t};return l.queue=s,ta(Xu.bind(null,r,s,e),[e]),r.flags|=2048,pr(9,Yu.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=qe(),t=ie.identifierPrefix;if(K){var n=it,r=st;n=(r&~(1<<32-Ke(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=fr++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Vf++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},qf={readContext:Be,useCallback:lc,useContext:Be,useEffect:Hi,useImperativeHandle:rc,useInsertionEffect:ec,useLayoutEffect:tc,useMemo:sc,useReducer:os,useRef:Ju,useState:function(){return os(mr)},useDebugValue:Qi,useDeferredValue:function(e){var t=$e();return ic(t,re.memoizedState,e)},useTransition:function(){var e=os(mr)[0],t=$e().memoizedState;return[e,t]},useMutableSource:Vu,useSyncExternalStore:Ku,useId:oc,unstable_isNewReconciler:!1},Zf={readContext:Be,useCallback:lc,useContext:Be,useEffect:Hi,useImperativeHandle:rc,useInsertionEffect:ec,useLayoutEffect:tc,useMemo:sc,useReducer:as,useRef:Ju,useState:function(){return as(mr)},useDebugValue:Qi,useDeferredValue:function(e){var t=$e();return re===null?t.memoizedState=e:ic(t,re.memoizedState,e)},useTransition:function(){var e=as(mr)[0],t=$e().memoizedState;return[e,t]},useMutableSource:Vu,useSyncExternalStore:Ku,useId:oc,unstable_isNewReconciler:!1};function He(e,t){if(e&&e.defaultProps){t=q({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Gs(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:q({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var zl={isMounted:function(e){return(e=e._reactInternals)?Xt(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ye(),l=_t(e),s=ot(r,l);s.payload=t,n!=null&&(s.callback=n),t=Ct(e,s,l),t!==null&&(Ge(t,e,l,r),Qr(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ye(),l=_t(e),s=ot(r,l);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=Ct(e,s,l),t!==null&&(Ge(t,e,l,r),Qr(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ye(),r=_t(e),l=ot(n,r);l.tag=2,t!=null&&(l.callback=t),t=Ct(e,l,r),t!==null&&(Ge(t,e,r,n),Qr(t,e,r))}};function na(e,t,n,r,l,s,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,s,o):t.prototype&&t.prototype.isPureReactComponent?!ir(n,r)||!ir(l,s):!0}function dc(e,t,n){var r=!1,l=zt,s=t.contextType;return typeof s=="object"&&s!==null?s=Be(s):(l=ke(t)?Ht:pe.current,r=t.contextTypes,s=(r=r!=null)?Sn(e,l):zt),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=zl,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=s),t}function ra(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&&zl.enqueueReplaceState(t,t.state,null)}function Ys(e,t,n,r){var l=e.stateNode;l.props=n,l.state=e.memoizedState,l.refs={},Mi(e);var s=t.contextType;typeof s=="object"&&s!==null?l.context=Be(s):(s=ke(t)?Ht:pe.current,l.context=Sn(e,s)),l.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(Gs(e,t,s,n),l.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof l.getSnapshotBeforeUpdate=="function"||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(t=l.state,typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount(),t!==l.state&&zl.enqueueReplaceState(l,l.state,null),ml(e,n,l,r),l.state=e.memoizedState),typeof l.componentDidMount=="function"&&(e.flags|=4194308)}function Cn(e,t){try{var n="",r=t;do n+=Cd(r),r=r.return;while(r);var l=n}catch(s){l=`
|
|
39
|
+
Error generating stack: `+s.message+`
|
|
40
|
+
`+s.stack}return{value:e,source:t,stack:l,digest:null}}function us(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Xs(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Jf=typeof WeakMap=="function"?WeakMap:Map;function fc(e,t,n){n=ot(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){vl||(vl=!0,ii=r),Xs(e,t)},n}function mc(e,t,n){n=ot(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){Xs(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){Xs(e,t),typeof r!="function"&&(Et===null?Et=new Set([this]):Et.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function la(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Jf;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=mm.bind(null,e,t,n),t.then(e,e))}function sa(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function ia(e,t,n,r,l){return e.mode&1?(e.flags|=65536,e.lanes=l,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=ot(-1,1),t.tag=2,Ct(n,t,1))),n.lanes|=1),e)}var em=ft.ReactCurrentOwner,Se=!1;function he(e,t,n,r){t.child=e===null?bu(t,null,n,r):kn(t,e.child,n,r)}function oa(e,t,n,r,l){n=n.render;var s=t.ref;return vn(t,l),r=bi(e,t,n,r,s,l),n=Wi(),e!==null&&!Se?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,dt(e,t,l)):(K&&n&&Li(t),t.flags|=1,he(e,t,r,l),t.child)}function aa(e,t,n,r,l){if(e===null){var s=n.type;return typeof s=="function"&&!Ji(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,pc(e,t,s,r,l)):(e=qr(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&l)){var o=s.memoizedProps;if(n=n.compare,n=n!==null?n:ir,n(o,r)&&e.ref===t.ref)return dt(e,t,l)}return t.flags|=1,e=Pt(s,r),e.ref=t.ref,e.return=t,t.child=e}function pc(e,t,n,r,l){if(e!==null){var s=e.memoizedProps;if(ir(s,r)&&e.ref===t.ref)if(Se=!1,t.pendingProps=r=s,(e.lanes&l)!==0)e.flags&131072&&(Se=!0);else return t.lanes=e.lanes,dt(e,t,l)}return qs(e,t,n,r,l)}function hc(e,t,n){var r=t.pendingProps,l=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},W(fn,Pe),Pe|=n;else{if(!(n&1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,W(fn,Pe),Pe|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,W(fn,Pe),Pe|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,W(fn,Pe),Pe|=r;return he(e,t,l,n),t.child}function yc(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function qs(e,t,n,r,l){var s=ke(n)?Ht:pe.current;return s=Sn(t,s),vn(t,l),n=bi(e,t,n,r,s,l),r=Wi(),e!==null&&!Se?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,dt(e,t,l)):(K&&r&&Li(t),t.flags|=1,he(e,t,n,l),t.child)}function ua(e,t,n,r,l){if(ke(n)){var s=!0;al(t)}else s=!1;if(vn(t,l),t.stateNode===null)Gr(e,t),dc(t,n,r),Ys(t,n,r,l),r=!0;else if(e===null){var o=t.stateNode,a=t.memoizedProps;o.props=a;var u=o.context,c=n.contextType;typeof c=="object"&&c!==null?c=Be(c):(c=ke(n)?Ht:pe.current,c=Sn(t,c));var y=n.getDerivedStateFromProps,v=typeof y=="function"||typeof o.getSnapshotBeforeUpdate=="function";v||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==r||u!==c)&&ra(t,o,r,c),yt=!1;var p=t.memoizedState;o.state=p,ml(t,r,o,l),u=t.memoizedState,a!==r||p!==u||je.current||yt?(typeof y=="function"&&(Gs(t,n,y,r),u=t.memoizedState),(a=yt||na(t,n,a,r,p,u,c))?(v||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|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),o.props=r,o.state=u,o.context=c,r=a):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,Hu(e,t),a=t.memoizedProps,c=t.type===t.elementType?a:He(t.type,a),o.props=c,v=t.pendingProps,p=o.context,u=n.contextType,typeof u=="object"&&u!==null?u=Be(u):(u=ke(n)?Ht:pe.current,u=Sn(t,u));var S=n.getDerivedStateFromProps;(y=typeof S=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==v||p!==u)&&ra(t,o,r,u),yt=!1,p=t.memoizedState,o.state=p,ml(t,r,o,l);var j=t.memoizedState;a!==v||p!==j||je.current||yt?(typeof S=="function"&&(Gs(t,n,S,r),j=t.memoizedState),(c=yt||na(t,n,c,r,p,j,u)||!1)?(y||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,j,u),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,j,u)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=j),o.props=r,o.state=j,o.context=u,r=c):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Zs(e,t,n,r,s,l)}function Zs(e,t,n,r,l,s){yc(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return l&&Go(t,n,!1),dt(e,t,s);r=t.stateNode,em.current=t;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=kn(t,e.child,null,s),t.child=kn(t,null,a,s)):he(e,t,a,s),t.memoizedState=r.state,l&&Go(t,n,!0),t.child}function gc(e){var t=e.stateNode;t.pendingContext?Ko(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Ko(e,t.context,!1),Fi(e,t.containerInfo)}function ca(e,t,n,r,l){return jn(),Ii(l),t.flags|=256,he(e,t,n,r),t.child}var Js={dehydrated:null,treeContext:null,retryLane:0};function ei(e){return{baseLanes:e,cachePool:null,transitions:null}}function vc(e,t,n){var r=t.pendingProps,l=Y.current,s=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:(l&2)!==0),a?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),W(Y,l&1),e===null)return Vs(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,s?(r=t.mode,s=t.child,o={mode:"hidden",children:o},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=o):s=Dl(o,r,0,null),e=Wt(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=ei(n),t.memoizedState=Js,e):Vi(t,o));if(l=e.memoizedState,l!==null&&(a=l.dehydrated,a!==null))return tm(e,t,o,r,a,l,n);if(s){s=r.fallback,o=t.mode,l=e.child,a=l.sibling;var u={mode:"hidden",children:r.children};return!(o&1)&&t.child!==l?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=Pt(l,u),r.subtreeFlags=l.subtreeFlags&14680064),a!==null?s=Pt(a,s):(s=Wt(s,o,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,o=e.child.memoizedState,o=o===null?ei(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},s.memoizedState=o,s.childLanes=e.childLanes&~n,t.memoizedState=Js,r}return s=e.child,e=s.sibling,r=Pt(s,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Vi(e,t){return t=Dl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Or(e,t,n,r){return r!==null&&Ii(r),kn(t,e.child,null,n),e=Vi(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function tm(e,t,n,r,l,s,o){if(n)return t.flags&256?(t.flags&=-257,r=us(Error(_(422))),Or(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,l=t.mode,r=Dl({mode:"visible",children:r.children},l,0,null),s=Wt(s,l,o,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&kn(t,e.child,null,o),t.child.memoizedState=ei(o),t.memoizedState=Js,s);if(!(t.mode&1))return Or(e,t,o,null);if(l.data==="$!"){if(r=l.nextSibling&&l.nextSibling.dataset,r)var a=r.dgst;return r=a,s=Error(_(419)),r=us(s,r,void 0),Or(e,t,o,r)}if(a=(o&e.childLanes)!==0,Se||a){if(r=ie,r!==null){switch(o&-o){case 4:l=2;break;case 16:l=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:l=32;break;case 536870912:l=268435456;break;default:l=0}l=l&(r.suspendedLanes|o)?0:l,l!==0&&l!==s.retryLane&&(s.retryLane=l,ct(e,l),Ge(r,e,l,-1))}return Zi(),r=us(Error(_(421))),Or(e,t,o,r)}return l.data==="$?"?(t.flags|=128,t.child=e.child,t=pm.bind(null,e),l._reactRetry=t,null):(e=s.treeContext,Te=Nt(l.nextSibling),Le=t,K=!0,Ve=null,e!==null&&(Oe[Re++]=st,Oe[Re++]=it,Oe[Re++]=Qt,st=e.id,it=e.overflow,Qt=t),t=Vi(t,r.children),t.flags|=4096,t)}function da(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ks(e.return,t,n)}function cs(e,t,n,r,l){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:l}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=l)}function xc(e,t,n){var r=t.pendingProps,l=r.revealOrder,s=r.tail;if(he(e,t,r.children,n),r=Y.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&da(e,n,t);else if(e.tag===19)da(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(W(Y,r),!(t.mode&1))t.memoizedState=null;else switch(l){case"forwards":for(n=t.child,l=null;n!==null;)e=n.alternate,e!==null&&pl(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),cs(t,!1,l,n,s);break;case"backwards":for(n=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&pl(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}cs(t,!0,n,null,s);break;case"together":cs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Gr(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function dt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Kt|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(_(153));if(t.child!==null){for(e=t.child,n=Pt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Pt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function nm(e,t,n){switch(t.tag){case 3:gc(t),jn();break;case 5:Qu(t);break;case 1:ke(t.type)&&al(t);break;case 4:Fi(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,l=t.memoizedProps.value;W(dl,r._currentValue),r._currentValue=l;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(W(Y,Y.current&1),t.flags|=128,null):n&t.child.childLanes?vc(e,t,n):(W(Y,Y.current&1),e=dt(e,t,n),e!==null?e.sibling:null);W(Y,Y.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return xc(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),W(Y,Y.current),r)break;return null;case 22:case 23:return t.lanes=0,hc(e,t,n)}return dt(e,t,n)}var wc,ti,Sc,jc;wc=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}};ti=function(){};Sc=function(e,t,n,r){var l=e.memoizedProps;if(l!==r){e=t.stateNode,Ut(et.current);var s=null;switch(n){case"input":l=ks(e,l),r=ks(e,r),s=[];break;case"select":l=q({},l,{value:void 0}),r=q({},r,{value:void 0}),s=[];break;case"textarea":l=Es(e,l),r=Es(e,r),s=[];break;default:typeof l.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=il)}Ps(n,r);var o;n=null;for(c in l)if(!r.hasOwnProperty(c)&&l.hasOwnProperty(c)&&l[c]!=null)if(c==="style"){var a=l[c];for(o in a)a.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Jn.hasOwnProperty(c)?s||(s=[]):(s=s||[]).push(c,null));for(c in r){var u=r[c];if(a=l!=null?l[c]:void 0,r.hasOwnProperty(c)&&u!==a&&(u!=null||a!=null))if(c==="style")if(a){for(o in a)!a.hasOwnProperty(o)||u&&u.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in u)u.hasOwnProperty(o)&&a[o]!==u[o]&&(n||(n={}),n[o]=u[o])}else n||(s||(s=[]),s.push(c,n)),n=u;else c==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,a=a?a.__html:void 0,u!=null&&a!==u&&(s=s||[]).push(c,u)):c==="children"?typeof u!="string"&&typeof u!="number"||(s=s||[]).push(c,""+u):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Jn.hasOwnProperty(c)?(u!=null&&c==="onScroll"&&H("scroll",e),s||a===u||(s=[])):(s=s||[]).push(c,u))}n&&(s=s||[]).push("style",n);var c=s;(t.updateQueue=c)&&(t.flags|=4)}};jc=function(e,t,n,r){n!==r&&(t.flags|=4)};function Mn(e,t){if(!K)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 fe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags&14680064,r|=l.flags&14680064,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function rm(e,t,n){var r=t.pendingProps;switch(zi(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return fe(t),null;case 1:return ke(t.type)&&ol(),fe(t),null;case 3:return r=t.stateNode,Nn(),Q(je),Q(pe),$i(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ar(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ve!==null&&(ui(Ve),Ve=null))),ti(e,t),fe(t),null;case 5:Bi(t);var l=Ut(dr.current);if(n=t.type,e!==null&&t.stateNode!=null)Sc(e,t,n,r,l),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(_(166));return fe(t),null}if(e=Ut(et.current),Ar(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[Ze]=t,r[ur]=s,e=(t.mode&1)!==0,n){case"dialog":H("cancel",r),H("close",r);break;case"iframe":case"object":case"embed":H("load",r);break;case"video":case"audio":for(l=0;l<Wn.length;l++)H(Wn[l],r);break;case"source":H("error",r);break;case"img":case"image":case"link":H("error",r),H("load",r);break;case"details":H("toggle",r);break;case"input":wo(r,s),H("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},H("invalid",r);break;case"textarea":jo(r,s),H("invalid",r)}Ps(n,s),l=null;for(var o in s)if(s.hasOwnProperty(o)){var a=s[o];o==="children"?typeof a=="string"?r.textContent!==a&&(s.suppressHydrationWarning!==!0&&Ir(r.textContent,a,e),l=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(s.suppressHydrationWarning!==!0&&Ir(r.textContent,a,e),l=["children",""+a]):Jn.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&H("scroll",r)}switch(n){case"input":Nr(r),So(r,s,!0);break;case"textarea":Nr(r),ko(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=il)}r=l,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=l.nodeType===9?l:l.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Xa(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Ze]=t,e[ur]=r,wc(e,t,!1,!1),t.stateNode=e;e:{switch(o=Ts(n,r),n){case"dialog":H("cancel",e),H("close",e),l=r;break;case"iframe":case"object":case"embed":H("load",e),l=r;break;case"video":case"audio":for(l=0;l<Wn.length;l++)H(Wn[l],e);l=r;break;case"source":H("error",e),l=r;break;case"img":case"image":case"link":H("error",e),H("load",e),l=r;break;case"details":H("toggle",e),l=r;break;case"input":wo(e,r),l=ks(e,r),H("invalid",e);break;case"option":l=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},l=q({},r,{value:void 0}),H("invalid",e);break;case"textarea":jo(e,r),l=Es(e,r),H("invalid",e);break;default:l=r}Ps(n,l),a=l;for(s in a)if(a.hasOwnProperty(s)){var u=a[s];s==="style"?Ja(e,u):s==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&qa(e,u)):s==="children"?typeof u=="string"?(n!=="textarea"||u!=="")&&er(e,u):typeof u=="number"&&er(e,""+u):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(Jn.hasOwnProperty(s)?u!=null&&s==="onScroll"&&H("scroll",e):u!=null&&yi(e,s,u,o))}switch(n){case"input":Nr(e),So(e,r,!1);break;case"textarea":Nr(e),ko(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Lt(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?pn(e,!!r.multiple,s,!1):r.defaultValue!=null&&pn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof l.onClick=="function"&&(e.onclick=il)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return fe(t),null;case 6:if(e&&t.stateNode!=null)jc(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(_(166));if(n=Ut(dr.current),Ut(et.current),Ar(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ze]=t,(s=r.nodeValue!==n)&&(e=Le,e!==null))switch(e.tag){case 3:Ir(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Ir(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ze]=t,t.stateNode=r}return fe(t),null;case 13:if(Q(Y),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(K&&Te!==null&&t.mode&1&&!(t.flags&128))$u(),jn(),t.flags|=98560,s=!1;else if(s=Ar(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(_(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(_(317));s[Ze]=t}else jn(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;fe(t),s=!1}else Ve!==null&&(ui(Ve),Ve=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Y.current&1?le===0&&(le=3):Zi())),t.updateQueue!==null&&(t.flags|=4),fe(t),null);case 4:return Nn(),ti(e,t),e===null&&or(t.stateNode.containerInfo),fe(t),null;case 10:return Oi(t.type._context),fe(t),null;case 17:return ke(t.type)&&ol(),fe(t),null;case 19:if(Q(Y),s=t.memoizedState,s===null)return fe(t),null;if(r=(t.flags&128)!==0,o=s.rendering,o===null)if(r)Mn(s,!1);else{if(le!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=pl(e),o!==null){for(t.flags|=128,Mn(s,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)s=n,e=r,s.flags&=14680066,o=s.alternate,o===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=o.childLanes,s.lanes=o.lanes,s.child=o.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=o.memoizedProps,s.memoizedState=o.memoizedState,s.updateQueue=o.updateQueue,s.type=o.type,e=o.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return W(Y,Y.current&1|2),t.child}e=e.sibling}s.tail!==null&&ee()>En&&(t.flags|=128,r=!0,Mn(s,!1),t.lanes=4194304)}else{if(!r)if(e=pl(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Mn(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!K)return fe(t),null}else 2*ee()-s.renderingStartTime>En&&n!==1073741824&&(t.flags|=128,r=!0,Mn(s,!1),t.lanes=4194304);s.isBackwards?(o.sibling=t.child,t.child=o):(n=s.last,n!==null?n.sibling=o:t.child=o,s.last=o)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=ee(),t.sibling=null,n=Y.current,W(Y,r?n&1|2:n&1),t):(fe(t),null);case 22:case 23:return qi(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Pe&1073741824&&(fe(t),t.subtreeFlags&6&&(t.flags|=8192)):fe(t),null;case 24:return null;case 25:return null}throw Error(_(156,t.tag))}function lm(e,t){switch(zi(t),t.tag){case 1:return ke(t.type)&&ol(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Nn(),Q(je),Q(pe),$i(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Bi(t),null;case 13:if(Q(Y),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(_(340));jn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Q(Y),null;case 4:return Nn(),null;case 10:return Oi(t.type._context),null;case 22:case 23:return qi(),null;case 24:return null;default:return null}}var Rr=!1,me=!1,sm=typeof WeakSet=="function"?WeakSet:Set,z=null;function dn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Z(e,t,r)}else n.current=null}function ni(e,t,n){try{n()}catch(r){Z(e,t,r)}}var fa=!1;function im(e,t){if(Bs=rl,e=_u(),Ti(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var o=0,a=-1,u=-1,c=0,y=0,v=e,p=null;t:for(;;){for(var S;v!==n||l!==0&&v.nodeType!==3||(a=o+l),v!==s||r!==0&&v.nodeType!==3||(u=o+r),v.nodeType===3&&(o+=v.nodeValue.length),(S=v.firstChild)!==null;)p=v,v=S;for(;;){if(v===e)break t;if(p===n&&++c===l&&(a=o),p===s&&++y===r&&(u=o),(S=v.nextSibling)!==null)break;v=p,p=v.parentNode}v=S}n=a===-1||u===-1?null:{start:a,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for($s={focusedElem:e,selectionRange:n},rl=!1,z=t;z!==null;)if(t=z,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,z=e;else for(;z!==null;){t=z;try{var j=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(j!==null){var x=j.memoizedProps,E=j.memoizedState,d=t.stateNode,f=d.getSnapshotBeforeUpdate(t.elementType===t.type?x:He(t.type,x),E);d.__reactInternalSnapshotBeforeUpdate=f}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(_(163))}}catch(g){Z(t,t.return,g)}if(e=t.sibling,e!==null){e.return=t.return,z=e;break}z=t.return}return j=fa,fa=!1,j}function Xn(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var s=l.destroy;l.destroy=void 0,s!==void 0&&ni(t,n,s)}l=l.next}while(l!==r)}}function Il(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ri(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function kc(e){var t=e.alternate;t!==null&&(e.alternate=null,kc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ze],delete t[ur],delete t[Ws],delete t[bf],delete t[Wf])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Nc(e){return e.tag===5||e.tag===3||e.tag===4}function ma(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Nc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function li(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,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=il));else if(r!==4&&(e=e.child,e!==null))for(li(e,t,n),e=e.sibling;e!==null;)li(e,t,n),e=e.sibling}function si(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(si(e,t,n),e=e.sibling;e!==null;)si(e,t,n),e=e.sibling}var oe=null,Qe=!1;function pt(e,t,n){for(n=n.child;n!==null;)Cc(e,t,n),n=n.sibling}function Cc(e,t,n){if(Je&&typeof Je.onCommitFiberUnmount=="function")try{Je.onCommitFiberUnmount(Nl,n)}catch{}switch(n.tag){case 5:me||dn(n,t);case 6:var r=oe,l=Qe;oe=null,pt(e,t,n),oe=r,Qe=l,oe!==null&&(Qe?(e=oe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):oe.removeChild(n.stateNode));break;case 18:oe!==null&&(Qe?(e=oe,n=n.stateNode,e.nodeType===8?rs(e.parentNode,n):e.nodeType===1&&rs(e,n),lr(e)):rs(oe,n.stateNode));break;case 4:r=oe,l=Qe,oe=n.stateNode.containerInfo,Qe=!0,pt(e,t,n),oe=r,Qe=l;break;case 0:case 11:case 14:case 15:if(!me&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var s=l,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&ni(n,t,o),l=l.next}while(l!==r)}pt(e,t,n);break;case 1:if(!me&&(dn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Z(n,t,a)}pt(e,t,n);break;case 21:pt(e,t,n);break;case 22:n.mode&1?(me=(r=me)||n.memoizedState!==null,pt(e,t,n),me=r):pt(e,t,n);break;default:pt(e,t,n)}}function pa(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new sm),t.forEach(function(r){var l=hm.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function We(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var l=n[r];try{var s=e,o=t,a=o;e:for(;a!==null;){switch(a.tag){case 5:oe=a.stateNode,Qe=!1;break e;case 3:oe=a.stateNode.containerInfo,Qe=!0;break e;case 4:oe=a.stateNode.containerInfo,Qe=!0;break e}a=a.return}if(oe===null)throw Error(_(160));Cc(s,o,l),oe=null,Qe=!1;var u=l.alternate;u!==null&&(u.return=null),l.return=null}catch(c){Z(l,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Ec(t,e),t=t.sibling}function Ec(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(We(t,e),Xe(e),r&4){try{Xn(3,e,e.return),Il(3,e)}catch(x){Z(e,e.return,x)}try{Xn(5,e,e.return)}catch(x){Z(e,e.return,x)}}break;case 1:We(t,e),Xe(e),r&512&&n!==null&&dn(n,n.return);break;case 5:if(We(t,e),Xe(e),r&512&&n!==null&&dn(n,n.return),e.flags&32){var l=e.stateNode;try{er(l,"")}catch(x){Z(e,e.return,x)}}if(r&4&&(l=e.stateNode,l!=null)){var s=e.memoizedProps,o=n!==null?n.memoizedProps:s,a=e.type,u=e.updateQueue;if(e.updateQueue=null,u!==null)try{a==="input"&&s.type==="radio"&&s.name!=null&&Ga(l,s),Ts(a,o);var c=Ts(a,s);for(o=0;o<u.length;o+=2){var y=u[o],v=u[o+1];y==="style"?Ja(l,v):y==="dangerouslySetInnerHTML"?qa(l,v):y==="children"?er(l,v):yi(l,y,v,c)}switch(a){case"input":Ns(l,s);break;case"textarea":Ya(l,s);break;case"select":var p=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!s.multiple;var S=s.value;S!=null?pn(l,!!s.multiple,S,!1):p!==!!s.multiple&&(s.defaultValue!=null?pn(l,!!s.multiple,s.defaultValue,!0):pn(l,!!s.multiple,s.multiple?[]:"",!1))}l[ur]=s}catch(x){Z(e,e.return,x)}}break;case 6:if(We(t,e),Xe(e),r&4){if(e.stateNode===null)throw Error(_(162));l=e.stateNode,s=e.memoizedProps;try{l.nodeValue=s}catch(x){Z(e,e.return,x)}}break;case 3:if(We(t,e),Xe(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{lr(t.containerInfo)}catch(x){Z(e,e.return,x)}break;case 4:We(t,e),Xe(e);break;case 13:We(t,e),Xe(e),l=e.child,l.flags&8192&&(s=l.memoizedState!==null,l.stateNode.isHidden=s,!s||l.alternate!==null&&l.alternate.memoizedState!==null||(Yi=ee())),r&4&&pa(e);break;case 22:if(y=n!==null&&n.memoizedState!==null,e.mode&1?(me=(c=me)||y,We(t,e),me=c):We(t,e),Xe(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!y&&e.mode&1)for(z=e,y=e.child;y!==null;){for(v=z=y;z!==null;){switch(p=z,S=p.child,p.tag){case 0:case 11:case 14:case 15:Xn(4,p,p.return);break;case 1:dn(p,p.return);var j=p.stateNode;if(typeof j.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,j.props=t.memoizedProps,j.state=t.memoizedState,j.componentWillUnmount()}catch(x){Z(r,n,x)}}break;case 5:dn(p,p.return);break;case 22:if(p.memoizedState!==null){ya(v);continue}}S!==null?(S.return=p,z=S):ya(v)}y=y.sibling}e:for(y=null,v=e;;){if(v.tag===5){if(y===null){y=v;try{l=v.stateNode,c?(s=l.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(a=v.stateNode,u=v.memoizedProps.style,o=u!=null&&u.hasOwnProperty("display")?u.display:null,a.style.display=Za("display",o))}catch(x){Z(e,e.return,x)}}}else if(v.tag===6){if(y===null)try{v.stateNode.nodeValue=c?"":v.memoizedProps}catch(x){Z(e,e.return,x)}}else if((v.tag!==22&&v.tag!==23||v.memoizedState===null||v===e)&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===e)break e;for(;v.sibling===null;){if(v.return===null||v.return===e)break e;y===v&&(y=null),v=v.return}y===v&&(y=null),v.sibling.return=v.return,v=v.sibling}}break;case 19:We(t,e),Xe(e),r&4&&pa(e);break;case 21:break;default:We(t,e),Xe(e)}}function Xe(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Nc(n)){var r=n;break e}n=n.return}throw Error(_(160))}switch(r.tag){case 5:var l=r.stateNode;r.flags&32&&(er(l,""),r.flags&=-33);var s=ma(e);si(e,s,l);break;case 3:case 4:var o=r.stateNode.containerInfo,a=ma(e);li(e,a,o);break;default:throw Error(_(161))}}catch(u){Z(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function om(e,t,n){z=e,_c(e)}function _c(e,t,n){for(var r=(e.mode&1)!==0;z!==null;){var l=z,s=l.child;if(l.tag===22&&r){var o=l.memoizedState!==null||Rr;if(!o){var a=l.alternate,u=a!==null&&a.memoizedState!==null||me;a=Rr;var c=me;if(Rr=o,(me=u)&&!c)for(z=l;z!==null;)o=z,u=o.child,o.tag===22&&o.memoizedState!==null?ga(l):u!==null?(u.return=o,z=u):ga(l);for(;s!==null;)z=s,_c(s),s=s.sibling;z=l,Rr=a,me=c}ha(e)}else l.subtreeFlags&8772&&s!==null?(s.return=l,z=s):ha(e)}}function ha(e){for(;z!==null;){var t=z;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:me||Il(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!me)if(n===null)r.componentDidMount();else{var l=t.elementType===t.type?n.memoizedProps:He(t.type,n.memoizedProps);r.componentDidUpdate(l,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&Jo(t,s,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Jo(t,o,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var y=c.memoizedState;if(y!==null){var v=y.dehydrated;v!==null&&lr(v)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(_(163))}me||t.flags&512&&ri(t)}catch(p){Z(t,t.return,p)}}if(t===e){z=null;break}if(n=t.sibling,n!==null){n.return=t.return,z=n;break}z=t.return}}function ya(e){for(;z!==null;){var t=z;if(t===e){z=null;break}var n=t.sibling;if(n!==null){n.return=t.return,z=n;break}z=t.return}}function ga(e){for(;z!==null;){var t=z;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Il(4,t)}catch(u){Z(t,n,u)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var l=t.return;try{r.componentDidMount()}catch(u){Z(t,l,u)}}var s=t.return;try{ri(t)}catch(u){Z(t,s,u)}break;case 5:var o=t.return;try{ri(t)}catch(u){Z(t,o,u)}}}catch(u){Z(t,t.return,u)}if(t===e){z=null;break}var a=t.sibling;if(a!==null){a.return=t.return,z=a;break}z=t.return}}var am=Math.ceil,gl=ft.ReactCurrentDispatcher,Ki=ft.ReactCurrentOwner,Fe=ft.ReactCurrentBatchConfig,$=0,ie=null,ne=null,ae=0,Pe=0,fn=At(0),le=0,hr=null,Kt=0,Al=0,Gi=0,qn=null,we=null,Yi=0,En=1/0,rt=null,vl=!1,ii=null,Et=null,Mr=!1,wt=null,xl=0,Zn=0,oi=null,Yr=-1,Xr=0;function ye(){return $&6?ee():Yr!==-1?Yr:Yr=ee()}function _t(e){return e.mode&1?$&2&&ae!==0?ae&-ae:Qf.transition!==null?(Xr===0&&(Xr=du()),Xr):(e=U,e!==0||(e=window.event,e=e===void 0?16:vu(e.type)),e):1}function Ge(e,t,n,r){if(50<Zn)throw Zn=0,oi=null,Error(_(185));gr(e,n,r),(!($&2)||e!==ie)&&(e===ie&&(!($&2)&&(Al|=n),le===4&&vt(e,ae)),Ne(e,r),n===1&&$===0&&!(t.mode&1)&&(En=ee()+500,Tl&&Dt()))}function Ne(e,t){var n=e.callbackNode;Hd(e,t);var r=nl(e,e===ie?ae:0);if(r===0)n!==null&&Eo(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Eo(n),t===1)e.tag===0?Hf(va.bind(null,e)):Mu(va.bind(null,e)),$f(function(){!($&6)&&Dt()}),n=null;else{switch(fu(r)){case 1:n=Si;break;case 4:n=uu;break;case 16:n=tl;break;case 536870912:n=cu;break;default:n=tl}n=Oc(n,Pc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Pc(e,t){if(Yr=-1,Xr=0,$&6)throw Error(_(327));var n=e.callbackNode;if(xn()&&e.callbackNode!==n)return null;var r=nl(e,e===ie?ae:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=wl(e,r);else{t=r;var l=$;$|=2;var s=Lc();(ie!==e||ae!==t)&&(rt=null,En=ee()+500,bt(e,t));do try{dm();break}catch(a){Tc(e,a)}while(!0);Di(),gl.current=s,$=l,ne!==null?t=0:(ie=null,ae=0,t=le)}if(t!==0){if(t===2&&(l=Ds(e),l!==0&&(r=l,t=ai(e,l))),t===1)throw n=hr,bt(e,0),vt(e,r),Ne(e,ee()),n;if(t===6)vt(e,r);else{if(l=e.current.alternate,!(r&30)&&!um(l)&&(t=wl(e,r),t===2&&(s=Ds(e),s!==0&&(r=s,t=ai(e,s))),t===1))throw n=hr,bt(e,0),vt(e,r),Ne(e,ee()),n;switch(e.finishedWork=l,e.finishedLanes=r,t){case 0:case 1:throw Error(_(345));case 2:Ft(e,we,rt);break;case 3:if(vt(e,r),(r&130023424)===r&&(t=Yi+500-ee(),10<t)){if(nl(e,0)!==0)break;if(l=e.suspendedLanes,(l&r)!==r){ye(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=bs(Ft.bind(null,e,we,rt),t);break}Ft(e,we,rt);break;case 4:if(vt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,l=-1;0<r;){var o=31-Ke(r);s=1<<o,o=t[o],o>l&&(l=o),r&=~s}if(r=l,r=ee()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*am(r/1960))-r,10<r){e.timeoutHandle=bs(Ft.bind(null,e,we,rt),r);break}Ft(e,we,rt);break;case 5:Ft(e,we,rt);break;default:throw Error(_(329))}}}return Ne(e,ee()),e.callbackNode===n?Pc.bind(null,e):null}function ai(e,t){var n=qn;return e.current.memoizedState.isDehydrated&&(bt(e,t).flags|=256),e=wl(e,t),e!==2&&(t=we,we=n,t!==null&&ui(t)),e}function ui(e){we===null?we=e:we.push.apply(we,e)}function um(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var l=n[r],s=l.getSnapshot;l=l.value;try{if(!Ye(s(),l))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function vt(e,t){for(t&=~Gi,t&=~Al,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ke(t),r=1<<n;e[n]=-1,t&=~r}}function va(e){if($&6)throw Error(_(327));xn();var t=nl(e,0);if(!(t&1))return Ne(e,ee()),null;var n=wl(e,t);if(e.tag!==0&&n===2){var r=Ds(e);r!==0&&(t=r,n=ai(e,r))}if(n===1)throw n=hr,bt(e,0),vt(e,t),Ne(e,ee()),n;if(n===6)throw Error(_(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ft(e,we,rt),Ne(e,ee()),null}function Xi(e,t){var n=$;$|=1;try{return e(t)}finally{$=n,$===0&&(En=ee()+500,Tl&&Dt())}}function Gt(e){wt!==null&&wt.tag===0&&!($&6)&&xn();var t=$;$|=1;var n=Fe.transition,r=U;try{if(Fe.transition=null,U=1,e)return e()}finally{U=r,Fe.transition=n,$=t,!($&6)&&Dt()}}function qi(){Pe=fn.current,Q(fn)}function bt(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Bf(n)),ne!==null)for(n=ne.return;n!==null;){var r=n;switch(zi(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&ol();break;case 3:Nn(),Q(je),Q(pe),$i();break;case 5:Bi(r);break;case 4:Nn();break;case 13:Q(Y);break;case 19:Q(Y);break;case 10:Oi(r.type._context);break;case 22:case 23:qi()}n=n.return}if(ie=e,ne=e=Pt(e.current,null),ae=Pe=t,le=0,hr=null,Gi=Al=Kt=0,we=qn=null,$t!==null){for(t=0;t<$t.length;t++)if(n=$t[t],r=n.interleaved,r!==null){n.interleaved=null;var l=r.next,s=n.pending;if(s!==null){var o=s.next;s.next=l,r.next=o}n.pending=r}$t=null}return e}function Tc(e,t){do{var n=ne;try{if(Di(),Vr.current=yl,hl){for(var r=X.memoizedState;r!==null;){var l=r.queue;l!==null&&(l.pending=null),r=r.next}hl=!1}if(Vt=0,se=re=X=null,Yn=!1,fr=0,Ki.current=null,n===null||n.return===null){le=1,hr=t,ne=null;break}e:{var s=e,o=n.return,a=n,u=t;if(t=ae,a.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){var c=u,y=a,v=y.tag;if(!(y.mode&1)&&(v===0||v===11||v===15)){var p=y.alternate;p?(y.updateQueue=p.updateQueue,y.memoizedState=p.memoizedState,y.lanes=p.lanes):(y.updateQueue=null,y.memoizedState=null)}var S=sa(o);if(S!==null){S.flags&=-257,ia(S,o,a,s,t),S.mode&1&&la(s,c,t),t=S,u=c;var j=t.updateQueue;if(j===null){var x=new Set;x.add(u),t.updateQueue=x}else j.add(u);break e}else{if(!(t&1)){la(s,c,t),Zi();break e}u=Error(_(426))}}else if(K&&a.mode&1){var E=sa(o);if(E!==null){!(E.flags&65536)&&(E.flags|=256),ia(E,o,a,s,t),Ii(Cn(u,a));break e}}s=u=Cn(u,a),le!==4&&(le=2),qn===null?qn=[s]:qn.push(s),s=o;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var d=fc(s,u,t);Zo(s,d);break e;case 1:a=u;var f=s.type,m=s.stateNode;if(!(s.flags&128)&&(typeof f.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(Et===null||!Et.has(m)))){s.flags|=65536,t&=-t,s.lanes|=t;var g=mc(s,a,t);Zo(s,g);break e}}s=s.return}while(s!==null)}Ic(n)}catch(w){t=w,ne===n&&n!==null&&(ne=n=n.return);continue}break}while(!0)}function Lc(){var e=gl.current;return gl.current=yl,e===null?yl:e}function Zi(){(le===0||le===3||le===2)&&(le=4),ie===null||!(Kt&268435455)&&!(Al&268435455)||vt(ie,ae)}function wl(e,t){var n=$;$|=2;var r=Lc();(ie!==e||ae!==t)&&(rt=null,bt(e,t));do try{cm();break}catch(l){Tc(e,l)}while(!0);if(Di(),$=n,gl.current=r,ne!==null)throw Error(_(261));return ie=null,ae=0,le}function cm(){for(;ne!==null;)zc(ne)}function dm(){for(;ne!==null&&!Od();)zc(ne)}function zc(e){var t=Dc(e.alternate,e,Pe);e.memoizedProps=e.pendingProps,t===null?Ic(e):ne=t,Ki.current=null}function Ic(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=lm(n,t),n!==null){n.flags&=32767,ne=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{le=6,ne=null;return}}else if(n=rm(n,t,Pe),n!==null){ne=n;return}if(t=t.sibling,t!==null){ne=t;return}ne=t=e}while(t!==null);le===0&&(le=5)}function Ft(e,t,n){var r=U,l=Fe.transition;try{Fe.transition=null,U=1,fm(e,t,n,r)}finally{Fe.transition=l,U=r}return null}function fm(e,t,n,r){do xn();while(wt!==null);if($&6)throw Error(_(327));n=e.finishedWork;var l=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(_(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(Qd(e,s),e===ie&&(ne=ie=null,ae=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Mr||(Mr=!0,Oc(tl,function(){return xn(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=Fe.transition,Fe.transition=null;var o=U;U=1;var a=$;$|=4,Ki.current=null,im(e,n),Ec(n,e),If($s),rl=!!Bs,$s=Bs=null,e.current=n,om(n),Rd(),$=a,U=o,Fe.transition=s}else e.current=n;if(Mr&&(Mr=!1,wt=e,xl=l),s=e.pendingLanes,s===0&&(Et=null),Bd(n.stateNode),Ne(e,ee()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)l=t[n],r(l.value,{componentStack:l.stack,digest:l.digest});if(vl)throw vl=!1,e=ii,ii=null,e;return xl&1&&e.tag!==0&&xn(),s=e.pendingLanes,s&1?e===oi?Zn++:(Zn=0,oi=e):Zn=0,Dt(),null}function xn(){if(wt!==null){var e=fu(xl),t=Fe.transition,n=U;try{if(Fe.transition=null,U=16>e?16:e,wt===null)var r=!1;else{if(e=wt,wt=null,xl=0,$&6)throw Error(_(331));var l=$;for($|=4,z=e.current;z!==null;){var s=z,o=s.child;if(z.flags&16){var a=s.deletions;if(a!==null){for(var u=0;u<a.length;u++){var c=a[u];for(z=c;z!==null;){var y=z;switch(y.tag){case 0:case 11:case 15:Xn(8,y,s)}var v=y.child;if(v!==null)v.return=y,z=v;else for(;z!==null;){y=z;var p=y.sibling,S=y.return;if(kc(y),y===c){z=null;break}if(p!==null){p.return=S,z=p;break}z=S}}}var j=s.alternate;if(j!==null){var x=j.child;if(x!==null){j.child=null;do{var E=x.sibling;x.sibling=null,x=E}while(x!==null)}}z=s}}if(s.subtreeFlags&2064&&o!==null)o.return=s,z=o;else e:for(;z!==null;){if(s=z,s.flags&2048)switch(s.tag){case 0:case 11:case 15:Xn(9,s,s.return)}var d=s.sibling;if(d!==null){d.return=s.return,z=d;break e}z=s.return}}var f=e.current;for(z=f;z!==null;){o=z;var m=o.child;if(o.subtreeFlags&2064&&m!==null)m.return=o,z=m;else e:for(o=f;z!==null;){if(a=z,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Il(9,a)}}catch(w){Z(a,a.return,w)}if(a===o){z=null;break e}var g=a.sibling;if(g!==null){g.return=a.return,z=g;break e}z=a.return}}if($=l,Dt(),Je&&typeof Je.onPostCommitFiberRoot=="function")try{Je.onPostCommitFiberRoot(Nl,e)}catch{}r=!0}return r}finally{U=n,Fe.transition=t}}return!1}function xa(e,t,n){t=Cn(n,t),t=fc(e,t,1),e=Ct(e,t,1),t=ye(),e!==null&&(gr(e,1,t),Ne(e,t))}function Z(e,t,n){if(e.tag===3)xa(e,e,n);else for(;t!==null;){if(t.tag===3){xa(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Et===null||!Et.has(r))){e=Cn(n,e),e=mc(t,e,1),t=Ct(t,e,1),e=ye(),t!==null&&(gr(t,1,e),Ne(t,e));break}}t=t.return}}function mm(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=ye(),e.pingedLanes|=e.suspendedLanes&n,ie===e&&(ae&n)===n&&(le===4||le===3&&(ae&130023424)===ae&&500>ee()-Yi?bt(e,0):Gi|=n),Ne(e,t)}function Ac(e,t){t===0&&(e.mode&1?(t=_r,_r<<=1,!(_r&130023424)&&(_r=4194304)):t=1);var n=ye();e=ct(e,t),e!==null&&(gr(e,t,n),Ne(e,n))}function pm(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ac(e,n)}function hm(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(_(314))}r!==null&&r.delete(t),Ac(e,n)}var Dc;Dc=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||je.current)Se=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Se=!1,nm(e,t,n);Se=!!(e.flags&131072)}else Se=!1,K&&t.flags&1048576&&Fu(t,cl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Gr(e,t),e=t.pendingProps;var l=Sn(t,pe.current);vn(t,n),l=bi(null,t,r,e,l,n);var s=Wi();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ke(r)?(s=!0,al(t)):s=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Mi(t),l.updater=zl,t.stateNode=l,l._reactInternals=t,Ys(t,r,e,n),t=Zs(null,t,r,!0,s,n)):(t.tag=0,K&&s&&Li(t),he(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Gr(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=gm(r),e=He(r,e),l){case 0:t=qs(null,t,r,e,n);break e;case 1:t=ua(null,t,r,e,n);break e;case 11:t=oa(null,t,r,e,n);break e;case 14:t=aa(null,t,r,He(r.type,e),n);break e}throw Error(_(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:He(r,l),qs(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:He(r,l),ua(e,t,r,l,n);case 3:e:{if(gc(t),e===null)throw Error(_(387));r=t.pendingProps,s=t.memoizedState,l=s.element,Hu(e,t),ml(t,r,null,n);var o=t.memoizedState;if(r=o.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){l=Cn(Error(_(423)),t),t=ca(e,t,r,n,l);break e}else if(r!==l){l=Cn(Error(_(424)),t),t=ca(e,t,r,n,l);break e}else for(Te=Nt(t.stateNode.containerInfo.firstChild),Le=t,K=!0,Ve=null,n=bu(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(jn(),r===l){t=dt(e,t,n);break e}he(e,t,r,n)}t=t.child}return t;case 5:return Qu(t),e===null&&Vs(t),r=t.type,l=t.pendingProps,s=e!==null?e.memoizedProps:null,o=l.children,Us(r,l)?o=null:s!==null&&Us(r,s)&&(t.flags|=32),yc(e,t),he(e,t,o,n),t.child;case 6:return e===null&&Vs(t),null;case 13:return vc(e,t,n);case 4:return Fi(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=kn(t,null,r,n):he(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:He(r,l),oa(e,t,r,l,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:{if(r=t.type._context,l=t.pendingProps,s=t.memoizedProps,o=l.value,W(dl,r._currentValue),r._currentValue=o,s!==null)if(Ye(s.value,o)){if(s.children===l.children&&!je.current){t=dt(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){o=s.child;for(var u=a.firstContext;u!==null;){if(u.context===r){if(s.tag===1){u=ot(-1,n&-n),u.tag=2;var c=s.updateQueue;if(c!==null){c=c.shared;var y=c.pending;y===null?u.next=u:(u.next=y.next,y.next=u),c.pending=u}}s.lanes|=n,u=s.alternate,u!==null&&(u.lanes|=n),Ks(s.return,n,t),a.lanes|=n;break}u=u.next}}else if(s.tag===10)o=s.type===t.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(_(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Ks(o,n,t),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===t){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}he(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,vn(t,n),l=Be(l),r=r(l),t.flags|=1,he(e,t,r,n),t.child;case 14:return r=t.type,l=He(r,t.pendingProps),l=He(r.type,l),aa(e,t,r,l,n);case 15:return pc(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:He(r,l),Gr(e,t),t.tag=1,ke(r)?(e=!0,al(t)):e=!1,vn(t,n),dc(t,r,l),Ys(t,r,l,n),Zs(null,t,r,!0,e,n);case 19:return xc(e,t,n);case 22:return hc(e,t,n)}throw Error(_(156,t.tag))};function Oc(e,t){return au(e,t)}function ym(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Me(e,t,n,r){return new ym(e,t,n,r)}function Ji(e){return e=e.prototype,!(!e||!e.isReactComponent)}function gm(e){if(typeof e=="function")return Ji(e)?1:0;if(e!=null){if(e=e.$$typeof,e===vi)return 11;if(e===xi)return 14}return 2}function Pt(e,t){var n=e.alternate;return n===null?(n=Me(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,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 qr(e,t,n,r,l,s){var o=2;if(r=e,typeof e=="function")Ji(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case tn:return Wt(n.children,l,s,t);case gi:o=8,l|=8;break;case xs:return e=Me(12,n,t,l|2),e.elementType=xs,e.lanes=s,e;case ws:return e=Me(13,n,t,l),e.elementType=ws,e.lanes=s,e;case Ss:return e=Me(19,n,t,l),e.elementType=Ss,e.lanes=s,e;case Qa:return Dl(n,l,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Wa:o=10;break e;case Ha:o=9;break e;case vi:o=11;break e;case xi:o=14;break e;case ht:o=16,r=null;break e}throw Error(_(130,e==null?e:typeof e,""))}return t=Me(o,n,t,l),t.elementType=e,t.type=r,t.lanes=s,t}function Wt(e,t,n,r){return e=Me(7,e,r,t),e.lanes=n,e}function Dl(e,t,n,r){return e=Me(22,e,r,t),e.elementType=Qa,e.lanes=n,e.stateNode={isHidden:!1},e}function ds(e,t,n){return e=Me(6,e,null,t),e.lanes=n,e}function fs(e,t,n){return t=Me(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function vm(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Vl(0),this.expirationTimes=Vl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Vl(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function eo(e,t,n,r,l,s,o,a,u){return e=new vm(e,t,n,a,u),t===1?(t=1,s===!0&&(t|=8)):t=0,s=Me(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Mi(s),e}function xm(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:en,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Rc(e){if(!e)return zt;e=e._reactInternals;e:{if(Xt(e)!==e||e.tag!==1)throw Error(_(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(ke(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(_(171))}if(e.tag===1){var n=e.type;if(ke(n))return Ru(e,n,t)}return t}function Mc(e,t,n,r,l,s,o,a,u){return e=eo(n,r,!0,e,l,s,o,a,u),e.context=Rc(null),n=e.current,r=ye(),l=_t(n),s=ot(r,l),s.callback=t??null,Ct(n,s,l),e.current.lanes=l,gr(e,l,r),Ne(e,r),e}function Ol(e,t,n,r){var l=t.current,s=ye(),o=_t(l);return n=Rc(n),t.context===null?t.context=n:t.pendingContext=n,t=ot(s,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Ct(l,t,o),e!==null&&(Ge(e,l,o,s),Qr(e,l,o)),o}function Sl(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 wa(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function to(e,t){wa(e,t),(e=e.alternate)&&wa(e,t)}function wm(){return null}var Fc=typeof reportError=="function"?reportError:function(e){console.error(e)};function no(e){this._internalRoot=e}Rl.prototype.render=no.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(_(409));Ol(e,t,null,null)};Rl.prototype.unmount=no.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Gt(function(){Ol(null,e,null,null)}),t[ut]=null}};function Rl(e){this._internalRoot=e}Rl.prototype.unstable_scheduleHydration=function(e){if(e){var t=hu();e={blockedOn:null,target:e,priority:t};for(var n=0;n<gt.length&&t!==0&&t<gt[n].priority;n++);gt.splice(n,0,e),n===0&&gu(e)}};function ro(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ml(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Sa(){}function Sm(e,t,n,r,l){if(l){if(typeof r=="function"){var s=r;r=function(){var c=Sl(o);s.call(c)}}var o=Mc(t,r,e,0,null,!1,!1,"",Sa);return e._reactRootContainer=o,e[ut]=o.current,or(e.nodeType===8?e.parentNode:e),Gt(),o}for(;l=e.lastChild;)e.removeChild(l);if(typeof r=="function"){var a=r;r=function(){var c=Sl(u);a.call(c)}}var u=eo(e,0,!1,null,null,!1,!1,"",Sa);return e._reactRootContainer=u,e[ut]=u.current,or(e.nodeType===8?e.parentNode:e),Gt(function(){Ol(t,u,n,r)}),u}function Fl(e,t,n,r,l){var s=n._reactRootContainer;if(s){var o=s;if(typeof l=="function"){var a=l;l=function(){var u=Sl(o);a.call(u)}}Ol(t,o,e,l)}else o=Sm(n,t,e,l,r);return Sl(o)}mu=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=bn(t.pendingLanes);n!==0&&(ji(t,n|1),Ne(t,ee()),!($&6)&&(En=ee()+500,Dt()))}break;case 13:Gt(function(){var r=ct(e,1);if(r!==null){var l=ye();Ge(r,e,1,l)}}),to(e,1)}};ki=function(e){if(e.tag===13){var t=ct(e,134217728);if(t!==null){var n=ye();Ge(t,e,134217728,n)}to(e,134217728)}};pu=function(e){if(e.tag===13){var t=_t(e),n=ct(e,t);if(n!==null){var r=ye();Ge(n,e,t,r)}to(e,t)}};hu=function(){return U};yu=function(e,t){var n=U;try{return U=e,t()}finally{U=n}};zs=function(e,t,n){switch(t){case"input":if(Ns(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 l=Pl(r);if(!l)throw Error(_(90));Ka(r),Ns(r,l)}}}break;case"textarea":Ya(e,n);break;case"select":t=n.value,t!=null&&pn(e,!!n.multiple,t,!1)}};nu=Xi;ru=Gt;var jm={usingClientEntryPoint:!1,Events:[xr,sn,Pl,eu,tu,Xi]},Fn={findFiberByHostInstance:Bt,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},km={bundleType:Fn.bundleType,version:Fn.version,rendererPackageName:Fn.rendererPackageName,rendererConfig:Fn.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ft.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=iu(e),e===null?null:e.stateNode},findFiberByHostInstance:Fn.findFiberByHostInstance||wm,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Fr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Fr.isDisabled&&Fr.supportsFiber)try{Nl=Fr.inject(km),Je=Fr}catch{}}Ie.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=jm;Ie.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ro(t))throw Error(_(200));return xm(e,t,null,n)};Ie.createRoot=function(e,t){if(!ro(e))throw Error(_(299));var n=!1,r="",l=Fc;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(l=t.onRecoverableError)),t=eo(e,1,!1,null,null,n,!1,r,l),e[ut]=t.current,or(e.nodeType===8?e.parentNode:e),new no(t)};Ie.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(_(188)):(e=Object.keys(e).join(","),Error(_(268,e)));return e=iu(t),e=e===null?null:e.stateNode,e};Ie.flushSync=function(e){return Gt(e)};Ie.hydrate=function(e,t,n){if(!Ml(t))throw Error(_(200));return Fl(null,e,t,!0,n)};Ie.hydrateRoot=function(e,t,n){if(!ro(e))throw Error(_(405));var r=n!=null&&n.hydratedSources||null,l=!1,s="",o=Fc;if(n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=Mc(t,null,e,1,n??null,l,!1,s,o),e[ut]=t.current,or(e),r)for(e=0;e<r.length;e++)n=r[e],l=n._getVersion,l=l(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,l]:t.mutableSourceEagerHydrationData.push(n,l);return new Rl(t)};Ie.render=function(e,t,n){if(!Ml(t))throw Error(_(200));return Fl(null,e,t,!1,n)};Ie.unmountComponentAtNode=function(e){if(!Ml(e))throw Error(_(40));return e._reactRootContainer?(Gt(function(){Fl(null,null,e,!1,function(){e._reactRootContainer=null,e[ut]=null})}),!0):!1};Ie.unstable_batchedUpdates=Xi;Ie.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ml(n))throw Error(_(200));if(e==null||e._reactInternals===void 0)throw Error(_(38));return Fl(e,t,n,!1,r)};Ie.version="18.3.1-next-f1338f8080-20240426";function Bc(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Bc)}catch(e){console.error(e)}}Bc(),Ba.exports=Ie;var Nm=Ba.exports,$c,ja=Nm;$c=ja.createRoot,ja.hydrateRoot;const Uc="https://zernio.com/api/v1",bc="",Tt="";function Cm(e={}){return{Authorization:`Bearer ${bc}`,"Content-Type":"application/json",...e}}async function Bl(e,t,n,r){var o,a;const l=Cm(r?{"Idempotency-Key":r}:{}),s={method:e,headers:l};n!==void 0&&(s.body=JSON.stringify(n));for(let u=0;u<3;u++){const c=await fetch(`${Uc}${t}`,s);if(c.status===429){const y=parseInt(c.headers.get("Retry-After")||"5",10)*1e3+500;await new Promise(v=>setTimeout(v,y));continue}if(!c.ok){const y=await c.json().catch(()=>({})),v=((o=y==null?void 0:y.error)==null?void 0:o.code)||"",p=((a=y==null?void 0:y.error)==null?void 0:a.message)||`HTTP ${c.status}`,S=new Error(p);throw S.code=v,S.status=c.status,S}return c.json()}throw new Error("Rate limited: max retries reached")}const b=e=>Bl("GET",e),_e=(e,t,n)=>Bl("POST",e,t,n),ms=(e,t)=>Bl("PUT",e,t),Bn=e=>Bl("DELETE",e),J={getProfiles:()=>b("/profiles"),getProfile:e=>b(`/profiles/${e}`),getAccounts:e=>b(`/accounts?profileId=${e}`),getPosts:(e,t="scheduled")=>b(`/posts?profileId=${e}&status=${t}`),getAllPosts:e=>b(`/posts?profileId=${e}`),getPost:e=>b(`/posts/${e}`),createPost:async(e,t)=>{const n=await _e("/posts",e,t);return n.post||n},deletePost:e=>Bn(`/posts/${e}`),getQueues:e=>b(`/queues?profileId=${e}`),createQueue:e=>_e("/queues",e),updateQueue:(e,t)=>ms(`/queues/${e}`,t),deleteQueue:e=>Bn(`/queues/${e}`),uploadMedia:async e=>{var r;const t=new FormData;t.append("file",e);const n=await fetch(`${Uc}/media`,{method:"POST",headers:{Authorization:`Bearer ${bc}`},body:t});if(!n.ok){const l=await n.json().catch(()=>({}));throw new Error(((r=l==null?void 0:l.error)==null?void 0:r.message)||`HTTP ${n.status}`)}return n.json()},getMedia:e=>b(`/media/${e}`),getInbox:e=>b(`/inbox?profileId=${e}`),getConversation:e=>b(`/inbox/${e}`),replyConversation:(e,t)=>_e(`/inbox/${e}/reply`,t),getPostAnalytics:(e,t,n)=>b(`/analytics/posts?profileId=${e}&from=${t}&to=${n}`),getAccountAnalytics:(e,t,n)=>b(`/analytics/accounts?profileId=${e}&from=${t}&to=${n}`),getApiKeys:()=>b("/api-keys"),createApiKey:e=>_e("/api-keys",e),deleteApiKey:e=>Bn(`/api-keys/${e}`),getPlatforms:()=>b("/platforms"),connectPlatform:e=>b(`/connect/${e}`),getContacts:()=>b("/contacts"),createContact:e=>_e("/contacts",e),getBroadcasts:()=>b("/broadcasts"),createBroadcast:e=>_e("/broadcasts",e),getBroadcast:e=>b(`/broadcasts/${e}`),getSequences:()=>b("/sequences"),getSequence:e=>b(`/sequences/${e}`),activateSequence:e=>_e(`/sequences/${e}/activate`,{}),pauseSequence:e=>_e(`/sequences/${e}/pause`,{}),getCommentAutomations:e=>b(`/comment-automations${e?"?profileId="+e:""}`),getCommentAutomation:e=>b(`/comment-automations/${e}`),createCommentAutomation:e=>_e("/comment-automations",e),updateCommentAutomation:(e,t)=>ms(`/comment-automations/${e}`,t),deleteCommentAutomation:e=>Bn(`/comment-automations/${e}`),getCommentAutomationLogs:e=>b(`/comment-automations/${e}/logs`),getConnectUrl:(e,t)=>b(`/connect/${e}?profileId=${t||Tt}`),getPostComments:(e,t)=>b(`/posts/${e}/comments?accountId=${t}`),replyToComment:(e,t)=>_e(`/posts/${e}/comments`,t),deleteComment:(e,t,n)=>Bn(`/posts/${e}/comments/${t}?accountId=${n}`),hideComment:(e,t,n)=>_e(`/posts/${e}/comments/${t}/hide`,n),getAutomations:()=>b("/comment-automations"),runAutomation:e=>_e(`/comment-automations/${e}/run`,{}),getWebhooks:()=>b("/webhooks"),createWebhook:e=>_e("/webhooks",e),updateWebhook:(e,t)=>ms(`/webhooks/${e}`,t),getWebhookLogs:e=>b(`/webhooks/${e}/logs`)},Em={twitter:"𝕏",linkedin:"in",instagram:"📸",facebook:"f",tiktok:"🎵",youtube:"▶",bluesky:"🦋",threads:"@",reddit:"r/",pinterest:"P",telegram:"✈",whatsapp:"W"},_m={twitter:"#000",linkedin:"#0077b5",instagram:"#e1306c",facebook:"#1877f2",tiktok:"#010101",youtube:"#ff0000",bluesky:"#0085ff",threads:"#101010",reddit:"#ff4500",pinterest:"#e60023",telegram:"#0088cc",whatsapp:"#25d366"};function Wc({onNavigate:e}){const{accounts:t,profile:n,showToast:r}=Ue(),[l,s]=k.useState(null),[o,a]=k.useState(null),[u,c]=k.useState(!0);return k.useEffect(()=>{{c(!1);return}},[]),i.jsxs("div",{children:[i.jsxs("div",{className:"stats-grid",children:[i.jsxs("div",{className:"stat-card",children:[i.jsx("div",{className:"stat-label",children:"Profile"}),i.jsx("div",{className:"stat-value",style:{fontSize:18,paddingTop:4},children:(n==null?void 0:n.name)||"—"}),i.jsx("div",{className:"stat-sub",children:"not set"})]}),i.jsxs("div",{className:"stat-card",children:[i.jsx("div",{className:"stat-label",children:"Accounts"}),i.jsx("div",{className:"stat-value",children:t.length}),i.jsx("div",{className:"stat-sub",children:"connected platforms"})]}),i.jsxs("div",{className:"stat-card",children:[i.jsx("div",{className:"stat-label",children:"Scheduled"}),i.jsx("div",{className:"stat-value",children:u?"…":l??"—"}),i.jsx("div",{className:"stat-sub",children:"pending posts"})]}),i.jsxs("div",{className:"stat-card",children:[i.jsx("div",{className:"stat-label",children:"Queues"}),i.jsx("div",{className:"stat-value",children:u?"…":o??"—"}),i.jsx("div",{className:"stat-sub",children:"recurring slots"})]})]}),i.jsxs("div",{className:"row mb16",style:{justifyContent:"space-between",alignItems:"center"},children:[i.jsx("div",{className:"section-title",style:{marginBottom:0},children:"Connected Platforms"}),i.jsx("button",{className:"btn btn-ghost btn-sm",onClick:()=>e("accounts"),children:"View all →"})]}),!t.length&&!u&&i.jsxs("div",{className:"empty",children:[i.jsx("div",{className:"empty-icon",children:"🔗"}),i.jsx("div",{className:"empty-msg",children:"No accounts connected on this profile"})]}),t.map(y=>{var v,p;return i.jsxs("div",{className:"account-card",children:[i.jsx("div",{className:"platform-icon",style:{background:_m[y.platform]||"#3f3f46",color:"#fff"},children:Em[y.platform]||((p=(v=y.platform)==null?void 0:v[0])==null?void 0:p.toUpperCase())}),i.jsxs("div",{className:"acc-info",children:[i.jsx("div",{className:"acc-name",children:y.displayName||y.username}),i.jsxs("div",{className:"acc-handle",children:[y.platform," · @",y.username]})]}),i.jsx("span",{className:"badge badge-green",children:"Active"})]},y._id||y.accountId)}),i.jsx("hr",{className:"divider"}),i.jsx("div",{className:"section-title mb8",children:"Quick Actions"}),i.jsxs("div",{className:"row",children:[i.jsx("button",{className:"btn btn-primary",onClick:()=>e("compose"),children:"✏️ New Post"}),i.jsx("button",{className:"btn btn-secondary",onClick:()=>e("scheduled"),children:"📅 View Scheduled"}),i.jsx("button",{className:"btn btn-secondary",onClick:()=>e("queues"),children:"🔄 Manage Queues"}),i.jsx("button",{className:"btn btn-secondary",onClick:()=>e("inbox"),children:"💬 Inbox"}),i.jsx("button",{className:"btn btn-secondary",onClick:()=>e("analytics"),children:"📊 Analytics"})]})]})}const Pm={twitter:"𝕏",linkedin:"in",instagram:"📸",facebook:"f",tiktok:"🎵",youtube:"▶",bluesky:"🦋",threads:"@",reddit:"r/",pinterest:"P",telegram:"✈",whatsapp:"W"},Tm={twitter:"#000",linkedin:"#0077b5",instagram:"#e1306c",facebook:"#1877f2",tiktok:"#010101",youtube:"#ff0000",bluesky:"#0085ff",threads:"#101010",reddit:"#ff4500",pinterest:"#e60023",telegram:"#0088cc",whatsapp:"#25d366"};function Lm(){const{accounts:e}=Ue();return e.length?i.jsxs("div",{children:[i.jsxs("div",{className:"section-title mb16",children:[e.length," Connected Account",e.length!==1?"s":""]}),i.jsx("div",{className:"table-wrap",children:i.jsxs("table",{children:[i.jsx("thead",{children:i.jsxs("tr",{children:[i.jsx("th",{children:"Platform"}),i.jsx("th",{children:"Handle"}),i.jsx("th",{children:"Display Name"}),i.jsx("th",{children:"Account ID"}),i.jsx("th",{children:"Status"})]})}),i.jsx("tbody",{children:e.map(t=>{var n,r;return i.jsxs("tr",{children:[i.jsx("td",{children:i.jsxs("div",{className:"row",children:[i.jsx("div",{className:"platform-icon",style:{background:Tm[t.platform]||"#3f3f46",color:"#fff",width:28,height:28,fontSize:12},children:Pm[t.platform]||((r=(n=t.platform)==null?void 0:n[0])==null?void 0:r.toUpperCase())}),i.jsx("span",{style:{textTransform:"capitalize"},children:t.platform})]})}),i.jsxs("td",{style:{fontFamily:"monospace",color:"#a1a1aa"},children:["@",t.username]}),i.jsx("td",{children:t.displayName||"—"}),i.jsx("td",{style:{fontFamily:"monospace",fontSize:11,color:"#52525b"},children:t._id||t.accountId||"—"}),i.jsx("td",{children:i.jsx("span",{className:"badge badge-green",children:"Active"})})]},t._id||t.accountId)})})]})})]}):i.jsxs("div",{className:"empty",children:[i.jsx("div",{className:"empty-icon",children:"🔗"}),i.jsxs("div",{className:"empty-msg",children:["No accounts connected on this profile.",i.jsx("br",{}),"Connect platforms via Zernio dashboard → Settings → Accounts."]})]})}const zm={twitter:"𝕏",linkedin:"in",instagram:"📸",facebook:"f",tiktok:"🎵",youtube:"▶",bluesky:"🦋",threads:"@",reddit:"r/",pinterest:"P",telegram:"✈",whatsapp:"W"},Im={twitter:280,bluesky:300,threads:500,pinterest:500,linkedin:3e3,instagram:2200,tiktok:2200,facebook:63206,youtube:5e3,telegram:4096,whatsapp:1024};function Am({onNavigate:e}){const{accounts:t,showToast:n}=Ue(),[r,l]=k.useState(""),[s,o]=k.useState([]),[a,u]=k.useState("time"),[c,y]=k.useState(""),[v,p]=k.useState([]),[S,j]=k.useState(""),[x,E]=k.useState(null),[d,f]=k.useState(""),[m,g]=k.useState(!1),[w,C]=k.useState(null);k.useEffect(()=>{},[]);const N=A=>{o(te=>te.find(xe=>xe._id===A._id)?te.filter(xe=>xe._id!==A._id):[...te,A])},F=(()=>{if(!s.length)return null;const A=s.map(te=>Im[te.platform]||9999);return Math.min(...A)})(),P=F&&r.length>F,O=async()=>{if(!x)return null;const A=await J.uploadMedia(x);return A.mediaId||A._id},B=async()=>{if(!r.trim()){n("Add a caption first",!1);return}if(!s.length){n("Select at least one platform",!1);return}if(a==="time"&&!c){n("Pick a schedule time or switch to Queue mode",!1);return}if(a==="queue"&&!S){n("Select a queue",!1);return}g(!0),C(null);try{let A=d;x&&!d&&(A=await O(),f(A));const te=s.map(L=>({platform:L.platform,accountId:L._id||L.accountId})),xe=`compose-${Date.now()}`,be={profileId:Tt,content:r,platforms:te};a==="time"?be.scheduledFor=new Date(c).toISOString():be.queueId=S,A&&(be.media=[{mediaId:A}]);const Ce=await J.createPost(be,xe);C({ok:!0,msg:`✓ Post scheduled! ID: ${Ce.id||Ce._id||"created"}`}),n("Post scheduled ✓"),l(""),o([]),y(""),E(null),f("")}catch(A){C({ok:!1,msg:`✗ ${A.message}`}),n(A.message,!1)}finally{g(!1)}};return i.jsxs("div",{style:{maxWidth:700},children:[w&&i.jsx("div",{className:`banner ${w.ok?"banner-ok":"banner-err"}`,children:w.msg}),i.jsx("div",{className:"card mb16",children:i.jsxs("div",{className:"field",children:[i.jsx("label",{children:"Caption"}),i.jsx("textarea",{className:"textarea",placeholder:"Write your post…",value:r,onChange:A=>l(A.target.value)}),F&&i.jsxs("div",{className:`char-count ${P?"char-over":""}`,children:[r.length," / ",F,P?" — over limit for selected platforms":""]})]})}),i.jsx("div",{className:"card mb16",children:i.jsxs("div",{className:"field",style:{marginBottom:0},children:[i.jsx("label",{children:"Platforms"}),t.length?i.jsx("div",{className:"plat-row",children:t.map(A=>i.jsxs("span",{className:`plat-toggle ${s.find(te=>te._id===A._id)?"selected":""}`,onClick:()=>N(A),children:[zm[A.platform]||A.platform," ",A.displayName||A.username]},A._id))}):i.jsx("div",{style:{color:"var(--muted)",fontSize:13},children:"No accounts connected."})]})}),i.jsxs("div",{className:"card mb16",children:[i.jsxs("div",{className:"field",children:[i.jsx("label",{children:"Scheduling Mode"}),i.jsxs("div",{className:"row mb8",children:[i.jsx("button",{className:`btn btn-sm ${a==="time"?"btn-primary":"btn-ghost"}`,onClick:()=>u("time"),children:"Specific Time"}),i.jsx("button",{className:`btn btn-sm ${a==="queue"?"btn-primary":"btn-ghost"}`,onClick:()=>u("queue"),children:"Add to Queue"})]})]}),a==="time"?i.jsxs("div",{className:"field",style:{marginBottom:0},children:[i.jsx("label",{children:"Schedule At"}),i.jsx("input",{className:"input",type:"datetime-local",value:c,onChange:A=>y(A.target.value)})]}):i.jsxs("div",{className:"field",style:{marginBottom:0},children:[i.jsx("label",{children:"Queue"}),v.length?i.jsxs("select",{className:"select",value:S,onChange:A=>j(A.target.value),children:[i.jsx("option",{value:"",children:"— select queue —"}),v.map(A=>i.jsx("option",{value:A._id,children:A.name},A._id))]}):i.jsxs("div",{style:{color:"var(--muted)",fontSize:13},children:["No queues defined. ",i.jsx("span",{style:{color:"var(--accentl)",cursor:"pointer"},onClick:()=>e("queues"),children:"Create one →"})]})]})]}),i.jsx("div",{className:"card mb16",children:i.jsxs("div",{className:"field",style:{marginBottom:0},children:[i.jsx("label",{children:"Media (optional)"}),i.jsx("input",{className:"input",type:"file",accept:"image/*,video/*",style:{cursor:"pointer",padding:"7px 12px"},onChange:A=>{E(A.target.files[0]||null),f("")}}),x&&i.jsxs("div",{style:{fontSize:12,color:"var(--dim)",marginTop:5},children:[x.name," — will upload on submit"]}),d&&i.jsxs("div",{style:{fontSize:12,color:"var(--greenl)",marginTop:5},children:["Uploaded: ",d]})]})}),i.jsxs("div",{className:"row-end",children:[i.jsx("button",{className:"btn btn-secondary",onClick:()=>{l(""),o([]),y(""),E(null),C(null)},children:"Clear"}),i.jsx("button",{className:"btn btn-primary",onClick:B,disabled:m||P,children:m?i.jsxs(i.Fragment,{children:[i.jsx("span",{className:"spinner",style:{marginRight:7}}),"Scheduling…"]}):"Schedule Post"})]})]})}function Dm(){const{showToast:e}=Ue(),[t,n]=k.useState([]),[r,l]=k.useState(!0),[s,o]=k.useState(null),a=k.useCallback(()=>{{l(!1);return}},[]);k.useEffect(a,[a]);const u=async c=>{if(confirm("Unschedule this post?")){o(c);try{await J.deletePost(c),e("Post unscheduled"),a()}catch(y){e(y.message,!1)}finally{o(null)}}};return r?i.jsxs("div",{className:"loading-row",children:[i.jsx("span",{className:"spinner"}),"Loading scheduled posts…"]}):t.length?i.jsxs("div",{children:[i.jsxs("div",{className:"row mb16",style:{justifyContent:"space-between"},children:[i.jsxs("div",{className:"section-title",style:{marginBottom:0},children:[t.length," Scheduled Post",t.length!==1?"s":""]}),i.jsx("button",{className:"btn btn-ghost btn-sm",onClick:a,children:"↻ Refresh"})]}),t.map(c=>{var y;return i.jsxs("div",{className:"post-card",children:[i.jsxs("div",{className:"post-meta",children:[(c.platforms||[]).map(v=>i.jsx("span",{className:"badge badge-neutral",style:{marginRight:2},children:v.platform},v.platform)),i.jsx("span",{style:{fontSize:12,color:"var(--muted)",marginLeft:4},children:c.scheduledFor?new Date(c.scheduledFor).toLocaleString():"Queued"}),i.jsx("span",{className:"badge badge-blue",style:{marginLeft:"auto"},children:"Scheduled"})]}),i.jsx("div",{className:"post-content",children:c.content}),((y=c.media)==null?void 0:y.length)>0&&i.jsxs("div",{style:{fontSize:11,color:"var(--muted)",marginTop:6},children:["📎 ",c.media.length," media file",c.media.length>1?"s":""]}),i.jsxs("div",{className:"post-actions",children:[i.jsx("span",{style:{fontSize:11,color:"var(--muted)",alignSelf:"center",fontFamily:"monospace"},children:c._id||c.id}),i.jsx("button",{className:"btn btn-danger btn-xs",onClick:()=>u(c._id||c.id),disabled:s===(c._id||c.id),children:s===(c._id||c.id)?"…":"Unschedule"})]})]},c._id||c.id)})]}):i.jsxs("div",{className:"empty",children:[i.jsx("div",{className:"empty-icon",children:"📅"}),i.jsx("div",{className:"empty-msg",children:"No scheduled posts. Use Compose to schedule your first post."})]})}const Om=["mon","tue","wed","thu","fri","sat","sun"],Rm=["twitter","linkedin","instagram","facebook","tiktok","youtube","bluesky","threads","reddit","pinterest","telegram","whatsapp"],ps=()=>({day:"mon",time:"09:00",platforms:[]});function Mm(){const{accounts:e,showToast:t}=Ue(),[n,r]=k.useState([]),[l,s]=k.useState(!0),[o,a]=k.useState(!1),[u,c]=k.useState(null),[y,v]=k.useState(!1),[p,S]=k.useState(""),[j,x]=k.useState("America/New_York"),[E,d]=k.useState([ps()]),f=e.length?[...new Set(e.map(P=>P.platform))]:Rm,m=k.useCallback(()=>{{s(!1);return}},[]);k.useEffect(m,[m]);const g=()=>d(P=>[...P,ps()]),w=P=>d(O=>O.filter((B,A)=>A!==P)),C=(P,O,B)=>d(A=>A.map((te,xe)=>xe!==P?te:{...te,[O]:B})),N=(P,O)=>{const B=E[P],A=B.platforms.includes(O)?B.platforms.filter(te=>te!==O):[...B.platforms,O];C(P,"platforms",A)},T=async()=>{if(!p.trim()){t("Enter a queue name",!1);return}const P=E.filter(O=>O.platforms.length);if(!P.length){t("Each slot needs at least one platform",!1);return}a(!0);try{await J.createQueue({profileId:Tt,name:p,timezone:j,slots:P}),t("Queue created ✓"),S(""),d([ps()]),v(!1),m()}catch(O){t(O.message,!1)}finally{a(!1)}},F=async P=>{if(confirm("Delete this queue? Already-scheduled posts remain.")){c(P);try{await J.deleteQueue(P),t("Queue deleted"),m()}catch(O){t(O.message,!1)}finally{c(null)}}};return l?i.jsxs("div",{className:"loading-row",children:[i.jsx("span",{className:"spinner"}),"Loading queues…"]}):i.jsxs("div",{children:[i.jsxs("div",{className:"row mb16",style:{justifyContent:"space-between"},children:[i.jsxs("div",{className:"section-title",style:{marginBottom:0},children:[n.length," Queue",n.length!==1?"s":""]}),i.jsx("button",{className:"btn btn-primary btn-sm",onClick:()=>v(P=>!P),children:y?"✕ Cancel":"+ New Queue"})]}),y&&i.jsxs("div",{className:"card mb16",children:[i.jsx("div",{className:"section-title mb16",children:"New Recurring Queue"}),i.jsxs("div",{className:"field",children:[i.jsx("label",{children:"Queue Name"}),i.jsx("input",{className:"input",placeholder:"e.g. weekly-evergreen",value:p,onChange:P=>S(P.target.value)})]}),i.jsxs("div",{className:"field",children:[i.jsx("label",{children:"Timezone"}),i.jsx("input",{className:"input",value:j,onChange:P=>x(P.target.value)})]}),i.jsxs("div",{className:"field",children:[i.jsx("label",{children:"Time Slots"}),E.map((P,O)=>i.jsxs("div",{style:{background:"#09090b",border:"1px solid var(--border)",borderRadius:8,padding:12,marginBottom:8},children:[i.jsxs("div",{className:"row mb8",children:[i.jsx("select",{className:"select",style:{width:90},value:P.day,onChange:B=>C(O,"day",B.target.value),children:Om.map(B=>i.jsx("option",{children:B},B))}),i.jsx("input",{className:"input",type:"time",style:{width:110},value:P.time,onChange:B=>C(O,"time",B.target.value)}),i.jsx("button",{className:"btn btn-danger btn-xs",style:{marginLeft:"auto"},onClick:()=>w(O),disabled:E.length===1,children:"✕"})]}),i.jsx("div",{style:{fontSize:11,color:"var(--muted)",marginBottom:5},children:"Platforms"}),i.jsx("div",{className:"plat-row",children:f.map(B=>i.jsx("span",{className:`plat-toggle ${P.platforms.includes(B)?"selected":""}`,onClick:()=>N(O,B),children:B},B))})]},O)),i.jsx("button",{className:"btn btn-ghost btn-sm mt8",onClick:g,children:"+ Add Slot"})]}),i.jsx("div",{className:"row-end",children:i.jsx("button",{className:"btn btn-primary",onClick:T,disabled:o,children:o?i.jsxs(i.Fragment,{children:[i.jsx("span",{className:"spinner",style:{marginRight:7}}),"Creating…"]}):"Create Queue"})})]}),!n.length&&!y&&i.jsxs("div",{className:"empty",children:[i.jsx("div",{className:"empty-icon",children:"🔄"}),i.jsx("div",{className:"empty-msg",children:"No queues yet. Create one to auto-schedule posts into recurring time slots."})]}),n.map(P=>i.jsxs("div",{className:"card mb16",children:[i.jsxs("div",{className:"row mb8",style:{justifyContent:"space-between"},children:[i.jsxs("div",{children:[i.jsx("span",{style:{fontWeight:600},children:P.name}),i.jsx("span",{style:{fontSize:11,color:"var(--muted)",marginLeft:10},children:P.timezone})]}),i.jsx("button",{className:"btn btn-danger btn-sm",onClick:()=>F(P._id),disabled:u===P._id,children:u===P._id?"…":"Delete"})]}),i.jsx("div",{className:"table-wrap",children:i.jsxs("table",{children:[i.jsx("thead",{children:i.jsxs("tr",{children:[i.jsx("th",{children:"Day"}),i.jsx("th",{children:"Time"}),i.jsx("th",{children:"Platforms"})]})}),i.jsx("tbody",{children:(P.slots||[]).map((O,B)=>i.jsxs("tr",{children:[i.jsx("td",{style:{textTransform:"capitalize"},children:O.day}),i.jsx("td",{children:O.time}),i.jsx("td",{children:(O.platforms||[]).join(", ")})]},B))})]})})]},P._id))]})}const hs=()=>new Date().toISOString().slice(0,10),ys=e=>new Date(Date.now()-e*864e5).toISOString().slice(0,10);function tt(e){return e==null?"—":e>=1e6?(e/1e6).toFixed(1)+"M":e>=1e3?(e/1e3).toFixed(1)+"K":String(e)}function ka(e){return e==null?"—":(parseFloat(e)*(e<=1?100:1)).toFixed(2)+"%"}function Fm(){const{showToast:e}=Ue(),[t,n]=k.useState(ys(30)),[r,l]=k.useState(hs()),[s,o]=k.useState(null),[a,u]=k.useState(null),[c,y]=k.useState(!1),v=async()=>{{e("PROFILE_ID not set",!1);return}},p=(s==null?void 0:s.posts)||(s==null?void 0:s.data)||[],S=(a==null?void 0:a.accounts)||(a==null?void 0:a.data)||[];return i.jsxs("div",{children:[i.jsx("div",{className:"card mb24",children:i.jsxs("div",{className:"row",style:{flexWrap:"wrap",gap:12},children:[i.jsxs("div",{className:"field flex1",style:{marginBottom:0},children:[i.jsx("label",{children:"From"}),i.jsx("input",{className:"input",type:"date",value:t,onChange:j=>n(j.target.value)})]}),i.jsxs("div",{className:"field flex1",style:{marginBottom:0},children:[i.jsx("label",{children:"To"}),i.jsx("input",{className:"input",type:"date",value:r,onChange:j=>l(j.target.value)})]}),i.jsx("div",{style:{alignSelf:"flex-end"},children:i.jsx("button",{className:"btn btn-primary",onClick:v,disabled:c,children:c?i.jsxs(i.Fragment,{children:[i.jsx("span",{className:"spinner",style:{marginRight:7}}),"Fetching…"]}):"Fetch Analytics"})}),i.jsx("div",{style:{alignSelf:"flex-end"},children:i.jsx("button",{className:"btn btn-ghost btn-sm",onClick:()=>{n(ys(7)),l(hs())},children:"Last 7d"})}),i.jsx("div",{style:{alignSelf:"flex-end"},children:i.jsx("button",{className:"btn btn-ghost btn-sm",onClick:()=>{n(ys(30)),l(hs())},children:"Last 30d"})})]})}),!s&&!a&&!c&&i.jsxs("div",{className:"empty",children:[i.jsx("div",{className:"empty-icon",children:"📊"}),i.jsx("div",{className:"empty-msg",children:"Select a date range and click Fetch Analytics."})]}),a&&i.jsxs("div",{className:"mb24",children:[i.jsx("div",{className:"section-title mb12",children:"Account Summary"}),i.jsx("div",{className:"table-wrap",children:i.jsxs("table",{children:[i.jsx("thead",{children:i.jsxs("tr",{children:[i.jsx("th",{children:"Platform"}),i.jsx("th",{children:"Impressions"}),i.jsx("th",{children:"Reach"}),i.jsx("th",{children:"Engagement Rate"}),i.jsx("th",{children:"Follower Growth"}),i.jsx("th",{children:"Link Clicks"})]})}),i.jsx("tbody",{children:S.length?S.map((j,x)=>i.jsxs("tr",{children:[i.jsx("td",{style:{textTransform:"capitalize",fontWeight:500},children:j.platform||j.accountId||"—"}),i.jsx("td",{children:tt(j.impressions)}),i.jsx("td",{children:tt(j.reach)}),i.jsx("td",{children:ka(j.engagementRate)}),i.jsx("td",{style:{color:j.followerGrowth>0?"var(--greenl)":"inherit"},children:j.followerGrowth!==void 0?(j.followerGrowth>0?"+":"")+tt(j.followerGrowth):"—"}),i.jsx("td",{children:tt(j.linkClicks)})]},x)):i.jsx("tr",{children:i.jsx("td",{colSpan:6,style:{textAlign:"center",color:"var(--muted)",padding:20},children:"No account data for this period."})})})]})})]}),s&&i.jsxs("div",{children:[i.jsx("div",{className:"section-title mb12",children:"Per-Post Performance"}),i.jsx("div",{className:"table-wrap",children:i.jsxs("table",{children:[i.jsx("thead",{children:i.jsxs("tr",{children:[i.jsx("th",{children:"Post"}),i.jsx("th",{children:"Platform"}),i.jsx("th",{children:"Scheduled"}),i.jsx("th",{children:"Impressions"}),i.jsx("th",{children:"Reach"}),i.jsx("th",{children:"Eng. Rate"}),i.jsx("th",{children:"Likes"}),i.jsx("th",{children:"Comments"}),i.jsx("th",{children:"Shares"})]})}),i.jsx("tbody",{children:p.length?p.map((j,x)=>{var E;return i.jsxs("tr",{children:[i.jsx("td",{style:{maxWidth:200,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:((E=j.content)==null?void 0:E.slice(0,60))||j.postId||"—"}),i.jsx("td",{style:{textTransform:"capitalize"},children:j.platform||"—"}),i.jsx("td",{style:{fontSize:11,color:"var(--muted)"},children:j.scheduledFor?new Date(j.scheduledFor).toLocaleDateString():"—"}),i.jsx("td",{children:tt(j.impressions)}),i.jsx("td",{children:tt(j.reach)}),i.jsx("td",{children:ka(j.engagementRate)}),i.jsx("td",{children:tt(j.likes)}),i.jsx("td",{children:tt(j.comments)}),i.jsx("td",{children:tt(j.shares)})]},x)}):i.jsx("tr",{children:i.jsx("td",{colSpan:9,style:{textAlign:"center",color:"var(--muted)",padding:20},children:"No post data for this period."})})})]})})]})]})}const Bm=[{name:"/zernio campaign",desc:"Full campaign: brief + calendar + publishing plan + captions + optional scheduling"},{name:"/zernio calendar",desc:"Content calendar from an existing brief"},{name:"/zernio captions",desc:"Caption copy deck — batch or single platform, 3 variants A/B/C"},{name:"/zernio schedule",desc:"Scheduling manifest from an existing calendar (produces JSON for submission here)"},{name:"/zernio queue",desc:"Define or update a recurring queue (time slots)"},{name:"/zernio analytics",desc:"Analytics briefing from API data or provided metrics"},{name:"/zernio inbox",desc:"Draft replies for DMs, comments, and reviews via unified inbox"},{name:"/zernio proposal",desc:"Client-ready proposal with platform mix and ROI projections"},{name:"/zernio platforms",desc:"Platform coverage report for client context"},{name:"/zernio quick",desc:"30-second campaign snapshot for a domain or brand"}],$m={pending:"⬜",busy:"🔵",ok:"✅",err:"❌"};function Um(){const{accounts:e,profile:t,showToast:n}=Ue(),[r,l]=k.useState(""),[s,o]=k.useState([]),[a,u]=k.useState(!1),c=`# Zernio Agent Context
|
|
41
|
+
Profile ID : (not set)
|
|
42
|
+
Profile : ${(t==null?void 0:t.name)||"—"}
|
|
43
|
+
Timezone : ${(t==null?void 0:t.timezone)||"America/New_York"}
|
|
44
|
+
API Base : https://zernio.com/api/v1
|
|
45
|
+
|
|
46
|
+
## Connected Accounts
|
|
47
|
+
${e.map(x=>`- ${x.platform} | @${x.username} | accountId: ${x._id||x.accountId}`).join(`
|
|
48
|
+
`)||"(none)"}
|
|
49
|
+
|
|
50
|
+
## Usage
|
|
51
|
+
Paste a /zernio schedule manifest below and click Submit to push each post to Zernio.
|
|
52
|
+
Or run any /zernio command in Claude with this context block prepended.`,y=()=>{var x;try{const E=JSON.parse(r),d=((x=E==null?void 0:E.zernioSchedulingManifest)==null?void 0:x.posts)||(E==null?void 0:E.posts)||(Array.isArray(E)?E:null);if(!(d!=null&&d.length))throw new Error("No posts array found. Expected { zernioSchedulingManifest: { posts: [...] } }");return d}catch(E){return n(E.message,!1),null}},v=async()=>{var E;const x=y();if(x){o(x.map(d=>({id:d.clientPostId||d.id||Math.random(),label:(d.content||"").slice(0,60)+"…",status:"pending",msg:""}))),u(!0);for(let d=0;d<x.length;d++){const f=x[d];o(m=>m.map((g,w)=>w===d?{...g,status:"busy"}:g));try{const m=f.clientPostId||`agent-${Date.now()}-${d}`,g={profileId:f.profileId||Tt,content:f.content,platforms:f.platforms};f.scheduledFor&&(g.scheduledFor=f.scheduledFor),f.queueId&&(g.queueId=f.queueId),(E=f.media)!=null&&E.length&&(g.media=f.media),f.timezone&&(g.timezone=f.timezone);const w=await J.createPost(g,m),C=w.id||w._id||"ok";o(N=>N.map((T,F)=>F===d?{...T,status:"ok",msg:`ID: ${C}`}:T)),await new Promise(N=>setTimeout(N,400))}catch(m){o(g=>g.map((w,C)=>C===d?{...w,status:"err",msg:m.message}:w))}}u(!1),n("Manifest submission complete")}},p=()=>{l(""),o([])},S=s.filter(x=>x.status==="ok").length,j=s.filter(x=>x.status==="err").length;return i.jsxs("div",{className:"agent-layout",children:[i.jsxs("div",{className:"cmd-ref",children:[i.jsx("div",{className:"section-title mb16",children:"Command Reference"}),Bm.map(x=>i.jsxs("div",{className:"cmd-item",children:[i.jsx("div",{className:"cmd-name",children:x.name}),i.jsx("div",{className:"cmd-desc",children:x.desc})]},x.name)),i.jsx("hr",{className:"divider"}),i.jsx("div",{className:"section-title mb8",children:"Agent Context Block"}),i.jsx("div",{style:{fontSize:11,color:"var(--muted)",marginBottom:8},children:"Prepend to any Claude prompt"}),i.jsx("div",{className:"context-box",children:c}),i.jsx("button",{className:"btn btn-ghost btn-sm mt8",style:{width:"100%"},onClick:()=>{navigator.clipboard.writeText(c),n("Copied to clipboard ✓")},children:"Copy Context"})]}),i.jsxs("div",{className:"manifest-panel",children:[i.jsxs("div",{className:"card",children:[i.jsx("div",{className:"section-title mb12",children:"Manifest Submitter"}),i.jsxs("div",{style:{fontSize:12,color:"var(--muted)",marginBottom:10},children:["Paste the JSON output from ",i.jsx("span",{style:{fontFamily:"monospace",color:"var(--accentl)"},children:"/zernio schedule"})," and submit each post directly to the Zernio API."]}),i.jsxs("div",{className:"field",children:[i.jsx("label",{children:"Scheduling Manifest JSON"}),i.jsx("textarea",{className:"textarea",style:{minHeight:200,fontFamily:"monospace",fontSize:12},placeholder:`{
|
|
53
|
+
"zernioSchedulingManifest": {
|
|
54
|
+
"posts": [...]
|
|
55
|
+
}
|
|
56
|
+
}`,value:r,onChange:x=>l(x.target.value)})]}),i.jsxs("div",{className:"row-end",children:[i.jsx("button",{className:"btn btn-ghost btn-sm",onClick:p,children:"Clear"}),i.jsx("button",{className:"btn btn-secondary btn-sm",onClick:()=>{const x=y();x&&n(`${x.length} post(s) parsed — ready to submit`)},children:"Validate"}),i.jsx("button",{className:"btn btn-primary",onClick:v,disabled:a||!r.trim(),children:a?i.jsxs(i.Fragment,{children:[i.jsx("span",{className:"spinner",style:{marginRight:7}}),"Submitting…"]}):"Submit Manifest"})]})]}),s.length>0&&i.jsxs("div",{className:"card",children:[i.jsxs("div",{className:"row mb12",style:{justifyContent:"space-between"},children:[i.jsx("div",{className:"section-title",style:{marginBottom:0},children:"Submission Progress"}),i.jsxs("div",{style:{fontSize:12,color:"var(--muted)"},children:[S,"/",s.length," ok ",j>0&&i.jsxs("span",{style:{color:"var(--redl)"},children:["· ",j," failed"]})]})]}),i.jsx("div",{className:"manifest-status",children:s.map((x,E)=>i.jsxs("div",{className:`m-row ${x.status}`,children:[i.jsx("span",{style:{fontSize:16},children:$m[x.status]}),i.jsx("span",{className:"flex1",style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:x.label}),x.msg&&i.jsx("span",{style:{fontSize:11,opacity:.8},children:x.msg})]},E))})]})]})]})}function bm(){const{showToast:e}=Ue(),[t,n]=k.useState([]),[r,l]=k.useState(!0),[s,o]=k.useState(null),[a,u]=k.useState(!1),[c,y]=k.useState(!1),[v,p]=k.useState("read-write"),[S,j]=k.useState("full"),[x,E]=k.useState(null),d=k.useCallback(()=>{J.getApiKeys().then(g=>n(g.keys||g.apiKeys||[])).catch(g=>e(g.message,!1)).finally(()=>l(!1))},[]);k.useEffect(d,[d]);const f=async()=>{u(!0);try{const g=await J.createApiKey({scope:v,permission:S});E(g.key||g.apiKey||g),e("API key created ✓"),y(!1),d()}catch(g){e(g.message,!1)}finally{u(!1)}},m=async g=>{if(confirm("Revoke this API key? This cannot be undone.")){o(g);try{await J.deleteApiKey(g),e("Key revoked"),d()}catch(w){e(w.message,!1)}finally{o(null)}}};return r?i.jsxs("div",{className:"loading-row",children:[i.jsx("span",{className:"spinner"}),"Loading API keys…"]}):i.jsxs("div",{children:[i.jsxs("div",{className:"row mb16",style:{justifyContent:"space-between"},children:[i.jsxs("div",{className:"section-title",style:{marginBottom:0},children:[t.length," API Key",t.length!==1?"s":""]}),i.jsx("button",{className:"btn btn-primary btn-sm",onClick:()=>{y(g=>!g),E(null)},children:c?"✕ Cancel":"+ New Key"})]}),x&&i.jsxs("div",{className:"banner banner-ok mb16",children:[i.jsx("div",{style:{fontWeight:600,marginBottom:4},children:"New key created — copy it now, it will not be shown again"}),i.jsx("div",{style:{fontFamily:"monospace",fontSize:12,wordBreak:"break-all"},children:typeof x=="string"?x:JSON.stringify(x)}),i.jsx("button",{className:"btn btn-ghost btn-sm mt8",onClick:()=>{navigator.clipboard.writeText(typeof x=="string"?x:JSON.stringify(x)),e("Copied")},children:"Copy"})]}),c&&i.jsxs("div",{className:"card mb16",children:[i.jsx("div",{className:"section-title mb16",children:"Create API Key"}),i.jsxs("div",{className:"field",children:[i.jsx("label",{children:"Scope"}),i.jsxs("select",{className:"select",value:v,onChange:g=>p(g.target.value),children:[i.jsx("option",{value:"read",children:"read — list profiles, accounts, analytics, inbox"}),i.jsx("option",{value:"read-write",children:"read-write — everything including create/schedule posts"})]})]}),i.jsxs("div",{className:"field",children:[i.jsx("label",{children:"Permission"}),i.jsxs("select",{className:"select",value:S,onChange:g=>j(g.target.value),children:[i.jsx("option",{value:"full",children:"full — any profile on account"}),i.jsx("option",{value:"profiles-specific",children:"profiles-specific — restricted to specific profile IDs"})]})]}),i.jsx("div",{className:"row-end",children:i.jsx("button",{className:"btn btn-primary",onClick:f,disabled:a,children:a?i.jsxs(i.Fragment,{children:[i.jsx("span",{className:"spinner",style:{marginRight:7}}),"Creating…"]}):"Create Key"})})]}),!t.length&&!c&&i.jsxs("div",{className:"empty",children:[i.jsx("div",{className:"empty-icon",children:"🔑"}),i.jsx("div",{className:"empty-msg",children:"No API keys found."})]}),t.length>0&&i.jsx("div",{className:"table-wrap",children:i.jsxs("table",{children:[i.jsx("thead",{children:i.jsxs("tr",{children:[i.jsx("th",{children:"Key ID"}),i.jsx("th",{children:"Scope"}),i.jsx("th",{children:"Permission"}),i.jsx("th",{children:"Created"}),i.jsx("th",{})]})}),i.jsx("tbody",{children:t.map(g=>i.jsxs("tr",{children:[i.jsx("td",{style:{fontFamily:"monospace",fontSize:12},children:g._id||g.id}),i.jsx("td",{children:i.jsx("span",{className:`badge ${g.scope==="read-write"?"badge-purple":"badge-neutral"}`,children:g.scope})}),i.jsx("td",{children:i.jsx("span",{className:"badge badge-neutral",children:g.permission||g.permissions||"—"})}),i.jsx("td",{style:{fontSize:12,color:"var(--muted)"},children:g.createdAt?new Date(g.createdAt).toLocaleDateString():"—"}),i.jsx("td",{children:i.jsx("button",{className:"btn btn-danger btn-xs",onClick:()=>m(g._id||g.id),disabled:s===(g._id||g.id),children:s===(g._id||g.id)?"…":"Revoke"})})]},g._id||g.id))})]})})]})}function Wm(){const{showToast:e}=Ue(),[t,n]=k.useState([]),[r,l]=k.useState(!0),[s,o]=k.useState(null),[a,u]=k.useState({}),[c,y]=k.useState(null),[v,p]=k.useState(!1),S=k.useCallback(()=>{J.getAutomations().then(E=>n(E.automations||E.data||[])).catch(E=>e(E.message,!1)).finally(()=>l(!1))},[]);k.useEffect(S,[S]);const j=async E=>{o(E);try{await J.runAutomation(E),e("Automation triggered ✓"),S()}catch(d){e(d.message,!1)}finally{o(null)}},x=async E=>{if(c===E){y(null);return}if(y(E),!a[E]){p(!0);try{const d=await J.getAutomationLogs(E);u(f=>({...f,[E]:d.logs||d.data||[]}))}catch(d){e(d.message,!1)}finally{p(!1)}}};return r?i.jsxs("div",{className:"loading-row",children:[i.jsx("span",{className:"spinner"}),"Loading automations…"]}):t.length?i.jsxs("div",{children:[i.jsxs("div",{className:"section-title mb16",children:[t.length," Automation",t.length!==1?"s":""]}),t.map(E=>{var f;const d=E._id||E.id;return i.jsxs("div",{className:"card mb16",children:[i.jsxs("div",{className:"row mb8",style:{justifyContent:"space-between"},children:[i.jsxs("div",{children:[i.jsx("span",{style:{fontWeight:600},children:E.name||E.title||d}),i.jsx("span",{className:`badge ${E.status==="active"?"badge-green":"badge-neutral"} ml8`,style:{marginLeft:10},children:E.status||"unknown"})]}),i.jsxs("div",{className:"row",children:[i.jsx("button",{className:"btn btn-ghost btn-sm",onClick:()=>x(d),children:c===d?"Hide Logs":"Logs"}),i.jsx("button",{className:"btn btn-primary btn-sm",onClick:()=>j(d),disabled:s===d,children:s===d?i.jsxs(i.Fragment,{children:[i.jsx("span",{className:"spinner",style:{marginRight:6}}),"Running…"]}):"▶ Run"})]})]}),E.description&&i.jsx("div",{style:{fontSize:12,color:"var(--muted)",marginBottom:6},children:E.description}),E.trigger&&i.jsxs("div",{style:{fontSize:12,color:"var(--dim)"},children:["Trigger: ",i.jsx("span",{style:{color:"var(--accentl)",fontFamily:"monospace"},children:E.trigger})]}),c===d&&i.jsxs("div",{style:{marginTop:12},children:[i.jsx("div",{className:"section-title mb8",children:"Execution Logs"}),v?i.jsxs("div",{className:"loading-row",children:[i.jsx("span",{className:"spinner"}),"Loading…"]}):(f=a[d])!=null&&f.length?i.jsx("div",{style:{maxHeight:220,overflow:"auto"},children:i.jsxs("table",{style:{fontSize:12},children:[i.jsx("thead",{children:i.jsxs("tr",{children:[i.jsx("th",{children:"Time"}),i.jsx("th",{children:"Status"}),i.jsx("th",{children:"Message"})]})}),i.jsx("tbody",{children:a[d].map((m,g)=>i.jsxs("tr",{children:[i.jsx("td",{style:{fontFamily:"monospace",whiteSpace:"nowrap"},children:m.createdAt?new Date(m.createdAt).toLocaleString():"—"}),i.jsx("td",{children:i.jsx("span",{className:`badge ${m.status==="success"?"badge-green":m.status==="error"?"badge-red":"badge-neutral"}`,children:m.status})}),i.jsx("td",{style:{color:"var(--muted)"},children:m.message||m.msg||"—"})]},g))})]})}):i.jsx("div",{style:{color:"var(--muted)",fontSize:12},children:"No logs yet."})]})]},d)})]}):i.jsxs("div",{className:"empty",children:[i.jsx("div",{className:"empty-icon",children:"⚡"}),i.jsxs("div",{className:"empty-msg",children:["No automations found on this account.",i.jsx("br",{}),"Create automations in the Zernio dashboard."]})]})}const Hc="zernio_comment_templates_v2",Na={send_dm:{label:"DM Only",color:"blue",icon:"📩"},reply_comment:{label:"Reply Only",color:"purple",icon:"💬"},both:{label:"Reply + DM",color:"green",icon:"🔁"}},Hm=[{token:"{{firstName}}",desc:"First name of commenter"},{token:"{{username}}",desc:"Platform handle (e.g. @ant0ni0)"},{token:"{{triggerWord}}",desc:"The keyword they typed"},{token:"{{postLink}}",desc:"Link to the original post"},{token:"{{profileName}}",desc:"Your profile/page name"}];function Ln(){try{return JSON.parse(localStorage.getItem(Hc)||"[]")}catch{return[]}}function Sr(e){localStorage.setItem(Hc,JSON.stringify(e))}function jl(){return Ln()}function Qm(e){const t=Ln();if(e.id){const n=t.findIndex(r=>r.id===e.id);n>=0?t[n]={...e,updatedAt:new Date().toISOString()}:t.push({...e,createdAt:new Date().toISOString()})}else t.push({...e,id:`tpl_${Date.now()}`,createdAt:new Date().toISOString()});return Sr(t),t}function Vm(e){const t=Ln().filter(n=>n.id!==e);return Sr(t),t}function Km(){const e=new Blob([JSON.stringify(Ln(),null,2)],{type:"application/json"}),t=URL.createObjectURL(e),n=document.createElement("a");n.href=t,n.download=`zernio-templates-${new Date().toISOString().slice(0,10)}.json`,n.click(),URL.revokeObjectURL(t)}function Gm(e){const t=JSON.parse(e);if(!Array.isArray(t))throw new Error("Expected an array of templates");const r=[...Ln()];for(const l of t)r.find(s=>s.id===l.id)||r.push(l);return Sr(r),r}function mn(e,t={}){const n={firstName:t.firstName||"Alex",username:t.username||"@alexsmith",triggerWord:t.triggerWord||"X",postLink:t.postLink||"https://x.com/example/status/123",profileName:t.profileName||"Your Brand"};return e.replace(/{{firstName}}/g,n.firstName).replace(/{{username}}/g,n.username).replace(/{{triggerWord}}/g,n.triggerWord).replace(/{{postLink}}/g,n.postLink).replace(/{{profileName}}/g,n.profileName)}const nt="[BOOK_CALL_LINK]",Qc=[{id:"tpl_gh_ads_playbook",name:"Winning Ads Playbook",type:"both",keyword_hint:"ADS, PLAYBOOK, STATIC",replyBody:"Sent! 📩 Check your DMs {{firstName}} — the ads playbook is on its way 🎯",dmBody:`Hey {{firstName}}! Here's the Winning Static Ads Playbook for 2026 👉 https://www.growthub.ai/f/blog/static-ads-2026
|
|
57
|
+
|
|
58
|
+
Quick one — what's your biggest challenge with ads right now? Happy to take a look or chat: ${nt}`,createdAt:new Date().toISOString()},{id:"tpl_gh_prompts_playbook",name:"Winning Prompts Playbook",type:"both",keyword_hint:"PROMPTS, AI, PLAYBOOK",replyBody:"Sent! 📩 Your prompts playbook is in your DMs {{firstName}} 🤖",dmBody:`Hey {{firstName}}! Here's the Winning Prompts Playbook 👉 https://www.growthub.ai/f/playbook
|
|
59
|
+
|
|
60
|
+
Which part of your workflow are you trying to speed up with AI? Drop a reply or book 10 mins: ${nt}`,createdAt:new Date().toISOString()},{id:"tpl_gh_nano_banana",name:"Nano Banana Starter Kit",type:"both",keyword_hint:"KIT, STARTER, NANO",replyBody:"Sent! 📩 The Nano Banana Starter Kit is in your DMs {{firstName}} 🍌",dmBody:`Hey {{firstName}}! Here's your Nano Banana Starter Kit 👉 https://v0-nano-banana-starter-kit.vercel.app/
|
|
61
|
+
|
|
62
|
+
What are you building? Drop a reply and let's figure it out together, or grab 10 mins: ${nt}`,createdAt:new Date().toISOString()},{id:"tpl_gh_competitor_ads",name:"Free Competitor Ads Report",type:"both",keyword_hint:"COMPETITOR, REPORT, SPY",replyBody:"Sent! 📩 Your free competitor ads report is in your DMs {{firstName}} 🔍",dmBody:`Hey {{firstName}}! Grab your free competitor ads report here 👉 https://www.growthub.ai/f/winning-ads-signup
|
|
63
|
+
|
|
64
|
+
Who are you up against right now? Would love to show you what's actually working in your space — book 10 mins: ${nt}`,createdAt:new Date().toISOString()},{id:"tpl_gh_seo_mastersheet",name:"SEO · LLM · GEO Mastersheet",type:"both",keyword_hint:"SEO, LLM, GEO, SEARCH",replyBody:"Sent! 📩 The SEO·LLM·GEO Mastersheet is in your DMs {{firstName}} 🗂",dmBody:`Hey {{firstName}}! Here's the SEO · AEO · LLM · GEO Mastersheet 👉 https://www.notion.so/growthub/SEO-AEO-LLM-GEO-Mastersheet-2e4d28ab978380dbbff0e56e7ee28082
|
|
65
|
+
|
|
66
|
+
Are you trying to show up in AI search right now? Curious what you're working on — or grab 10 mins: ${nt}`,createdAt:new Date().toISOString()},{id:"tpl_gh_seo_audit",name:"Free SEO · AEO · LLM Audit",type:"both",keyword_hint:"AUDIT, FREE, TRAFFIC",replyBody:"Sent! 📩 Your free SEO·AEO audit is in your DMs {{firstName}} 📊",dmBody:`Hey {{firstName}}! Run your free SEO · AEO · LLM audit here 👉 https://www.growthub.ai/onboarding-agent
|
|
67
|
+
|
|
68
|
+
What's your current traffic situation? Happy to walk through the results — or book 10 mins: ${nt}`,createdAt:new Date().toISOString()},{id:"tpl_gh_dtc_mega",name:"DTC Mega File",type:"both",keyword_hint:"DTC, ECOM, BRAND",replyBody:"Sent! 📩 The DTC Mega File is in your DMs {{firstName}} 📦",dmBody:`Hey {{firstName}}! Here's the DTC Mega File 👉 https://growthub.notion.site/dtc-mega-file
|
|
69
|
+
|
|
70
|
+
What stage is your brand at right now? Drop a reply or let's look at your numbers together: ${nt}`,createdAt:new Date().toISOString()},{id:"tpl_gh_ai_images",name:"AI Batch Image Generation Guide",type:"both",keyword_hint:"IMAGES, BATCH, CREATIVE, AI",replyBody:"Sent! 📩 The AI Batch Image Mastery Guide is in your DMs {{firstName}} 🎨",dmBody:`Hey {{firstName}}! Here's the AI Batch Image Generation Mastery Guide 👉 https://www.notion.so/growthub/AI-Batch-Image-Generation-Mastery-Guide-303d28ab978380cc89ccef0fccff4d52
|
|
71
|
+
|
|
72
|
+
Are you already using AI for your creative? Would love to hear what's working — or book 10 mins: ${nt}`,createdAt:new Date().toISOString()},{id:"tpl_gh_hooks",name:"500+ Proven Winning Hooks",type:"both",keyword_hint:"HOOKS, COPY, CONTENT",replyBody:"Sent! 📩 500+ winning hooks are in your DMs {{firstName}} 🪝",dmBody:`Hey {{firstName}}! Here's the 500+ Proven Winning Hooks library 👉 https://www.notion.so/growthub/2d7d28ab9783802aa48dcda105f8c63f?v=8e6120c3ec8e401daa8eaefad2de89d6
|
|
73
|
+
|
|
74
|
+
What content format are you focused on right now? Happy to help you pick the right hooks — or book 10 mins: ${nt}`,createdAt:new Date().toISOString()}];function Vc(){Ln().length||Sr(Qc)}function Ym(){Sr(Qc)}const Xm={blue:"badge-blue",purple:"badge-purple",green:"badge-green"},gs={name:"",type:"both",body:"",replyBody:"",dmBody:""};function qm({onNavigate:e}){const{showToast:t}=Ue(),[n,r]=k.useState([]),[l,s]=k.useState("all"),[o,a]=k.useState(null),[u,c]=k.useState(gs),[y,v]=k.useState(null);k.useEffect(()=>{Vc(),r(jl())},[]);const p=()=>r(jl()),S=()=>{c(gs),a("new"),v(null)},j=w=>{c({name:w.name,type:w.type,body:w.body||"",replyBody:w.replyBody||"",dmBody:w.dmBody||"",id:w.id}),a(w.id),v(null)},x=()=>{a(null),c(gs)},E=()=>{if(!u.name.trim()){t("Template name required",!1);return}if(u.type==="both"&&(!u.replyBody.trim()||!u.dmBody.trim())){t('Both reply and DM body required for "Reply + DM" type',!1);return}if(u.type!=="both"&&!u.body.trim()){t("Message body required",!1);return}Qm({...u}),p(),x(),t("Template saved ✓")},d=w=>{confirm("Delete this template? Any rules using it will need to be updated.")&&(Vm(w),p(),t("Template deleted"))},f=(w,C)=>{c(N=>({...N,[C]:(N[C]||"")+w}))},m=w=>{const C=w.target.files[0];if(!C)return;const N=new FileReader;N.onload=T=>{try{Gm(T.target.result),p(),t("Templates imported ✓")}catch(F){t(F.message,!1)}},N.readAsText(C),w.target.value=""},g=l==="all"?n:n.filter(w=>w.type===l);return i.jsxs("div",{children:[i.jsxs("div",{className:"row mb16",style:{justifyContent:"space-between",flexWrap:"wrap",gap:10},children:[i.jsxs("div",{children:[i.jsx("div",{style:{fontWeight:600,marginBottom:4},children:"Template Library"}),i.jsx("div",{style:{fontSize:12,color:"var(--muted)"},children:"Saved messages for auto-reply comments and DM lead magnets"})]}),i.jsxs("div",{className:"row",style:{gap:8,flexWrap:"wrap"},children:[i.jsxs("label",{className:"btn btn-ghost btn-sm",style:{cursor:"pointer"},children:["Import",i.jsx("input",{type:"file",accept:".json",style:{display:"none"},onChange:m})]}),i.jsx("button",{className:"btn btn-ghost btn-sm",title:"Reset to all 9 Growthub lead magnet templates",onClick:()=>{confirm("Load all 9 Growthub lead magnet templates? This will overwrite current templates.")&&(Ym(),p(),t("Growthub templates loaded ✓"))},children:"⚡ Load Growthub Templates"}),i.jsx("button",{className:"btn btn-ghost btn-sm",onClick:Km,disabled:!n.length,children:"Export"}),i.jsx("button",{className:"btn btn-primary btn-sm",onClick:S,children:"+ New Template"})]})]}),i.jsx("div",{className:"filter-bar",children:[["all","All"],["both","Reply + DM"],["reply_comment","Reply Only"],["send_dm","DM Only"]].map(([w,C])=>i.jsx("button",{className:`filter-btn ${l===w?"active":""}`,onClick:()=>s(w),children:C},w))}),o&&i.jsxs("div",{className:"rule-form mb24",children:[i.jsx("div",{style:{fontWeight:600,marginBottom:16},children:o==="new"?"+ New Template":"Edit Template"}),i.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 180px",gap:12,marginBottom:12},children:[i.jsxs("div",{className:"field",style:{marginBottom:0},children:[i.jsx("label",{children:"Template Name"}),i.jsx("input",{className:"input",placeholder:"e.g. Lead Magnet — Free Guide",value:u.name,onChange:w=>c(C=>({...C,name:w.target.value}))})]}),i.jsxs("div",{className:"field",style:{marginBottom:0},children:[i.jsx("label",{children:"Type"}),i.jsxs("select",{className:"select",value:u.type,onChange:w=>c(C=>({...C,type:w.target.value})),children:[i.jsx("option",{value:"both",children:"Reply + DM"}),i.jsx("option",{value:"reply_comment",children:"Reply Only"}),i.jsx("option",{value:"send_dm",children:"DM Only"})]})]})]}),i.jsxs("div",{style:{marginBottom:10},children:[i.jsx("div",{style:{fontSize:11,color:"var(--muted)",marginBottom:6},children:"Insert variable"}),i.jsx("div",{className:"row",style:{flexWrap:"wrap",gap:6},children:Hm.map(w=>i.jsx("span",{className:"tpl-var",title:w.desc,onClick:()=>f(w.token,u.type==="both"?"dmBody":"body"),children:w.token},w.token))})]}),u.type==="both"?i.jsxs("div",{className:"both-fields",children:[i.jsxs("div",{className:"field",style:{marginBottom:0},children:[i.jsx("label",{children:"💬 Public Reply (comment)"}),i.jsx("textarea",{className:"textarea",style:{minHeight:90},placeholder:"e.g. Check your DMs, {{firstName}}! 📩",value:u.replyBody,onChange:w=>c(C=>({...C,replyBody:w.target.value}))}),i.jsxs("div",{className:"char-count",children:[u.replyBody.length," chars"]})]}),i.jsxs("div",{className:"field",style:{marginBottom:0},children:[i.jsx("label",{children:"📩 DM Body (private)"}),i.jsx("textarea",{className:"textarea",style:{minHeight:90},placeholder:"Hey {{firstName}}! Here's your free guide...",value:u.dmBody,onChange:w=>c(C=>({...C,dmBody:w.target.value}))}),i.jsxs("div",{className:"char-count",children:[u.dmBody.length," chars"]})]})]}):i.jsxs("div",{className:"field",style:{marginBottom:0},children:[i.jsx("label",{children:u.type==="send_dm"?"📩 DM Body":"💬 Reply Body"}),i.jsx("textarea",{className:"textarea",style:{minHeight:120},placeholder:u.type==="send_dm"?"Hey {{firstName}}! Here's your free guide...":"Thanks for your interest! Check your DMs 📩",value:u.body,onChange:w=>c(C=>({...C,body:w.target.value}))}),i.jsxs("div",{className:"char-count",children:[u.body.length," chars"]})]}),(u.body||u.dmBody||u.replyBody)&&i.jsxs("div",{style:{marginTop:12},children:[i.jsx("div",{style:{fontSize:11,color:"var(--muted)",marginBottom:6},children:"Preview (sample values)"}),i.jsx("div",{className:"preview-box",children:u.type==="both"?`💬 ${mn(u.replyBody)}
|
|
75
|
+
|
|
76
|
+
📩 ${mn(u.dmBody)}`:mn(u.body)})]}),i.jsxs("div",{className:"row-end mt12",children:[i.jsx("button",{className:"btn btn-ghost btn-sm",onClick:x,children:"Cancel"}),i.jsx("button",{className:"btn btn-primary btn-sm",onClick:E,children:"Save Template"})]})]}),!g.length&&i.jsxs("div",{className:"empty",children:[i.jsx("div",{className:"empty-icon",children:"📝"}),i.jsx("div",{className:"empty-msg",children:l==="all"?"No templates yet. Create your first reply or DM template.":`No ${l} templates.`})]}),i.jsx("div",{className:"tpl-grid",children:g.map(w=>{const C=Na[w.type]||Na.both,N=w.type==="both"?`💬 ${w.replyBody||""}
|
|
77
|
+
|
|
78
|
+
📩 ${w.dmBody||""}`:w.body||"";return i.jsxs("div",{className:`tpl-card ${y===w.id?"selected":""}`,children:[i.jsxs("div",{className:"tpl-type-row",children:[i.jsx("span",{className:"tpl-type-icon",children:C.icon}),i.jsx("span",{className:"tpl-name",children:w.name}),i.jsx("span",{className:`badge badge-${Xm[C.color]}`,children:C.label})]}),w.keyword_hint&&i.jsxs("div",{style:{fontSize:11,color:"var(--muted)"},children:["🔑 Trigger: ",i.jsx("span",{style:{color:"var(--accentl)",fontFamily:"monospace"},children:w.keyword_hint})]}),i.jsx("div",{className:"tpl-body",children:N}),y===w.id&&i.jsxs("div",{children:[i.jsx("div",{style:{fontSize:11,color:"var(--muted)",marginBottom:5},children:"Preview"}),i.jsx("div",{className:"preview-box",style:{fontSize:12,maxHeight:"none"},children:mn(N)})]}),i.jsxs("div",{className:"tpl-footer",children:[i.jsx("button",{className:"btn btn-ghost btn-xs",onClick:()=>v(T=>T===w.id?null:w.id),children:y===w.id?"Hide":"Preview"}),i.jsx("button",{className:"btn btn-secondary btn-xs",onClick:()=>j(w),children:"Edit"}),i.jsx("button",{className:"btn btn-ghost btn-xs",onClick:()=>{navigator.clipboard.writeText(N),t("Copied ✓")},children:"Copy"}),i.jsx("button",{className:"btn btn-danger btn-xs",style:{marginLeft:"auto"},onClick:()=>d(w.id),children:"✕"})]}),w.createdAt&&i.jsx("div",{style:{fontSize:10,color:"var(--muted)"},children:new Date(w.createdAt).toLocaleDateString()})]},w.id)})}),n.length>0&&!o&&i.jsx("div",{className:"row mt12",style:{justifyContent:"flex-end"},children:i.jsx("button",{className:"btn btn-primary btn-sm",onClick:()=>e&&e("commentrules"),children:"Use in Comment Rules →"})})]})}const Zm=["instagram","facebook"],Jm={instagram:"#e1306c",facebook:"#1877f2"},ep={instagram:"📸",facebook:"f"},Ca={published:{cls:"badge-green",label:"Published"},scheduled:{cls:"badge-blue",label:"Scheduled"},draft:{cls:"badge-neutral",label:"Draft"}},Br={name:"",keywords:"",dmMessage:"",commentReply:"",platformPostId:"",accountId:""};function Ea(e,t){const n=jl().find(r=>r.id===e);return n?n.type==="both"?t==="reply"?n.replyBody||"":n.dmBody||"":n.body||"":""}function tp({onNavigate:e}){const{accounts:t,showToast:n}=Ue(),r=t.filter(h=>Zm.includes(h.platform)),l=r.length>0,[s,o]=k.useState([]),[a,u]=k.useState(!0),[c,y]=k.useState("all"),[v,p]=k.useState(""),[S,j]=k.useState(null),[x,E]=k.useState([]),[d,f]=k.useState(!1),[m,g]=k.useState({}),[w,C]=k.useState(null),[N,T]=k.useState(Br),[F,P]=k.useState(!1),[O,B]=k.useState(null),[A,te]=k.useState(!1),[xe,be]=k.useState(null),[Ce,L]=k.useState({}),[D,R]=k.useState([]),[G,V]=k.useState(""),[qt,Ee]=k.useState("");k.useEffect(()=>{Vc(),R(jl())},[]),k.useEffect(()=>{},[]);const Ot=k.useCallback(async()=>{{u(!1);return}},[]);k.useEffect(()=>{Ot()},[Ot]);const De=k.useCallback(async h=>{f(!0),E([]);try{const I=await J.getCommentAutomations(Tt),ce=I.automations||I.data||[],mt=h._id||h.id;E(ce.filter(Rt=>Rt.postId===mt||Rt._id===mt||Rt.platformPostId===(h.platformPostId||mt)))}catch(I){n(I.message,!1)}finally{f(!1)}},[]),Zt=h=>{j(h),P(!1),B(null),T(Br),V(""),Ee(""),De(h)},lo=D.filter(h=>h.type==="send_dm"||h.type==="both"),so=D.filter(h=>h.type==="reply_comment"||h.type==="both"),Gc=h=>{V(h);const I=Ea(h,"dm");I&&T(ce=>({...ce,dmMessage:mn(I)}))},Yc=h=>{Ee(h);const I=Ea(h,"reply");I&&T(ce=>({...ce,commentReply:mn(I)}))},io=()=>{const h=r[0];T({...Br,accountId:(h==null?void 0:h._id)||"",name:S?`Comment Rule — ${(S.content||"").slice(0,40)}`:""}),V(""),Ee(""),B(null),P(!0)},oo=h=>{var I;T({name:h.name||"",keywords:Array.isArray(h.keywords)?h.keywords.join(", "):h.keywords||"",dmMessage:h.dmMessage||"",commentReply:h.commentReply||"",platformPostId:h.platformPostId||"",accountId:h.accountId||((I=r[0])==null?void 0:I._id)||""}),V(""),Ee(""),B(h._id||h.id),P(!0)},ao=()=>{P(!1),B(null),T(Br),V(""),Ee("")},Xc=async()=>{if(!N.name.trim()){n("Enter a name",!1);return}if(!N.accountId){n("Select an Instagram or Facebook account",!1);return}if(!N.platformPostId.trim()){n("Enter the platform post ID / URL",!1);return}if(!N.dmMessage.trim()){n("DM message is required",!1);return}r.find(I=>I._id===N.accountId);const h={name:N.name.trim(),profileId:Tt,accountId:N.accountId,platformPostId:N.platformPostId.trim(),dmMessage:N.dmMessage.trim()};N.keywords.trim()&&(h.keywords=N.keywords.trim()),N.commentReply.trim()&&(h.commentReply=N.commentReply.trim()),te(!0);try{if(O?(await J.updateCommentAutomation(O,h),n("Automation updated ✓")):(await J.createCommentAutomation(h),n("Automation created ✓ — live on Zernio!")),ao(),S)De(S);else{const I=await J.getCommentAutomations(Tt);E(I.automations||[])}}catch(I){n(I.message,!1)}finally{te(!1)}},uo=async h=>{if(confirm("Delete this automation? All logs will be deleted.")){be(h);try{await J.deleteCommentAutomation(h),n("Automation deleted"),S&&De(S)}catch(I){n(I.message,!1)}finally{be(null)}}},co=async h=>{try{await J.updateCommentAutomation(h._id||h.id,{isActive:!h.isActive}),n(h.isActive?"Paused":"Activated ✓"),S&&De(S)}catch(I){n(I.message,!1)}},fo=async h=>{if(w===h){C(null);return}if(C(h),!m[h])try{const I=await J.getCommentAutomationLogs(h);g(ce=>({...ce,[h]:I.logs||I.data||[]}))}catch(I){n(I.message,!1)}},[$l,sp]=k.useState([]);k.useEffect(()=>{},[]);const mo=s.filter(h=>{const I=c==="all"||h.status===c,ce=!v||(h.content||"").toLowerCase().includes(v.toLowerCase());return I&&ce});return l?i.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:12},children:[$l.length>0&&!S&&i.jsxs("div",{className:"card",children:[i.jsxs("div",{className:"section-title mb12",children:["Active Automations (",$l.length,")"]}),$l.map(h=>i.jsxs("div",{className:`rule-card ${h.isActive?"active":"paused"}`,style:{marginBottom:8},children:[i.jsxs("div",{className:"rule-header",children:[i.jsx("span",{className:"rule-keyword",children:h.keywords||"ALL COMMENTS"}),i.jsxs("span",{style:{fontSize:12,color:"var(--dim)"},children:["📸/f ",h.platform||""]}),i.jsx("span",{className:`badge ${h.isActive?"badge-green":"badge-neutral"}`,style:{marginLeft:"auto"},children:h.isActive?"Active":"Paused"})]}),i.jsx("div",{style:{fontSize:12,color:"var(--muted)",margin:"4px 0 8px"},children:h.name}),i.jsxs("div",{className:"rule-footer",children:[i.jsx("button",{className:"btn btn-ghost btn-xs",onClick:()=>fo(h._id||h.id),children:w===(h._id||h.id)?"Hide Logs":"Logs"}),i.jsxs("div",{className:"toggle-wrap",onClick:()=>co(h),children:[i.jsx("div",{className:`toggle ${h.isActive?"on":""}`}),i.jsx("span",{className:"toggle-label",style:{fontSize:11},children:h.isActive?"On":"Off"})]}),i.jsx("button",{className:"btn btn-ghost btn-xs",onClick:()=>{j(null),oo(h)},children:"Edit"}),i.jsx("button",{className:"btn btn-danger btn-xs",style:{marginLeft:"auto"},onClick:()=>uo(h._id||h.id),disabled:xe===(h._id||h.id),children:xe===(h._id||h.id)?"…":"Delete"})]}),w===(h._id||h.id)&&i.jsx("div",{style:{marginTop:10},children:(m[h._id||h.id]||[]).length===0?i.jsx("div",{style:{fontSize:12,color:"var(--muted)"},children:"No triggers yet."}):(m[h._id||h.id]||[]).slice(0,10).map((I,ce)=>{var mt;return i.jsxs("div",{style:{fontSize:11,padding:"4px 8px",borderRadius:4,marginBottom:3,background:"#09090b",display:"flex",gap:8},children:[i.jsx("span",{style:{color:I.status==="sent"?"var(--greenl)":"var(--redl)"},children:"●"}),i.jsxs("span",{style:{color:"var(--dim)"},children:["@",I.username||I.commenterUsername||"?"]}),i.jsxs("span",{style:{color:"var(--muted)"},children:['"',((mt=I.comment)==null?void 0:mt.slice(0,40))||"?",'"']}),i.jsx("span",{style:{color:"var(--muted)",marginLeft:"auto"},children:I.createdAt?new Date(I.createdAt).toLocaleTimeString():""})]},ce)})})]},h._id||h.id))]}),i.jsxs("div",{className:"cr-layout",style:{flex:1},children:[i.jsxs("div",{className:"cr-posts",children:[i.jsxs("div",{className:"cr-posts-header",children:[i.jsxs("div",{className:"row mb8",style:{justifyContent:"space-between"},children:[i.jsx("span",{style:{fontWeight:600,fontSize:13},children:"Posts"}),i.jsx("button",{className:"btn btn-ghost",style:{fontSize:11,padding:"3px 8px"},onClick:Ot,children:"↻"})]}),i.jsx("div",{className:"row mb8",style:{gap:5},children:[["all","All"],["published","Pub"],["scheduled","Sched"]].map(([h,I])=>i.jsx("button",{className:`filter-btn ${c===h?"active":""}`,style:{fontSize:11,padding:"3px 9px"},onClick:()=>y(h),children:I},h))}),i.jsx("input",{className:"input",style:{fontSize:12,padding:"7px 10px"},placeholder:"Search…",value:v,onChange:h=>p(h.target.value)})]}),i.jsxs("div",{className:"cr-posts-list",children:[a&&i.jsxs("div",{className:"loading-row",style:{padding:14},children:[i.jsx("span",{className:"spinner"}),"Loading…"]}),!a&&!mo.length&&i.jsx("div",{style:{padding:"16px",textAlign:"center",color:"var(--muted)",fontSize:12},children:"No posts yet. Compose one first."}),mo.map(h=>{const I=h._id||h.id,ce=Ca[h.status]||Ca.draft,mt=S&&(S._id||S.id)===I;return i.jsxs("div",{className:`cr-post-item ${mt?"selected":""}`,onClick:()=>Zt(h),children:[i.jsxs("div",{className:"row mb4",style:{gap:5},children:[(h.platforms||[]).slice(0,3).map((Rt,qc)=>i.jsx("span",{style:{fontSize:10,fontWeight:700,background:Jm[Rt.platform]||"#3f3f46",color:"#fff",padding:"1px 5px",borderRadius:4},children:ep[Rt.platform]||Rt.platform},qc)),i.jsx("span",{className:`badge ${ce.cls}`,style:{fontSize:9,padding:"1px 6px",marginLeft:"auto"},children:ce.label})]}),i.jsx("div",{className:"cr-post-preview",children:h.content||I}),h.scheduledFor&&i.jsx("div",{style:{fontSize:10,color:"var(--muted)",marginTop:3},children:new Date(h.scheduledFor).toLocaleDateString()})]},I)})]})]}),i.jsxs("div",{className:"cr-rules",children:[i.jsxs("div",{className:"cr-rules-header",children:[i.jsx("div",{style:{flex:1,minWidth:0},children:S?i.jsxs(i.Fragment,{children:[i.jsx("div",{style:{fontWeight:600,fontSize:13,marginBottom:2},children:"Comment Automations"}),i.jsx("div",{style:{fontSize:11,color:"var(--muted)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:(S.content||"").slice(0,80)})]}):i.jsx("span",{style:{fontSize:13,color:"var(--muted)"},children:'← Select a post, or use "+ New" for any post'})}),i.jsx("button",{className:"btn btn-primary btn-sm",onClick:io,children:"+ New Automation"})]}),i.jsxs("div",{className:"cr-rules-body",children:[F&&i.jsxs("div",{className:"rule-form mb16",children:[i.jsx("div",{style:{fontWeight:600,fontSize:13,marginBottom:14},children:O?"Edit Automation":"+ New Comment-to-DM Automation"}),i.jsxs("div",{className:"field",children:[i.jsx("label",{children:"Name"}),i.jsx("input",{className:"input",placeholder:"e.g. FREE keyword — Ads Playbook",value:N.name,onChange:h=>T(I=>({...I,name:h.target.value}))})]}),i.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:10},children:[i.jsxs("div",{className:"field",style:{marginBottom:0},children:[i.jsx("label",{children:"📸 Account (IG / FB only)"}),i.jsxs("select",{className:"select",value:N.accountId,onChange:h=>T(I=>({...I,accountId:h.target.value})),children:[i.jsx("option",{value:"",children:"— select —"}),r.map(h=>i.jsxs("option",{value:h._id,children:[h.platform," @",h.username||h.displayName]},h._id))]})]}),i.jsxs("div",{className:"field",style:{marginBottom:0},children:[i.jsxs("label",{children:["Trigger Keywords ",i.jsx("span",{style:{color:"var(--muted)",fontWeight:400},children:"(leave blank = ALL)"})]}),i.jsx("input",{className:"input",placeholder:"FREE, GUIDE, LINK — comma-separated",value:N.keywords,onChange:h=>T(I=>({...I,keywords:h.target.value}))})]})]}),i.jsxs("div",{className:"field mt12",children:[i.jsxs("label",{children:["Platform Post ID ",i.jsx("span",{style:{color:"var(--muted)",fontWeight:400},children:"(IG/FB native post ID or URL)"})]}),i.jsx("input",{className:"input",placeholder:"e.g. 17846368219941196 or paste the post URL",value:N.platformPostId,onChange:h=>T(I=>({...I,platformPostId:h.target.value}))}),i.jsx("div",{style:{fontSize:11,color:"var(--muted)",marginTop:4},children:"Find this in your IG/FB post URL or Zernio dashboard → Posts → copy the platform post ID"})]}),i.jsxs("div",{className:"field",children:[i.jsxs("label",{children:["📩 DM Message ",i.jsx("span",{style:{color:"var(--redl)",fontWeight:400},children:"*required"})]}),lo.length>0&&i.jsx("div",{className:"row mb8",style:{gap:6},children:i.jsxs("select",{className:"select",style:{flex:1},value:G,onChange:h=>Gc(h.target.value),children:[i.jsx("option",{value:"",children:"— load from template —"}),lo.map(h=>i.jsx("option",{value:h.id,children:h.name},h.id))]})}),i.jsx("textarea",{className:"textarea",style:{minHeight:90},placeholder:"Hey {{firstName}}! Here's your free guide 👉 https://...",value:N.dmMessage,onChange:h=>T(I=>({...I,dmMessage:h.target.value}))}),i.jsxs("div",{className:"char-count",children:[N.dmMessage.length," chars"]})]}),i.jsxs("div",{className:"field",children:[i.jsxs("label",{children:["💬 Comment Reply ",i.jsx("span",{style:{color:"var(--muted)",fontWeight:400},children:"optional — public reply to the comment"})]}),so.length>0&&i.jsx("div",{className:"row mb8",style:{gap:6},children:i.jsxs("select",{className:"select",style:{flex:1},value:qt,onChange:h=>Yc(h.target.value),children:[i.jsx("option",{value:"",children:"— load from template —"}),so.map(h=>i.jsx("option",{value:h.id,children:h.name},h.id))]})}),i.jsx("input",{className:"input",placeholder:"Check your DMs! 📩",value:N.commentReply,onChange:h=>T(I=>({...I,commentReply:h.target.value}))})]}),i.jsxs("div",{className:"row-end",children:[i.jsx("button",{className:"btn btn-ghost btn-sm",onClick:ao,children:"Cancel"}),i.jsx("button",{className:"btn btn-primary btn-sm",onClick:Xc,disabled:A,children:A?i.jsxs(i.Fragment,{children:[i.jsx("span",{className:"spinner",style:{marginRight:7}}),"Saving…"]}):O?"Update":"🚀 Create Automation"})]})]}),S&&d&&i.jsxs("div",{className:"loading-row",children:[i.jsx("span",{className:"spinner"}),"Loading…"]}),S&&!d&&!x.length&&!F&&i.jsxs("div",{className:"empty",style:{marginTop:24},children:[i.jsx("div",{className:"empty-icon",style:{fontSize:26},children:"💬"}),i.jsx("div",{className:"empty-msg",children:"No automations for this post yet."}),i.jsx("button",{className:"btn btn-primary btn-sm",style:{marginTop:12},onClick:io,children:"+ Add First Automation"})]}),x.map(h=>i.jsxs("div",{className:`rule-card ${h.isActive?"active":"paused"}`,children:[i.jsxs("div",{className:"rule-header",children:[i.jsx("span",{className:"rule-keyword",children:h.keywords||"ALL COMMENTS"}),i.jsx("span",{className:`badge ${h.isActive?"badge-green":"badge-neutral"}`,style:{marginLeft:"auto"},children:h.isActive?"Active":"Paused"})]}),i.jsxs("div",{className:"rule-actions-row",children:[h.commentReply&&i.jsxs("div",{className:"rule-action-line",children:[i.jsx("span",{className:"rule-action-icon",children:"💬"}),i.jsx("div",{style:{fontSize:12,color:"var(--dim)"},children:h.commentReply})]}),i.jsxs("div",{className:"rule-action-line",children:[i.jsx("span",{className:"rule-action-icon",children:"📩"}),i.jsx("div",{style:{fontSize:12,color:"var(--dim)"},children:h.dmMessage})]})]}),(h.totalTriggers!==void 0||h.successCount!==void 0)&&i.jsxs("div",{style:{fontSize:11,color:"var(--muted)",marginTop:6},children:[h.totalTriggers??0," triggers · ",h.successCount??0," DMs sent"]}),i.jsxs("div",{className:"rule-footer",children:[i.jsx("button",{className:"btn btn-ghost btn-xs",onClick:()=>fo(h._id||h.id),children:w===(h._id||h.id)?"Hide Logs":"Logs"}),i.jsxs("div",{className:"toggle-wrap",onClick:()=>co(h),children:[i.jsx("div",{className:`toggle ${h.isActive?"on":""}`}),i.jsx("span",{className:"toggle-label",style:{fontSize:11},children:h.isActive?"On":"Off"})]}),i.jsx("button",{className:"btn btn-ghost btn-xs",onClick:()=>oo(h),children:"Edit"}),i.jsx("button",{className:"btn btn-danger btn-xs",style:{marginLeft:"auto"},onClick:()=>uo(h._id||h.id),disabled:xe===(h._id||h.id),children:xe===(h._id||h.id)?"…":"Delete"})]}),w===(h._id||h.id)&&i.jsx("div",{style:{marginTop:10},children:(m[h._id||h.id]||[]).length===0?i.jsx("div",{style:{fontSize:12,color:"var(--muted)"},children:"No triggers logged yet."}):(m[h._id||h.id]||[]).slice(0,20).map((I,ce)=>i.jsxs("div",{style:{fontSize:11,padding:"4px 8px",borderRadius:4,marginBottom:3,background:"#09090b",display:"flex",gap:8},children:[i.jsx("span",{style:{color:I.status==="sent"?"var(--greenl)":"var(--redl)"},children:"●"}),i.jsxs("span",{style:{color:"var(--dim)"},children:["@",I.username||I.commenterUsername||"?"]}),i.jsxs("span",{style:{color:"var(--muted)"},children:['"',(I.comment||"").slice(0,50),'"']}),i.jsx("span",{style:{color:"var(--muted)",marginLeft:"auto"},children:I.createdAt?new Date(I.createdAt).toLocaleString():""})]},ce))})]},h._id||h.id))]})]})]})]}):i.jsxs("div",{children:[i.jsxs("div",{style:{background:"#1a0a0a",border:"1px solid #7f1d1d",borderRadius:10,padding:"20px 24px",marginBottom:20},children:[i.jsx("div",{style:{fontSize:15,fontWeight:700,color:"#fca5a5",marginBottom:8},children:"⚠️ Instagram or Facebook required"}),i.jsxs("div",{style:{fontSize:13,color:"var(--dim)",marginBottom:14,lineHeight:1.6},children:["Comment-to-DM automations only work on ",i.jsx("strong",{children:"Instagram"})," and ",i.jsx("strong",{children:"Facebook"}),".",i.jsx("br",{}),"Your current profile has Twitter + LinkedIn — connect Instagram or Facebook first."]}),i.jsxs("div",{className:"row",style:{gap:10},children:[Ce.instagram&&i.jsx("a",{href:Ce.instagram,target:"_blank",rel:"noreferrer",className:"btn btn-primary",children:"📸 Connect Instagram"}),Ce.facebook&&i.jsx("a",{href:Ce.facebook,target:"_blank",rel:"noreferrer",className:"btn btn-secondary",children:"f Connect Facebook"}),!Ce.instagram&&!Ce.facebook&&i.jsx("span",{style:{fontSize:12,color:"var(--muted)"},children:"Loading connect URLs…"})]})]}),i.jsx("div",{style:{fontSize:13,color:"var(--muted)",marginBottom:16},children:"Once connected, you can set up automations like:"}),i.jsx("div",{style:{display:"flex",flexDirection:"column",gap:8,maxWidth:560},children:[{kw:"FREE",desc:'Auto-DM the Winning Ads Playbook to anyone who comments "FREE"'},{kw:"GUIDE",desc:'Auto-DM the SEO Mastersheet to anyone who comments "GUIDE"'},{kw:"HOOKS",desc:'Auto-DM the 500+ Hooks library to anyone who comments "HOOKS"'},{kw:"—",desc:"Trigger on ALL comments — DM everyone who engages"}].map((h,I)=>i.jsxs("div",{style:{display:"flex",gap:12,alignItems:"flex-start",padding:"10px 14px",background:"var(--surface)",border:"1px solid var(--border)",borderRadius:8},children:[i.jsx("span",{className:"rule-keyword",style:{flexShrink:0},children:h.kw}),i.jsx("span",{style:{fontSize:12,color:"var(--muted)",lineHeight:1.5},children:h.desc})]},I))})]})}function np({onNavigate:e}){const{showToast:t}=Ue(),[n,r]=k.useState([]),[l,s]=k.useState(!0),[o,a]=k.useState(null),[u,c]=k.useState(null),y=k.useCallback(()=>{J.getSequences().then(p=>r(p.sequences||p.data||[])).catch(p=>t(p.message,!1)).finally(()=>s(!1))},[]);k.useEffect(y,[y]);const v=async p=>{const S=p._id||p.id,j=p.status==="active";a(S);try{j?(await J.pauseSequence(S),t("Sequence paused")):(await J.activateSequence(S),t("Sequence activated ✓")),y()}catch(x){t(x.message,!1)}finally{a(null)}};return l?i.jsxs("div",{className:"loading-row",children:[i.jsx("span",{className:"spinner"}),"Loading sequences…"]}):n.length?i.jsxs("div",{children:[i.jsxs("div",{className:"row mb16",style:{justifyContent:"space-between"},children:[i.jsxs("div",{children:[i.jsxs("div",{className:"section-title",style:{marginBottom:2},children:[n.length," Sequence",n.length!==1?"s":""]}),i.jsx("div",{style:{fontSize:12,color:"var(--muted)"},children:"Multi-step follow-up flows enrolled from comment automations"})]}),i.jsx("button",{className:"btn btn-ghost btn-sm",onClick:y,children:"↻ Refresh"})]}),n.map(p=>{const S=p._id||p.id,j=p.status==="active",x=p.steps||p.messages||[],E=u===S;return i.jsxs("div",{className:"seq-card",children:[i.jsxs("div",{className:"seq-header",children:[i.jsxs("div",{className:"row",style:{gap:10},children:[i.jsx("span",{style:{fontWeight:600},children:p.name||p.title||S}),i.jsx("span",{className:`badge ${j?"badge-green":"badge-neutral"}`,children:p.status||"unknown"})]}),i.jsxs("div",{className:"row",style:{gap:8},children:[i.jsx("button",{className:"btn btn-ghost btn-sm",onClick:()=>c(d=>d===S?null:S),children:E?"Hide Steps":`${x.length} Steps`}),i.jsxs("div",{className:"toggle-wrap",onClick:()=>!o&&v(p),children:[i.jsx("div",{className:`toggle ${j?"on":""}`}),i.jsx("span",{className:"toggle-label",children:o===S?"…":j?"On":"Off"})]})]})]}),i.jsxs("div",{className:"seq-meta",children:[p.enrolledCount!==void 0&&i.jsxs("span",{children:["👥 ",p.enrolledCount," enrolled"]}),p.completedCount!==void 0&&i.jsxs("span",{children:["✅ ",p.completedCount," completed"]}),p.trigger&&i.jsxs("span",{children:["🎯 Trigger: ",i.jsx("span",{style:{fontFamily:"monospace",color:"var(--accentl)"},children:p.trigger})]}),p.createdAt&&i.jsxs("span",{children:["Created ",new Date(p.createdAt).toLocaleDateString()]})]}),p.description&&i.jsx("div",{style:{fontSize:12,color:"var(--muted)",marginBottom:10},children:p.description}),E&&x.length>0&&i.jsx("div",{className:"seq-steps",children:x.map((d,f)=>i.jsxs("div",{className:"seq-step",children:[i.jsx("span",{className:"seq-step-num",children:f+1}),i.jsxs("div",{style:{flex:1},children:[i.jsxs("div",{style:{fontWeight:500,marginBottom:2},children:[d.type==="send_dm"?"📩":d.type==="reply_comment"?"💬":"📬"," ",d.name||d.type||"Step",d.delayDays?i.jsxs("span",{style:{color:"var(--muted)",fontWeight:400},children:[" · Day ",d.delayDays]}):null,d.delayHours?i.jsxs("span",{style:{color:"var(--muted)",fontWeight:400},children:[" · +",d.delayHours,"h"]}):null]}),d.content&&i.jsxs("div",{style:{fontSize:11,color:"var(--muted)",fontStyle:"italic"},children:['"',d.content.slice(0,100),d.content.length>100?"…":"",'"']})]}),i.jsx("span",{className:`badge ${d.status==="active"?"badge-green":"badge-neutral"}`,style:{fontSize:10},children:d.status||"active"})]},f))}),E&&!x.length&&i.jsx("div",{style:{fontSize:12,color:"var(--muted)",marginTop:6},children:"No steps defined for this sequence."})]},S)}),i.jsxs("div",{style:{marginTop:12,fontSize:12,color:"var(--muted)"},children:["Sequences use ",i.jsx("span",{style:{fontFamily:"monospace",color:"var(--accentl)"},children:"POST /api/v1/sequences/:id/activate"})," and ",i.jsx("span",{style:{fontFamily:"monospace",color:"var(--accentl)"},children:"/pause"}),". Link sequences to comment rules in ",i.jsx("span",{style:{cursor:"pointer",textDecoration:"underline"},onClick:()=>e==null?void 0:e("commentrules"),children:"Comment Rules →"})]})]}):i.jsxs("div",{children:[i.jsxs("div",{className:"empty",children:[i.jsx("div",{className:"empty-icon",children:"🔀"}),i.jsxs("div",{className:"empty-msg",children:["No sequences found.",i.jsx("br",{}),"Sequences auto-enroll contacts into multi-step follow-up flows after they trigger a comment rule."]})]}),i.jsxs("div",{className:"card mt12",style:{maxWidth:600},children:[i.jsx("div",{className:"section-title mb12",children:"How Sequences Work with Comment Rules"}),i.jsx("div",{style:{display:"flex",flexDirection:"column",gap:12},children:[{step:"1",icon:"💬",title:"Comment trigger fires",desc:'Someone comments "X" on your post'},{step:"2",icon:"📩",title:"Instant reply + DM",desc:"Comment Rule sends the lead magnet immediately"},{step:"3",icon:"🔀",title:"Contact enrolled in sequence",desc:"Commenter auto-enrolled into a follow-up nurture sequence"},{step:"4",icon:"📬",title:"Automated follow-ups",desc:'Day 1: "Did you get a chance to check it out?" · Day 3: Case study · Day 7: Offer'}].map(p=>i.jsxs("div",{className:"row",style:{gap:14,alignItems:"flex-start"},children:[i.jsx("div",{style:{width:28,height:28,borderRadius:"50%",background:"var(--accentb)",border:"1px solid var(--accent)",display:"flex",alignItems:"center",justifyContent:"center",fontSize:12,fontWeight:700,color:"var(--accentl)",flexShrink:0},children:p.step}),i.jsxs("div",{children:[i.jsxs("div",{style:{fontWeight:500,fontSize:13},children:[p.icon," ",p.title]}),i.jsx("div",{style:{fontSize:12,color:"var(--muted)"},children:p.desc})]})]},p.step))}),i.jsx("div",{style:{marginTop:16,fontSize:12,color:"var(--muted)"},children:"Create sequences in the Zernio dashboard, then they appear here for activation management."})]})]})}const Kc=k.createContext({}),Ue=()=>k.useContext(Kc),_a=[{section:"Publishing"},{id:"dashboard",label:"Dashboard",icon:"🏠"},{id:"accounts",label:"Accounts",icon:"🔗"},{id:"compose",label:"Compose",icon:"✏️"},{id:"scheduled",label:"Scheduled",icon:"📅"},{id:"queues",label:"Queues",icon:"🔄"},{id:"analytics",label:"Analytics",icon:"📊"},{section:"Comment Automation"},{id:"templates",label:"Templates",icon:"📝"},{id:"commentrules",label:"Comment Rules",icon:"💬"},{id:"sequences",label:"Sequences",icon:"🔀"},{id:"automations",label:"Automations",icon:"⚡"},{section:"Agent"},{id:"agent",label:"Agent / Swarm",icon:"🤖"},{id:"apikeys",label:"API Keys",icon:"🔑"}],rp={dashboard:Wc,accounts:Lm,compose:Am,scheduled:Dm,queues:Mm,analytics:Fm,agent:Um,automations:Wm,apikeys:bm,templates:qm,commentrules:tp,sequences:np};function lp(){var j;const[e,t]=k.useState("dashboard"),[n,r]=k.useState(null),[l,s]=k.useState([]),[o,a]=k.useState(null),[u,c]=k.useState(!0),y=(x,E=!0)=>{a(x),c(E),setTimeout(()=>a(null),3500)},v=()=>{};k.useEffect(v,[]);const p=rp[e]||Wc,S=((j=_a.find(x=>x.id===e))==null?void 0:j.label)||"";return i.jsxs(Kc.Provider,{value:{profile:n,accounts:l,PROFILE_ID:Tt,showToast:y,reload:v},children:[i.jsxs("div",{className:"layout",children:[i.jsxs("nav",{className:"sidebar",children:[i.jsx("div",{className:"logo",children:"⚡ Zernio"}),_a.map((x,E)=>x.section?i.jsx("div",{className:"nav-section",children:x.section},E):i.jsxs("button",{className:`nav-item ${e===x.id?"active":""}`,onClick:()=>t(x.id),children:[i.jsx("span",{className:"nav-icon",children:x.icon}),x.label]},x.id)),i.jsx("div",{className:"sidebar-bottom",children:i.jsxs("div",{className:"account-badge",children:[i.jsx("span",{className:"dot"}),i.jsx("span",{children:(n==null?void 0:n.name)||"No profile set"})]})})]}),i.jsxs("div",{className:"main",children:[i.jsxs("div",{className:"topbar",children:[i.jsx("span",{className:"topbar-title",children:S}),i.jsxs("div",{className:"row",children:[i.jsx("button",{className:"btn btn-ghost btn-sm",onClick:v,children:"↻ Refresh"}),i.jsx("button",{className:"btn btn-primary btn-sm",onClick:()=>t("compose"),children:"+ New Post"})]})]}),i.jsx("div",{className:"content",children:i.jsx(p,{onNavigate:t})})]})]}),o&&i.jsx("div",{className:`toast ${u?"toast-ok":"toast-err"}`,children:o})]})}$c(document.getElementById("root")).render(i.jsx(k.StrictMode,{children:i.jsx(lp,{})}));
|